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
4492e183962fed54813b021d53bd9806153e51a4
5,771
py
Python
llamass/core.py
gngdb/test_nbdev
ee1223da2ed6267753ead9e1a9a6c0fded147f5a
[ "Apache-2.0" ]
null
null
null
llamass/core.py
gngdb/test_nbdev
ee1223da2ed6267753ead9e1a9a6c0fded147f5a
[ "Apache-2.0" ]
null
null
null
llamass/core.py
gngdb/test_nbdev
ee1223da2ed6267753ead9e1a9a6c0fded147f5a
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified). __all__ = ['ProgressParallel', 'unpack_body_models', 'fast_amass_unpack', 'viable_slice', 'global_index_map', 'load_npz', 'AMASS'] # Cell import argparse import os from shutil import unpack_archive import joblib from tq...
32.977143
109
0.641137
795
5,771
4.475472
0.261635
0.025576
0.005621
0.00787
0.062395
0.025295
0
0
0
0
0
0.007602
0.247791
5,771
175
110
32.977143
0.812025
0.192688
0
0.044643
1
0
0.095939
0
0
0
0
0
0.008929
1
0.133929
false
0
0.089286
0.008929
0.348214
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4498510d6b77bc7f7beb23693878bc29d8636838
1,239
py
Python
server/stylegan2_hypotheses_explorer/logic/model_loader/model_loader.py
HealthML/StyleGAN2-Hypotheses-Explorer
347d7a85cea4b5d13c8c27c8015a085997f377c8
[ "MIT" ]
2
2021-09-22T13:49:16.000Z
2022-01-12T06:04:12.000Z
server/stylegan2_hypotheses_explorer/logic/model_loader/model_loader.py
HealthML/StyleGAN2-Hypotheses-Explorer
347d7a85cea4b5d13c8c27c8015a085997f377c8
[ "MIT" ]
null
null
null
server/stylegan2_hypotheses_explorer/logic/model_loader/model_loader.py
HealthML/StyleGAN2-Hypotheses-Explorer
347d7a85cea4b5d13c8c27c8015a085997f377c8
[ "MIT" ]
null
null
null
from ...models import ModelsArray from ..evaluator import Evaluator from ..generator import Generator from ..paths import MODELS_PATH, MODELS_SCHEMA_PATH from ..util import load_and_validate from .evaluator_loader import EvaluatorLoader from .generator_loader import GeneratorLoader class ModelLoader: @classmethod...
33.486486
70
0.683616
133
1,239
6.045113
0.278195
0.049751
0.059701
0.070896
0.185323
0.09204
0.09204
0.09204
0
0
0
0
0.240517
1,239
36
71
34.416667
0.85441
0
0
0.1
0
0
0.016142
0
0
0
0
0
0
1
0.166667
false
0
0.233333
0.1
0.533333
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
9228424dd155df4ffd37c1fbced19a920d5d267c
2,205
py
Python
file_utils.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
file_utils.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
file_utils.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
def get_poisoned_worker_ids_from_log(log_path): # Unchanged from original work """ :param log_path: string """ with open(log_path, "r") as f: file_lines = [line.strip() for line in f.readlines() if "Poisoning data for workers:" in line] workers = file_lines[0].split("[")[1].split("]")[...
27.222222
102
0.682993
305
2,205
4.534426
0.15082
0.151844
0.140998
0.10846
0.62979
0.535792
0.5141
0.409978
0.298626
0.298626
0
0.004619
0.214512
2,205
81
103
27.222222
0.79388
0.206803
0
0.090909
0
0
0.022755
0
0
0
0
0
0
1
0.212121
false
0
0
0
0.424242
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
92298af1f095c36ed26c5a1f705b442d5253a953
994
py
Python
DL/live_camera_ocr/LC_layer.py
jay-z007/Deep-Learning
982476c597f5e231724797002f2aac9cca7dda30
[ "MIT" ]
null
null
null
DL/live_camera_ocr/LC_layer.py
jay-z007/Deep-Learning
982476c597f5e231724797002f2aac9cca7dda30
[ "MIT" ]
null
null
null
DL/live_camera_ocr/LC_layer.py
jay-z007/Deep-Learning
982476c597f5e231724797002f2aac9cca7dda30
[ "MIT" ]
null
null
null
import numpy as np # data # weights # strides # padding(opt) # def get_patches(): # pass """ data : 3d [in_height 4, in_width 4, in_depth 64] //weights : 5d [in_height (4), in_width (4), in_depth (64), kernel*kernel (3x3), depth (64)] weights : [kernel, kernel, in_depth, in_height-diff, in_width-diff, depth] biases...
28.4
125
0.65493
173
994
3.65896
0.289017
0.094787
0.066351
0.034755
0.157978
0.157978
0.157978
0.157978
0.082149
0
0
0.047962
0.160966
994
35
126
28.4
0.711031
0.113682
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.0625
null
null
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
1
0
0
0
0
0
0
0
0
1
9229a54d657d94f26eb29d835a5ed06e6230132b
13,756
py
Python
experiments/experiments_AISTATS21/simulations_AISTATS.py
AliciaCurth/CATENets
aeeae7625e454e97adff37b66ba2acb527dbd275
[ "BSD-3-Clause" ]
33
2021-02-25T13:50:11.000Z
2022-03-11T14:31:40.000Z
experiments/experiments_AISTATS21/simulations_AISTATS.py
vanderschaarlab/CATENets
d0bc5316fa784fad78d8801367ed57c37193d2c5
[ "BSD-3-Clause" ]
2
2022-02-21T16:16:32.000Z
2022-03-23T17:56:29.000Z
experiments/experiments_AISTATS21/simulations_AISTATS.py
vanderschaarlab/CATENets
d0bc5316fa784fad78d8801367ed57c37193d2c5
[ "BSD-3-Clause" ]
8
2021-02-26T10:20:06.000Z
2021-12-03T16:34:23.000Z
""" Script to generate synthetic simulations in AISTATS paper """ # Author: Alicia Curth import csv import os from typing import Any, Optional, Union from sklearn import clone import catenets.logger as log from catenets.experiment_utils.base import eval_root_mse, get_model_set from catenets.experiment_utils.simulatio...
28.362887
90
0.578947
1,830
13,756
3.966667
0.114754
0.054553
0.034164
0.030858
0.624328
0.603802
0.56826
0.561785
0.517289
0.495247
0
0.025458
0.337525
13,756
484
91
28.421488
0.771096
0.03722
0
0.6097
1
0
0.042354
0.003177
0
0
0
0
0
1
0.009238
false
0
0.025404
0
0.039261
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
922de05004737f8a1dd94f54b6c73ac436f76701
2,248
py
Python
skopt/__init__.py
iaroslav-ai/scikit-optimize
19b25cf103232b410bc814c10701d9dac7361993
[ "BSD-3-Clause" ]
null
null
null
skopt/__init__.py
iaroslav-ai/scikit-optimize
19b25cf103232b410bc814c10701d9dac7361993
[ "BSD-3-Clause" ]
null
null
null
skopt/__init__.py
iaroslav-ai/scikit-optimize
19b25cf103232b410bc814c10701d9dac7361993
[ "BSD-3-Clause" ]
null
null
null
""" Scikit-Optimize, or `skopt`, is a simple and efficient library to minimize (very) expensive and noisy black-box functions. It implements several methods for sequential model-based optimization. `skopt` is reusable in many contexts and accessible. [![Build Status](https://travis-ci.org/scikit-optimize/scikit-optimi...
24.172043
145
0.725089
301
2,248
5.322259
0.445183
0.104869
0.059301
0.069913
0.107366
0.107366
0.107366
0.054931
0
0
0
0.007974
0.163256
2,248
92
146
24.434783
0.8437
0.596975
0
0
0
0
0.190423
0
0
0
0
0
0
1
0
false
0
0.435897
0
0.435897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
922f6ef5cb271b16f5f07d68bd498a48840f0f9a
1,917
py
Python
today/models.py
wwj718/xiguaforvps
a0ff310fc36cd2abcbc912750851d8d2047ee9de
[ "BSD-2-Clause" ]
1
2019-04-21T12:07:40.000Z
2019-04-21T12:07:40.000Z
today/models.py
wwj718/xigua
669dfa904dbd7a62387d56696ff9905d6b2602d2
[ "BSD-2-Clause" ]
null
null
null
today/models.py
wwj718/xigua
669dfa904dbd7a62387d56696ff9905d6b2602d2
[ "BSD-2-Clause" ]
null
null
null
#coding=utf-8 from time import time from urlparse import urlparse from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from mezzanine.core.models import Displayable, Ownable from mezzanine.generic.models import Rating from mezzanine.generic.fields import Rat...
33.051724
90
0.694836
254
1,917
5.188976
0.511811
0.039454
0.018209
0.034901
0.044006
0
0
0
0
0
0
0.005092
0.18049
1,917
57
91
33.631579
0.833864
0.170579
0
0
0
0
0.056519
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0.078947
0.710526
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
923376c6255a2d42cb40cee4a46a52c1f769445d
5,299
py
Python
pyisis/tools/ifp2nbpidx.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
null
null
null
pyisis/tools/ifp2nbpidx.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
null
null
null
pyisis/tools/ifp2nbpidx.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
2
2019-11-08T20:51:54.000Z
2021-08-17T23:49:48.000Z
# -*- coding: utf-8 -*- """ Handling of inverted files. """ __updated__ = "2008-09-25" __created__ = "2008-09-26" __author__ = "Joao Chaves <joaochaves@gpr.com.br>" import os, sys from struct import unpack, pack, calcsize from ZODB import FileStorage, DB from persistent.list import PersistentList import transactio...
26.495
92
0.525382
693
5,299
3.930736
0.275613
0.044053
0.023128
0.033407
0.204846
0.146476
0.135463
0.128488
0.128488
0.110132
0
0.03743
0.324401
5,299
200
93
26.495
0.723464
0.027741
0
0.341772
0
0
0.074426
0.004553
0
0
0
0.005
0
0
null
null
0.006329
0.037975
null
null
0.056962
0
0
0
null
0
0
0
0
0
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
923858a6019ca64a460732a764eed55de1eff904
847
py
Python
server/src/test/deployments/federated_basic_sql/consumer/process_config.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
null
null
null
server/src/test/deployments/federated_basic_sql/consumer/process_config.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
null
null
null
server/src/test/deployments/federated_basic_sql/consumer/process_config.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
null
null
null
# It must be here to retrieve this information from the dummy core_universal_identifier = 'd9d94986-ea14-11e0-bd1d-00216a5807c8' core_universal_identifier_human = 'Consumer' db_database = "WebLabTests" weblab_db_username = 'weblab' weblab_db_password = 'weblab' debug_mode = True ######################### # G...
25.666667
72
0.639906
81
847
6.333333
0.567901
0.093567
0.089669
0
0
0
0
0
0
0
0
0.029178
0.109799
847
32
73
26.46875
0.651194
0.159386
0
0
0
0
0.206704
0.067039
0
0
0
0
0
1
0
false
0.230769
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
923a23b67b9e0d5dbcc8efabd63f537eeef62a29
245
py
Python
urls/events_urls.py
shaban00/flask_rest_api_structure
d7c86920186184dd924aa99a60578fe3e97e1ec1
[ "MIT" ]
null
null
null
urls/events_urls.py
shaban00/flask_rest_api_structure
d7c86920186184dd924aa99a60578fe3e97e1ec1
[ "MIT" ]
null
null
null
urls/events_urls.py
shaban00/flask_rest_api_structure
d7c86920186184dd924aa99a60578fe3e97e1ec1
[ "MIT" ]
null
null
null
__author__ = "Shaban Hassan [shaban00]" """ Regiser all routes for flask socket io """ # SOCKET_EVENTS = [ # { # "event": "connect", # "func": "connect", # "namespace": "namespace" # } # ] SOCKET_EVENTS = []
15.3125
46
0.526531
21
245
5.857143
0.761905
0.195122
0
0
0
0
0
0
0
0
0
0.011628
0.297959
245
15
47
16.333333
0.703488
0.485714
0
0
0
0
0.338028
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
923ba04af990ef5121334fc0e5928459a5c61110
3,197
py
Python
tools/preprocessing/data_annotations_generation.py
galyalina/mmdetection
6906a7afccb569831099df4dc1b1568e184b5ba4
[ "Apache-2.0" ]
null
null
null
tools/preprocessing/data_annotations_generation.py
galyalina/mmdetection
6906a7afccb569831099df4dc1b1568e184b5ba4
[ "Apache-2.0" ]
null
null
null
tools/preprocessing/data_annotations_generation.py
galyalina/mmdetection
6906a7afccb569831099df4dc1b1568e184b5ba4
[ "Apache-2.0" ]
null
null
null
import json import os from matplotlib.patches import Rectangle import matplotlib.pyplot as plt from PIL import Image, ImageDraw # from data_annotations_generation_from_buildings_mask import generate_coco_annotations from data_annotations_generation_from_buildings_mask import generate_coco_annotations # DIRECTORY_ANNO...
37.174419
96
0.663434
377
3,197
5.331565
0.198939
0.034826
0.007463
0.00995
0.323383
0.20995
0.142289
0.142289
0.142289
0.142289
0
0.00159
0.213012
3,197
85
97
37.611765
0.797297
0.166719
0
0.193548
1
0
0.080724
0.017352
0
0
0
0
0
1
0.032258
false
0
0.096774
0
0.129032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
923e47d1027bae34c0af94d37e8d5842e28c81c3
484
py
Python
accounts/migrations/0006_auto_20180819_0030.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
1
2020-06-17T05:25:42.000Z
2020-06-17T05:25:42.000Z
accounts/migrations/0006_auto_20180819_0030.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
null
null
null
accounts/migrations/0006_auto_20180819_0030.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-08-18 22:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_auto_20180818_2349'), ] operations = [ migrations.AlterField( model_name='message', name='topic', ...
25.473684
147
0.580579
53
484
5.207547
0.830189
0
0
0
0
0
0
0
0
0
0
0.087912
0.247934
484
18
148
26.888889
0.67033
0.092975
0
0
1
0
0.180778
0.052632
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
923fd59a9ead9e352f0cfc0cbf0f1c028c3abf72
2,549
py
Python
tests/test_UniformFlow.py
RandalJBarnes/Ginebig
a99ffc5c36f8ec0a8b0e9509eb5cfd0f797ab692
[ "BSD-3-Clause" ]
null
null
null
tests/test_UniformFlow.py
RandalJBarnes/Ginebig
a99ffc5c36f8ec0a8b0e9509eb5cfd0f797ab692
[ "BSD-3-Clause" ]
null
null
null
tests/test_UniformFlow.py
RandalJBarnes/Ginebig
a99ffc5c36f8ec0a8b0e9509eb5cfd0f797ab692
[ "BSD-3-Clause" ]
1
2018-06-28T03:33:32.000Z
2018-06-28T03:33:32.000Z
import unittest import cmath import numpy from ginebig.analytic_element import AnalyticElement from ginebig.uniform_flow import UniformFlow class TestUniformFlow(unittest.TestCase): """Test the UniformFlow class.""" # -------------------------------------------------------------------------- def test_co...
29.988235
80
0.509219
242
2,549
5.231405
0.239669
0.132701
0.027646
0.094787
0.400474
0.3594
0.342022
0.342022
0.342022
0.304107
0
0.031579
0.21734
2,549
84
81
30.345238
0.603008
0.24284
0
0.4
0
0
0.004237
0
0
0
0
0.011905
0.222222
1
0.133333
false
0.022222
0.111111
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9245266de04b649c3d06288618573c21f84ccfcb
479
py
Python
fireglow.py
tatic0/fireglows
c701e1bad66a3d727eb99698888ddd42d9ce4bd2
[ "MIT" ]
null
null
null
fireglow.py
tatic0/fireglows
c701e1bad66a3d727eb99698888ddd42d9ce4bd2
[ "MIT" ]
null
null
null
fireglow.py
tatic0/fireglows
c701e1bad66a3d727eb99698888ddd42d9ce4bd2
[ "MIT" ]
null
null
null
from PyGlow import PyGlow import time import random pyglow = PyGlow() pyglow.all(0) colors = ['white','blue','green','yellow','orange','red'] try: for b in range(1,500): print b rbright = random.randrange(10,255,10) rcolor = random.choice(colors) pyglow.color(rcolor, brightness = rbright) time.sleep(0.1)...
21.772727
102
0.7119
75
479
4.546667
0.626667
0.105572
0.117302
0
0
0
0
0
0
0
0
0.041872
0.152401
479
21
103
22.809524
0.79803
0.17119
0
0.235294
0
0
0.073604
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
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
1
0
0
0
0
0
0
0
0
1
92471e19dce05a1ac92f6eaf97a3cba56b5dcb90
1,282
py
Python
utils/ExtraVariables.py
DEADSEC-SECURITY/CODEX
cbd1a6c1a0d7fe0dbb682d055861b57eb14cb393
[ "MIT" ]
30
2019-05-04T00:52:54.000Z
2022-03-14T23:28:32.000Z
utils/ExtraVariables.py
userid9708/CODEX
9e39103271502a4ec0da129b29425990784f83b1
[ "MIT" ]
4
2019-04-08T12:10:27.000Z
2021-06-12T22:55:43.000Z
utils/ExtraVariables.py
userid9708/CODEX
9e39103271502a4ec0da129b29425990784f83b1
[ "MIT" ]
5
2019-10-19T01:37:56.000Z
2022-02-15T07:23:24.000Z
#-----------Welcome to DeAdSeC Python Codex----------# #-------Made By DeAdSeC-------# #---Version 2.2.4---# #!/usr/bin/env python3 # -*- coding: utf-8 -*- from utils.colors import * Banner = ''' __ ______ ______ _______ __________ ___ __ | | / | / __ \ | \ | ____\ \ /...
28.488889
106
0.436817
112
1,282
4.214286
0.705357
0.038136
0.067797
0.072034
0.076271
0
0
0
0
0
0
0.01467
0.361934
1,282
44
107
29.136364
0.562347
0.176287
0
0
0
0.071429
0.684866
0
0
0
0
0
0
1
0.035714
false
0
0.178571
0
0.214286
0.107143
0
0
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
9248d8ce13674d9950c41f193e86db6c809d1b73
3,662
py
Python
tests/test_pushtopandas.py
pcmasuzzo/biotracks
05a3a9059d0c0a4fe48334915f4dacc9eb3b501f
[ "BSD-2-Clause" ]
null
null
null
tests/test_pushtopandas.py
pcmasuzzo/biotracks
05a3a9059d0c0a4fe48334915f4dacc9eb3b501f
[ "BSD-2-Clause" ]
null
null
null
tests/test_pushtopandas.py
pcmasuzzo/biotracks
05a3a9059d0c0a4fe48334915f4dacc9eb3b501f
[ "BSD-2-Clause" ]
null
null
null
# #%L # Copyright (c) 2016-2017 Cell Migration Standardisation Organization # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of co...
39.804348
78
0.693337
548
3,662
4.425182
0.328467
0.025979
0.024742
0.032165
0.218144
0.131134
0.123711
0.123711
0.123711
0.091546
0
0.003775
0.20426
3,662
91
79
40.241758
0.828415
0.374386
0
0
0
0
0.110964
0
0
0
0
0.010989
0.075472
1
0.132075
false
0
0.132075
0
0.320755
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9249f298aebebbb9d1cf4a9b9ceeabae3d005dd1
447
py
Python
python/flip-horizontal-access.py
KoderDojo/firecodeio
6623ef75a0d781dae8e20e368a03d0087d9ebe31
[ "MIT" ]
null
null
null
python/flip-horizontal-access.py
KoderDojo/firecodeio
6623ef75a0d781dae8e20e368a03d0087d9ebe31
[ "MIT" ]
null
null
null
python/flip-horizontal-access.py
KoderDojo/firecodeio
6623ef75a0d781dae8e20e368a03d0087d9ebe31
[ "MIT" ]
null
null
null
""" You are given an m x n 2D image matrix (List of Lists) where each integer represents a pixel. Flip it in-place along its horizontal axis. Example: Input image : 1 1 0 0 Modified to : 0 0 1 1 """ def flip_horizontal_axis(matrix): """ Returns a list...
17.192308
60
0.590604
65
447
4.030769
0.615385
0.091603
0.167939
0.129771
0
0
0
0
0
0
0
0.030508
0.340045
447
25
61
17.88
0.857627
0.787472
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9252ac17ad258866931d835c9a2e93cd2d099337
247
py
Python
kive/FixtureFiles/run_component_too_many_checks/Sandboxes/userbob_run2_JpKXxu/step2/reverse.py
cfe-lab/Kive
e46b9eb40f085d579c12f47b6b5696d5ee93a9d3
[ "BSD-3-Clause" ]
2
2016-10-02T18:24:53.000Z
2019-01-19T09:37:56.000Z
kive/FixtureFiles/run_component_too_many_checks/Sandboxes/userbob_run2_JpKXxu/step2/reverse.py
dmacmillan/Kive
76bc8f289f66fb133f78cb6d5689568b7d015915
[ "BSD-3-Clause" ]
1,190
2015-07-10T22:57:23.000Z
2022-03-30T05:10:14.000Z
kive/FixtureFiles/run_component_too_many_checks/Sandboxes/userbob_run2_JpKXxu/step2/reverse.py
dmacmillan/Kive
76bc8f289f66fb133f78cb6d5689568b7d015915
[ "BSD-3-Clause" ]
2
2019-07-16T00:25:25.000Z
2019-11-25T16:32:58.000Z
#!/usr/bin/env python import sys import csv with open(sys.argv[1]) as infile, open(sys.argv[2], 'w') as outfile: reader = csv.reader(infile) writer = csv.writer(outfile) for row in reader: writer.writerow([row[1][::-1], row[0][::-1]])
27.444444
68
0.647773
42
247
3.809524
0.547619
0.0875
0.1375
0
0
0
0
0
0
0
0
0.028708
0.153846
247
8
69
30.875
0.736842
0.080972
0
0
0
0
0.004425
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92557745a033b4f8a27db1306bee9e65f7826b83
400
py
Python
InjectionLog/migrations/0030_cats_sharable.py
JKesslerPhD/FIPInjectionLogger
f6ad4956552409a75ef75287b764bcd1863781b1
[ "Apache-2.0" ]
1
2020-12-01T19:08:42.000Z
2020-12-01T19:08:42.000Z
InjectionLog/migrations/0030_cats_sharable.py
JKesslerPhD/FIPInjectionLogger
f6ad4956552409a75ef75287b764bcd1863781b1
[ "Apache-2.0" ]
49
2020-07-15T16:56:30.000Z
2021-12-27T21:38:10.000Z
InjectionLog/migrations/0030_cats_sharable.py
JKesslerPhD/FIPInjectionLogger
f6ad4956552409a75ef75287b764bcd1863781b1
[ "Apache-2.0" ]
1
2021-11-15T20:20:42.000Z
2021-11-15T20:20:42.000Z
# Generated by Django 3.0.6 on 2020-05-31 23:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('InjectionLog', '0029_auto_20200531_2225'), ] operations = [ migrations.AddField( model_name='cats', name='sharable',...
21.052632
61
0.605
44
400
5.386364
0.863636
0
0
0
0
0
0
0
0
0
0
0.114583
0.28
400
18
62
22.222222
0.708333
0.1125
0
0
1
0
0.133144
0.065156
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9255b0fa65f5db4b45a612ae81714fb73204a22d
1,998
py
Python
src/ctm_python_client/session/session.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
5
2021-12-01T18:40:00.000Z
2022-03-04T10:51:44.000Z
src/ctm_python_client/session/session.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
3
2022-02-21T20:08:32.000Z
2022-03-16T17:41:03.000Z
src/ctm_python_client/session/session.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
7
2021-12-01T11:59:16.000Z
2022-03-01T18:16:40.000Z
from clients import ctm_api_client, ctm_saas_client import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) class Session: def __init__(self, endpoint=None, username=None, password=None, api_key=None): self.endpoint = endpoint self.username = username self.pass...
30.272727
82
0.635636
224
1,998
5.424107
0.25
0.096296
0.069136
0.055967
0.436214
0.404938
0.368724
0.314403
0.235391
0.167901
0
0.003418
0.267768
1,998
65
83
30.738462
0.827068
0
0
0.093023
0
0
0.03954
0
0
0
0
0
0
1
0.093023
false
0.093023
0.046512
0.023256
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9257e1ec6820088b5f177f762caee90a524ba570
4,724
py
Python
weixin/NotifyByWeixin.py
zhanghba/nagios
d68d1b7823c610f92c47d52dbb4fc05a6b8fc821
[ "Apache-2.0" ]
23
2016-02-18T03:19:31.000Z
2020-01-20T06:45:53.000Z
weixin/NotifyByWeixin.py
zhanghba/nagios
d68d1b7823c610f92c47d52dbb4fc05a6b8fc821
[ "Apache-2.0" ]
3
2017-06-14T03:03:59.000Z
2019-12-25T09:46:16.000Z
weixin/NotifyByWeixin.py
zhanghba/nagios
d68d1b7823c610f92c47d52dbb4fc05a6b8fc821
[ "Apache-2.0" ]
26
2016-05-11T12:49:55.000Z
2021-06-01T03:55:18.000Z
#!/usr/bin/env python #coding:utf-8 import urllib2 import urllib import json from config import * import pickle import datetime,time import argparse def url_request(url,values={},method='GET'): if method == 'GET': if len(values) != 0: url_values=urllib.urlencode(values) furl=url+'?...
31.918919
148
0.563929
536
4,724
4.781716
0.307836
0.064378
0.015217
0.02224
0.213032
0.171674
0.171674
0.088958
0.038236
0.038236
0
0.021335
0.305461
4,724
147
149
32.136054
0.759829
0.040432
0
0.248
0
0.008
0.163279
0
0
0
0
0
0
0
null
null
0.008
0.064
null
null
0.024
0
0
0
null
0
0
0
0
0
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
9258ace44885c7ea1c833335d8c9ca23f5190575
365
py
Python
python/tblink_rpc_core/event_type_e.py
tblink-rpc/tblink-rpc-core
4daac39138930a726014914952047708162c3451
[ "Apache-2.0" ]
1
2022-03-30T11:58:00.000Z
2022-03-30T11:58:00.000Z
python/tblink_rpc_core/event_type_e.py
tblink-rpc/tblink-rpc-core
4daac39138930a726014914952047708162c3451
[ "Apache-2.0" ]
null
null
null
python/tblink_rpc_core/event_type_e.py
tblink-rpc/tblink-rpc-core
4daac39138930a726014914952047708162c3451
[ "Apache-2.0" ]
null
null
null
''' Created on Dec 28, 2021 @author: mballance ''' from enum import Enum, auto class EventTypeE(Enum): Unknown = auto() OutInvokeReqB = auto() InInvokeRspB = auto() InInvokeReqB = auto() OutInvokeRspB = auto() OutInvokeReqNB = auto() InInvokeRspNB = auto() InInvokeReqNB = auto() O...
19.210526
27
0.641096
35
365
6.685714
0.657143
0
0
0
0
0
0
0
0
0
0
0.021661
0.241096
365
19
28
19.210526
0.823105
0.117808
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.083333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9263902e3a701c760ea2be27c14bce31ef02ee38
1,323
py
Python
scripts/extract_models.py
dariko/etcd3-py
aceada8c03942d83104f4a8601683ab0abeb9d66
[ "Apache-2.0" ]
null
null
null
scripts/extract_models.py
dariko/etcd3-py
aceada8c03942d83104f4a8601683ab0abeb9d66
[ "Apache-2.0" ]
null
null
null
scripts/extract_models.py
dariko/etcd3-py
aceada8c03942d83104f4a8601683ab0abeb9d66
[ "Apache-2.0" ]
null
null
null
ENUM_FILE_TPL = '''\ # Models generated from rpc.swagger.json, do not edit # flake8: noqa import enum {% for e in enums %} class {{e._path | last}}(enum.Enum): """ ref: {{ e._ref }} default: {{ e.default }} """ {% for prop in e.enum %}{{ prop.name }} = '{{ prop.value }}' {% endfor %} {% endfor...
26.46
107
0.626606
183
1,323
4.251366
0.393443
0.046272
0.071979
0.042416
0.133676
0.133676
0.133676
0.082262
0
0
0
0.007641
0.208617
1,323
49
108
27
0.735435
0
0
0.175
1
0
0.421769
0.018896
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9269fe5a9b5c5ddff7403dc075cc928b8565cb7a
2,782
py
Python
restclients_core/models/fields.py
uw-it-aca/uw-restclients-core
9a99f52b7e869070c6e954438ea372064c2d8cc9
[ "Apache-2.0" ]
null
null
null
restclients_core/models/fields.py
uw-it-aca/uw-restclients-core
9a99f52b7e869070c6e954438ea372064c2d8cc9
[ "Apache-2.0" ]
90
2017-02-27T17:10:36.000Z
2021-09-30T23:45:23.000Z
restclients_core/models/fields.py
uw-it-aca/uw-restclients-core
9a99f52b7e869070c6e954438ea372064c2d8cc9
[ "Apache-2.0" ]
1
2018-10-01T21:05:54.000Z
2018-10-01T21:05:54.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import datetime import time class BaseField(object): default = None def __init__(self, *args, **kwargs): self.values = {} self.dynamics = set() if "default" in kwargs: self.default = k...
19.591549
63
0.627965
305
2,782
5.462295
0.298361
0.07563
0.140456
0.031212
0.151861
0.073229
0.073229
0.073229
0
0
0
0.003956
0.273185
2,782
141
64
19.730496
0.81998
0.029475
0
0.258824
0
0
0.038932
0
0
0
0
0
0
1
0.105882
false
0.176471
0.023529
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
1
0
0
0
0
0
1
926bacd9f0afd81c45729f456d069501cdde0a4e
1,532
py
Python
src/app/services/hashing/hashing_service.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
null
null
null
src/app/services/hashing/hashing_service.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
43
2021-12-02T21:26:01.000Z
2022-02-21T08:51:06.000Z
src/app/services/hashing/hashing_service.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
null
null
null
"""Module for hashing service implementation""" __all__ = ['HashingService'] from typing import List from typing import Optional from fastapi import Depends from services.hashing import IHashingService from services.hashing.factories import HashingAlgorithmFactory from services.hashing.factories import IHashingAlgo...
29.461538
101
0.731723
156
1,532
7.025641
0.358974
0.040146
0.052007
0.054745
0.062044
0
0
0
0
0
0
0
0.205614
1,532
51
102
30.039216
0.900575
0.219321
0
0
0
0
0.012774
0
0
0
0
0
0
1
0.142857
false
0
0.47619
0
0.809524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
927174eb1b6a81a6a23ff2e2fc848eb723ec1436
3,962
py
Python
common/draw_obs_bb_on_birds_eye_view.py
dhesin/team_sf_lidar
d9201229cf572f6ee3ecd867af2342884a48b386
[ "MIT" ]
null
null
null
common/draw_obs_bb_on_birds_eye_view.py
dhesin/team_sf_lidar
d9201229cf572f6ee3ecd867af2342884a48b386
[ "MIT" ]
null
null
null
common/draw_obs_bb_on_birds_eye_view.py
dhesin/team_sf_lidar
d9201229cf572f6ee3ecd867af2342884a48b386
[ "MIT" ]
null
null
null
#!/usr/bin/python """ draw_obs_bb_on_birds_eye_view.py: version 0.1.0 Note: Todo: History: """ import argparse import numpy as np import rosbag appTitle = "Udacity Team-SF: Obstacle bounding boxes drawer on bird's eye views" def print_obs_bb(msgType, topic, msg, time, capture_vehicle_position, obstacle_list, obsta...
45.022727
266
0.63579
515
3,962
4.706796
0.254369
0.043317
0.068069
0.117574
0.343647
0.333746
0.312706
0.270215
0.270215
0.237211
0
0.007987
0.241545
3,962
87
267
45.54023
0.798669
0.053761
0
0.209677
0
0
0.115601
0
0
0
0
0.011494
0
1
0.016129
false
0
0.048387
0
0.064516
0.145161
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
92753bd93a83f21abb107434ef9a46bef30b7d2a
593
py
Python
Socket/server_socket.py
aloysiussenjaya/WirelessConnection
3b6ed9828cf3448681f0d363beac05b8e70eea25
[ "MIT" ]
null
null
null
Socket/server_socket.py
aloysiussenjaya/WirelessConnection
3b6ed9828cf3448681f0d363beac05b8e70eea25
[ "MIT" ]
null
null
null
Socket/server_socket.py
aloysiussenjaya/WirelessConnection
3b6ed9828cf3448681f0d363beac05b8e70eea25
[ "MIT" ]
null
null
null
import socket HOST = '192.168.100.49' PORT = 7500 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #todo: you can replace here if you want to change IP Family and Protocol s.bind((HOST, PORT)) #! just put HOST, PORT in the parameter s.listen(5) #todo: you can replace the parameter with anything with integer typ...
42.357143
127
0.733558
94
593
4.606383
0.670213
0.055427
0.046189
0.078522
0
0
0
0
0
0
0
0.03629
0.163575
593
14
128
42.357143
0.836694
0.419899
0
0
0
0
0.246334
0
0
0
0
0.071429
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
92782ea9055292604532a075547d706220f96b8e
3,954
py
Python
scripts/lcd_test.py
duguyue100/spikefuel
e06713b62c0bc7f881dd75a5a4842723cce4aaab
[ "MIT" ]
12
2016-05-12T09:58:19.000Z
2021-04-10T02:46:21.000Z
scripts/lcd_test.py
colinshane/spikefuel
e06713b62c0bc7f881dd75a5a4842723cce4aaab
[ "MIT" ]
1
2019-07-08T03:50:02.000Z
2019-07-09T07:22:18.000Z
scripts/lcd_test.py
colinshane/spikefuel
e06713b62c0bc7f881dd75a5a4842723cce4aaab
[ "MIT" ]
10
2016-04-09T01:58:22.000Z
2020-06-07T05:13:46.000Z
"""Testing of LCD monitor. Author: Yuhuang Hu Email : duguyue100@gmail.com """ import numpy as np import cv2 from spikefuel import helpers, gui screen_height = 540 screen_width = 720 work_win_scale = 0.9 window_title = "LED TEST" bg_color = [127, 127, 127] fps = 15 cv2.namedWindow(window_title, cv2.WND_PROP_FULLSCR...
28.042553
79
0.672231
603
3,954
4.228856
0.207297
0.060392
0.058824
0.078431
0.643922
0.636863
0.611765
0.579608
0.567843
0.567843
0
0.050064
0.206879
3,954
140
80
28.242857
0.763074
0.087506
0
0.649485
0
0
0.073442
0
0
0
0
0
0
0
null
null
0
0.030928
null
null
0.082474
0
0
0
null
0
0
0
0
0
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
927e64afb780f57c14f68a9c335a15040443029e
2,465
py
Python
tests/bugs/core_6460_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_6460_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_6460_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_6460 # title: Incorrect query result when using named window # decription: # Confirmed bug on 4.0.0.2265. Discussed with Vlad 21.12.2020 (subj: "fresh fails on 4.0.0.2298"). # Checked on 4.0.0.2307 -- all OK. # Mor...
35.724638
148
0.574442
350
2,465
3.86
0.325714
0.03701
0.053294
0.072539
0.367876
0.310881
0.310881
0.256107
0.256107
0.180607
0
0.1207
0.327789
2,465
68
149
36.25
0.694629
0.190669
0
0.097561
0
0.073171
0.746337
0
0
0
0
0
0.02439
1
0.02439
false
0
0.04878
0
0.073171
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
927ff0746f148902d9d106abce39aabf4e64d781
1,518
py
Python
src/corr.py
kinow/rosalind-exercises
5984f10226e41a3fffbc7f947e397b0cd84ea5cf
[ "Unlicense" ]
null
null
null
src/corr.py
kinow/rosalind-exercises
5984f10226e41a3fffbc7f947e397b0cd84ea5cf
[ "Unlicense" ]
null
null
null
src/corr.py
kinow/rosalind-exercises
5984f10226e41a3fffbc7f947e397b0cd84ea5cf
[ "Unlicense" ]
null
null
null
import sys import string from fasta.Fasta import read_fasta def hamming_distance(base_seq, ref_seq): hd = 0 for i in range(0, len(base_seq)): if (base_seq[i] != ref_seq[i]): hd += 1 return hd def compl(args): r = args[::-1] tbl = string.maketrans('ATGC', '...
27.107143
63
0.534256
178
1,518
4.449438
0.38764
0.034091
0.025253
0.042929
0.070707
0
0
0
0
0
0
0.010173
0.352437
1,518
56
64
27.107143
0.795524
0.067852
0
0.113636
0
0
0.026874
0
0
0
0
0
0
0
null
null
0
0.068182
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9281fddfd427f3cb5576d6edc4e45d9fd83fa5be
190
py
Python
leetcode/198_house_robber/198.py
nrsyed/leetcode
958e06b9dd9c07e48dc07028398ce3572c4ec957
[ "MIT" ]
null
null
null
leetcode/198_house_robber/198.py
nrsyed/leetcode
958e06b9dd9c07e48dc07028398ce3572c4ec957
[ "MIT" ]
null
null
null
leetcode/198_house_robber/198.py
nrsyed/leetcode
958e06b9dd9c07e48dc07028398ce3572c4ec957
[ "MIT" ]
null
null
null
class Solution: def rob(self, nums: List[int]) -> int: dp = [num for num in nums] for i in range(2, len(nums)): dp[i] += max(dp[:i-1]) return max(dp)
27.142857
42
0.494737
31
190
3.032258
0.612903
0.06383
0
0
0
0
0
0
0
0
0
0.016
0.342105
190
6
43
31.666667
0.736
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
928230cc3973fe99002ec8ad0381a00a2605cd43
911
py
Python
attendance/migrations/0001_initial.py
hanship0530/privateSchoolCMS
6cc425e0e7fdbd576c6bf4f3681238c509b35a5f
[ "MIT" ]
1
2018-09-27T10:02:15.000Z
2018-09-27T10:02:15.000Z
attendance/migrations/0001_initial.py
dxdiag20/privateSchoolCMS
6cc425e0e7fdbd576c6bf4f3681238c509b35a5f
[ "MIT" ]
3
2019-01-04T05:50:59.000Z
2019-01-24T01:05:49.000Z
attendance/migrations/0001_initial.py
hanship0530/privateSchoolCMS
6cc425e0e7fdbd576c6bf4f3681238c509b35a5f
[ "MIT" ]
2
2018-09-21T16:12:38.000Z
2018-11-23T07:54:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2018-09-27 20:40 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('students', '0001_initial'), ] ope...
32.535714
149
0.611416
98
911
5.561224
0.632653
0.044037
0.051376
0.080734
0
0
0
0
0
0
0
0.028694
0.234907
911
27
150
33.740741
0.753228
0.07135
0
0
1
0
0.124555
0
0
0
0
0
0
1
0
false
0
0.157895
0
0.368421
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
9289820dc9efa7f86f510cae37c2d5f1814838c7
1,958
py
Python
tests/test_NumberService.py
ollelauribostrom/pi-home-monitor
fc58760a732a80ce583e9a0adfb2980cadeedf39
[ "MIT" ]
1
2020-04-16T03:10:38.000Z
2020-04-16T03:10:38.000Z
tests/test_NumberService.py
ollelauribostrom/pi-home-monitor
fc58760a732a80ce583e9a0adfb2980cadeedf39
[ "MIT" ]
1
2021-04-30T20:34:11.000Z
2021-04-30T20:34:11.000Z
tests/test_NumberService.py
ollelauribostrom/pi-home-monitor
fc58760a732a80ce583e9a0adfb2980cadeedf39
[ "MIT" ]
null
null
null
from src.NumberService import NumberService from src.Log import Log from tests.MockResponse import MockResponse secret = 'test_secret' log = Log() numbers = NumberService({ 'shared_secret': secret }, log) def test_is_authorized_fail(): assert numbers.is_authorized('0701234567') == False def test_authorize_success(...
33.186441
108
0.763023
251
1,958
5.737052
0.258964
0.072917
0.0625
0.111111
0.5375
0.317361
0.278472
0.226389
0.226389
0.226389
0
0.058207
0.122574
1,958
59
109
33.186441
0.779977
0
0
0.093023
0
0
0.207759
0
0
0
0
0
0.325581
1
0.348837
false
0
0.069767
0
0.418605
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9297715f0df01277af298ee42da319ced9bb06a5
2,155
py
Python
neurokit/signal/signal.py
y1ngyang/NeuroKit.py
867655f84bf210626649bca72258af6a2b5a2791
[ "MIT" ]
null
null
null
neurokit/signal/signal.py
y1ngyang/NeuroKit.py
867655f84bf210626649bca72258af6a2b5a2791
[ "MIT" ]
null
null
null
neurokit/signal/signal.py
y1ngyang/NeuroKit.py
867655f84bf210626649bca72258af6a2b5a2791
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd import numpy as np import scipy # ============================================================================== # ============================================================================== # ========================================================================...
30.352113
137
0.442691
193
2,155
4.834197
0.518135
0.085745
0.042872
0
0
0
0
0
0
0
0
0.026921
0.172622
2,155
71
138
30.352113
0.496354
0.677494
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
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
9297989cff393ef26d33d8a382501cbc3ae54bb4
1,007
py
Python
authors/apps/authentication/urls.py
SilasKenneth/ah-technocrats
c199e6dd432bdb4a5e1152f90cb1716b09af2c4e
[ "BSD-3-Clause" ]
1
2018-12-04T15:29:57.000Z
2018-12-04T15:29:57.000Z
authors/apps/authentication/urls.py
SilasKenneth/ah-technocrats
c199e6dd432bdb4a5e1152f90cb1716b09af2c4e
[ "BSD-3-Clause" ]
52
2018-11-27T08:00:25.000Z
2021-06-10T20:58:16.000Z
authors/apps/authentication/urls.py
SilasKenneth/ah-technocrats
c199e6dd432bdb4a5e1152f90cb1716b09af2c4e
[ "BSD-3-Clause" ]
4
2019-07-15T10:24:22.000Z
2020-02-04T19:15:12.000Z
from django.urls import path from authors.apps.authentication.views import (SocialView, UserRetrieveUpdateAPIView,\ RegistrationAPIView, LoginAPIView \ , ForgotPasswordView, ...
53
100
0.609732
87
1,007
6.91954
0.390805
0.069767
0.116279
0.093023
0
0
0
0
0
0
0
0
0.261172
1,007
18
101
55.944444
0.80914
0
0
0
0
0
0.20854
0.075472
0
0
0
0
0
1
0
false
0.25
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
92997a1ce125befaa6ba493c4dd9de4de8e09d34
310
py
Python
rllib/algorithms/ars/__init__.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
rllib/algorithms/ars/__init__.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
41
2021-09-21T01:13:48.000Z
2022-03-19T07:12:22.000Z
rllib/algorithms/ars/__init__.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
from ray.rllib.algorithms.ars.ars import ARS, ARSConfig, DEFAULT_CONFIG from ray.rllib.algorithms.ars.ars_tf_policy import ARSTFPolicy from ray.rllib.algorithms.ars.ars_torch_policy import ARSTorchPolicy __all__ = [ "ARS", "ARSConfig", "ARSTFPolicy", "ARSTorchPolicy", "DEFAULT_CONFIG", ]
25.833333
71
0.754839
38
310
5.894737
0.394737
0.09375
0.160714
0.294643
0.375
0.375
0
0
0
0
0
0
0.141935
310
11
72
28.181818
0.842105
0
0
0
0
0
0.164516
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
929d7c5bcdf6b8b0636c3f1deb3cace9058f099f
1,684
py
Python
pics/tests.py
damunza/gallery-ip
ffeafaee13297e8a56908af97bf2bdbf2142307c
[ "Unlicense" ]
null
null
null
pics/tests.py
damunza/gallery-ip
ffeafaee13297e8a56908af97bf2bdbf2142307c
[ "Unlicense" ]
null
null
null
pics/tests.py
damunza/gallery-ip
ffeafaee13297e8a56908af97bf2bdbf2142307c
[ "Unlicense" ]
null
null
null
from django.test import TestCase from .models import * # Create your tests here. class ImageTest(TestCase): # creating a setup for the test def setUp(self): self.new_town = Places.objects.create(location = 'nairobi') self.new_category = Category.objects.create(category = 'fun') self....
29.034483
137
0.663302
218
1,684
4.96789
0.211009
0.116343
0.081256
0.073869
0.603878
0.564174
0.538319
0.427516
0.243767
0.105263
0
0.004542
0.215558
1,684
57
138
29.54386
0.815291
0.031473
0
0.461538
0
0
0.018439
0
0
0
0
0
0.205128
1
0.282051
false
0
0.051282
0
0.410256
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
92a06b66e7c89ddbf8d3ec00c931fe9ab772d3d0
4,007
py
Python
upload_to_Github/boggle_game_solver/boggle.py
arielpai/MyStanCodeSC101Project
6d2cdc2a9e9ceb2b98263c6c476e1273fb040012
[ "MIT" ]
null
null
null
upload_to_Github/boggle_game_solver/boggle.py
arielpai/MyStanCodeSC101Project
6d2cdc2a9e9ceb2b98263c6c476e1273fb040012
[ "MIT" ]
null
null
null
upload_to_Github/boggle_game_solver/boggle.py
arielpai/MyStanCodeSC101Project
6d2cdc2a9e9ceb2b98263c6c476e1273fb040012
[ "MIT" ]
null
null
null
""" File: boggle.py Name: Ariel Pai ---------------------------------------- TODO: Boggle! Let users insert four random letters for four times, and assemble those letters to become meaningful words according to the rules of Boggles. Note: the length of the words must be four or more than four letter l...
27.258503
96
0.602695
670
4,007
3.480597
0.234328
0.048885
0.009005
0.013722
0.36235
0.343482
0.319468
0.31175
0.31175
0.31175
0
0.008273
0.24582
4,007
146
97
27.445205
0.763402
0.348889
0
0.384615
0
0
0.086093
0.015011
0
0
0
0.013699
0
1
0.064103
false
0.012821
0.012821
0
0.102564
0.064103
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
92ac5cd560310579604efb7dd42a65dc4218223c
1,837
py
Python
soccer/gameplay/plays/testing/test_adaptive_formation_weights.py
Alex-Gurung/robocup-software
9271df5ed16928f0081fc81c50affb0a08dd54bd
[ "Apache-2.0" ]
1
2019-09-24T22:59:25.000Z
2019-09-24T22:59:25.000Z
soccer/gameplay/plays/testing/test_adaptive_formation_weights.py
Alex-Gurung/robocup-software
9271df5ed16928f0081fc81c50affb0a08dd54bd
[ "Apache-2.0" ]
null
null
null
soccer/gameplay/plays/testing/test_adaptive_formation_weights.py
Alex-Gurung/robocup-software
9271df5ed16928f0081fc81c50affb0a08dd54bd
[ "Apache-2.0" ]
null
null
null
import main import play import behavior import evaluation.field import evaluation.passing_positioning import evaluation.shooting import evaluation.defensive_positioning import visualization.overlay import constants import robocup import math import enum class TestAdaptiveFormationWeights(play.Play): class State(e...
34.018519
89
0.642352
199
1,837
5.768844
0.457286
0.05662
0.060105
0.020906
0
0
0
0
0
0
0
0.019549
0.275993
1,837
53
90
34.660377
0.843609
0.266739
0
0
0
0
0.00824
0
0
0
0
0
0
1
0.0625
false
0.03125
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
92b1f61e9f3a8cda75f45e8ebd2be21bde508252
1,529
gyp
Python
binding.gyp
pedalgames/node_npcap
7601f18b402a92aa8bea9ab614738305a36c16d2
[ "MIT" ]
1
2021-06-13T11:46:49.000Z
2021-06-13T11:46:49.000Z
binding.gyp
pedalgames/node_npcap
7601f18b402a92aa8bea9ab614738305a36c16d2
[ "MIT" ]
null
null
null
binding.gyp
pedalgames/node_npcap
7601f18b402a92aa8bea9ab614738305a36c16d2
[ "MIT" ]
2
2021-07-18T13:21:06.000Z
2021-10-20T01:55:53.000Z
{ "targets": [ { "target_name": "pcap_binding", 'win_delay_load_hook': 'true', "sources": [ "npcap_binding.cpp","npcap_session.cpp"], "include_dirs": ["npcap/Include","<!@(node -p \"require('node-addon-api').include\")"], "libraries": [ "<(module_root_dir)/npcap/Lib/x64/Packe...
37.292683
93
0.516024
156
1,529
4.814103
0.564103
0.05992
0.086551
0.08522
0.223702
0.063915
0
0
0
0
0
0.010669
0.325703
1,529
40
94
38.225
0.71775
0.207325
0
0.176471
0
0
0.491286
0.229046
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
92b43e9216787af7a37f6198d9be85a3e2a3dc84
398
py
Python
async_stripe/api_resources/issuing/card.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
8
2021-05-29T08:57:58.000Z
2022-02-19T07:09:25.000Z
async_stripe/api_resources/issuing/card.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
5
2021-05-31T10:18:36.000Z
2022-01-25T11:39:03.000Z
async_stripe/api_resources/issuing/card.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
1
2021-05-29T13:27:10.000Z
2021-05-29T13:27:10.000Z
import stripe from async_stripe.api_resources.abstract import patch_custom_methods async def details_patch(self, idempotency_key=None, **params): return await self.request("get", self.instance_url() + "/details", params) stripe.issuing.Card.details = details_patch custom_methods = [ {"name": "details", "h...
24.875
78
0.763819
52
398
5.596154
0.538462
0.178694
0.185567
0
0
0
0
0
0
0
0
0
0.113065
398
16
79
24.875
0.824363
0
0
0
0
0
0.085213
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92b74652542b6fa89dabd015342f48996038000c
736
py
Python
core/filters/filters_sample.py
royrogers/operative-framework
7628fe0801473cb48293335232c9e8ff084526ff
[ "MIT" ]
5
2018-01-15T13:58:40.000Z
2022-02-17T02:38:58.000Z
OSINT-Reconnaissance/operative-framework/core/filters/filters_sample.py
bhattsameer/TID3xploits
b57d8bae454081a3883a5684679e2a329e72d6e5
[ "MIT" ]
null
null
null
OSINT-Reconnaissance/operative-framework/core/filters/filters_sample.py
bhattsameer/TID3xploits
b57d8bae454081a3883a5684679e2a329e72d6e5
[ "MIT" ]
4
2019-06-21T07:51:11.000Z
2020-11-04T05:20:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os,sys import requests class Filters(object): def __init__(self): # work_with variable, is used for check if current module # can be used with this filters # e.g: self.work_with=['linkedin_search', '...'] # e.g: self.work_with ...
29.44
89
0.601902
98
736
4.408163
0.571429
0.074074
0.111111
0.046296
0.157407
0
0
0
0
0
0
0.003876
0.298913
736
25
90
29.44
0.833333
0.539402
0
0
0
0
0.069486
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
92b8b7c45c8dcec51f8694bb37a7cc206b1d74bd
788
py
Python
gomoku/config.py
ZiyangTian/pyrl
6ce71cdfb5a3b36f2d5a9626951fceaf9b54f7e6
[ "MIT" ]
null
null
null
gomoku/config.py
ZiyangTian/pyrl
6ce71cdfb5a3b36f2d5a9626951fceaf9b54f7e6
[ "MIT" ]
null
null
null
gomoku/config.py
ZiyangTian/pyrl
6ce71cdfb5a3b36f2d5a9626951fceaf9b54f7e6
[ "MIT" ]
null
null
null
class Config(object): # game setting row_size = 6 column_size = 6 piece_in_line = 4 black_first = True max_num_round = 36 # mcts temperature = 1.0 playout_times = 100 # num of simulations for each move c_puct = 5. # data num_games_per_generation = 10 ...
22.514286
77
0.602792
108
788
4.111111
0.694444
0.022523
0.067568
0
0
0
0
0
0
0
0
0.064762
0.333756
788
34
78
23.176471
0.780952
0.28934
0
0
0
0
0.009766
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.894737
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
92b9f7492a654220ce7d4c439bbe01f1dfd9d485
347
py
Python
segmate/editor/tools/contour.py
justacid/segmate
7b66b207ca353805f7ad9c7e003645cd2cbc227a
[ "MIT" ]
null
null
null
segmate/editor/tools/contour.py
justacid/segmate
7b66b207ca353805f7ad9c7e003645cd2cbc227a
[ "MIT" ]
null
null
null
segmate/editor/tools/contour.py
justacid/segmate
7b66b207ca353805f7ad9c7e003645cd2cbc227a
[ "MIT" ]
null
null
null
import numpy as np from ..editortool import EditorTool from ... import util class ContourTool(EditorTool): def on_paint(self): if not self.is_mask: return self.canvas output = np.zeros(self.canvas.shape, dtype=np.uint8) util.draw.contours(output, self.canvas, (*self.color, 2...
21.6875
67
0.657061
46
347
4.913043
0.608696
0.132743
0
0
0
0
0
0
0
0
0
0.015209
0.242075
347
15
68
23.133333
0.844106
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.7
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
92ba0605a3330afc5729f406312d700af0a2d69f
427
py
Python
Project-Euler-Solutions/020.py
KartikKannapur/HackerRank
50c630d2c3bcb537033519fc5d857749584aafa7
[ "MIT" ]
null
null
null
Project-Euler-Solutions/020.py
KartikKannapur/HackerRank
50c630d2c3bcb537033519fc5d857749584aafa7
[ "MIT" ]
null
null
null
Project-Euler-Solutions/020.py
KartikKannapur/HackerRank
50c630d2c3bcb537033519fc5d857749584aafa7
[ "MIT" ]
1
2020-03-06T00:36:29.000Z
2020-03-06T00:36:29.000Z
#Problem 20: #n! means n × (n − 1) × ... × 3 × 2 × 1 #For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800, #and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27. #Find the sum of the digits in the number 100! import sympy as sp def main(num): val = sp.factorial(num) summa = 0 va...
22.473684
79
0.540984
89
427
2.696629
0.483146
0.016667
0.025
0.033333
0.291667
0.291667
0.291667
0.233333
0
0
0
0.133562
0.316159
427
18
80
23.722222
0.650685
0.529274
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
92ba2db6c134131359e3551ac9a5eec4b251152a
497
py
Python
hypha/apply/projects/migrations/0026_data_contract_approved_date.py
maxpearl/hypha
e181ebadfb744aab34617bb766e746368d6f2de0
[ "BSD-3-Clause" ]
20
2021-04-08T16:38:49.000Z
2022-02-09T20:05:57.000Z
hypha/apply/projects/migrations/0026_data_contract_approved_date.py
maxpearl/hypha
e181ebadfb744aab34617bb766e746368d6f2de0
[ "BSD-3-Clause" ]
1,098
2017-12-15T11:23:03.000Z
2020-01-24T07:58:07.000Z
hypha/apply/projects/migrations/0026_data_contract_approved_date.py
maxpearl/hypha
e181ebadfb744aab34617bb766e746368d6f2de0
[ "BSD-3-Clause" ]
17
2020-02-07T14:55:54.000Z
2021-04-04T19:32:38.000Z
# Generated by Django 2.1.11 on 2019-10-29 03:54 from django.db import migrations from django.db.models import F def copy_submitted_date(apps, schema_editor): Contract = apps.get_model('application_projects', 'Contract') Contract.objects.all().update(approved_at=F('created_at')) class Migration(migrations....
23.666667
65
0.71831
63
497
5.460317
0.698413
0.05814
0.069767
0
0
0
0
0
0
0
0
0.048426
0.169014
497
20
66
24.85
0.784504
0.092555
0
0
1
0
0.178174
0.048998
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2b87ebf934a202cca34d614339d15b6457343805
3,641
py
Python
cms/admin.py
fossabot/gophr
3ff69cdb352e871aa61c23cb277d721459de6f41
[ "MIT" ]
null
null
null
cms/admin.py
fossabot/gophr
3ff69cdb352e871aa61c23cb277d721459de6f41
[ "MIT" ]
null
null
null
cms/admin.py
fossabot/gophr
3ff69cdb352e871aa61c23cb277d721459de6f41
[ "MIT" ]
null
null
null
import json from django.conf import settings from django import VERSION as django_version from django.contrib import admin from mptt.admin import DraggableMPTTAdmin from django.utils.safestring import mark_safe from nested_admin.nested import NestedModelAdmin, NestedStackedInline from cms.models import Page, Section,...
31.387931
116
0.673167
412
3,641
5.747573
0.298544
0.023649
0.032939
0.032939
0.078547
0.034628
0
0
0
0
0
0.002053
0.197199
3,641
115
117
31.66087
0.808074
0.091733
0
0.075949
0
0
0.171818
0.02697
0
0
0
0
0
1
0.050633
false
0
0.113924
0.012658
0.708861
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
2b8b3d3f6f8ecef31c7b2583c41d2c335fa3f6c0
3,388
py
Python
scheduler.py
NTUwanderer/P3
fc1a04b2bbcb518778e1ec4259ad4b580ef0d79b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
scheduler.py
NTUwanderer/P3
fc1a04b2bbcb518778e1ec4259ad4b580ef0d79b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
scheduler.py
NTUwanderer/P3
fc1a04b2bbcb518778e1ec4259ad4b580ef0d79b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import sys import glob from os import path, remove from subprocess import call import signal import time def signal_handler(signal, frame): raise Exception('Signal received, exiting') signal.signal(signal.SIGINT, signal_handler) executable = path.join("Release", "P3") folder = sys.argv[1] repeats = int(sys.a...
32.893204
87
0.549587
417
3,388
4.386091
0.278177
0.057408
0.061236
0.06561
0.329142
0.318207
0.229634
0.188081
0.188081
0.188081
0
0.012664
0.324085
3,388
102
88
33.215686
0.786026
0.022137
0
0.280899
0
0
0.100665
0
0
0
0
0
0
0
null
null
0.011236
0.067416
null
null
0.067416
0
0
0
null
0
0
0
0
0
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
2b8eeded83a17609b5854a2ed2f160fedffb86fb
3,279
py
Python
electrochem/data.py
codeananda/sequence_classification_tensorflow
024c13ee653141598123e2a13b9ac6212f414edf
[ "Apache-2.0" ]
null
null
null
electrochem/data.py
codeananda/sequence_classification_tensorflow
024c13ee653141598123e2a13b9ac6212f414edf
[ "Apache-2.0" ]
null
null
null
electrochem/data.py
codeananda/sequence_classification_tensorflow
024c13ee653141598123e2a13b9ac6212f414edf
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import pickle from pathlib import Path import seaborn as sns from tqdm.notebook import trange, tqdm import wandb sns.set() DATA_DIR = Path("../data") # Do not read in 'Mix 1' sheet, as that has been updated in 'mix_1_updated.xlsx' sheet_names = [...
33.459184
84
0.68832
509
3,279
4.24165
0.302554
0.044465
0.011579
0.013895
0.175081
0.103752
0.053729
0.019453
0
0
0
0.020431
0.193962
3,279
97
85
33.804124
0.796443
0.271424
0
0
0
0
0.166237
0
0
0
0
0
0
1
0.070175
false
0.087719
0.140351
0
0.280702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2b8f315e136c19c447944c5495ba8b35d6048d2e
620
py
Python
todo/migrations/0003_auto_20210423_0353.py
lindychi/planned-server
8f752d19441627e007228c820cbdf876b70ac13c
[ "MIT" ]
null
null
null
todo/migrations/0003_auto_20210423_0353.py
lindychi/planned-server
8f752d19441627e007228c820cbdf876b70ac13c
[ "MIT" ]
24
2021-04-20T11:41:28.000Z
2021-06-27T10:03:48.000Z
todo/migrations/0003_auto_20210423_0353.py
lindychi/planned-server
8f752d19441627e007228c820cbdf876b70ac13c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-23 03:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('person', '0001_initial'), ('todo', '0002_todo_github_repo'), ] operations = [ migrations.AddField( model_name='todo', ...
24.8
75
0.577419
64
620
5.46875
0.6875
0.057143
0.074286
0.097143
0
0
0
0
0
0
0
0.059226
0.291935
620
24
76
25.833333
0.738041
0.072581
0
0.222222
1
0
0.143106
0.036649
0
0
0
0
0
1
0
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2b98c1c337c80624ab1e16cc57d5be2baf604f07
1,648
py
Python
lcclassifier/models/classifiers.py
opimentel-github/astro-lightcurves-classifier
80d0e02b95625e89f250086fa8d4a09688c9cbf6
[ "MIT" ]
null
null
null
lcclassifier/models/classifiers.py
opimentel-github/astro-lightcurves-classifier
80d0e02b95625e89f250086fa8d4a09688c9cbf6
[ "MIT" ]
null
null
null
lcclassifier/models/classifiers.py
opimentel-github/astro-lightcurves-classifier
80d0e02b95625e89f250086fa8d4a09688c9cbf6
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import division from . import _C import torch import torch.nn as nn from fuzzytorch.models.basics import MLP, Linear ###################################################################################################################################################...
32.96
157
0.671723
227
1,648
4.572687
0.286344
0.052987
0.101156
0.073218
0.144509
0.100193
0.05395
0
0
0
0
0.004804
0.115898
1,648
50
158
32.96
0.707618
0.258495
0
0
0
0
0.048964
0
0
0
0
0.02
0
1
0.181818
false
0
0.181818
0.060606
0.484848
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2ba16db23838e2abfa03cf4b305f141009f82847
1,765
py
Python
tests/test.py
fallingduck/snifter
30dbd71b5d76841edcd327c900870855601e39d4
[ "BSD-3-Clause" ]
1
2015-04-19T05:21:46.000Z
2015-04-19T05:21:46.000Z
tests/test.py
fallingduck/snifter
30dbd71b5d76841edcd327c900870855601e39d4
[ "BSD-3-Clause" ]
null
null
null
tests/test.py
fallingduck/snifter
30dbd71b5d76841edcd327c900870855601e39d4
[ "BSD-3-Clause" ]
null
null
null
try: from gevent import monkey monkey.patch_all() except ImportError: pass import snifter import snifter.session snifter.session.SESSION_MAX_AGE = 10 app = snifter.App() @app.get('/', cache=True) def home(): return 'Hello, world!' @app.route('/redirect') def redirect(): raise snifter.Redire...
19.395604
59
0.652691
220
1,765
5.195455
0.372727
0.062992
0.052493
0.029746
0.055993
0.055993
0
0
0
0
0
0.003376
0.160907
1,765
90
60
19.611111
0.7684
0
0
0
0
0
0.247592
0
0
0
0
0
0
1
0.20339
false
0.016949
0.067797
0.084746
0.440678
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2ba26b8700f05f7414467eb77ec3b7a2b64302ad
241
py
Python
ai_gym_train/models/a2c/src/config.py
michalnand/line_follower_rl
8e5f1a18f6c02d9de0a3b7c10f84ba8c3e958e73
[ "MIT" ]
2
2020-05-14T14:14:19.000Z
2020-08-05T02:55:43.000Z
ai_gym_train/models/a2c/src/config.py
michalnand/line_follower_rl
8e5f1a18f6c02d9de0a3b7c10f84ba8c3e958e73
[ "MIT" ]
null
null
null
ai_gym_train/models/a2c/src/config.py
michalnand/line_follower_rl
8e5f1a18f6c02d9de0a3b7c10f84ba8c3e958e73
[ "MIT" ]
3
2020-05-14T14:14:21.000Z
2020-12-07T00:33:11.000Z
class Config(): def __init__(self): self.type = "a2c" self.gamma = 0.99 self.learning_rate = 0.001 self.entropy_beta = 0.01 self.batch_size = 128
16.066667
35
0.439834
26
241
3.807692
0.730769
0
0
0
0
0
0
0
0
0
0
0.110236
0.473029
241
14
36
17.214286
0.669291
0
0
0
0
0
0.012552
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ba3bf27d830176de72cb760c9bae0d22b05ab0a
1,148
py
Python
service1/application/routes.py
AmirAR-QA/DevOps-Practical-Project
c7f47f41f2cbe70c21fac5ca8c1a451efaa60459
[ "MIT" ]
null
null
null
service1/application/routes.py
AmirAR-QA/DevOps-Practical-Project
c7f47f41f2cbe70c21fac5ca8c1a451efaa60459
[ "MIT" ]
null
null
null
service1/application/routes.py
AmirAR-QA/DevOps-Practical-Project
c7f47f41f2cbe70c21fac5ca8c1a451efaa60459
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, url_for, Response from application import app, db from application.models import Encounters, Form from flask_sqlalchemy import SQLAlchemy from sqlalchemy import desc import random, requests from os import getenv @app.route('/', methods = ['GET', 'POST']) @app.route('/...
42.518519
173
0.728223
146
1,148
5.582192
0.424658
0.063804
0.034356
0.07362
0.171779
0.103067
0
0
0
0
0
0.018367
0.146341
1,148
27
174
42.518519
0.813265
0
0
0
0
0
0.112272
0
0
0
0
0
0
1
0.047619
false
0
0.333333
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2bc79275768a23d6200bc1a2d58cc7a9d4a7c2f0
4,846
py
Python
backend/utils/base_mixin.py
Huoran559/vue-element-frontend-backend
2ab21792c314692fb9b11c6e5f1e890ffaf5cf3c
[ "MIT" ]
15
2021-01-31T01:45:46.000Z
2022-03-27T00:23:21.000Z
backend/utils/base_mixin.py
zouv/vue-admin-django
40e91e2ff0781dad89a3f5325514a04816406cfb
[ "MIT" ]
null
null
null
backend/utils/base_mixin.py
zouv/vue-admin-django
40e91e2ff0781dad89a3f5325514a04816406cfb
[ "MIT" ]
4
2021-07-09T09:45:44.000Z
2022-03-28T06:47:31.000Z
# -*- coding: utf-8 -*- #author:laoseng(QQ:1572665580),feilong(hhr66@qq.com) #create:2018-09 # 导入到处 中间件 基础类 import datetime import logging import xlrd import tablib from django.utils.six import moves from django.http import HttpResponse from django.conf import settings from rest_framework.decorators import action from...
39.080645
157
0.64383
574
4,846
5.261324
0.289199
0.029801
0.02649
0.034768
0.325828
0.304636
0.304636
0.25298
0.25298
0.19404
0
0.009137
0.23215
4,846
123
158
39.398374
0.802472
0.091622
0
0.310345
0
0
0.0496
0
0
0
0
0
0
1
0.068966
false
0.068966
0.252874
0
0.494253
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2bcf56970dcfbe4503bbacae011ce5af12e01520
3,420
py
Python
research/cv/SinGAN/src/config.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SinGAN/src/config.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SinGAN/src/config.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
60
108
0.702924
482
3,420
4.90249
0.371369
0.099027
0.18705
0.038087
0.29581
0.18959
0.092256
0.092256
0.092256
0.054168
0
0.021841
0.129825
3,420
56
109
61.071429
0.772177
0.230117
0
0
0
0
0.34357
0
0
0
0
0
0
1
0.033333
false
0
0.033333
0
0.1
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
2bd21bbcdd34bbffc5e7d3d63a35cae16369a5a1
17,764
py
Python
python/allelebayes.py
tprodanov/freebayes
cfbe330eb363223594e938954ffc08c43d2c4658
[ "MIT" ]
452
2015-01-29T12:53:52.000Z
2020-12-08T07:07:11.000Z
python/allelebayes.py
tprodanov/freebayes
cfbe330eb363223594e938954ffc08c43d2c4658
[ "MIT" ]
497
2015-01-03T17:47:38.000Z
2020-12-09T21:55:02.000Z
python/allelebayes.py
tprodanov/freebayes
cfbe330eb363223594e938954ffc08c43d2c4658
[ "MIT" ]
235
2015-01-21T20:16:27.000Z
2020-12-03T14:38:49.000Z
#!/usr/bin/env python3 # calculates data likelihoods for sets of alleles from __future__ import print_function, division import multiset import sys import cjson import phred import json import math import operator from logsumexp import logsumexp from dirichlet import dirichlet_maximum_likelihood_ratio, dirichlet, mult...
46.260417
154
0.681997
2,202
17,764
5.347411
0.160763
0.026327
0.019873
0.013588
0.366624
0.288238
0.208662
0.184459
0.157877
0.145817
0
0.004497
0.22388
17,764
383
155
46.381201
0.849568
0.269872
0
0.133028
0
0
0.02199
0.002111
0
0
0
0.005222
0
0
null
null
0.013761
0.050459
null
null
0.027523
0
0
0
null
0
0
0
0
0
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
2bdec76b03468b629eb9b7021e90120906996aab
2,658
py
Python
tests/template_test.py
mselivanov/data-generator
fc9588d7364791628d289906f99d4c13b0a3db8e
[ "Apache-2.0" ]
null
null
null
tests/template_test.py
mselivanov/data-generator
fc9588d7364791628d289906f99d4c13b0a3db8e
[ "Apache-2.0" ]
null
null
null
tests/template_test.py
mselivanov/data-generator
fc9588d7364791628d289906f99d4c13b0a3db8e
[ "Apache-2.0" ]
null
null
null
""" Module unit-tests template package. """ import unittest import os from string import ascii_letters from string import hexdigits import datagenerator.template.functions as func CURRENT_DIR = os.path.abspath(os.path.dirname(__file__)) class TemplateFunctionsTests(unittest.TestCase): """ Class tests datagen...
35.44
158
0.645598
350
2,658
4.674286
0.3
0.03423
0.031785
0.022005
0.123472
0.040342
0.040342
0
0
0
0
0.025063
0.249436
2,658
74
159
35.918919
0.794987
0.045523
0
0.092593
0
0
0.088703
0
0
0
0
0
0.185185
1
0.203704
false
0.037037
0.092593
0.018519
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2be1bfa51ef910257971041e47dd6e56e6dd736b
562
py
Python
devday/talk/migrations/0030_fill_session_slugs_from_titles.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
6
2018-09-30T20:18:01.000Z
2020-03-12T09:03:38.000Z
devday/talk/migrations/0030_fill_session_slugs_from_titles.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
260
2018-09-30T14:17:57.000Z
2022-03-04T13:48:34.000Z
devday/talk/migrations/0030_fill_session_slugs_from_titles.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
9
2018-09-30T13:17:21.000Z
2020-10-03T12:55:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-10-08 15:02 from __future__ import unicode_literals from django.db import migrations from django.utils.text import slugify def create_default_slug(apps, schema_manager): Talk = apps.get_model('talk', 'Talk') for talk in Talk.objects.all(): ...
23.416667
49
0.679715
73
562
5.041096
0.684932
0.054348
0.092391
0
0
0
0
0
0
0
0
0.076063
0.204626
562
23
50
24.434783
0.747204
0.122776
0
0
1
0
0.071429
0.046939
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.466667
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
2be4c120a74565385b7d93634b9f90b298ad061f
6,426
py
Python
vk.civilwar.py
banadiga/vk.civilwar.sikuli
20cac218ac6854804fb2be7e276bf187a3f1adaf
[ "MIT" ]
null
null
null
vk.civilwar.py
banadiga/vk.civilwar.sikuli
20cac218ac6854804fb2be7e276bf187a3f1adaf
[ "MIT" ]
null
null
null
vk.civilwar.py
banadiga/vk.civilwar.sikuli
20cac218ac6854804fb2be7e276bf187a3f1adaf
[ "MIT" ]
null
null
null
import argparse import java.awt.Robot as JRobot from argparse import RawTextHelpFormatter import logging SLEEP_ON_LOAD = 1 LONG_SLEEP = 10 SLEEP_ON_BUY = 1 SIMILAR_FOR_NEW = 0.8 SIMILAR_FOR_DONE = 0.58 LIST_OF_DONE_ITEM = [ "done_11.png", "done_21.png", "done_31.png", "done_41.png", "done_15.png", "done_12.pn...
34.180851
122
0.533769
783
6,426
4.16092
0.246488
0.040823
0.044199
0.039288
0.177103
0.090239
0.075506
0
0
0
0
0.029703
0.229847
6,426
187
123
34.363636
0.628612
0.116558
0
0.122449
0
0.013605
0.2253
0.006175
0
0
0
0
0
0
null
null
0
0.027211
null
null
0.054422
0
0
0
null
0
0
0
0
0
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
2be7f96d991286e85300feff56119b432925dd80
20,080
py
Python
messengerext/home/tests.py
groupsome/groupsome
4edcf30d66ff458c4df37d3198ef187219a768d7
[ "MIT" ]
6
2016-10-07T13:43:17.000Z
2017-10-07T22:34:44.000Z
messengerext/home/tests.py
groupsome/groupsome
4edcf30d66ff458c4df37d3198ef187219a768d7
[ "MIT" ]
null
null
null
messengerext/home/tests.py
groupsome/groupsome
4edcf30d66ff458c4df37d3198ef187219a768d7
[ "MIT" ]
1
2020-07-15T04:29:31.000Z
2020-07-15T04:29:31.000Z
from django.test import TestCase, RequestFactory from django.core.urlresolvers import reverse from django.test.client import Client from django.contrib.auth.models import User from django.db import models from . import models from gallery.models import Album from events.models import Event from bot.models import Telegr...
52.291667
120
0.633815
2,508
20,080
4.926635
0.0937
0.089349
0.058919
0.042651
0.73527
0.689867
0.676594
0.661622
0.63629
0.630301
0
0.057623
0.229084
20,080
383
121
52.428198
0.740568
0.010807
0
0.390879
0
0
0.139883
0.006503
0
0
0
0
0.28013
1
0.114007
false
0.016287
0.032573
0
0.188925
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2bef62e40973e9af46fbaf0588cb20b520ce3847
1,368
py
Python
damask_plot/widget.py
lukas-koschmieder/damask_plot
1536a41fd06900bfd8ef9ceb6b45f005c696800b
[ "MIT" ]
5
2019-05-13T11:45:25.000Z
2021-07-04T10:15:10.000Z
damask_plot/widget.py
lukas-koschmieder/damask_plot
1536a41fd06900bfd8ef9ceb6b45f005c696800b
[ "MIT" ]
null
null
null
damask_plot/widget.py
lukas-koschmieder/damask_plot
1536a41fd06900bfd8ef9ceb6b45f005c696800b
[ "MIT" ]
3
2019-05-13T15:06:25.000Z
2021-02-10T11:17:29.000Z
# Copyright (c) 2019 Lukas Koschmieder from ipywidgets import Box from aixplot.widget import Filter, NoneFilter from aixplot.widget import Widget as Aixplot import numpy as np from .cacher import IterationCacher from .label import Label from IPython.core.magic import line_magic, magics_class, Magics from IPython.core...
34.2
78
0.681287
163
1,368
5.533742
0.398773
0.046563
0.037694
0.050998
0
0
0
0
0
0
0
0.004673
0.217836
1,368
39
79
35.076923
0.838318
0.026316
0
0
0
0
0.044361
0
0
0
0
0
0
1
0.121212
false
0
0.242424
0.030303
0.515152
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
2beff7b154b7eeaf86c9b6b9c389d6ff8ce1e1b8
466
py
Python
BlogSite-Flask/flaskblog/__init__.py
Mihir008/Web-Ideas
f8ccb6dfdec2c34c65618bd4e8b43426b7bdfe3a
[ "MIT" ]
10
2021-10-08T15:09:14.000Z
2021-12-27T10:38:07.000Z
BlogSite-Flask/flaskblog/__init__.py
Mihir008/Web-Ideas
f8ccb6dfdec2c34c65618bd4e8b43426b7bdfe3a
[ "MIT" ]
35
2021-10-07T10:40:24.000Z
2021-10-31T16:47:08.000Z
BlogSite-Flask/flaskblog/__init__.py
Mihir008/Web-Ideas
f8ccb6dfdec2c34c65618bd4e8b43426b7bdfe3a
[ "MIT" ]
29
2021-10-08T09:44:09.000Z
2021-12-12T05:54:03.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt from flask_login import LoginManager app = Flask(__name__) app.config['SECRET_KEY'] = '00caf1ee75cf656a5e24c2c36fc57d80' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db' db = SQLAlchemy(app) bcrypt = Bcrypt(ap...
29.125
61
0.811159
60
466
6.033333
0.416667
0.099448
0.082873
0
0
0
0
0
0
0
0
0.042959
0.100858
466
15
62
31.066667
0.821002
0
0
0
0
0
0.195279
0.118026
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2bf24903c8739b9654185fe57b009d7106c49e50
279
py
Python
tests/demo_service/test_service.py
pgpbpadilla/docker-python-ws
aba8d8f1c974716f5696dd4113597b76c59247cd
[ "MIT" ]
null
null
null
tests/demo_service/test_service.py
pgpbpadilla/docker-python-ws
aba8d8f1c974716f5696dd4113597b76c59247cd
[ "MIT" ]
null
null
null
tests/demo_service/test_service.py
pgpbpadilla/docker-python-ws
aba8d8f1c974716f5696dd4113597b76c59247cd
[ "MIT" ]
null
null
null
from demo_service import service async def test_create_app(aiohttp_client): client = await aiohttp_client(service.create_app) assert client is not None response = await client.get('/') assert response.status == 200 assert 'Hello' in await response.text()
23.25
53
0.731183
38
279
5.210526
0.605263
0.090909
0
0
0
0
0
0
0
0
0
0.013274
0.189964
279
12
54
23.25
0.862832
0
0
0
0
0
0.021429
0
0
0
0
0
0.428571
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
2bf7ce005462d5c92130d9a5364ce22cf118fccc
1,403
py
Python
Scrapers/gelsons_markets_scraper.py
chanson02/ny-bb-scrapers
4239872653d239ef19dc377fe0adb1f1548cd875
[ "MIT" ]
null
null
null
Scrapers/gelsons_markets_scraper.py
chanson02/ny-bb-scrapers
4239872653d239ef19dc377fe0adb1f1548cd875
[ "MIT" ]
null
null
null
Scrapers/gelsons_markets_scraper.py
chanson02/ny-bb-scrapers
4239872653d239ef19dc377fe0adb1f1548cd875
[ "MIT" ]
null
null
null
import json import time import pdb import re import traceback from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC fr...
34.219512
97
0.749109
197
1,403
5.19797
0.456853
0.09375
0.123047
0.079102
0.172852
0.172852
0.102539
0
0
0
0
0.005659
0.118318
1,403
40
98
35.075
0.82215
0
0
0
0
0
0.163222
0.022096
0
0
0
0
0
1
0
false
0
0.393939
0
0.393939
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2bf804a57c02964e9ceff3892200edda81b9c351
1,423
py
Python
config.py
donghankim/Adversarial-Attack-Using-Gradients
518ad9ec6850044a6d9e59977eecbc9603d20fbe
[ "MIT" ]
1
2021-10-15T09:34:25.000Z
2021-10-15T09:34:25.000Z
config.py
donghankim/Adversarial-Attack-Using-Gradients
518ad9ec6850044a6d9e59977eecbc9603d20fbe
[ "MIT" ]
null
null
null
config.py
donghankim/Adversarial-Attack-Using-Gradients
518ad9ec6850044a6d9e59977eecbc9603d20fbe
[ "MIT" ]
null
null
null
import argparse def get_args(): argp = argparse.ArgumentParser(description='adversarial examples',formatter_class=argparse.ArgumentDefaultsHelpFormatter) # GENERAL argp.add_argument('--device', type = str, default = 'cpu') argp.add_argument('--train', action = 'store_true') argp.add_argument('--te...
39.527778
125
0.661279
175
1,423
5.188571
0.371429
0.123348
0.264317
0.07489
0.112335
0.066079
0
0
0
0
0
0.015203
0.167955
1,423
35
126
40.657143
0.751689
0.052003
0
0
0
0
0.223301
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
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
2bfcb1c596d8014ab24e562150460b68df0fc1e1
780
py
Python
src/basis_superset_oracle.py
PotassiumIodide/minimum-spanning-tree-experiment
a095b50ebe4dec63d874e23ee0547c2c8a93108b
[ "MIT" ]
1
2021-11-18T08:10:59.000Z
2021-11-18T08:10:59.000Z
src/basis_superset_oracle.py
PotassiumIodide/minimum-spanning-tree-experiment
a095b50ebe4dec63d874e23ee0547c2c8a93108b
[ "MIT" ]
null
null
null
src/basis_superset_oracle.py
PotassiumIodide/minimum-spanning-tree-experiment
a095b50ebe4dec63d874e23ee0547c2c8a93108b
[ "MIT" ]
null
null
null
def by_independent_sets(independent_sets): """独立集合族Tにより与えられた集合が基拡大集合か否か判定する関数を返す関数 Args: independent_sets: 独立集合族T Returns: 与えられた集合Xが基拡大集合か否か判定する関数 True if |X| ≧ max{|I|: I ∈ T} False otherwise """ return lambda X: len(X) >= max(len(I) for I in independent_sets) def by_bases(bases): """基族Dにより与えられた集合が基...
20.526316
65
0.715385
104
780
5.269231
0.403846
0.109489
0.109489
0.142336
0.14781
0
0
0
0
0
0
0
0.184615
780
38
66
20.526316
0.853774
0.632051
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
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
1
0
0
0
0
0
0
0
1
920462baeb2905e34f624fdb0ff34984d04870df
364
py
Python
pytn/stickers/urls.py
pytennessee/pytn
f733f63f6ada9cdd67b445d0731532859392e8a7
[ "MIT" ]
3
2015-01-06T18:15:56.000Z
2017-07-12T20:15:08.000Z
pytn/stickers/urls.py
pytennessee/pytn
f733f63f6ada9cdd67b445d0731532859392e8a7
[ "MIT" ]
2
2015-09-09T14:21:33.000Z
2017-08-15T13:37:06.000Z
pytn/stickers/urls.py
pytennessee/pytn
f733f63f6ada9cdd67b445d0731532859392e8a7
[ "MIT" ]
2
2015-02-06T14:38:18.000Z
2017-07-01T13:36:32.000Z
from django.conf.urls.defaults import patterns, url urlpatterns = patterns("pytn.stickers.views", url(r"^submit/$", "sticker_submit", name="sticker_submit"), url(r"^review/$", "sticker_review", name="sticker_review"), url(r"^detail/(\d+)/$", "sticker_detail", name="sticker_detail"), url(r"^vote/(\d+)/...
36.4
69
0.667582
47
364
5
0.425532
0.068085
0
0
0
0
0
0
0
0
0
0
0.107143
364
9
70
40.444444
0.723077
0
0
0
0
0
0.475275
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9204a5fa66f4f20c5d804e7807bd1cc924289686
3,915
py
Python
.eggs/PyScaffold-2.5.6-py3.5.egg/pyscaffold/contrib/setuptools_scm/setup.py
awacs/bpp3
4168563f93bd399de1d4521fc6bab87542143dd2
[ "MIT" ]
null
null
null
.eggs/PyScaffold-2.5.6-py3.5.egg/pyscaffold/contrib/setuptools_scm/setup.py
awacs/bpp3
4168563f93bd399de1d4521fc6bab87542143dd2
[ "MIT" ]
null
null
null
.eggs/PyScaffold-2.5.6-py3.5.egg/pyscaffold/contrib/setuptools_scm/setup.py
awacs/bpp3
4168563f93bd399de1d4521fc6bab87542143dd2
[ "MIT" ]
null
null
null
"""\ important note: the setup of setuptools_scm is self-using, the first execution of `python setup.py egg_info` will generate partial data its critical to run `python setup.py egg_info` once before running sdist or easy_install on a fresh checkouts pip usage is recommended """ from __future__ import print_function ...
31.572581
76
0.67484
484
3,915
5.192149
0.396694
0.139674
0.047752
0.019101
0.205332
0.136092
0.097095
0.072423
0.072423
0.072423
0
0.002316
0.227842
3,915
123
77
31.829268
0.828978
0.082248
0
0.065934
1
0
0.527902
0.217913
0
0
0
0
0
1
0.021978
false
0
0.076923
0
0.120879
0.021978
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
9207ad36de79ab11a060525a2dc42d823de7ca1a
4,958
py
Python
libs/krules-core/krules_core/base_functions/misc.py
airspot-dev/krules
0e402feef51c6189a163a62912480cfac0c438bb
[ "Apache-2.0" ]
10
2021-02-26T13:00:22.000Z
2022-03-31T11:38:28.000Z
krules_core/base_functions/misc.py
airspot-dev/krules-core
300d1570d3cf7db20864ee51e165bc05d0cfd8df
[ "Apache-2.0" ]
1
2021-08-03T10:21:12.000Z
2021-08-03T10:21:12.000Z
libs/krules-core/krules_core/base_functions/misc.py
airspot-dev/krules
0e402feef51c6189a163a62912480cfac0c438bb
[ "Apache-2.0" ]
2
2020-11-02T17:42:29.000Z
2020-11-03T09:11:44.000Z
# Copyright 2019 The KRules Authors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing,...
48.607843
168
0.551634
551
4,958
4.872958
0.38657
0.028678
0.022346
0.011918
0.03054
0.014898
0
0
0
0
0
0.004575
0.382816
4,958
101
169
49.089109
0.872876
0.817467
0
0
0
0
0.023689
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
921836f738db17e59c62c23ff55da66316efa5ec
2,812
py
Python
planegeometry/algorithms/tests/test_bentleyottmann2.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
planegeometry/algorithms/tests/test_bentleyottmann2.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
planegeometry/algorithms/tests/test_bentleyottmann2.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import unittest from fractions import Fraction from planegeometry.structures.points import Point from planegeometry.structures.segments import Segment from planegeometry.algorithms.bentleyottmann2 import BentleyOttmann class TestBentleyOttmann(unittest.TestCase): def setUp(self): self....
38.520548
71
0.597084
360
2,812
4.638889
0.244444
0.186826
0.136527
0.186826
0.148503
0
0
0
0
0
0
0.123658
0.237909
2,812
72
72
39.055556
0.655623
0.007112
0
0
0
0
0.002867
0
0
0
0
0
0.074074
1
0.055556
false
0.018519
0.092593
0
0.166667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a6018b99d2b80507230256f9998137e0c26d8ffe
2,829
py
Python
emails/subscription_checker.py
f-hein/Foodletter
23e0fdde52997417f788b910e1798288189d841f
[ "MIT" ]
1
2021-01-06T10:32:12.000Z
2021-01-06T10:32:12.000Z
emails/subscription_checker.py
f-hein/Foodletter
23e0fdde52997417f788b910e1798288189d841f
[ "MIT" ]
null
null
null
emails/subscription_checker.py
f-hein/Foodletter
23e0fdde52997417f788b910e1798288189d841f
[ "MIT" ]
null
null
null
import imaplib import re from emails import MailingList, MailCreator, MailSender class SubscriptionChecker: def __init__(self, email, password, site, send_confirmation_mails=True): self.email = email self.password = password self.site = site self.send_confirmation_mails = send_con...
41
104
0.65076
352
2,829
4.914773
0.275568
0.036994
0.048555
0.03815
0.092486
0.062428
0
0
0
0
0
0.006061
0.241782
2,829
68
105
41.602941
0.800466
0
0
0.035714
0
0
0.074585
0.018735
0
0
0
0
0
1
0.178571
false
0.071429
0.053571
0.017857
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a602faf7839f6582bcc26a9c7bdccf023114a47f
1,431
py
Python
examples/healthcare/mimic_MVAE_mixed.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
148
2021-03-06T06:54:13.000Z
2022-03-29T19:27:21.000Z
examples/healthcare/mimic_MVAE_mixed.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
10
2021-07-19T22:57:49.000Z
2022-02-04T03:12:29.000Z
examples/healthcare/mimic_MVAE_mixed.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
18
2021-07-22T07:17:27.000Z
2022-03-27T16:11:40.000Z
import sys import os import torch from torch import nn sys.path.append(os.getcwd()) from unimodals.MVAE import MLPEncoder, TSEncoder, TSDecoder # noqa from objective_functions.recon import elbo_loss, sigmloss1d # noqa from training_structures.Supervised_Learning import train, test # noqa from datasets.mimic.get_data i...
39.75
90
0.765199
205
1,431
5.185366
0.443902
0.046096
0.031985
0.048918
0.048918
0.048918
0
0
0
0
0
0.035658
0.118099
1,431
35
91
40.885714
0.806656
0.0587
0
0
0
0
0.03438
0.017937
0
0
0
0
0
1
0
false
0
0.366667
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a607fd6f033c7cd222fd70b6a50d4f285c1ca162
350
py
Python
twofa/config.py
grantrosse/account-security-quickstart-flask
989cfa22d29b4588c0e8da57eb768d093da827f2
[ "MIT" ]
null
null
null
twofa/config.py
grantrosse/account-security-quickstart-flask
989cfa22d29b4588c0e8da57eb768d093da827f2
[ "MIT" ]
null
null
null
twofa/config.py
grantrosse/account-security-quickstart-flask
989cfa22d29b4588c0e8da57eb768d093da827f2
[ "MIT" ]
null
null
null
from os import path class Config(object): APP_DIR = path.dirname(path.abspath(__file__)) BASE_DIR = path.dirname(APP_DIR) DEBUG = True SECRET_KEY = '1a45ac651d8a1b42bd8c43dbe4e0a2f696374ce5ab50ec7d' SQLALCHEMY_DATABASE_URI = 'sqlite:///{base_dir}/db.sqlite3'.format(base_dir=BASE_DIR) SQLALCHEM...
31.818182
89
0.76
42
350
5.97619
0.666667
0.111554
0.111554
0
0
0
0
0
0
0
0
0.09
0.142857
350
10
90
35
0.746667
0
0
0
0
0
0.225714
0.225714
0
0
0
0
0
1
0
false
0
0.125
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a6091fcb99e6b0e7ddfff646dc903ee6d521da16
1,398
py
Python
train.py
pgolab/bag-of-words-opencv-pyhton
78b34521a4114c9b6cb13b850d161553cfe3ccdc
[ "MIT" ]
null
null
null
train.py
pgolab/bag-of-words-opencv-pyhton
78b34521a4114c9b6cb13b850d161553cfe3ccdc
[ "MIT" ]
null
null
null
train.py
pgolab/bag-of-words-opencv-pyhton
78b34521a4114c9b6cb13b850d161553cfe3ccdc
[ "MIT" ]
null
null
null
import cv2 import numpy as np from sklearn.svm import SVC import pickle from bow_utils.get_images_sets_histograms import get_images_sets_histograms from bow_utils.get_codebook import get_codebook from config import CATEGORIES, \ TRAIN_DATA_PATH, CLASSIFIER_PATH, \ CLUSTERS_COUNT def train_classifiers(catego...
25.888889
80
0.764664
176
1,398
5.744318
0.414773
0.108803
0.038576
0.068249
0.148368
0.087043
0
0
0
0
0
0.00256
0.16166
1,398
53
81
26.377358
0.860068
0.168813
0
0
0
0
0.029412
0
0
0
0
0.018868
0
1
0.107143
false
0
0.25
0
0.428571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a60f5b96cbb10d6df986e32e81dd03b04c4c3885
440
py
Python
examples/imageload_colorwheel.py
cogliano/Adafruit_CircuitPython_ImageLoad
8d5ec07e4a7e010f76a7a2b875814017400056a4
[ "MIT" ]
null
null
null
examples/imageload_colorwheel.py
cogliano/Adafruit_CircuitPython_ImageLoad
8d5ec07e4a7e010f76a7a2b875814017400056a4
[ "MIT" ]
null
null
null
examples/imageload_colorwheel.py
cogliano/Adafruit_CircuitPython_ImageLoad
8d5ec07e4a7e010f76a7a2b875814017400056a4
[ "MIT" ]
null
null
null
import board import displayio import adafruit_imageload display = board.DISPLAY bitmap, palette = adafruit_imageload.load("images/color_wheel.bmp", bitmap=displayio.Bitmap, palette=displayio.Palette) tile_grid = displayio.TileGrid(bi...
24.444444
68
0.652273
46
440
6.108696
0.521739
0.120996
0
0
0
0
0
0
0
0
0
0
0.270455
440
17
69
25.882353
0.875389
0
0
0
0
0
0.05
0.05
0
0
0
0
0
1
0
false
0.076923
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a61f17cfaf6d27e4104744c571eb947cb98fd591
2,572
py
Python
client-side/EdgeServer/TestClient.py
nifey/ElfStore
094b9e78f89011ade7c46f5fa9af82d0de4e33ca
[ "Apache-2.0" ]
1
2020-07-04T07:10:44.000Z
2020-07-04T07:10:44.000Z
client-side/EdgeServer/TestClient.py
nifey/ElfStore
094b9e78f89011ade7c46f5fa9af82d0de4e33ca
[ "Apache-2.0" ]
3
2020-04-23T18:38:14.000Z
2021-01-21T00:03:20.000Z
client-side/EdgeServer/TestClient.py
nifey/ElfStore
094b9e78f89011ade7c46f5fa9af82d0de4e33ca
[ "Apache-2.0" ]
3
2019-09-07T12:26:22.000Z
2020-07-15T03:36:07.000Z
#!/usr/bin/env python # # 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 # "L...
24.264151
61
0.692846
316
2,572
5.613924
0.506329
0.033822
0.014656
0.018038
0
0
0
0
0
0
0
0.010422
0.216563
2,572
105
62
24.495238
0.869975
0.431571
0
0.04878
0
0
0.105668
0
0
0
0
0
0
0
null
null
0
0.243902
null
null
0.146341
0
0
0
null
0
0
0
0
0
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
a620b227c36f4ec477fcd894d0e430c36fa97b40
1,217
py
Python
examples/3D_Cellular_Automaton/generate_files.py
corollary-health/episimmer
4095909c8bad86cc29060643114d70c268332e17
[ "BSD-3-Clause" ]
null
null
null
examples/3D_Cellular_Automaton/generate_files.py
corollary-health/episimmer
4095909c8bad86cc29060643114d70c268332e17
[ "BSD-3-Clause" ]
null
null
null
examples/3D_Cellular_Automaton/generate_files.py
corollary-health/episimmer
4095909c8bad86cc29060643114d70c268332e17
[ "BSD-3-Clause" ]
2
2020-10-12T17:46:37.000Z
2020-11-09T08:45:12.000Z
import sys def write_agents(filename,n): header='Agent Index' f=open(filename,'w') f.write(str(n)+'\n') f.write(header+'\n') for i in range(1, n + 1): f.write(str(i-1)+'\n') def write_interactions(filename, n): header = 'Agent Index:Interacting Agent Index' f = open(filename, 'w') f.write(str(8*n*(n - 1)...
25.893617
58
0.483155
262
1,217
2.21374
0.125954
0.082759
0.172414
0.172414
0.710345
0.618966
0.618966
0.618966
0.618966
0.475862
0
0.07628
0.21364
1,217
46
59
26.456522
0.529781
0
0
0.114286
0
0
0.093673
0
0
0
0
0
0
1
0.057143
false
0
0.028571
0
0.085714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a621510df713049d4b26544c687db2731e965ddb
357
py
Python
cloudcafe/blockstorage/volumes_api/common/models/requests.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/blockstorage/volumes_api/common/models/requests.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/blockstorage/volumes_api/common/models/requests.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
from cafe.engine.models.base import AutoMarshallingModel import json class StatusResetRequest(AutoMarshallingModel): def __init__(self, status=None): super(StatusResetRequest, self).__init__() self.status = status def _obj_to_json(self): data = {"os-reset_status": {"status": self.stat...
27.461538
59
0.703081
40
357
5.975
0.575
0.125523
0.117155
0
0
0
0
0
0
0
0
0
0.190476
357
12
60
29.75
0.82699
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a6299a7b502f66a5e376efa9f068773dfa70d0fe
8,685
py
Python
admin.py
AppScale/crisismap
758f0befbdbbc0eb2621fdaa2d250afd84d8829b
[ "Apache-2.0" ]
4
2015-04-03T16:33:17.000Z
2018-02-17T12:27:04.000Z
admin.py
AppScale/crisismap
758f0befbdbbc0eb2621fdaa2d250afd84d8829b
[ "Apache-2.0" ]
null
null
null
admin.py
AppScale/crisismap
758f0befbdbbc0eb2621fdaa2d250afd84d8829b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
38.259912
79
0.700288
1,206
8,685
4.906302
0.242952
0.043941
0.018929
0.016224
0.195369
0.167653
0.140612
0.104445
0.06287
0.06287
0
0.004115
0.188601
8,685
226
80
38.429204
0.835533
0.13057
0
0.120805
0
0
0.107271
0.011832
0
0
0
0.00885
0.033557
0
null
null
0
0.040268
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a62c13f37d69d677be1ebba4c7df5d725ff2d59b
1,331
py
Python
src/infraspec/selinux/utils.py
ssato/python-infraspec
73c1f5e87b76e65ca7e68faeef0f22838a8f6fea
[ "MIT" ]
null
null
null
src/infraspec/selinux/utils.py
ssato/python-infraspec
73c1f5e87b76e65ca7e68faeef0f22838a8f6fea
[ "MIT" ]
11
2020-08-30T03:38:47.000Z
2020-08-30T17:40:09.000Z
src/infraspec/selinux/utils.py
ssato/python-infraspec
73c1f5e87b76e65ca7e68faeef0f22838a8f6fea
[ "MIT" ]
null
null
null
# # Copyright (C) 2020 Satoru SATOH <satoru.satoh@gmail.com>. # SPDX-License-Identifier: MIT # # pylint: disable=import-outside-toplevel # """Utilities """ from ..common import Path try: import selinux selinux.getfilecon # pylint: disable=pointless-statement def get_selinux_label(path: str) -> str: ...
25.596154
76
0.642374
178
1,331
4.741573
0.52809
0.113744
0.094787
0.067536
0.127962
0.127962
0.127962
0.127962
0.127962
0.127962
0
0.009718
0.226897
1,331
51
77
26.098039
0.810496
0.46281
0
0.210526
0
0
0.031866
0
0
0
0
0
0
1
0.157895
false
0
0.210526
0
0.631579
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
a62ffde29ecdac577a2271f2758c785c3248a49c
520
py
Python
nfctokens/migrations/0008_nfctoken_last_edit.py
edinburghhacklab/hackdb
3ec7d66039705aa511dd6559196fa51a53b3a110
[ "MIT" ]
null
null
null
nfctokens/migrations/0008_nfctoken_last_edit.py
edinburghhacklab/hackdb
3ec7d66039705aa511dd6559196fa51a53b3a110
[ "MIT" ]
null
null
null
nfctokens/migrations/0008_nfctoken_last_edit.py
edinburghhacklab/hackdb
3ec7d66039705aa511dd6559196fa51a53b3a110
[ "MIT" ]
null
null
null
# Generated by Django 4.0.4 on 2022-04-24 15:39 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ("nfctokens", "0007_alter_nfctoken_options_alter_nfctokenlog_options"), ] operations = [ migrations.AddField( ...
23.636364
79
0.625
54
520
5.87037
0.722222
0.069401
0.119874
0
0
0
0
0
0
0
0
0.050532
0.276923
520
21
80
24.761905
0.792553
0.086538
0
0.133333
1
0
0.167019
0.112051
0
0
0
0
0
1
0
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a631be56498c9ca162e84e6201f58d779825ef54
798
py
Python
web/migrations/0030_auto_20180903_2001.py
Organ-xiangjikeji/---
fb80316e2345a3d68854eeb5ecb95c57f1f26835
[ "MIT" ]
1
2018-10-06T11:54:02.000Z
2018-10-06T11:54:02.000Z
web/migrations/0030_auto_20180903_2001.py
Organ-xiangjikeji/---
fb80316e2345a3d68854eeb5ecb95c57f1f26835
[ "MIT" ]
15
2018-09-07T13:44:14.000Z
2022-03-11T23:29:08.000Z
web/migrations/0030_auto_20180903_2001.py
Organ-xiangjikeji/JZSJ-official-website
fb80316e2345a3d68854eeb5ecb95c57f1f26835
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-09-03 12:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('web', '0029_auto_20180903_1826'), ] operations = [ migrations.CreateModel( name='Province', ...
29.555556
134
0.600251
88
798
5.306818
0.625
0.051392
0.059957
0.094218
0
0
0
0
0
0
0
0.05812
0.266917
798
26
135
30.692308
0.740171
0.056391
0
0.1
1
0
0.093209
0.030626
0
0
0
0
0
1
0
false
0
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a631decf8d013c6a78dfec250b4690bfd803623e
7,999
py
Python
aws_graph/libraries/model/Model.py
societe-generale/public-cloud-toolbox-aws-azure-
7ab4569fd97cc1446b628fb1d15ee4ec3ecfa032
[ "Apache-2.0" ]
1
2021-08-22T19:46:36.000Z
2021-08-22T19:46:36.000Z
aws_graph/libraries/model/Model.py
societe-generale/public-cloud-toolbox-aws-azure-
7ab4569fd97cc1446b628fb1d15ee4ec3ecfa032
[ "Apache-2.0" ]
null
null
null
aws_graph/libraries/model/Model.py
societe-generale/public-cloud-toolbox-aws-azure-
7ab4569fd97cc1446b628fb1d15ee4ec3ecfa032
[ "Apache-2.0" ]
2
2017-09-21T18:46:50.000Z
2019-10-04T20:18:16.000Z
############## ### NODE ### ############## # Every AWS resources will be instances of the node class class Node: """ The node is the base of the model used in aws-graph. All the aws resources are node class instanciated using different nodes builders. """ def __init__(self, json, resourc...
38.642512
79
0.613827
1,010
7,999
4.738614
0.171287
0.06519
0.013163
0.030088
0.28458
0.239031
0.233807
0.216047
0.202674
0.202674
0
0.003463
0.278035
7,999
206
80
38.830097
0.825281
0.158645
0
0.188679
0
0
0.06747
0
0
0
0
0
0
0
null
null
0
0
null
null
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a63ba7385e3ff67c51acf84a516c792287da4486
6,552
py
Python
code/modelCuration/GPRs/get_ensembl_ID_mapping.py
MetabolicAtlas/Human-GEM
f8c74a5a7156ddbc8b4bed91db2c81d6a36e5176
[ "CC-BY-4.0" ]
null
null
null
code/modelCuration/GPRs/get_ensembl_ID_mapping.py
MetabolicAtlas/Human-GEM
f8c74a5a7156ddbc8b4bed91db2c81d6a36e5176
[ "CC-BY-4.0" ]
null
null
null
code/modelCuration/GPRs/get_ensembl_ID_mapping.py
MetabolicAtlas/Human-GEM
f8c74a5a7156ddbc8b4bed91db2c81d6a36e5176
[ "CC-BY-4.0" ]
null
null
null
import MySQLdb import os import sys import argparse """ - Fetch all the IDs (gene_stable_id, transcript_stable_id, translation_stable_id, uniprot_id, gene_name, ncbi_id) from ensembl Human database - Fetch the list of Primary assembly gene IDs from the same database - Write the OUTPUT File with the list of IDS, excl...
41.207547
176
0.691392
967
6,552
4.475698
0.232678
0.038817
0.024954
0.036044
0.291359
0.259935
0.209797
0.173983
0.144409
0.141867
0
0.01003
0.223901
6,552
158
177
41.468354
0.841101
0.079823
0
0.233645
0
0.037383
0.568489
0.191436
0
0
0
0
0
0
null
null
0
0.037383
null
null
0.018692
0
0
0
null
0
0
0
0
0
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
a64d2c5ded7ebb1df218595092f0d019e43fed83
1,872
py
Python
pylistener/models/mymodel.py
CCallahanIV/CF401-Project-1---PyListener
1c31d0b26e373dfac5c0a38fe554a835b71e75e8
[ "MIT" ]
null
null
null
pylistener/models/mymodel.py
CCallahanIV/CF401-Project-1---PyListener
1c31d0b26e373dfac5c0a38fe554a835b71e75e8
[ "MIT" ]
null
null
null
pylistener/models/mymodel.py
CCallahanIV/CF401-Project-1---PyListener
1c31d0b26e373dfac5c0a38fe554a835b71e75e8
[ "MIT" ]
null
null
null
from sqlalchemy import ( Column, Index, Integer, Text, LargeBinary, Unicode, ForeignKey, Table ) from sqlalchemy.orm import relationship from .meta import Base class User(Base): """This class defines a User model.""" __tablename__ = 'users' id = Column(Integer, primary_key...
27.940299
92
0.69765
208
1,872
6.072115
0.293269
0.10293
0.083135
0.069675
0.413302
0.300871
0.209026
0.209026
0.209026
0.166271
0
0.001323
0.192308
1,872
66
93
28.363636
0.833995
0.017094
0
0.259259
0
0
0.089422
0.01145
0
0
0
0
0
1
0
false
0.018519
0.055556
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a64e7d2cec669d9e7d492a3c0f5db17a56333496
4,852
py
Python
ozone-framework-python-server/tests/stacks/test_stacks_api.py
aamduka/ozone
3fdbf232f5ea70661204a632e45310ca9d374973
[ "Apache-2.0" ]
6
2020-02-21T22:06:31.000Z
2020-12-08T10:48:07.000Z
ozone-framework-python-server/tests/stacks/test_stacks_api.py
aamduka/ozone
3fdbf232f5ea70661204a632e45310ca9d374973
[ "Apache-2.0" ]
12
2019-12-26T17:38:40.000Z
2022-02-10T14:15:55.000Z
ozone-framework-python-server/tests/stacks/test_stacks_api.py
aamduka/ozone
3fdbf232f5ea70661204a632e45310ca9d374973
[ "Apache-2.0" ]
4
2019-08-05T13:22:29.000Z
2021-07-21T16:04:03.000Z
from django.urls import reverse from django.test import TestCase from stacks.models import Stack from people.models import Person from rest_framework.test import APIClient from dashboards.models import Dashboard from domain_mappings.models import DomainMapping, MappingType from owf_groups.models import OwfGroupP...
41.118644
114
0.650866
570
4,852
5.375439
0.2
0.035901
0.060052
0.039164
0.501632
0.47748
0.409269
0.379243
0.347258
0.320822
0
0.008383
0.23784
4,852
117
115
41.470085
0.820173
0.056678
0
0.287234
0
0
0.137823
0.008081
0
0
0
0
0.170213
1
0.085106
false
0.06383
0.085106
0
0.191489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a64ee75634dc71c5ad22eb59b515cff8ab4da8f1
2,538
py
Python
tests/test_batch.py
gigaquads/pybiz
e9654592246be06a777934e889e03407c5c1673e
[ "MIT" ]
2
2021-02-26T15:30:44.000Z
2021-05-22T14:06:17.000Z
tests/test_batch.py
gigaquads/ravel
e9654592246be06a777934e889e03407c5c1673e
[ "MIT" ]
null
null
null
tests/test_batch.py
gigaquads/ravel
e9654592246be06a777934e889e03407c5c1673e
[ "MIT" ]
null
null
null
import ravel import pytest from appyratus.utils import DictObject from ravel import String, Int, Float, Bool from ravel.batch import Batch, BatchResolverProperty @pytest.fixture(scope='function') def trees(Tree): return Tree.Batch.generate(count=5).create() def test_factory_method(Tree, trees): assert isin...
33.394737
75
0.702522
332
2,538
5.28012
0.283133
0.039932
0.051911
0.06389
0.317741
0.147176
0.147176
0.147176
0.147176
0.147176
0
0.002956
0.200158
2,538
75
76
33.84
0.860591
0.062648
0
0.071429
0
0
0.006737
0
0
0
0
0
0.267857
1
0.196429
false
0.125
0.089286
0.017857
0.303571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a65a28ed76fec72f2957a361c60e8fc27a511feb
307
py
Python
trivium/cli/_command.py
TripleDotEng/trivium-cli
4291ed1d71d728ac3c0c738f7367f21521e393f4
[ "MIT" ]
null
null
null
trivium/cli/_command.py
TripleDotEng/trivium-cli
4291ed1d71d728ac3c0c738f7367f21521e393f4
[ "MIT" ]
null
null
null
trivium/cli/_command.py
TripleDotEng/trivium-cli
4291ed1d71d728ac3c0c738f7367f21521e393f4
[ "MIT" ]
null
null
null
""" Copyright 2021 Triple Dot Engineering LLC """ from abc import ABC, abstractmethod class Command(ABC): """The Command abstract class""" @abstractmethod def __run__(self, args): """All Commands will implement this run method""" raise Exception('Run command not defined.')
19.1875
57
0.674267
36
307
5.638889
0.777778
0
0
0
0
0
0
0
0
0
0
0.016736
0.221498
307
15
58
20.466667
0.832636
0.364821
0
0
0
0
0.137143
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a65a7be5ec2fdc0bd1aeb826674e5aa75d4ad92d
458
py
Python
urls.py
NursErgesh/django_2gis_maps
42f561519eeb769c8713fdb0cd394313a657eb9f
[ "MIT" ]
7
2018-07-30T03:20:33.000Z
2020-09-15T08:20:31.000Z
urls.py
NursErgesh/django-2gis-maps
42f561519eeb769c8713fdb0cd394313a657eb9f
[ "MIT" ]
4
2020-04-13T11:22:57.000Z
2020-09-16T00:24:54.000Z
urls.py
NursErgesh/django-2gis-maps
42f561519eeb769c8713fdb0cd394313a657eb9f
[ "MIT" ]
2
2018-07-29T17:55:12.000Z
2020-09-16T05:41:12.000Z
import django from django.contrib import admin admin.autodiscover() if django.get_version() >= '2.0.0': from django.urls import re_path as url from django.urls import include else: from django.conf.urls import url, include from sample.views import * urlpatterns = [ # url(r'^jet/', include('jet.urls',...
24.105263
48
0.668122
65
458
4.646154
0.430769
0.13245
0.092715
0.13245
0
0
0
0
0
0
0
0.007874
0.168122
458
18
49
25.444444
0.784777
0.174672
0
0
0
0
0.037333
0
0
0
0
0
0
1
0
false
0
0.461538
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a65cb85aec8fc424f2dc27558746c2d2f7a2e199
529
py
Python
app/reviews/models.py
yashagarwal97/Shopping-Portal
a10d5bdb49734782332b8b41d341fa80d5e80276
[ "MIT" ]
null
null
null
app/reviews/models.py
yashagarwal97/Shopping-Portal
a10d5bdb49734782332b8b41d341fa80d5e80276
[ "MIT" ]
null
null
null
app/reviews/models.py
yashagarwal97/Shopping-Portal
a10d5bdb49734782332b8b41d341fa80d5e80276
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from app import db class Review(db.Model): id = db.Column(db.Integer,primary_key=True) text = db.Column(db.String(400)) item_id=db.Column(db.Integer) user=db.Column(db.String(40)) def __init__(self,text,item_id,username): ...
33.0625
87
0.606805
72
529
4.291667
0.375
0.116505
0.12945
0.07767
0.122977
0
0
0
0
0
0
0.013089
0.277883
529
15
88
35.266667
0.795812
0
0
0
0
0
0.032136
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0.076923
0.769231
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
a66342cf7eae653cdbf043208c4b7371bf0c9eb3
62,888
py
Python
HIVE MIND.py
Joeyjoejojnr22/hive-mind
6f7bd0136e06071c8953a5beeb8952919c9203d3
[ "CC0-1.0" ]
null
null
null
HIVE MIND.py
Joeyjoejojnr22/hive-mind
6f7bd0136e06071c8953a5beeb8952919c9203d3
[ "CC0-1.0" ]
null
null
null
HIVE MIND.py
Joeyjoejojnr22/hive-mind
6f7bd0136e06071c8953a5beeb8952919c9203d3
[ "CC0-1.0" ]
null
null
null
import datetime class hivemind: class mind: class neurone: def __init__(self,name,resistance=0,accelerate=0.999,brake=0.999,bayeslearningrate=10): import random self.learningrate={} self.bayeslearningrate=bayeslearningrate ...
38.867738
266
0.426775
5,810
62,888
4.597935
0.091222
0.01415
0.003481
0.003594
0.531444
0.47301
0.426593
0.39163
0.373549
0.364228
0
0.016852
0.466878
62,888
1,617
267
38.891775
0.7797
0
0
0.562548
0
0
0.075808
0.00692
0
0
0
0
0
0
null
null
0.012279
0.021489
null
null
0.066002
0
0
0
null
0
0
0
0
0
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
a66590003b798644f3e169f29dfdb0bafdaae63f
633
py
Python
chatbot_jesse/snotbot/chatServer_snotbot.py
carmensteenbrink/getyourreview
c449e176a9629b1a457a14f9113cc0f95c5c23a5
[ "MIT" ]
null
null
null
chatbot_jesse/snotbot/chatServer_snotbot.py
carmensteenbrink/getyourreview
c449e176a9629b1a457a14f9113cc0f95c5c23a5
[ "MIT" ]
null
null
null
chatbot_jesse/snotbot/chatServer_snotbot.py
carmensteenbrink/getyourreview
c449e176a9629b1a457a14f9113cc0f95c5c23a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Command Line Interface (CLI) version import time import uniquebot as bot # Chat Server Framework functions def sleep(n): """Sleep n number of seconds. Pauses the execution of the program. """ time.sleep(n) def output(s): """Outputs string s as chat message. Send t...
15.825
45
0.620853
82
633
4.695122
0.646341
0.046753
0
0
0
0
0
0
0
0
0
0.002165
0.270142
633
39
46
16.230769
0.831169
0.478673
0
0
0
0
0.034483
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0
0.384615
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
1
0
0
0
0
0
0
0
1
a67d6112dc4a29459879127da6002a2ab872f277
8,018
py
Python
dork_compose/plugin.py
iamdork/dork-compose
ae757c5832b359b75f0b0864244132bb3312db29
[ "MIT" ]
2
2016-05-15T10:35:02.000Z
2016-08-09T12:29:15.000Z
dork_compose/plugin.py
iamdork/dork-compose
ae757c5832b359b75f0b0864244132bb3312db29
[ "MIT" ]
41
2016-05-15T10:47:51.000Z
2017-07-19T11:21:36.000Z
dork_compose/plugin.py
iamdork/dork-compose
ae757c5832b359b75f0b0864244132bb3312db29
[ "MIT" ]
3
2016-05-15T10:30:35.000Z
2017-02-24T14:48:23.000Z
import os import contextlib from compose.cli.command import get_client from compose.cli.docker_client import docker_client from compose.config import config from compose.config.environment import Environment from dork_compose.injections import dork_config_load from compose.const import API_VERSIONS from compose.projec...
28.034965
105
0.603767
874
8,018
5.410755
0.250572
0.050751
0.033834
0.021146
0.253965
0.240643
0.20977
0.194121
0.17805
0.162825
0
0.001064
0.296458
8,018
285
106
28.133333
0.837263
0.154278
0
0.378698
0
0
0.076432
0.018057
0
0
0
0
0
1
0.195266
false
0.08284
0.076923
0.059172
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a67fb4ee4d0064f75146fc770c6f565bee3a9131
1,108
py
Python
nautobot/virtualization/graphql/types.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
384
2021-02-24T01:40:40.000Z
2022-03-30T10:30:59.000Z
nautobot/virtualization/graphql/types.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
1,067
2021-02-24T00:58:08.000Z
2022-03-31T23:38:23.000Z
nautobot/virtualization/graphql/types.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
128
2021-02-24T02:45:16.000Z
2022-03-20T18:48:36.000Z
import graphene import graphene_django_optimizer as gql_optimizer from nautobot.virtualization.models import VirtualMachine, VMInterface from nautobot.virtualization.filters import VirtualMachineFilterSet, VMInterfaceFilterSet class VirtualMachineType(gql_optimizer.OptimizedDjangoObjectType): """GraphQL type obj...
33.575758
102
0.761733
114
1,108
7.254386
0.54386
0.066505
0.055623
0.106409
0.137848
0.137848
0.137848
0
0
0
0
0
0.165162
1,108
32
103
34.625
0.894054
0.231047
0
0.105263
0
0
0.06913
0.048868
0
0
0
0
0
1
0.052632
false
0
0.210526
0.052632
0.578947
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
a682b60a33793f9c968e7d4963ff5de333b808c4
982
py
Python
userprofile/migrations/0014_auto_20190430_2023.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
25
2016-04-13T20:25:37.000Z
2021-11-26T14:41:00.000Z
userprofile/migrations/0014_auto_20190430_2023.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
358
2016-02-20T21:13:27.000Z
2022-03-31T20:06:03.000Z
userprofile/migrations/0014_auto_20190430_2023.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
7
2016-04-18T14:03:15.000Z
2022-02-04T14:19:47.000Z
# Generated by Django 2.0.10 on 2019-04-30 20:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('userprofile', '0013_auto_20190408_1825'), ] operations = [ migrations.RemoveField( model_name='profile', name='soci...
29.757576
104
0.594705
104
982
5.451923
0.461538
0.063492
0.112875
0.141093
0.601411
0.555556
0.555556
0.312169
0.312169
0.312169
0
0.054131
0.285132
982
32
105
30.6875
0.753561
0.046843
0
0.423077
1
0
0.154176
0.024625
0
0
0
0
0
1
0
false
0
0.038462
0
0.153846
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
a6878115012bcb0ddc6b414fc09c133096c376e7
751
py
Python
statemachine/state.py
Tomos-Evans/state-machine
e88b05f60a2eeb9b6c3019de1baec0ca31375a54
[ "MIT" ]
2
2019-08-17T12:06:30.000Z
2019-09-26T21:04:17.000Z
statemachine/state.py
Tomos-Evans/state-machine
e88b05f60a2eeb9b6c3019de1baec0ca31375a54
[ "MIT" ]
null
null
null
statemachine/state.py
Tomos-Evans/state-machine
e88b05f60a2eeb9b6c3019de1baec0ca31375a54
[ "MIT" ]
null
null
null
from typing import Optional, Callable class State: def __init__(self, name: str, is_starting_state: bool=False, will_enter: Optional[Callable]=None, entered: Optional[Callable]=None, will_exit: Optional[Callable]=None, ...
34.136364
69
0.612517
90
751
4.866667
0.288889
0.182648
0.182648
0.123288
0
0
0
0
0
0
0
0
0.318242
751
21
70
35.761905
0.855469
0
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0.058824
0.294118
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
a688512ba710c468fe8944c99b4cb4df0d52c72b
308
py
Python
test_code/test2_stride.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
null
null
null
test_code/test2_stride.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
null
null
null
test_code/test2_stride.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
1
2022-01-19T03:01:13.000Z
2022-01-19T03:01:13.000Z
import numpy as np import torch import paddle ''' def _conv2d_wrapper(x, w, stride=1, padding=0, groups=1, transpose=False, flip_weight=True):使用到 ''' x = np.random.normal(size=[8, 64, 5, 7]) x2 = torch.Tensor(x) sss2 = x2.stride()[1] x = paddle.to_tensor(x) sss = x.shape[2] * x.shape[3] print()
12.32
95
0.655844
55
308
3.6
0.690909
0.070707
0
0
0
0
0
0
0
0
0
0.058366
0.165584
308
24
96
12.833333
0.712062
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a688bdebe2d68c967743b4e53fe8e6ca8a5a52e4
1,926
py
Python
test/test_q_learner.py
nikdnaik/metaqnn
a25847f635e9545455f83405453e740646038f7a
[ "MIT" ]
136
2016-11-07T05:35:06.000Z
2022-01-15T06:53:53.000Z
test/test_q_learner.py
MITAutoML/metaqnn
a25847f635e9545455f83405453e740646038f7a
[ "MIT" ]
7
2021-03-19T09:04:50.000Z
2022-03-12T00:08:15.000Z
test/test_q_learner.py
Artemisl/fpga_metaqnn
842393b8ed3f50bf2bf94772111dbbe245cb9e1f
[ "MIT" ]
42
2016-12-05T09:16:47.000Z
2021-09-29T05:28:16.000Z
from libs.grammar.q_learner import QLearner, QValues from libs.grammar import state_enumerator as se import needed_for_testing.hyper_parameters as hp import needed_for_testing.state_space_parameters as ssp from test_base import Test import pandas as pd import numpy as np class TestQLearner(Test): def __init__(se...
39.306122
144
0.656802
261
1,926
4.59387
0.295019
0.097581
0.070058
0.083403
0.229358
0.229358
0.1201
0.1201
0.085071
0.085071
0
0.018443
0.239875
1,926
48
145
40.125
0.800546
0
0
0
0
0
0.042575
0.016096
0
0
0
0
0
0
null
null
0
0.189189
null
null
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
1
0
0
0
0
0
0
0
0
1
a68c2f59bbdf091b5f0acc763831ac3eb17878ef
297
py
Python
scripts/npc/ariant_oasis.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
9
2021-04-26T11:59:29.000Z
2021-12-20T13:15:27.000Z
scripts/npc/ariant_oasis.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/npc/ariant_oasis.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
6
2021-07-14T06:32:05.000Z
2022-02-06T02:32:56.000Z
# Palace Oasis (2103000) | Ariant Castle (260000300) ariantCulture = 3900 if sm.hasQuest(ariantCulture): sm.setQRValue(ariantCulture, "5", False) sm.sendSayOkay("You used two hands to drink the clean water of the Oasis. " "Delicious! It quenched your thirst right on the spot.")
33
79
0.717172
40
297
5.325
0.825
0
0
0
0
0
0
0
0
0
0
0.087137
0.188552
297
9
80
33
0.796681
0.16835
0
0
0
0
0.455285
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1