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
b9a5362ea01805df4bb2ad83d0b9f037b0c75078
481
py
Python
lib/fmdplugins/list_records.py
GonzaloAlvarez/py-ga-sysadmin
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
2
2018-01-05T15:32:06.000Z
2021-06-02T13:15:05.000Z
lib/fmdplugins/list_records.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
67
2017-01-09T19:39:19.000Z
2018-02-28T05:33:40.000Z
lib/fmdplugins/list_records.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
null
null
null
from lib.fmd.namedentity import NamedEntity from lib.fmd.decorators import Action, ListStage, GetStage from lib.exceptions.workflow import EntryException @Action(ListStage.DATAGATHERING) def list_records(context, output): output = [] if hasattr(context, 'filter'): context.log.debug('Using filter [%s]'...
30.0625
63
0.719335
56
481
6.160714
0.517857
0.06087
0.057971
0.121739
0
0
0
0
0
0
0
0
0.170478
481
15
64
32.066667
0.864662
0
0
0
0
0
0.06237
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9a5aa9a635301ab37ae92c6395e50231bd81a4b
6,033
py
Python
pysoa/server/action/switched.py
zetahernandez/pysoa
006e55ba877196a42c64f2ff453583d366082d55
[ "Apache-2.0" ]
null
null
null
pysoa/server/action/switched.py
zetahernandez/pysoa
006e55ba877196a42c64f2ff453583d366082d55
[ "Apache-2.0" ]
null
null
null
pysoa/server/action/switched.py
zetahernandez/pysoa
006e55ba877196a42c64f2ff453583d366082d55
[ "Apache-2.0" ]
null
null
null
from __future__ import ( absolute_import, unicode_literals, ) import abc import six from pysoa.server.internal.types import is_switch __all__ = ( 'SwitchedAction', ) def _len(item): # Safe length that won't raise an error on values that don't support length return getattr(item, '__len__', lam...
38.673077
117
0.673463
781
6,033
5.003841
0.300896
0.028659
0.050154
0.060901
0.113869
0.05783
0.05783
0.05783
0.041453
0.041453
0
0.002705
0.264711
6,033
155
118
38.922581
0.878269
0.539698
0
0
0
0
0.121299
0
0
0
0
0
0
1
0.118644
false
0
0.084746
0.033898
0.389831
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9a6e1263697c6f30d94bde78d6313fed9c57e76
542
py
Python
Seeder/settings/tests.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/settings/tests.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/settings/tests.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
from .base import * SECRET_KEY = 'test' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True ALLOWED_HOSTS = ['127.0.0.1'] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'sqlite3.db', 'USER': '', 'PASSWO...
19.357143
66
0.605166
58
542
5.551724
0.775862
0.055901
0
0
0
0
0
0
0
0
0
0.019231
0.232472
542
28
67
19.357143
0.754808
0.116236
0
0.1
0
0
0.389121
0.24477
0
0
0
0
0
1
0
false
0.05
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9a767c55418efb8b98d12205d59e512ca419081
1,860
py
Python
blobStore.py
odeke-em/resty
838934033e7eeca521e8c6d8cb2e99778beaa4b9
[ "Apache-2.0" ]
null
null
null
blobStore.py
odeke-em/resty
838934033e7eeca521e8c6d8cb2e99778beaa4b9
[ "Apache-2.0" ]
null
null
null
blobStore.py
odeke-em/resty
838934033e7eeca521e8c6d8cb2e99778beaa4b9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Author: Emmanuel Odeke <odeke@ualberta.ca> # This example steps you through using resty & restAssured to save pickled/serialized # data as a blob and then later re-using it in after deserialization. # Sample usage might be in collaborative computing ie publish results from an expensive # compu...
31
87
0.7
234
1,860
5.529915
0.478632
0.009274
0.01391
0.025502
0.341577
0.341577
0.341577
0.341577
0.341577
0.22102
0
0.015323
0.193011
1,860
59
88
31.525424
0.846769
0.203226
0
0.292683
0
0
0.088076
0
0
0
0
0
0.04878
1
0.097561
false
0.195122
0.073171
0
0.170732
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
0
0
0
1
0
0
0
0
0
1
b9a7d3f5b98af28c51ffb55578408fad9a1d3f99
3,066
py
Python
venv/Lib/site-packages/dataframe/_dataframe_column_set.py
kavanAdeshara/Expense_Tracker
b3e4810e858a7786e05cda6b91ba674b73b87981
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/dataframe/_dataframe_column_set.py
kavanAdeshara/Expense_Tracker
b3e4810e858a7786e05cda6b91ba674b73b87981
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/dataframe/_dataframe_column_set.py
kavanAdeshara/Expense_Tracker
b3e4810e858a7786e05cda6b91ba674b73b87981
[ "Apache-2.0" ]
null
null
null
# dataframe: a data-frame implementation using method piping # # Copyright (C) 2016 Simon Dirmeier # # This file is part of dataframe. # # dataframe is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either versi...
30.356436
71
0.63242
405
3,066
4.62963
0.377778
0.0384
0.072
0.036267
0.080533
0.066667
0
0
0
0
0
0.004906
0.268754
3,066
100
72
30.66
0.831401
0.302022
0
0.105263
0
0
0.050986
0
0
0
0
0
0
1
0.210526
false
0
0.070175
0.070175
0.438596
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
b9a7d44b00e1b419e797c8637498d8abc23d4def
13,322
bzl
Python
java/image.bzl
Springworks/rules_docker
b943cd1fe3bf1c6c5fdac1889e952408599cffff
[ "Apache-2.0" ]
null
null
null
java/image.bzl
Springworks/rules_docker
b943cd1fe3bf1c6c5fdac1889e952408599cffff
[ "Apache-2.0" ]
null
null
null
java/image.bzl
Springworks/rules_docker
b943cd1fe3bf1c6c5fdac1889e952408599cffff
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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 applicable law or a...
34.246787
79
0.642546
1,702
13,322
4.866628
0.190364
0.017385
0.013522
0.021248
0.574188
0.529156
0.499698
0.490764
0.462031
0.426053
0
0.002419
0.255367
13,322
388
80
34.335052
0.83256
0.337712
0
0.378723
0
0
0.158374
0.077517
0
0
0
0.005155
0
1
0.034043
false
0
0
0
0.055319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9a831ae9aec7e87ced37e12721727df9e75bb48
17,427
py
Python
cupyx/jit/_builtin_funcs.py
khushi-411/cupy
b5221a478c800c5e60eef65545467de9eb00c0d9
[ "MIT" ]
null
null
null
cupyx/jit/_builtin_funcs.py
khushi-411/cupy
b5221a478c800c5e60eef65545467de9eb00c0d9
[ "MIT" ]
null
null
null
cupyx/jit/_builtin_funcs.py
khushi-411/cupy
b5221a478c800c5e60eef65545467de9eb00c0d9
[ "MIT" ]
null
null
null
import warnings import cupy from cupy_backends.cuda.api import runtime from cupy.cuda import device from cupyx.jit import _cuda_types from cupyx.jit._internal_types import BuiltinFunc from cupyx.jit._internal_types import Data from cupyx.jit._internal_types import Constant from cupyx.jit._internal_types import Range ...
35.206061
115
0.569748
2,094
17,427
4.582139
0.178128
0.029182
0.017196
0.018343
0.309536
0.279208
0.240542
0.216988
0.203544
0.173528
0
0.0164
0.310725
17,427
494
116
35.277328
0.782384
0.131348
0
0.236994
0
0.008671
0.287642
0.012954
0
0
0.002442
0
0.008671
1
0.066474
false
0
0.031792
0.00289
0.17341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9aa6c3c1ecb2355209fd4db4f58118befbffa8a
225
py
Python
python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
# 字符串删除空白 str1 = " hello " print(str1) print(len(str1)) # 去除两端的空格 print(str1.strip()) print(len(str1.strip())) # 去除左侧的空格 print(str1.lstrip()) print(len(str1.lstrip())) # 去除右侧的空格 print(str1.rstrip()) print(len(str1.rstrip()))
16.071429
25
0.688889
32
225
4.84375
0.34375
0.232258
0.309677
0
0
0
0
0
0
0
0
0.044118
0.093333
225
14
26
16.071429
0.715686
0.137778
0
0
0
0
0.036842
0
0
0
0
0
0
1
0
false
0
0
0
0
0.888889
0
0
0
null
1
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
1
0
3
b9aaf0198d21a1cb3a68b8836041445460cf7efd
379
py
Python
bruges/util/__init__.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
null
null
null
bruges/util/__init__.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
null
null
null
bruges/util/__init__.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .util import rms from .util import moving_average from .util import moving_avg_conv from .util import moving_avg_fft from .util import normalize from .util import next_pow2 from .util import top_and_tail from .util import extrapolate from .util import nearest from .util import deprecated fr...
27.071429
34
0.804749
61
379
4.836066
0.409836
0.325424
0.569492
0.20339
0.155932
0
0
0
0
0
0
0.006135
0.139842
379
13
35
29.153846
0.898773
0.055409
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
b9acae3f6c9a11754c72065d93acff3857609af2
5,423
py
Python
toontown/estate/DistributedHouseDoor.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/estate/DistributedHouseDoor.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/estate/DistributedHouseDoor.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from toontown.toonbase.ToonBaseGlobal import * from panda3d.core import * from direct.interval.IntervalGlobal import * from direct.distributed.ClockDelta import * from direct.distributed import DistributedObject from toontown.toonbase import ToontownGlobals from direct.directnotify import DirectNotifyGlobal from direct...
40.17037
299
0.638761
521
5,423
6.564299
0.318618
0.031579
0.049123
0.033626
0.123977
0.122807
0.081287
0.059064
0.032164
0.032164
0
0.005984
0.260372
5,423
134
300
40.470149
0.846672
0
0
0.191667
0
0
0.089434
0.004057
0
0
0
0
0
1
0.091667
false
0.008333
0.125
0.008333
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ad055e162f0001e288ab22dec6a5a4746fd51d
2,786
py
Python
Neuro-Cognitive Models/Runs/Nonhier_run/res_nonhier.py
AGhaderi/spatial_attenNCM
1f7edf17f55d804d2ae3360d23623c9ab5035518
[ "MIT" ]
null
null
null
Neuro-Cognitive Models/Runs/Nonhier_run/res_nonhier.py
AGhaderi/spatial_attenNCM
1f7edf17f55d804d2ae3360d23623c9ab5035518
[ "MIT" ]
null
null
null
Neuro-Cognitive Models/Runs/Nonhier_run/res_nonhier.py
AGhaderi/spatial_attenNCM
1f7edf17f55d804d2ae3360d23623c9ab5035518
[ "MIT" ]
null
null
null
#!/home/a.ghaderi/.conda/envs/envjm/bin/python # Model 2 import pystan import pandas as pd import numpy as np import sys sys.path.append('../../') import utils parts = 1 data = utils.get_data() #loading dateset data = data[data['participant']==parts] mis = np.where((data['n200lat']<.101)|(data['n200lat']>....
39.8
116
0.648959
390
2,786
4.541026
0.341026
0.045172
0.059289
0.028797
0.188594
0.094862
0.040655
0.040655
0.040655
0
0
0.041892
0.203159
2,786
69
117
40.376812
0.755856
0.262742
0
0
0
0
0.121362
0.013814
0
0
0
0
0
1
0
false
0
0.09434
0
0.09434
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9adc3a3c0f82e03cf53dd13486c80b1bb9dbf85
6,691
py
Python
rq_dashboard/dashboard.py
refgenomics/rq-dashboard
cdfadd2b9aa9a66b0594fd5573e3c45fa8643f05
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
rq_dashboard/dashboard.py
refgenomics/rq-dashboard
cdfadd2b9aa9a66b0594fd5573e3c45fa8643f05
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
rq_dashboard/dashboard.py
refgenomics/rq-dashboard
cdfadd2b9aa9a66b0594fd5573e3c45fa8643f05
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from redis import Redis from redis import from_url from rq import push_connection, pop_connection from rq.job import Job from functools import wraps import times from flask import Blueprint from flask import current_app, url_for, abort from flask import render_template from rq import Queue, Worker from rq import cancel...
29.606195
115
0.67658
929
6,691
4.624327
0.19591
0.048184
0.029795
0.030959
0.196229
0.136639
0.079376
0.065875
0.036546
0.027467
0
0.005448
0.204454
6,691
225
116
29.737778
0.801616
0.028396
0
0.139535
0
0
0.074371
0.020059
0
0
0
0
0
1
0.127907
false
0.005814
0.087209
0.023256
0.325581
0.011628
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ae95988166d56c353c46926e3d21a79d84f88c
769
py
Python
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
moas/mfdata
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
[ "BSD-3-Clause" ]
null
null
null
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
moas/mfdata
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
[ "BSD-3-Clause" ]
null
null
null
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
moas/mfdata
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
[ "BSD-3-Clause" ]
null
null
null
from acquisition.step import AcquisitionStep from acquisition.stats import AcquisitionStatsDClient from acquisition.move_step import AcquisitionMoveStep from acquisition.delete_step import AcquisitionDeleteStep from acquisition.batch_step import AcquisitionBatchStep from acquisition.reinject_step import AcquisitionRein...
48.0625
63
0.830949
61
769
10.311475
0.360656
0.214626
0
0
0
0
0
0
0
0
0
0
0.119636
769
15
64
51.266667
0.929099
0
0
0
0
0
0.235371
0.115735
0
0
0
0
0
1
0
false
0
0.642857
0
0.642857
0
0
0
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b9b2dd8fc97fddaaa64ec64957043ee8e8088e39
615
py
Python
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals from frappe.model.document import Document from frappe.contacts.address_and_contact import load_address_and_contact class Member(Docum...
29.285714
72
0.786992
86
615
5.360465
0.488372
0.086768
0.110629
0.091106
0.112798
0
0
0
0
0
0
0.009259
0.121951
615
21
73
29.285714
0.844444
0.287805
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.363636
0
0.727273
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
1
0
1
0
0
3
b9b3501a4a1a7bee83abdc50e1932071f97c2394
12,427
py
Python
networks/networks.py
ayyuriss/TRHPO
56a06d3593504647b75589ab87b5c96bdab74c9f
[ "MIT" ]
null
null
null
networks/networks.py
ayyuriss/TRHPO
56a06d3593504647b75589ab87b5c96bdab74c9f
[ "MIT" ]
null
null
null
networks/networks.py
ayyuriss/TRHPO
56a06d3593504647b75589ab87b5c96bdab74c9f
[ "MIT" ]
null
null
null
from torch import nn import numpy as np import base.basenetwork as BaseN from networks.cholesky import CholeskyBlock class FCNet(BaseN.BaseNetwork): name ="FCNet" def __init__(self,input_shape,output_shape,owner_name=""): super(FCNet,self).__init__(input_shape,output_shape,owner_name) ...
50.51626
91
0.508168
1,318
12,427
4.562974
0.056146
0.107915
0.082474
0.108247
0.801463
0.790489
0.758563
0.738111
0.731959
0.721317
0
0.058628
0.370001
12,427
245
92
50.722449
0.709541
0
0
0.582569
0
0
0.013841
0
0
0
0
0
0
1
0.073395
false
0
0.018349
0
0.238532
0
0
0
0
null
0
0
0
1
1
1
1
1
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
6
b9b4c8dedee4c99c1bae0987e46ca8c83899e4d8
1,435
py
Python
icenews/api_important_words.py
sverrirab/icenews
10a5e13d4dcd5e95f746c4fec9821b4b48fa440e
[ "Apache-2.0" ]
4
2019-04-25T21:09:39.000Z
2020-07-26T08:57:00.000Z
icenews/api_important_words.py
sverrirab/icenews
10a5e13d4dcd5e95f746c4fec9821b4b48fa440e
[ "Apache-2.0" ]
1
2019-08-11T00:27:18.000Z
2019-08-12T17:36:42.000Z
icenews/api_important_words.py
sverrirab/icenews
10a5e13d4dcd5e95f746c4fec9821b4b48fa440e
[ "Apache-2.0" ]
null
null
null
import logging from pydantic import BaseModel, Field from typing import List from .similar import important_words from .server import app _MAX_LENGTH = 2000 logger = logging.getLogger(__name__) class ImportantWordsResponse(BaseModel): important_words: List[str] = Field(..., description="List of lemmas") cla...
25.625
97
0.724042
160
1,435
6.3
0.4
0.138889
0.056548
0.045635
0.464286
0.464286
0.464286
0.464286
0.464286
0.180556
0
0.008503
0.180488
1,435
55
98
26.090909
0.848639
0.066202
0
0.45
0
0
0.143498
0.018685
0
0
0
0
0
1
0.05
false
0
0.4
0.025
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
b9b51a38157d5d825f921ab19fba044fe3545044
206
py
Python
try-except.py
kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial-
8ea4ef004d86fdf393980fd356edcf5b769bfeac
[ "BSD-3-Clause" ]
null
null
null
try-except.py
kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial-
8ea4ef004d86fdf393980fd356edcf5b769bfeac
[ "BSD-3-Clause" ]
null
null
null
try-except.py
kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial-
8ea4ef004d86fdf393980fd356edcf5b769bfeac
[ "BSD-3-Clause" ]
null
null
null
try: # num = 10 / 0 number = int(input("Enter a number: ")) print(number) # catch specific errors except ZeroDivisionError as err: print(err) except ValueError: print("Invalid input")
17.166667
43
0.650485
26
206
5.153846
0.730769
0
0
0
0
0
0
0
0
0
0
0.019108
0.237864
206
11
44
18.727273
0.834395
0.165049
0
0
0
0
0.172619
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
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
1
0
2
b9b691941c62b002880bb1f21ca60b0e932e41c1
3,574
py
Python
peaksampl.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
peaksampl.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
peaksampl.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
import numpy as np def _adddims(a, b): n = max(a.ndim, b.ndim) a = np.expand_dims(a, tuple(range(n - a.ndim))) b = np.expand_dims(b, tuple(range(n - b.ndim))) return a, b def _yz(y, z, t, yout): """ Shared implementation of peaksampl and sumpeaks. """ y = np.asarray(y) z = np.asarr...
28.822581
78
0.546726
560
3,574
3.4375
0.255357
0.01039
0.028052
0.010909
0.336104
0.275325
0.246234
0.214026
0.188052
0.188052
0
0.02549
0.286514
3,574
123
79
29.056911
0.729412
0.339675
0
0
0
0
0.01857
0
0
0
0
0
0.016949
1
0.067797
false
0
0.050847
0
0.186441
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9b6f990f4ce20ca5842a3bb309cb667f69ccc3e
453
py
Python
arachne/hdl/xilinx/ps8/resources/pmu.py
shrine-maiden-heavy-industries/arachne
1d0320bf6e77653656f8ce1874900743452dbac4
[ "BSD-3-Clause" ]
3
2021-09-13T20:23:42.000Z
2022-01-19T13:12:32.000Z
arachne/hdl/xilinx/ps8/resources/pmu.py
shrine-maiden-heavy-industries/arachne
1d0320bf6e77653656f8ce1874900743452dbac4
[ "BSD-3-Clause" ]
null
null
null
arachne/hdl/xilinx/ps8/resources/pmu.py
shrine-maiden-heavy-industries/arachne
1d0320bf6e77653656f8ce1874900743452dbac4
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause from amaranth import * from amaranth.build import * from .common import PS8Resource, MIOSet __all__ = ( 'PMUResource', ) class PMUResource(PS8Resource): name = 'pmu' claimable_mio = [ ] def __init__(self): super().__init__(0, 0, None, False) def used_mio(...
19.695652
46
0.699779
52
453
5.807692
0.653846
0.07947
0.099338
0.225166
0.258278
0
0
0
0
0
0
0.013441
0.178808
453
22
47
20.590909
0.798387
0.116998
0
0.133333
0
0
0.035354
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
1
0
0
2
b9b9340675c6ceead7ff166bf8fe4d65fa580b58
4,597
py
Python
backend/Washlist/tests.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
null
null
null
backend/Washlist/tests.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
2
2020-05-02T18:17:44.000Z
2020-05-02T18:18:02.000Z
backend/Washlist/tests.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from rest_framework import status from Dormroom.models import Dormroom from SIFUser.mixins import AuthTestMixin from StudentVillage.models import StudentVillage from Washlist.jobs import reset_washlists from Washlist.models.Templates import TemplateList...
35.091603
92
0.67022
493
4,597
6.137931
0.227181
0.051553
0.068407
0.051223
0.575017
0.562789
0.542631
0.542631
0.496034
0.421679
0
0.00766
0.233196
4,597
130
93
35.361538
0.85078
0.052861
0
0.452632
0
0
0.054168
0.025916
0
0
0
0
0.126316
1
0.105263
false
0
0.105263
0
0.252632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ba39e57d52ad0baaeb81fbe95a03b7bb17d4ad
3,792
py
Python
torchvision/prototype/models/mobilenetv3.py
piyush01123/vision
c6722307e6860057b4855483d237fe00a213dcf6
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/models/mobilenetv3.py
piyush01123/vision
c6722307e6860057b4855483d237fe00a213dcf6
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/models/mobilenetv3.py
piyush01123/vision
c6722307e6860057b4855483d237fe00a213dcf6
[ "BSD-3-Clause" ]
null
null
null
from functools import partial from typing import Any, Optional, List from torchvision.prototype.transforms import ImageNetEval from torchvision.transforms.functional import InterpolationMode from ...models.mobilenetv3 import MobileNetV3, _mobilenet_v3_conf, InvertedResidualConfig from ._api import WeightsEnum, Weight...
34.472727
119
0.704114
426
3,792
5.953052
0.288732
0.108438
0.063091
0.054416
0.549685
0.494874
0.468849
0.413249
0.413249
0.413249
0
0.048403
0.182753
3,792
109
120
34.788991
0.769926
0
0
0.238636
0
0.034091
0.214399
0.013713
0
0
0
0
0
1
0.034091
false
0
0.090909
0
0.238636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9bb675bdbf31f94537da2d2380efe251bd20dd2
1,036
py
Python
rest_auth/registration/urls.py
soul4code/django-rest-auth
b7a2e06e7736865b18f6aab79dcd42210e06c28b
[ "MIT" ]
null
null
null
rest_auth/registration/urls.py
soul4code/django-rest-auth
b7a2e06e7736865b18f6aab79dcd42210e06c28b
[ "MIT" ]
null
null
null
rest_auth/registration/urls.py
soul4code/django-rest-auth
b7a2e06e7736865b18f6aab79dcd42210e06c28b
[ "MIT" ]
null
null
null
from django.urls import re_path from django.views.generic import TemplateView from .views import RegisterView, VerifyEmailView urlpatterns = [ re_path(r'^$', RegisterView.as_view(), name='rest_register'), re_path(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'), # This url is use...
41.44
100
0.721042
150
1,036
4.886667
0.56
0.032742
0.028649
0.038199
0
0
0
0
0
0
0
0
0.17278
1,036
24
101
43.166667
0.855309
0.532819
0
0
0
0
0.230444
0.131078
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b9bb907819b5835937644fde4b8d08e5dd987580
1,036
py
Python
crawler/tests.py
mental689/paddict
493268b62531c698687d42416edf61c602250133
[ "MIT" ]
1
2019-06-22T10:28:21.000Z
2019-06-22T10:28:21.000Z
crawler/tests.py
mental689/paddict
493268b62531c698687d42416edf61c602250133
[ "MIT" ]
4
2020-09-05T01:48:18.000Z
2022-03-02T04:29:25.000Z
crawler/tests.py
mental689/paddict
493268b62531c698687d42416edf61c602250133
[ "MIT" ]
null
null
null
from django.test import TestCase # Create your tests here. from crawler.download import * from crawler.models import * class AnimalDownloadTestCase(TestCase): def setUp(self): self.stopWords = ["CVPR 2019", "Computer Vision Foundation."] self.url = "/Users/tuannguyenanh/Desktop/cvpr2019.html"#"htt...
32.375
106
0.608108
126
1,036
4.952381
0.555556
0.057692
0.064103
0.073718
0
0
0
0
0
0
0
0.03073
0.246139
1,036
31
107
33.419355
0.768246
0.100386
0
0.086957
0
0
0.168649
0.045405
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.26087
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9bfcc9ca3f71d3591d1b453eea9313adf491d9f
452
py
Python
test_scripts/xml_example.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
1
2015-11-17T21:35:44.000Z
2015-11-17T21:35:44.000Z
test_scripts/xml_example.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
null
null
null
test_scripts/xml_example.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from urllib.request import urlopen from xml.etree.ElementTree import parse # Download the RSS feed and parse it u = urlopen('http://planet.python.org/rss20.xml') doc = parse(u) # Extract and output tags of interest for item in doc.iterfind('channel/item'): title = item.findtext('title') date = i...
20.545455
49
0.725664
67
452
4.895522
0.641791
0.109756
0
0
0
0
0
0
0
0
0
0.007673
0.134956
452
21
50
21.52381
0.831202
0.19469
0
0
0
0
0.219444
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.384615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9c06414f6de5d6df932f87abe0ac2addfe2d410
1,489
py
Python
contacts/urls.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
1
2019-04-21T18:57:57.000Z
2019-04-21T18:57:57.000Z
contacts/urls.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
null
null
null
contacts/urls.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
null
null
null
"""dedupper_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
38.179487
85
0.672263
209
1,489
4.746411
0.368421
0.060484
0.015121
0.024194
0.117944
0.117944
0.075605
0
0
0
0
0.006354
0.154466
1,489
38
86
39.184211
0.781573
0.699127
0
0
0
0
0.172811
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9c1739f7de89fe26aec7c763524b35992652ab0
92
py
Python
pydm/PyQt/uic.py
klauer/pydm
e26aad58a7a0eb6f7321c61aa1dace646ff652bd
[ "BSD-3-Clause-LBNL" ]
null
null
null
pydm/PyQt/uic.py
klauer/pydm
e26aad58a7a0eb6f7321c61aa1dace646ff652bd
[ "BSD-3-Clause-LBNL" ]
null
null
null
pydm/PyQt/uic.py
klauer/pydm
e26aad58a7a0eb6f7321c61aa1dace646ff652bd
[ "BSD-3-Clause-LBNL" ]
null
null
null
from . import qtlib QT_LIB = qtlib.QT_LIB if QT_LIB == 'PyQt5': from PyQt5.uic import *
18.4
27
0.684783
16
92
3.75
0.5
0.25
0.333333
0
0
0
0
0
0
0
0
0.027397
0.206522
92
4
28
23
0.794521
0
0
0
0
0
0.054348
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
b9c1d738b7414d020a32d72c8b5b4b39a4b6d1d4
2,667
py
Python
CPB100/lab2b/scheduled/ingestapp.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
CPB100/lab2b/scheduled/ingestapp.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
CPB100/lab2b/scheduled/ingestapp.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
32.13253
214
0.683915
366
2,667
4.904372
0.486339
0.033426
0.030084
0.017827
0
0
0
0
0
0
0
0.011199
0.196475
2,667
82
215
32.52439
0.826412
0.285339
0
0.047619
0
0.047619
0.384697
0.014346
0
0
0
0
0
1
0.071429
false
0
0.119048
0.02381
0.261905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9c3b62c39c9c9979a0f73775051d1aecd742c75
73
py
Python
index.py
StarSky1/microsoft-python-study
7fdc1ad87ac0eeb497013d7792f499416aac32d9
[ "MIT" ]
null
null
null
index.py
StarSky1/microsoft-python-study
7fdc1ad87ac0eeb497013d7792f499416aac32d9
[ "MIT" ]
null
null
null
index.py
StarSky1/microsoft-python-study
7fdc1ad87ac0eeb497013d7792f499416aac32d9
[ "MIT" ]
null
null
null
name=input('input your name:'); print('hello'); print(name.capitalize());
24.333333
31
0.69863
10
73
5.1
0.6
0
0
0
0
0
0
0
0
0
0
0
0.054795
73
3
32
24.333333
0.73913
0
0
0
0
0
0.283784
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
b9c4867749ea67a9a267a9e62cea575f210f9260
2,526
py
Python
credentials.py
Machel54/-pass-locker-
8ddf14cf755924ca903919177f9f878f65a08042
[ "MIT" ]
null
null
null
credentials.py
Machel54/-pass-locker-
8ddf14cf755924ca903919177f9f878f65a08042
[ "MIT" ]
null
null
null
credentials.py
Machel54/-pass-locker-
8ddf14cf755924ca903919177f9f878f65a08042
[ "MIT" ]
1
2020-01-29T02:05:49.000Z
2020-01-29T02:05:49.000Z
import pyperclip import random import string class Credential: ''' class that generates new credentials ''' credential_list = [] def __init__(self,username,sitename,password): self.username = username self.password = password self.sitename = sitename def save_credential(self): ''' sav...
30.071429
111
0.665479
276
2,526
5.952899
0.322464
0.093731
0.043822
0.047474
0.120511
0.088862
0.053561
0.053561
0
0
0
0.005269
0.248614
2,526
83
112
30.433735
0.860379
0.247427
0
0.130435
1
0
0.08656
0.052392
0
0
0
0
0
1
0.173913
false
0.23913
0.065217
0
0.391304
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
b9c5365f366487d350d0993e89760939da233546
80
py
Python
tests/test_dice.py
mehulsatardekar/dice-on-demand
fa1ce1214975ba70c5d61390408a4de2418cf997
[ "MIT" ]
1
2020-12-03T14:27:20.000Z
2020-12-03T14:27:20.000Z
tests/test_dice.py
mehulsatardekar/dice-on-demand
fa1ce1214975ba70c5d61390408a4de2418cf997
[ "MIT" ]
11
2020-10-21T17:51:12.000Z
2020-11-09T12:02:52.000Z
tests/test_dice.py
mehulsatardekar/dice-on-demand
fa1ce1214975ba70c5d61390408a4de2418cf997
[ "MIT" ]
27
2021-09-09T22:53:21.000Z
2021-11-20T22:46:16.000Z
import unittest import app def test_test(): assert app.test() == "Works!"
11.428571
33
0.6625
11
80
4.727273
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.2
80
6
34
13.333333
0.8125
0
0
0
0
0
0.075
0
0
0
0
0
0.25
1
0.25
true
0
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
b9c62ba9c79d4ffcb00ede68fc940fc877d45118
5,614
py
Python
annotations/rip_annotated_junctions.py
ChristopherWilks/snaptron
82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a
[ "MIT" ]
25
2016-01-08T02:02:36.000Z
2021-12-29T14:00:58.000Z
annotations/rip_annotated_junctions.py
ChristopherWilks/snaptron
82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a
[ "MIT" ]
11
2016-02-25T01:44:46.000Z
2021-07-02T05:52:55.000Z
annotations/rip_annotated_junctions.py
ChristopherWilks/snaptron
82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a
[ "MIT" ]
7
2016-02-13T01:45:15.000Z
2021-11-22T11:04:12.000Z
#!/usr/bin/env python """ rip_annotated_junctions.py Non-reference/species verson of this script, no lift-over Rips junctions from annotation files contained in jan_24_2016_annotations.tar.gz, as described in annotation_definition.md. Junctions are dumped to stdout, which we record as annotated_junctions.tsv.gz in ru...
44.555556
543
0.603669
658
5,614
4.995441
0.361702
0.021296
0.032857
0.027989
0.158807
0.11439
0.028598
0.028598
0.028598
0.028598
0
0.043767
0.275561
5,614
125
544
44.912
0.764446
0.180976
0
0.02439
0
0
0.134615
0.050108
0
0
0
0
0
0
null
null
0
0.121951
null
null
0.036585
0
0
0
null
0
0
0
0
0
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
b9c731695680778a55c685fcfc15ab5e3eccf437
5,438
py
Python
dramkit/_tmp/VMD.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
dramkit/_tmp/VMD.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
dramkit/_tmp/VMD.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np def vmd( signal, alpha, tau, K, DC, init, tol): ''' 用VMD分解算法时只要把信号输入进行分解就行了,只是对信号进行分解,和采样频率没有关系, VMD的输入参数也没有采样频率。 VMD分解出的各分量在输出量 u 中,这个和信号的长度、信号的采样频率没有关系。 迭代时各分量的中心频率在输出量omega,可以用2*pi/fs*omega求出中心频率, 但迭代时的频率是变化的。 Input and Parameters: signal ...
37.503448
141
0.580912
878
5,438
3.494305
0.252847
0.035202
0.044329
0.026402
0.203716
0.133963
0.102999
0.084746
0.084746
0.073664
0
0.029659
0.255976
5,438
144
142
37.763889
0.728621
0.400331
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.014493
false
0
0.014493
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9c7d11a999150072e268ba745c49eb08ce5081f
358
py
Python
src/PyDS/Queue/Deque.py
AoWangPhilly/PyDS
d79f92d0d2e7c005ebb8fa9f631d5f01e590625e
[ "MIT" ]
null
null
null
src/PyDS/Queue/Deque.py
AoWangPhilly/PyDS
d79f92d0d2e7c005ebb8fa9f631d5f01e590625e
[ "MIT" ]
null
null
null
src/PyDS/Queue/Deque.py
AoWangPhilly/PyDS
d79f92d0d2e7c005ebb8fa9f631d5f01e590625e
[ "MIT" ]
null
null
null
class Deque: def add_first(self, value): ... def add_last(self, value): ... def delete_first(self): ... def delete_last(self): ... def first(self): ... def last(self): ... def is_empty(self): ... def __len__(self): .....
12.785714
31
0.430168
36
358
3.916667
0.361111
0.297872
0.170213
0
0
0
0
0
0
0
0
0
0.410615
358
27
32
13.259259
0.668246
0
0
0.473684
0
0
0
0
0
0
0
0
0
1
0.473684
false
0
0
0
0.526316
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
b9c81413c2bd63d72d0731352d31911ef52240f6
480
py
Python
forum/main.py
asmaasalih/my_project
89183d7a2578fa302e94ea29570ab527e9ca47b5
[ "MIT" ]
1
2018-03-21T07:51:36.000Z
2018-03-21T07:51:36.000Z
forum/main.py
asmaasalih/my_project
89183d7a2578fa302e94ea29570ab527e9ca47b5
[ "MIT" ]
null
null
null
forum/main.py
asmaasalih/my_project
89183d7a2578fa302e94ea29570ab527e9ca47b5
[ "MIT" ]
null
null
null
import models import stores member1 =models.Member("ahmed",33) member2 =models.Member("mohamed",30) post1=models.Post("Post1", "Content1") post2= models.Post("Post2", "Content2") post3= models.Post("Post3", "Content3") #member store member_store=stores.MemberStore() member_store.add(member1) member_store.add(member...
20.869565
39
0.772917
69
480
5.217391
0.347826
0.152778
0.1
0
0
0
0
0
0
0
0
0.044843
0.070833
480
22
40
21.818182
0.762332
0.025
0
0
0
0
0.109208
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9c89d9ad7d4587730637df2e5c8576e03c43ad8
3,115
py
Python
shellfind.py
bhavyanshu/Shell-Finder
308b3ba7f1a53b8a6cc738d69c01f4b7108d0860
[ "Apache-2.0" ]
4
2016-06-15T22:08:29.000Z
2019-10-16T13:12:51.000Z
shellfind.py
kaitolegion/Shell-Finder
308b3ba7f1a53b8a6cc738d69c01f4b7108d0860
[ "Apache-2.0" ]
null
null
null
shellfind.py
kaitolegion/Shell-Finder
308b3ba7f1a53b8a6cc738d69c01f4b7108d0860
[ "Apache-2.0" ]
7
2015-07-08T22:21:52.000Z
2021-05-31T14:05:47.000Z
#!/usr/bin/env python ''' Author : Bhavyanshu Parasher Email : bhavyanshu@codershangout.org Description : shellfind.py is a Python command line utility which lets you look for shells on a site that the hacker must have uploaded. It considers all the shells available and tries all possibilities via dictionary match. '''...
35
224
0.742857
449
3,115
4.988864
0.396437
0.087054
0.072321
0.042857
0.068304
0.068304
0.068304
0.051786
0.051786
0.051786
0
0.013223
0.150241
3,115
88
225
35.397727
0.833019
0.020546
0
0.194805
0
0.025974
0.333091
0.007636
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.194805
0
0
0
null
0
0
0
0
0
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
b9c964b752a9622a17123202e7aae50d1718a48a
1,345
py
Python
question3.py
nosisky/algo-solution
a9276f73ba63b1a0965c194885aea6cadfab0e0b
[ "MIT" ]
1
2019-08-14T12:32:49.000Z
2019-08-14T12:32:49.000Z
question3.py
nosisky/algo-solution
a9276f73ba63b1a0965c194885aea6cadfab0e0b
[ "MIT" ]
null
null
null
question3.py
nosisky/algo-solution
a9276f73ba63b1a0965c194885aea6cadfab0e0b
[ "MIT" ]
null
null
null
# A string S consisting of N characters is considered to be properly nested if any of the following conditions is true: # S is empty; # S has the form "(U)" or "[U]" or "{U}" where U is a properly nested string; S has the form "VW" where V and W are properly nested strings. # For example, the string "{[()()]}" is prope...
42.03125
140
0.66171
203
1,345
4.384236
0.433498
0.078652
0.017978
0.040449
0.134831
0.134831
0.069663
0
0
0
0
0.010148
0.194052
1,345
31
141
43.387097
0.810886
0.692193
0
0.142857
0
0
0.095
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.357143
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
0
0
0
0
0
0
0
0
0
0
1
0
b9ca4ff833bf2ee267f7f1b8ecf69069cd8c4b31
1,996
py
Python
Teil_27_Game_of_Life_3d.py
chrMenzel/A-beautiful-code-in-Python
92ee43c1fb03c299384d4de8bebb590c5ba1b623
[ "MIT" ]
50
2018-12-23T15:46:16.000Z
2022-03-28T15:49:59.000Z
Teil_27_Game_of_Life_3d.py
chrMenzel/A-beautiful-code-in-Python
92ee43c1fb03c299384d4de8bebb590c5ba1b623
[ "MIT" ]
9
2018-12-03T10:31:29.000Z
2022-01-20T14:41:33.000Z
Teil_27_Game_of_Life_3d.py
chrMenzel/A-beautiful-code-in-Python
92ee43c1fb03c299384d4de8bebb590c5ba1b623
[ "MIT" ]
69
2019-02-02T11:59:09.000Z
2022-03-28T15:54:28.000Z
import bpy import random as rnd from collections import Counter import itertools as iter feld_von, feld_bis = -4, 4 spielfeld_von, spielfeld_bis = feld_von-6, feld_bis+6 anz = int((feld_bis-feld_von)**3*.3) spielfeld = {(rnd.randint(feld_von, feld_bis), rnd.randint( feld_von, feld_bis), rnd.randint(feld_von, fe...
28.927536
102
0.67986
341
1,996
3.859238
0.302053
0.031915
0.049392
0.042553
0.234043
0.197568
0.179331
0.179331
0.12386
0.103343
0
0.043372
0.17986
1,996
68
103
29.352941
0.760538
0
0
0.037037
0
0
0.036573
0
0
0
0
0
0
1
0.055556
false
0
0.074074
0
0.148148
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ca98991068e30844d7bcc8e336f70de5eef5a9
1,824
py
Python
power_perceiver/xr_batch_processor/reduce_num_pv_systems.py
openclimatefix/power_perceiver
bafcdfaf6abf42fbab09da641479f74709ddd395
[ "MIT" ]
null
null
null
power_perceiver/xr_batch_processor/reduce_num_pv_systems.py
openclimatefix/power_perceiver
bafcdfaf6abf42fbab09da641479f74709ddd395
[ "MIT" ]
33
2022-02-16T07:51:41.000Z
2022-03-31T11:24:11.000Z
power_perceiver/xr_batch_processor/reduce_num_pv_systems.py
openclimatefix/power_perceiver
bafcdfaf6abf42fbab09da641479f74709ddd395
[ "MIT" ]
null
null
null
from dataclasses import dataclass import numpy as np import xarray as xr from power_perceiver.load_prepared_batches.data_sources import PV from power_perceiver.load_prepared_batches.data_sources.prepared_data_source import XarrayBatch @dataclass class ReduceNumPVSystems: """Reduce the number of PV systems per e...
39.652174
97
0.721491
247
1,824
5.044534
0.421053
0.072231
0.05618
0.08427
0.170947
0.077047
0.077047
0.077047
0
0
0
0.002096
0.215461
1,824
45
98
40.533333
0.868623
0.272478
0
0
0
0
0.012327
0
0
0
0
0
0
1
0.076923
false
0
0.192308
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
0
0
0
0
1
0
b9cc65aafe29eb9820f902e036880e65947e1e2d
857
py
Python
HelloWorld_python/log/demo_log_3.py
wang153723482/HelloWorld_my
b8642ad9742f95cfebafc61f25b00e917485e50c
[ "Apache-2.0" ]
null
null
null
HelloWorld_python/log/demo_log_3.py
wang153723482/HelloWorld_my
b8642ad9742f95cfebafc61f25b00e917485e50c
[ "Apache-2.0" ]
null
null
null
HelloWorld_python/log/demo_log_3.py
wang153723482/HelloWorld_my
b8642ad9742f95cfebafc61f25b00e917485e50c
[ "Apache-2.0" ]
null
null
null
#encoding=utf8 # 按天生成文件 import logging import time from logging.handlers import TimedRotatingFileHandler #---------------------------------------------------------------------- if __name__ == "__main__": logFilePath = "timed_test.log" logger = logging.getLogger("YouLoggerName") logger.setLevel(logging....
29.551724
89
0.536756
77
857
5.857143
0.597403
0.066519
0.084257
0
0
0
0
0
0
0
0
0.009756
0.28238
857
29
90
29.551724
0.723577
0.124854
0
0
0
0
0.159732
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9cd3a4333e6169069ae770751a00e82db1b741a
736
py
Python
bot_da_os/statemachine/person/person_action.py
Atsocs/bot-da-os
e6d54057f4a3b703f303e9944a39e291ac87c40f
[ "MIT" ]
null
null
null
bot_da_os/statemachine/person/person_action.py
Atsocs/bot-da-os
e6d54057f4a3b703f303e9944a39e291ac87c40f
[ "MIT" ]
null
null
null
bot_da_os/statemachine/person/person_action.py
Atsocs/bot-da-os
e6d54057f4a3b703f303e9944a39e291ac87c40f
[ "MIT" ]
null
null
null
from operator import eq class PersonAction: def __init__(self, action): self.action = action def __str__(self): return self.action def __eq__(self, other): return eq(self.action, other.action) # Necessary when __cmp__ or __eq__ is defined # in order to make this class usable as ...
29.44
89
0.72962
93
736
5.516129
0.569892
0.097466
0
0
0
0
0
0
0
0
0
0
0.191576
736
24
90
30.666667
0.862185
0.194293
0
0
0
0
0.214286
0
0
0
0
0
0
1
0.307692
false
0
0.076923
0.230769
0.615385
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
1
1
0
0
3
b9cd7df81437d8aa9311f772f8fd75744e9a395a
5,108
py
Python
MyServer.py
bisw1jit/MyServer
cbd7bc4015482ce8f24314894148f7e20ef66b21
[ "MIT" ]
3
2019-11-09T17:29:55.000Z
2021-12-19T21:52:12.000Z
MyServer.py
bisw1jit/MyServer
cbd7bc4015482ce8f24314894148f7e20ef66b21
[ "MIT" ]
null
null
null
MyServer.py
bisw1jit/MyServer
cbd7bc4015482ce8f24314894148f7e20ef66b21
[ "MIT" ]
null
null
null
# Tool Name :- MyServer # Author :- LordReaper # Date :- 13/11/2018 - 9/11/2019 # Powered By :- H1ckPro Software's import sys import os from time import sleep from core.system import * if len(sys.argv)>1: pass else: print ("error : invalid arguments !!") print ("use : myserver --help for more information") s...
34.748299
98
0.576155
722
5,108
4.074792
0.117729
0.152277
0.048946
0.0707
0.797077
0.765466
0.746431
0.735894
0.692386
0.663154
0
0.027068
0.233359
5,108
146
99
34.986301
0.724208
0.020752
0
0.579365
0
0
0.45047
0
0
0
0
0
0
1
0
true
0.007937
0.031746
0
0.031746
0.277778
0
0
0
null
0
0
0
0
1
1
1
0
1
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
5
b9cda5cbb2749647d6a78abf80d9eb5c24205425
341
py
Python
tests/test_gen_epub.py
ffreemt/tmx2epub
55a59cb2a9b7f42031a65f64c29e5c43fdb487ea
[ "MIT" ]
null
null
null
tests/test_gen_epub.py
ffreemt/tmx2epub
55a59cb2a9b7f42031a65f64c29e5c43fdb487ea
[ "MIT" ]
null
null
null
tests/test_gen_epub.py
ffreemt/tmx2epub
55a59cb2a9b7f42031a65f64c29e5c43fdb487ea
[ "MIT" ]
null
null
null
""" test gen_epub. """ from tmx2epub.gen_epub import gen_epub def test_gen_epub2(): """ test_gen_epub2. """ from pathlib import Path infile = r"tests\2.tmx" stem = Path(infile).absolute().stem outfile = f"{Path(infile).absolute().parent / stem}.epub" assert gen_epub(infile, debug=True) == out...
22.733333
61
0.653959
48
341
4.479167
0.5
0.130233
0.111628
0
0
0
0
0
0
0
0
0.018315
0.199413
341
14
62
24.357143
0.769231
0.123167
0
0
0
0
0.192308
0.108392
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9cde2fbd07898c518510cadb194827f6566c927
716
py
Python
pub_sub/python/http/checkout/app.py
amulyavarote/quickstarts
c21a8f58d515b28eaa8a3680388fa06995c2331b
[ "Apache-2.0" ]
null
null
null
pub_sub/python/http/checkout/app.py
amulyavarote/quickstarts
c21a8f58d515b28eaa8a3680388fa06995c2331b
[ "Apache-2.0" ]
null
null
null
pub_sub/python/http/checkout/app.py
amulyavarote/quickstarts
c21a8f58d515b28eaa8a3680388fa06995c2331b
[ "Apache-2.0" ]
null
null
null
import json import time import random import logging import requests import os logging.basicConfig(level=logging.INFO) base_url = os.getenv('BASE_URL', 'http://localhost') + ':' + os.getenv( 'DAPR_HTTP_PORT', '3500') PUBSUB_NAME = 'order_pub_sub' TOPIC = 'orders' logging.info('Publishing to baseUR...
25.571429
72
0.642458
100
716
4.49
0.5
0.062361
0.035635
0.062361
0.10245
0.10245
0
0
0
0
0
0.017825
0.21648
716
27
73
26.518519
0.782531
0.078212
0
0
0
0
0.241641
0.031915
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ce404499c062b33e8623b446d27dfebe6f033f
52,312
py
Python
jj.py
smailedge/pro
f86347d4368bc97aa860b37caa9ba10e84a93738
[ "Unlicense" ]
1
2019-08-14T04:17:06.000Z
2019-08-14T04:17:06.000Z
jj.py
smailedge/pro
f86347d4368bc97aa860b37caa9ba10e84a93738
[ "Unlicense" ]
null
null
null
jj.py
smailedge/pro
f86347d4368bc97aa860b37caa9ba10e84a93738
[ "Unlicense" ]
7
2018-10-27T11:58:45.000Z
2021-02-11T19:45:30.000Z
# -*- coding: utf-8 -*- from linepy import * from datetime import datetime from time import sleep from humanfriendly import format_timespan, format_size, format_number, format_length import time, random, sys, json, codecs, threading, glob, re, string, os, requests, subprocess, six, ast, pytz, urllib, urllib.parse #===...
51.742829
168
0.404267
4,504
52,312
4.70071
0.132549
0.067542
0.035613
0.039108
0.508596
0.436992
0.400057
0.371717
0.340591
0.330389
0
0.011643
0.443436
52,312
1,010
169
51.794059
0.710287
0.037104
0
0.448598
0
0.001038
0.133908
0.006538
0
0
0
0
0
1
0.006231
false
0.012461
0.005192
0
0.017653
0.014538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9cea3f3b51bf703897e952ed45d88260e3502a1
1,190
py
Python
dd_app/messaging/backend.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
2
2018-12-17T10:10:49.000Z
2018-12-17T11:18:32.000Z
dd_app/messaging/backend.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
null
null
null
dd_app/messaging/backend.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
1
2021-06-06T22:28:12.000Z
2021-06-06T22:28:12.000Z
class RedisBackend(object): def __init__(self, settings={}, *args, **kwargs): self.settings = settings @property def connection(self): # cached redis connection if not hasattr(self, '_connection'): self._connection = self.settings.get('redis.connector').get() re...
28.333333
73
0.608403
131
1,190
5.381679
0.351145
0.139007
0.085106
0.04539
0
0
0
0
0
0
0
0.001185
0.290756
1,190
41
74
29.02439
0.834123
0.094118
0
0.074074
0
0
0.042017
0
0
0
0
0
0
1
0.296296
false
0
0
0.074074
0.481481
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
b9cf5fa54caecef97e6454178f438ce16bc99d7b
241
py
Python
fetch_data.py
bitfag/bt-macd-binance
eeffe52f8e561ff521629839078ff886e7bf700e
[ "MIT" ]
null
null
null
fetch_data.py
bitfag/bt-macd-binance
eeffe52f8e561ff521629839078ff886e7bf700e
[ "MIT" ]
null
null
null
fetch_data.py
bitfag/bt-macd-binance
eeffe52f8e561ff521629839078ff886e7bf700e
[ "MIT" ]
null
null
null
#!/usr/bin/env python from btmacd.binance_fetcher import BinanceFetcher def main(): fetcher = BinanceFetcher("BTCUSDT", filename="binance_ohlc.csv", start_date="01.01.2018") fetcher.fetch() if __name__ == "__main__": main()
18.538462
93
0.705394
30
241
5.3
0.766667
0
0
0
0
0
0
0
0
0
0
0.039024
0.149378
241
12
94
20.083333
0.736585
0.082988
0
0
0
0
0.186364
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d0d7e9fc82e29bf1385d169d21f03d43d467e2
25,508
py
Python
tensorflow_probability/python/mcmc/diagnostic.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
1
2022-03-06T15:37:18.000Z
2022-03-06T15:37:18.000Z
tensorflow_probability/python/mcmc/diagnostic.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/mcmc/diagnostic.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
43.015177
85
0.663361
3,707
25,508
4.408417
0.180469
0.021295
0.01542
0.021417
0.282646
0.229225
0.187492
0.128809
0.120609
0.095766
0
0.022847
0.238121
25,508
592
86
43.087838
0.818051
0.604869
0
0.123153
0
0
0.055835
0.019799
0
0
0
0.001689
0.044335
1
0.044335
false
0
0.059113
0.009852
0.157635
0.004926
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d22fbf764d6a06a81fe68e7bedb0cb2069ff17
2,360
py
Python
mpl/models/leaf.py
jiangyuang/ModelPruningLibrary
9c8ba5a3c5d118f37768d5d42254711f48d88745
[ "MIT" ]
13
2020-02-24T16:57:37.000Z
2021-12-14T16:47:41.000Z
mpl/models/leaf.py
jiangyuang/ModelPruningLibrary
9c8ba5a3c5d118f37768d5d42254711f48d88745
[ "MIT" ]
3
2021-01-08T14:06:33.000Z
2021-09-07T13:39:46.000Z
mpl/models/leaf.py
jiangyuang/ModelPruningLibrary
9c8ba5a3c5d118f37768d5d42254711f48d88745
[ "MIT" ]
3
2020-05-30T17:59:43.000Z
2021-04-13T04:55:33.000Z
from torch import nn as nn from .base_model import BaseModel from ..nn.conv2d import DenseConv2d from ..nn.linear import DenseLinear __all__ = ["Conv2", "conv2", "Conv4", "conv4"] class Conv2(BaseModel): def __init__(self): super(Conv2, self).__init__() self.features = nn.Sequential(DenseConv2d(...
36.307692
96
0.469068
235
2,360
4.578723
0.255319
0.055762
0.066915
0.048327
0.597584
0.515799
0.515799
0.435874
0.435874
0.368959
0
0.093658
0.425424
2,360
64
97
36.875
0.699853
0.025424
0
0.5
0
0
0.008718
0
0
0
0
0.015625
0
1
0.125
false
0
0.083333
0.041667
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
1
0
0
0
0
0
0
0
0
0
0
1
b9d2bd5114a0540a0095f6c31a8ad07b71899f53
29,424
py
Python
scripts/generate_network_interactomix.py
quimaguirre/NetworkAnalysis
c7a4da3ba5696800738b4767065ce29fa0020d79
[ "MIT" ]
1
2017-07-10T17:33:31.000Z
2017-07-10T17:33:31.000Z
scripts/generate_network_interactomix.py
quimaguirre/NetworkAnalysis
c7a4da3ba5696800738b4767065ce29fa0020d79
[ "MIT" ]
null
null
null
scripts/generate_network_interactomix.py
quimaguirre/NetworkAnalysis
c7a4da3ba5696800738b4767065ce29fa0020d79
[ "MIT" ]
null
null
null
import argparse import ConfigParser import sys, os, re import biana try: from biana import * except: sys.exit(10) import methods_dictionaries as methods_dicts def main(): options = parse_user_arguments() generate_network(options) def parse_user_arguments(*args, **kwds): parser = arg...
48.157119
591
0.569195
3,301
29,424
4.867616
0.106634
0.017924
0.018297
0.02894
0.521782
0.483943
0.432474
0.412808
0.409821
0.383869
0
0.011347
0.296153
29,424
610
592
48.236066
0.76451
0.131559
0
0.389744
0
0.017949
0.181744
0.019149
0
0
0
0
0
0
null
null
0.002564
0.015385
null
null
0.071795
0
0
0
null
0
0
0
0
0
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
b9d2c04ffcb32d5c9ad6c0f626a368e22db97763
4,504
py
Python
tests/data/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
tests/data/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
tests/data/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
""" This is an extract config intended for S3 object manifests produced by TBD. To use it, you must import it in another extract config and override at least the `source_data_url`. You may also append additional operations to the `operations` list as well. For example you could have the following in your extract conf...
27.463415
78
0.67984
672
4,504
4.321429
0.239583
0.162879
0.140496
0.065083
0.399793
0.225895
0.110537
0.070592
0.060606
0.027548
0
0.005843
0.202043
4,504
163
79
27.631902
0.80217
0.228686
0
0.128713
0
0
0.108148
0.020444
0
0
0
0
0
1
0.049505
false
0
0.049505
0
0.148515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d3222fd93bbc8ba199ba7a401394dc7531a2ff
665
py
Python
hard-gists/5c973ec1b5ab2e387646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5c973ec1b5ab2e387646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5c973ec1b5ab2e387646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import bpy from bpy.app.handlers import persistent bl_info = { "name": "Playback Once", "author": "Adhi Hargo", "version": (1, 0, 0), "blender": (2, 67, 3), "location": "", "description": "Playback once.", "warning": "", "wiki_url": "", "tracker_url": "", "category": "Animation"...
22.931034
63
0.645113
75
665
5.48
0.613333
0.043796
0.10219
0.092457
0.136253
0.136253
0
0
0
0
0
0.013035
0.192481
665
28
64
23.75
0.752328
0
0
0
0
0
0.196992
0
0
0
0
0
0
1
0.130435
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d47acd47b8bd0babe955a7bbbde7c4d9080b36
688
py
Python
Py3Challenges/saves/challenges/c6_min.py
AlbertUnruh/Py3Challenges
52f03f157860f6464f0c1710bf051a8099c29ea2
[ "MIT" ]
2
2022-02-13T04:57:10.000Z
2022-02-13T10:40:14.000Z
Py3Challenges/saves/challenges/c6_min.py
AlbertUnruh/Py3Challenges
52f03f157860f6464f0c1710bf051a8099c29ea2
[ "MIT" ]
null
null
null
Py3Challenges/saves/challenges/c6_min.py
AlbertUnruh/Py3Challenges
52f03f157860f6464f0c1710bf051a8099c29ea2
[ "MIT" ]
null
null
null
""" To master this you should consider using the builtin-``min``-function. """ from ...challenge import Challenge from random import randint x = [] for _ in range(randint(2, 10)): x.append(randint(1, 100)) intro = f"You have to print the lowest value of {', '.join(str(_) for _ in x[:-1])} and {x[-1]}. (values: x...
22.193548
109
0.632267
95
688
4.463158
0.610526
0.113208
0
0
0
0
0
0
0
0
0
0.016729
0.218023
688
30
110
22.933333
0.771375
0.101744
0
0
0
0.05
0.165574
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.25
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d600352f466e38045c7614f4b0151d5eb8f878
4,625
py
Python
services/web/server/tests/unit/with_dbs/01/test_director_v2.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
null
null
null
services/web/server/tests/unit/with_dbs/01/test_director_v2.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
1
2021-11-29T13:38:09.000Z
2021-11-29T13:38:09.000Z
services/web/server/tests/unit/with_dbs/01/test_director_v2.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
null
null
null
# pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name from typing import AsyncIterator import pytest from aioresponses import aioresponses from faker import Faker from hypothesis import HealthCheck, given, settings from hypothesis import strategies as st from models_...
30.833333
87
0.780973
626
4,625
5.428115
0.161342
0.049441
0.045909
0.071218
0.508534
0.457034
0.436433
0.389347
0.389347
0.375221
0
0.007818
0.142703
4,625
149
88
31.040268
0.84918
0.020973
0
0.256637
0
0
0.011715
0
0
0
0
0
0.141593
1
0.026549
false
0
0.115044
0.026549
0.168142
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d60ecc3068b2d42bc6110555d94274b9cac29c
930
py
Python
tools/py/heatmap.py
sriramreddyM/pLitter
e506777af0b8bbae411b474f5eacee91e8efea59
[ "MIT" ]
5
2021-11-09T10:25:35.000Z
2022-03-30T03:57:46.000Z
tools/py/heatmap.py
sriramreddyM/pLitter
e506777af0b8bbae411b474f5eacee91e8efea59
[ "MIT" ]
null
null
null
tools/py/heatmap.py
sriramreddyM/pLitter
e506777af0b8bbae411b474f5eacee91e8efea59
[ "MIT" ]
1
2021-09-09T08:04:46.000Z
2021-09-09T08:04:46.000Z
''' converts video to frames and saves images by different interval, or overlap, etc ''' import folium from folium import plugins from folium.plugins import HeatMap import csv # class plitterMap(): # def __int__(self, file_path): # self.data = file_path # df = [] # with open(self.data) as f...
30
133
0.53871
119
930
4.084034
0.470588
0.041152
0.067901
0.08642
0.170782
0.170782
0.096708
0.096708
0.096708
0.096708
0
0.018838
0.315054
930
31
134
30
0.744113
0.84086
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
b9d6dd8bd3445675e1356c10ac0bb61cd00aba81
3,027
py
Python
generator.py
Geoalert/emergency-mapping
96668e4e5aa2b520e5727536f7a8f4c262ee3da6
[ "MIT" ]
3
2018-04-04T17:58:53.000Z
2021-10-14T08:50:13.000Z
generator.py
aeronetlab/map_augury
96668e4e5aa2b520e5727536f7a8f4c262ee3da6
[ "MIT" ]
null
null
null
generator.py
aeronetlab/map_augury
96668e4e5aa2b520e5727536f7a8f4c262ee3da6
[ "MIT" ]
1
2020-03-24T12:07:07.000Z
2020-03-24T12:07:07.000Z
import numpy as np def random_augmentation(img, mask): #you can add any augmentations you need return img, mask def batch_generator(image, mask, batch_size=1, crop_size=0, patch_size=256, bbox= None, augment...
40.905405
116
0.570202
417
3,027
3.980815
0.28777
0.06506
0.016867
0.028916
0.183133
0.128916
0.079518
0.079518
0.055422
0.055422
0
0.022602
0.342253
3,027
73
117
41.465753
0.81115
0.269574
0
0
0
0
0.045855
0
0
0
0
0
0
1
0.042553
false
0
0.021277
0.021277
0.085106
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d71e12c5fdd4a3220a64251c8e0e2c9a302fe4
13,351
py
Python
awx/api/metadata.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
1
2021-09-07T14:53:57.000Z
2021-09-07T14:53:57.000Z
awx/api/metadata.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
2
2020-02-04T05:01:38.000Z
2020-02-18T06:44:52.000Z
awx/api/metadata.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
1
2020-01-28T05:34:09.000Z
2020-01-28T05:34:09.000Z
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved. from collections import OrderedDict # Django from django.core.exceptions import PermissionDenied from django.db.models.fields import PositiveIntegerField, BooleanField from django.db.models.fields.related import ForeignKey from django.http import Http404 from ...
43.630719
131
0.601004
1,430
13,351
5.429371
0.202797
0.035935
0.028851
0.016486
0.159196
0.129057
0.101752
0.083462
0.083462
0.083462
0
0.001503
0.302374
13,351
305
132
43.77377
0.832081
0.115122
0
0.1875
0
0
0.134669
0.011293
0
0
0
0.003279
0
1
0.026786
false
0.013393
0.075893
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d7834f2dd39b0c5b6da30b8ebfe19e7026adeb
1,985
py
Python
plugins/python/tasks.py
BBVA/deeptracy
40f4b6bba2bdd345e95e42d474c05fa90f15c3e9
[ "Apache-1.1" ]
85
2017-09-22T10:48:51.000Z
2021-06-11T18:33:28.000Z
plugins/python/tasks.py
BBVA/deeptracy
40f4b6bba2bdd345e95e42d474c05fa90f15c3e9
[ "Apache-1.1" ]
51
2017-10-17T10:16:16.000Z
2020-08-29T23:10:21.000Z
plugins/python/tasks.py
BBVA/deeptracy
40f4b6bba2bdd345e95e42d474c05fa90f15c3e9
[ "Apache-1.1" ]
14
2017-11-20T10:20:16.000Z
2021-02-02T21:35:07.000Z
import json from washer.worker.actions import AppendStdout, AppendStderr from washer.worker.actions import CreateNamedLog, AppendToLog from washer.worker.actions import SetProperty from washer.worker.commands import washertask def pipenv_graph2deps(rawgraph): graph = json.loads(rawgraph) def build_entry(dat...
28.357143
75
0.614106
212
1,985
5.679245
0.306604
0.033223
0.053156
0.057309
0.446013
0.373754
0.373754
0.373754
0.373754
0.373754
0
0.002086
0.275567
1,985
69
76
28.768116
0.835188
0
0
0.423077
0
0
0.125441
0
0
0
0
0
0
1
0.096154
false
0
0.134615
0
0.288462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d84b2b4c7d4cbbbf84bcb2ee37459c480a1a5e
715
py
Python
senity/utils/getSiteProfile.py
pkokkinos/senity
c6e41678620bef558cc3600929a8320ff2a285cf
[ "MIT" ]
1
2017-10-26T12:30:04.000Z
2017-10-26T12:30:04.000Z
senity/utils/getSiteProfile.py
pkokkinos/senity
c6e41678620bef558cc3600929a8320ff2a285cf
[ "MIT" ]
null
null
null
senity/utils/getSiteProfile.py
pkokkinos/senity
c6e41678620bef558cc3600929a8320ff2a285cf
[ "MIT" ]
null
null
null
import json import os # get site profile def getSiteProfile(site_file): with open(site_file) as json_file: json_data = json.load(json_file) return json_data # get all site profile def getAllSiteProfiles(site_folder): allSiteProfiles = {} allSiteFiles = os.listdir(site_folder) for ...
23.833333
77
0.664336
79
715
5.873418
0.443038
0.064655
0.060345
0
0
0
0
0
0
0
0
0
0.234965
715
29
78
24.655172
0.848263
0.135664
0
0
0
0
0.091354
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d87f8b647f237794f75914da625ea130e200c3
5,959
py
Python
ppo_new/baseline.py
QingXinHu123/Lane_change_RL
06c70e6f58d3478669b56800028e320ca03f5222
[ "MIT" ]
1
2022-03-17T03:40:57.000Z
2022-03-17T03:40:57.000Z
ppo_new/baseline.py
QingXinHu123/Lane_change_RL
06c70e6f58d3478669b56800028e320ca03f5222
[ "MIT" ]
null
null
null
ppo_new/baseline.py
QingXinHu123/Lane_change_RL
06c70e6f58d3478669b56800028e320ca03f5222
[ "MIT" ]
null
null
null
import os, sys from env.LaneChangeEnv import LaneChangeEnv import random import numpy as np if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) print('success') else: sys.exit("please declare environment variable 'SUMO_HOME'") import traci def ep...
36.558282
164
0.659171
964
5,959
3.770747
0.192946
0.071527
0.042916
0.030812
0.196699
0.150757
0.088033
0.08033
0.047868
0.047868
0
0.078652
0.208424
5,959
162
165
36.783951
0.691965
0.135593
0
0.030534
0
0
0.117911
0.008575
0
0
0
0
0
1
0.022901
false
0
0.038168
0
0.083969
0.083969
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d8a3bc2867b57ba7db6ffd06a68bdf7372909c
1,261
py
Python
clean_data.py
toogy/pendigits-hmm
03382e1457941714439d40b67e53eaf117fe4d08
[ "MIT" ]
null
null
null
clean_data.py
toogy/pendigits-hmm
03382e1457941714439d40b67e53eaf117fe4d08
[ "MIT" ]
null
null
null
clean_data.py
toogy/pendigits-hmm
03382e1457941714439d40b67e53eaf117fe4d08
[ "MIT" ]
null
null
null
import numpy as np import pickle from collections import defaultdict from parsing import parser from analysis import training def main(): parse = parser.Parser(); train_digits = parse.parse_file('data/pendigits-train'); test_digits = parse.parse_file('data/pendigits-test') centroids = training.get_d...
24.25
72
0.704996
162
1,261
5.185185
0.314815
0.092857
0.085714
0.039286
0.286905
0.163095
0
0
0
0
0
0.009901
0.199048
1,261
51
73
24.72549
0.821782
0
0
0.0625
0
0
0.080888
0
0
0
0
0
0
1
0.03125
false
0
0.15625
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9d992fc9c803eca7ba614c187b28cbfcef4b1f8
5,988
py
Python
scripts/commit_validation/commit_validation/commit_validation.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
8
2021-08-31T02:14:19.000Z
2021-12-28T19:20:59.000Z
scripts/commit_validation/commit_validation/commit_validation.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
8
2021-07-12T13:55:00.000Z
2021-10-04T14:53:21.000Z
scripts/commit_validation/commit_validation/commit_validation.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2021-09-16T05:06:18.000Z
2021-09-16T05:06:18.000Z
# # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # import abc import importlib import os import pkgutil import re import time from typing import Dict, List, ...
31.68254
124
0.631096
720
5,988
5.047222
0.3
0.04623
0.033021
0.031646
0.168134
0.118327
0.106219
0.042928
0.022014
0.022014
0
0.003149
0.257515
5,988
188
125
31.851064
0.814215
0.215932
0
0.125
0
0
0.15374
0.056325
0
0
0
0
0
1
0.066667
false
0.108333
0.066667
0
0.175
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b9db09c1d1c26d802117168878ef76954cf77560
3,360
py
Python
matrixprofile/algorithms/snippets.py
KSaiRahul21/matrixprofile
d8250e30d90ed0453bb7c35bb34ab0c04ae7b334
[ "Apache-2.0" ]
null
null
null
matrixprofile/algorithms/snippets.py
KSaiRahul21/matrixprofile
d8250e30d90ed0453bb7c35bb34ab0c04ae7b334
[ "Apache-2.0" ]
null
null
null
matrixprofile/algorithms/snippets.py
KSaiRahul21/matrixprofile
d8250e30d90ed0453bb7c35bb34ab0c04ae7b334
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals range = getattr(__builtins__, 'xrange', range) # end of py2 compatability boilerplate import numpy as np from matrixprofil...
29.734513
84
0.633036
428
3,360
4.799065
0.32243
0.091042
0.031159
0.025316
0
0
0
0
0
0
0
0.004512
0.274405
3,360
112
85
30
0.837982
0.275595
0
0
0
0
0.078608
0
0
0
0
0
0
1
0.017857
false
0
0.125
0
0.160714
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9db24edad8766b6e734d6a8a9c26aff6bb04235
2,360
py
Python
jina/logging/formatter.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
1
2020-12-23T12:34:00.000Z
2020-12-23T12:34:00.000Z
jina/logging/formatter.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
jina/logging/formatter.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
import json import re from copy import copy from logging import Formatter from .profile import used_memory from ..helper import colored class ColorFormatter(Formatter): """Format the log into colored logs based on the log-level. """ MAPPING = { 'DEBUG': dict(color='white', on_color=None), # white ...
34.705882
114
0.601695
319
2,360
4.410658
0.363636
0.03909
0.031272
0.054016
0.297797
0.248756
0.170576
0.102345
0.102345
0.06823
0
0.008475
0.25
2,360
67
115
35.223881
0.786441
0.205085
0
0.222222
0
0
0.133297
0
0
0
0
0
0
1
0.088889
false
0
0.133333
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9db51239c1e9a509c29f6e80aebfb0363b62210
194
py
Python
atcoder/abc191/b.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc191/b.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc191/b.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10000000) input=lambda : sys.stdin.readline().rstrip() n,x=map(int,input().split()) a=list(map(int,input().split())) aa=list(filter(lambda b:b!=x,a)) print(*aa)
24.25
44
0.71134
33
194
4.181818
0.606061
0.086957
0.15942
0.231884
0
0
0
0
0
0
0
0.043716
0.056701
194
8
45
24.25
0.710383
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
1
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
2
b9dc15c3ca6876833207138ba4d65fbd0be25acd
61,341
py
Python
tests/integration/test_streaming_e2e.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
null
null
null
tests/integration/test_streaming_e2e.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
null
null
null
tests/integration/test_streaming_e2e.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
null
null
null
"""Streaming integration tests.""" # pylint:disable=no-self-use,invalid-name,too-many-arguments,too-few-public-methods,line-too-long # pylint:disable=too-many-statements,too-many-locals,too-many-lines import threading import time import json from queue import Queue from splitio.client.factory import get_factory from te...
43.137131
115
0.600887
5,530
61,341
6.487523
0.065461
0.051929
0.046159
0.044236
0.922232
0.916072
0.90509
0.900045
0.892519
0.891125
0
0.039155
0.285959
61,341
1,421
116
43.167488
0.779932
0.07517
0
0.843049
0
0
0.323108
0.199537
0
0
0
0
0.268161
1
0.013453
false
0
0.008969
0
0.03139
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b9dc3713922fc2f091f8ac06b4fabec4e905eb4d
1,647
py
Python
venues/abstract_venue.py
weezel/BandEventNotifier
55824ba26aba9882f46d1770ec5df592a5dc32bc
[ "0BSD" ]
null
null
null
venues/abstract_venue.py
weezel/BandEventNotifier
55824ba26aba9882f46d1770ec5df592a5dc32bc
[ "0BSD" ]
2
2020-02-10T19:37:47.000Z
2020-02-10T19:44:54.000Z
venues/abstract_venue.py
weezel/BandEventNotifier
55824ba26aba9882f46d1770ec5df592a5dc32bc
[ "0BSD" ]
null
null
null
import re from abc import ABC, abstractmethod from typing import Any, Dict, Generator class IncorrectVenueImplementation(Exception): pass # class AbstractVenue(metaclass=ABC): class AbstractVenue(ABC): def __init__(self): self.url = "" self.name = "" self.city = "" self.count...
27.45
66
0.57377
198
1,647
4.636364
0.348485
0.052288
0.042484
0.055556
0
0
0
0
0
0
0
0.008658
0.298725
1,647
59
67
27.915254
0.781818
0.041287
0
0.045455
0
0
0.042513
0.016497
0
0
0
0.016949
0
1
0.181818
false
0.045455
0.068182
0.113636
0.477273
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
1
0
0
0
2
b9dcf24da986778ebcd29602d923908626cfea3c
4,263
py
Python
mtl/util/pipeline.py
vandurme/TFMTL
5958187900bdf67089a237c523b6caa899f63ac1
[ "Apache-2.0" ]
10
2019-05-18T22:23:44.000Z
2022-01-25T15:24:45.000Z
mtl/util/pipeline.py
vandurme/TFMTL
5958187900bdf67089a237c523b6caa899f63ac1
[ "Apache-2.0" ]
1
2020-01-07T15:24:16.000Z
2020-01-15T00:39:01.000Z
mtl/util/pipeline.py
vandurme/TFMTL
5958187900bdf67089a237c523b6caa899f63ac1
[ "Apache-2.0" ]
1
2021-12-02T02:24:06.000Z
2021-12-02T02:24:06.000Z
# Copyright 2018 Johns Hopkins University. 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 appli...
34.658537
80
0.649073
546
4,263
4.847985
0.357143
0.023801
0.039668
0.03589
0.088402
0.073291
0.073291
0.073291
0.073291
0.044579
0
0.014111
0.251935
4,263
122
81
34.942623
0.81593
0.254985
0
0.097222
0
0
0.00892
0
0
0
0
0
0.013889
1
0.111111
false
0
0.097222
0.041667
0.319444
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9dd82e962e13070a8526b2d4d0da1d0be6265ee
7,417
py
Python
src/py65/devices/mpu65c02.py
dabeaz/py65
62d790445018f0616508022912b67d8d64935a29
[ "BSD-3-Clause" ]
5
2015-03-19T22:22:45.000Z
2020-05-15T18:26:59.000Z
src/py65/devices/mpu65c02.py
BigEd/py65
57d5e7191362006c1d6fa20662da3e4854f1b7c2
[ "BSD-3-Clause" ]
null
null
null
src/py65/devices/mpu65c02.py
BigEd/py65
57d5e7191362006c1d6fa20662da3e4854f1b7c2
[ "BSD-3-Clause" ]
3
2015-04-27T02:42:29.000Z
2021-07-16T20:50:23.000Z
from py65.devices import mpu6502 from py65.utils.devices import make_instruction_decorator class MPU(mpu6502.MPU): def __init__(self, *args, **kwargs): mpu6502.MPU.__init__(self, *args, **kwargs) self.name = '65C02' self.waiting = False def step(self): if self.waiting: ...
27.369004
71
0.58676
949
7,417
4.528978
0.201264
0.14658
0.047231
0.117264
0.620754
0.427873
0.255002
0.079107
0.079107
0.061424
0
0.050804
0.262235
7,417
270
72
27.47037
0.734649
0.011191
0
0.229665
0
0
0.037259
0
0
0
0.009281
0
0
1
0.244019
false
0
0.009569
0.009569
0.296651
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
b9ddc98cf55e2bef4fcf498ec4787ca57bad46d0
5,623
py
Python
tests/test__io.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
1
2021-09-03T04:02:25.000Z
2021-09-03T04:02:25.000Z
tests/test__io.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
3
2020-09-29T21:43:39.000Z
2021-07-21T22:18:27.000Z
tests/test__io.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
4
2019-11-14T13:25:24.000Z
2021-04-30T22:08:53.000Z
import pandas as pd import shutil import os import io from ms_mint.Mint import Mint from pathlib import Path as P from ms_mint.io import ( ms_file_to_df, mzml_to_pandas_df_pyteomics, convert_ms_file_to_feather, convert_ms_file_to_parquet, MZMLB_AVAILABLE, ) from paths import ( TEST_MZML, ...
27.563725
81
0.634181
771
5,623
4.293126
0.143969
0.041692
0.050755
0.045317
0.776435
0.712387
0.676737
0.622659
0.583988
0.583988
0
0.003273
0.239374
5,623
203
82
27.699507
0.770634
0.012627
0
0.528736
0
0
0.178198
0.003784
0.005747
0
0
0
0.155172
1
0.068966
false
0
0.045977
0
0.12069
0.022989
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b9de795b7b1298f8cad5f30e914735224920a0f9
1,158
py
Python
core/views.py
moiyad/image
d4515ef3057794f38268a6887bfff157115f26f7
[ "MIT" ]
null
null
null
core/views.py
moiyad/image
d4515ef3057794f38268a6887bfff157115f26f7
[ "MIT" ]
null
null
null
core/views.py
moiyad/image
d4515ef3057794f38268a6887bfff157115f26f7
[ "MIT" ]
null
null
null
from django.core.files.storage import FileSystemStorage from django.shortcuts import render, redirect from core.forms import DocumentForm from core.models import Document from media import image_cv2 def home(request): documents = Document.objects.all() number = len(image_cv2.myList) return render(request...
30.473684
88
0.668394
137
1,158
5.532847
0.343066
0.063325
0.100264
0.121372
0.187335
0.187335
0.102902
0
0
0
0
0.002208
0.217617
1,158
37
89
31.297297
0.834437
0
0
0.066667
0
0
0.126943
0.06304
0
0
0
0
0
1
0.1
false
0
0.166667
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9df48f54330cde291fba9c3ce4e17b22e7c1da1
1,156
py
Python
python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py
obastani/verifair
1d5efea041330fa9fe8d59d976bdd3ef97aff417
[ "ECL-2.0", "Apache-2.0" ]
5
2019-11-05T20:40:40.000Z
2020-09-16T03:13:54.000Z
python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py
obastani/verifair
1d5efea041330fa9fe8d59d976bdd3ef97aff417
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py
obastani/verifair
1d5efea041330fa9fe8d59d976bdd3ef97aff417
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from .helper import * def sample(flag): sex = step([(0,1,0.3307), (1,2,0.6693)]) if sex < 1: capital_gain = gaussian(568.4105, 24248365.5428) if capital_gain < 7298.0000: age = gaussian(38.4208, 184.9151) capital_loss = gaussian(86.5949, 157731.9553) else: ...
33.028571
85
0.569204
168
1,156
3.797619
0.452381
0.12069
0.081505
0.053292
0.040752
0.040752
0.040752
0
0
0
0
0.300743
0.301038
1,156
34
86
34
0.488861
0
0
0.16129
0
0
0
0
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
b9dfea4e7beba7ec415b85a76c49ed3af214dec4
25,442
py
Python
ml4chem/atomistic/models/neuralnetwork.py
muammar/mlchem
365487c23ea3386657e178e56ab31adfe8d5d073
[ "BSD-3-Clause-LBNL" ]
77
2019-08-05T17:30:22.000Z
2022-03-28T14:31:35.000Z
ml4chem/atomistic/models/neuralnetwork.py
muammar/ml4chem
365487c23ea3386657e178e56ab31adfe8d5d073
[ "BSD-3-Clause-LBNL" ]
6
2019-07-31T18:59:38.000Z
2020-10-18T18:15:07.000Z
ml4chem/atomistic/models/neuralnetwork.py
muammar/mlchem
365487c23ea3386657e178e56ab31adfe8d5d073
[ "BSD-3-Clause-LBNL" ]
15
2020-02-28T10:11:21.000Z
2021-12-01T13:45:33.000Z
import dask import datetime import logging import time import torch import numpy as np import pandas as pd from collections import OrderedDict from ml4chem.metrics import compute_rmse from ml4chem.atomistic.models.base import DeepLearningModel, DeepLearningTrainer from ml4chem.atomistic.models.loss import AtomicMSELos...
33.742706
88
0.526924
2,573
25,442
5.094054
0.175282
0.025177
0.025788
0.00763
0.271229
0.247044
0.232319
0.202487
0.173877
0.155413
0
0.008501
0.375835
25,442
753
89
33.787517
0.816814
0.228166
0
0.201814
0
0.004535
0.071482
0.00118
0
0
0
0.001328
0
1
0.020408
false
0
0.031746
0
0.070295
0.006803
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e018d6290ebe7b0654b7e76a8df225914e3778
7,104
py
Python
hatsploit/core/db/db.py
EntySec/HatSploit
8e445804c252cc24e87888be2c2efc02750ce5ee
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/core/db/db.py
YurinDoctrine/HatSploit
b1550323e08336ec057cbafb77003c22a3bbee91
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/core/db/db.py
YurinDoctrine/HatSploit
b1550323e08336ec057cbafb77003c22a3bbee91
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020-2022 EntySec # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to...
38.193548
86
0.639077
817
7,104
5.350061
0.190942
0.101579
0.131778
0.078243
0.642187
0.599176
0.553649
0.486388
0.461679
0.427362
0
0.001734
0.269285
7,104
185
87
38.4
0.840301
0.152872
0
0.518519
0
0
0.235569
0.105439
0
0
0
0
0
1
0.044444
false
0
0.037037
0
0.244444
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e0543df8f2ae150950f2a9787edb6296aac618
2,482
py
Python
bluesky/tests/test_simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
43
2015-08-04T20:13:41.000Z
2019-04-12T17:21:36.000Z
bluesky/tests/test_simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
966
2015-07-29T16:43:21.000Z
2019-05-09T21:02:28.000Z
bluesky/tests/test_simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
40
2015-07-29T16:42:41.000Z
2019-02-07T02:30:34.000Z
from bluesky.plans import scan from bluesky.simulators import (print_summary, print_summary_wrapper, summarize_plan, check_limits, plot_raster_path) import pytest from bluesky.plans import grid_scan def test_print_summary(...
34
76
0.636583
357
2,482
4.271709
0.268908
0.086557
0.07082
0.068197
0.531148
0.492459
0.372459
0.32918
0.251803
0.199344
0
0.037695
0.251813
2,482
72
77
34.472222
0.783522
0.224013
0
0.565217
0
0
0.031414
0
0
0
0
0.013889
0.043478
1
0.108696
false
0
0.108696
0
0.217391
0.152174
0
0
0
null
0
0
0
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
b9e09def642ce98a753ac3053c44b1ba7d862f16
4,850
py
Python
shutTheBox/main.py
robi1467/shut-the-box
ed1a8f13bc74caa63361453e723768a9cbe1dac4
[ "MIT" ]
null
null
null
shutTheBox/main.py
robi1467/shut-the-box
ed1a8f13bc74caa63361453e723768a9cbe1dac4
[ "MIT" ]
null
null
null
shutTheBox/main.py
robi1467/shut-the-box
ed1a8f13bc74caa63361453e723768a9cbe1dac4
[ "MIT" ]
null
null
null
import random numbers_list = [1,2,3,4,5,6,7,8,9,10] game_won = False game_completed = False #Stats games_played = 0 games_won = 0 games_lost = 0 average_score = 0 total_score = 0 def welcome(): welcome_message = "Welcome to shut the box" print(welcome_message) i = 0 result = "" while i < len(number...
28.034682
127
0.549897
619
4,850
4.113086
0.177706
0.129615
0.042419
0.029458
0.261587
0.225452
0.216811
0.118617
0.118617
0.118617
0
0.023672
0.355464
4,850
172
128
28.197674
0.790787
0.001031
0
0.341935
0
0
0.117052
0
0
0
0
0
0
1
0.064516
false
0
0.006452
0
0.154839
0.090323
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e0c71df07f6cc03e495d11899558d7e577552a
3,803
py
Python
repos/system_upgrade/common/actors/systemfacts/tests/test_systemfacts_selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
21
2018-11-20T15:58:39.000Z
2022-03-15T19:57:24.000Z
repos/system_upgrade/common/actors/systemfacts/tests/test_systemfacts_selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
732
2018-11-21T18:33:26.000Z
2022-03-31T16:16:24.000Z
repos/system_upgrade/common/actors/systemfacts/tests/test_systemfacts_selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
85
2018-11-20T17:55:00.000Z
2022-03-29T09:40:31.000Z
import warnings import pytest from leapp.libraries.actor.systemfacts import get_selinux_status from leapp.models import SELinuxFacts no_selinux = False try: import selinux except ImportError: no_selinux = True warnings.warn( 'Tests which uses `selinux` will be skipped' ' due to library un...
38.414141
83
0.674993
400
3,803
6.1675
0.1925
0.145926
0.202675
0.094852
0.80381
0.80381
0.803405
0.733279
0.733279
0.733279
0
0.007343
0.212201
3,803
98
84
38.806122
0.816088
0.048383
0
0.617647
0
0
0.23412
0.073075
0
0
0
0.010204
0.058824
1
0.073529
false
0
0.102941
0
0.191176
0
0
0
0
null
0
1
0
1
1
1
1
1
1
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
8
b9e1517b77ef8c0c8643211eb516389a83db60f8
2,608
py
Python
Phase-1/Python Basic 2/Day-24.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
3
2020-05-21T20:19:40.000Z
2022-02-27T08:20:10.000Z
Phase-1/Python Basic 2/Day-24.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
null
null
null
Phase-1/Python Basic 2/Day-24.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
4
2020-05-12T16:41:52.000Z
2020-05-21T20:17:22.000Z
""" 1. Write a Python program to reverse only the vowels of a given string. Sample Output: w3resuorce Python Perl ASU 2. Write a Python program to check whether a given integer is a palindrome or not. Note: An integer is a palindrome when it reads the same backward as forward. Negative numbers are not palindromic. Sa...
25.821782
204
0.717408
510
2,608
3.668627
0.290196
0.035275
0.064137
0.10155
0.285943
0.202031
0.173169
0.128274
0.128274
0.128274
0
0.122807
0.21319
2,608
100
205
26.08
0.788986
0.995782
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
1
0
0
0
0
0
0
2
b9e1d3ca3ecc29b35600c2af35a03fcf35a771c0
3,413
py
Python
etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-IPxlatCfg GUID : 3e5ac668-af52-4c15-b99b-a3e7a6616ebd """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.p...
29.17094
123
0.699092
391
3,413
5.936061
0.173913
0.09651
0.150797
0.120638
0.826368
0.826368
0.53813
0.53813
0.45196
0.45196
0
0.159204
0.175505
3,413
116
124
29.422414
0.665601
0.027542
0
0.404762
0
0
0.240483
0.14139
0
0
0
0
0
1
0
false
0
0.047619
0
0.357143
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b9e2c12e3855c30001fd37ab610587d3e95c803d
535
py
Python
microservices/users/config.py
Levakin/sanic-test-app
d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61
[ "Apache-2.0" ]
null
null
null
microservices/users/config.py
Levakin/sanic-test-app
d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61
[ "Apache-2.0" ]
null
null
null
microservices/users/config.py
Levakin/sanic-test-app
d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from distutils.util import strtobool class Config: DEBUG = bool(strtobool(os.getenv('DEBUG', "False"))) DATABASE_URI = os.getenv('DATABASE_URI', '127.0.0.1:27017') WORKERS = int(os.getenv('WORKERS', 2)) LOGO = os.getenv('LOGO', None) HOST = os.getenv('HOST', '127...
31.470588
63
0.646729
80
535
4.2
0.4375
0.214286
0.130952
0.035714
0.130952
0
0
0
0
0
0
0.058166
0.164486
535
16
64
33.4375
0.693512
0.039252
0
0
0
0
0.212891
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b9e36baa14d5265769af32c8ed910969e39eaf3a
199
py
Python
semantic-python/test/fixtures/4-01-lambda-literals.py
Temurson/semantic
2e9cd2c006cec9a0328791e47d8c6d60af6d5a1b
[ "MIT" ]
8,844
2019-05-31T15:47:12.000Z
2022-03-31T18:33:51.000Z
semantic-python/test/fixtures/4-01-lambda-literals.py
Qanora/semantic
b0eda9a61bbc690a342fb177cfc12eec8c1c001c
[ "MIT" ]
401
2019-05-31T18:30:26.000Z
2022-03-31T16:32:29.000Z
semantic-python/test/fixtures/4-01-lambda-literals.py
Qanora/semantic
b0eda9a61bbc690a342fb177cfc12eec8c1c001c
[ "MIT" ]
504
2019-05-31T17:55:03.000Z
2022-03-30T04:15:04.000Z
# CHECK-TREE: { const <- \x -> \y -> x; y <- const #true #true; z <- const #false #false; #record { const: const, y : y, z: z, }} const = lambda x, y: x y = const(True, True) z = const(False, False)
39.8
129
0.557789
34
199
3.264706
0.294118
0.072072
0.054054
0.072072
0.594595
0.594595
0.594595
0.594595
0.594595
0.594595
0
0
0.221106
199
4
130
49.75
0.716129
0.613065
0
0
0
0
0
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
b9e379a95e3f4e855adb56ee1112dc1aa95e6a78
9,351
py
Python
main.py
mithi/semantic-segmentation
85e9df04397745e0c6ab252e30991fa9b514ec1a
[ "MIT" ]
33
2017-08-24T16:38:15.000Z
2022-03-17T15:55:52.000Z
main.py
mithi/semantic-segmentation
85e9df04397745e0c6ab252e30991fa9b514ec1a
[ "MIT" ]
3
2018-10-12T11:17:22.000Z
2019-05-30T09:49:11.000Z
main.py
mithi/semantic-segmentation
85e9df04397745e0c6ab252e30991fa9b514ec1a
[ "MIT" ]
26
2017-09-17T09:09:52.000Z
2020-01-14T02:48:56.000Z
import tensorflow as tf import os.path import warnings from distutils.version import LooseVersion import glob import helper import project_tests as tests #-------------------------- # USER-SPECIFIED DATA #-------------------------- # Tune these parameters NUMBER_OF_CLASSES = 2 IMAGE_SHAPE = (160, 576) EPOCHS = 20 ...
37.8583
146
0.69276
1,265
9,351
4.904348
0.223715
0.027079
0.028369
0.018375
0.220986
0.157318
0.120406
0.106705
0.066731
0.042553
0
0.017317
0.197198
9,351
246
147
38.012195
0.809112
0.378141
0
0.055046
0
0
0.093315
0.010584
0
0
0
0
0.009174
1
0.073395
false
0
0.06422
0
0.183486
0.06422
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e38ca4d963e2aa4de106573e34682092b6337e
22,356
py
Python
tests/scanner/audit/log_sink_rules_engine_test.py
BrunoReboul/forseti-security
9d4a61b3e5a5d22a4330d15ddf61063fc9079071
[ "Apache-2.0" ]
null
null
null
tests/scanner/audit/log_sink_rules_engine_test.py
BrunoReboul/forseti-security
9d4a61b3e5a5d22a4330d15ddf61063fc9079071
[ "Apache-2.0" ]
null
null
null
tests/scanner/audit/log_sink_rules_engine_test.py
BrunoReboul/forseti-security
9d4a61b3e5a5d22a4330d15ddf61063fc9079071
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Forseti Security Authors. 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 ap...
40.79562
84
0.560834
2,214
22,356
5.358627
0.115176
0.026888
0.028321
0.023264
0.711986
0.662087
0.633513
0.584289
0.544842
0.498483
0
0.019762
0.334541
22,356
547
85
40.870201
0.777711
0.097916
0
0.579646
0
0
0.242757
0.142273
0
0
0
0
0.033186
1
0.030973
false
0
0.024336
0
0.059735
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e3fca3aec04c54b087304757154615d5a67e58
2,852
py
Python
backend/api/ulca-ums-service/user-management/utilities/orgUtils.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
3
2022-01-12T06:51:51.000Z
2022-02-23T18:54:33.000Z
backend/api/ulca-ums-service/user-management/utilities/orgUtils.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
6
2021-08-31T19:21:26.000Z
2022-01-03T05:53:42.000Z
backend/api/ulca-ums-service/user-management/utilities/orgUtils.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
8
2021-08-12T08:07:49.000Z
2022-01-25T04:40:51.000Z
import uuid from config import USR_ORG_MONGO_COLLECTION, USR_MONGO_COLLECTION import db from models.response import post_error import logging log = logging.getLogger('file') class OrgUtils: def __init__(self): pass #orgId generation @staticmethod def generate_org_id(): """UUID gener...
41.333333
149
0.619565
341
2,852
5.082111
0.337243
0.04674
0.069244
0.038084
0.355453
0.248125
0.248125
0.248125
0.248125
0.248125
0
0.003916
0.283661
2,852
69
150
41.333333
0.844347
0.135694
0
0.244444
0
0
0.271559
0
0
0
0
0
0
1
0.088889
false
0.022222
0.111111
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e478ed385905aa26b48748e1fbf896e8ced766
4,299
py
Python
setup.py
AntonBiryukovUofC/diffvg
e081098f52b82bfd0b7e91114d289d65ef969a60
[ "Apache-2.0" ]
null
null
null
setup.py
AntonBiryukovUofC/diffvg
e081098f52b82bfd0b7e91114d289d65ef969a60
[ "Apache-2.0" ]
null
null
null
setup.py
AntonBiryukovUofC/diffvg
e081098f52b82bfd0b7e91114d289d65ef969a60
[ "Apache-2.0" ]
null
null
null
# Adapted from https://github.com/pybind/cmake_example/blob/master/setup.py import os import re import sys import platform import subprocess import importlib from sysconfig import get_paths import importlib from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from setuptools.comma...
38.044248
109
0.601303
508
4,299
4.879921
0.322835
0.039935
0.057685
0.017749
0.160145
0.124647
0.049213
0.028237
0.028237
0.028237
0
0.007939
0.267504
4,299
112
110
38.383929
0.779295
0.028844
0
0.075269
0
0
0.172339
0.048418
0.021505
0
0
0
0
1
0.032258
false
0
0.182796
0
0.236559
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e64ab7c515862e0dec6a8272d8a276b9bd86b9
14,587
py
Python
robotpy_ext/common_drivers/navx/registerio.py
twinters007/robotpy-wpilib-utilities
d2e18c16fc97a469e0621521e0fbed0093610d6e
[ "MIT", "BSD-3-Clause" ]
2
2017-01-16T03:10:57.000Z
2017-01-16T03:11:00.000Z
robotpy_ext/common_drivers/navx/registerio.py
twinters007/robotpy-wpilib-utilities
d2e18c16fc97a469e0621521e0fbed0093610d6e
[ "MIT", "BSD-3-Clause" ]
null
null
null
robotpy_ext/common_drivers/navx/registerio.py
twinters007/robotpy-wpilib-utilities
d2e18c16fc97a469e0621521e0fbed0093610d6e
[ "MIT", "BSD-3-Clause" ]
null
null
null
# validated: 2017-02-19 DS c5e3a8a9b642 roborio/java/navx_frc/src/com/kauailabs/navx/frc/RegisterIO.java #---------------------------------------------------------------------------- # Copyright (c) Kauai Labs 2015. All Rights Reserved. # # Created in support of Team 2465 (Kauaibots). Go Purple Wave! # # Open Source S...
54.632959
159
0.676973
1,642
14,587
5.598051
0.168088
0.109661
0.130222
0.112272
0.590078
0.510335
0.413621
0.311684
0.113903
0.06832
0
0.014578
0.252279
14,587
266
160
54.838346
0.828184
0.085487
0
0.11399
0
0
0.019657
0
0
0
0.000302
0
0
1
0.062176
false
0.005181
0.015544
0.010363
0.19171
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e6a0bf2a4d3e860c6eb607624b101a086157b4
12,517
py
Python
RigolWFM/channel.py
wvdv2002/RigolWFM
849a1130c9194f052eaf5582dfa67e7a5708a3a3
[ "BSD-3-Clause" ]
null
null
null
RigolWFM/channel.py
wvdv2002/RigolWFM
849a1130c9194f052eaf5582dfa67e7a5708a3a3
[ "BSD-3-Clause" ]
null
null
null
RigolWFM/channel.py
wvdv2002/RigolWFM
849a1130c9194f052eaf5582dfa67e7a5708a3a3
[ "BSD-3-Clause" ]
null
null
null
#pylint: disable=invalid-name #pylint: disable=too-many-instance-attributes #pylint: disable=too-many-return-statements #pylint: disable=too-many-statements """ Class structure and methods for an oscilloscope channel. The idea is to collect all the relevant information from all the Rigol scope waveforms into a single ...
36.176301
96
0.589199
1,687
12,517
4.227623
0.140486
0.100252
0.037297
0.043186
0.509675
0.43396
0.406057
0.37521
0.360348
0.331183
0
0.046496
0.298953
12,517
345
97
36.281159
0.766268
0.149157
0
0.373913
0
0
0.053795
0
0
0
0
0
0
1
0.056522
false
0
0.008696
0
0.143478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e6a9be08cb7ae14c68608c944b95cbe6233b10
1,477
py
Python
configs/raubtierv2a/faster_rcnn_x101_64x4d_fpn_1x_raubtierv2a_nofreeze_4gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
configs/raubtierv2a/faster_rcnn_x101_64x4d_fpn_1x_raubtierv2a_nofreeze_4gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
configs/raubtierv2a/faster_rcnn_x101_64x4d_fpn_1x_raubtierv2a_nofreeze_4gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
_base_ = '../faster_rcnn/faster_rcnn_x101_64x4d_fpn_1x_coco.py' model = dict( backbone=dict( num_stages=4, #frozen_stages=4 ), roi_head=dict( bbox_head=dict( num_classes=3 ) ) ) dataset_type = 'COCODataset' classes = ('luchs', 'rotfuchs', 'wolf') data = dict...
26.375
151
0.704807
203
1,477
4.832512
0.44335
0.071356
0.071356
0.09684
0.445464
0.347604
0.252803
0.173293
0.173293
0.095821
0
0.1
0.16046
1,477
55
152
26.854545
0.691129
0.237644
0
0.096774
0
0
0.399464
0.320822
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9e6fcabd0b33c8ba893844382f8413f57f64840
262
py
Python
driver/python/setup.py
wbaweto/QConf
977a53d601eab2055fd8fb344b92f4026d178ad5
[ "BSD-2-Clause" ]
2,056
2015-03-23T04:51:13.000Z
2022-03-20T11:57:36.000Z
driver/python/setup.py
xzz0329/QConf
f852f984de0b55bbca5bcb433a7be5af6383c449
[ "BSD-2-Clause" ]
116
2015-03-25T01:32:39.000Z
2022-02-12T03:21:08.000Z
driver/python/setup.py
xzz0329/QConf
f852f984de0b55bbca5bcb433a7be5af6383c449
[ "BSD-2-Clause" ]
634
2015-03-24T11:51:22.000Z
2022-01-28T04:22:19.000Z
from distutils.core import setup, Extension setup(name = 'qconf_py', version = '1.2.2', ext_modules = [Extension('qconf_py', ['lib/python_qconf.cc'], include_dirs=['/usr/local/include/qconf'], extra_objects=['/usr/local/qconf/lib/libqconf.a'] )])
43.666667
105
0.683206
37
262
4.675676
0.675676
0.080925
0
0
0
0
0
0
0
0
0
0.0131
0.125954
262
5
106
52.4
0.742358
0
0
0
0
0
0.362595
0.209924
0
0
0
0
0
1
0
true
0
0.2
0
0.2
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
1
0
0
0
0
0
0
2
b9e707edd4da101ada4ff00b233330f2c2f9843e
148
py
Python
abc153/d.py
Lockdef/kyopro-code
2d943a87987af05122c556e173e5108a0c1c77c8
[ "MIT" ]
null
null
null
abc153/d.py
Lockdef/kyopro-code
2d943a87987af05122c556e173e5108a0c1c77c8
[ "MIT" ]
null
null
null
abc153/d.py
Lockdef/kyopro-code
2d943a87987af05122c556e173e5108a0c1c77c8
[ "MIT" ]
null
null
null
h = int(input()) i = 1 a = 1 b = 1 c = 1 while h >= a: a = 2 ** i i += 1 s = 0 t = True for j in range(1, i-1): c += 2 ** j print(c)
8.705882
23
0.398649
35
148
1.685714
0.542857
0.101695
0
0
0
0
0
0
0
0
0
0.11236
0.398649
148
16
24
9.25
0.550562
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.076923
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b9e96b262a690da4aaab0bf9584b51a15851826f
6,784
py
Python
demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py
Natureshadow/OpenGoPro
05110123cfbf6584288b813f2d4896d3a091480e
[ "MIT" ]
210
2021-06-05T20:06:17.000Z
2022-03-31T18:13:17.000Z
demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py
Natureshadow/OpenGoPro
05110123cfbf6584288b813f2d4896d3a091480e
[ "MIT" ]
73
2021-06-01T21:22:44.000Z
2022-03-31T18:33:24.000Z
demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py
Natureshadow/OpenGoPro
05110123cfbf6584288b813f2d4896d3a091480e
[ "MIT" ]
70
2021-06-07T03:59:04.000Z
2022-03-26T10:51:15.000Z
# log_battery.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). # This copyright was auto-generated on Wed, Sep 1, 2021 5:05:45 PM """Example to continuously read the battery (with no Wifi connection)""" import csv import time import logging import argparse import threading fro...
34.969072
139
0.627358
806
6,784
5.150124
0.320099
0.02385
0.009636
0.012527
0.104071
0.065526
0.052517
0.016863
0
0
0
0.006579
0.283019
6,784
193
140
35.150259
0.846834
0.205483
0
0.109375
1
0.023438
0.13274
0.006059
0
0
0
0
0
1
0.046875
false
0
0.101563
0.007813
0.203125
0.039063
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
b9ea2a649f07b6a108f30b09b86010ae0b3acd70
47
py
Python
tumbleweed/models.py
mcroydon/django-tumbleweed
3f1eab2bf12350a91ca38165efec0c221a1fe69a
[ "BSD-3-Clause" ]
1
2015-11-08T11:33:15.000Z
2015-11-08T11:33:15.000Z
tumbleweed/models.py
mcroydon/django-tumbleweed
3f1eab2bf12350a91ca38165efec0c221a1fe69a
[ "BSD-3-Clause" ]
null
null
null
tumbleweed/models.py
mcroydon/django-tumbleweed
3f1eab2bf12350a91ca38165efec0c221a1fe69a
[ "BSD-3-Clause" ]
null
null
null
# These are not the droids you are looking for.
47
47
0.765957
9
47
4
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.191489
47
1
47
47
0.947368
0.957447
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
b9ea32c16e86b4071267eb26a711d79f81eaea56
2,925
py
Python
xos/hpc_observer/steps/sync_originserver.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
xos/hpc_observer/steps/sync_originserver.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
xos/hpc_observer/steps/sync_originserver.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
import os import sys import base64 from django.db.models import F, Q from xos.config import Config from observer.syncstep import SyncStep from core.models import Service from hpc.models import ServiceProvider, ContentProvider, CDNPrefix, OriginServer from util.logger import Logger, logging # hpclibrary will be in ste...
34.411765
229
0.654701
380
2,925
4.873684
0.381579
0.090713
0.090713
0.073434
0.104752
0.024838
0
0
0
0
0
0.002275
0.248547
2,925
84
230
34.821429
0.840309
0.144274
0
0.038462
0
0
0.103171
0.00843
0
0
0
0
0
1
0.096154
false
0
0.192308
0.019231
0.403846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ea437d66df34d28efcf808ad16c896dadcac76
400
py
Python
main.py
aroxby/pixel-processor
9cfe260a085ced0883ce8b0a35c28020f4aa8737
[ "MIT" ]
null
null
null
main.py
aroxby/pixel-processor
9cfe260a085ced0883ce8b0a35c28020f4aa8737
[ "MIT" ]
null
null
null
main.py
aroxby/pixel-processor
9cfe260a085ced0883ce8b0a35c28020f4aa8737
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from PIL import Image def tranform(r, g, b): tmp = b b = g // 2 g = tmp r = r // 2 return r, g, b def main(): im = Image.open('blue-flames.jpg') input_pixels = im.getdata() output_pixels = tuple(tranform(*pixel) for pixel in input_pixels) im.putdata(output_...
17.391304
69
0.6
62
400
3.677419
0.580645
0.105263
0.026316
0
0
0
0
0
0
0
0
0.010067
0.255
400
22
70
18.181818
0.755034
0.0525
0
0
0
0
0.103175
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9eab80495274dd2446a7b029f17be91df29a452
1,539
py
Python
scipy/weave/examples/swig2_example.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-10-07T00:37:32.000Z
2022-01-21T17:02:33.000Z
scipy/weave/examples/swig2_example.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
null
null
null
scipy/weave/examples/swig2_example.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-05-09T14:23:57.000Z
2018-11-15T05:56:00.000Z
"""Simple example to show how to use weave.inline on SWIG2 wrapped objects. SWIG2 refers to SWIG versions >= 1.3. To run this example you must build the trivial SWIG2 extension called swig2_ext. To do this you need to do something like this:: $ swig -c++ -python -I. -o swig2_ext_wrap.cxx swig2_ext.i $ g++ -Wall ...
28.5
69
0.690058
246
1,539
4.186992
0.520325
0.100971
0.046602
0.025243
0
0
0
0
0
0
0
0.030204
0.204029
1,539
53
70
29.037736
0.810612
0.684211
0
0
0
0
0.149451
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9eba9b75a6e45fee4cdfe3d81874f5e8476b939
1,951
py
Python
src/simplify.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
src/simplify.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
src/simplify.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
from wolframclient.language.expression import WLSymbol from nnDiff import * def parseGlobalSymbol(s): if isinstance(s, numbers.Number): return s if isinstance(s, WLSymbol): if s.name == 'E': return 'E' else: return s.name[7:] def parse(exp): symbol =...
27.097222
67
0.438237
212
1,951
3.990566
0.334906
0.023641
0.030733
0.033097
0
0
0
0
0
0
0
0.020814
0.433624
1,951
72
68
27.097222
0.744796
0
0
0.096774
0
0
0.038422
0
0
0
0
0
0
1
0.048387
false
0
0.032258
0
0.241935
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ebcddd99e456fbeb39a0191aad31656c7f4943
856
py
Python
setup.py
EdWard680/python-firetv
4c02f79a1c8ae60a489297178d010a31545a3b5d
[ "MIT" ]
null
null
null
setup.py
EdWard680/python-firetv
4c02f79a1c8ae60a489297178d010a31545a3b5d
[ "MIT" ]
null
null
null
setup.py
EdWard680/python-firetv
4c02f79a1c8ae60a489297178d010a31545a3b5d
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='firetv', version='1.0.7', description='Communicate with an Amazon Fire TV device via ADB over a network.', url='https://github.com/happyleavesaoc/python-firetv/', license='MIT', author='happyleaves', author_email='happyleaves.tfr@gmail.com', pac...
30.571429
99
0.613318
91
856
5.67033
0.725275
0.062016
0.096899
0
0
0
0
0
0
0
0
0.018209
0.23014
856
27
100
31.703704
0.764795
0
0
0
0
0
0.538551
0.063084
0
0
0
0
0
1
0
true
0
0.038462
0
0.038462
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
b9ec25017a264a5c2dd928342198ca509ad93675
893
py
Python
neo/io/exampleio.py
Mario-Kart-Felix/python-neo
951c97cf9eb56f5489da88940de920329e0f4c1b
[ "BSD-3-Clause" ]
199
2015-01-20T13:49:13.000Z
2022-03-21T18:35:29.000Z
neo/io/exampleio.py
Mario-Kart-Felix/python-neo
951c97cf9eb56f5489da88940de920329e0f4c1b
[ "BSD-3-Clause" ]
905
2015-01-07T09:21:15.000Z
2022-03-31T16:29:44.000Z
neo/io/exampleio.py
Mario-Kart-Felix/python-neo
951c97cf9eb56f5489da88940de920329e0f4c1b
[ "BSD-3-Clause" ]
178
2015-01-05T12:34:39.000Z
2022-02-20T23:06:52.000Z
""" neo.io have been split in 2 level API: * neo.io: this API give neo object * neo.rawio: this API give raw data as they are in files. Developper are encourage to use neo.rawio. When this is done the neo.io is done automagically with this king of following code. Author: sgarcia """ from neo.io.basefromrawio i...
28.806452
93
0.724524
128
893
4.929688
0.554688
0.031696
0.07607
0.050713
0
0
0
0
0
0
0
0.005579
0.197088
893
30
94
29.766667
0.874477
0.536394
0
0
0
0
0.08933
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b9ecb48aece2a2ca161d7bba9b3c95a928b2be7f
728
py
Python
scrapyproject/migrations/0003_auto_20170209_1025.py
sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI
0676f7599f288409d0faf7b6211c171ce8c46a7a
[ "MIT" ]
108
2017-03-14T05:40:13.000Z
2022-03-03T12:35:49.000Z
scrapyproject/migrations/0003_auto_20170209_1025.py
sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI
0676f7599f288409d0faf7b6211c171ce8c46a7a
[ "MIT" ]
8
2017-03-14T05:40:13.000Z
2018-10-13T07:07:29.000Z
scrapyproject/migrations/0003_auto_20170209_1025.py
sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI
0676f7599f288409d0faf7b6211c171ce8c46a7a
[ "MIT" ]
43
2017-04-19T12:18:07.000Z
2021-11-25T09:37:17.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scrapyproject', '0002_auto_20170208_1738'), ] operations = [ migrations.AlterField( model_name='project', ...
24.266667
53
0.575549
63
728
6.444444
0.539683
0.147783
0.184729
0.214286
0.509852
0.438424
0.339901
0.339901
0.339901
0.339901
0
0.033865
0.31044
728
29
54
25.103448
0.7749
0.028846
0
0.521739
0
0
0.134752
0.032624
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b9eda494aa9f90de7b3474adbd78e46927f9990c
406
py
Python
src/cart/forms.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/cart/forms.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/cart/forms.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
from django import forms from django.utils.translation import gettext_lazy as _ COURSE_QUANTITY_CHOICES = [(i, str(i)) for i in range(1, 21)] class CartAddCourseForm(forms.Form): quantity = forms.TypedChoiceField( choices=COURSE_QUANTITY_CHOICES, coerce=int, label=_("Quantité") ) override = form...
27.066667
72
0.726601
49
406
5.877551
0.693878
0.069444
0.145833
0
0
0
0
0
0
0
0
0.008955
0.174877
406
14
73
29
0.850746
0
0
0
0
0
0.019704
0
0
0
0
0
0
1
0
false
0
0.2
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9eda5f604ec6cf197f2876a0f748c37ee805587
73
py
Python
patches/datasets/__init__.py
sflippl/patches
c19889e676e231af44669a01c61854e9e5791227
[ "MIT" ]
null
null
null
patches/datasets/__init__.py
sflippl/patches
c19889e676e231af44669a01c61854e9e5791227
[ "MIT" ]
null
null
null
patches/datasets/__init__.py
sflippl/patches
c19889e676e231af44669a01c61854e9e5791227
[ "MIT" ]
null
null
null
"""Datasets of latent predictability tasks. """ from .pilgrimm import *
14.6
43
0.726027
8
73
6.625
1
0
0
0
0
0
0
0
0
0
0
0
0.150685
73
4
44
18.25
0.854839
0.547945
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5