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
08225a3bd17fc1cdb0b34a9cf71d6c023100847d
1,604
py
Python
Fig_5_S20/fastaWriterRNAfoldCaller_20190120.py
nimitjainFireLab/JainEtAl_T7rnaReplication
1a6111ee70cd99ec531a92f49e7fe8a0f1de0145
[ "MIT" ]
null
null
null
Fig_5_S20/fastaWriterRNAfoldCaller_20190120.py
nimitjainFireLab/JainEtAl_T7rnaReplication
1a6111ee70cd99ec531a92f49e7fe8a0f1de0145
[ "MIT" ]
null
null
null
Fig_5_S20/fastaWriterRNAfoldCaller_20190120.py
nimitjainFireLab/JainEtAl_T7rnaReplication
1a6111ee70cd99ec531a92f49e7fe8a0f1de0145
[ "MIT" ]
null
null
null
import cPickle import sys from moduleUsefulFunctions_20180215 import * from random import randint import subprocess import forgi import forgi.graph.bulge_graph as fgb def returnDotBracket(sequence,sampleLabel): with open('outputFastaWriterRNAfoldCaller_20190120_'+sampleLabel+'.txt','w') as f: processCall=s...
35.644444
303
0.73192
197
1,604
5.923858
0.51269
0.020566
0.006855
0.034276
0.037704
0
0
0
0
0
0
0.030053
0.1702
1,604
44
304
36.454545
0.846732
0.202618
0
0
0
0
0.085356
0.048551
0
0
0
0
0
0
null
null
0
0.2
null
null
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0829f61de399d83e451650a5332d6ca4c9bfd1f6
3,690
py
Python
utils/freeze_graph.py
n-log-n/udacity-lyft-challenge
eba0f349560e702abd68be1a9ce5f6d6437556da
[ "MIT" ]
null
null
null
utils/freeze_graph.py
n-log-n/udacity-lyft-challenge
eba0f349560e702abd68be1a9ce5f6d6437556da
[ "MIT" ]
null
null
null
utils/freeze_graph.py
n-log-n/udacity-lyft-challenge
eba0f349560e702abd68be1a9ce5f6d6437556da
[ "MIT" ]
null
null
null
""" https://stackoverflow.com/questions/45466020/how-to-export-keras-h5-to-tensorflow-pb """ import keras from keras.models import load_model import keras.backend as K import tensorflow as tf from tensorflow.python.framework import graph_io from tensorflow.python.framework import graph_util from tensorflow.tools.grap...
41
120
0.748509
518
3,690
5.055985
0.30888
0.036655
0.03971
0.033219
0.187476
0.100038
0.069492
0.069492
0.069492
0.046583
0
0.008371
0.158266
3,690
90
121
41
0.834836
0.605149
0
0
0
0
0.0947
0.019081
0
0
0
0
0
1
0
false
0
0.387097
0
0.387097
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
083d268fbce0ae30f2464654afe13c82f96b9ed8
375
py
Python
ex101.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
ex101.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
ex101.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
def voto(): from datetime import date idade = date.today().year - nasc if idade >= 65 or idade >= 16 <18: return f'Com {idade} anos o voto é OPCIONAL' if idade >= 18: return f'Com {idade} anos o voto é OBRIGATÓRIO' if idade < 16: return f'Com {idade} anos NÃO VOTA' nasc = i...
28.846154
55
0.605333
59
375
3.847458
0.542373
0.092511
0.132159
0.198238
0.321586
0.237885
0.237885
0.237885
0.237885
0
0
0.0369
0.277333
375
13
56
28.846154
0.800738
0
0
0
0
0
0.329787
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.454545
0.090909
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0844975d337e7ff41d4e4fa097250f5f4f83710b
5,966
py
Python
notebooks/combine_data.py
godzilla-but-nicer/redundancy-dynamics
55c305887c8fc3c5cc8765684abd46fb0373e3d2
[ "MIT" ]
null
null
null
notebooks/combine_data.py
godzilla-but-nicer/redundancy-dynamics
55c305887c8fc3c5cc8765684abd46fb0373e3d2
[ "MIT" ]
null
null
null
notebooks/combine_data.py
godzilla-but-nicer/redundancy-dynamics
55c305887c8fc3c5cc8765684abd46fb0373e3d2
[ "MIT" ]
null
null
null
#%% [markdown] # # Combine and Clean Data # This is just a notebook file I can use to merge data generated by seperate # scripts into fewer data files. I have to do this fairly often so it makes # sense to keep the code somewhere I think # %% import pandas as pd from glob import glob #%% [markdown] # ## $I_{\pm}$ for $...
31.4
81
0.653201
948
5,966
3.954641
0.253165
0.030408
0.033609
0.023473
0.318485
0.26327
0.228861
0.164044
0.107229
0.107229
0
0.01369
0.179685
5,966
189
82
31.566138
0.75235
0.299866
0
0.206186
1
0
0.241557
0.130201
0
0
0
0
0
1
0.010309
false
0
0.030928
0
0.051546
0.154639
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08489a1856f17c26d2757efe9c4d473baaa96d60
498
py
Python
tests/test_model.py
Phellox/bert2punc
4a260893ec93f6e73da6c800f140f005ed295853
[ "MIT" ]
null
null
null
tests/test_model.py
Phellox/bert2punc
4a260893ec93f6e73da6c800f140f005ed295853
[ "MIT" ]
null
null
null
tests/test_model.py
Phellox/bert2punc
4a260893ec93f6e73da6c800f140f005ed295853
[ "MIT" ]
null
null
null
import torch from variables import PROJECT_PATH from src.models import train_model from src.data.load_data import load_dataset def test_model_output(i=5): model = train_model.TrainModel().model data = load_dataset(set_type = 'val', dir_path=PROJECT_PATH / "data" / "processed") with torch.no_grad(): ...
38.307692
87
0.704819
78
498
4.307692
0.474359
0.098214
0.071429
0
0
0
0
0
0
0
0
0.012019
0.164659
498
13
88
38.307692
0.795673
0
0
0
0
0
0.032064
0
0
0
0
0
0.166667
1
0.083333
false
0
0.333333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
084af89009fd4642dd281e3a35c97bdeca186154
1,612
py
Python
manage.py
atyenoria/iot_project
8175bcbe2a1cf1d4009a5c4091ff188bab660f56
[ "BSD-3-Clause" ]
1
2015-11-08T10:23:14.000Z
2015-11-08T10:23:14.000Z
manage.py
atyenoria/iot_project
8175bcbe2a1cf1d4009a5c4091ff188bab660f56
[ "BSD-3-Clause" ]
null
null
null
manage.py
atyenoria/iot_project
8175bcbe2a1cf1d4009a5c4091ff188bab660f56
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from flask_script import Manager, Shell, Server from flask_migrate import MigrateCommand from flask import Flask, url_for from sample_app_test.app import create_app from sample_app_test.user.models import User from sample_app_test.settings import DevConfig, ProdCo...
26
85
0.679901
223
1,612
4.713004
0.403587
0.042816
0.061846
0.0647
0
0
0
0
0
0
0
0.004591
0.189206
1,612
61
86
26.42623
0.799541
0.026055
0
0.04878
0
0
0.061978
0
0
0
0
0
0
0
null
null
0
0.243902
null
null
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
084d638812ca706d51e08c43b6d056479bb803ae
167
py
Python
exercicio26.py
NicolasFreitas1/infosatc-lp-avaliativo-01
f9f9ee383708e7572b24f5e3ee4b281330af677b
[ "MIT" ]
null
null
null
exercicio26.py
NicolasFreitas1/infosatc-lp-avaliativo-01
f9f9ee383708e7572b24f5e3ee4b281330af677b
[ "MIT" ]
null
null
null
exercicio26.py
NicolasFreitas1/infosatc-lp-avaliativo-01
f9f9ee383708e7572b24f5e3ee4b281330af677b
[ "MIT" ]
null
null
null
#Nicolas Andrade de Freitas - Turma 2190 #Exercicio 26 m2 = float(input("Digite o valor em m²")) h = m2*0.0001 print("o valor {}m² em hectares é:{}".format(m2,h))
16.7
51
0.670659
30
167
3.733333
0.733333
0.107143
0
0
0
0
0
0
0
0
0
0.115942
0.173653
167
9
52
18.555556
0.695652
0.305389
0
0
0
0
0.429825
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
085025736508ea09787ac15714ef30639c015785
1,412
py
Python
auto_run/synchronization.py
whisperH/3D-ZeF
1b55e47592ebc420a82f387a73d2ca44da0b4016
[ "MIT" ]
null
null
null
auto_run/synchronization.py
whisperH/3D-ZeF
1b55e47592ebc420a82f387a73d2ca44da0b4016
[ "MIT" ]
null
null
null
auto_run/synchronization.py
whisperH/3D-ZeF
1b55e47592ebc420a82f387a73d2ca44da0b4016
[ "MIT" ]
null
null
null
import paramiko import sys def deleteRemoteFile(dt, ip, name, passwd): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())#第一次登录的认证信息 ssh.connect(hostname=ip, port=22, username=name, password=passwd) # 连接服务器 stdin, stdout, stderr = ssh.exec_command(f'rm -rf {dt}') # 执行命...
42.787879
127
0.667139
179
1,412
5.111732
0.402235
0.039344
0.059016
0.069945
0.402186
0.338798
0.179235
0.098361
0
0
0
0.038961
0.182011
1,412
33
128
42.787879
0.753247
0.014873
0
0
0
0
0.281497
0.194384
0
0
0
0
0
1
0.068966
false
0.241379
0.068966
0
0.137931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0852f547a0459849e0d2f18bfc52f175caf3db2b
5,509
py
Python
exercises/ali/ticTakToe-MCTS/mcts.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
null
null
null
exercises/ali/ticTakToe-MCTS/mcts.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
5
2021-03-26T01:30:13.000Z
2021-04-22T22:19:03.000Z
exercises/ali/MCTS-ticTakToe assumes model/mcts.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
1
2021-05-05T00:57:43.000Z
2021-05-05T00:57:43.000Z
# https://github.com/maksimKorzh/tictactoe-mtcs # MCTS algorithm implementation # search will... # # select: will either get_best_move (if found), or expand # expand: generate legal moves (without any values) # rollout: simulate random moves, return score # back propagate: tally up scores (from rollout) # get_best...
30.949438
114
0.584317
680
5,509
4.641176
0.263235
0.025665
0.028517
0.024081
0.103295
0.036755
0.019645
0
0
0
0
0.006432
0.35088
5,509
177
115
31.124294
0.876119
0.387366
0
0.082192
1
0
0.009066
0
0
0
0
0
0
1
0.09589
false
0.013699
0.027397
0
0.260274
0.013699
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0854e2f4d64903c609e56d812197149c2c1c8238
978
py
Python
suplemon/linelight/php.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
912
2015-01-04T22:08:48.000Z
2022-03-29T00:52:24.000Z
suplemon/linelight/php.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
222
2015-01-26T13:25:37.000Z
2022-01-22T08:10:20.000Z
suplemon/linelight/php.py
johnmbaughman/suplemon
fdde20f2181c280236d40f89b89b9bbe5843440e
[ "MIT" ]
76
2015-03-31T18:11:15.000Z
2021-05-19T12:31:10.000Z
from suplemon.linelight.color_map import color_map class Syntax: def get_comment(self): return ("//", "") def get_color(self, raw_line): color = color_map["white"] line = raw_line.strip() keywords = ("if", "else", "finally", "try", "catch", "foreach", "whil...
34.928571
73
0.53272
100
978
5.07
0.41
0.157791
0.205128
0.067061
0.199211
0.199211
0.138067
0
0
0
0
0
0.293456
978
27
74
36.222222
0.733719
0
0
0.083333
0
0
0.150307
0
0
0
0
0
0
1
0.083333
false
0.041667
0.041667
0.041667
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
085b12febf206609bb7060966513fbdd301f83fa
640
py
Python
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_16_bit/thumb_shift_immediate_add_subtract_move_and_compare/cmp_immediate_t1.py
matan1008/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
16
2018-01-22T14:36:49.000Z
2021-12-17T15:39:52.000Z
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_16_bit/thumb_shift_immediate_add_subtract_move_and_compare/cmp_immediate_t1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
3
2019-02-19T17:51:47.000Z
2022-03-31T20:45:21.000Z
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_16_bit/thumb_shift_immediate_add_subtract_move_and_compare/cmp_immediate_t1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
4
2020-06-18T23:51:03.000Z
2022-02-09T17:43:13.000Z
from armulator.armv6.opcodes.abstract_opcodes.cmp_immediate import CmpImmediate from armulator.armv6.opcodes.opcode import Opcode from armulator.armv6.bits_ops import zero_extend class CmpImmediateT1(CmpImmediate, Opcode): def __init__(self, instruction, n, imm32): Opcode.__init__(self, instruction) ...
32
79
0.70625
79
640
5.455696
0.481013
0.090487
0.12529
0.116009
0
0
0
0
0
0
0
0.046602
0.195313
640
19
80
33.684211
0.790291
0
0
0
0
0
0.009375
0
0
0
0
0
0
1
0.2
false
0
0.2
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
085dd8e68a9482d305aecec88ac0cd5102c680dd
728
py
Python
cookiecutterizer/cli.py
91nunocosta/cookiecutterizer
fb450b3878a4d0af3400258e2b736dae2e4b65b0
[ "MIT" ]
null
null
null
cookiecutterizer/cli.py
91nunocosta/cookiecutterizer
fb450b3878a4d0af3400258e2b736dae2e4b65b0
[ "MIT" ]
null
null
null
cookiecutterizer/cli.py
91nunocosta/cookiecutterizer
fb450b3878a4d0af3400258e2b736dae2e4b65b0
[ "MIT" ]
null
null
null
"""Command Line Interface.""" import json from pathlib import Path import click from cookiecutterizer import create_project @click.command() @click.option("--substitutions", type=click.File(), required=True) @click.option("--destination", type=click.Path(), required=True) @click.argument("project", type=click.Path(...
30.333333
78
0.729396
82
728
6.45122
0.414634
0.068053
0.064272
0
0
0
0
0
0
0
0
0
0.14011
728
23
79
31.652174
0.845048
0.355769
0
0
0
0
0.080092
0
0
0
0
0
0
1
0.1
false
0
0.4
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f22bd4190033b2f04a3acc0962c20c15b8e09ce8
2,789
py
Python
src/monitor/monitor.py
ZhenzhongLei/thesis
153bbfad02f7d5176fa068206a9ced7fa1368bb5
[ "Python-2.0", "OLDAP-2.7" ]
1
2022-02-24T23:19:43.000Z
2022-02-24T23:19:43.000Z
src/monitor/monitor.py
ZhenzhongLei/thesis
153bbfad02f7d5176fa068206a9ced7fa1368bb5
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
src/monitor/monitor.py
ZhenzhongLei/thesis
153bbfad02f7d5176fa068206a9ced7fa1368bb5
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
from general.utils import * from particle.sensor import * class Monitor: """ This class is designed to provide localiztion monitoring service based on wifi rss data """ # Parameters x_min_ = None x_max_ = None y_min_ = None y_max_ = None # Models sensor_model_ = None ...
33.202381
114
0.602366
335
2,789
4.770149
0.355224
0.015019
0.037547
0.011264
0.138924
0.098874
0.098874
0.050063
0.050063
0
0
0.00638
0.325565
2,789
83
115
33.60241
0.843169
0.039441
0
0
0
0
0.01557
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f23dc0c47819382434c049313c948580edfe2871
2,802
py
Python
piece.py
rbrutherford3/ASCII-Chess
b6c0e74bef6bb925f3e02d92187e76eaccc7f5a9
[ "MIT" ]
null
null
null
piece.py
rbrutherford3/ASCII-Chess
b6c0e74bef6bb925f3e02d92187e76eaccc7f5a9
[ "MIT" ]
null
null
null
piece.py
rbrutherford3/ASCII-Chess
b6c0e74bef6bb925f3e02d92187e76eaccc7f5a9
[ "MIT" ]
null
null
null
################################################################# # # # ASCII-Chess, written by Robert Rutherford in 2021 # # # ########################################################...
29.494737
77
0.517488
361
2,802
4.00554
0.354571
0.037344
0.045643
0.049793
0.123098
0.123098
0.118949
0.107884
0.107884
0.107884
0
0.046547
0.302284
2,802
94
78
29.808511
0.693095
0.334761
0
0.254237
0
0
0.021368
0
0
0
0
0
0
1
0.016949
false
0.016949
0.016949
0
0.932203
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f2419a3aacb4bf0cebe67911fbf972e8e8b463aa
3,311
py
Python
compile/reduceCacheSize.py
securesonic/safekiddo-backend
c94db1ee35eebfd2a7faef072802d1bddc789d0f
[ "BSD-2-Clause" ]
null
null
null
compile/reduceCacheSize.py
securesonic/safekiddo-backend
c94db1ee35eebfd2a7faef072802d1bddc789d0f
[ "BSD-2-Clause" ]
null
null
null
compile/reduceCacheSize.py
securesonic/safekiddo-backend
c94db1ee35eebfd2a7faef072802d1bddc789d0f
[ "BSD-2-Clause" ]
null
null
null
import os import statvfs import stat import tempfile def stripStr(obj): """ # strip whatever and always return string """ if obj is None: return '' return str(obj).strip() def strToFloat(val, defaultValue = None): """ convert string value to float value """ val = str(val).strip() try: return float(...
29.300885
112
0.708245
456
3,311
5.006579
0.307018
0.051248
0.04205
0.030661
0.166448
0.129654
0.129654
0.129654
0.129654
0.129654
0
0.019665
0.170643
3,311
113
113
29.300885
0.811726
0.109031
0
0.183908
0
0
0.135021
0.025668
0
0
0
0
0
0
null
null
0.022989
0.045977
null
null
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f24417ac6662324ac1ebf2be13b31d6742758108
263
py
Python
409. Longest Palindrome/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
409. Longest Palindrome/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
409. Longest Palindrome/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
class Solution: def longestPalindrome(self, s: str) -> int: total = 0 for i in collections.Counter(list(s)).values(): total += i // 2 * 2 if i % 2 == 1 and total % 2 == 0: total += 1 return total
32.875
55
0.475285
34
263
3.676471
0.647059
0.032
0
0
0
0
0
0
0
0
0
0.050955
0.403042
263
8
56
32.875
0.745223
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f2447d85a659198f3b872f0997ea0a9024db597f
285
py
Python
api_telemed/migrations/0003_delete_teste.py
chrismomentus/portalTelemedicina
16dfa9709b1da5a94d511591181ec45859367d13
[ "MIT" ]
null
null
null
api_telemed/migrations/0003_delete_teste.py
chrismomentus/portalTelemedicina
16dfa9709b1da5a94d511591181ec45859367d13
[ "MIT" ]
null
null
null
api_telemed/migrations/0003_delete_teste.py
chrismomentus/portalTelemedicina
16dfa9709b1da5a94d511591181ec45859367d13
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-25 07:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api_telemed', '0002_teste'), ] operations = [ migrations.DeleteModel( name='teste', ), ]
16.764706
47
0.589474
31
285
5.354839
0.83871
0
0
0
0
0
0
0
0
0
0
0.094527
0.294737
285
16
48
17.8125
0.731343
0.157895
0
0
1
0
0.109244
0
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f246543d9dc1d96a13e5c6bb909f4b9ebbdcc482
98,561
py
Python
lib/config.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
lib/config.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
lib/config.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
# # # Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyri...
33.776902
80
0.678899
12,467
98,561
5.201652
0.092564
0.021897
0.030224
0.046724
0.403584
0.334145
0.27214
0.207019
0.159632
0.129547
0
0.003031
0.233328
98,561
2,917
81
33.788481
0.855169
0.049746
0
0.238856
0
0
0.071729
0.000627
0
0
0
0.001028
0.007984
0
null
null
0.004657
0.011976
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f25e7b17990a044d6ea3e6e888153846233bc65b
4,710
py
Python
gui.py
kiriakosv/pso_path_finding
aac6d10080d67f06fef6b748ebc1990178a0f4cd
[ "MIT" ]
18
2018-01-09T15:52:54.000Z
2022-01-17T21:38:56.000Z
gui.py
kiriakosv/pso_path_finding
aac6d10080d67f06fef6b748ebc1990178a0f4cd
[ "MIT" ]
1
2019-03-22T21:14:00.000Z
2019-03-22T21:14:00.000Z
gui.py
kiriakosv/pso_path_finding
aac6d10080d67f06fef6b748ebc1990178a0f4cd
[ "MIT" ]
5
2017-05-27T13:39:35.000Z
2020-08-11T12:53:21.000Z
#======================================================================= # Copyright (c) 2014 Kiriakos Velissariou # Distributed under the MIT License. # (See accompanying file LICENSE or copy at # http://opensource.org/licenses/MIT) #======================================================================= import pyga...
32.708333
100
0.46518
524
4,710
4.162214
0.333969
0.019257
0.016506
0.030261
0.030261
0
0
0
0
0
0
0.045145
0.407431
4,710
143
101
32.937063
0.736295
0.196815
0
0.103093
0
0
0.017292
0
0
0
0
0
0
0
null
null
0.010309
0.030928
null
null
0.030928
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f266c9575299f88911cc4fea05382075d3442005
783
py
Python
model/product_management.py
jopijuco/local
130e6fa6b51682f0ebe229bdb8af4f18b783d61e
[ "MIT" ]
null
null
null
model/product_management.py
jopijuco/local
130e6fa6b51682f0ebe229bdb8af4f18b783d61e
[ "MIT" ]
null
null
null
model/product_management.py
jopijuco/local
130e6fa6b51682f0ebe229bdb8af4f18b783d61e
[ "MIT" ]
null
null
null
class Product: def __init__(self, id, isOwner, name, description, main_img): self.id = id self.isOwner = isOwner self.name = name self.description = description self.main_img = main_img self.images = [] self.stock = {} self.price = {} def add_imag...
26.1
65
0.583653
96
783
4.53125
0.197917
0.096552
0.075862
0.05977
0.275862
0.275862
0.275862
0.275862
0.275862
0.275862
0
0
0.319285
783
30
66
26.1
0.816135
0
0
0.347826
0
0
0
0
0
0
0
0
0
1
0.217391
false
0
0
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
1
0
0
0
0
0
0
0
1
f26a6371c82e1ef11a355fdfc1942bc626ca695e
3,410
py
Python
Flask_server/Web_DB_interface.py
UAH-s-Telematics-Engineering-Tasks/tel_services_web_server
8065433ac9b60826b6800508ef70b83525e69ea9
[ "MIT" ]
1
2020-01-30T06:09:37.000Z
2020-01-30T06:09:37.000Z
Flask_server/Web_DB_interface.py
UAH-s-Telematics-Engineering-Tasks/tel_services_web_server
8065433ac9b60826b6800508ef70b83525e69ea9
[ "MIT" ]
1
2021-06-02T00:59:09.000Z
2021-06-02T00:59:09.000Z
Flask_server/Web_DB_interface.py
UAH-s-Telematics-Engineering-Tasks/tel_services_web_server
8065433ac9b60826b6800508ef70b83525e69ea9
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os, time, json, urllib3, mysql.connector DB_DATA = { "USER": "DB_admin", "PASS": "DB_@dmin", "DB": "dispositivos" } EMULATOR_DATA = { "IP": "172.22.0.98", "PORT": "8000" } # We need to open a transaction for EACH access so that we see an updated version of the DB...
40.595238
120
0.681525
494
3,410
4.607287
0.3583
0.068541
0.075132
0.090949
0.315026
0.315026
0.315026
0.315026
0.315026
0.315026
0
0.015593
0.153666
3,410
83
121
41.084337
0.773042
0.164223
0
0.261538
0
0
0.340957
0
0
0
0
0
0
1
0.030769
false
0.061538
0.015385
0
0.046154
0.061538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f272f51161506a941815bb69eba7b602aac4ff94
2,430
py
Python
tests/run/notebook_use_analyze.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
6
2017-12-11T06:12:00.000Z
2019-05-23T17:39:10.000Z
tests/run/notebook_use_analyze.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
null
null
null
tests/run/notebook_use_analyze.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
1
2018-01-26T14:19:38.000Z
2018-01-26T14:19:38.000Z
# %% %load_ext zipline import matplotlib.pyplot as plt from zipline.api import order_target, record, symbol # %% # %%zipline --start 2016-1-1 --end 2018-1-1 # from zipline.api import symbol, order, record # def initialize(context): # pass # def handle_data(context, data): # order(symbol('000333'), 10) # ...
30
100
0.619342
337
2,430
4.364985
0.409496
0.048946
0.040789
0.046227
0.218899
0.157716
0.119647
0.119647
0.065262
0.065262
0
0.05163
0.242798
2,430
80
101
30.375
0.747826
0.244444
0
0
0
0
0.053502
0
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f2751109b958433b574fde3d9cc1926a624d3e91
262
py
Python
unollvm/util.py
blukat29/unollvm
5bed288f08f469856678bf1aece8d9081589c4ca
[ "MIT" ]
null
null
null
unollvm/util.py
blukat29/unollvm
5bed288f08f469856678bf1aece8d9081589c4ca
[ "MIT" ]
2
2020-04-09T07:44:21.000Z
2020-04-09T07:44:30.000Z
unollvm/util.py
blukat29/unollvm
5bed288f08f469856678bf1aece8d9081589c4ca
[ "MIT" ]
2
2019-04-01T18:18:04.000Z
2021-04-22T12:20:40.000Z
from pwnlib.elf.elf import ELF import array def patch_elf(old, new, patches, pie_base=0): elf = ELF(old) for vaddr, content in patches.iteritems(): content = str(bytearray(content)) elf.write(vaddr - pie_base, content) elf.save(new)
26.2
46
0.671756
39
262
4.435897
0.564103
0.069364
0
0
0
0
0
0
0
0
0
0.004854
0.21374
262
9
47
29.111111
0.834951
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f2821b0131fd3f49165a12f049b365eafe7d5edb
604
py
Python
Geometry/tests/test_line.py
liuxiang0/Geometry
3500f815fa56c535b36d1b6fd0afe69ce5d055be
[ "MIT" ]
23
2015-10-28T15:21:41.000Z
2022-03-29T13:52:41.000Z
Geometry/tests/test_line.py
liuxiang0/Geometry
3500f815fa56c535b36d1b6fd0afe69ce5d055be
[ "MIT" ]
7
2021-01-26T11:57:25.000Z
2022-02-07T11:00:06.000Z
Geometry/tests/test_line.py
liuxiang0/Geometry
3500f815fa56c535b36d1b6fd0afe69ce5d055be
[ "MIT" ]
16
2016-07-17T12:47:05.000Z
2021-06-21T21:02:48.000Z
import unittest import math import sys from .. import Line, Segment, Ray, Point from ..exceptions import * class LineTestCase(unittest.TestCase): def assertIsLine(self, l, msg=None): self.assertIsInstance(l, Line) def assertLinesEqual(self, p, q, msg=None): pass def testLineCreation(s...
18.30303
47
0.657285
71
604
5.591549
0.464789
0.120907
0.151134
0
0
0
0
0
0
0
0
0
0.231788
604
32
48
18.875
0.855603
0
0
0.15
0
0
0
0
0
0
0
0
0.3
1
0.15
false
0.15
0.25
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f288d4057d880b58eb2a642416bbdbc9743c26f7
150
py
Python
playground/step2/test2.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
playground/step2/test2.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
playground/step2/test2.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
from core import Variable from operation import * a = Variable(2) b = square(a) c = square(b) d = square(c) e = square(d) e.backward() print(a.grad)
13.636364
25
0.68
27
150
3.777778
0.555556
0
0
0
0
0
0
0
0
0
0
0.008065
0.173333
150
10
26
15
0.814516
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f28c43986ecdfe08965e53d461aab11aa6a75cd5
1,900
py
Python
SDBmodel.py
smukoehler/SDB-control
50b2f4b3faa47d64d8c92a1b095f8d624c41e7f2
[ "BSD-2-Clause" ]
null
null
null
SDBmodel.py
smukoehler/SDB-control
50b2f4b3faa47d64d8c92a1b095f8d624c41e7f2
[ "BSD-2-Clause" ]
null
null
null
SDBmodel.py
smukoehler/SDB-control
50b2f4b3faa47d64d8c92a1b095f8d624c41e7f2
[ "BSD-2-Clause" ]
null
null
null
import os import sys from sklearn import linear_model import numpy import collections class SDBmodel: def __init__(self): self.clf = linear_model.Lasso(alpha=0.001 , max_iter=10000) self.input_data = [] self.state_data = [] def add_data(self, input_vector, state_vector): self.input_data.append( input_vector...
25.675676
90
0.664737
306
1,900
4.013072
0.245098
0.051303
0.074104
0.044788
0.312704
0.232899
0.145765
0.110749
0.070033
0.070033
0
0.019733
0.173158
1,900
73
91
26.027397
0.761935
0.007895
0
0.147541
0
0
0.017525
0
0
0
0
0
0
0
null
null
0
0.081967
null
null
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f2939815c900ed1abdcbc6b546610f39ec2bd957
5,678
py
Python
youtube-data-by-channelowner.py
openmichigan/metrics_tools
ff44c4169fc54194d6a3b2d2e244193054d4d3e5
[ "MIT" ]
3
2015-06-01T16:11:02.000Z
2021-07-09T21:43:07.000Z
youtube-data-by-channelowner.py
QPC-database/metrics_tools
ff44c4169fc54194d6a3b2d2e244193054d4d3e5
[ "MIT" ]
null
null
null
youtube-data-by-channelowner.py
QPC-database/metrics_tools
ff44c4169fc54194d6a3b2d2e244193054d4d3e5
[ "MIT" ]
2
2021-07-09T21:43:08.000Z
2021-09-07T08:43:38.000Z
#!/usr/bin/env python ################################################################# # Prerequisites: # - download python: http://www.python.org/download/ # - run setup for python (see README or INSTALL text file from above) # set system path for Python (System Information > Advance Settings > Environment Variables...
35.936709
231
0.683691
730
5,678
5.232877
0.261644
0.039267
0.034817
0.037696
0.289529
0.268586
0.24267
0.231414
0.231414
0.206806
0
0.006944
0.163086
5,678
158
232
35.936709
0.796928
0.103205
0
0.09322
0
0.008475
0.177041
0.015158
0
0
0
0
0
0
null
null
0.008475
0.09322
null
null
0.177966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f29bd520eb088b3837dd1c36b19e414287e52447
579
py
Python
database.py
joseclaris6500/UserJorunals
6d1398f897b1966a93e8a62750a29a2acc371296
[ "MIT" ]
null
null
null
database.py
joseclaris6500/UserJorunals
6d1398f897b1966a93e8a62750a29a2acc371296
[ "MIT" ]
null
null
null
database.py
joseclaris6500/UserJorunals
6d1398f897b1966a93e8a62750a29a2acc371296
[ "MIT" ]
null
null
null
import sqlite3 connection = sqlite3.connect("data.db") #When getting rows, use different method to print rows connection.row_factory = sqlite3.Row def create_table(): with connection: connection.execute("CREATE TABLE IF NOT EXISTS entries (content TEXT, date TEXT);") def add_entry(entry_content, entry_...
26.318182
92
0.709845
73
579
5.520548
0.589041
0.126551
0.119107
0.153846
0
0
0
0
0
0
0
0.00641
0.19171
579
21
93
27.571429
0.854701
0.138169
0
0.153846
0
0
0.248485
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
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
1
0
0
0
0
0
0
0
1
f29c15715db169479efd44da2978574311fcae91
33,520
py
Python
jnpr/case_att_download.py
mmmonk/crap
96ba81723f043503e7ed2f96ea727b524d22b83f
[ "MIT" ]
14
2015-01-14T15:53:22.000Z
2019-06-21T06:15:47.000Z
jnpr/case_att_download.py
mmmonk/crap
96ba81723f043503e7ed2f96ea727b524d22b83f
[ "MIT" ]
1
2018-04-01T08:40:17.000Z
2020-06-24T10:05:33.000Z
jnpr/case_att_download.py
mmmonk/crap
96ba81723f043503e7ed2f96ea727b524d22b83f
[ "MIT" ]
12
2015-05-13T10:52:04.000Z
2020-10-07T14:49:37.000Z
#!/usr/bin/env python from sgmllib import SGMLParser from urllib import urlencode,quote from cookielib import LWPCookieJar from ftplib import FTP,error_perm,error_temp from getpass import getpass import argparse, os, re, sys, time, socket, urllib2, httplib, urlparse, HTMLParser, unicodedata # the default timeout for ...
33.453094
343
0.607369
4,520
33,520
4.450885
0.164602
0.012824
0.008699
0.011482
0.271399
0.199672
0.16786
0.141465
0.119793
0.095586
0
0.014064
0.236366
33,520
1,001
344
33.486513
0.771887
0.094391
0
0.312676
0
0.011268
0.185031
0.016871
0
0
0
0.002997
0
0
null
null
0.042254
0.008451
null
null
0.021127
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f2a0b9da04966e6c28db0280f8e2537866c1f7ec
5,347
py
Python
scripts/speech_to_text.py
timbrockmeyer/respeaker_ros
bef6a3afe377412379529664fcd184587becd306
[ "Apache-2.0" ]
null
null
null
scripts/speech_to_text.py
timbrockmeyer/respeaker_ros
bef6a3afe377412379529664fcd184587becd306
[ "Apache-2.0" ]
null
null
null
scripts/speech_to_text.py
timbrockmeyer/respeaker_ros
bef6a3afe377412379529664fcd184587becd306
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Yuki Furuta <furushchev@jsk.imi.i.u-tokyo.ac.jp> import actionlib import rospy import speech_recognition as SR import os from actionlib_msgs.msg import GoalStatus, GoalStatusArray from audio_common_msgs.msg import AudioData from sound_play.msg import SoundReques...
44.558333
105
0.626707
639
5,347
5.054773
0.320814
0.019505
0.024149
0.020124
0.279257
0.266254
0.248607
0.248607
0.248607
0.248607
0
0.005169
0.276417
5,347
119
106
44.932773
0.829672
0.115579
0
0.25
0
0
0.118346
0.018876
0
0
0
0
0
0
null
null
0
0.108696
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f2a5c0b72dbf321e508c52bb3fbff4bcc309825e
990
py
Python
zipfilebf.py
SYANiDE-/ViolentPython
1e56ef7f006272b170bba0a642860a892c016baa
[ "BSD-2-Clause" ]
2
2019-02-21T08:38:32.000Z
2019-02-22T03:15:02.000Z
zipfilebf.py
SYANiDE-/ViolentPython
1e56ef7f006272b170bba0a642860a892c016baa
[ "BSD-2-Clause" ]
null
null
null
zipfilebf.py
SYANiDE-/ViolentPython
1e56ef7f006272b170bba0a642860a892c016baa
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python2 import zipfile, argparse, sys, threading def unz(zipf, pw): zf = zipfile.ZipFile(zipf) try: pw = pw.strip('\n') zf.extractall(pwd=pw) print("[!] Found! Password = %s" % pw) sys.exit() except: return if __name__=="__main__": ap = argparse....
34.137931
118
0.6
126
990
4.611111
0.579365
0.056799
0.048193
0.075732
0.10327
0.10327
0
0
0
0
0
0.025503
0.247475
990
28
119
35.357143
0.754362
0.021212
0
0
0
0
0.18595
0
0
0
0
0
0
1
0.041667
false
0.125
0.041667
0
0.125
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f2a77fdab342f3da61fdf36b4b2b09349f16e871
782
py
Python
archivist/compliance_policy_type.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
2
2021-05-04T15:12:37.000Z
2021-09-08T10:04:41.000Z
archivist/compliance_policy_type.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
35
2021-05-04T12:39:26.000Z
2022-03-28T09:20:19.000Z
archivist/compliance_policy_type.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
6
2021-04-28T14:49:48.000Z
2022-01-07T15:29:05.000Z
"""Archivist Compliance Policy Type Enumerated type that allows user to select the compliance policy type when creating a compliance policy. """ from enum import Enum class CompliancePolicyType(Enum): """ Enumerate types of compliance policy """ COMPLIANCE_TYPE_UNDEFINED = 0 #: Time sinc...
28.962963
81
0.744246
92
782
6.217391
0.641304
0.111888
0.06993
0
0
0
0
0
0
0
0
0.009693
0.20844
782
26
82
30.076923
0.914378
0.584399
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
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
1
0
0
1
f2ae55de29a9ac5bd6ad71bf528c97986b1aa588
525
py
Python
binarysearch/Count-BST-Nodes-in-a-Range.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
binarysearch/Count-BST-Nodes-in-a-Range.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
binarysearch/Count-BST-Nodes-in-a-Range.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
# https://binarysearch.com/problems/Count-BST-Nodes-in-a-Range import bisect class Solution: @staticmethod def getList(root, lst): if root == None: return else: Solution.getList(root.left, lst) lst.append(root.val) Solution.getList(root.right, lst) def ...
25
62
0.594286
66
525
4.69697
0.484848
0.141935
0.183871
0
0
0
0
0
0
0
0
0
0.28381
525
20
63
26.25
0.824468
0.114286
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f2b85e7083c31401c54bafa768d521825607716c
1,436
py
Python
i18npy/__init__.py
fossabot/i18npy
595befdca762c6fcfa0c13b92cdb2ff5d0eeec1d
[ "MIT" ]
null
null
null
i18npy/__init__.py
fossabot/i18npy
595befdca762c6fcfa0c13b92cdb2ff5d0eeec1d
[ "MIT" ]
1
2021-07-22T05:56:39.000Z
2021-07-22T05:56:39.000Z
i18npy/__init__.py
fossabot/i18npy
595befdca762c6fcfa0c13b92cdb2ff5d0eeec1d
[ "MIT" ]
1
2021-07-22T05:53:53.000Z
2021-07-22T05:53:53.000Z
import json import os.path from typing import Callable from .Translator import Translator i18n_translator = Translator() i18n = i18n_translator.translate def _load_translation(file_path: str) -> dict: if not os.path.exists(file_path): raise FileNotFoundError(file_path) with open(file_path, "r") as...
23.540984
102
0.68663
191
1,436
5.041885
0.26178
0.132918
0.07269
0.071651
0.287643
0.173416
0.173416
0.109034
0
0
0
0.025339
0.230501
1,436
60
103
23.933333
0.846154
0.352368
0
0.076923
0
0
0.001195
0
0
0
0
0
0
1
0.192308
false
0
0.153846
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4b2ddec5a2348a43ac326b2a6b634cb6f9b47dea
373
py
Python
uri/iniciante/1012.py
AllefLobo/AlgorithmsProblemsSolution
7e89d43d0811c45944b1729385b2c36fa07a847f
[ "MIT" ]
2
2016-07-24T17:46:35.000Z
2017-04-16T03:01:54.000Z
uri/iniciante/1012.py
AllefLobo/AlgorithmsProblemsSolution
7e89d43d0811c45944b1729385b2c36fa07a847f
[ "MIT" ]
null
null
null
uri/iniciante/1012.py
AllefLobo/AlgorithmsProblemsSolution
7e89d43d0811c45944b1729385b2c36fa07a847f
[ "MIT" ]
null
null
null
from math import pow a, b, c = map( float, raw_input().split()) pi = 3.14159 triangulo = (a * c) / 2.0 circulo = pi * pow(c, 2) trapezio = ((a + b)/2.0) * c quadrado = b * b retangulo = a * b print "TRIANGULO: %.3f" %(triangulo) print "CIRCULO: %.3f" %(circulo) print "TRAPEZIO: %.3f" %(trapezio) print "QUADRADO: %....
20.722222
42
0.61126
57
373
3.982456
0.421053
0.026432
0
0
0
0
0
0
0
0
0
0.052459
0.182306
373
17
43
21.941176
0.691803
0
0
0
0
0
0.19086
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.384615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4b3cf451b23fc9d1b37c4d76b2c955d6a92b97e4
10,005
py
Python
excel_exec.py
SublimeText/ExcelExec
ac90029e720a69db407f84d4fa7ee43d4d84d9c4
[ "MIT" ]
3
2015-03-06T22:29:57.000Z
2022-03-14T04:43:27.000Z
excel_exec.py
SublimeText/ExcelExec
ac90029e720a69db407f84d4fa7ee43d4d84d9c4
[ "MIT" ]
null
null
null
excel_exec.py
SublimeText/ExcelExec
ac90029e720a69db407f84d4fa7ee43d4d84d9c4
[ "MIT" ]
1
2022-03-14T04:43:28.000Z
2022-03-14T04:43:28.000Z
# -*- coding: utf-8 -*- """ White Spaces Plugin for Sublime Text 2 to execute a command and redirect its output into a view Copyright (c) 2012 Frédéric Massart - FMCorz.net Licensed under The MIT License Redistributions of files must retain the above copyright notice. http://github.com/FMCorz/ExcelExec """ import...
32.483766
118
0.567916
1,221
10,005
4.552007
0.220311
0.030227
0.013854
0.021591
0.242173
0.197373
0.132602
0.108312
0.0457
0.0457
0
0.005554
0.316142
10,005
307
119
32.589577
0.806782
0.081659
0
0.219048
0
0
0.035252
0
0
0
0
0
0
0
null
null
0.009524
0.033333
null
null
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4b3f044f4efc8049636fbd050c99b8cb9ccd05af
3,551
py
Python
pypadre/binding/model/sklearn_binding.py
padre-lab-eu/pypadre
c244a5f1d4eb7bf168cc06dd9b43416883534268
[ "MIT" ]
3
2019-12-19T13:29:52.000Z
2019-12-20T07:32:05.000Z
pypadre/binding/model/sklearn_binding.py
padre-lab-eu/pypadre
c244a5f1d4eb7bf168cc06dd9b43416883534268
[ "MIT" ]
1
2019-12-16T13:39:24.000Z
2019-12-16T13:39:24.000Z
pypadre/binding/model/sklearn_binding.py
padre-lab-eu/pypadre
c244a5f1d4eb7bf168cc06dd9b43416883534268
[ "MIT" ]
null
null
null
from collections import Callable from typing import Union, Type, Optional from sklearn.pipeline import Pipeline from pypadre.binding.model.sklearn_estimator import SKLearnEstimator from pypadre.binding.model.sklearn_evaluator import SKLearnEvaluator from pypadre.core.model.code.code_mixin import CodeMixin from pypadr...
44.949367
118
0.689946
364
3,551
6.532967
0.28022
0.047098
0.025231
0.033642
0.1455
0.093356
0.039529
0
0
0
0
0.001815
0.224162
3,551
78
119
45.525641
0.861343
0.107012
0
0
0
0
0.0176
0
0
0
0
0.012821
0.040816
1
0.061224
false
0
0.183673
0.020408
0.306122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4b42c51a89c93c3501da34788da2964fdf0df857
1,032
py
Python
balsam/JobErrorCode.py
hep-cce/hpc-edge-service
57f2b9252d21d478eabe06cbdced5b623f08c75f
[ "BSD-3-Clause" ]
null
null
null
balsam/JobErrorCode.py
hep-cce/hpc-edge-service
57f2b9252d21d478eabe06cbdced5b623f08c75f
[ "BSD-3-Clause" ]
null
null
null
balsam/JobErrorCode.py
hep-cce/hpc-edge-service
57f2b9252d21d478eabe06cbdced5b623f08c75f
[ "BSD-3-Clause" ]
null
null
null
class JobErrorCode: """ Error Codes returned by Job related operations """ NoError = 0 JobNotFound = 1 MultipleJobsFound = 2 JobFailed = 3 SubmitNotAllowed = 4 ErrorOccurred = 5 InternalSchedulerError = 6 JobUnsanitary = 7 Executable...
22.933333
57
0.525194
82
1,032
6.426829
0.52439
0.085389
0.074004
0.049336
0.208729
0.208729
0.208729
0.208729
0.208729
0.208729
0
0.019324
0.398256
1,032
44
58
23.454545
0.829308
0.044574
0
0.114286
0
0
0.150769
0.022564
0
0
0
0
0
1
0.085714
false
0
0
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4b5c731129da60ab6a51b691ab517e728fb96b7a
4,208
py
Python
Machine-Learning-with-Python- From-LM-to-DL/Unit 2. Non Linear Classification, Linear Regression, Colaborative Filtering/mnist/part2-nn/test_environment_3.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
1
2020-09-29T17:29:34.000Z
2020-09-29T17:29:34.000Z
Machine-Learning-with-Python- From-LM-to-DL/Unit 2. Non Linear Classification, Linear Regression, Colaborative Filtering/mnist/part2-nn/test_environment_3.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
Machine-Learning-with-Python- From-LM-to-DL/Unit 2. Non Linear Classification, Linear Regression, Colaborative Filtering/mnist/part2-nn/test_environment_3.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
import numpy as np class NeuralNetwork(): def __init__(self): # DO NOT CHANGE PARAMETERS self.input_to_hidden_weights = np.matrix('1 1; 1 1; 1 1') self.hidden_to_output_weights = np.matrix('1 1 1') self.biases = np.matrix('0; 0; 0') self.learning_rate = .001 self.ep...
48.367816
214
0.66326
568
4,208
4.596831
0.198944
0.055151
0.096515
0.088472
0.464956
0.304481
0.176178
0.126388
0.126388
0.097281
0
0.024534
0.234791
4,208
87
215
48.367816
0.786335
0.135219
0
0.137931
0
0
0.070715
0
0
0
0
0.011494
0
1
0.086207
false
0
0.017241
0.017241
0.172414
0.189655
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4b5f96165b04b78c652c6051e58f46887d918cfa
853
py
Python
video/tests/faker_data.py
chandojo/climbbeta
17b393535413d035d6cf831cab700c5fd2dc703c
[ "MIT" ]
1
2019-01-25T03:57:54.000Z
2019-01-25T03:57:54.000Z
video/tests/faker_data.py
chandojo/climbbeta
17b393535413d035d6cf831cab700c5fd2dc703c
[ "MIT" ]
39
2019-03-29T17:13:06.000Z
2022-02-10T08:26:46.000Z
video/tests/faker_data.py
chandojo/climbbeta
17b393535413d035d6cf831cab700c5fd2dc703c
[ "MIT" ]
1
2019-12-10T18:19:59.000Z
2019-12-10T18:19:59.000Z
from django.utils.text import slugify from faker import Faker import factory from factory.django import DjangoModelFactory from video.models import Videos from areas.tests.faker_data import CityTownFactory import random fake = Faker() class Climbing_Name_Random(): climbs = ['The Pocket', 'Ground Zero', 'Samu...
25.088235
70
0.71864
103
853
5.825243
0.524272
0.06
0.06
0
0
0
0
0
0
0
0
0.002878
0.185229
853
33
71
25.848485
0.860432
0
0
0
0
0
0.12544
0
0
0
0
0
0
1
0
false
0
0.304348
0
0.869565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4b64eecb3964e4a0b2092b9ca68155c6de6edfba
1,911
py
Python
computer_science/data_structures/linkedList.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
computer_science/data_structures/linkedList.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
computer_science/data_structures/linkedList.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
class Node: def __init__(self, value): self.val = value self.next = self.prev = None class MyLinkedList(object): def __init__(self): self.__head = self.__tail = Node(-1) self.__head.next = self.__tail self.__tail.prev = self.__head self.__size = 0 def get(...
30.333333
82
0.571952
244
1,911
4.077869
0.147541
0.120603
0.060302
0.036181
0.567839
0.443216
0.443216
0.231156
0.086432
0.086432
0
0.014296
0.304553
1,911
62
83
30.822581
0.734387
0
0
0.18
0
0
0
0
0
0
0
0
0
1
0.22
false
0
0
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4b68acda00fb9beb9a34b0ba110fe365b17d4928
610
py
Python
apps/product/migrations/0004_auto_20170803_1245.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
apps/product/migrations/0004_auto_20170803_1245.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
7
2020-06-05T23:36:01.000Z
2022-01-13T01:42:07.000Z
apps/product/migrations/0004_auto_20170803_1245.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-08-03 06:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0003_favoriteproduct_user'), ] operations = [ migrations.AlterFi...
29.047619
199
0.639344
67
610
5.656716
0.820896
0
0
0
0
0
0
0
0
0
0
0.050209
0.216393
610
20
200
30.5
0.742678
0.111475
0
0
1
0
0.222635
0.046382
0
0
0
0
0
1
0
false
0
0.153846
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4b6b692acd364302f74dd3c603601070b72fb688
888
py
Python
Ankit Khandelwal_HW2/exercise 4/exercise 4.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
Ankit Khandelwal_HW2/exercise 4/exercise 4.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
Ankit Khandelwal_HW2/exercise 4/exercise 4.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
from math import * import scipy.constants as sc def simpsons_rule(f, a, b): c = (a + b) / 2.0 h3 = abs(b - a) / 6.0 return h3 * (f(a) + 4.0 * f(c) + f(b)) def recursive_asr(f, a, b, eps, whole): c = (a + b) / 2.0 left = simpsons_rule(f, a, c) right = simpsons_rule(f, c, b) if abs(left +...
26.117647
93
0.576577
161
888
3.086957
0.298137
0.032193
0.156942
0.112676
0.235412
0.072435
0
0
0
0
0
0.056886
0.247748
888
33
94
26.909091
0.687126
0
0
0.095238
0
0
0.03491
0
0
0
0
0
0
1
0.190476
false
0
0.095238
0.095238
0.52381
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4b6c83147e5c5d1338a64fd368d05a5a3bffe054
202
py
Python
facts/views.py
evildmp/facts
bcfb0ce33cf70f208d3db3abe1bc2969ef468f01
[ "MIT" ]
1
2015-07-20T10:40:25.000Z
2015-07-20T10:40:25.000Z
facts/views.py
evildmp/facts
bcfb0ce33cf70f208d3db3abe1bc2969ef468f01
[ "MIT" ]
null
null
null
facts/views.py
evildmp/facts
bcfb0ce33cf70f208d3db3abe1bc2969ef468f01
[ "MIT" ]
null
null
null
from django.shortcuts import render from facts.models import Fact def home_page(request): facts = Fact.objects.all() return render(request, 'facts/home.html', { "facts": facts })
18.363636
47
0.673267
26
202
5.192308
0.615385
0.177778
0
0
0
0
0
0
0
0
0
0
0.212871
202
10
48
20.2
0.849057
0
0
0
0
0
0.09901
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4b6c8326698aa50129c488736fc0dc12af785df4
2,777
py
Python
tests/algorithms/test_connected.py
ComplexGroupInteractions/xgi
67107dd01459e687a4356566ee40865ceca8e72c
[ "BSD-3-Clause" ]
24
2021-11-18T00:04:11.000Z
2022-01-19T01:52:55.000Z
tests/algorithms/test_connected.py
ComplexGroupInteractions/xgi
67107dd01459e687a4356566ee40865ceca8e72c
[ "BSD-3-Clause" ]
52
2021-11-21T17:33:34.000Z
2022-03-30T17:20:43.000Z
tests/algorithms/test_connected.py
ComplexGroupInteractions/xgi
67107dd01459e687a4356566ee40865ceca8e72c
[ "BSD-3-Clause" ]
null
null
null
import pytest import xgi from xgi.exception import XGIError def test_is_connected(edgelist1, edgelist3): H1 = xgi.Hypergraph(edgelist1) H2 = xgi.Hypergraph(edgelist3) assert xgi.is_connected(H1) == False assert xgi.is_connected(H2) == True def test_connected_components(edgelist1, edgelist2, edgelis...
33.457831
70
0.68023
412
2,777
4.427184
0.123786
0.078947
0.087719
0.137061
0.592105
0.434211
0.339364
0.278509
0.278509
0.201754
0
0.080321
0.193014
2,777
82
71
33.865854
0.733601
0
0
0.169231
0
0
0
0
0
0
0
0
0.446154
1
0.092308
false
0
0.046154
0
0.138462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
4b78b648ee930b29f8b7212929e1be7af55b8b50
2,804
py
Python
train/sub_func/loss_func.py
DevBruce/Mask_R-CNN_For_Open_Images_2019
00574b20eaf6d228d79fba1575c74f080a4cbf44
[ "MIT" ]
null
null
null
train/sub_func/loss_func.py
DevBruce/Mask_R-CNN_For_Open_Images_2019
00574b20eaf6d228d79fba1575c74f080a4cbf44
[ "MIT" ]
1
2020-01-28T22:16:56.000Z
2020-01-28T22:16:56.000Z
train/sub_func/loss_func.py
DevBruce/Mask_R-CNN_For_Open_Images_2019
00574b20eaf6d228d79fba1575c74f080a4cbf44
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.losses import categorical_crossentropy from config import epsilon, lambda_rpn_regr, lambda_rpn_class, lambda_cls_regr, lambda_cls_class __all__ = [ 'rpn_loss_regr', 'rpn_loss_cls', 'class_loss_regr', 'class_loss_cl...
38.944444
185
0.596648
436
2,804
3.550459
0.188073
0.05491
0.015504
0.034884
0.545866
0.379199
0.319767
0.257106
0.257106
0.175711
0
0.030777
0.269971
2,804
71
186
39.492958
0.725452
0.333809
0
0.058824
0
0
0.0346
0
0
0
0
0
0
1
0.205882
false
0
0.117647
0.058824
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4b7ea288f02c590700b7aec134e43e699b32e859
1,255
py
Python
src/rain.py
QianWanghhu/wqd_analyze
634c0210d28b00628e6217ba68cc4c719bed9e59
[ "MIT" ]
null
null
null
src/rain.py
QianWanghhu/wqd_analyze
634c0210d28b00628e6217ba68cc4c719bed9e59
[ "MIT" ]
null
null
null
src/rain.py
QianWanghhu/wqd_analyze
634c0210d28b00628e6217ba68cc4c719bed9e59
[ "MIT" ]
null
null
null
""" This script is used to process the discharge-concentration data. """ # import packages import numpy as np import pandas as pd import os import datetime # define the repository path from common_settings import fpath import matplotlib.pyplot as plt import seaborn as sns # Refer to rainfall data to split the data in...
40.483871
110
0.70996
197
1,255
4.42132
0.451777
0.080367
0.037887
0.041332
0.087256
0
0
0
0
0
0
0.028105
0.121116
1,255
30
111
41.833333
0.761559
0.18247
0
0
0
0
0.154832
0.063116
0
0
0
0
0
1
0
false
0
0.35
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4b7fa7351e8284c8e73dcf83ad3957cac12291ef
1,455
py
Python
SimGeneral/TrackingAnalysis/python/trackingParticles_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimGeneral/TrackingAnalysis/python/trackingParticles_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimGeneral/TrackingAnalysis/python/trackingParticles_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms mergedtruth = cms.EDProducer("TrackingTruthProducer", mixLabel = cms.string('mix'), simHitLabel = cms.string('g4SimHits'), volumeRadius = cms.double(1200.0), vertexDistanceCut = cms.double(0.003), volumeZ = cms.double(3000.0), mergedBremsstrahlung = cms...
30.957447
54
0.633677
83
1,455
11.108434
0.674699
0.043384
0.02603
0
0
0
0
0
0
0
0
0.028355
0.272852
1,455
46
55
31.630435
0.8431
0
0
0.075
0
0
0.358076
0.279725
0
0
0
0
0
1
0
false
0
0.025
0
0.025
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4b8701988081194e855ce9b987e42c3b789adad1
2,897
py
Python
paper_fig/plot_roots_2d.py
braghiere/3D_FSPM
5ba06b6e65c3299776bb32e552d2788564a7306d
[ "MIT" ]
null
null
null
paper_fig/plot_roots_2d.py
braghiere/3D_FSPM
5ba06b6e65c3299776bb32e552d2788564a7306d
[ "MIT" ]
null
null
null
paper_fig/plot_roots_2d.py
braghiere/3D_FSPM
5ba06b6e65c3299776bb32e552d2788564a7306d
[ "MIT" ]
1
2022-02-10T14:34:33.000Z
2022-02-10T14:34:33.000Z
import numpy as np import matplotlib.pyplot as plt import os, sys from scipy.interpolate import interp2d from pylab import * filelist=[] #error = [] biomrsd1= [] biomrsd2= [] dirname1 = "/home/renato/groimp_efficient/run_1c/jules/" dirname2 = "/home/renato/groimp_efficient/run_1c/" for i in range(1,61): filel...
22.811024
89
0.649292
469
2,897
3.974414
0.317697
0.038627
0.06867
0.053648
0.238197
0.186695
0.138412
0.08691
0.064378
0.064378
0
0.06346
0.146013
2,897
126
90
22.992063
0.689976
0.072834
0
0.024691
0
0
0.153904
0.068694
0
0
0
0
0
0
null
null
0
0.061728
null
null
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4b8abafe58c05cf65e82e4cb3c67f2448aa524b2
1,820
py
Python
src/segment.py
Kautenja/very-good-semantic-segmentation-labeling-app
73a51ed17d1e22ae98ebae53058092b425708338
[ "MIT" ]
1
2020-04-07T01:29:29.000Z
2020-04-07T01:29:29.000Z
src/segment.py
Kautenja/very-good-semantic-segmentation-labeling-app
73a51ed17d1e22ae98ebae53058092b425708338
[ "MIT" ]
null
null
null
src/segment.py
Kautenja/very-good-semantic-segmentation-labeling-app
73a51ed17d1e22ae98ebae53058092b425708338
[ "MIT" ]
1
2019-02-27T06:01:14.000Z
2019-02-27T06:01:14.000Z
"""A method to segment image.""" from skimage.color import rgb2gray from skimage.filters import sobel from skimage.segmentation import felzenszwalb from skimage.segmentation import slic from skimage.segmentation import quickshift from skimage.segmentation import watershed from skimage.segmentation import mark_boundarie...
35.686275
79
0.733516
240
1,820
5.470833
0.375
0.067022
0.087586
0.110434
0
0
0
0
0
0
0
0.008941
0.201099
1,820
50
80
36.4
0.894085
0.415385
0
0
0
0
0.0583
0
0
0
0
0
0
1
0.043478
false
0
0.347826
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4b8dd1771849acfef2362cb058e6583fec0fc0e5
6,403
py
Python
app_source/forms.py
avouacr/3A-ENSAE-projet-info
2c8bec33b0cbbea5d97df4dc585c38fe042b577f
[ "MIT", "Unlicense" ]
null
null
null
app_source/forms.py
avouacr/3A-ENSAE-projet-info
2c8bec33b0cbbea5d97df4dc585c38fe042b577f
[ "MIT", "Unlicense" ]
null
null
null
app_source/forms.py
avouacr/3A-ENSAE-projet-info
2c8bec33b0cbbea5d97df4dc585c38fe042b577f
[ "MIT", "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, IntegerField from wtforms import TextAreaField, SelectField, FieldList, FormField, DateField from wtforms.validators import ValidationError, DataRequired, Email, EqualTo from wtforms.validators import Length from ...
39.042683
101
0.691395
635
6,403
6.862992
0.311811
0.075723
0.03855
0.030289
0.32033
0.23497
0.104635
0.06838
0.036255
0.036255
0
0.006081
0.203811
6,403
163
102
39.282209
0.848764
0.043261
0
0.247788
0
0
0.164561
0.00886
0
0
0
0
0
1
0.00885
false
0.044248
0.053097
0
0.769912
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4b8df4c615f52fb0683f4ff9e2712402ccb5dc49
340
py
Python
test/rive.py
snoopyjc/rivescript_coverage_plugin
dab9a36c0c48e040909c487cc7d96fe2b60ef267
[ "MIT" ]
1
2020-01-17T22:08:47.000Z
2020-01-17T22:08:47.000Z
test/rive.py
snoopyjc/rivescript_coverage_plugin
dab9a36c0c48e040909c487cc7d96fe2b60ef267
[ "MIT" ]
18
2020-01-17T22:07:29.000Z
2020-03-29T22:13:12.000Z
test/rive.py
snoopyjc/rivescript_coverage_plugin
dab9a36c0c48e040909c487cc7d96fe2b60ef267
[ "MIT" ]
null
null
null
from rivescript import RiveScript DEBUG_RIVESCRIPT=False BRAIN='brain' rs = None def rs_init(): global rs print("Loading rs brain") rs = RiveScript(DEBUG_RIVESCRIPT, utf8=True) rs.load_directory(BRAIN) rs.sort_replies() print("rs brain loaded") def reply(user, msg): global rs return ...
17.894737
48
0.694118
48
340
4.8125
0.5
0.090909
0.21645
0
0
0
0
0
0
0
0
0.00369
0.202941
340
18
49
18.888889
0.848708
0
0
0.142857
0
0
0.105882
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.285714
0.142857
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4b90eb332266583266e9a7648850bb5002b41eff
1,603
py
Python
cli/set_build_result.py
lechat/jenkinsflow
87396069dda4f0681829e5d4e264e4f09ae34131
[ "BSD-3-Clause" ]
null
null
null
cli/set_build_result.py
lechat/jenkinsflow
87396069dda4f0681829e5d4e264e4f09ae34131
[ "BSD-3-Clause" ]
null
null
null
cli/set_build_result.py
lechat/jenkinsflow
87396069dda4f0681829e5d4e264e4f09ae34131
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. from __future__ import print_function import click from .utils import base_url_and_api @click.command() @click.option('--result', help="The result to set. Should probably be 'uns...
51.709677
159
0.731753
245
1,603
4.673469
0.404082
0.048035
0.036681
0.022707
0.054148
0.054148
0.054148
0.054148
0
0
0
0.005869
0.149719
1,603
30
160
53.433333
0.834189
0.427324
0
0
0
0.076923
0.394826
0.024747
0
0
0
0
0
1
0.076923
false
0.230769
0.230769
0
0.307692
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4b988a1cfed7a452911248c2f9b84e41f6c8c363
2,747
py
Python
interface/arguments.py
nyu-mll/crowdsourcing-protocol-comparison
36ffa1fcc5a7ca84e3b10fde9ae682968d5f6dcc
[ "CC-BY-4.0" ]
2
2021-06-03T22:04:37.000Z
2021-06-04T15:23:46.000Z
interface/arguments.py
nyu-mll/crowdsourcing-protocol-comparison
36ffa1fcc5a7ca84e3b10fde9ae682968d5f6dcc
[ "CC-BY-4.0" ]
1
2021-06-03T14:08:23.000Z
2021-06-03T14:08:25.000Z
interface/arguments.py
nyu-mll/crowdsourcing-protocol-comparison
36ffa1fcc5a7ca84e3b10fde9ae682968d5f6dcc
[ "CC-BY-4.0" ]
null
null
null
import argparse def get_arguments(): parser = argparse.ArgumentParser() parser.add_argument( "--run_mode", choices=["debug", "sandbox", "release"], default="debug", help=""" debug: generate void HITs sandbox: connect to the mturk sandbox server, embedded in the ...
28.030612
101
0.583182
309
2,747
5.02589
0.352751
0.110109
0.207985
0.043786
0.128139
0.070831
0
0
0
0
0
0.008184
0.288315
2,747
97
102
28.319588
0.786189
0
0
0.326316
0
0
0.394976
0.033127
0
0
0
0
0
1
0.010526
false
0.010526
0.010526
0
0.031579
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4b99f543042e28bae0f6c2ffacd561a9c42c796e
3,534
py
Python
hmt/build/media_types.py
dfioravanti/hmt
df79404076ec7acea0cfb12b636d58e3ffc83bc5
[ "MIT" ]
25
2020-05-14T13:25:42.000Z
2021-11-09T10:09:27.000Z
hmt/build/media_types.py
dfioravanti/hmt
df79404076ec7acea0cfb12b636d58e3ffc83bc5
[ "MIT" ]
19
2020-05-05T19:47:41.000Z
2021-02-05T17:06:53.000Z
hmt/build/media_types.py
dfioravanti/hmt
df79404076ec7acea0cfb12b636d58e3ffc83bc5
[ "MIT" ]
6
2020-05-16T10:02:48.000Z
2021-10-04T08:03:49.000Z
"""Code for building and inferring media types (application/json, text/plain, etc.) from HTTP exchanges.""" import json from typing import Any, Optional, Sequence, cast from openapi_typed_2 import MediaType, Schema, convert_to_Schema from typing_extensions import Literal from ..logger import get as getLogger from .js...
29.45
123
0.649406
433
3,534
5.13164
0.265589
0.081008
0.023402
0.032403
0.151215
0.108911
0.081008
0.044104
0.044104
0
0
0.00038
0.255801
3,534
119
124
29.697479
0.844487
0.234295
0
0.057143
0
0
0.082506
0
0
0
0
0.016807
0
1
0.071429
false
0
0.1
0.014286
0.271429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4b9a586452757279532bd96224172ef5ff2a12fa
412
py
Python
demo/main/urls.py
9dev/django-ip-system
8d53fea89c0fcef3bdea27a893ce6a484b8b900a
[ "MIT" ]
null
null
null
demo/main/urls.py
9dev/django-ip-system
8d53fea89c0fcef3bdea27a893ce6a484b8b900a
[ "MIT" ]
null
null
null
demo/main/urls.py
9dev/django-ip-system
8d53fea89c0fcef3bdea27a893ce6a484b8b900a
[ "MIT" ]
null
null
null
from django.conf.urls import url from main import views urlpatterns = [ url( r'^$', views.ArticleListView.as_view(), name='article_list' ), url( r'^create$', views.ArticleCreateView.as_view(), name='article_create' ), url( r'^article/(?P<pk>...
17.913043
42
0.543689
44
412
4.954545
0.545455
0.055046
0.137615
0.233945
0
0
0
0
0
0
0
0.006993
0.305825
412
22
43
18.727273
0.755245
0
0
0.315789
0
0
0.177184
0.055825
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4b9a5d1864db954ffeec2f9aa65d8bfc5890e948
216
py
Python
test_main.py
defraculator/jenkins-test
eb7e3bac8586b2cc3c5db4587ad5393ef482516b
[ "MIT" ]
null
null
null
test_main.py
defraculator/jenkins-test
eb7e3bac8586b2cc3c5db4587ad5393ef482516b
[ "MIT" ]
null
null
null
test_main.py
defraculator/jenkins-test
eb7e3bac8586b2cc3c5db4587ad5393ef482516b
[ "MIT" ]
null
null
null
import unittest import main class TestResult(unittest.TestCase): def test_res(self): self.assertEqual(main.hello(), "Hello, Jenkins") if __name__ == "__main__": unittest.main()
19.636364
56
0.62963
23
216
5.521739
0.652174
0
0
0
0
0
0
0
0
0
0
0
0.25463
216
10
57
21.6
0.78882
0
0
0
0
0
0.101852
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ba2f9545e1187fbb57d1598bb6e2273511cb329
780
py
Python
superman/file_io/test/test_text_formats.py
WasatchPhotonics/superman
dd51773f7ab7dafd8fec7ffc14c8d8cb9b1e19f6
[ "MIT" ]
3
2017-10-14T15:49:36.000Z
2021-03-03T23:45:37.000Z
superman/file_io/test/test_text_formats.py
WasatchPhotonics/superman
dd51773f7ab7dafd8fec7ffc14c8d8cb9b1e19f6
[ "MIT" ]
4
2017-12-28T23:34:13.000Z
2018-02-16T18:31:31.000Z
superman/file_io/test/test_text_formats.py
vishalbelsare/superman
346fc0d590f40bfe0141630e3146ec8e7ee18be3
[ "MIT" ]
5
2017-11-28T15:11:01.000Z
2021-07-12T15:34:18.000Z
from __future__ import absolute_import import numpy as np import os import unittest from numpy.testing import assert_array_almost_equal from .. import parse_spectrum FIXTURE_PATH = os.path.dirname(__file__) FIXTURE_DATA = np.array([[0.4,3.2],[1.2,2.7],[2.0,5.4]]) class TextFormatTests(unittest.TestCase): def test...
27.857143
65
0.75641
122
780
4.45082
0.352459
0.081031
0.12523
0.162063
0.489871
0.489871
0.489871
0.427256
0.427256
0.276243
0
0.017544
0.123077
780
27
66
28.888889
0.776316
0
0
0.15
0
0
0.052564
0
0
0
0
0
0.2
1
0.15
false
0
0.3
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ba5d39b928aa089f7ad9a87cb03f99647f99852
3,924
py
Python
microsrvurl.py
openov2/sdno-driver-ct-te
f305f53f12a5f443d13d05be04bff082dcf5410c
[ "CC-BY-4.0" ]
null
null
null
microsrvurl.py
openov2/sdno-driver-ct-te
f305f53f12a5f443d13d05be04bff082dcf5410c
[ "CC-BY-4.0" ]
null
null
null
microsrvurl.py
openov2/sdno-driver-ct-te
f305f53f12a5f443d13d05be04bff082dcf5410c
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'liyiqun' # microsrv_linkstat_url = 'http://127.0.0.1:32769/microsrv/link_stat' # microsrv_linkstat_url = 'http://127.0.0.1:33710/microsrv/link_stat' # microsrv_linkstat_url = 'http://10.9.63.208:7799/microsrv/ms_link/link/links' # microsrv_linkstat_url = '...
45.627907
80
0.697503
660
3,924
3.878788
0.154545
0.117578
0.072266
0.086719
0.715234
0.690625
0.646875
0.567188
0.469141
0.399609
0
0.175157
0.109582
3,924
85
81
46.164706
0.557527
0.482926
0
0
0
0
0.633648
0.074948
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4bac3e873b44164d8f9bd908910a9eb50c9d4a2f
975
py
Python
tapes/reporting/tornado/__init__.py
emilssolmanis/tapes
7797fc9ebcb359cb1ba5085570e3cab5ebcd1d3c
[ "Apache-2.0" ]
6
2015-03-22T08:03:29.000Z
2015-03-23T14:30:31.000Z
tapes/reporting/tornado/__init__.py
emilssolmanis/tapes
7797fc9ebcb359cb1ba5085570e3cab5ebcd1d3c
[ "Apache-2.0" ]
null
null
null
tapes/reporting/tornado/__init__.py
emilssolmanis/tapes
7797fc9ebcb359cb1ba5085570e3cab5ebcd1d3c
[ "Apache-2.0" ]
null
null
null
from tornado import ioloop from .. import ScheduledReporter class TornadoScheduledReporter(ScheduledReporter): """Scheduled reporter that uses a tornado IOLoop for scheduling""" def __init__(self, interval, registry=None, io_loop=None): """ :param interval: a timedelta :param registry...
34.821429
82
0.661538
119
975
5.226891
0.361345
0.086817
0.064309
0.054662
0.067524
0
0
0
0
0
0
0
0.248205
975
27
83
36.111111
0.848568
0.236923
0
0.125
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4bae6213a3b967e658e54e3acb984998adb45db9
1,025
py
Python
mlsurvey/sl/models/evaluation_factory.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/models/evaluation_factory.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/models/evaluation_factory.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
class EvaluationFactory: factories = {} @staticmethod def add_factory(name, evaluation_factory): """ Add a EvaluationFactory into all the factories :param name: the name of the factory :param evaluation_factory: the instance of the factory """ EvaluationFacto...
31.060606
75
0.641951
108
1,025
6.009259
0.240741
0.038521
0.060092
0.07396
0.255778
0.163328
0
0
0
0
0
0
0.287805
1,025
32
76
32.03125
0.889041
0.385366
0
0.214286
0
0
0.007813
0
0
0
0
0
0
1
0.214286
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4bb23d15ece130d0836972cd270cd5b3ef0face5
611
py
Python
setup.py
wtsi-hgi/python-git-subrepo-wrapper
bb2eb2bd9a7e51b862298ddb4168cc5b8633dad0
[ "MIT" ]
null
null
null
setup.py
wtsi-hgi/python-git-subrepo-wrapper
bb2eb2bd9a7e51b862298ddb4168cc5b8633dad0
[ "MIT" ]
null
null
null
setup.py
wtsi-hgi/python-git-subrepo-wrapper
bb2eb2bd9a7e51b862298ddb4168cc5b8633dad0
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages try: from pypandoc import convert def read_markdown(file: str) -> str: return convert(file, "rst") except ImportError: def read_markdown(file: str) -> str: return open(file, "r").read() setup( name="gitsubrepo", version="1.1.0", packa...
29.095238
63
0.675941
78
611
5.205128
0.653846
0.08867
0.073892
0.093596
0.152709
0.152709
0.152709
0
0
0
0
0.005952
0.175123
611
20
64
30.55
0.799603
0
0
0.111111
0
0
0.230769
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0.111111
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
4bc03ca6b08f5f8dbb01683c61a2e65d146b2d55
5,528
py
Python
src/tests/test-graph-solution.py
seraphlabs-ca/pygraph
9a7fbda3ccf6738e91a47d19975d0ab4554ace90
[ "BSD-3-Clause" ]
null
null
null
src/tests/test-graph-solution.py
seraphlabs-ca/pygraph
9a7fbda3ccf6738e91a47d19975d0ab4554ace90
[ "BSD-3-Clause" ]
null
null
null
src/tests/test-graph-solution.py
seraphlabs-ca/pygraph
9a7fbda3ccf6738e91a47d19975d0ab4554ace90
[ "BSD-3-Clause" ]
null
null
null
""" Tests pygraph solver solution. """ import pygraph import numpy as np import time #=============================================================================# # Global variables #=============================================================================# def build_trajectories(N, K, H=4): """ N - s...
28.494845
86
0.458032
796
5,528
3.069095
0.222362
0.009005
0.014736
0.011052
0.258289
0.210806
0.176422
0.122391
0.122391
0.122391
0
0.034825
0.324711
5,528
193
87
28.642487
0.619609
0.201339
0
0.141414
0
0
0.049327
0
0
0
0
0
0
0
null
null
0
0.030303
null
null
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
298f386795a1f1e7e38ed4e75d3c4a7ebb300cb0
3,691
py
Python
KristaBackup/web/webapp/Users.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
7
2020-07-28T06:53:02.000Z
2022-03-18T05:23:03.000Z
KristaBackup/web/webapp/Users.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-11-25T16:13:26.000Z
2020-11-25T16:13:26.000Z
KristaBackup/web/webapp/Users.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-07-28T13:47:09.000Z
2020-07-28T13:47:09.000Z
# -*- coding: UTF-8 -*- from functools import wraps from flask import current_app, flash, redirect from flask_login import UserMixin, user_unauthorized from flask_login.utils import _get_user from itsdangerous import BadSignature, SignatureExpired from itsdangerous import TimedJSONWebSignatureSerializer as Serialize...
25.108844
112
0.64427
449
3,691
5.144766
0.300668
0.051948
0.041558
0.025974
0.067532
0
0
0
0
0
0
0.002146
0.242482
3,691
146
113
25.280822
0.824034
0.069358
0
0.115385
0
0.009615
0.071303
0
0
0
0
0
0
1
0.163462
false
0.105769
0.096154
0.048077
0.451923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
29946d9470b5bff1e7ef42f21f7615acf4b9afb3
535
py
Python
openslides/assignments/migrations/0002_assignmentpoll_pollmethod.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
3
2021-02-11T20:45:58.000Z
2022-02-09T21:59:42.000Z
openslides/assignments/migrations/0002_assignmentpoll_pollmethod.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
2
2021-11-02T15:48:16.000Z
2022-03-02T08:38:19.000Z
openslides/assignments/migrations/0002_assignmentpoll_pollmethod.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
3
2021-01-18T11:44:05.000Z
2022-01-19T16:00:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-24 11:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("assignments", "0001_initial")] operations = [ migrations.RemoveField(model_name="assignm...
26.75
81
0.656075
57
535
6
0.736842
0.052632
0.134503
0.157895
0
0
0
0
0
0
0
0.052632
0.218692
535
19
82
28.157895
0.76555
0.127103
0
0
1
0
0.163793
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2996f88d0c6f013ec6d860ccf20d485281c00b57
604
py
Python
silvia/silviacontrol/management/commands/test_display.py
willhunt/silvia
1e2a207d2525f965024e9fb362537569d8a3c4e0
[ "MIT" ]
5
2020-09-07T18:17:30.000Z
2021-12-14T02:00:53.000Z
silvia/silviacontrol/management/commands/test_display.py
willhunt/silvia
1e2a207d2525f965024e9fb362537569d8a3c4e0
[ "MIT" ]
6
2020-05-20T14:39:06.000Z
2021-05-11T18:53:30.000Z
silvia/silviacontrol/management/commands/test_display.py
willhunt/silvia
1e2a207d2525f965024e9fb362537569d8a3c4e0
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.conf import settings as django_settings from silviacontrol.utils import debug_log class Command(BaseCommand): help = 'Registers functions for GPIO interrupts on pi' def handle(self, *args, **options): if django_settings.SIMU...
37.75
65
0.706954
68
604
6.191176
0.705882
0.047506
0
0
0
0
0
0
0
0
0
0.014989
0.226821
604
16
66
37.75
0.88651
0
0
0
0
0
0.135537
0
0
0
0.006612
0
0
1
0.076923
false
0
0.307692
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2996fa8d8c2bd07e8828b97f7f156b7fc172148b
2,486
py
Python
transformerquant/utils/datetime_converter.py
StateOfTheArt-quant/transformerquant
f6775d7aa920b84908b0a09d9ba098b1fe87bdff
[ "Apache-2.0" ]
22
2019-11-02T12:00:38.000Z
2022-02-16T08:00:36.000Z
transformerquant/utils/datetime_converter.py
StateOfTheArt-quant/transformerquant
f6775d7aa920b84908b0a09d9ba098b1fe87bdff
[ "Apache-2.0" ]
null
null
null
transformerquant/utils/datetime_converter.py
StateOfTheArt-quant/transformerquant
f6775d7aa920b84908b0a09d9ba098b1fe87bdff
[ "Apache-2.0" ]
6
2020-04-19T08:10:03.000Z
2021-12-07T05:59:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 27 20:42:07 2018 @author: allen """ import datetime import pandas as pd from functools import lru_cache def _to_hours_mins_secs(time_taken): """Convert seconds to hours, mins, and seconds.""" ...
26.168421
75
0.677393
399
2,486
3.962406
0.200501
0.050601
0.045541
0.040481
0.334598
0.270082
0.220746
0.096142
0.096142
0.040481
0
0.072319
0.193484
2,486
95
76
26.168421
0.716209
0.103781
0
0.155172
0
0
0.011333
0
0
0
0
0
0
1
0.224138
false
0
0.051724
0.051724
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
299a8f6ab6b24e615368affa119df3322fbc12c2
4,781
py
Python
plots.py
PredictiveScienceLab/inverse-bgo
c0170394c6761f69ed91650649ae5925b61fe258
[ "MIT" ]
10
2015-07-19T21:45:36.000Z
2022-02-18T17:18:29.000Z
plots.py
PredictiveScienceLab/inverse-bgo
c0170394c6761f69ed91650649ae5925b61fe258
[ "MIT" ]
null
null
null
plots.py
PredictiveScienceLab/inverse-bgo
c0170394c6761f69ed91650649ae5925b61fe258
[ "MIT" ]
7
2015-07-29T17:34:14.000Z
2020-09-02T14:06:32.000Z
""" Some functions that make useful plots. Author: Ilias Bilionis Date: 7/19/2015 """ import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import seaborn as sns import itertools import os from data import * __all__ = ['plot_catalysis_output', 'make_plots', 'plot_1d_c...
32.746575
89
0.564735
653
4,781
3.992343
0.294028
0.024933
0.027618
0.034522
0.364404
0.271193
0.205984
0.191024
0.191024
0.164173
0
0.034065
0.275465
4,781
145
90
32.972414
0.718533
0
0
0.223301
0
0
0.104912
0.029566
0
0
0
0
0
0
null
null
0
0.07767
null
null
0.038835
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
299babe6dc75ff9b7dfe29b2ad7b0f9c2b4aae9f
6,761
py
Python
theano_models/SdA/finetune_SdA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
theano_models/SdA/finetune_SdA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
theano_models/SdA/finetune_SdA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
""" This script fine-tunes a stacked de-noising auto-encoder by minimizing reconstruction error over larger mini-batches of data. References : http://deeplearning.net/tutorials/ - P. Vincent, H. Larochelle, Y. Bengio, P.A. Manzagol: Extracting and Composing Robust Features with Denoising Autoencoders...
35.772487
121
0.638959
821
6,761
5.073082
0.371498
0.033613
0.021849
0.015846
0.068667
0.058583
0.044178
0.02593
0.02593
0
0
0.013271
0.275551
6,761
188
122
35.962766
0.837076
0.114036
0
0.022472
0
0
0.107968
0
0
0
0
0.005319
0
0
null
null
0
0.179775
null
null
0.078652
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
29a504fa5a726b10987ffefb8698fc5c811c29fc
981
py
Python
gifs/home/migrations/0001_initial.py
DTullis-Discover/TrendsAPI
714019115dba5701d7fc322c9213857fbaa98066
[ "MIT" ]
null
null
null
gifs/home/migrations/0001_initial.py
DTullis-Discover/TrendsAPI
714019115dba5701d7fc322c9213857fbaa98066
[ "MIT" ]
null
null
null
gifs/home/migrations/0001_initial.py
DTullis-Discover/TrendsAPI
714019115dba5701d7fc322c9213857fbaa98066
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-04 17:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Trend', fields=[ ...
29.727273
114
0.573904
102
981
5.421569
0.529412
0.0434
0.050633
0.079566
0.285714
0.285714
0.285714
0.285714
0.285714
0.285714
0
0.025862
0.29052
981
32
115
30.65625
0.768678
0.045872
0
0.416667
1
0
0.051392
0
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
29a68d36dbbf8f914cf35ef53072a5a0a1b09efc
442
py
Python
blog/email.py
petermirithu/blog_site
dda34d018023ccee41ff45eba3498fbeadb4b846
[ "MIT" ]
null
null
null
blog/email.py
petermirithu/blog_site
dda34d018023ccee41ff45eba3498fbeadb4b846
[ "MIT" ]
null
null
null
blog/email.py
petermirithu/blog_site
dda34d018023ccee41ff45eba3498fbeadb4b846
[ "MIT" ]
null
null
null
from flask_mail import Message from flask import render_template from . import mail def mail_message(subject,template,to,**kwargs): ''' function that organizes how an email will look like once sent ''' sender_email='pyramyra33@gmail.com' email=Message(subject, sender=sender_email,recipients=[to]) email.bod...
29.466667
63
0.757919
61
442
5.377049
0.508197
0.128049
0.134146
0
0
0
0
0
0
0
0
0.005141
0.11991
442
14
64
31.571429
0.838046
0.138009
0
0
0
0
0.078591
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
29af9da9eabe31624a5de017d6116d766385a89c
917
py
Python
djautotask/migrations/0084_projectudftracker_taskudftracker.py
KerkhoffTechnologies/django-autotask
458ff0bf65e3ca85fb954f907f05c4c614904afc
[ "MIT" ]
4
2019-04-18T17:12:07.000Z
2021-12-30T21:42:10.000Z
djautotask/migrations/0084_projectudftracker_taskudftracker.py
KerkhoffTechnologies/django-autotask
458ff0bf65e3ca85fb954f907f05c4c614904afc
[ "MIT" ]
32
2018-05-30T20:31:22.000Z
2022-02-17T21:36:50.000Z
djautotask/migrations/0084_projectudftracker_taskudftracker.py
KerkhoffTechnologies/django-autotask
458ff0bf65e3ca85fb954f907f05c4c614904afc
[ "MIT" ]
5
2018-05-25T23:33:45.000Z
2022-01-04T22:01:46.000Z
# Generated by Django 3.1.2 on 2020-10-21 09:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('djautotask', '0083_ticketudftracker'), ] operations = [ migrations.CreateModel( name='ProjectUDFTracker', fields=[ ...
24.131579
52
0.448201
60
917
6.766667
0.616667
0.103448
0.123153
0.098522
0.35468
0.206897
0
0
0
0
0
0.035985
0.424209
917
37
53
24.783784
0.732955
0.049073
0
0.516129
1
0
0.232184
0.072414
0
0
0
0
0
1
0
false
0
0.032258
0
0.129032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
29c429ae27ff967e25296cd4ee2bc76ba6794b07
2,079
py
Python
enochecker_core/__init__.py
enowars/enochecker_core
2f064c84de68e093df28851d5ccecb2090b58392
[ "MIT" ]
1
2020-05-05T14:21:22.000Z
2020-05-05T14:21:22.000Z
enochecker_core/__init__.py
enowars/enochecker_core
2f064c84de68e093df28851d5ccecb2090b58392
[ "MIT" ]
12
2020-05-21T02:30:07.000Z
2021-06-04T17:28:32.000Z
enochecker_core/__init__.py
enowars/enochecker_core
2f064c84de68e093df28851d5ccecb2090b58392
[ "MIT" ]
3
2019-10-15T17:29:41.000Z
2021-05-21T23:22:15.000Z
from dataclasses import dataclass from enum import Enum from typing import Any, Callable, Dict, List, Optional, Type, Union class CheckerTaskResult(Enum): value: str OK = "OK" MUMBLE = "MUMBLE" OFFLINE = "OFFLINE" INTERNAL_ERROR = "INTERNAL_ERROR" def __str__(self) -> str: ...
21.43299
68
0.651756
236
2,079
5.550847
0.300847
0.142748
0.057252
0.048092
0.190076
0.132824
0.042748
0
0
0
0
0
0.26936
2,079
96
69
21.65625
0.862409
0
0
0.205128
0
0
0.035804
0
0
0
0
0
0
1
0.025641
false
0.025641
0.038462
0.025641
0.923077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
29c6cc855db95c51c4c2baa83fdfb7ca06c373ba
1,648
py
Python
Benchmarks_with_Functional_Bugs/Java/Bears-46/src/chore/check-links-in-doc.py
kupl/starlab-benchmarks
1efc9efffad1b797f6a795da7e032041e230d900
[ "MIT" ]
null
null
null
Benchmarks_with_Functional_Bugs/Java/Bears-46/src/chore/check-links-in-doc.py
kupl/starlab-benchmarks
1efc9efffad1b797f6a795da7e032041e230d900
[ "MIT" ]
null
null
null
Benchmarks_with_Functional_Bugs/Java/Bears-46/src/chore/check-links-in-doc.py
kupl/starlab-benchmarks
1efc9efffad1b797f6a795da7e032041e230d900
[ "MIT" ]
2
2020-11-26T13:27:14.000Z
2022-03-20T02:12:55.000Z
#!/usr/bin/python # checks the links of the Spoon documentation # a problem is reported as an exception, hence as a Unic return code != -1, hence as a build failure import CommonMark import glob import os import codecs import requests URLS = [] def check_external_url(url): # only checking the local or github files...
32.96
122
0.650485
240
1,648
4.391667
0.520833
0.039848
0.01518
0.036053
0.085389
0.085389
0.085389
0.085389
0
0
0
0.006211
0.218447
1,648
49
123
33.632653
0.812112
0.192354
0
0
0
0
0.129154
0
0
0
0
0
0
0
null
null
0
0.15625
null
null
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
1
0
0
0
0
0
0
0
0
1
29cb51fc51caa0ae0e9ccd1a5f8b88ca95213a73
2,190
py
Python
modulo1/hash.py
levysiqueira/py-pcs3110
1de11b58eca1afafc0a82386a057cd3fe70cedcf
[ "CC-BY-4.0" ]
9
2019-09-19T23:42:31.000Z
2021-12-04T03:33:23.000Z
modulo1/hash.py
levysiqueira/py-pcs3110
1de11b58eca1afafc0a82386a057cd3fe70cedcf
[ "CC-BY-4.0" ]
null
null
null
modulo1/hash.py
levysiqueira/py-pcs3110
1de11b58eca1afafc0a82386a057cd3fe70cedcf
[ "CC-BY-4.0" ]
2
2019-09-26T20:53:45.000Z
2019-12-19T04:40:42.000Z
class TabelaHash: """ Implementação de uma tabela Hash usando o método da divisão e endereçamento aberto com sondagem linear para resolver colisões. """ def __init__(self, tamanho = 10): self.lista = [None] * tamanho def insere(self, elemento): """ Insere o elemento na tabela Hash....
30.84507
91
0.543836
252
2,190
4.65873
0.265873
0.153322
0.102215
0.086882
0.410562
0.374787
0.325383
0.325383
0.325383
0.29983
0
0.003577
0.361644
2,190
70
92
31.285714
0.836195
0.178539
0
0.511111
0
0
0.035017
0
0
0
0
0.014286
0
1
0.111111
false
0.044444
0
0
0.311111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
29cd5589af5f75860c608a79856fa93e6c532b22
2,289
py
Python
python/src/SlackKafkaConsumer.py
Alfex4936/kafka-Studies
861c4bc0cd3757f61eddea74766b6d22cd4f8f59
[ "MIT" ]
5
2020-12-01T10:41:47.000Z
2021-12-15T09:15:43.000Z
python/src/SlackKafkaConsumer.py
Alfex4936/kafka-Studies
861c4bc0cd3757f61eddea74766b6d22cd4f8f59
[ "MIT" ]
null
null
null
python/src/SlackKafkaConsumer.py
Alfex4936/kafka-Studies
861c4bc0cd3757f61eddea74766b6d22cd4f8f59
[ "MIT" ]
null
null
null
import json import os import time from confluent_kafka import Consumer, KafkaError from slack import WebClient from slack.errors import SlackApiError # Bot User OAuth Access Token # Scope = chat:write token = os.environ["SLACK_BOT_TOKEN"] sc = WebClient(token) # Set 'auto.offset.reset': 'smallest' if you want to c...
29.346154
110
0.543032
270
2,289
4.555556
0.462963
0.03252
0.02439
0.02439
0.037398
0.037398
0
0
0
0
0
0.007194
0.332023
2,289
77
111
29.727273
0.797253
0.094801
0
0.135593
0
0.016949
0.195252
0
0
0
0
0.012987
0.016949
1
0
false
0
0.101695
0
0.101695
0.152542
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
29d919d8dea3ace381b385407b0e77fb1f958664
1,758
py
Python
f5/bigip/tm/sys/test/functional/test_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
272
2016-02-23T06:05:44.000Z
2022-02-20T02:09:32.000Z
f5/bigip/tm/sys/test/functional/test_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
1,103
2016-02-11T17:48:03.000Z
2022-02-15T17:13:37.000Z
f5/bigip/tm/sys/test/functional/test_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
167
2016-02-11T17:48:21.000Z
2022-01-17T20:13:05.000Z
# Copyright 2018 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
35.16
78
0.687713
259
1,758
4.563707
0.416988
0.047377
0.045685
0.067682
0.169205
0.169205
0.169205
0.169205
0.169205
0.169205
0
0.025399
0.216155
1,758
49
79
35.877551
0.832366
0.319113
0
0
0
0
0.055838
0.035533
0
0
0
0
0.481481
1
0.111111
false
0
0.111111
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
1
0
0
0
0
0
0
0
0
0
1
29e47df83ffb65e39188dd3f72c86becfc03db3d
1,534
py
Python
tests/data/RDFMOD.py
hsolbrig/definednamespace
f1178ba9c36a94bbd422844f4ddc71de67521d7b
[ "CC0-1.0" ]
null
null
null
tests/data/RDFMOD.py
hsolbrig/definednamespace
f1178ba9c36a94bbd422844f4ddc71de67521d7b
[ "CC0-1.0" ]
null
null
null
tests/data/RDFMOD.py
hsolbrig/definednamespace
f1178ba9c36a94bbd422844f4ddc71de67521d7b
[ "CC0-1.0" ]
1
2021-09-02T09:03:07.000Z
2021-09-02T09:03:07.000Z
from rdflib import URIRef, Namespace from definednamespace import DefinedNamespace class RDFMOD(DefinedNamespace): # http://www.w3.org/1999/02/22-rdf-syntax-ns#Property comment: URIRef # A description of the subject resource. domain: URIRef # A domain of the subject property. ...
51.133333
171
0.638853
184
1,534
5.304348
0.413043
0.092213
0.086066
0.081967
0.133197
0.055328
0.055328
0.055328
0
0
0
0.027422
0.286832
1,534
29
172
52.896552
0.864717
0.507171
0
0
0
0
0.064033
0
0
0
0
0
0
1
0
false
0
0.1
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
1
0
0
1
29ea7fc8db2a25d8cdbffa8ce8aef4e31ffad9bd
1,346
py
Python
_assignments/numpy/methods/numpy_sort_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_assignments/numpy/methods/numpy_sort_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_assignments/numpy/methods/numpy_sort_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
""" * Assignment: Numpy Sort * Complexity: easy * Lines of code: 2 lines * Time: 3 min English: 1. Define `result_sort` with sorted `DATA` by columns 2. Define `result_flip` with flipped `DATA` by rows 3. Run doctests - all must succeed Polish: 1. Zdefiniuj `result_sort` z posortowanym `DATA` po kolum...
24.472727
67
0.597325
183
1,346
4.306011
0.420765
0.101523
0.022843
0.030457
0.279188
0.182741
0.104061
0.104061
0
0
0
0.078868
0.26523
1,346
54
68
24.925926
0.717897
0.863299
0
0
0
0
0
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
29f247a65637f12f28d24f5b02eacab1fdb59c08
3,538
py
Python
pda_audit.py
kieranjol/pda
0f82db7eef9a77322a9bcc1e7169835d565e7ff8
[ "MIT" ]
1
2016-10-04T18:43:57.000Z
2016-10-04T18:43:57.000Z
pda_audit.py
kieranjol/pda
0f82db7eef9a77322a9bcc1e7169835d565e7ff8
[ "MIT" ]
2
2016-09-23T22:58:58.000Z
2016-09-23T23:00:44.000Z
pda_audit.py
kieranjol/pda
0f82db7eef9a77322a9bcc1e7169835d565e7ff8
[ "MIT" ]
null
null
null
import subprocess import sys import filecmp from glob import glob import os import time import csv video_dir = sys.argv[1] def metadata_check(metadata_type, index): if subprocess.check_output(['exiftool', metadata_type, name]) == '': metadata.insert(index, 'No metadata') def creat...
42.626506
266
0.593273
416
3,538
4.896635
0.348558
0.044674
0.030928
0.04271
0.202258
0.143348
0.106038
0.106038
0.080511
0.049092
0
0.014275
0.267383
3,538
83
267
42.626506
0.771605
0.054833
0
0.194444
0
0
0.172156
0
0
0
0
0
0
0
null
null
0
0.097222
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
29f28743df60dff189d2043365ee9142d34e8713
1,339
py
Python
tasks/crypto_predictor/utils.py
DevonFulcher/CryptoPricePredictor
0efade4df2b2e407f4178b1da663e4062f912743
[ "MIT" ]
4
2019-08-08T00:50:12.000Z
2021-01-26T21:34:15.000Z
tasks/crypto_predictor/utils.py
DevonFulcher/CryptoPricePredictor
0efade4df2b2e407f4178b1da663e4062f912743
[ "MIT" ]
null
null
null
tasks/crypto_predictor/utils.py
DevonFulcher/CryptoPricePredictor
0efade4df2b2e407f4178b1da663e4062f912743
[ "MIT" ]
1
2020-10-27T10:54:57.000Z
2020-10-27T10:54:57.000Z
import csv import numpy as np import math def data_generator(inputFile, length_of_convolution, portion_training_set): #data_generator to take general csvInput with open(inputFile, newline='') as csvfile: data = csv.reader(csvfile) prices = [] for datum in data: prices.appen...
39.382353
120
0.677371
191
1,339
4.408377
0.267016
0.085511
0.203088
0.15677
0.312352
0.131829
0
0
0
0
0
0.007634
0.217326
1,339
33
121
40.575758
0.795802
0.029126
0
0
0
0
0.036182
0.033872
0
0
0
0
0.035714
1
0.071429
false
0
0.107143
0
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
29f2a543b7303d5804e457ea901a8aae16e15ed2
14,745
py
Python
posts/tests.py
Fr33vvay/yatube
18d2c1f645c34b222221574eeb622964ded4efa3
[ "BSD-3-Clause" ]
null
null
null
posts/tests.py
Fr33vvay/yatube
18d2c1f645c34b222221574eeb622964ded4efa3
[ "BSD-3-Clause" ]
11
2021-03-19T13:36:27.000Z
2022-03-12T00:53:47.000Z
posts/tests.py
Fr33vvay/yatube
18d2c1f645c34b222221574eeb622964ded4efa3
[ "BSD-3-Clause" ]
null
null
null
import time from django.contrib.auth import get_user_model from django.test import TestCase, override_settings from django.urls import reverse from .models import Group, Post User = get_user_model() DUMMY_CACHE = { 'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'} } class TestPostCreation(...
42.863372
79
0.552119
1,520
14,745
5.192105
0.130921
0.058287
0.041054
0.040547
0.738723
0.70261
0.656488
0.629625
0.609985
0.551445
0
0.008929
0.339234
14,745
343
80
42.988338
0.801088
0
0
0.501767
0
0
0.148728
0.01275
0
0
0
0
0.130742
1
0.091873
false
0.045936
0.017668
0
0.144876
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
29f4b59e89ee9681d09783201ddd241d96df550b
254
py
Python
validators/uuid_validator.py
dev-11/prolific-surveys-api
ff6a1574aadc8e36635a445dd03620b959e7e881
[ "MIT" ]
null
null
null
validators/uuid_validator.py
dev-11/prolific-surveys-api
ff6a1574aadc8e36635a445dd03620b959e7e881
[ "MIT" ]
null
null
null
validators/uuid_validator.py
dev-11/prolific-surveys-api
ff6a1574aadc8e36635a445dd03620b959e7e881
[ "MIT" ]
null
null
null
from uuid import UUID def is_uuid_valid(uuid): try: version = UUID(uuid).version # nil UUID has version None return False if version is None else True except (AttributeError, ValueError, TypeError): return False
23.090909
51
0.661417
33
254
5.030303
0.606061
0.13253
0
0
0
0
0
0
0
0
0
0
0.283465
254
10
52
25.4
0.912088
0.098425
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
29f9dcf0e6f6c01df58c50eafc2166b6b31ee21c
749
py
Python
model/members.py
mastrHyperion98/SOEN287_Project
d5a08abb6830bb43a008b7f82870f7ffa4aa546d
[ "MIT" ]
null
null
null
model/members.py
mastrHyperion98/SOEN287_Project
d5a08abb6830bb43a008b7f82870f7ffa4aa546d
[ "MIT" ]
1
2020-07-03T03:56:40.000Z
2020-07-03T04:12:02.000Z
model/members.py
mastrHyperion98/Chatty
d5a08abb6830bb43a008b7f82870f7ffa4aa546d
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from app import db from model import users class Members(db.Model): __tablename__ = 'members' id = db.Column('id', db.Integer, primary_key=True) channel_id = db.Column('channel_id', db.Integer, db.ForeignKey('channels.id')) user_id = db.Column('user_id', db.Int...
31.208333
82
0.620828
100
749
4.46
0.4
0.053812
0.067265
0.058296
0.103139
0
0
0
0
0
0
0
0.259012
749
24
83
31.208333
0.803604
0.129506
0
0
0
0
0.128617
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
29fc55381bf058b66ebf19fc93cdbeeaa25613e1
612
py
Python
api/uwkgm/uwkgm/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
null
null
null
api/uwkgm/uwkgm/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
6
2020-11-25T10:49:45.000Z
2021-09-22T18:50:03.000Z
api/uwkgm/uwkgm/__init__.py
ichise-laboratory/uwkgm
6505fa5d524336b30505804a3d241143cb1fa4bf
[ "BSD-3-Clause" ]
1
2020-12-24T02:15:42.000Z
2020-12-24T02:15:42.000Z
import os from sys import platform from typing import Any, Dict, List import pymysql import yaml url_prefix = 'api/v%s' % ('.'.join(os.environ['UWKGM_API_VERSION'].split('.')[:2])) def envyml(name: str, base_dir: str, var: str) -> Any: def walk(sub_tree: Dict[str, Any], sub_path: List[str]) -> Any: ret...
27.818182
110
0.655229
102
612
3.77451
0.470588
0.090909
0.057143
0.072727
0.077922
0
0
0
0
0
0
0.013514
0.153595
612
21
111
29.142857
0.72973
0
0
0
0
0
0.078431
0
0
0
0
0
0
1
0.153846
false
0
0.384615
0.076923
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4b00a3196111ed4f5e39281d47812f911aa61846
2,810
py
Python
authors/apps/authentication/tests/test_user_registration.py
inno-asiimwe/writers_haven_django
1a25857fd858a89b997e3236e331ccc624474b39
[ "BSD-3-Clause" ]
null
null
null
authors/apps/authentication/tests/test_user_registration.py
inno-asiimwe/writers_haven_django
1a25857fd858a89b997e3236e331ccc624474b39
[ "BSD-3-Clause" ]
1
2018-08-27T20:10:03.000Z
2018-08-27T20:10:03.000Z
authors/apps/authentication/tests/test_user_registration.py
inno-asiimwe/writers_haven_django
1a25857fd858a89b997e3236e331ccc624474b39
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase import json class TestUserRegistration(TestCase): """ Test user Registration. """ def setUp(self): pass def tearDown(self): pass def test_user_registration(self): """ Test successful registration """ user_data = { ...
28.1
59
0.507473
254
2,810
5.484252
0.228346
0.05743
0.071788
0.061019
0.511845
0.488155
0.488155
0.488155
0.488155
0.488155
0
0.022612
0.370463
2,810
99
60
28.383838
0.764839
0.06548
0
0.518987
0
0
0.165315
0
0
0
0
0
0.126582
1
0.075949
false
0.101266
0.025316
0
0.113924
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4b02fd853699fe172ba641adf66fb9d806d1fe52
3,614
py
Python
app/controller/get_and_transform_data.py
hggffhhfg/project_clever
fe0f954765c8570f504b6b92430333eef0658fc9
[ "MIT" ]
null
null
null
app/controller/get_and_transform_data.py
hggffhhfg/project_clever
fe0f954765c8570f504b6b92430333eef0658fc9
[ "MIT" ]
null
null
null
app/controller/get_and_transform_data.py
hggffhhfg/project_clever
fe0f954765c8570f504b6b92430333eef0658fc9
[ "MIT" ]
null
null
null
from datetime import datetime, time, date from flask_login import current_user from app.config import db from app.model import * def analyze_week(week_number): """ По номеру недели рассчитывает ее длину в днях, количество записей, суммарную эффективность за все дни недели, суммарное время сна за все дни...
37.645833
114
0.705313
523
3,614
4.606119
0.279159
0.048568
0.052304
0.052304
0.239103
0.191781
0.11374
0.070569
0.070569
0
0
0.017544
0.195628
3,614
95
115
38.042105
0.811146
0.219424
0
0.105263
0
0
0.012723
0
0
0
0
0
0
1
0.192982
false
0
0.070175
0
0.561404
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4b0756e580e223355e4e7da75adc18d2d694b4d0
272
py
Python
main.py
TSA-Software-Dev-2020/Gmail-Client-Application
4208508cdd6e064ca485defe5cd876276a373a28
[ "MIT" ]
null
null
null
main.py
TSA-Software-Dev-2020/Gmail-Client-Application
4208508cdd6e064ca485defe5cd876276a373a28
[ "MIT" ]
null
null
null
main.py
TSA-Software-Dev-2020/Gmail-Client-Application
4208508cdd6e064ca485defe5cd876276a373a28
[ "MIT" ]
null
null
null
from application import create_app import logging import os # Default config_file is dev app = create_app() if __name__ == '__main__': # Default port set to 5000 port = int(os.environ.get('PORT', 5000)) app.run(host='0.0.0.0', port=port) # hello
20.923077
45
0.661765
42
272
4.02381
0.619048
0.035503
0.035503
0
0
0
0
0
0
0
0
0.056604
0.220588
272
13
46
20.923077
0.740566
0.209559
0
0
0
0
0.095
0
0
0
0
0
0
1
0
false
0
0.428571
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
1
0
0
0
0
1
4b286b0b02f106156fb6c41a9c1433e325c26b46
2,512
py
Python
tests/sched/test_pool.py
comps/pexen
3da6b110cf063646e5d2ae671f4408a14662fcca
[ "MIT" ]
1
2019-09-06T10:41:30.000Z
2019-09-06T10:41:30.000Z
tests/sched/test_pool.py
comps/pexen
3da6b110cf063646e5d2ae671f4408a14662fcca
[ "MIT" ]
null
null
null
tests/sched/test_pool.py
comps/pexen
3da6b110cf063646e5d2ae671f4408a14662fcca
[ "MIT" ]
1
2020-06-24T00:31:13.000Z
2020-06-24T00:31:13.000Z
import pytest from pexen.sched import TaskRes from pexen.sched.pool import PoolError from tests.sched.common import * from tests.sched.common import check_resources @parametrize_pool_both() def test_pool_reuse(pool): dummy1 = create_dummy('dummy1') dummy2 = create_dummy('dummy2') p = pool() p.registe...
26.442105
78
0.664809
343
2,512
4.763848
0.177843
0.04284
0.047736
0.064259
0.716034
0.610771
0.591799
0.553856
0.526928
0.526928
0
0.022122
0.208201
2,512
94
79
26.723404
0.799397
0.026672
0
0.770115
0
0
0.054054
0
0
0
0
0
0.229885
1
0.057471
false
0
0.057471
0
0.114943
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d99cf26af52ad2ea8b3eb470cceb64a0610b8190
1,156
py
Python
arena_util.py
plzprayme/kakao-arena-melon-playlist
d516b7a08f97cbf88d8aa0b9b3cc75ad99ceeeca
[ "Apache-2.0" ]
null
null
null
arena_util.py
plzprayme/kakao-arena-melon-playlist
d516b7a08f97cbf88d8aa0b9b3cc75ad99ceeeca
[ "Apache-2.0" ]
null
null
null
arena_util.py
plzprayme/kakao-arena-melon-playlist
d516b7a08f97cbf88d8aa0b9b3cc75ad99ceeeca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import io import os import json import distutils.dir_util from collections import Counter import numpy as np def write_json(data, fname): def _conv(o): # print("DEBUG::::"o) # print("DEBUG::::",type(o)) # if isinstance(o, np.int64): if isinstance(o...
21.811321
70
0.615917
175
1,156
3.954286
0.428571
0.013006
0.046243
0.043353
0.054913
0
0
0
0
0
0
0.009206
0.24827
1,156
52
71
22.230769
0.787112
0.102941
0
0
0
0
0.033948
0
0
0
0
0
0
1
0.193548
false
0
0.193548
0
0.516129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d99d221943a0cccadf2679d2a01535a6a8863730
1,955
py
Python
catalyst/core/callbacks/validation.py
baajur/catalyst
531e31697b59c6e34ef85c0b2db5125487899be3
[ "Apache-2.0" ]
2
2021-02-22T12:15:41.000Z
2021-05-02T15:22:24.000Z
catalyst/core/callbacks/validation.py
saswat0/catalyst
a35297ecab8d1a6c2f00b6435ea1d6d37ec9f441
[ "Apache-2.0" ]
null
null
null
catalyst/core/callbacks/validation.py
saswat0/catalyst
a35297ecab8d1a6c2f00b6435ea1d6d37ec9f441
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from catalyst.core.callback import Callback, CallbackNode, CallbackOrder from catalyst.core.runner import IRunner class ValidationManagerCallback(Callback): """ A callback to aggregate runner.valid_metrics from runner.epoch_metrics. """ def __init__(self): ...
31.031746
75
0.621483
215
1,955
5.367442
0.325581
0.093588
0.093588
0.054593
0.282496
0.237435
0.17851
0.17851
0.17851
0.17851
0
0
0.288491
1,955
62
76
31.532258
0.829619
0.118159
0
0.054054
0
0
0.073037
0.028606
0
0
0
0.016129
0.027027
1
0.081081
false
0
0.081081
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d9a14c7e4eb7a47e9d060ffe774b933ffc70572c
812
py
Python
WriterCSV.py
MoJoF/Anket-on-CSV
d0ea7727780d0334a3ab53c60896aaf78bd52855
[ "MIT" ]
null
null
null
WriterCSV.py
MoJoF/Anket-on-CSV
d0ea7727780d0334a3ab53c60896aaf78bd52855
[ "MIT" ]
null
null
null
WriterCSV.py
MoJoF/Anket-on-CSV
d0ea7727780d0334a3ab53c60896aaf78bd52855
[ "MIT" ]
null
null
null
# Микробиблиотека для записи данных в файл Excel # Разработано Ecclezio import csv # Метод, переводит двумерный массив в одномерный для удобства занесения данных # в .csv файл. # Первый аргумент list1 принимает двумерный массив # Второй аргумент list2 принимает пустой массив def from_arr_2x_to_arr_1x(list1, list2): ...
31.230769
78
0.727833
115
812
5.043478
0.582609
0.024138
0.027586
0.048276
0.131034
0.055172
0
0
0
0
0
0.015175
0.188424
812
25
79
32.48
0.864947
0.602217
0
0
0
0
0.012862
0
0
0
0
0
0
1
0.222222
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
1
0
0
0
0
0
0
0
1
d9ae42962d57637f05f4ff073c8112448c196269
1,472
py
Python
settings.py
Tarheel-Formal-Methods/kaa-dynamic
4f4e18b4b5a4dbb994dd519755558f01fd897df1
[ "MIT" ]
null
null
null
settings.py
Tarheel-Formal-Methods/kaa-dynamic
4f4e18b4b5a4dbb994dd519755558f01fd897df1
[ "MIT" ]
2
2020-12-11T17:34:46.000Z
2020-12-11T21:43:13.000Z
settings.py
Tarheel-Formal-Methods/kaa-dynamic
4f4e18b4b5a4dbb994dd519755558f01fd897df1
[ "MIT" ]
1
2020-12-11T17:31:16.000Z
2020-12-11T17:31:16.000Z
import os ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) """ Simple settings file for the in-and-outs of Kaa. """ class KaaSettings: 'Should we try to parallelize the generator calculations?' Parallelize = True ''' The optimiation procedure to use in the bundle transformation. Optimization proc...
25.37931
114
0.707201
183
1,472
5.628415
0.661202
0.023301
0.019417
0.027184
0.03301
0
0
0
0
0
0
0.018373
0.223505
1,472
57
115
25.824561
0.882765
0.066576
0
0
0
0
0.467846
0
0
0
0
0
0
1
0
false
0
0.029412
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d9b63cf1dcc384cf679172634d18606481cd88cc
938
py
Python
reamber/quaver/QuaHit.py
Eve-ning/reamber_base_py
6d19c84f2c110b60e633b82b73e0516396466f56
[ "MIT" ]
10
2020-06-28T11:16:36.000Z
2021-08-09T21:41:43.000Z
reamber/quaver/QuaHit.py
Eve-ning/reamberPy
6d19c84f2c110b60e633b82b73e0516396466f56
[ "MIT" ]
35
2020-06-18T13:05:50.000Z
2022-02-18T10:13:35.000Z
reamber/quaver/QuaHit.py
Eve-ning/reamber_base_py
6d19c84f2c110b60e633b82b73e0516396466f56
[ "MIT" ]
2
2021-05-26T17:05:06.000Z
2021-06-12T18:42:13.000Z
from typing import Dict, List, Any import pandas as pd from reamber.base import item_props from reamber.base.Hit import Hit from reamber.quaver.QuaNoteMeta import QuaNoteMeta @item_props() class QuaHit(Hit, QuaNoteMeta): def __init__(self, offset: float, column: int, ...
31.266667
100
0.600213
115
938
4.782609
0.391304
0.06
0.054545
0
0
0
0
0
0
0
0
0.005917
0.279318
938
29
101
32.344828
0.807692
0.047974
0
0
0
0
0.024859
0
0
0
0
0
0
1
0.142857
false
0
0.238095
0
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d9b83a5ee7b5df3a76e23b79474fb206528114d7
962
py
Python
scipy/linalg/misc.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/misc.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/misc.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy.linalg import LinAlgError import blas __all__ = ['LinAlgError', 'norm'] _nrm2_prefix = {'f' : 's', 'F': 'sc', 'D': 'dz'} def norm(a, ord=None): # Differs from numpy only in non-finite handling and the use of # blas a = np.asarray_chkfinite(a) if ord in (None, 2) and (a.n...
29.151515
79
0.644491
143
962
4.167832
0.48951
0.030201
0.026846
0
0
0
0
0
0
0
0
0.009511
0.234927
962
32
80
30.0625
0.800272
0.230769
0
0.105263
0
0
0.057183
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d9b939d09cd45266a19c7043876a14fec96f6eec
2,756
py
Python
vas/gemfire/test/TestAgentPendingConfigurations.py
spring-operator/vas-python-api
ce7148a2044863e078e78b47abbaafc426f732ee
[ "Apache-2.0" ]
null
null
null
vas/gemfire/test/TestAgentPendingConfigurations.py
spring-operator/vas-python-api
ce7148a2044863e078e78b47abbaafc426f732ee
[ "Apache-2.0" ]
null
null
null
vas/gemfire/test/TestAgentPendingConfigurations.py
spring-operator/vas-python-api
ce7148a2044863e078e78b47abbaafc426f732ee
[ "Apache-2.0" ]
null
null
null
# vFabric Administration Server API # Copyright (c) 2012 VMware, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
47.517241
125
0.725327
315
2,756
6.263492
0.396825
0.056766
0.063862
0.088697
0.334516
0.334516
0.334516
0.334516
0.334516
0.334516
0
0.029476
0.162917
2,756
57
126
48.350877
0.825748
0.231495
0
0
0
0.21875
0.379638
0.046147
0
0
0
0
0.21875
1
0.15625
false
0
0.09375
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9b93f0adacaddf5194c7f00544c9cd26dc6af7d
7,629
py
Python
Final Milestone/MovieLens/matrix_factorization.py
starbuck10/CS109a_DataScience_UserRatings_Team_Project
379c93b42600eeee4db34865062a5437adba25a6
[ "MIT" ]
1
2016-10-19T00:33:15.000Z
2016-10-19T00:33:15.000Z
Final Milestone/MovieLens/matrix_factorization.py
starbuck10/CS109a_DataScience_UserRatings_Team_Project
379c93b42600eeee4db34865062a5437adba25a6
[ "MIT" ]
null
null
null
Final Milestone/MovieLens/matrix_factorization.py
starbuck10/CS109a_DataScience_UserRatings_Team_Project
379c93b42600eeee4db34865062a5437adba25a6
[ "MIT" ]
null
null
null
import time import numpy as np from sklearn.metrics import r2_score from sklearn.model_selection import train_test_split from common import get_xy from read_ratings import read_ratings_df def get_scores(y_test, y_test_pred, y_train, y_train_pred): train_score = r2_score(y_train, y_train_pred) test_score = r...
34.058036
117
0.6744
1,147
7,629
4.12816
0.135135
0.062724
0.050686
0.020697
0.389652
0.315312
0.235058
0.235058
0.217529
0.173601
0
0.010377
0.216804
7,629
223
118
34.210762
0.782092
0.026085
0
0.151724
0
0
0.052384
0.004579
0
0
0
0
0
0
null
null
0
0.041379
null
null
0.110345
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9b95ce86037c774651af97547e72567728a5fdc
45,383
py
Python
scripts/archive/imageuncat.py
LeesahMasko/piwikibot
024af387ff48c21526ee206541178157d2653ddc
[ "MIT" ]
null
null
null
scripts/archive/imageuncat.py
LeesahMasko/piwikibot
024af387ff48c21526ee206541178157d2653ddc
[ "MIT" ]
null
null
null
scripts/archive/imageuncat.py
LeesahMasko/piwikibot
024af387ff48c21526ee206541178157d2653ddc
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Program to add uncat template to images without categories at commons. See imagerecat.py to add these images to categories. This script is working on the given site, so if the commons should be handled, the site commons should be given and not a Wikipedia or similar. &params; """ # # (C) Pywiki...
33.22328
79
0.31395
3,403
45,383
4.177784
0.37849
0.028979
0.025744
0.022649
0.074207
0.022579
0.010269
0.008722
0.008019
0.008019
0
0.020071
0.565256
45,383
1,365
80
33.247619
0.700507
0.02805
0
0.006966
0
0.002322
0.301057
0.031163
0
0
0
0
0
1
0.003096
false
0.000774
0.004644
0
0.01161
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9bc60e5385547a8bca26b51890d768fcdd2902c
597
py
Python
blender/arm/logicnode/animation/LN_play_tilesheet.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/animation/LN_play_tilesheet.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/animation/LN_play_tilesheet.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class PlayTilesheetNode(ArmLogicTreeNode): """Plays the given tilesheet action.""" bl_idname = 'LNPlayTilesheetNode' bl_label = 'Play Tilesheet' arm_version = 1 arm_section = 'tilesheet' def init(self, context): super(PlayTilesheetNode, self).init(...
35.117647
55
0.688442
61
597
6.57377
0.606557
0.087282
0.089776
0.159601
0
0
0
0
0
0
0
0.002066
0.18928
597
16
56
37.3125
0.826446
0.055276
0
0
0
0
0.274194
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d9bffa01525a36c068900f1e3b622baf8ed81627
44,792
py
Python
nipy/neurospin/graph/graph.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
1
2015-08-22T16:14:45.000Z
2015-08-22T16:14:45.000Z
nipy/neurospin/graph/graph.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
null
null
null
nipy/neurospin/graph/graph.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
null
null
null
from _graph import * from _graph import __doc__ import numpy as np """ This module implements the main graph classes of fff2 Graph: basic topological graph, i.e. vertices and edges. Not well developed WeightedGraph (Graph): Idem plus values asociated with vertices BipartiteGraph (WeightedGraph): Idem but the graph is ...
31.344997
90
0.494597
6,034
44,792
3.651144
0.093636
0.030185
0.015433
0.016704
0.550406
0.514502
0.480096
0.451591
0.427352
0.412782
0
0.018344
0.384176
44,792
1,428
91
31.366947
0.780344
0.005447
0
0.520231
0
0
0.045644
0
0
0
0
0.001401
0
0
null
null
0
0.008671
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1