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
f37864f533d84e03e2042457fe7404558577ab87
13,326
py
Python
param-net-mst.py
markusMM/Network-Expectation-Truncation
6b87ed1c5d3da8a6a28f3675390de58061b673d5
[ "AFL-3.0" ]
null
null
null
param-net-mst.py
markusMM/Network-Expectation-Truncation
6b87ed1c5d3da8a6a28f3675390de58061b673d5
[ "AFL-3.0" ]
1
2019-01-26T10:39:35.000Z
2019-01-26T10:39:35.000Z
param-net-mst.py
markusMM/Network-Expectation-Truncation
6b87ed1c5d3da8a6a28f3675390de58061b673d5
[ "AFL-3.0" ]
null
null
null
import numpy as np import sys import os os.stat('pylib') sys.path.append("pylib") sys.path.append("pylib/utils") import argparse import tables from pulp.utils.parallel import pprint from pulp.utils.barstest import generate_bars_dict from sklearn.neural_network.multilayer_perceptron import MLPClassifier #%% -- General ...
26.812877
121
0.562885
1,885
13,326
3.812732
0.192042
0.041881
0.046751
0.018784
0.183665
0.122722
0.064144
0.0583
0.0583
0.0583
0
0.02225
0.29176
13,326
496
122
26.866935
0.739246
0.138376
0
0.13783
0
0
0.124026
0.006394
0
0
0
0
0
1
0
false
0
0.029326
0
0.029326
0.076246
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
f3798844d976d0deb0b955c5afd70a09e308f441
5,869
py
Python
devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py
AishwaryaANair/DevOpsCI
f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d
[ "MIT" ]
null
null
null
devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py
AishwaryaANair/DevOpsCI
f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d
[ "MIT" ]
null
null
null
devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py
AishwaryaANair/DevOpsCI
f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d
[ "MIT" ]
null
null
null
import os import sys import warnings from importlib import import_module from django.apps import apps from django.conf import settings from django.core.management.commands.test import Command as TestCommand from django_jenkins.runner import CITestSuiteRunner def get_runner(settings, test_runner_class=None): if ...
39.126667
103
0.601125
637
5,869
5.312402
0.260597
0.050236
0.035461
0.022163
0.130024
0.077423
0.046099
0.027778
0.027778
0
0
0.001709
0.302266
5,869
149
104
39.389262
0.824664
0.027432
0
0.087719
0
0
0.182428
0.01235
0
0
0
0
0
1
0.061404
false
0.008772
0.087719
0.008772
0.184211
0.026316
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
f37b8f5c7b578b839ecbd2fcf931a116c7e5396d
4,860
py
Python
misc/marker/map.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
70
2015-11-16T18:04:01.000Z
2022-03-05T09:04:02.000Z
misc/marker/map.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
1
2016-08-03T05:13:19.000Z
2016-08-03T06:19:39.000Z
misc/marker/map.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
34
2015-12-15T17:29:23.000Z
2021-11-18T14:15:12.000Z
#!/usr/bin/env python2 import os, sys, argparse, pylab, json path = os.path.dirname(os.path.realpath(sys.argv[0])) parser = argparse.ArgumentParser(description = 'Graphical view of marked locations') parser.add_argument('--filename', type = str, help = 'File from which to read marks (defaults to marks.json)', default...
36
134
0.648148
753
4,860
4.051793
0.273572
0.052442
0.017699
0.031137
0.186168
0.131105
0.105539
0.089807
0.070796
0.070796
0
0.019908
0.193827
4,860
134
135
36.268657
0.758806
0.022634
0
0.168224
0
0
0.15683
0
0
0
0
0
0
1
0.046729
false
0.009346
0.009346
0
0.056075
0.009346
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
f37bd2d3826f6978ed09b73ecee68d64081a0fa6
1,028
py
Python
src/tox_travis/hacks.py
disconnect3d/tox-travis
58b594b1b0347e558d660c3089d0ae335c0fcc0c
[ "MIT" ]
null
null
null
src/tox_travis/hacks.py
disconnect3d/tox-travis
58b594b1b0347e558d660c3089d0ae335c0fcc0c
[ "MIT" ]
null
null
null
src/tox_travis/hacks.py
disconnect3d/tox-travis
58b594b1b0347e558d660c3089d0ae335c0fcc0c
[ "MIT" ]
null
null
null
import os try: from tox.config import default_factors except ImportError: default_factors = None def pypy_version_monkeypatch(): """Patch Tox to work with non-default PyPy 3 versions.""" # Travis virtualenv do not provide `pypy3`, which tox tries to execute. # This doesnt affect Travis python ver...
32.125
75
0.716926
137
1,028
5.248175
0.50365
0.1363
0.052851
0.075104
0.086231
0
0
0
0
0
0
0.013285
0.194553
1,028
31
76
33.16129
0.855072
0.347276
0
0
0
0
0.060976
0.032012
0
0
0
0
0
1
0.176471
false
0
0.235294
0
0.470588
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
f37e25fcba871387dd039c2c129311d5edc97e58
8,072
py
Python
my_sound.py
comp-physics/bubble-dynamics-with-multiscale-resnets
409c6b676f5c9b9219c9c6228e3c012382ae3389
[ "MIT" ]
1
2022-03-15T12:16:01.000Z
2022-03-15T12:16:01.000Z
my_sound.py
comp-physics/bubble_dynamics_with_multiscale_resnets
409c6b676f5c9b9219c9c6228e3c012382ae3389
[ "MIT" ]
null
null
null
my_sound.py
comp-physics/bubble_dynamics_with_multiscale_resnets
409c6b676f5c9b9219c9c6228e3c012382ae3389
[ "MIT" ]
1
2022-03-15T12:16:06.000Z
2022-03-15T12:16:06.000Z
import numpy as np # #========================================================= # # Input Arguments # #========================================================= # with open("parameters.yml", 'r') as stream: # D = yaml.safe_load(stream) # # for key in D: # globals() [str(key)] = D[key] # print('{}: {}'.for...
43.869565
124
0.436447
874
8,072
3.913043
0.171625
0.008187
0.021053
0.026316
0.576608
0.531579
0.531579
0.531579
0.508187
0.498246
0
0.013491
0.265362
8,072
184
125
43.869565
0.563238
0.499752
0
0.477778
0
0
0.006844
0
0
0
0
0
0.177778
1
0.122222
false
0
0.011111
0
0.255556
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
f37ed4232986be023beaaf668d06b5e77ac074e6
851
py
Python
ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
"""This module contains the meta information of LoggingSyncOcns ExternalMethod.""" from ..ucscentralcoremeta import MethodMeta, MethodPropertyMeta method_meta = MethodMeta("LoggingSyncOcns", "loggingSyncOcns", "Version142b") prop_meta = { "cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string", "Version142b...
40.52381
124
0.720329
81
851
7.358025
0.45679
0.040268
0.026846
0.040268
0.11745
0
0
0
0
0
0
0.019973
0.117509
851
20
125
42.55
0.773635
0.089307
0
0
0
0
0.473958
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
f37ee31cfb8b47e410af4a949e4a6b40e2743fdd
6,351
py
Python
karaoke-maker/backend/search/file_search.py
MorsCerta-crypto/KaraokeMaker
9784daa5595ba675ead83caf3bc94d2d14421495
[ "MIT" ]
null
null
null
karaoke-maker/backend/search/file_search.py
MorsCerta-crypto/KaraokeMaker
9784daa5595ba675ead83caf3bc94d2d14421495
[ "MIT" ]
null
null
null
karaoke-maker/backend/search/file_search.py
MorsCerta-crypto/KaraokeMaker
9784daa5595ba675ead83caf3bc94d2d14421495
[ "MIT" ]
null
null
null
""" find song if already downloaded in filesystem """ from dataclasses import dataclass import os from pathlib import Path from typing import Optional, Union import pickle from utils import Song @dataclass class DownloadedSongs: def __init__(self, songs_path: str = "karaoke-maker/data/downloads/"): if so...
37.803571
110
0.571249
803
6,351
4.374844
0.195517
0.046114
0.051808
0.029035
0.260461
0.21577
0.142328
0.13265
0.052377
0.029035
0
0.001426
0.337585
6,351
168
111
37.803571
0.833611
0.118564
0
0.214876
0
0
0.124298
0.005255
0
0
0
0
0
1
0.07438
false
0
0.049587
0
0.206612
0.14876
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
f37f5b44b527c47327e13e3adfceadc8d8345966
20,795
py
Python
lambda/lambda_function.py
ulyssesBML/Viva-a-Revolu-o-AlexaGame
f11414cd6a2c8c214f6ded3d44779f6a396a8a54
[ "MIT" ]
null
null
null
lambda/lambda_function.py
ulyssesBML/Viva-a-Revolu-o-AlexaGame
f11414cd6a2c8c214f6ded3d44779f6a396a8a54
[ "MIT" ]
1
2020-02-17T21:56:55.000Z
2020-02-18T17:07:43.000Z
lambda/lambda_function.py
ulyssesBML/Viva-a-Revolu-o-AlexaGame
f11414cd6a2c8c214f6ded3d44779f6a396a8a54
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK for Python. # Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management, # session persistence, api calls, and more. # This sample is built using the ...
44.72043
350
0.660688
2,368
20,795
5.613598
0.180321
0.078538
0.040924
0.05296
0.580757
0.563831
0.55533
0.538855
0.517867
0.494471
0
0.001224
0.253715
20,795
464
351
44.81681
0.855339
0.153018
0
0.463259
0
0.038339
0.207323
0.002464
0
0
0
0
0
1
0.102236
false
0
0.047923
0.054313
0.313099
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
f38641f22cf2208a475873a6c210809242c7f833
7,960
py
Python
notebooks/construct-network/construct_network.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
2
2020-09-22T09:59:56.000Z
2022-01-31T20:00:49.000Z
notebooks/construct-network/construct_network.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
1
2021-07-20T20:01:46.000Z
2021-07-20T21:21:03.000Z
notebooks/construct-network/construct_network.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
3
2021-03-09T04:38:56.000Z
2021-07-13T04:49:15.000Z
import numpy as np import pandas as pd import py2neo import pickle import os,sys from scipy import sparse def edges2adj(edges, raw_edges, year, pcount): # Uniqify edges def uniqify_edges(edges, pcount): ccount = edges.groupby(["target"])["s_target"].nunique() nodes = pd.DataFrame({"ccount": cc...
34.912281
121
0.56495
1,015
7,960
4.255172
0.176355
0.100023
0.036119
0.025932
0.562167
0.422088
0.389442
0.376013
0.346608
0.327622
0
0.020585
0.273744
7,960
227
122
35.066079
0.726518
0.036558
0
0.430851
0
0.021277
0.203239
0.031479
0
0
0
0
0
1
0.015957
false
0.021277
0.031915
0
0.074468
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
f3879f7e2508d44d6784798a2cca8db2145fd810
2,830
py
Python
tests/proxy/test_traversable.py
fjarri/pykka
d1b33b32ba60c6a3e83576ea746b780775e8ff3e
[ "Apache-2.0" ]
null
null
null
tests/proxy/test_traversable.py
fjarri/pykka
d1b33b32ba60c6a3e83576ea746b780775e8ff3e
[ "Apache-2.0" ]
null
null
null
tests/proxy/test_traversable.py
fjarri/pykka
d1b33b32ba60c6a3e83576ea746b780775e8ff3e
[ "Apache-2.0" ]
null
null
null
import pytest import pykka class NestedWithNoMarker: inner = "nested_with_no_marker.inner" class NestedWithNoMarkerAndSlots: __slots__ = ["inner"] def __init__(self): self.inner = "nested_with_no_marker_and_slots.inner" @pykka.traversable class NestedWithDecoratorMarker: inner = "nested_...
28.3
80
0.731449
328
2,830
5.893293
0.253049
0.103466
0.06984
0.09312
0.266425
0.118469
0.053802
0
0
0
0
0.000867
0.184452
2,830
99
81
28.585859
0.836655
0.076325
0
0.0625
0
0
0.213108
0.166731
0
0
0
0
0.0625
1
0.140625
false
0
0.03125
0.015625
0.46875
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
f38f101b5462e5a48038cb051787c9579a047624
432
py
Python
setup.py
Observatory-Sciences/dls-pmac-lib
e6cde02d6ecef57963ae128f8967413b2752c024
[ "Apache-2.0" ]
1
2021-12-01T23:35:21.000Z
2021-12-01T23:35:21.000Z
setup.py
Observatory-Sciences/dls-pmac-lib
e6cde02d6ecef57963ae128f8967413b2752c024
[ "Apache-2.0" ]
null
null
null
setup.py
Observatory-Sciences/dls-pmac-lib
e6cde02d6ecef57963ae128f8967413b2752c024
[ "Apache-2.0" ]
1
2021-05-26T11:27:21.000Z
2021-05-26T11:27:21.000Z
from setuptools import setup # these lines allow the version to be specified in Makefile.private import os version = os.environ.get("MODULEVER", "0.0") setup( name = 'dls_pmaclib', version = version, description = 'Module', author = 'fgz73762', author_email = 'fgz73762@rl.ac.uk', ...
25.411765
67
0.618056
51
432
5.137255
0.784314
0.076336
0
0
0
0
0
0
0
0
0
0.043887
0.261574
432
16
68
27
0.777429
0.150463
0
0
0
0
0.213699
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
f3908d26c53625ed2af166f41829d096ab0818d7
776
py
Python
molecule/default/tests/test_default.py
Turgon37/ansible-sssd
f9b653495ed9a908de660dab5f311782633a5e02
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
Turgon37/ansible-sssd
f9b653495ed9a908de660dab5f311782633a5e02
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
Turgon37/ansible-sssd
f9b653495ed9a908de660dab5f311782633a5e02
[ "MIT" ]
2
2019-10-17T17:17:23.000Z
2020-03-31T13:13:29.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_sssd_conf(host): conf = host.file('/etc/sssd/sssd.conf') assert conf.exists assert conf.user == 'root' assert conf.gro...
24.25
63
0.649485
103
776
4.718447
0.466019
0.065844
0.08642
0.111111
0.127572
0.127572
0.127572
0.127572
0
0
0
0.003339
0.228093
776
31
64
25.032258
0.808013
0
0
0.086957
0
0
0.292526
0.029639
0
0
0
0
0.173913
1
0.086957
false
0
0.086957
0
0.173913
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
f39250c381454b0933a185c13c313dd67e368700
24,886
py
Python
plugins/Operations/Parsing/parsing_ops.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
120
2015-02-28T14:49:12.000Z
2022-03-27T07:13:24.000Z
plugins/Operations/Parsing/parsing_ops.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
null
null
null
plugins/Operations/Parsing/parsing_ops.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
17
2016-04-04T15:53:03.000Z
2021-12-10T18:07:59.000Z
# # Parsing operations - Operations such as file type detection and embedded file # detection # # Copyright (c) 2019, Nobutaka Mantani # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # #...
36.119013
213
0.577031
3,035
24,886
4.628666
0.133114
0.004698
0.015661
0.014949
0.602862
0.553602
0.516444
0.503915
0.486475
0.469106
0
0.011457
0.298561
24,886
688
214
36.171512
0.793309
0.138471
0
0.600849
0
0.008493
0.165741
0.010621
0
0
0
0
0
1
0.021231
false
0
0.021231
0
0.106157
0.106157
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
f3925a2de46ce94e111a0a40f4a796420e5a3f57
5,582
py
Python
argo/networks/pbtxt.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
4
2020-12-07T19:13:13.000Z
2022-01-30T18:52:18.000Z
argo/networks/pbtxt.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
12
2020-09-25T22:41:28.000Z
2022-02-09T23:46:34.000Z
argo/networks/pbtxt.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
2
2021-03-02T18:31:04.000Z
2021-03-02T21:56:43.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf import imagenet from tensorflow.python.platform import gfile from inception_v4 import inception_v4 from inception_v4 import inception_v4_arg_scope from inception_v4 import ince...
39.034965
93
0.692404
769
5,582
4.778934
0.26788
0.044898
0.021769
0.030476
0.226395
0.127075
0.041361
0
0
0
0
0.009908
0.222501
5,582
142
94
39.309859
0.836866
0.457721
0
0.057143
0
0
0.209
0
0
0
0
0
0
1
0.042857
false
0
0.171429
0
0.242857
0.014286
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
f393988e6740fc6e08ace33d77422c2bdfde8d04
2,037
py
Python
hw3/3.py
joebobs0n/EE631
9b88e2ad255098afbc45cb7eda6018cb24c10fc3
[ "MIT" ]
null
null
null
hw3/3.py
joebobs0n/EE631
9b88e2ad255098afbc45cb7eda6018cb24c10fc3
[ "MIT" ]
null
null
null
hw3/3.py
joebobs0n/EE631
9b88e2ad255098afbc45cb7eda6018cb24c10fc3
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np chessboard = [10, 7] stereo_params = np.load('stereo_params.npz') F = stereo_params['F'] left_params = np.load('left_params.npz') left_intr = left_params['intr'] left_dist = left_params['dist'] right_params = np.load('right_params.npz') right_intr = right_params['intr'] right_dis...
29.955882
104
0.670594
351
2,037
3.720798
0.190883
0.045942
0.024502
0.027565
0.228178
0.222052
0.180704
0.180704
0.136294
0.136294
0
0.063291
0.146784
2,037
67
105
30.402985
0.688147
0
0
0.156863
0
0
0.068238
0.03191
0
0
0
0
0
1
0
false
0
0.039216
0
0.039216
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
f397433f97deecbcce038323eff26064f64a88ad
466
py
Python
Python/leetcode_challenges/leetcode_median-of-two-sorted-arrays.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
Python/leetcode_challenges/leetcode_median-of-two-sorted-arrays.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
Python/leetcode_challenges/leetcode_median-of-two-sorted-arrays.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
class Solution: def findMedianSortedArrays(self, nums1, nums2): concant = sorted(nums1 + nums2) pos = int((len(concant) + 1)/2) -1 if (len(concant) % 2) == 0: median = (concant[pos] + concant[pos+1])/2 else: median = concant[pos] return float(median) ...
31.066667
54
0.56867
60
466
4.283333
0.566667
0.116732
0.124514
0
0
0
0
0
0
0
0
0.102941
0.270386
466
15
55
31.066667
0.652941
0
0
0
0
0
0.017131
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
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
f397645eaf119065b33f1012173ea4db786f6334
370
py
Python
sourced/ml/tests/source/example.py
chubbymaggie/ast2vec
b9058681fdd30ad0a7f4fa90a24594b615340a90
[ "Apache-2.0" ]
null
null
null
sourced/ml/tests/source/example.py
chubbymaggie/ast2vec
b9058681fdd30ad0a7f4fa90a24594b615340a90
[ "Apache-2.0" ]
null
null
null
sourced/ml/tests/source/example.py
chubbymaggie/ast2vec
b9058681fdd30ad0a7f4fa90a24594b615340a90
[ "Apache-2.0" ]
null
null
null
import sys from modelforge.logs import setup_logging utmain = sys.modules['__main__'] if utmain.__package__ == "unittest" and utmain.__spec__ is None: from collections import namedtuple ModuleSpec = namedtuple("ModuleSpec", ["name"]) utmain.__spec__ = ModuleSpec("unittest.__main__") del ModuleSpec de...
21.764706
64
0.735135
43
370
5.813953
0.55814
0.096
0
0
0
0
0
0
0
0
0
0
0.162162
370
16
65
23.125
0.806452
0
0
0
0
0
0.137838
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.363636
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
f39aec0bebcbd7d89dc7e0ce8356f06dc7c60a5a
6,735
py
Python
train_parking.py
bayesianGirl/Parking-Spot-Detection-by-Opencv
b1ceb01a5eea1cba228c88113f6dcfb62c13618e
[ "MIT" ]
3
2020-12-07T21:13:44.000Z
2021-11-27T05:12:05.000Z
train_parking.py
bayesianGirl/Parking-Spot-Detection-by-Opencv
b1ceb01a5eea1cba228c88113f6dcfb62c13618e
[ "MIT" ]
null
null
null
train_parking.py
bayesianGirl/Parking-Spot-Detection-by-Opencv
b1ceb01a5eea1cba228c88113f6dcfb62c13618e
[ "MIT" ]
6
2018-07-09T18:23:18.000Z
2019-05-21T13:49:59.000Z
import tensorflow as tf import cv2 import numpy as np import os import tensorflow.contrib.slim as slim # TensorFlow-Slim # Number of classes=3(right, left,up) # Defining training examples and labels empty=[] occupied=[] examples=[] error= 'error.txt' error_file= open(error, 'w') #Reading images os.chdir('/home/ruchik...
39.156977
110
0.705122
1,144
6,735
4.02535
0.168706
0.023453
0.017372
0.038219
0.375027
0.336591
0.312052
0.262758
0.170467
0.170467
0
0.057046
0.120267
6,735
171
111
39.385965
0.720169
0.129324
0
0.172662
0
0
0.081776
0.04526
0
0
0
0
0
1
0.007194
false
0
0.035971
0
0.05036
0.107914
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
f39c0547113dfeeb7a9ee6287a14d65c76ea8bf5
7,308
py
Python
matchengine/plugins/DFCIQueryNodeTransformer.py
AveraSD/matchengine-V2
d6039dc5d6737f90f53d6decc3b60e062e65b165
[ "Apache-2.0" ]
18
2019-09-21T20:08:19.000Z
2021-07-06T03:23:11.000Z
matchengine/plugins/DFCIQueryNodeTransformer.py
AveraSD/matchengine-V2
d6039dc5d6737f90f53d6decc3b60e062e65b165
[ "Apache-2.0" ]
1
2020-04-06T17:13:17.000Z
2020-09-10T13:41:45.000Z
matchengine/plugins/DFCIQueryNodeTransformer.py
AveraSD/matchengine-V2
d6039dc5d6737f90f53d6decc3b60e062e65b165
[ "Apache-2.0" ]
12
2019-09-16T14:22:19.000Z
2022-01-13T20:32:52.000Z
from __future__ import annotations import datetime import re from typing import TYPE_CHECKING, Tuple, List, Union, Dict from matchengine.internals.plugin_helpers.plugin_stub import ( QueryNodeTransformer, QueryNodeClinicalIDsSubsetter ) from matchengine.internals.typing.matchengine_types import ( QueryPar...
44.560976
119
0.604543
842
7,308
4.918052
0.225653
0.039121
0.026564
0.036223
0.398696
0.348467
0.328423
0.285921
0.2468
0.228447
0
0.011284
0.320881
7,308
163
120
44.834356
0.823091
0.1237
0
0.236641
0
0
0.095088
0.044395
0
0
0
0
0
1
0.038168
false
0.007634
0.076336
0.007634
0.175573
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
f39e1c520696b1bcc8ef32a0537c82d74974fb1c
6,028
py
Python
ssbj_idf_mda.py
OneraHub/SSBJ-OpenMDAO-Example
5d10e9f8483f5e7ce803f0bc36ff78d3323227d9
[ "Apache-2.0" ]
7
2019-02-07T17:05:50.000Z
2022-01-20T16:29:31.000Z
ssbj_idf_mda.py
OneraHub/SSBJ-OpenMDAO-Example
5d10e9f8483f5e7ce803f0bc36ff78d3323227d9
[ "Apache-2.0" ]
3
2018-06-19T12:41:48.000Z
2019-01-16T17:13:24.000Z
ssbj_idf_mda.py
OneraHub/SSBJ-OpenMDAO-Example
5d10e9f8483f5e7ce803f0bc36ff78d3323227d9
[ "Apache-2.0" ]
2
2018-06-04T13:53:15.000Z
2018-11-29T18:46:14.000Z
""" SSBJ test case - http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19980234657.pdf Python implementation and OpenMDAO integration developed by Sylvain Dubreuil and Remi Lafage of ONERA, the French Aerospace Lab. """ import numpy as np from openmdao.api import Group, ExecComp, IndepVarComp from ssbj_disciplines....
43.366906
100
0.607001
801
6,028
4.32834
0.164794
0.117393
0.129218
0.071243
0.263629
0.064032
0.015575
0
0
0
0
0.016751
0.217651
6,028
138
101
43.681159
0.718405
0.085932
0
0
0
0
0.260369
0.008588
0
0
0
0
0
1
0.021053
false
0
0.063158
0
0.094737
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
f3a053275fcc5ad53f6d37ac237ac4dcff7bfa12
5,313
py
Python
ramjet/photometric_database/derived/self_lensing_binary_synthetic_signals_light_curve_collection.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
3
2020-11-23T18:47:37.000Z
2021-08-05T17:45:51.000Z
ramjet/photometric_database/derived/self_lensing_binary_synthetic_signals_light_curve_collection.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
5
2021-08-19T00:54:57.000Z
2022-02-10T00:15:40.000Z
ramjet/photometric_database/derived/self_lensing_binary_synthetic_signals_light_curve_collection.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
3
2019-07-12T21:00:57.000Z
2020-06-03T22:18:13.000Z
""" Code for a light curve collection of Agnieszka Cieplak's synthetic signals. """ import re import tarfile import urllib.request import numpy as np import pandas as pd from pathlib import Path from typing import Iterable from ramjet.photometric_database.light_curve_collection import LightCurveCollection class Self...
44.647059
118
0.710521
635
5,313
5.689764
0.255118
0.070578
0.04982
0.035981
0.270689
0.202048
0.176031
0.176031
0.176031
0.176031
0
0.002856
0.20911
5,313
118
119
45.025424
0.856973
0.24713
0
0.16129
0
0.016129
0.140991
0.047974
0
0
0
0
0
1
0.129032
false
0
0.129032
0
0.354839
0.048387
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
f3a1a5ad8c12e43533c8520008c3118e79bfded9
2,661
py
Python
eval_sampled_config.py
gatech-sysml/CompOFA
baf561f14a561547ff51933e45f90ddf00cbb3cf
[ "Apache-2.0" ]
20
2021-04-18T09:13:06.000Z
2022-03-29T03:54:23.000Z
eval_sampled_config.py
compofa-blind-review/compofa-iclr21
a97b726f17519e666c6fcdb4ec0b90cfa64d8d9f
[ "Apache-2.0" ]
2
2021-07-02T16:08:17.000Z
2022-02-16T09:20:47.000Z
eval_sampled_config.py
compofa-blind-review/compofa-iclr21
a97b726f17519e666c6fcdb4ec0b90cfa64d8d9f
[ "Apache-2.0" ]
2
2021-09-06T06:48:20.000Z
2021-12-02T12:11:30.000Z
# CompOFA – Compound Once-For-All Networks for Faster Multi-Platform Deployment # Under blind review at ICLR 2021: https://openreview.net/forum?id=IgIk8RRT-Z # # Implementation based on: # Once for All: Train One Network and Specialize it for Efficient Deployment # Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, Song ...
27.43299
85
0.698985
360
2,661
4.961111
0.488889
0.030235
0.057111
0.025756
0.024636
0
0
0
0
0
0
0.018257
0.176625
2,661
96
86
27.71875
0.79644
0.142052
0
0.148649
0
0
0.116484
0
0
0
0
0
0
1
0.027027
false
0
0.094595
0
0.148649
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
f3a888a84714f5db60233909ea5ac36a7608dd7d
1,538
py
Python
tests/test_connection.py
rfishy1/luno_streams
8bf9ad78ee1483730a38a3d8647c2484680a3553
[ "MIT" ]
11
2018-03-19T10:40:25.000Z
2022-01-27T18:30:46.000Z
tests/test_connection.py
rfishy1/luno_streams
8bf9ad78ee1483730a38a3d8647c2484680a3553
[ "MIT" ]
6
2018-11-01T13:55:04.000Z
2021-04-13T11:09:41.000Z
tests/test_connection.py
rfishy1/luno_streams
8bf9ad78ee1483730a38a3d8647c2484680a3553
[ "MIT" ]
6
2020-01-31T10:10:19.000Z
2021-07-11T09:16:15.000Z
import asyncio from unittest import TestCase from luno_streams import Updater from websockets.protocol import State import logging from concurrent import futures logging.getLogger('luno_streams').addHandler(logging.StreamHandler()) class TestConnection(TestCase): def test_simple_updates(self): num_updat...
31.387755
83
0.655397
174
1,538
5.695402
0.442529
0.040363
0.060545
0.069627
0.246216
0.191726
0.108981
0.108981
0.108981
0.108981
0
0.015332
0.236671
1,538
48
84
32.041667
0.82879
0.086476
0
0.060606
0
0
0.115549
0.074893
0
0
0
0
0.121212
1
0.121212
false
0
0.181818
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
f3aeaee761e5174922d3c62a36e43e71ad747d28
376
py
Python
pj1.py
Ziggareto/project_euler_solns
e52066b9ffec97005bad0f26a3f0e08760d5c5cb
[ "MIT" ]
null
null
null
pj1.py
Ziggareto/project_euler_solns
e52066b9ffec97005bad0f26a3f0e08760d5c5cb
[ "MIT" ]
null
null
null
pj1.py
Ziggareto/project_euler_solns
e52066b9ffec97005bad0f26a3f0e08760d5c5cb
[ "MIT" ]
null
null
null
#pj1 threelist = [] fivelist = [] togetherlist = [] sum = 0 for num in range(1000): if num % 3 == 0: threelist.append(num) if num % 5 == 0: fivelist.append(num) togetherlist = threelist for num in fivelist: if not num in togetherlist: togetherlist.append(num) fo...
15.666667
33
0.574468
47
376
4.595745
0.361702
0.092593
0.111111
0
0
0
0
0
0
0
0
0.039216
0.321809
376
23
34
16.347826
0.807843
0.007979
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
f3b056833e024a4ac70e915a922751195443e601
870
py
Python
micropython/examples/badger2040/info.py
SatoW04ld/pimoroni-pico
b1c0468c6c080d293593b58b7906000080732043
[ "MIT" ]
null
null
null
micropython/examples/badger2040/info.py
SatoW04ld/pimoroni-pico
b1c0468c6c080d293593b58b7906000080732043
[ "MIT" ]
null
null
null
micropython/examples/badger2040/info.py
SatoW04ld/pimoroni-pico
b1c0468c6c080d293593b58b7906000080732043
[ "MIT" ]
null
null
null
import badger2040 from badger2040 import WIDTH TEXT_SIZE = 0.45 LINE_HEIGHT = 16 display = badger2040.Badger2040() display.led(128) display.pen(0) display.rectangle(0, 0, WIDTH, 16) display.thickness(1) display.pen(15) display.text("badgerOS", 3, 8, 0.4) display.pen(0) y = 16 + int(LINE_HEIGHT / 2) display.text("...
22.894737
73
0.727586
145
870
4.262069
0.37931
0.12945
0.058252
0.097087
0.279935
0.18932
0.18932
0.15534
0.15534
0
0
0.093176
0.124138
870
37
74
23.513514
0.717848
0
0
0.344828
0
0
0.218391
0
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
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
f3b2520a47606ae32dff2f865c6832ee18bf5c86
8,047
py
Python
Game.py
shmily1012/Math_learning_for_lucas
8f6c5f9534c6a1ab1ec3dd433ffa7d6d10e55d7a
[ "MIT" ]
null
null
null
Game.py
shmily1012/Math_learning_for_lucas
8f6c5f9534c6a1ab1ec3dd433ffa7d6d10e55d7a
[ "MIT" ]
null
null
null
Game.py
shmily1012/Math_learning_for_lucas
8f6c5f9534c6a1ab1ec3dd433ffa7d6d10e55d7a
[ "MIT" ]
null
null
null
from os import path, terminal_size import json import random import time from ErrorBook import ErrorBook class Game(): def __init__(self, cfg_filename=None) -> None: if cfg_filename == None: self.cfg_filename = path.join('Cfg', 'cfg.json') else: self.cfg_filename = cfg_file...
40.847716
131
0.545545
824
8,047
5.239078
0.157767
0.090341
0.101228
0.048182
0.387306
0.302293
0.295576
0.252953
0.252953
0.233959
0
0.023325
0.328694
8,047
196
132
41.056122
0.775824
0.022866
0
0.254335
0
0
0.097772
0.00331
0
0
0
0
0
1
0.063584
false
0.017341
0.028902
0
0.190751
0.040462
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
f3b270fa36a7114f7f969027d53ba5f20b35319b
2,729
py
Python
covid.py
aizukanne/CovidDashboard
55a072a3c65e21792474c5d824fff92be4a04071
[ "MIT" ]
null
null
null
covid.py
aizukanne/CovidDashboard
55a072a3c65e21792474c5d824fff92be4a04071
[ "MIT" ]
null
null
null
covid.py
aizukanne/CovidDashboard
55a072a3c65e21792474c5d824fff92be4a04071
[ "MIT" ]
null
null
null
def getNewData(): import requests import json import pandas as pd url = "https://covid-193.p.rapidapi.com/statistics" headers = { 'x-rapidapi-host': "covid-193.p.rapidapi.com", 'x-rapidapi-key': "4c37223acemsh65b1a8b456b72c1p15a99ajsnd4a09ab346a4" } response = requests.request("GET", url, headers=heade...
36.878378
81
0.675339
299
2,729
6.160535
0.214047
0.09772
0.063518
0.073833
0.640065
0.564604
0.564604
0.534202
0.4962
0.4962
0
0.063356
0.144009
2,729
74
82
36.878378
0.725171
0.670942
0
0.56
0
0
0.367371
0.173709
0
0
0
0
0
1
0.08
false
0
0.2
0
0.36
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
f3b4672feda15bcb49c3a672ad5426fda451079a
1,063
py
Python
examples/example_throttlers_aiohttp.py
uburuntu/throttler
9172f0f5fca8efd51376452747f1526f275b7c87
[ "MIT" ]
77
2020-03-26T08:53:41.000Z
2022-03-26T17:27:29.000Z
examples/example_throttlers_aiohttp.py
uburuntu/throttler
9172f0f5fca8efd51376452747f1526f275b7c87
[ "MIT" ]
1
2020-06-28T20:28:49.000Z
2020-09-08T15:35:06.000Z
examples/example_throttlers_aiohttp.py
uburuntu/throttler
9172f0f5fca8efd51376452747f1526f275b7c87
[ "MIT" ]
3
2020-03-25T23:15:08.000Z
2022-03-08T16:05:49.000Z
import asyncio import time import aiohttp from throttler import Throttler, ThrottlerSimultaneous class SomeAPI: api_url = 'https://example.com' def __init__(self, throttler): self.throttler = throttler async def request(self, session: aiohttp.ClientSession): async with self.throttler: ...
25.309524
72
0.639699
127
1,063
5.251969
0.409449
0.047976
0.032984
0.041979
0.170915
0.107946
0.107946
0.107946
0
0
0
0.012674
0.257761
1,063
41
73
25.926829
0.8327
0
0
0.214286
0
0
0.061148
0
0
0
0
0
0
1
0.107143
false
0
0.142857
0
0.357143
0.035714
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
f3b501afed1a214552df9374d1257b1e7c0902d4
393
py
Python
web/image_path/utils.py
xinliy/pyWeb
929dd3a03540a57eac6a98f05f43b9f5f925ee98
[ "BSD-3-Clause" ]
1
2021-01-10T09:14:30.000Z
2021-01-10T09:14:30.000Z
web/image_path/utils.py
xinliy/pyWeb
929dd3a03540a57eac6a98f05f43b9f5f925ee98
[ "BSD-3-Clause" ]
12
2019-12-05T01:09:41.000Z
2022-03-12T00:07:50.000Z
web/image_path/utils.py
xinliy/pyWeb
929dd3a03540a57eac6a98f05f43b9f5f925ee98
[ "BSD-3-Clause" ]
1
2020-11-20T13:42:39.000Z
2020-11-20T13:42:39.000Z
import os def absoluteFilePaths(directory): path_list = [] for dirpath, _, filenames in os.walk(directory): for f in filenames: path_list.append(os.path.abspath(os.path.join(dirpath, f))) return path_list def create_a_folder(folder_path): if not os.path.exists(folder_path): ...
26.2
71
0.676845
55
393
4.654545
0.454545
0.15625
0.101563
0.148438
0.179688
0
0
0
0
0
0
0
0.216285
393
14
72
28.071429
0.831169
0
0
0
0
0
0.040712
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.363636
0.090909
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
f3b5b95387e18813475d997bc320132a781e6217
1,014
py
Python
raw_generator.py
QiXi9409/Simultaneous_ECG_Heartbeat
8b61b6434c5c505c0d55a46db08e627d275fc045
[ "MIT" ]
1
2022-01-21T06:29:19.000Z
2022-01-21T06:29:19.000Z
raw_generator.py
sliang11/ECG-FasterRCNN
8984084d570a0e45bf3508a1a23d562ba147ca84
[ "MIT" ]
null
null
null
raw_generator.py
sliang11/ECG-FasterRCNN
8984084d570a0e45bf3508a1a23d562ba147ca84
[ "MIT" ]
2
2020-06-02T01:31:29.000Z
2021-12-30T12:58:52.000Z
from raw_type import raw_type class generator(raw_type): def __init__(self): self.data = [] self.label = [] self.fs = 0 self.lead = 6 self.length = 0 def read_data(self, path): import wfdb import os all_files = os.listdir(path) ...
28.971429
101
0.515779
135
1,014
3.703704
0.37037
0.144
0.1
0.072
0.184
0.128
0.128
0.128
0
0
0
0.043408
0.386588
1,014
34
102
29.823529
0.76045
0
0
0.074074
0
0
0.022495
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0
0.259259
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
f3bb46de77f1ede9821e16aeb0dc39aaf5af4feb
2,041
py
Python
dwarfgen/src/codegen.py
claybrooks/dwarfgen
921d195b4f0aa375103839418eb72b143166b4c0
[ "Unlicense" ]
null
null
null
dwarfgen/src/codegen.py
claybrooks/dwarfgen
921d195b4f0aa375103839418eb72b143166b4c0
[ "Unlicense" ]
null
null
null
dwarfgen/src/codegen.py
claybrooks/dwarfgen
921d195b4f0aa375103839418eb72b143166b4c0
[ "Unlicense" ]
null
null
null
import os import importlib import logging from . import lang_generators KNOWN_GENERATORS = {} def register_generator(lang, module): global KNOWN_GENERATORS KNOWN_GENERATORS[lang] = module def __generate_type(generator, namespace, name, jidl): structure_format = generator.get_structure_format() re...
28.746479
88
0.700637
251
2,041
5.386454
0.278884
0.067308
0.06287
0.057692
0.090237
0.056213
0
0
0
0
0
0
0.202352
2,041
70
89
29.157143
0.830467
0.024008
0
0
0
0
0.028141
0
0
0
0
0
0
1
0.086957
false
0.021739
0.130435
0
0.282609
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
f3bd4c69ff3ae0a25e53c9c83810f5632db1899b
3,116
py
Python
animalcourier/profile/psopen.py
btrspg/Animal-Courier
59be3b3cf53f42a1101635eec61904a0be20957f
[ "MIT" ]
null
null
null
animalcourier/profile/psopen.py
btrspg/Animal-Courier
59be3b3cf53f42a1101635eec61904a0be20957f
[ "MIT" ]
null
null
null
animalcourier/profile/psopen.py
btrspg/Animal-Courier
59be3b3cf53f42a1101635eec61904a0be20957f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @License : Copyright(c) 2018 MIT License # @Time : 2019-01-09 15:01 # @Author : YUELONG.CHEN # @Mail : yuelong_chen@yahoo.com # @File : psopen.py # @Software: PyCharm from __future__ import absolute_import, unicode_literals import logging import os import sys...
33.869565
127
0.626765
415
3,116
4.59759
0.378313
0.028302
0.044025
0.062893
0.126834
0.087002
0.087002
0.049266
0.049266
0.049266
0
0.014321
0.215661
3,116
91
128
34.241758
0.766367
0.194159
0
0.074074
0
0
0.102595
0.022709
0
0
0
0
0
1
0.055556
false
0
0.185185
0
0.277778
0.018519
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
f3bfecbefdaa435ba979c1b054ab9fcdffb415fc
977
py
Python
s.py
overfly2014/test
5aa250616b656a786d3082453f8e6e39601d3266
[ "MIT" ]
null
null
null
s.py
overfly2014/test
5aa250616b656a786d3082453f8e6e39601d3266
[ "MIT" ]
null
null
null
s.py
overfly2014/test
5aa250616b656a786d3082453f8e6e39601d3266
[ "MIT" ]
null
null
null
import requests import time import json url = "https://www.okex.com/api/v5/market/ticker?instId=SHIB-USDT" proxies = { 'https': 'http://127.0.0.1:10809', } headers = { 'Connection': 'close',} requests.packages.urllib3.disable_warnings() requests.adapters.DEFAULT_RETRIES = 1 if __name__ == "__main__": ...
33.689655
97
0.566018
117
977
4.623932
0.598291
0.049908
0.09427
0
0
0
0
0
0
0
0
0.038298
0.278403
977
28
98
34.892857
0.729078
0.032753
0
0
0
0.04
0.205044
0
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0.08
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
f3c6b9f173f2065ac674f49398aa32fdb0f113b2
6,839
py
Python
tests/test_examples.py
kjosib/booze-tools
ed3333643e0df99231202c024da8c86a9bb5b2bc
[ "MIT" ]
10
2019-01-24T04:45:56.000Z
2020-09-16T14:27:29.000Z
tests/test_examples.py
kjosib/booze-tools
ed3333643e0df99231202c024da8c86a9bb5b2bc
[ "MIT" ]
40
2019-04-10T21:54:38.000Z
2021-10-04T02:49:11.000Z
tests/test_examples.py
kjosib/booze-tools
ed3333643e0df99231202c024da8c86a9bb5b2bc
[ "MIT" ]
1
2020-05-22T16:28:02.000Z
2020-05-22T16:28:02.000Z
import unittest import os import json as standard_json import example.mini_json, example.macro_json, example.calculator from boozetools.macroparse import compiler from boozetools.parsing import shift_reduce from boozetools.parsing.general import brute_force, gss from boozetools.support import runtime, interfaces, expa...
36.185185
127
0.705805
880
6,839
5.345455
0.304545
0.022959
0.031888
0.02381
0.23108
0.199192
0.166029
0.129464
0.108418
0.059099
0
0.018809
0.152654
6,839
188
128
36.37766
0.792925
0.067846
0
0.129032
0
0
0.179544
0.011644
0
0
0
0
0.083871
1
0.109677
false
0.03871
0.058065
0.012903
0.225806
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
f3c918a21077a8c8e26290bd9e7b95a2abb697db
1,668
py
Python
Server/app/views/v1/admin/account/account_control.py
moreal/DMS-Backend
c0a3b28972739c58049a296570bb873f32c03eec
[ "MIT" ]
27
2018-01-14T08:07:18.000Z
2020-01-20T14:21:17.000Z
Server/app/views/v1/admin/account/account_control.py
moreal/DMS-Backend
c0a3b28972739c58049a296570bb873f32c03eec
[ "MIT" ]
50
2018-02-12T12:51:33.000Z
2018-08-28T00:48:31.000Z
Server/app/views/v1/admin/account/account_control.py
moreal/DMS-Backend
c0a3b28972739c58049a296570bb873f32c03eec
[ "MIT" ]
10
2018-03-31T16:30:32.000Z
2021-03-02T10:30:31.000Z
from binascii import hexlify from hashlib import pbkdf2_hmac from flask import Blueprint, Response, request, current_app from flask_restful import Api from app.views.v1 import BaseResource from app.views.v1 import admin_only from app.models.account import SignupWaitingModel, StudentModel, AdminModel api = Api(Blu...
23.166667
75
0.610312
185
1,668
5.383784
0.437838
0.036145
0.036145
0.028112
0.040161
0
0
0
0
0
0
0.023947
0.273981
1,668
71
76
23.492958
0.798514
0.02458
0
0.119048
0
0
0.083494
0.030186
0
0
0
0
0
1
0.071429
false
0.02381
0.166667
0
0.404762
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
45e7b7e3cc8d8a217a777ade6c459dbb00a0cc8d
831
py
Python
LeetCode/MoveZeros.py
yashbhatt99/HackerRank-Problems
1c35bb20a662a917ab8657035f3a672001211a8c
[ "MIT" ]
10
2019-04-13T16:27:25.000Z
2019-10-31T10:46:25.000Z
LeetCode/MoveZeros.py
yashbhatt99/HackerRank-Problems
1c35bb20a662a917ab8657035f3a672001211a8c
[ "MIT" ]
1
2020-10-21T15:39:15.000Z
2020-10-21T15:39:15.000Z
LeetCode/MoveZeros.py
yashbhatt99/HackerRank-Problems
1c35bb20a662a917ab8657035f3a672001211a8c
[ "MIT" ]
3
2020-10-01T10:00:54.000Z
2020-10-20T16:57:18.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 15 12:05:04 2020 @author: ravi """ def TwoPointer(arr): p1 = 0 #points to non-zero p2 = 0 #points to zeros i=0 while(i!=(len(arr)-1)): while(True): if p1>= len(arr): break if arr[p1]...
21.868421
49
0.392298
105
831
3.104762
0.419048
0.092025
0.03681
0.07362
0.09816
0
0
0
0
0
0
0.092971
0.469314
831
38
50
21.868421
0.646259
0.154031
0
0.366667
0
0
0
0
0
0
0
0
0
1
0.033333
false
0
0
0
0.033333
0.033333
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
45e8212ceb66541400595949467bd4df8574dbc1
1,064
py
Python
leetcode-34.py
comst007/myLeetCode
2596f207f686a1601ea32d263cba4a9a1e2f3630
[ "Apache-2.0" ]
null
null
null
leetcode-34.py
comst007/myLeetCode
2596f207f686a1601ea32d263cba4a9a1e2f3630
[ "Apache-2.0" ]
null
null
null
leetcode-34.py
comst007/myLeetCode
2596f207f686a1601ea32d263cba4a9a1e2f3630
[ "Apache-2.0" ]
null
null
null
class Solution: def searchRange(self, nums, target: int): cnt = len(nums) if not cnt: return [-1, -1] if target > nums[-1] or target < nums[0]: return [-1, -1] start = 0 end = cnt - 1 mid = 0 bound = [-1] * 2 while start < end...
21.714286
49
0.409774
125
1,064
3.488
0.256
0.091743
0.119266
0.110092
0.334862
0.298165
0.298165
0.183486
0.183486
0.183486
0
0.053957
0.477444
1,064
49
50
21.714286
0.730216
0
0
0.512821
0
0
0
0
0
0
0
0
0
1
0.025641
false
0
0
0
0.153846
0.025641
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
45ebb08783030746a08c4d5ffbb075711c0bdad9
5,162
py
Python
exposan/bwaise/_cfs.py
stetsonrowles/EXPOsan
5baeb30a6c85f923aa33b2a8b21e0e508ad8b2dc
[ "IJG" ]
null
null
null
exposan/bwaise/_cfs.py
stetsonrowles/EXPOsan
5baeb30a6c85f923aa33b2a8b21e0e508ad8b2dc
[ "IJG" ]
null
null
null
exposan/bwaise/_cfs.py
stetsonrowles/EXPOsan
5baeb30a6c85f923aa33b2a8b21e0e508ad8b2dc
[ "IJG" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' EXPOsan: Exposition of sanitation and resource recovery systems This module is developed by: Yalin Li <zoe.yalin.li@gmail.com> This module is under the University of Illinois/NCSA Open Source License. Please refer to https://github.com/QSD-Group/EXPOsan/blob/mai...
38.81203
144
0.700697
714
5,162
4.936975
0.271709
0.045674
0.096454
0.04766
0.45617
0.36227
0.332199
0.279716
0.254184
0.195177
0
0.014977
0.107516
5,162
133
145
38.81203
0.750163
0.281286
0
0
0
0
0.244493
0
0
0
0
0
0
1
0.032258
false
0
0.064516
0
0.129032
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
45ed3d2b1968312b1cd85eba95274d42195b1be0
24,340
py
Python
tests/mongothon/model_test.py
geoffroth/mongothon
5305bdae8e38d09bfe7881f1edc99ac0a2e6b96b
[ "MIT" ]
69
2015-01-03T13:27:45.000Z
2022-03-26T03:50:20.000Z
tests/mongothon/model_test.py
geoffroth/mongothon
5305bdae8e38d09bfe7881f1edc99ac0a2e6b96b
[ "MIT" ]
15
2015-01-22T16:56:44.000Z
2021-05-05T20:17:21.000Z
tests/mongothon/model_test.py
geoffroth/mongothon
5305bdae8e38d09bfe7881f1edc99ac0a2e6b96b
[ "MIT" ]
23
2015-01-03T07:55:36.000Z
2022-03-19T06:42:49.000Z
from mongothon import create_model, create_model_offline from pickle import dumps, loads from unittest import TestCase from mock import Mock, ANY, call, NonCallableMock from mongothon import Document, Schema, NotFoundException, Array from mongothon.validators import one_of from mongothon.scopes import STANDARD_SCOPES f...
36.546547
112
0.634059
2,988
24,340
4.899264
0.101071
0.083202
0.050413
0.036068
0.672587
0.619373
0.598333
0.540064
0.471275
0.426395
0
0.007569
0.234675
24,340
665
113
36.601504
0.778291
0.012161
0
0.5
0
0
0.077214
0.001082
0
0
0
0
0.250923
1
0.184502
false
0.009225
0.01845
0.009225
0.221402
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
45edbcbe6bec4ac4034940c704c1c7a0048c7589
10,729
py
Python
examples/jericho/run_cross.py
kohilin/lgat
ba9fe6b4edd22c33c1c96f3139833cca9d149022
[ "Apache-1.1" ]
null
null
null
examples/jericho/run_cross.py
kohilin/lgat
ba9fe6b4edd22c33c1c96f3139833cca9d149022
[ "Apache-1.1" ]
null
null
null
examples/jericho/run_cross.py
kohilin/lgat
ba9fe6b4edd22c33c1c96f3139833cca9d149022
[ "Apache-1.1" ]
null
null
null
import logging import glob import sys import os import tqdm import torch import numpy as np from torch.utils.tensorboard import SummaryWriter from argparse import ArgumentParser from pfrl.replay_buffers import ReplayBuffer, PrioritizedReplayBuffer from exp import create_md_table_from_dic sys.path.append('../../') f...
38.046099
133
0.622146
1,332
10,729
4.783784
0.192943
0.04661
0.088041
0.030132
0.36833
0.287822
0.231011
0.14752
0.124608
0.091023
0
0.008704
0.250443
10,729
281
134
38.181495
0.783636
0
0
0.130841
0
0
0.126759
0.023581
0
0
0
0
0
1
0.004673
false
0
0.079439
0
0.084112
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
45ee4bb5dcccd9711bd92935d343e2b0fa38d9a3
13,863
py
Python
test/functional/abc-sigops-deactivation.py
danhper/bitcoin-abc
d2b4bfc4d42d054cfebb5d951d23bbe96115f262
[ "MIT" ]
1
2021-09-08T14:26:46.000Z
2021-09-08T14:26:46.000Z
test/functional/abc-sigops-deactivation.py
danhper/bitcoin-abc
d2b4bfc4d42d054cfebb5d951d23bbe96115f262
[ "MIT" ]
1
2020-02-19T10:28:45.000Z
2020-02-19T10:28:45.000Z
test/functional/abc-sigops-deactivation.py
danhper/bitcoin-abc
d2b4bfc4d42d054cfebb5d951d23bbe96115f262
[ "MIT" ]
1
2017-06-30T20:58:07.000Z
2017-06-30T20:58:07.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitcoin Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test deactivation of sigops counting based on abc-schnorrmultisig-activation.py (D3736). """ from test_framewo...
38.508333
100
0.674385
1,761
13,863
5.104486
0.226576
0.013238
0.020803
0.01513
0.346201
0.295472
0.272667
0.245967
0.203916
0.165091
0
0.031051
0.240352
13,863
359
101
38.615599
0.822524
0.200173
0
0.228814
0
0.004237
0.100319
0.009923
0
0
0
0
0.050847
1
0.042373
false
0
0.042373
0.008475
0.110169
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
45f334b5d1edf1cb5b58b58ff7b64e41b4db5ab0
2,912
py
Python
src/peter_sslers/web/models/__init__.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
1
2016-03-31T22:19:19.000Z
2016-03-31T22:19:19.000Z
src/peter_sslers/web/models/__init__.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
src/peter_sslers/web/models/__init__.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
from __future__ import print_function # pypi from sqlalchemy import engine_from_config from sqlalchemy.orm import sessionmaker import zope.sqlalchemy # from sqlalchemy import event # local # import the SqlAlchemy model, which will call `sqlalchemy.orm.configure_mappers` from ... import model # noqa: F401 # ======...
30.333333
133
0.710852
346
2,912
5.783237
0.381503
0.069965
0.049975
0.026987
0.081959
0.050975
0.050975
0.050975
0
0
0
0.002954
0.186126
2,912
95
134
30.652632
0.84135
0.509272
0
0
0
0
0.057014
0.016504
0
0
0
0
0
1
0.181818
false
0
0.151515
0.030303
0.424242
0.060606
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
45f420ab6e1abe94bc0e796084a2bcc846cf45f8
3,279
py
Python
TFQ/barren_plateaus/bp_tfq.py
Project-Fare/quantum_computation
fc182007d0cf7cca170efdbcb442576fde5927ff
[ "MIT" ]
27
2020-04-15T18:45:43.000Z
2022-03-29T10:28:42.000Z
TFQ/barren_plateaus/bp_tfq.py
Project-Fare/quantum_computation
fc182007d0cf7cca170efdbcb442576fde5927ff
[ "MIT" ]
1
2021-08-23T01:59:34.000Z
2021-08-24T05:22:08.000Z
TFQ/barren_plateaus/bp_tfq.py
Project-Fare/quantum_computation
fc182007d0cf7cca170efdbcb442576fde5927ff
[ "MIT" ]
10
2021-01-30T15:20:36.000Z
2022-03-29T10:28:51.000Z
import tensorflow as tf import tensorflow_quantum as tfq import cirq import sympy import numpy as np import matplotlib.pyplot as plt # https://www.tensorflow.org/quantum/tutorials/barren_plateaus#2_generating_random_circuits def generate_circuit(qubits, depth, param): circuit = cirq.Circuit() for qubit in qubi...
33.804124
137
0.643794
505
3,279
4.045545
0.255446
0.019579
0.014684
0.021537
0.303475
0.262359
0.244738
0.229075
0.178169
0.078316
0
0.032107
0.221104
3,279
96
138
34.15625
0.767815
0.026837
0
0.216867
0
0
0.039523
0
0
0
0
0
0
1
0.048193
false
0
0.072289
0
0.168675
0.024096
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
45f440231923aed73dba16db99e48ddfd83961b9
4,160
py
Python
sast_git_leaks/__init__.py
leboncoin/sast-git-leaks
51cb1719a978c354bf2b974071e23977e5b33ad4
[ "Apache-2.0" ]
2
2020-09-07T17:44:05.000Z
2020-11-12T16:25:04.000Z
sast_git_leaks/__init__.py
leboncoin/sast-git-leaks
51cb1719a978c354bf2b974071e23977e5b33ad4
[ "Apache-2.0" ]
null
null
null
sast_git_leaks/__init__.py
leboncoin/sast-git-leaks
51cb1719a978c354bf2b974071e23977e5b33ad4
[ "Apache-2.0" ]
2
2020-11-04T04:51:01.000Z
2020-11-12T16:25:18.000Z
''' Sast Git Leaks Copyright 2020 Leboncoin Licensed under the Apache License Written by Fabien Martinez <fabien.martinez+github@adevinta.com> ''' from importlib import import_module from pathlib import Path import logging from . import utils LOGGER = logging.getLogger(__name__) def load_tool(variables, tool: dic...
34.380165
110
0.607933
534
4,160
4.601124
0.230337
0.05698
0.043956
0.043956
0.21978
0.178266
0.103378
0.071632
0.046398
0
0
0.001663
0.277404
4,160
120
111
34.666667
0.815702
0.052404
0
0.22449
0
0
0.209016
0.036629
0
0
0
0
0
1
0.030612
false
0
0.05102
0
0.193878
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
45f5e7d4cd9a3a5298fc43ed2dff22d7f1fc8381
1,726
py
Python
solution/array/no_29_print_array_clockwise.py
LibertyDream/algorithm_data_structure
5d143d04d001a9b8aef30334881d0af56d8c9850
[ "MIT" ]
null
null
null
solution/array/no_29_print_array_clockwise.py
LibertyDream/algorithm_data_structure
5d143d04d001a9b8aef30334881d0af56d8c9850
[ "MIT" ]
null
null
null
solution/array/no_29_print_array_clockwise.py
LibertyDream/algorithm_data_structure
5d143d04d001a9b8aef30334881d0af56d8c9850
[ "MIT" ]
null
null
null
'''面试题29:顺时针打印矩阵 输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字。 -------------- Example: input: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 output:1,2,3,4,8,12,16,15,14,13,9,5,6,7,11,10 ''' def print_array_clockwise(array): if array is None or len(array) == 0: return rows = len(array) cols = len(array[0]) ...
20.795181
51
0.504635
248
1,726
3.33871
0.241935
0.096618
0.039855
0.009662
0.160628
0.128019
0
0
0
0
0
0.065634
0.364426
1,726
83
52
20.795181
0.689152
0.099073
0
0.115385
0
0
0.009684
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.134615
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
45f7bf6f91ad8c5d361da4852af998cb0b3aec8b
6,175
py
Python
Phase_1/O-19-MarianneTouchie.py
yapanliu/ashrae-ob-database
8c23e3ab5e8ed5589962e067a50c8940d2d31521
[ "MIT" ]
null
null
null
Phase_1/O-19-MarianneTouchie.py
yapanliu/ashrae-ob-database
8c23e3ab5e8ed5589962e067a50c8940d2d31521
[ "MIT" ]
null
null
null
Phase_1/O-19-MarianneTouchie.py
yapanliu/ashrae-ob-database
8c23e3ab5e8ed5589962e067a50c8940d2d31521
[ "MIT" ]
null
null
null
# O-19-Marianne Touchie ''' This code will clean the OB datasets and combine all the cleaned data into one Dataset name: O-19-Marianne Touchie 1. one office building 2. Xuezheng processed outdoor and indoor data 3. use the same room ids as Xuezheng used for window and door status data ''' import os import glob impor...
42.006803
148
0.699757
985
6,175
4.214213
0.192893
0.043363
0.040954
0.061431
0.432667
0.343532
0.294869
0.23151
0.22332
0.204047
0
0.066498
0.167126
6,175
147
149
42.006803
0.740618
0.229474
0
0.050633
0
0.025316
0.253015
0.074289
0
0
0
0
0
1
0
false
0
0.088608
0
0.088608
0.101266
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
45fa6a638f1c5138615a97898d251e2a81508de1
1,018
py
Python
mundo02/exe056.py
victor-nog/python3-exercicios
3996a41ee6cb8125573bf6f8997a69c9764fabae
[ "MIT" ]
null
null
null
mundo02/exe056.py
victor-nog/python3-exercicios
3996a41ee6cb8125573bf6f8997a69c9764fabae
[ "MIT" ]
null
null
null
mundo02/exe056.py
victor-nog/python3-exercicios
3996a41ee6cb8125573bf6f8997a69c9764fabae
[ "MIT" ]
null
null
null
# Desenvolva um programa que leia o nome, idade e sexo de 4 pessoas. No final do programa, mostre: a média de idade do grupo, qual é o nome do homem mais velho e quantas mulheres têm menos de 20 anos. soma_idade = 0 maior_idade_homem = 0 nome_homem_velho = '' total_mulheres = 0 for a in range(1, 5): nome = str(inp...
42.416667
200
0.659136
170
1,018
3.794118
0.376471
0.055814
0.093023
0.04031
0.148837
0.148837
0.148837
0.148837
0.148837
0.148837
0
0.024204
0.22888
1,018
24
201
42.416667
0.797452
0.194499
0
0.181818
0
0.045455
0.294261
0.031746
0
0
0
0
0
1
0
false
0
0
0
0
0.090909
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
45faab4a49b00e86a1aee2eec9ab825b2e80ded9
8,333
py
Python
baselines/rainbow.py
shreyaspadhy/minerl
bf7d58663a05f67f1d0cffdffe270e71c29d6bc2
[ "MIT" ]
2
2019-08-27T20:23:13.000Z
2020-09-23T16:42:41.000Z
baselines/rainbow.py
shreyaspadhy/minerl
bf7d58663a05f67f1d0cffdffe270e71c29d6bc2
[ "MIT" ]
null
null
null
baselines/rainbow.py
shreyaspadhy/minerl
bf7d58663a05f67f1d0cffdffe270e71c29d6bc2
[ "MIT" ]
3
2019-08-27T20:23:18.000Z
2020-06-02T19:47:26.000Z
import os import gym import ray from ray.rllib.agents import dqn from gym.spaces import Discrete, Box from collections import OrderedDict import pdb import numpy as np import copy from gym.wrappers import Monitor from gym.wrappers.monitoring.stats_recorder import StatsRecorder import numpy as np import minerl class ...
34.433884
104
0.572423
961
8,333
4.728408
0.244537
0.041153
0.020026
0.035431
0.31338
0.206646
0.103653
0.097711
0.097711
0.097711
0
0.019465
0.309492
8,333
241
105
34.576763
0.770247
0.087123
0
0.143646
0
0
0.112025
0.031457
0
0
0
0.008299
0.01105
1
0.044199
false
0.038674
0.082873
0.005525
0.171271
0.027624
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
45fd0e973ce23ef7e7b115de87ea88023dfb1f04
2,765
py
Python
rawdns/conn.py
warsocket/RawDNS
0ba9af96568d356dc769ca17c78308f0cfa13121
[ "Unlicense" ]
null
null
null
rawdns/conn.py
warsocket/RawDNS
0ba9af96568d356dc769ca17c78308f0cfa13121
[ "Unlicense" ]
null
null
null
rawdns/conn.py
warsocket/RawDNS
0ba9af96568d356dc769ca17c78308f0cfa13121
[ "Unlicense" ]
null
null
null
import socket import ssl def map4to6(ip): return "::ffff:"+ip def prefixstream(pkt): tcpkt = bytearray() tcpkt.append(len(pkt)//0x100) tcpkt.append(len(pkt)%0x100) tcpkt += pkt return tcpkt def getfromstream(sock): data = sock.recv(0x2) l = data[0] * 0x100 l += data[1] data = sock.recv(l) return data ...
26.084906
146
0.724051
398
2,765
4.982412
0.271357
0.032274
0.027736
0.040343
0.519919
0.449319
0.424609
0.424609
0.386283
0.326778
0
0.029016
0.139964
2,765
105
147
26.333333
0.804878
0.091139
0
0.329114
0
0
0.072655
0.021557
0
0
0.011976
0.009524
0
1
0.101266
false
0.025316
0.025316
0.012658
0.227848
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
45fd8472320d9f428688cc4b303bffd379a6cde3
3,756
py
Python
hubspot3/lines.py
BureauxLocaux/hubspot3
d260d47f2e7f17459cab8000e6007c20588b00cc
[ "MIT" ]
null
null
null
hubspot3/lines.py
BureauxLocaux/hubspot3
d260d47f2e7f17459cab8000e6007c20588b00cc
[ "MIT" ]
null
null
null
hubspot3/lines.py
BureauxLocaux/hubspot3
d260d47f2e7f17459cab8000e6007c20588b00cc
[ "MIT" ]
null
null
null
""" hubspot lines api """ from typing import Dict, Union from hubspot3.base import BaseClient from hubspot3.crm_associations import CRMAssociationsClient from hubspot3.utils import get_log, prettify, ordered_dict LINES_API_VERSION = "1" class LinesClient(BaseClient): """ Line Items API endpoint :see: ht...
35.102804
98
0.600373
447
3,756
4.903803
0.317673
0.047445
0.050182
0.057026
0.245894
0.201186
0.117245
0.117245
0.117245
0.050182
0
0.003368
0.288605
3,756
106
99
35.433962
0.816991
0.296858
0
0.035714
0
0
0.062191
0.015239
0
0
0
0
0
1
0.125
false
0
0.071429
0.017857
0.321429
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
45fdf357b954c9f769d2d5c5156d6f1a9043f455
6,115
py
Python
member.py
glennfeys/Federal-Parliament-Scraper
3d70ffdea502e1d2718833f9207d8c7bea9bf99a
[ "MIT" ]
null
null
null
member.py
glennfeys/Federal-Parliament-Scraper
3d70ffdea502e1d2718833f9207d8c7bea9bf99a
[ "MIT" ]
null
null
null
member.py
glennfeys/Federal-Parliament-Scraper
3d70ffdea502e1d2718833f9207d8c7bea9bf99a
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup from util import normalize_str import json import uuid from os import path, makedirs import hashlib from typing import List from activity import Activity from collections import defaultdict class Member: """ Class representing a single member of the parliament ...
38.949045
212
0.615536
781
6,115
4.674776
0.21895
0.032868
0.032046
0.026294
0.116406
0.070118
0.055327
0.046836
0
0
0
0.003374
0.272935
6,115
156
213
39.198718
0.817814
0.215372
0
0.021739
0
0
0.098635
0.031704
0
0
0
0
0
1
0.152174
false
0
0.119565
0.043478
0.391304
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
45fe02038159d803cb70321ec0c3d65602e5a6f5
1,496
py
Python
quart_restplus/apidoc.py
zihen/quart-restplus
57f5b800803084ec0857d895e123414524de0d76
[ "BSD-3-Clause" ]
1
2018-11-21T21:15:20.000Z
2018-11-21T21:15:20.000Z
quart_restplus/apidoc.py
zihen/quart-restplus
57f5b800803084ec0857d895e123414524de0d76
[ "BSD-3-Clause" ]
null
null
null
quart_restplus/apidoc.py
zihen/quart-restplus
57f5b800803084ec0857d895e123414524de0d76
[ "BSD-3-Clause" ]
1
2019-12-18T09:19:46.000Z
2019-12-18T09:19:46.000Z
# -*- coding: utf-8 -*- from quart import url_for, Blueprint, render_template from quart.blueprints import BlueprintSetupState class Apidoc(Blueprint): """ Allow to know if the blueprint has already been registered until https://github.com/mitsuhiko/quart/pull/1301 is merged """ def __init__(self...
30.530612
93
0.670455
186
1,496
5.11828
0.413978
0.056723
0.054622
0.039916
0.060924
0.060924
0
0
0
0
0
0.004255
0.214572
1,496
48
94
31.166667
0.805957
0.09492
0
0
0
0
0.112828
0
0
0
0
0
0
1
0.137931
false
0
0.068966
0.034483
0.310345
0.137931
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
45feee9c2b4b0812ede7de9a5e89646b87aea79e
4,329
py
Python
ModelTrainerScripts/TransferLearning/sensor_80_to_flowfrontnet_transferlearning.py
isse-augsburg/PermeabilityNets
b4d1346f9934f2fda2f5d671983c822f4f8365f1
[ "MIT" ]
1
2021-09-10T14:57:27.000Z
2021-09-10T14:57:27.000Z
ModelTrainerScripts/TransferLearning/sensor_80_to_flowfrontnet_transferlearning.py
isse-augsburg/PermeabilityNets
b4d1346f9934f2fda2f5d671983c822f4f8365f1
[ "MIT" ]
null
null
null
ModelTrainerScripts/TransferLearning/sensor_80_to_flowfrontnet_transferlearning.py
isse-augsburg/PermeabilityNets
b4d1346f9934f2fda2f5d671983c822f4f8365f1
[ "MIT" ]
null
null
null
from pathlib import Path import torch from torch.optim.lr_scheduler import ExponentialLR import Resources.training as r from Models.erfh5_ConvModel import S80Deconv2ToDrySpotTransferLearning from Pipeline.data_gather import get_filelist_within_folder_blacklisted, \ get_filelist_within_folder from Pipeline.data_loa...
36.686441
111
0.631093
453
4,329
5.690949
0.412804
0.018619
0.032971
0.044608
0.157099
0.092708
0.092708
0.076804
0.046548
0.046548
0
0.026875
0.303765
4,329
117
112
37
0.828467
0.005775
0
0.040816
0
0
0.099572
0.04539
0
0
0
0
0
1
0.010204
false
0
0.122449
0
0.142857
0.081633
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
45ff858490c4564913c4727fd7b20f7fcb42c54b
2,666
py
Python
setup.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
92
2019-08-15T11:03:50.000Z
2022-03-12T01:21:05.000Z
setup.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
3
2020-03-11T08:57:50.000Z
2021-01-06T01:39:47.000Z
setup.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
16
2019-10-12T11:28:53.000Z
2022-03-28T14:04:12.000Z
import os from io import open from os import path from typing import AnyStr, List from setuptools import setup, find_packages package_dir = path.abspath(path.dirname(__file__)) def _process_requirements() -> List[str]: requirements = [] with open(path.join(package_dir, 'requirements.txt'), encoding='utf-8'...
36.027027
120
0.654539
298
2,666
5.741611
0.573826
0.035067
0.043834
0.045587
0.082992
0.030392
0
0
0
0
0
0.012962
0.21868
2,666
73
121
36.520548
0.808449
0
0
0
0
0
0.43886
0.029257
0
0
0
0
0.016393
1
0.032787
false
0
0.081967
0
0.147541
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
34011fd4e30dfaf36527556e6d5af2b43e50dd7d
921
py
Python
kyhg/kyhg/spiders/trans.py
asusfgg/python_study_2022
d119664febf0070761df20bb557d025497f0c9e3
[ "BSD-3-Clause" ]
1
2022-02-23T12:54:49.000Z
2022-02-23T12:54:49.000Z
kyhg/kyhg/spiders/trans.py
asusfgg/python_study_2022
d119664febf0070761df20bb557d025497f0c9e3
[ "BSD-3-Clause" ]
null
null
null
kyhg/kyhg/spiders/trans.py
asusfgg/python_study_2022
d119664febf0070761df20bb557d025497f0c9e3
[ "BSD-3-Clause" ]
null
null
null
''' Author: fgg Date: 2022-05-26 16:16:45 LastEditors: fgg LastEditTime: 2022-05-26 16:45:45 FilePath: \python_study_2022\kyhg\kyhg\spiders\trans.py Description: 学习用文件,主要就是笔记和随笔 Copyright (c) 2022 by fgg/Mechanical Design Studio, All Rights Reserved. ''' import json import tablib import csv # 获取json数据 with open('kyhg...
23.615385
92
0.710098
147
921
4.401361
0.578231
0.030912
0.037094
0.030912
0.068006
0.068006
0.049459
0
0
0
0
0.08867
0.11835
921
38
93
24.236842
0.708128
0.520087
0
0
0
0
0.138824
0.077647
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.076923
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
3402879f5b9078557c31d85789cfebc6acfb8b66
738
py
Python
procedures.py
MagiMas/ArpesBandmass
98785fabcb7977e110532a984d40971b915f09b3
[ "MIT" ]
null
null
null
procedures.py
MagiMas/ArpesBandmass
98785fabcb7977e110532a984d40971b915f09b3
[ "MIT" ]
null
null
null
procedures.py
MagiMas/ArpesBandmass
98785fabcb7977e110532a984d40971b915f09b3
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def build_fitfunction_from_dict(func_dict): # build the def part of the method def_part = "def general_function(x" number_of_parameters = len(func_dict['start-values']) for val,num in zip(func_dict['start-values'], range(number_of_parameters)): ...
30.75
79
0.627371
104
738
4.163462
0.471154
0.080831
0.092379
0.110855
0
0
0
0
0
0
0
0.008757
0.226287
738
24
80
30.75
0.749562
0.04336
0
0
0
0
0.21844
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.15
0.15
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
3402e87f95b35b11be128d5a5a798677b41963c8
4,314
py
Python
utils.py
c-lai/3D-ResNets-PyTorch
488d0d7c4760e60ead4db80fe6f017a8778318ff
[ "MIT" ]
1
2022-03-10T03:42:10.000Z
2022-03-10T03:42:10.000Z
utils.py
c-lai/3D-ResNets-PyTorch
488d0d7c4760e60ead4db80fe6f017a8778318ff
[ "MIT" ]
null
null
null
utils.py
c-lai/3D-ResNets-PyTorch
488d0d7c4760e60ead4db80fe6f017a8778318ff
[ "MIT" ]
null
null
null
import csv import random from functools import partialmethod import torch import numpy as np from sklearn.metrics import precision_recall_fscore_support, \ precision_recall_curve, roc_auc_score, \ balanced_accuracy_score, accuracy_score class AverageMeter(object): """Computes and stores the average a...
27.132075
77
0.617293
548
4,314
4.662409
0.271898
0.037573
0.032877
0.035616
0.288845
0.259491
0.225832
0.223875
0.204305
0.101761
0
0.018495
0.260547
4,314
158
78
27.303797
0.782445
0.085535
0
0.127451
0
0
0.001276
0
0
0
0
0
0.009804
1
0.166667
false
0
0.058824
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
3403a6cc7750699b54ba0bd28fa928661cb61dd3
2,226
py
Python
server/test_app.py
holdenmatt/ExpenseLog
f5ff5a5421a58a827bc9033c0992774be4eda1a8
[ "MIT" ]
null
null
null
server/test_app.py
holdenmatt/ExpenseLog
f5ff5a5421a58a827bc9033c0992774be4eda1a8
[ "MIT" ]
null
null
null
server/test_app.py
holdenmatt/ExpenseLog
f5ff5a5421a58a827bc9033c0992774be4eda1a8
[ "MIT" ]
null
null
null
import json import unittest from nose.tools import * from app import app def check_valid_json(res): eq_(res.headers['Content-Type'], 'application/json') content = json.loads(res.data) return content class AppTests(unittest.TestCase): def setUp(self): app.config['TESTING'] = True app...
28.177215
61
0.561995
282
2,226
4.280142
0.269504
0.052196
0.069594
0.084507
0.525269
0.482187
0.405965
0.34797
0.34797
0.34797
0
0.031052
0.291105
2,226
78
62
28.538462
0.73384
0.050764
0
0.368421
0
0
0.145843
0
0
0
0
0
0
1
0.087719
false
0
0.070175
0
0.22807
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
3406d84467a5acfd453f5f31463ea4e221d44215
719
py
Python
toolset/benchmark/test_types/datarate_type.py
ssgberk/benchmark-tool
43514f302c7a4e81f4236d0ed5dfa8f2a84c8d29
[ "BSD-3-Clause" ]
null
null
null
toolset/benchmark/test_types/datarate_type.py
ssgberk/benchmark-tool
43514f302c7a4e81f4236d0ed5dfa8f2a84c8d29
[ "BSD-3-Clause" ]
null
null
null
toolset/benchmark/test_types/datarate_type.py
ssgberk/benchmark-tool
43514f302c7a4e81f4236d0ed5dfa8f2a84c8d29
[ "BSD-3-Clause" ]
null
null
null
from toolset.benchmark.test_types.framework_test_type import FrameworkTestType class DatarateTestType(FrameworkTestType): def __init__(self, config): kwargs = { 'name': 'datarate' } FrameworkTestType.__init__(self, config, **kwargs) def get_script_name(self): retur...
26.62963
78
0.584145
69
719
5.724638
0.478261
0.177215
0.070886
0.101266
0
0
0
0
0
0
0
0
0.324061
719
26
79
27.653846
0.812757
0
0
0
0
0
0.105702
0
0
0
0
0
0
1
0.136364
false
0
0.045455
0.090909
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
340711cca076c2fc011c0b1bb2f7dfe92c01eb3a
2,150
py
Python
tests/test_pyspark_gateway.py
abronte/PysparkGateway
96f18719e5245259dc8cda48d591127fbb64559e
[ "Apache-2.0" ]
2
2019-04-19T04:28:30.000Z
2021-04-06T21:35:18.000Z
tests/test_pyspark_gateway.py
abronte/PysparkGateway
96f18719e5245259dc8cda48d591127fbb64559e
[ "Apache-2.0" ]
12
2019-06-04T22:51:29.000Z
2021-03-05T17:28:52.000Z
tests/test_pyspark_gateway.py
abronte/PysparkGateway
96f18719e5245259dc8cda48d591127fbb64559e
[ "Apache-2.0" ]
2
2020-09-08T13:56:03.000Z
2020-09-08T14:04:33.000Z
import unittest import time from multiprocessing import Process import os import psutil import requests import pandas from pyspark_gateway import server from pyspark_gateway import PysparkGateway class PysparkGatewayTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.server = Process(t...
28.666667
94
0.630233
264
2,150
5.056818
0.507576
0.041199
0.026966
0.035955
0.041948
0
0
0
0
0
0
0.012415
0.250698
2,150
74
95
29.054054
0.816263
0.074884
0
0.039216
0
0
0.075101
0.013609
0
0
0
0
0.098039
1
0.078431
false
0
0.254902
0.019608
0.372549
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
3407d24ae2fa298896d1f107ed13d34a6563056d
2,705
py
Python
endpoints/candidates.py
stikks/Interview_Calendar
a84028addf198cde73a859295e59884d09468b9b
[ "MIT" ]
null
null
null
endpoints/candidates.py
stikks/Interview_Calendar
a84028addf198cde73a859295e59884d09468b9b
[ "MIT" ]
2
2020-03-12T16:11:48.000Z
2020-03-12T16:11:48.000Z
endpoints/candidates.py
stikks/Interview_Calendar
a84028addf198cde73a859295e59884d09468b9b
[ "MIT" ]
null
null
null
from flask import jsonify import connexion from app import forms, models, InvalidUsage from services import common def all(): """ json response of available interviewers :return: """ url_params = connexion.request.args page = url_params.get('page', 0) limit = url_params.get('limit', 20)...
27.886598
118
0.678743
341
2,705
5.266862
0.272727
0.041759
0.050111
0.053452
0.526726
0.485523
0.485523
0.404232
0.404232
0.360802
0
0.012605
0.208133
2,705
97
119
27.886598
0.825864
0.130129
0
0.444444
0
0
0.129812
0
0
0
0
0
0
1
0.111111
false
0
0.088889
0
0.311111
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
340be8531353ff9d1a25de04481afd75f2788f8a
2,242
py
Python
setup.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
15
2016-10-15T10:15:08.000Z
2021-04-06T08:31:02.000Z
setup.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
7
2016-10-14T08:53:29.000Z
2016-11-09T23:43:31.000Z
setup.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
3
2016-10-13T11:44:46.000Z
2016-10-14T08:58:03.000Z
import re import setuptools def get_version(path="src/ww/__init__.py"): """ Return the version of by with regex intead of importing it""" init_content = open(path, "rt").read() pattern = r"^__version__ = ['\"]([^'\"]*)['\"]" return re.search(pattern, init_content, re.M).group(1) def get_requirement...
32.492754
74
0.604817
252
2,242
5.190476
0.488095
0.030581
0.076453
0.059633
0
0
0
0
0
0
0
0.006455
0.239964
2,242
68
75
32.970588
0.76115
0.02587
0
0
0
0
0.290441
0.039063
0
0
0
0
0
1
0.037037
false
0
0.037037
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
340ed019461635a7a257c5e10586606f2797256a
7,144
py
Python
karp/services/entry_views.py
spraakbanken/karp-backend-v6-tmp
e5b78157bd999df18c188973ae2a337015b6f35d
[ "MIT" ]
1
2021-12-08T15:33:42.000Z
2021-12-08T15:33:42.000Z
karp/services/entry_views.py
spraakbanken/karp-backend-v6-tmp
e5b78157bd999df18c188973ae2a337015b6f35d
[ "MIT" ]
null
null
null
karp/services/entry_views.py
spraakbanken/karp-backend-v6-tmp
e5b78157bd999df18c188973ae2a337015b6f35d
[ "MIT" ]
null
null
null
import typing import pydantic from sb_json_tools import jsondiff from karp.domain import model from karp.utility import unique_id from karp import errors as karp_errors from . import context # pylint: disable=unsubscriptable-object def get_by_id( resource_id: str, entry_uuid: unique_id.UniqueId, ctx: context....
34.512077
113
0.643757
928
7,144
4.675647
0.133621
0.045172
0.016594
0.038719
0.4531
0.325882
0.274026
0.233464
0.219636
0.19705
0
0.010452
0.263438
7,144
206
114
34.679612
0.814139
0.277016
0
0.166667
0
0
0.044066
0.01038
0
0
0
0.004854
0
1
0.041667
false
0
0.058333
0
0.316667
0.016667
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
340ef7f7152b1c8bcf4d6dfbc1ee8ab088dec0b4
1,517
py
Python
src/genie/libs/parser/generic/tests/ShowInventory/cli/equal/golden_output_nxos_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/generic/tests/ShowInventory/cli/equal/golden_output_nxos_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/generic/tests/ShowInventory/cli/equal/golden_output_nxos_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
expected_output = { 'inventory_item_index': { 0: { 'description': 'nexus7000 c7009 (9 slot) chassis ', 'name': 'chassis', 'pid': 'N7K-C7009', 'sn': 'JAF1704ARQG', 'vid': 'V01', }, 1: { 'description': 'supervisor module-2...
28.622642
75
0.382334
128
1,517
4.507813
0.390625
0.07279
0.129983
0.135182
0.407279
0.317158
0
0
0
0
0
0.147232
0.440343
1,517
53
76
28.622642
0.532391
0
0
0.188679
0
0
0.402503
0
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
340fc602bc88626b963a2f00f968c462be4fd52e
7,907
py
Python
harolistener.py
zanedma/haro-listener
ad6566f4a63075c44376e27e1c15a67aecfbbd59
[ "MIT" ]
1
2021-03-22T07:34:47.000Z
2021-03-22T07:34:47.000Z
harolistener.py
zanedma/haro-listener
ad6566f4a63075c44376e27e1c15a67aecfbbd59
[ "MIT" ]
1
2021-12-01T13:19:24.000Z
2021-12-01T13:19:24.000Z
harolistener.py
zanedma/haro-listener
ad6566f4a63075c44376e27e1c15a67aecfbbd59
[ "MIT" ]
null
null
null
from __future__ import print_function import base64 from email.mime.text import MIMEText import os import pickle from time import sleep # project specific imports from utils import getTime, set_params, exitWithError from colors import printGreen, printFail import messageutils from inboxmanager import InboxManager # goo...
39.338308
118
0.636398
930
7,907
5.292473
0.264516
0.036977
0.01219
0.033523
0.125965
0.080861
0.026209
0
0
0
0
0.004129
0.264829
7,907
200
119
39.535
0.842594
0.223473
0
0.123077
0
0
0.185278
0
0
0
0
0
0.007692
1
0.053846
false
0
0.1
0
0.2
0.123077
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
340feb310324e5298778e12f9aadf50691777642
2,155
py
Python
python_developer_tools/cv/utils/tensorboard_demo.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
32
2021-06-21T04:49:48.000Z
2022-03-29T05:46:59.000Z
python_developer_tools/cv/utils/tensorboard_demo.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
1
2021-11-12T03:45:55.000Z
2021-11-12T03:45:55.000Z
python_developer_tools/cv/utils/tensorboard_demo.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
10
2021-06-03T08:05:05.000Z
2021-12-13T03:10:42.000Z
#### tensorboard使用 import atexit import os import os.path as osp import signal import time import torch import torchvision from tensorboardX import SummaryWriter import subprocess import sys import socket def get_host_ip(): """ 查询本机ip地址 :return: """ try: s=socket.socket(socket.AF_INET,soc...
26.9375
118
0.670534
287
2,155
4.860627
0.452962
0.080287
0.047312
0.027957
0.108961
0.073118
0.050179
0
0
0
0
0.024027
0.188863
2,155
79
119
27.278481
0.774027
0.04826
0
0
0
0
0.11893
0.043112
0
0
0
0
0
1
0.056604
false
0
0.207547
0
0.301887
0.037736
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
34113fecaaf5a7c5bd7a7623c8074eb083a1607c
17,731
py
Python
mindmappings/gradSearch/search/search.py
kartik-hegde/mindmappings
e96f2a287da2a93c4af0794a3bab1211bc95ba0a
[ "MIT" ]
17
2021-03-30T07:11:44.000Z
2022-03-08T11:06:39.000Z
mindmappings/gradSearch/search/search.py
kartik-hegde/mindmappings
e96f2a287da2a93c4af0794a3bab1211bc95ba0a
[ "MIT" ]
1
2022-01-12T03:20:31.000Z
2022-01-30T17:24:30.000Z
mindmappings/gradSearch/search/search.py
kartik-hegde/mindmappings
e96f2a287da2a93c4af0794a3bab1211bc95ba0a
[ "MIT" ]
4
2021-05-25T00:30:41.000Z
2022-02-09T13:57:21.000Z
import torch import math import time import csv from torch.autograd import Variable import torch.nn as nn from torch.nn import parameter import torch.nn.functional as F from torch.multiprocessing import Pool, Process, set_start_method, Lock, cpu_count import sys, os import numpy as np from copy import copy, deepcopy f...
48.84573
244
0.604196
2,006
17,731
5.206879
0.19342
0.041551
0.018956
0.025275
0.344375
0.312015
0.277645
0.256008
0.23686
0.202393
0
0.006249
0.268964
17,731
363
245
48.84573
0.799568
0.261181
0
0.290816
0
0.005102
0.048009
0.001784
0
0
0
0
0.005102
1
0.035714
false
0.005102
0.096939
0.02551
0.178571
0.040816
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
3413c44b880bddcf7e0378db06183b833d5bd76e
4,005
py
Python
tests/dsl/test_node_output_usage.py
raztud/dagger
7b394138c139e3b4fdf228e3d34359f1ae6bdd7a
[ "Apache-2.0" ]
9
2021-09-06T14:22:38.000Z
2022-02-08T07:48:39.000Z
tests/dsl/test_node_output_usage.py
raztud/dagger
7b394138c139e3b4fdf228e3d34359f1ae6bdd7a
[ "Apache-2.0" ]
36
2021-09-04T06:20:19.000Z
2021-12-26T17:54:59.000Z
tests/dsl/test_node_output_usage.py
raztud/dagger
7b394138c139e3b4fdf228e3d34359f1ae6bdd7a
[ "Apache-2.0" ]
4
2021-09-06T08:07:19.000Z
2021-10-18T19:13:18.000Z
from typing import Iterable import pytest from dagger.dsl.node_output_key_usage import NodeOutputKeyUsage from dagger.dsl.node_output_partition_usage import NodeOutputPartitionUsage from dagger.dsl.node_output_property_usage import NodeOutputPropertyUsage from dagger.dsl.node_output_reference import NodeOutputReferen...
32.04
190
0.716105
431
4,005
6.324826
0.227378
0.055026
0.071533
0.102715
0.629127
0.485693
0.352164
0.242113
0.242113
0.156273
0
0
0.203745
4,005
124
191
32.298387
0.854813
0.053683
0
0.402174
0
0.01087
0.071882
0.008457
0
0
0
0
0.23913
1
0.097826
false
0
0.097826
0
0.195652
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
34185c06367bb86539eebeda47f7b80a58372f97
1,087
py
Python
Easy/20.ValidParentheses(BruteForce).py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Easy/20.ValidParentheses(BruteForce).py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Easy/20.ValidParentheses(BruteForce).py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" Given a string containing just the characters '(', ')', '{', '}', '[', ']', determine if the input string is valid. An input string is valid if: 1. Open brackets must be closed by the same type of brackets. 2. Open brackets must be closed in the correct order. Note that an empty s...
27.871795
91
0.542778
147
1,087
4.013605
0.517007
0.023729
0.020339
0.061017
0.250847
0.152542
0.152542
0
0
0
0
0.044755
0.342226
1,087
38
92
28.605263
0.78042
0.565777
0
0.125
0
0
0.014184
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.25
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
3418885ff886036c8a295388d13bf8abdea5e1d4
4,405
py
Python
src/pfmsoft/util/collection/misc.py
DonalChilde/Pfm-Util
6be95278e61d3007da193742e089ea2ae7faa190
[ "MIT" ]
1
2021-09-25T22:03:01.000Z
2021-09-25T22:03:01.000Z
src/pfmsoft/util/collection/misc.py
DonalChilde/Pfm-Util
6be95278e61d3007da193742e089ea2ae7faa190
[ "MIT" ]
null
null
null
src/pfmsoft/util/collection/misc.py
DonalChilde/Pfm-Util
6be95278e61d3007da193742e089ea2ae7faa190
[ "MIT" ]
null
null
null
import logging from itertools import chain, islice, repeat from typing import Callable, Iterator, TypeVar, Union #### setting up logger #### logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) T = TypeVar("T") def optional_object( argument: Union[None, T], object_factory: Callable[...,...
34.685039
122
0.631555
603
4,405
4.490879
0.295191
0.044313
0.029911
0.036558
0.134047
0.069793
0.041728
0.008124
0.008124
0.008124
0
0.033222
0.255165
4,405
126
123
34.960317
0.792137
0.630874
0
0
0
0
0.114836
0.017832
0
0
0
0.007937
0
1
0.052632
false
0
0.078947
0
0.210526
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
341aa3e5d70ee31bca27c0594c0a8f6f2bfb805c
8,884
py
Python
qframer/fmainwindow.py
dragondjf/QMarkdowner
fc79c85ca2949fa9ce3b317606ad7bbcd1299960
[ "MIT" ]
115
2015-01-02T12:23:59.000Z
2021-12-22T08:18:04.000Z
qframer/fmainwindow.py
dragondjf/QMarkdowner
fc79c85ca2949fa9ce3b317606ad7bbcd1299960
[ "MIT" ]
1
2017-01-12T09:10:46.000Z
2017-01-12T09:10:46.000Z
qframer/fmainwindow.py
dragondjf/QMarkdowner
fc79c85ca2949fa9ce3b317606ad7bbcd1299960
[ "MIT" ]
69
2015-03-12T07:40:21.000Z
2020-04-04T15:15:55.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from .qt.QtCore import * from .qt.QtGui import * from .ftitlebar import FTitleBar from .fstatusbar import FStatusBar class FMainWindow(QMainWindow): sizeChanged = Signal() def __init__(self): super(FMainWindow, self).__init__() self._initFlags() ...
32.188406
77
0.593426
820
8,884
6.353659
0.236585
0.025336
0.023033
0.016699
0.128599
0.080614
0.059501
0.059501
0.059501
0
0
0.003904
0.307969
8,884
275
78
32.305455
0.843526
0.053354
0
0.228972
0
0
0.004053
0
0
0
0
0
0
1
0.149533
false
0.028037
0.018692
0.018692
0.219626
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
341d97beaea78e6d23a478af81f6df13714d58f6
951
py
Python
msc/__main__.py
sshh12/multi-sys-cli
3de18d0df24f3b1710b5cb49726c23b24f4b5858
[ "MIT" ]
null
null
null
msc/__main__.py
sshh12/multi-sys-cli
3de18d0df24f3b1710b5cb49726c23b24f4b5858
[ "MIT" ]
null
null
null
msc/__main__.py
sshh12/multi-sys-cli
3de18d0df24f3b1710b5cb49726c23b24f4b5858
[ "MIT" ]
null
null
null
from msc.args import parse_args, prompt_string_arg_if_none from msc.pool_cmds import pool_list, pool_create, pool_delete, pool_exec, pool_shell from msc.digitalocean import DigitalOceanPoolProvider def main(): providers = [DigitalOceanPoolProvider()] args = parse_args() if args.sub_cmd == "pool": ...
33.964286
84
0.649842
122
951
4.713115
0.213115
0.083478
0.095652
0.118261
0.354783
0.234783
0.234783
0.234783
0.234783
0.234783
0
0
0.247108
951
28
85
33.964286
0.803073
0
0
0.136364
0
0
0.067227
0
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.181818
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
342261e60df9efc91277a7fb7c47cae5e098de83
18,997
py
Python
encoder_disk_generator.py
Hyvok/Inkscape-rotary-encoder-disk-generator
0c5cca22e75d865b820c3756323e173c54035556
[ "MIT" ]
28
2015-02-26T21:43:56.000Z
2021-12-13T11:26:33.000Z
encoder_disk_generator.py
Hyvok/Inkscape-rotary-encoder-disk-generator
0c5cca22e75d865b820c3756323e173c54035556
[ "MIT" ]
5
2019-11-14T13:32:06.000Z
2021-09-27T19:14:26.000Z
encoder_disk_generator.py
Hyvok/Inkscape-rotary-encoder-disk-generator
0c5cca22e75d865b820c3756323e173c54035556
[ "MIT" ]
4
2016-11-22T21:40:48.000Z
2020-08-18T19:34:56.000Z
#!/usr/bin/env python3 import inkex import math import string from lxml import etree from inkex.transforms import Transform # Function for calculating a point from the origin when you know the distance # and the angle def calculate_point(angle, distance): if (angle < 0 or angle > 360): return None els...
38.848671
79
0.554351
2,145
18,997
4.700699
0.107226
0.060002
0.032232
0.039671
0.596549
0.477636
0.382723
0.339482
0.308043
0.274026
0
0.013922
0.353424
18,997
488
80
38.928279
0.806969
0.07817
0
0.34026
0
0
0.088808
0.009384
0
0
0
0
0
1
0.044156
false
0.012987
0.012987
0
0.088312
0.002597
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
3422a13073f2fbe5d59125ed9250844c05c25fa3
1,756
py
Python
fbadhelpers/helpers/initializers.py
jameslk/fbadhelpers
5d7e6e645b245a5df7a466ec73add66f9aafb9e9
[ "MIT" ]
1
2018-01-11T20:06:36.000Z
2018-01-11T20:06:36.000Z
fbadhelpers/helpers/initializers.py
jameslk/fbadhelpers
5d7e6e645b245a5df7a466ec73add66f9aafb9e9
[ "MIT" ]
null
null
null
fbadhelpers/helpers/initializers.py
jameslk/fbadhelpers
5d7e6e645b245a5df7a466ec73add66f9aafb9e9
[ "MIT" ]
null
null
null
from typing import Iterable, Mapping, Sequence, Callable from urllib.parse import quote from facebookads import FacebookAdsApi from facebookads.adobjects.ad import Ad from facebookads.adobjects.adaccount import AdAccount from facebookads.adobjects.adcreative import AdCreative from facebookads.adobjects.adset import Ad...
31.357143
101
0.730638
203
1,756
6.108374
0.295567
0.08871
0.062097
0.106452
0.427419
0.427419
0.427419
0.427419
0.427419
0.427419
0
0
0.196469
1,756
55
102
31.927273
0.878809
0.037016
0
0.521739
0
0
0.004739
0
0
0
0
0
0
1
0.065217
false
0
0.23913
0.065217
0.369565
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
342d58d1ad9286b4fe5d8adc6492bb006a2ce91d
2,943
py
Python
src/ipaparser/_code/matcher.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
src/ipaparser/_code/matcher.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
src/ipaparser/_code/matcher.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Any, Callable, Generic, Iterable, Optional, TypeVar from .strings import StringPosition, StringPositions, to_string __all__ = [ 'Match', 'Matcher', 'MatchOption', ] T = TypeVar('T') @dataclass(frozen=True) class MatchOption(Generic[T]): data: T ...
37.730769
120
0.649677
334
2,943
5.51497
0.224551
0.032573
0.043431
0.026059
0.178067
0.065147
0.065147
0.065147
0.065147
0.065147
0
0.002705
0.246347
2,943
77
121
38.220779
0.827773
0
0
0.095238
0
0
0.008155
0
0
0
0
0
0.015873
1
0.079365
false
0
0.047619
0.015873
0.380952
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
342d9ca5a0ea976bd56c381378be9fbabc55becb
4,311
py
Python
audible_processor/monitor/file_processor.py
killermonk/audible_processor
7738ba927818d15b702ff49b2fdf89433e477021
[ "MIT" ]
1
2022-02-18T13:23:39.000Z
2022-02-18T13:23:39.000Z
audible_processor/monitor/file_processor.py
killermonk/audible_processor
7738ba927818d15b702ff49b2fdf89433e477021
[ "MIT" ]
null
null
null
audible_processor/monitor/file_processor.py
killermonk/audible_processor
7738ba927818d15b702ff49b2fdf89433e477021
[ "MIT" ]
null
null
null
import configparser import logging import multiprocessing as mp import os.path from contextlib import contextmanager from datetime import datetime from enum import Enum from parser.parser import Parser, ParserConfig from queue import Empty from typing import Any, Dict from monitor.config import DaemonConfig STATE_FIL...
33.679688
105
0.635583
523
4,311
5.059273
0.277247
0.021164
0.022676
0.024943
0.088435
0.079365
0
0
0
0
0
0.002488
0.254233
4,311
127
106
33.944882
0.820529
0.034795
0
0.1
0
0
0.043563
0.005354
0
0
0
0
0
1
0.12
false
0
0.11
0.02
0.36
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
34307682e8bac87302038a9a06f371acc7dd9b50
12,912
py
Python
pcwg/gui/date_pick.py
lcameron05/PCWG
8ae8ea7d644aa5bec0d1651101d83d8f17994f4b
[ "MIT" ]
14
2015-01-15T12:40:51.000Z
2019-06-14T16:10:08.000Z
pcwg/gui/date_pick.py
lzhiwen3090/PCWG
795e3ea267c7b87187dce04721c91a9d9c7999a7
[ "MIT" ]
121
2015-01-06T11:31:25.000Z
2018-05-29T21:13:23.000Z
pcwg/gui/date_pick.py
lzhiwen3090/PCWG
795e3ea267c7b87187dce04721c91a9d9c7999a7
[ "MIT" ]
26
2015-01-15T12:41:09.000Z
2019-04-11T14:45:32.000Z
#based on code by : Camilo Olarte|colarte@telesat.com.co|Sept.2003 import sys import string import calendar import Tkinter as tk import time import datetime from dateutil.parser import parse from dateutil.relativedelta import relativedelta from tk_simple_dialog import Dialog from ..core.status import Status class ...
34.803235
136
0.563197
1,589
12,912
4.378855
0.135305
0.048865
0.066686
0.024432
0.504886
0.44553
0.365479
0.28169
0.212992
0.172895
0
0.017349
0.33039
12,912
371
137
34.803235
0.787416
0.007125
0
0.258687
0
0
0.027071
0
0
0
0
0
0
1
0.088803
false
0
0.03861
0.003861
0.158301
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
34317faacca728036cc0c949a6524177d35c7254
3,929
py
Python
tests/test_blog.py
octopusinvitro/flask-tutorial
8a8173cdfb0f854a1462d5bc3f251e6552a531a6
[ "MIT" ]
null
null
null
tests/test_blog.py
octopusinvitro/flask-tutorial
8a8173cdfb0f854a1462d5bc3f251e6552a531a6
[ "MIT" ]
null
null
null
tests/test_blog.py
octopusinvitro/flask-tutorial
8a8173cdfb0f854a1462d5bc3f251e6552a531a6
[ "MIT" ]
null
null
null
import pytest from flaskr import db def test_index_shows_auth_links_when_not_logged(client, app): response = client.get('/') assert b'Log In' in response.data assert b'Register' in response.data def test_index_shows_content_when_logged(client, auth): auth.login() response = client.get('/') a...
28.678832
94
0.683125
552
3,929
4.646739
0.163043
0.049123
0.076413
0.098635
0.728265
0.649513
0.568811
0.455361
0.430799
0.357895
0
0.013154
0.167982
3,929
136
95
28.889706
0.77149
0
0
0.474227
0
0
0.139221
0
0
0
0
0
0.268041
1
0.195876
false
0
0.020619
0
0.216495
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
3431d10ba196cb41783bcea2077798fd2c896622
1,946
py
Python
hadoop/openpayments/build_test_data.py
shubags/MSAN694
9b2594f7209d9d1d7792fc596ea46d0f90f27525
[ "Apache-2.0" ]
null
null
null
hadoop/openpayments/build_test_data.py
shubags/MSAN694
9b2594f7209d9d1d7792fc596ea46d0f90f27525
[ "Apache-2.0" ]
null
null
null
hadoop/openpayments/build_test_data.py
shubags/MSAN694
9b2594f7209d9d1d7792fc596ea46d0f90f27525
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # A simple script to save NUM lines from the huge dataset into a smaller file for simple tests # # Usage: build_test_data.py [outfile] from __future__ import print_function import argparse import random import sys __author__ = 'marco' FILE_NAME = 'data/OPPR_ALL_DTL_GNRL_12192014.csv' NUM = 10...
32.433333
94
0.573484
231
1,946
4.658009
0.47619
0.022305
0.047398
0.031599
0.048327
0.048327
0.048327
0
0
0
0
0.022104
0.325797
1,946
59
95
32.983051
0.798018
0.097636
0
0.047619
0
0
0.164
0.02
0
0
0
0
0
1
0.071429
false
0
0.095238
0.02381
0.214286
0.095238
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
343a85de1d3e11277cfecd3f880ab9548f9d2217
635
py
Python
Others/hard/Dijkstra.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
1
2021-07-05T16:32:14.000Z
2021-07-05T16:32:14.000Z
Others/hard/Dijkstra.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
null
null
null
Others/hard/Dijkstra.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
1
2021-05-14T15:40:09.000Z
2021-05-14T15:40:09.000Z
import heapq def dijkstrasAlgorithm(start, edges): dist = [float('inf') for _ in range(len(edges))] dist[start] = 0 queue = [(dist[start], start)] while queue: current_best_dist, current_node = heapq.heappop(queue) if current_best_dist != dist[current_node]: continue ...
27.608696
62
0.587402
85
635
4.235294
0.329412
0.152778
0.166667
0.1
0.161111
0.161111
0.161111
0
0
0
0
0.008869
0.289764
635
22
63
28.863636
0.789357
0
0
0
0
0
0.009449
0
0
0
0
0
0
1
0.066667
false
0
0.066667
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
343f19c9ce6d15621044a8ba4f49367413bf9126
762
py
Python
neo_finrl/ccxt/preprocess_ccxt.py
chandra168/NeoFinRL
c2b9da5918ac2905bc31c42f5e17a45159afd47f
[ "MIT" ]
null
null
null
neo_finrl/ccxt/preprocess_ccxt.py
chandra168/NeoFinRL
c2b9da5918ac2905bc31c42f5e17a45159afd47f
[ "MIT" ]
null
null
null
neo_finrl/ccxt/preprocess_ccxt.py
chandra168/NeoFinRL
c2b9da5918ac2905bc31c42f5e17a45159afd47f
[ "MIT" ]
null
null
null
from finrl.config import config from finrl.preprocessing.preprocessors import FeatureEngineer import pandas as pd import numpy as np def preprocess_btc(df): df = df.rename(columns={'time':'date'}) df.insert(loc=1, column='tic',value='BTC/USDT') df = df[['date','tic','open','high','low','close','volume']] ...
33.130435
79
0.612861
90
762
5.044444
0.633333
0.026432
0
0
0
0
0
0
0
0
0
0.010772
0.269029
762
22
80
34.636364
0.804309
0
0
0
0
0
0.062992
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.333333
0.055556
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
344044da2a53c80838fd73ef0645f11d64dbe6c3
1,807
py
Python
tests/session/drivers/testsessioncookie.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
4
2017-09-07T13:39:50.000Z
2018-05-31T16:14:50.000Z
tests/session/drivers/testsessioncookie.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
103
2017-03-19T15:58:21.000Z
2018-07-11T20:36:17.000Z
tests/session/drivers/testsessioncookie.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
2
2017-10-14T15:20:11.000Z
2018-04-20T09:55:44.000Z
from tests.testcase import TestCase from edmunds.globals import session from flask.sessions import SecureCookieSession from werkzeug.local import LocalProxy class TestSessionCookie(TestCase): """ Test the SessionCookie """ def test_session_cookie(self): """ Test the file """ ...
28.234375
86
0.524073
179
1,807
5.106145
0.335196
0.109409
0.04814
0.04267
0.196937
0.140044
0.140044
0.083151
0
0
0
0.006944
0.362479
1,807
63
87
28.68254
0.786458
0.040952
0
0.15
0
0
0.178001
0.021881
0
0
0
0
0.25
1
0.025
false
0
0.125
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
344249726263f6cdedfbf9989e61be0b224dbb96
1,097
py
Python
pymatflow/scripts/xyz-build-supercell.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
6
2020-03-06T16:13:08.000Z
2022-03-09T07:53:34.000Z
pymatflow/scripts/xyz-build-supercell.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-10-02T02:23:08.000Z
2021-11-08T13:29:37.000Z
pymatflow/scripts/xyz-build-supercell.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-07-10T16:28:14.000Z
2021-07-10T16:28:14.000Z
#!/usr/bin/env python # _*_ coding: utf-8 _*_ import argparse from pymatflow.base.xyz import base_xyz from pymatflow.structure.crystal import crystal """ usage: xyz-build-supercell.py -i input.xyz -o output.xyz -n n1 n2 n3 n1, n2, n3 are the three repeated number in the three direct of three ...
28.128205
83
0.646308
145
1,097
4.675862
0.406897
0.051622
0.075221
0.047198
0.070796
0
0
0
0
0
0
0.008178
0.21969
1,097
38
84
28.868421
0.783879
0.038286
0
0
0
0
0.135231
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
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
344a6c57396ca61d68d37dfcbcf6e3f06084c514
18,268
py
Python
Ui_Menu.py
atticus-lv/Little-function
adeefedc910fd937f39f2b8bb8e2df9920ef8c2b
[ "BSD-3-Clause" ]
4
2020-07-01T14:04:07.000Z
2020-07-14T15:07:40.000Z
Ui_Menu.py
atticus-lv/Little-function
adeefedc910fd937f39f2b8bb8e2df9920ef8c2b
[ "BSD-3-Clause" ]
null
null
null
Ui_Menu.py
atticus-lv/Little-function
adeefedc910fd937f39f2b8bb8e2df9920ef8c2b
[ "BSD-3-Clause" ]
1
2020-12-11T07:46:15.000Z
2020-12-11T07:46:15.000Z
#-*- coding =utf-8 -*- import bpy from bpy.props import * from bpy.types import Menu,Panel,AddonPreferences from .Ops_Light import getlight # shift a menu def add_cam_menu(self, context): # add menu if context.mode == 'OBJECT': self.layout.operator("object.add_view_camera",icon='VIEW_CAMERA',text = "A...
33.580882
120
0.625137
2,395
18,268
4.607516
0.133194
0.045945
0.033711
0.036701
0.569733
0.476846
0.421658
0.331128
0.283371
0.228908
0
0.007702
0.225257
18,268
543
121
33.642726
0.771921
0.066017
0
0.423181
0
0.002695
0.195614
0.026223
0
0
0
0
0
1
0.06469
false
0.005391
0.010782
0.005391
0.12938
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
344bf5eb081c017555d5742dacc0a86867177bca
391
py
Python
fields/image-proc/raw/raw-1-drawImage.py
animatedb/codeplayfield
3ce164d9402581dcc18555743945c4ea57f3be48
[ "MIT" ]
null
null
null
fields/image-proc/raw/raw-1-drawImage.py
animatedb/codeplayfield
3ce164d9402581dcc18555743945c4ea57f3be48
[ "MIT" ]
null
null
null
fields/image-proc/raw/raw-1-drawImage.py
animatedb/codeplayfield
3ce164d9402581dcc18555743945c4ea57f3be48
[ "MIT" ]
null
null
null
# Load a library that allows drawing and images. import cv2 # Save image in set directory # Read RGB image # download image from cleanpng.com img = cv2.imread('1-pets.jpg') # Output img with window name as 'image' cv2.imshow('image', img) # Maintain output window util user presses a key cv2.waitKey(0) ...
20.578947
49
0.713555
58
391
4.810345
0.775862
0
0
0
0
0
0
0
0
0
0
0.022581
0.207161
391
18
50
21.722222
0.877419
0.631714
0
0
0
0
0.112782
0
0
0
0
0
0
1
0
false
0
0.2
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
3450537bbf39749b02ea29c68a2890f5f1285284
2,438
py
Python
peepo/tests/network_modification_test.py
hayoc/peepo_prototype
57b4a42fd6b769cbd17a3449a49a013fc5d75455
[ "MIT" ]
2
2019-03-04T21:12:21.000Z
2021-03-30T00:35:50.000Z
peepo/tests/network_modification_test.py
hayoc/peepo
b15fd18d0f618e1e24eadc97c72fde62039ddafb
[ "MIT" ]
null
null
null
peepo/tests/network_modification_test.py
hayoc/peepo
b15fd18d0f618e1e24eadc97c72fde62039ddafb
[ "MIT" ]
null
null
null
from pgmpy.factors.discrete import TabularCPD from pgmpy.inference import VariableElimination from pgmpy.models import BayesianModel """ CREATE NEW MODEL THEN INFER AFTER WE WILL MODIFY THE MODEL AND INFER AGAIN I'm simply creating the same network used here in this tutorial, except that I'm creating the network part...
36.38806
118
0.632075
363
2,438
4.176309
0.360882
0.039578
0.034301
0.050132
0.075198
0
0
0
0
0
0
0.039767
0.226415
2,438
66
119
36.939394
0.764051
0.2137
0
0.176471
0
0
0.04311
0
0
0
0
0
0
1
0
false
0
0.088235
0
0.088235
0.117647
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
3451491f281657225eb12e397ca0c1b32618813b
10,025
py
Python
src/baldor/transform.py
gavanderhoorn/baldor
7844f56bccbfb63b255c21e93a255726847509ee
[ "BSD-3-Clause" ]
1
2021-11-06T10:32:59.000Z
2021-11-06T10:32:59.000Z
src/baldor/transform.py
Dream360/baldor
08c29ba226687a81b3de15085c80e9fc0238c287
[ "BSD-3-Clause" ]
null
null
null
src/baldor/transform.py
Dream360/baldor
08c29ba226687a81b3de15085c80e9fc0238c287
[ "BSD-3-Clause" ]
1
2021-11-06T10:32:54.000Z
2021-11-06T10:32:54.000Z
#!/usr/bin/env python """ Homogeneous Transformation Matrices """ import math import numpy as np # Local modules import baldor as br def are_equal(T1, T2, rtol=1e-5, atol=1e-8): """ Returns True if two homogeneous transformation are equal within a tolerance. Parameters ---------- T1: array_like First i...
26.662234
79
0.59601
1,635
10,025
3.609174
0.171254
0.00644
0.013557
0.01271
0.351296
0.291645
0.254533
0.23979
0.212506
0.149466
0
0.052625
0.23611
10,025
375
80
26.733333
0.717942
0.492269
0
0.14094
0
0
0.021776
0
0
0
0
0
0
1
0.053691
false
0
0.020134
0
0.127517
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
3457d8aedd18211653e91995d82cf79ab5d2e314
4,419
py
Python
codes/scripts/generate_mod_LR_bic.py
yuanjunchai/IKC
2a846cf1194cd9bace08973d55ecd8fd3179fe48
[ "Apache-2.0" ]
192
2019-09-03T14:52:10.000Z
2022-03-18T14:07:06.000Z
codes/scripts/generate_mod_LR_bic.py
sczhangjie/IKC
2a846cf1194cd9bace08973d55ecd8fd3179fe48
[ "Apache-2.0" ]
25
2019-09-10T01:42:07.000Z
2022-01-11T02:14:27.000Z
codes/scripts/generate_mod_LR_bic.py
sczhangjie/IKC
2a846cf1194cd9bace08973d55ecd8fd3179fe48
[ "Apache-2.0" ]
35
2019-09-17T07:20:27.000Z
2022-03-23T00:17:06.000Z
import os import sys import cv2 import numpy as np import torch try: sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from data.util import imresize_np from utils import util except ImportError: pass def generate_mod_LR_bic(): # set parameters up_scale = 4 mod_...
37.449153
123
0.632722
650
4,419
4.149231
0.255385
0.066741
0.063033
0.07564
0.340007
0.166852
0.079347
0.079347
0.079347
0.030404
0
0.020498
0.227201
4,419
117
124
37.769231
0.769253
0.107264
0
0.05814
0
0
0.090678
0.030311
0
0
0
0
0
1
0.011628
false
0.011628
0.093023
0
0.104651
0.116279
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
3458e78a61d0530976d41cc1ee35cbe952501111
1,812
py
Python
project_template/linegen.py
warrencrowell/OptimusRhyme
dca3a78e868b5cec01c1af708dcfb942c0702bc1
[ "MIT" ]
null
null
null
project_template/linegen.py
warrencrowell/OptimusRhyme
dca3a78e868b5cec01c1af708dcfb942c0702bc1
[ "MIT" ]
null
null
null
project_template/linegen.py
warrencrowell/OptimusRhyme
dca3a78e868b5cec01c1af708dcfb942c0702bc1
[ "MIT" ]
null
null
null
import nltk import random EXPLICIT_WORDS = ['shit', 'fuck', 'nigg', 'masturb', 'bitch'] def is_explicit(line): for word in line: for e in EXPLICIT_WORDS: if e in word.lower(): return True return False def get_random_line(corpus, last_line = None): if os.path.isfile('ly...
31.789474
64
0.546909
242
1,812
3.938017
0.256198
0.066107
0.044071
0.04617
0.43022
0.381952
0.381952
0.381952
0.381952
0.381952
0
0.010076
0.342715
1,812
56
65
32.357143
0.790092
0
0
0.538462
0
0
0.056291
0.019868
0
0
0
0
0
1
0.057692
false
0
0.038462
0
0.173077
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
345a42252196ac144c22ac0ef54c695e0268f0d1
1,596
py
Python
Functions/readFile.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
1
2018-12-10T06:06:54.000Z
2018-12-10T06:06:54.000Z
Functions/readFile.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
null
null
null
Functions/readFile.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- encoding="UTF-8" -*- #Import Package import sys sys.path.append("..") import re from tkinter.messagebox import * import parameters #Dont use from parameters import NetlistPath, it Will be import ealier than Changed from parameters import regExpExtend from parameters import regExpCommandEnd ...
23.820896
90
0.652882
187
1,596
5.572193
0.433155
0.038388
0.053743
0.03263
0
0
0
0
0
0
0
0.00753
0.16792
1,596
66
91
24.181818
0.777108
0.116541
0
0.25
0
0
0.197575
0.052782
0
0
0
0
0
1
0.022727
false
0
0.159091
0
0.181818
0.204545
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
345d873ec822bd85ba44e8e911804060c0abd48f
4,221
py
Python
es/plot.py
DanielTakeshi/rl_algorithms
7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b
[ "MIT" ]
150
2017-02-13T01:27:59.000Z
2021-12-11T01:06:28.000Z
es/plot.py
DanielTakeshi/Reinforcement_Learning_Algorithms
7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b
[ "MIT" ]
6
2017-01-17T22:44:24.000Z
2017-12-21T15:05:32.000Z
es/plot.py
DanielTakeshi/Reinforcement_Learning_Algorithms
7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b
[ "MIT" ]
36
2017-07-22T12:29:17.000Z
2020-12-04T12:40:33.000Z
""" To plot this, you need to provide the experiment directory plus an output stem. I use this for InvertedPendulum: python plot.py outputs/InvertedPendulum-v1 --envname InvertedPendulum-v1 \ --out figures/InvertedPendulum-v1 (c) May 2017 by Daniel Seita """ import argparse import matplotlib matplotl...
36.076923
86
0.628761
551
4,221
4.725953
0.433757
0.024962
0.015361
0.023041
0.164363
0.146697
0.146697
0.122888
0.122888
0.122888
0
0.01737
0.2362
4,221
116
87
36.387931
0.790323
0.201137
0
0.125
0
0
0.169777
0.006424
0
0
0
0
0
1
0.0125
false
0
0.125
0
0.1375
0.025
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
345e34a7d6bf14a08366aa0aaaefde67070a65d9
2,810
py
Python
setup.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
64
2021-11-09T08:49:02.000Z
2022-03-30T17:33:54.000Z
setup.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
null
null
null
setup.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
5
2021-11-14T18:56:42.000Z
2022-03-18T16:22:31.000Z
# coding=utf-8 # Copyright 2022 The Balloon Learning Environment Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
25.315315
76
0.693594
370
2,810
5.12973
0.505405
0.031612
0.041096
0.01686
0.035827
0.035827
0
0
0
0
0
0.012747
0.190391
2,810
110
77
25.545455
0.821538
0.348754
0
0.057143
0
0
0.221664
0.072027
0
0
0
0
0
1
0.042857
false
0
0.071429
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
345ea33ffbb6fea11b6553aa914a02712c24fb98
6,518
py
Python
FSM.py
wzx19980321/CPO_lab4
c80701808e02df6042a98dd53da182f36b86b54b
[ "Apache-2.0" ]
null
null
null
FSM.py
wzx19980321/CPO_lab4
c80701808e02df6042a98dd53da182f36b86b54b
[ "Apache-2.0" ]
null
null
null
FSM.py
wzx19980321/CPO_lab4
c80701808e02df6042a98dd53da182f36b86b54b
[ "Apache-2.0" ]
null
null
null
import collections import time from functools import wraps from typing import Any, Callable, Tuple, Union, List class StateMachine(object): """ 'Design a representation of the finite state machine using decorators to specify state machine handlers.' """ def __init__(self, T: int, HALT: int...
37.676301
110
0.473305
748
6,518
4.02139
0.137701
0.072141
0.062168
0.047872
0.502327
0.461436
0.449468
0.441489
0.429189
0.429189
0
0.007928
0.419454
6,518
172
111
37.895349
0.786998
0.064284
0
0.484615
0
0
0.007406
0
0
0
0
0
0
1
0.107692
false
0
0.030769
0
0.207692
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
34676472975149b91d7f84d84ea4b4caf330a0c3
5,514
py
Python
django_cache_dependencies/__init__.py
imposeren/cache-dependencies
aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2
[ "BSD-3-Clause" ]
null
null
null
django_cache_dependencies/__init__.py
imposeren/cache-dependencies
aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2
[ "BSD-3-Clause" ]
null
null
null
django_cache_dependencies/__init__.py
imposeren/cache-dependencies
aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2
[ "BSD-3-Clause" ]
2
2020-03-05T14:36:44.000Z
2021-05-04T03:55:42.000Z
from __future__ import absolute_import, unicode_literals import sys import hashlib from threading import local import django.core.cache from django.conf import settings from django.core import signals as core_signals from django.core.cache import DEFAULT_CACHE_ALIAS from django.db.models import signals as model_signal...
30.804469
100
0.662677
618
5,514
5.684466
0.313916
0.037005
0.038713
0.039283
0.099915
0.076288
0.059209
0.059209
0.034728
0.034728
0
0.00288
0.244469
5,514
178
101
30.977528
0.840374
0.11226
0
0.109244
0
0
0.022799
0
0
0
0
0
0
1
0.142857
false
0
0.168067
0.07563
0.428571
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
346c3a44b5316fb717678c261d0a73998057d413
4,265
py
Python
gammapy/astro/darkmatter/utils.py
mealworm/gammapy
a838b2ca347dd6321f8da4e4097a33150d7b9be6
[ "BSD-3-Clause" ]
null
null
null
gammapy/astro/darkmatter/utils.py
mealworm/gammapy
a838b2ca347dd6321f8da4e4097a33150d7b9be6
[ "BSD-3-Clause" ]
null
null
null
gammapy/astro/darkmatter/utils.py
mealworm/gammapy
a838b2ca347dd6321f8da4e4097a33150d7b9be6
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Utilities to compute J-factor maps """ from __future__ import absolute_import, division, print_function, unicode_literals from ...cube import make_separation_map from ...maps import WcsNDMap import astropy.units as u import numpy as np import copy __...
29.825175
82
0.6068
528
4,265
4.744318
0.337121
0.027944
0.021956
0.017964
0.019162
0.019162
0.019162
0
0
0
0
0.009364
0.273857
4,265
142
83
30.035211
0.799483
0.405862
0
0.098361
0
0
0.018617
0
0
0
0
0.007042
0
1
0.131148
false
0
0.098361
0
0.295082
0.016393
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
346c986b22a404321ea50b505eb5fc91f610d540
2,427
py
Python
Events/events.py
DerKeksTV/Keks-Bot
de07281c5bb15e0d578d27a564420a8ba61f6db4
[ "MIT" ]
3
2020-11-25T20:35:17.000Z
2021-02-09T16:28:58.000Z
Events/events.py
DerKeksTV/Keks-Bot
de07281c5bb15e0d578d27a564420a8ba61f6db4
[ "MIT" ]
null
null
null
Events/events.py
DerKeksTV/Keks-Bot
de07281c5bb15e0d578d27a564420a8ba61f6db4
[ "MIT" ]
null
null
null
import discord from config import log from config import config import Webhook.log_send as ch_log from Moderating.Perms import role as perms def message_events(bot): @bot.event async def on_ready(): log.ready(bot) await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.w...
28.552941
142
0.668315
324
2,427
4.814815
0.20679
0.071795
0.116667
0.14359
0.428846
0.38141
0.177564
0.098718
0.051282
0
0
0
0.236918
2,427
84
143
28.892857
0.842333
0
0
0.25
0
0
0.022662
0
0
0
0
0
0
1
0.014706
false
0
0.073529
0
0.132353
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
346cfe4c3d3044bc5050dc5d28596facaf4673fd
740
py
Python
fme_server_lib/FileLogger/Logger.py
bcgov/fme
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
[ "Apache-2.0" ]
null
null
null
fme_server_lib/FileLogger/Logger.py
bcgov/fme
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
[ "Apache-2.0" ]
2
2021-07-26T20:33:16.000Z
2021-07-26T20:33:19.000Z
fme_server_lib/FileLogger/Logger.py
bcgov/fme
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
[ "Apache-2.0" ]
null
null
null
import os class AppLogger: def __init__(self, name, save_file=True, clear=False): self.file_name = name self.save_file = save_file if self.save_file and clear: if os.path.exists(name): os.remove(name) def write_line(self, obj): # text = None ...
26.428571
58
0.502703
95
740
3.747368
0.421053
0.11236
0.101124
0.078652
0
0
0
0
0
0
0
0
0.378378
740
27
59
27.407407
0.773913
0.117568
0
0
0
0
0.010819
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.222222
0.055556
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
346f2ad7b27dc11410aa8b7a9e1b78989914849c
3,162
py
Python
compatibility-verifier/sample-test-suite/config/dataGenerator.py
WangCHX/pinot
ae02ecefa4b4367fc3547fa5bfb718d63b45b477
[ "Apache-2.0" ]
2,144
2015-06-10T16:02:11.000Z
2018-11-08T07:59:13.000Z
compatibility-verifier/sample-test-suite/config/dataGenerator.py
PrachiKhobragade/pinot
f200ec515630442f95f6fc55f568b00f7cb04f4f
[ "Apache-2.0" ]
1,894
2015-06-11T05:17:48.000Z
2018-11-09T19:22:27.000Z
compatibility-verifier/sample-test-suite/config/dataGenerator.py
PrachiKhobragade/pinot
f200ec515630442f95f6fc55f568b00f7cb04f4f
[ "Apache-2.0" ]
418
2015-06-10T15:53:06.000Z
2018-11-09T00:05:06.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
33.638298
98
0.684377
400
3,162
5.2025
0.425
0.052859
0.028832
0.046132
0.265738
0.195099
0.172994
0.139356
0.139356
0.139356
0
0.041989
0.224225
3,162
93
99
34
0.80636
0.310879
0
0.146341
0
0
0.05726
0.027607
0
0
0
0
0
1
0.073171
false
0
0.073171
0
0.243902
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
346f5766c7d34d7d2a361557c6ee59f18fb84c1f
2,969
py
Python
lib/datasets/factory.py
amitfishy/py_faster_rcnn
75c340f134ccb1d0efad68d12b6c86c1d6ae7593
[ "BSD-2-Clause" ]
null
null
null
lib/datasets/factory.py
amitfishy/py_faster_rcnn
75c340f134ccb1d0efad68d12b6c86c1d6ae7593
[ "BSD-2-Clause" ]
null
null
null
lib/datasets/factory.py
amitfishy/py_faster_rcnn
75c340f134ccb1d0efad68d12b6c86c1d6ae7593
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Factory method for easily getting imdbs by name.""" from pascal_voc...
39.586667
127
0.655776
383
2,969
4.869452
0.315927
0.048257
0.062735
0.071314
0.382306
0.292761
0.261662
0.238606
0.202145
0.202145
0
0.017756
0.165376
2,969
74
128
40.121622
0.734867
0.676659
0
0.190476
0
0
0.023464
0
0
0
0
0
0
1
0.142857
false
0
0.190476
0
0.47619
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
346ff732f27704ee6121d33b77e42e3601c9c09f
4,668
py
Python
src/gitlab/Gitlab.py
arrnorets/pylibs
191c75150b23b5a55b713d152b49c8e0e52a0f24
[ "Apache-2.0" ]
null
null
null
src/gitlab/Gitlab.py
arrnorets/pylibs
191c75150b23b5a55b713d152b49c8e0e52a0f24
[ "Apache-2.0" ]
null
null
null
src/gitlab/Gitlab.py
arrnorets/pylibs
191c75150b23b5a55b713d152b49c8e0e52a0f24
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # An object that stores information about project in Gitlab. It uses API v4. from configparser import ConfigParser import json import requests import shutil import sys import urllib.parse import zipfile class GitlabProjectMeta(): def __init__(self, *args, **kwargs)...
40.591304
178
0.588903
490
4,668
5.557143
0.3
0.026441
0.092912
0.099155
0.482556
0.463092
0.399192
0.358061
0.358061
0.329049
0
0.00908
0.292202
4,668
114
179
40.947368
0.815073
0.1009
0
0.345679
0
0.074074
0.332935
0.200191
0
0
0
0
0
1
0.074074
false
0
0.08642
0.012346
0.283951
0.185185
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