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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
115f4b4df06e7c8e8398ae06e563e3d6825c892a
| 473
|
py
|
Python
|
Python高级编程/单继承.py
|
shao1chuan/pythonbook
|
cd9877d04e1e11422d38cc051e368d3d9ce2ab45
|
[
"MulanPSL-1.0"
] | 95
|
2020-10-11T04:45:46.000Z
|
2022-02-25T01:50:40.000Z
|
Python高级编程/单继承.py
|
shao1chuan/pythonbook
|
cd9877d04e1e11422d38cc051e368d3d9ce2ab45
|
[
"MulanPSL-1.0"
] | null | null | null |
Python高级编程/单继承.py
|
shao1chuan/pythonbook
|
cd9877d04e1e11422d38cc051e368d3d9ce2ab45
|
[
"MulanPSL-1.0"
] | 30
|
2020-11-05T09:01:00.000Z
|
2022-03-08T05:58:55.000Z
|
class A:
def spam(self):
print('A.spam')
class B(A):
def spam(self):
print('B.spam')
super().spam() # Call parent spam()
class C:
def __init__(self):
self.x = 0
class D(C):
def __init__(self):
super().__init__()
self.y = 1
d = D()
print(d.y)
class Base:
def __init__(self):
print('Base.__init__')
class A(Base):
def __init__(self):
Base.__init__(self)
print('A.__init__')
| 16.892857
| 44
| 0.530655
| 66
| 473
| 3.318182
| 0.272727
| 0.219178
| 0.200913
| 0.109589
| 0.155251
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006116
| 0.308668
| 473
| 28
| 45
| 16.892857
| 0.663609
| 0.038055
| 0
| 0.26087
| 0
| 0
| 0.077093
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.26087
| false
| 0
| 0
| 0
| 0.521739
| 0.217391
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
feca5981e4193f53c9bcc42cf5d652c0a1d158f4
| 171
|
py
|
Python
|
tests/LynxmotionNewTest.py
|
murrayireland/Rover-Code
|
e46126a38d8ac8bb70867e3378a3c4f89591b385
|
[
"MIT"
] | null | null | null |
tests/LynxmotionNewTest.py
|
murrayireland/Rover-Code
|
e46126a38d8ac8bb70867e3378a3c4f89591b385
|
[
"MIT"
] | null | null | null |
tests/LynxmotionNewTest.py
|
murrayireland/Rover-Code
|
e46126a38d8ac8bb70867e3378a3c4f89591b385
|
[
"MIT"
] | null | null | null |
# Test of new Lynxmotion controller with Adafruit DC
# motor driver and Sense HAT IMU
import RPi.GPIO as gpio
import time
gpio.setmode(gpio.BCM)
gpio.setwarnings(False)
| 19
| 52
| 0.789474
| 28
| 171
| 4.821429
| 0.821429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152047
| 171
| 8
| 53
| 21.375
| 0.931034
| 0.473684
| 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 | 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
| 4
|
fede73c506ba482087b17ab8f75dd8fe5ed19510
| 833
|
py
|
Python
|
pyqtcli/exception.py
|
Kynarth/pyqtcli
|
ca5f7f711b3731531f39b7d9a63b9965fbbc2b75
|
[
"MIT"
] | null | null | null |
pyqtcli/exception.py
|
Kynarth/pyqtcli
|
ca5f7f711b3731531f39b7d9a63b9965fbbc2b75
|
[
"MIT"
] | null | null | null |
pyqtcli/exception.py
|
Kynarth/pyqtcli
|
ca5f7f711b3731531f39b7d9a63b9965fbbc2b75
|
[
"MIT"
] | null | null | null |
"""This module regroups all exceptions tied to pyqtcli cli."""
class QresourceError(Exception):
"""Exception raised with problems concerning qresource node in qrc files."""
def __init__(self, arg):
super(QresourceError, self).__init__()
self.msg = arg
def __str__(self):
return self.msg
class PyqtcliConfigError(Exception):
"""Exception raised with problems concerning .pyqtclirc config file."""
def __init__(self, arg):
super(PyqtcliConfigError, self).__init__()
self.msg = arg
def __str__(self):
return self.msg
class QRCFileError(Exception):
"""Exception raised with problems concerning qrc files."""
def __init__(self, arg):
super(QRCFileError, self).__init__()
self.msg = arg
def __str__(self):
return self.msg
| 26.03125
| 80
| 0.665066
| 94
| 833
| 5.510638
| 0.361702
| 0.092664
| 0.138996
| 0.162162
| 0.664093
| 0.627413
| 0.361004
| 0.256757
| 0.256757
| 0.256757
| 0
| 0
| 0.231693
| 833
| 31
| 81
| 26.870968
| 0.809375
| 0.295318
| 0
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
fef8d2695dee0a4aaa685fdc6cbaaa6c9ef10f22
| 66
|
py
|
Python
|
test1/login.py
|
guangchaoli/test
|
f3948f949bca37a910d3ac671d29c40744ec6ba9
|
[
"MIT"
] | null | null | null |
test1/login.py
|
guangchaoli/test
|
f3948f949bca37a910d3ac671d29c40744ec6ba9
|
[
"MIT"
] | null | null | null |
test1/login.py
|
guangchaoli/test
|
f3948f949bca37a910d3ac671d29c40744ec6ba9
|
[
"MIT"
] | null | null | null |
num1=10
num2=20
num3=30
num4=40
num5=50
num6=60
nihaoma=weijialan
| 8.25
| 17
| 0.787879
| 14
| 66
| 3.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.305085
| 0.106061
| 66
| 7
| 18
| 9.428571
| 0.576271
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3a039f25a48a0a20d24c40124319ec602f07e19b
| 90
|
py
|
Python
|
Python/04. Sets/003. Symmetric Difference.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
Python/04. Sets/003. Symmetric Difference.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
Python/04. Sets/003. Symmetric Difference.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
# Problem: https://www.hackerrank.com/challenges/symmetric-difference/problem
# Score: 10
| 30
| 77
| 0.788889
| 11
| 90
| 6.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02381
| 0.066667
| 90
| 2
| 78
| 45
| 0.821429
| 0.944444
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
3a095de901b7c11af11b3186cc279cbac8e5b886
| 210
|
py
|
Python
|
flaskr/models/__init__.py
|
jeovazero/zoas-store-api-graphql
|
c2ef77a2b7abdfae7b492f901c879fd2d4f9e889
|
[
"MIT"
] | 3
|
2019-10-23T07:15:01.000Z
|
2020-05-18T16:11:31.000Z
|
flaskr/models/__init__.py
|
jeovazero/zoas-store-backend
|
c2ef77a2b7abdfae7b492f901c879fd2d4f9e889
|
[
"MIT"
] | 11
|
2019-04-23T23:50:53.000Z
|
2019-05-04T15:23:16.000Z
|
flaskr/models/__init__.py
|
jeovazero/zoas-store-backend
|
c2ef77a2b7abdfae7b492f901c879fd2d4f9e889
|
[
"MIT"
] | 1
|
2019-10-23T07:15:07.000Z
|
2019-10-23T07:15:07.000Z
|
from .product import ProductModel
from .photo import PhotoModel
from .cart import CartModel
from .product_cart import ProductCartModel
__all__ = ["ProductModel", "PhotoModel", "CartModel", "ProductCartModel"]
| 30
| 73
| 0.804762
| 22
| 210
| 7.454545
| 0.454545
| 0.134146
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109524
| 210
| 6
| 74
| 35
| 0.877005
| 0
| 0
| 0
| 0
| 0
| 0.22381
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
3a25af7be837463c2312eede491dc60f14c4d430
| 77
|
py
|
Python
|
csv_to_html.py
|
Apex8/Web-Design-Challenge
|
92cf4be1c590d67539d6370a9d33329d780feb1f
|
[
"ADSL"
] | 1
|
2020-11-03T19:42:52.000Z
|
2020-11-03T19:42:52.000Z
|
csv_to_html.py
|
Apex8/Web-Design-Challenge
|
92cf4be1c590d67539d6370a9d33329d780feb1f
|
[
"ADSL"
] | null | null | null |
csv_to_html.py
|
Apex8/Web-Design-Challenge
|
92cf4be1c590d67539d6370a9d33329d780feb1f
|
[
"ADSL"
] | null | null | null |
import pandas as pd
pd.read_csv('Resources/cities.csv').to_html('table.html')
| 38.5
| 57
| 0.779221
| 14
| 77
| 4.142857
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051948
| 77
| 2
| 57
| 38.5
| 0.794521
| 0
| 0
| 0
| 0
| 0
| 0.384615
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
|
0
| 4
|
28e519a98aef0934b9d375cfadf4d8bfc70673ba
| 402
|
py
|
Python
|
permission_rules/app_settings.py
|
speechki-book/drf-permission-rules
|
97d989a842bcf10eeb6682680e8c14c5dbdc28b2
|
[
"MIT"
] | 1
|
2020-07-10T18:49:45.000Z
|
2020-07-10T18:49:45.000Z
|
permission_rules/app_settings.py
|
speechki-book/drf-permission-rules
|
97d989a842bcf10eeb6682680e8c14c5dbdc28b2
|
[
"MIT"
] | null | null | null |
permission_rules/app_settings.py
|
speechki-book/drf-permission-rules
|
97d989a842bcf10eeb6682680e8c14c5dbdc28b2
|
[
"MIT"
] | 1
|
2021-05-20T10:25:52.000Z
|
2021-05-20T10:25:52.000Z
|
from django.conf import settings
if hasattr(settings, "PERMISSION_RULES_SETTINGS"):
PERMISSION_RULES_SETTINGS = settings.PERMISSION_RULES_SETTINGS
else:
PERMISSION_RULES_SETTINGS = {
"use_redis": False,
"prefix": "permission_rule_",
"redis": {
"host": "localhost",
"port": "6379",
"db": 0,
"password": ""
}
}
| 25.125
| 66
| 0.572139
| 36
| 402
| 6.083333
| 0.611111
| 0.273973
| 0.420091
| 0.424658
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017921
| 0.30597
| 402
| 15
| 67
| 26.8
| 0.767025
| 0
| 0
| 0
| 0
| 0
| 0.228856
| 0.062189
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.071429
| 0.071429
| 0
| 0.071429
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
e901ec8fdf7327baa2ad9b4ded67d88a64c94d90
| 127
|
py
|
Python
|
env_old/lib/python3.5/site-packages/netmiko/dell/__init__.py
|
gerards/pynet_learning_python
|
eaa52cd58cd2f49e0d5e8ccec3795a1098b08f20
|
[
"Apache-2.0"
] | null | null | null |
env_old/lib/python3.5/site-packages/netmiko/dell/__init__.py
|
gerards/pynet_learning_python
|
eaa52cd58cd2f49e0d5e8ccec3795a1098b08f20
|
[
"Apache-2.0"
] | null | null | null |
env_old/lib/python3.5/site-packages/netmiko/dell/__init__.py
|
gerards/pynet_learning_python
|
eaa52cd58cd2f49e0d5e8ccec3795a1098b08f20
|
[
"Apache-2.0"
] | null | null | null |
from __future__ import unicode_literals
from netmiko.dell.dell_force10_ssh import DellForce10SSH
__all__ = ['DellForce10SSH']
| 25.4
| 56
| 0.850394
| 15
| 127
| 6.466667
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052174
| 0.094488
| 127
| 4
| 57
| 31.75
| 0.791304
| 0
| 0
| 0
| 0
| 0
| 0.110236
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e9036e118969aad6d3f8dea398373ef559bd5ada
| 97
|
py
|
Python
|
LoginManage/apps.py
|
fox-ahri/ahri-auth
|
1f7159c48138d150c36092a1ac00c6824b0dd390
|
[
"MIT"
] | null | null | null |
LoginManage/apps.py
|
fox-ahri/ahri-auth
|
1f7159c48138d150c36092a1ac00c6824b0dd390
|
[
"MIT"
] | 5
|
2021-03-19T01:20:00.000Z
|
2021-06-10T18:48:25.000Z
|
LoginManage/apps.py
|
fox-ahri/ahri-auth
|
1f7159c48138d150c36092a1ac00c6824b0dd390
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class LoginmanageConfig(AppConfig):
name = 'LoginManage'
| 16.166667
| 35
| 0.773196
| 10
| 97
| 7.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154639
| 97
| 5
| 36
| 19.4
| 0.914634
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e91314613519e21a801bea150ef67ad7d14bd0c7
| 109
|
py
|
Python
|
python/testData/resolve/multiFile/importOsPath2/yos.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2018-12-29T09:53:39.000Z
|
2018-12-29T09:53:42.000Z
|
python/testData/resolve/multiFile/importOsPath2/yos.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/resolve/multiFile/importOsPath2/yos.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
import sys
if True:
import ypath as path
else:
import zpath as path
sys.modules['yos.path'] = path
| 12.111111
| 30
| 0.678899
| 18
| 109
| 4.111111
| 0.611111
| 0.162162
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.238532
| 109
| 8
| 31
| 13.625
| 0.891566
| 0
| 0
| 0
| 0
| 0
| 0.073395
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
|
0
| 4
|
3a61e7e1d6367bf957950e0b70987c97f9a6e583
| 344
|
py
|
Python
|
Cloud/reset.py
|
JustinXWT/IE-ACHE
|
99bc9b94dd25a0442843e6f409e6bebd6885d1e4
|
[
"MIT"
] | null | null | null |
Cloud/reset.py
|
JustinXWT/IE-ACHE
|
99bc9b94dd25a0442843e6f409e6bebd6885d1e4
|
[
"MIT"
] | null | null | null |
Cloud/reset.py
|
JustinXWT/IE-ACHE
|
99bc9b94dd25a0442843e6f409e6bebd6885d1e4
|
[
"MIT"
] | null | null | null |
import os
try:
os.remove("answer.data")
os.remove("client.hacklab")
os.remove("opcode.hacklab")
os.remove("cloud.data")
os.remove("cloud.key")
os.remove("cloud.key.hacklab")
os.remove("postfix")
os.remove("postfix.hacklab")
os.remove("keyexchange.log")
os.remove("averagestandard.txt")
except:
pass
| 21.5
| 36
| 0.645349
| 45
| 344
| 4.933333
| 0.4
| 0.36036
| 0.27027
| 0.144144
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174419
| 344
| 15
| 37
| 22.933333
| 0.78169
| 0
| 0
| 0
| 0
| 0
| 0.380814
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.071429
| 0.071429
| 0
| 0.071429
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
3ab537c65110ea4b8adb7e3a6e01f463b78624c3
| 7,887
|
py
|
Python
|
tests/test_reflected_tables.py
|
edupo/sqlathanor
|
a5cfd349d092b25a3ffb3950b996b13878e1db17
|
[
"MIT"
] | 101
|
2018-07-21T00:20:59.000Z
|
2022-02-09T21:33:09.000Z
|
tests/test_reflected_tables.py
|
edupo/sqlathanor
|
a5cfd349d092b25a3ffb3950b996b13878e1db17
|
[
"MIT"
] | 85
|
2018-06-16T02:15:08.000Z
|
2022-02-24T14:57:24.000Z
|
tests/test_reflected_tables.py
|
edupo/sqlathanor
|
a5cfd349d092b25a3ffb3950b996b13878e1db17
|
[
"MIT"
] | 6
|
2018-07-25T09:51:02.000Z
|
2022-02-24T14:04:27.000Z
|
# -*- coding: utf-8 -*-
"""
******************************************
tests.test_reflected_tables
******************************************
Tests for declarative :class:`BaseModel` and the ability to retireve serialization
configuration data when using
:doc:`reflected tables <sqlalchemy:using-reflection-with-declarative>`_.
"""
import pytest
from sqlathanor import Column
from sqlathanor.errors import UnsupportedSerializationError
from tests.fixtures import db_engine, tables, base_model, db_session, \
model_reflected_tables, instance_complex
@pytest.mark.parametrize('test_index, expected_result, column_names', [
(0, True, ('id', 'username', 'password')),
(1, True, ('id', 'username', 'password')),
])
def test_model___serialization__(request,
model_reflected_tables,
test_index,
expected_result,
column_names):
target = model_reflected_tables[test_index]
result = hasattr(target, '__serialization__')
assert result == expected_result
for column_name in column_names:
assert hasattr(target, column_name) == True
@pytest.mark.parametrize('use_meta, test_index, format_support, exclude_private, expected_length', [
(False, 0, {
'from_csv': None,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, True, 0),
(True, 0, {
'from_csv': True,
'to_csv': True,
'from_json': True,
'to_json': True,
'from_yaml': True,
'to_yaml': True,
'from_dict': True,
'to_dict': True
}, True, 0),
(False, 0, {
'from_csv': True,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, True, 3),
(False, 0, {
'from_csv': None,
'to_csv': False,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, True, 4),
(False, 0, {
'from_csv': True,
'to_csv': False,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, True, 1),
(False, 0, {
'from_csv': None,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': True,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, True, 3),
])
def test_model__get_declarative_serializable_attributes(request,
model_reflected_tables,
use_meta,
test_index,
format_support,
exclude_private,
expected_length):
if not use_meta:
target = model_reflected_tables[0]
else:
target = model_reflected_tables[1]
result = target._get_declarative_serializable_attributes(
exclude_private = exclude_private,
**format_support
)
print(result)
print(target.__serialization__)
assert len(result) == expected_length
@pytest.mark.parametrize('use_meta, test_index, format_support, expected_length', [
(False, 0, {
'from_csv': None,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 0),
(True, 0, {
'from_csv': True,
'to_csv': True,
'from_json': True,
'to_json': True,
'from_yaml': True,
'to_yaml': True,
'from_dict': True,
'to_dict': True
}, 0),
(True, 0, {
'from_csv': True,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 0),
(True, 0, {
'from_csv': None,
'to_csv': False,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 0),
(True, 0, {
'from_csv': True,
'to_csv': False,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 0),
(True, 0, {
'from_csv': None,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': True,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 0),
(False, 0, {
'from_csv': None,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 0),
(True, 1, {
'from_csv': True,
'to_csv': True,
'from_json': True,
'to_json': True,
'from_yaml': True,
'to_yaml': True,
'from_dict': True,
'to_dict': True
}, 4),
(True, 1, {
'from_csv': True,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 4),
(True, 1, {
'from_csv': None,
'to_csv': False,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 2),
(True, 1, {
'from_csv': True,
'to_csv': False,
'from_json': None,
'to_json': None,
'from_yaml': None,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 1),
(True, 1, {
'from_csv': None,
'to_csv': None,
'from_json': None,
'to_json': None,
'from_yaml': True,
'to_yaml': None,
'from_dict': None,
'to_dict': None
}, 5),
])
def test_model__get_meta_serializable_attributes(request,
model_reflected_tables,
use_meta,
test_index,
format_support,
expected_length):
if not use_meta:
target = model_reflected_tables[0]
else:
target = model_reflected_tables[1 + test_index]
result = target._get_meta_serializable_attributes(
**format_support
)
for item in result:
print(item.name)
assert len(result) == expected_length
@pytest.mark.parametrize('use_meta, test_index, expected_length', [
(False, 0, 3),
(True, 0, 0),
(True, 1, 5),
])
def test_model__get_attribute_configurations(request,
model_reflected_tables,
use_meta,
test_index,
expected_length):
if not use_meta:
target = model_reflected_tables[0]
else:
target = model_reflected_tables[1 + test_index]
result = target._get_attribute_configurations()
print(target.__dict__)
for item in result:
print(item.name)
assert len(result) == expected_length
| 27.385417
| 100
| 0.484595
| 817
| 7,887
| 4.350061
| 0.106487
| 0.0861
| 0.050647
| 0.059088
| 0.754643
| 0.731007
| 0.707935
| 0.697805
| 0.685706
| 0.674733
| 0
| 0.010474
| 0.382655
| 7,887
| 287
| 101
| 27.480836
| 0.71945
| 0.040953
| 0
| 0.839844
| 0
| 0
| 0.181337
| 0
| 0
| 0
| 0
| 0
| 0.019531
| 1
| 0.015625
| false
| 0.007813
| 0.015625
| 0
| 0.03125
| 0.019531
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 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
| 4
|
3ad3edf517a145fe552399791af71387eb371841
| 379
|
py
|
Python
|
mnn_core/nn/criterion_modules/__init__.py
|
Acturos/moment_neural_network
|
c5074b14970f16a007ba5091b07127c4645cd50e
|
[
"MIT"
] | 1
|
2021-03-02T07:39:53.000Z
|
2021-03-02T07:39:53.000Z
|
mnn_core/nn/criterion_modules/__init__.py
|
Acturos/moment_neural_network
|
c5074b14970f16a007ba5091b07127c4645cd50e
|
[
"MIT"
] | null | null | null |
mnn_core/nn/criterion_modules/__init__.py
|
Acturos/moment_neural_network
|
c5074b14970f16a007ba5091b07127c4645cd50e
|
[
"MIT"
] | 2
|
2021-03-02T07:40:01.000Z
|
2021-03-02T09:14:51.000Z
|
from .likelihood_mse import LikelihoodMSE
from .cov_kl_div_loss import CovKLDivLoss
from .label_smoothing import LabelSmoothing
from .geometry_probability import geometry_prob_vec, GeometryCrossEntropy, shift_vec, GeometryMSE
from .wassertein_loss import WasserteinDistLoss, WasserteinDistPredict
from .density_based_crossentropy import DensityPredict, DensityCrossEntropyLoss
| 42.111111
| 97
| 0.889182
| 41
| 379
| 7.926829
| 0.682927
| 0.061538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081794
| 379
| 8
| 98
| 47.375
| 0.933908
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
3ada9f887af29e436d9267a81315e68a0e5ec19a
| 52
|
py
|
Python
|
voiceplay/player/tasks/__init__.py
|
tb0hdan/voiceplay
|
3e35a25cfcf982a3871cf0d819bae4374ee31ecf
|
[
"Unlicense"
] | 2
|
2017-03-22T10:02:07.000Z
|
2020-08-02T11:56:47.000Z
|
voiceplay/player/tasks/__init__.py
|
tb0hdan/voiceplay
|
3e35a25cfcf982a3871cf0d819bae4374ee31ecf
|
[
"Unlicense"
] | 69
|
2016-12-10T22:27:47.000Z
|
2017-12-14T05:15:43.000Z
|
voiceplay/player/tasks/__init__.py
|
tb0hdan/voiceplay
|
3e35a25cfcf982a3871cf0d819bae4374ee31ecf
|
[
"Unlicense"
] | null | null | null |
#-*- coding: utf-8 -*-
""" Player tasks package """
| 17.333333
| 28
| 0.538462
| 6
| 52
| 4.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023256
| 0.173077
| 52
| 2
| 29
| 26
| 0.627907
| 0.826923
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
3adc8e5c34adf243976af806ba1f552c837bbd43
| 184
|
py
|
Python
|
packages/pyright-internal/src/tests/samples/inconsistentSpaceTab2.py
|
martindemello/pyright
|
4fe3f1f7c08f139715701fdf746183062b5165ff
|
[
"MIT"
] | 4,391
|
2019-05-07T01:18:57.000Z
|
2022-03-31T20:45:44.000Z
|
packages/pyright-internal/src/tests/samples/inconsistentSpaceTab2.py
|
martindemello/pyright
|
4fe3f1f7c08f139715701fdf746183062b5165ff
|
[
"MIT"
] | 2,740
|
2019-05-07T03:29:30.000Z
|
2022-03-31T12:57:46.000Z
|
packages/pyright-internal/src/tests/samples/inconsistentSpaceTab2.py
|
martindemello/pyright
|
4fe3f1f7c08f139715701fdf746183062b5165ff
|
[
"MIT"
] | 455
|
2019-05-07T12:55:14.000Z
|
2022-03-31T17:09:15.000Z
|
# This sample tests the reporting of inconsistent space/tab usage
# for dedent tokens.
if True:
if True:
print("False")
print("True") # Should generate an error here.
| 16.727273
| 65
| 0.679348
| 26
| 184
| 4.807692
| 0.846154
| 0.096
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.233696
| 184
| 10
| 66
| 18.4
| 0.886525
| 0.61413
| 0
| 0.5
| 1
| 0
| 0.134328
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
3af38cc3b84afbee4e71fd19072f045c8145e66e
| 9,681
|
py
|
Python
|
Day 03 - Beginner - Control Flow and Logical Operators/06_PROJECT_treasure_island.py
|
not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022
|
2c21c190ab756176bd7b577b3f8a0370b75c3828
|
[
"MIT"
] | null | null | null |
Day 03 - Beginner - Control Flow and Logical Operators/06_PROJECT_treasure_island.py
|
not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022
|
2c21c190ab756176bd7b577b3f8a0370b75c3828
|
[
"MIT"
] | null | null | null |
Day 03 - Beginner - Control Flow and Logical Operators/06_PROJECT_treasure_island.py
|
not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022
|
2c21c190ab756176bd7b577b3f8a0370b75c3828
|
[
"MIT"
] | null | null | null |
print('''@#############################################################MMMMMMMMMMMMMMMMMMBBBBMMMMBB&AMBAHM###MMMMMMM#
@hG&&AA&&A&G&&&&GG&AA&&&&&AAAAAA&&&G&&&GGhh&AAAG93XX39h93X225iiiS5SSSSSSSiSiSSisssssiisssi:.;s;iXX25Sii25SSA
@hAAHAAHAHAAAAAAAAAAAAAAAAAAAAAAAHHHAAAG&&3Ssi5G&GG&&GG9333X2552222222255525rrSSS55SSSiSS5X;:Xri2SX252r ;A9A
@GAHHHHHHAAAAAAAAA&AAAAAAAAAHHHAh25iiS29B@Hr sAX9GAAGh3333XX22222XXX5iS55Sii552225SS2X2iih&A: ,;X22r:;:ihA
@GAAHHHHAAAAAGG&&&G&&&AA&AA&XSsii55Sirrrs&@#r s::::r53h9XX3X252252XX2SiiiiS55525SS5irr239GGAHX39222XA3,:hA
@3GAAAAA&AAAA&GGGGhhhGGGGG2i2hAAhir;:. G@9 .;....:;rr53X25SS5552225rrisiSSiiiiiiir:Shh9999;iX223G&hAA9&
@29&G933GAAAAA&Gh933393&MMM#@HXs:,:,, ,@@, r, ,;;;r52SiiSiiiiisrsiissssrsssSXh399X2222222X99hGAHh&
#5XX2X999hhGGGGGh33XXX2B#AH#MGir:::,,. r@A ,r ::,:iSisssrrsssssssrrrssss5X3XX2222riX2X3333G5.;&
#iS52XX222222X99993XX2X##323HMB9Sr;;;, &@; s, ;;.:srsssrrrrrrr;r;rrsiSS5522252222X3333X3h2:rG
#iS22255225222XXXXXXX5G@#X3#AGAB#A2rrr;, ,@A. ;s, .AS ssrssrrrrrrr;rrrssiiSSiS555222sr9XXX339GA3G
#s52222222552XXXX22225M@Ai####H3X3hAAG2i;, ,#@r. :Sr. ,;; ,srrr;rr::;;;rrrrssiiiiSS55222XSs22S2399332h
#s522222255SSSS22252SX@@2;MAX29H#B&XS2HA&32ssA@X;:;Xs;::;sirr::r5rrrr;;;:::;;rrrrrsssssiSSSri3X95S3X33XXXX59
#s5X22222255SiiiSSSSiA@@;5#Xr;;;r5&MMH@#3S5H&B@@2:,SMhSSi:i2ss;.rsrr;;;;;;;;rrrrrrsssii5252rsXXis933X22XX2i3
#i52222222225SSiiiiis#@B:HMXs:,,,...:r2B@@##AA@A;.. @@A2Sr;, .ssr;;;;;;;rrrrr;,,rsiSSi:rX3X23i;XX255225SsX
#i52222222225SSiiisr5@@&r#HXr;:: .;h@@@@G: #A:, rSr;;;;;;rr;rrrr;..riSi,;;;2X22X9hXX2555Siir2
#i5XXXX2222555Siiis;A@@9i#G2ir;;,. :A#@A. A; .ir;;;;;;rs;:rrrrr::sSiS;;93X2X922X2225SSiiir2
#i2XXXXXXX2255SSiirr##@3XB35Siii;:,.. h#@h;. ,B, :r;;;;;;rrrrrrrrsi;r5iS232Sr.i2r;;25,:2, s5is2
#SX9X33XXXXX255SisiB@##&&AX2SiiSi;;:. ,A#@X; ;A. ..;r;;;;rrrrrrrrrsr;ri22222Si::X5,r5Ss:rSr;sr X
@23h333333XX225SirB@###AH&X2ssrrs;;:...,. rA#@5;, X9, . rr;:;rrrrrrrrrsisrSrr55522X5iiX32SSss5ir2srrrX
@39hhhh9333XX25isr#@MGB#M&2irr;;;::;,,,,:,,iH@#i:, A2:,,. .rrr;;rrrrrrrrrsriS5s;5SS5irX2525iiS5SSSSSS5X23
@X9GGGG993XXX2Siri@##s:A@#G5sr;:,::::;:,. .5#@Mr:,,BS;;:, .,;rrrr;;;;rrr;rssrsiS5iriSSSS55SiiiSiiiSSiiS22SX
@XhG&&GGh93X25Sir9@#B9XAH&#@HXi;:,,,,,,,,,;G##A;:,iMrrr;:..:rirr;;;;,;rr;,r;;siiiir;iiiiiiiiiSSiiiSSSiS2XXiX
@3h&&&GGh93X25Sir3@#HhA@M2:;B@@#AXr,.,,,, :A##3;;;AHsr;:;rr3X:r;;;;;;rr;:rrrrsrssssiiisssssiiiiiiSSSS22XX2iX
@3h&AGhh9XXX25Sir3@##&B#AGhsi2A#@@@#Ah9&hi2##M3r;r#Mh95i9A&2 ,;;;;;;;;;;;;rsisrrrrsssrsssssissssiiSS52XX25s2
@3GA&Gh933X225Si;&@#AAM##Gi;..,:;;rS3GH#@@@@##@MB#@MAHBH&S: :r;;;;;;:,:r;;;,..rrrrrrrrrr,;ssrrsssii552225Sr5
@3GGGGh993X22SSi;X@MGAAXG#BS:. :9M2:,,2@r.;;, ;;;::::;,:;;;;: ,:;;;;;;r;;rr;rrrsiiiS55SSSirS
@3hhhhh93XX25Sis;&@MBBAr.rH@#hr, i@#X, :Mr. :;:,:::::,:;;;;;;rr:,:,;;;;;;r;;,;rrrsssiiiiiis;S
@X39h9933X22SSisrM@MAH#M9iX@@@@B5r:, .i@Hr: rs .;: ;;s222srrr:,,,::::;:,:::,;. :;;;;;;;;rrrsrrrsrr;i
@X99993XX225SSiri@#AXAMM#BXh@@@@@@@@#BGX2SAM#&;rXG;:SB@@@sr2M@@#2:sXAHhi;;;;r. ;;::,,,,::,,:;iS23h22s;rr;;:s
@X993XXX225SSisr3@#BAHBXSX2;;h##@@@@@@@@@@#M@#X&@@@@@@@H. ;G@MB&;;2isS9HMHA3i:;XHMXis,,:,;S&&3##H2;:,:::,::s
@X393X2225Sii35s&###BMM3sr;r5H#&ii5GMBAM@@@#@@H@@@Hr. ;i r##GGr ;srr;;,, :. :rsXM92@HGA#@@2 .hH&G&hX5i593SS
@2X3XX225Sii2#@@#HH###Mh2i;,;HAs:. ,,,:5ABX;,.Xi 2 2@A&G3Srrrr:::,,:::,,;iAAM@@@@@#HH3iGG99h&H##AX;, r
@2XXX22SS2A#@@@@##M###M&hhiri#&:., :A@Bi: ;r i:5@B3sX25ir;;:,,,,,,,:.:sS&h#@@#MHA&AHGXXX3hhG&3srr;s
@2XX255XhM@@@@#######@@#HAhX&@Hr:;: .H@X:is;r:. :S5@MGr.:;;:,:r;;r;,. .:. s2H@#@@MA&G&&Ss33333h99G&GH#A
@2Xh93MBA@@@#######BB#@@@BAAM#AXi;rr. .A@9:,::r:. S3#AX;,.. .,,.:s;,:,, .rs:2A@@Mr;GAGh9h;:3XXi.S33GAA&3&
@X2Si29A@@########B95XB@@@BBB#B&&Srs; .S#@MA2;rr. :MAGs:,.,,,,::, ,:.:r5r;9A2XM@#&..&BAGG&A&933X2X3X9hAHHH
#3h2SisSB#BBM##M###A52M#M@##MH&3Xir;:,,;X@#i;;:S; .HH5i, .,:,::,;, .;;s2939#H9A@@#@@@BG9X999333339X222X9hGH
#2M###A9XBMM#BHBMMMAA##AXG@###ASr;;;:,:;3#3;:,;G;,:AArrr..::;,;:.:;,rh5s9AAM#A&##HHHHAh3XXX3GG3393X2X3X2252A
#sA#M#@#AA#@#&AHAHHH##HA5.:M#3A@hr;;::,:9MAi5,S2:;Ghr;s;,:;:;:;;;;rr3hiiAHAAAXA#MBHAAh9hhGGs :XG9339Gh3XX99A
#iGA2hHMBHHAGGAAGGH#@BAB3 i@@r:M@9r::,:9#B:,:&r;A2s;rssr;;;::srrss5hXiXABBBHB@MHA&AA&&&&&&i iAhGAAG3XXX39A
@2AHir59MB5rsXAMBAM#AGGAX:;Ar.s, rGM9r:sX#G;.2@BGX;r,;i32iir;r5r5X2AAS2#@@####MMBAGGGX23X9&AMHA&&GhhX22XGAAB
@GHAirShHASi2&&AAAAA99hXsiMG .9#G&@@@#@##B2r@#Ss;;: ,iXXXh2rhh2&GAH2SM@@###MHAAAAhh99h&HiiBHHA&Ghhh9GAAHAAB
@AAA9GHAHMHBBAhGA&H@BGHHA@@5SB@@@##MBMMBHAB&Xr,,,,;,.rXrShh5S9SX3G&s5@@@#MBHHHAA&GAAAAHAA99BAA&&GGGh3hGAAAAH
@9&HMBBAMBMBAhAA93&BHGGhAB#M@@M35sr;;:;rSXX;. ,.,;:;X&S9XsrsriA@A;s@@#MMMBHHHHBh;X&&&AX;iHG&&&GhhGGAAAAAHHM
@9AMMMBAhX523&AXS2hhXXhhXX9GGh5srr;;::;i93r:.:2SrS35iA&GAi;r5SH#5:i@@#MBBB#MBHBBM9BBA22BMBAGG&AAHMBAAG9hh&AB
@GGAA32sr;;sSii2XG9irS5522X3XX99hGA&&9hAhS;:;X9siA&52A222Si3AA2;i33@#ABMBH&GHHX3BHM##MX9&AHBHHB#@G3HH&G93X2A
@#H&h333335iiiXX3S;;ihSsi5X9hhh&A&G9GGh2sr;rAA22h5:;3HA3i3MBAX9@@@##BBM2hMS9HHSriAsGBM#BAGAHMM#2 .GAHAAGXA
@BMMM#MAAA9Xh&3h2si5XG5sr;;rsiisssiSirrrsrXBA9GA5::2H9&A2SXG#@@@@@##MBM55MHM##@@#@#G&AHHAAAAB@s G#AHAHBB
@&ABB#####HH&X399G3X22iS5Sr:;;::sSSs;ri52GH&h3X2SXG95r:,sA..:s9A#@@#@MM@@M###@H. 2@MAAHHHB## :;sA@@#BHA&B
@&A&AHBM#@@@@MHAGGh3222239X25ShMX552hHHB#@#&GAHMBG5r:,s#@X.:;;;2@@BB##@####MM@ S@@#####@B ,X@@##MMBAB
@A&HBHMMBH##@@#MMM##@@@A9A#HG@@@@GAHH#@#&X5SsiXS;, :B@@r .... r@G;H@####BMB#@: ,rr;2@@@@@@@@2;sH@#@@MMMBBAB
@AB#HAHBBH2G2S5X3933hAMMAGX5s#@@@s;rr;::... .9@@X S#@#####M#@@ ,rs.r@@@@#2s:rG@@#@##HBBBAB
@HMM359GAirs;;rr;;;;:::::,,, G@@@: ,2H@@M. :, ;H@@#####@@@ ;Si;X; s. i@#&B@MHHHAM
@ABX2@&s;:;;rr;::,,. #BA#, 2@@@BBB . :rrSir;:9@@#####@@@..;;2r i ;2M@#H#MHHHHAB
@&Xrr9@@B2r;,.,... r@93M; ;#@#BBXr ....:H#5M###@@2.;;.;r. S#AGH@@MHHM@#BAHAB
@r;sirS@@@@@&: ... ..... ,@AA#H h@@BA#s .,, ;Hi#@@@3 r92:GG@@@@@@#&M#HBMMA&B
#r532i;:A@@@@@5 .,:::;;:,.. 5@HH#@, ,HB&AA#2 ..,r. 2@. . ;A#HB@@@@@@@M@B##MAGHBB
#S22i;;,.:i@@@@@r, ,@#M#@@ 5@@AhAA: ... Xr :, 3M3s@@@@#M@#@BH#HH#MhH
#iiirrr;:. 2@@@@@&s: .. B@#@@@; .B@Bh9A9 ,,r..r. ,A; .r. ,2AAM@@@@@@M@AA99MAMHM
#sssssrr;:,. 3@@@@@@@; 5@3rrsX#@@@A3r2& ., ...,r:rh, XA;:,. r&MM@@#@@H#A&H929G#AB
@iSisrrr;;;,. r@@@@@@@@&Sh@B, ..:s&#B&M s&; .:r;2, i2rsX; ,5;2hs;XGH#@@@@MM#BB#9hhX&5A
#iSisrrrr;;::, ,r9@@@@@@@2.,;;;;rr:..i#@5 . .. :XBX; :;. ;Air;,s:,H@@@M#h 2@@@@@#A@B&3SA
#iiirrr;;r;;:, ,A@@@M;5X222H@B3ir:3@#2AHHAA&GG9#r . .9hA@@#9s ;r. .2,r@@A5X3@@#@#. 5@@@@@@@@@#HAXA
@SSiisisr;;:,.. :#@#H@@BHHA@@@@@, M@@@@@@@@@@@@#&i :;2@@#B@#X; , ,sH#A#@#XG##AB@X .;Sh&@@@@B&A
@XXXXXSr;:::,,:::::,,:;rH@M@@@#35A&s29i,,@@#AM@@@@@@@@@@@@@5 . .#@@s , ,. .H@@HhX3HMH3S5#@B; s@@#H
@&&h2s;;;;;;;;r;;r2H@@@@@@XhHMhGA@2;59GA9@@@MGSr;:,,,,,,r#@@#s: , r@@#@53:s,A@@@#AAHHhXi:,s@@#r 2@#
@XXSrr;;;rrsrrS&@@@@@@@@@@M&AHB#@#&hGG92r2@s 9@@@Ar . .A@@@@#@###M###MBAh99i;.,5@@X:, :. :@
@iissiissiS3M@@@@@@@@@@@#@@G&hG#MMHA2r;:,h#B5 S@@@#&:rAB@@@@@@@##A&&ABMHh3GGS;. .3@B;:;, sA,X
@issS252&#@@@@@@@@#H3Sr.,#@2isssi2;::,.:h#AH@@i ,9@@@@@@@@@@@@@#A3X3&H#MHAGh2s;. ,9#5,;;.;AG
#rs552B@@@@@@B9Sr;:.. ;@@@#Srr;:,,,.,&HBA59H#@B. .2BX, ,2AB##&iiX39HMHHh32r:. .9#r.,:5h
#59A@@@@@B3ir;:::,:::,i@@@@@@@GSsrrs3@9 . 5#MM@@i .iH@AsrssSAHA#A&2;, ,AG;2;r
@h#@@#&2isrr;;;:;;;r;r@@@@@@XA@@@@@@@, .i@@#@@#: ..,.,::..rh@#XsrrSAAG@BAs:, r@@ :
@AMHhX2Ssrrrrrrssiii9@@@@@@r :@@@@@A .. .M@@@@@&; .,,;;rrr;S5##S;;riA3X@#As:, :@2 .
@AA&32irrrrsi5222iS#@@@@@@r ,..@@@#@A ... ;hM@@@@@X :r25is;##, :;sBS2@#ASr:::,:h& :
@GG32Siiii52X22i;2@@@@@@9. .. ##AA#5 r@@@@@; ... .... ,;s5X:;;#A .;s#i5#HG2iss2M&. :
@9hh3XX39h925Ss;A@@@@@X. .. S@BH#2 A@#@@h ...... ..:;rrsX: r:#A ,;#r2#AAAM@@2: . i
@&HBHHHAGXSsssr#@@@@h, ,:::;:..@@@@@ .,,,,..... ;h@@@@, .:::....;siri, ;,#H, :M;A#B#@3;;:r,;@
@A##BHAGX55SSr2@@@A;,:riiSiiisr,r@@@@i,;;;;:;;,,:;::, .s#@@A .:;rr:,:;;i@,ii,MHr,:rB#i#@9r:,.r,;@@
@A##BA&9X2225rB@@G:ri522222255ir:@@@@3;s;ssrr;,.,,,. i@@2,... .,;iSi;:r@@@@S,&h&@@#@##M2i ,:X@@#
@&HMHG3Xisiir#@&s:;rssrrr;::;r;;,&@@@G.:,,.. S;.,,:,,. ,r3&3rB@#5@h;rs9@#&32A#HSsG@@@XH
@&AB&3X2Sssri@s .,:::::::, ,,,. 5@MG. .,,::,:::::,.. .,,::::::;i2X@@#;s@#XS::53XS2M@@@@@MMAA
@AHA&G325Sisir,:::,,,,,.. @@9 ,;;;rsis;rr;;::,........... .:rirr;rr;9@@@H#@@@MAM@@@@@@@@@@@MB#
@h3XXX333X2ir;;;;;;;;;:,,,,,,... A@@,;rsiiSSiiiir..:,.. ..,:;;;;rsiri&###@#@@@@@@@@@@@@@2r293iH
#255issiiSSSiisr;;;;::;,:;;;;rrrrriBHsssi;,;rrrr;;;:::,,,.. .,::;;rrrs2BMBMMMMBMM#@@@@@@@#9XS292A''')
print('''The way I see it, our fates appear to be intertwined.
In a land brimming with Hollows, could that really be mere chance?
So, what do you say? Why not help one another on this lonely journey?''')
choice = input('Choose fellow warrior.\nYes or No?\n').lower()
if choice == 'yes':
print('Lets get going then.')
print('I am bored now, so bye lul.')
else:
print('Ahh warrior, so you decided to continue your own adventure. \
Then I shall not bother you for I too have to seek my own sun')
| 98.785714
| 117
| 0.520297
| 1,119
| 9,681
| 4.50134
| 0.54513
| 0.003176
| 0.001191
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134495
| 0.140585
| 9,681
| 97
| 118
| 99.804124
| 0.470913
| 0
| 0
| 0
| 0
| 0.755319
| 0.974176
| 0.654271
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.053191
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
aaec161ee5100f375e91e1439bc4356d91007889
| 51
|
py
|
Python
|
types/__init__.py
|
StepaTa/vkbottle
|
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
|
[
"MIT"
] | null | null | null |
types/__init__.py
|
StepaTa/vkbottle
|
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
|
[
"MIT"
] | null | null | null |
types/__init__.py
|
StepaTa/vkbottle
|
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
|
[
"MIT"
] | null | null | null |
from vkbottle.types.events.events_objects import *
| 25.5
| 50
| 0.843137
| 7
| 51
| 6
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 51
| 1
| 51
| 51
| 0.893617
| 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
| 0
| 0
|
0
| 4
|
c91075949ddfabd86561cd3279603f37db742411
| 631
|
py
|
Python
|
day03/index.py
|
zhangyage/Python-oldboy
|
a95c1b465929e2be641e425fcb5e15b366800831
|
[
"Apache-2.0"
] | 1
|
2020-06-04T08:44:09.000Z
|
2020-06-04T08:44:09.000Z
|
day03/index.py
|
zhangyage/Python-oldboy
|
a95c1b465929e2be641e425fcb5e15b366800831
|
[
"Apache-2.0"
] | null | null | null |
day03/index.py
|
zhangyage/Python-oldboy
|
a95c1b465929e2be641e425fcb5e15b366800831
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
在python文件中,如果我们要使用某个文件夹中的模块(py文件),这个文件必须是个包,及文件夹下面要有一个__init__的文件
'''
from day03 import demo #导入模块
demo.FOO()
print 'index' ,__name__ #判断对应的文件是不是主文件
'''
def FOO():
print "看到我了吧"
print 'demo' ,__name__
当代码如上的情况时候,输出结果为:
看到我了吧
demo day03.demo #通过木块导入的时候对应的__name__就是file.demo
index __main__
'''
if __name__ == "__main__": #标准的入口程序都需要添加
pass
print __file__ #输出 D:\workspace\Python-oldboy\day03\index.py
#输出当前文件的路径
print __doc__ #输出在python文件中,如果我们要使用某个文件夹中的模块(py文件),这个文件必须是个包,及文件夹下面要有一个__init__的文件
#输出文件的注释
| 21.033333
| 99
| 0.678288
| 70
| 631
| 5.542857
| 0.628571
| 0.103093
| 0.149485
| 0.201031
| 0.237113
| 0.237113
| 0
| 0
| 0
| 0
| 0
| 0.013944
| 0.204437
| 631
| 29
| 100
| 21.758621
| 0.758964
| 0.315372
| 0
| 0
| 0
| 0
| 0.068063
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.142857
| 0.142857
| null | null | 0.428571
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
|
0
| 4
|
c93cc53cc7be79b43e47e38ea8af872d051ae909
| 1,855
|
py
|
Python
|
src/python/T0/WMBS/Oracle/RunLumiCloseout/CheckActiveSplitLumis.py
|
silviodonato/T0
|
a093729d08b31175ed35cd20e889bd7094ce152a
|
[
"Apache-2.0"
] | 6
|
2016-03-09T14:36:19.000Z
|
2021-07-27T01:28:00.000Z
|
src/python/T0/WMBS/Oracle/RunLumiCloseout/CheckActiveSplitLumis.py
|
silviodonato/T0
|
a093729d08b31175ed35cd20e889bd7094ce152a
|
[
"Apache-2.0"
] | 193
|
2015-01-07T21:03:43.000Z
|
2022-03-31T12:22:18.000Z
|
src/python/T0/WMBS/Oracle/RunLumiCloseout/CheckActiveSplitLumis.py
|
silviodonato/T0
|
a093729d08b31175ed35cd20e889bd7094ce152a
|
[
"Apache-2.0"
] | 36
|
2015-01-28T19:01:54.000Z
|
2021-12-15T17:18:20.000Z
|
"""
_CheckActiveSplitLumis_
Oracle implementation of CheckActiveSplitLumis
Check active split lumis for completetion and delete if complete.
An active split lumi is complete if the number of complete
file records is equal to the total numbers of streamer files
in that lumi.
"""
import time
from WMCore.Database.DBFormatter import DBFormatter
class CheckActiveSplitLumis(DBFormatter):
def execute(self, conn = None, transaction = False):
sql = """DELETE FROM lumi_section_split_active
WHERE ( lumi_section_split_active.subscription,
lumi_section_split_active.run_id,
lumi_section_split_active.lumi_id )
IN (
SELECT lumi_section_split_active.subscription,
lumi_section_split_active.run_id,
lumi_section_split_active.lumi_id
FROM lumi_section_split_active
INNER JOIN wmbs_sub_files_complete ON
wmbs_sub_files_complete.subscription = lumi_section_split_active.subscription
INNER JOIN wmbs_file_runlumi_map ON
wmbs_file_runlumi_map.fileid = wmbs_sub_files_complete.fileid AND
wmbs_file_runlumi_map.run = lumi_section_split_active.run_id AND
wmbs_file_runlumi_map.lumi = lumi_section_split_active.lumi_id
GROUP BY lumi_section_split_active.subscription,
lumi_section_split_active.run_id,
lumi_section_split_active.lumi_id
HAVING COUNT(*) = MAX(lumi_section_split_active.nfiles)
)
"""
self.dbi.processData(sql, binds = {}, conn = conn,
transaction = transaction)
return
| 39.468085
| 98
| 0.628571
| 202
| 1,855
| 5.39604
| 0.336634
| 0.151376
| 0.220183
| 0.302752
| 0.423853
| 0.295413
| 0.244954
| 0.244954
| 0.244954
| 0.244954
| 0
| 0
| 0.329919
| 1,855
| 46
| 99
| 40.326087
| 0.876911
| 0.14717
| 0
| 0.178571
| 0
| 0
| 0.795931
| 0.441195
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035714
| false
| 0
| 0.071429
| 0
| 0.178571
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c955a0e7146a2734a9da84a958ac041c3a693d74
| 159
|
py
|
Python
|
alicefluentcheck/chain.py
|
KrapivinAndrey/YaAlice_FluentTesting
|
41317766fac51f7d1fcd947b02e1e75a6c3c4158
|
[
"MIT"
] | null | null | null |
alicefluentcheck/chain.py
|
KrapivinAndrey/YaAlice_FluentTesting
|
41317766fac51f7d1fcd947b02e1e75a6c3c4158
|
[
"MIT"
] | 1
|
2022-02-19T16:47:47.000Z
|
2022-02-19T16:47:47.000Z
|
alicefluentcheck/chain.py
|
KrapivinAndrey/YaAlice_FluentTesting
|
41317766fac51f7d1fcd947b02e1e75a6c3c4158
|
[
"MIT"
] | null | null | null |
from functools import wraps
def chained(fn):
@wraps(fn)
def new(*args, **kwargs):
fn(*args, **kwargs)
return args[0]
return new
| 14.454545
| 29
| 0.572327
| 21
| 159
| 4.333333
| 0.571429
| 0.21978
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008929
| 0.295597
| 159
| 10
| 30
| 15.9
| 0.803571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0
| 0.714286
| 0
| 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
| 0
| 1
| 0
|
0
| 4
|
c9610727493c3a447e20463b0ec69064eed64ed8
| 39
|
py
|
Python
|
Lista4_01.py
|
NormanDeveloper/Lista4_Python
|
0b875026cac146145d52a1acdd3f3a05af2d9ccb
|
[
"MIT"
] | 1
|
2018-09-15T17:50:54.000Z
|
2018-09-15T17:50:54.000Z
|
Lista4_01.py
|
NormanDeveloper/Lista4_Python
|
0b875026cac146145d52a1acdd3f3a05af2d9ccb
|
[
"MIT"
] | null | null | null |
Lista4_01.py
|
NormanDeveloper/Lista4_Python
|
0b875026cac146145d52a1acdd3f3a05af2d9ccb
|
[
"MIT"
] | null | null | null |
lista = [1, 2, 3, 4, 5]
print(lista)
| 13
| 24
| 0.512821
| 8
| 39
| 2.5
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 0.25641
| 39
| 2
| 25
| 19.5
| 0.517241
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c963707c4cb0ec5949cf11f3b84cb2f8f29a0528
| 91
|
py
|
Python
|
StudyLog/apps.py
|
FrodoFK/ListShare
|
b5816688ad208afa9747303c3731bd91281b5e0a
|
[
"MIT"
] | null | null | null |
StudyLog/apps.py
|
FrodoFK/ListShare
|
b5816688ad208afa9747303c3731bd91281b5e0a
|
[
"MIT"
] | null | null | null |
StudyLog/apps.py
|
FrodoFK/ListShare
|
b5816688ad208afa9747303c3731bd91281b5e0a
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class StudyLogConfig(AppConfig):
name = 'StudyLog'
| 15.166667
| 33
| 0.758242
| 10
| 91
| 6.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164835
| 91
| 5
| 34
| 18.2
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a30f501f2a9525f67df40570bf4add7262a2e0ed
| 144
|
py
|
Python
|
setup.py
|
LaudateCorpus1/ppo-ewma
|
625dac7aceb9fb8bfdc3eff9dba597ec8f685ac7
|
[
"MIT"
] | 11
|
2021-10-06T01:04:24.000Z
|
2022-02-21T11:54:19.000Z
|
setup.py
|
LaudateCorpus1/ppo-ewma
|
625dac7aceb9fb8bfdc3eff9dba597ec8f685ac7
|
[
"MIT"
] | null | null | null |
setup.py
|
LaudateCorpus1/ppo-ewma
|
625dac7aceb9fb8bfdc3eff9dba597ec8f685ac7
|
[
"MIT"
] | 2
|
2021-12-24T04:43:11.000Z
|
2022-02-02T08:11:05.000Z
|
from setuptools import setup, find_packages
import numpy as np
setup(
name='ppo-ewma',
packages=find_packages(),
version='0.0.1',
)
| 18
| 43
| 0.694444
| 21
| 144
| 4.666667
| 0.714286
| 0.244898
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025424
| 0.180556
| 144
| 8
| 44
| 18
| 0.805085
| 0
| 0
| 0
| 0
| 0
| 0.089655
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.285714
| 0
| 0.285714
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
a338a035b1d7784f847a9db5cb326fe19932730d
| 329
|
py
|
Python
|
Filas_Columnas.py
|
allgonzalez/LFP_Proyecto1
|
162ec34cc0d9be45c55092623906e03af8af3495
|
[
"MIT"
] | null | null | null |
Filas_Columnas.py
|
allgonzalez/LFP_Proyecto1
|
162ec34cc0d9be45c55092623906e03af8af3495
|
[
"MIT"
] | null | null | null |
Filas_Columnas.py
|
allgonzalez/LFP_Proyecto1
|
162ec34cc0d9be45c55092623906e03af8af3495
|
[
"MIT"
] | null | null | null |
class FilasColumnas:
def __init__(self, nombre, filas, columnas):
self.nombre = nombre
self.filas = filas
self.columnas = columnas
def getNombre(self):
return self.nombre
def getFilas(self):
return self.filas
def getColumnas(self):
return self.filas
| 21.933333
| 48
| 0.598784
| 35
| 329
| 5.514286
| 0.342857
| 0.15544
| 0.217617
| 0.196891
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.325228
| 329
| 15
| 49
| 21.933333
| 0.869369
| 0
| 0
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.363636
| false
| 0
| 0
| 0.272727
| 0.727273
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
a33acbc60186f7938030537dd70d74eb03a07c27
| 182
|
py
|
Python
|
test_bd.py
|
iurii-anfinogenov/test_for_roox
|
055a5cd5579055f1f40a6ca6fc2dba3809269d18
|
[
"MIT"
] | null | null | null |
test_bd.py
|
iurii-anfinogenov/test_for_roox
|
055a5cd5579055f1f40a6ca6fc2dba3809269d18
|
[
"MIT"
] | null | null | null |
test_bd.py
|
iurii-anfinogenov/test_for_roox
|
055a5cd5579055f1f40a6ca6fc2dba3809269d18
|
[
"MIT"
] | null | null | null |
import pytest
from bd import create_db
def test_create_db_check_file_sql():
with pytest.raises(FileNotFoundError):
file = open("sqlite1_create_tables.sql", "r")
| 26
| 57
| 0.71978
| 25
| 182
| 4.92
| 0.72
| 0.130081
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006803
| 0.192308
| 182
| 6
| 58
| 30.333333
| 0.829932
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0.137363
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a38e4357a441456a80f1586bd63bdac04526923d
| 278
|
py
|
Python
|
src/profiles/admin.py
|
tingcar/PSEP
|
0a63ba14f034ee0b130a5b33aa349722ea821bfc
|
[
"Apache-2.0"
] | null | null | null |
src/profiles/admin.py
|
tingcar/PSEP
|
0a63ba14f034ee0b130a5b33aa349722ea821bfc
|
[
"Apache-2.0"
] | null | null | null |
src/profiles/admin.py
|
tingcar/PSEP
|
0a63ba14f034ee0b130a5b33aa349722ea821bfc
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from .models import Profile
# Register your models here.
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
class Meta:
model = Profile
admin.site.register(Profile, ProfileAdmin)
| 25.272727
| 42
| 0.741007
| 34
| 278
| 6.058824
| 0.470588
| 0.174757
| 0.262136
| 0.320388
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190647
| 278
| 11
| 42
| 25.272727
| 0.915556
| 0.28777
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a3a0a334f6a58ed3d0b0415cb30f4f7ebf053c35
| 151
|
py
|
Python
|
pytest_board/__main__.py
|
kuss/pytest-convey
|
46ec70721e7403d43465f11795da09053e5a963e
|
[
"MIT"
] | 7
|
2019-08-16T06:30:12.000Z
|
2021-02-09T22:45:27.000Z
|
pytest_board/__main__.py
|
kuss/pytest-board
|
46ec70721e7403d43465f11795da09053e5a963e
|
[
"MIT"
] | 1
|
2021-10-15T11:08:15.000Z
|
2021-10-15T11:08:15.000Z
|
pytest_board/__main__.py
|
kuss/pytest-convey
|
46ec70721e7403d43465f11795da09053e5a963e
|
[
"MIT"
] | null | null | null |
import os
import sys
if __name__ == '__main__':
sys.path.append(os.path.dirname(__file__))
from pytest_board.command import main
main()
| 15.1
| 46
| 0.701987
| 21
| 151
| 4.428571
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192053
| 151
| 9
| 47
| 16.777778
| 0.762295
| 0
| 0
| 0
| 0
| 0
| 0.05298
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
|
0
| 4
|
a3a379608cf81ffb35d0f0617ef261650dd1f72d
| 78
|
py
|
Python
|
oAuthApp/__init__.py
|
GeirOwe/pyIntermediate
|
5bc4520ec3f2cc085b95b20b11eac1803b273e5e
|
[
"MIT"
] | null | null | null |
oAuthApp/__init__.py
|
GeirOwe/pyIntermediate
|
5bc4520ec3f2cc085b95b20b11eac1803b273e5e
|
[
"MIT"
] | null | null | null |
oAuthApp/__init__.py
|
GeirOwe/pyIntermediate
|
5bc4520ec3f2cc085b95b20b11eac1803b273e5e
|
[
"MIT"
] | null | null | null |
from flask import Flask
app = Flask(__name__)
from oAuthApp import oauthMain
| 15.6
| 30
| 0.807692
| 11
| 78
| 5.363636
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 78
| 5
| 30
| 15.6
| 0.893939
| 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 | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
6e553e35d7d57b03c252a44f1fcbd2e6d39108c2
| 207
|
py
|
Python
|
{{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_core_dir}}.py
|
jonatasleon/cookiecutter-qmd-flask
|
77a0a431bd87a61a78f845c347d05131e41e5631
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_core_dir}}.py
|
jonatasleon/cookiecutter-qmd-flask
|
77a0a431bd87a61a78f845c347d05131e41e5631
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_core_dir}}.py
|
jonatasleon/cookiecutter-qmd-flask
|
77a0a431bd87a61a78f845c347d05131e41e5631
|
[
"MIT"
] | null | null | null |
from flask import url_for
def test_index(client):
assert client.get(url_for('site.index')).status_code == 200
def test_admin(client):
assert client.get(url_for('admin.index')).status_code == 200
| 20.7
| 64
| 0.729469
| 33
| 207
| 4.363636
| 0.484848
| 0.125
| 0.25
| 0.291667
| 0.375
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0.03352
| 0.135266
| 207
| 9
| 65
| 23
| 0.77095
| 0
| 0
| 0
| 0
| 0
| 0.101449
| 0
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0.4
| false
| 0
| 0.2
| 0
| 0.6
| 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
| 0
| 0
|
0
| 4
|
6e6cbbe60ccf1e6469dd4466e18b31a12fd32e55
| 9,942
|
py
|
Python
|
bin/simulate_users.py
|
njunge94/timeseries-thesis
|
82b2cdc273e4dabcca0f3d8ae33c281691c3c7ed
|
[
"MIT"
] | 1
|
2021-12-29T04:26:28.000Z
|
2021-12-29T04:26:28.000Z
|
bin/simulate_users.py
|
njunge94/timeseries-thesis
|
82b2cdc273e4dabcca0f3d8ae33c281691c3c7ed
|
[
"MIT"
] | null | null | null |
bin/simulate_users.py
|
njunge94/timeseries-thesis
|
82b2cdc273e4dabcca0f3d8ae33c281691c3c7ed
|
[
"MIT"
] | 1
|
2021-12-29T04:27:17.000Z
|
2021-12-29T04:27:17.000Z
|
import pandas as pd
import os
import yaml
import argparse
import matplotlib.pyplot as plt
from regularity_analysis.user_simulations import *
from regularity_analysis.feature_extraction import *
stat_funcs = {"apen": approximate_entropy, "sampen": sample_entropy, "intrepen": integer_representation_entropy, "permen": permutation_entropy, "pse": classical_periodogram_entropy, "wse": welch_entropy, "lse": lombscargle_entropy, "shannon": shannon_entropy, "shannon_markov": shannon_markov_entropy}
def simulate_users_by_noisefrac(num_users=100, num_fracs=50, ts_length=1000, periodicity=7, success_prob=0.14):
stats = np.zeros((num_fracs,11))
sds = np.zeros((num_fracs,11))
noise_fracs = np.linspace(0,1,num_fracs, endpoint=True)
for k, frac in enumerate(noise_fracs):
res = np.zeros((num_users, 11))
for i in range(num_users):
user = simulate_gym_user(num_days=ts_length, noise_frac=frac, periodicity=periodicity, success_prob=success_prob)
user_p = get_periodogram(user)
user_w = get_welch_periodogram(user)
res[i, 0] = approximate_entropy(user)
res[i, 1] = sample_entropy(user)
res[i, 2] = permutation_entropy(user)
res[i, 3] = approximate_entropy(user_p)
res[i, 4] = sample_entropy(user_p)
res[i, 5] = permutation_entropy(user_p)
res[i, 6] = fourier_spectrum_entropy(user_p)
res[i, 7] = approximate_entropy(user_w)
res[i, 8] = sample_entropy(user_w)
res[i, 9] = permutation_entropy(user_w)
res[i, 10]= fourier_spectrum_entropy(user_w)
stats[k,:] = np.mean(res, axis=0)
sds[k,:] = np.std(res, axis=0)
dpi = 300
style = "fivethirtyeight"
out_dir = "./plots/ch5_plots/"
out_name = "binary_entropy_metrics"
f_out_name = "periodogram_entropy_metrics"
w_out_name = "welch_entropy_metrics"
ext = ".pdf"
if not os.path.exists(out_dir):
os.mkdir(out_dir)
with plt.style.context(style):
fig1, ax1 = plt.subplots(figsize=(8, 5), dpi=dpi)
ax1.set_title('Simulated Binary Timeseries Statistics')
apen_series = pd.Series(stats[:,0], index=noise_fracs)
apen_sds = pd.Series(sds[:,0], index=noise_fracs)
sampen_series = pd.Series(stats[:,1], index=noise_fracs)
sampen_sds = pd.Series(sds[:,1], index=noise_fracs)
permen_series = pd.Series(stats[:,2], index=noise_fracs)
permen_sds = pd.Series(sds[:,2], index=noise_fracs)
apen_series.plot(ax=ax1, label="ApEn(m=2,r=0.2)", yerr=apen_sds, capsize=4)
sampen_series.plot(ax=ax1, label="SampEn(m=2,r=0.2)", yerr=sampen_sds, capsize=4)
permen_series.plot(ax=ax1, label="PermEn(n=5,lag=1)", yerr=permen_sds, capsize=4)
ax1.set_ylabel('Statistical values')
ax1.set_xlabel(r'Noise level $\varepsilon$')
ax1.set_ylim(0,1)
ax1.legend()
fig1.savefig(out_dir + out_name + ext, format="pdf", bbox_inches="tight")
with plt.style.context(style):
fig2, ax2 = plt.subplots(figsize=(8, 5), dpi=dpi)
ax2.set_title('Simulated Binary Timeseries Periodogram Statistics')
apen_series = pd.Series(stats[:,3], index=noise_fracs)
apen_sds = pd.Series(sds[:,3], index=noise_fracs)
sampen_series = pd.Series(stats[:,4], index=noise_fracs)
sampen_sds = pd.Series(sds[:,4], index=noise_fracs)
permen_series = pd.Series(stats[:,5], index=noise_fracs)
permen_sds = pd.Series(sds[:,5], index=noise_fracs)
pse_series = pd.Series(stats[:,6], index=noise_fracs)
pse_sds = pd.Series(sds[:,6], index=noise_fracs)
apen_series.plot(ax=ax2, label="Periodogram ApEn(m=2,r=0.2)", yerr=apen_sds, capsize=4)
sampen_series.plot(ax=ax2, label="Periodogram SampEn(m=2,r=0.2)", yerr=sampen_sds, capsize=4)
permen_series.plot(ax=ax2, label="Periodogram PermEn(n=5,lag=1)", yerr=permen_sds, capsize=4)
pse_series.plot(ax=ax2, label="Spectral Entropy", yerr=pse_sds, capsize=4)
ax2.set_ylabel('Statistical values')
ax2.set_xlabel(r'Noise level $\varepsilon$')
ax2.set_ylim(0,1)
ax2.legend()
fig2.savefig(out_dir + f_out_name + ext, format="pdf", bbox_inches="tight")
with plt.style.context(style):
fig3, ax3 = plt.subplots(figsize=(8, 5), dpi=dpi)
ax3.set_title('Simulated Binary Timeseries Welch Periodogram Statistics')
apen_series = pd.Series(stats[:,7], index=noise_fracs)
apen_sds = pd.Series(sds[:,7], index=noise_fracs)
sampen_series = pd.Series(stats[:,8], index=noise_fracs)
sampen_sds = pd.Series(sds[:,8], index=noise_fracs)
permen_series = pd.Series(stats[:,9], index=noise_fracs)
permen_sds = pd.Series(sds[:,9], index=noise_fracs)
pse_series = pd.Series(stats[:,10], index=noise_fracs)
pse_sds = pd.Series(sds[:,10], index=noise_fracs)
apen_series.plot(ax=ax3, label="Welch Periodogram ApEn(m=2,r=0.2)", yerr=apen_sds, capsize=4)
sampen_series.plot(ax=ax3, label="Welch Periodogram SampEn(m=2,r=0.2)", yerr=sampen_sds, capsize=4)
permen_series.plot(ax=ax3, label="Welch Periodogram PermEn(n=5,lag=1)", yerr=permen_sds, capsize=4)
pse_series.plot(ax=ax3, label="Welch Spectral Entropy", yerr=pse_sds, capsize=4)
ax3.set_ylabel('Statistical values')
ax3.set_xlabel(r'Noise level $\varepsilon$')
ax3.set_ylim(0,1)
ax3.legend()
fig3.savefig(out_dir + w_out_name + ext, format="pdf", bbox_inches="tight")
def simulate_users_by_length(num_users=1, ts_length=1000, periodicity=7, success_prob=0.14):
stats = np.zeros((100,11))
#entirely regular user
noise_frac = 0.0
contract_lens = np.linspace(30, 1000, num=100, dtype=int)
for k, c_len in enumerate(contract_lens):
res = np.zeros((num_users, 11))
for i in range(num_users):
user = simulate_gym_user(num_days=c_len, noise_frac=noise_frac, periodicity=periodicity, success_prob=success_prob)
user_p = get_periodogram(user)
user_w = get_welch_periodogram(user)
res[i, 0] = approximate_entropy(user)
res[i, 1] = sample_entropy(user)
res[i, 2] = permutation_entropy(user)
res[i, 3] = approximate_entropy(user_p)
res[i, 4] = sample_entropy(user_p)
res[i, 5] = permutation_entropy(user_p)
res[i, 6] = fourier_spectrum_entropy(user_p)
res[i, 7] = approximate_entropy(user_w)
res[i, 8] = sample_entropy(user_w)
res[i, 9] = permutation_entropy(user_w)
res[i, 10]= fourier_spectrum_entropy(user_w)
stats[k,:] = np.mean(res, axis=0)
dpi = 300
style = "fivethirtyeight"
out_dir = "./plots/ch5_plots/"
out_name = "binary_reg_entropy_metrics"
f_out_name = "periodogram_reg_entropy_metrics"
w_out_name = "welch_reg_entropy_metrics"
ext = ".pdf"
if not os.path.exists(out_dir):
os.mkdir(out_dir)
with plt.style.context(style):
fig1, ax1 = plt.subplots(figsize=(8, 5), dpi=dpi)
ax1.set_title('Simulated Binary Timeseries Statistics')
apen_series = pd.Series(stats[:,0], index=contract_lens)
sampen_series = pd.Series(stats[:,1], index=contract_lens)
permen_series = pd.Series(stats[:,2], index=contract_lens)
apen_series.plot(ax=ax1, label="ApEn(m=2,r=0.2)")
sampen_series.plot(ax=ax1, label="SampEn(m=2,r=0.2)")
permen_series.plot(ax=ax1, label="PermEn(n=5,lag=1)")
ax1.set_ylabel('Statistical values')
ax1.set_xlabel('Contract duration (days)')
ax1.set_ylim(0,1)
ax1.legend()
fig1.savefig(out_dir + out_name + ext, format="pdf", bbox_inches="tight")
with plt.style.context(style):
fig2, ax2 = plt.subplots(figsize=(8, 5), dpi=dpi)
ax2.set_title('Simulated Binary Timeseries Periodogram Statistics')
apen_series = pd.Series(stats[:,3], index=contract_lens)
sampen_series = pd.Series(stats[:,4], index=contract_lens)
permen_series = pd.Series(stats[:,5], index=contract_lens)
pse_series = pd.Series(stats[:,6], index=contract_lens)
apen_series.plot(ax=ax2, label="Periodogram ApEn(m=2,r=0.2)")
sampen_series.plot(ax=ax2, label="Periodogram SampEn(m=2,r=0.2)")
permen_series.plot(ax=ax2, label="Periodogram PermEn(n=5,lag=1)")
pse_series.plot(ax=ax2, label="Spectral Entropy")
ax2.set_ylabel('Statistical values')
ax2.set_xlabel('Contract duration (days)')
ax2.set_ylim(0,1)
ax2.legend()
fig2.savefig(out_dir + f_out_name + ext, format="pdf", bbox_inches="tight")
with plt.style.context(style):
fig3, ax3 = plt.subplots(figsize=(8,5), dpi=dpi)
ax3.set_title('Simulated Binary Timeseries Welch Periodogram Statistics')
apen_series = pd.Series(stats[:,7], index=contract_lens)
sampen_series = pd.Series(stats[:,8], index=contract_lens)
permen_series = pd.Series(stats[:,9], index=contract_lens)
pse_series = pd.Series(stats[:,10], index=contract_lens)
apen_series.plot(ax=ax3, label="Welch Periodogram ApEn(m=2,r=0.2)")
sampen_series.plot(ax=ax3, label="Welch Periodogram SampEn(m=2,r=0.2)")
permen_series.plot(ax=ax3, label="Welch Periodogram PermEn(n=5,lag=1)")
pse_series.plot(ax=ax3, label="Welch Periodogram Entropy")
ax3.set_ylabel('Statistical values')
ax3.set_xlabel('Contract duration (days)')
ax3.set_ylim(0,1)
ax3.legend()
fig3.savefig(out_dir + w_out_name + ext, format="pdf", bbox_inches="tight")
if __name__ == "__main__":
simulate_users_by_noisefrac()
simulate_users_by_length()
| 42.487179
| 301
| 0.651177
| 1,435
| 9,942
| 4.300348
| 0.113589
| 0.042781
| 0.049911
| 0.067736
| 0.873116
| 0.859018
| 0.829363
| 0.796629
| 0.58937
| 0.58937
| 0
| 0.03465
| 0.21042
| 9,942
| 233
| 302
| 42.669528
| 0.751465
| 0.002112
| 0
| 0.485876
| 0
| 0
| 0.144355
| 0.015323
| 0
| 0
| 0
| 0
| 0
| 1
| 0.011299
| false
| 0
| 0.039548
| 0
| 0.050847
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6e9f158643bba99ae2ecda8f29bc90d50387e3ad
| 686
|
py
|
Python
|
substring_match.py
|
carlb15/Python
|
fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2
|
[
"MIT"
] | 2
|
2017-05-04T05:44:24.000Z
|
2019-09-29T23:32:28.000Z
|
substring_match.py
|
carlb15/Python
|
fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2
|
[
"MIT"
] | null | null | null |
substring_match.py
|
carlb15/Python
|
fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2
|
[
"MIT"
] | null | null | null |
def substring_match(T, S):
"""
Simple substring matching.
O(|S| * |T - S|) Time
O(1) Space
"""
return any([T[idx:idx+len(S)] == S for idx in range(len(T) - len(S) + 1)])
"""
for idx in range(len(T) - len(S) + 1):
print(T[idx:idx + len(S)], S)
if T[idx:idx + len(S)] == S:
return True
return False
"""
if __name__=="__main__":
print("Expect True ", substring_match('hello world', 'hello'))
print("Expect True ", substring_match('hello world', 'world'))
print("Expect True ", substring_match('hello world', 'wor'))
print("Expect False ", substring_match('hello world', 'blue'))
print("Expect False ",substring_match('hello world', 'word'))
| 28.583333
| 76
| 0.606414
| 103
| 686
| 3.902913
| 0.291262
| 0.208955
| 0.236318
| 0.298507
| 0.689055
| 0.689055
| 0.599502
| 0.109453
| 0.109453
| 0
| 0
| 0.005405
| 0.190962
| 686
| 23
| 77
| 29.826087
| 0.718919
| 0.087464
| 0
| 0
| 0
| 0
| 0.316703
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0
| 0
| 0.25
| 0.625
| 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
| 0
| 0
| 0
| 1
|
0
| 4
|
6ec8152c182a1551be1519016ff5a42a50d04163
| 102
|
py
|
Python
|
backend/schemas/pilot_type.py
|
jflad17/pilot_logbook
|
f75c9866d073c33d001ae2d0eb0994496eb49045
|
[
"MIT"
] | 1
|
2022-03-25T23:41:37.000Z
|
2022-03-25T23:41:37.000Z
|
backend/schemas/pilot_type.py
|
jflad17/pilot_logbook
|
f75c9866d073c33d001ae2d0eb0994496eb49045
|
[
"MIT"
] | null | null | null |
backend/schemas/pilot_type.py
|
jflad17/pilot_logbook
|
f75c9866d073c33d001ae2d0eb0994496eb49045
|
[
"MIT"
] | null | null | null |
from .base import Base
class PilotType(Base):
idPilotType: int
shortName: str
name: str
| 12.75
| 22
| 0.676471
| 13
| 102
| 5.307692
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.254902
| 102
| 7
| 23
| 14.571429
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 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
| 0
| 0
| 1
| 0
|
0
| 4
|
6ed049c0b6137133b7c6be5e822cac87a01eaecb
| 7,624
|
py
|
Python
|
tests/serializer/test_message_serializer.py
|
oscarjohansson94/python-schema-registry-client
|
7ed99003a200d167e8a8bd66f34af8d51ad1de1d
|
[
"MIT"
] | null | null | null |
tests/serializer/test_message_serializer.py
|
oscarjohansson94/python-schema-registry-client
|
7ed99003a200d167e8a8bd66f34af8d51ad1de1d
|
[
"MIT"
] | null | null | null |
tests/serializer/test_message_serializer.py
|
oscarjohansson94/python-schema-registry-client
|
7ed99003a200d167e8a8bd66f34af8d51ad1de1d
|
[
"MIT"
] | null | null | null |
import struct
import jsonschema
import pytest
from schema_registry.client import schema
from tests import data_gen
def assertAvroMessageIsSame(message, expected, schema_id, avro_message_serializer):
assert message
assert len(message) > 5
magic, sid = struct.unpack(">bI", message[0:5])
assert magic == 0
assert sid == schema_id
decoded = avro_message_serializer.decode_message(message)
assert decoded
assert decoded == expected
def test_avro_encode_with_schema_id(client, avro_message_serializer):
basic = schema.AvroSchema(data_gen.AVRO_BASIC_SCHEMA)
subject = "test-avro-basic-schema"
schema_id = client.register(subject, basic)
records = data_gen.AVRO_BASIC_ITEMS
for record in records:
message = avro_message_serializer.encode_record_with_schema_id(schema_id, record)
assertAvroMessageIsSame(message, record, schema_id, avro_message_serializer)
adv = schema.AvroSchema(data_gen.AVRO_ADVANCED_SCHEMA)
subject = "test-avro-advance-schema"
adv_schema_id = client.register(subject, adv)
assert adv_schema_id != schema_id
records = data_gen.AVRO_ADVANCED_ITEMS
for record in records:
message = avro_message_serializer.encode_record_with_schema_id(adv_schema_id, record)
assertAvroMessageIsSame(message, record, adv_schema_id, avro_message_serializer)
def test_avro_encode_logical_types(client, avro_message_serializer):
logical_types_schema = schema.AvroSchema(data_gen.AVRO_LOGICAL_TYPES_SCHEMA)
subject = "test-logical-types-schema"
schema_id = client.register(subject, logical_types_schema)
record = data_gen.create_logical_item()
message = avro_message_serializer.encode_record_with_schema_id(schema_id, record)
decoded = avro_message_serializer.decode_message(message)
decoded_datetime = decoded.get("metadata").get("timestamp")
timestamp = record.get("metadata").get("timestamp")
decoded_total = decoded.get("metadata").get("total")
total = record.get("metadata").get("total")
assert timestamp == decoded_datetime.replace(tzinfo=None)
assert total == decoded_total
def test_avro_encode_decode_with_schema_from_json(avro_message_serializer, avro_deployment_schema):
deployment_record = {"image": "registry.gitlab.com/my-project:1.0.0", "replicas": 1, "port": 8080}
message_encoded = avro_message_serializer.encode_record_with_schema(
"avro-deployment", avro_deployment_schema, deployment_record
)
assert message_encoded
assert len(message_encoded) > 5
assert isinstance(message_encoded, bytes)
# now decode the message
message_decoded = avro_message_serializer.decode_message(message_encoded)
assert message_decoded == deployment_record
# def test_encode_with_schema_string(avro_message_serializer):
# deployment_record = {"image": "registry.gitlab.com/my-project:1.0.0", "replicas": 1, "port": 8080}
# schema = """{
# "type": "record",
# "namespace": "com.kubertenes.v2",
# "name": "AvroDeploymentV2",
# "fields": [
# {"name": "image", "type": "string"},
# {"name": "replicas", "type": "int"},
# {"name": "host", "type": "string", "default": "localhost"},
# {"name": "port", "type": "int"}
# ]
# }"""
# message_encoded = avro_message_serializer.encode_record_with_schema(
# "avro-deployment", schema, deployment_record
# )
# assert message_encoded
# assert len(message_encoded) > 5
# assert isinstance(message_encoded, bytes)
# # now decode the message
# message_decoded = avro_message_serializer.decode_message(message_encoded)
# assert message_decoded == deployment_record
def test_avro_fail_encode_with_schema(avro_message_serializer, avro_deployment_schema):
bad_record = {"image": "registry.gitlab.com/my-project:1.0.0", "replicas": "1", "port": "8080"}
with pytest.raises(TypeError):
avro_message_serializer.encode_record_with_schema("avro-deployment", avro_deployment_schema, bad_record)
def test_avro_encode_record_with_schema(client, avro_message_serializer):
topic = "test"
basic = schema.AvroSchema(data_gen.AVRO_BASIC_SCHEMA)
subject = "test-avro-value"
schema_id = client.register(subject, basic)
records = data_gen.AVRO_BASIC_ITEMS
for record in records:
message = avro_message_serializer.encode_record_with_schema(topic, basic, record)
assertAvroMessageIsSame(message, record, schema_id, avro_message_serializer)
def test_avro_decode_none(avro_message_serializer):
""" "null/None messages should decode to None"""
assert avro_message_serializer.decode_message(None) is None
def assertJsonMessageIsSame(message, expected, schema_id, json_message_serializer):
assert message
assert len(message) > 5
magic, sid = struct.unpack(">bI", message[0:5])
assert magic == 0
assert sid == schema_id
decoded = json_message_serializer.decode_message(message)
assert decoded
assert decoded == expected
def test_json_encode_with_schema_id(client, json_message_serializer):
basic = schema.JsonSchema(data_gen.JSON_BASIC_SCHEMA)
subject = "test-json-basic-schema"
schema_id = client.register(subject, basic)
records = data_gen.JSON_BASIC_ITEMS
for record in records:
message = json_message_serializer.encode_record_with_schema_id(schema_id, record)
assertJsonMessageIsSame(message, record, schema_id, json_message_serializer)
adv = schema.JsonSchema(data_gen.JSON_ADVANCED_SCHEMA)
subject = "test-json-advance-schema"
adv_schema_id = client.register(subject, adv)
assert adv_schema_id != schema_id
records = data_gen.JSON_ADVANCED_ITEMS
for record in records:
message = json_message_serializer.encode_record_with_schema_id(adv_schema_id, record)
assertJsonMessageIsSame(message, record, adv_schema_id, json_message_serializer)
def test_json_encode_decode_with_schema_from_json(json_message_serializer, json_deployment_schema):
deployment_record = {"image": "registry.gitlab.com/my-project:1.0.0", "replicas": 1, "port": 8080}
message_encoded = json_message_serializer.encode_record_with_schema(
"json-deployment", json_deployment_schema, deployment_record
)
assert message_encoded
assert len(message_encoded) > 5
assert isinstance(message_encoded, bytes)
# now decode the message
message_decoded = json_message_serializer.decode_message(message_encoded)
assert message_decoded == deployment_record
def test_json_fail_encode_with_schema(json_message_serializer, json_deployment_schema):
bad_record = {"image": "registry.gitlab.com/my-project:1.0.0", "replicas": "1", "port": "8080"}
with pytest.raises(jsonschema.exceptions.ValidationError):
json_message_serializer.encode_record_with_schema("json-deployment", json_deployment_schema, bad_record)
def test_json_encode_record_with_schema(client, json_message_serializer):
topic = "test"
basic = schema.JsonSchema(data_gen.JSON_BASIC_SCHEMA)
subject = "test-json-value"
schema_id = client.register(subject, basic)
records = data_gen.JSON_BASIC_ITEMS
for record in records:
message = json_message_serializer.encode_record_with_schema(topic, basic, record)
assertJsonMessageIsSame(message, record, schema_id, json_message_serializer)
def test_json_decode_none(json_message_serializer):
""" "null/None messages should decode to None"""
assert json_message_serializer.decode_message(None) is None
| 36.830918
| 112
| 0.745934
| 946
| 7,624
| 5.669133
| 0.102537
| 0.126795
| 0.090062
| 0.057431
| 0.810181
| 0.7686
| 0.703151
| 0.674063
| 0.655044
| 0.600597
| 0
| 0.008263
| 0.158709
| 7,624
| 206
| 113
| 37.009709
| 0.827877
| 0.139559
| 0
| 0.491525
| 0
| 0
| 0.077112
| 0.040012
| 0
| 0
| 0
| 0
| 0.288136
| 1
| 0.110169
| false
| 0
| 0.042373
| 0
| 0.152542
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6edcda5d69c9c695ec35f9921e755e59297c2d45
| 207
|
py
|
Python
|
main/admin.py
|
zhongzhiqiang/super_service_api
|
ac988daa58b040e1a451818155357d15895015a3
|
[
"BSD-2-Clause"
] | 1
|
2018-06-27T08:16:34.000Z
|
2018-06-27T08:16:34.000Z
|
main/admin.py
|
zhongzhiqiang/super_service_api
|
ac988daa58b040e1a451818155357d15895015a3
|
[
"BSD-2-Clause"
] | null | null | null |
main/admin.py
|
zhongzhiqiang/super_service_api
|
ac988daa58b040e1a451818155357d15895015a3
|
[
"BSD-2-Clause"
] | 3
|
2018-06-12T06:30:29.000Z
|
2018-06-12T13:57:02.000Z
|
# coding:utf-8
from django.contrib import admin
from main.models import CustomerProfile, Maintainer, Order
admin.site.register(CustomerProfile)
admin.site.register(Maintainer)
admin.site.register(Order)
| 18.818182
| 58
| 0.816425
| 27
| 207
| 6.259259
| 0.555556
| 0.159763
| 0.301775
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005319
| 0.091787
| 207
| 10
| 59
| 20.7
| 0.893617
| 0.057971
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 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
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
42c4dcda6f026c1b93909bf16c94e869c1cb01f5
| 11,888
|
py
|
Python
|
cardboard/cards/sets/commander.py
|
Julian/cardboard
|
6ab676d04b38bf9b0d0c4a849364159947b8ea7f
|
[
"MIT"
] | 5
|
2015-03-23T10:25:40.000Z
|
2021-05-29T06:00:40.000Z
|
cardboard/cards/sets/commander.py
|
Julian/cardboard
|
6ab676d04b38bf9b0d0c4a849364159947b8ea7f
|
[
"MIT"
] | null | null | null |
cardboard/cards/sets/commander.py
|
Julian/cardboard
|
6ab676d04b38bf9b0d0c4a849364159947b8ea7f
|
[
"MIT"
] | 1
|
2019-02-17T14:45:29.000Z
|
2019-02-17T14:45:29.000Z
|
from cardboard import types
from cardboard.ability import (
AbilityNotImplemented, spell, activated, triggered, static
)
from cardboard.cards import card, common, keywords, match
@card("Tariel, Reckoner of Souls")
def tariel_reckoner_of_souls(card, abilities):
def tariel_reckoner_of_souls():
return AbilityNotImplemented
def tariel_reckoner_of_souls():
return AbilityNotImplemented
return tariel_reckoner_of_souls, tariel_reckoner_of_souls,
@card("Damia, Sage of Stone")
def damia_sage_of_stone(card, abilities):
def damia_sage_of_stone():
return AbilityNotImplemented
def damia_sage_of_stone():
return AbilityNotImplemented
def damia_sage_of_stone():
return AbilityNotImplemented
return damia_sage_of_stone, damia_sage_of_stone, damia_sage_of_stone,
@card("Vow of Flight")
def vow_of_flight(card, abilities):
def vow_of_flight():
return AbilityNotImplemented
def vow_of_flight():
return AbilityNotImplemented
return vow_of_flight, vow_of_flight,
@card("Celestial Force")
def celestial_force(card, abilities):
def celestial_force():
return AbilityNotImplemented
return celestial_force,
@card("Zedruu the Greathearted")
def zedruu_the_greathearted(card, abilities):
def zedruu_the_greathearted():
return AbilityNotImplemented
def zedruu_the_greathearted():
return AbilityNotImplemented
return zedruu_the_greathearted, zedruu_the_greathearted,
@card("Homeward Path")
def homeward_path(card, abilities):
def homeward_path():
return AbilityNotImplemented
def homeward_path():
return AbilityNotImplemented
return homeward_path, homeward_path,
@card("Riddlekeeper")
def riddlekeeper(card, abilities):
def riddlekeeper():
return AbilityNotImplemented
return riddlekeeper,
@card("Karador, Ghost Chieftain")
def karador_ghost_chieftain(card, abilities):
def karador_ghost_chieftain():
return AbilityNotImplemented
def karador_ghost_chieftain():
return AbilityNotImplemented
return karador_ghost_chieftain, karador_ghost_chieftain,
@card("Stranglehold")
def stranglehold(card, abilities):
def stranglehold():
return AbilityNotImplemented
def stranglehold():
return AbilityNotImplemented
return stranglehold, stranglehold,
@card("Command Tower")
def command_tower(card, abilities):
def command_tower():
return AbilityNotImplemented
return command_tower,
@card("Martyr's Bond")
def martyrs_bond(card, abilities):
def martyrs_bond():
return AbilityNotImplemented
return martyrs_bond,
@card("Crescendo of War")
def crescendo_of_war(card, abilities):
def crescendo_of_war():
return AbilityNotImplemented
def crescendo_of_war():
return AbilityNotImplemented
def crescendo_of_war():
return AbilityNotImplemented
return crescendo_of_war, crescendo_of_war, crescendo_of_war,
@card("Shared Trauma")
def shared_trauma(card, abilities):
def shared_trauma():
return AbilityNotImplemented
return shared_trauma,
@card("Kaalia of the Vast")
def kaalia_of_the_vast(card, abilities):
def kaalia_of_the_vast():
return AbilityNotImplemented
def kaalia_of_the_vast():
return AbilityNotImplemented
return kaalia_of_the_vast, kaalia_of_the_vast,
@card("Death by Dragons")
def death_by_dragons(card, abilities):
def death_by_dragons():
return AbilityNotImplemented
return death_by_dragons,
@card("Vow of Duty")
def vow_of_duty(card, abilities):
def vow_of_duty():
return AbilityNotImplemented
def vow_of_duty():
return AbilityNotImplemented
return vow_of_duty, vow_of_duty,
@card("Tribute to the Wild")
def tribute_to_the_wild(card, abilities):
def tribute_to_the_wild():
return AbilityNotImplemented
return tribute_to_the_wild,
@card("The Mimeoplasm")
def the_mimeoplasm(card, abilities):
def the_mimeoplasm():
return AbilityNotImplemented
return the_mimeoplasm,
@card("Magmatic Force")
def magmatic_force(card, abilities):
def magmatic_force():
return AbilityNotImplemented
return magmatic_force,
@card("Trench Gorger")
def trench_gorger(card, abilities):
def trench_gorger():
return AbilityNotImplemented
def trench_gorger():
return AbilityNotImplemented
return trench_gorger, trench_gorger,
@card("Vow of Wildness")
def vow_of_wildness(card, abilities):
def vow_of_wildness():
return AbilityNotImplemented
def vow_of_wildness():
return AbilityNotImplemented
return vow_of_wildness, vow_of_wildness,
@card("Riku of Two Reflections")
def riku_of_two_reflections(card, abilities):
def riku_of_two_reflections():
return AbilityNotImplemented
def riku_of_two_reflections():
return AbilityNotImplemented
return riku_of_two_reflections, riku_of_two_reflections,
@card("Hydra Omnivore")
def hydra_omnivore(card, abilities):
def hydra_omnivore():
return AbilityNotImplemented
return hydra_omnivore,
@card("Vow of Lightning")
def vow_of_lightning(card, abilities):
def vow_of_lightning():
return AbilityNotImplemented
def vow_of_lightning():
return AbilityNotImplemented
return vow_of_lightning, vow_of_lightning,
@card("Acorn Catapult")
def acorn_catapult(card, abilities):
def acorn_catapult():
return AbilityNotImplemented
return acorn_catapult,
@card("Scavenging Ooze")
def scavenging_ooze(card, abilities):
def scavenging_ooze():
return AbilityNotImplemented
return scavenging_ooze,
@card("Mana-Charged Dragon")
def manacharged_dragon(card, abilities):
def manacharged_dragon():
return AbilityNotImplemented
def manacharged_dragon():
return AbilityNotImplemented
return manacharged_dragon, manacharged_dragon,
@card("Basandra, Battle Seraph")
def basandra_battle_seraph(card, abilities):
def basandra_battle_seraph():
return AbilityNotImplemented
def basandra_battle_seraph():
return AbilityNotImplemented
def basandra_battle_seraph():
return AbilityNotImplemented
return basandra_battle_seraph, basandra_battle_seraph, basandra_battle_seraph,
@card("Edric, Spymaster of Trest")
def edric_spymaster_of_trest(card, abilities):
def edric_spymaster_of_trest():
return AbilityNotImplemented
return edric_spymaster_of_trest,
@card("Nin, the Pain Artist")
def nin_the_pain_artist(card, abilities):
def nin_the_pain_artist():
return AbilityNotImplemented
return nin_the_pain_artist,
@card("Ghave, Guru of Spores")
def ghave_guru_of_spores(card, abilities):
def ghave_guru_of_spores():
return AbilityNotImplemented
def ghave_guru_of_spores():
return AbilityNotImplemented
def ghave_guru_of_spores():
return AbilityNotImplemented
return ghave_guru_of_spores, ghave_guru_of_spores, ghave_guru_of_spores,
@card("Vow of Malice")
def vow_of_malice(card, abilities):
def vow_of_malice():
return AbilityNotImplemented
def vow_of_malice():
return AbilityNotImplemented
return vow_of_malice, vow_of_malice,
@card("Scythe Specter")
def scythe_specter(card, abilities):
def scythe_specter():
return AbilityNotImplemented
def scythe_specter():
return AbilityNotImplemented
return scythe_specter, scythe_specter,
@card("Alliance of Arms")
def alliance_of_arms(card, abilities):
def alliance_of_arms():
return AbilityNotImplemented
return alliance_of_arms,
@card("Hornet Queen")
def hornet_queen(card, abilities):
def hornet_queen():
return AbilityNotImplemented
def hornet_queen():
return AbilityNotImplemented
return hornet_queen, hornet_queen,
@card("Collective Voyage")
def collective_voyage(card, abilities):
def collective_voyage():
return AbilityNotImplemented
return collective_voyage,
@card("Skullbriar, the Walking Grave")
def skullbriar_the_walking_grave(card, abilities):
def skullbriar_the_walking_grave():
return AbilityNotImplemented
def skullbriar_the_walking_grave():
return AbilityNotImplemented
def skullbriar_the_walking_grave():
return AbilityNotImplemented
return skullbriar_the_walking_grave, skullbriar_the_walking_grave, skullbriar_the_walking_grave,
@card("Spell Crumple")
def spell_crumple(card, abilities):
def spell_crumple():
return AbilityNotImplemented
return spell_crumple,
@card("Soul Snare")
def soul_snare(card, abilities):
def soul_snare():
return AbilityNotImplemented
return soul_snare,
@card("Vish Kal, Blood Arbiter")
def vish_kal_blood_arbiter(card, abilities):
def vish_kal_blood_arbiter():
return AbilityNotImplemented
def vish_kal_blood_arbiter():
return AbilityNotImplemented
def vish_kal_blood_arbiter():
return AbilityNotImplemented
return vish_kal_blood_arbiter, vish_kal_blood_arbiter, vish_kal_blood_arbiter,
@card("Sewer Nemesis")
def sewer_nemesis(card, abilities):
def sewer_nemesis():
return AbilityNotImplemented
def sewer_nemesis():
return AbilityNotImplemented
def sewer_nemesis():
return AbilityNotImplemented
return sewer_nemesis, sewer_nemesis, sewer_nemesis,
@card("Champion's Helm")
def champions_helm(card, abilities):
def champions_helm():
return AbilityNotImplemented
def champions_helm():
return AbilityNotImplemented
def champions_helm():
return AbilityNotImplemented
return champions_helm, champions_helm, champions_helm,
@card("Minds Aglow")
def minds_aglow(card, abilities):
def minds_aglow():
return AbilityNotImplemented
return minds_aglow,
@card("Ruhan of the Fomori")
def ruhan_of_the_fomori(card, abilities):
def ruhan_of_the_fomori():
return AbilityNotImplemented
return ruhan_of_the_fomori,
@card("Chaos Warp")
def chaos_warp(card, abilities):
def chaos_warp():
return AbilityNotImplemented
return chaos_warp,
@card("Archangel of Strife")
def archangel_of_strife(card, abilities):
def archangel_of_strife():
return AbilityNotImplemented
def archangel_of_strife():
return AbilityNotImplemented
def archangel_of_strife():
return AbilityNotImplemented
def archangel_of_strife():
return AbilityNotImplemented
return archangel_of_strife, archangel_of_strife, archangel_of_strife, archangel_of_strife,
@card("Flusterstorm")
def flusterstorm(card, abilities):
def flusterstorm():
return AbilityNotImplemented
def flusterstorm():
return AbilityNotImplemented
return flusterstorm, flusterstorm,
@card("Avatar of Slaughter")
def avatar_of_slaughter(card, abilities):
def avatar_of_slaughter():
return AbilityNotImplemented
return avatar_of_slaughter,
@card("Animar, Soul of Elements")
def animar_soul_of_elements(card, abilities):
def animar_soul_of_elements():
return AbilityNotImplemented
def animar_soul_of_elements():
return AbilityNotImplemented
def animar_soul_of_elements():
return AbilityNotImplemented
return animar_soul_of_elements, animar_soul_of_elements, animar_soul_of_elements,
@card("Syphon Flesh")
def syphon_flesh(card, abilities):
def syphon_flesh():
return AbilityNotImplemented
return syphon_flesh,
@card("Dread Cacodemon")
def dread_cacodemon(card, abilities):
def dread_cacodemon():
return AbilityNotImplemented
return dread_cacodemon,
| 20.567474
| 100
| 0.734017
| 1,318
| 11,888
| 6.311836
| 0.098634
| 0.288857
| 0.098089
| 0.015386
| 0.474696
| 0.341267
| 0.254478
| 0.219377
| 0.184397
| 0.176223
| 0
| 0
| 0.195407
| 11,888
| 578
| 101
| 20.567474
| 0.869733
| 0
| 0
| 0.458333
| 0
| 0
| 0.070485
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.416667
| false
| 0
| 0.008929
| 0.264881
| 0.842262
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
42c6fa0a495221722376ad9fc9d059a693ebcd43
| 61
|
py
|
Python
|
play.py
|
naegelejd/pyasteroid
|
8c4a5d200457e6ea8d050d0a755f3ed582f2edef
|
[
"MIT"
] | null | null | null |
play.py
|
naegelejd/pyasteroid
|
8c4a5d200457e6ea8d050d0a755f3ed582f2edef
|
[
"MIT"
] | null | null | null |
play.py
|
naegelejd/pyasteroid
|
8c4a5d200457e6ea8d050d0a755f3ed582f2edef
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import asteroids
asteroids.main.main()
| 15.25
| 21
| 0.770492
| 9
| 61
| 5.222222
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081967
| 61
| 3
| 22
| 20.333333
| 0.839286
| 0.327869
| 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 | 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
| 4
|
42dc974d3366036b82775f0f8fd8a4482442e07a
| 62
|
py
|
Python
|
hello.py
|
namachan10777/practice
|
0a8fb99ad22b097c4d0812eb809fee3341de8140
|
[
"MIT"
] | null | null | null |
hello.py
|
namachan10777/practice
|
0a8fb99ad22b097c4d0812eb809fee3341de8140
|
[
"MIT"
] | null | null | null |
hello.py
|
namachan10777/practice
|
0a8fb99ad22b097c4d0812eb809fee3341de8140
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
print('Hello Git!')
print("Nakano Masaki")
| 12.4
| 22
| 0.677419
| 9
| 62
| 4.666667
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 62
| 4
| 23
| 15.5
| 0.75
| 0.258065
| 0
| 0
| 0
| 0
| 0.511111
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 0
| 1
|
0
| 4
|
42fca00938d85ac01f53f2a31475769717b0cc3c
| 35
|
py
|
Python
|
dajaxice/__init__.py
|
APSL/django-dajaxice
|
447b4b13c9ed1b360849f95cc21e74c9c9d2f514
|
[
"BSD-3-Clause"
] | 1
|
2015-01-25T23:10:39.000Z
|
2015-01-25T23:10:39.000Z
|
dajaxice/__init__.py
|
APSL/django-dajaxice
|
447b4b13c9ed1b360849f95cc21e74c9c9d2f514
|
[
"BSD-3-Clause"
] | null | null | null |
dajaxice/__init__.py
|
APSL/django-dajaxice
|
447b4b13c9ed1b360849f95cc21e74c9c9d2f514
|
[
"BSD-3-Clause"
] | null | null | null |
__version__ = (0, 5, 4, 0, 'beta')
| 17.5
| 34
| 0.542857
| 6
| 35
| 2.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0.2
| 35
| 1
| 35
| 35
| 0.392857
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6e13f498c651621edcb96308e1c97e1c1be8e30a
| 56
|
py
|
Python
|
crownstone_cloud/helpers/__init__.py
|
crownstone/crownstone-lib-python-cloud
|
c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d
|
[
"MIT"
] | 1
|
2020-05-29T23:45:15.000Z
|
2020-05-29T23:45:15.000Z
|
crownstone_cloud/helpers/__init__.py
|
crownstone/crownstone-lib-python-cloud
|
c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d
|
[
"MIT"
] | 3
|
2021-11-09T15:36:48.000Z
|
2021-11-12T00:43:23.000Z
|
crownstone_cloud/helpers/__init__.py
|
crownstone/crownstone-lib-python-cloud
|
c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d
|
[
"MIT"
] | 1
|
2021-11-09T15:33:01.000Z
|
2021-11-09T15:33:01.000Z
|
"""Init file for helpers folder in Crownstone cloud."""
| 28
| 55
| 0.732143
| 8
| 56
| 5.125
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 56
| 1
| 56
| 56
| 0.854167
| 0.875
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
6e1b4e7fe8d5c34a3bb03d3486852fef86e285bd
| 4,994
|
py
|
Python
|
tests/test_image_manager.py
|
szkkteam/flask_mm
|
ea96899a41a0573e51792f1554550c6d77f22a07
|
[
"MIT"
] | 1
|
2021-03-21T18:46:36.000Z
|
2021-03-21T18:46:36.000Z
|
tests/test_image_manager.py
|
szkkteam/flask_mm
|
ea96899a41a0573e51792f1554550c6d77f22a07
|
[
"MIT"
] | null | null | null |
tests/test_image_manager.py
|
szkkteam/flask_mm
|
ea96899a41a0573e51792f1554550c6d77f22a07
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Common Python library imports
from __future__ import unicode_literals
import os
import io
from PIL import Image
# Pip package imports
from flask import url_for
import pytest
# Internal package imports
import flask_mm as mm
from flask_mm.postprocess import Watermarker
THUMB_WIDTH = 253
THUMB_HEIGHT = 220
POSTPROCESS_PARAMS = Watermarker("tests/flask.png", opacity=0.08, scale=0.2, position="c")
@pytest.mark.parametrize("app_manager", [('local', 'image', { 'POSTPROCESS': POSTPROCESS_PARAMS })], indirect=True)
class TestLocalImageManagerPostprocessWatermark:
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_basic_postprocess_watermark(self, app_manager, image, utils):
st = mm.by_name()
with open(image, 'rb') as fp:
f = utils.filestorage('horse.jpg', fp)
filename = st.save(f)
assert st.exists(filename)
st.delete(filename)
@pytest.mark.parametrize("app_manager", [('local', 'image', {})], indirect=True)
class TestLocalImageManagerPostprocess:
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_basic_watermark(self, app_manager, image, utils):
st = mm.by_name()
with open(image, 'rb') as fp:
f = utils.filestorage('flask.jpg', fp)
filename = st.save(f, postprocess=POSTPROCESS_PARAMS)
assert st.exists(filename)
st.delete(filename)
@pytest.mark.parametrize("app_manager", [('local', 'image', { 'THUMBNAIL_SIZE': (THUMB_WIDTH,THUMB_HEIGHT,True) })], indirect=True)
class TestLocalImageManagerThumbnailForced:
#@pytest.mark.parametrize("image", [("tests/snow_terrain1.jpg"), ("tests/horse1.jpg"), ("tests/mogyi2.jpg")])
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_save_thumbnail(self, app_manager, image, utils):
st = mm.by_name()
f = utils.file(Image.open(image))
filename = st.save(f, 'test.jpg')
assert st.exists(filename)
assert st.exists(st.generate_thumbnail_name(filename))
st.delete(filename)
#@pytest.mark.parametrize("image", [("tests/snow_terrain1.jpg"), ("tests/horse1.jpg"), ("tests/mogyi2.jpg")])
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_size_thumbnail(self, app_manager, image, utils):
st = mm.by_name()
f = utils.file(Image.open(image))
filename = st.save(f, 'test.jpg')
assert st.exists(st.generate_thumbnail_name(filename))
thumb = Image.open(os.path.join('tests', 'test', st.generate_thumbnail_name(filename)))
assert thumb.size[0] == THUMB_WIDTH
assert thumb.size[1] == THUMB_HEIGHT
st.delete(filename)
@pytest.mark.parametrize("app_manager", [('local', 'image', {}), ('s3', 'image', {})], indirect=True)
class TestImageManager:
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_save_from_file(self, app_manager, image, utils):
st = mm.by_name()
f = utils.file(Image.open(image))
filename = st.save(f, 'test.jpg')
assert st.exists(filename)
st.delete(filename)
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_save_from_filestorage(self, app_manager, image, utils):
st = mm.by_name()
with open(image, 'rb') as fp:
f = utils.filestorage('flask.jpg', fp)
filename = st.save(f)
assert st.exists(filename)
st.delete(filename)
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_save_from_filestorage_with_filename(self, app_manager, image, utils):
st = mm.by_name()
with open(image, 'rb') as fp:
f = utils.filestorage(None, fp)
filename = st.save(f, 'cica_flask.jpg')
assert st.exists(filename)
st.delete(filename)
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_save_from_filestorage_original_name(self, app_manager, image, utils):
st = mm.by_name()
with open(image, 'rb') as fp:
f = utils.filestorage('flask.jpg', fp)
filename = st.save(f, generate_name=False)
assert filename == 'flask.jpg'
assert st.exists(filename)
st.delete(filename)
@pytest.mark.parametrize("image", [("tests/flask.jpg"), ("tests/flask.png")])
def test_save_from_filestorage_with_filename_original_name(self, app_manager, image, utils):
st = mm.by_name()
with open(image, 'rb') as fp:
f = utils.filestorage('flask.jpg', fp)
filename = st.save(f, 'cicakutya.jpg', generate_name=False)
assert filename == 'cicakutya.jpg'
assert st.exists(filename)
st.delete(filename)
| 36.992593
| 131
| 0.640368
| 626
| 4,994
| 4.976038
| 0.153355
| 0.060995
| 0.101124
| 0.091814
| 0.752488
| 0.717175
| 0.717175
| 0.704013
| 0.669021
| 0.661316
| 0
| 0.005288
| 0.204846
| 4,994
| 134
| 132
| 37.268657
| 0.779149
| 0.06668
| 0
| 0.585106
| 0
| 0
| 0.12594
| 0
| 0
| 0
| 0
| 0
| 0.148936
| 1
| 0.095745
| false
| 0
| 0.085106
| 0
| 0.223404
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6e24b1edc0db012f68587ab507e57932cf0b9995
| 106
|
py
|
Python
|
textattack/datasets/helpers/__init__.py
|
xinzhel/TextAttack
|
635a76429743d7bd050aa26cc306e01748e1e4c7
|
[
"MIT"
] | 1,980
|
2020-04-17T23:43:55.000Z
|
2022-03-31T19:22:17.000Z
|
textattack/datasets/helpers/__init__.py
|
xinzhel/TextAttack
|
635a76429743d7bd050aa26cc306e01748e1e4c7
|
[
"MIT"
] | 350
|
2020-04-23T22:34:04.000Z
|
2022-03-29T20:57:22.000Z
|
textattack/datasets/helpers/__init__.py
|
xinzhel/TextAttack
|
635a76429743d7bd050aa26cc306e01748e1e4c7
|
[
"MIT"
] | 267
|
2020-04-30T16:55:36.000Z
|
2022-03-31T18:59:46.000Z
|
"""
Dataset Helpers
=============================
"""
from .ted_multi import TedMultiTranslationDataset
| 13.25
| 49
| 0.556604
| 7
| 106
| 8.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103774
| 106
| 7
| 50
| 15.142857
| 0.610526
| 0.424528
| 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
| 0
| 0
|
0
| 4
|
6e29e84dbb24204a5955fba396b80023d337a359
| 49
|
py
|
Python
|
Test/test1.py
|
AndrewZStore/private_proxy_pool
|
e603a3c432f55547b24b24f281b9a72f9f4d6cae
|
[
"MIT"
] | null | null | null |
Test/test1.py
|
AndrewZStore/private_proxy_pool
|
e603a3c432f55547b24b24f281b9a72f9f4d6cae
|
[
"MIT"
] | null | null | null |
Test/test1.py
|
AndrewZStore/private_proxy_pool
|
e603a3c432f55547b24b24f281b9a72f9f4d6cae
|
[
"MIT"
] | null | null | null |
list1 = ['hellow' for i in range(4)]
print(list1)
| 24.5
| 36
| 0.673469
| 9
| 49
| 3.666667
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 0.142857
| 49
| 2
| 37
| 24.5
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0.12
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
28322e68af225c389a6d369df05723ae08027bec
| 213
|
py
|
Python
|
01_Workshop-master/Chapter03/my_module.py
|
Anna-MarieTomm/Learn_Python_with_Anna-Marie
|
e1d7b0f95674a91b1f30acd8923e0fc54f823182
|
[
"MIT"
] | null | null | null |
01_Workshop-master/Chapter03/my_module.py
|
Anna-MarieTomm/Learn_Python_with_Anna-Marie
|
e1d7b0f95674a91b1f30acd8923e0fc54f823182
|
[
"MIT"
] | null | null | null |
01_Workshop-master/Chapter03/my_module.py
|
Anna-MarieTomm/Learn_Python_with_Anna-Marie
|
e1d7b0f95674a91b1f30acd8923e0fc54f823182
|
[
"MIT"
] | null | null | null |
#module: now being extended
"""
Docstring: This script comutes the sum of the factorial of a list of numbers
"""
import math
def compute (numbers):
return([math.factorial(n) for n in numbers])
| 17.75
| 77
| 0.676056
| 31
| 213
| 4.645161
| 0.741935
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.234742
| 213
| 12
| 78
| 17.75
| 0.883436
| 0.488263
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
284477dfcb18fcfa26f5ca86714847e85c91aaac
| 408
|
py
|
Python
|
raster_tester/__init__.py
|
mapbox/raster-tester
|
273d2b7194d52d0cc771d3453800909e4b699850
|
[
"MIT"
] | null | null | null |
raster_tester/__init__.py
|
mapbox/raster-tester
|
273d2b7194d52d0cc771d3453800909e4b699850
|
[
"MIT"
] | 3
|
2018-06-05T16:47:05.000Z
|
2018-06-07T22:38:19.000Z
|
raster_tester/__init__.py
|
mapbox/raster-tester
|
273d2b7194d52d0cc771d3453800909e4b699850
|
[
"MIT"
] | 1
|
2021-02-23T10:54:43.000Z
|
2021-02-23T10:54:43.000Z
|
from .compare import compare, array_compare, compare_properties
from .empty import is_empty
from .aligned import tiled, aligned
from .crosses_dateline import crosses_dateline, winding_order, densify, make_bounds_array, transform_bounds
__all__ = [is_empty, compare, array_compare, compare_properties,
tiled, aligned, crosses_dateline, winding_order, densify, make_bounds_array, transform_bounds]
| 51
| 107
| 0.823529
| 52
| 408
| 6.057692
| 0.346154
| 0.142857
| 0.120635
| 0.165079
| 0.634921
| 0.406349
| 0.406349
| 0.406349
| 0.406349
| 0.406349
| 0
| 0
| 0.117647
| 408
| 7
| 108
| 58.285714
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
286ef29f9fbdbdaebed2f91a968a4190cfba368a
| 59
|
py
|
Python
|
CodeUp/6020.py
|
chae-heechan/Algorithm_Study
|
183a77e2cfe352cd82fb5e988b493082529a73dd
|
[
"MIT"
] | null | null | null |
CodeUp/6020.py
|
chae-heechan/Algorithm_Study
|
183a77e2cfe352cd82fb5e988b493082529a73dd
|
[
"MIT"
] | null | null | null |
CodeUp/6020.py
|
chae-heechan/Algorithm_Study
|
183a77e2cfe352cd82fb5e988b493082529a73dd
|
[
"MIT"
] | null | null | null |
# 주민번호 입력받아 형태 바꿔 출력하기
a, b = input().split("-")
print(a+b)
| 19.666667
| 25
| 0.59322
| 12
| 59
| 2.916667
| 0.833333
| 0.114286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169492
| 59
| 3
| 26
| 19.666667
| 0.714286
| 0.338983
| 0
| 0
| 0
| 0
| 0.026316
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
2875cc245d2c39345f660d30d0416853610152b3
| 67
|
py
|
Python
|
src/Python/pandasDynamo/run.py
|
SHKnudsen/Pandamo
|
ee99abf406d0609e766702aae98309a0936dae6e
|
[
"MIT"
] | 19
|
2019-11-10T21:17:44.000Z
|
2021-01-29T00:02:57.000Z
|
src/Python/pandasDynamo/run.py
|
SHKnudsen/Pandamo
|
ee99abf406d0609e766702aae98309a0936dae6e
|
[
"MIT"
] | 1
|
2019-11-14T08:21:46.000Z
|
2020-02-18T12:59:42.000Z
|
release packages/DynamoPandas/extra/pandasDynamo/run.py
|
SHKnudsen/Pandamo
|
ee99abf406d0609e766702aae98309a0936dae6e
|
[
"MIT"
] | 3
|
2019-12-24T20:36:04.000Z
|
2020-03-16T16:27:17.000Z
|
from pandamo import app
if( __name__ == "__main__"):
app.run()
| 16.75
| 28
| 0.656716
| 9
| 67
| 4
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.19403
| 67
| 4
| 29
| 16.75
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 0
| 0
|
0
| 4
|
954e8ded72cbe65c88e7503c98c2596b838d1ffe
| 171
|
py
|
Python
|
src/print_func.py
|
DjamelALI/covid-19-database
|
41024fd0858c63616e5b4571bf56904a3467a93f
|
[
"MIT"
] | null | null | null |
src/print_func.py
|
DjamelALI/covid-19-database
|
41024fd0858c63616e5b4571bf56904a3467a93f
|
[
"MIT"
] | null | null | null |
src/print_func.py
|
DjamelALI/covid-19-database
|
41024fd0858c63616e5b4571bf56904a3467a93f
|
[
"MIT"
] | null | null | null |
def print_head(msg: str):
start = "| "
end = " |"
line = "-" * (len(msg) + len(start) + len(end))
print(line)
print(start + msg + end)
print(line)
| 21.375
| 51
| 0.497076
| 22
| 171
| 3.818182
| 0.409091
| 0.190476
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.298246
| 171
| 7
| 52
| 24.428571
| 0.7
| 0
| 0
| 0.285714
| 0
| 0
| 0.02924
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.142857
| 0.571429
| 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
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
9552f80b22b06089d3eafd6e73cbb6eb4fb58bbc
| 96
|
py
|
Python
|
carbon0/carbon_quiz/apps.py
|
Carbon0-Games/carbon0-web-app
|
068a7223b2717d602944ec561adcde39930cba85
|
[
"MIT"
] | 2
|
2020-10-30T15:07:28.000Z
|
2020-12-22T04:29:50.000Z
|
carbon0/carbon_quiz/apps.py
|
Carbon0-Games/carbon0-web-app
|
068a7223b2717d602944ec561adcde39930cba85
|
[
"MIT"
] | 45
|
2020-09-22T12:47:55.000Z
|
2022-03-12T00:48:18.000Z
|
carbon0/carbon_quiz/apps.py
|
Carbon0-Games/carbon0-web-app
|
068a7223b2717d602944ec561adcde39930cba85
|
[
"MIT"
] | 1
|
2020-09-08T15:48:13.000Z
|
2020-09-08T15:48:13.000Z
|
from django.apps import AppConfig
class CarbonQuizConfig(AppConfig):
name = "carbon_quiz"
| 16
| 34
| 0.770833
| 11
| 96
| 6.636364
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 96
| 5
| 35
| 19.2
| 0.901235
| 0
| 0
| 0
| 0
| 0
| 0.114583
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
955ea118a5a6b732c99db4af29002d34ec9e3e16
| 205
|
py
|
Python
|
projects/project02/Notebooks/global_defs.py
|
xbresson/CE7454_2018
|
32647cae8122ddb50775329f76f7a0c4a26f3276
|
[
"MIT"
] | 84
|
2018-08-14T10:10:09.000Z
|
2021-11-25T10:07:13.000Z
|
projects/project02/Notebooks/global_defs.py
|
erichhhhho/CE7454_2018
|
32647cae8122ddb50775329f76f7a0c4a26f3276
|
[
"MIT"
] | 1
|
2018-08-17T03:35:25.000Z
|
2018-08-17T03:35:25.000Z
|
projects/project02/Notebooks/global_defs.py
|
erichhhhho/CE7454_2018
|
32647cae8122ddb50775329f76f7a0c4a26f3276
|
[
"MIT"
] | 44
|
2018-08-15T04:27:26.000Z
|
2021-11-25T10:07:22.000Z
|
import torch
if torch.cuda.is_available():
device= torch.device("cuda")
map_loc = 'cuda'
else:
device= torch.device("cpu")
map_loc = 'cpu'
device = torch.device("cpu")
map_loc = 'cpu'
| 13.666667
| 32
| 0.634146
| 29
| 205
| 4.344828
| 0.37931
| 0.261905
| 0.404762
| 0.31746
| 0.460317
| 0.460317
| 0.460317
| 0
| 0
| 0
| 0
| 0
| 0.204878
| 205
| 15
| 33
| 13.666667
| 0.773006
| 0
| 0
| 0.444444
| 0
| 0
| 0.097087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.111111
| 0
| 1
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
956517ededc725def855814269a245af2283b918
| 88
|
py
|
Python
|
main.py
|
popescuaaa/nmf
|
c65263198158e1ba6e1b9270b7d7a87a8803fb72
|
[
"MIT"
] | null | null | null |
main.py
|
popescuaaa/nmf
|
c65263198158e1ba6e1b9270b7d7a87a8803fb72
|
[
"MIT"
] | null | null | null |
main.py
|
popescuaaa/nmf
|
c65263198158e1ba6e1b9270b7d7a87a8803fb72
|
[
"MIT"
] | null | null | null |
from src import NMF
if __name__ == '__main__':
print("Hello World!")
print(NMF)
| 17.6
| 26
| 0.647727
| 12
| 88
| 4.083333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.215909
| 88
| 5
| 27
| 17.6
| 0.710145
| 0
| 0
| 0
| 0
| 0
| 0.224719
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
957ea4b23617286a50ea0937e642d81b7f145497
| 147
|
py
|
Python
|
contohRekursif.py
|
muhiqsimui/PyTraining
|
41c99adf0d5bd330b3c35242c9f447e8992d9074
|
[
"MIT"
] | 6
|
2021-07-15T01:33:31.000Z
|
2021-11-17T11:05:50.000Z
|
contohRekursif.py
|
cxml2/PyTraining
|
41c99adf0d5bd330b3c35242c9f447e8992d9074
|
[
"MIT"
] | null | null | null |
contohRekursif.py
|
cxml2/PyTraining
|
41c99adf0d5bd330b3c35242c9f447e8992d9074
|
[
"MIT"
] | 1
|
2021-08-23T11:22:53.000Z
|
2021-08-23T11:22:53.000Z
|
#rekursif adalah fungsi yg memanggil dirinya sendiri ok sip
def cetak(x):
print(x)
if x>1:
cetak(x-1)
elif x<1:
cetak(x+1)
cetak(5)
| 14.7
| 59
| 0.646259
| 28
| 147
| 3.392857
| 0.607143
| 0.084211
| 0.221053
| 0.168421
| 0.189474
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044248
| 0.231293
| 147
| 9
| 60
| 16.333333
| 0.79646
| 0.394558
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.142857
| 0.142857
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
958acddf13fe4d79dfbd1ceeba67585864302b16
| 1,140
|
py
|
Python
|
lib/systems/d-xylulose.py
|
pulsar-chem/BPModule
|
f8e64e04fdb01947708f098e833600c459c2ff0e
|
[
"BSD-3-Clause"
] | null | null | null |
lib/systems/d-xylulose.py
|
pulsar-chem/BPModule
|
f8e64e04fdb01947708f098e833600c459c2ff0e
|
[
"BSD-3-Clause"
] | null | null | null |
lib/systems/d-xylulose.py
|
pulsar-chem/BPModule
|
f8e64e04fdb01947708f098e833600c459c2ff0e
|
[
"BSD-3-Clause"
] | null | null | null |
import pulsar as psr
def load_ref_system():
""" Returns d-xylulose as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
C 2.5413 -0.0840 0.1586
C 1.0785 0.2582 -0.2141
C 0.1112 -0.8211 0.3626
C -1.2253 -0.1569 0.7445
C -2.2588 0.0443 -0.3568
O 3.4244 0.9777 -0.0639
O 0.9169 0.4391 -1.6002
O -0.0484 -1.9341 -0.4765
O -1.4298 0.1858 1.8916
O -3.2317 1.0078 -0.0810
H 2.8853 -0.9935 -0.3744
H 2.6417 -0.2675 1.2428
H 0.8021 1.2642 0.1802
H 0.5702 -1.2943 1.2640
H -2.7365 -0.9295 -0.5869
H -1.7845 0.4260 -1.2801
H 3.3328 1.2462 -0.9702
H 1.2920 -0.3159 -2.0399
H -0.5096 -1.6545 -1.2597
H -3.5841 0.8358 0.7843
""")
| 40.714286
| 66
| 0.405263
| 170
| 1,140
| 2.7
| 0.547059
| 0.013072
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.518135
| 0.492105
| 1,140
| 27
| 67
| 42.222222
| 0.274611
| 0.09386
| 0
| 0
| 0
| 0
| 0.917078
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.041667
| true
| 0
| 0.041667
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
95acca8f714978975bf225f38e6fad15792df99d
| 106
|
py
|
Python
|
hierarchy_system/apps.py
|
GregSpurgeon/fileStructuring
|
13b69e6f2bbe8b220a1cbdbc4dfdd697e940368b
|
[
"MIT"
] | null | null | null |
hierarchy_system/apps.py
|
GregSpurgeon/fileStructuring
|
13b69e6f2bbe8b220a1cbdbc4dfdd697e940368b
|
[
"MIT"
] | null | null | null |
hierarchy_system/apps.py
|
GregSpurgeon/fileStructuring
|
13b69e6f2bbe8b220a1cbdbc4dfdd697e940368b
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class HierarchySystemConfig(AppConfig):
name = 'hierarchy_system'
| 17.666667
| 39
| 0.792453
| 11
| 106
| 7.545455
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141509
| 106
| 5
| 40
| 21.2
| 0.912088
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
95b86466ca72b2aecfda2932550215f41e6ac27f
| 995
|
py
|
Python
|
tests/test_math.py
|
exterkamps/Python-Data-Structures
|
8594ed934edeaded4866999932384d12fb4519c3
|
[
"Apache-2.0"
] | 3
|
2018-10-15T17:38:29.000Z
|
2021-03-24T02:55:46.000Z
|
tests/test_math.py
|
exterkamp/Python-Data-Structures
|
8594ed934edeaded4866999932384d12fb4519c3
|
[
"Apache-2.0"
] | null | null | null |
tests/test_math.py
|
exterkamp/Python-Data-Structures
|
8594ed934edeaded4866999932384d12fb4519c3
|
[
"Apache-2.0"
] | null | null | null |
import unittest
from algorithms.math.factorial import factorial
from algorithms.math.fibonacci import fibonacci_dp, fibonacci_recursive
class test_math(unittest.TestCase):
def test_factorial(self):
self.assertEqual(factorial(0), 0)
self.assertEqual(factorial(1), 1)
self.assertEqual(factorial(3), 6)
self.assertEqual(factorial(5), 120)
self.assertEqual(factorial(10), 3628800)
def test_fibonacci_dp(self):
self.assertEqual(fibonacci_dp(-1), 0)
self.assertEqual(fibonacci_dp(0), 0)
self.assertEqual(fibonacci_dp(1), 1)
self.assertEqual(fibonacci_dp(5), 5)
self.assertEqual(fibonacci_dp(12), 144)
def test_fibonacci_recursive(self):
self.assertEqual(fibonacci_recursive(-1), 0)
self.assertEqual(fibonacci_recursive(0), 0)
self.assertEqual(fibonacci_recursive(1), 1)
self.assertEqual(fibonacci_recursive(5), 5)
self.assertEqual(fibonacci_recursive(12), 144)
| 36.851852
| 71
| 0.699497
| 121
| 995
| 5.603306
| 0.206612
| 0.331858
| 0.353982
| 0.19174
| 0.426254
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055831
| 0.18995
| 995
| 26
| 72
| 38.269231
| 0.78536
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.681818
| 1
| 0.136364
| false
| 0
| 0.136364
| 0
| 0.318182
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
95c2736261fe987788c17106ce9a676e8fb0e026
| 152
|
py
|
Python
|
examples/VECs/microbench/test_load.py
|
UTexas-PSAAP/Parla.py
|
3d92a156be41983e32576940ef6baffd78d4eb84
|
[
"BSD-3-Clause"
] | 11
|
2020-06-22T16:20:15.000Z
|
2022-03-20T22:54:40.000Z
|
examples/VECs/microbench/test_load.py
|
UTexas-PSAAP/Parla.py
|
3d92a156be41983e32576940ef6baffd78d4eb84
|
[
"BSD-3-Clause"
] | 86
|
2019-10-24T07:43:05.000Z
|
2022-03-28T05:20:17.000Z
|
examples/VECs/microbench/test_load.py
|
UTexas-PSAAP/Parla.py
|
3d92a156be41983e32576940ef6baffd78d4eb84
|
[
"BSD-3-Clause"
] | 7
|
2019-10-24T05:46:27.000Z
|
2022-02-09T19:47:58.000Z
|
import time
t = time.perf_counter()
from parla.multiload import multiload_contexts
begin_multiload = time.perf_counter() - t
print(begin_multiload)
| 15.2
| 46
| 0.796053
| 21
| 152
| 5.52381
| 0.52381
| 0.137931
| 0.258621
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 152
| 9
| 47
| 16.888889
| 0.87218
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0.2
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
95cc390f0b37516f1ac485886c0f430f1b862809
| 103
|
py
|
Python
|
src/local_run.py
|
marshcode/marshcode
|
87de5ce14285301f1c1729a209f7ef88f280678a
|
[
"MIT"
] | null | null | null |
src/local_run.py
|
marshcode/marshcode
|
87de5ce14285301f1c1729a209f7ef88f280678a
|
[
"MIT"
] | null | null | null |
src/local_run.py
|
marshcode/marshcode
|
87de5ce14285301f1c1729a209f7ef88f280678a
|
[
"MIT"
] | null | null | null |
__author__ = 'david'
from davesite.app.factory import create_app
app = create_app()
app.run("", 8080)
| 17.166667
| 43
| 0.737864
| 15
| 103
| 4.666667
| 0.666667
| 0.257143
| 0.342857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044444
| 0.126214
| 103
| 6
| 44
| 17.166667
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0.048077
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 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
| 0
| 0
|
0
| 4
|
95cc52708b91fe912de9cc00361e2784549c91fb
| 68
|
py
|
Python
|
src/__init__.py
|
LaudateCorpus1/hermes-5
|
d9b50452379fe636da96c2bad2d286afa15cd7b9
|
[
"Apache-2.0"
] | 135
|
2015-11-17T09:04:37.000Z
|
2022-01-14T07:00:34.000Z
|
src/__init__.py
|
cacan/hermes
|
d9b50452379fe636da96c2bad2d286afa15cd7b9
|
[
"Apache-2.0"
] | 16
|
2015-11-19T18:04:13.000Z
|
2016-11-19T00:30:12.000Z
|
src/__init__.py
|
cacan/hermes
|
d9b50452379fe636da96c2bad2d286afa15cd7b9
|
[
"Apache-2.0"
] | 68
|
2015-11-13T22:51:57.000Z
|
2022-01-26T01:51:09.000Z
|
__version__ = '1.0'
import algorithms
import data_prep
import utils
| 13.6
| 19
| 0.808824
| 10
| 68
| 5
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033898
| 0.132353
| 68
| 4
| 20
| 17
| 0.813559
| 0
| 0
| 0
| 0
| 0
| 0.044118
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
254012f39184189d4ce825f535a9d2c592877451
| 364
|
py
|
Python
|
bindings/pydeck/pydeck/types/string.py
|
acebelowzero/deck.gl
|
7acf1fefc337486f129670b3a19c0ce9c13003d5
|
[
"MIT"
] | 2
|
2021-08-11T08:05:51.000Z
|
2021-08-11T08:05:54.000Z
|
bindings/pydeck/pydeck/types/string.py
|
acebelowzero/deck.gl
|
7acf1fefc337486f129670b3a19c0ce9c13003d5
|
[
"MIT"
] | null | null | null |
bindings/pydeck/pydeck/types/string.py
|
acebelowzero/deck.gl
|
7acf1fefc337486f129670b3a19c0ce9c13003d5
|
[
"MIT"
] | null | null | null |
from functools import total_ordering
@total_ordering
class String:
def __init__(self, s: str, quote_type: str = '"'):
self.value = f"{quote_type}{s}{quote_type}"
def __lt__(self, other):
return str(self) < str(other)
def __eq__(self, other):
return str(self) == str(other)
def __repr__(self):
return self.value
| 21.411765
| 54
| 0.629121
| 49
| 364
| 4.244898
| 0.428571
| 0.129808
| 0.144231
| 0.173077
| 0.317308
| 0.317308
| 0.317308
| 0.317308
| 0
| 0
| 0
| 0
| 0.244505
| 364
| 16
| 55
| 22.75
| 0.756364
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0.074176
| 0
| 0
| 0
| 0
| 0
| 1
| 0.363636
| false
| 0
| 0.090909
| 0.272727
| 0.818182
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
2545f26ea313edcb67b629591d95e9b619f2a540
| 132
|
py
|
Python
|
whileloops/whileloops.py
|
IMBLACK-CMD/Pythonister
|
801a8fef7ef67fa84df2496a7d93738ced25e9d8
|
[
"MIT"
] | null | null | null |
whileloops/whileloops.py
|
IMBLACK-CMD/Pythonister
|
801a8fef7ef67fa84df2496a7d93738ced25e9d8
|
[
"MIT"
] | null | null | null |
whileloops/whileloops.py
|
IMBLACK-CMD/Pythonister
|
801a8fef7ef67fa84df2496a7d93738ced25e9d8
|
[
"MIT"
] | null | null | null |
counter = 0
while counter <= 5:
print("counter", counter)
counter = counter + 1
else:
print("counter has become false ")
| 22
| 38
| 0.643939
| 17
| 132
| 5
| 0.588235
| 0.494118
| 0.494118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029703
| 0.234848
| 132
| 6
| 38
| 22
| 0.811881
| 0
| 0
| 0
| 0
| 0
| 0.240602
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 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
| 0
|
0
| 4
|
25605727da938717725472e5f3fb5f908ccad9ef
| 336
|
py
|
Python
|
configs/detect/mmdetection/faster_rcnn_x101_64x4d_fpn_1x_coco.py
|
linkinpark213/online-mot-by-detection
|
3bde45cc68815f84fa73bec816a557349e5a33fd
|
[
"MIT"
] | null | null | null |
configs/detect/mmdetection/faster_rcnn_x101_64x4d_fpn_1x_coco.py
|
linkinpark213/online-mot-by-detection
|
3bde45cc68815f84fa73bec816a557349e5a33fd
|
[
"MIT"
] | null | null | null |
configs/detect/mmdetection/faster_rcnn_x101_64x4d_fpn_1x_coco.py
|
linkinpark213/online-mot-by-detection
|
3bde45cc68815f84fa73bec816a557349e5a33fd
|
[
"MIT"
] | null | null | null |
type = 'MMDetector'
config = '/home/linkinpark213/Source/mmdetection/configs/faster_rcnn/faster_rcnn_x101_64x4d_fpn_1x_coco.py'
checkpoint = 'https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_x101_64x4d_fpn_1x_coco/faster_rcnn_x101_64x4d_fpn_1x_coco_20200204-833ee192.pth'
conf_threshold = 0.5
| 67.2
| 186
| 0.854167
| 54
| 336
| 4.907407
| 0.62963
| 0.188679
| 0.158491
| 0.215094
| 0.392453
| 0.392453
| 0.392453
| 0.286792
| 0.286792
| 0
| 0
| 0.135802
| 0.035714
| 336
| 4
| 187
| 84
| 0.682099
| 0
| 0
| 0
| 0
| 0.25
| 0.824405
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c261ba50b45a089103a148a3fd4fcd4932f27b0d
| 128
|
py
|
Python
|
itcast/Python/BasicItcast/day5/com.dhcc/jiujiu.py
|
diqiuonline/Demo
|
cba12f44b57b47a4ea7f23ed3e28b21de5ef0d86
|
[
"MIT"
] | null | null | null |
itcast/Python/BasicItcast/day5/com.dhcc/jiujiu.py
|
diqiuonline/Demo
|
cba12f44b57b47a4ea7f23ed3e28b21de5ef0d86
|
[
"MIT"
] | 22
|
2020-04-14T15:52:45.000Z
|
2022-02-28T14:52:14.000Z
|
itcast/Python/BasicItcast/day5/com.dhcc/jiujiu.py
|
diqiuonline/Demo
|
cba12f44b57b47a4ea7f23ed3e28b21de5ef0d86
|
[
"MIT"
] | 1
|
2020-08-31T06:51:57.000Z
|
2020-08-31T06:51:57.000Z
|
j = 1
while j <= 9:
i = 1
while i <= j:
print(f'{i}*{j}={i*j}' , end='\t')
i += 1
j += 1
print()
| 16
| 42
| 0.320313
| 23
| 128
| 1.782609
| 0.391304
| 0.146341
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068493
| 0.429688
| 128
| 8
| 43
| 16
| 0.493151
| 0
| 0
| 0
| 0
| 0
| 0.116279
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c2791df0a839bdadc5aa868b8f7fc8fd45afa365
| 264
|
py
|
Python
|
main.py
|
joway/statsd-server
|
ffa5bb696ad28b6c3fc1c619d4ca1dc413a7b986
|
[
"MIT"
] | null | null | null |
main.py
|
joway/statsd-server
|
ffa5bb696ad28b6c3fc1c619d4ca1dc413a7b986
|
[
"MIT"
] | null | null | null |
main.py
|
joway/statsd-server
|
ffa5bb696ad28b6c3fc1c619d4ca1dc413a7b986
|
[
"MIT"
] | null | null | null |
from time import sleep
from monitor import monitoring_mem, monitoring_swap, monitoring_cpu, monitoring_net
from settings import INTERVAL
while True:
monitoring_mem()
monitoring_swap()
monitoring_cpu()
monitoring_net()
sleep(INTERVAL // 1000)
| 22
| 83
| 0.765152
| 32
| 264
| 6.0625
| 0.46875
| 0.134021
| 0.237113
| 0.278351
| 0.546392
| 0.546392
| 0.546392
| 0.546392
| 0
| 0
| 0
| 0.018349
| 0.174242
| 264
| 11
| 84
| 24
| 0.87156
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c292e8980cf31c69ffbc9b8c354a94b0a019cf0c
| 347
|
py
|
Python
|
2.py
|
chuzhinoves/DevOps_python_HW2
|
1f1d83bd69b62fa45f36758290335d5322983c37
|
[
"MIT"
] | null | null | null |
2.py
|
chuzhinoves/DevOps_python_HW2
|
1f1d83bd69b62fa45f36758290335d5322983c37
|
[
"MIT"
] | null | null | null |
2.py
|
chuzhinoves/DevOps_python_HW2
|
1f1d83bd69b62fa45f36758290335d5322983c37
|
[
"MIT"
] | null | null | null |
#уверен, что есть способ короче, но в голову не пришел
input_array_str = input("введите список разделенный пробелами: ").split(" ")
if len(input_array_str) > 0:
for i in range(1, len(input_array_str), 2):
a = input_array_str[i]
input_array_str[i] = input_array_str[i-1]
input_array_str[i-1] = a
print(input_array_str)
| 38.555556
| 76
| 0.691643
| 59
| 347
| 3.79661
| 0.491525
| 0.357143
| 0.464286
| 0.25
| 0.258929
| 0.1875
| 0.1875
| 0.1875
| 0
| 0
| 0
| 0.017857
| 0.193084
| 347
| 8
| 77
| 43.375
| 0.782143
| 0.152738
| 0
| 0
| 0
| 0
| 0.133106
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.142857
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c2a13d7fe3eb637673dc5e1e9cc3d684eaffed54
| 353
|
py
|
Python
|
clip_retrieval/cli.py
|
afiaka87/clip-retrieval
|
97a17e0952524d4565620249228a11f91390462c
|
[
"MIT"
] | null | null | null |
clip_retrieval/cli.py
|
afiaka87/clip-retrieval
|
97a17e0952524d4565620249228a11f91390462c
|
[
"MIT"
] | null | null | null |
clip_retrieval/cli.py
|
afiaka87/clip-retrieval
|
97a17e0952524d4565620249228a11f91390462c
|
[
"MIT"
] | null | null | null |
from clip_retrieval.clip_back import clip_back
from clip_retrieval.clip_batch import clip_batch
from clip_retrieval.clip_filter import clip_filter
import fire
import logging
def main():
"""Main entry point"""
fire.Fire(
{
"back": clip_back,
"batch": clip_batch,
"filter": clip_filter
}
)
| 22.0625
| 50
| 0.648725
| 44
| 353
| 4.931818
| 0.295455
| 0.110599
| 0.235023
| 0.290323
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.271955
| 353
| 16
| 51
| 22.0625
| 0.844358
| 0.045326
| 0
| 0
| 0
| 0
| 0.045181
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.076923
| true
| 0
| 0.384615
| 0
| 0.461538
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c2f12b4b1585cd84dfcf0327bd0c64f9ad855d2c
| 254
|
py
|
Python
|
codetools/util/tests/sequence_test_case.py
|
braidedlogix/Codetools_wxPhoenix_py3
|
555e7e3e4895ef9d79716e0323db4445436d10dc
|
[
"BSD-3-Clause"
] | 1
|
2017-05-12T04:17:50.000Z
|
2017-05-12T04:17:50.000Z
|
codetools/util/tests/sequence_test_case.py
|
braidedlogix/Codetools_wxPhoenix_py3
|
555e7e3e4895ef9d79716e0323db4445436d10dc
|
[
"BSD-3-Clause"
] | null | null | null |
codetools/util/tests/sequence_test_case.py
|
braidedlogix/Codetools_wxPhoenix_py3
|
555e7e3e4895ef9d79716e0323db4445436d10dc
|
[
"BSD-3-Clause"
] | null | null | null |
import unittest
from traits.testing.api import doctest_for_module
import codetools.util.sequence as sequence
class SequenceDocTestCase(doctest_for_module(sequence)):
pass
if __name__ == '__main__':
import sys
unittest.main(argv=sys.argv)
| 19.538462
| 56
| 0.783465
| 33
| 254
| 5.666667
| 0.636364
| 0.106952
| 0.171123
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141732
| 254
| 12
| 57
| 21.166667
| 0.857798
| 0
| 0
| 0
| 0
| 0
| 0.031496
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.125
| 0.5
| 0
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
6c3fc5e5ae7eafb4ee1c1dfef1b12fd41a38900f
| 46
|
py
|
Python
|
application/workprogramsapp/expertise/expertise_logic.py
|
rendex85/analytics_backend-1
|
02ac45bde8754491795c99fbddcfc249d64a2fd3
|
[
"MIT"
] | null | null | null |
application/workprogramsapp/expertise/expertise_logic.py
|
rendex85/analytics_backend-1
|
02ac45bde8754491795c99fbddcfc249d64a2fd3
|
[
"MIT"
] | null | null | null |
application/workprogramsapp/expertise/expertise_logic.py
|
rendex85/analytics_backend-1
|
02ac45bde8754491795c99fbddcfc249d64a2fd3
|
[
"MIT"
] | null | null | null |
def add_expert_to_wp(wp_id, expertise):
re
| 23
| 39
| 0.76087
| 9
| 46
| 3.444444
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152174
| 46
| 2
| 40
| 23
| 0.794872
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 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
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6c5118383b2f5301b854f8a22fa188b7a7052994
| 130
|
py
|
Python
|
demo/User.py
|
tongnainfo/learn_python
|
47514eb03c60b65b3fccdd6a1eb1cba5a45f28f5
|
[
"MIT"
] | null | null | null |
demo/User.py
|
tongnainfo/learn_python
|
47514eb03c60b65b3fccdd6a1eb1cba5a45f28f5
|
[
"MIT"
] | null | null | null |
demo/User.py
|
tongnainfo/learn_python
|
47514eb03c60b65b3fccdd6a1eb1cba5a45f28f5
|
[
"MIT"
] | null | null | null |
class User:
def __init__(self,name):
self.name=name
def show(self):
print(self.name)
user =User("ada66")
user.show()
| 14.444444
| 26
| 0.653846
| 20
| 130
| 4.05
| 0.45
| 0.296296
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018868
| 0.184615
| 130
| 9
| 27
| 14.444444
| 0.745283
| 0
| 0
| 0
| 0
| 0
| 0.038168
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0
| 0.428571
| 0.142857
| 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
| 0
| 0
| 0
|
0
| 4
|
665af2716bfb387419b1614d37ad347eb499ce7b
| 72
|
py
|
Python
|
centralauth/provider/__init__.py
|
lenarother/django-centralauth
|
dadd78191d879c96fc2730cb5625ab833c1ea0da
|
[
"MIT"
] | 6
|
2018-11-22T15:06:57.000Z
|
2021-03-16T18:44:41.000Z
|
centralauth/provider/__init__.py
|
lenarother/django-centralauth
|
dadd78191d879c96fc2730cb5625ab833c1ea0da
|
[
"MIT"
] | 10
|
2021-05-04T18:55:50.000Z
|
2021-06-01T22:58:43.000Z
|
centralauth/provider/__init__.py
|
lenarother/django-centralauth
|
dadd78191d879c96fc2730cb5625ab833c1ea0da
|
[
"MIT"
] | 1
|
2019-04-30T08:07:38.000Z
|
2019-04-30T08:07:38.000Z
|
default_app_config = 'centralauth.provider.apps.ProviderConfig' # noqa
| 36
| 71
| 0.819444
| 8
| 72
| 7.125
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 72
| 1
| 72
| 72
| 0.863636
| 0.055556
| 0
| 0
| 0
| 0
| 0.606061
| 0.606061
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
669fca25d36a642429a7a5090bcd4265194f41ad
| 267
|
py
|
Python
|
7term/TT/compiler/lab3/SemanticException.py
|
nik-sergeson/bsuir-informatics-labs
|
14805fb83b8e2324580b6253158565068595e804
|
[
"Apache-2.0"
] | null | null | null |
7term/TT/compiler/lab3/SemanticException.py
|
nik-sergeson/bsuir-informatics-labs
|
14805fb83b8e2324580b6253158565068595e804
|
[
"Apache-2.0"
] | null | null | null |
7term/TT/compiler/lab3/SemanticException.py
|
nik-sergeson/bsuir-informatics-labs
|
14805fb83b8e2324580b6253158565068595e804
|
[
"Apache-2.0"
] | null | null | null |
class SemanticException(Exception):
def __init__(self, message, token=None):
if token is None:
super(SemanticException, self).__init__(message)
else:
super(SemanticException, self).__init__(message + ': ' + token.__str__())
| 44.5
| 85
| 0.64794
| 26
| 267
| 6.038462
| 0.538462
| 0.152866
| 0.33121
| 0.382166
| 0.471338
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.235955
| 267
| 6
| 85
| 44.5
| 0.769608
| 0
| 0
| 0
| 0
| 0
| 0.007463
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0
| 0
| 0.333333
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
66a1eecfeadd419b04801069cefedd08bd83b208
| 114
|
py
|
Python
|
mediatracker/movies/urls.py
|
theKeithSequeira/MediaTracker
|
529ac75032f9856d2dff0ed34bd1c71d37aae4cb
|
[
"MIT"
] | null | null | null |
mediatracker/movies/urls.py
|
theKeithSequeira/MediaTracker
|
529ac75032f9856d2dff0ed34bd1c71d37aae4cb
|
[
"MIT"
] | null | null | null |
mediatracker/movies/urls.py
|
theKeithSequeira/MediaTracker
|
529ac75032f9856d2dff0ed34bd1c71d37aae4cb
|
[
"MIT"
] | null | null | null |
from django.urls import path
from . import views
urlpatterns=[
path('',views.movie_list,name='movie_list')
]
| 19
| 47
| 0.72807
| 16
| 114
| 5.0625
| 0.625
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140351
| 114
| 6
| 48
| 19
| 0.826531
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 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
| 0
| 0
|
0
| 4
|
66ac96d2dd67a7b538e7491bed60b997b0156975
| 164
|
py
|
Python
|
src/hootingyard/utils/get_from_internet_archive.py
|
HootingYard/archive_management
|
448f15f74c035ef846e1a6f762e448d922744b9b
|
[
"CC0-1.0"
] | null | null | null |
src/hootingyard/utils/get_from_internet_archive.py
|
HootingYard/archive_management
|
448f15f74c035ef846e1a6f762e448d922744b9b
|
[
"CC0-1.0"
] | null | null | null |
src/hootingyard/utils/get_from_internet_archive.py
|
HootingYard/archive_management
|
448f15f74c035ef846e1a6f762e448d922744b9b
|
[
"CC0-1.0"
] | null | null | null |
import pprint
from internetarchive import get_item, delete
item = get_item("hooting_yard_2007-01-10")
pprint.pprint(item.item_metadata)
# delete(item.identifier)
| 20.5
| 44
| 0.810976
| 24
| 164
| 5.333333
| 0.583333
| 0.109375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053691
| 0.091463
| 164
| 7
| 45
| 23.428571
| 0.805369
| 0.140244
| 0
| 0
| 0
| 0
| 0.165468
| 0.165468
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 4
|
66b3691e76faf1374f62afa3d0c5a5eb647a8de3
| 95
|
py
|
Python
|
visualizer/apps.py
|
dipapaspyros/bdo_platform
|
336de07c6ed14290c54f2154117dbf90a187e4ea
|
[
"MIT"
] | 4
|
2019-09-21T16:02:39.000Z
|
2020-09-08T00:56:40.000Z
|
visualizer/apps.py
|
dipapaspyros/bdo_platform
|
336de07c6ed14290c54f2154117dbf90a187e4ea
|
[
"MIT"
] | 11
|
2020-11-09T19:55:58.000Z
|
2022-02-13T19:43:03.000Z
|
visualizer/apps.py
|
dipapaspyros/bdo_platform
|
336de07c6ed14290c54f2154117dbf90a187e4ea
|
[
"MIT"
] | 5
|
2019-09-21T15:46:47.000Z
|
2021-05-26T19:30:29.000Z
|
from django.apps import AppConfig
class VisualizerConfig(AppConfig):
name = 'visualizer'
| 15.833333
| 34
| 0.768421
| 10
| 95
| 7.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 95
| 5
| 35
| 19
| 0.9125
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
66b57e8cb7432b7a43e3b8d46677973d3375aafa
| 960
|
py
|
Python
|
ebl/transliteration/application/sign_repository.py
|
ElectronicBabylonianLiterature/dictionary
|
5977a57314cf57f94f75cd12520f178b1d6a6555
|
[
"MIT"
] | 4
|
2020-04-12T14:24:51.000Z
|
2020-10-15T15:48:15.000Z
|
ebl/transliteration/application/sign_repository.py
|
ElectronicBabylonianLiterature/dictionary
|
5977a57314cf57f94f75cd12520f178b1d6a6555
|
[
"MIT"
] | 200
|
2019-12-04T09:53:20.000Z
|
2022-03-30T20:11:31.000Z
|
ebl/transliteration/application/sign_repository.py
|
ElectronicBabylonianLiterature/dictionary
|
5977a57314cf57f94f75cd12520f178b1d6a6555
|
[
"MIT"
] | 1
|
2021-09-06T16:22:39.000Z
|
2021-09-06T16:22:39.000Z
|
from abc import ABC, abstractmethod
from typing import Optional, Sequence
from ebl.transliteration.domain.sign import Sign, SignName
class SignRepository(ABC):
@abstractmethod
def create(self, sign: Sign) -> str:
...
@abstractmethod
def find(self, name: SignName) -> Sign:
...
@abstractmethod
def search_by_id(self, query: str) -> Sequence[Sign]:
...
@abstractmethod
def search_all(self, reading: str, sub_index: int) -> Sequence[Sign]:
...
@abstractmethod
def search_by_lists_name(self, name: str, number: str) -> Sequence[Sign]:
...
@abstractmethod
def search_composite_signs(self, reading: str, sub_index: int) -> Sequence[Sign]:
...
@abstractmethod
def search_include_homophones(self, reading: str) -> Sequence[Sign]:
...
@abstractmethod
def search(self, reading: str, sub_index: Optional[int]) -> Optional[Sign]:
...
| 24.615385
| 85
| 0.639583
| 105
| 960
| 5.72381
| 0.333333
| 0.22629
| 0.209651
| 0.269551
| 0.477537
| 0.389351
| 0.199667
| 0.199667
| 0.199667
| 0.199667
| 0
| 0
| 0.236458
| 960
| 38
| 86
| 25.263158
| 0.819918
| 0
| 0
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.107143
| 0
| 0.428571
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
66bc06326757e5fe39f1957af8b8037108ceb23c
| 587
|
py
|
Python
|
code/ch08/8.1.3_155.min-stack.py
|
leetcode-pp/leetcode-pp1
|
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
|
[
"MIT"
] | 22
|
2021-02-23T13:42:28.000Z
|
2022-03-02T11:19:28.000Z
|
code/ch08/8.1.3_155.min-stack.py
|
leetcode-pp/leetcode-pp1
|
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
|
[
"MIT"
] | 9
|
2021-06-16T10:42:01.000Z
|
2021-08-24T09:06:29.000Z
|
code/ch08/8.1.3_155.min-stack.py
|
leetcode-pp/leetcode-pp1
|
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
|
[
"MIT"
] | 9
|
2021-02-20T08:29:00.000Z
|
2021-09-18T08:52:25.000Z
|
class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.stack = []
self.helper = []
def push(self, x: int) -> None:
self.stack.append(x)
if not self.helper or x <= self.helper[-1]:
self.helper.append(x)
def pop(self) -> None:
top = self.stack.pop()
if self.helper and top == self.helper[-1]:
self.helper.pop()
return top
def top(self) -> int:
return self.stack[-1]
def getMin(self) -> int:
return self.helper[-1]
| 23.48
| 51
| 0.512777
| 74
| 587
| 4.013514
| 0.351351
| 0.26936
| 0.111111
| 0.10101
| 0.141414
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010444
| 0.34753
| 587
| 24
| 52
| 24.458333
| 0.765013
| 0.061329
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.294118
| false
| 0
| 0
| 0.117647
| 0.529412
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
66d2677a7560c4b4593eb92c85e7450ae99a4c38
| 4,480
|
py
|
Python
|
mmnas/utils/ops_adapter.py
|
ParadoxZW/mmnas
|
186ef8648e71b5fc4433faf80431a0f8bc9261a0
|
[
"Apache-2.0"
] | 23
|
2020-09-23T03:26:37.000Z
|
2022-01-24T03:35:17.000Z
|
mmnas/utils/ops_adapter.py
|
ParadoxZW/mmnas
|
186ef8648e71b5fc4433faf80431a0f8bc9261a0
|
[
"Apache-2.0"
] | 9
|
2021-02-24T02:59:03.000Z
|
2021-11-16T22:41:36.000Z
|
mmnas/utils/ops_adapter.py
|
ParadoxZW/mmnas
|
186ef8648e71b5fc4433faf80431a0f8bc9261a0
|
[
"Apache-2.0"
] | 8
|
2020-09-18T06:38:47.000Z
|
2022-01-24T03:35:19.000Z
|
import torch.nn as nn
from mmnas.model.modules import *
class OpsAdapter:
def __init__(self):
self.Used_OPS = {
'enc_safe': [
# 'skip_connect', # identity
'self_att_64',
'feed_forward',
],
'dec_safe': [
# 'skip_connect', # identity
'self_att_64',
'rel_self_att_64',
'guided_att_64',
'feed_forward',
],
}
self.Used_OPS['enc'] = self.Used_OPS['enc_safe'] + ['none']
self.Used_OPS['dec'] = self.Used_OPS['dec_safe'] + ['none']
self.OPS = {
'none': lambda __C, norm, residual: Zero(),
'skip_connect': lambda __C, norm, residual: Identity(),
'relu': lambda __C, norm, residual: nn.ReLU(),
'gelu': lambda __C, norm, residual: GELU(),
'leakyrelu': lambda __C, norm, residual: nn.LeakyReLU(),
'self_att_256': lambda __C, norm, residual: SelfAtt(__C, norm, residual, base=256),
'self_att_128': lambda __C, norm, residual: SelfAtt(__C, norm, residual, base=128),
'self_att_64': lambda __C, norm, residual: SelfAtt(__C, norm, residual, base=64),
'self_att_32': lambda __C, norm, residual: SelfAtt(__C, norm, residual, base=32),
'self_att_16': lambda __C, norm, residual: SelfAtt(__C, norm, residual, base=16),
'self_att_64_2': lambda __C, norm, residual: SelfAtt(__C, norm, residual, base=64, hsize_k=2),
'rel_self_att_256': lambda __C, norm, residual: RelSelfAtt(__C, norm, residual, base=256),
'rel_self_att_128': lambda __C, norm, residual: RelSelfAtt(__C, norm, residual, base=128),
'rel_self_att_64': lambda __C, norm, residual: RelSelfAtt(__C, norm, residual, base=64),
'rel_self_att_32': lambda __C, norm, residual: RelSelfAtt(__C, norm, residual, base=32),
'rel_self_att_16': lambda __C, norm, residual: RelSelfAtt(__C, norm, residual, base=16),
'guided_att_256': lambda __C, norm, residual: GuidedAtt(__C, norm, residual, base=256),
'guided_att_128': lambda __C, norm, residual: GuidedAtt(__C, norm, residual, base=128),
'guided_att_64': lambda __C, norm, residual: GuidedAtt(__C, norm, residual, base=64),
'guided_att_32': lambda __C, norm, residual: GuidedAtt(__C, norm, residual, base=32),
'guided_att_16': lambda __C, norm, residual: GuidedAtt(__C, norm, residual, base=16),
'guided_att_64_2': lambda __C, norm, residual: GuidedAtt(__C, norm, residual, base=64, hsize_k=2),
'uniimg_att_128': lambda __C, norm, residual: UniimgAtt(__C, norm, residual, base=128),
'uniimg_att_64': lambda __C, norm, residual: UniimgAtt(__C, norm, residual, base=64),
'uniimg_att_32': lambda __C, norm, residual: UniimgAtt(__C, norm, residual, base=32),
'sep_conv_3': lambda __C, norm, residual: SepConv(__C, norm, residual, k=3),
'sep_conv_5': lambda __C, norm, residual: SepConv(__C, norm, residual, k=5),
'sep_conv_7': lambda __C, norm, residual: SepConv(__C, norm, residual, k=7),
'sep_conv_11': lambda __C, norm, residual: SepConv(__C, norm, residual, k=11),
'std_conv_3': lambda __C, norm, residual: StdConv(__C, norm, residual, k=3),
'std_conv_5': lambda __C, norm, residual: StdConv(__C, norm, residual, k=5),
'std_conv_7': lambda __C, norm, residual: StdConv(__C, norm, residual, k=7),
'std_conv_11': lambda __C, norm, residual: StdConv(__C, norm, residual, k=11),
'feed_forward_2': lambda __C, norm, residual: FeedForward(__C, norm, residual, mid_k=2),
'feed_forward': lambda __C, norm, residual: FeedForward(__C, norm, residual),
'feed_forward_8': lambda __C, norm, residual: FeedForward(__C, norm, residual, mid_k=8),
'feed_forward_16': lambda __C, norm, residual: FeedForward(__C, norm, residual, mid_k=16),
'feed_forward_32': lambda __C, norm, residual: FeedForward(__C, norm, residual, mid_k=32),
'gated_linear_1': lambda __C, norm, residual: GLU(__C, norm, residual, layers=1),
'gated_linear_2': lambda __C, norm, residual: GLU(__C, norm, residual, layers=2),
'feed_forward_deep': lambda __C, norm, residual: FeedForward_deep(__C, norm, residual),
}
| 60.540541
| 110
| 0.61183
| 581
| 4,480
| 4.259897
| 0.115318
| 0.155556
| 0.404444
| 0.314747
| 0.797576
| 0.734949
| 0.701818
| 0.625455
| 0.602424
| 0.150303
| 0
| 0.042464
| 0.253571
| 4,480
| 74
| 111
| 60.540541
| 0.697667
| 0.01183
| 0
| 0.098361
| 0
| 0
| 0.13995
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.016393
| false
| 0
| 0.032787
| 0
| 0.065574
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
dd0f1fecc74593a80db2f2bc31beb972611e8334
| 192
|
py
|
Python
|
ramda/all_pass.py
|
Rafi993/pyramda
|
4fa7fe28d5eaa798b702d28bdd3948515cb88f48
|
[
"MIT"
] | 1
|
2018-08-05T04:41:14.000Z
|
2018-08-05T04:41:14.000Z
|
ramda/all_pass.py
|
Rafi993/pyramda
|
4fa7fe28d5eaa798b702d28bdd3948515cb88f48
|
[
"MIT"
] | 3
|
2018-06-12T18:42:05.000Z
|
2018-07-23T11:50:25.000Z
|
ramda/all_pass.py
|
slavaGanzin/pyramda
|
4fa7fe28d5eaa798b702d28bdd3948515cb88f48
|
[
"MIT"
] | null | null | null |
from ramda.curry import curry
from ramda.always import always
from ramda.reduce import reduce
from .both import both
@curry
def all_pass(ps, v):
return reduce(both, always(True), ps)(v)
| 19.2
| 44
| 0.755208
| 32
| 192
| 4.5
| 0.4375
| 0.1875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 192
| 9
| 45
| 21.333333
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0.142857
| 0.571429
| 0.142857
| 0.857143
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
|
0
| 4
|
dd29b0acaa6476aaf372568a2878b14413abebc8
| 76
|
py
|
Python
|
examples/turbogears/depotexample/controllers/__init__.py
|
tcmike/depot
|
f2999ab18f8bf3f5e6f0c3c3b058b9bd8d936d65
|
[
"MIT"
] | 128
|
2015-02-18T05:53:25.000Z
|
2022-03-02T10:23:27.000Z
|
examples/turbogears/depotexample/controllers/__init__.py
|
tcmike/depot
|
f2999ab18f8bf3f5e6f0c3c3b058b9bd8d936d65
|
[
"MIT"
] | 68
|
2015-03-19T17:04:24.000Z
|
2022-01-13T19:38:34.000Z
|
examples/turbogears/depotexample/controllers/__init__.py
|
tcmike/depot
|
f2999ab18f8bf3f5e6f0c3c3b058b9bd8d936d65
|
[
"MIT"
] | 42
|
2015-04-24T15:05:42.000Z
|
2022-01-13T18:23:17.000Z
|
# -*- coding: utf-8 -*-
"""Controllers for the depotexample application."""
| 25.333333
| 51
| 0.657895
| 8
| 76
| 6.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015152
| 0.131579
| 76
| 2
| 52
| 38
| 0.742424
| 0.894737
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
dd47b2decdba037245199ce13ec873ea347568f4
| 595
|
py
|
Python
|
microcosm/errors.py
|
Sinon/microcosm
|
e8bab13b19e873b9b097968feeb8c3cb84bca045
|
[
"Apache-2.0"
] | 30
|
2016-04-05T18:37:57.000Z
|
2021-06-21T18:58:43.000Z
|
microcosm/errors.py
|
Sinon/microcosm
|
e8bab13b19e873b9b097968feeb8c3cb84bca045
|
[
"Apache-2.0"
] | 24
|
2016-03-08T17:33:00.000Z
|
2020-04-26T06:55:48.000Z
|
microcosm/errors.py
|
Sinon/microcosm
|
e8bab13b19e873b9b097968feeb8c3cb84bca045
|
[
"Apache-2.0"
] | 6
|
2016-12-19T22:39:20.000Z
|
2020-11-15T15:27:58.000Z
|
"""
Error types
"""
class AlreadyBoundError(Exception):
"""
Raised if a factory is already bound to a name.
"""
pass
class CyclicGraphError(Exception):
"""
Raised if a graph has a cycle.
"""
pass
class LockedGraphError(Exception):
"""
Raised when attempting to create a component in a locked object graph.
"""
pass
class NotBoundError(Exception):
"""
Raised if not factory is bound to a name.
"""
pass
class ValidationError(Exception):
"""
Raised if a configuration value fails validation.
"""
pass
| 13.222222
| 74
| 0.620168
| 67
| 595
| 5.507463
| 0.507463
| 0.203252
| 0.184282
| 0.146341
| 0.113821
| 0.113821
| 0
| 0
| 0
| 0
| 0
| 0
| 0.285714
| 595
| 44
| 75
| 13.522727
| 0.868235
| 0.42521
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
dd6446da55c56b4177812ee8391a597ae6149fd5
| 102
|
py
|
Python
|
torchsupport/data/tensor_provider.py
|
bobelly/torchsupport
|
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
|
[
"MIT"
] | 18
|
2019-05-02T16:32:15.000Z
|
2021-04-16T09:33:54.000Z
|
torchsupport/data/tensor_provider.py
|
bobelly/torchsupport
|
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
|
[
"MIT"
] | 5
|
2019-10-14T13:46:49.000Z
|
2021-06-08T11:48:34.000Z
|
torchsupport/data/tensor_provider.py
|
bobelly/torchsupport
|
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
|
[
"MIT"
] | 12
|
2019-05-12T21:34:24.000Z
|
2021-07-15T14:14:16.000Z
|
import torch
class TensorProvider():
def tensors(self):
raise NotImplementedError("Abstract.")
| 17
| 42
| 0.745098
| 10
| 102
| 7.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147059
| 102
| 5
| 43
| 20.4
| 0.873563
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
dd6d894beb491fa0df37cfc35327a9f26a1d6002
| 67
|
py
|
Python
|
srpmod/tests.py
|
pvyParts/allianceauth-srp-mod
|
1b10910923141a6e2500f69bda67a81de172591b
|
[
"MIT"
] | null | null | null |
srpmod/tests.py
|
pvyParts/allianceauth-srp-mod
|
1b10910923141a6e2500f69bda67a81de172591b
|
[
"MIT"
] | null | null | null |
srpmod/tests.py
|
pvyParts/allianceauth-srp-mod
|
1b10910923141a6e2500f69bda67a81de172591b
|
[
"MIT"
] | 3
|
2020-07-25T07:34:50.000Z
|
2022-03-09T23:31:45.000Z
|
from django.test import TestCase
# My tests wont be going here...
| 16.75
| 32
| 0.746269
| 11
| 67
| 4.545455
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179104
| 67
| 4
| 33
| 16.75
| 0.909091
| 0.447761
| 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
| 0
| 0
|
0
| 4
|
dd874a091f8100a270d0cc54f0509c80ae36fbc8
| 259
|
py
|
Python
|
5.3 Break And Continue/5.3.7 Higher Lower.py
|
ferrerinicolas/python_samples
|
107cead4fbee30b275a5e2be1257833129ce5e46
|
[
"MIT"
] | null | null | null |
5.3 Break And Continue/5.3.7 Higher Lower.py
|
ferrerinicolas/python_samples
|
107cead4fbee30b275a5e2be1257833129ce5e46
|
[
"MIT"
] | null | null | null |
5.3 Break And Continue/5.3.7 Higher Lower.py
|
ferrerinicolas/python_samples
|
107cead4fbee30b275a5e2be1257833129ce5e46
|
[
"MIT"
] | null | null | null |
magic_number = 3
#Your code here...
while True:
guess = int(input("Enter a guess: "))
if guess == magic_number:
print("You got it!")
break
elif guess > magic_number:
print("Too high!")
else:
print("Too low!")
| 18.5
| 41
| 0.552124
| 34
| 259
| 4.117647
| 0.705882
| 0.235714
| 0.228571
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005618
| 0.312741
| 259
| 13
| 42
| 19.923077
| 0.780899
| 0.065637
| 0
| 0
| 0
| 0
| 0.179167
| 0
| 0
| 0
| 0
| 0.076923
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.3
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
dd88c1f54c7221aaa4eb0299524e7b89a8020b65
| 82
|
py
|
Python
|
aiopenapi3/v31/__init__.py
|
commonism/aiopenapi3
|
3efb0e65fdcdce7408c888df3f4adbad8abb4359
|
[
"BSD-3-Clause"
] | null | null | null |
aiopenapi3/v31/__init__.py
|
commonism/aiopenapi3
|
3efb0e65fdcdce7408c888df3f4adbad8abb4359
|
[
"BSD-3-Clause"
] | 7
|
2022-01-03T19:48:06.000Z
|
2022-03-14T22:01:57.000Z
|
aiopenapi3/v31/__init__.py
|
commonism/aiopenapi3
|
3efb0e65fdcdce7408c888df3f4adbad8abb4359
|
[
"BSD-3-Clause"
] | null | null | null |
from .schemas import Schema
from .root import Root
from .general import Reference
| 20.5
| 30
| 0.817073
| 12
| 82
| 5.583333
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146341
| 82
| 3
| 31
| 27.333333
| 0.957143
| 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
| 0
| 0
|
0
| 4
|
06ee169210e443092afc4583cc4acdd6c11a0c6f
| 94
|
py
|
Python
|
test_project/test_image/apps.py
|
francescortiz/image
|
0abda89644c9c489bdfec91acd45d8f6cacca7e7
|
[
"BSD-3-Clause"
] | 96
|
2015-02-06T18:35:05.000Z
|
2022-03-25T17:34:45.000Z
|
test_project/test_image/apps.py
|
francescortiz/image
|
0abda89644c9c489bdfec91acd45d8f6cacca7e7
|
[
"BSD-3-Clause"
] | 9
|
2015-03-27T19:57:28.000Z
|
2020-09-11T02:02:39.000Z
|
test_project/test_image/apps.py
|
francescortiz/image
|
0abda89644c9c489bdfec91acd45d8f6cacca7e7
|
[
"BSD-3-Clause"
] | 26
|
2015-05-13T08:57:34.000Z
|
2021-03-22T14:11:59.000Z
|
from django.apps import AppConfig
class TestImageConfig(AppConfig):
name = 'test_image'
| 15.666667
| 33
| 0.765957
| 11
| 94
| 6.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159574
| 94
| 5
| 34
| 18.8
| 0.898734
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
6614577bf08e9c5aa745097c1a41c442572ea4c5
| 285
|
py
|
Python
|
src/oscar/apps/dashboard/communications/config.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
src/oscar/apps/dashboard/communications/config.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
src/oscar/apps/dashboard/communications/config.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class CommunicationsDashboardConfig(AppConfig):
label = 'communications_dashboard'
name = 'oscar.apps.dashboard.communications'
verbose_name = _('Communications dashboard')
| 31.666667
| 56
| 0.775439
| 28
| 285
| 7.714286
| 0.642857
| 0.092593
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154386
| 285
| 8
| 57
| 35.625
| 0.896266
| 0
| 0
| 0
| 0
| 0
| 0.299639
| 0.212996
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
661682d22f5d95e0fb78f57c0ef5b1bf46bd9696
| 28
|
py
|
Python
|
src/__init__.py
|
klein203/Python-Learning
|
98ac61eb439e516198dd9cdf0dd9255e2541ea9b
|
[
"MIT"
] | null | null | null |
src/__init__.py
|
klein203/Python-Learning
|
98ac61eb439e516198dd9cdf0dd9255e2541ea9b
|
[
"MIT"
] | null | null | null |
src/__init__.py
|
klein203/Python-Learning
|
98ac61eb439e516198dd9cdf0dd9255e2541ea9b
|
[
"MIT"
] | null | null | null |
'''
@author: xusheng
'''
| 7
| 17
| 0.464286
| 2
| 28
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 28
| 3
| 18
| 9.333333
| 0.619048
| 0.571429
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b074a5a9eda921b7fe9787f5db7bb9a54517f9f3
| 201
|
py
|
Python
|
design-patterns/single-container/math_app.py
|
pwcz/docker-learning
|
f2f4eb76e41cd10c4b61813760eedcc2ed2c34ce
|
[
"MIT"
] | null | null | null |
design-patterns/single-container/math_app.py
|
pwcz/docker-learning
|
f2f4eb76e41cd10c4b61813760eedcc2ed2c34ce
|
[
"MIT"
] | null | null | null |
design-patterns/single-container/math_app.py
|
pwcz/docker-learning
|
f2f4eb76e41cd10c4b61813760eedcc2ed2c34ce
|
[
"MIT"
] | null | null | null |
import flask
api = flask.Flask(__name__)
@api.route('/', methods=['GET'])
def home():
return "<h1>Test API</h1>"
@api.route("/power/<int:number>")
def power(number):
return str(number**2)
| 14.357143
| 33
| 0.626866
| 29
| 201
| 4.206897
| 0.586207
| 0.131148
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017544
| 0.149254
| 201
| 13
| 34
| 15.461538
| 0.695906
| 0
| 0
| 0
| 0
| 0
| 0.199005
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.25
| 0.625
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
b076765b64dbb0f3a42e016d5a8c9588944e4176
| 9,296
|
py
|
Python
|
src/QueueTest.py
|
fuzziqersoftware/sharedstructures
|
23471fc24484b472e4b2399d7c64c1071d12c641
|
[
"MIT"
] | 21
|
2016-11-30T06:40:04.000Z
|
2022-03-23T13:16:53.000Z
|
src/QueueTest.py
|
fuzziqersoftware/sharedstructures
|
23471fc24484b472e4b2399d7c64c1071d12c641
|
[
"MIT"
] | null | null | null |
src/QueueTest.py
|
fuzziqersoftware/sharedstructures
|
23471fc24484b472e4b2399d7c64c1071d12c641
|
[
"MIT"
] | 3
|
2018-02-21T12:25:08.000Z
|
2021-12-16T06:14:05.000Z
|
import os
import subprocess
import sys
import time
import sharedstructures
POOL_NAME_PREFIX = "QueueTest-py-pool-"
ALLOCATOR_TYPES = ('simple', 'logarithmic')
def get_current_process_lsof():
return subprocess.check_output(['lsof', '-p', str(os.getpid())])
def q_push(q, front, item, raw=False):
if front:
q.push_front(item, raw=raw)
else:
q.push_back(item, raw=raw)
def q_pop(q, front, raw=False):
if front:
return q.pop_front(raw=raw)
else:
return q.pop_back(raw=raw)
def run_basic_test(allocator_type):
print('-- [%s] basic' % allocator_type)
before_lsof_count = len(get_current_process_lsof().splitlines())
q = sharedstructures.Queue(POOL_NAME_PREFIX + allocator_type, allocator_type)
assert len(q) == 0
assert q.bytes() == 0
def test_queue(q, reverse):
print('-- [%s] %s queue operation' % (allocator_type, "reverse" if reverse else "forward"))
q_push(q, reverse, b"v1")
assert 1 == len(q)
q_push(q, reverse, "val2")
assert 2 == len(q)
q_push(q, reverse, 47)
assert 3 == len(q)
q_push(q, reverse, None)
assert 4 == len(q)
q_push(q, reverse, (None, False, True, 37, 2.0, ['lol', 'hax'], {1: 2}))
assert 5 == len(q)
assert b"v1" == q_pop(q, not reverse)
assert 4 == len(q)
assert "val2" == q_pop(q, not reverse)
assert 3 == len(q)
assert 47 == q_pop(q, not reverse)
assert 2 == len(q)
assert None == q_pop(q, not reverse)
assert 1 == len(q)
assert (None, False, True, 37, 2.0, ['lol', 'hax'], {1: 2}) == q_pop(q, not reverse)
assert 0 == len(q)
assert q.bytes() == 0
try:
q_pop(q, not reverse)
assert False
except IndexError:
pass
test_queue(q, False)
test_queue(q, True)
def test_stack(q, front):
print("-- [%s] %s stack operation" % (allocator_type, "front" if front else "back"))
q_push(q, front, b"v1")
assert 1 == len(q)
q_push(q, front, "val2")
assert 2 == len(q)
q_push(q, front, 47)
assert 3 == len(q)
q_push(q, front, None)
assert 4 == len(q)
q_push(q, front, (None, False, True, 37, 2.0, ['lol', 'hax'], {1: 2}))
assert 5 == len(q)
assert (None, False, True, 37, 2.0, ['lol', 'hax'], {1: 2}) == q_pop(q, front)
assert 4 == len(q)
assert None == q_pop(q, front)
assert 3 == len(q)
assert 47 == q_pop(q, front)
assert 2 == len(q)
assert "val2" == q_pop(q, front)
assert 1 == len(q)
assert b"v1" == q_pop(q, front)
assert 0 == len(q)
assert q.bytes() == 0
try:
q_pop(q, front)
assert False
except IndexError:
pass
test_stack(q, False)
test_stack(q, True)
del q # this should unmap the shared memory pool and close the fd
sharedstructures.delete_pool(POOL_NAME_PREFIX + allocator_type)
# make sure we didn't leak an fd
assert before_lsof_count == len(get_current_process_lsof().splitlines())
def run_raw_test(allocator_type):
print('-- [%s] basic' % allocator_type)
before_lsof_count = len(get_current_process_lsof().splitlines())
q = sharedstructures.Queue(POOL_NAME_PREFIX + allocator_type, allocator_type)
assert len(q) == 0
assert q.bytes() == 0
def test_queue(q, reverse):
print('-- [%s] %s queue operation' % (allocator_type, "reverse" if reverse else "forward"))
try:
q_push(q, reverse, None, raw=True)
assert False
except TypeError:
pass
assert 0 == len(q)
q_push(q, reverse, b"v1", raw=True)
assert 1 == len(q)
q_push(q, reverse, b"v2", raw=True)
assert 2 == len(q)
q_push(q, reverse, b"v3", raw=True)
assert 3 == len(q)
assert b"v1" == q_pop(q, not reverse, raw=True)
assert 2 == len(q)
assert b"v2" == q_pop(q, not reverse, raw=True)
assert 1 == len(q)
assert b"v3" == q_pop(q, not reverse, raw=True)
assert 0 == len(q)
assert q.bytes() == 0
try:
q_pop(q, not reverse, raw=True)
assert False
except IndexError:
pass
test_queue(q, False)
test_queue(q, True)
def test_stack(q, front):
print("-- [%s] %s stack operation" % (allocator_type, "front" if front else "back"))
try:
q_push(q, front, None, raw=True)
assert False
except TypeError:
pass
assert 0 == len(q)
q_push(q, front, b"v1", raw=True)
assert 1 == len(q)
q_push(q, front, b"v2", raw=True)
assert 2 == len(q)
q_push(q, front, b"v3", raw=True)
assert 3 == len(q)
assert b"v3" == q_pop(q, front, raw=True)
assert 2 == len(q)
assert b"v2" == q_pop(q, front, raw=True)
assert 1 == len(q)
assert b"v1" == q_pop(q, front, raw=True)
assert 0 == len(q)
assert q.bytes() == 0
try:
q_pop(q, front, raw=True)
assert False
except IndexError:
pass
test_stack(q, False)
test_stack(q, True)
del q # this should unmap the shared memory pool and close the fd
sharedstructures.delete_pool(POOL_NAME_PREFIX + allocator_type)
# make sure we didn't leak an fd
assert before_lsof_count == len(get_current_process_lsof().splitlines())
def run_concurrent_producers_test(allocator_type):
print('-- [%s] concurrent producers' % allocator_type)
child_pids = set()
while (len(child_pids) < 8) and (0 not in child_pids):
child_pids.add(os.fork())
if 0 in child_pids:
# child process: generate the numbers [0, 1000) prefixed with our pid
q = sharedstructures.Queue(POOL_NAME_PREFIX + allocator_type, allocator_type)
pid = os.getpid()
for x in range(1000):
q.push_back(b'%d-%d' % (pid, x))
os._exit(0)
else:
# parent process: write the key, then wait for children to terminate
q = sharedstructures.Queue(POOL_NAME_PREFIX + allocator_type, allocator_type)
latest_value_from_process = {pid: -1 for pid in child_pids}
num_failures = 0
while child_pids:
try:
data = q.pop_front()
pid, value = data.split(b'-')
pid = int(pid)
value = int(value)
assert pid in latest_value_from_process
assert latest_value_from_process[pid] < value
latest_value_from_process[pid] = value
except IndexError: # queue is empty
pid, exit_status = os.wait()
child_pids.remove(pid)
if os.WIFEXITED(exit_status) and (os.WEXITSTATUS(exit_status) == 0):
print('-- [%s] child %d terminated successfully' % (
allocator_type, pid))
else:
print('-- [%s] child %d failed (%d)' % (
allocator_type, pid, exit_status))
num_failures += 1
assert 0 == len(child_pids)
assert 0 == num_failures
def run_concurrent_consumers_test(allocator_type):
print('-- [%s] concurrent consumers' % allocator_type)
# initialize the queue before forking children
q = sharedstructures.Queue(POOL_NAME_PREFIX + allocator_type, allocator_type)
del q
child_pids = set()
while (len(child_pids) < 8) and (0 not in child_pids):
child_pids.add(os.fork())
if 0 in child_pids:
# child process: read numbers and expect them to be in increasing order
# stop when -1 is received
q = sharedstructures.Queue(POOL_NAME_PREFIX + allocator_type, allocator_type)
prev_value = -1
value = 0
while True:
try:
item = q.pop_front()
value = int(item)
if value == -1:
break
except IndexError:
time.sleep(0.00001)
continue
assert value > prev_value
prev_value = value
os._exit(0)
else:
# parent process: push numbers [0, 10000), then wait for children
q = sharedstructures.Queue(POOL_NAME_PREFIX + allocator_type, allocator_type)
for v in range(10000):
q.push_back(b'%d' % v)
for _ in child_pids:
q.push_back(b'-1')
num_failures = 0
while child_pids:
pid, exit_status = os.wait()
child_pids.remove(pid)
if os.WIFEXITED(exit_status) and (os.WEXITSTATUS(exit_status) == 0):
print('-- [%s] child %d terminated successfully' % (
allocator_type, pid))
else:
print('-- [%s] child %d failed (%d)' % (
allocator_type, pid, exit_status))
num_failures += 1
assert 0 == len(child_pids)
assert 0 == num_failures
def main():
try:
for allocator_type in ALLOCATOR_TYPES:
sharedstructures.delete_pool(POOL_NAME_PREFIX + allocator_type)
run_basic_test(allocator_type)
sharedstructures.delete_pool(POOL_NAME_PREFIX + allocator_type)
run_raw_test(allocator_type)
sharedstructures.delete_pool(POOL_NAME_PREFIX + allocator_type)
run_concurrent_producers_test(allocator_type)
sharedstructures.delete_pool(POOL_NAME_PREFIX + allocator_type)
run_concurrent_consumers_test(allocator_type)
print('all tests passed')
return 0
finally:
for allocator_type in ALLOCATOR_TYPES:
sharedstructures.delete_pool(POOL_NAME_PREFIX + allocator_type)
if __name__ == '__main__':
sys.exit(main())
| 28.869565
| 98
| 0.610047
| 1,335
| 9,296
| 4.06367
| 0.123596
| 0.103041
| 0.019355
| 0.059355
| 0.815853
| 0.790046
| 0.732166
| 0.695853
| 0.64977
| 0.632995
| 0
| 0.021264
| 0.266459
| 9,296
| 321
| 99
| 28.959502
| 0.774307
| 0.057121
| 0
| 0.618474
| 0
| 0
| 0.062974
| 0
| 0
| 0
| 0
| 0
| 0.293173
| 1
| 0.048193
| false
| 0.028112
| 0.02008
| 0.004016
| 0.084337
| 0.052209
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b0878be9e684e61d99a80d32086d7c4ecf7e7fa0
| 1,076
|
py
|
Python
|
gtsfm/feature_extractor.py
|
swershrimpy/gtsfm
|
8d301eb3ef9172345a1ac1369fd4e19764d28946
|
[
"Apache-2.0"
] | 122
|
2021-02-07T23:01:58.000Z
|
2022-03-30T13:10:35.000Z
|
gtsfm/feature_extractor.py
|
swershrimpy/gtsfm
|
8d301eb3ef9172345a1ac1369fd4e19764d28946
|
[
"Apache-2.0"
] | 273
|
2021-01-30T16:45:26.000Z
|
2022-03-16T15:02:33.000Z
|
gtsfm/feature_extractor.py
|
swershrimpy/gtsfm
|
8d301eb3ef9172345a1ac1369fd4e19764d28946
|
[
"Apache-2.0"
] | 13
|
2021-03-12T03:01:27.000Z
|
2022-03-11T03:16:54.000Z
|
"""Extracts features and their descriptors from a single image.
Authors: Ayush Baid, John Lambert
"""
from typing import Tuple
from dask.delayed import Delayed
from gtsfm.frontend.detector_descriptor.detector_descriptor_base import DetectorDescriptorBase
class FeatureExtractor:
"""Wrapper for running detection and description on each image."""
def __init__(self, detector_descriptor: DetectorDescriptorBase) -> None:
"""Initializes the detector-descriptor
Args:
detector_descriptor: the joint detector-descriptor to use.
"""
self.detector_descriptor = detector_descriptor
def create_computation_graph(self, image_graph: Delayed) -> Tuple[Delayed, Delayed]:
"""Given an image, create detection and descriptor generation tasks
Args:
image_graph: image wrapped up in Delayed
Returns:
Delayed object for detected keypoints.
Delayed object for corr. descriptors.
"""
return self.detector_descriptor.create_computation_graph(image_graph)
| 31.647059
| 94
| 0.716543
| 117
| 1,076
| 6.42735
| 0.512821
| 0.215426
| 0.087766
| 0.095745
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.22026
| 1,076
| 33
| 95
| 32.606061
| 0.896305
| 0.44052
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.375
| 0
| 0.875
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b088e3d6ca12d2d57e5fea723a2db90996f8cf08
| 474
|
py
|
Python
|
packages/micropython-official/v1.9.4/esp32/stubs/micropython.py
|
TheVinhLuong102/micropy-stubs
|
55ff1773008f7c4dfc3d70a403986486226eb6b3
|
[
"MIT"
] | 18
|
2019-07-11T13:31:09.000Z
|
2022-01-27T06:38:40.000Z
|
packages/micropython-official/v1.9.4/esp32/stubs/micropython.py
|
TheVinhLuong102/micropy-stubs
|
55ff1773008f7c4dfc3d70a403986486226eb6b3
|
[
"MIT"
] | 9
|
2019-09-01T21:44:49.000Z
|
2022-02-04T20:55:08.000Z
|
packages/micropython-official/v1.9.4/esp32/stubs/micropython.py
|
TheVinhLuong102/micropy-stubs
|
55ff1773008f7c4dfc3d70a403986486226eb6b3
|
[
"MIT"
] | 6
|
2019-10-08T05:31:21.000Z
|
2021-04-22T10:21:01.000Z
|
"""
Module: 'micropython' on esp32 1.9.4
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.9.4', version='v1.9.4 on 2018-05-11', machine='ESP32 module with ESP32')
# Stubber: 1.2.0
def alloc_emergency_exception_buf():
pass
def const():
pass
def heap_lock():
pass
def heap_unlock():
pass
def kbd_intr():
pass
def mem_info():
pass
def opt_level():
pass
def qstr_info():
pass
def schedule():
pass
def stack_use():
pass
| 13.166667
| 126
| 0.628692
| 73
| 474
| 3.945205
| 0.561644
| 0.21875
| 0.020833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.080645
| 0.21519
| 474
| 35
| 127
| 13.542857
| 0.693548
| 0.373418
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
b0a8026693675c2a22565d6daa5748a1dba33799
| 269
|
py
|
Python
|
tests/test_import.py
|
mace-space/histLM
|
3f6460f6fad703feb99e48f244396f8ef007c582
|
[
"MIT"
] | 6
|
2021-05-24T12:40:30.000Z
|
2022-02-09T11:04:07.000Z
|
tests/test_import.py
|
mace-space/histLM
|
3f6460f6fad703feb99e48f244396f8ef007c582
|
[
"MIT"
] | 1
|
2021-09-30T09:11:15.000Z
|
2021-09-30T09:11:15.000Z
|
tests/test_import.py
|
mace-space/histLM
|
3f6460f6fad703feb99e48f244396f8ef007c582
|
[
"MIT"
] | 19
|
2021-06-03T12:25:42.000Z
|
2021-07-30T13:54:21.000Z
|
import pytest
def test_import():
from transformers import pipeline
from flair.embeddings import FlairEmbeddings
from flair.data import Sentence
import flair, torch
from gensim.models import FastText
from gensim.models import Word2Vec
| 16.8125
| 48
| 0.739777
| 32
| 269
| 6.1875
| 0.53125
| 0.090909
| 0.161616
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004831
| 0.230483
| 269
| 15
| 49
| 17.933333
| 0.951691
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| true
| 0
| 1
| 0
| 1.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b0bc973f2a51a87bf18f8614c9fcb313b63606ab
| 62
|
py
|
Python
|
wsgi.py
|
yoophi/flask-login-sample
|
ae76e2c396896f99b1ba8add44c752d5abc22c01
|
[
"MIT"
] | null | null | null |
wsgi.py
|
yoophi/flask-login-sample
|
ae76e2c396896f99b1ba8add44c752d5abc22c01
|
[
"MIT"
] | null | null | null |
wsgi.py
|
yoophi/flask-login-sample
|
ae76e2c396896f99b1ba8add44c752d5abc22c01
|
[
"MIT"
] | null | null | null |
from flask_login_sample import create_app
app = create_app()
| 15.5
| 41
| 0.822581
| 10
| 62
| 4.7
| 0.7
| 0.382979
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 62
| 3
| 42
| 20.666667
| 0.87037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
b0d735aa8ad231893e317bbee17f3854072723f8
| 68
|
py
|
Python
|
tuiuiu/tuiuiuadmin/__init__.py
|
caputomarcos/tuiuiu.io
|
d8fb57cf95487e7fe1454b2130ef18acc916da46
|
[
"BSD-3-Clause"
] | 3
|
2019-08-08T09:09:35.000Z
|
2020-12-15T18:04:17.000Z
|
tuiuiu/tuiuiuadmin/__init__.py
|
caputomarcos/tuiuiu.io
|
d8fb57cf95487e7fe1454b2130ef18acc916da46
|
[
"BSD-3-Clause"
] | null | null | null |
tuiuiu/tuiuiuadmin/__init__.py
|
caputomarcos/tuiuiu.io
|
d8fb57cf95487e7fe1454b2130ef18acc916da46
|
[
"BSD-3-Clause"
] | 1
|
2017-09-09T20:10:40.000Z
|
2017-09-09T20:10:40.000Z
|
default_app_config = 'tuiuiu.tuiuiuadmin.apps.TuiuiuAdminAppConfig'
| 34
| 67
| 0.867647
| 7
| 68
| 8.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044118
| 68
| 1
| 68
| 68
| 0.876923
| 0
| 0
| 0
| 0
| 0
| 0.647059
| 0.647059
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b0da6b2e0eeed2fb6296dc97922b44ec158d8b59
| 248
|
py
|
Python
|
vfmgui/fonts.py
|
sharkwouter/vaporos-flatpak-manager
|
da1dce2a806fdb51aa9366408ace50c28fbc3ff6
|
[
"MIT"
] | null | null | null |
vfmgui/fonts.py
|
sharkwouter/vaporos-flatpak-manager
|
da1dce2a806fdb51aa9366408ace50c28fbc3ff6
|
[
"MIT"
] | 21
|
2019-09-15T08:42:58.000Z
|
2021-08-28T16:48:54.000Z
|
vfmgui/fonts.py
|
sharkwouter/vaporos-flatpak-manager
|
da1dce2a806fdb51aa9366408ace50c28fbc3ff6
|
[
"MIT"
] | null | null | null |
import pygame
pygame.font.init()
class Fonts:
_font = pygame.font.match_font('liberationsansnarrow')
print(_font)
REGULAR = pygame.font.Font(_font, 64)
SMALL = pygame.font.Font(_font, 32)
LARGE = pygame.font.Font(_font, 96)
| 19.076923
| 58
| 0.689516
| 33
| 248
| 5
| 0.454545
| 0.290909
| 0.254545
| 0.327273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029557
| 0.181452
| 248
| 12
| 59
| 20.666667
| 0.783251
| 0
| 0
| 0
| 0
| 0
| 0.080645
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 0.75
| 0.125
| 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
| 0
| 0
| 1
| 0
|
0
| 4
|
b0e0d6df21aca22cac1fcc5be6f5d694c8c35cd9
| 492
|
py
|
Python
|
strategy/auto_spider/autospider_strategy.py
|
yfsoftcom/crawler
|
37b48285a74d587024f9f6b88de0de2f5dbc9d1d
|
[
"MIT"
] | null | null | null |
strategy/auto_spider/autospider_strategy.py
|
yfsoftcom/crawler
|
37b48285a74d587024f9f6b88de0de2f5dbc9d1d
|
[
"MIT"
] | null | null | null |
strategy/auto_spider/autospider_strategy.py
|
yfsoftcom/crawler
|
37b48285a74d587024f9f6b88de0de2f5dbc9d1d
|
[
"MIT"
] | null | null | null |
import re
from strategy.strategy import Strategy
from strategy.parser.unknown_parser import UnknownParser
from strategy.parser.autospider_parser import DefaultAutoSpiderParser
class AutoSpiderStrategy(Strategy):
def __init__(self, spider = None):
self._spider = spider
def get_parser(self, url, is_html = True, data = None, encoding = 'utf-8'):
# print url
return DefaultAutoSpiderParser(self._spider, encoding = encoding)
def _filter(self, input):
return True
| 27.333333
| 77
| 0.760163
| 59
| 492
| 6.152542
| 0.491525
| 0.099174
| 0.099174
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002427
| 0.162602
| 492
| 17
| 78
| 28.941176
| 0.878641
| 0.018293
| 0
| 0
| 0
| 0
| 0.010395
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0.363636
| 0.181818
| 0.909091
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
9ff82e1e50901d8f1404bd9895ee3c2613ee71a2
| 149
|
py
|
Python
|
multispinsys/TensorOps/__init__.py
|
Marcupio/SpinProgram
|
4d47e5e5048423ae69869a0300558e1fee809bf0
|
[
"Apache-2.0"
] | null | null | null |
multispinsys/TensorOps/__init__.py
|
Marcupio/SpinProgram
|
4d47e5e5048423ae69869a0300558e1fee809bf0
|
[
"Apache-2.0"
] | null | null | null |
multispinsys/TensorOps/__init__.py
|
Marcupio/SpinProgram
|
4d47e5e5048423ae69869a0300558e1fee809bf0
|
[
"Apache-2.0"
] | null | null | null |
from . import Reduce
from . import spinops
from . import spintensor
__all__ = ["Reduce",
"spinops",
"spintensor"
]
| 16.555556
| 24
| 0.557047
| 13
| 149
| 6.076923
| 0.461538
| 0.379747
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.348993
| 149
| 8
| 25
| 18.625
| 0.814433
| 0
| 0
| 0
| 0
| 0
| 0.155405
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.428571
| 0
| 0.428571
| 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
| 0
| 0
|
0
| 4
|
b01edffa4e178342041a6ca5d2904014575d1da9
| 24,276
|
py
|
Python
|
tests/test_agglomerative.py
|
leolani/cltl-face-recognition
|
b98e4791c9943b4a4a91d00e2ede5ead2d5fa61f
|
[
"MIT"
] | null | null | null |
tests/test_agglomerative.py
|
leolani/cltl-face-recognition
|
b98e4791c9943b4a4a91d00e2ede5ead2d5fa61f
|
[
"MIT"
] | null | null | null |
tests/test_agglomerative.py
|
leolani/cltl-face-recognition
|
b98e4791c9943b4a4a91d00e2ede5ead2d5fa61f
|
[
"MIT"
] | null | null | null |
import dataclasses
import unittest
import numpy as np
from cltl.vector_id.clusterid import ClusterIdentity
@dataclasses.dataclass
class TestCluster:
labels_: list
class TestClustering:
"""Cluster id is determined by the first dimension of the vector being zero."""
def fit(self, X):
return TestCluster(X[:, 0] == 0)
class TestAgglomerativeVectorId(unittest.TestCase):
def test_empty(self):
vector_id = ClusterIdentity(TestClustering(), 3)
self.assertEqual((0, 3), vector_id._representations.shape)
def test_add_one_dimensional(self):
vector_id = ClusterIdentity(TestClustering(), 3)
vector_id.add(np.array([0,3,4]))
vector_id.add(np.array([0,3,4]))
np.testing.assert_array_almost_equal([[0,3,4], [0,3,4]], vector_id._representations)
np.testing.assert_array_equal([0,3/5,4/5], next(iter(vector_id._centroids.values())))
def test_add_first(self):
vector_id = ClusterIdentity(TestClustering(), 3)
vector_id.add(np.array([[0,3,4]]))
np.testing.assert_array_almost_equal([[0,3,4]], vector_id._representations)
np.testing.assert_array_equal([0,3/5,4/5], next(iter(vector_id._centroids.values())))
def test_add_one_cluster(self):
vector_id = ClusterIdentity(TestClustering(), 3)
vector_id.add(np.array([[0,3,4], [0,3,4]]))
np.testing.assert_array_equal([[0,3,4], [0,3,4]], vector_id._representations)
np.testing.assert_array_almost_equal([0,3/5,4/5], next(iter(vector_id._centroids.values())))
def test_add_two_clusters(self):
vector_id = ClusterIdentity(TestClustering(), 3)
vector_id.add(np.array([[0,3,4], [0,3,4], [5,12,0], [5,12,0]]))
np.testing.assert_array_equal([[0,3,4], [0,3,4], [5,12,0], [5,12,0]], vector_id._representations)
centroids = list(sorted([tuple(cent) for cent in vector_id._centroids.values()]))
self.assertEqual(2, len(centroids))
np.testing.assert_array_almost_equal([0,3/5,4/5], centroids[0])
np.testing.assert_array_almost_equal([5/13,12/13,0], centroids[1])
def test_add_two_clusters_one_by_one(self):
vector_id = ClusterIdentity(TestClustering(), 3)
id_1 = vector_id.add(np.array([[0,3,4]]))
id_2 = vector_id.add(np.array([[0,3,4]]))
id_3 = vector_id.add(np.array([[5,12,0]]))
id_4 = vector_id.add(np.array([[5,12,0]]))
np.testing.assert_array_equal([[0,3,4], [0,3,4], [5,12,0], [5,12,0]], vector_id._representations)
centroids = list(sorted([tuple(cent) for cent in vector_id._centroids.values()]))
self.assertEqual(2, len(centroids))
np.testing.assert_array_almost_equal([0,3/5,4/5], centroids[0])
np.testing.assert_array_almost_equal([5/13,12/13,0], centroids[1])
self.assertEqual(id_1, id_2)
self.assertEqual(id_3, id_4)
self.assertNotEqual(id_1, id_3)
def test_add_two_clusters_agglomerative(self):
vector_id = ClusterIdentity.agglomerative(3, 0.1)
id_1 = vector_id.add(np.array([[0,3,4]]))
id_2 = vector_id.add(np.array([[0,3,4]]))
id_3 = vector_id.add(np.array([[5,12,0]]))
id_4 = vector_id.add(np.array([[5,12,0]]))
np.testing.assert_array_equal([[0,3,4], [0,3,4], [5,12,0], [5,12,0]], vector_id._representations)
centroids = list(sorted([tuple(cent) for cent in vector_id._centroids.values()]))
self.assertEqual(2, len(centroids))
np.testing.assert_array_almost_equal([0,3/5,4/5], centroids[0])
np.testing.assert_array_almost_equal([5/13,12/13,0], centroids[1])
self.assertEqual(id_1, id_2)
self.assertEqual(id_3, id_4)
self.assertNotEqual(id_1, id_3)
def test_add_one_dimensional_no_dim(self):
vector_id = ClusterIdentity(TestClustering(), 0)
vector_id.add(np.array([0,3,4]))
vector_id.add(np.array([0,3,4]))
np.testing.assert_array_almost_equal([[0,3,4], [0,3,4]], vector_id._representations)
np.testing.assert_array_equal([0,3/5,4/5], next(iter(vector_id._centroids.values())))
def test_two_dimensional_no_dim(self):
vector_id = ClusterIdentity(TestClustering(), None)
vector_id.add(np.array([[0,3,4]]))
vector_id.add(np.array([[0,3,4]]))
np.testing.assert_array_almost_equal([[0,3,4], [0,3,4]], vector_id._representations)
np.testing.assert_array_equal([0,3/5,4/5], next(iter(vector_id._centroids.values())))
def test_high_dimensional_runs_without_errors(self):
vector_id = ClusterIdentity.agglomerative(0, 0.1)
embeddings = np.array([[0.04033, 0.00239, 0.07055, 0.09924, -0.04310, 0.07525, -0.01110, 0.01596, 0.06416, 0.05910, -0.04483, 0.05125, -0.05855, -0.05928, -0.00403, 0.02286, 0.00968, -0.03060, -0.01531, -0.03746, 0.03748, 0.06572, 0.02293, -0.00569, -0.01466, -0.00888, -0.00632, 0.03012, 0.01382, -0.01228, 0.01191, 0.16940, 0.03387, 0.02397, 0.00903, 0.02465, 0.00205, -0.07306, 0.02680, -0.02877, 0.02359, 0.04737, -0.04135, -0.05056, -0.01978, -0.01763, 0.03069, 0.00032, -0.08090, 0.00094, -0.00586, 0.04093, 0.02771, 0.02459, 0.06944, 0.00071, -0.03708, -0.04547, -0.10318, 0.05844, 0.05309, 0.01828, -0.03179, -0.03322, -0.00485, -0.00210, -0.04818, 0.00546, 0.01380, -0.03014, 0.02184, 0.02099, 0.06900, 0.02351, -0.01536, -0.01016, -0.05433, 0.08255, -0.04285, 0.05843, -0.08229, 0.00036, 0.02491, -0.02762, 0.00482, -0.12327, -0.03334, -0.03007, 0.02016, -0.05876, 0.00068, -0.09427, -0.01258, -0.04339, 0.03018, 0.00575, 0.04831, -0.03926, 0.10413, -0.03389, 0.06211, 0.01196, -0.02751, -0.00988, 0.00415, -0.06509, -0.00703, -0.06321, 0.07341, -0.05424, -0.01668, 0.00818, -0.00458, 0.00525, -0.03502, 0.06170, 0.01012, 0.00049, -0.01249, -0.02000, -0.01534, 0.10848, -0.02393, 0.02286, 0.07738, 0.08010, -0.01400, 0.02722, -0.00033, -0.02480, 0.05482, -0.01097, 0.11494, 0.04828, -0.01827, 0.00134, -0.00749, 0.02994, 0.02773, 0.04519, -0.02475, 0.05796, 0.05050, 0.04872, -0.01276, -0.02734, -0.04033, 0.01013, 0.00919, -0.02973, 0.04465, 0.00021, 0.05651, 0.09445, -0.01230, -0.05934, -0.01845, 0.10338, 0.03501, 0.03109, 0.01558, -0.05732, 0.02712, -0.01635, -0.03739, -0.00266, -0.00319, -0.09630, -0.02313, -0.03269, -0.03144, -0.01556, 0.02806, 0.00924, -0.02912, 0.01189, 0.01406, -0.05153, -0.06128, 0.00834, -0.00868, -0.00074, -0.00389, -0.00802, -0.07939, 0.01557, 0.12182, -0.00703, -0.01017, 0.01102, 0.01944, -0.04896, -0.00338, 0.01844, -0.05962, -0.02939, -0.05335, -0.01685, 0.02968, -0.03075, -0.01733, -0.06617, 0.05483, 0.01320, -0.04760, 0.03735, 0.02410, 0.02813, -0.00811, -0.02431, -0.04025, 0.00576, 0.00117, -0.01600, 0.00689, -0.01046, -0.08528, 0.03169, -0.07314, 0.03689, 0.01609, 0.00001, -0.00072, -0.00448, 0.05270, -0.00982, 0.04349, -0.09122, -0.04947, -0.01843, -0.03496, -0.03000, 0.01752, 0.09247, 0.02540, 0.06841, 0.06352, -0.01256, 0.02712, -0.04180, 0.06271, 0.04539, 0.00945, 0.07932, -0.01480, 0.03554, -0.01440, 0.04069, 0.01757, 0.02244, 0.02430, -0.00831, 0.05645, 0.06505, 0.07745, 0.01845, -0.02981, -0.04835, -0.01667, -0.02113, -0.05245, 0.05671, -0.04400, -0.01225, -0.04786, 0.00103, -0.04078, -0.08605, -0.00496, -0.04065, 0.04748, -0.00478, 0.03748, -0.04453, 0.08364, -0.04519, -0.00684, 0.05084, -0.02890, -0.00700, -0.02096, 0.04153, 0.03515, -0.01792, -0.03309, 0.05893, 0.02637, -0.00431, 0.07033, 0.00499, -0.00054, 0.05145, 0.04387, -0.02458, -0.00671, 0.03880, -0.03839, -0.02496, -0.04868, -0.01856, -0.04192, 0.00546, -0.00336, 0.00726, -0.06631, 0.00260, -0.05498, 0.02930, -0.03243, 0.03494, 0.02274, -0.07325, -0.10807, 0.02638, -0.07572, -0.02212, 0.03082, -0.00272, -0.04384, -0.04343, 0.01300, 0.04498, 0.09513, 0.01833, 0.08962, -0.03986, -0.07123, 0.03996, -0.02510, 0.00112, -0.02113, 0.04241, -0.05953, 0.08315, -0.06508, 0.06429, 0.01899, 0.01246, -0.05562, -0.00176, 0.02880, -0.02638, 0.03155, 0.01540, 0.05119, -0.00766, -0.04481, -0.01422, 0.04744, -0.12099, -0.00500, -0.04346, -0.02157, 0.01607, -0.00244, 0.02529, 0.02959, 0.00014, 0.13309, 0.08373, -0.03935, -0.00256, 0.00113, -0.01074, 0.00136, -0.01882, 0.02913, -0.01240, 0.00419, -0.00051, -0.01412, 0.04257, -0.06524, -0.00483, -0.01558, 0.02257, -0.04074, 0.00540, -0.00393, -0.06017, -0.00727, 0.04464, 0.14538, 0.03216, 0.03478, 0.02100, -0.04942, 0.01112, -0.04777, 0.04297, 0.01418, -0.07953, -0.02569, 0.01094, -0.07679, -0.00175, -0.02997, -0.04855, -0.12326, -0.00889, -0.09008, 0.05064, 0.03513, 0.06133, -0.03390, 0.01198, -0.01841, 0.02175, 0.01087, 0.03350, -0.07962, 0.02406, -0.04911, 0.01107, 0.02777, -0.07081, -0.08089, -0.00920, 0.05952, 0.03411, -0.00990, 0.01099, 0.04342, 0.01350, 0.05692, 0.01096, 0.00301, -0.03264, 0.01046, 0.02887, 0.00121, -0.00910, -0.00247, -0.01692, -0.01378, -0.02340, 0.00238, -0.11213, 0.00418, 0.04075, 0.05929, -0.03632, 0.04193, -0.05112, 0.04744, -0.05729, -0.02945, -0.01829, -0.00158, -0.03728, 0.04031, 0.02916, -0.01572, -0.03900, -0.00022, 0.02546, 0.03716, -0.04563, -0.03336, -0.03434, -0.00337, -0.01006, -0.02266, 0.07467, 0.07370, 0.00888, 0.07410, -0.00395, -0.01964, 0.04145, -0.02950, 0.01563, -0.02839, -0.00493, 0.00565, 0.01605, -0.03027, -0.02687, -0.00613, 0.04908, -0.02012, 0.01820, -0.01714, 0.08532, 0.00312, 0.03582, -0.08793, -0.08372, 0.02182, -0.02731, -0.06593, -0.04387, 0.04224, 0.02507, 0.05928, -0.02970, 0.07124, -0.06781, -0.01801, 0.03498, 0.01998, 0.03776, 0.05945, 0.07820, -0.02244, -0.07771, 0.00959, -0.06342, 0.04917, -0.02134, 0.04325, 0.03237],
[0.04033, 0.00239, 0.07055, 0.09924, -0.04310, 0.07525, -0.01110, 0.01596, 0.06416, 0.05910, -0.04483, 0.05125, -0.05855, -0.05928, -0.00403, 0.02286, 0.00968, -0.03060, -0.01531, -0.03746, 0.03748, 0.06572, 0.02293, -0.00569, -0.01466, -0.00888, -0.00632, 0.03012, 0.01382, -0.01228, 0.01191, 0.16940, 0.03387, 0.02397, 0.00903, 0.02465, 0.00205, -0.07306, 0.02680, -0.02877, 0.02359, 0.04737, -0.04135, -0.05056, -0.01978, -0.01763, 0.03069, 0.00032, -0.08090, 0.00094, -0.00586, 0.04093, 0.02771, 0.02459, 0.06944, 0.00071, -0.03708, -0.04547, -0.10318, 0.05844, 0.05309, 0.01828, -0.03179, -0.03322, -0.00485, -0.00210, -0.04818, 0.00546, 0.01380, -0.03014, 0.02184, 0.02099, 0.06900, 0.02351, -0.01536, -0.01016, -0.05433, 0.08255, -0.04285, 0.05843, -0.08229, 0.00036, 0.02491, -0.02762, 0.00482, -0.12327, -0.03334, -0.03007, 0.02016, -0.05876, 0.00068, -0.09427, -0.01258, -0.04339, 0.03018, 0.00575, 0.04831, -0.03926, 0.10413, -0.03389, 0.06211, 0.01196, -0.02751, -0.00988, 0.00415, -0.06509, -0.00703, -0.06321, 0.07341, -0.05424, -0.01668, 0.00818, -0.00458, 0.00525, -0.03502, 0.06170, 0.01012, 0.00049, -0.01249, -0.02000, -0.01534, 0.10848, -0.02393, 0.02286, 0.07738, 0.08010, -0.01400, 0.02722, -0.00033, -0.02480, 0.05482, -0.01097, 0.11494, 0.04828, -0.01827, 0.00134, -0.00749, 0.02994, 0.02773, 0.04519, -0.02475, 0.05796, 0.05050, 0.04872, -0.01276, -0.02734, -0.04033, 0.01013, 0.00919, -0.02973, 0.04465, 0.00021, 0.05651, 0.09445, -0.01230, -0.05934, -0.01845, 0.10338, 0.03501, 0.03109, 0.01558, -0.05732, 0.02712, -0.01635, -0.03739, -0.00266, -0.00319, -0.09630, -0.02313, -0.03269, -0.03144, -0.01556, 0.02806, 0.00924, -0.02912, 0.01189, 0.01406, -0.05153, -0.06128, 0.00834, -0.00868, -0.00074, -0.00389, -0.00802, -0.07939, 0.01557, 0.12182, -0.00703, -0.01017, 0.01102, 0.01944, -0.04896, -0.00338, 0.01844, -0.05962, -0.02939, -0.05335, -0.01685, 0.02968, -0.03075, -0.01733, -0.06617, 0.05483, 0.01320, -0.04760, 0.03735, 0.02410, 0.02813, -0.00811, -0.02431, -0.04025, 0.00576, 0.00117, -0.01600, 0.00689, -0.01046, -0.08528, 0.03169, -0.07314, 0.03689, 0.01609, 0.00001, -0.00072, -0.00448, 0.05270, -0.00982, 0.04349, -0.09122, -0.04947, -0.01843, -0.03496, -0.03000, 0.01752, 0.09247, 0.02540, 0.06841, 0.06352, -0.01256, 0.02712, -0.04180, 0.06271, 0.04539, 0.00945, 0.07932, -0.01480, 0.03554, -0.01440, 0.04069, 0.01757, 0.02244, 0.02430, -0.00831, 0.05645, 0.06505, 0.07745, 0.01845, -0.02981, -0.04835, -0.01667, -0.02113, -0.05245, 0.05671, -0.04400, -0.01225, -0.04786, 0.00103, -0.04078, -0.08605, -0.00496, -0.04065, 0.04748, -0.00478, 0.03748, -0.04453, 0.08364, -0.04519, -0.00684, 0.05084, -0.02890, -0.00700, -0.02096, 0.04153, 0.03515, -0.01792, -0.03309, 0.05893, 0.02637, -0.00431, 0.07033, 0.00499, -0.00054, 0.05145, 0.04387, -0.02458, -0.00671, 0.03880, -0.03839, -0.02496, -0.04868, -0.01856, -0.04192, 0.00546, -0.00336, 0.00726, -0.06631, 0.00260, -0.05498, 0.02930, -0.03243, 0.03494, 0.02274, -0.07325, -0.10807, 0.02638, -0.07572, -0.02212, 0.03082, -0.00272, -0.04384, -0.04343, 0.01300, 0.04498, 0.09513, 0.01833, 0.08962, -0.03986, -0.07123, 0.03996, -0.02510, 0.00112, -0.02113, 0.04241, -0.05953, 0.08315, -0.06508, 0.06429, 0.01899, 0.01246, -0.05562, -0.00176, 0.02880, -0.02638, 0.03155, 0.01540, 0.05119, -0.00766, -0.04481, -0.01422, 0.04744, -0.12099, -0.00500, -0.04346, -0.02157, 0.01607, -0.00244, 0.02529, 0.02959, 0.00014, 0.13309, 0.08373, -0.03935, -0.00256, 0.00113, -0.01074, 0.00136, -0.01882, 0.02913, -0.01240, 0.00419, -0.00051, -0.01412, 0.04257, -0.06524, -0.00483, -0.01558, 0.02257, -0.04074, 0.00540, -0.00393, -0.06017, -0.00727, 0.04464, 0.14538, 0.03216, 0.03478, 0.02100, -0.04942, 0.01112, -0.04777, 0.04297, 0.01418, -0.07953, -0.02569, 0.01094, -0.07679, -0.00175, -0.02997, -0.04855, -0.12326, -0.00889, -0.09008, 0.05064, 0.03513, 0.06133, -0.03390, 0.01198, -0.01841, 0.02175, 0.01087, 0.03350, -0.07962, 0.02406, -0.04911, 0.01107, 0.02777, -0.07081, -0.08089, -0.00920, 0.05952, 0.03411, -0.00990, 0.01099, 0.04342, 0.01350, 0.05692, 0.01096, 0.00301, -0.03264, 0.01046, 0.02887, 0.00121, -0.00910, -0.00247, -0.01692, -0.01378, -0.02340, 0.00238, -0.11213, 0.00418, 0.04075, 0.05929, -0.03632, 0.04193, -0.05112, 0.04744, -0.05729, -0.02945, -0.01829, -0.00158, -0.03728, 0.04031, 0.02916, -0.01572, -0.03900, -0.00022, 0.02546, 0.03716, -0.04563, -0.03336, -0.03434, -0.00337, -0.01006, -0.02266, 0.07467, 0.07370, 0.00888, 0.07410, -0.00395, -0.01964, 0.04145, -0.02950, 0.01563, -0.02839, -0.00493, 0.00565, 0.01605, -0.03027, -0.02687, -0.00613, 0.04908, -0.02012, 0.01820, -0.01714, 0.08532, 0.00312, 0.03582, -0.08793, -0.08372, 0.02182, -0.02731, -0.06593, -0.04387, 0.04224, 0.02507, 0.05928, -0.02970, 0.07124, -0.06781, -0.01801, 0.03498, 0.01998, 0.03776, 0.05945, 0.07820, -0.02244, -0.07771, 0.00959, -0.06342, 0.04917, -0.02134, 0.04325, 0.03237],
[0.02892, 0.01239, 0.06904, 0.10118, -0.02539, 0.07344, -0.00923, 0.02611, 0.06155, 0.06609, -0.04307, 0.05594, -0.05395, -0.05007, 0.00031, 0.03520, -0.00577, -0.02814, -0.00269, -0.04223, 0.06196, 0.06396, 0.02535, 0.00702, -0.02523, -0.01090, -0.02258, 0.02856, 0.02846, -0.00285, 0.00963, 0.16410, 0.02590, 0.02256, 0.00615, 0.01398, 0.02125, -0.08144, 0.02230, -0.03225, 0.03765, 0.03224, -0.04608, -0.04299, -0.01251, -0.02514, 0.02386, 0.00573, -0.06156, -0.00639, 0.00604, 0.04942, 0.02815, 0.03745, 0.05497, 0.00174, -0.05225, -0.03044, -0.10221, 0.07933, 0.05343, 0.00353, -0.03898, -0.02526, 0.00189, 0.00410, -0.04996, -0.00231, 0.01187, -0.03422, 0.02346, 0.01522, 0.06910, 0.01348, 0.00128, -0.00886, -0.04078, 0.08003, -0.05794, 0.05112, -0.06415, -0.00686, 0.03857, -0.03015, 0.00311, -0.12569, -0.02077, -0.03448, 0.01948, -0.05612, 0.01959, -0.07930, -0.03030, -0.04492, 0.01647, 0.02214, 0.05075, -0.02099, 0.11370, -0.03972, 0.06092, 0.02521, -0.02703, -0.01003, 0.00595, -0.08890, -0.00262, -0.04979, 0.08475, -0.06805, -0.00140, 0.00885, -0.01290, -0.00974, -0.03571, 0.06825, 0.02018, -0.00003, 0.00120, -0.02436, -0.01846, 0.10365, -0.03352, 0.01550, 0.05997, 0.08899, 0.00082, 0.01776, 0.00896, -0.03590, 0.06514, -0.00904, 0.10284, 0.03760, -0.02353, -0.01495, -0.02716, 0.02007, 0.04145, 0.04884, -0.01825, 0.06778, 0.04925, 0.05329, -0.01801, -0.01802, -0.03471, 0.00139, 0.00840, -0.02923, 0.02716, 0.00948, 0.05660, 0.12103, -0.01066, -0.06979, -0.02736, 0.08562, 0.03934, 0.03827, 0.01491, -0.04906, 0.02268, -0.01566, -0.02556, 0.01524, 0.00295, -0.09084, -0.04112, -0.03255, -0.04540, 0.00716, 0.02494, 0.01591, -0.03283, 0.01725, 0.00914, -0.05802, -0.04675, -0.00706, -0.00547, -0.01689, -0.00232, -0.02345, -0.09448, 0.01360, 0.11957, -0.00198, -0.00295, -0.00046, 0.01409, -0.03203, 0.01677, 0.02561, -0.05951, -0.03784, -0.06084, -0.01853, 0.04854, -0.02540, -0.00405, -0.07095, 0.05765, 0.01319, -0.05088, 0.04687, 0.03290, 0.02855, -0.02171, -0.01476, -0.04762, 0.01217, 0.01038, -0.01467, 0.01835, 0.00156, -0.09282, 0.02592, -0.06296, 0.02736, 0.00032, 0.00534, -0.00784, -0.01305, 0.03847, -0.01238, 0.04436, -0.09184, -0.03949, -0.00590, -0.04203, -0.01994, 0.02481, 0.10413, 0.01734, 0.08008, 0.06446, -0.01551, 0.00897, -0.03008, 0.05995, 0.07432, -0.00044, 0.07618, -0.00964, 0.02145, -0.01426, 0.04250, 0.02899, 0.02961, 0.03156, -0.00864, 0.05388, 0.08591, 0.06232, 0.00470, -0.03393, -0.04092, 0.00506, -0.01653, -0.04799, 0.05307, -0.04500, -0.01052, -0.04031, 0.01675, -0.03941, -0.06101, -0.01497, -0.02164, 0.04749, -0.00138, 0.04757, -0.04463, 0.07097, -0.04524, -0.00669, 0.03584, -0.03499, -0.01290, -0.02871, 0.02307, 0.03487, -0.01594, -0.03183, 0.05729, 0.00549, -0.02286, 0.06479, 0.00635, -0.00541, 0.05281, 0.06490, -0.00431, 0.01079, 0.03848, -0.03457, -0.02578, -0.03751, -0.01442, -0.04553, -0.00291, 0.01023, -0.00236, -0.05831, -0.00275, -0.05826, 0.02847, -0.01855, 0.01856, 0.00722, -0.06207, -0.09809, 0.03391, -0.04967, -0.01502, 0.04573, -0.01160, -0.03362, -0.03710, 0.02103, 0.03824, 0.08679, 0.00463, 0.07986, -0.02182, -0.07972, 0.02909, -0.01727, 0.00262, -0.01641, 0.04066, -0.02770, 0.07716, -0.07818, 0.04754, 0.01946, 0.01306, -0.06755, 0.00823, 0.01056, -0.04248, 0.02747, 0.03132, 0.06666, -0.00127, -0.05665, -0.00158, 0.05879, -0.10661, -0.00518, -0.02763, -0.01107, 0.02895, 0.00237, 0.01585, 0.02414, 0.01013, 0.13103, 0.06717, -0.04798, 0.00828, -0.00906, -0.00358, 0.00184, -0.03741, 0.01852, -0.00835, -0.00087, -0.00815, -0.01999, 0.05968, -0.05872, -0.00859, -0.00531, 0.02715, -0.04705, -0.00684, -0.00925, -0.06641, -0.00791, 0.04100, 0.13947, 0.02792, 0.02961, 0.02630, -0.04625, 0.00889, -0.06984, 0.06152, 0.01818, -0.07037, -0.03451, 0.00826, -0.09336, -0.00921, -0.02133, -0.04283, -0.12100, -0.00574, -0.09671, 0.04782, 0.01671, 0.04920, -0.04150, 0.01889, 0.00443, 0.01866, 0.00136, 0.03953, -0.09029, 0.02823, -0.06941, 0.01975, 0.01669, -0.07498, -0.08415, -0.00396, 0.06438, 0.03577, -0.00241, 0.00403, 0.03149, 0.02596, 0.05991, 0.01763, -0.01346, -0.02878, 0.00782, 0.03779, 0.00240, 0.00753, -0.01187, -0.01739, -0.00959, -0.01361, 0.00142, -0.10783, -0.00972, 0.03533, 0.04468, -0.02207, 0.04387, -0.03239, 0.04154, -0.05679, -0.01492, -0.02030, -0.00074, -0.04791, 0.02151, 0.03442, -0.01083, -0.01846, 0.00382, 0.03529, 0.03504, -0.07250, -0.02562, -0.04813, -0.02211, -0.02131, -0.01206, 0.08506, 0.05903, -0.00402, 0.08577, -0.01530, -0.00867, 0.05325, -0.02096, 0.01049, -0.03004, -0.01568, 0.01337, 0.01352, -0.02663, -0.04555, -0.02050, 0.06758, -0.00345, 0.03270, -0.01304, 0.08042, 0.00325, 0.04651, -0.07734, -0.07054, 0.02896, -0.02378, -0.06576, -0.04744, 0.05630, 0.02033, 0.07144, -0.04003, 0.06372, -0.08130, -0.00083, 0.03400, 0.01527, 0.05078, 0.06392, 0.05919, -0.02696, -0.07252, -0.00300, -0.06393, 0.02744, -0.03356, 0.05106, 0.01642],
[0.00301, 0.01980, 0.02526, 0.08707, -0.03825, 0.03706, 0.01231, -0.04443, 0.08058, 0.08016, -0.08023, 0.03012, -0.06987, 0.00292, -0.03454, 0.04167, -0.02099, -0.02780, -0.02799, -0.02222, 0.02216, 0.05898, -0.00420, -0.00122, 0.01617, -0.00065, 0.02156, 0.00609, 0.03158, -0.03731, -0.00867, 0.16330, 0.04699, 0.06543, 0.02812, -0.01104, 0.03131, -0.05881, 0.01563, -0.05821, 0.03758, 0.04258, -0.04367, -0.04314, -0.01046, -0.00581, 0.01848, 0.02866, -0.03920, 0.00594, 0.04909, 0.01028, 0.03971, 0.01972, 0.01572, -0.01848, -0.04765, -0.04797, -0.10060, 0.06017, 0.05142, -0.02156, 0.01637, -0.00220, -0.03862, 0.04269, -0.02313, -0.00674, 0.03153, -0.02647, 0.04231, -0.00238, 0.03962, 0.00804, 0.01426, 0.00626, -0.02581, 0.07277, -0.01288, 0.03166, -0.04249, 0.02453, 0.03942, -0.05435, 0.00365, -0.12359, -0.00762, -0.02489, 0.01503, -0.03804, 0.01482, -0.09906, 0.00476, -0.03890, 0.00833, 0.02092, -0.00591, -0.00252, 0.08603, -0.03639, 0.05676, 0.00623, -0.00397, -0.05091, 0.02681, -0.02545, -0.01398, -0.02580, 0.07699, -0.05578, -0.01785, 0.00267, 0.01723, -0.00974, -0.01544, 0.07322, 0.02426, 0.05081, 0.01736, -0.04235, 0.01082, 0.04822, -0.00495, 0.02194, 0.05785, 0.08306, 0.02316, 0.03842, 0.00931, -0.04812, 0.02690, -0.04104, 0.12348, 0.04883, 0.01535, -0.02456, -0.00945, 0.06651, 0.05242, 0.03146, 0.01042, 0.05959, 0.02539, 0.03886, -0.00392, -0.02041, -0.03199, 0.00664, -0.01002, 0.00890, 0.08169, 0.02374, 0.05006, 0.09092, -0.01983, -0.06332, -0.02515, 0.08685, 0.05741, 0.01545, 0.04516, -0.01312, -0.00512, 0.02489, -0.01729, 0.02650, 0.03809, -0.07181, 0.00551, 0.00877, -0.04692, 0.03147, 0.02151, -0.00672, -0.03295, 0.00956, 0.00217, -0.04699, -0.06473, 0.01351, -0.00546, -0.00511, -0.03593, -0.00472, -0.07508, 0.01174, 0.08194, 0.03873, -0.00886, -0.00735, -0.02901, -0.03082, 0.03133, 0.02646, -0.04729, -0.01440, -0.02492, -0.02171, 0.07006, -0.03921, -0.01942, -0.06808, 0.07346, 0.02709, -0.04486, 0.03182, -0.01028, 0.02593, -0.04363, -0.00615, -0.01876, -0.01552, -0.03234, -0.00091, 0.00516, -0.01500, -0.07374, 0.05309, -0.05647, 0.09266, 0.00455, -0.02981, -0.01817, 0.02838, 0.07184, 0.00870, 0.00279, -0.09360, -0.03429, -0.04415, -0.08157, -0.00425, 0.00626, 0.07986, -0.00747, 0.05306, 0.05180, -0.05034, 0.01147, -0.04784, 0.04976, 0.05669, 0.00419, 0.08467, 0.02329, 0.00468, -0.07050, 0.07885, 0.01272, 0.01100, 0.01521, -0.03520, 0.03102, 0.05072, 0.02512, -0.01778, -0.03262, -0.05039, -0.04319, -0.01440, -0.04749, 0.04833, -0.08283, -0.03095, -0.05953, 0.05053, -0.03244, -0.05661, -0.00939, 0.00122, 0.06019, 0.04283, 0.07068, -0.04271, 0.07133, -0.05971, -0.03041, 0.01428, -0.02028, -0.01436, 0.01745, 0.01094, -0.00028, 0.00494, -0.09653, 0.07037, 0.01450, -0.05608, 0.07973, 0.04807, 0.03536, 0.02571, 0.04628, 0.00286, 0.02988, 0.03103, -0.00065, -0.03346, -0.04815, -0.06137, -0.01851, 0.02752, -0.02768, -0.00967, -0.02525, 0.00870, -0.05806, 0.03590, -0.03904, -0.01950, -0.01229, -0.07079, -0.04694, 0.02228, -0.07656, -0.01553, 0.04063, 0.02056, -0.02595, -0.00061, 0.00301, 0.06353, 0.06846, 0.05541, 0.10408, 0.00581, -0.11689, 0.04512, 0.00255, -0.03881, -0.04250, 0.10198, -0.05177, 0.11499, -0.07948, 0.06238, 0.01868, 0.05451, -0.08599, 0.03904, 0.01109, -0.02391, 0.01331, 0.00244, 0.04326, -0.00714, -0.04692, -0.01947, 0.03226, -0.10518, 0.02198, -0.06559, -0.02566, 0.03266, -0.03576, 0.01706, 0.01023, 0.01434, 0.13100, 0.02553, -0.04959, -0.01304, -0.01013, -0.00162, 0.01094, -0.00203, 0.03979, -0.00759, -0.00984, 0.03527, -0.05675, 0.04397, -0.07642, 0.01838, -0.01230, -0.00020, -0.03639, 0.00679, -0.03341, -0.04589, 0.01508, 0.04012, 0.11716, 0.01208, 0.03689, 0.02974, -0.04841, -0.00710, -0.04253, 0.02848, -0.01307, -0.08110, -0.03218, -0.02152, -0.04846, -0.00062, -0.00422, -0.02657, -0.13152, 0.03211, -0.08104, 0.00753, 0.00662, 0.03154, -0.03655, -0.01962, 0.00208, 0.03393, -0.00298, 0.03335, -0.08249, 0.05726, -0.02676, 0.03427, -0.00876, -0.02830, -0.07917, -0.00354, 0.05993, 0.01882, -0.02362, 0.00671, 0.01712, 0.03071, 0.08472, 0.01710, -0.01445, -0.01925, 0.01344, -0.00359, 0.02990, -0.00957, 0.00141, -0.02243, -0.04182, -0.03302, 0.00600, -0.12942, -0.02792, 0.02687, 0.06445, -0.02985, 0.04846, -0.04175, 0.06355, -0.02963, -0.04841, 0.00318, 0.00293, -0.07642, -0.00460, 0.02437, -0.01900, 0.00312, -0.01605, 0.05242, 0.03680, -0.03525, -0.05226, -0.05087, -0.02071, -0.02734, 0.01003, 0.09703, 0.03219, 0.04502, 0.03570, 0.02261, -0.02165, 0.04358, -0.05981, 0.02757, 0.02922, -0.00217, 0.00901, -0.01623, -0.00336, -0.01608, 0.00738, 0.04244, -0.00395, 0.01614, -0.02128, 0.09502, -0.02093, 0.01663, -0.08324, -0.08566, 0.00828, -0.02045, -0.03394, -0.04493, 0.06993, 0.02578, -0.01257, -0.03750, 0.06890, -0.05528, -0.04549, 0.03466, 0.05628, 0.03459, 0.06806, 0.06389, -0.04482, -0.10843, 0.00774, -0.02564, 0.00995, -0.00388, 0.02106, -0.00077]])
vector_id.add(embeddings)
vector_id.add(embeddings)
| 192.666667
| 4,899
| 0.634289
| 4,825
| 24,276
| 3.156062
| 0.307772
| 0.024691
| 0.00591
| 0.024954
| 0.564289
| 0.554439
| 0.548923
| 0.548923
| 0.541437
| 0.541437
| 0
| 0.588406
| 0.122384
| 24,276
| 126
| 4,900
| 192.666667
| 0.126355
| 0.003007
| 0
| 0.593023
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.337209
| 1
| 0.127907
| false
| 0
| 0.046512
| 0.011628
| 0.232558
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b0561a8bef98272dbbce0329c3973c249eb3dd0d
| 269
|
py
|
Python
|
bireme/help/urls.py
|
rfdeoliveira/fi-admin
|
c2df084c7e79d587e2273dc222f106fa243b7f6e
|
[
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
bireme/help/urls.py
|
rfdeoliveira/fi-admin
|
c2df084c7e79d587e2273dc222f106fa243b7f6e
|
[
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
bireme/help/urls.py
|
rfdeoliveira/fi-admin
|
c2df084c7e79d587e2273dc222f106fa243b7f6e
|
[
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import patterns, include, url
from views import *
urlpatterns = patterns('',
url(r'^view/(?P<source_param>\w{0,35})/(?P<fieldname_param>\w{0,55})/?$', view_help),
)
| 26.9
| 89
| 0.72119
| 42
| 269
| 4.547619
| 0.547619
| 0.157068
| 0.219895
| 0.188482
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025105
| 0.111524
| 269
| 9
| 90
| 29.888889
| 0.774059
| 0
| 0
| 0
| 0
| 0.142857
| 0.241636
| 0.241636
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.571429
| 0
| 0.571429
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
b0634bcaf4117a97ca437786843d0ac25adc9bcb
| 57
|
py
|
Python
|
Dynamics/Discrete/test.py
|
jesusdalvarado/CalculiX-Examples
|
79150c1167026cb6c0dfd2bd83f8abed144dcd75
|
[
"MIT"
] | 2
|
2019-03-16T09:22:21.000Z
|
2019-03-16T09:22:23.000Z
|
Dynamics/Discrete/test.py
|
jesusdalvarado/CalculiX-Examples
|
79150c1167026cb6c0dfd2bd83f8abed144dcd75
|
[
"MIT"
] | null | null | null |
Dynamics/Discrete/test.py
|
jesusdalvarado/CalculiX-Examples
|
79150c1167026cb6c0dfd2bd83f8abed144dcd75
|
[
"MIT"
] | 1
|
2019-04-26T14:35:22.000Z
|
2019-04-26T14:35:22.000Z
|
#!/usr/bin/python
import os
os.system("cgx -b run.fbd")
| 11.4
| 27
| 0.666667
| 11
| 57
| 3.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122807
| 57
| 4
| 28
| 14.25
| 0.76
| 0.280702
| 0
| 0
| 0
| 0
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
|
0
| 4
|
b06cd80d0661a4fad14051b55b76c6e62676ec9b
| 134
|
py
|
Python
|
utilities/ray.py
|
fietensen/raytracer
|
856e9dfa39d1c7fd77fd2409ce19a244af6e479c
|
[
"MIT"
] | null | null | null |
utilities/ray.py
|
fietensen/raytracer
|
856e9dfa39d1c7fd77fd2409ce19a244af6e479c
|
[
"MIT"
] | null | null | null |
utilities/ray.py
|
fietensen/raytracer
|
856e9dfa39d1c7fd77fd2409ce19a244af6e479c
|
[
"MIT"
] | null | null | null |
class Ray:
def __init__(self, origin, direction):
self.origin = origin
self.direction = direction.normalize()
| 26.8
| 47
| 0.634328
| 14
| 134
| 5.785714
| 0.571429
| 0.246914
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.268657
| 134
| 4
| 48
| 33.5
| 0.826531
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.