hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
โŒ€
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
8caee3dbd16da48114fd3363e6f670aa34f3a008
3,456
py
Python
main.py
victorsevero/sevs-move
62f513c7184cd56c033bda421dec16b702fb1b04
[ "MIT" ]
null
null
null
main.py
victorsevero/sevs-move
62f513c7184cd56c033bda421dec16b702fb1b04
[ "MIT" ]
null
null
null
main.py
victorsevero/sevs-move
62f513c7184cd56c033bda421dec16b702fb1b04
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os import shutil import image_slicer import PIL.Image from pynput.keyboard import Key, Controller import subprocess import pandas as pd from tkinter import * import time # from IPython import embed PATH_BG = 'icons_with_bg\\' PATH_SLICES = 'slices\\' # def interface(): # top ...
24.167832
85
0.618634
0
0
0
0
0
0
0
0
746
0.215669
8caf6ff99d80c76a542d8a7fdffc2f654af14a1f
42
py
Python
helpers/__init__.py
sspbft/odin
30681d314748523cfbade15fc365510c78bbc711
[ "MIT" ]
null
null
null
helpers/__init__.py
sspbft/odin
30681d314748523cfbade15fc365510c78bbc711
[ "MIT" ]
null
null
null
helpers/__init__.py
sspbft/odin
30681d314748523cfbade15fc365510c78bbc711
[ "MIT" ]
null
null
null
"""Package containing various helpers."""
21
41
0.738095
0
0
0
0
0
0
0
0
41
0.97619
8cb1703d69bcca54d3660bd5eb995176d608f088
1,790
py
Python
ch04/ex05.py
lee-hyeonseung/lab_dl
b8906247b6e0e2586f538081e2efaf47dac34972
[ "MIT" ]
1
2020-01-08T09:14:46.000Z
2020-01-08T09:14:46.000Z
ch04/ex05.py
lee-hyeonseung/lab_dl
b8906247b6e0e2586f538081e2efaf47dac34972
[ "MIT" ]
null
null
null
ch04/ex05.py
lee-hyeonseung/lab_dl
b8906247b6e0e2586f538081e2efaf47dac34972
[ "MIT" ]
null
null
null
import numpy as np def numerical_diff(fn, x): """ Numerical Differential ํ•จ์ˆ˜ fn๊ณผ ์  x๊ฐ€ ์ฃผ์–ด์กŒ์„ ๋•Œ, x์—์„œ์˜ ํ•จ์ˆ˜ fn์˜ ๋ฏธ๋ถ„(๋„ํ•จ์ˆ˜) ๊ฐ’""" h = 1e-4 # 0.0001 return (fn(x + h) - fn(x - h)) / (2 * h) def f1(x): return 0.001 * x **2 + 0.01 * x def f1_prime(x): """๊ทผ์‚ฌ๊ฐ’์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š์€ ํ•จ์ˆ˜ f1์˜ ๋„ํ•จ์ˆ˜""" return 0.002 * x + 0...
24.520548
68
0.520112
0
0
0
0
0
0
0
0
790
0.390702
8cb71fe9be3f0683efa81efd43d2bbd8f86fa89d
5,628
py
Python
pureport_client/commands/accounts/audit_log.py
ellievaughn/pureport-python-client
e0c80c7200549723820169da3d137dd771be3f11
[ "MIT" ]
4
2019-04-29T17:45:41.000Z
2019-07-24T15:47:04.000Z
pureport_client/commands/accounts/audit_log.py
ellievaughn/pureport-python-client
e0c80c7200549723820169da3d137dd771be3f11
[ "MIT" ]
17
2019-05-27T23:35:31.000Z
2020-10-26T11:41:10.000Z
pureport_client/commands/accounts/audit_log.py
ellievaughn/pureport-python-client
e0c80c7200549723820169da3d137dd771be3f11
[ "MIT" ]
2
2020-07-14T11:40:32.000Z
2020-09-23T19:51:53.000Z
# -*- coding: utf-8 -*_ # # Copyright (c) 2020, Pureport, Inc. # All Rights Reserved from __future__ import absolute_import from click import ( option, Choice ) from pureport_client.helpers import format_date from pureport_client.commands import ( CommandBase, AccountsMixin ) EVENT_TYPES = ('USER_L...
43.96875
100
0.614428
3,655
0.649431
0
0
3,549
0.630597
0
0
3,231
0.574094
8cb73515afe2c119b5f6d38d0a2b556bf02c8217
3,694
py
Python
extras.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
extras.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
extras.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
import os from tqdm import tqdm import numpy as np import pandas as pd import os import pdb import cv2 import time import json import torch import random import scipy import logging import traceback import numpy as np from datetime import datetime # from config import HOME from tensorboard_logger import log_value, log...
28.635659
78
0.636167
0
0
0
0
0
0
0
0
1,126
0.304819
8cb9d99f25ca4d88bf464b8e38a7ea2815155e6f
762
py
Python
polling_stations/apps/data_importers/management/commands/import_scarborough.py
DemocracyClub/UK-Polling-Stations
d5c428fc7fbccf0c13a84fa0045dfd332b2879e7
[ "BSD-3-Clause" ]
29
2015-03-10T08:41:34.000Z
2022-01-12T08:51:38.000Z
polling_stations/apps/data_importers/management/commands/import_scarborough.py
DemocracyClub/UK-Polling-Stations
d5c428fc7fbccf0c13a84fa0045dfd332b2879e7
[ "BSD-3-Clause" ]
4,112
2015-04-01T21:27:38.000Z
2022-03-31T19:22:11.000Z
polling_stations/apps/data_importers/management/commands/import_scarborough.py
DemocracyClub/UK-Polling-Stations
d5c428fc7fbccf0c13a84fa0045dfd332b2879e7
[ "BSD-3-Clause" ]
31
2015-03-18T14:52:50.000Z
2022-02-24T10:31:07.000Z
from data_importers.management.commands import BaseHalaroseCsvImporter class Command(BaseHalaroseCsvImporter): council_id = "SCE" addresses_name = "2021-11-10T10:12:49.277177/polling_station_export-2021-11-10.csv" stations_name = "2021-11-10T10:12:49.277177/polling_station_export-2021-11-10.csv" elect...
30.48
87
0.620735
688
0.902887
0
0
0
0
0
0
256
0.335958
8cba3acfbc1a50238c1a027941fbc4491ae9149b
1,178
py
Python
ccfx/scripts/testthreadingutil.py
ytetsuwo/ccfinder-core
e20f390e8d26f900c68d8656b9cfb9cbaa3716d9
[ "MIT" ]
2
2019-10-27T08:01:19.000Z
2021-12-20T07:53:02.000Z
ccfx/scripts/testthreadingutil.py
ytetsuwo/ccfinder-core
e20f390e8d26f900c68d8656b9cfb9cbaa3716d9
[ "MIT" ]
5
2019-05-02T16:36:39.000Z
2019-05-12T16:04:45.000Z
ccfx/scripts/testthreadingutil.py
ytetsuwo/ccfinder-core
e20f390e8d26f900c68d8656b9cfb9cbaa3716d9
[ "MIT" ]
2
2019-08-04T13:21:51.000Z
2021-03-07T00:18:36.000Z
import threadingutil import sys import random import time random.seed(0) def f(v): # this function must be declared at global scope, in order to make it visible to subprocess. time.sleep(random.random() * 2.0) return v * v if __name__ == '__main__': usage = "Usage: testthreadingutil.py [NUMWORKER [INPU...
26.772727
119
0.596774
0
0
78
0.066214
0
0
0
0
347
0.294567
8cbc17eb08f7d57b4a914ccc5109e1694aa14ad8
648
py
Python
src/server.py
openbrisk/brisk-runtime-python
766cea7749f0f072eb36de1b05751a3e1c761533
[ "MIT" ]
null
null
null
src/server.py
openbrisk/brisk-runtime-python
766cea7749f0f072eb36de1b05751a3e1c761533
[ "MIT" ]
null
null
null
src/server.py
openbrisk/brisk-runtime-python
766cea7749f0f072eb36de1b05751a3e1c761533
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import sys import imp import os from flask import Flask, request, abort, g app = Flask(__name__) @app.route('/healthz', methods=['GET']) def healthz(): return "", 200, { 'Content-Type': 'text/plain' } def configure_logging(logLevel): global app root = logging.getLog...
24
83
0.695988
0
0
0
0
107
0.165123
0
0
141
0.217593
8cbee8bc9e37824427f878a582ea24c70d8c204c
1,400
py
Python
slybot/slybot/utils.py
rmcwilliams2004/mapping
55f97e61fc558d243a0806ae8bf4a26b080026de
[ "BSD-3-Clause" ]
8
2015-03-16T20:30:50.000Z
2021-09-21T13:05:46.000Z
slybot/slybot/utils.py
btomashvili/portia
9039140269f2cfca588a1feec6cc793cba87f202
[ "BSD-3-Clause" ]
1
2018-10-24T09:29:00.000Z
2018-10-24T09:29:00.000Z
slybot/slybot/utils.py
btomashvili/portia
9039140269f2cfca588a1feec6cc793cba87f202
[ "BSD-3-Clause" ]
4
2015-02-01T01:17:45.000Z
2022-03-04T06:07:25.000Z
from urlparse import urlparse import os import json from scrapely.htmlpage import HtmlPage def iter_unique_scheme_hostname(urls): """Return an iterator of tuples (scheme, hostname) over the given urls, filtering dupes """ scheme_hostname = set() for x in urls: p = urlparse(x) schem...
36.842105
96
0.638571
0
0
0
0
0
0
0
0
258
0.184286
8cbf9d0c7839d5ffdf3819b9203c774340d2b8a5
413
py
Python
reppy/util.py
PLPeeters/reppy
7a1aceb273c25b47908a6f81cdd894da72798b45
[ "MIT" ]
137
2015-02-11T17:39:16.000Z
2022-03-03T22:04:51.000Z
reppy/util.py
PLPeeters/reppy
7a1aceb273c25b47908a6f81cdd894da72798b45
[ "MIT" ]
73
2015-01-05T18:58:45.000Z
2021-04-16T11:53:19.000Z
reppy/util.py
PLPeeters/reppy
7a1aceb273c25b47908a6f81cdd894da72798b45
[ "MIT" ]
40
2015-02-27T17:22:03.000Z
2022-02-19T16:34:43.000Z
'''Utility functions.''' import email def parse_date(string): '''Return a timestamp for the provided datestring, described by RFC 7231.''' parsed = email.utils.parsedate_tz(string) if parsed is None: raise ValueError("Invalid time.") parsed = list(parsed) # Default time zone is GMT/UTC ...
27.533333
80
0.682809
0
0
0
0
0
0
0
0
145
0.35109
8cbfb27786acd690d2a47ce15ea1c10002446ef7
43,121
py
Python
bin/design.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
58
2018-01-24T16:31:37.000Z
2022-02-25T07:46:35.000Z
bin/design.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
29
2018-04-17T17:36:06.000Z
2022-02-25T11:48:58.000Z
bin/design.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
16
2018-05-23T12:19:41.000Z
2021-08-09T04:16:00.000Z
#!/usr/bin/env python3 """Design probes for genome capture. This is the main executable of CATCH for probe design. """ import argparse import importlib import logging import os import random from catch import coverage_analysis from catch import probe from catch.filter import adapter_filter from catch.filter import d...
50.316219
91
0.616475
0
0
0
0
0
0
0
0
22,461
0.520883
8cc0682cc0b1ed8dabfc6863bc76066c537d9cd6
51
py
Python
autograd/__init__.py
mattjj/autograd_tutorial
c32947fbd7f130d791ab1e277a0feed05cb3da5f
[ "MIT" ]
704
2018-01-30T16:41:47.000Z
2022-03-23T02:03:08.000Z
autograd/__init__.py
mattjj/autograd_tutorial
c32947fbd7f130d791ab1e277a0feed05cb3da5f
[ "MIT" ]
6
2018-01-30T20:43:49.000Z
2020-04-27T13:27:08.000Z
autograd/__init__.py
mattjj/autograd_tutorial
c32947fbd7f130d791ab1e277a0feed05cb3da5f
[ "MIT" ]
88
2018-02-03T16:36:54.000Z
2022-02-09T04:21:30.000Z
from .differential_operators import make_vjp, grad
25.5
50
0.862745
0
0
0
0
0
0
0
0
0
0
8cc0ae2e9a623354a047f26bbb36e199b6e49eb8
2,975
py
Python
propara/utils/prostruct_predicted_json_to_tsv_grid.py
keisks/propara
49fa8fe0481291df18b2c7b48e7ba1dafaad48e2
[ "Apache-2.0" ]
84
2018-06-02T02:00:53.000Z
2022-03-13T12:17:42.000Z
propara/utils/prostruct_predicted_json_to_tsv_grid.py
keisks/propara
49fa8fe0481291df18b2c7b48e7ba1dafaad48e2
[ "Apache-2.0" ]
3
2018-10-31T00:28:31.000Z
2020-05-12T01:06:53.000Z
propara/utils/prostruct_predicted_json_to_tsv_grid.py
keisks/propara
49fa8fe0481291df18b2c7b48e7ba1dafaad48e2
[ "Apache-2.0" ]
13
2018-09-14T20:37:51.000Z
2021-03-23T09:24:49.000Z
import json import sys from pprint import pprint from processes.data.propara_dataset_reader import Action # Input: json format generated by ProparaPredictor # paraid": "1114", # "sentence_texts": ["Rainwater falls onto the soil.", "The rainwater seeps into the soil.",...."], # "participants": ["rainwater; water", "...
43.75
139
0.644034
0
0
0
0
0
0
0
0
770
0.258824
8cc1bbd922f5bc29a45d3aa2e4e041703bf3da65
4,231
py
Python
impede-app/server/py/filter_library.py
ThatSnail/impede
126a85a4efc6d6699a383b86ffcef35743cafb33
[ "MIT" ]
1
2016-02-01T22:54:02.000Z
2016-02-01T22:54:02.000Z
impede-app/server/py/filter_library.py
ThatSnail/impede
126a85a4efc6d6699a383b86ffcef35743cafb33
[ "MIT" ]
null
null
null
impede-app/server/py/filter_library.py
ThatSnail/impede
126a85a4efc6d6699a383b86ffcef35743cafb33
[ "MIT" ]
null
null
null
""" Module that contains some example filters """ import numpy as np import matplotlib.pyplot as plt from graph import Node, Edge, Graph from resistor import Resistor from capacitor import Capacitor from diode import Diode from opamp import Opamp from wire import Wire from units import Units from filter import Filte...
32.79845
90
0.676436
0
0
0
0
0
0
0
0
667
0.157646
8cc1d660bbd21361e77d7c6470d18d4cac04510e
2,493
py
Python
main_rpi.py
adadesions/AutoWestBin
3156292693426b627d0b24981e8da557ea58be92
[ "BSD-3-Clause" ]
null
null
null
main_rpi.py
adadesions/AutoWestBin
3156292693426b627d0b24981e8da557ea58be92
[ "BSD-3-Clause" ]
6
2020-09-26T01:05:13.000Z
2022-03-12T00:29:41.000Z
main_rpi.py
adadesions/AutoWestBin
3156292693426b627d0b24981e8da557ea58be92
[ "BSD-3-Clause" ]
null
null
null
from imageai.Prediction import ImagePrediction import cv2 import os import time import RPi.GPIO as gpio def my_prediction(img_path, prob): result = {} execution_path = os.getcwd() prediction = ImagePrediction() prediction.setModelTypeAsResNet() prediction.setModelPath(os.path.join(execution_path, "...
27.7
113
0.606097
0
0
0
0
0
0
0
0
694
0.278379
8cc3cf10fda2a01f3a17c60d56fd79e90e75b690
1,290
py
Python
example/mini_mnist/rename_nodes.py
ciandt-d1/tf_image_classification
76ff4cb9ec35418eb20ea3240221bbfb88970737
[ "MIT" ]
null
null
null
example/mini_mnist/rename_nodes.py
ciandt-d1/tf_image_classification
76ff4cb9ec35418eb20ea3240221bbfb88970737
[ "MIT" ]
null
null
null
example/mini_mnist/rename_nodes.py
ciandt-d1/tf_image_classification
76ff4cb9ec35418eb20ea3240221bbfb88970737
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import sys import os import argparse import logging import tensorflow as tf from cnn_architecture_inception_v4 import cnn_architecture tf.logging.set_verbosity(tf.logging.INFO) # Set default flags for the output directories FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_s...
25.8
73
0.714729
0
0
0
0
0
0
0
0
284
0.220155
8cc58816df23d3d88b38c25c7d3009e7519f3e78
2,458
py
Python
pyopentsdb/put.py
mikecokina/pyopentsdb
b8d78e8f42aed4ebbd6ac3aff925071de41d6b52
[ "MIT" ]
2
2018-05-09T08:34:30.000Z
2018-09-25T22:42:09.000Z
pyopentsdb/put.py
mikecokina/pyopentsdb
b8d78e8f42aed4ebbd6ac3aff925071de41d6b52
[ "MIT" ]
2
2018-12-24T10:51:30.000Z
2019-01-21T13:55:11.000Z
pyopentsdb/put.py
mikecokina/pyopentsdb
b8d78e8f42aed4ebbd6ac3aff925071de41d6b52
[ "MIT" ]
null
null
null
from pyopentsdb.utils import request_post from pyopentsdb import errors def validate_put_data(data): if isinstance(data, dict): data = [data] for d in data: if not d.get('metric') or not d.get('timestamp') or not d.get('value') or not d.get('tags'): raise errors.MissingArgumentErr...
42.37931
114
0.603743
0
0
0
0
0
0
0
0
1,193
0.485354
8cc589b6aacef8f45330b91b841767184bdc1a72
1,848
py
Python
preprocessing/twitterData.py
aldifahrezi/NLP_3A
66e1e7fa84bf4af0b0760cf350c43ef75ff72542
[ "Apache-2.0" ]
null
null
null
preprocessing/twitterData.py
aldifahrezi/NLP_3A
66e1e7fa84bf4af0b0760cf350c43ef75ff72542
[ "Apache-2.0" ]
null
null
null
preprocessing/twitterData.py
aldifahrezi/NLP_3A
66e1e7fa84bf4af0b0760cf350c43ef75ff72542
[ "Apache-2.0" ]
null
null
null
import re import csv import nltk """docstring for twitterClean""" def __init__(self): super(twitterClean, self).__init__() def renameUser(corpus): _new = [] for _temp in corpus: _temp = re.sub( r'(^|[^@\w])@(\w{1,15})\b','',_temp) _new.append(_temp) retu...
26.782609
71
0.588745
0
0
0
0
0
0
0
0
291
0.157468
8cc61c995bb4f660479b7eb7a1926b0e87dfaec1
894
py
Python
wwwroot/cgi-bin/NetDict/format_conversion.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
1
2019-04-15T04:23:53.000Z
2019-04-15T04:23:53.000Z
wwwroot/cgi-bin/NetDict/format_conversion.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
null
null
null
wwwroot/cgi-bin/NetDict/format_conversion.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import pymysql import sys reload(sys) sys.setdefaultencoding('utf8') base = {} def write_file(): fp = open("/home/zanda/Desktop/PythonCode/new_formatted_data", "w+") for word, meaning in base.items(): fp.write(word + "\3" + meaning + "\n") fp.close() def...
23.526316
80
0.558166
0
0
0
0
0
0
0
0
341
0.351546
8cc6690d4201d4fa3d78af7391584f7477660468
2,161
py
Python
app/old/results_to_csv-mo.py
jpenney78/usabmx_results
7301ba82c8c24f978d9d2196f6cb4311cb85b033
[ "MIT" ]
null
null
null
app/old/results_to_csv-mo.py
jpenney78/usabmx_results
7301ba82c8c24f978d9d2196f6cb4311cb85b033
[ "MIT" ]
null
null
null
app/old/results_to_csv-mo.py
jpenney78/usabmx_results
7301ba82c8c24f978d9d2196f6cb4311cb85b033
[ "MIT" ]
null
null
null
#!/usr/bin/env python from bs4 import BeautifulSoup import urllib2 import re import sys import collections #with open('grands.html') as f: # soup = BeautifulSoup(f, 'html.parser') url = sys.argv[-1] page = urllib2.urlopen(url) soup = BeautifulSoup(page, 'html.parser') groups = soup.findAll('h4', class_='race-resul...
28.064935
139
0.541416
0
0
0
0
0
0
0
0
607
0.280888
8cc70168627807f49cf2b5d78f4a3cbbdad4ed64
46
py
Python
bmcs_beam/mxn/scripts/__init__.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
1
2021-05-07T11:10:27.000Z
2021-05-07T11:10:27.000Z
bmcs_beam/mxn/scripts/__init__.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
bmcs_beam/mxn/scripts/__init__.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
''' Created on Dec 18, 2016 @author: rch '''
7.666667
23
0.586957
0
0
0
0
0
0
0
0
45
0.978261
8cc8bbe3155b2a365f5d5828b375c3db252991ed
28,180
py
Python
upvote_post_comments_timebased.py
YuurinBee/steemrewarding
3bec63381e3ebe6a5131b4694237e27258251551
[ "MIT" ]
13
2019-01-27T05:53:46.000Z
2021-07-25T23:24:38.000Z
upvote_post_comments_timebased.py
YuurinBee/steemrewarding
3bec63381e3ebe6a5131b4694237e27258251551
[ "MIT" ]
1
2019-08-22T09:29:34.000Z
2019-08-22T09:29:34.000Z
upvote_post_comments_timebased.py
YuurinBee/steemrewarding
3bec63381e3ebe6a5131b4694237e27258251551
[ "MIT" ]
13
2019-04-04T04:17:25.000Z
2021-08-02T12:55:24.000Z
from beem.utils import formatTimeString, resolve_authorperm, construct_authorperm, addTzInfo from beem.nodelist import NodeList from beem.comment import Comment from beem import Steem from beem.account import Account from beem.instance import set_shared_steem_instance from beem.blockchain import Blockchain import time ...
67.740385
282
0.610752
0
0
0
0
0
0
0
0
8,833
0.313449
8cca8d879ebb48981faec1a262d979d1e0c2e298
13,639
py
Python
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
1
2021-03-30T20:49:54.000Z
2021-03-30T20:49:54.000Z
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
null
null
null
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlpiot/proto/scene_description.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbo...
45.768456
1,384
0.768311
0
0
0
0
0
0
0
0
3,654
0.267908
8ccaa31f1cc37e58d280f157b7d7178e0c6240da
6,385
py
Python
main.py
Gaurav3009/SoftCoputingpROJECT
9ece2cbe9d191308cad4166d9c68bc5bc748532c
[ "CC0-1.0" ]
null
null
null
main.py
Gaurav3009/SoftCoputingpROJECT
9ece2cbe9d191308cad4166d9c68bc5bc748532c
[ "CC0-1.0" ]
null
null
null
main.py
Gaurav3009/SoftCoputingpROJECT
9ece2cbe9d191308cad4166d9c68bc5bc748532c
[ "CC0-1.0" ]
null
null
null
import pygame import random import math import numpy as np from pygame import mixer x = np.array(([723, 123.4000000000003], [121, 133.40000000000038], [586, 125.40000000000032]), dtype=float ) y = np.array(([99], [86], [89]), dtype=float ) # Scaled Units x = x / np.amax ( x, axis=0 ) y = y / 100 # max...
26.168033
109
0.549883
1,273
0.199374
0
0
0
0
0
0
668
0.10462
8ccc3f085556e9b031c98cfec64f5d267b519580
3,771
py
Python
include/fetchfile.py
dongniu/cadnano2
6805fe2af856c59b06373c0ee0142ad6bc286262
[ "Unlicense" ]
17
2015-02-07T03:46:49.000Z
2021-09-25T09:23:41.000Z
include/fetchfile.py
scholer/cadnano2
0b8bba1ab3277ac9859ef78615890d351561784c
[ "Unlicense" ]
2
2017-08-22T03:17:16.000Z
2021-07-03T14:42:41.000Z
include/fetchfile.py
scholer/cadnano2
0b8bba1ab3277ac9859ef78615890d351561784c
[ "Unlicense" ]
9
2015-09-06T22:41:38.000Z
2022-03-27T13:57:37.000Z
#!/usr/bin/env python # encoding: utf-8 # The MIT License # # Copyright (c) 2011 Wyss Institute at Harvard University # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, i...
33.669643
79
0.629011
0
0
0
0
0
0
0
0
1,809
0.479714
8ccc7527ffc47c5ff344fbc2004901e2de010bf4
242
py
Python
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
null
null
null
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
2
2021-03-25T22:14:36.000Z
2021-06-01T22:51:34.000Z
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 class BaseException(Exception): def __init__(self, code, msg): self.code = code self.msg = msg def __str__(self): return '<%s %s>' % (self.__class__.__name__, self.code)
20.166667
63
0.607438
203
0.838843
0
0
0
0
0
0
44
0.181818
8cccebd0d964c1db537e29204485613a1e3bfc4a
4,410
py
Python
pyjs/tests/test-report.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
1
2018-09-19T09:14:16.000Z
2018-09-19T09:14:16.000Z
pyjs/tests/test-report.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pyjs/tests/test-report.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
1
2019-11-18T14:17:59.000Z
2019-11-18T14:17:59.000Z
#!/usr/bin/env python import sys import difflib differ = difflib.HtmlDiff() class Coverage: def __init__(self, testset_name): self.testset_name = testset_name self.lines = {} def tracer(self, frame, event, arg): lineno = frame.f_lineno filename = frame.f_globals["__file__"] ...
23.089005
162
0.506576
2,475
0.561224
0
0
0
0
0
0
2,069
0.469161
8ccdb14c011a11d11901d7ef7caff934dda6ac3a
763
py
Python
datasets/pytorch_provider.py
ikhlestov/XNOR-Net
b95a57911858b9d750366c0d9d5e46ab3c7bf220
[ "MIT" ]
13
2017-08-25T07:45:48.000Z
2022-02-06T14:46:37.000Z
datasets/pytorch_provider.py
ikhlestov/XNOR-Net
b95a57911858b9d750366c0d9d5e46ab3c7bf220
[ "MIT" ]
null
null
null
datasets/pytorch_provider.py
ikhlestov/XNOR-Net
b95a57911858b9d750366c0d9d5e46ab3c7bf220
[ "MIT" ]
6
2017-08-10T19:53:09.000Z
2018-04-21T03:31:33.000Z
import torch import torchvision import torchvision.transforms as transforms transform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) def get_loaders(batch_size): trainset = torchvision.datasets.CIFAR10( root='/tmp/cifar10', train=True, ...
28.259259
61
0.686763
0
0
0
0
0
0
0
0
28
0.036697
8ccf7d8c58166e297f3266ddf7b93c9e740f2087
1,582
py
Python
pymilvus_orm/__init__.py
PahudPlus/pymilvus-orm
78e2e38e71cff92ed6d243dcac85314230ce0fdc
[ "Apache-2.0" ]
null
null
null
pymilvus_orm/__init__.py
PahudPlus/pymilvus-orm
78e2e38e71cff92ed6d243dcac85314230ce0fdc
[ "Apache-2.0" ]
null
null
null
pymilvus_orm/__init__.py
PahudPlus/pymilvus-orm
78e2e38e71cff92ed6d243dcac85314230ce0fdc
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019-2020 Zilliz. 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 applicable law or ag...
29.849057
99
0.73641
0
0
0
0
0
0
0
0
652
0.412137
8ccfac24e337defd5868156614ec3178f582fb2f
1,550
py
Python
test/python/test_preemptive.py
plandes/util
20290b88406c7d4787857a80503af2de92b04cab
[ "MIT" ]
null
null
null
test/python/test_preemptive.py
plandes/util
20290b88406c7d4787857a80503af2de92b04cab
[ "MIT" ]
null
null
null
test/python/test_preemptive.py
plandes/util
20290b88406c7d4787857a80503af2de92b04cab
[ "MIT" ]
null
null
null
from typing import Iterable, Any import unittest from zensols.persist import ReadOnlyStash, PreemptiveStash class RangeStash(ReadOnlyStash): def __init__(self, n: int, end: int = None): super().__init__() self.n = n self.end = end self.keyed = False self.loaded = False ...
28.181818
66
0.589032
1,436
0.926452
0
0
0
0
0
0
0
0
8cd077908bea63bee9a58db575f3f5c0a02eb319
2,937
py
Python
scripts/tokenize_corpora.py
Mrpatekful/Pytorch-MT
65c53245a9ab0bf4f5d933a239de1bfd7be79c3f
[ "MIT" ]
7
2018-02-15T10:54:57.000Z
2018-03-07T16:53:35.000Z
scripts/tokenize_corpora.py
Mrpatekful/nmt-BMEVIAUAL01
65c53245a9ab0bf4f5d933a239de1bfd7be79c3f
[ "MIT" ]
null
null
null
scripts/tokenize_corpora.py
Mrpatekful/nmt-BMEVIAUAL01
65c53245a9ab0bf4f5d933a239de1bfd7be79c3f
[ "MIT" ]
null
null
null
""" """ import tqdm import argparse DEFAULT_INPUT = '/media/patrik/1EDB65B8599DD93E/data/eng/test' DEFAULT_OUTPUT = '/media/patrik/1EDB65B8599DD93E/data/eng/test_tok' DEFAULT_MIN = 3 DEFAULT_MAX = 60 def tokenize(word): sub_words = [] sub_word = '' for index, char in enumerate(word): if not c...
35.817073
111
0.578141
0
0
0
0
0
0
0
0
496
0.16888
8cd09fbcc54d1551c8b23bec979629192ae13b6e
4,192
py
Python
linux/lib/python2.7/dist-packages/samba/tests/ntacls.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
3
2015-10-31T10:39:25.000Z
2019-04-27T20:19:33.000Z
linux/lib/python2.7/dist-packages/samba/tests/ntacls.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
null
null
null
linux/lib/python2.7/dist-packages/samba/tests/ntacls.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
null
null
null
# Unix SMB/CIFS implementation. Tests for ntacls manipulation # Copyright (C) Matthieu Patou <mat@matws.net> 2009-2010 # Copyright (C) Andrew Bartlett 2012 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software ...
50.506024
179
0.70062
3,172
0.756679
0
0
0
0
0
0
2,134
0.509065
8cd0f31842c087bd945dcd13f2623103459a5e00
4,930
py
Python
data_filter_azure/data_filter_azure/documentdb_server.py
abhushansahu/contrib
c95f68c9dbb48507a06dab4a070efd892765a3a4
[ "Apache-2.0" ]
238
2017-04-27T20:53:16.000Z
2022-03-29T15:27:58.000Z
data_filter_azure/data_filter_azure/documentdb_server.py
abhushansahu/contrib
c95f68c9dbb48507a06dab4a070efd892765a3a4
[ "Apache-2.0" ]
88
2017-04-26T02:58:57.000Z
2022-03-30T20:05:25.000Z
data_filter_azure/data_filter_azure/documentdb_server.py
abhushansahu/contrib
c95f68c9dbb48507a06dab4a070efd892765a3a4
[ "Apache-2.0" ]
152
2017-04-27T18:28:25.000Z
2022-03-30T21:44:24.000Z
#!/usr/bin/env python import requests import base64 import json from flask import Flask,redirect, jsonify, abort, make_response, g import config from flask_bootstrap import Bootstrap import azure.common from data_filter_azure import opa import azure.cosmos.cosmos_client as cosmos_client app = Flask(__name__) Bootstrap...
28.333333
124
0.539351
0
0
0
0
394
0.079919
0
0
1,082
0.219473
8cd2916e88df0cf37c009472aa1b72d1e430bae2
4,310
py
Python
Database_Development/RunningSQLBackEnd/training.py
data-intelligence-analysis/dataworks_scripts
5148c33c42bef6d092fb1466b8970cb6961b97f0
[ "Apache-2.0" ]
3
2020-03-24T17:19:02.000Z
2020-04-28T05:18:50.000Z
Database_Development/RunningSQLBackEnd/training.py
data-intelligence-analysis/dataworks_scripts
5148c33c42bef6d092fb1466b8970cb6961b97f0
[ "Apache-2.0" ]
1
2021-06-29T17:19:03.000Z
2021-06-29T17:19:03.000Z
Database_Development/RunningSQLBackEnd/training.py
data-intelligence-analysis/dataworks_scripts
5148c33c42bef6d092fb1466b8970cb6961b97f0
[ "Apache-2.0" ]
null
null
null
from sqlite3 import connect ##Dennis Osafo def show_menu(): print("\n------") print ("MENU:") print ("_____") print ("1. Add a student") print ("2. Find a student") print ("3. Add a course") print ("4. Find a course") print ("5. Enroll a student") print ("6. Find Course(s) of a Stude...
32.651515
224
0.578422
0
0
0
0
0
0
0
0
1,830
0.424594
8cd34bcdcf56fd743fbd7490bad25836dd4f32f3
1,723
py
Python
res_mods/mods/packages/xvm_battle/python/battleloading.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
res_mods/mods/packages/xvm_battle/python/battleloading.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
1
2016-04-03T13:31:39.000Z
2016-04-03T16:48:26.000Z
res_mods/mods/packages/xvm_battle/python/battleloading.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
""" XVM (c) www.modxvm.com 2013-2017 """ ##################################################################### # imports import cgi import re import traceback import BigWorld from gui.Scaleform.daapi.view.battle.shared.battle_loading import BattleLoading from xfw import * from xvm_main.python.logger import * impor...
35.163265
112
0.608241
0
0
0
0
908
0.526988
0
0
653
0.37899
8cd36528540894945ddf92821a73804199e18f8f
3,021
py
Python
CV1_assignment3/problem1_Loesung.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
CV1_assignment3/problem1_Loesung.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
CV1_assignment3/problem1_Loesung.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
import numpy as np from scipy.ndimage import convolve, maximum_filter def gauss2d(sigma, fsize): """ Create a 2D Gaussian filter Args: sigma: width of the Gaussian filter fsize: (w, h) dimensions of the filter Returns: *normalized* Gaussian filter as (h, w) np.array """ m,...
26.5
92
0.604436
0
0
0
0
0
0
0
0
1,651
0.546508
8cd3b7d036cac276f28d4d2b1c5af63da168cbbd
15,856
py
Python
assignment2/comp411/classifiers/fc_net.py
kukalbriiwa7/COMP511_CS231n
1537e98cdca43fad906e56a22f48d884523414b0
[ "MIT" ]
1
2022-02-06T19:35:05.000Z
2022-02-06T19:35:05.000Z
assignment2/comp411/classifiers/fc_net.py
kukalbriiwa7/COMP511_CS231n
1537e98cdca43fad906e56a22f48d884523414b0
[ "MIT" ]
null
null
null
assignment2/comp411/classifiers/fc_net.py
kukalbriiwa7/COMP511_CS231n
1537e98cdca43fad906e56a22f48d884523414b0
[ "MIT" ]
null
null
null
from builtins import range from builtins import object import numpy as np from comp411.layers import * from comp411.layer_utils import * class ThreeLayerNet(object): """ A three-layer fully-connected neural network with Leaky ReLU nonlinearity and softmax loss that uses a modular layer design. We assume ...
50.336508
138
0.48663
15,712
0.990918
0
0
0
0
0
0
10,522
0.663597
8cd402c900cdc390c47cfb466e6d949a84a0cc3b
1,476
py
Python
py/cloud_server_del.py
AlohaPoster/MyActilife_win
7922839b6444f63f87b8f9584ad5d89101fa8432
[ "ISC" ]
null
null
null
py/cloud_server_del.py
AlohaPoster/MyActilife_win
7922839b6444f63f87b8f9584ad5d89101fa8432
[ "ISC" ]
null
null
null
py/cloud_server_del.py
AlohaPoster/MyActilife_win
7922839b6444f63f87b8f9584ad5d89101fa8432
[ "ISC" ]
null
null
null
import os from socket import * from time import ctime HOST = '' PORT = 9733 BUFSIZ = 1024 ADDR = (HOST, PORT) tcpSerSock = socket(AF_INET, SOCK_STREAM) tcpSerSock.bind(ADDR) tcpSerSock.listen(32) while True: print('waiting for connection...') tcpCliSock, addr = tcpSerSock.accept() print ('...
25.016949
54
0.579268
0
0
0
0
0
0
0
0
235
0.159214
8cd43ca8bd2a786d14de4833789bfb393dcd55d1
1,552
py
Python
setup.py
PureTryOut/pico-wizard
d5ffe9a777a33c5f5ab5772db84315595d19a50a
[ "MIT" ]
11
2021-02-05T13:49:44.000Z
2022-02-24T14:14:46.000Z
setup.py
PureTryOut/pico-wizard
d5ffe9a777a33c5f5ab5772db84315595d19a50a
[ "MIT" ]
26
2021-02-12T17:25:34.000Z
2021-12-30T07:47:18.000Z
setup.py
PureTryOut/pico-wizard
d5ffe9a777a33c5f5ab5772db84315595d19a50a
[ "MIT" ]
6
2021-06-21T17:37:15.000Z
2022-01-15T16:07:47.000Z
# SPDX-FileCopyrightText: 2021 Anupam Basak <anupam.basak27@gmail.com> # # SPDX-License-Identifier: MIT import setuptools setuptools.setup( name="pico-wizard", version="0.1.0", author="Anupam Basak", author_email="anupam.basak27@gmail.com", description="A Post Installation COnfiguration tool", ...
29.846154
77
0.589562
0
0
0
0
0
0
0
0
868
0.559278
8cd52c1779c479941f4c615d82fabed36c62bce2
6,769
py
Python
modules/weather_forecast_manager.py
algon-320/tenki.py
e1ad137b49f9b93fc350200528a9ccf8de2f1517
[ "MIT" ]
null
null
null
modules/weather_forecast_manager.py
algon-320/tenki.py
e1ad137b49f9b93fc350200528a9ccf8de2f1517
[ "MIT" ]
null
null
null
modules/weather_forecast_manager.py
algon-320/tenki.py
e1ad137b49f9b93fc350200528a9ccf8de2f1517
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import datetime import pickle import lxml.html import urllib.request, urllib.error import re from modules.weather import Weather from modules.print_util import String class WeatherForecastManager: PICKLE_DUMP_FILE = 'tenki.dump' XPATH_UPDATE...
44.24183
132
0.626385
6,587
0.965128
0
0
0
0
0
0
923
0.135238
8cd675d43aba0a61eff6ca1dd6e1d5350ca4da8d
2,299
py
Python
app/fiftycents/entities/player.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
app/fiftycents/entities/player.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
app/fiftycents/entities/player.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
import math from collections import Counter from itertools import dropwhile class NoCoinsRemainingError(Exception): pass class CardNotInHandError(Exception): pass class Player(): def __init__(self): self.hand = [] self.played_cards = [] self.down = False self.coins = 10 ...
33.318841
89
0.558504
2,210
0.961288
0
0
0
0
0
0
190
0.082645
8cd6adc7013685ced3271a7d83a19d006061f4cb
4,137
py
Python
day03.py
dylanbrodiefafard/aoc2019
fb92517f298c4bfab8be0d615deaa7953aa60c71
[ "MIT" ]
null
null
null
day03.py
dylanbrodiefafard/aoc2019
fb92517f298c4bfab8be0d615deaa7953aa60c71
[ "MIT" ]
null
null
null
day03.py
dylanbrodiefafard/aoc2019
fb92517f298c4bfab8be0d615deaa7953aa60c71
[ "MIT" ]
null
null
null
from util import get_lines def make_lines(path): lines = [] previous_point = (0, 0) for segment in path: direction = segment[0] distance = int(segment[1:]) if direction == 'U': point = (previous_point[0], previous_point[1] + distance) elif direction == 'D': ...
41.37
110
0.597051
0
0
0
0
0
0
0
0
929
0.224559
8cd9ed3c436765c3683fb3296f85b163ac9cc4e2
6,162
py
Python
ezflow/models/pwcnet.py
NeelayS/ezflow
b93a48c4adf5021f7eacbfc43220c7efa5ae55cd
[ "MIT" ]
94
2021-11-18T18:31:18.000Z
2022-03-04T02:30:13.000Z
ezflow/models/pwcnet.py
NeelayS/ezflow
b93a48c4adf5021f7eacbfc43220c7efa5ae55cd
[ "MIT" ]
72
2021-11-19T16:59:10.000Z
2022-03-02T14:39:10.000Z
ezflow/models/pwcnet.py
neu-vig/ezflow
1eb6f675e72b1de6db7b35d61ca4ef0082bae890
[ "MIT" ]
5
2021-11-18T18:42:38.000Z
2022-03-03T11:35:26.000Z
import torch import torch.nn as nn import torch.nn.functional as F from ..decoder import ConvDecoder from ..encoder import build_encoder from ..modules import conv, deconv from ..similarity import CorrelationLayer from ..utils import warp from .build import MODEL_REGISTRY @MODEL_REGISTRY.register() class PWCNet(nn.M...
28.009091
112
0.500649
5,858
0.950665
0
0
5,885
0.955047
0
0
588
0.095424
8cda02454cc4767296a2ee587812bf506b372867
1,361
py
Python
setup.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
11
2016-02-08T11:45:26.000Z
2017-05-19T16:07:31.000Z
setup.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
5
2016-02-11T22:11:54.000Z
2016-06-09T20:54:07.000Z
setup.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pathlib from setuptools import setup def read(file_name): file_path = pathlib.Path(__file__).parent / file_name return file_path.read_text('utf-8') setup( name='cibopath', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', ma...
26.686275
73
0.61058
0
0
0
0
0
0
0
0
676
0.496694
8cda297e14662b818246dabf96df5f485117391e
1,448
py
Python
core/tests/test_models.py
maneeshbabu/recipe
8cb02bf524f7676b11ec68fb4e6e518dea6b3456
[ "MIT" ]
null
null
null
core/tests/test_models.py
maneeshbabu/recipe
8cb02bf524f7676b11ec68fb4e6e518dea6b3456
[ "MIT" ]
null
null
null
core/tests/test_models.py
maneeshbabu/recipe
8cb02bf524f7676b11ec68fb4e6e518dea6b3456
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTestCase(TestCase): def test_create_user_with_email_successful(self): """Test creating a new user with email is successful""" email = "test@example.com" password = "test123" user = get_user...
37.128205
73
0.619475
1,364
0.941989
0
0
0
0
0
0
301
0.207873
8cddfb293ba557275c826d5a51078f1b1456befd
5,980
py
Python
CIF_Assembly_Entry_debug.py
cschlick/cif-assembly
84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382
[ "MIT" ]
null
null
null
CIF_Assembly_Entry_debug.py
cschlick/cif-assembly
84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382
[ "MIT" ]
null
null
null
CIF_Assembly_Entry_debug.py
cschlick/cif-assembly
84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from mmtbx.ncs.ncs import ncs from phenix.programs import map_symmetry as map_symmetry_program from cctbx.maptbx.segment_and_split_map import run_get_ncs_from_map from iotbx import phil from iotbx.data_manager import DataManager # initialize data manager dm = DataManager() # f...
32.150538
141
0.756355
0
0
0
0
0
0
0
0
2,209
0.369398
8cde5b4f2684c24920a0982cb1a8680ed1ad64f4
1,839
py
Python
SanGuoSha/SGS-Official/assets/images/plotters.py
fyabc/GamesDiy
b1d8dbc735a0fde42e7d216932d1d91ea4477176
[ "MIT" ]
null
null
null
SanGuoSha/SGS-Official/assets/images/plotters.py
fyabc/GamesDiy
b1d8dbc735a0fde42e7d216932d1d91ea4477176
[ "MIT" ]
null
null
null
SanGuoSha/SGS-Official/assets/images/plotters.py
fyabc/GamesDiy
b1d8dbc735a0fde42e7d216932d1d91ea4477176
[ "MIT" ]
null
null
null
# coding: utf-8 import matplotlib import matplotlib.pyplot as plt import matplotlib.ticker as mticker import numpy as np def card_num_distribution(): """Plot `Std-CardNumDistribution.png`.""" total = np.fromstring('12 14 12 12 13 12 12 12 12 12 12 14 12', sep=' ') jb = np.fromstring('0 6 6 6 6 8 9 11 11 ...
24.851351
76
0.573681
0
0
0
0
0
0
0
0
517
0.2734
8cdedf2105a7978025f71cf15096d9366805d58f
1,969
py
Python
tests/test_model/test_tasks/test_tuning.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
1
2021-02-21T00:44:06.000Z
2021-02-21T00:44:06.000Z
tests/test_model/test_tasks/test_tuning.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
22
2021-02-21T16:41:39.000Z
2021-11-27T16:12:33.000Z
tests/test_model/test_tasks/test_tuning.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
null
null
null
"""Test hyperparameter tuning.""" import pytest from nbaspa.model.tasks import ( LifelinesTuning, SegmentData, SurvivalData, XGBoostTuning, ) @pytest.fixture(scope="module") def survivaldata(data): """Create survival data for the hyperparameter tuning.""" pre = SurvivalData() df = pre.run...
29.833333
95
0.657186
0
0
0
0
348
0.176739
0
0
571
0.289995
8ce0ee53bb5fb1aa40bed29ff3cb17d7bb85ac52
524
py
Python
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
from trace_feature.models.scenario import Scenario class SimpleScenario(Scenario): def __init__(self): self.steps = [] self.scenario_title = "" self.line = None self.executed_methods = [] def execute(self): pass def set_line(self): pass def __str__(s...
20.153846
50
0.593511
471
0.898855
0
0
0
0
0
0
16
0.030534
8ce17a97e863e42c948a052d4db20da7594b80e9
6,771
py
Python
EMLABPY/modules/makefinancialreports.py
TradeRES/toolbox-amiris-emlab
11e6e7101bfbc0d71753e3892d4463c4955d2c34
[ "Unlicense" ]
null
null
null
EMLABPY/modules/makefinancialreports.py
TradeRES/toolbox-amiris-emlab
11e6e7101bfbc0d71753e3892d4463c4955d2c34
[ "Unlicense" ]
null
null
null
EMLABPY/modules/makefinancialreports.py
TradeRES/toolbox-amiris-emlab
11e6e7101bfbc0d71753e3892d4463c4955d2c34
[ "Unlicense" ]
null
null
null
from domain.import_object import * from modules.defaultmodule import DefaultModule from domain.financialReports import FinancialPowerPlantReport from domain.powerplant import PowerPlant from domain.cashflow import CashFlow from domain.technologies import * import logging class CreatingFinancialReports(DefaultModule): ...
69.091837
287
0.742136
6,497
0.959533
0
0
0
0
0
0
4,716
0.6965
8ce2f056900cdd54d05f6b392b7b1f1788adf0cb
3,174
py
Python
guess_number.py
redlinger/Guess_Number
ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7
[ "MIT" ]
null
null
null
guess_number.py
redlinger/Guess_Number
ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7
[ "MIT" ]
null
null
null
guess_number.py
redlinger/Guess_Number
ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Guess a Number between 1 and 100 Setup: The computer generates a random number between 1 and 100. The human's goal is to guess that number in 5 or fewer guesses. """ import random import time # human number guess hum_num = 0 # 5 trys to guess the right number guesses =...
28.854545
82
0.538122
0
0
0
0
0
0
0
0
1,491
0.469754
8ce539fa15c7f52a1ef7d6cae1f6f6a6ff2664fe
708
py
Python
3_drop_additional_road_usages_measurements.py
IntroDS2017/SteamingPlayers
992876c09ee6905bf4de1ea94b4ddad6321c8bb8
[ "MIT" ]
null
null
null
3_drop_additional_road_usages_measurements.py
IntroDS2017/SteamingPlayers
992876c09ee6905bf4de1ea94b4ddad6321c8bb8
[ "MIT" ]
null
null
null
3_drop_additional_road_usages_measurements.py
IntroDS2017/SteamingPlayers
992876c09ee6905bf4de1ea94b4ddad6321c8bb8
[ "MIT" ]
null
null
null
import pandas as pd def main(): load_path = "data/2_road_usages.csv" save_path = "data/3_road_usages.csv" df = pd.read_csv(load_path) street_names = df.nimi.unique() points_to_drop = [] for street in street_names: points = df[df['nimi'] == street].piste.unique() if len(poin...
23.6
83
0.618644
0
0
0
0
0
0
0
0
152
0.214689
8ce5694206f368d9b4bcbdda12bca0c06528e33e
4,418
py
Python
tests/application/files/parsers/test_dsv.py
alphagov-mirror/performanceplatform-admin
b63ae42b1276699623ef208b7d6edd3e0ce4ca59
[ "MIT" ]
1
2017-05-14T21:31:33.000Z
2017-05-14T21:31:33.000Z
tests/application/files/parsers/test_dsv.py
alphagov-mirror/performanceplatform-admin
b63ae42b1276699623ef208b7d6edd3e0ce4ca59
[ "MIT" ]
33
2015-01-05T12:23:45.000Z
2021-03-24T10:59:47.000Z
tests/application/files/parsers/test_dsv.py
alphagov-mirror/performanceplatform-admin
b63ae42b1276699623ef208b7d6edd3e0ce4ca59
[ "MIT" ]
4
2017-03-16T15:52:33.000Z
2021-04-10T20:14:53.000Z
# -*- coding: utf-8 -*- from application.files.parsers.dsv import parse_csv, lines from application.files.parsers import ParseError import unittest from cStringIO import StringIO from hamcrest import assert_that, only_contains, is_, contains class ParseCsvTestCase(unittest.TestCase): def test_parse_csv(self):...
25.102273
78
0.564056
3,955
0.893987
0
0
0
0
0
0
697
0.15755
8ce591611d3e31d6c0cca2832c1850b12c745822
16,225
py
Python
sdk/python/pulumi_azure/waf/policy.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/waf/policy.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/waf/policy.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Policy...
51.671975
223
0.593467
15,915
0.980894
0
0
4,348
0.267982
0
0
13,563
0.835932
8ce83244a55e8bc68a89ac42669afba7cecbc338
1,961
py
Python
tests/test__file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
tests/test__file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
tests/test__file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' FileName: test__file_importer.py Author: John Delgado Created Date: 8/7/2020 Version: 1.0 Initial Development This is the testing file for the file_importer script ''' import os import sys import inspect functions_dir = os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.curr...
35.654545
137
0.570117
1,346
0.686384
0
0
0
0
0
0
912
0.465069
8ce85526db08143d6f7b5fd20f02640f67bf4970
1,058
py
Python
ProjectEuler/p049.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-01-30T13:21:30.000Z
2018-01-30T13:21:30.000Z
ProjectEuler/p049.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
null
null
null
ProjectEuler/p049.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-08-29T13:26:50.000Z
2018-08-29T13:26:50.000Z
# Execution time : 0.440223 seconds # Solution Explanation # We can simplily iterate through all the 4-digits numbers # Then generate all the permutation of this number and check # if the desirable sequence, distinct from the given one, is found import time width = 40 import itertools import math def solution(): ...
31.117647
87
0.591682
0
0
0
0
0
0
0
0
289
0.273157
8ce9041cde0ebb1b404234f645d889fe9d5bf906
955
py
Python
session7/Keypad.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
19
2017-09-26T04:37:55.000Z
2021-12-15T05:39:57.000Z
session7/Keypad.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
44
2017-11-22T04:56:26.000Z
2018-03-17T14:30:00.000Z
session7/Keypad.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
21
2017-09-23T05:25:59.000Z
2021-05-31T10:24:49.000Z
###################################################################### # Keypad.py # # This program read matrix keypad and print label of pressed button ###################################################################### import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) rows = [17, 27, 22, 18] cols...
23.292683
70
0.479581
0
0
0
0
0
0
0
0
287
0.300524
8cea1e3a37d9a781638564690e38de965b9f82ad
106
py
Python
apps.py
qcoumes/django-dummy-app
e53266e4128cfada992e0d5938083603b25c4e84
[ "MIT" ]
null
null
null
apps.py
qcoumes/django-dummy-app
e53266e4128cfada992e0d5938083603b25c4e84
[ "MIT" ]
null
null
null
apps.py
qcoumes/django-dummy-app
e53266e4128cfada992e0d5938083603b25c4e84
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DummyAppConfigConfig(AppConfig): name = 'django_dummy_app'
15.142857
38
0.783019
68
0.641509
0
0
0
0
0
0
18
0.169811
8ceb714b7a4d53f34b6d75b19bb0ad8dddc83171
2,236
py
Python
src/VulnSituation/DownloadLinuxKernel.py
LeoneChen/VulnSituation
155e1849e2d13ef12068c9474efe760ba917844a
[ "Apache-2.0" ]
null
null
null
src/VulnSituation/DownloadLinuxKernel.py
LeoneChen/VulnSituation
155e1849e2d13ef12068c9474efe760ba917844a
[ "Apache-2.0" ]
null
null
null
src/VulnSituation/DownloadLinuxKernel.py
LeoneChen/VulnSituation
155e1849e2d13ef12068c9474efe760ba917844a
[ "Apache-2.0" ]
null
null
null
# Author: 14281055 Liheng Chen CIT BJTU # File Name: DownloadLinuxKernel.py import Repository import random import bs4 import os import re def download_certain_version_number_linux_kernel(hyperlink, save_dir): content = Repository.requests_get_content(hyperlink, timeout=10, ...
43.843137
107
0.576029
0
0
0
0
0
0
0
0
382
0.170841
8cec8ca187df1c877444afc96cfcd6107c908805
3,950
py
Python
v7/upgrade_metadata/upgrade_metadata.py
MattiooFR/plugins
90a686609fb5be2e83221c1f0e8fce18cb2b6021
[ "MIT" ]
53
2015-08-14T20:28:05.000Z
2021-06-02T00:38:23.000Z
v7/upgrade_metadata/upgrade_metadata.py
MattiooFR/plugins
90a686609fb5be2e83221c1f0e8fce18cb2b6021
[ "MIT" ]
280
2015-01-10T15:57:44.000Z
2022-03-27T20:47:08.000Z
v7/upgrade_metadata/upgrade_metadata.py
MattiooFR/plugins
90a686609fb5be2e83221c1f0e8fce18cb2b6021
[ "MIT" ]
93
2015-01-26T19:39:02.000Z
2022-03-24T17:12:42.000Z
# -*- coding: utf-8 -*- # Copyright ยฉ 2014โ€“2015, Chris Warrick. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the # Software without restriction, including without limitation # the rights to use, copy...
41.145833
112
0.580253
2,670
0.675095
0
0
0
0
0
0
1,796
0.454109
8ceeb04c27c60808e7308fa7e85058c9b847f524
9,118
py
Python
code/visualization/visualizer.py
JRMfer/GangRivalry
c621ec5d5e19de08a750800e27a62a942c2237b1
[ "MIT" ]
null
null
null
code/visualization/visualizer.py
JRMfer/GangRivalry
c621ec5d5e19de08a750800e27a62a942c2237b1
[ "MIT" ]
null
null
null
code/visualization/visualizer.py
JRMfer/GangRivalry
c621ec5d5e19de08a750800e27a62a942c2237b1
[ "MIT" ]
1
2020-02-09T16:17:26.000Z
2020-02-09T16:17:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script contains functions to visualize the development of the statistics over the total iterations per simulation and it contains functions to plot an arbitrary graph and all the graphs generated by all the simulations for a given human mobility algorithm. """ ...
40.167401
80
0.645427
0
0
0
0
0
0
0
0
4,624
0.507129
8cef6e357eeb4cff94f77de03b2338959c11b5e2
1,347
py
Python
numpytorch/losses.py
Samyak2/numpytorch
b508c8c2169c6c94f5bee915a12beff0790da5f8
[ "MIT" ]
2
2021-04-14T07:14:50.000Z
2021-04-14T17:22:55.000Z
numpytorch/losses.py
Samyak2/numpytorch
b508c8c2169c6c94f5bee915a12beff0790da5f8
[ "MIT" ]
null
null
null
numpytorch/losses.py
Samyak2/numpytorch
b508c8c2169c6c94f5bee915a12beff0790da5f8
[ "MIT" ]
null
null
null
import numpy as np EPS = 1e-06 class Loss: """Generic class to define a loss function""" def __init__(self): pass def __call__(self, y_real: np.ndarray, y_pred: np.ndarray) -> np.ndarray: return self.forward(y_real, y_pred) def forward(self, y_real: np.ndarray, y_pred: np.ndarray) ...
32.071429
83
0.639941
1,309
0.971789
0
0
0
0
0
0
458
0.340015
8cf00123ba48dd1a021707f90e31886c363b468e
6,202
py
Python
appengine/monorail/features/test/hotlistcreate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/features/test/hotlistcreate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/features/test/hotlistcreate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Unit test for Hotlist creation servlet.""" from __future__ import print_function from __futu...
41.624161
77
0.685263
5,580
0.89971
0
0
0
0
0
0
988
0.159303
8cf0b1c18c5375055000e88060d4e4637f6ec81e
3,123
py
Python
PocketBeagle/Grove/Start_the_Party.py
zhanglongqi/cloud9-examples
db73b843a807361153a00e17a703206202cf73f8
[ "MIT" ]
37
2019-05-30T16:40:01.000Z
2021-11-29T10:34:36.000Z
PocketBeagle/Grove/Start_the_Party.py
silver2row/cloud9-examples
741198a2b7a3c625fc4d877bdc5f60949ddf724d
[ "MIT" ]
35
2019-04-03T17:35:26.000Z
2022-03-23T12:28:08.000Z
PocketBeagle/Grove/Start_the_Party.py
silver2row/cloud9-examples
741198a2b7a3c625fc4d877bdc5f60949ddf724d
[ "MIT" ]
40
2019-05-13T00:25:42.000Z
2022-03-23T05:13:15.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # [Grove - 12 Key Capacitive I2C Touch Sensor V2] # (http://wiki.seeedstudio.com/Grove-12_Key_Capacitive_I2C_Touch_Sensor_V2-MPR121/) on I2C2 # [Grove โ€“ Speaker](http://wiki.seeedstudio.com/Grove-Speaker/) # on UART2 # [Grove - Chainable RGB LED X 2](http://wiki.seeedstud...
34.7
105
0.540826
0
0
0
0
0
0
0
0
1,003
0.32096
8cf1600e5f77551d25752ca057e78d7b4032d079
518
py
Python
host/rdmem.py
flowswitch/phison
d9415a8d5c62354d09cd6410754c9d8bb65e164f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
host/rdmem.py
flowswitch/phison
d9415a8d5c62354d09cd6410754c9d8bb65e164f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
host/rdmem.py
flowswitch/phison
d9415a8d5c62354d09cd6410754c9d8bb65e164f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
"""read XDATA memory""" import sys import PyScsi as drv import Phison as ph from util import BinFile if len(sys.argv)!=4: sys.exit("Read chip internal memory\nUsage: %s <file> <addr> <size>\nExample: %s ram.bin 0 0x10000" % (sys.argv[0], sys.argv[0])) addr = int(sys.argv[2], 0) size = int(sys.argv[3], 0) disk = ph....
23.545455
130
0.69305
0
0
0
0
0
0
0
0
152
0.293436
8cf1b63f0ee0ab41801ca7a509ae506ce2873aca
2,672
py
Python
zapper/context.py
alfuananzo/zapper
8a87e332ebdad8803058793c036a1426b9240b98
[ "MIT" ]
1
2019-05-07T09:56:49.000Z
2019-05-07T09:56:49.000Z
zapper/context.py
alfuananzo/zapper
8a87e332ebdad8803058793c036a1426b9240b98
[ "MIT" ]
null
null
null
zapper/context.py
alfuananzo/zapper
8a87e332ebdad8803058793c036a1426b9240b98
[ "MIT" ]
null
null
null
#TODO: Kill scans if overwrite is set. from zapper.helpers import report_to_cli class context: def __init__(self, target, scope, api, force=False): """ Control one Context entry of ZAP. A context has the following properties: Attributes: target: The target of the scan ...
44.533333
188
0.611901
2,589
0.968937
0
0
0
0
0
0
1,293
0.483907
8cf3894e77f3b424b8d63437a58e95928dde4ed7
652
py
Python
src/280. Wiggle Sort.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
1
2019-12-16T08:18:25.000Z
2019-12-16T08:18:25.000Z
src/280. Wiggle Sort.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
src/280. Wiggle Sort.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
class Solution: def wiggleSort(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ ''' [3,5,2,1,6,4] [3,5,1,6,2,4] [4,3,2,1] [3,4,2,1] [6,6,5,6,3,8] ''' def is_correct_order(x, ...
27.166667
69
0.455521
633
0.970859
0
0
0
0
0
0
203
0.31135
8cf42e6fb01de06121f96bde9ffd0a653f7105a5
2,718
py
Python
absl/flags/tests/argparse_flags_test_helper.py
alexhagen/abseil-py
240f85b0fa45acd95ca0157146245e7fb5453337
[ "Apache-2.0" ]
1,969
2017-04-24T22:21:29.000Z
2022-03-30T13:27:09.000Z
absl/flags/tests/argparse_flags_test_helper.py
alexhagen/abseil-py
240f85b0fa45acd95ca0157146245e7fb5453337
[ "Apache-2.0" ]
111
2017-09-27T05:45:53.000Z
2022-03-29T16:48:49.000Z
third_party/abseil/py/absl/flags/tests/argparse_flags_test_helper.py
InclusiveTechNU/v11
d32357bf52f5d6cf4ad3002235d1144f1f347d96
[ "Apache-2.0" ]
240
2017-09-26T01:18:10.000Z
2022-03-31T06:24:40.000Z
# Copyright 2018 The Abseil Authors. # # 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 applicable law or agreed to in ...
30.2
75
0.74209
0
0
0
0
0
0
0
0
1,176
0.432671
8cf584f118c9548fb028818f411c0541e04b73fa
580
py
Python
utf8.py
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
3
2019-05-04T03:26:02.000Z
2019-08-29T01:20:44.000Z
utf8.py
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
null
null
null
utf8.py
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
null
null
null
import glob, codecs #configfiles = glob.glob(r'C:\Users\sam\Desktop\**\*.txt', recursive=True) #fn="ojcpp/company/amazon_memo.txt" for fn in glob.glob("ojcpp/company/*.cpp",recursive=True): print(fn) ret=True try: data = open(fn, "r", encoding="gbk").read() open(fn, "w", encoding...
20.714286
74
0.525862
0
0
0
0
0
0
0
0
341
0.587931
8cf7205decff15f66c7b82d0402b54b1a61e8918
476
py
Python
setup.py
Emrys-Merlin/monitor_airquality
40a734c8a2cc24d826b61f26e863a5c0913b7106
[ "MIT" ]
null
null
null
setup.py
Emrys-Merlin/monitor_airquality
40a734c8a2cc24d826b61f26e863a5c0913b7106
[ "MIT" ]
null
null
null
setup.py
Emrys-Merlin/monitor_airquality
40a734c8a2cc24d826b61f26e863a5c0913b7106
[ "MIT" ]
null
null
null
from importlib.metadata import entry_points from setuptools import find_packages, setup setup( name='monitor_airquality', version='0.1', url='', author='Tim Adler', author_email='tim+github@emrys-merlin.de', description='Measure airquality using some sensors connected to a raspberry pi', p...
26.444444
84
0.712185
0
0
0
0
0
0
0
0
199
0.418067
8cf74af9632143ddcfbd48ed22ead989c9000359
8,557
py
Python
os_migrate/plugins/module_utils/reference.py
mrnold/os-migrate
2aa04ad4c2cf6d1e8abb24f845c7c9009fcd58fd
[ "Apache-2.0" ]
null
null
null
os_migrate/plugins/module_utils/reference.py
mrnold/os-migrate
2aa04ad4c2cf6d1e8abb24f845c7c9009fcd58fd
[ "Apache-2.0" ]
null
null
null
os_migrate/plugins/module_utils/reference.py
mrnold/os-migrate
2aa04ad4c2cf6d1e8abb24f845c7c9009fcd58fd
[ "Apache-2.0" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type def network_name(conn, id_, required=True): """Fetch name of Network identified by ID `id_`. Use OpenStack SDK connection `conn` to fetch the info. If `required`, ensure the fetch is successful. Returns: the name,...
35.213992
81
0.714736
0
0
0
0
0
0
0
0
6,044
0.706322
8cf86bfb6eec122aaf737782baf668c53d57edad
363
py
Python
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
from floodsystem.stationdata import MonitoringStation from floodsystem.geo import rivers_by_station_number def run(): """Requirements for Task1E""" rivers_station_number = rivers_by_station_number(MonitoringStation, 9) print(rivers_station_number) if __name__ == "__main__": print("*** Task 1E: CUED P...
30.25
74
0.752066
0
0
0
0
0
0
0
0
91
0.250689
8cf8d6f44600fb995dd1f41219e9e6510db6f3d8
998
py
Python
test/test_util.py
konfiger/konfiger-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
4
2019-09-25T02:18:43.000Z
2020-01-21T19:16:05.000Z
test/test_util.py
keyvaluedb/key-value-db-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
null
null
null
test/test_util.py
keyvaluedb/key-value-db-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
null
null
null
#!python import unittest import os import sys sys.path.insert(0, os.getcwd()) from src import escape_string, un_escape_string class TestKonfigerUtil(unittest.TestCase): def test_check_escape_and_unescape_separator(self): actual_str = "\\,HelloยฌW\n-\t-\torld" t1 = escape_string(actu...
33.266667
64
0.655311
821
0.816915
0
0
0
0
0
0
110
0.109453
8cfbc2509615626710ec962d624548fc6620ce7a
16,310
py
Python
src/insulaudit/devices/clmm/proto.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
1
2020-11-28T13:23:58.000Z
2020-11-28T13:23:58.000Z
src/insulaudit/devices/clmm/proto.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
null
null
null
src/insulaudit/devices/clmm/proto.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
null
null
null
import struct import sys import serial import time import logging from pprint import pprint, pformat import doctest from insulaudit.core import Command from insulaudit.clmm.usbstick import * from insulaudit import lib #logging.basicConfig( stream=sys.stdout ) log = logging.getLogger(__name__) #log.setLevel( logging.D...
25.604396
91
0.62385
11,964
0.733538
0
0
0
0
0
0
5,375
0.329552
8cfc14873a8e3827bbe126057b1811e7460db3fe
300
py
Python
examples/interrupts.py
nodesign/electripy
6765dccd93b4d71e77ae258f560a1e2eb6645128
[ "Unlicense", "MIT" ]
3
2017-06-20T11:50:47.000Z
2019-10-28T15:14:53.000Z
examples/interrupts.py
nodesign/electripy
6765dccd93b4d71e77ae258f560a1e2eb6645128
[ "Unlicense", "MIT" ]
null
null
null
examples/interrupts.py
nodesign/electripy
6765dccd93b4d71e77ae258f560a1e2eb6645128
[ "Unlicense", "MIT" ]
null
null
null
from lib.electripy import * print "Board name : ", getBoardName() print "INTERRUPTS TEST **************************" def hello(data): print "interrupt ", INTERRUPT_TYPE[data] attachInterrupt(25, CHANGE, hello) for a in range(0,15): delay(1000) print a detachInterrupt(25) stop()
17.647059
50
0.63
0
0
0
0
0
0
0
0
71
0.236667
8cfc82cb9558f36c262b30e77dc6228a934d7ef7
15,691
py
Python
Contents/Code/interface/menu.py
tomerblecher/Sub-Zero.bundle
afc7614095fe6b0e1d15f40671f8cc1de37b4402
[ "MIT" ]
2
2020-12-06T19:40:10.000Z
2020-12-26T13:20:10.000Z
Contents/Code/interface/menu.py
PlexIL/Sub-Zero.bundle
e74af913f13b390fc5271def4fdc55066358d3e3
[ "MIT" ]
null
null
null
Contents/Code/interface/menu.py
PlexIL/Sub-Zero.bundle
e74af913f13b390fc5271def4fdc55066358d3e3
[ "MIT" ]
null
null
null
# coding=utf-8 import locale import logging import os import platform import traceback import logger import copy from requests import HTTPError from item_details import ItemDetailsMenu from refresh_item import RefreshItem from menu_helpers import add_incl_excl_options, dig_tree, set_refresh_menu_state, \ default_...
41.510582
132
0.636734
0
0
0
0
12,775
0.814161
0
0
4,011
0.255624
8cfca3b3f7b05a6aebdc8eea726b3a320cf8a4ca
7,643
py
Python
gsicrawler_pipeline.py
antoniofll/sefarad4.0-testing
1b50f479ee503e5e23345ab0388eb6c2608ab73d
[ "Apache-2.0" ]
null
null
null
gsicrawler_pipeline.py
antoniofll/sefarad4.0-testing
1b50f479ee503e5e23345ab0388eb6c2608ab73d
[ "Apache-2.0" ]
null
null
null
gsicrawler_pipeline.py
antoniofll/sefarad4.0-testing
1b50f479ee503e5e23345ab0388eb6c2608ab73d
[ "Apache-2.0" ]
null
null
null
import luigi from luigi import configuration from luigi.s3 import S3Target, S3PathTask import threading from time import sleep import os import json import imp import random import datetime import uuid from bottle import route, run, template, static_file, response, request, install import luigi import urllib2 pendin...
33.230435
114
0.697501
3,876
0.507131
0
0
0
0
0
0
3,003
0.392909
8cfdf25e9a8b70f9400ed44ee8c791ade7d45ab5
1,117
py
Python
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
6
2016-08-20T23:39:42.000Z
2020-11-06T23:08:03.000Z
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
null
null
null
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
5
2016-08-21T13:16:00.000Z
2020-11-06T23:08:17.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from peewee import Field, SQL import itertools """Extend Peewee basic types.""" class EnumField(Field): """Define a EnumField type""" db_field = "enum" def __init__(self, *args, **kwargs): ...
28.641026
82
0.642793
926
0.829006
0
0
0
0
0
0
217
0.19427
8cfdfa798899384c0733d181291fe22066a3493e
3,461
py
Python
interprete/src/models/graphcodebert/model.py
serjtroshin/PLBART
58e5de3041a2fc8b98e54648c6489fb3c23db9cb
[ "MIT" ]
null
null
null
interprete/src/models/graphcodebert/model.py
serjtroshin/PLBART
58e5de3041a2fc8b98e54648c6489fb3c23db9cb
[ "MIT" ]
null
null
null
interprete/src/models/graphcodebert/model.py
serjtroshin/PLBART
58e5de3041a2fc8b98e54648c6489fb3c23db9cb
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List import torch from transformers import AutoModel, AutoTokenizer from interprete.src.models.model import Model, ModelOutput from interprete.src.models.utils import to_cpu class GraphCodeBertModel(Model): def __init__(self, args=[], type="GraphCodeBert"): su...
33.601942
102
0.546952
3,258
0.935938
0
0
324
0.093077
0
0
655
0.188164
5065c0ef1a0d7d57ef1fde52307819e6cc954dfe
6,286
py
Python
app/verbose.py
erikosmond/knights_tour
beb4cbb3a081d1c134ed180c6044e3ba7a4a6016
[ "MIT" ]
null
null
null
app/verbose.py
erikosmond/knights_tour
beb4cbb3a081d1c134ed180c6044e3ba7a4a6016
[ "MIT" ]
null
null
null
app/verbose.py
erikosmond/knights_tour
beb4cbb3a081d1c134ed180c6044e3ba7a4a6016
[ "MIT" ]
1
2019-05-04T13:03:53.000Z
2019-05-04T13:03:53.000Z
class Verbose(object): Initialized = False def __init__(self, verbosity, show_info=False): assert type(verbosity) is int, "verbose takes an integer value of 0-1023" self.verbose_int = verbosity self.info = """ bit 0[-1](1) - max/min values bit 1[-2](2) - r...
43.958042
114
0.544066
6,286
1
0
0
0
0
0
0
1,952
0.310531
5065da5be5ef82985ad4ecf2e734a4a164b47ddc
2,170
py
Python
src/core/game.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
src/core/game.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
src/core/game.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
import pygame from src.entities import Player from src.utils import DialogBox from src.map import MapManager class Game: def __init__(self): super().__init__() # creer la fenetre du jeu self.screen = pygame.display.set_mode((1280, 720)) pygame.display.set_caption("Irale - Le je...
27.468354
78
0.552074
2,057
0.947926
0
0
0
0
0
0
99
0.045622
506778d35138226ccfa52203c940b8202f3138b6
6,776
py
Python
diagnnose/models/transformer_lm.py
Kalsir/diagNNose
06363ffe8050f792c8e6bfd8c13e51c68d327f32
[ "MIT" ]
null
null
null
diagnnose/models/transformer_lm.py
Kalsir/diagNNose
06363ffe8050f792c8e6bfd8c13e51c68d327f32
[ "MIT" ]
null
null
null
diagnnose/models/transformer_lm.py
Kalsir/diagNNose
06363ffe8050f792c8e6bfd8c13e51c68d327f32
[ "MIT" ]
null
null
null
from functools import reduce from typing import List, Optional, Union import torch from torch import Tensor from transformers import ( AutoModel, AutoModelForCausalLM, AutoModelForMaskedLM, AutoModelForQuestionAnswering, AutoModelForSequenceClassification, AutoModelForTokenClassification, D...
35.47644
86
0.643152
5,897
0.870277
0
0
2,068
0.305195
0
0
1,078
0.159091
506906ff6a85d3dd74305ee68d4ad5ec97a8dca5
5,216
py
Python
usbcan/somebus.py
laigui/usbcan
a58e8f4a7d757fdadc4dd57a039cd4afa016d585
[ "MIT" ]
null
null
null
usbcan/somebus.py
laigui/usbcan
a58e8f4a7d757fdadc4dd57a039cd4afa016d585
[ "MIT" ]
null
null
null
usbcan/somebus.py
laigui/usbcan
a58e8f4a7d757fdadc4dd57a039cd4afa016d585
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' somebus.py: Somebus USBCAN-II adaptor driver class. Copyright (C) 2019 Laigui Qin <laigui@gmail.com>''' from ctypes import * class VciInitConfig(Structure): """ INIT_CONFIG็ป“ๆž„ไฝ“ๅฎšไน‰ไบ†ๅˆๅง‹ๅŒ–CAN็š„้…็ฝฎ """ _fields_ = [("AccCode", c_ulong), # ้ชŒๆ”ถ็ ๏ผŒๅŽ้ขๆ˜ฏๆ•ฐๆฎ็ฑปๅž‹ ("AccMa...
31.612121
89
0.551189
6,159
0.973909
0
0
0
0
0
0
3,677
0.581436
50695771cffd15a76d764cc359fe32d149466b8a
2,285
py
Python
PyFlow/Ui/StyleSheetEditor.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
7
2018-06-24T15:55:00.000Z
2021-07-13T08:11:25.000Z
PyFlow/Ui/StyleSheetEditor.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
32
2019-02-18T20:47:46.000Z
2019-05-30T12:51:10.000Z
PyFlow/Ui/StyleSheetEditor.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
5
2019-02-19T23:26:21.000Z
2020-12-23T00:32:59.000Z
from Qt import QtWidgets from Qt import QtCore from widgets.pc_HueSlider import pc_HueSlider,pc_GradientSlider if __name__ == '__main__': import sys sys.path.append("..") import stylesheet else: from .. import stylesheet from .. import resources class StyleSheetEditor(QtWidgets.QWidget): """Style Sheet Editor...
29.675325
71
0.760175
1,738
0.760613
0
0
0
0
0
0
64
0.028009
5069c552bceb85ec98f646d7fca3218a5cca5f2d
1,511
gyp
Python
test/win/compiler-flags/calling-convention.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
test/win/compiler-flags/calling-convention.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
1,432
2017-06-21T04:08:48.000Z
2020-08-25T16:21:15.000Z
test/win/compiler-flags/calling-convention.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'test_cdecl', 'type': 'loadable_module', 'msvs_settings': { 'VCCLCompilerTool': { 'Calling...
22.552239
72
0.483786
0
0
0
0
0
0
0
0
878
0.581072
506a7ef933c52555e333134521cbf1974676bc2c
1,417
py
Python
integrationtest/vm/virtualrouter/volume/test_add_volume.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
2
2016-03-23T08:45:44.000Z
2017-06-26T02:40:46.000Z
integrationtest/vm/virtualrouter/volume/test_add_volume.py
KevinDavidMitnick/zstack-woodpecker
96257faaf3c362168d008bdb47002025ad669b24
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/virtualrouter/volume/test_add_volume.py
KevinDavidMitnick/zstack-woodpecker
96257faaf3c362168d008bdb47002025ad669b24
[ "Apache-2.0" ]
2
2020-03-12T03:11:28.000Z
2021-07-26T01:57:58.000Z
''' @author: Youyk ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import os test_stub = test_lib.lib_get_test_stub() test_obj_dict = test_state.TestStateDict() def test(): test_util.test_dsc('Create tes...
28.918367
99
0.723359
0
0
0
0
0
0
0
0
308
0.217361
506ad7660bd1038dfb11c4b2c1efad4b5755bce2
679
py
Python
agents/base_agent.py
IanYHWu/msc_2021
0ae09ed392cce5fdf0e85d1f96b7af82900835f8
[ "MIT" ]
null
null
null
agents/base_agent.py
IanYHWu/msc_2021
0ae09ed392cce5fdf0e85d1f96b7af82900835f8
[ "MIT" ]
null
null
null
agents/base_agent.py
IanYHWu/msc_2021
0ae09ed392cce5fdf0e85d1f96b7af82900835f8
[ "MIT" ]
null
null
null
class BaseAgent(object): """ Class for the basic agent objects. """ def __init__(self, env, actor_critic, storage, device): """ env: (gym.Env) environment following the openAI Gym API """ self.env = en...
19.4
63
0.483063
675
0.994109
0
0
0
0
0
0
246
0.362297
506c907cacd0c8e8e93832785451ebe1451a8d30
175
py
Python
malpi/dkwm/gym_envs/__init__.py
Bleyddyn/malpi
9315f19366bd56da12c6dc7a84d830bbec530753
[ "MIT" ]
5
2017-03-27T22:15:54.000Z
2022-01-19T23:46:46.000Z
malpi/dkwm/gym_envs/__init__.py
Bleyddyn/malpi
9315f19366bd56da12c6dc7a84d830bbec530753
[ "MIT" ]
10
2017-01-19T19:22:06.000Z
2022-02-27T21:29:50.000Z
malpi/dkwm/gym_envs/__init__.py
Bleyddyn/malpi
9315f19366bd56da12c6dc7a84d830bbec530753
[ "MIT" ]
null
null
null
from gym.envs.registration import register from malpi.dkwm.gym_envs.dkwm_env import DKWMEnv register( id='dkwm-v0', entry_point='malpi.dkwm.gym_envs:DKWMEnv', )
19.444444
48
0.742857
0
0
0
0
0
0
0
0
38
0.217143
506c9a44405c77c7273d7106b363a07835a96fae
814
py
Python
ProjectEuler100/Problem_003.py
shiv-1998/EulerProject
f10a7cc935a9cf9be45b639056a229b262b8709e
[ "MIT" ]
null
null
null
ProjectEuler100/Problem_003.py
shiv-1998/EulerProject
f10a7cc935a9cf9be45b639056a229b262b8709e
[ "MIT" ]
null
null
null
ProjectEuler100/Problem_003.py
shiv-1998/EulerProject
f10a7cc935a9cf9be45b639056a229b262b8709e
[ "MIT" ]
null
null
null
#!/bin/python3 import sys import math def isPrime(n): if n==2 or n==3 or n==5 or n==7 or n==11 or n==13 or n==13 or n==17 or n==19: return True upperLimit = math.ceil(math.sqrt(n))+1 for i in range(2,upperLimit): if n%i==0: return False return True t = int(input().strip())...
24.666667
81
0.486486
0
0
0
0
0
0
0
0
14
0.017199
506d74f909789d8ddf4cf808fbde73c70bc1832a
9,579
py
Python
opcua/__init__.py
minix1234/hacore_opcua
b77d1611416ebc6cc823562f81d758915672aa49
[ "MIT" ]
4
2021-01-10T21:13:30.000Z
2021-11-13T09:22:48.000Z
opcua/__init__.py
minix1234/hacore_opcua
b77d1611416ebc6cc823562f81d758915672aa49
[ "MIT" ]
7
2021-03-06T05:14:26.000Z
2021-12-29T04:38:46.000Z
opcua/__init__.py
minix1234/hacore_opcua
b77d1611416ebc6cc823562f81d758915672aa49
[ "MIT" ]
null
null
null
"""Support for OPCUA""" import logging import voluptuous as vol from opcua import Client, ua from homeassistant.const import ( ATTR_STATE, CONF_URL, CONF_NAME, CONF_TIMEOUT, CONF_USERNAME, CONF_PASSWORD, EVENT_HOMEASSISTANT_STOP, EVENT_HOMEASSISTANT_START, ) import homeassistant.hel...
28.679641
161
0.637854
3,647
0.380729
0
0
105
0.010961
0
0
1,926
0.201065
506ec8d37920dc02fb0964cd084a15f385c1f491
2,210
py
Python
pysnmp-with-texts/RBT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/RBT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/RBT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RBT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBT-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:18:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)...
88.4
505
0.776923
0
0
0
0
0
0
0
0
1,024
0.463348
506f3419eb908bd049908e74833faca71688b303
1,160
py
Python
fixture/take_datetime.py
dondemonz/audit_lite
754f4fef15fbd8db5c6c420dbfa6bd3ece39a50a
[ "Apache-2.0" ]
null
null
null
fixture/take_datetime.py
dondemonz/audit_lite
754f4fef15fbd8db5c6c420dbfa6bd3ece39a50a
[ "Apache-2.0" ]
null
null
null
fixture/take_datetime.py
dondemonz/audit_lite
754f4fef15fbd8db5c6c420dbfa6bd3ece39a50a
[ "Apache-2.0" ]
null
null
null
import datetime as dt from datetime import timedelta def take_datetimes(): m = dt.datetime.now() + timedelta(seconds=1) starttime = m.strftime("%Y-%m-%d %H:%M:%S") m2 = dt.datetime.now() + timedelta(seconds=2) starttime2 = m2.strftime("%Y-%m-%d %H:%M:%S") m3 = dt.datetime.now() + timedelta(seconds=...
33.142857
68
0.627586
0
0
0
0
0
0
0
0
171
0.147414
50705e4a528d8b646477227beb32216708a0b850
3,894
py
Python
shelly-static-ip.py
asillye/shelly-static-ip
2f697b081f9ea10393686fd7f243ea3de8cfca20
[ "MIT" ]
null
null
null
shelly-static-ip.py
asillye/shelly-static-ip
2f697b081f9ea10393686fd7f243ea3de8cfca20
[ "MIT" ]
null
null
null
shelly-static-ip.py
asillye/shelly-static-ip
2f697b081f9ea10393686fd7f243ea3de8cfca20
[ "MIT" ]
null
null
null
import threading import traceback import logging import requests from json.decoder import JSONDecodeError from ping3 import ping logging.basicConfig(level=logging.INFO) GATEWAY_IP = "192.168.100.1" STATIC_IP_MIN = 200 STATIC_IP_MAX = 254 lastDot = GATEWAY_IP.rfind(".") ipAddressBase = GATEWAY_IP[0:lastDot+1] threadL...
33.86087
137
0.642527
0
0
0
0
0
0
0
0
798
0.204931
5070624cc56ad0773dad1ee66cbdce5a6d58ebcf
743
py
Python
src/problems/other/nearest_square.py
E1mir/PySandbox
44b39b98a41add433f0815cd3cde4d7554629eea
[ "MIT" ]
null
null
null
src/problems/other/nearest_square.py
E1mir/PySandbox
44b39b98a41add433f0815cd3cde4d7554629eea
[ "MIT" ]
null
null
null
src/problems/other/nearest_square.py
E1mir/PySandbox
44b39b98a41add433f0815cd3cde4d7554629eea
[ "MIT" ]
null
null
null
def solution(num): if num < 0: raise ValueError if num == 1: return 1 k = None for k in range(num // 2 + 1): if k ** 2 == num: return k elif k ** 2 > num: return k - 1 return k def best_solution(num): if num < 0: raise ValueEr...
15.808511
37
0.442799
0
0
0
0
0
0
0
0
10
0.013459
5070e419f2d08a1bc9a7ca9e0d7ce7f4c5f2424a
1,503
py
Python
src/tarski/fstrips/hybrid/differential_constraints.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
29
2018-11-26T20:31:04.000Z
2021-12-29T11:08:40.000Z
src/tarski/fstrips/hybrid/differential_constraints.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
101
2018-06-07T13:10:01.000Z
2022-03-11T11:54:00.000Z
src/tarski/fstrips/hybrid/differential_constraints.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
18
2018-11-01T22:44:39.000Z
2022-02-28T04:57:15.000Z
from ...syntax import BuiltinFunctionSymbol, CompoundTerm from . import errors as err class DifferentialConstraint: """ A (possibly lifted) reaction """ def __init__(self, language, name, parameters, condition, variate, ode): self.name = name self.language = language self.parameters ...
35.785714
108
0.596806
1,413
0.94012
0
0
0
0
0
0
166
0.110446
507245b633d156f4473e06ba288a5567ea2cdb8d
5,915
py
Python
imix/models/encoder/lcgnencoder.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
imix/models/encoder/lcgnencoder.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
imix/models/encoder/lcgnencoder.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
import numpy as np import torch.nn.functional as F from torch import Tensor from typing import Tuple from ..builder import ENCODER import torch.nn as nn import torch @ENCODER.register_module() class LCGNEncoder(nn.Module): def __init__(self, WRD_EMB_INIT_FILE: str, encInputDropout: float, qDropout: float, WRD_EM...
43.175182
119
0.669653
5,716
0.966357
0
0
2,549
0.430938
0
0
2,063
0.348774
5072a03141c6bb10b8a98835580689e3de8cd922
8,947
py
Python
USB/python/test-usb2020.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
100
2016-11-08T15:41:43.000Z
2022-02-20T19:37:32.000Z
USB/python/test-usb2020.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
37
2017-01-05T17:48:14.000Z
2022-01-06T17:43:27.000Z
USB/python/test-usb2020.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
65
2016-12-20T07:03:44.000Z
2022-03-14T21:48:35.000Z
#! /usr/bin/python3 # # Copyright (c) 2020 Warren J. Jasper <wjasper@ncsu.edu> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) a...
36.222672
126
0.579077
0
0
0
0
0
0
0
0
3,182
0.35565
50732e512e8aa60eef305eb3f7a68cdf0138b721
1,186
py
Python
archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import numpy as np import theano import theano.tensor as T import treeano.nodes as tn from treeano.sandbox.nodes import fmp fX = theano.config.floatX # TODO change me node = "fmp2" compute_grad = True if node == "mp": n = tn.MaxPool2DNode("mp", pool_size=(2, 2)) elif node == "fmp": n = fmp.DisjointPseudorando...
21.178571
78
0.559022
0
0
0
0
0
0
0
0
231
0.194772
507377bdb80d620ea7bb76b4c3004a6064e282e7
1,271
py
Python
warranty.py
TannerFilip/dell-warranty
4118154c13b52f66a0a8e37f89abe2ca793f50ba
[ "Unlicense" ]
null
null
null
warranty.py
TannerFilip/dell-warranty
4118154c13b52f66a0a8e37f89abe2ca793f50ba
[ "Unlicense" ]
null
null
null
warranty.py
TannerFilip/dell-warranty
4118154c13b52f66a0a8e37f89abe2ca793f50ba
[ "Unlicense" ]
null
null
null
#!/bin/python3 ''' USAGE: $ python warranty.py list.txt 1. Set "apikey" to the API key obtained from Dell TechDirect. 2. Create file with serial numbers, one per line, no line endings ''' import time import requests import fileinput import sys fileName = sys.argv[1] api_url = 'https://sandbo...
29.55814
132
0.576711
0
0
0
0
0
0
0
0
644
0.506688
507554c410c6294385578ca1eb9a80f4ffa123e6
683
py
Python
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
3
2020-03-20T20:04:37.000Z
2021-08-23T20:11:10.000Z
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
2
2019-06-10T08:02:05.000Z
2019-06-10T08:02:22.000Z
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
null
null
null
from pytest import raises import telemetry REPORT_NAME = 'some.key' meter = telemetry.get_telemeter(__name__) @meter.catch('some_report') def exception_prone(ii): return 1/ii class TestsExcept: def test_catch_pass(self): assert exception_prone(2) == 0.5 def test_catch_throws(self): ...
18.459459
42
0.645681
419
0.61347
0
0
139
0.203514
0
0
82
0.120059