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
2bfc4f790355a7817532bd5b978db33d27b1e506
2,269
py
Python
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
import numpy as np import math from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer,Dense, Activation import tensorflow.keras as keras# as k import tensorflow as t from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam,SGD from tensorflow.linalg impor...
21.205607
185
0.633759
349
2,269
4.028653
0.318052
0.032006
0.054054
0.01707
0.025605
0.025605
0.025605
0
0
0
0
0.01418
0.223006
2,269
106
186
21.40566
0.783324
0.226972
0
0
0
0
0.035963
0
0
0
0
0
0.083333
1
0.125
false
0
0.1875
0.020833
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bfd2325a2d75def166622b037138785dc2ae620
1,778
py
Python
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import glob import re import os import numpy as np from keras.engine import Model from keras.preprocessing.image import img_to_array, load_img from keras.utils import plot_model from keras_vggface.vggface import VGGFace from keras_vggface import utils layer_list = ['flatten', 'fc6', 'fc6/relu',...
35.56
125
0.662542
254
1,778
4.326772
0.358268
0.087352
0.082803
0.086442
0.096451
0
0
0
0
0
0
0.014706
0.19685
1,778
49
126
36.285714
0.754902
0.062992
0
0
0
0
0.103739
0.035585
0
0
0
0
0
1
0.029412
false
0
0.264706
0
0.323529
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9201694101813be0a08afb3b5067429915a5f7d8
9,662
py
Python
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import argparse import random import operator import pickle import torch from torch.optim.lr_scheduler import StepLR sys.path.insert(0,'.') from PyRNN.Data import Data from PyRNN.RNNTagger import RNNTagger from PyRNN.CRFTagger import CRFTagger def build_optimizer(optim, model, learning...
39.92562
95
0.608466
1,174
9,662
4.841567
0.229983
0.038001
0.07178
0.014075
0.204609
0.135116
0.093596
0.081985
0.070373
0.044335
0
0.010794
0.252122
9,662
241
96
40.091286
0.77581
0.04823
0
0.090909
0
0
0.17159
0.00947
0
0
0
0
0
1
0.017045
false
0
0.056818
0
0.085227
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92021bdc8a0aac4c752b56a0953aac9dec06b2cf
4,281
py
Python
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
40
2018-03-01T19:49:20.000Z
2022-03-31T11:35:06.000Z
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
29
2019-03-12T18:29:57.000Z
2022-03-30T04:21:22.000Z
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
17
2019-03-27T19:11:12.000Z
2022-03-16T06:00:08.000Z
import threading import unittest from blatann.gap.advertise_data import AdvertisingData, AdvertisingFlags from blatann.gap.advertising import AdvertisingMode from blatann.gap.scanning import ScanReport, Scanner from blatann.utils import Stopwatch from tests.integrated.base import BlatannTestCase, TestParams, ...
40.386792
114
0.677412
517
4,281
5.381044
0.274662
0.034508
0.064702
0.023005
0.277858
0.244069
0.209921
0.209921
0.158879
0.129403
0
0.028843
0.238729
4,281
105
115
40.771429
0.824793
0.071946
0
0.136986
0
0
0.005177
0
0
0
0.001035
0.009524
0.123288
1
0.09589
false
0
0.09589
0
0.219178
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9202c623dbd158b2b50431053b72ebb94e3aa74e
1,892
py
Python
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
7
2022-02-25T09:55:28.000Z
2022-03-25T20:48:01.000Z
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Software Name: ngsildclient # SPDX-FileCopyrightText: Copyright (c) 2021 Orange # SPDX-License-Identifier: Apache 2.0 # # This software is distributed under the Apache 2.0; # see the NOTICE file for more details. # # Author: Fabien BATTELLO <fabien.battello@orange.com> et al. import http.clie...
22.258824
88
0.717759
217
1,892
6.129032
0.488479
0.040602
0.01203
0.031579
0.034586
0.034586
0.034586
0.034586
0.034586
0
0
0.014696
0.172833
1,892
84
89
22.52381
0.835144
0.175476
0
0
0
0
0.192258
0.028387
0
0
0
0
0
1
0.016393
false
0
0.245902
0
0.262295
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9205e60845af979d57cfab6fce5c83182fed94a4
3,513
py
Python
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
477
2015-02-10T06:54:42.000Z
2022-03-15T12:36:11.000Z
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
174
2015-02-05T18:11:14.000Z
2022-03-29T10:24:19.000Z
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
202
2015-01-21T12:29:23.000Z
2022-03-01T13:26:05.000Z
#!/usr/bin/env python """Test creation of GoSubDag's rcntobj data member.""" from __future__ import print_function __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang. All rights reserved." __author__ = "DV Klopfenstein" import os from goatools.base import get_godag from goatools.gosubdag.gosubdag impo...
43.37037
97
0.565329
419
3,513
4.560859
0.279236
0.047096
0.050235
0.058608
0.385139
0.3663
0.3663
0.310832
0.253271
0.253271
0
0.141363
0.265016
3,513
80
98
43.9125
0.598761
0.146598
0
0.203704
0
0
0.236585
0.011812
0
0
0
0
0.018519
1
0.092593
false
0
0.092593
0
0.203704
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9206913a1d8d9352764326bb25d5c5ac08420277
86
py
Python
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
7
2021-04-28T14:09:30.000Z
2022-02-14T04:41:49.000Z
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
null
null
null
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
3
2021-09-14T14:05:47.000Z
2022-01-25T22:50:19.000Z
from .chain_ops import ChainOps from .transmogrifier import Transmogrifier, Murinizer
28.666667
53
0.860465
10
86
7.3
0.7
0
0
0
0
0
0
0
0
0
0
0
0.104651
86
2
54
43
0.948052
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
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
1
0
1
0
1
0
0
5
92071f8e67600ce7e492cbb22dfc9e21581246f3
5,078
py
Python
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-04-01T22:42:36.000Z
2020-04-01T22:42:36.000Z
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
null
null
null
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-02-16T17:55:46.000Z
2020-02-16T17:55:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module creates the flask app to shuffle users App must be here because flask explodes if you move to subdir""" __Lisence__ = "BSD" __maintainer__ = "Justin Furuness" __email__ = "jfuruness@gmail.com" __status__ = "Development" import pkg_resources from flasgge...
32.551282
97
0.60575
623
5,078
4.720706
0.274478
0.032302
0.061884
0.034002
0.230874
0.196192
0.16355
0.125468
0.090445
0.053043
0
0.018858
0.258566
5,078
155
98
32.76129
0.762284
0.149665
0
0.126214
0
0
0.233365
0.0403
0
0
0
0
0.009709
1
0.067961
false
0
0.07767
0.019417
0.213592
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9207e392d5244627558a7eff04b6d9be4add7394
2,882
py
Python
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
import cvxpy import numpy as np class Control: def __init__(self, model): # Bind model self.model = model # Desired x_pos self.xd = 0.0 # Control parameters self.N = 100 # Control limits self.umax = np.reshape...
32.382022
118
0.497224
441
2,882
3.22449
0.226757
0.059072
0.067511
0.067511
0.224332
0.223629
0.123769
0.123769
0.085795
0.079466
0
0.058338
0.327897
2,882
88
119
32.75
0.675787
0.123525
0
0.083333
0
0
0.00319
0
0
0
0
0
0
1
0.0625
false
0
0.041667
0
0.145833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
920816e07c5759417fa72229f7b01ce5c519d585
1,466
py
Python
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
from maestrowf import __version__ from setuptools import setup, find_packages setup( name='maestrowf', description='A tool to easily orchestrate general computational workflows ' 'both locally and on supercomputers.', version=__version__, author='Francesco Di Natale', maintainer='Francesco Di Natale', au...
30.541667
77
0.653479
159
1,466
5.893082
0.610063
0.08111
0.106724
0.110993
0
0
0
0
0
0
0
0.023392
0.183493
1,466
47
78
31.191489
0.759399
0
0
0.043478
0
0.021739
0.592769
0.046385
0
0
0
0
0
1
0
true
0
0.043478
0
0.043478
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
9208f7346cadc419a62a686dd5dba387c6a93c38
8,531
py
Python
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
AMR_SOURCES = [ "(w / want-01 :ARG0 (b / boy) :ARG1 (g / go-01 :ARG0 b))" ] AMR_TARGETS = [ "The boy wants to go." ] AMR_NOISED = { "convert-to-triples": { "src": "order Graph: ( want :ARG0 ( boy ) :ARG1 ( go :ARG0 boy ) )", "tgt": "<t> want :ARG0 boy <t> want :ARG1 go <t> go :ARG0 boy" }, "generate-fr...
39.133028
94
0.563006
1,217
8,531
3.822514
0.036976
0.215176
0.104471
0.108985
0.955718
0.938951
0.915735
0.866939
0.86092
0.829536
0
0.044783
0.214746
8,531
218
95
39.133028
0.649649
0
0
0.398148
0
0.175926
0.80872
0.117206
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
1
1
1
1
1
1
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
8
9209ca7291bc3b16a02b7dd17d6abd0239412d5d
674
py
Python
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
######################################用户组###################################### from rest_framework.generics import ListAPIView from rest_framework.viewsets import ModelViewSet from django.contrib.auth.models import Group, Permission from apps.meiduo_admin.utils import PageNumber from apps.meiduo_admin.serializer.gro...
33.7
99
0.746291
60
674
8.266667
0.5
0.032258
0.068548
0.076613
0
0
0
0
0
0
0
0
0.094955
674
19
100
35.473684
0.813115
0.004451
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.416667
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
1
0
1
0
0
2
920a0f56b7d98522ca08ddd15424f5561358eed0
5,211
py
Python
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
5
2021-05-18T21:25:46.000Z
2022-03-09T05:09:32.000Z
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
null
null
null
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
null
null
null
from aclpwn import utils, database # Cost map for relationships costmap = { 'MemberOf': 0, 'AddMember': 1, 'GenericAll': 1, 'GenericWrite': 1, 'WriteOwner': 3, 'WriteDacl': 2, 'DCSync': 0, 'Owns': 2, 'GetChangesAll': 0, 'GetChanges': 0, 'AllExtendedRights': 2 } def dijkst...
39.778626
133
0.573211
631
5,211
4.700475
0.283677
0.024275
0.024275
0.033715
0.422792
0.390425
0.331086
0.302765
0.287256
0.26062
0
0.01574
0.268471
5,211
130
134
40.084615
0.762329
0.104203
0
0.203704
0
0.046296
0.300988
0.079004
0
0
0
0
0
1
0.055556
false
0
0.009259
0
0.12037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
920a9793f168d206e013f7bbb71c589069f6db3f
6,343
py
Python
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
import os import json import numpy as np import pandas as pd import gzip import argparse from collections import Counter def load_mixed_corpus(): grocery_file = '../dat/reviews_Grocery_and_Gourmet_Food_5.json' office_file = '../dat/reviews_Office_Products_5.json' doc_groc, _ = load_amazon(grocery_file, 5000, 'revi...
29.640187
88
0.702034
907
6,343
4.689085
0.197354
0.069598
0.022572
0.023043
0.238655
0.180108
0.122972
0.116388
0.06419
0.046555
0
0.013153
0.148983
6,343
214
89
29.640187
0.774731
0.003311
0
0.16092
0
0
0.138247
0.046346
0
0
0
0
0
1
0.051724
false
0
0.04023
0
0.137931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
920dc979bbbe3c3f4d049b066bb2c9d6cdf12abd
2,396
py
Python
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
7
2019-09-18T19:45:46.000Z
2020-05-18T20:07:07.000Z
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
252
2019-09-18T20:25:03.000Z
2022-03-25T11:23:50.000Z
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
8
2019-09-18T11:02:45.000Z
2021-05-18T17:08:51.000Z
from datetime import datetime from typing import List from fastapi.encoders import jsonable_encoder from sqlalchemy.orm import Session from app.api.utils.db import clone_db_model from app.db_models.address import Address from app.models.address import EditAddress, UserAddress def add_user_address( db_session: S...
32.378378
88
0.707429
316
2,396
5.18038
0.221519
0.07697
0.04887
0.036652
0.504582
0.434942
0.372022
0.227856
0.179597
0.179597
0
0
0.186561
2,396
73
89
32.821918
0.839918
0.020451
0
0.333333
0
0
0.064819
0.031983
0
0
0
0
0
1
0.083333
false
0
0.116667
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
0
0
0
0
0
0
0
0
0
0
1
0
920dd0484a64f720a0513aad802820f70a897dcc
2,493
py
Python
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
20
2019-05-21T17:43:07.000Z
2022-03-22T16:38:59.000Z
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
28
2019-05-21T17:36:24.000Z
2022-03-21T07:21:51.000Z
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
7
2020-09-18T23:47:25.000Z
2022-03-03T09:36:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Advanced Specific Multiple Instruments This example shows how to use specific channels ID and multiple connected instruments Requires at least two Fluigent pressure channels Copyright (c) Fluigent 2019. All Rights Reserved. """ # Print function for Python 2 compatibi...
35.112676
96
0.765744
331
2,493
5.679758
0.389728
0.028723
0.031915
0.044681
0.233511
0.18883
0.121277
0.121277
0.121277
0.121277
0
0.008447
0.145207
2,493
70
97
35.614286
0.873768
0.372242
0
0.125
0
0
0.225618
0
0
0
0
0
0
1
0
false
0
0.15625
0
0.15625
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9213947a6c459942a56f0c3d98a57e842bc0d8f6
875
py
Python
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
12
2019-05-27T16:02:28.000Z
2021-01-08T09:32:08.000Z
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
209
2019-04-06T15:16:52.000Z
2021-07-03T02:11:53.000Z
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
1
2021-05-26T12:13:35.000Z
2021-05-26T12:13:35.000Z
"""This script iterates over all decorations in a .ini database and set their Specialart field to the format expected by the SpecialEffect system. """ from myconfigparser import MyConfigParser, load_unit_data, get_decorations, Section dataBase = '../development/table/unit.ini' def configure_decorations(unit_data, dec...
33.653846
95
0.668571
110
875
5.136364
0.472727
0.113274
0.100885
0.099115
0
0
0
0
0
0
0
0.007299
0.217143
875
25
96
35
0.817518
0.163429
0
0
0
0
0.111724
0.04
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9215145b51d72c2317cfa268d80567e333b4f845
7,906
py
Python
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
78
2020-11-04T18:27:20.000Z
2022-02-07T03:32:53.000Z
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
3
2020-11-05T20:42:15.000Z
2021-01-13T19:57:01.000Z
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
7
2020-11-18T17:18:15.000Z
2021-03-24T05:14:29.000Z
# 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 u...
35.612613
114
0.634834
907
7,906
5.432194
0.190739
0.036533
0.012787
0.017252
0.236452
0.217577
0.180028
0.16095
0.138015
0.128882
0
0.000674
0.249178
7,906
221
115
35.773756
0.829346
0.229067
0
0.235294
0
0
0.073618
0
0
0
0
0
0
1
0.193277
false
0
0.05042
0.042017
0.521008
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
92162c36211ae5a295d2c5d9300ea4a55a55b0d5
4,135
py
Python
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
52
2019-06-10T04:20:00.000Z
2021-12-06T01:13:26.000Z
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
125
2019-06-05T16:34:19.000Z
2022-03-30T18:46:06.000Z
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
11
2019-07-16T06:48:55.000Z
2021-12-15T12:41:51.000Z
import click from gradient.cli import common from gradient.cli.cli import cli from gradient.commands import tensorboards as tensorboards_commands @cli.group("tensorboards", help="Manage tensorboards", cls=common.ClickGroup) def tensorboards_group(): pass @tensorboards_group.command("create", help="Create new t...
26.677419
91
0.712696
457
4,135
6.291028
0.170678
0.050087
0.104
0.077913
0.640348
0.577391
0.550261
0.493217
0.441043
0.377391
0
0.001709
0.151149
4,135
154
92
26.850649
0.817379
0.08948
0
0.6
0
0
0.23498
0.007477
0
0
0
0
0
1
0.058333
false
0.033333
0.033333
0
0.091667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
921710fe148b77c5af4c4630e1aea73b68d40f82
5,430
py
Python
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
23
2015-01-10T18:17:58.000Z
2021-12-21T03:01:38.000Z
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
20
2015-01-10T14:05:42.000Z
2016-08-09T07:48:50.000Z
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
3
2015-01-10T18:27:30.000Z
2020-04-07T16:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django.db.models.aggregates import Min from services.models import (Service, SlaDaily, SlaCache, ServiceHistory) from ...
37.448276
123
0.688029
716
5,430
4.949721
0.290503
0.027935
0.029628
0.03386
0.189898
0.167325
0.157731
0.157731
0.102991
0.102991
0
0.01627
0.218969
5,430
144
124
37.708333
0.819382
0.167035
0
0.128713
0
0
0.033408
0
0
0
0
0
0
1
0.049505
false
0
0.108911
0
0.19802
0.009901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
921773c4798d3591783c0a5548229dc9969cad46
521
py
Python
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """JSON Deserializer.""" import json from .deserializers import DeserializerMixin class JSONDeserializer(Deser...
24.809524
76
0.696737
66
521
5.484848
0.772727
0.088398
0
0
0
0
0
0
0
0
0
0.011792
0.18618
521
20
77
26.05
0.841981
0.518234
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
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
1
0
1
0
0
2
921793e6129c6314d6f7c5cb0bd9274856e44cb1
2,960
py
Python
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
38
2020-09-16T14:47:36.000Z
2022-03-30T13:35:05.000Z
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
25
2020-10-03T19:30:16.000Z
2022-03-29T15:24:44.000Z
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
9
2021-01-18T10:48:57.000Z
2022-02-11T10:34:52.000Z
# TensorFlow and tf.keras import tensorflow as tf # Helper libraries import numpy as np import matplotlib.pyplot as plt from cvnn import layers print(tf.__version__) def get_fashion_mnist_dataset(): fashion_mnist = tf.keras.datasets.fashion_mnist (train_images, train_labels), (test_images, test_labels) = fas...
43.529412
119
0.714865
384
2,960
5.260417
0.255208
0.034653
0.079208
0.108911
0.612376
0.590099
0.590099
0.590099
0.527723
0.527723
0
0.027981
0.166892
2,960
67
120
44.179104
0.79116
0.064189
0
0.423077
0
0
0.071971
0
0
0
0
0
0.038462
1
0.076923
false
0
0.076923
0
0.211538
0.057692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9217f064843ea0309f5a6b856cd5967dad7c5477
47
py
Python
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
null
null
null
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
null
null
null
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
2
2020-10-15T06:41:32.000Z
2021-01-27T12:55:11.000Z
from . import _version_check name = 'PyTorch'
11.75
28
0.744681
6
47
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.170213
47
3
29
15.666667
0.846154
0
0
0
0
0
0.148936
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
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
1
0
0
0
0
4
9218ab83d1d2ee572df4715f9f7a93fe6c1991f0
1,905
py
Python
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
6
2017-10-27T02:37:55.000Z
2020-11-07T15:43:57.000Z
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
134
2016-07-20T08:35:34.000Z
2020-07-22T13:51:49.000Z
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
9
2016-07-19T15:39:27.000Z
2020-02-11T16:13:14.000Z
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ms2ldaviz.settings_simon") import django django.setup() from basicviz.models import Experiment,Document from decomposition.models import FeatureSet,MotifSet,GlobalMotif,GlobalMotifsToSets,Decomposition,DocumentGlobalMass2Motif if __name__ == '__main__': # f...
30.238095
122
0.746457
236
1,905
5.872881
0.313559
0.021645
0.049784
0.038961
0.064935
0
0
0
0
0
0
0.011364
0.12231
1,905
62
123
30.725806
0.817584
0.032546
0
0.155556
0
0
0.193478
0.025
0
0
0
0
0
1
0
false
0
0.088889
0
0.088889
0.422222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
9219011cb4da371cd24e2b86c75ee95c35d59f2f
1,133
py
Python
strings.py
frizensami/sg-blood-stocks-bot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
1
2022-01-25T02:54:31.000Z
2022-01-25T02:54:31.000Z
strings.py
frizensami/sg-blood-stocks-bot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
4
2021-06-07T12:19:32.000Z
2021-06-09T05:02:36.000Z
strings.py
frizensami/sgbloodstocksbot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 HELLO_MSG = """Welcome to the SG Blood Stocks Bot! We update you on the blood stock levels of the Singapore Red Cross. You can subscribe (/subscribe) to updates for specific blood types so you know when to donate. You can check for the latest change (/changes) in blood stock levels over the p...
29.815789
118
0.739629
186
1,133
4.494624
0.569892
0.041866
0.057416
0.038278
0.062201
0.062201
0
0
0
0
0
0.006237
0.150927
1,133
37
119
30.621622
0.859667
0.018535
0
0.105263
0
0.105263
0.891089
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
921ae232934b3615fdba27bd605f3a627db67ede
1,064
py
Python
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
9
2020-12-06T23:18:30.000Z
2021-12-19T22:31:26.000Z
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
null
null
null
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
3
2020-12-08T09:45:44.000Z
2020-12-15T19:20:20.000Z
from typing import List, Dict from aocpy import BaseChallenge def parse(instr: str) -> List[int]: return list(map(int, instr.strip().split(","))) def count_fish_by_timer(all_fish: List[int]) -> Dict[int, int]: m = {} for fish in all_fish: m[fish] = m.get(fish, 0) + 1 return m def iterate_f...
23.644444
63
0.608083
175
1,064
3.514286
0.297143
0.079675
0.043902
0.068293
0.193496
0.193496
0.162602
0.162602
0.162602
0.162602
0
0.025157
0.25282
1,064
44
64
24.181818
0.748428
0.023496
0
0.129032
0
0
0.000965
0
0
0
0
0
0
1
0.193548
false
0
0.064516
0.032258
0.483871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
921b26719ef6dd1872a88554745a7cfee94c9fe4
633
py
Python
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
""" This is the qmspy module, a python module designed to automate graphing data collected from a QMS. Contains the following functions: init_data add_style fit_gaussians appearance_energy Contains the following submodules: graph_data A...
24.346154
76
0.657188
76
633
5.263158
0.460526
0.06
0.1
0
0
0
0
0
0
0
0
0
0.309637
633
25
77
25.32
0.915332
0.535545
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
ecf5d119b411d7111d5a7caa7e25f9e59783661e
284
py
Python
pymagicc/errors.py
gabriel-abrahao/pymagicc
c9bdd610f97aa832dd879796aa6b9bfe11fa0f07
[ "BSD-3-Clause" ]
25
2017-02-03T10:47:13.000Z
2020-01-21T21:58:22.000Z
pymagicc/errors.py
gabriel-abrahao/pymagicc
c9bdd610f97aa832dd879796aa6b9bfe11fa0f07
[ "BSD-3-Clause" ]
248
2017-02-15T19:47:31.000Z
2020-03-05T04:15:05.000Z
pymagicc/errors.py
gabriel-abrahao/pymagicc
c9bdd610f97aa832dd879796aa6b9bfe11fa0f07
[ "BSD-3-Clause" ]
8
2020-05-08T04:02:04.000Z
2021-12-06T16:10:51.000Z
class NoReaderWriterError(ValueError): """Exception raised when a valid Reader or Writer could not be found for the file""" pass class InvalidTemporalResError(ValueError): """Exception raised when a file has a temporal resolution which cannot be processed""" pass
25.818182
90
0.746479
36
284
5.888889
0.722222
0.179245
0.235849
0.273585
0.283019
0
0
0
0
0
0
0
0.190141
284
10
91
28.4
0.921739
0.559859
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
1
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
1
1
0
0
0
0
0
4
ecf5d69ffbb4ac849872de070db13227e5f7d278
1,569
py
Python
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
1
2016-12-24T21:00:03.000Z
2016-12-24T21:00:03.000Z
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
null
null
null
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse, reverse_lazy from django.views.generic import ListView, DetailView, UpdateView, CreateView from django_dhcp.models import NetworkNode urlpatterns = patterns('', ...
43.583333
87
0.511791
142
1,569
5.478873
0.394366
0.064267
0.092545
0.113111
0.169666
0.169666
0.169666
0.169666
0
0
0
0.004145
0.384959
1,569
36
88
43.583333
0.802073
0
0
0.066667
0
0
0.126115
0.072611
0
0
0
0
0
1
0
false
0.033333
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecf61980cc4a49f01a13cbe72aad03439a423e46
2,073
py
Python
backend/api/decapod_api/views/v1/__init__.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
41
2016-11-03T16:40:17.000Z
2019-05-23T08:39:17.000Z
backend/api/decapod_api/views/v1/__init__.py
Mirantis/ceph-lcm
fad9bad0b94f2ef608362953583b10a54a841d24
[ "Apache-2.0" ]
30
2016-10-14T10:54:46.000Z
2017-10-20T15:58:01.000Z
backend/api/decapod_api/views/v1/__init__.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
28
2016-09-17T01:17:36.000Z
2019-07-05T03:32:54.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016 Mirantis 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 ...
35.741379
71
0.822962
289
2,073
5.764706
0.380623
0.096038
0.182473
0.136855
0.204082
0.204082
0.042017
0
0
0
0
0.012814
0.096479
2,073
57
72
36.368421
0.876668
0.298601
0
0
0
0
0.003618
0
0
0
0
0
0
1
0
false
0.064516
0.419355
0
0.419355
0.032258
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
1
1
0
0
0
0
3
ecf6c36593681a36f3dd9d09dc12399f3a5c1c70
8,604
py
Python
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.BoxExclusiveBase import BoxExclusiveBase from alipay.aop.api.domain.BoxOrderStatusInfo import BoxOrderStatusInfo from alipay.aop.api.domain.BoxExclusiveKeyword import BoxExclusiveKe...
35.553719
91
0.607508
1,000
8,604
4.93
0.066
0.070994
0.070588
0.043813
0.445639
0.381136
0.150913
0.130223
0.068154
0.023529
0
0.000499
0.30172
8,604
241
92
35.701245
0.820073
0.004881
0
0.179724
0
0
0.086001
0
0
0
0
0
0
1
0.124424
false
0
0.032258
0.0553
0.230415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecf7e96aed7bb38c108c65e6a088553ea5f5fcea
4,921
py
Python
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- from abc import abstractmethod import inspect from .common import LifeTime, IServiceProvider, IDescriptor, ICallSiteMaker from .param_type_resolver import ParameterTypeResolver from .err...
36.183824
106
0.655151
506
4,921
6.096838
0.231225
0.08201
0.038898
0.030794
0.266451
0.220421
0.176337
0.146191
0.084603
0
0
0.002481
0.262955
4,921
135
107
36.451852
0.848084
0.024182
0
0.117647
0
0
0.049009
0.005005
0
0
0
0
0
1
0.156863
false
0
0.058824
0.068627
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecf8a661406818a230a4076d57178a508b0bd6f5
2,666
py
Python
ilurl/core/ql/define.py
guilhermevarela/ilu
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
2
2019-10-18T17:04:50.000Z
2019-10-18T17:05:04.000Z
ilurl/core/ql/define.py
guilhermevarela/ilurl
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
17
2019-11-20T09:33:50.000Z
2020-01-30T14:57:40.000Z
ilurl/core/ql/define.py
gsavarela/ilurl
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
null
null
null
"""The module helps define the q learning dictionary""" __author__ = "Guilherme Varela" __date__ = "2019-07-25" from itertools import product as prod def dpq_tls(state_rank, state_dim, action_rank, action_dim, initial_value=0): """Prepares a dynamic programming Q-learning table for a traffic ligh...
24.685185
59
0.620405
370
2,666
4.389189
0.335135
0.051724
0.007389
0.007389
0.289409
0.253695
0.246305
0.246305
0.199507
0.199507
0
0.023709
0.288072
2,666
107
60
24.915888
0.831928
0.646287
0
0
0
0
0.037901
0
0
0
0
0
0
1
0.142857
false
0
0.047619
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecf92f0deadf2f7bda487207ea9032532498f896
296
py
Python
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
1
2021-12-09T10:36:48.000Z
2021-12-09T10:36:48.000Z
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
null
null
null
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
null
null
null
def countRectangles(r): d = 2*r dSq = d*d rectangles = 0 for i in range(1,d): for j in range(1,d): if i**2+j**2 <= dSq: rectangles += 1 return rectangles t = int(input()) for _ in range(t): r = int(input()) print(countRectangles(r))
22.769231
32
0.510135
46
296
3.26087
0.434783
0.14
0.106667
0.12
0
0
0
0
0
0
0
0.036082
0.344595
296
13
33
22.769231
0.737113
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecf99972906a2664b8eb3161b627de2250acc67f
546
py
Python
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
null
null
null
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
1
2020-05-10T14:45:22.000Z
2020-05-10T15:06:50.000Z
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
null
null
null
from django.db import models from slugify import slugify class Tag(models.Model): id = models.AutoField(primary_key=True) slug = models.CharField(max_length=128, unique=True) tag = models.CharField(max_length=128) def save(self, force_insert=False, force_update=False): self.slug = slugify(sel...
23.73913
59
0.695971
73
546
5.054795
0.479452
0.04878
0.097561
0.130081
0.146341
0
0
0
0
0
0
0.013793
0.203297
546
22
60
24.818182
0.834483
0
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0.066667
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
0
0
1
0
ecfb22412fbdd1ca40827fb6bcc73e85e6d1f7d3
392
py
Python
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
##遍历指定path下所有文件,并将文件名d重命名为name import os path = './Image' for (root,dirs,files) in os.walk(path) : for item in files : Olddir = os.path.join(root, item) filename=os.path.split(Olddir)[0] #文件名 filetype=os.path.split(Olddir)[1][-4:] #文件扩展名 Newdir=os.path.join(path,str(coun...
32.666667
62
0.609694
55
392
4.345455
0.527273
0.125523
0.083682
0.142259
0
0
0
0
0
0
0
0.016667
0.234694
392
12
63
32.666667
0.78
0.091837
0
0
0
0
0.01983
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecfe6cf1d1e3eb686af5893cb455fa42f77691d4
6,833
py
Python
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
1
2020-10-18T07:56:47.000Z
2020-10-18T07:56:47.000Z
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
null
null
null
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
null
null
null
import csv import os from multiprocessing import Manager from multiprocessing import Process ####### must import the packet in scapy in order to see the results ####### from scapy import * from scapy.layers import * from scapy.layers.dns import * from scapy.layers.inet import * from scapy.utils import PcapReader from...
35.221649
103
0.536075
779
6,833
4.521181
0.213094
0.022147
0.017036
0.017888
0.089154
0.061897
0.056786
0.034639
0.034639
0.034639
0
0.011397
0.357969
6,833
193
104
35.404145
0.791429
0.072443
0
0.163265
0
0
0.08365
0.005862
0
0
0
0
0
1
0.040816
false
0
0.081633
0
0.156463
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
0
0
0
0
0
0
0
0
1
0
ecff03b69669e40823b94d33d2618c575448cad8
3,988
py
Python
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
3
2020-04-09T16:53:54.000Z
2020-04-21T16:49:52.000Z
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
null
null
null
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
null
null
null
''' This scripts define functions that will be used by the different notebooks to analyse the results ''' import pandas as pd from plotly import tools import plotly.graph_objs as go def predecessor_generation(results, curr_generation, verbose): ''' Print the predecessor's generation for all the models in a spe...
45.318182
121
0.614092
485
3,988
4.853608
0.323711
0.058624
0.044605
0.040357
0.146559
0.071368
0.029737
0.029737
0
0
0
0.009434
0.282347
3,988
87
122
45.83908
0.813068
0.161234
0
0.032258
0
0
0.164595
0.052743
0
0
0
0
0
1
0.048387
false
0
0.048387
0
0.145161
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6018f719d55a7b7e6894dc15be94c1e0f710808
817
py
Python
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
2
2019-08-04T07:22:11.000Z
2020-07-17T05:01:41.000Z
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
null
null
null
"""Add Document URI and Meta document_id index Revision ID: 77c2af032aca Revises: f3b8e76ae9f5 Create Date: 2016-05-13 15:06:55.496502 """ # revision identifiers, used by Alembic. revision = "77c2af032aca" down_revision = "f3b8e76ae9f5" from alembic import op import sqlalchemy as sa def upgrade(): op.execute(...
22.694444
73
0.691554
105
817
5.057143
0.4
0.131827
0.105461
0.07533
0.512241
0.376648
0.376648
0.323917
0.323917
0.323917
0
0.066768
0.19339
817
35
74
23.342857
0.738998
0.210526
0
0.285714
0
0
0.339089
0.178964
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6022344a3d4840a64b5a3612dfb2d5eecb6808c
19,526
py
Python
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os import sys import time import inspect import traceback import itertools import random import yaml from twisted.python import reflect, usage from twisted.internet import defer from twisted.trial.runner import filenameToModule from twisted.internet import reactor, threads from txtorcon import TorProtocolFact...
32.816807
93
0.678019
2,440
19,526
5.258607
0.182787
0.025251
0.027278
0.01473
0.214403
0.153456
0.104123
0.076378
0.060167
0.030239
0
0.002225
0.240449
19,526
594
94
32.872054
0.862922
0.01731
0
0.18306
0
0
0.104529
0
0
0
0
0
0
0
null
null
0.010929
0.060109
null
null
0.013661
0
0
0
null
0
0
0
0
0
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
a60228f4b0493e204cf39ee8d4a76aafe56f57f7
4,410
py
Python
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
2
2020-12-10T01:22:13.000Z
2021-03-11T08:05:16.000Z
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
null
null
null
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
null
null
null
import os import subprocess import numpy as np import pandas as pd import matplotlib.pyplot as plt import argparse import seaborn as sns # I love this package! sns.set_style('white') import torch from sklearn.metrics import accuracy_score, roc_auc_score, roc_curve import scipy.stats as stats def plot_roc(attr, target...
36.446281
80
0.594558
568
4,410
4.466549
0.288732
0.031533
0.030745
0.020102
0.292077
0.214821
0.214821
0.173827
0.148601
0.148601
0
0.015699
0.277778
4,410
121
81
36.446281
0.780848
0.057143
0
0.207921
0
0.009901
0.176315
0.034009
0
0
0
0
0
1
0.019802
false
0
0.09901
0
0.128713
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a60260497b4fa5807ca2464a85c90d77b9b013da
6,071
py
Python
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
null
null
null
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
null
null
null
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
1
2019-12-06T11:51:41.000Z
2019-12-06T11:51:41.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 wri...
32.994565
79
0.654423
834
6,071
4.731415
0.254197
0.049671
0.02965
0.036493
0.292448
0.193867
0.150532
0.128231
0.088697
0.088697
0
0.003884
0.236534
6,071
183
80
33.174863
0.847465
0.236864
0
0.333333
0
0
0.004999
0
0
0
0
0
0
1
0.113821
false
0
0.056911
0
0.284553
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6027a3ebc5d97cf960018115a8dd70040b07344
121
py
Python
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
6
2018-03-14T16:01:56.000Z
2021-12-05T06:11:07.000Z
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
7
2020-02-12T03:20:53.000Z
2022-03-12T00:06:11.000Z
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
4
2018-03-23T12:08:40.000Z
2021-12-13T00:58:08.000Z
from django.apps import AppConfig class UrlOrRelativeUrlFieldConfig(AppConfig): name = 'url_or_relative_url_field'
20.166667
45
0.818182
14
121
6.785714
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.123967
121
5
46
24.2
0.896226
0
0
0
0
0
0.206612
0.206612
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
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
1
0
1
0
0
4
a6027e7c6c9accbef3a1e0fb42f95f71fdcfc5a3
4,877
py
Python
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
4
2019-03-04T02:49:26.000Z
2021-10-06T00:51:13.000Z
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
1
2019-02-15T23:42:26.000Z
2019-02-15T23:42:26.000Z
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
null
null
null
import ubelt as ub from graphid import demo from graphid.core.state import (POSTV, NEGTV, INCMP, UNREV) def test_incomp_inference(): infr = demo.demodata_infr(num_pccs=0) # Make 2 consistent and 2 inconsistent CCs infr.add_feedback(( 1, 2), POSTV) infr.add_feedback(( 2, 3), POSTV) infr...
34.104895
64
0.599754
674
4,877
4.158754
0.118694
0.212273
0.45487
0.299679
0.881912
0.67178
0.607207
0.566536
0.55512
0.541206
0
0.078899
0.225548
4,877
142
65
34.34507
0.663225
0.09432
0
0.571429
0
0
0.028743
0.012455
0
0
0
0
0
1
0.028571
false
0
0.038095
0
0.066667
0.07619
0
0
0
null
1
1
1
1
0
0
0
0
0
0
0
0
0
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
4
a602c20e6c62e465410e523f5014d66e68793385
1,565
py
Python
tests/tagger_test.py
slouvan/anago
99a8be0ba2ea42c9c686ff9697ea9e6ef60ca028
[ "MIT" ]
null
null
null
tests/tagger_test.py
slouvan/anago
99a8be0ba2ea42c9c686ff9697ea9e6ef60ca028
[ "MIT" ]
9
2020-01-28T22:26:05.000Z
2022-02-09T23:47:51.000Z
tests/tagger_test.py
tungnt244/ie_tourism_model
f9d6a234af4ddeb632b63e6dcd05eea23a48b2a7
[ "MIT" ]
1
2021-06-23T13:35:51.000Z
2021-06-23T13:35:51.000Z
import os import unittest from pprint import pprint import anago from anago.config import ModelConfig from anago.models import SeqLabeling from anago.preprocess import WordPreprocessor SAVE_ROOT = os.path.join(os.path.dirname(__file__), 'models') class TaggerTest(unittest.TestCase): def setUp(self): p ...
30.686275
78
0.656869
206
1,565
4.883495
0.364078
0.139165
0.091451
0.050696
0.139165
0.067594
0
0
0
0
0
0.009756
0.214058
1,565
50
79
31.3
0.80813
0
0
0
0
0
0.063259
0
0
0
0
0
0.243243
1
0.108108
false
0
0.189189
0
0.324324
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6033320b86e6ca0f7d5044e4b6dd458c4e4c840
1,858
py
Python
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
''' Created on 12.04.2018 @author: hm ''' import os import time from unittest.UnitTestCase import UnitTestCase import base.MemoryLogger import base.JobController import base.StringUtils DEBUG = False class TestJobController (base.JobController.JobController): def __init__(self, logger): base.JobControll...
32.034483
123
0.682454
197
1,858
6.213198
0.365482
0.102941
0.098039
0.056373
0.173203
0.05719
0
0
0
0
0
0.011266
0.187836
1,858
57
124
32.596491
0.799867
0.041981
0
0.04878
0
0
0.053612
0.013544
0.02439
0
0
0
0.146341
1
0.170732
false
0
0.146341
0
0.439024
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6037f9a95ecfd02fa62dc87371fde25d3dc01c6
3,308
py
Python
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
# Stub script for converting XML input values into command line parameters and writing out # and XML file. # # This script expects two parameters, as a specific: # --xml_system_configuration=input_filename.xml # --xml_system_metrics=output_filename.xml # # @author Sivieri Alessandro, Vittorio Zaccaria (2010/20...
26.253968
150
0.680169
441
3,308
4.981859
0.401361
0.032772
0.040055
0.017751
0.064634
0.064634
0.064634
0.064634
0.064634
0.064634
0
0.015356
0.173216
3,308
125
151
26.464
0.787934
0.191657
0
0.058824
0
0
0.211797
0.077593
0
0
0
0
0
0
null
null
0.011765
0.070588
null
null
0.047059
0
0
0
null
0
0
0
0
0
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
a6038b3f8e171ab48ac06bd1a445cb35301ad809
1,059
py
Python
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
from flask import Blueprint, request from services import account from functools import wraps from status import finish auth = Blueprint('auth', __name__, url_prefix='/auth') def requires_auth(f): @wraps(f) def decorated(*args, **kwargs): token = request.form.get('token', request.args.get('token', N...
25.829268
74
0.599622
132
1,059
4.681818
0.44697
0.053398
0.067961
0
0
0
0
0
0
0
0
0.011873
0.28423
1,059
40
75
26.475
0.80343
0.009443
0
0
0
0
0.126908
0
0
0
0
0.025
0
0
null
null
0.1
0.133333
null
null
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
1
0
1
0
0
1
0
0
0
0
0
3
a60492a029f93b9e4059d6e51e8cafafd4226486
768
py
Python
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
from argparse import ArgumentParser DEFAULT_pH = 7.5 DEFAULT_pMg = 3.0 DEFAULT_ionic_strength = 0.25 def add_arguments(parser: ArgumentParser) -> ArgumentParser: # positional arguments parser.add_argument('infile', type=str, help='pathway as rpSBML file') parser.add_argument('outfile', type=str, hel...
24
85
0.641927
88
768
5.409091
0.397727
0.113445
0.214286
0.144958
0
0
0
0
0
0
0
0.012238
0.255208
768
31
86
24.774194
0.81993
0.119792
0
0.26087
0
0
0.133929
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.130435
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
a605d79f8499b6ae4b9712a96390545d3da40661
7,829
py
Python
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
from pyspark.ml.clustering import BisectingKMeans, BisectingKMeansModel from utils import channelInfo from utils import MovieDataApp class BkmeansCossim(object): def __init__(self, spark, database, group=0, recall_topK=50, k=100, minDCS=200, seed=10, channel='电影'): """ :param group: int 计算第几组聚类...
40.989529
131
0.62013
839
7,829
5.606675
0.263409
0.028274
0.013818
0.013605
0.239371
0.224277
0.181335
0.146471
0.139031
0.116497
0
0.022505
0.256482
7,829
191
132
40.989529
0.785604
0.400817
0
0.084507
0
0.014085
0.097937
0.022217
0
0
0
0
0
1
0.140845
false
0.014085
0.126761
0.042254
0.408451
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a605fb5e525f35f836c02ffad077a242234f3c4a
32,138
py
Python
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
63
2016-01-02T16:28:47.000Z
2022-01-19T11:29:51.000Z
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
12
2016-06-12T14:14:15.000Z
2020-12-18T16:11:45.000Z
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
17
2016-05-23T00:02:27.000Z
2021-04-25T17:48:27.000Z
from .base import * MAX_TEX_SIZE = 4000 # TODO: make user-configurable class ScrollThumb(Widget): def __init__(self, parent, pane, gfx_ids, cull_bin, scroll_dir, inner_border_id): Widget.__init__(self, "scrollthumb", parent, gfx_ids, "normal") self._pane = pane self.direction = scroll...
33.166151
105
0.609434
4,299
32,138
4.215166
0.071645
0.031786
0.023674
0.038243
0.563048
0.47387
0.420838
0.359914
0.327631
0.303736
0
0.007158
0.291462
32,138
968
106
33.200413
0.788635
0.035783
0
0.399135
0
0
0.049958
0.006596
0
0
0
0.001033
0
1
0.103746
false
0.002882
0.001441
0.012968
0.151297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6089b93cf4c6a825b8066cca145aee395091e54
4,561
py
Python
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
13
2020-10-24T22:17:31.000Z
2022-03-04T22:31:23.000Z
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
7
2021-01-24T11:23:24.000Z
2022-02-27T13:19:28.000Z
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
4
2020-10-24T22:17:42.000Z
2022-01-20T08:01:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################## # PalGate Token Extraction Tool # ######################################################## # # # Like my work? please consider buying me a ...
42.626168
101
0.534093
499
4,561
4.723447
0.344689
0.074671
0.023759
0.020365
0.140008
0.114552
0.054306
0.038184
0.038184
0
0
0.006739
0.251699
4,561
106
102
43.028302
0.683856
0.085508
0
0.157895
0
0
0.402708
0.082999
0
0
0
0
0.065789
1
0.105263
false
0
0.039474
0
0.210526
0.315789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a608ef057ab4973763dbb8b9d94aa73dd295ec64
3,335
py
Python
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
1
2020-04-19T06:43:30.000Z
2020-04-19T06:43:30.000Z
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
null
null
null
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
null
null
null
import os import ArrayUtils import GoogleMetadataUtils from objects.ExportedObject import ExportedObject from objects.Image import Image counter = 0 def directory_walk(start_path, extension): to_return = [] for (dirpath, dirnames, filenames) in os.walk(start_path): for filename in filenames: ...
37.055556
113
0.689055
362
3,335
6.052486
0.21547
0.142401
0.131447
0.098585
0.560018
0.472387
0.375628
0.375628
0.375628
0.375628
0
0.001544
0.223388
3,335
89
114
37.47191
0.844402
0.028186
0
0.15625
0
0
0.050649
0
0
0
0
0
0
1
0.0625
false
0
0.078125
0
0.171875
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a60930ad0dd78d95d72937ed81ded6b37a3f470b
501
py
Python
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
null
null
null
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
1
2022-02-10T14:02:58.000Z
2022-02-10T14:02:58.000Z
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
null
null
null
from rest_framework.serializers import ModelSerializer from foodcartapp.models import Order, OrderProduct class OrderProductSerializer(ModelSerializer): class Meta: model = OrderProduct fields = ['id', 'product', 'quantity'] class OrderSerializer(ModelSerializer): products = OrderProductSer...
27.833333
86
0.714571
47
501
7.553191
0.659574
0.050704
0.078873
0
0
0
0
0
0
0
0
0
0.181637
501
17
87
29.470588
0.865854
0
0
0.181818
0
0
0.123753
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.636364
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
a60a5e2c81cee18f19368d6d10d396d0396c103a
71
py
Python
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
R=float(input()) PI=3.14159 A=(PI)*(R**2) print("A = {:.4f}".format(A))
17.75
29
0.549296
15
71
2.6
0.733333
0
0
0
0
0
0
0
0
0
0
0.121212
0.070423
71
4
29
17.75
0.469697
0
0
0
0
0
0.138889
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a60a74a8bdf1655be820f9cfcac1059f5d4956f4
882
py
Python
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.models import User from funcionario.forms import FuncionarioForm from configuracao.models import Configuracao def funcionario_eliminar(request, username = None): user = User....
26.727273
60
0.717687
103
882
6.029126
0.407767
0.048309
0.05314
0.067633
0
0
0
0
0
0
0
0.012397
0.176871
882
32
61
27.5625
0.842975
0
0
0
0
0
0.052334
0.035361
0
0
0
0
0
1
0.176471
false
0
0.294118
0
0.647059
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
a60b9d285aa7339e1763df0a9faec446ada591b3
2,658
py
Python
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
2
2021-10-03T14:24:52.000Z
2021-11-17T14:55:53.000Z
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
null
null
null
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
1
2021-10-03T14:25:36.000Z
2021-10-03T14:25:36.000Z
# https://raw.githubusercontent.com/crux82/ganbert-pytorch/main/GANBERT_pytorch.ipynb # [WIP], not finished import torch from torch.nn import Dropout, LeakyReLU, Linear, Module, Sequential from transformers import AutoModel class Generator(Module): def __init__( self, noise_size=100, output_size=768, hidd...
34.519481
85
0.598194
315
2,658
4.796825
0.32381
0.101919
0.031767
0.033752
0.259431
0.207809
0.207809
0.16413
0.16413
0.16413
0
0.02487
0.27389
2,658
76
86
34.973684
0.758031
0.133935
0
0.310345
0
0
0
0
0
0
0
0
0
1
0.103448
false
0.017241
0.051724
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a60d2023dee851677b4f026e9f20232d3cae3173
2,571
py
Python
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
13
2015-05-06T13:38:13.000Z
2021-11-09T21:39:01.000Z
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
3
2015-08-21T17:31:20.000Z
2021-07-07T08:39:11.000Z
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
17
2015-07-24T06:00:59.000Z
2021-11-09T21:38:52.000Z
#!/usr/bin/env python # encoding: utf-8 # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licens...
26.505155
80
0.698172
317
2,571
5.599369
0.470032
0.033803
0.028732
0.018028
0.064225
0.064225
0.064225
0.064225
0.064225
0.064225
0
0.007489
0.220926
2,571
96
81
26.78125
0.878682
0.31233
0
0.179487
0
0
0.278351
0.036479
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a60d82cbe53076fcdd04723f529bca35a26a771d
2,270
py
Python
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
levels = [ [ # W = Muro, E = Meta, P = Jugador 1, J = Jugador 2, H = Jugador 3, I = Jugador 4, "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW", "W W", "W J W", "W P W", "W W", "W W", "W ...
32.898551
84
0.234802
150
2,270
3.553333
0.166667
0.292683
0.326454
0.322702
0.707317
0.502814
0.502814
0.433396
0.418386
0.418386
0
0.005427
0.67533
2,270
69
85
32.898551
0.717775
0.034802
0
0.838235
0
0
0.877113
0.100503
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
a60f47844b4e66c2b41b6d88b7e848c7e6e83731
1,761
py
Python
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
import praw import pandas as pd import reddit_constants class RedditClient(object): __shared_instance = "RedditClient" @staticmethod def get_instance(): """ To implement singleton pattern """ if RedditClient.__shared_instance == "RedditClient": RedditClient() ...
33.226415
193
0.570131
189
1,761
5.10582
0.328042
0.093264
0.124352
0.015544
0.325389
0.232124
0.178238
0.095337
0
0
0
0.007432
0.312323
1,761
53
194
33.226415
0.787779
0.0477
0
0
0
0
0.101198
0
0
0
0
0
0
1
0.105263
false
0
0.078947
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a60fb9d495770e6c4eafb910265165abbcd032b4
272
py
Python
AutotestWebD/apps/config/views/service.py
yangjourney/sosotest
2e88099a829749910ca325253c9b1a2e368d21a0
[ "MIT" ]
422
2019-08-18T05:04:20.000Z
2022-03-31T06:49:19.000Z
AutotestWebD/apps/config/views/service.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
10
2019-10-24T09:55:38.000Z
2021-09-29T17:28:43.000Z
AutotestWebD/apps/config/views/service.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
202
2019-08-18T05:04:27.000Z
2022-03-30T05:57:18.000Z
from apps.config.services.serviceConfService import ServiceConfService from django.shortcuts import HttpResponse import json def getServiceConf(request): serviceConf = ServiceConfService.queryServiceConfSort(request) return HttpResponse(json.dumps(serviceConf))
30.222222
70
0.841912
26
272
8.807692
0.653846
0
0
0
0
0
0
0
0
0
0
0
0.099265
272
8
71
34
0.934694
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
1
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
1
0
1
0
0
4
a6105ef939a3d47b3dd6af778e4ee27a4e38dd46
2,436
py
Python
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
3
2019-07-16T21:10:18.000Z
2021-09-01T03:01:23.000Z
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
9
2019-04-15T21:46:21.000Z
2021-02-09T16:17:24.000Z
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
1
2020-03-03T14:41:25.000Z
2020-03-03T14:41:25.000Z
#!/usr/bin/python3 # Gets all files below where this script is run, and checks to see if any contain # the specified keywords. A report is generated at the end. # # Files with certain extensions are excluded, and directories with certain names are excluded. # # The actual keywords are kept in a separate file so...
36.358209
193
0.619458
325
2,436
4.544615
0.461538
0.048747
0.02979
0.020311
0.028436
0
0
0
0
0
0
0.004417
0.256568
2,436
66
194
36.909091
0.811154
0.238506
0
0.04878
1
0
0.105856
0
0
0
0
0
0
1
0.097561
false
0.02439
0.02439
0
0.146341
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a610ecc05f6f6e302f862afbc071148996b7ed46
19,020
py
Python
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
import argparse from fnmatch import fnmatch import os.path import re import sys from ii_irods.coll_utils import resolve_base_path, convert_to_absolute_path, get_dataobjects_in_collection from ii_irods.coll_utils import get_direct_subcollections, get_subcollections, collection_exists from ii_irods.do_utils import get_d...
39.055441
114
0.601472
2,143
19,020
5.166589
0.175922
0.018696
0.033779
0.018967
0.273573
0.216402
0.165101
0.155708
0.140896
0.126084
0
0.002902
0.293323
19,020
486
115
39.135802
0.820847
0.109884
0
0.21547
0
0
0.198702
0.001251
0
0
0
0
0
1
0.058011
false
0
0.035912
0
0.138122
0.077348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6117f3294c81246ee664c4b1aa72e59144f4cc8
6,998
py
Python
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
4
2020-07-14T16:36:09.000Z
2020-11-24T14:28:02.000Z
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
20
2020-06-19T04:37:33.000Z
2021-07-26T04:27:46.000Z
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
2
2020-11-11T11:52:06.000Z
2020-12-03T10:22:47.000Z
import unittest import pandas from pyarxaas.models.attribute_type import AttributeType from pyarxaas.models.dataset import Dataset from tests.pyarxaas import data_generator class DatasetTest(unittest.TestCase): def setUp(self): self.test_data = [['id', 'name'], ['0', 'Viktor']...
43.7375
110
0.69577
789
6,998
5.858048
0.101394
0.048464
0.049329
0.057551
0.657075
0.609476
0.594115
0.558633
0.492211
0.448074
0
0.010152
0.183624
6,998
159
111
44.012579
0.79888
0.010003
0
0.372881
0
0
0.034378
0
0
0
0
0
0.279661
1
0.161017
false
0
0.042373
0
0.211864
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a612ee91d33761ed97242b786506ebee4d8f2061
6,955
py
Python
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
3
2021-06-19T10:49:26.000Z
2022-03-26T11:31:28.000Z
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
1
2021-10-12T15:40:55.000Z
2021-10-12T15:40:55.000Z
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
null
null
null
import random import matplotlib.pyplot as plt import numpy as np import torch from perception.utils.segmentation_labels import CARLA_CLASSES, DEFAULT_CLASSES def get_segmentation_colors(n_classes, only_random=False, class_indxs=None, color_seed=73): assert only_random or class_indxs random.seed(color_seed) ...
41.646707
137
0.68555
964
6,955
4.716805
0.18361
0.043545
0.024632
0.015835
0.363097
0.308115
0.261051
0.192655
0.168683
0.168683
0
0.020736
0.202588
6,955
166
138
41.89759
0.799135
0.182027
0
0.17757
0
0
0.017159
0
0
0
0
0.006024
0.018692
1
0.093458
false
0
0.046729
0
0.186916
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a613b9a8c301525a013a5679b0f23d6447d8344b
7,214
py
Python
nova3/engines/nyaapantsu.py
chr0nu5/qBittorrent-Plugins-Easy-Install
2b905523671f3d75977d1dc399cf6a8c723f463e
[ "MIT" ]
null
null
null
nova3/engines/nyaapantsu.py
chr0nu5/qBittorrent-Plugins-Easy-Install
2b905523671f3d75977d1dc399cf6a8c723f463e
[ "MIT" ]
null
null
null
nova3/engines/nyaapantsu.py
chr0nu5/qBittorrent-Plugins-Easy-Install
2b905523671f3d75977d1dc399cf6a8c723f463e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #VERSION: 1.2 #AUTHORS: Joost Bremmer (toost.b@gmail.com) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
35.712871
83
0.530358
839
7,214
4.488677
0.312277
0.030271
0.045141
0.055762
0.275624
0.236325
0.141264
0.122677
0.071163
0.030271
0
0.008778
0.368312
7,214
201
84
35.890547
0.817643
0.305656
0
0.264463
0
0.008264
0.074685
0.01176
0
0
0
0
0
1
0.057851
false
0.024793
0.049587
0
0.157025
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a615cb65339565e253a5ef2e1e9fe7fc3d78dd10
806
py
Python
python-leetcode/it_03.03.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
12
2020-01-16T08:55:27.000Z
2021-12-02T14:52:39.000Z
python-leetcode/it_03.03.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
null
null
null
python-leetcode/it_03.03.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
1
2019-12-11T12:00:38.000Z
2019-12-11T12:00:38.000Z
class StackOfPlates: def __init__(self, cap: int): self.stack = [] self.cap = cap def push(self, val: int) -> None: if len(self.stack) == 0 or len(self.stack[-1]) >= self.cap: self.stack.append([]) last = self.stack[-1] last.append(val) def pop(self) -> int: while len(self.stack) ...
25.1875
68
0.600496
124
806
3.854839
0.290323
0.24477
0.175732
0.087866
0.156904
0.096234
0
0
0
0
0
0.024272
0.233251
806
31
69
26
0.749191
0.188586
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.190476
false
0
0
0
0.47619
0
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
a615cdf949b68109cdb350bb44c0f837323c64f3
3,580
py
Python
siebenapp/ui/goalwidget.py
ahitrin/SiebenApp
1e3c8b9d90b6bed4efa28a9a9fa65ed37525c4ae
[ "MIT" ]
14
2016-11-26T08:35:19.000Z
2022-03-01T05:20:11.000Z
siebenapp/ui/goalwidget.py
ahitrin/SiebenApp
1e3c8b9d90b6bed4efa28a9a9fa65ed37525c4ae
[ "MIT" ]
98
2016-11-28T08:58:48.000Z
2022-03-18T17:59:04.000Z
siebenapp/ui/goalwidget.py
ahitrin/SiebenApp
1e3c8b9d90b6bed4efa28a9a9fa65ed37525c4ae
[ "MIT" ]
1
2017-12-20T12:42:18.000Z
2017-12-20T12:42:18.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui/goal.ui' # # Created by: PyQt5 UI code generator 5.8.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_GoalBody(object): def setupUi(self, GoalBody): GoalBody.set...
43.13253
88
0.708101
339
3,580
7.351032
0.250737
0.04695
0.042135
0.040931
0.349117
0.319021
0.287721
0.287721
0.287721
0.252006
0
0.011855
0.198883
3,580
82
89
43.658537
0.857043
0.050279
0
0.242857
1
0
0.033599
0
0
0
0
0
0
1
0.028571
false
0
0.014286
0
0.057143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a619383cde46a46920c9996c56eea79c404d6a6c
8,342
py
Python
trainer/audio_trainer.py
ryanwongsa/DeepFakeDetectionChallenge
b9902b88e89d5165190ad673d5dfb10cc821d5a1
[ "Apache-2.0" ]
5
2020-05-07T18:14:17.000Z
2021-11-18T02:44:55.000Z
trainer/audio_trainer.py
ryanwongsa/DeepFakeDetectionChallenge
b9902b88e89d5165190ad673d5dfb10cc821d5a1
[ "Apache-2.0" ]
1
2021-08-17T09:40:28.000Z
2021-09-20T16:57:29.000Z
trainer/audio_trainer.py
ryanwongsa/DeepFakeDetectionChallenge
b9902b88e89d5165190ad673d5dfb10cc821d5a1
[ "Apache-2.0" ]
1
2020-12-21T08:31:18.000Z
2020-12-21T08:31:18.000Z
import torch torch.backends.cudnn.benchmark = True from trainer.base_audio_trainer import BaseAudioTrainer from logger.new_callbacks import Callbacks from torch.utils.data import DataLoader from dataloader.audio_dataset import AudioDataset from torch.optim.lr_scheduler import CosineAnnealingLR from models.audio_mode...
42.131313
296
0.649245
1,116
8,342
4.576165
0.171147
0.04347
0.043078
0.035246
0.262972
0.189348
0.125906
0.111807
0.087331
0.07617
0
0.009009
0.254855
8,342
198
297
42.131313
0.81258
0.011268
0
0.156863
0
0
0.017693
0
0
0
0
0
0
1
0.071895
false
0.013072
0.091503
0
0.196078
0.006536
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a61d2ff865e88390f5a4f3b8c8da817f93d2e1a6
355
py
Python
Calculator/operations/__init__.py
Shakil-1501/Session12
0ae424a6ac8949b21b89aa1548b6e997a2e4c133
[ "MIT" ]
null
null
null
Calculator/operations/__init__.py
Shakil-1501/Session12
0ae424a6ac8949b21b89aa1548b6e997a2e4c133
[ "MIT" ]
null
null
null
Calculator/operations/__init__.py
Shakil-1501/Session12
0ae424a6ac8949b21b89aa1548b6e997a2e4c133
[ "MIT" ]
null
null
null
from .sine import * from .cose import * from .tane import * from .tanhe import * from .ee import * from .loge import * from .sigmoide import * from .relue import * from .softmaxe import * __all__= (sine.__all__+ cose.__all__ + tane.__all__ + tanhe.__all__ + ee.__all__ + loge.__all__ + sigmoide.__all__ + relu...
25.357143
151
0.698592
46
355
4.521739
0.26087
0.384615
0
0
0
0
0
0
0
0
0
0
0.194366
355
13
152
27.307692
0.727273
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.9
0
0.9
0
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
1
0
1
0
0
3
a61da44df1b4b01ba75ab9949fbc2b4e355911f3
121
py
Python
Basico/ex002.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Basico/ex002.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Basico/ex002.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
nome = str(input('Qual é seu nome?')).upper().capitalize() print('prazer em conhecelo, \033[1;34m{}\033[m!'.format(nome))
60.5
62
0.677686
20
121
4.1
0.85
0
0
0
0
0
0
0
0
0
0
0.080357
0.07438
121
2
62
60.5
0.651786
0
0
0
0
0
0.459016
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
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
1
0
3
a61e50a3bc6d9d83dac4e1176ba6bdfe1909c870
1,881
py
Python
bin/taxid2lineage.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
5
2021-02-13T09:02:21.000Z
2021-10-06T19:20:41.000Z
bin/taxid2lineage.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
4
2021-05-14T09:02:32.000Z
2022-03-25T05:06:40.000Z
bin/taxid2lineage.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
1
2021-04-05T22:30:44.000Z
2021-04-05T22:30:44.000Z
#! /usr/bin/python3.7 import argparse from viromatch.lib.taxonomy import Taxonomy import os version = '1.0' def eval_cli_arguments(): parser = argparse.ArgumentParser( description='Resolve lineage given taxid.', prog='taxid2lineage.py', add_help=False ) # Optional arguments. ...
21.62069
70
0.600744
209
1,881
5.248804
0.4689
0.050137
0.04649
0.043756
0
0
0
0
0
0
0
0.003715
0.284423
1,881
86
71
21.872093
0.811293
0.128655
0
0.181818
0
0
0.188725
0
0
0
0
0
0
1
0.018182
false
0
0.054545
0
0.090909
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a61f07aff13fd36fc9ecc85e1e4a70ff58848de8
2,779
py
Python
database.py
Konako1/osu-tg-bot
fc569b0a0fe2bc25947eb2fca443f809c84ef980
[ "MIT" ]
1
2022-03-26T16:55:33.000Z
2022-03-26T16:55:33.000Z
database.py
Konako1/osu-tg-bot
fc569b0a0fe2bc25947eb2fca443f809c84ef980
[ "MIT" ]
null
null
null
database.py
Konako1/osu-tg-bot
fc569b0a0fe2bc25947eb2fca443f809c84ef980
[ "MIT" ]
null
null
null
from typing import Optional import aiosqlite from aiogram.dispatcher.middlewares import BaseMiddleware import config class OsuDb: def __init__(self, path: str = config.ASSET_PATH / 'osu.db'): self._conn = aiosqlite.connect(path) async def connect(self): self._conn = await self._conn ...
38.068493
100
0.582944
349
2,779
4.401146
0.203438
0.083333
0.11849
0.104167
0.494792
0.421224
0.352214
0.322917
0.270833
0.123698
0
0.001064
0.323498
2,779
72
101
38.597222
0.815957
0
0
0.3
0
0
0.171644
0
0
0
0
0
0
1
0.016667
false
0
0.066667
0
0.183333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6238a7cdde1b28e0b8b179e20a5211a8bc243b8
8,423
py
Python
module_utils/rsd_common.py
intel/ansible-rsd-provisioning
757f4d5ca9447a22efdf56fda337dc19579c6380
[ "Apache-2.0" ]
2
2019-07-17T09:56:41.000Z
2020-03-14T21:32:32.000Z
module_utils/rsd_common.py
intel/ansible-rsd-provisioning
757f4d5ca9447a22efdf56fda337dc19579c6380
[ "Apache-2.0" ]
null
null
null
module_utils/rsd_common.py
intel/ansible-rsd-provisioning
757f4d5ca9447a22efdf56fda337dc19579c6380
[ "Apache-2.0" ]
4
2019-11-02T00:31:07.000Z
2021-02-17T11:11:46.000Z
# Copyright (c) 2019 Intel Corporation. All rights reserved. # # GNU General Public License v3.0+ # (see LICENSE.GPL or https://www.gnu.org/licenses/gpl-3.0.txt) # # Authors: # - Igor D.C. - <igor.duarte.cardoso@intel.com> # - Marco Chiappero - <marco.chiappero@intel.com> ###########################################...
31.429104
78
0.515256
846
8,423
4.917258
0.231678
0.03125
0.023558
0.030288
0.151202
0.111538
0.062019
0.0375
0.018269
0.018269
0
0.00675
0.384424
8,423
267
79
31.546816
0.795564
0.041672
0
0.215962
0
0
0.083833
0
0
0
0
0
0
1
0.079812
false
0.042254
0.028169
0.023474
0.183099
0.004695
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a62415e6af752f35b91e91cf93818faa54736ef9
5,309
py
Python
src/dockerblade/daemon.py
ChrisTimperley/dockerblade
2be99bb9b2919ac87831879e04d6739d6967a8f3
[ "Apache-2.0" ]
1
2020-06-27T23:21:00.000Z
2020-06-27T23:21:00.000Z
src/dockerblade/daemon.py
ChrisTimperley/dockerblade
2be99bb9b2919ac87831879e04d6739d6967a8f3
[ "Apache-2.0" ]
66
2019-10-12T22:20:49.000Z
2021-12-08T20:15:28.000Z
src/dockerblade/daemon.py
ChrisTimperley/dockerblade
2be99bb9b2919ac87831879e04d6739d6967a8f3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = ('DockerDaemon',) from types import TracebackType from typing import Any, Mapping, Optional, Type from loguru import logger import attr import docker from .container import Container @attr.s(frozen=True) class DockerDaemon: """Maintains a connection to a Docker daemon.""" ...
42.134921
78
0.569787
587
5,309
5.078365
0.258944
0.024153
0.032204
0.026837
0.127139
0.103656
0.096612
0.086548
0.062395
0.062395
0
0.000289
0.348465
5,309
125
79
42.472
0.861521
0.362403
0
0.058824
0
0
0.105643
0
0
0
0
0
0
1
0.088235
false
0
0.088235
0.014706
0.279412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6241a7c60cc25d87aeba3bf7a47f6e1a3cb5132
1,606
py
Python
AreaFinder.py
karmatek/MinnoProto
cb231b44c055b910ce0e890f48fff0e0c7525c6e
[ "MIT" ]
null
null
null
AreaFinder.py
karmatek/MinnoProto
cb231b44c055b910ce0e890f48fff0e0c7525c6e
[ "MIT" ]
null
null
null
AreaFinder.py
karmatek/MinnoProto
cb231b44c055b910ce0e890f48fff0e0c7525c6e
[ "MIT" ]
null
null
null
"""this module finds areas of image, it first finds edges in picture's pixel area. then it makes contours of those edges, and draws biggest contours""" import cv2 import numpy as np from matplotlib import pyplot as plt def smartSelectFunc(filepath): #load image to analyze img = cv2.imread(filepath,0) #fin...
37.348837
107
0.702366
218
1,606
5.151376
0.481651
0.021371
0.072128
0.035619
0.046305
0.046305
0
0
0
0
0
0.027314
0.179328
1,606
43
108
37.348837
0.824734
0.439601
0
0
0
0
0
0
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.227273
0.227273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a627af630e9c7ea0f65acfa02285e5da65872a94
2,465
py
Python
scripts/detection_configs.py
www516717402/edgeai-mmdetection
c5563434728da227678ba3588621b4b426cda43d
[ "BSD-3-Clause" ]
null
null
null
scripts/detection_configs.py
www516717402/edgeai-mmdetection
c5563434728da227678ba3588621b4b426cda43d
[ "BSD-3-Clause" ]
null
null
null
scripts/detection_configs.py
www516717402/edgeai-mmdetection
c5563434728da227678ba3588621b4b426cda43d
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018-2020, Texas Instruments # 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, this # list of condition...
48.333333
103
0.78499
372
2,465
5.139785
0.47043
0.041841
0.078452
0.047071
0.277197
0.191946
0.162657
0.111925
0.111925
0.111925
0
0.011321
0.139959
2,465
50
104
49.3
0.890566
0.953753
0
0
0
0
0.5
0.5
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a6282b4f65c892360e83ec0d77ab379ee0c3ed7f
93
py
Python
hello_world.py
economicactivist/profiles-rest-api
298dfc81eea353c3db9c43b3514fd95b5e557e0c
[ "MIT" ]
null
null
null
hello_world.py
economicactivist/profiles-rest-api
298dfc81eea353c3db9c43b3514fd95b5e557e0c
[ "MIT" ]
5
2021-04-08T21:53:59.000Z
2022-02-10T15:12:26.000Z
hello_world.py
economicactivist/profiles-rest-api
298dfc81eea353c3db9c43b3514fd95b5e557e0c
[ "MIT" ]
null
null
null
print('hello world!') a = "cat dog fish monkey".split() for animal in a: print(animal)
13.285714
33
0.645161
15
93
4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.204301
93
6
34
15.5
0.810811
0
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
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
1
0
3
a628a61d4eade64beae8f07a2d6973ce8921c088
1,391
py
Python
users/models.py
faisoabdirisak/NextDoor
57eb963ea8e68cc1b3516ec1005418b3fdc6283a
[ "Unlicense", "MIT" ]
null
null
null
users/models.py
faisoabdirisak/NextDoor
57eb963ea8e68cc1b3516ec1005418b3fdc6283a
[ "Unlicense", "MIT" ]
null
null
null
users/models.py
faisoabdirisak/NextDoor
57eb963ea8e68cc1b3516ec1005418b3fdc6283a
[ "Unlicense", "MIT" ]
null
null
null
# from distutils.command.upload import upload # import email # from email.policy import default # from unicodedata import name import email import uuid from django.db import models from django.contrib.auth.models import User # from django.db.models.signals import post_save,post_delete # from django.dispatch import rec...
32.348837
102
0.717469
178
1,391
5.511236
0.404494
0.040775
0.039755
0.051988
0
0
0
0
0
0
0
0.006061
0.169662
1,391
43
103
32.348837
0.84329
0.489576
0
0
0
0
0.02924
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0.076923
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
1
0
1
0
0
2
a62b1c307fdb97895ca854309c5d81de1710a8df
1,438
py
Python
back/babar_twitter/serializers.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
back/babar_twitter/serializers.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
back/babar_twitter/serializers.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
import json from datetime import timedelta from django.utils import timezone from rest_framework import serializers import tweepy from .models import * # Get secrets and create the API instance secrets = open("./babar_twitter/SECRETS.json", 'r') keychain = json.load(secrets) secrets.close() twitter_auth = tweepy.OAut...
29.958333
95
0.656467
166
1,438
5.608434
0.572289
0.035446
0
0
0
0
0
0
0
0
0
0.006434
0.243394
1,438
47
96
30.595745
0.849265
0.140473
0
0
0
0
0.096416
0.023891
0
0
0
0
0
1
0.066667
false
0.033333
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a62b50d2b959f583c0aa23c6919ec3d633f00676
1,579
py
Python
tools/software-tool-chain/instruction_coding.py
jufo-ufo/Breadboard-Computer
f19089f88adaa13c53dfe79571ff90b0de9a34a3
[ "Apache-2.0" ]
null
null
null
tools/software-tool-chain/instruction_coding.py
jufo-ufo/Breadboard-Computer
f19089f88adaa13c53dfe79571ff90b0de9a34a3
[ "Apache-2.0" ]
null
null
null
tools/software-tool-chain/instruction_coding.py
jufo-ufo/Breadboard-Computer
f19089f88adaa13c53dfe79571ff90b0de9a34a3
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Tuple INSTRUCTIONS: Dict[str, Tuple[str, str, str, int]] = { "nop": ("", "", "", 0x00), "mov": ("r", "", "rc", 0x01), "add": ("r", "r", "rc", 0x02), "sub": ("r", "r", "rc", 0x03), "mul": ("r", "r", "rc", 0x04), "div": ("r", "r", "rc", 0x05), "xor": ("r", "r", "rc", ...
29.240741
60
0.329322
179
1,579
2.899441
0.586592
0.115607
0.084778
0
0
0
0
0
0
0
0
0.100255
0.254592
1,579
53
61
29.792453
0.340697
0
0
0
0
0
0.166561
0
0
0
0.10133
0
0
1
0
false
0
0.021277
0
0.021277
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a62c74b285e912ac651e99cb611624923fcd7697
1,105
py
Python
examples/canopen/canopen_example.py
RobertoRoos/ingenialink-python
c5e82dfbff17898bb316f5dc3f91a7f3c049ba20
[ "MIT" ]
null
null
null
examples/canopen/canopen_example.py
RobertoRoos/ingenialink-python
c5e82dfbff17898bb316f5dc3f91a7f3c049ba20
[ "MIT" ]
null
null
null
examples/canopen/canopen_example.py
RobertoRoos/ingenialink-python
c5e82dfbff17898bb316f5dc3f91a7f3c049ba20
[ "MIT" ]
null
null
null
import sys from ingenialink.canopen.net import Network, CAN_DEVICE def run_example(): net = None try: net = Network(device=CAN_DEVICE.PCAN) nodes = net.detect_nodes() net.scan('canopen_0.2.1.eds', 'registers_dictionary_canopen.xdf') drives_connected = net.servos if len(...
30.694444
81
0.514932
123
1,105
4.439024
0.536585
0.082418
0.058608
0.065934
0.087912
0.087912
0
0
0
0
0
0.010309
0.38552
1,105
35
82
31.571429
0.793814
0
0
0.272727
0
0
0.159276
0.028959
0
0
0
0
0
1
0.030303
false
0.030303
0.060606
0
0.090909
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a62e5d77c05596c38b887d3ac6ee4a9230f19780
5,051
py
Python
rnmu/test/test_acontrario_point.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
8
2017-06-13T13:07:34.000Z
2020-02-13T06:30:42.000Z
rnmu/test/test_acontrario_point.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
null
null
null
rnmu/test/test_acontrario_point.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
3
2017-06-10T18:30:57.000Z
2019-03-19T07:28:25.000Z
from __future__ import print_function import matplotlib.pyplot as plt import matplotlib.colors as plt_colors import numpy as np import scipy.io import scipy.stats from rnmu.pme.point import Point from rnmu.pme.line import Line import rnmu.pme.stats as stats def plot_soft_point(ax, point, sigma, box, n_levels=64, colo...
31.372671
82
0.567808
752
5,051
3.678191
0.230053
0.0094
0.03073
0.040492
0.199205
0.164497
0.095445
0.095445
0.07086
0.07086
0
0.043893
0.273807
5,051
160
83
31.56875
0.710196
0.036824
0
0.128205
0
0
0.012554
0
0
0
0
0
0
1
0.034188
false
0
0.076923
0
0.136752
0.034188
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a62ea8307891d611a45992bc024911fc8e8e0da9
17,456
py
Python
oldbabylonian/cookbook/poslib.py
sethbam9/tutorials
c259636682304cb516e9048ca8df5a3ab92c62cc
[ "MIT" ]
2
2019-07-17T18:51:26.000Z
2019-07-24T19:45:23.000Z
oldbabylonian/cookbook/poslib.py
sethbam9/tutorials
c259636682304cb516e9048ca8df5a3ab92c62cc
[ "MIT" ]
3
2019-01-16T10:56:50.000Z
2020-11-16T16:30:48.000Z
oldbabylonian/cookbook/poslib.py
sethbam9/tutorials
c259636682304cb516e9048ca8df5a3ab92c62cc
[ "MIT" ]
2
2020-12-17T15:41:33.000Z
2021-11-03T18:23:07.000Z
import os import collections from functools import reduce import yaml from tf.lib import writeSets HERE_BASE = "." DROPBOX_BASE = "~/Dropbox/obb" SET_NAME = "sets.tfx" MODULE = "pos" TF_LOC = f"{MODULE}/tf" def getCases(caseStr): caseLines = caseStr.strip().split("\n") result = {} for caseLine in case...
29.737649
103
0.507734
1,832
17,456
4.830786
0.158843
0.010847
0.025424
0.00791
0.256497
0.199548
0.139887
0.12791
0.116723
0.116723
0
0.00707
0.368011
17,456
586
104
29.788396
0.795141
0.011629
0
0.318681
0
0.013187
0.149336
0.02546
0
0
0
0
0
1
0.035165
false
0
0.010989
0.008791
0.063736
0.035165
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a630e19b17abd22ec5eb9f8bfa6cd41dd44b3348
1,613
py
Python
tcfcli/cmds/native/startapi/cli.py
tencentyun/scfcli
ef15508ad34a851cf0d2750dfaa5202f6a600887
[ "Apache-2.0" ]
103
2019-06-11T06:09:56.000Z
2021-12-18T22:48:59.000Z
tcfcli/cmds/native/startapi/cli.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
8
2019-07-12T12:08:40.000Z
2020-10-20T07:18:17.000Z
tcfcli/cmds/native/startapi/cli.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
49
2019-06-11T06:26:05.000Z
2020-02-19T08:13:36.000Z
# -*- coding: utf-8 -*- import click from tcfcli.cmds.native.common.start_api_context import StartApiContext from tcfcli.help.message import NativeHelp as help DEF_TMP_FILENAME = "template.yaml" @click.command(name='start-api', short_help=help.START_API_SHORT_HElP) @click.option('--env-vars', '-n', help='JSON file ...
36.659091
100
0.681959
200
1,613
5.295
0.35
0.05949
0.0661
0.067989
0.238905
0.155807
0.1322
0.1322
0.1322
0.1322
0
0.000776
0.201488
1,613
43
101
37.511628
0.821429
0.083075
0
0
0
0
0.123611
0
0
0
0
0
0
1
0.071429
false
0
0.107143
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a63284b08e3b3a719f709e9f2059ec76a6420514
1,905
py
Python
testing/dummy_usb.py
dominikandreas/modtpy
90616cee4e7ae34ecc56c24faa003e1ffd0210de
[ "MIT" ]
3
2019-01-24T16:40:22.000Z
2020-11-09T22:24:12.000Z
testing/dummy_usb.py
dominikandreas/modtpy
90616cee4e7ae34ecc56c24faa003e1ffd0210de
[ "MIT" ]
null
null
null
testing/dummy_usb.py
dominikandreas/modtpy
90616cee4e7ae34ecc56c24faa003e1ffd0210de
[ "MIT" ]
null
null
null
from modtpy.api.modt import ModT, Mode from modtpy.api.errors import PrinterError import logging from contextlib import contextmanager def dummy_device_function(f): def __inner__(self, *args, **kwargs): logging.info("Device.%s called with args: %s, kwargs: %s", f.__name__, str(args), str(kwargs)) ...
24.74026
102
0.622572
224
1,905
4.946429
0.357143
0.059567
0.102888
0.099278
0.146209
0.108303
0
0
0
0
0
0
0.291864
1,905
76
103
25.065789
0.821349
0
0
0.232143
0
0
0.052549
0
0
0
0
0
0
1
0.214286
false
0.071429
0.071429
0.017857
0.392857
0.017857
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
a6329ec460cd0fd9eb39a536eca18ce065e12138
712
py
Python
core/models/bert/classifier.py
readerbench/PASTEL
bef88d05c37b68f62a76983e4c31d9591b9a679a
[ "Apache-2.0" ]
null
null
null
core/models/bert/classifier.py
readerbench/PASTEL
bef88d05c37b68f62a76983e4c31d9591b9a679a
[ "Apache-2.0" ]
null
null
null
core/models/bert/classifier.py
readerbench/PASTEL
bef88d05c37b68f62a76983e4c31d9591b9a679a
[ "Apache-2.0" ]
null
null
null
from torch.nn.functional import relu, softmax, sigmoid from transformers import BertModel import torch.nn as nn class BERTClassifier(nn.Module): def __init__(self, n_classes, pretrained_bert_model): super(BERTClassifier, self).__init__() self.bert = BertModel.from_pretrained(pretrained_bert_model) self....
37.473684
84
0.75
101
712
5.019802
0.415842
0.078895
0.08284
0.118343
0.18146
0.18146
0.126233
0
0
0
0
0.003295
0.147472
712
19
85
37.473684
0.83196
0
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a6333b4280980727cc41b230009b8b7911647e4a
3,095
py
Python
django/apps/audit/operations.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
null
null
null
django/apps/audit/operations.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
93
2020-05-19T18:14:12.000Z
2022-03-29T00:26:39.000Z
django/apps/audit/operations.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
1
2020-11-21T20:24:35.000Z
2020-11-21T20:24:35.000Z
from typing import Type from django.db.migrations.operations.base import Operation from django.db.models import Model class AddAuditOperation(Operation): reduces_to_sql = True reversible = True enabled = True def __init__(self, model_name, audit_rows=True, audit_text=False, excluded=('created', 'mod...
34.388889
104
0.57189
321
3,095
5.23053
0.29595
0.071471
0.046456
0.071471
0.392496
0.392496
0.392496
0.392496
0.346039
0.30137
0
0.000972
0.33538
3,095
89
105
34.775281
0.815265
0.036511
0
0.315068
0
0
0.093047
0.007054
0
0
0
0
0
1
0.109589
false
0.013699
0.041096
0.027397
0.260274
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a63517af775b6810696eee33fd69c06e61c4d35a
484
py
Python
DP&Memorization/272.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
DP&Memorization/272.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
DP&Memorization/272.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
"""272. Climbing Stairs II """ class Solution: """ @param n: An integer @return: An Integer """ def climbStairs2(self, n): # write your code here if n == 0: ## 0 is 1 step return 1 if n <= 2: return n last_two_step = 1 last_step = 1 ...
21.043478
94
0.508264
67
484
3.522388
0.447761
0.135593
0.139831
0.20339
0.245763
0.194915
0
0
0
0
0
0.044674
0.39876
484
22
95
22
0.766323
0.202479
0
0
0
0
0
0
0
0
0
0.045455
0
1
0.083333
false
0
0
0
0.416667
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
1
0
0
0
0
0
0
0
0
0
0
2
a635f25e0d832aa8c213627d281f0fbe8a76415f
9,791
py
Python
train_due.py
BlackHC/DUE
e6370a89f9aab8bfbbafe0d9a544dd637867751d
[ "MIT" ]
49
2021-02-23T14:34:04.000Z
2022-03-24T22:50:02.000Z
train_due.py
BlackHC/DUE
e6370a89f9aab8bfbbafe0d9a544dd637867751d
[ "MIT" ]
2
2021-12-06T22:25:41.000Z
2022-02-02T12:38:08.000Z
train_due.py
BlackHC/DUE
e6370a89f9aab8bfbbafe0d9a544dd637867751d
[ "MIT" ]
13
2021-03-05T01:35:12.000Z
2022-02-22T11:24:14.000Z
import argparse import json import torch import torch.nn.functional as F from torch.utils.tensorboard.writer import SummaryWriter from ignite.engine import Events, Engine from ignite.metrics import Accuracy, Average, Loss from ignite.contrib.handlers import ProgressBar from gpytorch.mlls import VariationalELBO from ...
28.297688
88
0.629456
1,161
9,791
5.106804
0.234281
0.022769
0.043009
0.012818
0.165964
0.090066
0.069152
0.05802
0.045539
0.03913
0
0.009845
0.263405
9,791
345
89
28.37971
0.812257
0.019406
0
0.162791
0
0
0.13111
0.007504
0
0
0
0
0
1
0.023256
false
0
0.062016
0
0.096899
0.01938
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a637253ad3b575ae1f1d91f3dfdeda8b63c8e5e1
14,583
py
Python
gui.py
tea321000/image_semantic_segmentation
80409858e8d44c1b24695035abf3a68fd83e9574
[ "MIT" ]
14
2020-06-20T01:52:56.000Z
2021-12-11T01:13:23.000Z
gui.py
tea321000/image_semantic_segmentation
80409858e8d44c1b24695035abf3a68fd83e9574
[ "MIT" ]
1
2020-12-28T13:32:19.000Z
2020-12-28T13:32:19.000Z
gui.py
tea321000/image_semantic_segmentation
80409858e8d44c1b24695035abf3a68fd83e9574
[ "MIT" ]
1
2020-10-15T11:57:45.000Z
2020-10-15T11:57:45.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'gui4.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, ...
55.873563
149
0.696907
1,644
14,583
5.995742
0.138686
0.041392
0.030334
0.060262
0.422441
0.344425
0.172568
0.125495
0.101958
0.095972
0
0.021547
0.185284
14,583
260
150
56.088462
0.808097
0.018446
0
0.081301
1
0
0.095205
0.028589
0
0
0
0
0
1
0.00813
false
0
0.004065
0
0.01626
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
a6377793c412ebc024d19ecb586fc91e462e185d
2,032
py
Python
dataset/cifar10_c.py
xuanqing94/NeuralSDE
f3511799cfc9c3d6b95ff9bcb07563df88715e0c
[ "MIT" ]
5
2020-06-28T07:15:35.000Z
2022-01-20T01:52:31.000Z
dataset/cifar10_c.py
xuanqing94/NeuralSDE
f3511799cfc9c3d6b95ff9bcb07563df88715e0c
[ "MIT" ]
null
null
null
dataset/cifar10_c.py
xuanqing94/NeuralSDE
f3511799cfc9c3d6b95ff9bcb07563df88715e0c
[ "MIT" ]
null
null
null
from PIL import Image import os import numpy as np import torch import torch.utils.data as data class CIFAR10_C(object): def __init__(self, path, levels=[1,2,3,4,5]): path = os.path.expanduser(path) self.path = path self.levels = levels files = os.listdir(path) datasets = [...
30.328358
88
0.596457
260
2,032
4.5
0.284615
0.089744
0.030769
0.020513
0.213675
0.092308
0.05812
0
0
0
0
0.029861
0.291339
2,032
66
89
30.787879
0.782639
0
0
0.075472
0
0
0.022146
0
0
0
0
0
0.018868
1
0.113208
false
0
0.09434
0.056604
0.320755
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a637a96d54f58cda8435da2b415a24a67ca1842e
3,544
py
Python
models/word2vec/cbow_model.py
ktodorov/eval-historical-texts
e2994d594525d1d92056a6398935376a96659abb
[ "MIT" ]
9
2020-08-27T15:03:46.000Z
2022-01-02T10:48:35.000Z
models/word2vec/cbow_model.py
ktodorov/eval-historical-texts
e2994d594525d1d92056a6398935376a96659abb
[ "MIT" ]
16
2020-09-12T17:37:59.000Z
2020-11-18T10:36:32.000Z
models/word2vec/cbow_model.py
ktodorov/eval-historical-texts
e2994d594525d1d92056a6398935376a96659abb
[ "MIT" ]
1
2022-03-08T16:16:52.000Z
2022-03-08T16:16:52.000Z
import os from typing import Callable import torch from torch import nn from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence from overrides import overrides from entities.metric import Metric from entities.batch_representation import BatchRepresentation from entities.options.embedding_layer_optio...
38.945055
126
0.752822
381
3,544
6.619423
0.288714
0.057098
0.04996
0.039651
0.054718
0.036479
0.036479
0
0
0
0
0.004222
0.198081
3,544
91
127
38.945055
0.883181
0
0
0.028986
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0.26087
0
0.376812
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a637ff1c369797ef1abc4107c3a9bce38ee9b23d
990
py
Python
mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
2
2020-08-20T21:00:53.000Z
2021-08-16T15:28:51.000Z
mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
3
2020-09-24T06:50:43.000Z
2020-12-15T11:02:04.000Z
mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
1
2020-08-20T21:00:59.000Z
2020-08-20T21:00:59.000Z
class deleting_folder: def __init__(self, input_folder='path', ignore_errors=False): import shutil shutil.rmtree(input_folder, ignore_errors=ignore_errors) ############################################################################## class deleting_file: def __init__(self, input_file='path...
26.756757
78
0.435354
94
990
4.308511
0.37234
0.096296
0.081481
0.118519
0.138272
0.138272
0.138272
0.138272
0
0
0
0
0.244444
990
36
79
27.5
0.541444
0
0
0.285714
0
0
0.062169
0
0
0
0
0
0
1
0.142857
false
0
0.190476
0
0.47619
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a63828f981b1214d9b5676be8d17b2e2e623a148
834
py
Python
scripts/opts.py
RipZ/beerbox
b396c5f14ed088ac82c2ebcea9746456748d763d
[ "Apache-2.0" ]
null
null
null
scripts/opts.py
RipZ/beerbox
b396c5f14ed088ac82c2ebcea9746456748d763d
[ "Apache-2.0" ]
null
null
null
scripts/opts.py
RipZ/beerbox
b396c5f14ed088ac82c2ebcea9746456748d763d
[ "Apache-2.0" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description='oled arguments') parser.add_argument( '--port', '-p', type=int, default=0, help='i2c bus number', ) parser.add_argument( '--parameter', '-t', type=str, default='', help='parameter to display', ) parser.add_argument( '--va...
20.341463
62
0.642686
104
834
5.096154
0.375
0.084906
0.160377
0.067925
0.132075
0.132075
0
0
0
0
0
0.026588
0.188249
834
40
63
20.85
0.756278
0
0
0.297297
0
0
0.236211
0
0
0
0.004796
0
0
1
0
false
0
0.054054
0
0.054054
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a63954e3462fad8db808fe79ee0028680cc60ef9
12,864
py
Python
alphacsc/tests/test_d_solver.py
dinalzein/alphacsc
dab672c4da54ed1b89f2364f552cf9b0707fcaeb
[ "BSD-3-Clause" ]
null
null
null
alphacsc/tests/test_d_solver.py
dinalzein/alphacsc
dab672c4da54ed1b89f2364f552cf9b0707fcaeb
[ "BSD-3-Clause" ]
null
null
null
alphacsc/tests/test_d_solver.py
dinalzein/alphacsc
dab672c4da54ed1b89f2364f552cf9b0707fcaeb
[ "BSD-3-Clause" ]
null
null
null
import pytest from numpy.testing import assert_allclose import numpy as np from alphacsc.tests.conftest import N_CHANNELS, N_TIMES_ATOM, N_ATOMS from alphacsc.update_d_multi import prox_d, prox_uv from alphacsc._d_solver import get_solver_d, check_solver_and_constraints from alphacsc._z_encoder import get_z_encoder_...
36.134831
89
0.576803
1,526
12,864
4.529489
0.079948
0.087095
0.094184
0.082465
0.810619
0.783999
0.73669
0.705729
0.603733
0.499277
0
0.008201
0.317553
12,864
355
90
36.23662
0.779132
0.070973
0
0.625498
0
0
0.111017
0
0
0
0
0
0.131474
1
0.059761
false
0
0.027888
0.003984
0.091633
0
0
0
0
null
0
0
0
1
1
1
1
0
0
0
0
0
0
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
4
a639c17d6fd2fadfce0ccee6caacea6630ec1b9f
1,931
py
Python
deploy/app/pipeline.py
PBenavides/credit-fraud-API
154b7ab2247f89649f8244b35d115cf352be23a5
[ "MIT" ]
null
null
null
deploy/app/pipeline.py
PBenavides/credit-fraud-API
154b7ab2247f89649f8244b35d115cf352be23a5
[ "MIT" ]
null
null
null
deploy/app/pipeline.py
PBenavides/credit-fraud-API
154b7ab2247f89649f8244b35d115cf352be23a5
[ "MIT" ]
null
null
null
import pandas as pd import datetime import numpy as np import json from app import artifacts_dict as artifacts from app.utils import get_time_now, get_time_sin_cos class InferencePipeline(): """Pipeline to receive data_dict and transform for inference. --------- Parameters: data_dict: from the reque...
25.407895
102
0.616261
235
1,931
4.851064
0.323404
0.035088
0.017544
0.022807
0
0
0
0
0
0
0
0.003595
0.279648
1,931
76
103
25.407895
0.81596
0.254272
0
0
0
0
0.019259
0
0
0
0
0
0
1
0.151515
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a639e39129cf3e132136165ec24e35e67033099f
1,054
py
Python
setup.py
bfontaine/wpydumps
f01ff6fc7dfae75a5b1526d26e33d92410898971
[ "MIT" ]
1
2021-01-06T17:49:01.000Z
2021-01-06T17:49:01.000Z
setup.py
bfontaine/wpydumps
f01ff6fc7dfae75a5b1526d26e33d92410898971
[ "MIT" ]
null
null
null
setup.py
bfontaine/wpydumps
f01ff6fc7dfae75a5b1526d26e33d92410898971
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from setuptools import setup # http://stackoverflow.com/a/7071358/735926 import re VERSIONFILE = 'wpydumps/__init__.py' verstrline = open(VERSIONFILE, 'rt').read() VSRE = r'^__version__\s+=\s+[\'"]([^\'"]+)[\'"]' mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: ...
28.486486
76
0.634725
121
1,054
5.413223
0.652893
0.087023
0.114504
0.119084
0
0
0
0
0
0
0
0.025731
0.188805
1,054
36
77
29.277778
0.740351
0.059772
0
0.064516
0
0
0.398785
0.021255
0
0
0
0
0
1
0
false
0
0.064516
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
0
0
0
0
0
0
0
0
0
1
0
a63b3f2f9f2a7bfd879e5b06a05f0c6a64277b8f
1,343
py
Python
ambiente_virtual/Lib/site-packages/alembic/testing/suite/test_op.py
PI-UNIVESP-Penapolis/PRODEA
1ced58f52bace8b6de0de3c6516b9fb7231da09c
[ "MIT" ]
1,324
2018-11-27T05:44:41.000Z
2022-03-30T19:49:20.000Z
ambiente_virtual/Lib/site-packages/alembic/testing/suite/test_op.py
PI-UNIVESP-Penapolis/PRODEA
1ced58f52bace8b6de0de3c6516b9fb7231da09c
[ "MIT" ]
452
2018-11-27T22:43:38.000Z
2022-03-28T04:33:43.000Z
ambiente_virtual/Lib/site-packages/alembic/testing/suite/test_op.py
PI-UNIVESP-Penapolis/PRODEA
1ced58f52bace8b6de0de3c6516b9fb7231da09c
[ "MIT" ]
159
2018-11-29T18:46:15.000Z
2022-03-28T16:34:19.000Z
"""Test against the builders in the op.* module.""" from sqlalchemy import Column from sqlalchemy import event from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import Table from sqlalchemy.sql import text from ...testing.fixtures import AlterColRoundTripFixture from ...testing.fixtures imp...
31.232558
77
0.706627
169
1,343
5.272189
0.360947
0.094276
0.074074
0.107744
0.318743
0.297419
0.297419
0.141414
0.141414
0.141414
0
0.00448
0.169025
1,343
42
78
31.97619
0.793907
0.033507
0
0
0
0
0.113777
0.022446
0
0
0
0
0
1
0.241379
false
0
0.275862
0
0.586207
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
1
0
0
2
a63bcfa9188011d5f54844e668d23332501081e1
36,617
py
Python
xData/multiD_XYs.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
14
2019-08-29T23:46:24.000Z
2022-03-21T10:16:25.000Z
xData/multiD_XYs.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
1
2020-08-04T16:14:45.000Z
2021-12-01T01:54:34.000Z
xData/multiD_XYs.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
2
2022-03-03T22:41:41.000Z
2022-03-03T22:54:43.000Z
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> """ This module contains the XYsnd classes for n > 1. """ __metaclass__ = type """ Missing methods copyDataToGridWsAn...
49.482432
198
0.598984
3,247
36,617
6.68956
0.144133
0.020027
0.017126
0.015331
0.259104
0.213112
0.179412
0.133281
0.125363
0.121311
0
0.016971
0.293579
36,617
739
199
49.549391
0.822747
0.122757
0
0.182731
0
0.002008
0.054762
0.008356
0
0
0
0.002706
0
1
0.080321
false
0
0.022088
0.026104
0.126506
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0