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
151beeecee85f8f8f1854a4eb0eedf92f2702417
7,188
py
Python
noise_robust_cobras/noise_robust/datastructures/cycle.py
jonassoenen/noise_robust_cobras
0e5823dbba0263c3ccb3c2afb4267f2f542fc568
[ "Apache-2.0" ]
2
2020-07-30T15:09:53.000Z
2020-07-31T06:33:36.000Z
noise_robust_cobras/noise_robust/datastructures/cycle.py
magicalJohn/noise_robust_cobras
0e5823dbba0263c3ccb3c2afb4267f2f542fc568
[ "Apache-2.0" ]
null
null
null
noise_robust_cobras/noise_robust/datastructures/cycle.py
magicalJohn/noise_robust_cobras
0e5823dbba0263c3ccb3c2afb4267f2f542fc568
[ "Apache-2.0" ]
1
2021-12-12T11:11:25.000Z
2021-12-12T11:11:25.000Z
from collections import defaultdict from noise_robust_cobras.noise_robust.datastructures.constraint import Constraint from noise_robust_cobras.noise_robust.datastructures.constraint_index import ( ConstraintIndex, ) class Cycle: """ A class that represents a valid constraint cycle attributes:...
37.243523
128
0.657763
835
7,188
5.358084
0.156886
0.040232
0.019669
0.022351
0.236254
0.181717
0.140814
0.086723
0.06169
0.044703
0
0.00836
0.267807
7,188
192
129
37.4375
0.841725
0.085142
0
0.189189
0
0
0.005695
0
0
0
0
0
0.013514
1
0.141892
false
0
0.02027
0.067568
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
0
0
0
0
0
0
0
1
0
1278169f69007b0aff65ad2222788f61228ad8d6
8,342
py
Python
maps.py
BouncyButton/places-simulator
a1f5fc385750af9968cc3c6216ba20f5de4719fd
[ "MIT" ]
null
null
null
maps.py
BouncyButton/places-simulator
a1f5fc385750af9968cc3c6216ba20f5de4719fd
[ "MIT" ]
null
null
null
maps.py
BouncyButton/places-simulator
a1f5fc385750af9968cc3c6216ba20f5de4719fd
[ "MIT" ]
null
null
null
import googlemaps import secret from datetime import datetime import requests import pickle import time gmaps = googlemaps.Client(key=secret.PLACES_API_KEY) # lat = 45.411400 # lon = 11.887491 coordinates = [ (45.411400, 11.887491), # torre archimede (45.409218, 11.877915), # piazza garibaldi (45.407698...
29.167832
121
0.609686
1,053
8,342
4.706553
0.31339
0.015537
0.013317
0.014528
0.159605
0.12954
0.1023
0.1023
0.080508
0.060331
0
0.02154
0.254256
8,342
285
122
29.270175
0.775117
0.117238
0
0.179348
0
0.016304
0.172084
0.048347
0
0
0
0
0
1
0.059783
false
0.01087
0.119565
0
0.206522
0.076087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12785f321ec0fa0181c3a4c19bc2048854ea35ad
31,231
py
Python
azure-iot-device/tests/iothub/test_sync_handler_manager.py
dt-boringtao/azure-iot-sdk-python
35a09679bdf4d7a727391b265a8f1fbb99a30c45
[ "MIT" ]
null
null
null
azure-iot-device/tests/iothub/test_sync_handler_manager.py
dt-boringtao/azure-iot-sdk-python
35a09679bdf4d7a727391b265a8f1fbb99a30c45
[ "MIT" ]
null
null
null
azure-iot-device/tests/iothub/test_sync_handler_manager.py
dt-boringtao/azure-iot-sdk-python
35a09679bdf4d7a727391b265a8f1fbb99a30c45
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import log...
43.077241
170
0.700202
3,918
31,231
5.372639
0.103624
0.061853
0.045891
0.042755
0.71696
0.684181
0.625843
0.582565
0.513064
0.442708
0
0.003883
0.233198
31,231
724
171
43.13674
0.875104
0.176075
0
0.532934
0
0.017964
0.180012
0.019871
0
0
0
0
0.159681
1
0.105788
false
0.00998
0.01996
0.02994
0.185629
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
1278ee593e924b3273cd53898ff8735b235b993e
885
py
Python
src/python/Chameleon.Faas/demo/helloworld_grpc_client.py
sevenTiny/Seventiny.Cloud.ScriptEngine
dda66a7d2ec8c203823e07666314b9d0c8795768
[ "Apache-2.0" ]
2
2020-01-17T03:16:42.000Z
2020-08-28T04:23:06.000Z
src/python/Chameleon.Faas/demo/helloworld_grpc_client.py
sevenTiny/Seventiny.Cloud.ScriptEngine
dda66a7d2ec8c203823e07666314b9d0c8795768
[ "Apache-2.0" ]
null
null
null
src/python/Chameleon.Faas/demo/helloworld_grpc_client.py
sevenTiny/Seventiny.Cloud.ScriptEngine
dda66a7d2ec8c203823e07666314b9d0c8795768
[ "Apache-2.0" ]
1
2019-12-13T07:02:56.000Z
2019-12-13T07:02:56.000Z
import grpc import helloworld_pb2 import helloworld_pb2_grpc from grpc.beta import implementations def run(): # 连接 rpc 服务器 # TSL连接方式 >>> with open('G:\\DotNet\\SevenTiny.Cloud.FaaS\\Code\\Python\\SevenTiny.Cloud.FaaS.GRpc\\ca\\client.pem', 'rb') as f: pem = f.read() creds = implementations.ssl...
34.038462
118
0.701695
105
885
5.733333
0.533333
0.107973
0.063123
0.096346
0.136213
0.136213
0
0
0
0
0
0.019048
0.169492
885
26
119
34.038462
0.8
0.107345
0
0.117647
0
0.058824
0.215287
0.113376
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.294118
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
127b202282fe9d7b819fac4de12d835378edbe4e
5,680
py
Python
azdev/params.py
marstr/azure-cli-dev-tools
8b82b1867a425a9a017868c6c1aef2f4bb5aa62b
[ "MIT" ]
null
null
null
azdev/params.py
marstr/azure-cli-dev-tools
8b82b1867a425a9a017868c6c1aef2f4bb5aa62b
[ "MIT" ]
null
null
null
azdev/params.py
marstr/azure-cli-dev-tools
8b82b1867a425a9a017868c6c1aef2f4bb5aa62b
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ----------------------------------------------------------------------------- # ...
67.619048
214
0.659859
769
5,680
4.804941
0.273082
0.0682
0.084438
0.077402
0.269824
0.234912
0.186468
0.178078
0.158593
0.088498
0
0.000631
0.163204
5,680
83
215
68.433735
0.776773
0.059155
0
0.070175
0
0
0.462619
0
0.035088
0
0
0
0
1
0.017544
false
0.035088
0.052632
0
0.087719
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
127c2b5fae2468e39370fecece20d2e64788de00
11,609
py
Python
comps.py
matthewb66/bdconsole
edc9a03f93dd782d58ff274ebe5152f7eccecff7
[ "MIT" ]
null
null
null
comps.py
matthewb66/bdconsole
edc9a03f93dd782d58ff274ebe5152f7eccecff7
[ "MIT" ]
null
null
null
comps.py
matthewb66/bdconsole
edc9a03f93dd782d58ff274ebe5152f7eccecff7
[ "MIT" ]
null
null
null
import json import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import pandas as pd import dash_table def get_comps_data(bd, projverurl): print('Getting components ...') # path = projverurl + "/components?limit=5000" # # custom_headers = {'Acc...
41.460714
103
0.450168
909
11,609
5.617162
0.276128
0.018801
0.025069
0.04857
0.13964
0.085586
0.085586
0.065609
0.027419
0.027419
0
0.009008
0.407098
11,609
279
104
41.609319
0.73282
0.075286
0
0.11588
0
0
0.283617
0.017767
0
0
0
0
0
1
0.021459
false
0
0.025751
0
0.072961
0.017167
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
127c9e72b97842964045050d2c4c20f3d0a12a28
656
py
Python
CursoemVideoPython/Desafio 35.py
Beebruna/Python
bdbe10ea76acca1b417f5960db0aae8be44e0af3
[ "MIT" ]
null
null
null
CursoemVideoPython/Desafio 35.py
Beebruna/Python
bdbe10ea76acca1b417f5960db0aae8be44e0af3
[ "MIT" ]
null
null
null
CursoemVideoPython/Desafio 35.py
Beebruna/Python
bdbe10ea76acca1b417f5960db0aae8be44e0af3
[ "MIT" ]
null
null
null
''' Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triângulo. ''' reta1 = float(input('Digite o comprimento da primeira reta: ')) reta2 = float(input('Digite o comprimento da segunda reta: ')) reta3 = float(input('Digite o comprimento da terceira reta: ')) ...
38.588235
85
0.689024
97
656
4.659794
0.463918
0.106195
0.106195
0.112832
0.199115
0.199115
0
0
0
0
0
0.034682
0.208841
656
17
86
38.588235
0.836224
0.181402
0
0.181818
0
0
0.471698
0
0
0
0
0
0
1
0
false
0
0
0
0
0.363636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
127dce97d99e34df63ba730d1cd14233e203885a
2,271
py
Python
threshold.py
jiep/unicode-similarity
a32a031f96dce2b8a52a8ff4b5365c768c016fc6
[ "MIT" ]
1
2019-02-22T10:31:51.000Z
2019-02-22T10:31:51.000Z
threshold.py
jiep/unicode-similarity
a32a031f96dce2b8a52a8ff4b5365c768c016fc6
[ "MIT" ]
null
null
null
threshold.py
jiep/unicode-similarity
a32a031f96dce2b8a52a8ff4b5365c768c016fc6
[ "MIT" ]
1
2020-12-15T15:34:43.000Z
2020-12-15T15:34:43.000Z
from pathlib import Path import numpy as np import pickle import argparse import errno import sys def file_exists(path): return Path(path).is_file() def dir_exists(path): return Path(path).is_dir() def remove_extension(x): return x.split('.')[0] def print_error(type, file): print(FileNotFoundError(e...
28.037037
79
0.589608
257
2,271
5.097276
0.385214
0.051908
0.051908
0.059542
0.100763
0.100763
0.061069
0
0
0
0
0.010824
0.267723
2,271
80
80
28.3875
0.776909
0
0
0
0
0
0.125055
0
0
0
0
0
0
1
0.109091
false
0
0.109091
0.054545
0.254545
0.072727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
127def7299a4b8a5f141ed18533a55c708f10769
1,813
py
Python
y2019/control_loops/python/wrist.py
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
null
null
null
y2019/control_loops/python/wrist.py
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
null
null
null
y2019/control_loops/python/wrist.py
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python from aos.util.trapezoid_profile import TrapezoidProfile from frc971.control_loops.python import control_loop from frc971.control_loops.python import angular_system from frc971.control_loops.python import controls import copy import numpy import sys from matplotlib import pylab import gflags import gl...
24.835616
87
0.674021
260
1,813
4.565385
0.423077
0.05476
0.042965
0.055602
0.139848
0.085931
0
0
0
0
0
0.063459
0.209046
1,813
72
88
25.180556
0.764296
0.071153
0
0
0
0
0.094869
0
0
0
0
0
0
1
0.019608
false
0.019608
0.196078
0
0.215686
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
1282bd510ec173d21c0fd86f0dd67b09824e394a
2,772
py
Python
.venv/lib/python3.8/site-packages/pandas/tests/indexes/timedeltas/test_shift.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
115
2020-06-18T15:00:58.000Z
2022-03-02T10:13:19.000Z
.venv/lib/python3.8/site-packages/pandas/tests/indexes/timedeltas/test_shift.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
37
2020-10-20T08:30:53.000Z
2020-12-22T13:15:45.000Z
.venv/lib/python3.8/site-packages/pandas/tests/indexes/timedeltas/test_shift.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
60
2020-07-22T14:53:10.000Z
2022-03-23T10:17:59.000Z
import pytest from pandas.errors import NullFrequencyError import pandas as pd from pandas import TimedeltaIndex import pandas._testing as tm class TestTimedeltaIndexShift: # ------------------------------------------------------------- # TimedeltaIndex.shift is used by __add__/__sub__ def test_tdi_sh...
35.538462
82
0.544372
377
2,772
3.859416
0.214854
0.049485
0.065979
0.123711
0.579381
0.549141
0.52921
0.52921
0.52921
0.507216
0
0.087613
0.28355
2,772
77
83
36
0.645015
0.054834
0
0.275862
0
0
0.147793
0
0
0
0
0
0.172414
1
0.103448
false
0
0.086207
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1283922931293c1f0272600761d089b38ea78f4b
2,033
py
Python
stolos/tests/test_bin.py
sailthru/stolos
7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc
[ "Apache-2.0" ]
121
2015-01-20T08:58:35.000Z
2021-08-08T15:13:11.000Z
stolos/tests/test_bin.py
sailthru/stolos
7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc
[ "Apache-2.0" ]
3
2015-01-20T22:19:49.000Z
2016-02-10T10:48:11.000Z
stolos/tests/test_bin.py
sailthru/stolos
7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc
[ "Apache-2.0" ]
20
2016-02-03T17:08:31.000Z
2021-04-19T10:43:28.000Z
import os from subprocess import check_output, CalledProcessError from nose import tools as nt from stolos import queue_backend as qb from stolos.testing_tools import ( with_setup, validate_zero_queued_task, validate_one_queued_task, validate_n_queued_task ) def run(cmd, tasks_json_tmpfile, **kwargs): cm...
36.303571
75
0.713724
312
2,033
4.278846
0.195513
0.076404
0.14382
0.14382
0.620974
0.620974
0.580524
0.553558
0.540075
0.540075
0
0.029447
0.181505
2,033
55
76
36.963636
0.772837
0
0
0.478261
0
0
0.12002
0.014757
0
0
0
0
0.021739
1
0.086957
false
0
0.108696
0
0.217391
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
1283e6ee8cf196eb827ab2c20c8605ca98bca840
12,442
py
Python
senlin/tests/unit/engine/actions/test_create.py
chenyb4/senlin
8b9ec31566890dc9989fe08e221172d37c0451b4
[ "Apache-2.0" ]
null
null
null
senlin/tests/unit/engine/actions/test_create.py
chenyb4/senlin
8b9ec31566890dc9989fe08e221172d37c0451b4
[ "Apache-2.0" ]
null
null
null
senlin/tests/unit/engine/actions/test_create.py
chenyb4/senlin
8b9ec31566890dc9989fe08e221172d37c0451b4
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed unde...
43.201389
79
0.60987
1,460
12,442
4.94589
0.136986
0.049855
0.0457
0.047085
0.66999
0.646448
0.592993
0.518626
0.518626
0.424179
0
0.016995
0.281145
12,442
287
80
43.351916
0.790362
0.059958
0
0.438914
0
0
0.128568
0
0
0
0
0
0.199095
1
0.040724
false
0
0.054299
0
0.099548
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
128572fd0692d7bc47b673410cce38c578481632
5,803
py
Python
examples/sentence_embedding/task_sentence_embedding_sbert_unsupervised_TSDAE.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
49
2022-03-15T07:28:16.000Z
2022-03-31T07:16:15.000Z
examples/sentence_embedding/task_sentence_embedding_sbert_unsupervised_TSDAE.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
null
null
null
examples/sentence_embedding/task_sentence_embedding_sbert_unsupervised_TSDAE.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
null
null
null
#! -*- coding:utf-8 -*- # 语义相似度任务-无监督:训练集为网上pretrain数据, dev集为sts-b from bert4torch.tokenizers import Tokenizer from bert4torch.models import build_transformer_model, BaseModel from bert4torch.snippets import sequence_padding, Callback, ListDataset import torch.nn as nn import torch import torch.optim as optim from to...
37.681818
196
0.689988
789
5,803
4.78327
0.319392
0.027557
0.018548
0.019078
0.122682
0.083201
0.063063
0.046105
0.046105
0.046105
0
0.023082
0.193693
5,803
153
197
37.928105
0.783501
0.045149
0
0.017241
0
0.025862
0.082006
0.060825
0
0
0
0
0
1
0.086207
false
0
0.112069
0
0.293103
0.008621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1286fbd5f6c9f344c50efdbd092dd4dcc7eb7bc9
1,086
py
Python
shadow/apis/item.py
f1uzz/shadow
0c2a1308f8bbe77ce4be005153148aac8ea0b4b2
[ "MIT" ]
1
2020-09-10T22:31:54.000Z
2020-09-10T22:31:54.000Z
shadow/apis/item.py
f1uzz/shadow
0c2a1308f8bbe77ce4be005153148aac8ea0b4b2
[ "MIT" ]
1
2020-03-12T15:47:14.000Z
2020-09-11T18:46:44.000Z
shadow/apis/item.py
f1uzz/shadow
0c2a1308f8bbe77ce4be005153148aac8ea0b4b2
[ "MIT" ]
null
null
null
from functools import lru_cache from typing import Optional import requests from .patches import Patches class Item: """ Manipulation of static item data """ ITEM_URL = f"http://ddragon.leagueoflegends.com/cdn/{Patches.get_current_patch()}/data/en_US/item.json" items = requests.get(ITEM_URL).js...
25.255814
107
0.598527
149
1,086
4.221477
0.33557
0.066773
0.047695
0.069952
0.222576
0.098569
0.098569
0.098569
0.098569
0
0
0
0.294659
1,086
43
108
25.255814
0.821149
0.211786
0
0.210526
0
0.052632
0.137615
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.578947
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
128751ef3f270c09dd8bfd854209616c9fbc00a9
2,694
py
Python
tests/test_lmdb_eager.py
rjpower/tensorflow-io
39aa0b46cfaa403121fdddbd491a03d2f3190a87
[ "Apache-2.0" ]
null
null
null
tests/test_lmdb_eager.py
rjpower/tensorflow-io
39aa0b46cfaa403121fdddbd491a03d2f3190a87
[ "Apache-2.0" ]
null
null
null
tests/test_lmdb_eager.py
rjpower/tensorflow-io
39aa0b46cfaa403121fdddbd491a03d2f3190a87
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
33.259259
80
0.655902
398
2,694
4.273869
0.351759
0.028219
0.028219
0.023516
0.414462
0.379777
0.271605
0.271605
0.244562
0.244562
0
0.010949
0.18634
2,694
80
81
33.675
0.765055
0.336674
0
0.301887
0
0
0.041026
0
0
0
0
0
0.113208
1
0.037736
false
0
0.169811
0
0.207547
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
128792253fac3bfe35e8e9d68865a244469d6f80
5,211
py
Python
recbole/quick_start/quick_start.py
RuihongQiu/DuoRec
4ebc30d8b7d9465f854867887b127a0bbc38bc31
[ "MIT" ]
16
2021-11-03T02:12:49.000Z
2022-03-27T05:48:19.000Z
recbole/quick_start/quick_start.py
RuihongQiu/DuoRec
4ebc30d8b7d9465f854867887b127a0bbc38bc31
[ "MIT" ]
2
2021-11-21T14:12:25.000Z
2022-03-11T03:00:04.000Z
recbole/quick_start/quick_start.py
RuihongQiu/DuoRec
4ebc30d8b7d9465f854867887b127a0bbc38bc31
[ "MIT" ]
4
2021-11-25T09:23:41.000Z
2022-03-26T11:23:26.000Z
# @Time : 2020/10/6 # @Author : Shanlei Mu # @Email : slmu@ruc.edu.cn """ recbole.quick_start ######################## """ import logging from logging import getLogger from recbole.config import Config from recbole.data import create_dataset, data_preparation from recbole.utils import init_logger, get_model, get_t...
35.209459
137
0.682978
690
5,211
4.95942
0.278261
0.036821
0.032729
0.025716
0.494448
0.48159
0.409994
0.409994
0.384863
0.384863
0
0.008766
0.189983
5,211
147
138
35.44898
0.801943
0.203608
0
0.282353
0
0
0.121891
0
0
0
0
0
0
1
0.023529
false
0
0.141176
0
0.188235
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
1287e0c57eb8a30f8e6d4ada3266d63abc50f722
4,947
py
Python
inferlo/generic/inference/bucket_renormalization.py
InferLO/inferlo
a65efce721d7f99d2f274dd94a1aaf7ca159e944
[ "Apache-2.0" ]
1
2022-01-27T18:44:07.000Z
2022-01-27T18:44:07.000Z
inferlo/generic/inference/bucket_renormalization.py
InferLO/inferlo
a65efce721d7f99d2f274dd94a1aaf7ca159e944
[ "Apache-2.0" ]
3
2022-01-23T18:02:30.000Z
2022-01-27T23:10:51.000Z
inferlo/generic/inference/bucket_renormalization.py
InferLO/inferlo
a65efce721d7f99d2f274dd94a1aaf7ca159e944
[ "Apache-2.0" ]
1
2021-09-03T06:12:57.000Z
2021-09-03T06:12:57.000Z
# Copyright (c) The InferLO authors. All rights reserved. # Licensed under the Apache License, Version 2.0 - see LICENSE. import warnings import numpy as np from sklearn.utils.extmath import randomized_svd from .bucket_elimination import BucketElimination from .factor import Factor, default_factor_name, produ...
41.571429
80
0.595512
508
4,947
5.462598
0.259843
0.032432
0.043243
0.060541
0.317838
0.196396
0.080721
0.080721
0.080721
0.054054
0
0.00447
0.321609
4,947
118
81
41.923729
0.822408
0.051142
0
0.087912
0
0
0.023256
0.011847
0
0
0
0
0
1
0.065934
false
0
0.076923
0
0.175824
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
1287eefddb9d27db413d1feaac4d915eb6887055
5,519
py
Python
oldcode/guestbook111013.py
mdreid/dinkylink
34370633c9361f6625227440d4aca6ed2b57bfab
[ "MIT" ]
1
2015-05-06T20:07:36.000Z
2015-05-06T20:07:36.000Z
oldcode/guestbook111013.py
mdreid/dinkylink
34370633c9361f6625227440d4aca6ed2b57bfab
[ "MIT" ]
null
null
null
oldcode/guestbook111013.py
mdreid/dinkylink
34370633c9361f6625227440d4aca6ed2b57bfab
[ "MIT" ]
null
null
null
import os import urllib from google.appengine.api import users from google.appengine.ext import ndb import jinja2 import webapp2 from sys import argv import datetime import pickle import sys sys.path.insert(0, 'libs') import BeautifulSoup from bs4 import BeautifulSoup import requests import json JINJA_ENVIRONM...
31.901734
181
0.698315
677
5,519
5.636632
0.322009
0.020178
0.031447
0.033543
0.229822
0.168763
0.048742
0.034591
0.034591
0.034591
0
0.01898
0.179018
5,519
172
182
32.087209
0.823218
0.189165
0
0.057143
0
0
0.138514
0.00991
0
0
0
0
0
1
0.047619
false
0
0.133333
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1289c37f5bf5c6f565d40cc79d0b3cb7b6862bc0
4,482
py
Python
is_core/tests/crawler.py
zzuzzy/django-is-core
3f87ec56a814738683c732dce5f07e0328c2300d
[ "BSD-3-Clause" ]
null
null
null
is_core/tests/crawler.py
zzuzzy/django-is-core
3f87ec56a814738683c732dce5f07e0328c2300d
[ "BSD-3-Clause" ]
null
null
null
is_core/tests/crawler.py
zzuzzy/django-is-core
3f87ec56a814738683c732dce5f07e0328c2300d
[ "BSD-3-Clause" ]
null
null
null
import json from django.utils.encoding import force_text from germanium.tools import assert_true, assert_not_equal from germanium.test_cases.client import ClientTestCase from germanium.decorators import login from germanium.crawler import Crawler, LinkExtractor, HtmlLinkExtractor as OriginalHtmlLinkExtractor def fl...
34.744186
118
0.594378
503
4,482
5.089463
0.266402
0.035156
0.05
0.046875
0.152734
0.125
0.114063
0.101172
0.076953
0.04375
0
0.004097
0.292057
4,482
128
119
35.015625
0.80271
0.010263
0
0.195876
0
0.010309
0.106901
0.017591
0
0
0
0
0.030928
1
0.123711
false
0.010309
0.061856
0.020619
0.350515
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
128a56c54e5b4a6dbabdff93bd337ad93578a5cd
2,280
py
Python
autoscalingsim/scaling/scaling_model/scaling_model.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
6
2021-03-10T16:23:10.000Z
2022-01-14T04:57:46.000Z
autoscalingsim/scaling/scaling_model/scaling_model.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
null
null
null
autoscalingsim/scaling/scaling_model/scaling_model.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
1
2022-01-14T04:57:55.000Z
2022-01-14T04:57:55.000Z
import json import pandas as pd from .application_scaling_model import ApplicationScalingModel from .platform_scaling_model import PlatformScalingModel from autoscalingsim.deltarepr.group_of_services_delta import GroupOfServicesDelta from autoscalingsim.deltarepr.node_group_delta import NodeGroupDelta from autoscali...
43.018868
124
0.744298
262
2,280
6.152672
0.366412
0.074442
0.062035
0.07134
0.109801
0.093052
0.052109
0.052109
0
0
0
0
0.200877
2,280
52
125
43.846154
0.884742
0.15307
0
0
0
0
0.055819
0.013165
0
0
0
0
0
1
0.111111
false
0
0.259259
0.074074
0.481481
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
128b3b5e8ee085ddcb7d0e7d01778d05032f8030
1,662
py
Python
src/zojax/filefield/copy.py
Zojax/zojax.filefield
36d92242dffbd5a7b4ce3c6886d8d5898067245a
[ "ZPL-2.1" ]
null
null
null
src/zojax/filefield/copy.py
Zojax/zojax.filefield
36d92242dffbd5a7b4ce3c6886d8d5898067245a
[ "ZPL-2.1" ]
null
null
null
src/zojax/filefield/copy.py
Zojax/zojax.filefield
36d92242dffbd5a7b4ce3c6886d8d5898067245a
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
29.157895
78
0.642599
172
1,662
6.209302
0.459302
0.022472
0.026217
0.059925
0.136704
0.073034
0
0
0
0
0
0.004488
0.195548
1,662
56
79
29.678571
0.794316
0.277377
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.466667
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
128d0ee6d357971754e6aa9345f8db462e223612
1,087
py
Python
app/component_b/command/services.py
mirevsky/django-grpc-cqrs-kafka-template
31af0bf5d15e393837f937cace90f82a7de26355
[ "MIT" ]
2
2022-01-10T19:52:36.000Z
2022-03-19T07:34:54.000Z
app/component_b/command/services.py
mirevsky/django-grpc-cqrs-kafka-template
31af0bf5d15e393837f937cace90f82a7de26355
[ "MIT" ]
null
null
null
app/component_b/command/services.py
mirevsky/django-grpc-cqrs-kafka-template
31af0bf5d15e393837f937cace90f82a7de26355
[ "MIT" ]
null
null
null
import grpc from google.protobuf import empty_pb2 from django_grpc_framework.services import Service from component_b.common.serializers import PersonProtoSerializer from component_b.common.models import PersonModel class PersonCommandService(Service): def get_object(self, pk): try: return P...
31.970588
84
0.706532
123
1,087
6.130081
0.414634
0.035809
0.071618
0.05305
0.352785
0.352785
0.352785
0.352785
0.352785
0.236074
0
0.002331
0.210672
1,087
33
85
32.939394
0.876457
0
0
0.307692
0
0
0.016559
0
0
0
0
0
0
1
0.153846
false
0
0.192308
0
0.538462
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
128d2e658f8131c779045c3cbeaae1830ec9ef68
485
py
Python
Lab 5/course_reader.py
kq4hy/CS3240-Lab-Files
2611c3185a405da95547434825da9052cd4c6cec
[ "MIT" ]
null
null
null
Lab 5/course_reader.py
kq4hy/CS3240-Lab-Files
2611c3185a405da95547434825da9052cd4c6cec
[ "MIT" ]
null
null
null
Lab 5/course_reader.py
kq4hy/CS3240-Lab-Files
2611c3185a405da95547434825da9052cd4c6cec
[ "MIT" ]
null
null
null
__author__ = 'kq4hy' import csv import sqlite3 def load_course_database(db_name, csv_filename): conn = sqlite3.connect(db_name) with conn: curs = conn.cursor() with open(csv_filename, 'rU') as csvfile: reader = csv.reader(csvfile) for row in reader: sql...
28.529412
78
0.610309
59
485
4.779661
0.610169
0.070922
0.12766
0
0
0
0
0
0
0
0
0.014045
0.265979
485
17
79
28.529412
0.77809
0
0
0
0
0
0.185185
0.047325
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
128ffa30d0305f7d87c64ef11d99dcfb6d3e311f
5,990
py
Python
kinlin/core/strategy.py
the-lay/kinlin
ce7c95d46d130049e356104ba77fad51bc59fb3f
[ "MIT" ]
null
null
null
kinlin/core/strategy.py
the-lay/kinlin
ce7c95d46d130049e356104ba77fad51bc59fb3f
[ "MIT" ]
null
null
null
kinlin/core/strategy.py
the-lay/kinlin
ce7c95d46d130049e356104ba77fad51bc59fb3f
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np from enum import Enum from typing import List, Callable, Any from tqdm import tqdm from .model import Model from .dataset import Dataset from .experiment import Experiment from .callback import Callback class TrainingEvents(Enum): START = 'on_start' FINIS...
40.748299
119
0.645576
698
5,990
5.310888
0.163324
0.053412
0.071217
0.027516
0.43836
0.357702
0.334772
0.304559
0.264095
0.240896
0
0.001125
0.258264
5,990
146
120
41.027397
0.833221
0.059432
0
0.235294
0
0
0.110676
0.061032
0
0
0
0
0
1
0.098039
false
0
0.098039
0
0.362745
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12916103d8a5f146e7baa8906defb115aac95a11
5,737
py
Python
GUI/PopUps/ExportPopUp.py
iagerogiannis/Image_to_plot
15c01c50dcd23dfd187069145b3f2fdc06ed73a9
[ "BSD-3-Clause" ]
null
null
null
GUI/PopUps/ExportPopUp.py
iagerogiannis/Image_to_plot
15c01c50dcd23dfd187069145b3f2fdc06ed73a9
[ "BSD-3-Clause" ]
null
null
null
GUI/PopUps/ExportPopUp.py
iagerogiannis/Image_to_plot
15c01c50dcd23dfd187069145b3f2fdc06ed73a9
[ "BSD-3-Clause" ]
null
null
null
from PyQt5.QtWidgets import QDialog, QPushButton, QVBoxLayout, QComboBox, QGroupBox, QCheckBox, QGridLayout, QMessageBox, QRadioButton from GUI.CustomWidgets.PathFileLineEdit import PathFileLineEdit from GUI.CustomWidgets.InputField import InputField class ExportPopUp(QDialog): def __init__(self, parent): ...
40.401408
134
0.656092
709
5,737
5.093089
0.191819
0.037663
0.047355
0.034893
0.287455
0.165605
0.132373
0.132373
0.083079
0.065356
0
0.009397
0.239498
5,737
141
135
40.687943
0.818244
0
0
0.018349
0
0
0.060136
0
0
0
0
0
0
1
0.06422
false
0
0.027523
0
0.119266
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
1291ab8aed0db6cb7b1e8e05e5e25b1e6da39aea
7,993
py
Python
cwltool/update.py
PlatformedTasks/PLAS-cwl-tes
5e66a5f9309906d1e8caa0f7148b8517a17f840d
[ "Apache-2.0" ]
null
null
null
cwltool/update.py
PlatformedTasks/PLAS-cwl-tes
5e66a5f9309906d1e8caa0f7148b8517a17f840d
[ "Apache-2.0" ]
null
null
null
cwltool/update.py
PlatformedTasks/PLAS-cwl-tes
5e66a5f9309906d1e8caa0f7148b8517a17f840d
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import copy import re from typing import (Any, Callable, Dict, List, MutableMapping, MutableSequence, Optional, Tuple, Union) from functools import partial from ruamel.yaml.comments import CommentedMap, CommentedSeq from schema_salad import validate from sch...
39.181373
116
0.600025
866
7,993
5.47806
0.228637
0.005691
0.028457
0.041737
0.221543
0.210582
0.185076
0.166948
0.134696
0.112985
0
0.009042
0.280495
7,993
203
117
39.374384
0.815858
0.149005
0
0.165605
0
0
0.210269
0.010062
0
0
0
0
0
1
0.050955
false
0.006369
0.089172
0.006369
0.210191
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
129258b78096fc56ca7d44ecd92404b8c97448a2
2,072
py
Python
plottify/plottify.py
neutrinoceros/plottify
21f4858dabe1228559a8beb385f134ccfb25321e
[ "MIT" ]
null
null
null
plottify/plottify.py
neutrinoceros/plottify
21f4858dabe1228559a8beb385f134ccfb25321e
[ "MIT" ]
null
null
null
plottify/plottify.py
neutrinoceros/plottify
21f4858dabe1228559a8beb385f134ccfb25321e
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib import collections from matplotlib.lines import Line2D def autosize(fig=None, figsize=None): ## Take current figure if no figure provided if fig is None: fig = plt.gcf() if figsize is None: ## Get size of figure figsize = fig.get_s...
26.227848
87
0.598456
278
2,072
4.327338
0.320144
0.0133
0.017456
0.0399
0.322527
0.277639
0.244389
0.244389
0.244389
0.194514
0
0.015152
0.299228
2,072
78
88
26.564103
0.813361
0.10666
0
0.269231
0
0
0.015284
0
0
0
0
0
0
1
0.019231
false
0
0.115385
0
0.134615
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
12928ccd7dc4a56b7be40e6eb4668aed89dd266b
8,546
py
Python
ocular_algorithm/0x04_BasicRecurrenceAndRecursion.py
DistinctWind/ManimProjects
6318643afcc24574cbd9a0a45ff0d913d4711b13
[ "MIT" ]
2
2020-03-15T01:27:09.000Z
2020-03-20T02:08:09.000Z
ocular_algorithm/0x04_BasicRecurrenceAndRecursion.py
DistinctWind/ManimProjects
6318643afcc24574cbd9a0a45ff0d913d4711b13
[ "MIT" ]
null
null
null
ocular_algorithm/0x04_BasicRecurrenceAndRecursion.py
DistinctWind/ManimProjects
6318643afcc24574cbd9a0a45ff0d913d4711b13
[ "MIT" ]
null
null
null
from re import S from manimlib import * import sys import os from tqdm.std import tqdm sys.path.append(os.getcwd()) from utils.imports import * class Opening(Scene): def construct(self): title = Text("基础递推递归", font='msyh') self.play(Write(title), run_time=2) self.wait() self.pla...
32.371212
121
0.589165
1,124
8,546
4.386121
0.134342
0.100609
0.038945
0.059635
0.496957
0.467546
0.394929
0.336105
0.296755
0.266937
0
0.028004
0.252048
8,546
263
122
32.494297
0.743273
0
0
0.419355
0
0.018433
0.054645
0.039551
0
0
0
0
0
1
0.064516
false
0
0.02765
0
0.21659
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
12932a6f23a6e9331d41a53f62dfc3d9f6482d92
2,057
py
Python
gpv2/data/lessons/mil.py
michalsr/gpv2
00a22b311dbaeefb04e1df676eb6ae3373d8d4b5
[ "Apache-2.0" ]
null
null
null
gpv2/data/lessons/mil.py
michalsr/gpv2
00a22b311dbaeefb04e1df676eb6ae3373d8d4b5
[ "Apache-2.0" ]
null
null
null
gpv2/data/lessons/mil.py
michalsr/gpv2
00a22b311dbaeefb04e1df676eb6ae3373d8d4b5
[ "Apache-2.0" ]
null
null
null
import logging import sys from typing import Union, Optional, Dict, Any, List from dataclasses import dataclass, replace from exp.ours import file_paths from exp.ours.boosting import MaskSpec from exp.ours.data.dataset import Dataset, Task from exp.ours.data.gpv_example import GPVExample from exp.ours.models.model im...
21.206186
76
0.701507
311
2,057
4.469453
0.337621
0.030216
0.047482
0.051799
0.092086
0.073381
0.053237
0.053237
0
0
0
0.004159
0.181818
2,057
96
77
21.427083
0.821747
0.140982
0
0.067797
0
0
0.09823
0.045688
0
0
0
0
0
1
0.118644
false
0
0.220339
0.050847
0.59322
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
1295c606d9e77831f602309b8cf0e51374c22061
7,148
py
Python
modules/utils.py
PaulLerner/deep_parkinson_handwriting
806f34eaa6c5dde2a8230a07615c69e0873c0535
[ "MIT" ]
2
2021-01-19T02:47:32.000Z
2021-05-20T08:29:36.000Z
modules/utils.py
PaulLerner/deep_parkinson_handwriting
806f34eaa6c5dde2a8230a07615c69e0873c0535
[ "MIT" ]
null
null
null
modules/utils.py
PaulLerner/deep_parkinson_handwriting
806f34eaa6c5dde2a8230a07615c69e0873c0535
[ "MIT" ]
2
2021-01-23T18:20:19.000Z
2021-08-09T03:53:32.000Z
import numpy as np from time import time import matplotlib.pyplot as plt measure2index={"y-coordinate":0,"x-coordinate":1,"timestamp":2, "button_status":3,"tilt":4, "elevation":5,"pressure":6} index2measure=list(measure2index.keys()) task2index={"spiral":0,"l":1,"le":2 ,"les":3,"lektorka" :4,"porovnat":5,"nepopadnout...
42.047059
133
0.663123
1,102
7,148
4.166062
0.251361
0.035069
0.014376
0.012198
0.204313
0.160749
0.135047
0.07384
0.067959
0.052276
0
0.044015
0.195859
7,148
169
134
42.295858
0.754175
0.117096
0
0.101351
0
0
0.089907
0
0
0
0
0
0
1
0.114865
false
0
0.02027
0.013514
0.243243
0.040541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1296326732d0f3f0616b1b674348b31dbce55859
574
py
Python
Mundo2/Desafio039.py
Marcoakira/Desafios_Python_do_Curso_Guanabara
c49b774148a2232f8f3c21b83e3dc97610480757
[ "MIT" ]
null
null
null
Mundo2/Desafio039.py
Marcoakira/Desafios_Python_do_Curso_Guanabara
c49b774148a2232f8f3c21b83e3dc97610480757
[ "MIT" ]
null
null
null
Mundo2/Desafio039.py
Marcoakira/Desafios_Python_do_Curso_Guanabara
c49b774148a2232f8f3c21b83e3dc97610480757
[ "MIT" ]
null
null
null
import datetime datenasc = int(input(f'insert you date of bit ')) atualdate = str(datetime.date.today())[0:4] datestr = int(atualdate) datefinal = datestr - datenasc print(datefinal) if datefinal < 18: print(f'voce esta com {datefinal}Faltam {18-datefinal} pra você se alistar ao exercito hahahah' ) elif datefinal =...
41
101
0.728223
87
574
4.804598
0.678161
0.043062
0.076555
0.08134
0
0
0
0
0
0
0
0.021053
0.172474
574
13
102
44.153846
0.858947
0
0
0
0
0
0.534843
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1296f3adb86af7c4bde450922af6cd40c775ef6d
6,872
py
Python
test/test_sysroot_compiler.py
prajakta-gokhale/cross_compile
cbdc94ed5b25d6fc336aa5c0faa2838d9ce61db4
[ "Apache-2.0" ]
null
null
null
test/test_sysroot_compiler.py
prajakta-gokhale/cross_compile
cbdc94ed5b25d6fc336aa5c0faa2838d9ce61db4
[ "Apache-2.0" ]
null
null
null
test/test_sysroot_compiler.py
prajakta-gokhale/cross_compile
cbdc94ed5b25d6fc336aa5c0faa2838d9ce61db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
37.551913
88
0.721478
852
6,872
5.550469
0.247653
0.038063
0.057517
0.079086
0.417424
0.378938
0.254811
0.188835
0.150349
0.090928
0
0.016183
0.17273
6,872
182
89
37.758242
0.815655
0.194703
0
0.213675
0
0
0.198461
0.083746
0
0
0
0
0.068376
1
0.08547
false
0.017094
0.08547
0.025641
0.205128
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
1297e5fb738245835e074daab17948395423d0ba
2,083
py
Python
estimate.py
farr/galmassproxy
f4a1c7acc19d130a6f57030bceef03c993a7170c
[ "MIT" ]
null
null
null
estimate.py
farr/galmassproxy
f4a1c7acc19d130a6f57030bceef03c993a7170c
[ "MIT" ]
null
null
null
estimate.py
farr/galmassproxy
f4a1c7acc19d130a6f57030bceef03c993a7170c
[ "MIT" ]
null
null
null
#!/usr/bin/env python r"""estimate.py Use to estimate masses based on observed proxy values (and associated errors) from a pre-calibrated generative model for the mass-proxy relationship. The estimates will be returned as samples (fair draws) from the model's posterior on the mass given the proxy observation. This p...
30.632353
106
0.683629
313
2,083
4.447284
0.460064
0.011494
0.036638
0.031609
0
0
0
0
0
0
0
0.011303
0.192991
2,083
67
107
31.089552
0.816776
0.320211
0
0
0
0
0.114347
0
0
0
0
0
0
1
0
false
0
0.205882
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
129b2012dab2f92bc6a116945f46ccc5481200f2
562
py
Python
telemetry_f1_2021/generate_dataset.py
jasperan/f1-telemetry-oracle
5b2d7efac265539931849863655a5f92d86c75a8
[ "MIT" ]
4
2022-02-21T16:36:09.000Z
2022-03-28T06:50:54.000Z
telemetry_f1_2021/generate_dataset.py
jasperan/f1-telemetry-oracle
5b2d7efac265539931849863655a5f92d86c75a8
[ "MIT" ]
null
null
null
telemetry_f1_2021/generate_dataset.py
jasperan/f1-telemetry-oracle
5b2d7efac265539931849863655a5f92d86c75a8
[ "MIT" ]
2
2022-02-17T19:25:04.000Z
2022-02-23T04:16:16.000Z
import cx_Oracle from oracledb import OracleJSONDatabaseConnection import json jsondb = OracleJSONDatabaseConnection() connection = jsondb.get_connection() connection.autocommit = True soda = connection.getSodaDatabase() x_collection = soda.createCollection('f1_2021_weather') all_data = list() for doc in x_collect...
24.434783
55
0.765125
69
562
6.086957
0.652174
0.066667
0
0
0
0
0
0
0
0
0
0.012048
0.113879
562
23
56
24.434783
0.831325
0
0
0
0
0
0.076377
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
129b447d8e3a2e21029c717a45661b4dd2311adc
8,257
py
Python
UserPage.py
muath22/BookStore
db5b30e540de311931b234e71937ace3db9750c8
[ "MIT" ]
9
2018-09-13T10:43:34.000Z
2021-05-05T08:51:52.000Z
UserPage.py
muath22/BookStore
db5b30e540de311931b234e71937ace3db9750c8
[ "MIT" ]
4
2018-09-13T10:09:32.000Z
2021-03-20T00:03:10.000Z
UserPage.py
muath22/BookStore
db5b30e540de311931b234e71937ace3db9750c8
[ "MIT" ]
5
2020-02-26T13:54:03.000Z
2021-01-06T09:38:56.000Z
from Tkinter import * import ttk import BuyBook import BookInformationPage import Message class UserPage(object): def __init__(self, root, color, font, dbConnection, userInfo): for child in root.winfo_children(): child.destroy() self.root = root self.color = color sel...
32.128405
84
0.592588
937
8,257
5.104589
0.165422
0.070249
0.02927
0.027807
0.521848
0.458708
0.438219
0.413966
0.358143
0.256324
0
0.016195
0.289572
8,257
256
85
32.253906
0.799182
0.01744
0
0.415385
0
0
0.034032
0
0
0
0
0
0
1
0.066667
false
0
0.025641
0
0.117949
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
129b4ea5990948782bef80ca4f25a0a104636e5b
775
py
Python
migrations/versions/1b57e397deea_initial_migration.py
sicness9/BugHub
2af45b0840757f7826927d4fefc0e626fef136e1
[ "FTL" ]
null
null
null
migrations/versions/1b57e397deea_initial_migration.py
sicness9/BugHub
2af45b0840757f7826927d4fefc0e626fef136e1
[ "FTL" ]
null
null
null
migrations/versions/1b57e397deea_initial_migration.py
sicness9/BugHub
2af45b0840757f7826927d4fefc0e626fef136e1
[ "FTL" ]
null
null
null
"""initial migration Revision ID: 1b57e397deea Revises: Create Date: 2021-12-20 20:57:14.696646 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '1b57e397deea' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ...
25
70
0.676129
97
775
5.268041
0.515464
0.07045
0.082192
0.09002
0.422701
0.422701
0.320939
0.172211
0
0
0
0.049767
0.170323
775
30
71
25.833333
0.744946
0.370323
0
0.166667
0
0
0.177384
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
129b54403eb231e9102fbf7abe8cda7f3996ce5b
5,596
py
Python
app/utility/base_planning_svc.py
scottctaylor12/caldera
4e81aaaf0ed592232a0474dda36ea2fd505da0de
[ "Apache-2.0" ]
null
null
null
app/utility/base_planning_svc.py
scottctaylor12/caldera
4e81aaaf0ed592232a0474dda36ea2fd505da0de
[ "Apache-2.0" ]
null
null
null
app/utility/base_planning_svc.py
scottctaylor12/caldera
4e81aaaf0ed592232a0474dda36ea2fd505da0de
[ "Apache-2.0" ]
null
null
null
import copy import itertools import re from base64 import b64decode from app.utility.base_service import BaseService from app.utility.rule import RuleSet class BasePlanningService(BaseService): async def trim_links(self, operation, links, agent): """ Trim links in supplied list. Where 'trim' ent...
38.593103
103
0.606862
661
5,596
4.992436
0.229955
0.021818
0.030303
0.008485
0.243636
0.171515
0.128788
0.015758
0
0
0
0.00258
0.307362
5,596
144
104
38.861111
0.848813
0
0
0.172414
0
0
0.018039
0
0
0
0
0
0
1
0.011494
false
0
0.068966
0.011494
0.218391
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
129c738a3288c017144786e45c751a99bdb4acea
2,939
py
Python
tools/gen_histograms.py
mistajuliax/pbrt-v3-IILE
afda605d92517d2396e494d81465ead22d0c25e1
[ "BSD-2-Clause" ]
16
2018-10-12T15:29:22.000Z
2022-03-16T11:24:10.000Z
tools/gen_histograms.py
mistajuliax/pbrt-v3-IILE
afda605d92517d2396e494d81465ead22d0c25e1
[ "BSD-2-Clause" ]
16
2018-02-02T11:49:36.000Z
2018-04-21T09:07:08.000Z
tools/gen_histograms.py
giuliojiang/pbrt-v3-IISPT
b9be01096293ab0f50b14b9043556c93ff9e07ec
[ "BSD-2-Clause" ]
2
2018-12-12T08:49:43.000Z
2019-12-03T12:20:04.000Z
import os rootdir = os.path.abspath(os.path.join(__file__, "..", "..")) mldir = os.path.join(rootdir, "ml") import sys sys.path.append(mldir) import pfm import iispt_transforms import math import plotly import plotly.plotly as py import plotly.graph_objs as go # ====================================================...
25.780702
79
0.555971
353
2,939
4.526912
0.351275
0.043805
0.018773
0.026283
0.080726
0.046308
0.046308
0.046308
0.046308
0.046308
0
0.012393
0.286152
2,939
114
80
25.780702
0.749285
0.146308
0
0.0625
0
0
0.05649
0.021234
0
0
0
0
0
1
0.0125
false
0
0.1
0
0.1125
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
129ced52ad5bddf6d93136148de2d32cf2de02ec
4,762
py
Python
crownstone_uart/core/uart/UartBridge.py
RicArch97/crownstone-lib-python-uart
c0aaf1415936e5e622aa6395fdac4f88ebcf82bf
[ "MIT" ]
null
null
null
crownstone_uart/core/uart/UartBridge.py
RicArch97/crownstone-lib-python-uart
c0aaf1415936e5e622aa6395fdac4f88ebcf82bf
[ "MIT" ]
null
null
null
crownstone_uart/core/uart/UartBridge.py
RicArch97/crownstone-lib-python-uart
c0aaf1415936e5e622aa6395fdac4f88ebcf82bf
[ "MIT" ]
null
null
null
import logging import sys import threading import serial import serial.tools.list_ports from crownstone_uart.Constants import UART_READ_TIMEOUT, UART_WRITE_TIMEOUT from crownstone_uart.core.UartEventBus import UartEventBus from crownstone_uart.core.uart.UartParser import UartParser from crownstone_uart.core.uart.Uart...
40.355932
144
0.640277
473
4,762
6.338266
0.287526
0.106738
0.065377
0.070047
0.203469
0.122749
0.092728
0
0
0
0
0.002625
0.279924
4,762
117
145
40.700855
0.871683
0.057119
0
0.175824
0
0
0.099688
0
0
0
0
0
0
1
0.076923
false
0
0.10989
0
0.197802
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
129f44f6dc7578a9b45f3abd7e3b50f1fe3a4274
1,999
py
Python
examples/client-example.py
pkalemba/python-warp10client
25a9b446a217066a7d6c39aeb7d19d1be93a7688
[ "BSD-3-Clause" ]
8
2017-11-20T13:31:58.000Z
2021-07-13T08:34:52.000Z
examples/client-example.py
pkalemba/python-warp10client
25a9b446a217066a7d6c39aeb7d19d1be93a7688
[ "BSD-3-Clause" ]
2
2017-11-20T21:16:16.000Z
2017-12-11T13:56:44.000Z
examples/client-example.py
regel/python-warp10client
bee380513d899ae7c55a26e43a8914f8c29b5279
[ "BSD-3-Clause" ]
4
2017-11-21T07:51:01.000Z
2020-04-07T12:03:23.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- import daiquiri from time import time import warp10client LOG = daiquiri.getLogger(__name__) warp10_api_url = '' # Add here backend url where metrics are stored read_token = '' # Add here your metrics read token write_token = '' # Add here your metrics write token #...
24.9875
79
0.64032
230
1,999
5.391304
0.434783
0.029032
0.029032
0.053226
0.327419
0.278226
0.278226
0.278226
0.228226
0.228226
0
0.151244
0.216108
1,999
79
80
25.303797
0.640077
0.263132
0
0.203704
0
0
0.341564
0.17284
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
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
12a0170295fb80e383d69995765e135510da8362
3,094
py
Python
ports/stm32/boards/NUCLEO_WB55/rfcore_makefirmware.py
H-Grobben/micropython
fce96b11f3ff444c1ac24501db465dbe9e5902bf
[ "MIT" ]
null
null
null
ports/stm32/boards/NUCLEO_WB55/rfcore_makefirmware.py
H-Grobben/micropython
fce96b11f3ff444c1ac24501db465dbe9e5902bf
[ "MIT" ]
null
null
null
ports/stm32/boards/NUCLEO_WB55/rfcore_makefirmware.py
H-Grobben/micropython
fce96b11f3ff444c1ac24501db465dbe9e5902bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of the MicroPython project, http://micropython.org/ # # The MIT License (MIT) # # Copyright (c) 2020 Jim Mussared # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal ...
38.675
184
0.671946
449
3,094
4.501114
0.463252
0.043543
0.012865
0.010886
0
0
0
0
0
0
0
0.021674
0.239496
3,094
79
185
39.164557
0.837229
0.479315
0
0.05
0
0.05
0.28716
0.034788
0
0
0.006958
0
0
1
0.025
false
0
0.075
0
0.1
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12a080db56a168dea64d817c232a427dfdd87858
1,081
py
Python
universal/spiders/universalSpider.py
universalscraper/universal-spider
0b6d82ee0c749cf32dcf501e6d84f518ee2e8437
[ "MIT" ]
2
2017-01-14T20:09:24.000Z
2019-09-23T09:26:23.000Z
universal/spiders/universalSpider.py
scraperize/universal-spider
0b6d82ee0c749cf32dcf501e6d84f518ee2e8437
[ "MIT" ]
null
null
null
universal/spiders/universalSpider.py
scraperize/universal-spider
0b6d82ee0c749cf32dcf501e6d84f518ee2e8437
[ "MIT" ]
null
null
null
import scrapy import yaml class universalSpider(scrapy.Spider): name = "universal" parameters = None def __init__(self, *args, **kwargs): worker = kwargs.get("worker") if not worker: exit("You must specify worker name : -a worker=name") self.parameters = yaml.load(f...
29.216216
130
0.60592
116
1,081
5.551724
0.465517
0.195652
0.074534
0
0
0
0
0
0
0
0
0
0.255319
1,081
36
131
30.027778
0.8
0
0
0
0
0
0.130435
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12a0f3a1d45fe59fa067cf5c06c3bffbb58f6bd1
11,715
py
Python
environments/IPP_BO_Ypacarai.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
null
null
null
environments/IPP_BO_Ypacarai.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
null
null
null
environments/IPP_BO_Ypacarai.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
null
null
null
import warnings import gym import matplotlib.pyplot as plt import numpy as np from skopt.acquisition import gaussian_ei from environments.groundtruthgenerator import GroundTruth warnings.simplefilter("ignore", UserWarning) from skopt.learning.gaussian_process import gpr, kernels class ContinuousBO(gym.Env): en...
38.284314
120
0.626376
1,562
11,715
4.552497
0.233675
0.02025
0.025313
0.014344
0.2108
0.170018
0.14583
0.14583
0.133455
0.122205
0
0.019365
0.26385
11,715
305
121
38.409836
0.805195
0.28758
0
0.164557
0
0
0.02432
0
0
0
0
0.003279
0
1
0.063291
false
0
0.050633
0.006329
0.164557
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12a151b9a4e765ed24ceecf3aa9bec0771ac3589
5,281
py
Python
utils/metrics.py
0b3d/Image-Map-Embeddings
a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f
[ "MIT" ]
2
2022-02-11T06:05:35.000Z
2022-03-14T02:10:31.000Z
utils/metrics.py
0b3d/Image-Map-Embeddings
a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f
[ "MIT" ]
null
null
null
utils/metrics.py
0b3d/Image-Map-Embeddings
a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f
[ "MIT" ]
null
null
null
import numpy as np from sklearn.metrics import pairwise_distances import matplotlib.pyplot as plt class NumpyMetrics(): def __init__(self, metric='euclidean'): self.metric = metric def rank(self, x,y, x_labels, y_labels): distances = pairwise_distances(x,y,self.metric) batch_size = x_...
51.271845
166
0.667487
766
5,281
4.398172
0.189295
0.045711
0.026121
0.045711
0.560107
0.52805
0.52152
0.478777
0.429801
0.429801
0
0.012033
0.228934
5,281
103
167
51.271845
0.815324
0.229502
0
0.364865
0
0
0.016389
0
0
0
0
0
0
1
0.135135
false
0
0.040541
0
0.283784
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12a383eaf645019cefa1dc9f3842290ed2752e23
1,999
py
Python
setup.py
ljdursi/mergevcf
b400385936417c6e517d3c7daec8b9ca6389c51f
[ "MIT" ]
25
2015-06-22T15:30:32.000Z
2021-05-13T14:59:18.000Z
setup.py
ljdursi/mergevcf
b400385936417c6e517d3c7daec8b9ca6389c51f
[ "MIT" ]
7
2015-08-14T11:20:35.000Z
2021-05-18T17:48:38.000Z
setup.py
ljdursi/mergevcf
b400385936417c6e517d3c7daec8b9ca6389c51f
[ "MIT" ]
6
2017-04-17T18:35:43.000Z
2018-05-15T21:47:13.000Z
# based on https://github.com/pypa/sampleproject from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f: long_descript...
26.653333
85
0.617309
230
1,999
5.291304
0.582609
0.124897
0.164339
0.085456
0.044371
0
0
0
0
0
0
0.015884
0.244122
1,999
74
86
27.013514
0.789543
0.308154
0
0.051282
0
0
0.409224
0.050512
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
12a754908091d00ea075e8ffe5d6a23ed6d1b3e0
4,761
py
Python
netforce_mfg/netforce_mfg/models/barcode_qc.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
27
2015-09-30T23:53:30.000Z
2021-06-07T04:56:25.000Z
netforce_mfg/netforce_mfg/models/barcode_qc.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
191
2015-10-08T11:46:30.000Z
2019-11-14T02:24:36.000Z
netforce_mfg/netforce_mfg/models/barcode_qc.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
32
2015-10-01T03:59:43.000Z
2022-01-13T07:31:05.000Z
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
40.008403
122
0.603025
599
4,761
4.626043
0.292154
0.028149
0.023457
0.023096
0.174666
0.147961
0.147961
0.147961
0.147961
0.113316
0
0.004082
0.279563
4,761
118
123
40.347458
0.80379
0.223693
0
0.21978
0
0
0.201578
0
0
0
0
0
0
1
0.043956
false
0.010989
0.021978
0
0.164835
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
12a8abd596e75426da116460419af8dc9c55b01d
1,506
py
Python
models/universal_sentence_encoder_multilingual_qa/v1/utils.py
rhangelxs/russian_embeddings
64821cdff03ff97752b6c80621bedf9e2227a0ba
[ "MIT" ]
null
null
null
models/universal_sentence_encoder_multilingual_qa/v1/utils.py
rhangelxs/russian_embeddings
64821cdff03ff97752b6c80621bedf9e2227a0ba
[ "MIT" ]
5
2020-09-26T00:18:44.000Z
2022-02-10T00:22:42.000Z
models/universal_sentence_encoder_multilingual_qa/v1/utils.py
rhangelxs/russian_embeddings
64821cdff03ff97752b6c80621bedf9e2227a0ba
[ "MIT" ]
null
null
null
import numpy import tensorflow as tf import tensorflow_hub as hub import tf_sentencepiece class EmbeddingWrapper: def __init__(self): module_url = "https://tfhub.dev/google/universal-sentence-encoder-multilingual-qa/1" # Set up graph. g = tf.Graph() with g.as_default(): ...
36.731707
109
0.592961
161
1,506
5.397516
0.378882
0.069045
0.06214
0.069045
0.139241
0.139241
0.139241
0.098964
0
0
0
0.002857
0.302789
1,506
40
110
37.65
0.824762
0.057105
0
0
0
0
0.084926
0
0
0
0
0
0
1
0.060606
false
0
0.121212
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12a970b715888d87283271740bd7a109a0ea7f3e
921
py
Python
jade/extensions/demo/create_merge_pred_gdp.py
jgu2/jade
e643830be89a7df74a82065400b2e82f6b181ec8
[ "BSD-3-Clause" ]
15
2021-05-15T21:58:26.000Z
2022-03-17T08:26:48.000Z
jade/extensions/demo/create_merge_pred_gdp.py
jgu2/jade
e643830be89a7df74a82065400b2e82f6b181ec8
[ "BSD-3-Clause" ]
22
2021-02-04T20:02:33.000Z
2021-09-14T13:29:30.000Z
jade/extensions/demo/create_merge_pred_gdp.py
jgu2/jade
e643830be89a7df74a82065400b2e82f6b181ec8
[ "BSD-3-Clause" ]
3
2021-01-11T15:11:31.000Z
2021-06-07T17:36:51.000Z
#!/usr/bin/env python """Creates the JADE configuration for stage 2 of the demo pipeline.""" import os import sys from jade.models import PipelineConfig from jade.utils.subprocess_manager import run_command from jade.utils.utils import load_data PRED_GDP_COMMANDS_FILE = "pred_gdp_commands.txt" def main(): con...
27.909091
81
0.733985
136
921
4.661765
0.463235
0.055205
0.094637
0.059937
0
0
0
0
0
0
0
0.005168
0.159609
921
32
82
28.78125
0.813953
0.092291
0
0
0
0
0.263855
0.154217
0
0
0
0
0
1
0.05
false
0
0.25
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
12aab253143e67156c54f44e65c0b36caa2ab283
2,631
py
Python
fact/time.py
mackaiver/slowREST
8ae07d8657164abe83f071216b6e9d00a57ae705
[ "MIT" ]
1
2015-03-03T08:07:52.000Z
2015-03-03T08:07:52.000Z
fact/time.py
mackaiver/slowREST
8ae07d8657164abe83f071216b6e9d00a57ae705
[ "MIT" ]
null
null
null
fact/time.py
mackaiver/slowREST
8ae07d8657164abe83f071216b6e9d00a57ae705
[ "MIT" ]
null
null
null
from __future__ import print_function __author__ = 'dneise, mnoethe' """ This file contains some functions to deal with FACT modified modified julian date The time used most of the time in FACT is the number of days since 01.01.1970 So this time is related to unix time, since it has the same offset (unix time is th...
28.912088
85
0.708476
390
2,631
4.666667
0.371795
0.105495
0.035714
0.034615
0.114286
0.108791
0.08022
0.08022
0.08022
0.08022
0
0.043726
0.200304
2,631
90
86
29.233333
0.821293
0.1832
0
0.205882
0
0
0.11731
0
0
0
0
0
0
1
0.176471
false
0
0.205882
0
0.558824
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12b0f94ae97150323ed0af8a6fe2aba3cc7d3f40
445
py
Python
7.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
7.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
7.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
# By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. # # What is the 10 001st prime number? primes = [] for i in range(2, 100): if len(primes) == 10001: break x = list(map(lambda y: i % y == 0, range(2,i))) if sum(x) == False: primes.a...
18.541667
102
0.546067
79
445
3.075949
0.56962
0.074074
0.065844
0.115226
0.205761
0.205761
0.205761
0.205761
0.205761
0.205761
0
0.094937
0.289888
445
23
103
19.347826
0.674051
0.411236
0
0
0
0
0.019608
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12b14a676fba1294e88631fcf085323cedbf845c
5,707
py
Python
src/plot_scripts/plot_sigcomm_bars_cellular.py
zxxia/RL-CC
d3d3be0097d69ee07b06363ad531cf2479029d74
[ "Apache-2.0" ]
null
null
null
src/plot_scripts/plot_sigcomm_bars_cellular.py
zxxia/RL-CC
d3d3be0097d69ee07b06363ad531cf2479029d74
[ "Apache-2.0" ]
null
null
null
src/plot_scripts/plot_sigcomm_bars_cellular.py
zxxia/RL-CC
d3d3be0097d69ee07b06363ad531cf2479029d74
[ "Apache-2.0" ]
null
null
null
import os import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt SAVE_ROOT = '../../figs_sigcomm22' plt.style.use('seaborn-deep') plt.rcParams['font.family'] = 'Arial' # plt.rcParams['font.size'] = 42 # plt.rcParams['axes.labelsize'] = 42 # plt.rcParams['legend.fontsize'] = 42 # plt.rcParams['figure...
41.963235
118
0.65884
904
5,707
3.928097
0.277655
0.049282
0.024782
0.01577
0.277387
0.22726
0.211771
0.190932
0.189242
0.189242
0
0.085999
0.17277
5,707
135
119
42.274074
0.666172
0.112493
0
0.09009
0
0
0.130504
0.030543
0
0
0
0
0
1
0.018018
false
0
0.027027
0
0.045045
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
12b2fe22c669ef8f586778fb7af3dd29059295d7
4,702
py
Python
scope/client_util/job_runner_check.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
1
2017-11-10T17:23:11.000Z
2017-11-10T17:23:11.000Z
scope/client_util/job_runner_check.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
5
2018-08-01T03:05:35.000Z
2018-11-29T22:11:25.000Z
scope/client_util/job_runner_check.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
3
2016-05-25T18:58:35.000Z
2018-11-29T23:40:45.000Z
# -*- coding: utf-8 -*- # This code is licensed under the MIT License (see LICENSE file for details) import platform import datetime import sys import pathlib import subprocess import time from .. import scope_job_runner from ..config import scope_configuration def main(): if len(sys.argv) == 2 and sys.argv[1] =...
38.227642
113
0.701616
671
4,702
4.724292
0.28763
0.051104
0.039748
0.015142
0.140063
0.078233
0.078233
0.041009
0.041009
0.041009
0
0.005042
0.198639
4,702
122
114
38.540984
0.836253
0.128456
0
0.178947
0
0.021053
0.298628
0.032582
0
0
0
0
0
1
0.052632
false
0
0.084211
0
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
12b402f977b10f55535c5a3654e5fda7b7dcf072
2,222
py
Python
toffy/json_utils.py
angelolab/toffy
4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6
[ "Apache-2.0" ]
null
null
null
toffy/json_utils.py
angelolab/toffy
4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6
[ "Apache-2.0" ]
46
2022-01-26T18:21:21.000Z
2022-03-30T19:19:12.000Z
toffy/json_utils.py
angelolab/creed-helper
4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6
[ "Apache-2.0" ]
null
null
null
import copy import json import os from ark.utils import io_utils def rename_missing_fovs(fov_data): """Identify FOVs that are missing the 'name' key and create one with value placeholder_{n} Args: fov_data (dict): the FOV run JSON data Returns: dict: a copy of the run JSON data with plac...
26.771084
94
0.629613
332
2,222
4.048193
0.286145
0.046875
0.040923
0.044643
0.077381
0.041667
0.041667
0
0
0
0
0.004351
0.275878
2,222
82
95
27.097561
0.830951
0.415842
0
0
0
0
0.103306
0.022314
0
0
0
0
0
1
0.09375
false
0
0.125
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
12b6971b8aff245d6004cadaa44e2d26223997e6
545
py
Python
app/plugins/task/upload.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-06-22T21:25:52.000Z
2020-06-22T21:25:52.000Z
app/plugins/task/upload.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-05-21T02:46:24.000Z
2020-05-25T07:19:23.000Z
app/plugins/task/upload.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
null
null
null
from systems.plugins.index import BaseProvider import os class Provider(BaseProvider('task', 'upload')): def execute(self, results, params): file_path = self.get_path(self.field_file) if not os.path.exists(file_path): self.command.error("Upload task provider file {} does not exist"....
27.25
95
0.640367
70
545
4.8
0.471429
0.133929
0.107143
0
0
0
0
0
0
0
0
0
0.256881
545
19
96
28.684211
0.82963
0
0
0
0
0
0.097248
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12b73e722a7a33f56b3403eba3f5dbfb5e5538e6
2,955
py
Python
win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py
takkii/dotfile
7daf848c718ee10603a68a6e37a1002a827ec72f
[ "MIT" ]
1
2018-10-11T21:31:43.000Z
2018-10-11T21:31:43.000Z
win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py
takkii/dotfile
7daf848c718ee10603a68a6e37a1002a827ec72f
[ "MIT" ]
null
null
null
win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py
takkii/dotfile
7daf848c718ee10603a68a6e37a1002a827ec72f
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: outline.py # AUTHOR: Yasumasa Tamura (tamura.yasumasa _at_ gmail.com) # License: MIT license # ============================================================================ from .base import Base from subprocess import check_output, ...
35.60241
78
0.457868
274
2,955
4.79927
0.379562
0.042586
0.036502
0.030418
0.045627
0.045627
0.045627
0
0
0
0
0.005157
0.343824
2,955
82
79
36.036585
0.673027
0.083926
0
0.030303
0
0
0.163273
0
0
0
0
0
0
1
0.060606
false
0
0.075758
0
0.181818
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
12b904baad9cd10c3b5e703a970ce798e635e1b7
372
py
Python
Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py
darioGerussi/exercises
414a3867d4db9449e402c58efd993153f55b91eb
[ "MIT" ]
1
2022-03-31T01:57:55.000Z
2022-03-31T01:57:55.000Z
Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py
darioGerussi/exercises
414a3867d4db9449e402c58efd993153f55b91eb
[ "MIT" ]
null
null
null
Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py
darioGerussi/exercises
414a3867d4db9449e402c58efd993153f55b91eb
[ "MIT" ]
null
null
null
# Converts a given temperature from Celsius to Fahrenheit # Prompt user for Celsius temperature degreesCelsius = float(input('\nEnter the temperature in Celsius: ')) # Calculate and display the converted # temperature in Fahrenheit degreesFahrenheit = ((9.0 / 5.0) * degreesCelsius) + 32 print('Fahrenheit equivalent:...
37.2
81
0.744624
44
372
6.295455
0.727273
0.093863
0
0
0
0
0
0
0
0
0
0.021807
0.137097
372
10
81
37.2
0.841122
0.41129
0
0
0
0
0.302326
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12ba24dffd7a4983b46d43a9846f2ca9b1d6059e
4,214
py
Python
tests/sentry/api/serializers/test_alert_rule.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
tests/sentry/api/serializers/test_alert_rule.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/serializers/test_alert_rule.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import six from sentry.api.serializers import serialize from sentry.api.serializers.models.alert_rule import DetailedAlertRuleSerializer from sentry.incidents.logic import create_alert_rule, create_alert_rule_trigger from sentry.incidents.models import A...
45.311828
100
0.701709
450
4,214
6.315556
0.197778
0.17734
0.063336
0.046798
0.506334
0.461999
0.425405
0.425405
0.391626
0.391626
0
0.006811
0.198624
4,214
92
101
45.804348
0.834765
0.004983
0
0.320513
0
0
0.068719
0
0
0
0
0
0.384615
1
0.076923
false
0
0.102564
0
0.217949
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
12bae8e939e905a92184b3c60e3fd70c58c999c2
1,003
py
Python
mys/cli/subparsers/test.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
mys/cli/subparsers/test.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
mys/cli/subparsers/test.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
import os from ..utils import add_jobs_argument from ..utils import add_no_ccache_argument from ..utils import add_optimize_argument from ..utils import add_verbose_argument from ..utils import build_prepare from ..utils import run def do_test(_parser, args, _mys_config): build_prepare(args.verbose, args.optimiz...
27.108108
62
0.698903
129
1,003
5.20155
0.348837
0.080477
0.134128
0.107303
0.116244
0
0
0
0
0
0
0
0.179462
1,003
36
63
27.861111
0.81531
0
0
0
0
0
0.133599
0.022931
0
0
0
0
0
1
0.074074
false
0
0.259259
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12bedc5672fe578c7205936e96d0685f45374da0
16,945
py
Python
training/loss.py
drboog/Lafite
10e109b9f46646ab793e0a5f38386af3012e9636
[ "MIT" ]
45
2022-03-10T23:49:44.000Z
2022-03-31T21:47:45.000Z
training/loss.py
drboog/Lafite
10e109b9f46646ab793e0a5f38386af3012e9636
[ "MIT" ]
7
2022-03-13T15:13:18.000Z
2022-03-31T16:57:38.000Z
training/loss.py
drboog/Lafite
10e109b9f46646ab793e0a5f38386af3012e9636
[ "MIT" ]
8
2022-03-10T23:49:29.000Z
2022-03-31T18:20:17.000Z
import numpy as np import torch from torch_utils import training_stats from torch_utils import misc from torch_utils.ops import conv2d_gradfix import torch.nn.functional as F import torchvision.transforms as T import clip import dnnlib import random #--------------------------------------------------------------------...
50.281899
190
0.5928
2,305
16,945
4.064642
0.14013
0.024336
0.014409
0.029459
0.435159
0.370691
0.302487
0.248372
0.182837
0.173124
0
0.028865
0.282384
16,945
336
191
50.431548
0.741612
0.11195
0
0.171206
0
0
0.028331
0.002133
0
0
0
0.002976
0.003891
1
0.050584
false
0
0.038911
0.003891
0.163424
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
12bfd9fea84125596f1417fe60855b47416a33a6
4,203
py
Python
lib/oitool/fetchoi.py
stockalgo/oichart
962c373b34fcef09cc58abcf6e252dd746d413a1
[ "MIT" ]
8
2021-02-05T21:54:26.000Z
2022-03-26T19:44:42.000Z
lib/oitool/fetchoi.py
stockalgo/oichart
962c373b34fcef09cc58abcf6e252dd746d413a1
[ "MIT" ]
3
2021-03-15T18:41:12.000Z
2021-12-18T09:23:47.000Z
lib/oitool/fetchoi.py
stockalgo/oichart
962c373b34fcef09cc58abcf6e252dd746d413a1
[ "MIT" ]
5
2021-03-16T12:28:37.000Z
2021-12-17T17:35:16.000Z
import time import logging from bandl.nse_data import NseData from influxdb import InfluxDBClient class FetchOI: def __init__(self,source=None,influxdb_client=None,database="oitool",log_path=None,logLevel='info'): """[summary] :param source: stock broker :type source: string, optional ...
39.280374
106
0.602665
484
4,203
5.109504
0.32438
0.036393
0.01577
0.014557
0.018601
0
0
0
0
0
0
0.006805
0.300738
4,203
106
107
39.650943
0.834638
0.222936
0
0.076923
0
0
0.107516
0
0
0
0
0
0
1
0.076923
false
0
0.061538
0.015385
0.184615
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12c0367fe0f1278ce33a6a9b512ae1509254147d
1,667
py
Python
notebooks/HelperFunctions/RunModel.py
hh2110/continual-ml-stocks
2a2baa330cd418b3cfb7eda8464c6b5b67bc608f
[ "CC0-1.0" ]
null
null
null
notebooks/HelperFunctions/RunModel.py
hh2110/continual-ml-stocks
2a2baa330cd418b3cfb7eda8464c6b5b67bc608f
[ "CC0-1.0" ]
null
null
null
notebooks/HelperFunctions/RunModel.py
hh2110/continual-ml-stocks
2a2baa330cd418b3cfb7eda8464c6b5b67bc608f
[ "CC0-1.0" ]
null
null
null
from sklearn.model_selection import train_test_split from sklearn import metrics from sklearn.metrics import accuracy_score from sklearn.metrics import roc_auc_score import numpy as np import pandas as pd import matplotlib.pyplot as plt def do_ml(merged_df, test_size, ml_model, **kwargs): train_data = merged_df.d...
27.783333
83
0.652669
215
1,667
4.823256
0.423256
0.043394
0.027001
0.046287
0.067502
0.067502
0
0
0
0
0
0.007868
0.237552
1,667
59
84
28.254237
0.808025
0.074985
0
0
0
0
0.041775
0
0
0
0
0
0
1
0.05
false
0
0.275
0
0.35
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
12c19863b8bc11caf71dfdd9f3bff254268754da
7,299
py
Python
tools/build_defs/pkg/make_rpm.py
jpieper-tri/bazel
eef80048e2c59e3be974144ce9cd90b9f90294fb
[ "Apache-2.0" ]
1
2018-03-27T17:18:20.000Z
2018-03-27T17:18:20.000Z
tools/build_defs/pkg/make_rpm.py
Corroler/bazel
073ea095a6c6a826ccdbbce1b213de47115e701a
[ "Apache-2.0" ]
2
2018-11-06T01:01:16.000Z
2019-04-10T02:25:49.000Z
tools/build_defs/pkg/make_rpm.py
Corroler/bazel
073ea095a6c6a826ccdbbce1b213de47115e701a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
27.43985
80
0.68023
985
7,299
4.941117
0.293401
0.023012
0.02219
0.014794
0.075611
0.054037
0.048079
0.036162
0
0
0
0.004025
0.217016
7,299
265
81
27.543396
0.847594
0.271681
0
0.064516
0
0
0.112308
0
0
0
0
0
0
1
0.103226
false
0.006452
0.077419
0.006452
0.296774
0.045161
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12c1f75f883cd400635b90784e88c06bdf2c4be4
2,739
py
Python
data/datasets/gb_100.py
CharleyZhao123/graceful-few-shot
fae8170158a7a39ead7da40fecd787fea4abcf1a
[ "MIT" ]
1
2021-08-11T12:56:29.000Z
2021-08-11T12:56:29.000Z
data/datasets/gb_100.py
CharleyZhao123/graceful-few-shot
fae8170158a7a39ead7da40fecd787fea4abcf1a
[ "MIT" ]
null
null
null
data/datasets/gb_100.py
CharleyZhao123/graceful-few-shot
fae8170158a7a39ead7da40fecd787fea4abcf1a
[ "MIT" ]
null
null
null
import os import pickle import random from torch.utils.data import Dataset from .datasets import dataset_register default_split = { 'train': 0.7, 'val': 0.3, } @dataset_register('gb-100') class GB100(Dataset): def __init__(self, root_path, split='train', split_method='novel', **kwargs): data_fi...
28.831579
91
0.588536
361
2,739
4.124654
0.257618
0.064473
0.036266
0.037609
0.183345
0.149765
0.142377
0.142377
0.077905
0.077905
0
0.032393
0.301205
2,739
94
92
29.138298
0.745559
0.058415
0
0.109375
0
0
0.066225
0.013635
0
0
0
0
0
1
0.046875
false
0
0.078125
0.015625
0.171875
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12c2d9d6cce98782d3ab5c1e821708313828e9f6
594
py
Python
examples/analyze-outdated.py
duzvik/project-freta
6c96b5d9af98380d695f0ad1c1636021793f30d2
[ "CC-BY-4.0", "MIT" ]
67
2020-07-06T20:18:05.000Z
2022-03-27T15:00:16.000Z
examples/analyze-outdated.py
hhfdserth/project-freta
b552267f87a4f5e4796ece6865232853d62f227c
[ "CC-BY-4.0", "MIT" ]
2
2020-07-06T23:35:47.000Z
2020-07-14T15:22:47.000Z
examples/analyze-outdated.py
hhfdserth/project-freta
b552267f87a4f5e4796ece6865232853d62f227c
[ "CC-BY-4.0", "MIT" ]
21
2020-04-07T22:37:52.000Z
2021-11-10T08:27:38.000Z
#!/usr/bin/env python # # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # # Re-analyze all images that don't have latest version of the analysis available from freta.api import Freta def main(): freta = Freta() versions = freta.versions() for image in freta.image.list(): ...
23.76
80
0.616162
72
594
4.930556
0.638889
0.073239
0.067606
0
0
0
0
0
0
0
0
0
0.252525
594
24
81
24.75
0.79955
0.282828
0
0
0
0
0.188095
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.153846
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
12c342b7aef5ffeb0a48559a00dc029a6ad70253
4,041
py
Python
utils/utils_fit.py
bubbliiiing/faster-rcnn-keras
aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6
[ "MIT" ]
282
2020-02-25T00:19:28.000Z
2022-03-20T08:14:20.000Z
utils/utils_fit.py
codertcm/faster-rcnn-keras
aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6
[ "MIT" ]
46
2020-02-24T13:17:40.000Z
2022-03-12T00:59:15.000Z
utils/utils_fit.py
codertcm/faster-rcnn-keras
aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6
[ "MIT" ]
123
2020-02-23T09:28:36.000Z
2022-03-16T01:43:46.000Z
import numpy as np import tensorflow as tf from keras import backend as K from tqdm import tqdm def write_log(callback, names, logs, batch_no): for name, value in zip(names, logs): summary = tf.Summary() summary_value = summary.value.add() summary_value.simple_value = value ...
44.406593
153
0.554318
533
4,041
3.909944
0.202627
0.051823
0.051823
0.046065
0.466411
0.419866
0.407869
0.407869
0.407869
0.372361
0
0.020695
0.330364
4,041
90
154
44.9
0.749446
0
0
0.373333
0
0
0.067325
0.009112
0
0
0
0
0
1
0.026667
false
0
0.053333
0
0.08
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12c5579947927013c8506c4aecdbaabf5a5bd1d2
319
py
Python
tests/test_extension.py
PeterWurmsdobler/mopidy-vfd
8ae067d37b8670da2a0b9e876257c09ceb222be7
[ "Apache-2.0" ]
null
null
null
tests/test_extension.py
PeterWurmsdobler/mopidy-vfd
8ae067d37b8670da2a0b9e876257c09ceb222be7
[ "Apache-2.0" ]
null
null
null
tests/test_extension.py
PeterWurmsdobler/mopidy-vfd
8ae067d37b8670da2a0b9e876257c09ceb222be7
[ "Apache-2.0" ]
null
null
null
from mopidy_vfd import Extension def test_get_default_config(): ext = Extension() config = ext.get_default_config() assert "[vfd]" in config assert "enabled = true" in config def test_get_config_schema(): ext = Extension() schema = ext.get_config_schema() assert "display" in schema
16.789474
37
0.689655
42
319
4.97619
0.404762
0.066986
0.095694
0
0
0
0
0
0
0
0
0
0.219436
319
18
38
17.722222
0.839357
0
0
0.2
0
0
0.081505
0
0
0
0
0
0.3
1
0.2
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
12c65927c0458f39714e96cf3347972f4ddf2a65
691
py
Python
onnx_tf/handlers/backend/identity.py
ZemingZhao/onnx-tensorflow
9ab9b934c2c8494b6309d20f15acabcb3abd126d
[ "Apache-2.0" ]
null
null
null
onnx_tf/handlers/backend/identity.py
ZemingZhao/onnx-tensorflow
9ab9b934c2c8494b6309d20f15acabcb3abd126d
[ "Apache-2.0" ]
null
null
null
onnx_tf/handlers/backend/identity.py
ZemingZhao/onnx-tensorflow
9ab9b934c2c8494b6309d20f15acabcb3abd126d
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from onnx_tf.handlers.backend_handler import BackendHandler from onnx_tf.handlers.handler import onnx_op from onnx_tf.handlers.handler import tf_func @onnx_op("Identity") @tf_func(tf.identity) class Identity(BackendHandler): @classmethod def version_1(cls, node, **kwargs): return [cl...
25.592593
59
0.726483
99
691
4.858586
0.363636
0.08316
0.06237
0.112266
0.440748
0.440748
0.31185
0.31185
0.31185
0.31185
0
0.010204
0.149059
691
26
60
26.576923
0.807823
0
0
0.25
0
0
0.027496
0
0
0
0
0
0
1
0.15
false
0
0.2
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12c7cbd02b14e09531a4f5ea52a53834f3434799
6,946
py
Python
contents/MyExperiment/Exp3_test/cluster_env.py
Feng-XiaoYue/Reinforcement-learning-with-tensorflow-master
011594083410f9b2f8e16eb5deed26e730ed849e
[ "MIT" ]
null
null
null
contents/MyExperiment/Exp3_test/cluster_env.py
Feng-XiaoYue/Reinforcement-learning-with-tensorflow-master
011594083410f9b2f8e16eb5deed26e730ed849e
[ "MIT" ]
null
null
null
contents/MyExperiment/Exp3_test/cluster_env.py
Feng-XiaoYue/Reinforcement-learning-with-tensorflow-master
011594083410f9b2f8e16eb5deed26e730ed849e
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import random import time import sys if sys.version_info.major == 2: import Tkinter as tk else: import tkinter as tk class Cluster(tk.Tk, object): def __init__(self, state_init, server_attribute): super(Cluster, self).__init__() self.action_space = np...
37.144385
145
0.460121
958
6,946
3.222338
0.161795
0.095886
0.124393
0.139942
0.132491
0.080661
0.068351
0.062196
0.062196
0.062196
0
0.088214
0.397783
6,946
187
146
37.144385
0.649773
0.286496
0
0.016949
0
0.008475
0.024192
0.023175
0
0
0
0.005348
0
1
0.09322
false
0
0.059322
0.008475
0.245763
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
12c7d079f923030d66c22a1b6cf6b9b674f39635
2,589
py
Python
libensemble/tests/regression_tests/test_6-hump_camel_elapsed_time_abort.py
Kardyne/libensemble
566c8f5daafe2ad4deebc13198a1e131e4ce6542
[ "BSD-2-Clause" ]
null
null
null
libensemble/tests/regression_tests/test_6-hump_camel_elapsed_time_abort.py
Kardyne/libensemble
566c8f5daafe2ad4deebc13198a1e131e4ce6542
[ "BSD-2-Clause" ]
null
null
null
libensemble/tests/regression_tests/test_6-hump_camel_elapsed_time_abort.py
Kardyne/libensemble
566c8f5daafe2ad4deebc13198a1e131e4ce6542
[ "BSD-2-Clause" ]
null
null
null
# """ # Runs libEnsemble on the 6-hump camel problem. Documented here: # https://www.sfu.ca/~ssurjano/camel6.html # # Execute via the following command: # mpiexec -np 4 python3 test_6-hump_camel_elapsed_time_abort.py # The number of concurrent evaluations of the objective function will be 4-1=3. # """ from __fut...
34.52
151
0.653148
360
2,589
4.469444
0.455556
0.027968
0.029832
0.027968
0.083282
0.059664
0.059664
0
0
0
0
0.013972
0.225956
2,589
74
152
34.986486
0.788922
0.3399
0
0.04878
0
0
0.125966
0.027332
0
0
0
0
0.02439
1
0.02439
false
0
0.219512
0
0.243902
0.146341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12c8a53eac5c028a5e825aaa86f201c528a2f671
1,329
py
Python
do_like_javac/tools/graphtools.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
1
2020-10-10T20:24:08.000Z
2020-10-10T20:24:08.000Z
do_like_javac/tools/graphtools.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
13
2019-06-20T23:16:15.000Z
2022-03-26T21:19:20.000Z
do_like_javac/tools/graphtools.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
5
2016-09-23T00:52:12.000Z
2021-09-08T01:24:36.000Z
import os import argparse from . import common argparser = argparse.ArgumentParser(add_help=False) graph_group = argparser.add_argument_group('graphtool arguments') graph_group.add_argument('--graph-jar', metavar='<graphtool-jar>', action='store',default=None, dest='graph_jar', ...
30.906977
88
0.611738
176
1,329
4.397727
0.4375
0.069767
0.03876
0
0
0
0
0
0
0
0
0.001012
0.256584
1,329
42
89
31.642857
0.782389
0
0
0
0
0
0.163281
0.015801
0
0
0
0
0
1
0.032258
false
0
0.096774
0
0.16129
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
12c8ff9bf299511a1712cec875fde79e159c64f4
507
py
Python
boss_grabbing/pipelines.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
boss_grabbing/pipelines.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
boss_grabbing/pipelines.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html from boss_grabbing.sqlite import Sqlite class BossGrabbingPipeline(object): def process_item(self, item, spider): ...
25.35
65
0.65286
69
507
4.724638
0.681159
0.079755
0
0
0
0
0
0
0
0
0
0.010101
0.218935
507
19
66
26.684211
0.813131
0.357002
0
0
0
0
0.05
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.444444
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12c9326e60a2f14e4ff7c33d36e504ccc28441b7
2,010
py
Python
src/compas/datastructures/mesh/transformations_numpy.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas/datastructures/mesh/transformations_numpy.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas/datastructures/mesh/transformations_numpy.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.geometry import transform_points_numpy __all__ = [ 'mesh_transform_numpy', 'mesh_transformed_numpy', ] def mesh_transform_numpy(mesh, transformation): """Transform a mesh. Param...
24.216867
80
0.595025
210
2,010
5.42381
0.309524
0.035119
0.042142
0.057946
0.382792
0.324846
0.324846
0.324846
0.324846
0.324846
0
0.005035
0.209453
2,010
82
81
24.512195
0.711768
0.520398
0
0
0
0
0.066002
0.027397
0
0
0
0
0
1
0.095238
false
0
0.238095
0
0.380952
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12c93b56f0fe4bfd1cf140c773e7ff17f7dd5689
17,860
py
Python
selfdrive/car/gm/carcontroller.py
CTyrell/openpilot
1ef27823882eed575266983175f106af1e293082
[ "MIT" ]
null
null
null
selfdrive/car/gm/carcontroller.py
CTyrell/openpilot
1ef27823882eed575266983175f106af1e293082
[ "MIT" ]
null
null
null
selfdrive/car/gm/carcontroller.py
CTyrell/openpilot
1ef27823882eed575266983175f106af1e293082
[ "MIT" ]
null
null
null
from cereal import car from common.realtime import DT_CTRL from common.numpy_fast import interp from common.realtime import sec_since_boot from selfdrive.config import Conversions as CV from selfdrive.car import apply_std_steer_torque_limits from selfdrive.car.gm import gmcan from selfdrive.car.gm.values import DBC, Ac...
54.45122
203
0.693729
2,781
17,860
4.046746
0.116864
0.061134
0.054203
0.057224
0.620313
0.53421
0.457349
0.409543
0.371246
0.367691
0
0.012675
0.218141
17,860
327
204
54.617737
0.793254
0.073348
0
0.143396
0
0
0.018154
0.003752
0
0
0
0
0
1
0.007547
false
0
0.033962
0
0.049057
0.011321
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12ccd738c589b9032a098324390886166233073c
2,308
py
Python
pose_recognition_from_camera_demo.py
amazingchow/capture-dance-using-mediapipe
1963d461b4e047308da78b1bb88b9ed1f2c3c7d1
[ "MIT" ]
null
null
null
pose_recognition_from_camera_demo.py
amazingchow/capture-dance-using-mediapipe
1963d461b4e047308da78b1bb88b9ed1f2c3c7d1
[ "MIT" ]
null
null
null
pose_recognition_from_camera_demo.py
amazingchow/capture-dance-using-mediapipe
1963d461b4e047308da78b1bb88b9ed1f2c3c7d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import cv2 as cv import mediapipe as mp import sys import time if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--video_device", type=int, default=0) parser.add_argument("--video_file", type=str, default="") args = parser.pars...
35.507692
101
0.561958
281
2,308
4.44484
0.405694
0.019215
0.025621
0.035228
0.102482
0.060849
0
0
0
0
0
0.020052
0.330156
2,308
64
102
36.0625
0.78784
0.089688
0
0.076923
0
0
0.097328
0.015744
0
0
0.001908
0
0
1
0
false
0
0.096154
0
0.096154
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
12ce678d7b9581bc7d8e71fefb2ce7346256d86f
1,901
py
Python
reference/data_dict_export.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
1
2019-05-18T22:32:21.000Z
2019-05-18T22:32:21.000Z
reference/data_dict_export.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
null
null
null
reference/data_dict_export.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
null
null
null
# Program name: atomic1D/reference/build_json.py # Author: Thomas Body # Author email: tajb500@york.ac.uk # Date of creation: 14 July 2017 # # # Makes data_dict and copies it into a .json file 'sd1d-case-05.json' filename = 'sd1d-case-05' from boutdata.collect import collect data_dict = {} # Normalisation factor ...
36.557692
172
0.730668
296
1,901
4.591216
0.506757
0.10596
0.062546
0.036792
0.031641
0
0
0
0
0
0
0.01433
0.155708
1,901
52
173
36.557692
0.832399
0.50868
0
0
0
0.047619
0.224044
0.065574
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
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
12cf323ab36261eee5e0ca79f3a3c93c62ed377b
3,300
py
Python
wordDocComposite.py
flyonok/image2text
0c16e6bf35eb486e6ff28e9e402a18bea6bd338c
[ "Apache-1.1" ]
null
null
null
wordDocComposite.py
flyonok/image2text
0c16e6bf35eb486e6ff28e9e402a18bea6bd338c
[ "Apache-1.1" ]
null
null
null
wordDocComposite.py
flyonok/image2text
0c16e6bf35eb486e6ff28e9e402a18bea6bd338c
[ "Apache-1.1" ]
null
null
null
from docx import Document def CompositeTwoDocs(srcDocFullName, dstDocFullName, compositeName): ''' srcDocFullName:源文档,里面含有需要替换的内容 dstDocFullName:目标文档,执行后,相关模板内容被替换 compositeName:替换的对象名,比如正面或背面 return: 成功->True,失败->False ''' try: srcDoc = Document(srcDocFullName) dstDoc = Do...
40.740741
101
0.538485
291
3,300
6.079038
0.312715
0.027134
0.044093
0.067835
0.394573
0.371962
0.336914
0.260034
0.172979
0.09723
0
0.021347
0.361212
3,300
81
102
40.740741
0.817837
0.068182
0
0.363636
0
0
0.078238
0.035503
0
0
0
0
0
1
0.015152
false
0
0.015152
0
0.060606
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12d0afe950ed445eb9f7e907ee14e9a851acd904
4,853
py
Python
app/cover.py
mrwiwi/tydom2mqtt
293322033b67521bb981af1c8c2245ca9af6c646
[ "MIT" ]
26
2020-04-07T17:58:24.000Z
2022-02-12T16:28:44.000Z
app/cover.py
mrwiwi/tydom2mqtt
293322033b67521bb981af1c8c2245ca9af6c646
[ "MIT" ]
19
2020-03-25T09:46:46.000Z
2021-11-29T09:55:57.000Z
app/cover.py
mrwiwi/tydom2mqtt
293322033b67521bb981af1c8c2245ca9af6c646
[ "MIT" ]
26
2020-04-27T21:40:12.000Z
2022-01-06T14:44:22.000Z
import json import time from datetime import datetime from sensors import sensor cover_command_topic = "cover/tydom/{id}/set_positionCmd" cover_config_topic = "homeassistant/cover/tydom/{id}/config" cover_position_topic = "cover/tydom/{id}/current_position" cover_set_postion_topic = "cover/tydom/{id}/set_position" cov...
37.914063
147
0.622708
575
4,853
5.024348
0.151304
0.045691
0.031153
0.029076
0.331603
0.28522
0.26722
0.199377
0.199377
0.143302
0
0.001675
0.261694
4,853
127
148
38.212598
0.804633
0.187307
0
0.083333
0
0
0.13466
0.056363
0
0
0
0
0
1
0.011905
false
0
0.047619
0
0.071429
0.059524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12d29fab22f07b19b231bdfe08bc053825594e45
56,823
py
Python
edx/config/lms/docker_run.py
openfun/learning-analytics-playground
dca80d89ca781d9060bd69927af4aa1462cc53ef
[ "MIT" ]
1
2021-12-13T09:05:59.000Z
2021-12-13T09:05:59.000Z
edx/config/lms/docker_run.py
openfun/learning-analytics-playground
dca80d89ca781d9060bd69927af4aa1462cc53ef
[ "MIT" ]
3
2021-05-18T08:26:51.000Z
2022-03-14T10:34:36.000Z
edx/config/lms/docker_run.py
openfun/learning-analytics-playground
dca80d89ca781d9060bd69927af4aa1462cc53ef
[ "MIT" ]
1
2021-06-03T14:21:56.000Z
2021-06-03T14:21:56.000Z
""" This is the default template for our main set of servers. This does NOT cover the content machines, which use content.py Common traits: * Use memcached, and cache-backed sessions * Use a MySQL 5.1 database """ # We intentionally define lots of variables that aren't used, and # want to import all variables from ba...
36.239158
140
0.724671
6,941
56,823
5.631033
0.172021
0.020954
0.029014
0.019829
0.174389
0.087553
0.045337
0.039504
0.031163
0.02799
0
0.003528
0.156961
56,823
1,567
141
36.262285
0.812375
0.209211
0
0.11326
0
0.001842
0.284187
0.138823
0
0
0
0.000638
0
1
0.001842
false
0.019337
0.017495
0
0.020258
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
12d6fdba24bc3c779da8bc89c659942cc66fb630
9,284
py
Python
cluster_toolkit/xi.py
jhod0/cluster_toolkit
b515b39fc4d0a17c19be4530a75d089d190f50cb
[ "MIT" ]
null
null
null
cluster_toolkit/xi.py
jhod0/cluster_toolkit
b515b39fc4d0a17c19be4530a75d089d190f50cb
[ "MIT" ]
6
2019-08-14T18:54:23.000Z
2019-09-19T22:10:42.000Z
cluster_toolkit/xi.py
jhod0/cluster_toolkit
b515b39fc4d0a17c19be4530a75d089d190f50cb
[ "MIT" ]
null
null
null
"""Correlation functions for matter and halos. """ import cluster_toolkit from cluster_toolkit import _ArrayWrapper, _handle_gsl_error import numpy as np def xi_nfw_at_r(r, M, c, Omega_m, delta=200): """NFW halo profile correlation function. Args: r (float or array like): 3d distances from halo cente...
40.190476
198
0.62193
1,324
9,284
4.243958
0.133686
0.043246
0.040577
0.054102
0.74782
0.69443
0.690692
0.664709
0.605446
0.585691
0
0.018228
0.273158
9,284
230
199
40.365217
0.814464
0.525743
0
0.397436
0
0
0.028398
0
0
0
0
0
0
1
0.102564
false
0
0.038462
0
0.24359
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
12d736e2a136d27d71bf7901bba9c44692b70118
1,500
py
Python
Tools/scripts/rgrep.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2015-05-21T23:47:54.000Z
2015-05-21T23:47:54.000Z
Tools/scripts/rgrep.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2015-10-29T20:51:31.000Z
2015-10-29T20:51:31.000Z
Tools/scripts/rgrep.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
#! /usr/bin/env python """Reverse grep. Usage: rgrep [-i] pattern file """ import sys import re import getopt def main(): bufsize = 64*1024 reflags = 0 opts, args = getopt.getopt(sys.argv[1:], "i") for o, a in opts: if o == '-i': reflags = reflags | re.IGNORECASE if len(args)...
23.076923
66
0.519333
196
1,500
3.913265
0.428571
0.031291
0.023468
0.026076
0.039113
0
0
0
0
0
0
0.02268
0.353333
1,500
64
67
23.4375
0.768041
0.044667
0
0.111111
0
0
0.080645
0
0
0
0
0
0
1
0.037037
false
0
0.055556
0
0.092593
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12d758ba9b3d6c5825fba951fa8141e8f0dd86e9
5,161
py
Python
licel_format_parser/main.py
IFAEControl/lidar-cli
02480ecd932cad1e11a04d866eb2eafc214f678d
[ "BSD-3-Clause" ]
null
null
null
licel_format_parser/main.py
IFAEControl/lidar-cli
02480ecd932cad1e11a04d866eb2eafc214f678d
[ "BSD-3-Clause" ]
null
null
null
licel_format_parser/main.py
IFAEControl/lidar-cli
02480ecd932cad1e11a04d866eb2eafc214f678d
[ "BSD-3-Clause" ]
null
null
null
import struct f = open("c0610400.102200", 'rb') class DateTime: def __init__(self): line = f.readline().strip() self._letter = chr(line[0]) self._year = line[1:3].decode("utf-8") self._month = int(chr(line[3]), 16) self._day = line[4:6].decode("utf-8") self._hour =...
33.083333
118
0.571207
683
5,161
4.087848
0.278184
0.087034
0.096705
0.100287
0.239613
0.179441
0.172278
0.153653
0.106375
0.106375
0
0.049907
0.273978
5,161
156
119
33.083333
0.695223
0.09223
0
0.192982
0
0.008772
0.079555
0
0
0
0
0
0
1
0.105263
false
0
0.008772
0.017544
0.219298
0.04386
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12d85c3f8e0b325f0104a7462f8c848f6627e0a1
7,073
py
Python
built-in/TensorFlow/Official/nlp/BertLarge_ID0634_for_TensorFlow2.X/bert/tf2_common/training/optimizer_v2modified.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Official/nlp/BertLarge_ID0634_for_TensorFlow2.X/bert/tf2_common/training/optimizer_v2modified.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/TensorFlow/Official/nlp/BertLarge_ID0634_for_TensorFlow2.X/bert/tf2_common/training/optimizer_v2modified.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.10119
88
0.713276
882
7,073
5.471655
0.281179
0.034811
0.052217
0.026523
0.215499
0.137588
0.127642
0.083299
0.02528
0.02528
0
0.00447
0.209246
7,073
167
89
42.353293
0.858394
0.344832
0
0.117647
0
0
0.079401
0.02505
0
0
0
0
0
1
0.070588
false
0
0.152941
0
0.317647
0.011765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12d9793b66d488d4aab6750551143953a771ab71
4,828
py
Python
src/data/utils.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/data/utils.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/data/utils.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
1
2021-08-19T15:21:50.000Z
2021-08-19T15:21:50.000Z
import os import errno import requests import glob import os import json from tqdm import tqdm from selenium import webdriver from selenium.webdriver.firefox.options import Options def make_sure_path_exists(path): try: os.makedirs(path) except OSError as exception: if exception.errno != er...
31.555556
94
0.570008
642
4,828
4.098131
0.211838
0.009122
0.042569
0.018624
0.224249
0.174078
0.155074
0.155074
0.133789
0.133789
0
0.006316
0.311309
4,828
152
95
31.763158
0.784962
0.01947
0
0.163934
0
0
0.039738
0
0
0
0
0.006579
0
1
0.139344
false
0
0.07377
0.02459
0.352459
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
12da373705e611aa87f9b708815df70bbd6ae325
14,870
py
Python
jocular/calibrator.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
6
2021-03-21T16:46:44.000Z
2021-11-27T14:07:06.000Z
jocular/calibrator.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
null
null
null
jocular/calibrator.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
null
null
null
''' Handles calibration library and calibration of subs. ''' import os.path import numpy as np from scipy.stats import trimboth from kivy.app import App from loguru import logger from kivy.properties import BooleanProperty, DictProperty, NumericProperty from kivy.core.window import Window from jocular.table import T...
39.028871
123
0.571688
1,952
14,870
4.266393
0.193135
0.012608
0.022695
0.007565
0.165706
0.137128
0.10879
0.103987
0.091258
0.07829
0
0.009504
0.313652
14,870
380
124
39.131579
0.806486
0.179758
0
0.143443
0
0
0.126713
0
0
0
0
0
0
1
0.061475
false
0
0.04918
0
0.213115
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12e061c5c6e2f04c0f2228f70f6bcd0e8dd58774
1,105
py
Python
genrl/environments/vec_env/utils.py
matrig/genrl
25eb018f18a9a1d0865c16e5233a2a7ccddbfd78
[ "MIT" ]
390
2020-05-03T17:34:02.000Z
2022-03-05T11:29:07.000Z
genrl/environments/vec_env/utils.py
matrig/genrl
25eb018f18a9a1d0865c16e5233a2a7ccddbfd78
[ "MIT" ]
306
2020-05-03T05:53:53.000Z
2022-03-12T00:27:28.000Z
genrl/environments/vec_env/utils.py
matrig/genrl
25eb018f18a9a1d0865c16e5233a2a7ccddbfd78
[ "MIT" ]
64
2020-05-05T20:23:30.000Z
2022-03-30T08:43:10.000Z
from typing import Tuple import torch class RunningMeanStd: """ Utility Function to compute a running mean and variance calculator :param epsilon: Small number to prevent division by zero for calculations :param shape: Shape of the RMS object :type epsilon: float :type shape: Tuple """ ...
28.333333
77
0.611765
142
1,105
4.619718
0.387324
0.068598
0.064024
0.045732
0.057927
0
0
0
0
0
0
0.011524
0.293213
1,105
38
78
29.078947
0.828425
0.19819
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
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
12e064fd8ee7774d0bfca223891f1c72e7cca90f
2,752
py
Python
releases/pota-windows-1.3-ai5.0.2.0/ae/aiPotaTemplate.py
sumitneup/pota
a1d7a59b5ca29813d8b7f3fa77cca0a47404b785
[ "MIT" ]
null
null
null
releases/pota-windows-1.3-ai5.0.2.0/ae/aiPotaTemplate.py
sumitneup/pota
a1d7a59b5ca29813d8b7f3fa77cca0a47404b785
[ "MIT" ]
null
null
null
releases/pota-windows-1.3-ai5.0.2.0/ae/aiPotaTemplate.py
sumitneup/pota
a1d7a59b5ca29813d8b7f3fa77cca0a47404b785
[ "MIT" ]
null
null
null
import mtoa.ui.ae.templates as templates import pymel.core as pm import maya.cmds as cmds import mtoa.ui.ae.utils as aeUtils class aiPotaTemplate(templates.AttributeTemplate): """ def filenameEditBokeh(self, mData) : attr = self.nodeAttr('aiBokehEXRPath') cmds.setAttr(attr,mData,type="string") ...
39.884058
135
0.673328
268
2,752
6.910448
0.492537
0.090713
0.064795
0.086393
0.167387
0.134989
0.053996
0.053996
0.053996
0.053996
0
0.003655
0.204578
2,752
69
136
39.884058
0.842394
0.388445
0
0
0
0
0.296329
0.019696
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.315789
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
12e2d80d29d4efd869955ca94be7cd962776dc80
811
py
Python
Algorithm/ShellSort/pyShellSort.py
commanderHR1/algorithms
d077364e8b08ae2b7b93bc01a73f622421086365
[ "MIT" ]
1
2020-07-17T20:49:55.000Z
2020-07-17T20:49:55.000Z
Algorithm/ShellSort/pyShellSort.py
commanderHR1/algorithms
d077364e8b08ae2b7b93bc01a73f622421086365
[ "MIT" ]
null
null
null
Algorithm/ShellSort/pyShellSort.py
commanderHR1/algorithms
d077364e8b08ae2b7b93bc01a73f622421086365
[ "MIT" ]
null
null
null
# Implementation of Shell Sort algorithm in Python def shellSort(arr): interval = 1 # Initializes interval while (interval < (len(arr) // 3)): interval = (interval * 3) + 1 while (interval > 0): for i in range(interval, len(arr)): # Select val to be inserted ...
26.16129
70
0.477189
94
811
4.117021
0.468085
0.093023
0.072351
0
0
0
0
0
0
0
0
0.027027
0.406905
811
30
71
27.033333
0.777547
0.199753
0
0
0
0
0.042056
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.058824
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12e533fd59ecf8d6a32514514fcb290ff13e6ec1
1,322
py
Python
main.py
kramrm/gcf-alerting-discord
c73d88520a783f9c4d12099bb8e21f03a950eebc
[ "MIT" ]
null
null
null
main.py
kramrm/gcf-alerting-discord
c73d88520a783f9c4d12099bb8e21f03a950eebc
[ "MIT" ]
null
null
null
main.py
kramrm/gcf-alerting-discord
c73d88520a783f9c4d12099bb8e21f03a950eebc
[ "MIT" ]
null
null
null
import base64 import json from webhook import post_webhook from datetime import datetime def hello_pubsub(event, context): """Triggered from a message on a Cloud Pub/Sub topic. Args: event (dict): Event payload. context (google.cloud.functions.Context): Metadata for the event. """ pubs...
38.882353
99
0.683812
159
1,322
5.572327
0.408805
0.06772
0.049661
0.049661
0.049661
0
0
0
0
0
0
0.018433
0.179274
1,322
33
100
40.060606
0.798157
0.23525
0
0
0
0
0.18845
0.046606
0
0
0
0
0
1
0.041667
false
0
0.166667
0
0.208333
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
12e5fe65e4d8ed7a4606ea760b1a56fc1a8485e1
6,226
py
Python
scripts/run-gmm.py
vr100/nfl-kaggle
74386b672ef4bb894bdf943df866855c4b555ede
[ "MIT" ]
null
null
null
scripts/run-gmm.py
vr100/nfl-kaggle
74386b672ef4bb894bdf943df866855c4b555ede
[ "MIT" ]
null
null
null
scripts/run-gmm.py
vr100/nfl-kaggle
74386b672ef4bb894bdf943df866855c4b555ede
[ "MIT" ]
null
null
null
import argparse, os, fnmatch, json, joblib import pandas as pd from sklearn.mixture import GaussianMixture from sklearn.metrics import adjusted_rand_score # Reference paper - https://arxiv.org/abs/1906.11373 # "Unsupervised Methods for Identifying Pass Coverage Among Defensive Backs with NFL Player Tracking Data" STA...
32.092784
106
0.734661
978
6,226
4.370143
0.184049
0.028077
0.021058
0.016846
0.30627
0.199813
0.136172
0.096397
0.091249
0.073467
0
0.00518
0.131866
6,226
193
107
32.259067
0.785569
0.048346
0
0.09697
0
0
0.124514
0.003548
0
0
0
0
0
1
0.042424
false
0
0.024242
0
0.09697
0.054545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12e82d4517d5644cd0b40eba9d476a8a70aa842c
5,806
py
Python
django/bossingest/test/test_ingest_manager.py
jhuapl-boss/boss
c2e26d272bd7b8d54abdc2948193163537e31291
[ "Apache-2.0" ]
20
2016-05-16T21:08:13.000Z
2021-11-16T11:50:19.000Z
django/bossingest/test/test_ingest_manager.py
jhuapl-boss/boss
c2e26d272bd7b8d54abdc2948193163537e31291
[ "Apache-2.0" ]
31
2016-10-28T17:51:11.000Z
2022-02-10T08:07:31.000Z
django/bossingest/test/test_ingest_manager.py
jhuapl-boss/boss
c2e26d272bd7b8d54abdc2948193163537e31291
[ "Apache-2.0" ]
12
2016-10-28T17:47:01.000Z
2021-05-18T23:47:06.000Z
# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory # # 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 ...
40.887324
110
0.707544
778
5,806
5.023136
0.235219
0.08956
0.116428
0.080604
0.492323
0.423234
0.35261
0.35261
0.319857
0.319857
0
0.007595
0.206338
5,806
141
111
41.177305
0.840495
0.180847
0
0.336957
0
0
0.033484
0
0
0
0
0
0.326087
1
0.108696
false
0.01087
0.130435
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12e8353d99830242965335f0aba978e3cb0ab443
5,505
py
Python
sanic_devtools/log.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
12
2019-09-06T05:14:46.000Z
2022-02-17T09:26:38.000Z
sanic_devtools/log.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
null
null
null
sanic_devtools/log.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
1
2019-09-10T03:57:21.000Z
2019-09-10T03:57:21.000Z
import json import logging import logging.config import platform import re import traceback from io import StringIO import pygments from devtools import pformat from devtools.ansi import isatty, sformat from pygments.formatters import Terminal256Formatter from pygments.lexers import Python3TracebackLexer rs_dft_logge...
31.820809
101
0.547502
542
5,505
5.400369
0.273063
0.027332
0.039973
0.050222
0.2822
0.224462
0.206013
0.121968
0.121968
0.055347
0
0.002959
0.324614
5,505
172
102
32.005814
0.784293
0.053588
0
0.262069
0
0
0.169439
0.05648
0
0
0
0
0
1
0.055172
false
0
0.082759
0
0.213793
0.006897
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12e86cadd6eb11b7a84bc77642dccfd6d3f1bfb4
1,893
py
Python
rest_fhir/mixins/conditional_read.py
weynelucas/django-rest-fhir
560a0aadd0cfa43b6dc58f995c86015f6eefb768
[ "MIT" ]
2
2021-05-07T12:16:27.000Z
2021-12-16T20:45:36.000Z
rest_fhir/mixins/conditional_read.py
weynelucas/django-rest-fhir
560a0aadd0cfa43b6dc58f995c86015f6eefb768
[ "MIT" ]
3
2021-05-10T19:40:33.000Z
2021-06-27T14:24:47.000Z
rest_fhir/mixins/conditional_read.py
weynelucas/django-rest-fhir
560a0aadd0cfa43b6dc58f995c86015f6eefb768
[ "MIT" ]
1
2021-08-09T22:00:22.000Z
2021-08-09T22:00:22.000Z
import calendar from typing import Union import dateutil.parser from rest_framework import status from rest_framework.response import Response from django.utils.cache import get_conditional_response from django.utils.http import http_date from ..models import Resource, ResourceVersion FhirResource = Union[Resource,...
29.578125
73
0.663497
224
1,893
5.428571
0.34375
0.098684
0.052632
0.037829
0.0625
0.0625
0.0625
0
0
0
0
0.002819
0.250396
1,893
63
74
30.047619
0.854123
0.082409
0
0
0
0
0.029446
0
0
0
0
0
0
1
0.113636
false
0
0.181818
0.022727
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12e90bbcd25c813026449118e104295e2d5b4d7b
803
py
Python
code_week27_1026_111/sort_colors.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week27_1026_111/sort_colors.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week27_1026_111/sort_colors.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
''' 给定一个包含红色、白色和蓝色,一共 n 个元素的数组,原地对它们进行排序,使得相同颜色的元素相邻,并按照红色、白色、蓝色顺序排列。 此题中,我们使用整数 0、 1 和 2 分别表示红色、白色和蓝色。 注意: 不能使用代码库中的排序函数来解决这道题。 示例: 输入: [2,0,2,1,1,0] 输出: [0,0,1,1,2,2] 进阶: 一个直观的解决方案是使用计数排序的两趟扫描算法。 首先,迭代计算出0、1 和 2 元素的个数,然后按照0、1、2的排序,重写当前数组。 你能想出一个仅使用常数空间的一趟扫描算法吗? 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problem...
21.131579
65
0.554172
121
803
3.677686
0.528926
0.067416
0.098876
0.049438
0.125843
0.125843
0.125843
0.125843
0.125843
0.125843
0
0.045614
0.290162
803
37
66
21.702703
0.735088
0.476961
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
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
0
0
0
0
0
1
0
12ea0884e04ad5410800ee3a274f85dcb7596112
363
py
Python
solutions/lowest_common_ancestor_deepest_leaves/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/lowest_common_ancestor_deepest_leaves/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/lowest_common_ancestor_deepest_leaves/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
from .solution import lcaDeepestLeaves from ..utils import TreeNode print('Enter tree, e.g. [2,3,1,3,1,null,1]:', end=' ') nodes = [int(node) if node != 'null' else None for node in input().strip().split(',')] root = TreeNode.fromList(nodes) lowestCommonAncestor = lcaDeepestLeaves(root) print(f'The lowest common anc...
36.3
86
0.721763
51
363
5.137255
0.72549
0.015267
0
0
0
0
0
0
0
0
0
0.018634
0.112948
363
10
87
36.3
0.795031
0
0
0
0
0.142857
0.285714
0.085165
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12ea961825e76ebc83c3a72ff0731af4a86af12d
2,472
py
Python
code/python3/index_values_with_geo.py
jaylett/xapian-docsprint
2e8fdffecf71f7042c0abe49924ba48c11818b7e
[ "MIT" ]
47
2015-01-20T15:38:41.000Z
2022-02-15T21:03:50.000Z
code/python3/index_values_with_geo.py
jaylett/xapian-docsprint
2e8fdffecf71f7042c0abe49924ba48c11818b7e
[ "MIT" ]
16
2015-06-09T16:12:50.000Z
2020-02-05T06:40:18.000Z
code/python3/index_values_with_geo.py
jaylett/xapian-docsprint
2e8fdffecf71f7042c0abe49924ba48c11818b7e
[ "MIT" ]
56
2015-01-20T15:38:44.000Z
2022-03-03T18:13:39.000Z
#!/usr/bin/env python import json from support import parse_states import sys import xapian def index(datapath, dbpath): # Create or open the database we're going to be writing to. db = xapian.WritableDatabase(dbpath, xapian.DB_CREATE_OR_OPEN) # Set up a TermGenerator that we'll use in indexing. term...
35.314286
74
0.644013
325
2,472
4.821538
0.4
0.034461
0.084237
0.01404
0.089343
0.089343
0
0
0
0
0
0.007019
0.250809
2,472
69
75
35.826087
0.839093
0.248786
0
0.047619
0
0
0.050626
0
0
0
0
0
0
1
0.02381
false
0
0.095238
0
0.119048
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12eab71a1efede1b96f0100790956e17f9d9393a
1,265
py
Python
logger.py
drewstone/dynamic-governanceq
924317800db7bca6308ff912b16c7b834ab30e32
[ "MIT" ]
null
null
null
logger.py
drewstone/dynamic-governanceq
924317800db7bca6308ff912b16c7b834ab30e32
[ "MIT" ]
null
null
null
logger.py
drewstone/dynamic-governanceq
924317800db7bca6308ff912b16c7b834ab30e32
[ "MIT" ]
null
null
null
import constants def init(mode, gov, agents): if mode == constants.DEBUG_LOGGING or mode == constants.LOG_INIT: print("Agents = {}".format( list(map(lambda agent: agent.capacity, agents)))) print("Starting param: {}".format(gov.param)) def round(mode, round, gov, throughput): if ...
36.142857
74
0.554941
144
1,265
4.777778
0.3125
0.151163
0.087209
0.116279
0.399709
0.363372
0.363372
0.363372
0.261628
0
0
0.00226
0.300395
1,265
34
75
37.205882
0.775141
0
0
0
0
0
0.12253
0
0
0
0
0
0
1
0.153846
false
0
0.038462
0
0.192308
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12ed7f2619866ebbd758994ab5e6290f518e72e4
6,608
py
Python
tests/test_providers.py
thejoeejoee/django-allauth-cas
5db34b546eb32524a3a1a4b90f411e370ac7ad9b
[ "MIT" ]
null
null
null
tests/test_providers.py
thejoeejoee/django-allauth-cas
5db34b546eb32524a3a1a4b90f411e370ac7ad9b
[ "MIT" ]
null
null
null
tests/test_providers.py
thejoeejoee/django-allauth-cas
5db34b546eb32524a3a1a4b90f411e370ac7ad9b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from six.moves.urllib.parse import urlencode from django.contrib import messages from django.contrib.messages.api import get_messages from django.contrib.messages.middleware import MessageMiddleware from django.contrib.messages.storage.base import Message from django.contrib.sessions.middleware...
32.875622
79
0.623033
699
6,608
5.655222
0.227468
0.054642
0.058184
0.04427
0.553251
0.471035
0.461169
0.316216
0.267139
0.220592
0
0.017656
0.262863
6,608
200
80
33.04
0.793882
0.0171
0
0.303797
0
0.012658
0.16494
0.091823
0
0
0
0
0.113924
1
0.094937
false
0
0.063291
0
0.170886
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
12ee13303b7604822dba3ba0cf7479d1d2caaf67
4,477
py
Python
selenium_utils/element.py
defactto/selenium-utils
d3a71f3baaaa0da29e3b1ab869f8c685ea5d1b42
[ "Apache-2.0" ]
7
2016-08-24T20:29:47.000Z
2020-01-29T13:59:03.000Z
selenium_utils/element.py
defactto/selenium-utils
d3a71f3baaaa0da29e3b1ab869f8c685ea5d1b42
[ "Apache-2.0" ]
null
null
null
selenium_utils/element.py
defactto/selenium-utils
d3a71f3baaaa0da29e3b1ab869f8c685ea5d1b42
[ "Apache-2.0" ]
1
2020-01-06T18:41:15.000Z
2020-01-06T18:41:15.000Z
import logging import time from selenium.common import exceptions from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.common import action_chains from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from selenium_utils i...
29.071429
100
0.691311
529
4,477
5.674858
0.287335
0.058628
0.031979
0.065956
0.303797
0.263491
0.243504
0.181546
0.181546
0.16489
0
0.004556
0.215546
4,477
153
101
29.261438
0.850228
0.280992
0
0.264706
0
0
0.024137
0.010057
0
0
0
0
0
1
0.176471
false
0
0.117647
0
0.397059
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
12ee5dcab405211321c77a37855a79013c17587c
1,421
py
Python
modules/iib_applications.py
satbel/ib-metrics-pyclient
1670df55684a7182884fcfc777fde5ae44095f8f
[ "MIT" ]
null
null
null
modules/iib_applications.py
satbel/ib-metrics-pyclient
1670df55684a7182884fcfc777fde5ae44095f8f
[ "MIT" ]
null
null
null
modules/iib_applications.py
satbel/ib-metrics-pyclient
1670df55684a7182884fcfc777fde5ae44095f8f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Various functions for ib applications.""" from modules.iib_api import get_status def get_metric_name(metric_label): """Returns pushgateway formatted metric name.""" return 'ib_application_{0}'.format(metric_label) def get_metric_annotation(): """Returns dictionary with annotat...
36.435897
98
0.64532
174
1,421
5.022989
0.33908
0.072082
0.074371
0.043478
0.085812
0
0
0
0
0
0
0.013405
0.212526
1,421
38
99
37.394737
0.76765
0.18297
0
0
0
0
0.114035
0.021053
0
0
0
0
0
1
0.111111
false
0
0.037037
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
12f0e1426999717b706caac8906a3500e72dc344
1,366
py
Python
clock.py
hcjk/kitchen-bot
5122101ed840b6bdf0b56d3c154de083cb793eda
[ "MIT" ]
null
null
null
clock.py
hcjk/kitchen-bot
5122101ed840b6bdf0b56d3c154de083cb793eda
[ "MIT" ]
null
null
null
clock.py
hcjk/kitchen-bot
5122101ed840b6bdf0b56d3c154de083cb793eda
[ "MIT" ]
1
2019-06-10T01:25:49.000Z
2019-06-10T01:25:49.000Z
import os import requests import psycopg2 import db_lib as db from app import send_message, log from apscheduler.schedulers.blocking import BlockingScheduler DATABASE_URL = os.environ['DATABASE_URL'] conn = psycopg2.connect(DATABASE_URL, sslmode='require') def kitchen_reminder(): # fetch current status status = d...
23.964912
82
0.732064
188
1,366
5.239362
0.473404
0.04467
0.033503
0.04467
0
0
0
0
0
0
0
0.013877
0.15593
1,366
56
83
24.392857
0.840416
0.129575
0
0.147059
0
0
0.168501
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.323529
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