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
daad3d4644a92884bdcd19bcc887b15d6229fc69
849
py
Python
mundo3-EstruturasCompostas/102-funcaoFatorial.py
jonasht/CursoEmVideo-CursoDePython3
a1bbf1fe4226b1828213742ee5a440278d903fd1
[ "MIT" ]
null
null
null
mundo3-EstruturasCompostas/102-funcaoFatorial.py
jonasht/CursoEmVideo-CursoDePython3
a1bbf1fe4226b1828213742ee5a440278d903fd1
[ "MIT" ]
null
null
null
mundo3-EstruturasCompostas/102-funcaoFatorial.py
jonasht/CursoEmVideo-CursoDePython3
a1bbf1fe4226b1828213742ee5a440278d903fd1
[ "MIT" ]
null
null
null
#Exercício Python 102: # Crie um programa que tenha uma função fatorial() # que receba dois parâmetros: # o primeiro que indique o número a calcular e # outro chamado show, que será um valor lógico (opcional) # indicando se será mostrado ou não na tela o processo de # cálculo do fatorial. def fatorial(n, show=False)...
28.3
61
0.632509
126
849
4.261905
0.531746
0.022346
0.03352
0.052142
0
0
0
0
0
0
0
0.014469
0.267373
849
29
62
29.275862
0.848875
0.526502
0
0.153846
0
0
0.081522
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
daaeeb623720fda94eff96a09b813f98fd47e55e
4,048
py
Python
facebook_data_analysis/conversation_analysis/friends_network.py
Anogio/facebook_data_analysis
a43a64bf4892e8bb705a96805912f726f194f319
[ "MIT" ]
null
null
null
facebook_data_analysis/conversation_analysis/friends_network.py
Anogio/facebook_data_analysis
a43a64bf4892e8bb705a96805912f726f194f319
[ "MIT" ]
null
null
null
facebook_data_analysis/conversation_analysis/friends_network.py
Anogio/facebook_data_analysis
a43a64bf4892e8bb705a96805912f726f194f319
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import networkx as nx import pandas as pd from facebook_data_analysis.conversation_analysis.activity_graphs import save_graph from facebook_data_analysis.global_vars import messages_cols from facebook_data_analysis.tools.helpers import cached from sklearn.manifold import MDS from tqdm im...
38.552381
87
0.704298
447
4,048
6.058166
0.270694
0.057607
0.081241
0.082718
0.259232
0.172083
0.172083
0.155096
0.155096
0.121123
0
0.00947
0.217391
4,048
104
88
38.923077
0.845328
0.019269
0
0.170455
0
0
0.048916
0.005547
0
0
0
0.009615
0
1
0.045455
false
0
0.090909
0
0.181818
0.034091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dab23516379326ead1d968570c74ed69eecbf055
2,863
py
Python
frictionless/settings.py
Grandient/frictionless-py
8c41b96f2047d573702fe7b34ff7ffbd32c3d815
[ "MIT" ]
247
2020-08-04T16:42:09.000Z
2022-03-30T11:54:54.000Z
frictionless/settings.py
Grandient/frictionless-py
8c41b96f2047d573702fe7b34ff7ffbd32c3d815
[ "MIT" ]
444
2020-07-29T09:13:59.000Z
2022-03-31T14:54:57.000Z
frictionless/settings.py
Grandient/frictionless-py
8c41b96f2047d573702fe7b34ff7ffbd32c3d815
[ "MIT" ]
60
2020-09-04T11:39:34.000Z
2022-03-23T18:59:51.000Z
import os import json import gzip import zipfile # Helpers def read_asset(*paths): dirname = os.path.dirname(__file__) with open(os.path.join(dirname, "assets", *paths)) as file: return file.read().strip() # General UNDEFINED = object() VERSION = read_asset("VERSION") COMPRESSION_FORMATS = ["zip...
29.515464
89
0.71219
358
2,863
5.438547
0.354749
0.064715
0.098613
0.123267
0.259887
0.248588
0.163842
0.122753
0
0
0
0.013142
0.122948
2,863
96
90
29.822917
0.762246
0.036675
0
0
0
0
0.21766
0.007631
0
0
0
0
0
1
0.013333
false
0
0.053333
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dab536d1d9d21df99c2db8bf403753c5070c87f7
4,747
py
Python
A_gen_literal_po.py
Dharma-Sagar/tx-template
93a3005445a21a249107e01c446c9237e886de8e
[ "Apache-2.0" ]
null
null
null
A_gen_literal_po.py
Dharma-Sagar/tx-template
93a3005445a21a249107e01c446c9237e886de8e
[ "Apache-2.0" ]
null
null
null
A_gen_literal_po.py
Dharma-Sagar/tx-template
93a3005445a21a249107e01c446c9237e886de8e
[ "Apache-2.0" ]
1
2022-03-25T15:25:00.000Z
2022-03-25T15:25:00.000Z
from pathlib import Path import re import sys from uuid import uuid4 import polib from antx import transfer from botok import Text class Po: def __init__(self): self.transfer = Transfer() self.file = polib.POFile() self.file.metadata = { 'MIME-Version': '1.0', 'Cont...
31.026144
97
0.540552
593
4,747
4.202361
0.251265
0.036517
0.02809
0.020465
0.158507
0.133226
0.074639
0.074639
0.074639
0.053772
0
0.006834
0.321888
4,747
152
98
31.230263
0.762349
0.090162
0
0.188034
0
0
0.055896
0.011557
0
0
0
0
0
1
0.111111
false
0
0.059829
0.008547
0.273504
0.017094
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dab78841b63bd54072dd390557aad814bcd2c522
2,845
py
Python
cvm/tests/test_trec.py
CortexFoundation/tvm-cvm
d8941dc60a51dd27a6d2accc1eff2eced3b3640d
[ "Apache-2.0" ]
6
2019-07-04T09:42:53.000Z
2021-12-28T13:19:48.000Z
cvm/tests/test_trec.py
CortexFoundation/tvm-cvm
d8941dc60a51dd27a6d2accc1eff2eced3b3640d
[ "Apache-2.0" ]
4
2019-06-27T08:05:18.000Z
2021-09-09T18:59:11.000Z
cvm/tests/test_trec.py
CortexFoundation/tvm-cvm
d8941dc60a51dd27a6d2accc1eff2eced3b3640d
[ "Apache-2.0" ]
null
null
null
import gluon_zoo as gz import mxnet as mx from mxnet import ndarray as nd from mxnet import gluon import tvm from tvm.contrib import graph_runtime import nnvm import pickle import sym_pass as spass import dataset as ds import sym_calib as calib import sim_quant_helper as sim import ops_generator as opg import utils im...
30.265957
83
0.693497
442
2,845
4.219457
0.273756
0.06756
0.034853
0.038606
0.216622
0.172654
0.172654
0.1437
0.120643
0.082038
0
0.018844
0.179262
2,845
93
84
30.591398
0.779872
0
0
0.125
0
0
0.130098
0.097046
0
0
0
0
0
1
0.05
false
0.0375
0.1875
0.0125
0.2875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dab7892075e86447b7eb58c074c9b44136134f5d
9,856
py
Python
public/scripts/node_process_scripts/vamps_script_parse.py
avoorhis/vamps-node.js
7071da6e569a669a06a6d21c23cc9c667ec49250
[ "MIT" ]
1
2015-10-28T14:48:38.000Z
2015-10-28T14:48:38.000Z
public/scripts/node_process_scripts/vamps_script_parse.py
avoorhis/vamps-node.js
7071da6e569a669a06a6d21c23cc9c667ec49250
[ "MIT" ]
48
2015-10-23T16:02:14.000Z
2022-02-15T00:46:39.000Z
public/scripts/node_process_scripts/vamps_script_parse.py
avoorhis/vamps-node.js
7071da6e569a669a06a6d21c23cc9c667ec49250
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2011, Marine Biological Laboratory # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your o...
32.104235
138
0.542106
1,193
9,856
4.331098
0.251467
0.013548
0.027095
0.023224
0.203406
0.168183
0.13083
0.093284
0.053029
0.035611
0
0.017682
0.317167
9,856
306
139
32.20915
0.750074
0.356027
0
0.173913
0
0
0.161483
0
0
0
0
0
0
1
0.031056
false
0.006211
0.093168
0
0.130435
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dab9da99251eb13cbf19a332bec3cc7115eec8f3
859
py
Python
yahoo_nsfw.py
m0r13/tensorflow-open_nsfw
35da5a6eb71ad5490b25ad433cfee02986f123eb
[ "BSD-2-Clause" ]
null
null
null
yahoo_nsfw.py
m0r13/tensorflow-open_nsfw
35da5a6eb71ad5490b25ad433cfee02986f123eb
[ "BSD-2-Clause" ]
null
null
null
yahoo_nsfw.py
m0r13/tensorflow-open_nsfw
35da5a6eb71ad5490b25ad433cfee02986f123eb
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys import tensorflow as tf from image_utils import create_raw_image_loader from model import OpenNsfwModel, InputType class YahooNSFWClassifier: def __init__(self, weights_path): self.session = tf.Session() self.model = OpenNsfwModel() self.model.build(weights...
33.038462
99
0.718277
111
859
5.288288
0.486486
0.061329
0.0477
0.068143
0
0
0
0
0
0
0
0.004237
0.175786
859
25
100
34.36
0.824859
0.023283
0
0
0
0
0.057279
0.031026
0
0
0
0
0
1
0.105263
false
0
0.263158
0
0.473684
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dabd1be8c1b91392a0032b7379bdd13519e05e0b
4,823
py
Python
crazyflie-lib-python/cflib/crazyflie/localization.py
loujiabin1994/crazyswarm
893325b63b3b19015fe261bfa989846a1c82dc82
[ "MIT" ]
null
null
null
crazyflie-lib-python/cflib/crazyflie/localization.py
loujiabin1994/crazyswarm
893325b63b3b19015fe261bfa989846a1c82dc82
[ "MIT" ]
null
null
null
crazyflie-lib-python/cflib/crazyflie/localization.py
loujiabin1994/crazyswarm
893325b63b3b19015fe261bfa989846a1c82dc82
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 20...
33.262069
79
0.609579
575
4,823
4.843478
0.393043
0.012567
0.024417
0.020467
0.202154
0.159785
0.131059
0.113106
0.113106
0.113106
0
0.015707
0.287166
4,823
144
80
33.493056
0.794357
0.37259
0
0.191176
0
0
0.069538
0
0
0
0
0.006944
0
1
0.073529
false
0
0.088235
0
0.367647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dabfe56a60fe696acd94d21ad2b11875bcc6001b
1,396
py
Python
uibcdf_stdlib/exceptions.py
uibcdf/UIBCDF-Standard-Library
16665d12d94c8d82b17356f79795d3741cc86324
[ "MIT" ]
1
2021-07-06T18:51:45.000Z
2021-07-06T18:51:45.000Z
uibcdf_stdlib/exceptions.py
dprada/UIBCDF-Standard-Library
96906e631623ff8de59bd5e15fe25d87a9d2a4f4
[ "MIT" ]
null
null
null
uibcdf_stdlib/exceptions.py
dprada/UIBCDF-Standard-Library
96906e631623ff8de59bd5e15fe25d87a9d2a4f4
[ "MIT" ]
1
2021-07-06T18:51:48.000Z
2021-07-06T18:51:48.000Z
class BadCallError(ValueError): def __init__(self, message=None, documentation_web=None): if message is None: message = ('Wrong way of invoking this method. Check the online documentation for' 'more information.') if documentation_web is not None: ...
31.022222
96
0.637536
151
1,396
5.622517
0.344371
0.113074
0.051826
0.042403
0.454653
0.34629
0.294464
0.188457
0.188457
0.188457
0
0.001936
0.260029
1,396
44
97
31.727273
0.819942
0
0
0.384615
0
0
0.224373
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dac5823dc3e2b862d786e19df82399b8a50a961d
2,757
py
Python
feature-detection.py
ronheywood/opencv
664de6f5b3708af6c00348a31a37db484137bb8d
[ "MIT" ]
7
2021-07-08T14:57:22.000Z
2022-01-12T09:15:01.000Z
feature-detection.py
ronheywood/opencv
664de6f5b3708af6c00348a31a37db484137bb8d
[ "MIT" ]
1
2021-08-18T20:15:44.000Z
2022-02-04T18:04:39.000Z
feature-detection.py
ronheywood/opencv
664de6f5b3708af6c00348a31a37db484137bb8d
[ "MIT" ]
2
2021-10-14T18:40:26.000Z
2022-01-10T00:36:29.000Z
# import the necessary packages import cv2 import sys import os import numpy as np import argparse sys.path.append(os.path.abspath('./modules/')) import detection import helpers ap = argparse.ArgumentParser() ap.add_argument("-d", "--debug", type=bool, default=False, help="experiment with different image filters")...
32.05814
122
0.629307
376
2,757
4.526596
0.364362
0.042303
0.032315
0.007051
0.070505
0.059929
0
0
0
0
0
0.046919
0.234675
2,757
86
123
32.05814
0.759716
0.060936
0
0.117647
0
0
0.075077
0
0
0
0
0
0
1
0
false
0
0.102941
0
0.102941
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dac5b2ff80767ae00c126aba31c2851cfe3769ef
7,538
py
Python
loopy/execution.py
xywei/loopy
f176bc70ef52862ee0dfcc661fbe4b86b1726f55
[ "MIT" ]
null
null
null
loopy/execution.py
xywei/loopy
f176bc70ef52862ee0dfcc661fbe4b86b1726f55
[ "MIT" ]
null
null
null
loopy/execution.py
xywei/loopy
f176bc70ef52862ee0dfcc661fbe4b86b1726f55
[ "MIT" ]
null
null
null
from __future__ import division, with_statement, absolute_import __copyright__ = "Copyright (C) 2012-16 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou...
32.076596
79
0.648183
926
7,538
5.046436
0.278618
0.035309
0.0214
0.019474
0.152579
0.109566
0.064199
0.040659
0.040659
0.021828
0
0.001309
0.290395
7,538
234
80
32.213675
0.872313
0.107588
0
0.214286
0
0
0.181173
0.005289
0
0
0
0
0.007143
1
0.05
false
0.014286
0.114286
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dac7f27abecc653f42dd61c7ee788bece9231835
3,419
py
Python
rebound/python_examples/megno_interactive/problem.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
rebound/python_examples/megno_interactive/problem.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
rebound/python_examples/megno_interactive/problem.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
#!/usr/bin/python import rebound from rebound.interruptible_pool import InterruptiblePool # Import other modules import numpy as np import matplotlib.pyplot as plt plt.ion() from matplotlib.colors import LogNorm # Runs one simulation. def simulation(par): saturn_a, saturn_e = par sim = rebound.Simulation() ...
31.953271
162
0.64434
543
3,419
3.959484
0.366483
0.013023
0.009767
0.02093
0.107907
0.107907
0.107907
0.107907
0.060465
0.060465
0
0.043573
0.194501
3,419
106
163
32.254717
0.73711
0.186312
0
0.071429
0
0
0.068429
0.015206
0
0
0
0
0
1
0.042857
false
0
0.071429
0
0.128571
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dacc0afe8e6fcaa1fdee48ff089bcf82ca383f60
1,926
py
Python
code/eval_tsd.py
YJiangcm/COMP_5222_Project
18afd92af6f38c9410d711fa9448b7a03507e0ac
[ "Apache-2.0" ]
null
null
null
code/eval_tsd.py
YJiangcm/COMP_5222_Project
18afd92af6f38c9410d711fa9448b7a03507e0ac
[ "Apache-2.0" ]
null
null
null
code/eval_tsd.py
YJiangcm/COMP_5222_Project
18afd92af6f38c9410d711fa9448b7a03507e0ac
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import sys import argparse def f1(predictions, gold): """ F1 (a.k.a. DICE) operating on two lists of offsets (e.g., character). >>> assert f1([0, 1, 4, 5], [0, 1, 6]) == 0.5714285714285714 :param predictions: a list of predicted offsets :param gold:...
28.746269
94
0.600727
260
1,926
4.307692
0.373077
0.035714
0.032143
0.030357
0.051786
0.051786
0.051786
0
0
0
0
0.028384
0.286604
1,926
67
95
28.746269
0.786754
0.179647
0
0.054054
0
0
0.14959
0
0
0
0
0
0
1
0.081081
false
0
0.108108
0
0.27027
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dad0c47ce0d0ea8d56dcd1c6ed410b390c57cb8f
1,444
py
Python
notebooks/PyTorch/tutorial_deep_learning_with_pytorch_a_60_minute_blitz_training_a_classifier_CIFAR-10/training.py
shitake/ml-sandbox
a23a312251d82b27582df0029c23ff4aa7792d4c
[ "MIT" ]
null
null
null
notebooks/PyTorch/tutorial_deep_learning_with_pytorch_a_60_minute_blitz_training_a_classifier_CIFAR-10/training.py
shitake/ml-sandbox
a23a312251d82b27582df0029c23ff4aa7792d4c
[ "MIT" ]
1
2018-11-01T03:09:50.000Z
2018-11-01T03:09:50.000Z
notebooks/PyTorch/tutorial_deep_learning_with_pytorch_a_60_minute_blitz_training_a_classifier_CIFAR-10/training.py
shitake/ml-sandbox
a23a312251d82b27582df0029c23ff4aa7792d4c
[ "MIT" ]
null
null
null
from net import Net import os import sys import time import torch.optim as optim print(os.getcwd()) sys.path.append(os.getcwd()) # from ml-sandbox.src.utils.utils import display_formatted_time import gc del Training; gc.collect() class Training: def __init__(self, dev): self.device = dev def train...
27.245283
96
0.585873
171
1,444
4.812866
0.432749
0.060753
0.043742
0.031592
0
0
0
0
0
0
0
0.011707
0.290166
1,444
52
97
27.769231
0.79122
0.042244
0
0.054054
0
0
0.04924
0
0
0
0
0
0
1
0.054054
false
0
0.162162
0
0.243243
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dad29b783a0cff6154b9ddd5bbb2a707070f8ace
1,321
py
Python
metricol/outputs/statsite.py
soutys/metricol
56b96e80aab8a61727b48eb2f5f19e0694895b55
[ "MIT" ]
null
null
null
metricol/outputs/statsite.py
soutys/metricol
56b96e80aab8a61727b48eb2f5f19e0694895b55
[ "MIT" ]
null
null
null
metricol/outputs/statsite.py
soutys/metricol
56b96e80aab8a61727b48eb2f5f19e0694895b55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Graphite output plugins module ''' from __future__ import ( absolute_import, division, print_function, unicode_literals, with_statement, ) import logging from queue import Empty from statsd.client import StatsClient from metricol.inputs import MetricInput from metrico...
24.462963
79
0.613929
142
1,321
5.415493
0.5
0.06502
0.081925
0.097529
0.083225
0.083225
0
0
0
0
0
0.005297
0.28539
1,321
53
80
24.924528
0.809322
0.06056
0
0
0
0
0.013019
0
0
0
0
0
0
1
0.088235
false
0
0.205882
0
0.352941
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dad80e149a334d4d98779bd5f03ddaee09b35f0c
5,300
py
Python
quotes_generate_attribute.py
russDA/Quotes_Predictor
6c22f141a468b304c1a5d76e43165d6f42d4e3cf
[ "MIT" ]
null
null
null
quotes_generate_attribute.py
russDA/Quotes_Predictor
6c22f141a468b304c1a5d76e43165d6f42d4e3cf
[ "MIT" ]
null
null
null
quotes_generate_attribute.py
russDA/Quotes_Predictor
6c22f141a468b304c1a5d76e43165d6f42d4e3cf
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import pandas as pd import numpy as np def url_list(base_url, no_of_pages): nos = np.linspace(1, no_of_pages, no_of_pages) pages = [] for n in nos: page = base_url+str(int(n)) pages.append(page) return pages def quote_lis...
29.943503
88
0.508113
582
5,300
4.386598
0.189003
0.045828
0.056013
0.098707
0.179397
0.17313
0.17313
0
0
0
0
0.009404
0.157358
5,300
176
89
30.113636
0.562024
0.290943
0
0
0
0
0.276134
0
0
0
0
0
0
1
0.033708
false
0
0.044944
0
0.11236
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dad8ed0484b8958b3b31e0149f5e4b0720f01f84
791
py
Python
tap_tally/__init__.py
bkgreve/tap-tally
207c64b821024003859713624034c531969f0456
[ "MIT" ]
1
2021-02-12T23:22:38.000Z
2021-02-12T23:22:38.000Z
tap_tally/__init__.py
bkgreve/tap-tally
207c64b821024003859713624034c531969f0456
[ "MIT" ]
3
2020-09-10T11:13:17.000Z
2020-09-10T11:19:06.000Z
tap_tally/__init__.py
bkgreve/tap-tally
207c64b821024003859713624034c531969f0456
[ "MIT" ]
null
null
null
import os import json from flask import Flask app = Flask(__name__) @app.route('/api/entries') def get_tap_entries(): with open('/usr/src/app/data/beers.json') as f: beer_data = json.load(f) entries = [] for entry in beer_data: if entry.get('visible', False): image_name = ent...
22.6
87
0.549937
94
791
4.468085
0.446809
0.064286
0.052381
0.061905
0
0
0
0
0
0
0
0
0.31732
791
34
88
23.264706
0.777778
0
0
0.071429
0
0
0.190898
0.082174
0
0
0
0
0
1
0.071429
false
0
0.107143
0.035714
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dad97463770df090d4e73a80e6339dec1808753d
4,133
py
Python
DatabaseGeneration_database4_question5.py
wangpinggl/covidQA
f8b440ee27058cc1030af7cd57178ddf987462d0
[ "MIT" ]
null
null
null
DatabaseGeneration_database4_question5.py
wangpinggl/covidQA
f8b440ee27058cc1030af7cd57178ddf987462d0
[ "MIT" ]
null
null
null
DatabaseGeneration_database4_question5.py
wangpinggl/covidQA
f8b440ee27058cc1030af7cd57178ddf987462d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Aug 29 05:31:09 2020 @author: Srikar Balusu """ import json import pandas as pd import numpy as np import re import random import sqlite3 import datetime import calendar from dateutil.relativedelta import * with open('lookup1.json') as json_file: data = json.load(js...
36.575221
212
0.640455
547
4,133
4.703839
0.270567
0.046638
0.057132
0.044695
0.293432
0.239798
0.147299
0.061796
0.046638
0.046638
0
0.017236
0.227922
4,133
113
213
36.575221
0.789094
0.01984
0
0.092784
0
0.010309
0.189911
0
0
0
0
0
0
1
0.010309
false
0
0.092784
0
0.113402
0.041237
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dada78f117f641ec85db243d1ba2fcd8f0d8b75a
1,347
py
Python
src/tutorials/hello_world_tutorial/functions/app.py
drblahdblah/covid-19-analysis
abd6ed23a49bd1277708163cad0741c5b9f9698a
[ "MIT" ]
3
2020-04-20T11:10:23.000Z
2020-04-22T08:06:04.000Z
src/tutorials/hello_world_tutorial/functions/app.py
drblahdblah/covid-19-analysis
abd6ed23a49bd1277708163cad0741c5b9f9698a
[ "MIT" ]
null
null
null
src/tutorials/hello_world_tutorial/functions/app.py
drblahdblah/covid-19-analysis
abd6ed23a49bd1277708163cad0741c5b9f9698a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd df = pd.read_csv(f'https://gist.githubusercontent.com/chriddyp/c78bf172206ce24f77d6363a2d754b59/' f'raw/c353e8ef842413cae56ae3920b8fd78468aa4cb2/usa-agricultural-exports-2011...
31.325581
99
0.680772
180
1,347
4.933333
0.494444
0.031532
0.042793
0.063063
0.060811
0.060811
0
0
0
0
0
0.066852
0.200445
1,347
42
100
32.071429
0.75766
0.173719
0
0.12
0
0
0.223963
0.071889
0
0
0
0
0
1
0.04
false
0
0.16
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dadc943c456eca12a123766407c6fe7d3b911d2b
12,804
py
Python
main_robust.py
npatel5/similarity-learning
9052f3d966a2e14918fcaf9d3a4c93dc9143db71
[ "MIT" ]
null
null
null
main_robust.py
npatel5/similarity-learning
9052f3d966a2e14918fcaf9d3a4c93dc9143db71
[ "MIT" ]
null
null
null
main_robust.py
npatel5/similarity-learning
9052f3d966a2e14918fcaf9d3a4c93dc9143db71
[ "MIT" ]
null
null
null
from __future__ import print_function from IPython.core.debugger import set_trace import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import config as cf import numpy as np import torchvision import torchvision.transforms as transforms #imp...
38.107143
133
0.670181
1,664
12,804
5.016827
0.184495
0.018448
0.009703
0.013776
0.508984
0.453402
0.418304
0.389075
0.373742
0.322832
0
0.0245
0.187129
12,804
335
134
38.220896
0.777575
0.083958
0
0.351145
0
0.01145
0.133219
0.007012
0
0
0
0
0.007634
1
0.01145
false
0
0.080153
0
0.09542
0.087786
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dadcb95e7278009dc692c238d4ccf77a3fb2e55e
1,843
py
Python
tools/list_exp.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
49
2021-09-15T06:10:07.000Z
2022-03-28T17:37:28.000Z
tools/list_exp.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
3
2021-09-26T03:45:04.000Z
2022-02-21T09:36:38.000Z
tools/list_exp.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
9
2021-09-15T07:35:09.000Z
2022-02-21T00:10:20.000Z
# Copyright (c) ASAPP Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fire import os import sys import time from tqdm.auto import tqdm import re import json from colorama import Fore def get_num_updates(folder): num_updates...
27.102941
65
0.571351
238
1,843
4.260504
0.394958
0.098619
0.050296
0.065089
0.097633
0.069034
0
0
0
0
0
0.008821
0.323386
1,843
67
66
27.507463
0.80433
0.078133
0
0.145455
0
0
0.089728
0.024793
0
0
0
0
0
1
0.054545
false
0
0.145455
0
0.236364
0.109091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dade5fb81eac6f03d7cd440bbd9b3041f81946b2
554
py
Python
worker_zeromq/addresses.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
worker_zeromq/addresses.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
worker_zeromq/addresses.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Feb 26 09:11:06 2016 @author: eikes """ ADD_VENTI_WORKER = 'tcp://*:4555' ADD_VENTI_LH_WORKER = 'tcp://localhost:4555' ADD_SINK_RECEIVE = 'tcp://*:4556' ADD_SINK_LH_RECEIVE = 'tcp://localhost:4556' ADD_SINK_PUBLISH = 'tcp://*:4557' ADD_SINK_LH_PUBLISH = 'tcp://localhost:4557'...
29.157895
46
0.707581
84
554
4.333333
0.380952
0.197802
0.054945
0.115385
0
0
0
0
0
0
0
0.121756
0.095668
554
18
47
30.777778
0.60479
0.133574
0
0
0
0
0.40678
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dade9648a2fc13cba868380ebc0181b3e2615f68
593
py
Python
ancli/__main__.py
devforfu/ancli
44ea37e756fb12221bfafc1ecae3b8ef46d84cce
[ "MIT" ]
1
2020-10-24T16:08:14.000Z
2020-10-24T16:08:14.000Z
ancli/__main__.py
devforfu/ancli
44ea37e756fb12221bfafc1ecae3b8ef46d84cce
[ "MIT" ]
null
null
null
ancli/__main__.py
devforfu/ancli
44ea37e756fb12221bfafc1ecae3b8ef46d84cce
[ "MIT" ]
null
null
null
import importlib import sys from ancli import make_cli try: entry_point = sys.argv[1] except IndexError: print('Error: no entry point name provided!') sys.exit(1) try: module_path, function_name = entry_point.split(':') except ValueError: print('Error: entry point name should have format a.b.c:f...
20.448276
70
0.701518
89
593
4.561798
0.460674
0.098522
0.059113
0
0
0
0
0
0
0
0
0.012245
0.173693
593
28
71
21.178571
0.816327
0
0
0.285714
0
0
0.209106
0
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dadeeda64957f5eeac274eff704cc39ef9a9cf4d
31,856
py
Python
venv/Lib/site-packages/pyramid/traversal.py
mandamg/Exercicios-de-Python-do-Curso-em-Video
3f818c11c3c10213bebc1dfb6a740adee468ea3a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyramid/traversal.py
mandamg/Exercicios-de-Python-do-Curso-em-Video
3f818c11c3c10213bebc1dfb6a740adee468ea3a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyramid/traversal.py
mandamg/Exercicios-de-Python-do-Curso-em-Video
3f818c11c3c10213bebc1dfb6a740adee468ea3a
[ "MIT" ]
null
null
null
from functools import lru_cache from urllib.parse import unquote_to_bytes from zope.interface import implementer from zope.interface.interfaces import IInterface from pyramid.encode import url_quote from pyramid.exceptions import URLDecodeError from pyramid.interfaces import ( VH_ROOT_KEY, IRequestFactory, ...
41.915789
79
0.651588
4,382
31,856
4.640575
0.12346
0.02867
0.015736
0.012147
0.440521
0.387067
0.336661
0.313646
0.297467
0.288812
0
0.0042
0.260014
31,856
759
80
41.971014
0.85844
0.645781
0
0.255814
0
0
0.038244
0
0.003876
0
0
0
0
1
0.073643
false
0.003876
0.042636
0.011628
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dadf717f7a0bf06444bc04239a755273afb5cf77
3,485
py
Python
Lib/site-packages/visual/examples/faces_heightfield.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/visual/examples/faces_heightfield.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/visual/examples/faces_heightfield.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
## Demonstrates some techniques for working with "faces", and ## shows how to build a height field (a common feature request) ## with it. ## David Scherer July 2001 from visual import * class Model: def __init__(self): self.frame = frame() self.model = faces(frame=self.frame) se...
35.561224
91
0.556385
479
3,485
3.983299
0.325679
0.051887
0.044549
0.023061
0.212788
0.129979
0.110063
0.110063
0.072327
0.02935
0
0.027554
0.323099
3,485
97
92
35.927835
0.781263
0.245624
0
0.177419
0
0
0
0
0
0
0
0
0
1
0.096774
false
0
0.016129
0
0.145161
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dae1d10cf13014392041b42324790708bc97af7d
766
py
Python
tests/test_appcli_jwt.py
Carrene/restfulpy
21472af0415fffc23f8003b6074afc2de2e0b414
[ "MIT" ]
25
2017-06-19T10:01:36.000Z
2019-08-03T10:35:41.000Z
tests/test_appcli_jwt.py
Carrene/restfulpy
21472af0415fffc23f8003b6074afc2de2e0b414
[ "MIT" ]
209
2017-09-27T11:59:29.000Z
2019-08-10T11:10:48.000Z
tests/test_appcli_jwt.py
Carrene/restfulpy
21472af0415fffc23f8003b6074afc2de2e0b414
[ "MIT" ]
16
2017-11-22T15:44:31.000Z
2019-04-14T12:29:34.000Z
import base64 import json from bddcli import Given, given, when, stdout, stderr, Application, status from restfulpy import Application as RestfulpyApplication foo = RestfulpyApplication(name='jwt') app = Application('foo', 'tests.test_appcli_jwt:foo.cli_main') def test_jwt(): with Given(app, 'jwt create'): ...
25.533333
74
0.627937
91
766
5.131868
0.483516
0.025696
0.042827
0.102784
0.107066
0
0
0
0
0
0
0.021922
0.225849
766
29
75
26.413793
0.765599
0.020888
0
0.210526
0
0
0.113788
0.045515
0
0
0
0
0.315789
1
0.052632
false
0
0.210526
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dae369d14e4029c4e7a65aeb8f3575d751e3c7bb
2,277
py
Python
hw4/visualizations.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
1
2022-01-17T14:28:46.000Z
2022-01-17T14:28:46.000Z
hw4/visualizations.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
null
null
null
hw4/visualizations.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
2
2021-11-08T19:05:57.000Z
2022-01-17T14:28:48.000Z
import os import numpy as np import matplotlib.pyplot as plt def plot_embedding(X, y, training_mode, save_name): """ Reference: https://github.com/NaJaeMin92/pytorch_DANN/ Gets the t-sne output and actions label encodings plot T-SNE """ x_min, x_max = np.min(X, 0), np.max(X, 0) X = (X ...
28.4625
101
0.527448
384
2,277
3.039063
0.278646
0.041131
0.030848
0.047986
0.186804
0.169666
0.077121
0.050557
0.022279
0.022279
0
0.083903
0.293368
2,277
79
102
28.822785
0.641392
0.084761
0
0.034483
0
0
0.101328
0.016724
0
0
0
0
0
1
0.034483
false
0
0.051724
0
0.086207
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dae48a50c2d41cee7a17a1643cdfb185e9a03591
3,274
py
Python
experiments_histogram.py
LaGuer/DeepSphere
5a02ac01b8fe3a5b9814ae9efd20d10e0c843209
[ "MIT" ]
71
2018-10-30T09:46:19.000Z
2020-02-15T12:02:00.000Z
experiments_histogram.py
aosheng1996/DeepSphere
ebcf162eaa6e23c1c92dbc84e0908695bb7245d7
[ "MIT" ]
9
2018-10-31T02:32:00.000Z
2020-02-12T08:55:43.000Z
experiments_histogram.py
aosheng1996/DeepSphere
ebcf162eaa6e23c1c92dbc84e0908695bb7245d7
[ "MIT" ]
16
2018-10-31T00:32:33.000Z
2020-01-19T21:24:46.000Z
#!/usr/bin/env python3 # coding: utf-8 """ Script to run the baseline experiment: SVM classification with histogram features. """ import os import sys import numpy as np from deepsphere import experiment_helper from grid import pgrid def single_experiment(sigma, order, sigma_noise, path): """Run as experiment...
35.204301
153
0.678986
442
3,274
4.78733
0.29638
0.051985
0.056711
0.066163
0.245274
0.216919
0.192344
0.121928
0.041588
0
0
0.012576
0.198534
3,274
92
154
35.586957
0.793826
0.072999
0
0.050847
0
0
0.099003
0.022259
0
0
0
0
0
1
0.016949
false
0
0.084746
0
0.118644
0.084746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dae6cac23452498b7274b531bf02a845882db8e7
2,827
py
Python
tests/deepspeed/ds_pipe.py
drunkcoding/model-inference
02d2240bc7052fa32223a80fa63625fe681db102
[ "MIT" ]
1
2021-11-15T19:07:13.000Z
2021-11-15T19:07:13.000Z
tests/deepspeed/ds_pipe.py
drunkcoding/model-inference
02d2240bc7052fa32223a80fa63625fe681db102
[ "MIT" ]
null
null
null
tests/deepspeed/ds_pipe.py
drunkcoding/model-inference
02d2240bc7052fa32223a80fa63625fe681db102
[ "MIT" ]
null
null
null
import os import torch.cuda from hfutils.model_pipe import T5DeepSpeedPipe import deepspeed from tqdm import tqdm from transformers.models.t5.configuration_t5 import T5Config from transformers import DataCollatorForSeq2Seq, default_data_collator import argparse from deepspeed.utils import RepeatingLoader from hfutils....
30.074468
81
0.723382
345
2,827
5.649275
0.344928
0.039507
0.030785
0.030785
0.056439
0.056439
0.056439
0.056439
0.056439
0.056439
0
0.010261
0.172621
2,827
93
82
30.397849
0.823001
0.140432
0
0
0
0
0.070306
0.027295
0
0
0
0
0
1
0.063492
false
0
0.222222
0.031746
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dae6f59082823ad960155ff941d486f9928ce8dd
2,694
py
Python
Polynomial_dict.py
chapman-phys227-2016s/hw-7-patti102
8688cbb3649ae623ec870ea380cd7470d69a2517
[ "MIT" ]
null
null
null
Polynomial_dict.py
chapman-phys227-2016s/hw-7-patti102
8688cbb3649ae623ec870ea380cd7470d69a2517
[ "MIT" ]
null
null
null
Polynomial_dict.py
chapman-phys227-2016s/hw-7-patti102
8688cbb3649ae623ec870ea380cd7470d69a2517
[ "MIT" ]
null
null
null
import numpy import copy class Polynomial(object): def __init__(self, coefficients): self.coeff = coefficients def __call__(self, x): """Evaluate the polynomial.""" s = 0 for degree in self.coeff: s += self.coeff[degree]*x**degree return s def __add__(s...
32.853659
129
0.528582
349
2,694
3.939828
0.234957
0.117818
0.036364
0.056727
0.251636
0.208
0.151273
0.151273
0.129455
0.129455
0
0.039869
0.320342
2,694
82
130
32.853659
0.711087
0.101336
0
0.206349
0
0
0.042571
0
0
0
0
0
0.031746
1
0.142857
false
0
0.047619
0
0.301587
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
daeae031a92bdd332e807b1e1b225a48f958d13f
4,283
py
Python
pymultimediacompression/videomedia/compressor.py
AbdullrhmanAljasser/PyMultiMediaCompression
0ed5a1ac43050b1c9fe84f277a18beaf4bbdc705
[ "MIT" ]
null
null
null
pymultimediacompression/videomedia/compressor.py
AbdullrhmanAljasser/PyMultiMediaCompression
0ed5a1ac43050b1c9fe84f277a18beaf4bbdc705
[ "MIT" ]
null
null
null
pymultimediacompression/videomedia/compressor.py
AbdullrhmanAljasser/PyMultiMediaCompression
0ed5a1ac43050b1c9fe84f277a18beaf4bbdc705
[ "MIT" ]
null
null
null
import os import ffmpeg import subprocess import shutil from pymultimediacompression.utilities.utils import bitrate_size_based, gb_to_bit, mb_to_bit, kb_to_bit, b_to_bit MISSING_REQUIREMENTS = "FFmpeg required to be installed to use PyMultiMediaCompression \n Check https://github.com/AbdullrhmanAljasser/PyMultiM...
32.694656
160
0.632267
541
4,283
4.855823
0.273567
0.027408
0.013323
0.020936
0.159878
0.094404
0.031214
0
0
0
0
0.004177
0.273406
4,283
131
161
32.694656
0.839974
0.081018
0
0.268293
0
0
0.176433
0.015287
0
0
0
0.007634
0
1
0.02439
false
0
0.060976
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
daf17f6b45920374fa2e9b1df4b56aef139d6271
5,822
py
Python
python/interpreter/environment.py
yehzhang/x9
2d06767ecd3521e9255748d14ab43938d1693bbc
[ "MIT" ]
1
2017-11-19T02:04:44.000Z
2017-11-19T02:04:44.000Z
python/interpreter/environment.py
yehzhang/x9
2d06767ecd3521e9255748d14ab43938d1693bbc
[ "MIT" ]
null
null
null
python/interpreter/environment.py
yehzhang/x9
2d06767ecd3521e9255748d14ab43938d1693bbc
[ "MIT" ]
null
null
null
from collections import defaultdict class Environment: def __init__(self, config): self.aliases = {} self.registers = Registers(self.aliases, config) self.memory = Memory(config) # :type Dict[str, Label]: {label_name: Label} self.labels = {} self.execution_count = 0...
29.256281
82
0.567159
748
5,822
4.241979
0.195187
0.031201
0.013867
0.023952
0.270407
0.243303
0.153167
0.135518
0.135518
0.135518
0
0.012389
0.306767
5,822
198
83
29.40404
0.773786
0.137238
0
0.224
0
0
0.061031
0
0
0
0.000825
0
0.064
1
0.184
false
0
0.008
0.04
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
daf44bfec449975c869de1732b37b6845adb00a5
4,225
py
Python
WebUtils/Funcs.py
PeaceWorksTechnologySolutions/w4py
74f5a03a63f1a93563502b908474aefaae2abda2
[ "MIT" ]
18
2016-08-01T20:15:59.000Z
2019-12-24T16:00:03.000Z
WebUtils/Funcs.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-13T05:48:45.000Z
2020-01-09T18:29:12.000Z
WebUtils/Funcs.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-16T14:32:29.000Z
2020-01-03T18:52:16.000Z
"""WebUtils.Funcs This module provides some basic functions that are useful in HTML and web development. You can safely import * from WebUtils.Funcs if you like. """ __all__ = [ 'htmlEncode', 'htmlEncodeStr', 'htmlDecode', 'urlEncode', 'urlDecode', 'htmlForDict', 'requestURI', 'normURL'] htmlForNone = '-' ...
28.741497
80
0.59574
517
4,225
4.837524
0.355899
0.019992
0.014394
0.020392
0.145542
0.145542
0.145542
0.145542
0.102359
0.102359
0
0.001307
0.27574
4,225
146
81
28.938356
0.816013
0.300592
0
0.068182
0
0.011364
0.11676
0.024895
0
0
0
0
0
1
0.068182
false
0
0.011364
0
0.193182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
daf646afbefc8a29534d759d8a3042f9a4ff070a
8,996
py
Python
src/slizzy/main.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
1
2019-12-24T03:08:12.000Z
2019-12-24T03:08:12.000Z
src/slizzy/main.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
null
null
null
src/slizzy/main.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import enum import sys import slizzy.config as config import slizzy.version as version from slizzy.track import Track from slizzy.util import color, logging, time __all__ = [ "module", "all_modules", "slizzy" ] module = enum.Enum("modules", "slider mp3co zippy") all...
25.925072
101
0.619942
1,130
8,996
4.841593
0.215044
0.029245
0.023762
0.026321
0.235971
0.178212
0.139828
0.104551
0.077682
0.056114
0
0.008097
0.258671
8,996
346
102
26
0.812266
0.022343
0
0.277154
0
0.003745
0.200933
0
0
0
0
0
0
1
0.022472
false
0.003745
0.05618
0
0.097378
0.059925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97008b753f686abd12cd11cf56dd253fd134810a
2,120
py
Python
hugs/manager.py
Bogdanp/hugs
e7f16f15369fbe3da11d89882d76c7ef432f3709
[ "BSD-3-Clause" ]
22
2017-07-20T18:02:27.000Z
2021-06-10T13:06:22.000Z
hugs/manager.py
Bogdanp/hugs
e7f16f15369fbe3da11d89882d76c7ef432f3709
[ "BSD-3-Clause" ]
null
null
null
hugs/manager.py
Bogdanp/hugs
e7f16f15369fbe3da11d89882d76c7ef432f3709
[ "BSD-3-Clause" ]
2
2019-12-11T20:44:08.000Z
2021-02-02T04:37:04.000Z
import functools import sqlite3 from .repository import Repository try: from psycopg2.extras import DictRow, RealDictRow ROW_CLASSES = (dict, sqlite3.Row, DictRow, RealDictRow) except ImportError: # pragma: no cover ROW_CLASSES = (dict, sqlite3.Row) class Manager: """Managers extend repositories w...
29.859155
90
0.628774
257
2,120
5.089494
0.357977
0.055046
0.036697
0.03211
0.365443
0.328746
0.328746
0.328746
0.328746
0.328746
0
0.005305
0.288679
2,120
70
91
30.285714
0.862069
0.197642
0
0.227273
0
0
0.005952
0
0
0
0
0
0
1
0.136364
false
0
0.113636
0
0.431818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
970361b69af566e027101b9098d4da56f00db470
3,344
py
Python
spydrnet/__init__.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
spydrnet/__init__.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
spydrnet/__init__.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
""" SpyDrNet ======== SpyDrNet is an EDA tool for analyzing and transforming netlists. See https://byuccl.github.io/spydrnet for more details. """ import importlib import pkgutil import pathlib import sys import os discovered_plugins = { name: importlib.import_module(name) for finder, name, ispkg in pkg...
30.962963
110
0.739833
440
3,344
5.395455
0.370455
0.050548
0.026959
0.00337
0.09604
0.071609
0.034541
0.034541
0.034541
0
0
0.001047
0.142943
3,344
107
111
31.252336
0.827285
0.052632
0
0.078947
0
0.013158
0.106046
0.007281
0
0
0
0
0.013158
1
0.039474
false
0
0.263158
0
0.342105
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9703d55b61dbe9671b606d116415a69bd78ce48a
620
py
Python
tools/sparse_dense_size_comparison.py
3rror/aca_pathfinding_project
d7a91b1491e8eca08849e526634bdaa9a3833fa2
[ "MIT" ]
null
null
null
tools/sparse_dense_size_comparison.py
3rror/aca_pathfinding_project
d7a91b1491e8eca08849e526634bdaa9a3833fa2
[ "MIT" ]
null
null
null
tools/sparse_dense_size_comparison.py
3rror/aca_pathfinding_project
d7a91b1491e8eca08849e526634bdaa9a3833fa2
[ "MIT" ]
null
null
null
# Compare memory usage of a dense and a sparse adjancency matrix. # # Requires numpy. Install it with `pip3 install --user numpy` # Authors: Gianluca Andreotti, Aurora Lucrezia Castro import numpy as np from scipy.sparse import csr_matrix import sys def load_matrix(file): matrix = np.loadtxt(file, dtype=int, nd...
25.833333
66
0.696774
93
620
4.473118
0.591398
0.043269
0.057692
0
0
0
0
0
0
0
0
0.021825
0.187097
620
23
67
26.956522
0.803571
0.282258
0
0
0
0
0.238636
0.061364
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97062759c3659ac5db7690deb35f3812cc14b685
5,298
py
Python
app/crypto_algo.py
paul3bin/cryptography-api
13145ef897dcd3e5d4850bbf9f3572556a055e22
[ "MIT" ]
null
null
null
app/crypto_algo.py
paul3bin/cryptography-api
13145ef897dcd3e5d4850bbf9f3572556a055e22
[ "MIT" ]
null
null
null
app/crypto_algo.py
paul3bin/cryptography-api
13145ef897dcd3e5d4850bbf9f3572556a055e22
[ "MIT" ]
null
null
null
from pandas import DataFrame class CaesarCipher: def __init__(self, text, key) -> None: self.text = text self.key = key def decrypt(self): decipheredText = "" for ch in self.text.upper(): if ch.isalpha(): newchar = ord(ch)-self.key ...
35.32
118
0.466214
554
5,298
4.400722
0.236462
0.045939
0.022559
0.022559
0.337982
0.283019
0.251846
0.235439
0.208368
0.182937
0
0.017001
0.322763
5,298
149
119
35.557047
0.662486
0.090411
0
0.291262
0
0
0.074667
0.012063
0.009709
0
0
0
0
1
0.15534
false
0
0.009709
0.038835
0.330097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97072840b3c078e668d6a47321880a4ea8713698
2,638
py
Python
MultiPManager/brokermq.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
MultiPManager/brokermq.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
MultiPManager/brokermq.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # # A module for create a multi-agent system over Ad-hoc networks # Copyright (C) 2017-2018 # Juan Sebastian Triana Correa <justrianaco@unal.edu.co> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as publ...
33.820513
96
0.689917
344
2,638
5.119186
0.453488
0.044293
0.040886
0.0477
0.303805
0.289608
0.230551
0.230551
0.230551
0.230551
0
0.009497
0.201668
2,638
77
97
34.25974
0.826686
0.331691
0
0.363636
0
0
0.114237
0.013203
0
0
0
0
0
1
0.113636
false
0
0.113636
0
0.295455
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9707bc0df9d0b4b62a5f4981d1500fdead7c395d
672
py
Python
tests/span/span_helpers.py
dmytroxshevchuk/sonic-mgmt
b784e598a063aba71fdf9ca23fe142840926e4cf
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
tests/span/span_helpers.py
dmytroxshevchuk/sonic-mgmt
b784e598a063aba71fdf9ca23fe142840926e4cf
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
tests/span/span_helpers.py
dmytroxshevchuk/sonic-mgmt
b784e598a063aba71fdf9ca23fe142840926e4cf
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
''' Helper functions for span tests ''' import ptf.testutils as testutils def send_and_verify_mirrored_packet(ptfadapter, src_port, monitor): ''' Send packet from ptf and verify it on monitor port Args: ptfadapter: ptfadapter fixture src_port: ptf port index, from which packet will be sen...
29.217391
84
0.71875
96
672
4.864583
0.4375
0.042827
0.051392
0.051392
0.025696
0
0
0
0
0
0
0.001848
0.19494
672
22
85
30.545455
0.861368
0.36756
0
0
0
0
0.044041
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97089962ed3ea0a8a6e34e92416d3e39210a2bda
9,039
py
Python
bonobo/nodes/basics.py
a-musing-moose/bonobo
b3e9ddd028aed4a8a4df8e4b89334951a343e6fa
[ "Apache-2.0" ]
null
null
null
bonobo/nodes/basics.py
a-musing-moose/bonobo
b3e9ddd028aed4a8a4df8e4b89334951a343e6fa
[ "Apache-2.0" ]
null
null
null
bonobo/nodes/basics.py
a-musing-moose/bonobo
b3e9ddd028aed4a8a4df8e4b89334951a343e6fa
[ "Apache-2.0" ]
null
null
null
import functools import html import itertools import pprint from bonobo import settings from bonobo.config import Configurable, Option, Method, use_raw_input, use_context, use_no_input from bonobo.config.functools import transformation_factory from bonobo.config.processors import ContextProcessor, use_context_processo...
27.557927
120
0.605819
1,056
9,039
5.042614
0.214962
0.022535
0.021972
0.01784
0.212207
0.176338
0.073615
0.073615
0.058592
0.039437
0
0.005682
0.279566
9,039
327
121
27.642202
0.812039
0.093263
0
0.229358
0
0
0.060144
0
0
0
0
0.006116
0
1
0.133028
false
0
0.06422
0.013761
0.316514
0.059633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9709d0267ed5104b57450430822594c17f2e9707
1,093
py
Python
examplesimple.py
atxarib99/kNN
20c41a549f9f101478c1523b2ba683a8058fa6c8
[ "MIT" ]
null
null
null
examplesimple.py
atxarib99/kNN
20c41a549f9f101478c1523b2ba683a8058fa6c8
[ "MIT" ]
null
null
null
examplesimple.py
atxarib99/kNN
20c41a549f9f101478c1523b2ba683a8058fa6c8
[ "MIT" ]
null
null
null
''' This file serves to be an example on how to use kNN. This file is the simplified version with no graphs. For an example with graphs, check example.py Change k, noise, and amount of data to see how accuracy is affected. ''' import kNN as knn import modeler #setup the trainer. Tune your k parameter here. tr...
34.15625
153
0.743824
169
1,093
4.810651
0.544379
0.01968
0
0
0
0
0
0
0
0
0
0.015625
0.180238
1,093
32
154
34.15625
0.891741
0.547118
0
0
0
0
0.016949
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
0
0
0
0
0
1
0
970a946d901c0d355d2502d9d1f07264bbcb2be3
424
py
Python
python/simpletest/test.py
hackin-zhao/interesting_code
25fecb716f5c8f9143ec2824bbf8996b347ce8a9
[ "MIT" ]
1
2021-09-22T10:56:13.000Z
2021-09-22T10:56:13.000Z
python/simpletest/test.py
hackin-zhao/interesting_code
25fecb716f5c8f9143ec2824bbf8996b347ce8a9
[ "MIT" ]
1
2022-02-15T03:53:47.000Z
2022-02-15T03:53:47.000Z
python/simpletest/test.py
hackin-zhao/interesting_code
25fecb716f5c8f9143ec2824bbf8996b347ce8a9
[ "MIT" ]
null
null
null
import unittest from mathtest import add, minus class TestMathFunc(unittest.TestCase): """ Test math function """ def test_add(self): """ Test method add(a,b) """ self.assertEqual(3, add(1, 2)) self.assertNotEqual(3, add(2, 2)) def test_minus(self): """ Test method test m...
21.2
43
0.601415
56
424
4.375
0.446429
0.057143
0.114286
0.138776
0
0
0
0
0
0
0
0.028213
0.247642
424
19
44
22.315789
0.739812
0.162736
0
0
0
0
0.023881
0
0
0
0
0
0.3
1
0.2
false
0
0.2
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
970bccc21f91dbbbb912e9ec8f46b93496941b85
585
py
Python
src/data/439.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/439.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/439.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import deque N, Q = map(int, input().split()) G = [[] for _ in range(N)] for _ in range(N - 1): a, b = map(lambda x: int(x) - 1, input().split()) G[a].append(b) G[b].append(a) s = 0 dist = [-1] * N que = deque() que.append(s) dist[s] = 0 while que: i = que.pople...
20.172414
53
0.499145
101
585
2.861386
0.386139
0.103806
0.103806
0.076125
0.17301
0.17301
0.17301
0.17301
0
0
0
0.021792
0.294017
585
28
54
20.892857
0.677966
0.035897
0
0
0
0
0.01421
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
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
0
0
0
0
0
1
0
970ca64e46ad17397f8882ea7b2df30130763068
5,384
py
Python
axis_inspection/axis_inspection/report/project_status_summary/project_status_summary.py
Subramani830/testrepo
4568c628dc0731d08315ebc830dc813e0abfc60d
[ "MIT" ]
null
null
null
axis_inspection/axis_inspection/report/project_status_summary/project_status_summary.py
Subramani830/testrepo
4568c628dc0731d08315ebc830dc813e0abfc60d
[ "MIT" ]
null
null
null
axis_inspection/axis_inspection/report/project_status_summary/project_status_summary.py
Subramani830/testrepo
4568c628dc0731d08315ebc830dc813e0abfc60d
[ "MIT" ]
null
null
null
# Copyright (c) 2013, veena and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ def execute(filters=None): columns = get_columns() data = [] conditions=get_conditions(filters) data = get_data(filters,conditions) for projec...
25.158879
527
0.633172
617
5,384
5.345219
0.197731
0.030321
0.041237
0.029109
0.184657
0.09339
0.072771
0.072771
0.072771
0.05852
0
0.019035
0.180349
5,384
213
528
25.276995
0.728303
0.016716
0
0.169231
0
0.005128
0.381024
0.065961
0
0
0
0
0
1
0.030769
false
0
0.015385
0.005128
0.082051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
971109a2af40ebe4d09693183a658f563772f76a
4,652
py
Python
animate_gp.py
mzwiessele/notebook_playground
14938eddf5491eb0356fa4f73d16047202131e4d
[ "BSD-2-Clause" ]
null
null
null
animate_gp.py
mzwiessele/notebook_playground
14938eddf5491eb0356fa4f73d16047202131e4d
[ "BSD-2-Clause" ]
null
null
null
animate_gp.py
mzwiessele/notebook_playground
14938eddf5491eb0356fa4f73d16047202131e4d
[ "BSD-2-Clause" ]
null
null
null
#=============================================================================== # Copyright (c) 2018, Max Zwiessele # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of sour...
36.34375
97
0.593508
649
4,652
4.201849
0.417565
0.003667
0.0033
0.016868
0.151815
0.134213
0.126146
0.126146
0.110011
0.110011
0
0.031945
0.246346
4,652
127
98
36.629921
0.745864
0.377902
0
0.126582
0
0
0.041929
0
0
0
0
0
0
1
0.126582
false
0
0.063291
0.012658
0.303797
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9711a13f8bc8673b475c4605a1bf57d9fc492541
1,190
py
Python
M4_Eval_SDK/Source/samples/python/console_window.py
analogdevicesinc/ApplicationsWaveTool
0c1f236dd0745caa3187841ee1a882f209ac3ebe
[ "Apache-2.0" ]
2
2019-03-11T15:24:51.000Z
2022-03-07T09:42:05.000Z
M4_Eval_SDK/Source/samples/python/console_window.py
analogdevicesinc/ApplicationsWaveTool
0c1f236dd0745caa3187841ee1a882f209ac3ebe
[ "Apache-2.0" ]
null
null
null
M4_Eval_SDK/Source/samples/python/console_window.py
analogdevicesinc/ApplicationsWaveTool
0c1f236dd0745caa3187841ee1a882f209ac3ebe
[ "Apache-2.0" ]
1
2021-03-16T08:26:05.000Z
2021-03-16T08:26:05.000Z
import socket, sys, time, colorama, os from threading import * colorama.init(autoreset=True) serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = "localhost" port = int(sys.argv[1]) try: serversocket.bind((host, port)) except Exception as e: import traceback print("An error occurred whi...
28.333333
94
0.610084
150
1,190
4.753333
0.5
0.033661
0.037868
0.046283
0.082749
0.061711
0.061711
0.061711
0
0
0
0.012717
0.273109
1,190
41
95
29.02439
0.811561
0
0
0.166667
0
0
0.177311
0
0
0
0
0
0
1
0.055556
false
0
0.083333
0
0.166667
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97127268ae73df5b3be209c30b4a2132ec27b166
1,517
py
Python
src/day11.py
chao-mu/aoc2021
9cb0590a8de100f260a78f22e50d00d6acb13ae4
[ "CC0-1.0" ]
null
null
null
src/day11.py
chao-mu/aoc2021
9cb0590a8de100f260a78f22e50d00d6acb13ae4
[ "CC0-1.0" ]
null
null
null
src/day11.py
chao-mu/aoc2021
9cb0590a8de100f260a78f22e50d00d6acb13ae4
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from aoc2021.util import print_solutions, import_matrix from math import inf def part_1(dumbos): flashes = 0 for _ in range(100): for coord in dumbos: dumbos[coord] += 1 flashed = set() for coord, dumbo in dumbos.items(): if coord not in...
20.780822
89
0.544496
194
1,517
4.159794
0.262887
0.109046
0.022305
0.024783
0.506815
0.463445
0.463445
0.453532
0.453532
0.453532
0
0.046397
0.332235
1,517
72
90
21.069444
0.750247
0.013843
0
0.470588
0
0
0.062876
0.032107
0
0
0
0
0
1
0.078431
false
0
0.078431
0
0.254902
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9713a29a49b88c9107c1462a864743e09d61110c
4,221
py
Python
bot.py
Ashkar2001/shareurlbotv1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
3
2021-04-22T19:37:01.000Z
2022-03-28T09:09:19.000Z
bot.py
krbishnoi46/ShareurlbotV1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
null
null
null
bot.py
krbishnoi46/ShareurlbotV1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
2
2021-05-02T14:32:52.000Z
2021-09-13T19:42:02.000Z
import urllib from pyrogram import Client, filters from pyrogram.types import (InlineKeyboardButton, InlineKeyboardMarkup, InlineQueryResultArticle, InputTextMessageContent) from config import Config bot = Client( 'shareurl-generator', bot_token = Config.BOT_TOKEN, api_id = Config.API_ID, api_hash = Co...
55.539474
654
0.683487
548
4,221
5.144161
0.337591
0.027315
0.031926
0.108549
0.453352
0.397659
0.353317
0.353317
0.327066
0.327066
0
0.037119
0.144752
4,221
75
655
56.28
0.737396
0
0
0.125
0
0.0625
0.43331
0.054016
0
0
0
0
0
1
0.078125
false
0
0.0625
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9714d810307fa953764fccad45ba80c5500ed6fb
6,745
py
Python
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
import collections import copy import http.client import json import re import sys import urllib.parse import bs4 import requests from geomet import wkt """ Based on conversation and code from https://github.com/openaddresses/machine/issues/580 """ BEACON_HEADERS = { "Content-Type": "application/json", "User...
31.666667
88
0.648184
905
6,745
4.708287
0.316022
0.029571
0.027458
0.033795
0.239615
0.230697
0.230697
0.205116
0.133302
0.133302
0
0.018487
0.214085
6,745
212
89
31.816038
0.785324
0.162639
0
0.09375
0
0
0.113048
0.007891
0
0
0
0
0
1
0.0625
false
0
0.078125
0
0.21875
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97176fec2bfad5af9c57f1ea37398060856e772d
22,033
py
Python
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt """Basic Error checker from the basic checker.""" from __future__ import annotations import iter...
38.318261
89
0.591113
2,568
22,033
4.92757
0.159657
0.021337
0.020547
0.022127
0.234945
0.168721
0.130947
0.099494
0.077999
0.068911
0
0.006959
0.315209
22,033
574
90
38.385017
0.831721
0.118459
0
0.268519
0
0
0.199033
0.042219
0
0
0
0
0
1
0.064815
false
0.002315
0.023148
0.002315
0.157407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
971bccd2014298cba9295d6dd03cd7d5f6c9e5d5
12,539
py
Python
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
""" Train and eval functions used in main.py """ import os import torch from torch.utils.data import DataLoader, DistributedSampler import math import sys import time import datetime from typing import Iterable from pathlib import Path import json import random import numpy as np import torch import wandb from datase...
31.037129
87
0.670229
1,668
12,539
4.788969
0.185252
0.039935
0.017902
0.014021
0.220831
0.166875
0.137331
0.090636
0.082123
0.044567
0
0.00708
0.23407
12,539
403
88
31.114144
0.824656
0.044182
0
0.121875
0
0
0.045489
0.007442
0
0
0
0
0.003125
1
0.01875
false
0.00625
0.059375
0
0.090625
0.028125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9721be068a8518541b5cace614456bd0b705d2e4
1,231
py
Python
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
import logging import scipy.optimize class MotionOptimizer(object): def __init__(self, motion, evaluator): self.logger = logging.getLogger(__name__) self.motion = motion self.evaluator = evaluator def obj(self, x): self.counter += 1 self.motion.set_params(x) co...
33.27027
72
0.523964
141
1,231
4.510638
0.375887
0.078616
0.04717
0.078616
0
0
0
0
0
0
0
0.055215
0.337937
1,231
36
73
34.194444
0.725153
0.073924
0
0
0
0
0.115317
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97223e918d7ed3c66e5db364f3b9dcfe0630ba1d
64,626
py
Python
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
# # Copyright The NOMAD Authors. # # This file is part of NOMAD. # See https://nomad-lab.eu for further info. # # 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/lic...
52.033816
262
0.512781
7,016
64,626
4.502281
0.105616
0.046727
0.060783
0.008104
0.428834
0.372515
0.31474
0.289762
0.252818
0.225307
0
0.008146
0.350339
64,626
1,241
263
52.075745
0.744218
0.07302
0
0.34476
0
0.05191
0.254424
0.115596
0
0
0
0
0
1
0.01763
false
0
0.011753
0.000979
0.047013
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9723dfd188ebc676983837f7b0d623a43502f121
3,540
py
Python
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
1
2022-01-22T14:40:22.000Z
2022-01-22T14:40:22.000Z
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
null
null
null
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
null
null
null
import os import numpy as np from PIL import Image import cv2 class ImageMaskUtil: # RGB Color Maps for labelling label_color_map = { 'background': (0, 0, 0), # background 'apple': (224, 0, 224), # apple } def __init__(self, img_dir=None, mask_dir=None, transforms=None): pri...
37.263158
107
0.620339
515
3,540
4.071845
0.254369
0.025751
0.019075
0.026705
0.299475
0.269909
0.250835
0.221268
0.207439
0.207439
0
0.013354
0.259605
3,540
94
108
37.659574
0.786723
0.131073
0
0.206349
0
0
0.108653
0
0
0
0
0
0
1
0.126984
false
0.015873
0.063492
0.031746
0.285714
0.031746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97265f76f9295dbfffcf1f1e54d2fcd3f6836b66
4,340
py
Python
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
null
null
null
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
7
2021-08-10T22:56:47.000Z
2022-02-16T13:56:47.000Z
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
null
null
null
from az.cli import az import os, configparser def checkVars(config): required_vars = { 'AADclientID': False, 'AADtenantID': False, 'AADsecret': False, 'AADGroupName': False, 'VoltTenantApiToken': False, 'VoltTenantTokenName': False, 'VoltTenantName': False, ...
40.560748
192
0.654608
453
4,340
6.231788
0.331126
0.014169
0.008502
0.019129
0.204038
0.045342
0.045342
0
0
0
0
0.010089
0.200691
4,340
106
193
40.943396
0.80369
0.045161
0
0.02381
0
0.047619
0.402852
0.016191
0
0
0
0
0
1
0.083333
false
0.011905
0.02381
0.011905
0.154762
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9726974206475436bf6ec6fcd8ca28dbc44033c4
710
py
Python
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
from pacotes import ex109 print('\033[36;40mExercício Python #109​ - Formatando Moedas em Python\033[m\n') v = float(input('Digite o valor: ')) escolhaMoeda = False while True: escolha = str(input('Ele devera ser formatado como moeda? [s/n]: ')).strip().lower()[0] if escolha == 's' or escolha == 'n': ...
33.809524
91
0.647887
102
710
4.509804
0.568627
0.052174
0.117391
0.03913
0
0
0
0
0
0
0
0.064014
0.185915
710
21
92
33.809524
0.731834
0
0
0
0
0.0625
0.541491
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9728ac0573f8175100d55ffa0754e092810cb584
662
py
Python
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
11
2018-10-29T06:50:43.000Z
2022-03-28T14:26:09.000Z
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
1
2022-03-01T13:46:25.000Z
2022-03-01T13:46:25.000Z
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
6
2019-02-05T20:01:53.000Z
2020-09-04T12:30:00.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains list of APIs for Development model """ __author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)' # Index INDEX = '/index' # Environment params NUM_UES = '/num_ues' NUM_APS = '/num_aps' AP_LIST = '/ap_list' AP_INFO = '/ap_info/' BR_LIS...
22.066667
76
0.702417
98
662
4.336735
0.469388
0.112941
0.042353
0.112941
0
0
0
0
0
0
0
0.010417
0.129909
662
29
77
22.827586
0.727431
0.172205
0
0
0
0
0.460967
0.124535
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
972a2b2e21605641fa0b11bb08a11cacd4d680ed
9,349
py
Python
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
from optparse import OptionParser import os import tempfile from git import Repo from python_terraform import * import logging import json import re import copy logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO) tf = Terraform() default_git_user=os.getenv('GIT_USER') default_git_token=os.get...
57.355828
244
0.708525
1,301
9,349
4.939277
0.166026
0.042017
0.070028
0.032524
0.619203
0.582944
0.573607
0.561469
0.561469
0.537193
0
0.002436
0.165793
9,349
163
245
57.355828
0.821516
0.182479
0
0.37037
0
0.014815
0.306422
0.006946
0
0
0
0
0
1
0.059259
false
0
0.066667
0
0.17037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
972cb8d5d6817e9274b9009a061e7f62e70b9c3c
543
py
Python
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
1
2021-01-31T00:14:08.000Z
2021-01-31T00:14:08.000Z
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
null
null
null
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
null
null
null
# Get a string, print a list of chars and the indices of those chars user_input = input() str_order = list(user_input) str_dict = {} str_dict = {key: [] for key in str_order} for key in str_dict.keys(): start_index = 0 while True: try: start_index = user_input.index(key, start_index) ...
28.578947
73
0.61326
81
543
3.91358
0.432099
0.132492
0.094637
0.104101
0.217666
0.217666
0.132492
0
0
0
0
0.005013
0.265193
543
18
74
30.166667
0.789474
0.121547
0
0
0
0
0.008457
0
0
0
0
0
0
1
0
false
0
0
0
0
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
972d6292a88fb5c55480bbdced96a910e37ff845
1,323
py
Python
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
1
2021-03-21T17:54:26.000Z
2021-03-21T17:54:26.000Z
import numpy as np import matplotlib.pyplot as plt plt.rcParams.update({'font.size': 22}) # marker size n = 10 x = np.arange(1, 100, 10) # x = np.arange(1, 7) algo_dict = {'RMS+Bankers': r'$ALG_1$', 'EDF+Bankers': r'$ALG_2$', 'RMS+wound wait': r'$ALG_3$', 'RMS+wait die': r'$ALG...
26.46
75
0.617536
226
1,323
3.544248
0.384956
0.069913
0.059925
0.11236
0.223471
0.134831
0.069913
0
0
0
0
0.050274
0.173091
1,323
50
76
26.46
0.681901
0.123205
0
0
0
0
0.240693
0
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
972f8b6751c5b2afa662f260119fde2fc1802242
3,633
py
Python
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
1,153
2016-06-02T09:57:22.000Z
2021-05-14T13:02:35.000Z
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
515
2016-06-02T10:03:10.000Z
2021-05-14T14:37:08.000Z
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
274
2016-06-13T12:31:20.000Z
2021-04-13T02:20:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from ykdl.extractor import VideoExtractor from ykdl.videoinfo import VideoInfo from ykdl.util.html import get_content, add_header from ykdl.util.match import match1 from ykdl.compact import urlencode from .iqiyi.util import get_macid import json import time import random...
30.529412
83
0.512524
429
3,633
4.198135
0.358974
0.035536
0.033315
0.021099
0.041088
0
0
0
0
0
0
0.013636
0.333884
3,633
118
84
30.788136
0.730579
0.011561
0
0.019802
0
0
0.134857
0.01226
0
0
0
0
0.009901
1
0.039604
false
0
0.09901
0
0.237624
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97325c37bd3759407fc051583513adc0103085dc
784
py
Python
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
def mat_exp(mat, p, mod): """ Fast Matrix Exponentiation with modulo Parameters ---------- mat: numpy matrix The matrix to exponentiate. It must be a matrix that supports the * operator. p: int The power to raise the matrix to. mod: int The modulo value used t...
23.058824
75
0.468112
100
784
3.66
0.41
0.081967
0.060109
0.065574
0.071038
0
0
0
0
0
0
0.030973
0.423469
784
33
76
23.757576
0.778761
0.433673
0
0.125
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9733165a2c2800de7fed4fd918055591257301d4
3,276
py
Python
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
2
2021-05-28T10:02:10.000Z
2021-06-10T09:02:08.000Z
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
1
2020-09-20T06:12:06.000Z
2020-09-20T06:12:06.000Z
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
2
2021-06-12T08:54:49.000Z
2022-01-06T23:28:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- class Unit(object): """ The smallest unit. """ def __init__(self, value): if not isinstance(value, (float, int)): raise TypeError( f"@value must be integer or float value, but {value} was applied.") self._value ...
22.438356
83
0.537851
389
3,276
4.40874
0.213368
0.036735
0.027988
0.026239
0.233819
0.233819
0.233819
0.233819
0.193003
0.193003
0
0.007623
0.35928
3,276
145
84
22.593103
0.809433
0.264652
0
0.238095
0
0
0.113936
0
0
0
0
0
0
1
0.190476
false
0
0
0.015873
0.253968
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97340d2d28590597d1a93c772426eaebb769394a
2,101
py
Python
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
1
2015-03-08T18:20:30.000Z
2015-03-08T18:20:30.000Z
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
null
null
null
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
null
null
null
from ansi.colour.rgb import rgb256 from ansi.colour.fx import reset class TextImage(): def __init__(self, original, palette): self.original = original self.palette = palette self.lines = self._build_lines() self.text = self._build_text() def _build_text(self): result = ...
25.011905
65
0.576392
258
2,101
4.53876
0.348837
0.040991
0.037575
0.034159
0.039283
0.039283
0
0
0
0
0
0.022238
0.315088
2,101
83
66
25.313253
0.791522
0.111852
0
0.076923
0
0
0.016903
0
0
0
0
0
0
1
0.153846
false
0.019231
0.038462
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97344ad23f706ec259299413e63f1f8749dc6a20
14,126
py
Python
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
1
2018-06-25T01:08:52.000Z
2018-06-25T01:08:52.000Z
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
6
2018-06-20T20:13:25.000Z
2019-01-13T00:08:08.000Z
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=protected-access # pylint: disable=no-self-use # pylint: disable=missing-docstring # pylint: disable=too-many-public-methods import time import threading import unittest import apocrypha.client from apocrypha.exceptions import DatabaseError from apocrypha.server import Server...
29.864693
79
0.580348
1,584
14,126
5.082071
0.162879
0.084969
0.046584
0.077143
0.530435
0.478758
0.391056
0.339503
0.24882
0.226584
0
0.003509
0.273751
14,126
472
80
29.927966
0.781168
0.091675
0
0.361842
0
0
0.121275
0
0
0
0
0
0.233553
1
0.177632
false
0.009868
0.023026
0
0.220395
0.006579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9734571150ae79e21863d08655f64ceb72d55ed2
4,556
py
Python
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
#!/usr/bin/env python import unittest from unittest.mock import Mock from genie.conf import Genie from genie.conf.base import Testbed, Device, Link, Interface from genie.libs.conf.l2vpn import Xconnect from genie.libs.conf.bgp import RouteTarget class test_xconnect(unittest.TestCase): def test_init(self): ...
40.318584
130
0.643986
532
4,556
5.343985
0.18797
0.126627
0.129441
0.081252
0.659163
0.604995
0.517763
0.412592
0.380584
0.368625
0
0.049758
0.228051
4,556
112
131
40.678571
0.758601
0.094162
0
0.382716
0
0
0.076288
0.026725
0
0
0
0.008929
0.246914
1
0.012346
false
0
0.098765
0
0.123457
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
973ab068516510d55017d4d9e5b92353475eda35
36,287
py
Python
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
2
2018-01-29T18:50:25.000Z
2018-06-18T23:41:43.000Z
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
95
2017-05-25T13:12:14.000Z
2018-09-24T10:33:11.000Z
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
3
2017-06-13T10:10:50.000Z
2018-06-08T12:35:57.000Z
"""Input/output functions.""" import astropy.io.fits as fits from astropy.table import Table import numpy as np import astropy.units as u from astropy.coordinates import ( EarthLocation, AltAz, Angle, ICRS, GCRS, SkyCoord, get_sun, ) import os from astropy.time import Time import warnings fr...
30.988044
79
0.584534
4,700
36,287
4.325319
0.140213
0.031876
0.023661
0.020906
0.313641
0.248364
0.205322
0.181071
0.142309
0.103891
0
0.022886
0.283518
36,287
1,170
80
31.01453
0.759029
0.171329
0
0.211286
0
0.001312
0.097449
0.002971
0
0
0
0
0
1
0.03937
false
0.002625
0.026247
0.001312
0.11811
0.013123
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
973cf34dab4ee39dd0d909e99162d9d5963e92b5
3,946
py
Python
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
10
2020-12-14T21:36:03.000Z
2021-11-24T10:59:14.000Z
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
2
2021-01-06T09:57:27.000Z
2021-12-16T06:41:18.000Z
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
2
2021-11-24T08:34:32.000Z
2021-12-02T03:15:52.000Z
#!/usr/bin/env python3 # coding=utf-8 import gc import logging import os import sys sys.path.append( # Figure out the path of the evaluation directory os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) ) from evals.base_evaluate import experiments_directory, get_evaluation_...
31.31746
110
0.601368
427
3,946
5.285714
0.437939
0.011077
0.023926
0.01595
0.072663
0.072663
0.072663
0.072663
0.072663
0.072663
0
0.00798
0.301318
3,946
125
111
31.568
0.810664
0.081348
0
0.021277
0
0
0.159524
0.043406
0
0
0
0
0
1
0.021277
false
0
0.085106
0.010638
0.117021
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
973ea41ad870c8e44dccf1cf26f6c10aba40fa1a
6,814
py
Python
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
2
2022-03-02T15:56:49.000Z
2022-03-09T16:15:37.000Z
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
null
null
null
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions in order to make complex overpass query through osmnx. Use get_filter_graphs to get graph for specific filter, then create the union with compose_graph. Is a proxy of the lack of "or" syntax between keys, only able to make "or" inside keys or "and" between keys. """ import osmnx a...
41.803681
106
0.533607
709
6,814
4.916784
0.297602
0.05852
0.020654
0.019793
0.167814
0.139702
0.065118
0.055077
0.030981
0.030981
0
0.009539
0.36924
6,814
162
107
42.061728
0.801536
0.269299
0
0.145833
0
0.010417
0.211185
0.062396
0
0
0
0
0
1
0.03125
false
0
0.041667
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
973fb9aea59fde514b3cd0e87df8930e02f5134e
340
py
Python
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
"""POST URLS""" from django.urls import path # Views from posts import views urlpatterns = [ path(route = '', view=views.PostsFeedView.as_view(), name='feed'), path(route = 'posts/new/', view = views.PostCreateView.as_view(), name='create'), path(route='posts<int:pk>', view=views.PostDetailView.as_view(...
24.285714
85
0.676471
45
340
5.044444
0.488889
0.118943
0.132159
0
0
0
0
0
0
0
0
0
0.138235
340
13
86
26.153846
0.774744
0.047059
0
0
0
0
0.122642
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97420ee00a60c2531a89c2990102430b05c0989b
1,168
py
Python
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ HGVS Variants ~~~~~~~~~~~~~ For example, the node :code:`p(HGNC:GSK3B, var(p.Gly123Arg))` is represented with the following: .. code:: { FUNCTION: PROTEIN, NAMESPACE: 'HGNC', NAME: 'GSK3B', VARIANTS: [ { KIND: HGVS, ...
22.901961
132
0.626712
134
1,168
5.253731
0.522388
0.008523
0.06392
0
0
0
0
0
0
0
0
0.016538
0.223459
1,168
50
133
23.36
0.759647
0.59161
0
0
0
0
0.072848
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9744fdec5f804af7a4c49433b6de9937927e1e26
1,044
py
Python
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
# -*- Mode: Python3; coding: utf-8; indent-tabs-mpythoode: nil; tab-width: 4 -*- import os import numpy as np from matplotlib import pyplot as plt, colors as colors PATH = "../Images/" RED = 0 GREEN = 1 BLUE = 2 def view(data, X, Y, title="2D histogram"): c = ["RED", "GREEN", "BLUE"] dataX = data[:, :, X]...
18.642857
80
0.564176
152
1,044
3.789474
0.513158
0.055556
0.024306
0
0
0
0
0
0
0
0
0.028497
0.260536
1,044
55
81
18.981818
0.717617
0.095785
0
0
0
0
0.084402
0
0
0
0
0
0
1
0.057143
false
0
0.085714
0
0.171429
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9745bee63f21db8a2f15dbf9443e575995c9a601
4,931
py
Python
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
30
2021-11-29T19:09:09.000Z
2022-03-15T01:59:36.000Z
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
31
2021-11-18T09:42:27.000Z
2022-03-28T06:21:30.000Z
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
6
2021-12-05T22:00:00.000Z
2022-02-18T13:31:54.000Z
"""Config Flow to configure WeatherFlow Integration.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_API_TOKEN, CONF_ID from homeassistant.core import callback from homeassistant.helpers.aiohttp_client import a...
32.873333
84
0.601095
508
4,931
5.511811
0.228346
0.032143
0.027857
0.033929
0.381429
0.348929
0.201786
0.135357
0.026429
0
0
0.004187
0.321841
4,931
149
85
33.09396
0.833134
0.033056
0
0.247863
0
0
0.015959
0
0
0
0
0
0
1
0.017094
false
0
0.08547
0
0.213675
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9749b44259b93b94209924f8e12c6a9a0ca07292
4,436
py
Python
Model/manifest.py
llmay98/WSI-online-analysis-framework
1f2ee084b7ed87d22f9fbf041a6101c600104bfc
[ "Apache-2.0" ]
2
2020-01-07T04:22:04.000Z
2021-05-06T11:10:15.000Z
Model/manifest.py
llmay98/WSI-online-analysis-framework
1f2ee084b7ed87d22f9fbf041a6101c600104bfc
[ "Apache-2.0" ]
4
2021-06-02T13:19:46.000Z
2022-03-12T00:11:11.000Z
Model/manifest.py
llmay98/WSI-online-analysis-framework
1f2ee084b7ed87d22f9fbf041a6101c600104bfc
[ "Apache-2.0" ]
1
2021-06-03T04:48:00.000Z
2021-06-03T04:48:00.000Z
import mysql.connector import configparser import os import uuid class Manifest: def __init__(self): config_file = os.getcwd() + '/config.ini' self.config = configparser.ConfigParser() self.config.read(config_file, encoding='utf-8') db = self.db_connect() db.close() de...
32.144928
113
0.578449
548
4,436
4.494526
0.131387
0.053999
0.042225
0.079172
0.660983
0.624442
0.602517
0.511571
0.483963
0.483963
0
0.003182
0.291479
4,436
137
114
32.379562
0.780465
0
0
0.596639
0
0.008403
0.148332
0
0
0
0
0
0
1
0.117647
false
0.008403
0.033613
0.008403
0.210084
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
974ba423ea4fb5779929e4b07f704b1d42077fa3
678
py
Python
giocomo_lab_to_nwb/conversion_tools/nwb_gui.py
jordanhickman/giocomo-lab-to-nwb
1d0eb0efc2f3b6d881405b08d7bc0232e0cd79d5
[ "BSD-3-Clause" ]
null
null
null
giocomo_lab_to_nwb/conversion_tools/nwb_gui.py
jordanhickman/giocomo-lab-to-nwb
1d0eb0efc2f3b6d881405b08d7bc0232e0cd79d5
[ "BSD-3-Clause" ]
4
2019-07-30T00:57:41.000Z
2019-11-03T20:14:03.000Z
giocomo_lab_to_nwb/conversion_tools/nwb_gui.py
ben-dichter-consulting/giocomo-lab-to-nwb
a096cdea15291f77793ca334de1eaaa762685c58
[ "BSD-3-Clause" ]
2
2020-06-12T20:44:11.000Z
2020-08-06T02:02:12.000Z
# Opens the NWB conversion GUI # authors: Luiz Tauffer and Ben Dichter # written for Giocomo Lab # ------------------------------------------------------------------------------ from nwbn_conversion_tools.gui.nwbn_conversion_gui import nwbn_conversion_gui metafile = 'metafile.yml' conversion_module = 'conversion_modul...
29.478261
80
0.653392
74
678
5.743243
0.5
0.129412
0.12
0.117647
0.155294
0
0
0
0
0
0
0
0.120944
678
22
81
30.818182
0.713087
0.269912
0
0
0
0
0.204499
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
974c1455e15872002bcd7d434f9a4adca9b3db79
6,276
py
Python
tests/cosrlibtests/document/html/test_base.py
commonsearch/cosr-back
28ca0c1b938dde52bf4f59a835c98dd5ab22cad6
[ "Apache-2.0" ]
141
2016-02-17T14:27:57.000Z
2021-12-27T02:56:48.000Z
tests/cosrlibtests/document/html/test_base.py
commonsearch/cosr-back
28ca0c1b938dde52bf4f59a835c98dd5ab22cad6
[ "Apache-2.0" ]
69
2016-02-20T02:06:59.000Z
2017-01-29T22:23:46.000Z
tests/cosrlibtests/document/html/test_base.py
commonsearch/cosr-back
28ca0c1b938dde52bf4f59a835c98dd5ab22cad6
[ "Apache-2.0" ]
38
2016-02-25T04:40:07.000Z
2020-06-11T07:22:44.000Z
from cosrlib.document.html import HTMLDocument def test_get_title(): assert HTMLDocument( """<html><head><title>Test title</title></head><body>x</body></html>""" ).parse().get_title() == "Test title" assert HTMLDocument( """<html><title>Test title</title>XX</html>""" ).parse().get_tit...
40.490323
120
0.6203
872
6,276
4.397936
0.159404
0.08605
0.094915
0.09309
0.709518
0.663103
0.622686
0.576532
0.533246
0.515254
0
0.017773
0.157266
6,276
154
121
40.753247
0.707317
0.037444
0
0.362745
0
0.127451
0.518525
0.117153
0
0
0
0
0.333333
1
0.068627
false
0
0.009804
0
0.078431
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
974d884bdfa3addd83d2c9e41abdc6a7827099cf
2,975
py
Python
server/workers/tests/test_helpers.py
chreman/Headstart
5d8b956faac4389c649f3072b5ac55aaa01644c6
[ "MIT" ]
111
2016-12-10T17:27:46.000Z
2022-03-29T02:57:19.000Z
server/workers/tests/test_helpers.py
chreman/Headstart
5d8b956faac4389c649f3072b5ac55aaa01644c6
[ "MIT" ]
338
2016-12-04T17:43:28.000Z
2022-03-04T15:50:33.000Z
server/workers/tests/test_helpers.py
chreman/Headstart
5d8b956faac4389c649f3072b5ac55aaa01644c6
[ "MIT" ]
32
2016-12-19T12:48:00.000Z
2022-02-12T17:47:47.000Z
import os import json import uuid import pathlib import redis import pandas as pd from nltk.corpus import stopwords from tqdm import tqdm from .conftest import RANDOM from ..api.src.apis.utils import get_key # connect via nginx to APIs and submit tests def get_stopwords(lang): try: loc = pathlib.Path(__p...
30.670103
84
0.655798
363
2,975
5.253444
0.319559
0.033036
0.029366
0.015732
0.216046
0.128998
0.109072
0
0
0
0
0.001272
0.207059
2,975
96
85
30.989583
0.807122
0.023529
0
0.126582
0
0
0.127498
0
0
0
0
0
0.012658
1
0.063291
false
0
0.126582
0
0.253165
0.037975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
974e0906f60952202f09db80d093bc5842202e9c
982
py
Python
tests/test_loader.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
2,415
2018-12-04T00:37:58.000Z
2022-03-31T12:28:56.000Z
tests/test_loader.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
3,272
2018-12-03T23:58:17.000Z
2022-03-31T21:15:32.000Z
tests/test_loader.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
773
2018-12-06T09:43:23.000Z
2022-03-30T20:44:43.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from os import path import tempfile from textwrap import dedent from c7n import loader from .common import BaseTest class TestSourceLocator(BaseTest): def test_yaml_file(self): with tempfile.TemporaryDirectory() as tmpdirnam...
31.677419
68
0.5611
100
982
5.49
0.6
0.065574
0.120219
0.142077
0
0
0
0
0
0
0
0.010802
0.340122
982
30
69
32.733333
0.83642
0.075356
0
0
0
0
0.355801
0
0
0
0
0
0.136364
1
0.045455
false
0
0.227273
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
974eb9da087e6259717b8a906569a4f8425cdd9a
2,635
py
Python
Sensor_Hat/src/mod_thread.py
carlodones/thread_SenseHat_2
0824a718542b9a42159073190e7498288dc57c3a
[ "Apache-2.0" ]
null
null
null
Sensor_Hat/src/mod_thread.py
carlodones/thread_SenseHat_2
0824a718542b9a42159073190e7498288dc57c3a
[ "Apache-2.0" ]
null
null
null
Sensor_Hat/src/mod_thread.py
carlodones/thread_SenseHat_2
0824a718542b9a42159073190e7498288dc57c3a
[ "Apache-2.0" ]
1
2018-07-13T08:44:50.000Z
2018-07-13T08:44:50.000Z
import threading import time import mod_measure_list import mod_sense_hat # Classe per l'avvio dei thread class ThreadManager(threading.Thread): def __init__(self, channel, delay, source, measure_list): threading.Thread.__init__(self) self.channel = channel # Canale di acquisizione ...
35.133333
119
0.554459
294
2,635
4.809524
0.408163
0.077793
0.063649
0.027581
0
0
0
0
0
0
0
0.004608
0.341176
2,635
74
120
35.608108
0.809908
0.62315
0
0
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0.210526
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
975623b461dce10bee7524337b62f5692bc20bae
770
py
Python
136. Single Number(XOR-ed).py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-02-26T09:12:19.000Z
2019-06-07T13:38:10.000Z
136. Single Number(XOR-ed).py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
1
2018-12-24T07:03:34.000Z
2018-12-24T07:03:34.000Z
136. Single Number(XOR-ed).py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-12-24T07:01:03.000Z
2019-06-07T13:38:07.000Z
# copy from Leetcode, really a good way! class Solution: def singleNumber(self, nums): # using XOR method single_num = 0 for n in nums: single_num ^= n return single_num ''' if two number is different like 1010 and 1010 1010 xor 1010 = 0 so when a group of number ...
32.083333
55
0.658442
136
770
3.691176
0.522059
0.10757
0.039841
0.015936
0
0
0
0
0
0
0
0.067273
0.285714
770
23
56
33.478261
0.845455
0.071429
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
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
0
0
0
0
0
0
0
1
0
975aceff3bfddebb1d1b1672bcd24556fb99e1af
630
py
Python
galaxy_selenium/__init__.py
jmchilton/galaxy-selenium
fa1c4d0d71001399efc54ae432aea04947c47df1
[ "CC-BY-3.0" ]
null
null
null
galaxy_selenium/__init__.py
jmchilton/galaxy-selenium
fa1c4d0d71001399efc54ae432aea04947c47df1
[ "CC-BY-3.0" ]
null
null
null
galaxy_selenium/__init__.py
jmchilton/galaxy-selenium
fa1c4d0d71001399efc54ae432aea04947c47df1
[ "CC-BY-3.0" ]
null
null
null
"""Top-level of library designed to ease use of Selenium targetting Galaxy. galaxy_selenium is purposes being designed to depend on Python selenium, six, pyyaml, and optional pyvirtualdisplay but not galaxy-lib (or any of Galaxy or Galaxy's test stuff) currently. """ __version__ = '17.9.0.dev0' PROJECT_NAME = "galax...
35
79
0.773016
89
630
5.303371
0.595506
0.088983
0.088983
0
0
0
0
0
0
0
0
0.009042
0.122222
630
17
80
37.058824
0.844485
0.414286
0
0
0
0
0.469613
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
975cf0d24d9f18d9395f61092ba84bd2deba8dbb
1,570
py
Python
src/regression_handler.py
bruggerl/gdp-height
e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d
[ "MIT" ]
null
null
null
src/regression_handler.py
bruggerl/gdp-height
e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d
[ "MIT" ]
null
null
null
src/regression_handler.py
bruggerl/gdp-height
e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression import constants as c class RegressionHandler: """ This class encapsulates the logic for calculating and plotting a linear regression. """ @staticmethod def plot_regression(dataframe, sex=c.Sex.MALE): """ ...
40.25641
132
0.663057
219
1,570
4.694064
0.506849
0.046693
0.033074
0.021401
0
0
0
0
0
0
0
0.010897
0.240127
1,570
38
133
41.315789
0.850796
0.383439
0
0
0
0
0.104444
0.024444
0
0
0
0
0
1
0.05
false
0
0.15
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
975e0b8ba97e0a156a85f8001f92c9651a62a699
561
py
Python
server/utils/load_utils.py
caiodeberaldini/intelligent-systems-project
f97d480a7e51c76b0d6335d4ae8d5e6451321fb0
[ "MIT" ]
null
null
null
server/utils/load_utils.py
caiodeberaldini/intelligent-systems-project
f97d480a7e51c76b0d6335d4ae8d5e6451321fb0
[ "MIT" ]
null
null
null
server/utils/load_utils.py
caiodeberaldini/intelligent-systems-project
f97d480a7e51c76b0d6335d4ae8d5e6451321fb0
[ "MIT" ]
null
null
null
import os import sys import pickle from dotenv import load_dotenv _ = load_dotenv() def load_utils(): MODEL_PATH = os.getenv("MODEL_PATH") VECTORIZER_PATH = os.getenv("VECTORIZER_PATH") LABEL_ENC_PATH = os.getenv("LABEL_ENC_PATH") with open(MODEL_PATH, 'rb') as f: model = pickle.load(f) ...
19.344828
50
0.627451
80
561
4.2
0.2875
0.080357
0.107143
0.080357
0.199405
0.14881
0.14881
0
0
0
0
0
0.253119
561
28
51
20.035714
0.801909
0
0
0.157895
0
0
0.080214
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9760ac4b7c9df5edcac3c9facafdb4273c11312d
1,297
py
Python
server.py
kiduyu-klaus/k-books
1909100aa03e14d5f60e6bc4500b6226a3ce2552
[ "MIT" ]
2
2019-08-21T08:35:57.000Z
2021-07-03T19:35:58.000Z
server.py
kiduyu-klaus/k-books
1909100aa03e14d5f60e6bc4500b6226a3ce2552
[ "MIT" ]
1
2019-08-21T08:42:24.000Z
2019-08-21T08:42:24.000Z
server.py
kiduyu-klaus/k-books
1909100aa03e14d5f60e6bc4500b6226a3ce2552
[ "MIT" ]
null
null
null
import telegram import tornado.ioloop import tornado.web from tornado.options import define, options from settings import WEBHOOK_URL, TELEGRAM_ACCESS_TOKEN from core import bot_handler define("port", default=5000, help="run on the given port", type=int) class IndexHandler(tornado.web.RequestHandler): def get(s...
25.94
68
0.683115
161
1,297
5.36646
0.459627
0.05787
0.083333
0.09375
0.157407
0.157407
0.118056
0.118056
0.118056
0.118056
0
0.006803
0.206631
1,297
49
69
26.469388
0.832847
0.017733
0
0.142857
0
0
0.102987
0
0
0
0
0
0
1
0.142857
false
0
0.171429
0.028571
0.514286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9764e3ad21b80a26ed1998bb62b14b203c54a3ac
516
py
Python
utility/i2cutil.py
zjcers/ecohawks-battery
dd214584fc141aca64702d1093f218a3238ab22a
[ "MIT" ]
2
2016-11-16T05:53:03.000Z
2017-09-27T15:12:20.000Z
utility/i2cutil.py
zjcers/ecohawks-battery
dd214584fc141aca64702d1093f218a3238ab22a
[ "MIT" ]
2
2016-04-29T01:38:30.000Z
2016-09-21T15:41:20.000Z
utility/i2cutil.py
zjcers/ecohawks-battery
dd214584fc141aca64702d1093f218a3238ab22a
[ "MIT" ]
null
null
null
#!/usr/bin/python #Original Author: Zane J Cersovsky #Original Date: Mar 6 2016 #Last Modified By: Zane J Cersovsky #Last Modified On: Mar 7 2016 import bitstring def reverse_word(word): r""" Takes in a int and reverse its bytes """ assert type(word) == int assert word >= 0 and word < 65536 msb = word >> 8 lsb =...
23.454545
66
0.70155
84
516
4.297619
0.630952
0.027701
0.077562
0
0
0
0
0
0
0
0
0.057279
0.187985
516
21
67
24.571429
0.804296
0.463178
0
0
0
0
0
0
0
0
0
0
0.166667
1
0.166667
false
0
0.083333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9765225a4e13a87c2f5b956717cfeffe36f729ff
6,454
py
Python
certbot_azure/dns_azure_test.py
vladwing/certbot-azure
85e0da499d313431bcd47ae39e0e4c88bf2c2561
[ "MIT" ]
24
2019-01-17T20:32:02.000Z
2021-07-06T15:34:55.000Z
certbot_azure/dns_azure_test.py
vladwing/certbot-azure
85e0da499d313431bcd47ae39e0e4c88bf2c2561
[ "MIT" ]
5
2020-04-27T19:55:45.000Z
2021-12-03T10:26:15.000Z
certbot_azure/dns_azure_test.py
vladwing/certbot-azure
85e0da499d313431bcd47ae39e0e4c88bf2c2561
[ "MIT" ]
11
2020-10-28T16:02:26.000Z
2021-10-17T20:46:09.000Z
"""Tests for certbot_azure.authenticator.""" import os import unittest import mock import json from certbot import errors from certbot.plugins import dns_test_common_lexicon from certbot.plugins.dns_test_common import DOMAIN from certbot.tests import util as test_util from requests import Response from msrestazure....
37.964706
95
0.627053
685
6,454
5.618978
0.214599
0.051442
0.066251
0.072746
0.54014
0.464536
0.44583
0.44583
0.394128
0.372304
0
0.00367
0.282306
6,454
169
96
38.189349
0.827288
0.078091
0
0.275229
0
0
0.082714
0.021438
0
0
0
0
0.082569
1
0.100917
false
0
0.110092
0
0.293578
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97688b09bfb61fdf6e74155a50fefad44a0d8884
306
py
Python
Python/Introduction/Python Print/solution.py
aesavas/HackerRank
c1ffecc92e3e3db923f94594b9115f650dc2983a
[ "MIT" ]
null
null
null
Python/Introduction/Python Print/solution.py
aesavas/HackerRank
c1ffecc92e3e3db923f94594b9115f650dc2983a
[ "MIT" ]
null
null
null
Python/Introduction/Python Print/solution.py
aesavas/HackerRank
c1ffecc92e3e3db923f94594b9115f650dc2983a
[ "MIT" ]
null
null
null
""" author : Ali Emre SAVAS Link : https://www.hackerrank.com/challenges/python-print/problem """ if __name__ == '__main__': n = int(input()) number = "" # n+1 -> Because in range function, n+1 is not in the range. for i in range(1, n+1): number += str(i) print(number)
25.5
69
0.588235
45
306
3.822222
0.688889
0.034884
0
0
0
0
0
0
0
0
0
0.017544
0.254902
306
11
70
27.818182
0.736842
0.486928
0
0
0
0
0.056738
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
976907f333c9c096d9fd70e01fdfc99447224539
2,532
py
Python
YatzyPy/data.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
YatzyPy/data.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
YatzyPy/data.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
# data.py import numpy as np from itertools import product, combinations from . func import * from . const import * # totally 31 hold options in two dimentional array all_hold_options = np.array([list(combinations([0,1,2,3,4], r=repeat)) for repeat in range(1, 6)]) # plus one empty option, makes it 32 options all_hol...
45.214286
148
0.639021
338
2,532
4.745562
0.35503
0.013716
0.061721
0.026185
0.073566
0.073566
0.043641
0.027431
0
0
0
0.032756
0.156003
2,532
55
149
46.036364
0.717829
0.078594
0
0
0
0
0.215054
0.009892
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97691d01b0dc17a421afe81d680dd368bc4cb43f
2,841
py
Python
17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py
g2gcio/course-demo
b0d00a6ac7a6a6a17af963cee67cf13dc5941e95
[ "MIT" ]
276
2016-04-04T20:57:36.000Z
2022-03-12T02:42:46.000Z
17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py
g2gcio/course-demo
b0d00a6ac7a6a6a17af963cee67cf13dc5941e95
[ "MIT" ]
37
2016-10-13T12:04:27.000Z
2020-11-22T10:36:53.000Z
17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py
g2gcio/course-demo
b0d00a6ac7a6a6a17af963cee67cf13dc5941e95
[ "MIT" ]
163
2016-10-03T02:10:00.000Z
2022-03-25T03:43:01.000Z
from sqlalchemy.orm import joinedload from blue_yellow_app.data.album import Album from blue_yellow_app.data.dbsession import DbSessionFactory from blue_yellow_app.data.track import Track class AlbumsService: @staticmethod def get_albums(): session = DbSessionFactory.create_session() albums ...
35.962025
89
0.515312
291
2,841
4.924399
0.43299
0.016748
0.029309
0.03559
0.074669
0
0
0
0
0
0
0.025974
0.349525
2,841
78
90
36.423077
0.749459
0
0
0.169231
0
0
0.23548
0.033791
0
0
0
0
0
1
0.061538
false
0
0.061538
0.015385
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
976fcbf14dd7896daf4f8d49416555bf79ddb30f
1,250
py
Python
utils/distance_functions.py
inesnolas/Rank-based-loss_ICASSP22
3ebe7345dc26b8fa74543725a51b43b7170c58cc
[ "MIT" ]
null
null
null
utils/distance_functions.py
inesnolas/Rank-based-loss_ICASSP22
3ebe7345dc26b8fa74543725a51b43b7170c58cc
[ "MIT" ]
1
2022-03-10T04:08:49.000Z
2022-03-10T04:08:49.000Z
utils/distance_functions.py
inesnolas/Rank-based-loss_ICASSP22
3ebe7345dc26b8fa74543725a51b43b7170c58cc
[ "MIT" ]
null
null
null
import torch def compute_pairwise_cosine_distances(minibatch_embeddings, full_matrix=False): # cosine_distance = 1 - cosine_similarity # cosine similarity (A,B)= cos(theta) = (A . B ) / (||A||*||B||) , # constrainining embeddings into a hypersphere (unit-sphere) so all norms are 1 reduces this to a matr...
39.0625
129
0.7008
185
1,250
4.497297
0.389189
0.182692
0.086538
0.036058
0.252404
0.185096
0.185096
0.185096
0.185096
0.096154
0
0.021718
0.1896
1,250
31
130
40.322581
0.799605
0.252
0
0.3
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97719823db82abe3944497ea3132f94495350607
14,309
py
Python
python/model.py
jakelong0509/Song_Detector
57ac4b206b985f2c9e40423a9f79deacbc88f64e
[ "MIT" ]
3
2018-11-09T17:56:58.000Z
2019-05-15T19:43:58.000Z
python/model.py
jakelong0509/Song_Detector
57ac4b206b985f2c9e40423a9f79deacbc88f64e
[ "MIT" ]
1
2018-11-09T17:45:12.000Z
2018-11-09T23:12:21.000Z
python/model.py
jakelong0509/Song_Detector
57ac4b206b985f2c9e40423a9f79deacbc88f64e
[ "MIT" ]
null
null
null
import numpy as np import os import sys import progressbar import gc import pickle import matplotlib.pyplot as plt from LSTM import LSTM from wrapper import Bidirectional from Regularization import regularization from attention_model import attention_model from data_preprocessing import song_preprocessing from function...
42.20944
137
0.624991
2,027
14,309
4.118895
0.111001
0.019164
0.019404
0.018685
0.498143
0.419571
0.385196
0.358007
0.318002
0.303509
0
0.011368
0.262282
14,309
338
138
42.33432
0.779557
0.077504
0
0.217213
0
0
0.028082
0.009641
0
0
0
0.005917
0.012295
1
0.032787
false
0
0.057377
0
0.102459
0.036885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97742d434f756859171175e1ee026361918f8086
3,151
py
Python
blueprints/portfolio/build.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
null
null
null
blueprints/portfolio/build.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-30T21:41:46.000Z
2021-08-30T21:41:46.000Z
blueprints/portfolio/build.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-31T19:27:32.000Z
2021-08-31T19:27:32.000Z
from hausse import Hausse from hausse.plugins import ( Assets, DiscoverPartials, Drop, Handlebars, Markdown, MetadataMarkdown, Relations, Collection, Collections ) # Collections preparations # By default, all files in "src/formations" folder will be grouped in this collection Links...
41.460526
96
0.70676
418
3,151
5.325359
0.435407
0.020216
0.016173
0
0
0
0
0
0
0
0
0
0.228499
3,151
76
97
41.460526
0.915673
0.701999
0
0
0
0
0.106828
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
977547a86441dd2f34137210aaba3cb7c65a05a6
716
py
Python
yahoo_fin/ex01.py
stormabq/python-examples
1c1acfc3863a2cf1a9e202c9299f3a526858eb34
[ "MIT" ]
1
2021-12-12T04:39:53.000Z
2021-12-12T04:39:53.000Z
yahoo_fin/ex01.py
stormabq/python-examples
1c1acfc3863a2cf1a9e202c9299f3a526858eb34
[ "MIT" ]
null
null
null
yahoo_fin/ex01.py
stormabq/python-examples
1c1acfc3863a2cf1a9e202c9299f3a526858eb34
[ "MIT" ]
6
2020-05-05T17:21:28.000Z
2021-12-12T04:39:57.000Z
from yahoo_fin.stock_info import ( get_data, tickers_sp500, tickers_nasdaq, tickers_other, get_quote_table, ) """ pull historical data for Netflix (NFLX) """ # nflx = get_data("NFLX") """ pull data for Apple (AAPL) """ """case sensitivity does not matter""" # aapl = get_data("aapl") """ get list ...
24.689655
61
0.698324
102
716
4.686275
0.460784
0.043933
0.062762
0.050209
0.112971
0.112971
0
0
0
0
0
0.025467
0.177374
716
28
62
25.571429
0.786078
0.206704
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97777e3bdfdec7925db3bd47283e2b2cd170c9f4
3,657
py
Python
arenarobot/video_call/__init__.py
DaAwesomeP/ARENA-robot
ff771c4f5f587fda1bcc79ae165301129a6b1458
[ "BSD-3-Clause" ]
null
null
null
arenarobot/video_call/__init__.py
DaAwesomeP/ARENA-robot
ff771c4f5f587fda1bcc79ae165301129a6b1458
[ "BSD-3-Clause" ]
null
null
null
arenarobot/video_call/__init__.py
DaAwesomeP/ARENA-robot
ff771c4f5f587fda1bcc79ae165301129a6b1458
[ "BSD-3-Clause" ]
null
null
null
""" __init__.py: Definitions for the video call client. Created by Perry Naseck on 7/1/21. Copyright (c) 2021, The CONIX Research Center All rights reserved. This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree. """ # Some code originally fr...
33.861111
126
0.654361
441
3,657
5.29932
0.387755
0.056483
0.034232
0.04279
0.159178
0.141207
0.10184
0.065896
0.039367
0
0
0.021544
0.238447
3,657
107
127
34.17757
0.817594
0.275089
0
0.192982
0
0
0.144768
0.098348
0
0
0
0
0
1
0.175439
false
0
0.105263
0
0.350877
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97793cb16f646ed93a1d2a99e624885f86ec02c8
2,006
py
Python
ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py
sherrytp/bc_f19_econ
0d393e54441fd38faba275bb3e718704fbd18d0d
[ "Apache-2.0" ]
null
null
null
ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py
sherrytp/bc_f19_econ
0d393e54441fd38faba275bb3e718704fbd18d0d
[ "Apache-2.0" ]
null
null
null
ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py
sherrytp/bc_f19_econ
0d393e54441fd38faba275bb3e718704fbd18d0d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Feb 23 00:14:38 2019 @author: RV Purpose: use Ridge, Lasso and Elastic Net models on Titanic data """ #%% Lasso from sklearn.linear_model import Lasso useAlpha = 0.00001 lasso_1 = Lasso(alpha = useAlpha).fit(X, y) print(lasso_1.coef_) # OK, got the coefficie...
27.108108
99
0.70339
345
2,006
3.907246
0.324638
0.028932
0.067507
0.040801
0.433976
0.367211
0.227003
0.227003
0.227003
0.227003
0
0.051693
0.161017
2,006
73
100
27.479452
0.749257
0.197408
0
0.230769
0
0
0.01581
0
0
0
0
0
0
1
0
false
0
0.128205
0
0.128205
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
977b336843e723764b4e53b212ee10afac5dc75c
5,340
py
Python
pyperformance/_pythoninfo.py
oraluben/pyperformance
74acfa5fbf801ce79fdadc9e92355c99460e91e4
[ "MIT" ]
255
2016-08-27T05:38:56.000Z
2019-05-27T16:15:38.000Z
pyperformance/_pythoninfo.py
oraluben/pyperformance
74acfa5fbf801ce79fdadc9e92355c99460e91e4
[ "MIT" ]
43
2016-08-30T15:22:01.000Z
2019-05-24T10:59:54.000Z
pyperformance/_pythoninfo.py
oraluben/pyperformance
74acfa5fbf801ce79fdadc9e92355c99460e91e4
[ "MIT" ]
55
2016-08-30T15:19:45.000Z
2019-05-20T12:41:02.000Z
# A utility library for getting information about a Python executable. # # This may be used as a script. import importlib.util import json import os import os.path import sys import sysconfig INFO = { # sys 'executable (sys)': 'sys.executable', 'executable (sys;realpath)': 'executable_realpath', 'pre...
33.584906
81
0.618352
630
5,340
5.02381
0.253968
0.049289
0.030332
0.020221
0.289731
0.252449
0.252449
0.2
0.2
0.2
0
0.001004
0.25412
5,340
158
82
33.797468
0.793623
0.131273
0
0.070796
0
0
0.286623
0.035526
0
0
0
0
0
1
0.044248
false
0
0.070796
0
0.159292
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
977f46612fc386542c357d0fedcedfdd08752149
592
py
Python
alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py
pchudzik/tweet
1938dae6be1359d73a8140b994c3db39d2b336da
[ "MIT" ]
null
null
null
alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py
pchudzik/tweet
1938dae6be1359d73a8140b994c3db39d2b336da
[ "MIT" ]
null
null
null
alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py
pchudzik/tweet
1938dae6be1359d73a8140b994c3db39d2b336da
[ "MIT" ]
null
null
null
"""tokens table Revision ID: 6d2dd11ac2fb Revises: 908de7ed5813 Create Date: 2019-03-07 20:42:36.328479 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6d2dd11ac2fb' down_revision = '908de7ed5813' branch_labels = None depends_on = None def upgrade(): op....
19.733333
69
0.697635
76
592
5.315789
0.631579
0.039604
0.074257
0.10396
0
0
0
0
0
0
0
0.100823
0.179054
592
29
70
20.413793
0.730453
0.238176
0
0
0
0
0.151242
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97817fb679923c526b028329f844109b22f3d6ae
1,655
py
Python
pineboolib/fllegacy/FLSettings.py
Miguel-J/pineboo-buscar
41a2f3ee0425d163619b78f32544c4b4661d5fa7
[ "MIT" ]
null
null
null
pineboolib/fllegacy/FLSettings.py
Miguel-J/pineboo-buscar
41a2f3ee0425d163619b78f32544c4b4661d5fa7
[ "MIT" ]
null
null
null
pineboolib/fllegacy/FLSettings.py
Miguel-J/pineboo-buscar
41a2f3ee0425d163619b78f32544c4b4661d5fa7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtCore from pineboolib.flcontrols import ProjectClass from pineboolib import decorators class FLSettings(ProjectClass): s = QtCore.QSettings(QtCore.QSettings.NativeFormat, QtCore.QSettings.UserScope, "Eneboo", "Pineboo") @decorators.BetaIm...
26.269841
73
0.569184
190
1,655
4.9
0.294737
0.042965
0.069817
0.069817
0.281418
0.24275
0.219119
0.163265
0.092374
0.092374
0
0.003518
0.312991
1,655
62
74
26.693548
0.815303
0.100906
0
0.390244
0
0
0.013504
0
0
0
0
0
0
1
0.170732
false
0
0.073171
0
0.414634
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97818d041346c51355d6a36de188f9622c855abf
35,874
py
Python
kernel/tracker/tracking.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
kernel/tracker/tracking.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
kernel/tracker/tracking.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Tianmian Tech. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
37.682773
135
0.616073
4,290
35,874
4.81958
0.101865
0.036564
0.010012
0.010447
0.424792
0.322306
0.260495
0.209857
0.192155
0.176098
0
0.004563
0.297458
35,874
951
136
37.722397
0.815816
0.0904
0
0.234811
0
0
0.043235
0.006773
0
0
0
0
0
1
0.062397
false
0
0.049261
0.006568
0.183908
0.004926
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0