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
6b97a216ca7bed17169dea75598a8db7b38aa938
3,225
py
Python
tests/conftest.py
jeromedockes/neuroquery_image_search
2222caf464de84694273a494ec2d00071b3d14a2
[ "BSD-3-Clause" ]
3
2021-01-26T20:27:24.000Z
2021-09-28T19:51:36.000Z
tests/conftest.py
jeromedockes/neuroquery_image_search
2222caf464de84694273a494ec2d00071b3d14a2
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
jeromedockes/neuroquery_image_search
2222caf464de84694273a494ec2d00071b3d14a2
[ "BSD-3-Clause" ]
1
2021-01-21T22:27:16.000Z
2021-01-21T22:27:16.000Z
from pathlib import Path import tempfile from unittest.mock import MagicMock import pytest import numpy as np import pandas as pd from scipy import sparse import nibabel import nilearn from nilearn.datasets import _testing from nilearn.datasets._testing import request_mocker # noqa: F401 def make_fake_img(): r...
32.25
78
0.68093
438
3,225
4.753425
0.321918
0.036984
0.01585
0.018732
0.074928
0.048991
0.027858
0
0
0
0
0.013143
0.197829
3,225
99
79
32.575758
0.791651
0.003101
0
0.047619
0
0
0.117336
0.033613
0
0
0
0
0
1
0.083333
false
0
0.130952
0.02381
0.27381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6b9e0d5209b7b62f3db7419587e03282debb98ce
524
py
Python
Praticas/pratica03/latitude_longitude.py
andrepinto42/Processamento-de-Linguagens
98facba0d1c9ca751743b1c83dca7f441aa182e9
[ "MIT" ]
1
2022-03-18T21:39:47.000Z
2022-03-18T21:39:47.000Z
Praticas/pratica03/latitude_longitude.py
andrepinto42/Processamento-de-Linguagens
98facba0d1c9ca751743b1c83dca7f441aa182e9
[ "MIT" ]
null
null
null
Praticas/pratica03/latitude_longitude.py
andrepinto42/Processamento-de-Linguagens
98facba0d1c9ca751743b1c83dca7f441aa182e9
[ "MIT" ]
null
null
null
import re import sys real_num = r'[+-]?\d+(?:\.\d+)?' # Falta colocar as os paratenses para identificar o grupo correto coord = rf'\(({real_num}),\s*({real_num})\)' for line in sys.stdin: line = re.sub(coord,r"<point lat='\1', lon='\2' />",line) if (line): print(line) quit() # Tambem dá para e...
22.782609
71
0.574427
85
524
3.482353
0.458824
0.118243
0.054054
0.094595
0.445946
0.317568
0.317568
0.317568
0.317568
0.317568
0
0.004717
0.19084
524
23
72
22.782609
0.693396
0.179389
0
0.428571
0
0
0.378505
0.182243
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6b9f0ffcb6c75b079a5eb98125aa38eb4f61fd76
375
py
Python
includes/prav_modules/test2.py
praveen868686/DAGAirflow-with-Python
483fffc2e7f987e523ae3653a90869a67cdad886
[ "MIT" ]
null
null
null
includes/prav_modules/test2.py
praveen868686/DAGAirflow-with-Python
483fffc2e7f987e523ae3653a90869a67cdad886
[ "MIT" ]
null
null
null
includes/prav_modules/test2.py
praveen868686/DAGAirflow-with-Python
483fffc2e7f987e523ae3653a90869a67cdad886
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def see(): m = pd.read_csv('C:/dag/Expenditure.csv') #m = pd.read_csv('C:\dag\Expendture.csv') # print(m.head()) countt= m ['Category'].value_counts(sort=True, ascending=True).to_frame() print(countt) pivottable= m.pivot_table(index=['Category'], values=[...
25
83
0.656
55
375
4.381818
0.618182
0.024896
0.058091
0.082988
0.116183
0.116183
0
0
0
0
0
0
0.16
375
14
84
26.785714
0.765079
0.149333
0
0
0
0
0.148265
0.069401
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ba002cacb0aea0efbea0d09c9f0563aeccf4db3
4,134
py
Python
MLP/generate_args.py
AMNoureldin/COMP551-HW4
0c855372862300cc0454f144bb40b2e72ba93861
[ "Apache-2.0" ]
15
2021-03-18T03:00:15.000Z
2022-02-28T04:42:54.000Z
MLP/generate_args.py
AMNoureldin/COMP551-HW4
0c855372862300cc0454f144bb40b2e72ba93861
[ "Apache-2.0" ]
null
null
null
MLP/generate_args.py
AMNoureldin/COMP551-HW4
0c855372862300cc0454f144bb40b2e72ba93861
[ "Apache-2.0" ]
2
2021-11-05T15:50:20.000Z
2022-01-16T11:48:27.000Z
# Copyright 2021 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, ...
32.046512
94
0.618287
577
4,134
4.211438
0.37435
0.032922
0.030864
0.024691
0
0
0
0
0
0
0
0.015815
0.265844
4,134
128
95
32.296875
0.784843
0.376149
0
0.042254
0
0
0.174566
0.082149
0
0
0
0
0
1
0
false
0
0.042254
0
0.042254
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ba35922a8da9226341017db55248451774263a5
38,712
py
Python
EasyRegression.py
pankajchejara23/EasyRegression
7f76d92c4a9d056a83bde6abc2fd6eb980602e44
[ "MIT" ]
1
2021-04-19T16:47:27.000Z
2021-04-19T16:47:27.000Z
EasyRegression.py
pankajchejara23/EasyRegression
7f76d92c4a9d056a83bde6abc2fd6eb980602e44
[ "MIT" ]
null
null
null
EasyRegression.py
pankajchejara23/EasyRegression
7f76d92c4a9d056a83bde6abc2fd6eb980602e44
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import librosa import seaborn as sns from sklearn.model_selection import train_test_split import math from sklearn.model_selection import LeaveOneGroupOut from sklearn.metrics import mean_squared_error, mean_absolute_error import traceback import statistics # Regress...
41.139214
457
0.517462
3,813
38,712
5.084448
0.120378
0.029917
0.012379
0.017331
0.469851
0.41043
0.359983
0.325012
0.293857
0.271264
0
0.008895
0.346585
38,712
941
458
41.139214
0.757541
0.03712
0
0.3457
0
0
0.161192
0.045734
0
0
0
0
0
1
0.035413
false
0
0.097808
0
0.177066
0.215852
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ba459622ba98919bfa10ab43ed05d7011713aea
469
py
Python
Moderate/Prime Numbers/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Moderate/Prime Numbers/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Moderate/Prime Numbers/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
import sys lines = open(sys.argv[1], 'r') for line in lines: line = line.replace('\n', '').replace('\r', '') if len(line) > 0: n = int(line) primes = set([2]) num = 3 while num < n: if all(num % i != 0 for i in primes): primes = set(list(pri...
26.055556
52
0.45629
64
469
3.34375
0.484375
0.084112
0
0
0
0
0
0
0
0
0
0.020408
0.373134
469
17
53
27.588235
0.707483
0
0
0
0
0
0.013274
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ba4e572e52707590a52608ce4cc12b513909627
2,117
py
Python
gemtown/users/serializers.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/users/serializers.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/users/serializers.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from rest_framework import serializers from gemtown.modelphotos import models as modelphoto_models from gemtown.modelers import models as modeler_models from gemtown.musicians import models as musician_models from . import models import time class TimestampField(serializers.Field): def to_representation(self, valu...
25.817073
60
0.561171
166
2,117
7.012048
0.39759
0.111684
0.060137
0.090206
0.142612
0.051546
0
0
0
0
0
0
0.352858
2,117
81
61
26.135802
0.849635
0
0
0.309859
0
0
0.117313
0
0
0
0
0
0
1
0.014085
false
0
0.084507
0.014085
0.366197
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ba78991985070dc29bb6e09cbc030857e571e30
6,702
py
Python
alexa_skills/cis_diagnosis.py
paramraghavan/sls-py-alexa-color-picker
da4752442dd4ead19832930103adb9d81cfc163a
[ "MIT" ]
null
null
null
alexa_skills/cis_diagnosis.py
paramraghavan/sls-py-alexa-color-picker
da4752442dd4ead19832930103adb9d81cfc163a
[ "MIT" ]
null
null
null
alexa_skills/cis_diagnosis.py
paramraghavan/sls-py-alexa-color-picker
da4752442dd4ead19832930103adb9d81cfc163a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from ask_sdk_core.skill_builder import SkillBuilder from ask_sdk_core.utils import is_request_type, is_intent_name from ask_sdk_core.handler_input import HandlerInput from ask_sdk_model import Response from ask_sdk_model.ui import SimpleCard import os from alexa_skills import aw...
32.852941
110
0.716801
873
6,702
5.255441
0.273769
0.07585
0.061029
0.070619
0.278989
0.209895
0.159765
0.15279
0.151046
0.123801
0
0.001084
0.173829
6,702
203
111
33.014778
0.827524
0.222769
0
0.090909
0
0
0.128404
0.013317
0
0
0
0
0
1
0.136364
false
0
0.118182
0.009091
0.354545
0.027273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ba8948db01a555810296ad83a1297622916c86e
988
py
Python
armautils_cli/smdimerge.py
KoffeinFlummi/ArmaUtils
2f1fdc8fb561fb54077f3c328d7a788e75c78dad
[ "MIT" ]
1
2015-02-19T17:31:17.000Z
2015-02-19T17:31:17.000Z
armautils_cli/smdimerge.py
KoffeinFlummi/ArmaUtils
2f1fdc8fb561fb54077f3c328d7a788e75c78dad
[ "MIT" ]
null
null
null
armautils_cli/smdimerge.py
KoffeinFlummi/ArmaUtils
2f1fdc8fb561fb54077f3c328d7a788e75c78dad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np from PIL import Image def smdimerge(pargs, oargs): if len(pargs) != 3: return -1 path_spec, path_gloss, path_target = pargs try: spec = Image.open(path_spec).convert("RGBA") gloss = Image.open(path_gloss).convert("RGBA") except: ...
23.52381
72
0.601215
140
988
4.192857
0.471429
0.0477
0.044293
0.064736
0
0
0
0
0
0
0
0.01238
0.26417
988
41
73
24.097561
0.795048
0.021255
0
0.233333
0
0
0.181159
0
0
0
0
0
0
1
0.033333
false
0
0.066667
0
0.266667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6baa9c56ec82f3de3e848ccc5b1bc7bfad503442
7,001
py
Python
detect_motor_test3.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
detect_motor_test3.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
detect_motor_test3.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python #!coding=utf-8 import rospy import numpy as np import PIL.Image as pilimage from sensor_msgs.msg import CompressedImage from sensor_msgs.msg import Image from std_msgs.msg import Float64 from cv_bridge import CvBridge, CvBridgeError import cv2 import time from yolo import YOLO from sensor_msgs.ms...
32.868545
114
0.571347
862
7,001
4.37935
0.230858
0.08053
0.058543
0.063046
0.423841
0.358146
0.352318
0.331921
0.331921
0.296424
0
0.042836
0.333095
7,001
212
115
33.023585
0.765689
0.12084
0
0.446667
0
0
0.032749
0.010971
0
0
0
0
0
1
0.033333
false
0.013333
0.133333
0
0.166667
0.073333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6baba2b5a50d24a7e67ce4b5e3c206e3e6b416ad
7,184
py
Python
git_pull_all.py
searKing/git-pull-all
b77a1b0461cd00a5f3ccd48253a12674557302b6
[ "MIT" ]
null
null
null
git_pull_all.py
searKing/git-pull-all
b77a1b0461cd00a5f3ccd48253a12674557302b6
[ "MIT" ]
null
null
null
git_pull_all.py
searKing/git-pull-all
b77a1b0461cd00a5f3ccd48253a12674557302b6
[ "MIT" ]
null
null
null
#!/usr/bin/python import git from git import * import threading import os import sys import getopt from enum import Enum class GitCommandType(Enum): pull = 1 push = 2 nop = 3 def yes_or_no(msg: str): yes_no = input(msg + " ? [Y]es or [n]o?") yes_no = yes_no.lower() if yes_no == "yes" or yes...
39.256831
121
0.579065
921
7,184
4.127036
0.156352
0.060773
0.047356
0.044199
0.46935
0.36964
0.280716
0.213102
0.202052
0.191002
0
0.004607
0.335329
7,184
182
122
39.472527
0.791414
0.016425
0
0.224359
0
0
0.114682
0.025202
0
0
0
0
0
1
0.044872
false
0.025641
0.044872
0
0.192308
0.108974
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bac63dfef6fa2d50e75637d8cb0e279922534d7
1,943
py
Python
03-dearsanta/dateconvert.py
hugovk/NaNoGenMo-2016
e71b333173b221066f56adcdea4fe8cfdfd4e7c7
[ "FTL" ]
null
null
null
03-dearsanta/dateconvert.py
hugovk/NaNoGenMo-2016
e71b333173b221066f56adcdea4fe8cfdfd4e7c7
[ "FTL" ]
null
null
null
03-dearsanta/dateconvert.py
hugovk/NaNoGenMo-2016
e71b333173b221066f56adcdea4fe8cfdfd4e7c7
[ "FTL" ]
null
null
null
#!/usr/bin/env python3 """ Take a timestamp like: 25/11/2016 23:05:03 Convert it to: 25 November 2016, 13:05 PST 25 November 2016, 16:05 EST 25 November 2016, 21:05 GMT 25 November 2016, 21:05 UTC 25 November 2016, 23:05 EET 26 November 2016, 02:35 IST 26 November 2016, 05:05 CST 26 November 2016, 06:05 JST 26 Novembe...
25.906667
74
0.662378
261
1,943
4.808429
0.43295
0.086056
0.055777
0.025498
0.028685
0
0
0
0
0
0
0.068898
0.215646
1,943
74
75
26.256757
0.754593
0.288214
0
0
0
0
0.15593
0
0
0
0
0
0
1
0.027027
false
0
0.081081
0
0.135135
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bad66e09e43cf21ce9d5331e922f80d18955982
799
py
Python
priv_tube/database/repositories/system_flags.py
ActionCactus/prive_tube
d6d53b87e1a91248e32532a86b23f2d2f3196c58
[ "MIT" ]
null
null
null
priv_tube/database/repositories/system_flags.py
ActionCactus/prive_tube
d6d53b87e1a91248e32532a86b23f2d2f3196c58
[ "MIT" ]
null
null
null
priv_tube/database/repositories/system_flags.py
ActionCactus/prive_tube
d6d53b87e1a91248e32532a86b23f2d2f3196c58
[ "MIT" ]
null
null
null
from priv_tube.database.models.system_flags import SystemFlags as Model from priv_tube.database import db class SystemFlags: """ Repository for interacting with the `system_flags` database table responsible for system-wide toggles. """ @staticmethod def is_enabled(setting_name: str) -> bool: ...
29.592593
106
0.693367
102
799
5.264706
0.421569
0.122905
0.078212
0.117318
0.370577
0.370577
0.370577
0.370577
0.370577
0.370577
0
0
0.210263
799
26
107
30.730769
0.85103
0.12766
0
0.411765
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6baec59b9ec0b23b54791668f80cdb75f7f78fe2
2,899
py
Python
borisat/models/rd/unnested.py
CircleOnCircles/borisat
4f170ee1a0b11f06b1c3e99f42823061d7e0028e
[ "MIT" ]
null
null
null
borisat/models/rd/unnested.py
CircleOnCircles/borisat
4f170ee1a0b11f06b1c3e99f42823061d7e0028e
[ "MIT" ]
1
2020-10-10T08:18:29.000Z
2020-10-10T08:18:29.000Z
borisat/models/rd/unnested.py
CircleOnCircles/borisat
4f170ee1a0b11f06b1c3e99f42823061d7e0028e
[ "MIT" ]
null
null
null
""" { 'vNID': { 'anyType': [ '0105558096348' ] }, 'vtin': None, 'vtitleName': { 'anyType': [ 'บริษัท' ] }, 'vName': { 'anyType': [ 'โฟลว์แอคเคาท์ จำกัด' ] }, 'vSurname': { 'anyT...
19.993103
137
0.397378
255
2,899
4.592157
0.494118
0.042699
0.068318
0.018787
0.06661
0.06661
0.044406
0.044406
0.044406
0.044406
0
0.024809
0.457744
2,899
144
138
20.131944
0.704835
0.588479
0
0
0
0.035714
0.142166
0
0
0
0
0
0
1
0.071429
false
0
0.25
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
6bb3065e877b04d04efa39f8cb2dec584e2b65df
3,696
py
Python
app/utils/logger.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
6
2021-03-27T08:58:04.000Z
2021-05-23T17:07:09.000Z
app/utils/logger.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
2
2021-05-30T08:06:53.000Z
2021-06-02T17:02:06.000Z
app/utils/logger.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
null
null
null
# -- Imports -- from datetime import datetime from colorama import Back from rich.console import Console from .colors import get_bright_color, get_color # -- Mappings -- log_color_mapping = { "error": get_bright_color("RED"), "warning": get_bright_color("YELLOW"), "message": get_color("CYAN"), "succe...
29.806452
102
0.619589
444
3,696
4.873874
0.128378
0.064695
0.097043
0.126155
0.507394
0.47597
0.47597
0.458872
0.458872
0.356285
0
0
0.232413
3,696
123
103
30.04878
0.762778
0.007576
0
0.380952
0
0
0.293042
0.216098
0
0
0
0
0
1
0.107143
false
0
0.047619
0
0.178571
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bb5a3ae1541a6323233d61a349487d06b8c5714
1,907
py
Python
Simplex_Files/Dual_Problem.py
c-randall/Primal-Simplex-Method
620d7598691ed9717d2d18706c44e462f75e85c5
[ "BSD-3-Clause" ]
1
2021-12-04T12:18:17.000Z
2021-12-04T12:18:17.000Z
Simplex_Files/Dual_Problem.py
c-randall/Primal-Simplex-Method
620d7598691ed9717d2d18706c44e462f75e85c5
[ "BSD-3-Clause" ]
null
null
null
Simplex_Files/Dual_Problem.py
c-randall/Primal-Simplex-Method
620d7598691ed9717d2d18706c44e462f75e85c5
[ "BSD-3-Clause" ]
2
2020-05-30T16:38:37.000Z
2022-01-22T19:50:42.000Z
""" Created on Wed Apr 3 13:07:18 2019 Author: Corey R. Randall Summary: If the user wishes to solve the Dual Problem over the Primal one, this function provides support to appropriately convert the problem into its alternate form. """ """ Import needed modules """ "----------------...
31.262295
80
0.529628
273
1,907
3.56044
0.322344
0.144033
0.024691
0.024691
0.09465
0.061728
0
0
0
0
0
0.025228
0.251704
1,907
60
81
31.783333
0.655922
0.262192
0
0.0625
0
0
0.162882
0.120595
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bbbb5f359c8e40427bcd1ee484f14b132a99a62
2,593
py
Python
gallery/m_cardloader.py
kengoon/KvGallery
4d946fa06479636411e027bfdebbb15c58c176cf
[ "MIT" ]
2
2021-05-28T13:37:07.000Z
2021-06-20T06:47:20.000Z
gallery/m_cardloader.py
kengoon/KvGallery
4d946fa06479636411e027bfdebbb15c58c176cf
[ "MIT" ]
null
null
null
gallery/m_cardloader.py
kengoon/KvGallery
4d946fa06479636411e027bfdebbb15c58c176cf
[ "MIT" ]
null
null
null
from kivy.event import EventDispatcher from kivy.metrics import dp from kivy.properties import ListProperty, StringProperty from kivymd.uix.card import MDCard from kivy.lang import Builder __all__ = "M_CardLoader" Builder.load_string( """ # kv_start <M_CardLoader>: md_bg_color: 0, 0, 0, 0 radius: [dp(10),...
27.585106
73
0.529117
288
2,593
4.559028
0.388889
0.013709
0.011424
0.018279
0.025895
0.018279
0
0
0
0
0
0.024284
0.38064
2,593
93
74
27.88172
0.793275
0
0
0
0
0
0.038657
0
0
0
0
0
0
1
0.178571
false
0
0.178571
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bbc545ddb8b337163afbee7b7359f2bf1545ca8
763
py
Python
setup.py
OpenTAI/pre-commit-hooks
e123691fa26ff26d1a5f3513ee419bec6eef02ab
[ "MIT" ]
null
null
null
setup.py
OpenTAI/pre-commit-hooks
e123691fa26ff26d1a5f3513ee419bec6eef02ab
[ "MIT" ]
1
2022-02-16T10:19:25.000Z
2022-02-16T10:19:26.000Z
setup.py
OpenTAI/pre-commit-hooks
e123691fa26ff26d1a5f3513ee419bec6eef02ab
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup # type: ignore def readme(): with open('./README.md', encoding='utf-8') as f: content = f.read() return content setup( name='pre_commit_hooks', version='0.1.0', description='A pre-commit hook for OpenTAI projects', long_description=readme(...
26.310345
68
0.647444
93
763
5.107527
0.634409
0.094737
0.117895
0
0
0
0
0
0
0
0
0.009934
0.208388
763
28
69
27.25
0.77649
0.015727
0
0
0
0
0.351135
0.125501
0
0
0
0
0
1
0.041667
false
0
0.041667
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bc548fb933264d47e42737add228df3e1a66805
3,509
py
Python
main.py
lhs9842/KNUTNoticeBot
cfc83f2abc079a660177d00da1eab288cad021b4
[ "MIT" ]
1
2022-02-23T01:54:07.000Z
2022-02-23T01:54:07.000Z
main.py
lhs9842/KNUTNoticeBot
cfc83f2abc079a660177d00da1eab288cad021b4
[ "MIT" ]
null
null
null
main.py
lhs9842/KNUTNoticeBot
cfc83f2abc079a660177d00da1eab288cad021b4
[ "MIT" ]
1
2022-02-23T07:17:31.000Z
2022-02-23T07:17:31.000Z
import setting import requests import threading import time import sqlite3 from bs4 import BeautifulSoup from urllib import parse public_board = [["BBSMSTR_000000000059", "일반소식"], ["BBSMSTR_000000000060", "장학안내"], ["BBSMSTR_000000000055", "학사공지사항"]] # [boardId, 게시판 명칭] db_conn = sqlite3.connect("NoticeBot.db", check_...
44.987179
205
0.596751
477
3,509
4.224319
0.404612
0.035732
0.044665
0.032754
0.273449
0.206948
0.206948
0.206948
0.206948
0.159801
0
0.032133
0.263893
3,509
78
206
44.987179
0.747967
0.066686
0
0.152778
0
0
0.224159
0.021713
0
0
0
0
0
1
0.041667
false
0
0.097222
0
0.138889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bc83f48988080bc745090b0af2be2b40f9b6a5e
2,041
py
Python
inference_methods_local.py
Yaakoubi/Struct-CKN
fa007fa71310866584bdf2e5b038e6663b94e965
[ "MIT" ]
1
2021-05-30T13:42:56.000Z
2021-05-30T13:42:56.000Z
inference_methods_local.py
Yaakoubi/Struct-CKN
fa007fa71310866584bdf2e5b038e6663b94e965
[ "MIT" ]
null
null
null
inference_methods_local.py
Yaakoubi/Struct-CKN
fa007fa71310866584bdf2e5b038e6663b94e965
[ "MIT" ]
2
2022-03-16T22:00:30.000Z
2022-03-29T20:08:57.000Z
import ad3 import numpy as np from pystruct.inference.common import _validate_params class InferenceException(Exception): pass def inference_ad3_local(unary_potentials, pairwise_potentials, edges, relaxed=False, verbose=0, return_energy=False, branch_and_bound=False, ...
39.25
92
0.632533
227
2,041
5.374449
0.295154
0.091803
0.032787
0.029508
0.290164
0.17541
0.116393
0.116393
0.116393
0.116393
0
0.012544
0.296913
2,041
51
93
40.019608
0.837631
0
0
0.25
0
0
0.01809
0
0
0
0
0
0
1
0.022727
false
0.022727
0.068182
0
0.181818
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
6bcb30fd29a6ef624f4b1ad7d00a496c9b08cdb4
6,611
py
Python
leo/modes/lotos.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/modes/lotos.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/modes/lotos.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
# Leo colorizer control file for lotos mode. # This file is in the public domain. # Properties for lotos mode. properties = { "commentEnd": "*)", "commentStart": "(*", "indentNextLines": "\\s*(let|library|process|specification|type|>>).*|\\s*(\\(|\\[\\]|\\[>|\\|\\||\\|\\|\\||\\|\\[.*\\]\\||\\[.*\\]\...
29.513393
149
0.570867
715
6,611
5.044755
0.244755
0.177433
0.022456
0.037427
0.440255
0.433879
0.418908
0.401164
0.401164
0.401164
0
0.032126
0.223113
6,611
223
150
29.64574
0.670171
0.062472
0
0.036269
0
0
0.250084
0.020463
0
0
0
0
0
1
0.046632
false
0
0.005181
0.046632
0.098446
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bce53c9abe42e1145ff3c9feca2ddc25c7666a1
275
py
Python
src/ProblemSolving/DiagonalDifference.py
Feng-Zhao/hackerrankPy
fc04f0a11cf543ad3697860eca774103593abcd5
[ "Apache-2.0" ]
null
null
null
src/ProblemSolving/DiagonalDifference.py
Feng-Zhao/hackerrankPy
fc04f0a11cf543ad3697860eca774103593abcd5
[ "Apache-2.0" ]
null
null
null
src/ProblemSolving/DiagonalDifference.py
Feng-Zhao/hackerrankPy
fc04f0a11cf543ad3697860eca774103593abcd5
[ "Apache-2.0" ]
null
null
null
def diagonalDifference(arr): a = 0 b = 0 for i in range(0, len(arr)): a += arr[i][i] b += arr[i][len(arr) - i - 1] return abs(a - b) if __name__ == '__main__': arr = [[11, 2, 4],[4, 5, 6],[10, 8, -12]] print(diagonalDifference(arr))
21.153846
45
0.490909
45
275
2.822222
0.577778
0.094488
0
0
0
0
0
0
0
0
0
0.083333
0.301818
275
12
46
22.916667
0.578125
0
0
0
0
0
0.029091
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
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
6bd0d6670874846404621cb14ddcf0728b11d685
1,395
py
Python
balltze_simulation/balltze_pybullet/balltze/balltze.py
Kotochleb/Balltze
55b15cb57d20f7f212293bf838e1d6cf874bb4c2
[ "MIT" ]
1
2021-09-04T03:59:01.000Z
2021-09-04T03:59:01.000Z
balltze_simulation/balltze_pybullet/balltze/balltze.py
Kotochleb/Balltze
55b15cb57d20f7f212293bf838e1d6cf874bb4c2
[ "MIT" ]
null
null
null
balltze_simulation/balltze_pybullet/balltze/balltze.py
Kotochleb/Balltze
55b15cb57d20f7f212293bf838e1d6cf874bb4c2
[ "MIT" ]
null
null
null
import pybullet as p import time import numpy as np import pybullet_data from balltze_description import Balltze, BalltzeKinematics import math if __name__ == '__main__': time_step = 1./240. physicsClient = p.connect(p.GUI) p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.setGravity(0,0,-9.81) ...
32.44186
154
0.597133
200
1,395
4.055
0.38
0.019729
0.018496
0.024661
0.073983
0.062885
0.054254
0
0
0
0
0.083491
0.244444
1,395
42
155
33.214286
0.685958
0.098925
0
0.058824
0
0
0.067093
0.052716
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bd20797291e733d3485db7e9a7d16d42673718a
8,850
py
Python
urbit_sniffer.py
laanwj/urbit-tools
b3823d50d5ab84c0852593e3255c0d7c51de6d1c
[ "MIT" ]
18
2015-02-03T19:27:18.000Z
2021-04-04T03:03:57.000Z
urbit_sniffer.py
laanwj/urbit-tools
b3823d50d5ab84c0852593e3255c0d7c51de6d1c
[ "MIT" ]
null
null
null
urbit_sniffer.py
laanwj/urbit-tools
b3823d50d5ab84c0852593e3255c0d7c51de6d1c
[ "MIT" ]
2
2015-10-02T01:37:13.000Z
2017-06-04T03:41:49.000Z
#!/usr/bin/python3 # Copyright (c) 2014 Wladimir J. van der Laan, Visucore # Distributed under the MIT software license, see # http://www.opensource.org/licenses/mit-license.php. ''' urbit UDP sniffer Usage: urbit_sniffer.py [-p <port1>-<port2>,<port3>,...] [-i <interface>] ''' import struct, sys, io, argparse, dateti...
38.146552
165
0.599887
1,135
8,850
4.567401
0.274009
0.020062
0.026235
0.007523
0.154514
0.092207
0.055941
0.039738
0.021605
0.021605
0
0.026981
0.262938
8,850
231
166
38.311688
0.767592
0.110508
0
0.152542
0
0.011299
0.110585
0.008319
0
0
0.000896
0
0
1
0.039548
false
0.00565
0.050847
0.00565
0.175141
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bd54aeda1cf3aa43806abaf7f0e2dafeca01c0d
1,638
py
Python
app/tests/v1/test_product.py
owezzy/StoreManager
821856c0d502b55bd499cfe9188cd4951c5b0b75
[ "MIT" ]
null
null
null
app/tests/v1/test_product.py
owezzy/StoreManager
821856c0d502b55bd499cfe9188cd4951c5b0b75
[ "MIT" ]
2
2018-10-10T22:32:35.000Z
2021-06-01T22:50:56.000Z
app/tests/v1/test_product.py
owezzy/StoreManager
821856c0d502b55bd499cfe9188cd4951c5b0b75
[ "MIT" ]
1
2018-10-25T12:42:41.000Z
2018-10-25T12:42:41.000Z
import unittest import json from app.app import create_app POST_PRODUCT_URL = '/api/v1/products' GET_A_SINGLE_PRODUCT = '/api/v1/product/1' GET_ALL_PRODUCTS = '/api/v1/products' class TestProduct(unittest.TestCase): def setUp(self): """Initialize the api with test variable""" self.app = create_...
30.333333
72
0.623321
194
1,638
5.041237
0.309278
0.076687
0.117587
0.106339
0.381391
0.188139
0.188139
0
0
0
0
0.01495
0.264957
1,638
53
73
30.90566
0.797342
0.072039
0
0.108108
0
0
0.093396
0
0
0
0
0
0.135135
1
0.108108
false
0
0.081081
0
0.216216
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bd88438849c3a76c7d468249205380ab8ab8c38
1,346
py
Python
cryptoshredding/s3/client.py
hupe1980/cryptoshredding
1ab5ee452c4435f486006aa2cc1a7bee440d91fe
[ "MIT" ]
null
null
null
cryptoshredding/s3/client.py
hupe1980/cryptoshredding
1ab5ee452c4435f486006aa2cc1a7bee440d91fe
[ "MIT" ]
null
null
null
cryptoshredding/s3/client.py
hupe1980/cryptoshredding
1ab5ee452c4435f486006aa2cc1a7bee440d91fe
[ "MIT" ]
null
null
null
import boto3 from botocore.client import BaseClient from ..key_store import KeyStore from .object import CryptoObject from .stream_body_wrapper import StreamBodyWrapper class CryptoS3(object): def __init__( self, client: BaseClient, key_store: KeyStore, ) -> None: self._client...
31.302326
88
0.641902
161
1,346
5.192547
0.403727
0.076555
0.043062
0.035885
0.047847
0
0
0
0
0
0
0.004082
0.271917
1,346
42
89
32.047619
0.84898
0.228083
0
0.068966
0
0
0.018145
0
0
0
0
0
0
1
0.137931
false
0
0.172414
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bd9272def1931c3aead22a640fadc1a05f50b8f
5,627
py
Python
tests/infra/test_subnet.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
tests/infra/test_subnet.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
tests/infra/test_subnet.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
""" Unit test for EC2 subnet. """ import unittest import mock from treadmill.infra.subnet import Subnet class SubnetTest(unittest.TestCase): @mock.patch('treadmill.infra.connection.Connection') def test_init(self, ConnectionMock): conn_mock = ConnectionMock() Subnet.ec2_conn = Subnet.route5...
30.090909
78
0.563355
582
5,627
5.201031
0.139175
0.066072
0.04625
0.052858
0.629997
0.584077
0.502147
0.438057
0.326396
0.259663
0
0.014048
0.316865
5,627
186
79
30.252688
0.773413
0.004443
0
0.385621
0
0
0.135145
0.0463
0
0
0
0
0.137255
1
0.045752
false
0
0.019608
0
0.071895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bdac7bc37d6267a61f05383477b3f0ca7a95eab
5,138
py
Python
tests/building/test_tokenization.py
fossabot/langumo
2d8b30979878bb27fb07cc31879c13c5c186582c
[ "Apache-2.0" ]
7
2020-09-05T08:30:25.000Z
2021-11-01T14:07:58.000Z
tests/building/test_tokenization.py
fossabot/langumo
2d8b30979878bb27fb07cc31879c13c5c186582c
[ "Apache-2.0" ]
2
2020-09-11T14:19:47.000Z
2021-03-05T17:22:21.000Z
tests/building/test_tokenization.py
fossabot/langumo
2d8b30979878bb27fb07cc31879c13c5c186582c
[ "Apache-2.0" ]
3
2020-09-11T14:16:06.000Z
2021-10-31T14:18:10.000Z
import tempfile from langumo.building import TrainTokenizer, TokenizeSentences from langumo.utils import AuxiliaryFileManager _dummy_corpus_content = ( 'Wikipedia is a multilingual online encyclopedia created and maintained ' 'as an open collaboration project by a community of volunteer editors ' 'using a...
47.137615
79
0.665434
650
5,138
5.201538
0.436923
0.023957
0.010352
0.01331
0.216208
0.211772
0.196983
0.196983
0.169772
0.169772
0
0.018243
0.253211
5,138
108
80
47.574074
0.862914
0.071234
0
0.258824
0
0
0.47775
0
0
0
0
0
0.070588
1
0.035294
false
0
0.035294
0
0.070588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bdb7b37ea55baaa1973a1fff39476ce6ea71851
12,819
py
Python
examples/BertNewsClassification/news_classifier.py
mlflow/mlflow-torchserve
91663b630ef12313da3ad821767faf3fc409345b
[ "Apache-2.0" ]
40
2020-11-13T02:08:10.000Z
2022-03-27T07:41:57.000Z
examples/BertNewsClassification/news_classifier.py
Ideas2IT/mlflow-torchserve
d6300fb73f16d74ee2c7718c249faf485c4f3b62
[ "Apache-2.0" ]
23
2020-11-16T11:28:01.000Z
2021-09-23T11:28:24.000Z
examples/BertNewsClassification/news_classifier.py
Ideas2IT/mlflow-torchserve
d6300fb73f16d74ee2c7718c249faf485c4f3b62
[ "Apache-2.0" ]
15
2020-11-13T10:25:25.000Z
2022-02-01T10:13:20.000Z
# pylint: disable=W0221 # pylint: disable=W0613 # pylint: disable=E1102 # pylint: disable=W0223 import shutil from collections import defaultdict import numpy as np import pandas as pd import torch import torch.nn.functional as F from sklearn.model_selection import train_test_split from torch import nn from torch.utils...
32.289673
99
0.620095
1,548
12,819
4.917959
0.209302
0.034152
0.01839
0.012479
0.283068
0.23959
0.222777
0.183765
0.159333
0.121765
0
0.007908
0.279897
12,819
396
100
32.371212
0.816813
0.109993
0
0.135338
0
0.003759
0.088915
0.004875
0
0
0
0
0
1
0.048872
false
0
0.06015
0.003759
0.146617
0.022556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bde8a8095cceac04979671e29124bd410698f7c
3,716
py
Python
src/toil/lib/aws/utils.py
rupertnash/toil
fd805d5fa14cca98f2bc64b322a4b546e163d6c9
[ "Apache-2.0" ]
6
2018-05-27T05:09:11.000Z
2020-07-01T17:02:40.000Z
src/toil/lib/aws/utils.py
rupertnash/toil
fd805d5fa14cca98f2bc64b322a4b546e163d6c9
[ "Apache-2.0" ]
1
2020-07-01T18:31:30.000Z
2020-07-08T14:03:39.000Z
src/toil/lib/aws/utils.py
rupertnash/toil
fd805d5fa14cca98f2bc64b322a4b546e163d6c9
[ "Apache-2.0" ]
1
2020-04-06T15:04:44.000Z
2020-04-06T15:04:44.000Z
# Copyright (C) 2015-2021 Regents of the University of California # # 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 app...
45.876543
110
0.741389
503
3,716
5.328032
0.28827
0.061567
0.026866
0.043284
0.254104
0.21903
0.180597
0.180597
0.15
0
0
0.007318
0.154198
3,716
80
111
46.45
0.845371
0.194295
0
0.115385
0
0
0.201277
0.038306
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0.192308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bdeffb0d14dc1d4dca20f695831236be20df06b
3,389
py
Python
src/data/processed_data.py
Victoradukwu/titanic
18a4e8fe7dbe755a946512ca71b1d2a2f5932c64
[ "MIT" ]
null
null
null
src/data/processed_data.py
Victoradukwu/titanic
18a4e8fe7dbe755a946512ca71b1d2a2f5932c64
[ "MIT" ]
null
null
null
src/data/processed_data.py
Victoradukwu/titanic
18a4e8fe7dbe755a946512ca71b1d2a2f5932c64
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd def read_data(): raw_data_path = os.path.join(os.path.pardir, 'data', 'raw') train_file_path = os.path.join(raw_data_path, 'train.csv') test_file_path = os.path.join(raw_data_path, 'test.csv') train_df = pd.read_csv(train_file_path, index_col = 'Pa...
33.554455
130
0.59044
467
3,389
4.104925
0.284797
0.025039
0.031299
0.043818
0.238915
0.204486
0.204486
0.116849
0.086594
0.051122
0
0.010054
0.236943
3,389
100
131
33.89
0.731245
0.029212
0
0.064935
0
0
0.122679
0
0
0
0
0
0
1
0.090909
false
0.025974
0.038961
0.025974
0.194805
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6be02c0cdca45be2d0933fe3cbd070df05fee26e
59,336
py
Python
clustergrammer/upload_pages/clustergrammer_old.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
5
2018-04-04T16:25:06.000Z
2021-04-10T23:47:20.000Z
clustergrammer/upload_pages/clustergrammer_old.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
8
2016-07-16T02:55:12.000Z
2022-02-02T16:42:17.000Z
clustergrammer/upload_pages/clustergrammer_old.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
4
2019-05-28T08:52:41.000Z
2021-01-11T22:14:48.000Z
# define a class for networks class Network(object): ''' Networks have two states: the data state where they are stored as: matrix and nodes and a viz state where they are stored as: viz.links, viz.row_nodes, viz. col_nodes. The goal is to start in a data-state and produce a viz-state of the network that...
31.528162
130
0.603546
8,648
59,336
3.928885
0.056545
0.056656
0.029461
0.034877
0.601054
0.542279
0.497042
0.459605
0.423875
0.402625
0
0.005392
0.253017
59,336
1,882
131
31.528162
0.761185
0.217254
0
0.508351
0
0
0.11193
0
0.001044
0
0
0
0
1
0.041754
false
0
0.056367
0
0.11691
0.021921
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6be3f12ed534c88956efb0cde9bfba8da5449ad9
1,113
py
Python
server/face_recogniser.py
fvalle1/ai_server
0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0
[ "MIT" ]
1
2021-03-10T15:37:21.000Z
2021-03-10T15:37:21.000Z
server/face_recogniser.py
fvalle1/ai_server
0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0
[ "MIT" ]
null
null
null
server/face_recogniser.py
fvalle1/ai_server
0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0
[ "MIT" ]
null
null
null
import cv2 as cv from model import model class face_recogniser(model): def __init__(self): super() self.net = cv.dnn.readNet('/home/pi/inception/face-detection-adas-0001.xml','/home/pi/inception/face-detection-adas-0001.bin') self.net.setPreferableTarget(cv.dnn.DNN_TARGET_MYRIAD) def a...
39.75
134
0.615454
150
1,113
4.486667
0.5
0.041605
0.044577
0.056464
0.106984
0.106984
0.106984
0
0
0
0
0.040964
0.254268
1,113
27
135
41.222222
0.76988
0.070081
0
0
0
0
0.091085
0.091085
0
0
0
0
0
1
0.136364
false
0
0.090909
0.045455
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6be4827cb6db3797b4e0960a8f9afb82862b44ab
2,783
py
Python
tests/test_cpymadtools/test_generators.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
5
2020-05-28T09:16:01.000Z
2021-12-27T18:59:15.000Z
tests/test_cpymadtools/test_generators.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
71
2020-02-20T20:32:43.000Z
2022-03-24T17:04:28.000Z
tests/test_cpymadtools/test_generators.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
2
2021-09-28T16:01:06.000Z
2022-03-16T19:04:23.000Z
import random import pytest from pyhdtoolkit.cpymadtools.generators import LatticeGenerator class TestLatticeGenerator: def test_base_cas_lattice_generation(self): base_cas_lattice = LatticeGenerator.generate_base_cas_lattice() assert isinstance(base_cas_lattice, str) assert len(base_cas...
42.166667
100
0.680201
308
2,783
5.824675
0.201299
0.190635
0.06243
0.075808
0.389075
0.218506
0.181717
0.181717
0.181717
0.12709
0
0.037207
0.217751
2,783
65
101
42.815385
0.786863
0
0
0.25
0
0
0.06935
0
0
0
0
0
0.285714
1
0.107143
false
0
0.053571
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6be4e81e9d40d83f06f1cfa243fa8007e8370a2f
1,789
py
Python
preprocessing/act_bed_construction.py
shtoneyan/sea-lion
7e1ce9a18a147eea42e6172a2329d696f6e6aef9
[ "MIT" ]
1
2022-02-10T21:21:32.000Z
2022-02-10T21:21:32.000Z
preprocessing/act_bed_construction.py
shtoneyan/sea-lion
7e1ce9a18a147eea42e6172a2329d696f6e6aef9
[ "MIT" ]
null
null
null
preprocessing/act_bed_construction.py
shtoneyan/sea-lion
7e1ce9a18a147eea42e6172a2329d696f6e6aef9
[ "MIT" ]
null
null
null
import pandas as pd import re import sys #read bed file #constructure acitivity table #output tfr file def main(): bed_file = sys.argv[1] act_table = sys.argv[2] data = pd.read_csv(act_table,sep = '\t') data.rename(columns={'Unnamed: 0':'loci'}, inplace=True) chrom = [i.split(':')[...
28.854839
66
0.567915
260
1,789
3.757692
0.296154
0.040942
0.061412
0.051177
0.188332
0.174002
0.126919
0.116684
0.116684
0.116684
0
0.013768
0.228619
1,789
61
67
29.327869
0.694203
0.196758
0
0
0
0
0.047619
0
0
0
0
0
0
1
0.052632
false
0
0.078947
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6be8cef9f2811735b313ed8611fa3362dad56bc1
2,072
py
Python
aiserver/backup/simpleserver2.py
hirasaki1985/Oreilly_deepLearning
378b60ccec67dc616669fcd65ad14c7eddae6767
[ "MIT" ]
null
null
null
aiserver/backup/simpleserver2.py
hirasaki1985/Oreilly_deepLearning
378b60ccec67dc616669fcd65ad14c7eddae6767
[ "MIT" ]
null
null
null
aiserver/backup/simpleserver2.py
hirasaki1985/Oreilly_deepLearning
378b60ccec67dc616669fcd65ad14c7eddae6767
[ "MIT" ]
null
null
null
import sys, socket import json import cgi try: from StringIO import StringIO except ImportError: from io import StringIO import numpy as np from http.server import BaseHTTPRequestHandler, HTTPServer from modules.controller import Controller # setting host = '' port = 8000 class MyHandler(BaseHT...
25.9
89
0.586873
200
2,072
6.035
0.465
0.042254
0.024855
0.044739
0
0
0
0
0
0
0
0.005587
0.30888
2,072
79
90
26.227848
0.837291
0.074807
0
0.075472
0
0
0.145594
0.014778
0
0
0
0
0
1
0.075472
false
0
0.169811
0
0.339623
0.150943
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bedb7df070733efc849ec3f70b009e7c5d82ea3
1,214
py
Python
get_machine_id.py
Server-Factory/Parallels-Utils
9b5c724b59832abf0506c5f632b0122573e71cd7
[ "Apache-2.0" ]
1
2021-01-01T23:24:31.000Z
2021-01-01T23:24:31.000Z
get_machine_id.py
Server-Factory/Parallels-Utils
9b5c724b59832abf0506c5f632b0122573e71cd7
[ "Apache-2.0" ]
null
null
null
get_machine_id.py
Server-Factory/Parallels-Utils
9b5c724b59832abf0506c5f632b0122573e71cd7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import subprocess import sys def main(): if len(sys.argv) > 1: machines = dict() image = sys.argv[1] row_home = "Home:" row_id_open = "{" row_id_close = "}" output = subprocess.check_output(['prlctl', 'list', '-a', '-i']) items = str(output...
28.904762
99
0.490939
142
1,214
3.971831
0.338028
0.053191
0.047872
0.039007
0
0
0
0
0
0
0
0.006684
0.383855
1,214
41
100
29.609756
0.747326
0.01318
0
0.058824
0
0
0.055973
0
0
0
0
0
0
1
0.029412
false
0
0.058824
0
0.088235
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bf3a11f4eaf5ef256dd41b159fcdf1ed04aaca8
12,158
py
Python
transform/preprocess/student_preprocess.py
WillianFuks/papis19
479c5460218c8f02716dbd5c2b0b9121a4328ab0
[ "Apache-2.0" ]
4
2019-06-24T13:20:22.000Z
2020-11-12T01:19:02.000Z
transform/preprocess/student_preprocess.py
WillianFuks/papis19
479c5460218c8f02716dbd5c2b0b9121a4328ab0
[ "Apache-2.0" ]
7
2019-12-16T21:55:20.000Z
2022-02-10T00:16:54.000Z
transform/preprocess/student_preprocess.py
WillianFuks/papis19
479c5460218c8f02716dbd5c2b0b9121a4328ab0
[ "Apache-2.0" ]
8
2019-06-24T12:27:51.000Z
2021-04-20T18:33:24.000Z
# Copyright 2019 Willian Fuks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
31.661458
89
0.618358
1,450
12,158
4.991034
0.230345
0.017963
0.02128
0.015476
0.148404
0.11151
0.086638
0.07434
0.063562
0.052784
0
0.003408
0.276032
12,158
383
90
31.744125
0.818791
0.246833
0
0.122642
0
0
0.113934
0
0
0
0
0
0
1
0.066038
false
0
0.084906
0.004717
0.207547
0.004717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6bf66439de1fb3ae4352db93cc562648f32d838f
751
py
Python
leetcode/p690.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
leetcode/p690.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
leetcode/p690.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/employee-importance/ """ # Definition for Employee. class Employee: def __init__(self, id: int, importance: int, subordinates: List[int]): self.id = id self.importance = importance self.subordinates = subordinates """ class Solution: def getImportance(sel...
28.884615
74
0.559254
82
751
5.036585
0.378049
0.067797
0.062954
0.11138
0.239709
0
0
0
0
0
0
0.001961
0.320905
751
25
75
30.04
0.807843
0.356858
0
0
0
0
0.016842
0
0
0
0
0
0
1
0.071429
false
0
0.214286
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
6bf727625ea059c4f0a7f91f758f96269dcdd254
3,916
py
Python
python/ranking/examples/fess/train_model.py
codelibs/logana
48b475e9fd5224821bfba7d41e755d8d64806651
[ "Apache-2.0" ]
2
2020-09-30T12:42:28.000Z
2020-11-04T01:34:20.000Z
python/ranking/examples/fess/train_model.py
codelibs/logana
48b475e9fd5224821bfba7d41e755d8d64806651
[ "Apache-2.0" ]
null
null
null
python/ranking/examples/fess/train_model.py
codelibs/logana
48b475e9fd5224821bfba7d41e755d8d64806651
[ "Apache-2.0" ]
null
null
null
import dataclasses import datetime import gzip import json import logging import os from typing import Any, Dict import numpy as np import tensorflow as tf from absl import flags from loganary.ranking.common import NumpyJsonEncoder, setup_logging, setup_seed from loganary.ranking.model import ( RankingModel, R...
34.350877
87
0.671348
484
3,916
5.163223
0.293388
0.066026
0.043217
0.028011
0.186074
0.123249
0.080032
0.031212
0
0
0
0.009785
0.217058
3,916
113
88
34.654867
0.805284
0
0
0.088235
0
0
0.223442
0.025536
0
0
0
0
0
1
0.009804
false
0
0.117647
0
0.127451
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d40116f3963560e5bc86c79d514d9d85b3020138
22,630
py
Python
build-fortress.py
DFIRmadness/infosec-fortress
cc20c5c5ecf5194fdd270e7accdf927b71ed2952
[ "MIT" ]
33
2021-06-22T01:42:06.000Z
2022-03-27T14:41:44.000Z
build-fortress.py
ED-209-MK7/infosec-fortress
cc20c5c5ecf5194fdd270e7accdf927b71ed2952
[ "MIT" ]
1
2021-06-24T09:10:03.000Z
2021-06-28T13:25:59.000Z
build-fortress.py
ED-209-MK7/infosec-fortress
cc20c5c5ecf5194fdd270e7accdf927b71ed2952
[ "MIT" ]
5
2021-06-23T08:04:22.000Z
2022-03-27T14:41:45.000Z
#!/bin/python3 ''' Title: build-fortress.py Purpose: Build the infosec-fortress Author: James Smith (DFIRmadness) Contributors: Check the github page. Notes: Beta Version: 0.5 Usage: ./build-fortress.py Functions: + apt update + dist upgrade + install base packages + create /opt/infosec-fortress + start log + install ...
40.996377
210
0.644057
2,677
22,630
5.428838
0.220022
0.021056
0.027868
0.035918
0.369573
0.328287
0.25824
0.1895
0.163628
0.121861
0
0.005682
0.198939
22,630
551
211
41.07078
0.796006
0.136677
0
0.26699
0
0.046117
0.376436
0.050796
0
0
0
0
0
1
0.082524
false
0.002427
0.021845
0
0.116505
0.043689
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4051d0a2b00e9998b74b852734dd381524320f3
955
py
Python
substance/constants.py
philraj/substance
c68c8343e22fd2ac1e83b7567140c2a20f417984
[ "Apache-2.0" ]
null
null
null
substance/constants.py
philraj/substance
c68c8343e22fd2ac1e83b7567140c2a20f417984
[ "Apache-2.0" ]
null
null
null
substance/constants.py
philraj/substance
c68c8343e22fd2ac1e83b7567140c2a20f417984
[ "Apache-2.0" ]
null
null
null
class Constants(object): class ConstError(TypeError): pass def __init__(self, **kwargs): for name, value in list(kwargs.items()): super(Constants, self).__setattr__(name, value) def __setattr__(self, name, value): if name in self.__dist__: raise self.Const...
20.76087
66
0.618848
102
955
5.519608
0.509804
0.063943
0.042629
0.042629
0.081705
0
0
0
0
0
0
0.00277
0.243979
955
45
67
21.222222
0.777008
0
0
0
0
0
0.150943
0.028302
0
0
0
0
0
1
0.088235
false
0.029412
0
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4051f0da6a3085bed81c035499b45d737816f30
12,482
py
Python
scripts/identify_taxonomic_trees.py
AtilioA/wikidata-evaluation-based-on-ontologies
b726cc40a80312e92e7aa42fc24f1eee21bc40be
[ "Unlicense" ]
2
2020-12-06T21:57:36.000Z
2020-12-11T16:07:00.000Z
scripts/identify_taxonomic_trees.py
AtilioA/wikidata-evaluation-based-on-ontologies
b726cc40a80312e92e7aa42fc24f1eee21bc40be
[ "Unlicense" ]
null
null
null
scripts/identify_taxonomic_trees.py
AtilioA/wikidata-evaluation-based-on-ontologies
b726cc40a80312e92e7aa42fc24f1eee21bc40be
[ "Unlicense" ]
null
null
null
import time import json import sys from pathlib import Path from pprint import pprint import wikidata_utils from graphviz import Digraph NL = "\n" def find_subclasses_between(subclass, superclass): # Query Stardog for subclasses subclassesJSON = wikidata_utils.query_subclasses_stardog(superclass, subclass)[...
37.371257
174
0.539337
1,098
12,482
6.068306
0.250455
0.012607
0.010506
0.016809
0.199009
0.153084
0.123668
0.123668
0.10866
0.070839
0
0.011031
0.375421
12,482
333
175
37.483483
0.843638
0.162875
0
0.284483
0
0.008621
0.194041
0.072177
0
0
0
0
0
1
0.017241
false
0.034483
0.030172
0
0.060345
0.077586
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4064fd610eae924f03892b2d599dd0687c7269d
913
py
Python
dist/weewx-4.0.0b5/bin/weewx/junk.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
10
2017-01-05T17:30:48.000Z
2021-09-18T15:04:20.000Z
dist/weewx-4.0.0b5/bin/weewx/junk.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
2
2019-07-21T10:48:42.000Z
2022-02-16T20:36:45.000Z
dist/weewx-4.0.0b5/bin/weewx/junk.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
12
2017-01-05T18:50:30.000Z
2021-10-05T07:35:45.000Z
import weewx class MyTypes(object): def get_value(self, obs_type, record, db_manager): if obs_type == 'dewpoint': if record['usUnits'] == weewx.US: return weewx.wxformulas.dewpointF(record.get('outTemp'), record.get('outHumidity')) elif record['usUnits'] == weewx....
32.607143
99
0.591457
97
913
5.443299
0.463918
0.079545
0.102273
0.083333
0.257576
0.257576
0
0
0
0
0
0
0.292443
913
28
100
32.607143
0.817337
0
0
0.25
0
0
0.11488
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d407929c4b0bf64d15071879c336b090bd7b4eb9
1,580
py
Python
vision_api_batch.py
swowko51/pfch_humanvsmachine_2019
ba5a4c0db804e62892a28c72ba2d2180c6e44282
[ "MIT" ]
null
null
null
vision_api_batch.py
swowko51/pfch_humanvsmachine_2019
ba5a4c0db804e62892a28c72ba2d2180c6e44282
[ "MIT" ]
null
null
null
vision_api_batch.py
swowko51/pfch_humanvsmachine_2019
ba5a4c0db804e62892a28c72ba2d2180c6e44282
[ "MIT" ]
null
null
null
import io import os import pandas as pd import re # Imports the Google Cloud client library from google.cloud import vision from google.cloud.vision import types # Set Google API authentication os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = "INSERT_FULL_KEY_FILE_PATH" # ---------------------------------------------...
28.727273
85
0.73038
215
1,580
5.302326
0.469767
0.028947
0.026316
0
0
0
0
0
0
0
0
0.002214
0.142405
1,580
54
86
29.259259
0.839114
0.393671
0
0
0
0
0.119403
0.083156
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d407d7b9d817bbd5e0d8ab001619f9db240a997f
1,556
py
Python
examples/ElasticsearchDomain.py
hmain/troposphere-fork
815ee739bcf3d024e1aef5caeca4e4d63e85e98e
[ "BSD-2-Clause" ]
null
null
null
examples/ElasticsearchDomain.py
hmain/troposphere-fork
815ee739bcf3d024e1aef5caeca4e4d63e85e98e
[ "BSD-2-Clause" ]
null
null
null
examples/ElasticsearchDomain.py
hmain/troposphere-fork
815ee739bcf3d024e1aef5caeca4e4d63e85e98e
[ "BSD-2-Clause" ]
null
null
null
# Converted from Elasticsearch Domain example located at: # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#d0e51519 from troposphere import Template, constants from troposphere.elasticsearch import Domain, EBSOptions from troposphere.elasticsearch import Elasticsea...
36.186047
111
0.633676
118
1,556
8.271186
0.584746
0.061475
0.086066
0.104508
0
0
0
0
0
0
0
0.020318
0.272494
1,556
42
112
37.047619
0.841873
0.105398
0
0
0
0
0.134726
0.04611
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d409f34383374dd7cd26218ce4cee29f4ca7b7c0
3,917
py
Python
footprint/models/audio.py
arthurtofani/footprint
572401d4cba3299ae9915fca2a7d08ea1a3a9bc4
[ "MIT" ]
null
null
null
footprint/models/audio.py
arthurtofani/footprint
572401d4cba3299ae9915fca2a7d08ea1a3a9bc4
[ "MIT" ]
null
null
null
footprint/models/audio.py
arthurtofani/footprint
572401d4cba3299ae9915fca2a7d08ea1a3a9bc4
[ "MIT" ]
null
null
null
from collections import defaultdict import librosa import os import numpy as np import h5py class Audio: filename = None project = None bucket = None tempo = None beats = None features = None tokens = None loaded_from_cache = False has_changed = False def __init__(self, filename, project): sel...
29.900763
76
0.693643
570
3,917
4.5
0.135088
0.054581
0.079532
0.037427
0.40117
0.316179
0.263938
0.115789
0.083821
0
0
0.002528
0.191984
3,917
130
77
30.130769
0.807899
0
0
0.165138
0
0
0.045698
0
0
0
0
0
0
1
0.183486
false
0
0.045872
0.027523
0.412844
0.045872
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d40a02528d58fe92a0117b78210b7cc191ea3776
2,634
py
Python
src/solr.py
ielm/CSCI6964
5ab46ea68d9a1bf6192a2f3cbae0acea0e3696c8
[ "MIT" ]
null
null
null
src/solr.py
ielm/CSCI6964
5ab46ea68d9a1bf6192a2f3cbae0acea0e3696c8
[ "MIT" ]
null
null
null
src/solr.py
ielm/CSCI6964
5ab46ea68d9a1bf6192a2f3cbae0acea0e3696c8
[ "MIT" ]
null
null
null
import json import os import urllib.request, urllib.parse from collections import OrderedDict from typing import List, Union, Dict class SOLR: """ Wrapper for the SOLR retrieval engine. """ def __init__( self, host: str = "localhost", port: int = 8983, cookie: dict = ...
27.154639
85
0.509112
296
2,634
4.415541
0.290541
0.06886
0.038256
0.057383
0
0
0
0
0
0
0
0.012063
0.370539
2,634
96
86
27.4375
0.776236
0.014427
0
0.054054
0
0
0.14186
0.022868
0
0
0
0
0
1
0.054054
false
0
0.067568
0
0.175676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d40bd0e8a76f18b193a91aefda5569f8c67d163b
3,773
py
Python
modules/slack.py
KTH/Jan-Ove
661acf5843b7b6dd459b0dddd64cffe27840e3c8
[ "MIT" ]
null
null
null
modules/slack.py
KTH/Jan-Ove
661acf5843b7b6dd459b0dddd64cffe27840e3c8
[ "MIT" ]
null
null
null
modules/slack.py
KTH/Jan-Ove
661acf5843b7b6dd459b0dddd64cffe27840e3c8
[ "MIT" ]
null
null
null
__author__ = 'tinglev@kth.se' import os import re import logging from slackclient import SlackClient def init(): #global CLIENT, BOT_ID log = logging.getLogger(__name__) client = SlackClient(os.environ.get('SLACK_BOT_TOKEN')) auth_test = client.api_call("auth.test") log.debug('Auth test response: ...
31.974576
82
0.655712
511
3,773
4.594912
0.213307
0.0477
0.072828
0.08816
0.286201
0.212095
0.197189
0.169506
0.132879
0.053663
0
0.002377
0.219454
3,773
117
83
32.247863
0.794907
0.017758
0
0.257426
0
0
0.171166
0
0
0
0
0
0
1
0.128713
false
0
0.039604
0.019802
0.316832
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d40cd5794c364cbfbd47cd7ffe66063081da15e8
952
py
Python
gitconfig_parser/parser.py
seanfisk/gitconfig-parser
f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8
[ "MIT" ]
null
null
null
gitconfig_parser/parser.py
seanfisk/gitconfig-parser
f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8
[ "MIT" ]
null
null
null
gitconfig_parser/parser.py
seanfisk/gitconfig-parser
f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8
[ "MIT" ]
2
2019-03-07T04:55:29.000Z
2019-03-28T00:59:55.000Z
""":mod:`gitconfig_parser.parser` -- Parser implementation """ from pyparsing import ( OneOrMore, restOfLine, Group, ZeroOrMore, CharsNotIn, Suppress, Word, alphanums, Literal, pythonStyleComment) def build_parser(): key = Word(alphanums).setResultsName('key') value = restOfLine.setParseAction( ...
35.259259
73
0.697479
91
952
7.153846
0.472527
0.032258
0
0
0
0
0
0
0
0
0
0.001259
0.165966
952
26
74
36.615385
0.81864
0.057773
0
0
0
0
0.041573
0
0
0
0
0
0
1
0.105263
false
0
0.052632
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
d40d751818208fbb5ac12dea45e5d857cfe9c460
1,641
py
Python
chroma-manager/tests/unit/chroma_api/test_command.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
chroma-manager/tests/unit/chroma_api/test_command.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
chroma-manager/tests/unit/chroma_api/test_command.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
from chroma_core.models import Command from chroma_core.models.host import ManagedHost from chroma_core.services.job_scheduler.job_scheduler_client import JobSchedulerClient import mock from tests.unit.chroma_api.chroma_api_test_case import ChromaApiTestCase class TestCommandResource(ChromaApiTestCase): def test...
42.076923
154
0.604509
184
1,641
5.201087
0.472826
0.041797
0.043887
0.041797
0.100313
0.100313
0.100313
0.100313
0
0
0
0.004325
0.295551
1,641
38
155
43.184211
0.823529
0.081048
0
0
0
0
0.149364
0.060951
0
0
0
0
0.066667
1
0.033333
false
0
0.2
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d40e05ca54d2f05415844295db6aa87aa4fcad8b
743
py
Python
tps/problems/forms/export.py
akmohtashami/tps-web
9dab3ffe97c21f658be30ce2f2711dd93e4ba60f
[ "MIT" ]
5
2019-02-26T06:10:43.000Z
2021-07-24T17:11:45.000Z
tps/problems/forms/export.py
akmohtashami/tps-web
9dab3ffe97c21f658be30ce2f2711dd93e4ba60f
[ "MIT" ]
3
2019-08-15T13:56:03.000Z
2021-06-10T18:43:16.000Z
tps/problems/forms/export.py
jonathanirvings/tps-web
46519347d4fc8bdced9b5bceb6cdee5ea4e508f2
[ "MIT" ]
2
2018-12-28T13:12:59.000Z
2020-12-25T18:42:13.000Z
from django import forms from problems.models import ExportPackage class ExportForm(forms.ModelForm): class Meta: model = ExportPackage fields = ('exporter', 'export_format',) def __init__(self, *args, **kwargs): self.problem = kwargs.pop('problem') self.revision = kwargs.pop...
30.958333
67
0.664872
83
743
5.746988
0.39759
0.163522
0.079665
0
0
0
0
0
0
0
0
0
0.224764
743
23
68
32.304348
0.828125
0
0
0
0
0
0.053836
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4112f52a0cbfaf422eb8c4063d5420c3f79065c
851
py
Python
presenterServer.py
eliahvo/presenter-app
9d5b90e15590316b1c769b94d1d88f62ea594f7e
[ "MIT" ]
null
null
null
presenterServer.py
eliahvo/presenter-app
9d5b90e15590316b1c769b94d1d88f62ea594f7e
[ "MIT" ]
null
null
null
presenterServer.py
eliahvo/presenter-app
9d5b90e15590316b1c769b94d1d88f62ea594f7e
[ "MIT" ]
null
null
null
import socket import sys from pynput.keyboard import Key, Controller import time TCP_IP = sys.argv[1] TCP_PORT = 5005 BUFFER_SIZE = 20 # Normally 1024, but we want fast response keyboard = Controller() s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((TCP_IP, TCP_PORT)) s.listen(1) print("Server: ", TC...
19.790698
60
0.690952
124
851
4.693548
0.532258
0.025773
0.054983
0
0
0
0
0
0
0
0
0.018519
0.175088
851
43
61
19.790698
0.806268
0.07168
0
0.060606
0
0
0.125794
0
0
0
0
0
0
1
0
false
0
0.121212
0
0.121212
0.151515
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4137fb795db6c1885430d3738fc61716e37a474
3,226
py
Python
newserver/server.py
packedbread/hack.moscow
d00aeabd5b46d1c95990e181cb08895e9a4e2ff7
[ "MIT" ]
null
null
null
newserver/server.py
packedbread/hack.moscow
d00aeabd5b46d1c95990e181cb08895e9a4e2ff7
[ "MIT" ]
2
2021-03-09T22:13:16.000Z
2021-05-10T18:42:36.000Z
newserver/server.py
packedbread/hack.moscow
d00aeabd5b46d1c95990e181cb08895e9a4e2ff7
[ "MIT" ]
null
null
null
from concurrent.futures import ProcessPoolExecutor from storage import ClientStorage from aiohttp import web, hdrs import aiofiles import tempfile import asyncio import logging import shutil import os MAX_FILE_SIZE = 20 * 1024 * 1024 PROCESS_POOL_SIZE = 8 STATIC_PATH = '../client/dist' TEMP_PATH = 'temp' logger = log...
27.810345
85
0.6646
404
3,226
5.180693
0.376238
0.0258
0.032489
0.032967
0.077879
0.053034
0
0
0
0
0
0.011399
0.211407
3,226
115
86
28.052174
0.811321
0.040918
0
0.023256
0
0
0.096889
0.009397
0
0
0
0
0
1
0
false
0
0.104651
0
0.151163
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d414c13a693261e067977fffbcfd18adb9931eb1
881
py
Python
src/adafruit-circuitpython-bundle-4.x-mpy-20190713/examples/miniesptool_esp32nina.py
mbaaba/solar_panel
42059d8c61320494ad1298065dbc50cd9b3bd51e
[ "MIT" ]
1
2020-04-13T16:10:53.000Z
2020-04-13T16:10:53.000Z
infra/libs-400rc2-20190512/examples/miniesptool_esp32nina.py
jadudm/feather-isa
b7419e6698c3f64be4d8122656eb8124631ca859
[ "MIT" ]
null
null
null
infra/libs-400rc2-20190512/examples/miniesptool_esp32nina.py
jadudm/feather-isa
b7419e6698c3f64be4d8122656eb8124631ca859
[ "MIT" ]
null
null
null
import time import board import busio from digitalio import DigitalInOut, Direction # pylint: disable=unused-import import adafruit_miniesptool print("ESP32 Nina-FW") uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=1) resetpin = DigitalInOut(board.D5) gpio0pin = DigitalInOut(board.D6) espt...
30.37931
81
0.708286
116
881
5.318966
0.612069
0.061588
0.048622
0
0
0
0
0
0
0
0
0.080111
0.178207
881
28
82
31.464286
0.772099
0.098751
0
0
0
0
0.158585
0.04194
0
0
0.003932
0
0
1
0
false
0
0.238095
0
0.238095
0.190476
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d418716dae9acd4334a9f34e0f2074dd64298ebb
451
py
Python
sqlalchemy/test_delete.py
WebSofter/lessnor
f5843a29f443126d30955a2fe4e7f3cadb216ad8
[ "MIT" ]
null
null
null
sqlalchemy/test_delete.py
WebSofter/lessnor
f5843a29f443126d30955a2fe4e7f3cadb216ad8
[ "MIT" ]
null
null
null
sqlalchemy/test_delete.py
WebSofter/lessnor
f5843a29f443126d30955a2fe4e7f3cadb216ad8
[ "MIT" ]
null
null
null
#Import our configuration functions from models import Film from config import get_session #Get instances for working with DB session = get_session() #***********************Working with db******************** #Update spcify row v1 film = session.query(Film).filter(Film.id == 3).one() session.delete(film) session.co...
25.055556
61
0.687361
63
451
4.809524
0.555556
0.066007
0.085809
0
0
0
0
0
0
0
0
0.014925
0.108647
451
18
62
25.055556
0.738806
0.365854
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d41946ca90fe6073895898eb60b2f62a025bcdcd
1,045
py
Python
kakakucom-scrape/recover.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
16
2018-02-06T14:43:41.000Z
2021-01-23T05:07:33.000Z
kakakucom-scrape/recover.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
null
null
null
kakakucom-scrape/recover.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
4
2018-01-16T13:50:43.000Z
2019-12-16T19:45:54.000Z
import glob import json import pickle import gzip import os import hashlib import re import bs4 import concurrent.futures names = set([name.split('/').pop() for name in glob.glob('hrefs/*')]) size = len(names) def _map(arg): urls = set() index, size, name = arg print(index, '/', size, name) try: h...
20.9
71
0.639234
159
1,045
4.157233
0.490566
0.040847
0.059002
0
0
0
0
0
0
0
0
0.005862
0.183732
1,045
49
72
21.326531
0.76905
0.010526
0
0.055556
0
0
0.066796
0
0
0
0
0
0
1
0.027778
false
0
0.25
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d41ba959656db47ebcf8cbb11038ffe513c678ca
7,339
py
Python
scrounger/core/session.py
NORD-Function/IOS-tools
dd393666aa1ba1117d1c472cfdef4d0b18216904
[ "BSD-3-Clause" ]
217
2018-08-23T12:00:45.000Z
2022-01-20T12:09:09.000Z
scrounger/core/session.py
Warlockk/scrounger
dd393666aa1ba1117d1c472cfdef4d0b18216904
[ "BSD-3-Clause" ]
18
2018-08-24T09:28:54.000Z
2020-05-19T04:49:54.000Z
scrounger/core/session.py
Warlockk/scrounger
dd393666aa1ba1117d1c472cfdef4d0b18216904
[ "BSD-3-Clause" ]
48
2018-08-23T12:51:45.000Z
2022-01-20T12:09:02.000Z
""" Module that holds all information of a session of scrounger """ # custom module imports from sys import path as _path # config imports from scrounger.utils.config import _SCROUNGER_HOME class Session(object): _name = "" _rows, _columns = 128, 80 options = {} global_options = ...
28.55642
80
0.571331
797
7,339
5.077792
0.188206
0.044477
0.033358
0.020756
0.241166
0.193971
0.193971
0.193971
0.157153
0.157153
0
0.002632
0.326884
7,339
256
81
28.667969
0.816599
0.180951
0
0.170068
0
0
0.067341
0
0
0
0
0.003906
0
1
0.081633
false
0
0.07483
0.006803
0.312925
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d41d1b57c833f3f45020982a1362ffc5bb62328a
8,703
py
Python
deepmath/treegen/cnf_model_test.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
830
2016-11-07T21:46:27.000Z
2022-03-23T08:01:03.000Z
deepmath/treegen/cnf_model_test.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
26
2016-11-07T22:06:31.000Z
2022-02-16T00:18:29.000Z
deepmath/treegen/cnf_model_test.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
168
2016-11-07T21:48:55.000Z
2022-03-19T02:47:14.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
42.871921
80
0.649087
1,005
8,703
5.316418
0.20597
0.041924
0.04941
0.061763
0.618566
0.615759
0.579075
0.537339
0.529478
0.467153
0
0.025963
0.167988
8,703
202
81
43.084158
0.711918
0.091693
0
0.5
0
0
0.153846
0.14762
0
0
0
0
0
1
0.177966
false
0
0.059322
0
0.262712
0.008475
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d41dac3657c44fb744404a9ec259d063e17765ee
3,905
py
Python
codes/utils.py
k1101jh/Alpha-Zero
f2a83f430f186ad0633e38baa31c2a042e1305b6
[ "Apache-2.0" ]
1
2021-11-12T13:36:47.000Z
2021-11-12T13:36:47.000Z
codes/utils.py
k1101jh/Alpha-Zero
f2a83f430f186ad0633e38baa31c2a042e1305b6
[ "Apache-2.0" ]
null
null
null
codes/utils.py
k1101jh/Alpha-Zero
f2a83f430f186ad0633e38baa31c2a042e1305b6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import io import importlib import math from typing import Dict, Iterable, List, Optional, Tuple from games.game_types import Move, Player from games.game_types import Point from games.game_types import game_name_dict from games.game_types import game_state_dict sys.stdout ...
29.583333
103
0.628169
556
3,905
4.235612
0.232014
0.061147
0.029724
0.036093
0.22845
0.164756
0.140977
0.121444
0.121444
0.121444
0
0.008317
0.230218
3,905
131
104
29.80916
0.773453
0.044558
0
0.206522
0
0
0.080898
0.056006
0
0
0
0
0
1
0.130435
false
0.021739
0.130435
0
0.336957
0.163043
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d41fccb7523d2734e1207ea00040f62a02a41e0c
1,545
py
Python
obdlib/uart.py
s-s-boika/obdlib
5b0b35276575a522d20858b6993a9bebf0acc968
[ "MIT" ]
9
2015-07-14T07:15:58.000Z
2021-06-03T01:42:19.000Z
obdlib/uart.py
s-s-boika/obdlib
5b0b35276575a522d20858b6993a9bebf0acc968
[ "MIT" ]
null
null
null
obdlib/uart.py
s-s-boika/obdlib
5b0b35276575a522d20858b6993a9bebf0acc968
[ "MIT" ]
4
2015-07-15T09:05:46.000Z
2022-02-06T04:28:53.000Z
DEFAULT_BAUDRATE = 38400 import sys if (hasattr(sys, 'implementation') and sys.implementation.name == 'micropython'): # if using pyBoard from pyb import UART as uart_base else: from serial import Serial as uart_base from obdlib.logging import logger class UART(object): def __init__(self)...
27.105263
77
0.55534
160
1,545
5.1875
0.36875
0.050602
0.050602
0.043373
0.06747
0.06747
0
0
0
0
0
0.004946
0.345631
1,545
56
78
27.589286
0.816024
0.022006
0
0.068182
0
0
0.06366
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d423ccff923c193b1018a53c447911773c46989d
1,352
py
Python
4-gen_diffs.py
lcmd-epfl/Local_Kernel_Regression
5be1b01fb347a8b8473ffe62a2f2d1fe2c1c4157
[ "MIT" ]
null
null
null
4-gen_diffs.py
lcmd-epfl/Local_Kernel_Regression
5be1b01fb347a8b8473ffe62a2f2d1fe2c1c4157
[ "MIT" ]
null
null
null
4-gen_diffs.py
lcmd-epfl/Local_Kernel_Regression
5be1b01fb347a8b8473ffe62a2f2d1fe2c1c4157
[ "MIT" ]
null
null
null
import numpy as np import time import sklearn as sk from sklearn import metrics import gc import sys import pickle init_t = time.time() at = sys.argv[1] ref_envs = np.load('./data/train_envs.npy', allow_pickle=True).item()[at] reps_dict = np.load('./data/red_reps_dict.npy', allow_pickle=True) at...
22.163934
79
0.623521
207
1,352
3.874396
0.338164
0.069825
0.037406
0.067332
0.225686
0.190773
0.190773
0.190773
0.190773
0.190773
0
0.011246
0.210799
1,352
60
80
22.533333
0.740394
0
0
0.157895
0
0
0.189349
0.109467
0
0
0
0
0
1
0
false
0
0.184211
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d426fe625d6ef6fff91e3cb4328137b87944afc4
6,540
py
Python
crypto.py
aivalja/Crypto-Scrooge
98fb08f3eb1008de66e02b30a70f6e772c095a48
[ "MIT" ]
null
null
null
crypto.py
aivalja/Crypto-Scrooge
98fb08f3eb1008de66e02b30a70f6e772c095a48
[ "MIT" ]
null
null
null
crypto.py
aivalja/Crypto-Scrooge
98fb08f3eb1008de66e02b30a70f6e772c095a48
[ "MIT" ]
null
null
null
from json import loads import argparse from urllib.request import urlopen from pprint import pprint from datetime import datetime def main(): parser = argparse.ArgumentParser() parser.add_argument("start_date", help="Start date in format DD.MM.YYYY", type=lambda s: datetime.strptime(s...
38.928571
92
0.647706
805
6,540
4.991304
0.201242
0.050772
0.023892
0.031857
0.260577
0.106023
0.106023
0.106023
0.050274
0.050274
0
0.019665
0.269113
6,540
167
93
39.161677
0.820921
0.136697
0
0.144
0
0
0.118595
0.044608
0
0
0
0
0
1
0.048
false
0
0.04
0
0.104
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4276c833da8da729c76c47b1baa7513e58dc63c
4,504
py
Python
main.py
pechhenka/itmo_parser_table
8cefcad00290539872759c6a4dc8050e03333a1f
[ "Unlicense" ]
null
null
null
main.py
pechhenka/itmo_parser_table
8cefcad00290539872759c6a4dc8050e03333a1f
[ "Unlicense" ]
null
null
null
main.py
pechhenka/itmo_parser_table
8cefcad00290539872759c6a4dc8050e03333a1f
[ "Unlicense" ]
null
null
null
import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) url = "https://abit.itmo.ru/bachelor/rating_rank/all/261/" required_name = 'Шараев Павел Ильдарович' def write_to_file(result): global required_name import xlsxwriter with xlsxwriter.Workbook('result.xlsx') as workbook: ...
30.026667
118
0.538854
577
4,504
4.071057
0.317158
0.006811
0.03874
0.045977
0.140485
0.049383
0.025543
0.025543
0.025543
0.025543
0
0.036634
0.327265
4,504
149
119
30.228188
0.737954
0.033082
0
0.165289
0
0
0.133425
0
0
0
0
0
0
1
0.049587
false
0
0.041322
0
0.123967
0.049587
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4284956c70586476c90480dd8b13432ac59b14e
3,503
py
Python
makeplotz.py
Munfred/scutils
9c6b6ce078c0b2aeb7a9f801933cf767197f4efd
[ "Unlicense" ]
null
null
null
makeplotz.py
Munfred/scutils
9c6b6ce078c0b2aeb7a9f801933cf767197f4efd
[ "Unlicense" ]
null
null
null
makeplotz.py
Munfred/scutils
9c6b6ce078c0b2aeb7a9f801933cf767197f4efd
[ "Unlicense" ]
null
null
null
### EXAMPLE JOB SUBMISISON ### # sbatch -A SternbergGroup --gres gpu --mem=64000 -t 15:00:00 --ntasks 10 --nodes 1 --job-name "bcbg" --wrap "python bcbg.py" ### FILENAME CHANGE BEFORE RUNNING ### model_name= 'blah' adata_file='../blah.h5ad' ###################################### import sys import warnings; warnings...
35.383838
126
0.633172
451
3,503
4.847007
0.37694
0.020128
0.034767
0.034767
0.417658
0.389296
0.389296
0.36871
0.36871
0.294602
0
0.015913
0.210677
3,503
98
127
35.744898
0.774684
0.10962
0
0.306667
0
0
0.09374
0.007866
0
0
0
0
0
1
0.04
false
0
0.28
0
0.373333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d42854dec66dab2bfdf36e91642dcd8421c577f7
1,244
py
Python
examples/injecting_existing_instance/injecting_existing_instance_example.py
allrod5/injectable
74e640f0911480fb06fa97c1a468c3863541c0fd
[ "MIT" ]
71
2018-02-05T04:12:27.000Z
2022-02-15T23:08:16.000Z
examples/injecting_existing_instance/injecting_existing_instance_example.py
Euraxluo/injectable
74e640f0911480fb06fa97c1a468c3863541c0fd
[ "MIT" ]
104
2018-02-06T23:37:36.000Z
2021-08-25T04:50:15.000Z
examples/injecting_existing_instance/injecting_existing_instance_example.py
Euraxluo/injectable
74e640f0911480fb06fa97c1a468c3863541c0fd
[ "MIT" ]
13
2019-02-10T18:52:50.000Z
2022-01-26T17:12:35.000Z
""" In this example you'll see how to supply an already-initialized instance as injectable. For whatever reason we have already initialized an instance of ``Application`` and assigned it to the ``app`` variable so we use the :meth:`injectable_factory <injectable.injectable_factory>` decorator in a lambda which in turn...
27.644444
88
0.734727
156
1,244
5.698718
0.49359
0.07649
0.038245
0.053993
0.134983
0.134983
0.134983
0.134983
0
0
0
0.00197
0.184084
1,244
44
89
28.272727
0.873892
0.55627
0
0
0
0
0.014733
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.388889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d42903bc52bf571f31d31df1a834976bfcbfa6a0
2,736
py
Python
fHDHR/device/tuners/__init__.py
crackers8199/fHDHR_Youtube-IHOPKC
e1878d972ffba96ff813690630e30e2de8b5f504
[ "WTFPL" ]
null
null
null
fHDHR/device/tuners/__init__.py
crackers8199/fHDHR_Youtube-IHOPKC
e1878d972ffba96ff813690630e30e2de8b5f504
[ "WTFPL" ]
null
null
null
fHDHR/device/tuners/__init__.py
crackers8199/fHDHR_Youtube-IHOPKC
e1878d972ffba96ff813690630e30e2de8b5f504
[ "WTFPL" ]
null
null
null
from fHDHR.exceptions import TunerError from .tuner import Tuner class Tuners(): def __init__(self, fhdhr, epg, channels): self.fhdhr = fhdhr self.channels = channels self.epg = epg self.max_tuners = int(self.fhdhr.config.dict["fhdhr"]["tuner_count"]) self.tuners = {} ...
31.448276
97
0.612208
325
2,736
4.963077
0.236923
0.080595
0.048357
0.049597
0.33478
0.218227
0.199628
0.121513
0.121513
0.121513
0
0.009068
0.274488
2,736
86
98
31.813953
0.803526
0.013158
0
0.2
0
0
0.110122
0
0
0
0
0
0
1
0.133333
false
0
0.033333
0
0.283333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d42f67e9e0f814fed2def88800445e02b82253cc
401
py
Python
ARC/arc001-arc050/arc040/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ARC/arc001-arc050/arc040/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ARC/arc001-arc050/arc040/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): n = int(input()) r_count = 0 b_count = 0 for i in range(n): si = input() r_count += si.count('R') b_count += si.count('B') if r_count > b_count: print('TAKAHASHI') elif r_count < b_count: print('AOKI'...
16.708333
33
0.456359
52
401
3.211538
0.480769
0.143713
0.131737
0.143713
0.203593
0
0
0
0
0
0
0.012195
0.386534
401
23
34
17.434783
0.666667
0.052369
0
0
0
0
0.076056
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.0625
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4305b27996382bcf34ae4f2d283d939605b8ef7
6,622
py
Python
labs/lab3/lab3b.py
MITLLRacecar/racecar-parth-kocheta
6e244575b83e312880c5540342a380364032d326
[ "MIT" ]
1
2021-08-01T17:06:39.000Z
2021-08-01T17:06:39.000Z
labs/lab3/lab3b.py
MITLLRacecar/racecar-parth-kocheta
6e244575b83e312880c5540342a380364032d326
[ "MIT" ]
null
null
null
labs/lab3/lab3b.py
MITLLRacecar/racecar-parth-kocheta
6e244575b83e312880c5540342a380364032d326
[ "MIT" ]
null
null
null
""" Copyright MIT and Harvey Mudd College MIT License Summer 2020 Lab 3B - Depth Camera Cone Parking """ ######################################################################################## # Imports ######################################################################################## import sys import cv2 as ...
31.235849
99
0.593174
855
6,622
4.438596
0.272515
0.047958
0.017391
0.017918
0.18498
0.140711
0.053228
0.053228
0.043215
0.025296
0
0.019727
0.22682
6,622
212
100
31.235849
0.721484
0.269858
0
0.17757
0
0
0.028408
0
0
0
0
0.009434
0
1
0.037383
false
0.009346
0.074766
0
0.149533
0.065421
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4318826121e4a0a63a9ff18a3888788c700b50d
19,272
py
Python
ska-tmc/ska-tmc-sdpsubarrayleafnode-mid/src/ska_tmc_sdpsubarrayleafnode_mid/sdp_subarray_leaf_node.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
3
2019-01-10T11:49:36.000Z
2019-07-19T03:32:52.000Z
ska-tmc/ska-tmc-sdpsubarrayleafnode-mid/src/ska_tmc_sdpsubarrayleafnode_mid/sdp_subarray_leaf_node.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
19
2019-01-07T14:50:26.000Z
2019-10-02T13:25:23.000Z
ska-tmc/ska-tmc-sdpsubarrayleafnode-mid/src/ska_tmc_sdpsubarrayleafnode_mid/sdp_subarray_leaf_node.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
1
2018-12-21T13:39:23.000Z
2018-12-21T13:39:23.000Z
# -*- coding: utf-8 -*- # # This file is part of the SdpSubarrayLeafNode project # # # # Distributed under the terms of the BSD-3-Clause license. # See LICENSE.txt for more info. """ SDP Subarray Leaf node is to monitor the SDP Subarray and issue control actions during an observation. It also acts as a SDP contact poi...
31.749588
120
0.643161
2,098
19,272
5.772164
0.14204
0.036499
0.028984
0.031214
0.5455
0.476713
0.427415
0.37341
0.333526
0.333526
0
0.000214
0.273557
19,272
606
121
31.80198
0.864786
0.385118
0
0.3083
0
0
0.148589
0.014773
0
0
0
0
0
1
0.134387
false
0
0.098814
0
0.320158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d431a229e5bc2ae5e5df2bc300491d02cd7bb9da
4,255
py
Python
src/app.py
qq20004604/qq-robot
f109a774666efcd0cf36ed4da0d79f53b32b1577
[ "Apache-2.0" ]
8
2019-05-20T03:30:27.000Z
2020-09-24T13:16:53.000Z
src/app.py
qq20004604/qq-robot
f109a774666efcd0cf36ed4da0d79f53b32b1577
[ "Apache-2.0" ]
null
null
null
src/app.py
qq20004604/qq-robot
f109a774666efcd0cf36ed4da0d79f53b32b1577
[ "Apache-2.0" ]
2
2020-09-24T13:16:56.000Z
2020-12-25T09:44:48.000Z
from aiocqhttp import CQHttp from datetime import datetime from sendmsg import SendMsg from loadData import LoadData import threading import time # windows本机运行本脚本与coolq的配置 # HOST = '127.0.0.1' # PORT = 7788 # 这个url是发送给docker容器里的coolq # 举例来说,假如docker命令有这样的 -p 3542:9000 -p 15700:5700 # 9000 是coolq暴露的页面访问地址(这里映射到了外面的35...
31.518519
135
0.647239
526
4,255
5.171103
0.448669
0.052574
0.066912
0.114706
0.118015
0.041544
0.029412
0
0
0
0
0.102394
0.185194
4,255
134
136
31.753731
0.682146
0.436428
0
0.032258
0
0.016129
0.141642
0.012012
0
0
0
0
0
1
0.032258
false
0.016129
0.096774
0
0.16129
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d43272fbb73b6c6b6b7fe45a8e85aee3304ff420
1,359
py
Python
src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
from inspect import signature from functools import wraps def typeassert(*ty_args, **ty_kwargs): def decorate(func): # If in optimized mode, disable type checking if not __debug__: return func # Map function argument names to supplied types sig = signature(func) ...
26.134615
84
0.557027
166
1,359
4.421687
0.415663
0.054496
0.021798
0.038147
0.065395
0.065395
0
0
0
0
0
0.012209
0.337013
1,359
51
85
26.647059
0.802442
0.108904
0
0.157895
0
0
0.041494
0
0
0
0
0
0.078947
1
0.131579
false
0
0.052632
0.026316
0.315789
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d433b3494ae66595b5f31b0ee2375f4a611bbe3e
2,230
py
Python
muk_web_theme/muk_dms_actions/tests/test_file.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
muk_web_theme/muk_dms_actions/tests/test_file.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
muk_web_theme/muk_dms_actions/tests/test_file.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
################################################################################### # # Copyright (C) 2017 MuK IT GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, eithe...
44.6
97
0.675336
293
2,230
4.959044
0.440273
0.028906
0.044047
0.055059
0.300069
0.233999
0.177564
0.130764
0.130764
0
0
0.010133
0.159193
2,230
50
98
44.6
0.7648
0.309865
0
0
0
0
0.105691
0.034738
0
0
0
0
0.166667
1
0.083333
false
0
0.291667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4343b5d871290ec2f4ca3f7e5cf287d0875613d
2,500
py
Python
populate.py
yueguoguo/shopify-flask-example
dc556aeac21bfcd9bbd5fdeece5cd4827e090055
[ "Apache-2.0" ]
null
null
null
populate.py
yueguoguo/shopify-flask-example
dc556aeac21bfcd9bbd5fdeece5cd4827e090055
[ "Apache-2.0" ]
null
null
null
populate.py
yueguoguo/shopify-flask-example
dc556aeac21bfcd9bbd5fdeece5cd4827e090055
[ "Apache-2.0" ]
null
null
null
# Mock method to populate data to a Shopify store # This is used only for development purpose import io import requests import random from typing import List from time import sleep import shopify from faker import Faker ACCESS_TOKEN = "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" # Temporary use only API_VERSION = "2020...
23.809524
92
0.7288
333
2,500
5.276276
0.303303
0.051224
0.047809
0.029027
0.06033
0.06033
0
0
0
0
0
0.019212
0.1672
2,500
104
93
24.038462
0.824688
0.2212
0
0.03125
0
0
0.074619
0.032487
0
0
0
0
0
1
0.09375
false
0
0.109375
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d43594d2c1b672c278943517c110acaf9fee2089
1,067
py
Python
examples/VNH5019_example.py
being24/VNH5019
1030050d363991e43f63befbb052c423c3470156
[ "MIT" ]
null
null
null
examples/VNH5019_example.py
being24/VNH5019
1030050d363991e43f63befbb052c423c3470156
[ "MIT" ]
null
null
null
examples/VNH5019_example.py
being24/VNH5019
1030050d363991e43f63befbb052c423c3470156
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- coding: utf-8 -*- import time from logging import DEBUG, ERROR, FATAL, INFO, WARN import pigpio from VNH5019_driver import VNH5019 as MOTOR if __name__ == "__main__": count = 0.0 one_count = 360 * 4 / (64 * 50) pi = pigpio.pi() motor0 = MOTOR( pi, dri...
20.921569
63
0.626992
142
1,067
4.429577
0.507042
0.044515
0.076312
0.054054
0.200318
0.133545
0.133545
0.133545
0.133545
0
0
0.103316
0.26523
1,067
50
64
21.34
0.69898
0.137769
0
0.181818
0
0
0.009847
0
0
0
0
0
0
1
0
false
0
0.121212
0
0.121212
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d43f4c8e8daff28f9449dbacb0f541d11f998d5f
326
py
Python
stockUpdater/update.py
SamrathPalSingh/stockmarketwebsite
ea91647e25066c1a5c7f48015dccd19117428e9b
[ "MIT" ]
null
null
null
stockUpdater/update.py
SamrathPalSingh/stockmarketwebsite
ea91647e25066c1a5c7f48015dccd19117428e9b
[ "MIT" ]
9
2020-05-05T18:43:29.000Z
2021-09-22T18:58:59.000Z
stockUpdater/update.py
SamrathPalSingh/stockmarketwebsite
ea91647e25066c1a5c7f48015dccd19117428e9b
[ "MIT" ]
null
null
null
from .stock_prediction_logic.analyse import start_analysis from home.models import stock def updateStocks(): # start_analysis() obj = stock.objects.get(stockSymbol = "AAPL") obj.macd_trend = 'be' obj.rank = int(4) import datetime now = datetime.datetime.now() obj.volume = str(now) obj.s...
25.076923
58
0.687117
43
326
5.093023
0.651163
0.118721
0
0
0
0
0
0
0
0
0
0.003831
0.199387
326
12
59
27.166667
0.835249
0.04908
0
0
0
0
0.019481
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d43fb21fc63432d8db4d6094061fd258a4b6f29b
790
py
Python
train.py
jindal2309/conv-ai-model
2238780bdc01965a97726edaeb834cda7ed73867
[ "MIT" ]
null
null
null
train.py
jindal2309/conv-ai-model
2238780bdc01965a97726edaeb834cda7ed73867
[ "MIT" ]
null
null
null
train.py
jindal2309/conv-ai-model
2238780bdc01965a97726edaeb834cda7ed73867
[ "MIT" ]
null
null
null
from torch.utils.data.dataloader import DataLoader from dataloader import ConvAIDataset from utils import combine_contexts from vocab.text import BPEVocab max_seq_len = 512 train_data = 'data/train_self_revised_no_cands.txt' bpe_vocab_path = 'vocab/bpe.vocab' bpe_codes_path = 'vocab/bpe.code' params = {'batch_size': ...
30.384615
94
0.702532
103
790
5.048544
0.495146
0.061538
0.051923
0
0
0
0
0
0
0
0
0.011111
0.202532
790
25
95
31.6
0.814286
0
0
0
0
0
0.140506
0.04557
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d440b9f21f95bdb0021bcda32bda78128d97dda1
1,415
py
Python
leetcode/binary_tree_level _order_traversal_leetcode_102/binary_tree_level _order_traversal.py
Williano/Interview-Prep
0ad688637215080c7e4d26c640d74c89227e7cfb
[ "MIT" ]
null
null
null
leetcode/binary_tree_level _order_traversal_leetcode_102/binary_tree_level _order_traversal.py
Williano/Interview-Prep
0ad688637215080c7e4d26c640d74c89227e7cfb
[ "MIT" ]
null
null
null
leetcode/binary_tree_level _order_traversal_leetcode_102/binary_tree_level _order_traversal.py
Williano/Interview-Prep
0ad688637215080c7e4d26c640d74c89227e7cfb
[ "MIT" ]
null
null
null
""" Leetcode No: 102 Title: Binary Tree Level Order Traversal Description: Given the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by level). Example 1: Input: root = [3,9,20,null,null,15,7] Output: [[3],[9,20],[15,7]] ...
21.769231
76
0.579505
176
1,415
4.494318
0.375
0.079646
0.120101
0.055626
0.06574
0
0
0
0
0
0
0.024084
0.325088
1,415
64
77
22.109375
0.804188
0.259364
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4430fca441867f9bd80ffce1daeda8281c206ea
5,785
py
Python
Validation/Performance/test/ThreadTest.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
Validation/Performance/test/ThreadTest.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
7
2016-07-17T02:34:54.000Z
2019-08-13T07:58:37.000Z
Validation/Performance/test/ThreadTest.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
#!/usr/bin/env python #A script to test threading concepts/implementations from __future__ import print_function import threading,time,sys #The following used from past bad experience with multithreading in Python def _cleanup(): pass #Define the "thread" class, of which each thread is a instance class TestThread(...
39.353741
185
0.621262
758
5,785
4.705805
0.313984
0.005607
0.015419
0.012616
0.053546
0.035324
0.021306
0.021306
0.021306
0
0
0.006708
0.278479
5,785
146
186
39.623288
0.847868
0.307692
0
0.21
0
0.01
0.197883
0.005546
0
0
0
0.006849
0
1
0.14
false
0.04
0.02
0.02
0.24
0.28
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d44510e870ea216676fc2c3138e5db6f9bb2ae40
3,301
py
Python
gui/plot.py
kklmn/ParSeq
46178c21c3ee39b84bbf3d80bcd9f93128ace9e2
[ "MIT" ]
3
2018-11-19T07:14:25.000Z
2020-07-28T17:20:14.000Z
gui/plot.py
kklmn/ParSeq
46178c21c3ee39b84bbf3d80bcd9f93128ace9e2
[ "MIT" ]
null
null
null
gui/plot.py
kklmn/ParSeq
46178c21c3ee39b84bbf3d80bcd9f93128ace9e2
[ "MIT" ]
2
2019-03-25T09:36:11.000Z
2021-12-19T07:52:38.000Z
# -*- coding: utf-8 -*- __author__ = "Konstantin Klementiev" __date__ = "16 Feb 2019" # !!! SEE CODERULES.TXT !!! import os from silx.gui import qt from silx.gui import plot as splot from ..core import singletons as csi class Plot1D(splot.PlotWindow): def __init__(self, parent=None, backend=None, position=True)...
37.511364
77
0.565586
364
3,301
5.016484
0.395604
0.017525
0.048193
0.061336
0.191676
0.075575
0.075575
0.044907
0
0
0
0.018775
0.322327
3,301
87
78
37.942529
0.797497
0.097849
0
0
0
0
0.068211
0
0
0
0
0
0
1
0.085714
false
0.014286
0.057143
0
0.257143
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d44834c9eaa5437119fdcf7514ce64d66090c5cb
576
py
Python
src/test_app.py
perylemke/immutable_infra
9e7ce2fec2ace5d2efdb598883483142b02ceac0
[ "Apache-2.0" ]
10
2019-05-06T20:48:48.000Z
2020-10-30T21:30:23.000Z
src/test_app.py
perylemke/immutable_infra
9e7ce2fec2ace5d2efdb598883483142b02ceac0
[ "Apache-2.0" ]
null
null
null
src/test_app.py
perylemke/immutable_infra
9e7ce2fec2ace5d2efdb598883483142b02ceac0
[ "Apache-2.0" ]
null
null
null
from app import app import json import socket import os.path # The first and the second test validate json structure def test_get_status_code(): app.config["TESTING"] = True with app.test_client() as client: response = client.get("/request") assert response.status_code == 200 def test_get_sta...
27.428571
56
0.661458
74
576
5.027027
0.472973
0.048387
0.053763
0.086022
0.33871
0.33871
0.33871
0.33871
0.33871
0.33871
0
0.006803
0.234375
576
21
57
27.428571
0.836735
0.092014
0
0.352941
0
0
0.130268
0
0
0
0
0
0.117647
1
0.117647
false
0
0.235294
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d44a00f74c482c7832f425339e2417ab5c29c7e3
35,663
py
Python
lingvodoc/scripts/docx_import.py
SegFaulti4/lingvodoc
8b296b43453a46b814d3cd381f94382ebcb9c6a6
[ "Apache-2.0" ]
null
null
null
lingvodoc/scripts/docx_import.py
SegFaulti4/lingvodoc
8b296b43453a46b814d3cd381f94382ebcb9c6a6
[ "Apache-2.0" ]
1
2021-07-26T09:52:46.000Z
2021-07-26T09:52:46.000Z
lingvodoc/scripts/docx_import.py
Winking-maniac/lingvodoc
f037bf0e91ccdf020469037220a43e63849aa24a
[ "Apache-2.0" ]
null
null
null
# Standard library imports. import ast import getopt import logging import pprint import re import sys # External imports. import docx import pympi import pyramid.paster as paster # Project imports. from lingvodoc.models import ( DBSession, Dictionary, ) # Setting up logging, if we are not being run as ...
28.462091
108
0.535653
4,157
35,663
4.306952
0.109213
0.021448
0.010947
0.009439
0.405384
0.325011
0.276977
0.247822
0.223916
0.204368
0
0.016202
0.364832
35,663
1,252
109
28.484824
0.774192
0.120966
0
0.350282
0
0
0.071132
0.021468
0
0
0
0
0
1
0.014124
false
0
0.018362
0
0.045198
0.009887
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d44da7d127e1ce8cb7767fe40398dec1469b4993
4,509
py
Python
mindhome_alpha/erpnext/demo/user/stock.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/demo/user/stock.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/demo/user/stock.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import print_function, unicode_literals import frappe, random, erpnext from frappe.desk import query_report from erpnext.stock.stock_ledger import NegativeStockError from erpn...
34.684615
113
0.745842
600
4,509
5.42
0.258333
0.0369
0.03444
0.032288
0.261685
0.220172
0.160517
0.143911
0.129766
0.098401
0
0.009042
0.141495
4,509
129
114
34.953488
0.831051
0.055223
0
0.327103
0
0
0.07289
0.005408
0
0
0
0
0
1
0.065421
false
0.009346
0.11215
0
0.17757
0.018692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d45013e19ee94ead3bc3ab1cecb032b98f2fafda
720
py
Python
posts/templatetags/paginator.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
496
2020-04-24T04:20:32.000Z
2022-03-31T21:55:57.000Z
posts/templatetags/paginator.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
642
2020-04-24T11:54:13.000Z
2022-03-26T15:41:06.000Z
posts/templatetags/paginator.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
243
2020-04-24T11:49:11.000Z
2022-03-24T18:38:48.000Z
from django import template register = template.Library() @register.inclusion_tag("common/paginator.html") def paginator(items): adjacent_pages = 4 num_pages = items.paginator.num_pages page = items.number start_page = max(page - adjacent_pages, 1) if start_page <= 3: start_page = 1 ...
24
81
0.643056
101
720
4.316832
0.356436
0.146789
0.077982
0.082569
0.165138
0
0
0
0
0
0
0.016886
0.259722
720
29
82
24.827586
0.801126
0
0
0
0
0
0.091667
0.029167
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4504bcd464e9711733f6e23b9e032a1b7ce8a80
18,784
py
Python
svb/prior.py
physimals/svb
9c04309ef1fc1d5f81103a50a01e3bf4c8f4ea44
[ "Apache-2.0" ]
3
2022-01-08T12:50:25.000Z
2022-03-22T00:55:17.000Z
svb/prior.py
physimals/svb
9c04309ef1fc1d5f81103a50a01e3bf4c8f4ea44
[ "Apache-2.0" ]
1
2020-10-16T15:27:46.000Z
2020-10-16T15:59:48.000Z
svb/prior.py
physimals/svb
9c04309ef1fc1d5f81103a50a01e3bf4c8f4ea44
[ "Apache-2.0" ]
null
null
null
""" Definition of prior distribution """ import numpy as np try: import tensorflow.compat.v1 as tf except ImportError: import tensorflow as tf from .utils import LogBase from .dist import Normal PRIOR_TYPE_NONSPATIAL = "N" PRIOR_TYPE_SPATIAL_MRF = "M" def get_prior(param, data_model, **kwargs): """ ...
44.511848
156
0.638948
2,772
18,784
4.196248
0.129509
0.021664
0.02708
0.015131
0.64314
0.606517
0.585712
0.558803
0.526479
0.51023
0
0.013514
0.243665
18,784
421
157
44.617577
0.805237
0.332624
0
0.425743
0
0
0.059125
0.001764
0
0
0
0.002375
0
1
0.123762
false
0
0.029703
0.029703
0.252475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d451e78026744df79562580a63a5aa68b269af10
1,123
py
Python
setup.py
open-contracting/extensions-data-collector
041f7b44de60b3d241e4891da1bb1c1cb8ce9ec4
[ "BSD-3-Clause" ]
null
null
null
setup.py
open-contracting/extensions-data-collector
041f7b44de60b3d241e4891da1bb1c1cb8ce9ec4
[ "BSD-3-Clause" ]
23
2018-06-29T15:34:41.000Z
2018-11-03T13:29:49.000Z
setup.py
open-contracting/extensions-data-collector
041f7b44de60b3d241e4891da1bb1c1cb8ce9ec4
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsextensionsdatacollector', version='0.0.1', author='Open Contracting Partnership, Open Data Services', author_email='data@open-contracting.org', url='https://github.com/open-co...
27.390244
90
0.601959
110
1,123
6.018182
0.645455
0.067976
0
0
0
0
0
0
0
0
0
0.016867
0.260908
1,123
40
91
28.075
0.780723
0
0
0.105263
0
0
0.458593
0.135352
0
0
0
0
0
1
0
false
0
0.026316
0
0.026316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4531e43111597e9d512203074171f5484832a7b
423
py
Python
server_side_python/DetectionAndTracking.py
Tpierga/2I_ProjetDetectionIA
39ba28a1d98bf7f0e908ee6cab933b219cc98977
[ "MIT" ]
null
null
null
server_side_python/DetectionAndTracking.py
Tpierga/2I_ProjetDetectionIA
39ba28a1d98bf7f0e908ee6cab933b219cc98977
[ "MIT" ]
null
null
null
server_side_python/DetectionAndTracking.py
Tpierga/2I_ProjetDetectionIA
39ba28a1d98bf7f0e908ee6cab933b219cc98977
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import cv2 def detect_body(frame): body_img = frame.copy() body_classifier = cv2.CascadeClassifier("haarcascade_fullbody.xml") gray = cv2.cvtColor(body_img, cv2.COLOR_BGR2GRAY) bodies = body_classifier.detectMultiScale(gray) for (x, y, w, h) i...
18.391304
71
0.678487
63
423
4.412698
0.571429
0.100719
0
0
0
0
0
0
0
0
0
0.035608
0.20331
423
22
72
19.227273
0.789318
0
0
0
0
0
0.057279
0.057279
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d453fbe6cb754cbcc0bc6074f266abb4c1ebf8ac
1,333
py
Python
packages/infra_libs/infra_libs/_command_line_linux.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
packages/infra_libs/infra_libs/_command_line_linux.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
packages/infra_libs/infra_libs/_command_line_linux.py
NDevTK/chromium-infra
d38e088e158d81f7f2065a38aa1ea1894f735ec4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import ctypes import ctypes.util import sys _CACHED_CMDLINE_LENGTH = None def set_command_line(cmdline): """Replaces the commandline of this process as...
34.179487
78
0.740435
207
1,333
4.584541
0.47343
0.109589
0.160169
0.037935
0.061117
0.061117
0.061117
0
0
0
0
0.008145
0.171043
1,333
38
79
35.078947
0.850679
0.40135
0
0
0
0
0.006386
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4563d756cea51df08af818dd4f5a3f61d84a870
231
py
Python
4.py
CarineGhisiCadorin/infosatc-lp-avaliativo-02
0018df4f52c0659611c484c909ff4bbf925c450a
[ "MIT" ]
null
null
null
4.py
CarineGhisiCadorin/infosatc-lp-avaliativo-02
0018df4f52c0659611c484c909ff4bbf925c450a
[ "MIT" ]
null
null
null
4.py
CarineGhisiCadorin/infosatc-lp-avaliativo-02
0018df4f52c0659611c484c909ff4bbf925c450a
[ "MIT" ]
null
null
null
lista = [1,2,3,4,5,6,7,8,9,10] print(lista) lista2 = [11, 12, 13] print(lista2) lista_completa = lista + lista2 print(lista_completa) #Ou listaA = [1,2,3,4,5,6,7,8,9,10] listaB = [11, 12, 13] listaA = listaB.copy() print(listaA)
17.769231
31
0.65368
47
231
3.170213
0.446809
0.026846
0.040268
0.053691
0.147651
0.147651
0.147651
0.147651
0.147651
0.147651
0
0.185
0.134199
231
12
32
19.25
0.56
0.008658
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d457da1f72c081a9943cc4f083598a70a7403071
14,240
py
Python
soundsig/discriminate.py
theunissenlab/sounsig
fca413aa71ce6fec079c59e615e328e6781d1d35
[ "MIT" ]
22
2017-08-05T12:41:49.000Z
2022-01-24T23:14:59.000Z
soundsig/discriminate.py
theunissenlab/sounsig
fca413aa71ce6fec079c59e615e328e6781d1d35
[ "MIT" ]
3
2017-07-06T19:23:54.000Z
2020-10-13T10:41:27.000Z
soundsig/discriminate.py
theunissenlab/sounsig
fca413aa71ce6fec079c59e615e328e6781d1d35
[ "MIT" ]
6
2017-05-13T18:41:23.000Z
2022-01-24T23:15:01.000Z
import numpy as np import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis as QDA from sklearn.ensemble import RandomForestClassifier as RF from sklearn.mode...
41.037464
134
0.589466
1,840
14,240
4.526087
0.226087
0.003602
0.024496
0.002882
0.330451
0.311359
0.29671
0.283381
0.258646
0.224183
0
0.022441
0.286517
14,240
346
135
41.156069
0.797244
0.202528
0
0.291304
0
0
0.05529
0
0
0
0
0
0
1
0.004348
false
0
0.034783
0
0.047826
0.056522
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d457ff551e1af72008fb3c2b85fdd39fc33404b0
4,477
py
Python
backend_receitas/core/views.py
gugact/backend_web
32b72ec460c1b6bae63bfd391c87b0c4bf644821
[ "Apache-2.0" ]
null
null
null
backend_receitas/core/views.py
gugact/backend_web
32b72ec460c1b6bae63bfd391c87b0c4bf644821
[ "Apache-2.0" ]
null
null
null
backend_receitas/core/views.py
gugact/backend_web
32b72ec460c1b6bae63bfd391c87b0c4bf644821
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from rest_framework import viewsets from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from django.http import * from django.contrib.auth import * fro...
33.162963
101
0.682153
465
4,477
6.473118
0.270968
0.040199
0.063787
0.097674
0.36711
0.278405
0.232226
0.213621
0.192027
0.192027
0
0.008391
0.228055
4,477
134
102
33.410448
0.862558
0.101854
0
0.333333
0
0
0.03093
0
0
0
0
0
0
1
0.107527
false
0.043011
0.150538
0
0.483871
0.053763
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d459cbe1a695f12684fad0e549571c60487537ba
736
py
Python
src/predict.py
tarasowski/starbucks-offer-engine
51b80e5b390b58427d842964867a5db2aed6dda6
[ "MIT" ]
1
2020-02-19T06:59:30.000Z
2020-02-19T06:59:30.000Z
src/predict.py
tarasowski/starbucks-offer-engine
51b80e5b390b58427d842964867a5db2aed6dda6
[ "MIT" ]
null
null
null
src/predict.py
tarasowski/starbucks-offer-engine
51b80e5b390b58427d842964867a5db2aed6dda6
[ "MIT" ]
null
null
null
import joblib from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score def predict(data): clf, X_test, y_test = data y_pred = clf.predict(X_test) print(f'Accuracy: {round(accuracy_score(y_test, y_pred) * 100, 2)}%') print(f'F1 Score: {round(f1_score(y_test, y_pred) * 100, 2)...
35.047619
83
0.677989
117
736
3.974359
0.282051
0.086022
0.086022
0.094624
0.202151
0.202151
0.202151
0.16129
0.16129
0
0
0.030547
0.154891
736
20
84
36.8
0.717042
0
0
0
0
0
0.41712
0.148098
0
0
0
0
0
1
0.125
false
0
0.125
0.0625
0.3125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d45bb49795fcb2f093014163608b945bdcaafd58
3,238
py
Python
examples/optimize_polyfaces.py
hh-wu/ezdxf
62509ba39b826ee9b36f19c0a5abad7f3518186a
[ "MIT" ]
1
2021-06-05T09:15:15.000Z
2021-06-05T09:15:15.000Z
examples/optimize_polyfaces.py
luoyu-123/ezdxf
40963a2010028f87846241e08434f43ab421f3fb
[ "MIT" ]
null
null
null
examples/optimize_polyfaces.py
luoyu-123/ezdxf
40963a2010028f87846241e08434f43ab421f3fb
[ "MIT" ]
null
null
null
# Purpose: open example files with big polyface models # Created: 23.04.2014 # Copyright (c) 2014-2020, Manfred Moitzi # License: MIT License import time from pathlib import Path import ezdxf from ezdxf.render import MeshVertexMerger SRCDIR = Path(r'D:\Source\dxftest\CADKitSamples') OUTDIR = Path('~/Desktop/Outbox')....
32.38
94
0.661519
424
3,238
4.891509
0.252358
0.092575
0.069431
0.04918
0.51109
0.493732
0.492285
0.492285
0.441659
0.391514
0
0.016484
0.213095
3,238
100
95
32.38
0.797488
0.048178
0
0.4875
0
0
0.270393
0.010075
0
0
0
0
0
1
0.0375
false
0
0.05
0
0.0875
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d45c7405d2149d4710720762085175c95dab0d57
1,576
py
Python
glashammer/bundles/contrib/dev/firephp.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
1
2016-07-04T15:23:59.000Z
2016-07-04T15:23:59.000Z
glashammer/bundles/contrib/dev/firephp.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
null
null
null
glashammer/bundles/contrib/dev/firephp.py
passy/glashammer-rdrei
9e56952d70b961d8945707469aad9cfe97c4e7b7
[ "MIT" ]
null
null
null
# adapted from http://code.cmlenz.net/diva/browser/trunk/diva/ext/firephp.py # (c) 2008 C. M. Lenz, Glashammer Developers from time import time from logging import Handler from simplejson import dumps from glashammer.utils import local from glashammer.utils.log import add_log_handler LEVEL_MAP = {'DEBUG': 'LOG', ...
29.735849
85
0.64467
191
1,576
5.157068
0.486911
0.091371
0.106599
0
0
0
0
0
0
0
0
0.04789
0.218274
1,576
52
86
30.307692
0.751623
0.126269
0
0
0
0
0.14515
0.03574
0
0
0
0
0
1
0.114286
false
0.028571
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d45e087825bbd78e5f7c80d653a07a247d6d0607
5,667
py
Python
neural machine translation/data_load.py
quanganh1997polytechnique/Project-DL-Seq2Seq
de7b118ec865af60ee44c5a463f59ac548e76794
[ "MIT" ]
null
null
null
neural machine translation/data_load.py
quanganh1997polytechnique/Project-DL-Seq2Seq
de7b118ec865af60ee44c5a463f59ac548e76794
[ "MIT" ]
null
null
null
neural machine translation/data_load.py
quanganh1997polytechnique/Project-DL-Seq2Seq
de7b118ec865af60ee44c5a463f59ac548e76794
[ "MIT" ]
null
null
null
""" ** deeplean-ai.com ** created by :: GauravBh1010tt contact :: gauravbhatt.deeplearn@gmail.com """ from __future__ import unicode_literals, print_function, division import math import re import os import numpy as np import torch import random import warnings from io import open import unicodedata import matplotlib...
26.85782
77
0.640551
767
5,667
4.6206
0.273794
0.030474
0.021163
0.026806
0.228273
0.172122
0.106095
0.106095
0.080135
0.080135
0
0.018889
0.224634
5,667
211
78
26.85782
0.787665
0.072878
0
0.164474
0
0
0.062607
0
0
0
0
0
0
1
0.131579
false
0
0.092105
0.026316
0.335526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d45fdaebbda1324d20d94461daceb3de9d2ddda0
9,041
py
Python
tests/channels/mock.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
415
2016-06-10T00:46:55.000Z
2021-10-16T00:56:06.000Z
tests/channels/mock.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
25
2016-06-11T13:48:59.000Z
2021-01-05T11:19:30.000Z
tests/channels/mock.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
109
2016-06-11T05:17:05.000Z
2021-12-22T11:02:22.000Z
import codecs import two1.bitcoin as bitcoin import two1.bitcoin.utils as utils import two1.channels.server as server import two1.channels.blockchain as blockchain import two1.channels.statemachine as statemachine class MockTwo1Wallet: """Mock Two1 Wallet interface for unit testing. See two1.wallet.Two1Wallet fo...
41.856481
181
0.685433
1,049
9,041
5.676835
0.180172
0.046851
0.038287
0.046348
0.306465
0.237615
0.15382
0.092024
0.064148
0.064148
0
0.02523
0.219666
9,041
215
182
42.051163
0.818852
0.143347
0
0.079646
0
0
0.148462
0.025451
0
0
0.001723
0
0.132743
1
0.150442
false
0
0.053097
0.044248
0.442478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d46043e7e3ee4e0fd2cb4b7196675dd558bf6307
2,256
py
Python
dev/Gems/CloudGemMetric/v1/AWS/common-code/LoadTest/LoadTest__CloudGemMetric.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Gems/CloudGemMetric/v1/AWS/common-code/LoadTest/LoadTest__CloudGemMetric.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
null
null
null
dev/Gems/CloudGemMetric/v1/AWS/common-code/LoadTest/LoadTest__CloudGemMetric.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or the ...
35.809524
143
0.734486
289
2,256
5.49827
0.422145
0.044053
0.026432
0.020768
0.118943
0.086847
0.086847
0.086847
0.086847
0.086847
0
0.000544
0.18484
2,256
62
144
36.387097
0.863513
0.313387
0
0.068966
0
0
0.162516
0.067497
0
0
0
0
0
1
0.172414
false
0
0.137931
0
0.448276
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
d463a1c535606eac893445765a893c90912ac9f7
756
py
Python
python/django-app/config/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
python/django-app/config/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
23
2020-08-15T15:18:32.000Z
2022-02-26T13:49:05.000Z
python/django-app/config/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import (static, ) urlpatterns = [ path('admin/', admin.site.urls), path('api-auth/', include('rest_framework.urls', namespace="rest_framework")), path('api/v1/', include('su...
34.363636
82
0.702381
92
756
5.652174
0.347826
0.076923
0.053846
0.061538
0
0
0
0
0
0
0
0.003072
0.138889
756
22
83
34.363636
0.795699
0
0
0.111111
0
0
0.174373
0
0
0
0
0
0
1
0
false
0
0.277778
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d463c99b03f786a3e4037e0d14d949c40fda1d7c
1,492
py
Python
config.py
proteus1991/RawVSR
56686859498a07c83fde191fa1fc109d7aafb3da
[ "MIT" ]
24
2021-01-05T02:34:09.000Z
2022-03-15T12:26:21.000Z
config.py
baowenbo/RawVSR
56686859498a07c83fde191fa1fc109d7aafb3da
[ "MIT" ]
3
2021-01-11T17:43:58.000Z
2021-02-04T19:59:36.000Z
config.py
baowenbo/RawVSR
56686859498a07c83fde191fa1fc109d7aafb3da
[ "MIT" ]
4
2021-01-25T08:45:04.000Z
2021-12-22T09:14:35.000Z
""" paper: Exploit Camera Raw Data for Video Super-Resolution via Hidden Markov Model Inference file: config.py author: Xiaohong Liu date: 17/09/19 """ def get_config(args): scale = args.scale_ratio save_tag = args.save_image if scale not in [2, 4]: raise Exception('scale {} is not supported!'.fo...
31.083333
91
0.432306
150
1,492
4.08
0.526667
0.053922
0.055556
0.058824
0.248366
0.248366
0.088235
0.088235
0
0
0
0.060642
0.436327
1,492
47
92
31.744681
0.667063
0.095845
0
0.121212
0
0
0.273676
0.089485
0
0
0
0
0
1
0.030303
false
0
0
0
0.060606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4672e7716b611a83d36c41530dceaaadca832b5
4,018
py
Python
src/datasets/emnist.py
bjfranks/Classification-AD
4eecd6648bb6b54662944921924c8960c2ca236c
[ "MIT" ]
27
2020-05-30T16:27:31.000Z
2022-03-28T16:45:25.000Z
src/datasets/emnist.py
bjfranks/Classification-AD
4eecd6648bb6b54662944921924c8960c2ca236c
[ "MIT" ]
3
2021-04-22T10:01:55.000Z
2022-01-13T02:50:31.000Z
src/datasets/emnist.py
bjfranks/Classification-AD
4eecd6648bb6b54662944921924c8960c2ca236c
[ "MIT" ]
7
2020-06-15T16:31:23.000Z
2022-03-23T09:33:32.000Z
from torch.utils.data import Subset from PIL import Image from torchvision.datasets import EMNIST from base.torchvision_dataset import TorchvisionDataset from PIL.ImageFilter import GaussianBlur import numpy as np import torch import torchvision.transforms as transforms import random class EMNIST_Dataset(Torchvision...
39.009709
117
0.639373
499
4,018
4.971944
0.262525
0.041919
0.050786
0.017735
0.25393
0.212011
0.212011
0.188634
0.112858
0.079
0
0.007797
0.265804
4,018
102
118
39.392157
0.83322
0.162768
0
0.193548
0
0
0.002433
0
0
0
0
0
0
1
0.048387
false
0
0.145161
0
0.241935
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0