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
d9cd7eed7b8ea10662e38f9666d336b04f326af2
2,020
py
Python
hotshot/stats.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
1
2020-03-12T16:44:10.000Z
2020-03-12T16:44:10.000Z
hotshot/stats.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
hotshot/stats.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: hotshot.stats import profile, pstats, hotshot.log from hotshot.log import ENTER, EXIT def load(filename): return StatsLoader(filena...
25.897436
104
0.580693
243
2,020
4.646091
0.399177
0.039858
0.029229
0.026572
0.038973
0.038973
0
0
0
0
0
0.040234
0.323267
2,020
78
105
25.897436
0.785662
0.093564
0
0.054545
0
0
0.016968
0
0
0
0
0
0
0
null
null
0.018182
0.036364
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9d398fecb285b771ba8a7fbdcbc785e7672fb72
672
py
Python
Ifc/Function.py
IsConsense/IFC_parser
4f6a8e037eab743449d14edbfc15640e8ef6dec6
[ "BSD-2-Clause" ]
null
null
null
Ifc/Function.py
IsConsense/IFC_parser
4f6a8e037eab743449d14edbfc15640e8ef6dec6
[ "BSD-2-Clause" ]
null
null
null
Ifc/Function.py
IsConsense/IFC_parser
4f6a8e037eab743449d14edbfc15640e8ef6dec6
[ "BSD-2-Clause" ]
null
null
null
from ClassRegistry import ifc_definition @ifc_definition class Function: """ A FUNCTION definition in an Express schema NOTE: Parsed only as deep as necessary """ def __init__(self, classname, defname, defspec, parser): self.classname = classname self.defname = defname self...
26.88
77
0.630952
84
672
4.880952
0.666667
0.063415
0
0
0
0
0
0
0
0
0
0.004115
0.276786
672
24
78
28
0.839506
0.212798
0
0
0
0
0.061024
0
0
0
0
0.041667
0
1
0.153846
false
0
0.076923
0.076923
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d9d4bc507befec40208ae7c4cb36409d81014161
554
py
Python
examples/akskdemo.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/akskdemo.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/akskdemo.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#encoding=utf-8 import sys from openstack import connection from openstack import utils utils.enable_logging(debug = True, stream = sys.stdout) projectId = "***" domain = '***' region='***' AK = '***' SK = '***' conn = connection.Connection( project_id=projectId, domain=domain, ...
17.870968
55
0.570397
58
554
5.241379
0.586207
0.085526
0.125
0
0
0
0
0
0
0
0
0.002597
0.305054
554
31
56
17.870968
0.787013
0.025271
0
0
0
0
0.042593
0
0
0
0
0
0
0
null
null
0
0.136364
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9d6efcad3649a009edb51c58bfac7cf1a52f2a9
472
py
Python
listops/models/PpoModel.py
serhii-havrylov/latent-treelstm
1344bc1c6026d573c7cd7e4738dca0ae96408360
[ "MIT" ]
50
2019-05-17T17:20:42.000Z
2021-11-06T16:27:36.000Z
listops/models/PpoModel.py
serhii-havrylov/latent-treelstm
1344bc1c6026d573c7cd7e4738dca0ae96408360
[ "MIT" ]
6
2019-05-18T10:31:02.000Z
2020-05-13T14:56:08.000Z
listops/models/PpoModel.py
serhii-havrylov/latent-treelstm
1344bc1c6026d573c7cd7e4738dca0ae96408360
[ "MIT" ]
17
2019-05-18T10:25:24.000Z
2021-11-06T16:27:05.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from listops.models import ReinforceModel class PpoModel(ReinforceModel): def evaluate_actions(self, x, mask, actions): normali...
36.307692
114
0.758475
66
472
5.272727
0.681818
0.057471
0.137931
0.155172
0.178161
0
0
0
0
0
0
0.002538
0.165254
472
12
115
39.333333
0.880711
0.358051
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d9d84fce8afee38f3f81e2c8aa3feb486d5692d4
584
py
Python
src/CsvReader.py
harshalupadhye/indical
be67c0246be37b1efddbcfe8b9060135b526a2b2
[ "MIT" ]
null
null
null
src/CsvReader.py
harshalupadhye/indical
be67c0246be37b1efddbcfe8b9060135b526a2b2
[ "MIT" ]
null
null
null
src/CsvReader.py
harshalupadhye/indical
be67c0246be37b1efddbcfe8b9060135b526a2b2
[ "MIT" ]
null
null
null
import csv from pprint import pprint def ClassFactory(class_name, dictionary): return type(class_name, (object,), dictionary) class CsvReader: def __init__(self, filepath): with open(filepath) as text_data: self.data = [] csv_data = csv.DictReader(text_data, delimiter=',') ...
26.545455
63
0.621575
70
584
4.971429
0.414286
0.103448
0.12069
0
0
0
0
0
0
0
0
0
0.289384
584
22
64
26.545455
0.838554
0
0
0
0
0
0.001709
0
0
0
0
0
0
1
0.176471
false
0.058824
0.117647
0.058824
0.470588
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
1
0
0
0
0
0
1
d9d860b8f64de241b091dcdfcca9afaccc1b67f4
269
py
Python
jp.atcoder/abc148/abc148_b/9060998.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc148/abc148_b/9060998.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc148/abc148_b/9060998.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys n = int(sys.stdin.readline().rstrip()) s, t = sys.stdin.readline().split() def main(): res = [None] * n * 2 res[::2] = list(s) res[1::2] = list(t) return ''.join(res) if __name__ == '__main__': ans = main() print(ans)
17.933333
39
0.516729
39
269
3.358974
0.589744
0.122137
0.244275
0
0
0
0
0
0
0
0
0.020513
0.275093
269
14
40
19.214286
0.651282
0
0
0
0
0
0.03125
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0.090909
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9d8d3c5efd76e890ad5bc670824ac8a9ee1110d
2,760
py
Python
src/nn.py
manasviaggarwal/LSH-Random-Projections-PCA-Naive-Bayes-Nearest-Neighbor
75cda0d60eccee57ada40f7c66c6a905297b4aa4
[ "MIT" ]
null
null
null
src/nn.py
manasviaggarwal/LSH-Random-Projections-PCA-Naive-Bayes-Nearest-Neighbor
75cda0d60eccee57ada40f7c66c6a905297b4aa4
[ "MIT" ]
null
null
null
src/nn.py
manasviaggarwal/LSH-Random-Projections-PCA-Naive-Bayes-Nearest-Neighbor
75cda0d60eccee57ada40f7c66c6a905297b4aa4
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from numpy import array,identity,diagonal import os import numpy import pandas as pd import sys import random import math #from scipy.linalg import svd from math import sqrt from sklearn.neighbors import KNeighborsClassifier from sklearn.naive_bayes import GaussianNB f...
30.32967
108
0.755435
379
2,760
5.44591
0.287599
0.043605
0.011628
0.021318
0.183624
0.132752
0.084302
0.084302
0.084302
0.084302
0
0.01624
0.107609
2,760
90
109
30.666667
0.821762
0.132246
0
0.060606
0
0
0.036119
0
0
0
0
0
0
1
0.060606
false
0
0.30303
0
0.424242
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d9d9cd826c3f5be52641cb59c0517fbeaac4277c
4,810
py
Python
fhir/resources/DSTU2/tests/test_immunization.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/DSTU2/tests/test_immunization.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/DSTU2/tests/test_immunization.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/Immunization Release: DSTU2 Version: 1.0.2 Revision: 7202 """ from .. import fhirtypes # noqa: F401 from .. import immunization def testImmunization1(base_settings): filename = base_settings["unittest_data_dir"] / "immunization-example-...
39.752066
87
0.699168
593
4,810
5.623946
0.264755
0.152924
0.104348
0.107946
0.663868
0.605097
0.575412
0.411394
0.357121
0.344228
0
0.044713
0.15842
4,810
120
88
40.083333
0.77915
0.056133
0
0.215054
0
0.010753
0.205343
0.027821
0
0
0
0
0.591398
1
0.043011
false
0
0.021505
0
0.064516
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
d9e3ebf1dca7d28a0bf791c67f6124e0e5478eec
17,972
py
Python
archive/lym_project/deep_conv_classification_alt33.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
23
2018-08-23T03:58:37.000Z
2022-02-23T05:04:54.000Z
archive/lym_project/deep_conv_classification_alt33.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
archive/lym_project/deep_conv_classification_alt33.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import pickle import sys import os import urllib import gzip import cPickle import time import lasagne import theano import numpy as np import theano.tensor as T from lasagne import layers from lasagne.updates import nesterov_momentum from nolearn.lasagne import NeuralNet from nolearn.lasagne import BatchIterator from...
48.704607
216
0.678556
2,668
17,972
4.345577
0.132684
0.040366
0.078661
0.050716
0.534501
0.454373
0.427031
0.363033
0.320079
0.28118
0
0.040135
0.175106
17,972
368
217
48.836957
0.741922
0.00779
0
0.115646
0
0.006803
0.039832
0.018682
0
0
0
0
0.006803
0
null
null
0
0.102041
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9e49fecf4bdd5e58d2b6b3684359c9f2317ec75
1,891
py
Python
types-operations/chapter8/lists.py
rawzes/python-book
5bdbbd9a1ab1051161cf1a2a3bc141de8c3adc77
[ "Apache-2.0" ]
null
null
null
types-operations/chapter8/lists.py
rawzes/python-book
5bdbbd9a1ab1051161cf1a2a3bc141de8c3adc77
[ "Apache-2.0" ]
null
null
null
types-operations/chapter8/lists.py
rawzes/python-book
5bdbbd9a1ab1051161cf1a2a3bc141de8c3adc77
[ "Apache-2.0" ]
null
null
null
s = help(list) print(s) L = [] # пустой список L = [1, 3, "test", {}] # 4 элемента L = [1, 3, 'test2', ['e1', 'e2']] # вложенные подсписки print(L[3][0]) # e1 ''' Генерация списков из итерируемых объектов ''' L = list('spam') L = list(range(-10, 10)) print(len(L)) # 20 print(L) # [-10, -9, -8, -7, -6, -5, -4, -...
21.011111
98
0.505553
377
1,891
2.535809
0.244032
0.16318
0.021967
0.041841
0.153766
0.143305
0.119247
0.119247
0.119247
0.078452
0
0.137977
0.210471
1,891
90
99
21.011111
0.502344
0.375992
0
0.292308
0
0
0.055556
0
0
0
0
0
0
1
0
false
0
0
0
0
0.523077
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
d9e64915db8d9f65feac7eb31cb5242ff29fd5ee
1,899
py
Python
scripts/optimize_tf_dialect.py
henri-gruender/mlir-emitc
0f2e7b358a3742f11efbc9c65fd79748d210b849
[ "Apache-2.0" ]
null
null
null
scripts/optimize_tf_dialect.py
henri-gruender/mlir-emitc
0f2e7b358a3742f11efbc9c65fd79748d210b849
[ "Apache-2.0" ]
null
null
null
scripts/optimize_tf_dialect.py
henri-gruender/mlir-emitc
0f2e7b358a3742f11efbc9c65fd79748d210b849
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
35.166667
79
0.646656
241
1,899
4.987552
0.518672
0.049917
0.024958
0.026622
0
0
0
0
0
0
0
0.002784
0.243286
1,899
53
80
35.830189
0.833681
0.315956
0
0
0
0
0.298833
0.152529
0
0
0
0
0
1
0.066667
false
0.066667
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d9e8d61d4ffc77734da7551336827002bcdaf16f
934
py
Python
src/demo.py
TimeChi/ZXMOT
14ef5d917b36d23bdbed390ef74fadc7cbe44456
[ "MIT" ]
7
2020-06-27T11:07:41.000Z
2020-12-21T01:32:38.000Z
src/demo.py
TimeChi/ZXMOT
14ef5d917b36d23bdbed390ef74fadc7cbe44456
[ "MIT" ]
3
2020-07-29T07:46:31.000Z
2022-01-13T02:56:11.000Z
src/demo.py
TimeChi/ZXMOT
14ef5d917b36d23bdbed390ef74fadc7cbe44456
[ "MIT" ]
1
2021-04-24T15:13:23.000Z
2021-04-24T15:13:23.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import os.path as osp from opts import opts from tracking_utils.utils import mkdir_if_missing from track import eval_seq import time from tracker.basetrack import BaseTrack def d...
25.944444
94
0.713062
137
934
4.510949
0.40146
0.064725
0.07767
0.055016
0
0
0
0
0
0
0
0
0.191649
934
35
95
26.685714
0.818543
0
0
0
0
0
0.019272
0
0
0
0
0
0
1
0.037037
false
0
0.407407
0
0.444444
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d9eae24687895ecf4c240ed53b1fec078337bf23
144,241
py
Python
tests/jobs/test_scheduler_job.py
ashwinshankar77/airflow
67dc6f6f35558d277a93a653a91106e22baa344a
[ "Apache-2.0" ]
null
null
null
tests/jobs/test_scheduler_job.py
ashwinshankar77/airflow
67dc6f6f35558d277a93a653a91106e22baa344a
[ "Apache-2.0" ]
null
null
null
tests/jobs/test_scheduler_job.py
ashwinshankar77/airflow
67dc6f6f35558d277a93a653a91106e22baa344a
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.474822
110
0.625211
17,473
144,241
4.879242
0.05168
0.02231
0.035282
0.018838
0.779192
0.735159
0.695642
0.653311
0.610029
0.570078
0
0.015235
0.281917
144,241
3,653
111
39.485628
0.807872
0.106142
0
0.651944
0
0
0.073533
0.040146
0
0
0
0.000274
0.094753
1
0.042658
false
0.000755
0.02567
0.000378
0.07097
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9ed1b157a7e7295e7a8ba90dcf5237a4c8e5d28
6,135
py
Python
normalize.py
ncos/checkq
79506a9eafc9c5dacc84ee3dc37f799d734f4701
[ "MIT" ]
3
2016-01-25T02:19:28.000Z
2019-09-01T22:03:31.000Z
normalize.py
ncos/checkq
79506a9eafc9c5dacc84ee3dc37f799d734f4701
[ "MIT" ]
null
null
null
normalize.py
ncos/checkq
79506a9eafc9c5dacc84ee3dc37f799d734f4701
[ "MIT" ]
null
null
null
#!/usr/bin/python import cv2 import numpy as np import tflow_recognize as rcgn class ImageDisplay: def __init__(self, windowname): self.windowname = windowname cv2.namedWindow(windowname, cv2.WINDOW_NORMAL) def show_blend(self, images, windowname): if len(images) == 0: ...
33.162162
138
0.577506
797
6,135
4.337516
0.225847
0.060746
0.022274
0.016199
0.278565
0.242985
0.139427
0.122071
0.077524
0.077524
0
0.051235
0.293725
6,135
184
139
33.342391
0.746596
0.002608
0
0.131387
0
0
0.016999
0
0
0
0.000654
0
0
0
null
null
0.007299
0.021898
null
null
0.021898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9effaa91f7a54356514b08a0ab2eb4b3edb56ea
681
py
Python
awx/main/tests/functional/api/test_host_detail.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
2
2018-11-12T18:52:24.000Z
2020-05-22T18:41:21.000Z
awx/main/tests/functional/api/test_host_detail.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
4
2020-04-29T23:03:16.000Z
2022-03-01T23:56:09.000Z
awx/main/tests/functional/api/test_host_detail.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
9
2019-05-11T00:03:30.000Z
2021-07-07T16:09:17.000Z
# TODO: As of writing this our only concern is ensuring that the fact feature is reflected in the Host endpoint. # Other host tests should live here to make this test suite more complete. import pytest from awx.api.versioning import reverse @pytest.mark.django_db def test_basic_fields(hosts, fact_scans, get, user): ...
35.842105
122
0.728341
104
681
4.663462
0.586538
0.074227
0.057732
0.057732
0.098969
0.098969
0
0
0
0
0
0.005199
0.152717
681
18
123
37.833333
0.835355
0.268722
0
0
0
0
0.198381
0.054656
0
0
0
0.055556
0.3
1
0.1
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d9f13a13011e4d02932b13524c6c83af85f8ff41
217
py
Python
ansible/fabfile.py
NYARAS/Reusable-Comments-CI
dbf12c08bbfc654afb19a66c49462e9be6390542
[ "MIT" ]
null
null
null
ansible/fabfile.py
NYARAS/Reusable-Comments-CI
dbf12c08bbfc654afb19a66c49462e9be6390542
[ "MIT" ]
9
2020-06-05T22:16:30.000Z
2022-02-10T07:54:30.000Z
ansible/fabfile.py
NYARAS/Reusable-Comments-CI
dbf12c08bbfc654afb19a66c49462e9be6390542
[ "MIT" ]
1
2022-01-30T04:38:29.000Z
2022-01-30T04:38:29.000Z
from fabric import Connection, Config, task @task def update(c): c.run("pwd") c.run("eval `ssh-agent` && ssh-add /home/calvine/.ssh/calvineaws.pem") c.run("ansible-playbook -i hosts deploy.yml")
24.111111
75
0.645161
33
217
4.242424
0.757576
0.085714
0
0
0
0
0
0
0
0
0
0
0.18894
217
8
76
27.125
0.795455
0
0
0
0
0
0.480769
0.158654
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9f91bcea0a50f9bac8a396057ca61c2437e4d23
4,454
py
Python
designate-8.0.0/designate/backend/impl_powerdns/migrate_repo/versions/001_add_initial_schema.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
designate-8.0.0/designate/backend/impl_powerdns/migrate_repo/versions/001_add_initial_schema.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
designate-8.0.0/designate/backend/impl_powerdns/migrate_repo/versions/001_add_initial_schema.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2012 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # Author: Patrick Galbraith <patg@hp.com> # # 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 # # ...
42.826923
79
0.596542
469
4,454
5.622601
0.313433
0.079257
0.136898
0.165719
0.47099
0.442169
0.326887
0.234736
0.201365
0.172165
0
0.013941
0.275258
4,454
103
80
43.242718
0.802974
0.149753
0
0.291667
0
0
0.083289
0
0
0
0
0
0
1
0.027778
false
0
0.027778
0
0.055556
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9fb6a664ed7e61b6156c7c82023047584dadda0
1,543
py
Python
apps/external_apps/dbtemplates/management/__init__.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
3
2015-12-25T14:45:36.000Z
2016-11-28T09:58:03.000Z
apps/external_apps/dbtemplates/management/__init__.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
null
null
null
apps/external_apps/dbtemplates/management/__init__.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
1
2019-06-10T16:52:41.000Z
2019-06-10T16:52:41.000Z
from django.db.models import signals from django.contrib.sites.models import Site from dbtemplates.models import Template from dbtemplates import models as template_app def create_default_templates(app, created_models, verbosity, **kwargs): """Creates the default database template objects.""" try: sit...
32.145833
81
0.609851
176
1,543
5.267045
0.460227
0.038835
0.047465
0.04315
0.15534
0.15534
0.090615
0.090615
0
0
0
0.053097
0.26766
1,543
47
82
32.829787
0.767257
0
0
0.25
0
0.025
0.305164
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9fcc466909ad49a17d1f2817092cb88cae6b10a
949
py
Python
py/py_old/diffeqplot2.py
antlju/hbs-code
8a28edea41c51a5b36380ff103c4b42ffbe29123
[ "MIT" ]
1
2019-06-23T01:25:33.000Z
2019-06-23T01:25:33.000Z
py/py_old/diffeqplot2.py
antlju/hbs-code
8a28edea41c51a5b36380ff103c4b42ffbe29123
[ "MIT" ]
null
null
null
py/py_old/diffeqplot2.py
antlju/hbs-code
8a28edea41c51a5b36380ff103c4b42ffbe29123
[ "MIT" ]
null
null
null
from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from numpy import * from matplotlib import pyplot as plt import matplotlib.pylab as pl from matplotlib.colors import ListedColormap num = 1250 fname = "/home/anton/dev/hbs/src/simdata/u_tNum_"+str(num)+".dat" print fname X = loadtxt(fname, usecols=0) Y ...
24.973684
72
0.722866
165
949
4.090909
0.472727
0.044444
0.112593
0.032593
0
0
0
0
0
0
0
0.026253
0.116965
949
37
73
25.648649
0.779236
0.256059
0
0
0
0
0.064286
0.055714
0
0
0
0
0
0
null
null
0
0.26087
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9ff08c66a541fa3ef466ed3a35e8259b51dc473
1,439
py
Python
instacopy/apps/accounts/urls.py
romannovikov/instacopy-petproject
92ffec02b860c77377182cd1fc58043be195e06e
[ "MIT" ]
null
null
null
instacopy/apps/accounts/urls.py
romannovikov/instacopy-petproject
92ffec02b860c77377182cd1fc58043be195e06e
[ "MIT" ]
null
null
null
instacopy/apps/accounts/urls.py
romannovikov/instacopy-petproject
92ffec02b860c77377182cd1fc58043be195e06e
[ "MIT" ]
null
null
null
from django.urls import path, re_path from . import views urlpatterns = [ path('signup/', views.signup, name='account_signup'), path('login/', views.login, name='account_login'), path('logout/', views.logout, name='account_logout'), # path( # "password/change/", # views.password_chang...
30.617021
81
0.61501
164
1,439
5.109756
0.207317
0.170644
0.085919
0.114558
0.171838
0.073986
0
0
0
0
0
0.003568
0.220987
1,439
46
82
31.282609
0.743979
0.322446
0
0.208333
0
0.041667
0.334382
0.207547
0
0
0
0
0
1
0
false
0.416667
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a01d9d778e452d69d211d4a3d90255c25ec51d6
301
py
Python
web/__init__.py
BAFurtado/PolicySpace2
d9a450e47651885ed103d3217dbedec484456d07
[ "MIT" ]
10
2020-03-12T23:18:44.000Z
2022-03-29T16:05:38.000Z
web/__init__.py
BAFurtado/PolicySpace2
d9a450e47651885ed103d3217dbedec484456d07
[ "MIT" ]
null
null
null
web/__init__.py
BAFurtado/PolicySpace2
d9a450e47651885ed103d3217dbedec484456d07
[ "MIT" ]
3
2021-05-14T12:42:45.000Z
2021-11-03T13:59:35.000Z
from flask import Flask from . import api, web app = Flask( __name__, static_url_path='/assets', static_folder='static', template_folder='templates') app.config['SECRET_KEY'] = 'secret' # this is fine if running locally app.register_blueprint(api.bp) app.register_blueprint(web.bp)
21.5
69
0.727575
42
301
4.952381
0.619048
0.105769
0.192308
0
0
0
0
0
0
0
0
0
0.156146
301
13
70
23.153846
0.818898
0.10299
0
0
0
0
0.141791
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a02fb2c2b4704100904e5c350689ed0f4307574
822
py
Python
sh/our_overfit.py
Kaktusava/Vis-MVSNet
a7ff5e6fb77d9657cf5a349c22b418be9a964b07
[ "MIT" ]
null
null
null
sh/our_overfit.py
Kaktusava/Vis-MVSNet
a7ff5e6fb77d9657cf5a349c22b418be9a964b07
[ "MIT" ]
null
null
null
sh/our_overfit.py
Kaktusava/Vis-MVSNet
a7ff5e6fb77d9657cf5a349c22b418be9a964b07
[ "MIT" ]
null
null
null
import os import json import argparse parser = argparse.ArgumentParser() parser.add_argument('machine', type=str) args = parser.parse_args() with open('sh/dir.json') as f: d = json.load(f) d = d[args.machine] cmd = f"""{d['train_environ']} python train.py --num_workers 4 --data_root /sk3d --list_d...
22.833333
64
0.667883
125
822
4.2
0.632
0.011429
0.068571
0.106667
0.125714
0
0
0
0
0
0
0.047976
0.188564
822
36
64
22.833333
0.73913
0.075426
0
0
0
0
0.640316
0.088274
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a0502bdd28fb9f2ebc07df836573f49bb16238b
2,291
py
Python
allennlp/commands/test_install.py
MaxMotovilov/allennlp
d4ee5db1c630d6c631a828ee12fcbf6154de288c
[ "Apache-2.0" ]
21
2019-03-11T13:39:05.000Z
2021-11-02T11:43:32.000Z
allennlp/commands/test_install.py
MaxMotovilov/allennlp
d4ee5db1c630d6c631a828ee12fcbf6154de288c
[ "Apache-2.0" ]
8
2020-01-28T22:40:24.000Z
2021-08-25T15:30:18.000Z
allennlp/commands/test_install.py
MaxMotovilov/allennlp
d4ee5db1c630d6c631a828ee12fcbf6154de288c
[ "Apache-2.0" ]
4
2019-11-04T07:21:49.000Z
2022-03-01T14:59:14.000Z
""" The ``test-install`` subcommand verifies an installation by running the unit tests. .. code-block:: bash $ allennlp test-install --help usage: allennlp test-install [-h] [--run-all] [--include-package INCLUDE_PACKAGE] Test that installation works by running the unit t...
34.19403
102
0.659974
282
2,291
5.212766
0.421986
0.02449
0.032653
0.032653
0.206122
0.191837
0.163265
0.163265
0.163265
0.10068
0
0
0.250982
2,291
66
103
34.712121
0.856643
0.372763
0
0
0
0
0.206171
0
0
0
0
0.015152
0
1
0.09375
false
0
0.21875
0.03125
0.40625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8a0ab564200df29afbdc69a0f0ccc7c4216667fc
4,403
py
Python
kolla_ansible/cmd/genpwd.py
w-miller/kolla-ansible
97dcee4c98a63d4b1656a3c813a2f021395a95f1
[ "Apache-2.0" ]
null
null
null
kolla_ansible/cmd/genpwd.py
w-miller/kolla-ansible
97dcee4c98a63d4b1656a3c813a2f021395a95f1
[ "Apache-2.0" ]
null
null
null
kolla_ansible/cmd/genpwd.py
w-miller/kolla-ansible
97dcee4c98a63d4b1656a3c813a2f021395a95f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
33.105263
78
0.621167
538
4,403
4.890335
0.407063
0.026606
0.022805
0.021665
0.051691
0.041049
0.041049
0.041049
0.041049
0.041049
0
0.011783
0.28685
4,403
132
79
33.356061
0.826115
0.199182
0
0.086957
0
0
0.115835
0.027104
0
0
0
0
0
1
0.021739
false
0.163043
0.141304
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a0b1663ba94fba7ba4f596b967cb9841b305feb
4,416
py
Python
sympy/physics/vector/tests/test_dyadic.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/physics/vector/tests/test_dyadic.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/physics/vector/tests/test_dyadic.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
from sympy.core.numbers import (Float, pi) from sympy.core.symbol import symbols from sympy.functions.elementary.trigonometric import (cos, sin) from sympy.matrices.immutable import ImmutableDenseMatrix as Matrix from sympy.physics.vector import ReferenceFrame, Vector, dynamicsymbols, outer from sympy.physics.vect...
35.328
80
0.458786
771
4,416
2.600519
0.120623
0.02793
0.02394
0.025935
0.258853
0.165586
0.108229
0.074813
0.038903
0.028928
0
0.059516
0.32654
4,416
124
81
35.612903
0.61466
0
0
0.057143
0
0
0.021435
0
0
0
0
0
0.409524
1
0.057143
false
0
0.066667
0
0.12381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
8a0f10c6d0aa06a0df4054dc9fe232253ccd4ec8
7,863
py
Python
examples/pysocks_proxy.py
thepeshka/imap_tools
ed33a12c9fa29377dc24e02881ad2c71ba29f7bf
[ "Apache-2.0" ]
null
null
null
examples/pysocks_proxy.py
thepeshka/imap_tools
ed33a12c9fa29377dc24e02881ad2c71ba29f7bf
[ "Apache-2.0" ]
null
null
null
examples/pysocks_proxy.py
thepeshka/imap_tools
ed33a12c9fa29377dc24e02881ad2c71ba29f7bf
[ "Apache-2.0" ]
null
null
null
""" MailBox traffic through proxy servers using https://github.com/Anorov/PySocks THIS EXAMPLE ARE NOT CHECKED PLEASE, LET ME KNOW ABOUT TEST RESULTS! """ import ssl import socks from imaplib import IMAP4 from imap_tools import BaseMailBox, MailBoxUnencrypted class Imap4Proxy(IMAP4): def __init__(self, ...
39.512563
112
0.607783
979
7,863
4.409602
0.135853
0.140375
0.09729
0.024091
0.705119
0.624739
0.624739
0.597869
0.580727
0.575168
0
0.008613
0.320743
7,863
198
113
39.712121
0.799663
0.039807
0
0.662722
0
0
0.033732
0
0
0
0
0
0
1
0.053254
false
0.076923
0.029586
0.017751
0.130178
0.005917
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a1291a5bc06127218ab6207c7373f807ed96ca3
19,326
py
Python
venv/lib/python3.9/site-packages/google/_async_resumable_media/requests/upload.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
2
2021-09-17T10:55:14.000Z
2021-09-17T10:55:38.000Z
venv/lib/python3.9/site-packages/google/_async_resumable_media/requests/upload.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
1
2021-02-23T12:40:08.000Z
2021-02-23T12:40:08.000Z
venv/lib/python3.9/site-packages/google/_async_resumable_media/requests/upload.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
1
2021-05-31T18:23:02.000Z
2021-05-31T18:23:02.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.453488
81
0.626669
2,308
19,326
5.140381
0.169411
0.014413
0.013655
0.008092
0.551585
0.518712
0.496628
0.478085
0.463082
0.463082
0
0.00586
0.293542
19,326
515
82
37.526214
0.863107
0.409966
0
0.712871
0
0
0
0
0
0
0
0
0
1
0
false
0
0.019802
0
0.09901
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a133e4ba85e62e8fdd96e1379f15368046d0d95
12,841
py
Python
src/lib/opts.py
standard-ai/FairMOT
72bbb0ca4eac4bf7791927b7b5ae74c9cf758e31
[ "MIT" ]
null
null
null
src/lib/opts.py
standard-ai/FairMOT
72bbb0ca4eac4bf7791927b7b5ae74c9cf758e31
[ "MIT" ]
null
null
null
src/lib/opts.py
standard-ai/FairMOT
72bbb0ca4eac4bf7791927b7b5ae74c9cf758e31
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import sys class opts(object): def __init__(self): self.parser = argparse.ArgumentParser() # basic experiment setting self.parser.add_argument('task', default='mot', hel...
50.956349
110
0.590686
1,662
12,841
4.381468
0.197954
0.097501
0.121395
0.1961
0.329305
0.142269
0.085416
0.040648
0.040648
0.022521
0
0.023063
0.277393
12,841
251
111
51.159363
0.76172
0.02749
0
0.023585
0
0
0.261508
0.003689
0
0
0
0
0.004717
1
0.023585
false
0
0.028302
0
0.075472
0.033019
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a139a14110c29531a4a9d0d99dbedef26a416c4
1,712
py
Python
certbot/compat/os.py
sharpmind-de/certbot
ecaaf75ce87d22db1e03c14ea58ae9b657a6fb4f
[ "Apache-2.0" ]
4
2020-04-04T19:08:35.000Z
2020-07-03T04:57:18.000Z
certbot/compat/os.py
sharpmind-de/certbot
ecaaf75ce87d22db1e03c14ea58ae9b657a6fb4f
[ "Apache-2.0" ]
null
null
null
certbot/compat/os.py
sharpmind-de/certbot
ecaaf75ce87d22db1e03c14ea58ae9b657a6fb4f
[ "Apache-2.0" ]
null
null
null
""" This compat modules is a wrapper of the core os module that forbids usage of specific operations (e.g. chown, chmod, getuid) that would be harmful to the Windows file security model of Certbot. This module is intended to replace standard os module throughout certbot projects (except acme). """ from __future__ impor...
53.5
128
0.76986
271
1,712
4.741697
0.439114
0.04358
0.028016
0.023346
0.035798
0
0
0
0
0
0
0.000702
0.16764
1,712
31
129
55.225806
0.901053
0.764603
0
0
0
0
0.013123
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8a142fa330a59826f80ba1c95656d2325d9226ee
1,923
py
Python
nh_printing_press/nh_printing_press/report/digital_room/digital_room.py
littlehera/nh_printing_press
edc981bb0aa183d8a6344455f8134fadcefe6d36
[ "MIT" ]
null
null
null
nh_printing_press/nh_printing_press/report/digital_room/digital_room.py
littlehera/nh_printing_press
edc981bb0aa183d8a6344455f8134fadcefe6d36
[ "MIT" ]
null
null
null
nh_printing_press/nh_printing_press/report/digital_room/digital_room.py
littlehera/nh_printing_press
edc981bb0aa183d8a6344455f8134fadcefe6d36
[ "MIT" ]
null
null
null
# Copyright (c) 2013, creamdory and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe def execute(filters=None): columns = [ {"label": "Work Docket No", 'width': 200, "fieldname": "work_docket"}, {"label": "Transaction Date", 'width': 200, "field...
33.736842
111
0.648466
252
1,923
4.785714
0.34127
0.058043
0.042289
0.031509
0.126036
0.06136
0.06136
0
0
0
0
0.020807
0.175247
1,923
56
112
34.339286
0.739596
0.217889
0
0
0
0.027778
0.434025
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a143040f0bd596bc3dbada8ebdeec05dbb3f15a
560
py
Python
math/variables/variable.py
ginnyTheCat/Simalia
2d0b26d0f413d16d6a7cb62aa9612d9f346c6fbb
[ "MIT" ]
null
null
null
math/variables/variable.py
ginnyTheCat/Simalia
2d0b26d0f413d16d6a7cb62aa9612d9f346c6fbb
[ "MIT" ]
null
null
null
math/variables/variable.py
ginnyTheCat/Simalia
2d0b26d0f413d16d6a7cb62aa9612d9f346c6fbb
[ "MIT" ]
null
null
null
from simalia.math.calcable import Calcable class Variable(Calcable): def __init__(self, key, val=None, insert=True): super().__init__(False) self.key = key self._val = val self.insert = insert def __str__(self): return self.key @property def val(self): ...
20
51
0.578571
72
560
4.291667
0.375
0.113269
0.064725
0.12945
0
0
0
0
0
0
0
0
0.326786
560
27
52
20.740741
0.819629
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.05
0.05
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8a17f6f502dd76389433e0c92b332a6386f8ed2a
3,434
py
Python
test/test_restrequest.py
robertchase/spindrift
e1ee59fd6822558cc47738d3221815064117457c
[ "MIT" ]
1
2020-09-21T19:51:22.000Z
2020-09-21T19:51:22.000Z
test/test_restrequest.py
robertchase/spindrift
e1ee59fd6822558cc47738d3221815064117457c
[ "MIT" ]
null
null
null
test/test_restrequest.py
robertchase/spindrift
e1ee59fd6822558cc47738d3221815064117457c
[ "MIT" ]
null
null
null
import spindrift.http as http import spindrift.rest.request as request class MockHandler(object): def __init__(self, kwargs): self.id = 0 try: http.HTTPHandler._setup(self) except Exception: pass for n, v in kwargs.items(): setattr(self, n, v) ...
22.154839
79
0.654339
494
3,434
4.236842
0.1417
0.060201
0.068323
0.051601
0.496417
0.40086
0.314381
0.301959
0.275203
0.26947
0
0.01127
0.224811
3,434
154
80
22.298701
0.774981
0
0
0.307692
0
0
0.026209
0
0
0
0
0
0.173077
1
0.25
false
0.009615
0.019231
0.009615
0.288462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8a1a29920c73c110c6d31a0ce93f0d3842fadf2d
11,220
py
Python
pkgs/ops-pkg/src/genie/libs/ops/msdp/iosxr/msdp.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/ops-pkg/src/genie/libs/ops/msdp/iosxr/msdp.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/ops-pkg/src/genie/libs/ops/msdp/iosxr/msdp.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
# super class from genie.libs.ops.msdp.msdp import Msdp as SuperMsdp # iosxr show msdp from genie.libs.parser.iosxr.show_vrf import ShowVrfAllDetail from genie.libs.parser.iosxr.show_msdp import ShowMsdpPeer,\ ShowMsdpContext, \ ...
42.022472
114
0.390285
946
11,220
4.390063
0.153277
0.016374
0.045028
0.057308
0.481339
0.424031
0.389357
0.33229
0.2379
0.188298
0
0.000737
0.516043
11,220
267
115
42.022472
0.764088
0.212656
0
0.402985
0
0
0.140247
0.066564
0
0
0
0
0
1
0.022388
false
0
0.022388
0
0.067164
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a1a96e528b2debeaba4993cc8c71e84327ca82a
927
py
Python
InterviewBit/Trees/min_depth_binary_tree.py
codervikash/online-courses
a60efad23af65080a98e7dd038fb2c750237b781
[ "MIT" ]
null
null
null
InterviewBit/Trees/min_depth_binary_tree.py
codervikash/online-courses
a60efad23af65080a98e7dd038fb2c750237b781
[ "MIT" ]
null
null
null
InterviewBit/Trees/min_depth_binary_tree.py
codervikash/online-courses
a60efad23af65080a98e7dd038fb2c750237b781
[ "MIT" ]
null
null
null
""" Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. NOTE : The path has to end on a leaf node. Example : 1 / 2 min depth = 2. """ # Definition for a binary tree node # class Tree...
22.071429
114
0.576052
139
927
3.81295
0.402878
0.056604
0.090566
0.033962
0.177358
0.09434
0
0
0
0
0
0.013158
0.344121
927
41
115
22.609756
0.858553
0.496224
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8a1ac6a6b25b11a2eab57665e3667d2ff5187f72
3,605
py
Python
src/genie/libs/parser/ios/asr901/tests/ShowInventory/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/ios/asr901/tests/ShowInventory/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/ios/asr901/tests/ShowInventory/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "main": { "chassis": { "name": { "descr": "A901-6CZ-FT-A Chassis", "name": "A901-6CZ-FT-A Chassis", "pid": "A901-6CZ-FT-A", "sn": "CAT2342U1S6", "vid": "V04 " } } }, "s...
31.622807
72
0.282108
240
3,605
4.233333
0.245833
0.068898
0.088583
0.098425
0.447835
0.431102
0.431102
0.234252
0.234252
0.234252
0
0.107562
0.57448
3,605
114
73
31.622807
0.554759
0
0
0.429825
0
0
0.310871
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
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a2101bd4edb65a1a8612e049e73b27a1fd2a1f1
476
py
Python
hackerrank/Algorithms/Service Lane/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerrank/Algorithms/Service Lane/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerrank/Algorithms/Service Lane/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
import unittest import solution class TestQ(unittest.TestCase): def test_case_0(self): self.assertEqual(solution.serviceLane([2, 3, 1, 2, 3, 2, 3, 3], [[0, 3], [4, 6], [6, 7], [3, 5], [0, 7]]), [1, 2, 3, 2, 1]) def test_case_1(self): self.assertEqual(solution.service...
26.444444
114
0.485294
74
476
2.959459
0.310811
0.054795
0.041096
0.246575
0.347032
0
0
0
0
0
0
0.134731
0.298319
476
17
115
28
0.520958
0
0
0
0
0
0.016807
0
0
0
0
0
0.181818
1
0.181818
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a22676f2c9c0d2762df1918ac473cded60ceabf
804
py
Python
spark_auto_mapper_fhir/value_sets/v2_0136.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/v2_0136.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/v2_0136.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
32.16
84
0.758706
107
804
5.448598
0.542056
0.051458
0.066895
0.09777
0.259005
0.180103
0.180103
0
0
0
0
0.052863
0.152985
804
24
85
33.5
0.803231
0.31592
0
0
0
0
0.092275
0
0
0
0
0
0
1
0.125
false
0
0.5
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8a22ea3c7513d92895cdfbaa24255d0927fda855
1,302
py
Python
examples/demo/python/scenario-04.py
BBVA/MIST
3821ccd089e78cefe78282ac7297a6b4882cc53c
[ "Apache-2.0" ]
13
2021-03-09T15:34:37.000Z
2021-07-27T21:21:24.000Z
examples/demo/python/scenario-04.py
BBVA/MIST
3821ccd089e78cefe78282ac7297a6b4882cc53c
[ "Apache-2.0" ]
12
2020-10-16T10:17:22.000Z
2020-10-20T12:28:17.000Z
examples/demo/python/scenario-04.py
cr0hn/mist
3821ccd089e78cefe78282ac7297a6b4882cc53c
[ "Apache-2.0" ]
3
2021-04-23T17:09:27.000Z
2021-06-23T02:22:56.000Z
import sys, asyncio, os from catalog import searchDomains, findOpenPorts, kafkaProducer, festin, filterRepeated, S3Store, S3Write from aux import consumer, producer async def dispatcher(p, kafkaQ, S3Q): if p["port"] == "80": await kafkaQ.put(p) else: await S3Q.put(p) async def main(): task...
38.294118
121
0.722734
153
1,302
6.084967
0.372549
0.082707
0.135338
0.180451
0.296455
0.296455
0
0
0
0
0
0.020665
0.145161
1,302
33
122
39.454545
0.815813
0
0
0
0
0
0.043011
0
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a23ab9c0bd014c550fbf25457d1d8b6c65b086b
1,412
py
Python
MCweb/MCwebDjango/mcwebapp/urls.py
magnarch/dissertation
68b56554dd5a14e97ff1c0338e2d0ae7309fde1c
[ "MIT" ]
null
null
null
MCweb/MCwebDjango/mcwebapp/urls.py
magnarch/dissertation
68b56554dd5a14e97ff1c0338e2d0ae7309fde1c
[ "MIT" ]
2
2020-02-12T00:20:40.000Z
2020-06-05T20:57:42.000Z
MCweb/MCwebDjango/mcwebapp/urls.py
magnarch/minicooper
68b56554dd5a14e97ff1c0338e2d0ae7309fde1c
[ "MIT" ]
null
null
null
from django.urls import path from . import views from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from registration.backends.simple.views import RegistrationView from django.conf.urls import include from django.contrib.au...
42.787879
94
0.73796
173
1,412
5.861272
0.375723
0.069034
0.04142
0.039448
0.13215
0.084813
0
0
0
0
0
0
0.139518
1,412
32
95
44.125
0.834568
0.106941
0
0
0
0
0.252983
0.089897
0
0
0
0
0
1
0.041667
false
0
0.375
0.041667
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8a2b5a1911e96e6caf9b2233e8a0b41ccb8a64a9
9,144
py
Python
django-openstack/django_openstack/dash/views/networks.py
ohnoimdead/horizon
68aababda6ce0f94f38e7839fb6731790da617d8
[ "Apache-2.0" ]
2
2015-05-18T13:50:20.000Z
2015-05-18T14:47:10.000Z
django-openstack/django_openstack/dash/views/networks.py
daniel-hou0/horizon
5c34ae688f5a0ab20c21ceb2da003245d56b1bf2
[ "Apache-2.0" ]
null
null
null
django-openstack/django_openstack/dash/views/networks.py
daniel-hou0/horizon
5c34ae688f5a0ab20c21ceb2da003245d56b1bf2
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2011 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
36.142292
79
0.637795
1,038
9,144
5.436416
0.199422
0.027113
0.026936
0.02729
0.448698
0.401205
0.374269
0.345384
0.262626
0.209463
0
0.003096
0.258093
9,144
252
80
36.285714
0.828715
0.110346
0
0.37931
0
0
0.140061
0.025638
0
0
0
0
0
0
null
null
0
0.086207
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a2c7cc677d78d5678f60a4a6bf62a1c948ab79a
59,700
py
Python
core/src/autogluon/core/models/abstract/abstract_model.py
driimus/autogluon
c377908da22ff8794b68247f623cc678953eab48
[ "Apache-2.0" ]
null
null
null
core/src/autogluon/core/models/abstract/abstract_model.py
driimus/autogluon
c377908da22ff8794b68247f623cc678953eab48
[ "Apache-2.0" ]
null
null
null
core/src/autogluon/core/models/abstract/abstract_model.py
driimus/autogluon
c377908da22ff8794b68247f623cc678953eab48
[ "Apache-2.0" ]
null
null
null
import copy import gc import inspect import logging import os import pickle import sys import time import warnings from typing import Union import numpy as np import pandas as pd from ._tags import _DEFAULT_TAGS from .model_trial import model_trial from ... import metrics, Space from ...constants import AG_ARGS_FIT, ...
51.958225
228
0.669916
7,857
59,700
4.890798
0.124348
0.012882
0.008327
0.004996
0.282926
0.200718
0.164728
0.134463
0.123897
0.115049
0
0.003158
0.257521
59,700
1,148
229
52.003484
0.863759
0.378861
0
0.167151
0
0.005814
0.086188
0.010667
0
0
0
0.017422
0.002907
1
0.094477
false
0.002907
0.0625
0.00436
0.247093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8a2ca67b6f1ce1e260bff42dd1b542100513999c
728
py
Python
scripts/npc/Gachapierrot.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/npc/Gachapierrot.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/npc/Gachapierrot.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# The Great Gachapierrot from net.swordie.ms.world.gach.result import GachaponDlgType answer = sm.sendNext("Try out the new and improved Great Gachapierrot! Which service would you like to use ?\r\n#b#L0#Use a Gachapon Ticket.#l\r\n#L1#Use a Chair Gachapon Ticket.#l\r\n#L2#Nebulite Gachapon Ticket Exchange.#l\r\n#L3#...
42.823529
316
0.760989
110
728
5.036364
0.518182
0.018051
0.288809
0.057762
0.061372
0
0
0
0
0
0
0.015699
0.125
728
16
317
45.5
0.854003
0.03022
0
0
0
0.083333
0.414773
0.106534
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a2d41f93cfa879f10a238796e66ec44b1c11e65
744
py
Python
api/src/opentrons/file_runner/__init__.py
Corey-ONeal/opentrons-app_ws-remote
a255b76c8a07457787d575da12b2d5bdb6220a91
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/file_runner/__init__.py
Corey-ONeal/opentrons-app_ws-remote
a255b76c8a07457787d575da12b2d5bdb6220a91
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/file_runner/__init__.py
Corey-ONeal/opentrons-app_ws-remote
a255b76c8a07457787d575da12b2d5bdb6220a91
[ "Apache-2.0" ]
null
null
null
"""Protocol file runner module. This module is responsible for logic that interprets different types of protocol files in order to execute their logic. Primary responsibilities of this module are: - Extract metadata from protocol files - Translate protocol file commands into ProtocolEngine commands - Dispatch Protoco...
28.615385
64
0.794355
82
744
7.073171
0.573171
0.068966
0.082759
0
0
0
0
0
0
0
0
0
0.155914
744
25
65
29.76
0.923567
0.521505
0
0
0
0
0.218391
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8a305a7c1c93d1153fbd42496fd65ce9e9b1f1c8
1,085
py
Python
pysc2/my_agent/test_for_gradient.py
pangzhenjia/pysc2-source
11fa17734191e57695d50d64794547536b61f88b
[ "Apache-2.0" ]
2
2017-12-13T04:36:41.000Z
2018-10-03T03:52:13.000Z
pysc2/my_agent/test_for_gradient.py
pangzhenjia/pysc2-source
11fa17734191e57695d50d64794547536b61f88b
[ "Apache-2.0" ]
null
null
null
pysc2/my_agent/test_for_gradient.py
pangzhenjia/pysc2-source
11fa17734191e57695d50d64794547536b61f88b
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np import pysc2.my_agent.layer as layer import pysc2.my_agent.agent_network as Network if __name__ == "__main__": # with tf.name_scope('some_scope1'): # a = tf.Variable(111, 'a') # b = tf.Variable(222, 'b') # c = tf.Variable(333, 'c') # # wit...
29.324324
84
0.617512
151
1,085
4.192053
0.417219
0.110585
0.061611
0.056872
0.218009
0.157978
0.157978
0.157978
0.157978
0
0
0.03125
0.23318
1,085
36
85
30.138889
0.729567
0.601843
0
0
0
0
0.019704
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8a31e2fd23c2858f1c2670cf937530241c66451b
889
py
Python
ai_challenge/test_ssh_conn.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
72
2017-05-22T18:22:58.000Z
2019-03-11T22:49:00.000Z
ai_challenge/test_ssh_conn.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
1
2017-06-09T05:26:43.000Z
2017-08-22T11:41:41.000Z
ai_challenge/test_ssh_conn.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
3
2017-05-25T08:49:27.000Z
2019-09-09T18:41:54.000Z
# Village People, 2017 from pexpect import pxssh import time PATH = 'Documents/Malmo-0.21.0-Linux-Ubuntu-16.04-64bit_withBoost/Minecraft/' def get_session(ip, user, password): s = pxssh.pxssh() if not s.login(ip, user, password): print("SSH session failed on login.") print(str(s)) else: ...
25.4
77
0.616423
121
889
4.421488
0.61157
0.037383
0.052336
0
0
0
0
0
0
0
0
0.066964
0.244094
889
35
78
25.4
0.729167
0.053993
0
0
0
0.04
0.258641
0.081049
0
0
0
0
0
1
0.08
false
0.08
0.08
0
0.2
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a3321f58899686aceb2cb0647315881c0ca73bb
659
py
Python
services/catalog/src/simcore_service_catalog/models/domain/dag.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
null
null
null
services/catalog/src/simcore_service_catalog/models/domain/dag.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
null
null
null
services/catalog/src/simcore_service_catalog/models/domain/dag.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
null
null
null
from typing import Dict, Optional from models_library.projects import KEY_RE, VERSION_RE, Node from pydantic import BaseModel, EmailStr, Field, Json class DAGBase(BaseModel): key: str = Field( ..., regex=KEY_RE, example="simcore/services/frontend/nodes-group/macros/1" ) version: str = Field(..., ...
24.407407
83
0.694992
84
659
5.380952
0.547619
0.022124
0.057522
0
0
0
0
0
0
0
0
0.007491
0.189681
659
26
84
25.346154
0.838951
0.057663
0
0
0
0
0.082391
0.074313
0
0
0
0
0
1
0
false
0
0.166667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8a37d202b73d4023e375911e6e69166887e2444f
11,745
py
Python
ChexnetTrainer.py
Holmeswww/CheXNetPP
8d5801729e4a65284b26b0dd6cdf1d597be8d038
[ "MIT" ]
null
null
null
ChexnetTrainer.py
Holmeswww/CheXNetPP
8d5801729e4a65284b26b0dd6cdf1d597be8d038
[ "MIT" ]
null
null
null
ChexnetTrainer.py
Holmeswww/CheXNetPP
8d5801729e4a65284b26b0dd6cdf1d597be8d038
[ "MIT" ]
null
null
null
import os import numpy as np import time import sys import torch import torch.nn as nn import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import torch.optim as optim import torch.nn.functional as tfunc from torch.utils.data import DataLoader from torch.optim.lr_schedule...
44.488636
181
0.587399
1,078
11,745
6.366419
0.25974
0.013988
0.029579
0.007577
0.420807
0.373889
0.362232
0.349993
0.316188
0.316188
0
0.018527
0.260111
11,745
263
182
44.657795
0.771231
0.236356
0
0.198473
0
0
0.041942
0
0
0
0
0
0
0
null
null
0
0.145038
null
null
0.030534
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a38bea1cd752069cb925f8053929e50fdde8184
10,668
py
Python
main.py
alaxa27/NetworkSimulator
00753b7ad2150691d4c246f8e567d3dd778687cb
[ "BSD-2-Clause" ]
1
2016-03-10T16:38:40.000Z
2016-03-10T16:38:40.000Z
main.py
alaxa27/NetworkSimulator
00753b7ad2150691d4c246f8e567d3dd778687cb
[ "BSD-2-Clause" ]
null
null
null
main.py
alaxa27/NetworkSimulator
00753b7ad2150691d4c246f8e567d3dd778687cb
[ "BSD-2-Clause" ]
1
2021-03-07T20:48:44.000Z
2021-03-07T20:48:44.000Z
#!/usr/bin/python import time import gtk from utils import Map import utils import numpy as np import time import pickle import pygame from Simulation import Simulation class NetworkSimulator(gtk.Window): def __init__(self): super(NetworkSimulator, self).__init__() self.set_size_requ...
34.302251
113
0.503
1,232
10,668
4.216721
0.188312
0.038114
0.029644
0.040231
0.300866
0.223099
0.14283
0.13359
0.126275
0.126275
0
0.027624
0.341676
10,668
310
114
34.412903
0.712089
0.04865
0
0.227074
0
0
0.061594
0
0
0
0
0
0
0
null
null
0
0.039301
null
null
0.039301
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a40ed6ef106ccb3695720f3a5c473189f42e7f6
5,242
py
Python
corehq/motech/openmrs/models.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/motech/openmrs/models.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/motech/openmrs/models.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
import re from datetime import datetime from functools import partial from memoized import memoized from dimagi.ext.couchdbkit import ( DictProperty, Document, DocumentSchema, IntegerProperty, ListProperty, StringProperty, ) from corehq.motech.const import ( COMMCARE_DATA_TYPE_DATE, C...
34.261438
113
0.712705
628
5,242
5.700637
0.302548
0.037989
0.035754
0.030168
0.09162
0.068715
0.030726
0.030726
0.030726
0.030726
0
0.002419
0.21137
5,242
152
114
34.486842
0.86357
0.278901
0
0.02
0
0
0.013408
0.006972
0
0
0
0.006579
0
1
0.05
false
0.01
0.19
0.01
0.53
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8a40ffe880d7d5a699ea7e2e869ce65e5cbc4396
434
py
Python
TestScreen/testScreenTutorial.py
CescFT/sportLog
bdb08cd46178e5dbe6d0d98c0a32ec34423a9a83
[ "MIT" ]
1
2021-01-02T23:00:47.000Z
2021-01-02T23:00:47.000Z
TestScreen/testScreenTutorial.py
CescFT/sportLog
bdb08cd46178e5dbe6d0d98c0a32ec34423a9a83
[ "MIT" ]
null
null
null
TestScreen/testScreenTutorial.py
CescFT/sportLog
bdb08cd46178e5dbe6d0d98c0a32ec34423a9a83
[ "MIT" ]
null
null
null
import tkinter as tk def getText(event): print(event.widget.get()) def generateWindow(): window = tk.Tk() greetings = tk.Label(text="Test test test label") greetings.pack() button = tk.Button(text="Click me") button.pack() inputUsr = tk.Entry(width=50) inputUsr.bind("<Return>", getText...
21.7
53
0.647465
53
434
5.150943
0.584906
0.058608
0
0
0
0
0
0
0
0
0
0.00578
0.202765
434
20
54
21.7
0.783237
0
0
0
1
0
0.101149
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.1875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a424ce0e9ad6516c991015250f8241326e0264f
68,861
py
Python
python/ccxt/bitvavo.py
ParikhKadam/ccxt
73a2e4eefbdb56669af46b1752722c395d47b33c
[ "MIT" ]
null
null
null
python/ccxt/bitvavo.py
ParikhKadam/ccxt
73a2e4eefbdb56669af46b1752722c395d47b33c
[ "MIT" ]
null
null
null
python/ccxt/bitvavo.py
ParikhKadam/ccxt
73a2e4eefbdb56669af46b1752722c395d47b33c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from cc...
44.113389
340
0.501474
6,011
68,861
5.689735
0.165696
0.024795
0.021286
0.010292
0.425046
0.381889
0.347826
0.307476
0.268589
0.235315
0
0.07039
0.377572
68,861
1,560
341
44.141667
0.727561
0.341819
0
0.273224
1
0.001093
0.123906
0.008997
0
0
0
0
0
1
0.04153
false
0
0.020765
0.004372
0.106011
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a4c953067cb56dc2624fca2485e3ec865ea8d30
12,824
py
Python
sdk/python/pulumi_azure_nextgen/aad/latest/get_domain_service.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/aad/latest/get_domain_service.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/aad/latest/get_domain_service.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
38.743202
424
0.662274
1,424
12,824
5.669944
0.129213
0.015606
0.041615
0.078028
0.27347
0.137726
0.084097
0.063042
0.025762
0.025762
0
0.000924
0.240175
12,824
330
425
38.860606
0.827689
0.079928
0
0.130631
1
0.009009
0.201154
0.06646
0
0
0
0
0
1
0.108108
false
0
0.027027
0
0.247748
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a4ef899f19ed9aba34d1fb283a2bc0c589ab4fd
3,806
py
Python
wheelchair/python/vibrate_rotation_excess0.py
ctsai-1/wheelchair-design-platform
b6f770b2cccdd68d33cb3be44a5d6e893b2fc0fa
[ "MIT" ]
null
null
null
wheelchair/python/vibrate_rotation_excess0.py
ctsai-1/wheelchair-design-platform
b6f770b2cccdd68d33cb3be44a5d6e893b2fc0fa
[ "MIT" ]
null
null
null
wheelchair/python/vibrate_rotation_excess0.py
ctsai-1/wheelchair-design-platform
b6f770b2cccdd68d33cb3be44a5d6e893b2fc0fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # In this example, we connect to a GATT service 'rotation' on the wheel, sending # the rotation count over time. When we reach the recommended number of rotation, # we send a command to the Arduino to turn on the vibration motors. # Import required library import pygatt # To access BLE GATT su...
31.983193
84
0.705991
537
3,806
4.836127
0.327747
0.075472
0.040431
0.015017
0.112437
0.028494
0.028494
0.028494
0
0
0
0.022186
0.194693
3,806
118
85
32.254237
0.825122
0.333946
0
0.109091
0
0
0.07316
0.016158
0
0
0
0
0
0
null
null
0
0.145455
null
null
0.163636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a51ea5b2e6d46e413735840427993135ca824fd
6,729
py
Python
tests/components/sonos/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2021-11-22T22:37:43.000Z
2022-03-17T00:55:28.000Z
tests/components/sonos/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
25
2021-11-24T06:24:10.000Z
2022-03-31T06:23:06.000Z
tests/components/sonos/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2022-01-02T18:49:54.000Z
2022-01-25T02:03:54.000Z
"""Tests for the Sonos battery sensor platform.""" from unittest.mock import PropertyMock from soco.exceptions import NotSupportedException from homeassistant.components.sensor import SCAN_INTERVAL from homeassistant.components.sonos.binary_sensor import ATTR_BATTERY_POWER_SOURCE from homeassistant.const import STATE...
37.176796
86
0.78288
920
6,729
5.373913
0.147826
0.067961
0.066748
0.043689
0.743325
0.714806
0.623786
0.552387
0.510113
0.489482
0
0.001733
0.142369
6,729
180
87
37.383333
0.854964
0.039976
0
0.548673
0
0
0.090833
0.060833
0
0
0
0
0.221239
1
0
false
0
0.070796
0
0.070796
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a5a99317aadf38e2b9f43127a22e023d7a0f755
18,304
py
Python
python/ccxt/coinegg.py
lottaeouss/ccxt
694fd3dc30154057f6c2310920552329df973031
[ "MIT" ]
2
2021-06-04T09:51:35.000Z
2022-03-15T03:22:48.000Z
python/ccxt/coinegg.py
lottaeouss/ccxt
694fd3dc30154057f6c2310920552329df973031
[ "MIT" ]
7
2021-01-29T08:13:03.000Z
2021-04-19T06:42:19.000Z
python/ccxt/coinegg.py
lottaeouss/ccxt
694fd3dc30154057f6c2310920552329df973031
[ "MIT" ]
4
2020-06-17T19:46:32.000Z
2021-09-30T13:59:21.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestri...
38.133333
163
0.456294
1,603
18,304
5.159077
0.262009
0.019347
0.020435
0.017412
0.188634
0.136759
0.11971
0.1052
0.09468
0.086941
0
0.026992
0.402917
18,304
479
164
38.212944
0.729618
0.043269
0
0.207207
1
0.002252
0.156493
0.014403
0.002252
0
0
0
0
1
0.038288
false
0
0.022523
0.004505
0.11036
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a5aa87e0aaa8f06a139655dbb5dd820f3219bc2
1,034
py
Python
createUSER.py
nejc-novak/kriptonavti
647f59457d8e9642be677b31a959aa68497ac960
[ "MIT" ]
null
null
null
createUSER.py
nejc-novak/kriptonavti
647f59457d8e9642be677b31a959aa68497ac960
[ "MIT" ]
null
null
null
createUSER.py
nejc-novak/kriptonavti
647f59457d8e9642be677b31a959aa68497ac960
[ "MIT" ]
1
2021-05-09T08:05:29.000Z
2021-05-09T08:05:29.000Z
import subprocess, os path = "/home/luka/kriptonavti/data/USER" print("Do you wanna set up user account? [y/n]") answer1 = str(input()) if answer1 == str("y"): try: os.mkdir(path) except: pass with open(path + "/bitcoin.txt","w") as f: f.write("regtest=1\n") f.write("rpcus...
27.945946
94
0.588008
144
1,034
4.222222
0.458333
0.118421
0.126645
0.039474
0
0
0
0
0
0
0
0.037688
0.230174
1,034
37
95
27.945946
0.726131
0
0
0.068966
0
0
0.427053
0.216425
0
0
0
0
0
1
0
false
0.103448
0.034483
0
0.034483
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a5d13750d4387f5d487449f211e2d9491b48ed9
672
py
Python
Day_58/lambda_exp.py
kiranrraj/100Days_Of_Coding
ab75d83be9be87fb7bc83a3f3b72a4638dab22a1
[ "MIT" ]
null
null
null
Day_58/lambda_exp.py
kiranrraj/100Days_Of_Coding
ab75d83be9be87fb7bc83a3f3b72a4638dab22a1
[ "MIT" ]
null
null
null
Day_58/lambda_exp.py
kiranrraj/100Days_Of_Coding
ab75d83be9be87fb7bc83a3f3b72a4638dab22a1
[ "MIT" ]
null
null
null
# Title : Lambda example # Author : Kiran raj R. # Date : 31:10:2020 def higher_o_func(x, func): return x + func(x) result1 = higher_o_func(2, lambda x: x * x) # result1 x = 2, (2*2) + 2, x = 6 result2 = higher_o_func(2, lambda x: x + 3) # result2 x=2, (2 + 3) + 2, x = 7 result3 = higher_o_func(4, lambda x: x*...
17.684211
47
0.58631
129
672
2.976744
0.302326
0.036458
0.143229
0.0625
0.208333
0.208333
0.208333
0
0
0
0
0.108738
0.233631
672
37
48
18.162162
0.636893
0.375
0
0
0
0
0.017199
0
0
0
0
0
0
1
0.166667
false
0
0
0.166667
0.25
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8a69b9d78681ba614a4d70c41e9c71149201d555
903
py
Python
src/tests/ftest/daos_perf/small.py
cibervicho/daos
3868c758c696d0a7973ac2b93b56d986fabfc6e0
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/daos_perf/small.py
cibervicho/daos
3868c758c696d0a7973ac2b93b56d986fabfc6e0
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/daos_perf/small.py
cibervicho/daos
3868c758c696d0a7973ac2b93b56d986fabfc6e0
[ "BSD-2-Clause-Patent" ]
null
null
null
#!/usr/bin/python3 """ (C) Copyright 2019-2022 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ from daos_perf_base import DaosPerfBase class DaosPerf(DaosPerfBase): # pylint: disable=too-many-ancestors """Test cases for the daos_perf command. Test Class Description: Tests...
25.083333
75
0.645626
109
903
5.247706
0.651376
0.097902
0.057692
0
0
0
0
0
0
0
0
0.025602
0.264673
903
35
76
25.8
0.835843
0.700997
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8a6c1b8df8e23814de7dfa48604f1d07bf35f0b5
2,124
py
Python
ldpc_decoder_6_3_unit_tests.py
PaulBryden/hdl_ldpc_decoder
644e10e453b9cba37ee79228bf77c1221520956a
[ "MIT" ]
1
2021-08-01T09:06:31.000Z
2021-08-01T09:06:31.000Z
ldpc_decoder_6_3_unit_tests.py
PaulBryden/hdl_ldpc_decoder
644e10e453b9cba37ee79228bf77c1221520956a
[ "MIT" ]
6
2020-10-09T19:50:12.000Z
2020-10-10T22:43:24.000Z
ldpc_decoder_6_3_unit_tests.py
PaulBryden/hdl_ldpc_decoder
644e10e453b9cba37ee79228bf77c1221520956a
[ "MIT" ]
null
null
null
from nmigen import Elaboratable, Module, Signal, Array, unsigned, Const from nmigen.build import Platform from nmigen.cli import main_parser, main_runner, main from nmigen.back.pysim import Simulator, Delay from nmigen.test import * from src.ldpc_decoder import LDPC_Decoder import unittest def Positive_Test(output, in...
35.4
71
0.641714
270
2,124
4.866667
0.388889
0.173516
0.054795
0.02968
0.111872
0.091324
0.048706
0.048706
0.048706
0
0
0.169459
0.269303
2,124
60
72
35.4
0.677191
0.025424
0
0.061224
0
0
0
0
0
0
0
0
0.061224
1
0.081633
false
0
0.142857
0
0.632653
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8a7363a38fc949726d8da3c41fef39230fbf4470
26,639
py
Python
walle/model/user.py
qman1989/walle-web
740cd3002b717d5469cc57b71f74e2ad5821d14b
[ "Apache-2.0" ]
1
2018-11-26T02:44:42.000Z
2018-11-26T02:44:42.000Z
walle/model/user.py
qman1989/walle-web
740cd3002b717d5469cc57b71f74e2ad5821d14b
[ "Apache-2.0" ]
null
null
null
walle/model/user.py
qman1989/walle-web
740cd3002b717d5469cc57b71f74e2ad5821d14b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: wushuiyong # @Created Time : 日 1/ 1 23:43:12 2017 # @Description: from flask_login import UserMixin from sqlalchemy import String, Integer, DateTime, or_ from werkzeug.security import check_password_hash, generate_password_hash # from flask_cache import Cache ...
29.86435
137
0.567138
3,104
26,639
4.621778
0.105348
0.017148
0.017775
0.010038
0.4266
0.358915
0.320438
0.258539
0.233724
0.206608
0
0.004882
0.307932
26,639
891
138
29.897868
0.77327
0.04591
0
0.297348
0
0
0.060743
0.001121
0
0
0
0.007856
0
0
null
null
0.026515
0.028409
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a73a837532af2d796df8c5354896d372d433fa3
12,414
py
Python
src/students/B05201050.py
batrakeshav10/PythonHomework
e555f1740c6502296bd7f06e8bb40d21d5228a45
[ "MIT" ]
29
2018-11-27T07:31:36.000Z
2022-01-20T04:26:30.000Z
src/students/B05201050.py
batrakeshav10/PythonHomework
e555f1740c6502296bd7f06e8bb40d21d5228a45
[ "MIT" ]
96
2018-11-24T10:38:22.000Z
2020-10-09T17:09:00.000Z
src/students/B05201050.py
batrakeshav10/PythonHomework
e555f1740c6502296bd7f06e8bb40d21d5228a45
[ "MIT" ]
99
2018-11-22T06:53:37.000Z
2020-10-02T19:39:47.000Z
''' This is the sample code from the homework. You shold NOT modify this file. Instead, please copy this file to src/students/<your student ID>.py and edit it there. ''' import os # Define global variables with upper case SRC_PATH = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) TEST_DATA_DIR = os.path.j...
29.486936
79
0.605284
1,756
12,414
4.160023
0.232346
0.013963
0.019576
0.02601
0.113621
0.072553
0.039151
0.01588
0.01588
0.01588
0
0.025354
0.301031
12,414
420
80
29.557143
0.816526
0.548896
0
0.064286
0
0
0.084867
0
0
0
0
0.019048
0.014286
1
0.1
false
0.007143
0.035714
0.014286
0.228571
0.092857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8a76a683bed7b55106a93ed4ad6df1503f5ea58b
2,845
py
Python
MHD/FEniCS/BDMstokes/Stokes.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
3
2020-10-25T13:30:20.000Z
2021-08-10T21:27:30.000Z
MHD/FEniCS/BDMstokes/Stokes.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
null
null
null
MHD/FEniCS/BDMstokes/Stokes.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
3
2019-10-28T16:12:13.000Z
2020-01-13T13:59:44.000Z
import scipy from MatrixOperations import * import os import cProfile from dolfin import * from block import * from block.algebraic.trilinos import * import block.iterative as bat import numpy import scipy.sparse as sps import scipy.io as save MO = MatrixOperations() n = 4 mesh = RectangleMesh(-1, -1, 1, 1, n, n) pa...
21.884615
113
0.625308
474
2,845
3.706751
0.28692
0.081958
0.050085
0.025612
0.228799
0.196927
0.138873
0.099032
0.099032
0.043256
0
0.033857
0.127944
2,845
129
114
22.054264
0.674325
0.239719
0
0.027397
0
0
0.076564
0
0
0
0
0
0
0
null
null
0
0.150685
null
null
0.054795
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a78bf8eb645a0988b757aa5c658ec36485c88e0
490
py
Python
Random from GreyAtom/ProxyInClass.py
bhumikdv/greyatom-python-for-data-science
2463c994f2707579fffcf08c8315a0482db648d5
[ "MIT" ]
null
null
null
Random from GreyAtom/ProxyInClass.py
bhumikdv/greyatom-python-for-data-science
2463c994f2707579fffcf08c8315a0482db648d5
[ "MIT" ]
null
null
null
Random from GreyAtom/ProxyInClass.py
bhumikdv/greyatom-python-for-data-science
2463c994f2707579fffcf08c8315a0482db648d5
[ "MIT" ]
null
null
null
def main(): # Write code here while True: N=int(input()) if 1<=N and N<=100: break List_elements=[] List_elements=[int(x) for x in input().split()] #List_elements.append(element) List_elements.sort() print(List_elements) Absent_students=[] ...
22.272727
52
0.553061
67
490
3.910448
0.477612
0.274809
0.038168
0.053435
0
0
0
0
0
0
0
0.018127
0.32449
490
22
53
22.272727
0.773414
0.091837
0
0
0
0
0.002257
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.066667
0.133333
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a7934cd53b0d6e441d623d73c89dd554310f152
1,909
py
Python
tests/test_extra_durations.py
gabrieldemarmiesse/pytest-extra-durations
70e9a45cee7d74d50e15eb2cb716e5c2558b8471
[ "MIT" ]
4
2020-04-20T11:56:19.000Z
2021-07-20T06:06:44.000Z
tests/test_extra_durations.py
gabrieldemarmiesse/pytest-extra-durations
70e9a45cee7d74d50e15eb2cb716e5c2558b8471
[ "MIT" ]
null
null
null
tests/test_extra_durations.py
gabrieldemarmiesse/pytest-extra-durations
70e9a45cee7d74d50e15eb2cb716e5c2558b8471
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def test_modules_durations(testdir): # create a temporary pytest test module testdir.makepyfile( test_foo=""" def test_sth(): assert 2 + 2 == 4 """ ) # run pytest with the following cmd args result = testdir.runpytest("--modules-durations=2...
24.792208
73
0.604505
237
1,909
4.767932
0.303797
0.095575
0.100885
0.127434
0.629204
0.629204
0.629204
0.629204
0.629204
0.629204
0
0.016094
0.283918
1,909
76
74
25.118421
0.810534
0.223153
0
0.354167
0
0
0.409647
0.098505
0
0
0
0
0.145833
1
0.0625
false
0
0.041667
0
0.104167
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a793fa940e55df6e0e675a761b12ca5549dc2df
14,957
py
Python
wbpy/tests/indicator_data.py
Giving-Tuesday/wbpy
5077d6455b511caa8421f0165cc18a26c5b97eb9
[ "MIT" ]
null
null
null
wbpy/tests/indicator_data.py
Giving-Tuesday/wbpy
5077d6455b511caa8421f0165cc18a26c5b97eb9
[ "MIT" ]
null
null
null
wbpy/tests/indicator_data.py
Giving-Tuesday/wbpy
5077d6455b511caa8421f0165cc18a26c5b97eb9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import wbpy class TestData(object): """ API response data for testing. """ def __init__(self): self.dataset = wbpy.IndicatorDataset(self.response, self.url, self.date) class Yearly(TestData): url = "api.worldbank.org/countries/GB;AR;SA;HK/indicators/SP.POP...
27.957009
451
0.382831
1,111
14,957
5.143114
0.231323
0.067378
0.067203
0.047252
0.69881
0.69426
0.69426
0.671159
0.655058
0.648757
0
0.075453
0.468343
14,957
534
452
28.009363
0.643109
0.00361
0
0.559055
0
0.011811
0.390776
0.01685
0
0
0
0
0
1
0.003937
false
0
0.003937
0
0.03937
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a7a26611e91b52d8ec45d3453c9e3f90f5a2e07
562
py
Python
prediction/my_dataset.py
JermineHu/pytorch-classify
ad965ca574921aa3be4e5cfc7a7c5dfc61059b86
[ "MIT" ]
null
null
null
prediction/my_dataset.py
JermineHu/pytorch-classify
ad965ca574921aa3be4e5cfc7a7c5dfc61059b86
[ "MIT" ]
null
null
null
prediction/my_dataset.py
JermineHu/pytorch-classify
ad965ca574921aa3be4e5cfc7a7c5dfc61059b86
[ "MIT" ]
null
null
null
import h5py import torch import torch.utils.data as Data class MyDataSet(Data.Dataset): def __init__(self, h5py_path): data_file = h5py.File(h5py_path, 'r') self.data = torch.from_numpy(data_file['data'].value) self.nSamples = self.data.size(0) self.label = torch.ones((self.nSample...
28.1
61
0.63879
76
562
4.5
0.407895
0.070175
0
0
0
0
0
0
0
0
0
0.014085
0.241993
562
20
62
28.1
0.788732
0
0
0
0
0
0.039076
0
0
0
0
0
0.0625
1
0.1875
false
0
0.1875
0.0625
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8a7d0a7451e22b4efc197fd81e4530eaacd63fc0
3,206
py
Python
chatting-django/chatMe/models.py
Hilalaksoy/chatting-app
be697d3b34d1e08832881d34c1ab6293b22912d5
[ "MIT" ]
null
null
null
chatting-django/chatMe/models.py
Hilalaksoy/chatting-app
be697d3b34d1e08832881d34c1ab6293b22912d5
[ "MIT" ]
null
null
null
chatting-django/chatMe/models.py
Hilalaksoy/chatting-app
be697d3b34d1e08832881d34c1ab6293b22912d5
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from sorl.thumbnail import ImageField from django.conf import settings import hashlib import urllib def gravatar_url(email, size=50): return "https://www.gravatar.com/avatar/%s?%s" % (hashlib.md5(email.lower().encode('utf-8')).hexdigest(), urlli...
35.230769
164
0.763256
438
3,206
5.39726
0.349315
0.033841
0.041455
0.062183
0.355753
0.313029
0.163283
0.163283
0.131134
0.131134
0
0.006657
0.109794
3,206
90
165
35.622222
0.821654
0.167187
0
0.142857
0
0
0.085154
0
0
0
0
0
0
1
0.079365
false
0
0.095238
0.063492
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8a85699392f4c31aab76e568bf287ae98bd13a82
206
py
Python
apps/onenine_priv/main.py
JaymeeH/onenine_priv
a7f71400e561f1e130fa830652248ec9b59c081e
[ "MIT" ]
null
null
null
apps/onenine_priv/main.py
JaymeeH/onenine_priv
a7f71400e561f1e130fa830652248ec9b59c081e
[ "MIT" ]
null
null
null
apps/onenine_priv/main.py
JaymeeH/onenine_priv
a7f71400e561f1e130fa830652248ec9b59c081e
[ "MIT" ]
null
null
null
import boto3 import json import os s3_client = boto3.client('s3') resonse = s3_client.get_object(Bucket='django_onenine_ai',Key=os.getenv('AWS_ACCESS_KEY_ID')) data = response['Body'].read() print(data)
18.727273
93
0.762136
33
206
4.515152
0.69697
0.107383
0
0
0
0
0
0
0
0
0
0.026738
0.092233
206
11
94
18.727273
0.770053
0
0
0
0
0
0.193237
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
1
0
0
0
0
1
8a8751748ed5aec255bfae67fe92a34f02ef843c
10,106
py
Python
Utils/CRLM_Piwigo/HistImage5.py
giussepi/cyto_CRLM
4489d5d81c4270ec7b6048ceb2f2a02bfa699177
[ "Apache-2.0" ]
null
null
null
Utils/CRLM_Piwigo/HistImage5.py
giussepi/cyto_CRLM
4489d5d81c4270ec7b6048ceb2f2a02bfa699177
[ "Apache-2.0" ]
6
2020-03-24T18:11:41.000Z
2022-03-12T00:16:18.000Z
Utils/CRLM_Piwigo/HistImage5.py
giussepi/cyto_CRLM
4489d5d81c4270ec7b6048ceb2f2a02bfa699177
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 27 21:31:40 2016 HistImage works well to extract all the annotations @author: JOHN """ from xml.etree import ElementTree import openslide as ops import numpy as np import os from piwigotools import Piwigo from piwigotools.interface import * import matplotlib matplotlib...
36.749091
118
0.536018
1,223
10,106
4.345871
0.240392
0.04365
0.068485
0.034243
0.326623
0.265851
0.225024
0.181185
0.168015
0.155974
0
0.024267
0.314961
10,106
274
119
36.883212
0.743464
0.021274
0
0.308756
0
0
0.049805
0.009528
0.023041
0
0
0
0
0
null
null
0.009217
0.036866
null
null
0.036866
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a886f21d3a95f19c53623915b1a5c05b7fa971f
4,675
py
Python
backend/api/migrations/0001_initial.py
CityRoute/web-app-cityroute
b6055d72adeaa0a194869ab645500f16d61899f3
[ "MIT" ]
1
2021-11-02T01:18:14.000Z
2021-11-02T01:18:14.000Z
backend/api/migrations/0001_initial.py
CityRoute/web-app-cityroute
b6055d72adeaa0a194869ab645500f16d61899f3
[ "MIT" ]
3
2022-02-14T13:13:46.000Z
2022-02-27T17:19:59.000Z
backend/api/migrations/0001_initial.py
CityRoute/web-app-cityroute
b6055d72adeaa0a194869ab645500f16d61899f3
[ "MIT" ]
1
2021-11-02T08:52:45.000Z
2021-11-02T08:52:45.000Z
# Generated by Django 3.2.6 on 2021-08-07 15:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
47.704082
175
0.577754
445
4,675
5.950562
0.260674
0.063444
0.147659
0.154079
0.492825
0.408233
0.355363
0.258686
0.258686
0.258686
0
0.015044
0.274866
4,675
97
176
48.195876
0.766077
0.009626
0
0.333333
1
0
0.125108
0
0
0
0
0
0
1
0
false
0
0.044444
0
0.088889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a8a13969afc5b404651ab7eb5d51dec7e384a31
1,975
py
Python
lstm_code/nicodjimenez/test2.py
drpreetyrai/ChatBotCourse
352a6672a19d3692c884ff376cbe067fff37e210
[ "MIT" ]
5,087
2016-06-28T08:58:30.000Z
2020-08-18T08:49:46.000Z
lstm_code/nicodjimenez/test2.py
tta1993/ChatBotCourse
156041d51ec51842592e8a1eeda565197fe31aec
[ "MIT" ]
28
2016-10-26T08:01:18.000Z
2019-10-22T06:41:21.000Z
lstm_code/nicodjimenez/test2.py
tta1993/ChatBotCourse
156041d51ec51842592e8a1eeda565197fe31aec
[ "MIT" ]
1,691
2016-06-29T07:33:36.000Z
2020-08-18T08:50:02.000Z
import numpy as np import sys from lstm import LstmParam, LstmNetwork class ToyLossLayer: """ Computes square loss with first element of hidden layer array. """ @classmethod def loss(self, pred, label): return (pred[0] - label) ** 2 @classmethod def bottom_diff(self, pred, label):...
27.816901
88
0.564557
294
1,975
3.540816
0.292517
0.038425
0.019212
0.0317
0.085495
0.056676
0.038425
0
0
0
0
0.040208
0.32
1,975
70
89
28.214286
0.734922
0
0
0.087719
0
0
0.018977
0
0
0
0
0
0
0
null
null
0
0.052632
null
null
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
1
0
0
0
0
0
0
0
0
1
8a8bf7ff0b6d3a2b4b3c9a97658c95e3adfecf56
8,898
py
Python
FIGURE3/figure3.py
adagj/ECS_SOconvection
d1bb935b37380f11e021a463c6a807d7527220a6
[ "MIT" ]
1
2021-11-26T00:29:28.000Z
2021-11-26T00:29:28.000Z
FIGURE3/figure3.py
adagj/ECS_SOconvection
d1bb935b37380f11e021a463c6a807d7527220a6
[ "MIT" ]
null
null
null
FIGURE3/figure3.py
adagj/ECS_SOconvection
d1bb935b37380f11e021a463c6a807d7527220a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ YEAR: 2019 - 2021 @author: ADA GJERMUNDSEN This script will reproduce FIGURE 3 in Gjermundsen et. al 2021 The data used for plotting is generated by scripts contained in the same folder as this (FIGURE3) """ import xarray as xr import warnings warnings.simplefilter...
43.832512
104
0.532816
1,139
8,898
4.005268
0.223003
0.054801
0.023674
0.01929
0.622534
0.55217
0.511399
0.443007
0.39829
0.372863
0
0.054041
0.290852
8,898
202
105
44.049505
0.668938
0.042369
0
0.431953
1
0
0.15157
0.069237
0
0
0
0
0
1
0
false
0
0.035503
0
0.035503
0.005917
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a90dc7930c849be20bfe14e4195e38bd9b69ee6
759
py
Python
alipay/aop/api/response/AlipayOpenMiniMiniappFavoriteAddResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenMiniMiniappFavoriteAddResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenMiniMiniappFavoriteAddResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenMiniMiniappFavoriteAddResponse(AlipayResponse): def __init__(self): super(AlipayOpenMiniMiniappFavoriteAddResponse, self).__init__() self._add...
29.192308
113
0.72859
81
759
6.506173
0.419753
0.1537
0.098672
0.060721
0
0
0
0
0
0
0
0.001618
0.185771
759
25
114
30.36
0.851133
0.055336
0
0
0
0
0.027972
0
0
0
0
0
0
1
0.25
false
0
0.125
0.0625
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8a92309b2ca38b7b5cb7e4e04976342e05da110c
490
py
Python
dh_abstracts/app/abstracts/migrations/0051_auto_20200430_1659.py
dSHARP-CMU/dhweb_app
fe3d89aeb6c59e6606596747a236a2df5529e9a4
[ "MIT" ]
3
2021-05-07T17:01:33.000Z
2022-01-08T07:54:22.000Z
dh_abstracts/app/abstracts/migrations/0051_auto_20200430_1659.py
dSHARP-CMU/dhweb_app
fe3d89aeb6c59e6606596747a236a2df5529e9a4
[ "MIT" ]
336
2019-12-04T23:06:08.000Z
2022-03-31T16:23:15.000Z
dh_abstracts/app/abstracts/migrations/0051_auto_20200430_1659.py
dSHARP-CMU/dhweb_app
fe3d89aeb6c59e6606596747a236a2df5529e9a4
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-30 20:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('abstracts', '0050_auto_20200430_1655'), ] operations = [ migrations.AlterField( model_name='conference', name='url',...
25.789474
151
0.640816
58
490
5.293103
0.810345
0.045603
0
0
0
0
0
0
0
0
0
0.092141
0.246939
490
18
152
27.222222
0.739837
0.091837
0
0
1
0
0.232506
0.051919
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a982fc58d3bde6f9c88cd08feb9c050072a5cb3
621
py
Python
client/verta/verta/_swagger/_public/modeldb/versioning/model/VersioningS3DatasetDiff.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/modeldb/versioning/model/VersioningS3DatasetDiff.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/modeldb/versioning/model/VersioningS3DatasetDiff.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class VersioningS3DatasetDiff(BaseType): def __init__(self, path=None): required = { "path": False, } self.path = path for k, v in required.items(): if self[k] is None and v: raise ValueError...
24.84
68
0.68277
77
621
5.402597
0.545455
0.038462
0
0
0
0
0
0
0
0
0
0.004098
0.214171
621
24
69
25.875
0.848361
0.064412
0
0
1
0
0.062176
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8a993d33b798aa347c3cc869c961f819ee86e1ad
343
py
Python
102/colors.py
DanCowden/PyBites
43aa22b54ee2417756ae6b95145b11e6e485a38f
[ "Apache-2.0" ]
null
null
null
102/colors.py
DanCowden/PyBites
43aa22b54ee2417756ae6b95145b11e6e485a38f
[ "Apache-2.0" ]
null
null
null
102/colors.py
DanCowden/PyBites
43aa22b54ee2417756ae6b95145b11e6e485a38f
[ "Apache-2.0" ]
null
null
null
VALID_COLORS = ['blue', 'yellow', 'red'] def print_colors(): while True: color = input('Enter a color: ').lower() if color == 'quit': print('bye') break if color not in VALID_COLORS: print('Not a valid color') continue prin...
18.052632
48
0.478134
37
343
4.351351
0.594595
0.136646
0
0
0
0
0
0
0
0
0
0
0.405248
343
18
49
19.055556
0.789216
0
0
0
0
0
0.151604
0
0
0
0
0
0
1
0.083333
false
0.083333
0
0
0.083333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8a9b61373631a40108004b771afa49ef112db561
6,971
py
Python
src/sst/elements/memHierarchy/tests/testPrefetchParams.py
William-An/sst-elements
c3fa280c12f42f65f94a76afead8fbed2649fdca
[ "BSD-3-Clause" ]
58
2015-10-05T15:22:27.000Z
2022-03-31T01:58:36.000Z
src/sst/elements/memHierarchy/tests/testPrefetchParams.py
William-An/sst-elements
c3fa280c12f42f65f94a76afead8fbed2649fdca
[ "BSD-3-Clause" ]
1,453
2015-10-07T14:51:06.000Z
2022-03-31T22:22:28.000Z
src/sst/elements/memHierarchy/tests/testPrefetchParams.py
William-An/sst-elements
c3fa280c12f42f65f94a76afead8fbed2649fdca
[ "BSD-3-Clause" ]
109
2015-10-16T22:03:10.000Z
2022-03-22T23:21:32.000Z
# Automatically generated SST Python input import sst from mhlib import componentlist # Define the simulation components # cores with private L1/L2 # Shared distributed LLCs # All caches have prefetchers and limit prefetching cores = 6 caches = 3 # Number of LLCs on the network memories = 2 coreclock = "2.4GHz" unc...
35.93299
172
0.621145
776
6,971
5.351804
0.295103
0.012521
0.023116
0.017337
0.245124
0.184204
0.160125
0.119191
0.119191
0.119191
0
0.048615
0.238703
6,971
193
173
36.119171
0.733936
0.111462
0
0.246914
1
0
0.33706
0.10598
0
0
0
0
0
1
0
false
0
0.012346
0
0.012346
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8aa442b3ef32d82653534e6d509c3111ab362108
1,012
py
Python
problem_14.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
null
null
null
problem_14.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
null
null
null
problem_14.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
1
2019-10-28T23:33:46.000Z
2019-10-28T23:33:46.000Z
from time import time THRESHOLD = 1000000 TOTAL = [0]*THRESHOLD def calculate_collatz(n): chain = [] chain_len = 0 while n > 1: if n < THRESHOLD and TOTAL[n]: chain_len += TOTAL[n] break chain += [n] chain_len += 1 if n % 2 == 0: n /= 2 ...
21.531915
53
0.467391
121
1,012
3.752066
0.31405
0.123348
0.085903
0
0
0
0
0
0
0
0
0.039655
0.426877
1,012
46
54
22
0.743103
0
0
0.052632
0
0
0.029644
0
0
0
0
0
0
0
null
null
0
0.026316
null
null
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
1
0
0
0
0
0
0
0
0
1
8aa9cae884be33615f28ec2f640ada2e55523c81
1,778
py
Python
moma_utils/src/moma_utils/spatial.py
ethz-asl/moma
c41987fd9f599b430c066c4906da907b813d5491
[ "BSD-3-Clause" ]
4
2021-12-14T17:46:09.000Z
2022-02-16T12:31:07.000Z
moma_utils/src/moma_utils/spatial.py
ethz-asl/moma
c41987fd9f599b430c066c4906da907b813d5491
[ "BSD-3-Clause" ]
14
2022-01-13T12:28:05.000Z
2022-03-31T09:16:09.000Z
moma_utils/src/moma_utils/spatial.py
ethz-asl/moma
c41987fd9f599b430c066c4906da907b813d5491
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import scipy.spatial.transform from moveit_commander.conversions import list_to_pose_stamped class Rotation(scipy.spatial.transform.Rotation): @classmethod def identity(cls): return cls.from_quat([0.0, 0.0, 0.0, 1.0]) class Transform(object): def __init__(self, rotation, trans...
29.633333
83
0.646232
222
1,778
5.036036
0.211712
0.035778
0.042934
0.042934
0.268336
0.241503
0.123435
0.035778
0.028623
0.028623
0
0.027106
0.232283
1,778
59
84
30.135593
0.791941
0
0
0.304348
0
0
0
0
0
0
0
0
0
1
0.23913
false
0
0.065217
0.086957
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8aad1c8c799d1d4cfe13da808e153a7dbde15543
12,436
py
Python
tests/cephfs/CEPH-11255_11336_fuse.py
jennkimerson/cephci
d654deb0b51a9e790ec5ca7285184e044ad4fe63
[ "MIT" ]
null
null
null
tests/cephfs/CEPH-11255_11336_fuse.py
jennkimerson/cephci
d654deb0b51a9e790ec5ca7285184e044ad4fe63
[ "MIT" ]
null
null
null
tests/cephfs/CEPH-11255_11336_fuse.py
jennkimerson/cephci
d654deb0b51a9e790ec5ca7285184e044ad4fe63
[ "MIT" ]
null
null
null
import logging import time import timeit import traceback from ceph.ceph import CommandFailed from ceph.parallel import parallel from ceph.utils import check_ceph_healthly from tests.cephfs.cephfs_utils import FsUtils logger = logging.getLogger(__name__) log = logger # osd def run(ceph_cluster, **kw): try: ...
33.793478
73
0.481586
1,323
12,436
4.280423
0.142857
0.123609
0.114427
0.133498
0.701218
0.629172
0.602684
0.596327
0.581141
0.564365
0
0.029906
0.416533
12,436
367
74
33.885559
0.750551
0.000241
0
0.735795
0
0
0.143351
0
0
0
0
0
0
1
0.002841
false
0.005682
0.022727
0
0.056818
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8aad21c20f879d3d05ad7fdaa1bf9c1c9f90c61e
11,041
py
Python
bips/workflows/gablab/wips/smri/normalize_to_custom.py
akeshavan/BrainImagingPipelines
39915b5a313d049a0bb3ccd3a82a9a83e1241b11
[ "Apache-2.0" ]
1
2017-12-03T00:12:26.000Z
2017-12-03T00:12:26.000Z
bips/workflows/gablab/wips/smri/normalize_to_custom.py
akeshavan/BrainImagingPipelines
39915b5a313d049a0bb3ccd3a82a9a83e1241b11
[ "Apache-2.0" ]
null
null
null
bips/workflows/gablab/wips/smri/normalize_to_custom.py
akeshavan/BrainImagingPipelines
39915b5a313d049a0bb3ccd3a82a9a83e1241b11
[ "Apache-2.0" ]
null
null
null
import os from ..scripts.smri_base import get_post_struct_norm_workflow from ....base import MetaWorkflow, load_config, register_workflow from traits.api import HasTraits, Directory, Bool, Button import traits.api as traits """ MetaWorkflow """ desc = """ Normalize Data to a standard template using a custom template ...
41.82197
125
0.611992
1,170
11,041
5.554701
0.207692
0.030466
0.024619
0.019388
0.216956
0.099708
0.038775
0.016002
0.016002
0
0
0.006206
0.270265
11,041
263
126
41.980989
0.800422
0.050358
0
0.042553
0
0
0.184782
0.056515
0
0
0
0
0
0
null
null
0
0.069149
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8ab0cdf60732d1b79e2419f515861b11ed9bcff3
3,924
py
Python
main.py
gayshub/NginxPythonFileupload
228f1a5bfd104308188ae0af85114b17e295a3bb
[ "Apache-2.0" ]
1
2018-12-27T02:12:11.000Z
2018-12-27T02:12:11.000Z
main.py
gayshub/NginxPythonFileupload
228f1a5bfd104308188ae0af85114b17e295a3bb
[ "Apache-2.0" ]
null
null
null
main.py
gayshub/NginxPythonFileupload
228f1a5bfd104308188ae0af85114b17e295a3bb
[ "Apache-2.0" ]
1
2020-11-24T07:45:17.000Z
2020-11-24T07:45:17.000Z
#!/usr/bin/env python # encoding: utf-8 import tornado.ioloop import tornado.web import tornado.log import tornado.httpserver from tornado.options import define, options import logging import tornado.gen import tornado.process import os import os.path import magic import mimetypes define('debug', type...
32.429752
90
0.584862
454
3,924
4.938326
0.30837
0.028546
0.062444
0.064228
0.197145
0.140054
0.115968
0.083854
0.083854
0.083854
0
0.014115
0.295872
3,924
120
91
32.7
0.797322
0.059888
0
0.115789
0
0
0.09941
0
0
0
0
0
0
0
null
null
0
0.126316
null
null
0.042105
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8ab6cf5b712e5d22285b9429c6a1b3ed4371e409
2,494
py
Python
src/plotman/_tests/plot_util_test.py
pieterhelsen/plotman
1b7dfba139ed03d3c32a2f04f6011e03bfb1f442
[ "Apache-2.0" ]
1,016
2020-11-24T10:27:08.000Z
2022-03-20T23:46:45.000Z
src/plotman/_tests/plot_util_test.py
pieterhelsen/plotman
1b7dfba139ed03d3c32a2f04f6011e03bfb1f442
[ "Apache-2.0" ]
436
2021-01-23T23:28:54.000Z
2022-03-30T00:33:29.000Z
src/plotman/_tests/plot_util_test.py
pieterhelsen/plotman
1b7dfba139ed03d3c32a2f04f6011e03bfb1f442
[ "Apache-2.0" ]
332
2021-02-02T03:42:25.000Z
2022-03-31T09:03:38.000Z
import os import pyfakefs from plotman import plot_util from plotman.plot_util import GB def test_human_format() -> None: assert plot_util.human_format(3442000000, 0) == "3G" assert plot_util.human_format(3542000, 2) == "3.54M" assert plot_util.human_format(354, 0) == "354" assert plot_util.human_fo...
32.38961
83
0.596632
395
2,494
3.574684
0.225316
0.130312
0.1983
0.073654
0.669263
0.495042
0.45255
0.167139
0.167139
0.167139
0
0.140421
0.200481
2,494
76
84
32.815789
0.567703
0
0
0.066667
0
0
0.135926
0.009623
0
0
0
0
0.35
1
0.1
false
0
0.066667
0
0.166667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ab7c8597a020c256dc52bc490f89b4ffd8b60f1
15,166
py
Python
src/oscar/apps/customer/forms.py
writefaruq/django-oscar
bc831b97c69e83884d5163241cf1d60fd3590407
[ "BSD-3-Clause" ]
3
2020-01-15T03:12:14.000Z
2021-11-15T12:23:23.000Z
src/oscar/apps/customer/forms.py
igithub2019/django-oscar
2429ad9e88e9a432dfa60aaca703d99860f85389
[ "BSD-3-Clause" ]
8
2020-08-11T15:21:51.000Z
2022-01-13T02:40:48.000Z
src/oscar/apps/customer/forms.py
igithub2019/django-oscar
2429ad9e88e9a432dfa60aaca703d99860f85389
[ "BSD-3-Clause" ]
2
2019-10-07T13:11:33.000Z
2020-01-03T11:53:48.000Z
import string from django import forms from django.conf import settings from django.contrib.auth import forms as auth_forms from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.password_validation import validate_password from django.contrib.sites.shortcuts import get_current_site from dja...
37.262899
87
0.61295
1,714
15,166
5.215869
0.181447
0.030761
0.038591
0.012752
0.361186
0.286801
0.269351
0.217338
0.19519
0.17528
0
0.002348
0.297903
15,166
406
88
37.35468
0.837246
0.109455
0
0.333333
0
0
0.113426
0
0
0
0
0
0
1
0.085034
false
0.105442
0.05102
0
0.282313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8aba95c23d7dad2766d1afbc41a268d27c7a76c2
663
py
Python
backend/virt/lib/python3.7/site-packages/blessed/__init__.py
Waye/we-care
1ed1836cc1863313ffa3d55d48e0776db4a504a3
[ "MIT" ]
1
2020-12-16T03:28:23.000Z
2020-12-16T03:28:23.000Z
backend/virt/lib/python3.7/site-packages/blessed/__init__.py
csc301-winter-2020/team-project-14-djno
1ed1836cc1863313ffa3d55d48e0776db4a504a3
[ "MIT" ]
6
2021-03-02T01:30:46.000Z
2022-02-26T03:15:16.000Z
backend/virt/lib/python3.7/site-packages/blessed/__init__.py
csc301-winter-2020/team-project-14-djno
1ed1836cc1863313ffa3d55d48e0776db4a504a3
[ "MIT" ]
null
null
null
""" A thin, practical wrapper around terminal capabilities in Python. http://pypi.python.org/pypi/blessed """ # std imports import platform as _platform if _platform.system() == 'Windows': from blessed.win_terminal import Terminal else: from blessed.terminal import Terminal if ('3', '0', '0') <= _platform.py...
30.136364
79
0.668175
96
663
4.46875
0.5625
0.018648
0.102564
0
0
0
0
0
0
0
0
0.050467
0.193062
663
21
80
31.571429
0.751402
0.310709
0
0
0
0
0.286353
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8abb576648aad01b0e3ecc4eec06c4fbd713ef68
228
py
Python
13/test/src/main.py
leisurexi/python-study
e2de3d66d5decb4403acd2df6a3d9cba307f018a
[ "Apache-2.0" ]
1
2021-01-23T14:59:02.000Z
2021-01-23T14:59:02.000Z
13/test/src/main.py
leisurexi/python-study
e2de3d66d5decb4403acd2df6a3d9cba307f018a
[ "Apache-2.0" ]
null
null
null
13/test/src/main.py
leisurexi/python-study
e2de3d66d5decb4403acd2df6a3d9cba307f018a
[ "Apache-2.0" ]
null
null
null
# author: leisurexi # date: 2021-01-16 22:16 import sys sys.path.append("..") from proto.mat import Matrix from utils.mat_mul import mat_mul a = Matrix([[1, 2], [3, 4]]) b = Matrix([[5, 6], [7, 8]]) print(mat_mul(a, b).data)
17.538462
33
0.640351
43
228
3.325581
0.674419
0.125874
0.097902
0
0
0
0
0
0
0
0
0.103627
0.153509
228
12
34
19
0.637306
0.175439
0
0
0
0
0.01087
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
1
0
0
0
0
1
8abfe49f13ef09264a0e669df2919467d7d56141
306
py
Python
http-lib-serv/test/__main__.py
jbschool/hpotter-api
31c0c4cb72b4fdaca5815d91fae64044ac8d3d87
[ "MIT" ]
null
null
null
http-lib-serv/test/__main__.py
jbschool/hpotter-api
31c0c4cb72b4fdaca5815d91fae64044ac8d3d87
[ "MIT" ]
null
null
null
http-lib-serv/test/__main__.py
jbschool/hpotter-api
31c0c4cb72b4fdaca5815d91fae64044ac8d3d87
[ "MIT" ]
null
null
null
import unittest # import schema class TestCanTest(unittest.TestCase): def setUp(self): print('setting up...') def test_true_is_true(self): self.assertTrue(1 == 1) def test_false_is_false(self): self.assertFalse(False) if __name__ == '__main__': unittest.main()
18
37
0.653595
38
306
4.894737
0.578947
0.075269
0
0
0
0
0
0
0
0
0
0.008439
0.22549
306
17
38
18
0.776371
0.042484
0
0
0
0
0.071918
0
0
0
0
0
0.2
1
0.3
false
0
0.1
0
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8ac135a18835fc9a6ef42554ee5c8b873aaca01d
3,182
py
Python
pyslowloris/__main__.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
75
2017-06-15T05:58:02.000Z
2022-03-31T22:59:25.000Z
pyslowloris/__main__.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
8
2017-08-25T04:14:19.000Z
2021-09-10T06:21:33.000Z
pyslowloris/__main__.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
32
2017-03-22T22:52:26.000Z
2022-03-07T15:53:01.000Z
""" MIT License Copyright (c) 2017 Maxim Krivich 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 without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
33.494737
78
0.681018
423
3,182
5.061466
0.465721
0.041102
0.031761
0.025222
0.037833
0.037833
0.02709
0
0
0
0
0.009642
0.217788
3,182
94
79
33.851064
0.850542
0.417033
0
0.211538
0
0
0.24063
0.018468
0
0
0
0.010638
0
1
0.057692
false
0
0.057692
0
0.134615
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
1
0
0
0
0
0
0
0
0
0
0
1
8ac268f0503d6fe1fee8759aba9cac658dbc6996
3,055
py
Python
check_installation.py
WiraDKP/jcop_conda_environment
d2f0075d686ececede79c8d51ee47c0d7cc7e13e
[ "MIT" ]
1
2020-12-06T18:51:56.000Z
2020-12-06T18:51:56.000Z
check_installation.py
WiraDKP/jcop_conda_environment
d2f0075d686ececede79c8d51ee47c0d7cc7e13e
[ "MIT" ]
null
null
null
check_installation.py
WiraDKP/jcop_conda_environment
d2f0075d686ececede79c8d51ee47c0d7cc7e13e
[ "MIT" ]
1
2021-02-05T15:17:21.000Z
2021-02-05T15:17:21.000Z
import subprocess req = { "python", "nb_conda_kernels", "pip", "ipython", "tqdm", "numpy", "scipy", "pandas", "scikit-learn", "statsmodels", "scikit-surprise", "umap-learn", "fbprophet", "matplotlib", "seaborn", "ipywidgets", "plotly", "networkx", "nltk", "gensim", "torchtext", "pytorch", "torchvision", ...
47
116
0.610475
351
3,055
5.213675
0.415954
0.029508
0.038251
0.040984
0.29071
0.261202
0.201093
0.153005
0.153005
0.153005
0
0.003521
0.256301
3,055
64
117
47.734375
0.799736
0
0
0.153846
0
0
0.493936
0.007211
0
0
0
0
0
1
0.057692
false
0
0.019231
0
0.115385
0.403846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8ac4483f58144965a1fa1f194d28b75521b16dec
2,127
py
Python
Make-Sense-of-Census-Project/code.py
ndzamela/ga-learner-dsmp-repo
7667fc0aec735bc1500359ea5272fcab1a6ca76d
[ "MIT" ]
null
null
null
Make-Sense-of-Census-Project/code.py
ndzamela/ga-learner-dsmp-repo
7667fc0aec735bc1500359ea5272fcab1a6ca76d
[ "MIT" ]
null
null
null
Make-Sense-of-Census-Project/code.py
ndzamela/ga-learner-dsmp-repo
7667fc0aec735bc1500359ea5272fcab1a6ca76d
[ "MIT" ]
null
null
null
# -------------- # Importing header files import numpy as np # Path of the file has been stored in variable called 'path' data_file='path' # path for the file data = np.genfromtxt(path, delimiter=",", skip_header=1,dtype=str) print("\nData: \n\n", data) print("\nType of data: \n\n", type(data)) #New re...
20.257143
67
0.655383
362
2,127
3.654696
0.209945
0.072562
0.05291
0.034014
0.175359
0.136054
0.08768
0
0
0
0
0.039956
0.152797
2,127
104
68
20.451923
0.694229
0.152797
0
0.055556
0
0
0.065371
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.407407
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8ace721a3e9f04c5b5efd4325298df20df0d9e90
10,261
py
Python
reviewboard/diffviewer/views.py
clach04/reviewboard
994e5cbcb7709bf2de851d5ecd261d64a4091f26
[ "MIT" ]
null
null
null
reviewboard/diffviewer/views.py
clach04/reviewboard
994e5cbcb7709bf2de851d5ecd261d64a4091f26
[ "MIT" ]
null
null
null
reviewboard/diffviewer/views.py
clach04/reviewboard
994e5cbcb7709bf2de851d5ecd261d64a4091f26
[ "MIT" ]
null
null
null
import logging import traceback from django.conf import settings from django.core.paginator import Paginator from django.http import HttpResponse, HttpResponseServerError, Http404 from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.template.loader i...
34.901361
82
0.594484
1,099
10,261
5.353958
0.22384
0.028552
0.016315
0.016315
0.228586
0.173691
0.140041
0.125765
0.090415
0.07138
0
0.002736
0.323263
10,261
293
83
35.020478
0.844614
0.0843
0
0.150943
0
0
0.106093
0.022635
0
0
0
0
0.009434
0
null
null
0
0.061321
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8ad01b98073e32bbda1eac4100cae0a6b7728504
38,683
py
Python
tests/test_types.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
25
2015-04-29T13:10:22.000Z
2019-03-18T09:45:29.000Z
tests/test_types.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
330
2015-03-04T09:06:38.000Z
2019-06-11T10:31:54.000Z
tests/test_types.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
16
2015-03-23T08:00:46.000Z
2019-02-21T11:14:47.000Z
from nutils.testing import * import nutils.types import inspect import pickle import itertools import ctypes import stringly import tempfile import io import os import numpy import weakref import contextlib class apply_annotations(TestCase): def test_without_annotations(self): @nutils.types.apply_annotat...
34.600179
169
0.579634
4,565
38,683
4.802191
0.079518
0.102865
0.041876
0.051729
0.639312
0.583067
0.532981
0.466655
0.399553
0.356491
0
0.05432
0.284233
38,683
1,117
170
34.631155
0.737431
0.005455
0
0.479263
0
0
0.067131
0.039203
0
0
0
0
0.304147
1
0.215438
false
0.021889
0.017281
0.023041
0.313364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8ad6795fadb1d97bd685af62f70b667d3a7ef90b
3,153
py
Python
tools/fetch_deps.py
genuinecrew/crosswalk
d0455ada177f18da922991e6c2299384412df490
[ "BSD-3-Clause" ]
null
null
null
tools/fetch_deps.py
genuinecrew/crosswalk
d0455ada177f18da922991e6c2299384412df490
[ "BSD-3-Clause" ]
null
null
null
tools/fetch_deps.py
genuinecrew/crosswalk
d0455ada177f18da922991e6c2299384412df490
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This script will do: 1. Setup src's git initialization. 2. Place .gclient file outside of src. 3. Call gclient sync outside ...
34.648352
76
0.694259
403
3,153
5.228288
0.471464
0.051258
0.017086
0.030375
0.105363
0.030375
0.030375
0
0
0
0
0.017084
0.201713
3,153
90
77
35.033333
0.820024
0.251507
0
0.134615
0
0
0.171598
0.023669
0
0
0
0
0
0
null
null
0
0.173077
null
null
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
76d26ab09cba464a391282feca7a1881675e2cac
1,967
py
Python
canonical-splice-site.py
likit/gimme_protocols
e51b69a868d279fab7d065030d2634be6d569a3d
[ "BSD-3-Clause" ]
null
null
null
canonical-splice-site.py
likit/gimme_protocols
e51b69a868d279fab7d065030d2634be6d569a3d
[ "BSD-3-Clause" ]
null
null
null
canonical-splice-site.py
likit/gimme_protocols
e51b69a868d279fab7d065030d2634be6d569a3d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python '''Summarizes the number of canonical and non-canonical splice sites from splice sites file. ''' import sys import re from pygr import seqdb pattern = r'(\w+):(\d+)-(\d+)' pattern = re.compile(pattern) def get_sp_seq(infile, genome): can1 = 0 # GT-AG can2 = 0 # GC-AG noncano = 0 ...
28.507246
86
0.568887
259
1,967
4.27027
0.366795
0.049729
0.050633
0.068716
0.126582
0.090416
0
0
0
0
0
0.030958
0.293849
1,967
68
87
28.926471
0.765299
0.128114
0
0.086957
0
0
0.122873
0
0
0
0
0
0
0
null
null
0
0.065217
null
null
0.108696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
76d7a908f47d3a6c5e3a3da791defdfd078dad4a
4,777
py
Python
google/ads/google_ads/v3/proto/resources/landing_page_view_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/proto/resources/landing_page_view_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/proto/resources/landing_page_view_pb2.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v3/proto/resources/landing_page_view.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf i...
48.744898
830
0.792757
622
4,777
5.81672
0.289389
0.066335
0.077391
0.099502
0.426479
0.357656
0.25843
0.218076
0.153952
0.107794
0
0.037832
0.092527
4,777
97
831
49.247423
0.79677
0.065104
0
0.186667
1
0.04
0.465575
0.370262
0
0
0
0
0
1
0
false
0
0.106667
0
0.106667
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76d9afa0e233fa92108e9df155932c94e253444d
3,041
py
Python
workspace/cogrob/navigation/tour/tour_info_test.py
CogRob/TritonBot
d05b521ec7a7f54a04409f5a2897f3e5c75fd3bf
[ "BSD-3-Clause" ]
8
2018-09-21T09:56:02.000Z
2021-07-26T14:35:14.000Z
workspace/cogrob/navigation/tour/tour_info_test.py
CogRob/TritonBot
d05b521ec7a7f54a04409f5a2897f3e5c75fd3bf
[ "BSD-3-Clause" ]
null
null
null
workspace/cogrob/navigation/tour/tour_info_test.py
CogRob/TritonBot
d05b521ec7a7f54a04409f5a2897f3e5c75fd3bf
[ "BSD-3-Clause" ]
4
2018-08-26T21:44:52.000Z
2019-08-22T07:38:08.000Z
# Copyright (c) 2018, The Regents of the University of California # 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 source code must retain the above copyright # notice, thi...
46.075758
79
0.760934
413
3,041
5.479419
0.401937
0.047724
0.095449
0.074238
0.300928
0.167919
0.139638
0.106938
0.106938
0.106938
0
0.002774
0.170339
3,041
65
80
46.784615
0.894174
0.503124
0
0.068966
0
0
0.005387
0
0
0
0
0
0.517241
1
0.068966
false
0
0.068966
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
76dc15014eb821f0f9767295ae766eef7bb9c9b7
265
py
Python
tests/build_test.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
1
2016-03-04T18:30:48.000Z
2016-03-04T18:30:48.000Z
tests/build_test.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
null
null
null
tests/build_test.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
null
null
null
# unit tests for each of the 3 main modules within berrl import os #testing pipegeohash os.chdir('pipegeohash_test') execfile('test_pipegeohash.py') os.chdir('..') # testing pipegeojson os.chdir('pipegeojson_test') execfile('test_pipegeojson.py') os.chdir('..')
18.928571
56
0.754717
37
265
5.297297
0.540541
0.142857
0.163265
0
0
0
0
0
0
0
0
0.004219
0.10566
265
13
57
20.384615
0.822785
0.350943
0
0.285714
0
0
0.443114
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
76e2bd9f622743fb7a78382f1772989c63f615a3
647
py
Python
blog/models.py
Debagboola/Django-Portfolio-and-Blog-App
99d04cbea158c8c8320fc0c8363b0f7f06e9907e
[ "MIT" ]
null
null
null
blog/models.py
Debagboola/Django-Portfolio-and-Blog-App
99d04cbea158c8c8320fc0c8363b0f7f06e9907e
[ "MIT" ]
null
null
null
blog/models.py
Debagboola/Django-Portfolio-and-Blog-App
99d04cbea158c8c8320fc0c8363b0f7f06e9907e
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Category(models.Model): name = models.CharField(max_length=20) class Post(models.Model): title = models.CharField(max_length=255) body = models.TextField() created_on = models.DateTimeField(auto_now_add=True) last_modified = models.Da...
29.409091
73
0.744977
83
647
5.650602
0.481928
0.070362
0.115139
0.153518
0.260128
0.260128
0.260128
0.260128
0.260128
0.260128
0
0.012635
0.14374
647
21
74
30.809524
0.833935
0.037094
0
0.285714
0
0
0.027375
0
0
0
0
0
0
1
0
false
0
0.071429
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
76e605c62f1cab083543adfa5fbe18139367ed40
584
py
Python
deepext/data/dataset/gan.py
pei223/deepext
54874594f7f94715bd00f6a3fac0ce609fefabe6
[ "MIT" ]
2
2020-06-17T02:47:23.000Z
2020-09-10T14:34:39.000Z
deepext/data/dataset/gan.py
pei223/deepext
54874594f7f94715bd00f6a3fac0ce609fefabe6
[ "MIT" ]
2
2021-06-08T21:28:45.000Z
2022-01-13T02:41:12.000Z
deepext/data/dataset/gan.py
pei223/deepext
54874594f7f94715bd00f6a3fac0ce609fefabe6
[ "MIT" ]
1
2020-06-17T02:57:14.000Z
2020-06-17T02:57:14.000Z
from pathlib import Path from PIL import Image from torch.utils.data import Dataset class SimpleGANDataSet(Dataset): def __init__(self, root_dir: str, transform=None): self.transform = transform self.filepaths = list(Path(root_dir).glob("*.png")) + list(Path(root_dir).glob("*.jpg")) + list( ...
29.2
104
0.638699
75
584
4.76
0.44
0.078431
0.10084
0.12605
0.159664
0
0
0
0
0
0
0
0.231164
584
20
105
29.2
0.7951
0
0
0
0
0
0.02735
0
0
0
0
0
0
1
0.2
false
0
0.2
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
76ec97fd9685e53ca4ee07e8a25eab6cf647fd7d
3,117
py
Python
src/subsample_align.py
Opendigitalradio/ODR-StaticPrecorrection
984c14bf46ebd7dc66954a653c8f17212ed97efb
[ "MIT" ]
null
null
null
src/subsample_align.py
Opendigitalradio/ODR-StaticPrecorrection
984c14bf46ebd7dc66954a653c8f17212ed97efb
[ "MIT" ]
null
null
null
src/subsample_align.py
Opendigitalradio/ODR-StaticPrecorrection
984c14bf46ebd7dc66954a653c8f17212ed97efb
[ "MIT" ]
1
2019-06-20T02:37:34.000Z
2019-06-20T02:37:34.000Z
#!/usr/bin/env python import numpy as np from scipy import signal, optimize import sys import matplotlib.pyplot as plt import dab_util as du def gen_omega(length): if (length % 2) == 1: raise ValueError("Needs an even length array.") halflength = int(length/2) factor = 2.0 * np.pi / length om...
34.252747
121
0.658967
462
3,117
4.28355
0.378788
0.048509
0.020212
0.022739
0.134411
0.083881
0.083881
0.034361
0
0
0
0.014196
0.231633
3,117
90
122
34.633333
0.812109
0.294514
0
0
0
0
0.083948
0.032749
0
0
0
0.011111
0
1
0.065217
false
0
0.108696
0
0.26087
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1