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
f420c7cad07b73b890ce9019d4a200470cb1bcbf
948
py
Python
scrapy_framework/midwares/download_midware.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
scrapy_framework/midwares/download_midware.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
scrapy_framework/midwares/download_midware.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
from scrapy_framework.html.request import Request from scrapy_framework.html.response import Response import random def get_ua(): first_num=random.randint(55,69) third_num=random.randint(0,3200) forth_num=random.randint(0, 140) os_type = [ '(Windows NT 6.1; WOW64)', '(Windows NT 10.0; WOW64)...
28.727273
85
0.635021
124
948
4.701613
0.516129
0.046312
0.082333
0.078902
0
0
0
0
0
0
0
0.062928
0.228903
948
33
86
28.727273
0.73461
0
0
0
0
0
0.200211
0
0
0
0
0
0
1
0.125
false
0
0.125
0.041667
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f420caa0d727e8d433f67df3503f8152d7e6f2e7
2,294
py
Python
tracardi/process_engine/action/v1/pro/scheduler/plugin.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
null
null
null
tracardi/process_engine/action/v1/pro/scheduler/plugin.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
null
null
null
tracardi/process_engine/action/v1/pro/scheduler/plugin.py
bytepl/tracardi
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
[ "MIT" ]
null
null
null
from pydantic import BaseModel from tracardi.domain.entity import Entity from tracardi.domain.scheduler_config import SchedulerConfig from tracardi.domain.resource import ResourceCredentials from tracardi.service.storage.driver import storage from tracardi.service.plugin.runner import ActionRunner from tracardi.servic...
29.792208
117
0.610724
215
2,294
6.455814
0.446512
0.060519
0.054755
0.054035
0.092219
0.04755
0
0
0
0
0
0.003051
0.285527
2,294
76
118
30.184211
0.843807
0.009154
0
0.032258
0
0
0.111845
0.023778
0
0
0
0
0
1
0.048387
false
0
0.129032
0.032258
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4211dfd13f13cb0b576625ee36371455d4c829c
568
py
Python
tests/test_covid_daily.py
alvarobartt/covid-daily
cb4506a007ac206e85409a13281028f6f82441a6
[ "MIT" ]
13
2020-05-23T12:25:04.000Z
2021-12-09T04:56:06.000Z
tests/test_covid_daily.py
alvarobartt/covid-daily
cb4506a007ac206e85409a13281028f6f82441a6
[ "MIT" ]
6
2020-06-02T12:18:12.000Z
2021-06-20T07:59:11.000Z
tests/test_covid_daily.py
alvarobartt/covid-daily
cb4506a007ac206e85409a13281028f6f82441a6
[ "MIT" ]
5
2020-07-02T16:48:19.000Z
2022-03-21T01:52:17.000Z
# Copyright 2020 Alvaro Bartolome, alvarobartt @ GitHub # See LICENSE for details. import pytest import covid_daily def test_overview(): params = [ { 'as_json': True }, { 'as_json': False } ] for param in params: covid_daily.overview(as_js...
15.777778
55
0.568662
63
568
4.809524
0.555556
0.09901
0.072607
0
0
0
0
0
0
0
0
0.010363
0.320423
568
35
56
16.228571
0.774611
0.137324
0
0
0
0
0.10883
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.173913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4214fc3ae97e545eaf80e0585a829da218ecbdc
6,132
py
Python
2021/HANFS/fence-agents/fence/agents/zvm/fence_zvmip.py
BryanWhitehurst/HPCCEA
54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa
[ "MIT" ]
10
2019-08-12T23:00:20.000Z
2021-08-06T17:06:48.000Z
2021/HANFS/fence-agents/fence/agents/zvm/fence_zvmip.py
BryanWhitehurst/HPCCEA
54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa
[ "MIT" ]
5
2020-06-18T23:51:58.000Z
2021-07-28T17:50:34.000Z
2021/HANFS/fence-agents/fence/agents/zvm/fence_zvmip.py
BryanWhitehurst/HPCCEA
54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa
[ "MIT" ]
21
2019-06-10T21:03:03.000Z
2021-08-06T17:57:25.000Z
#!@PYTHON@ -tt import sys import atexit import socket import struct import logging sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * from fencing import fail, fail_usage, run_delay, EC_LOGIN_DENIED, EC_TIMED_OUT #BEGIN_VERSION_GENERATION RELEASE_VERSION="" REDHAT_COPYRIGHT="" BUILD_DATE="" #END_VERSION_GEN...
31.285714
139
0.693575
867
6,132
4.681661
0.276817
0.032028
0.039419
0.049273
0.268785
0.219266
0.138458
0.107416
0.083764
0.083764
0
0.01276
0.169276
6,132
195
140
31.446154
0.78406
0.033594
0
0.163265
0
0.013605
0.258996
0
0
0
0
0
0
1
0.047619
false
0.027211
0.047619
0.006803
0.163265
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f422b787a305cf7e7c9786d86bf5d8569355733a
5,889
py
Python
fastestimator/architecture/pytorch/unet.py
DwijayDS/fastestimator
9b288cb2bd870f971ec4cee09d0b3205e1316a94
[ "Apache-2.0" ]
57
2019-05-21T21:29:26.000Z
2022-02-23T05:55:21.000Z
fastestimator/architecture/pytorch/unet.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
93
2019-05-23T18:36:07.000Z
2022-03-23T17:15:55.000Z
fastestimator/architecture/pytorch/unet.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
47
2019-05-09T15:41:37.000Z
2022-03-26T17:00:08.000Z
# Copyright 2019 The FastEstimator 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 appl...
43.301471
110
0.609611
779
5,889
4.450578
0.245186
0.050764
0.018171
0.022209
0.419383
0.398616
0.364869
0.345255
0.323911
0.319873
0
0.042598
0.278485
5,889
135
111
43.622222
0.773358
0.268127
0
0.302632
0
0
0.033761
0
0
0
0
0
0
1
0.092105
false
0
0.065789
0.013158
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f422e0910bbd8a7ecf986379f467205dc93f05c0
5,660
py
Python
generalfile/path.py
Mandera/generalfile
5e476a1c075fa072c7e52e62455feeb78b9bb298
[ "MIT" ]
null
null
null
generalfile/path.py
Mandera/generalfile
5e476a1c075fa072c7e52e62455feeb78b9bb298
[ "MIT" ]
null
null
null
generalfile/path.py
Mandera/generalfile
5e476a1c075fa072c7e52e62455feeb78b9bb298
[ "MIT" ]
null
null
null
import pathlib import os from generallibrary import VerInfo, TreeDiagram, Recycle, classproperty, deco_cache from generalfile.errors import InvalidCharacterError from generalfile.path_lock import Path_ContextManager from generalfile.path_operations import Path_Operations from generalfile.path_strings import Path_St...
28.3
137
0.649117
714
5,660
4.879552
0.221289
0.108496
0.040184
0.056257
0.276119
0.211538
0.153559
0.058266
0
0
0
0.004968
0.25318
5,660
199
138
28.442211
0.819257
0.069258
0
0.160714
0
0.008929
0.083913
0.0058
0
0
0
0.005025
0
1
0.160714
false
0
0.098214
0.071429
0.464286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4244d996a4c380f34dcf151872e78afdd5ea5e0
7,569
py
Python
src/model/model.py
kwasnydam/animal_disambiguation
1dba0a2f40ca952a3adab925ff9ef54238cf7c1c
[ "MIT" ]
null
null
null
src/model/model.py
kwasnydam/animal_disambiguation
1dba0a2f40ca952a3adab925ff9ef54238cf7c1c
[ "MIT" ]
5
2020-03-24T17:52:45.000Z
2021-08-23T20:28:40.000Z
src/model/model.py
kwasnydam/animal_disambiguation
1dba0a2f40ca952a3adab925ff9ef54238cf7c1c
[ "MIT" ]
null
null
null
"""Contains the classification model I am going to use in my problem and some utility functions. Functions build_mmdisambiguator - build the core application object with the collaborators info Classes MMDisambiguator - core class of the application """ import pickle import os import numpy as np from sklearn....
39.836842
118
0.680011
821
7,569
6.109622
0.2838
0.044856
0.018142
0.026914
0.086922
0.036683
0.023923
0.023923
0.023923
0
0
0.002451
0.245343
7,569
189
119
40.047619
0.8757
0.337561
0
0.111111
0
0
0.08535
0
0
0
0
0
0
1
0.10101
false
0.010101
0.060606
0
0.282828
0.020202
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f425ac3324f9ff67c7cc522a90e36c4d71da699a
2,848
py
Python
v0.5.0/nvidia/submission/code/recommendation/pytorch/load.py
myelintek/results
11c38436a158c453e3011f8684570f7a55c03330
[ "Apache-2.0" ]
44
2018-11-07T18:52:33.000Z
2019-07-06T12:48:18.000Z
v0.5.0/nvidia/submission/code/recommendation/pytorch/load.py
myelintek/results
11c38436a158c453e3011f8684570f7a55c03330
[ "Apache-2.0" ]
12
2018-12-13T18:04:36.000Z
2019-06-14T20:49:33.000Z
v0.5.0/nvidia/submission/code/recommendation/pytorch/load.py
myelintek/results
11c38436a158c453e3011f8684570f7a55c03330
[ "Apache-2.0" ]
44
2018-11-09T21:04:52.000Z
2019-06-24T07:40:28.000Z
# Copyright (c) 2018, deepakn94. 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 law ...
34.313253
78
0.670997
370
2,848
5.035135
0.364865
0.032206
0.061728
0.072464
0.303811
0.290929
0.271068
0.271068
0.271068
0.193773
0
0.007836
0.193469
2,848
82
79
34.731707
0.803222
0.201194
0
0.234043
0
0
0.156568
0
0
0
0
0
0
1
0.170213
false
0
0.042553
0
0.382979
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f427c8d1c78db5257b6c365066dd8f7483686e6c
10,390
py
Python
hummingbot/client/command/history_command.py
sanchaymittal/hummingbot
f8d1c19dfd0875bd12717f9c46ddbe20cc7b9a0d
[ "Apache-2.0" ]
null
null
null
hummingbot/client/command/history_command.py
sanchaymittal/hummingbot
f8d1c19dfd0875bd12717f9c46ddbe20cc7b9a0d
[ "Apache-2.0" ]
null
null
null
hummingbot/client/command/history_command.py
sanchaymittal/hummingbot
f8d1c19dfd0875bd12717f9c46ddbe20cc7b9a0d
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal import pandas as pd from typing import ( Any, Dict, Set, Tuple, TYPE_CHECKING) from hummingbot.client.performance_analysis import PerformanceAnalysis from hummingbot.core.utils.exchange_rate_conversion import ExchangeRateConversion from hummingbot.market.market_base impo...
52.474747
123
0.624254
1,104
10,390
5.564312
0.171196
0.062673
0.066417
0.039394
0.278528
0.21846
0.159206
0.148462
0.105486
0.091161
0
0.002995
0.292974
10,390
197
124
52.741117
0.833243
0.062368
0
0.135802
0
0
0.099815
0.02305
0
0
0
0
0
1
0.049383
false
0
0.049383
0
0.160494
0.04321
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f427f297c82ca0ccff892cae6ccdb0651100e3ef
3,271
py
Python
scripts/bin2asm.py
sami2316/asm2vec-pytorch
5de1351aeda61d7467b3231e48437fd8d34a970c
[ "MIT" ]
null
null
null
scripts/bin2asm.py
sami2316/asm2vec-pytorch
5de1351aeda61d7467b3231e48437fd8d34a970c
[ "MIT" ]
null
null
null
scripts/bin2asm.py
sami2316/asm2vec-pytorch
5de1351aeda61d7467b3231e48437fd8d34a970c
[ "MIT" ]
null
null
null
import re import os import click import r2pipe import hashlib from pathlib import Path import _pickle as cPickle def sha3(data): return hashlib.sha3_256(data.encode()).hexdigest() def validEXE(filename): magics = [bytes.fromhex('7f454c46')] with open(filename, 'rb') as f: header = f.read(4) ...
26.811475
123
0.566188
436
3,271
4.213303
0.33945
0.022863
0.017964
0.019597
0.068046
0.033206
0.033206
0.033206
0.033206
0.033206
0
0.013971
0.277897
3,271
121
124
27.033058
0.76376
0.059309
0
0.081395
0
0
0.175025
0.027532
0
0
0
0
0.011628
1
0.069767
false
0
0.081395
0.011628
0.244186
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4284681ecf92df1bb97ccccca1bcb0558c6d8a3
1,763
py
Python
LazyAngus/Assets/Extensions/IOSDeploy/Scripts/Editor/post_process.py
DougLazyAngus/lazyAngus
485a8d5061ab740ab055abfc7fc5b86b864a5c7e
[ "Apache-2.0" ]
null
null
null
LazyAngus/Assets/Extensions/IOSDeploy/Scripts/Editor/post_process.py
DougLazyAngus/lazyAngus
485a8d5061ab740ab055abfc7fc5b86b864a5c7e
[ "Apache-2.0" ]
null
null
null
LazyAngus/Assets/Extensions/IOSDeploy/Scripts/Editor/post_process.py
DougLazyAngus/lazyAngus
485a8d5061ab740ab055abfc7fc5b86b864a5c7e
[ "Apache-2.0" ]
null
null
null
import os from sys import argv from mod_pbxproj import XcodeProject #import appcontroller path = argv[1] frameworks = argv[2].split(' ') libraries = argv[3].split(' ') cflags = argv[4].split(' ') ldflags = argv[5].split(' ') folders = argv[6].split(' ') print('Step 1: add system frameworks ') #if...
29.383333
94
0.608622
242
1,763
4.355372
0.301653
0.066414
0.053131
0.037951
0.314991
0.297913
0.248577
0.248577
0.248577
0.16129
0
0.018954
0.251843
1,763
59
95
29.881356
0.780136
0.0346
0
0.125
0
0
0.195003
0.055454
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4299097184e1727c715f499e066d9e69de9e523
26,771
py
Python
src/badge_hub.py
stottlerhenke-seattle/openbadge-hub-py
d0eb1772eb1250862041cc50071252f46d4c4771
[ "MIT" ]
null
null
null
src/badge_hub.py
stottlerhenke-seattle/openbadge-hub-py
d0eb1772eb1250862041cc50071252f46d4c4771
[ "MIT" ]
null
null
null
src/badge_hub.py
stottlerhenke-seattle/openbadge-hub-py
d0eb1772eb1250862041cc50071252f46d4c4771
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, division, print_function import os import re import shlex import subprocess import signal import csv import logging import json import time from datetime import datetime as dt from requests.exceptions import RequestException import glob import traceback i...
38.298999
121
0.614956
3,289
26,771
4.812709
0.156279
0.020216
0.018574
0.018005
0.422579
0.347084
0.281825
0.23836
0.194264
0.173669
0
0.005378
0.277651
26,771
698
122
38.353868
0.813166
0.128273
0
0.288747
0
0.010616
0.18649
0.009576
0
0
0
0.001433
0
1
0.053079
false
0.004246
0.053079
0.002123
0.144374
0.025478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f42aede445a90e085482590f47cc1c5cb9b7e7e5
5,215
py
Python
local_search/sat_isfayer.py
arnaubena97/SatSolver-sat_isfayer
db7edc83547786deb7bf6b1c5d75b406f877ca15
[ "MIT" ]
null
null
null
local_search/sat_isfayer.py
arnaubena97/SatSolver-sat_isfayer
db7edc83547786deb7bf6b1c5d75b406f877ca15
[ "MIT" ]
null
null
null
local_search/sat_isfayer.py
arnaubena97/SatSolver-sat_isfayer
db7edc83547786deb7bf6b1c5d75b406f877ca15
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import random def read_file(file_name): """File reader and parser the num of variables, num of clauses and put the clauses in a list""" clauses =[] with open(file_name) as all_file: for line in all_file: if line.startswith('c'): continue #ignore comment...
36.985816
100
0.607095
649
5,215
4.694915
0.217257
0.039383
0.026255
0.041024
0.09255
0.043978
0.026255
0.026255
0
0
0
0.014982
0.296069
5,215
140
101
37.25
0.815037
0.210163
0
0.032258
0
0
0.017771
0
0
0
0
0
0
1
0.129032
false
0
0.021505
0
0.247312
0.053763
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f42c89b9ad4a67ef2088d23901ec3eee27d8dfed
1,426
py
Python
sparse_causal_model_learner_rl/annealer/threshold_projection.py
sergeivolodin/causality-disentanglement-rl
5a41b4a2e3d85fa7e9c8450215fdc6cf954df867
[ "CC0-1.0" ]
2
2020-12-11T05:26:24.000Z
2021-04-21T06:12:58.000Z
sparse_causal_model_learner_rl/annealer/threshold_projection.py
sergeivolodin/causality-disentanglement-rl
5a41b4a2e3d85fa7e9c8450215fdc6cf954df867
[ "CC0-1.0" ]
9
2020-04-30T16:29:50.000Z
2021-03-26T07:32:18.000Z
sparse_causal_model_learner_rl/annealer/threshold_projection.py
sergeivolodin/causality-disentanglement-rl
5a41b4a2e3d85fa7e9c8450215fdc6cf954df867
[ "CC0-1.0" ]
null
null
null
import gin import torch import logging from sparse_causal_model_learner_rl.metrics import find_value, find_key @gin.configurable def ProjectionThreshold(config, config_object, epoch_info, temp, adjust_every=100, metric_threshold=0.5, delta=0.5, source_metric_key=None, min_hyper=0, max_hyper=100...
32.409091
108
0.670407
180
1,426
5.022222
0.355556
0.139381
0.159292
0.076327
0.176991
0
0
0
0
0
0
0.011851
0.230715
1,426
43
109
33.162791
0.812215
0
0
0.060606
0
0
0.224873
0.080983
0
0
0
0
0.030303
1
0.030303
false
0
0.121212
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f42cd1526653837e6ebdebb62cc32ac0a5f88b7c
15,684
py
Python
numpyro/contrib/control_flow/scan.py
ucals/numpyro
566a5311d660d28a630188063c03a018165a38a9
[ "Apache-2.0" ]
2
2021-01-10T06:27:51.000Z
2021-01-10T06:27:55.000Z
numpyro/contrib/control_flow/scan.py
ucals/numpyro
566a5311d660d28a630188063c03a018165a38a9
[ "Apache-2.0" ]
null
null
null
numpyro/contrib/control_flow/scan.py
ucals/numpyro
566a5311d660d28a630188063c03a018165a38a9
[ "Apache-2.0" ]
1
2020-12-23T13:27:39.000Z
2020-12-23T13:27:39.000Z
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 from collections import OrderedDict from functools import partial from jax import lax, random, tree_flatten, tree_map, tree_multimap, tree_unflatten import jax.numpy as jnp from jax.tree_util import register_pytree_node_class from nu...
44.939828
116
0.605011
2,129
15,684
4.310005
0.196806
0.018963
0.007847
0.009154
0.221774
0.170445
0.133936
0.106037
0.092524
0.080209
0
0.009539
0.291507
15,684
348
117
45.068966
0.816235
0.389378
0
0.16
0
0
0.072103
0
0
0
0
0.002874
0.005714
1
0.057143
false
0
0.062857
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f42e0214aa8abe8fa4ef98083bd64acd6f94ca90
1,245
py
Python
e2xgrader/preprocessors/overwritecells.py
divindevaiah/e2xgrader
19eb4662e4eee5ddef673097517e4bd4fb469e62
[ "MIT" ]
2
2021-10-02T10:48:47.000Z
2022-03-02T14:00:48.000Z
e2xgrader/preprocessors/overwritecells.py
divindevaiah/e2xgrader
19eb4662e4eee5ddef673097517e4bd4fb469e62
[ "MIT" ]
70
2020-10-23T16:42:01.000Z
2022-03-14T16:33:54.000Z
e2xgrader/preprocessors/overwritecells.py
divindevaiah/e2xgrader
19eb4662e4eee5ddef673097517e4bd4fb469e62
[ "MIT" ]
10
2020-11-22T16:36:16.000Z
2022-03-02T15:51:24.000Z
import json from nbformat.notebooknode import NotebookNode from nbconvert.exporters.exporter import ResourcesDict from typing import Tuple from nbgrader.api import MissingEntry from nbgrader.preprocessors import OverwriteCells as NbgraderOverwriteCells from ..utils.extra_cells import is_singlechoice, is_multiplechoi...
35.571429
75
0.706024
142
1,245
6.035211
0.415493
0.049008
0.066511
0
0
0
0
0
0
0
0
0
0.219277
1,245
34
76
36.617647
0.881687
0
0
0.115385
0
0
0.053012
0
0
0
0
0
0
1
0.038462
false
0
0.269231
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f42ea50cd75ed3588bee01251935be095b9cd852
9,261
py
Python
tools/pdf2txt.py
ehtec/pdfminer.six
5b1823f25ab998e904fc5d81687732580f23e3b9
[ "MIT" ]
null
null
null
tools/pdf2txt.py
ehtec/pdfminer.six
5b1823f25ab998e904fc5d81687732580f23e3b9
[ "MIT" ]
1
2022-01-31T22:58:07.000Z
2022-01-31T22:58:07.000Z
tools/pdf2txt.py
phantomcyber/pdfminer.six
e35a9319a6ae5d310f08f07a5edf16aadc529c1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """A command line tool for extracting text and images from PDF and output it to plain text, html, xml or tags.""" import argparse import logging import sys from typing import Any, Container, Iterable, List, Optional import pdfminer.high_level from pdfminer.layout import LAParams from pdfminer.ut...
41.34375
85
0.632005
1,188
9,261
4.781145
0.239899
0.052289
0.035915
0.021127
0.250352
0.173415
0.129577
0.085563
0.056338
0.044366
0
0.002758
0.25602
9,261
223
86
41.529148
0.821626
0.022568
0
0.145078
0
0
0.341442
0.002322
0
0
0
0
0
1
0.020725
false
0.020725
0.036269
0
0.082902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f42eca67de3f090707cbdfd6324c3cd84ee5458f
2,757
py
Python
nython/nythonize.py
agungnasik57/nython
cf499fe20f86e2685671495bd941b411fa066813
[ "MIT" ]
53
2020-02-11T15:10:23.000Z
2021-10-05T12:47:14.000Z
nython/nythonize.py
agungnasik57/nython
cf499fe20f86e2685671495bd941b411fa066813
[ "MIT" ]
null
null
null
nython/nythonize.py
agungnasik57/nython
cf499fe20f86e2685671495bd941b411fa066813
[ "MIT" ]
4
2020-02-12T07:03:06.000Z
2020-08-15T14:53:39.000Z
"""Compile Nim libraries as Python Extension Modules. If you want your namespace to coexist with your pthon code, name this ponim.nim and then your import will look like `from ponim.nim import adder` and `from ponim import subtractor`. There must be a way to smooth that out in the __init__.py file somehow. Note that ...
31.689655
82
0.564382
321
2,757
4.757009
0.461059
0.047151
0.023576
0.033399
0
0
0
0
0
0
0
0.000545
0.334421
2,757
86
83
32.05814
0.831608
0.299601
0
0.035088
0
0
0.141728
0.037935
0
0
0
0
0
1
0.017544
false
0
0.140351
0
0.175439
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f42fc38f6dae49e6659d55730c3133cb884a1c0e
3,591
py
Python
tests/contrib/test_util.py
lixinso/pyro
ca0d6417bed3882a47cb8cbb01b36f403ee903d5
[ "MIT" ]
10
2020-03-18T14:41:25.000Z
2021-07-04T08:49:57.000Z
tests/contrib/test_util.py
lixinso/pyro
ca0d6417bed3882a47cb8cbb01b36f403ee903d5
[ "MIT" ]
19
2018-10-30T13:45:31.000Z
2019-09-27T14:16:57.000Z
tests/contrib/test_util.py
lixinso/pyro
ca0d6417bed3882a47cb8cbb01b36f403ee903d5
[ "MIT" ]
5
2020-06-21T23:40:35.000Z
2021-11-09T16:18:42.000Z
from collections import OrderedDict import pytest import torch import pyro.distributions as dist from pyro.contrib.util import ( get_indices, tensor_to_dict, rmv, rvv, lexpand, rexpand, rdiag, rtril, hessian ) from tests.common import assert_equal def test_get_indices_sizes(): sizes = OrderedDict([("a", 2), ...
34.528846
95
0.588972
579
3,591
3.530225
0.158895
0.123777
0.047945
0.063601
0.55137
0.4682
0.355186
0.311644
0.23728
0.094912
0
0.050087
0.199387
3,591
103
96
34.864078
0.66087
0
0
0.1375
0
0
0.00724
0
0
0
0
0
0.2875
1
0.125
false
0
0.075
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4313551859e5b967cf0a91de7f015a788b3e06f
20,473
py
Python
Diffnet++/class/DataModule.py
mIXs222/diffnet
1f580332254a5113ed7b88b9b2e0aa467344e94d
[ "MIT" ]
null
null
null
Diffnet++/class/DataModule.py
mIXs222/diffnet
1f580332254a5113ed7b88b9b2e0aa467344e94d
[ "MIT" ]
null
null
null
Diffnet++/class/DataModule.py
mIXs222/diffnet
1f580332254a5113ed7b88b9b2e0aa467344e94d
[ "MIT" ]
null
null
null
from __future__ import division from collections import defaultdict import numpy as np from time import time import random import tensorflow.compat.v1 as tf tf.disable_v2_behavior() # import tensorflow as tf class DataModule(): def __init__(self, conf, filename): self.conf = conf self.data_dict = ...
43.652452
166
0.652176
2,654
20,473
4.623587
0.061417
0.037161
0.022248
0.027708
0.708092
0.588705
0.413414
0.3395
0.30788
0.259637
0
0.012846
0.247155
20,473
468
167
43.745727
0.7833
0.05583
0
0.324251
0
0
0.037377
0.02959
0
0
0
0
0
1
0.059946
false
0
0.016349
0
0.084469
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4315741709ca1828a0cd87b2111a7735ecd6a23
2,656
py
Python
src/models/VanillaTransformer.py
iosurodri/annotated-transformer
e5a7e27067d08c09f51b57bbf2824fbcd80ae4d9
[ "MIT" ]
null
null
null
src/models/VanillaTransformer.py
iosurodri/annotated-transformer
e5a7e27067d08c09f51b57bbf2824fbcd80ae4d9
[ "MIT" ]
null
null
null
src/models/VanillaTransformer.py
iosurodri/annotated-transformer
e5a7e27067d08c09f51b57bbf2824fbcd80ae4d9
[ "MIT" ]
null
null
null
from xmlrpc.server import MultiPathXMLRPCServer import torch.nn as nn import torch.nn.functional as F import copy from src.layers.layers import Encoder, EncoderLayer, Decoder, DecoderLayer, PositionwiseFeedForward from src.layers.preprocessing import Embeddings, PositionalEncoding from src.layers.attention import Mult...
35.413333
99
0.6875
354
2,656
4.949153
0.322034
0.037671
0.022831
0.017123
0.079338
0.018265
0
0
0
0
0
0.009542
0.210843
2,656
74
100
35.891892
0.826336
0.137425
0
0
0
0
0.064543
0
0
0
0
0
0
1
0.134615
false
0
0.134615
0.019231
0.403846
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f43380760e72e46d79cbcf3d20f37e8eb8257947
3,215
py
Python
hermetrics/damerau_levenshtein.py
SoldAI/hermetrics
5e07a4f40376779015ef2f5b964d7ac060ed6e25
[ "MIT" ]
3
2020-01-18T02:37:49.000Z
2022-01-27T19:24:15.000Z
hermetrics/damerau_levenshtein.py
SoldAI/hermetrics
5e07a4f40376779015ef2f5b964d7ac060ed6e25
[ "MIT" ]
null
null
null
hermetrics/damerau_levenshtein.py
SoldAI/hermetrics
5e07a4f40376779015ef2f5b964d7ac060ed6e25
[ "MIT" ]
2
2020-01-26T20:40:19.000Z
2021-08-11T12:05:01.000Z
from .levenshtein import Levenshtein class DamerauLevenshtein(Levenshtein): def __init__(self, name='Damerau-Levenshtein'): super().__init__(name=name) def distance(self, source, target, cost=(1, 1, 1, 1)): """Damerau-Levenshtein distance with costs for deletion, insertion, substitution a...
40.696203
118
0.51353
392
3,215
3.977041
0.239796
0.063502
0.046183
0.02694
0.345093
0.311738
0.292495
0.292495
0.168056
0.127004
0
0.018339
0.389425
3,215
78
119
41.217949
0.775853
0.257543
0
0.095238
0
0
0.023305
0
0
0
0
0
0
1
0.071429
false
0
0.02381
0
0.166667
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
f434676fc528e9c88694b6e2adf610fc78d5e377
13,130
py
Python
etna/analysis/outliers/hist_outliers.py
Carlosbogo/etna
b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94
[ "Apache-2.0" ]
1
2021-11-11T21:18:42.000Z
2021-11-11T21:18:42.000Z
etna/analysis/outliers/hist_outliers.py
Carlosbogo/etna
b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94
[ "Apache-2.0" ]
null
null
null
etna/analysis/outliers/hist_outliers.py
Carlosbogo/etna
b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94
[ "Apache-2.0" ]
null
null
null
import typing from copy import deepcopy from typing import TYPE_CHECKING from typing import List import numba import numpy as np import pandas as pd if TYPE_CHECKING: from etna.datasets import TSDataset @numba.jit(nopython=True) def optimal_sse(left: int, right: int, p: np.ndarray, pp: np.ndarray) -> float: ...
39.667674
119
0.591394
1,763
13,130
4.201929
0.093023
0.111366
0.089498
0.102052
0.593413
0.49973
0.423731
0.364606
0.31844
0.225027
0
0.019022
0.291318
13,130
330
120
39.787879
0.777109
0.176999
0
0.11413
0
0
0.002311
0
0
0
0
0
0
1
0.032609
false
0
0.043478
0
0.11413
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f43505730d577b131a0ebe06e14640a6a2175f31
2,094
py
Python
aws/securityGroup.py
emanueleleyland/sabd-project2
387b33443b87e78635d8d6c9a03faadbc90ae9da
[ "BSD-2-Clause" ]
null
null
null
aws/securityGroup.py
emanueleleyland/sabd-project2
387b33443b87e78635d8d6c9a03faadbc90ae9da
[ "BSD-2-Clause" ]
null
null
null
aws/securityGroup.py
emanueleleyland/sabd-project2
387b33443b87e78635d8d6c9a03faadbc90ae9da
[ "BSD-2-Clause" ]
null
null
null
def createKafkaSecurityGroup(ec2, vpc): sec_group_kafka = ec2.create_security_group( GroupName='kafka', Description='kafka sec group', VpcId=vpc.id) sec_group_kafka.authorize_ingress( IpPermissions=[{'IpProtocol': 'icmp', 'FromPort': -1, 'ToPort': -1, 'IpRanges': [{'CidrIp': '0.0.0.0/0'}]}, ...
53.692308
118
0.575931
247
2,094
4.736842
0.145749
0.075214
0.084615
0.075214
0.65812
0.532479
0.532479
0.532479
0.532479
0.532479
0
0.07199
0.210602
2,094
39
119
53.692308
0.635814
0
0
0.1875
0
0
0.286874
0
0
0
0
0
0
1
0.09375
false
0
0
0
0.1875
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f43612b155ef29350dd3f083a77ca91ae4d8fa46
7,537
py
Python
inconnu/character/update/parse.py
tiltowait/inconnu
6cca5fed520899d159537701b695c94222d8dc45
[ "MIT" ]
4
2021-09-06T20:18:13.000Z
2022-02-05T17:08:44.000Z
inconnu/character/update/parse.py
tiltowait/inconnu
6cca5fed520899d159537701b695c94222d8dc45
[ "MIT" ]
7
2021-09-13T00:46:57.000Z
2022-01-11T06:38:50.000Z
inconnu/character/update/parse.py
tiltowait/inconnu
6cca5fed520899d159537701b695c94222d8dc45
[ "MIT" ]
2
2021-11-27T22:24:53.000Z
2022-03-16T21:05:00.000Z
"""character/update/parse.py - Defines an interface for updating character traits.""" # pylint: disable=too-many-arguments import re import discord from discord_ui.components import LinkButton from . import paramupdate from ..display import display from ... import common, constants from ...log import Log from ...vch...
34.573394
99
0.629959
929
7,537
4.965554
0.326157
0.03902
0.016909
0.008671
0.056362
0.056362
0.056362
0.056362
0.056362
0.035118
0
0.002405
0.227677
7,537
217
100
34.732719
0.79007
0.12432
0
0.074324
0
0.006757
0.289561
0.007243
0
0
0
0
0
1
0.027027
false
0.006757
0.054054
0
0.101351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f43697d11efae6dda37ec02c7a022ad4d3dc4330
11,009
py
Python
formation.py
graham-kim/pygremlin-graph-visualiser
65cb4d4fb71c8dde46ff1a36a40adcbdf233448c
[ "MIT" ]
null
null
null
formation.py
graham-kim/pygremlin-graph-visualiser
65cb4d4fb71c8dde46ff1a36a40adcbdf233448c
[ "MIT" ]
39
2020-07-25T10:58:19.000Z
2020-08-28T15:02:12.000Z
formation.py
graham-kim/pygremlin-graph-visualiser
65cb4d4fb71c8dde46ff1a36a40adcbdf233448c
[ "MIT" ]
null
null
null
import sys import os sys.path.append( os.path.dirname(__file__) ) import numpy as np import typing as tp import angles from model import Node, Link, Label from spec import ArrowDraw, NodeSpec class FormationManager: def __init__(self): self._nodes = {} self._links = [] self._labels = [] ...
42.670543
121
0.592788
1,539
11,009
3.946719
0.107862
0.044452
0.019756
0.025683
0.573757
0.517781
0.482549
0.424432
0.401712
0.387224
0
0.011257
0.306022
11,009
257
122
42.836576
0.78377
0.002816
0
0.39604
0
0
0.047923
0
0
0
0
0
0
1
0.09901
false
0
0.034653
0.014851
0.217822
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f439222f5a9cee3a82981ad6666b33d56810e907
3,571
py
Python
Code_Hybrid_SLIMBPR_CBF_RP3Beta.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
Code_Hybrid_SLIMBPR_CBF_RP3Beta.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
Code_Hybrid_SLIMBPR_CBF_RP3Beta.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
# This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python # For example, here's several helpful packages to load import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g...
31.324561
122
0.758891
543
3,571
4.74954
0.309392
0.019
0.017449
0.021714
0.138813
0.124855
0.093059
0.072896
0.034897
0
0
0.013659
0.118454
3,571
113
123
31.60177
0.805591
0.133296
0
0
0
0
0.059308
0.048105
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f43a93adbb44a173a83f3be2da8ae94b9ee5a0d3
989
py
Python
dodge/config.py
MoyTW/7DRL2016_Rewrite
99e092dcb8797a25caa3c8a989a574efae19e4d4
[ "MIT" ]
2
2020-05-10T02:16:28.000Z
2021-04-05T21:54:10.000Z
dodge/config.py
MoyTW/7DRL2016_Rewrite
99e092dcb8797a25caa3c8a989a574efae19e4d4
[ "MIT" ]
null
null
null
dodge/config.py
MoyTW/7DRL2016_Rewrite
99e092dcb8797a25caa3c8a989a574efae19e4d4
[ "MIT" ]
null
null
null
import json class Config(object): def __init__(self, file_location): with open(file_location, 'r') as f: config = json.load(f) self.SCREEN_WIDTH = int(config["SCREEN_WIDTH"]) self.SCREEN_HEIGHT = int(config["SCREEN_HEIGHT"]) self.MAP_WIDTH = int(config["MAP_...
41.208333
66
0.605662
123
989
4.569106
0.300813
0.160142
0.099644
0.074733
0
0
0
0
0
0
0
0
0.273003
989
23
67
43
0.781641
0.026289
0
0
0
0
0.146875
0
0
0
0
0
0
1
0.055556
false
0
0.055556
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
f43be3dcb74991918120ac726f26bac6d8cff63f
524
py
Python
incal_lib/create_dataframe.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
incal_lib/create_dataframe.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
incal_lib/create_dataframe.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def create_calr_example_df(n_rows, start_date): ''' ''' np.random.seed(20) array = np.random.rand(n_rows) cumulative = np.cumsum(array) d = { 'feature1_subject_1': array, 'feature1_subject_2': array, 'feature2_subject_1': cumulati...
24.952381
55
0.622137
71
524
4.323944
0.549296
0.04886
0
0
0
0
0
0
0
0
0
0.030928
0.259542
524
20
56
26.2
0.760309
0
0
0
0
0
0.167969
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f43cde7e64305b95ccb8abd4674e469455ce57e1
4,663
py
Python
HybridSN/DataLoadAndOperate.py
lms-07/HybridSN
7580d67a5879d5b53ced75a653d4f198a8aefde2
[ "MIT" ]
null
null
null
HybridSN/DataLoadAndOperate.py
lms-07/HybridSN
7580d67a5879d5b53ced75a653d4f198a8aefde2
[ "MIT" ]
null
null
null
HybridSN/DataLoadAndOperate.py
lms-07/HybridSN
7580d67a5879d5b53ced75a653d4f198a8aefde2
[ "MIT" ]
null
null
null
import os import numpy as np import scipy.io as sio import tifffile from sklearn.decomposition import PCA from sklearn.model_selection import train_test_split #Load dataset def loadData(name,data_path): if name == 'IP': data = sio.loadmat(os.path.join(data_path, 'Indian_pines_corrected.mat'))['indian_pin...
43.579439
123
0.671885
633
4,663
4.810427
0.249605
0.055172
0.068966
0.082759
0.321839
0.298194
0.293596
0.233169
0.102463
0.0578
0
0.022763
0.180356
4,663
107
124
43.579439
0.77394
0.139181
0
0.028169
0
0
0.137525
0.046844
0
0
0
0
0
1
0.098592
false
0
0.084507
0
0.267606
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f43e3816708a9a04921f14baa15850bfa0137251
1,873
py
Python
alipay/aop/api/domain/AlipayOpenIotmbsDooropenresultSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenIotmbsDooropenresultSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenIotmbsDooropenresultSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenIotmbsDooropenresultSyncModel(object): def __init__(self): self._dev_id = None self._door_state = None self._project_id = None @property def dev_id(self...
26.380282
71
0.584624
238
1,873
4.289916
0.176471
0.073457
0.061704
0.054848
0.265426
0.261508
0
0
0
0
0
0.000781
0.31607
1,873
70
72
26.757143
0.796253
0.022424
0
0.109091
0
0
0.079912
0
0
0
0
0
0
1
0.163636
false
0
0.036364
0.054545
0.327273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f43f0adac87483d74d65bc876a1b45c40eb3778c
958
py
Python
setup.py
ghost58400/marlin-binary-protocol
fb93603866ecfce84e887c159bbbb9f9d2f01f17
[ "MIT" ]
null
null
null
setup.py
ghost58400/marlin-binary-protocol
fb93603866ecfce84e887c159bbbb9f9d2f01f17
[ "MIT" ]
null
null
null
setup.py
ghost58400/marlin-binary-protocol
fb93603866ecfce84e887c159bbbb9f9d2f01f17
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="marlin_binary_protocol", version="0.0.7", author="Charles Willis", author_email="charleswillis3@users.noreply.github.com", description="Transfer files with Marlin 2.0 firmware using Marlin...
38.32
114
0.662839
119
958
5.210084
0.579832
0.096774
0.096774
0.096774
0
0
0
0
0
0
0
0.037688
0.169102
958
24
115
39.916667
0.741206
0
0
0
0
0.045455
0.535491
0.092902
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f44057beff2cbba250db617a96a21c14300e3ae1
18,028
py
Python
taut_euler_class.py
henryseg/Veering
50ebdcd5bde582726aefdd564c43e17890651282
[ "CC0-1.0" ]
2
2020-08-17T21:38:16.000Z
2021-08-29T21:38:43.000Z
taut_euler_class.py
henryseg/Veering
50ebdcd5bde582726aefdd564c43e17890651282
[ "CC0-1.0" ]
null
null
null
taut_euler_class.py
henryseg/Veering
50ebdcd5bde582726aefdd564c43e17890651282
[ "CC0-1.0" ]
null
null
null
# # taut_euler_class.py # from file_io import parse_data_file, write_data_file from taut import liberal, isosig_to_tri_angle from transverse_taut import is_transverse_taut from sage.matrix.constructor import Matrix from sage.modules.free_module_element import vector from sage.arith.misc import gcd from sage.arith.fu...
35.279843
109
0.625194
2,873
18,028
3.859729
0.194222
0.005681
0.008206
0.006944
0.147534
0.103165
0.069438
0.058797
0.054468
0.050501
0
0.012892
0.27718
18,028
510
110
35.34902
0.838078
0.684713
0
0.258929
0
0
0.022256
0.004338
0
0
0
0
0.026786
1
0.053571
false
0.008929
0.0625
0.008929
0.178571
0.026786
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f442619ffa1142c65bd44ce29ca3a9c6c0e0aea7
5,153
py
Python
preprocess/utils/liftOver_vcf.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
null
null
null
preprocess/utils/liftOver_vcf.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
null
null
null
preprocess/utils/liftOver_vcf.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
2
2021-01-26T02:07:32.000Z
2021-02-03T03:56:55.000Z
# forked from https://github.com/single-cell-genetics/cellSNP ## A python wrap of UCSC liftOver function for vcf file ## UCSC liftOver binary and hg19 to hg38 chain file: ## https://genome.ucsc.edu/cgi-bin/hgLiftOver ## http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver ## http://hgdownload.soe.ucsc.edu/gol...
33.901316
83
0.581603
702
5,153
4.05698
0.229345
0.036868
0.015449
0.016854
0.305126
0.298455
0.254565
0.194874
0.153441
0.153441
0
0.013856
0.271686
5,153
151
84
34.125828
0.745004
0.09509
0
0.285714
0
0
0.135991
0.0125
0
0
0
0
0
1
0.02521
false
0
0.05042
0
0.10084
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
f444f9703d175494884baaba0472ab27a4d9a8a1
75,692
py
Python
sapmon/payload/provider/sapnetweaver.py
gummadirajesh/AzureMonitorForSAPSolutions
9f8e9dbd38141b5de4782d40556c4368f6ad8d0b
[ "MIT" ]
null
null
null
sapmon/payload/provider/sapnetweaver.py
gummadirajesh/AzureMonitorForSAPSolutions
9f8e9dbd38141b5de4782d40556c4368f6ad8d0b
[ "MIT" ]
null
null
null
sapmon/payload/provider/sapnetweaver.py
gummadirajesh/AzureMonitorForSAPSolutions
9f8e9dbd38141b5de4782d40556c4368f6ad8d0b
[ "MIT" ]
null
null
null
# Python modules import json import logging from datetime import datetime, timedelta, timezone from time import time from typing import Any, Callable import re import requests from requests import Session from threading import Lock # SOAP Client modules from zeep import Client from zeep import helpers from zeep.transp...
51.702186
175
0.624716
7,994
75,692
5.884538
0.113585
0.024659
0.022321
0.023915
0.472885
0.437597
0.409473
0.377734
0.359367
0.337961
0
0.001804
0.304458
75,692
1,463
176
51.737526
0.891713
0.182675
0
0.383051
0
0.00678
0.157579
0.003127
0
0
0
0.001367
0
1
0.051977
false
0.022599
0.024859
0.00904
0.159322
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4480752faba119871fef4e77c8c713728e07b1e
3,294
py
Python
example_usage/example_list_errors.py
oceanprotocol/plecos
ae532df8539e5c327cca57fbc1ea1b1193916cd1
[ "Apache-2.0" ]
1
2019-03-15T14:43:38.000Z
2019-03-15T14:43:38.000Z
example_usage/example_list_errors.py
oceanprotocol/plecos
ae532df8539e5c327cca57fbc1ea1b1193916cd1
[ "Apache-2.0" ]
26
2019-06-04T08:49:42.000Z
2022-02-07T02:06:42.000Z
example_usage/example_list_errors.py
oceanprotocol/Plecos
25b9a3f1698ab2c65ca82ac69ecd1f461c55a581
[ "Apache-2.0" ]
1
2019-03-12T18:31:55.000Z
2019-03-12T18:31:55.000Z
from pathlib import Path import plecos import json print(plecos.__version__) #%% path_to_json_local = Path("~/ocn/plecos/plecos/samples/sample_metadata_local.json").expanduser() path_to_json_remote = Path("~/ocn/plecos/plecos/samples/sample_metadata_remote.json").expanduser() path_to_broken_json = Path("~/ocn/plecos/pl...
26.564516
120
0.649059
423
3,294
4.79669
0.260047
0.038443
0.047314
0.056185
0.573682
0.490882
0.414983
0.322326
0.322326
0.322326
0
0.017081
0.182453
3,294
124
121
26.564516
0.736354
0.090164
0
0.206522
0
0.054348
0.43388
0.1078
0
0
0
0
0
1
0
false
0
0.032609
0
0.032609
0.097826
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f448729d42d0a606df0321be7509a9b2530f28d6
2,180
py
Python
pangloss/backend.py
CLRafaelR/pangloss
920c509381a8d7831471fc3f22a07e58b53b8c0e
[ "MIT" ]
null
null
null
pangloss/backend.py
CLRafaelR/pangloss
920c509381a8d7831471fc3f22a07e58b53b8c0e
[ "MIT" ]
1
2020-06-11T21:08:30.000Z
2020-09-20T03:36:06.000Z
pangloss/backend.py
CLRafaelR/pangloss
920c509381a8d7831471fc3f22a07e58b53b8c0e
[ "MIT" ]
1
2021-03-11T21:11:34.000Z
2021-03-11T21:11:34.000Z
import re import panflute as pf from functools import partial from pangloss.util import smallcapify, break_plain # regular expression for label formats label_re = re.compile(r'\{#ex:(\w+)\}') gb4e_fmt_labelled = """ \\ex\\label{{ex:{label}}} \\gll {} \\\\ {} \\\\ \\trans {} """ gb4e_fmt = """ \\ex \\gll {} \\\\ {}...
23.44086
78
0.601835
281
2,180
4.608541
0.41637
0.034749
0.054054
0.046332
0.271815
0.23166
0.23166
0.23166
0.23166
0.176062
0
0.008679
0.260092
2,180
92
79
23.695652
0.794172
0.27156
0
0.357143
0
0
0.145669
0.016404
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f44ab2c0f0cd8c386e07e21d67f94743e0fb707b
3,966
py
Python
minecraft_launcher_lib/fabric.py
bopchik/Simple-minecraft-mod-launcher
52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9
[ "BSD-2-Clause" ]
1
2021-06-17T18:19:41.000Z
2021-06-17T18:19:41.000Z
minecraft_launcher_lib/fabric.py
bopchik/Simple-minecraft-mod-launcher
52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9
[ "BSD-2-Clause" ]
null
null
null
minecraft_launcher_lib/fabric.py
bopchik/Simple-minecraft-mod-launcher
52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9
[ "BSD-2-Clause" ]
3
2021-06-17T18:19:44.000Z
2021-06-17T22:18:34.000Z
from .helper import download_file, get_user_agent from .install import install_minecraft_version from typing import List, Dict, Union from xml.dom import minidom import subprocess import requests import tempfile import random import os def get_all_minecraft_versions() -> List[Dict[str,Union[str,bool]]]: """ Re...
39.66
152
0.739536
504
3,966
5.579365
0.236111
0.085349
0.01707
0.032717
0.29623
0.243599
0.184566
0.121622
0.034851
0.034851
0
0.004189
0.157337
3,966
99
153
40.060606
0.837223
0.199697
0
0.090909
0
0.036364
0.166007
0.033003
0
0
0
0
0
1
0.163636
false
0
0.163636
0
0.490909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f44b19520f8c0f088d9bcd431d1e1bf360a73146
2,354
py
Python
Strand Sort.py
Nishkarsh-Tripathi/Sorting-algorithms-
cda25f1a8e7fb5e25e59e69e78f000421b0e4eb0
[ "Apache-2.0" ]
5
2020-03-29T16:26:18.000Z
2020-11-23T15:37:23.000Z
Strand Sort.py
Nishkarsh-Tripathi/Sorting-algorithms
cda25f1a8e7fb5e25e59e69e78f000421b0e4eb0
[ "Apache-2.0" ]
null
null
null
Strand Sort.py
Nishkarsh-Tripathi/Sorting-algorithms
cda25f1a8e7fb5e25e59e69e78f000421b0e4eb0
[ "Apache-2.0" ]
null
null
null
# STRAND SORT # It is a recursive comparison based sorting technique which sorts in increasing order. # It works by repeatedly pulling sorted sub-lists out of the list to be sorted and merging them # with a result array. # Algorithm: # Create a empty strand (list) and append the first element to it popping it from th...
26.449438
101
0.657179
363
2,354
4.239669
0.341598
0.045484
0.025341
0.02729
0.059779
0
0
0
0
0
0
0.015808
0.274427
2,354
88
102
26.75
0.885246
0.64486
0
0.076923
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0
0
0.230769
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f44cdd7cc2616d5398119b8bf5c750adca9d4192
10,915
py
Python
gamestonk_terminal/cryptocurrency/overview/pycoingecko_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/cryptocurrency/overview/pycoingecko_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/cryptocurrency/overview/pycoingecko_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
"""CoinGecko model""" __docformat__ = "numpy" # pylint: disable=C0301, E1101 import logging import re from typing import Any, List import numpy as np import pandas as pd from pycoingecko import CoinGeckoAPI from gamestonk_terminal.cryptocurrency.dataframe_helpers import ( create_df_index, long_number_format...
25.034404
316
0.624462
1,293
10,915
5.027842
0.188708
0.033226
0.023689
0.027996
0.522074
0.457776
0.393632
0.307953
0.228273
0.200892
0
0.00954
0.241319
10,915
435
317
25.091954
0.77551
0.202657
0
0.362963
0
0.003704
0.216583
0.062515
0
0
0
0.004598
0
1
0.048148
false
0.003704
0.033333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f44d14e6df3a58dd087e5855ff51ca5785dc0dff
20,399
py
Python
docker/messein/board-import-app/app.py
sourceperl/tk-dashboard
015ececc670902b02284749ac59f354db4304e48
[ "MIT" ]
null
null
null
docker/messein/board-import-app/app.py
sourceperl/tk-dashboard
015ececc670902b02284749ac59f354db4304e48
[ "MIT" ]
null
null
null
docker/messein/board-import-app/app.py
sourceperl/tk-dashboard
015ececc670902b02284749ac59f354db4304e48
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from configparser import ConfigParser from datetime import datetime import urllib.parse import hashlib import io import json import logging import os import re import time from xml.dom import minidom import feedparser import requests import schedule import PIL.Image import PIL.ImageDraw import P...
40.076621
110
0.622776
2,883
20,399
4.182102
0.172043
0.014929
0.016422
0.01551
0.424733
0.359045
0.306793
0.278427
0.2562
0.255122
0
0.018981
0.256189
20,399
508
111
40.155512
0.775654
0.143242
0
0.276353
0
0.005698
0.165217
0.039403
0
0
0.000691
0
0
1
0.037037
false
0.02849
0.079772
0
0.125356
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f44d3d2bcc982ad4f8edfb7eb180227db0f5fa05
19,687
py
Python
fsleyes_widgets/widgetlist.py
pauldmccarthy/fsleyes-widgets
cb27899a0f665efe3f1c6ca1f89349507e004378
[ "Apache-2.0" ]
1
2018-11-04T11:18:46.000Z
2018-11-04T11:18:46.000Z
fsleyes_widgets/widgetlist.py
pauldmccarthy/fsleyes-widgets
cb27899a0f665efe3f1c6ca1f89349507e004378
[ "Apache-2.0" ]
2
2018-09-24T15:01:56.000Z
2020-01-20T10:39:37.000Z
fsleyes_widgets/widgetlist.py
pauldmccarthy/fsleyes-widgets
cb27899a0f665efe3f1c6ca1f89349507e004378
[ "Apache-2.0" ]
1
2017-12-09T09:02:07.000Z
2017-12-09T09:02:07.000Z
#!/usr/bin/env python # # widgetlist.py - A widget which displays a list of groupable widgets. # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides the :class:`WidgetList` class, which displays a list of widgets. """ import wx import wx.lib.newevent as wxevent import wx.lib.scrolledpanel...
31.05205
79
0.584701
2,105
19,687
5.349169
0.193824
0.015986
0.016874
0.010657
0.16119
0.105861
0.050977
0.007993
0
0
0
0.003105
0.329354
19,687
633
80
31.101106
0.849731
0.29268
0
0.243986
0
0
0.00689
0
0
0
0
0
0
1
0.103093
false
0
0.013746
0
0.164948
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f44da748e4ab13e359126b052ffbda6e65cd72ff
1,441
py
Python
setup.py
TransactPRO/gw3-python-client
77a9395c13f75467385227461b57ce85f4730ce5
[ "MIT" ]
1
2018-03-13T00:10:05.000Z
2018-03-13T00:10:05.000Z
setup.py
TransactPRO/gw3-python-client
77a9395c13f75467385227461b57ce85f4730ce5
[ "MIT" ]
1
2020-08-05T08:25:14.000Z
2020-08-05T08:25:14.000Z
setup.py
TransactPRO/gw3-python-client
77a9395c13f75467385227461b57ce85f4730ce5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import setuptools MAINTAINER_NAME = 'Transact Pro' MAINTAINER_EMAIL = 'support@transactpro.lv' URL_GIT = 'https://github.com/TransactPRO/gw3-python-client' try: import pypandoc LONG_DESCRIPTION = pypandoc.convert('README.md', 'rst') except (IOError, ImportError, OSError, RuntimeError):...
28.82
75
0.693963
153
1,441
6.437909
0.555556
0.076142
0.126904
0.105584
0
0
0
0
0
0
0
0.01598
0.174879
1,441
49
76
29.408163
0.812447
0.013879
0
0
0
0
0.492958
0.047183
0
0
0
0
0
1
0
false
0
0.073171
0
0.073171
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f44db94e38c8e52a26896847a590eaee7cd80693
2,359
py
Python
social_auth_mitxpro/backends_test.py
mitodl/social-auth-mitxpro
8cae8bbe900b25f724b24f783d06de7b853a1366
[ "BSD-3-Clause" ]
null
null
null
social_auth_mitxpro/backends_test.py
mitodl/social-auth-mitxpro
8cae8bbe900b25f724b24f783d06de7b853a1366
[ "BSD-3-Clause" ]
37
2019-03-06T17:43:26.000Z
2022-03-21T05:18:10.000Z
social_auth_mitxpro/backends_test.py
mitodl/social-auth-mitxpro
8cae8bbe900b25f724b24f783d06de7b853a1366
[ "BSD-3-Clause" ]
null
null
null
"""Tests for our backend""" from urllib.parse import urljoin import pytest from social_auth_mitxpro.backends import MITxProOAuth2 # pylint: disable=redefined-outer-name @pytest.fixture def strategy(mocker): """Mock strategy""" return mocker.Mock() @pytest.fixture def backend(strategy): """MITxProOAu...
29.4875
86
0.680797
271
2,359
5.730627
0.321033
0.042498
0.048938
0.04443
0.265937
0.245976
0.204765
0.204765
0.094012
0.065679
0
0.009799
0.178042
2,359
79
87
29.860759
0.791129
0.133531
0
0.166667
0
0
0.166833
0
0
0
0
0
0.166667
1
0.145833
false
0
0.0625
0
0.270833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f450583ef2fc87d70603f2a691c77577371d8626
11,640
py
Python
classifier/interpretation_exp.py
methylgrammarlab/proj_scwgbs
287196898796eb617fef273bfaf9e978a57047dc
[ "MIT" ]
null
null
null
classifier/interpretation_exp.py
methylgrammarlab/proj_scwgbs
287196898796eb617fef273bfaf9e978a57047dc
[ "MIT" ]
null
null
null
classifier/interpretation_exp.py
methylgrammarlab/proj_scwgbs
287196898796eb617fef273bfaf9e978a57047dc
[ "MIT" ]
null
null
null
""" Code adapted from https://github.com/ohlerlab/DeepRiPe with changes Extract information and graphs from the Integrated gradients output """ import argparse import os import sys import matplotlib.pyplot as plt import numpy as np import seaborn as sns from classifier.plotseqlogo import seqlogo_fig from commons imp...
36.489028
109
0.617526
1,796
11,640
3.797327
0.126392
0.087977
0.018768
0.025806
0.720381
0.681525
0.658798
0.630645
0.611877
0.579619
0
0.026148
0.260739
11,640
318
110
36.603774
0.766415
0.171134
0
0.526829
0
0
0.088491
0.028402
0
0
0
0
0
1
0.04878
false
0
0.058537
0
0.112195
0.009756
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f452f54dd600820476b6e9842531fd00913972e2
3,921
py
Python
scripts/pythonutils/autorepr.py
shulinye/dotfiles
a342512c33ca102d03921cc653ee4605d0cf9617
[ "MIT" ]
2
2015-01-16T22:07:10.000Z
2015-11-09T06:45:44.000Z
scripts/pythonutils/autorepr.py
shulinye/dotfiles
a342512c33ca102d03921cc653ee4605d0cf9617
[ "MIT" ]
4
2015-07-08T19:13:47.000Z
2015-08-31T16:04:36.000Z
scripts/pythonutils/autorepr.py
shulinye/dotfiles
a342512c33ca102d03921cc653ee4605d0cf9617
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from collections import OrderedDict from functools import partial from ordered_set import OrderedSet import inspect import itertools import types from .utils import walk_getattr __all__ = ['autoinit', 'autorepr', 'TotalCompareByKey'] def autoinit(obj=None, *args, params=None, **kwargs): """T...
40.42268
116
0.602907
479
3,921
4.578288
0.294363
0.029184
0.01368
0.02736
0.327405
0.305062
0.283174
0.262654
0.262654
0.236206
0
0.002056
0.255802
3,921
96
117
40.84375
0.749486
0.129814
0
0.298701
0
0
0.157253
0.007432
0
0
0
0
0
1
0.051948
false
0.025974
0.090909
0
0.220779
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4537a07a1d5765ef6c894d899d3fcdd3ed64dab
10,051
py
Python
v1.0.0.test/toontown/estate/DistributedGardenPlotAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v1.0.0.test/toontown/estate/DistributedGardenPlotAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/estate/DistributedGardenPlotAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.directnotify import DirectNotifyGlobal from toontown.estate import GardenGlobals from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI FLOWER_X_OFFSETS = ( None, (0, ), (-1.5, 1.5), (-3.4, 0, 3.5)) class DistributedGardenPlotAI(DistributedLawnDecorAI): notify = DirectNotifyGlobal.d...
49.029268
195
0.639936
1,047
10,051
6.034384
0.159503
0.045584
0.059196
0.07265
0.537195
0.52485
0.490503
0.455049
0.440962
0.433523
0
0.00927
0.259477
10,051
205
196
49.029268
0.839581
0
0
0.485876
0
0
0.090828
0.013331
0
0
0
0
0
1
0.107345
false
0
0.016949
0.011299
0.310734
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4547f32ba2dd53a8a0e71fc993cc07d7d1a58ed
2,384
py
Python
python/handwritten_baseline/pipeline/model/feature_extr/debug.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
10
2020-11-28T05:01:04.000Z
2021-12-21T19:34:00.000Z
python/handwritten_baseline/pipeline/model/feature_extr/debug.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
1
2022-03-12T07:20:39.000Z
2022-03-16T05:11:38.000Z
python/handwritten_baseline/pipeline/model/feature_extr/debug.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
1
2021-12-21T19:34:08.000Z
2021-12-21T19:34:08.000Z
import pprint from typing import Optional, List, Tuple, Set, Dict import numpy as np from overrides import overrides from python.handwritten_baseline.pipeline.data.base import Dataset from python.handwritten_baseline.pipeline.model.feature_extr import DEBUG_EXTR from python.handwritten_baseline.pipeline.model.feature...
43.345455
127
0.684983
286
2,384
5.468531
0.328671
0.084399
0.067136
0.055627
0.285166
0.219949
0.152813
0.152813
0.049872
0.049872
0
0.00269
0.220218
2,384
55
128
43.345455
0.838623
0.026007
0
0.068182
0
0
0.081925
0
0
0
0
0
0
1
0.090909
false
0
0.159091
0.022727
0.386364
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f456221256fc52688ca188318ed96a52141502e3
4,311
py
Python
venv/lib/python3.5/site-packages/igraph/test/atlas.py
dtklinh/Protein-Rigid-Domains-Estimation
a27152ef5437eb87ee31c317091356c4787f82a4
[ "MIT" ]
2
2021-03-04T16:57:06.000Z
2021-08-11T01:42:29.000Z
venv/lib/python3.5/site-packages/igraph/test/atlas.py
dtklinh/Protein-Rigid-Domains-Estimation
a27152ef5437eb87ee31c317091356c4787f82a4
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/igraph/test/atlas.py
dtklinh/Protein-Rigid-Domains-Estimation
a27152ef5437eb87ee31c317091356c4787f82a4
[ "MIT" ]
null
null
null
import warnings import unittest from igraph import * class TestBase(unittest.TestCase): def testPageRank(self): for idx, g in enumerate(self.__class__.graphs): try: pr = g.pagerank() except Exception as ex: self.assertTrue(False, msg="PageRank calcu...
38.491071
118
0.52424
494
4,311
4.510121
0.257085
0.035009
0.048474
0.037702
0.454219
0.38061
0.366697
0.326302
0.279174
0.219928
0
0.018328
0.3672
4,311
111
119
38.837838
0.798387
0.040362
0
0.341176
0
0
0.174619
0
0
0
0
0
0.2
1
0.070588
false
0
0.035294
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4584cfc0d782e8ed0b2d30fb8fdd386a63762a3
1,017
py
Python
artascope/src/web/app.py
magus0219/icloud-photo-downloader
6334530d971cf61089d031de99a38f204c201837
[ "MIT" ]
3
2020-09-24T16:19:28.000Z
2022-02-09T21:10:11.000Z
artascope/src/web/app.py
magus0219/icloud-photo-downloader
6334530d971cf61089d031de99a38f204c201837
[ "MIT" ]
null
null
null
artascope/src/web/app.py
magus0219/icloud-photo-downloader
6334530d971cf61089d031de99a38f204c201837
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Created by magus0219[magus0219@gmail.com] on 2020/3/23 from types import FunctionType from flask import ( Flask, redirect, url_for, ) import artascope.src.web.lib.filter as module_filter from artascope.src.web.lib.content_processor import inject_version d...
23.113636
66
0.67355
131
1,017
5.038168
0.496183
0.10303
0.090909
0.054545
0
0
0
0
0
0
0
0.021684
0.229105
1,017
43
67
23.651163
0.820153
0.184857
0
0
0
0
0.029233
0
0
0
0
0
0
1
0.071429
false
0
0.25
0.035714
0.392857
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4584d9b2545719be7d26d0474bfda0fc16fc902
2,251
py
Python
tests/common/test_op/scatter_nd.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
1
2020-08-31T02:43:43.000Z
2020-08-31T02:43:43.000Z
tests/common/test_op/scatter_nd.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_op/scatter_nd.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
37.516667
105
0.676588
331
2,251
4.537764
0.407855
0.039947
0.01731
0.021305
0.082557
0.054594
0
0
0
0
0
0.019263
0.215904
2,251
59
106
38.152542
0.831728
0.436251
0
0
0
0
0.102395
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0.043478
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f45c36a2a7c87d236af65ffb124e4f77205e7048
744
py
Python
recommender_engine/similarity_measure/__init__.py
tranlyvu/recommender
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
8
2019-03-14T07:53:51.000Z
2021-06-22T06:19:32.000Z
recommender_engine/similarity_measure/__init__.py
tranlyvu/recommender-engine
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
3
2018-01-16T06:48:55.000Z
2020-05-04T01:43:14.000Z
recommender_engine/similarity_measure/__init__.py
tranlyvu/recommender-engine
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
1
2019-03-14T07:53:59.000Z
2019-03-14T07:53:59.000Z
""" recommender_engine ----- recommender_engine is a recommendation application using either item-based or user-based approaches :copyright: (c) 2016 - 2019 by Tran Ly Vu. All Rights Reserved. :license: Apache License 2.0 """ from .cosine import cosine from .euclidean_distance import euclidean_distance from .p...
33.818182
100
0.766129
94
744
5.62766
0.5
0.056711
0.075614
0.068053
0.177694
0.177694
0.177694
0.177694
0.177694
0.177694
0
0.031008
0.133065
744
21
101
35.428571
0.789147
0.30914
0
0
0
0
0.439216
0.101961
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f45dfb481b367182927b34141a1df143252d871f
7,306
py
Python
test/examples/test_simple_gp_regression.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
test/examples/test_simple_gp_regression.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
test/examples/test_simple_gp_regression.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
import math import torch import unittest import gpytorch from torch import optim from torch.autograd import Variable from gpytorch.kernels import RBFKernel from gpytorch.means import ConstantMean from gpytorch.likelihoods import GaussianLikelihood from gpytorch.random_variables import GaussianRandomVariable # Simple ...
38.861702
88
0.634684
861
7,306
5.147503
0.190476
0.05528
0.051895
0.017599
0.680054
0.641245
0.604919
0.556859
0.536101
0.490523
0
0.016205
0.273611
7,306
187
89
39.069519
0.818918
0.116343
0
0.5
0
0
0.001244
0
0
0
0
0
0.051471
1
0.044118
false
0
0.073529
0
0.139706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f460edaf40609072f5da235373227615b76ded70
804
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/smallest-greater-multiple-made-of-two-digits.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/smallest-greater-multiple-made-of-two-digits.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/smallest-greater-multiple-made-of-two-digits.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: sum(O(l * 2^l) for l in range(1, 11)) = O(20 * 2^10) = O(1) # Space: O(1) class Solution(object): def findInteger(self, k, digit1, digit2): """ :type k: int :type digit1: int :type digit2: int :rtype: int """ MAX_NUM_OF_DIGITS = 10 INT_MAX = ...
28.714286
69
0.452736
108
804
3.296296
0.37963
0.101124
0.033708
0.078652
0
0
0
0
0
0
0
0.087912
0.43408
804
27
70
29.777778
0.694505
0.174129
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4647df8f083e67396d2554f67110e5d8f963972
7,875
py
Python
aldryn_people/tests/test_plugins.py
compoundpartners/js-people
a3744c3880f6626e677034a693f337c927baf886
[ "BSD-3-Clause" ]
null
null
null
aldryn_people/tests/test_plugins.py
compoundpartners/js-people
a3744c3880f6626e677034a693f337c927baf886
[ "BSD-3-Clause" ]
1
2019-01-15T16:06:44.000Z
2019-01-15T16:06:44.000Z
aldryn_people/tests/test_plugins.py
compoundpartners/js-people
a3744c3880f6626e677034a693f337c927baf886
[ "BSD-3-Clause" ]
1
2019-01-09T11:53:59.000Z
2019-01-09T11:53:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals try: from django.core.urlresolvers import reverse except ImportError: # Django 2.0 from django.urls import reverse from django.utils.translation import force_text from cms import api from cms.utils.i18n import force_language from aldryn_peop...
38.985149
80
0.657143
939
7,875
5.315229
0.172524
0.043278
0.078141
0.046283
0.587257
0.564616
0.523542
0.499499
0.48307
0.48307
0
0.004715
0.245841
7,875
201
81
39.179104
0.835663
0.139937
0
0.492958
0
0
0.019073
0
0
0
0
0
0.161972
1
0.077465
false
0.007042
0.091549
0
0.190141
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4680fe37289f7c11ee4bd2ba12292268d591a53
1,960
py
Python
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/pyreadline/clipboard/__init__.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/pyreadline/clipboard/__init__.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/pyreadline/clipboard/__init__.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
import sys success = False in_ironpython = "IronPython" in sys.version if in_ironpython: try: from ironpython_clipboard import GetClipboardText, SetClipboardText success = True except ImportError: pass else: try: from win32_clipboard import GetClipboardText, SetClipboardTex...
24.810127
79
0.558673
249
1,960
4.301205
0.293173
0.022409
0.014006
0.019608
0.239029
0.140056
0.140056
0.140056
0
0
0
0.001554
0.343367
1,960
78
80
25.128205
0.830614
0.078571
0
0.311475
0
0
0.026786
0
0
0
0
0
0
1
0.098361
false
0.016393
0.081967
0
0.311475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4689432e90e3326c569ffdf5beb1c42f606d0c9
17,634
py
Python
mjrl/utils/train_agent.py
YujieLu10/tslam
1341dbecdf02ee6b1b6cdd1a538272fffdea6ffd
[ "Apache-2.0" ]
null
null
null
mjrl/utils/train_agent.py
YujieLu10/tslam
1341dbecdf02ee6b1b6cdd1a538272fffdea6ffd
[ "Apache-2.0" ]
null
null
null
mjrl/utils/train_agent.py
YujieLu10/tslam
1341dbecdf02ee6b1b6cdd1a538272fffdea6ffd
[ "Apache-2.0" ]
null
null
null
import logging logging.disable(logging.CRITICAL) import math from tabulate import tabulate from mjrl.utils.make_train_plots import make_train_plots from mjrl.utils.gym_env import GymEnv from mjrl.samplers.core import sample_paths import numpy as np import torch import pickle import imageio import time as timer import o...
46.898936
260
0.60304
2,365
17,634
4.249894
0.157717
0.017909
0.017909
0.022286
0.441847
0.40195
0.353199
0.318575
0.280171
0.269127
0
0.012919
0.258138
17,634
375
261
47.024
0.755389
0.089826
0
0.217391
0
0.016722
0.134997
0.073782
0
0
0
0
0.010033
1
0.010033
false
0
0.060201
0
0.083612
0.036789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4691a885e026834c8813dea028eee2eea8dcb79
4,499
py
Python
src/tests/plugins/banktransfer/test_refund_export.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/banktransfer/test_refund_export.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/banktransfer/test_refund_export.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json from datetime import timedelta from decimal import Decimal import pytest from django.utils.timezone import now from pretix.base.models import Event, Order, OrderRefund, Organizer, Team, User from pretix.plugins.banktransfer.models import RefundExport from pretix.plugins.banktransfer.views import ( _ro...
33.080882
100
0.608357
506
4,499
5.280632
0.278656
0.033683
0.022455
0.049401
0.528817
0.508234
0.5
0.490644
0.471183
0.471183
0
0.081645
0.243165
4,499
135
101
33.325926
0.703084
0
0
0.308333
0
0
0.269838
0.134919
0
0
0
0
0.091667
1
0.033333
false
0.016667
0.066667
0
0.108333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f469fb9c0617beca4380191f4e87136c8e35c588
4,804
py
Python
NewLifeUtils/LoggerModule.py
NewLife1324/NewLifeUtils-Dev
d955ad801da879d2888506853b0d0141c15dfafc
[ "MIT" ]
2
2020-12-12T17:45:34.000Z
2020-12-16T15:00:05.000Z
NewLifeUtils/LoggerModule.py
NewLife1324/NewLifeUtils
d955ad801da879d2888506853b0d0141c15dfafc
[ "MIT" ]
null
null
null
NewLifeUtils/LoggerModule.py
NewLife1324/NewLifeUtils
d955ad801da879d2888506853b0d0141c15dfafc
[ "MIT" ]
null
null
null
from NewLifeUtils.ColorModule import ACC, MCC from NewLifeUtils.UtilsModule import hex_to_rgb from NewLifeUtils.FileModule import DataStorage, LogFile from NewLifeUtils.StringUtilModule import remove_csi from datetime import datetime import sys class Formatter(dict): def __init__(self, *args, date_format="%d-%m-%...
39.056911
164
0.580766
575
4,804
4.652174
0.217391
0.031402
0.042617
0.046729
0.238505
0.133084
0.110654
0.110654
0.110654
0.110654
0
0.020011
0.251041
4,804
123
165
39.056911
0.723457
0
0
0.0625
0
0.017857
0.214776
0.053902
0
0
0
0
0
1
0.0625
false
0
0.053571
0.008929
0.241071
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f46b0b539cef945ee6aa318ff4cb5a94326430db
6,290
py
Python
mealpy/evolutionary_based/MA.py
Alhassan20/mealpy
7ed365c5c495ad1c1e066662c90159b3d5e9b8e3
[ "MIT" ]
1
2021-08-07T16:30:48.000Z
2021-08-07T16:30:48.000Z
mealpy/evolutionary_based/MA.py
Alhassan20/mealpy
7ed365c5c495ad1c1e066662c90159b3d5e9b8e3
[ "MIT" ]
null
null
null
mealpy/evolutionary_based/MA.py
Alhassan20/mealpy
7ed365c5c495ad1c1e066662c90159b3d5e9b8e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu Nguyen" at 14:22, 11/04/2020 % # ...
42.214765
134
0.550397
744
6,290
4.419355
0.25672
0.019161
0.032847
0.025547
0.233273
0.133212
0.055961
0.037713
0.037713
0.037713
0
0.028833
0.321781
6,290
148
135
42.5
0.741913
0.296184
0
0.125
0
0
0.001187
0
0
0
0
0
0
1
0.090909
false
0
0.034091
0
0.261364
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f46c203558ba08eaf57d58a68abbbd1315976d22
16,106
py
Python
src/estimagic/estimation/estimate_ml.py
OpenSourceEconomics/estimagic
85163b4cdc601d60d654c6ca1f42b9db17a130a3
[ "MIT" ]
83
2019-09-26T04:44:03.000Z
2022-03-17T20:24:02.000Z
src/estimagic/estimation/estimate_ml.py
OpenSourceEconomics/estimagic
85163b4cdc601d60d654c6ca1f42b9db17a130a3
[ "MIT" ]
243
2019-06-25T18:15:53.000Z
2022-03-26T09:17:44.000Z
src/estimagic/estimation/estimate_ml.py
OpenSourceEconomics/estimagic
85163b4cdc601d60d654c6ca1f42b9db17a130a3
[ "MIT" ]
23
2019-07-03T11:16:55.000Z
2022-03-07T00:57:38.000Z
from estimagic.inference.ml_covs import cov_cluster_robust from estimagic.inference.ml_covs import cov_hessian from estimagic.inference.ml_covs import cov_jacobian from estimagic.inference.ml_covs import cov_robust from estimagic.inference.ml_covs import cov_strata_robust from estimagic.inference.shared import calculat...
47.934524
88
0.626537
1,841
16,106
5.318848
0.204237
0.019914
0.022467
0.018382
0.231618
0.201389
0.186172
0.141034
0.08701
0.070466
0
0.001297
0.234323
16,106
335
89
48.077612
0.792734
0.551782
0
0.087719
0
0
0.111242
0.003094
0
0
0
0
0
1
0.011696
false
0
0.087719
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f46ca3af523c02675160a6c57c283a2d49c86f50
6,503
py
Python
neural_architecture_search_appendix_a.py
NunoEdgarGFlowHub/neural_architecture_search_with_reinforcement_learning_appendix_a
67e4876d428e5155f5526ee02875b0a89a52305d
[ "MIT" ]
68
2017-01-31T06:35:53.000Z
2021-02-24T09:39:55.000Z
neural_architecture_search_appendix_a.py
NunoEdgarGFlowHub/neural_architecture_search_with_reinforcement_learning_appendix_a
67e4876d428e5155f5526ee02875b0a89a52305d
[ "MIT" ]
3
2017-05-14T13:41:39.000Z
2020-04-21T04:23:50.000Z
neural_architecture_search_appendix_a.py
NunoEdgarGFlowHub/neural_architecture_search_with_reinforcement_learning_appendix_a
67e4876d428e5155f5526ee02875b0a89a52305d
[ "MIT" ]
15
2017-03-16T03:04:46.000Z
2018-07-05T15:07:39.000Z
import six import chainer import numpy as np import chainer.links as L import chainer.functions as F import nutszebra_chainer import functools from collections import defaultdict class Conv(nutszebra_chainer.Model): def __init__(self, in_channel, out_channel, filter_size=(3, 3), stride=(1, 1), pad=(1, 1)): ...
42.227273
138
0.531755
1,011
6,503
3.288823
0.138477
0.090226
0.118195
0.137143
0.503158
0.438195
0.393083
0.377744
0.351579
0.350376
0
0.080375
0.311241
6,503
153
139
42.503268
0.661978
0.015685
0
0.192
0
0
0.004704
0
0
0
0
0
0
1
0.144
false
0
0.064
0.048
0.328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f46df9cfbed7221c6dfc035138710969c22cfd18
1,992
py
Python
MachineLearning/hw1/models/LinearRegression.py
ChoKyuWon/SchoolProjects
71a5decefc85ae941ba2d537c4507ba8e615cc34
[ "MIT" ]
null
null
null
MachineLearning/hw1/models/LinearRegression.py
ChoKyuWon/SchoolProjects
71a5decefc85ae941ba2d537c4507ba8e615cc34
[ "MIT" ]
null
null
null
MachineLearning/hw1/models/LinearRegression.py
ChoKyuWon/SchoolProjects
71a5decefc85ae941ba2d537c4507ba8e615cc34
[ "MIT" ]
null
null
null
import numpy as np class LinearRegression: def __init__(self, num_features): self.num_features = num_features self.W = np.zeros((self.num_features, 1)) def train(self, x, y, epochs, batch_size, lr, optim): final_loss = None # loss of final epoch # Training should b...
33.2
89
0.449799
236
1,992
3.690678
0.334746
0.082664
0.086108
0.037887
0.091848
0.052813
0
0
0
0
0
0.006265
0.358936
1,992
59
90
33.762712
0.675803
0.293675
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.027778
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
f46e88c174121a507ecd5ff0eff0efa5c6c1e776
1,655
py
Python
apps/bc_scraper/actions/schedule.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
7
2021-07-14T18:13:35.000Z
2021-11-21T20:10:54.000Z
apps/bc_scraper/actions/schedule.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
57
2021-07-10T01:31:56.000Z
2022-01-14T02:02:58.000Z
apps/bc_scraper/actions/schedule.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
4
2021-07-23T16:51:55.000Z
2021-08-31T02:41:41.000Z
from copy import copy DEFAULT_SCHEDULE = {} for day in "lmwjvs": for mod in "12345678": DEFAULT_SCHEDULE[day + mod] = "'FREE'" def process_schedule(text_sc): """For a given schedule text in BC format, returns the SQL queries for inserting the full schedule and schedule info. Those queries have t...
33.77551
87
0.583686
208
1,655
4.509615
0.360577
0.140725
0.072495
0.046908
0.168444
0.108742
0
0
0
0
0
0.012058
0.248338
1,655
48
88
34.479167
0.741961
0.140181
0
0
0
0
0.169044
0
0
0
0
0
0
1
0.029412
false
0
0.029412
0
0.088235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f46f4f4b92656a15af396d51e27d17942b2af4aa
9,739
py
Python
openstack_dashboard/dashboards/admin/volumes/views.py
NunoEdgarGFlowHub/horizon
73a0bbd43ea78ac5337f7d00977ec5f32452067e
[ "Apache-2.0" ]
1
2018-04-17T02:32:05.000Z
2018-04-17T02:32:05.000Z
openstack_dashboard/dashboards/admin/volumes/views.py
NunoEdgarGFlowHub/horizon
73a0bbd43ea78ac5337f7d00977ec5f32452067e
[ "Apache-2.0" ]
3
2021-01-21T14:27:55.000Z
2021-06-10T23:08:49.000Z
openstack_dashboard/dashboards/admin/volumes/views.py
Surfndez/horizon
a56765b6b3dbc09fd467b83a57bea2433ae3909e
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
38.34252
78
0.652736
1,122
9,739
5.442068
0.191622
0.039306
0.03734
0.029479
0.464297
0.381756
0.347036
0.310023
0.284966
0.24566
0
0.00137
0.250539
9,739
253
79
38.494071
0.835183
0.080193
0
0.398964
0
0
0.142026
0.065585
0
0
0
0
0
1
0.082902
false
0
0.07772
0.005181
0.466321
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f471777a68cf3b70989f0f48f2b4ea4d759a30a8
5,382
py
Python
rasa-sample/actions.py
ijufumi/demo-python
b48bdebde172ca581a48346a77b12c30ff202e73
[ "MIT" ]
null
null
null
rasa-sample/actions.py
ijufumi/demo-python
b48bdebde172ca581a48346a77b12c30ff202e73
[ "MIT" ]
null
null
null
rasa-sample/actions.py
ijufumi/demo-python
b48bdebde172ca581a48346a77b12c30ff202e73
[ "MIT" ]
null
null
null
import re from typing import Any, Text, Dict, List from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.events import SlotSet import lark_module class ActionHelloWorld(Action): state_map = {} def name(self) -> Text: return "action_hello_world" d...
35.642384
120
0.556856
544
5,382
5.306985
0.176471
0.067544
0.099065
0.072047
0.603395
0.57222
0.537236
0.437825
0.437825
0.421198
0
0.01129
0.308807
5,382
150
121
35.88
0.764785
0.004274
0
0.491379
0
0
0.162218
0
0
0
0
0
0
1
0.086207
false
0
0.051724
0.043103
0.284483
0.086207
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f471a2c4554505f4474a4ceb98a24f55991c2cdc
1,557
py
Python
parsers/politico.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
null
null
null
parsers/politico.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
null
null
null
parsers/politico.py
plympton/newsdiffs
2a055850bda850b9b6c28c989512d4e4b3e9b64e
[ "MIT" ]
null
null
null
from baseparser import BaseParser, grab_url, logger # Different versions of BeautifulSoup have different properties. # Some work with one site, some with another. # This is BeautifulSoup 3.2. from BeautifulSoup import BeautifulSoup # This is BeautifulSoup 4 import bs4 class PoliticoParser(BaseParser): domains = ...
35.386364
80
0.620424
196
1,557
4.852041
0.540816
0.02103
0.044164
0.042061
0
0
0
0
0
0
0
0.013664
0.247913
1,557
43
81
36.209302
0.798463
0.163776
0
0
0
0
0.132819
0.016216
0.035714
0
0
0
0
1
0.035714
false
0
0.107143
0
0.321429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f472e924139d73818eedf6b97de856c2ca049e7a
6,535
py
Python
integration-tests/bats/server_multiclient_test.py
fairhopeweb/dolt
276b85b7b1287f883640ef3fcacb0bdb112749b2
[ "Apache-2.0" ]
2
2021-03-09T07:32:40.000Z
2021-06-11T21:41:30.000Z
integration-tests/bats/server_multiclient_test.py
albertusortiz/dolt
38fc4fcb0357a56eb97abdb25296f45571a5418f
[ "Apache-2.0" ]
null
null
null
integration-tests/bats/server_multiclient_test.py
albertusortiz/dolt
38fc4fcb0357a56eb97abdb25296f45571a5418f
[ "Apache-2.0" ]
1
2021-08-06T13:05:57.000Z
2021-08-06T13:05:57.000Z
import os import sys from queue import Queue from threading import Thread from helper.pytest import DoltConnection # Utility functions def print_err(e): print(e, file=sys.stderr) def query(dc, query_str): return dc.query(query_str, False) def query_with_expected_error(dc, non_error_msg , query_str): ...
32.839196
140
0.680643
984
6,535
4.303862
0.197154
0.029752
0.01889
0.034711
0.320897
0.274616
0.212987
0.189138
0.150649
0.141677
0
0.016885
0.19342
6,535
198
141
33.005051
0.786568
0.096557
0
0.258993
0
0.028777
0.25594
0.046164
0
0
0
0
0
1
0.136691
false
0.007194
0.035971
0.014388
0.194245
0.028777
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f475a7baedbb00d2706f41a680754762b1e5e2d7
6,599
py
Python
oscar/lib/python2.7/site-packages/prompt_toolkit/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/prompt_toolkit/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/prompt_toolkit/utils.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import inspect import os import signal import sys import threading import weakref from wcwidth import wcwidth from six.moves import range __all__ = ( 'Event', 'DummyContext', 'get_cwidth', 'suspend_to_background_supported', 'is_conemu_ansi'...
27.381743
88
0.575542
772
6,599
4.76943
0.331606
0.010864
0.017382
0.015209
0.015209
0
0
0
0
0
0
0.007738
0.334142
6,599
240
89
27.495833
0.830223
0.340052
0
0.114035
0
0
0.068948
0.008035
0
0
0
0
0.061404
1
0.140351
false
0.017544
0.078947
0
0.359649
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f476ce15c4cf3ddf393197690eec2e823de61189
92,209
py
Python
lmdb/cffi.py
hirnimeshrampuresoftware/py-lmdb
9aa7560f8e1a89b437fb3fed7ea36f5888b7a963
[ "OLDAP-2.8" ]
185
2019-06-18T15:58:49.000Z
2022-03-09T09:42:57.000Z
lmdb/cffi.py
hirnimeshrampuresoftware/py-lmdb
9aa7560f8e1a89b437fb3fed7ea36f5888b7a963
[ "OLDAP-2.8" ]
114
2019-06-15T04:19:04.000Z
2022-03-30T06:34:44.000Z
lmdb/cffi.py
hirnimeshrampuresoftware/py-lmdb
9aa7560f8e1a89b437fb3fed7ea36f5888b7a963
[ "OLDAP-2.8" ]
32
2019-07-03T23:56:58.000Z
2022-02-12T04:46:16.000Z
# # Copyright 2013 The py-lmdb authors, all rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted only as authorized by the OpenLDAP # Public License. # # A copy of this license is available in the file LICENSE in the # top-level directory of the distribut...
37.728723
105
0.596298
11,551
92,209
4.570513
0.104233
0.016366
0.011138
0.013922
0.387525
0.349983
0.332386
0.307024
0.282381
0.265636
0
0.017764
0.305849
92,209
2,443
106
37.744167
0.807052
0.472405
0
0.290688
0
0
0.258397
0.023818
0
0
0
0
0
1
0.08094
false
0.001741
0.013055
0.005222
0.228895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f477633c1badf20c6b9aa7cdc1d086ce3dd6b193
6,425
py
Python
.virtual_documents/00_core.ipynb.py
AtomScott/image_folder_datasets
935580929abc9d8ec9eeaf944a0d3c670a09d04d
[ "Apache-2.0" ]
null
null
null
.virtual_documents/00_core.ipynb.py
AtomScott/image_folder_datasets
935580929abc9d8ec9eeaf944a0d3c670a09d04d
[ "Apache-2.0" ]
null
null
null
.virtual_documents/00_core.ipynb.py
AtomScott/image_folder_datasets
935580929abc9d8ec9eeaf944a0d3c670a09d04d
[ "Apache-2.0" ]
null
null
null
# default_exp core #hide from nbdev.showdoc import * from fastcore.test import * # export import os import torch from torch import nn from torch.nn import functional as F from torch.utils.data import DataLoader import warnings import torchvision from torchvision.datasets import MNIST, ImageFolder from torchvision...
32.286432
127
0.651518
803
6,425
5.048568
0.28269
0.017267
0.006167
0.00444
0.361618
0.344845
0.316724
0.260977
0.24223
0.21263
0
0.021994
0.242802
6,425
198
128
32.449495
0.811305
0.104591
0
0.23622
0
0
0.069134
0.023045
0
0
0
0.005051
0.015748
1
0.125984
false
0.015748
0.11811
0.023622
0.314961
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f477fec40612fa1a5fd9ffbd050a890ebec79d19
2,030
py
Python
test_scripts/pyfora2/containerTests.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
test_scripts/pyfora2/containerTests.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
test_scripts/pyfora2/containerTests.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
33.833333
76
0.733005
227
2,030
6.515419
0.475771
0.052062
0.040568
0.056795
0.125761
0
0
0
0
0
0
0.011607
0.193596
2,030
59
77
34.40678
0.891875
0.278325
0
0.085714
0
0
0.035912
0
0
0
0
0
0
1
0.085714
false
0
0.257143
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4782d553047c0d6c83eb8c3ac341a236af78e5e
597
py
Python
src/utils/torch_common.py
quochungto/SIIM-COVID19-Detection
88bc10d7b01d277d223c4dddd4c223a782616611
[ "MIT" ]
null
null
null
src/utils/torch_common.py
quochungto/SIIM-COVID19-Detection
88bc10d7b01d277d223c4dddd4c223a782616611
[ "MIT" ]
null
null
null
src/utils/torch_common.py
quochungto/SIIM-COVID19-Detection
88bc10d7b01d277d223c4dddd4c223a782616611
[ "MIT" ]
null
null
null
import os import gc import random import numpy as np import torch def seed_everything(seed): os.environ['PYTHONHASHSEED'] = str(seed) random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.backends.cudnn.deterministic = True torch.backends.cudnn.be...
21.321429
59
0.673367
80
597
4.9375
0.5625
0.081013
0.098734
0.096203
0
0
0
0
0
0
0
0.008565
0.217755
597
27
60
22.111111
0.837259
0.127303
0
0
0
0
0.027944
0
0
0
0
0
0
1
0.105263
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4793bd8d4530ee80fabe88563d6a3ddbecb48d2
6,713
py
Python
recipes/freeimage/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
null
null
null
recipes/freeimage/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
null
null
null
recipes/freeimage/all/conanfile.py
marsven/conan-center-index
d8bb4ad617cee02d8664e8341fa32cdf702e4284
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools import os import shutil required_conan_version = ">=1.43.0" class FreeImageConan(ConanFile): name = "freeimage" description = "Open Source library project for developers who would like to support popular graphics image formats"\ "like PNG, BMP, JPE...
40.439759
120
0.619097
791
6,713
5.078382
0.219975
0.093104
0.10829
0.076176
0.379885
0.188449
0.156585
0.147623
0.127209
0.048793
0
0.014162
0.242663
6,713
165
121
40.684848
0.775964
0
0
0.156463
0
0
0.216148
0.003575
0
0
0
0
0
1
0.081633
false
0
0.020408
0.013605
0.217687
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f47944bb4b7b60683bb6b4d4d72854dfc4c98c2a
110,180
py
Python
src/google/appengine/datastore/datastore_query.py
myelin/appengine-python-standard
2a99acd114f7cdd66fbad9bfd185384eef847c84
[ "Apache-2.0" ]
null
null
null
src/google/appengine/datastore/datastore_query.py
myelin/appengine-python-standard
2a99acd114f7cdd66fbad9bfd185384eef847c84
[ "Apache-2.0" ]
null
null
null
src/google/appengine/datastore/datastore_query.py
myelin/appengine-python-standard
2a99acd114f7cdd66fbad9bfd185384eef847c84
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google LLC # # 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...
32.482311
81
0.690634
14,487
110,180
4.991648
0.064748
0.019291
0.033009
0.026385
0.433955
0.362184
0.289653
0.244033
0.222543
0.191222
0
0.003428
0.232274
110,180
3,391
82
32.49189
0.851468
0.297205
0
0.351882
0
0
0.05479
0.00705
0
0
0
0
0.001637
1
0.118385
false
0.000546
0.010366
0.027278
0.278232
0.000546
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f47a1ea7f8990d7f8f0d9190441ddb6344e10412
1,785
py
Python
parsing/tests/test_utils.py
davesque/parsing.py
ff8b20e53b94e79571971ef23f0e5091e2786566
[ "MIT" ]
1
2020-11-14T13:06:42.000Z
2020-11-14T13:06:42.000Z
parsing/tests/test_utils.py
davesque/parsing.py
ff8b20e53b94e79571971ef23f0e5091e2786566
[ "MIT" ]
null
null
null
parsing/tests/test_utils.py
davesque/parsing.py
ff8b20e53b94e79571971ef23f0e5091e2786566
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import unittest from ..utils import compose, flatten, truncate, join, unary, equals class TestEquals(unittest.TestCase): def test_it_should_return_a_function_that_compares_against_x(self): self.assertTrue(equals(234)(234)) self.assertFalse(equals(234)(123)...
30.775862
87
0.652101
223
1,785
4.982063
0.336323
0.162016
0.10261
0.124212
0.225023
0.178218
0
0
0
0
0
0.038765
0.219608
1,785
57
88
31.315789
0.758794
0
0
0.04878
0
0
0.061064
0.017927
0
0
0
0
0.341463
1
0.146341
false
0
0.073171
0
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f47b6c51761fb432f29fb2e6eb1f0ea2e885172e
1,807
py
Python
Array/Final450/Move_Negative_Nums_To_One_End/relative_order_matters/move_negative_nums_to_one_end--insertion_sort_modified.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Move_Negative_Nums_To_One_End/relative_order_matters/move_negative_nums_to_one_end--insertion_sort_modified.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Move_Negative_Nums_To_One_End/relative_order_matters/move_negative_nums_to_one_end--insertion_sort_modified.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
from Utils.Array import input_array # Time : O(n2) # Space : O(1) Constant space """ Ill be having 2 pointers here one of them will move through the array looking for -ve numbers to operate on and another will be pointing to the correct location where i can put the -ve elements, after i find them also this same...
34.09434
105
0.646375
301
1,807
3.757475
0.415282
0.035367
0.04244
0.056587
0.091954
0
0
0
0
0
0
0.036378
0.285003
1,807
52
106
34.75
0.839009
0.203652
0
0
0
0
0.012862
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
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
f47c09e34304fe10a016d16f624d1fb84ab59f99
2,786
py
Python
python_test/test_epoll/test_epoll.py
zhtsh/test-examples
ed5a45bf8546a9bd7fc35e38f9679be385d0d9e6
[ "Apache-2.0" ]
null
null
null
python_test/test_epoll/test_epoll.py
zhtsh/test-examples
ed5a45bf8546a9bd7fc35e38f9679be385d0d9e6
[ "Apache-2.0" ]
null
null
null
python_test/test_epoll/test_epoll.py
zhtsh/test-examples
ed5a45bf8546a9bd7fc35e38f9679be385d0d9e6
[ "Apache-2.0" ]
null
null
null
# coding=utf8 import socket import select from datetime import datetime from datetime import timedelta EOL = b'\n\n' response = b'HTTP/1.0 200 OK\nDate: Mon, 1 Jan 1996 01:01:01 GMT\n' response += b'Content-Type: text/plain\nContent-Length: 13\n\n' response += b'Hello, world!\n' # 创建套接字对象并绑定监听端口 servers...
38.164384
79
0.561378
260
2,786
5.996154
0.4
0.076331
0.019243
0.014112
0.105837
0.105837
0.105837
0.071841
0.071841
0
0
0.021253
0.34135
2,786
72
80
38.694444
0.828338
0.145011
0
0.240741
0
0.018519
0.055314
0.01176
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
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
f47cd9858ae9886cfca8b27e46c09a635662d571
2,771
py
Python
20.2-Donut/Donut2.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
1
2020-09-27T23:02:46.000Z
2020-09-27T23:02:46.000Z
20.2-Donut/Donut2.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
null
null
null
20.2-Donut/Donut2.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
1
2019-12-09T17:10:48.000Z
2019-12-09T17:10:48.000Z
import collections from pprint import pprint example1 = open("input.txt", "r").read() # grid = [[val for val in line] for line in example1.split("\n")] grid = example1.split("\n") length = 0 for line in grid: length = max(len(line), length) out = [] for line in grid: out.append(line[::-1].zfill(length)[::-1...
24.741071
93
0.498015
425
2,771
3.103529
0.223529
0.030326
0.018196
0.02047
0.052312
0.052312
0.043215
0
0
0
0
0.021906
0.341032
2,771
111
94
24.963964
0.700438
0.067124
0
0.051282
0
0
0.010089
0
0
0
0
0
0
1
0.012821
false
0
0.025641
0
0.064103
0.064103
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f47e72619d39a8c165d31a3169ddc7283ecd466a
845
py
Python
OR_Client_Library/openrefine_client/tests/test_history.py
idaks/OpenRefine-Provenance-Tools
cc469c3eb8e56c8b0f4616cc501546db3c4176ea
[ "MIT" ]
null
null
null
OR_Client_Library/openrefine_client/tests/test_history.py
idaks/OpenRefine-Provenance-Tools
cc469c3eb8e56c8b0f4616cc501546db3c4176ea
[ "MIT" ]
null
null
null
OR_Client_Library/openrefine_client/tests/test_history.py
idaks/OpenRefine-Provenance-Tools
cc469c3eb8e56c8b0f4616cc501546db3c4176ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ test_history.py """ # Copyright (c) 2011 Paul Makepeace, Real Programmers. All rights reserved. import unittest from OR_Client_Library.openrefine_client.google.refine.history import * class HistoryTest(unittest.TestCase): def test_init(self): response = { u"code": ...
26.40625
75
0.60355
95
845
5.231579
0.568421
0.090543
0.120724
0.088531
0.080483
0.080483
0
0
0
0
0
0.095847
0.259172
845
31
76
27.258065
0.698083
0.130178
0
0
0
0
0.190083
0
0
0
0
0
0.157895
1
0.052632
false
0
0.105263
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f47f72a41b188aa9caae89718d01a31bf276031b
6,160
py
Python
tests/batch/test_get_batch.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
null
null
null
tests/batch/test_get_batch.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
94
2019-03-27T09:34:28.000Z
2019-08-27T05:32:33.000Z
tests/batch/test_get_batch.py
Remmeauth/remme-core-cli
94cc09fe9d2e718b45273dde68d6c672c4773f6a
[ "MIT" ]
6
2019-06-06T15:16:38.000Z
2020-02-24T12:55:55.000Z
""" Provide tests for command line interface's get batch command. """ import json import pytest from click.testing import CliRunner from cli.constants import ( DEV_BRANCH_NODE_IP_ADDRESS_FOR_TESTING, FAILED_EXIT_FROM_COMMAND_CODE, PASSED_EXIT_FROM_COMMAND_CODE, ) from cli.entrypoint import cli from cli.ut...
34.606742
118
0.63961
537
6,160
7.013035
0.242086
0.040892
0.027881
0.035316
0.348115
0.294211
0.263675
0.237918
0.237918
0.187201
0
0.148123
0.27776
6,160
177
119
34.80226
0.698359
0.099513
0
0.507813
0
0
0.347171
0.239713
0
0
0
0
0.078125
1
0.039063
false
0.03125
0.046875
0
0.085938
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4838193c2db95eaa11b6561ddf47a01a31acc59
690
py
Python
pyllusion/movement/movement_circles.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
pyllusion/movement/movement_circles.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
pyllusion/movement/movement_circles.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
import numpy as np from .movement_matrix import movement_matrix from ..image import image_circles def movement_circles(n=50, duration=2, fps=30, width=500, height=500, **kwargs): """ >>> import pyllusion as ill >>> >>> images = ill.movement_circles(n=50, duration=4, fps=30, color="black", size=0.05) ...
27.6
89
0.631884
101
690
4.188119
0.445545
0.066194
0.07565
0.085106
0.122931
0
0
0
0
0
0
0.038961
0.218841
690
24
90
28.75
0.745826
0.282609
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f484180dc11ca61b16fecb37c23ed96a63de8738
6,853
py
Python
sce.py
hzwfl2/Semantic-consistent-Embedding
d3712cc6f27febbf654e1eb8c43c0b48376a9be1
[ "MIT" ]
2
2021-12-22T07:39:30.000Z
2022-01-02T14:45:39.000Z
sce.py
hch-xmu/Semantic-consistent-Embedding
2e408267095079d70daff6b391209aabb3d9acd3
[ "MIT" ]
null
null
null
sce.py
hch-xmu/Semantic-consistent-Embedding
2e408267095079d70daff6b391209aabb3d9acd3
[ "MIT" ]
3
2021-12-16T12:56:10.000Z
2022-01-18T02:03:31.000Z
#%% import matplotlib.pyplot as plt import numpy as np import pandas as pd import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import accuracy_score from sklearn.naive_bayes import GaussianNB f...
33.758621
168
0.618707
954
6,853
4.232704
0.220126
0.010896
0.020802
0.011887
0.116147
0.072808
0.053492
0.027241
0.027241
0
0
0.031585
0.223844
6,853
203
169
33.758621
0.72758
0.002773
0
0.013333
0
0
0.040906
0.013736
0
0
0
0
0.006667
1
0.073333
false
0
0.1
0.006667
0.246667
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f484cdb74eddcab3519034cf17a9751d9384ce4d
1,876
py
Python
graphsage/partition_predict.py
colirain/GraphSAGE
a63145ff18f87cb69340c7b457c34839e9124086
[ "MIT" ]
null
null
null
graphsage/partition_predict.py
colirain/GraphSAGE
a63145ff18f87cb69340c7b457c34839e9124086
[ "MIT" ]
null
null
null
graphsage/partition_predict.py
colirain/GraphSAGE
a63145ff18f87cb69340c7b457c34839e9124086
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from graphsage.models import FCPartition from graphsage.partition_train import construct_placeholders from graphsage.utils import load_graph_data, load_embedded_data, load_embedded_idmap flags = tf.app.flags FLAGS = flags.FLAGS # flags.DEFINE_integer('dim_1', ...
30.754098
95
0.678038
254
1,876
4.744094
0.334646
0.082158
0.039834
0.033195
0.121992
0.087137
0
0
0
0
0
0.009908
0.192964
1,876
61
96
30.754098
0.785997
0.299041
0
0
0
0
0.041935
0
0
0
0
0
0
1
0.060606
false
0
0.151515
0
0.212121
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f484e0eafc21497bc2d0dc913be6480e2eceab78
13,307
py
Python
scripts/generate_XML_files/DS1/annotatedsen_to_xml.py
AmmarQaseem/CPI-Pipeline-test
3866883c54d7bd77753ee4b72997949bdcf76359
[ "PostgreSQL", "ISC", "Intel" ]
null
null
null
scripts/generate_XML_files/DS1/annotatedsen_to_xml.py
AmmarQaseem/CPI-Pipeline-test
3866883c54d7bd77753ee4b72997949bdcf76359
[ "PostgreSQL", "ISC", "Intel" ]
null
null
null
scripts/generate_XML_files/DS1/annotatedsen_to_xml.py
AmmarQaseem/CPI-Pipeline-test
3866883c54d7bd77753ee4b72997949bdcf76359
[ "PostgreSQL", "ISC", "Intel" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Copyright (c) 2015, Elham Abbasian <e_abbasian@yahoo.com>, Kersten Doering <kersten.doering@gmail.com> This parser reads annotated sentences (output from get_relations.py) in a tab-separated format to generate a unified XML format (Tikk et al., 2010. A compreh...
58.364035
425
0.618622
1,814
13,307
4.409592
0.211687
0.048756
0.031629
0.016502
0.292787
0.24303
0.230404
0.217652
0.204651
0.185523
0
0.022917
0.252348
13,307
227
426
58.621145
0.781084
0.362441
0
0.307018
0
0
0.182658
0.02854
0.017544
0
0
0.008811
0
1
0
false
0
0.035088
0
0.035088
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f484e4f5510b4a5e4e942079f6f30e54e25d0b89
488
py
Python
tests/test_add_contact.py
SergeyDorokhov/python_training
e15e561fe7ad055048643adcfc88b3f2d55530ca
[ "Apache-2.0" ]
null
null
null
tests/test_add_contact.py
SergeyDorokhov/python_training
e15e561fe7ad055048643adcfc88b3f2d55530ca
[ "Apache-2.0" ]
null
null
null
tests/test_add_contact.py
SergeyDorokhov/python_training
e15e561fe7ad055048643adcfc88b3f2d55530ca
[ "Apache-2.0" ]
null
null
null
def test_add_contact(app, db, json_contacts, check_ui): contact = json_contacts list_before = db.get_contact_list() contact.id_contact = app.contact.get_next_id(list_before) app.contact.create(contact) assert len(list_before) + 1 == len(db.get_contact_list()) list_after = db.get_contact_list() ...
44.363636
67
0.727459
72
488
4.597222
0.319444
0.151057
0.108761
0.145015
0.120846
0
0
0
0
0
0
0.002439
0.159836
488
11
67
44.363636
0.804878
0
0
0
0
0
0
0
0
0
0
0
0.272727
1
0.090909
false
0
0
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f485580fbee3d8993b0b04b4d71777a8883725b7
1,182
py
Python
website/members/urls.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
null
null
null
website/members/urls.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
null
null
null
website/members/urls.py
eamanu/asoc_members
bf2e99e9c63c60a59bdfd10ca1812d78851cbde6
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.urls import path from members import views urlpatterns = [ path('solicitud-alta/', views.signup_initial, name='signup'), path('solicitud-alta/persona/', views.signup_form_person, name='signup_person'), path('solicitud-...
47.28
88
0.755499
147
1,182
5.857143
0.319728
0.111498
0.078978
0
0
0
0
0
0
0
0
0
0.102369
1,182
24
89
49.25
0.811499
0
0
0
0
0
0.334179
0.080372
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f485c8b7834281c5e46b0be30ec91fef7f0a76cd
2,482
py
Python
Benchmarking/Keras/Tensorflow/TF_dataforcomparisongraphss.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
Benchmarking/Keras/Tensorflow/TF_dataforcomparisongraphss.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
Benchmarking/Keras/Tensorflow/TF_dataforcomparisongraphss.py
vais-ral/CCPi-ML
ca9baeb0dd5db3a97ac8ab9e33e03aeae42ebfa4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 18 14:04:03 2018 @author: zyv57124 """ import scipy.io as sio import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib import matplotlib.pyplot as plt from tensorflow.python.training import gradient_descent from time import tim...
17.236111
144
0.580983
304
2,482
4.638158
0.440789
0.034043
0.034043
0.024113
0.048227
0.048227
0.048227
0
0
0
0
0.036885
0.213537
2,482
144
145
17.236111
0.685451
0.193392
0
0
0
0
0.046851
0.0267
0
0
0
0
0
1
0.081633
false
0
0.163265
0.020408
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
f485da5cf70dcae9f004e6210259cc3b9e4d5254
402
py
Python
Easy/two-numbers-sum/solution-1.py
MCFrank16/python-algo
dd48f6c5b9f4a941a18fc4620164c807c0e1d35e
[ "MIT" ]
null
null
null
Easy/two-numbers-sum/solution-1.py
MCFrank16/python-algo
dd48f6c5b9f4a941a18fc4620164c807c0e1d35e
[ "MIT" ]
null
null
null
Easy/two-numbers-sum/solution-1.py
MCFrank16/python-algo
dd48f6c5b9f4a941a18fc4620164c807c0e1d35e
[ "MIT" ]
null
null
null
# solution 1: Brute Force # time complexity: O(n^2) # space complexity: O(1) def twoNumberSum(arr, n): for i in range(len(arr) - 1): firstNum = arr[i] for j in range(i + 1, len(arr)): secondNum = arr[j] if firstNum + secondNum == n: return [first...
23.647059
45
0.524876
57
402
3.701754
0.54386
0.104265
0
0
0
0
0
0
0
0
0
0.059259
0.328358
402
16
46
25.125
0.722222
0.174129
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f488b98251360b04f0d4a4065b27efc58a8ffeb9
8,448
py
Python
data_extraction/scripts/bnf_adr_extraction.py
elpidakon/CRESCENDDI
ab9e65621d331689f4aaeeb08902f29d90b7d1b9
[ "MIT" ]
null
null
null
data_extraction/scripts/bnf_adr_extraction.py
elpidakon/CRESCENDDI
ab9e65621d331689f4aaeeb08902f29d90b7d1b9
[ "MIT" ]
null
null
null
data_extraction/scripts/bnf_adr_extraction.py
elpidakon/CRESCENDDI
ab9e65621d331689f4aaeeb08902f29d90b7d1b9
[ "MIT" ]
null
null
null
# Kontsioti, Maskell, Dutta & Pirmohamed, A reference set of clinically relevant # adverse drug-drug interactions (2021) # Code to extract single-drug side effect data from the BNF website from bs4 import BeautifulSoup import urllib import os, csv import numpy as np import pandas as pd import re from tqdm i...
43.546392
147
0.68608
1,249
8,448
4.456365
0.196157
0.059828
0.034495
0.017607
0.416098
0.318721
0.268954
0.23392
0.208049
0.193676
0
0.009978
0.1933
8,448
193
148
43.772021
0.80675
0.289536
0
0.176991
0
0
0.172396
0.007292
0
0
0
0
0
1
0
false
0
0.061947
0
0.061947
0.061947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f489d029eb3e215d049f6f2f3cc368f56d30226f
1,080
py
Python
core/forms.py
nicoknoll/howimetcorona
c55198118b2c31ee8b76c023b5a9fc4454cc1e08
[ "Apache-2.0" ]
1
2020-03-21T09:47:17.000Z
2020-03-21T09:47:17.000Z
core/forms.py
nicoknoll/howimetcorona
c55198118b2c31ee8b76c023b5a9fc4454cc1e08
[ "Apache-2.0" ]
5
2020-03-20T20:12:16.000Z
2021-09-22T18:46:48.000Z
core/forms.py
nicoknoll/howimetcorona
c55198118b2c31ee8b76c023b5a9fc4454cc1e08
[ "Apache-2.0" ]
null
null
null
from django import forms class BaseFileForm(forms.Form): # we try to minify the file to only submit the data points_file = forms.FileField( required=False, widget=forms.FileInput(attrs={'required': 'required'}), label="Location History File (.json)" ) points_data = forms.CharFi...
28.421053
77
0.662963
136
1,080
5.154412
0.470588
0.071327
0.064194
0.051355
0.068474
0
0
0
0
0
0
0.012806
0.20463
1,080
37
78
29.189189
0.80326
0.04537
0
0
0
0.04
0.174927
0.029155
0
0
0
0
0
1
0.04
false
0.04
0.04
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f48bfbdf82f8ea69c9578103bcb880d230cfe368
718
py
Python
papers/wdmerger_I/plots/sponge.py
AMReX-Astro/wdmerger
9f575efacc8d373b6d2961f731e30bf59ee15ffd
[ "MIT" ]
2
2019-01-23T21:12:02.000Z
2021-12-14T07:34:38.000Z
papers/wdmerger_I/plots/sponge.py
AMReX-Astro/wdmerger
9f575efacc8d373b6d2961f731e30bf59ee15ffd
[ "MIT" ]
1
2017-08-05T06:25:41.000Z
2017-08-05T06:25:41.000Z
papers/wdmerger_I/plots/sponge.py
AMReX-Astro/wdmerger
9f575efacc8d373b6d2961f731e30bf59ee15ffd
[ "MIT" ]
2
2018-12-25T01:05:59.000Z
2020-12-28T10:01:59.000Z
# This Python program is used to create a plot displaying the sponge # function we use in the CASTRO hydrodynamics for the wdmerger problem. import numpy as np import matplotlib.pyplot as plt def sponge(r): sp rs = 0.75 rt = 0.85 r = np.linspace(0.0, 1.0, 1000) f = np.zeros(len(r)) idx = np.where(r < rs) f[id...
18.894737
71
0.635097
145
718
3.124138
0.455172
0.022075
0.0883
0.09713
0.057395
0
0
0
0
0
0
0.072635
0.175487
718
37
72
19.405405
0.692568
0.190808
0
0
0
0
0.043253
0
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f48c4c17d15169f83e1e0f82eed8e69642feb9a8
753
py
Python
Python/110-1/Midterm Additional HW/005.py
JenFuChen/NKUST
bd80a449eddfdaf75709379d2e904ff70d409666
[ "MIT" ]
3
2021-11-07T17:33:54.000Z
2021-12-28T08:31:20.000Z
Python/110-1/Midterm Additional HW/005.py
JenFuChen/NKUST
bd80a449eddfdaf75709379d2e904ff70d409666
[ "MIT" ]
null
null
null
Python/110-1/Midterm Additional HW/005.py
JenFuChen/NKUST
bd80a449eddfdaf75709379d2e904ff70d409666
[ "MIT" ]
null
null
null
# 005 印出菱形 while(1): level = int(input()) if(level <= 0): break L = 2*level-1 mid = int((L - 1) / 2) inspa = mid * 2 - 1 for i in range(L): spa = level - i - 1 if spa >= 0: print(" " * spa, end='') print('*', end='') if spa < 0...
25.965517
44
0.332005
91
753
2.747253
0.252747
0.192
0.176
0.156
0.292
0.292
0.176
0.176
0.176
0
0
0.051813
0.487384
753
28
45
26.892857
0.595855
0.010624
0
0.307692
0
0
0.011189
0
0
0
0
0
0
1
0
false
0
0
0
0
0.346154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f48c7224abe2e2f0a451d9341ea395ac8a419de0
1,978
py
Python
dynamo/plot/pseudotime.py
davisidarta/dynamo-release
0dbd769f52ea07f3cdaa8fb31022ceb89938c382
[ "BSD-3-Clause" ]
null
null
null
dynamo/plot/pseudotime.py
davisidarta/dynamo-release
0dbd769f52ea07f3cdaa8fb31022ceb89938c382
[ "BSD-3-Clause" ]
null
null
null
dynamo/plot/pseudotime.py
davisidarta/dynamo-release
0dbd769f52ea07f3cdaa8fb31022ceb89938c382
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from ..tools.utils import update_dict from .utils import save_fig def plot_direct_graph(adata, layout=None, figsize=[6, 4], save_show_or_return='show', save_kwargs={}, ): df_mat = adata...
28.257143
86
0.532356
230
1,978
4.4
0.504348
0.031621
0.039526
0.063241
0.063241
0
0
0
0
0
0
0.010196
0.35541
1,978
69
87
28.666667
0.783529
0.128918
0
0
0
0
0.098657
0
0
0
0
0
0
1
0.018519
false
0
0.092593
0
0.12963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f48d18e383286d35c87dd89bd5701bc78cbbbad7
4,327
py
Python
ocean_lib/web3_internal/utils.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
null
null
null
ocean_lib/web3_internal/utils.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
1
2021-02-16T18:31:53.000Z
2021-02-16T18:31:53.000Z
ocean_lib/web3_internal/utils.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 import json import logging import os from collections import namedtuple import eth_account import eth_keys import eth_utils from eth_keys import KeyAPI from eth_utils import big_endian_to_int from ocean_lib.web3_internal.web3_provider i...
29.040268
95
0.697712
592
4,327
4.890203
0.271959
0.031088
0.017271
0.02418
0.097064
0.064594
0.042832
0.026252
0.026252
0
0
0.021178
0.203374
4,327
148
96
29.236486
0.818683
0.181419
0
0
0
0
0.126254
0.034808
0
0
0
0
0.036585
1
0.109756
false
0.036585
0.146341
0.012195
0.378049
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f48e86cd3da483fb8b0fe253866faf1ceee934c8
8,444
py
Python
src/main.py
ketsonroberto/PBDO
cdc1c5275bc17753be5c06a216f92391b6f1f1ab
[ "MIT" ]
null
null
null
src/main.py
ketsonroberto/PBDO
cdc1c5275bc17753be5c06a216f92391b6f1f1ab
[ "MIT" ]
null
null
null
src/main.py
ketsonroberto/PBDO
cdc1c5275bc17753be5c06a216f92391b6f1f1ab
[ "MIT" ]
null
null
null
# THIS IS A FILE TO TEST THE CODE. DO NOT USE IT AS PART OF THE CODE. import matplotlib.pyplot as plt import numpy as np from StochasticMechanics import Stochastic from scipy.optimize import minimize from Performance import PerformanceOpt from Hazards import Stationary from Building import * from BuildingProperties im...
30.157143
114
0.620441
1,376
8,444
3.679506
0.227471
0.027652
0.027652
0.012443
0.245309
0.196721
0.156627
0.121865
0.095398
0.095398
0
0.052365
0.206182
8,444
279
115
30.265233
0.702969
0.363809
0
0.061224
0
0
0.005922
0
0
0
0
0
0
1
0
false
0
0.132653
0
0.132653
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f48e9c0665ea9a8d85811305b04f10d8aba4b991
777
py
Python
categorical_embedder/embedders/core/aux/custom_object_handler.py
erelcan/categorical-embedder
376b8779500af2aa459c879f8e525f2ef25d6b31
[ "Apache-2.0" ]
3
2020-12-19T10:52:58.000Z
2021-06-08T09:06:44.000Z
categorical_embedder/embedders/core/aux/custom_object_handler.py
erelcan/categorical-embedder
376b8779500af2aa459c879f8e525f2ef25d6b31
[ "Apache-2.0" ]
null
null
null
categorical_embedder/embedders/core/aux/custom_object_handler.py
erelcan/categorical-embedder
376b8779500af2aa459c879f8e525f2ef25d6b31
[ "Apache-2.0" ]
null
null
null
from categorical_embedder.embedders.core.aux.custom_layers import get_custom_layer_class from categorical_embedder.embedders.core.aux.loss_factory import get_loss_function def prepare_custom_objects(custom_object_info): custom_objects = {} custom_objects.update(_prepare_custom_layers(custom_object_info["layer...
35.318182
88
0.804376
107
777
5.336449
0.271028
0.126095
0.112084
0.112084
0.248687
0.136602
0
0
0
0
0
0
0.119691
777
21
89
37
0.834795
0
0
0
0
0
0.05148
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f48f23b7a5506d60b9ac1a5607df61a337660101
10,406
py
Python
osprofiler/cmd/shell.py
charliebr30/osprofiler
cffca4e29e373e3f09f2ffdd458761183a851569
[ "Apache-2.0" ]
null
null
null
osprofiler/cmd/shell.py
charliebr30/osprofiler
cffca4e29e373e3f09f2ffdd458761183a851569
[ "Apache-2.0" ]
1
2017-04-15T22:16:06.000Z
2017-04-15T22:16:06.000Z
osprofiler/cmd/shell.py
shwsun/osprofiler
46d29fc5ab8a4068217e399883f39cdd443a7500
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis Inc. # 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...
42.129555
79
0.548818
1,126
10,406
4.867673
0.221137
0.035577
0.080642
0.065864
0.369823
0.24813
0.090312
0.031381
0.01642
0.01642
0
0.003449
0.35912
10,406
246
80
42.300813
0.818414
0.104939
0
0.05814
0
0
0.279328
0.044813
0
0
0
0.004065
0
1
0.040698
false
0.034884
0.052326
0
0.122093
0.005814
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f48f3252e9a2f94d57cf6c129396083ea3b2d577
3,695
py
Python
bmt/util.py
patrickkwang/bmt-lite
bf97f6155702a8eb38daf5a45df34b0ce1cb1a4b
[ "MIT" ]
null
null
null
bmt/util.py
patrickkwang/bmt-lite
bf97f6155702a8eb38daf5a45df34b0ce1cb1a4b
[ "MIT" ]
null
null
null
bmt/util.py
patrickkwang/bmt-lite
bf97f6155702a8eb38daf5a45df34b0ce1cb1a4b
[ "MIT" ]
null
null
null
"""Utilities.""" from functools import wraps import re from typing import Callable, List, Optional, TypeVar, Union from .data import ( all_classes, all_slots, ) def pascal_to_snake(s: str, sep: str = "_") -> str: """Convert Pascal case to snake case. Assumes that a) all words are either all-lowercas...
27.781955
83
0.558863
448
3,695
4.537946
0.310268
0.011805
0.005903
0.01033
0.092966
0.074766
0.026562
0.026562
0.026562
0.026562
0
0.002324
0.301218
3,695
132
84
27.992424
0.78505
0.256834
0
0.1375
0
0
0.068399
0.030951
0
0
0
0
0
1
0.125
false
0
0.05
0
0.3875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be2e1617c4a15afe6886703b261c4b500fdae5e3
7,960
py
Python
sktime/utils/time_series.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2020-09-11T06:26:08.000Z
2020-09-11T06:26:08.000Z
sktime/utils/time_series.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/utils/time_series.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2022-02-14T18:19:01.000Z
2022-02-14T18:19:01.000Z
__author__ = ["Markus Löning"] __all__ = [ "compute_relative_to_n_timepoints", "time_series_slope", "fit_trend", "remove_trend", "add_trend" ] import numpy as np from sklearn.utils import check_array from sktime.utils.validation.forecasting import check_time_index def compute_relative_to_n_timep...
29.157509
79
0.593593
1,083
7,960
4.226223
0.184672
0.045226
0.02447
0.019664
0.471488
0.426917
0.396329
0.354381
0.347389
0.309591
0
0.009079
0.308166
7,960
272
80
29.264706
0.822045
0.415578
0
0.366071
0
0
0.195489
0.014333
0
0
0
0
0
1
0.044643
false
0.017857
0.026786
0
0.133929
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0