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
61ad32cce254b0d3a56fc49d9b2af632962590d1
1,692
py
Python
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time browser = webdriver.Firefox(executable_path="./drivers/geckodriver") browser.get('https://ACCOUNTNUMBER.signin.aws.amazon.com/console?region=us-east-1') browser.find_element_by_xpath('//*[@id="username"]').send_keys('USERNAME')...
52.875
273
0.757092
295
1,692
4.261017
0.338983
0.066826
0.09467
0.095465
0.409706
0.409706
0.388226
0.333333
0.333333
0.274463
0
0.019988
0.053783
1,692
32
274
52.875
0.765147
0.154846
0
0.153846
0
0.153846
0.403816
0.071542
0
0
0
0
0
1
0
false
0.076923
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
1
0
0
0
0
0
1
61aea3b9d53c7af9cfa86fadc4caee11c448c970
4,307
py
Python
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
from tensorflow.keras.layers import Input, Lambda, Dense, Flatten from tensorflow.keras.models import Model from tensorflow.keras.applications.vgg16 import VGG16 from tensorflow.keras.applications.vgg16 import preprocess_input from tensorflow.keras.preprocessing import image from tensorflow.keras.preprocessing.ima...
36.193277
137
0.639424
484
4,307
5.508264
0.347107
0.027007
0.031508
0.027007
0.447862
0.3991
0.313578
0.313578
0.313578
0.257314
0
0.032776
0.277455
4,307
118
138
36.5
0.823907
0.068029
0
0.362637
0
0
0.09346
0.034758
0
0
0
0
0
1
0
false
0
0.164835
0
0.164835
0.043956
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61af0d4043273f66c7507d94d876e3a5dbecbd8a
4,888
py
Python
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
null
null
null
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
null
null
null
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
1
2021-05-03T19:34:46.000Z
2021-05-03T19:34:46.000Z
import argparse import glob import hashlib import json import os import string DATASET_INDEX_PATH = '../mirdata/datasets/indexes/phenicx_anechoic_index.json' def md5(file_path): """Get md5 hash of a file. Parameters ---------- file_path: str File path. Returns ------- md5_hash: ...
31.133758
88
0.528232
478
4,888
5.253138
0.292887
0.031063
0.043011
0.057348
0.321784
0.275189
0.227798
0.212266
0.212266
0.195938
0
0.010452
0.334493
4,888
156
89
31.333333
0.761451
0.033552
0
0.163793
0
0
0.181643
0.021181
0
0
0
0
0.051724
1
0.025862
false
0
0.051724
0
0.086207
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61af771f46003607f0d27ebb336cdcdad337f2c1
4,341
py
Python
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/animal-forest-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
5
2020-05-28T06:29:33.000Z
2020-09-30T12:14:46.000Z
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
from nonebot import on_command, CommandSession, get_bot from nonebot.command import call_command from nonebot.message import escape as message_escape import aiohttp from nonebot.argparse import ArgumentParser __plugin_name__ = "运行代码" RUN_API_URL_FORMAT = "https://glot.io/run/{}?version=latest" SUPPORTED_LANGUAGES = {...
30.356643
80
0.539968
461
4,341
4.97397
0.381779
0.0628
0.00785
0.013083
0.143916
0.097689
0.05495
0.05495
0.05495
0
0
0.004847
0.287031
4,341
142
81
30.570423
0.734087
0
0
0.096774
0
0
0.17853
0.013822
0
0
0
0
0
1
0
false
0
0.048387
0
0.080645
0.008065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61b14520dd49127de7f32813b04d71f1ebbf9aa7
2,905
py
Python
jobs.py
gomes-lab/HCLMP
6770579404f6fa76948f688ae3c626ad621284ec
[ "MIT" ]
4
2021-06-04T12:34:19.000Z
2022-01-08T07:12:41.000Z
jobs.py
sk2299/HCLMP
d8b3e4dbf39af8d324c4f57e5d56f5846f2b136e
[ "CC-BY-4.0", "MIT" ]
1
2022-01-07T05:16:26.000Z
2022-01-07T05:55:17.000Z
jobs.py
sk2299/HCLMP
d8b3e4dbf39af8d324c4f57e5d56f5846f2b136e
[ "CC-BY-4.0", "MIT" ]
1
2022-02-21T19:12:14.000Z
2022-02-21T19:12:14.000Z
import os from os import listdir from os.path import isfile, join ''' Author: Shufeng KONG, Cornell University, USA Contact: sk2299@cornell.edu This is an example script to run jobs. Set single_job to be True if you only have one setting or dataset to run. In our experiments, we have 69 systems to run, so we set sing...
39.256757
141
0.679862
448
2,905
4.21875
0.263393
0.069841
0.055556
0.062963
0.45873
0.424868
0.408466
0.341799
0.31164
0.31164
0
0.010035
0.211015
2,905
73
142
39.794521
0.814572
0.047504
0
0.395349
0
0.093023
0.420673
0.221635
0
0
0
0
0
1
0
false
0
0.069767
0
0.069767
0.162791
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61b34cc74049ca79c83591c3b423846191259210
3,460
py
Python
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
import re import numpy as np from pyquil import Program from pyquil.device import gates_in_isa from pyquil.gates import I, RX, CNOT, MEASURE from pyquil.noise import decoherence_noise_with_asymmetric_ro from forest_benchmarking.readout import get_flipped_program, estimate_confusion_matrix, \ estimate_joint_confus...
39.318182
97
0.650867
462
3,460
4.549784
0.222944
0.038059
0.049952
0.076594
0.468601
0.367745
0.342531
0.337774
0.321123
0.299715
0
0.023653
0.254624
3,460
87
98
39.770115
0.791392
0.031503
0
0.090909
0
0
0.011058
0
0
0
0
0
0.151515
1
0.045455
false
0.030303
0.106061
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61b36588f184550168da888b49440a8f3261fd00
768
py
Python
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
import platform def default_platform(): if platform.system() == 'Windows': return 'Windows-x86' if platform.system() == 'Linux' and platform.architecture()[0] == '32bit' and platform.machine()[0:3] == 'ppc': return 'Linux-ppc32' if platform.system() == 'Linux' and platform.architecture()[0]...
42.666667
115
0.632813
99
768
4.89899
0.474747
0.103093
0.164948
0.129897
0.31134
0.31134
0.31134
0.31134
0.31134
0
0
0.052189
0.226563
768
17
116
45.176471
0.76431
0.25
0
0
0
0
0.162587
0
0
0
0
0
0
1
0.076923
true
0
0.076923
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
61b4b08078de62e176f62f45f211959e7d5273f3
853
py
Python
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
null
null
null
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
null
null
null
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
1
2018-03-25T05:57:57.000Z
2018-03-25T05:57:57.000Z
""" Written by Jesse Evers A basic calculator. """ # Adds x and y def add(x, y): return x + y # Subtracts y from x def subtract(x, y): return x - y # Multiplies x by y def multiply(x, y): return x * y # Divides x by y def divide(x, y): return x / y # Raises x to the y def exponent(x, y): r...
17.770833
56
0.531067
115
853
3.93913
0.365217
0.04415
0.0883
0.07947
0.1766
0
0
0
0
0
0
0.024096
0.318875
853
48
57
17.770833
0.755594
0.148886
0
0
0
0
0.14965
0
0
0
0
0
0
1
0.24
false
0
0
0.2
0.48
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
61b4d450e641be9b9611606821aba4d81cf19843
20,328
py
Python
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
26
2018-11-09T08:48:13.000Z
2021-12-01T07:48:16.000Z
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
null
null
null
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
13
2018-11-12T12:50:07.000Z
2022-03-22T15:04:27.000Z
#!/usr/bin/env python # python WebMinerAnalyzer.py www.mejortorrent.org ./data 10 import requests import json import sys import os import subprocess import time import json import re import time as t import shutil import datetime import magic import run_web import util import pdb fil = ['chatbro','tidio.co', 'getcou...
38.427221
2,817
0.614719
2,919
20,328
4.158959
0.211374
0.018781
0.030478
0.036573
0.310956
0.260379
0.228254
0.207166
0.19168
0.184267
0
0.015786
0.143005
20,328
528
2,818
38.5
0.681075
0.047422
0
0.272959
0
0.066327
0.45145
0.180895
0
0
0
0
0
0
null
null
0.002551
0.038265
null
null
0.086735
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
61b783bd1f645561d692a376da45e46d014ca747
5,367
py
Python
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
import logging from os.path import join from numpy import savetxt, column_stack from pywps import ComplexInput, ComplexOutput from pywps import Format from pywps import LiteralInput from pywps import Process from pywps.app.Common import Metadata from shapely.geometry import Point from eggshell.nc.ocg_utils import cal...
40.353383
116
0.524688
518
5,367
5.322394
0.403475
0.016322
0.021763
0.021763
0.057309
0.026841
0
0
0
0
0
0.01633
0.372461
5,367
132
117
40.659091
0.802257
0.111049
0
0.0625
0
0
0.168073
0
0
0
0
0.015152
0
1
0.020833
false
0
0.125
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
1
0
0
0
0
0
0
0
0
0
0
1
61b823d8585b20f092c787b7b2c50b78ac5048c4
1,166
py
Python
freshmaker/parsers/errata/signing_change.py
hluk/freshmaker
224875b104b5be9fa6688af31363a387eeb1b05f
[ "MIT" ]
5
2020-06-17T11:29:16.000Z
2022-03-24T07:20:16.000Z
freshmaker/parsers/errata/signing_change.py
ronnyhlim/freshmaker
b7635dcfe631759e917c85e6ef6654024a3fb91c
[ "MIT" ]
96
2020-06-29T15:01:23.000Z
2022-03-30T08:07:06.000Z
freshmaker/parsers/errata/signing_change.py
ronnyhlim/freshmaker
b7635dcfe631759e917c85e6ef6654024a3fb91c
[ "MIT" ]
20
2020-06-16T01:30:08.000Z
2022-02-19T15:34:55.000Z
# SPDX-License-Identifier: MIT from freshmaker.parsers import BaseParser from freshmaker.events import FlatpakModuleAdvisoryReadyEvent from freshmaker.errata import Errata, ErrataAdvisory class ErrataAdvisorySigningChangedParser(BaseParser): """ Parses errata.activity.signing messages (a build attached to ad...
32.388889
92
0.715266
134
1,166
6.067164
0.440299
0.03936
0.051661
0.04182
0
0
0
0
0
0
0
0
0.199828
1,166
35
93
33.314286
0.871383
0.191252
0
0
0
0
0.119126
0.062295
0
0
0
0
0
1
0.111111
false
0
0.166667
0.055556
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61b8dfc3b67dbc326456271271e5948b8211186a
1,940
py
Python
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
3
2019-07-01T14:20:26.000Z
2019-12-16T01:50:23.000Z
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
null
null
null
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
5
2018-10-15T12:47:55.000Z
2019-09-13T13:33:53.000Z
# coding: utf-8 import requests def get_song_comments(music_id, offset=0, total='false', limit=100): action = 'http://music.163.com/api/v1/resource/comments/R_SO_4_{}/?rid=R_SO_4_{}&\ offset={}&total={}&limit={}'.format(music_id, music_id, offset, total, limit) # proxy = {"http": "http://dev-prox...
38.039216
146
0.610309
262
1,940
4.362595
0.469466
0.04287
0.034121
0.026247
0
0
0
0
0
0
0
0.059701
0.20567
1,940
50
147
38.8
0.682025
0.214433
0
0
0
0.103448
0.31746
0.093254
0
0
0
0
0
1
0.068966
false
0
0.034483
0
0.172414
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61b9588fe2949fa1516521e6875b226d81b8b6f7
2,356
py
Python
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
4
2020-09-17T22:16:48.000Z
2022-02-21T19:07:48.000Z
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
null
null
null
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
null
null
null
from typing import Union from torch.utils.data.dataset import Dataset from data_modules.dataset_factory import DatasetFactory from torch.utils.data import DataLoader import pytorch_lightning as pl class ImageDatasetDataModule(pl.LightningDataModule): def __init__(self, dataset_factory: Union[DatasetFa...
43.62963
129
0.702886
287
2,356
5.324042
0.205575
0.058901
0.08377
0.054974
0.219895
0.168848
0.081152
0.048429
0
0
0
0.000548
0.225382
2,356
53
130
44.45283
0.836712
0
0
0.04878
0
0
0.071211
0.038211
0
0
0
0
0.097561
1
0.170732
false
0
0.121951
0.02439
0.439024
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61b978854383493ee32031f63ea4d378d345d545
3,429
py
Python
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
19
2019-03-31T09:06:49.000Z
2022-03-29T12:25:29.000Z
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
null
null
null
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
11
2019-04-02T07:59:45.000Z
2022-03-18T08:32:28.000Z
import settings import const import pandas as pd import numpy as np import matplotlib from matplotlib import rcParams rcParams.update({'figure.autolayout': True}) # to prevent labels going out of plot! matplotlib.use('TkAgg') import seaborn as sns import matplotlib.pyplot as plt from src.preprocess import reform from ...
45.72
117
0.633712
458
3,429
4.60262
0.349345
0.045541
0.035579
0.024194
0.171727
0.133776
0.035104
0
0
0
0
0.024288
0.231554
3,429
75
118
45.72
0.775712
0.115194
0
0.033333
0
0
0.061549
0.013567
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61b9871edd93122c9a1e0cadd169ef1f8e7cc7a9
6,002
py
Python
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
# vim: set et sw=4 ts=4 nu fdm=indent: # coding: utf8 import numpy as np import random from demag import demagnetization from llg import Bth class Object: def __init__(self, position, magnetization, a=1.0, b=1.0, h=1.0, angle=0, M0=1720e3): if len(magnetization) == 2 and len(position) == 2: ...
26.794643
90
0.488004
770
6,002
3.738961
0.192208
0.043765
0.064953
0.022577
0.202154
0.16603
0.162904
0.150052
0.091004
0.063216
0
0.034581
0.354382
6,002
223
91
26.914798
0.708129
0.008164
0
0.237179
0
0
0.150422
0.02968
0
0
0
0
0
1
0.141026
false
0
0.025641
0.051282
0.230769
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61ba96c4c02b0b326e2005e4e9d043a4842e135b
828
py
Python
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
import taichi as ti import taichi_three as t3 import numpy as np ti.init(ti.cpu) scene = t3.Scene() obj = t3.readobj('assets/cube.obj', scale=0.6) model = t3.Model(t3.Mesh.from_obj(obj)) model.material = t3.Material(t3.CookTorrance( color=t3.Texture(ti.imread('assets/cloth.jpg')), normal=t3.NormalMap(texture=...
27.6
76
0.693237
143
828
3.937063
0.433566
0.042629
0.039076
0.060391
0.081705
0
0
0
0
0
0
0.040111
0.126812
828
29
77
28.551724
0.738589
0.068841
0
0
0
0
0.075325
0
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61bca4eaa32bb1d8f9fcdd23e9b7147440128669
108
py
Python
tests/test_artificial_objects_2d.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
2
2020-07-01T06:20:44.000Z
2020-07-01T09:36:48.000Z
tests/test_artificial_objects_2d.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
null
null
null
tests/test_artificial_objects_2d.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
1
2020-06-29T18:40:54.000Z
2020-06-29T18:40:54.000Z
def test_artificial_objects_2d(): import pyclesperanto_prototype as cle cle.artificial_objects_2d()
27
41
0.805556
14
108
5.785714
0.714286
0.419753
0.469136
0
0
0
0
0
0
0
0
0.021505
0.138889
108
3
42
36
0.849462
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
8
61bce430d360996e97a91a55ee3188cadb7521ab
132,733
py
Python
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
import vcf from django.http import HttpResponse from django.core.files import File import xlsxwriter import os from .vcf_functions import getBasePath, save_binary, getFilePath, parse_fasta, getEspPath import subprocess import collections from .dictionaries import esp_col_dic from pytera.settings import BASE_DIR # PYTE...
51.407049
120
0.317638
10,909
132,733
3.825465
0.016133
0.180509
0.21027
0.12228
0.969879
0.96916
0.966956
0.966956
0.966956
0.964512
0
0.032531
0.553721
132,733
2,581
121
51.426966
0.671973
0.000399
0
0.970855
0
0.010634
0.052609
0.000913
0.010634
0
0
0
0
1
0.000394
false
0.148878
0.003939
0
0.004726
0
0
0
0
null
0
1
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
10
61bfbfcc852afff791e40fe0d4e3cbc4a671f54b
13,003
py
Python
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
# -*- coding: utf-8 -*- import clr import sys import math import getmethod import genRtf clr.AddReferenceByPartialName("IronPython") #initpath=r"d:\Program Files\NCS\CS3000" #initpath=r"C:\Program Files (x86)\NCS\ONH3000" # initpath=r"C:\CS3000备份\CS3000_1.7.0" initpath=r"C:\Program Files (x86)\NCS\CS3000" # initpath=r...
32.588972
115
0.484196
1,798
13,003
3.453838
0.156841
0.047665
0.027053
0.014171
0.583414
0.527214
0.462319
0.428986
0.402576
0.370692
0
0.075478
0.300008
13,003
398
116
32.670854
0.60668
0.130585
0
0.509434
0
0
0.094001
0.033208
0
0
0
0
0
0
null
null
0.006289
0.031447
null
null
0.13522
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
61c0a34abeefd2557216aff867ba7f8de9c65cae
799
py
Python
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
null
null
null
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
11
2021-06-02T04:42:50.000Z
2022-02-14T07:24:15.000Z
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
null
null
null
"""Common utils. * CORS pre-flight decorator. A simple decorator to add the options method to a Request Class. """ from .constants import ALLOW_ALL_ORIGINS def cors_preflight(methods: str = "GET"): """Render an option method on the class.""" def wrapper(f): # pylint: disable=invalid-name def option...
29.592593
93
0.560701
84
799
5.27381
0.607143
0.088036
0.121896
0
0
0
0
0
0
0
0
0.005576
0.326658
799
26
94
30.730769
0.817844
0.260325
0
0
0
0
0.221453
0.143599
0
0
0
0
0
1
0.1875
false
0
0.0625
0.0625
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
61c1095b36ced7182f84ce6fb98c5966048a181c
89
py
Python
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
1
2017-03-16T00:59:01.000Z
2017-03-16T00:59:01.000Z
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
null
null
null
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
null
null
null
from .shop import Shop from .allyouneed import AllYouNeed from .kaufland import Kaufland
22.25
34
0.831461
12
89
6.166667
0.416667
0
0
0
0
0
0
0
0
0
0
0
0.134831
89
3
35
29.666667
0.961039
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
61c6722666daed5da1e5465a987ae0f5c8c2f1c8
11,323
py
Python
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
""" # week3 madness... # filter, process (map-match) and output data to new postgres database # aim by thurs, to be able to answer question, where are (best-guess/estimate) all the taxis at time T. # then, work out, how far each one is from one another, likely a) search with in BBox, then b) do some fast osrm routing (...
35.495298
244
0.689658
1,650
11,323
4.586667
0.289697
0.020613
0.017838
0.006342
0.312236
0.282109
0.213531
0.179572
0.173229
0.156448
0
0.061961
0.17045
11,323
318
245
35.606918
0.743745
0.360505
0
0.061224
0
0
0.117188
0.032552
0
0
0
0
0
1
0
false
0.020408
0.122449
0
0.122449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61c7129583ba4b43eb7ad3e93b2aa91fac2d4fa7
372
py
Python
djangae/contrib/locking/kinds.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
467
2015-01-02T22:35:37.000Z
2022-02-22T23:13:36.000Z
djangae/contrib/locking/kinds.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
743
2015-01-02T15:55:34.000Z
2021-01-29T09:43:19.000Z
djangae/contrib/locking/kinds.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
154
2015-01-01T17:05:59.000Z
2021-12-09T06:40:07.000Z
class LOCK_KINDS(object): """ The different kinds of lock which you can use. WEAK is not guaranteed to be robust, but can be used for situations where avoiding simultaneous code execution is preferable but not critical. STRONG is for where preventing simultaneous code execution is *require...
33.818182
90
0.69086
50
372
5.12
0.64
0.125
0.195313
0.210938
0
0
0
0
0
0
0
0
0.252688
372
10
91
37.2
0.920863
0.706989
0
0
0
0
0.140845
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
61c780171c158e14c78061e8324344923f5412cc
668
py
Python
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
2
2019-06-25T14:18:34.000Z
2019-11-21T01:19:35.000Z
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
null
null
null
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
1
2019-06-26T05:09:39.000Z
2019-06-26T05:09:39.000Z
import sys sys.path.append('.') from lgy.algorithm.StdIOTestContainer import StdIOTestContainer as T def main(): v1 = input() v2 = input() length = max(len(v1), len(v2)) dp = [[0 for i in range(len(v2) + 1)] for j in range(len(v1) + 1)] ans = 0 for i in range(1, len(v1) + 1): for j i...
19.085714
70
0.516467
113
668
3.035398
0.345133
0.043732
0.034985
0.058309
0.139942
0
0
0
0
0
0
0.059917
0.275449
668
35
71
19.085714
0.64876
0
0
0.08
0
0
0.03139
0
0
0
0
0
0
1
0.04
false
0
0.08
0
0.12
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61c7a9a87067cdc2425518e9bb3374a220504301
5,164
py
Python
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python import os import socket import unittest from ..gstat import gstat, gstats, gstat_event, gstat_elapsed class MockSocket(object): def __init__(self, *args, **kwargs): self._sendto_msg = [] self._closed = False def sendto(self, msg, hostport): sent = {'msg': msg} ...
31.29697
72
0.625097
649
5,164
4.779661
0.231125
0.06383
0.065764
0.049001
0.263701
0.191167
0.122179
0.079304
0.061251
0.061251
0
0.013451
0.251356
5,164
164
73
31.487805
0.788929
0.094113
0
0.142857
0
0
0.097803
0.031667
0
0
0
0
0.223214
1
0.214286
false
0.017857
0.035714
0.035714
0.330357
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
61c7c024df7aed8146ffceb3d91a5193f97dce1d
1,721
py
Python
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
null
null
null
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
null
null
null
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
1
2019-05-06T13:38:56.000Z
2019-05-06T13:38:56.000Z
from flask import Flask, render_template, request from flask_bootstrap import Bootstrap # from flask_appconfig import AppConfig from flask_wtf import Form, RecaptchaField from wtforms import TextField, HiddenField, ValidationError, RadioField, BooleanField, SubmitField from wtforms.validators import Required import ge...
31.290909
98
0.678094
195
1,721
5.830769
0.471795
0.031662
0.03518
0
0
0
0
0
0
0
0
0.0162
0.210924
1,721
54
99
31.87037
0.82106
0.244625
0
0
0
0
0.07154
0
0
0
0
0
0
1
0.066667
false
0
0.266667
0
0.533333
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
1
0
0
1
61c87be5497f3881250ad3985df824448fa55d00
427
py
Python
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
1
2018-08-03T01:25:38.000Z
2018-08-03T01:25:38.000Z
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
null
null
null
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
null
null
null
from markdown.preprocessors import Preprocessor class CalcReadingTimePreprocessor(Preprocessor): def __init__(self, cfg, *args, **kwargs): self.cfg = cfg super(CalcReadingTimePreprocessor, self).__init__(*args, **kwargs) def run(self, root): word_count = len(root) print("...
30.5
74
0.662763
47
427
5.765957
0.553191
0.132841
0
0
0
0
0
0
0
0
0
0.009063
0.224824
427
14
75
30.5
0.809668
0
0
0
0
0
0.067757
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61c9624c9f9d3fcfa45f472861b7d2d95733b378
19,842
py
Python
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
3
2020-05-23T03:22:08.000Z
2020-05-23T03:22:16.000Z
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
null
null
null
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
1
2020-05-25T13:50:23.000Z
2020-05-25T13:50:23.000Z
import csv import importlib import sys sys.path.append('..') import os import json import argparse import copy from enum import IntEnum from datetime import datetime import numpy as np import scipy.integrate as solve import scipy.optimize as opt import matplotlib.pylab as plt from scripts.tsv import parse as parse_ts...
35.945652
136
0.590969
2,849
19,842
4.010179
0.151632
0.017768
0.012604
0.014705
0.358775
0.289628
0.276674
0.255755
0.2407
0.218206
0
0.025957
0.227245
19,842
551
137
36.010889
0.719168
0.154218
0
0.175824
0
0
0.074276
0.002342
0
0
0
0.001815
0
1
0.068681
false
0
0.057692
0.008242
0.230769
0.013736
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
61c99cc2811581dd1cdf3ced3f55a324a3a575c9
3,396
py
Python
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
46
2020-09-17T04:50:22.000Z
2022-03-22T08:14:15.000Z
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
7
2021-02-09T10:09:03.000Z
2022-01-14T21:19:02.000Z
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
20
2020-10-15T09:03:59.000Z
2022-03-09T07:16:20.000Z
import torch import torch.nn as nn import torch.nn.functional as F class AbstractFold(nn.Module): def __init__(self, predict, partfunc): super(AbstractFold, self).__init__() self.predict = predict self.partfunc = partfunc def clear_count(self, param): param_count = {} ...
46.520548
124
0.575677
433
3,396
4.263279
0.205543
0.03792
0.064464
0.042254
0.444204
0.40195
0.40195
0.40195
0.40195
0.40195
0
0.007048
0.331567
3,396
73
125
46.520548
0.806167
0.0053
0
0.246154
0
0
0.007995
0
0
0
0
0
0
1
0.061538
false
0
0.046154
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
61ca7a2cc6d6893b83bcf58c4d2095aac6d4e176
998
py
Python
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
import optparse def fib(n, prin): a, b = 0, 1 for i in range(n): a, b = b, a + b if prin: print a return a def Main(): parser = optparse.OptionParser('usage %prog ' + \ '-n <fib number> -o <output file> -a <print all>', version = '%prog 1.0') parser.add_option('-n', dest = 'num', type = 'int', \ help...
24.95
75
0.608216
151
998
3.927152
0.417219
0.010118
0.075885
0.074199
0.08769
0
0
0
0
0
0
0.006337
0.209419
998
40
76
24.95
0.745247
0
0
0
0
0
0.247659
0
0
0
0
0
0
0
null
null
0
0.033333
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4edee1ef5f03774068d2d400a1fd45f888b489f3
3,651
py
Python
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
null
null
null
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
null
null
null
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
1
2018-02-24T19:13:01.000Z
2018-02-24T19:13:01.000Z
#/usr/bin/env python3.4 # # Copyright (C) 2016 The Android Open Source Project # # 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 requir...
30.173554
79
0.67461
484
3,651
4.931818
0.299587
0.096355
0.041475
0.058651
0.480101
0.462924
0.420193
0.420193
0.392543
0.36238
0
0.009252
0.259929
3,651
120
80
30.425
0.874167
0.414407
0
0.342105
0
0
0.025967
0
0
0
0
0
0
1
0.184211
false
0
0.105263
0.026316
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
4edf4e5da1cf00b7d7db246168a8366bec39843f
3,568
py
Python
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2021-02-27T18:01:44.000Z
2021-02-27T18:01:44.000Z
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2020-03-18T15:55:50.000Z
2020-03-18T15:55:50.000Z
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2021-03-05T10:23:37.000Z
2021-03-05T10:23:37.000Z
# coding=utf-8 import numpy as np # fromfile = np.fromfile('/Users/xiebaiyuan/PaddleProject/paddle-mobile/tools/python/imagetools/datas/jpgs/0000_0.9834-148196_82452-0ad4b83ec6bc0f9c5f28101539267054.jpg_p0_0.126571263346.jpg.npfile', 'f') # fromfile = np.fromfile('/Users/xiebaiyuan/PaddleProject/paddle-mobile/tools/py...
29.00813
204
0.69815
470
3,568
5.231915
0.12766
0.080521
0.02928
0.05368
0.906466
0.906466
0.906466
0.906466
0.906466
0.906466
0
0.168659
0.132567
3,568
122
205
29.245902
0.625848
0.116872
0
0.865979
0
0.061856
0.440737
0.408643
0
0
0
0
0
0
null
null
0
0.010309
null
null
0.371134
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
null
0
0
0
0
1
0
0
0
0
0
0
0
0
9
4ee166755be43836f7c47c4a1c08fb0f9fe27932
663
py
Python
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm # , RecaptchaField from wtforms import validators, StringField from wtforms.validators import Length # from wtforms.fields.html5 import URLField class UrlForm(FlaskForm): old = StringField('Title', [ validators.InputRequired(), validators.Length( min=4,...
30.136364
90
0.624434
82
663
5.012195
0.560976
0.087591
0.065693
0.087591
0.068127
0
0
0
0
0
0
0.01232
0.26546
663
21
91
31.571429
0.831622
0.131222
0
0
0
0
0.127622
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ee1ab036fce9ec6e8e4a17a9395246651c2444f
645
py
Python
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
null
null
null
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
null
null
null
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
1
2019-10-06T15:46:14.000Z
2019-10-06T15:46:14.000Z
''' Author : MiKueen Level : Easy Problem Statement : Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6. ''' class...
25.8
136
0.575194
94
645
3.904255
0.585106
0.065395
0.070845
0.087193
0
0
0
0
0
0
0
0.037694
0.300775
645
25
137
25.8
0.776053
0.525581
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ee29462d01045c39bdef7c5f4256af4c465f988
655
py
Python
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
#!/usr/bin/python from setuptools import setup from distutils.extension import Extension from Pyrex.Distutils import build_ext setup( name="PyMoira", version="4.3.2", description="PyMoira - Python bindings for the Athena Moira library", author="Evan Broder", author_email="broder@mit.edu", lice...
26.2
73
0.584733
68
655
5.514706
0.573529
0.064
0
0
0
0
0
0
0
0
0
0.008386
0.271756
655
24
74
27.291667
0.777778
0.024427
0
0
0
0
0.260188
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
1
4ee46086988cfd5d4d1141a8637a06a6d2c42445
7,818
py
Python
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
1
2022-02-10T05:50:19.000Z
2022-02-10T05:50:19.000Z
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
43
2022-02-08T00:59:49.000Z
2022-03-14T00:10:01.000Z
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
1
2022-03-17T22:11:38.000Z
2022-03-17T22:11:38.000Z
import uuid from django.db import models from django.contrib.auth.models import AbstractUser import django.utils.timezone import environ, requests env = environ.Env() environ.Env.read_env() class AuthorManager(models.Manager): def get_queryset(self): queryset = super().get_queryset() # # TODO: Ite...
47.96319
140
0.640061
905
7,818
5.443094
0.226519
0.076127
0.08039
0.107186
0.468331
0.419407
0.316687
0.316687
0.288469
0.261876
0
0.021955
0.265925
7,818
162
141
48.259259
0.836383
0.184958
0
0.276923
0
0
0.038213
0
0
0
0
0.006173
0
1
0.023077
false
0.007692
0.038462
0
0.523077
0.007692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4ee4c9bda6034b23325fab78be4485408477098a
1,727
py
Python
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
null
null
null
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
null
null
null
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
1
2019-05-23T16:02:45.000Z
2019-05-23T16:02:45.000Z
"""Faker data providers for biological data.""" from random import choice from faker.providers import BaseProvider from . import utils class GeneticProvider(BaseProvider): """Genomic data provider. Acid data source: http://www.cryst.bbk.ac.uk/education/AminoAcid/the_twenty.html """ acids = { ...
23.337838
66
0.491025
164
1,727
5.121951
0.621951
0.032143
0.028571
0.047619
0
0
0
0
0
0
0
0.003527
0.34337
1,727
73
67
23.657534
0.737213
0.182976
0
0
0
0
0.232346
0
0
0
0
0
0
1
0.088889
false
0
0.066667
0
0.311111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ee7880d0727b54a66e34d3af262fe8722c42af8
640
py
Python
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
POSITIVE_PHRASES = [ "That said, I liked it.", "That said, I loved it.", "That said, I couldn't be happier.", "That said, I'm pleased.", "That being said, I liked it.", "That being said, I loved it.", "That being said, I couldn't be happier.", "That being said, I'm pleased." ] NEGATIVE_...
30.47619
49
0.596875
106
640
3.584906
0.216981
0.210526
0.189474
0.294737
0.747368
0.473684
0.473684
0.236842
0
0
0
0
0.259375
640
21
50
30.47619
0.801688
0
0
0
0
0
0.730109
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4ee83a8fb82e867ec3132c21b79dd40933bc94ec
2,708
py
Python
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
null
null
null
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
null
null
null
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
2
2018-02-15T11:40:25.000Z
2018-02-15T11:49:25.000Z
import pytest import factory import asyncio from cuve.order_service.db import transaction, tables from cuve.order_service.db.helpers import async_create_database from cuve.order_service.app import application_factory from cuve.order_service.config import load_config, ConfigSchema def pytest_addoption(parser): pa...
27.632653
76
0.695347
315
2,708
5.828571
0.352381
0.049564
0.052288
0.043573
0.166122
0.111656
0.086057
0.057734
0.057734
0
0
0
0.200517
2,708
97
77
27.917526
0.848037
0.162851
0
0.178571
0
0
0.052869
0.012653
0
0
0
0
0
1
0.160714
false
0.071429
0.125
0
0.446429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4eea6491efcd84bda94636814b33bd0e8caf7e12
351
py
Python
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
1
2021-08-14T13:42:15.000Z
2021-08-14T13:42:15.000Z
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
null
null
null
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
null
null
null
''' 检查系统内文件是否完备 ''' from pathlib import Path import os basepath = os.path.dirname(__file__) # 当前文件所在路径 file_list = [] for file in file_list: my_file = Path(f'{basepath}/analysis_result/asd') if not my_file.exists(): # 检测是否存在id路径不存在 os.makedirs(my_file) # 只能创建单级目录 =.=对这个用法表示怀疑 ...
18.473684
53
0.652422
46
351
4.73913
0.608696
0.110092
0
0
0
0
0
0
0
0
0
0
0.225071
351
19
54
18.473684
0.801471
0.162393
0
0
0
0
0.179211
0.107527
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4eeb090fcce31a4d12b4e9146d28f91e0bc82c1a
7,983
py
Python
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright 2013 OpenStack Foundation # # 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 ...
38.014286
78
0.621571
925
7,983
5.144865
0.220541
0.021853
0.025005
0.022694
0.321286
0.276739
0.26161
0.238285
0.214541
0.170414
0
0.01392
0.271076
7,983
209
79
38.196172
0.803918
0.09182
0
0.207792
0
0
0.06971
0.013416
0
0
0
0
0.032468
1
0.155844
false
0
0.058442
0.006494
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4eeb19e644b70e38ac9382dd07fad932a634f7b9
1,792
py
Python
project4/task1_ground_truth.py
yushanweng/github_projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
null
null
null
project4/task1_ground_truth.py
yushanweng/github_projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
6
2020-05-18T05:02:09.000Z
2022-02-27T05:41:49.000Z
project4/task1_ground_truth.py
yushanweng/projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
null
null
null
from pyspark import SparkContext import os import re import json import sys import time import logging import collections from itertools import combinations from itertools import product s_logger = logging.getLogger('py4j.java_gateway') s_logger.setLevel(logging.ERROR) sc = SparkContext('local[*]', 'task1') sc.setLogL...
28.444444
122
0.707589
299
1,792
4.016722
0.371237
0.039967
0.033306
0.048293
0.023314
0
0
0
0
0
0
0.026854
0.127232
1,792
63
123
28.444444
0.741049
0.06529
0
0
0
0
0.096465
0.053325
0
0
0
0
0
1
0.019608
false
0
0.196078
0
0.235294
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4eec905aa21dad34da72aba28caa72b9f1341da1
3,917
py
Python
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
null
null
null
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
null
null
null
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
1
2020-09-24T15:09:34.000Z
2020-09-24T15:09:34.000Z
import os from argparse import ArgumentParser import json import copy import shutil def process_kb(in_kb): all_values = set({}) items = in_kb.get('items', {}) if items is None: items = {} for item in items: for key, value in item.items(): all_values.add(value) return so...
34.359649
87
0.658667
514
3,917
4.745136
0.200389
0.0451
0.0287
0.03444
0.159492
0.138171
0.121771
0.062321
0
0
0
0
0.225428
3,917
113
88
34.663717
0.803889
0
0
0.087912
0
0
0.059244
0
0
0
0
0
0
1
0.098901
false
0
0.054945
0
0.241758
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4eee06b3e3623184a4edfd4ef7d48d4395142249
164
py
Python
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
if __name__ == '__main__': from sys import exit from mk60.app import main exit(main()) else: raise RuntimeError("runner must be run, not imported")
23.428571
58
0.676829
23
164
4.478261
0.782609
0
0
0
0
0
0
0
0
0
0
0.015748
0.22561
164
6
59
27.333333
0.795276
0
0
0
0
0
0.243902
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
4eeebae26c14fcd330b4a36375b13a6878c29835
1,038
py
Python
Prettified Stopwatch.py
adrian88szymanski/Automate_the_Boring_Stuff_with_Python_by_Sweigart
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
1
2020-08-15T11:36:24.000Z
2020-08-15T11:36:24.000Z
Prettified Stopwatch.py
adrian88szymanski/Automate_the_Boring_Stuff_with_Python_by_Sweigart
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
2
2022-01-13T03:18:08.000Z
2022-03-12T00:48:23.000Z
Prettified Stopwatch.py
adrian88szymanski/Sweigart_tasks
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
null
null
null
#! python3 """A stopwatch program with a prettier output and pyperclip functionality.""" import time import pyperclip # Display the programs instructions. print('Press ENTER to begin. Afterwards, press ENTER to "click" the stopwatch.' 'Press Ctrl-c to quit.') input() print('Started.') start_time = time.time()...
28.833333
79
0.595376
132
1,038
4.583333
0.484848
0.079339
0.039669
0.052893
0
0
0
0
0
0
0
0.010753
0.283237
1,038
36
80
28.833333
0.802419
0.262042
0
0.086957
0
0
0.164021
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.173913
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4eefc422a0f1ecd6f321d7742b73d4e9a3dbaace
2,768
py
Python
src/tspf/main.py
Javernaver/ProyectoTitulo
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
2
2022-01-28T02:15:55.000Z
2022-01-28T02:16:00.000Z
src/tspf/main.py
Javernaver/TSP-Framework
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
null
null
null
src/tspf/main.py
Javernaver/TSP-Framework
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
null
null
null
"""Modulo principal que utiliza todas las demas clases para ejecutar el framework""" from .Algorithms import GeneticAlgorithm, SimulatedAnnealing, LocalSearch, IteratedLocalSearch, timer from . import sys, os, AlgorithmsOptions, MHType, Tsp, Tour, bcolors def main(argv=sys.argv) -> None: """ Funcion principal...
38.444444
128
0.700506
304
2,768
6.322368
0.404605
0.058273
0.044225
0.072841
0.360042
0.360042
0.360042
0.360042
0.360042
0.360042
0
0.002788
0.222543
2,768
72
129
38.444444
0.890335
0.321532
0
0.3125
0
0.03125
0.059946
0.028338
0
0
0
0
0
1
0.03125
false
0
0.0625
0
0.09375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ef1b6b34b3007f16abb86fd81810b5f9c743ad4
5,879
py
Python
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
3
2018-07-02T03:50:23.000Z
2019-05-16T03:23:55.000Z
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
1
2021-01-07T01:33:06.000Z
2021-01-07T01:33:06.000Z
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python def warn(*args, **kwargs): pass import warnings warnings.warn = warn import os import threading from sklearn.externals import joblib import bnpy import rospy import copy from std_msgs.msg import ( Header ) from birl_sim_examples.msg import ( Tag_MultiModal, Hmm_Log ) data_arr = ...
32.843575
124
0.621534
745
5,879
4.520805
0.236242
0.045724
0.078385
0.040083
0.29424
0.175772
0.137173
0.091449
0
0
0
0.007535
0.300221
5,879
178
125
33.02809
0.811133
0.058003
0
0.226563
0
0
0.040702
0
0
0
0
0
0
0
null
null
0.007813
0.078125
null
null
0.007813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4ef1fb454c62d9675e2048e32596b30d112e5f10
4,838
py
Python
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
""" Tests for MemoryEngine::RemoteMemory """ import unittest import cPickle from cStringIO import StringIO import mock from FelixMemoryServes import MemoryEngine class WebMocker(unittest.TestCase): def set_request_val(self, val): self.req_val = cPickle.dumps(val) def get_request(s...
31.620915
60
0.596114
539
4,838
5.270872
0.207792
0.063358
0.029567
0.041183
0.330517
0.236888
0.236888
0.223161
0.223161
0.197818
0
0.015529
0.294543
4,838
152
61
31.828947
0.816877
0.014469
0
0.243243
0
0
0.075103
0
0
0
0
0
0.126126
1
0.144144
false
0.009009
0.045045
0.009009
0.261261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ef25d0f65d81e8e0d5a9796fa97079edac4afe1
6,033
py
Python
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
1
2018-05-23T03:34:05.000Z
2018-05-23T03:34:05.000Z
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
null
null
null
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
null
null
null
#! python3 # -*- coding: utf-8 -*- from typing import Union """Internal module with functions for print to console. """ __version__ = "0.13.0" class __Print: """Class with functions for print to console. """ def __init__(self, *args, **kwargs): from threading import Lock self.s_print_loc...
39.690789
114
0.593403
714
6,033
4.896359
0.268908
0.02603
0.059783
0.037757
0.165332
0.096682
0.065789
0.024027
0.024027
0.024027
0
0.009003
0.300348
6,033
151
115
39.953642
0.819237
0.260401
0
0.121212
0
0
0.027299
0
0
0
0
0
0
1
0.080808
false
0.010101
0.111111
0
0.232323
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
4ef3dc5e360dade818b286abce16461dc436ebac
3,514
py
Python
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
1
2021-09-06T20:57:27.000Z
2021-09-06T20:57:27.000Z
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
8
2021-09-06T12:16:39.000Z
2022-02-16T11:48:54.000Z
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
null
null
null
import io import logging import os from pathlib import Path from zipfile import ZipFile from cognite.client.data_classes import DataSet, FileMetadata from cognite.client.exceptions import CogniteAPIError from cognite.experimental import CogniteClient from retry import retry # type: ignore from configs import Functio...
37.382979
105
0.684121
476
3,514
4.863445
0.287815
0.038877
0.038013
0.019438
0.085961
0.062635
0.027646
0
0
0
0
0.002171
0.213432
3,514
93
106
37.784946
0.835384
0.031873
0
0
0
0
0.2199
0.021195
0
0
0
0
0
1
0.065789
false
0
0.157895
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ef491194dad1406c21f05ef14e5bf3fd5cd294c
474
py
Python
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
''' BUILT-IN DATA TYPES Mutable - the value can change Immutable - the value cannot change ''' # Immutable object age = 99 id(age) age = 100 id(age) ''' We didn't change 99 to 100. We actually just pointed age to a different location: the new int object whose value is 100. We print the IDs by calling the built-in ...
14.8125
120
0.694093
82
474
4.012195
0.5
0.045593
0.042553
0
0
0
0
0
0
0
0
0.052632
0.198312
474
32
121
14.8125
0.813158
0.253165
0
0.5
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ef5599e07f8786bc1af735d52d729d2cbe1c992
3,147
py
Python
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
from keras.applications import inception_v3 from keras import backend as K import scipy import imageio from keras.preprocessing import image import numpy as np K.set_learning_phase(0) model = inception_v3.InceptionV3(weights='imagenet', include_top=False) layer_contributions = {'mixed2': 0.2, 'mixed3': 3., 'mixed4':...
28.351351
81
0.733079
516
3,147
4.251938
0.296512
0.021878
0.038742
0.017776
0.069736
0
0
0
0
0
0
0.025912
0.12933
3,147
110
82
28.609091
0.774818
0.011122
0
0.02381
0
0
0.051768
0.012862
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.202381
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ef59607a8d06514cadf280683c16c602c23e215
978
py
Python
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
import pygame import argparser import lib import ai.neatinterface.neatcore pygame.init() if __name__ == "__main__": args = argparser.get_args() # pygame initialization pygame.init() # initialize properly and make links make them as common resources # for other modules # I admit this looks ...
22.744186
70
0.639059
122
978
5.016393
0.5
0.088235
0.075163
0.055556
0
0
0
0
0
0
0
0
0.260736
978
42
71
23.285714
0.846473
0.220859
0
0.166667
0
0
0.015915
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
4ef5d87643a24ee31f5dfe4a4c41d372dcfe5746
495
py
Python
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
66
2020-03-31T14:33:20.000Z
2022-03-25T15:48:06.000Z
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
6
2020-04-05T18:20:10.000Z
2021-12-17T19:54:54.000Z
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
9
2020-04-03T14:31:28.000Z
2022-03-15T19:16:41.000Z
import unittest from cv2 import imwrite import numpy as np from simple_3dviz import Scene, Lines, Spherecloud from simple_3dviz.window import show class TestLines(unittest.TestCase): def test_line(self): points = np.array([[-0.5, 0.5, -0.5], [ 0.5, 0.5, 0.5]]) color...
21.521739
50
0.553535
69
495
3.811594
0.463768
0.045627
0.057034
0.076046
0.045627
0.045627
0.045627
0.045627
0.045627
0.045627
0
0.071839
0.29697
495
22
51
22.5
0.683908
0
0
0
0
0
0.016194
0
0
0
0
0
0
1
0.071429
false
0
0.357143
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
1
0
0
0
0
1
4ef6267fcd36a4e2159433da6c76f793b111f5da
39,946
py
Python
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
1
2021-12-30T14:25:39.000Z
2021-12-30T14:25:39.000Z
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
17
2020-11-27T18:05:45.000Z
2022-01-27T02:46:46.000Z
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
1
2020-11-17T21:07:38.000Z
2020-11-17T21:07:38.000Z
# -*- coding: utf-8 -*- ''' Module contains all of the functions to create a radio telemetry project.''' # import modules required for function dependencies import numpy as np import pandas as pd import os import sqlite3 import datetime import matplotlib.pyplot as plt import matplotlib import matplotlib.dates as mdat...
69.957968
498
0.575953
4,575
39,946
4.954754
0.137486
0.038821
0.014999
0.015529
0.665431
0.63186
0.602303
0.584172
0.576231
0.556423
0
0.017805
0.313874
39,946
571
499
69.957968
0.809253
0.277099
0
0.587065
0
0.007463
0.142193
0.005652
0
0
0
0
0
1
0.022388
false
0
0.059701
0
0.094527
0.00995
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ef82bde3ffe5853de425426103656891207a980
250
py
Python
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
5
2019-02-22T14:10:08.000Z
2022-03-13T01:03:49.000Z
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
17
2021-04-10T13:47:17.000Z
2021-05-17T21:25:30.000Z
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
1
2021-03-31T20:46:51.000Z
2021-03-31T20:46:51.000Z
from manim import * from tests.test_graphical_units.testing.frames_comparison import frames_comparison __module_test__ = "mobjects" @frames_comparison(base_scene=ThreeDScene) def test_PointCloudDot(scene): p = PointCloudDot() scene.add(p)
22.727273
82
0.804
31
250
6.096774
0.612903
0.253968
0
0
0
0
0
0
0
0
0
0
0.116
250
10
83
25
0.855204
0
0
0
0
0
0.032
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ef9b9608e8bbaa101ff10ed781037b8288c8ad9
3,284
py
Python
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
1
2021-02-23T21:19:08.000Z
2021-02-23T21:19:08.000Z
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
null
null
null
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
null
null
null
from __future__ import division, print_function import pytest from itertools import product import numpy as np from libgdf_cffi import ffi, libgdf from librmm_cffi import librmm as rmm from libgdf_cffi.tests.utils import (new_column, unwrap_devary, get_dtype, gen_rand, buffer_as_bits, count_nulls) params_...
29.061947
77
0.640682
472
3,284
4.177966
0.220339
0.022819
0.039554
0.032454
0.627789
0.556288
0.474138
0.453347
0.453347
0.427992
0
0.02449
0.253959
3,284
112
78
29.321429
0.780408
0.013094
0
0.444444
0
0
0.013296
0.006494
0
0
0
0
0.049383
1
0.037037
false
0
0.08642
0
0.123457
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4efabc6bb17436720e7713819341d82858e58c26
1,889
py
Python
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
null
null
null
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
null
null
null
from py.test import raises from collections import namedtuple from pytest import raises from graphene.core.fields import ( Field, StringField, ) from graphql.core.type import ( GraphQLObjectType, GraphQLInterfaceType ) from graphene import Schema from graphene.contrib.django.types import ( DjangoNo...
24.855263
77
0.71784
215
1,889
6.093023
0.297674
0.061069
0.058015
0.029008
0
0
0
0
0
0
0
0
0.181578
1,889
75
78
25.186667
0.847348
0.020646
0
0.037736
0
0
0.047308
0
0
0
0
0
0.207547
1
0.09434
false
0.018868
0.169811
0
0.339623
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4efb4b2a7ac038314937ca7c665e30ce81a582c4
357
py
Python
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
4
2021-06-30T18:00:36.000Z
2022-01-25T21:03:34.000Z
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
14
2021-04-26T09:48:37.000Z
2022-03-31T06:10:10.000Z
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Sets up a flask-restx server for running the swabseq analysis R-script.""" from script_runner.server import app, api from script_runner.api.script import api as script from script_runner.api.health import api as server_health api.add_namespace(script) api.add_namespace(server_health) if _...
22.3125
77
0.773109
57
357
4.578947
0.526316
0.114943
0.183908
0.168582
0
0
0
0
0
0
0
0
0.131653
357
15
78
23.8
0.841935
0.257703
0
0
0
0
0.030888
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.428571
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
4efd455047eddeff32bc2a390297c2913a743fde
51
py
Python
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
259
2020-03-25T15:49:02.000Z
2022-03-21T03:39:23.000Z
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
226
2020-04-13T19:35:06.000Z
2022-03-06T00:21:54.000Z
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
71
2020-03-25T15:49:06.000Z
2021-09-02T22:57:41.000Z
# pylama:ignore=W0401,W0611 from .iso8601 import *
17
27
0.764706
7
51
5.571429
1
0
0
0
0
0
0
0
0
0
0
0.266667
0.117647
51
2
28
25.5
0.6
0.490196
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
4efd82d7035e7bb99b1ee82af5fcb6a562111dd9
10,225
py
Python
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
4
2021-08-19T21:41:34.000Z
2022-02-03T00:44:43.000Z
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
null
null
null
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
null
null
null
import argparse import json import logging import threading from pyinstrument import Profiler from landia.client import GameClient from landia.config import GameDef, PlayerDefinition, ServerConfig from landia.content import Content from landia.common import StateDecoder, StateEncoder from landia.registry import lo...
36.3879
203
0.696235
1,300
10,225
5.183846
0.177692
0.046743
0.065588
0.061433
0.190681
0.073601
0.05995
0.049859
0.037691
0.037691
0
0.005861
0.199022
10,225
280
204
36.517857
0.816972
0.037066
0
0.055814
0
0
0.131448
0.004477
0
0
0
0
0
1
0.027907
false
0
0.083721
0
0.125581
0.037209
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4eff13c2701b38fb56a685cebe6a17525d5923cc
3,734
py
Python
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
null
null
null
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
10
2021-07-13T03:39:52.000Z
2021-07-14T05:47:20.000Z
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
1
2021-07-13T03:24:15.000Z
2021-07-13T03:24:15.000Z
import io import datetime class Vehicle: def __init__(self, name, rank, max_rank=50): self.name = name self.rank = rank self.max_rank = max_rank self.voyage = None def add_voyage(self, voyage): self.voyage = voyage def delete_voyage(self): self.voyage = None ...
39.723404
103
0.594537
486
3,734
4.349794
0.17284
0.069536
0.046831
0.045412
0.349101
0.328288
0.305582
0.299432
0.209555
0.162252
0
0.003823
0.299411
3,734
93
104
40.150538
0.804281
0.031602
0
0.363636
0
0
0.084164
0
0
0
0
0
0
1
0.159091
false
0
0.022727
0.011364
0.261364
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4eff140b6ab6cbf7d2f94869396489708d4d2a0a
10,735
py
Python
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
from collections import defaultdict, deque from contextlib import suppress from dataclasses import field from datetime import datetime from decimal import Decimal from typing import Union import arrow import runtype from runtype.typesystem import TypeSystem from preql.utils import dataclass from .base import Object ...
24.453303
98
0.604844
1,446
10,735
4.36722
0.183956
0.029929
0.006334
0.016627
0.152336
0.094378
0.0654
0.040222
0.013618
0
0
0.009701
0.270238
10,735
438
99
24.509132
0.7964
0.085794
0
0.135762
0
0
0.030202
0.002727
0
0
0
0.002283
0.02649
1
0.13245
false
0
0.039735
0.059603
0.407285
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4eff47851c2ce7c0c90b9adfdf5d2fd11cd451cc
947
py
Python
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
""" Version naming has been simplified in 2.0 going forward. Production releases will be MAJOR.MINOR format. Increments to major are reserved for significant updates. Increments to minor are available for all new versions Test releases are MAJOR.MINOR.PATCH format. """ import setuptools with open("README.md", "r") as...
31.566667
79
0.706441
117
947
5.641026
0.726496
0.090909
0.057576
0.090909
0
0
0
0
0
0
0
0.011658
0.184794
947
29
80
32.655172
0.843264
0.275607
0
0
0
0
0.389381
0.053097
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4effb7076f666229edebecf4f4a1d44bb431565e
2,966
py
Python
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
3
2018-02-12T02:48:12.000Z
2018-08-01T10:17:09.000Z
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
null
null
null
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
1
2018-04-07T06:34:53.000Z
2018-04-07T06:34:53.000Z
from pyspark import SparkConf, SparkContext from pyspark.sql import Row from pyspark.sql import SparkSession from pyspark.streaming import StreamingContext from pyspark.streaming.kafka import KafkaUtils import json import sys import rethinkdb as r from generate_simulate_data import get_attributes_summary from generat...
30.265306
114
0.68004
351
2,966
5.621083
0.353276
0.027876
0.019767
0.024328
0.321338
0.272681
0.243284
0.158135
0.158135
0.0963
0
0.006636
0.187121
2,966
97
115
30.57732
0.811696
0.164869
0
0
0
0
0.076392
0.045104
0
0
0
0
0
0
null
null
0.016129
0.209677
null
null
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
1
0
0
0
0
0
0
0
0
1
f600cdcf17d55dccc4d9b7062301ef2ddc2aa1fc
1,464
py
Python
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
null
null
null
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
7
2018-02-03T15:37:23.000Z
2018-02-05T23:47:17.000Z
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
null
null
null
import subprocess import itertools def dictate(parts): """Converts `parts` to valid input for mac os 'say' util.""" # todo: could feed it phrases one by one, to allow the user to pause input_string = " ".join(parts) subprocess.run(['say', '-v', 'Daniel'], stdout=subprocess.PIPE, ...
30.5
79
0.57582
199
1,464
4.160804
0.432161
0.07971
0.028986
0.039855
0.102657
0
0
0
0
0
0
0.03442
0.245902
1,464
47
80
31.148936
0.71558
0.543033
0
0
0
0
0.049488
0
0
0
0
0.021277
0
1
0.1875
false
0
0.125
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
1
0
0
0
0
0
0
0
0
0
0
1
f60131cef6ab000250afbde867534f21183ca0ab
1,964
py
Python
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
147
2019-12-23T02:52:04.000Z
2022-03-06T16:30:43.000Z
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
4
2020-12-18T12:47:21.000Z
2021-05-21T02:18:01.000Z
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
32
2020-01-08T13:48:50.000Z
2022-03-12T06:31:13.000Z
import os import numpy as np import SimpleITK as sitk from pymic.io.image_read_write import load_image_as_nd_array from pymic.transform.trans_dict import TransformDict from pymic.util.parse_config import parse_config def get_transform_list(trans_config_file): config = parse_config(trans_config_file) transf...
37.056604
74
0.708248
257
1,964
5.116732
0.307393
0.027376
0.027376
0.029658
0.077567
0.063878
0.030418
0
0
0
0
0.003143
0.189919
1,964
52
75
37.769231
0.823382
0.066701
0
0
0
0
0.093577
0
0
0
0
0.019231
0
1
0.05
false
0
0.15
0
0.225
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f601696eb01af41cfb6bfff7cab1149a7ddd141f
1,433
py
Python
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
21
2019-01-07T03:59:54.000Z
2021-12-13T10:51:54.000Z
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
407
2019-01-29T11:50:29.000Z
2022-03-24T15:09:20.000Z
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
14
2019-01-08T07:37:13.000Z
2022-02-03T17:00:19.000Z
import argparse import json from typing import List from . import utils def pylint_argument_parser() -> argparse.ArgumentParser: parser = argparse.ArgumentParser(description="Pylint analyzer") parser.add_argument("--rcfile", dest="rcfile", type=str, help="Specify a configuration file.") utils.add_python...
33.325581
102
0.667132
176
1,433
5.289773
0.460227
0.064447
0.061224
0.051557
0
0
0
0
0
0
0
0.002564
0.183531
1,433
42
103
34.119048
0.793162
0.141661
0
0
0
0
0.136327
0.040816
0
0
0
0
0
1
0.1
false
0
0.133333
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
f60211b49b4a0be6744888f8409578cc9d61668a
5,485
py
Python
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2020-08-25T03:43:07.000Z
2020-08-25T03:43:07.000Z
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2019-07-08T16:57:48.000Z
2019-07-08T16:57:48.000Z
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # (c) Copyright IBM Corp. 2010, 2019. All Rights Reserved. """ These are methods for accessing Jira. The Jira REST API is used for general access. Requirements: JIRA URL and basic authentication user/password """ import json import fn_jira....
30.642458
122
0.561531
577
5,485
5.240901
0.256499
0.011574
0.021495
0.023148
0.421296
0.385582
0.334325
0.294312
0.294312
0.278439
0
0.003818
0.331449
5,485
178
123
30.814607
0.820834
0.233728
0
0.232558
0
0
0.086413
0
0
0
0
0
0
1
0.104651
false
0.046512
0.034884
0
0.244186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f6022a0f42919a97b2c08beb7389dd3673ae9256
224
py
Python
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
null
null
null
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
null
null
null
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
1
2018-03-23T04:19:24.000Z
2018-03-23T04:19:24.000Z
import random print 10000 random.seed(a=None) for i in xrange(0,10000): length = random.randint(5,20) string = "" for j in xrange(0, length): x = random.randint(ord('a'), ord('z')) string += chr(x) print string
16
40
0.647321
38
224
3.815789
0.578947
0.110345
0.124138
0
0
0
0
0
0
0
0
0.082418
0.1875
224
14
41
16
0.714286
0
0
0
0
0
0.008889
0
0
0
0
0
0
0
null
null
0
0.1
null
null
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
1
0
0
0
0
0
0
0
0
1
f6036eaf498e2f4f6785b62692e626d23ee553a9
1,075
py
Python
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
null
null
null
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
1
2019-02-07T18:11:15.000Z
2019-02-07T18:14:06.000Z
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
null
null
null
import pytest from indy_common.authorize.auth_constraints import AuthConstraint, IDENTITY_OWNER @pytest.fixture(scope='module') def write_auth_req_validator(write_auth_req_validator, key): write_auth_req_validator.auth_cons_strategy.get_auth_constraint = lambda a: AuthConstraint(IDENTITY_OWNER, 1) return wri...
38.392857
113
0.713488
131
1,075
5.442748
0.351145
0.100982
0.185133
0.210379
0.41094
0.371669
0.322581
0.322581
0.322581
0.322581
0
0.008245
0.210233
1,075
27
114
39.814815
0.831567
0
0
0.222222
0
0
0.030698
0
0
0
0
0
0.166667
1
0.222222
false
0
0.111111
0
0.388889
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
f6038da625ddb01ad152e78f66d06a5031c2352f
660
py
Python
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
import time from typing import Any from django.core.management import BaseCommand from django.db import connections from django.db.utils import OperationalError class Command(BaseCommand): def handle(self, *args: Any, **options: Any) -> None: self.stdout.write("Waiting for database to be ready...") ...
28.695652
83
0.648485
76
660
5.631579
0.565789
0.070093
0.10514
0
0
0
0
0
0
0
0
0.00409
0.259091
660
22
84
30
0.871166
0
0
0
0
0
0.184848
0
0
0
0
0
0
1
0.0625
false
0
0.3125
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
1
0
0
0
0
1
f603fa533fa7372d6f36ecb1fb1141ca4cbdca2b
53
py
Python
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
S = input() print(S+"s" if S[-1] != "s" else S+"es")
17.666667
40
0.471698
12
53
2.083333
0.583333
0
0
0
0
0
0
0
0
0
0
0.023256
0.188679
53
2
41
26.5
0.55814
0
0
0
0
0
0.075472
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
f6041d5b00d1215a7acd7846896aee7bd7b4137c
8,905
py
Python
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
1
2021-09-30T07:09:12.000Z
2021-09-30T07:09:12.000Z
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
null
null
null
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description='parameters') # -- Basic -- parser.add_argument('--seed', type=int, default=42, help='random seed (default: 42)') parser.add_argument('--eps', type=float, default=1e-6, help='epsilon (default: 1e-6)') parser.add_argum...
55.310559
104
0.640427
1,177
8,905
4.700935
0.231096
0.102476
0.193566
0.068317
0.373757
0.170793
0.1379
0.116573
0.112416
0.112416
0
0.035601
0.217743
8,905
160
105
55.65625
0.758685
0.036384
0
0.015873
0
0.007937
0.413145
0.037474
0
0
0
0.00625
0
1
0
false
0
0.007937
0
0.007937
0.015873
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f6044ea76ca13f4f72c527f9840f77894b5d9897
693
py
Python
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
import numpy as np def state_value_function(p,r,v): gamma=0.9 while True: value=r.T+gamma*p*v if(value==v).all(): break v=value return v if __name__ =='__main__': #c1 c2 c3 pass pub fb sleep #probability matrix P_matrix=np.mat([[0,0,0,0,0,0,0], ...
28.875
61
0.464646
135
693
2.251852
0.281481
0.282895
0.305921
0.315789
0.286184
0.286184
0.286184
0.282895
0.282895
0.184211
0
0.159737
0.340548
693
24
61
28.875
0.50547
0.063492
0
0
0
0
0.012346
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.05
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f60485e76e2fa9c06d5985218438d81b933efc5e
1,372
py
Python
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
#1.温度转换 # C = float (input('请输入摄氏温度:')) # F = (9 /5) * C + 32 # print('%.2f 华氏度' %F) #2.计算圆柱体的体积 #area:面积 radius:半径 volume:体积 length:高 π=3.14 #radius=float(input('请您输入圆柱体的半径:')) #length=float(input('请您输入圆柱体的高:')) #area= radius * length * 3.14 #print('圆柱体的面积为: %0.4f' %area) #volume= area * length #pri...
21.4375
56
0.567784
213
1,372
3.657277
0.450704
0.141207
0.053915
0
0
0
0
0
0
0
0
0.092186
0.169825
1,372
63
57
21.777778
0.591747
0.870262
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
f6073840233bba54bc871867d9a6348f670aaee9
22,428
py
Python
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
null
null
null
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
14
2015-12-20T16:10:44.000Z
2016-03-08T18:21:10.000Z
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
1
2017-02-19T01:05:40.000Z
2017-02-19T01:05:40.000Z
__all__ = ('log', 'progress_callback_factory', 'progress_callback_divisions', 'BadUserError', 'setup') import binascii import hashlib import mimetypes import mmap import os import posixpath import re import time import boto3 import botocore import termcolor log = lambda msg: None progress_callback_factory = lambda: ...
40.852459
307
0.581951
2,487
22,428
5.063932
0.211902
0.010322
0.011434
0.011355
0.141337
0.110767
0.088772
0.043195
0.031285
0.031285
0
0.005905
0.327938
22,428
548
308
40.927007
0.829629
0.075575
0
0.186441
0
0.014528
0.165644
0.009184
0
0
0
0.001825
0
1
0.050847
false
0
0.026634
0
0.113801
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f607b3974a5c6166e58b2e10c377a1e3e486d89a
363
py
Python
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from PIL import Image # Create your models here. class Profile(models.Model): user = models.OneToOneField(User,on_delete=models.CASCADE) image = models.ImageField(default='default.jpg', upload_to='profile_pics') def __str__(se...
30.25
79
0.732782
49
363
5.285714
0.632653
0.07722
0
0
0
0
0
0
0
0
0
0
0.173554
363
11
80
33
0.863333
0.066116
0
0
0
0
0.070769
0
0
0
0
0
0
1
0.125
false
0
0.375
0.125
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
f6083403b4085610d0da9b036de730d7e444c995
136
py
Python
examples/hello/input_format_validators/validate.py
Tyilo/problemtools
307bcbf2c90e75db6513ee6e4daa41590d988906
[ "MIT" ]
3
2019-10-22T17:31:19.000Z
2020-07-14T17:33:58.000Z
examples/hello/input_format_validators/validate.py
godmar/problemtools
4e2b2d7797d8f15e5536a9d2b35d251476bef79c
[ "MIT" ]
null
null
null
examples/hello/input_format_validators/validate.py
godmar/problemtools
4e2b2d7797d8f15e5536a9d2b35d251476bef79c
[ "MIT" ]
3
2019-10-22T17:32:01.000Z
2020-02-26T03:43:45.000Z
#!/usr/bin/env python2 from sys import stdin import sys # There shouldn't be any input assert len(stdin.readline()) == 0 sys.exit(42)
15.111111
33
0.720588
24
136
4.083333
0.833333
0
0
0
0
0
0
0
0
0
0
0.034783
0.154412
136
8
34
17
0.817391
0.367647
0
0
0
0
0
0
0
0
0
0
0.25
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f608cd237ad400b7d70ddc6b3272e50852e00f2c
14,393
py
Python
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Solutions to chapter 4 exercises. ############################################################################### # chapter4_exercises.py # # Revision: 1.00 # Date: 6/27/2021 # Author: Alex # # Purpose: Solutions to chapter 4 exercises from "Data...
33.472093
79
0.595359
2,010
14,393
4.230846
0.236318
0.033631
0.033866
0.026811
0.234243
0.130527
0.107714
0.075729
0.043509
0.043509
0
0.018008
0.266935
14,393
429
80
33.550117
0.787982
0.568332
0
0.301136
0
0
0.00857
0
0
0
0
0
0.005682
1
0.181818
false
0
0.005682
0
0.482955
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f60bbe8d92cacc0baec1190db4c4305ce847b01a
4,220
py
Python
spanish_inflections.py
mathigatti/spanish_inflections
bb5d9677edec8862aaaf4a4f7c6ad5bc4c151c50
[ "MIT" ]
null
null
null
spanish_inflections.py
mathigatti/spanish_inflections
bb5d9677edec8862aaaf4a4f7c6ad5bc4c151c50
[ "MIT" ]
null
null
null
spanish_inflections.py
mathigatti/spanish_inflections
bb5d9677edec8862aaaf4a4f7c6ad5bc4c151c50
[ "MIT" ]
null
null
null
rules_adjetive = [] with open("MM.adj.txt",'r') as f: for line in f.readlines(): rule = line.split() rules_adjetive.append({"word":rule[0], "lemma":rule[1], "code":rule[2]}) rules_noun = [] with open("MM.nom.txt",'r') as f: for line in f.readlines(): rule = line.split() rules_n...
29.929078
90
0.529384
569
4,220
3.773286
0.110721
0.084769
0.046111
0.044714
0.614811
0.576619
0.533768
0.518398
0.518398
0.518398
0
0.007465
0.301659
4,220
140
91
30.142857
0.721072
0
0
0.461538
0
0
0.077507
0
0
0
0
0
0
1
0.068376
false
0
0
0
0.213675
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f60d57417f085366ece3370fedcd7871a28b809a
1,746
py
Python
setup.py
T-FitAndFat/toucan-connectors
7d03454e4d06f5cb2e9c2c778d99dd655efd14a7
[ "BSD-3-Clause" ]
null
null
null
setup.py
T-FitAndFat/toucan-connectors
7d03454e4d06f5cb2e9c2c778d99dd655efd14a7
[ "BSD-3-Clause" ]
null
null
null
setup.py
T-FitAndFat/toucan-connectors
7d03454e4d06f5cb2e9c2c778d99dd655efd14a7
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages auth_deps = ['oauthlib', 'requests_oauthlib'] extras_require = { 'adobe': ['adobe_analytics'], 'azure_mssql': ['pyodbc'], 'dataiku': ['dataiku-api-client'], 'elasticsearch': ['elasticsearch'], 'facebook': ['facebook-sdk'], 'google_analytics': ['google...
30.631579
69
0.627148
198
1,746
5.338384
0.535354
0.061495
0.028382
0.039735
0.028382
0
0
0
0
0
0
0.027046
0.174112
1,746
56
70
31.178571
0.705964
0
0
0
0
0
0.4874
0.046392
0
0
0
0
0
1
0
false
0
0.019231
0
0.019231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f60db341e11a4c5477f8eb6e8054ce41e06f72fe
367
py
Python
create_tables.py
tomhyhan/final
4d01fed5d738ff435ffa6f28b2943cb365939a2f
[ "MIT" ]
null
null
null
create_tables.py
tomhyhan/final
4d01fed5d738ff435ffa6f28b2943cb365939a2f
[ "MIT" ]
null
null
null
create_tables.py
tomhyhan/final
4d01fed5d738ff435ffa6f28b2943cb365939a2f
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('bookstore.sqlite') c = conn.cursor() c.execute(''' CREATE TABLE books (id INTEGER PRIMARY KEY ASC, timestamp DATETIME NOT NULL, title VARCHAR(250), author VARCHAR(250), rating INTEGER, price REAL ...
19.315789
42
0.542234
38
367
5.236842
0.789474
0.100503
0
0
0
0
0
0
0
0
0
0.033898
0.356948
367
18
43
20.388889
0.809322
0
0
0
0
0
0.705722
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f60dc5242dc79fcf961a2da0cfd7f24d3f799fd1
1,125
py
Python
pytest_unittest_filter.py
un-def/pytest-unittest-filter
7919aff50c6b86c60d2c808c18f5e973db33f338
[ "MIT" ]
4
2018-10-26T13:17:05.000Z
2019-03-22T06:51:50.000Z
pytest_unittest_filter.py
un-def/pytest-unittest-filter
7919aff50c6b86c60d2c808c18f5e973db33f338
[ "MIT" ]
null
null
null
pytest_unittest_filter.py
un-def/pytest-unittest-filter
7919aff50c6b86c60d2c808c18f5e973db33f338
[ "MIT" ]
null
null
null
import pytest from _pytest.unittest import UnitTestCase __version__ = '0.2.1' INI_OPTION_CLASSES = 'python_unittest_classes' INI_OPTION_UNDERSCORE = 'python_unittest_exclude_underscore' def pytest_addoption(parser): parser.addini( INI_OPTION_CLASSES, type='args', default=None, ...
28.125
79
0.714667
134
1,125
5.731343
0.432836
0.082031
0.083333
0.054688
0.231771
0.153646
0.153646
0.153646
0.153646
0.153646
0
0.003352
0.204444
1,125
39
80
28.846154
0.854749
0
0
0.290323
0
0
0.175111
0.050667
0
0
0
0
0
1
0.064516
false
0
0.064516
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
f60f25b9edeba5d195f1ac85237d350e8bef0818
210
py
Python
ABC/ABC134/abc134_b.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC134/abc134_b.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC134/abc134_b.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
# 問題URL: https://atcoder.jp/contests/abc134/tasks/abc134_b # 解答URL: https://atcoder.jp/contests/abc134/submissions/24157832 from math import ceil n, d = map(int, input().split()) print(ceil(n / (2 * d + 1)))
26.25
64
0.7
33
210
4.424242
0.727273
0.164384
0.191781
0.30137
0.383562
0
0
0
0
0
0
0.102151
0.114286
210
7
65
30
0.682796
0.566667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
f60f64227a4b588c259406487b84cb9a51b06bfb
5,058
py
Python
tests/unit/schema/wrappers/test_field.py
nsky80/gapic-generator-python
6dd7498438e87329c69a27ac57bb1693b02471d3
[ "Apache-2.0" ]
1
2019-08-15T05:41:02.000Z
2019-08-15T05:41:02.000Z
tests/unit/schema/wrappers/test_field.py
nsky80/gapic-generator-python
6dd7498438e87329c69a27ac57bb1693b02471d3
[ "Apache-2.0" ]
null
null
null
tests/unit/schema/wrappers/test_field.py
nsky80/gapic-generator-python
6dd7498438e87329c69a27ac57bb1693b02471d3
[ "Apache-2.0" ]
1
2022-01-23T12:29:11.000Z
2022-01-23T12:29:11.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.030675
79
0.720245
639
5,058
5.486698
0.211268
0.081574
0.169424
0.137193
0.49943
0.454934
0.414147
0.348831
0.324301
0.324301
0
0.010491
0.170819
5,058
162
80
31.222222
0.825465
0.108343
0
0.348214
0
0
0.078292
0
0
0
0
0
0.1875
1
0.151786
false
0
0.035714
0
0.196429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f60fa01fcca07216f2bcd4f1876c31853730ce6d
1,151
py
Python
visual_mpc/envs/offline_env.py
Asap7772/visual_foresight
13c631dc76ca1b61d7159473b3f2207ce2a3da04
[ "MIT" ]
null
null
null
visual_mpc/envs/offline_env.py
Asap7772/visual_foresight
13c631dc76ca1b61d7159473b3f2207ce2a3da04
[ "MIT" ]
null
null
null
visual_mpc/envs/offline_env.py
Asap7772/visual_foresight
13c631dc76ca1b61d7159473b3f2207ce2a3da04
[ "MIT" ]
null
null
null
from visual_mpc.envs.base_env import BaseEnv class OfflineSawyerEnv(BaseEnv): """ Emulates a real-image Sawyer Env without access to robot, only works together with the Offline Agent! """ def __init__(self, env_params_dict, reset_state=None): self._hp = self._default_hparams() ...
23.489796
106
0.588184
135
1,151
4.8
0.474074
0.092593
0.064815
0
0
0
0
0
0
0
0
0.005181
0.329279
1,151
48
107
23.979167
0.834197
0.163336
0
0.206897
0
0
0
0
0
0
0
0
0
1
0.310345
false
0
0.034483
0.206897
0.655172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f60fc9552996ef7df081aa8b9626dbf47805b27b
258
py
Python
modules/test.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
null
null
null
modules/test.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
7
2019-05-09T04:17:51.000Z
2019-05-16T00:38:55.000Z
modules/test.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
1
2019-05-07T12:15:55.000Z
2019-05-07T12:15:55.000Z
import unittest import Export_To_File import gen_rand_password class ExportToFileTestCase(unittest.TestCase): def test_append_file(self): pass def test_gen_rand_password(self): pass if __name__ == '__main__': unittest.main()
16.125
46
0.728682
32
258
5.34375
0.59375
0.081871
0.175439
0
0
0
0
0
0
0
0
0
0.20155
258
15
47
17.2
0.830097
0
0
0.2
0
0
0.031008
0
0
0
0
0
0
1
0.2
false
0.4
0.3
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
f610dbac8de212129b7046e3cdbabe6471f84f1c
26
py
Python
tests/__init__.py
web2py/rocket3
ba941c3a1d5e4c8b16a22c9c5e3dd5442c1b7624
[ "BSD-3-Clause" ]
1
2021-02-11T03:48:41.000Z
2021-02-11T03:48:41.000Z
tests/__init__.py
web2py/rocket3
ba941c3a1d5e4c8b16a22c9c5e3dd5442c1b7624
[ "BSD-3-Clause" ]
1
2021-02-13T08:48:52.000Z
2021-02-13T20:00:42.000Z
tests/__init__.py
web2py/rocket3
ba941c3a1d5e4c8b16a22c9c5e3dd5442c1b7624
[ "BSD-3-Clause" ]
1
2021-02-08T20:07:48.000Z
2021-02-08T20:07:48.000Z
from . import test_rocket
13
25
0.807692
4
26
5
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
1
26
26
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
f612776e5655cc35f2ff3a2714bb44593975be1d
4,241
py
Python
src/expressivity.py
elijahc/vae
5cd80518f876d4ca9e97de2ece7c266e3df09cb7
[ "MIT" ]
null
null
null
src/expressivity.py
elijahc/vae
5cd80518f876d4ca9e97de2ece7c266e3df09cb7
[ "MIT" ]
null
null
null
src/expressivity.py
elijahc/vae
5cd80518f876d4ca9e97de2ece7c266e3df09cb7
[ "MIT" ]
null
null
null
import numpy as np # from ray.dataframe import pd # def pairwise_correlations( g_t) def euclidean_metric( g_t,delta): n_d = g_t.shape[0] v = np.gradient( g_t, delta, axis=0 ) vv = np.empty( n_d, dtype=np.float32 ) for t in np.arange( n_d ): vv[t] = np.dot( v[t], v[t].T ) return vv de...
30.510791
91
0.569441
713
4,241
3.221599
0.175316
0.019155
0.033522
0.019591
0.311711
0.281236
0.257292
0.226382
0.201132
0.201132
0
0.014177
0.284838
4,241
139
92
30.510791
0.743159
0.042679
0
0.192308
0
0
0.017263
0
0
0
0
0
0
1
0.105769
false
0.009615
0.009615
0.009615
0.211538
0.009615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f61497e18155583cc5132e7e990b1097f82cff06
130
py
Python
katas/kyu_7/genetic_algorithm_series_2_mutation.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_7/genetic_algorithm_series_2_mutation.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_7/genetic_algorithm_series_2_mutation.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
from random import random def mutate(chromosome, p): return ''.join((a, '01'[a == '0'])[random() <= p] for a in chromosome)
21.666667
74
0.615385
20
130
4
0.7
0
0
0
0
0
0
0
0
0
0
0.028302
0.184615
130
5
75
26
0.726415
0
0
0
0
0
0.023077
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
6
f61517f627009ff7f376b1194a4e917a81ddfd11
5,243
py
Python
userbot/modules/misc.py
FS-Project/FeRuBoT
54cc12243ccbeb289ed37d691698fbd42fd8f740
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2021-01-24T20:35:11.000Z
2021-03-10T18:16:26.000Z
userbot/modules/misc.py
FS-Project/FeRuBoT
54cc12243ccbeb289ed37d691698fbd42fd8f740
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/misc.py
FS-Project/FeRuBoT
54cc12243ccbeb289ed37d691698fbd42fd8f740
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-03-10T18:16:25.000Z
2021-03-10T18:16:25.000Z
# INFO : ini merupakan copy source code dari repo one4ubot, dan sudah mendapatkan izin dari pemilik. # INFO : This is a copy of the source code from the One4ubot repo, and has the permission of the owner. # Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d ...
29.789773
107
0.662026
675
5,243
5.057778
0.402963
0.018453
0.030463
0.05536
0.049209
0
0
0
0
0
0
0.006352
0.21934
5,243
175
108
29.96
0.827022
0.111005
0
0.129771
0
0.007634
0.160463
0
0
0
0
0
0
1
0
false
0
0.061069
0
0.068702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f61545386a7fef2d4116c979aa993983f37d1e73
1,291
py
Python
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'uasyncio.core' on pyboard 1.13.0-95 """ # MCU: (sysname='pyboard', nodename='pyboard', release='1.13.0', version='v1.13-95-g0fff2e03f on 2020-10-03', machine='PYBv1.1 with STM32F405RG') # Stubber: 1.3.4 - updated from typing import Any class CancelledError(Exception): """""" class IOQueue: """"...
17.445946
145
0.568552
161
1,291
4.434783
0.403727
0.168067
0.231092
0.315126
0.495798
0.288515
0.190476
0
0
0
0
0.039957
0.282727
1,291
73
146
17.684932
0.731102
0.165763
0
0.405405
0
0
0
0
0
0
0
0
0
1
0.405405
false
0.405405
0.027027
0
0.594595
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
f617abbd37a250768e243f67f08bb7f3f81db933
1,675
py
Python
util_scripts/test_zoom.py
ShuaiW/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
182
2016-03-15T01:51:29.000Z
2021-04-21T09:49:05.000Z
util_scripts/test_zoom.py
weidezhang/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
1
2018-06-22T16:46:12.000Z
2018-06-22T21:08:09.000Z
util_scripts/test_zoom.py
weidezhang/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
61
2016-03-15T00:58:28.000Z
2020-03-06T22:00:41.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib import animation from scipy.special import erf, erfinv import cPickle as pickle import glob import os import scipy import scipy.ndimage.interpolation #print glob.glob(os.path.expanduser("~/storage/metadata/kaggle-heart/predictions/j7_jeroen_ch.pkl")) #...
32.211538
145
0.640597
233
1,675
4.549356
0.454936
0.022642
0.070755
0.026415
0.207547
0.181132
0.181132
0.139623
0.139623
0.139623
0
0.039484
0.213731
1,675
52
146
32.211538
0.765376
0.25791
0
0.054054
0
0
0.016949
0
0
0
0
0
0
1
0.081081
false
0
0.243243
0
0.378378
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f618d376cd5f990c13a8674db30dbeb3c323537c
437
py
Python
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from django.urls import include, path from django_celery.api.users.views import UserViewSet if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() router.register("users", UserViewSet) app_name...
23
74
0.76659
54
437
6.092593
0.537037
0.091185
0.091185
0
0
0
0
0
0
0
0
0
0.130435
437
18
75
24.277778
0.865789
0
0
0
0
0
0.128146
0.09611
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f618e484b7df2635b2d21ffd1f4a23e06f18555a
3,366
py
Python
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
# stdlib import os import sys import logging import json from json import JSONEncoder import praw from kinesis_producer import StdoutProducer from twitter_query_parser import TwitterSeachQuery log = logging.getLogger(__name__) class RedditException(Exception): """Invalid SubRedditException.""" ...
35.808511
154
0.639929
384
3,366
5.471354
0.330729
0.025702
0.015707
0.020942
0
0
0
0
0
0
0
0
0.257279
3,366
93
155
36.193548
0.8404
0.085859
0
0.030769
0
0
0.115164
0.019588
0
0
0
0.010753
0
1
0.107692
false
0.015385
0.123077
0
0.338462
0.046154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f618ea5cffb6353292606a5b9b153b42064483ff
3,523
py
Python
train_liner.py
ALEXKIRNAS/Toxic-Comment-Classification-Challenge
1f86d113f38c6c9eaca03ec33c6467709bf2d652
[ "MIT" ]
2
2018-04-07T19:52:09.000Z
2018-04-24T11:37:58.000Z
train_liner.py
ALEXKIRNAS/Toxic-Comment-Classification-Challenge
1f86d113f38c6c9eaca03ec33c6467709bf2d652
[ "MIT" ]
null
null
null
train_liner.py
ALEXKIRNAS/Toxic-Comment-Classification-Challenge
1f86d113f38c6c9eaca03ec33c6467709bf2d652
[ "MIT" ]
null
null
null
import concurrent.futures import click import numpy as np import pandas as pd from sklearn.metrics import roc_auc_score from sklearn.model_selection import KFold from models import NbSvmClassifier from utils.constants import RANDOM_SEED, CLASS_NAMES from utils.data_loader import tf_idf_vectors cv_params = [ ...
33.552381
91
0.640931
460
3,523
4.619565
0.254348
0.045176
0.007529
0.007059
0.296941
0.2
0.149647
0.112941
0.041412
0.041412
0
0.008547
0.236162
3,523
105
92
33.552381
0.781122
0
0
0.052632
0
0
0.057321
0
0
0
0
0
0
1
0.026316
false
0
0.118421
0
0.157895
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f61a4fbc74f3de9d25b2fc9402a7de9aab4a6bbd
15,217
py
Python
bigfish/stack/tests/test_filter.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
17
2020-03-04T10:46:37.000Z
2022-03-10T13:15:16.000Z
bigfish/stack/tests/test_filter.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
48
2020-03-16T13:39:44.000Z
2022-03-31T17:26:50.000Z
bigfish/stack/tests/test_filter.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
15
2020-03-04T16:02:31.000Z
2022-02-17T14:11:15.000Z
# -*- coding: utf-8 -*- # Author: Arthur Imbert <arthur.imbert.pro@gmail.com> # License: BSD 3 clause """ Unitary tests for bigfish.stack.filter module. """ import pytest import numpy as np import bigfish.stack as stack from bigfish.stack.filter import _define_kernel from numpy.testing import assert_array_equal fr...
34.82151
71
0.556483
2,028
15,217
3.946746
0.078402
0.044478
0.047976
0.044978
0.8497
0.827461
0.795727
0.776862
0.766742
0.765117
0
0.118154
0.320891
15,217
436
72
34.901376
0.656377
0.031347
0
0.699115
0
0
0.015381
0
0
0
0
0
0.212389
1
0.032448
false
0
0.017699
0
0.050147
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
f61b4c3a467a7b980a56213bb7bb31c68ded2089
9,071
py
Python
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
# QoS Manager # Managing all requests related to QoS # Author: Deyuan Guo, Chunkun Bo # Date: Dec 10, 2015 import sys import os import socket import errno import monitor_container import qos_scheduler import itf_spec import itf_database QOS_SERVER_ADDR = ('localhost', 20000) # Define a class for QoS requests class Q...
35.712598
90
0.556719
1,028
9,071
4.758755
0.202335
0.055192
0.07359
0.027187
0.296198
0.246321
0.219747
0.170687
0.162306
0.144726
0
0.006986
0.337229
9,071
253
91
35.853755
0.80672
0.101753
0
0.229592
0
0
0.20899
0.017857
0
0
0
0
0
0
null
null
0.005102
0.040816
null
null
0.168367
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f61be4718911e196ba9094bf4af6f045bc2cf0e9
4,527
py
Python
tools/python/bluebottle_flow_reader.py
GediZhou/bluebottle-3.0
645e6cbe257ad4f65456652a50d49e5f3059564f
[ "Apache-2.0" ]
11
2018-02-20T15:58:07.000Z
2021-12-27T09:02:30.000Z
tools/python/bluebottle_flow_reader.py
groundcherry/bluebottle-2.0
7adc8782ad269f06ab0edb0111500907757bea50
[ "Apache-2.0" ]
3
2018-12-11T13:44:45.000Z
2021-03-10T15:13:38.000Z
tools/python/bluebottle_flow_reader.py
groundcherry/bluebottle-2.0
7adc8782ad269f06ab0edb0111500907757bea50
[ "Apache-2.0" ]
6
2018-09-21T11:36:22.000Z
2021-03-13T09:15:35.000Z
################################################################################ ################################## BLUEBOTTLE ################################## ################################################################################ # # Copyright 2012 - 2018 Adam Sierakowski and Daniel Willen, # ...
28.118012
80
0.608571
646
4,527
4.243034
0.321981
0.055819
0.030646
0.040861
0.326888
0.29077
0.197373
0.186063
0.186063
0.186063
0
0.019891
0.189309
4,527
160
81
28.29375
0.726975
0.276342
0
0.333333
0
0
0.282453
0.186712
0
0
0
0
0
1
0.080808
false
0
0.030303
0
0.212121
0.050505
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0