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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf7c05da53e6dc2261a9bf9209e02795d2b94aff
| 32
|
py
|
Python
|
boa3_test/test_sc/class_test/UserClassWithBase.py
|
hal0x2328/neo3-boa
|
6825a3533384cb01660773050719402a9703065b
|
[
"Apache-2.0"
] | 25
|
2020-07-22T19:37:43.000Z
|
2022-03-08T03:23:55.000Z
|
boa3_test/test_sc/class_test/UserClassWithBase.py
|
hal0x2328/neo3-boa
|
6825a3533384cb01660773050719402a9703065b
|
[
"Apache-2.0"
] | 419
|
2020-04-23T17:48:14.000Z
|
2022-03-31T13:17:45.000Z
|
boa3_test/test_sc/class_test/UserClassWithBase.py
|
hal0x2328/neo3-boa
|
6825a3533384cb01660773050719402a9703065b
|
[
"Apache-2.0"
] | 15
|
2020-05-21T21:54:24.000Z
|
2021-11-18T06:17:24.000Z
|
class Example(object):
pass
| 10.666667
| 22
| 0.6875
| 4
| 32
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.21875
| 32
| 2
| 23
| 16
| 0.88
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
d843e4b01b7764ad4859ffea4d58b208b95d07a4
| 230
|
py
|
Python
|
finance_ml/model_selection/__init__.py
|
BTETON/finance_ml
|
a585be2d04db5a749eb6b39b7336e5aeb30d6327
|
[
"MIT"
] | 446
|
2018-09-05T18:28:51.000Z
|
2022-03-28T23:45:41.000Z
|
finance_ml/model_selection/__init__.py
|
BTETON/finance_ml
|
a585be2d04db5a749eb6b39b7336e5aeb30d6327
|
[
"MIT"
] | 3
|
2019-03-26T13:48:51.000Z
|
2021-10-31T11:00:14.000Z
|
finance_ml/model_selection/__init__.py
|
BTETON/finance_ml
|
a585be2d04db5a749eb6b39b7336e5aeb30d6327
|
[
"MIT"
] | 164
|
2018-09-12T18:37:25.000Z
|
2022-03-17T06:30:12.000Z
|
from .kfold import PurgedKFold, CPKFold, generate_signals
from .score import cv_score
from .pipeline import Pipeline
from .hyper import clf_hyper_fit
from .distribution import LogUniformGen, log_uniform
from .utils import evaluate
| 38.333333
| 57
| 0.847826
| 32
| 230
| 5.9375
| 0.59375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113043
| 230
| 6
| 58
| 38.333333
| 0.931373
| 0
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d8bdd148d097f18ccb47562befd806bff9b21f4c
| 216
|
py
|
Python
|
wntr/scenario/__init__.py
|
yejustme/WNTR
|
4228853c84217392b57e99c486e878ddf7959bbd
|
[
"BSD-3-Clause"
] | null | null | null |
wntr/scenario/__init__.py
|
yejustme/WNTR
|
4228853c84217392b57e99c486e878ddf7959bbd
|
[
"BSD-3-Clause"
] | null | null | null |
wntr/scenario/__init__.py
|
yejustme/WNTR
|
4228853c84217392b57e99c486e878ddf7959bbd
|
[
"BSD-3-Clause"
] | null | null | null |
"""
The wntr.scenario package contains methods to define disaster scenarios and
fragility/survival curves.
"""
from wntr.scenario.earthquake import Earthquake
from wntr.scenario.fragility_curve import FragilityCurve
| 36
| 76
| 0.837963
| 27
| 216
| 6.666667
| 0.703704
| 0.2
| 0.177778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101852
| 216
| 6
| 77
| 36
| 0.927835
| 0.476852
| 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
|
d8bf094e28fe8390c3d84fdfd1c20be429c49d9e
| 98
|
py
|
Python
|
enthought/envisage/ui/action/action_set.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/envisage/ui/action/action_set.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/envisage/ui/action/action_set.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from envisage.ui.action.action_set import *
| 24.5
| 43
| 0.836735
| 14
| 98
| 5.428571
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112245
| 98
| 3
| 44
| 32.666667
| 0.873563
| 0.122449
| 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
|
d8c91d258814ef08bbfd7a0d619bcb60180cddf1
| 77
|
py
|
Python
|
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/wsgi.py
|
YE-Kits/cookiecutter-falcon
|
e7963cb6028dcefa18c82d473773162d57549d49
|
[
"MIT"
] | 1
|
2020-06-13T09:15:31.000Z
|
2020-06-13T09:15:31.000Z
|
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/wsgi.py
|
YE-Kits/cookiecutter-falcon
|
e7963cb6028dcefa18c82d473773162d57549d49
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/wsgi.py
|
YE-Kits/cookiecutter-falcon
|
e7963cb6028dcefa18c82d473773162d57549d49
|
[
"MIT"
] | null | null | null |
from {{cookiecutter.project_name}}.main import create_app
app = create_app()
| 25.666667
| 57
| 0.792208
| 11
| 77
| 5.272727
| 0.727273
| 0.310345
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 77
| 2
| 58
| 38.5
| 0.828571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
41d2106491ae3bd5e9e354c744f4b66b9b2a5abc
| 173
|
py
|
Python
|
prism/__init__.py
|
mwaldronii/prism-python
|
15123e7ce7d8d2fa774a16b81f630c61e2aa5424
|
[
"Apache-2.0"
] | 1
|
2020-08-04T08:29:30.000Z
|
2020-08-04T08:29:30.000Z
|
prism/__init__.py
|
johnjdailey/prism-python
|
efb20da519c20cc7fe0c9e4acae5e00e91db2abb
|
[
"Apache-2.0"
] | null | null | null |
prism/__init__.py
|
johnjdailey/prism-python
|
efb20da519c20cc7fe0c9e4acae5e00e91db2abb
|
[
"Apache-2.0"
] | null | null | null |
from prism.prism import Prism, load_schema
from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
__all__ = ["Prism", "load_schema"]
| 19.222222
| 42
| 0.774566
| 23
| 173
| 5.217391
| 0.434783
| 0.275
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121387
| 173
| 8
| 43
| 21.625
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0.132948
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 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
|
5100e45949d99a2a63dab8597839d2c198bb247c
| 15,759
|
py
|
Python
|
flow/controllers/car_following_models.py
|
mark-koren/flow
|
f3f6d7e9c64f6b641a464a716c7f38ca00388805
|
[
"MIT"
] | null | null | null |
flow/controllers/car_following_models.py
|
mark-koren/flow
|
f3f6d7e9c64f6b641a464a716c7f38ca00388805
|
[
"MIT"
] | null | null | null |
flow/controllers/car_following_models.py
|
mark-koren/flow
|
f3f6d7e9c64f6b641a464a716c7f38ca00388805
|
[
"MIT"
] | null | null | null |
"""
This script contains several car-following control models for flow-controlled
vehicles.
Controllers can have their output delayed by some duration. Each controller
includes functions
get_accel(self, env) -> acc
- using the current state of the world and existing parameters,
uses the control model to return a vehicle acceleration.
reset_delay(self) -> None
- clears the queue of acceleration outputs used to generate
delayed output. used when the experiment is reset to clear out
old actions based on old states.
"""
import random
import math
from flow.controllers.base_controller import BaseController
import collections
import numpy as np
class CFMController(BaseController):
def __init__(self, veh_id, k_d=1, k_v=1, k_c=1, d_des=1, v_des=8,
accel_max=20, decel_max=-5, tau=0.5, dt=0.1, noise=0):
"""
Instantiates a CFM controller
Attributes
----------
veh_id: str
Vehicle ID for SUMO identification
k_d: float
headway gain (default: 1)
k_v: float, optional
gain on difference between lead velocity and current (default: 1)
k_c: float, optional
gain on difference from desired velocity to current (default: 1)
d_des: float, optional
desired headway (default: 1)
v_des: float, optional
desired velocity (default: 8)
accel_max: float
max acceleration (default: 20)
decel_max: float
max deceleration (default: -5)
tau: float, optional
time delay (default: 0)
dt: float, optional
timestep (default: 0.1)
noise: float, optional
std dev of normal perturbation to the acceleration (default: 0)
"""
controller_params = {"delay": tau/dt, "max_deaccel": decel_max,
"noise": noise}
BaseController.__init__(self, veh_id, controller_params)
self.veh_id = veh_id
self.k_d = k_d
self.k_v = k_v
self.k_c = k_c
self.d_des = d_des
self.v_des = v_des
self.accel_max = accel_max
self.accel_queue = collections.deque()
def get_accel(self, env):
lead_id = env.vehicles.get_leader(self.veh_id)
if not lead_id: # no car ahead
return self.accel_max
lead_vel = env.vehicles.get_speed(lead_id)
this_vel = env.vehicles.get_speed(self.veh_id)
d_l = env.vehicles.get_headway(self.veh_id)
acc = self.k_d*(d_l - self.d_des) + self.k_v*(lead_vel - this_vel) + \
self.k_c*(self.v_des - this_vel)
while len(self.accel_queue) <= self.delay:
# Some behavior here for initial states - extrapolation, dumb
# filling (currently), etc
self.accel_queue.appendleft(acc)
return min(self.accel_queue.pop(), self.accel_max)
def reset_delay(self, env):
self.accel_queue.clear()
class BCMController(BaseController):
def __init__(self, veh_id, k_d=1, k_v=1, k_c=1, d_des=1, v_des=8,
accel_max=15, decel_max=-5, tau=0.5, dt=0.1, noise=0):
"""
Instantiates a Bilateral car-following model controller. Looks ahead
and behind.
Attributes
----------
veh_id: str
Vehicle ID for SUMO identification
k_d: float, optional
gain on distances to lead/following cars (default: 1)
k_v: float, optional
gain on vehicle velocity differences (default: 1)
k_c: float, optional
gain on difference from desired velocity to current (default: 1)
d_des: float, optional
desired headway (default: 1)
v_des: float, optional
desired velocity (default: 8)
accel_max: float, optional
max acceleration (default: 15)
decel_max: float
max deceleration (default: -5)
tau: float, optional
time delay (default: 0.5)
dt: float, optional
timestep (default: 0.1)
noise: float, optional
std dev of normal perturbation to the acceleration (default: 0)
"""
controller_params = {"delay": tau / dt, "max_deaccel": decel_max,
"noise": noise}
BaseController.__init__(self, veh_id, controller_params)
self.veh_id = veh_id
self.k_d = k_d
self.k_v = k_v
self.k_c = k_c
self.d_des = d_des
self.v_des = v_des
self.accel_max = accel_max
self.accel_queue = collections.deque()
def get_accel(self, env):
"""
From the paper:
There would also be additional control rules that take
into account minimum safe separation, relative speeds,
speed limits, weather and lighting conditions, traffic density
and traffic advisories
"""
lead_id = env.vehicles.get_leader(self.veh_id)
if not lead_id: # no car ahead
return self.accel_max
lead_vel = env.vehicles.get_speed(lead_id)
this_vel = env.vehicles.get_speed(self.veh_id)
trail_id = env.vehicles.get_follower(self.veh_id)
trail_vel = env.vehicles.get_speed(trail_id)
headway = env.vehicles.get_headway(self.veh_id)
footway = env.vehicles.get_headway(trail_id)
acc = self.k_d * (headway - footway) + \
self.k_v * ((lead_vel - this_vel) - (this_vel - trail_vel)) + \
self.k_c * (self.v_des - this_vel)
while len(self.accel_queue) <= self.delay:
# Some behavior here for initial states - extrapolation, dumb
# filling (currently), etc
self.accel_queue.appendleft(acc)
return min(self.accel_queue.pop(), self.accel_max)
def reset_delay(self, env):
self.accel_queue.clear()
class OVMController(BaseController):
def __init__(self, veh_id, alpha=1, beta=1, h_st=2, h_go=15, v_max=30,
accel_max=15, decel_max=-5, tau=0.5, dt=0.1, noise=0):
"""
Instantiates an Optimal Vehicle Model controller.
Attributes
----------
veh_id: str
Vehicle ID for SUMO identification
alpha: float, optional
gain on desired velocity to current velocity difference
(default: 0.6)
beta: float, optional
gain on lead car velocity and self velocity difference
(default: 0.9)
h_st: float, optional
headway for stopping (default: 5)
h_go: float, optional
headway for full speed (default: 35)
v_max: float, optional
max velocity (default: 30)
accel_max: float, optional
max acceleration (default: 15)
decel_max: float, optional
max deceleration (default: -5)
tau: float, optional
time delay (default: 0.5)
dt: float, optional
timestep (default: 0.1)
noise: float, optional
std dev of normal perturbation to the acceleration (default: 0)
"""
controller_params = {"delay": tau/dt, "max_deaccel": decel_max,
"noise": noise}
BaseController.__init__(self, veh_id, controller_params)
self.accel_queue = collections.deque()
self.decel_max = decel_max
self.accel_max = accel_max
self.veh_id = veh_id
self.v_max = v_max
self.alpha = alpha
self.beta = beta
self.h_st = h_st
self.h_go = h_go
self.tau = tau
self.dt = dt
def get_accel(self, env):
lead_id = env.vehicles.get_leader(self.veh_id)
if not lead_id: # no car ahead
return self.accel_max
lead_vel = env.vehicles.get_speed(lead_id)
this_vel = env.vehicles.get_speed(self.veh_id)
h = env.vehicles.get_headway(self.veh_id)
h_dot = lead_vel - this_vel
# V function here - input: h, output : Vh
if h <= self.h_st:
Vh = 0
elif self.h_st < h < self.h_go:
Vh = self.v_max / 2 * (1 - math.cos(math.pi * (h - self.h_st) /
(self.h_go - self.h_st)))
else:
Vh = self.v_max
acc = self.alpha*(Vh - this_vel) + self.beta*(h_dot)
while len(self.accel_queue) <= self.delay:
# Some behavior here for initial states - extrapolation, dumb
# filling (currently), etc
self.accel_queue.appendleft(acc)
return max(min(self.accel_queue.pop(), self.accel_max),
-1 * abs(self.decel_max))
def reset_delay(self, env):
self.accel_queue.clear()
class LinearOVM(BaseController):
def __init__(self, veh_id, v_max=30, accel_max=15, decel_max=-5,
adaptation=0.65, h_st=5, tau=0.5, dt=0.1, noise=0):
"""
Instantiates a Linear OVM controller
Attributes
----------
veh_id: str
Vehicle ID for SUMO identification
v_max: float, optional
max velocity (default: 30)
accel_max: float, optional
max acceleration (default: 15)
decel_max: float, optional
max deceleration (default: -5)
adaptation: float
adaptation constant (default: 0.65)
h_st: float, optional
headway for stopping (default: 5)
tau: float, optional
time delay (default: 0.5)
dt: float, optional
timestep (default: 0.1)
noise: float, optional
std dev of normal perturbation to the acceleration (default: 0)
"""
controller_params = {"delay": tau / dt, "max_deaccel": decel_max,
"noise": noise}
BaseController.__init__(self, veh_id, controller_params)
self.accel_queue = collections.deque()
self.decel_max = decel_max
self.acc_max = accel_max
self.veh_id = veh_id
# 4.8*1.85 for case I, 3.8*1.85 for case II, per Nakayama
self.v_max = v_max
# TAU in Traffic Flow Dynamics textbook
self.adaptation = adaptation
self.h_st = h_st
self.delay_time = tau
self.dt = dt
def get_accel(self, env):
this_vel = env.vehicles.get_speed(self.veh_id)
h = env.vehicles.get_headway(self.veh_id)
# V function here - input: h, output : Vh
alpha = 1.689 # the average value from Nakayama paper
if h < self.h_st:
Vh = 0
elif self.h_st <= h <= self.h_st + self.v_max/alpha:
Vh = alpha * (h - self.h_st)
else:
Vh = self.v_max
acc = (Vh - this_vel) / self.adaptation
while len(self.accel_queue) <= self.delay:
# Some behavior here for initial states - extrapolation, dumb
# filling (currently), etc
self.accel_queue.appendleft(acc)
return max(min(self.accel_queue.pop(), self.acc_max),
-1 * abs(self.decel_max))
def reset_delay(self, env):
self.accel_queue.clear()
class IDMController(BaseController):
def __init__(self, veh_id, v0=30, T=1, a=1, b=1.5, delta=4, s0=2, s1=0,
decel_max=-5, dt=0.1, noise=0):
"""
Instantiates an Intelligent Driver Model (IDM) controller
Attributes
----------
veh_id: str
Vehicle ID for SUMO identification
v0: float, optional
desirable velocity, in m/s (default: 30)
T: float, optional
safe time headway, in s (default: 1)
a: float, optional
maximum acceleration, in m/s2 (default: 1)
b: float, optional
comfortable deceleration, in m/s2 (default: 1.5)
delta: float, optional
acceleration exponent (default: 4)
s0: float, optional
linear jam distance, in m (default: 2)
s1: float, optional
nonlinear jam distance, in m (default: 0)
decel_max: float, optional
max deceleration, in m/s2 (default: -5)
dt: float, optional
timestep, in s (default: 0.1)
noise: float, optional
std dev of normal perturbation to the acceleration (default: 0)
"""
tau = T # the time delay is taken to be the safe time headway
controller_params = {"delay": tau / dt, "max_deaccel": decel_max,
"noise": noise}
BaseController.__init__(self, veh_id, controller_params)
self.v0 = v0
self.T = T
self.a = a
self.b = b
self.delta = delta
self.s0 = s0
self.s1 = s1
self.max_deaccel = decel_max
self.dt = dt
def get_accel(self, env):
this_vel = env.vehicles.get_speed(self.veh_id)
lead_id = env.vehicles.get_leader(self.veh_id)
h = env.vehicles.get_headway(self.veh_id)
# negative headways may be registered by sumo at intersections/junctions
# setting them to 0 causes vehicles to not move; therefore, we maintain
# these negative headways to let sumo control the dynamics as it sees
# fit at these points
if abs(h) < 1e-3:
h = 1e-3
if lead_id is None or lead_id == '': # no car ahead
s_star = 0
else:
lead_vel = env.vehicles.get_speed(lead_id)
s_star = \
self.s0 + max([0, this_vel*self.T + this_vel*(this_vel-lead_vel)
/ (2 * np.sqrt(self.a * self.b))])
return self.a * (1 - (this_vel/self.v0)**self.delta - (s_star/h)**2)
def reset_delay(self, env):
pass
class RandomController(BaseController):
def __init__(self, veh_id, v0=30, T=1, a=1, b=1.5, delta=4, s0=2, s1=0,
decel_max=-5, dt=0.1, noise=0):
"""
Instantiates an Intelligent Driver Model (IDM) controller
Attributes
----------
veh_id: str
Vehicle ID for SUMO identification
v0: float, optional
desirable velocity, in m/s (default: 30)
T: float, optional
safe time headway, in s (default: 1)
a: float, optional
maximum acceleration, in m/s2 (default: 1)
b: float, optional
comfortable deceleration, in m/s2 (default: 1.5)
delta: float, optional
acceleration exponent (default: 4)
s0: float, optional
linear jam distance, in m (default: 2)
s1: float, optional
nonlinear jam distance, in m (default: 0)
decel_max: float, optional
max deceleration, in m/s2 (default: -5)
dt: float, optional
timestep, in s (default: 0.1)
noise: float, optional
std dev of normal perturbation to the acceleration (default: 0)
"""
tau = T # the time delay is taken to be the safe time headway
controller_params = {"delay": tau / dt, "max_deaccel": decel_max,
"noise": noise}
BaseController.__init__(self, veh_id, controller_params)
self.v0 = v0
self.T = T
self.a = a
self.b = b
self.delta = delta
self.s0 = s0
self.s1 = s1
self.max_deaccel = decel_max
self.dt = dt
def get_accel(self, env):
return np.clip(np.random.normal(self.a/2, 2*np.abs(self.a)), self.max_deaccel, self.a)
#return np.random.uniform(self.max_deaccel, self.a)
def reset_delay(self, env):
pass
| 35.334081
| 94
| 0.578273
| 2,081
| 15,759
| 4.210956
| 0.129265
| 0.078626
| 0.031838
| 0.017802
| 0.76241
| 0.742782
| 0.726235
| 0.709004
| 0.692229
| 0.669976
| 0
| 0.021484
| 0.329526
| 15,759
| 445
| 95
| 35.413483
| 0.807874
| 0.401485
| 0
| 0.723404
| 0
| 0
| 0.015656
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.095745
| false
| 0.010638
| 0.026596
| 0.005319
| 0.202128
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 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
| 5
|
5120509611a967e0d05797a24c393203ba37219e
| 115
|
py
|
Python
|
nmmis/contrib/district/admin.py
|
mgrsantox/nmmis
|
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
|
[
"BSD-2-Clause"
] | null | null | null |
nmmis/contrib/district/admin.py
|
mgrsantox/nmmis
|
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
|
[
"BSD-2-Clause"
] | null | null | null |
nmmis/contrib/district/admin.py
|
mgrsantox/nmmis
|
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
|
[
"BSD-2-Clause"
] | null | null | null |
from django.contrib import admin
from nmmis.contrib.district.models import District
admin.site.register(District)
| 23
| 50
| 0.843478
| 16
| 115
| 6.0625
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 115
| 4
| 51
| 28.75
| 0.92381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 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
|
5148f36cd03e31e87b7d0060e35d755d0443ed5d
| 125
|
py
|
Python
|
constants.py
|
melodily/wordle-with-friends
|
2485c8b3127db3a921410463bab6a61f486aeb1d
|
[
"MIT"
] | null | null | null |
constants.py
|
melodily/wordle-with-friends
|
2485c8b3127db3a921410463bab6a61f486aeb1d
|
[
"MIT"
] | null | null | null |
constants.py
|
melodily/wordle-with-friends
|
2485c8b3127db3a921410463bab6a61f486aeb1d
|
[
"MIT"
] | null | null | null |
SERVER_ERROR = 'Error encountered in the server. Please try again or email wordlewithfriendsbot@gmail.com with a bug report.'
| 125
| 125
| 0.816
| 19
| 125
| 5.315789
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128
| 125
| 1
| 125
| 125
| 0.926606
| 0
| 0
| 0
| 0
| 1
| 0.857143
| 0.238095
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5a9cf2e6db7b7cec2470aeb414ded6f658743f59
| 26
|
py
|
Python
|
Baekjoon/Python/18108.py
|
KHJcode/Algorithm-study
|
fa08d3c752fcb3557fd45fb394157926afc0de4a
|
[
"MIT"
] | 2
|
2020-05-23T01:55:38.000Z
|
2020-07-07T15:59:00.000Z
|
Baekjoon/Python/18108.py
|
KHJcode/Algorithm-study
|
fa08d3c752fcb3557fd45fb394157926afc0de4a
|
[
"MIT"
] | null | null | null |
Baekjoon/Python/18108.py
|
KHJcode/Algorithm-study
|
fa08d3c752fcb3557fd45fb394157926afc0de4a
|
[
"MIT"
] | null | null | null |
print(int(input()) - 543)
| 13
| 25
| 0.615385
| 4
| 26
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 0.115385
| 26
| 1
| 26
| 26
| 0.565217
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
5af13a91650ee48f7e635002cfd84d573546a2a9
| 61
|
py
|
Python
|
my_library/predictor/__init__.py
|
ShalyginaA/allennlp-language-predictor
|
aea24460817edac188175a5719d7c64a7111386e
|
[
"MIT"
] | null | null | null |
my_library/predictor/__init__.py
|
ShalyginaA/allennlp-language-predictor
|
aea24460817edac188175a5719d7c64a7111386e
|
[
"MIT"
] | null | null | null |
my_library/predictor/__init__.py
|
ShalyginaA/allennlp-language-predictor
|
aea24460817edac188175a5719d7c64a7111386e
|
[
"MIT"
] | null | null | null |
from my_library.predictor.predictor import LanguagePredictor
| 30.5
| 60
| 0.901639
| 7
| 61
| 7.714286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065574
| 61
| 1
| 61
| 61
| 0.947368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
852cfe392f822bd3eebca963ab910277fcfc59fa
| 78
|
py
|
Python
|
backend/tests/factories/__init__.py
|
willrp/willbuyer
|
069836a91c777ede6f62a16daa9f26e555d66bcb
|
[
"MIT"
] | 4
|
2020-02-19T09:27:23.000Z
|
2021-11-26T00:42:06.000Z
|
backend/tests/factories/__init__.py
|
willrp/willbuyer
|
069836a91c777ede6f62a16daa9f26e555d66bcb
|
[
"MIT"
] | null | null | null |
backend/tests/factories/__init__.py
|
willrp/willbuyer
|
069836a91c777ede6f62a16daa9f26e555d66bcb
|
[
"MIT"
] | null | null | null |
from .oauth_factory import OAuthFactory
from .user_factory import UserFactory
| 26
| 39
| 0.871795
| 10
| 78
| 6.6
| 0.7
| 0.393939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102564
| 78
| 2
| 40
| 39
| 0.942857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
|
0
| 5
|
5178abcf714d0d6c538bbd201e3e7112723ae1b5
| 13
|
py
|
Python
|
dev.py
|
drequena/repo-luz
|
d8bdde66708a5311ebb499b6b8a64aa9d28c46d3
|
[
"Apache-2.0"
] | null | null | null |
dev.py
|
drequena/repo-luz
|
d8bdde66708a5311ebb499b6b8a64aa9d28c46d3
|
[
"Apache-2.0"
] | null | null | null |
dev.py
|
drequena/repo-luz
|
d8bdde66708a5311ebb499b6b8a64aa9d28c46d3
|
[
"Apache-2.0"
] | null | null | null |
print("Dev")
| 6.5
| 12
| 0.615385
| 2
| 13
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 13
| 1
| 13
| 13
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
51ce5342c9b108c49f19014eaf4239e85f1ef56f
| 322
|
py
|
Python
|
twitter_credentials.py
|
abrahes12-day/Web-Scraping-Tweepy
|
86b0f9fdd842e8c7797bf35e744a5f26d2df360b
|
[
"MIT"
] | null | null | null |
twitter_credentials.py
|
abrahes12-day/Web-Scraping-Tweepy
|
86b0f9fdd842e8c7797bf35e744a5f26d2df360b
|
[
"MIT"
] | null | null | null |
twitter_credentials.py
|
abrahes12-day/Web-Scraping-Tweepy
|
86b0f9fdd842e8c7797bf35e744a5f26d2df360b
|
[
"MIT"
] | null | null | null |
# Variables that contain the user credentials to access Twitter API.
ACCESS_TOKEN = "570634225-AnsM63tVCpI4yeFwpj6QfSJTwm3pUx6onf30fI2Z"
ACCESS_TOKEN_SECRET = "ykA5CW0lWpl3VDiIRqJ5rhJjsQc6fyt0pps22tLAywXUJ"
CONSUMER_KEY = "iRwp1I7vH0cBoWNIO5w0uxURN"
CONSUMER_SECRET = "5rA8XDisNbzwTueiCiZG7JXEZe5T4HRiwLbFjWMTWlyNoU35r4"
| 46
| 70
| 0.878882
| 24
| 322
| 11.583333
| 0.791667
| 0.079137
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130872
| 0.074534
| 322
| 6
| 71
| 53.666667
| 0.802013
| 0.204969
| 0
| 0
| 0
| 0
| 0.669291
| 0.669291
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
51e1119d35fb52b9d4df26112adcdc4610e947dc
| 264
|
py
|
Python
|
ann_three_body/learning/util.py
|
mruijzendaal/python_ann_three_body
|
9380b0f7e4eaf7f481d8cdf34250e8475fe32a24
|
[
"MIT"
] | null | null | null |
ann_three_body/learning/util.py
|
mruijzendaal/python_ann_three_body
|
9380b0f7e4eaf7f481d8cdf34250e8475fe32a24
|
[
"MIT"
] | 4
|
2020-11-13T18:44:52.000Z
|
2022-02-10T01:35:23.000Z
|
ann_three_body/learning/util.py
|
mruijzendaal/python_ann_three_body
|
9380b0f7e4eaf7f481d8cdf34250e8475fe32a24
|
[
"MIT"
] | null | null | null |
def split_data(input, output, validation_percentage=0.1):
num_sets = output.shape[0]
num_validation = int(num_sets * validation_percentage)
return (input[:-num_validation], output[:-num_validation]), (input[-num_validation:], output[-num_validation:])
| 52.8
| 115
| 0.746212
| 34
| 264
| 5.5
| 0.411765
| 0.347594
| 0.192513
| 0.256684
| 0.395722
| 0.395722
| 0
| 0
| 0
| 0
| 0
| 0.012766
| 0.109848
| 264
| 4
| 116
| 66
| 0.782979
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
51e2f540cacd3b5bd352e4cf7636d2883a0ff40e
| 76
|
py
|
Python
|
include/tclap-1.4.0-rc1/tests/test90.py
|
SpaceKatt/cpp-cli-poc
|
02ffefea2fc6e999fa2b27d08a8b3be6830b1b97
|
[
"BSL-1.0"
] | 62
|
2021-09-21T18:58:02.000Z
|
2022-03-07T02:17:43.000Z
|
third_party/tclap-1.4.0-rc1/tests/test90.py
|
Vertexwahn/FlatlandRT
|
37d09fde38b25eff5f802200b43628efbd1e3198
|
[
"Apache-2.0"
] | null | null | null |
third_party/tclap-1.4.0-rc1/tests/test90.py
|
Vertexwahn/FlatlandRT
|
37d09fde38b25eff5f802200b43628efbd1e3198
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
import simple_test
simple_test.test("test29", ["-h", ])
| 12.666667
| 36
| 0.671053
| 11
| 76
| 4.454545
| 0.727273
| 0.408163
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029412
| 0.105263
| 76
| 5
| 37
| 15.2
| 0.691176
| 0.210526
| 0
| 0
| 0
| 0
| 0.135593
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
|
0
| 5
|
51e76030180785b46f9c554e2dcd4d90b82ca1fa
| 141
|
py
|
Python
|
mudi/plotting/__init__.py
|
getzlab/mudi
|
eda170119708e59920c23a03834af915ecca24ce
|
[
"MIT"
] | 1
|
2021-11-04T00:08:00.000Z
|
2021-11-04T00:08:00.000Z
|
mudi/plotting/__init__.py
|
getzlab/mudi
|
eda170119708e59920c23a03834af915ecca24ce
|
[
"MIT"
] | null | null | null |
mudi/plotting/__init__.py
|
getzlab/mudi
|
eda170119708e59920c23a03834af915ecca24ce
|
[
"MIT"
] | null | null | null |
from .qc import adata_qc, adata_qc_grid
from .de import volcano_plot
from .enrich import pw_enrichment
from .misc import plot_barplot_a_by_b
| 28.2
| 39
| 0.843972
| 26
| 141
| 4.230769
| 0.615385
| 0.127273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120567
| 141
| 4
| 40
| 35.25
| 0.887097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
cfa2a19a6fee9411efccdfb482457383e23112e9
| 19
|
py
|
Python
|
posthog/version.py
|
Algogator/posthog
|
764e10696b6ee9cba927b38e0789ed896f5d67dd
|
[
"MIT"
] | null | null | null |
posthog/version.py
|
Algogator/posthog
|
764e10696b6ee9cba927b38e0789ed896f5d67dd
|
[
"MIT"
] | null | null | null |
posthog/version.py
|
Algogator/posthog
|
764e10696b6ee9cba927b38e0789ed896f5d67dd
|
[
"MIT"
] | null | null | null |
VERSION = "1.13.0"
| 9.5
| 18
| 0.578947
| 4
| 19
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0.157895
| 19
| 1
| 19
| 19
| 0.4375
| 0
| 0
| 0
| 0
| 0
| 0.315789
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
cfb9c80e9041d86fce1446f5ea75be15ef468ae9
| 192
|
py
|
Python
|
pytesster.py
|
HuizhangXu/BJTU_Grab_Class
|
f6f58f3a14c8215733ea9c52a52dbd142f161e97
|
[
"MIT"
] | 4
|
2019-08-28T10:53:56.000Z
|
2021-06-08T02:32:09.000Z
|
pytesster.py
|
HuizhangXu/BJTU_Grab_Class
|
f6f58f3a14c8215733ea9c52a52dbd142f161e97
|
[
"MIT"
] | null | null | null |
pytesster.py
|
HuizhangXu/BJTU_Grab_Class
|
f6f58f3a14c8215733ea9c52a52dbd142f161e97
|
[
"MIT"
] | null | null | null |
from PIL import Image
import pytesser
import pytesseract
image = Image.open('test.jpg')
print(pytesseract.image_file_to_string('test.jpg'))
print(pytesseract.image_to_string(image))
| 21.333333
| 52
| 0.776042
| 27
| 192
| 5.333333
| 0.481481
| 0.333333
| 0.166667
| 0.319444
| 0.388889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119792
| 192
| 8
| 53
| 24
| 0.852071
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.333333
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
cfe874e110bb95201d21ec88573684fcbfff0dff
| 158
|
py
|
Python
|
classes/wars.py
|
aarkwright/pyThia
|
064b25f433b055b9187dfae9a83907a3f9b47100
|
[
"MIT"
] | null | null | null |
classes/wars.py
|
aarkwright/pyThia
|
064b25f433b055b9187dfae9a83907a3f9b47100
|
[
"MIT"
] | null | null | null |
classes/wars.py
|
aarkwright/pyThia
|
064b25f433b055b9187dfae9a83907a3f9b47100
|
[
"MIT"
] | null | null | null |
from .helpers import *
class War(ESIBase):
def __init__(self, app, client):
super().__init__(app, client)
def get_wars(self):
pass
| 15.8
| 37
| 0.613924
| 20
| 158
| 4.4
| 0.75
| 0.204545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.265823
| 158
| 9
| 38
| 17.555556
| 0.758621
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.166667
| 0.166667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
cfeffd41ed8561bf926ed92f85a292a0d9b2f377
| 112
|
py
|
Python
|
hub/models/__init__.py
|
harenlewis/api-hub
|
f79cd8b82e95c039269765a4542866286803a322
|
[
"MIT"
] | null | null | null |
hub/models/__init__.py
|
harenlewis/api-hub
|
f79cd8b82e95c039269765a4542866286803a322
|
[
"MIT"
] | 2
|
2020-06-05T19:41:09.000Z
|
2021-06-10T21:07:30.000Z
|
hub/models/__init__.py
|
harenlewis/api-hub
|
f79cd8b82e95c039269765a4542866286803a322
|
[
"MIT"
] | null | null | null |
from .projects import Project
from .apis import Api
from .permissions import APIPermissions
from .types import *
| 28
| 39
| 0.821429
| 15
| 112
| 6.133333
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133929
| 112
| 4
| 40
| 28
| 0.948454
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
cff9f88274481686df449003ce13d6828ce565ea
| 72
|
py
|
Python
|
atlas/foundations_events/src/integration/__init__.py
|
DeepLearnI/atlas
|
8aca652d7e647b4e88530b93e265b536de7055ed
|
[
"Apache-2.0"
] | 296
|
2020-03-16T19:55:00.000Z
|
2022-01-10T19:46:05.000Z
|
atlas/foundations_events/src/integration/__init__.py
|
DeepLearnI/atlas
|
8aca652d7e647b4e88530b93e265b536de7055ed
|
[
"Apache-2.0"
] | 57
|
2020-03-17T11:15:57.000Z
|
2021-07-10T14:42:27.000Z
|
atlas/foundations_events/src/integration/__init__.py
|
DeepLearnI/atlas
|
8aca652d7e647b4e88530b93e265b536de7055ed
|
[
"Apache-2.0"
] | 38
|
2020-03-17T21:06:05.000Z
|
2022-02-08T03:19:34.000Z
|
import foundations
from integration.test_consumers import TestConsumers
| 24
| 52
| 0.902778
| 8
| 72
| 8
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 72
| 3
| 52
| 24
| 0.969697
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5c619374c3e3b568269594210e18079873113b10
| 56
|
py
|
Python
|
account/views.py
|
shrimp509/django_message_board
|
b8ba07c4d912408664319c2c09c24ea6caad26f6
|
[
"MIT"
] | 1
|
2021-01-22T08:43:05.000Z
|
2021-01-22T08:43:05.000Z
|
account/views.py
|
shrimp509/django_message_board
|
b8ba07c4d912408664319c2c09c24ea6caad26f6
|
[
"MIT"
] | 5
|
2021-03-19T00:50:09.000Z
|
2021-09-22T18:44:18.000Z
|
account/views.py
|
shrimp509/django_message_board
|
b8ba07c4d912408664319c2c09c24ea6caad26f6
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
# no views but api
| 14
| 35
| 0.785714
| 9
| 56
| 4.888889
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 56
| 3
| 36
| 18.666667
| 0.956522
| 0.285714
| 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
|
5caac28b836683d4c48708d1c07cd5d48dbe297d
| 204
|
py
|
Python
|
skeema/intermediate/__init__.py
|
HeadHaus/Skeema
|
fc0faf13afad2c95b8943eaa3bfc2cc23b7de003
|
[
"MIT"
] | null | null | null |
skeema/intermediate/__init__.py
|
HeadHaus/Skeema
|
fc0faf13afad2c95b8943eaa3bfc2cc23b7de003
|
[
"MIT"
] | null | null | null |
skeema/intermediate/__init__.py
|
HeadHaus/Skeema
|
fc0faf13afad2c95b8943eaa3bfc2cc23b7de003
|
[
"MIT"
] | null | null | null |
from .class_context import ClassContext
from .compilation_context import CompilationContext
from .data_member import DataMember
from .parameter import Parameter
from .representation import Representation
| 34
| 51
| 0.877451
| 23
| 204
| 7.652174
| 0.521739
| 0.147727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098039
| 204
| 5
| 52
| 40.8
| 0.956522
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5cc9c4c2a033ee8c93e08be45e027453fb600c83
| 91
|
py
|
Python
|
Python3/Lists/swapping.py
|
norbertosanchezdichi/TIL
|
2e9719ddd288022f53b094a42679e849bdbcc625
|
[
"MIT"
] | null | null | null |
Python3/Lists/swapping.py
|
norbertosanchezdichi/TIL
|
2e9719ddd288022f53b094a42679e849bdbcc625
|
[
"MIT"
] | null | null | null |
Python3/Lists/swapping.py
|
norbertosanchezdichi/TIL
|
2e9719ddd288022f53b094a42679e849bdbcc625
|
[
"MIT"
] | null | null | null |
names = ['John', 'Mary']
print(names)
names[0], names[1] = names[1], names[0]
print(names)
| 18.2
| 39
| 0.626374
| 15
| 91
| 3.8
| 0.4
| 0.350877
| 0.385965
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.120879
| 91
| 5
| 40
| 18.2
| 0.6625
| 0
| 0
| 0.5
| 0
| 0
| 0.086957
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
| 0
| 0
| 0
| 1
|
0
| 5
|
7a2f84a10f83258d00931595483e34d21857a54c
| 233
|
py
|
Python
|
algo/PDL1net/PDL1netTester.py
|
itamargru/pathologylab
|
11bc839301460ab959137aef9c2f96b2ee5a5da9
|
[
"Unlicense"
] | null | null | null |
algo/PDL1net/PDL1netTester.py
|
itamargru/pathologylab
|
11bc839301460ab959137aef9c2f96b2ee5a5da9
|
[
"Unlicense"
] | null | null | null |
algo/PDL1net/PDL1netTester.py
|
itamargru/pathologylab
|
11bc839301460ab959137aef9c2f96b2ee5a5da9
|
[
"Unlicense"
] | 1
|
2021-03-25T16:20:10.000Z
|
2021-03-25T16:20:10.000Z
|
class PDL1netTester:
"""
class represents a PDL1 net Tester
"""
def __init__(self):
pass
def test(self):
pass
# TODO: add here function to show results and compare different settings result
| 17.923077
| 83
| 0.626609
| 28
| 233
| 5.071429
| 0.857143
| 0.112676
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012422
| 0.309013
| 233
| 12
| 84
| 19.416667
| 0.869565
| 0.484979
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0
| 1
| 0.4
| false
| 0.4
| 0
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
7a73b084c360609a225d9aad6ac427126687eac2
| 82
|
py
|
Python
|
bili_kits/account/__init__.py
|
LonelySteve/Bili-Kits
|
42e536400b2f35d57e5871de34303b6f2fc901ed
|
[
"MIT"
] | null | null | null |
bili_kits/account/__init__.py
|
LonelySteve/Bili-Kits
|
42e536400b2f35d57e5871de34303b6f2fc901ed
|
[
"MIT"
] | null | null | null |
bili_kits/account/__init__.py
|
LonelySteve/Bili-Kits
|
42e536400b2f35d57e5871de34303b6f2fc901ed
|
[
"MIT"
] | null | null | null |
from .user import BaseUser,WebUser,ClientUser,UserNotLoginError,get_user_card_info
| 82
| 82
| 0.902439
| 11
| 82
| 6.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036585
| 82
| 1
| 82
| 82
| 0.898734
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7a8029358015421569438f7b5dd805c889af9da0
| 97
|
py
|
Python
|
cryptodock_suite/actions/order_rate_over_time/__init__.py
|
the-launch-tech/cryptodock-suite
|
360d90c3531322b43df8df5e64ebbffc3241fe07
|
[
"MIT"
] | null | null | null |
cryptodock_suite/actions/order_rate_over_time/__init__.py
|
the-launch-tech/cryptodock-suite
|
360d90c3531322b43df8df5e64ebbffc3241fe07
|
[
"MIT"
] | null | null | null |
cryptodock_suite/actions/order_rate_over_time/__init__.py
|
the-launch-tech/cryptodock-suite
|
360d90c3531322b43df8df5e64ebbffc3241fe07
|
[
"MIT"
] | null | null | null |
__all__ = [
'order_rate_over_time'
]
from .order_rate_over_time import order_rate_over_time
| 16.166667
| 54
| 0.793814
| 15
| 97
| 4.266667
| 0.466667
| 0.421875
| 0.609375
| 0.796875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.14433
| 97
| 5
| 55
| 19.4
| 0.771084
| 0
| 0
| 0
| 0
| 0
| 0.206186
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 1
| 1
| 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
| 5
|
8f8f8e7db9c0000b59929ca76137ce5dc35b360c
| 622
|
py
|
Python
|
src/typeconvert/ufunc.py
|
jolsten/float-interpreter
|
ed090cee55012f2e72d451ca85ba0528ed203b4d
|
[
"MIT"
] | 1
|
2022-02-03T01:46:52.000Z
|
2022-02-03T01:46:52.000Z
|
src/typeconvert/ufunc.py
|
jolsten/float-interpreter
|
ed090cee55012f2e72d451ca85ba0528ed203b4d
|
[
"MIT"
] | null | null | null |
src/typeconvert/ufunc.py
|
jolsten/float-interpreter
|
ed090cee55012f2e72d451ca85ba0528ed203b4d
|
[
"MIT"
] | null | null | null |
from typeconvert.types.onescomp import ufunc as onescomp
from typeconvert.types.twoscomp import ufunc as twoscomp
from typeconvert.types.milstd1750a32 import ufunc as milstd1750a32
from typeconvert.types.milstd1750a48 import ufunc as milstd1750a48
from typeconvert.types.ti32 import ufunc as ti32
from typeconvert.types.ti40 import ufunc as ti40
from typeconvert.types.dec32 import ufunc as dec32
from typeconvert.types.dec64 import ufunc as dec64
from typeconvert.types.dec64g import ufunc as dec64g
from typeconvert.types.ibm32 import ufunc as ibm32
from typeconvert.types.ibm64 import ufunc as ibm64
| 38.875
| 67
| 0.827974
| 88
| 622
| 5.852273
| 0.193182
| 0.320388
| 0.427184
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096834
| 0.136656
| 622
| 15
| 68
| 41.466667
| 0.862197
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 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
| 5
|
8fa13894d499cc909aab93389abfa2b994be215a
| 113
|
py
|
Python
|
sleekxmpp/thirdparty/__init__.py
|
EnerNOC/smallfoot-sleekxmpp
|
b3e4d92816df3538e99a5ad1ab536fc38f5ee97a
|
[
"MIT"
] | null | null | null |
sleekxmpp/thirdparty/__init__.py
|
EnerNOC/smallfoot-sleekxmpp
|
b3e4d92816df3538e99a5ad1ab536fc38f5ee97a
|
[
"MIT"
] | 1
|
2020-04-10T22:09:06.000Z
|
2020-04-10T22:09:06.000Z
|
sleekxmpp/thirdparty/__init__.py
|
EnerNOC/smallfoot-sleekxmpp
|
b3e4d92816df3538e99a5ad1ab536fc38f5ee97a
|
[
"MIT"
] | null | null | null |
try:
from collections import OrderedDict
except:
from sleekxmpp.thirdparty.ordereddict import OrderedDict
| 28.25
| 60
| 0.814159
| 12
| 113
| 7.666667
| 0.666667
| 0.369565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150442
| 113
| 4
| 60
| 28.25
| 0.958333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
|
0
| 5
|
8f4510db9231d70738882f88514bb8736ee90d71
| 67
|
py
|
Python
|
pymt_sedflux3d/bmi.py
|
mcflugen/pymt_sedflux3d
|
136c9c2dfffbb3c389f8dacaf002fa0962c7dc48
|
[
"MIT"
] | null | null | null |
pymt_sedflux3d/bmi.py
|
mcflugen/pymt_sedflux3d
|
136c9c2dfffbb3c389f8dacaf002fa0962c7dc48
|
[
"MIT"
] | 1
|
2020-04-04T02:09:38.000Z
|
2020-04-04T02:09:38.000Z
|
pymt_sedflux3d/bmi.py
|
mcflugen/pymt_sedflux3d
|
136c9c2dfffbb3c389f8dacaf002fa0962c7dc48
|
[
"MIT"
] | null | null | null |
from __future__ import absolute_import
from .lib import Sedflux3D
| 16.75
| 38
| 0.850746
| 9
| 67
| 5.777778
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017241
| 0.134328
| 67
| 3
| 39
| 22.333333
| 0.87931
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
71437258e8342236445a18f9818801ce852fe4c8
| 131
|
py
|
Python
|
app/api/__init__.py
|
ivelinahristova/webanalysis
|
ff73b65799dc1465b9138a8742ea74b9da171c8d
|
[
"MIT"
] | null | null | null |
app/api/__init__.py
|
ivelinahristova/webanalysis
|
ff73b65799dc1465b9138a8742ea74b9da171c8d
|
[
"MIT"
] | 8
|
2021-04-10T17:55:31.000Z
|
2021-04-19T14:45:14.000Z
|
app/api/__init__.py
|
ivelinahristova/webanalysis
|
ff73b65799dc1465b9138a8742ea74b9da171c8d
|
[
"MIT"
] | null | null | null |
"""
app.api
~~~~~~~~~~~~~~~~~~
This module contains views for project's API service.
"""
from app.api.views import api
| 18.714286
| 57
| 0.564885
| 17
| 131
| 4.352941
| 0.705882
| 0.162162
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.21374
| 131
| 7
| 58
| 18.714286
| 0.718447
| 0.610687
| 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
|
856e4c91f5ac6bb0743f0f72a293e80b96b180c7
| 160
|
py
|
Python
|
sumy/constants.py
|
gsandeep1241/TextSummarizer
|
fc9af3cf3a74114db94a837d5d20c16a08f806be
|
[
"Apache-2.0"
] | null | null | null |
sumy/constants.py
|
gsandeep1241/TextSummarizer
|
fc9af3cf3a74114db94a837d5d20c16a08f806be
|
[
"Apache-2.0"
] | 5
|
2020-03-24T16:36:34.000Z
|
2021-12-13T19:53:21.000Z
|
sumy/constants.py
|
gsandeep1241/TextSummarizer
|
fc9af3cf3a74114db94a837d5d20c16a08f806be
|
[
"Apache-2.0"
] | null | null | null |
PATH = '../DUC_data/DUC2006/duc2006_docs/'
GtPath = '../DUC_data/DUC2006/NISTeval/ROUGE/peers/'
googlePath = '../../../../../GoogleNews-vectors-negative300.bin'
| 53.333333
| 64
| 0.69375
| 18
| 160
| 6
| 0.777778
| 0.12963
| 0.259259
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098684
| 0.05
| 160
| 3
| 64
| 53.333333
| 0.611842
| 0
| 0
| 0
| 0
| 0
| 0.763975
| 0.763975
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8593c4ce4caf899224de50db467b06bd079e9209
| 91
|
py
|
Python
|
src/poliastro/tests/test_examples.py
|
aOrionis/poliastro
|
7e73dbcafd837854dba8db1910477b6df3eace93
|
[
"MIT"
] | 1
|
2018-12-09T18:33:52.000Z
|
2018-12-09T18:33:52.000Z
|
src/poliastro/tests/test_examples.py
|
aOrionis/poliastro
|
7e73dbcafd837854dba8db1910477b6df3eace93
|
[
"MIT"
] | null | null | null |
src/poliastro/tests/test_examples.py
|
aOrionis/poliastro
|
7e73dbcafd837854dba8db1910477b6df3eace93
|
[
"MIT"
] | 1
|
2021-11-24T12:00:27.000Z
|
2021-11-24T12:00:27.000Z
|
# This line tests all the statements so far
from poliastro import examples # flake8: noqa
| 30.333333
| 46
| 0.78022
| 14
| 91
| 5.071429
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013514
| 0.186813
| 91
| 2
| 47
| 45.5
| 0.945946
| 0.593407
| 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
|
85949f6f8253666555c52f20b76f9c36e2cab349
| 26
|
py
|
Python
|
project/experiments/exp_035_fight_smp_benchmark/src/gym_envs/smp_envs.py
|
liusida/thesis-bodies
|
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
|
[
"MIT"
] | null | null | null |
project/experiments/exp_035_fight_smp_benchmark/src/gym_envs/smp_envs.py
|
liusida/thesis-bodies
|
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
|
[
"MIT"
] | null | null | null |
project/experiments/exp_035_fight_smp_benchmark/src/gym_envs/smp_envs.py
|
liusida/thesis-bodies
|
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
|
[
"MIT"
] | null | null | null |
class SMPRobot():
pass
| 13
| 17
| 0.653846
| 3
| 26
| 5.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 26
| 2
| 18
| 13
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
859b1d5614819d130ad938bbcedb7b369e053205
| 19
|
py
|
Python
|
hello.py
|
NateLovallo/megafun
|
86cb59414b84c95490255c97bfb42c109878e6bb
|
[
"MIT"
] | null | null | null |
hello.py
|
NateLovallo/megafun
|
86cb59414b84c95490255c97bfb42c109878e6bb
|
[
"MIT"
] | null | null | null |
hello.py
|
NateLovallo/megafun
|
86cb59414b84c95490255c97bfb42c109878e6bb
|
[
"MIT"
] | null | null | null |
print 'hello you'
| 6.333333
| 17
| 0.684211
| 3
| 19
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 19
| 2
| 18
| 9.5
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
85a5d3ff6e11da5e852964d1671d1216824383ee
| 12,368
|
py
|
Python
|
installer.py
|
erick-dsnk/Electric
|
7e8aad1f792321d7839717ed97b641bee7a4a64e
|
[
"Apache-2.0"
] | null | null | null |
installer.py
|
erick-dsnk/Electric
|
7e8aad1f792321d7839717ed97b641bee7a4a64e
|
[
"Apache-2.0"
] | null | null | null |
installer.py
|
erick-dsnk/Electric
|
7e8aad1f792321d7839717ed97b641bee7a4a64e
|
[
"Apache-2.0"
] | null | null | null |
######################################################################
# OFFICIAL ELECTRIC INSTALLER #
######################################################################
import os
os.system('pip install tqdm')
os.system('pip install requests')
os.system('pip install click')
import click
click.echo(click.style('All Installer Dependencies Installed!', fg='green'))
import argparse
import requests
import zipfile
import ctypes
import shutil
import tqdm
import sys
class Metadata:
def __init__(self, silent, verbose):
self.silent = silent
self.verbose = verbose
parser = argparse.ArgumentParser(description='Electric Installer')
parser.add_argument('--silent', action='store_true')
parser.add_argument('--verbose', action='store_true')
args = parser.parse_args()
metadata = Metadata(args.silent, args.verbose)
def write(text: str, color: str, metadata: Metadata):
if not metadata.silent:
click.echo(click.style(text, fg=color))
def write_verbose(text: str, color: str, metadata: Metadata):
if not metadata.silent and metadata.verbose:
click.echo(click.style(text, fg=color))
def isAdmin():
try:
is_admin = (os.getuid() == 0)
except AttributeError:
is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0
return is_admin
while True:
if not metadata.silent:
try:
installation = int(input(
'Enter 1 For Default Installation \nEnter 2 For Custom Installation\n>> '))
break
except ValueError:
write('Please Enter A Valid Number [1 or 2]', 'red', metadata)
else:
installation = 1
if isAdmin() and installation == 1:
parent_dir = r'C:\\'
electric_dir = parent_dir + 'Electric'
write_verbose(
f'Creating Directory Electric at {parent_dir} With Destination {electric_dir}', 'bright_yellow', metadata)
os.mkdir(electric_dir)
write(R'Successfully Created Directory At C:\Electric', 'green', metadata)
write_verbose(
f'Downloading Electric.zip From /install To {electric_dir}\\Electric.zip', 'bright_yellow', metadata)
with open(f'{electric_dir}\\Electric.zip', 'wb') as f:
response = requests.get(
'https://electric-package-manager.herokuapp.com/install/windows/zip', stream=True)
total_length = response.headers.get('content-length')
if total_length is None:
f.write(response.content)
else:
dl = 0
full_length = int(total_length)
for data in response.iter_content(chunk_size=7096):
dl += len(data)
f.write(data)
complete = int(20 * dl / full_length)
fill_c, unfill_c = '#' * complete, ' ' * (20 - complete)
sys.stdout.write(
f'\r[{fill_c}{unfill_c}] ⚡ {round(dl / full_length * 100, 1)} % ⚡ {round(dl / 1000000, 1)} / {round(full_length / 1000000, 1)} MB ')
sys.stdout.flush()
write('\nSuccessfully Downloaded Electric.zip', 'green', metadata)
write('Unzipping Electric.zip', 'green', metadata)
write_verbose(
f'Unzipping Electric.zip at {electric_dir}\\Electric.zip', 'yellow', metadata)
with zipfile.ZipFile(f'{electric_dir}\\Electric.zip') as zf:
for member in tqdm.tqdm(zf.infolist(), smoothing=1.0, ncols=60):
try:
zf.extract(member, f'{electric_dir}\\electric-dist')
except zipfile.error as e:
pass
os.remove(f'{electric_dir}\\Electric.zip')
os.rename(f'{electric_dir}\electric-dist', Rf'{electric_dir}\file')
shutil.move(Rf'{electric_dir}\file\electric-dist',
f'{electric_dir}\electric')
shutil.rmtree(Rf'C:\Electric\file')
write('Successfully Unzipped And Extracted Electric.zip', 'green', metadata)
write('Successfully Installed Electric, Type `electric` To Get A List Of Help Commands!', 'green', metadata)
if isAdmin() and installation == 2 and not metadata.silent:
install_directory = input('Enter the directory you would like to install electric to:\n\n[Enter `DEFAULT` for default directory]\nNOTE:[Don\'t Include `\Electric` In Path]\n>> ')
if install_directory:
while True:
if not metadata.silent:
compression_type = input(
'Enter .zip For A ZIP Installation \nEnter .7z For A 7-ZIP Installation\nEnter .tar For A TAR Installation\n>> ')
if compression_type not in ['.zip', '.7z', '.tar']:
sys.exit(1)
break
if compression_type == '.zip':
if install_directory == 'DEFAULT':
parent_dir = r'C:\\'
else:
parent_dir = install_directory + '\\'
electric_dir = parent_dir + 'Electric'
write_verbose(
f'Creating Directory Electric at {parent_dir} With Destination {electric_dir}', 'bright_yellow', metadata)
os.mkdir(electric_dir)
write(Rf'Successfully Created Directory At {electric_dir}', 'green', metadata)
write_verbose(
f'Downloading Electric.zip From /install To {electric_dir}\\Electric.zip', 'bright_yellow', metadata)
with open(f'{electric_dir}\\Electric.zip', 'wb') as f:
response = requests.get(
'https://electric-package-manager.herokuapp.com/install/windows/zip', stream=True)
total_length = response.headers.get('content-length')
if total_length is None:
f.write(response.content)
else:
dl = 0
full_length = int(total_length)
for data in response.iter_content(chunk_size=7096):
dl += len(data)
f.write(data)
complete = int(20 * dl / full_length)
fill_c, unfill_c = '#' * complete, ' ' * (20 - complete)
sys.stdout.write(
f'\r[{fill_c}{unfill_c}] ⚡ {round(dl / full_length * 100, 1)} % ⚡ {round(dl / 1000000, 1)} / {round(full_length / 1000000, 1)} MB ')
sys.stdout.flush()
write('\nSuccessfully Downloaded Electric.zip', 'green', metadata)
write('Unzipping Electric.zip', 'green', metadata)
write_verbose(
f'Unzipping Electric.zip at {electric_dir}\\Electric.zip', 'yellow', metadata)
with zipfile.ZipFile(f'{electric_dir}\\Electric.zip') as zf:
for member in tqdm.tqdm(zf.infolist(), smoothing=1.0, ncols=60):
try:
zf.extract(member, f'{electric_dir}\\electric-dist')
except zipfile.error as e:
pass
os.remove(f'{electric_dir}\\Electric.zip')
os.rename(f'{electric_dir}\electric-dist', Rf'{electric_dir}\file')
print(electric_dir)
shutil.move(Rf'{electric_dir}\file\electric-dist',
f'{electric_dir}\electric')
shutil.rmtree(Rf'{electric_dir}\file')
write('Successfully Unzipped And Extracted Electric.zip', 'green', metadata)
write('Running setup.py For Electric', 'green', metadata)
os.chdir(Rf'{electric_dir}\electric')
write('Successfully Installed Electric, Type `electric` To Get A List Of Help Commands!', 'green', metadata)
if compression_type == '.7z':
os.system('pip install py7zr')
click.echo(click.style('Successfully Installed All .7z Dependencies!', fg='green'))
if install_directory == 'DEFAULT':
parent_dir = r'C:\\'
else:
parent_dir = install_directory + '\\'
electric_dir = parent_dir + 'Electric'
write_verbose(
f'Creating Directory Electric at {parent_dir} With Destination {electric_dir}', 'bright_yellow', metadata)
os.mkdir(electric_dir)
write(Rf'Successfully Created Directory At {electric_dir}', 'green', metadata)
write_verbose(
f'Downloading Electric.zip From /install To {electric_dir}\\Electric.7z', 'bright_yellow', metadata)
with open(f'{electric_dir}\\Electric.7z', 'wb') as f:
response = requests.get(
'https://electric-package-manager.herokuapp.com/install/windows/7z', stream=True)
total_length = response.headers.get('content-length')
if total_length is None:
f.write(response.content)
else:
dl = 0
full_length = int(total_length)
for data in response.iter_content(chunk_size=7096):
dl += len(data)
f.write(data)
complete = int(20 * dl / full_length)
fill_c, unfill_c = '#' * complete, ' ' * (20 - complete)
sys.stdout.write(
f'\r[{fill_c}{unfill_c}] ⚡ {round(dl / full_length * 100, 1)} % ⚡ {round(dl / 1000000, 1)} / {round(full_length / 1000000, 1)} MB ')
sys.stdout.flush()
import py7zr
archive = py7zr.SevenZipFile(f'{electric_dir}\\Electric.7z', 'r')
archive.extractall(electric_dir)
archive.close()
os.remove(f'{electric_dir}\\Electric.7z')
os.rename(f'{electric_dir}\\electric-dist', f'{electric_dir}\\electric')
write('\nSuccessfully Unzipped And Extracted Electric.7z', 'green', metadata)
os.chdir(Rf'{electric_dir}\electric')
write('Successfully Installed Electric, Type `electric` To Get A List Of Help Commands!', 'green', metadata)
if compression_type == '.tar':
if install_directory == 'DEFAULT':
parent_dir = r'C:\\'
else:
parent_dir = install_directory + '\\'
electric_dir = parent_dir + 'Electric'
write_verbose(
f'Creating Directory Electric at {parent_dir} With Destination {electric_dir}', 'bright_yellow', metadata)
os.mkdir(electric_dir)
write(Rf'Successfully Created Directory At {electric_dir}', 'green', metadata)
write_verbose(
f'Downloading Electric.zip From /install To {electric_dir}\\Electric.tar', 'bright_yellow', metadata)
with open(f'{electric_dir}\\Electric.tar', 'wb') as f:
response = requests.get(
'https://electric-package-manager.herokuapp.com/install/windows/tar', stream=True)
total_length = response.headers.get('content-length')
if total_length is None:
f.write(response.content)
else:
dl = 0
full_length = int(total_length)
for data in response.iter_content(chunk_size=7096):
dl += len(data)
f.write(data)
complete = int(20 * dl / full_length)
fill_c, unfill_c = '#' * complete, ' ' * (20 - complete)
sys.stdout.write(
f'\r[{fill_c}{unfill_c}] ⚡ {round(dl / full_length * 100, 1)} % ⚡ {round(dl / 1000000, 1)} / {round(full_length / 1000000, 1)} MB ')
sys.stdout.flush()
import tarfile
tar = tarfile.open(f'{electric_dir}\\Electric.tar')
tar.extractall(electric_dir)
tar.close()
os.remove(f'{electric_dir}\\Electric.tar')
os.rename(f'{electric_dir}\\electric-dist', f'{electric_dir}\\electric')
write('\nSuccessfully Unzipped And Extracted Electric.tar', 'green', metadata)
os.chdir(Rf'{electric_dir}\electric')
write('Successfully Installed Electric, Type `electric` To Get A List Of Help Commands!', 'green', metadata)
if not isAdmin():
click.echo(click.style(
'Retry Installation With Administrator Permissions', fg='red'), err=True)
| 45.470588
| 182
| 0.567594
| 1,382
| 12,368
| 4.965991
| 0.138929
| 0.086551
| 0.085823
| 0.064112
| 0.764534
| 0.760309
| 0.747778
| 0.738161
| 0.728544
| 0.714556
| 0
| 0.01742
| 0.303768
| 12,368
| 271
| 183
| 45.638376
| 0.778655
| 0.002183
| 0
| 0.674009
| 0
| 0.013216
| 0.33772
| 0.083155
| 0
| 0
| 0
| 0
| 0
| 1
| 0.017621
| false
| 0.008811
| 0.048458
| 0
| 0.07489
| 0.004405
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 5
|
a4282424135e431f104c0bf3824b99ca40e73998
| 109
|
py
|
Python
|
playground/read_wifi_name.py
|
Shingirai98/EEE3097
|
b3880e163d1d195c52af16046e7d9f64fcb25676
|
[
"Apache-2.0"
] | 12
|
2016-10-24T21:53:38.000Z
|
2021-01-09T12:07:53.000Z
|
playground/read_wifi_name.py
|
Shingirai98/EEE3097
|
b3880e163d1d195c52af16046e7d9f64fcb25676
|
[
"Apache-2.0"
] | 14
|
2017-02-27T15:39:18.000Z
|
2019-11-25T19:58:16.000Z
|
playground/read_wifi_name.py
|
Shingirai98/EEE3097
|
b3880e163d1d195c52af16046e7d9f64fcb25676
|
[
"Apache-2.0"
] | 5
|
2018-09-27T13:57:47.000Z
|
2021-01-09T12:07:11.000Z
|
import os
wifi_name = os.popen("iw dev wlan0 link | grep SSID | awk '{print $2}'").read()
print(wifi_name)
| 18.166667
| 79
| 0.669725
| 19
| 109
| 3.736842
| 0.789474
| 0.225352
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021978
| 0.165138
| 109
| 5
| 80
| 21.8
| 0.758242
| 0
| 0
| 0
| 0
| 0
| 0.440367
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
a43986ed893a75e4ed1f463ade811aae336ec616
| 219
|
py
|
Python
|
tests/EntityForTest.py
|
novaweb-mobi/nova-api
|
2887118ff10d18f366ce661262bd25bb96648470
|
[
"MIT"
] | 3
|
2020-09-08T23:33:41.000Z
|
2021-12-24T20:50:13.000Z
|
tests/EntityForTest.py
|
novaweb-mobi/nova-api
|
2887118ff10d18f366ce661262bd25bb96648470
|
[
"MIT"
] | 39
|
2020-07-29T12:34:14.000Z
|
2022-03-05T16:50:29.000Z
|
tests/EntityForTest.py
|
novaweb-mobi/nova-api
|
2887118ff10d18f366ce661262bd25bb96648470
|
[
"MIT"
] | 1
|
2021-03-05T19:41:58.000Z
|
2021-03-05T19:41:58.000Z
|
from dataclasses import dataclass, field
from nova_api.entity import Entity
@dataclass
class EntityForTest(Entity):
test_field: int = 0
not_to_add_field: str = field(default="", metadata={"database": False})
| 21.9
| 75
| 0.748858
| 29
| 219
| 5.482759
| 0.724138
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005376
| 0.150685
| 219
| 9
| 76
| 24.333333
| 0.849462
| 0
| 0
| 0
| 0
| 0
| 0.03653
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a4463e72421b8daeaa7e0c541bd74faeb28995dc
| 49
|
py
|
Python
|
apps/pyexe/hello_world.py
|
gzvulon/pydocflow
|
9184894630903f2aaf238cd70fff2d0cc9132b81
|
[
"MIT"
] | null | null | null |
apps/pyexe/hello_world.py
|
gzvulon/pydocflow
|
9184894630903f2aaf238cd70fff2d0cc9132b81
|
[
"MIT"
] | null | null | null |
apps/pyexe/hello_world.py
|
gzvulon/pydocflow
|
9184894630903f2aaf238cd70fff2d0cc9132b81
|
[
"MIT"
] | 2
|
2021-05-28T11:01:43.000Z
|
2021-05-30T15:14:32.000Z
|
#cython: language_level=3
print("Hello World!")
| 12.25
| 25
| 0.734694
| 7
| 49
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022727
| 0.102041
| 49
| 3
| 26
| 16.333333
| 0.772727
| 0.489796
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
a488060539cff854d95648b82e1c48d584fd4649
| 75
|
py
|
Python
|
client/gateway/__init__.py
|
crazyfacka/iseeyou
|
0ab47bb5c7c190bb161887bdfa12ce099c79a7cf
|
[
"MIT"
] | null | null | null |
client/gateway/__init__.py
|
crazyfacka/iseeyou
|
0ab47bb5c7c190bb161887bdfa12ce099c79a7cf
|
[
"MIT"
] | null | null | null |
client/gateway/__init__.py
|
crazyfacka/iseeyou
|
0ab47bb5c7c190bb161887bdfa12ce099c79a7cf
|
[
"MIT"
] | null | null | null |
"""This imports all the lib package classes"""
from gateway import Gateway
| 25
| 46
| 0.773333
| 11
| 75
| 5.272727
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146667
| 75
| 2
| 47
| 37.5
| 0.90625
| 0.533333
| 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
|
f12ad4d081af029b8fac96e0ad750e41145f8ce6
| 227
|
py
|
Python
|
moceansdk/modules/command/content_builder/wa_photo_content_builder.py
|
d3no/mocean-sdk-python
|
cbc215a0eb8aa26c04afb940eab6482f23150c75
|
[
"MIT"
] | null | null | null |
moceansdk/modules/command/content_builder/wa_photo_content_builder.py
|
d3no/mocean-sdk-python
|
cbc215a0eb8aa26c04afb940eab6482f23150c75
|
[
"MIT"
] | null | null | null |
moceansdk/modules/command/content_builder/wa_photo_content_builder.py
|
d3no/mocean-sdk-python
|
cbc215a0eb8aa26c04afb940eab6482f23150c75
|
[
"MIT"
] | null | null | null |
from moceansdk.modules.command.content_builder.wa_rich_media_content_builder_basic import WaRichMediaContentBuilderBasic
class WaPhotoContentBuilder(WaRichMediaContentBuilderBasic):
def type(self):
return 'photo'
| 32.428571
| 120
| 0.84141
| 22
| 227
| 8.409091
| 0.863636
| 0.151351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105727
| 227
| 7
| 121
| 32.428571
| 0.91133
| 0
| 0
| 0
| 0
| 0
| 0.02193
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
f1338c2d7facf161dcd7e05ce938ac8ab160185f
| 156
|
py
|
Python
|
advent-of-code/aoc-2020/helpers.py
|
ikumen/problems-solvers
|
c1847b09babbef344b2043b575fc81fed5809725
|
[
"MIT"
] | null | null | null |
advent-of-code/aoc-2020/helpers.py
|
ikumen/problems-solvers
|
c1847b09babbef344b2043b575fc81fed5809725
|
[
"MIT"
] | null | null | null |
advent-of-code/aoc-2020/helpers.py
|
ikumen/problems-solvers
|
c1847b09babbef344b2043b575fc81fed5809725
|
[
"MIT"
] | null | null | null |
import os
def get_data_file_path(filepath):
return os.path.join(
os.path.dirname(filepath),
f"{os.path.splitext(os.path.basename(filepath))[0]}.txt")
| 22.285714
| 59
| 0.737179
| 26
| 156
| 4.307692
| 0.615385
| 0.214286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007042
| 0.089744
| 156
| 6
| 60
| 26
| 0.78169
| 0
| 0
| 0
| 0
| 0
| 0.339744
| 0.339744
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 1
| 0
|
0
| 5
|
f18149106761c94bdd9c0ff1355357b1477e815c
| 1,789
|
py
|
Python
|
tests/test1.py
|
BykovDmitrii/rubymine-is2018
|
b25940118c767b5354a9e76e4807928fe9c9abe7
|
[
"Apache-2.0"
] | 1
|
2019-02-14T05:13:46.000Z
|
2019-02-14T05:13:46.000Z
|
tests/test1.py
|
BykovDmitrii/rubymine-is2018
|
b25940118c767b5354a9e76e4807928fe9c9abe7
|
[
"Apache-2.0"
] | null | null | null |
tests/test1.py
|
BykovDmitrii/rubymine-is2018
|
b25940118c767b5354a9e76e4807928fe9c9abe7
|
[
"Apache-2.0"
] | null | null | null |
if True:
pass
if 0:
pass
if 1:
pass
if (1==1) :
pass
if 1 == 2 + - 1 :
pass
if 456 == 244:
pass
if 1 == 0 - 5 + 6 - 1:
pass
if 2 + 2 == 5:
pass
if 23313 + 31313 == 0:
pass
if 2 + 2 == 3 + 1 * 0 + 1 :
pass
if 1 == 1:
pass
if - 1== 2-3 :
pass
if (2 + 2) + 2 == 7:
pass
if 55 * 2 / 2 * 4 / 4 * 2 / 2 == 759 + ( -1 + 56 + 77 - 77) + 123 * 3 - (369 - 1 + 1 - 1 - 1 + 2 + 2 ** 2 - 4) - 750 - 3 ** 2 + 1:
pass
if 55 * 2 / 2 * 4 / 4 * 2 / 2 == 759 + -1 + 56 + 77 - 77 + 123 * 3 - 369 - 1 + 1 - 1 - 1 + 2 + 2 ** 2 - 4 - 750 - 3 ** 2 + 1:
pass
if 55 * 2 / 2 * 4 / 4 * 2 / 2 == 759 + ( -1 + 56 + 77 - 77) + 123 * 3 - (369 - 1 + 1 - 1 - 1 + 2 + 2 ** 2 - 4) - 750 - 3 ** 2 :
pass
if 55 * 2 / 2 * 4 / 4 * 2 / 2 == 759 + -1 + 56 + 77 - 77 + 123 * 3 - 369 - 1 + 1 - 1 - 1 + 2 + 2 ** 2 - 4 - 750 - 3 ** 2 :
pass
if 55*2/2*4/4*2/2+2**3==759+-1+56+77-77+123*3-369-1+1-1-1+2+2**2-4-750-3**2+3**2-1+1//34 :
pass
if True and False or True and False:
pass
if True and ( False or True ) :
pass
if ( True and False ) or False :
pass
if True and not False:
pass
if not True and False:
pass
if 123456 + 6 - 999 + 3333 - 228 or 1 == 5:
pass
if not True and True or True and not True:
pass
if 2 +2 * 2 == 6:
pass
if 10 * 10 // 101 * 10 == 0:
pass
if 10 * 11 // 101 * 10 == 0:
pass
if ( 2+ 2 ) * 2 == 8:
pass
if ( 2 + 2) * 2 ==7 :
pass
if -(1+1)==-2:
pass
if -(1+1)!=-2:
pass
if 2 + ( 2 ) == 3 or 1:
pass
if ( 99 * 8 )/ 10 > 10:
pass
if 99 * ( 8 / 10) < 10:
pass
if 99 * ( 8 / 10 )> 10:
pass
if - (1313 - 1314) * - 1 == 1 * (2 - 3):
pass
if 1/0 ==0:
pass
if 100% 3==1:
pass
if 100 %0==1:
pass
if 100 % 4==1:
pass
if 1/1==1:
pass
| 21.297619
| 131
| 0.416434
| 367
| 1,789
| 2.029973
| 0.106267
| 0.330201
| 0.112752
| 0.075168
| 0.738255
| 0.554362
| 0.527517
| 0.438926
| 0.404027
| 0.358389
| 0
| 0.33211
| 0.390721
| 1,789
| 84
| 132
| 21.297619
| 0.351376
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
74ea5534a2222aa50e6797b5e6858f4c0a624a2e
| 273
|
py
|
Python
|
Ex_94.py
|
soldierloko/Curso-em-Video
|
d867366425f72fe15903cb17cdc222a7fe7a3831
|
[
"MIT"
] | null | null | null |
Ex_94.py
|
soldierloko/Curso-em-Video
|
d867366425f72fe15903cb17cdc222a7fe7a3831
|
[
"MIT"
] | null | null | null |
Ex_94.py
|
soldierloko/Curso-em-Video
|
d867366425f72fe15903cb17cdc222a7fe7a3831
|
[
"MIT"
] | null | null | null |
#Faça um programa que tenha uma lista chamada números e duas funções chamadas sorteia() e somarpar().
#A primeira função vai sortear 5 números e vai coloca-los dentro da lista e a segunda função vai mostrar a soma entre todos os valores PARES sorteados pela função anterior
| 136.5
| 171
| 0.805861
| 47
| 273
| 4.680851
| 0.765957
| 0.072727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004386
| 0.164835
| 273
| 2
| 171
| 136.5
| 0.960526
| 0.989011
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.5
| 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
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
74eaa07f106cf053632c49d313068b13269faf14
| 70
|
py
|
Python
|
util.py
|
HENRYMARTIN5/Py2Assembler
|
3a4ba9e663f587224044b680c989418490498e50
|
[
"MIT"
] | null | null | null |
util.py
|
HENRYMARTIN5/Py2Assembler
|
3a4ba9e663f587224044b680c989418490498e50
|
[
"MIT"
] | null | null | null |
util.py
|
HENRYMARTIN5/Py2Assembler
|
3a4ba9e663f587224044b680c989418490498e50
|
[
"MIT"
] | null | null | null |
def str2bool(v):
return str(v).lower() in ("yes", "true", "t", "1")
| 35
| 53
| 0.542857
| 12
| 70
| 3.166667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033898
| 0.157143
| 70
| 2
| 53
| 35
| 0.610169
| 0
| 0
| 0
| 0
| 0
| 0.126761
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
2d0a276b47c37e24eec5f6d1ee16f632abf1a52e
| 105
|
py
|
Python
|
src/library/__init__.py
|
smiley-py/mailrobot
|
3b79557af7cf08da76347738d7203577003832fc
|
[
"MIT"
] | null | null | null |
src/library/__init__.py
|
smiley-py/mailrobot
|
3b79557af7cf08da76347738d7203577003832fc
|
[
"MIT"
] | null | null | null |
src/library/__init__.py
|
smiley-py/mailrobot
|
3b79557af7cf08da76347738d7203577003832fc
|
[
"MIT"
] | null | null | null |
from .scheduled import CustomScheduled
from .gmail import CustomGmail
from .outlook import CustomOutlook
| 26.25
| 38
| 0.857143
| 12
| 105
| 7.5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 105
| 3
| 39
| 35
| 0.967742
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
741f62c48cccbfe22679afc807e7b8d69ec70407
| 6,030
|
py
|
Python
|
tests/clean/infra/log/utils/colors/test_termcolors.py
|
bahnlink/pyclean
|
558d75341082472606788e088809831f6ea543c0
|
[
"MIT"
] | null | null | null |
tests/clean/infra/log/utils/colors/test_termcolors.py
|
bahnlink/pyclean
|
558d75341082472606788e088809831f6ea543c0
|
[
"MIT"
] | 2
|
2021-03-25T21:49:39.000Z
|
2021-06-01T22:12:00.000Z
|
tests/clean/infra/log/utils/colors/test_termcolors.py
|
bahnlink/pyclean
|
558d75341082472606788e088809831f6ea543c0
|
[
"MIT"
] | 1
|
2018-06-07T17:31:56.000Z
|
2018-06-07T17:31:56.000Z
|
from clean.infra.log.utils.colors.termcolors import (
DARK_PALETTE, DEFAULT_PALETTE, LIGHT_PALETTE, NOCOLOR_PALETTE, PALETTES,
colorize, parse_color_setting,
)
def test_empty_string():
assert parse_color_setting('') == PALETTES[DEFAULT_PALETTE]
def test_simple_palette():
assert parse_color_setting('light') == PALETTES[LIGHT_PALETTE]
assert parse_color_setting('dark') == PALETTES[DARK_PALETTE]
assert parse_color_setting('nocolor') is None
def test_fg():
res = parse_color_setting('error=green')
assert res == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
def test_fg_bg():
res = parse_color_setting('error=green/blue')
assert res == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'bg': 'blue'})
def test_fg_opts():
res_green_blink = parse_color_setting('error=green,blink')
res_green_bold_blink = parse_color_setting('error=green,bold,blink')
assert res_green_blink == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'opts': ('blink',)})
assert res_green_bold_blink == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'opts': ('blink', 'bold')})
def test_fg_bg_opts():
res_blue_blink = parse_color_setting('error=green/blue,blink')
res_blu_bold_blink = parse_color_setting('error=green/blue,bold,blink')
assert res_blue_blink == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'bg': 'blue', 'opts': ('blink',)})
assert res_blu_bold_blink == dict(PALETTES[NOCOLOR_PALETTE],
ERROR={'fg': 'green', 'bg': 'blue', 'opts': ('blink', 'bold')})
def test_override_palette():
res = parse_color_setting('light;error=green')
assert res == dict(PALETTES[LIGHT_PALETTE], ERROR={'fg': 'green'})
def test_override_nocolor():
res = parse_color_setting('nocolor;error=green')
assert res == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
def test_reverse_override():
assert parse_color_setting('error=green;light') == PALETTES[LIGHT_PALETTE]
def test_multiple_roles():
res = parse_color_setting('error=green;sql_field=blue')
assert res == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'}, SQL_FIELD={'fg': 'blue'})
def test_override_with_multiple_roles():
res = parse_color_setting('light;error=green;sql_field=blue')
assert res == dict(PALETTES[LIGHT_PALETTE], ERROR={'fg': 'green'}, SQL_FIELD={'fg': 'blue'})
def test_empty_definition():
assert parse_color_setting(';') is None
assert parse_color_setting(';;;') is None
assert parse_color_setting('light;') == PALETTES[LIGHT_PALETTE]
def test_empty_options():
res_1 = parse_color_setting('error=green,')
res_2 = parse_color_setting('error=green,,,')
res_3 = parse_color_setting('error=green,,blink,,')
assert res_1 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
assert res_2 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
assert res_3 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'opts': ('blink',)})
def test_bad_palette():
assert parse_color_setting('unknown') is None
def test_bad_role():
res_1 = parse_color_setting('unknown=green;sql_field=blue')
assert res_1 == dict(PALETTES[NOCOLOR_PALETTE], SQL_FIELD={'fg': 'blue'})
assert parse_color_setting('unknown=') is None
assert parse_color_setting('unknown=green') is None
def test_bad_color():
res_1 = parse_color_setting('error=;sql_field=blue')
res_2 = parse_color_setting('error=unknown;sql_field=blue')
res_3 = parse_color_setting('error=green/unknown')
res_4 = parse_color_setting('error=green/blue/something')
res_5 = parse_color_setting('error=green/blue/something,blink')
assert res_1 == dict(PALETTES[NOCOLOR_PALETTE], SQL_FIELD={'fg': 'blue'})
assert res_2 == dict(PALETTES[NOCOLOR_PALETTE], SQL_FIELD={'fg': 'blue'})
assert res_3 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
assert res_4 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'bg': 'blue'})
assert res_5 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'bg': 'blue', 'opts': ('blink',)})
assert parse_color_setting('error=') is None
assert parse_color_setting('error=unknown') is None
def test_bad_option():
res_1 = parse_color_setting('error=green,unknown')
res_2 = parse_color_setting('error=green,unknown,blink')
assert res_1 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
assert res_2 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'opts': ('blink',)})
def test_role_case():
res_1 = parse_color_setting('ERROR=green')
res_2 = parse_color_setting('eRrOr=green')
assert res_1 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
assert res_2 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
def test_color_case():
res_1 = parse_color_setting('error=GREEN')
res_2 = parse_color_setting('error=GREEN/BLUE')
res_3 = parse_color_setting('error=gReEn')
res_4 = parse_color_setting('error=gReEn/bLuE')
assert res_1 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
assert res_2 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'bg': 'blue'})
assert res_3 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green'})
assert res_4 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'bg': 'blue'})
def test_opts_case():
res_1 = parse_color_setting('error=green,BLINK')
res_2 = parse_color_setting('error=green,bLiNk')
assert res_1 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'opts': ('blink',)})
assert res_2 == dict(PALETTES[NOCOLOR_PALETTE], ERROR={'fg': 'green', 'opts': ('blink',)})
def test_colorize_empty_text():
res_1 = colorize(text=None)
res_2 = colorize(text='')
res_3 = colorize(text=None, opts=('noreset', ))
res_4 = colorize(text='', opts=('noreset', ))
assert res_1 == '\x1b[m\x1b[0m'
assert res_2 == '\x1b[m\x1b[0m'
assert res_3 == '\x1b[m'
assert res_4 == '\x1b[m'
| 36.993865
| 117
| 0.689055
| 829
| 6,030
| 4.716526
| 0.074789
| 0.109974
| 0.186957
| 0.157545
| 0.832481
| 0.778261
| 0.702558
| 0.592839
| 0.520205
| 0.48798
| 0
| 0.010437
| 0.141957
| 6,030
| 162
| 118
| 37.222222
| 0.745265
| 0
| 0
| 0.152381
| 0
| 0
| 0.173798
| 0.047927
| 0
| 0
| 0
| 0
| 0.438095
| 1
| 0.2
| false
| 0
| 0.009524
| 0
| 0.209524
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7452f3144187c68fb2da27ba8d944e84c17c89dd
| 42
|
py
|
Python
|
shutDown.py
|
Dinuda/ShutDown
|
b276372794b326c311c881eb1264885f5eb05bc2
|
[
"MIT"
] | 3
|
2021-02-15T13:56:10.000Z
|
2021-03-29T16:19:54.000Z
|
shutDown.py
|
Dinuda/ShutDown
|
b276372794b326c311c881eb1264885f5eb05bc2
|
[
"MIT"
] | null | null | null |
shutDown.py
|
Dinuda/ShutDown
|
b276372794b326c311c881eb1264885f5eb05bc2
|
[
"MIT"
] | null | null | null |
import os
os.system("shutdown /s /t 1")
| 14
| 29
| 0.642857
| 8
| 42
| 3.375
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029412
| 0.190476
| 42
| 3
| 29
| 14
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0.390244
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
77be1133ac3b29f1d41f703b4d257c4fde7bced2
| 300
|
py
|
Python
|
code/utils/__init__.py
|
mrbarbasa/kaggle-spooky-author
|
a2ded542288efa0e85a25426722619ed2542d98b
|
[
"MIT"
] | 1
|
2018-10-09T04:57:03.000Z
|
2018-10-09T04:57:03.000Z
|
code/utils/__init__.py
|
mrbarbasa/kaggle-spooky-author
|
a2ded542288efa0e85a25426722619ed2542d98b
|
[
"MIT"
] | null | null | null |
code/utils/__init__.py
|
mrbarbasa/kaggle-spooky-author
|
a2ded542288efa0e85a25426722619ed2542d98b
|
[
"MIT"
] | null | null | null |
from .format_time_str import format_time_str
from .get_time_elapsed import get_time_elapsed
from .load_data import load_data
from .load_dictionary_from_file import load_dictionary_from_file
from .save_dictionary_to_file import save_dictionary_to_file
from .save_line_to_file import save_line_to_file
| 42.857143
| 64
| 0.9
| 52
| 300
| 4.653846
| 0.269231
| 0.099174
| 0.107438
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 300
| 6
| 65
| 50
| 0.876812
| 0
| 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
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
77e7008b7f69f43d016d1ac399b4066349fe58fb
| 126
|
py
|
Python
|
toad/nn/trainer/__init__.py
|
brianWeng0223/toad
|
edf2b956fb4237a647f039ea08618dc89c598e07
|
[
"MIT"
] | null | null | null |
toad/nn/trainer/__init__.py
|
brianWeng0223/toad
|
edf2b956fb4237a647f039ea08618dc89c598e07
|
[
"MIT"
] | null | null | null |
toad/nn/trainer/__init__.py
|
brianWeng0223/toad
|
edf2b956fb4237a647f039ea08618dc89c598e07
|
[
"MIT"
] | null | null | null |
from .history import History
from .callback import callback
from .earlystop import earlystopping
from .trainer import Trainer
| 25.2
| 36
| 0.84127
| 16
| 126
| 6.625
| 0.4375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126984
| 126
| 4
| 37
| 31.5
| 0.963636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7af7520ce6392b7775b565df63469ed448626de0
| 68
|
py
|
Python
|
python/testData/inspections/PyTypeCheckerInspection/PromotingBytearrayToStrAndUnicode.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2018-12-29T09:53:39.000Z
|
2018-12-29T09:53:42.000Z
|
python/testData/inspections/PyTypeCheckerInspection/PromotingBytearrayToStrAndUnicode.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/inspections/PyTypeCheckerInspection/PromotingBytearrayToStrAndUnicode.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
def f(bar):
# type: (str) -> str
return bar
f(bytearray())
| 11.333333
| 24
| 0.529412
| 10
| 68
| 3.6
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.279412
| 68
| 6
| 25
| 11.333333
| 0.734694
| 0.264706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 0.666667
| 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
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
bb21afada8d8f15f29da835e84c0ab1aab13a8c1
| 129
|
py
|
Python
|
src/utils/fft/ifft.py
|
BystrickyK/SINDy
|
f5b887d230079ffd60eacfe0221b47d1c288342e
|
[
"MIT"
] | 1
|
2021-04-12T18:22:54.000Z
|
2021-04-12T18:22:54.000Z
|
src/utils/fft/ifft.py
|
BystrickyK/SINDy
|
f5b887d230079ffd60eacfe0221b47d1c288342e
|
[
"MIT"
] | 9
|
2021-03-03T14:34:41.000Z
|
2021-05-13T14:03:08.000Z
|
src/utils/fft/ifft.py
|
BystrickyK/SINDy
|
f5b887d230079ffd60eacfe0221b47d1c288342e
|
[
"MIT"
] | null | null | null |
import numpy as np
def ifft(x_hat):
x_hat = np.fft.ifftshift(x_hat, axes=0)
x = np.fft.ifft(x_hat, axis=0)
return x
| 18.428571
| 43
| 0.643411
| 27
| 129
| 2.925926
| 0.518519
| 0.202532
| 0.202532
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02
| 0.224806
| 129
| 6
| 44
| 21.5
| 0.77
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.6
| 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
| 0
| 0
| 1
| 0
|
0
| 5
|
bb56847f495526be62702ea16d0c653b7419510a
| 147
|
py
|
Python
|
python/ql/test/3/library-tests/modules/general/main.py
|
vadi2/codeql
|
a806a4f08696d241ab295a286999251b56a6860c
|
[
"MIT"
] | 4,036
|
2020-04-29T00:09:57.000Z
|
2022-03-31T14:16:38.000Z
|
python/ql/test/3/library-tests/modules/general/main.py
|
vadi2/codeql
|
a806a4f08696d241ab295a286999251b56a6860c
|
[
"MIT"
] | 2,970
|
2020-04-28T17:24:18.000Z
|
2022-03-31T22:40:46.000Z
|
python/ql/test/3/library-tests/modules/general/main.py
|
ScriptBox99/github-codeql
|
2ecf0d3264db8fb4904b2056964da469372a235c
|
[
"MIT"
] | 794
|
2020-04-29T00:28:25.000Z
|
2022-03-30T08:21:46.000Z
|
import package
import helper
import package.assistant
#We expect that 'a' below will be 1 not a module.
from confused_elements import a
import sys
| 21
| 49
| 0.809524
| 25
| 147
| 4.72
| 0.72
| 0.220339
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008065
| 0.156463
| 147
| 7
| 50
| 21
| 0.943548
| 0.326531
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
|
0
| 5
|
24aa006d233c620b0597e9f7761d173920a6910a
| 4,439
|
py
|
Python
|
abitly/tests/link/test_bp.py
|
AlexisNava/ABitly-Services
|
5fd0edb4ea9ec64b058a616d64965674480023e3
|
[
"Apache-2.0"
] | null | null | null |
abitly/tests/link/test_bp.py
|
AlexisNava/ABitly-Services
|
5fd0edb4ea9ec64b058a616d64965674480023e3
|
[
"Apache-2.0"
] | null | null | null |
abitly/tests/link/test_bp.py
|
AlexisNava/ABitly-Services
|
5fd0edb4ea9ec64b058a616d64965674480023e3
|
[
"Apache-2.0"
] | null | null | null |
import pytest
from flask import json
# Flask App
from abitly import create_app
@pytest.fixture
def app():
app = create_app()
return app
def test_create_link_should_responds_created(client):
"""Should responds Created when makes a request with
a valid request body
"""
request_body = {
'originalUrl': 'https://discordapp.com/'
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = client.post('/link/', data=json.dumps(request_body),
headers=headers)
response_body = json.loads(response.get_data(as_text=True))
assert response.status_code == 201
assert response_body['statusCode'] == 201
assert response_body['status'] == 'Created'
assert len(response_body['generatedUrl']) == 7
assert response_body['originalUrl'] == 'https://discordapp.com/'
def test_create_link_should_responds_bad_request(client):
"""Should responds BadRequest when makes a request with
an invalid request body
"""
request_body = {
'originalUrl': 543543
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = client.post('/link/', data=json.dumps(request_body),
headers=headers)
response_body = json.loads(response.get_data(as_text=True))
expected_message = ('The browser (or proxy) sent a request that this '
'server could not understand.').format()
assert response.status_code == 400
assert response_body['status'] == 'Bad Request'
assert response_body['statusCode'] == 400
assert response_body['errorMessage'] == expected_message
def test_create_link_should_responds_method_not_allowed(client):
"""Should responds MethodNotAllowed when makes a request with
a different method of POST
"""
request_body = {
'originalUrl': 'https://discordapp.com/'
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = client.put('/link/', data=json.dumps(request_body),
headers=headers)
response_body = json.loads(response.get_data(as_text=True))
expected_message = 'The method is not allowed for the requested URL.'
assert response.status_code == 405
assert response_body['status'] == 'Method Not Allowed'
assert response_body['statusCode'] == 405
assert response_body['errorMessage'] == expected_message
def test_redirect_to_original_url_should_responds_bad_request(client):
"""Should responds BadRequest when the generated url don't have and
exactly length of 7 characters
"""
response = client.get('/link/4RjLzNFg')
response_body = json.loads(response.get_data(as_text=True))
expected_message = ('The browser (or proxy) sent a request that this '
'server could not understand.').format()
assert response.status_code == 400
assert response_body['status'] == 'Bad Request'
assert response_body['statusCode'] == 400
assert response_body['errorMessage'] == expected_message
def test_redirect_to_original_url_should_responds_not_found(client):
"""Should responds NotFound when not found the
generated_url in the links table
"""
response = client.get('/link/1234567')
response_body = json.loads(response.get_data(as_text=True))
expected_message = ('The requested URL was not found on the server. '
'If you entered the URL manually please check '
'your spelling and try again.').format()
assert response.status_code == 404
assert response_body['status'] == 'Not Found'
assert response_body['statusCode'] == 404
assert response_body['errorMessage'] == expected_message
def test_redirect_to_original_url_should_responds_method_not_allowed(client):
"""Should responds MethodNotAllowed when makes a request with
a different method of GET
"""
response = client.delete('/link/1234567')
response_body = json.loads(response.get_data(as_text=True))
expected_message = 'The method is not allowed for the requested URL.'
assert response.status_code == 405
assert response_body['status'] == 'Method Not Allowed'
assert response_body['statusCode'] == 405
assert response_body['errorMessage'] == expected_message
| 33.126866
| 77
| 0.678531
| 529
| 4,439
| 5.495274
| 0.215501
| 0.103199
| 0.111455
| 0.043344
| 0.772618
| 0.729962
| 0.702442
| 0.702442
| 0.702442
| 0.667355
| 0
| 0.016969
| 0.216715
| 4,439
| 133
| 78
| 33.37594
| 0.819097
| 0.113089
| 0
| 0.578313
| 0
| 0
| 0.241693
| 0
| 0
| 0
| 0
| 0
| 0.301205
| 1
| 0.084337
| false
| 0
| 0.036145
| 0
| 0.13253
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 5
|
24aef0b0ce3bfedb64766068a9e2f5bab3601df1
| 269
|
py
|
Python
|
pacote-download/ex014.py
|
LeticiaTr/Exerc-cios-em-Python
|
97f62ad36f958ce6f1386a55a7473adc85ddf415
|
[
"MIT"
] | null | null | null |
pacote-download/ex014.py
|
LeticiaTr/Exerc-cios-em-Python
|
97f62ad36f958ce6f1386a55a7473adc85ddf415
|
[
"MIT"
] | null | null | null |
pacote-download/ex014.py
|
LeticiaTr/Exerc-cios-em-Python
|
97f62ad36f958ce6f1386a55a7473adc85ddf415
|
[
"MIT"
] | null | null | null |
#Escreva um programa que converta uma temperatura digitando em graus Celsius e converta para graus Fahrenheit.
cels= float(input('Digite uma temperatura em Celsius '))
print (f'Sua temperatura em celsius é {cels} na conversão para Fahrenheit é { cels * 1.8 + 32 :.2f}')
| 89.666667
| 110
| 0.765799
| 42
| 269
| 4.904762
| 0.666667
| 0.135922
| 0.194175
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02193
| 0.152416
| 269
| 3
| 111
| 89.666667
| 0.881579
| 0.405204
| 0
| 0
| 0
| 0.5
| 0.775
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
24f1f9d1b64f0b626d3166a0d148c7ca057a8ead
| 135
|
py
|
Python
|
face_detection/__init__.py
|
Lanzarko/Real-Time-Face-Anonymizer
|
50f5c793e830b1e258eaa2284073630cd1d0aabe
|
[
"MIT"
] | 2
|
2020-09-26T22:50:45.000Z
|
2020-09-27T10:39:37.000Z
|
face_detection/__init__.py
|
Lanzarko/Real-Time-Face-Anonymizer
|
50f5c793e830b1e258eaa2284073630cd1d0aabe
|
[
"MIT"
] | null | null | null |
face_detection/__init__.py
|
Lanzarko/Real-Time-Face-Anonymizer
|
50f5c793e830b1e258eaa2284073630cd1d0aabe
|
[
"MIT"
] | 3
|
2020-10-17T19:36:27.000Z
|
2021-04-02T08:18:41.000Z
|
import warnings
from .detector import *
from .intel_inference import *
warnings.filterwarnings("ignore", category=DeprecationWarning)
| 22.5
| 62
| 0.822222
| 14
| 135
| 7.857143
| 0.714286
| 0.254545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096296
| 135
| 5
| 63
| 27
| 0.901639
| 0
| 0
| 0
| 0
| 0
| 0.044444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
|
0
| 5
|
7013aac3ccf1603011e8a016834553656f68212c
| 235
|
py
|
Python
|
cmt.py
|
developer0hye/CMT
|
bc9a0f1d6c6b9e2fe91772048d64025d3a8e5085
|
[
"MIT"
] | 1
|
2021-09-06T00:35:36.000Z
|
2021-09-06T00:35:36.000Z
|
cmt.py
|
developer0hye/CMT
|
bc9a0f1d6c6b9e2fe91772048d64025d3a8e5085
|
[
"MIT"
] | null | null | null |
cmt.py
|
developer0hye/CMT
|
bc9a0f1d6c6b9e2fe91772048d64025d3a8e5085
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
class CMT(nn.Module):
def __init__(self,
stem_channels: list):
super(CMT, self).__init__()
self.stem
def forward(self, x):
pass
| 18.076923
| 38
| 0.523404
| 28
| 235
| 4.071429
| 0.607143
| 0.192982
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.387234
| 235
| 13
| 39
| 18.076923
| 0.791667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0.111111
| 0.222222
| 0
| 0.555556
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
70246ff149a31798620e180bc869fc10ab2c2c1f
| 3,037
|
py
|
Python
|
data/transcoder_evaluation_gfg/python/COUNT_PAIRS_TWO_SORTED_ARRAYS_WHOSE_SUM_EQUAL_GIVEN_VALUE_X_2.py
|
mxl1n/CodeGen
|
e5101dd5c5e9c3720c70c80f78b18f13e118335a
|
[
"MIT"
] | 241
|
2021-07-20T08:35:20.000Z
|
2022-03-31T02:39:08.000Z
|
data/transcoder_evaluation_gfg/python/COUNT_PAIRS_TWO_SORTED_ARRAYS_WHOSE_SUM_EQUAL_GIVEN_VALUE_X_2.py
|
mxl1n/CodeGen
|
e5101dd5c5e9c3720c70c80f78b18f13e118335a
|
[
"MIT"
] | 49
|
2021-07-22T23:18:42.000Z
|
2022-03-24T09:15:26.000Z
|
data/transcoder_evaluation_gfg/python/COUNT_PAIRS_TWO_SORTED_ARRAYS_WHOSE_SUM_EQUAL_GIVEN_VALUE_X_2.py
|
mxl1n/CodeGen
|
e5101dd5c5e9c3720c70c80f78b18f13e118335a
|
[
"MIT"
] | 71
|
2021-07-21T05:17:52.000Z
|
2022-03-29T23:49:28.000Z
|
# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( arr1 , arr2 , m , n , x ) :
count , l , r = 0 , 0 , n - 1
while ( l < m and r >= 0 ) :
if ( ( arr1 [ l ] + arr2 [ r ] ) == x ) :
l += 1
r -= 1
count += 1
elif ( ( arr1 [ l ] + arr2 [ r ] ) < x ) :
l += 1
else :
r -= 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 7, 10, 14, 14, 17, 21, 32, 34, 37, 40, 40, 40, 46, 46, 50, 50, 51, 55, 57, 62, 65, 67, 67, 69, 70, 70, 72, 73, 76, 77, 77, 78, 84, 85, 85, 86, 87, 88, 88, 89, 89, 90, 93, 99],[2, 5, 8, 8, 10, 12, 13, 15, 17, 18, 20, 20, 21, 27, 28, 31, 34, 37, 40, 46, 48, 52, 53, 54, 54, 58, 59, 60, 66, 68, 68, 69, 70, 71, 72, 73, 77, 77, 80, 84, 84, 92, 92, 95, 97, 97],28,29,23,),
([-84, 52, -34, 96, 16, 92, -64, -74],[-22, 26, -12, -54, 66, 86, 38, 76],6,5,7,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],37,26,42,),
([60, 92, 42, 83, 55, 76, 29, 62],[71, 2, 74, 42, 80, 71, 26, 76],4,7,7,),
([-94, -94, -58, -40, -40, -26, -24, -22, -22, -22, -2, 0, 4, 8, 12, 16, 16, 18, 22, 32, 42, 44, 50, 58, 64, 78, 80, 90],[-86, -84, -78, -76, -72, -70, -62, -58, -54, -54, -50, -46, -44, -40, -30, -28, -16, -10, 10, 36, 36, 48, 70, 84, 84, 90, 94, 98],17,27,17,),
([0, 0, 1, 1, 1, 0, 0, 1, 1, 1],[1, 1, 1, 0, 1, 1, 0, 0, 0, 0],5,8,9,),
([1, 5, 7, 7, 7, 14, 15, 16, 17, 18, 18, 19, 20, 25, 27, 31, 36, 42, 47, 51, 56, 56, 56, 58, 58, 59, 63, 63, 63, 65, 66, 67, 76, 83, 93, 94, 97],[2, 3, 7, 8, 9, 10, 17, 18, 21, 28, 29, 29, 33, 35, 46, 47, 47, 49, 49, 49, 53, 56, 58, 59, 59, 60, 65, 67, 70, 78, 81, 85, 85, 87, 90, 92, 96],28,34,31,),
([78, -74, 52, 56, -8, 92, 14, 56, -72, -92, 32, -94, -26, -8, -66, 72, -24, 36, -84, -4, -68, 14, 78, 40, -82, -10, 16, 56, 6, -16, 30, 24, -32],[-74, 22, -14, -2, 36, 86, -70, -20, -76, -84, -40, -36, 42, 22, -60, -94, -18, 8, -14, -42, -68, 62, -60, 2, 40, -66, 68, 96, 70, 98, -38, -74, -92],16,30,24,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],25,33,33,),
([17, 50, 65, 4, 19, 10, 45, 70, 76, 81, 28, 97, 55, 70, 38, 2, 40, 67, 36, 33, 6, 85, 25],[78, 92, 65, 23, 7, 94, 18, 4, 2, 53, 31, 58, 98, 18, 46, 16, 17, 92, 80, 92, 43, 70, 50],16,22,22,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param)))
| 75.925
| 379
| 0.43892
| 691
| 3,037
| 1.904486
| 0.214182
| 0.148936
| 0.207447
| 0.258359
| 0.159574
| 0.155775
| 0.151216
| 0.130699
| 0.12462
| 0.12462
| 0
| 0.441
| 0.288443
| 3,037
| 40
| 380
| 75.925
| 0.167978
| 0.060915
| 0
| 0.133333
| 0
| 0
| 0.008436
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033333
| false
| 0
| 0
| 0
| 0.066667
| 0.033333
| 0
| 0
| 1
| null | 0
| 1
| 1
| 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
| 5
|
702a17c5d922751e111f50c283e5dd73bd0f05e2
| 335
|
py
|
Python
|
IT/Model/User.py
|
LionKingzlq/DjangoDemo
|
06ceede79986a76675321baa66c8bf30cdfff62b
|
[
"BSD-2-Clause"
] | null | null | null |
IT/Model/User.py
|
LionKingzlq/DjangoDemo
|
06ceede79986a76675321baa66c8bf30cdfff62b
|
[
"BSD-2-Clause"
] | null | null | null |
IT/Model/User.py
|
LionKingzlq/DjangoDemo
|
06ceede79986a76675321baa66c8bf30cdfff62b
|
[
"BSD-2-Clause"
] | null | null | null |
<<<<<<< HEAD
from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=30)
=======
from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=30)
>>>>>>> b6ed3cb0427fc3b30fe2f4b569908246cfec5690
last_name = models.CharField(max_length=30)
| 27.916667
| 49
| 0.734328
| 41
| 335
| 5.853659
| 0.414634
| 0.125
| 0.2375
| 0.275
| 0.8
| 0.8
| 0.675
| 0.675
| 0.675
| 0.675
| 0
| 0.10274
| 0.128358
| 335
| 12
| 50
| 27.916667
| 0.719178
| 0
| 0
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.2
| null | null | 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 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
| 5
|
70451f302a73ad31961fa26c06b2569898d2f01a
| 24
|
py
|
Python
|
tests/dbshell/fake_client.py
|
jpmallarino/django
|
659d2421c7adbbcd205604002d521d82d6b0b465
|
[
"BSD-3-Clause",
"0BSD"
] | 61,676
|
2015-01-01T00:05:13.000Z
|
2022-03-31T20:37:54.000Z
|
tests/dbshell/fake_client.py
|
jpmallarino/django
|
659d2421c7adbbcd205604002d521d82d6b0b465
|
[
"BSD-3-Clause",
"0BSD"
] | 8,884
|
2015-01-01T00:12:05.000Z
|
2022-03-31T19:53:11.000Z
|
tests/dbshell/fake_client.py
|
jpmallarino/django
|
659d2421c7adbbcd205604002d521d82d6b0b465
|
[
"BSD-3-Clause",
"0BSD"
] | 33,143
|
2015-01-01T02:04:52.000Z
|
2022-03-31T19:42:46.000Z
|
import sys
sys.exit(1)
| 6
| 11
| 0.708333
| 5
| 24
| 3.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.166667
| 24
| 3
| 12
| 8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
70452cacee3231986c156c0451cdad71cf0c3278
| 6,904
|
py
|
Python
|
src/settings.py
|
matheuslins/instacartcrawl
|
cfa715758857134ce3a2fcc0fdb3cc4bb1dde114
|
[
"MIT"
] | 3
|
2020-12-19T20:22:48.000Z
|
2022-01-31T03:15:59.000Z
|
src/settings.py
|
matheuslins/instacartcrawl
|
cfa715758857134ce3a2fcc0fdb3cc4bb1dde114
|
[
"MIT"
] | null | null | null |
src/settings.py
|
matheuslins/instacartcrawl
|
cfa715758857134ce3a2fcc0fdb3cc4bb1dde114
|
[
"MIT"
] | null | null | null |
from decouple import config
CAPTCHA = {
"2CAPTCHA_API_KEY": config("2CAPTCHA_API_KEY"),
"2CAPTCHA_URL": config("2CAPTCHA_URL")
}
SPIDERS_SETTINGS = {
"instacart": {
"START_URL": "http://instacart.com",
"LOGIN_URL": "https://www.instacart.com/v3/dynamic_data/authenticate/login?source=web&cache_key=undefined",
"STORES_URL": "https://www.instacart.com/v3/containers/next_gen/onboarding?source=web&cache_key=undefined",
"LINK_PATHS": "http://instacart.com/v3/containers/{}/ng/l/savings/all/_/modules".format,
"SPECIFIC_STORE": "https://www.instacart.com/store/{}/storefront".format,
"BASE_HEADERS": {
'authority': 'www.instacart.com',
'pragma': 'no-cache',
'cache-control': 'no-cache',
'x-client-identifier': 'web',
'x-csrf-token': 'undefined',
'x-requested-with': 'XMLHttpRequest',
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
'origin': 'https://www.instacart.com',
'sec-fetch-site': 'same-origin',
'sec-fetch-mode': 'cors',
'sec-fetch-dest': 'empty',
'referer': 'https://www.instacart.com/',
'accept-language': 'pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7',
'cookie': 'ftr_ncd=6; _gcl_au=1.1.622688012.1602194134; _fbp=fb.1.1602194134892.828217208; _pin_unauth=dWlkPU5EazNaRGRrTWpZdE5qSTBZUzAwWWprNUxUbGtOR1l0TkdWaVpXRTBOamcwTWpVMA; ab.storage.userId.6f8d91cb-99e4-4ad7-ae83-652c2a2c845d=%7B%22g%22%3A%22163399259%22%2C%22c%22%3A1602194535085%2C%22l%22%3A1602194535085%7D; ab.storage.deviceId.6f8d91cb-99e4-4ad7-ae83-652c2a2c845d=%7B%22g%22%3A%22d313a6bf-948c-f6c9-f71e-5561657d140d%22%2C%22c%22%3A1602194535092%2C%22l%22%3A1602194535092%7D; _instacart_logged_in=1; __stripe_mid=d2e0933c-7a0f-47b3-9a0d-e07593cb097064dab5; __ssid=196ce26e4325f73269820d5a011f86a; ab.storage.sessionId.6f8d91cb-99e4-4ad7-ae83-652c2a2c845d=%7B%22g%22%3A%223c83e8c0-ecba-e95d-ea25-98749cbabd34%22%2C%22e%22%3A1602291216135%2C%22c%22%3A1602289410633%2C%22l%22%3A1602289416135%7D; __stripe_sid=fa0c3d48-b5cb-4bc4-99b2-8b79d35dc13c5ed314; _dd_s=rum=0&expire=1602290681404; ajs_anonymous_id=%226981ebb4-80d3-4155-9ec8-80ce06f12b6d%22; build_sha=b025575d4c43f8c0c1625a09fc224efb53606687; ahoy_visitor=c9a84ac2-c77d-447c-a1c4-f5bf64ec215f; ahoy_visit=cb93c8a1-f8fc-4886-8103-8147de0cfda7; _instacart_session=T0ZjSTdDRkJZNGt1cGlNT1pqNmhsTWJkVURqbXBIMGVJU3VYa0h6OW9KcDhySjdPZU10MjFROTFESVMyMWgwdGdXeWdVS0dDOU9HcSs0eC9jMmI3WXQzek41MFl3ejFHUmo5cmdlUXVYckR4N0JGRUNMeFJrbkpkR3ZZTnVqdlZmV2dzTXBWaWtKa1VjTmllVUJVQ1BjUEhkTXpSRkM4YkZKS0dXbk9wcXF3eUM1SEQ3UStEZnFPTG1lVTVEVzRaNEdkbC9BRDcySys1dGtnN2d3OFhvbFI3d1N3VFNSN2xCL1B3cTlhRnZIWklWR1dwMnh3YkhkTzk1ZVFIcXBHMmtHcHMrN1d6VmlKeXhIaHFaU29od3NCdFV3c3JLUzlDMk90MlVKWUg1T3c1ZUNpc2gxYlovRnAzYTdaSXFBcXpTN0ZyMFUwYU1ENFBnaXhOa0tEcEJLRUlPck9pcmxSUVAycWYrVnNZbHhURy84dEFZcVUrc0tNRG9ncElWRlZtR29XR24zSXZ4L0ZoRjFVZEFrNktDbU9qdjJPRU9ROXBEZWNkR0twVVhKMD0tLTVLRzlURFJWQUs2SUsvRVd1UmF4NXc9PQ%3D%3D--146307313fc70d42a43cea1fb82d241d39531b33; forterToken=6fd80940ab474eb38b4cfaf7cbfe1e95_1602289785096__UDF43_9ck; _uetsid=fdfcfa7009b011ebb082b31e12410666; _uetvid=fe01d8a009b011eb96ee377d75844165; _derived_epik=dj0yJnU9eDEySi0wTVRiNFNmb3dfQXVyV1lDTGY1TUtwRW51RmUmbj1vZWRiaFhaci1PRXVnVzl2TEFya3l3Jm09MSZ0PUFBQUFBRi1CQUhzJnJtPTEmcnQ9QUFBQUFGLUJBSHM; signup_load_perf_date=1602289808990; ahoy_visitor=324b02b7-329a-4fcb-9ebb-22fec7dfd495; ahoy_track=true; build_sha=9a1e23818a224998940b1f832aeb0fba13a7e333; _instacart_session=Wit4a0pOL1JlK0dnUkVET3hOencvWUs3M2lzY2ZSL0N0NjF3bU45QjF2akJ5cklUZS94U1NCTnBYcVRZZHpZVENJRXZ6ZVB0Q2gxV1VMYWlIV2xyRlJCSVBCUmxQNVBaNmYwU2o3Wm1rWmZmcURWNjc4UkZaTitEQ3ExQzRiODVlcWxjSUx6OVlHQUl5Snp1UXp4dlFSL1g0eHFhYUkzMkJsQmJSN29WdElWaG5UWVMwYVVXa0tKTDdxMFU0U0VBV0tETHF5MGIwR2V0L1BvZzJ3UVZwcjVtY0s0bGJreUdLRnlJSXdaRzBNdGsvMEZmU0ROcFdRenhZQmVrVURTUVdTM3R1dC9vOXVtRjNQT2lEcDd4WlBXdHVKUk9zNzBNaFE1YlV1OFRMQUZNZTRVRE9ubGFMWUk4RWZEV3B4VmVDei9STS9qTXpUNUVrSjRPdlJIMVdnRzlWWHVKeHNLTEFXNTA2eTM1OE1VK0xobkt3SnNKLzdXR0piaHk1YitRdGZMdnlYcU1BU01TbVZUWGo1S2JXL093NlJUMmpSTEdnYk0rU1VHaE02OD0tLWhTbVhkTkxjNHpGa2hPWGcybWlOVUE9PQ%3D%3D--c29111ee46a7b5587ee1a6eb2bdc487aec70221c',
'Content-Type': 'application/json'
},
"STORE_COOKIE": 'ftr_ncd=6; _gcl_au=1.1.622688012.1602194134; _fbp=fb.1.1602194134892.828217208; _pin_unauth=dWlkPU5EazNaRGRrTWpZdE5qSTBZUzAwWWprNUxUbGtOR1l0TkdWaVpXRTBOamcwTWpVMA; ab.storage.userId.6f8d91cb-99e4-4ad7-ae83-652c2a2c845d=%7B%22g%22%3A%22163399259%22%2C%22c%22%3A1602194535085%2C%22l%22%3A1602194535085%7D; ab.storage.deviceId.6f8d91cb-99e4-4ad7-ae83-652c2a2c845d=%7B%22g%22%3A%22d313a6bf-948c-f6c9-f71e-5561657d140d%22%2C%22c%22%3A1602194535092%2C%22l%22%3A1602194535092%7D; _instacart_logged_in=1; __stripe_mid=d2e0933c-7a0f-47b3-9a0d-e07593cb097064dab5; __ssid=196ce26e4325f73269820d5a011f86a; build_sha=90b58763437ebed8f2d1c23c8be63db51d994dd5; _dd_s=rum=0&expire=1602366442158; ajs_anonymous_id=%2238536cb9-84c2-47c1-adbe-f5cbb2c5f425%22; ahoy_visitor=488abf00-5bb0-4005-9b77-365dc849fe98; ahoy_visit=082c4865-437d-4c82-a037-0a15f07acd62; forterToken=6fd80940ab474eb38b4cfaf7cbfe1e95_1602365551379__UDF43_9ck; _uetsid=fdfcfa7009b011ebb082b31e12410666; _uetvid=fe01d8a009b011eb96ee377d75844165; _derived_epik=dj0yJnU9NXRWdWNENzRucUJxeGxrNFYzUU5ReUpoaHV0TjRKZ0cmbj1QdW1FajJ0WEJtVDlnODZoTEh6Z1F3Jm09MSZ0PUFBQUFBRi1DS0hJJnJtPTEmcnQ9QUFBQUFGLUNLSEk; signup_load_perf_date=1602365791750; __Host-instacart_sid=cc7db71362b06cc2002507163d39289d08225544afef915fbf4d22a37ed0aeb0; _instacart_session=UGQ5ODRGZTBVWDlOdDJ1RkkzV3lIQTRseSsvemtEVmZIYnFldG5uVG1aK1dHUzhIWDh1LzBuUFdWK0huY2ZESnZOM1BYSXNCZmIvYTBIMFF2YmZqQWx2cFE5V1pUbThWalJmMHNObWxWVWRwKzBPN2J4K3ZYamF4RU91UnJhQkszMTJDbk96SnNuM29NS0YzNTY0WnAvcHpCc1g3TWlXSTZnN3Zld0xIQzFmVmFGOE5ETElVa3FvaFVDV1J6d3JlZ29oWEJ0QzBWZXY3SXZJbWo2NkovZmJTUzkzTnJYMVpWMkJJdmVMakdJRjZSaXhkbEw5T3BpWmMvVDJRRmt5dkliVXNEdm9WcDNwcm83ZnU4czh3K1UvcnYyZzFCYWdVaGF1THBldHhoZWxIV29HMDZPMXNnNldEQzdmZDFFUVViT0NDVzlQaUVEUEsyaE1zUFpHV3VpNTc3NksrUkZjTTNZbEZrZWxxOXk3RE5ZMmZROGFYL0dVZ2gwTkorek5SWlJwSHV2dVNoSU04K3grMUxUZU5zTUV0N1hnbEN3MW9wV2JnUUV5OFZWc2VPbFdNVGllSkNDWmwybnh5dWdFNkxPa3RwQ0luelorbFRTVTZZUWhOZkxVVyttd1VveHFlWWx0Q0E5SlVwTHc9LS1VdDlOcWgzc1oveVFVTWNnMHU2Y3lBPT0%3D--fdf853f8150b967242719323ae5f12e42b7b2512; ab.storage.sessionId.6f8d91cb-99e4-4ad7-ae83-652c2a2c845d=%7B%22g%22%3A%2293cafc50-ffc3-f681-7892-0a29d44fc8a6%22%2C%22e%22%3A1602367597106%2C%22c%22%3A1602365797107%2C%22l%22%3A1602365797107%7D',
"AUTH_USER": config("AUTH_USER"),
"AUTH_PASSWORD": config("AUTH_PASSWORD"),
"SAVE_DB_ITEM": config("SAVE_DB_ITEM", cast=bool, default=True),
"ES_INDEX": "instacart-products"
}
}
DB_SETTINGS = {
"ES": {
"HOST": config("DB_HOST", default="http://localhost:9200")
}
}
| 150.086957
| 2,930
| 0.839368
| 571
| 6,904
| 9.956217
| 0.476357
| 0.016887
| 0.015831
| 0.021108
| 0.252946
| 0.239226
| 0.230431
| 0.230431
| 0.19701
| 0.19701
| 0
| 0.253835
| 0.065324
| 6,904
| 45
| 2,931
| 153.422222
| 0.62715
| 0
| 0
| 0
| 0
| 0.170732
| 0.892961
| 0.735805
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.02439
| 0.02439
| 0
| 0.02439
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7051a25721f1b3c0108c42e4e6a9b15c83af70d4
| 56
|
py
|
Python
|
textattack/goal_functions/text/__init__.py
|
fighting41love/TextAttack
|
24e48f0022dc3a7bdcd5cbb3430f1c72cfcb522d
|
[
"MIT"
] | 2
|
2020-07-08T08:55:37.000Z
|
2020-09-03T00:57:38.000Z
|
textattack/goal_functions/text/__init__.py
|
SatoshiRobatoFujimoto/TextAttack
|
a809a9bddddff9f41750949e26edde26c8af6cfa
|
[
"MIT"
] | null | null | null |
textattack/goal_functions/text/__init__.py
|
SatoshiRobatoFujimoto/TextAttack
|
a809a9bddddff9f41750949e26edde26c8af6cfa
|
[
"MIT"
] | null | null | null |
from .non_overlapping_output import NonOverlappingOutput
| 56
| 56
| 0.928571
| 6
| 56
| 8.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053571
| 56
| 1
| 56
| 56
| 0.943396
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
705c9f9377f58874df215bc59198a58737356ae2
| 224
|
py
|
Python
|
sky/tools/webkitpy/tool/commands/__init__.py
|
domenic/mojo
|
53dda76fed90a47c35ed6e06baf833a0d44495b8
|
[
"BSD-3-Clause"
] | 5
|
2019-05-24T01:25:34.000Z
|
2020-04-06T05:07:01.000Z
|
sky/tools/webkitpy/tool/commands/__init__.py
|
domenic/mojo
|
53dda76fed90a47c35ed6e06baf833a0d44495b8
|
[
"BSD-3-Clause"
] | null | null | null |
sky/tools/webkitpy/tool/commands/__init__.py
|
domenic/mojo
|
53dda76fed90a47c35ed6e06baf833a0d44495b8
|
[
"BSD-3-Clause"
] | 5
|
2016-12-23T04:21:10.000Z
|
2020-06-18T13:52:33.000Z
|
# Required for Python to search this directory for module files
from webkitpy.tool.commands.prettydiff import PrettyDiff
from webkitpy.tool.commands.queries import *
from webkitpy.tool.commands.rebaseline import Rebaseline
| 37.333333
| 63
| 0.84375
| 30
| 224
| 6.3
| 0.566667
| 0.190476
| 0.253968
| 0.380952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 224
| 5
| 64
| 44.8
| 0.945
| 0.272321
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
7089bbc4b72df271ca39b8a72e8fa87a746a5c9c
| 106
|
py
|
Python
|
ltr/actors/__init__.py
|
Jee-King/ICCV2021_Event_Frame_Tracking
|
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
|
[
"MIT"
] | 15
|
2021-08-31T13:32:12.000Z
|
2022-03-24T01:55:41.000Z
|
ltr/actors/__init__.py
|
Jee-King/ICCV2021_Event_Frame_Tracking
|
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
|
[
"MIT"
] | 2
|
2022-01-13T12:53:29.000Z
|
2022-03-31T08:14:42.000Z
|
ltr/actors/__init__.py
|
Jee-King/ICCV2021_Event_Frame_Tracking
|
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
|
[
"MIT"
] | 2
|
2021-11-08T16:27:16.000Z
|
2021-12-08T14:24:27.000Z
|
from .base_actor import BaseActor
from .bbreg import AtomActor
from .tracking import DiMPActor, KYSActor
| 35.333333
| 41
| 0.830189
| 14
| 106
| 6.214286
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132075
| 106
| 3
| 41
| 35.333333
| 0.945652
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
56168a3ba01ce9ddc2760fc49e99b333d64bb2f7
| 112
|
py
|
Python
|
donut/modules/rooms/__init__.py
|
rlin0/donut
|
5672df8e853b4b775d7d50665128b255cd695ec2
|
[
"MIT"
] | null | null | null |
donut/modules/rooms/__init__.py
|
rlin0/donut
|
5672df8e853b4b775d7d50665128b255cd695ec2
|
[
"MIT"
] | null | null | null |
donut/modules/rooms/__init__.py
|
rlin0/donut
|
5672df8e853b4b775d7d50665128b255cd695ec2
|
[
"MIT"
] | null | null | null |
import flask
blueprint = flask.Blueprint('rooms', __name__, template_folder='templates')
from . import routes
| 18.666667
| 75
| 0.776786
| 13
| 112
| 6.307692
| 0.769231
| 0.341463
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116071
| 112
| 5
| 76
| 22.4
| 0.828283
| 0
| 0
| 0
| 0
| 0
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0.333333
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5628ab6491f2dba420ab9719e42283fb9becaf2d
| 198
|
py
|
Python
|
baseline_model/constants.py
|
rtoengi/transfer-learning-for-sign-language-recognition
|
e0627115e6b68d6b85244d484011bb3895ccf4ee
|
[
"MIT"
] | 1
|
2021-09-25T14:11:22.000Z
|
2021-09-25T14:11:22.000Z
|
baseline_model/constants.py
|
rtoengi/transfer-learning-for-sign-language-recognition
|
e0627115e6b68d6b85244d484011bb3895ccf4ee
|
[
"MIT"
] | null | null | null |
baseline_model/constants.py
|
rtoengi/transfer-learning-for-sign-language-recognition
|
e0627115e6b68d6b85244d484011bb3895ccf4ee
|
[
"MIT"
] | 4
|
2021-04-10T01:33:03.000Z
|
2021-11-11T06:58:59.000Z
|
# List of the training runs for the different target dataset sizes
TRAINING_RUNS = [
'large_dataset/20200616_090434',
'medium_dataset/20200616_214425',
'small_dataset/20200617_143139'
]
| 28.285714
| 66
| 0.767677
| 25
| 198
| 5.8
| 0.72
| 0.165517
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.251497
| 0.156566
| 198
| 6
| 67
| 33
| 0.616766
| 0.323232
| 0
| 0
| 0
| 0
| 0.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
562dacdbf0875631b4b9e28d5bdcbf46e4ddcfda
| 8,953
|
py
|
Python
|
sina_spider/spiders/weibo_ids.py
|
lokicui/sina-spider
|
89b72752d97d21c16003517ca9ca5544a523f6f3
|
[
"Apache-2.0"
] | null | null | null |
sina_spider/spiders/weibo_ids.py
|
lokicui/sina-spider
|
89b72752d97d21c16003517ca9ca5544a523f6f3
|
[
"Apache-2.0"
] | null | null | null |
sina_spider/spiders/weibo_ids.py
|
lokicui/sina-spider
|
89b72752d97d21c16003517ca9ca5544a523f6f3
|
[
"Apache-2.0"
] | null | null | null |
# encoding=utf-8
import urllib
from urlparse import urlparse, urljoin
""" 初始的待爬队列 """
weiboID = [
'1797054534', '2509414473', '2611478681', '5861859392', '2011086863', '5127716917', '1259110474', '5850775634', '1886437464',
'3187474530', '2191982701', '1940562032', '5874450550', '1337925752', '2081079420', '5664530558', '3493173952', '1202806915',
'1864507535', '2032640064', '5585682587', '3083673764', '5342109866', '5878685868', '5728706733', '2103050415', '5876752562',
'3138085045', '5775974583', '1879400644', '2417139911', '5836619975', '5353816265', '5219508427', '1766613205', '2480158031',
'5660754163', '2456764664', '3637354755', '1940087047', '5508473104', '1004454162', '2930327837', '1874608417', '5379621155',
'1720664360', '2714280233', '3769073964', '5624119596', '2754904375', '5710151998', '5331042630', '5748179271', '2146132305',
'2313896275', '3193618787', '5743059299', '1742930277', '5310538088', '1794474362', '2798510462', '3480076671', '5678653833',
'5743657357', '5460191980', '1734164880', '5876988653', '5678031258', '5860163996', '1496924574', '5878970110', '1679704482',
'1142210982', '3628925351', '1196397981', '1747485107', '5675893172', '5438521785', '2192269762', '1992614343', '5878686155',
'2407186895', '5559116241', '2528477652', '1295950295', '5038203354', '3659276765', '2126733792', '5878350307', '2761179623',
'5484511719', '5825708520', '1578230251', '5878686190', '5810946551', '3833070073', '1795047931', '5855789570', '3580125714',
'5709578773', '5236539926', '2907633071', '1709244961', '5405450788', '3251257895', '5054538290', '2713199161', '5698445883',
'1784537661', '3195290182', '1824506454', '5738766939', '5565915740', '5336031840', '5098775138', '5685568105', '1774289524',
'2932662914', '5433223957', '2680044311', '1111523983', '5067889432', '5878686362', '2844992161', '3878314663', '1766548141',
'5763269297', '5878383287', '5235499706', '5876375670', '5866447563', '5129945819', '1704116960', '1929380581', '1223762662',
'1193476843', '2899591923', '5162099453', '5072151301', '5385741066', '5411455765', '2685535005', '2297905950', '1216766752',
'5838668577', '5359133478', '3077460103', '5577802539', '5862392623', '1786700611', '1259258694', '1845191497', '1731838797',
'1740301135', '2816074584', '1217733467', '5345035105', '5050827618', '5486257001', '5767857005', '2050605943', '5733778298',
'1914725244', '5872583558', '5604377483', '1253491601', '5554922386', '3170223002', '5662737311', '3217179555', '1538163622',
'5304533928', '5644198830', '1896650227', '5298774966', '2795873213', '1834378177', '5769651141', '2656256971', '5876433869',
'1826792401', '3002246100', '3082519511', '5780366296', '5704696797', '5204108258', '2090615793', '1739746131', '1378010100',
'5741331445', '2376442895', '3638486041', '5781365789', '1827234850', '5703214121', '1855398955', '1227908142', '5703820334',
]
weiboID = [
'1722123442'
]
weiboID = [
'1722123442', #史悲
'2019071187', #罗小黑
'5403534267', #聊天斗图
'5272575915', #宋民国表情包精选
'3167305545', #每天一张萌宠动物图
'2095611192', #演技车祸现场最新毒舌点评
'5871645364', #沙梨熊写了新的历史八卦
'2146965345', #大咕咕咕鸡有新的严肃文学作品
'6178699382', #大力哥最新搞笑视频
'1764772175', #Dick_Ng漫画有更新
'3222817584', #ipanda熊猫萌图
'1771123430', #热门电影预告片
'3840084769', #微博博主骨朵网络影视个人主页
'3986147355', #新剧不能停
'5819881382', #赵丽颖日常动态提醒
'1870415713', #青春剧透社
'1642591402', #新浪娱乐
]
weibo_urls = [
'https://weibo.cn/1722123442', #史悲
'https://weibo.cn/2019071187', #罗小黑
'https://weibo.cn/5403534267', #聊天斗图
'https://weibo.cn/5272575915', #宋民国表情包精选
'https://weibo.cn/3167305545', #每天一张萌宠动物图
'https://weibo.cn/2095611192', #演技车祸现场最新毒舌点评
'https://weibo.cn/5871645364', #沙梨熊写了新的历史八卦
'https://weibo.cn/2146965345', #大咕咕咕鸡有新的严肃文学作品
'https://weibo.cn/6178699382', #大力哥最新搞笑视频
'https://weibo.cn/1764772175', #Dick_Ng漫画有更新
'https://weibo.cn/3222817584', #ipanda熊猫萌图
'https://weibo.cn/1771123430', #热门电影预告片
'https://weibo.cn/3840084769', #微博博主骨朵网络影视个人主页
'https://weibo.cn/3986147355', #新剧不能停
'https://weibo.cn/5819881382', #赵丽颖日常动态提醒
'https://weibo.cn/1870415713', #青春剧透社
'https://weibo.cn/1642591402', #新浪娱乐
'https://weibo.cn/chenzhentongxue', #陈震
'https://weibo.cn/1886672467', #看看人家怎么玩手办的
'https://weibo.cn/3178541805', #动漫绘制技巧
'https://weibo.cn/1671194705', #我和女儿的日常漫画
'https://weibo.cn/5466517185', #赵石的声音
'https://weibo.cn/2286017507', #鳄鱼日记最新
'https://weibo.cn/1769684987', #午夜回响
'https://weibo.cn/1811865445', #韩语歌学习机
'https://weibo.cn/3878404025', #华晨宇最新资讯
'https://weibo.cn/2792589472', #油管红人热门翻唱视频
'https://weibo.cn/2212758830', #1022女生有最新翻唱作品
'https://weibo.cn/5261682202', #海外大牌音乐节
'https://weibo.cn/6042105142', #百听不厌的音乐现场
'https://weibo.cn/5500491427', #新出了优秀的独立游戏
'https://weibo.cn/6137455005', #steam游戏支持中文了
'https://weibo.cn/5844573935', #网红零食安利
'https://weibo.cn/5882998192', #pony小姐姐视频更新
'https://weibo.cn/2842442467', #热门彩妆试色
'https://weibo.cn/5883682290', #匹肤有新的护肤品评测视频
'https://weibo.cn/1249685117', #女生穿搭looklook
'https://weibo.cn/2676774873', #土产研究所
'https://weibo.cn/1741514817', #星巴克优惠活动和新品推荐
'https://weibo.cn/1785749160', #宜家家居优惠提醒
'https://weibo.cn/6004281123', #梨视频
'https://weibo.cn/1640601392', #资讯短视频精选推荐
'https://weibo.cn/1768008414', #值得一看的短视频推荐
'https://weibo.cn/1915556097', #网红猫咖喱最新萌图
'https://weibo.cn/3901429666', #谷阿莫说故事有新作品
'https://weibo.cn/5759186675', #网红大揭秘
'https://weibo.cn/3217179555', #回忆专用小马甲更博提醒
'https://weibo.cn/2044145800', #奇葩二货的日常
'https://weibo.cn/5676304901', #体育新闻媒体b/rins精选
'https://weibo.cn/6040514775', #2020奥运会最新消息
'https://weibo.cn/linewebtoon', #每日漫画
'https://weibo.cn/pixivchan', #Pixiv每日排行
'https://weibo.cn/ryuetsuya', #有趣的二次元日推
'https://weibo.cn/275500255', #又有新的民乐改编
'https://weibo.cn/richboxx', #音乐车祸现场
'https://weibo.cn/oemk', #音乐不严肃
'https://weibo.cn/234530265', #腹黑音乐冷知识
'https://weibo.cn/bigbangfanscom', #Bigbang最新资讯
'https://weibo.cn/517656716', #游戏玩家的日常
'https://weibo.cn/a9vg', #任天堂又出新游戏了
'https://weibo.cn/foodvideo', #美食台每日视频
'https://weibo.cn/findjapan', #霓虹国美食精选
'https://weibo.cn/yitcom', #一条有新视频
'https://weibo.cn/277114280', #微博化妆品种草
'https://weibo.cn/qilixiang', #李想点评汽车提醒
'https://weibo.cn/watsonschina', #屈臣氏优惠提醒
'https://weibo.cn/watsonschina', #图书网购折扣优惠
'https://weibo.cn/uniqlo', #优衣库和GU新品上架
'https://weibo.cn/mujish', #muji最新优惠与新品推荐
'https://weibo.cn/foodvideo', #美食台每日视频
'https://weibo.cn/wangzheDMW', #王者不修图
'https://weibo.cn/2634154091', #虫虫的微博更新
'https://weibo.cn/sodasoccer', #这些梗只有足球狗懂
'https://weibo.cn/cctv5', #CCTV5精选
'https://weibo.cn/entpaparazzi', #娱乐圈抄袭风波速报
'https://weibo.cn/Jerrychen0622', #八卦星文
'https://weibo.cn/xltv', #明星撕逼速报
'https://weibo.cn/starjiepai', #女明星走光提醒
'https://weibo.cn/sogaynews', #全球同志新闻
'https://weibo.cn/finance', #财经资讯
'https://weibo.cn/yicairibao', #第一财经
'https://weibo.cn/qilixiang', #李想点评汽车提醒
]
def get_user_urls():
'''
1 统一为转https://weibo.cn/videosohu 这种格式
'''
host = 'https://weibo.cn/'
R = []
for url in weibo_urls:
result = urlparse(url)
new_url = urljoin(host, result.path.replace('u/', ''))
R.append(new_url)
return R
def get_topic_urls():
topics = [
u'我的观影故事',
u'图解电影午夜场',
u'知乎钓鱼贴图',
u'十万个小肉段',
u'最萌宠物',
u'北京猫咪领养',
u'家有柴犬',
u'晚安物语',
u'薛之谦粉丝今天碰瓷了吗',
u'今天大张伟的粉丝道歉了吗',
u'评论音轨',
u'花絮集中营',
u'童年阴影又来了',
]
topic_urls = []
for topic in topics:
url = 'https://m.weibo.cn/k/%s?from=feed' % urllib.quote(topic.encode('utf8'))
topic_urls.append(url)
_topic_urls = [
'https://m.weibo.cn/k/%E6%88%91%E7%9A%84%E8%A7%82%E5%BD%B1%E6%95%85%E4%BA%8B?from=feed', #我的观影故事
'https://m.weibo.cn/k/%E5%9B%BE%E8%A7%A3%E7%94%B5%E5%BD%B1%E5%8D%88%E5%A4%9C%E5%9C%BA?from=feed', #图解电影午夜场
'https://m.weibo.cn/k/%E7%9F%A5%E4%B9%8E%E9%92%93%E9%B1%BC%E8%B4%B4%E5%9B%BE%E7%89%87%E7%89%88?from=feed', #知乎钓鱼贴图
'https://m.weibo.cn/k/%E5%8D%81%E4%B8%87%E4%B8%AA%E5%B0%8F%E8%82%89%E6%AE%B5?from=feed',#十万个小肉段
]
return topic_urls
if __name__ == '__main__':
for u in get_topic_urls():
print u
| 48.923497
| 129
| 0.617
| 883
| 8,953
| 6.227633
| 0.519819
| 0.113293
| 0.181124
| 0.01182
| 0.038552
| 0.020367
| 0.014548
| 0.014548
| 0
| 0
| 0
| 0.388743
| 0.194348
| 8,953
| 182
| 130
| 49.192308
| 0.373631
| 0.091813
| 0
| 0.052941
| 0
| 0.023529
| 0.610106
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.011765
| null | null | 0.005882
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5653b81f79a6a91a1dbe61fae71b29a0c0c15120
| 142
|
py
|
Python
|
krogon_gocd/hash.py
|
enamrik/krogon-gocd
|
fa4d836691f8fb4882c3385ec1fd41c2cb9a98f2
|
[
"MIT"
] | null | null | null |
krogon_gocd/hash.py
|
enamrik/krogon-gocd
|
fa4d836691f8fb4882c3385ec1fd41c2cb9a98f2
|
[
"MIT"
] | null | null | null |
krogon_gocd/hash.py
|
enamrik/krogon-gocd
|
fa4d836691f8fb4882c3385ec1fd41c2cb9a98f2
|
[
"MIT"
] | null | null | null |
import bcrypt
def hash_text(plaintext: str) -> str:
return bcrypt.hashpw(plaintext.encode('utf-8'), bcrypt.gensalt(10)).decode('utf-8')
| 23.666667
| 87
| 0.711268
| 21
| 142
| 4.761905
| 0.714286
| 0.08
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.031746
| 0.112676
| 142
| 5
| 88
| 28.4
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0.070423
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 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
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 5
|
56946248a8d53bc23992cfb5128bfd8d7aded770
| 2,814
|
py
|
Python
|
gears/usables.py
|
fmunoz-geo/gearhead-caramel
|
315835481d543420826439245be01460fe6dd81b
|
[
"Apache-2.0"
] | 2
|
2020-05-30T07:52:27.000Z
|
2021-02-18T10:55:30.000Z
|
gears/usables.py
|
fmunoz-geo/gearhead-caramel
|
315835481d543420826439245be01460fe6dd81b
|
[
"Apache-2.0"
] | 56
|
2020-05-30T09:03:48.000Z
|
2022-03-31T12:06:49.000Z
|
gears/usables.py
|
CartoonFan/gearhead-caramel
|
61995f382923695176ab7a65253f42e849e0c4d7
|
[
"Apache-2.0"
] | null | null | null |
from pbge import Singleton
from . import geffects, stats, materials, aitargeters, enchantments
import pbge
class AntidotePill(Singleton):
VALUE = 800
@classmethod
def get_invocations(cls, pc):
mylist = list()
mylist.append(pbge.effects.Invocation(
name = 'Antidote',
fx=geffects.DispelEnchantments(
dispel_this=enchantments.USE_ANTIDOTE,
anim = geffects.MedicineAnim,
),
area=pbge.scenes.targetarea.SelfOnly(),
used_in_combat = True, used_in_exploration=True,
ai_tar = aitargeters.GenericTargeter(impulse_score=50,conditions=[aitargeters.TargetIsAlly(),aitargeters.TargetIsOperational(),aitargeters.TargetHasEnchantment(geffects.Poisoned)],targetable_types=pbge.scenes.PlaceableThing),
shot_anim=None,
data=geffects.AttackData(pbge.image.Image('sys_skillicons.png',32,32),15),
price=[],
targets=1
))
return mylist
class QuickFixPill(Singleton):
VALUE = 1000
@classmethod
def get_invocations(cls, pc):
mylist = list()
mylist.append(pbge.effects.Invocation(
name = 'Quick Fix',
fx=geffects.DoHealing(
3,6,repair_type=materials.RT_MEDICINE,
anim = geffects.MedicineAnim,
),
area=pbge.scenes.targetarea.SelfOnly(),
used_in_combat = True, used_in_exploration=True,
ai_tar = aitargeters.GenericTargeter(impulse_score=10,conditions=[aitargeters.TargetIsAlly(),aitargeters.TargetIsOperational(),aitargeters.TargetIsDamaged(materials.RT_MEDICINE)],targetable_types=pbge.scenes.PlaceableThing),
shot_anim=None,
data=geffects.AttackData(pbge.image.Image('sys_skillicons.png',32,32),0),
price=[],
targets=1
))
return mylist
class DuctTape(Singleton):
VALUE = 75
@classmethod
def get_invocations(cls, pc):
mylist = list()
mylist.append(pbge.effects.Invocation(
name = 'Duct Tape',
fx=geffects.DoHealing(
3,6,repair_type=materials.RT_REPAIR,
anim = geffects.RepairAnim,
),
area=pbge.scenes.targetarea.SingleTarget(reach=1),
used_in_combat = True, used_in_exploration=True,
ai_tar = aitargeters.GenericTargeter(impulse_score=10,conditions=[aitargeters.TargetIsAlly(),aitargeters.TargetIsOperational(),aitargeters.TargetIsDamaged(materials.RT_REPAIR)],targetable_types=pbge.scenes.PlaceableThing),
shot_anim=None,
data=geffects.AttackData(pbge.image.Image('sys_skillicons.png',32,32),0),
price=[],
targets=1
))
return mylist
| 40.782609
| 237
| 0.637171
| 278
| 2,814
| 6.31295
| 0.327338
| 0.034188
| 0.02906
| 0.047863
| 0.776068
| 0.776068
| 0.71396
| 0.71396
| 0.71396
| 0.666097
| 0
| 0.018732
| 0.260128
| 2,814
| 68
| 238
| 41.382353
| 0.824207
| 0
| 0
| 0.650794
| 0
| 0
| 0.028429
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.047619
| false
| 0
| 0.047619
| 0
| 0.238095
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 5
|
3b628b55e83a5d18872091cffecbc52c87f05478
| 151
|
py
|
Python
|
py/redrock/__init__.py
|
michaelJwilson/redrock
|
477c3d231514b1926dca493f8ab121aa194917bb
|
[
"BSD-3-Clause"
] | 14
|
2017-09-22T23:57:33.000Z
|
2022-03-15T10:36:16.000Z
|
py/redrock/__init__.py
|
michaelJwilson/redrock
|
477c3d231514b1926dca493f8ab121aa194917bb
|
[
"BSD-3-Clause"
] | 154
|
2017-06-04T22:57:39.000Z
|
2022-03-11T23:01:16.000Z
|
py/redrock/__init__.py
|
michaelJwilson/redrock
|
477c3d231514b1926dca493f8ab121aa194917bb
|
[
"BSD-3-Clause"
] | 10
|
2017-06-09T15:24:59.000Z
|
2021-05-26T13:16:42.000Z
|
"""
redrock
=======
Redrock redshift fitter.
"""
from __future__ import absolute_import, division, print_function
from ._version import __version__
| 13.727273
| 64
| 0.754967
| 16
| 151
| 6.4375
| 0.6875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13245
| 151
| 10
| 65
| 15.1
| 0.78626
| 0.271523
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.5
| 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
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 5
|
3b682c1a3883eea1f0aa3c9f702185a33f071bee
| 28
|
py
|
Python
|
python/simplify.py
|
TechieHelper/Codewars
|
98ea8deb14ae1422162895f481e4175ab5868955
|
[
"MIT"
] | null | null | null |
python/simplify.py
|
TechieHelper/Codewars
|
98ea8deb14ae1422162895f481e4175ab5868955
|
[
"MIT"
] | null | null | null |
python/simplify.py
|
TechieHelper/Codewars
|
98ea8deb14ae1422162895f481e4175ab5868955
|
[
"MIT"
] | null | null | null |
def simplify(poly):
pass
| 14
| 19
| 0.678571
| 4
| 28
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214286
| 28
| 2
| 20
| 14
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
8e99999de5094fce0ec82d779540a74213bbb477
| 985
|
py
|
Python
|
python/test/datetime/test_sec2str.py
|
takashiharano/util
|
0f730475386a77415545de3f9763e5bdeaab0e94
|
[
"MIT"
] | null | null | null |
python/test/datetime/test_sec2str.py
|
takashiharano/util
|
0f730475386a77415545de3f9763e5bdeaab0e94
|
[
"MIT"
] | null | null | null |
python/test/datetime/test_sec2str.py
|
takashiharano/util
|
0f730475386a77415545de3f9763e5bdeaab0e94
|
[
"MIT"
] | null | null | null |
#!python
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
import util
def main():
print(util.sec2str(0))
print(util.sec2str(0.000001))
print(util.sec2str(0.00001))
print(util.sec2str(0.1))
print(util.sec2str(0.123456))
print(util.sec2str(0.1234567))
print(util.sec2str(1))
print(util.sec2str(1.1))
print(util.sec2str(60))
print(util.sec2str(61))
print(util.sec2str(61.123))
print(util.sec2str(3600))
print(util.sec2str(3601))
print(util.sec2str(3660))
print(util.sec2str(3661))
print(util.sec2str(86400))
print(util.sec2str(86400, h=True))
print(util.sec2str(171959.123456))
print('--- f=True ---')
print(util.sec2str(0, f=True))
print(util.sec2str(0.000001, f=True))
print(util.sec2str(0.00001, f=True))
print(util.sec2str(0.1, f=True))
print(util.sec2str(0.123456, f=True))
print(util.sec2str(0.1234567, f=True))
print(util.sec2str(1, f=True))
print(util.sec2str(1.1, f=True))
main()
| 23.452381
| 65
| 0.684264
| 159
| 985
| 4.213836
| 0.201258
| 0.349254
| 0.620896
| 0.304478
| 0.492537
| 0.264179
| 0
| 0
| 0
| 0
| 0
| 0.161327
| 0.11269
| 985
| 41
| 66
| 24.02439
| 0.605263
| 0.007107
| 0
| 0
| 0
| 0
| 0.019447
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030303
| true
| 0
| 0.090909
| 0
| 0.121212
| 0.818182
| 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
| 0
| 0
| 0
| 1
|
0
| 5
|
8eb7d1f96a999d00b78e6d413d5f7e9bee3008ad
| 111
|
py
|
Python
|
modules/web_caller.py
|
tkh/test-examples
|
39c6fd0f35b6cc1a36a4d1dc8ba1a32ea4c1552c
|
[
"MIT"
] | 2
|
2016-12-28T09:15:47.000Z
|
2016-12-30T19:04:03.000Z
|
modules/web_caller.py
|
tkh/test-examples
|
39c6fd0f35b6cc1a36a4d1dc8ba1a32ea4c1552c
|
[
"MIT"
] | null | null | null |
modules/web_caller.py
|
tkh/test-examples
|
39c6fd0f35b6cc1a36a4d1dc8ba1a32ea4c1552c
|
[
"MIT"
] | 1
|
2018-04-28T17:54:59.000Z
|
2018-04-28T17:54:59.000Z
|
import requests
GOOGLE_URL = 'http://www.google.com'
def get_google():
return requests.get(GOOGLE_URL)
| 12.333333
| 36
| 0.720721
| 16
| 111
| 4.8125
| 0.625
| 0.233766
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153153
| 111
| 8
| 37
| 13.875
| 0.819149
| 0
| 0
| 0
| 0
| 0
| 0.189189
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
8ee89bfd4d09cb02af15a2624e9295bef8510e5b
| 450
|
py
|
Python
|
pyti/double_exponential_moving_average.py
|
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
|
08532970f9d2b163f1223599e3ac80f6c51533e4
|
[
"MIT"
] | 635
|
2017-04-04T20:24:47.000Z
|
2022-03-28T16:00:23.000Z
|
pyti/double_exponential_moving_average.py
|
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
|
08532970f9d2b163f1223599e3ac80f6c51533e4
|
[
"MIT"
] | 24
|
2017-10-22T15:01:54.000Z
|
2021-01-30T19:51:00.000Z
|
pyti/double_exponential_moving_average.py
|
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
|
08532970f9d2b163f1223599e3ac80f6c51533e4
|
[
"MIT"
] | 183
|
2017-07-01T16:06:39.000Z
|
2022-03-07T23:29:11.000Z
|
from __future__ import absolute_import
from pyti import catch_errors
from pyti.exponential_moving_average import (
exponential_moving_average as ema
)
def double_exponential_moving_average(data, period):
"""
Double Exponential Moving Average.
Formula:
DEMA = 2*EMA - EMA(EMA)
"""
catch_errors.check_for_period_error(data, period)
dema = (2 * ema(data, period)) - ema(ema(data, period), period)
return dema
| 23.684211
| 67
| 0.717778
| 58
| 450
| 5.275862
| 0.396552
| 0.222222
| 0.313725
| 0.196078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00554
| 0.197778
| 450
| 18
| 68
| 25
| 0.842105
| 0.151111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.333333
| 0
| 0.555556
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
8eebb2f6aba7ad2ba508894d490ad75a068ada61
| 236
|
py
|
Python
|
9_functions/9_keywordArguments.py
|
qaidjohar/PythonCourse
|
6c638f8a1e1172eb12459c0fd6dc20e0590825b8
|
[
"MIT"
] | null | null | null |
9_functions/9_keywordArguments.py
|
qaidjohar/PythonCourse
|
6c638f8a1e1172eb12459c0fd6dc20e0590825b8
|
[
"MIT"
] | null | null | null |
9_functions/9_keywordArguments.py
|
qaidjohar/PythonCourse
|
6c638f8a1e1172eb12459c0fd6dc20e0590825b8
|
[
"MIT"
] | null | null | null |
def fullName(first_name, last_name):
return f'Your first name is {first_name} and last name is {last_name}'
print(fullName(first_name = 'Qaidjohar', last_name = 'Jawadwala'))
# name = fullName('Qaidjohar','Jawadwala')
# print(name)
| 39.333333
| 74
| 0.733051
| 34
| 236
| 4.911765
| 0.382353
| 0.215569
| 0.203593
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127119
| 236
| 6
| 75
| 39.333333
| 0.81068
| 0.220339
| 0
| 0
| 0
| 0
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 0.666667
| 0.333333
| 0
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
d6fe685c35fbd2079ff748e00e571d8b9223f3ba
| 19
|
py
|
Python
|
guandu.py
|
shazihao/nextdoo
|
abd866696c14408e88d87ce06dbc5c7b7c6399ac
|
[
"Apache-2.0"
] | null | null | null |
guandu.py
|
shazihao/nextdoo
|
abd866696c14408e88d87ce06dbc5c7b7c6399ac
|
[
"Apache-2.0"
] | null | null | null |
guandu.py
|
shazihao/nextdoo
|
abd866696c14408e88d87ce06dbc5c7b7c6399ac
|
[
"Apache-2.0"
] | null | null | null |
print('thats good')
| 19
| 19
| 0.736842
| 3
| 19
| 4.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 19
| 1
| 19
| 19
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
d91517f663cad101cba44c03bed12083eb97f6fa
| 98
|
py
|
Python
|
forge/elements/augmentors/__init__.py
|
AndresMWeber/Forge
|
90b2958a2a40d37b52232091bea9c3ddbd88566b
|
[
"MIT"
] | 1
|
2021-08-17T02:36:06.000Z
|
2021-08-17T02:36:06.000Z
|
forge/elements/augmentors/__init__.py
|
AndresMWeber/Forge
|
90b2958a2a40d37b52232091bea9c3ddbd88566b
|
[
"MIT"
] | 1
|
2017-06-12T04:32:54.000Z
|
2017-06-12T04:32:54.000Z
|
forge/elements/augmentors/__init__.py
|
AndresMWeber/Forge
|
90b2958a2a40d37b52232091bea9c3ddbd88566b
|
[
"MIT"
] | 1
|
2017-06-12T05:47:21.000Z
|
2017-06-12T05:47:21.000Z
|
import stretch
import ik
import twist_interpolators
__all__ = ['stretch', 'twist_interpolators']
| 16.333333
| 44
| 0.806122
| 11
| 98
| 6.636364
| 0.545455
| 0.493151
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112245
| 98
| 5
| 45
| 19.6
| 0.83908
| 0
| 0
| 0
| 0
| 0
| 0.265306
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d9533496a7718507a668b5190fc89452cbb73d39
| 229
|
py
|
Python
|
launchpad/explorer.py
|
mikbukow/launchpad
|
ab599a36c0d4dc5deac9fcafc3b1eae13559d18b
|
[
"MIT"
] | 2
|
2018-09-21T20:13:54.000Z
|
2018-09-24T23:13:15.000Z
|
launchpad/explorer.py
|
codingandcommunity/curriculumAPI
|
92ca773155e2b39acd6f32b6a33d94f083c96b72
|
[
"MIT"
] | null | null | null |
launchpad/explorer.py
|
codingandcommunity/curriculumAPI
|
92ca773155e2b39acd6f32b6a33d94f083c96b72
|
[
"MIT"
] | 2
|
2018-10-23T21:05:18.000Z
|
2018-10-23T21:06:30.000Z
|
from flask import Blueprint
explorer = Blueprint('explorer', __name__, template_folder='templates')
@explorer.route('/')
def index():
return 'Explorer index'
@explorer.route('/test')
def test():
return 'Explorer test'
| 19.083333
| 71
| 0.71179
| 26
| 229
| 6.076923
| 0.538462
| 0.21519
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139738
| 229
| 11
| 72
| 20.818182
| 0.80203
| 0
| 0
| 0
| 0
| 0
| 0.218341
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.25
| 0.625
| 0.25
| 1
| 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
| 1
| 1
| 0
|
0
| 5
|
795fd3fe6d7d7b004dd81e70f06dba806a77ae6d
| 200
|
py
|
Python
|
examples/example_modules/module_2.py
|
vladcalin/pymicroservice
|
325a49d17621b9d45ffd2b5eca6f0de284de8ba4
|
[
"MIT"
] | 2
|
2016-12-17T13:09:14.000Z
|
2016-12-31T18:38:57.000Z
|
examples/example_modules/module_2.py
|
vladcalin/pymicroservice
|
325a49d17621b9d45ffd2b5eca6f0de284de8ba4
|
[
"MIT"
] | 15
|
2016-11-27T13:28:25.000Z
|
2017-01-10T09:09:30.000Z
|
examples/example_modules/module_2.py
|
vladcalin/pymicroservice
|
325a49d17621b9d45ffd2b5eca6f0de284de8ba4
|
[
"MIT"
] | null | null | null |
from gemstone.core.modules import Module
import gemstone
class SecondModule(Module):
@gemstone.exposed_method("module2.say_hello")
def say_hello(self):
return "Hello from module 2!"
| 22.222222
| 49
| 0.74
| 26
| 200
| 5.576923
| 0.653846
| 0.110345
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012048
| 0.17
| 200
| 8
| 50
| 25
| 0.861446
| 0
| 0
| 0
| 0
| 0
| 0.185
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0.166667
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
8dc046a4a743c959cf89d63fdbe7ae777ee22bc9
| 360
|
py
|
Python
|
tests/core_test.py
|
soft-r-evolution/lib.s_utils
|
3559faaf1af0ccd62b762024b12548213c552e06
|
[
"MIT"
] | 1
|
2020-04-10T22:36:56.000Z
|
2020-04-10T22:36:56.000Z
|
tests/core_test.py
|
soft-r-evolution/lib.s_utils
|
3559faaf1af0ccd62b762024b12548213c552e06
|
[
"MIT"
] | 4
|
2020-04-10T22:02:15.000Z
|
2020-04-11T23:38:02.000Z
|
tests/core_test.py
|
soft-r-evolution/lib.s_utils
|
3559faaf1af0ccd62b762024b12548213c552e06
|
[
"MIT"
] | 1
|
2020-04-10T22:37:18.000Z
|
2020-04-10T22:37:18.000Z
|
from s_utils.dict import get_key
def test_no_log():
assert not get_key(None, None, no_log=1)
assert not get_key(None, None, no_log=True)
# should test log is empty
def test_log():
assert not get_key(None, None)
assert not get_key(None, None, no_log=0)
assert not get_key(None, None, no_log=False)
# should test log is not empty
| 24
| 48
| 0.697222
| 67
| 360
| 3.537313
| 0.313433
| 0.151899
| 0.253165
| 0.316456
| 0.594937
| 0.594937
| 0.594937
| 0.472574
| 0
| 0
| 0
| 0.007067
| 0.213889
| 360
| 14
| 49
| 25.714286
| 0.830389
| 0.147222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.625
| 1
| 0.25
| true
| 0
| 0.125
| 0
| 0.375
| 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
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8dfb3fbfc843c3be1d818addbf1984396e1ec8a7
| 211
|
py
|
Python
|
module4-software-testing-documentation-and-licensing/yeetroot.py
|
rselent/DS-Unit-3-Sprint-1-Software-Engineering
|
c11433214a91cde68a328c61c4b6d73ac7671dc0
|
[
"MIT"
] | null | null | null |
module4-software-testing-documentation-and-licensing/yeetroot.py
|
rselent/DS-Unit-3-Sprint-1-Software-Engineering
|
c11433214a91cde68a328c61c4b6d73ac7671dc0
|
[
"MIT"
] | null | null | null |
module4-software-testing-documentation-and-licensing/yeetroot.py
|
rselent/DS-Unit-3-Sprint-1-Software-Engineering
|
c11433214a91cde68a328c61c4b6d73ac7671dc0
|
[
"MIT"
] | null | null | null |
"""
Simple yeetroot example
"""
def yeetRoot():
num = int( input( "which number would you like the square root of? "))
# return print( "the square root of {} is: {:.5f}".format( num, num**.5) )
return num**.5
| 26.375
| 74
| 0.635071
| 32
| 211
| 4.1875
| 0.6875
| 0.134328
| 0.19403
| 0.223881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017341
| 0.180095
| 211
| 8
| 75
| 26.375
| 0.757225
| 0.459716
| 0
| 0
| 0
| 0
| 0.448598
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
5c103d5806b3cf61faad4b31d5e4506c4a559efc
| 787
|
py
|
Python
|
examples/Town_v2/test1.py
|
hxb1997/Menge
|
7a09a6236d8eef23e3d15d08873d5918d064761b
|
[
"Apache-2.0"
] | null | null | null |
examples/Town_v2/test1.py
|
hxb1997/Menge
|
7a09a6236d8eef23e3d15d08873d5918d064761b
|
[
"Apache-2.0"
] | null | null | null |
examples/Town_v2/test1.py
|
hxb1997/Menge
|
7a09a6236d8eef23e3d15d08873d5918d064761b
|
[
"Apache-2.0"
] | 1
|
2021-07-01T09:40:01.000Z
|
2021-07-01T09:40:01.000Z
|
import sys
import numpy as np
import os
if __name__ == '__main__':
'''
agent_shopping_moment = []
for i in range(0, 10):
agent_shopping_moment.append([])
for j in range(0, 2):
agent_shopping_moment[i].append([])
#agent_shopping_moment[0][0].append(1)
#agent_shopping_moment[0][1].append(2)
#for moment, shop in agent_shopping_moment[0]:
#print moment, shop
print agent_shopping_moment
'''
#M0,M1,M2,Sh0,Sh1,Sh2,S = sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5], sys.argv[6], sys.argv[7]
#[[1,0,1],[0,4,5],3]
#num = 5
#num_1 = int(num ** 0.5)
#print num_1
os.system('D:\File\Project\Menge-master\examples\Town_v2\/town_all\/"Vehicle Project.exe"')
| 29.148148
| 120
| 0.594663
| 125
| 787
| 3.536
| 0.408
| 0.205882
| 0.300905
| 0.135747
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063123
| 0.23507
| 787
| 27
| 121
| 29.148148
| 0.671096
| 0.221093
| 0
| 0
| 0
| 0.2
| 0.441026
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5c4a59fd4ab6dc248a1ff53adc7b05c17efd6093
| 13,795
|
py
|
Python
|
tests/catalyst/metrics/test_segmentation.py
|
tadejsv/catalyst
|
2553ce8fd7cecc025ad88819aea73faf8abb229b
|
[
"Apache-2.0"
] | 2,693
|
2019-01-23T19:16:12.000Z
|
2022-03-31T02:12:42.000Z
|
tests/catalyst/metrics/test_segmentation.py
|
Ran485/catalyst
|
84bc7576c981278f389279d87dda85dd66a758b6
|
[
"Apache-2.0"
] | 763
|
2019-01-22T20:12:56.000Z
|
2022-03-27T18:36:10.000Z
|
tests/catalyst/metrics/test_segmentation.py
|
Ran485/catalyst
|
84bc7576c981278f389279d87dda85dd66a758b6
|
[
"Apache-2.0"
] | 445
|
2019-01-23T17:07:09.000Z
|
2022-03-30T05:38:45.000Z
|
# flake8: noqa
from typing import Dict, List, Union
import pytest
import torch
from catalyst.metrics import DiceMetric, IOUMetric, TrevskyMetric
base_outputs = torch.tensor([[0.8, 0.1, 0], [0, 0.4, 0.3], [0, 0, 1]])
base_targets = torch.tensor([[1.0, 0, 0], [0, 1, 0], [1, 1, 0]])
base_outputs = torch.stack([base_outputs, base_targets])[None, :, :, :]
base_targets = torch.stack([base_targets, base_targets])[None, :, :, :]
base_outputs_2 = torch.tensor([[0.8, 0.1, 0.4], [0.1, 0.4, 0.3], [0, 1, 1]])
base_targets_2 = torch.tensor([[1.0, 0.1, 0], [0, 0.5, 0], [0, 1, 1]])
base_outputs_2 = torch.stack([base_outputs_2, base_targets_2])[None, :, :, :]
base_targets_2 = torch.stack([base_targets_2, base_targets_2])[None, :, :, :]
EPS = 1e-5
@pytest.mark.parametrize(
"outputs, targets, weights, class_names, batch_answers, total_answers",
(
(
[base_outputs, base_outputs_2],
[base_targets, base_targets_2],
[0.2, 0.8],
["class_name_00", "class_name_01"],
[
{
"dice/class_name_00": 0.3636363446712494,
"dice/class_name_01": 1.0,
"dice": 0.6818182,
"dice/_weighted": 0.8727272748947144,
},
{
"dice/class_name_00": 0.781818151473999,
"dice/class_name_01": 0.9055555462837219,
"dice": 0.8436868190765381,
"dice/_weighted": 0.8808081150054932,
},
],
[
{
"dice/class_name_00": 0.3636363446712494,
"dice/class_name_01": 1.0,
"dice": 0.6818181872367859,
"dice/_micro": 0.7123287916183472,
"dice/_weighted": 0.8727272748947144,
},
{
"dice/class_name_00": 0.5888112187385559,
"dice/class_name_01": 0.9552631378173828,
"dice/_micro": 0.7776271104812622,
"dice": 0.772037148475647,
"dice/_macro": 0.772037148475647,
"dice/_weighted": 0.8819727897644043,
},
],
),
),
)
def test_dice_metric(
outputs: List[torch.Tensor],
targets: List[torch.Tensor],
weights: List[float],
class_names: List[str],
batch_answers: List[Dict[str, float]],
total_answers: List[Dict[str, float]],
):
"""Docs."""
metric = DiceMetric(weights=weights, class_names=class_names)
for output, target, batch_answer, total_answer in zip(
outputs, targets, batch_answers, total_answers
):
batch_score = metric.update_key_value(output, target)
total_score = metric.compute_key_value()
for key, value in batch_answer.items():
assert key in batch_score
assert abs(batch_score[key] - batch_answer[key]) < EPS
for key, value in total_answer.items():
assert key in total_score
assert abs(total_score[key] - total_answer[key]) < EPS
@pytest.mark.parametrize(
"outputs, targets, weights, class_names, batch_answers, total_answers",
(
(
[base_outputs, base_outputs_2],
[base_targets, base_targets_2],
[0.2, 0.8],
["class_name_00", "class_name_01"],
[[0.3636363446712494, 1.0], [0.781818151473999, 0.9055555462837219]],
[
[
[0.3636363446712494, 1.0],
0.7123287916183472,
0.6818181872367859,
0.8727272748947144,
],
[
[0.5888112187385559, 0.9552631378173828],
0.7776271104812622,
0.772037148475647,
0.8819727897644043,
],
],
),
),
)
def test_dice_metric_compute(
outputs: List[torch.Tensor],
targets: List[torch.Tensor],
weights: List[float],
class_names: List[str],
batch_answers: List[List[float]],
total_answers: List[List[Union[List[float], float]]],
):
"""Docs."""
metric = DiceMetric(weights=weights, class_names=class_names)
for output, target, batch_answer, total_answer in zip(
outputs, targets, batch_answers, total_answers
):
batch_score = metric.update(output, target)
total_score = metric.compute()
assert len(batch_answer) == len(batch_score)
for pred, answer in zip(batch_score, batch_answer):
assert abs(pred - answer) < EPS
assert len(total_score) == len(total_score)
for pred, answer in zip(total_score, total_score):
if isinstance(pred, list):
for pred_sample, answer_sample in zip(pred, answer):
assert abs(pred_sample - answer_sample) < EPS
else:
assert abs(pred - answer) < EPS
@pytest.mark.parametrize(
"outputs, targets, weights, class_names, batch_answers, total_answers",
(
(
[base_outputs, base_outputs_2],
[base_targets, base_targets_2],
[0.2, 0.8],
["class_name_00", "class_name_01"],
[
{
"iou/class_name_00": 0.2222222536802292,
"iou/class_name_01": 1.0,
"iou": 0.6111111,
"iou/_weighted": 0.8444444537162781,
},
{
"iou/class_name_00": 0.641791045665741,
"iou/class_name_01": 0.8274111747741699,
"iou": 0.7346011400222778,
"iou/_weighted": 0.7902871370315552,
},
],
[
{
"iou/class_name_00": 0.2222222536802292,
"iou/class_name_01": 1.0,
"iou": 0.6111111044883728,
"iou/_micro": 0.5531914830207825,
"iou/_weighted": 0.8444444537162781,
},
{
"iou/class_name_00": 0.4172447919845581,
"iou/class_name_01": 0.9143576622009277,
"iou/_micro": 0.6361619234085083,
"iou": 0.6658012270927429,
"iou/_macro": 0.6658012270927429,
"iou/_weighted": 0.8149350881576538,
},
],
),
),
)
def test_iou_metric(
outputs: List[torch.Tensor],
targets: List[torch.Tensor],
weights: List[float],
class_names: List[str],
batch_answers: List[Dict[str, float]],
total_answers: List[Dict[str, float]],
):
"""Docs."""
metric = IOUMetric(weights=weights, class_names=class_names)
for output, target, batch_answer, total_answer in zip(
outputs, targets, batch_answers, total_answers
):
batch_score = metric.update_key_value(output, target)
total_score = metric.compute_key_value()
for key, value in batch_answer.items():
assert key in batch_score
assert abs(batch_score[key] - batch_answer[key]) < EPS
for key, value in total_answer.items():
assert key in total_score
assert abs(total_score[key] - total_answer[key]) < EPS
@pytest.mark.parametrize(
"outputs, targets, weights, class_names, batch_answers, total_answers",
(
(
[base_outputs, base_outputs_2],
[base_targets, base_targets_2],
[0.2, 0.8],
["class_name_00", "class_name_01"],
[[0.2222222536802292, 1.0], [0.641791045665741, 0.8274111747741699]],
[
[
[0.2222222536802292, 1.0],
0.5531914830207825,
0.6111111044883728,
0.8444444537162781,
],
[
[0.4172447919845581, 0.9143576622009277],
0.6361619234085083,
0.6658012270927429,
0.8149350881576538,
],
],
),
),
)
def test_iou_metric_compute(
outputs: List[torch.Tensor],
targets: List[torch.Tensor],
weights: List[float],
class_names: List[str],
batch_answers: List[List[float]],
total_answers: List[List[Union[List[float], float]]],
):
"""IOU update, compute test"""
metric = IOUMetric(weights=weights, class_names=class_names)
for output, target, batch_answer, total_answer in zip(
outputs, targets, batch_answers, total_answers
):
batch_score = metric.update(output, target)
total_score = metric.compute()
assert len(batch_answer) == len(batch_score)
for pred, answer in zip(batch_score, batch_answer):
assert abs(pred - answer) < EPS
assert len(total_score) == len(total_score)
for pred, answer in zip(total_score, total_score):
if isinstance(pred, list):
for pred_sample, answer_sample in zip(pred, answer):
assert abs(pred_sample - answer_sample) < EPS
else:
assert abs(pred - answer) < EPS
@pytest.mark.parametrize(
"outputs, targets, alpha, weights, class_names, batch_answers, total_answers",
(
(
[base_outputs, base_outputs_2],
[base_targets, base_targets_2],
0.2,
[0.2, 0.8],
["class_name_00", "class_name_01"],
[
{
"trevsky/class_name_00": 0.4166666567325592,
"trevsky/class_name_01": 1.0,
"trevsky": 0.7083333134651184,
"trevsky/_weighted": 0.8833333253860474,
},
{
"trevsky/class_name_00": 0.7524999976158142,
"trevsky/class_name_01": 0.9055555462837219,
"trevsky": 0.8290277719497681,
"trevsky/_weighted": 0.8749444484710693,
},
],
[
{
"trevsky/class_name_00": 0.4166666567325592,
"trevsky/class_name_01": 1.0,
"trevsky": 0.7083333134651184,
"trevsky/_micro": 0.7558139562606812,
"trevsky/_weighted": 0.8833333253860474,
},
{
"trevsky/class_name_00": 0.6119186282157898,
"trevsky/class_name_01": 0.9552631974220276,
"trevsky/_micro": 0.7921270728111267,
"trevsky": 0.7835909128189087,
"trevsky/_macro": 0.7835909128189087,
"trevsky/_weighted": 0.886594295501709,
},
],
),
),
)
def test_trevsky_metric(
outputs: List[torch.Tensor],
targets: List[torch.Tensor],
alpha: float,
weights: List[float],
class_names: List[str],
batch_answers: List[Dict[str, float]],
total_answers: List[Dict[str, float]],
):
metric = TrevskyMetric(alpha=alpha, weights=weights, class_names=class_names)
for output, target, batch_answer, total_answer in zip(
outputs, targets, batch_answers, total_answers
):
batch_score = metric.update_key_value(output, target)
total_score = metric.compute_key_value()
for key, value in batch_answer.items():
assert key in batch_score
assert abs(batch_score[key] - batch_answer[key]) < EPS
for key, value in total_answer.items():
assert key in total_score
assert abs(total_score[key] - total_answer[key]) < EPS
@pytest.mark.parametrize(
"outputs, targets, alpha, weights, class_names, batch_answers, total_answers",
(
(
[base_outputs, base_outputs_2],
[base_targets, base_targets_2],
0.2,
[0.2, 0.8],
["class_name_00", "class_name_01"],
[[0.4166666567325592, 1.0], [0.7524999976158142, 0.9055555462837219]],
[
[
[0.4166666567325592, 1.0],
0.7558139562606812,
0.7083333134651184,
0.8833333253860474,
],
[
[0.6119186282157898, 0.9552631974220276],
0.7921270728111267,
0.7835909128189087,
0.886594295501709,
],
],
),
),
)
def test_trevsky_metric_compute(
outputs: List[torch.Tensor],
targets: List[torch.Tensor],
alpha: float,
weights: List[float],
class_names: List[str],
batch_answers: List[List[float]],
total_answers: List[List[Union[List[float], float]]],
):
"""Trevsky update, compute test"""
metric = TrevskyMetric(alpha=alpha, weights=weights, class_names=class_names)
for output, target, batch_answer, total_answer in zip(
outputs, targets, batch_answers, total_answers
):
batch_score = metric.update(output, target)
total_score = metric.compute()
assert len(batch_answer) == len(batch_score)
for pred, answer in zip(batch_score, batch_answer):
assert abs(pred - answer) < EPS
assert len(total_score) == len(total_score)
for pred, answer in zip(total_score, total_score):
if isinstance(pred, list):
for pred_sample, answer_sample in zip(pred, answer):
assert abs(pred_sample - answer_sample) < EPS
else:
assert abs(pred - answer) < EPS
| 36.494709
| 82
| 0.539108
| 1,414
| 13,795
| 5.03041
| 0.080622
| 0.04555
| 0.027836
| 0.040489
| 0.786026
| 0.738226
| 0.714326
| 0.709827
| 0.709827
| 0.670884
| 0
| 0.183365
| 0.348097
| 13,795
| 377
| 83
| 36.591512
| 0.607584
| 0.006162
| 0
| 0.603399
| 0
| 0
| 0.099605
| 0.012277
| 0
| 0
| 0
| 0
| 0.076487
| 1
| 0.016997
| false
| 0
| 0.011331
| 0
| 0.028329
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 5
|
308316c65eba28d4c932793c062dd262c332d559
| 28
|
py
|
Python
|
noise.py
|
basp/notes
|
8831f5f44fc675fbf1c3359a8743d2023312d5ca
|
[
"MIT"
] | 1
|
2016-12-09T13:58:13.000Z
|
2016-12-09T13:58:13.000Z
|
noise.py
|
basp/notes
|
8831f5f44fc675fbf1c3359a8743d2023312d5ca
|
[
"MIT"
] | null | null | null |
noise.py
|
basp/notes
|
8831f5f44fc675fbf1c3359a8743d2023312d5ca
|
[
"MIT"
] | null | null | null |
def init(seed = 0):
pass
| 14
| 19
| 0.571429
| 5
| 28
| 3.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.285714
| 28
| 2
| 20
| 14
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
30b99c2170d89f5d2ccfbed4277252914acb4cde
| 181
|
py
|
Python
|
allauth/socialaccount/providers/eveonline_provider/urls.py
|
Fuzzwah/django-allauth
|
071cbef1388bb61a563d3e41197bd5b7c26664d2
|
[
"MIT"
] | null | null | null |
allauth/socialaccount/providers/eveonline_provider/urls.py
|
Fuzzwah/django-allauth
|
071cbef1388bb61a563d3e41197bd5b7c26664d2
|
[
"MIT"
] | null | null | null |
allauth/socialaccount/providers/eveonline_provider/urls.py
|
Fuzzwah/django-allauth
|
071cbef1388bb61a563d3e41197bd5b7c26664d2
|
[
"MIT"
] | null | null | null |
from allauth.socialaccount.providers.oauth2_provider.urls import default_urlpatterns
from .provider import EveOnlineProvider
urlpatterns = default_urlpatterns(EveOnlineProvider)
| 25.857143
| 84
| 0.878453
| 18
| 181
| 8.666667
| 0.611111
| 0.230769
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005988
| 0.077348
| 181
| 6
| 85
| 30.166667
| 0.928144
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
30e05beb76a59ba2b357811e38e4aba382bbac26
| 8,119
|
py
|
Python
|
Tests/test_Statistics.py
|
jasmansingh84/PyStatisticalcalci
|
cc310f53472cb0a314849379c3c472ebd709c4b7
|
[
"MIT"
] | null | null | null |
Tests/test_Statistics.py
|
jasmansingh84/PyStatisticalcalci
|
cc310f53472cb0a314849379c3c472ebd709c4b7
|
[
"MIT"
] | null | null | null |
Tests/test_Statistics.py
|
jasmansingh84/PyStatisticalcalci
|
cc310f53472cb0a314849379c3c472ebd709c4b7
|
[
"MIT"
] | null | null | null |
import unittest
from CsvReader.CsvReader import CsvReader
from CsvReader.CsvReader2 import CsvReader2
from Statistics.Statistics import Statistics
class MyTestCase(unittest.TestCase):
def setUp(self) -> None:
self.Statistics = Statistics()
def test_instantiate_calculator(self):
self.assertIsInstance(self.Statistics, Statistics)
def test_mean(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
result_data = CsvReader('Tests/Data/result_data.csv').data
for column in result_data:
mean_value = float(column['Mean'])
data = []
for row in test_data:
result = float(row['List1'])
data.append(result)
self.Statistics.mean(data)
self.assertEqual(round(self.Statistics.result), round(mean_value))
def test_median(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
result_data = CsvReader('Tests/Data/result_data.csv').data
for column in result_data:
median_value = float(column['Median'])
data = []
for row in test_data:
result = float(row['List1'])
data.append(result)
self.Statistics.median(data)
self.assertEqual(round(self.Statistics.result), round(median_value))
def test_mode(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
result_data = CsvReader('Tests/Data/result_data.csv').data
for column in result_data:
mode_value = float(column['Mode'])
data = []
for row in test_data:
result = float(row['List1'])
data.append(result)
self.Statistics.mode(data)
self.assertEqual(round(self.Statistics.result), round(mode_value))
def test_standard_deviation(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
for column in test_result:
result_test = float(column['Standard Deviation'])
list1 = []
for row in test_data:
result = float(row['List1'])
list1.append(result)
self.Statistics.standard_deviation(list1)
self.assertEqual(round(self.Statistics.result), round(result_test))
def test_variance(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
for column in test_result:
result_test = float(column['Variance'])
list1 = []
for row in test_data:
result = float(row['List1'])
list1.append(result)
self.Statistics.variance(list1)
self.assertEqual(round(self.Statistics.result), round(result_test))
def test_sample_mean(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
for column in test_result:
result_test = float(column['Sample Mean'])
list1 = []
for row in test_data:
result = float(row['List1'])
list1.append(result)
self.assertEqual(round(self.Statistics.sample_mean(list1)), round(result_test))
def test_standardized_score(self):
test_data = CsvReader2('Tests/Data/population_list.csv').data
test_result = CsvReader2('Tests/Data/result_zscore.csv').data
'''
for column in test_result:
result_test = float(column['Z_score'])
list1 = list()
for row in test_data:
result = float(row[0])
list1.append(result)
'''
self.assertListEqual(self.Statistics.z_score(test_data), test_result)
def test_z_score(self):
test_data = CsvReader2('Tests/Data/population_list.csv').data
test_result = CsvReader2('Tests/Data/result_zscore.csv').data
'''
for column in test_result:
result_test = float(column['Z_score'])
list1 = list()
for row in test_data:
result = float(row[0])
list1.append(result)
'''
self.assertListEqual(self.Statistics.z_score(test_data), test_result)
def test_pop_correlation_coefficient(self):
test_data = CsvReader2('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
for column in test_result:
result_test = float(column['Pop_correlation_coefficient'])
'''
list1 = []
for row in test_data:
result = float(row['List1'])
list1.append(result)
'''
self.assertEqual(round(self.Statistics.pop_correlation_coefficient(test_data)), round(result_test))
def test_sample_standard_deviation(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
for column in test_result:
result_test = float(column['Sample_Standard_Deviation'])
list1 = []
for row in test_data:
result = float(row['List1'])
list1.append(result)
self.assertEqual(round(self.Statistics.sample_standard_deviation(list1)), round(result_test))
def test_proportion_calculator(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
list1 = []
for column in test_result:
result_test = float((column['Proportion_result']))
for row in test_data:
result = float(row['List1'])
list1.append(result)
self.assertEqual(round(self.Statistics.proportion(list1)), round(result_test))
def test_sample_variance_calculator(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
list1 = []
for column in test_result:
result_test = float((column['Variance_Sample_result']))
for row in test_data:
result = int(row['List1'])
list1.append(result)
self.assertEqual(round(self.Statistics.sample_variance(list1)), round(result_test))
def test_Population_Variance_calculator(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
list1 = []
for column in test_result:
result_test = float((column['Population_Variance']))
for row in test_data:
result = int(row['List1'])
list1.append(result)
self.assertEqual(round(self.Statistics.population_variance(list1)), round(result_test))
def test_confidence_interval(self):
test_data = CsvReader('Tests/Data/population_list.csv').data
result_cf_interval = CsvReader('Tests/Data/result_data.csv').data
for column in result_cf_interval:
result_test1 = float(column['Confidence_Interval1'])
result_test2 = float(column['Confidence_Interval2'])
data = []
for row in test_data:
result_data = float(row['List1'])
data.append(result_data)
x = self.Statistics.confidence_interval(data)
try:
self.assertAlmostEqual(x[0], result_test1)
self.assertAlmostEqual(x[1], result_test2)
except AssertionError as e:
print("Confidence Interval has Assertion Error:", e)
assert 0
def test_p_value(self):
test_data = CsvReader2('Tests/Data/population_list.csv').data
test_result = CsvReader('Tests/Data/result_data.csv').data
result_test = 0
for column in test_result:
result_test = float(column['P_Value'])
self.assertEqual(round(self.Statistics.p_value(test_data)), round(result_test))
if __name__ == '__main__':
unittest.main()
| 31.839216
| 107
| 0.631728
| 947
| 8,119
| 5.210137
| 0.079197
| 0.06891
| 0.087556
| 0.069923
| 0.80604
| 0.7803
| 0.749899
| 0.72801
| 0.698216
| 0.689704
| 0
| 0.009809
| 0.259145
| 8,119
| 254
| 108
| 31.964567
| 0.810474
| 0
| 0
| 0.564935
| 0
| 0
| 0.154743
| 0.12299
| 0
| 0
| 0
| 0
| 0.12987
| 1
| 0.11039
| false
| 0
| 0.025974
| 0
| 0.142857
| 0.006494
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
30fa03612f1fa5e01b83bc4eabcad8efd3af22cc
| 3,800
|
py
|
Python
|
backend/metric/ulca-utility-service/src/repositories/notifierrepo.py
|
agupta54/ulca
|
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
|
[
"MIT"
] | 3
|
2022-01-12T06:51:51.000Z
|
2022-02-23T18:54:33.000Z
|
backend/metric/ulca-utility-service/src/repositories/notifierrepo.py
|
agupta54/ulca
|
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
|
[
"MIT"
] | 6
|
2021-08-31T19:21:26.000Z
|
2022-01-03T05:53:42.000Z
|
backend/metric/ulca-utility-service/src/repositories/notifierrepo.py
|
agupta54/ulca
|
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
|
[
"MIT"
] | 8
|
2021-08-12T08:07:49.000Z
|
2022-01-25T04:40:51.000Z
|
import pymongo
import logging
import config
from logging.config import dictConfig
log = logging.getLogger('fie')
class NotifierRepo:
def __init__(self):
pass
def count_data_col(self, query,schema,collection):
log.info(f"Mongo count calculation : {query},{schema},{collection}")
print(query,schema,collection,"****counting**")
print(config.data_connection_url)
try:
log.info(f"Mongo count calculation : {query},{schema},{collection}")
client = pymongo.MongoClient(config.data_connection_url)
mongo_instance = client[schema][collection]
res = mongo_instance.count(query)
return res
except Exception as e:
log.exception(f'Exception in repo search: {e}', e)
return []
def aggregate_data_col(self, query,schema,collection):
log.info(f"Mongo aggregation : {query},{schema},{collection}")
print(query,schema,collection,"***aggregating***")
print(config.data_connection_url)
try:
log.info(f"Mongo count calculation : {query},{schema},{collection}")
client = pymongo.MongoClient(config.data_connection_url)
mongo_instance = client[schema][collection]
res = mongo_instance.aggregate(query)
result = []
for record in res:
result.append(record)
return result
except Exception as e:
log.exception(f'Exception in repo search: {e}', e)
return []
def count_process_col(self, query,schema,collection):
log.info(f"Mongo count calculation : {query},{schema},{collection}")
print(query,schema,collection,"****counting**")
print(config.process_connection_url)
try:
log.info(f"Mongo count calculation : {query},{schema},{collection}")
client = pymongo.MongoClient(config.process_connection_url)
mongo_instance = client[schema][collection]
res = mongo_instance.count(query)
return res
except Exception as e:
log.exception(f'Exception in repo search: {e}', e)
return []
def aggregate_process_col(self, query,schema,collection):
log.info(f"Mongo aggregation : {query},{schema},{collection}")
print(query,schema,collection,"***aggregating***")
print(config.process_connection_url)
try:
log.info(f"Mongo count calculation : {query},{schema},{collection}")
client = pymongo.MongoClient(config.process_connection_url)
mongo_instance = client[schema][collection]
res = mongo_instance.aggregate(query)
result = []
for record in res:
result.append(record)
return result
except Exception as e:
log.exception(f'Exception in repo search: {e}', e)
return []
# Log config
dictConfig({
'version': 1,
'formatters': {'default': {
'format': '[%(asctime)s] {%(filename)s:%(lineno)d} %(threadName)s %(levelname)s in %(module)s: %(message)s',
}},
'handlers': {
'info': {
'class': 'logging.FileHandler',
'level': 'DEBUG',
'formatter': 'default',
'filename': 'info.log'
},
'console': {
'class': 'logging.StreamHandler',
'level': 'DEBUG',
'formatter': 'default',
'stream': 'ext://sys.stdout',
}
},
'loggers': {
'file': {
'level': 'DEBUG',
'handlers': ['info', 'console'],
'propagate': ''
}
},
'root': {
'level': 'DEBUG',
'handlers': ['info', 'console']
}
})
| 33.628319
| 116
| 0.565
| 376
| 3,800
| 5.614362
| 0.210106
| 0.151587
| 0.159166
| 0.049266
| 0.7982
| 0.770725
| 0.770725
| 0.770725
| 0.770725
| 0.770725
| 0
| 0.000376
| 0.300526
| 3,800
| 113
| 117
| 33.628319
| 0.79383
| 0.002632
| 0
| 0.618557
| 0
| 0.010309
| 0.257392
| 0.07339
| 0
| 0
| 0
| 0
| 0
| 1
| 0.051546
| false
| 0.010309
| 0.041237
| 0
| 0.185567
| 0.082474
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 5
|
eb8088f88d5e27a4d8e7e996d5f43aa382b4301e
| 30
|
py
|
Python
|
tool/pcdet/version.py
|
jcuic5/CUDA-PointPillars
|
3e1959448366c273914ec5024db39ed4e8c8dcdd
|
[
"Apache-2.0"
] | 1
|
2021-12-29T00:04:53.000Z
|
2021-12-29T00:04:53.000Z
|
tool/pcdet/version.py
|
jcuic5/CUDA-PointPillars
|
3e1959448366c273914ec5024db39ed4e8c8dcdd
|
[
"Apache-2.0"
] | null | null | null |
tool/pcdet/version.py
|
jcuic5/CUDA-PointPillars
|
3e1959448366c273914ec5024db39ed4e8c8dcdd
|
[
"Apache-2.0"
] | 1
|
2022-03-18T01:12:24.000Z
|
2022-03-18T01:12:24.000Z
|
__version__ = "0.3.0+d563e17"
| 15
| 29
| 0.7
| 5
| 30
| 3.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.296296
| 0.1
| 30
| 1
| 30
| 30
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0.433333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
eba5f32d8456e98d8ab0ed1766680d64917f1dde
| 233
|
py
|
Python
|
python/testData/refactoring/extractsuperclass/importMultiFile/dest_module.after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/refactoring/extractsuperclass/importMultiFile/dest_module.after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/refactoring/extractsuperclass/importMultiFile/dest_module.after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
import shared_module
from shared_module import module_function as my_function, ModuleClass
class NewParent(object):
def do_useful_stuff(self):
i = shared_module.MODULE_CONTANT
my_function()
ModuleClass()
| 25.888889
| 69
| 0.742489
| 29
| 233
| 5.655172
| 0.62069
| 0.219512
| 0.256098
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.201717
| 233
| 9
| 70
| 25.888889
| 0.88172
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.285714
| 0
| 0.571429
| 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
| 0
| 0
| 1
| 0
|
0
| 5
|
ebb43952950a09f8b9b36788363e817d574fe4e8
| 92
|
py
|
Python
|
tabtomidi/__init__.py
|
JoshRosen/tabtomidi
|
85dc6019c329a9da2783831d9885b3dc04fbae6d
|
[
"BSD-3-Clause"
] | 3
|
2015-07-16T22:23:25.000Z
|
2019-06-16T08:51:36.000Z
|
tabtomidi/__init__.py
|
JoshRosen/tabtomidi
|
85dc6019c329a9da2783831d9885b3dc04fbae6d
|
[
"BSD-3-Clause"
] | null | null | null |
tabtomidi/__init__.py
|
JoshRosen/tabtomidi
|
85dc6019c329a9da2783831d9885b3dc04fbae6d
|
[
"BSD-3-Clause"
] | null | null | null |
from tabtomidi.drumtabs import Tab, TabParsingException, \
UnmappableNoteNamesException
| 30.666667
| 58
| 0.836957
| 7
| 92
| 11
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119565
| 92
| 2
| 59
| 46
| 0.950617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 1
| 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
| 0
| 0
|
0
| 5
|
ccf891c91fd8d21bf86f1c3da125022f308630b8
| 977
|
py
|
Python
|
main/coins/models.py
|
Hawk94/coin_tracker
|
082909e17308a8dd460225c1b035751d12a27106
|
[
"MIT"
] | null | null | null |
main/coins/models.py
|
Hawk94/coin_tracker
|
082909e17308a8dd460225c1b035751d12a27106
|
[
"MIT"
] | null | null | null |
main/coins/models.py
|
Hawk94/coin_tracker
|
082909e17308a8dd460225c1b035751d12a27106
|
[
"MIT"
] | null | null | null |
from django.db import models
from django.utils import timezone
class BaseCoin(models.Model):
date = models.DateField(default=timezone.now)
exchange = models.CharField(max_length=100, blank=True, default='')
price = models.DecimalField(max_digits=12, decimal_places=4, default=0)
high = models.DecimalField(max_digits=12, decimal_places=4, default=0)
low = models.DecimalField(max_digits=12, decimal_places=4, default=0)
close = models.DecimalField(max_digits=12, decimal_places=4, default=0)
volume = models.DecimalField(max_digits=12, decimal_places=4, default=0)
class Meta:
abstract = True
ordering = ('date',)
class BTC(BaseCoin):
market_cap = models.DecimalField(max_digits=18, decimal_places=8, default=0)
class ETH(BaseCoin):
market_cap = models.DecimalField(max_digits=18, decimal_places=8, default=0)
class LTC(BaseCoin):
market_cap = models.DecimalField(max_digits=18, decimal_places=8, default=0)
| 33.689655
| 80
| 0.741044
| 135
| 977
| 5.214815
| 0.318519
| 0.204545
| 0.238636
| 0.306818
| 0.666193
| 0.666193
| 0.666193
| 0.666193
| 0.666193
| 0.666193
| 0
| 0.041866
| 0.144319
| 977
| 28
| 81
| 34.892857
| 0.800239
| 0
| 0
| 0.157895
| 0
| 0
| 0.004094
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.105263
| 0
| 0.894737
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
ccfed4d72b822319d6dc74aedff4e55738604b56
| 160
|
py
|
Python
|
src/fchecker/exceptions/__init__.py
|
IncognitoCoding/fchecker
|
bbc70685174c70b6c396e1c93864028bffd3e22e
|
[
"MIT"
] | null | null | null |
src/fchecker/exceptions/__init__.py
|
IncognitoCoding/fchecker
|
bbc70685174c70b6c396e1c93864028bffd3e22e
|
[
"MIT"
] | null | null | null |
src/fchecker/exceptions/__init__.py
|
IncognitoCoding/fchecker
|
bbc70685174c70b6c396e1c93864028bffd3e22e
|
[
"MIT"
] | null | null | null |
# Exceptions
from .exceptions import InputFailure, InvalidKeyError
from fexception import FFileNotFoundError
from fexception import FAttributeError, FTypeError
| 32
| 53
| 0.875
| 15
| 160
| 9.333333
| 0.6
| 0.2
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 160
| 4
| 54
| 40
| 0.972222
| 0.0625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
6914f2ead34468c6791c49ca96f80c4611d95f83
| 1,003
|
py
|
Python
|
{{cookiecutter.project_slug}}/app/{{cookiecutter.app_slug_snakecase}}/tests/test_{{cookiecutter.app_slug_snakecase}}_services.py
|
jonatasoli/fastapi-template-cookiecutter
|
4a982e9a46dc6b7d1dafda8ca170429ea32b1bf4
|
[
"MIT"
] | 7
|
2021-03-12T18:17:42.000Z
|
2021-09-14T02:13:32.000Z
|
{{cookiecutter.project_slug}}/app/{{cookiecutter.app_slug_snakecase}}/tests/test_{{cookiecutter.app_slug_snakecase}}_services.py
|
jonatasoli/fastapi-template-cookiecutter
|
4a982e9a46dc6b7d1dafda8ca170429ea32b1bf4
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_slug}}/app/{{cookiecutter.app_slug_snakecase}}/tests/test_{{cookiecutter.app_slug_snakecase}}_services.py
|
jonatasoli/fastapi-template-cookiecutter
|
4a982e9a46dc6b7d1dafda8ca170429ea32b1bf4
|
[
"MIT"
] | 3
|
2021-02-12T15:07:48.000Z
|
2021-09-14T02:13:34.000Z
|
import pytest
from unittest import mock
from {{cookiecutter.app_slug_snakecase}}.services.services_{{cookiecutter.app_slug_snakecase}} import add_{{cookiecutter.model_slug_snakecase}}
from {{cookiecutter.app_slug_snakecase}}.schemas.schemas_{{cookiecutter.app_slug_snakecase}} import {{cookiecutter.model_name}}CreateResponse, {{cookiecutter.model_name}}Endpoint, {{cookiecutter.model_name}}Create
response_obj = {{cookiecutter.model_name}}CreateResponse(id=1, name="{{cookiecutter.model_name}} 1", completed=False)
@pytest.mark.asyncio
@mock.patch("{{cookiecutter.app_slug_snakecase}}.dao.{{cookiecutter.model_slug_snakecase}}.create", return_value=response_obj)
async def test_add_{{cookiecutter.model_slug_snakecase}}(mocker):
data = {{cookiecutter.model_name}}Endpoint(name="{{cookiecutter.model_name}} 1", completed=False, current_user_id=1)
response = await add_{{cookiecutter.model_slug_snakecase}}({{cookiecutter.model_slug_snakecase}}_data=data)
assert response == response_obj
| 62.6875
| 213
| 0.808574
| 123
| 1,003
| 6.268293
| 0.308943
| 0.264591
| 0.190661
| 0.181582
| 0.403372
| 0.103761
| 0.103761
| 0
| 0
| 0
| 0
| 0.004233
| 0.057827
| 1,003
| 15
| 214
| 66.866667
| 0.81164
| 0
| 0
| 0
| 0
| 0
| 0.141575
| 0.137587
| 0
| 0
| 0
| 0
| 0.090909
| 0
| null | null | 0
| 0.363636
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
69214dcb7f5e820da97009b3641eb48250fa4e77
| 3,652
|
py
|
Python
|
ERAI/pickle_stream_dict.py
|
coecms/CollectionsScripts
|
7c60edf0f91ddd3b045afa121bc5e3a7877297e6
|
[
"Apache-2.0"
] | 5
|
2019-01-02T19:19:37.000Z
|
2022-02-17T01:57:32.000Z
|
ERAI/pickle_stream_dict.py
|
coecms/CollectionsScripts
|
7c60edf0f91ddd3b045afa121bc5e3a7877297e6
|
[
"Apache-2.0"
] | null | null | null |
ERAI/pickle_stream_dict.py
|
coecms/CollectionsScripts
|
7c60edf0f91ddd3b045afa121bc5e3a7877297e6
|
[
"Apache-2.0"
] | 2
|
2017-05-20T09:48:06.000Z
|
2018-12-04T13:57:57.000Z
|
# This script produced a python dictionary stream_dict that assign ifor each ERA Interim stream
# the time, step, parameters and levels lists to pass as arguments to MARS requests. The dictionary is stored
# in a pickle file ecmwf_stream_pickle used by the ERAI python download script: erai_download.py
# author: Paola Petrelli for ARC Centre of Excellence for Climate System Science
# paolap@utas.edu.au
# 03rd November 2016
from __future__ import print_function
import pickle
# create empty dictionary
stream_dict={}
# create dictionary containing time,step, params and levels keys for each stream
ml_dict={'time': "00/06/12/18",
'step': "0",
'params': "130.128/131.128/132.128/133.128/135.128/138.128/155.128/203.128/246.128/247.128/248.128",
'levels': "1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60"}
mlsfc_dict={'time': "00/06/12/18",
'step': "0",
'params': "129.128/152.128",
'levels': "1"}
pl_dict={'time': "00/06/12/18",
'step': "0",
'params': "60.128/129.128/130.128/131.128/132.128/133.128/135.128/138.128/155.128/157.128/203.128/246.128/247.128/248.128",
'levels': "1/2/3/5/7/10/20/30/50/70/100/125/150/175/200/225/250/300/350/400/450/500/550/600/650/700/750/775/800/825/850/875/900/925/950/975/1000"}
pt_dict={'time': "00/06/12/18",
'step': "0",
'params': "53.128/54.128/60.128/131.128/132.128/133.128/138.128/155.128/203.128",
'levels': "265/275/285/300/315/330/350/370/395/430/475/530/600/700/850"}
pv_dict={'time': "00/06/12/18",
'step': "0",
'params': "3.128/54.128/129.128/131.128/132.128/133.128/203.128",
'levels': "2000"}
sfc_dict={'time': "00/06/12/18",
'step': "0",
'params': "134.128/136.128/137.128/139.128/141.128/148.128/151.128/164.128/165.128/166.128/167.128/168.128/170.128/173.128/174.128/183.128/186.128/187.128/188.128/198.128/206.128/234.128/235.128/236.128/238.128/31.128/32.128/33.128/34.128/35.128/36.128/37.128/38.128/39.128/40.128/41.128/42.128/53.162/54.162/55.162/56.162/57.162/58.162/59.162/60.162/61.162/62.162/63.162/64.162/65.162/66.162/67.162/68.162/69.162/70.162/71.162/72.162/73.162/74.162/75.162/76.162/77.162/78.162/79.162/80.162/81.162/82.162/83.162/84.162/85.162/86.162/87.162/88.162/89.162/90.162/91.162/92.162",
'area' : "90/-180/-90/179.25",
'levels': "sfc"}
fc_dict={'time': "00/12",
'step': "3/6/9/12",
'params': "20.128/31.128/32.128/33.128/34.128/35.128/36.128/37.128/38.128/39.128/40.128/41.128/42.128/44.128/45.128/49.128/50.128/57.128/58.128/59.128/78.128/79.128/134.128/136.128/137.128/139.128/141.128/142.128/143.128/144.128/145.128/146.128/147.128/148.128/151.128/159.128/164.128/165.128/166.128/167.128/168.128/169.128/170.128/175.128/176.128/177.128/178.128/179.128/180.128/181.128/182.128/183.128/186.128/187.128/188.128/189.128/195.128/196.128/197.128/198.128/201.128/202.128/205.128/206.128/208.128/209.128/210.128/211.128/212.128/228.128/229.128/230.128/231.128/232.128/235.128/236.128/238.128/239.128/240.128/243.128/244.128/245.128",
'levels': "sfc"}
# fill dictionary with single stream dictionaries
stream_dict={'oper_an_ml' : ml_dict,
'oper_an_ml_sfc' : mlsfc_dict,
'oper_an_pl' : pl_dict,
'oper_an_sfc': sfc_dict,
'oper_fc_sfc': fc_dict,
'oper_an_pt' : pt_dict,
'oper_an_pv' : pv_dict}
print(stream_dict)
pickle.dump( stream_dict, open( "ecmwf_stream_pickle", "wb" ) )
| 68.90566
| 655
| 0.6569
| 753
| 3,652
| 3.12749
| 0.390438
| 0.023779
| 0.029724
| 0.030573
| 0.315924
| 0.305732
| 0.305732
| 0.263694
| 0.263694
| 0.171975
| 0
| 0.461249
| 0.127327
| 3,652
| 52
| 656
| 70.230769
| 0.277691
| 0.154436
| 0
| 0.195122
| 0
| 0.219512
| 0.729607
| 0.60936
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.04878
| 0
| 0.04878
| 0.04878
| 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
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
69659235f8fd33ab16004aca6930bb2cd6d11984
| 246
|
py
|
Python
|
synology_api/__init__.py
|
migelbd/synology-api
|
8492a52fef41aab3b508a779462646fab3685ad0
|
[
"MIT"
] | null | null | null |
synology_api/__init__.py
|
migelbd/synology-api
|
8492a52fef41aab3b508a779462646fab3685ad0
|
[
"MIT"
] | null | null | null |
synology_api/__init__.py
|
migelbd/synology-api
|
8492a52fef41aab3b508a779462646fab3685ad0
|
[
"MIT"
] | null | null | null |
from . import exceptions
from .downloadstation import DownloadStation
from .filestation import FileStation
from .audiostation import AudioStation
from .sys_info import SysInfo
from .virtualization import Virtualization
from .backup import Backup
| 30.75
| 44
| 0.857724
| 28
| 246
| 7.5
| 0.392857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113821
| 246
| 7
| 45
| 35.142857
| 0.963303
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
15d516effb6e29c1d39d2ea74f2f475a8238e3d4
| 42
|
py
|
Python
|
python/finess/__init__.py
|
dcseal/finess
|
766e583ae9e84480640c7c3b3c157bf40ab87fe4
|
[
"BSD-3-Clause"
] | null | null | null |
python/finess/__init__.py
|
dcseal/finess
|
766e583ae9e84480640c7c3b3c157bf40ab87fe4
|
[
"BSD-3-Clause"
] | null | null | null |
python/finess/__init__.py
|
dcseal/finess
|
766e583ae9e84480640c7c3b3c157bf40ab87fe4
|
[
"BSD-3-Clause"
] | null | null | null |
"""Python library written for FINESS.
"""
| 14
| 37
| 0.690476
| 5
| 42
| 5.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 42
| 2
| 38
| 21
| 0.805556
| 0.809524
| 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
|
15d86135ab3086b32c870017d6b76bf47205ec4a
| 84
|
py
|
Python
|
icevision/models/torchvision_models/mask_rcnn/lightning/__init__.py
|
RibenaMapleSyrup/icevision
|
6cbd6d103cb3f76bc21ae7651e9d958efe8c3a64
|
[
"Apache-2.0"
] | 88
|
2020-05-02T12:28:02.000Z
|
2021-09-30T07:17:03.000Z
|
icevision/models/torchvision_models/mask_rcnn/lightning/__init__.py
|
RibenaMapleSyrup/icevision
|
6cbd6d103cb3f76bc21ae7651e9d958efe8c3a64
|
[
"Apache-2.0"
] | 248
|
2020-05-01T18:46:31.000Z
|
2020-07-31T20:55:01.000Z
|
icevision/models/torchvision_models/mask_rcnn/lightning/__init__.py
|
RibenaMapleSyrup/icevision
|
6cbd6d103cb3f76bc21ae7651e9d958efe8c3a64
|
[
"Apache-2.0"
] | 15
|
2020-06-07T15:59:56.000Z
|
2021-02-27T09:46:39.000Z
|
from icevision.models.torchvision_models.mask_rcnn.lightning.model_adapter import *
| 42
| 83
| 0.880952
| 11
| 84
| 6.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 84
| 1
| 84
| 84
| 0.8875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
15e8390fe55e1dca11f9815f8b5a2a58fdc83bdc
| 42
|
py
|
Python
|
ti_nbody/__init__.py
|
xuyanwen2012/ti_nbody
|
f49814b51938d262db4c6b831e5df63e4bf635fa
|
[
"MIT"
] | null | null | null |
ti_nbody/__init__.py
|
xuyanwen2012/ti_nbody
|
f49814b51938d262db4c6b831e5df63e4bf635fa
|
[
"MIT"
] | null | null | null |
ti_nbody/__init__.py
|
xuyanwen2012/ti_nbody
|
f49814b51938d262db4c6b831e5df63e4bf635fa
|
[
"MIT"
] | null | null | null |
from .n_body import *
from .util import *
| 14
| 21
| 0.714286
| 7
| 42
| 4.142857
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 42
| 2
| 22
| 21
| 0.852941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
15e99a37d28d45c6fa5fe4dcaf8360e68af0f497
| 149
|
py
|
Python
|
reviewboard/oauth/apps.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
reviewboard/oauth/apps.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
reviewboard/oauth/apps.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
"""The app definition for reviewboard.oauth."""
from django.apps import AppConfig
class OAuthAppConfig(AppConfig):
name = 'reviewboard.oauth'
| 18.625
| 47
| 0.751678
| 17
| 149
| 6.588235
| 0.823529
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.14094
| 149
| 7
| 48
| 21.285714
| 0.875
| 0.275168
| 0
| 0
| 0
| 0
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.