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
fcff3d85fe99542b6a26eb81efd2192cd0645652
622
py
Python
src/mono_test.py
hb-jones/rp1-ros
afc2888f5da7a2b4cc6d9e07ce017f26996e58c3
[ "Apache-2.0" ]
null
null
null
src/mono_test.py
hb-jones/rp1-ros
afc2888f5da7a2b4cc6d9e07ce017f26996e58c3
[ "Apache-2.0" ]
null
null
null
src/mono_test.py
hb-jones/rp1-ros
afc2888f5da7a2b4cc6d9e07ce017f26996e58c3
[ "Apache-2.0" ]
null
null
null
import time, cv2, json from vision.monocular import Monocular, test_publisher_pixel_coordinate def test_func(var): return def main(): cam = Monocular(test_publisher_pixel_coordinate) #cam = Monocular(test_func) cam.start_loop() cam.debug_mode = True cam.debug_type = "cont" ti...
23.923077
72
0.622186
83
622
4.39759
0.590361
0.106849
0.120548
0.147945
0.20274
0
0
0
0
0
0
0.017817
0.278135
622
25
73
24.88
0.7951
0.099678
0
0
0
0
0.046904
0
0
0
0.007505
0
0
1
0.111111
false
0
0.111111
0.055556
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fcffe22efcddd524aff30bbd278fd51ef10be4d7
1,301
py
Python
modules/input_output.py
hhandika/journal-unlocker
b35133565c991688c726643949a102beefdedfc8
[ "MIT" ]
1
2020-11-29T08:10:16.000Z
2020-11-29T08:10:16.000Z
modules/input_output.py
hhandika/journal-unlocker
b35133565c991688c726643949a102beefdedfc8
[ "MIT" ]
null
null
null
modules/input_output.py
hhandika/journal-unlocker
b35133565c991688c726643949a102beefdedfc8
[ "MIT" ]
null
null
null
import webbrowser as wb from modules import converter class UserInput(converter.LinkConverter): def __init__(self, libs, url): self.libs = libs self.url = url def _invalid_input(self): print(f"\x1b[0;31mERROR: \x1b[0m{self.url} is invalid URL\n") print("Please, enter a val...
30.255814
72
0.597233
169
1,301
4.384615
0.325444
0.075574
0.052632
0.08637
0.118758
0.118758
0.118758
0.118758
0.118758
0.118758
0
0.010823
0.289777
1,301
43
73
30.255814
0.791126
0
0
0.171429
0
0.028571
0.162826
0
0
0
0
0
0
1
0.2
false
0
0.057143
0
0.285714
0.114286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e011925c6302c4ad1c6ff5f9211ec00aafbb0c5
959
py
Python
tests/file_iterators/test_trillian_xml.py
mtlynch/chat_unifier
7449ca4f2dd48d8b76fc29e150643076dd0b3334
[ "MIT" ]
2
2018-10-16T18:39:06.000Z
2019-01-22T01:38:09.000Z
tests/file_iterators/test_trillian_xml.py
mtlynch/chat_unifier
7449ca4f2dd48d8b76fc29e150643076dd0b3334
[ "MIT" ]
2
2018-10-19T00:00:21.000Z
2018-10-19T17:15:25.000Z
tests/file_iterators/test_trillian_xml.py
mtlynch/chat_unifier
7449ca4f2dd48d8b76fc29e150643076dd0b3334
[ "MIT" ]
null
null
null
import os import unittest import mock from chat_unifier.file_iterators import trillian_xml class TrillianXmlFileIteratorTest(unittest.TestCase): def setUp(self): self.maxDiff = None def test_picks_correct_trillian_log_files(self): with mock.patch.object(os, 'walk') as mock_walk: ...
33.068966
68
0.552659
95
959
5.442105
0.484211
0.067698
0.092843
0.096712
0.108317
0
0
0
0
0
0
0.035451
0.294056
959
28
69
34.25
0.728213
0
0
0
0
0
0.271116
0.118874
0
0
0
0
0.045455
1
0.090909
false
0
0.181818
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e037702ba339edd20a07331a6e5b456dd7810a0
952
py
Python
SpriteSheetPacker/packer.py
ithilelda/ModLoaderLite
14899f8d1a406563600c2abe76ac1a2c58c6135d
[ "MIT" ]
1
2022-01-19T05:16:02.000Z
2022-01-19T05:16:02.000Z
SpriteSheetPacker/packer.py
ithilelda/ModLoaderLite
14899f8d1a406563600c2abe76ac1a2c58c6135d
[ "MIT" ]
null
null
null
SpriteSheetPacker/packer.py
ithilelda/ModLoaderLite
14899f8d1a406563600c2abe76ac1a2c58c6135d
[ "MIT" ]
null
null
null
import os import math from PIL import Image def pack_directory(path): def name_comparer(entry): return int(entry.name.strip('image .png')) files = [e for e in os.scandir(path) if e.name.endswith('png') and not e.name.startswith('output')] files.reverse() images = [Image.open(e.path) for e in ...
28.848485
103
0.582983
152
952
3.592105
0.375
0.03663
0.032967
0.065934
0.047619
0
0
0
0
0
0
0.017291
0.271008
952
33
104
28.848485
0.769452
0
0
0
0
0
0.050367
0
0
0
0
0
0
1
0.071429
false
0
0.107143
0.035714
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e047aa179f50c2fad3a719fb925ab7747594f6a
9,184
py
Python
basedir/__init__.py
fenhl/python-xdg-basedir
17032de6c9728ddba5c40a983c50088d69dc631e
[ "MIT" ]
null
null
null
basedir/__init__.py
fenhl/python-xdg-basedir
17032de6c9728ddba5c40a983c50088d69dc631e
[ "MIT" ]
null
null
null
basedir/__init__.py
fenhl/python-xdg-basedir
17032de6c9728ddba5c40a983c50088d69dc631e
[ "MIT" ]
null
null
null
import collections.abc import json import os import os.path import pathlib import subprocess def parse_version_string(): path = pathlib.Path(__file__).resolve().parent # go up one level, from repo/basedir.py to repo, where README.md is located try: version = subprocess.check_output(['git', 'rev-parse',...
39.416309
351
0.582753
1,171
9,184
4.457728
0.179334
0.062069
0.058238
0.028736
0.472797
0.44387
0.402107
0.382184
0.318582
0.283142
0
0.000643
0.323062
9,184
232
352
39.586207
0.83899
0.157557
0
0.420455
0
0
0.035605
0
0
0
0
0
0
1
0.125
false
0.017045
0.045455
0.039773
0.369318
0.005682
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e054a3c6b84d4385ce18db1a386851ca484d0f1
2,861
py
Python
convert_to_tf_records.py
andreweskeclarke/toxic_kaggle
e761f4aad0688423bdbe4098fe7efddddea4b0d9
[ "MIT" ]
null
null
null
convert_to_tf_records.py
andreweskeclarke/toxic_kaggle
e761f4aad0688423bdbe4098fe7efddddea4b0d9
[ "MIT" ]
null
null
null
convert_to_tf_records.py
andreweskeclarke/toxic_kaggle
e761f4aad0688423bdbe4098fe7efddddea4b0d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import collections import csv import tensorflow as tf import numpy as np from google_research.bert.tokenizer import FullTokenizer def main(): MAX_SEQUENCE_LENGTH = 512 parser = argparse.ArgumentParser() parser.add_argument('--do_lower_case', action='store_true') ...
47.683333
110
0.645928
350
2,861
5.065714
0.314286
0.047377
0.05753
0.053582
0.347434
0.279752
0.259447
0.19797
0.19797
0.173153
0
0.016026
0.236631
2,861
59
111
48.491525
0.795788
0.00734
0
0.055556
0
0
0.130328
0.016203
0
0
0
0
0
1
0.018519
false
0
0.111111
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
1e05fc418915f277ab4a685fd9b838701e4c7fe8
14,246
py
Python
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_transformations.py
vkirilenko/FEDOT
d287d899e47fe5aebf52c12733892e103b75842b
[ "BSD-3-Clause" ]
1
2021-11-09T10:24:38.000Z
2021-11-09T10:24:38.000Z
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_transformations.py
vkirilenko/FEDOT
d287d899e47fe5aebf52c12733892e103b75842b
[ "BSD-3-Clause" ]
null
null
null
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_transformations.py
vkirilenko/FEDOT
d287d899e47fe5aebf52c12733892e103b75842b
[ "BSD-3-Clause" ]
null
null
null
from typing import Optional import numpy as np from sklearn.decomposition import KernelPCA, PCA from sklearn.impute import SimpleImputer from sklearn.preprocessing import MinMaxScaler, OneHotEncoder, PolynomialFeatures, StandardScaler from fedot.core.data.data import InputData from fedot.core.data.data import data_ha...
38.711957
116
0.653727
1,536
14,246
5.835286
0.132161
0.045186
0.03414
0.018967
0.548142
0.507308
0.444382
0.427982
0.382573
0.361821
0
0.002312
0.271374
14,246
367
117
38.817439
0.861175
0.240418
0
0.462687
0
0
0.017469
0
0
0
0
0
0
1
0.119403
false
0.004975
0.039801
0.024876
0.258706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e08575a33b1bf77c5ac73909e8b814796a5d007
421
py
Python
json_extract.py
Puratinamu/Application-Document-Generator
6e6068fc8f360f8b2ccd15ca66d028ad37055593
[ "Apache-2.0" ]
1
2019-03-01T18:10:56.000Z
2019-03-01T18:10:56.000Z
json_extract.py
Puratinamu/Application-Document-Generator
6e6068fc8f360f8b2ccd15ca66d028ad37055593
[ "Apache-2.0" ]
null
null
null
json_extract.py
Puratinamu/Application-Document-Generator
6e6068fc8f360f8b2ccd15ca66d028ad37055593
[ "Apache-2.0" ]
null
null
null
import json def extract(filename): ''' (str) -> list of object Given the filename of a JSON file in the current directory, extract and return its data. :param filename: name of the JSON file: :return data: data extracted from the JSON file: ''' file = open(filename, 'r') json_decode = ...
24.764706
82
0.64133
60
421
4.466667
0.516667
0.089552
0.08209
0
0
0
0
0
0
0
0
0
0.268409
421
16
83
26.3125
0.87013
0.477435
0
0
0
0
0.005208
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e0a45dc70c943024981f87b2475e50be7bce1eb
1,990
py
Python
src/DataExploration/Python/PHE_PracticeProfileIndicators_Analysis.py
shashidarette/healthcare_dataviz
f638a60b3e3f31e68704fe73cce700e01bf25dfe
[ "MIT" ]
null
null
null
src/DataExploration/Python/PHE_PracticeProfileIndicators_Analysis.py
shashidarette/healthcare_dataviz
f638a60b3e3f31e68704fe73cce700e01bf25dfe
[ "MIT" ]
null
null
null
src/DataExploration/Python/PHE_PracticeProfileIndicators_Analysis.py
shashidarette/healthcare_dataviz
f638a60b3e3f31e68704fe73cce700e01bf25dfe
[ "MIT" ]
null
null
null
# coding: utf-8 # ## This notebook is to analyse the practice indicators available from PHE dataset # In[1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns # In[2]: # General Practice Indicators from PHE (It includes England, CCG level indicators as well) GPIndicat...
16.722689
127
0.711055
288
1,990
4.767361
0.395833
0.025492
0.045885
0.03496
0.186453
0.16606
0.16606
0
0
0
0
0.039883
0.143216
1,990
118
128
16.864407
0.765396
0.273869
0
0
0
0
0.283286
0.111898
0
0
0
0
0
1
0
false
0
0.129032
0
0.129032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e0a8cd86646fb6782dcda7592bb726bc8b672cd
656
py
Python
python/agenciesModule.py
leomaurodesenv/travel-dataset-generator
6d97012ea50ab94d8513cd4d4a5b17d36fa94469
[ "CC-BY-4.0" ]
3
2019-09-24T20:53:21.000Z
2021-07-06T17:39:01.000Z
python/agenciesModule.py
leomaurodesenv/travel-dataset-generator
6d97012ea50ab94d8513cd4d4a5b17d36fa94469
[ "CC-BY-4.0" ]
null
null
null
python/agenciesModule.py
leomaurodesenv/travel-dataset-generator
6d97012ea50ab94d8513cd4d4a5b17d36fa94469
[ "CC-BY-4.0" ]
2
2019-09-24T20:57:11.000Z
2020-02-28T15:07:55.000Z
#- Import packages import random ''' @module: Travel Dataset Generator @authors: Leonardo Mauro <leomaurodesenv> @link: https://github.com/Argo-Solutions/travel-dataset-generator GitHub @license: Creative Commons BY License @copyright: 2019 Argo Solutions @access: public ''' #- Functions def funcAgencyGenerator(flig...
26.24
72
0.71189
75
656
6.226667
0.693333
0.055675
0.094218
0
0
0
0
0
0
0
0
0.009158
0.167683
656
24
73
27.333333
0.846154
0.178354
0
0
0
0
0.018182
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e18059d12840f8a0185aebcabdddc4603c7b343
9,891
py
Python
test/graph/test_graph.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
null
null
null
test/graph/test_graph.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
null
null
null
test/graph/test_graph.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
1
2021-11-20T00:10:53.000Z
2021-11-20T00:10:53.000Z
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
35.967273
98
0.652512
1,151
9,891
5.384883
0.159861
0.116167
0.049371
0.0697
0.583898
0.516618
0.502097
0.493062
0.481284
0.481284
0
0.005202
0.222526
9,891
274
99
36.09854
0.80078
0.15873
0
0.295302
0
0
0.20254
0.159056
0
0
0
0
0.006711
1
0.174497
false
0
0.040268
0
0.355705
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e1b73599dd7ea98dc2b2062486c37f98c1e9a64
15,070
py
Python
gym_electric_motor/physical_systems/physical_systems.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
gym_electric_motor/physical_systems/physical_systems.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
gym_electric_motor/physical_systems/physical_systems.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
import numpy as np from gym.spaces import Box from ..core import PhysicalSystem from ..physical_systems import electric_motors as em, mechanical_loads as ml, converters as cv, \ voltage_supplies as vs, noise_generators as ng, solvers as sv from ..utils import instantiate, set_state_array class SCMLSyste...
40.951087
121
0.633842
1,845
15,070
4.853659
0.125203
0.032161
0.050921
0.0134
0.395757
0.33646
0.282747
0.238638
0.21876
0.21876
0
0.003581
0.277372
15,070
367
122
41.06267
0.818733
0.172661
0
0.297872
0
0
0.010695
0
0
0
0
0
0
1
0.123404
false
0
0.021277
0.021277
0.26383
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e1f1f99e22282cac2d668c68acaa5cc5f58efad
961
py
Python
start_trouper.py
meltaxa/troupe
fbec6cec09ced6c29695a0741420cb61893134d3
[ "MIT" ]
28
2020-10-03T02:20:13.000Z
2021-11-12T11:26:23.000Z
start_trouper.py
meltaxa/troupe
fbec6cec09ced6c29695a0741420cb61893134d3
[ "MIT" ]
null
null
null
start_trouper.py
meltaxa/troupe
fbec6cec09ced6c29695a0741420cb61893134d3
[ "MIT" ]
7
2020-10-03T09:11:43.000Z
2021-01-29T06:45:46.000Z
#!/usr/bin/env python3 from slackbot.bot import Bot import logging import socket import uuid import os # If you are running multiple homeops bots on the same server enable # unique device names. unique_device_names = False if unique_device_names: os.environ['DEVICE_NAME'] = '{}-{}'.format(socket.gethostname(), ...
25.289474
75
0.651405
123
961
4.902439
0.504065
0.149254
0.084577
0.079602
0
0
0
0
0
0
0
0.002618
0.204995
961
37
76
25.972973
0.786649
0.190427
0
0
0
0
0.173127
0
0
0
0
0
0
1
0.041667
false
0
0.208333
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
1e1fceddc66231ee1517373a6448d3a3f572702e
713
py
Python
test/jit/test_ivalue.py
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
test/jit/test_ivalue.py
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
test/jit/test_ivalue.py
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
# Owner(s): ["oncall: jit"] import os import sys import torch # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(pytorch_test_dir) from torch.testing._internal.jit_utils import JitTestCase if __name__ == "__main__": raise R...
25.464286
79
0.680224
101
713
4.594059
0.60396
0.038793
0.060345
0.064655
0.068966
0
0
0
0
0
0
0.003521
0.203366
713
27
80
26.407407
0.81338
0.137447
0
0
0
0
0.180033
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.055556
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e2079ace258f371ce2dd6d8234af7c77fb15387
3,457
py
Python
12/common.py
KorotkiyEugene/dsp_sdr_basic
2aa4b22427b638f09c85948ccf442faba573a29f
[ "MIT" ]
7
2021-05-16T22:34:15.000Z
2022-02-19T17:19:32.000Z
12/common.py
KorotkiyEugene/dsp_sdr_basic
78a77736d0c33951d782f6889884633e4a42c5bd
[ "MIT" ]
null
null
null
12/common.py
KorotkiyEugene/dsp_sdr_basic
78a77736d0c33951d782f6889884633e4a42c5bd
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import math from scipy.io.wavfile import read as read_wav from scipy.io.wavfile import write as write_wav from scipy.fftpack import fft, fftshift from scipy.signal import lfilter, firwin def filt(sig, Fc=0.5, NFIR=101): fir_taps = firwin(NFIR, Fc, window=('blackma...
30.06087
73
0.633497
552
3,457
3.766304
0.240942
0.034632
0.01924
0.027417
0.295334
0.190957
0.190957
0.172679
0.172679
0.113035
0
0.034642
0.248481
3,457
115
74
30.06087
0.765589
0.033844
0
0.155556
0
0
0.014984
0
0
0
0
0
0
1
0.1
false
0
0.077778
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
1e233744186d29b648450453c95858ec334e1c71
3,769
py
Python
automix/config.py
MZehren/Automix
dfaa00a9e7c5c0938c0a9d275c07f3a3e5f87e43
[ "MIT" ]
18
2020-07-20T01:51:40.000Z
2022-02-25T07:32:11.000Z
automix/config.py
MZehren/Automix
dfaa00a9e7c5c0938c0a9d275c07f3a3e5f87e43
[ "MIT" ]
2
2021-03-23T03:26:02.000Z
2021-07-19T12:51:25.000Z
automix/config.py
MZehren/Automix
dfaa00a9e7c5c0938c0a9d275c07f3a3e5f87e43
[ "MIT" ]
5
2021-01-03T15:34:28.000Z
2022-02-22T06:07:06.000Z
""" TODO: Move the functions to the correct location """ import logging as log import os DATASET_LOCATION = "/home/mickael/Documents/programming/dj-tracks-switch-points/" CACHE_LOCATION = "../annotations/" CACHE_LEVEL = 0 LOG_LEVEL = log.DEBUG log.getLogger().setLevel(LOG_LEVEL) def k_fold_split(X, Y, k=10, shuffle...
33.353982
124
0.633059
495
3,769
4.763636
0.331313
0.017812
0.022053
0.025445
0.194656
0.148431
0.148431
0.122986
0.067006
0.034775
0
0.008219
0.225259
3,769
112
125
33.651786
0.799315
0.215972
0
0.0625
0
0
0.083129
0.021045
0
0
0
0.008929
0.015625
1
0.109375
false
0
0.046875
0
0.328125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e25a796cccb23405dd95548e2edaa9a7d0b72fc
2,342
py
Python
saleor/graphql/rider/mutations.py
WarHawk007/erocerytest
0f481e08012eaf2f9c987fc33d641deb8e335ba0
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/rider/mutations.py
WarHawk007/erocerytest
0f481e08012eaf2f9c987fc33d641deb8e335ba0
[ "CC-BY-4.0" ]
10
2021-02-02T22:55:05.000Z
2022-02-10T23:01:13.000Z
saleor/graphql/rider/mutations.py
WarHawk007/erocerytest
0f481e08012eaf2f9c987fc33d641deb8e335ba0
[ "CC-BY-4.0" ]
null
null
null
import graphene from django.conf import settings from django.core.exceptions import ValidationError from ...rider import models as rider_models from ...subshop import models as subshop_models from ...account import models as account_models from ..account.validation import isPhoneNumber, isCnic from ..core.mutations im...
40.37931
130
0.687874
278
2,342
5.708633
0.320144
0.05293
0.094518
0.075614
0.064272
0
0
0
0
0
0
0.002151
0.205807
2,342
57
131
41.087719
0.851075
0
0
0
0
0
0.106746
0
0
0
0
0
0
1
0.02
false
0.04
0.24
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
1e2739d879c1c382a8deb97538a12818514a90c7
953
py
Python
car_composite/utils.py
kerry-t-johnson/car-composite
ba39bed0883517a3884a1e68c8ab6522119eab4f
[ "Apache-2.0" ]
null
null
null
car_composite/utils.py
kerry-t-johnson/car-composite
ba39bed0883517a3884a1e68c8ab6522119eab4f
[ "Apache-2.0" ]
null
null
null
car_composite/utils.py
kerry-t-johnson/car-composite
ba39bed0883517a3884a1e68c8ab6522119eab4f
[ "Apache-2.0" ]
null
null
null
''' Copyright 2021 Kerry Johnson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
36.653846
75
0.698846
150
953
4.386667
0.593333
0.06383
0.039514
0.048632
0.039514
0
0
0
0
0
0
0.01745
0.218258
953
26
76
36.653846
0.865772
0.613851
0
0
0
0
0.054381
0
0
0
0
0
0
1
0.142857
false
0
0.142857
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
1e27f18ab5ef993c02caa01656b29f1ecbe96024
11,458
py
Python
yegsecbot.py
jershmagersh/yegsecbot
147c1ad4e0bbf7688f55ee0075b9c03fddf4223c
[ "Apache-2.0" ]
1
2019-02-20T23:24:02.000Z
2019-02-20T23:24:02.000Z
yegsecbot.py
jershmagersh/yegsecbot
147c1ad4e0bbf7688f55ee0075b9c03fddf4223c
[ "Apache-2.0" ]
null
null
null
yegsecbot.py
jershmagersh/yegsecbot
147c1ad4e0bbf7688f55ee0075b9c03fddf4223c
[ "Apache-2.0" ]
3
2019-02-20T01:43:10.000Z
2019-06-19T00:08:29.000Z
#!/usr/bin/python """ I wrote this in a couple afternoons while watching Netflix, so it can probably be better. -jmag """ from slackclient import SlackClient import sys, json, sqlite3, time, re, datetime MENTION_REGEX = "^<@(|[WU][A-Z0-9]+?)>(.*)" class ConfigException(Exception): pass class Connection...
42.913858
239
0.56598
1,399
11,458
4.514653
0.197284
0.036415
0.032299
0.032774
0.399145
0.332964
0.282932
0.224034
0.183977
0.180177
0
0.007467
0.322046
11,458
266
240
43.075188
0.805613
0.118258
0
0.328125
0
0.052083
0.194705
0.02057
0
0
0
0
0
1
0.083333
false
0.010417
0.010417
0.010417
0.182292
0.010417
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e29069e2cd68e343ce7e90b98d21551b24dc656
5,072
py
Python
workon/contrib/tracker/utils.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/contrib/tracker/utils.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/contrib/tracker/utils.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
from django.conf import settings __all__ = ['track'] if 'workon.contrib.tracker' not in settings.INSTALLED_APPS: def track(*args, **kwargs): raise Exception('workon.contrib.tracker missing from settings.INSTALLED_APPS') else: import time import datetime from operator import itemgetter ...
38.424242
124
0.522082
490
5,072
5.142857
0.244898
0.039683
0.040476
0.020238
0.159524
0.088889
0.088889
0.088889
0.088889
0.050794
0
0.002917
0.391759
5,072
132
125
38.424242
0.813938
0.102918
0
0.179775
0
0
0.070789
0.019937
0
0
0
0
0
1
0.123596
false
0
0.101124
0.011236
0.303371
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e2b1e90e65d462ea33a73daa9aaad6d0c9d572b
46,103
py
Python
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
6
2020-04-19T11:26:18.000Z
2021-06-21T18:42:51.000Z
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
31
2020-04-21T17:24:39.000Z
2020-08-27T15:59:12.000Z
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
null
null
null
""" Core module. Normally, do not add new construction methods here, do this in scene.py instead. """ from enum import Enum, auto, unique import itertools import re import sympy as sp from typing import List from .figure import Figure from .reason import Reason from .util import LazyComment, Comment, divide class Co...
42.064781
139
0.549899
4,943
46,103
5
0.064536
0.026219
0.01845
0.018774
0.41934
0.351892
0.316407
0.271859
0.225855
0.206393
0
0.007902
0.343969
46,103
1,095
140
42.103196
0.809192
0.042795
0
0.294118
0
0
0.063666
0.001593
0
0
0
0.001826
0.070358
1
0.128028
false
0.001153
0.016148
0.024221
0.272203
0.008074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e2b6f738581b2742bd1ca8b2f9482692264a225
345
py
Python
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 14 10:08:03 2020 @author: ucobiz """ num = 0 # we have to initialize num to zero while num <= 0: # so that we can use it here num = int(input("Enter a positive number: ")) # the while loop has exited b/c num is positive print("Thank you. The number...
21.5625
51
0.611594
59
345
3.576271
0.762712
0.037915
0
0
0
0
0
0
0
0
0
0.059289
0.266667
345
15
52
23
0.774704
0.527536
0
0
0
0
0.448529
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e2d130d98704094b0d5ff31b8c5866899ab9c1f
12,633
py
Python
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
import math import tkinter as tk from tkinter import ttk, messagebox from tkinter.constants import X, Y from ttkthemes import ThemedStyle class PickLight(): def __init__(self, root, widg): self.root = root self.widg = widg self.x = self.root.winfo_pointerx() self.y = self.root.winf...
32.392308
225
0.432676
1,490
12,633
3.520134
0.14698
0.01449
0.034318
0.032031
0.361868
0.310391
0.236797
0.199047
0.182841
0.134223
0
0.048634
0.461252
12,633
390
226
32.392308
0.72201
0.012032
0
0.314607
0
0
0.024205
0
0
0
0
0
0
1
0.039326
false
0
0.014045
0
0.092697
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e2ed5d13acdd2a38212da944c819fc33a4a6530
11,151
py
Python
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2018-10-05T17:03:01.000Z
2018-10-05T17:03:01.000Z
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2017-01-06T19:20:32.000Z
2017-01-06T19:20:32.000Z
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
7
2016-12-16T15:42:05.000Z
2020-09-05T01:11:27.000Z
import datetime import pytz from django.test import override_settings from rest_framework import status from ozpcenter import model_access as generic_model_access from ozpcenter.scripts import sample_data_generator as data_gen from tests.ozp.cases import APITestCase from tests.ozpcenter.helper import APITestHelper ...
44.426295
125
0.565958
1,147
11,151
5.347864
0.178727
0.058689
0.059341
0.067819
0.72628
0.688947
0.65569
0.611999
0.551679
0.551679
0
0.020609
0.316833
11,151
250
126
44.604
0.784589
0.058829
0
0.494565
0
0
0.161989
0.010977
0
0
0
0
0.157609
1
0.065217
false
0.005435
0.059783
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
1e31aafbd6d3baac6fea5ff1008384c247a90db7
568
py
Python
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
# 問題URL: https://atcoder.jp/contests/abc126/tasks/abc126_d # 解答URL: https://atcoder.jp/contests/abc126/submissions/14638903 from heapq import heappop, heappush n = int(input()) a = [[] for _ in range(n)] for _ in range(n - 1): u, v, w = map(int, input().split()) a[u - 1].append((v - 1, w)) a[v - 1].append...
22.72
64
0.556338
99
568
3.161616
0.454545
0.076677
0.089457
0.140575
0.178914
0
0
0
0
0
0
0.061176
0.251761
568
24
65
23.666667
0.675294
0.209507
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e334b9a938fd3c9df3467c8d839369988bb30b6
10,029
py
Python
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
3
2021-07-19T14:34:07.000Z
2022-03-31T06:24:38.000Z
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
null
null
null
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
1
2021-08-22T07:23:49.000Z
2021-08-22T07:23:49.000Z
import numpy as np import random as rd from time import time from math import log import gc import heapq import copy from utility.parser import parse_args args = parse_args() class Data(object): def __init__(self, path, batch_size): self.batch_size = batch_size doc_file = path + '/ma...
41.271605
444
0.466746
1,265
10,029
3.475099
0.115415
0.044359
0.029572
0.044359
0.457006
0.371019
0.330528
0.284122
0.229072
0.229072
0
0.012598
0.414299
10,029
242
445
41.442149
0.735785
0.042676
0
0.325
0
0
0.053666
0.008011
0
0
0
0
0
1
0.035
false
0
0.04
0
0.095
0.09
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e33b7d46ae6ef1f9eed0f3bad1e2a967744885c
4,379
py
Python
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
1
2021-11-06T09:00:11.000Z
2021-11-06T09:00:11.000Z
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
1
2021-11-07T11:59:57.000Z
2021-11-08T14:29:10.000Z
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
null
null
null
import torch from torch import nn, Tensor from torch.nn import functional as F from .modules import Conv, SeparableConv from .backbones import ResNet class ASPP(nn.Module): def __init__(self, c1, c2, drop_rate=0.1): super().__init__() ratios = [1, 6, 12, 18] self.blocks = nn.ModuleList([ ...
35.893443
114
0.631879
570
4,379
4.647368
0.184211
0.02718
0.029445
0.04077
0.324273
0.265006
0.244621
0.244621
0.19026
0.12835
0
0.045632
0.239324
4,379
122
115
35.893443
0.749625
0
0
0.172043
0
0
0.013699
0
0
0
0
0
0
1
0.107527
false
0
0.053763
0.021505
0.268817
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e35b131f0e0e93445407cb308ded03d523d37ec
474
py
Python
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
# https://www.hackerrank.com/challenges/qheap1/problem?isFullScreen=true Q = int(input()) hp = [] for _ in range(Q): ls = list(map(int, input().split())) if ls[0]==1: if len(hp)==0: hp.append(ls[1]) minv = hp[0] else: minv = min(ls[1], minv) hp.ap...
23.7
72
0.466245
68
474
3.235294
0.485294
0.068182
0.095455
0.1
0
0
0
0
0
0
0
0.039344
0.35654
474
20
73
23.7
0.681967
0.147679
0
0.235294
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1e369a1097ab91da0411c8e0085e71ff5b62e1cb
3,087
py
Python
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
1
2020-01-11T12:53:28.000Z
2020-01-11T12:53:28.000Z
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
11
2019-08-06T02:23:32.000Z
2022-03-11T23:51:20.000Z
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
1
2020-01-11T12:53:29.000Z
2020-01-11T12:53:29.000Z
import math from torch.nn import Embedding import torch from torch.nn.parameter import Parameter from torch.nn.modules.module import Module from torch.nn import init from torch.autograd import Variable torch.random.manual_seed(2070) class GraphConvolution(Module): """ Simple GCN layer, similar to https://arxiv...
31.5
77
0.6184
374
3,087
4.882353
0.248663
0.060241
0.038335
0.03943
0.31161
0.230011
0.2092
0.125958
0.086528
0.086528
0
0.01154
0.270165
3,087
97
78
31.824742
0.798935
0.101717
0
0.21875
0
0
0.004056
0
0
0
0
0
0
1
0.140625
false
0
0.109375
0.03125
0.359375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e3792ff3e2c12900e4deb81ec079584de749ca2
1,623
py
Python
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
import pytest from digest.digest_tools import Digest, content_path, InvalidDigestException @pytest.mark.parametrize( "digest, output_args", [ ("tarsum.v123123+sha1:123deadbeef", ("tarsum.v123123+sha1", "123deadbeef")), ("tarsum.v1+sha256:123123", ("tarsum.v1+sha256", "123123")), ("tar...
30.055556
84
0.593346
185
1,623
5.113514
0.221622
0.044397
0.071882
0.088795
0.358351
0.287526
0.287526
0.192389
0.031712
0.031712
0
0.148148
0.201479
1,623
53
85
30.622642
0.58179
0
0
0.130435
0
0
0.393099
0.117067
0
0
0
0
0.065217
1
0.065217
false
0
0.043478
0
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e3b2896c4c71de1f2f4c4021609291572737a53
14,014
py
Python
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
2
2019-12-13T06:10:52.000Z
2019-12-15T14:58:07.000Z
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
null
null
null
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
null
null
null
from flask_jsglue import JSGlue from flask import Flask, render_template, jsonify from flask_sqlalchemy import SQLAlchemy from flask_restful import reqparse, Api app = Flask(__name__) api = Api(app) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:root@localhost:3306/videorent?charset=utf8mb4' app.config['SQLALCH...
35.659033
125
0.630512
1,786
14,014
4.739642
0.089586
0.031896
0.054223
0.006143
0.572711
0.46013
0.41394
0.327112
0.305493
0.272888
0
0.00842
0.237263
14,014
392
126
35.75
0.783516
0.020337
0
0.380503
0
0
0.105919
0.011372
0
0
0
0
0
1
0.084906
false
0
0.012579
0.040881
0.254717
0.012579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e3bf3816d2775c53ca40f975a39eda86b48bb10
11,285
py
Python
everest/repositories/rdb/querying.py
helixyte/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
3
2015-03-10T17:38:25.000Z
2017-04-29T03:47:06.000Z
everest/repositories/rdb/querying.py
helixyte/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
1
2015-03-02T16:02:41.000Z
2015-03-02T16:02:41.000Z
everest/repositories/rdb/querying.py
cenix/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
1
2020-07-12T22:46:59.000Z
2020-07-12T22:46:59.000Z
""" Querying functionality for the rdb repository. This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Created on Jan 7, 2013. """ from everest.constants import RESOURCE_ATTRIBUTE_KINDS from everest.entities.base import Entity from everest.exceptions ...
37.616667
99
0.672751
1,304
11,285
5.552147
0.233129
0.034254
0.028177
0.031492
0.293508
0.218232
0.150967
0.14268
0.14268
0.106077
0
0.005434
0.249889
11,285
299
100
37.742475
0.849852
0.175986
0
0.14359
0
0
0.034289
0.009041
0
0
0
0.006689
0
1
0.174359
false
0
0.133333
0.076923
0.487179
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e3c4d4cb0dbc4f7cda5f5d0400be26747fb6df0
1,259
py
Python
myLogger.py
DavideFrr/ibmqx_experiments
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
6
2017-11-07T12:01:49.000Z
2018-04-23T06:45:05.000Z
myLogger.py
DavideFrr/ibmqx_envariance
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
null
null
null
myLogger.py
DavideFrr/ibmqx_envariance
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
1
2018-05-07T06:34:42.000Z
2018-05-07T06:34:42.000Z
# Copyright 2017 Quantum Information Science, University of Parma, Italy. 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...
38.151515
94
0.70135
155
1,259
5.516129
0.612903
0.070175
0.046784
0.072515
0.140351
0.140351
0.140351
0.140351
0.140351
0
0
0.015023
0.154091
1,259
32
95
39.34375
0.787793
0.549643
0
0
0
0
0.318841
0.059783
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e40bb23a7df34b4097b777f22663a9bcc159f40
3,742
py
Python
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
3
2020-12-31T19:23:45.000Z
2022-02-07T16:09:14.000Z
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
null
null
null
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 12 17:57:02 2020 @author: Atique Akhtar """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn import metrics fro...
29.464567
110
0.756547
593
3,742
4.608769
0.340641
0.044274
0.052689
0.067325
0.312477
0.245884
0.203439
0.147091
0.037322
0.037322
0
0.048694
0.099947
3,742
126
111
29.698413
0.762767
0.158739
0
0
0
0
0.094551
0.021154
0
0
0
0
0
1
0
false
0
0.155844
0
0.155844
0.051948
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e42f7faf93d8ca30408b7f1bf98b2c4582082bf
7,047
py
Python
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
42
2018-10-24T09:31:07.000Z
2021-04-10T04:04:51.000Z
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
null
null
null
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
25
2018-10-24T09:01:59.000Z
2021-04-24T10:51:22.000Z
''' Written by Jan H. Jensen 2018 ''' from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import Descriptors from rdkit.DataStructs.cDataStructs import TanimotoSimilarity from rdkit.Chem import rdFMCS from rdkit import rdBase rdBase.DisableLog('rdApp.error') import numpy as np import sys from multi...
28.188
137
0.711225
976
7,047
4.981557
0.26332
0.011107
0.011107
0.029617
0.20835
0.194981
0.122995
0.122995
0.103661
0.050185
0
0.012615
0.167589
7,047
249
138
28.301205
0.816229
0.087555
0
0.186813
0
0
0.035619
0
0
0
0
0
0
1
0.10989
false
0
0.082418
0.027473
0.318681
0.049451
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e4e63042228f66cff5a912d41b87d37722d2937
3,298
py
Python
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
from argparse import ArgumentParser, Namespace from typing import Any, Dict, Tuple import numpy as np from sklearn.cluster import DBSCAN from sklearn.metrics import precision_score, recall_score from sklearn.neighbors import LocalOutlierFactor from module.LatexGenerator import LatexGenerator from module.OutlierAgglom...
35.462366
93
0.647665
366
3,298
5.579235
0.338798
0.029383
0.05142
0.039177
0.036239
0.036239
0.036239
0.036239
0.036239
0.036239
0
0.002876
0.156458
3,298
92
94
35.847826
0.731129
0.093996
0
0.059701
0
0
0.167009
0.05373
0
0
0
0
0
1
0.029851
false
0
0.179104
0
0.223881
0.029851
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e4f198f80a2b90957f00d6e9a760ddb7d4d2c00
1,534
py
Python
test/test_matching_with_dont_cares.py
matkaczmarek/string-algorithms
df1367e633ee0b3377cbdd67a77982f373fe2459
[ "MIT" ]
1
2020-06-27T01:33:43.000Z
2020-06-27T01:33:43.000Z
test/test_matching_with_dont_cares.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
test/test_matching_with_dont_cares.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
import itertools import os import unittest from generator import rand from approximate_string_matching import dont_care, matching_with_dont_cares class TestExactMatchingWithDontCaresCase(unittest.TestCase): run_large = unittest.skipUnless( os.environ.get('LARGE', False), 'Skip test in small runs') def make...
34.088889
75
0.643416
231
1,534
4.051948
0.324675
0.051282
0.064103
0.067308
0.318376
0.220085
0.220085
0.220085
0.119658
0.119658
0
0.018122
0.208605
1,534
44
76
34.863636
0.752883
0
0
0.166667
0
0
0.043025
0
0
0
0
0
0.027778
1
0.166667
false
0
0.138889
0
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e4f435f06f8b0f3c610c16275c5fe53209837e7
1,902
py
Python
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
import nengo from .magic import decorator @decorator def with_self(method, network, args, kwargs): """Wraps a method with ``with network:``. This makes it easy to add methods to a network that create new Nengo objects. Instead of writing ``with self`` at the top of the method and indenting everything...
29.71875
76
0.640904
261
1,902
4.56705
0.360153
0.088087
0.075503
0.063758
0.205537
0.205537
0.151846
0.07047
0
0
0
0.002905
0.276025
1,902
63
77
30.190476
0.862745
0.476866
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e509497962389e6ed71b35b5ec1d4dff24d9090
779
py
Python
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
# # DVI.py # # (c) 2020 by Andreas Kraft # License: BSD 3-Clause License. See the LICENSE file for further details. # # ResourceType: mgmtObj:DeviceInfo # from .MgmtObj import * from Constants import Constants as C import Utils defaultDeviceType = 'unknown' defaultModel = "unknown" defaultManufacturer = "unknown" def...
26.862069
74
0.752246
95
779
6.084211
0.568421
0.110727
0.093426
0.155709
0
0
0
0
0
0
0
0.007407
0.133504
779
28
75
27.821429
0.848889
0.17715
0
0
0
0
0.079114
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e520e590c8df2d66276d19de77a152e7ca6c316
1,272
py
Python
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
1
2021-04-26T18:15:35.000Z
2021-04-26T18:15:35.000Z
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
null
null
null
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
1
2021-03-19T21:40:48.000Z
2021-03-19T21:40:48.000Z
import cv2 import numpy as np class Augmentation: """docstring for Augmentation.""" # def __init__(self): # pass # super(Augmentation, self).__init__() # self.arg = arg def get_resize(image, lengthScale, breadthScale): src = cv2.imread(image , cv2.IMREAD_UNCHANGED) ...
31.02439
87
0.575472
163
1,272
4.380368
0.398773
0.063025
0.058824
0.047619
0.098039
0.098039
0.098039
0
0
0
0
0.041387
0.29717
1,272
40
88
31.8
0.757271
0.139937
0
0.076923
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.269231
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
1e529806b916a14d473506fae40b14ec1ce0965a
557
py
Python
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
input_file_name = "windows-1251_encoded_file.txt" output_file_name = "utf8_encoded_file.txt" def read_from(enc, file_name): # open file for read in textmode with encoding: with open(file_name,"r", encoding="cp1251") as f: decoded_content = f.read() return decoded_content def write_to(enc, content, file_na...
25.318182
54
0.746858
88
557
4.454545
0.329545
0.163265
0.066327
0.081633
0.290816
0.193878
0.193878
0.193878
0
0
0
0.029412
0.145422
557
21
55
26.52381
0.794118
0.165171
0
0
0
0
0.15
0.108696
0
0
0
0
0
1
0.181818
false
0
0
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e572a42c6bc0c9afac50afe4337fe89f5d90d51
7,795
py
Python
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
import CoreFoundation import objc from PyObjCTools.TestSupport import TestCase class TestCFDictionary(TestCase): def testCreation(self): dictionary = CoreFoundation.CFDictionaryCreate( None, ("aap", "noot", "mies", "wim"), ("monkey", "nut", "missy", "john"), ...
40.180412
88
0.636947
590
7,795
8.405085
0.161017
0.0732
0.031458
0.025812
0.64872
0.59266
0.508772
0.469449
0.428111
0.387175
0
0.013381
0.252213
7,795
193
89
40.388601
0.837365
0.000385
0
0.44
0
0
0.058922
0
0
0
0
0
0.274286
1
0.04
false
0
0.017143
0
0.062857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e57a3b1f5bc69858ee77a65eb9d305c058566c9
3,910
py
Python
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
1
2020-08-06T10:48:49.000Z
2020-08-06T10:48:49.000Z
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
2
2020-02-13T12:45:57.000Z
2020-04-14T11:30:33.000Z
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
2
2020-07-21T12:43:51.000Z
2021-08-13T15:21:22.000Z
import logging from typing import Dict, List import numpy as np import torch from numpy import ndarray from sentence_transformers import SentenceTransformer, models from melior_transformers.config.global_args import global_args from melior_transformers.encoding.constants import MODEL_CLASSES logger = logging.getLogg...
33.418803
88
0.615601
449
3,910
5.100223
0.347439
0.057642
0.039301
0.033188
0.065502
0.054585
0.027948
0
0
0
0
0.001482
0.309719
3,910
116
89
33.706897
0.84698
0.251918
0
0
0
0
0.159108
0.082663
0
0
0
0
0
1
0.029851
false
0
0.119403
0
0.179104
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e58286e282abcb985fa69b50248bb70d6390ed9
3,138
py
Python
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
null
null
null
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
1
2015-04-07T15:17:30.000Z
2015-04-07T17:34:01.000Z
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
null
null
null
from pygame import display, font, image, init, time, event from pygame.locals import * from random import randrange from GameObject import Bird, Pipe SCORE_COLOR = (255, 255, 0) HIGHSCORE_COLOR = (255, 165, 0) DISPLAY_WIDTH = 320 DISPLAY_HEIGHT = 480 FONT = None FONT_SIZE = 22 HOLE_SIZE = 50 PIPE_FREQUENCY = 50 PIP...
25.512195
75
0.564691
396
3,138
4.373737
0.330808
0.027714
0.020785
0.026559
0.079677
0.057737
0.057737
0.057737
0.057737
0.057737
0
0.031339
0.328872
3,138
122
76
25.721311
0.791073
0.074251
0
0.183908
0
0
0.016932
0
0
0
0
0
0
1
0.034483
false
0
0.045977
0
0.091954
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e589b21bf05fda4a1eedf746c2f50a2e1830a1e
17,283
py
Python
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075
825efe6a95011d055eaa19fabed42e9dad73b164
[ "BSD-3-Clause" ]
3
2021-09-15T03:51:14.000Z
2022-03-05T15:36:47.000Z
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075-
06de316e3973b65e28ca7e047b5b1674640e7e5c
[ "BSD-3-Clause" ]
null
null
null
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075-
06de316e3973b65e28ca7e047b5b1674640e7e5c
[ "BSD-3-Clause" ]
3
2021-07-21T10:25:59.000Z
2022-03-19T21:16:33.000Z
#!/usr/bin/env python3 from astroquery.simbad import Simbad from astroquery.vizier import Vizier from cat_setup import src_localDB, src_onlineDB from buildDB import addData, check_ldb import sys, os import csv from more_itertools import locate import argparse import subprocess from pathlib import Path # for the spect...
43.977099
151
0.525025
2,201
17,283
4.085416
0.21672
0.004671
0.02202
0.012456
0.263456
0.213857
0.189502
0.167705
0.120663
0.104204
0
0.016578
0.301973
17,283
392
152
44.089286
0.72878
0.112133
0
0.266212
0
0
0.206198
0.016991
0
0
0
0
0
1
0
false
0
0.051195
0
0.051195
0.21843
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e591f8ce49d4cfdc76a7051dbb0e79d30e622d3
1,690
py
Python
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
from celescope.__init__ import __CONDA__ from celescope.tcr_fl.__init__ import __STEPS__, __ASSAY__ from celescope.tools.Multi import Multi class Multi_tcr_fl(Multi): def custome_args(self): self.parser.add_argument('--thread', help='thread', default=4) self.parser.add_argument("--nCell", help="se...
30.727273
82
0.560947
210
1,690
4.080952
0.280952
0.035006
0.060677
0.088681
0.310385
0.263711
0.263711
0.198366
0.198366
0.198366
0
0.005828
0.289349
1,690
54
83
31.296296
0.707744
0
0
0.311111
0
0
0.311427
0.111901
0
0
0
0
0
1
0.111111
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e5b83ffe1a421082cfb31bd3175565e924b9fe8
2,121
py
Python
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
null
null
null
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
18
2020-07-17T08:24:34.000Z
2022-03-02T04:16:18.000Z
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
null
null
null
from pyspark.sql import SparkSession from pyspark.ml.evaluation import RegressionEvaluator from pyspark.ml.recommendation import ALS class Globals: def __init__(self): print("Init Globals") @staticmethod def recommendator(): spark = SparkSession.builder.appName("Recommendation ALS").getOr...
48.204545
125
0.644979
240
2,121
5.625
0.483333
0.02963
0.032593
0.05037
0.100741
0.100741
0.100741
0.100741
0
0
0
0.00609
0.225837
2,121
44
126
48.204545
0.816078
0.112211
0
0
0
0
0.178819
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.181818
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
1e5d69d46fbe2dcd9c5a3139cb2e51788974251b
508
py
Python
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * expr_io_pos__all_plus_number = Struct( 'my_str' / NullTerminated(GreedyString(encoding='UTF-8'), term=b'\x00', include=False, consume=True), 'body' / FixedSized(((stream_size(_io) - stream_tell(_io)) - 2), GreedyBytes), 'number' / Int16ul, ) expr_io_pos = Struct(...
31.75
102
0.751969
70
508
5.057143
0.571429
0.084746
0.127119
0.101695
0.271186
0.271186
0.20904
0.20904
0
0
0
0.026432
0.106299
508
15
103
33.866667
0.753304
0
0
0
0
0
0.088583
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e5fbb0ee05033c7efad72d8169c33b9ad7669f2
2,463
py
Python
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
3
2015-07-15T05:29:17.000Z
2021-06-23T21:50:25.000Z
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
4
2020-02-11T22:15:04.000Z
2021-06-10T17:41:51.000Z
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
null
null
null
import dropbox import json import logging from django.conf import settings from django.core.management.base import BaseCommand from django.core.mail import EmailMessage from allauth.socialaccount.models import SocialApp, SocialToken from books.forms import ImportForm from books.models import ( Book, BookFil...
33.283784
82
0.578157
256
2,463
5.402344
0.410156
0.110629
0.037599
0.049168
0.093999
0.06363
0.06363
0.06363
0.06363
0.06363
0
0.002465
0.341048
2,463
73
83
33.739726
0.849661
0
0
0.048387
0
0
0.108404
0
0
0
0
0
0
1
0.016129
false
0
0.177419
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e6038d2a3f2553efb2ffd56b40294b3bf3b78f9
511
py
Python
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
3
2019-03-03T00:08:19.000Z
2021-06-09T14:20:41.000Z
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
null
null
null
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
1
2021-06-18T08:56:05.000Z
2021-06-18T08:56:05.000Z
#!/usr/bin/env python3 import argparse import sys parser = argparse.ArgumentParser() parser.add_argument("key") args = parser.parse_args() RULE = [86 >> i & 1 for i in range(8)] N_BYTES = 32 N = 8 * N_BYTES def next(x): x = (x & 1) << N+1 | x << 1 | x >> N-1 y = 0 for i in range(N): y |= RULE[(x >> i) & 7...
18.925926
54
0.626223
89
511
3.539326
0.52809
0.038095
0.057143
0.104762
0.07619
0
0
0
0
0
0
0.037221
0.21135
511
27
55
18.925926
0.744417
0.144814
0
0
0
0
0.02069
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e6a40545d687c3ecf51841513c392eec05aec51
398
py
Python
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
import Merge_Sorting read_filename = "/home/vampy/data/test1" write_filename = "/home/vampy/data/test2" fp = open(read_filename, "r") N = int(fp.readline()) names = [] for i in range(N): names.append(fp.readline().strip()) fp.close() Merge_Sorting.mergesort(names) fp = open(write_filename, "w") fp.write("{0}\n".f...
18.090909
41
0.675879
65
398
4.046154
0.446154
0.091255
0.129278
0.159696
0.091255
0
0
0
0
0
0
0.011396
0.11809
398
21
42
18.952381
0.737892
0
0
0.266667
0
0
0.135678
0.110553
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e70a8cf3463ffe9421d2adf4f0d082d0018a938
1,423
py
Python
migrations/versions/efd88a3c30a8_.py
andraune/Run4IT_BackEnd
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
1
2022-03-29T06:11:20.000Z
2022-03-29T06:11:20.000Z
migrations/versions/efd88a3c30a8_.py
andraune/run4it_backend
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
null
null
null
migrations/versions/efd88a3c30a8_.py
andraune/run4it_backend
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
null
null
null
"""empty message Revision ID: efd88a3c30a8 Revises: edf37629d0f4 Create Date: 2020-08-23 12:34:41.656176 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'efd88a3c30a8' down_revision = 'edf37629d0f4' branch_labels = None depends_on = None def upgrade(): # ...
33.093023
98
0.697119
188
1,423
5.106383
0.393617
0.066667
0.0625
0.0875
0.366667
0.316667
0.252083
0.152083
0
0
0
0.042588
0.141954
1,423
42
99
33.880952
0.743653
0.207309
0
0
0
0
0.225481
0.04583
0
0
0
0
0
1
0.083333
false
0
0.083333
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
1e7303e5e2805c01c2695e6e83bc9c5498d330bd
2,497
py
Python
code/model/loss/loss.py
ZJU-Fangyin/KCL
1d1002aeee785e4eb1dfc121d6cbb9cefa4e985c
[ "MIT" ]
24
2021-12-04T13:44:22.000Z
2022-03-19T08:10:19.000Z
code/model/loss/loss.py
Fangyin1994/KCL
004f5681b77e4e75c791c909696fdb8a208501a2
[ "MIT" ]
3
2021-12-20T08:14:06.000Z
2022-03-28T08:03:09.000Z
code/model/loss/loss.py
Fangyin1994/KCL
004f5681b77e4e75c791c909696fdb8a208501a2
[ "MIT" ]
1
2021-12-22T09:29:55.000Z
2021-12-22T09:29:55.000Z
from .loss_computer import NCESoftmaxLoss import torch.nn.functional as F import torch.nn as nn import torch import logging import pdb logger = logging.getLogger() class ContrastiveLoss(nn.Module): def __init__(self, loss_computer: str, temperature: float, args) -> None: super().__init__() self.d...
34.205479
96
0.64998
330
2,497
4.769697
0.281818
0.053367
0.007624
0.010165
0.192503
0.15756
0.121982
0.054638
0.054638
0
0
0.018228
0.209051
2,497
72
97
34.680556
0.778734
0.168202
0
0.186047
0
0
0.028585
0
0
0
0
0
0
1
0.093023
false
0
0.139535
0
0.302326
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e73e5b2fe9aa6d77e943c822dde424875f561fa
3,359
py
Python
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
4
2019-06-27T13:49:09.000Z
2021-07-26T05:30:04.000Z
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
null
null
null
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 15 12:16:14 2018 @author: gdavila This is a example to get Full Band Channel information On Docsis 3.0 Full Band Channels is a feature that allows to get detailed info about the power distribution of the espectrum """ import docsisMon.cmDevices as cmDevices from docsis...
30.816514
130
0.533194
412
3,359
4.296117
0.395631
0.00904
0.025424
0.033898
0.063277
0.050847
0.050847
0.050847
0.050847
0
0
0.057351
0.345936
3,359
108
131
31.101852
0.748293
0.110747
0
0.105263
0
0.013158
0.074286
0
0
0
0
0
0
1
0.039474
false
0
0.065789
0
0.131579
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e76a6d7201c50230ea9c60f989c6e9e8acbee75
398
py
Python
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
1
2018-05-30T15:33:26.000Z
2018-05-30T15:33:26.000Z
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
7
2018-06-21T13:21:22.000Z
2018-07-24T21:20:05.000Z
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
1
2018-06-01T17:39:48.000Z
2018-06-01T17:39:48.000Z
# -*- coding: utf-8 -*- """ ============================= Crack Egg ============================= This an example of how to crack an egg (take a slice of subjects/lists from it) """ # Code source: Andrew Heusser # License: MIT #import import quail #load data egg = quail.load_example_data() #crack egg cracked_egg ...
16.583333
79
0.59799
55
398
4.236364
0.6
0.103004
0
0
0
0
0
0
0
0
0
0.008824
0.145729
398
23
80
17.304348
0.676471
0.59799
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e77ef009463c9c8b20da40c4cad47baa5105caf
488
py
Python
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules=[ Extension("BBox", ["BBox.pyx"]), Extension("spirals", ["spirals.pyx"]), Extension("wordle", ["wordle.pyx"]), ] setup( name = 'wordle', cmdcl...
25.684211
60
0.659836
56
488
5.625
0.464286
0.101587
0.069841
0.114286
0
0
0
0
0
0
0
0
0.219262
488
18
61
27.111111
0.826772
0.190574
0
0
0
0
0.163102
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e781496e1aa125be921635999ca76ed9c8a3c2b
4,296
py
Python
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ import magic, os, urllib2 from django.core.files.storage import default_storage as storage class FileTypeTester(models.Model): class Meta: abstract = True file_type_...
41.307692
153
0.598929
490
4,296
5.089796
0.269388
0.060946
0.067362
0.064956
0.442261
0.369687
0.369687
0.34563
0.311949
0.25421
0
0.002681
0.3054
4,296
104
154
41.307692
0.83311
0.071462
0
0.417722
0
0
0.168508
0.067052
0
0
0
0.009615
0
1
0.113924
false
0
0.063291
0.063291
0.43038
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e7c45b57c7b1f68c58be33048ab411b59607f95
3,734
py
Python
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
217
2020-01-07T20:25:46.000Z
2022-03-29T06:09:58.000Z
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
16
2020-02-10T12:40:23.000Z
2022-02-26T13:01:55.000Z
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
34
2020-01-15T15:42:20.000Z
2022-02-22T17:29:15.000Z
#!/usr/bin/python3 # Copyright (C) 2021 Sam Steele # 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...
36.970297
169
0.676754
492
3,734
5.052846
0.410569
0.024135
0.013274
0.012872
0.078842
0
0
0
0
0
0
0.008715
0.170327
3,734
100
170
37.34
0.793738
0.15399
0
0.078947
0
0.013158
0.229816
0.013668
0
0
0
0
0
1
0
false
0.026316
0.065789
0
0.065789
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e8225b7ada5e1ad54098e2705b2ce6cd71e8f49
5,254
py
Python
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QWidget from PySide2.QtCore import Qt from PySide2.QtCore import QPoint from PySide2.QtWidgets import QWidget, QLabel from PySide2.QtGui import QPainter from PySide2.QtGui import QPixmap from PySide2.QtGui import QPen from draw_utils import is_adjacent, is_contained,is_intersect ...
33.044025
88
0.604111
665
5,254
4.63609
0.227068
0.080441
0.105092
0.103795
0.352903
0.267921
0.251054
0.218618
0.193318
0.193318
0
0.003469
0.286639
5,254
158
89
33.253165
0.819104
0.009517
0
0.292135
0
0
0.010141
0
0
0
0
0
0
1
0.089888
false
0
0.11236
0
0.258427
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e8434d13fe760e8cea23fce54f739923c5f3b0f
6,622
py
Python
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
import toml from discord.ext import commands import discord import pathlib from peewee import SqliteDatabase, fn import db_model as db import datetime from dataclasses import dataclass import matplotlib.pyplot as plt import asyncio SKRIPTPFAD = pathlib.Path(__file__).parent CONFIGPFAD = SKRIPTPFAD / "config.toml" CONF...
30.1
108
0.598762
815
6,622
4.761963
0.218405
0.059521
0.027828
0.03092
0.427467
0.373873
0.355836
0.355836
0.320794
0.244009
0
0.004509
0.263214
6,622
219
109
30.237443
0.790531
0
0
0.320442
0
0
0.130645
0.004682
0
0
0
0
0
1
0.049724
false
0
0.055249
0.016575
0.171271
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e8540b88c0120bfb5afdddeb8fe99456df3e245
3,115
py
Python
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
import string import numpy as np from yeti.get_features.hydrogen_bonds import Triplet from yeti.systems.building_blocks import Atom def create_data_type_exception_messages(parameter_name, data_type_name): return 'Wrong data type for parameter "{name}". Desired type is {data_type}'.format(name=parameter_name, ...
38.45679
113
0.646228
433
3,115
4.376443
0.228637
0.010554
0.014248
0.046438
0.208443
0.173615
0.138259
0.098153
0.098153
0.009499
0
0.035897
0.248796
3,115
80
114
38.9375
0.773932
0.03114
0
0
0
0
0.064698
0
0
0
0
0
0
1
0.14
false
0
0.08
0.06
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e865f0471666eee6566c8792893e373522a1f73
72,247
py
Python
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
from __future__ import annotations import uuid from datetime import datetime, timedelta from functools import reduce from operator import or_ from typing import Any, List, NamedTuple, Optional import beeline import pytz import sentry_sdk from django.conf import settings from django.contrib.auth.models import User fro...
36.654997
179
0.648428
8,496
72,247
5.278131
0.110993
0.02589
0.024931
0.031465
0.53277
0.46054
0.408737
0.352273
0.306558
0.264456
0
0.002853
0.272247
72,247
1,970
180
36.673604
0.850013
0.128684
0
0.381646
0
0.007595
0.14085
0.017716
0
0
0
0
0.001266
1
0.041139
false
0
0.036076
0.020253
0.294937
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e88662b9dcdea887377483da9b99fbeb0a1e2ce
1,650
py
Python
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
null
null
null
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
1
2021-02-24T17:11:26.000Z
2021-02-24T17:11:31.000Z
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
1
2021-12-10T12:27:17.000Z
2021-12-10T12:27:17.000Z
import pandas as pd from dataset import create_dataloader from engine import train_fn from model import SunBERT from transformers import AdamW from torch import nn def run(): MAX_LEN = 66 BATCH_SIZE = 32 EPOCHS = 5 device = torch.device("cuda:0" if torch.cuda.is_available() else "Couldn't find GPU dev...
38.372093
130
0.746667
247
1,650
4.696356
0.433198
0.034483
0.046552
0.051724
0.113793
0.058621
0
0
0
0
0
0.014493
0.163636
1,650
42
131
39.285714
0.826087
0.081818
0
0
0
0
0.05298
0
0
0
0
0
0
1
0.033333
false
0
0.2
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e89e5918f3ccc62e2c9d037ec970ff4354a9c3b
4,430
py
Python
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
5
2020-05-23T13:10:51.000Z
2021-09-07T13:56:38.000Z
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
null
null
null
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
null
null
null
# Importing all essential libraries import os import random import sys import pandas as pd import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.layers import Dropout from keras.optimizers import RMSprop from keras.utils.data_utils import get_fil...
29.731544
93
0.584876
545
4,430
4.645872
0.321101
0.028436
0.027646
0.033175
0.14139
0.097946
0.097946
0.097946
0.097946
0.097946
0
0.015646
0.163205
4,430
148
94
29.932432
0.667386
0.245598
0
0.117647
0
0
0.066485
0.014506
0
0
0
0
0
1
0.023529
false
0
0.164706
0
0.2
0.141176
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e8c90529784c32fc97eee269bf1f19fcbbdd280
1,494
py
Python
tests/service/test_base.py
flyinactor91/AVWX-Engine
0d3ce2c6e962d2a3ec9db711caf9d1c94658fa80
[ "MIT" ]
30
2015-09-08T20:38:41.000Z
2019-03-10T07:10:47.000Z
tests/service/test_base.py
sthagen/avwx-engine
af235b9d26e5495f04076ed5499cf8cd131d4efc
[ "MIT" ]
5
2015-08-12T15:50:07.000Z
2019-04-16T00:42:12.000Z
tests/service/test_base.py
sthagen/avwx-engine
af235b9d26e5495f04076ed5499cf8cd131d4efc
[ "MIT" ]
11
2016-01-17T10:10:29.000Z
2019-01-13T17:55:36.000Z
""" Service API Tests """ # pylint: disable=missing-class-docstring # stdlib from typing import Tuple import unittest # module from avwx import service BASE_ATTRS = ("url", "report_type", "_valid_types") class BaseTestService(unittest.IsolatedAsyncioTestCase): serv: service.Service service_class = servic...
28.730769
66
0.660643
176
1,494
5.448864
0.340909
0.052138
0.05318
0.037539
0.22732
0.22732
0.22732
0.22732
0.145985
0.145985
0
0.00088
0.238956
1,494
51
67
29.294118
0.842568
0.113119
0
0.129032
0
0
0.0208
0
0
0
0
0
0.193548
1
0.096774
false
0
0.096774
0
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e8c94240a87d0206591689e63849ac4c1ef22b0
1,267
py
Python
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
""" This is a nifty little tool to create really cool looking Readme files. Its essentially a templating tool for such. The initial steps to create a template are the following: - create a super cool ANSI Art design for your readme. - create a template that uses this image and defines fields where text can be inserted....
27.543478
115
0.767956
179
1,267
5.27933
0.502793
0.022222
0.028571
0.053968
0.066667
0
0
0
0
0
0
0
0.168903
1,267
45
116
28.155556
0.897436
0.562747
0
0
0
0
0.020221
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.2
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e91bffc137dacb98dd65fdc54a68e7adb4518df
3,080
py
Python
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
1
2016-10-13T18:36:59.000Z
2016-10-13T18:36:59.000Z
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
null
null
null
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import json # If you change this be sure to change it everywhere in the main ahk file too. bank_size = 8 input_file = "soundboard_data.json" output_file = "soundboard_data.ahk" def indent(indent_level): return (indent_level * 4) * " " def main(): with open(input_file) as f: d...
29.615385
87
0.612662
403
3,080
4.506203
0.287841
0.145374
0.140419
0.146476
0.409692
0.390969
0.355727
0.331498
0.30837
0.285242
0
0.009063
0.247727
3,080
103
88
29.902913
0.774709
0.154545
0
0.298507
0
0
0.260601
0.178489
0
0
0
0
0
1
0.029851
false
0
0.014925
0.014925
0.059701
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e93915ecdb2cdb619894439c631119916b71978
1,822
py
Python
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=1047 lang=python # # [1047] Remove All Adjacent Duplicates In String # # https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/description/ # # algorithms # Easy (63.77%) # Likes: 184 # Dislikes: 18 # Total Accepted: 21.7K # Total Submissions: 34K # Testcase...
23.063291
85
0.57629
226
1,822
4.610619
0.544248
0.017274
0.03263
0.051823
0.067179
0.067179
0
0
0
0
0
0.02818
0.318332
1,822
78
86
23.358974
0.810789
0.634468
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
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
1e99fc63ab0f76d9f24c67f04cff7cdb44f433f8
3,444
py
Python
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
55
2021-01-15T17:01:10.000Z
2022-03-26T20:15:33.000Z
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
53
2021-02-14T22:17:44.000Z
2022-01-28T17:43:59.000Z
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
33
2021-02-19T13:30:49.000Z
2022-01-12T06:58:07.000Z
# -*- coding: utf-8 -*- """ @author: iceland """ import bit import time import random import os from fastecdsa import curve from fastecdsa.point import Point bs_file = 'baby_steps_table.txt' def Pub2Point(public_key): x = int(public_key[2:66],16) if len(public_key) < 70: y = bit.form...
32.8
146
0.525842
455
3,444
3.89011
0.323077
0.086441
0.027119
0.014689
0.061017
0.045198
0
0
0
0
0
0.066693
0.255517
3,444
104
147
33.115385
0.623635
0.126597
0
0.054795
0
0.013699
0.16928
0.052272
0
0
0
0
0
1
0.041096
false
0
0.082192
0
0.164384
0.109589
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e9d25884d2e5c0101e720dedd1422a914d3a51f
6,921
py
Python
utils/search_methods/improved_genetic_algorithm.py
Yzx835/AISafety
eb09551814898c7f6d86641b47faf7845c948640
[ "MIT" ]
null
null
null
utils/search_methods/improved_genetic_algorithm.py
Yzx835/AISafety
eb09551814898c7f6d86641b47faf7845c948640
[ "MIT" ]
null
null
null
utils/search_methods/improved_genetic_algorithm.py
Yzx835/AISafety
eb09551814898c7f6d86641b47faf7845c948640
[ "MIT" ]
null
null
null
# !/usr/bin/env python # coding=UTF-8 """ @Author: WEN Hao @LastEditors: WEN Hao @Description: @Date: 2021-09-09 @LastEditTime: 2022-04-17 文章Natural Language Adversarial Attack and Defense in Word Level中提出的遗传算法 注意!中文因为切词,可能进行 crossover 的操作之后,词的数目发生变化, 目前暂时把搜索范围截断为两个句子词数目较小的句子的词数目。 """ from typing import NoReturn, L...
40.238372
146
0.675625
828
6,921
5.353865
0.292271
0.074442
0.094293
0.024363
0.18836
0.138055
0.089781
0.0388
0.022558
0.022558
0
0.011036
0.253721
6,921
171
147
40.473684
0.847241
0.4063
0
0.043956
0
0
0.058009
0.058009
0
0
0
0
0
1
0.065934
false
0
0.076923
0.010989
0.21978
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ea33dcbed661949c9cfc5e0d749a5bbbbaa4357
1,595
py
Python
tests/operations/test_set_op.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
null
null
null
tests/operations/test_set_op.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
46
2019-02-22T16:46:02.000Z
2020-03-08T20:26:37.000Z
tests/operations/test_set_op.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
null
null
null
import pytest from eight_bit_computer.operations import set_op from eight_bit_computer.data_structures import get_machine_code_byte_template from eight_bit_computer.exceptions import OperationParsingError def generate_parse_line_test_data(): ret = [] test_input = "" expected = [] ret.append((test_in...
25.725806
77
0.676489
219
1,595
4.557078
0.228311
0.144289
0.119238
0.09018
0.638277
0.467936
0.421844
0.421844
0.244489
0.244489
0
0.038911
0.194357
1,595
61
78
26.147541
0.737743
0
0
0.333333
0
0
0.165517
0
0
0
0
0
0.020833
1
0.0625
false
0
0.083333
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
1ea3c749e4408cf0fa0ebae421190ee713d5bf51
10,098
py
Python
src/models/ToothModel.py
arminnh/ma2-computer-vision
9e931c87e097cd444ea292cdfff727636f003c36
[ "MIT" ]
null
null
null
src/models/ToothModel.py
arminnh/ma2-computer-vision
9e931c87e097cd444ea292cdfff727636f003c36
[ "MIT" ]
null
null
null
src/models/ToothModel.py
arminnh/ma2-computer-vision
9e931c87e097cd444ea292cdfff727636f003c36
[ "MIT" ]
null
null
null
import numpy as np import scipy.spatial.distance from scipy import linalg import procrustes_analysis import util from Landmark import Landmark from models.CenterInitializationModel import CenterInitializationModel class ToothModel: def __init__(self, name, landmarks, pcaComponents, sampleAmount): self.na...
42.970213
120
0.672509
997
10,098
6.794383
0.271815
0.014615
0.007086
0.005314
0.109536
0.109536
0.084145
0.060526
0.02982
0.02982
0
0.004095
0.250248
10,098
234
121
43.153846
0.890635
0.25005
0
0.080882
0
0
0.025003
0
0
0
0
0.004274
0
1
0.095588
false
0
0.051471
0.007353
0.242647
0.007353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ea6959c71f84b4fbb20cdee1843fe3bbf5d0e59
4,169
py
Python
ImageProcessingScripts/Automated Pixel Sorting/automated_pixel_sorting.py
rafaelapcruz/Awesome_Python_Scripts
6493ce989c1bcd707a10836f09462916388476a1
[ "MIT" ]
1
2021-12-07T17:37:56.000Z
2021-12-07T17:37:56.000Z
ImageProcessingScripts/Automated Pixel Sorting/automated_pixel_sorting.py
rafaelapcruz/Awesome_Python_Scripts
6493ce989c1bcd707a10836f09462916388476a1
[ "MIT" ]
null
null
null
ImageProcessingScripts/Automated Pixel Sorting/automated_pixel_sorting.py
rafaelapcruz/Awesome_Python_Scripts
6493ce989c1bcd707a10836f09462916388476a1
[ "MIT" ]
null
null
null
import os import sys import getopt import random as r from PIL import Image from pixelsort import pixelsort def randomize_params(): angle = r.randint(90, 359) # --- DEFINE ALL PARAMETERS --- params = { 1: 'interval_function', 2: 'randomness', 3: 'lower_threshold', 4: 'upper...
32.317829
84
0.562725
474
4,169
4.767932
0.267932
0.061947
0.055752
0.047788
0.103982
0.040708
0.017699
0
0
0
0
0.018512
0.300312
4,169
129
85
32.317829
0.756256
0.118734
0
0.051546
0
0
0.201366
0
0
0
0
0
0
1
0.030928
false
0.010309
0.061856
0
0.113402
0.123711
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ea73bdb618160f1e19273aa3d6ae48a8b2062e6
1,434
py
Python
curl-monitor.py
geekvikas/hello-kubernetes
cdb94ef83adcb9ab4169f67137638aadc3d7509c
[ "MIT" ]
null
null
null
curl-monitor.py
geekvikas/hello-kubernetes
cdb94ef83adcb9ab4169f67137638aadc3d7509c
[ "MIT" ]
null
null
null
curl-monitor.py
geekvikas/hello-kubernetes
cdb94ef83adcb9ab4169f67137638aadc3d7509c
[ "MIT" ]
null
null
null
import requests import time import subprocess as sp start_time = 0 running_instances = {} errCount = 0 reqCount = 0 def printStatus(hostname,version): global running_instances global start_time, errCount, reqCount elapsed_time = int(time.time() - start_time) # if (elapsed_time % 2) == 0 : strin...
26.072727
139
0.608787
171
1,434
4.906433
0.374269
0.190703
0.046484
0.059595
0.154946
0.081049
0
0
0
0
0
0.023969
0.272664
1,434
55
140
26.072727
0.780441
0.019526
0
0.243902
0
0
0.099644
0
0
0
0
0
0
1
0.04878
false
0
0.073171
0
0.121951
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ea7b89e8805b8150979e44b372cf9c7862d376d
4,352
py
Python
utils/test_utils.py
kedartatwawadi/stanford_compression_library
a472a81c71aeb81e181421e42aed75971a1cf4be
[ "MIT" ]
2
2022-01-10T06:18:47.000Z
2022-01-10T06:18:55.000Z
utils/test_utils.py
kedartatwawadi/stanford_compression_library
a472a81c71aeb81e181421e42aed75971a1cf4be
[ "MIT" ]
20
2021-10-17T23:40:52.000Z
2022-03-08T04:35:42.000Z
utils/test_utils.py
kedartatwawadi/stanford_compression_library
a472a81c71aeb81e181421e42aed75971a1cf4be
[ "MIT" ]
null
null
null
""" Utility functions useful for testing """ import filecmp from typing import Tuple from core.data_block import DataBlock from core.data_stream import TextFileDataStream from core.data_encoder_decoder import DataDecoder, DataEncoder from core.prob_dist import ProbabilityDist from utils.bitarray_utils import BitArray,...
36.881356
136
0.735064
607
4,352
5.041186
0.257002
0.05
0.021242
0.017647
0.111111
0.063399
0
0
0
0
0
0.003741
0.201517
4,352
117
137
37.196581
0.876835
0.398438
0
0.041667
0
0
0.013398
0
0
0
0
0
0.020833
1
0.104167
false
0
0.208333
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eab2801fa3a5a8256f44b1bd99c1e958db0f033
3,094
py
Python
objects/classical_storage.py
h-oll/QuNetSim
e3647e512182eda2a303085ded30c7d1e55a4e01
[ "MIT" ]
null
null
null
objects/classical_storage.py
h-oll/QuNetSim
e3647e512182eda2a303085ded30c7d1e55a4e01
[ "MIT" ]
4
2021-02-02T23:10:37.000Z
2022-02-11T03:47:21.000Z
objects/classical_storage.py
h-oll/QuNetSim
e3647e512182eda2a303085ded30c7d1e55a4e01
[ "MIT" ]
null
null
null
import components.protocols as protocols class ClassicalStorage(object): """ A classical storage for messages. """ def __init__(self): self._host_to_msg_dict = {} self._host_to_read_index = {} def _add_new_host_id(self, host_id): self._host_to_msg_dict[host_id] = [] ...
33.268817
94
0.616031
433
3,094
4.066975
0.212471
0.0954
0.113572
0.110733
0.387848
0.31289
0.28109
0.172061
0.172061
0.156729
0
0.000932
0.306723
3,094
92
95
33.630435
0.820047
0.275048
0
0.090909
0
0
0.017068
0
0
0
0
0
0
1
0.181818
false
0
0.022727
0
0.386364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eabccfd77a86f3f295b6a683297245028bed3b7
4,331
py
Python
build.py
sug0/libgoimg
46545f2a9a68a1063579e8b15c09fa8600128986
[ "MIT" ]
3
2019-02-26T13:41:46.000Z
2019-05-02T16:43:13.000Z
build.py
sugoiuguu/libgoimg
46545f2a9a68a1063579e8b15c09fa8600128986
[ "MIT" ]
1
2019-02-04T22:07:56.000Z
2019-02-04T22:07:56.000Z
build.py
sugoiuguu/libgoimg
46545f2a9a68a1063579e8b15c09fa8600128986
[ "MIT" ]
null
null
null
import re import os from sys import exit, argv from platform import machine from functools import reduce def is_exe(fpath): return os.path.isfile(fpath) and os.access(fpath, os.X_OK) def which(program): if os.name == 'nt': program += '.exe' fpath, fname = os.path.split(program) if fpath and...
27.585987
98
0.529439
581
4,331
3.884682
0.342513
0.008861
0.019495
0.026584
0.095702
0.030128
0.030128
0.030128
0
0
0
0.034563
0.305241
4,331
156
99
27.762821
0.71552
0.070423
0
0.140496
0
0.008264
0.173058
0.011205
0
0
0
0
0
1
0.090909
false
0
0.041322
0.033058
0.297521
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eac22c7615b08f822c855110b5fa481a819bff8
273
py
Python
sisbp_cat.py
naotohori/cafysis
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
2
2022-02-25T17:32:41.000Z
2022-03-31T14:38:55.000Z
sisbp_cat.py
naotohori/cafysis
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
2
2020-05-03T08:36:10.000Z
2021-01-27T12:40:50.000Z
sisbp_cat.py
naotohori/life-of-py
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
null
null
null
#!/usr/bin/env python from cafysis.file_io.sisbp import SisbpFile import sys f = SisbpFile(sys.argv[1]) f.open_to_read() while f.has_more_data(): pairs = f.read_onestep() for p in pairs: print(f" ({p[0]:d}, {p[1]:d})", end='') print("") f.close()
15.166667
47
0.611722
47
273
3.425532
0.680851
0.074534
0
0
0
0
0
0
0
0
0
0.013636
0.194139
273
17
48
16.058824
0.718182
0.07326
0
0
0
0
0.083333
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eac32e0121b7c0cf9d2b404b91b0f2a824ee7a2
535
py
Python
sendemail.py
kenelite/pypractise
ef79ca760533096e6da89846e2974fa47a060440
[ "MIT" ]
null
null
null
sendemail.py
kenelite/pypractise
ef79ca760533096e6da89846e2974fa47a060440
[ "MIT" ]
null
null
null
sendemail.py
kenelite/pypractise
ef79ca760533096e6da89846e2974fa47a060440
[ "MIT" ]
null
null
null
#/usr/bin/env python import smtplib mail_server = 'localhost' mail_server_port = 25 from_addr = 'sender@devcentos.example.com' to_addr = 'root@devcentos.example.com' from_header = 'From: %s\r\n' % from_addr to_header = 'To: %s\r\n\r\n' % to_addr subject_header = 'Subject: nothing interesting' body = 'This is not...
22.291667
84
0.73271
90
535
4.133333
0.411111
0.107527
0.075269
0.021505
0
0
0
0
0
0
0
0.004255
0.121495
535
23
85
23.26087
0.787234
0.035514
0
0
0
0
0.324272
0.104854
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ead0b0255a3ba3da34a217fdcc1371caa46d76d
717
py
Python
factioncli/commands/log.py
s3b4stian/CLI
057e4e9e2bff7bdce0f60106a0c61938386f7d01
[ "BSD-3-Clause" ]
null
null
null
factioncli/commands/log.py
s3b4stian/CLI
057e4e9e2bff7bdce0f60106a0c61938386f7d01
[ "BSD-3-Clause" ]
null
null
null
factioncli/commands/log.py
s3b4stian/CLI
057e4e9e2bff7bdce0f60106a0c61938386f7d01
[ "BSD-3-Clause" ]
null
null
null
import logging from cliff.command import Command from factioncli.processing.docker.logs import get_logs class Log(Command): "Handles Log Command" def get_parser(self, prog_name): parser = super(Log, self).get_parser(prog_name) parser.add_argument('-f','--follow', he...
34.142857
63
0.559275
75
717
5.173333
0.493333
0.07732
0.072165
0
0
0
0
0
0
0
0
0.002146
0.35007
717
21
63
34.142857
0.830472
0.026499
0
0
0
0
0.133705
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eaeeb70f4d3820cedf81ea0c740713a9b0641c3
10,097
py
Python
delfick_project/option_merge/path.py
delfick/delfick_project
4b49209639dd10cff6f48b4f5617cb7874481aaa
[ "MIT" ]
1
2020-12-01T21:11:24.000Z
2020-12-01T21:11:24.000Z
delfick_project/option_merge/path.py
delfick/delfick_project
4b49209639dd10cff6f48b4f5617cb7874481aaa
[ "MIT" ]
2
2019-11-18T05:28:19.000Z
2019-11-18T07:12:24.000Z
delfick_project/option_merge/path.py
delfick/delfick_project
4b49209639dd10cff6f48b4f5617cb7874481aaa
[ "MIT" ]
2
2019-11-18T05:35:39.000Z
2021-01-06T18:48:37.000Z
""" Option_merge uses this Path object to encapsulate the idea of a path and the converters that are available to use. We are able to use this to store a reference to the root of the configuration as well as whether the converters should be ignored or not. It's purpose is to behave like a string regardless of whether...
31.751572
95
0.571754
1,229
10,097
4.560618
0.147274
0.064228
0.023194
0.022837
0.275468
0.196075
0.146833
0.094202
0.058162
0.043533
0
0.001826
0.349015
10,097
317
96
31.851735
0.850905
0.212142
0
0.236715
0
0
0.004335
0
0
0
0
0
0
1
0.130435
false
0
0.009662
0.004831
0.36715
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eaf0d7cba39f6baabe80e6ccc1b07ab55100c68
7,468
py
Python
test/helpers/acmeair_utils.py
cloudant-labs/spark-cloudant
07f772eb21ec268f2e013a65dc2f21e01232f82b
[ "Apache-2.0" ]
25
2015-11-02T16:50:47.000Z
2020-11-07T13:41:36.000Z
test/helpers/acmeair_utils.py
cloudant-labs/spark-cloudant
07f772eb21ec268f2e013a65dc2f21e01232f82b
[ "Apache-2.0" ]
80
2015-10-14T11:08:00.000Z
2018-03-26T01:30:20.000Z
test/helpers/acmeair_utils.py
cloudant-labs/spark-cloudant
07f772eb21ec268f2e013a65dc2f21e01232f82b
[ "Apache-2.0" ]
30
2015-10-13T19:14:13.000Z
2020-11-08T07:23:30.000Z
#******************************************************************************* # Copyright (c) 2015 IBM Corp. # # 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/li...
32.611354
115
0.684922
978
7,468
5.101227
0.309816
0.033674
0.025256
0.015234
0.197835
0.156344
0.108439
0.076568
0.043295
0.043295
0
0.009508
0.183182
7,468
229
116
32.611354
0.808361
0.243706
0
0.216418
0
0
0.229223
0.02046
0
0
0
0
0
1
0.059701
false
0.022388
0.059701
0
0.19403
0.067164
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eaff492508ad7fb7bb92e8d684b7499f0632a98
596
py
Python
hackerrank-python/py-collections-namedtuple.py
fmelihh/competitive-programming-solutions
c15c2f7d90153f35f9bd9ffcea20ac921564eacf
[ "MIT" ]
2
2021-09-06T22:13:12.000Z
2021-11-22T08:50:04.000Z
hackerrank-python/py-collections-namedtuple.py
fmelihh/competitive-programming-solutions
c15c2f7d90153f35f9bd9ffcea20ac921564eacf
[ "MIT" ]
null
null
null
hackerrank-python/py-collections-namedtuple.py
fmelihh/competitive-programming-solutions
c15c2f7d90153f35f9bd9ffcea20ac921564eacf
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/py-collections-namedtuple/problem from collections import namedtuple if __name__ == '__main__': test_cases = int(input()) length = test_cases sum_marks = 0 colums = input().split() while(test_cases > 0): attributes = input().split...
14.9
79
0.580537
64
596
5.171875
0.53125
0.108761
0
0
0
0
0
0
0
0
0
0.021226
0.288591
596
39
80
15.282051
0.759434
0.119128
0
0
0
0
0.042146
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eb6aa4e2227819f8ee6cee396c7d5b44ecaa7f9
2,147
py
Python
0.5.12/ui_tweak/dashcamd.py
eFiniLan/openpilot-patches
ec8f1552651c17e6e0d1821d958412b6fa049228
[ "MIT" ]
9
2019-03-02T14:54:48.000Z
2021-09-06T13:48:08.000Z
0.5.12/ui_tweak/dashcamd.py
eFiniLan/openpilot-patches
ec8f1552651c17e6e0d1821d958412b6fa049228
[ "MIT" ]
null
null
null
0.5.12/ui_tweak/dashcamd.py
eFiniLan/openpilot-patches
ec8f1552651c17e6e0d1821d958412b6fa049228
[ "MIT" ]
9
2019-02-28T18:48:08.000Z
2021-11-07T20:12:54.000Z
#!/usr/bin/env python2.7 # # courtesy of pjlao307 (https://github.com/pjlao307/) # this is just his original implementation but # in openpilot service form so it's always on # # with the highest bit rates, the video is approx. 0.5MB per second # the default value is set to 2.56Mbps = 0.32MB per second # import os impor...
35.783333
123
0.695855
342
2,147
4.201754
0.44152
0.104384
0.048713
0.029228
0.141962
0.10856
0.069589
0.069589
0.069589
0.069589
0
0.041496
0.203074
2,147
59
124
36.389831
0.798364
0.389846
0
0
0
0
0.079969
0
0
0
0
0
0
1
0.09375
false
0
0.09375
0.03125
0.21875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eb775eefae8b7ad81e9c1edc49fc135b3659d88
1,196
py
Python
Problems/Study Plans/Data Structure/Data Structure II/66_find_the_winner_of_the_circular_game.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
1
2022-01-17T19:51:15.000Z
2022-01-17T19:51:15.000Z
Problems/Study Plans/Data Structure/Data Structure II/66_find_the_winner_of_the_circular_game.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
null
null
null
Problems/Study Plans/Data Structure/Data Structure II/66_find_the_winner_of_the_circular_game.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
null
null
null
# https://leetcode.com/problems/find-the-winner-of-the-circular-game/ class ListNode: def __init__(self, val=0, next=None, prev=None): self.val = val self.next = next self.prev = prev class Solution: def findTheWinner(self, n: int, k: int) -> int: if n == 1: return...
34.171429
75
0.579431
170
1,196
3.841176
0.329412
0.159265
0.073507
0.073507
0.162328
0.098009
0.098009
0.098009
0
0
0
0.012547
0.333612
1,196
34
76
35.176471
0.806775
0.165552
0
0
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eb7c03290fb08e39908cee05b1cbf3161290e22
1,237
py
Python
gmql/dataset/parsers/__init__.py
DEIB-GECO/PyGMQL
c7582b916c985a1521276a3e7eaba010b7902687
[ "Apache-2.0" ]
12
2017-06-10T13:18:32.000Z
2021-05-06T12:19:07.000Z
gmql/dataset/parsers/__init__.py
DEIB-GECO/PyGMQL
c7582b916c985a1521276a3e7eaba010b7902687
[ "Apache-2.0" ]
28
2017-05-09T13:38:17.000Z
2021-09-29T11:54:23.000Z
gmql/dataset/parsers/__init__.py
DEIB-GECO/PyGMQL
c7582b916c985a1521276a3e7eaba010b7902687
[ "Apache-2.0" ]
5
2017-10-11T13:53:57.000Z
2020-02-28T06:21:21.000Z
# -*- coding: utf-8 -*- # strings to recognize as NaN NULL = "null" INF = "∞" UNDEFINED = "�" null_values = [NULL, INF, UNDEFINED] GTF = "gtf" TAB = "tab" VCF = "vcf" string_aliases = ['string', 'char'] int_aliases = ['long', 'int', 'integer'] float_aliases = ['double', 'float'] bool_aliases = ['bool', 'boolean'] al...
22.907407
74
0.662894
162
1,237
4.858025
0.388889
0.060991
0.060991
0.060991
0.129606
0.129606
0.129606
0.129606
0.129606
0.129606
0.000808
0.003125
0.223929
1,237
54
75
22.907407
0.814583
0.039612
0
0.097561
0
0
0.137437
0
0
0
0
0
0
1
0.04878
false
0
0.073171
0
0.317073
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1eb85d0b0b100f5bb627dcd79ecd47d9d0502716
15,321
py
Python
src/atomicfileio/__init__.py
sammck/python-atomicfileio
23ec410815cf5f825e49cf18cb822b352943b758
[ "MIT" ]
null
null
null
src/atomicfileio/__init__.py
sammck/python-atomicfileio
23ec410815cf5f825e49cf18cb822b352943b758
[ "MIT" ]
null
null
null
src/atomicfileio/__init__.py
sammck/python-atomicfileio
23ec410815cf5f825e49cf18cb822b352943b758
[ "MIT" ]
null
null
null
"""Support for safely atomically updating files This module provides tools for overwriting files in such a way that a reader will never see a partially written file. Portions borrowed from https://code.activestate.com/recipes/579097-safely-and-atomically-write-to-a-file/, also under the MIT license. """ __version__ =...
46.427273
140
0.685595
2,316
15,321
4.48532
0.213731
0.02628
0.026184
0.009241
0.188487
0.149981
0.118598
0.079322
0.076242
0.054293
0
0.007757
0.251159
15,321
329
141
46.568389
0.897673
0.713204
0
0.229008
0
0
0.025177
0
0
0
0
0
0.007634
1
0.038168
false
0.030534
0.099237
0
0.175573
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ebaa882aa44892e3a1918f92d6f8a028a36933a
2,259
py
Python
iv_plan/examples/hironxsys_hand_ar.py
ryhanai/iv-plan-hironx
2f89293a55df4608cb35e6a9676db97b9e486e7d
[ "BSD-3-Clause" ]
null
null
null
iv_plan/examples/hironxsys_hand_ar.py
ryhanai/iv-plan-hironx
2f89293a55df4608cb35e6a9676db97b9e486e7d
[ "BSD-3-Clause" ]
null
null
null
iv_plan/examples/hironxsys_hand_ar.py
ryhanai/iv-plan-hironx
2f89293a55df4608cb35e6a9676db97b9e486e7d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import roslib; roslib.load_manifest('iv_plan') from ivutils import * from hironxsys import * import rospy from ar_pose.msg import ARMarkers from tf.transformations import * import operator def encode_FRAME(f): return reduce(operator.__add__, f.mat) + f.vec def decode_FRAME(ds): retu...
32.271429
104
0.660912
308
2,259
4.698052
0.357143
0.009675
0.008293
0.029026
0.143746
0.109191
0.109191
0.100898
0.100898
0.052522
0
0.024444
0.203187
2,259
69
105
32.73913
0.779444
0.062417
0
0.083333
0
0
0.061051
0.02461
0
0
0
0
0
1
0.1875
false
0
0.166667
0.041667
0.520833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ebb910855fd59083774495a20a52d1eeadfcf75
1,513
py
Python
tests/test_randomvariablelist.py
ralfrost/probnum
6b0988009a9dd7ecda87ba28c9d5c0b8019981b6
[ "MIT" ]
null
null
null
tests/test_randomvariablelist.py
ralfrost/probnum
6b0988009a9dd7ecda87ba28c9d5c0b8019981b6
[ "MIT" ]
null
null
null
tests/test_randomvariablelist.py
ralfrost/probnum
6b0988009a9dd7ecda87ba28c9d5c0b8019981b6
[ "MIT" ]
null
null
null
import unittest import numpy as np from probnum._randomvariablelist import _RandomVariableList from probnum.random_variables import Dirac class TestRandomVariableList(unittest.TestCase): def setUp(self): self.rv_list = _RandomVariableList([Dirac(0.1), Dirac(0.2)]) def test_inputs(self): """In...
29.666667
73
0.623265
184
1,513
4.918478
0.342391
0.039779
0.066298
0.057459
0.028729
0
0
0
0
0
0
0.018987
0.269002
1,513
50
74
30.26
0.799277
0.037013
0
0.054054
0
0
0.005513
0
0
0
0
0
0.162162
1
0.189189
false
0
0.108108
0
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ebbf6764706c37fc954f30837690895994c3e65
1,759
py
Python
example_code/python/plot_curve_fit.py
NicoJG/PraktikumPhysikRepoVorlage
b29a4302958edc6205e2b107f7253f614cea0181
[ "MIT" ]
1
2021-08-21T17:08:39.000Z
2021-08-21T17:08:39.000Z
example_code/python/plot_curve_fit.py
NicoJG/PraktikumPhysikRepoVorlage
b29a4302958edc6205e2b107f7253f614cea0181
[ "MIT" ]
null
null
null
example_code/python/plot_curve_fit.py
NicoJG/PraktikumPhysikRepoVorlage
b29a4302958edc6205e2b107f7253f614cea0181
[ "MIT" ]
null
null
null
# Erstelle aus gegebnen Daten eine Ausgleichskurve # Und Plotte diese Kurve + die Daten # wechsle die Working Directory zum Versuchsordner, damit das Python-Script von überall ausgeführt werden kann import os,pathlib project_path = pathlib.Path(__file__).absolute().parent.parent os.chdir(project_path) # benutze die ma...
30.859649
110
0.728823
278
1,759
4.532374
0.507194
0.034921
0.022222
0.031746
0.052381
0.052381
0
0
0
0
0
0.014829
0.118249
1,759
57
111
30.859649
0.79755
0.388289
0
0
0
0
0.194707
0
0
0
0
0
0
1
0.037037
false
0
0.148148
0.037037
0.222222
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ebc01631e08d866baf1828fd8f7817027107805
2,547
py
Python
pachicounter/util.py
yukkeorg/PachiCounter
764526874e9ec03e06e7b61b136b20100e32d471
[ "MIT" ]
null
null
null
pachicounter/util.py
yukkeorg/PachiCounter
764526874e9ec03e06e7b61b136b20100e32d471
[ "MIT" ]
null
null
null
pachicounter/util.py
yukkeorg/PachiCounter
764526874e9ec03e06e7b61b136b20100e32d471
[ "MIT" ]
null
null
null
# vim: ts=4 sts=4 sw=4 et ##################################################################### # Pachi Counter # Copyright (c) 2011-2020, Yusuke Ohshima All rights reserved. # # License: MIT. # For details, please see LICENSE file. ##################################################################### def bit_is_enab...
26.53125
74
0.505693
366
2,547
3.39071
0.34153
0.008058
0.035455
0.016116
0.059629
0.038678
0.038678
0
0
0
0
0.054083
0.274048
2,547
95
75
26.810526
0.61709
0.058893
0
0.060606
0
0
0.084814
0.043517
0
0
0.001776
0
0
1
0.151515
false
0
0
0.060606
0.287879
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ebea48b67d5622f6da1e6d92ac82373b246ae19
309
py
Python
Prediction.py
neerajgupta2407/Fake-News-Foe
394c83be8ea98caa60af7fdca2c8ec34af67c33f
[ "Apache-2.0" ]
9
2020-03-26T12:22:57.000Z
2021-05-01T20:07:55.000Z
Prediction.py
neerajgupta2407/Fake-News-Foe
394c83be8ea98caa60af7fdca2c8ec34af67c33f
[ "Apache-2.0" ]
4
2020-10-20T15:13:44.000Z
2022-02-10T01:46:36.000Z
Prediction.py
neerajgupta2407/Fake-News-Foe
394c83be8ea98caa60af7fdca2c8ec34af67c33f
[ "Apache-2.0" ]
5
2020-03-25T15:26:14.000Z
2020-12-03T20:07:23.000Z
import pickle #function to run for prediction def detecting_fake_news(var): #retrieving the best model for prediction call load_model = pickle.load(open('model/final_model.sav', 'rb')) prediction = load_model.predict([var]) prob = load_model.predict_proba([var]) return prediction, prob
28.090909
65
0.734628
43
309
5.116279
0.604651
0.122727
0.145455
0
0
0
0
0
0
0
0
0
0.165049
309
10
66
30.9
0.852713
0.242718
0
0
0
0
0.099138
0.090517
0
0
0
0
0
1
0.166667
false
0
0.166667
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
1ec140a711eadb53834529c9948538cfabdd7acf
9,058
py
Python
chapter01/tic_tac_toe.py
TomaszGolan/rl-intro
1676bfaea0c1661f931c160ed9ae104ee0b7b968
[ "MIT" ]
null
null
null
chapter01/tic_tac_toe.py
TomaszGolan/rl-intro
1676bfaea0c1661f931c160ed9ae104ee0b7b968
[ "MIT" ]
null
null
null
chapter01/tic_tac_toe.py
TomaszGolan/rl-intro
1676bfaea0c1661f931c160ed9ae104ee0b7b968
[ "MIT" ]
null
null
null
import re import random import numpy as np from itertools import product from enum import Enum, unique from abc import ABC, abstractmethod from typing import Iterator, Dict, List SIZE = 3 # board size (represented by numpy.array SIZExSIZE) # for human player KEYS = {'q': (0, 0), 'w': (0, 1), 'e': (0, 2), 'a'...
31.894366
80
0.593729
1,234
9,058
4.269044
0.210697
0.027904
0.029233
0.013288
0.104973
0.069476
0.037206
0.026196
0
0
0
0.022633
0.278097
9,058
283
81
32.007067
0.782994
0.261758
0
0.087248
0
0
0.038072
0
0
0
0
0
0
1
0.147651
false
0.026846
0.04698
0
0.302013
0.040268
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ec1f348503a6ddff54e195931bc4015e263f684
2,034
py
Python
run/make_cal_sinograms.py
TysonReimer/itDAS
d4b4313afe253186b12e1e8eda5ef55bada0c764
[ "Apache-2.0" ]
8
2020-04-27T05:43:33.000Z
2021-12-05T14:48:09.000Z
run/make_cal_sinograms.py
TysonReimer/itDAS
d4b4313afe253186b12e1e8eda5ef55bada0c764
[ "Apache-2.0" ]
null
null
null
run/make_cal_sinograms.py
TysonReimer/itDAS
d4b4313afe253186b12e1e8eda5ef55bada0c764
[ "Apache-2.0" ]
2
2021-02-16T11:07:07.000Z
2021-12-05T14:48:27.000Z
""" Tyson Reimer University of Manitoba January 28th, 2020 """ import os from umbms import get_proj_path, get_script_logger from umbms.loadsave import load_pickle, save_pickle from umbms.beamform.sigproc import iczt ############################################################################### __DA...
30.358209
80
0.576696
266
2,034
4.007519
0.379699
0.067542
0.028143
0.028143
0.031895
0
0
0
0
0
0
0.011494
0.272861
2,034
66
81
30.818182
0.709263
0.26352
0
0
0
0
0.096491
0
0
0
0
0
0
1
0
false
0
0.142857
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
1ec58569c44771c682f58f8e09b37bae0d7d95c2
5,477
py
Python
waveform_analysis/tests/test_ITU_R_468_weighting.py
pirun/waveform_analysis
66809614b1fc985e694af1720341035316a5ac8e
[ "MIT" ]
125
2017-08-27T01:48:02.000Z
2022-01-20T10:47:13.000Z
waveform_analysis/tests/test_ITU_R_468_weighting.py
pirun/waveform_analysis
66809614b1fc985e694af1720341035316a5ac8e
[ "MIT" ]
13
2017-06-25T14:57:43.000Z
2022-03-18T19:54:19.000Z
waveform_analysis/tests/test_ITU_R_468_weighting.py
pirun/waveform_analysis
66809614b1fc985e694af1720341035316a5ac8e
[ "MIT" ]
48
2017-06-25T10:42:10.000Z
2022-03-09T18:13:55.000Z
import pytest from scipy import signal from scipy.interpolate import interp1d import numpy as np from numpy import pi # This package must first be installed with `pip install -e .` or similar from waveform_analysis import (ITU_R_468_weighting_analog, ITU_R_468_weighting, ITU_R_468_weight...
34.88535
75
0.606171
815
5,477
3.955828
0.26135
0.022333
0.026055
0.044665
0.583747
0.530087
0.514888
0.486352
0.463089
0.463089
0
0.099926
0.258171
5,477
156
76
35.108974
0.693576
0.148074
0
0.359649
0
0
0.02816
0
0
0
0
0
0.087719
1
0.070175
false
0
0.070175
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
1ec6ee8435e7b21f5ea4fab4d3b576dbdb55a35f
14,154
py
Python
src/ride.py
yuanmingqi/RISE
95577ac03c91937e5ddc22a8596270ad3e9d5e49
[ "MIT" ]
null
null
null
src/ride.py
yuanmingqi/RISE
95577ac03c91937e5ddc22a8596270ad3e9d5e49
[ "MIT" ]
null
null
null
src/ride.py
yuanmingqi/RISE
95577ac03c91937e5ddc22a8596270ad3e9d5e49
[ "MIT" ]
null
null
null
import torch from torch import nn, optim from torch.nn import functional as F from torch.utils import data import os import time from collections import deque import numpy as np import torch from a2c_ppo_acktr import algo from a2c_ppo_acktr import utils from a2c_ppo_acktr.envs import make_vec_envs from a2c_ppo_acktr...
37.84492
145
0.608026
1,814
14,154
4.483462
0.162624
0.015492
0.012787
0.017214
0.344399
0.29325
0.249354
0.213697
0.202877
0.189352
0
0.02109
0.273068
14,154
374
146
37.84492
0.769365
0.046701
0
0.231579
0
0.003509
0.038945
0
0
0
0
0.002674
0
1
0.059649
false
0.003509
0.049123
0
0.161404
0.003509
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ec73c33d161f5986058bec7dbdd80972b054c47
957
py
Python
contents/monte_carlo_integration/code/python/monte_carlo.py
hybrideagle/algorithm-archive
f94e22021dce5bda08b74dbc42d19da0b530e068
[ "MIT" ]
null
null
null
contents/monte_carlo_integration/code/python/monte_carlo.py
hybrideagle/algorithm-archive
f94e22021dce5bda08b74dbc42d19da0b530e068
[ "MIT" ]
null
null
null
contents/monte_carlo_integration/code/python/monte_carlo.py
hybrideagle/algorithm-archive
f94e22021dce5bda08b74dbc42d19da0b530e068
[ "MIT" ]
null
null
null
# submitted by hybrideagle from random import random from math import pi def in_circle(x_pos, y_pos): radius = 1 # Compute euclidian distance from origin return (x_pos * x_pos + y_pos * y_pos) < (radius * radius) def monte_carlo(n): """ Computes PI using the monte carlo method using `n` points ...
25.864865
74
0.61442
150
957
3.76
0.493333
0.021277
0.037234
0.028369
0
0
0
0
0
0
0
0.031977
0.281087
957
36
75
26.583333
0.787791
0.410658
0
0
0
0
0.064695
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.294118
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
1ec8250d4bb968d047bd4b22e1b37d8786d787f0
4,703
py
Python
crawler/crawlerhelpers/efa_beta.py
jenerous/vvs-delay
cb02813552422392b88fe64dd57a880e1a726025
[ "MIT" ]
null
null
null
crawler/crawlerhelpers/efa_beta.py
jenerous/vvs-delay
cb02813552422392b88fe64dd57a880e1a726025
[ "MIT" ]
null
null
null
crawler/crawlerhelpers/efa_beta.py
jenerous/vvs-delay
cb02813552422392b88fe64dd57a880e1a726025
[ "MIT" ]
null
null
null
from time import strftime class API_efaBeta(object): def __init__( self ): self.name = 'efaBeta' self.baseurl = 'https://www3.vvs.de/mngvvs/XML_DM_REQUEST' def convert_station_id( self, station_id ): """ convert station id that is given to the api specific repre...
41.991071
107
0.512439
447
4,703
5.232662
0.346756
0.050876
0.030782
0.02779
0.054724
0
0
0
0
0
0
0.010166
0.372528
4,703
111
108
42.369369
0.782447
0.182862
0
0.043478
0
0
0.212896
0.018344
0
0
0
0
0
1
0.057971
false
0
0.014493
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
1ecae2e0cdf0ce7ac01b4920249b41f67edaa21f
1,075
py
Python
2019/d22/d22.py
pravin/advent-2016
ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c
[ "Apache-2.0" ]
null
null
null
2019/d22/d22.py
pravin/advent-2016
ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c
[ "Apache-2.0" ]
null
null
null
2019/d22/d22.py
pravin/advent-2016
ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 class Day22: deck = list(range(0, 10007)) def dealIntoNewStack(self): self.deck = self.deck[::-1] def cutNCards(self, n): self.deck = self.deck[n:] + self.deck[:n] def incrementN(self, n): deck_copy = [None] * len(self.deck) pointer = 0 ...
28.289474
54
0.476279
125
1,075
3.992
0.4
0.144289
0.048096
0.064128
0
0
0
0
0
0
0
0.036309
0.385116
1,075
37
55
29.054054
0.718608
0.019535
0
0
0
0
0.026591
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.2
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ed18e3a5bc3e56a30a5c177a3d61fd5dbe77a14
3,373
py
Python
scripts/utils/MatlabUtils.py
Vants/stampsreplacer
a61d5174e1ee1d840a327ce6ec059a3a9f84a13b
[ "MIT" ]
18
2019-02-04T11:22:25.000Z
2022-02-15T10:02:14.000Z
scripts/utils/MatlabUtils.py
Vants/stampsreplacer
a61d5174e1ee1d840a327ce6ec059a3a9f84a13b
[ "MIT" ]
1
2019-02-12T11:19:41.000Z
2019-06-01T14:46:48.000Z
scripts/utils/MatlabUtils.py
Vants/stampsreplacer
a61d5174e1ee1d840a327ce6ec059a3a9f84a13b
[ "MIT" ]
5
2019-11-27T16:22:12.000Z
2021-04-14T11:10:44.000Z
import scipy.interpolate import scipy.signal from builtins import staticmethod import numpy as np from scripts.utils.ArrayUtils import ArrayUtils class MatlabUtils: @staticmethod def max(array: np.ndarray): if len(array) > 1: return np.amax(array, axis=0) else: return...
33.068627
140
0.631782
460
3,373
4.567391
0.365217
0.051404
0.026654
0.057116
0.121847
0.099952
0.057116
0.031414
0.031414
0
0
0.031715
0.242811
3,373
101
141
33.39604
0.790916
0.27394
0
0.245902
0
0
0.003843
0
0
0
0
0
0
1
0.163934
false
0
0.081967
0
0.47541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0