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
ed42fcb801fa38e9585e0b02fe9fd71eff57af66
1,863
py
Python
histogram.py
ccfelius/queueing
c38bd2fe230e52d6166a94449cec28f82e245ec2
[ "MIT" ]
1
2020-12-10T17:36:40.000Z
2020-12-10T17:36:40.000Z
histogram.py
ccfelius/queueing
c38bd2fe230e52d6166a94449cec28f82e245ec2
[ "MIT" ]
null
null
null
histogram.py
ccfelius/queueing
c38bd2fe230e52d6166a94449cec28f82e245ec2
[ "MIT" ]
1
2021-01-05T13:08:03.000Z
2021-01-05T13:08:03.000Z
import matplotlib.pyplot as plt import pandas as pd import math import numpy as np from scipy import stats import seaborn as sns data = pd.read_csv("data/500-4.txt", sep="\t") # example1 = data[data["SIM_TIME"] == 500] simulations = 500 simtimes = [5, 50, 150, 500, 1000] # for i in [1, 2, 4]: # data = pd.read_c...
30.540984
83
0.662909
336
1,863
3.580357
0.375
0.0266
0.036575
0.049875
0.264339
0.201164
0.121363
0.086451
0.038238
0.038238
0
0.09419
0.122383
1,863
60
84
31.05
0.64159
0.107354
0
0
0
0
0.224638
0.018116
0
0
0
0
0
1
0
false
0
0.146341
0
0.146341
0.195122
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
ed4391eec6c0ca45d66a840d1a081ef7d248ea7e
558
py
Python
python/1931.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
python/1931.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
python/1931.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
n = int(input()) conf_set = [] for _ in range(n): conf_set.append(tuple(map(int, input().split()))) conf_set.sort(key=lambda x : (x[1], x[0])) # ๋๋‚˜๋Š” ์‹œ๊ฐ„์„ ๊ธฐ์ค€์œผ๋กœ ์ •๋ ฌ # ์‹œ์ž‘๊ณผ ์ข…๋ฃŒ๊ฐ€ ๊ฐ™์€ ๊ฒฝ์šฐ๋ฅผ ํฌํ•จํ•˜๊ธฐ ์œ„ํ•ด์„ , ์‹œ์ž‘ ์‹œ๊ฐ„๋„ ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌํ•ด ์ค˜์•ผ ํ•œ๋‹ค solution_list = [conf_set[0]] # Greedy Algorithm for conf in conf_set[1:]: last_conf = solution...
23.25
59
0.664875
98
558
3.561224
0.571429
0.100287
0.063037
0
0
0
0
0
0
0
0
0.011364
0.21147
558
24
60
23.25
0.781818
0.241935
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
ed446ef71ae2d9e250f77adc4d3e36a498ecb373
3,239
py
Python
egs2/mr_openslr64/asr1/local/data_prep.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
1
2022-03-25T14:41:05.000Z
2022-03-25T14:41:05.000Z
egs2/mr_openslr64/asr1/local/data_prep.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
2
2019-04-23T04:43:33.000Z
2019-05-13T13:06:52.000Z
egs2/mr_openslr64/asr1/local/data_prep.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2021 Carnegie Mellon University (Peter Wu) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import argparse import os import random if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-d", help="downloads directory", type=str, def...
32.39
88
0.538747
448
3,239
3.674107
0.252232
0.038275
0.043742
0.027339
0.309235
0.178007
0.117861
0.102066
0.102066
0.102066
0
0.026667
0.328496
3,239
99
89
32.717172
0.730115
0.040753
0
0.13253
0
0.012048
0.065722
0
0
0
0
0
0
1
0
false
0
0.036145
0
0.036145
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
ed45225f06a1a8cadf577895bd9772f8a5fae7c7
1,240
py
Python
src/napari_geojson/_tests/test_writer.py
NHPatterson/napari-geojson
8e7925dc7600608673d489e24e8760c4669eaa0b
[ "BSD-3-Clause" ]
null
null
null
src/napari_geojson/_tests/test_writer.py
NHPatterson/napari-geojson
8e7925dc7600608673d489e24e8760c4669eaa0b
[ "BSD-3-Clause" ]
6
2021-12-31T06:04:05.000Z
2022-02-27T15:19:29.000Z
src/napari_geojson/_tests/test_writer.py
NHPatterson/napari-geojson
8e7925dc7600608673d489e24e8760c4669eaa0b
[ "BSD-3-Clause" ]
1
2022-02-22T20:35:07.000Z
2022-02-22T20:35:07.000Z
import geojson import pytest from napari_geojson import write_shapes ellipse = [[[0, 0], [0, 5], [5, 5], [5, 0]], "ellipse", "Polygon"] line = [[[0, 0], [5, 5]], "line", "LineString"] polygon = [[[0, 0], [5, 5], [0, 10]], "polygon", "Polygon"] polyline = [[[0, 0], [5, 5], [0, 10]], "path", "LineString"] rectangle = [...
33.513514
75
0.647581
169
1,240
4.573965
0.343195
0.023286
0.019405
0.025873
0.129366
0.03881
0.020699
0.020699
0
0
0
0.03831
0.179032
1,240
36
76
34.444444
0.721022
0.06371
0
0
0
0
0.136167
0.02255
0
0
0
0
0.076923
1
0.038462
false
0
0.115385
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
ed487e9bb61e7b47c76c3fe0f4b895d4d0e7a7e7
12,688
py
Python
pgmpy/models/ClusterGraph.py
echoyi/pgmpy
c37dda4401f23ec73fc5d17d957867cd62e588d3
[ "MIT" ]
null
null
null
pgmpy/models/ClusterGraph.py
echoyi/pgmpy
c37dda4401f23ec73fc5d17d957867cd62e588d3
[ "MIT" ]
null
null
null
pgmpy/models/ClusterGraph.py
echoyi/pgmpy
c37dda4401f23ec73fc5d17d957867cd62e588d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import defaultdict import numpy as np from pgmpy.base import UndirectedGraph from pgmpy.factors import factor_product class ClusterGraph(UndirectedGraph): r""" Base class for representing Cluster Graph. Cluster graph is an undirected graph which is associated wi...
34.953168
119
0.534994
1,502
12,688
4.458722
0.155127
0.010751
0.008511
0.007167
0.409138
0.342392
0.305361
0.297297
0.266836
0.259071
0
0.00813
0.321406
12,688
362
120
35.049724
0.769686
0.566756
0
0.129032
0
0
0.086792
0
0
0
0
0
0
1
0.11828
false
0
0.043011
0
0.247312
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
ed48aebeb275b2b66a2ca1e46510e44f4c833499
1,474
py
Python
plugins/commands_window/plugin.py
stonewell/eim
50fc4bb6e265ed8a5eb84577fd203e83934d55a7
[ "MIT" ]
null
null
null
plugins/commands_window/plugin.py
stonewell/eim
50fc4bb6e265ed8a5eb84577fd203e83934d55a7
[ "MIT" ]
null
null
null
plugins/commands_window/plugin.py
stonewell/eim
50fc4bb6e265ed8a5eb84577fd203e83934d55a7
[ "MIT" ]
null
null
null
from PySide6.QtWidgets import QListWidgetItem from yapsy.IPlugin import IPlugin class Plugin(IPlugin): def __init__(self): IPlugin.__init__(self) def activate(self): IPlugin.activate(self) return def deactivate(self): IPlugin.deactivate(self) def set_current_window(self, ...
25.859649
80
0.683853
186
1,474
5.075269
0.360215
0.044492
0.038136
0.023305
0.065678
0.065678
0.065678
0.065678
0
0
0
0.000862
0.213026
1,474
56
81
26.321429
0.812931
0
0
0
0
0
0.045839
0
0
0
0
0
0
1
0.194444
false
0
0.055556
0
0.305556
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
ed493a7b9c217715b159a3e6f8cf67b68a3aa7f3
478
py
Python
custom_components/helpers.py
zroger49/broadlink_custom_component
c7b0f9648f1dbaad64e573561e852b689be5a755
[ "MIT" ]
null
null
null
custom_components/helpers.py
zroger49/broadlink_custom_component
c7b0f9648f1dbaad64e573561e852b689be5a755
[ "MIT" ]
2
2022-01-30T15:29:17.000Z
2022-03-13T10:54:58.000Z
custom_components/helpers.py
racelandshop/broadlink_custom_component
c7b0f9648f1dbaad64e573561e852b689be5a755
[ "MIT" ]
1
2022-01-16T16:05:24.000Z
2022-01-16T16:05:24.000Z
"""Helpers for the Broadlink remote.""" from base64 import b64decode from homeassistant.helpers import config_validation as cv def decode_packet(value): """Decode a data packet given for a Broadlink remote.""" value = cv.string(value) extra = len(value) % 4 if extra > 0: value = value + ("=" ...
26.555556
60
0.65272
65
478
4.753846
0.538462
0.097087
0
0
0
0
0
0
0
0
0
0.029255
0.213389
478
17
61
28.117647
0.792553
0.221757
0
0
0
0
0.014045
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
ed49cff59f1ab26e4ca17666763624af983410cc
8,641
py
Python
examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py
motionfigures/bullet3
4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22
[ "Zlib" ]
51
2018-11-11T12:47:38.000Z
2022-03-06T08:39:43.000Z
examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py
motionfigures/bullet3
4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22
[ "Zlib" ]
2
2019-11-15T03:21:45.000Z
2020-09-10T11:53:58.000Z
examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py
motionfigures/bullet3
4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22
[ "Zlib" ]
14
2018-12-12T09:12:14.000Z
2021-10-17T14:30:25.000Z
import os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path.dirname(currentdir)) os.sys.path.insert(0,parentdir) import math import gym from gym import spaces from gym.utils import seeding import numpy as np import time import pybullet...
32.731061
270
0.661035
1,091
8,641
5.092576
0.248396
0.025198
0.025918
0.024478
0.210223
0.173326
0.100612
0.083873
0.061915
0.061915
0
0.091742
0.204027
8,641
263
271
32.855513
0.716051
0.138294
0
0.202128
0
0
0.014045
0.003106
0
0
0
0
0
1
0.053191
false
0
0.06383
0
0.18617
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
ed4a2840446404d2f282a8452d7b98f961fd5554
6,392
py
Python
hi-ml-histopathology/src/histopathology/preprocessing/tiling.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
402
2020-09-22T16:38:16.000Z
2022-03-30T09:56:03.000Z
hi-ml-histopathology/src/histopathology/preprocessing/tiling.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
259
2020-09-23T09:32:33.000Z
2022-03-30T18:15:01.000Z
hi-ml-histopathology/src/histopathology/preprocessing/tiling.py
kumar-pratik/hi-ml
a108cf4ea244a76127adedc0ca60f0a5afdfb3e8
[ "MIT" ]
112
2020-09-23T00:12:58.000Z
2022-03-31T07:39:55.000Z
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
49.550388
110
0.661608
930
6,392
4.35914
0.22043
0.078934
0.01554
0.019734
0.308584
0.261223
0.236063
0.230883
0.225456
0.225456
0
0.010277
0.208385
6,392
128
111
49.9375
0.790909
0.442897
0
0.153846
0
0
0.028454
0
0
0
0
0
0
1
0.061538
false
0
0.030769
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
ed4a5900145229cd2e22ae9792f8a8881bfd83d3
9,697
py
Python
miniapp/miniapp/hartreefock/hf.py
savcardamone/tyche-
ea89edea89a607291e4fe0ba738d75522f54dc1a
[ "MIT" ]
null
null
null
miniapp/miniapp/hartreefock/hf.py
savcardamone/tyche-
ea89edea89a607291e4fe0ba738d75522f54dc1a
[ "MIT" ]
1
2018-12-28T13:30:16.000Z
2018-12-29T10:30:33.000Z
miniapp/miniapp/hartreefock/hf.py
savcardamone/tyche
ea89edea89a607291e4fe0ba738d75522f54dc1a
[ "MIT" ]
null
null
null
from math import pi from numpy import array, ndarray, divide, sqrt, argsort, sort, diag, trace from numpy.linalg import eig, norm class HartreeFock(): zeta = array([38.474970, 5.782948, 1.242567, 0.298073]) num_aos = len(zeta) num_mos = 0 energy_tolerance = 0.0001; density_tolerance = 0.001 ...
39.579592
131
0.607301
1,313
9,697
4.252856
0.156893
0.055158
0.057307
0.05265
0.350287
0.310888
0.250537
0.189828
0.153653
0.121418
0
0.011183
0.299165
9,697
245
132
39.579592
0.810477
0.120553
0
0.155405
0
0
0.053734
0
0
0
0
0
0
1
0.101351
false
0
0.02027
0.027027
0.263514
0.081081
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
ed4d3cea76d6d1815b54c52a975d47ddfb5f8c99
7,496
py
Python
server/djangoapp/restapis.py
christiansencq/ibm_capstone
d445fd40c0267be0948a5d85e9d43828b908641c
[ "Apache-2.0" ]
null
null
null
server/djangoapp/restapis.py
christiansencq/ibm_capstone
d445fd40c0267be0948a5d85e9d43828b908641c
[ "Apache-2.0" ]
null
null
null
server/djangoapp/restapis.py
christiansencq/ibm_capstone
d445fd40c0267be0948a5d85e9d43828b908641c
[ "Apache-2.0" ]
null
null
null
import requests import json # import related models here from .models import CarDealer, DealerReview from requests.auth import HTTPBasicAuth import logging logger = logging.getLogger(__name__) # Create a `get_request` to make HTTP GET requests # e.g., response = requests.get(url, params=params, headers={'Content-Type...
46.271605
140
0.603522
939
7,496
4.654952
0.13099
0.038435
0.048044
0.02059
0.58911
0.555022
0.535575
0.515214
0.48021
0.470373
0
0.00218
0.265608
7,496
161
141
46.559006
0.791826
0.324707
0
0.524752
0
0
0.105221
0
0
0
0
0
0
1
0.059406
false
0
0.049505
0
0.168317
0.079208
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
ed4d8f444cbb7eba10514b86dbcd28fb80cd5824
2,035
py
Python
examples/python/upload.py
oslokommune/okdata-data-uploader
fc006ae90440b267613260bba90235799bf0cf6e
[ "MIT" ]
null
null
null
examples/python/upload.py
oslokommune/okdata-data-uploader
fc006ae90440b267613260bba90235799bf0cf6e
[ "MIT" ]
null
null
null
examples/python/upload.py
oslokommune/okdata-data-uploader
fc006ae90440b267613260bba90235799bf0cf6e
[ "MIT" ]
null
null
null
import logging from configparser import ConfigParser from sdk.data_uploader import DataUploader logging.basicConfig(level=logging.INFO) log = logging.getLogger() config = ConfigParser() config.read("config.ini") ##### # Datasets to be added to metadata API datasetData = { "title": "Test", "description": "Tes...
30.373134
86
0.678624
234
2,035
5.897436
0.538462
0.025362
0.045652
0.011594
0
0
0
0
0
0
0
0.039262
0.173956
2,035
66
87
30.833333
0.781678
0.121867
0
0
0
0
0.348588
0.084181
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
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
ed4f8a612b9b05faf17087ad729a1b5925503103
1,358
py
Python
setup.py
xmedius/xmedius-mailrelayserver
44bb55c4b543e96bb23a45499d281c1bbab18abf
[ "MIT" ]
null
null
null
setup.py
xmedius/xmedius-mailrelayserver
44bb55c4b543e96bb23a45499d281c1bbab18abf
[ "MIT" ]
null
null
null
setup.py
xmedius/xmedius-mailrelayserver
44bb55c4b543e96bb23a45499d281c1bbab18abf
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools.command.install import install class PostInstallCommand(install): user_options = install.user_options + [ ('noservice', None, None), ] def initialize_options(self): install.initialize_options(self) self.noservice = None def finalize...
30.863636
104
0.667158
138
1,358
6.485507
0.586957
0.049162
0.040223
0.046927
0.096089
0.096089
0
0
0
0
0
0.006542
0.212077
1,358
43
105
31.581395
0.829907
0
0
0
0
0
0.343405
0.048637
0
0
0
0
0
1
0.081081
false
0
0.081081
0
0.216216
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
ed502bad0b09f0685ca1ff615fe9d8b7f8ad7287
1,554
py
Python
143.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
143.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
143.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
# 143. ้‡ๆŽ’้“พ่กจ # ็ป™ๅฎšไธ€ไธชๅ•้“พ่กจ L๏ผšL0โ†’L1โ†’โ€ฆโ†’Ln-1โ†’Ln ๏ผŒ # ๅฐ†ๅ…ถ้‡ๆ–ฐๆŽ’ๅˆ—ๅŽๅ˜ไธบ๏ผš L0โ†’Lnโ†’L1โ†’Ln-1โ†’L2โ†’Ln-2โ†’โ€ฆ # ไฝ ไธ่ƒฝๅชๆ˜ฏๅ•็บฏ็š„ๆ”นๅ˜่Š‚็‚นๅ†…้ƒจ็š„ๅ€ผ๏ผŒ่€Œๆ˜ฏ้œ€่ฆๅฎž้™…็š„่ฟ›่กŒ่Š‚็‚นไบคๆขใ€‚ # ็คบไพ‹ 1: # ็ป™ๅฎš้“พ่กจ 1->2->3->4, ้‡ๆ–ฐๆŽ’ๅˆ—ไธบ 1->4->2->3. # ็คบไพ‹ 2: # ็ป™ๅฎš้“พ่กจ 1->2->3->4->5, ้‡ๆ–ฐๆŽ’ๅˆ—ไธบ 1->5->2->4->3. # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # ...
24.28125
62
0.462677
209
1,554
3.478469
0.301435
0.077029
0.060523
0.016506
0.233838
0.203576
0.203576
0.203576
0.203576
0.203576
0
0.050647
0.402831
1,554
64
63
24.28125
0.715517
0.441441
0
0.291667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
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
ed510f09d28e1fdb65727ee044b934fd67984f9c
2,555
py
Python
onmt/bin/build_vocab.py
comydream/OpenNMT-py
2f3c810069ca03b752d9886782648e576b39a06d
[ "MIT" ]
1
2021-10-01T15:03:35.000Z
2021-10-01T15:03:35.000Z
onmt/bin/build_vocab.py
urialon/OpenNMT-py
bdca05a3fac8f864b21c86a8ad03c09895212e70
[ "MIT" ]
null
null
null
onmt/bin/build_vocab.py
urialon/OpenNMT-py
bdca05a3fac8f864b21c86a8ad03c09895212e70
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Get vocabulary coutings from transformed corpora samples.""" from onmt.utils.logging import init_logger from onmt.utils.misc import set_random_seed, check_path from onmt.utils.parse import ArgumentParser from onmt.opts import dynamic_prepare_opts from onmt.inputters.corpus import build_vocab fr...
33.618421
77
0.706849
366
2,555
4.661202
0.336066
0.046893
0.032239
0.044549
0.126612
0.100821
0.038687
0
0
0
0
0.003378
0.189041
2,555
75
78
34.066667
0.819981
0.147162
0
0.042553
0
0
0.120037
0.057917
0
0
0
0
0.021277
1
0.085106
false
0
0.12766
0
0.234043
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
ed51b4414d9639f63dd9eb5d177b6130aa8d5108
2,756
py
Python
schools3/ml/experiments/feat_pruning_experiment.py
dssg/mlpolicylab_fall20_schools3_public
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
[ "MIT" ]
null
null
null
schools3/ml/experiments/feat_pruning_experiment.py
dssg/mlpolicylab_fall20_schools3_public
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
[ "MIT" ]
null
null
null
schools3/ml/experiments/feat_pruning_experiment.py
dssg/mlpolicylab_fall20_schools3_public
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from schools3.ml.experiments.models_experiment import ModelsExperiment from schools3.data.base.cohort import Cohort from schools3.config import main_config from schools3.config import global_config from schools3.data.datasets.dataset import Dataset from schools3.ml.experiments.fea...
43.746032
123
0.717707
327
2,756
5.810398
0.308869
0.063158
0.036842
0.039474
0.08
0.050526
0.050526
0.050526
0.050526
0
0
0.005051
0.209724
2,756
62
124
44.451613
0.867309
0.061321
0
0.04
0
0
0.010449
0
0
0
0
0
0
1
0.04
false
0
0.3
0
0.38
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
ed51e5aefc8aa4c007f752784c838fb5f4f57c1c
2,297
py
Python
network/dataset/image_loading.py
imsb-uke/podometric_u_net
a33afcc186d618889df73c7ab2941dfbb63574ac
[ "MIT" ]
null
null
null
network/dataset/image_loading.py
imsb-uke/podometric_u_net
a33afcc186d618889df73c7ab2941dfbb63574ac
[ "MIT" ]
null
null
null
network/dataset/image_loading.py
imsb-uke/podometric_u_net
a33afcc186d618889df73c7ab2941dfbb63574ac
[ "MIT" ]
null
null
null
import os import numpy as np from skimage.io import imread def get_file_count(paths, image_format='.tif'): total_count = 0 for path in paths: try: path_list = [_ for _ in os.listdir(path) if _.endswith(image_format)] total_count += len(path_list) except OSError: ...
37.048387
124
0.652155
348
2,297
4.103448
0.241379
0.039216
0.04902
0.058824
0.436975
0.298319
0.19888
0.19888
0.131653
0.106443
0
0.015437
0.238572
2,297
62
125
37.048387
0.801029
0.053548
0
0.085106
0
0.021277
0.117566
0
0
0
0
0
0
1
0.106383
false
0
0.06383
0
0.276596
0.021277
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
ed52fe7003cd3391400a3e6ca8a3b67edfc17d59
6,769
py
Python
series/simple/numeric_series.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
null
null
null
series/simple/numeric_series.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
null
null
null
series/simple/numeric_series.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
null
null
null
from typing import Optional, Callable try: # Assume we're a sub-module in a package. from series import series_classes as sc from utils import numeric as nm except ImportError: # Apparently no higher-level package has been imported, fall back to a local import. from .. import series_classes as sc fro...
34.186869
116
0.601418
850
6,769
4.571765
0.177647
0.026763
0.020072
0.012352
0.289243
0.235203
0.170612
0.161091
0.092126
0.067422
0
0.004893
0.30551
6,769
197
117
34.360406
0.82174
0.019796
0
0.113772
0
0
0.006636
0
0
0
0
0
0
1
0.143713
false
0
0.035928
0.047904
0.323353
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
ed548c718f56038d0a32759b322ccf9c4f9f5e93
29,735
py
Python
python/OpenGeoTile.py
scoofy/open-geotiling
0b1305d4482d6df46104135662ffe4565f92f9f0
[ "Apache-2.0" ]
null
null
null
python/OpenGeoTile.py
scoofy/open-geotiling
0b1305d4482d6df46104135662ffe4565f92f9f0
[ "Apache-2.0" ]
null
null
null
python/OpenGeoTile.py
scoofy/open-geotiling
0b1305d4482d6df46104135662ffe4565f92f9f0
[ "Apache-2.0" ]
null
null
null
from openlocationcode import openlocationcode as olc from enum import Enum import math, re class TileSize(Enum): ''' An area of 20ยฐ x 20ยฐ. The side length of this tile varies with its location on the globe, but can be up to approximately 2200km. Tile addresses will be 2 characters long.''' GLOBAL = (2,...
43.535871
150
0.613351
3,453
29,735
5.144802
0.139299
0.026119
0.026738
0.01351
0.404447
0.346411
0.310611
0.283648
0.270532
0.255784
0
0.015501
0.297057
29,735
682
151
43.599707
0.833844
0.210459
0
0.225888
0
0
0.05866
0.013262
0
0
0
0
0
1
0.086294
false
0
0.007614
0.01269
0.215736
0.002538
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
ed57f1712b86394159992dc11fd79688181d493e
13,851
bzl
Python
tensorflow_probability/python/build_defs.bzl
jbergmanster/probability
e15b307066e7485b8fe9faf3d289c739ab8d3806
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/build_defs.bzl
jbergmanster/probability
e15b307066e7485b8fe9faf3d289c739ab8d3806
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/build_defs.bzl
jbergmanster/probability
e15b307066e7485b8fe9faf3d289c739ab8d3806
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.698454
89
0.608043
1,657
13,851
4.86904
0.176222
0.025905
0.009916
0.016361
0.302429
0.20005
0.146257
0.111304
0.089737
0.064452
0
0.0046
0.27803
13,851
387
90
35.790698
0.8022
0.320121
0
0.28125
0
0
0.104155
0.030918
0
0
0
0
0
1
0.035156
false
0
0.011719
0
0.085938
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
ed583ccefc13cf5fca32a4b108662e62505e92e1
5,425
py
Python
src/wikidated/wikidata/wikidata_dump.py
lschmelzeisen/wikidata-history-analyzer
8673639b61839d2dca271fbbaf2feb8563b75f2d
[ "ECL-2.0", "Apache-2.0" ]
6
2021-06-10T09:26:44.000Z
2021-07-07T13:49:00.000Z
src/wikidated/wikidata/wikidata_dump.py
lschmelzeisen/wikidata-history-analyzer
8673639b61839d2dca271fbbaf2feb8563b75f2d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/wikidated/wikidata/wikidata_dump.py
lschmelzeisen/wikidata-history-analyzer
8673639b61839d2dca271fbbaf2feb8563b75f2d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# # Copyright 2021 Lukas Schmelzeisen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.487654
87
0.654194
642
5,425
5.325545
0.323988
0.032173
0.028078
0.022814
0.147412
0.118456
0.101784
0.045627
0.022229
0.022229
0
0.010875
0.254194
5,425
161
88
33.695652
0.834157
0.106728
0
0.033898
0
0
0.117233
0.041839
0
0
0
0
0
1
0.042373
false
0
0.127119
0.016949
0.305085
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
ed58570015c33daeb7f03921904a43571a44e66f
18,726
py
Python
tcapygen/layoutgen.py
Ahrvo-Trading-Systems/tcapy
df8439aa5c754fc9a7fde463c44c489b27112f76
[ "Apache-2.0" ]
189
2020-03-20T17:03:04.000Z
2022-03-30T13:33:27.000Z
tcapygen/layoutgen.py
Ahrvo-Trading-Systems/tcapy
df8439aa5c754fc9a7fde463c44c489b27112f76
[ "Apache-2.0" ]
4
2020-06-06T14:58:21.000Z
2022-03-10T22:31:15.000Z
tcapygen/layoutgen.py
Ahrvo-Trading-Systems/tcapy
df8439aa5c754fc9a7fde463c44c489b27112f76
[ "Apache-2.0" ]
60
2020-03-20T17:06:56.000Z
2022-03-26T02:48:58.000Z
from __future__ import division, print_function __author__ = 'saeedamen' # Saeed Amen / saeed@cuemacro.com # # Copyright 2017 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro # # See the License for the specific language governing permissions and limitations under the License. # ## Web server components import da...
58.51875
154
0.595215
2,030
18,726
5.20936
0.139409
0.039716
0.029314
0.04104
0.618345
0.518676
0.468085
0.425816
0.40766
0.385437
0
0.006055
0.268023
18,726
319
155
58.702194
0.765448
0.090035
0
0.283784
0
0
0.24997
0.097548
0
0
0
0
0
1
0.013514
false
0
0.04955
0
0.072072
0.004505
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
ed587bf56577619d8ec39ef62825f11e9ce7e776
3,511
py
Python
projects/MAE/utils/weight_convert.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
55
2021-12-10T08:47:06.000Z
2022-03-28T09:02:15.000Z
projects/MAE/utils/weight_convert.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
106
2021-11-03T05:16:45.000Z
2022-03-31T06:16:23.000Z
projects/MAE/utils/weight_convert.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
13
2021-12-29T08:12:08.000Z
2022-03-28T06:59:45.000Z
# coding=utf-8 # Copyright 2021 The OneFlow Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
32.509259
95
0.656508
494
3,511
4.520243
0.3583
0.037618
0.025078
0.034483
0.337662
0.211375
0.172862
0.149575
0.149575
0.149575
0
0.011606
0.239248
3,511
107
96
32.813084
0.82441
0.312731
0
0.103448
0
0
0.143539
0.035559
0
0
0
0
0
1
0.068966
false
0
0.051724
0
0.189655
0.017241
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
ed5a4c9715fe0f81c7675d25ae101b58391d1929
8,462
py
Python
spot/level1.py
K0gata/SGLI_Python_output_tool
1368e0408edd737a5109d0523db6c147faa80b97
[ "MIT" ]
1
2020-08-04T04:17:49.000Z
2020-08-04T04:17:49.000Z
spot/level1.py
K0gata/SGLI_Python_Open_Tool
1368e0408edd737a5109d0523db6c147faa80b97
[ "MIT" ]
null
null
null
spot/level1.py
K0gata/SGLI_Python_Open_Tool
1368e0408edd737a5109d0523db6c147faa80b97
[ "MIT" ]
null
null
null
import numpy as np import logging from decimal import Decimal, ROUND_HALF_UP from abc import ABC, abstractmethod, abstractproperty from spot.utility import bilin_2d from spot.config import PROJ_TYPE # ============================= # Level-1 template class # ============================= class L1Interface(ABC): ...
34.538776
120
0.610021
1,113
8,462
4.337826
0.150045
0.052196
0.043082
0.045775
0.600249
0.547639
0.490472
0.439105
0.36599
0.335128
0
0.013121
0.243441
8,462
244
121
34.680328
0.741018
0.072205
0
0.462963
0
0
0.136852
0.017378
0
0
0.000767
0
0
1
0.117284
false
0
0.037037
0.024691
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
ed5a7dc4339280b02e5e632da64cfe3100fda887
345
py
Python
168. Excel Sheet Column Title.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
168. Excel Sheet Column Title.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
168. Excel Sheet Column Title.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
class Solution: # @return a string def convertToTitle(self, n: int) -> str: capitals = [chr(x) for x in range(ord('A'), ord('Z')+1)] result = [] while n > 0: result.insert(0, capitals[(n-1)%len(capitals)]) n = (n-1) % len(capitals) # result.reverse() ...
34.5
64
0.510145
45
345
3.911111
0.6
0.102273
0.056818
0.147727
0
0
0
0
0
0
0
0.021186
0.315942
345
10
65
34.5
0.724576
0.095652
0
0
0
0
0.006452
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
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
ed5ab9e7476a3e24312d9ef871509f4e43e86312
18,788
py
Python
devil/devil/utils/cmd_helper.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
devil/devil/utils/cmd_helper.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
infra/services/android_docker/third_party/devil/utils/cmd_helper.py
NDevTK/chromium-infra
d38e088e158d81f7f2065a38aa1ea1894f735ec4
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A wrapper for subprocess to make calling shell commands easier.""" import codecs import logging import os import pipes import select import signal imp...
31.10596
80
0.64951
2,518
18,788
4.753376
0.175139
0.024814
0.009775
0.007519
0.438884
0.406884
0.37405
0.36135
0.349319
0.329769
0
0.003368
0.27294
18,788
603
81
31.157546
0.87284
0.381627
0
0.450617
0
0
0.031292
0
0
0
0
0.003317
0.003086
1
0.064815
false
0.006173
0.049383
0.003086
0.175926
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
ed5b5860c856a4418e7eeb1cf777cb4c10722142
2,845
py
Python
api/to_astm.py
urchinpro/L2-forms
37f33386984efbb2d1e92c73d915256247801109
[ "MIT" ]
null
null
null
api/to_astm.py
urchinpro/L2-forms
37f33386984efbb2d1e92c73d915256247801109
[ "MIT" ]
null
null
null
api/to_astm.py
urchinpro/L2-forms
37f33386984efbb2d1e92c73d915256247801109
[ "MIT" ]
null
null
null
import itertools from astm import codec from collections import defaultdict from django.utils import timezone import directions.models as directions import directory.models as directory import api.models as api import simplejson as json def get_astm_header() -> list: return ['H|\\^&', None, None, ['1', '2.00'], N...
34.277108
138
0.636555
372
2,845
4.755376
0.247312
0.049746
0.033917
0.027134
0.308649
0.246467
0.196721
0.196721
0.163934
0.091577
0
0.007404
0.240422
2,845
82
139
34.695122
0.811199
0
0
0.313433
0
0
0.013357
0
0
0
0
0
0
1
0.104478
false
0
0.119403
0.059701
0.328358
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
ed5c8a4473db3e1f846fdf5ddd27546849b2b2e4
3,091
py
Python
src/compas_plotters/artists/lineartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_plotters/artists/lineartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_plotters/artists/lineartist.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
from compas_plotters.artists import Artist from matplotlib.lines import Line2D from compas.geometry import intersection_line_box_xy __all__ = ['LineArtist'] class LineArtist(Artist): """""" zorder = 1000 def __init__(self, line, draw_points=False, draw_as_segment=False, linewidth=1.0, linestyle='solid...
36.364706
122
0.530573
363
3,091
4.280992
0.179063
0.066924
0.077864
0.072072
0.574003
0.574003
0.574003
0.574003
0.574003
0.574003
0
0.033486
0.362342
3,091
84
123
36.797619
0.754947
0
0
0.60274
0
0
0.004862
0
0
0
0
0
0
1
0.068493
false
0
0.041096
0.013699
0.164384
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
ed5d3821ab68704ffac0f126c20afbf8dae239de
1,018
py
Python
plot2d_artificial_dataset1_silvq.py
manome/python-silvq
b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f
[ "BSD-3-Clause" ]
null
null
null
plot2d_artificial_dataset1_silvq.py
manome/python-silvq
b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f
[ "BSD-3-Clause" ]
null
null
null
plot2d_artificial_dataset1_silvq.py
manome/python-silvq
b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf8 -*- import numpy as np from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from lvq import SilvqModel from lvq.utils import plot2d def main(): # Load dataset dataset = np.loadtxt('data/artificial_dataset1.csv', delimiter=',') x = dataset[:...
30.848485
118
0.697446
147
1,018
4.632653
0.496599
0.022026
0.041116
0
0
0
0
0
0
0
0
0.024038
0.182711
1,018
32
119
31.8125
0.794471
0.210216
0
0
0
0
0.10566
0.03522
0
0
0
0
0
1
0.058824
false
0
0.294118
0
0.352941
0.058824
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
ed5d69e17539392ab832fd82b04ce64e261c7b31
7,727
py
Python
classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py
ifr1m/hyper-kvasir
21cc366e78c0cb4e180a26a0e441d6c0d5171da9
[ "CC-BY-4.0" ]
38
2019-12-20T13:17:09.000Z
2022-03-20T08:39:40.000Z
classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py
smaranjitghose/hyper-kvasir
b4815d151ef90cffa1bbc8fbf97cd091a20ce600
[ "CC-BY-4.0" ]
2
2021-01-12T10:45:13.000Z
2021-01-28T06:14:45.000Z
classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py
smaranjitghose/hyper-kvasir
b4815d151ef90cffa1bbc8fbf97cd091a20ce600
[ "CC-BY-4.0" ]
11
2020-03-24T17:58:04.000Z
2021-12-09T16:12:16.000Z
#!/usr/bin/env python # coding: utf-8 # In[ ]: #Importing all required libraries # In[ ]: from __future__ import absolute_import, division, print_function, unicode_literals # In[ ]: #Checking for correct cuda and tf versions from tensorflow.python.platform import build_info as tf_build_info print(tf_build_in...
21.889518
102
0.666235
1,036
7,727
4.765444
0.237452
0.023699
0.017014
0.013774
0.342718
0.286409
0.209034
0.169739
0.169739
0.152724
0
0.013114
0.220396
7,727
352
103
21.951705
0.806441
0.14197
0
0.253247
0
0
0.098203
0.016443
0
0
0
0
0
1
0
false
0
0.116883
0
0.116883
0.058442
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
ed5f32dd2cd9143c086d6a609f05220bf9f92fde
12,380
py
Python
test/functional/fantasygold_opcall.py
FantasyGold/FantasyGold-Core
afff8871e770045e468e2f536ede9db0dff889d5
[ "MIT" ]
13
2018-04-30T21:43:40.000Z
2020-12-07T11:06:47.000Z
test/functional/fantasygold_opcall.py
donoel2/FantasyGold-Core
afff8871e770045e468e2f536ede9db0dff889d5
[ "MIT" ]
4
2018-05-10T00:18:18.000Z
2019-07-08T23:12:54.000Z
test/functional/fantasygold_opcall.py
donoel2/FantasyGold-Core
afff8871e770045e468e2f536ede9db0dff889d5
[ "MIT" ]
13
2018-04-30T17:41:54.000Z
2020-12-08T18:24:06.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from tes...
57.581395
689
0.714943
1,640
12,380
5.10061
0.152439
0.030126
0.025822
0.040167
0.634429
0.59474
0.564854
0.532337
0.496234
0.478542
0
0.102193
0.185864
12,380
215
690
57.581395
0.727751
0.13853
0
0.302013
0
0
0.159123
0.059588
0
0
0.002087
0
0.04698
1
0.114094
false
0.006711
0.04698
0
0.167785
0.09396
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
ed5fdee808e9a889711f8e8007e05b2a81263072
1,883
py
Python
intake_sklearn/source.py
AlbertDeFusco/intake-sklearn
6cd0e11b26703712eb338032518e5c55b725c48f
[ "BSD-3-Clause" ]
1
2022-02-23T09:00:38.000Z
2022-02-23T09:00:38.000Z
intake_sklearn/source.py
AlbertDeFusco/intake-sklearn
6cd0e11b26703712eb338032518e5c55b725c48f
[ "BSD-3-Clause" ]
1
2019-10-14T12:25:26.000Z
2019-10-25T13:55:59.000Z
intake_sklearn/source.py
AlbertDeFusco/intake-sklearn
6cd0e11b26703712eb338032518e5c55b725c48f
[ "BSD-3-Clause" ]
1
2021-07-28T17:49:36.000Z
2021-07-28T17:49:36.000Z
from intake.source.base import DataSource, Schema import joblib import fsspec import sklearn import re from . import __version__ class SklearnModelSource(DataSource): container = 'python' name = 'sklearn' version = __version__ partition_access = False def __init__(self, urlpath, storage_options=N...
27.691176
89
0.591609
208
1,883
5.086538
0.461538
0.119093
0.05104
0.082231
0.20794
0.126654
0
0
0
0
0
0.003762
0.294211
1,883
67
90
28.104478
0.792325
0.123739
0
0
0
0
0.142676
0.032974
0
0
0
0
0
1
0.097561
false
0
0.146341
0
0.439024
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
ed607bad1d48fdf5da41de44d6ec206f2716afe4
4,915
py
Python
jedi/evaluate/dynamic.py
hatamov/jedi
10df0f933f931a8e0e70304d823f6df0dc3000bd
[ "MIT" ]
null
null
null
jedi/evaluate/dynamic.py
hatamov/jedi
10df0f933f931a8e0e70304d823f6df0dc3000bd
[ "MIT" ]
null
null
null
jedi/evaluate/dynamic.py
hatamov/jedi
10df0f933f931a8e0e70304d823f6df0dc3000bd
[ "MIT" ]
null
null
null
""" One of the really important features of |jedi| is to have an option to understand code like this:: def foo(bar): bar. # completion here foo(1) There's no doubt wheter bar is an ``int`` or not, but if there's also a call like ``foo('str')``, what would happen? Well, we'll just show both. Because th...
33.435374
95
0.584334
593
4,915
4.738617
0.32715
0.022776
0.017082
0.015658
0.088968
0.055516
0.02847
0.02847
0
0
0
0.001221
0.333672
4,915
146
96
33.664384
0.856794
0.278739
0
0.139241
0
0
0.02127
0
0
0
0
0
0
1
0.075949
false
0
0.113924
0
0.278481
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
ed614dd2f553e42b3e9876c261fcf0d4bfb4705a
2,245
py
Python
steamcheck/views.py
moird/linux-game-report
8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd
[ "MIT" ]
null
null
null
steamcheck/views.py
moird/linux-game-report
8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd
[ "MIT" ]
null
null
null
steamcheck/views.py
moird/linux-game-report
8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd
[ "MIT" ]
null
null
null
from steamcheck import app from flask import jsonify, render_template import os import steamapi import json @app.route('/') def index(): return render_template("index.html") @app.route('/report/<name>') def report(name=None): """ This will generate the report based on the users Steam ID. Returns JSON ...
35.634921
111
0.623163
288
2,245
4.736111
0.413194
0.066716
0.047654
0.026393
0.036657
0
0
0
0
0
0
0
0.270379
2,245
63
112
35.634921
0.832723
0.260579
0
0.04878
0
0
0.116625
0.041563
0
0
0
0
0
1
0.04878
false
0
0.121951
0.02439
0.219512
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
ed6236b34ab65a1e059ca45441d455cec6bd4e90
516
py
Python
validator/delphi_validator/run.py
benjaminysmith/covidcast-indicators
b1474cd68a1497166fefe4beffd4d5ff867b9a61
[ "MIT" ]
null
null
null
validator/delphi_validator/run.py
benjaminysmith/covidcast-indicators
b1474cd68a1497166fefe4beffd4d5ff867b9a61
[ "MIT" ]
null
null
null
validator/delphi_validator/run.py
benjaminysmith/covidcast-indicators
b1474cd68a1497166fefe4beffd4d5ff867b9a61
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Functions to call when running the tool. This module should contain a function called `run_module`, that is executed when the module is run with `python -m delphi_validator`. """ from delphi_utils import read_params from .validate import Validator def run_module(): """Run the validator...
28.666667
75
0.732558
71
516
5.15493
0.577465
0.098361
0
0
0
0
0
0
0
0
0
0.002309
0.160853
516
17
76
30.352941
0.842956
0.443798
0
0
0
0
0.072727
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0.142857
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
ed62a0f3bd61d82280e96fe9d14711d5df97f622
1,876
py
Python
datasets/validation_folders.py
zenithfang/supervised_dispnet
f81dfccfdc944e015d8fae17e24b3e664bec14d6
[ "MIT" ]
39
2020-01-17T18:33:42.000Z
2021-11-14T02:36:32.000Z
datasets/validation_folders.py
zenithfang/supervised_dispnet
f81dfccfdc944e015d8fae17e24b3e664bec14d6
[ "MIT" ]
7
2020-01-10T14:52:44.000Z
2021-03-15T18:55:35.000Z
datasets/validation_folders.py
zenithfang/supervised_dispnet
f81dfccfdc944e015d8fae17e24b3e664bec14d6
[ "MIT" ]
10
2020-03-01T11:35:50.000Z
2022-01-18T10:54:04.000Z
import torch.utils.data as data import numpy as np from imageio import imread from path import Path import pdb def crawl_folders(folders_list): imgs = [] depth = [] for folder in folders_list: current_imgs = sorted(folder.files('*.jpg')) current_depth = [] fo...
32.912281
153
0.615672
257
1,876
4.346304
0.381323
0.056401
0.03581
0.030439
0
0
0
0
0
0
0
0.04068
0.279318
1,876
56
154
33.5
0.785503
0.220682
0
0
0
0
0.028302
0
0
0
0
0
0.027778
1
0.138889
false
0
0.138889
0.055556
0.416667
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
ed6310e1d8d83cf871e0d32a527ca7f1529b58ca
1,302
py
Python
pysaurus/database/special_properties.py
notoraptor/pysaurus
3bf5fe8c15e0e0e580e5edaea05b4a1298641367
[ "MIT" ]
null
null
null
pysaurus/database/special_properties.py
notoraptor/pysaurus
3bf5fe8c15e0e0e580e5edaea05b4a1298641367
[ "MIT" ]
4
2021-08-13T14:03:02.000Z
2022-03-05T16:02:45.000Z
pysaurus/database/special_properties.py
notoraptor/pysaurus
3bf5fe8c15e0e0e580e5edaea05b4a1298641367
[ "MIT" ]
null
null
null
from abc import abstractmethod from pysaurus.database.properties import PropType from pysaurus.database.video import Video class SpecialPropType(PropType): __slots__ = () @abstractmethod def get(self, video: Video): raise NotImplementedError() class PropError(SpecialPropType): __slots__ = ...
26.04
83
0.627496
144
1,302
5.479167
0.319444
0.050697
0.081115
0.076046
0.106464
0
0
0
0
0
0
0
0.274962
1,302
49
84
26.571429
0.835805
0
0
0.194444
0
0
0.005376
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0.055556
0.472222
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
ed65a740d0a6c0e521ed5a04db6b899535f0bcde
19,613
py
Python
patrole_tempest_plugin/rbac_utils.py
openstack/patrole
fa0ee135121a5e86301ad5ee1854b3a0bd70b69b
[ "Apache-2.0" ]
14
2017-01-03T15:07:18.000Z
2020-09-17T18:07:39.000Z
patrole_tempest_plugin/rbac_utils.py
openstack/patrole
fa0ee135121a5e86301ad5ee1854b3a0bd70b69b
[ "Apache-2.0" ]
null
null
null
patrole_tempest_plugin/rbac_utils.py
openstack/patrole
fa0ee135121a5e86301ad5ee1854b3a0bd70b69b
[ "Apache-2.0" ]
12
2017-02-28T20:08:48.000Z
2020-12-30T09:31:51.000Z
# Copyright 2017 AT&T Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
39.069721
120
0.629175
2,396
19,613
4.896077
0.18823
0.036826
0.020459
0.017646
0.29128
0.201603
0.151394
0.122411
0.105021
0.093087
0
0.001942
0.291133
19,613
501
121
39.147705
0.841833
0.431652
0
0.209091
0
0
0.054
0
0
0
0
0.003992
0
1
0.104545
false
0
0.036364
0
0.240909
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
ed66f473c8ee9e1a4cbf088bc3dc94834ee24ff9
6,029
py
Python
core/my_widgets/drug_picker.py
kimera1999/pmpktn
5307b6684a08bac4b88617f097017b5ea4192ab2
[ "MIT" ]
null
null
null
core/my_widgets/drug_picker.py
kimera1999/pmpktn
5307b6684a08bac4b88617f097017b5ea4192ab2
[ "MIT" ]
null
null
null
core/my_widgets/drug_picker.py
kimera1999/pmpktn
5307b6684a08bac4b88617f097017b5ea4192ab2
[ "MIT" ]
1
2020-05-16T14:28:59.000Z
2020-05-16T14:28:59.000Z
from initialize import * from core.db.db_func import query_linedrug_list import os import wx class DrugPopup(wx.ComboPopup): def __init__(self, parent): super().__init__() self.lc = None self.mv = parent.mv self.init_d_l = query_linedrug_list(self.mv.sess).all() self.d_l =...
31.238342
96
0.543208
705
6,029
4.52766
0.255319
0.056391
0.028195
0.026629
0.280388
0.204887
0.148496
0.148496
0.127193
0.114975
0
0.008551
0.340521
6,029
192
97
31.401042
0.794266
0
0
0.272727
0
0
0.022558
0.006469
0
0
0
0
0
1
0.139394
false
0
0.024242
0.018182
0.212121
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
ed6710b9dafd0dadb8b0c6608676f1c2e79ad2c8
615
py
Python
em Python/Roteiro4/Roteiro4__grafos.py
GuilhermeEsdras/Grafos
b6556c3d679496d576f65b798a1a584cd73e40f4
[ "MIT" ]
null
null
null
em Python/Roteiro4/Roteiro4__grafos.py
GuilhermeEsdras/Grafos
b6556c3d679496d576f65b798a1a584cd73e40f4
[ "MIT" ]
null
null
null
em Python/Roteiro4/Roteiro4__grafos.py
GuilhermeEsdras/Grafos
b6556c3d679496d576f65b798a1a584cd73e40f4
[ "MIT" ]
null
null
null
from Roteiro4.Roteiro4__funcoes import Grafo class Grafos: # Grafo da Paraรญba paraiba = Grafo(['J', 'C', 'E', 'P', 'M', 'T', 'Z']) for aresta in ['J-C', 'C-E', 'C-E', 'C-P', 'C-P', 'C-M', 'C-T', 'M-T', 'T-Z']: paraiba.adicionaAresta(aresta) # --- # # Grafo Completo grafo...
23.653846
82
0.461789
90
615
3.111111
0.277778
0.035714
0.117857
0.057143
0.192857
0
0
0
0
0
0
0.011236
0.276423
615
25
83
24.6
0.617978
0.078049
0
0
0
0
0.122302
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.454545
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
ed67b3786dc5aa973280b427220b99a230def591
464
py
Python
flask/app.py
yatsu/react-flask-graphql-example
18a38b7602c81a85a3cc38c74440ce34d63fc32a
[ "MIT" ]
21
2017-06-24T15:29:30.000Z
2021-03-03T06:58:41.000Z
flask/app.py
yatsu/react-flask-graphql-example
18a38b7602c81a85a3cc38c74440ce34d63fc32a
[ "MIT" ]
null
null
null
flask/app.py
yatsu/react-flask-graphql-example
18a38b7602c81a85a3cc38c74440ce34d63fc32a
[ "MIT" ]
6
2018-01-15T06:36:11.000Z
2022-03-18T07:57:39.000Z
from flask import Flask from flask_cors import CORS from flask_graphql import GraphQLView from schema import Schema def create_app(**kwargs): app = Flask(__name__) app.debug = True app.add_url_rule( '/graphql', view_func=GraphQLView.as_view('graphql', schema=Schema, **kwargs) ) ret...
22.095238
73
0.668103
60
464
4.833333
0.466667
0.093103
0
0
0
0
0
0
0
0
0
0
0.206897
464
20
74
23.2
0.788043
0
0
0
0
0
0.084052
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.375
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
ed69c7e1252a3ec3f75d6d65d353de14affd6d0c
1,628
py
Python
bluesky/tests/utils.py
AbbyGi/bluesky
759f9c55dce97dc47513cca749a69dd861bdf58d
[ "BSD-3-Clause" ]
43
2015-08-04T20:13:41.000Z
2019-04-12T17:21:36.000Z
bluesky/tests/utils.py
AbbyGi/bluesky
759f9c55dce97dc47513cca749a69dd861bdf58d
[ "BSD-3-Clause" ]
966
2015-07-29T16:43:21.000Z
2019-05-09T21:02:28.000Z
bluesky/tests/utils.py
AbbyGi/bluesky
759f9c55dce97dc47513cca749a69dd861bdf58d
[ "BSD-3-Clause" ]
48
2019-05-15T18:01:06.000Z
2022-03-03T18:53:43.000Z
from collections import defaultdict import contextlib import tempfile import sys import threading import asyncio @contextlib.contextmanager def _print_redirect(): old_stdout = sys.stdout try: fout = tempfile.TemporaryFile(mode="w+", encoding="utf-8") sys.stdout = fout yield fout fi...
23.941176
66
0.594595
200
1,628
4.63
0.405
0.037797
0.047516
0.030238
0
0
0
0
0
0
0
0.002604
0.292383
1,628
67
67
24.298507
0.801215
0
0
0
0
0
0.058968
0
0
0
0
0
0
1
0.12963
false
0
0.111111
0
0.296296
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
ed69da856e9dae34d6443933a8a9df258e7f8e95
1,116
py
Python
cli/check_json.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
null
null
null
cli/check_json.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
null
null
null
cli/check_json.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
null
null
null
import json import sys from openslides_backend.models.checker import Checker, CheckException def main() -> int: files = sys.argv[1:] if not files: print("No files specified.") return 1 possible_modes = tuple(f"--{mode}" for mode in Checker.modes) modes = tuple(mode[2:] for mode in p...
24.8
78
0.53405
147
1,116
3.959184
0.401361
0.089347
0.030928
0.04811
0.051546
0
0
0
0
0
0
0.012605
0.360215
1,116
44
79
25.363636
0.802521
0
0
0.057143
0
0
0.130824
0.021505
0
0
0
0
0
1
0.028571
false
0
0.085714
0
0.171429
0.114286
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
ed6b5de7ad69456fafac8a04559f11ef56300d5e
24,607
bzl
Python
web/repositories.bzl
Ubehebe/rules_webtesting
c231866a3bccc0f27b31050a57dc2b4a700ad64e
[ "Apache-2.0" ]
null
null
null
web/repositories.bzl
Ubehebe/rules_webtesting
c231866a3bccc0f27b31050a57dc2b4a700ad64e
[ "Apache-2.0" ]
null
null
null
web/repositories.bzl
Ubehebe/rules_webtesting
c231866a3bccc0f27b31050a57dc2b4a700ad64e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
43.019231
152
0.675011
2,760
24,607
5.812319
0.152174
0.021319
0.029173
0.042638
0.48398
0.440095
0.372273
0.314425
0.284815
0.258945
0
0.124626
0.211525
24,607
571
153
43.094571
0.702196
0.135368
0
0.375
0
0.122881
0.518002
0.192875
0
0
0
0
0
1
0.069915
false
0
0.048729
0
0.125
0.002119
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
ed6b5f33a003c3ef902a30bdc2ac23b77d488f11
8,045
py
Python
code/tools/run_viz_single_task.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
789
2018-03-21T05:28:38.000Z
2022-03-29T19:32:47.000Z
code/tools/run_viz_single_task.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
46
2018-05-03T07:11:10.000Z
2022-03-11T23:26:03.000Z
code/tools/run_viz_single_task.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
152
2018-03-24T10:20:44.000Z
2022-02-09T02:38:10.000Z
from __future__ import absolute_import, division, print_function import argparse import importlib import itertools import time from multiprocessing import Pool import numpy as np import os import pdb import pickle import subprocess import sys import tensorflow as tf import tensorflow.contrib.slim as slim import thr...
35.131004
313
0.605842
969
8,045
4.780186
0.308566
0.01943
0.024611
0.013601
0.18804
0.160622
0.137737
0.092832
0.092832
0.076857
0
0.009131
0.264885
8,045
228
314
35.285088
0.774095
0.082411
0
0.161677
0
0.005988
0.145898
0.030384
0
0
0
0
0
1
0.02994
false
0.005988
0.161677
0
0.203593
0.047904
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
ed6bae7a17f418cda8c2e6d4ee817869bb64ec62
35,884
bzl
Python
stratum/portage/build_defs.bzl
cholve/stratum
09ddb5acb604f7e694a6b7d2fe93fea79f801794
[ "Apache-2.0" ]
267
2019-09-11T15:01:37.000Z
2022-03-28T11:14:29.000Z
stratum/portage/build_defs.bzl
cholve/stratum
09ddb5acb604f7e694a6b7d2fe93fea79f801794
[ "Apache-2.0" ]
906
2019-09-18T03:37:08.000Z
2022-03-30T00:59:53.000Z
stratum/portage/build_defs.bzl
cholve/stratum
09ddb5acb604f7e694a6b7d2fe93fea79f801794
[ "Apache-2.0" ]
107
2019-09-16T07:30:53.000Z
2022-03-18T09:53:03.000Z
# Copyright 2018 Google LLC # Copyright 2018-present Open Networking Foundation # SPDX-License-Identifier: Apache-2.0 """A portable build system for Stratum P4 switch stack. To use this, load() this file in a BUILD file, specifying the symbols needed. The public symbols are the macros: decorate(path) sc_cc_lib ...
35.042969
90
0.582767
4,328
35,884
4.64903
0.143715
0.019681
0.013568
0.007604
0.293375
0.202823
0.157696
0.131554
0.108046
0.063317
0
0.005021
0.306293
35,884
1,023
91
35.077224
0.803278
0.369162
0
0.309231
0
0.001538
0.12986
0.044113
0
0
0
0.002933
0
1
0.027692
false
0
0
0.004615
0.050769
0.004615
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
ed6c12390ca654e898450e0424a1c59a124edd59
96,578
py
Python
src/genie/libs/parser/ios/tests/test_show_platform.py
miuvlad/genieparser
60b1151e3c67c6b55d75e30359d0bf52825efad8
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/ios/tests/test_show_platform.py
miuvlad/genieparser
60b1151e3c67c6b55d75e30359d0bf52825efad8
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/ios/tests/test_show_platform.py
miuvlad/genieparser
60b1151e3c67c6b55d75e30359d0bf52825efad8
[ "Apache-2.0" ]
null
null
null
#!/bin/env python import unittest from unittest.mock import Mock from pyats.topology import Device from genie.metaparser.util.exceptions import SchemaEmptyParserError,\ SchemaMissingKeyError from genie.libs.parser.ios.show_platform import ShowVersion,\ Dir,\ ShowRedundan...
41.307956
153
0.510582
9,787
96,578
4.897415
0.092061
0.046317
0.024035
0.018631
0.736601
0.685652
0.636623
0.588513
0.549874
0.503119
0
0.08707
0.381857
96,578
2,337
154
41.325631
0.715808
0.000166
0
0.40197
0
0.031527
0.425099
0.019666
0
0
0.00117
0
0.038424
1
0.038424
false
0.000985
0.010345
0
0.090148
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
ed6c1e66e6a96e129aa7826692f68edb943e0fae
9,245
py
Python
Analytics/resources/themes/test_subthemes.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
4
2018-11-21T14:42:18.000Z
2020-05-11T10:52:59.000Z
Analytics/resources/themes/test_subthemes.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
60
2018-11-21T15:11:59.000Z
2019-12-02T10:46:44.000Z
Analytics/resources/themes/test_subthemes.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
7
2018-11-21T14:42:44.000Z
2019-11-28T16:24:14.000Z
import unittest from http import HTTPStatus from unittest import TestCase import bcrypt from flask.ctx import AppContext from flask.testing import FlaskClient from app import create_app from models.theme import Theme, SubTheme from models.users import Users class TestSubTemes(TestCase): """ Unittest for the...
42.800926
119
0.589508
1,038
9,245
5.026012
0.133911
0.062105
0.06613
0.027602
0.575618
0.548591
0.502588
0.477477
0.463676
0.422657
0
0.006824
0.318442
9,245
215
120
43
0.82114
0.160087
0
0.377778
0
0
0.115056
0.027104
0
0
0
0
0.133333
1
0.096296
false
0.02963
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
ed6ced72ed9bc083484bd7a8ca32221ff538be8a
12,541
py
Python
python2.7libs/hammer_tools/content_browser.py
anvdev/Hammer-Tools
0211ec837da6754e537c98624ecd07c23abab28e
[ "Apache-2.0" ]
19
2019-10-09T13:48:11.000Z
2021-06-14T01:25:23.000Z
python2.7libs/hammer_tools/content_browser.py
anvdev/Hammer-Tools
0211ec837da6754e537c98624ecd07c23abab28e
[ "Apache-2.0" ]
219
2019-10-08T14:44:48.000Z
2021-06-19T06:27:46.000Z
python2.7libs/hammer_tools/content_browser.py
anvdev/Hammer-Tools
0211ec837da6754e537c98624ecd07c23abab28e
[ "Apache-2.0" ]
3
2020-02-14T06:18:06.000Z
2020-11-25T20:47:06.000Z
from __future__ import print_function try: from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * except ImportError: from PySide2.QtWidgets import * from PySide2.QtGui import * from PySide2.QtCore import * import hou from hammer_tools.utils import createAction d...
37.21365
106
0.660633
1,186
12,541
6.908938
0.228499
0.007811
0.008787
0.012082
0.16866
0.127532
0.109226
0.082866
0.071272
0.041982
0
0.016994
0.239853
12,541
336
107
37.324405
0.842547
0.006299
0
0.197133
0
0
0.033406
0.003533
0
0
0
0
0
1
0.0681
false
0.021505
0.035842
0.003584
0.143369
0.003584
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
ed6cf42a0947849b7e11a5ffae5ba378599d9f7e
1,106
py
Python
rt-thread/applications/server/udp_sender.py
luhuadong/stm32f769-disco-demo
c7fb0d627b02c3f87959f43f1447bc79f62a7099
[ "Apache-2.0" ]
null
null
null
rt-thread/applications/server/udp_sender.py
luhuadong/stm32f769-disco-demo
c7fb0d627b02c3f87959f43f1447bc79f62a7099
[ "Apache-2.0" ]
null
null
null
rt-thread/applications/server/udp_sender.py
luhuadong/stm32f769-disco-demo
c7fb0d627b02c3f87959f43f1447bc79f62a7099
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 """ UDP sender """ import socket import time import sys smsg = b'\xaa\x08\xfe\x00\xc9\xe6\x5f\xee' def main(): ip_port = ('192.168.3.188', 8888) if len(sys.argv) < 2: port = 8888 else: port = int(sys.argv[1]) # 1. ๅˆ›ๅปบ udp ๅฅ—ๆŽฅๅญ— udp_socket = socket.socket(s...
17.83871
65
0.513562
149
1,106
3.671141
0.516779
0.082267
0.076782
0.06947
0.084095
0.084095
0
0
0
0
0
0.071809
0.320072
1,106
61
66
18.131148
0.655585
0.251356
0
0
0
0
0.096894
0.039752
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.148148
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
ed6e6d96a4c0121238dbb61b6a4a506e75d9c0bd
1,007
py
Python
chemmltoolkit/tensorflow/callbacks/variableScheduler.py
Andy-Wilkinson/ChemMLToolk
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
1
2019-10-30T03:43:24.000Z
2019-10-30T03:43:24.000Z
chemmltoolkit/tensorflow/callbacks/variableScheduler.py
Andy-Wilkinson/ChemMLToolk
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
2
2021-11-28T21:09:30.000Z
2021-11-28T21:09:39.000Z
chemmltoolkit/tensorflow/callbacks/variableScheduler.py
Andy-Wilkinson/ChemMLToolkit
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
null
null
null
import tensorflow as tf class VariableScheduler(tf.keras.callbacks.Callback): """Schedules an arbitary variable during training. Arguments: variable: The variable to modify the value of. schedule: A function that takes an epoch index (integer, indexed from 0) and current variable ...
37.296296
73
0.646475
122
1,007
5.245902
0.491803
0.09375
0.05
0
0
0
0
0
0
0
0
0.00813
0.26713
1,007
26
74
38.730769
0.859079
0.345581
0
0
0
0
0.144231
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.285714
0.071429
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
ed71593db0e5552171798bc1852cca8f7c4d9f3e
2,285
py
Python
components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py
mastermind88/dash
760af721980e18d91bdbc4e204d1d063c7ed325c
[ "MIT" ]
null
null
null
components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py
mastermind88/dash
760af721980e18d91bdbc4e204d1d063c7ed325c
[ "MIT" ]
null
null
null
components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py
mastermind88/dash
760af721980e18d91bdbc4e204d1d063c7ed325c
[ "MIT" ]
null
null
null
from dash import Dash, Input, Output, dcc, html from dash.exceptions import PreventUpdate def test_dddo001_dynamic_options(dash_dcc): dropdown_options = [ {"label": "New York City", "value": "NYC"}, {"label": "Montreal", "value": "MTL"}, {"label": "San Francisco", "value": "SF"}, ] ...
27.202381
87
0.647265
299
2,285
4.705686
0.327759
0.074627
0.072495
0.03838
0.284293
0.208955
0.167733
0.093817
0.093817
0
0
0.007834
0.217943
2,285
83
88
27.53012
0.779519
0.088403
0
0.207547
0
0
0.210881
0.034665
0
0
0
0
0.113208
1
0.075472
false
0
0.037736
0
0.132075
0.018868
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
ed725c3c070133c88aad862a90d3bfcbc58edf09
768
py
Python
Server.py
dipghoshraj/live-video-streming-with-web-socket
dda924e22a4c40d225ec39dd94ee1e489233c403
[ "BSD-2-Clause" ]
3
2020-06-30T03:49:46.000Z
2021-07-17T16:15:55.000Z
Server.py
dipghoshraj/live-video-streming-with-web-socket
dda924e22a4c40d225ec39dd94ee1e489233c403
[ "BSD-2-Clause" ]
null
null
null
Server.py
dipghoshraj/live-video-streming-with-web-socket
dda924e22a4c40d225ec39dd94ee1e489233c403
[ "BSD-2-Clause" ]
null
null
null
import cv2 import io import socket import struct import time import pickle import zlib client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client_socket.connect(('127.0.0.1', 8485)) connection = client_socket.makefile('wb') cam = cv2.VideoCapture("E:/songs/Attention Charlie Puth(GabbarWorld.com) 1080p.mp4...
29.538462
84
0.71224
115
768
4.643478
0.565217
0.089888
0.067416
0.06367
0
0
0
0
0
0
0
0.049849
0.138021
768
25
85
30.72
0.756798
0.057292
0
0
0
0
0.112656
0.029207
0
0
0
0
0
1
0
false
0
0.291667
0
0.291667
0.041667
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
ed74d0762a12ab84a6b4c685f57a0a532e003b99
7,059
py
Python
hal/agent/tf2_utils.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
hal/agent/tf2_utils.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
hal/agent/tf2_utils.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.380734
79
0.696841
1,034
7,059
4.591876
0.268859
0.029486
0.043808
0.022746
0.157329
0.132477
0.064869
0.046335
0.046335
0.022746
0
0.01482
0.197053
7,059
217
80
32.529954
0.822865
0.47103
0
0.120482
0
0
0.005108
0
0
0
0
0
0.012048
1
0.13253
false
0
0.036145
0.012048
0.301205
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
ed753328e567a24c6d1169588942c86a984af1ee
4,437
py
Python
wolk/logger_factory.py
Wolkabout/WolkConnect-Python-
11412e3f88911170f587b5e857d07ab41c8f52b5
[ "Apache-2.0" ]
6
2016-12-19T13:36:44.000Z
2018-05-10T15:08:15.000Z
wolk/logger_factory.py
Wolkabout/WolkConnect-Python
11412e3f88911170f587b5e857d07ab41c8f52b5
[ "Apache-2.0" ]
5
2019-02-23T09:37:12.000Z
2021-09-17T13:54:58.000Z
wolk/logger_factory.py
Wolkabout/WolkConnect-Python-
11412e3f88911170f587b5e857d07ab41c8f52b5
[ "Apache-2.0" ]
3
2016-08-15T22:19:00.000Z
2017-12-28T09:48:37.000Z
"""LoggerFactory Module.""" # Copyright 2020 WolkAbout Technology s.r.o. # # 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 # # Unl...
30.8125
88
0.610773
539
4,437
4.940631
0.278293
0.042058
0.020278
0.013519
0.160721
0.064589
0.032294
0.032294
0.032294
0.032294
0
0.002569
0.298174
4,437
143
89
31.027972
0.852601
0.334235
0
0.180556
0
0
0.08502
0.017667
0
0
0
0
0
1
0.055556
false
0
0.041667
0
0.152778
0.013889
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
ed7563752fb4afab443eb59eb4484ffff4182b40
1,830
py
Python
raw.py
andre-marcos-perez/data-pipeline-demo
2647cce6e90d39798eda352608dc0f6d6ab5255a
[ "MIT" ]
3
2021-05-20T23:24:13.000Z
2021-08-20T12:23:18.000Z
raw.py
andre-marcos-perez/data-pipeline-demo
2647cce6e90d39798eda352608dc0f6d6ab5255a
[ "MIT" ]
null
null
null
raw.py
andre-marcos-perez/data-pipeline-demo
2647cce6e90d39798eda352608dc0f6d6ab5255a
[ "MIT" ]
3
2021-05-26T14:49:20.000Z
2022-03-21T23:17:54.000Z
import json import gzip import requests from datetime import datetime import pendulum import boto3 from botocore.exceptions import ClientError from util.log import Log from settings.aws_settings import AWSSettings from settings.telegram_settings import TelegramSettings def lambda_handler(event: dict, context: dict)...
31.016949
103
0.62623
226
1,830
4.964602
0.469027
0.032086
0.023173
0.037433
0.096257
0.057041
0.057041
0.057041
0
0
0
0.005818
0.248634
1,830
58
104
31.551724
0.810182
0
0
0.046512
0
0
0.162842
0.043169
0
0
0
0
0
1
0.023256
false
0
0.232558
0
0.27907
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
ed75b8a825782f227e671daaa305387cdcbcd9d0
2,688
py
Python
v2_hier/site_stat.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
v2_hier/site_stat.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
v2_hier/site_stat.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
"""Collecting statistics of site visits.""" import collections from datetime import datetime from functools import reduce from django.utils.translation import gettext_lazy as _ from hier.models import IPInfo, AccessLog, SiteStat from v2_hier.utils import APPS def get_site_stat(user): """Processing a new portion of...
31.623529
115
0.599702
358
2,688
4.399441
0.335196
0.045714
0.025397
0.019048
0.039365
0.039365
0
0
0
0
0
0.006684
0.276414
2,688
84
116
32
0.803085
0.146577
0
0.116667
0
0
0.055556
0
0
0
0
0
0
1
0.033333
false
0
0.1
0
0.216667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed75ce190b9f65a6716720968d522d43762ebdb0
16,643
py
Python
cli/pcluster/utils.py
mkosmo/cfncluster
f1817cc187f2b92127d48f16debb4b7ea4f4a80f
[ "Apache-2.0" ]
1
2021-04-08T05:08:07.000Z
2021-04-08T05:08:07.000Z
cli/pcluster/utils.py
mkosmo/cfncluster
f1817cc187f2b92127d48f16debb4b7ea4f4a80f
[ "Apache-2.0" ]
null
null
null
cli/pcluster/utils.py
mkosmo/cfncluster
f1817cc187f2b92127d48f16debb4b7ea4f4a80f
[ "Apache-2.0" ]
1
2019-05-10T16:03:19.000Z
2019-05-10T16:03:19.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with # the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
35.714592
119
0.672715
2,168
16,643
5.005074
0.208026
0.019077
0.006451
0.010967
0.16404
0.110497
0.091697
0.057414
0.040273
0.025528
0
0.008649
0.221955
16,643
465
120
35.791398
0.82933
0.303251
0
0.112971
0
0
0.180763
0.01251
0
0
0
0
0
1
0.125523
false
0.008368
0.054393
0.008368
0.280335
0.025105
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
ed7707a9a93d2eb459c06d85459c2db5718ad3cc
3,963
py
Python
tools/telemetry/telemetry/core/platform/android_device_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
tools/telemetry/telemetry/core/platform/android_device_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/core/platform/android_device_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from telemetry import benchmark from telemetry.core import browser_options from telemetry.core.platform import android_device from telemetry...
39.63
78
0.7459
427
3,963
6.665105
0.276347
0.123331
0.095573
0.11806
0.582221
0.570625
0.490162
0.472242
0.385453
0.363317
0
0.032364
0.157961
3,963
99
79
40.030303
0.820497
0.041383
0
0.417722
0
0
0.152346
0.020559
0
0
0
0
0.164557
1
0.151899
false
0
0.075949
0
0.253165
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
ed7911d27c0fa532add30880dc5c7b6aaf924408
1,265
py
Python
logger.py
bekaaa/xgboost_tuner
2d93f6cc751b3a8778420a88caf73fd1dc8ef2ce
[ "MIT" ]
null
null
null
logger.py
bekaaa/xgboost_tuner
2d93f6cc751b3a8778420a88caf73fd1dc8ef2ce
[ "MIT" ]
null
null
null
logger.py
bekaaa/xgboost_tuner
2d93f6cc751b3a8778420a88caf73fd1dc8ef2ce
[ "MIT" ]
1
2019-03-16T14:30:07.000Z
2019-03-16T14:30:07.000Z
#! /usr/bin/env python import logging #--------------------------------------- class logger : ''' A ready to use logging class. All you need to do is set an object with the parameters (log_filename, directory to save it) then whenever you want to add text, type obj.add("some text"). The function obj.close() is no...
31.625
93
0.622925
162
1,265
4.808642
0.5
0.084724
0.04878
0
0
0
0
0
0
0
0
0
0.149407
1,265
39
94
32.435897
0.723978
0.392885
0
0.115385
0
0
0.062667
0
0
0
0
0
0.076923
1
0.115385
false
0
0.038462
0
0.307692
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
ed79b8872d0353b944045d77a3b550a09342bdbf
5,536
py
Python
baselines/prep_baseline.py
lessleslie/slm-code-generation
017ac0828faf3467e9f85883e27be09ec3898b14
[ "MIT" ]
64
2020-06-23T06:27:42.000Z
2022-03-30T07:44:52.000Z
baselines/prep_baseline.py
lessleslie/slm-code-generation
017ac0828faf3467e9f85883e27be09ec3898b14
[ "MIT" ]
11
2020-07-14T23:29:31.000Z
2021-09-17T15:17:49.000Z
baselines/prep_baseline.py
tech-srl/slm-code-generation
15fe4e1df82e49587f725577f870ca12dc42903a
[ "MIT" ]
6
2020-07-09T08:42:04.000Z
2021-03-02T14:35:31.000Z
import json import multiprocessing as mp import re from argparse import ArgumentParser from enum import Enum, auto import javalang from functools import partial PRED_TOKEN = 'PRED' modifiers = ['public', 'private', 'protected', 'static'] class TargetType(Enum): seq = auto() tree = auto() @staticmethod ...
40.408759
146
0.629516
718
5,536
4.603064
0.215877
0.04236
0.04115
0.036309
0.302874
0.222693
0.172466
0.116188
0.077156
0.038729
0
0.004564
0.248013
5,536
136
147
40.705882
0.789335
0.020592
0
0.099099
0
0.009009
0.148893
0
0
0
0
0
0
1
0.054054
false
0
0.063063
0.018018
0.216216
0.018018
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
ed7d572858561992a56ab8312f08925dad1d2745
6,260
py
Python
ebay.py
SpironoZeppeli/Magic-The-Scannening
93c595a4c98fb725a79eeddfaba99cb0409d41fb
[ "MIT" ]
null
null
null
ebay.py
SpironoZeppeli/Magic-The-Scannening
93c595a4c98fb725a79eeddfaba99cb0409d41fb
[ "MIT" ]
null
null
null
ebay.py
SpironoZeppeli/Magic-The-Scannening
93c595a4c98fb725a79eeddfaba99cb0409d41fb
[ "MIT" ]
null
null
null
import requests import urllib.request import urllib.parse import PIL import re import configparser import json from PIL import Image from ebaysdk.trading import Connection as Trading from ebaysdk.exception import ConnectionError from yaml import load from PyQt5.QtWidgets import QMessageBox class EbaySeller: def ...
42.013423
119
0.546486
657
6,260
5.086758
0.295282
0.058648
0.037702
0.048474
0.283064
0.239677
0.231897
0.214542
0.185218
0.120886
0
0.008375
0.332428
6,260
148
120
42.297297
0.791338
0.021566
0
0.284615
0
0
0.204609
0.018631
0
0
0
0
0
1
0.030769
false
0
0.092308
0
0.138462
0.092308
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
ed7de0c98f16f1e656d840a2c9ad1e60a28cfa7f
3,175
py
Python
bot/exts/github/github.py
v1nam/gurkbot
a0f5e05a5f65e6169accc90271fca58f4df211fe
[ "MIT" ]
24
2020-12-18T07:26:14.000Z
2022-03-30T22:56:49.000Z
bot/exts/github/github.py
v1nam/gurkbot
a0f5e05a5f65e6169accc90271fca58f4df211fe
[ "MIT" ]
143
2020-12-18T09:13:51.000Z
2022-03-02T19:27:44.000Z
bot/exts/github/github.py
v1nam/gurkbot
a0f5e05a5f65e6169accc90271fca58f4df211fe
[ "MIT" ]
44
2020-12-18T09:05:29.000Z
2022-03-02T20:06:23.000Z
import typing from bot.constants import BOT_REPO_URL from discord import Embed from discord.ext import commands from discord.ext.commands.cooldowns import BucketType from . import _issues, _profile, _source class Github(commands.Cog): """ Github Category cog, which contains commands related to github. ...
34.89011
88
0.640945
391
3,175
5.092072
0.28133
0.024611
0.030136
0.044199
0.253139
0.185836
0.129583
0.129583
0.088398
0
0
0.001258
0.249134
3,175
90
89
35.277778
0.832634
0.093543
0
0.145455
0
0
0.072125
0.008967
0
0
0
0
0
1
0.036364
false
0
0.109091
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
ed7de7f5235ff8dd0c5f7e122b59415ab3622dc6
1,154
py
Python
log/slack_sender.py
SmashKs/BarBarian
b308dcb9e24ec621abbbc121847923e14e5b6a4b
[ "MIT" ]
null
null
null
log/slack_sender.py
SmashKs/BarBarian
b308dcb9e24ec621abbbc121847923e14e5b6a4b
[ "MIT" ]
2
2020-06-05T19:25:24.000Z
2021-06-10T20:56:57.000Z
log/slack_sender.py
SmashKs/BarBarian
b308dcb9e24ec621abbbc121847923e14e5b6a4b
[ "MIT" ]
null
null
null
from slackclient import SlackClient from external import SLACK_API_KEY class SlackBot: API_CHAT_MSG = 'chat.postMessage' BOT_NAME = 'News Bot' DEFAULT_CHANNEL = 'news_notification' def __new__(cls, *p, **k): if '_the_instance' not in cls.__dict__: cls._the_instance = object.__new...
32.971429
70
0.559792
121
1,154
4.801653
0.371901
0.056799
0.077453
0.092943
0.333907
0.333907
0.333907
0.333907
0.333907
0.333907
0
0
0.358752
1,154
34
71
33.941176
0.785135
0
0
0.32
0
0
0.064991
0
0
0
0
0
0
1
0.16
false
0
0.08
0
0.44
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
ed7e4d3da4d7bdad5eca61e8c5160dfe0d14608f
2,379
py
Python
src/pytezos/block/forge.py
miracle2k/pytezos
e6b99f00f342d9a05b0c36a9883040961fd6d58e
[ "MIT" ]
98
2019-02-07T16:33:38.000Z
2022-03-31T15:53:41.000Z
src/pytezos/block/forge.py
miracle2k/pytezos
e6b99f00f342d9a05b0c36a9883040961fd6d58e
[ "MIT" ]
152
2019-05-20T16:38:56.000Z
2022-03-30T14:24:38.000Z
src/pytezos/block/forge.py
miracle2k/pytezos
e6b99f00f342d9a05b0c36a9883040961fd6d58e
[ "MIT" ]
34
2019-07-25T12:03:51.000Z
2021-11-11T22:23:38.000Z
from typing import Any, Dict, List, Tuple from pytezos.michelson.forge import forge_array, forge_base58, optimize_timestamp def bump_fitness(fitness: Tuple[str, str]) -> Tuple[str, str]: if len(fitness) == 0: major = 0 minor = 1 else: major = int.from_bytes(bytes.fromhex(fitness[0]), ...
33.985714
87
0.666246
320
2,379
4.725
0.2375
0.074074
0.042989
0.042328
0.180556
0.154101
0
0
0
0
0
0.016021
0.186633
2,379
69
88
34.478261
0.765375
0
0
0.153846
0
0
0.113073
0.01177
0
0
0
0
0
1
0.153846
false
0.019231
0.038462
0.057692
0.346154
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
ed7f467835f32242a9650f226b4a5ad9d6d87af4
5,321
py
Python
python/paddle/fluid/tests/unittests/test_roi_pool_op.py
jichangjichang/Paddle
4fa3cee5499c6df0ad6043b0cfa220d09f2034e8
[ "Apache-2.0" ]
9
2017-12-04T02:58:01.000Z
2020-12-03T14:46:30.000Z
python/paddle/fluid/tests/unittests/test_roi_pool_op.py
jichangjichang/Paddle
4fa3cee5499c6df0ad6043b0cfa220d09f2034e8
[ "Apache-2.0" ]
7
2017-12-05T20:29:08.000Z
2018-10-15T08:57:40.000Z
python/paddle/fluid/tests/unittests/test_roi_pool_op.py
jichangjichang/Paddle
4fa3cee5499c6df0ad6043b0cfa220d09f2034e8
[ "Apache-2.0" ]
6
2018-03-19T22:38:46.000Z
2019-11-01T22:28:27.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
37.20979
80
0.543131
705
5,321
3.902128
0.236879
0.058161
0.058161
0.017448
0.217739
0.125772
0.047256
0.047256
0.047256
0.047256
0
0.017321
0.348995
5,321
142
81
37.471831
0.776848
0.111633
0
0
0
0
0.020382
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.153061
0.010204
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
ed801190784fa836d2752af1e6b10b54a93fa361
2,518
py
Python
Day20.py
SheepiCagio/Advent-of-Code-2021
52f0035da2cb258810d8947cbf56b51b65a9fe8b
[ "MIT" ]
null
null
null
Day20.py
SheepiCagio/Advent-of-Code-2021
52f0035da2cb258810d8947cbf56b51b65a9fe8b
[ "MIT" ]
null
null
null
Day20.py
SheepiCagio/Advent-of-Code-2021
52f0035da2cb258810d8947cbf56b51b65a9fe8b
[ "MIT" ]
null
null
null
import numpy as np raw = open("inputs/20.txt","r").readlines() input_array= [(i.replace('\n', '').replace('.','0').replace('#', '1')) for i in raw] test_raw = open("inputs/20_test.txt","r").readlines() test_array= [(i.replace('\n', '').replace('.','0').replace('#', '1')) for i in test_raw] def addLayerZero(grid): #if...
35.464789
110
0.635822
423
2,518
3.725768
0.170213
0.053299
0.035533
0.071066
0.513959
0.469543
0.441624
0.441624
0.395939
0.384518
0
0.032243
0.137808
2,518
71
111
35.464789
0.69369
0.136219
0
0.113208
0
0
0.036011
0
0
0
0
0
0
1
0.075472
false
0
0.018868
0
0.150943
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
ed8134024179e7e4607f23c5ef95e9da1da3820b
1,674
py
Python
questions/53349623/main.py
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
302
2017-03-04T00:05:23.000Z
2022-03-28T22:51:29.000Z
questions/53349623/main.py
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
30
2017-12-02T19:26:43.000Z
2022-03-28T07:40:36.000Z
questions/53349623/main.py
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
388
2017-07-04T16:53:12.000Z
2022-03-18T22:20:19.000Z
import sys from PyQt5 import QtCore, QtGui, QtWidgets class Demo(QtWidgets.QWidget): def __init__(self): super(Demo, self).__init__() self.button = QtWidgets.QPushButton() self.label = QtWidgets.QLabel(alignment=QtCore.Qt.AlignCenter) self.combo = QtWidgets.QComboBox(self) ...
32.823529
84
0.642772
183
1,674
5.754098
0.42623
0.051282
0.041785
0.05698
0.146249
0
0
0
0
0
0
0.00077
0.224612
1,674
51
85
32.823529
0.810478
0
0
0.051282
0
0
0.037612
0
0
0
0
0
0
1
0.102564
false
0
0.051282
0
0.179487
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
ed81492b65a1f232ede7d038b4670a415f3f191c
1,638
py
Python
tests/test_error_descriptions_from_raises.py
iterait/apistrap
e83460fa97f13a95a928971b0d2defe0ac611911
[ "MIT" ]
6
2018-09-06T18:32:48.000Z
2021-05-28T01:03:32.000Z
tests/test_error_descriptions_from_raises.py
iterait/apistrap
e83460fa97f13a95a928971b0d2defe0ac611911
[ "MIT" ]
53
2018-09-06T16:16:53.000Z
2021-05-19T14:36:58.000Z
tests/test_error_descriptions_from_raises.py
iterait/apistrap
e83460fa97f13a95a928971b0d2defe0ac611911
[ "MIT" ]
null
null
null
import pytest from apistrap.flask import FlaskApistrap from apistrap.schemas import ErrorResponse @pytest.fixture() def app_with_raises(app): oapi = FlaskApistrap() @app.route("/", methods=["GET"]) def view(): """ Something something. :raises KeyError: KeyError description ...
23.4
69
0.527473
141
1,638
5.957447
0.326241
0.033333
0.061905
0.045238
0.696429
0.657143
0.588095
0.588095
0.588095
0.588095
0
0.008242
0.333333
1,638
69
70
23.73913
0.760989
0.073871
0
0.545455
0
0
0.182944
0.046768
0
0
0
0
0.045455
1
0.136364
false
0
0.068182
0
0.204545
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
ed82dc9fed173aeada3cbab76076165a4c9b3932
1,126
py
Python
projects/api/UsersApi.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
projects/api/UsersApi.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
projects/api/UsersApi.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
#$Id$ from projects.util.ZohoHttpClient import ZohoHttpClient from projects.api.Api import Api from projects.parser.UsersParser import UsersParser base_url = Api().base_url zoho_http_client = ZohoHttpClient() parser = UsersParser() class UsersApi: """Users Api class is used to 1.Get all the users in th...
25.590909
101
0.617229
139
1,126
4.848921
0.345324
0.083086
0.041543
0.041543
0.091988
0.091988
0.091988
0.091988
0
0
0
0.001241
0.284192
1,126
43
102
26.186047
0.834988
0.312611
0
0
0
0
0.049475
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ed82e608ff9e5d51a3d3e7cab08afa27210afbdb
11,340
py
Python
useless/tuck_arms.py
leader1313/Baxter_teleoperation_system
856d999acd73e6c1dc15a342cb6c4fcd1a482863
[ "Apache-2.0" ]
null
null
null
useless/tuck_arms.py
leader1313/Baxter_teleoperation_system
856d999acd73e6c1dc15a342cb6c4fcd1a482863
[ "Apache-2.0" ]
2
2019-10-15T07:24:24.000Z
2019-10-15T07:28:19.000Z
useless/tuck_arms.py
leader1313/Baxter_teleoperation_system
856d999acd73e6c1dc15a342cb6c4fcd1a482863
[ "Apache-2.0" ]
1
2020-09-15T12:37:13.000Z
2020-09-15T12:37:13.000Z
#!/usr/bin/env python # Copyright (c) 2013-2015, Rethink Robotics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
42.47191
79
0.568078
1,320
11,340
4.699242
0.237879
0.028373
0.029018
0.015476
0.312429
0.197324
0.167661
0.11575
0.11575
0.11575
0
0.01454
0.326808
11,340
266
80
42.631579
0.798009
0.20485
0
0.267016
0
0
0.1171
0.021739
0
0
0
0
0
1
0.041885
false
0
0.036649
0
0.109948
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
ed849abb775e5f57be3b9019dbf370e35893e0b2
606
py
Python
Python/leetcode.031.next-permutation.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
Python/leetcode.031.next-permutation.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
Python/leetcode.031.next-permutation.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution(object): def nextPermutation(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ if not nums: return n = len(nums)-1 while n > 0 and nums[n-1] >= nums[n]: n -= 1 t = n...
27.545455
74
0.429043
84
606
3.095238
0.357143
0.134615
0.115385
0.076923
0.084615
0
0
0
0
0
0
0.037037
0.420792
606
22
75
27.545455
0.703704
0.145215
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.222222
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
ed86102b88fe53e5292e7840680746dc239293e9
4,883
py
Python
test/unit/app/tools/test_select_parameters.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
test/unit/app/tools/test_select_parameters.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
6
2021-11-11T20:57:49.000Z
2021-12-10T15:30:33.000Z
test/unit/app/tools/test_select_parameters.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
from unittest.mock import Mock import pytest from galaxy import model from galaxy.tools.parameters import basic from .util import BaseParameterTestCase class SelectToolParameterTestCase(BaseParameterTestCase): def test_validated_values(self): self.options_xml = """<options><filter type="data_meta" ref="...
45.635514
137
0.643662
592
4,883
5.089527
0.212838
0.045138
0.041819
0.05078
0.537006
0.51842
0.51842
0.509127
0.509127
0.509127
0
0.008698
0.223019
4,883
106
138
46.066038
0.785451
0.026623
0
0.149425
0
0.034483
0.241103
0.039377
0
0
0
0.009434
0.126437
1
0.126437
false
0
0.057471
0.011494
0.229885
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
ed8c04e174410b92850aae3e034c73bb05a4abae
4,351
py
Python
src/selfdroid/appstorage/crud/AppAdder.py
vitlabuda/selfdroid-web-app
9eac9ee2c34038de13e179b6afb3d530a086e7b2
[ "Apache-2.0", "BSD-3-Clause" ]
1
2022-03-13T14:57:04.000Z
2022-03-13T14:57:04.000Z
src/selfdroid/appstorage/crud/AppAdder.py
vitlabuda/selfdroid-web-app
9eac9ee2c34038de13e179b6afb3d530a086e7b2
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/selfdroid/appstorage/crud/AppAdder.py
vitlabuda/selfdroid-web-app
9eac9ee2c34038de13e179b6afb3d530a086e7b2
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause # # Copyright (c) 2021 Vรญt Labuda. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # 1. Redistributions of source code must retain the above copyright notice...
44.397959
234
0.75385
576
4,351
5.493056
0.401042
0.03287
0.043616
0.02402
0.156764
0.105247
0.092604
0.042984
0.042984
0.042984
0
0.00311
0.187083
4,351
97
235
44.85567
0.891433
0.400598
0
0.046512
0
0.023256
0.065986
0
0
0
0
0
0.023256
1
0.116279
false
0
0.232558
0
0.44186
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
71ebf7fd79d9cbf3e546f3b0a0480b99be5ed04d
3,549
py
Python
websockets.py
ejojmjn/indiana-phone
5d666ac651d3e02291806f24c265564002912e00
[ "MIT" ]
null
null
null
websockets.py
ejojmjn/indiana-phone
5d666ac651d3e02291806f24c265564002912e00
[ "MIT" ]
null
null
null
websockets.py
ejojmjn/indiana-phone
5d666ac651d3e02291806f24c265564002912e00
[ "MIT" ]
null
null
null
#from gevent import monkey #monkey.patch_all() from flask import Flask, render_template, json from flask_socketio import SocketIO, emit from pydbus import SystemBus from gi.repository import GLib import threading import json app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app, async_m...
32.263636
151
0.641589
446
3,549
4.973094
0.360987
0.025248
0.03156
0.049594
0.359333
0.33679
0.307033
0.307033
0.255185
0.195672
0
0.021372
0.182587
3,549
109
152
32.559633
0.743192
0.057481
0
0.228916
0
0.012048
0.419539
0.113275
0
0
0
0
0
1
0.048193
false
0
0.072289
0.012048
0.13253
0.036145
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
71ecbe30760d8ff6d5c97c8f6cb9ae037d64dc1b
39,956
py
Python
sc2/bot_ai.py
Lexa307/PhotonDefender
a08dc652e5c64e3ccb33b7cfa206846dca0575bd
[ "MIT" ]
2
2019-07-17T13:00:32.000Z
2019-07-17T13:09:30.000Z
sc2/bot_ai.py
Lexa307/PhotonDefender
a08dc652e5c64e3ccb33b7cfa206846dca0575bd
[ "MIT" ]
null
null
null
sc2/bot_ai.py
Lexa307/PhotonDefender
a08dc652e5c64e3ccb33b7cfa206846dca0575bd
[ "MIT" ]
null
null
null
import itertools import logging import math import random from collections import Counter from typing import Any, Dict, List, Optional, Set, Tuple, Union # mypy type checking from .cache import property_cache_forever, property_cache_once_per_frame from .data import ActionResult, Alert, Race, Result, Target, race_gas,...
44.150276
180
0.633922
4,991
39,956
4.908636
0.140453
0.012735
0.009796
0.004857
0.273562
0.23401
0.198498
0.169517
0.155557
0.13772
0
0.008333
0.29122
39,956
904
181
44.199115
0.856744
0.178947
0
0.237113
0
0
0.011323
0.000712
0
0
0
0.002212
0.02921
1
0.065292
false
0.005155
0.032646
0.008591
0.219931
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
71ecddbb1bd02f445d97d4e77a4a4128c68a4abe
4,260
py
Python
src/python/pants/jvm/resolve/lockfile_metadata.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
src/python/pants/jvm/resolve/lockfile_metadata.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
6
2022-01-25T15:49:26.000Z
2022-02-09T11:21:13.000Z
src/python/pants/jvm/resolve/lockfile_metadata.py
thejcannon/pants
7c24f42cb78cc462b63698cef736eda7a85c40e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from dataclasses import dataclass from enum import Enum from typing import Any, Iterable, cast from pants.core.util_rules.lockfile_metadata import ( ...
33.809524
100
0.711268
431
4,260
6.87703
0.361949
0.026991
0.052632
0.022267
0.084345
0.084345
0.084345
0.084345
0.062753
0.062753
0
0.004841
0.224178
4,260
125
101
34.08
0.891982
0.236854
0
0.217949
0
0
0.035964
0.02387
0
0
0
0
0
1
0.089744
false
0
0.089744
0.025641
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
71ece1b40046a77ed95f80492a330f22d42912ee
1,528
py
Python
generator/generator.py
GregorKikelj/opendbc
a20ed24ea2593e5d019adf538dc0cecfc7ef8709
[ "MIT" ]
1,059
2017-05-31T06:33:27.000Z
2022-03-31T23:02:29.000Z
generator/generator.py
DIMO-Network/opendbc
9a1fbe581846f9d0191f142f498ef3f1c35826ea
[ "MIT" ]
248
2017-07-14T01:45:40.000Z
2022-03-21T17:55:26.000Z
generator/generator.py
DIMO-Network/opendbc
9a1fbe581846f9d0191f142f498ef3f1c35826ea
[ "MIT" ]
940
2017-06-02T16:40:42.000Z
2022-03-29T16:49:58.000Z
#!/usr/bin/env python3 import os import re cur_path = os.path.dirname(os.path.realpath(__file__)) opendbc_root = os.path.join(cur_path, '../') include_pattern = re.compile(r'CM_ "IMPORT (.*?)";') def read_dbc(src_dir, filename): with open(os.path.join(src_dir, filename)) as file_in: return file_in.read() def...
28.296296
90
0.716623
228
1,528
4.429825
0.289474
0.053465
0.059406
0.074257
0.188119
0.146535
0.146535
0.081188
0
0
0
0.000781
0.161649
1,528
53
91
28.830189
0.787666
0.032723
0
0.060606
0
0
0.108475
0
0
0
0
0
0
1
0.090909
false
0
0.121212
0
0.242424
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
71ef13879f7d9412c115fe5712bcdcce5a10b758
4,067
py
Python
src/ripper.py
jg-rivera/cert-ripper
2bab5e02cd2da8e92a1c308640917b6f5ee729cb
[ "MIT" ]
null
null
null
src/ripper.py
jg-rivera/cert-ripper
2bab5e02cd2da8e92a1c308640917b6f5ee729cb
[ "MIT" ]
null
null
null
src/ripper.py
jg-rivera/cert-ripper
2bab5e02cd2da8e92a1c308640917b6f5ee729cb
[ "MIT" ]
null
null
null
from dotenv import load_dotenv from PyPDF2 import PdfFileReader, PdfFileWriter import os import json class CertRipper: def __init__( self, start_page_index=0, master_pdf_path=None, json_points_path=None, ripped_certs_path=None, ripped_cert_file_name=None, ): ...
35.060345
152
0.614212
469
4,067
4.921109
0.185501
0.046794
0.042461
0.046794
0.110919
0.02773
0
0
0
0
0
0.013786
0.304401
4,067
115
153
35.365217
0.80205
0
0
0.033708
0
0.022472
0.14507
0.056061
0
0
0
0
0
1
0.05618
false
0
0.044944
0
0.123596
0.033708
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
71ef7b545410fc717e2f36b835e68675481e1947
2,192
py
Python
venv/Lib/site-packages/tests/test_111_FieldNumAddCol.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_111_FieldNumAddCol.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_111_FieldNumAddCol.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_111_FieldNumAddCol(self): obj = IbmDbTestFunctions() obj.assert_expect(self.run_...
21.92
123
0.629562
317
2,192
4.11041
0.293375
0.092095
0.122794
0.159632
0.478895
0.445127
0.445127
0.445127
0.445127
0.445127
0
0.0366
0.22719
2,192
99
124
22.141414
0.732586
0.145073
0
0.133333
0
0
0.132313
0
0
0
0
0
0.022222
1
0.044444
false
0.022222
0.088889
0
0.155556
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71f05726793fa3f17f84622c2fdc4b1adae30d42
2,382
py
Python
foundation/djangocms_pagebanner/cms_toolbar.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
foundation/djangocms_pagebanner/cms_toolbar.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
foundation/djangocms_pagebanner/cms_toolbar.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
from cms.api import get_page_draft from cms.toolbar_pool import toolbar_pool from cms.toolbar_base import CMSToolbar from cms.utils import get_cms_setting from cms.utils.permissions import has_page_change_permission from django.core.urlresolvers import reverse, NoReverseMatch from django.utils.translation import ugette...
41.789474
76
0.625105
257
2,382
5.455253
0.330739
0.062767
0.071327
0.047076
0.142653
0.077033
0
0
0
0
0
0
0.321998
2,382
56
77
42.535714
0.868111
0.064232
0
0.111111
0
0
0.066127
0.046334
0
0
0
0
0
1
0.022222
false
0.022222
0.177778
0
0.244444
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
71f0694c1e4dfc112a543268e37e44700697d2ed
7,346
py
Python
tasks/lm/models/lm.py
etri-edgeai/nn-comp-discblock
6e00a019c223508797ca91a7d5ffec7917b12c6d
[ "Apache-2.0" ]
10
2021-11-19T06:24:51.000Z
2022-02-09T15:44:00.000Z
tasks/lm/models/lm.py
etri-edgeai/nn-comp-discblock
6e00a019c223508797ca91a7d5ffec7917b12c6d
[ "Apache-2.0" ]
9
2021-10-01T11:06:27.000Z
2021-12-23T02:10:52.000Z
tasks/lm/models/lm.py
etri-edgeai/nn-comp-discblock
6e00a019c223508797ca91a7d5ffec7917b12c6d
[ "Apache-2.0" ]
2
2021-09-14T04:08:36.000Z
2021-11-19T06:24:54.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F class RNNModel(nn.Module): """Container module with an encoder, a recurrent module, and a decoder.""" def __init__(self, rnn_type, ntoken, ninp, nhid, nlayers, dropout=0.5, tie_weights=False, encoder=None, decoder=None): su...
40.585635
122
0.611081
918
7,346
4.745098
0.253813
0.037879
0.015152
0.023875
0.301194
0.270432
0.247016
0.23416
0.225895
0.185491
0
0.017345
0.277974
7,346
180
123
40.811111
0.803922
0.197659
0
0.351563
0
0
0.057963
0
0
0
0
0
0
1
0.078125
false
0
0.046875
0
0.195313
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
71f3dc5d5c4a8e087378f18d43a8168ef202c67c
30,964
py
Python
pytype/analyze.py
hatal175/pytype
22150dd56c2a11f3d385a1cbb28eed985df31d72
[ "Apache-2.0" ]
null
null
null
pytype/analyze.py
hatal175/pytype
22150dd56c2a11f3d385a1cbb28eed985df31d72
[ "Apache-2.0" ]
null
null
null
pytype/analyze.py
hatal175/pytype
22150dd56c2a11f3d385a1cbb28eed985df31d72
[ "Apache-2.0" ]
null
null
null
"""Code for checking and inferring types.""" import collections import logging import re import subprocess from typing import Any, Dict, Union from pytype import abstract from pytype import abstract_utils from pytype import convert_structural from pytype import debug from pytype import function from pytype import met...
41.61828
80
0.687993
4,092
30,964
5.027615
0.159091
0.018082
0.007777
0.005833
0.158557
0.113401
0.061391
0.03733
0.022651
0.019054
0
0.002204
0.223324
30,964
743
81
41.674293
0.853258
0.226295
0
0.108159
0
0
0.033335
0.004241
0
0
0
0.001346
0.005693
1
0.077799
false
0.001898
0.047438
0.005693
0.199241
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
71f490ebabe7d689d377fda1a39b6fe3eaf67bee
3,979
py
Python
src/cupcake/post_isoseq_cluster/demux_by_barcode_groups.py
milescsmith/cDNA_Cupcake
776d841c69fc6d8b3dce95bb9f076546bc0429c0
[ "BSD-3-Clause-Clear" ]
null
null
null
src/cupcake/post_isoseq_cluster/demux_by_barcode_groups.py
milescsmith/cDNA_Cupcake
776d841c69fc6d8b3dce95bb9f076546bc0429c0
[ "BSD-3-Clause-Clear" ]
null
null
null
src/cupcake/post_isoseq_cluster/demux_by_barcode_groups.py
milescsmith/cDNA_Cupcake
776d841c69fc6d8b3dce95bb9f076546bc0429c0
[ "BSD-3-Clause-Clear" ]
null
null
null
#!/usr/bin/env python __author__ = "etseng@pacb.com" """ Given a pooled input GFF + demux CSV file, write out per-{barcode group} GFFs If input fasta/fastq is given, optionally also output per-{barcode group} FASTA/FASTQ """ import re from collections import defaultdict from csv import DictReader from typing import Op...
32.349593
111
0.6381
568
3,979
4.255282
0.288732
0.037236
0.034754
0.016549
0.11626
0.095159
0.081092
0.047166
0.047166
0.047166
0
0.001998
0.245288
3,979
122
112
32.614754
0.802864
0.097763
0
0.088889
0
0
0.16839
0.045495
0
0
0
0
0
1
0.033333
false
0
0.1
0
0.155556
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
71f49ed361f20a67913d6d3671205fa5c226035f
5,168
py
Python
vll/data/circle_dataset.py
paulhfu/3dcv-students
f8d42c985cf33903170733b0c8f6a2199099553c
[ "MIT" ]
4
2020-04-21T21:40:13.000Z
2022-02-13T18:18:13.000Z
vll/data/circle_dataset.py
paulhfu/3dcv-students
f8d42c985cf33903170733b0c8f6a2199099553c
[ "MIT" ]
1
2022-02-03T11:24:07.000Z
2022-02-03T11:24:07.000Z
vll/data/circle_dataset.py
paulhfu/3dcv-students
f8d42c985cf33903170733b0c8f6a2199099553c
[ "MIT" ]
8
2020-04-22T10:24:27.000Z
2022-01-13T16:25:52.000Z
import random import numpy as np import math from skimage.draw import line, line_aa, circle, set_color, circle_perimeter_aa from skimage.io import imsave from skimage.util import random_noise maxSlope = 10 # restrict the maximum slope of generated lines for stability minLength = 20 # restrict the minimum length of li...
31.13253
147
0.663893
880
5,168
3.863636
0.210227
0.032941
0.025882
0.030588
0.268529
0.247059
0.199706
0.175882
0.175882
0.175882
0
0.0287
0.224652
5,168
165
148
31.321212
0.819815
0.480844
0
0.295775
0
0
0.002692
0
0
0
0
0
0
1
0.084507
false
0
0.084507
0
0.239437
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
71f546859f563e461fa98070b804316bbbaa69c8
1,030
py
Python
anlogger/logger.py
anttin/anlogger
dfa7be7ba2f4651507b188f986c10bab9bd7460e
[ "MIT" ]
null
null
null
anlogger/logger.py
anttin/anlogger
dfa7be7ba2f4651507b188f986c10bab9bd7460e
[ "MIT" ]
null
null
null
anlogger/logger.py
anttin/anlogger
dfa7be7ba2f4651507b188f986c10bab9bd7460e
[ "MIT" ]
null
null
null
import logging import logging.handlers import os class Logger(object): def __init__(self, name, default_loglevel='INFO', fmt=None, syslog=None): self.name = name self.syslog = syslog self.fmt = fmt if fmt is not None else "%(asctime)-15s %(name)s %(levelname)s %(message)s" if 'LOGLEVEL' in os.env...
28.611111
94
0.659223
141
1,030
4.737589
0.375887
0.10479
0.040419
0
0
0
0
0
0
0
0
0.003722
0.217476
1,030
35
95
29.428571
0.825062
0
0
0.074074
0
0
0.082524
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0.037037
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
71f66963cc795d3d06ec835c6cc0e9a8392f9d65
729
py
Python
lib/env/trade/BaseTradeStrategy.py
devas123/Bitcoin-Trader-RL
097cb0ba7428b2c4f997bdb0425a6153c23f9c83
[ "MIT" ]
null
null
null
lib/env/trade/BaseTradeStrategy.py
devas123/Bitcoin-Trader-RL
097cb0ba7428b2c4f997bdb0425a6153c23f9c83
[ "MIT" ]
null
null
null
lib/env/trade/BaseTradeStrategy.py
devas123/Bitcoin-Trader-RL
097cb0ba7428b2c4f997bdb0425a6153c23f9c83
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from typing import Tuple, Callable class BaseTradeStrategy(object, metaclass=ABCMeta): @abstractmethod def __init__(self, commissionPercent: float, maxSlippagePercent: float, base_precision: int, asset_...
30.375
90
0.577503
65
729
6.261538
0.6
0.07371
0.07371
0
0
0
0
0
0
0
0
0
0.352538
729
23
91
31.695652
0.862288
0
0
0.1
0
0
0
0
0
0
0
0
0
1
0.1
false
0.05
0.1
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
71f9440eb1c326307f7552af69580f96b76f02f9
3,283
py
Python
configs/_base_/datasets/stvqa_dataset.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
configs/_base_/datasets/stvqa_dataset.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/stvqa_dataset.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
dataset_type = 'STVQADATASET' data_root = '/home/datasets/mix_data/iMIX/' feature_path = 'data/datasets/stvqa/defaults/features/' ocr_feature_path = 'data/datasets/stvqa/defaults/ocr_features/' annotation_path = 'data/datasets/stvqa/defaults/annotations/' vocab_path = 'data/datasets/stvqa/defaults/extras/vocabs/' trai...
36.88764
101
0.696924
443
3,283
4.810384
0.216704
0.105115
0.045988
0.047865
0.663538
0.59878
0.542468
0.514313
0.514313
0.514313
0
0.029346
0.180018
3,283
88
102
37.306818
0.762259
0
0
0.52439
0
0
0.285714
0.181541
0.012195
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
71fa3b7f37795303ef477432b9138d2cfeb1171c
320
py
Python
code/Line.py
manno-xx/FutureLearnRobotBuggy
d5f0172597ad88d6a8b883b0b16d425a76edfb0b
[ "MIT" ]
null
null
null
code/Line.py
manno-xx/FutureLearnRobotBuggy
d5f0172597ad88d6a8b883b0b16d425a76edfb0b
[ "MIT" ]
null
null
null
code/Line.py
manno-xx/FutureLearnRobotBuggy
d5f0172597ad88d6a8b883b0b16d425a76edfb0b
[ "MIT" ]
null
null
null
#LineSensor test from gpiozero import LineSensor from time import sleep from signal import pause def lineDetected(): print('line detected') def noLineDetected(): print('no line detected') sensor = LineSensor(14) sensor.when_line = lineDetected sensor.when_no_line = noLineDetected pause() sensor.close()
14.545455
36
0.759375
40
320
6
0.5
0.1
0
0
0
0
0
0
0
0
0
0.007407
0.15625
320
21
37
15.238095
0.881481
0.046875
0
0
0
0
0.095395
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.416667
0.166667
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
71fafdbd17b589475cd452d3837ecd482b296f0c
8,468
py
Python
combo/search/discrete/policy.py
zhangkunliang/BayesOptimization
6d78c9e9f96239b0dbb85650a0d878e9410158ec
[ "MIT" ]
139
2016-02-18T02:31:04.000Z
2022-02-18T10:38:06.000Z
combo/search/discrete/policy.py
zhangkunliang/BayesOptimization
6d78c9e9f96239b0dbb85650a0d878e9410158ec
[ "MIT" ]
8
2016-04-18T08:10:44.000Z
2020-12-30T08:49:33.000Z
combo/search/discrete/policy.py
zhangkunliang/BayesOptimization
6d78c9e9f96239b0dbb85650a0d878e9410158ec
[ "MIT" ]
50
2016-05-21T01:17:23.000Z
2022-02-18T01:27:41.000Z
import numpy as np import copy import combo.misc import cPickle as pickle from results import history from .. import utility from ...variable import variable from ..call_simulator import call_simulator from ... import predictor from ...gp import predictor as gp_predictor from ...blm import predictor as blm_predictor im...
32.694981
78
0.594473
1,066
8,468
4.542214
0.12758
0.061751
0.019827
0.022305
0.213342
0.150351
0.130525
0.118133
0.104089
0.084676
0
0.004313
0.315541
8,468
258
79
32.821705
0.83109
0
0
0.22
0
0
0.004015
0
0
0
0
0
0
1
0.1
false
0
0.06
0.015
0.255
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
71fb4a0f65f1788e4523139873b94749e767304c
693
py
Python
source.py
s403o/tw_bot
fd26ebc86d4c7d1be1ae654f26f5ca74c2566a03
[ "MIT" ]
null
null
null
source.py
s403o/tw_bot
fd26ebc86d4c7d1be1ae654f26f5ca74c2566a03
[ "MIT" ]
null
null
null
source.py
s403o/tw_bot
fd26ebc86d4c7d1be1ae654f26f5ca74c2566a03
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup as bs import os #source url = '' # the source you want the bot take images from #down page page = requests.get(url) html = bs(page.text, 'html.parser') #locate image_loc = html.findAll('img') #create folder for located imgs if not os.path.exists('imgs'): os.makedirs(...
19.25
63
0.65368
105
693
4.285714
0.571429
0.073333
0.093333
0
0
0
0
0
0
0
0
0.016544
0.215007
693
35
64
19.8
0.810662
0.193362
0
0
0
0
0.072595
0
0
0
0
0
0
1
0
false
0.045455
0.136364
0
0.136364
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
71fc1181a50c5c3f0fee92d2187d798fa7535036
2,403
py
Python
lib/appController.py
QIAOANGeo/BZB_ydzw
8c11e9797cca31d1fab26be7eb0a71666cfac15f
[ "MIT" ]
2
2019-12-06T14:49:34.000Z
2021-06-10T15:57:59.000Z
lib/appController.py
QIAOANGeo/BZB_ydzw
8c11e9797cca31d1fab26be7eb0a71666cfac15f
[ "MIT" ]
null
null
null
lib/appController.py
QIAOANGeo/BZB_ydzw
8c11e9797cca31d1fab26be7eb0a71666cfac15f
[ "MIT" ]
null
null
null
''' 1ใ€ๅฏๅŠจappiumๆœๅŠก subproccess ้…็ฝฎๆ–‡ไปถ 1.1ใ€ๆ ก้ชŒๆœๅŠกๆ˜ฏๅฆๅฏๅŠจ 1.2ใ€ๆ€ๆމไธŠไธ€ๆฌก็š„ๆœๅŠก 2ใ€ๅฏๅŠจdriver ''' from lib.tools import Tool import subprocess from lib.path import SYSTEMPATH, ERRORPATH import time from appium import webdriver import queue # ๅฃฐๆ˜Žไธ€ไธชpython้˜Ÿๅˆ— driver_queue = queue.Queue() class Controller(object): def __init__(se...
30.417722
109
0.553891
279
2,403
4.677419
0.362007
0.084291
0.05977
0.026054
0.136398
0.110345
0.110345
0.110345
0.062835
0.062835
0
0.008526
0.316687
2,403
79
110
30.417722
0.786236
0.080732
0
0
0
0.019608
0.130692
0
0
0
0
0
0
1
0.098039
false
0
0.117647
0
0.254902
0.078431
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
71fcdf4c5cb6b34edec79a08f7d295031300d28a
2,226
py
Python
pondSizes.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
1
2019-08-29T01:12:47.000Z
2019-08-29T01:12:47.000Z
pondSizes.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
pondSizes.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @project : LeetCode @File : pondSizes.py @Contact : 9824373@qq.com @Desc : ไฝ ๆœ‰ไธ€ไธช็”จไบŽ่กจ็คบไธ€็‰‡ๅœŸๅœฐ็š„ๆ•ดๆ•ฐ็Ÿฉ้˜ตland๏ผŒ่ฏฅ็Ÿฉ้˜ตไธญๆฏไธช็‚น็š„ๅ€ผไปฃ่กจๅฏนๅบ”ๅœฐ็‚น็š„ๆตทๆ‹”้ซ˜ๅบฆใ€‚่‹ฅๅ€ผไธบ0ๅˆ™่กจ็คบๆฐดๅŸŸใ€‚็”ฑๅž‚็›ดใ€ๆฐดๅนณๆˆ–ๅฏน่ง’่ฟžๆŽฅ็š„ๆฐดๅŸŸไธบๆฑ ๅก˜ใ€‚ๆฑ ๅก˜็š„ๅคงๅฐๆ˜ฏๆŒ‡็›ธ่ฟžๆŽฅ็š„ๆฐดๅŸŸ็š„ไธชๆ•ฐใ€‚็ผ–ๅ†™ไธ€ไธชๆ–นๆณ•ๆฅ่ฎก็ฎ—็Ÿฉ้˜ตไธญๆ‰€ๆœ‰ๆฑ ๅก˜็š„ๅคงๅฐ๏ผŒ่ฟ”ๅ›žๅ€ผ้œ€่ฆไปŽๅฐๅˆฐๅคงๆŽ’ๅบใ€‚ ็คบไพ‹๏ผš ่พ“ๅ…ฅ๏ผš [ [0,2,1,0], [0,1,0,1], [1,1,0,1], ...
25.011236
124
0.444295
288
2,226
3.40625
0.3125
0.036697
0.061162
0.04893
0.236493
0.236493
0.236493
0.236493
0.236493
0.236493
0
0.069373
0.391285
2,226
88
125
25.295455
0.654613
0.297844
0
0.042553
0
0
0.005148
0
0
0
0
0
0
1
0.042553
false
0
0.042553
0
0.148936
0.021277
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
71fdcd33231ded5dc2f9d6d67f26d46eb50eca3d
5,990
py
Python
geolucidate/functions.py
kurtraschke/geolucidate
827195a90d972fa5efce5a03bdbe53d8395d94ba
[ "MIT" ]
3
2015-09-17T01:01:53.000Z
2019-09-10T14:30:43.000Z
geolucidate/functions.py
kurtraschke/geolucidate
827195a90d972fa5efce5a03bdbe53d8395d94ba
[ "MIT" ]
null
null
null
geolucidate/functions.py
kurtraschke/geolucidate
827195a90d972fa5efce5a03bdbe53d8395d94ba
[ "MIT" ]
5
2018-09-11T21:54:36.000Z
2020-06-25T19:05:45.000Z
# -*- coding: utf-8 -*- from decimal import Decimal, setcontext, ExtendedContext from geolucidate.links.google import google_maps_link from geolucidate.links.tools import MapLink from geolucidate.parser import parser_re setcontext(ExtendedContext) def _cleanup(parts): """ Normalize up the parts matched by :...
35.235294
184
0.602337
723
5,990
4.923928
0.278008
0.017978
0.01573
0.014326
0.180337
0.164607
0.070787
0.070787
0.041573
0
0
0.092331
0.220701
5,990
169
185
35.443787
0.670308
0.478631
0
0.132353
0
0
0.051371
0
0
0
0
0
0
1
0.073529
false
0
0.058824
0
0.205882
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
71feb582dac7753ba6da1c6d33e4df9c56ad4249
17,900
py
Python
lingvo/tasks/asr/encoder.py
j-luo93/lingvo
7398974078391362f0c1b027164a8f33f88cf86b
[ "Apache-2.0" ]
4
2019-01-08T02:59:38.000Z
2022-02-18T11:31:37.000Z
lingvo/tasks/asr/encoder.py
j-luo93/lingvo
7398974078391362f0c1b027164a8f33f88cf86b
[ "Apache-2.0" ]
null
null
null
lingvo/tasks/asr/encoder.py
j-luo93/lingvo
7398974078391362f0c1b027164a8f33f88cf86b
[ "Apache-2.0" ]
1
2019-07-02T14:09:42.000Z
2019-07-02T14:09:42.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.517815
80
0.655587
2,493
17,900
4.431207
0.155235
0.055762
0.021906
0.026161
0.314112
0.24776
0.178148
0.151625
0.133158
0.087082
0
0.011995
0.250168
17,900
420
81
42.619048
0.811056
0.188547
0
0.084746
0
0
0.108894
0.003616
0
0
0
0.002381
0.016949
1
0.037288
false
0
0.057627
0.016949
0.132203
0.00339
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
71feffbb5e24e7f37afedbf05e8ccd4bc8d2a4ea
1,898
py
Python
pos_neg_graph/graph_ratio.py
Yudabin/Review_Project
b924199d6845defeb4cd243a99426070c014d8d8
[ "MIT" ]
null
null
null
pos_neg_graph/graph_ratio.py
Yudabin/Review_Project
b924199d6845defeb4cd243a99426070c014d8d8
[ "MIT" ]
null
null
null
pos_neg_graph/graph_ratio.py
Yudabin/Review_Project
b924199d6845defeb4cd243a99426070c014d8d8
[ "MIT" ]
1
2020-11-10T00:54:45.000Z
2020-11-10T00:54:45.000Z
import matplotlib.font_manager as fm import matplotlib.pyplot as plt import numpy as np font_location = './wordcloud_file/malgun.ttf' # For Windows font_name = fm.FontProperties(fname=font_location).get_name() plt.rc('font', family=font_name) def percent_graph2(movie_review) : b = movie_review labelss = sorte...
42.177778
105
0.553741
284
1,898
3.630282
0.56338
0.015519
0.014549
0.031038
0.212415
0.14549
0.122211
0.085354
0.085354
0.085354
0
0.045812
0.263962
1,898
45
106
42.177778
0.692198
0.18019
0
0.052632
0
0
0.142102
0.039656
0
0
0
0
0
1
0.026316
false
0
0.078947
0
0.105263
0.052632
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
71ffb4e7bdba22327963714071779d2e8b20d391
3,727
py
Python
my_area/views.py
Vincent-Juma/area_master
3ea1dd1039053fb4de6326deb967383d09d7145b
[ "MIT" ]
1
2021-05-28T14:16:54.000Z
2021-05-28T14:16:54.000Z
my_area/views.py
Vincent-Juma/area_master
3ea1dd1039053fb4de6326deb967383d09d7145b
[ "MIT" ]
null
null
null
my_area/views.py
Vincent-Juma/area_master
3ea1dd1039053fb4de6326deb967383d09d7145b
[ "MIT" ]
1
2021-04-13T09:14:07.000Z
2021-04-13T09:14:07.000Z
from django.shortcuts import render from .forms import * from django.shortcuts import redirect,get_object_or_404 from django.contrib.auth.decorators import login_required from . models import * from django.views import generic @login_required(login_url='/accounts/login/') def home(request): mylocs = Myloc.objects....
37.646465
96
0.676952
465
3,727
5.243011
0.172043
0.054143
0.070139
0.060295
0.407711
0.312961
0.283429
0.187449
0.140279
0.105824
0
0.003007
0.196941
3,727
98
97
38.030612
0.81156
0
0
0.306818
0
0
0.112721
0
0
0
0
0
0
1
0.090909
false
0
0.068182
0
0.306818
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
9c01e95549f9ef77973f439bfde72aea99322f8e
20,840
py
Python
scripts/data/topple_dataset.py
davrempe/predicting-physical-dynamics
b0abb385a7ac491e25d1df0b9a9a943621fc2d37
[ "MIT" ]
16
2020-02-29T06:44:16.000Z
2022-02-20T13:05:12.000Z
scripts/data/topple_dataset.py
davrempe/predicting-physical-dynamics
b0abb385a7ac491e25d1df0b9a9a943621fc2d37
[ "MIT" ]
6
2020-02-13T08:09:28.000Z
2022-02-09T23:35:55.000Z
scripts/data/topple_dataset.py
davrempe/predicting-physical-dynamics
b0abb385a7ac491e25d1df0b9a9a943621fc2d37
[ "MIT" ]
4
2020-04-22T09:46:55.000Z
2021-04-15T06:17:48.000Z
import numpy as np import pickle from os.path import exists, realpath import sys import math from topple_data_loader import ToppleData, ToppleDataLoader import transforms3d class ToppleNormalizationInfo(): ''' Structure to hold all the normalization information for a dataset. ''' def __init__(self...
45.010799
149
0.613964
2,952
20,840
4.080285
0.115515
0.033873
0.022665
0.016189
0.316231
0.19917
0.134745
0.102864
0.061768
0.044168
0
0.008406
0.292131
20,840
462
150
45.108225
0.808094
0.204894
0
0.155844
0
0
0.025924
0.005247
0
0
0
0
0
1
0.042208
false
0.006494
0.022727
0.003247
0.094156
0.032468
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
9c029add7c4d9a1a7902d4f882039de120a387b3
13,193
py
Python
scripts/sct_apply_transfo.py
YangHee-Min/spinalcordtoolbox
38ca15aa99b03ca99b7885ddc98adf2755adc43d
[ "MIT" ]
null
null
null
scripts/sct_apply_transfo.py
YangHee-Min/spinalcordtoolbox
38ca15aa99b03ca99b7885ddc98adf2755adc43d
[ "MIT" ]
null
null
null
scripts/sct_apply_transfo.py
YangHee-Min/spinalcordtoolbox
38ca15aa99b03ca99b7885ddc98adf2755adc43d
[ "MIT" ]
null
null
null
#!/usr/bin/env python ######################################################################################### # # Apply transformations. This function is a wrapper for sct_WarpImageMultiTransform # # --------------------------------------------------------------------------------------- # Copyright (c) 2014 Polytechn...
42.973941
175
0.560373
1,537
13,193
4.582954
0.214053
0.035775
0.046139
0.029671
0.20812
0.146508
0.103634
0.095684
0.058206
0.058206
0
0.008201
0.297582
13,193
306
176
43.114379
0.751915
0.179565
0
0.125581
0
0.013953
0.14086
0.009164
0
0
0
0.003268
0
1
0.023256
false
0
0.04186
0
0.07907
0.051163
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
9c04726d3c874dda1b944aacaee1f8285db82b6a
3,132
py
Python
tests/plugins/test_plugin_base.py
vurankar/mongo-connector
202aa28743855643fddd77d3e66bf1a640df3ed6
[ "Apache-2.0" ]
1
2019-08-24T21:06:00.000Z
2019-08-24T21:06:00.000Z
tests/plugins/test_plugin_base.py
vurankar/mongo-connector
202aa28743855643fddd77d3e66bf1a640df3ed6
[ "Apache-2.0" ]
13
2017-08-07T04:36:25.000Z
2021-02-08T17:37:27.000Z
tests/plugins/test_plugin_base.py
vurankar/mongo-connector
202aa28743855643fddd77d3e66bf1a640df3ed6
[ "Apache-2.0" ]
4
2018-10-22T17:30:46.000Z
2020-07-07T21:24:48.000Z
# Copyright 2013-2014 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
27
74
0.623244
379
3,132
4.986807
0.345646
0.042328
0.057143
0.07619
0.325397
0.325397
0.277778
0.22328
0.142857
0.142857
0
0.007542
0.280332
3,132
115
75
27.234783
0.830967
0.2947
0
0.307692
0
0
0.028011
0
0
0
0
0
0.153846
1
0.153846
false
0.019231
0.096154
0
0.288462
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