hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
cdf8c230470c81450b07eb39261afa6cd9a012f9
3,324
py
Python
data/generate_individual_data_and_bipartite_graph.py
pedroramaciotti/linate
93cfb2df47e63ca63f8224d577e6c704f3e3caf1
[ "MIT" ]
null
null
null
data/generate_individual_data_and_bipartite_graph.py
pedroramaciotti/linate
93cfb2df47e63ca63f8224d577e6c704f3e3caf1
[ "MIT" ]
null
null
null
data/generate_individual_data_and_bipartite_graph.py
pedroramaciotti/linate
93cfb2df47e63ca63f8224d577e6c704f3e3caf1
[ "MIT" ]
null
null
null
# generate grouped data and a bipartite social graph import synthetic_data_generation as gen import numpy as np if __name__ == "__main__": main()
46.166667
104
0.659446
# generate grouped data and a bipartite social graph import synthetic_data_generation as gen import numpy as np def main(): random_state = None # for random number generation N_referential = 100 N_followers = 1000 ###################################################### # Generating synthetic da...
3,148
0
23
18b278a5f3393cb449aa72b62f0ecb025f2aa26d
1,651
py
Python
models/tracking_model.py
lismaroliveira1/rest_api_with_flask_python
7b7a3b638cb4f82ad94c7b187ba4fb8b66a58690
[ "MIT" ]
null
null
null
models/tracking_model.py
lismaroliveira1/rest_api_with_flask_python
7b7a3b638cb4f82ad94c7b187ba4fb8b66a58690
[ "MIT" ]
null
null
null
models/tracking_model.py
lismaroliveira1/rest_api_with_flask_python
7b7a3b638cb4f82ad94c7b187ba4fb8b66a58690
[ "MIT" ]
null
null
null
from sql_alchemy import database
30.018182
74
0.633555
from sql_alchemy import database class TrackingModel(database.Model): __tablename__ = 'trackings' tracking_id = database.Column(database.Integer, primary_key=True) date = database.Column(database.String(10)) destiny = database.Column(database.String(80)) hour = database.Column(database.String(10)...
943
651
23
526a6f91cb5c0993a1c213ca1ac56302d861751e
20,096
py
Python
train_oneshot.py
submission6378/OneshotCLIP
794ae95c734387bb7829c142bcb822bcb2504c05
[ "MIT" ]
40
2022-03-14T00:58:32.000Z
2022-03-30T22:46:32.000Z
train_oneshot.py
submission6378/OneshotCLIP
794ae95c734387bb7829c142bcb822bcb2504c05
[ "MIT" ]
2
2022-03-18T14:13:12.000Z
2022-03-25T21:48:32.000Z
train_oneshot.py
submission6378/OneshotCLIP
794ae95c734387bb7829c142bcb822bcb2504c05
[ "MIT" ]
1
2022-03-29T21:09:49.000Z
2022-03-29T21:09:49.000Z
import argparse import math import random import os import sys import numpy as np import torch from torch import nn, autograd, optim from torch.nn import functional as F from torch.utils import data import torch.distributed as dist from torchvision import transforms, utils from tqdm import tqdm from copy import deepcop...
32.783034
131
0.606738
import argparse import math import random import os import sys import numpy as np import torch from torch import nn, autograd, optim from torch.nn import functional as F from torch.utils import data import torch.distributed as dist from torchvision import transforms, utils from tqdm import tqdm from copy import deepcop...
13,251
0
357
c5e4a21db9a6d400be4b311ab8fe03b850a8dacb
451
py
Python
cluster/elbow.py
ansin218/reddit-comments-data-analysis
bf2c3980d36000c895b71337997ea15b03cce7ec
[ "MIT" ]
7
2018-04-23T06:29:35.000Z
2021-06-09T13:55:26.000Z
cluster/elbow.py
ansin218/reddit-comments-data-analysis
bf2c3980d36000c895b71337997ea15b03cce7ec
[ "MIT" ]
null
null
null
cluster/elbow.py
ansin218/reddit-comments-data-analysis
bf2c3980d36000c895b71337997ea15b03cce7ec
[ "MIT" ]
null
null
null
import execnet import cPickle as pickle from collections import Counter import numpy as np from sklearn.cluster import MiniBatchKMeans from scipy.spatial.distance import cdist, pdist from sklearn import cluster, metrics from time import time if __name__ == '__channelexec__': while 1: X = pickle.load(open("/med...
28.1875
66
0.778271
import execnet import cPickle as pickle from collections import Counter import numpy as np from sklearn.cluster import MiniBatchKMeans from scipy.spatial.distance import cdist, pdist from sklearn import cluster, metrics from time import time if __name__ == '__channelexec__': while 1: X = pickle.load(open("/med...
0
0
0
2b159df2338e7bb96c6aa3df4857c05df7967f5a
280
py
Python
pynode/src/launcher.py
Joseph-Davies/VCE-algorithmics-project-2
a8f43866ac76116f96266e6c52df72bdd09c5452
[ "MIT" ]
null
null
null
pynode/src/launcher.py
Joseph-Davies/VCE-algorithmics-project-2
a8f43866ac76116f96266e6c52df72bdd09c5452
[ "MIT" ]
null
null
null
pynode/src/launcher.py
Joseph-Davies/VCE-algorithmics-project-2
a8f43866ac76116f96266e6c52df72bdd09c5452
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Alex Socha # http://www.alexsocha.com/pynode from pynode.src import communicate
23.333333
39
0.746429
# Copyright (c) 2017 Alex Socha # http://www.alexsocha.com/pynode from pynode.src import communicate def set_run_function(func): communicate.set_run_function(func) def begin_pynode(run_func=None): set_run_function(run_func) communicate.open_connection()
124
0
50
bf8928f0a8023f29a859730ef059bf8360f7c010
1,027
py
Python
nobel_physics_prizes/src/data/jsonl_utils.py
covuworie/nobel-physics-prizes
f89a32cd6eb9bbc9119a231bffee89b177ae847a
[ "MIT" ]
3
2019-08-21T05:35:42.000Z
2020-10-08T21:28:51.000Z
nobel_physics_prizes/src/data/jsonl_utils.py
covuworie/nobel-physics-prizes
f89a32cd6eb9bbc9119a231bffee89b177ae847a
[ "MIT" ]
139
2018-09-01T23:15:59.000Z
2021-02-02T22:01:39.000Z
nobel_physics_prizes/src/data/jsonl_utils.py
covuworie/nobel-physics-prizes
f89a32cd6eb9bbc9119a231bffee89b177ae847a
[ "MIT" ]
null
null
null
import gzip import jsonlines import os import shutil def read_jsonl(file): """Read a JSON lines file into a list of JSON dicts. Args: file (file object): An existing file object to be read from. The file can either be a json lines file (extension `.jsonl`) or a gzip file (exte...
25.04878
74
0.61149
import gzip import jsonlines import os import shutil def read_jsonl(file): """Read a JSON lines file into a list of JSON dicts. Args: file (file object): An existing file object to be read from. The file can either be a json lines file (extension `.jsonl`) or a gzip file (exte...
0
0
0
93a86e417e7fbb23a5a509048e6f50ebaaf3c42a
399
py
Python
test/testNet/testHttp/testHttpServer/testChunckFileServer/test_http_chunk_download.py
wangsun1983/Obotcha
2464e53599305703f5150df72bf73579a39d8ef4
[ "MIT" ]
27
2019-04-27T00:51:22.000Z
2022-03-30T04:05:44.000Z
test/testNet/testHttp/testHttpServer/testChunckFileServer/test_http_chunk_download.py
wangsun1983/Obotcha
2464e53599305703f5150df72bf73579a39d8ef4
[ "MIT" ]
9
2020-05-03T12:17:50.000Z
2021-10-15T02:18:47.000Z
test/testNet/testHttp/testHttpServer/testChunckFileServer/test_http_chunk_download.py
wangsun1983/Obotcha
2464e53599305703f5150df72bf73579a39d8ef4
[ "MIT" ]
1
2019-04-16T01:45:36.000Z
2019-04-16T01:45:36.000Z
import socket import threading import time import http.client import requests import os count = 1 #while 1: count = 0 while count < 32: r = requests.get("http://127.0.0.1:1123/index") filename = "./tmp/"+str(count) with open(os.path.join(os.path.dirname(os.path.abspath("__file__")),filename),"wb") as f: ...
21
93
0.661654
import socket import threading import time import http.client import requests import os count = 1 #while 1: count = 0 while count < 32: r = requests.get("http://127.0.0.1:1123/index") filename = "./tmp/"+str(count) with open(os.path.join(os.path.dirname(os.path.abspath("__file__")),filename),"wb") as f: ...
0
0
0
c3181f8e4f937fc6bff699c9c7fa3cbc405e817b
242
py
Python
day22/initial_states.py
UpwardTrajectory/advent_2020
b19a37bb40ed43deddfaab4a4e68f2ca6ac43a90
[ "MIT" ]
null
null
null
day22/initial_states.py
UpwardTrajectory/advent_2020
b19a37bb40ed43deddfaab4a4e68f2ca6ac43a90
[ "MIT" ]
null
null
null
day22/initial_states.py
UpwardTrajectory/advent_2020
b19a37bb40ed43deddfaab4a4e68f2ca6ac43a90
[ "MIT" ]
null
null
null
sample = """Player 1: 9 2 6 3 1 Player 2: 5 8 4 7 10""" starting_decks = """Player 1: 3 42 4 25 14 36 32 18 33 10 35 50 16 31 34 46 9 6 41 7 15 45 30 27 49 Player 2: 8 11 47 21 17 39 29 43 23 28 13 22 5 20 44 38 26 37 2 24 48 12 19 1 40"""
3.61194
29
0.619835
sample = """Player 1: 9 2 6 3 1 Player 2: 5 8 4 7 10""" starting_decks = """Player 1: 3 42 4 25 14 36 32 18 33 10 35 50 16 31 34 46 9 6 41 7 15 45 30 27 49 Player 2: 8 11 47 21 17 39 29 43 23 28 13 22 5 20 44 38 26 37 2 24 48 12 19 1 40"""
0
0
0
130226bc53b1f964977451f23705f080b7d3819d
5,028
py
Python
pynYNAB/ClientFactory.py
rienafairefr/pynYNAB
d5fc0749618409c6bb01cc2b93832cc59d780eaa
[ "MIT" ]
82
2017-02-21T11:07:24.000Z
2022-03-20T21:56:17.000Z
pynYNAB/ClientFactory.py
rienafairefr/pynYNAB
d5fc0749618409c6bb01cc2b93832cc59d780eaa
[ "MIT" ]
37
2017-02-19T10:28:03.000Z
2021-01-23T07:44:06.000Z
pynYNAB/ClientFactory.py
rienafairefr/pynYNAB
d5fc0749618409c6bb01cc2b93832cc59d780eaa
[ "MIT" ]
13
2017-03-07T10:08:59.000Z
2018-05-11T04:53:25.000Z
import logging from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from pynYNAB.ObjClient import RootObjClient from pynYNAB.connection import nYnabConnection from pynYNAB.exceptions import NoBudgetNameException, BudgetNotFound, NoCredentialsException from pynYNAB.schema import Base, Catalog, ...
37.804511
117
0.623906
import logging from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from pynYNAB.ObjClient import RootObjClient from pynYNAB.connection import nYnabConnection from pynYNAB.exceptions import NoBudgetNameException, BudgetNotFound, NoCredentialsException from pynYNAB.schema import Base, Catalog, ...
4,142
404
115
d4418acb135b8e4931cf533f2aefa8033bbd0a2a
56
py
Python
examples/_tests_scripts/rl_exploration.py
rhololkeolke/catalyst-rl
ec18ff4a58b6d00652f772231db8de86debb4b3d
[ "Apache-2.0" ]
46
2020-03-27T20:12:32.000Z
2021-11-21T19:08:51.000Z
examples/_tests_scripts/rl_exploration.py
rhololkeolke/catalyst-rl
ec18ff4a58b6d00652f772231db8de86debb4b3d
[ "Apache-2.0" ]
2
2020-04-06T10:43:04.000Z
2020-07-01T18:26:10.000Z
examples/_tests_scripts/rl_exploration.py
rhololkeolke/catalyst-rl
ec18ff4a58b6d00652f772231db8de86debb4b3d
[ "Apache-2.0" ]
5
2020-04-17T14:09:53.000Z
2021-05-10T08:58:29.000Z
# flake8: noqa from catalyst_rl.rl.exploration import *
18.666667
40
0.785714
# flake8: noqa from catalyst_rl.rl.exploration import *
0
0
0
0bebf03ba78b09b4523704205133903765366852
5,542
py
Python
Web/cardio_training.py
apratimshukla6/PharmaCat
1755155220cceb85febd9a142f12387ff522c604
[ "Apache-2.0" ]
15
2019-12-19T09:57:09.000Z
2022-02-25T09:13:17.000Z
Web/cardio_training.py
PharmaCat/Application
e050cf5812f0ea860c6359868bb532d49d3236cc
[ "Apache-2.0" ]
6
2020-03-24T17:45:14.000Z
2022-03-12T00:02:07.000Z
Web/cardio_training.py
Codebotics/PharmaCat
e050cf5812f0ea860c6359868bb532d49d3236cc
[ "Apache-2.0" ]
6
2020-06-02T03:12:30.000Z
2022-03-09T08:35:52.000Z
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from matplotlib import pyplot as plt import tensorflow as tf from tensorflow.keras.optimizers import RMSprop,Nadam,Adadelta,Adam from tensorflow.keras.layers import BatchNormalization,LeakyReLU from tensorflow.ker...
34.209877
127
0.726092
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from matplotlib import pyplot as plt import tensorflow as tf from tensorflow.keras.optimizers import RMSprop,Nadam,Adadelta,Adam from tensorflow.keras.layers import BatchNormalization,LeakyReLU from tensorflow.ker...
0
0
0
0527e43d0a11798ec1b9ca3415088abef19f6910
218
py
Python
angryProfessor.py
LuisAngelHM/python
a9b9db0e561c4e675c462ee3a30c3326c00b7aa2
[ "MIT" ]
null
null
null
angryProfessor.py
LuisAngelHM/python
a9b9db0e561c4e675c462ee3a30c3326c00b7aa2
[ "MIT" ]
null
null
null
angryProfessor.py
LuisAngelHM/python
a9b9db0e561c4e675c462ee3a30c3326c00b7aa2
[ "MIT" ]
null
null
null
if __name__ == "__main__": k = 2 a = [0, -1, 2, 1] print(angryProfessor(k,a))
21.8
37
0.53211
def angryProfessor(k, a): students = [i for i in a if i<=0] if len(students) >= k: return "NO" return "YES" if __name__ == "__main__": k = 2 a = [0, -1, 2, 1] print(angryProfessor(k,a))
106
0
22
d30127931a17a6cbcff5d69611f7d42247f2117d
433
py
Python
multiaddr/codecs/__init__.py
alexander255/py-multiaddr-1
8df4450a91549e1e041059e7f57934c84f6bc477
[ "Apache-2.0", "MIT" ]
25
2018-07-26T01:53:32.000Z
2022-03-08T21:28:43.000Z
multiaddr/codecs/__init__.py
alexander255/py-multiaddr-1
8df4450a91549e1e041059e7f57934c84f6bc477
[ "Apache-2.0", "MIT" ]
40
2018-11-29T11:32:44.000Z
2022-03-05T19:08:47.000Z
multiaddr/codecs/__init__.py
alexander255/py-multiaddr-1
8df4450a91549e1e041059e7f57934c84f6bc477
[ "Apache-2.0", "MIT" ]
13
2018-03-24T08:16:09.000Z
2021-05-19T11:13:26.000Z
import importlib # These are special sizes LENGTH_PREFIXED_VAR_SIZE = -1 CODEC_CACHE = {}
18.826087
90
0.678984
import importlib # These are special sizes LENGTH_PREFIXED_VAR_SIZE = -1 class NoneCodec: SIZE = 0 IS_PATH = False CODEC_CACHE = {} def codec_by_name(name): if name is None: # Special “do nothing – expect nothing” pseudo-codec return NoneCodec codec = CODEC_CACHE.get(name) if not co...
269
28
46
cdfe0449a80242db0400adbaa9366a0380b9a334
1,162
py
Python
ioscrack/database.py
vaginessa/iOSRestrictionBruteForce
e27cf725a765ef4eac6053082668a949708b40a0
[ "MIT" ]
1
2021-04-24T02:37:01.000Z
2021-04-24T02:37:01.000Z
ioscrack/database.py
alepao821/iOSRestrictionBruteForce
e27cf725a765ef4eac6053082668a949708b40a0
[ "MIT" ]
null
null
null
ioscrack/database.py
alepao821/iOSRestrictionBruteForce
e27cf725a765ef4eac6053082668a949708b40a0
[ "MIT" ]
null
null
null
import sqlite3 from ioscrack import crack
24.208333
77
0.580034
import sqlite3 from ioscrack import crack def connect(db_name="pins.db"): conn = sqlite3.connect(db_name) if not doesTableExist(conn): createTable(conn) return conn def doesTableExist(conn): cursor = conn.execute( "SELECT name FROM sqlite_master WHERE type='table' AND name='KEYS';")...
999
0
115
2e93ab1e413e894d0f4343091089e5f72e512f82
2,360
py
Python
handwritten/users/serializers/users.py
SWAT-Handwriten-Recognition/Backend
b351f0050806eef3b698ca534040d7c8a336f032
[ "MIT" ]
null
null
null
handwritten/users/serializers/users.py
SWAT-Handwriten-Recognition/Backend
b351f0050806eef3b698ca534040d7c8a336f032
[ "MIT" ]
8
2020-11-19T19:57:55.000Z
2020-11-24T04:37:28.000Z
handwritten/users/serializers/users.py
SWAT-Handwritten-Recognition/Backend
b351f0050806eef3b698ca534040d7c8a336f032
[ "MIT" ]
null
null
null
"""Users Serializers""" #Django from django.contrib.auth import authenticate, password_validation # Django REST Framework from rest_framework import serializers from rest_framework.authtoken.models import Token from rest_framework.validators import UniqueValidator #Models from handwritten.users.models import User cla...
34.705882
80
0.677119
"""Users Serializers""" #Django from django.contrib.auth import authenticate, password_validation # Django REST Framework from rest_framework import serializers from rest_framework.authtoken.models import Token from rest_framework.validators import UniqueValidator #Models from handwritten.users.models import User cla...
390
0
53
e0c0c9b660240875c17e0e26caf9cc40af1f4712
763
py
Python
vessel/vessel.py
cgiacofei/pybrew
40062f9b6ccb96ca3cbbb9784434dd9281a9caba
[ "MIT" ]
null
null
null
vessel/vessel.py
cgiacofei/pybrew
40062f9b6ccb96ca3cbbb9784434dd9281a9caba
[ "MIT" ]
null
null
null
vessel/vessel.py
cgiacofei/pybrew
40062f9b6ccb96ca3cbbb9784434dd9281a9caba
[ "MIT" ]
null
null
null
class Vessel(object): """Dummy class to return pre-generated data """ def get_duty(self): """Dummy method, returns fake duty cycle """ return 50 def set_duty(self, duty): """Dummy method, will be used to set the output duty cycle """ pass if __name...
20.078947
66
0.571429
class Vessel(object): """Dummy class to return pre-generated data """ def __init__(self, dat_file='dat', duty=0): self.dfile = dat_file self.line_num = 0 self.duty = duty def read_temp(self): temp = open(self.dfile) temp_lines = temp.readlines() temp_ou...
283
0
53
6a9b543f3ef7f943b81b4dce76f0b580d3dc66b5
619
py
Python
lib/SampleService/core/storage/errors.py
zhlu9890/sample_service_updated
f7bb992952cff12e090b2e329e6f12193846ab4b
[ "MIT" ]
null
null
null
lib/SampleService/core/storage/errors.py
zhlu9890/sample_service_updated
f7bb992952cff12e090b2e329e6f12193846ab4b
[ "MIT" ]
65
2020-04-06T21:12:10.000Z
2022-03-24T19:24:01.000Z
lib/SampleService/core/storage/errors.py
zhlu9890/sample_service_updated
f7bb992952cff12e090b2e329e6f12193846ab4b
[ "MIT" ]
8
2020-04-21T17:31:23.000Z
2021-12-15T19:43:01.000Z
""" Exceptions for storage events. """ class SampleStorageError(Exception): """ Superclass of all storage related exceptions. Denotes a general storage error. """ class StorageInitError(SampleStorageError): """ Denotes an error during initialization of the storage system. """ class OwnerCh...
25.791667
93
0.720517
""" Exceptions for storage events. """ class SampleStorageError(Exception): """ Superclass of all storage related exceptions. Denotes a general storage error. """ class StorageInitError(SampleStorageError): """ Denotes an error during initialization of the storage system. """ class OwnerCh...
0
0
0
a1f88d8df37cbf391b167205f7bd6b1143c0b541
408
py
Python
aoc02b.py
alekseismyshliaev/aoc2020
b95273b37c790d7895efa0c5d179fecacf74e4b1
[ "MIT" ]
null
null
null
aoc02b.py
alekseismyshliaev/aoc2020
b95273b37c790d7895efa0c5d179fecacf74e4b1
[ "MIT" ]
null
null
null
aoc02b.py
alekseismyshliaev/aoc2020
b95273b37c790d7895efa0c5d179fecacf74e4b1
[ "MIT" ]
null
null
null
import re import sys PASSWORD_RE = re.compile('(\d+)-(\d+) (\w): (\w+)') if __name__ == '__main__': correct_count = 0 for line in sys.stdin: pos1, pos2, letter, password = PASSWORD_RE.match(line).groups() pos1 = int(pos1) - 1 pos2 = int(pos2) - 1 if (letter == password[pos1]...
22.666667
71
0.568627
import re import sys PASSWORD_RE = re.compile('(\d+)-(\d+) (\w): (\w+)') if __name__ == '__main__': correct_count = 0 for line in sys.stdin: pos1, pos2, letter, password = PASSWORD_RE.match(line).groups() pos1 = int(pos1) - 1 pos2 = int(pos2) - 1 if (letter == password[pos1]...
0
0
0
e3f23b859d6d781a5b5e74add91e451fcd00eef6
2,214
py
Python
tikzpy/drawing_objects/plotcoordinates.py
ltrujello/Tikz-Python
2fddcbde5f94074cb9c492f0f721c99a7fc6c2a4
[ "MIT" ]
4
2021-04-19T09:00:02.000Z
2022-03-20T09:39:04.000Z
tikzpy/drawing_objects/plotcoordinates.py
ltrujello/Tikz-Python
2fddcbde5f94074cb9c492f0f721c99a7fc6c2a4
[ "MIT" ]
null
null
null
tikzpy/drawing_objects/plotcoordinates.py
ltrujello/Tikz-Python
2fddcbde5f94074cb9c492f0f721c99a7fc6c2a4
[ "MIT" ]
null
null
null
from typing import List, Tuple, Union from tikzpy.drawing_objects.point import Point from tikzpy.drawing_objects.drawing_object import DrawingObject from tikzpy.utils.helpers import brackets class PlotCoordinates(DrawingObject): """ A class to create plots in the tikz environment. Attributes : op...
29.52
87
0.599368
from typing import List, Tuple, Union from tikzpy.drawing_objects.point import Point from tikzpy.drawing_objects.drawing_object import DrawingObject from tikzpy.utils.helpers import brackets class PlotCoordinates(DrawingObject): """ A class to create plots in the tikz environment. Attributes : op...
1,378
0
239
308858c58ee10fa222a3f08ec9d6b037a2e98530
1,008
py
Python
mythos/views.py
mythicrationality/mythra-fi
957dc3261b4eb49211425954e0222ec0d4647f3e
[ "MIT" ]
null
null
null
mythos/views.py
mythicrationality/mythra-fi
957dc3261b4eb49211425954e0222ec0d4647f3e
[ "MIT" ]
null
null
null
mythos/views.py
mythicrationality/mythra-fi
957dc3261b4eb49211425954e0222ec0d4647f3e
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.template import loader from django.shortcuts import render, redirect
25.846154
103
0.782738
from django.http import HttpResponse from django.template import loader from django.shortcuts import render, redirect def index(request): return render(request, 'mythos/index.html') def contact(request): return render(request, 'mythos/contact.html') def introduction_index(request): return render(reques...
675
0
207
21053f68b03aeb3a96c7edce9030b007ae84273c
8,216
py
Python
ipchange/moxa/moxa.py
cowanml/ipchange
622bdfb456de1b02a604ab71c5a6c66e5a840679
[ "BSD-3-Clause" ]
null
null
null
ipchange/moxa/moxa.py
cowanml/ipchange
622bdfb456de1b02a604ab71c5a6c66e5a840679
[ "BSD-3-Clause" ]
2
2020-10-08T16:53:27.000Z
2021-01-07T15:31:47.000Z
ipchange/moxa/moxa.py
cowanml/ipchange
622bdfb456de1b02a604ab71c5a6c66e5a840679
[ "BSD-3-Clause" ]
2
2021-01-05T14:29:17.000Z
2021-02-08T17:05:30.000Z
import hashlib import lxml.html import os import pickle import requests import sys _ascii = ('01234567890123456789012345678901 ' '!"#$%&\'()*+,-./0123456789:;<=>?@' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`' 'abcdefghijklmnopqrstuvwxyz{|}~')
29.031802
77
0.554649
import hashlib import lxml.html import os import pickle import requests import sys _ascii = ('01234567890123456789012345678901 ' '!"#$%&\'()*+,-./0123456789:;<=>?@' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`' 'abcdefghijklmnopqrstuvwxyz{|}~') class MoxaHTTP_2_2: def __init__(self, addr, ve...
1,761
6,164
23
b48b2b5de10145ed53352a644ede3af68f86ca65
914
py
Python
biggan/paddorch/paddorch/nn/init/__init__.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
20
2020-03-13T13:40:32.000Z
2022-03-10T07:31:48.000Z
biggan/paddorch/paddorch/nn/init/__init__.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
34
2020-02-20T11:04:58.000Z
2022-03-12T00:54:26.000Z
biggan/paddorch/paddorch/nn/init/__init__.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
41
2020-02-14T09:34:39.000Z
2022-03-10T07:31:42.000Z
import paddle.fluid as fluid import paddle import paddorch.cuda import paddorch.nn import os import paddorch.nn.functional from paddle.fluid import dygraph import numpy as np
26.114286
79
0.690372
import paddle.fluid as fluid import paddle import paddorch.cuda import paddorch.nn import os import paddorch.nn.functional from paddle.fluid import dygraph import numpy as np def constant_(x, val): x=fluid.layers.fill_constant(x.shape,x.dtype,val,out=x) return x def normal_(x,m=0,std=1): y=fluid.layers.r...
646
0
92
71d45a843ae14c0f9e958df6ba02e6fb94943714
1,512
py
Python
stockbot/provider/__init__.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
null
null
null
stockbot/provider/__init__.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
16
2017-10-12T09:10:28.000Z
2021-05-20T20:30:15.000Z
stockbot/provider/__init__.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
1
2021-06-18T18:23:36.000Z
2021-06-18T18:23:36.000Z
import logging from .ibindex import IbIndexQueryService from .nasdaq import NasdaqIndexScraper, NasdaqCompany from .google import StockDomain, GoogleFinanceQueryService from .bloomberg import BloombergQueryService from .avanza import AvanzaQueryService from .ig import IGQueryService from .yahoo import YahooQueryService...
30.24
94
0.690476
import logging from .ibindex import IbIndexQueryService from .nasdaq import NasdaqIndexScraper, NasdaqCompany from .google import StockDomain, GoogleFinanceQueryService from .bloomberg import BloombergQueryService from .avanza import AvanzaQueryService from .ig import IGQueryService from .yahoo import YahooQueryService...
529
458
96
f12ff768acc65c767433e59f6e02c0c49696f255
2,766
py
Python
api/models.py
justzino/flavoice-backend
8e13678f2c9879f2bfc1918a964e722437263bee
[ "MIT" ]
null
null
null
api/models.py
justzino/flavoice-backend
8e13678f2c9879f2bfc1918a964e722437263bee
[ "MIT" ]
5
2021-09-25T09:11:47.000Z
2021-10-05T08:30:50.000Z
api/models.py
justzino/flavoice
8e13678f2c9879f2bfc1918a964e722437263bee
[ "MIT" ]
null
null
null
from django.conf import settings from django.db import models class TimeStampedModel(models.Model): """ Time Stamped Model """ created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) class Voice(TimeStampedModel): """ Voice Model to analyze and save pitches ...
32.928571
107
0.668836
from django.conf import settings from django.db import models class TimeStampedModel(models.Model): """ Time Stamped Model """ created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) class Meta: abstract = True class Voice(TimeStampedModel): """...
580
14
108
509e80cbad75adb52be840fc0c6a2da8da1729e6
660
py
Python
tests/generate_data.py
huangshunliang/toad--scorerisk
f64ec16ece314706b0e74799be98149ad1317110
[ "MIT" ]
2
2019-12-26T14:10:41.000Z
2019-12-26T14:10:43.000Z
tests/generate_data.py
zhangwen118/toad
1cbed4d7f697dd806112a885d191cb455f31598c
[ "MIT" ]
2
2019-09-27T06:26:52.000Z
2020-03-04T11:48:51.000Z
tests/generate_data.py
zhangwen118/toad
1cbed4d7f697dd806112a885d191cb455f31598c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd np.random.seed(1) LENGTH = 500 A = np.random.rand(LENGTH) A[np.random.choice(LENGTH, 20, replace = False)] = np.nan B = np.random.randint(100, size = LENGTH) C = A + np.random.normal(0, 0.2, LENGTH) D = A + np.random.normal(0, 0.1, LENGTH) E = np.random.rand(LENGTH) E[np.rand...
18.333333
58
0.612121
import numpy as np import pandas as pd np.random.seed(1) LENGTH = 500 A = np.random.rand(LENGTH) A[np.random.choice(LENGTH, 20, replace = False)] = np.nan B = np.random.randint(100, size = LENGTH) C = A + np.random.normal(0, 0.2, LENGTH) D = A + np.random.normal(0, 0.1, LENGTH) E = np.random.rand(LENGTH) E[np.rand...
0
0
0
6ce5592beb3c4a24deaeda6b6f367b984e9a4053
960
py
Python
src/cogs/utils/emote.py
Rishiraj0100/Credo
bd9523c54632c727fc98d571c61ea72b5401ed3a
[ "MIT" ]
5
2021-05-30T07:07:24.000Z
2021-06-15T06:25:45.000Z
src/cogs/utils/emote.py
Rishiraj0100/Credo
bd9523c54632c727fc98d571c61ea72b5401ed3a
[ "MIT" ]
2
2021-07-22T02:47:49.000Z
2021-08-06T15:37:29.000Z
src/cogs/utils/emote.py
Rishiraj0100/Credo
bd9523c54632c727fc98d571c61ea72b5401ed3a
[ "MIT" ]
4
2021-08-03T06:08:55.000Z
2021-11-07T11:54:08.000Z
xmark = '<:xmark:820320509211574284>' tick = '<:tick:820320509564551178>' voice_channel = '<:Voice_channels:820162682883014667> ' text_channel = '<:Text_Channel:820162682970832897>' error = '<:error:820162683147911169>' questionmark = '<:questionmark:820319249867866143>' info = '<:info:820332723121684530>' youtube = '<...
30.967742
63
0.68125
xmark = '<:xmark:820320509211574284>' tick = '<:tick:820320509564551178>' voice_channel = '<:Voice_channels:820162682883014667> ' text_channel = '<:Text_Channel:820162682970832897>' error = '<:error:820162683147911169>' questionmark = '<:questionmark:820319249867866143>' info = '<:info:820332723121684530>' youtube = '<...
0
0
0
1b9d7f5391a7b71fe3a5414b9a3eb32bc64fe4f3
8,852
py
Python
composer/loggers/wandb_logger.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
composer/loggers/wandb_logger.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
composer/loggers/wandb_logger.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Log to `Weights and Biases <https://wandb.ai/>`_.""" from __future__ import annotations import atexit import os import pathlib import re import sys import tempfile import warnings from typing import Any, Dict, List, Optional from co...
40.054299
120
0.610484
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Log to `Weights and Biases <https://wandb.ai/>`_.""" from __future__ import annotations import atexit import os import pathlib import re import sys import tempfile import warnings from typing import Any, Dict, List, Optional from co...
6,774
0
216
94e5f69617a1ca11a83e8d4741118d4189653887
738
py
Python
src/main.py
SimpleHomeAssistant/voiceControl
86934d2b32e510c6be665155e6e723a6fa3b35a8
[ "MIT" ]
null
null
null
src/main.py
SimpleHomeAssistant/voiceControl
86934d2b32e510c6be665155e6e723a6fa3b35a8
[ "MIT" ]
null
null
null
src/main.py
SimpleHomeAssistant/voiceControl
86934d2b32e510c6be665155e6e723a6fa3b35a8
[ "MIT" ]
null
null
null
import config from controlClient import ControlClient from recognizer import Recognizer from voiceListener import VoiceListener import logging client=ControlClient(config.mqtt_broker_address,config.mqtt_broker_port,config.mqtt_voice_topic) recognizer=Recognizer(config.model_directory) logger = logging.getLogger(__nam...
29.52
96
0.799458
import config from controlClient import ControlClient from recognizer import Recognizer from voiceListener import VoiceListener import logging client=ControlClient(config.mqtt_broker_address,config.mqtt_broker_port,config.mqtt_voice_topic) recognizer=Recognizer(config.model_directory) logger = logging.getLogger(__nam...
329
0
46
75d69c1fd8e7617dcb750a23693f287116e758d5
931
py
Python
honeygrove/tests/HTTP_Test.py
JJToB/honeygrove
facb4d107e1268590b26700141afcc3dcf5215ed
[ "MIT" ]
19
2018-04-11T17:49:29.000Z
2022-02-09T03:34:24.000Z
honeygrove/tests/HTTP_Test.py
ekaxis/honeygrove
15009edbc39c83bac4585441fc0ac09c86d1de46
[ "MIT" ]
22
2017-12-20T19:48:48.000Z
2021-03-23T10:06:46.000Z
honeygrove/tests/HTTP_Test.py
ekaxis/honeygrove
15009edbc39c83bac4585441fc0ac09c86d1de46
[ "MIT" ]
11
2018-01-04T13:26:05.000Z
2022-01-09T17:02:09.000Z
from honeygrove.config import Config from honeygrove.services.HTTPService import HTTPService from twisted.internet import reactor import requests import threading import unittest
25.162162
76
0.659506
from honeygrove.config import Config from honeygrove.services.HTTPService import HTTPService from twisted.internet import reactor import requests import threading import unittest class HTTPTest(unittest.TestCase): @classmethod def setUpClass(cls): Config.http.port = 9914 threading.Thread(ta...
237
489
23
00dc3dfbfc229f35854a9523d606d9671d6c8f9b
1,034
py
Python
ickafka/input.py
davegallant/ickafka
b0cdd0959738a2b0ac19ce6292227b309f159f2f
[ "Apache-2.0" ]
null
null
null
ickafka/input.py
davegallant/ickafka
b0cdd0959738a2b0ac19ce6292227b309f159f2f
[ "Apache-2.0" ]
1
2020-09-25T10:19:29.000Z
2020-09-28T10:17:58.000Z
ickafka/input.py
davegallant/ickafka
b0cdd0959738a2b0ac19ce6292227b309f159f2f
[ "Apache-2.0" ]
null
null
null
"""Parsing of CLI input (args).""" import argparse from ickafka.__version__ import VERSION def get_args(): """Parse args""" parser = argparse.ArgumentParser(description="Consume from kafka") parser.add_argument( "-s", "--server", help="kafka broker ip or hostname", default="localhost"...
31.333333
84
0.603482
"""Parsing of CLI input (args).""" import argparse from ickafka.__version__ import VERSION def get_args(): """Parse args""" parser = argparse.ArgumentParser(description="Consume from kafka") parser.add_argument( "-s", "--server", help="kafka broker ip or hostname", default="localhost"...
0
0
0
96eedf0dcf566943d0b1509c967ef70cab56af8f
1,400
py
Python
src/encoded/tests/test_upgrade_file.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
null
null
null
src/encoded/tests/test_upgrade_file.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
10
2020-07-22T20:16:15.000Z
2021-06-16T19:17:44.000Z
src/encoded/tests/test_upgrade_file.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
null
null
null
import pytest
46.666667
119
0.795714
import pytest def test_file_upgrade_1_2(upgrader, raw_sequence_file_base): raw_sequence_file_base['award'] = '62ba2fba-8ee9-4996-b804-f9a673d137c3' value = upgrader.upgrade('raw_sequence_file', raw_sequence_file_base, current_version='1', target_version='2') assert value['schema_version'] == '2' assert 'award' no...
1,290
0
92
f8441ff2acec0be82540f451b4db9f06cf23144f
238
py
Python
parsing/serialized_objects/ship_status.py
Lukas-Dresel/InBetweenUs
855d8d773ff136c3a1884744057b2b21972f6a9d
[ "MIT" ]
3
2020-10-20T19:45:23.000Z
2021-07-30T15:19:02.000Z
parsing/serialized_objects/ship_status.py
Lukas-Dresel/InBetweenUs
855d8d773ff136c3a1884744057b2b21972f6a9d
[ "MIT" ]
null
null
null
parsing/serialized_objects/ship_status.py
Lukas-Dresel/InBetweenUs
855d8d773ff136c3a1884744057b2b21972f6a9d
[ "MIT" ]
null
null
null
from construct import * from ..common import debug_field, DirtyBits ShipStatus_Partial = Struct( "DirtyBits" / DirtyBits, "NumSystems" / VarInt, "Systems" / debug_field(Byte[this.NumSystems]), ) ShipStatus_Full = Struct( )
18.307692
51
0.714286
from construct import * from ..common import debug_field, DirtyBits ShipStatus_Partial = Struct( "DirtyBits" / DirtyBits, "NumSystems" / VarInt, "Systems" / debug_field(Byte[this.NumSystems]), ) ShipStatus_Full = Struct( )
0
0
0
ecc68f73a5048e7d5f5bfef6d31793b6978651c4
3,085
py
Python
PfamScripts/adda/lib/Logger.py
ankitskvmdam/rfam-website
5b200ab64fa7c70778c991f239b8ddb11dce4ed5
[ "Apache-2.0" ]
6
2017-01-25T12:53:23.000Z
2021-03-17T04:52:35.000Z
PfamScripts/adda/lib/Logger.py
ankitskvmdam/rfam-website
5b200ab64fa7c70778c991f239b8ddb11dce4ed5
[ "Apache-2.0" ]
50
2015-11-06T10:31:46.000Z
2021-12-03T16:17:28.000Z
PfamScripts/adda/lib/Logger.py
ankitskvmdam/rfam-website
5b200ab64fa7c70778c991f239b8ddb11dce4ed5
[ "Apache-2.0" ]
2
2019-05-30T00:10:26.000Z
2021-04-12T09:42:17.000Z
import multiprocessing, logging, sys, re, os, StringIO, threading, time, Queue, collections from logging import Logger class MultiProcessingLogHandler(logging.Handler): """taken from http://stackoverflow.com/questions/641420/how-should-i-log-while-using-multiprocessing-in-python added counting of log message...
33.901099
114
0.623339
import multiprocessing, logging, sys, re, os, StringIO, threading, time, Queue, collections from logging import Logger class MultiProcessingLogHandler(logging.Handler): """taken from http://stackoverflow.com/questions/641420/how-should-i-log-while-using-multiprocessing-in-python added counting of log message...
2,177
0
265
6790da8780a4bd5180e85e7c831ec3443501d3c8
166
py
Python
pymagnitude/third_party/allennlp/version.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
1,520
2018-03-01T13:37:49.000Z
2022-03-25T11:40:20.000Z
pymagnitude/third_party/allennlp/version.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
87
2018-03-03T15:12:50.000Z
2022-02-21T15:24:12.000Z
pymagnitude/third_party/allennlp/version.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
121
2018-03-03T08:40:53.000Z
2022-03-16T05:19:38.000Z
_MAJOR = u"0" _MINOR = u"6" _REVISION = u"1-unreleased" VERSION_SHORT = u"{0}.{1}".format(_MAJOR, _MINOR) VERSION = u"{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)
23.714286
58
0.656627
_MAJOR = u"0" _MINOR = u"6" _REVISION = u"1-unreleased" VERSION_SHORT = u"{0}.{1}".format(_MAJOR, _MINOR) VERSION = u"{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)
0
0
0
562774cec7b70f916b0e0c33892bd6be50f93b60
4,197
py
Python
bokeh/models/glyph.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
bokeh/models/glyph.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
bokeh/models/glyph.py
teresafds/bokeh
95b2a74ff463cfabdf9e3390951fa380166e6691
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
29.145833
78
0.470098
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
455
0
182
d96440ea215c7d0e93a8f64b5fbcc2c7774c5a77
950
py
Python
Scripts/Miscellaneous/Car Detection/car_detection_vid.py
ShivangiPatel102/Python_and_the_Web
6d3b55aef20feeda3cfff941d7bbdc26cbcc70d2
[ "MIT" ]
437
2020-09-24T13:57:39.000Z
2022-03-30T12:45:56.000Z
Scripts/Miscellaneous/Car Detection/car_detection_vid.py
ShivangiPatel102/Python_and_the_Web
6d3b55aef20feeda3cfff941d7bbdc26cbcc70d2
[ "MIT" ]
355
2020-09-24T13:53:16.000Z
2022-03-27T04:20:40.000Z
Scripts/Miscellaneous/Car Detection/car_detection_vid.py
ShivangiPatel102/Python_and_the_Web
6d3b55aef20feeda3cfff941d7bbdc26cbcc70d2
[ "MIT" ]
315
2020-09-24T18:41:19.000Z
2022-03-07T05:53:01.000Z
# IMPORTS import cv2 # Read the video file cap = cv2.VideoCapture("./Data/cars.avi") # PROPids of the video frame frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) # FourCC Codec to identify the video file format fourcc = cv2.VideoWriter_fourcc(*"XVID") saved...
23.75
68
0.691579
# IMPORTS import cv2 # Read the video file cap = cv2.VideoCapture("./Data/cars.avi") # PROPids of the video frame frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) # FourCC Codec to identify the video file format fourcc = cv2.VideoWriter_fourcc(*"XVID") saved...
0
0
0
8ca0d061956f4a636d11ec510aa630a4398db3d6
13,043
py
Python
lib/account.py
ben1schofield/antiope
601d9b1db1aaf87fa51eb1a75e1579d4faa7aa79
[ "Apache-2.0" ]
1
2019-10-02T17:31:03.000Z
2019-10-02T17:31:03.000Z
lib/account.py
PoeBlu/antiope
6f20035bd6a408457aa27d230075287ef2c56c4e
[ "Apache-2.0" ]
null
null
null
lib/account.py
PoeBlu/antiope
6f20035bd6a408457aa27d230075287ef2c56c4e
[ "Apache-2.0" ]
null
null
null
import boto3 from botocore.exceptions import ClientError from boto3.dynamodb.conditions import Key import json import os import logging import datetime from dateutil import tz from pprint import pprint from lib.vpc import * import logging logger = logging.getLogger() class AWSAccount(object): """Class to repre...
39.644377
140
0.593805
import boto3 from botocore.exceptions import ClientError from boto3.dynamodb.conditions import Key import json import os import logging import datetime from dateutil import tz from pprint import pprint from lib.vpc import * import logging logger = logging.getLogger() class AWSAccount(object): """Class to repre...
0
0
0
c06bd8687329534b74ba4ee409c884cfe3399967
3,155
py
Python
scripts/image_res_dead_spot_results.py
Russ76/teach-repeat
de79d2e6dc82539f5d3082182a7ff04101b6689b
[ "BSD-2-Clause" ]
20
2021-01-25T13:36:47.000Z
2022-03-21T07:12:03.000Z
scripts/image_res_dead_spot_results.py
Russ76/teach-repeat
de79d2e6dc82539f5d3082182a7ff04101b6689b
[ "BSD-2-Clause" ]
17
2020-10-28T22:04:00.000Z
2022-03-24T15:51:34.000Z
scripts/image_res_dead_spot_results.py
Russ76/teach-repeat
de79d2e6dc82539f5d3082182a7ff04101b6689b
[ "BSD-2-Clause" ]
4
2021-01-29T18:38:18.000Z
2021-07-22T05:53:03.000Z
import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import collections import copy # deadspots = 175.2 (full fov) / res / 2 * discretisation # eg. 115x44 disc. 5 -> 175.2/115/2*5 = 3.81 deg # 2nd July (93a92648a5e774c97e3368e3306782382f626b6d) - SR=1, rho=0.1, theta=5 deg data = { ...
29.212963
146
0.602219
import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import collections import copy # deadspots = 175.2 (full fov) / res / 2 * discretisation # eg. 115x44 disc. 5 -> 175.2/115/2*5 = 3.81 deg # 2nd July (93a92648a5e774c97e3368e3306782382f626b6d) - SR=1, rho=0.1, theta=5 deg data = { ...
0
0
0
4308b7e60bc1b6e948ac4b2df528bfc55040f7e7
1,652
py
Python
165-compare-version-numbers.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
165-compare-version-numbers.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
165-compare-version-numbers.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
s = Solution() data = [ ['0.1', '0.1.0.0'], ['1.0.1', '1'], ['7.5.2.4', '7.3'], ['1.1', '1.01'], ["19.8.3.17.5.01.0.0.4.0.0.0.0.0.0.0.0.0.0.0.0.0.00.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0...
36.711111
323
0.458838
class Solution: def compareVersion(self, version1: str, version2: str) -> int: v1 = version1.split('.') v2 = version2.split('.') for i, val in enumerate(v1): start = 0 while start < len(val)-1 and val[start] == '0': start += 1 v1[i] = val[...
795
-6
49
be1b69c5d0ea234f2d671d2a89d76f21628570ee
29,884
py
Python
tests/test_app/test_data_store.py
aberki1234/cogent3
af98b248a999bfeefd4cfed6bd59b4f30442e2d4
[ "BSD-3-Clause" ]
null
null
null
tests/test_app/test_data_store.py
aberki1234/cogent3
af98b248a999bfeefd4cfed6bd59b4f30442e2d4
[ "BSD-3-Clause" ]
null
null
null
tests/test_app/test_data_store.py
aberki1234/cogent3
af98b248a999bfeefd4cfed6bd59b4f30442e2d4
[ "BSD-3-Clause" ]
null
null
null
import json import os import shutil import sys import zipfile from tempfile import TemporaryDirectory from unittest import TestCase, main, skipIf from cogent3.app.data_store import ( OVERWRITE, DataStoreMember, ReadOnlyDirectoryDataStore, ReadOnlyTinyDbDataStore, ReadOnlyZippedDataStore, Singl...
40.603261
123
0.592893
import json import os import shutil import sys import zipfile from tempfile import TemporaryDirectory from unittest import TestCase, main, skipIf from cogent3.app.data_store import ( OVERWRITE, DataStoreMember, ReadOnlyDirectoryDataStore, ReadOnlyTinyDbDataStore, ReadOnlyZippedDataStore, Singl...
5,733
22,579
115
94d3b37adfd476a0d8bd5f7caf4fd7e2923563de
114
py
Python
__OTHER__/MonitorIT/AppLauncher/backend/accounts.py
APetrishchev/Launcher
be0600997db9d0573acaa3339206c299a5fa5d40
[ "Apache-2.0" ]
null
null
null
__OTHER__/MonitorIT/AppLauncher/backend/accounts.py
APetrishchev/Launcher
be0600997db9d0573acaa3339206c299a5fa5d40
[ "Apache-2.0" ]
null
null
null
__OTHER__/MonitorIT/AppLauncher/backend/accounts.py
APetrishchev/Launcher
be0600997db9d0573acaa3339206c299a5fa5d40
[ "Apache-2.0" ]
null
null
null
from AppLauncher.backend.models.accounts import Account as ModelsAccount
22.8
73
0.815789
from AppLauncher.backend.models.accounts import Account as ModelsAccount class Account(ModelsAccount): pass
0
15
25
e82b51207277c755304ddcf908ffc4afb8f7a161
421
py
Python
temp_post/codepro/label.py
hjunlee91/hjunlee91.github.io
cb9665d12137c4d30018940e3c942f4c52576aa2
[ "MIT" ]
null
null
null
temp_post/codepro/label.py
hjunlee91/hjunlee91.github.io
cb9665d12137c4d30018940e3c942f4c52576aa2
[ "MIT" ]
null
null
null
temp_post/codepro/label.py
hjunlee91/hjunlee91.github.io
cb9665d12137c4d30018940e3c942f4c52576aa2
[ "MIT" ]
null
null
null
N = int(input()) A = [] s2 = set() for _ in range(N): x,i = map(int, input().split()) A.append([x,i]) s2.add(i) ID = dict() cnt_id = 0 for i in sorted(list(s2)): ID[i]=cnt_id cnt_id+=1 B = [] for a,b in A: B.append([a, ID[b]]) B.sort() check = [0]*cnt_id S=0 ans=1000000000 for E in range(len(B)): check[B[E][1...
14.033333
33
0.553444
N = int(input()) A = [] s2 = set() for _ in range(N): x,i = map(int, input().split()) A.append([x,i]) s2.add(i) ID = dict() cnt_id = 0 for i in sorted(list(s2)): ID[i]=cnt_id cnt_id+=1 B = [] for a,b in A: B.append([a, ID[b]]) B.sort() check = [0]*cnt_id S=0 ans=1000000000 for E in range(len(B)): check[B[E][1...
0
0
0
58a703e4551acbea1e3f6f81266195e65582ec5b
926
py
Python
patterns/creational/singleton.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
2
2021-09-23T16:41:42.000Z
2021-11-20T11:54:42.000Z
patterns/creational/singleton.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
null
null
null
patterns/creational/singleton.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ******************************************************** # Author and developer: Aleksandr Suvorov # -------------------------------------------------------- # Licensed: BSD 3-Clause License (see LICENSE for details) # -------------------------------------------------------- # Url: https://git...
29.870968
61
0.403888
# -*- coding: utf-8 -*- # ******************************************************** # Author and developer: Aleksandr Suvorov # -------------------------------------------------------- # Licensed: BSD 3-Clause License (see LICENSE for details) # -------------------------------------------------------- # Url: https://git...
199
-5
72
5cd6fc7fcc3026c381564cc53655cb8d630830e1
1,486
py
Python
src/chain_of_responsibility.py
MrRezoo/design-patterns-python
8f8e2501ad8e05f1a75ce5be659d926c0ec99698
[ "MIT" ]
6
2021-03-21T08:39:34.000Z
2021-06-08T13:05:34.000Z
src/chain_of_responsibility.py
MrRezoo/design-patterns-python
8f8e2501ad8e05f1a75ce5be659d926c0ec99698
[ "MIT" ]
null
null
null
src/chain_of_responsibility.py
MrRezoo/design-patterns-python
8f8e2501ad8e05f1a75ce5be659d926c0ec99698
[ "MIT" ]
1
2021-12-26T16:59:19.000Z
2021-12-26T16:59:19.000Z
""" Behavioral pattern: Chain of responsibility """ from abc import ABC, abstractmethod # ----------------------------------------------------------------- # ----------------------------------------------------------------- request = [3, 14, 34, 9] c1 = Client() c1.delegate(request)
24.766667
76
0.579408
""" Behavioral pattern: Chain of responsibility """ from abc import ABC, abstractmethod class AbstractHandler(ABC): def __init__(self, successor): self._successor = successor def handle(self, request): handled = self.process_request(request) if not handled: se...
794
141
244
af16ed4c83f7e0a7a4adb93e851d893b2b8fda24
212
py
Python
core/admin.py
jhonnyperalta/trivago-serve
50d8394200ae1e9a4b19b55fb6e23395832989aa
[ "MIT" ]
null
null
null
core/admin.py
jhonnyperalta/trivago-serve
50d8394200ae1e9a4b19b55fb6e23395832989aa
[ "MIT" ]
2
2020-06-05T18:31:15.000Z
2021-06-10T20:29:29.000Z
core/admin.py
jhonnyperalta/trivago-serve
50d8394200ae1e9a4b19b55fb6e23395832989aa
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User, Persona # Register your models here. admin.site.register(User, UserAdmin) admin.site.register(Persona)
23.555556
47
0.811321
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User, Persona # Register your models here. admin.site.register(User, UserAdmin) admin.site.register(Persona)
0
0
0
8430e8f299b05738722d11d0be6c76aaef30be80
1,703
py
Python
runtime/recompile.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
5
2021-06-01T14:25:01.000Z
2022-02-11T10:15:10.000Z
runtime/recompile.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
3
2021-02-23T08:47:27.000Z
2021-02-26T11:58:18.000Z
runtime/recompile.py
blapplejuice/ByteClient
5f04232468dfe5b609c043e3d4b094ff667d9c51
[ "MIT" ]
2
2021-03-27T15:43:42.000Z
2021-03-27T15:50:42.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 8 16:54:36 2011 @author: ProfMobius @version: v1.0 """ import sys import logging from optparse import OptionParser from commands import Commands, CLIENT, SERVER, CalledProcessError from mcp import recompile_side if __name__ == '__main__': main()
29.362069
117
0.637111
# -*- coding: utf-8 -*- """ Created on Fri Apr 8 16:54:36 2011 @author: ProfMobius @version: v1.0 """ import sys import logging from optparse import OptionParser from commands import Commands, CLIENT, SERVER, CalledProcessError from mcp import recompile_side def main(): parser = OptionParser(version='MCP %s' ...
1,353
0
46
a33bf98e7a492b45a1af1b77fdb0e03823a18c50
43
py
Python
modules/math-codes/modules/algebra/intro-to-equations/src/eq02.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
1
2020-09-06T22:17:19.000Z
2020-09-06T22:17:19.000Z
modules/math-codes/modules/algebra/intro-to-equations/src/eq02.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
modules/math-codes/modules/algebra/intro-to-equations/src/eq02.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
x = 4 result = 3*x - 2 == 10 print(result)
10.75
22
0.55814
x = 4 result = 3*x - 2 == 10 print(result)
0
0
0
83ff113379169d48d07485d451ef7cdc5cccdbfb
1,457
py
Python
morphine/number_model.py
kmike/morphine
30f06f348042fa67687f315151d00c0ed41c5c38
[ "MIT" ]
11
2015-03-24T12:17:17.000Z
2021-01-27T15:49:06.000Z
morphine/number_model.py
kmike/morphine
30f06f348042fa67687f315151d00c0ed41c5c38
[ "MIT" ]
2
2018-11-04T15:18:29.000Z
2020-06-19T07:41:19.000Z
morphine/number_model.py
kmike/morphine
30f06f348042fa67687f315151d00c0ed41c5c38
[ "MIT" ]
3
2015-11-04T19:00:55.000Z
2017-05-11T13:26:57.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from morphine import features from morphine.feature_extractor import FeatureExtractor from morphine.basetagger import PartialTagger
33.883721
91
0.57035
# -*- coding: utf-8 -*- from __future__ import absolute_import from morphine import features from morphine.feature_extractor import FeatureExtractor from morphine.basetagger import PartialTagger class NumberFeatureExtractor(FeatureExtractor): IGNORE = {'Arch', 'intg', 'real', 'GNdr', 'Ms-f'} def __init__(se...
1,073
114
72
5073786542adbd7faec59da87577623cc22dbac2
2,636
py
Python
tools/nntool/utils/diag_collector.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
tools/nntool/utils/diag_collector.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
tools/nntool/utils/diag_collector.py
mfkiwl/gap_sdk
642b798dfdc7b85ccabe6baba295033f0eadfcd4
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import numpy as np from matplotlib import pyplot as plt from matplotlib.ticker import FormatStrFormatter
33.794872
110
0.592564
from collections import OrderedDict import numpy as np from matplotlib import pyplot as plt from matplotlib.ticker import FormatStrFormatter class DiagCollector(): stats = OrderedDict() cur_set = None node_names = set() @classmethod def clear(cls): cls.stats = OrderedDict() cls.n...
2,137
333
23
27f7330b8a3bacad575d134758e48643b5d07a80
979
py
Python
prune_neon/transformation/cost.py
cs-chan/Fuzzy-Compression
f287a59896e27798c7ebca51a168e8a016b79a86
[ "BSD-3-Clause" ]
8
2018-06-20T19:00:37.000Z
2021-05-28T06:44:42.000Z
prune_neon/transformation/cost.py
cs-chan/Fuzzy-Compression
f287a59896e27798c7ebca51a168e8a016b79a86
[ "BSD-3-Clause" ]
1
2019-04-10T12:30:57.000Z
2019-04-12T00:28:13.000Z
prune_neon/transformation/cost.py
cs-chan/fuzzyDCN
f287a59896e27798c7ebca51a168e8a016b79a86
[ "BSD-3-Clause" ]
1
2017-11-09T02:19:54.000Z
2017-11-09T02:19:54.000Z
from neon.transforms.cost import Cost
32.633333
111
0.552605
from neon.transforms.cost import Cost class MulticlsSVMLoss(Cost): def __init__(self, delta=1.): self.delta = delta def __call__(self, y, t): T = self.be.empty_like(y) T[:] = self.be.max(y * t, axis=0) # T = self.be.array(self.be.max(y * t, axis=0).asnumpyarray(), y.shape[0], ...
725
8
206
968c1fe44a134e1f5c61ae57ac247871e0b20d7e
712
py
Python
tests/app/migrations/0007_cloudinaryimageexample_image_public.py
dldevinc/paper-uploads
9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939
[ "BSD-3-Clause" ]
3
2020-06-05T10:43:05.000Z
2022-02-22T16:46:16.000Z
tests/app/migrations/0007_cloudinaryimageexample_image_public.py
dldevinc/paper-uploads
9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939
[ "BSD-3-Clause" ]
2
2021-04-03T12:25:20.000Z
2022-02-02T06:10:46.000Z
tests/app/migrations/0007_cloudinaryimageexample_image_public.py
dldevinc/paper-uploads
9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-25 13:48 from django.db import migrations import django.db.models.deletion import paper_uploads.cloudinary.models.fields.image
32.363636
218
0.712079
# Generated by Django 3.2.6 on 2021-08-25 13:48 from django.db import migrations import django.db.models.deletion import paper_uploads.cloudinary.models.fields.image class Migration(migrations.Migration): dependencies = [ ('paper_uploads_cloudinary', '0002_auto_20210407_0627'), ('app', '0006_aut...
0
521
23
2a098b6427c2f6a9f8f4fe7a40dfaa6948fd59f1
8,116
py
Python
language/processors/__init__.py
nathanIL/openews
17f07de528342944f26855192db8019a0dbcc3a0
[ "Apache-2.0" ]
2
2016-01-10T08:45:29.000Z
2019-10-25T06:53:39.000Z
language/processors/__init__.py
nathanIL/openews
17f07de528342944f26855192db8019a0dbcc3a0
[ "Apache-2.0" ]
3
2016-01-07T15:43:40.000Z
2016-01-09T14:44:08.000Z
language/processors/__init__.py
nathanIL/openews
17f07de528342944f26855192db8019a0dbcc3a0
[ "Apache-2.0" ]
null
null
null
from nltk.tokenize import word_tokenize from server.db import MongoClientContext from operator import itemgetter from server import server_app from collections import defaultdict from itertools import chain import string import tempfile import os import nltk import logging nltk.data.path.append('nltk_data') class Si...
37.059361
119
0.645515
from nltk.tokenize import word_tokenize from server.db import MongoClientContext from operator import itemgetter from server import server_app from collections import defaultdict from itertools import chain import string import tempfile import os import nltk import logging nltk.data.path.append('nltk_data') class Si...
324
0
27
c93a566d49959711fed3a44d917668f5436b441b
3,302
py
Python
boto3_type_annotations/boto3_type_annotations/connect/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations/boto3_type_annotations/connect/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations/boto3_type_annotations/connect/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Optional from botocore.client import BaseClient from typing import Dict from typing import Union from botocore.paginate import Paginator from datetime import datetime from botocore.waiter import Waiter from typing import List
38.395349
242
0.700182
from typing import Optional from botocore.client import BaseClient from typing import Dict from typing import Union from botocore.paginate import Paginator from datetime import datetime from botocore.waiter import Waiter from typing import List class Client(BaseClient): def can_paginate(self, operation_name: str ...
2,355
4
697
30794d69ff6dd39f95cd378399c5d770d7faac71
16,284
py
Python
clip_optimizer.py
igg002/stylegan2-ada-pytorch
f9e58945e599ce09d3a21bb2c49dd5fdab2d5f54
[ "BSD-Source-Code" ]
null
null
null
clip_optimizer.py
igg002/stylegan2-ada-pytorch
f9e58945e599ce09d3a21bb2c49dd5fdab2d5f54
[ "BSD-Source-Code" ]
null
null
null
clip_optimizer.py
igg002/stylegan2-ada-pytorch
f9e58945e599ce09d3a21bb2c49dd5fdab2d5f54
[ "BSD-Source-Code" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
44.370572
227
0.616126
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
8,499
0
23
69af445a04a27d56d243c63c31d68a12f611d97f
5,116
py
Python
Python_Scripts/loadModels.py
ICB-DCM/solverstudy
0aea105c115bbf92d13cc19d88ab554438abdd38
[ "MIT" ]
null
null
null
Python_Scripts/loadModels.py
ICB-DCM/solverstudy
0aea105c115bbf92d13cc19d88ab554438abdd38
[ "MIT" ]
3
2020-11-22T21:32:07.000Z
2020-11-22T21:54:09.000Z
Python_Scripts/loadModels.py
ICB-DCM/solverstudy
0aea105c115bbf92d13cc19d88ab554438abdd38
[ "MIT" ]
null
null
null
# load every working model from the model collection into workspace import sys import os import importlib import pandas as pd import numpy as np import libsbml from C import DIR_MODELS_REGROUPED, DIR_MODELS def get_submodel(submodel_path: str, model_info: pd.DataFrame): """ This function lo...
37.617647
84
0.707389
# load every working model from the model collection into workspace import sys import os import importlib import pandas as pd import numpy as np import libsbml from C import DIR_MODELS_REGROUPED, DIR_MODELS def get_submodel(submodel_path: str, model_info: pd.DataFrame): """ This function lo...
0
0
0
2456dcdadaf8eaca99afd2460faae69a7a71c048
23,563
py
Python
python/mlfeaturizer/core/featurizer.py
adobe/ml-featurizer
3e142f22c92cb57e85fe093ed322fec903bec23a
[ "Apache-2.0" ]
13
2018-05-18T23:11:40.000Z
2021-01-24T23:37:16.000Z
python/mlfeaturizer/core/featurizer.py
adobe/ml-featurizer
3e142f22c92cb57e85fe093ed322fec903bec23a
[ "Apache-2.0" ]
16
2018-06-15T20:48:16.000Z
2019-01-23T01:19:56.000Z
python/mlfeaturizer/core/featurizer.py
adobe/ml-featurizer
3e142f22c92cb57e85fe093ed322fec903bec23a
[ "Apache-2.0" ]
4
2018-05-19T10:03:28.000Z
2020-09-26T15:48:36.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
35.168657
116
0.619997
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
0
0
0
8ac1df06bf5f8802f34f809cd97112ac920267ea
6,026
py
Python
evoltree/fitness/sequence_match.py
p-pereira/MGEDT
99e4b3ee2d07d4ba5b261e09d0ee20f83497af53
[ "MIT" ]
3
2021-06-17T17:25:44.000Z
2021-09-07T14:13:11.000Z
evoltree/fitness/sequence_match.py
p-pereira/evoltree
99e4b3ee2d07d4ba5b261e09d0ee20f83497af53
[ "MIT" ]
null
null
null
evoltree/fitness/sequence_match.py
p-pereira/evoltree
99e4b3ee2d07d4ba5b261e09d0ee20f83497af53
[ "MIT" ]
null
null
null
from ..algorithm.parameters import params from ..fitness.base_ff_classes.base_ff import base_ff import editdistance # https://pypi.python.org/pypi/editdistance import lzstring # https://pypi.python.org/pypi/lzstring/ import dtw # https://pypi.python.org/pypi/dtw """ This fitness function is for a sequence-match p...
25.974138
79
0.579821
from ..algorithm.parameters import params from ..fitness.base_ff_classes.base_ff import base_ff import editdistance # https://pypi.python.org/pypi/editdistance import lzstring # https://pypi.python.org/pypi/lzstring/ import dtw # https://pypi.python.org/pypi/dtw """ This fitness function is for a sequence-match p...
0
2,672
23
371284f9460d6c0e7ac059fc543b46adea1828f3
2,554
py
Python
constants.py
kkairos/unreliable-cartographer-plus
de777491f19d74554c85f6a84f51149e1c2c1969
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
constants.py
kkairos/unreliable-cartographer-plus
de777491f19d74554c85f6a84f51149e1c2c1969
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
constants.py
kkairos/unreliable-cartographer-plus
de777491f19d74554c85f6a84f51149e1c2c1969
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
from enum import Enum from math import radians, cos, sin THETAS = [] for theta in range(1080): theta = radians(float(theta/3)) xd_d = float(cos(theta)) yd_d = float(sin(theta)) THETAS.append((xd_d,yd_d)) LINES = { "top-left" : 201, "bottom-right" : 188, "top-right" : 187, "left-right" : 186,...
17.026667
69
0.472592
from enum import Enum from math import radians, cos, sin class Faction(Enum): Ally = 0 Enemy = 1 class DrawOrder(Enum): FLOOR = 0 NPC = 1 PLAYER = 2 THETAS = [] for theta in range(1080): theta = radians(float(theta/3)) xd_d = float(cos(theta)) yd_d = float(sin(theta)) THETAS.append((xd_d,...
0
58
50
e92880792f08d15d4ba8d2c8c5ab8d7fc898ab79
13,823
py
Python
kmip/core/messages/payloads/set_attribute.py
ondrap/PyKMIP
c8ea17d8faf827e0f9d004972835128a1a71569f
[ "Apache-2.0" ]
179
2015-03-20T06:08:59.000Z
2022-03-14T02:24:38.000Z
kmip/core/messages/payloads/set_attribute.py
imharshr/PyKMIP
9403ff3d2aa83de4c786b8eedeb85d169fd4a594
[ "Apache-2.0" ]
600
2015-04-08T14:14:48.000Z
2022-03-28T13:49:47.000Z
kmip/core/messages/payloads/set_attribute.py
imharshr/PyKMIP
9403ff3d2aa83de4c786b8eedeb85d169fd4a594
[ "Apache-2.0" ]
131
2015-03-30T12:51:49.000Z
2022-03-23T04:34:34.000Z
# Copyright (c) 2019 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
34.5575
79
0.604717
# Copyright (c) 2019 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
3,026
0
372
124b512d26fa5122c6456d7112680cc8b2389891
655
py
Python
api/sonetworks/migrations/0040_auto_20170520_0339.py
gvaldez81/semitki
6c7cbb2bb2260db79478de48a9b2e71b8ed633ff
[ "MIT" ]
null
null
null
api/sonetworks/migrations/0040_auto_20170520_0339.py
gvaldez81/semitki
6c7cbb2bb2260db79478de48a9b2e71b8ed633ff
[ "MIT" ]
51
2017-02-07T22:30:49.000Z
2022-03-11T23:15:55.000Z
api/sonetworks/migrations/0040_auto_20170520_0339.py
gvaldez81/semitki
6c7cbb2bb2260db79478de48a9b2e71b8ed633ff
[ "MIT" ]
1
2017-10-09T14:21:35.000Z
2017-10-09T14:21:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-05-20 03:39 from __future__ import unicode_literals from django.db import migrations, models
25.192308
74
0.603053
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-05-20 03:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sonetworks', '0039_auto_20170520_0305'), ] operations = [ migrations.AddFie...
0
476
23
649ef46b4ed4f8ea1e945cb524909f25b6f177d8
8,713
py
Python
iscc_service/main.py
iscc/iscc-service
bd33bb9de20b2d4b79115cab0afb7a3e436ddfa1
[ "MIT" ]
6
2020-01-29T14:07:50.000Z
2021-06-11T04:40:19.000Z
iscc_service/main.py
iscc/iscc-service
bd33bb9de20b2d4b79115cab0afb7a3e436ddfa1
[ "MIT" ]
22
2020-01-31T17:27:48.000Z
2022-01-27T12:17:49.000Z
iscc_service/main.py
iscc/iscc-service
bd33bb9de20b2d4b79115cab0afb7a3e436ddfa1
[ "MIT" ]
1
2021-01-16T13:11:35.000Z
2021-01-16T13:11:35.000Z
import os import shutil import uuid from os.path import join, splitext from typing import List import mobi import uvicorn from fastapi import FastAPI, UploadFile, File, Form, HTTPException import iscc from iscc_cli.tika import detector, parser from iscc_cli.const import SUPPORTED_MIME_TYPES, GMT import iscc_service fr...
28.106452
88
0.641226
import os import shutil import uuid from os.path import join, splitext from typing import List import mobi import uvicorn from fastapi import FastAPI, UploadFile, File, Form, HTTPException import iscc from iscc_cli.tika import detector, parser from iscc_cli.const import SUPPORTED_MIME_TYPES, GMT import iscc_service fr...
80
0
23
d6471f7e03a8cbee3d2cadbc9b631349b42b4c19
1,684
py
Python
Custom.py
bopchik/Simple-minecraft-mod-launcher
52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9
[ "BSD-2-Clause" ]
1
2021-06-17T18:19:41.000Z
2021-06-17T18:19:41.000Z
Custom.py
bopchik/Simple-minecraft-mod-launcher
52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9
[ "BSD-2-Clause" ]
null
null
null
Custom.py
bopchik/Simple-minecraft-mod-launcher
52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9
[ "BSD-2-Clause" ]
3
2021-06-17T18:19:44.000Z
2021-06-17T22:18:34.000Z
Modpack_name = "My modpack" #appears in the about dialog Modpack_author = "My name" #appears in the about dialog Modpack_url = "http://example.com/" #link to this appears in the about dialog M...
76.545455
204
0.597387
Modpack_name = "My modpack" #appears in the about dialog Modpack_author = "My name" #appears in the about dialog Modpack_url = "http://example.com/" #link to this appears in the about dialog M...
0
0
0
3fb493466694145d2a51bd90378fde63859be5a5
3,828
py
Python
cognito/scripts/cli.py
nibir-paul/cognito
01ae134af44b911b0220fbc27c5f8fd032de63c3
[ "BSD-3-Clause" ]
null
null
null
cognito/scripts/cli.py
nibir-paul/cognito
01ae134af44b911b0220fbc27c5f8fd032de63c3
[ "BSD-3-Clause" ]
null
null
null
cognito/scripts/cli.py
nibir-paul/cognito
01ae134af44b911b0220fbc27c5f8fd032de63c3
[ "BSD-3-Clause" ]
null
null
null
import os import six import shutil import yaml import click import pickle import pandas as pd from pyfiglet import figlet_format, Figlet from prettytable import PrettyTable from cognito.table import Table from datetime import datetime from tqdm import tqdm, trange def save_to(path, df, encoder): """ Save th...
23.925
113
0.599791
import os import six import shutil import yaml import click import pickle import pandas as pd from pyfiglet import figlet_format, Figlet from prettytable import PrettyTable from cognito.table import Table from datetime import datetime from tqdm import tqdm, trange def get_all_files(): import os files = [f fo...
92
0
23
6ad6f42ef33eb179b12a3228c8683d74f5416b4d
1,151
py
Python
test.py
ANDROID564/pc_cyber_lab
704aa94ec74f78d9221f4c0f96cfa62a9e10d3ef
[ "Apache-2.0" ]
null
null
null
test.py
ANDROID564/pc_cyber_lab
704aa94ec74f78d9221f4c0f96cfa62a9e10d3ef
[ "Apache-2.0" ]
null
null
null
test.py
ANDROID564/pc_cyber_lab
704aa94ec74f78d9221f4c0f96cfa62a9e10d3ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Aug 12 12:51:11 2018 @author: admin """ # -*- coding: utf-8 -*- """ Created on Sat Aug 11 15:12:22 2018 @author: admin """ from video_pixels import video import numpy as np import cv2 from matplotlib import pyplot as plt cap = cv2.VideoCapture('2.avi') ...
25.021739
82
0.672459
# -*- coding: utf-8 -*- """ Created on Sun Aug 12 12:51:11 2018 @author: admin """ # -*- coding: utf-8 -*- """ Created on Sat Aug 11 15:12:22 2018 @author: admin """ from video_pixels import video import numpy as np import cv2 from matplotlib import pyplot as plt cap = cv2.VideoCapture('2.avi') ...
0
0
0
7a5863d2407acb1f2e6db530343f711587a28bda
188
py
Python
tests/source/input/import_variable.py
tomaarsen/module_dependencies
4b452bf9dcea28df4ed2e632f33eda627b2363f5
[ "MIT" ]
1
2022-01-22T17:11:20.000Z
2022-01-22T17:11:20.000Z
tests/source/input/import_variable.py
tomaarsen/module_dependencies
4b452bf9dcea28df4ed2e632f33eda627b2363f5
[ "MIT" ]
null
null
null
tests/source/input/import_variable.py
tomaarsen/module_dependencies
4b452bf9dcea28df4ed2e632f33eda627b2363f5
[ "MIT" ]
null
null
null
from nltk import corpus, stopwords, tokenize output = tokenize.TextTilingTokenizer().tokenize(corpus.brown.raw()[0:10000]) output = [token for token in output if token not in stopwords]
31.333333
77
0.776596
from nltk import corpus, stopwords, tokenize output = tokenize.TextTilingTokenizer().tokenize(corpus.brown.raw()[0:10000]) output = [token for token in output if token not in stopwords]
0
0
0
c5774bdf1404bb966d68c427702b7029734839e4
2,347
py
Python
citest/kube_testing/kubectl_agent.py
armory-io/citest
56f2dfa991a377519e9be4c7f472fb9c80ec9fac
[ "Apache-2.0" ]
69
2016-04-05T15:15:49.000Z
2021-10-21T01:29:36.000Z
citest/kube_testing/kubectl_agent.py
armory-io/citest
56f2dfa991a377519e9be4c7f472fb9c80ec9fac
[ "Apache-2.0" ]
95
2016-04-06T13:31:09.000Z
2020-08-13T22:53:40.000Z
citest/kube_testing/kubectl_agent.py
armory-io/citest
56f2dfa991a377519e9be4c7f472fb9c80ec9fac
[ "Apache-2.0" ]
50
2016-04-05T14:10:57.000Z
2021-10-21T01:29:26.000Z
# Copyright 2016 Google Inc. 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 a...
35.029851
80
0.716233
# Copyright 2016 Google Inc. 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 a...
0
0
0
8204c955a6fee36a3b286df9d79307d50056cea7
52,892
py
Python
hera_cal/tests/test_io.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
10
2017-06-22T22:14:23.000Z
2022-03-08T17:33:45.000Z
hera_cal/tests/test_io.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
610
2017-06-22T22:16:27.000Z
2022-03-31T16:11:34.000Z
hera_cal/tests/test_io.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
8
2017-10-30T18:16:19.000Z
2021-04-01T09:20:18.000Z
# -*- coding: utf-8 -*- # Copyright 2019 the HERA Project # Licensed under the MIT License '''Tests for io.py''' import pytest import numpy as np import os import warnings import shutil import copy from collections import OrderedDict as odict import pyuvdata from pyuvdata import UVCal, UVData, UVFlag from pyuvdata.ut...
45.675302
168
0.604231
# -*- coding: utf-8 -*- # Copyright 2019 the HERA Project # Licensed under the MIT License '''Tests for io.py''' import pytest import numpy as np import os import warnings import shutil import copy from collections import OrderedDict as odict import pyuvdata from pyuvdata import UVCal, UVData, UVFlag from pyuvdata.ut...
50,233
1,016
602
53aa16faa7c602e62edd721652f7060aa128c59d
1,758
py
Python
test/docs/wiki_usage_test_2.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
test/docs/wiki_usage_test_2.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
test/docs/wiki_usage_test_2.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
""" >>> from massweb.mass_requests.mass_request import MassRequest >>> from massweb.targets.target import Target >>> >>> target_1 = Target(url=u"http://course.hyperiongray.com/vuln1", data={"password": "blh123"}, ttype="post") >>> target_2 = Target(url=u"http://course.hyperiongray.com/vuln2/898538a7...
46.263158
148
0.695677
""" >>> from massweb.mass_requests.mass_request import MassRequest >>> from massweb.targets.target import Target >>> >>> target_1 = Target(url=u"http://course.hyperiongray.com/vuln1", data={"password": "blh123"}, ttype="post") >>> target_2 = Target(url=u"http://course.hyperiongray.com/vuln2/898538a7...
0
0
0
b01c04d10d833747f3649efcb710c0db39e190e5
296
py
Python
frontend/src/gbuilder/Devices/yRouter.py
anrl/gini4
d26649c8c02a1737159e48732cf1ee15ba2a604d
[ "MIT" ]
null
null
null
frontend/src/gbuilder/Devices/yRouter.py
anrl/gini4
d26649c8c02a1737159e48732cf1ee15ba2a604d
[ "MIT" ]
null
null
null
frontend/src/gbuilder/Devices/yRouter.py
anrl/gini4
d26649c8c02a1737159e48732cf1ee15ba2a604d
[ "MIT" ]
null
null
null
from Router import * from PyQt4 import QtCore
24.666667
54
0.658784
from Router import * from PyQt4 import QtCore class yRouter(Router): device_type="yRouter" def __init__(self): Interfaceable.__init__(self) self.setProperty("WLAN", "False") self.setProperty("mac_type", "MAC 802.11 DCF") self.lightPoint = QPoint(-14,15)
173
54
23
8a1141842d664fe3836f21c40666cdb5c03cce59
1,427
py
Python
ingest.py
rahiml31/nfl-conversion-rate
c39ba67eb572b15a949f0d15de388803795ae9c2
[ "MIT" ]
null
null
null
ingest.py
rahiml31/nfl-conversion-rate
c39ba67eb572b15a949f0d15de388803795ae9c2
[ "MIT" ]
null
null
null
ingest.py
rahiml31/nfl-conversion-rate
c39ba67eb572b15a949f0d15de388803795ae9c2
[ "MIT" ]
null
null
null
import pandas as pd import sys import json import sqlite3 if __name__ == '__main__': main(sys.argv)
29.122449
77
0.622285
import pandas as pd import sys import json import sqlite3 def main(args): try: # Parse out the command-line arguments # props_path = args[1] data_path = args[2] # Read in the properties file # with open(props_path) as x: props = json.load(x) # Read in t...
1,294
0
27
1a5ffaa37a47a6f64a4feec2a441751b9328238e
559
py
Python
spacy.py
ambuj1234/NLP
141b019df93f2830ba7fee2a3f62a9aff017b922
[ "Apache-2.0" ]
null
null
null
spacy.py
ambuj1234/NLP
141b019df93f2830ba7fee2a3f62a9aff017b922
[ "Apache-2.0" ]
null
null
null
spacy.py
ambuj1234/NLP
141b019df93f2830ba7fee2a3f62a9aff017b922
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """spacy.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1PvWiuiOWi9TFTT6hZQJrobxF87dT5LBY """ !pip3 install spacy import spacy import time nlp=spacy.load('en') # this will use nltk_data folder to load library data="i ...
20.703704
77
0.728086
# -*- coding: utf-8 -*- """spacy.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1PvWiuiOWi9TFTT6hZQJrobxF87dT5LBY """ !pip3 install spacy import spacy import time nlp=spacy.load('en') # this will use nltk_data folder to load library data="i ...
0
0
0
938e116c2945a7e10e587b5f42ef6ecd34d814a7
6,312
py
Python
bchydro/api.py
Nebual/bchydro
4db88308d6fa2f8a245fd7408b8572c062e5a75b
[ "MIT" ]
null
null
null
bchydro/api.py
Nebual/bchydro
4db88308d6fa2f8a245fd7408b8572c062e5a75b
[ "MIT" ]
null
null
null
bchydro/api.py
Nebual/bchydro
4db88308d6fa2f8a245fd7408b8572c062e5a75b
[ "MIT" ]
null
null
null
import aiohttp import logging import xml.etree.ElementTree as ET from bs4 import BeautifulSoup from .types import ( BCHydroAccount, BCHydroInterval, BCHydroRates, BCHydroDailyElectricity, BCHydroDailyUsage, ) from .const import ( USER_AGENT, URL_POST_LOGIN, URL_GET_ACCOUNT_JSON, UR...
36.068571
94
0.520596
import aiohttp import logging import xml.etree.ElementTree as ET from bs4 import BeautifulSoup from .types import ( BCHydroAccount, BCHydroInterval, BCHydroRates, BCHydroDailyElectricity, BCHydroDailyUsage, ) from .const import ( USER_AGENT, URL_POST_LOGIN, URL_GET_ACCOUNT_JSON, UR...
5,462
441
23
589dc0ead3c64441eaeb8ceda3713a90bf911c59
1,392
py
Python
get_duration.py
bhaaratchetty/Extract-Fashion-from-Videos
a6a0459dea8a7f4ed22ec2b874576d2cecdbf2cd
[ "MIT" ]
5
2018-01-21T16:47:59.000Z
2021-09-07T17:42:17.000Z
get_duration.py
bhaaratchetty/Extract-Fashion-from-Videos
a6a0459dea8a7f4ed22ec2b874576d2cecdbf2cd
[ "MIT" ]
2
2018-02-07T16:45:52.000Z
2018-02-26T15:38:48.000Z
get_duration.py
bhaaratchetty/Extract-Fashion-from-Videos
a6a0459dea8a7f4ed22ec2b874576d2cecdbf2cd
[ "MIT" ]
1
2019-03-26T14:34:53.000Z
2019-03-26T14:34:53.000Z
# 1. After getting the duration iterate through each second and get the frames # at each second # 2. Next step is to get how much ever frames you want in that second with the upper- # bound of min(X,FPS) # 3. Need to see whether to save the images /Frames and then randomly select min(X,FPS) # ...
29
107
0.611351
# 1. After getting the duration iterate through each second and get the frames # at each second # 2. Next step is to get how much ever frames you want in that second with the upper- # bound of min(X,FPS) # 3. Need to see whether to save the images /Frames and then randomly select min(X,FPS) # ...
0
0
0
7b688e26273b41c038141ad6693a1fea669051b7
372
py
Python
main/replace-words/replace-words-roughscratch.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/replace-words/replace-words-roughscratch.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/replace-words/replace-words-roughscratch.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
WORD_MARK = None
18.6
32
0.395161
WORD_MARK = None def build_trie(words): trie = {} for word in words: node = trie for ch in word: try: node = node[ch] except KeyError: child = {} node[ch] = child node = child ...
332
0
23
27b25eda62b0da6c6884161f79c2edb610b9eb68
344
py
Python
Scripts/test/test_pipeline.py
thesyght/ny-ride-share-analysis
e496874c0665176472738b48be8023a275b87e7d
[ "Unlicense" ]
null
null
null
Scripts/test/test_pipeline.py
thesyght/ny-ride-share-analysis
e496874c0665176472738b48be8023a275b87e7d
[ "Unlicense" ]
null
null
null
Scripts/test/test_pipeline.py
thesyght/ny-ride-share-analysis
e496874c0665176472738b48be8023a275b87e7d
[ "Unlicense" ]
null
null
null
''' Runs unit tests for Util functionality ''' import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import unittest from main.consolidate_uber_data import Pipeline
26.461538
73
0.752907
''' Runs unit tests for Util functionality ''' import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import unittest from main.consolidate_uber_data import Pipeline class PieplineTests(unittest.TestCase): def test_csv_list(self): self.assertEqual(len(Pipeline().get_list_...
77
18
49
513e6bef1b80b168ba47aea1c4a121d1e650f946
496
py
Python
doltcli/__init__.py
sidphbot/doltcli
059a7c6dd31f036771b3ce94cd5f064696d64229
[ "Apache-2.0" ]
6
2021-03-23T20:58:23.000Z
2022-03-31T22:07:11.000Z
doltcli/__init__.py
sidphbot/doltcli
059a7c6dd31f036771b3ce94cd5f064696d64229
[ "Apache-2.0" ]
22
2021-03-10T21:06:22.000Z
2021-11-06T20:07:12.000Z
doltcli/__init__.py
sidphbot/doltcli
059a7c6dd31f036771b3ce94cd5f064696d64229
[ "Apache-2.0" ]
6
2021-06-14T19:07:39.000Z
2021-11-05T18:50:59.000Z
from .dolt import ( Branch, Commit, Dolt, DoltException, DoltHubContext, KeyPair, Remote, Status, Table, _execute, ) from .types import BranchT, CommitT, DoltT, KeyPairT, RemoteT, StatusT, TableT from .utils import ( CREATE, FORCE_CREATE, REPLACE, UPDATE, colu...
16.533333
78
0.643145
from .dolt import ( Branch, Commit, Dolt, DoltException, DoltHubContext, KeyPair, Remote, Status, Table, _execute, ) from .types import BranchT, CommitT, DoltT, KeyPairT, RemoteT, StatusT, TableT from .utils import ( CREATE, FORCE_CREATE, REPLACE, UPDATE, colu...
0
0
0
88dbbd363dedaa6ade14df5482dd1634d3ee6090
8,818
py
Python
tarot_deck.py
williamsonf/tarot-deck
acce545be0a475674e2c00684809164507fc0973
[ "MIT" ]
null
null
null
tarot_deck.py
williamsonf/tarot-deck
acce545be0a475674e2c00684809164507fc0973
[ "MIT" ]
null
null
null
tarot_deck.py
williamsonf/tarot-deck
acce545be0a475674e2c00684809164507fc0973
[ "MIT" ]
null
null
null
''' Created on May 10, 2021 @author: Fred ''' from PIL import Image from datetime import datetime import random, os class tdeck(): ''' classdocs ''' def __init__(self, card_dir='./card_images/', invert=True, invert_chance=25): ''' Args ---- card_dir :...
39.542601
103
0.532774
''' Created on May 10, 2021 @author: Fred ''' from PIL import Image from datetime import datetime import random, os class tdeck(): ''' classdocs ''' def __init__(self, card_dir='./card_images/', invert=True, invert_chance=25): ''' Args ---- card_dir :...
4,404
0
251
d529b8c0a54392e230daf1dcd8e3ab15ac3577e5
1,225
py
Python
akutil/akutil/util.py
ak47mrj/arkouda
a9167e674aff57e02e1bed49fbb0c3cf1b2f2707
[ "MIT" ]
75
2019-10-21T17:20:41.000Z
2021-05-10T22:01:19.000Z
akutil/akutil/util.py
ak47mrj/arkouda
a9167e674aff57e02e1bed49fbb0c3cf1b2f2707
[ "MIT" ]
424
2019-10-21T16:48:45.000Z
2021-05-12T11:49:18.000Z
akutil/akutil/util.py
ak47mrj/arkouda
a9167e674aff57e02e1bed49fbb0c3cf1b2f2707
[ "MIT" ]
36
2019-10-23T17:45:44.000Z
2021-04-17T01:15:03.000Z
import akutil as aku import arkouda as ak def expand(size, segs, vals): """ Expand an array with values placed into the indicated segments. Parameters ---------- size : ak.pdarray The size of the array to be expanded segs : ak.pdarray The indices where the values should be placed ...
26.06383
71
0.613878
import akutil as aku import arkouda as ak def expand(size, segs, vals): """ Expand an array with values placed into the indicated segments. Parameters ---------- size : ak.pdarray The size of the array to be expanded segs : ak.pdarray The indices where the values should be placed ...
0
0
0
5a5d711c24a0ef42b4dadbb8b8c5f642248dbe7a
13,616
py
Python
src/utils/monitor.py
WebsmartAPI/smartapi
4b65c612ded8e200191ecff2f382f9aaf0e552fe
[ "MIT" ]
null
null
null
src/utils/monitor.py
WebsmartAPI/smartapi
4b65c612ded8e200191ecff2f382f9aaf0e552fe
[ "MIT" ]
1
2017-02-28T17:44:32.000Z
2017-02-28T17:44:32.000Z
src/utils/monitor.py
WebsmartAPI/smartapi
4b65c612ded8e200191ecff2f382f9aaf0e552fe
[ "MIT" ]
null
null
null
""" API Uptime Monitor Author: Kevin Xin Amiteshk Sharma Status: Good, Bad, Incompatible, Unknown """ import logging from enum import Enum import requests # pylint:disable=import-error, ungrouped-imports from requests.packages.urllib3.exceptions impor...
37.202186
109
0.48913
""" API Uptime Monitor Author: Kevin Xin Amiteshk Sharma Status: Good, Bad, Incompatible, Unknown """ import logging from enum import Enum import requests # pylint:disable=import-error, ungrouped-imports from requests.packages.urllib3.exceptions impor...
11,067
82
423
4801814d7013b1a113077add52ea91df87430228
741
py
Python
app/modules/organizations/parameters.py
karenc/houston
4eaaaf11d61394035e34b55bb847ea7eb4099c61
[ "Apache-2.0" ]
6
2021-04-06T19:50:52.000Z
2022-01-19T17:42:33.000Z
app/modules/organizations/parameters.py
WildMeOrg/houston
8102229421388e44234c07ee6cb73bf705b6fba0
[ "Apache-2.0" ]
491
2021-01-20T01:10:00.000Z
2022-03-31T19:30:48.000Z
app/modules/organizations/parameters.py
karenc/houston
4eaaaf11d61394035e34b55bb847ea7eb4099c61
[ "Apache-2.0" ]
2
2021-03-12T02:33:55.000Z
2021-03-16T20:18:43.000Z
# -*- coding: utf-8 -*- """ Input arguments (Parameters) for Organizations resources RESTful API ----------------------------------------------------------- """ # from flask_marshmallow import base_fields from flask_restx_patched import Parameters, PatchJSONParameters from . import schemas from .models import Organiz...
30.875
83
0.723347
# -*- coding: utf-8 -*- """ Input arguments (Parameters) for Organizations resources RESTful API ----------------------------------------------------------- """ # from flask_marshmallow import base_fields from flask_restx_patched import Parameters, PatchJSONParameters from . import schemas from .models import Organiz...
0
367
46
3576ad930ce3335f3b6f6b882209208e6d1398f5
181
py
Python
natunits/mksa.py
hajifkd/hepunits
174b9903a584e60885e2ac4b2fdef02ca67e4ecd
[ "MIT" ]
null
null
null
natunits/mksa.py
hajifkd/hepunits
174b9903a584e60885e2ac4b2fdef02ca67e4ecd
[ "MIT" ]
null
null
null
natunits/mksa.py
hajifkd/hepunits
174b9903a584e60885e2ac4b2fdef02ca67e4ecd
[ "MIT" ]
null
null
null
from .unit import * N = kg * m / s**2 J = N * m W = J / s Pa = N / m**2 # electricity A = coulomb / s V = W / A ohm = V / A T = kg * s**-2 / A F = coulomb / V gauss = 10**-4 * T
11.3125
19
0.458564
from .unit import * N = kg * m / s**2 J = N * m W = J / s Pa = N / m**2 # electricity A = coulomb / s V = W / A ohm = V / A T = kg * s**-2 / A F = coulomb / V gauss = 10**-4 * T
0
0
0
4fdab3a527e7e6d980a20a802ab2b8c3e450ac84
23
py
Python
hyk/sessions_app/views/__init__.py
morwen1/hack_your_body
d4156d4fbe2dd4123d5b5bceef451803a50a39f8
[ "MIT" ]
null
null
null
hyk/sessions_app/views/__init__.py
morwen1/hack_your_body
d4156d4fbe2dd4123d5b5bceef451803a50a39f8
[ "MIT" ]
null
null
null
hyk/sessions_app/views/__init__.py
morwen1/hack_your_body
d4156d4fbe2dd4123d5b5bceef451803a50a39f8
[ "MIT" ]
null
null
null
from .sessions import *
23
23
0.782609
from .sessions import *
0
0
0
1daf58ba95a3239317ecf7dd78989ecf73a0d885
1,363
py
Python
server/routes/index.py
vincihb/stock-price-predictor
17f46bed7360817835a160ea4f1a6e057de4032d
[ "MIT" ]
null
null
null
server/routes/index.py
vincihb/stock-price-predictor
17f46bed7360817835a160ea4f1a6e057de4032d
[ "MIT" ]
1
2021-06-02T03:12:17.000Z
2021-06-02T03:12:17.000Z
server/routes/index.py
vincihb/stock-price-predictor
17f46bed7360817835a160ea4f1a6e057de4032d
[ "MIT" ]
null
null
null
from os import listdir, path from client.util.HTMLUtil import HTMLUtil from client.util.html.ButtonBuilder import ButtonBuilder from client.util.html.ListBuilder import ListBuilder from client.util.html.LinkBuider import LinkBuilder valid_report_types = ['NLU', 'NLU_Timing', 'Refresh_DD', 'Markov_Chain']
40.088235
127
0.679384
from os import listdir, path from client.util.HTMLUtil import HTMLUtil from client.util.html.ButtonBuilder import ButtonBuilder from client.util.html.ListBuilder import ListBuilder from client.util.html.LinkBuider import LinkBuilder valid_report_types = ['NLU', 'NLU_Timing', 'Refresh_DD', 'Markov_Chain'] def index_r...
1,031
0
23
8b48fd4069d16ca65836b437ae61871dacdad01f
5,066
py
Python
faker_fdw/__init__.py
olleolleolle/faker_fdw
56e323732460a1b3537dca553787f523a950083d
[ "PostgreSQL" ]
null
null
null
faker_fdw/__init__.py
olleolleolle/faker_fdw
56e323732460a1b3537dca553787f523a950083d
[ "PostgreSQL" ]
null
null
null
faker_fdw/__init__.py
olleolleolle/faker_fdw
56e323732460a1b3537dca553787f523a950083d
[ "PostgreSQL" ]
null
null
null
# # Copyright (c) 2016-2019 Dickson S. Guedes. # # This module is free software; you can redistribute it and/or modify it under # the [PostgreSQL License](http://www.opensource.org/licenses/postgresql). # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose, without fe...
32.063291
95
0.624556
# # Copyright (c) 2016-2019 Dickson S. Guedes. # # This module is free software; you can redistribute it and/or modify it under # the [PostgreSQL License](http://www.opensource.org/licenses/postgresql). # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose, without fe...
3,229
481
23
83626bb2d1e3333cca1bda2ba2806dfca59ce85b
184,425
py
Python
operators/kogito-operator/python/pulumi_pulumi_kubernetes_crds_operators_kogito_operator/app/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/kogito-operator/python/pulumi_pulumi_kubernetes_crds_operators_kogito_operator/app/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/kogito-operator/python/pulumi_pulumi_kubernetes_crds_operators_kogito_operator/app/v1beta1/_inputs.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ '...
44.600967
739
0.676432
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ '...
22,759
154,725
1,822
0a59c2ee062911147c3e2adbf76f541fa9a1e8a3
17,503
py
Python
predicu/plot/flux_dept_lits_dept_visu_4panels.py
rth/predicu
7b1afc89ac42f7ecc8b5eca07435cfd2a8cd46a7
[ "MIT" ]
2
2020-05-04T09:32:02.000Z
2020-05-04T14:58:29.000Z
predicu/plot/flux_dept_lits_dept_visu_4panels.py
rth/predicu
7b1afc89ac42f7ecc8b5eca07435cfd2a8cd46a7
[ "MIT" ]
null
null
null
predicu/plot/flux_dept_lits_dept_visu_4panels.py
rth/predicu
7b1afc89ac42f7ecc8b5eca07435cfd2a8cd46a7
[ "MIT" ]
1
2020-05-04T12:20:39.000Z
2020-05-04T12:20:39.000Z
import sys import matplotlib.pyplot as plt import numpy as np import pandas as pd import icubam import icubam.predicu.data import icubam.predicu.plot data_source = ["bedcounts", "combined_bedcounts_public"] # Logic of this code: the computation of quantities, even when seemingly simple, # is performed separately fr...
38.216157
176
0.638062
import sys import matplotlib.pyplot as plt import numpy as np import pandas as pd import icubam import icubam.predicu.data import icubam.predicu.plot data_source = ["bedcounts", "combined_bedcounts_public"] # Logic of this code: the computation of quantities, even when seemingly simple, # is performed separately fr...
8,934
0
69
dfecf629d7ea49f602527e9f81d5f8d548b8895a
902
py
Python
utils.py
RECDAO/content-curator
219e84f75812f99f8497e9f42baf23b10cd7facc
[ "MIT" ]
1
2018-03-23T13:48:35.000Z
2018-03-23T13:48:35.000Z
utils.py
RECDAO/content
219e84f75812f99f8497e9f42baf23b10cd7facc
[ "MIT" ]
null
null
null
utils.py
RECDAO/content
219e84f75812f99f8497e9f42baf23b10cd7facc
[ "MIT" ]
null
null
null
from datetime import datetime import json import os
26.529412
81
0.605322
from datetime import datetime import json import os def save(posts, post): date = str(datetime.fromtimestamp(post["created_utc"]).date()) if date not in posts: posts[date] = {} is_new = False if post["id"] not in posts[date]: is_new = True posts[date][post["id"]] = post # up...
803
0
46
21c599109bf55573755fbe8ec000d8bf3b3b02c7
1,263
py
Python
Lutece-VJudge-prototype/codechef.py
HeRaNO/ChickenRibs
9aa8dd8f915aa39a7168940b5ff99a1d665f5212
[ "MIT" ]
14
2020-03-02T09:55:44.000Z
2021-09-17T09:39:40.000Z
Lutece-VJudge-prototype/codechef.py
HeRaNO/ChickenRibs
9aa8dd8f915aa39a7168940b5ff99a1d665f5212
[ "MIT" ]
null
null
null
Lutece-VJudge-prototype/codechef.py
HeRaNO/ChickenRibs
9aa8dd8f915aa39a7168940b5ff99a1d665f5212
[ "MIT" ]
8
2020-06-08T12:38:56.000Z
2021-06-27T14:23:30.000Z
import requests from bs4 import BeautifulSoup import sys username = "" # Fill it passwd = "" # Fill it session = requests.Session() url = "https://www.codechef.com/login" r = session.get(url, verify = False) soup = BeautifulSoup(r.text, features = "lxml") _csrf = soup.find("input", attrs = {"name": "csrfToken"})[...
21.40678
115
0.658749
import requests from bs4 import BeautifulSoup import sys username = "" # Fill it passwd = "" # Fill it session = requests.Session() url = "https://www.codechef.com/login" r = session.get(url, verify = False) soup = BeautifulSoup(r.text, features = "lxml") _csrf = soup.find("input", attrs = {"name": "csrfToken"})[...
0
0
0
2b9a672364a19a2db68338da24db4f81a59a2988
3,729
py
Python
tests/graph_test.py
dahvid/graphutil
7e5380c7be84db79ee61d52b3cdaea8061df6850
[ "MIT" ]
null
null
null
tests/graph_test.py
dahvid/graphutil
7e5380c7be84db79ee61d52b3cdaea8061df6850
[ "MIT" ]
2
2020-03-24T17:10:33.000Z
2021-02-02T22:02:19.000Z
tests/graph_test.py
dahvid/graphutil
7e5380c7be84db79ee61d52b3cdaea8061df6850
[ "MIT" ]
null
null
null
from graphutil import Graph if __name__ == "__main__": test_arcs() test_write() test_connected_components() test_bfs() test_bfs_full() test_substitute()
23.161491
67
0.519979
from graphutil import Graph def test_arcs(): g = Graph() g.add_node("A") g.add_node("B") g.add_node("C") g.add_node("D") g.add_edge("A", "B", "edge_data") g.add_edge("A", "C", "edge_data") g.add_edge("A", "D", "edge_data") g.add_edge("B", "D", "edge_data") g.add_edge("C", "D"...
3,410
0
138
1375a8f99fc58b129c6942c69b2c6e60ce85f55d
575
py
Python
src/pgsignals/enums.py
CJIABKA/django-pgsignals
80224f646481f6da32a8090c2e85f241fc397e23
[ "MIT" ]
null
null
null
src/pgsignals/enums.py
CJIABKA/django-pgsignals
80224f646481f6da32a8090c2e85f241fc397e23
[ "MIT" ]
null
null
null
src/pgsignals/enums.py
CJIABKA/django-pgsignals
80224f646481f6da32a8090c2e85f241fc397e23
[ "MIT" ]
1
2022-01-27T16:26:39.000Z
2022-01-27T16:26:39.000Z
import enum __all__ = ("EventKind", "ALL_EVENTS") ALL_EVENTS = ( EventKind.INSERT, EventKind.UPDATE, EventKind.DELETE )
16.911765
47
0.624348
import enum __all__ = ("EventKind", "ALL_EVENTS") class EventKind(enum.Enum): INSERT = 'INSERT' UPDATE = 'UPDATE' DELETE = 'DELETE' @property def is_create(self) -> bool: return self is self.INSERT @property def is_update(self) -> bool: return self is self.UPDATE @...
179
236
23
b41ff77976149a0c233e3e246f92aee9ded9461e
942
py
Python
Segmentation/evaluate.py
neuhofmo/calcium-imaging-neuorn-segmentation
1f86d9210219cf82f375b2b3ad52b3218b788405
[ "MIT" ]
2
2019-11-01T17:29:05.000Z
2021-11-28T19:14:07.000Z
Segmentation/evaluate.py
neuhofmo/calcium-imaging-neuron-detection
1f86d9210219cf82f375b2b3ad52b3218b788405
[ "MIT" ]
null
null
null
Segmentation/evaluate.py
neuhofmo/calcium-imaging-neuron-detection
1f86d9210219cf82f375b2b3ad52b3218b788405
[ "MIT" ]
null
null
null
from subprocess import check_output from ast import literal_eval from Segmentation.params import regions_file from Segmentation.utilities import fix_json_fname import numpy as np def evaluation(fname_to_check, regions_fname=regions_file): """Evaluate results with neurofinder""" fname_to_check = fix_jso...
39.25
117
0.739915
from subprocess import check_output from ast import literal_eval from Segmentation.params import regions_file from Segmentation.utilities import fix_json_fname import numpy as np def evaluation(fname_to_check, regions_fname=regions_file): """Evaluate results with neurofinder""" fname_to_check = fix_jso...
0
0
0
cfc6a561d47ca79282cfece90b19d586d4e32850
3,016
py
Python
playground/physics.py
eldstal/uware-games
e432cc626d60fa827225daccb819632c71f07aea
[ "MIT" ]
null
null
null
playground/physics.py
eldstal/uware-games
e432cc626d60fa827225daccb819632c71f07aea
[ "MIT" ]
null
null
null
playground/physics.py
eldstal/uware-games
e432cc626d60fa827225daccb819632c71f07aea
[ "MIT" ]
null
null
null
from pyglet.gl import *
25.777778
70
0.544761
from pyglet.gl import * class Entity: def __init__(self, x, y, width, height, name="Entity"): # # Instantaneous state # self.x = x self.y = y self.vx = 0 self.vy = 0 self.width = width self.height = height self.bump_up = False self.bump_down = False self.bump_l...
2,537
358
95
e1776ccf5d17908ca0a7cf15182fe22547850e10
368
py
Python
schedule/admin.py
WaffleHacks/mailgunner
3c55342960219bdfff6c971b01d02059fcc0f429
[ "MIT" ]
null
null
null
schedule/admin.py
WaffleHacks/mailgunner
3c55342960219bdfff6c971b01d02059fcc0f429
[ "MIT" ]
12
2021-06-13T01:50:20.000Z
2021-08-17T17:49:43.000Z
schedule/admin.py
WaffleHacks/mailgunner
3c55342960219bdfff6c971b01d02059fcc0f429
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Attachment, Message @admin.register(Attachment) @admin.register(Message)
26.285714
74
0.752717
from django.contrib import admin from .models import Attachment, Message @admin.register(Attachment) class ScheduledAttachmentAdmin(admin.ModelAdmin): list_display = ("name", "content_type", "inline", "message") @admin.register(Message) class ScheduledMessageAdmin(admin.ModelAdmin): list_display = ("from_n...
0
193
44
aa1bcf7312cdbe3817a77aec2dc84d44fee05eb3
201
py
Python
Project/plugins/Extract_Crop.py
sushrutt12/faceswap
e1fbc1a4cc4f9e680954e0b928c3e7ebeba70718
[ "MIT" ]
1
2020-01-27T15:43:08.000Z
2020-01-27T15:43:08.000Z
Project/plugins/Extract_Crop.py
sushrutt12/faceswap
e1fbc1a4cc4f9e680954e0b928c3e7ebeba70718
[ "MIT" ]
11
2020-01-28T22:15:22.000Z
2022-02-10T00:20:04.000Z
Project/plugins/Extract_Crop.py
sushrutt12/faceswap
e1fbc1a4cc4f9e680954e0b928c3e7ebeba70718
[ "MIT" ]
1
2021-03-31T13:08:21.000Z
2021-03-31T13:08:21.000Z
# Based on the original https://www.reddit.com/r/deepfakes/ code sample import cv2
28.714286
71
0.701493
# Based on the original https://www.reddit.com/r/deepfakes/ code sample import cv2 class Extract(object): def extract(self, image, face, size): return cv2.resize(face.image, (size, size))
68
1
49
38cfa124a774eb57573c3975bf82b247628ff82d
6,807
py
Python
nautobot/extras/tests/integration/test_plugins.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
nautobot/extras/tests/integration/test_plugins.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
nautobot/extras/tests/integration/test_plugins.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
import json import os import tempfile from unittest import skipIf from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.urls import reverse from nautobot.extras.choices import WebhookHttpMethodChoices from nautobot.extras.context_managers import web_request_context f...
38.457627
125
0.685177
import json import os import tempfile from unittest import skipIf from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.urls import reverse from nautobot.extras.choices import WebhookHttpMethodChoices from nautobot.extras.context_managers import web_request_context f...
1,089
0
108
336f50eff226f7ae2d0f118fc8091df4a1deeeba
781
py
Python
face_sync/example_maker/video_to_image.py
lilly9117/Cross-Cutting
d534e8b5d4bf071883b7cb5f1832bba74b9a52d0
[ "Apache-2.0" ]
40
2020-09-21T05:35:17.000Z
2022-02-06T04:41:34.000Z
face_sync/example_maker/video_to_image.py
lilly9117/Cross-Cutting
d534e8b5d4bf071883b7cb5f1832bba74b9a52d0
[ "Apache-2.0" ]
4
2020-05-22T15:44:13.000Z
2020-07-17T07:41:33.000Z
face_sync/example_maker/video_to_image.py
lilly9117/Cross-Cutting
d534e8b5d4bf071883b7cb5f1832bba74b9a52d0
[ "Apache-2.0" ]
8
2020-10-03T06:08:39.000Z
2021-12-17T15:50:30.000Z
# import the necessary packages from moviepy.editor import VideoFileClip import time import os # 프레임당 이미지로 저장 if __name__ == '__main__': video_path = './fifth_season9/fifth_season_landmark.mp4' save_dir = './fifth_season9' out_name = 'landmark_img' video_to_image(video_path, save_dir, out_name)
22.970588
60
0.65557
# import the necessary packages from moviepy.editor import VideoFileClip import time import os # 프레임당 이미지로 저장 def video_to_image(video_path, save_dir, out_name): # Load video video = VideoFileClip(video_path) time.sleep(4) # Save frame as image for i in range(int(video.duration*video.fps)): ...
470
0
22
e093dc962019d426f9bf23085c3a22aeaffe224d
6,191
py
Python
git_wrapper/log.py
jpichon/git_wrapper
4ea59b341a2a2d92102300a6bbd1b2bdc28cffe1
[ "MIT" ]
null
null
null
git_wrapper/log.py
jpichon/git_wrapper
4ea59b341a2a2d92102300a6bbd1b2bdc28cffe1
[ "MIT" ]
null
null
null
git_wrapper/log.py
jpichon/git_wrapper
4ea59b341a2a2d92102300a6bbd1b2bdc28cffe1
[ "MIT" ]
null
null
null
#! /usr/bin/env python """This module acts as an interface for acting on git logs""" from string import Template from git_wrapper import exceptions from git_wrapper.utils.decorators import reference_exists
41
134
0.600711
#! /usr/bin/env python """This module acts as an interface for acting on git logs""" from string import Template from git_wrapper import exceptions from git_wrapper.utils.decorators import reference_exists class GitLog(object): def __init__(self, git_repo, logger): """Constructor for GitLog object ...
0
5,959
23
d60d2809ddd7d9f7b4d8f67338c38856764769f6
1,338
py
Python
src/main.py
Lukasz1928/lichess-fide
b454539caae3de4890f2bb660c0154b454351494
[ "MIT" ]
null
null
null
src/main.py
Lukasz1928/lichess-fide
b454539caae3de4890f2bb660c0154b454351494
[ "MIT" ]
null
null
null
src/main.py
Lukasz1928/lichess-fide
b454539caae3de4890f2bb660c0154b454351494
[ "MIT" ]
null
null
null
from src.data.download import download_database from src.data.ranking_file import read_rankings from src.data.rankings import get_and_save_rankings from src.data.raw import save_names_from_database from src.ranking.differences import calculate_ranking_difference_across_variants, save_ranking_differences from src.rankin...
37.166667
106
0.822123
from src.data.download import download_database from src.data.ranking_file import read_rankings from src.data.rankings import get_and_save_rankings from src.data.raw import save_names_from_database from src.ranking.differences import calculate_ranking_difference_across_variants, save_ranking_differences from src.rankin...
760
0
46
218a597040f0db1e31fa6e000f17d995916e7020
2,092
py
Python
app/api/v1/views/property_views.py
MurungaKibaara/Kukodi
870a8b37d02ea438c571dbf373b43ad9f924b08f
[ "MIT" ]
3
2019-07-20T04:22:53.000Z
2019-07-31T22:45:53.000Z
app/api/v1/views/property_views.py
MurungaKibaara/Kukodi
870a8b37d02ea438c571dbf373b43ad9f924b08f
[ "MIT" ]
1
2021-06-01T23:59:09.000Z
2021-06-01T23:59:09.000Z
app/api/v1/views/property_views.py
MurungaKibaara/Kukodi
870a8b37d02ea438c571dbf373b43ad9f924b08f
[ "MIT" ]
4
2019-07-21T17:24:10.000Z
2020-01-04T13:40:48.000Z
import re import psycopg2 from werkzeug.security import generate_password_hash, check_password_hash from flask import Blueprint, request, jsonify, make_response from app.api.v1.models.property_models import PropertyRecords from app.api.v1.models.database import init_db from app.api.v1.utils.validators import validate f...
32.6875
106
0.690249
import re import psycopg2 from werkzeug.security import generate_password_hash, check_password_hash from flask import Blueprint, request, jsonify, make_response from app.api.v1.models.property_models import PropertyRecords from app.api.v1.models.database import init_db from app.api.v1.utils.validators import validate f...
0
0
0
b4f75b33feec52ab53efc6da37c94a8904be52e5
26,022
py
Python
lib/GameSystem.py
approvers/musical_typer
010873f9bc5869c0ad8dfb430e118b493efd0c86
[ "MIT" ]
5
2020-02-15T10:37:27.000Z
2020-12-02T19:08:04.000Z
lib/GameSystem.py
brokenManager/musical_typer
010873f9bc5869c0ad8dfb430e118b493efd0c86
[ "MIT" ]
32
2020-02-10T04:22:31.000Z
2020-05-26T04:44:06.000Z
lib/GameSystem.py
brokenManager/musical_typer
010873f9bc5869c0ad8dfb430e118b493efd0c86
[ "MIT" ]
4
2020-02-16T08:04:44.000Z
2020-02-18T06:06:25.000Z
############################## # # # loxygenK/musical_typer # # ゲームシステム # # (c)2020 loxygenK # # All rights reversed. # # # ############################## import re import chardet import pygame import romkan from lib import Drawin...
25.996004
112
0.523134
############################## # # # loxygenK/musical_typer # # ゲームシステム # # (c)2020 loxygenK # # All rights reversed. # # # ############################## import re import chardet import pygame import romkan from lib import Drawin...
1,994
50
130