hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
8fc56b79ae9b52445ccd630cff6f04a731c8c363
2,706
py
Python
src/mathenjeu/cli/openssl.py
sdpython/mathenjeu
97fc9140ef89ac9c3c6ba46803121fd5d23eb8d1
[ "MIT" ]
1
2019-10-12T00:48:35.000Z
2019-10-12T00:48:35.000Z
src/mathenjeu/cli/openssl.py
sdpython/mathenjeu
97fc9140ef89ac9c3c6ba46803121fd5d23eb8d1
[ "MIT" ]
8
2019-01-13T11:52:55.000Z
2020-11-19T01:27:28.000Z
src/mathenjeu/cli/openssl.py
sdpython/mathenjeu
97fc9140ef89ac9c3c6ba46803121fd5d23eb8d1
[ "MIT" ]
null
null
null
""" @file @brief Starts an app locally to test it. """ from OpenSSL import crypto def create_self_signed_cert(keyfile="key.pem", certfile="cert.pem", country='FR', state='Paris', location='Paris', organization='mathenjeu', cn='mathenjeu', ...
35.142857
128
0.648189
347
2,706
4.919308
0.386167
0.032806
0.065612
0.058582
0.282367
0.282367
0.216755
0.186292
0.186292
0.186292
0
0.021898
0.240577
2,706
76
129
35.605263
0.808759
0.422395
0
0.060606
0
0
0.094875
0.034626
0
0
0
0
0
1
0.030303
false
0
0.030303
0
0.060606
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fc8cb9153d75f29f52cbd961e16ca92d1a97e91
1,099
py
Python
.github/rename_to_lowercase.py
openmicroanalysis/calczaf
f95de343dae908c1b3a531b9ed24fa1f5daf3e6d
[ "MIT" ]
1
2021-06-29T17:56:14.000Z
2021-06-29T17:56:14.000Z
.github/rename_to_lowercase.py
openmicroanalysis/calczaf
f95de343dae908c1b3a531b9ed24fa1f5daf3e6d
[ "MIT" ]
3
2015-12-02T22:29:35.000Z
2019-02-21T03:30:56.000Z
.github/rename_to_lowercase.py
openmicroanalysis/calczaf
f95de343dae908c1b3a531b9ed24fa1f5daf3e6d
[ "MIT" ]
null
null
null
import os import shutil import argparse def rename(source_path, recursive): if recursive and os.path.isdir(source_path): for dir_path, dir_names, filenames in os.walk(source_path): for name in filenames + dir_names: rename(os.path.join(dir_path, name), recursive) dirname, ...
31.4
80
0.678799
138
1,099
5.217391
0.405797
0.083333
0.0875
0.104167
0
0
0
0
0
0
0
0.002302
0.209281
1,099
34
81
32.323529
0.826237
0
0
0
0
0
0.136488
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.2
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fcb61eebe8ee15539f00118a131def866c5523d
2,099
py
Python
drive.py
eshimelis/RCC
536ec0cc8373fb7d5cd5ca59166d7e55bf6a8643
[ "MIT" ]
null
null
null
drive.py
eshimelis/RCC
536ec0cc8373fb7d5cd5ca59166d7e55bf6a8643
[ "MIT" ]
null
null
null
drive.py
eshimelis/RCC
536ec0cc8373fb7d5cd5ca59166d7e55bf6a8643
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import numpy as np import rospy from rospy.numpy_msg import numpy_msg from sensor_msgs.msg import LaserScan from ackermann_msgs.msg import AckermannDriveStamped def follow_wall(scan): ####### STUDENT CODE START ####### # use the scan data to appropriately modify 'speed' and 'steering_a...
30.42029
76
0.626965
241
2,099
5.207469
0.39834
0.066932
0.051793
0.067729
0.10757
0.047809
0
0
0
0
0
0.003881
0.263459
2,099
69
77
30.42029
0.807891
0.226298
0
0
0
0
0.091623
0.066099
0
0
0
0
0
1
0.088235
false
0
0.147059
0
0.441176
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fd1772e98d57dfc163eac7dcaf96158ad02de68
8,117
py
Python
rgw/v2/tests/multisite/test_dynamic_bucket_resharding.py
viduship/ceph-qe-scripts
886619fa6600c24cbf989d65868951b9c3decd72
[ "MIT" ]
null
null
null
rgw/v2/tests/multisite/test_dynamic_bucket_resharding.py
viduship/ceph-qe-scripts
886619fa6600c24cbf989d65868951b9c3decd72
[ "MIT" ]
null
null
null
rgw/v2/tests/multisite/test_dynamic_bucket_resharding.py
viduship/ceph-qe-scripts
886619fa6600c24cbf989d65868951b9c3decd72
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.abspath(os.path.join(__file__, "../../../.."))) import argparse import json import time import traceback import v2.lib.resource_op as s3lib import v2.utils.log as log import v2.utils.utils as utils import yaml from v2.lib.exceptions import TestExecError from v2.lib.read_io...
40.585
104
0.643957
1,035
8,117
4.803865
0.200966
0.038013
0.032582
0.014481
0.357804
0.292237
0.273532
0.218825
0.17136
0.136766
0
0.01025
0.254774
8,117
199
105
40.788945
0.811704
0.047801
0
0.174157
0
0
0.183338
0.008292
0
0
0
0
0
1
0.016854
false
0.005618
0.106742
0
0.129213
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fd22f3b02ea78de31bf1097cb5218ccd7460292
5,410
py
Python
jsondictionary.py
gbarreiro/diccionariojson
5918ed4b39b418592f16d2baa724c4c1f631c43b
[ "MIT" ]
null
null
null
jsondictionary.py
gbarreiro/diccionariojson
5918ed4b39b418592f16d2baa724c4c1f631c43b
[ "MIT" ]
null
null
null
jsondictionary.py
gbarreiro/diccionariojson
5918ed4b39b418592f16d2baa724c4c1f631c43b
[ "MIT" ]
1
2020-12-29T14:11:07.000Z
2020-12-29T14:11:07.000Z
import os import sys import json from json.decoder import JSONDecodeError # Program which manages a simple database (a Python dictionary stored in a file) class Database(): """ Clase que modela la BD sobre la que trabaja el programa. Incluye los métodos necesarios para cargarla y actualizarla en el disco""" d...
40.373134
139
0.58207
646
5,410
4.80031
0.304954
0.053209
0.021928
0.012577
0.176717
0.123186
0.123186
0.123186
0.123186
0.123186
0
0.004105
0.324584
5,410
133
140
40.676692
0.844554
0.244177
0
0.231579
0
0
0.161055
0
0
0
0
0.007519
0
1
0.094737
false
0
0.042105
0
0.168421
0.231579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fd4993d9f2830ffd5acae8b1b2c37958dbdbbf5
11,205
py
Python
create_tf_record.py
goruck/edge-tpu-train
21608ddf19b736be2639342363ff331ca8b272f3
[ "MIT" ]
10
2020-07-28T21:00:05.000Z
2022-02-24T13:35:46.000Z
create_tf_record.py
maxpark/edge-tpu-train
21608ddf19b736be2639342363ff331ca8b272f3
[ "MIT" ]
10
2020-07-17T02:19:54.000Z
2022-03-12T00:41:22.000Z
create_tf_record.py
maxpark/edge-tpu-train
21608ddf19b736be2639342363ff331ca8b272f3
[ "MIT" ]
9
2020-10-28T01:17:58.000Z
2022-03-31T07:34:17.000Z
""" Convert dataset to TFRecord for TF object detection training. Example usage: python3 create_tf_record.py \ --root_dir ./ \ --image_dir images \ --annotation_dir annotations \ --output_dir tf-record \ --dataset_name radar-ml Only datset_name is required. Based on: ...
36.858553
119
0.635341
1,372
11,205
4.94242
0.216472
0.028314
0.024333
0.016959
0.209704
0.125203
0.105442
0.089515
0.068132
0.053384
0
0.005445
0.262383
11,205
304
120
36.858553
0.815003
0.187506
0
0.104762
0
0
0.1537
0.020009
0
0
0
0
0
1
0.02381
false
0
0.071429
0
0.109524
0.004762
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fd609f33e73003a14511ee46598d44faf2d22bd
2,791
py
Python
Cogs/core.py
Lustidrike/Economy-Bot
f5b989b9086d9c0834555126c275d12381dd108f
[ "MIT" ]
2
2019-09-24T21:44:00.000Z
2019-09-24T21:44:17.000Z
Cogs/core.py
Lustidrike/Economy-Bot
f5b989b9086d9c0834555126c275d12381dd108f
[ "MIT" ]
1
2021-03-31T14:35:11.000Z
2021-11-08T17:48:47.000Z
Cogs/core.py
Lustidrike/Economy-Bot
f5b989b9086d9c0834555126c275d12381dd108f
[ "MIT" ]
1
2020-08-16T16:59:57.000Z
2020-08-16T16:59:57.000Z
import logging import discord import datetime import json from operator import itemgetter from discord.ext import commands from os import linesep from .base_cog import BaseCog from conf import config log = logging.getLogger(__name__) class Core(BaseCog): """A minimal cog for testing.""" def __init__(self, bo...
32.453488
165
0.672161
344
2,791
5.290698
0.313953
0.090659
0.069231
0.088462
0.33956
0.33956
0.33956
0.33956
0.31044
0.20989
0
0.000453
0.209244
2,791
85
166
32.835294
0.824196
0.01469
0
0.254902
0
0
0.062823
0
0
0
0
0
0
1
0.039216
false
0.019608
0.176471
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fda72af2a11ecb22d4d1d7e69668167ef276bd0
1,008
py
Python
tests/test_rendering/test_delta.py
ryu57/pyHalo
61b9ab49d76f3552f5680b2e457fbd3e49b9cc89
[ "MIT" ]
7
2020-12-09T23:58:34.000Z
2022-03-13T12:18:32.000Z
tests/test_rendering/test_delta.py
ryu57/pyHalo
61b9ab49d76f3552f5680b2e457fbd3e49b9cc89
[ "MIT" ]
8
2020-10-12T21:30:22.000Z
2022-01-25T16:04:54.000Z
tests/test_rendering/test_delta.py
ryu57/pyHalo
61b9ab49d76f3552f5680b2e457fbd3e49b9cc89
[ "MIT" ]
6
2021-06-07T16:30:41.000Z
2022-01-12T16:58:04.000Z
import numpy.testing as npt import pytest import numpy as np from pyHalo.Rendering.MassFunctions.delta import DeltaFunction class TestBackgroundDensityDelta(object): def setup(self): self.mass = 0.01 self.volume = 10 self.rho = 10 self.mfunc = DeltaFunction(self.mass, self.volume,...
28
103
0.638889
138
1,008
4.507246
0.34058
0.07717
0.11254
0.109325
0.368167
0.257235
0.257235
0.135048
0.135048
0.135048
0
0.018617
0.253968
1,008
35
104
28.8
0.808511
0
0
0.153846
0
0
0.007937
0
0
0
0
0
0.153846
1
0.076923
false
0
0.153846
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fdacbeae6f9e86eed514fcf51543bad698647f9
4,716
py
Python
LayeredGraphAPI/VisualizeGraph.py
whytestalyon/LayeredGraph
f7126d50b5d362c6e9302244de268c34ca9c31b0
[ "Apache-2.0" ]
null
null
null
LayeredGraphAPI/VisualizeGraph.py
whytestalyon/LayeredGraph
f7126d50b5d362c6e9302244de268c34ca9c31b0
[ "Apache-2.0" ]
1
2020-03-06T16:00:11.000Z
2020-03-06T16:00:11.000Z
LayeredGraphAPI/VisualizeGraph.py
whytestalyon/LayeredGraph
f7126d50b5d362c6e9302244de268c34ca9c31b0
[ "Apache-2.0" ]
2
2019-01-15T01:32:56.000Z
2019-11-12T15:58:43.000Z
#!/usr/bin/env python ''' VisualizeGraph.py This file contains helpful sub-routines for generating images from a Random Walk run. ''' import math import os import struct from LayeredGraph import LayeredGraph def saveGraphImage(mg, outFN, rankings=None, minWeight=0.0, drawEdgeWeights=False, nodeTypes=None): ''' ...
43.666667
135
0.550254
596
4,716
4.325503
0.330537
0.016292
0.013964
0.032583
0.131497
0.069822
0
0
0
0
0
0.016731
0.340967
4,716
108
136
43.666667
0.812741
0.417727
0
0.117647
0
0
0.064773
0.008712
0
0
0
0.009259
0
1
0.039216
false
0
0.078431
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fdadfd6b7318f2fb0f818d5d171f52fa0f3f300
6,881
py
Python
MyBot/hlt.py
ranb2002/halite
85bce75c10ab89c563e9e5cc34e8a221fdc74f42
[ "MIT" ]
null
null
null
MyBot/hlt.py
ranb2002/halite
85bce75c10ab89c563e9e5cc34e8a221fdc74f42
[ "MIT" ]
null
null
null
MyBot/hlt.py
ranb2002/halite
85bce75c10ab89c563e9e5cc34e8a221fdc74f42
[ "MIT" ]
null
null
null
import sys import math import heapq from collections import namedtuple from itertools import chain, zip_longest def grouper(iterable, n, fillvalue=None): "Collect data into fixed-length chunks or blocks" # grouper('ABCDEFG', 3, 'x') --> ABC DEF Gxx" args = [iter(iterable)] * n return zip_longest(*args...
38.657303
170
0.596425
907
6,881
4.403528
0.227122
0.029294
0.019529
0.006009
0.190786
0.135704
0.090135
0.090135
0.090135
0.090135
0
0.018349
0.271327
6,881
177
171
38.875706
0.778221
0.143438
0
0.015152
0
0.015152
0.108104
0
0
0
0
0
0.030303
1
0.151515
false
0
0.037879
0.022727
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fdcf04045655bc17942f9bca87ae63747446edb
2,389
py
Python
server/attender-mobile/api/facebook_login.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
server/attender-mobile/api/facebook_login.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
server/attender-mobile/api/facebook_login.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
__author__ = 'itamar' import sys from engine.facebook_logic import fb_logic import logging import webapp2 from engine.DAL import DAL sys.path.insert(0, 'lib') #we need this line in order to make libraries imported from lib folder work properly import requests FACEBOOK_APP_ID = "683953828381840" class APILoginHandl...
32.283784
119
0.551277
259
2,389
4.942085
0.378378
0.075
0.066406
0.065625
0.079688
0.079688
0.054688
0.054688
0
0
0
0.02235
0.344496
2,389
74
120
32.283784
0.795019
0.034743
0
0.166667
0
0
0.079358
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.216667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fddaa46f409381998e02d2d70d806b3585116f9
2,996
py
Python
hashing/LinkedList.py
iamlmn/PyDS
11b00629a91e8231eea7f8feb7c3c6065fdb1ce5
[ "MIT" ]
null
null
null
hashing/LinkedList.py
iamlmn/PyDS
11b00629a91e8231eea7f8feb7c3c6065fdb1ce5
[ "MIT" ]
null
null
null
hashing/LinkedList.py
iamlmn/PyDS
11b00629a91e8231eea7f8feb7c3c6065fdb1ce5
[ "MIT" ]
null
null
null
class _Node: __slots__ = '_element', '_next' def __init__(self, element, next): self._element = element self._next = next class LinkedList: def __init__(self): self._head = None self._tail = None self._size = 0 def __len__(self): return se...
24.357724
42
0.437583
334
2,996
3.658683
0.131737
0.124386
0.051555
0.0491
0.40671
0.348609
0.317512
0.243044
0.243044
0.179214
0
0.013224
0.46996
2,996
122
43
24.557377
0.756297
0
0
0.574074
0
0
0.014619
0
0
0
0
0
0
1
0.12037
false
0
0
0.018519
0.231481
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fdf3ea0d8d65163228f397b06ee77dbf23617ec
806
py
Python
signalbot/functions/trivia.py
pblaas/signalbot
11d9b5fdcc63ddbc99ea817b0fcdb6a6d3cc42da
[ "MIT" ]
null
null
null
signalbot/functions/trivia.py
pblaas/signalbot
11d9b5fdcc63ddbc99ea817b0fcdb6a6d3cc42da
[ "MIT" ]
null
null
null
signalbot/functions/trivia.py
pblaas/signalbot
11d9b5fdcc63ddbc99ea817b0fcdb6a6d3cc42da
[ "MIT" ]
null
null
null
"""Trivia module.""" import urllib3 import json import random import html class Trivia: """Defining base class for inheritence.""" @staticmethod def trivia(): """Get random questions from opentdb trivia API.""" http = urllib3.PoolManager() req_return = http.request('GET', 'https:...
29.851852
80
0.635236
94
806
5.297872
0.542553
0.080321
0.10241
0.108434
0
0
0
0
0
0
0
0.012678
0.217122
806
26
81
31
0.776545
0.120347
0
0
0
0
0.294372
0.077922
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fe525e1bcdcf2d80e15cfd4df2b184377d84c8c
4,365
py
Python
dashboard/dashboard/services/swarming_service_test.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/services/swarming_service_test.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/services/swarming_service_test.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
1
2020-07-24T05:13:01.000Z
2020-07-24T05:13:01.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import json import mock from dashboard.services import swarming_service class _SwarmingTest(unittest.TestCase): def setUp(self): p...
30.524476
73
0.666208
451
4,365
6.21286
0.332594
0.069593
0.035689
0.118844
0.37616
0.342612
0.325482
0.3005
0.194861
0.045682
0
0.026781
0.195876
4,365
142
74
30.739437
0.77151
0.03551
0
0.207547
0
0
0.177603
0.053257
0
0
0
0
0.226415
1
0.150943
false
0
0.037736
0
0.245283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fe5d7b26c0ea9f708ffcc671befa4d94503df4f
3,199
py
Python
ssh_tarpit/utils.py
Snawoot/ssh-tarp
8c10f1d94497de246b37cf00cb19a5359cccc1e5
[ "Unlicense" ]
24
2019-08-23T23:45:42.000Z
2022-03-01T04:21:19.000Z
ssh_tarpit/utils.py
Snawoot/ssh-tarp
8c10f1d94497de246b37cf00cb19a5359cccc1e5
[ "Unlicense" ]
8
2021-03-08T15:10:06.000Z
2021-06-16T11:04:54.000Z
ssh_tarpit/utils.py
Snawoot/ssh-tarp
8c10f1d94497de246b37cf00cb19a5359cccc1e5
[ "Unlicense" ]
5
2021-03-13T06:49:10.000Z
2022-02-28T09:25:22.000Z
import asyncio import logging import logging.handlers import os import queue class Heartbeat: def __init__(self, interval=.5): self._interval = interval self._beat = None async def heartbeat(self): while True: await asyncio.sleep(self._interval) async def __aenter__(s...
25.388889
72
0.589872
336
3,199
5.39881
0.324405
0.026461
0.018192
0.015436
0.030871
0.030871
0
0
0
0
0
0.002745
0.316661
3,199
125
73
25.592
0.827081
0.004064
0
0.103093
0
0
0.021357
0
0
0
0
0
0
1
0.164948
false
0.030928
0.072165
0.020619
0.42268
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fe650bd344f12877d6483ceb013ce5a8f97a5b9
41,012
py
Python
luna/gateware/interface/serdes_phy/xc7_gtp.py
shrine-maiden-heavy-industries/luna
6e737ea004d64c0b81de13e68657fecb45f93c1b
[ "BSD-3-Clause" ]
null
null
null
luna/gateware/interface/serdes_phy/xc7_gtp.py
shrine-maiden-heavy-industries/luna
6e737ea004d64c0b81de13e68657fecb45f93c1b
[ "BSD-3-Clause" ]
null
null
null
luna/gateware/interface/serdes_phy/xc7_gtp.py
shrine-maiden-heavy-industries/luna
6e737ea004d64c0b81de13e68657fecb45f93c1b
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of LUNA. # # Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com> # Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # # Code based in part on ``litex`` and ``liteiclink``. # SPDX-License-Identifier: BSD-3-Clause """ Soft PIPE backend for the Xilinx 7 Series GTP trans...
39.510597
100
0.467961
4,028
41,012
4.427507
0.229643
0.006617
0.006673
0.006729
0.139957
0.077997
0.031849
0.00785
0.00785
0.00785
0
0.080093
0.463279
41,012
1,037
101
39.548698
0.730102
0.142958
0
0.042796
0
0.001427
0.043981
0.004648
0
0
0.008119
0
0.005706
1
0.011412
false
0.007133
0.008559
0
0.031384
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fe7efedfa8f56385459dfe830c3948c64e75c65
2,202
py
Python
src/image_scripts/paper/PS_0p0V_a.py
flaviu-gostin/xrd_analysis_workflow
47699b88d3e603ea1cc80079d59bd084a68d9bdb
[ "MIT" ]
2
2020-09-11T19:49:30.000Z
2021-11-17T09:23:49.000Z
src/image_scripts/paper/PS_0p0V_a.py
flaviu-gostin/xrd_analysis_workflow
47699b88d3e603ea1cc80079d59bd084a68d9bdb
[ "MIT" ]
1
2020-11-21T19:51:10.000Z
2020-11-21T19:51:10.000Z
src/image_scripts/paper/PS_0p0V_a.py
flaviu-gostin/xrd_analysis_workflow
47699b88d3e603ea1cc80079d59bd084a68d9bdb
[ "MIT" ]
null
null
null
"""Create a powder diffraction figure""" import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator import sys sys.path.append('..') from plot_diffraction_patterns import powder_diffr_fig measured_patterns_dir = "../../../results/intermediate/integrated_1D/PS_0p0V_a" reference_peaks_dir = "../../.....
35.516129
80
0.600363
269
2,202
4.698885
0.431227
0.039557
0.072785
0.061709
0.130538
0.130538
0.078323
0
0
0
0
0.051471
0.258856
2,202
61
81
36.098361
0.723039
0.099909
0
0.04878
0
0
0.15533
0.068528
0
0
0
0
0
1
0
false
0
0.097561
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8fe97bb9e8bdef14a32c685ef3d9f30bd722998a
416
py
Python
clusim/__init__.py
yy/clusim
5d3081d74e08d3e42e99f27834e1f9408af222a1
[ "MIT" ]
2
2019-01-13T19:21:09.000Z
2022-03-04T17:05:42.000Z
clusim/__init__.py
yy/clusim
5d3081d74e08d3e42e99f27834e1f9408af222a1
[ "MIT" ]
null
null
null
clusim/__init__.py
yy/clusim
5d3081d74e08d3e42e99f27834e1f9408af222a1
[ "MIT" ]
null
null
null
__package__ = 'clusim' __title__ = 'CluSim: A python package for clustering similarity' __description__ = 'This package implements a series of methods to compare \ disjoint, overlapping, and hierarchical clusterings.' __copyright__ = '2017, Gates, A.J., Ahn YY' __author__ = """\n""".join([ 'Alexander J Gates ...
27.733333
75
0.701923
52
416
5.076923
0.788462
0.015152
0
0
0
0
0
0
0
0
0
0.028736
0.163462
416
14
76
29.714286
0.729885
0
0
0
0
0
0.358173
0.050481
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8feab8882dff671c56c9fbfeba6ac87921f9199e
8,132
py
Python
online_main.py
samar-khanna/cs224w-project
50b255f87fe395cb8b638ec599825af2d1fc172b
[ "MIT" ]
2
2022-03-06T17:14:12.000Z
2022-03-11T13:37:59.000Z
online_main.py
samar-khanna/cs224w-project
50b255f87fe395cb8b638ec599825af2d1fc172b
[ "MIT" ]
null
null
null
online_main.py
samar-khanna/cs224w-project
50b255f87fe395cb8b638ec599825af2d1fc172b
[ "MIT" ]
2
2022-03-06T16:26:39.000Z
2022-03-06T17:14:20.000Z
import os import torch import pickle import argparse import torch.optim as optim from gnn_stack import GNNStack from link_predictor import LinkPredictor from torch_geometric.data import DataLoader from ogb.linkproppred import PygLinkPropPredDataset from train import train from online_train import online_train from onl...
46.204545
113
0.65728
1,181
8,132
4.237934
0.176969
0.028771
0.01998
0.025175
0.267133
0.224975
0.142058
0.120879
0.085714
0.085714
0
0.008714
0.223807
8,132
175
114
46.468571
0.784221
0.060994
0
0.015038
0
0.015038
0.210602
0.070201
0
0
0
0
0
1
0.007519
false
0.015038
0.097744
0
0.112782
0.06015
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8feb7480e4bbc54978c0c32f4a7ee1a2f74788fe
13,618
py
Python
playground/simulation/forwardtesting/session.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/simulation/forwardtesting/session.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/simulation/forwardtesting/session.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
__title__ = "simulation" __author__ = "murlux" __copyright__ = "Copyright 2019, " + __author__ __credits__ = (__author__, ) __license__ = "MIT" __email__ = "murlux@protonmail.com" import bokeh.plotting import pandas as pd import numpy as np import warnings import time import logging from datetime import datetime as dt...
41.773006
123
0.561463
1,574
13,618
4.658196
0.187421
0.05401
0.019504
0.008729
0.364021
0.313284
0.290644
0.282051
0.282051
0.241408
0
0.013773
0.306873
13,618
326
124
41.773006
0.763005
0.106844
0
0.224066
0
0.008299
0.118584
0.006911
0
0
0
0.003067
0
1
0.033195
false
0.008299
0.062241
0.008299
0.190871
0.004149
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ff1e45352cd99cbac855e077cebbf9c64db6800
12,868
py
Python
ahrs/filters/roleq.py
jaluebbe/ahrs
4b4a33b1006e0d455a71ac8379a2697202361758
[ "MIT" ]
null
null
null
ahrs/filters/roleq.py
jaluebbe/ahrs
4b4a33b1006e0d455a71ac8379a2697202361758
[ "MIT" ]
null
null
null
ahrs/filters/roleq.py
jaluebbe/ahrs
4b4a33b1006e0d455a71ac8379a2697202361758
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Recursive Optimal Linear Estimator of Quaternion ================================================ This is a modified `OLEQ <./oleq.html>`_, where a recursive estimation of the attitude is made with the measured angular velocity [Zhou2018]_. This estimation is set as the initial value for th...
38.41194
130
0.559994
1,897
12,868
3.698471
0.16816
0.008552
0.037058
0.040764
0.337799
0.289481
0.265251
0.251995
0.215792
0.202965
0
0.02548
0.283261
12,868
334
131
38.526946
0.735227
0.560149
0
0.082474
0
0
0.042728
0
0
0
0
0
0
1
0.072165
false
0.020619
0.051546
0
0.195876
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ff331bc3a412efbad4a3a5552077887b1637581
9,475
py
Python
test/integration_test/test_bad_network.py
heshu-by/likelib-ws
85987d328dc274622f4b758afa1b6af43d15564f
[ "Apache-2.0" ]
null
null
null
test/integration_test/test_bad_network.py
heshu-by/likelib-ws
85987d328dc274622f4b758afa1b6af43d15564f
[ "Apache-2.0" ]
null
null
null
test/integration_test/test_bad_network.py
heshu-by/likelib-ws
85987d328dc274622f4b758afa1b6af43d15564f
[ "Apache-2.0" ]
null
null
null
from tester import test_case, Env, NodeConfig, Id, TEST_CHECK, TEST_CHECK_EQUAL,\ ClientType, get_distributor_address_path, TransactionStatusCode from time import sleep import subprocess, os from random import randrange def log_subprocess_output(pipe, env): for line in iter(pipe.readline, b''):...
46.446078
117
0.731504
1,309
9,475
5.016807
0.123759
0.057561
0.04751
0.038069
0.6522
0.636059
0.60134
0.575148
0.56388
0.56388
0
0.019553
0.16876
9,475
203
118
46.674877
0.814246
0.027441
0
0.518072
0
0
0.130104
0.020743
0
0
0
0
0
1
0.036145
false
0
0.024096
0
0.090361
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ff94ac0731085a0d5493ef70f80657677ea8039
1,398
py
Python
ymir/backend/src/ymir_viz/tests/controllers/test_dataset_controller.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
64
2021-11-15T03:48:00.000Z
2022-03-25T07:08:46.000Z
ymir/backend/src/ymir_viz/tests/controllers/test_dataset_controller.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
35
2021-11-23T04:14:35.000Z
2022-03-26T09:03:43.000Z
ymir/backend/src/ymir_viz/tests/controllers/test_dataset_controller.py
Aryalfrat/ymir
d4617ed00ef67a77ab4e1944763f608bface4be6
[ "Apache-2.0" ]
57
2021-11-11T10:15:40.000Z
2022-03-29T07:27:54.000Z
from mir.tools.mir_storage_ops import MirStorageOps class TestDatasetController: def test_get_dataset_info(self, test_client, mocker): user_id = "user_id" repo_id = "repo_id" branch_id = "branch_id" mir_dataset_content = { "class_names_count": { 'cat': ...
29.744681
107
0.489986
137
1,398
4.635037
0.467153
0.085039
0.107087
0.113386
0.387402
0.280315
0.280315
0.280315
0.280315
0.280315
0
0.026253
0.400572
1,398
46
108
30.391304
0.731504
0.027182
0
0.04878
0
0
0.276141
0.092784
0
0
0
0
0.04878
1
0.02439
false
0
0.02439
0
0.073171
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ffb9bb104fc4ecdc1b59a3518ce4c5fd9a36d4b
1,145
py
Python
core/ctrl/notifications.py
prochor666/ctrl
bb6bef2dd8e0690f632be4990e8564bfe4c1e859
[ "MIT" ]
null
null
null
core/ctrl/notifications.py
prochor666/ctrl
bb6bef2dd8e0690f632be4990e8564bfe4c1e859
[ "MIT" ]
null
null
null
core/ctrl/notifications.py
prochor666/ctrl
bb6bef2dd8e0690f632be4990e8564bfe4c1e859
[ "MIT" ]
null
null
null
from core import app, data, utils from core.ctrl import mailer def list_notifications(filter_data, sort_data=None): finder = { 'collection': 'notifications', 'filter': filter_data, 'sort': sort_data } return data.ex(finder) def email(case, template, subject, html_message_data, at...
27.261905
66
0.570306
128
1,145
4.875
0.390625
0.088141
0.072115
0.038462
0
0
0
0
0
0
0
0
0.30131
1,145
41
67
27.926829
0.78
0
0
0
0
0
0.129258
0
0
0
0
0
0
1
0.088235
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8904c57096c354f788916e14175c19f20d188140
3,147
py
Python
fileWork.py
codedandy/imageRenamer
c7795a406fed3f424d6d2e199dd615350fe00c49
[ "MIT" ]
null
null
null
fileWork.py
codedandy/imageRenamer
c7795a406fed3f424d6d2e199dd615350fe00c49
[ "MIT" ]
null
null
null
fileWork.py
codedandy/imageRenamer
c7795a406fed3f424d6d2e199dd615350fe00c49
[ "MIT" ]
null
null
null
import os import os.path import shutil import urllib.parse def openReadFile(filePath): try: openFile = open(filePath) readFile = openFile.read() openFile.close() return readFile except Exception: print("Problem reading file, aborting.") quit() def createBackup...
32.443299
109
0.576104
312
3,147
5.804487
0.304487
0.026505
0.019879
0.033131
0.323578
0.242408
0.189398
0.157924
0.111541
0.065157
0
0.01085
0.297108
3,147
97
110
32.443299
0.807414
0
0
0.240506
0
0.012658
0.259212
0.093393
0
0
0
0
0
1
0.075949
false
0.025316
0.050633
0
0.164557
0.126582
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8904f49aef9db23d6afd2eea0a9d01ce4beef6a7
3,554
py
Python
zeropdk/default_library/io.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
17
2019-08-22T15:55:50.000Z
2022-02-02T20:52:00.000Z
zeropdk/default_library/io.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
1
2020-09-29T00:43:38.000Z
2020-10-27T07:15:01.000Z
zeropdk/default_library/io.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
3
2019-09-04T07:48:35.000Z
2021-06-16T09:39:42.000Z
from zeropdk.pcell import ( PCell, PCellParameter, TypeDouble, TypeInt, TypeLayer, TypePoint, Port, ParamContainer, ) from zeropdk.layout import insert_shape from zeropdk.layout.polygons import rectangle from klayout.db import DPoint, DVector pad_width = PCellParameter( name="pad_w...
27.129771
98
0.64969
464
3,554
4.803879
0.217672
0.080754
0.026918
0.02288
0.139076
0.096904
0.069987
0
0
0
0
0.011679
0.229038
3,554
130
99
27.338462
0.801825
0.074001
0
0.159091
0
0
0.096248
0
0
0
0
0
0
1
0.056818
false
0
0.045455
0
0.215909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8908edcf96eefb5b56200a032729fbdafb7498d2
26,374
py
Python
MILWRM/ST.py
codyheiser/H2-tissue-labeling
713a7580f17987f36af73562e06f25d1b92f51c4
[ "MIT" ]
null
null
null
MILWRM/ST.py
codyheiser/H2-tissue-labeling
713a7580f17987f36af73562e06f25d1b92f51c4
[ "MIT" ]
null
null
null
MILWRM/ST.py
codyheiser/H2-tissue-labeling
713a7580f17987f36af73562e06f25d1b92f51c4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions and classes for manipulating 10X Visium spatial transcriptomic (ST) and histological imaging data """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import seaborn as sns import scanpy as sc sc.set_figure_params(dpi=1...
36.990182
113
0.574733
3,327
26,374
4.436129
0.136159
0.054204
0.066942
0.08239
0.474964
0.444068
0.421844
0.381733
0.327868
0.292906
0
0.009319
0.300182
26,374
712
114
37.042135
0.790323
0.240047
0
0.418651
0
0
0.194389
0.01431
0
0
0
0
0.02381
1
0.009921
false
0.001984
0.021825
0
0.047619
0.039683
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
890a5161d6eed2959007d6f815eb9b7dd35c2414
2,541
py
Python
src/main.py
chanleoc/kbc_demo
9138de9083d92f5c8bab1dfc42d3dde50544920d
[ "MIT" ]
null
null
null
src/main.py
chanleoc/kbc_demo
9138de9083d92f5c8bab1dfc42d3dde50544920d
[ "MIT" ]
null
null
null
src/main.py
chanleoc/kbc_demo
9138de9083d92f5c8bab1dfc42d3dde50544920d
[ "MIT" ]
1
2019-02-01T19:37:30.000Z
2019-02-01T19:37:30.000Z
"__author__ = 'Leo Chan'" "__credits__ = 'Keboola 2019'" "__project__ = 'kbc_demo'" """ Python 3 environment """ #import pip #pip.main(['install', '--disable-pip-version-check', '--no-cache-dir', 'logging_gelf']) import sys import os import logging import csv import json import pandas as pd import logging_gelf.form...
23.1
93
0.69815
335
2,541
5.059701
0.364179
0.051917
0.031858
0.020059
0.264307
0.234808
0.234808
0.234808
0.234808
0.234808
0
0.005169
0.162534
2,541
109
94
23.311927
0.791353
0.19205
0
0.2
0
0
0.219528
0
0
0
0
0
0
1
0.06
false
0
0.18
0
0.3
0.06
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
890cb45c8ba1a1a9867fe4cb3e4acf45b6533679
5,504
py
Python
peac_pkg/contourer.py
emcramer/peac
74a3b7c5885d84a0b6e1dfadd887d08aa3967866
[ "MIT" ]
null
null
null
peac_pkg/contourer.py
emcramer/peac
74a3b7c5885d84a0b6e1dfadd887d08aa3967866
[ "MIT" ]
null
null
null
peac_pkg/contourer.py
emcramer/peac
74a3b7c5885d84a0b6e1dfadd887d08aa3967866
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jul 8 10:01:34 2019 @author: ecramer """ import numpy as np from scipy import interpolate from skimage.feature import peak_local_max class Contourer(): """ TODO: Full writeup of class documentation here. Steps: 1. generate the contours for each factor...
39.597122
112
0.553779
729
5,504
3.997257
0.263374
0.038435
0.026767
0.02059
0.134523
0.115992
0.115992
0.061084
0.061084
0.061084
0
0.021607
0.344113
5,504
139
113
39.597122
0.785596
0.26508
0
0.115385
0
0
0.024282
0
0
0
0
0.007194
0
1
0.089744
false
0.012821
0.038462
0.012821
0.192308
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
890cd66cad388ad20cba21addbcdb0f32f1ebfc7
1,344
py
Python
cert_core/cert_store/config.py
johnykkwan/cert-core
40fdf04bdc255de1b36ca1f99fae10e6994858a1
[ "MIT" ]
13
2017-03-10T01:03:08.000Z
2021-06-05T14:13:35.000Z
cert_core/cert_store/config.py
johnykkwan/cert-core
40fdf04bdc255de1b36ca1f99fae10e6994858a1
[ "MIT" ]
2
2018-05-09T23:37:21.000Z
2018-05-09T23:49:56.000Z
cert_core/cert_store/config.py
johnykkwan/cert-core
40fdf04bdc255de1b36ca1f99fae10e6994858a1
[ "MIT" ]
14
2017-05-27T16:21:43.000Z
2022-02-12T16:25:21.000Z
import os import configargparse BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) def create_config(): p = configargparse.getArgumentParser(default_config_files=[os.path.join(BASE_DIR, 'conf_test.ini'), os.path.join(BASE...
42
110
0.614583
171
1,344
4.602339
0.421053
0.045743
0.050826
0.053367
0.179161
0.087675
0.060991
0
0
0
0
0.007099
0.266369
1,344
31
111
43.354839
0.791075
0
0
0.086957
0
0
0.267857
0.040923
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89170f8e42f9d4e440f81502dbb93240f0f1b350
11,203
py
Python
Data_Structures/Graph/unweighted_graph.py
D-Chase-H/PurePy-Data-Structures
892b9666a80054f4524c090a7b442b125c372403
[ "MIT" ]
null
null
null
Data_Structures/Graph/unweighted_graph.py
D-Chase-H/PurePy-Data-Structures
892b9666a80054f4524c090a7b442b125c372403
[ "MIT" ]
1
2017-12-15T04:13:08.000Z
2017-12-15T04:13:08.000Z
Data_Structures/Graph/unweighted_graph.py
D-Chase-H/PurePy-Data-Structures
892b9666a80054f4524c090a7b442b125c372403
[ "MIT" ]
null
null
null
# Author: D-Chase-H """ License: MIT License Copyright (c) 2017 Dustin Chase Harmon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limita...
28.652174
84
0.496028
1,243
11,203
4.224457
0.170555
0.022853
0.013712
0.011426
0.403733
0.374595
0.336126
0.336126
0.322986
0.31156
0
0.00694
0.369722
11,203
390
85
28.725641
0.736723
0.136214
0
0.479452
0
0
0.021537
0
0
0
0
0
0
1
0.073059
false
0
0.013699
0
0.200913
0.03653
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8919dcadf341d13761481e587ce0aa0f760975fb
3,550
py
Python
buildtest/tools/unittests.py
buildntest/buildtest
d371048631cdd33ae7bf66f795f5afed83491a90
[ "MIT" ]
29
2017-10-20T02:47:10.000Z
2020-03-26T17:24:03.000Z
buildtest/tools/unittests.py
shahzebsiddiqui/testgen-HPC
e69d9334cf2939af4fca59e75f397b0b1edbbfaf
[ "MIT" ]
219
2017-08-25T13:21:53.000Z
2020-04-18T19:07:05.000Z
buildtest/tools/unittests.py
shahzebsiddiqui/BuildTest
5a04641f37ba588c906112b3848249b241061a9c
[ "MIT" ]
5
2017-08-24T11:20:30.000Z
2020-02-21T04:28:40.000Z
import argparse import os import shutil import sys import coverage import pytest from buildtest.defaults import ( BUILDTEST_ROOT, BUILDTEST_UNITTEST_ROOT, BUILDTEST_USER_HOME, VAR_DIR, console, ) from buildtest.utils.file import is_dir, resolve_path def run_unit_tests(pytestopts=None, sourcefiles...
32.568807
165
0.684225
454
3,550
5.211454
0.365639
0.04142
0.026627
0.031699
0.052409
0.032967
0
0
0
0
0
0.001818
0.225352
3,550
108
166
32.87037
0.858545
0.266197
0
0.054795
0
0
0.179267
0
0
0
0
0
0.013699
1
0.013699
false
0
0.109589
0
0.123288
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8919eadb500a2ec6192616456774d8da32531229
2,909
py
Python
dashboard/__init__.py
VisionTale/StreamHelper-overlay
f50ea9ddfecf177db10c4ee99eac6880d362c3cc
[ "MIT" ]
null
null
null
dashboard/__init__.py
VisionTale/StreamHelper-overlay
f50ea9ddfecf177db10c4ee99eac6880d362c3cc
[ "MIT" ]
null
null
null
dashboard/__init__.py
VisionTale/StreamHelper-overlay
f50ea9ddfecf177db10c4ee99eac6880d362c3cc
[ "MIT" ]
null
null
null
from os.path import realpath, join, dirname from flask import render_template, request, flash from flask_login import login_required from flask_wtf.csrf import validate_csrf from wtforms.validators import ValidationError from webapi.libs.network import is_up from webapi.libs.text import camel_case from .. import bp...
29.989691
88
0.682709
382
2,909
5.013089
0.282723
0.031332
0.03342
0.031332
0.093995
0.027154
0
0
0
0
0
0.003939
0.214507
2,909
96
89
30.302083
0.834136
0.12616
0
0.098361
0
0
0.118536
0.008751
0
0
0
0
0
1
0.065574
false
0
0.262295
0
0.360656
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
891b9abd04593024e436067023f0359758fe9dff
13,412
py
Python
UserCode/John/MergeBinaries.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
4
2018-08-27T18:02:34.000Z
2020-06-09T21:19:04.000Z
UserCode/John/MergeBinaries.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
null
null
null
UserCode/John/MergeBinaries.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
4
2019-06-20T21:36:26.000Z
2020-11-10T17:23:14.000Z
## John Gresl import os from collections import defaultdict, OrderedDict import time from copy import deepcopy import numpy as np from SBCcode.DataHandling.ReadBinary import ReadBlock as RB from SBCcode.DataHandling.WriteBinary import WriteBinaryNtupleFile as WB from SBCcode.AnalysisModules.AnalyzeDytran import dyt...
49.308824
121
0.530122
1,542
13,412
4.457198
0.191959
0.025462
0.024007
0.034919
0.374363
0.332315
0.315001
0.292594
0.283282
0.262331
0
0.016357
0.329928
13,412
271
122
49.490775
0.748414
0.115419
0
0.351852
0
0
0.134898
0.030746
0
0
0
0
0
1
0.013889
false
0
0.083333
0
0.111111
0.12963
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
891bdc5511e0a29c4be2339f1dc933bccb992ce1
2,066
py
Python
src/ndc/get_ndc.py
TEI-EAJ/auto_aozora_tei
5535abef680a1e186f8a7dc6efc30a1dcf4efeec
[ "CC0-1.0" ]
3
2019-02-12T13:28:22.000Z
2021-07-25T20:58:07.000Z
src/ndc/get_ndc.py
TEI-EAJ/auto_aozora_tei
5535abef680a1e186f8a7dc6efc30a1dcf4efeec
[ "CC0-1.0" ]
null
null
null
src/ndc/get_ndc.py
TEI-EAJ/auto_aozora_tei
5535abef680a1e186f8a7dc6efc30a1dcf4efeec
[ "CC0-1.0" ]
1
2019-02-12T22:04:00.000Z
2019-02-12T22:04:00.000Z
import urllib.request from bs4 import BeautifulSoup import json def extract(index): url = "http://yozora.main.jp/" html = urllib.request.urlopen(url) # htmlをBeautifulSoupで扱う soup = BeautifulSoup(html, "lxml") a_list = soup.find_all(class_="navi")[index].find_all("a") arr = [] for a in ...
22.703297
100
0.494676
234
2,066
4.303419
0.34188
0.051639
0.041708
0.047666
0.047666
0.047666
0.047666
0
0
0
0
0.042972
0.335431
2,066
90
101
22.955556
0.690459
0.031462
0
0.098361
0
0
0.120681
0
0
0
0
0
0
1
0.016393
false
0
0.04918
0
0.081967
0.065574
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
891be27156d1066f41832049260bb47279ac1736
4,116
py
Python
backend/server/task/views.py
munteanugabriel25/Javascript-Django-TodoList-
e3cb8d4a573dfbb84960839b7a01a24a195c7755
[ "Unlicense" ]
null
null
null
backend/server/task/views.py
munteanugabriel25/Javascript-Django-TodoList-
e3cb8d4a573dfbb84960839b7a01a24a195c7755
[ "Unlicense" ]
null
null
null
backend/server/task/views.py
munteanugabriel25/Javascript-Django-TodoList-
e3cb8d4a573dfbb84960839b7a01a24a195c7755
[ "Unlicense" ]
null
null
null
from django.shortcuts import render from rest_framework.views import APIView from rest_framework import status from .serializers import TaskListCreateSerializer, UserCreateSerializer, UserLoginSerializer, UserSerializer, TaskUpdateSerializer from rest_framework.response import Response from .models import Task from res...
40.752475
130
0.688047
478
4,116
5.740586
0.198745
0.061224
0.069971
0.045918
0.581268
0.514942
0.505831
0.470481
0.416545
0.388484
0
0.019743
0.224733
4,116
101
131
40.752475
0.840175
0.005588
0
0.455696
0
0
0.04521
0
0
0
0
0
0
1
0.088608
false
0
0.151899
0
0.481013
0.012658
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64dfbc4c6711f4cdd56dde0eb4ae1be40d05958f
1,334
py
Python
capsule.py
lebek/reversible-raytracer
9b502737da0e0a7cfd664a795b3a38c1809c1774
[ "MIT" ]
15
2015-04-11T14:40:35.000Z
2020-06-05T14:17:53.000Z
capsule.py
lebek/RRT
9b502737da0e0a7cfd664a795b3a38c1809c1774
[ "MIT" ]
null
null
null
capsule.py
lebek/RRT
9b502737da0e0a7cfd664a795b3a38c1809c1774
[ "MIT" ]
3
2016-02-09T18:12:51.000Z
2018-05-24T13:07:52.000Z
import numpy as np import theano import theano.tensor as T class Capsule(): def __init__(self, name, n_hidden, n_output, num_caps): self.name = name bias = np.asarray([0,0, 3 * num_caps,1,1,1], dtype=theano.config.floatX)/ num_caps self.params = [self.init_capsule_weight(n_hidden), ...
33.35
90
0.55997
192
1,334
3.65625
0.25
0.119658
0.128205
0.068376
0.42735
0.42735
0.42735
0.408832
0.403134
0.346154
0
0.054054
0.306597
1,334
39
91
34.205128
0.704865
0.1994
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64e0d083a4907b69b2dd393b09adcf2074033d97
60,731
py
Python
SubExperiment.py
zhangyintai/Experiment_Manager
800f95068a12b64d4a7e524fe406d5ef3b47f521
[ "MIT" ]
null
null
null
SubExperiment.py
zhangyintai/Experiment_Manager
800f95068a12b64d4a7e524fe406d5ef3b47f521
[ "MIT" ]
null
null
null
SubExperiment.py
zhangyintai/Experiment_Manager
800f95068a12b64d4a7e524fe406d5ef3b47f521
[ "MIT" ]
null
null
null
# For controlling experiments for the ion trap lab led by Prof. Yiheng Lin # The code is written by Yintai Zhang, School of Physical Sciences, USTC # Last updated: April 29th, 2019 from PyQt5 import QtWidgets, QtCore, QtGui # import pylint from Ui_SubExperiment import Ui_SubExperiment_Dialog import sys import ...
41.941298
123
0.556783
6,650
60,731
4.847669
0.041654
0.03648
0.054285
0.037131
0.730124
0.603127
0.573627
0.542451
0.495704
0.433663
0
0.002493
0.332993
60,731
1,447
124
41.970283
0.793325
0.042334
0
0.462255
0
0
0.040159
0.0016
0
0
0
0
0
1
0.054054
false
0.01398
0.006524
0
0.06151
0.157502
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64e1becee21ec789ab3fba8c1362708a1fcff647
1,509
py
Python
train_DT.py
caspase-like-homolog-identifier/c14_witcher
e2c481607b85fed749daec0e9b3b29b65d6b448f
[ "MIT" ]
null
null
null
train_DT.py
caspase-like-homolog-identifier/c14_witcher
e2c481607b85fed749daec0e9b3b29b65d6b448f
[ "MIT" ]
null
null
null
train_DT.py
caspase-like-homolog-identifier/c14_witcher
e2c481607b85fed749daec0e9b3b29b65d6b448f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from sklearn.tree import export_graphviz from IPython.display import Image from sklearn import metrics from six import StringIO import pandas as pd import pydotplus import argparse import pickle ...
24.33871
96
0.726972
203
1,509
5.162562
0.458128
0.034351
0.026718
0.040076
0
0
0
0
0
0
0
0.0347
0.159708
1,509
61
97
24.737705
0.791798
0.027833
0
0
0
0
0.098698
0
0
0
0
0
0
1
0
false
0
0.27027
0
0.27027
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64e2f7bd0c5248b10b722215e23712c6705e3215
3,205
py
Python
data/process_data.py
YvesDeutschmann/disaster-response-pipeline-project
6ce33642a9bc05ed063c5adfab42fd69c076bd40
[ "MIT" ]
null
null
null
data/process_data.py
YvesDeutschmann/disaster-response-pipeline-project
6ce33642a9bc05ed063c5adfab42fd69c076bd40
[ "MIT" ]
null
null
null
data/process_data.py
YvesDeutschmann/disaster-response-pipeline-project
6ce33642a9bc05ed063c5adfab42fd69c076bd40
[ "MIT" ]
null
null
null
import sys import pandas as pd import numpy as np from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): """ Loads the data. Args: messages_filepath: String - csv file containing disaster messages. categories_filepath: String - csv file containing ...
32.05
95
0.659282
391
3,205
5.294118
0.319693
0.046377
0.062802
0.0657
0.158454
0.128502
0.047343
0
0
0
0
0.00541
0.250234
3,205
100
96
32.05
0.856013
0.294228
0
0.044444
0
0
0.226512
0.020465
0
0
0
0
0
1
0.088889
false
0
0.088889
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64e6d9802ff131b02145f06b9894c085a64f01d6
795
py
Python
streamselect/concept_representations/__init__.py
BenHals/streamselect
ca5e80f3a8a31a38ac52bccfd92528d73f387a6a
[ "BSD-3-Clause" ]
null
null
null
streamselect/concept_representations/__init__.py
BenHals/streamselect
ca5e80f3a8a31a38ac52bccfd92528d73f387a6a
[ "BSD-3-Clause" ]
null
null
null
streamselect/concept_representations/__init__.py
BenHals/streamselect
ca5e80f3a8a31a38ac52bccfd92528d73f387a6a
[ "BSD-3-Clause" ]
null
null
null
""" Base classes for concept representations. A concept is a joint distribution between x and y. A concept representation is a finite sized approximation of this distribution using a given classifier. Each concept distribution should have a method of construction from a window of observations and a similarity method to...
34.565217
103
0.798742
86
795
7.290698
0.604651
0.025518
0
0
0
0
0
0
0
0
0
0
0.153459
795
22
104
36.136364
0.931649
0.50566
0
0
0
0
0.26943
0.173575
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64ea22c140e09fcc03e94150afada75a7e282353
1,099
py
Python
src/layers/tsm.py
zhaojieting/e3d_lstm
e77d5523ad3a6f062042c095f1d40a29ee054db4
[ "Apache-2.0" ]
null
null
null
src/layers/tsm.py
zhaojieting/e3d_lstm
e77d5523ad3a6f062042c095f1d40a29ee054db4
[ "Apache-2.0" ]
null
null
null
src/layers/tsm.py
zhaojieting/e3d_lstm
e77d5523ad3a6f062042c095f1d40a29ee054db4
[ "Apache-2.0" ]
null
null
null
"""Module for constructing TSN layers Cells.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf import tensorflow.contrib.layers as layers def TSM_layer(inputs, output_channels, kernel_shape, padding='same'): ...
42.269231
121
0.622384
142
1,099
4.521127
0.373239
0.17134
0.074766
0.065421
0.165109
0.105919
0.105919
0.105919
0.105919
0.105919
0
0.016518
0.283894
1,099
26
122
42.269231
0.799238
0.037307
0
0
0
0
0.012346
0
0
0
0
0
0
1
0.05
false
0
0.3
0
0.4
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64ecd16af3bba6904bb50e63ae398928437708ec
1,946
py
Python
tests/tmp.py
ribeirojose/d6tstack
4d974cca4dc75ff988269443a6622ca9922127e6
[ "MIT" ]
176
2018-04-30T15:40:34.000Z
2022-03-16T09:31:08.000Z
tests/tmp.py
tsering10/d6tstack
7b6c5851b53bdd221466facfb7aebdc96006bf41
[ "MIT" ]
29
2018-10-28T15:35:24.000Z
2022-01-31T03:23:35.000Z
tests/tmp.py
tsering10/d6tstack
7b6c5851b53bdd221466facfb7aebdc96006bf41
[ "MIT" ]
45
2018-07-27T04:16:28.000Z
2022-01-10T18:29:21.000Z
import importlib import d6tstack.utils importlib.reload(d6tstack.utils) import time import yaml config = yaml.load(open('tests/.test-cred.yaml')) cfg_uri_psql = config['rds'] cfg_uri_psql = config['wlo'] import pandas as pd df = pd.DataFrame({'a':range(10),'b':range(10)}) d6tstack.utils.pd_to_psql(df,cfg_uri_psql,'...
25.605263
81
0.751285
293
1,946
4.791809
0.215017
0.055556
0.064103
0.059829
0.696581
0.696581
0.630342
0.491453
0.491453
0.443732
0
0.022396
0.08222
1,946
75
82
25.946667
0.763718
0.013875
0
0.632653
0
0
0.138831
0.021921
0
0
0
0
0.040816
1
0
false
0
0.265306
0
0.265306
0.122449
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64eea514dc744490d62df2dbfa0ff759f1bd366a
13,313
py
Python
pi_weather.py
mitgobla/Pi-Weather
aa5a8a4a543d721ba9c7ebe3a69444512133d4cc
[ "MIT" ]
1
2021-08-22T20:56:37.000Z
2021-08-22T20:56:37.000Z
pi_weather.py
mitgobla/Pi-Weather
aa5a8a4a543d721ba9c7ebe3a69444512133d4cc
[ "MIT" ]
null
null
null
pi_weather.py
mitgobla/Pi-Weather
aa5a8a4a543d721ba9c7ebe3a69444512133d4cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json import os from sys import argv from time import sleep from papirus import PapirusComposite from weather import Weather DIRECTORY = os.path.dirname(os.path.realpath(__file__)) class PiWeather: def __init__(self): self.config = self.load_config()...
40.588415
113
0.534966
1,380
13,313
5.096377
0.188406
0.092279
0.068676
0.054031
0.349637
0.309683
0.274563
0.247263
0.235888
0.207308
0
0.027526
0.320514
13,313
327
114
40.712538
0.749834
0.082401
0
0.264317
0
0
0.154065
0.008531
0
0
0
0
0
1
0.052863
false
0.026432
0.026432
0
0.14978
0.004405
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64eedb6c77b1e955f83b08c16eb463ea0891406d
961
py
Python
crystallography/cube_symmetry.py
rpw199912j/matsci_animation
cd613853a40cdee73f9cdff7bdf23a02451bb1ef
[ "MIT" ]
null
null
null
crystallography/cube_symmetry.py
rpw199912j/matsci_animation
cd613853a40cdee73f9cdff7bdf23a02451bb1ef
[ "MIT" ]
null
null
null
crystallography/cube_symmetry.py
rpw199912j/matsci_animation
cd613853a40cdee73f9cdff7bdf23a02451bb1ef
[ "MIT" ]
null
null
null
from manim import * class CubeSymmetry(ThreeDScene): def construct(self): # define a 3D axes axes_3d = ThreeDAxes( tips=False ) # define a cube with side length 2 placed at the origin cube = Cube(stroke_color=YELLOW, stroke_width=3) # define a line that...
23.439024
90
0.495317
115
961
4.078261
0.556522
0.025586
0.051173
0.057569
0.063966
0
0
0
0
0
0
0.046233
0.3923
961
40
91
24.025
0.756849
0.119667
0
0.275862
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64f18694f99e323c1c04d6f1bc14cbfb5fcf7280
3,226
py
Python
src/python/services/rpc_services/rpc_requests.py
rockmind/LoveAndMarriage
2877d6af626eff2a3134a05ab7f03c52f14fde5c
[ "Apache-2.0" ]
null
null
null
src/python/services/rpc_services/rpc_requests.py
rockmind/LoveAndMarriage
2877d6af626eff2a3134a05ab7f03c52f14fde5c
[ "Apache-2.0" ]
1
2021-12-18T16:07:39.000Z
2021-12-18T16:07:39.000Z
src/python/services/rpc_services/rpc_requests.py
rockmind/LoveAndMarriage
2877d6af626eff2a3134a05ab7f03c52f14fde5c
[ "Apache-2.0" ]
null
null
null
from asyncio import sleep, get_event_loop from aiohttp import ClientSession from typing import OrderedDict, Union, List from numpy.random import randint from oauthlib.oauth2 import LegacyApplicationClient from requests_oauthlib import OAuth2Session from services import json_dumps, json_loads class RequestRpc: RE...
33.604167
115
0.567886
348
3,226
5.091954
0.316092
0.054176
0.045147
0.035553
0.095372
0.060948
0.038375
0
0
0
0
0.020075
0.33602
3,226
95
116
33.957895
0.80719
0.00186
0
0.2
0
0
0.07023
0.017402
0
0
0
0
0
1
0.025
false
0.05
0.0875
0
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64f449e7051ecea8b2412b9c5d7d5fca434151bc
13,150
py
Python
pyrallis/wrappers/field_wrapper.py
eladrich/pyrallis
1e0586f9de9ed5d8d67d061dac1fb44c73f9d4a4
[ "MIT" ]
22
2021-12-30T16:06:09.000Z
2022-03-09T23:27:30.000Z
pyrallis/wrappers/field_wrapper.py
eladrich/pyrallis
1e0586f9de9ed5d8d67d061dac1fb44c73f9d4a4
[ "MIT" ]
5
2022-01-18T14:05:52.000Z
2022-03-03T17:23:03.000Z
pyrallis/wrappers/field_wrapper.py
eladrich/pyrallis
1e0586f9de9ed5d8d67d061dac1fb44c73f9d4a4
[ "MIT" ]
null
null
null
import argparse import dataclasses import inspect from logging import getLogger from typing import Any, Optional, List, Type, Dict, Set, Union, Tuple from . import docstring from .wrapper import Wrapper from .. import utils logger = getLogger(__name__) class FieldWrapper(Wrapper[dataclasses.Field]): """ The...
35.831063
89
0.63924
1,620
13,150
5.048765
0.201852
0.031789
0.012226
0.011615
0.125076
0.037657
0.008559
0.008559
0
0
0
0.001668
0.270646
13,150
366
90
35.928962
0.85111
0.363422
0
0.215
0
0
0.069293
0.006207
0
0
0
0.008197
0
1
0.135
false
0.005
0.04
0.055
0.335
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64f496f7a964f4a0c2008a4e6ef5318ca9d938ee
7,183
py
Python
up/settings/base.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
4
2019-07-19T17:39:04.000Z
2022-03-22T21:02:15.000Z
up/settings/base.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
53
2019-08-04T14:25:40.000Z
2022-03-26T20:30:55.000Z
up/settings/base.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
3
2020-03-09T07:11:03.000Z
2020-09-11T01:22:50.000Z
""" Základní konfigurace Django projektu. Je základem pro konfigurace v souborech local.py a production.py. """ import os import sys from datetime import timedelta import environ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path....
35.384236
118
0.738828
873
7,183
5.853379
0.399771
0.035616
0.023288
0.010959
0.091194
0.059491
0.01683
0.008806
0
0
0
0.0044
0.145761
7,183
202
119
35.559406
0.82839
0.244466
0
0.027027
0
0
0.418496
0.301824
0
0
0
0
0
1
0
false
0.033784
0.027027
0
0.027027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64f625ff3b06630f6e5652636658877b09051eea
10,470
py
Python
acme/agents/jax/ail/learning.py
wookayin/acme
71b2ab8577a118c103718f034fa62c5ad2c0fd97
[ "Apache-2.0" ]
null
null
null
acme/agents/jax/ail/learning.py
wookayin/acme
71b2ab8577a118c103718f034fa62c5ad2c0fd97
[ "Apache-2.0" ]
null
null
null
acme/agents/jax/ail/learning.py
wookayin/acme
71b2ab8577a118c103718f034fa62c5ad2c0fd97
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 DeepMind Technologies Limited. 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 ...
35.612245
80
0.720153
1,279
10,470
5.671618
0.228303
0.019851
0.020678
0.015715
0.14654
0.084367
0.032534
0.032534
0
0
0
0.001811
0.209074
10,470
293
81
35.733788
0.87417
0.288252
0
0.02439
0
0
0.019535
0.008254
0
0
0
0
0
1
0.054878
false
0
0.097561
0.012195
0.280488
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64f62b0e9a31a02193441b2301ca86a8c2d36616
9,878
py
Python
json_database/utils/__init__.py
NeonJarbas/json_database
026d01faff79f178ab8e5a8505666959279761cb
[ "MIT" ]
8
2020-05-30T12:44:35.000Z
2022-02-14T15:12:53.000Z
json_database/utils/__init__.py
NeonJarbas/json_database
026d01faff79f178ab8e5a8505666959279761cb
[ "MIT" ]
4
2021-08-18T23:40:45.000Z
2021-09-30T00:43:42.000Z
json_database/utils/__init__.py
NeonJarbas/json_database
026d01faff79f178ab8e5a8505666959279761cb
[ "MIT" ]
7
2020-05-30T12:44:41.000Z
2021-09-30T00:27:04.000Z
import json from difflib import SequenceMatcher def fuzzy_match(x, against): """Perform a 'fuzzy' comparison between two strings. Returns: float: match percentage -- 1.0 for perfect match, down to 0.0 for no match at all. """ return SequenceMatcher(None, x, against).ratio() de...
32.071429
103
0.57542
1,161
9,878
4.745047
0.179156
0.049918
0.027773
0.020875
0.476493
0.414413
0.387185
0.387185
0.383917
0.373026
0
0.003096
0.346021
9,878
307
104
32.175896
0.84969
0.215934
0
0.519126
0
0
0.016651
0
0
0
0
0
0
1
0.060109
false
0.016393
0.010929
0
0.153005
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f02541a7ae70196b397d818b7763843b81bed3a
6,213
py
Python
pong_v2b.py
jasonj2333/Pico-Pong-2021
dabd57a9b6a44723a1d690a614265e1a6d5d9b1f
[ "MIT" ]
null
null
null
pong_v2b.py
jasonj2333/Pico-Pong-2021
dabd57a9b6a44723a1d690a614265e1a6d5d9b1f
[ "MIT" ]
null
null
null
pong_v2b.py
jasonj2333/Pico-Pong-2021
dabd57a9b6a44723a1d690a614265e1a6d5d9b1f
[ "MIT" ]
1
2021-03-11T08:34:21.000Z
2021-03-11T08:34:21.000Z
##################################################### ####### Pico Pong 2021 by Jerzy Jasonek ######## ####### version 2.0 ######## ####### add training mode - 1 player mode ######## ##################################################### from machine import Pin, I2C, ADC from ssd1306 im...
30.014493
104
0.541445
839
6,213
3.882002
0.191895
0.035002
0.049739
0.062634
0.30089
0.254222
0.233344
0.214922
0.19343
0.133866
0
0.072368
0.266055
6,213
206
105
30.160194
0.641886
0.110736
0
0.355705
0
0.006711
0.030113
0.016168
0
0
0
0
0
1
0.033557
false
0
0.033557
0.006711
0.107383
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f0774dc003329dbb4aee294ed1abf6b04d27049
14,904
py
Python
gh/views.py
Gepetto/dashboard
a24bbcec7c13c00b2a783c840658130083ad3b30
[ "BSD-2-Clause" ]
null
null
null
gh/views.py
Gepetto/dashboard
a24bbcec7c13c00b2a783c840658130083ad3b30
[ "BSD-2-Clause" ]
7
2018-02-21T18:03:36.000Z
2021-04-29T15:17:59.000Z
gh/views.py
Gepetto/dashboard
a24bbcec7c13c00b2a783c840658130083ad3b30
[ "BSD-2-Clause" ]
1
2018-07-10T15:19:31.000Z
2018-07-10T15:19:31.000Z
"""Views for dashboard_apps.""" import hmac import logging import re import traceback from hashlib import sha1 from ipaddress import ip_address, ip_network from json import loads from asgiref.sync import sync_to_async, async_to_sync from django.conf import settings from django.core.mail import mail_admins from django....
45.577982
119
0.650631
1,900
14,904
4.933684
0.164737
0.026243
0.048112
0.06486
0.449755
0.387881
0.332836
0.279923
0.243759
0.213783
0
0.009806
0.240472
14,904
326
120
45.717791
0.818286
0.078502
0
0.349794
0
0.020576
0.18201
0.041201
0
0
0
0
0
1
0
false
0
0.09465
0
0.205761
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f0ac5d355c9a9038a09d1d81879dac676f628c0
2,844
py
Python
plugins/serializables/global_packets.py
wesleyd1124/WLUS
ce319962d57d91dc9c8b06cc435469c7b24da826
[ "MIT" ]
25
2018-06-05T22:45:03.000Z
2021-09-01T08:15:38.000Z
plugins/serializables/global_packets.py
wesleyd1124/WLUS
ce319962d57d91dc9c8b06cc435469c7b24da826
[ "MIT" ]
15
2018-07-10T10:39:55.000Z
2021-07-01T20:56:26.000Z
plugins/serializables/global_packets.py
wesleyd1124/WLUS
ce319962d57d91dc9c8b06cc435469c7b24da826
[ "MIT" ]
13
2018-05-19T19:44:59.000Z
2021-07-18T18:45:58.000Z
""" Contains all the packets which are sent by either the client or server """ from pyraknet import bitstream class HandshakePacket(bitstream.Serializable): """ [53-00-00-00] Global handshake packet serializable. This packet is sent to establish a connection. """ def __init__(self): se...
35.55
81
0.697961
347
2,844
5.538905
0.262248
0.072841
0.099896
0.076483
0.468783
0.407908
0.291883
0.291883
0.25026
0.25026
0
0.041998
0.204641
2,844
79
82
36
0.807692
0.123769
0
0.3
0
0
0.015683
0.011969
0
0
0.001651
0
0
1
0.2
false
0
0.02
0
0.34
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f0b154543475c7fee417eb340ebc23a9a65e18b
1,278
py
Python
tests/test_rasterize.py
PADAS/django-raster
68b2d181c70827dffad3c07f4f38d3490872a3eb
[ "BSD-3-Clause" ]
null
null
null
tests/test_rasterize.py
PADAS/django-raster
68b2d181c70827dffad3c07f4f38d3490872a3eb
[ "BSD-3-Clause" ]
null
null
null
tests/test_rasterize.py
PADAS/django-raster
68b2d181c70827dffad3c07f4f38d3490872a3eb
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.gis.gdal import GDALRaster, OGRGeometry from django.test import TestCase from raster.rasterize import rasterize class RasterizeGeometryTests(TestCase): def setUp(self): self.rast = GDALRaster({ 'datatype': 1, 'driver': 'MEM', 'width': 2, ...
32.769231
79
0.571205
145
1,278
4.951724
0.406897
0.066852
0.116992
0.08078
0.370474
0.370474
0.370474
0.370474
0.225627
0.225627
0
0.084615
0.28795
1,278
38
80
33.631579
0.704396
0
0
0.125
0
0
0.061815
0
0
0
0
0
0.125
1
0.09375
false
0
0.09375
0
0.21875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f0ecc69fcbb900b73340911f3b2c0dbdb93c8a1
6,577
py
Python
otcs.py
neckro/mr-otcs
5782f3664afb7213729e207881ae855fb60e43a0
[ "MIT" ]
null
null
null
otcs.py
neckro/mr-otcs
5782f3664afb7213729e207881ae855fb60e43a0
[ "MIT" ]
null
null
null
otcs.py
neckro/mr-otcs
5782f3664afb7213729e207881ae855fb60e43a0
[ "MIT" ]
null
null
null
import datetime import errno import itertools import os import subprocess import sys ############################################################################### # Configuration. # Program paths. Use absolute paths. MEDIA_PLAYER_PATH = "/usr/bin/vlc" FFPROBE_PATH = "/usr/bin/ffprobe" # Base path for all video fil...
39.383234
103
0.636764
854
6,577
4.728337
0.289227
0.040119
0.022288
0.027737
0.145864
0.09262
0.077761
0.077761
0.077761
0.077266
0
0.006401
0.239927
6,577
166
104
39.620482
0.80136
0.35168
0
0.121622
0
0
0.092335
0.014166
0.013514
0
0
0.006024
0
1
0.027027
false
0
0.081081
0
0.121622
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f0f210fb96be3418eb569e273c87bbeadbc980a
4,674
py
Python
src/lambda_functions/lex_v2_cfn_cr/lex_v2_cfn_cr/slot.py
mohsenari/aws-lex-v2-cfn-cr
619b223d5b6fb4561ca3adb4c278ad03cc978cf0
[ "Apache-2.0" ]
11
2021-06-24T23:23:16.000Z
2021-09-07T16:38:01.000Z
src/lambda_functions/lex_v2_cfn_cr/lex_v2_cfn_cr/slot.py
mohsenari/aws-lex-v2-cfn-cr
619b223d5b6fb4561ca3adb4c278ad03cc978cf0
[ "Apache-2.0" ]
3
2021-09-23T00:07:36.000Z
2021-11-24T00:29:33.000Z
src/lambda_functions/lex_v2_cfn_cr/lex_v2_cfn_cr/slot.py
mohsenari/aws-lex-v2-cfn-cr
619b223d5b6fb4561ca3adb4c278ad03cc978cf0
[ "Apache-2.0" ]
4
2021-07-11T02:46:36.000Z
2022-01-13T22:47:39.000Z
#!/usr/bin/env python3.8 ################################################################################ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (t...
34.367647
89
0.537441
431
4,674
5.614849
0.345708
0.03719
0.026446
0.028512
0.267769
0.247934
0.247934
0.207025
0.207025
0.157438
0
0.005921
0.349594
4,674
135
90
34.622222
0.790132
0.232135
0
0.27957
0
0
0.04994
0
0
0
0
0
0
1
0.053763
false
0
0.064516
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f170c370bacf2243ee7c2b4a5545bf2f5612009
7,102
py
Python
okcupyd_testing/util.py
sphericalcow/okcupyd
ae0a99d248c515eea9a6d21a9c89f51e299b33f5
[ "MIT" ]
89
2015-01-09T19:58:07.000Z
2022-03-03T21:56:50.000Z
okcupyd_testing/util.py
sphericalcow/okcupyd
ae0a99d248c515eea9a6d21a9c89f51e299b33f5
[ "MIT" ]
51
2015-01-18T23:09:35.000Z
2017-04-24T03:16:03.000Z
okcupyd_testing/util.py
sphericalcow/okcupyd
ae0a99d248c515eea9a6d21a9c89f51e299b33f5
[ "MIT" ]
24
2015-01-16T17:43:21.000Z
2020-09-18T12:19:15.000Z
import copy import inspect import logging import os import zlib from six.moves import urllib import simplejson import vcr import wrapt from okcupyd import settings from okcupyd import util log = logging.getLogger(__name__) TESTING_USERNAME = 'username' TESTING_PASSWORD = 'password' WBITS = 16 + zlib.MAX_WBITS SH...
31.286344
107
0.656998
870
7,102
5.106897
0.222989
0.020257
0.025208
0.018006
0.141796
0.111411
0.087779
0.064821
0.049516
0.018006
0
0.002248
0.248381
7,102
226
108
31.424779
0.830086
0.015207
0
0.177143
0
0
0.063949
0
0
0
0
0
0
1
0.085714
false
0.028571
0.062857
0.005714
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f1d431916ff72728e735e8e734dd11974fd8bb1
1,474
py
Python
utils/checkpoint.py
Jackson-Kang/VQVC-Pytorch
d2267b5c52253b6ae11a5767963a65320ae335c2
[ "MIT" ]
13
2021-02-11T17:48:40.000Z
2022-02-08T06:37:12.000Z
utils/checkpoint.py
Jackson-Kang/VQVC-Pytorch
d2267b5c52253b6ae11a5767963a65320ae335c2
[ "MIT" ]
1
2022-01-17T17:07:22.000Z
2022-01-18T06:51:21.000Z
utils/checkpoint.py
Jackson-Kang/VQVC-Pytorch
d2267b5c52253b6ae11a5767963a65320ae335c2
[ "MIT" ]
3
2021-03-10T08:40:00.000Z
2022-01-17T17:08:48.000Z
import torch import os, glob from .path import create_dir, get_path def load_checkpoint(checkpoint_path, model, optimizer=None, scheduler=None): if optimizer is not None: if not(os.path.exists(checkpoint_path)): print("[WARNING] No checkpoint exists. Start from scratch.") global_step = 0 else: print(...
30.708333
111
0.729308
205
1,474
4.990244
0.263415
0.123167
0.063539
0.070381
0.29521
0.234604
0.234604
0.234604
0.234604
0.234604
0
0.009252
0.120081
1,474
47
112
31.361702
0.779491
0
0
0.294118
0
0
0.175832
0.014257
0
0
0
0
0
1
0.058824
false
0
0.088235
0
0.176471
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f21a46afa8fc39f3ecf728165185537c6f76296
1,712
py
Python
lib/tsetmc_api/core/symbol.py
mahs4d/tsetmc-api
4d7252b9e9aeda870e0340d7641aa244427a4ab1
[ "MIT" ]
18
2020-06-01T06:12:41.000Z
2021-05-08T07:57:47.000Z
lib/tsetmc_api/core/symbol.py
mahs4d/tsetmc-api
4d7252b9e9aeda870e0340d7641aa244427a4ab1
[ "MIT" ]
3
2020-08-07T11:25:53.000Z
2021-04-09T12:37:00.000Z
lib/tsetmc_api/core/symbol.py
mahs4d/tsetmc-api
4d7252b9e9aeda870e0340d7641aa244427a4ab1
[ "MIT" ]
6
2021-04-09T12:37:40.000Z
2021-11-08T20:50:16.000Z
from datetime import date import requests from bs4 import BeautifulSoup def get_symbol_details(symbol_id): raw = requests.get(f'http://www.tsetmc.com/Loader.aspx?Partree=15131M&i={symbol_id}', timeout=20, verify=False).text ret = {} trs = BeautifulSoup(raw, 'lxml').find_all('tr') for tr in trs: ...
30.035088
120
0.586449
234
1,712
4.076923
0.350427
0.092243
0.081761
0.033543
0.050314
0
0
0
0
0
0
0.032385
0.260514
1,712
56
121
30.571429
0.721169
0
0
0
0
0.022727
0.142523
0
0
0
0
0
0
1
0.045455
false
0
0.068182
0
0.159091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f231583cf8cbaed36b765c3c82ea90dabd12d76
975
py
Python
shamester_api/handlers/new_website_handler.py
heynemann/shamester
b098c922be941037410d3c7b3214a9aecde67495
[ "MIT" ]
1
2015-01-25T13:13:23.000Z
2015-01-25T13:13:23.000Z
shamester_api/handlers/new_website_handler.py
heynemann/shamester
b098c922be941037410d3c7b3214a9aecde67495
[ "MIT" ]
null
null
null
shamester_api/handlers/new_website_handler.py
heynemann/shamester
b098c922be941037410d3c7b3214a9aecde67495
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from tornado.web import RequestHandler, asynchronous import tornado.gen import motor from ujson import loads, dumps from shamester_api.models import Website class NewWebsiteHandler(RequestHandler): @property def websites(self): return self.application.mongo....
23.780488
72
0.61641
107
975
5.551402
0.53271
0.055556
0.047138
0.070707
0
0
0
0
0
0
0
0.001403
0.268718
975
40
73
24.375
0.831697
0.038974
0
0.148148
0
0
0.06631
0
0
0
0
0
0
1
0.074074
false
0
0.185185
0.037037
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f246adac761633444e7917b2e83510f4f23aa8d
8,368
py
Python
TM271A-ctrl.py
wb4bxo/TM-271A-ctrl
45f9f931553b08f4bc1b30360c2c946b07b54074
[ "Unlicense" ]
null
null
null
TM271A-ctrl.py
wb4bxo/TM-271A-ctrl
45f9f931553b08f4bc1b30360c2c946b07b54074
[ "Unlicense" ]
null
null
null
TM271A-ctrl.py
wb4bxo/TM-271A-ctrl
45f9f931553b08f4bc1b30360c2c946b07b54074
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import sys import os import time import serial # This is a quick and dirty control program for the Kenwood TM-271A and TM-281A # transceiver to allow remote base like operations for use with Allstar or # other digital modes. It is primarily targeted at the Raspberry Pi but being # in Python allo...
30.652015
112
0.58162
1,296
8,368
3.752315
0.320988
0.028789
0.031256
0.024059
0.229899
0.206046
0.196381
0.192474
0.177257
0.172733
0
0.097666
0.278083
8,368
272
113
30.764706
0.707333
0.275215
0
0.214286
0
0
0.31249
0
0
0
0
0
0
1
0.03125
false
0.008929
0.017857
0
0.080357
0.040179
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f247daa65827948d6dd176860fe6b66dc1abfcd
2,347
py
Python
snake/games/snake_gen.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
2
2019-12-09T08:41:13.000Z
2020-10-22T02:29:22.000Z
snake/games/snake_gen.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
null
null
null
snake/games/snake_gen.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
null
null
null
import itertools import numpy as np from snake.objects.utils import Point from snake.games.base_game import SnakeGame from snake.boards.classic import Board from snake.displays.single_image import SingleImage class Snake(SnakeGame): """ Classic snake game, which outputs a numpy ndarray of size (24,) ...
39.116667
93
0.607158
306
2,347
4.5
0.349673
0.039216
0.020334
0.030501
0.039216
0.039216
0
0
0
0
0
0.011926
0.285471
2,347
59
94
39.779661
0.809183
0.157648
0
0.051282
0
0
0.011721
0
0
0
0
0
0
1
0.102564
false
0
0.153846
0
0.358974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f272df30ff4e1643b5772b92ea4e650ad48af7e
473
py
Python
hw5/close_p_q.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
hw5/close_p_q.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
hw5/close_p_q.py
rocke97/crypto
89c4e595adf74558e12ceb1762025fd2f0275fec
[ "MIT" ]
null
null
null
import math def find_s_and_t(n): s = 0 t = 0 for possible_t in range(math.ceil(math.sqrt(n)), n): if math.sqrt((pow(possible_t, 2) - n)) == math.ceil(math.sqrt((pow(possible_t, 2) - n))): t = possible_t s_squared = pow(t, 2) - n s = math.floor(math.sqrt(s_squared...
24.894737
97
0.547569
81
473
3.049383
0.333333
0.145749
0.036437
0.072874
0.178138
0.178138
0.178138
0
0
0
0
0.061584
0.27907
473
19
98
24.894737
0.662757
0
0
0
0
0
0.016878
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f2a2ed8a1f8b461a2fc0955e0ccc67710df3bfc
1,051
py
Python
Week_4/xcoverage.py
actaylor05/learning_python
d8c72fdb7c07bac4176a4418f83d75013db2245a
[ "MIT" ]
null
null
null
Week_4/xcoverage.py
actaylor05/learning_python
d8c72fdb7c07bac4176a4418f83d75013db2245a
[ "MIT" ]
null
null
null
Week_4/xcoverage.py
actaylor05/learning_python
d8c72fdb7c07bac4176a4418f83d75013db2245a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Write a program that simulates random BAC coverage over a genome # Command line arguments include # Genome size (e.g. 1000) # X coverage (e.g. 5) # Use assert() to check parameter bounds # Report min, max, and histogram of coverage # Note that your output may vary due to random function imp...
16.169231
66
0.647954
199
1,051
3.422111
0.452261
0.052863
0.017621
0.032305
0
0
0
0
0
0
0
0.097735
0.201713
1,051
64
67
16.421875
0.713945
0.317793
0
0
0
0
0.111693
0
0
0
0
0
0.115385
1
0
false
0
0.076923
0
0.076923
0.269231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f2afa44239c14e6b1bb586457468cf46963a9c2
3,352
py
Python
python/desc/sims_ci_pipe/psf_mag_check.py
jchiang87/sims_ci_pipe
db8f5ba03880c8def4242fc80ab4cfe6e225e72f
[ "BSD-3-Clause" ]
3
2019-12-04T02:47:34.000Z
2021-07-04T16:25:34.000Z
python/desc/sims_ci_pipe/psf_mag_check.py
jchiang87/sims_ci_pipe
db8f5ba03880c8def4242fc80ab4cfe6e225e72f
[ "BSD-3-Clause" ]
5
2019-12-10T15:54:49.000Z
2020-07-19T02:25:39.000Z
python/desc/sims_ci_pipe/psf_mag_check.py
jchiang87/sims_ci_pipe
db8f5ba03880c8def4242fc80ab4cfe6e225e72f
[ "BSD-3-Clause" ]
1
2020-07-15T15:41:34.000Z
2020-07-15T15:41:34.000Z
""" Compute visit-level distributions of psf_mag - calib_mag to check for biases in photometry. """ import numpy as np import matplotlib.pyplot as plt import pandas as pd import lsst.daf.persistence as dp from .ellipticity_distributions import get_point_sources __all__ = ['get_psf_calib_mags', 'psf_mag_check'] def ...
34.204082
79
0.656026
452
3,352
4.641593
0.294248
0.045758
0.017159
0.020019
0.283603
0.283603
0.224976
0.193518
0.163966
0.163966
0
0.018133
0.22673
3,352
97
80
34.556701
0.791281
0.28401
0
0
0
0
0.119363
0.042882
0
0
0
0
0
1
0.039216
false
0
0.098039
0
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f332ee1aa858c59191df24f355feb7d4151e658
3,052
py
Python
Baseline/NABA/obs_naba.py
sarthak-chakraborty/PARIMA
c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1
[ "MIT" ]
13
2021-03-06T16:53:33.000Z
2022-02-04T20:28:13.000Z
Baseline/NABA/obs_naba.py
sarthak-chakraborty/Adaptive-360-video
c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1
[ "MIT" ]
6
2021-06-02T08:08:09.000Z
2022-03-12T00:58:26.000Z
Baseline/NABA/obs_naba.py
sarthak-chakraborty/Adaptive-360-video
c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1
[ "MIT" ]
3
2021-05-26T03:32:04.000Z
2021-07-17T14:34:20.000Z
import numpy as np import math import pickle from naba import get_data, tiling, alloc_bitrate, calc_qoe import argparse import json def main(): parser = argparse.ArgumentParser(description='Run NABA algorithm and calculate Average QoE of a video for all users') parser.add_argument('-D', '--dataset', type=int, re...
35.488372
167
0.713303
452
3,052
4.652655
0.311947
0.047076
0.039943
0.07418
0.1864
0.119829
0
0
0
0
0
0.01402
0.135321
3,052
85
168
35.905882
0.782872
0.047182
0
0
0
0.016393
0.260076
0
0
0
0
0
0
1
0.016393
false
0
0.098361
0
0.114754
0.163934
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f397a404c6c6b7845cf8d3cc2ad927c19c0bc7f
1,568
py
Python
tests/time_delay_layers_test.py
veqtor/veqtor_keras
303f81b7c6aaa7962b288541275fe7ea618804b9
[ "MIT" ]
1
2020-08-07T14:47:16.000Z
2020-08-07T14:47:16.000Z
tests/time_delay_layers_test.py
veqtor/veqtor_keras
303f81b7c6aaa7962b288541275fe7ea618804b9
[ "MIT" ]
null
null
null
tests/time_delay_layers_test.py
veqtor/veqtor_keras
303f81b7c6aaa7962b288541275fe7ea618804b9
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.utils import custom_object_scope from tensorflow.python.keras.testing_utils import layer_test from veqtor_keras.layers.time_delay_layers import TimeDelayLayer1D, DepthGroupwiseTimeDelayLayer1D, \ DepthGroupwiseTimeDelayLayerFake2D, TimeDelayLayerFake2D class TimeDela...
38.243902
109
0.720026
147
1,568
7.421769
0.319728
0.054995
0.07791
0.062328
0.284143
0.284143
0.240147
0.190651
0.190651
0.190651
0
0.035377
0.188776
1,568
40
110
39.2
0.822327
0
0
0.275862
0
0
0.098214
0.040816
0
0
0
0
0
1
0.137931
false
0
0.137931
0
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f3f574c981c25a097dafd8bdfc599460d07e952
660
py
Python
PyTester/data/Root.py
Sildra/PyTester
ebe16dc4dc169416ee839adc03e42806d8d57620
[ "Apache-2.0" ]
null
null
null
PyTester/data/Root.py
Sildra/PyTester
ebe16dc4dc169416ee839adc03e42806d8d57620
[ "Apache-2.0" ]
null
null
null
PyTester/data/Root.py
Sildra/PyTester
ebe16dc4dc169416ee839adc03e42806d8d57620
[ "Apache-2.0" ]
null
null
null
from data.Category import Category class Root(Category): """description of class""" instance = None def __init__(self, args, name="Root", depth=-1): super().__init__(args.path, name, depth) global instance instance = self self.args = args def accept(self, visitor): ...
23.571429
52
0.589394
77
660
4.909091
0.493506
0.042328
0.042328
0
0
0
0
0
0
0
0
0.004348
0.30303
660
27
53
24.444444
0.817391
0.030303
0
0.1
0
0
0.006309
0
0
0
0
0
0
1
0.2
false
0
0.05
0.05
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f41984526bd0a507c9c13a13aba537060703cb9
2,880
py
Python
predict.py
wangruichens/textcnn
99dadc2da13d6dff48cc824492788046ceb82031
[ "Apache-2.0" ]
null
null
null
predict.py
wangruichens/textcnn
99dadc2da13d6dff48cc824492788046ceb82031
[ "Apache-2.0" ]
null
null
null
predict.py
wangruichens/textcnn
99dadc2da13d6dff48cc824492788046ceb82031
[ "Apache-2.0" ]
null
null
null
# @Time : 18-11-5 # @Author : wangrc # @Refers : # @Outputs : # @Desc : import tensorflow as tf import numpy as np import os import time import datetime import data_helpers from text_cnn import TextCNN from tensorflow.contrib import learn import csv import read_nlpcc # Eval Parameters tf.flags.DEFINE_int...
36
116
0.721875
390
2,880
5.092308
0.369231
0.021148
0.032729
0.038268
0.131923
0.108761
0.032226
0
0
0
0
0.015158
0.152431
2,880
79
117
36.455696
0.798443
0.160417
0
0
0
0
0.171321
0.02501
0
0
0
0
0
1
0
false
0
0.23913
0
0.23913
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f46e0716183980d44e4a86f4c6e12b6c8d6a358
1,422
py
Python
innuendo/core/interface.py
innuendoio/innuendo-agent-python
bcd79ddaf39083fa6498d1c9af2be2d79e495fc2
[ "MIT" ]
null
null
null
innuendo/core/interface.py
innuendoio/innuendo-agent-python
bcd79ddaf39083fa6498d1c9af2be2d79e495fc2
[ "MIT" ]
null
null
null
innuendo/core/interface.py
innuendoio/innuendo-agent-python
bcd79ddaf39083fa6498d1c9af2be2d79e495fc2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Backwards compatibility imports from __future__ import absolute_import, division, print_function from builtins import * # Imports import sys import imp import os import argparse import traceback from innuendo.utils import file_manager as fm, parser class TerminalInterface(): def __init...
27.346154
97
0.613221
175
1,422
4.748571
0.445714
0.057762
0.028881
0.043321
0.079422
0.079422
0.079422
0.079422
0
0
0
0.000978
0.280591
1,422
51
98
27.882353
0.811339
0.094937
0
0.176471
0
0
0.039844
0
0
0
0
0
0
1
0.088235
false
0
0.235294
0
0.352941
0.205882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f483a2d601c9006e62be6731d151449cfbbb0bc
8,108
py
Python
IMLearn/learners/gaussian_estimators.py
guymkaplan/IML.HUJI
cd0aac71c3684bca9a64df13b0ba15d42ec88e98
[ "MIT" ]
null
null
null
IMLearn/learners/gaussian_estimators.py
guymkaplan/IML.HUJI
cd0aac71c3684bca9a64df13b0ba15d42ec88e98
[ "MIT" ]
null
null
null
IMLearn/learners/gaussian_estimators.py
guymkaplan/IML.HUJI
cd0aac71c3684bca9a64df13b0ba15d42ec88e98
[ "MIT" ]
null
null
null
from __future__ import annotations import math import numpy as np from numpy.linalg import inv, det, slogdet class UnivariateGaussian: """ Class for univariate Gaussian Distribution Estimator """ def __init__(self, biased_var: bool = False) -> UnivariateGaussian: """ Estimator for un...
32.562249
115
0.583004
958
8,108
4.818372
0.160752
0.023397
0.036395
0.038995
0.602686
0.560659
0.485269
0.485269
0.465771
0.433276
0
0.005595
0.316601
8,108
248
116
32.693548
0.827468
0.519364
0
0.216667
0
0
0.042857
0
0
0
0
0
0
1
0.166667
false
0
0.066667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f499412eff769d36ce3fc8f434016dea692f534
1,509
py
Python
pycqed/analysis/fit_toolbox/init_guess.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
60
2016-08-03T10:00:18.000Z
2021-11-10T11:46:16.000Z
pycqed/analysis/fit_toolbox/init_guess.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
512
2016-08-03T17:10:02.000Z
2022-03-31T14:03:43.000Z
pycqed/analysis/fit_toolbox/init_guess.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
34
2016-10-19T12:00:52.000Z
2022-03-19T04:43:26.000Z
import numpy from scipy import * def lorentzian(x_data, y_data): p=4*[0] y_min = min(y_data) index_y_min = y_data.tolist().index(y_min) x_min = x_data[index_y_min] y_max = max(y_data) index_y_max = y_data.tolist().index(y_max) y_mean = y_data.mean() HM = (y_max - y_min)/2 #print 'ch...
26.473684
98
0.588469
247
1,509
3.259109
0.174089
0.126708
0.122981
0.063354
0.445963
0.252174
0.173913
0.173913
0.091925
0
0
0.030564
0.306163
1,509
56
99
26.946429
0.7383
0.132538
0
0.055556
0
0
0
0
0
0
0
0
0
1
0.027778
false
0
0.055556
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f4a9032ca67ddad37ba103c8f41aa58eaf22f85
268
py
Python
src/rez/data/tests/commands/packages/rextest2/2/package.py
alexey-pelykh/rez
ad12105d89d658e4d2ea9249e537b3de90391f0e
[ "Apache-2.0" ]
null
null
null
src/rez/data/tests/commands/packages/rextest2/2/package.py
alexey-pelykh/rez
ad12105d89d658e4d2ea9249e537b3de90391f0e
[ "Apache-2.0" ]
null
null
null
src/rez/data/tests/commands/packages/rextest2/2/package.py
alexey-pelykh/rez
ad12105d89d658e4d2ea9249e537b3de90391f0e
[ "Apache-2.0" ]
1
2020-09-24T08:33:43.000Z
2020-09-24T08:33:43.000Z
name = 'rextest2' version = '2' requires = ["rextest-1.3"] def commands(): # prepend to existing var env.REXTEST_DIRS.append('{root}/data2') setenv("REXTEST2_REXTEST_VER", '{resolve.rextest.version}') env.REXTEST2_REXTEST_BASE = resolve.rextest.base
24.363636
63
0.697761
34
268
5.352941
0.676471
0.164835
0
0
0
0
0
0
0
0
0
0.030702
0.149254
268
10
64
26.8
0.767544
0.085821
0
0
0
0
0.316872
0.102881
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f4cb0e01f8ead732bd4879f7c1e12e4253c6239
937
py
Python
examples/CheckFirmwareVersion.py
drizztguen77/PTHat
f46d05054875599e80b396f74bc5a348cfcefbfb
[ "Apache-2.0" ]
5
2021-01-28T13:26:08.000Z
2022-02-24T08:15:44.000Z
examples/CheckFirmwareVersion.py
drizztguen77/PTHat
f46d05054875599e80b396f74bc5a348cfcefbfb
[ "Apache-2.0" ]
null
null
null
examples/CheckFirmwareVersion.py
drizztguen77/PTHat
f46d05054875599e80b396f74bc5a348cfcefbfb
[ "Apache-2.0" ]
null
null
null
""" This is an example of setting up an Axis (motor) and starting it, revving it up to a specified RPM and letting it run for some time and then shutting it down. This example does not auto send the commands. It gets the command and then sends it to the send_command method. """ from pthat.pthat import Axis def wait_...
32.310345
113
0.742796
143
937
4.706294
0.454545
0.111441
0.047548
0.056464
0.08321
0
0
0
0
0
0
0.007643
0.16222
937
28
114
33.464286
0.849682
0.358591
0
0
0
0
0.133672
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f583755beca1d6f083766bc7e6fb3691cf83619
1,015
py
Python
pw22/__main__.py
paeronskruven/pyweek22
4657b03a49c011581af6ae460fd97b6d58d13ead
[ "MIT" ]
null
null
null
pw22/__main__.py
paeronskruven/pyweek22
4657b03a49c011581af6ae460fd97b6d58d13ead
[ "MIT" ]
null
null
null
pw22/__main__.py
paeronskruven/pyweek22
4657b03a49c011581af6ae460fd97b6d58d13ead
[ "MIT" ]
null
null
null
import pyglet import logging logging.basicConfig(format='%(asctime)s %(module)s %(levelname)s %(message)s', level=logging.DEBUG) # setup resource paths before importing any game code pyglet.resource.path = ['data', 'data/tiles'] pyglet.resource.reindex() from .scenes import SceneManager, GameScene window = pyglet.w...
22.065217
99
0.729064
136
1,015
5.301471
0.485294
0.066574
0.041609
0.047157
0.080444
0
0
0
0
0
0
0.008083
0.146798
1,015
45
100
22.555556
0.82448
0.050246
0
0.206897
0
0
0.077963
0
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f58b85680a38832bb5ae69272da473e0e9adc35
1,993
py
Python
src/web-scrapers/GetFixtures.py
CharlesFrankum/FF_Team_Selector
f230904faa6713dcec97e086e14eb7d841de9278
[ "Apache-2.0" ]
null
null
null
src/web-scrapers/GetFixtures.py
CharlesFrankum/FF_Team_Selector
f230904faa6713dcec97e086e14eb7d841de9278
[ "Apache-2.0" ]
3
2021-03-31T19:24:31.000Z
2021-12-13T20:07:43.000Z
src/web-scrapers/GetFixtures.py
CharlesFrankum/FF_Team_Selector
f230904faa6713dcec97e086e14eb7d841de9278
[ "Apache-2.0" ]
1
2019-08-08T06:46:13.000Z
2019-08-08T06:46:13.000Z
import os import sys sys.path.insert(1, f'{os.path.dirname(os.getcwd())}\\models\\') from datetime import datetime from time import sleep import pandas as pd from Mapper import df_ISO3_mapper def get_fixture_data(url, driver): # Get Fixture data for gameweeks 1-38 home_teams = [] away_teams = [] ...
31.634921
117
0.586553
263
1,993
4.235741
0.38403
0.02693
0.037702
0.025135
0.113106
0.08079
0
0
0
0
0
0.012074
0.293527
1,993
62
118
32.145161
0.779119
0.044656
0
0
0
0
0.143609
0.052604
0
0
0
0
0
1
0.065217
false
0
0.130435
0
0.217391
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f5cb3300698dddd958b6e5a7a02e3cb797a505c
463
py
Python
stackstats/settings.py
kapsali29/StackStatsAPI
5181bd5275129080206350e147ce6b1db18a0b69
[ "MIT" ]
null
null
null
stackstats/settings.py
kapsali29/StackStatsAPI
5181bd5275129080206350e147ce6b1db18a0b69
[ "MIT" ]
null
null
null
stackstats/settings.py
kapsali29/StackStatsAPI
5181bd5275129080206350e147ce6b1db18a0b69
[ "MIT" ]
null
null
null
# ================================= # STACKEXCHANGE APP SETTINGS # ================================= CLIENT_ID = "***" CLIENT_SECRET = "*****" KEY = "****" ACCESS_TOKEN = "*****" # ================================= # STACKEXCHANGE API SETTINGS # ================================= STACKEXCHANGE_URL = "api.stackexchange....
27.235294
44
0.490281
37
463
5.864865
0.594595
0.092166
0
0
0
0
0
0
0
0
0
0.009592
0.099352
463
17
45
27.235294
0.510791
0.408207
0
0
0
0
0.313433
0.179104
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f60c2158a21875e4f1814a10f74c2d6e01951da
410
py
Python
src/leetcode/1997/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
1
2021-07-11T03:20:10.000Z
2021-07-11T03:20:10.000Z
src/leetcode/1997/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
39
2021-07-10T05:21:09.000Z
2021-12-15T06:10:12.000Z
src/leetcode/1997/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
null
null
null
import typing import functools class Solution: def firstDayBeenInAllRooms( self, nx: typing.List[int], ) -> int: mod = 10 ** 9 + 7 @functools.lru_cache(maxsize=None) def dfs(i: int): if i == 0: return 0 res = 2 + dfs(i - 1) if nx[i - 1] != i - 1: res += dfs(i ...
19.52381
42
0.495122
59
410
3.423729
0.474576
0.049505
0.049505
0
0
0
0
0
0
0
0
0.05
0.365854
410
21
43
19.52381
0.726923
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f639c82ba6fc3b596994756f2ed202a124ee6d6
472
py
Python
scripts/audio/replace.py
Y4SSIN/video-editor
879e53ee689e0085140d10f3c7b35a4048ca233b
[ "MIT" ]
8
2019-01-21T13:14:33.000Z
2020-10-02T14:40:21.000Z
scripts/audio/replace.py
Y4SSIN/video-editor
879e53ee689e0085140d10f3c7b35a4048ca233b
[ "MIT" ]
3
2021-06-08T21:30:11.000Z
2022-03-12T00:28:37.000Z
scripts/audio/replace.py
Y4SSIN/video-editor
879e53ee689e0085140d10f3c7b35a4048ca233b
[ "MIT" ]
2
2020-12-01T16:59:04.000Z
2021-02-01T03:31:21.000Z
''' This function gives you the possibility to replace the video audio. ''' import os def replace_audio(video_file_path, audio_file_path): old_filename = video_file_path.rsplit('\\', 1)[-1] old_extension = os.path.splitext(video_file_path)[1] new_filename = old_filename.replace(old_extension, '.mp4') ...
31.466667
152
0.722458
79
472
4.075949
0.493671
0.149068
0.161491
0
0
0
0
0
0
0
0
0.02716
0.141949
472
14
153
33.714286
0.767901
0.144068
0
0
0
0.166667
0.353535
0.070707
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f64fd79f6f4e0f16023d3c4112423cb2c29995a
405
py
Python
sims-g2/pos-adv/code/plot2D.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
1
2019-12-19T16:21:13.000Z
2019-12-19T16:21:13.000Z
sims-g2/pos-adv/code/plot2D.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
null
null
null
sims-g2/pos-adv/code/plot2D.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
2
2020-01-08T06:23:33.000Z
2020-01-08T07:06:50.000Z
from pylab import * X = linspace(-1, 1, 50) XX, YY = meshgrid(X, X) def calcf(XX, YY, mu1): f1 = 0.5 f2 = 1/(2*sqrt(3)*mu1) f3 = 1/(2*sqrt(3)*mu1) f4 = 1/(6*mu1**2) return f1*0.5 + f2*sqrt(3)*XX/2 + f3*sqrt(3)*YY/2 + 3*XX*YY/2 mu1 = 3.0/5.0 f1 = calcf(XX, YY, mu1) pcolormesh(XX, YY, transpose(f1...
19.285714
65
0.540741
84
405
2.607143
0.404762
0.091324
0.082192
0.109589
0.091324
0
0
0
0
0
0
0.137072
0.207407
405
20
66
20.25
0.545171
0
0
0
0
0
0.054321
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f651734783eec2d577591561e02a2c193bbe807
4,312
py
Python
cfn_custom_resources_backed_by_step_functions/cfn_custom_resources_backed_by_step_functions_stack.py
bitesizedserverless/cfn-custom-resources-backed-by-step-functions
45c424a9d6f491700e1729ef88c5fee36beb5e44
[ "MIT" ]
null
null
null
cfn_custom_resources_backed_by_step_functions/cfn_custom_resources_backed_by_step_functions_stack.py
bitesizedserverless/cfn-custom-resources-backed-by-step-functions
45c424a9d6f491700e1729ef88c5fee36beb5e44
[ "MIT" ]
null
null
null
cfn_custom_resources_backed_by_step_functions/cfn_custom_resources_backed_by_step_functions_stack.py
bitesizedserverless/cfn-custom-resources-backed-by-step-functions
45c424a9d6f491700e1729ef88c5fee36beb5e44
[ "MIT" ]
null
null
null
"""Module for the main CfnCustomResourcesBackedByStepFunctions Stack.""" # Standard library imports import time # Related third party imports # - # Local application/library specific imports from aws_cdk import ( core as cdk, aws_lambda as lambda_, aws_stepfunctions as sfn, aws_stepfunctions_tasks as...
35.344262
90
0.606679
424
4,312
5.910377
0.351415
0.038308
0.030726
0.028731
0.226257
0.173184
0.136872
0.063448
0.063448
0.063448
0
0.008452
0.314007
4,312
121
91
35.636364
0.838742
0.265074
0
0.202703
0
0
0.143314
0.066539
0
0
0
0
0
1
0.013514
false
0
0.027027
0
0.054054
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f6693ddb85d3bb717698451379c61708255fc9d
9,726
py
Python
Pokemon/pokemon_item.py
V-FEXrt/Pokemon-Spoof-Plus
d397d680742496b7f64b401511da7eb57f63c973
[ "MIT" ]
2
2017-05-04T20:24:19.000Z
2017-05-04T20:58:07.000Z
Pokemon/pokemon_item.py
V-FEXrt/Pokemon-Spoof-Plus
d397d680742496b7f64b401511da7eb57f63c973
[ "MIT" ]
null
null
null
Pokemon/pokemon_item.py
V-FEXrt/Pokemon-Spoof-Plus
d397d680742496b7f64b401511da7eb57f63c973
[ "MIT" ]
null
null
null
import random class Item(): def __init__(self, name, hex): self.name = name self.hex = hex def __str__(self): return self.name @staticmethod def fromBytes(hex): return Item.reverse[hex] @staticmethod def buildReverse(): reverse = {} Item.membe...
36.980989
118
0.699054
1,493
9,726
4.45144
0.358339
0.018056
0.004514
0
0
0
0
0
0
0
0
0.089473
0.127802
9,726
262
119
37.122137
0.693976
0
0
0.011952
0
0
0.193728
0
0
0
0.09419
0
0
1
0.01992
false
0.003984
0.003984
0.011952
0.039841
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f66a163bf1e5878e2474fa634b0488a8aa1b816
3,589
py
Python
train.py
Markus-Goetz/block-prediction
3f89d17d449f023d60fae5ec6bd712cb6cc8cb50
[ "MIT" ]
5
2018-11-28T22:18:29.000Z
2021-08-16T22:09:35.000Z
train.py
Markus-Goetz/block-prediction
3f89d17d449f023d60fae5ec6bd712cb6cc8cb50
[ "MIT" ]
null
null
null
train.py
Markus-Goetz/block-prediction
3f89d17d449f023d60fae5ec6bd712cb6cc8cb50
[ "MIT" ]
5
2018-12-03T08:40:46.000Z
2022-02-21T14:21:52.000Z
#!/usr/bin/env python import argparse import pickle import h5py from keras import optimizers from keras.callbacks import ModelCheckpoint from keras.layers import Activation, add, BatchNormalization, Conv2D, Dense, Dropout, Flatten, Input, ZeroPadding2D from keras.models import load_model, Model from keras.regularizers...
31.482456
148
0.679019
474
3,589
4.987342
0.381857
0.022843
0.021574
0.020305
0.059222
0.036379
0.036379
0.036379
0
0
0
0.029036
0.193926
3,589
113
149
31.761062
0.788109
0.048203
0
0.063291
0
0
0.088002
0
0
0
0
0
0
1
0.075949
false
0
0.126582
0.012658
0.265823
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f6cda2b221292f939019bccf17b0c0c955ce9d9
492
py
Python
options/test_options.py
salfamusic/encoder4editing
8263cb9d42cd4811f4ab2768dfcc9085259fc251
[ "MIT" ]
null
null
null
options/test_options.py
salfamusic/encoder4editing
8263cb9d42cd4811f4ab2768dfcc9085259fc251
[ "MIT" ]
null
null
null
options/test_options.py
salfamusic/encoder4editing
8263cb9d42cd4811f4ab2768dfcc9085259fc251
[ "MIT" ]
null
null
null
from .base_options import BaseOptions class TestOptions(BaseOptions): def initialize(self, parser): BaseOptions.initialize(self, parser) parser.set_defaults(phase='test') parser.add_argument('--only_for_test', type=str, default='...') parser.add_argument('--network_pkl', type=str,...
41
109
0.705285
59
492
5.711864
0.610169
0.080119
0.151335
0
0
0
0
0
0
0
0
0.007264
0.160569
492
12
110
41
0.808717
0
0
0
0
0
0.243408
0.131846
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f745bc0d930118b19141f5dfac7b6915950c7e9
1,772
py
Python
f5/bigiq/cm/device/licensing/pool/initial_activation.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
272
2016-02-23T06:05:44.000Z
2022-02-20T02:09:32.000Z
f5/bigiq/cm/device/licensing/pool/initial_activation.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
1,103
2016-02-11T17:48:03.000Z
2022-02-15T17:13:37.000Z
f5/bigiq/cm/device/licensing/pool/initial_activation.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
167
2016-02-11T17:48:21.000Z
2022-01-17T20:13:05.000Z
# coding=utf-8 # # Copyright 2017 F5 Networks Inc. # # 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...
36.916667
118
0.738149
219
1,772
5.780822
0.488584
0.120853
0.067141
0.082938
0.28752
0.248025
0.218009
0.104265
0.104265
0.104265
0
0.008081
0.161964
1,772
47
119
37.702128
0.843771
0.426072
0
0.117647
0
0
0.35146
0.287009
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f78b69e4772845ec293a193b3ef41aeb3b1c4fc
1,491
py
Python
prophet_gcp/utils.py
SpikeLab-CL/paralell_prophet
c04b069ae27eb8645dd10e0cf9992415e585ba62
[ "WTFPL" ]
7
2018-10-18T18:06:27.000Z
2021-11-02T19:53:31.000Z
prophet_gcp/utils.py
SpikeLab-CL/paralell_prophet
c04b069ae27eb8645dd10e0cf9992415e585ba62
[ "WTFPL" ]
null
null
null
prophet_gcp/utils.py
SpikeLab-CL/paralell_prophet
c04b069ae27eb8645dd10e0cf9992415e585ba62
[ "WTFPL" ]
5
2020-01-23T22:03:00.000Z
2022-02-17T08:28:51.000Z
import dask.dataframe as dd import pandas as pd def load_parse_file(file_path, date_column="date"): """Loads a file into Pandas dataframe, and parse the datetime columns Arguments: file_path: string path to the input file. Returns: Dataframe: dask.dataframe from the file ...
32.413043
77
0.646546
199
1,491
4.688442
0.38191
0.051447
0.072883
0.032154
0.083601
0.083601
0.083601
0.083601
0
0
0
0.000906
0.259557
1,491
46
78
32.413043
0.844203
0.326626
0
0
0
0
0.075862
0
0
0
0
0
0.047619
1
0.142857
false
0
0.095238
0
0.380952
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f79be8eb8ccee8775fd0b6dbe06883ce3e72270
4,756
py
Python
eva-accession-release-automation/run_release_in_embassy/analyze_vcf_validation_results.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
3
2018-02-28T17:14:53.000Z
2020-03-17T17:19:45.000Z
eva-accession-release-automation/run_release_in_embassy/analyze_vcf_validation_results.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
52
2018-03-29T15:44:23.000Z
2022-02-16T00:54:28.000Z
eva-accession-release-automation/run_release_in_embassy/analyze_vcf_validation_results.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
15
2018-03-02T13:34:19.000Z
2021-06-22T15:54:59.000Z
#!/usr/bin/env python3 # Copyright 2019 EMBL - European Bioinformatics Institute # # 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 # # Unles...
52.263736
118
0.660849
596
4,756
4.901007
0.271812
0.089011
0.071551
0.039028
0.618281
0.535433
0.495036
0.436837
0.371106
0.295104
0
0.009994
0.263667
4,756
90
119
52.844444
0.824101
0.126156
0
0.163934
0
0.032787
0.163448
0.005794
0
0
0
0
0
1
0.065574
false
0
0.114754
0
0.213115
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f7c0232a0c1a08c2f41b65eb62c5d3ff5bd11ae
3,562
py
Python
tests/test_subnet.py
Diapolo10/iplib
001479b2095fd8008f9db726b1bd9c0b0ee16eac
[ "MIT" ]
6
2021-04-18T19:46:40.000Z
2021-06-28T22:03:25.000Z
tests/test_subnet.py
Diapolo10/iplib
001479b2095fd8008f9db726b1bd9c0b0ee16eac
[ "MIT" ]
10
2021-05-01T19:46:35.000Z
2021-07-04T08:39:35.000Z
tests/test_subnet.py
Diapolo10/iplib
001479b2095fd8008f9db726b1bd9c0b0ee16eac
[ "MIT" ]
4
2021-05-01T22:04:24.000Z
2021-06-13T14:29:20.000Z
"""Unit tests for iplib3.subnet""" import pytest from iplib3.subnet import ( # pylint: disable=import-error,no-name-in-module SubnetMask, PureSubnetMask, ) from iplib3.constants import ( # pylint: disable=import-error,no-name-in-module IPV4_MIN_SUBNET_VALUE, IPV4_MAX_SUBNET_VALUE, IPV6_MAX_SUBNE...
29.683333
86
0.714486
455
3,562
5.265934
0.138462
0.113523
0.068865
0.11394
0.641903
0.5697
0.474124
0.450751
0.308431
0.20576
0
0.044302
0.169848
3,562
119
87
29.932773
0.765979
0.150477
0
0.236111
0
0
0.067814
0.028003
0
0
0
0
0.291667
1
0.152778
false
0
0.041667
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f7e37d4906c116b6d7ca399d7e8dabb52aaae91
2,570
py
Python
examples/linear_regression_with_database.py
facebookresearch/svinfer
14edce1af6c91e622b8691f5d78a490a8585e7b5
[ "Apache-2.0" ]
14
2020-05-29T18:45:16.000Z
2022-03-21T03:30:27.000Z
examples/linear_regression_with_database.py
facebookresearch/svinfer
14edce1af6c91e622b8691f5d78a490a8585e7b5
[ "Apache-2.0" ]
null
null
null
examples/linear_regression_with_database.py
facebookresearch/svinfer
14edce1af6c91e622b8691f5d78a490a8585e7b5
[ "Apache-2.0" ]
1
2020-07-30T17:01:20.000Z
2020-07-30T17:01:20.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # 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 b...
39.538462
85
0.716342
374
2,570
4.828877
0.470588
0.033223
0.033223
0.037652
0.172204
0.153378
0.083056
0.036545
0
0
0
0.087567
0.19572
2,570
64
86
40.15625
0.786164
0.618677
0
0
0
0
0.17766
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8f808924f32b0bba54dcbd5d9c58b33439b7f83b
2,705
py
Python
sightpy/backgrounds/skybox.py
ulises1229/Python-Raytracer
ad89b9dabda1c3eeb68af2d3578c3f38dee9f5b9
[ "MIT" ]
326
2020-08-14T07:29:40.000Z
2022-03-30T11:13:32.000Z
sightpy/backgrounds/skybox.py
ulises1229/Python-Raytracer
ad89b9dabda1c3eeb68af2d3578c3f38dee9f5b9
[ "MIT" ]
7
2020-08-14T21:57:56.000Z
2021-06-09T00:53:04.000Z
sightpy/backgrounds/skybox.py
ulises1229/Python-Raytracer
ad89b9dabda1c3eeb68af2d3578c3f38dee9f5b9
[ "MIT" ]
37
2020-08-14T17:37:56.000Z
2022-03-30T09:37:22.000Z
from ..geometry import Cuboid_Collider, Primitive from ..materials import Material from ..utils.vector3 import vec3 from ..utils.constants import SKYBOX_DISTANCE from ..utils.image_functions import load_image, load_image_as_linear_sRGB from .util.blur_background import blur_skybox class SkyBox(Primitive): ...
46.637931
209
0.598521
361
2,705
4.315789
0.204986
0.107831
0.082157
0.073171
0.28113
0.195122
0.195122
0.18742
0.139923
0.139923
0
0.024723
0.267283
2,705
57
210
47.45614
0.761352
0.002218
0
0.097561
0
0
0.026515
0.011364
0
0
0
0
0
1
0.121951
false
0
0.146341
0
0.390244
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56a8d54ad528be2aaf7182e51f33608226c5e2df
45,398
py
Python
CGATPipelines/pipeline_exome_cancer.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
null
null
null
CGATPipelines/pipeline_exome_cancer.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
null
null
null
CGATPipelines/pipeline_exome_cancer.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
null
null
null
""" ====================== Exome Cancer pipeline ====================== .. todo:: *Final filtering if SNPs/INDELs is currently done in the reporting. This should be handled by the pipeline. The SNP output would also then be passed to the mutational signature task *Document *fully make phone home/key o...
35.973059
81
0.552998
4,554
45,398
5.390426
0.170839
0.021998
0.022446
0.016295
0.373676
0.337176
0.314201
0.296969
0.277049
0.265643
0
0.005522
0.230076
45,398
1,261
82
36.001586
0.696793
0.22675
0
0.392908
0
0.011348
0.389166
0.121364
0.001418
0
0
0.000793
0
1
0.08227
false
0.011348
0.01844
0
0.102128
0.002837
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56af02a969b9dab95dd47f1d92c922008e2433c4
435
py
Python
guestbook/models.py
hcpthanks/vCard
cc9a301f413961c398c355426013c0cc05fbb1b7
[ "MIT" ]
null
null
null
guestbook/models.py
hcpthanks/vCard
cc9a301f413961c398c355426013c0cc05fbb1b7
[ "MIT" ]
null
null
null
guestbook/models.py
hcpthanks/vCard
cc9a301f413961c398c355426013c0cc05fbb1b7
[ "MIT" ]
null
null
null
import reprlib from django.db import models class Message(models.Model): """留言消息类 """ name = models.CharField('用户名', max_length=20) email = models.EmailField('邮箱', max_length=200) message = models.TextField('留言') active = models.BooleanField('有效', default=True) posted = models.DateTimeField...
27.1875
60
0.671264
55
435
5.163636
0.709091
0.091549
0
0
0
0
0
0
0
0
0
0.014085
0.183908
435
15
61
29
0.785915
0.011494
0
0
0
0
0.124105
0.093079
0
0
0
0
0
1
0.1
false
0
0.2
0.1
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56b027366621352ff84a9bd75357a7f9c2bdede8
293
py
Python
rationalratio/rationalratio.py
omarchehab98/open.kattis.com-problems
0523e2e641151dad719ef05cc9811a8ef5c6a278
[ "MIT" ]
1
2020-10-04T22:41:04.000Z
2020-10-04T22:41:04.000Z
rationalratio/rationalratio.py
omarchehab98/open.kattis.com-problems
0523e2e641151dad719ef05cc9811a8ef5c6a278
[ "MIT" ]
null
null
null
rationalratio/rationalratio.py
omarchehab98/open.kattis.com-problems
0523e2e641151dad719ef05cc9811a8ef5c6a278
[ "MIT" ]
null
null
null
from fractions import Fraction x, d = input().split(' ') d = int(d) k = len(x) - x.index('.') - d - 1 a, b = x[0:-d].replace('.', ''), 10 ** k ab = Fraction(int(a), b) rd = Fraction(int(x[-d:]), (10 ** d - 1) * b) result = ab + rd print(str(result.numerator) + '/' + str(result.denominator))
26.636364
60
0.546075
50
293
3.2
0.5
0.025
0
0
0
0
0
0
0
0
0
0.029289
0.1843
293
10
61
29.3
0.640167
0
0
0
0
0
0.013652
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56b18a5e976b97460394eeab951ee9f6df83fd21
3,636
py
Python
examples/doq_server.py
SouvikGhosh05/aioquic
da566b8ee616b9c83d51f0f5ad0521393119f40f
[ "BSD-3-Clause" ]
null
null
null
examples/doq_server.py
SouvikGhosh05/aioquic
da566b8ee616b9c83d51f0f5ad0521393119f40f
[ "BSD-3-Clause" ]
null
null
null
examples/doq_server.py
SouvikGhosh05/aioquic
da566b8ee616b9c83d51f0f5ad0521393119f40f
[ "BSD-3-Clause" ]
null
null
null
import argparse import asyncio import logging import struct from typing import Dict, Optional from dnslib.dns import DNSRecord from aioquic.asyncio import QuicConnectionProtocol, serve from aioquic.quic.configuration import QuicConfiguration from aioquic.quic.events import QuicEvent, StreamDataReceived from aioquic.q...
27.338346
81
0.622937
401
3,636
5.513716
0.38404
0.032564
0.061511
0.013569
0.055179
0.033469
0.033469
0
0
0
0
0.007553
0.271727
3,636
132
82
27.545455
0.827417
0.028603
0
0.12381
0
0
0.152817
0
0
0
0
0
0
1
0.038095
false
0.009524
0.104762
0.009524
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56b2d0fc3f97f8a7563d2f632e5448b894ac8ef4
9,483
py
Python
extended_templates/backends/pdf.py
knivets/djaodjin-extended-templates
71bc725b3900fc45968e5a625d72dc0931561856
[ "BSD-2-Clause" ]
null
null
null
extended_templates/backends/pdf.py
knivets/djaodjin-extended-templates
71bc725b3900fc45968e5a625d72dc0931561856
[ "BSD-2-Clause" ]
null
null
null
extended_templates/backends/pdf.py
knivets/djaodjin-extended-templates
71bc725b3900fc45968e5a625d72dc0931561856
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2018, Djaodjin Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
39.348548
80
0.61953
1,069
9,483
5.369504
0.315248
0.025087
0.017073
0.008014
0.088153
0.040418
0.040418
0.040418
0.023693
0.023693
0
0.005427
0.300432
9,483
240
81
39.5125
0.859813
0.240114
0
0.115385
0
0
0.066601
0.003239
0
0
0
0
0.00641
1
0.070513
false
0.012821
0.102564
0.00641
0.25641
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56b2fc9930c872a6e85f2a12f4ba1b8f96b7e270
1,484
py
Python
python/practices/docset.py
gloomyline/ML
3764ac7dd64e3a92de1b34d6a92a809e02f7c038
[ "MIT" ]
null
null
null
python/practices/docset.py
gloomyline/ML
3764ac7dd64e3a92de1b34d6a92a809e02f7c038
[ "MIT" ]
null
null
null
python/practices/docset.py
gloomyline/ML
3764ac7dd64e3a92de1b34d6a92a809e02f7c038
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Administrator # @Date: 2018-05-17 11:09:22 # @Last Modified by: Administrator # @Last Modified time: 2018-05-17 11:23:24 class Dict(dict): ''' Simple dict but also support access as x.y style. >>> d1 = Dict() >>> d1['x'] = 100 >>> d1.x 100 >>> d1.y = 200 >>> d1['y...
21.823529
84
0.584232
210
1,484
3.985714
0.466667
0.033453
0.0681
0.082437
0.170848
0.081243
0.081243
0
0
0
0
0.074009
0.235175
1,484
68
85
21.823529
0.663436
0.607143
0
0
0
0
0.088477
0
0
0
0
0
0
1
0.2
false
0
0.05
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56b748953a338c9c796774f938f8407392ae2efe
1,498
py
Python
docs/latex/src/plots/FOvsAsy2.py
vbertone/apfelxx
7a37b982083b2a1cded2f5d6ab3aae267877f3c4
[ "MIT" ]
5
2019-10-07T14:01:59.000Z
2021-04-13T19:54:47.000Z
docs/latex/src/plots/FOvsAsy2.py
vbertone/apfelxx
7a37b982083b2a1cded2f5d6ab3aae267877f3c4
[ "MIT" ]
3
2017-05-30T10:43:40.000Z
2018-09-11T14:29:53.000Z
docs/latex/src/plots/FOvsAsy2.py
vbertone/apfelxx
7a37b982083b2a1cded2f5d6ab3aae267877f3c4
[ "MIT" ]
4
2019-06-23T08:42:00.000Z
2022-03-18T15:25:46.000Z
import ruamel.yaml as yaml import numpy as np import matplotlib.pyplot as plt import MatplotlibSettings from scipy.interpolate import make_interp_spline, BSpline # Loada data data = np.loadtxt("FOvsAsy2.dat") f, (ax1, ax2) = plt.subplots(2, 1, sharex = "all", gridspec_kw = dict(width_ratios = [1], height_ratios = [4,...
41.611111
114
0.646862
261
1,498
3.643678
0.398467
0.066246
0.047319
0.057834
0.255521
0.214511
0.214511
0.138801
0.107256
0.071504
0
0.084465
0.11482
1,498
35
115
42.8
0.63273
0.006676
0
0
0
0.034483
0.222746
0.04105
0
0
0
0
0
1
0
false
0
0.172414
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56b9ba77444e2cd8a93d2c91b41f8c6f997f8056
2,006
py
Python
generation/process_datasets/process-NYT.py
Pratik-11/roft
29c54c9712832051170c47909a5d38790ff5350b
[ "MIT" ]
10
2020-05-31T19:19:42.000Z
2022-01-15T01:44:33.000Z
generation/process_datasets/process-NYT.py
kirubarajan/trick
04ef53c1d9646e0d7e7ec0eb47cc94d423682421
[ "MIT" ]
121
2020-06-05T20:29:24.000Z
2021-09-24T21:33:33.000Z
generation/process_datasets/process-NYT.py
kirubarajan/trick
04ef53c1d9646e0d7e7ec0eb47cc94d423682421
[ "MIT" ]
2
2020-06-05T20:10:29.000Z
2020-09-30T14:55:48.000Z
''' Script to parse out the raw text of articles from the NYT Articles Corpus This script will look for a directory named raw and find any .ta.xml files inside, parse out the "text" field in the file, strip all newlines and carriage returns from the file and then write the text out, one article per lin...
37.849057
84
0.638584
277
2,006
4.494585
0.422383
0.053012
0.06747
0.055422
0.081928
0.081928
0
0
0
0
0
0.013917
0.247757
2,006
52
85
38.576923
0.811133
0.228814
0
0
0
0
0.105368
0.065606
0
0
0
0
0
1
0.083333
false
0
0.055556
0.027778
0.277778
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56baa2531aac4a1b2d5cf0f754d7c2d4f1573f35
853
py
Python
DataMGT/consumers.py
BerryBC/SpyDataWebAppAndAPI
6dd42a186e6955575fb747f7ff69c5b5a060ca19
[ "MIT" ]
null
null
null
DataMGT/consumers.py
BerryBC/SpyDataWebAppAndAPI
6dd42a186e6955575fb747f7ff69c5b5a060ca19
[ "MIT" ]
null
null
null
DataMGT/consumers.py
BerryBC/SpyDataWebAppAndAPI
6dd42a186e6955575fb747f7ff69c5b5a060ca19
[ "MIT" ]
null
null
null
''' @Descripttion: @Author: BerryBC @Date: 2020-02-24 23:40:18 @LastEditors: BerryBC @LastEditTime: 2020-04-29 22:28:49 ''' import json import Lib.LLearn as LLearn from channels.generic.websocket import WebsocketConsumer class wsCreatSklearnModel(WebsocketConsumer): def funFB2C(self,strMsg, intCode): ...
23.054054
56
0.638921
98
853
5.520408
0.622449
0.044362
0
0
0
0
0
0
0
0
0
0.054096
0.241501
853
37
57
23.054054
0.782071
0.135991
0
0
0
0
0.117808
0
0
0
0
0
0
1
0.2
false
0
0.15
0
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
56bb48fc93cbdd9d51e108045eb0d3f0918f92f4
821
py
Python
main/test/test_image.py
kittenh2o/mosaic
19dc7cb3300b00a055fad874a097aa7a011ca56f
[ "MIT" ]
null
null
null
main/test/test_image.py
kittenh2o/mosaic
19dc7cb3300b00a055fad874a097aa7a011ca56f
[ "MIT" ]
null
null
null
main/test/test_image.py
kittenh2o/mosaic
19dc7cb3300b00a055fad874a097aa7a011ca56f
[ "MIT" ]
null
null
null
import unittest from main.core.process_pic import Image class TestImage(unittest.TestCase): def test_read(self): uris = [ "https://res.cloudinary.com/dwf6x1ohn/image/upload/v1534347950/bgnppredgmslafb5pkpw.jpg", "https://res.cloudinary.com/dwf6x1ohn/image/upload/v1534347979/wptzf...
28.310345
101
0.618758
87
821
5.724138
0.586207
0.090361
0.114458
0.084337
0.164659
0.164659
0.164659
0
0
0
0
0.069805
0.249695
821
28
102
29.321429
0.738636
0
0
0
0
0
0.219245
0
0
0
0
0
0.15
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0