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
edcce2b8aaea1ebf0e1d0a125ecc6f07e55bf3eb
3,284
py
Python
db_wrapper/tests/sqlalchemy_test.py
Alecyrus/Ares
228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b
[ "MIT" ]
2
2017-04-01T07:05:23.000Z
2017-09-09T02:19:50.000Z
db_wrapper/tests/sqlalchemy_test.py
Alecyrus/Ares
228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b
[ "MIT" ]
null
null
null
db_wrapper/tests/sqlalchemy_test.py
Alecyrus/Ares
228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b
[ "MIT" ]
null
null
null
import sys, os.path sys.path.append(os.path.dirname(os.path.dirname(__file__))) # from brett_sqlalchemy import * # Can not perform relative when it's parent module is not loaded, so I have to change the system's import path. from main import * import unittest from sqlalchemy.ext.declarative import declarative_base imp...
30.691589
184
0.636419
389
3,284
5.1491
0.303342
0.053919
0.041937
0.037943
0.400399
0.363455
0.291563
0.218672
0.18672
0.18672
0
0.001606
0.241474
3,284
106
185
30.981132
0.802489
0.221985
0
0.133333
0
0
0.066561
0
0
0
0
0
0.066667
1
0.083333
false
0.016667
0.1
0
0.366667
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
edce3a2737d93538f5eca2f4d5c2a1e9ad86dba9
31,641
py
Python
web/indexData/demandSrc.py
BennyJane/career-planning-info
406b41dc2913fce8623609efe4885abd9474cb6d
[ "MIT" ]
1
2021-01-11T01:37:18.000Z
2021-01-11T01:37:18.000Z
web/indexData/demandSrc.py
BennyJane/career-planning-info
406b41dc2913fce8623609efe4885abd9474cb6d
[ "MIT" ]
null
null
null
web/indexData/demandSrc.py
BennyJane/career-planning-info
406b41dc2913fce8623609efe4885abd9474cb6d
[ "MIT" ]
null
null
null
# 整理各个阶段的技能要求 """ 分大类: Python(语言类): 数据库: 服务器: 其他: """ fourth_chart = {'first': [ {'demands': ['精通Python语言', '熟悉Python多进程应用开发', '熟练掌握至少一门PythonWeb开发框架(Tornado、Django、Flask等)', '熟练使用mysql,redis,mongodb', '熟悉Linux、分布式、微服务、高性能Web服务开发、有一定的系统架构设计能力者优先...
43.703039
104
0.483708
1,870
31,641
8.197326
0.687701
0.014874
0.031378
0.003914
0.043773
0.030465
0.003653
0.003653
0
0
0
0.019421
0.389747
31,641
723
105
43.763485
0.773163
0.001391
0
0.150281
0
0.001404
0.51507
0.352751
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edce4f4141a5bb74893123cda4abba91dc993dbf
2,861
py
Python
Heap.py
13472889991/DataStructures-Algorithms
3eb219460f0f8108bb3c07c4de5544df412e189e
[ "MIT" ]
null
null
null
Heap.py
13472889991/DataStructures-Algorithms
3eb219460f0f8108bb3c07c4de5544df412e189e
[ "MIT" ]
null
null
null
Heap.py
13472889991/DataStructures-Algorithms
3eb219460f0f8108bb3c07c4de5544df412e189e
[ "MIT" ]
null
null
null
class Heap(): def __init__(self, lst): self.lst = lst def __str__(self): return str(self.lst) # Returns left child index of node, runs in 0(1) time.Returns none if D.N.E def left(self, index): index += 1 if 2 * index >= len(self.lst) + 1: return None ...
31.43956
133
0.527787
409
2,861
3.638142
0.183374
0.159946
0.047043
0.037634
0.403898
0.335349
0.303091
0.290323
0.261425
0.261425
0
0.013646
0.359664
2,861
90
134
31.788889
0.798581
0.184201
0
0.19403
0
0
0
0
0
0
0
0
0
1
0.19403
false
0
0
0.014925
0.358209
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edcf7b04649dc1f8150d732525f7d6e59b9654e9
1,647
py
Python
build.py
danielrh/repeatexec
ed2080f06d141e236340c5d8d8cb36864c001cd4
[ "BSD-2-Clause" ]
2
2015-10-21T11:09:12.000Z
2018-06-20T10:28:44.000Z
build.py
danielrh/repeatexec
ed2080f06d141e236340c5d8d8cb36864c001cd4
[ "BSD-2-Clause" ]
null
null
null
build.py
danielrh/repeatexec
ed2080f06d141e236340c5d8d8cb36864c001cd4
[ "BSD-2-Clause" ]
null
null
null
import os import subprocess import sys import threading try: os.mkfifo("/tmp/shutdown",0666) except OSError: pass try: os.mkfifo("/tmp/abort",0666) except OSError: pass subprocess.check_call(["go","build", "-ldflags", "-X main.FALLBACK_SHUTDOWN_PIPE /tmp/shutdown -X main.FALLBACK_ABORT_PIPE /tmp/abort -...
33.612245
313
0.659381
223
1,647
4.802691
0.376682
0.037348
0.051354
0.065359
0.098039
0.098039
0.098039
0.098039
0
0
0
0.026455
0.196721
1,647
48
314
34.3125
0.783069
0
0
0.333333
0
0.020833
0.287189
0.088646
0
0
0
0
0
0
null
null
0.125
0.083333
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
edd057810862e9b45592c01aea58e9494fbf7d26
113
py
Python
nft_generator/command/version.py
nft-generator/nft_generator
e2e17a204054a39eaf5d904d0956542e11155360
[ "MIT" ]
6
2021-12-05T10:00:28.000Z
2022-01-09T02:22:46.000Z
nft_generator/command/version.py
nft-generator/nft_generator
e2e17a204054a39eaf5d904d0956542e11155360
[ "MIT" ]
null
null
null
nft_generator/command/version.py
nft-generator/nft_generator
e2e17a204054a39eaf5d904d0956542e11155360
[ "MIT" ]
5
2021-12-05T14:35:37.000Z
2022-01-13T17:02:10.000Z
import click from nft_generator import __version__ @click.command() def version(): print(__version__)
12.555556
37
0.734513
13
113
5.692308
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.185841
113
9
38
12.555556
0.804348
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0
0.6
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
edd10011ec4f0f850a3332528aca6a5835c7347c
181
py
Python
numpy_test.py
weepingwillowben/image-learn
2acbf1c51600256e3d9b5d7cf13f0870556bca00
[ "MIT" ]
null
null
null
numpy_test.py
weepingwillowben/image-learn
2acbf1c51600256e3d9b5d7cf13f0870556bca00
[ "MIT" ]
null
null
null
numpy_test.py
weepingwillowben/image-learn
2acbf1c51600256e3d9b5d7cf13f0870556bca00
[ "MIT" ]
null
null
null
import numpy as np arg = np.arange(100).reshape((10,10)) print(arg) print(arg[[(1,2),(3,4)]]) res = np.digitize(0.4,[0.2,0.3]) print(res) print(np.add.accumulate([0.1,0.2,0.3]))
16.454545
39
0.624309
40
181
2.825
0.475
0.141593
0.053097
0.070796
0
0
0
0
0
0
0
0.140244
0.093923
181
10
40
18.1
0.54878
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
edd1a2eba2e777e57dd9ae7fe78935cdfc83cf44
4,165
py
Python
scripts/fsm.py
ut-osa/syncchar
eba20da163260b6ae1ef3e334ad2137873a8d625
[ "BSD-3-Clause" ]
null
null
null
scripts/fsm.py
ut-osa/syncchar
eba20da163260b6ae1ef3e334ad2137873a8d625
[ "BSD-3-Clause" ]
null
null
null
scripts/fsm.py
ut-osa/syncchar
eba20da163260b6ae1ef3e334ad2137873a8d625
[ "BSD-3-Clause" ]
1
2019-05-14T16:36:45.000Z
2019-05-14T16:36:45.000Z
""" Finite state machine class. The fsm class stores dictionary of state/input keys, values are next state and action when searching for matching state/input key, exact match is checked first, then the input is matched against any regular expressions associated with the state. As a last resort, state/None can be use...
26.870968
67
0.664586
586
4,165
4.686007
0.293515
0.055717
0.025492
0.029133
0.287327
0.287327
0.262564
0.262564
0.262564
0.262564
0
0.000314
0.236495
4,165
154
68
27.045455
0.863208
0.163505
0
0.442857
0
0
0.020253
0
0
0
0
0
0
0
null
null
0
0.014286
null
null
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
edd26443fbb7199143965a3072eb5ab1a9be5393
735
py
Python
marvin/screen.py
Emphebion/MARVIN
2053e8ce31b5e332e7c12271a71df3c25b0cb1a0
[ "MIT" ]
null
null
null
marvin/screen.py
Emphebion/MARVIN
2053e8ce31b5e332e7c12271a71df3c25b0cb1a0
[ "MIT" ]
null
null
null
marvin/screen.py
Emphebion/MARVIN
2053e8ce31b5e332e7c12271a71df3c25b0cb1a0
[ "MIT" ]
null
null
null
############################################# # Screen # =========================================== # Purpose is to: # - What am I doing here? ############################################# import pygame class Screen: def __init__(self, config_file, parser): parser.read(config_file) self.size = [x...
26.25
80
0.487075
81
735
4.271605
0.506173
0.040462
0.063584
0
0
0
0
0
0
0
0
0.010435
0.217687
735
28
81
26.25
0.591304
0.121088
0
0
0
0
0.019928
0
0
0
0
0
0
1
0.25
false
0
0.0625
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
1
0
0
0
0
0
0
0
1
edd3070e919c28d260fa10a51ae510e33f6b0078
12,332
py
Python
daguerre/tests/unit/test_management.py
littleweaver/django-daguerre
9437dfc3f27386eac8aa769077e5715b81b5fe30
[ "BSD-3-Clause" ]
20
2015-01-08T07:43:42.000Z
2018-01-28T02:25:51.000Z
daguerre/tests/unit/test_management.py
littleweaver/django-daguerre
9437dfc3f27386eac8aa769077e5715b81b5fe30
[ "BSD-3-Clause" ]
28
2015-04-01T20:24:28.000Z
2017-12-11T12:04:58.000Z
daguerre/tests/unit/test_management.py
littleweaver/django-daguerre
9437dfc3f27386eac8aa769077e5715b81b5fe30
[ "BSD-3-Clause" ]
10
2015-04-09T10:56:41.000Z
2018-01-26T07:11:05.000Z
from django.conf import settings from django.core.files.storage import default_storage from django.core.management.base import CommandError from django.test.utils import override_settings import mock from daguerre.adjustments import Fit from daguerre.management.commands._daguerre_clean import Command as Clean from dag...
40.565789
80
0.586685
1,183
12,332
5.896872
0.137785
0.069381
0.027953
0.065367
0.75129
0.688503
0.661554
0.630304
0.619983
0.604788
0
0.021127
0.309115
12,332
303
81
40.69967
0.797653
0.018894
0
0.578313
0
0
0.099167
0.013156
0
0
0
0
0.128514
1
0.084337
false
0.004016
0.044177
0
0.140562
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edd3649e914776cccbee89a84d07e5264b3936d4
3,062
py
Python
locust_exporter.py
nobusugi246/locust-exporter
3d7511f61ee46da857eef1b9f305a92f820ab615
[ "MIT" ]
null
null
null
locust_exporter.py
nobusugi246/locust-exporter
3d7511f61ee46da857eef1b9f305a92f820ab615
[ "MIT" ]
null
null
null
locust_exporter.py
nobusugi246/locust-exporter
3d7511f61ee46da857eef1b9f305a92f820ab615
[ "MIT" ]
null
null
null
#!/usr/bin/python from prometheus_client import start_http_server, Metric, REGISTRY from prometheus_client.core import GaugeMetricFamily, CounterMetricFamily import json import requests import sys import time class LocustCollector(object): def __init__(self, ep): self._ep = ep def collect(self): # Fetch t...
42.527778
174
0.693991
379
3,062
5.366755
0.30343
0.058997
0.056047
0.085546
0.342183
0.320551
0.240905
0.184857
0.146509
0.146509
0
0.008709
0.175049
3,062
71
175
43.126761
0.796516
0.031025
0
0.214286
0
0
0.307355
0.075574
0
0
0
0
0
1
0.035714
false
0
0.107143
0
0.160714
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edd3a35df965b681fd71b0b10561268de5b79d93
2,213
py
Python
checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py
KenMercusLai/checkio
c7702221e1bc0b0b30425859ffa6c09722949d65
[ "MIT" ]
39
2015-02-09T13:24:12.000Z
2019-05-16T17:51:19.000Z
checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py
KenMercusLai/checkio
c7702221e1bc0b0b30425859ffa6c09722949d65
[ "MIT" ]
1
2019-10-21T16:18:14.000Z
2019-10-21T16:18:14.000Z
checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py
KenMercusLai/checkio
c7702221e1bc0b0b30425859ffa6c09722949d65
[ "MIT" ]
22
2015-01-30T18:00:05.000Z
2021-05-22T02:57:23.000Z
import unittest from hexagon_spiral import hex_spiral class Tests(unittest.TestCase): TESTS = { "Basics": [ {"input": [2, 9], "answer": 1, "explanation": 2}, {"input": [9, 2], "answer": 1, "explanation": 2}, {"input": [6, 19], "answer": 2, "explanation": 7}, ...
45.163265
65
0.456846
245
2,213
4.102041
0.261224
0.095522
0.118408
0.056716
0.310448
0.143284
0.055721
0
0
0
0
0.110323
0.299593
2,213
48
66
46.104167
0.538065
0
0
0.093023
0
0
0.298238
0
0
0
0
0
0.046512
1
0.046512
false
0
0.046512
0
0.139535
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
edd41b59023c01a5c3a8d6a18413bd202a595445
394
py
Python
server/src/define_player/config_init_map.py
jacksonsr45/project_game_rpg_server_python
b8a7750d5bcc6558431ac6ac831b1a3728651114
[ "MIT" ]
null
null
null
server/src/define_player/config_init_map.py
jacksonsr45/project_game_rpg_server_python
b8a7750d5bcc6558431ac6ac831b1a3728651114
[ "MIT" ]
null
null
null
server/src/define_player/config_init_map.py
jacksonsr45/project_game_rpg_server_python
b8a7750d5bcc6558431ac6ac831b1a3728651114
[ "MIT" ]
null
null
null
__author__ = "jacksonsr45@gmail.com" new_init_map = { 'knight': { 'pos_x': { }, 'pos_y': { }, }, 'paladin': { 'pos_x': { }, 'pos_y': { }, }, 'mage': { 'pos_x': { }, 'pos_y': { }, }, 'ranger'...
11.257143
36
0.263959
27
394
3.333333
0.518519
0.177778
0.311111
0.355556
0
0
0
0
0
0
0
0.01087
0.532995
394
35
37
11.257143
0.478261
0
0
0.296296
0
0
0.212658
0.053165
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
edd44fd69a54eee9f7ca6b87c411e44a3378064a
6,995
py
Python
examples/py/tencent_road_map.py
KarcyLee/folium
c0fa6c217842f973037dc7ea8e871855069057f7
[ "MIT" ]
null
null
null
examples/py/tencent_road_map.py
KarcyLee/folium
c0fa6c217842f973037dc7ea8e871855069057f7
[ "MIT" ]
null
null
null
examples/py/tencent_road_map.py
KarcyLee/folium
c0fa6c217842f973037dc7ea8e871855069057f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # 腾讯地图示意图 from __future__ import print_function import random import folium from folium.features import DivIcon from folium.plugins import MarkerCluster, RotatedMarker, PolyLineTextPath, DirectedLine def tencent_marker(out_dir="../../out"): """ 腾讯地图,打点 :param...
30.814978
109
0.567262
883
6,995
4.288788
0.175538
0.055453
0.0338
0.046475
0.667283
0.639556
0.625825
0.599155
0.583311
0.555849
0
0.173725
0.274196
6,995
226
110
30.951327
0.571991
0.116798
0
0.522727
0
0
0.079927
0.037245
0
0
0
0
0
1
0.068182
false
0
0.037879
0
0.113636
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edd4a7a68b6a7e9dfa514b2b3b2ebe8065ec98d0
19,804
py
Python
explainaboard/tasks/cws/eval_spec.py
Shadowlized/ExplainaBoard
45f1c27468e528f8f88df4b01e10253ba96d3a9b
[ "MIT" ]
255
2021-04-14T11:21:35.000Z
2022-03-27T01:59:05.000Z
explainaboard/tasks/cws/eval_spec.py
ROGERDJQ/ExplainaBoard
4a2a5aeb9cce33198aa748252f9206c6391a695c
[ "MIT" ]
128
2021-04-15T14:30:13.000Z
2022-03-31T18:22:40.000Z
explainaboard/tasks/cws/eval_spec.py
ROGERDJQ/ExplainaBoard
4a2a5aeb9cce33198aa748252f9206c6391a695c
[ "MIT" ]
27
2021-04-14T15:20:22.000Z
2022-03-28T07:21:54.000Z
from random import choices import explainaboard.error_analysis as ea import numpy import pickle import codecs import os def read_data(corpus_type, fn, column_no=-1, delimiter=' '): print('corpus_type', corpus_type) word_sequences = list() tag_sequences = list() total_word_sequences = list() total...
42.13617
175
0.588063
2,317
19,804
4.640052
0.106603
0.013952
0.020556
0.014231
0.386383
0.311413
0.261929
0.183704
0.144545
0.135057
0
0.017886
0.305494
19,804
470
176
42.13617
0.763778
0.097657
0
0.179811
0
0
0.047501
0.002751
0.003155
0
0
0
0
1
0.022082
false
0
0.018927
0
0.059937
0.094637
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edd631fe92868c6f7b72a761ab6cdf558dd7e7bc
3,045
py
Python
tests/default.py
DasSkelett/AVC-VersionFileValidator
f31bab0cf5e273cbb675ffaf921741c32b3a2e15
[ "MIT" ]
2
2019-12-18T16:34:06.000Z
2020-03-13T03:31:26.000Z
tests/default.py
DasSkelett/AVC-VersionFileValidator
f31bab0cf5e273cbb675ffaf921741c32b3a2e15
[ "MIT" ]
4
2019-12-22T18:40:31.000Z
2020-05-07T00:52:48.000Z
tests/default.py
DasSkelett/AVC-VersionFileValidator
f31bab0cf5e273cbb675ffaf921741c32b3a2e15
[ "MIT" ]
null
null
null
import os from pathlib import Path from unittest import TestCase import validator.validator as validator from .test_utils import schema, build_map class TestDefault(TestCase): old_cwd = os.getcwd() @classmethod def setUpClass(cls): os.chdir('./tests/workspaces/default') @classmethod def...
47.578125
110
0.617734
273
3,045
6.805861
0.190476
0.080732
0.052745
0.083961
0.762648
0.730355
0.70183
0.672766
0.588805
0.481701
0
0.006206
0.259113
3,045
63
111
48.333333
0.817376
0
0
0.326923
0
0
0.213793
0.175369
0
0
0
0
0.346154
1
0.153846
false
0
0.096154
0
0.288462
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
edd63cd9fb4b41ff585ff6a70fe4ee13e645a40a
1,586
py
Python
waitingthread.py
souzabrizolara/door-strut-simulator
6de931f2d8b76b57a4fe457ecac6b7f13e373220
[ "MIT" ]
null
null
null
waitingthread.py
souzabrizolara/door-strut-simulator
6de931f2d8b76b57a4fe457ecac6b7f13e373220
[ "MIT" ]
null
null
null
waitingthread.py
souzabrizolara/door-strut-simulator
6de931f2d8b76b57a4fe457ecac6b7f13e373220
[ "MIT" ]
null
null
null
import threading import sys import time class WaitingThread(threading.Thread): def __init__(self, lp, waitTime = 5): threading.Thread.__init__(self) self.running = True self.waitCondition = threading.Condition(threading.RLock()) self.waitTime = waitTime self.lastTime = No...
25.580645
67
0.583228
153
1,586
5.993464
0.300654
0.203926
0.104689
0.091603
0
0
0
0
0
0
0
0.001852
0.319042
1,586
61
68
26
0.847222
0
0
0.326531
0
0
0.009464
0
0
0
0
0
0
1
0.183673
false
0.040816
0.061224
0.020408
0.306122
0.020408
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edd644d6be6dcd949445336e892644d72635cc12
476
py
Python
ci/kubetest/test_posthog_hpa_enabled.py
momentumdash/charts-clickhouse
9f8ef82f11db186810fcf98dd789ff4b0c1eed95
[ "MIT" ]
null
null
null
ci/kubetest/test_posthog_hpa_enabled.py
momentumdash/charts-clickhouse
9f8ef82f11db186810fcf98dd789ff4b0c1eed95
[ "MIT" ]
null
null
null
ci/kubetest/test_posthog_hpa_enabled.py
momentumdash/charts-clickhouse
9f8ef82f11db186810fcf98dd789ff4b0c1eed95
[ "MIT" ]
null
null
null
import pytest from helpers.utils import cleanup_k8s, helm_install, wait_for_pods_to_be_ready HELM_INSTALL_CMD = """ helm upgrade \ --install \ -f ../../ci/values/kubetest/test_posthog_hpa_enabled.yaml \ --timeout 30m \ --create-namespace \ --namespace posthog \ posthog ../../charts/posthog \ ...
21.636364
78
0.691176
63
476
4.857143
0.539683
0.179739
0.091503
0.137255
0.130719
0.130719
0
0
0
0
0
0.010283
0.182773
476
21
79
22.666667
0.77635
0
0
0
0
0
0.493697
0.113445
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edd64bd4827b991c5d28e9da19d3d313de93c8a0
7,209
py
Python
dental/settings.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
1
2021-04-03T19:57:32.000Z
2021-04-03T19:57:32.000Z
dental/settings.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
null
null
null
dental/settings.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
null
null
null
""" Django settings for dental project. Generated by 'django-admin startproject' using Django 2.0. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os impor...
26.025271
91
0.657928
767
7,209
6.029987
0.367666
0.044973
0.020757
0.037838
0.162162
0.128649
0.075027
0.075027
0.043243
0
0
0.010457
0.20405
7,209
276
92
26.119565
0.795573
0.265224
0
0.047619
1
0
0.468851
0.28996
0
0
0
0
0
1
0
false
0.047619
0.029762
0
0.029762
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edd7c9fc4d4c13cce5799a53fe7796fa6ce013ec
1,379
py
Python
python/biograph/variants/add_ref_test.py
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
16
2021-07-14T23:32:31.000Z
2022-03-24T16:25:15.000Z
python/biograph/variants/add_ref_test.py
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-20T20:39:47.000Z
2021-09-16T20:57:59.000Z
python/biograph/variants/add_ref_test.py
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-15T19:38:35.000Z
2022-01-31T19:24:56.000Z
# pylint: disable=missing-docstring from __future__ import print_function import unittest import biograph import biograph.variants as bgexvar class ReadCovTestCases(unittest.TestCase): @classmethod def setUpClass(cls): cls.bg = biograph.BioGraph("datasets/lambdaToyData/benchmark/father_lambda.bg") ...
33.634146
97
0.636693
175
1,379
4.8
0.354286
0.089286
0.085714
0.040476
0.307143
0.264286
0.145238
0.145238
0.145238
0.145238
0
0.014409
0.245105
1,379
40
98
34.475
0.792507
0.02393
0
0
0
0
0.087798
0.068452
0
0
0
0
0.16129
1
0.064516
false
0
0.129032
0
0.225806
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edd7dcbe7e77249b8bc05cc82a6e9d24f74df2a3
924
py
Python
tools/trading/quotes.py
renoneto/swing_trading
1d176d7e42bca6028efcb1869ec648824c535fe1
[ "MIT" ]
8
2020-06-19T11:23:44.000Z
2022-02-11T00:52:29.000Z
tools/trading/quotes.py
renoneto/swing_trading
1d176d7e42bca6028efcb1869ec648824c535fe1
[ "MIT" ]
5
2020-05-16T18:14:24.000Z
2021-12-13T20:40:25.000Z
tools/trading/quotes.py
renoneto/swing_trading
1d176d7e42bca6028efcb1869ec648824c535fe1
[ "MIT" ]
2
2020-05-16T23:31:04.000Z
2021-06-06T18:40:01.000Z
import requests def get_quotes(access_token, my_client, symbols): """ Function to get quotes of a list of stocks """ # Convert list to string str_symbols = ','.join(symbols) # define our headers header = {'Authorization':"Bearer {}".format(access_token), ...
28
76
0.643939
111
924
5.252252
0.603604
0.082333
0
0
0
0
0
0
0
0
0
0.001458
0.257576
924
32
77
28.875
0.848397
0.28355
0
0
0
0
0.175
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edd85d21386459fc38710dc31cb59fc4dd97a292
210
py
Python
http-requests/variables.py
cmin764/robots
447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21
[ "MIT" ]
1
2022-03-17T20:28:06.000Z
2022-03-17T20:28:06.000Z
http-requests/variables.py
cmin764/robots
447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21
[ "MIT" ]
null
null
null
http-requests/variables.py
cmin764/robots
447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21
[ "MIT" ]
null
null
null
from pathlib import Path api_key_name = "api_key_cosmin" portrait_gif = Path("devdata") / "portrait.gif" api_base = "https://sandbox.zamzar.com/v1" # SANDBOX # api_base = "https://api.zamzar.com/v1" # LIVE
26.25
53
0.714286
32
210
4.46875
0.5625
0.083916
0.167832
0
0
0
0
0
0
0
0
0.010929
0.128571
210
7
54
30
0.770492
0.252381
0
0
0
0
0.405229
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edd948bb9ec9eb83072bfce6e93f8f8d37219a11
3,077
py
Python
DQM/Physics/test/ewkElecDQM_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/Physics/test/ewkElecDQM_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/Physics/test/ewkElecDQM_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("EwkDQM") process.load("DQM.Physics.ewkElecDQM_cfi") process.load("DQMServices.Core.DQM_cfg") process.load("DQMServices.Components.DQMEnvironment_cfi") process.DQM.collectorHost = '' #keep the logging output to a nice level process.load("FWCore.Message...
40.486842
123
0.753331
362
3,077
6.350829
0.458564
0.093954
0.051762
0.089169
0.250979
0.209656
0.1592
0.118312
0.073945
0.073945
0
0.092279
0.116022
3,077
75
124
41.026667
0.752941
0.375366
0
0
0
0
0.250263
0.202318
0
0
0
0
0
1
0
false
0
0.025
0
0.025
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
eddafd9744249b5f6384f3044c4d9c5bb3848404
4,809
py
Python
indStudyA.py
rafaelorozco/cloudsimbuck
5b6bc4f24343bb171bc44522244647fcdaff7bf5
[ "MIT" ]
null
null
null
indStudyA.py
rafaelorozco/cloudsimbuck
5b6bc4f24343bb171bc44522244647fcdaff7bf5
[ "MIT" ]
null
null
null
indStudyA.py
rafaelorozco/cloudsimbuck
5b6bc4f24343bb171bc44522244647fcdaff7bf5
[ "MIT" ]
null
null
null
#version 1 # # #Setup data structure #Made timer that includes fps from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph.opengl as gl import pyqtgraph as pg import numpy as np import random #import time from pyqtgraph.ptime import time import functools app = QtGui.QApplication([]) w = gl.GLViewWidget() w.show() ...
25.854839
120
0.602412
927
4,809
3.102481
0.166127
0.027816
0.038248
0.041725
0.438804
0.42733
0.39395
0.380042
0.370654
0.331015
0
0.075097
0.194219
4,809
185
121
25.994595
0.667097
0.140362
0
0.20339
0
0
0.004153
0
0
0
0
0
0
1
0.050847
false
0
0.067797
0.008475
0.127119
0.008475
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eddb7b91d6d5edcdefb53633a4ca2f99f6028413
63
py
Python
python/nlusvc/displacy/dto/__init__.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/nlusvc/displacy/dto/__init__.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/nlusvc/displacy/dto/__init__.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
from .displacy_entity_generator import DisplacyEntityGenerator
31.5
62
0.920635
6
63
9.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.063492
63
1
63
63
0.949153
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
eddb7f49b44eca53b1e18b53a13b236ea0a652f8
521
py
Python
src/artificial_neural_network/bias_layer.py
daengdaengLee/mnist-python-numpy
909771bfc802e7031ab84af5776251e66fbc9a63
[ "MIT" ]
null
null
null
src/artificial_neural_network/bias_layer.py
daengdaengLee/mnist-python-numpy
909771bfc802e7031ab84af5776251e66fbc9a63
[ "MIT" ]
23
2019-10-26T08:56:28.000Z
2021-06-02T00:37:18.000Z
src/artificial_neural_network/bias_layer.py
daengdaengLee/mnist-python-numpy
909771bfc802e7031ab84af5776251e66fbc9a63
[ "MIT" ]
null
null
null
import numpy as np from artificial_neural_network.layer import Layer class BiasLayer(Layer): def __init__(self, dim, learning_rate=0.001): self.__biases = np.zeros(dim) self.__learning_rate = learning_rate def forward(self, x): return x + self.__biases def backward(self, x, grad...
24.809524
78
0.685221
70
521
4.685714
0.414286
0.146341
0.097561
0.109756
0
0
0
0
0
0
0
0.012531
0.234165
521
20
79
26.05
0.809524
0
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0.076923
0.615385
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
1
0
0
0
0
1
0
0
2
eddc0f7669654fde433ed24f9dc39fbd4ba45302
2,102
py
Python
tangle_connector/tests/test_tangle_connector.py
stkubr/MAML
fa621b21420c76f4df0afba56bbcb492c63a31f0
[ "MIT" ]
4
2019-01-16T22:53:57.000Z
2019-04-11T08:20:16.000Z
tangle_connector/tests/test_tangle_connector.py
stkubr/MAML
fa621b21420c76f4df0afba56bbcb492c63a31f0
[ "MIT" ]
4
2019-01-23T07:07:06.000Z
2019-07-22T16:33:30.000Z
tangle_connector/tests/test_tangle_connector.py
stkubr/MAML
fa621b21420c76f4df0afba56bbcb492c63a31f0
[ "MIT" ]
4
2019-01-16T22:54:04.000Z
2020-01-29T18:31:23.000Z
from unittest import TestCase from iota import Address, TransactionHash from tangle_connector import TangleConnector class TestTangleConnector(TestCase): def setUp(self): self.tangle_con = TangleConnector() def test_get_node(self): res = self.tangle_con.get_node() self.assertEqual(r...
40.423077
116
0.764986
212
2,102
7.240566
0.216981
0.065147
0.084691
0.083388
0.458632
0.376547
0.270358
0.270358
0.270358
0.186319
0
0.016978
0.159372
2,102
51
117
41.215686
0.851726
0
0
0.189189
0
0
0.271429
0.252857
0
0
0
0
0.216216
1
0.243243
false
0
0.081081
0
0.351351
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
1
0
0
0
0
0
0
0
1
eddc8f3d3f9fe062304babd4121734ff09948049
426
py
Python
src/Helix/playercontroller.py
FirstLevelGames/Helix
fd6f3106b65270db33dfa03797b4f0a14881778e
[ "MIT" ]
2
2022-01-28T06:19:19.000Z
2022-02-16T19:32:08.000Z
src/Helix/playercontroller.py
novialriptide/Helix
fd6f3106b65270db33dfa03797b4f0a14881778e
[ "MIT" ]
15
2022-01-25T19:18:59.000Z
2022-01-27T19:32:46.000Z
src/Helix/playercontroller.py
novialriptide/Helix
fd6f3106b65270db33dfa03797b4f0a14881778e
[ "MIT" ]
2
2021-12-11T20:06:17.000Z
2021-12-11T21:05:54.000Z
""" Helix: Flight Test (c) 2021 Andrew Hong This code is licensed under GNU LESSER GENERAL PUBLIC LICENSE (see LICENSE for details) """ from SakuyaEngine.controllers import BaseController class PlayerController(BaseController): def __init__(self) -> None: super().__init__() self.is_shooting = Fals...
25.058824
87
0.71831
48
426
6.020833
0.729167
0.083045
0.145329
0.17301
0.262976
0.262976
0.262976
0
0
0
0
0.011561
0.187793
426
16
88
26.625
0.823699
0.298122
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
eddc970d0bca10b6c7c843c88343bba235218464
433
py
Python
example.py
dib-lab/pybbhash
08a1f71fc5b1f52d450ba1f33b168241423c9047
[ "MIT" ]
16
2018-01-18T06:00:42.000Z
2021-03-03T08:50:42.000Z
example.py
dib-lab/pybbhash
08a1f71fc5b1f52d450ba1f33b168241423c9047
[ "MIT" ]
17
2018-01-21T22:38:37.000Z
2021-01-01T16:26:49.000Z
example.py
dib-lab/pybbhash
08a1f71fc5b1f52d450ba1f33b168241423c9047
[ "MIT" ]
3
2018-07-04T20:38:36.000Z
2021-11-11T12:49:01.000Z
import bbhash # some collection of 64-bit (or smaller) hashes uint_hashes = [10, 20, 50, 80] num_threads = 1 # hopefully self-explanatory :) gamma = 1.0 # internal gamma parameter for BBHash mph = bbhash.PyMPHF(uint_hashes, len(uint_hashes), num_threads, gamma) for val in uint_hashes: print('{} now hashes t...
28.866667
75
0.709007
67
433
4.477612
0.656716
0.133333
0
0
0
0
0
0
0
0
0
0.035813
0.161663
433
14
76
30.928571
0.790634
0.427252
0
0
0
0
0.078189
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
eddd968de66af8f80b1a36490ca5e2bd020c72b5
229
py
Python
vesicashapi/upload.py
vesicash/vesicash-python-sdk
0a665e302b88c4eeb316a635c5485c9c3c1fffeb
[ "Apache-2.0" ]
null
null
null
vesicashapi/upload.py
vesicash/vesicash-python-sdk
0a665e302b88c4eeb316a635c5485c9c3c1fffeb
[ "Apache-2.0" ]
null
null
null
vesicashapi/upload.py
vesicash/vesicash-python-sdk
0a665e302b88c4eeb316a635c5485c9c3c1fffeb
[ "Apache-2.0" ]
1
2021-04-20T14:54:40.000Z
2021-04-20T14:54:40.000Z
""" Script used to call the upload service""" from vesicashapi.base import VesicashBase class Upload(VesicashBase): @classmethod def upload(cls, **kwargs): return cls().requests.post('upload/file', data=kwargs)
25.444444
62
0.707424
28
229
5.785714
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.170306
229
8
63
28.625
0.852632
0.165939
0
0
0
0
0.059783
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
edddf9cd795da9fd0a04623dab549ea31d356178
1,618
py
Python
setup.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
setup.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
setup.py
creativechain/crea-python-graphenelib
14b0de84c47c21c8ad2f03a9ace7816135345681
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup # Work around mbcs bug in distutils. # http://bugs.python.org/issue10945 import codecs try: codecs.lookup('mbcs') except LookupError: ascii = codecs.lookup('ascii') codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs')) VERSION = '0.1.3...
30.528302
95
0.585909
150
1,618
6.26
0.66
0.025559
0.046858
0.055378
0.091587
0.091587
0
0
0
0
0
0.012017
0.279975
1,618
52
96
31.115385
0.793991
0.055006
0
0.088889
0
0
0.389908
0.028834
0
0
0
0
0
1
0
false
0
0.044444
0
0.044444
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
eddf6943097b3601f7342c46bb299220a540701b
383
py
Python
mak/libs/pyxx/cxx/grammar/declaration/using_enum.py
bugengine/BugEngine
1b3831d494ee06b0bd74a8227c939dd774b91226
[ "BSD-3-Clause" ]
4
2015-05-13T16:28:36.000Z
2017-05-24T15:34:14.000Z
mak/libs/pyxx/cxx/grammar/declaration/using_enum.py
bugengine/BugEngine
1b3831d494ee06b0bd74a8227c939dd774b91226
[ "BSD-3-Clause" ]
null
null
null
mak/libs/pyxx/cxx/grammar/declaration/using_enum.py
bugengine/BugEngine
1b3831d494ee06b0bd74a8227c939dd774b91226
[ "BSD-3-Clause" ]
1
2017-03-21T08:28:07.000Z
2017-03-21T08:28:07.000Z
""" using-enum-declaration: using elaborated-enum-specifier ; """ import glrp from ...parser import cxx98 from be_typing import TYPE_CHECKING @glrp.rule('using-enum-declaration : "using" elaborated-enum-specifier ";"') @cxx98 def using_enum_declaration(self, p): # type: (CxxParser, glrp.Production) -> None ...
20.157895
76
0.723238
48
383
5.666667
0.479167
0.099265
0.220588
0.183824
0.352941
0.352941
0.352941
0
0
0
0
0.012308
0.151436
383
19
77
20.157895
0.824615
0.274151
0
0
0
0
0.228782
0.173432
0
0
0
0
0
1
0.111111
false
0.111111
0.444444
0
0.555556
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
5
ede0d5ebf66b21e6e1508ac010484457df91425a
531
py
Python
Kickstart/diwali-lightings.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
Kickstart/diwali-lightings.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
Kickstart/diwali-lightings.py
tushar-1728/Coding
2df9da02cf3e5d4af5b47faf02a07ba54b3297cb
[ "MIT" ]
null
null
null
t = int(input()) for i in range(t): pattern = input() lindex, rindex = map(int, input().split()) d = len(pattern) a_list = [] r_count = 0 l_count = 0 flag = 0 for j in range(d): if pattern[j] == "B": a_list.append(j +1) for j in a_list: temp = (rindex - j)...
25.285714
64
0.45951
81
531
2.901235
0.37037
0.06383
0.051064
0
0
0
0
0
0
0
0
0.027027
0.372881
531
20
65
26.55
0.678679
0
0
0
0
0
0.016949
0
0
0
0
0
0
1
0
false
0
0
0
0
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ede0d8d35a9f0d6e5afc0c244d8363190ccf8288
1,121
py
Python
oteltrace/contrib/grpc/utils.py
ocelotl/opentelemetry-auto-instr-python-1
f5c47bd1ee492ffde298794f283031c22891f60b
[ "BSD-3-Clause" ]
2
2020-03-04T17:33:22.000Z
2021-01-20T14:20:10.000Z
oteltrace/contrib/grpc/utils.py
ocelotl/opentelemetry-auto-instr-python-1
f5c47bd1ee492ffde298794f283031c22891f60b
[ "BSD-3-Clause" ]
4
2019-11-25T00:11:16.000Z
2021-05-13T20:43:50.000Z
oteltrace/contrib/grpc/utils.py
ocelotl/opentelemetry-auto-instr-python-1
f5c47bd1ee492ffde298794f283031c22891f60b
[ "BSD-3-Clause" ]
3
2020-02-05T14:54:25.000Z
2020-03-23T02:51:27.000Z
# Copyright 2019, OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
40.035714
77
0.729706
157
1,121
5.121019
0.56051
0.156716
0.074627
0.039801
0
0
0
0
0
0
0
0.015119
0.173952
1,121
27
78
41.518519
0.853132
0.668153
0
0
0
0
0.008571
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
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
ede10dafbf743c6151c9253bd80b7dd3f59da855
3,852
py
Python
datasetparser.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
6
2019-02-11T14:32:23.000Z
2021-12-07T09:49:41.000Z
datasetparser.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
null
null
null
datasetparser.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
2
2018-10-11T17:29:37.000Z
2021-09-08T12:01:40.000Z
#!/usr/bin/env python3 """Reads all the headers in a folder and creates a vola index. @author Jonathan Byrne @copyright 2018 Intel Ltd (see LICENSE file). """ from __future__ import print_function import argparse import glob import os import struct import json def main(): """Read the headers, calc the centroids a...
33.495652
76
0.537383
471
3,852
4.356688
0.295117
0.081871
0.050682
0.054581
0.157407
0.157407
0.134016
0.056043
0
0
0
0.014942
0.287643
3,852
114
77
33.789474
0.732872
0.051661
0
0.021277
0
0
0.131832
0
0
0
0
0
0
1
0.010638
false
0
0.06383
0
0.074468
0.053191
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ede193cbc7f6dd6ed49b143d3a053602c1a03e2e
6,324
py
Python
chart-generator/main.py
ShironCat/covid-19-fernandopolis
f7767ed604368c27732de0b3300967bf1019e6e6
[ "CC0-1.0" ]
3
2020-06-10T02:51:38.000Z
2021-05-14T14:37:09.000Z
chart-generator/main.py
ShironCat/covid-19-fernandopolis
f7767ed604368c27732de0b3300967bf1019e6e6
[ "CC0-1.0" ]
1
2022-03-12T01:08:07.000Z
2022-03-12T01:08:07.000Z
chart-generator/main.py
ShironCat/covid-19-fernandopolis
f7767ed604368c27732de0b3300967bf1019e6e6
[ "CC0-1.0" ]
1
2020-06-18T21:50:11.000Z
2020-06-18T21:50:11.000Z
from datetime import datetime, timedelta import matplotlib.dates as mdates import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy.optimize as opt def area_chart(ds, dateFmt): # create a subplot fig, ax = plt.subplots() # set figure size and dpi fig.set_size_inches(10, 5) ...
29.277778
79
0.553131
817
6,324
4.226438
0.22399
0.034752
0.059079
0.039965
0.631625
0.551984
0.537793
0.518679
0.511729
0.50362
0
0.041189
0.2821
6,324
215
80
29.413953
0.719383
0.112587
0
0.486842
0
0
0.189862
0.017912
0
0
0
0
0
1
0.032895
false
0
0.039474
0
0.078947
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
ede3596e0f595cefcd0e9bb3ee971620608011db
5,297
py
Python
carrier/classification/src/eda/eda.py
talk2sunil83/UpgradLearning
70c4f993c68ce5030e9df0edd15004bbb9fc71e7
[ "Apache-2.0" ]
null
null
null
carrier/classification/src/eda/eda.py
talk2sunil83/UpgradLearning
70c4f993c68ce5030e9df0edd15004bbb9fc71e7
[ "Apache-2.0" ]
null
null
null
carrier/classification/src/eda/eda.py
talk2sunil83/UpgradLearning
70c4f993c68ce5030e9df0edd15004bbb9fc71e7
[ "Apache-2.0" ]
null
null
null
# %% [markdown] ''' # Calculate suspect score for manufacturing claims ''' # %% [markdown] ''' # Problem statement ''' # %% [markdown] ''' **Author** : Sunil Yadav || yadav.sunil83@gmail.com || +91 96206 38383 || ''' # %% [markdown] ''' # Solution Approach - Check if we can correctly segregate suspected claims -...
23.542222
111
0.600906
590
5,297
5.116949
0.372881
0.059622
0.095396
0.041736
0.186154
0.127526
0.108976
0.07519
0.040411
0.040411
0
0.011887
0.25354
5,297
224
112
23.647321
0.751644
0.11516
0
0.030303
0
0
0.133457
0.018763
0
0
0
0.004464
0
1
0
false
0
0.257576
0
0.257576
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ede54949181848e3b9662de38d4f462733cf71e6
603
py
Python
ztag/annotations/americanmegatrends.py
justinbastress/ztag
137b754dfe22b7d6e0945ae33def372ec67d092b
[ "Apache-2.0" ]
107
2015-10-13T16:03:21.000Z
2021-11-08T10:53:07.000Z
ztag/annotations/americanmegatrends.py
justinbastress/ztag
137b754dfe22b7d6e0945ae33def372ec67d092b
[ "Apache-2.0" ]
73
2015-10-14T17:27:10.000Z
2018-10-01T14:32:44.000Z
ztag/annotations/americanmegatrends.py
justinbastress/ztag
137b754dfe22b7d6e0945ae33def372ec67d092b
[ "Apache-2.0" ]
36
2015-10-14T17:13:20.000Z
2021-10-05T19:41:10.000Z
from ztag.annotation import * class AmericanMegatrends(Annotation): protocol = protocols.HTTPS subprotocol = protocols.HTTPS.TLS port = None tests = { "american_megatrends":{ "local_metadata":{ "manufacturer": Manufacturer.AMERICANMEGATRENDS } ...
26.217391
81
0.621891
50
603
7.44
0.66
0.075269
0.134409
0.198925
0.295699
0
0
0
0
0
0
0.002304
0.280265
603
22
82
27.409091
0.854839
0
0
0
0
0
0.172757
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.470588
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ede594c7b841a17bd745f94e6e14ca549a96c9d0
621
py
Python
bnpy/viz/__init__.py
zhaottcrystal/bnpy
0195a0228e9e698799e52a6dfa1d051e82b43fd0
[ "BSD-3-Clause" ]
1
2019-05-14T19:56:53.000Z
2019-05-14T19:56:53.000Z
bnpy/viz/__init__.py
zhaottcrystal/bnpy
0195a0228e9e698799e52a6dfa1d051e82b43fd0
[ "BSD-3-Clause" ]
null
null
null
bnpy/viz/__init__.py
zhaottcrystal/bnpy
0195a0228e9e698799e52a6dfa1d051e82b43fd0
[ "BSD-3-Clause" ]
1
2020-09-01T13:21:18.000Z
2020-09-01T13:21:18.000Z
""" The :mod:`viz` module provides visualization capability """ import viz.BarsViz import viz.BernViz import viz.GaussViz import viz.SequenceViz import viz.ProposalViz import viz.PlotTrace import viz.PlotELBO import viz.PlotK import viz.PlotHeldoutLik import viz.PlotParamComparison import viz.PlotComps import viz.J...
23
74
0.745572
64
621
7.171875
0.359375
0.27451
0
0
0
0
0
0
0
0
0
0
0.144928
621
26
75
23.884615
0.864407
0.088567
0
0
0
0
0.25448
0
0
0
0
0
0
1
0
false
0
0.777778
0
0.777778
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
ede87d5f9bacdbbf74448b95d151644f8502d5f0
5,532
py
Python
vlnce_baselines/common/ddppo_alg.py
Felix2048/VLN-CE
4ea21f2af0d869ae65dd6677a53e788233f93761
[ "MIT" ]
106
2020-05-11T00:47:23.000Z
2022-03-31T13:15:18.000Z
vlnce_baselines/common/ddppo_alg.py
Felix2048/VLN-CE
4ea21f2af0d869ae65dd6677a53e788233f93761
[ "MIT" ]
30
2020-08-01T02:43:32.000Z
2022-03-31T21:20:30.000Z
vlnce_baselines/common/ddppo_alg.py
Felix2048/VLN-CE
4ea21f2af0d869ae65dd6677a53e788233f93761
[ "MIT" ]
36
2020-06-16T01:18:20.000Z
2022-03-09T17:15:48.000Z
from typing import Tuple import torch from habitat_baselines.rl.ddppo.algo.ddppo import DDPPO from torch.functional import Tensor from torch.nn.functional import l1_loss class WDDPPO(DDPPO): """Differences with DD-PPO: - expands entropy calculation and tracking to three variables - adds a regularization ...
36.88
78
0.525669
549
5,532
4.947177
0.238616
0.052651
0.015464
0.018778
0.086892
0.025037
0
0
0
0
0
0.012983
0.401302
5,532
149
79
37.127517
0.807065
0.041576
0
0.081301
0
0
0.010223
0
0
0
0
0
0
1
0.02439
false
0
0.04065
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edea2cfe56a56fb79fd1fce518faeebadbd65eee
1,791
py
Python
main.py
Jackson-Kang/Speech-dataset-generator
7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d
[ "MIT" ]
4
2020-11-19T09:28:40.000Z
2020-12-10T10:56:38.000Z
main.py
Jackson-Kang/Speech-dataset-generator
7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d
[ "MIT" ]
null
null
null
main.py
Jackson-Kang/Speech-dataset-generator
7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d
[ "MIT" ]
null
null
null
import sys import configs as cfg from video2wav import Video2Wav_Converter from segment_speech import Segment_Speech from transcribe_speech import Transcribe_Speech from utils import create_dir def convert_video_to_wav(): create_dir(cfg.preprocessed_wav_savepath) create_dir(cfg.extracted_wav_savepath) v2w = Vi...
27.553846
79
0.757119
249
1,791
5.004016
0.305221
0.070626
0.038523
0.043339
0.144462
0.12199
0.075441
0.075441
0.075441
0
0
0.018
0.162479
1,791
64
80
27.984375
0.812667
0
0
0.044444
0
0
0.024009
0
0
0
0
0
0.022222
1
0.066667
false
0
0.133333
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
edeef0d9d796972bf70b21cd812c5bf7a74c376d
216
py
Python
cgh_practical_ml/b_pandas.py
bm2-lab/MLClass
50e12d58aa56c25feefaa18af2351148052c4c22
[ "Apache-2.0" ]
2
2017-05-18T08:01:10.000Z
2017-06-07T06:23:11.000Z
cgh_practical_ml/b_pandas.py
bm2-lab/MLClass
50e12d58aa56c25feefaa18af2351148052c4c22
[ "Apache-2.0" ]
null
null
null
cgh_practical_ml/b_pandas.py
bm2-lab/MLClass
50e12d58aa56c25feefaa18af2351148052c4c22
[ "Apache-2.0" ]
null
null
null
import pandas as pd dfm = pd.read_csv('h3.bed', sep='\t', header=None, index_col=None) dfm.columns = ['chrom', 'start', 'end'] dfm['length'] = dfm['end'] - dfm['start'] dfm.to_csv('h3.tsv', sep='\t', index=None)
21.6
66
0.62037
37
216
3.540541
0.594595
0.076336
0
0
0
0
0
0
0
0
0
0.010582
0.125
216
10
67
21.6
0.68254
0
0
0
0
0
0.198157
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edef28264d82bcd62dedd4c32a8425656c175820
7,762
py
Python
scripts/cros_oobe_autoconfig.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
scripts/cros_oobe_autoconfig.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
scripts/cros_oobe_autoconfig.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provision a recovery image for OOBE autoconfiguration. This script populates the OOBE autoconfiguration data (/stateful/unencr...
33.747826
80
0.676887
988
7,762
5.213563
0.315789
0.013978
0.026403
0.024461
0.114735
0.072607
0.048923
0.048923
0.035721
0.017861
0
0.002799
0.21747
7,762
229
81
33.895197
0.845242
0.289616
0
0.046512
0
0
0.295049
0
0
0
0
0
0.015504
1
0.03876
false
0
0.085271
0
0.147287
0.015504
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edf065b3b9d813bd45d5a9f2000c563da0552f93
524
py
Python
delivrable.py
minidfx/Cloud-Python-
c9e4741c4c4f7de77f439e2786cca7f03f70cad9
[ "MIT" ]
null
null
null
delivrable.py
minidfx/Cloud-Python-
c9e4741c4c4f7de77f439e2786cca7f03f70cad9
[ "MIT" ]
null
null
null
delivrable.py
minidfx/Cloud-Python-
c9e4741c4c4f7de77f439e2786cca7f03f70cad9
[ "MIT" ]
null
null
null
import os import sys from Amazon import Amazon from OpenStack import OpenStack if sys.version_info.major < 2 and sys.version_info.minor < 7: raise Exception("Python version 2.7 minimum is required for running this script.") clouds = [OpenStack(), Amazon()] for cloud in clouds: cloud.create() print('Press \...
20.153846
86
0.717557
76
524
4.921053
0.565789
0.053476
0.074866
0.085562
0.219251
0
0
0
0
0
0
0.018433
0.171756
524
25
87
20.96
0.843318
0
0
0.25
0
0
0.234733
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edf0710ec6bce13e2d9a52d1a1948bbc1d362eb2
11,466
py
Python
tests/test_algebra_meta_onnx.py
adrinjalali/sklearn-onnx
160200eb19880b4ded0acdd0c1e1a5ecd45c7b74
[ "MIT" ]
null
null
null
tests/test_algebra_meta_onnx.py
adrinjalali/sklearn-onnx
160200eb19880b4ded0acdd0c1e1a5ecd45c7b74
[ "MIT" ]
null
null
null
tests/test_algebra_meta_onnx.py
adrinjalali/sklearn-onnx
160200eb19880b4ded0acdd0c1e1a5ecd45c7b74
[ "MIT" ]
null
null
null
import os import unittest from distutils.version import StrictVersion from io import StringIO import contextlib import numpy from numpy.testing import assert_almost_equal import onnx import onnxruntime from onnx import numpy_helper, helper from skl2onnx.algebra.onnx_ops import dynamic_class_creation from skl2onnx.algeb...
41.846715
79
0.513257
1,252
11,466
4.555911
0.191693
0.031557
0.043829
0.025245
0.380084
0.318724
0.294004
0.286466
0.245792
0.229313
0
0.012133
0.381825
11,466
273
80
42
0.792607
0.045788
0
0.3361
0
0
0.112689
0.006047
0
0
0
0
0.033195
1
0.029046
false
0.008299
0.062241
0
0.145228
0.004149
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edf0ed4c0d4a032f2c535b742fa786f5f5390938
366
py
Python
drink_partners/contrib/utils/tests/test_points_distance.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
null
null
null
drink_partners/contrib/utils/tests/test_points_distance.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
22
2020-05-02T19:32:24.000Z
2021-10-17T21:19:46.000Z
drink_partners/contrib/utils/tests/test_points_distance.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
null
null
null
from drink_partners.contrib.utils.points_distance import ( get_coordinate_distance_points ) class TestCalculatePointsDistance: def test_should_get_coordinate_distance_points(self): point_a = [4, 0] point_b = [6, 6] assert get_coordinate_distance_points( a=point_a, ...
22.875
58
0.677596
43
366
5.372093
0.55814
0.168831
0.272727
0.350649
0
0
0
0
0
0
0
0.07326
0.254098
366
15
59
24.4
0.772894
0
0
0
0
0
0
0
0
0
0
0
0.090909
1
0.090909
false
0
0.090909
0
0.272727
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
edf26090d854080fb9b45549474f48ba0c37c05d
7,526
py
Python
moztrap/model/environments/api.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
moztrap/model/environments/api.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
moztrap/model/environments/api.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
from tastypie import fields from tastypie import http from tastypie.resources import ModelResource, ALL, ALL_WITH_RELATIONS from tastypie.exceptions import ImmediateHttpResponse from ..mtapi import MTResource, MTAuthorization from .models import Profile, Environment, Element, Category import logging logger = logging....
34.209091
83
0.59806
774
7,526
5.715762
0.284238
0.016275
0.018083
0.0217
0.292722
0.259268
0.22717
0.22717
0.193264
0.175633
0
0.000387
0.313978
7,526
219
84
34.365297
0.856479
0.1924
0
0.304348
0
0
0.087052
0.013134
0
0
0
0
0
1
0.057971
false
0.007246
0.072464
0
0.282609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edf3aad2c02724856ffa4ce73bc25b97e1a9d7b0
937
py
Python
Bot/script7.py
hjunor/Bot-python-Instagran
448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4
[ "MIT" ]
1
2020-07-29T18:00:18.000Z
2020-07-29T18:00:18.000Z
Bot/script7.py
hjunor/Bot-python-Instagram
448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4
[ "MIT" ]
null
null
null
Bot/script7.py
hjunor/Bot-python-Instagram
448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4
[ "MIT" ]
null
null
null
#parar de seguir seguidores ... from instapy import InstaPy from instapy import smart_run session = InstaPy(username='' , password='') with smart_run(session): session.set_do_follow(enabled=True, percentage=100) session.set_do_like(enabled=True, percentage=100) session.unfollow_users(amount=100, allFol...
37.48
130
0.716115
125
937
5.24
0.504
0.061069
0.054962
0.073282
0.319084
0.146565
0.146565
0.146565
0.146565
0.146565
0
0.0425
0.146211
937
24
131
39.041667
0.77625
0.14301
0
0
0
0
0.122396
0
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
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
1
0
0
0
0
0
1
edf492afe84acc1713a2081782233e25be267de7
890
py
Python
examples/failbot/failbot/writer_options.py
Tallisado/DbBot
cfdea98a5770d86e886205fb2c8b9198c2d6be20
[ "Apache-2.0" ]
1
2021-11-22T14:35:22.000Z
2021-11-22T14:35:22.000Z
examples/failbot/failbot/writer_options.py
Tallisado/DbBot
cfdea98a5770d86e886205fb2c8b9198c2d6be20
[ "Apache-2.0" ]
null
null
null
examples/failbot/failbot/writer_options.py
Tallisado/DbBot
cfdea98a5770d86e886205fb2c8b9198c2d6be20
[ "Apache-2.0" ]
null
null
null
from os.path import exists from sys import argv from dbbot import CommandLineOptions class WriterOptions(CommandLineOptions): @property def output_file_path(self): return self._options.output_file_path def _add_parser_options(self): super(WriterOptions, self)._add_parser_options() ...
30.689655
79
0.668539
110
890
5.118182
0.4
0.085258
0.099467
0.063943
0.159858
0.092362
0
0
0
0
0
0.001486
0.24382
890
28
80
31.785714
0.835067
0
0
0
0
0
0.124719
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0.045455
0.409091
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
edf4bcfd3616b9eb20798b538246c06d4982fdb4
223
py
Python
Solving_Problems/max_common_divisor.py
mingzhangyang/learning_pandas
6ec0ef09839d87a28dbf3beaa7c61e89f4346a36
[ "Apache-2.0" ]
null
null
null
Solving_Problems/max_common_divisor.py
mingzhangyang/learning_pandas
6ec0ef09839d87a28dbf3beaa7c61e89f4346a36
[ "Apache-2.0" ]
null
null
null
Solving_Problems/max_common_divisor.py
mingzhangyang/learning_pandas
6ec0ef09839d87a28dbf3beaa7c61e89f4346a36
[ "Apache-2.0" ]
1
2017-10-10T15:09:38.000Z
2017-10-10T15:09:38.000Z
#!usr/bin/python #coding:utf8 #mcd:max_common_divisor def mcd(a, b):#a and b are natural numbers. if a == b: return a t = min(a, b) cd = [i for i in range(1, t+1) if a % i == 0 and b % i == 0] m = max(cd) return m
17.153846
61
0.587444
50
223
2.58
0.56
0.046512
0
0
0
0
0
0
0
0
0
0.029762
0.246637
223
13
62
17.153846
0.738095
0.340807
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edf5ff589947e9a4cdd842f130ed6198e9f67912
1,129
py
Python
Tarefas RNAs/rna_mpl.py
Jovioluiz/IA
35247c782747a972e73a723608e71faa70cb6916
[ "MIT" ]
null
null
null
Tarefas RNAs/rna_mpl.py
Jovioluiz/IA
35247c782747a972e73a723608e71faa70cb6916
[ "MIT" ]
null
null
null
Tarefas RNAs/rna_mpl.py
Jovioluiz/IA
35247c782747a972e73a723608e71faa70cb6916
[ "MIT" ]
null
null
null
#tarefa 4 #Jóvio L. Giacomolli import numpy as np #função sigmoide def sigmoid(x): return 1/(1 + np.exp(-x)) #arquitetura da MPL n_input = 3 n_hidden = 4 n_output = 2 #vetor dos valores de entrada(aleatoria) x = np.array([1, 2, 3]) #pesos camada oculta weights_in_hidden = np.array([[0.2, 0.1,...
25.659091
63
0.591674
174
1,129
3.683908
0.425287
0.074883
0.046802
0.071763
0
0
0
0
0
0
0
0.07472
0.288751
1,129
44
64
25.659091
0.723537
0.282551
0
0
0
0
0.03183
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0.052632
0.157895
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
edf8b9d24eb17e49b5ccc0a21211628f48bd98dd
3,273
py
Python
codestosort/CloudComputing/reports/hw3/src/run.py
jimmy-academia/Deeper-Learnings
ac363efe5450dd2751c0c1bea0ee7af457f7ac24
[ "MIT" ]
2
2019-09-30T04:57:11.000Z
2020-04-06T04:27:46.000Z
codestosort/CloudComputing/reports/hw3/src/run.py
jimmy-academia/Deeper-Learnings
ac363efe5450dd2751c0c1bea0ee7af457f7ac24
[ "MIT" ]
null
null
null
codestosort/CloudComputing/reports/hw3/src/run.py
jimmy-academia/Deeper-Learnings
ac363efe5450dd2751c0c1bea0ee7af457f7ac24
[ "MIT" ]
null
null
null
from thrift.transport import TSocket,TTransport from thrift.protocol import TBinaryProtocol from hbase import Hbase from hbase.ttypes import ColumnDescriptor from hbase.ttypes import Mutation import csv import os import time import logging from tqdm import tqdm # table: station, column: attr, row: date def main(): ...
36.775281
114
0.534983
377
3,273
4.562334
0.416446
0.057558
0.017442
0.024419
0.052326
0
0
0
0
0
0
0.04367
0.307363
3,273
89
115
36.775281
0.715042
0.094409
0
0.03125
0
0
0.132273
0.014885
0
0
0
0
0
1
0.015625
false
0
0.15625
0
0.171875
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
edfad664d6522de1e57decf992ec9921d32421ab
873
py
Python
tests/functional/create_key.py
maxwolfe/autocsr
6c8295c0796f597c8780658de1570f9951b3d846
[ "MIT" ]
null
null
null
tests/functional/create_key.py
maxwolfe/autocsr
6c8295c0796f597c8780658de1570f9951b3d846
[ "MIT" ]
null
null
null
tests/functional/create_key.py
maxwolfe/autocsr
6c8295c0796f597c8780658de1570f9951b3d846
[ "MIT" ]
null
null
null
"""Create PKCS11 Key.""" import pkcs11 from pkcs11.util.ec import encode_named_curve_parameters if __name__ == "__main__": lib = pkcs11.lib("/usr/lib/softhsm/libsofthsm2.so") token = lib.get_token(token_label="token") with token.open(rw=True, user_pin="1234") as session: session.generate_keypair(...
33.576923
87
0.662085
107
873
5.121495
0.439252
0.109489
0.120438
0.153285
0.257299
0.257299
0.182482
0.182482
0.182482
0
0
0.057185
0.218786
873
25
88
34.92
0.746334
0.020619
0
0.105263
0
0
0.110718
0.036514
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
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
edfb1aa3d2ef7463e5b95af6f0bc09df74d092d6
371
py
Python
pyasice/exceptions.py
vgaicuks/pyasice
4e955a4aedc319199dfd367d1d092ba99f4fe1c2
[ "0BSD" ]
6
2021-02-04T13:15:13.000Z
2022-02-04T17:21:40.000Z
pyasice/exceptions.py
vgaicuks/pyasice
4e955a4aedc319199dfd367d1d092ba99f4fe1c2
[ "0BSD" ]
5
2020-10-26T14:43:34.000Z
2021-12-27T14:40:10.000Z
pyasice/exceptions.py
thorgate/pyasice
4423b7251392c7bf6bc5d14800b9b396b8eb2222
[ "0BSD" ]
1
2021-07-21T15:36:31.000Z
2021-07-21T15:36:31.000Z
class PyAsiceError(Exception): """ A generic exception that can happen while dealing with ASic-E/BDoc 2 files/signatures """ pass class ContainerError(PyAsiceError): pass class NoFilesToSign(PyAsiceError): pass class SignatureVerificationError(PyAsiceError): pass class InvalidSignat...
16.130435
89
0.746631
35
371
7.914286
0.628571
0.129964
0.227437
0
0
0
0
0
0
0
0
0.003322
0.188679
371
22
90
16.863636
0.916944
0.229111
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
3
edfc9ce9d519343ae32bf3b714e11e2e15706541
2,353
py
Python
model/losses.py
TomHacker/faster-rcnn
313e51f76814cfceb5c2f24fed6d596bebcbd13f
[ "Apache-2.0" ]
1
2019-06-10T00:47:53.000Z
2019-06-10T00:47:53.000Z
model/losses.py
TomHacker/faster-rcnn
313e51f76814cfceb5c2f24fed6d596bebcbd13f
[ "Apache-2.0" ]
null
null
null
model/losses.py
TomHacker/faster-rcnn
313e51f76814cfceb5c2f24fed6d596bebcbd13f
[ "Apache-2.0" ]
null
null
null
from keras import backend as K from keras.objectives import categorical_crossentropy import tensorflow as tf lambda_rpn_regr=1.0 lambda_rpn_class=1.0 lambda_cls_regr=1.0 lambda_cls_class=1.0 epsilon=1e-4 def rpn_loss_regr(num_anchors): def rpn_loss_regr_fixed_num(y_true,y_pred): x=y_true[:,:,:,4*num_anch...
48.020408
122
0.486188
301
2,353
3.431894
0.156146
0.082285
0.03485
0.052275
0.655373
0.478219
0.460794
0.42788
0.42788
0.42788
0
0.02481
0.38334
2,353
48
123
49.020833
0.687112
0
0
0.047619
0
0
0.003825
0
0
0
0
0
0
1
0.166667
false
0
0.071429
0.02381
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
edfd77060965954e9fe35eddd7f4bb0c750e7c30
4,597
py
Python
visualization.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
visualization.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
visualization.py
johnrickman/UnpairedImageTranslation
d1d5e1386babacceabb4fe45841592bc7b6c3baa
[ "MIT" ]
null
null
null
import os import chainer import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt from chainer import Variable,cuda import numpy as np import chainer.functions as F import losses from chainer.training import extensions import warnings # assume [0,1] input def postprocess(var): img = var.data.get() ...
39.290598
99
0.530998
636
4,597
3.630503
0.238994
0.019922
0.015591
0.010394
0.486358
0.438718
0.426159
0.408835
0.388913
0.320052
0
0.015489
0.325865
4,597
116
100
39.62931
0.72959
0.080052
0
0.326316
0
0
0.042766
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61005a7c75432e9ae42ede4d5ac15e5f374b5507
19
py
Python
myenv/Lib/site-packages/stripe/version.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
myenv/Lib/site-packages/stripe/version.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
myenv/Lib/site-packages/stripe/version.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
VERSION = "2.50.0"
9.5
18
0.578947
4
19
2.75
1
0
0
0
0
0
0
0
0
0
0
0.25
0.157895
19
1
19
19
0.4375
0
0
0
0
0
0.315789
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
6100a22323f15fa26e9d7d5c689f91872739d259
2,336
py
Python
spark_lsh.py
lambdadatascience/lsh
9bff84c0de984bb3f3ded782baf49da73031517d
[ "MIT" ]
null
null
null
spark_lsh.py
lambdadatascience/lsh
9bff84c0de984bb3f3ded782baf49da73031517d
[ "MIT" ]
null
null
null
spark_lsh.py
lambdadatascience/lsh
9bff84c0de984bb3f3ded782baf49da73031517d
[ "MIT" ]
null
null
null
import argparse import os.path import functools import numpy as np from pyspark.mllib.linalg import SparseVector from pyspark import SparkContext, SparkConf import text_helpers #TODO: implement def getHashFunctions(n=200): """ generates n number of hash functions """ pass #TODO: implement def getStopWord...
29.2
75
0.657962
304
2,336
4.976974
0.398026
0.027759
0.031725
0.041639
0.09121
0.034369
0
0
0
0
0
0.009455
0.230308
2,336
79
76
29.56962
0.832036
0.330051
0
0.085714
0
0
0.179539
0
0
0
0
0.050633
0
1
0.114286
false
0.085714
0.2
0
0.314286
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
1
0
0
0
0
1
0
0
0
0
0
2
6101e8e012fece4c920c8244350e3a04fbec14a7
4,469
py
Python
perfkitbenchmarker/linux_packages/memcached_server.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
1
2016-12-07T19:49:58.000Z
2016-12-07T19:49:58.000Z
perfkitbenchmarker/linux_packages/memcached_server.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_packages/memcached_server.py
pierre-emmanuelJ/PerfKitBenchmarker
3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 PerfKitBenchmarker 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 appli...
33.601504
80
0.707765
601
4,469
5.179701
0.382696
0.043367
0.021844
0.017347
0.101189
0.083842
0.069386
0.069386
0.069386
0.028269
0
0.009655
0.188857
4,469
132
81
33.856061
0.849103
0.358022
0
0.095238
0
0
0.258516
0
0
0
0
0
0
1
0.126984
false
0
0.079365
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
6101fbe36a07e3eb66e44044a1570bf0f15fcbb4
582
py
Python
tests/test_test_framework.py
mvaleev/asyncpgsa
19b6b9f49cd8a6e63c79695fcb995a59964f694e
[ "Apache-2.0" ]
419
2016-07-22T20:08:05.000Z
2022-03-03T14:39:28.000Z
tests/test_test_framework.py
mvaleev/asyncpgsa
19b6b9f49cd8a6e63c79695fcb995a59964f694e
[ "Apache-2.0" ]
89
2016-09-16T17:28:14.000Z
2021-04-30T08:16:47.000Z
tests/test_test_framework.py
mvaleev/asyncpgsa
19b6b9f49cd8a6e63c79695fcb995a59964f694e
[ "Apache-2.0" ]
63
2016-08-05T15:46:24.000Z
2022-03-31T13:33:54.000Z
# Testing our tests!! from asyncpgsa.testing import MockPG async def test_use_fetchrow(): pg = MockPG() pg.set_database_results({'sqrt': 3}) result = await pg.fetchrow('SELECT * FROM sqrt(16);') assert result['sqrt'] == 3 async def test_use_fetchval(): pg = MockPG() pg.set_database_results(3)...
25.304348
57
0.646048
82
582
4.439024
0.317073
0.054945
0.098901
0.123626
0.648352
0.56044
0.252747
0.252747
0.252747
0.252747
0
0.027957
0.201031
582
22
58
26.454545
0.754839
0.032646
0
0.1875
0
0
0.151515
0
0
0
0
0
0.1875
1
0
false
0
0.0625
0
0.0625
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
610352de23c24c1211593fc045bfabda52ab33ba
3,784
py
Python
tests.py
dantheta/norm
0048dc66686e24d08ae3d01fda8d719abc09f276
[ "BSD-3-Clause" ]
null
null
null
tests.py
dantheta/norm
0048dc66686e24d08ae3d01fda8d719abc09f276
[ "BSD-3-Clause" ]
null
null
null
tests.py
dantheta/norm
0048dc66686e24d08ae3d01fda8d719abc09f276
[ "BSD-3-Clause" ]
null
null
null
import NORM import NORM.utils import psycopg2 import unittest import logging logging.basicConfig(level = logging.WARN) class Person(NORM.DBObject): TABLE = 'people' FIELDS = ['firstname','surname','age'] class FakeCursor(object): def __init__(self, conn): self.conn = conn def execute(self, sql, args = []): ...
24.101911
69
0.656184
490
3,784
5.026531
0.195918
0.074706
0.08039
0.053999
0.481527
0.394641
0.2838
0.213561
0.213561
0.213561
0
0.018886
0.160412
3,784
156
70
24.25641
0.756374
0.012421
0
0.235294
0
0
0.15743
0
0
0
0
0
0.252101
1
0.142857
false
0.008403
0.042017
0.008403
0.277311
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
61037aee09d2dd1ca60025b574f0aaaa3bfd465f
4,012
py
Python
logger/tensorboard_logger.py
system123/SOMatch
6f10cf28f506998a5e430ccd3faab3076fe350d5
[ "MIT" ]
22
2020-09-25T05:10:57.000Z
2022-03-16T08:16:00.000Z
logger/tensorboard_logger.py
system123/SOMatch
6f10cf28f506998a5e430ccd3faab3076fe350d5
[ "MIT" ]
14
2020-10-09T14:12:08.000Z
2021-05-18T12:55:18.000Z
logger/tensorboard_logger.py
system123/SOMatch
6f10cf28f506998a5e430ccd3faab3076fe350d5
[ "MIT" ]
15
2020-11-02T02:01:58.000Z
2022-03-30T08:00:17.000Z
import os import torch import numpy as np import torchvision.utils as vutils from tensorboardX import SummaryWriter from datetime import datetime from utils.helpers import get_learning_rate class TensorboardLogger: def __init__(self, log_every=10, log_params=False, log_dir=None, log_images=False, log_grads=False, ...
38.951456
115
0.720588
593
4,012
4.671164
0.241147
0.06065
0.067509
0.030325
0.189531
0.144765
0.110469
0.068592
0.039711
0.039711
0
0.007184
0.132602
4,012
103
116
38.951456
0.788793
0.068046
0
0.084507
0
0
0.069954
0.012061
0
0
0
0
0
1
0.169014
false
0
0.098592
0
0.295775
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6103dca99223e2064971d08bcfcec2f45746107b
870
py
Python
challenges/week_1/bus_fare_challenge.py
sling254/python
c49c2c63a5fe92f07d24bbb28c3a176d516816da
[ "MIT" ]
null
null
null
challenges/week_1/bus_fare_challenge.py
sling254/python
c49c2c63a5fe92f07d24bbb28c3a176d516816da
[ "MIT" ]
null
null
null
challenges/week_1/bus_fare_challenge.py
sling254/python
c49c2c63a5fe92f07d24bbb28c3a176d516816da
[ "MIT" ]
null
null
null
# WRITE YOUR CODE SOLUTION HERE from datetime import datetime, timedelta, date #Get todays date and store it in a variable 'date' date = datetime.now() """ # Use todays date to get the name on the day of the week written in a short # form with the first letter capitalized (e.g) 'Fri' if today were Friday and # as...
20.714286
80
0.636782
136
870
4.073529
0.544118
0.057762
0
0
0
0
0
0
0
0
0
0.037707
0.237931
870
41
81
21.219512
0.797888
0.089655
0
0
0
0
0.096317
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6103de3de6f757d0d0039c05b3e7ed32ecf1a76c
572
py
Python
TaskManager/forms.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
TaskManager/forms.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
TaskManager/forms.py
farahaulita/pbp-tk
fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c
[ "Unlicense" ]
null
null
null
from django.db.models.base import Model from django.forms import ModelForm, widgets from django import forms from login.models import User, Task, Submissions, Subject class DateTimeInput(forms.DateTimeInput): input_type = 'datetime-local' input_value = "" class AddTaskForm(ModelForm): class Meta: ...
26
58
0.655594
59
572
6.322034
0.525424
0.080429
0.096515
0.123324
0
0
0
0
0
0
0
0
0.243007
572
22
59
26
0.861432
0
0
0.111111
0
0
0.099476
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.611111
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
610406ba37832372e56f799a0a8405cc81ffc202
2,200
py
Python
src/GUI.py
samm82/WebexPollBuilder
9dc52595fae22043f48981c12eeda0d90b000fc8
[ "MIT" ]
null
null
null
src/GUI.py
samm82/WebexPollBuilder
9dc52595fae22043f48981c12eeda0d90b000fc8
[ "MIT" ]
13
2020-09-10T01:18:43.000Z
2020-09-21T12:56:58.000Z
src/GUI.py
samm82/WebexPollBuilder
9dc52595fae22043f48981c12eeda0d90b000fc8
[ "MIT" ]
null
null
null
import PySimpleGUI as sg def webexPollBuilderGUI(t): return sg.Window("Webex Poll Builder").Layout( [[sg.Text("How long should the question last for?"), sg.Combo(t)], [sg.Text("Select the file with the question and answers.")], [sg.In(), sg.FileBrowse()], [sg.Text("Sel...
28.571429
74
0.605909
269
2,200
4.95539
0.36803
0.047262
0.058515
0.054014
0.186797
0.181545
0.171043
0.114029
0.061515
0.061515
0
0.001812
0.247273
2,200
76
75
28.947368
0.80314
0
0
0
0
0
0.415455
0
0
0
0
0
0
1
0.26
false
0
0.02
0.02
0.3
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
1
0
0
0
0
0
0
0
1
61044666403f7fed0ad63dd4accb5ea22bf27e14
12,740
py
Python
spira/yevon/geometry/nets/net.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
10
2018-07-13T09:46:21.000Z
2021-06-22T13:34:50.000Z
spira/yevon/geometry/nets/net.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
8
2018-09-09T11:32:40.000Z
2019-10-08T07:47:31.000Z
spira/yevon/geometry/nets/net.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
7
2019-01-17T18:50:17.000Z
2022-01-13T20:27:52.000Z
import numpy as np import networkx as nx from copy import deepcopy from spira.core.parameters.variables import GraphParameter, StringParameter from spira.core.parameters.descriptor import Parameter, RestrictedParameter from spira.yevon.geometry.coord import Coord from spira.yevon.vmodel.geometry import GeometryParamet...
35.388889
111
0.557614
1,581
12,740
4.329538
0.150538
0.030679
0.030241
0.030679
0.443974
0.39065
0.351497
0.332067
0.269832
0.207597
0
0.011103
0.328414
12,740
359
112
35.487465
0.78892
0.141758
0
0.267544
0
0
0.081076
0.004357
0
0
0
0.002786
0
1
0.118421
false
0.004386
0.087719
0.013158
0.337719
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
6106d1e77ba2c189d3335415eaec9708cfc5663a
337
py
Python
main.py
vsalvino/pyinstaller-demo
0abfd197bb5aaafc894d3f48848d2c919ad62792
[ "Unlicense" ]
null
null
null
main.py
vsalvino/pyinstaller-demo
0abfd197bb5aaafc894d3f48848d2c919ad62792
[ "Unlicense" ]
null
null
null
main.py
vsalvino/pyinstaller-demo
0abfd197bb5aaafc894d3f48848d2c919ad62792
[ "Unlicense" ]
null
null
null
""" Runs list_files on the current directory (".") """ from util import list_files def main() -> None: path = "." files = list_files(path) for f in files: print( "d" if f.isdir else "f", f" {f.human_readable_bytes:<12}", f.path ) if __name__ == "__mai...
16.047619
46
0.51632
43
337
3.744186
0.627907
0.167702
0
0
0
0
0
0
0
0
0
0.009009
0.341246
337
20
47
16.85
0.716216
0.136499
0
0
0
0
0.141343
0.09894
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6107e1c219772ea1245d3f4b2f2a7463443f4c29
11,846
py
Python
bin/NormalizeReadCounts.py
DSchreyer/crisprquant
ffebb979064fed2d4f65ce6dc1c703b829ff23e7
[ "MIT" ]
1
2021-03-19T09:50:48.000Z
2021-03-19T09:50:48.000Z
bin/NormalizeReadCounts.py
DSchreyer/crisprquant
ffebb979064fed2d4f65ce6dc1c703b829ff23e7
[ "MIT" ]
2
2021-03-19T09:43:20.000Z
2021-06-23T07:22:43.000Z
bin/NormalizeReadCounts.py
DSchreyer/crisprquant
ffebb979064fed2d4f65ce6dc1c703b829ff23e7
[ "MIT" ]
3
2021-03-18T15:03:18.000Z
2021-06-26T19:09:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Mon Feb 13 09:23:51 2017 @author: philipp """ # Analyze count distribution # ======================================================================= # Imports from __future__ import division # floating point division by default import sys import yaml import ...
46.637795
123
0.516968
1,125
11,846
5.356444
0.168889
0.023233
0.027879
0.025556
0.652838
0.625788
0.615831
0.609359
0.606372
0.579489
0
0.016597
0.29301
11,846
253
124
46.822134
0.702925
0.140132
0
0.553299
0
0
0.121547
0.009471
0
0
0
0
0
1
0.005076
false
0
0.045685
0
0.050761
0.091371
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
610a96c124ddf123bf15adaeaa766b98e989700b
3,022
py
Python
tests/smoke/basic_tests.py
hsyed/rules_kotlin_old
7abdd03cf63dcbc629033aac82de7681d27eebe0
[ "Apache-2.0" ]
9
2018-02-08T04:07:22.000Z
2019-11-15T04:17:33.000Z
tests/smoke/basic_tests.py
hsyed/rules_kotlin_old
7abdd03cf63dcbc629033aac82de7681d27eebe0
[ "Apache-2.0" ]
null
null
null
tests/smoke/basic_tests.py
hsyed/rules_kotlin_old
7abdd03cf63dcbc629033aac82de7681d27eebe0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Bazel 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 applicable la...
42.56338
149
0.74818
358
3,022
6.097765
0.385475
0.038479
0.087952
0.066422
0.420522
0.225836
0.179111
0.136051
0.136051
0.136051
0
0.003137
0.156188
3,022
70
150
43.171429
0.852941
0.273991
0
0.083333
0
0
0.288143
0.221507
0
0
0
0
0.194444
1
0.333333
false
0
0.055556
0
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
1
0
0
0
0
0
0
0
1
610ab1863c7ddaa1c38857f222e1b6a7d510644e
4,655
py
Python
secuinside-2017/Very Very Chart/chart.py
mathboy7/CTF
e279bf91ad6b22fc41087571c5fba9501832ab80
[ "Apache-2.0" ]
46
2017-11-07T05:30:26.000Z
2021-11-24T09:33:41.000Z
secuinside-2017/Very Very Chart/chart.py
mathboy7/CTF
e279bf91ad6b22fc41087571c5fba9501832ab80
[ "Apache-2.0" ]
null
null
null
secuinside-2017/Very Very Chart/chart.py
mathboy7/CTF
e279bf91ad6b22fc41087571c5fba9501832ab80
[ "Apache-2.0" ]
3
2017-11-14T14:45:28.000Z
2020-08-30T07:59:04.000Z
from pwn import * r = process("./chart") raw_input("$") def register(type_, ID, PW, name, profile=""): # user 1, composer 2 r.send("2\n") print r.recvuntil("Type :") r.send(str(type_)+"\n") print r.recvuntil("ID : ") r.send(ID+"\n") print r.recvuntil("PW : ") r.send(PW+"\n") print r.recvuntil("Name : ") r.s...
20.874439
71
0.643179
709
4,655
4.211566
0.181946
0.147354
0.216008
0.203617
0.363027
0.268252
0.248158
0.203952
0.118888
0.104153
0
0.050406
0.126316
4,655
222
72
20.968468
0.683796
0.080559
0
0.520231
0
0
0.152726
0
0
0
0.025611
0
0
0
null
null
0
0.00578
null
null
0.260116
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
610dcc6aa683bc18e852da17456d9fb2df99e847
8,761
py
Python
main.py
francescofraternali/CityLearn
0338dcd81a856638a163bbc88401fa93543b1e05
[ "MIT" ]
1
2020-07-21T22:30:54.000Z
2020-07-21T22:30:54.000Z
main.py
francescofraternali/CityLearn
0338dcd81a856638a163bbc88401fa93543b1e05
[ "MIT" ]
null
null
null
main.py
francescofraternali/CityLearn
0338dcd81a856638a163bbc88401fa93543b1e05
[ "MIT" ]
null
null
null
from citylearn import CityLearn, building_loader, auto_size from energy_models import HeatPump, EnergyStorage, Building import matplotlib.pyplot as plt import torch import torch.optim as optim import torch.nn as nn import torch.nn.functional as F import collections import gym from gym.utils import seeding from gym im...
38.091304
201
0.629266
1,240
8,761
4.194355
0.220968
0.021534
0.013843
0.019612
0.271679
0.185157
0.13632
0.104211
0.062296
0.042684
0
0.028924
0.242324
8,761
229
202
38.257642
0.754595
0.12179
0
0.101266
0
0
0.00862
0.006138
0
0
0
0
0
1
0.037975
false
0
0.126582
0.006329
0.202532
0.018987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
610ddbb5e092cf2175ef5db86499670928275f5e
2,041
py
Python
main.py
ErikBavenstrand/Neural-Network-Implementation
01652abd972139367c45ce991d228f2a1c125c07
[ "MIT" ]
null
null
null
main.py
ErikBavenstrand/Neural-Network-Implementation
01652abd972139367c45ce991d228f2a1c125c07
[ "MIT" ]
5
2019-11-20T13:29:21.000Z
2022-03-12T00:05:57.000Z
main.py
ErikBavenstrand/Neural-Network-Implementation
01652abd972139367c45ce991d228f2a1c125c07
[ "MIT" ]
null
null
null
import pickle import sys from mnist import MNIST from NeuralNetwork import * import numpy as np from PIL import Image def vectorizeResult(x): e = np.zeros((10, 1)) e[x] = 1.0 return e def getImageArray(fileName): ls = [] for p in np.invert(Image.open(fileName).convert('L')).ravel(): ls.ap...
31.4
100
0.610975
241
2,041
5.13278
0.414938
0.022635
0.014551
0.025869
0.090542
0.038804
0.038804
0.038804
0.038804
0
0
0.022442
0.257717
2,041
64
101
31.890625
0.794059
0
0
0.038462
0
0
0.068594
0
0
0
0
0
0
1
0.057692
false
0
0.115385
0
0.211538
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
610dde3eaecfbbd308febda89f23fdad9f9119a4
139
py
Python
jne/utils.py
kangfend/py-jne
622643f0ab0e4c848a2e8578ec9946716984da34
[ "MIT" ]
15
2015-06-13T22:39:10.000Z
2016-10-09T05:03:27.000Z
jne/utils.py
kangfend/py-jne
622643f0ab0e4c848a2e8578ec9946716984da34
[ "MIT" ]
2
2015-08-28T13:44:18.000Z
2016-01-23T10:06:31.000Z
jne/utils.py
kangfend/py-jne
622643f0ab0e4c848a2e8578ec9946716984da34
[ "MIT" ]
10
2015-03-28T04:34:45.000Z
2021-09-04T09:12:03.000Z
import json def pretty_print(text): """This utils used for print pretty json""" print json.dumps(text, indent=2, sort_keys=True)
19.857143
52
0.705036
22
139
4.363636
0.727273
0
0
0
0
0
0
0
0
0
0
0.008772
0.179856
139
6
53
23.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
0
5
610f4efe5e37318e7fc086def5a33639b6de24e4
1,286
py
Python
JM_exerc/dao/Back_dao.py
matheusschuetz/TrabalhoPython
953957898de633f8f2776681a45a1a15b68e80b9
[ "MIT" ]
1
2020-01-21T11:43:12.000Z
2020-01-21T11:43:12.000Z
JM_exerc/dao/Back_dao.py
matheusschuetz/TrabalhoPython
953957898de633f8f2776681a45a1a15b68e80b9
[ "MIT" ]
null
null
null
JM_exerc/dao/Back_dao.py
matheusschuetz/TrabalhoPython
953957898de633f8f2776681a45a1a15b68e80b9
[ "MIT" ]
null
null
null
import MySQLdb import sys sys.path.append('C:/Users/900152/Documents/Dados/TrabalhoPython/JM_exerc') from model.Back_model import BackEnd class BackDb: def select_all(self): comand = 'SELECT * FROM topskills01.02_JM_BackEnd;' selectcomand = self.cursor.execute(comand) return selectcomand ...
31.365854
155
0.608087
146
1,286
5.253425
0.335616
0.084746
0.097784
0.143416
0.349413
0.140808
0.091265
0.091265
0
0
0
0.028261
0.284603
1,286
40
156
32.15
0.805435
0
0
0
0
0.029412
0.437792
0.140747
0
0
0
0
0
1
0.147059
false
0
0.088235
0
0.382353
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
611169f30f1750c8f1f5f07f7667caa4353a87fb
40
py
Python
dmaap/dmaapcontrollerif/__init__.py
onap/ccsdk-platform-plugins
c1dfbc118f75474b57377447442bd550dd58f1e1
[ "Apache-2.0" ]
1
2020-07-14T14:22:04.000Z
2020-07-14T14:22:04.000Z
dmaap/dmaapcontrollerif/__init__.py
alex-sh2020/dcaegen2-platform-plugins
c5abb9b34468400bdcdd3ce23595af41ac03cd80
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
dmaap/dmaapcontrollerif/__init__.py
alex-sh2020/dcaegen2-platform-plugins
c5abb9b34468400bdcdd3ce23595af41ac03cd80
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-07-14T19:02:05.000Z
2020-07-14T19:02:05.000Z
# DMaaP Bus Controller interface library
40
40
0.85
5
40
6.8
1
0
0
0
0
0
0
0
0
0
0
0
0.125
40
1
40
40
0.971429
0.95
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
611181e7d0195f21d069fc45894a9609fc7010a3
11,206
py
Python
pynars/NARS/DataStructures/_py/Memory.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
pynars/NARS/DataStructures/_py/Memory.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
pynars/NARS/DataStructures/_py/Memory.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
from pynars.Config import Enable from pynars.NAL.Inference.LocalRules import solve_query, solution_query, solution_question from pynars.NAL.MetaLevelInference.VariableSubstitution import unification__var_const from pynars.NARS.DataStructures._py.Link import TaskLink from pynars.Narsese._py.Sentence import Goal, Judgem...
40.601449
165
0.602534
1,269
11,206
5.170213
0.173365
0.035208
0.024691
0.017375
0.385764
0.345831
0.300412
0.288523
0.262003
0.237769
0
0.002608
0.315724
11,206
276
166
40.601449
0.853026
0.199536
0
0.304965
0
0.007092
0.019095
0.015303
0
0
0
0.01087
0
1
0.120567
false
0.014184
0.078014
0.035461
0.312057
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
1
0
0
0
0
0
0
0
0
0
0
1
6111ddacc44418041a2bb2b9f13a62afcc927800
1,861
py
Python
fn/fn_engine.py
zjjott/curiosity
d6aa8ef2503e7e21e26f53e964667288337d4ed1
[ "MIT" ]
null
null
null
fn/fn_engine.py
zjjott/curiosity
d6aa8ef2503e7e21e26f53e964667288337d4ed1
[ "MIT" ]
null
null
null
fn/fn_engine.py
zjjott/curiosity
d6aa8ef2503e7e21e26f53e964667288337d4ed1
[ "MIT" ]
null
null
null
# coding=utf-8 """实现时间片算法""" from __future__ import unicode_literals, absolute_import from fn.fn_loop import LoopContext from fn.fn_eval import EvalContext from collections import deque class TimeSliceEngine(object): def __init__(self): # 运行上下文保存在这里面,切换时从里面开始切换,里面都应该是可执行的函数 # 上下文应当是一个可循环、可修改(运行结束...
23.2625
56
0.577109
198
1,861
5.217172
0.489899
0.085189
0.052275
0.03485
0.10455
0.056147
0
0
0
0
0
0.011182
0.327243
1,861
79
57
23.556962
0.813898
0.191295
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.102564
0.025641
0.487179
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
1
0
0
0
0
0
0
0
1
611288649e75ce5d1bb3366ed4efae6440380a9d
1,079
py
Python
code/dataSource.py
youkaisteve/Population
bfda0b4b8dc510726911f5e5dd7ef6c7863634b1
[ "MIT" ]
null
null
null
code/dataSource.py
youkaisteve/Population
bfda0b4b8dc510726911f5e5dd7ef6c7863634b1
[ "MIT" ]
null
null
null
code/dataSource.py
youkaisteve/Population
bfda0b4b8dc510726911f5e5dd7ef6c7863634b1
[ "MIT" ]
null
null
null
import re import xlrd DATA_BASE_PATH = '../data/population-migration-all/' def get_files(file_path): """get files. Keyword arguments: file_path -- file path """ result = [] work_book = xlrd.open_workbook(file_path) first_table = work_book.sheet_by_index(0) cols = first_table.ncols ...
22.957447
61
0.653383
164
1,079
4.030488
0.341463
0.108926
0.1059
0.068079
0.175492
0.175492
0.175492
0
0
0
0
0.015476
0.221501
1,079
46
62
23.456522
0.771429
0.048193
0
0.074074
0
0
0.05754
0.032738
0
0
0
0
0
1
0.111111
false
0
0.074074
0.037037
0.296296
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
61141cae8d0e62946e4aed085cc2f4ed83c66240
156
py
Python
src/apps/analytics/urls.py
binfeng1018/competitions-v2
173ea6053b7eda5de3a9f1a687dfb0d43bfc4e9c
[ "Apache-2.0" ]
19
2018-07-27T19:14:10.000Z
2021-12-08T16:34:42.000Z
src/apps/analytics/urls.py
binfeng1018/competitions-v2
173ea6053b7eda5de3a9f1a687dfb0d43bfc4e9c
[ "Apache-2.0" ]
516
2017-07-27T15:45:43.000Z
2022-02-10T07:57:46.000Z
src/apps/analytics/urls.py
binfeng1018/competitions-v2
173ea6053b7eda5de3a9f1a687dfb0d43bfc4e9c
[ "Apache-2.0" ]
16
2018-01-01T19:07:01.000Z
2021-09-17T07:59:59.000Z
from django.urls import path from . import views app_name = "analytics" urlpatterns = [ path('', views.AnalyticsView.as_view(), name="analytics"), ]
15.6
62
0.698718
19
156
5.631579
0.684211
0.242991
0
0
0
0
0
0
0
0
0
0
0.160256
156
9
63
17.333333
0.816794
0
0
0
0
0
0.115385
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
61147373450b1b29dfcc15bb1bf5d047d010a877
168
py
Python
luxem/__init__.py
Rendaw/luxem-python
c81de2f573fc646d16c746acf7cb7da63a199eb2
[ "BSD-2-Clause" ]
null
null
null
luxem/__init__.py
Rendaw/luxem-python
c81de2f573fc646d16c746acf7cb7da63a199eb2
[ "BSD-2-Clause" ]
null
null
null
luxem/__init__.py
Rendaw/luxem-python
c81de2f573fc646d16c746acf7cb7da63a199eb2
[ "BSD-2-Clause" ]
null
null
null
from _luxem import Reader, to_ascii16, from_ascii16 from luxem.struct import Typed from luxem.read import load loads = load from luxem.write import dump, dumps, Writer
28
51
0.815476
27
168
4.962963
0.555556
0.268657
0
0
0
0
0
0
0
0
0
0.027586
0.136905
168
5
52
33.6
0.896552
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
61155cc8647d3a04287a744c3fe45ab20382fb37
3,635
py
Python
rest-server/bin/engines.py
soft-super/harness
540f7648fd0702c1b71f0f1c41b71a870c9420fe
[ "Apache-2.0" ]
1
2020-12-17T11:22:42.000Z
2020-12-17T11:22:42.000Z
rest-server/bin/engines.py
soft-super/harness
540f7648fd0702c1b71f0f1c41b71a870c9420fe
[ "Apache-2.0" ]
null
null
null
rest-server/bin/engines.py
soft-super/harness
540f7648fd0702c1b71f0f1c41b71a870c9420fe
[ "Apache-2.0" ]
1
2019-03-26T20:43:23.000Z
2019-03-26T20:43:23.000Z
#!/usr/bin/env python3 from harness import EnginesClient, HttpError from common import * engine_client = EnginesClient( url=url, user_id=client_user_id, user_secret=client_user_secret ) if args.action == 'create': with open(args.config) as data_file: config = json.load(data_file) tr...
37.864583
121
0.646217
480
3,635
4.697917
0.164583
0.141907
0.059867
0.059867
0.655432
0.597783
0.550776
0.511308
0.471397
0.453215
0
0.000356
0.22696
3,635
95
122
38.263158
0.802135
0.282806
0
0.285714
0
0
0.16699
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61185f9554e6fdad4742b175bf8931b9e3aa29a8
1,817
py
Python
protlearn/dimreduction/pca.py
tadorfer/ProtClass
da1a01ea9abd3c367b3389dfed683c6a9dfa6afd
[ "MIT" ]
24
2020-09-17T10:35:44.000Z
2022-03-09T19:19:01.000Z
protlearn/dimreduction/pca.py
tadorfer/ProtClass
da1a01ea9abd3c367b3389dfed683c6a9dfa6afd
[ "MIT" ]
14
2020-08-09T18:23:01.000Z
2020-11-19T05:48:14.000Z
protlearn/dimreduction/pca.py
tadorfer/ProtClass
da1a01ea9abd3c367b3389dfed683c6a9dfa6afd
[ "MIT" ]
3
2021-03-07T23:41:17.000Z
2022-02-25T18:48:37.000Z
# Author: Thomas Dorfer <thomas.a.dorfer@gmail.com> import warnings import numpy as np from sklearn.decomposition import PCA def pca(X, *, thres=.9, whiten=False): """Principal component analysis. PCA is defined as an orthogonal linear transformation that transforms the data to a new coordinate system s...
28.390625
80
0.636214
239
1,817
4.786611
0.476987
0.031469
0.038462
0.026224
0.167832
0.078671
0.054196
0
0
0
0
0.017306
0.268575
1,817
64
81
28.390625
0.843491
0.58448
0
0
0
0
0.184543
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
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
611ab93cd7e47ac7216315c2b7329f2585cfa2ee
28,327
py
Python
pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-VOICE-COMMON-DIAL-CONTROL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:51:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Usi...
182.754839
2,213
0.777386
3,477
28,327
6.332758
0.159908
0.024524
0.042917
0.005632
0.526909
0.463645
0.44507
0.41882
0.40456
0.364004
0
0.094708
0.112119
28,327
154
2,214
183.941558
0.780764
0.01285
0
0.110294
0
0.191176
0.515168
0.068255
0
0
0
0
0
1
0
false
0.007353
0.080882
0
0.367647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
611baf35e81592e930584d66af2ff718199af1d7
600
py
Python
base/lib/pythonbin/urwid/tests/test_doctests.py
threefoldtech/sandbox_osx
e2a5ea812c3789dea40113719dbad6d6ee7cd720
[ "Apache-2.0" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
base/lib/pythonbin/urwid/tests/test_doctests.py
threefoldtech/sandbox_osx
e2a5ea812c3789dea40113719dbad6d6ee7cd720
[ "Apache-2.0" ]
3
2020-06-05T18:53:36.000Z
2021-06-10T20:47:05.000Z
base/lib/pythonbin/urwid/tests/test_doctests.py
threefoldtech/sandbox_osx
e2a5ea812c3789dea40113719dbad6d6ee7cd720
[ "Apache-2.0" ]
1
2022-03-15T22:52:53.000Z
2022-03-15T22:52:53.000Z
import unittest import doctest import urwid def load_tests(loader, tests, ignore): module_doctests = [ urwid.widget, urwid.wimp, urwid.decoration, urwid.display_common, urwid.main_loop, urwid.monitored_list, urwid.raw_display, 'urwid.split_repr', # o...
25
76
0.64
65
600
5.753846
0.630769
0.074866
0
0
0
0
0
0
0
0
0
0
0.285
600
23
77
26.086957
0.871795
0.053333
0
0
0
0
0.028269
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.238095
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
611c050ab476af18d9d1aad22299045780867d91
36,390
py
Python
python/three_sums.py
realpacific/algorithms
199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf
[ "MIT" ]
88
2021-08-22T21:41:23.000Z
2022-03-04T11:48:13.000Z
python/three_sums.py
realpacific/algorithms
199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf
[ "MIT" ]
6
2021-09-07T14:41:33.000Z
2021-12-08T13:05:21.000Z
python/three_sums.py
realpacific/algorithms
199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf
[ "MIT" ]
2
2021-09-24T07:52:08.000Z
2021-11-29T12:48:01.000Z
from unittest import TestCase def threeSum_old(nums): result = [] for i in range(len(nums)): for j in range(i + 1, len(nums)): for k in range(j + 1, len(nums)): if nums[i] + nums[j] + nums[k] == 0: new_list = sorted([nums[i], nums[j], nums[k]]) ...
11.845703
84
0.436164
3,308
36,390
4.784764
0.908706
0.009035
0.006823
0.003159
0.033169
0.025651
0.017185
0.011499
0.009351
0.009351
0
0.71136
0.429816
36,390
3,071
85
11.84956
0.051472
0.001979
0
0.021284
0
0
0.001349
0
0
0
0
0
0.001637
1
0.00131
false
0
0.000327
0
0.003929
0.00262
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
611c86f8ffe03767be73c533d68fe0d78449ed8f
12,750
py
Python
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Capstone Team Project. Code to run on a ROBOT (NOT a laptop). This module is for testing STAND-ALONE code running on the ROBOT (WITHOUT having LAPTOP GUI code running on the LAPTOP at the same time). In tests the various SENSORS available to you. Authors: Your professors (for the framework). Winter term, 2019-2...
37.946429
79
0.590039
1,547
12,750
4.777634
0.184228
0.078474
0.077391
0.052767
0.534434
0.509945
0.49655
0.457989
0.453254
0.423082
0
0.011372
0.241333
12,750
335
80
38.059701
0.752714
0.082039
0
0.516
0
0
0.475169
0.069457
0
0
0
0
0
1
0.032
false
0
0.008
0
0.04
0.7
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
611d13547f13c33b7652ed80fb015010531fb338
12,233
py
Python
tests/unit_tests/test_tethys_apps/test_base/test_workspace.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
79
2015-10-05T13:13:28.000Z
2022-02-01T12:30:33.000Z
tests/unit_tests/test_tethys_apps/test_base/test_workspace.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
542
2015-08-12T22:11:32.000Z
2022-03-29T22:18:08.000Z
tests/unit_tests/test_tethys_apps/test_base/test_workspace.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
71
2016-01-16T01:03:41.000Z
2022-03-31T17:55:54.000Z
import unittest import tethys_apps.base.workspace as base_workspace import os import shutil from unittest import mock from ... import UserFactory from django.http import HttpRequest from django.contrib.auth.models import User from django.core.exceptions import PermissionDenied import tethys_apps.base.app_base as tethys...
43.689286
118
0.710619
1,588
12,233
5.209698
0.108312
0.033845
0.052581
0.050526
0.751722
0.721383
0.684879
0.655506
0.604497
0.595673
0
0.006234
0.186953
12,233
279
119
43.845878
0.825558
0.054852
0
0.450495
0
0
0.159587
0.09414
0
0
0
0
0.247525
1
0.089109
false
0.019802
0.064356
0.009901
0.168317
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
611e0ce498d0d6daa68a1e298efb23c3efe69b01
425
py
Python
authentication/urls.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
3
2021-03-07T21:43:55.000Z
2021-09-21T08:24:26.000Z
authentication/urls.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
null
null
null
authentication/urls.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
null
null
null
from django.urls import path from django.views.decorators.csrf import csrf_exempt from .views import UserView, RegisterUser, LoginUser, LogoutUser, \ CheckAuthenticated urlpatterns = [ path('', UserView.as_view()), path('register', csrf_exempt(RegisterUser.as_view())), path('login', LoginUser.as_view()...
32.692308
67
0.729412
48
425
6.3125
0.4375
0.09901
0.132013
0
0
0
0
0
0
0
0
0
0.131765
425
12
68
35.416667
0.821138
0
0
0
0
0
0.08
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
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
611ef43855c4502d2337beaf2e9bbdd18e660663
1,287
py
Python
test/utilities/test_Converter.py
pip-benchmark/pip-benchmark-python
d75672e940af12e2f9818607e2188490e989d8c5
[ "MIT" ]
null
null
null
test/utilities/test_Converter.py
pip-benchmark/pip-benchmark-python
d75672e940af12e2f9818607e2188490e989d8c5
[ "MIT" ]
null
null
null
test/utilities/test_Converter.py
pip-benchmark/pip-benchmark-python
d75672e940af12e2f9818607e2188490e989d8c5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pip_benchmark_python.utilities.Converter import Converter class TestConverter: def test_long_to_string(self): assert Converter.long_to_string(None) is None assert '123' == Converter.long_to_string(123) def test_string_to_long(self): assert 0 == Converter...
36.771429
66
0.695416
181
1,287
4.657459
0.171271
0.123369
0.201661
0.104389
0.46382
0.368921
0.278766
0.145907
0
0
0
0.046647
0.200466
1,287
34
67
37.852941
0.772595
0.016317
0
0
0
0
0.032437
0
0
0
0
0
0.666667
1
0.25
false
0
0.041667
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
3
6122f59b015b8f42249ec2c010138d836ac0f35e
1,541
py
Python
research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py
SuccessionEcologicalServices/serenata-de-amor
718a74e031ea0a4b020bf42801e1d23353e6bc34
[ "MIT" ]
59
2018-10-03T18:46:31.000Z
2022-01-05T22:39:17.000Z
research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py
SuccessionEcologicalServices/serenata-de-amor
718a74e031ea0a4b020bf42801e1d23353e6bc34
[ "MIT" ]
16
2018-10-03T21:36:50.000Z
2021-04-12T22:10:16.000Z
research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py
SuccessionEcologicalServices/serenata-de-amor
718a74e031ea0a4b020bf42801e1d23353e6bc34
[ "MIT" ]
20
2018-10-03T19:14:57.000Z
2021-04-12T20:50:44.000Z
# coding: utf-8 # # Invalid CNPJ or CPF # # `cnpj_cpf` is the column identifying the company or individual who received the payment made by the congressperson. Having this value empty should mean that it's an expense made outside Brazil, with a company (or person) without a Brazilian ID. # In[1]: import numpy as n...
28.018182
265
0.659961
216
1,541
4.550926
0.532407
0.078332
0.036623
0.02645
0.032553
0
0
0
0
0
0
0.019591
0.238157
1,541
54
266
28.537037
0.817717
0.401038
0
0
0
0
0.238148
0.039691
0
0
0
0
0
1
0.045455
false
0
0.136364
0.045455
0.227273
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
6123c525e5a5da797d3ca93718ec18aa3078da5c
5,170
py
Python
examples/convolutional_vae.py
twiecki/edward
1ac2eeb7f5163915848afd3b027c714255459de3
[ "Apache-2.0" ]
4
2016-05-09T18:48:21.000Z
2018-03-01T22:50:42.000Z
examples/convolutional_vae.py
twiecki/edward
1ac2eeb7f5163915848afd3b027c714255459de3
[ "Apache-2.0" ]
null
null
null
examples/convolutional_vae.py
twiecki/edward
1ac2eeb7f5163915848afd3b027c714255459de3
[ "Apache-2.0" ]
3
2016-07-05T14:19:08.000Z
2019-09-04T13:48:59.000Z
#!/usr/bin/env python """ Convolutional variational auto-encoder for MNIST data. The model is written in TensorFlow, with neural networks using Pretty Tensor. Probability model Prior: Normal Likelihood: Bernoulli parameterized by convolutional NN Variational model Likelihood: Mean-field Normal parameterize...
33.571429
81
0.624758
698
5,170
4.467049
0.312321
0.024695
0.019243
0.016677
0.115459
0.09814
0.084028
0.084028
0.084028
0.084028
0
0.026199
0.261702
5,170
153
82
33.79085
0.790673
0.160155
0
0.103093
0
0
0.072309
0
0
0
0
0.006536
0
1
0.082474
false
0
0.103093
0
0.268041
0.020619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61244fae3cb1d570e8f892707e02d30830b9dab4
4,998
py
Python
cadnano/views/outlinerview/cnoutlineritem.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/views/outlinerview/cnoutlineritem.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/views/outlinerview/cnoutlineritem.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QTreeWidgetItem from cadnano.gui.palette import getBrushObj from . import outlinerstyles as styles NAME_COL = 0 LOCKED_COL = 1 VISIBLE_COL = 2 COLOR_COL = 3 LEAF_FLAGS = (Qt.ItemIsSelectable | Qt.ItemIsEditable | Qt.ItemIsDragEnabled | ...
35.7
107
0.622449
593
4,998
5.037099
0.227656
0.04687
0.052226
0.024104
0.325075
0.295949
0.214931
0.152662
0.125879
0.098427
0
0.003893
0.280512
4,998
139
108
35.956835
0.826752
0.146259
0
0.197802
0
0
0.034064
0
0
0
0
0
0
1
0.153846
false
0.010989
0.043956
0.054945
0.318681
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
612569303782cf9c7b7179cfa384ea54e28fb8c1
13,579
py
Python
data/dedupe.py
mcguinlu/COVID_suicide_living
81ac106065b1113706f2df26051e0d73efe382aa
[ "MIT" ]
1
2020-11-29T18:42:53.000Z
2020-11-29T18:42:53.000Z
data/dedupe.py
L-ENA/SR_automation_LSR
c9b5d3a121e4e141485b4ad0f2e3975217861a3b
[ "MIT" ]
1
2020-06-24T18:48:56.000Z
2020-06-24T18:48:56.000Z
data/dedupe.py
L-ENA/SR_automation_LSR
c9b5d3a121e4e141485b4ad0f2e3975217861a3b
[ "MIT" ]
3
2020-03-30T13:55:38.000Z
2020-10-27T20:38:49.000Z
import pandas as pd import re from fuzzywuzzy import fuzz from tqdm import tqdm from datetime import date import os #os.chdir("C:\\Users\\lm16564\\OneDrive - University of Bristol\\Documents\\rrr\\COVID_suicide_living") def fuzzymatch(a, b, min_match): if fuzz.ratio(a, b) > min_match: # matching ore than specifi...
45.414716
354
0.590839
1,731
13,579
4.508377
0.198729
0.012814
0.014352
0.007688
0.319708
0.280369
0.241671
0.216684
0.197207
0.139928
0
0.010002
0.285809
13,579
298
355
45.567114
0.7947
0.287061
0
0.301676
0
0.01676
0.185034
0.033918
0
0
0
0
0
1
0.03352
false
0
0.03352
0
0.117318
0.072626
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6126964717eb366d024270381a24e685fbc06c89
6,922
py
Python
glyphStruct.py
zach-king/GlyphyType
dd930730af4396ad7d5ac12d5011a35a1f5ab9bc
[ "MIT" ]
null
null
null
glyphStruct.py
zach-king/GlyphyType
dd930730af4396ad7d5ac12d5011a35a1f5ab9bc
[ "MIT" ]
null
null
null
glyphStruct.py
zach-king/GlyphyType
dd930730af4396ad7d5ac12d5011a35a1f5ab9bc
[ "MIT" ]
null
null
null
#Move to class variable of Glyph object idDict = {0:'exclam', 1:'quotedbl', 2:'numbersign', 3:'dollar', 4:'percent', 5:'ampersand', 6:'quotesingle', 7:'parenleft', 8:'parenright', 9:'asterisk', 10:'plus', 11:'comma', 12:'hyphen', 13:'period', 14:'slash', 15:'zero', 16:'one', 17:'...
46.146667
104
0.471829
1,051
6,922
3.103711
0.345385
0.016554
0.009197
0.012262
0.120172
0.072348
0.044758
0.026977
0.026977
0.026977
0
0.273314
0.305981
6,922
149
105
46.456376
0.405704
0.076279
0
0.075758
0
0
0.078972
0.009088
0
0
0
0
0
1
0.037879
false
0
0
0
0.068182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6127b9212cd94fad711feb777e1aec83d4f79910
3,170
py
Python
src/crimedb/regions/base.py
pgriess/crimedb
c29c6fb32b9270516ee6f7aaf62d3c1886589f96
[ "Apache-2.0" ]
2
2015-11-23T22:58:04.000Z
2018-06-08T17:58:17.000Z
src/crimedb/regions/base.py
pgriess/crimedb
c29c6fb32b9270516ee6f7aaf62d3c1886589f96
[ "Apache-2.0" ]
6
2015-04-03T14:58:32.000Z
2015-04-05T19:47:21.000Z
src/crimedb/regions/base.py
pgriess/crimedb
c29c6fb32b9270516ee6f7aaf62d3c1886589f96
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Peter Griess # # 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,...
29.082569
79
0.65489
412
3,170
4.963592
0.48301
0.02934
0.016137
0.015648
0.102689
0.05868
0.05868
0.035208
0.035208
0
0
0.003911
0.274132
3,170
108
80
29.351852
0.884833
0.51041
0
0.081081
0
0
0.046995
0.01849
0
0
0
0
0
1
0.162162
false
0.081081
0.189189
0
0.432432
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
1
0
0
0
0
0
1
6128a7c74edde105c7f1147ca577aa5583dc43ae
689
py
Python
onener/transformer/pretokenizer.py
sansan-inc/OneNER
4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3
[ "Apache-2.0" ]
2
2021-10-11T05:30:44.000Z
2021-12-16T07:46:28.000Z
onener/transformer/pretokenizer.py
sansan-inc/OneNER
4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3
[ "Apache-2.0" ]
null
null
null
onener/transformer/pretokenizer.py
sansan-inc/OneNER
4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from typing import List import MeCab class PreTokenizer(ABC): """AutoTokenizer(bert-base-multilingual-cased)によって分かち書きをする前に、 前処理としてかける分かち書きのための抽象クラス これを行わないと場合によっては、 「〇〇は3月2日に開催した」 -> 「〇 〇 は3 月 2 日 に 開 催 した」のように、「は3」のような 単語になってしまい、その後の分類タスクで悪影響が起きてしまう """ ...
26.5
66
0.70537
74
689
6.513514
0.621622
0.033195
0.049793
0.06639
0.107884
0.107884
0.107884
0
0
0
0
0.008929
0.187228
689
25
67
27.56
0.844643
0.351234
0
0.166667
0
0
0.019277
0
0
0
0
0
0
1
0.25
false
0
0.25
0.083333
0.75
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
1
0
0
0
0
1
0
0
2
6128d52040ae15c763ac67cfd1eb887cfac11cae
10,920
py
Python
transforms/detection/functional.py
qixuxiang/Pytorch_Lightweight_Network
25fd3148b7c635cb6cbe6dc184dbed04d6f96282
[ "MIT" ]
82
2019-06-17T06:00:09.000Z
2021-11-24T09:27:23.000Z
transforms/detection/functional.py
qixuxiang/Pytorch_Lightweight_Network
25fd3148b7c635cb6cbe6dc184dbed04d6f96282
[ "MIT" ]
4
2019-06-20T11:29:19.000Z
2021-07-28T03:31:20.000Z
transforms/detection/functional.py
qixuxiang/Pytorch_Lightweight_Network
25fd3148b7c635cb6cbe6dc184dbed04d6f96282
[ "MIT" ]
17
2019-06-20T11:22:34.000Z
2021-03-16T12:37:41.000Z
from typing import List, Dict, Sequence, Union, Tuple from numbers import Number import random import numpy as np from toolz import curry from toolz.curried import get from common import _tuple __all__ = [ "resize", "resized_crop", "center_crop", "drop_boundary_bboxes", "to_absolute_coords", "to_percent_coor...
26.962963
104
0.542582
1,508
10,920
3.854111
0.122679
0.010668
0.01755
0.011012
0.512732
0.46903
0.443909
0.43393
0.42808
0.421714
0
0.014192
0.316026
10,920
404
105
27.029703
0.763958
0.396795
0
0.38835
0
0
0.03566
0
0
0
0
0
0
1
0.067961
false
0
0.033981
0
0.179612
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
612b78a9bead3fbce9a078b2158bf96beee36bfe
2,429
py
Python
demands/models.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
1
2018-05-01T04:54:36.000Z
2018-05-01T04:54:36.000Z
demands/models.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
null
null
null
demands/models.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
3
2018-04-13T18:28:32.000Z
2018-05-01T01:38:38.000Z
from django.db import models from profiles.models import Profile, ProfileHub from hubs.models import Hub, HubGeolocation from django.db.models.signals import post_save from demands.extras.coordinates import coordinates_calculation from demands.extras.distance import distance_calculation # Create your models here. clas...
48.58
121
0.766159
315
2,429
5.726984
0.301587
0.049889
0.059867
0.079823
0.195122
0.099778
0.06541
0.06541
0.06541
0.06541
0
0.010481
0.135858
2,429
50
122
48.58
0.848976
0.022231
0
0
0
0
0.015592
0
0
0
0
0
0
1
0.025
false
0
0.15
0
0.7
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
1
0
0
1
612c7b5f5d8b05511afc52271ac9e21aebf3efa3
3,353
py
Python
post.py
DzikuVx/PogodaWSzczecinie
cac67d69d7e57081dd325914ca4c2a3c0bdc65ab
[ "MIT" ]
null
null
null
post.py
DzikuVx/PogodaWSzczecinie
cac67d69d7e57081dd325914ca4c2a3c0bdc65ab
[ "MIT" ]
null
null
null
post.py
DzikuVx/PogodaWSzczecinie
cac67d69d7e57081dd325914ca4c2a3c0bdc65ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random import time import tweetpony import urllib2 import json from config import config def fetch(url): req = urllib2.Request(url) response = urllib2.urlopen(req) return response.read() def get_json(): return json.loads(fetch("http://weather.spychalski.info/api.php")...
33.19802
119
0.559201
398
3,353
4.59799
0.30402
0.078142
0.096175
0.104918
0.434973
0.393443
0.35847
0.35847
0.35847
0.266667
0
0.015853
0.303907
3,353
100
120
33.53
0.768209
0.024456
0
0.3
0
0
0.212186
0
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
612c9bf3ffb82a317d05d60e00600b867adeb63c
256
py
Python
output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.long.schema_instance.nistschema_sv_iv_atomic_long_max_exclusive_1_xsd.nistschema_sv_iv_atomic_long_max_exclusive_1 import NistschemaSvIvAtomicLongMaxExclusive1 __all__ = [ "NistschemaSvIvAtomicLongMaxExclusive1", ]
42.666667
195
0.894531
30
256
6.933333
0.633333
0.144231
0.134615
0.192308
0.355769
0.355769
0.355769
0.355769
0
0
0
0.016529
0.054688
256
5
196
51.2
0.842975
0
0
0
0
0
0.144531
0.144531
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
612de04c96f064f94c0f251d285bdc28a27f4be1
1,310
py
Python
src/robust_laplacian/core.py
nmwsharp/robust-laplacians-py
b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562
[ "MIT" ]
123
2020-08-05T18:16:11.000Z
2022-03-28T01:59:55.000Z
src/robust_laplacian/core.py
nmwsharp/robust-laplacians-py
b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562
[ "MIT" ]
6
2020-08-28T02:42:57.000Z
2022-02-01T21:32:34.000Z
src/robust_laplacian/core.py
nmwsharp/robust-laplacians-py
b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562
[ "MIT" ]
12
2020-08-14T12:14:56.000Z
2022-02-25T11:03:39.000Z
import numpy as np import robust_laplacian_bindings as rlb def mesh_laplacian(verts, faces, mollify_factor=1e-5): ## Validate input if type(verts) is not np.ndarray: raise ValueError("`verts` should be a numpy array") if (len(verts.shape) != 2) or (verts.shape[1] != 3): raise ValueError("...
35.405405
91
0.658779
192
1,310
4.4375
0.291667
0.105634
0.024648
0.049296
0.487089
0.409624
0.253521
0.169014
0.105634
0.105634
0
0.017595
0.219084
1,310
36
92
36.388889
0.815249
0.11374
0
0.1
0
0
0.192509
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
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