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
bf0736d5b20e13bca565ff9aa02b56f4f4cdfd07
1,708
py
Python
randomwordz/words.py
noyoshi/randomwordz
cc785456465abd2234a4449bb559374c28660814
[ "BSD-3-Clause" ]
null
null
null
randomwordz/words.py
noyoshi/randomwordz
cc785456465abd2234a4449bb559374c28660814
[ "BSD-3-Clause" ]
null
null
null
randomwordz/words.py
noyoshi/randomwordz
cc785456465abd2234a4449bb559374c28660814
[ "BSD-3-Clause" ]
null
null
null
# https://stackoverflow.com/questions/6028000/how-to-read-a-static-file-from-inside-a-python-package # see above how to read in words from the files... try: import importlib.resources as pkg_resources except ImportError: # Try backported to PY<37 `importlib_resources`. import importlib_resources as pkg_res...
28.949153
100
0.580211
218
1,708
4.43578
0.394495
0.055843
0.046536
0.05274
0.282316
0.24302
0.164426
0.074457
0.074457
0
0
0.0075
0.297424
1,708
58
101
29.448276
0.798333
0.18911
0
0.190476
0
0
0.076135
0
0
0
0
0
0
1
0.142857
false
0
0.119048
0
0.380952
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf0a0817fceb6cb3452738d6ba612af45126de33
588
py
Python
python/Exercicios/ex079.py
Robert-Marchinhaki/primeiros-passos-Python
515c2c418bfb941bd9af14cf598eca7fe2985592
[ "MIT" ]
null
null
null
python/Exercicios/ex079.py
Robert-Marchinhaki/primeiros-passos-Python
515c2c418bfb941bd9af14cf598eca7fe2985592
[ "MIT" ]
null
null
null
python/Exercicios/ex079.py
Robert-Marchinhaki/primeiros-passos-Python
515c2c418bfb941bd9af14cf598eca7fe2985592
[ "MIT" ]
null
null
null
numeros = list() while True: digitado = (int(input('Digite os valores: '))) if digitado not in numeros[:]: print('Número adicionado com sucesso...') else: numeros.remove(digitado) print('Erro! Valor já digitado') numeros.append(digitado) parada = str(input('Quer adicionar m...
29.4
81
0.627551
75
588
4.92
0.56
0.0271
0.075881
0.097561
0.271003
0.271003
0.271003
0.271003
0.271003
0.271003
0
0
0.221088
588
20
82
29.4
0.805677
0
0
0.125
0
0
0.339559
0
0
0
0
0
0
1
0
false
0
0
0
0
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
bf0e7375f7aee88a0021d0ee0b3932c8be01309f
3,403
py
Python
eureka/S4_generate_lightcurves/clipping.py
afeinstein20/Eureka
7c330086ff7978b81d0f6ebb83a88c0bee01dc50
[ "MIT" ]
null
null
null
eureka/S4_generate_lightcurves/clipping.py
afeinstein20/Eureka
7c330086ff7978b81d0f6ebb83a88c0bee01dc50
[ "MIT" ]
null
null
null
eureka/S4_generate_lightcurves/clipping.py
afeinstein20/Eureka
7c330086ff7978b81d0f6ebb83a88c0bee01dc50
[ "MIT" ]
null
null
null
import numpy as np from astropy.convolution import Box1DKernel, convolve from astropy.stats import sigma_clip def clip_outliers(data, log, wavelength, sigma=10, box_width=5, maxiters=5, fill_value='mask', verbose=False): '''Find outliers in 1D time series. Be careful when using this function on a time-seri...
36.202128
161
0.685572
459
3,403
5.03268
0.337691
0.031169
0.028139
0.038095
0.245022
0.220779
0.190476
0.152381
0.12987
0.12987
0
0.010085
0.242433
3,403
94
162
36.202128
0.885958
0.600353
0
0.086957
0
0
0.05815
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf101eee860699b761e7cd830f6392a50c600f29
3,164
py
Python
EduSim/Envs/KSS/meta/Learner.py
bigdata-ustc/EduSim
849eed229c24615e5f2c3045036311e83c22ea68
[ "MIT" ]
18
2019-11-11T03:45:35.000Z
2022-02-09T15:31:51.000Z
EduSim/Envs/KSS/meta/Learner.py
ghzhao78506/EduSim
cb10e952eb212d8a9344143f889207b5cd48ba9d
[ "MIT" ]
3
2020-10-23T01:05:57.000Z
2021-03-16T12:12:24.000Z
EduSim/Envs/KSS/meta/Learner.py
bigdata-ustc/EduSim
849eed229c24615e5f2c3045036311e83c22ea68
[ "MIT" ]
6
2020-06-09T21:32:00.000Z
2022-03-12T00:25:18.000Z
# coding: utf-8 # 2019/11/26 @ tongshiwei import numpy as np import random import math import networkx as nx from EduSim.Envs.meta import MetaLearner, MetaInfinityLearnerGroup, MetaLearningModel, Item from EduSim.Envs.shared.KSS_KES.KS import influence_control __all__ = ["Learner", "LearnerGroup"] class LearningMo...
29.849057
104
0.617573
355
3,164
5.202817
0.267606
0.097455
0.040606
0.032485
0.161343
0.08013
0.044396
0.044396
0
0
0
0.011082
0.286979
3,164
105
105
30.133333
0.807624
0.019595
0
0.113924
0
0
0.010006
0
0
0
0
0
0
1
0.151899
false
0
0.075949
0.050633
0.341772
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf1590338f5ebdeb7ad55fecd78c338fd33c5131
1,492
py
Python
2021/4a.py
DanielDionne/advent_of_code
891fd46b29a4eac2ef4ec1402df69dda10bd6c5d
[ "MIT" ]
null
null
null
2021/4a.py
DanielDionne/advent_of_code
891fd46b29a4eac2ef4ec1402df69dda10bd6c5d
[ "MIT" ]
null
null
null
2021/4a.py
DanielDionne/advent_of_code
891fd46b29a4eac2ef4ec1402df69dda10bd6c5d
[ "MIT" ]
null
null
null
import re def mark(number, board): for row in board: for element in row: if element[0] == number: element[1] = True def check(board): # check rows for row in board: if all([e[1] == True for e in row]): return True # check columns for colIndex...
29.84
114
0.502681
181
1,492
4.143646
0.375691
0.032
0.032
0.052
0.042667
0
0
0
0
0
0
0.026172
0.385389
1,492
49
115
30.44898
0.791712
0.081769
0
0.210526
0
0
0.005865
0
0
0
0
0
0
1
0.105263
false
0
0.026316
0.026316
0.263158
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf18bd5e5fa5284c1ee0a56f9ee6c1dd7b2dc30a
5,509
py
Python
scripts/python/plot_radiation_advection.py
lanl/phoebus
c570f42882c1c9e01e3bfe4b00b22e15a7a9992b
[ "BSD-3-Clause" ]
3
2022-03-24T22:09:12.000Z
2022-03-29T23:16:21.000Z
scripts/python/plot_radiation_advection.py
lanl/phoebus
c570f42882c1c9e01e3bfe4b00b22e15a7a9992b
[ "BSD-3-Clause" ]
8
2022-03-15T20:49:43.000Z
2022-03-29T17:45:04.000Z
scripts/python/plot_radiation_advection.py
lanl/phoebus
c570f42882c1c9e01e3bfe4b00b22e15a7a9992b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # © 2022. Triad National Security, LLC. All rights reserved. This # program was produced under U.S. Government contract # 89233218CNA000001 for Los Alamos National Laboratory (LANL), which # is operated by Triad National Security, LLC for the U.S. Department # of Energy/National Nuclear Securit...
35.541935
136
0.697223
921
5,509
4.103149
0.335505
0.013231
0.035988
0.02117
0.18497
0.105319
0.04869
0.031754
0.031754
0.031754
0
0.029649
0.167363
5,509
154
137
35.772727
0.793983
0.305319
0
0.04
0
0
0.152082
0.017132
0
0
0
0
0
1
0.01
false
0
0.08
0
0.1
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf1d0a2600c1e32dca7dd7713967984af9f10c7e
7,731
py
Python
emma/utils/visualizations.py
rpp0/emma
fab81e1c66b8a88d14e68b8878ddbb5ee6528de2
[ "MIT" ]
36
2019-01-08T12:49:36.000Z
2022-03-31T08:11:48.000Z
emma/utils/visualizations.py
rpp0/emma
fab81e1c66b8a88d14e68b8878ddbb5ee6528de2
[ "MIT" ]
6
2020-01-28T22:59:05.000Z
2022-02-10T00:14:43.000Z
emma/utils/visualizations.py
rpp0/emma
fab81e1c66b8a88d14e68b8878ddbb5ee6528de2
[ "MIT" ]
3
2019-02-12T11:55:42.000Z
2020-08-12T23:30:05.000Z
import matplotlib.pyplot as plt import os import numpy as np from datetime import datetime from matplotlib.backends.backend_pdf import PdfPages from emma.io.traceset import TraceSet from emma.utils.utils import MaxPlotsReached, EMMAException #plt.rcParams['axes.prop_cycle'] = plt.cycler(color=plt.get_cmap('flag').col...
31.555102
112
0.567844
926
7,731
4.600432
0.2473
0.039906
0.00939
0.013146
0.24061
0.165728
0.1277
0.10939
0.093427
0.056808
0
0.02
0.320916
7,731
244
113
31.684426
0.791429
0.10542
0
0.231214
0
0
0.059391
0.00407
0
0
0
0.004098
0
1
0.040462
false
0.00578
0.046243
0
0.098266
0.00578
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf1eec4185206fab6a61df1d56c8c21212cdfa42
2,031
py
Python
list-manual-packages.py
qidydl/debian-package-scripts
a68f2d4c493e00761cc7d6cdc11ca1e661684741
[ "MIT" ]
null
null
null
list-manual-packages.py
qidydl/debian-package-scripts
a68f2d4c493e00761cc7d6cdc11ca1e661684741
[ "MIT" ]
null
null
null
list-manual-packages.py
qidydl/debian-package-scripts
a68f2d4c493e00761cc7d6cdc11ca1e661684741
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """List manually-installed Debian packages This script can be used to see which packages are flagged as having been installed manually. Manually-installed packages are not eligible for autoremove. Managing this flag will ensure that libraries are cleaned up when no longer needed. This script o...
28.605634
118
0.746923
296
2,031
5.013514
0.39527
0.04717
0.032345
0.057278
0.275606
0.23248
0.21159
0.21159
0.21159
0.21159
0
0.004808
0.180699
2,031
70
119
29.014286
0.887019
0.432792
0
0.243902
0
0
0.1331
0
0
0
0
0
0
1
0
false
0
0.02439
0
0.02439
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf2071740b73e90331bef4394f5adc4ea46bf3e5
1,847
py
Python
machine_learning/boston.py
zmaas/scratch
ee996bb6a15e3eb322a07b8637f8eb0046ec9d89
[ "MIT" ]
null
null
null
machine_learning/boston.py
zmaas/scratch
ee996bb6a15e3eb322a07b8637f8eb0046ec9d89
[ "MIT" ]
null
null
null
machine_learning/boston.py
zmaas/scratch
ee996bb6a15e3eb322a07b8637f8eb0046ec9d89
[ "MIT" ]
null
null
null
'''Boston Housing Classification''' import numpy as np from keras.datasets import boston_housing from keras import models from keras import layers (train_data, train_targets), (test_data, test_targets) = boston_housing.load_data() mean = train_data.mean(axis=0) train_data -= mean std = t...
28.859375
78
0.655658
258
1,847
4.414729
0.290698
0.102722
0.102722
0.049166
0.258121
0.208955
0.147498
0.050922
0.050922
0
0
0.018961
0.22902
1,847
63
79
29.31746
0.780899
0.040606
0
0.113208
0
0
0.021518
0
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.113208
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf231f29d738cf1a12e825364e3815688ca78557
4,456
py
Python
zorg/buildbot/builders/LibCXXBuilder.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
1
2019-02-10T03:05:05.000Z
2019-02-10T03:05:05.000Z
zorg/buildbot/builders/LibCXXBuilder.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
null
null
null
zorg/buildbot/builders/LibCXXBuilder.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
null
null
null
import os import buildbot import buildbot.process.factory import buildbot.steps.shell import buildbot.steps.source as source import buildbot.steps.source.svn as svn import buildbot.process.properties as properties import zorg.buildbot.commands.LitTestCommand as lit_test_command import zorg.buildbot.util.artifacts as...
41.259259
79
0.5864
491
4,456
5.217923
0.281059
0.093677
0.035129
0.051522
0.346214
0.332162
0.295472
0.25644
0.236924
0.217799
0
0.001262
0.288824
4,456
107
80
41.64486
0.807195
0.079219
0
0.270588
0
0
0.18304
0.065005
0
0
0
0
0
1
0.011765
false
0
0.117647
0
0.141176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf23269a20352bd1e5bf1a525b6d3e5fd76ba4f9
1,760
py
Python
pydeps/rules/ruleResultChecker.py
enableiot/iotanalytics-rule-engine
8f7c0e00f3f534944af21255cf7d98fc632b08b2
[ "Apache-2.0" ]
3
2015-12-15T10:17:10.000Z
2016-01-19T15:24:51.000Z
pydeps/rules/ruleResultChecker.py
enableiot/iotanalytics-rule-engine
8f7c0e00f3f534944af21255cf7d98fc632b08b2
[ "Apache-2.0" ]
null
null
null
pydeps/rules/ruleResultChecker.py
enableiot/iotanalytics-rule-engine
8f7c0e00f3f534944af21255cf7d98fc632b08b2
[ "Apache-2.0" ]
2
2015-12-15T10:17:11.000Z
2018-11-01T12:40:49.000Z
# Copyright (c) 2015 Intel Corporation # # 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 ...
39.111111
85
0.718182
240
1,760
4.995833
0.425
0.053378
0.075897
0.056714
0.173478
0.075063
0
0
0
0
0
0.008571
0.204545
1,760
44
86
40
0.847857
0.316477
0
0
0
0
0.049622
0
0
0
0
0
0
1
0.181818
false
0.045455
0.045455
0.090909
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
bf236a0773de3a927230fe201180262fee783588
6,372
py
Python
extviews/viewset.py
BilalAlpaslan/fastapi-extviews
e3ce1c4916d86009705a09e165e5ee21a197962f
[ "MIT" ]
16
2022-01-01T16:00:58.000Z
2022-03-21T09:42:35.000Z
extviews/viewset.py
BilalAlpaslan/fastapi-extviews
e3ce1c4916d86009705a09e165e5ee21a197962f
[ "MIT" ]
null
null
null
extviews/viewset.py
BilalAlpaslan/fastapi-extviews
e3ce1c4916d86009705a09e165e5ee21a197962f
[ "MIT" ]
null
null
null
from typing import Callable, List, Sequence, Union from fastapi import APIRouter, Header from fastapi.params import Depends from pydantic import BaseModel from .crudset import BaseCrudSet __all__ = ['ViewSet', 'CrudViewSet'] supported_methods_names: List[str] = [ 'list', 'retrieve', 'create', 'update', 'partial_...
37.704142
101
0.608443
772
6,372
4.762953
0.141192
0.032635
0.029372
0.03046
0.451455
0.409029
0.37585
0.367419
0.345118
0.325809
0
0.005453
0.280446
6,372
168
102
37.928571
0.79651
0.07941
0
0.181818
0
0
0.082917
0.034132
0
0
0
0.005952
0.016529
1
0.082645
false
0
0.041322
0
0.380165
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf24664ff4f061ae7a934264b0579dd203c773d6
6,456
py
Python
wouldyouci_database/recommendation/contents_based_filtering.py
jhee514/wouldYouCi
54793401fb51356587e5a4460eb606ed9943b30c
[ "MIT" ]
1
2020-06-18T08:40:47.000Z
2020-06-18T08:40:47.000Z
wouldyouci_database/recommendation/contents_based_filtering.py
jhee514/wouldYouCi
54793401fb51356587e5a4460eb606ed9943b30c
[ "MIT" ]
14
2021-03-19T08:55:06.000Z
2022-03-12T00:37:51.000Z
wouldyouci_database/recommendation/contents_based_filtering.py
jhee514/wouldYouCi
54793401fb51356587e5a4460eb606ed9943b30c
[ "MIT" ]
1
2021-05-27T08:52:01.000Z
2021-05-27T08:52:01.000Z
import os import time import pymysql import pandas as pd from decouple import config from datetime import datetime from sklearn.linear_model import Lasso from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from sklearn.model_selection import RandomizedSearchCV from sci...
34.340426
105
0.614777
806
6,456
4.748139
0.167494
0.023517
0.031356
0.037627
0.688268
0.640449
0.635746
0.594722
0.561014
0.55213
0
0.026656
0.244579
6,456
187
106
34.524064
0.758048
0
0
0.539568
0
0
0.149628
0.022924
0
0
0
0
0
1
0.028777
false
0.028777
0.079137
0
0.136691
0.194245
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf25dc21b097b4039654bff5dabf2d9a9ccf1daa
830
py
Python
netrd/utilities/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
116
2019-01-17T18:31:43.000Z
2022-03-31T13:37:21.000Z
netrd/utilities/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
175
2019-01-15T01:19:13.000Z
2021-05-25T16:51:26.000Z
netrd/utilities/__init__.py
sdmccabe/netrd
f703c19b02f42c9f54bcab57014381da11dd58da
[ "MIT" ]
36
2019-01-14T20:38:32.000Z
2022-01-21T20:58:38.000Z
""" utilities ---------- Common utilities for use within ``netrd``. """ from .threshold import threshold from .graph import ( create_graph, ensure_undirected, undirected, ensure_unweighted, unweighted, ) from .read import read_time_series from .cluster import clusterGraph from .standardize import ...
18.444444
42
0.683133
84
830
6.369048
0.404762
0.041122
0.052336
0.085981
0.302804
0.302804
0.302804
0.302804
0.302804
0.302804
0
0
0.208434
830
44
43
18.863636
0.814307
0.077108
0
0
0
0
0.274769
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf292f506793261af16ff7db52fd7fc8b2dbbe15
697
py
Python
python/leetcode/1706-Where_Will_the_Ball_Fall-M.py
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
1
2020-03-02T10:56:22.000Z
2020-03-02T10:56:22.000Z
python/leetcode/1706-Where_Will_the_Ball_Fall-M.py
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
python/leetcode/1706-Where_Will_the_Ball_Fall-M.py
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
class Solution: def findBall(self, grid: List[List[int]]) -> List[int]: m, n = len(grid), len(grid[0]) fall = list(range(n)) for i in range(m): next_fall = [-1 for _ in range(n)] for j in range(n): if grid[i][j] == 1: if j > 0 and g...
34.85
59
0.400287
99
697
2.757576
0.272727
0.043956
0.098901
0.076923
0.307692
0.307692
0.307692
0.190476
0.190476
0.190476
0
0.034483
0.45911
697
19
60
36.684211
0.689655
0
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
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
bf29b24d082fbb7129c2bab18736d49934635b11
5,518
py
Python
vae/train_vae.py
mazrk7/tf_playground
81ad741f2bfe439bab85783ccf82d4715a3adef6
[ "MIT" ]
null
null
null
vae/train_vae.py
mazrk7/tf_playground
81ad741f2bfe439bab85783ccf82d4715a3adef6
[ "MIT" ]
null
null
null
vae/train_vae.py
mazrk7/tf_playground
81ad741f2bfe439bab85783ccf82d4715a3adef6
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import sys import tensorflow as tf from dataset import load_data from vae import VAE from conv_vae import ConvVAE IMAGE_SIZE = 28 IMAGE_PIXELS = IMAGE_SIZE * IMAGE_SIZE # Define the VAE netw...
45.229508
153
0.677419
753
5,518
4.743692
0.273572
0.032755
0.06187
0.017917
0.217245
0.165733
0.150616
0.150616
0.083427
0.06159
0
0.015972
0.217108
5,518
121
154
45.603306
0.81088
0.151685
0
0.084337
0
0.012048
0.197592
0.00473
0
0
0
0
0
1
0.024096
false
0
0.108434
0
0.144578
0.036145
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf2bb0444957a564a4fef3e32be0670e3dc59829
15,049
py
Python
DPPO/dppo_cont_gae_dist_gpu.py
ChuaCheowHuan/reinforcement_learning
037c292e5d81cd6d302566969c0391aba47d0343
[ "MIT" ]
32
2019-06-01T18:10:12.000Z
2021-12-17T08:12:48.000Z
DPPO/dppo_cont_gae_dist_gpu.py
ChuaCheowHuan/reinforcement_learning
037c292e5d81cd6d302566969c0391aba47d0343
[ "MIT" ]
9
2020-03-24T18:21:20.000Z
2022-02-10T01:41:29.000Z
DPPO/dppo_cont_gae_dist_gpu.py
ChuaCheowHuan/reinforcement_learning
037c292e5d81cd6d302566969c0391aba47d0343
[ "MIT" ]
9
2019-05-05T12:04:30.000Z
2021-11-13T12:14:56.000Z
""" Distributed Proximal Policy Optimization (Distributed PPO or DPPO) continuous version implementation with distributed Tensorflow and Python’s multiprocessing package. This implementation uses normalized running rewards with GAE. The code is tested with Gym’s continuous action space environment, Pendulum-v0 on Colab...
41.802778
171
0.618779
2,091
15,049
4.254902
0.184601
0.029223
0.031471
0.021356
0.337305
0.231876
0.18377
0.147128
0.13409
0.122963
0
0.01677
0.259021
15,049
359
172
41.91922
0.781096
0.156024
0
0.086614
0
0
0.06597
0
0
0
0
0
0
1
0.051181
false
0
0.027559
0
0.106299
0.059055
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf2ca4850e1601c96655725a34150bcc61effb04
7,417
py
Python
main_entry.py
LuxxxLucy/text_generation_SeqRNN
27676f8c0844a69dd9c68ef6ff519b7ff03e50b9
[ "MIT" ]
null
null
null
main_entry.py
LuxxxLucy/text_generation_SeqRNN
27676f8c0844a69dd9c68ef6ff519b7ff03e50b9
[ "MIT" ]
1
2017-08-28T18:45:04.000Z
2017-08-30T09:27:37.000Z
main_entry.py
LuxxxLucy/text_generation_SeqRNN
27676f8c0844a69dd9c68ef6ff519b7ff03e50b9
[ "MIT" ]
null
null
null
# utility modules import os from os import path import shutil import sys import time import json import argparse import numpy as np from pprint import pprint as pr ITEM_DIM=100 dir_path = path.dirname(path.dirname(path.dirname(path.realpath(__file__)))) sys.path.append(dir_path) import settings # -------------------...
41.903955
96
0.637994
936
7,417
4.855769
0.25641
0.037624
0.071067
0.014962
0.259846
0.19846
0.175798
0.163916
0.163916
0.163916
0
0.008996
0.235675
7,417
176
97
42.142045
0.792732
0.065121
0
0.198473
0
0
0.238018
0.006156
0
0
0
0
0
1
0.022901
false
0
0.122137
0
0.145038
0.160305
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf2e31dad78bdc69eb2a8bd13549245a36b50b40
4,741
py
Python
data_process/face_rectify.py
ZephyrDu/Face-Sketch-Wild
4e967e58b8cb95af74d5fb26a4f9761a966c04bd
[ "MIT" ]
73
2018-11-13T09:32:31.000Z
2022-02-25T13:28:29.000Z
data_process/face_rectify.py
ZephyrDu/Face-Sketch-Wild
4e967e58b8cb95af74d5fb26a4f9761a966c04bd
[ "MIT" ]
4
2019-10-22T09:15:21.000Z
2021-12-02T08:21:54.000Z
data_process/face_rectify.py
ZephyrDu/Face-Sketch-Wild
4e967e58b8cb95af74d5fb26a4f9761a966c04bd
[ "MIT" ]
22
2018-11-04T00:08:30.000Z
2022-03-07T00:50:13.000Z
""" Rectify the face photo according to the paper: Real-Time Exemplar-Based Face Sketch Synthesis. shape: h=250, w=200 position: left eye (x=75,y=125), right eye (x=125, y=125) This module use similarity transformation to roughly align the two eyes. Specifically, the transformation matrix can be writte...
37.928
109
0.669479
720
4,741
4.230556
0.295833
0.022981
0.03283
0.031517
0.299081
0.255745
0.159882
0.159882
0.131648
0.131648
0
0.044514
0.194474
4,741
124
110
38.233871
0.753077
0.322506
0
0.028986
0
0
0.054638
0.051144
0
0
0
0
0
1
0.057971
false
0
0.115942
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf2ea22b630b974814db2da578466418ae00ae5f
643
py
Python
old_app.py
stimura/interactive_visualizations_and_dashboards_plotly.js
980ee5078b2fc93fc2f906769b97b013885d5580
[ "ADSL" ]
null
null
null
old_app.py
stimura/interactive_visualizations_and_dashboards_plotly.js
980ee5078b2fc93fc2f906769b97b013885d5580
[ "ADSL" ]
null
null
null
old_app.py
stimura/interactive_visualizations_and_dashboards_plotly.js
980ee5078b2fc93fc2f906769b97b013885d5580
[ "ADSL" ]
null
null
null
from data_wrangling import * from flask import Flask, jsonify, render_template app = Flask(__name__) @app.route("/") def index(): return render_template('index.html') @app.route("/names") def names(): # Store results into a dictionary forecast = get_samples() return jsonify(forecast) # Re...
18.371429
57
0.642302
81
643
4.802469
0.567901
0.061697
0.046272
0
0
0
0
0
0
0
0
0.013834
0.213064
643
34
58
18.911765
0.754941
0.171073
0
0
0
0
0.090737
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0.052632
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf34bb0f6cb77d847d353e75322326b1e613f85e
1,484
py
Python
word2vec/data_test.py
luozhouyang/machine-learning-notes
332bea905398891fed4a98aa139eac02c88cb5ae
[ "Apache-2.0" ]
73
2018-09-07T06:47:18.000Z
2022-01-25T06:14:41.000Z
word2vec/data_test.py
luozhouyang/machine-learning-notes
332bea905398891fed4a98aa139eac02c88cb5ae
[ "Apache-2.0" ]
2
2018-10-18T06:40:19.000Z
2019-11-16T01:48:39.000Z
word2vec/data_test.py
luozhouyang/machine-learning-notes
332bea905398891fed4a98aa139eac02c88cb5ae
[ "Apache-2.0" ]
47
2018-09-27T10:50:21.000Z
2022-01-25T06:20:23.000Z
# Copyright 2018 luozhouyang # # 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.574468
80
0.679919
210
1,484
4.638095
0.485714
0.061602
0.030801
0.043121
0.26078
0.26078
0.211499
0.211499
0.211499
0.211499
0
0.0144
0.157682
1,484
46
81
32.26087
0.7648
0.422507
0
0.3
0
0
0.061758
0
0
0
0
0
0
1
0.05
false
0
0.15
0
0.25
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
bf355dafca1416e7627639d652c8fed0b68000f6
11,140
py
Python
scripts/elasticArchive.py
softandbyte/elasticArchive
90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4
[ "MIT" ]
16
2020-06-09T03:29:03.000Z
2022-03-12T05:05:54.000Z
scripts/elasticArchive.py
softandbyte/elasticArchive
90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4
[ "MIT" ]
2
2021-11-09T20:50:58.000Z
2022-03-23T05:17:50.000Z
scripts/elasticArchive.py
softandbyte/elasticArchive
90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4
[ "MIT" ]
5
2021-02-25T08:43:18.000Z
2022-03-12T05:05:54.000Z
""" This script serializes the entire traffic dump, including websocket traffic, as JSON, and either sends it to an elasticsearch endpoint for permenant storage. Unlike some plugins, this one sends all requests and responses to elasticsearch in real-time. This script is based on the original mitmproxy scripts jsondum...
34.382716
135
0.560503
1,136
11,140
5.417254
0.260563
0.0117
0.00975
0.00975
0.153234
0.131297
0.098148
0.040949
0.029249
0.029249
0
0.008232
0.323878
11,140
323
136
34.489164
0.808816
0.203591
0
0.156098
0
0.004878
0.190737
0
0
0
0
0
0
1
0.068293
false
0.019512
0.034146
0
0.165854
0.053659
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf35df664a6f006ae32195314f2da6cc632d3aa5
1,425
py
Python
app_covid19data/tests/test_forms.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
app_covid19data/tests/test_forms.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
app_covid19data/tests/test_forms.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
from django.test import TestCase from django.utils import timezone from model_bakery import baker from app_covid19data.models import DataCovid19Item class Covid19dataTest(TestCase): def create_DataCovid19Item(self, country='countryTest', state='stateTest', latitude=1, longitude=1): return DataCovid19Ite...
39.583333
104
0.648421
159
1,425
5.666667
0.396226
0.09323
0.059933
0.033296
0.122087
0.122087
0.122087
0.122087
0.122087
0
0
0.029304
0.233684
1,425
36
105
39.583333
0.795788
0.047018
0
0.076923
0
0
0.216077
0.051622
0
0
0
0
0.153846
1
0.153846
false
0
0.153846
0.038462
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf365d62fde31326141c9b2b13f45dee2f7dc651
823
py
Python
python/2015/Day 1 Not Quite Lisp/main.py
FirinKinuo/advent-of-code
97059fc2832b224c24e80bdb658c668bcbb1cb12
[ "MIT" ]
null
null
null
python/2015/Day 1 Not Quite Lisp/main.py
FirinKinuo/advent-of-code
97059fc2832b224c24e80bdb658c668bcbb1cb12
[ "MIT" ]
null
null
null
python/2015/Day 1 Not Quite Lisp/main.py
FirinKinuo/advent-of-code
97059fc2832b224c24e80bdb658c668bcbb1cb12
[ "MIT" ]
null
null
null
from python import SolvingBase class Solving(SolvingBase): def first_problem(self): floor = 0 with open(self.test_case, 'r', encoding='utf-8') as file: instructions = file.read() for command in instructions: floor += 1 if command == '(' else -1 return flo...
24.939394
94
0.589307
99
823
4.727273
0.414141
0.025641
0.068376
0.07265
0.504274
0.504274
0.504274
0.367521
0.367521
0.367521
0
0.017241
0.295261
823
32
95
25.71875
0.789655
0
0
0.4
0
0
0.123937
0.066829
0
0
0
0
0
1
0.1
false
0
0.05
0
0.3
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf366ea4faa9d83ef47009d3ecfc52584f3dc9bd
10,032
py
Python
downscale_/downscale/utils/utils_func.py
louisletoumelin/wind_downscaling_cnn
9d08711620db1ee1f472847f0e822c5f4eb1d300
[ "W3C" ]
null
null
null
downscale_/downscale/utils/utils_func.py
louisletoumelin/wind_downscaling_cnn
9d08711620db1ee1f472847f0e822c5f4eb1d300
[ "W3C" ]
12
2021-11-30T16:56:05.000Z
2021-12-13T16:26:31.000Z
downscale_/downscale/utils/utils_func.py
louisletoumelin/wind_downscaling_cnn
9d08711620db1ee1f472847f0e822c5f4eb1d300
[ "W3C" ]
null
null
null
import numpy as np import pandas as pd import datetime from downscale.utils.decorators import timer_decorator def select_range(month_begin, month_end, year_begin, year_end, date_begin, date_end): import pandas as pd if (month_end != month_begin) or (year_begin != year_end): dates = pd.date_range(date...
33.66443
112
0.572269
1,250
10,032
4.1976
0.1816
0.054889
0.025157
0.018296
0.509053
0.493044
0.444444
0.420431
0.393749
0.38117
0
0.039533
0.309111
10,032
297
113
33.777778
0.717501
0.086324
0
0.412935
0
0
0.229532
0.039229
0
0
0
0
0.00995
1
0.099502
false
0
0.024876
0.004975
0.20398
0.159204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf3812d6d4f4e3479497b05d3cbefb4d7e0abe08
11,979
py
Python
assetfactory/images/2021/08/30/base.py
reinhrst/reinhrst.github.io
3e9dce26c923fca54589ffd1d19d56af0dd27910
[ "CC0-1.0" ]
null
null
null
assetfactory/images/2021/08/30/base.py
reinhrst/reinhrst.github.io
3e9dce26c923fca54589ffd1d19d56af0dd27910
[ "CC0-1.0" ]
6
2021-07-01T19:35:47.000Z
2022-02-06T10:30:35.000Z
assetfactory/images/2021/08/30/base.py
reinhrst/reinhrst.github.io
3e9dce26c923fca54589ffd1d19d56af0dd27910
[ "CC0-1.0" ]
1
2021-08-11T22:46:47.000Z
2021-08-11T22:46:47.000Z
from __future__ import annotations import pathlib import typing as t import numpy as np import math def rgb_to_hsv(r, g, b): r = float(r) g = float(g) b = float(b) high = max(r, g, b) low = min(r, g, b) h, s, v = high, high, high d = high - low s = 0 if high == 0 else d/high if ...
32.201613
115
0.515986
1,569
11,979
3.810707
0.173996
0.007025
0.007526
0.015053
0.227128
0.145844
0.075598
0.041813
0.037464
0.037464
0
0.029073
0.333834
11,979
371
116
32.28841
0.720175
0.001503
0
0.187117
0
0.003067
0.108119
0.020988
0
0
0
0
0.030675
1
0.04908
false
0.003067
0.015337
0
0.138037
0.003067
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf3a8b4843ac801538ccc5ef189a2684601a4cd6
10,419
py
Python
SemanticCopyandPaste.py
WeiChihChern/Copy-Paste-Semantic-Segmentation
f7725bb385b6decc4e139262fc1c6e3ba30255a3
[ "MIT" ]
3
2021-08-19T20:08:27.000Z
2021-09-25T04:12:59.000Z
SemanticCopyandPaste.py
WeiChihChern/Copy-Paste-Semantic-Segmentation
f7725bb385b6decc4e139262fc1c6e3ba30255a3
[ "MIT" ]
null
null
null
SemanticCopyandPaste.py
WeiChihChern/Copy-Paste-Semantic-Segmentation
f7725bb385b6decc4e139262fc1c6e3ba30255a3
[ "MIT" ]
1
2022-01-03T07:53:34.000Z
2022-01-03T07:53:34.000Z
import albumentations as A import random import cv2 import os import numpy as np import matplotlib.pyplot as plt class SemanticCopyandPaste(A.DualTransform): def __init__(self, nClass, path2rgb, path2mask, shift_x_limit = [0,0], ...
38.164835
335
0.585181
1,330
10,419
4.443609
0.21203
0.025888
0.020305
0.011506
0.21489
0.141794
0.113875
0.067005
0.038917
0.038917
0
0.022118
0.323064
10,419
272
336
38.305147
0.815823
0.167099
0
0.106667
0
0.006667
0.063923
0
0
0
0
0
0.086667
1
0.066667
false
0
0.04
0.02
0.18
0.026667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
170d3e0c7bb509155665bc1b0e23573bfaf15d45
1,214
py
Python
_vcs/git.py
devsetup/devsetup_framework
6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca
[ "BSD-3-Clause" ]
null
null
null
_vcs/git.py
devsetup/devsetup_framework
6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca
[ "BSD-3-Clause" ]
null
null
null
_vcs/git.py
devsetup/devsetup_framework
6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf8 -*- import os import re import dsf def change_branch(branch, cwd=None): # checkout the branch dsf.core.shell.run(['git', 'checkout', branch], cwd=cwd) def get_current_branch(cwd=None): output = dsf.core.shell.get_output_from_command(['git', 'branch'], cwd=cwd) for line in output: if line[0:2...
26.977778
98
0.696046
202
1,214
4.10396
0.386139
0.04222
0.057901
0.065139
0.165259
0.165259
0.165259
0.165259
0.165259
0.115802
0
0.004936
0.165568
1,214
45
99
26.977778
0.813425
0.247117
0
0.115385
0
0
0.109272
0
0
0
0
0
0
1
0.115385
false
0
0.115385
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
170d6548b3dc09065e688e302239c6b72d24faa5
243
py
Python
7KYU/is_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
4
2021-07-17T22:48:03.000Z
2022-03-25T14:10:58.000Z
7KYU/is_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/is_prime.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
3
2021-06-14T14:18:16.000Z
2022-03-16T06:02:02.000Z
def is_prime(n: int) -> bool: ''' This function returns True if n is a prime number otherwise return False. ''' if n <= 1: return False d = 2 while d * d <= n and n % d != 0: d += 1 return d * d > n
22.090909
77
0.497942
40
243
3
0.55
0.05
0.05
0
0
0
0
0
0
0
0
0.026846
0.386831
243
10
78
24.3
0.778523
0.300412
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1710ee96f11f5467c52c0c184c4411c5e7e24339
1,628
py
Python
HSM/load_data.py
18F/10x-MLaaS
3e1df3bbd88037c20e916fab2c07117a63e3c639
[ "CC0-1.0" ]
13
2019-03-15T20:30:35.000Z
2022-02-19T08:05:10.000Z
HSM/load_data.py
18F/10x-MLaaS
3e1df3bbd88037c20e916fab2c07117a63e3c639
[ "CC0-1.0" ]
106
2018-11-28T21:17:55.000Z
2022-03-25T09:18:27.000Z
HSM/load_data.py
18F/10x-MLaaS
3e1df3bbd88037c20e916fab2c07117a63e3c639
[ "CC0-1.0" ]
8
2019-01-05T16:31:02.000Z
2022-03-20T15:35:06.000Z
import json from argparse import ArgumentParser import pandas as pd from utils import db, db_utils from utils.db import Data, SupportData filter_feature = 'Comments Concatenated' validation = 'Validation' def main(file): db_utils.create_postgres_db() db.dal.connect() session = db.dal.Session() df = ...
30.716981
107
0.699017
226
1,628
4.792035
0.376106
0.142198
0.077562
0.049862
0.066482
0.046168
0
0
0
0
0
0
0.210074
1,628
52
108
31.307692
0.842146
0
0
0
0
0
0.237715
0
0
0
0
0
0
1
0.027778
false
0
0.138889
0
0.166667
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17111432226dd73d653390de29656f4d3d8a9a11
2,882
py
Python
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
3
2021-03-10T20:03:42.000Z
2022-03-18T17:10:04.000Z
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
14
2020-12-28T22:32:07.000Z
2022-03-17T15:33:04.000Z
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
8
2021-01-19T02:39:01.000Z
2022-01-31T18:04:39.000Z
import multiprocessing from typing import ( Callable, Tuple, ) from ..data_logging.data_recorder import DataRecorder from ..driver.ask_tell_driver import AskTellDriver from ..optimizer.ask_tell_optimizer import AskTellOptimizer from .ask_tell_parallel_driver_fns import * class AskTellParallelDriver(AskTe...
32.022222
116
0.611381
304
2,882
5.569079
0.351974
0.024808
0.031896
0.033668
0.128175
0.104548
0.104548
0.104548
0.104548
0.104548
0
0.001496
0.304303
2,882
89
117
32.382022
0.842893
0.26891
0
0
0
0
0.006214
0
0
0
0
0
0
1
0.163265
false
0
0.122449
0.040816
0.387755
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1711d50df16cf6bbbc6b89a5b298a52cab9c6c7f
4,255
py
Python
main.py
BenAsaf/moodle-attendance-bot
bd27263fbb57badbe0ec622b8f72f507795591a2
[ "MIT" ]
null
null
null
main.py
BenAsaf/moodle-attendance-bot
bd27263fbb57badbe0ec622b8f72f507795591a2
[ "MIT" ]
null
null
null
main.py
BenAsaf/moodle-attendance-bot
bd27263fbb57badbe0ec622b8f72f507795591a2
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.common import exceptions import time import sched MOODLE_USER_NAME = "" MOODLE_PASSWORD = "" MOODLE_HOME_PAGE = "Moodle Address" # THe moodle main homepage COURSE_TITLE = "Name of the course as it shows up on the left" # What course to search for in the list START_HOUR, ...
32.984496
127
0.683901
578
4,255
4.775087
0.307958
0.031884
0.03442
0.038043
0.211957
0.167391
0.125725
0.102536
0.067391
0.067391
0
0.006876
0.213866
4,255
128
128
33.242188
0.818236
0.140541
0
0.168421
0
0
0.131449
0.01921
0
0
0
0
0
1
0.094737
false
0.031579
0.042105
0
0.210526
0.010526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17134739b8596a864d6e6e37035825d72ffbe045
3,119
py
Python
securetea/lib/antivirus/scanner/yara_scanner.py
neerajv18/SecureTea-Project
e999cbe7c8e497c69b76b4c886de0d063169ea03
[ "MIT" ]
257
2018-03-28T12:43:20.000Z
2022-03-29T07:07:23.000Z
securetea/lib/antivirus/scanner/yara_scanner.py
neerajv18/SecureTea-Project
e999cbe7c8e497c69b76b4c886de0d063169ea03
[ "MIT" ]
155
2018-03-31T14:57:46.000Z
2022-03-17T18:12:41.000Z
securetea/lib/antivirus/scanner/yara_scanner.py
neerajv18/SecureTea-Project
e999cbe7c8e497c69b76b4c886de0d063169ea03
[ "MIT" ]
132
2018-03-27T06:25:20.000Z
2022-03-28T11:32:45.000Z
# -*- coding: utf-8 -*- u"""Yara Scanner module for SecureTea AntiVirus. Project: ╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐ ╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤ ╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴ Author: Abhishek Sharma <abhishek_official@hotmail.com> , Jul 4 2019 Version: 1.4 Module: SecureTea """ from securetea.lib.antiv...
30.281553
96
0.520359
342
3,119
4.748538
0.377193
0.049261
0.024631
0.036946
0.146552
0.096059
0
0
0
0
0
0.005624
0.372876
3,119
102
97
30.578431
0.789366
0.235011
0
0.264151
0
0
0.102995
0
0
0
0
0
0
1
0.037736
false
0
0.09434
0
0.169811
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
171703df70423764cdb150d7746703a8105fdfbc
5,823
py
Python
stable_baselines3/common/buffer_multi_level.py
atishdixit16/stable-baselines3
0188d6a7b0c905693f41a68484d71b02faee6146
[ "MIT" ]
null
null
null
stable_baselines3/common/buffer_multi_level.py
atishdixit16/stable-baselines3
0188d6a7b0c905693f41a68484d71b02faee6146
[ "MIT" ]
null
null
null
stable_baselines3/common/buffer_multi_level.py
atishdixit16/stable-baselines3
0188d6a7b0c905693f41a68484d71b02faee6146
[ "MIT" ]
null
null
null
from os import times from typing import Generator, Optional, Union, NamedTuple import numpy as np import torch as th from gym import spaces from stable_baselines3.common.type_aliases import RolloutBufferSamples from stable_baselines3.common.buffers import RolloutBuffer from stable_baselines3.common.vec_env import Vec...
37.567742
141
0.644341
714
5,823
5.02381
0.285714
0.018121
0.027321
0.030109
0.318093
0.293003
0.237803
0.237803
0.237803
0.191246
0
0.005187
0.271681
5,823
154
142
37.811688
0.840604
0.230981
0
0.309278
0
0
0.043419
0
0
0
0
0
0.010309
1
0.072165
false
0
0.082474
0
0.268041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
171b77518c7cb37c9e4c98fa3f24461a2dd6e589
3,032
py
Python
Scripts/plot_ArcticSystemsWorkshop_Fig2.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
1
2017-10-22T02:22:14.000Z
2017-10-22T02:22:14.000Z
Scripts/plot_ArcticSystemsWorkshop_Fig2.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
null
null
null
Scripts/plot_ArcticSystemsWorkshop_Fig2.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
4
2018-04-05T17:55:36.000Z
2022-03-31T07:05:01.000Z
""" Plot for NCAR Arctic Systems workshop poster. Graph is DJF sea ice volume from PIOMAS over the satellite era. Notes ----- Author : Zachary Labe Date : 4 April 2018 """ ### Import modules import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from mpl_toolkits.basemap i...
30.626263
92
0.663918
443
3,032
4.480813
0.44921
0.032242
0.018136
0.022166
0.189421
0.079597
0.079597
0.079597
0
0
0
0.045904
0.166557
3,032
99
93
30.626263
0.739612
0.083773
0
0.132353
0
0
0.151977
0.019587
0
0
0
0
0
1
0.014706
false
0
0.147059
0
0.161765
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
171f19a1c9e621f8b1151c6b7c0684a1d90d12d0
552
py
Python
src/ch6/heap_sort.py
tchitchikov/algorithms_practice
6a1ab226b4eb664a8a46853c94148a1ad0e0a558
[ "MIT" ]
null
null
null
src/ch6/heap_sort.py
tchitchikov/algorithms_practice
6a1ab226b4eb664a8a46853c94148a1ad0e0a558
[ "MIT" ]
null
null
null
src/ch6/heap_sort.py
tchitchikov/algorithms_practice
6a1ab226b4eb664a8a46853c94148a1ad0e0a558
[ "MIT" ]
null
null
null
import random from heaps import max_heaps, min_heaps def heap_sort(array): array = max_heaps.build_max_heap(array) i = len(array) - 1 output = [] while i >= 0: output.insert(0, array[0]) array = array[1:] array = max_heaps.max_heap(array, 0) i = i - 1 return output ...
21.230769
55
0.615942
85
552
3.729412
0.4
0.100946
0.113565
0.100946
0.157729
0.157729
0
0
0
0
0
0.041363
0.255435
552
25
56
22.08
0.729927
0.041667
0
0
0
0
0.01518
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17211f08965cfcc8becd31fe9182b1682d452336
2,110
py
Python
setup.py
nickhand/jupyter-panel-proxy
55f405b7292df281dfd0306f1154fb31992eef19
[ "BSD-3-Clause" ]
3
2020-04-17T19:54:48.000Z
2021-03-07T17:08:06.000Z
setup.py
nickhand/jupyter-panel-proxy
55f405b7292df281dfd0306f1154fb31992eef19
[ "BSD-3-Clause" ]
12
2020-03-04T13:45:26.000Z
2022-01-14T04:01:53.000Z
setup.py
nickhand/jupyter-panel-proxy
55f405b7292df281dfd0306f1154fb31992eef19
[ "BSD-3-Clause" ]
3
2021-03-08T13:26:50.000Z
2021-12-20T01:02:00.000Z
import param from setuptools import find_packages, setup extras_require = { 'build': ['param >=1.7.0', 'setuptools'], 'tests': [ 'flake8', 'twine', 'rfc3986', 'keyring' ], } setup_args = dict( name="jupyter-panel-proxy", description='Jupyter Server Proxy for Panel...
31.969697
96
0.619905
216
2,110
5.87963
0.527778
0.047244
0.066929
0.072441
0.115748
0.115748
0.089764
0
0
0
0
0.013522
0.22891
2,110
65
97
32.461538
0.767056
0
0
0.033333
0
0.016667
0.511848
0.048341
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
172229cdfd779697e208462fd6b7eaf4fd180fa2
4,579
py
Python
cli/api.py
chacreton190/covid-data-model
10e86dee0aa17e9a4261787203d30c4631b5afb1
[ "MIT" ]
null
null
null
cli/api.py
chacreton190/covid-data-model
10e86dee0aa17e9a4261787203d30c4631b5afb1
[ "MIT" ]
null
null
null
cli/api.py
chacreton190/covid-data-model
10e86dee0aa17e9a4261787203d30c4631b5afb1
[ "MIT" ]
null
null
null
import api import logging import pathlib import click import itertools import us from api.can_api_definition import CovidActNowAreaTimeseries from api.can_api_definition import CovidActNowBulkTimeseries from libs.pipelines import api_pipeline from libs.datasets.dataset_utils import AggregationLevel from libs.datasets i...
33.181159
100
0.72767
551
4,579
5.791289
0.22686
0.041366
0.023504
0.025071
0.505798
0.492949
0.429646
0.374491
0.351614
0.351614
0
0.002623
0.167504
4,579
137
101
33.423358
0.83447
0.051103
0
0.336207
0
0
0.147643
0.01964
0
0
0
0
0
1
0.043103
false
0.008621
0.112069
0.008621
0.163793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17227cf30b721c2e199e41d4753d20961284c5a7
2,335
py
Python
WilliamWallace/choose_db_dialog.py
gilliM/wallace
59202aefb6375f23fa6be72c13969bfe36614433
[ "Apache-2.0" ]
null
null
null
WilliamWallace/choose_db_dialog.py
gilliM/wallace
59202aefb6375f23fa6be72c13969bfe36614433
[ "Apache-2.0" ]
null
null
null
WilliamWallace/choose_db_dialog.py
gilliM/wallace
59202aefb6375f23fa6be72c13969bfe36614433
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** WilliamWallaceDialog A QGIS plugin This plugin do a supervised classification ------------------- begin : 2016-05-17 git...
40.258621
77
0.468951
191
2,335
5.638743
0.623037
0.044568
0.029712
0.042711
0
0
0
0
0
0
0
0.010038
0.317345
2,335
57
78
40.964912
0.665621
0.498073
0
0
0
0
0.072476
0.064711
0
0
0
0
0
1
0.111111
false
0
0.074074
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
172496d4e1a8fa80c8e14527010611354beb9faf
20,039
py
Python
PyYDLidar/PyX.py
SweiLz/PyYDLidar
ce2d916904af6cad3f64c6a48f7e6534b952d9a9
[ "MIT" ]
6
2020-09-02T15:32:22.000Z
2021-12-12T08:27:10.000Z
PyYDLidar/PyX.py
SweiLz/PyYDLidar
ce2d916904af6cad3f64c6a48f7e6534b952d9a9
[ "MIT" ]
1
2020-03-21T15:24:30.000Z
2020-03-22T16:50:33.000Z
PyYDLidar/PyX.py
SweiLz/PyYDLidar
ce2d916904af6cad3f64c6a48f7e6534b952d9a9
[ "MIT" ]
null
null
null
import threading import time from math import atan, pi import numpy as np from serial import Serial class Lidar: RESULT_OK = 0 RESULT_TIMEOUT = -1 RESULT_FAIL = -2 DEFAULT_TIMEOUT = 2000 cmd_stop = 0x65 cmd_scan = 0x60 cmd_force_scan = 0x61 cmd_reset = 0x80 cmd_force_stop = 0x00...
33.849662
111
0.532062
2,071
20,039
4.928054
0.134718
0.036253
0.034294
0.010778
0.471977
0.417402
0.389379
0.333235
0.32138
0.28885
0
0.035867
0.380857
20,039
591
112
33.906937
0.786733
0.08199
0
0.433036
0
0
0.009166
0
0
0
0.007802
0
0
1
0.040179
false
0.006696
0.011161
0
0.171875
0.011161
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1725e9716ced32c4e508d22f5f3d4b1ba272e429
44,983
py
Python
Icarus/Photometry/Photometry_legacy.py
mhvk/Icarus
bd07ba440cc82d4374e90d6d95dc8844fd82ff19
[ "BSD-3-Clause" ]
10
2016-03-01T10:12:30.000Z
2021-08-02T02:36:53.000Z
Icarus/Photometry/Photometry_legacy.py
mhvk/Icarus
bd07ba440cc82d4374e90d6d95dc8844fd82ff19
[ "BSD-3-Clause" ]
2
2016-03-30T07:13:09.000Z
2016-04-15T08:54:09.000Z
Icarus/Photometry/Photometry_legacy.py
mhvk/Icarus
bd07ba440cc82d4374e90d6d95dc8844fd82ff19
[ "BSD-3-Clause" ]
13
2016-02-29T19:20:01.000Z
2017-05-21T15:25:32.000Z
# Licensed under a 3-clause BSD style license - see LICENSE from __future__ import print_function, division __all__ = ["Photometry_legacy"] from ..Utils.import_modules import * from .. import Utils from .. import Core from .. import Atmosphere ######################## class Photometry ######################## class...
52.003468
262
0.569415
5,983
44,983
4.217617
0.106301
0.026948
0.009154
0.010779
0.626575
0.584687
0.561306
0.543037
0.536181
0.526234
0
0.023577
0.319232
44,983
864
263
52.063657
0.800444
0.505013
0
0.407186
0
0.005988
0.087424
0
0
0
0
0
0
1
0.038922
false
0
0.01497
0
0.107784
0.08982
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17271fe6063a50ed2061ed3af93c658a70080d06
3,952
py
Python
stayhome/business/forms/add_form.py
mageo/stayhomech
5afe922b13f0350a79eaff0401709f99c5a31e8b
[ "MIT" ]
3
2020-03-20T11:01:57.000Z
2020-03-20T16:29:12.000Z
stayhome/business/forms/add_form.py
stayhomech/stayhomech
5afe922b13f0350a79eaff0401709f99c5a31e8b
[ "MIT" ]
74
2020-03-23T21:35:07.000Z
2020-04-27T12:55:50.000Z
stayhome/business/forms/add_form.py
mageo/stayhomech
5afe922b13f0350a79eaff0401709f99c5a31e8b
[ "MIT" ]
3
2020-03-20T11:02:35.000Z
2020-03-20T16:29:23.000Z
import json import os import uuid from django import forms from captcha.fields import ReCaptchaField from phonenumber_field.formfields import PhoneNumberField from django.utils.translation import gettext_lazy as _ from django.utils.translation import get_language from geodata.models import NPA from business.models im...
29.274074
139
0.585779
420
3,952
5.380952
0.307143
0.087611
0.066372
0.083628
0.35177
0.290265
0.221239
0.19115
0.19115
0.19115
0
0.008909
0.28998
3,952
134
140
29.492537
0.796507
0.006326
0
0.292035
0
0.00885
0.245413
0
0
0
0
0
0
1
0.017699
false
0
0.088496
0.00885
0.20354
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
172924a6a260577eee406ab8308643a692027ef4
1,897
py
Python
src/management_tools.py
EOEPCA/um-pep-engine
efdf87027b54efc5686b3abd3882095441994978
[ "Apache-2.0" ]
null
null
null
src/management_tools.py
EOEPCA/um-pep-engine
efdf87027b54efc5686b3abd3882095441994978
[ "Apache-2.0" ]
3
2021-04-12T11:40:39.000Z
2022-03-08T17:04:03.000Z
src/management_tools.py
EOEPCA/um-pep-engine
efdf87027b54efc5686b3abd3882095441994978
[ "Apache-2.0" ]
1
2020-07-22T10:35:58.000Z
2020-07-22T10:35:58.000Z
#!/usr/local/bin/python3 import argparse import sys from handlers.mongo_handler import Mongo_Handler from bson.json_util import dumps custom_mongo = Mongo_Handler("resource_db", "resources") def list_resources(user,resource): if resource is not None: return custom_mongo.get_from_mongo("resource_id", resou...
33.875
84
0.641539
237
1,897
4.983122
0.333333
0.065199
0.038103
0.043184
0.286198
0.193057
0.193057
0.193057
0.064352
0
0
0.00138
0.236162
1,897
55
85
34.490909
0.813665
0.012124
0
0.045455
0
0
0.214095
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.295455
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
172a85f182f53fccf2d57615f7dc161c29331240
2,310
py
Python
python/speaker_2_sound.py
now-start/20_HI001L_-
494607c21a17c093e0d6bad102416c1afa348982
[ "MIT" ]
null
null
null
python/speaker_2_sound.py
now-start/20_HI001L_-
494607c21a17c093e0d6bad102416c1afa348982
[ "MIT" ]
null
null
null
python/speaker_2_sound.py
now-start/20_HI001L_-
494607c21a17c093e0d6bad102416c1afa348982
[ "MIT" ]
null
null
null
# speaker_2_sound.py # 한 스피커로 녹음해서 정위상, 역위상 wav를 생성한 다음 정위상은 왼쪽, 역위상은 오른쪽 스피커에서 재생시키는 소스코드 # (정위상, 역위상 파일을 하나의 스테레오 wav로 만듦) # 음성(소음) 녹음, 재생 하는 패키지(wav파일) import pyaudio import wave # 위상 반전, 파장 결합(Merge), 소리 재생 하는 패키지 from pydub import AudioSegment from pydub.playback import play from scipy.io import wavfile import...
23.814433
74
0.713853
352
2,310
4.596591
0.508523
0.033993
0.033375
0.012361
0.024722
0.024722
0.024722
0
0
0
0
0.016719
0.171429
2,310
96
75
24.0625
0.828631
0.311688
0
0
0
0
0.144779
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.104167
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
172d04249db22c0e936f3d55daaddef381d26533
1,230
py
Python
demo_wait_negative.py
rdagger/micropython-ads1220
c90f939517c8163b234210b8cf91b3ce948b5b1c
[ "MIT" ]
2
2021-08-25T11:40:23.000Z
2022-02-28T05:31:18.000Z
demo_wait_negative.py
rdagger/micropython-ads1220
c90f939517c8163b234210b8cf91b3ce948b5b1c
[ "MIT" ]
null
null
null
demo_wait_negative.py
rdagger/micropython-ads1220
c90f939517c8163b234210b8cf91b3ce948b5b1c
[ "MIT" ]
1
2021-08-08T11:39:47.000Z
2021-08-08T11:39:47.000Z
"""ADS1220 example (monitor for negative voltage).""" from time import sleep from machine import Pin, SPI # type: ignore from ads1220 import ADC cs = 15 # Chip select pin drdy = 27 # Data ready pin spi = SPI(1, baudrate=10000000, # 10 MHz (try lower speed to troubleshoot) sck=Pin(14), ...
26.73913
72
0.598374
161
1,230
4.509317
0.590062
0.041322
0.038567
0
0
0
0
0
0
0
0
0.063657
0.297561
1,230
45
73
27.333333
0.77662
0.279675
0
0
0
0
0.068366
0
0
0
0
0
0
1
0.028571
false
0
0.085714
0
0.114286
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
172ec1ffd20a09752459f22ce0256f74dd0dd346
10,026
py
Python
models/unet.py
c22n/unet-pytorch
fc0db7ca69d4149c736b8d0923272f14fb5693fe
[ "MIT" ]
3
2018-03-10T05:48:42.000Z
2018-07-25T01:18:30.000Z
models/unet.py
c22n/unet-pytorch
fc0db7ca69d4149c736b8d0923272f14fb5693fe
[ "MIT" ]
null
null
null
models/unet.py
c22n/unet-pytorch
fc0db7ca69d4149c736b8d0923272f14fb5693fe
[ "MIT" ]
null
null
null
### Class to define 3D U-Net. from typing import List, Tuple import numpy as np import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F from models.custom_layers import Softmax3d class AnalysisLayer(nn.Module): """Module for analysis layer of U-Net architecture."""...
35.679715
80
0.555855
1,228
10,026
4.381922
0.142508
0.046831
0.026017
0.022487
0.328749
0.259245
0.218361
0.183795
0.116335
0.107229
0
0.015579
0.353381
10,026
280
81
35.807143
0.814438
0.264014
0
0.25
0
0
0
0
0
0
0
0.003571
0
1
0.070513
false
0
0.044872
0
0.185897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1731602b3f7eea63308baa2e86c34fe547fe10ff
812
py
Python
matrix/matrix.py
GlibGozer/Matrix
5bc978a47a63ccf51b0be01ab28f5eca5819bcba
[ "Apache-2.0" ]
null
null
null
matrix/matrix.py
GlibGozer/Matrix
5bc978a47a63ccf51b0be01ab28f5eca5819bcba
[ "Apache-2.0" ]
null
null
null
matrix/matrix.py
GlibGozer/Matrix
5bc978a47a63ccf51b0be01ab28f5eca5819bcba
[ "Apache-2.0" ]
null
null
null
import os import random from discord.ext import commands from dotenv import load_dotenv load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') bot = commands.Bot(command_prefix='m!') @bot.command(name='compliment', help='Makes you feel better') async def nine_nine(ctx): compliments = [ 'Everyone...
27.066667
92
0.652709
111
812
4.711712
0.657658
0.038241
0
0
0
0
0
0
0
0
0
0.006504
0.242611
812
30
93
27.066667
0.843902
0
0
0
0
0
0.271684
0
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
173361be9e30006fffba077574f0e94fd3d9ef74
1,602
py
Python
utils/plotting.py
marcelo-santos-12/lbp_paper
56d2457dce2c97a16de9e034b1a87ef0ceb9446a
[ "MIT" ]
null
null
null
utils/plotting.py
marcelo-santos-12/lbp_paper
56d2457dce2c97a16de9e034b1a87ef0ceb9446a
[ "MIT" ]
null
null
null
utils/plotting.py
marcelo-santos-12/lbp_paper
56d2457dce2c97a16de9e034b1a87ef0ceb9446a
[ "MIT" ]
null
null
null
''' Modulo que implementa as funcoes de plot da curva roc ''' import matplotlib.pyplot as plt import numpy as np import os from sklearn.metrics import plot_roc_curve plt.style.use('ggplot') def plot_results(_id, best_clf, x_test, y_test, method, variant, P, R, output): if not os.path.exists(output + '/ARR_ROC/...
36.409091
125
0.632959
238
1,602
3.987395
0.340336
0.063224
0.075869
0.080084
0.399368
0.38883
0.328767
0.273973
0.202318
0.202318
0
0.004535
0.174157
1,602
44
126
36.409091
0.712774
0.078652
0
0
0
0
0.157357
0.066757
0
0
0
0
0
1
0.04
false
0
0.2
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17352702a9e2965909b6092dc8c8e7e3c676d60c
552
py
Python
tests/algorithms/test_rice_siff.py
rvyjidacek/fcapsy
6d531a337b0e65cac10e41b84d232498f3a05b76
[ "MIT" ]
null
null
null
tests/algorithms/test_rice_siff.py
rvyjidacek/fcapsy
6d531a337b0e65cac10e41b84d232498f3a05b76
[ "MIT" ]
null
null
null
tests/algorithms/test_rice_siff.py
rvyjidacek/fcapsy
6d531a337b0e65cac10e41b84d232498f3a05b76
[ "MIT" ]
null
null
null
from fcapsy import Lattice, Context, Concept from fcapsy.similarity import jaccard from fcapsy.algorithms.rice_siff import concept_subset object_labels = tuple(range(5)) attribute_labels = tuple(range(4)) bools = [ [1, 0, 0, 0], [1, 1, 1, 0], [0, 1, 0, 1], [1, 1, 0, 0], [0, 0, 1, 0], ] context = Co...
24
57
0.682971
79
552
4.64557
0.367089
0.032698
0.024523
0.021798
0.032698
0.032698
0
0
0
0
0
0.049774
0.199275
552
22
58
25.090909
0.780543
0
0
0
0
0
0
0
0
0
0
0
0.055556
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
17363b957c4247dd1d67870327e5ffafa8e428ab
17,766
py
Python
examples/direct_fidelity_estimation.py
Apratim7py/Cirq
90bbd14f352980cc222b1b3c05a40d09734b9070
[ "Apache-2.0" ]
null
null
null
examples/direct_fidelity_estimation.py
Apratim7py/Cirq
90bbd14f352980cc222b1b3c05a40d09734b9070
[ "Apache-2.0" ]
null
null
null
examples/direct_fidelity_estimation.py
Apratim7py/Cirq
90bbd14f352980cc222b1b3c05a40d09734b9070
[ "Apache-2.0" ]
null
null
null
"""Implements direct fidelity estimation. Fidelity between the desired pure state rho and the actual state sigma is defined as: F(rho, sigma) = Tr (rho sigma) It is a unit-less measurement between 0.0 and 1.0. The following two papers independently described a faster way to estimate its value: Direct Fidelity Estima...
38.960526
80
0.647923
2,327
17,766
4.792866
0.179201
0.029588
0.016318
0.020084
0.354703
0.300188
0.25473
0.203622
0.194298
0.154667
0
0.015267
0.281042
17,766
455
81
39.046154
0.857903
0.373185
0
0.194444
0
0
0.061417
0.002628
0
0
0
0.002198
0.027778
1
0.041667
false
0
0.050926
0
0.185185
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1738bf0d16768883469e7f50b35ee82154920665
3,364
py
Python
large_data_analysis/treePlotter.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
large_data_analysis/treePlotter.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
large_data_analysis/treePlotter.py
Codefans-fan/p2pSpider
2f76fb43f3527cea8ed208089153ec12660907f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on Mar 21, 2016 @author: fky ''' import matplotlib.pyplot as plt decisionNode = dict(boxstyle='sawtooth',fc='0.8') leafNode = dict(boxstyle='round4',fc='0.8') arrow_args = dict(arrowstyle='<-') def plotNode(nodeTxt,centerPt,parentPt,nodeType): createPlot.ax1.annot...
32.660194
117
0.612663
401
3,364
5.079801
0.274314
0.008837
0.007855
0.032401
0.303387
0.251841
0.228277
0.167403
0.095729
0.095729
0
0.034443
0.231867
3,364
103
118
32.660194
0.75387
0.017836
0
0.298701
0
0
0.055086
0
0
0
0
0
0
1
0.103896
false
0
0.012987
0
0.155844
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
173d794fa36219432d2bd1e7a2317117f2a2f269
2,617
py
Python
protogen/core.py
connermarzen/proto_gen_compiler
38c045dcf90dcf3122dcc389c9ff0e200f9ba21d
[ "MIT" ]
null
null
null
protogen/core.py
connermarzen/proto_gen_compiler
38c045dcf90dcf3122dcc389c9ff0e200f9ba21d
[ "MIT" ]
null
null
null
protogen/core.py
connermarzen/proto_gen_compiler
38c045dcf90dcf3122dcc389c9ff0e200f9ba21d
[ "MIT" ]
null
null
null
import glob import os import sys from pprint import pprint from typing import List from lark import Lark from protogen.grammar.transformer import PGTransformer from protogen.util import PGFile class PGParser(object): def __init__(self, inputs: List[str], syntaxPath: str = 'grammar/proto_gen.lar...
34.434211
79
0.549866
301
2,617
4.671096
0.365449
0.076814
0.025605
0.027738
0.154339
0.154339
0.105263
0.105263
0.105263
0.105263
0
0.001713
0.330913
2,617
75
80
34.893333
0.801256
0.071074
0
0.12069
0
0
0.184742
0.009072
0
0
0
0
0
1
0.103448
false
0
0.137931
0
0.275862
0.258621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
173e0d807440fb436cd40c600fbbb74b5622d72c
6,145
py
Python
shell/packaging/setup.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
null
null
null
shell/packaging/setup.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
1
2022-03-29T21:58:11.000Z
2022-03-29T21:58:11.000Z
shell/packaging/setup.py
garyli1019/impala
ea0e1def6160d596082b01365fcbbb6e24afb21d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licen...
36.147059
84
0.706591
873
6,145
4.879725
0.34937
0.039437
0.016432
0.009859
0.092019
0.077934
0.052582
0.052582
0.052582
0.052582
0
0.012779
0.197722
6,145
169
85
36.360947
0.851318
0.479414
0
0.024096
0
0
0.347051
0.020739
0
0
0
0
0
1
0.024096
false
0
0.096386
0
0.144578
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17447407c571b28418fb7fbb866da851ca2f25a2
1,420
py
Python
tests/surf_curl_methods.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
17
2017-06-29T16:48:56.000Z
2021-10-03T18:31:41.000Z
tests/surf_curl_methods.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
4
2018-05-29T08:21:13.000Z
2021-04-01T01:28:50.000Z
tests/surf_curl_methods.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
8
2019-06-10T22:19:40.000Z
2022-01-12T20:55:37.000Z
import numpy as np basis_gradient = [[-1.0, -1.0], [1.0, 0.0], [0.0, 1.0]] e = [[[int((i - j) * (j - k) * (k - i) / 2) for k in range(3)] for j in range(3)] for i in range(3)] tri = np.random.rand(3,3) # tri = np.array([[0,0,0],[1.1,0,0],[0,1.1,0]]) # tri = np.array([[0,0,0],[1,1,0],[0,1,0]]) surf_curl = np.empt...
28.4
102
0.607042
260
1,420
3.157692
0.192308
0.102314
0.107186
0.093788
0.320341
0.205847
0.200974
0.200974
0.165652
0.165652
0
0.063167
0.208451
1,420
49
103
28.979592
0.66726
0.061268
0
0.131579
0
0
0
0
0
0
0
0
0.026316
1
0
false
0
0.026316
0
0.026316
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
1745411ed8dd4e2c057611bffced47e22e3caab1
1,119
py
Python
ga4gh/testbed/submit/report_submitter.py
ga4gh/ga4gh-testbed-lib
599bb28e58c82e30058239e04525fba313a4bae4
[ "Apache-2.0" ]
null
null
null
ga4gh/testbed/submit/report_submitter.py
ga4gh/ga4gh-testbed-lib
599bb28e58c82e30058239e04525fba313a4bae4
[ "Apache-2.0" ]
3
2022-03-21T18:30:27.000Z
2022-03-30T18:04:05.000Z
ga4gh/testbed/submit/report_submitter.py
ga4gh/ga4gh-testbed-lib
599bb28e58c82e30058239e04525fba313a4bae4
[ "Apache-2.0" ]
null
null
null
from re import sub import requests class ReportSubmitter(): def submit_report(series_id, series_token, report, url="http://localhost:4500/reports"): ''' Submits a report to the GA4GH testbed api. Required arguments: series_id - A series ID is needed by server to group...
33.909091
107
0.613941
126
1,119
5.293651
0.436508
0.116942
0.076462
0.068966
0
0
0
0
0
0
0
0.013942
0.294906
1,119
32
108
34.96875
0.831432
0.2395
0
0
0
0
0.20154
0.073171
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17458c0950b3d6fa10192f5ac3b3e23c730302f2
1,611
py
Python
phovea_server/_utils.py
phovea/phovea_server
f83879f58669ff4d554efcb727b1c6fd0185041a
[ "BSD-3-Clause" ]
3
2018-06-08T01:28:56.000Z
2020-01-10T14:17:34.000Z
phovea_server/_utils.py
phovea/phovea_server
f83879f58669ff4d554efcb727b1c6fd0185041a
[ "BSD-3-Clause" ]
88
2016-11-06T08:28:21.000Z
2022-03-22T07:18:59.000Z
phovea_server/_utils.py
phovea/phovea_server
f83879f58669ff4d554efcb727b1c6fd0185041a
[ "BSD-3-Clause" ]
6
2017-06-06T20:43:00.000Z
2020-02-13T18:23:46.000Z
############################################################################### # Caleydo - Visualization for Molecular Biology - http://caleydo.org # Copyright (c) The Caleydo Team. All rights reserved. # Licensed under the new BSD license, available at http://caleydo.org/license ######################################...
26.85
79
0.577902
216
1,611
4.217593
0.356481
0.008782
0.055982
0.015368
0.061471
0.061471
0.061471
0.061471
0
0
0
0.003101
0.199255
1,611
59
80
27.305085
0.703101
0.156425
0
0.15
0
0
0.065272
0
0
0
0
0
0
1
0.125
false
0
0.075
0.025
0.475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17479b6aa39e88b50ca6246c79ded1da0b011cc9
1,785
py
Python
ait/core/server/plugins/PacketAccumulator.py
kmarwah/AIT-Core
c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245
[ "MIT" ]
1
2022-01-22T13:55:49.000Z
2022-01-22T13:55:49.000Z
ait/core/server/plugins/PacketAccumulator.py
kmarwah/AIT-Core
c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245
[ "MIT" ]
2
2021-09-16T19:14:52.000Z
2021-09-16T19:16:03.000Z
ait/core/server/plugins/PacketAccumulator.py
kmarwah/AIT-Core
c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245
[ "MIT" ]
null
null
null
from ait.core.server.plugins import Plugin from gevent import Greenlet, sleep class PacketAccumulator(Plugin): def __init__(self, inputs=None, outputs=None, zmq_args=None, timer_seconds=1, max_size_octets=1024): super().__init__(inputs, outputs, zmq_args) self.packet_queue = [] self.size_...
34.326923
104
0.615126
228
1,785
4.578947
0.342105
0.105364
0.087165
0.072797
0.118774
0.118774
0.118774
0
0
0
0
0.017657
0.301961
1,785
51
105
35
0.820225
0.032493
0
0.2
0
0
0.133411
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
174851ae78f447b7133dd774eabe7edf75caa7c7
3,679
py
Python
services/ui_backend_service/data/cache/generate_dag_action.py
runsascoded/metaflow-service
ac7770dfeae17fd060129d408fa3bb472fc00b86
[ "Apache-2.0" ]
null
null
null
services/ui_backend_service/data/cache/generate_dag_action.py
runsascoded/metaflow-service
ac7770dfeae17fd060129d408fa3bb472fc00b86
[ "Apache-2.0" ]
null
null
null
services/ui_backend_service/data/cache/generate_dag_action.py
runsascoded/metaflow-service
ac7770dfeae17fd060129d408fa3bb472fc00b86
[ "Apache-2.0" ]
null
null
null
import hashlib import json from .client import CacheAction from .utils import streamed_errors, DAGParsingFailed, DAGUnsupportedFlowLanguage from .custom_flowgraph import FlowGraph from metaflow import Run, Step, DataArtifact, namespace from metaflow.exception import MetaflowNotFound namespace(None) # Always use glo...
29.669355
101
0.583582
404
3,679
5.153465
0.381188
0.025937
0.021614
0.036023
0.113353
0.066282
0.042267
0.042267
0.042267
0
0
0.002392
0.318293
3,679
123
102
29.910569
0.827751
0.220712
0
0.088235
0
0
0.094818
0
0
0
0
0
0
1
0.073529
false
0
0.102941
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
1749ab03881bd2e5bd99504afb6c2d2a4c5881b2
3,803
py
Python
examples/nontrivial/main.py
splnkit/splunk-tracer-python
4be681cbb4156284daaaa35dcca8c8992f1aa191
[ "MIT" ]
null
null
null
examples/nontrivial/main.py
splnkit/splunk-tracer-python
4be681cbb4156284daaaa35dcca8c8992f1aa191
[ "MIT" ]
null
null
null
examples/nontrivial/main.py
splnkit/splunk-tracer-python
4be681cbb4156284daaaa35dcca8c8992f1aa191
[ "MIT" ]
null
null
null
""" Synthetic example with high concurrency. Used primarily to stress test the library. """ import argparse import sys import time import threading import random # Comment out to test against the published copy import os sys.path.insert(1, os.path.dirname(os.path.realpath(__file__)) + '/../..') import opentracing imp...
34.572727
110
0.608467
451
3,803
4.944568
0.399113
0.036323
0.026906
0.026906
0.1713
0.142152
0.038565
0
0
0
0
0.010549
0.27715
3,803
109
111
34.889908
0.800655
0.131475
0
0.054054
0
0
0.132784
0.020147
0
0
0
0
0
1
0.040541
false
0
0.108108
0
0.162162
0.040541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
174c839ee6b2c3dcc46328886c1e0ff5e1298c8c
2,773
py
Python
pyoti/plugins/datasources/generic.py
cellular-nanoscience/pyotic
4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff
[ "Apache-2.0" ]
1
2018-06-12T11:46:54.000Z
2018-06-12T11:46:54.000Z
pyoti/plugins/datasources/generic.py
cellular-nanoscience/pyotic
4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff
[ "Apache-2.0" ]
6
2017-09-08T09:02:20.000Z
2018-11-14T10:22:01.000Z
pyoti/plugins/datasources/generic.py
cellular-nanoscience/pyotic
4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff
[ "Apache-2.0" ]
3
2017-09-08T11:08:28.000Z
2019-07-17T21:40:13.000Z
# -*- coding: utf-8 -*- """ Created on Fri Mar 18 13:41:17 2016 @author: Tobias Jachowski """ import inspect import numbers from pyoti.data.datasource import DataSource from pyoti.picklable import unboundfunction class GenericDataFile(DataSource): def __init__(self, load_data, filename, directory=None, sampling...
33.011905
77
0.573026
286
2,773
5.402098
0.258741
0.082848
0.069903
0.031068
0.579935
0.533333
0.339159
0.292557
0.292557
0.292557
0
0.011357
0.333213
2,773
83
78
33.409639
0.824229
0.112153
0
0.470588
0
0
0.055814
0
0
0
0
0
0
1
0.078431
false
0
0.078431
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
174dc1f508c7bead5580d0a22374724068ce4f6c
4,721
py
Python
src/matlab2cpp/rules/parallel.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
src/matlab2cpp/rules/parallel.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
src/matlab2cpp/rules/parallel.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
def variable_lists(node): nodes = node.flatten(ordered=False, reverse=False, inverse=False) #store some variable names, in private or shared assigned_var = [] type_info = [] #get iterator name iterator_name = node[0].name for n in nodes: if n.cls == "Assign": #index = ...
33.964029
100
0.528278
610
4,721
3.913115
0.180328
0.087558
0.069124
0.087558
0.440721
0.344365
0.322581
0.254294
0.221617
0.173858
0
0.008359
0.315823
4,721
138
101
34.210145
0.73065
0.222622
0
0.2
0
0.015385
0.182708
0.030669
0.076923
0
0
0
0
1
0.046154
false
0
0
0
0.092308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
174dd47506793e6d8f38f7f917f3d5a1459219eb
1,154
py
Python
test/test_clock.py
Ham22/python-as1130-clock
a97fbdf3d0fe5a9cafa7392458c44782f688daa7
[ "Apache-2.0" ]
null
null
null
test/test_clock.py
Ham22/python-as1130-clock
a97fbdf3d0fe5a9cafa7392458c44782f688daa7
[ "Apache-2.0" ]
null
null
null
test/test_clock.py
Ham22/python-as1130-clock
a97fbdf3d0fe5a9cafa7392458c44782f688daa7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import unittest from unittest.mock import MagicMock, call from clock import clock class TestClock(unittest.TestCase): def setUp(self): self.grid = MagicMock() self.clock = clock.Clock(self.grid) def test_grid_is_cleared_before_setting_new_led(self): self.clock.up...
26.227273
67
0.681109
171
1,154
4.280702
0.327485
0.087432
0.071038
0.103825
0.513661
0.513661
0.409836
0.409836
0.409836
0.362022
0
0.020585
0.200173
1,154
43
68
26.837209
0.772481
0.014731
0
0.269231
0
0
0.007042
0
0
0
0
0
0.192308
1
0.192308
false
0
0.115385
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
174f039433c2e09bc4b24b82001c92bcb71f38f0
2,580
py
Python
opencv/crop_youtube_video_screenshots.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
1
2016-08-07T07:45:24.000Z
2016-08-07T07:45:24.000Z
opencv/crop_youtube_video_screenshots.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
null
null
null
opencv/crop_youtube_video_screenshots.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 """A script to iterate through directories and produce cropped images. The images contain the video screen area of YouTube videos. The screenshots were taken from my computer, with 900/1600 resolution, and the location is always the same for the ROI. Ideally a future version will automatically...
32.25
103
0.660465
330
2,580
4.981818
0.460606
0.060219
0.024331
0.021898
0.082725
0.082725
0.082725
0
0
0
0
0.016129
0.231008
2,580
79
104
32.658228
0.8125
0.174031
0
0.046512
0
0
0.08494
0.013549
0
0
0
0
0
1
0
false
0
0.116279
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1754c01d73f56bdac624a68f9dd5e0ed03393ed4
1,297
py
Python
setup.py
carlosdamazio/python-aisweb
bc54e26b5ea758bcc69351d268a44e0b520d0956
[ "MIT" ]
8
2018-04-03T15:07:09.000Z
2022-03-13T13:12:45.000Z
setup.py
carlosdamazio/python-aisweb
bc54e26b5ea758bcc69351d268a44e0b520d0956
[ "MIT" ]
5
2018-04-03T20:09:24.000Z
2019-09-10T01:17:42.000Z
setup.py
carlosdamazio/python-aisweb
bc54e26b5ea758bcc69351d268a44e0b520d0956
[ "MIT" ]
1
2018-04-03T04:09:58.000Z
2018-04-03T04:09:58.000Z
# -*- coding: utf-8 -*- from setuptools import find_packages, setup import os import re package = 'python_aisweb' init_py = open(os.path.join(package, '__init__.py')).read() version = re.search( "^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) author = re.search( "^__author__ = ['\"]([^'...
27.595745
75
0.619121
140
1,297
5.55
0.535714
0.03861
0.030888
0.065637
0.088803
0.088803
0
0
0
0
0
0.005709
0.189668
1,297
46
76
28.195652
0.733587
0.016191
0
0
0
0
0.324961
0
0
0
0
0
0
1
0
false
0
0.131579
0
0.131579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
175519be4a7561f84e8552643f76c512dbaaf58b
1,254
py
Python
external_api_tests/test_weather.py
AbhinavTalari/SOAD-Project
aa89f481da2b6f29c8750d9c144f82368be81a7b
[ "MIT" ]
null
null
null
external_api_tests/test_weather.py
AbhinavTalari/SOAD-Project
aa89f481da2b6f29c8750d9c144f82368be81a7b
[ "MIT" ]
null
null
null
external_api_tests/test_weather.py
AbhinavTalari/SOAD-Project
aa89f481da2b6f29c8750d9c144f82368be81a7b
[ "MIT" ]
2
2020-12-21T07:05:41.000Z
2021-02-17T17:33:48.000Z
import pytest import requests MY_KEY = '02db6ca787d18d34175d3c7996cf193b' @pytest.mark.parametrize("key , q , extras" , [ (MY_KEY , "London" , "okay") , ('' , "London" , "Wrong key"), ('abc' , "London" , "Wrong key"), (MY_KEY , "abc" , "Wrong city"), (MY_KEY , " " , "blank city"), ('' ...
20.225806
116
0.596491
150
1,254
4.946667
0.353333
0.188679
0.114555
0.056604
0.474394
0.474394
0.474394
0.474394
0.474394
0.474394
0
0.044761
0.216108
1,254
61
117
20.557377
0.710071
0
0
0.266667
0
0
0.39645
0.02705
0
0
0
0
0.333333
1
0.033333
false
0
0.066667
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
175675d7610b11f7f5a72c44eb62e7eb639038db
1,372
py
Python
plugins/operators/vivareal_operator.py
lucaspfigueiredo/elt-pipeline
71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f
[ "MIT" ]
2
2022-03-29T23:48:35.000Z
2022-03-30T02:10:34.000Z
plugins/operators/vivareal_operator.py
lucaspfigueiredo/elt-pipeline
71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f
[ "MIT" ]
null
null
null
plugins/operators/vivareal_operator.py
lucaspfigueiredo/elt-pipeline
71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f
[ "MIT" ]
null
null
null
import json import logging from hooks.vivareal_hook import VivarealHook from airflow.utils.decorators import apply_defaults from airflow.models.baseoperator import BaseOperator from airflow.providers.amazon.aws.hooks.s3 import S3Hook logger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) class...
31.181818
80
0.625364
164
1,372
4.926829
0.45122
0.086634
0.089109
0.059406
0.086634
0
0
0
0
0
0
0.018109
0.27551
1,372
44
81
31.181818
0.794769
0
0
0
0
0
0.093955
0.015295
0
0
0
0
0
1
0.055556
false
0
0.166667
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
1758ea53434e4693152e9c5c19753c1eb492d79b
13,073
py
Python
Artie/internals/rl/environment.py
MaxStrange/ArtieInfant
1edbb171a5405d2971227f2d2d83acb523c70034
[ "MIT" ]
1
2018-04-28T16:55:05.000Z
2018-04-28T16:55:05.000Z
Artie/internals/rl/environment.py
MaxStrange/ArtieInfant
1edbb171a5405d2971227f2d2d83acb523c70034
[ "MIT" ]
null
null
null
Artie/internals/rl/environment.py
MaxStrange/ArtieInfant
1edbb171a5405d2971227f2d2d83acb523c70034
[ "MIT" ]
null
null
null
""" This module provides the observations and rewards for testing and for training the RL agent to vocalize. """ import collections import logging import math import numpy as np import random import output.voice.synthesizer as synth # pylint: disable=locally-disabled, import-error import warnings Step = collections.n...
47.365942
146
0.599556
1,633
13,073
4.682792
0.219228
0.018831
0.019877
0.025108
0.197986
0.178632
0.145417
0.134432
0.134432
0.125016
0
0.008052
0.315995
13,073
275
147
47.538182
0.847126
0.448864
0
0.139706
0
0
0.051155
0.005115
0
0
0
0
0.044118
1
0.102941
false
0
0.051471
0.007353
0.227941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
175a3b4d2739554618c982905727d9731a509a3f
934
py
Python
boot.py
Ca11MeE/easy_frame
c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8
[ "Apache-2.0" ]
null
null
null
boot.py
Ca11MeE/easy_frame
c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8
[ "Apache-2.0" ]
null
null
null
boot.py
Ca11MeE/easy_frame
c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from flask import Flask import mysql,os,re from mysql import Pool import properties # 定义WEB容器(同时防止json以ascii解码返回) app=Flask(__name__) app.config['JSON_AS_ASCII'] = False # 处理各模块中的自动注入以及组装各蓝图 # dir_path中为蓝图模块路径,例如需要引入的蓝图都在routes文件夹中,则传入参数'/routes' def map_apps(dir_path): path=os.getcwd()+dir_path ...
22.780488
96
0.639186
117
934
4.846154
0.555556
0.049383
0.038801
0
0
0
0
0
0
0
0
0.002729
0.215203
934
40
97
23.35
0.770805
0.165953
0
0
0
0
0.063472
0
0
0
0
0
0
1
0.074074
false
0.037037
0.185185
0.037037
0.296296
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
175af7185594f72ab16004503b17449a4a18cdad
3,213
py
Python
chemprop/train/evaluate.py
wangdingyan/hybridUQ
c141a4bec0e716a12444f7e9ab0d7c975df93184
[ "MIT" ]
6
2021-10-01T10:17:29.000Z
2021-12-29T04:37:10.000Z
chemprop/train/evaluate.py
wangdingyan/hybridUQ
c141a4bec0e716a12444f7e9ab0d7c975df93184
[ "MIT" ]
null
null
null
chemprop/train/evaluate.py
wangdingyan/hybridUQ
c141a4bec0e716a12444f7e9ab0d7c975df93184
[ "MIT" ]
1
2021-09-21T17:39:03.000Z
2021-09-21T17:39:03.000Z
from collections import defaultdict import logging from typing import Dict, List from .predict import predict from chemprop.data import MoleculeDataLoader, StandardScaler from chemprop.utils.metrics import get_metric_func from chemprop.models import MoleculeModel, PB_MoleculeModel def evaluate_predictions(preds ...
37.360465
114
0.545907
362
3,213
4.707182
0.218232
0.042254
0.038732
0.035211
0.304577
0.28169
0.192488
0.192488
0.146714
0.062207
0
0.005408
0.366947
3,213
85
115
37.8
0.83235
0.008092
0
0.253521
0
0
0.0427
0
0
0
0
0
0
1
0.028169
false
0
0.098592
0
0.169014
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
175dc9a3ede195f91638565c928e9e3207f1f8ca
1,026
py
Python
python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py
samwhelp/demo-libchewing
13ce445cf1b71e42e765d1500d63234f88700835
[ "MIT" ]
null
null
null
python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py
samwhelp/demo-libchewing
13ce445cf1b71e42e765d1500d63234f88700835
[ "MIT" ]
null
null
null
python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py
samwhelp/demo-libchewing
13ce445cf1b71e42e765d1500d63234f88700835
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import chewing import ctypes chewing._libchewing.chewing_userphrase_has_next.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_uint), ctypes.POINTER(ctypes.c_uint)] chewing._libchewing.chewing_userphrase_get.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_uint, ...
30.176471
138
0.770955
154
1,026
4.896104
0.331169
0.092838
0.087533
0.090186
0.366048
0.270557
0.209549
0.148541
0.148541
0.148541
0
0.015907
0.080897
1,026
33
139
31.090909
0.783669
0.236842
0
0
0
0
0.028497
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
1761cb53f94a10c32873088a40b0c2dc8567f7e7
18,276
py
Python
lib/rule_engine/types.py
rwspielman/rule-engine
1d84d5599fe5ab34bc8d6fc00bbe00f847352428
[ "BSD-3-Clause" ]
149
2018-04-04T12:47:38.000Z
2022-03-25T07:25:55.000Z
lib/rule_engine/types.py
rwspielman/rule-engine
1d84d5599fe5ab34bc8d6fc00bbe00f847352428
[ "BSD-3-Clause" ]
26
2020-01-06T17:29:26.000Z
2022-03-25T07:01:49.000Z
lib/rule_engine/types.py
rwspielman/rule-engine
1d84d5599fe5ab34bc8d6fc00bbe00f847352428
[ "BSD-3-Clause" ]
24
2020-02-15T22:58:30.000Z
2022-03-22T02:15:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # rule_engine/types.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list ...
35.695313
129
0.749343
2,717
18,276
4.832536
0.13986
0.049353
0.033663
0.016451
0.444021
0.402209
0.3508
0.301447
0.263823
0.224752
0
0.003788
0.162289
18,276
511
130
35.765166
0.853821
0.376012
0
0.328571
0
0
0.087252
0.002526
0
0
0
0
0
1
0.125
false
0.007143
0.021429
0.053571
0.442857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17623540444eb9269b6276c7ee4a47d541023c28
2,437
py
Python
data_pr_downloader.py
froi/data-pr
07b386457f1868573181928cc8caecc970e7b44f
[ "MIT" ]
6
2018-01-09T14:58:42.000Z
2019-09-17T19:52:03.000Z
data_pr_downloader.py
froi/data-pr
07b386457f1868573181928cc8caecc970e7b44f
[ "MIT" ]
40
2019-08-21T12:05:26.000Z
2021-07-14T10:39:27.000Z
data_pr_downloader.py
froi/data-pr
07b386457f1868573181928cc8caecc970e7b44f
[ "MIT" ]
1
2018-01-09T21:23:53.000Z
2018-01-09T21:23:53.000Z
from datetime import datetime import json import logging from mimetypes import guess_extension import os import requests from slugify import slugify FORMAT = '%(asctime)-15s - %(message)s' logging.basicConfig(format=FORMAT) logger = logging.getLogger('data_pr') BASE_DATA_DIR = 'data_files' DATA_PR_CATALOG_PATH = f'{B...
34.814286
87
0.685679
329
2,437
4.778116
0.270517
0.072519
0.107506
0.035623
0.23028
0.117048
0.117048
0.09542
0.049618
0
0
0.002572
0.202298
2,437
69
88
35.318841
0.80607
0
0
0.113208
0
0
0.264259
0.080837
0
0
0
0
0
1
0.056604
false
0
0.132075
0
0.188679
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1764184768f6f8663aaf405c83cd769d6fb4865b
1,735
py
Python
CodeBERT/preprocess_data.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
null
null
null
CodeBERT/preprocess_data.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
null
null
null
CodeBERT/preprocess_data.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
null
null
null
import gzip import glob import os import json import numpy as np from more_itertools import chunked DATA_DIR = '/mnt/wanyao/zsj/codesearchnet' DEST_DIR = '/mnt/wanyao/zsj/CodeBERT/data/codesearch/train_valid' def format_str(string): for char in ['\r\n', '\r', '\n']: string = string.replace(char, ' ') ...
33.365385
110
0.616138
236
1,735
4.360169
0.419492
0.03207
0.034985
0.029155
0.029155
0
0
0
0
0
0
0.005251
0.2317
1,735
51
111
34.019608
0.766692
0.035159
0
0
0
0
0.136962
0.048445
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.261905
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17690a767660c008e60f5e5fe1a87037ce7c37c2
28,559
py
Python
bruhat/huffman.py
punkdit/bruhat
3231eacc49fd3464542f7eb72684751371d9876c
[ "MIT" ]
3
2020-04-07T13:21:30.000Z
2020-07-15T02:07:20.000Z
bruhat/huffman.py
punkdit/bruhat
3231eacc49fd3464542f7eb72684751371d9876c
[ "MIT" ]
null
null
null
bruhat/huffman.py
punkdit/bruhat
3231eacc49fd3464542f7eb72684751371d9876c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ https://golem.ph.utexas.edu/category/2019/03/how_much_work_can_it_be_to_add.html#c055688 see also entropy.py """ import sys from functools import reduce from operator import add from math import log, log2 from random import shuffle, choice, randint, seed #import numpy #from matplotlib import...
26.105119
101
0.482755
4,274
28,559
3.178287
0.091951
0.008245
0.007951
0.010306
0.421084
0.340621
0.307126
0.283495
0.242933
0.207082
0
0.026142
0.357085
28,559
1,093
102
26.129003
0.713687
0.096607
0
0.362176
0
0.001236
0.02954
0
0
0
0
0
0.098888
1
0.075402
false
0.002472
0.013597
0.013597
0.190358
0.02225
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
176cfc7beca4767a39789010087bddac4d12b45d
1,759
py
Python
p384_Shuffle_an_Array.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p384_Shuffle_an_Array.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p384_Shuffle_an_Array.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
''' - Leetcode problem: 384 - Difficulty: Medium - Brief problem description: Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3. int[] nums = {1,2,3}; Solution solution = new Solution(nums); // Shuffle the array [1,2,3] and return its result. Any permutation of [1,2,3] mu...
23.77027
114
0.533258
229
1,759
4.069869
0.366812
0.060086
0.016094
0.035408
0.093348
0.06867
0.06867
0.06867
0.06867
0.06867
0
0.026247
0.350199
1,759
74
115
23.77027
0.789151
0.45992
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17710ad793bc93dd8874daa574ca41c7a810cdf1
1,210
py
Python
nestor/datasets/base.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
16
2018-07-06T16:36:56.000Z
2021-12-13T03:02:02.000Z
nestor/datasets/base.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
46
2018-08-06T15:51:35.000Z
2021-08-02T21:00:51.000Z
nestor/datasets/base.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
7
2020-04-27T18:56:24.000Z
2021-08-14T02:44:40.000Z
from pathlib import Path import pandas as pd def load_excavators(cleaned=False): """ Helper function to load excavator toy dataset. Hodkiewicz, M., and Ho, M. (2016) "Cleaning historical maintenance work order data for reliability analysis" in Journal of Quality in Maintenance Engineering, Vol 22...
35.588235
175
0.676033
155
1,210
5.193548
0.63871
0.037267
0.042236
0.052174
0.077019
0
0
0
0
0
0
0.022629
0.233058
1,210
33
176
36.666667
0.844828
0.631405
0
0
0
0
0.127321
0.058355
0
0
0
0
0
1
0.090909
false
0
0.181818
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
177194c329dea268086e33e7d66d605e4b6732f1
2,094
py
Python
server/test/test_server.py
byee123/battleships
0cd527217c8727f7b3274d8a661cbf8d49aa4276
[ "MIT" ]
2
2020-11-02T08:04:06.000Z
2020-11-25T12:20:45.000Z
server/test/test_server.py
byee123/battleships
0cd527217c8727f7b3274d8a661cbf8d49aa4276
[ "MIT" ]
17
2020-11-02T04:30:17.000Z
2020-12-07T00:35:34.000Z
server/test/test_server.py
byee123/battleships
0cd527217c8727f7b3274d8a661cbf8d49aa4276
[ "MIT" ]
14
2020-10-05T08:15:59.000Z
2020-11-28T10:31:40.000Z
import unittest from game import Game import server REDIS_HOST = '192.168.20.50' class TestServer(unittest.TestCase): """Please note that the tests in this suite only work if a Redis host is available (see REDIS_HOST above). """ def test_redis_connection(self): """Test that the Battleship ser...
33.238095
70
0.617479
263
2,094
4.787072
0.292776
0.04448
0.028594
0.035743
0.554408
0.554408
0.554408
0.527403
0.467037
0.405083
0
0.014199
0.293696
2,094
62
71
33.774194
0.837052
0.189112
0
0.388889
0
0
0.021753
0
0
0
0
0
0.305556
1
0.083333
false
0
0.083333
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1772a508f28a639e2e47a3e3c85f76e1e18b4977
12,643
py
Python
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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...
45.315412
91
0.536423
1,206
12,643
5.454395
0.237148
0.027364
0.041046
0.029188
0.331864
0.277896
0.232289
0.144117
0.106415
0.060201
0
0.005046
0.373013
12,643
278
92
45.478417
0.824776
0.081547
0
0.263393
0
0
0.111169
0.003884
0
0
0
0
0.008929
1
0.008929
false
0
0.053571
0
0.084821
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1773d93609383bcbb4fab691a8762940ea340e8e
1,470
py
Python
pset6/dna/dna.py
vipsum/cs50
b3aa05ae470faea657343644a4073814825ceb83
[ "MIT" ]
null
null
null
pset6/dna/dna.py
vipsum/cs50
b3aa05ae470faea657343644a4073814825ceb83
[ "MIT" ]
null
null
null
pset6/dna/dna.py
vipsum/cs50
b3aa05ae470faea657343644a4073814825ceb83
[ "MIT" ]
null
null
null
import csv import sys # error checking if len(sys.argv) != 3: print("ERROR. Usage: Usage: python dna.py data.csv sequence.txt") sys.exit(1) #opening csv file and sequence texts csvFile = open(sys.argv[1]) DNAsequence = open(sys.argv[2]).read() # reading csv file onto a dictionary csvReader = csv.DictReader(csvF...
34.186047
94
0.687075
188
1,470
5.37234
0.494681
0.020792
0.021782
0
0
0
0
0
0
0
0
0.010408
0.215646
1,470
42
95
35
0.865568
0.253742
0
0.057143
0
0
0.069789
0
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1777e634f97948573907da1787803d38c27f6c8f
311
py
Python
script_utils/read_file.py
img-caption-mania/img_caption_dl_textAnalytic
444385d928687673b5286ebb0a9b598de019916f
[ "Apache-2.0" ]
null
null
null
script_utils/read_file.py
img-caption-mania/img_caption_dl_textAnalytic
444385d928687673b5286ebb0a9b598de019916f
[ "Apache-2.0" ]
null
null
null
script_utils/read_file.py
img-caption-mania/img_caption_dl_textAnalytic
444385d928687673b5286ebb0a9b598de019916f
[ "Apache-2.0" ]
2
2020-06-30T20:53:09.000Z
2021-09-30T10:29:45.000Z
import os, sys, re, natsort ls = [this for this in os.listdir(os.getcwd() + '/' + str(sys.argv[1]))] # ls = ls.sort(key=lambda f: int(re.sub('\D', '', f))) ls = natsort.natsorted(ls,reverse=False) with open(os.getcwd() + '/' + str(sys.argv[2]), 'w') as f: for item in ls: f.write("%s\n" % item)
25.916667
72
0.569132
55
311
3.218182
0.6
0.090395
0.124294
0.158192
0.20339
0
0
0
0
0
0
0.007937
0.189711
311
11
73
28.272727
0.694444
0.167203
0
0
0
0
0.027344
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
177931d9295fee1cf93668dbfec3ca5bb4baf4e5
1,281
py
Python
utils.py
sc2h6o/DT
d1cde39c778d827efeb89c1b1d4d54d13214b51f
[ "MIT" ]
null
null
null
utils.py
sc2h6o/DT
d1cde39c778d827efeb89c1b1d4d54d13214b51f
[ "MIT" ]
null
null
null
utils.py
sc2h6o/DT
d1cde39c778d827efeb89c1b1d4d54d13214b51f
[ "MIT" ]
null
null
null
import numpy as np import cv2 import random def int_(x): if x==int(x): return int(x) else: return int(x+1) def rdint(x): return int(round(x)) def IoU(box1, box2): x1 = max(box1[0], box2[0]) y1 = max(box1[1], box2[1]) x2 = min(box1[0]+box1[2], box2[0]+box2[2]) y2 = min(box1[1]+box1[3], box2[1]+box2[3]) i...
20.333333
72
0.54879
274
1,281
2.558394
0.167883
0.10271
0.021398
0.028531
0.356633
0.333809
0.333809
0.333809
0.28388
0.28388
0
0.084325
0.213115
1,281
62
73
20.66129
0.611111
0
0
0.296296
0
0
0
0
0
0
0
0
0
1
0.12963
false
0
0.055556
0.018519
0.351852
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
177b2b2fc328442186cfa83ce8437c5a552fcc24
1,651
py
Python
models/conv_lstm.py
i1idan/schizophrenia-diagnosis-eeg-signals
50e51c16c6df0a61b5e62223c404039d659c9d48
[ "MIT" ]
5
2021-12-24T18:20:16.000Z
2022-01-27T19:45:28.000Z
models/conv_lstm.py
i1idan/schizophrenia-diagnosis-eeg-signals
50e51c16c6df0a61b5e62223c404039d659c9d48
[ "MIT" ]
null
null
null
models/conv_lstm.py
i1idan/schizophrenia-diagnosis-eeg-signals
50e51c16c6df0a61b5e62223c404039d659c9d48
[ "MIT" ]
1
2021-12-24T18:19:23.000Z
2021-12-24T18:19:23.000Z
from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras.layers import Flatten from tensorflow.keras.layers import Dropout from tensorflow.keras.layers import LSTM, Conv1D, GRU from tensorflow.keras.layers import TimeDistributed from tensorflow.keras.layers import M...
39.309524
89
0.643852
193
1,651
5.352332
0.310881
0.085189
0.147144
0.145208
0.575992
0.301065
0.301065
0.260407
0.260407
0.260407
0
0.02476
0.241672
1,651
41
90
40.268293
0.800319
0
0
0.114286
0
0
0.037553
0
0
0
0
0
0
1
0.057143
false
0
0.228571
0
0.342857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
177e8c1d5af7739ef2b33bcff39f04682a94721f
2,368
py
Python
Python/CoviDetect/covid_detect/sub_app/views.py
Idhant-6/HAcktoberfest-2021-With-Python
ae6f8b5aadeca5a7329fe8e8d7de3f5069e687a1
[ "MIT" ]
14
2021-10-01T16:53:27.000Z
2021-10-17T13:15:44.000Z
Python/CoviDetect/covid_detect/sub_app/views.py
Idhant-6/HAcktoberfest-2021-With-Python
ae6f8b5aadeca5a7329fe8e8d7de3f5069e687a1
[ "MIT" ]
37
2021-10-01T17:14:52.000Z
2021-10-21T17:26:14.000Z
Python/CoviDetect/covid_detect/sub_app/views.py
Idhant-6/Hacktoberfest-2021
ae6f8b5aadeca5a7329fe8e8d7de3f5069e687a1
[ "MIT" ]
38
2021-10-01T16:59:16.000Z
2021-10-30T16:05:31.000Z
from django.http import request from django.shortcuts import render,HttpResponse import cv2 import numpy as np import base64 import joblib from numpy.core.defchararray import join import sklearn import pywt def w2d(img, mode='haar', level=1): imArray = img #Datatype conversions #convert to grayscale ...
27.858824
101
0.669341
319
2,368
4.796238
0.38558
0.015686
0.037255
0.019608
0.035294
0.035294
0
0
0
0
0
0.046635
0.203125
2,368
84
102
28.190476
0.764176
0.082348
0
0
0
0
0.084142
0
0
0
0
0
0
1
0.084746
false
0
0.152542
0.016949
0.322034
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17801b23c209f52e4859df74018bcf887604f24c
5,060
py
Python
tube_dl/formats.py
hahv/tube_dl
4641c48d74c1881ddd6785784a3884bdea2ca674
[ "MIT" ]
17
2020-12-04T16:37:22.000Z
2022-02-26T10:19:02.000Z
tube_dl/formats.py
hahv/tube_dl
4641c48d74c1881ddd6785784a3884bdea2ca674
[ "MIT" ]
11
2020-12-13T01:41:33.000Z
2022-02-19T12:58:50.000Z
tube_dl/formats.py
hahv/tube_dl
4641c48d74c1881ddd6785784a3884bdea2ca674
[ "MIT" ]
10
2020-12-26T04:47:18.000Z
2022-02-10T09:49:19.000Z
import string import os import requests from tube_dl.extras import Output headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36', 'referer': 'https: //youtube.com'} class Format: def __init__(self, category, description, t...
37.481481
254
0.562055
619
5,060
4.470113
0.273021
0.054933
0.043007
0.045537
0.090351
0.017347
0
0
0
0
0
0.012261
0.33913
5,060
134
255
37.761194
0.815191
0.112451
0
0.136364
0
0.018182
0.14263
0.041497
0
0
0
0
0
1
0.090909
false
0
0.036364
0.036364
0.209091
0.009091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17810377c3837f4b8580799808c6d976e9b3f30b
619
py
Python
hopperpw/hopperpw/urls.py
teddywest32/hopper.pw
ff80ded3d34a5f33a5770d5e69405a66ff649a62
[ "BSD-3-Clause" ]
81
2015-01-03T20:35:52.000Z
2021-01-05T22:33:15.000Z
hopperpw/hopperpw/urls.py
teddywest32/hopper.pw
ff80ded3d34a5f33a5770d5e69405a66ff649a62
[ "BSD-3-Clause" ]
9
2015-02-04T15:14:12.000Z
2021-09-19T22:49:27.000Z
hopperpw/hopperpw/urls.py
teddywest32/hopper.pw
ff80ded3d34a5f33a5770d5e69405a66ff649a62
[ "BSD-3-Clause" ]
34
2015-01-01T06:19:23.000Z
2021-11-23T11:35:26.000Z
# coding=utf-8 from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^allauth/', include('allauth.urls')), url(r'^accounts/', include('accounts....
28.136364
67
0.701131
80
619
5.3125
0.3375
0.047059
0.098824
0.084706
0
0
0
0
0
0
0
0.00189
0.145396
619
21
68
29.47619
0.801512
0.019386
0
0
0
0
0.119008
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
178374b80192e344de3181d10c48f542eee0cc58
1,828
py
Python
export_name_list.py
brandyn-gilbert/DAT-281-CAPSTONE
d86dd62eab164e6845dee63954cacc0324a449bc
[ "MIT" ]
null
null
null
export_name_list.py
brandyn-gilbert/DAT-281-CAPSTONE
d86dd62eab164e6845dee63954cacc0324a449bc
[ "MIT" ]
null
null
null
export_name_list.py
brandyn-gilbert/DAT-281-CAPSTONE
d86dd62eab164e6845dee63954cacc0324a449bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 12, 2021 Developed for UIF to more easily handle the growing number of alumni they have, and to track interactions with said alumni. Final Project for CCAC DAT-281 @author: BKG """ import os import sqlite3 from sqlite3 import Error import pandas as pd def main(locat...
24.702703
83
0.609409
230
1,828
4.695652
0.530435
0.02963
0.018519
0.02963
0.064815
0.064815
0.064815
0
0
0
0
0.010895
0.297046
1,828
73
84
25.041096
0.829572
0.379103
0
0
0
0
0.372249
0.021053
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.21875
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
178891f94229c492f6f9626a23fde3974ba0c8f5
2,071
py
Python
old/Graph.py
csdevto/tradingbot
b024236f0d2801380e7f86aa1660c44060728eb1
[ "MIT" ]
null
null
null
old/Graph.py
csdevto/tradingbot
b024236f0d2801380e7f86aa1660c44060728eb1
[ "MIT" ]
null
null
null
old/Graph.py
csdevto/tradingbot
b024236f0d2801380e7f86aa1660c44060728eb1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt #Data Source import yfinance as yf import time, datetime, math from datetime import datetime import sqlite3 #Interval required 5 minutes con = sqlite3.connect("DB/stocks.db") #con.row_factory = sqlite3.Row stock = 'UBER' data = pd.read_sql_query("...
31.861538
172
0.652342
320
2,071
4.1875
0.378125
0.080597
0.058209
0.053731
0.250746
0.214925
0.146269
0.104478
0
0
0
0.050434
0.109609
2,071
64
173
32.359375
0.676247
0.139546
0
0.064516
0
0
0.222464
0
0
0
0
0
0
1
0
false
0
0.225806
0
0.225806
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
178b8f7b8817c326e1125ab56cb91128e6dfcebb
6,044
py
Python
stable_baselines_model_based_rl/sampler/gym_sampler.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
1
2022-01-08T17:08:13.000Z
2022-01-08T17:08:13.000Z
stable_baselines_model_based_rl/sampler/gym_sampler.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
5
2021-09-15T18:14:48.000Z
2021-09-19T16:17:51.000Z
stable_baselines_model_based_rl/sampler/gym_sampler.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
null
null
null
import csv import datetime import os import gym from gym.spaces import space from gym.spaces.box import Box from gym.spaces.discrete import Discrete from gym.spaces.multi_discrete import MultiDiscrete from definitions import ROOT_DIR from stable_baselines_model_based_rl.utils.configuration import Configuration from s...
43.797101
99
0.695069
814
6,044
4.891892
0.237101
0.056253
0.040683
0.035158
0.276745
0.200402
0.180563
0.118533
0.024108
0.024108
0
0.006325
0.215255
6,044
137
100
44.116788
0.833228
0.209464
0
0
0
0
0.138616
0.093336
0
0
0
0.007299
0
1
0.04878
false
0
0.146341
0
0.219512
0.036585
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
179047197bf91d3e14c6131b31ca97cf1748cbbb
1,238
py
Python
palaverapi/decorators.py
cocodelabs/api.palaverapp.com
cb517a2cd1dea12fadf4f72147fecf0105cbd717
[ "BSD-3-Clause" ]
3
2016-07-03T21:19:18.000Z
2021-07-10T18:32:16.000Z
palaverapi/decorators.py
cocodelabs/api.palaverapp.com
cb517a2cd1dea12fadf4f72147fecf0105cbd717
[ "BSD-3-Clause" ]
66
2015-03-27T21:52:11.000Z
2021-09-06T17:56:59.000Z
palaverapi/decorators.py
cocodelabs/api.palaverapp.com
cb517a2cd1dea12fadf4f72147fecf0105cbd717
[ "BSD-3-Clause" ]
1
2021-07-28T19:45:31.000Z
2021-07-28T19:45:31.000Z
import json from functools import wraps from typing import Callable from urllib.parse import parse_qsl from rivr.http import Request, Response from palaverapi.responses import ProblemResponse def requires_body(func: Callable[..., Response]): @wraps(func) def wrapper(self, request: Request, *args, **kwargs) ...
34.388889
73
0.588853
131
1,238
5.503817
0.458015
0.076283
0.047157
0.055479
0.127601
0
0
0
0
0
0
0.010526
0.30937
1,238
35
74
35.371429
0.832749
0
0
0.074074
0
0
0.082391
0.026656
0
0
0
0
0
1
0.074074
false
0
0.222222
0
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1790c8c518d20fe2e7697039e44e0d23b4a62c91
9,489
py
Python
cli/medperf/utils.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
1
2021-09-24T18:09:53.000Z
2021-09-24T18:09:53.000Z
cli/medperf/utils.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
2
2021-09-27T16:14:04.000Z
2021-11-03T14:24:54.000Z
cli/medperf/utils.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from pexpect import spawn import logging from typing import List, Tuple from datetime import datetime import hashlib import os from shutil import rmtree import tarfile import yaml from pathlib import Path from colorama import Fore, Style import re import medperf.config as config from...
30.316294
89
0.644957
1,310
9,489
4.543511
0.238168
0.016129
0.034274
0.014113
0.123656
0.044187
0.030578
0.02453
0.02453
0
0
0.005355
0.252187
9,489
312
90
30.413462
0.833427
0.252503
0
0.045198
0
0
0.108885
0.011345
0
0
0
0
0
1
0.101695
false
0
0.084746
0
0.254237
0.039548
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17935aaebc6842fbcfb1d8f850ae573d75c68bf6
1,873
py
Python
analytics_pipeline-master/log_generator.py
danielvdao/etl_ideas
18062c92e6441eae5b316e9cc8f0f2d085636a42
[ "MIT" ]
null
null
null
analytics_pipeline-master/log_generator.py
danielvdao/etl_ideas
18062c92e6441eae5b316e9cc8f0f2d085636a42
[ "MIT" ]
1
2017-10-17T02:58:33.000Z
2017-10-17T02:58:33.000Z
analytics_pipeline-master/log_generator.py
danielvdao/etl_ideas
18062c92e6441eae5b316e9cc8f0f2d085636a42
[ "MIT" ]
null
null
null
from faker import Faker from datetime import datetime import random import time LINE = """\ {remote_addr} - - [{time_local} +0000] "{request_type} {request_path} HTTP/1.1" {status} {body_bytes_sent} "{http_referer}" "{http_user_agent}"\ """ LOG_FILE_A = "log_a.txt" LOG_FILE_B = "log_b.txt" LOG_MAX = 100 def generate...
24.973333
144
0.639616
274
1,873
3.974453
0.266423
0.15427
0.064279
0.089991
0.241506
0.10101
0.049587
0.049587
0
0
0
0.021862
0.242926
1,873
74
145
25.310811
0.746121
0
0
0
0
0.017857
0.110102
0
0
0
0
0
0
1
0.053571
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17957d92994d6b6b24057eeb1c8fb73bd1d0a786
2,027
py
Python
scripts/visualization/style.py
bo1929/basty
3ef84578e0154509346fdc2c0c56261448d78276
[ "MIT" ]
5
2021-12-10T17:43:52.000Z
2022-03-01T22:19:36.000Z
scripts/visualization/style.py
bo1929/basty
3ef84578e0154509346fdc2c0c56261448d78276
[ "MIT" ]
null
null
null
scripts/visualization/style.py
bo1929/basty
3ef84578e0154509346fdc2c0c56261448d78276
[ "MIT" ]
null
null
null
MAX_LIMIT = 9999 class StyleEmbedding: colorscheme = "tableau20" filled = True sizeDefault = 7 sizeMin = 5 sizeMax = 25 opacityDefault = 0.05 opacityMin = 0.05 opacityMax = 0.5 tickMinStep = 5 def get_embedding_style(): return { "config": { ...
29.808824
78
0.391712
126
2,027
6.214286
0.515873
0.07152
0.043423
0.086845
0.219668
0.219668
0.219668
0
0
0
0
0.053898
0.48742
2,027
67
79
30.253731
0.699711
0.02812
0
0.586207
0
0
0.226857
0
0
0
0
0
0
1
0.034483
false
0
0
0.034483
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
179a63e2713ef678248c5a0480244a33d8023a8f
1,955
py
Python
scripts/parse_aggregated_responses.py
cagnolone/openmic-2018
154dc425a4fac7ba45fb143ef75fa21189fc4d1c
[ "MIT" ]
56
2018-08-27T15:48:37.000Z
2021-12-25T11:01:23.000Z
scripts/parse_aggregated_responses.py
cagnolone/openmic-2018
154dc425a4fac7ba45fb143ef75fa21189fc4d1c
[ "MIT" ]
37
2018-08-16T17:00:21.000Z
2022-02-09T23:55:36.000Z
scripts/parse_aggregated_responses.py
cagnolone/openmic-2018
154dc425a4fac7ba45fb143ef75fa21189fc4d1c
[ "MIT" ]
7
2018-10-09T14:48:01.000Z
2020-06-06T12:03:15.000Z
#!/usr/bin/env python # coding: utf8 '''Script to parse aggregated annotation responses into a CSV file of labels. Example ------- $ ./scripts/parse_aggregated_responses.py \ "path/to/dir/*.csv" \ openmic-2018-aggregated-labels.csv ''' from __future__ import print_function import argparse import glob import ...
29.621212
88
0.703325
270
1,955
4.866667
0.444444
0.063927
0.028919
0.030441
0.074581
0
0
0
0
0
0
0.009265
0.171867
1,955
65
89
30.076923
0.802347
0.117647
0
0
0
0
0.188668
0.041472
0
0
0
0
0
1
0.078947
false
0
0.184211
0
0.342105
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
179adee8737327e1461212148f441c448d335da8
5,303
py
Python
tests/test_looseserver/client/test_abstract_client.py
KillAChicken/loose-server
082402f1fec94faea20343142b0c306dc5f86026
[ "MIT" ]
3
2019-04-21T13:10:34.000Z
2019-10-08T05:20:04.000Z
tests/test_looseserver/client/test_abstract_client.py
KillAChicken/loose-server
082402f1fec94faea20343142b0c306dc5f86026
[ "MIT" ]
null
null
null
tests/test_looseserver/client/test_abstract_client.py
KillAChicken/loose-server
082402f1fec94faea20343142b0c306dc5f86026
[ "MIT" ]
null
null
null
"""Test cases for abstract looseserver client.""" import uuid from urllib.parse import urljoin from looseserver.client.abstract import AbstractClient def test_create_rule(client_rule_factory, client_response_factory, registered_rule): """Check request data that client uses to create a rule. 1. Create a sub...
36.321918
100
0.686027
671
5,303
5.169896
0.128167
0.039781
0.049005
0.080715
0.712886
0.688095
0.688095
0.631306
0.602191
0.567599
0
0.006109
0.228361
5,303
145
101
36.572414
0.841642
0.215727
0
0.52439
0
0
0.084948
0
0
0
0
0
0.195122
1
0.134146
false
0.012195
0.036585
0
0.280488
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
179ae6f54ba09f051bfa483edda5d5eea6d22097
5,683
py
Python
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/tests/functional/api/test_merge_requests.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
22
2021-08-24T13:43:55.000Z
2022-03-25T06:18:19.000Z
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/tests/functional/api/test_merge_requests.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
3
2021-09-09T00:40:56.000Z
2022-01-26T10:53:30.000Z
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/tests/functional/api/test_merge_requests.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
15
2021-08-19T23:53:24.000Z
2022-03-28T22:26:04.000Z
import time import pytest import gitlab import gitlab.v4.objects def test_merge_requests(project): project.files.create( { "file_path": "README.rst", "branch": "master", "content": "Initial content", "commit_message": "Initial commit", } ) ...
28.70202
86
0.682562
730
5,683
5.120548
0.217808
0.077047
0.035313
0.050829
0.498395
0.407437
0.324505
0.23114
0.23114
0.204922
0
0.012531
0.21362
5,683
197
87
28.847716
0.823898
0.115256
0
0.419847
0
0
0.139731
0.004417
0
0
0
0
0.129771
1
0.083969
false
0
0.030534
0
0.114504
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
179d043db725bce8f3b6948c83cd4e08552dd537
687
py
Python
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/ndarray_shape_manipulation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/ndarray_shape_manipulation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/ndarray_shape_manipulation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
import numpy as np nd1 = np.array([[1, 2], [3, 4]]) # reshape nd1.reshape(4) nd1.reshape(2, 2) nd1.reshape((2, 2)) nd1.reshape((2, 2), order="C") nd1.reshape(4, order="C") # resize nd1.resize() nd1.resize(4) nd1.resize(2, 2) nd1.resize((2, 2)) nd1.resize((2, 2), refcheck=True) nd1.resize(4, refc...
14.3125
34
0.576419
114
687
3.473684
0.219298
0.030303
0.080808
0.090909
0.229798
0.229798
0.174242
0.174242
0
0
0
0.113924
0.195051
687
47
35
14.617021
0.60217
0.080058
0
0
0
0
0.006932
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
179d9ebc77da5b1737344a934257dda6f2f13fc3
3,128
py
Python
survae/nn/layers/autoregressive/utils.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
survae/nn/layers/autoregressive/utils.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
survae/nn/layers/autoregressive/utils.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
import torch def mask_conv2d_spatial(mask_type, height, width): """ Creates a mask for Conv2d such that it becomes autoregressive in the spatial dimensions. Input: mask_type: str Either 'A' or 'B'. 'A' for first layer of network, 'B' for all others. height: int ...
34
108
0.611573
434
3,128
4.276498
0.177419
0.053879
0.054957
0.061422
0.726293
0.688039
0.634159
0.578125
0.578125
0.559267
0
0.019964
0.295396
3,128
91
109
34.373626
0.822142
0.563619
0
0.2
0
0
0.001747
0
0
0
0
0
0
1
0.12
false
0
0.04
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17a08dd6f2f3775ec7b362537d3a435fcbde0fb3
2,130
py
Python
powerberry-app/src/services/config.py
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
null
null
null
powerberry-app/src/services/config.py
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
20
2022-03-11T19:44:31.000Z
2022-03-21T19:13:46.000Z
powerberry-app/src/services/config.py
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
null
null
null
import json import os import pathlib import sys from loguru import logger as log class Config: """Retrieves configuration from environment variables or files or fails fast otherwise""" def __init__(self): self.keys = {} # read configuration file first self.from_env("CONFIG_PATH", ca...
33.28125
93
0.622066
280
2,130
4.567857
0.325
0.037529
0.025801
0.032838
0.300235
0.156372
0.123534
0.123534
0.068804
0.068804
0
0.007712
0.269484
2,130
63
94
33.809524
0.814267
0.106103
0
0.088889
0
0
0.153887
0.011105
0
0
0
0
0.022222
1
0.133333
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17a2dcce962acf6079243f734b05c4cedd810650
3,445
py
Python
test/parser/test_tail_parser.py
BigDataBoutique/bogi
cc247df8d18ef00ebba7986a57fefbb2ad82a1e6
[ "Apache-2.0" ]
null
null
null
test/parser/test_tail_parser.py
BigDataBoutique/bogi
cc247df8d18ef00ebba7986a57fefbb2ad82a1e6
[ "Apache-2.0" ]
null
null
null
test/parser/test_tail_parser.py
BigDataBoutique/bogi
cc247df8d18ef00ebba7986a57fefbb2ad82a1e6
[ "Apache-2.0" ]
null
null
null
import unittest from test.utils import dedent from bogi.parser.tail import TailParser from bogi.parser.tail_transformer import MessageBody, ContentLine, InputFileRef, MultipartField, Header, ResponseHandler, ResponseReference class TailParserTests(unittest.TestCase): def test_content_lines(self): body = ...
31.898148
139
0.576488
325
3,445
5.993846
0.243077
0.036961
0.053388
0.098563
0.525667
0.510267
0.440452
0.402464
0.351129
0.318275
0
0.00639
0.273149
3,445
107
140
32.196262
0.771566
0
0
0.383721
0
0
0.266183
0.035994
0
0
0
0
0.093023
1
0.093023
false
0
0.046512
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
17a30d472fcfbe0abfef5d81ffe2790797697496
3,830
py
Python
openbox-tmux-pipe-menu.py
pawel-slowik/openbox-tmux-pipe-menu
cda64994a893c76ba1af1eb1de9fe72d1ec79c04
[ "MIT" ]
null
null
null
openbox-tmux-pipe-menu.py
pawel-slowik/openbox-tmux-pipe-menu
cda64994a893c76ba1af1eb1de9fe72d1ec79c04
[ "MIT" ]
null
null
null
openbox-tmux-pipe-menu.py
pawel-slowik/openbox-tmux-pipe-menu
cda64994a893c76ba1af1eb1de9fe72d1ec79c04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import subprocess import re import xml.etree.ElementTree as et import datetime as dt import pipes import os import configparser import sys from typing import Iterable, Optional, Dict class TmuxError(Exception): pass class TmuxCommandError(TmuxError): pass class TmuxParseError(TmuxE...
27.956204
81
0.637859
473
3,830
5.052854
0.350951
0.01046
0.012552
0.021339
0.083682
0.083682
0.060251
0.032636
0
0
0
0.002733
0.23577
3,830
136
82
28.161765
0.813803
0.051175
0
0.15534
0
0.009709
0.135374
0.02509
0
0
0
0
0
1
0.087379
false
0.048544
0.087379
0.009709
0.339806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0