hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80122c1ac4058449323ee4626cfbb15560375a32 | 666 | py | Python | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py | kaka-lin/azure-intelligent-edge-patterns | 766833c7c25d2458cec697937be288202d1763bc | [
"MIT"
] | 176 | 2019-07-03T00:20:15.000Z | 2022-03-14T07:51:22.000Z | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py | kaka-lin/azure-intelligent-edge-patterns | 766833c7c25d2458cec697937be288202d1763bc | [
"MIT"
] | 121 | 2019-06-24T20:47:27.000Z | 2022-03-28T02:16:18.000Z | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py | kaka-lin/azure-intelligent-edge-patterns | 766833c7c25d2458cec697937be288202d1763bc | [
"MIT"
] | 144 | 2019-06-18T18:48:43.000Z | 2022-03-31T12:14:46.000Z | """App model factories.
"""
from factory import DjangoModelFactory, Faker, SubFactory
from ...azure_projects.models import Project
from ...azure_settings.tests.factories import SettingFactory
| 20.8125 | 60 | 0.695195 |
80124c2e7a29a44670216e7b4c369b44f3f2c5dc | 2,190 | py | Python | spark/ReqModPython.py | wensheng/spark | ab47107d000f0670f4cfe131637f72471a04cfb2 | [
"MIT"
] | null | null | null | spark/ReqModPython.py | wensheng/spark | ab47107d000f0670f4cfe131637f72471a04cfb2 | [
"MIT"
] | null | null | null | spark/ReqModPython.py | wensheng/spark | ab47107d000f0670f4cfe131637f72471a04cfb2 | [
"MIT"
] | null | null | null | #import time
from spark.ReqBase import ReqBase
| 25.764706 | 56 | 0.699087 |
8012892e7728aa0fca32fc55889737c34c9bce78 | 2,840 | py | Python | display_restults.py | MickRemmerswaal/ASCAD | bdd54303922df5d0798ffb9fc4a9a5d13429e45e | [
"BSD-2-Clause"
] | null | null | null | display_restults.py | MickRemmerswaal/ASCAD | bdd54303922df5d0798ffb9fc4a9a5d13429e45e | [
"BSD-2-Clause"
] | null | null | null | display_restults.py | MickRemmerswaal/ASCAD | bdd54303922df5d0798ffb9fc4a9a5d13429e45e | [
"BSD-2-Clause"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
total_results = []
averaged_results = []
for i in range(3,8):
data_loc = "results_fixed_key_byte"+ str(i) +".csv"
results = load_data(data_loc)
np.asarray(total_results.append(results))
# Calculate average scores
sost_average = calc_average(total_result... | 27.572816 | 104 | 0.685915 |
8012ad5def5e3503fb5f33d5f1de10fd3533f6ca | 2,171 | py | Python | tests/test_cases/test_cocotb/test_testfactory.py | lavanyajagan/cocotb | 2f98612016e68510e264a2b4963303d3588d8404 | [
"BSD-3-Clause"
] | 350 | 2015-01-09T12:50:13.000Z | 2019-07-12T09:08:17.000Z | tests/test_cases/test_cocotb/test_testfactory.py | lavanyajagan/cocotb | 2f98612016e68510e264a2b4963303d3588d8404 | [
"BSD-3-Clause"
] | 710 | 2015-01-05T16:42:29.000Z | 2019-07-16T13:40:00.000Z | tests/test_cases/test_cocotb/test_testfactory.py | lavanyajagan/cocotb | 2f98612016e68510e264a2b4963303d3588d8404 | [
"BSD-3-Clause"
] | 182 | 2015-01-08T09:35:20.000Z | 2019-07-12T18:41:37.000Z | # Copyright cocotb contributors
# Licensed under the Revised BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-3-Clause
"""
Tests of cocotb.regression.TestFactory functionality
"""
import random
import string
from collections.abc import Coroutine
import cocotb
from cocotb.regression import TestFacto... | 25.845238 | 76 | 0.707969 |
8012c5a341f13ec069b05a8dc76bfdac9b6781b3 | 5,617 | py | Python | pkgs/servers/home-assistant/parse-requirements.py | hamhut1066/nixpkgs | a2736d27d16aecd1f2179e07db23bf1b6c0c4c46 | [
"MIT"
] | 2 | 2021-10-20T11:39:26.000Z | 2021-11-08T09:49:56.000Z | pkgs/servers/home-assistant/parse-requirements.py | hamhut1066/nixpkgs | a2736d27d16aecd1f2179e07db23bf1b6c0c4c46 | [
"MIT"
] | 4 | 2021-09-28T05:38:41.000Z | 2022-02-26T10:09:42.000Z | pkgs/servers/home-assistant/parse-requirements.py | hamhut1066/nixpkgs | a2736d27d16aecd1f2179e07db23bf1b6c0c4c46 | [
"MIT"
] | 1 | 2019-02-03T10:41:26.000Z | 2019-02-03T10:41:26.000Z | #! /usr/bin/env nix-shell
#! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ aiohttp astral async-timeout attrs certifi jinja2 pyjwt cryptography pip pytz pyyaml requests ruamel_yaml voluptuous python-slugify ])"
#
# This script downloads Home Assistant's source tarball.
# Inside the homeassistant/compone... | 42.55303 | 200 | 0.659605 |
80135844df6de664ba97f408d31907df391e856c | 9,778 | py | Python | src/oci/ai_anomaly_detection/models/per_signal_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/ai_anomaly_detection/models/per_signal_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/ai_anomaly_detection/models/per_signal_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 28.342029 | 245 | 0.602679 |
80151715f16054e2414846460fbd9c81a2d95a58 | 1,180 | py | Python | google/cloud/forseti/scanner/scanners/ke_version_scanner.py | aarontp/forseti-security | 6d03c14114468ff6170846392b7d14a0619fa9f0 | [
"Apache-2.0"
] | 921 | 2017-03-09T01:01:24.000Z | 2019-04-16T11:38:25.000Z | google/cloud/forseti/scanner/scanners/ke_version_scanner.py | aarontp/forseti-security | 6d03c14114468ff6170846392b7d14a0619fa9f0 | [
"Apache-2.0"
] | 1,996 | 2017-03-03T22:07:50.000Z | 2019-04-17T00:02:28.000Z | google/cloud/forseti/scanner/scanners/ke_version_scanner.py | aarontp/forseti-security | 6d03c14114468ff6170846392b7d14a0619fa9f0 | [
"Apache-2.0"
] | 241 | 2017-03-09T01:00:04.000Z | 2019-04-15T18:53:35.000Z | # Copyright 2017 The Forseti Security Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 33.714286 | 74 | 0.784746 |
80159b75aa113a30275dad91c182d915e6dabf31 | 142 | py | Python | boot.py | matejv/micropython-weatherstation | 3c357fa14d83bb6a21388f953cc994601a6e8eda | [
"MIT"
] | 7 | 2017-04-16T16:52:00.000Z | 2019-07-26T14:53:19.000Z | boot.py | matejv/micropython-weatherstation | 3c357fa14d83bb6a21388f953cc994601a6e8eda | [
"MIT"
] | 1 | 2017-02-02T07:21:49.000Z | 2017-02-02T07:21:49.000Z | boot.py | matejv/micropython-weatherstation | 3c357fa14d83bb6a21388f953cc994601a6e8eda | [
"MIT"
] | null | null | null | # This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
gc.collect()
gc.enable()
| 17.75 | 74 | 0.753521 |
8016308abbe08e97f8cc91fc90577979b5691b44 | 25,336 | py | Python | NewvueApp/forgerynewstrackervue/app.py | awallemo/Social-media-coverage-of-fake-news | d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9 | [
"Unlicense"
] | 1 | 2021-09-20T18:15:49.000Z | 2021-09-20T18:15:49.000Z | NewvueApp/forgerynewstrackervue/app.py | jonelorentzen/Social-media-coverage-of-fake-news | d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9 | [
"Unlicense"
] | null | null | null | NewvueApp/forgerynewstrackervue/app.py | jonelorentzen/Social-media-coverage-of-fake-news | d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9 | [
"Unlicense"
] | null | null | null | from flask import Flask, jsonify, redirect, request, url_for
from flask_cors import CORS
import config
import requests
import json
import os
import time
from textblob import TextBlob
import numpy as np
import pandas as pd
import re
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')
import praw
import geoc... | 35.684507 | 230 | 0.623934 |
8016a787d092f12d5ad3256d0e0eaded387f8caa | 4,484 | py | Python | test/test_criteria.py | enioluwa23/wordplay | 4a423dcb96458c6100beb88ba2fa19ad9dc81c3a | [
"Apache-2.0"
] | 3 | 2019-03-03T20:07:38.000Z | 2020-07-01T12:05:15.000Z | test/test_criteria.py | enioluwa23/wordplay | 4a423dcb96458c6100beb88ba2fa19ad9dc81c3a | [
"Apache-2.0"
] | null | null | null | test/test_criteria.py | enioluwa23/wordplay | 4a423dcb96458c6100beb88ba2fa19ad9dc81c3a | [
"Apache-2.0"
] | 1 | 2020-07-01T12:21:43.000Z | 2020-07-01T12:21:43.000Z | from collections import Counter as Ct
from wordplay.criteria import Criteria
from wordplay.utils import ArgumentError, CriteriaError, Utils
| 27.012048 | 75 | 0.626673 |
8016eea42aa1ca7b52a7c516e1a5d77146288a7c | 8,313 | py | Python | single_trace_parser.py | magnusmorton/trace-analysis | 4645af99638edea16d00e811c922b0fb9d6b86d9 | [
"Apache-2.0"
] | null | null | null | single_trace_parser.py | magnusmorton/trace-analysis | 4645af99638edea16d00e811c922b0fb9d6b86d9 | [
"Apache-2.0"
] | null | null | null | single_trace_parser.py | magnusmorton/trace-analysis | 4645af99638edea16d00e811c922b0fb9d6b86d9 | [
"Apache-2.0"
] | null | null | null | import re
import sys
import copy
import operator
import numpy as np
import instructions
import trace
from scipy.optimize import nnls
from scipy.linalg import solve
from sets import Set
from scipy.io import savemat
import pdb
high_cost = ['ARRAYLEN_GC_OP',
'STRLEN_OP',
'STRGETITEM_OP',
'GETFIELD_GC_PURE_OP... | 32.857708 | 115 | 0.550583 |
80171e1550ef369d988a5b4162e40a61643ab261 | 4,266 | py | Python | rllib/tf2_examples/rnn_model_predmaint.py | tmorgan4/ray | bc9f040aa002a5223cd86d647a13bd9135a892a8 | [
"Apache-2.0"
] | null | null | null | rllib/tf2_examples/rnn_model_predmaint.py | tmorgan4/ray | bc9f040aa002a5223cd86d647a13bd9135a892a8 | [
"Apache-2.0"
] | null | null | null | rllib/tf2_examples/rnn_model_predmaint.py | tmorgan4/ray | bc9f040aa002a5223cd86d647a13bd9135a892a8 | [
"Apache-2.0"
] | null | null | null | from ray.rllib.models.tf.tf_modelv2 import TFModelV2
from ray.rllib.models.misc import normc_initializer
from ray.rllib.models.lstm import add_time_dimension
from ray.rllib.models import ModelCatalog
import tensorflow as tf
tf.disable_v2_behavior()
import numpy as np
# TODO:
# ModelCatalog.register_custom_model("RNNmo... | 44.905263 | 125 | 0.63549 |
801b0a820b6146857753c0497931ce3d9e514bf4 | 736 | py | Python | docs/source/ipython_utils.py | pilillo/nilmtk | 00bb1f948b6de1cc5c891102728c19b9bfc7c739 | [
"Apache-2.0"
] | null | null | null | docs/source/ipython_utils.py | pilillo/nilmtk | 00bb1f948b6de1cc5c891102728c19b9bfc7c739 | [
"Apache-2.0"
] | null | null | null | docs/source/ipython_utils.py | pilillo/nilmtk | 00bb1f948b6de1cc5c891102728c19b9bfc7c739 | [
"Apache-2.0"
] | null | null | null | from IPython.core.display import HTML, display
| 28.307692 | 55 | 0.508152 |
801ccd5892e08d8948c732c4efa90cc93606ed73 | 87 | py | Python | scripts/consts.py | Eve-ning/aleph0 | 0a893f81328420ba4661cb920d3f9c39b3506d96 | [
"MIT"
] | null | null | null | scripts/consts.py | Eve-ning/aleph0 | 0a893f81328420ba4661cb920d3f9c39b3506d96 | [
"MIT"
] | null | null | null | scripts/consts.py | Eve-ning/aleph0 | 0a893f81328420ba4661cb920d3f9c39b3506d96 | [
"MIT"
] | null | null | null | PADDING = 23
NOTE_THICKNESS = 3
RAND_SIZE = 20
REF_BPM = 1000
SCALE = REF_BPM / 104.15
| 14.5 | 24 | 0.724138 |
801da7efb1d2bb0574eb4acbe4498aa1097d511b | 13,000 | py | Python | test/sim_utils.py | cornell-brg/pymtl3-mem | 458cbc0c667cf8645aad0e33489458eb696f6928 | [
"BSD-3-Clause"
] | 4 | 2020-03-13T11:35:30.000Z | 2020-04-21T03:01:34.000Z | test/sim_utils.py | cornell-brg/pymtl3-mem | 458cbc0c667cf8645aad0e33489458eb696f6928 | [
"BSD-3-Clause"
] | 4 | 2020-01-07T20:58:32.000Z | 2020-04-01T22:02:31.000Z | test/sim_utils.py | cornell-brg/pymtl3-mem | 458cbc0c667cf8645aad0e33489458eb696f6928 | [
"BSD-3-Clause"
] | 2 | 2020-09-08T19:34:52.000Z | 2021-06-18T14:58:47.000Z | """
=========================================================================
sim_util.py
=========================================================================
Utilty functions for running a testing simulation
Author : Xiaoyu Yan (xy97), Eric Tang (et396)
Date : 21 Decemeber 2019
"""
import struct
import random... | 39.039039 | 105 | 0.639231 |
801e4c52ee9f6593298d55ab16552e0b03194f13 | 997 | py | Python | chord2vec/neural_net_utilities.py | czhuang/ChordRipple | 1d7f1f05cc895983101865665d5df18aeff99d7f | [
"MIT"
] | 24 | 2015-05-27T22:57:17.000Z | 2022-02-11T20:27:40.000Z | chord2vec/neural_net_utilities.py | czhuang/ChordRipple | 1d7f1f05cc895983101865665d5df18aeff99d7f | [
"MIT"
] | null | null | null | chord2vec/neural_net_utilities.py | czhuang/ChordRipple | 1d7f1f05cc895983101865665d5df18aeff99d7f | [
"MIT"
] | 2 | 2015-11-21T19:46:20.000Z | 2021-07-02T13:09:07.000Z |
import autograd.numpy as np
| 27.694444 | 78 | 0.616851 |
8022376ceb5dadaed4355ea2f02dde44ca9fff40 | 253 | py | Python | streamprocessor/client/stdio.py | rtl-nl/streamprocessor | c2754aea486aef80758d9caa6851a511a0c41925 | [
"MIT"
] | 1 | 2019-02-15T14:30:45.000Z | 2019-02-15T14:30:45.000Z | streamprocessor/client/stdio.py | textpipe/streamprocessor | c2754aea486aef80758d9caa6851a511a0c41925 | [
"MIT"
] | null | null | null | streamprocessor/client/stdio.py | textpipe/streamprocessor | c2754aea486aef80758d9caa6851a511a0c41925 | [
"MIT"
] | null | null | null | import sys
from streamprocessor.client.base import Consumer, Producer
| 19.461538 | 58 | 0.735178 |
80223a50e4ed12592f7caf55b094af49cf85c2c3 | 996 | py | Python | experiments/gethpduplex.py | timnbraun/hpduplexfix | 1110641c23cd469c5fa1a88eebad375fbc83f4b9 | [
"Apache-2.0"
] | null | null | null | experiments/gethpduplex.py | timnbraun/hpduplexfix | 1110641c23cd469c5fa1a88eebad375fbc83f4b9 | [
"Apache-2.0"
] | null | null | null | experiments/gethpduplex.py | timnbraun/hpduplexfix | 1110641c23cd469c5fa1a88eebad375fbc83f4b9 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
from winreg import QueryValueEx, OpenKey, CloseKey, HKEY_LOCAL_MACHINE
DEBUG = False
driverdata = OpenKey( HKEY_LOCAL_MACHINE, "SYSTEM\CurrentControlSet\Control\Print\Printers\hplaser (HP LaserJet Professional P1606dn)\PrinterDriverData" )
dup_val_type = QueryValueEx( driverdata, 'FeatureKe... | 34.344828 | 179 | 0.769076 |
80225b992a73e8ebabee59d36fcf5edf65e69f25 | 4,685 | py | Python | Word.py | eiaiestyi/project_15c | 653bf50d07fd512befbb3d8818864252a7f8caf1 | [
"MIT"
] | null | null | null | Word.py | eiaiestyi/project_15c | 653bf50d07fd512befbb3d8818864252a7f8caf1 | [
"MIT"
] | null | null | null | Word.py | eiaiestyi/project_15c | 653bf50d07fd512befbb3d8818864252a7f8caf1 | [
"MIT"
] | null | null | null | import random
from airtable import Airtable
import config
| 42.981651 | 114 | 0.560512 |
8022ba17844080c9b1e27e6e7df31151af4a61d8 | 595 | py | Python | gcb_web_auth/migrations/0006_auto_20181128_1456.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | 1 | 2017-04-26T10:26:01.000Z | 2017-04-26T10:26:01.000Z | gcb_web_auth/migrations/0006_auto_20181128_1456.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | 25 | 2017-04-26T20:08:55.000Z | 2021-06-07T19:14:43.000Z | gcb_web_auth/migrations/0006_auto_20181128_1456.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2018-11-28 14:56
from __future__ import unicode_literals
from django.db import migrations, models
| 28.333333 | 164 | 0.672269 |
8025bdd4ec643cfd443001ce73dc281d84760e7c | 1,763 | py | Python | accounts/views.py | DipeshYogi/MyTodoList_backend | 0b4103e791857b7e95981bd8c3d580b28b80e9eb | [
"MIT"
] | null | null | null | accounts/views.py | DipeshYogi/MyTodoList_backend | 0b4103e791857b7e95981bd8c3d580b28b80e9eb | [
"MIT"
] | 1 | 2021-03-22T19:07:43.000Z | 2021-03-22T19:07:43.000Z | accounts/views.py | DipeshYogi/MyTodoList_backend | 0b4103e791857b7e95981bd8c3d580b28b80e9eb | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .serializers import RegisterSerializer, LoginSerializer, UserSerializer
from rest_framework.generics import GenericAPIView
from rest_framework import status, permissions
from rest_framework.response import Response
from knox.models import AuthToken
from django.contrib.auth impor... | 38.326087 | 89 | 0.739081 |
8026ac69d84de1cb16032bb05a12822b2e9ca512 | 2,805 | py | Python | app.py | lucashenning/ntag424-backend | bfa442969d82357b9e9fc482dfe1a32f0827709a | [
"MIT"
] | null | null | null | app.py | lucashenning/ntag424-backend | bfa442969d82357b9e9fc482dfe1a32f0827709a | [
"MIT"
] | null | null | null | app.py | lucashenning/ntag424-backend | bfa442969d82357b9e9fc482dfe1a32f0827709a | [
"MIT"
] | null | null | null | import argparse
import binascii
from flask import Flask, request, render_template, jsonify
from werkzeug.exceptions import BadRequest
from config import SDMMAC_PARAM, ENC_FILE_DATA_PARAM, ENC_PICC_DATA_PARAM, SDM_FILE_READ_KEY, SDM_META_READ_KEY
from ntag424 import decrypt_sun_message, InvalidMessage
app = Flask(__n... | 32.616279 | 111 | 0.622816 |
80281dee97ef60a06b20d70a1384bfacbdd889f5 | 726 | py | Python | insights_integration/migrations/0004_playbookrunlog.py | benthomasson/insights_ansible_runner_poc | 1392521f115ec36e626e1daf5187a1d57bfd50b3 | [
"Apache-1.1"
] | null | null | null | insights_integration/migrations/0004_playbookrunlog.py | benthomasson/insights_ansible_runner_poc | 1392521f115ec36e626e1daf5187a1d57bfd50b3 | [
"Apache-1.1"
] | null | null | null | insights_integration/migrations/0004_playbookrunlog.py | benthomasson/insights_ansible_runner_poc | 1392521f115ec36e626e1daf5187a1d57bfd50b3 | [
"Apache-1.1"
] | null | null | null | # Generated by Django 2.0.8 on 2018-11-14 13:08
from django.db import migrations, models
import django.db.models.deletion
| 30.25 | 136 | 0.61708 |
8029ba05d1267e539bc300c17161b1a4be505f74 | 6,025 | py | Python | bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py | bmcs-group/bmcs_beam | b53967d0d0461657ec914a3256ec40f9dcff80d5 | [
"MIT"
] | 1 | 2021-05-07T11:10:27.000Z | 2021-05-07T11:10:27.000Z | bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py | bmcs-group/bmcs_beam | b53967d0d0461657ec914a3256ec40f9dcff80d5 | [
"MIT"
] | null | null | null | bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py | bmcs-group/bmcs_beam | b53967d0d0461657ec914a3256ec40f9dcff80d5 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
#
# Copyright (c) 2009, IMB, RWTH Aachen.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in simvisage/LICENSE.txt and may be redistributed only
# under the conditions des... | 39.638158 | 87 | 0.642324 |
802a91a4886d822f94d7ffe84abf1dae5e5b1d5c | 6,409 | py | Python | poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py | Eyerunmyden/HWMgmt-MegaRAC-OpenEdition | 72b03e9fc6e2a13184f1c57b8045b616db9b0a6d | [
"Apache-2.0",
"MIT"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py | Eyerunmyden/HWMgmt-MegaRAC-OpenEdition | 72b03e9fc6e2a13184f1c57b8045b616db9b0a6d | [
"Apache-2.0",
"MIT"
] | null | null | null | poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py | Eyerunmyden/HWMgmt-MegaRAC-OpenEdition | 72b03e9fc6e2a13184f1c57b8045b616db9b0a6d | [
"Apache-2.0",
"MIT"
] | 6 | 2021-11-02T10:56:19.000Z | 2022-03-06T11:58:20.000Z | #
# SPDX-License-Identifier: MIT
#
import os
from oeqa.selftest.case import OESelftestTestCase
import tempfile
import operator
from oeqa.utils.commands import get_bb_var
| 43.89726 | 151 | 0.626775 |
802b48e84d76a8785f59939db8669bb4e6dff6ad | 86,974 | py | Python | vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py | avinetworks/servicemesh | 4b4864e1327f09fa0bc047770af7e477a32f9d94 | [
"Apache-2.0"
] | 4 | 2017-06-16T18:51:52.000Z | 2020-02-11T15:22:42.000Z | vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py | sudswasavi/servicemesh | 4f07c228e9b62c9b621cb0bfc464c75e85351f7f | [
"Apache-2.0"
] | 17 | 2019-01-11T05:57:35.000Z | 2019-08-29T05:33:38.000Z | vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py | sudswasavi/servicemesh | 4f07c228e9b62c9b621cb0bfc464c75e85351f7f | [
"Apache-2.0"
] | 8 | 2017-06-26T18:15:58.000Z | 2021-04-12T08:09:03.000Z | import copy
import logging
import os
import yaml
import avi.migrationtools.f5_converter.converter_constants as final
from avi.migrationtools.f5_converter.conversion_util import F5Util
from avi.migrationtools.avi_migration_utils import update_count
LOG = logging.getLogger(__name__)
ssl_count = {'count': 0}
# Creating f... | 49.699429 | 80 | 0.563042 |
802c2808abfe71ea1b67247ca6afede8b7346d0f | 13,059 | py | Python | fio_plot/fiolib/supporting.py | bhelm/fio-plot | 60dc206a5486c7e43647d90ea36f4474b4601431 | [
"BSD-3-Clause"
] | 148 | 2017-04-05T22:15:39.000Z | 2022-03-31T14:39:30.000Z | fio_plot/fiolib/supporting.py | bhelm/fio-plot | 60dc206a5486c7e43647d90ea36f4474b4601431 | [
"BSD-3-Clause"
] | 66 | 2017-05-08T22:21:45.000Z | 2022-02-26T22:53:58.000Z | fio_plot/fiolib/supporting.py | bhelm/fio-plot | 60dc206a5486c7e43647d90ea36f4474b4601431 | [
"BSD-3-Clause"
] | 61 | 2017-11-09T21:52:24.000Z | 2022-03-31T14:38:37.000Z | #!/usr/local/bin env
import pprint as pprint
import statistics
import numpy as np
from datetime import datetime
from PIL.PngImagePlugin import PngImageFile, PngInfo
import random
import string
def running_mean(l, N):
"""From a list of values (N), calculate the running mean with a
window of (l) items. How larg... | 30.583138 | 116 | 0.553335 |
802d45597dd184c0c91348e98b8980088407bfb9 | 25,692 | py | Python | tests/notifications/test_activity_alerts.py | plastr/extrasolar-game | 1aad5971556d498e3617afe75f27e2f4132d4668 | [
"MIT",
"Unlicense"
] | null | null | null | tests/notifications/test_activity_alerts.py | plastr/extrasolar-game | 1aad5971556d498e3617afe75f27e2f4132d4668 | [
"MIT",
"Unlicense"
] | null | null | null | tests/notifications/test_activity_alerts.py | plastr/extrasolar-game | 1aad5971556d498e3617afe75f27e2f4132d4668 | [
"MIT",
"Unlicense"
] | null | null | null | # Copyright (c) 2010-2011 Lazy 8 Studios, LLC.
# All rights reserved.
import re
from front import Constants, target_image_types, activity_alert_types
from front.lib import gametime, urls, db, utils
from front.models import species
from front.backend import notifications
from front.tests import base
from front.tests.b... | 58.657534 | 119 | 0.706095 |
802e8ca49204a9bf9d439b114d4f3315d453e00f | 1,777 | py | Python | nemo/collections/common/losses/mse_loss.py | hamjam/NeMo | b3484d32e1317666151f931bfa39867d88ed8658 | [
"Apache-2.0"
] | 4,145 | 2019-09-13T08:29:43.000Z | 2022-03-31T18:31:44.000Z | nemo/collections/common/losses/mse_loss.py | hamjam/NeMo | b3484d32e1317666151f931bfa39867d88ed8658 | [
"Apache-2.0"
] | 2,031 | 2019-09-17T16:51:39.000Z | 2022-03-31T23:52:41.000Z | nemo/collections/common/losses/mse_loss.py | hamjam/NeMo | b3484d32e1317666151f931bfa39867d88ed8658 | [
"Apache-2.0"
] | 1,041 | 2019-09-13T10:08:21.000Z | 2022-03-30T06:37:38.000Z | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 30.637931 | 89 | 0.655037 |
802f3955e4f983aab0465d9c45a9474fcbaaf0ea | 8,954 | py | Python | malib/algorithm/common/misc.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | 5 | 2021-11-17T03:11:13.000Z | 2021-12-23T09:04:21.000Z | malib/algorithm/common/misc.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | null | null | null | malib/algorithm/common/misc.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | null | null | null | import torch
import numpy as np
import torch.nn.functional as F
from torch.autograd import Variable
from malib.utils.typing import Dict, Any, List, Union, DataTransferType
from malib.backend.datapool.offline_dataset_server import Episode
def soft_update(target, source, tau):
"""Perform DDPG soft update (move ta... | 33.286245 | 118 | 0.644405 |
802f90308891c39086116b74bd256d4b9568a575 | 7,746 | py | Python | nuage_tempest_plugin/services/vpnaas/vpnaas_client.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | 1 | 2021-01-03T01:47:51.000Z | 2021-01-03T01:47:51.000Z | nuage_tempest_plugin/services/vpnaas/vpnaas_client.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | null | null | null | nuage_tempest_plugin/services/vpnaas/vpnaas_client.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | 1 | 2020-10-16T12:04:39.000Z | 2020-10-16T12:04:39.000Z | import abc
import json
import six
try:
from urllib.parse import urlencode # py35
except ImportError:
from urllib import urlencode # py27
from tempest.lib.common import rest_client
from tempest.lib import exceptions as lib_exc
from nuage_tempest_plugin.lib.topology import Topology
CONF = Topology.get_conf()... | 35.209091 | 79 | 0.63323 |
803202984fca2cb4249027461cb40adaa874e2de | 1,402 | py | Python | plugins/default.py | FredG71/ircbot | 148131b2156116ceb071d785ade4a9ca6e0f9ff8 | [
"MIT"
] | null | null | null | plugins/default.py | FredG71/ircbot | 148131b2156116ceb071d785ade4a9ca6e0f9ff8 | [
"MIT"
] | null | null | null | plugins/default.py | FredG71/ircbot | 148131b2156116ceb071d785ade4a9ca6e0f9ff8 | [
"MIT"
] | null | null | null | import random
import re
import ircbot.plugin
| 25.035714 | 94 | 0.649786 |
80320bae1d99f90d4823b9ae7806c404113080c3 | 1,598 | py | Python | python/load_generator/load_generator.py | jared-ong/data-projects | 21ceccacb8e408ca45fe95c1c4d311f48e8f7708 | [
"MIT"
] | null | null | null | python/load_generator/load_generator.py | jared-ong/data-projects | 21ceccacb8e408ca45fe95c1c4d311f48e8f7708 | [
"MIT"
] | null | null | null | python/load_generator/load_generator.py | jared-ong/data-projects | 21ceccacb8e408ca45fe95c1c4d311f48e8f7708 | [
"MIT"
] | null | null | null | import pyodbc
import os
from multiprocessing import Process
def get_file_content(full_path):
"""Get file content function from read_sql_files_to_db.py"""
print(full_path)
bytes = min(32, os.path.getsize(full_path))
raw = open(full_path, 'rb').read(bytes)
if '\\xff\\xfe' in str(raw):
print("... | 32.612245 | 125 | 0.609512 |
80325695defe4f63bf8d054e65c1c88b1385a507 | 6,005 | py | Python | examples/plot_powerlaw_fgl.py | bio-datascience/GGLasso | ace4758f2a796defa7fd35ee9bf6f343934c6b65 | [
"MIT"
] | 17 | 2020-03-13T10:43:38.000Z | 2022-03-11T20:21:05.000Z | examples/plot_powerlaw_fgl.py | bio-datascience/GGLasso | ace4758f2a796defa7fd35ee9bf6f343934c6b65 | [
"MIT"
] | 7 | 2021-02-15T08:27:37.000Z | 2021-12-08T13:35:33.000Z | examples/plot_powerlaw_fgl.py | bio-datascience/GGLasso | ace4758f2a796defa7fd35ee9bf6f343934c6b65 | [
"MIT"
] | 4 | 2021-01-29T17:37:33.000Z | 2021-12-10T14:20:43.000Z | """
Fused Graphical Lasso experiment
=================================
We investigate the performance of Fused Graphical Lasso on powerlaw networks, compared to estimating the precision matrices independently with SGL.
In particular, we demonstrate that FGL - in contrast to SGL - is capable of estimating time-consiste... | 30.175879 | 154 | 0.643797 |
80343257862fe0dd8bcfe32668eea5bd1de6aed0 | 52 | py | Python | examples/test/__init__.py | mattsb42/xy-tag | 75f8a8141beb9f5be62357b949ac8686472b24a6 | [
"Apache-2.0"
] | 5 | 2020-05-18T20:47:52.000Z | 2022-03-29T05:39:32.000Z | examples/test/__init__.py | mattsb42/xy-tag | 75f8a8141beb9f5be62357b949ac8686472b24a6 | [
"Apache-2.0"
] | 55 | 2019-10-18T05:32:34.000Z | 2020-01-10T07:54:04.000Z | examples/test/__init__.py | mattsb42/xy-tag | 75f8a8141beb9f5be62357b949ac8686472b24a6 | [
"Apache-2.0"
] | 2 | 2020-05-16T19:23:02.000Z | 2020-11-26T05:42:17.000Z | """Put tests for the examples in this directory."""
| 26 | 51 | 0.711538 |
80355362a6c53716c0ebd75064ddc16a52cea52c | 546 | py | Python | esusu/api/email.py | olujedai/esusu | 2a4f79f5aac933fe32f45d778fb4e75e49b8fbda | [
"Apache-2.0"
] | null | null | null | esusu/api/email.py | olujedai/esusu | 2a4f79f5aac933fe32f45d778fb4e75e49b8fbda | [
"Apache-2.0"
] | null | null | null | esusu/api/email.py | olujedai/esusu | 2a4f79f5aac933fe32f45d778fb4e75e49b8fbda | [
"Apache-2.0"
] | null | null | null | from django.core.mail import EmailMultiAlternatives, send_mail
from django.template.loader import render_to_string
from django.utils.html import strip_tags
from django.conf import settings
| 32.117647 | 62 | 0.818681 |
803575bd4b6af7e9e93c67f9cf32c400ade94b42 | 849 | py | Python | analytics/setup.py | Genometric/ToolVisibilityQuantifier | 82572a678c27820ec1a8dbbc54dcee18ee601096 | [
"MIT"
] | 3 | 2020-04-03T02:00:10.000Z | 2020-06-18T01:39:22.000Z | analytics/setup.py | Genometric/ToolVisibilityQuantifier | 82572a678c27820ec1a8dbbc54dcee18ee601096 | [
"MIT"
] | 1 | 2020-07-14T06:39:02.000Z | 2020-07-14T06:39:02.000Z | analytics/setup.py | Genometric/ToolVisibilityQuantifier | 82572a678c27820ec1a8dbbc54dcee18ee601096 | [
"MIT"
] | 1 | 2020-05-22T20:12:47.000Z | 2020-05-22T20:12:47.000Z | """
Package install information.
This build script provides information about
the `lib` package (e.g., the name and version,
what should be included the built package,
and etc.).
"""
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="TVQ-Scripts",
... | 27.387097 | 67 | 0.681979 |
8035c2d7a9126b6cdea12061987f025e743d2d6e | 150 | py | Python | step4/components/__init__.py | 03015417pzj/PyRankine | e9acd56f91c542bd9fb584d348c48d50b543d5bc | [
"MIT"
] | null | null | null | step4/components/__init__.py | 03015417pzj/PyRankine | e9acd56f91c542bd9fb584d348c48d50b543d5bc | [
"MIT"
] | null | null | null | step4/components/__init__.py | 03015417pzj/PyRankine | e9acd56f91c542bd9fb584d348c48d50b543d5bc | [
"MIT"
] | null | null | null | """
Components Package of the General Simulator of Rankine Cycle
"""
__all__ = ["node","boiler", "condenser","condenser","openedheater","turbine"]
| 21.428571 | 77 | 0.706667 |
803902a284694bf2e2871a900f13d53f88448114 | 13,479 | py | Python | tests/pytest/manipulation_tests/test_dims.py | SX-Aurora/nlcpy | 0a53eec8778073bc48b12687b7ce37ab2bf2b7e0 | [
"BSD-3-Clause"
] | 11 | 2020-07-31T02:21:55.000Z | 2022-03-10T03:12:11.000Z | tests/pytest/manipulation_tests/test_dims.py | SX-Aurora/nlcpy | 0a53eec8778073bc48b12687b7ce37ab2bf2b7e0 | [
"BSD-3-Clause"
] | null | null | null | tests/pytest/manipulation_tests/test_dims.py | SX-Aurora/nlcpy | 0a53eec8778073bc48b12687b7ce37ab2bf2b7e0 | [
"BSD-3-Clause"
] | null | null | null | #
# * The source code in this file is based on the soure code of CuPy.
#
# # NLCPy License #
#
# Copyright (c) 2020-2021 NEC Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | 37.234807 | 88 | 0.636472 |
803a92ae01e55a173b2caee9d74281f118b22fb7 | 325 | py | Python | TCP-UDP-Socket-Programming/setup.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | 2 | 2019-06-09T23:26:44.000Z | 2019-06-27T08:18:05.000Z | TCP-UDP-Socket-Programming/setup.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | null | null | null | TCP-UDP-Socket-Programming/setup.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='CryptoPlus',
version='1.0',
description='PyCrypto Cipher extension',
author='Christophe Oosterlynck',
author_email='tiftof@gmail.com',
packages = find_packages('src'),
install_requires = ['pycrypto'],
package_dir={'': 'sr... | 29.545455 | 46 | 0.661538 |
803c3c3bd07616f3ed463288eceacaefcc475176 | 1,200 | py | Python | chromedriver.py | taha-shafique/colab | 481e110ee6796dac2ef82c22fa6e138688fcd0b0 | [
"Apache-2.0"
] | null | null | null | chromedriver.py | taha-shafique/colab | 481e110ee6796dac2ef82c22fa6e138688fcd0b0 | [
"Apache-2.0"
] | null | null | null | chromedriver.py | taha-shafique/colab | 481e110ee6796dac2ef82c22fa6e138688fcd0b0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 29 23:04:12 2021
@author: tahashafique
"""
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
| 30.769231 | 170 | 0.608333 |
803c7c054becf664ad3ff0f679aef0fcea592bbf | 992 | py | Python | Core/TestConvInst.py | gabrieloandco/RiscV-Arqui1 | 6495370d23d3a7e9e1f579a1b4e8c1be799c3913 | [
"MIT"
] | null | null | null | Core/TestConvInst.py | gabrieloandco/RiscV-Arqui1 | 6495370d23d3a7e9e1f579a1b4e8c1be799c3913 | [
"MIT"
] | null | null | null | Core/TestConvInst.py | gabrieloandco/RiscV-Arqui1 | 6495370d23d3a7e9e1f579a1b4e8c1be799c3913 | [
"MIT"
] | null | null | null | from myhdl import *
from ConvInst import *
import random
test = tbConvInst()
test.config_sim(trace=True)
test.run_sim(1000)
#Arreglar el problema con las tuples: AttributeError: 'tuple' object has no attribute 'config_sim'
| 24.195122 | 104 | 0.646169 |
803ecddcb511e7194a77ad5b27290b4e5012e784 | 48 | py | Python | change_case.py | mariongb81/TeamProject | c29c765ff8313563d17aea845caefc18631cafac | [
"MIT"
] | null | null | null | change_case.py | mariongb81/TeamProject | c29c765ff8313563d17aea845caefc18631cafac | [
"MIT"
] | 4 | 2021-11-16T02:36:24.000Z | 2021-11-26T03:33:57.000Z | change_case.py | mariongb81/TeamProject | c29c765ff8313563d17aea845caefc18631cafac | [
"MIT"
] | 4 | 2021-11-16T01:02:42.000Z | 2021-11-27T03:07:36.000Z | print( input("ingrese su cadena" ).swapcase())
| 16 | 46 | 0.6875 |
803f229f31bff7100d337f359e938d71b79934ae | 631 | py | Python | LuHR_showcode/x0000.py | luhralive/python | b74bdc4c7bc8e75aee9530c27d621a773a71ac67 | [
"MIT"
] | 1 | 2019-05-05T11:55:50.000Z | 2019-05-05T11:55:50.000Z | LuHR_showcode/x0000.py | luhralive/python | b74bdc4c7bc8e75aee9530c27d621a773a71ac67 | [
"MIT"
] | null | null | null | LuHR_showcode/x0000.py | luhralive/python | b74bdc4c7bc8e75aee9530c27d621a773a71ac67 | [
"MIT"
] | null | null | null | # QQ
from PIL import Image,ImageDraw,ImageFont
if __name__ == "__main__":
add_num('D:/git/Project/picture/showcode/picture01.jpg',msg = '5')
| 31.55 | 81 | 0.616482 |
803f9899de41d83fff483e1633259c8b02626196 | 894 | py | Python | test/compilers/test_gcc.py | diogenes1oliveira/mathbind | 1b710010ac8956ea575c2e07fca86233f59018a5 | [
"MIT"
] | null | null | null | test/compilers/test_gcc.py | diogenes1oliveira/mathbind | 1b710010ac8956ea575c2e07fca86233f59018a5 | [
"MIT"
] | null | null | null | test/compilers/test_gcc.py | diogenes1oliveira/mathbind | 1b710010ac8956ea575c2e07fca86233f59018a5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import unittest
from unittest import mock
from mathbind.compilers.gcc import GccCompiler
| 33.111111 | 126 | 0.661074 |
8040173e381ef7cb4b3fc1f2e9d60d3bcfc17f3e | 2,328 | py | Python | FlatBufferSchemaGenerator/python/FlatBufferObserver.py | cnheider/droid | 1687cb50cadba867d9e8a7b670629008c948b38e | [
"Apache-2.0"
] | null | null | null | FlatBufferSchemaGenerator/python/FlatBufferObserver.py | cnheider/droid | 1687cb50cadba867d9e8a7b670629008c948b38e | [
"Apache-2.0"
] | null | null | null | FlatBufferSchemaGenerator/python/FlatBufferObserver.py | cnheider/droid | 1687cb50cadba867d9e8a7b670629008c948b38e | [
"Apache-2.0"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: State
import flatbuffers
# FlatBufferObserver
def Name(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
if o != 0:
return self._tab.String(o + self._tab.Pos)
ret... | 38.8 | 156 | 0.698454 |
804137226516ea6cf2d963db93c0457e0bf4dc2c | 4,126 | py | Python | sonar_to_raw/sonar_to_raw.py | jan-bogaerts/sonar_tools | 16a38c4318ea38ec4259069616da33765de0f91a | [
"MIT"
] | null | null | null | sonar_to_raw/sonar_to_raw.py | jan-bogaerts/sonar_tools | 16a38c4318ea38ec4259069616da33765de0f91a | [
"MIT"
] | null | null | null | sonar_to_raw/sonar_to_raw.py | jan-bogaerts/sonar_tools | 16a38c4318ea38ec4259069616da33765de0f91a | [
"MIT"
] | null | null | null | __author__ = 'Jan Bogaerts'
__copyright__ = "Copyright 2018, Elastetic"
__credits__ = []
__maintainer__ = "Jan Bogaerts"
__email__ = "jb@elastetic.com"
__status__ = "Development" # "Prototype", or "Production"
"""
a small tool to convert files from the sonar corpus into raw text data (as it only comes annotated).
son... | 36.513274 | 124 | 0.524721 |
8041c204d2d2ef90e334feb2ab2a86790a4d7bb6 | 655 | py | Python | databases/migrations/2019_11_07_110837_create_entries_table.py | mandarvaze/life-journal-masonite | e9482fd0da7f8383d31e46160a3ab297281a6171 | [
"MIT"
] | null | null | null | databases/migrations/2019_11_07_110837_create_entries_table.py | mandarvaze/life-journal-masonite | e9482fd0da7f8383d31e46160a3ab297281a6171 | [
"MIT"
] | null | null | null | databases/migrations/2019_11_07_110837_create_entries_table.py | mandarvaze/life-journal-masonite | e9482fd0da7f8383d31e46160a3ab297281a6171 | [
"MIT"
] | null | null | null | """Migration for Entries Table."""
from orator.migrations import Migration
| 27.291667 | 67 | 0.59084 |
804207d0605a0af0c0121c80e73f1b485bc1dae3 | 2,613 | py | Python | poise/poise.py | harbi/poise | a9a659cd95c5101d78d9ae1a90f345874324e307 | [
"MIT"
] | 5 | 2019-08-04T08:04:09.000Z | 2021-12-29T16:56:55.000Z | poise/poise.py | harbi/poise | a9a659cd95c5101d78d9ae1a90f345874324e307 | [
"MIT"
] | null | null | null | poise/poise.py | harbi/poise | a9a659cd95c5101d78d9ae1a90f345874324e307 | [
"MIT"
] | null | null | null | import click
import scrapy
from scrapy.crawler import CrawlerProcess
from langdetect import detect
__author__ = 'Abdullah Alharbi'
if __name__ == '__main__':
get()
| 30.741176 | 109 | 0.567164 |
80435c72e1c732be18ef85aae2e7cc3ae7039fd9 | 5,415 | py | Python | watevrCTF-2019/challenges/web/HTJP/container/htjp.py | bemrdo/CTF-2019 | 424512f7c43278d72091aa737da78907c14f9fc1 | [
"MIT"
] | null | null | null | watevrCTF-2019/challenges/web/HTJP/container/htjp.py | bemrdo/CTF-2019 | 424512f7c43278d72091aa737da78907c14f9fc1 | [
"MIT"
] | null | null | null | watevrCTF-2019/challenges/web/HTJP/container/htjp.py | bemrdo/CTF-2019 | 424512f7c43278d72091aa737da78907c14f9fc1 | [
"MIT"
] | 1 | 2020-03-14T07:24:12.000Z | 2020-03-14T07:24:12.000Z | #!/usr/bin/env python3
# request and response in this file refer to the HTTP specification, they are reversed for HTJP
import sys
import re
import base64
from urllib.parse import quote
import signal
signal.signal(signal.SIGALRM, interrupted)
signal.alarm(5)
debug = False
max_length = 1024 * 16
f = open("flag.txt")... | 33.220859 | 171 | 0.619021 |
8043e5f4d1359c25072690e31f281a2aca8cbb06 | 394 | py | Python | init_solutions.py | CLAHRCWessex/SymmetricTSP | 2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4 | [
"MIT"
] | 1 | 2020-06-01T22:56:11.000Z | 2020-06-01T22:56:11.000Z | init_solutions.py | CLAHRCWessex/SymmetricTSP | 2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4 | [
"MIT"
] | null | null | null | init_solutions.py | CLAHRCWessex/SymmetricTSP | 2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 14 15:57:46 2017
@author: tm3y13
"""
from random import shuffle
def random_tour(tour):
"""
Initial solution to tour is psuedo random
"""
rnd_tour = tour[1:len(tour)-1]
base_city = tour[0]
shuffle(rnd_tour)
rnd_tour.append(base... | 18.761905 | 46 | 0.598985 |
8044be3f76a1e16d32b5f385fa802022a7352190 | 696 | py | Python | examples/basic/colormaps.py | mikami520/vedo | 1a3abcf3f1e495287e8934d9b5bb07b511ab8be5 | [
"MIT"
] | 1 | 2022-03-22T21:49:29.000Z | 2022-03-22T21:49:29.000Z | examples/basic/colormaps.py | mikami520/vedo | 1a3abcf3f1e495287e8934d9b5bb07b511ab8be5 | [
"MIT"
] | null | null | null | examples/basic/colormaps.py | mikami520/vedo | 1a3abcf3f1e495287e8934d9b5bb07b511ab8be5 | [
"MIT"
] | null | null | null | """
Example usage of cmap() to assign a color to each mesh vertex
by looking it up in matplotlib database of colormaps
"""
print(__doc__)
from vedo import Plotter, Mesh, dataurl
# these are the some matplotlib color maps
maps = [
"afmhot",
"binary",
"bone",
"cool",
"coolwarm",
"copper",
"gi... | 20.470588 | 67 | 0.630747 |
8045e28b5450ff355612318f9bf36e0b5119a567 | 2,696 | py | Python | Class.py | samli6479/PythonLearn | 2ad78f62d58612132d3a3759aecec4a52381566f | [
"Apache-2.0"
] | null | null | null | Class.py | samli6479/PythonLearn | 2ad78f62d58612132d3a3759aecec4a52381566f | [
"Apache-2.0"
] | null | null | null | Class.py | samli6479/PythonLearn | 2ad78f62d58612132d3a3759aecec4a52381566f | [
"Apache-2.0"
] | null | null | null | ''' class <name>:
<suite>
Assignments & def in <suite> create attributes of the class'''
# Object Construction
# Idea: All bank accounts have a balance and an account holder
# The account class should add those attributes to each of its instances
''' When a class is called:
1. New instance of t... | 28.378947 | 100 | 0.690653 |
8046ad6d9a8257734d7ffc0c589a44d7c637794d | 250 | py | Python | db_connect.py | brandon-schabel/web_scraper_playground | 1ae4e3b96fb5697b3f8cdf8fa03d2c54c43262e0 | [
"MIT"
] | null | null | null | db_connect.py | brandon-schabel/web_scraper_playground | 1ae4e3b96fb5697b3f8cdf8fa03d2c54c43262e0 | [
"MIT"
] | 12 | 2020-09-04T14:35:09.000Z | 2022-03-08T22:27:48.000Z | db_connect.py | brandon-schabel/web_scraper_playground | 1ae4e3b96fb5697b3f8cdf8fa03d2c54c43262e0 | [
"MIT"
] | null | null | null | from mongoengine import *
from secrets import db_host, db_port, db_user, db_password
from schemas import Profile
connect('t_database', port=db_port, host=db_host, username=db_user, password=db_password ) | 31.25 | 90 | 0.808 |
804722837c4840e9969d880b8c1cd1c26b6ab238 | 2,435 | py | Python | plugins/virustotal_yara/komand_virustotal_yara/actions/scan_file/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 46 | 2019-06-05T20:47:58.000Z | 2022-03-29T10:18:01.000Z | plugins/virustotal_yara/komand_virustotal_yara/actions/scan_file/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 386 | 2019-06-07T20:20:39.000Z | 2022-03-30T17:35:01.000Z | plugins/virustotal_yara/komand_virustotal_yara/actions/scan_file/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 43 | 2019-07-09T14:13:58.000Z | 2022-03-28T12:04:46.000Z | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
| 20.123967 | 105 | 0.464887 |
804a41b943270e181d9be77bf29f7d8d5707a582 | 2,054 | py | Python | p.py | jen-soft/tools | 5a7203caebc90061c47fabb8b9bdb5c0128d3b1e | [
"Apache-2.0"
] | 1 | 2019-05-03T14:51:49.000Z | 2019-05-03T14:51:49.000Z | p.py | jen-soft/tools | 5a7203caebc90061c47fabb8b9bdb5c0128d3b1e | [
"Apache-2.0"
] | null | null | null | p.py | jen-soft/tools | 5a7203caebc90061c47fabb8b9bdb5c0128d3b1e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""# - - -
data-edit: 2018-04-28(05:30)
name: Jen-Soft-Print (JSP)
author: jen-soft
email: jen.soft.master@gmail.com
license: Licensed under the Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0
description: short tools for using in inter... | 23.883721 | 73 | 0.601266 |
804d136e8e7766f94db77c9aeeb01f986bf70336 | 302 | py | Python | app/core/validators.py | petoandroide/recipe-app-api | bcd4376f4eee91c8ce1a6982afc7ca1be92eb9e9 | [
"MIT"
] | null | null | null | app/core/validators.py | petoandroide/recipe-app-api | bcd4376f4eee91c8ce1a6982afc7ca1be92eb9e9 | [
"MIT"
] | null | null | null | app/core/validators.py | petoandroide/recipe-app-api | bcd4376f4eee91c8ce1a6982afc7ca1be92eb9e9 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from django.core.validators import validate_email
def emailValidator(email):
'''Checks if an email is valid'''
try:
validate_email(str(email))
except ValidationError:
raise ValidationError(f'{email} is not a valid email') | 30.2 | 62 | 0.731788 |
804dac7d85f8d3c3dc9a7cd520102b787d29f816 | 2,695 | py | Python | ooobuild/dyn/rendering/panose_midline.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/dyn/rendering/panose_midline.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/dyn/rendering/panose_midline.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 40.833333 | 114 | 0.735065 |
804fc7ed324daf636f71ef91cd44679bdebec4f6 | 8,887 | py | Python | ligeor/fitting/twogaussian.py | gecheline/ligeor | 34c33628741fb7eedd59660672b0557d48dfe4ff | [
"MIT"
] | 1 | 2021-09-21T07:18:14.000Z | 2021-09-21T07:18:14.000Z | ligeor/fitting/twogaussian.py | gecheline/ligeor | 34c33628741fb7eedd59660672b0557d48dfe4ff | [
"MIT"
] | null | null | null | ligeor/fitting/twogaussian.py | gecheline/ligeor | 34c33628741fb7eedd59660672b0557d48dfe4ff | [
"MIT"
] | null | null | null | import numpy as np
from ligeor.fitting.sampler import EmceeSampler
from ligeor.models.twogaussian import TwoGaussianModel
from ligeor.utils.lcutils import *
| 44.435 | 131 | 0.519073 |
8051fa690a144c0f791b552a283da2ac591cf7d6 | 2,078 | py | Python | pygres/pygres.py | jorgeviz/pygres | acc1db1bc67316f399396998424d3709e624ba0c | [
"MIT"
] | null | null | null | pygres/pygres.py | jorgeviz/pygres | acc1db1bc67316f399396998424d3709e624ba0c | [
"MIT"
] | null | null | null | pygres/pygres.py | jorgeviz/pygres | acc1db1bc67316f399396998424d3709e624ba0c | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
import psycopg2
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
from .errors import PygresError
from .model import Model
| 28.861111 | 84 | 0.57026 |
80528ba8b913933d890570ec5f6820eefc0bb674 | 478 | py | Python | bin/rdbox/rdbox_node.py | rdbox-intec/rdbox-middleware | e7469c68ba745187d1db5514494663a3593164df | [
"MIT"
] | 4 | 2019-04-25T06:30:18.000Z | 2020-03-21T05:46:38.000Z | bin/rdbox/rdbox_node.py | fukuta-tatsuya-intec/rdbox-middleware | fc1612c655438aaebe5ec289764854b5fa887e09 | [
"MIT"
] | 21 | 2020-01-10T02:22:55.000Z | 2021-09-27T07:30:46.000Z | bin/rdbox/rdbox_node.py | rdbox-intec/rdbox-middleware | e7469c68ba745187d1db5514494663a3593164df | [
"MIT"
] | 5 | 2019-06-21T06:18:05.000Z | 2020-09-18T02:28:25.000Z | #!/usr/bin/env python3
# coding: utf-8
| 21.727273 | 89 | 0.604603 |
80531b697895746684ba9714966e08d58ab136a8 | 9,185 | py | Python | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/joywalk_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | null | null | null | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/joywalk_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | null | null | null | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/joywalk_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | 1 | 2019-12-23T05:06:26.000Z | 2019-12-23T05:06:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] ta... | 46.624365 | 170 | 0.632771 |
8053471a9ddfed22d7cd5f0e66617f4be8f9c913 | 789 | py | Python | see-escalation-find-all.py | footoredo/pytorch-a2c-ppo-acktr-gail | 3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0 | [
"MIT"
] | null | null | null | see-escalation-find-all.py | footoredo/pytorch-a2c-ppo-acktr-gail | 3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0 | [
"MIT"
] | null | null | null | see-escalation-find-all.py | footoredo/pytorch-a2c-ppo-acktr-gail | 3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
import joblib
import json
import numpy as np
import sys
DIR = "./sync-results/escalation-gw/find-all-50-other-play/"
for folder in sorted(Path(os.path.abspath(DIR)).iterdir(), key=os.path.getmtime):
try:
full_path = os.path.join(DIR, folder, "findings.obj")
try:
... | 28.178571 | 81 | 0.623574 |
8053ce47f182fba88eda0f37079062c6b26f462b | 5,697 | py | Python | cte/1.xml2txt/app.py | xiabo0816/zhuanli | fe21210b00f7da0cb258c0050deaf475eac128a5 | [
"Unlicense"
] | null | null | null | cte/1.xml2txt/app.py | xiabo0816/zhuanli | fe21210b00f7da0cb258c0050deaf475eac128a5 | [
"Unlicense"
] | null | null | null | cte/1.xml2txt/app.py | xiabo0816/zhuanli | fe21210b00f7da0cb258c0050deaf475eac128a5 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
from lxml import etree
import lxml
import argparse
import os
import argparse
from tqdm import tqdm
import time
import threading
import regex
from io import StringIO, BytesIO
import zipfile
# https://www.w3school.com.cn/xpath/xpath_syntax.asp
# https://lxml.de/
#
if __name__ == '__m... | 32.554286 | 108 | 0.585922 |
80565e10fd9e73420aa3d1a44436994e9aca11f5 | 1,858 | py | Python | tests/correctly_installed.py | lifengjin/transition-amr-parser | ec1f854fda520de97fc4e4c5f5e03133aab0560f | [
"Apache-2.0"
] | 1 | 2021-07-08T08:24:21.000Z | 2021-07-08T08:24:21.000Z | tests/correctly_installed.py | lifengjin/transition-amr-parser | ec1f854fda520de97fc4e4c5f5e03133aab0560f | [
"Apache-2.0"
] | null | null | null | tests/correctly_installed.py | lifengjin/transition-amr-parser | ec1f854fda520de97fc4e4c5f5e03133aab0560f | [
"Apache-2.0"
] | 1 | 2021-07-08T08:24:22.000Z | 2021-07-08T08:24:22.000Z | import torch
import subprocess
from torch.utils.cpp_extension import CUDAExtension
if __name__ == '__main__':
# Pytorch and CUDA
print()
print(f'pytorch {torch.__version__}')
if torch.cuda.is_available():
print(f'cuda {torch.version.cuda}')
# happens when CUDA missconfigured
... | 32.034483 | 93 | 0.667922 |
8056f250d94ce7f3866f728e1e595d1a463b4b91 | 437 | py | Python | publications/migrations/0015_auto_20201015_0250.py | MarkJaroski/aho-dev-dct | 75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7 | [
"MIT"
] | null | null | null | publications/migrations/0015_auto_20201015_0250.py | MarkJaroski/aho-dev-dct | 75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7 | [
"MIT"
] | null | null | null | publications/migrations/0015_auto_20201015_0250.py | MarkJaroski/aho-dev-dct | 75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2020-10-14 23:50
from django.db import migrations, models
| 23 | 73 | 0.633867 |
80570e057a980aa667e5b87368933ad6ee43efcd | 6,120 | py | Python | DeblurGANv2/project_lib/losses.py | gcinbis/deep-generative-models-spring20 | d377bd63d5e79539477cca47c71462e5cc12adfa | [
"MIT"
] | 18 | 2020-07-06T10:47:26.000Z | 2021-05-30T11:43:17.000Z | DeblurGANv2/project_lib/losses.py | gcinbis/deep-generative-models-course-projects | d377bd63d5e79539477cca47c71462e5cc12adfa | [
"MIT"
] | 1 | 2022-03-12T00:39:12.000Z | 2022-03-12T00:39:12.000Z | DeblurGANv2/project_lib/losses.py | gcinbis/deep-generative-models-spring20 | d377bd63d5e79539477cca47c71462e5cc12adfa | [
"MIT"
] | 2 | 2020-07-13T20:46:44.000Z | 2020-10-01T13:15:25.000Z | import torch
import torch.nn as nn
import torchvision.models as models
import torchvision.transforms as transforms
import random
def discriminator_loss(sharp_scores, deblur_scores, SampleScores):
"""
Computes the DoubleScale RaGANLS Discriminator Loss.
LRaLSGAN definition= Ex[(D(x)- Ez[ D(G(z))]-1 )^2]... | 36.213018 | 151 | 0.658007 |
8058352e8e1025b9c39b593adc41b94758599897 | 1,102 | py | Python | expense/expense_entry.py | thinkstack-co/ConnectPyse | ded8b426250aee352598f33ad08b7bcc3c6a3017 | [
"MIT"
] | 23 | 2017-01-24T05:44:05.000Z | 2021-11-26T17:08:01.000Z | expense/expense_entry.py | thinkstack-co/ConnectPyse | ded8b426250aee352598f33ad08b7bcc3c6a3017 | [
"MIT"
] | 10 | 2017-01-14T21:11:10.000Z | 2019-06-16T21:10:29.000Z | expense/expense_entry.py | thinkstack-co/ConnectPyse | ded8b426250aee352598f33ad08b7bcc3c6a3017 | [
"MIT"
] | 16 | 2017-01-24T02:28:19.000Z | 2021-07-13T17:23:22.000Z | from ..cw_model import CWModel
| 38 | 64 | 0.587114 |
8058bafda972807f55fe861789d44c2fc4fc0172 | 3,255 | py | Python | PPAS_agent/dqn_agent/metrics.py | pedMatias/matias_hfo | 6d88e1043a1455f5c1f6cc11b9380869772f4176 | [
"MIT"
] | 1 | 2021-06-03T20:03:50.000Z | 2021-06-03T20:03:50.000Z | multi_agents/dqn_agent/metrics.py | pedMatias/matias_hfo | 6d88e1043a1455f5c1f6cc11b9380869772f4176 | [
"MIT"
] | null | null | null | multi_agents/dqn_agent/metrics.py | pedMatias/matias_hfo | 6d88e1043a1455f5c1f6cc11b9380869772f4176 | [
"MIT"
] | 1 | 2021-03-14T01:22:33.000Z | 2021-03-14T01:22:33.000Z | # !/usr/bin/hfo_env python3
# encoding utf-8
from collections import namedtuple
"""
This module is used to test the agent previous trained
"""
EpisodeMetrics = namedtuple(
'EpisodeMetrics', ['touched_ball', 'passed_ball', 'scored_goal']
)
| 33.90625 | 79 | 0.634101 |
8058d1cb85bb6ca5a109da8af0c99c070a0a0578 | 600 | py | Python | cubework/module/_entry_module.py | kurisusnowdeng/Cubework | 56c0d35f87765efc8f2b6d47a4ccea6f2ec626aa | [
"Apache-2.0"
] | null | null | null | cubework/module/_entry_module.py | kurisusnowdeng/Cubework | 56c0d35f87765efc8f2b6d47a4ccea6f2ec626aa | [
"Apache-2.0"
] | null | null | null | cubework/module/_entry_module.py | kurisusnowdeng/Cubework | 56c0d35f87765efc8f2b6d47a4ccea6f2ec626aa | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
| 31.578947 | 70 | 0.598333 |
8059c8bced6969b16c10dee35527aef3f9e904b2 | 2,607 | py | Python | ooobuild/lo/frame/desktop_task.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/frame/desktop_task.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/frame/desktop_task.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 28.648352 | 124 | 0.693517 |
8059d95151962aa5136040ec15fa0c5096751c9d | 83,265 | py | Python | sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | # Copyright (C) 2005, 2006, 2007 Michael Bayer mike_mp@zzzcomputing.com
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Define the base components of SQL expression trees."""
from sqlalchemy import util, exceptions, logging
from sqla... | 34.421248 | 253 | 0.628752 |
3374f0de05ac6c8c99f55e6ea413524eae8ce723 | 19,218 | py | Python | horizomer/benchmark/reformat_input.py | biocore/horizomer | 6b30d7f3b79f4f4ce7cc6502f5b820c9b53ab52e | [
"BSD-3-Clause"
] | 8 | 2017-10-17T12:27:07.000Z | 2021-08-09T14:34:05.000Z | horizomer/benchmark/reformat_input.py | biocore/WGS-HGT | 6b30d7f3b79f4f4ce7cc6502f5b820c9b53ab52e | [
"BSD-3-Clause"
] | 59 | 2015-09-11T22:22:39.000Z | 2017-05-30T18:31:15.000Z | horizomer/benchmark/reformat_input.py | biocore/WGS-HGT | 6b30d7f3b79f4f4ce7cc6502f5b820c9b53ab52e | [
"BSD-3-Clause"
] | 9 | 2015-09-10T17:55:22.000Z | 2017-02-22T05:47:13.000Z | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright (c) 2015--, The Horizomer Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------... | 33.834507 | 79 | 0.584972 |
337678c4ca17db22b704fe8316b0715ec39a1903 | 11,318 | py | Python | nbs/17_callback.tracker.py | huangyingw/fastai_fastai | 68ff76a21b2f70f44fb91885abcb73c1c213ec1a | [
"Apache-2.0"
] | 1 | 2022-02-06T22:11:10.000Z | 2022-02-06T22:11:10.000Z | nbs/17_callback.tracker.py | huangyingw/fastai_fastai | 68ff76a21b2f70f44fb91885abcb73c1c213ec1a | [
"Apache-2.0"
] | null | null | null | nbs/17_callback.tracker.py | huangyingw/fastai_fastai | 68ff76a21b2f70f44fb91885abcb73c1c213ec1a | [
"Apache-2.0"
] | null | null | null | # ---
# jupyter:
# jupytext:
# formats: ipynb,py
# split_at_heading: true
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.6.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# ... | 38.107744 | 448 | 0.690758 |
3377756caf446ee92705d76468e482dd3c3c56ac | 110 | py | Python | contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py | endothermicdev/lightning | c7d359baf455e5260dc5d126b05211279e186ef8 | [
"MIT"
] | null | null | null | contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py | endothermicdev/lightning | c7d359baf455e5260dc5d126b05211279e186ef8 | [
"MIT"
] | null | null | null | contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py | endothermicdev/lightning | c7d359baf455e5260dc5d126b05211279e186ef8 | [
"MIT"
] | null | null | null | __base_version__ = "1.0"
__post_version__ = "222"
__gitversion__ = "f1c797df2966237244527c1c6343dbe9bc765342"
| 27.5 | 59 | 0.827273 |
3377a3bd3f3d919bab7ca9757f1c2cbb6e8c4e7b | 8,248 | py | Python | MCTS.py | arijitnoobstar/OnitamaDeepRL | e561b22fe7728f51c1f1a078dfb19aa008bf010e | [
"Apache-2.0"
] | 3 | 2021-05-16T08:43:09.000Z | 2021-05-31T16:23:43.000Z | MCTS.py | mion666459/OnitamaAI | e561b22fe7728f51c1f1a078dfb19aa008bf010e | [
"Apache-2.0"
] | null | null | null | MCTS.py | mion666459/OnitamaAI | e561b22fe7728f51c1f1a078dfb19aa008bf010e | [
"Apache-2.0"
] | 1 | 2021-05-28T10:07:50.000Z | 2021-05-28T10:07:50.000Z | from std_imports import *
# random policy function used for MCTS
# Space Efficient representation of the Tree node class for MCTS
# Does not save the state, instead it uses reference values from action
# to play the game whenever the state is "set". Traversing a tree using
# such nodes is slow, but space efficient
#... | 36.334802 | 148 | 0.615907 |
3377ab4d402bece3c10bbb704ed335b82b661b18 | 614 | py | Python | plotting/plot_BPT.py | griffij/QuakeRates | 70069bb271a1987e72fcbdf3aa0c0a8a79591580 | [
"Apache-2.0"
] | null | null | null | plotting/plot_BPT.py | griffij/QuakeRates | 70069bb271a1987e72fcbdf3aa0c0a8a79591580 | [
"Apache-2.0"
] | null | null | null | plotting/plot_BPT.py | griffij/QuakeRates | 70069bb271a1987e72fcbdf3aa0c0a8a79591580 | [
"Apache-2.0"
] | null | null | null | """Plot some basic BPT distributions
"""
import os, sys
from matplotlib import pyplot as plt
import numpy as np
from scipy.stats import expon, gamma, weibull_min, invgauss
mu = 100
alphas = [ 0.5, 1., 2., 5., 10.]
#alpha = 1
x_vals = np.arange(0, 4*mu)
# Plot for a range of alpha values
for alpha in alphas:
bpt = ... | 24.56 | 59 | 0.710098 |
3377d7cced7a6e1a455c13090ea445c75d6794d8 | 2,125 | py | Python | vang/tfs/create_release_definition.py | mattiasl/scripts | e9245ce432b0dd5743506654ada52e017d0b6be0 | [
"Apache-2.0"
] | 6 | 2018-01-31T09:59:18.000Z | 2020-06-09T08:55:22.000Z | vang/tfs/create_release_definition.py | mattiasl/scripts | e9245ce432b0dd5743506654ada52e017d0b6be0 | [
"Apache-2.0"
] | null | null | null | vang/tfs/create_release_definition.py | mattiasl/scripts | e9245ce432b0dd5743506654ada52e017d0b6be0 | [
"Apache-2.0"
] | 2 | 2018-11-19T09:56:46.000Z | 2020-06-08T10:53:11.000Z | #!/usr/bin/env python3
import argparse
from json import dumps
from sys import argv
from vang.tfs.api import call
from vang.tfs.definition_utils import get_definition, get_definition_name
if __name__ == '__main__': # pragma: no cover
main(**parse_args(argv[1:]).__dict__)
| 34.836066 | 114 | 0.632 |
33785c10eb7a2f5238f0edbd3dfe035be9261d0c | 341 | py | Python | torchio/transforms/intensity_transform.py | soumickmj/torchio | 5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c | [
"MIT"
] | 1 | 2021-01-22T21:49:30.000Z | 2021-01-22T21:49:30.000Z | torchio/transforms/intensity_transform.py | soumickmj/torchio | 5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c | [
"MIT"
] | null | null | null | torchio/transforms/intensity_transform.py | soumickmj/torchio | 5ec12c7ea9bf9cfd70e17e90fcc03621272cef9c | [
"MIT"
] | null | null | null | from .transform import Transform
| 26.230769 | 58 | 0.741935 |
3378ef303c12c8524e4216c752fb54e286c0e239 | 1,483 | py | Python | ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py | paubrunet97/astrocytes | c21bbd2473adf68ef076356bcf578fb2ae14031f | [
"MIT"
] | 5 | 2020-11-06T18:35:57.000Z | 2021-04-30T07:16:42.000Z | ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py | paubrunet97/astrocytes | c21bbd2473adf68ef076356bcf578fb2ae14031f | [
"MIT"
] | 5 | 2020-11-05T13:39:28.000Z | 2021-12-09T04:37:30.000Z | ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py | paubrunet97/astrocytes | c21bbd2473adf68ef076356bcf578fb2ae14031f | [
"MIT"
] | 8 | 2020-09-25T10:07:15.000Z | 2022-03-11T06:26:30.000Z | #!/usr/bin/env python
# To use the API, copy these 4 lines on each Python file you create
from niryo_one_python_api.niryo_one_api import *
import rospy
import time
rospy.init_node('niryo_one_example_python_api')
print "--- Start"
n = NiryoOne()
try:
# Calibrate robot first
n.calibrate_auto()
print "Cal... | 24.716667 | 67 | 0.708024 |
33792464f4f074a587385ef57184dc0702fd16c5 | 1,560 | py | Python | lib/coloraide/spaces/din99o_lch.py | CodeByZach/sublime_color_helper | 9d881e1f036c886fedd94b026735c4727b7a34d3 | [
"MIT"
] | 14 | 2021-12-07T02:40:08.000Z | 2022-01-24T19:38:17.000Z | lib/coloraide/spaces/din99o_lch.py | CodeByZach/sublime_color_helper | 9d881e1f036c886fedd94b026735c4727b7a34d3 | [
"MIT"
] | null | null | null | lib/coloraide/spaces/din99o_lch.py | CodeByZach/sublime_color_helper | 9d881e1f036c886fedd94b026735c4727b7a34d3 | [
"MIT"
] | null | null | null | """Din99o Lch class."""
from ..spaces import RE_DEFAULT_MATCH
from .lch import Lch
from .. import util
import math
import re
from ..util import MutableVector
ACHROMATIC_THRESHOLD = 0.0000000002
def lch_to_lab(lch: MutableVector) -> MutableVector:
"""Din99o Lch to lab."""
l, c, h = lch
h = util.no_nan(h)... | 24 | 100 | 0.627564 |
3379417d5fd88f05297c00144ec0950b728cbbcd | 949 | py | Python | data-prep/download_weather_data.py | DanteLore/tfl-cycles | 21a1be93824fbbe4cfadd182755b7979ffbf84f0 | [
"MIT"
] | 1 | 2020-03-25T11:18:22.000Z | 2020-03-25T11:18:22.000Z | data-prep/download_weather_data.py | DanteLore/tfl-cycles | 21a1be93824fbbe4cfadd182755b7979ffbf84f0 | [
"MIT"
] | null | null | null | data-prep/download_weather_data.py | DanteLore/tfl-cycles | 21a1be93824fbbe4cfadd182755b7979ffbf84f0 | [
"MIT"
] | null | null | null | import os
import requests
import re
HEATHROW_URL= "https://www.metoffice.gov.uk/pub/data/weather/uk/climate/stationdata/heathrowdata.txt"
WEATHER_DIR = "../data/weather"
HEATHROW_FILE = WEATHER_DIR + "/heathrow.csv"
HEADER ="year,month,maximum_temp,minimum_temp,days_of_air_frost,total_rainfall,total_sunshine\n"
if __... | 35.148148 | 116 | 0.635406 |
3379ae605f4fe6dee7ca30fd5cb645c46ab4b219 | 4,277 | py | Python | scripts/real_data_novility.py | vafaei-ar/pymce | c01197b74fb515a0d6e400310c4d5c0ffad0f3c9 | [
"BSD-3-Clause"
] | 16 | 2019-09-11T12:53:15.000Z | 2021-12-09T12:07:51.000Z | scripts/real_data_novility.py | vafaei-ar/pymce | c01197b74fb515a0d6e400310c4d5c0ffad0f3c9 | [
"BSD-3-Clause"
] | null | null | null | scripts/real_data_novility.py | vafaei-ar/pymce | c01197b74fb515a0d6e400310c4d5c0ffad0f3c9 | [
"BSD-3-Clause"
] | 3 | 2019-12-12T08:55:44.000Z | 2021-08-23T04:37:53.000Z |
# coding: utf-8
# In[1]:
import drama as drm
import numpy as np
import matplotlib.pylab as plt
from matplotlib import gridspec
from sklearn.metrics import roc_auc_score
import os
import glob
import h5py
import scipy.io as sio
get_ipython().magic(u'matplotlib inline')
# In[12]:
fils = sorted(glob.glob('../data... | 28.324503 | 106 | 0.588964 |
337bbbb38e7729936c71cb97a400bd904bc7035f | 1,362 | py | Python | podcasts/models.py | bycristhian/vurapy | 12e35fb9373131181b1b8d4d5701fbbf4231dab8 | [
"MIT"
] | null | null | null | podcasts/models.py | bycristhian/vurapy | 12e35fb9373131181b1b8d4d5701fbbf4231dab8 | [
"MIT"
] | null | null | null | podcasts/models.py | bycristhian/vurapy | 12e35fb9373131181b1b8d4d5701fbbf4231dab8 | [
"MIT"
] | null | null | null |
# Django
from django.db import models
# Models
from django.contrib.auth.models import User
| 35.842105 | 94 | 0.763583 |
337bbc68170b4d83cd1dddafc374df6001cdf9ef | 2,776 | py | Python | server/receiver.py | ZeroxTM/IDEA-HMK-Cryptor-1 | 85dfa02aa1b941dd0245a27c46ddf02ef0fad1fa | [
"MIT"
] | null | null | null | server/receiver.py | ZeroxTM/IDEA-HMK-Cryptor-1 | 85dfa02aa1b941dd0245a27c46ddf02ef0fad1fa | [
"MIT"
] | null | null | null | server/receiver.py | ZeroxTM/IDEA-HMK-Cryptor-1 | 85dfa02aa1b941dd0245a27c46ddf02ef0fad1fa | [
"MIT"
] | null | null | null | __author__ = "Adam Mahameed"
__copyright__ = "2020 HMK-IDEA-Cryptor"
__credits__ = ["Adam Mahameed"]
__license__ = "MIT"
__email__ = "adam.mah315@gmail.com"
from Cryptors.DSA import DSA
from Cryptors.HMKnapsack import HMKnapsack
from pckgIDEA.IDEA import IDEA
KEY_SIZE = 128
| 38.027397 | 114 | 0.615274 |
337cb864f978111a5b51a0b099bf07d31bd9e99e | 1,562 | py | Python | apis_server/decorators.py | ilyde-platform/ilyde-apis | cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04 | [
"Apache-2.0"
] | null | null | null | apis_server/decorators.py | ilyde-platform/ilyde-apis | cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04 | [
"Apache-2.0"
] | null | null | null | apis_server/decorators.py | ilyde-platform/ilyde-apis | cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
#
# Copyright (c) 2020-2021 Hopenly srl.
#
# This file is part of Ilyde.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | 31.24 | 106 | 0.685659 |
337f01f7fab004df576400a43f1c3869a2c046af | 557 | py | Python | rclpy/examples_rclpy_topics/examples_rclpy_topics/subscriber.py | AtsukiYokota/examples_rclpy | 51c8d10623672ab91c88be3fd699e92fc0c07c41 | [
"Apache-2.0"
] | null | null | null | rclpy/examples_rclpy_topics/examples_rclpy_topics/subscriber.py | AtsukiYokota/examples_rclpy | 51c8d10623672ab91c88be3fd699e92fc0c07c41 | [
"Apache-2.0"
] | null | null | null | rclpy/examples_rclpy_topics/examples_rclpy_topics/subscriber.py | AtsukiYokota/examples_rclpy | 51c8d10623672ab91c88be3fd699e92fc0c07c41 | [
"Apache-2.0"
] | null | null | null | import rclpy
from rclpy.node import Node
from std_msgs.msg import String
if __name__ == '__main__':
main()
| 21.423077 | 54 | 0.694794 |
337f1b5807ffa83c345e8dafa91086d6a8ed3380 | 719 | py | Python | py/2015/day10/aoc_day_10.py | cs-cordero/advent-of-code | 614b8f78b43c54ef180a7dc411a0d1366a62944f | [
"MIT"
] | null | null | null | py/2015/day10/aoc_day_10.py | cs-cordero/advent-of-code | 614b8f78b43c54ef180a7dc411a0d1366a62944f | [
"MIT"
] | null | null | null | py/2015/day10/aoc_day_10.py | cs-cordero/advent-of-code | 614b8f78b43c54ef180a7dc411a0d1366a62944f | [
"MIT"
] | 2 | 2019-12-01T15:33:27.000Z | 2020-12-14T05:37:23.000Z | from typing import Generator, Tuple
assert solution("1", 5) == "312211"
PUZZLE_INPUT = "1113222113"
part1 = len(solution(PUZZLE_INPUT, 40))
print(f"Part 1: {part1}")
part2 = len(solution(PUZZLE_INPUT, 50))
print(f"Part 2: {part2}")
| 26.62963 | 72 | 0.617524 |
337f84cd9b42ebbb50233035031025d016c02ef3 | 676 | py | Python | app/main/forms.py | Charles-Ndugire/personal-blog | a56a80ea7602b713d08724d33636bf4e69fc9b06 | [
"MIT"
] | null | null | null | app/main/forms.py | Charles-Ndugire/personal-blog | a56a80ea7602b713d08724d33636bf4e69fc9b06 | [
"MIT"
] | 4 | 2021-06-08T22:09:18.000Z | 2022-03-12T00:44:04.000Z | app/main/forms.py | Charles-Ndugire/personal-blog | a56a80ea7602b713d08724d33636bf4e69fc9b06 | [
"MIT"
] | 1 | 2020-12-17T20:22:39.000Z | 2020-12-17T20:22:39.000Z | from . import main
from flask_wtf import FlaskForm
from wtforms import SubmitField,StringField,TextAreaField,SelectField
from wtforms.validators import Required
from ..models import Article,Comment
| 35.578947 | 77 | 0.761834 |
337f8be8a863ba3c83c574bea3199d4c04528548 | 2,526 | py | Python | russian_roulette.py | Study-Repos-Forks/Python-1 | 49353458404e5cb0e01deb0497c8d3cdc5e2e73f | [
"MIT"
] | null | null | null | russian_roulette.py | Study-Repos-Forks/Python-1 | 49353458404e5cb0e01deb0497c8d3cdc5e2e73f | [
"MIT"
] | null | null | null | russian_roulette.py | Study-Repos-Forks/Python-1 | 49353458404e5cb0e01deb0497c8d3cdc5e2e73f | [
"MIT"
] | null | null | null | """ author: Ataba29
the code is just a russian roulette game against
the computer
"""
from random import randrange
import time
main()
| 26.3125 | 96 | 0.511876 |
337f94e07f01f382312d5a5834d2533c67169194 | 2,318 | py | Python | entrepot/models.py | HunterPen/PmpApi | c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd | [
"Apache-2.0"
] | null | null | null | entrepot/models.py | HunterPen/PmpApi | c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd | [
"Apache-2.0"
] | null | null | null | entrepot/models.py | HunterPen/PmpApi | c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd | [
"Apache-2.0"
] | null | null | null | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if ... | 32.194444 | 104 | 0.710095 |
33812b3b1b19a16b3d3f2a404fb13f942417dd99 | 500 | py | Python | tests/page_template/test_page_template.py | Crown-Commercial-Service/govuk-frontend-jinja | ddbe208a976ffa4ca330881c506c5200dfa69851 | [
"MIT"
] | 7 | 2019-09-25T13:59:35.000Z | 2021-06-30T11:13:22.000Z | tests/page_template/test_page_template.py | Crown-Commercial-Service/govuk-frontend-jinja | ddbe208a976ffa4ca330881c506c5200dfa69851 | [
"MIT"
] | 23 | 2019-08-20T10:52:49.000Z | 2021-06-02T14:21:16.000Z | tests/page_template/test_page_template.py | Crown-Commercial-Service/govuk-frontend-jinja | ddbe208a976ffa4ca330881c506c5200dfa69851 | [
"MIT"
] | 6 | 2019-08-29T14:02:25.000Z | 2021-04-10T20:20:23.000Z | import pytest
import govuk_frontend_jinja
| 23.809524 | 82 | 0.716 |
33821cb4b0dc7fb87562a852e4ad10758b596f2a | 1,044 | py | Python | pip_services3_expressions-3.3.4/test/calculator/functions/test_FunctionCollection.py | pip-services3-python/pip-services3-expressions-python | 4ea237fbbba32e62f920e6be3bd48e6cc02184e5 | [
"MIT"
] | null | null | null | pip_services3_expressions-3.3.4/test/calculator/functions/test_FunctionCollection.py | pip-services3-python/pip-services3-expressions-python | 4ea237fbbba32e62f920e6be3bd48e6cc02184e5 | [
"MIT"
] | null | null | null | pip_services3_expressions-3.3.4/test/calculator/functions/test_FunctionCollection.py | pip-services3-python/pip-services3-expressions-python | 4ea237fbbba32e62f920e6be3bd48e6cc02184e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from pip_services3_expressions.calculator.functions.DelegatedFunction import DelegatedFunction
from pip_services3_expressions.calculator.functions.FunctionCollection import FunctionCollection
from pip_services3_expressions.variants.Variant import Variant
| 29.828571 | 96 | 0.700192 |
33879c2c16b04f8a3a3b96376e81baf0112fecb9 | 24,698 | py | Python | python/swagger_client/models/vehicle.py | chenxy285/directions-api-clients | 2abbeb16a23f4dc5aaaaff45d17750f2b65e6502 | [
"Apache-2.0"
] | 26 | 2017-06-15T17:30:09.000Z | 2021-12-04T10:45:30.000Z | python/swagger_client/models/vehicle.py | chenxy285/directions-api-clients | 2abbeb16a23f4dc5aaaaff45d17750f2b65e6502 | [
"Apache-2.0"
] | 34 | 2017-05-24T05:50:04.000Z | 2020-12-01T20:34:59.000Z | python/swagger_client/models/vehicle.py | chenxy285/directions-api-clients | 2abbeb16a23f4dc5aaaaff45d17750f2b65e6502 | [
"Apache-2.0"
] | 45 | 2017-05-24T04:02:09.000Z | 2022-01-18T00:21:39.000Z | # coding: utf-8
"""
GraphHopper Directions API
With the [GraphHopper Directions API](https://www.graphhopper.com/products/) you can integrate A-to-B route planning, turn-by-turn navigation, route optimization, isochrone calculations and other tools in your application. The GraphHopper Directions API consist... | 51.886555 | 8,986 | 0.661916 |
3387b51e3563f6d6eb4cedcfdeb3889d5b8b22d7 | 134,317 | py | Python | pysnmp_mibs/Printer-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/Printer-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/Printer-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module Printer-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/Printer-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:12:48 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( Obje... | 234.001742 | 10,859 | 0.735603 |
3388d44d8af3d576a8808c5daeaa2f3d405dd800 | 183 | py | Python | builder/Builder Pattern/BeforeBuilder3/__main__.py | Tomvictor/python-design-patterns | 6b99607d721bbe03d26a0a451a10e88cd1c1d112 | [
"MIT"
] | null | null | null | builder/Builder Pattern/BeforeBuilder3/__main__.py | Tomvictor/python-design-patterns | 6b99607d721bbe03d26a0a451a10e88cd1c1d112 | [
"MIT"
] | null | null | null | builder/Builder Pattern/BeforeBuilder3/__main__.py | Tomvictor/python-design-patterns | 6b99607d721bbe03d26a0a451a10e88cd1c1d112 | [
"MIT"
] | null | null | null | from computer import Computer
from mycomputer import MyComputer
builder = MyComputer()
builder.build_computer()
computer = builder.get_computer()
computer.display()
| 14.076923 | 34 | 0.743169 |
3389cc520bcd5c3160afa507c80f7f8499a2e5ea | 3,563 | py | Python | tutorials/mechanisms/tutorial_michaelismenten.py | AQ18/skimpy | 435fc50244f2ca815bbb39d525a82a4692f5c0ac | [
"Apache-2.0"
] | 13 | 2020-11-05T10:59:13.000Z | 2022-03-21T01:38:31.000Z | tutorials/mechanisms/tutorial_michaelismenten.py | AQ18/skimpy | 435fc50244f2ca815bbb39d525a82a4692f5c0ac | [
"Apache-2.0"
] | 4 | 2022-01-27T10:23:40.000Z | 2022-03-10T18:16:06.000Z | tutorials/mechanisms/tutorial_michaelismenten.py | AQ18/skimpy | 435fc50244f2ca815bbb39d525a82a4692f5c0ac | [
"Apache-2.0"
] | 6 | 2020-08-04T17:01:33.000Z | 2022-03-21T01:38:32.000Z | # -*- coding: utf-8 -*-
"""
.. module:: skimpy
:platform: Unix, Windows
:synopsis: Simple Kinetic Models in Python
.. moduleauthor:: SKiMPy team
[---------]
Copyright 2017 Laboratory of Computational Systems Biotechnology (LCSB),
Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland
Licens... | 30.982609 | 89 | 0.657311 |
338a7321f8c4550125a8a900551b7bd850eac6f3 | 981 | py | Python | WebScrapping/makePrelimTable.py | marcsze/pythonPrograms | b2fdc42f73a83948debdb4049f3b715854005579 | [
"MIT"
] | null | null | null | WebScrapping/makePrelimTable.py | marcsze/pythonPrograms | b2fdc42f73a83948debdb4049f3b715854005579 | [
"MIT"
] | null | null | null | WebScrapping/makePrelimTable.py | marcsze/pythonPrograms | b2fdc42f73a83948debdb4049f3b715854005579 | [
"MIT"
] | null | null | null | #! Python
if __name__ == '__main__': main() | 18.166667 | 59 | 0.611621 |
338ab460ecb80227bb2b6281bfef9dd2c57a9757 | 619 | py | Python | UVa Online Judge/v104/10433.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | 1 | 2021-12-08T08:58:43.000Z | 2021-12-08T08:58:43.000Z | UVa Online Judge/v104/10433.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v104/10433.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | # =============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 10433.py
# Description: UVa Online Judge - 10433
# =============================================================================
while True:... | 28.136364 | 79 | 0.421648 |
338ae74dca21eed87e61216b0a5b0cf376536b58 | 1,317 | py | Python | api/movies.py | saequus/fastapi-movies | a19f1e08058905ea97f9d3a0141419e7859b44ad | [
"MIT"
] | null | null | null | api/movies.py | saequus/fastapi-movies | a19f1e08058905ea97f9d3a0141419e7859b44ad | [
"MIT"
] | null | null | null | api/movies.py | saequus/fastapi-movies | a19f1e08058905ea97f9d3a0141419e7859b44ad | [
"MIT"
] | null | null | null | from fastapi.exceptions import HTTPException
from typing import List
from api.models import MovieIn, MovieOut
from fastapi import APIRouter
from api.db import get_all_movies, get_movie, add_movie, update_movie, delete_movie
movies_router = APIRouter()
| 29.266667 | 83 | 0.740319 |