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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df959b37707f8f379991c16d419196097eee32d4
| 3,880
|
py
|
Python
|
src/models/__init__.py
|
haichungcn/f-fakebook
|
82c7f8b5533c453bdd79acc81f6a535722223cca
|
[
"Apache-2.0"
] | null | null | null |
src/models/__init__.py
|
haichungcn/f-fakebook
|
82c7f8b5533c453bdd79acc81f6a535722223cca
|
[
"Apache-2.0"
] | 1
|
2021-06-02T00:39:52.000Z
|
2021-06-02T00:39:52.000Z
|
src/models/__init__.py
|
haichungcn/f-fakebook
|
82c7f8b5533c453bdd79acc81f6a535722223cca
|
[
"Apache-2.0"
] | null | null | null |
from src import db
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
class Post(db.Model):
__tablename__ = "posts"
id = db.Column(db.Integer, primary_key=True)
body = db.Column(db.Text, nullable=False)
image_url = db.Column(db.Text)
author = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
timestamp = db.Column(db.DateTime(timezone=True), server_default = db.func.now())
updated = db.Column(db.DateTime(timezone=True), server_default = db.func.now(), server_onupdate=db.func.now()) ## same as above, but with updating timestamp
views_count = db.Column(db.Integer, default=0)
def __repr__(self):
return '<Task>' % self.id
class User(UserMixin, db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
email = db.Column(db.String(120), unique=True, nullable=False)
password = db.Column(db.String, unique=True, nullable=False)
avatar_url = db.Column(db.Text)
birthday = db.Column(db.DateTime(timezone=True))
admin = db.Column(db.Boolean, default=False)
timestamp = db.Column(db.DateTime(timezone=True), server_default = db.func.now())
def __repr__(self):
return '<Task>' % self.id
def generate_password(self, password):
self.password = generate_password_hash(password)
def check_password(self, password):
return check_password_hash(self.password, password)
def check_email(self, email):
return User.query.filter_by(email = email).first()
class Comment(db.Model):
__tablename__ = "comments"
id = db.Column(db.Integer, primary_key=True)
body = db.Column(db.Text, nullable=False)
image_url = db.Column(db.Text)
author = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
post_id = db.Column(db.Integer, db.ForeignKey('posts.id'), nullable=False)
timestamp = db.Column(db.DateTime(timezone=True), server_default = db.func.now())
updated = db.Column(db.DateTime(timezone=True), server_default = db.func.now(), server_onupdate=db.func.now())
def __repr__(self):
return '<Task>' % self.id
class Like(db.Model):
__tablename__ = "likes"
id = db.Column(db.Integer, primary_key=True)
author = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
post_id = db.Column(db.Integer, db.ForeignKey('posts.id'), nullable=False)
timestamp = db.Column(db.DateTime(timezone=True), server_default = db.func.now())
def __repr__(self):
return '<Task>' % self.id
class Thumbsup(db.Model):
__tablename__ = "thumbsups"
id = db.Column(db.Integer, primary_key=True)
author = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
post_id = db.Column(db.Integer, db.ForeignKey('posts.id'), nullable=False)
timestamp = db.Column(db.DateTime(timezone=True), server_default = db.func.now())
def __repr__(self):
return '<Task>' % self.id
class Thumbsdown(db.Model):
__tablename__ = "thumbsdowns"
id = db.Column(db.Integer, primary_key=True)
author = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
post_id = db.Column(db.Integer, db.ForeignKey('posts.id'), nullable=False)
timestamp = db.Column(db.DateTime(timezone=True), server_default = db.func.now())
def __repr__(self):
return '<Task>' % self.id
class Follow(db.Model):
__tablename__ = "follows"
id = db.Column(db.Integer, primary_key=True)
author = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
user_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
timestamp = db.Column(db.DateTime(timezone=True), server_default = db.func.now())
def __repr__(self):
return '<Task>' % self.id
| 41.276596
| 160
| 0.691753
| 537
| 3,880
| 4.819367
| 0.150838
| 0.117465
| 0.146832
| 0.124807
| 0.693586
| 0.687017
| 0.675425
| 0.674652
| 0.649536
| 0.649536
| 0
| 0.001844
| 0.161598
| 3,880
| 93
| 161
| 41.72043
| 0.793729
| 0.010825
| 0
| 0.586667
| 1
| 0
| 0.046936
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.133333
| false
| 0.08
| 0.04
| 0.12
| 0.986667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
|
0
| 4
|
10e52806c25559b75a815ac5e97b8b37657e03e4
| 226
|
py
|
Python
|
apogee/models/__init__.py
|
markdouthwaite/apogee
|
2e8f58809b2af76137793215f4e7853b047d9183
|
[
"MIT"
] | 4
|
2019-01-02T06:08:28.000Z
|
2019-11-11T08:58:01.000Z
|
apogee/models/__init__.py
|
markdouthwaite/Apogee
|
2e8f58809b2af76137793215f4e7853b047d9183
|
[
"MIT"
] | 3
|
2019-10-17T11:56:53.000Z
|
2020-05-17T16:04:45.000Z
|
apogee/models/__init__.py
|
markdouthwaite/apogee
|
2e8f58809b2af76137793215f4e7853b047d9183
|
[
"MIT"
] | null | null | null |
"""
The MIT License
Copyright (c) 2017-2020 Mark Douthwaite
"""
from .undirected import UndirectedModel
from .directed import BayesianNetwork, DirectedModel
__all__ = ["BayesianNetwork", "DirectedModel", "UndirectedModel"]
| 20.545455
| 65
| 0.778761
| 22
| 226
| 7.818182
| 0.772727
| 0.325581
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040201
| 0.119469
| 226
| 10
| 66
| 22.6
| 0.824121
| 0.247788
| 0
| 0
| 0
| 0
| 0.265432
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
10e96c061b3e63c8026d6f40e418a53c06033c99
| 78
|
py
|
Python
|
tests/tools/fileinfo_test_tests.py
|
mehrdad-shokri/retdec-regression-tests-framework
|
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
|
[
"MIT"
] | 21
|
2017-12-12T20:38:43.000Z
|
2019-04-14T12:46:10.000Z
|
tests/tools/fileinfo_test_tests.py
|
mehrdad-shokri/retdec-regression-tests-framework
|
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
|
[
"MIT"
] | 6
|
2018-01-06T13:32:23.000Z
|
2018-09-14T15:09:11.000Z
|
tests/tools/fileinfo_test_tests.py
|
mehrdad-shokri/retdec-regression-tests-framework
|
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
|
[
"MIT"
] | 11
|
2017-12-12T20:38:46.000Z
|
2018-07-19T03:12:03.000Z
|
"""
Tests for the :mod:`regression_tests.tools.fileinfo_test` module.
"""
| 19.5
| 69
| 0.692308
| 10
| 78
| 5.2
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141026
| 78
| 3
| 70
| 26
| 0.776119
| 0.833333
| 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
|
10feb6854842d5342beaee1d6987fda871c97384
| 199
|
py
|
Python
|
simulaqron/sdk/broadcast_channel.py
|
WrathfulSpatula/SimulaQron
|
eaa5548df2f992e187ee70ccd81f192a1ce93e14
|
[
"BSD-3-Clause"
] | 25
|
2017-11-20T08:50:12.000Z
|
2018-07-31T19:02:19.000Z
|
simulaqron/sdk/broadcast_channel.py
|
WrathfulSpatula/SimulaQron
|
eaa5548df2f992e187ee70ccd81f192a1ce93e14
|
[
"BSD-3-Clause"
] | 23
|
2017-11-21T21:47:28.000Z
|
2018-10-03T08:28:41.000Z
|
simulaqron/sdk/broadcast_channel.py
|
WrathfulSpatula/SimulaQron
|
eaa5548df2f992e187ee70ccd81f192a1ce93e14
|
[
"BSD-3-Clause"
] | 13
|
2017-11-20T08:50:14.000Z
|
2018-09-01T21:44:00.000Z
|
from netqasm.sdk.classical_communication.broadcast_channel import BroadcastChannelBySockets
from .socket import Socket
class BroadcastChannel(BroadcastChannelBySockets):
_socket_class = Socket
| 28.428571
| 91
| 0.864322
| 19
| 199
| 8.842105
| 0.631579
| 0.130952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095477
| 199
| 6
| 92
| 33.166667
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 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
|
80010f9105ee5d9a90821ceb683adb91dc0e000b
| 89
|
py
|
Python
|
pastebin/djpaste/apps.py
|
dhananjayk/django2-pastebin
|
00bac04b63f6c7cab570c81f0af453dfd62bfdaa
|
[
"MIT"
] | null | null | null |
pastebin/djpaste/apps.py
|
dhananjayk/django2-pastebin
|
00bac04b63f6c7cab570c81f0af453dfd62bfdaa
|
[
"MIT"
] | null | null | null |
pastebin/djpaste/apps.py
|
dhananjayk/django2-pastebin
|
00bac04b63f6c7cab570c81f0af453dfd62bfdaa
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class DjpasteConfig(AppConfig):
name = 'djpaste'
| 14.833333
| 33
| 0.752809
| 10
| 89
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 5
| 34
| 17.8
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 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
|
804e8ace2d32059e6654eb4e222fe9c8c5d482d8
| 50
|
py
|
Python
|
python/study_myself/4_function/function_hello.py
|
harkhuang/harkcode
|
1c9802bfc8d599e20ee9082eca14165a782ddf85
|
[
"MIT"
] | 3
|
2015-10-27T00:49:46.000Z
|
2019-04-19T08:14:46.000Z
|
python/study_myself/4_function/function_hello.py
|
harkhuang/harkcode
|
1c9802bfc8d599e20ee9082eca14165a782ddf85
|
[
"MIT"
] | 1
|
2018-11-05T07:54:55.000Z
|
2018-11-05T07:54:55.000Z
|
python/study_myself/4_function/function_hello.py
|
harkhuang/harkcode
|
1c9802bfc8d599e20ee9082eca14165a782ddf85
|
[
"MIT"
] | 1
|
2015-12-19T08:47:53.000Z
|
2015-12-19T08:47:53.000Z
|
def sayHello(): print "hello world"
sayHello();
| 16.666667
| 36
| 0.68
| 6
| 50
| 5.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 50
| 2
| 37
| 25
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0.229167
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
1d2050bc2a05e6d9389e47cbc83a1e6f71228076
| 237
|
py
|
Python
|
spider/cluster/ekss/__init__.py
|
dvdmjohnson/d3m_michigan_primitives
|
b9b4097c3cd354a9a75e5822831cb553a0601094
|
[
"MIT"
] | 1
|
2021-11-08T15:32:49.000Z
|
2021-11-08T15:32:49.000Z
|
spider/cluster/ekss/__init__.py
|
dvdmjohnson/d3m_michigan_primitives
|
b9b4097c3cd354a9a75e5822831cb553a0601094
|
[
"MIT"
] | 39
|
2019-05-16T23:36:37.000Z
|
2021-08-03T15:13:14.000Z
|
spider/cluster/ekss/__init__.py
|
dvdmjohnson/d3m_michigan_primitives
|
b9b4097c3cd354a9a75e5822831cb553a0601094
|
[
"MIT"
] | null | null | null |
"""
spider.cluster.ekss sub-package
__init.py__
@author: mingyuaz
Primitive that applies Ensemble K-Subspaces algorithm for subspace clustering
defines the module index
"""
from .ekss import EKSS, EKSSHyperparams
| 18.230769
| 81
| 0.729958
| 28
| 237
| 6.035714
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.206751
| 237
| 12
| 82
| 19.75
| 0.898936
| 0.704641
| 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
| 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
|
1d3dd1f163cd23efbd2384752980b308b15fa401
| 43
|
py
|
Python
|
checkarg/__init__.py
|
felipebrumpereira/checkarg
|
1dad052af183def92a7213add68dc91fe7f4462c
|
[
"MIT"
] | null | null | null |
checkarg/__init__.py
|
felipebrumpereira/checkarg
|
1dad052af183def92a7213add68dc91fe7f4462c
|
[
"MIT"
] | null | null | null |
checkarg/__init__.py
|
felipebrumpereira/checkarg
|
1dad052af183def92a7213add68dc91fe7f4462c
|
[
"MIT"
] | null | null | null |
__doc__ = "__init__"
__version__ = "0.0.1"
| 14.333333
| 21
| 0.674419
| 6
| 43
| 2.833333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081081
| 0.139535
| 43
| 2
| 22
| 21.5
| 0.378378
| 0
| 0
| 0
| 0
| 0
| 0.302326
| 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
|
1d43e91aa651416976353794de7f5dc1fdf86f9f
| 100
|
py
|
Python
|
Django_Typescript_React_Workflow/backend/urls.py
|
lit26/Django_React_Workflow
|
564dfc0690940938b07b08ea25f712f120f8a2dd
|
[
"MIT"
] | null | null | null |
Django_Typescript_React_Workflow/backend/urls.py
|
lit26/Django_React_Workflow
|
564dfc0690940938b07b08ea25f712f120f8a2dd
|
[
"MIT"
] | null | null | null |
Django_Typescript_React_Workflow/backend/urls.py
|
lit26/Django_React_Workflow
|
564dfc0690940938b07b08ea25f712f120f8a2dd
|
[
"MIT"
] | null | null | null |
from django.urls import path
from .views import main_view
urlpatterns = [
path('', main_view)
]
| 16.666667
| 28
| 0.72
| 14
| 100
| 5
| 0.642857
| 0.228571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.18
| 100
| 6
| 29
| 16.666667
| 0.853659
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
1d54a0e0b73549a1d49ffc5a874390c340a1c716
| 1,813
|
py
|
Python
|
tests/test_exceptions.py
|
jherico/pyopenxr
|
c0052ebcba208bf644becf01d390bd058034e1cb
|
[
"Apache-2.0"
] | null | null | null |
tests/test_exceptions.py
|
jherico/pyopenxr
|
c0052ebcba208bf644becf01d390bd058034e1cb
|
[
"Apache-2.0"
] | null | null | null |
tests/test_exceptions.py
|
jherico/pyopenxr
|
c0052ebcba208bf644becf01d390bd058034e1cb
|
[
"Apache-2.0"
] | null | null | null |
import unittest
import xr
class TestSuccessResult(unittest.TestCase):
def setUp(self):
self.exc = xr.Success()
def test_docstring(self):
self.assertEqual("Function successfully completed.", self.exc.__doc__)
def test_construct(self):
self.assertEqual("Function successfully completed.", str(self.exc))
self.assertEqual("Bar", str(xr.Success("Bar")))
xr.exceptions.raise_on_qualified_success = False
self.assertFalse(self.exc.is_exception())
xr.exceptions.raise_on_qualified_success = True
self.assertFalse(self.exc.is_exception())
def test_methods(self):
self.assertEqual(xr.Result.SUCCESS, self.exc.get_result_enum())
xr.exceptions.raise_on_qualified_success = False
self.assertFalse(self.exc.is_exception())
xr.exceptions.raise_on_qualified_success = True
self.assertFalse(self.exc.is_exception())
class TestTimeoutExpired(unittest.TestCase):
def setUp(self):
self.exc = xr.TimeoutExpired()
def test_docstring(self):
self.assertEqual(
"The specified timeout time occurred before the operation could complete.",
self.exc.__doc__)
def test_construct(self):
self.assertEqual(
"The specified timeout time occurred before the operation could complete.",
str(self.exc))
self.assertEqual("Bar", str(xr.TimeoutExpired("Bar")))
def test_methods(self):
self.assertEqual(xr.Result.TIMEOUT_EXPIRED, self.exc.get_result_enum())
xr.exceptions.raise_on_qualified_success = False
self.assertFalse(self.exc.is_exception())
xr.exceptions.raise_on_qualified_success = True
self.assertTrue(self.exc.is_exception())
if __name__ == '__main__':
unittest.main()
| 33.574074
| 87
| 0.68781
| 214
| 1,813
| 5.588785
| 0.233645
| 0.08194
| 0.095318
| 0.095318
| 0.844482
| 0.844482
| 0.753344
| 0.753344
| 0.567726
| 0.508361
| 0
| 0
| 0.205185
| 1,813
| 53
| 88
| 34.207547
| 0.829979
| 0
| 0
| 0.575
| 0
| 0
| 0.125758
| 0
| 0
| 0
| 0
| 0
| 0.35
| 1
| 0.2
| false
| 0
| 0.05
| 0
| 0.3
| 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
|
1d556b6e441b9fa6e64609a094ce9c8e01b615da
| 106
|
py
|
Python
|
tests/conftest.py
|
thoughteer/edera
|
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
|
[
"MIT"
] | 3
|
2018-11-27T15:45:19.000Z
|
2018-12-21T20:32:10.000Z
|
tests/conftest.py
|
thoughteer/edera
|
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
|
[
"MIT"
] | 18
|
2018-12-02T18:38:59.000Z
|
2020-02-05T22:09:37.000Z
|
tests/conftest.py
|
thoughteer/edera
|
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
|
[
"MIT"
] | null | null | null |
import logging
import pytest
@pytest.fixture
def debugger(caplog):
caplog.set_level(logging.DEBUG)
| 11.777778
| 35
| 0.773585
| 14
| 106
| 5.785714
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141509
| 106
| 8
| 36
| 13.25
| 0.89011
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
1d7f851714c7842f0172053b4e32970dc8b4bcd2
| 229
|
py
|
Python
|
mmfashion/datasets/loader/__init__.py
|
aleksandrkrivolap/mmfashion
|
ca7f045d02db47b3d77fe15657fa0fddcadcb4ca
|
[
"Apache-2.0"
] | 1
|
2019-12-12T11:15:02.000Z
|
2019-12-12T11:15:02.000Z
|
mmfashion/datasets/loader/__init__.py
|
aleksandrkrivolap/mmfashion
|
ca7f045d02db47b3d77fe15657fa0fddcadcb4ca
|
[
"Apache-2.0"
] | null | null | null |
mmfashion/datasets/loader/__init__.py
|
aleksandrkrivolap/mmfashion
|
ca7f045d02db47b3d77fe15657fa0fddcadcb4ca
|
[
"Apache-2.0"
] | null | null | null |
from .build_loader import build_dataloader
from .sampler import GroupSampler, DistributedSampler, DistributedGroupSampler
__all__ = [
'GroupSampler', 'DistributedSampler', 'DistributedGroupSampler',
'build_dataloader'
]
| 28.625
| 78
| 0.803493
| 18
| 229
| 9.833333
| 0.555556
| 0.169492
| 0.59887
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117904
| 229
| 7
| 79
| 32.714286
| 0.876238
| 0
| 0
| 0
| 0
| 0
| 0.30131
| 0.100437
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
1d89849f8dcbc18d87523dc0272858cfa3b4e3cd
| 69
|
py
|
Python
|
ip_bot/handlers/join/__init__.py
|
DavisDmitry/ip-civsoc-bot
|
6f970d120f2010a282c6861a9944e9c2fc8ca66b
|
[
"MIT"
] | 2
|
2020-09-02T13:44:12.000Z
|
2020-11-19T10:50:59.000Z
|
ip_bot/handlers/join/__init__.py
|
DavisDmitry/ip-civsoc-bot
|
6f970d120f2010a282c6861a9944e9c2fc8ca66b
|
[
"MIT"
] | null | null | null |
ip_bot/handlers/join/__init__.py
|
DavisDmitry/ip-civsoc-bot
|
6f970d120f2010a282c6861a9944e9c2fc8ca66b
|
[
"MIT"
] | null | null | null |
from ip_bot.handlers.join import user_side
__all__ = ['user_side']
| 13.8
| 42
| 0.768116
| 11
| 69
| 4.181818
| 0.818182
| 0.347826
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 69
| 4
| 43
| 17.25
| 0.766667
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 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
|
d54ead05226a5e8b1133efbbeff893350176fc46
| 138
|
py
|
Python
|
2884/code.py
|
ToTo-Mo/BaekJoon
|
e7540448a810e350b461b1300dd47bda58bfcaeb
|
[
"Apache-2.0"
] | null | null | null |
2884/code.py
|
ToTo-Mo/BaekJoon
|
e7540448a810e350b461b1300dd47bda58bfcaeb
|
[
"Apache-2.0"
] | null | null | null |
2884/code.py
|
ToTo-Mo/BaekJoon
|
e7540448a810e350b461b1300dd47bda58bfcaeb
|
[
"Apache-2.0"
] | null | null | null |
hour,minute = [int(i) for i in input().split()]
hour,minute = divmod((hour * 60 + minute - 45),60)
print(23 if hour < 0 else hour, minute)
| 46
| 50
| 0.652174
| 25
| 138
| 3.6
| 0.64
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078261
| 0.166667
| 138
| 3
| 51
| 46
| 0.704348
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d54f43bec53317285dbf82f2ceda4cf8cd73ef42
| 93
|
py
|
Python
|
src/classes/boid.py
|
JackMcKew/boids_in_blender
|
b252a30277430556d50ff290791109d366114149
|
[
"MIT"
] | null | null | null |
src/classes/boid.py
|
JackMcKew/boids_in_blender
|
b252a30277430556d50ff290791109d366114149
|
[
"MIT"
] | null | null | null |
src/classes/boid.py
|
JackMcKew/boids_in_blender
|
b252a30277430556d50ff290791109d366114149
|
[
"MIT"
] | null | null | null |
class Boid():
def __init__(self, x,y,width,height):
self.position = Vector(x,y)
| 18.6
| 41
| 0.612903
| 14
| 93
| 3.785714
| 0.785714
| 0.075472
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225806
| 93
| 4
| 42
| 23.25
| 0.736111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
d5622b34ffc7dd4d784beeaa1778dc87ab1a2ba0
| 3,767
|
py
|
Python
|
.venv/lib/python3.6/site-packages/pyglet/media/__init__.py
|
FedericoFontana/ray
|
5a7feae15f8c74d5d196fea6697c1827008018f3
|
[
"Apache-2.0"
] | 3
|
2019-04-01T11:03:04.000Z
|
2019-12-31T02:17:15.000Z
|
.venv/lib/python3.6/site-packages/pyglet/media/__init__.py
|
FedericoFontana/ray
|
5a7feae15f8c74d5d196fea6697c1827008018f3
|
[
"Apache-2.0"
] | 1
|
2021-04-15T18:46:45.000Z
|
2021-04-15T18:46:45.000Z
|
.venv/lib/python3.6/site-packages/pyglet/media/__init__.py
|
FedericoFontana/ray
|
5a7feae15f8c74d5d196fea6697c1827008018f3
|
[
"Apache-2.0"
] | 1
|
2020-11-06T18:46:35.000Z
|
2020-11-06T18:46:35.000Z
|
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# * Neither the name of pyglet nor the names of its
# contributors may be used to endorse or promote products
# derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# ----------------------------------------------------------------------------
"""Audio and video playback.
pyglet can play WAV files, and if AVbin is installed, many other audio and
video formats.
Playback is handled by the :py:class:`Player` class, which reads raw data from
:py:class:`Source` objects and provides methods for pausing, seeking, adjusting
the volume, and so on. The :py:class:`Player` class implements the best
available audio device (currently, only OpenAL is supported)::
player = Player()
A :py:class:`Source` is used to decode arbitrary audio and video files. It is
associated with a single player by "queuing" it::
source = load('background_music.mp3')
player.queue(source)
Use the :py:class:`Player` to control playback.
If the source contains video, the :py:meth:`Source.video_format` attribute will
be non-None, and the :py:attr:`Player.texture` attribute will contain the
current video image synchronised to the audio.
Decoding sounds can be processor-intensive and may introduce latency,
particularly for short sounds that must be played quickly, such as bullets or
explosions. You can force such sounds to be decoded and retained in memory
rather than streamed from disk by wrapping the source in a
:py:class:`StaticSource`::
bullet_sound = StaticSource(load('bullet.wav'))
The other advantage of a :py:class:`StaticSource` is that it can be queued on
any number of players, and so played many times simultaneously.
pyglet relies on Python's garbage collector to release resources when a player
has finished playing a source. In this way some operations that could affect
the application performance can be delayed.
The player provides a :py:meth:`Player.delete` method that can be used to
release resources immediately. Also an explicit call to ``gc.collect()`` can be
used to collect unused resources.
"""
# Collect public interface from all submodules/packages
from .drivers import get_audio_driver
from .exceptions import *
from .player import Player, PlayerGroup
from .sources import *
# For backwards compatibility, deprecate?
from .sources import procedural
| 42.806818
| 79
| 0.743563
| 538
| 3,767
| 5.197026
| 0.479554
| 0.017525
| 0.008584
| 0.017167
| 0.08083
| 0.048641
| 0.048641
| 0.048641
| 0.048641
| 0.048641
| 0
| 0.002845
| 0.160074
| 3,767
| 87
| 80
| 43.298851
| 0.880847
| 0.936289
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d5692ef8d2ae45e219f4fb1ff5c4363f8bbbedaa
| 43,106
|
py
|
Python
|
episode_list_script.py
|
thatbirdguythatuknownot/sniplections
|
6fa5ddbede83e6657e09458a328eb28a17f4dc0c
|
[
"MIT"
] | null | null | null |
episode_list_script.py
|
thatbirdguythatuknownot/sniplections
|
6fa5ddbede83e6657e09458a328eb28a17f4dc0c
|
[
"MIT"
] | null | null | null |
episode_list_script.py
|
thatbirdguythatuknownot/sniplections
|
6fa5ddbede83e6657e09458a328eb28a17f4dc0c
|
[
"MIT"
] | null | null | null |
a='''Legend
Minor Moment- [MI]
Moderate Moment- [MO]
Major Moment- [MA]
Season 1
[MA+MO] In "Pups Save the Sea Turtles" Nearly from the beginning at the episode, Chase & Skye were both seen playing ball together until then Ryder calls them to come to the lookout for the mission and they were both running together to the lookout and were both laughing and giggling while looking at each other and while entering into the lookout doors. Later in Pups Save the Sea Turtles Chase says, "Poor Skye", then whimpers and covers his eyes, saying he can't watch. When he sees that she is ok, he tells her that he was worried about her, but then quickly tells her "Excellent flying!" and Skye is seen smiling back
[MO+MO] In "Pup Pup Boogie", Chase was sure to beat Skye. Chase then gets the steps incorrect and wrong so then he asks Skye how she does it right without making mistakes. Skye then teaches Chase how to do the steps and then they were both seen playing Pup Pup Boogie together and after they did the tailspin, they both bump into each other and falling to the floor and both howled and cheered after Ryder says they both reached to the next level of Pup Pup Boogie. Then they were both seen drinking water together in their bowls and then Chase looks and smiles at Skye while she is talking to Marshall and Rubble. After when Chase finishes his mission, he says he wants to boogie with Skye instead of "play" and they were both playing Pup Pup Boogie together while the others watch them.
[MO] In "Pups Fall Festival", When Zuma and Skye were rolling Pumpkins together, and Chase came to see if they needed any help, Chase only mentioned Skye's Name, then a few seconds later, he said "Pups".
[MI] In "Pups Save the Treats", Chase and Skye were both playing tag together at the beginning and the ending of the episode.
[MI] In "Pup Pup and Away", Chase and Skye stayed together at the lookout to watch the hot air balloon race and to see their balloon that Mayor Goodway and Ryder are riding in.
[MI] In "Pups Get a Lift", at the end of the episode, after Marshall and Cali crashed into the snow, we can see their snow-covered head with the shapes of Chase and Skye's heads.
[MO] In "Pups and the Ghost Pirate", when the pups are lined up, and before Chase can say, "Paw Patrol Ready For Action Ryder Sir", he was surprised to see Rocky's mustache on Skye's face then he whispers to hear about Rocky's mustache and after she got rid of it back onto Rocky's face, she smiles at Chase until Ryder calls out the mission.
[MO] In """Pups Save Christmas""", Skye lands on Chase's back when they enter the elevator
[MO] In "Pups Turn on the Lights" Skye was constantly worried (and the most worried) that she can't finish setting up Chase's surprise birthday party on time when she is the pup left in charge.
[MO] In "Pups Save a Pool Day" Chase wears Skye's bathing cap and looks at himself in a heart-shaped mirror. After Ryder calls them for backup, Rocky notices this then Chase denies it's hers. In the beginning, when all the pups are in the elevator, Chase was wearing it at first and no one, not even Skye notices.
[MI] In "Pups Save the Easter Egg Hunt", while the pups are singing in some moments, Chase and Skye look at each other smiling. Chase and Skye also look at each other at the end of the song.
[MO] In "Pups Save a School Day" Chase and Skye are the only ones who woke up early and then they try to wake others too. Chase finds little bit hard to wake them, to which Skye shows him and wakes others too.
[MA] In "Pups Save a Super Pup", in the end, while catching a frisbee, Skye lands on Chase's back and stays on him. They both smile at each other for a very long time, before Skye flips off Chase.
[MA+MI] In "Pups Save a Bat", in the beginning, Skye and Chase play tag together. tagging each other on the nose. At the end of "Pups Save a Bat"' they were both seen at the end of the episode standing next to each other and both asked Ryder if they can have a sleepover outside with the bat.
[MI] In "Pups Save a Toof", after Chase said his catchphrase all the pups including Skye start to mock of him because he lost a tooth and can not speak normally then he gets down because he is embarrassed.
[MA] In "Pups Save the Camping Trip" Chase worries for Skye twice. He is very relieved when Skye comes out of the crevice, exclaiming, "Yes! Skye’s okay! She’s okay!". When Skye says, "Aww...you were worried." Chase immediately tries to cover up by saying, "Uh, no I wasn't, I'm just...glad you saved Chickaletta!" He stumbles along with his words though, as he nervously covers up his sentence. Skye thanks him and says that it's very sweet.
[MO] In "Pups and the Trouble with Turtles" Chase and Skye look and smile at each other for a second. At the end of the episode, Skye looks at Chase when he says "one turtle is still missing", and when Skye is tickled by one of the turtles, all the pups laugh, only Chase smiles at her.
[MA] In "Pups and the Beanstalk" both Chase and Rubble worry about Skye. Chase is so worried he breaks down and cries but then barks in excitement when Skye comes down.
[MO] In "Pups and the Lighthouse Boogie" Chase smiles at Skye after she got off of him after they crashed when they're going up the elevator.
Season 2
[MA] In "Pups Save a Flying Frog" Chase is worried about Skye. When Skye finally manages to control her copter, Chase jumps into Ryder's arms and yelps "She made it!" When Ryder gives him a look, Chase jumps down and says "I knew she would", chuckling nervously.
[MO] In "Pups Save a Show" When Chase barked out his megaphone, Skye was smiling, glancing & admiring him. When Mayor Goodway called Chase "such a take-charge pup," Skye said "Too true" while looking and smiling at Chase.
[MA] In "Pups Save the Parade", Chase refers to Skye as the best of the parade. When Chase said a joke, Skye giggled and said it was very funny and also looking at him.
[MI] In "Pups Save a Talent Show" Chase whispers to Skye that Julia and Julias are doing good. Skye whispers back and says that they will win for sure
[MI] In "Pups Save the Diving Bell", at roll-call, when Rocky finishes talking, Chase and Skye look at each other, smiling.
[MI] In "The New Pup", Skye cheers on Chase.
[MI] In "Pups Jungle Trouble", Skye worries for Chase.
[MO] In "Pups Save a Basketball Game", after Marshall crashes into the elevator, Chase is lying on the floor with his head on Skye's head and going up in the evaluator, when Skye removes her head from Chase's, they looked pretty close to each other's faces.
[MO] In "Pups Save an Ace", Chase along with Rocky, whimpers for Skye when Ryder said Skye won't see where to land.
[MO] In "Pups Save a Wedding", when the farmer Yumi and AI kiss, Chase and Skye were the most emotional and the only ones really affected, Chase started to cry and Skye was about to faint while the other pups said nothing. At the end of the episode, Skye managed to catch the bouquet of flowers.
[MO] In "Pups Save a Mer-Pup" Skye mocks Chase when he says "I bet we're missing nothing", for not believing in the magical mer-pups. when Skye waves at Chase after when he looks back, he then sees Skye as a mer-pup and then faints in surprised and Skye is worried about him.
[MI] In "Pups Save the Fireworks" Skye was happy that she was working with Chase.
[MI] In "Pups Save a Sniffle", after Chase says his callout and then he sneezing, Skye looks at him with a sad face and after when Marshall tells Chase he got a cold,
[MO] In "Pups Save The Queen Bee", Pups were planting flowers and Chase said "I would plant flowers too, but...", and then Skye asked "But what, Chase?" looking concerned.
[MO] In "Pups Save an Adventure", Chase and Skye were talking about Rubble's cute sleep and said "Shh" to Marshall and Rocky so they would not wake him up.
[MO]' In "Pups Save a Big Bone" when Skye scored a goal, Chase yelled, "Goal!" and then both he and Rubble ran in circles around Skye repeatedly. And before crashing into the evaluator by Marshall, Skye was standing on Chase's back.
[MO]' In Pups Party with Bats, when Skye was going to drop bats near caves Chase said "Don't be late for the party". Skye replied "Miss the boogie! No way".
[MA] In "Pups Save Skye" Chase is beside himself with worry about Skye. He was biting his lips in very nervous. He also nervously mutters "Pick me!" and gets excited when Ryder picks him on the mission to save Skye. Also at roll-call, when Rubble says "Poor Skye", Chase is panicking in the background. (Biting his 'lip' and moving his eyes.) Chase was also very impatient and determined to save Skye, continuously urging Ryder to hurry.
[MA+MI] In "Pups Save an Eagle" Chase is very worried for Skye. He was thinking about Skye during the whole mission, saying things like "Good thing Skye's not here. Hearing that eagle wouldn't make her happy either." Chase also said "She's not going to like it" when Ryder said he needed Skye to rescue the eagle. Chase worried for Skye, saying "Careful Skye!" and whimpering when Skye is near the eagle. Near the end of the episode when Skye thought of how cute the baby eagle are, Chase said "Cute?"
[MO] In "Pups Bark with Dinosaurs", Chase said: "Leave her alone!" at the pterodactyl mother to leave Skye alone. Skye thanked Chase after that, giving him a nice, relieved smile.
Season 3
[MO+MI] In "Pups Save a Tightrope Walker" When Chase arrives at the bridge, Skye looks back smiling at him, happy to see him there. Chase then walks up to Skye and asks her what Francois is wearing. Chase and Skye both cheer for Francois by dancing and singing together. At some point, they leaped and landed next to each other and looking into each other's eyes.
[MO+MI] In "Pups Save the PAW Patroller", while Chase and the pups walk back to cleaning the PAW Patroller to realize it's gone, Skye looks at Chase, smiling when Chase says "those kittens make me so mad". At the end of the episode, Chase wants to watch Apollo with Skye while Mayor Humdinger is cleaning the PAW Patroller, maybe because he wanted to stay with Skye.
[MI] In "Pups Save The Film Festival", Skye apologized to Chase when she couldn't get the Scene for the Movie right cause of a Seagull, And Chase said "it's Okay, let's just keep trying so we can finish our Movie in time".
[MI] In "Air Pups", when Chase is commanded by Ryder to save Marshall by using his new air glider, Skye is seen worried about him (along with the others). When Skye and the others look up at the bridge to see Chase standing on top and when Chase looks like he was about to fall, Skye and the others were shocked. Chase succeeds in saving Marshall, Skye looks relieved and then compliments him by saying “Coming in for a perfect landing!â€.
[MA+MA] In "Pups Save Friendship Day", in the beginning, Chase and Skye sing some lyrics of the Friendship Day song together, twice. The lines they said were "Bossom buddy of mine" and "companion too". Not only did they sing 2 lines together, but they were also the only duo to sing a line together in the song at the beginning. At the the end, Skye looks up at Chase while singing and then nuzzles Chase and Chase looks down at her in shock and surprise.
[MI] In "Pups Save a Dragon" Skye is happy to work with Chase.
[MI] In "Pups Save a Monkey-naut", Chase cheered on Skye the most when Ryder called her to save Rocky.
[MO] In "Pups Save the Songbirds", at the end of the episode, Chase was worried about Skye, after Skye back with the Songbirds, only Chase bark with excitement.
[MI] In "Pups Save Sports Day", in the end, when they get their medals, Chase and Skye look at each other, smiling.
[MO] In "Pups Save the Mayor's Tulips", after Ryder gives Chase "Officer Bear", who plays a song and Chase rubs his cheek on it, Skye giggles and Chase says "But he's for babies", pushing him away like he doesn't want to be embarrassed. Then when Skye approached Officer Bear, Chase warned her to slowly step away from his toy.
[MI] In "All Star Pups!", Chase cheered Skye.
[MO] In "Parroting Pups", only Chase thanked Skye for the water she brought for the pups.
[MO] In "Pups Save Their Floating Friends" When Chase is floating in the Air Patroller, Skye pushes at the back Chase to help him get going with the mission.
[MI] In "Pups Save a Satellite", when Skye arrives at the satellite, Chase, Marshall, and Zuma go "Phew!" in relived.
Season 4
[MI] In "Pups Save the Chili Cook-off", At the beginning and at the end of the episode, Skye looks at Chase, smiling, as he sings with Rubble.
[MO] In "Mission PAW: Quest for the Crown" Skye wears Chase's bowl as crown and says that protect it. Chase reply that he will (he also calls her princess Skye). In the meanwhile when Chase is lost, all pups including Skye start worrying about him.
[MI] In "Pups Save the Carnival", while Ryder was calling Rubble to help, Skye was staring at Chase with a subtle look.
[MO] In "Mission PAW: Royally Spooked" Chase and Skye look at each other and both hopped onto Ryder together when they see a shining knight who is controlled by Sweetie.
[MI] In "Pups Save a Ferris Wheel", Chase and Skye ride the Ferris wheel together, along with Marshall, saying "weeeee".
[MA] In "Mission PAW: Pups Save the Royal Throne" Chase calls Skye "M'lady" , she and him giggles to this. Also, Chase is the only one winking to Skye
[MO] In "Pups Save a Flying Kitty" Chase says "Great flying, Skye!" and Skye giggles along with this and looks back at him.
[MO+MI] In "Pups Save Sensei Yumi", When Chase crashed into the Pups in the Elevator, As the Elevator went Up, Skye and Chase looked at each other, and had wide Smiles on their Faces. At the end of the episode, when the pups are in a pile before the screen cuts to black, Skye and Marshall both stare at Chase, smiling.
[MO] In "Sea Patrol: Pups Save a Baby Octopus", Chase and Skye were chosen to be lifeguards and they were both surprised to see that the beach tower turns into a boat and both howled in cheered.
[MI] In "Pups Chill Out" when Skye successfully caught Mayor Humdinger, Chase immediately praised her.
[MI] In "Pups Save Farmer Alex", in the elevator, when Chase was asking where Marshall was, Skye was staring at him. Then when the elevator doors close, they both look at each other.
[MI] In "Pups Save a Space Rock", After Rubble and Marshall push the rock to show the others and the camera cuts to the others, Chase and Skye are seen smiling at each other.
[MI] In "Pups Save the Mail", at the beginning of the episode, Chase says "There's only one thing better than going to the jungle." and Skye asks him "What's that?" in a curious tone.
[MI] In "Pups Save the Cat Show" Skye is been impressed by Mayor Humdinger's cat and said to Chase "Even I can't do that many flips."But then Chase said back to her "Yeah, but there's something kind of not sneezy about that cat. Not a sniffle."And after that Skye looked at him with a concerned look. At the end of the episode when pups took a photo with Cali, Chase and Skye are seen pretty, very close to each other's faces.
[MI] In "Pups Save the Shivering Sheep", before the pups hit the logo, Chase and Skye look at each other.
[MI] In "Pups Save Chicken Day", Skye is the only one and the only pup to congratulate Chase for his chicken dance.
[MO] In "Pups Save a Teeny Pengiun", Chase and Skye are watching the butterflies together and saying their colors.
[MO] In “Pups Save Daring Danny’s Hippoâ€, When the camera cuts to the pups as Danny leaves, Chase and Skye are seen smiling at each other in their normal pup playing positions. Skye the same looks at Chase while he was talking to Rubble of how hippos make sounds.
[MA+MA] In "Sea Patrol: Pups Save Puplantis", When Chase vows to stay behind and keep an eye on Sid's ship, Skye says "But you'll miss out on the Sub Patroller too!" in a concerned and a sad way. Chase then says afterward, "I really want to go with you." facing towards to Skye's direction, speaking to her but says it's his responsibility to stay behind. Later in the episode when Chase turns into a mer-pup, Skye says "Look, Chase finally got his fish tail!" in an very excited way very and giggling way too.
Season 5
[MI] In "Pups Save the Kitty Rescue Crew" Skye has to make an obstacle course, while Chase is watching her all the time, he continues to do so after the circuit finishes.
[MI] In "Pups Save a High-flying Skye", Chase was concerned for Skye all the time she was in trouble, he was sad when Ryder speaking to Skye on his pup-pad. At the beginning of the episode, Chase working with a safe and focused attitude on the mission, but when Skye was in trouble, he looked very concerned. During the time that Skye is in trouble, Chase is not happy or excited. Chase is the only one looking at the sky to see if Skye is coming.
[MO] In "Pups Save an Underground Chicken" When Ryder calls for Chase & Skye for the rescue, they said together "Sure thing, you can count on us".
[MO] In "Pups Save a Cat Burglar", at the end of the episode both Chase and Skye caught a pie together with smiles on their faces, maybe they will share it together.
[MO] In "Ultimate Rescue: Pups Save the Royal Kitties" Skye was the most excited to work with Chase to help him solve the case. Chase also warned Skye about the lights before she crashed into them and on the ultimate police vehicle, they were both sitting to each other while Chase drives.
[MO] In “Pups Save a Popped Top†Chase was depressed that his megaphone couldn’t scare away the crows, wearing a sad face until Skye said she’d help him out, scared the birds, and the camera cuts away to Chase smiling.
[MA] In “Pups Save the Snowshoeing Goodways†Chase tagged Skye’s nose for the second time in the series after playing freeze tag.
[MO] In "Ultimate Rescue: Pups Save the Tigers" Skye is been standing on top of Chase to help the kite down from the tree.
Season 6
[MO] In "Pups Save a Cow", when Marshall said "Both Cows are okay", Chase and Skye looked at each other in Surprise and said "Cows?".
[MI] In "Mighty Pups, Super Paws: Pups Save a Giant Chicken" When Chase, Marshall, Skye and Zuma built a puppy bell tower, Skye was standing on Chase, while ringing the same bell.
[MI] In "Mighty Pups, Charged Up: Pups vs. the Copycat" Chase and Skye are seen in the background playing together while waiting for the meteor shower.
[MO] In "Pups Save a Farmerless Farm" Chase and Skye were team captains for the soccer game in the beach. Skye jumped on Chase's back, Chase smiled at Skye, they stay behind to help Mayor Goodway into cleaning up the chicken feed.
[MI] In "Pups Save Breakfast" Chase and Skye have been catching bowls together.
[MO] In "Pups Save a White Wolf" Chase suggested a Game for the Pups to play, where they make up a story, and each Pup says one Line of the Story, and while looking at Skye, Chase said: "Once Upon a Time, there was a Magical Pup". Skye was also probably thinking about Chase when she said her line that the Pup had a lot of Allergies.
[MI] In "Ultimate Rescue: Pups Save The Opening Ceremonies", Chase and Skye competed against each other.
Season 7
[MO] In "Mighty Pups, Charged Up: Pups Stop a Humdinger Horde" Chase asks Skye to play the mirror game (Chase and Skye are Partners for this game), copying each other moves (Silly faces, wagging their tails, looking each other, backflip to which chase fallen). Chase compliments Skye for being a good Mirror to which Skye said "Thanks". And when Chase tries to copy Skye's flip, he falls and says "And I'm like a broken mirror", then Skye and the others laughs of what Chase said.
[MI] In "Pups Save a Waiter Bot" Pups were playing charades, and when Skye was pretending to play basketball, Chase thought that she was petting a bunny.
[MI] In "Dino Rescue: Pups and the Big Rumble" Skye is been part of team Chase when Pups played tug of war.
[MO+MI] In "Ultimate Rescue: Pups Save the Pupmobiles" Chase and Skye had some good teamwork moments here. When Ryder said that Chase needs to stop the pursuit because of all junk on the road that can cause an accident, Chase told Skye to keep Sid in a site, which Skye replied to that Chase can count on her. When Crab in Skye's stolen copter tried to slow down Chase, Skye told "I've got this Chase!". After Skye successfully stopped the crab, Chase complimented her saying "Excellent work, Skye!" with a smile on his face.
[MO+MI] In "Pups Save the Chalk Art" Julia and Julius draw a big drawing outside of City hall. They drew pups in order: Marshall and Rubble, Chase and Skye, and Zuma and Rocky, with even one heart between Chase and Skye. Also, after Skye successfully attached her harness to Alex, Chase said "Skye did it!"
[MI] In "Pups Save the Hot Potato" Near the end of the episode, after the Spud declared Farmer Al's potato "one of the vegetable wonders of world", Skye was looking at Chase probably because she wanted to see his reaction to the fireworks and confetti.
[MO+MI] In "Pups Save a Kooky Climber", Near the start of the episode, pups played with the "balance board" and when it was finally Skye's turn, Chase was been pretty impressed because Skye was pretty good. Also, Skye was trying to rescue Danny but her harness got stuck up on the tree, so Chase freed her harness and Skye thanked him.
[MI] In "Pups Save Queen Cluck-Cluck" , In The beginning of, Skye is been part of team Chase when the Pups were playing Volleyball at the beach. Also, when Skye hit the ball with her nose Chase said "way to keep your nose on the ball Skye."
[MI] In "Pups Save the Game Show", When Chase Herded the Lambs, Skye said. "Wow, Chase is Great at that"
[MI+MI] In "Ultimate Rescue: Pups Stop a Junk-Monster", Chase and Skye had a few good teamwork moments in this episode
[MO] In "Moto Pups: Pups Save a Sneezy Chase", In the lookout, while pups were lining up for the mission, Skye said "PAW Patrol ready for action Ryder sir! Well... except for Chase" looking worried.
Specials
[MA+MI] In "Mighty Pups", Chase and Skye can be seen together most of the time, when Ryder is captured by Harold, Chase and Skye are on the same monitor, Skye is the first to encourage Chase for his leadership role, to the end of the episode Chase and Skye work together to stop Harold's robot falling from the sky while the other pups watch them. And when Ryder comes out, Skye smiles at Chase when he runs up (Super Speed) towards him.
[MI] In "Ready Race Rescue", Chase and Skye were both seen working together to help the racers get back into the race.
[MO] In "Jet to the Rescue", Near the beginning of the special, after Duke's eagle scared Skye, Chase asked her "Are you okay Skye?" looking worried. After that when Ryder says that Skye is going lead, Chase is the most excited pup and he says "Pawsome" and he also says "go Skye" along with Rocky and Rubble.
Shorts
[MI] In "PAW Patrol Original 5s: Dino Rescue: Pups Save a Tyrannosaurus' Birthday" In the ending while Chase is singing "Happy first birthday, Tyrese" Skye is smiling at him.'''
b='''Legend
[MI] - Minor Moment
[MO] - Moderate Moment
[MA] - Major Moment
Season 1
[MO] In "Pups and the Ghost Pirate", When pups line up for the mission, Chase points Skye that she has his mustache, as Skye blew it back on Rocky's face. At the end, when all are having fun in party, Skye ask " I am a princess, where is my prince charming? Then Rocky runs towards Skye and barks excitedly.
[MI] In "Pups Save the Easter Egg Hunt", when the pups dance with Skye on Pup Pup Boogie, Rocky dances next to Skye.
[MI] Later, after Rocky gets Sprayed by Marshall's Paint Cannons, Skye says "Rocky, those Colours look EGGcelent on you", and he replied "Pink and Yellow doesn't work for this Fellow".
[MI] And later, when Skye was scouting the air to Rescue Rocky, Rocky said "Look Chickaletta, Skye is here to save us".
[MA] In "Pups Save a Toof", when the pups are waiting for Chase and Alex, Skye falls asleep on Rocky. Marshall showed the face of surprise when he saw the two.
[MO] In "Pups Save the Camping Trip", Rocky and Skye go on a camping trip together, along with Mayor Goodway. They also work together to pick up leaves and sticks for a fire. While camping, when Rocky has trouble unfurling the sleeping bag and goes down, they hit a tree, Skye seems concerned.
Season 2
[MI] In "Pups Save Jake", Skye plays tag with Rocky.
[MA] In "Pups Save the Parade", Rocky agreed to help Skye fly in the parade. Skye seemed overjoyed and Rocky felt good. Several times, Rocky reassures Skye or they smile together in this episode.
[MA] In "Pups Save the Parade", Rocky says to Skye, "Don't worry." And he puts his paw on Skye causing her to jump of joy.
[MO] In "Pups Save the Parade", when Rocky is finished with fixing Skye's helicopter, while flying away she smiles at him and say's "see you at the parade!".
[MO] In "Pups Save an Ace", Ace shows Skye drive Ace's plane, and Rocky says about Skye, "Wow! She's so good!".
[MI] In "Pups Save an Ace", Skye is lowering Ace out of her plane and Rocky smiles and says, "Here comes Skye!".
[MI] In "Pups Save an Ace", when Ryder says "Skye I don't want to see where to land", Rocky groans.
[MO] In "Pups Save a Wedding", Rocky sat next Skye and looked at Skye.
[MI] In "Pups Save the Deer", Rocky slides on ice with Skye.
[MI] In "Pups Save a Merpup", Rocky is a mer pup together with Skye.
[MO] In "Pups Save a Merpup", While Rocky is sitting in the little boat, he is surprised as Skye shows up to get him for help.
[MO] In "Pups save a Merpup", In the end of the episode Skye asks Rocky if he wants to join her and Zuma by going for a last swim with the merpups.
[MI] In "Pups Save a Sniffle", When Skye sneezes Rocky looked sad.
[MI] In "Pups Save Skye", Rocky seemed sad.
[MO] In "Pups Save The Woof and Roll Show", Skye giggled to what Rocky said, when Rocky talked about Rubble Sleep Eating.
[MI] In "Pups Save The Queen Bee", Skye modified her catchphrase saying: "This puppy's got to bzzz" while making a funny impression of a bee, making both her and Rocky laugh.
Season 3
[MO] In "Pups Save Friendship Day", Rocky and Skye work together and hold up a string of paper pups. They smile at each other.
[MO] In "Pups Save a Monkey-naut", Skye saved Rocky, when he was about to fly away to space.
[MO] In "The Pups’ Winter Wonder Show", Rocky and Skye play music next to each other and smile at each other.
[MA] In "Pups Save a Plane", Skye winks at Rocky.
[MO] In "Pups Save a Plane", While focusing on the job of repairing the wing, he was countinuesly looking at Skye.
[MO] In "Pups Save a Plane", After Rocky fixed the wing of the plane, Skye says: "It works! Thanks Rocky!".
[MI] In "Pups Save a Satellite", Rocky, Marshall, and Chase do "Phew!", when Skye managed to fix the satellite.
Season 4
[MO] In "Pups Save a Wild Ride", Rocky and Skye play Pup Pup Boogie together.
[MO] In "Pups Save a Wild Ride", Rocky and Skye are working together, and Skye saves Rocky.
[MO] In "Pups Party with Bats", while dancing to Rubble's music, they give each other a smile.
[MI] In "Sea Patrol: Pups Save a Baby Octopus", Skye seems concerned about Rocky not getting his Sea Patrol badge because he is afraid of water.
[MA] In "Sea Patrol: Pups Save a Baby Octopus", Rocky faces his fear and dives underwater to find a rattle for a baby octopus. When he finds it, Skye says: "You found it! You're amazing!" Rocky shyly responded with: "Hey, it's just water."
[MI] In "Pups Save a Good Mayor", Rocky and Skye work together to pack Mayor Goodway’s backpack.
[MO] In "Pups Save a Cloud Surfer", Rocky and Skye work side by side to save Daring Daring Danny X.
[MO] In "Pups Save Chicken Day", Rocky and Skye danced next to each other in the background.
Season 5
[MI] In "Sea Patrol: Pups Save A Wiggly Whale.", Rocky took a picture of Skye alone.
[MO] In "Rocky Saves Himself", Skye looked sad alot. When they reached the top of the Lookout, Skye looked sad to where Rocky should be standing.
[MI] Later, When Skye said "I see a lot of Islands and Water, but no Rocky". She had a Sad and Worried Expression on her Face.
[MO] In "Pups And The Werepuppy", when Rocky went Missing in his Dream after turning into a Werepuppy, Skye was worried.
[MO] In "Pups Save a Pluck-O-Matic", When crashing in Air Patroller before mission, Skye ends up having her paws on Rocky's paws for certain period of time.
[MO] In "Pups Save a Pluck-O-Matic", Rocky and Skye are saving Chickaletta together.
[MO] In "Pups Save a Pluck-O-Matic", Skye holds on to Rocky's backpaws and flys him to the Pluck o' matic. Rocky seemed to show a face of surprise.
[MA] In "Pups Save a Pluck-O-Matic", Rocky scratches Skye's itch with Pluck o' matic.
[MI] In "Pups Save Ace’s Birthday Surprise", Rocky helps Skye fix an old broken down car for Ace’s birthday surprise.
[MI] In "Pups Save Ace's Birthday Surprise", Rocky and Skye heard Mayor Humdinger Yell, and they couldn't recognize his Voice at first. Rocky said he didn't see anyone, But Skye said she heard it, and that there has got to be someone around there. They returned back, and Skye said I guess it was nothing. That's when they realized the car was gone.
[MI] In "Pups Save Ace’s Birthday Surprise", Rocky and Skye work together to save Mayor Humdinger.
Season 6
[MO] In "Pups Save The Honey", near beginning, Rocky was planting a Sunflower, and Skye complimented him, saying "Wow, that's A Great Sunflower Rocky, you really have a Green Paw". And Rocky said Thanks. Then, Rocky and Skye both shushed a bird away when it was standing on top of the Flower, and they both Rested together a bit right before the Scene Changed.
[MI] Then later, Rocky talked to Skye on the Phone, saying that she could use his Sunflower, and she asked "Are you sure about that Rocky?" And Rocky responded, "Of course, I can always Grow another one, I have a Green Paw"
[MO] In "Pups Save a Roo", Rocky complements Skye in playing leapfrog, he sais: "Wow! You're the best hopper ever Skye!" and Skye says " Thanks Rocky! I bet you’re pretty good at leapfrog too".
[MA] In "Pups Save a Roo", Ryder needs both Rocky and Skye at the gorge too. After they have arrived, Hops jumps onto the bridge and the kangaroo baby falls into the gorge. Chase shoots his net and the roo baby falls into it and bounces up again. Rocky jumps up real high with a basket too save it and Skye says, "Nice catch Rocky! I guess you’re the best jumper now!" And Rocky smiles at Skye and wags his tail for a while.
[MI] In "Mighty Pups, Charged Up: Pups vs. the Copycat", Rocky and Skye charge up together.
[MI] In "Mighty Pups, Charged Up: Pups Stop a Big Bad Bot", Rocky and Skye charge up and smile at each other.
[MO] In "Mighty Pups, Charged Up: Pups Save a Mega Mayor", In the end of the episode, Skye was leaning very close to Rocky when they laughed at Mayor Humdinger.
Season 7
[MI] In "Dino Rescue: Pups Save a Pterodactyl", Rocky and Skye worked together to fix hot air balloon.
[MA] In "Dino Rescue: Pups Save a Pterodactyl", Skye said to Rocky "Come on Rocky, you can do it!" and winked at him.
[MI] In "Pups Save The Big Bad Bird Crew", while Rocky said "Mr. Wingnut has a few other Animals, I am sure they would like to meet Myrna", Skye was smiling at Rocky.
[MI] In "Pups Save The Soapbox Derby", While Skye helped Rocky set up Alex's Soapbox, Skye and Rocky smiled at each other.
[MI] In "Pups Save The Game Show", After Marshall crashed into the Pups, and they went up the elevator, Rocky and Skye Smiled at each other, with Marshall appreciating it.
[MO] In "Pups Save a Bah Humdinger", Rocky and Skye decorated the Christmas tree together.
[MO] In "Pups Save The Royal Armour", Rocky and Skye can be seen Bonding a lot during this Episode, and playing Pup-Inator With Ryder before the Emergency Call came.
[MI] In ""Pups Save The Royal Armour", Rocky and Skye said that they both love space.
[MO] In "Moto Pups: Pups Save The Donuts", After Skye tried to take the donut mashine from ruff-ruff pack and got dizzy from a donut spin that ruff-ruff pack performed, Ryder and Rocky hurried to her and Rocky asked her if she is alright, being worried, and Skye responded with "I'm fine"."
[MI] In "Pups Save A Whale Pod", After The Whale Splashes Rocky For The Second Time And He Says "What A Silly Whale" Skye Says "You Know What Else Is Silly? That!" Pointing At The Littered Beach She Continues With. "We Cleaned The Beach Just A Little While Ago." Then Looking At Rocky With A Frown.
[MI] Later, Skye asked Rocky "What are we going to do with all the Trash we picked up?" And Rocky replied back, "Easy, I'll Upcycle it to Reusable Water Bottles."
Specials
[MI] in "Jet To The Rescue", Rocky along with Chase and Rubble said, "Go Skye!".
[MO] In "Mighty Pups" Skye put her paw on Rocky's, when Captain Turbot said that the meteorite gave them power.
[MI] In "Paw Patrol: The Movie - Japanese Teaser Trailer", in one scene, team was running somewhere. Rocky and Skye were running side by side, separately from the rest of the team, while looking at each other.
[MO] In "Paw Patrol: The Movie - French Teaser Trailer", while the rest of the pups were exploring the new environment, Rocky and Skye stood alone in the background, watching the sky together.'''
c='''Legend
[MI] - Minor Moment
[MO] - Moderate Moment
[MA] - Major Moment
Season 2
[MO] In "The New Pup", Marshall is the first one on take care of Everest, covering her (and Jake) with a blanket. Marshall gives Everest some treats. After a moment, he hears that her stomach growls and gives her another treat. When Everest stomach growls and Marshall asks "What is that? Is that a bear/storm?" Then Everest comforts him saying "It's my tummy. I'm hungry." Both of them smile and laugh at each other, Marshall gives her a treat twice after hearing her stomach growl again. When Jake is talking, Marshall and Everest stare and smile at each other. Marshall almost immediately offers her get more marshmallows after her stomach growls, making Everest gives him a dreamy look on her face when he goes to grab them for her. Everest helps Marshall after he tripped over the table where the marshmallows he was getting for her were and yelled, "Best rescue ever.".
[MI] In "Pups and the Big Freeze", Marshall and Everest see Zuma, Skye, and the others then we can see both of them stare and smile at each other before Marshall makes an ice slide for her. Marshall makes Everest an ice slide with his water cannon. And she's the only one using it. When Marshall said "I know what we need" referring to all pups but Everest is the only one using it.
[MI] In "Pups Save a Deer", Marshall and Everest help a baby deer to his family.
Season 3
[MI] In "Pups Bear-ly Save Danny", when Everest tries to give the bears honey to go back to their cave, Marshall says "Those bears are getting awfully close to Everest!" with a worried expression. Everest comes back from throwing the honey jar on the bear's cave, and the first thing they do is look at each other the entire scene.
[MI] In "All Star Pups!" Everest sees Marshall's training and reacts kindly when Marshall fell and failed to pass the ball. Marshall says "Wow, Everest!" when she was doing a trick on the ball and then passing it to him. Both stare and smile at each other eventually.
[MA] In "Pups Save Sports Day", When Everest arrived with her Snowmobile, Marshall was creating a snowboard slide specifically for Everest, she jumped out of her Snowmobile and looked at what Marshall was creating for her, she was approached Marshall, then Marshall looked at her with a smile, then Everest says with little jumps, "That is the nicest thing anyone's done for me! Ever! Ever!!! Thank you! Thank you!!", she said very happy and excited by what Marshall was doing just for her, when she was talking she stopped jumping and looked at him with a loving look then continued talking looking at him, they were looking at each other very closely, Marshall was looking at her with a big smile and Everest was looking very lovingly at him. In the end of the episode when the pups get their medal, Everest was looking at Marshall and smile.
[MA] In "Pups Get Skunked" They are seen talking and walking together from the rest of the pups and stare and smile at each other. Marshall said "Find anything, Everest?" and when Everest gets skunked, Marshall asks "Want to drink, Everest?" and sprays water on her but failed and Everest replied with "No, thanks, Marshall" then both of them smile at each other (until Marshall sneezes).when Everest claims that she doesn't need a bath, Marshall says "But it make me into a big...", sneezing afterwards. Everest seems to be worried about him and agrees then to take a bath after all. Everest sees that Marshall is not comfortable with the skunk and offers herself for the skunk mission instead of Marshall because of his allergy to the smell. After it, Marshall thanks Everest and she winks at him in response (Even though he was needed after it regardless for backup.).When Marshall is on the missions of getting out a spike on the skunk feet, Everest stares at him gently and push him playfully then said "Let me do this" (so Marshall would not go near the skunk and sneeze).
[MI] In "Pups and a Whale of a Tale", at the end of the episode, Everest playfully tags Marshall and both go to play together in the ice. When Everest tags Marshall, at first Marshall seems shocked but then quickly turn to happy and they stare and smile at each other happily.
Season 4
[MI] In "Pups Save a Wild Ride" Everest is trying to play Pup Pup Boogie, but she trips and bumps into Marshall. She then apologizes and explains how she isn't good at Pup Pup Boogie looking down at her feet in embarrassment. Marshall smiles at her and comforts her, saying "It's OK, Everest. You'll get it" And Everest gives him a small smile in return. When Everest is wearing the bracelets and dance on the Pup Pup Boogie game, Marshall said "You're doing it, Everest!" complimenting Everest.
[MO] In "Pups Save Sensei Yumi", when Ryder said "Marshall is in trouble!" contacting Everest to help then Everest is shocked because Marshall is in trouble and determined to save him. Everest's quote is: I would never miss a rescue, especially if it's for Sensei Yumi and Marshall! Everest gets sad after Ryder commands Skye to land and not rescue Marshall because of the storm and asks "But how do we get down to Marshall?". Everest exclaims "You are good!" about Marshall's skills in Pup-Fu. After it both smile at each other.
[MI] In "Pups Save a City Kitty", Marshall suggest giving all credit to Everest in saving Cali. Marshall said "Thanks Cali, but it's really Everest who saved you!" to Cali then Cali goes to Everest. Marshall and Everest are eating together and Marshall is staring at her with a big smile and his eyes opened wide as she says "Hey everybody, let's dance." When Ryder, Katie and the pups are pulling the rope together, Marshall and Everest are seen pulling it and they are so close.
Season 5
[MI] In "Pups Go for the Gold" when Everest arrives at the beavers' dam with Uncle Otis Goodway, Marshall is happy to see her and stares at her. Later they are seen driving next to each other and Everest stands next to only Marshall for the rest of the episode.
Season 6
[MI] In “Mighty Pups, Super Paws: Pups Stop Harold's Deep Freeze", the Pups were playing freeze tag that was Everest's favorite game, after a while, Marshall was frozen by Chase, then Everest runs to Marshall saying 'Sorry Marshall, no moving until someone unfreezes you', then she is looking and smiling at him while walking while he is also looking at her, then Everest touches him and says 'There, now you are unfrozen and unitched too' she said while scratching Marshall's ear, and looking at him while talking and smiling at him, she scratched his ear and laughed until the end of that scene, and it looked like Marshall was enjoying her scratching on his ear and he was smiling.
[MI] In "Pups Save the Bears", Ryder calls just Everest and Marshall (despite Rubble being with the two) to come see Rocky's fort. Marshall replies back that she was teaching him to use her rocket powered snowboard.
Season 7
[MI] In "Pups Save Uncle Otis from His Cabin", Marshall and Everest are standing next to each other while looking through the cabin window for Rocky and Uncle Otis. Marshall and Everest (along with Rocky) work together to save Uncle Otis.
Season 8
[MI] In "Pups Save a Snowbound Cow", after Jake said that Everest could be the best instructor ever, Marshall can be seen snowboarding, as he said: "I'm a pretty good snowboarder, but i can probably use a few tips myself." Everest saw that Marshall is going to hit the tree, so she said: "Like... Watch out for that tree..?" Marshall in a hurry said "Where?" As he barely dodged a tree, falling off from snowboard, into the snow. Then Marshall chuckled and said "You ARE good!" As everyone laughed.
Specials
[MI] In "Mighty Pups", Everest can be seen looking at Marshall several times in the lookout. They also stand next to each other closely and can be seen with each other mostly.(Trailer+Intro), Everest and Marshall are looking and smiling at each other excitedly. When Marshall gets clumsy on the lookout launcher, when the other pups call out to him to look out, Everest can be seen looking at the other pups like she feels bad for them, but does NOT call out to Marshall. (This may be a sign of embarrassment)
[MI] In "Jet to the Rescue" (on Princess' birthday trailer), Marshall and Everest are seen doing acrobatics together with their jets.'''
from difflib import get_close_matches
from re import compile
def find_titles(a, episode_name):
ap = compile(r'\[(M[OIA](?:\+M[OIA])?)\] In (?:"""|")(.*?)(?:"""|")(.*?)\r?\n(?:\[(M[OIA](?:\+M[OIA])?)\] (?!In)(.*?)\r?\n)*').findall
ad = {}
for x in ap(a):
key = x[1]
if x[1] in ad:
ad[key].append((x[0], x[2]))
else:
ad[key] = [(x[0], x[2])]
if len(x) > 3:
x = x[3:]
for n in range(0,len(x),2):
ad[key].append((x[n], x[n+1]))
try:
return ad[episode_name]
except KeyError:
print(f"No exact matches found for '{episode_name}'.")
close_matches = get_close_matches(episode_name, ad.keys(), cutoff=0.8)
if len(close_matches) == 1:
close_match = close_matches[0]
print(f"A correction might be: {close_match}")
return ad[close_match]
elif close_matches:
print(f"However, there are some close matches: {', '.join(map(repr, close_matches))}")
return tuple()
def fall(episode_name):
print("a:\n")
print(find_titles(a, episode_name))
print("b:\n")
print(find_titles(b, episode_name))
print("c:\n")
print(find_titles(c, episode_name))
| 160.245353
| 1,078
| 0.752587
| 7,937
| 43,106
| 4.09084
| 0.167192
| 0.025501
| 0.03665
| 0.022175
| 0.170162
| 0.111121
| 0.064985
| 0.038837
| 0.017001
| 0.012504
| 0
| 0.001088
| 0.190043
| 43,106
| 268
| 1,079
| 160.843284
| 0.927393
| 0
| 0
| 0.111111
| 0
| 0.67433
| 0.970119
| 0.002529
| 0
| 0
| 0
| 0
| 0
| 1
| 0.007663
| false
| 0.003831
| 0.007663
| 0
| 0.02682
| 0.034483
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d588748adc1dc3bd074e378f19971f510eb5303d
| 171
|
py
|
Python
|
Website/website/model/__init__.py
|
uLLeticaL/Saloon.tf
|
2ea9ea972931a5cad278bfdd9228d0b415d4f073
|
[
"MIT"
] | 1
|
2022-03-30T06:28:25.000Z
|
2022-03-30T06:28:25.000Z
|
Website/website/model/__init__.py
|
uLLeticaL/Saloon.tf
|
2ea9ea972931a5cad278bfdd9228d0b415d4f073
|
[
"MIT"
] | null | null | null |
Website/website/model/__init__.py
|
uLLeticaL/Saloon.tf
|
2ea9ea972931a5cad278bfdd9228d0b415d4f073
|
[
"MIT"
] | null | null | null |
"""The application's model objects"""
from website.model.meta import Session, Base
def init_model(engine):
"""Use Daemon's model instead of initializing a new one"""
| 28.5
| 62
| 0.736842
| 26
| 171
| 4.807692
| 0.846154
| 0.096
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146199
| 171
| 6
| 62
| 28.5
| 0.856164
| 0.491228
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0.5
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
634ad64a3545462f8d88fca169ff75dcb439b7fd
| 71
|
py
|
Python
|
sml/__init__.py
|
smlbiobot/SML-Cogs-v3
|
49f6b00b7719c9ff83891b79484c67e023a6ede2
|
[
"MIT"
] | 5
|
2018-09-09T15:04:18.000Z
|
2021-12-19T18:53:29.000Z
|
sml/__init__.py
|
smlbiobot/SML-Cogs-v3
|
49f6b00b7719c9ff83891b79484c67e023a6ede2
|
[
"MIT"
] | 7
|
2018-03-21T19:30:27.000Z
|
2022-02-11T16:08:30.000Z
|
sml/__init__.py
|
smlbiobot/SML-Cogs-v3
|
49f6b00b7719c9ff83891b79484c67e023a6ede2
|
[
"MIT"
] | 4
|
2018-03-20T23:22:30.000Z
|
2022-03-28T01:21:37.000Z
|
from .sml import SML
async def setup(bot):
bot.add_cog(SML(bot))
| 11.833333
| 25
| 0.676056
| 13
| 71
| 3.615385
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197183
| 71
| 5
| 26
| 14.2
| 0.824561
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
6376078433e23232402ceaa51dce5b05b8288b8a
| 11,201
|
py
|
Python
|
MetReg/models/_dl/seq2seqConvLSTM.py
|
leelew/MetReg
|
b38e28326374e30521eab70625b9c22105688d8d
|
[
"MIT"
] | 3
|
2021-02-18T02:28:09.000Z
|
2022-02-27T14:31:38.000Z
|
MetReg/models/_dl/seq2seqConvLSTM.py
|
leelew/MetReg
|
b38e28326374e30521eab70625b9c22105688d8d
|
[
"MIT"
] | null | null | null |
MetReg/models/_dl/seq2seqConvLSTM.py
|
leelew/MetReg
|
b38e28326374e30521eab70625b9c22105688d8d
|
[
"MIT"
] | 1
|
2021-11-17T10:41:48.000Z
|
2021-11-17T10:41:48.000Z
|
# ==============================================================================
# ConvLSTM in seq2seq mode
#
# (1) simple:
# (2) teacher forcing:
#
# author: Lu Li
# email: lilu83@mail.sysu.edu.cn
# ==============================================================================
import numpy as np
import tensorflow as tf
from tensorflow.keras import Model, layers, Input
from tensorflow.python.keras.layers.convolutional import Conv2D
from tensorflow.python.keras.layers.convolutional_recurrent import \
ConvLSTM2DCell
from tensorflow.keras.layers import ConvLSTM2D, BatchNormalization, Dense
#TODO: 把训练方式作为形参设置,整合iterative/teacher forcing/standard
class IterativeConvLSTM2D(layers.Layer):
def __init__(self,
filters,
kernel_size,
padding='valid',
strides=1,
return_sequences=True,
return_states=True):
self.filters=filters
self.kernel_size = kernel_size
self.padding = padding
self.strides = strides
self.return_sequences = return_sequences
self.return_states = return_states
super().__init__()
def build(self, input_shape):
self.t = input_shape[1]
print(self.t)
self.cell_list = []
for i in range(self.t):
self.cell_list.append(ConvLSTM2DCell(filters=self.filters,
kernel_size=self.kernel_size,
padding=self.padding,
strides=self.strides))
self.built = True
def call(self, inputs, initial_state):
if initial_state is not None: h, c = initial_state
h_list = []
for i in range(self.t):
h, [h, c] = self.cell_list[i](h, states=[h, c])
h_list.append(h)
return tf.stack(h_list, axis=1)
class __Seq2seqConvLSTM(layers.Layer):
def __init__(self,
n_filters_factor,
filter_size,
dec_len,
train_mode=None,
*args,
**kwargs):
super().__init__(*args, **kwargs)
self.dec_len = dec_len
self.train_mode = 'teacher'
# encode convlstm
self.enc_convlstm = layers.ConvLSTM2D(np.int(16 * n_filters_factor),
kernel_size=filter_size,
return_sequences=True,
return_state=True,
padding='same',
kernel_initializer='he_normal')
self.enc_bn = layers.BatchNormalization(axis=-1)
# decode convlstm
self.dec_convlstm = layers.ConvLSTM2D(np.int(16 * n_filters_factor),
kernel_size=filter_size,
return_sequences=True,
padding='same',
kernel_initializer='he_normal')
self.dec_bn = layers.BatchNormalization(axis=-1)
#
self.dec_convlstm_cell = ConvLSTM2DCell(np.int(16 * n_filters_factor),
kernel_size=filter_size,
padding='same',
kernel_initializer='he_normal')
def call(self, x_encoder, x_decoder, training=None, mask=None):
print(x_encoder.shape)
print(x_decoder.shape)
enc_out, state = self.encoder(x_encoder=x_encoder)
print(enc_out.shape)
if self.train_mode == 'teacher':
if x_decoder:
raise KeyError('teacher forcing training needs decoder inputs')
dec_out = self.decoder(x_decoder, initial_state=state)
print(dec_out.shape)
else:
dec_out = self.decoder(enc_out[:, -1], initial_state=state)
return dec_out
def encoder(self, x_encoder):
enc_out, state_h, state_c = self.enc_convlstm(x_encoder)
return enc_out, [state_h, state_c]
def decoder(self, initial_x_decoder, initial_state=None):
"""decoder follow standard propagation method."""
print('1')
print(initial_x_decoder.shape)
h, c = initial_state
#x = initial_x_decoder
print(h.shape)
x_stack, h_stack, c_stack = [], [], []
for i in range(self.dec_len):
print(i)
x = initial_x_decoder[:,i]
print(x.shape)
x, [h, c] = self.dec_convlstm_cell(initial_x_decoder=x,
initial_state=[h, c])
x_stack.append(x)
return x
class Seq2seqConvLSTM(Model):
def __init__(self,
filters,
kernel_size,
padding='same',
kernel_initializer='he_normal',
mode='train'):
super().__init__()
self.filters = filters
self.kernel_size = kernel_size
self.padding = padding
self.kernel_initializer = kernel_initializer
# encoder convlstm
self.encoder_convlstm = ConvLSTM2D(filters=self.filters,
kernel_size=self.kernel_size,
return_sequences=True,
return_state=True,
padding=self.padding,
kernel_initializer=self.kernel_initializer)
self.encoder_bn = BatchNormalization()
# decoder convlstm
self.decoder_convlstm = ConvLSTM2D(filters=self.filters,
kernel_size=self.kernel_size,
return_sequences=True,
return_state=True,
padding=self.padding,
kernel_initializer=self.kernel_initializer)
self.decoder_bn = BatchNormalization()
# decoder convlstm
self.decoder_convlstm_cell = ConvLSTM2DCell(filters=self.filters,
kernel_size=self.kernel_size,
padding=self.padding,
kernel_initializer=self.kernel_initializer)
self.decoder_bn = BatchNormalization()
# dense
self.dense = Dense(1)
def fit(self, X, y, batch_size, epochs, validation_data, callbacks):
mdl = self.train_model()
mdl.fit(X, y, batch_size, epochs, validation_data, callbacks)
return self
def train_model(self):
X_encoder = Input((7, 112, 112, 1))
X_decoder = Input((7, 112, 112, 1))
encoder_outputs, encoder_states = self.encoder_convlstm(X_encoder)
decoder_outputs = []
for i in range(7):
decoder_output, encoder_states = self.decoder_convlstm_cell(
X_decoder[:,i], states=encoder_states)
decoder_outputs.append(decoder_output)
decoder_outputs = tf.stack(decoder_outputs, axis=1)
outputs = tf.concat([encoder_outputs, decoder_outputs], axis=1)
outputs = self.dense(outputs)
mdl = Model([X_encoder, X_decoder], outputs)
return mdl
def predict(self, X_encoder):
y_pred = []
encoder_outputs, encoder_states = self.encoder_convlstm(X_encoder)
decoder_input = encoder_states[-1]
for _ in range(7):
decoder_inputs, encoder_states = self.decoder_convlstm_cell(
decoder_input, states=encoder_states)
y_pred.append(decoder_inputs)
return tf.stack(y_pred, axis=1)
class Seq2seqConvLSTM(layers.Layer):
def __init__(self,
n_filters_factor,
filter_size,
dec_len,
train_mode=None,
*args,
**kwargs):
super().__init__(*args, **kwargs)
self.dec_len = dec_len
self.train_mode = 'teacher'
# encode convlstm
self.enc_convlstm = layers.ConvLSTM2D(np.int(16 * n_filters_factor),
kernel_size=filter_size,
return_sequences=True,
return_state=True,
padding='same',
kernel_initializer='he_normal')
self.enc_bn = layers.BatchNormalization(axis=-1)
# decode convlstm
self.dec_convlstm = layers.ConvLSTM2D(np.int(16 * n_filters_factor),
kernel_size=filter_size,
return_sequences=True,
padding='same',
kernel_initializer='he_normal')
self.dec_bn = layers.BatchNormalization(axis=-1)
#
self.dec_convlstm_cell = ConvLSTM2DCell(np.int(16 * n_filters_factor),
kernel_size=filter_size,
padding='same',
kernel_initializer='he_normal')
def call(self, x_encoder, x_decoder, training=None, mask=None):
print(x_encoder.shape)
print(x_decoder.shape)
enc_out, state = self.encoder(x_encoder=x_encoder)
print(enc_out.shape)
if self.train_mode == 'teacher':
if x_decoder:
raise KeyError('teacher forcing training needs decoder inputs')
dec_out = self.decoder(x_decoder, initial_state=state)
print(dec_out.shape)
else:
dec_out = self.decoder(enc_out[:, -1], initial_state=state)
return dec_out
def encoder(self, x_encoder):
enc_out, state_h, state_c = self.enc_convlstm(x_encoder)
return enc_out, [state_h, state_c]
def decoder(self, initial_x_decoder, initial_state=None):
"""decoder follow standard propagation method."""
print('1')
print(initial_x_decoder.shape)
h, c = initial_state
#x = initial_x_decoder
print(h.shape)
x_stack, h_stack, c_stack = [], [], []
for i in range(self.dec_len):
print(i)
x = initial_x_decoder[:,i]
print(x.shape)
x, [h, c] = self.dec_convlstm_cell(initial_x_decoder=x,
initial_state=[h, c])
x_stack.append(x)
return x
| 38.624138
| 96
| 0.500402
| 1,083
| 11,201
| 4.902124
| 0.11819
| 0.031644
| 0.028254
| 0.036918
| 0.772085
| 0.750612
| 0.720475
| 0.679224
| 0.664155
| 0.664155
| 0
| 0.010232
| 0.40666
| 11,201
| 290
| 97
| 38.624138
| 0.788595
| 0.050531
| 0
| 0.705607
| 0
| 0
| 0.021425
| 0
| 0
| 0
| 0
| 0.003448
| 0
| 1
| 0.070093
| false
| 0
| 0.028037
| 0
| 0.163551
| 0.088785
| 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
|
6380c262268a7fef3df0ee3780ec72e75115f843
| 64
|
py
|
Python
|
stla_lite/timesheets/views.py
|
401ode/stla-lite
|
6355b477e729ba8c378285f08cc01410224341b7
|
[
"MIT"
] | null | null | null |
stla_lite/timesheets/views.py
|
401ode/stla-lite
|
6355b477e729ba8c378285f08cc01410224341b7
|
[
"MIT"
] | 1
|
2017-10-04T18:34:26.000Z
|
2017-10-04T18:34:26.000Z
|
stla_lite/timesheets/views.py
|
401ode/stla-lite
|
6355b477e729ba8c378285f08cc01410224341b7
|
[
"MIT"
] | null | null | null |
from django import forms
class TimesheetForm(forms.Form):
| 12.8
| 32
| 0.75
| 8
| 64
| 6
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 64
| 5
| 33
| 12.8
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6390c5a2d86466234fefda7574d86eacd7c44c6b
| 370
|
py
|
Python
|
mything/microfrontends/hello/HelloFrontend.py
|
sdaves/mything
|
b9c114265fedb652959c774b7b4085d15528aad8
|
[
"MIT"
] | 3
|
2019-12-27T15:25:09.000Z
|
2021-03-23T00:56:16.000Z
|
mything/microfrontends/hello/HelloFrontend.py
|
sdaves/mything
|
b9c114265fedb652959c774b7b4085d15528aad8
|
[
"MIT"
] | null | null | null |
mything/microfrontends/hello/HelloFrontend.py
|
sdaves/mything
|
b9c114265fedb652959c774b7b4085d15528aad8
|
[
"MIT"
] | null | null | null |
from mything.microfrontends.core import IHtml, IComponent, IFrontend
class HelloFrontend(IFrontend):
def __init__(self, html: IHtml, component: IComponent):
self._html = html
component.mount('mything-hello', ['name'], self)
def view(self, props={'name':'Guest'}):
return self._html.h('span', {}, 'Hello {0}!'.format(props['name']))
| 37
| 75
| 0.654054
| 43
| 370
| 5.488372
| 0.604651
| 0.101695
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003289
| 0.178378
| 370
| 9
| 76
| 41.111111
| 0.773026
| 0
| 0
| 0
| 0
| 0
| 0.118919
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0.142857
| 0.714286
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
892b3a67d6f4983cf056971f596c739f851f3d3d
| 23
|
py
|
Python
|
clickhouse_proxy/__init__.py
|
kfzteile24/clickhouse-proxy
|
578ac2f9f76774cd79bbde2543d2ad532bec56a1
|
[
"MIT"
] | 1
|
2019-12-01T04:51:33.000Z
|
2019-12-01T04:51:33.000Z
|
clickhouse_proxy/__init__.py
|
kfzteile24/clickhouse-proxy
|
578ac2f9f76774cd79bbde2543d2ad532bec56a1
|
[
"MIT"
] | null | null | null |
clickhouse_proxy/__init__.py
|
kfzteile24/clickhouse-proxy
|
578ac2f9f76774cd79bbde2543d2ad532bec56a1
|
[
"MIT"
] | 1
|
2019-12-01T04:51:04.000Z
|
2019-12-01T04:51:04.000Z
|
"""ClickHouse proxy"""
| 11.5
| 22
| 0.652174
| 2
| 23
| 7.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 23
| 1
| 23
| 23
| 0.714286
| 0.695652
| 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
|
89323b845d8c57b0c2f979d7c6638815862c7a3e
| 82
|
py
|
Python
|
code/pyFoamRunner.py
|
sosohungry/pyfoam
|
b19e40a0ef1f41268930122226660414722178e6
|
[
"MIT"
] | null | null | null |
code/pyFoamRunner.py
|
sosohungry/pyfoam
|
b19e40a0ef1f41268930122226660414722178e6
|
[
"MIT"
] | null | null | null |
code/pyFoamRunner.py
|
sosohungry/pyfoam
|
b19e40a0ef1f41268930122226660414722178e6
|
[
"MIT"
] | null | null | null |
#! /usr/bin/env python
from PyFoam.Applications.Runner import Runner
Runner()
| 11.714286
| 45
| 0.743902
| 11
| 82
| 5.545455
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146341
| 82
| 6
| 46
| 13.666667
| 0.871429
| 0.256098
| 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
|
8943599420327c5d1a8fff326914d13fc1ca3c60
| 154
|
py
|
Python
|
src/wellcome_aws_utils/exceptions.py
|
wellcomecollection/aws_utils
|
b2c54b44fcd7edf9877903f1b0ef1aba853926c3
|
[
"MIT"
] | null | null | null |
src/wellcome_aws_utils/exceptions.py
|
wellcomecollection/aws_utils
|
b2c54b44fcd7edf9877903f1b0ef1aba853926c3
|
[
"MIT"
] | 8
|
2017-11-07T15:44:42.000Z
|
2019-07-25T16:35:00.000Z
|
src/wellcome_aws_utils/exceptions.py
|
wellcomecollection/aws_utils
|
b2c54b44fcd7edf9877903f1b0ef1aba853926c3
|
[
"MIT"
] | null | null | null |
# -*- encoding: utf-8 -*-
class UnWellcomeException(Exception):
"""
Base exception for all exceptions raised by this library.
"""
pass
| 15.4
| 61
| 0.62987
| 16
| 154
| 6.0625
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008621
| 0.246753
| 154
| 9
| 62
| 17.111111
| 0.827586
| 0.532468
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
898ec48026b8bb17d3721545301da6724d9aa57d
| 720
|
py
|
Python
|
src/leawood/domain/model.py
|
SteveMayze/leawood_gateway
|
4eee019f14ebc0c72dd8323acd5fc8c8981cc2fd
|
[
"MIT"
] | null | null | null |
src/leawood/domain/model.py
|
SteveMayze/leawood_gateway
|
4eee019f14ebc0c72dd8323acd5fc8c8981cc2fd
|
[
"MIT"
] | null | null | null |
src/leawood/domain/model.py
|
SteveMayze/leawood_gateway
|
4eee019f14ebc0c72dd8323acd5fc8c8981cc2fd
|
[
"MIT"
] | null | null | null |
import abc
class Node(abc.ABC):
@property
def addr64bit(self):
raise NotImplementedError
@addr64bit.setter
def addr64bit(self, value):
raise NotImplementedError
@property
def serial_id(self):
raise NotImplementedError
@serial_id.setter
def serial_id(self, value):
raise NotImplementedError
@abc.abstractmethod
def send_message(self):
raise NotImplementedError
@abc.abstractmethod
def receive_message_callback(self, message):
raise NotImplementedError
@abc.abstractclassmethod
def open(self):
raise NotImplementedError
@abc.abstractmethod
def close(self):
raise NotImplementedError
| 18.947368
| 48
| 0.679167
| 69
| 720
| 7
| 0.318841
| 0.397516
| 0.289855
| 0.254658
| 0.289855
| 0.198758
| 0
| 0
| 0
| 0
| 0
| 0.011236
| 0.258333
| 720
| 37
| 49
| 19.459459
| 0.893258
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.307692
| false
| 0
| 0.038462
| 0
| 0.384615
| 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
|
89ac690609f1e3d0a1501b1e64be3237dc585594
| 92
|
py
|
Python
|
2014/07/men-life-gap/graphic_config.py
|
nprapps/graphics-archive
|
97b0ef326b46a959df930f5522d325e537f7a655
|
[
"FSFAP"
] | 14
|
2015-05-08T13:41:51.000Z
|
2021-02-24T12:34:55.000Z
|
2014/07/men-life-gap/graphic_config.py
|
nprapps/graphics-archive
|
97b0ef326b46a959df930f5522d325e537f7a655
|
[
"FSFAP"
] | null | null | null |
2014/07/men-life-gap/graphic_config.py
|
nprapps/graphics-archive
|
97b0ef326b46a959df930f5522d325e537f7a655
|
[
"FSFAP"
] | 7
|
2015-04-04T04:45:54.000Z
|
2021-02-18T11:12:48.000Z
|
#!/usr/bin/env python
COPY_GOOGLE_DOC_KEY = '16FywAcZFB7xGfCtrHMWmUkidEV8ikFwMgSgJf5LWxxI'
| 23
| 68
| 0.847826
| 9
| 92
| 8.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05814
| 0.065217
| 92
| 3
| 69
| 30.666667
| 0.813953
| 0.217391
| 0
| 0
| 0
| 0
| 0.619718
| 0.619718
| 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
|
89bc0c5e8b4573d47ff64771db4765c4e8f2a06d
| 217
|
py
|
Python
|
mod divmod.py
|
purva-saxena/Python-programming
|
9458ddca9fc890eeb1fb3a16ceed74cedfcb116d
|
[
"MIT"
] | 14
|
2020-09-29T07:29:33.000Z
|
2020-11-03T04:26:39.000Z
|
mod divmod.py
|
purva-saxena/Python-programming
|
9458ddca9fc890eeb1fb3a16ceed74cedfcb116d
|
[
"MIT"
] | 4
|
2020-10-23T18:10:50.000Z
|
2020-10-29T18:39:20.000Z
|
mod divmod.py
|
purva-saxena/Python-programming
|
9458ddca9fc890eeb1fb3a16ceed74cedfcb116d
|
[
"MIT"
] | 5
|
2020-10-15T23:49:29.000Z
|
2020-10-28T20:16:42.000Z
|
# 177
# 10
# print(divmod(177, 10))
user = int(input())
user2 = int(input())
a = divmod(user, user2)
print(a[0])
print(a[1])
# for i in a:
# print(''.join(a[i]))
print(divmod(user,user2))
# print(divmod(user))
| 13.5625
| 26
| 0.59447
| 37
| 217
| 3.486486
| 0.405405
| 0.255814
| 0.232558
| 0.310078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082873
| 0.165899
| 217
| 16
| 27
| 13.5625
| 0.629834
| 0.37788
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
|
984068cec290264d4d9dc52d6f88384fbf300d33
| 225
|
py
|
Python
|
doctorbot/website/urls.py
|
zuxfoucault/DoctorBot_demo
|
82e24078da4d2e6caba728b959812401109e014d
|
[
"MIT"
] | 1
|
2020-09-24T07:26:14.000Z
|
2020-09-24T07:26:14.000Z
|
doctorbot/website/urls.py
|
lintzuhsiang/Doctorbot
|
6be98bbf380d14bb789d30a137ded3b51b3f31fd
|
[
"MIT"
] | null | null | null |
doctorbot/website/urls.py
|
lintzuhsiang/Doctorbot
|
6be98bbf380d14bb789d30a137ded3b51b3f31fd
|
[
"MIT"
] | null | null | null |
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from website import views
urlpatterns = [
url(r'^$', views.index_view),
]
urlpatterns = format_suffix_patterns(urlpatterns)
| 22.5
| 61
| 0.8
| 29
| 225
| 6
| 0.586207
| 0.137931
| 0.229885
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 225
| 9
| 62
| 25
| 0.878788
| 0
| 0
| 0
| 0
| 0
| 0.008889
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.428571
| 0
| 0.428571
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
987586110564e42a155b7e116ea2351613d1194b
| 107
|
py
|
Python
|
auditor/auditor/exceptions.py
|
ravirahman/sancus
|
6563852b98edeb1068574e2d99e1fc18b815bee3
|
[
"MIT"
] | 2
|
2022-03-17T04:50:20.000Z
|
2022-03-17T04:51:31.000Z
|
auditor/auditor/exceptions.py
|
ravirahman/sancus
|
6563852b98edeb1068574e2d99e1fc18b815bee3
|
[
"MIT"
] | null | null | null |
auditor/auditor/exceptions.py
|
ravirahman/sancus
|
6563852b98edeb1068574e2d99e1fc18b815bee3
|
[
"MIT"
] | null | null | null |
class AuditProcessorFailedException(Exception):
# Raise when a step in audit validation fails
pass
| 26.75
| 49
| 0.775701
| 12
| 107
| 6.916667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186916
| 107
| 3
| 50
| 35.666667
| 0.954023
| 0.401869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
9876fe18cb72093753c235c552dfb56796e02fb9
| 44
|
py
|
Python
|
instaphoto/config.py
|
HiroIshikawa/21playground
|
a203301d8fc4879ce817a3a879b8f2200710744c
|
[
"MIT"
] | 2
|
2016-04-03T06:30:45.000Z
|
2017-05-22T08:36:54.000Z
|
instaphoto/config.py
|
HiroIshikawa/21playground
|
a203301d8fc4879ce817a3a879b8f2200710744c
|
[
"MIT"
] | null | null | null |
instaphoto/config.py
|
HiroIshikawa/21playground
|
a203301d8fc4879ce817a3a879b8f2200710744c
|
[
"MIT"
] | null | null | null |
INSTAGRAM_ACCESS_TOKEN = 'YOUR_ACCESS_TOKEN'
| 44
| 44
| 0.886364
| 6
| 44
| 5.833333
| 0.666667
| 0.628571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 44
| 1
| 44
| 44
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0.377778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
988db1a73d4d7e236a772ce28cab19ae75c86ebe
| 466
|
py
|
Python
|
python/config.py
|
mikemcfarlane/nao-emotional-framework
|
8f8fb3e6d4d27d4f55f55291c9998c94434e1320
|
[
"Apache-2.0"
] | 9
|
2015-03-06T22:43:53.000Z
|
2020-02-24T06:46:35.000Z
|
python/config.py
|
mikemcfarlane/nao-emotional-framework
|
8f8fb3e6d4d27d4f55f55291c9998c94434e1320
|
[
"Apache-2.0"
] | 4
|
2015-01-01T19:55:22.000Z
|
2020-07-30T01:01:58.000Z
|
python/config.py
|
mikemcfarlane/nao-emotional-framework
|
8f8fb3e6d4d27d4f55f55291c9998c94434e1320
|
[
"Apache-2.0"
] | 5
|
2015-03-06T22:44:00.000Z
|
2019-11-21T08:45:42.000Z
|
from naoqi import ALProxy
def getEmotionalProxy(proxyName):
emotions = ALProxy("Emotion")
adaptorName = emotions.getProxyName(proxyName)
return ALProxy(adaptorName)
def getEmotionalMotion():
return getEmotionalProxy("ALMotion");
def getEmotionalTTS():
return getEmotionalProxy("ALTextToSpeech");
def getEmotionalAnimatedTTS():
return getEmotionalProxy("ALAnimatedSpeech");
def getEmotionalLEDs():
return getEmotionalProxy("ALLeds");
| 24.526316
| 50
| 0.766094
| 37
| 466
| 9.648649
| 0.540541
| 0.257703
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135193
| 466
| 18
| 51
| 25.888889
| 0.885856
| 0
| 0
| 0
| 0
| 0
| 0.109442
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.384615
| false
| 0
| 0.076923
| 0.307692
| 0.846154
| 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
|
98976217fb230d13bba85acfef8055e0f2833b73
| 87
|
py
|
Python
|
src/minify/apps.py
|
amoghmadan/Shorts
|
f47ce087ac3d228d7bf8226ca29c9d7b55ef5c5e
|
[
"MIT"
] | null | null | null |
src/minify/apps.py
|
amoghmadan/Shorts
|
f47ce087ac3d228d7bf8226ca29c9d7b55ef5c5e
|
[
"MIT"
] | null | null | null |
src/minify/apps.py
|
amoghmadan/Shorts
|
f47ce087ac3d228d7bf8226ca29c9d7b55ef5c5e
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class MinifyConfig(AppConfig):
name = 'minify'
| 14.5
| 33
| 0.747126
| 10
| 87
| 6.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 87
| 5
| 34
| 17.4
| 0.902778
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 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
|
98a2e3e3e64cf36fdddd60bf4433d2df1cf9d0b9
| 61
|
py
|
Python
|
flexitext/parser/__init__.py
|
swiftfish/flexitext
|
9863650b662bef6dd63222f0b9bade2e72f4d762
|
[
"MIT"
] | 73
|
2021-09-19T20:38:49.000Z
|
2022-03-30T10:23:08.000Z
|
flexitext/parser/__init__.py
|
swiftfish/flexitext
|
9863650b662bef6dd63222f0b9bade2e72f4d762
|
[
"MIT"
] | 9
|
2021-09-22T11:49:35.000Z
|
2022-03-06T18:20:09.000Z
|
flexitext/parser/__init__.py
|
swiftfish/flexitext
|
9863650b662bef6dd63222f0b9bade2e72f4d762
|
[
"MIT"
] | 3
|
2021-09-21T01:30:52.000Z
|
2022-03-06T12:30:48.000Z
|
from .make_texts import make_texts
__all__ = ["make_texts"]
| 15.25
| 34
| 0.770492
| 9
| 61
| 4.444444
| 0.555556
| 0.675
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131148
| 61
| 3
| 35
| 20.333333
| 0.754717
| 0
| 0
| 0
| 0
| 0
| 0.163934
| 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
|
98ac987a9bdc07b2a45defeb0c44b13104b397bd
| 18,498
|
py
|
Python
|
test.py
|
sctse999/deepracer
|
f1128ce7d64687bc2b5a0d858072bb6755993847
|
[
"Apache-2.0"
] | null | null | null |
test.py
|
sctse999/deepracer
|
f1128ce7d64687bc2b5a0d858072bb6755993847
|
[
"Apache-2.0"
] | null | null | null |
test.py
|
sctse999/deepracer
|
f1128ce7d64687bc2b5a0d858072bb6755993847
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np
import math
import time
import random
from matplotlib import pyplot as plt
params = {'x': 6.107114700510619, 'is_reversed': False, 'distance_from_center': 0.11497565484011721, 'all_wheels_on_track': True, 'track_width': 0.5966132129340461, 'steps': 14, 'is_left_of_center': True, 'waypoints': [(2.909995283569139, 0.6831924746239328), (3.3199952311658905, 0.6833390533713652), (3.41999521838461, 0.6833748042853732), (3.6300023417267235, 0.6834498837610459), (4.189995119968753, 0.6836500863232341), (4.500002230529587, 0.6837609167129147), (4.549995073956144, 0.6837787896136626), (5.320002125723089, 0.6840540742077795), (5.420002112941809, 0.6840898251217875), (5.7800020669292005, 0.684218528412216), (6.289747858140073, 0.6921400142174), (6.460906484698166, 0.7123063542781353), (6.5136980596947165, 0.7210294115664316), (6.704287871536597, 0.799598672280553), (6.836281775656231, 0.8817004790362547), (6.991663362669656, 1.0062653214908401), (7.1142074641408275, 1.1693225137564909), (7.165830682349035, 1.263426756737598), (7.280019741788613, 1.7628308313393968), (7.272892208655982, 1.8132370038722583), (7.265960701310593, 1.8622568749360433), (7.1045747673751585, 2.3014874894475916), (7.011749008840918, 2.419260292916218), (6.727273712845888, 2.6474924751765463), (6.536921216759571, 2.7266447610626687), (6.079802178702642, 2.773360773339069), (5.919813651266964, 2.772005974951175), (5.719827991972368, 2.7703124769663074), (5.670000926947205, 2.7698905365406308), (5.200034627604903, 2.765910816276192), (5.049876033335467, 2.7646392587170006), (5.002030872389276, 2.768980714618128), (4.942709994269048, 2.775327848322301), (4.561340171137485, 2.898322513024676), (4.258533108743229, 3.166955220685885), (4.092728535429521, 3.3703748558215287), (4.001121969780925, 3.482763638518189), (3.774000078716213, 3.761411273431655), (3.6823935130676184, 3.8738000561283137), (3.5490587458571623, 4.037383660336441), (3.2758532950668884, 4.333295323360169), (3.1911463583891155, 4.385684825652305), (3.0954945192403103, 4.435922305057415), (2.9549738926202442, 4.484413606024224), (2.8089822299540046, 4.500038654567632), (2.8110045575773057, 4.499832029419236), (2.5003276964136627, 4.498718163592657), (2.249377566090162, 4.491428972830993), (1.990177178741659, 4.483900142037221), (1.7395172672798365, 4.476619381080485), (1.1871156114665855, 4.391792930201858), (1.1054389398706574, 4.3402307341807065), (0.7316196323127645, 3.819658838269335), (0.7080468873794841, 3.5295953182618844), (0.8747319412102282, 2.7251244177375193), (0.8863119620897287, 2.6692358445815714), (0.9180990438541362, 2.5158220758940644), (0.9380374746317692, 2.4195933679559642), (1.0212099341560652, 2.0181787127447155), (1.043063552869095, 1.912706746772055), (1.0936256517149223, 1.6686792454688633), (1.219724413480236, 1.169889412099395), (1.2404620134668318, 1.1182110370035536), (1.286611404297767, 1.0270193376917442), (1.3195344250237366, 0.9895904728963364), (1.3897426105955222, 0.9097735962139227), (1.4563853812178036, 0.8435308547287804), (1.4996428710531535, 0.8193608401945228), (2.0400025449490777, 0.6828814442283201), (2.7500024542019887, 0.6831352757177762), (2.909995283569139, 0.6831924746239328)], 'closest_waypoints': [9, 10], 'y': 0.8042914189309017, 'progress': 3.102106460231577, 'heading': 14.950637902847403, 'steering_angle': -14.999999999999998, 'speed': 0.4}
# Oval Track
#params = {'heading': -0.8942166156046021, 'is_left_of_center': False, 'waypoints': [(2.973129727863096, 0.9587203451227853), (3.1686550001583385, 0.957973927514008), (3.3641587621388993, 0.957502662680531), (3.5596536099349976, 0.9571676056167091), (3.7551399311198708, 0.9569079073242543), (3.9506256709448877, 0.9566988842326032), (4.146107922610766, 0.9565304352142532), (4.341591530782978, 0.9563990236634121), (4.537073588662238, 0.9563010645276331), (4.732557196834449, 0.9562337963475989), (4.92803925471371, 0.9561973644632735), (5.123521506379589, 0.9561847441097273), (5.3190037580454685, 0.9562067146676283), (5.514486009711348, 0.9562466104877638), (5.709974462549027, 0.9563314648034498), (5.905463109173326, 0.9564632639275283), (6.10095815075604, 0.9566372843111675), (6.296465594682358, 0.956848729735553), (6.491997261936018, 0.9569796325965199), (6.6875785385640825, 0.9567336689306691), (6.883257677434614, 0.9557806263396478), (7.079130990497134, 0.9538671530427651), (7.275221344572657, 0.9543163504250318), (7.4705043835944585, 0.968040367211689), (7.662157411673801, 1.00506531126039), (7.845235769446617, 1.0715002572806311), (8.014446369208315, 1.1684281333446516), (8.165421648145468, 1.2924605804235763), (8.294117279524725, 1.4398041043387009), (8.397584218581926, 1.6056121986483556), (8.469351930116943, 1.7860276860462465), (8.511767170082862, 1.9763842816461406), (8.530750119682551, 2.1709724987464085), (8.535956778555175, 2.3671952090825386), (8.538760870928513, 2.563413656113056), (8.537808603483967, 2.75963888567523), (8.532572489045293, 2.95569387369283), (8.51481039514374, 3.15055503924561), (8.475491090199, 3.341414414227855), (8.407975057079398, 3.5247578720951225), (8.31106120632191, 3.693881267878382), (8.186502531679764, 3.844170542185153), (8.037129092933212, 3.969503006795976), (7.868136309330993, 4.066595722602571), (7.6851610460393545, 4.1345014606124835), (7.494133948738579, 4.175703983918254), (7.299554742716083, 4.195335731117524), (7.103587636930088, 4.201242347257079), (6.907607353654015, 4.201247579495785), (6.711783262392657, 4.199924210676329), (6.516154120469764, 4.199300605337186), (6.3205893157042965, 4.199124065727503), (6.125061330396392, 4.199215533011554), (5.929553692683456, 4.199390716114905), (5.734056325661314, 4.199555822314082), (5.538567872823634, 4.1996779078838955), (5.343080582705667, 4.199756585251109), (5.147595618027125, 4.199802318893134), (4.952113560147865, 4.199816465316303), (4.756630145762273, 4.199800962386803), (4.561147894096393, 4.19975794175744), (4.365664285924183, 4.199686628281739), (4.170183390764635, 4.199580045641426), (3.974701139098755, 4.1994405192759245), (3.779218887432876, 4.199264948599335), (3.5837366357669964, 4.199009925409058), (3.3881109820032407, 4.198595803404785), (3.3881109820032407, 4.198595803404785), (3.1927025630391057, 4.198236329227001), (2.997255774324458, 4.197737328683715), (2.801790188307791, 4.197125156755078), (2.6062952436183835, 4.195692686069265), (2.410804949807826, 4.190964292571721), (2.2150827903079318, 4.183555248776983), (2.0190451461927097, 4.16967140647651), (1.8255455254232797, 4.1381578265350925), (1.6399065197169342, 4.077816355401538), (1.4684209619443997, 3.98580995697732), (1.316564535251782, 3.863567226215878), (1.18828627180266, 3.716441712246848), (1.087181058714844, 3.5495077176822467), (1.0159622477774413, 3.3684589840609287), (0.9734102913519926, 3.178145699770326), (0.9534938958331036, 2.9834065228940503), (0.9444216541596013, 2.7872029974331767), (0.9405074066940884, 2.5907339843046135), (0.9396984929007637, 2.3942255355991335), (0.9471365077950047, 2.1980486557983383), (0.9667406161777752, 2.003330698556816), (1.008643508547042, 1.8129062776403588), (1.0777365771700467, 1.6310002804643384), (1.1746683531897695, 1.460860280079107), (1.2993533282606862, 1.3105290994160301), (1.4485447529255744, 1.1851194108376364), (1.618276541798405, 1.0898755162672418), (1.80267831683733, 1.026955253927975), (1.9950098887622332, 0.9923725057420933), (2.190220548481932, 0.9752908935522877), (2.3860145059240736, 0.9666594679897911), (2.581804490740531, 0.9621571992530031), (2.77751667022956, 0.9599051322865064), (2.973129727863096, 0.9587203451227853)], 'steps': 1, 'y': 0.9564181222148141, 'is_reversed': False, 'distance_from_center': 0.001746928303460121, 'steering_angle': -29.999999999999996, 'x': 3.118586692693628, 'speed': 0.4, 'progress': 0.7440725341828801, 'all_wheels_on_track': True, 'closest_waypoints': [0, 1], 'track_width': 0.6096313811114228}
# Tokyo Track
# params = {'is_left_of_center': False, 'waypoints': [(3.9968843292236325, -2.398085115814209), (4.108486819458006, -2.398085115814209), (4.220117408752442, -2.398085115814209), (4.331728619384766, -2.3980848251342772), (4.443350294494627, -2.398085115814209), (4.554988441467286, -2.398085115814209), (4.666571746826172, -2.398085115814209), (4.7781641601562495, -2.398085115814209), (4.8896753768920895, -2.398085115814209), (5.001236978149414, -2.398085115814209), (5.112820671081545, -2.398085115814209), (5.22445222930908, -2.398085115814209), (5.336061114501954, -2.398085115814209), (5.4476612792968755, -2.3980848251342772), (5.559263769531249, -2.398085115814209), (5.670884088134765, -2.398085115814209), (5.782510801696777, -2.398085115814209), (5.894127050781252, -2.398085115814209), (6.00181679534912, -2.398085115814209), (6.173943692016602, -2.398085115814209), (6.345643870544436, -2.398085115814209), (6.537344378662107, -2.398085115814209), (6.768550421142578, -2.398085115814209), (6.98473063659668, -2.398085115814209), (7.162758142089844, -2.398085115814209), (7.274807891845702, -2.398085115814209), (7.3869537597656265, -2.398085115814209), (7.499844155883789, -2.398085115814209), (7.61068235168457, -2.384343028259277), (7.715040710449218, -2.3489811363220214), (7.806151428222655, -2.289116379547119), (7.879453155517577, -2.2083449531555175), (7.931933673095703, -2.1111327667236326), (7.969687957763672, -2.0054785568237286), (8.009337475585937, -1.9026145835876465), (8.063614782714842, -1.8110042839050309), (8.13654327697754, -1.734422282028198), (8.224194903564452, -1.670004508590698), (8.315116873168945, -1.6062793285369872), (8.397656408691406, -1.5321647148132325), (8.462792355346679, -1.44245458984375), (8.509496481323243, -1.3409916938781739), (8.540622875976563, -1.2328676250457764), (8.560585998535156, -1.12199483833313), (8.572986404418945, -1.010168572998047), (8.580685159301758, -0.8628370136260985), (8.583536148071289, -0.7021988536834717), (8.58443454284668, -0.5753229497909546), (8.584472137451172, -0.3747735631942749), (8.584492291259764, -0.19896346716880797), (8.584528335571289, -0.00428482018969953), (8.584556240844726, 0.2119464259147644), (8.58433532409668, 0.3881836337089538), (8.584120608520507, 0.5002564319610595), (8.580803369140625, 0.6122315738677978), (8.571400067138672, 0.7239659116744994), (8.555663430786133, 0.8350995351791382), (8.531425762939453, 0.9447460159301757), (8.500583847045899, 1.0525313941955565), (8.46601541442871, 1.1590160766601563), (8.431132659912109, 1.2648468261718748), (8.40480791015625, 1.3722508808135987), (8.388611611938476, 1.4806030849456786), (8.405742349243162, 1.6502103195190427), (8.463046215820313, 1.8476967147827148), (8.53134553527832, 2.0626024925231934), (8.55994340209961, 2.291900899505615), (8.514377191162108, 2.4563697364807124), (8.426188388061522, 2.610280400085449), (8.300192977905272, 2.7344502433776854), (8.126715969848632, 2.814492935180664), (7.936248913574218, 2.8448311027526856), (7.69728442993164, 2.842157622528076), (7.414035440063476, 2.8335633796691893), (7.165993991088866, 2.8013261032104495), (6.971922503662109, 2.736647105407715), (6.792461752319335, 2.6331662124633786), (6.649091239929199, 2.4822172866821286), (6.649091239929199, 2.4822172866821286), (6.544510801696777, 2.30300177230835), (6.491997534179687, 2.1105175910949705), (6.481333262634276, 1.915810774230957), (6.498144058227538, 1.7427884864807128), (6.531408113098145, 1.5830480915069578), (6.566860212707519, 1.4499332515716552), (6.603410694885254, 1.3282434410095214), (6.641890516662597, 1.2071183731079103), (6.678002847290038, 1.0942358253479), (6.713907051086426, 0.9754661369323733), (6.748999676513671, 0.8351240734100341), (6.771528340148926, 0.6824846742630002), (6.770214854431152, 0.5170887620925904), (6.739964762878418, 0.35214239854812623), (6.678730709838867, 0.20278325449079276), (6.584536071777343, 0.073577370595932), (6.465435395812988, -0.022756241798400884), (6.332671018981934, -0.08443354539871215), (6.192271061706543, -0.11442267904281617), (6.048808113098144, -0.11327295513153077), (5.9084566024780285, -0.0796875414848329), (5.777142330932618, -0.017066400146484362), (5.654321920776367, 0.04993410081863381), (5.543534690856934, 0.08980346956253056), (5.431823098754883, 0.10004641265869134), (5.321303681945801, 0.08101749906539898), (5.223240675354005, 0.0331226148605349), (5.136034951782227, -0.03443096523284911), (5.057559121704101, -0.11292725191116332), (4.981652514648437, -0.19307756190299985), (4.901582789611815, -0.265934788107872), (4.813124816894531, -0.3229467545032501), (4.716816741943359, -0.3564500641271472), (4.6162901260375975, -0.3593997144155204), (4.51511413116455, -0.3368315144300461), (4.416144396972657, -0.29576415982246396), (4.317549252319336, -0.247266593170166), (4.215311694335938, -0.20396510591506956), (4.107997895812988, -0.18035982437133785), (3.999729116821289, -0.184920810508728), (3.8959674270629883, -0.2160716101646423), (3.800001385498047, -0.27164925882816315), (3.709108677673339, -0.33655119952783036), (3.616933296203613, -0.3951910578489304), (3.518029643249511, -0.4385550443172457), (3.4129790786743164, -0.46291566977500914), (3.3047851013183593, -0.4704929507255554), (3.1941414672851565, -0.4655450453758239), (3.0825288032531737, -0.45816466374397274), (2.9700563079833975, -0.4528322554588317), (2.8574543632507323, -0.4456599219322205), (2.7442044929504394, -0.4349176088809967), (2.6292975532531737, -0.4197862710952759), (2.5105101333618163, -0.40448946981430056), (2.3889220123291004, -0.39316141550540923), (2.26488229675293, -0.38975981838703155), (2.1411589378356934, -0.4009938316822052), (2.020786827850342, -0.4341942760944366), (1.8794536911010733, -0.5233404517173774), (1.7949362239837645, -0.6104808813095093), (1.7206921123504637, -0.7506510318756103), (1.6887726943969725, -0.8770849569320678), (1.6724089160919189, -1.0758010009765624), (1.6601904273986814, -1.2993672481536864), (1.6567321598052978, -1.5105078002929688), (1.6593520095825194, -1.6933875289916993), (1.6648058433532715, -1.8153231094360351), (1.6874392971038819, -1.9510643394470213), (1.7280409854888914, -2.050013919830322), (1.7906410888671873, -2.1427592277526855), (1.870859399795532, -2.223833251953125), (1.9645064453124998, -2.2893214057922364), (2.0718011558532714, -2.3412403297424316), (2.18892162322998, -2.375639586639404), (2.3153282485961912, -2.3939165718078614), (2.429082545471191, -2.398216987609863), (2.542245696258545, -2.3981534255981445), (2.6547331130981444, -2.398104203796387), (2.766569309997559, -2.398085115814209), (2.878082949066162, -2.398085115814209), (2.990368634033203, -2.398085115814209), (3.102650637054443, -2.398085115814209), (3.214940197753906, -2.398085115814209), (3.3272259796142576, -2.398085115814209), (3.438768783569336, -2.398085115814209), (3.5503902648925783, -2.398085115814209), (3.6620016693115236, -2.398085115814209), (3.7736411727905272, -2.3980848251342772), (3.8852564529418943, -2.398085115814209), (3.9968843292236325, -2.398085115814209)], 'closest_waypoints': [1, 2], 'speed': 0.4, 'is_reversed': False, 'track_width': 0.6603288844558911, 'x': 4.138348340782516, 'steps': 1, 'progress': 0.62512711120958, 'steering_angle': -29.999999999999996, 'distance_from_center': 0.00013351107196335477, 'all_wheels_on_track': True, 'heading': -0.03467457202103572, 'y': -2.3982186268861723}
print("waypoints size: {}".format(len(params['waypoints'])))
waypoints = np.array(params['waypoints'])
print(len(waypoints))
def calculate_radian(idx, waypoints):
currentPoint = waypoints[idx]
nextPoint = waypoints[(idx + 1) % len(waypoints)]
radian = math.atan2(nextPoint[1]-currentPoint[1], nextPoint[0] - currentPoint[0])
# radian = math.atan2(nextPoint['y']-currentPoint['y'], nextPoint['x'] - currentPoint['x'])
degree = track_direction = math.degrees(radian)
return radian, degree
def calculate_degree_diff(idx, degrees):
currentDegree = degrees[idx]
nextDegree = degrees[(idx + 1) % len(degrees)]
degree_diff = nextDegree - currentDegree
if (abs(degree_diff) > 180):
if (degree_diff > 0):
degree_diff = degree_diff - 360
else:
degree_diff = degree_diff + 360
return degree_diff
def calculate_optimal_speed(idx, degrees_diffs):
return 0
radian_degree = np.array([calculate_radian(idx, waypoints) for idx in range(len(waypoints))])
# print(radian_degree.T[1])
degree_diff = np.array([calculate_degree_diff(idx, radian_degree.T[1]) for idx in range(len(radian_degree.T[1]))])
result = np.c_[np.arange(len(degree_diff)), waypoints, radian_degree, degree_diff]
np.set_printoptions(precision=6)
np.set_printoptions(suppress=True)
np.set_printoptions(threshold=2000)
print(result)
# print(np.c_[np.arange(len(radian), dtype='i4'), result] )
# print(np.c_[])
result = result.T
x = result[1]
y = result[2]
radians = result[3]
degrees = result[4]
degree_diffs = result[5]
# print(degrees)
font = {'family' : 'normal',
'size' : 6}
plt.rc('font', **font)
fig, ax = plt.subplots()
# fig2, ax2 = plt.subplots()
# ax2.hist(degree_diffs, color = 'blue', edgecolor = 'black',
# bins = int(360/1))
# plt.tight_layout()
# plt.interactive(True)
# for i in range(10):
# plt.scatter(i, 0.1, color="r")
# plt.show()
# time.sleep(1)
# from matplotlib.animation import FuncAnimation
# fig, ax = plt.subplots()
# xdata, ydata = [], []
# ln, = plt.plot([], [], 'ro')
# title = ax.text(4 ,0.85, "", bbox={'facecolor':'w', 'alpha':0.5, 'pad':5},
# transform=ax.transAxes, ha="center")
# def init():
# ax.scatter(x,y)
# # ax.set_xlim(0, 2*np.pi)
# # ax.set_ylim(-1, 1)
# return ln,
# def update(frame):
# x = random.randrange(2, 8)
# y = random.randrange(-2,2)
# xdata.append(x)
# ydata.append(y)
# ln.set_data(xdata, ydata)
# tw = random.randint(1,101)
# # title.set_text(u"{}".format(tw))
# ax.set_title(tw)
# return ln,
# ani = FuncAnimation(fig, update, frames=15,
# init_func=init, blit=False, repeat=False, interval=1000)
# plt.show()
# for i, txt in enumerate(x):
# annot = ax.annotate(i, (x[i], y[i]), textcoords="offset points", xytext=(0,0.1))
# annot.set_visible(False)
q = ax.quiver(x, y, np.cos(radian), np.sin(radian))
# plt.quiverkey(q, x, y , 7, r'vector2',
# labelpos='S', coordinates = 'figure')
plt.show()
| 120.901961
| 7,432
| 0.764894
| 1,964
| 18,498
| 7.16446
| 0.423116
| 0.042072
| 0.009665
| 0.004051
| 0.030133
| 0.008812
| 0.004833
| 0
| 0
| 0
| 0
| 0.68446
| 0.076387
| 18,498
| 152
| 7,433
| 121.697368
| 0.139128
| 0.725592
| 0
| 0
| 0
| 0
| 0.040024
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.065217
| false
| 0
| 0.108696
| 0.021739
| 0.23913
| 0.130435
| 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
|
98b148a248b8b92482c4d30910fb0f2e0089a675
| 245
|
py
|
Python
|
mlir/utils/mbr/setup.py
|
LaudateCorpus1/llvm-project
|
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
|
[
"Apache-2.0"
] | null | null | null |
mlir/utils/mbr/setup.py
|
LaudateCorpus1/llvm-project
|
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
|
[
"Apache-2.0"
] | null | null | null |
mlir/utils/mbr/setup.py
|
LaudateCorpus1/llvm-project
|
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
|
[
"Apache-2.0"
] | null | null | null |
from setuptools import setup
from setuptools import find_packages
setup(
name="mbr",
version="1.0.0",
packages=find_packages(),
entry_points={
"console_scripts": [
"mbr = mbr.main:main",
],
},
)
| 16.333333
| 36
| 0.579592
| 27
| 245
| 5.111111
| 0.592593
| 0.202899
| 0.289855
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017241
| 0.289796
| 245
| 14
| 37
| 17.5
| 0.775862
| 0
| 0
| 0
| 0
| 0
| 0.171429
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.166667
| 0
| 0.166667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
98b8e256963488ad725a5963b199d95441be62bd
| 124
|
py
|
Python
|
cool_certificate/forms.py
|
vra/cool_certificate
|
a1ea59149b90b8633d0382f5e3fa40cabb2cead2
|
[
"MIT"
] | 1
|
2019-08-19T01:48:18.000Z
|
2019-08-19T01:48:18.000Z
|
cool_certificate/forms.py
|
vra/cool_certificate
|
a1ea59149b90b8633d0382f5e3fa40cabb2cead2
|
[
"MIT"
] | null | null | null |
cool_certificate/forms.py
|
vra/cool_certificate
|
a1ea59149b90b8633d0382f5e3fa40cabb2cead2
|
[
"MIT"
] | null | null | null |
# coding: utf-8
from django import forms
class NameForm(forms.Form):
name = forms.CharField(max_length=100, label="你的大名")
| 20.666667
| 53
| 0.75
| 19
| 124
| 4.842105
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036697
| 0.120968
| 124
| 5
| 54
| 24.8
| 0.807339
| 0.104839
| 0
| 0
| 0
| 0
| 0.036697
| 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
|
7f24d2ae0fbd1a0b0ad2baa56a09bd63935e5322
| 820
|
py
|
Python
|
src/test/cli/test_gitbook.py
|
yedhrab/YPackage
|
0c80325fd0f1cf31b74fc6fd835d2f3046869322
|
[
"Apache-2.0"
] | 2
|
2020-02-17T13:42:34.000Z
|
2020-04-05T14:09:38.000Z
|
src/test/cli/test_gitbook.py
|
yedhrab/YPackage
|
0c80325fd0f1cf31b74fc6fd835d2f3046869322
|
[
"Apache-2.0"
] | 9
|
2019-12-09T23:31:21.000Z
|
2020-04-02T11:07:55.000Z
|
src/test/cli/test_gitbook.py
|
yedhrab/YPackage
|
0c80325fd0f1cf31b74fc6fd835d2f3046869322
|
[
"Apache-2.0"
] | 1
|
2020-04-05T19:35:18.000Z
|
2020-04-05T19:35:18.000Z
|
import pytest
from .commands import check_gitbook
def test_help():
with pytest.raises(SystemExit, match="0"):
check_gitbook(['-h'])
def test_unknown():
with pytest.raises(SystemExit, match="2"):
check_gitbook(['-ü'])
def test_dot():
check_gitbook(".")
def test_path():
check_gitbook("../YLib")
def test_recreate():
check_gitbook("../YLib -r")
def test_generate():
check_gitbook("../YLib -g")
def test_multipath():
check_gitbook("../YLib ../YPython")
def test_multipath_debug():
check_gitbook("../YLib ../YPython -d")
def test_wildcard():
check_gitbook("../*")
def test_changelog():
check_gitbook(
"../YLib -c -ru https://github.com/YEmreAk/YLib"
)
def test_base_integration():
check_gitbook("ygitbookintegration ../YLib -c")
| 15.769231
| 56
| 0.639024
| 99
| 820
| 5.040404
| 0.40404
| 0.288577
| 0.192385
| 0.114228
| 0.124249
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002994
| 0.185366
| 820
| 51
| 57
| 16.078431
| 0.744012
| 0
| 0
| 0
| 0
| 0
| 0.186585
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.392857
| true
| 0
| 0.071429
| 0
| 0.464286
| 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
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7f78df96796dfe52a1c1122f90bf97309e2f6169
| 566
|
py
|
Python
|
django_fire/hashers.py
|
lordpeara/django-fire
|
d5ee014cda9169ab093e1d032b2e76545f03a696
|
[
"MIT"
] | 1
|
2020-06-29T07:19:57.000Z
|
2020-06-29T07:19:57.000Z
|
django_fire/hashers.py
|
lordpeara/django-fire
|
d5ee014cda9169ab093e1d032b2e76545f03a696
|
[
"MIT"
] | 1
|
2020-06-26T14:42:59.000Z
|
2020-06-26T14:42:59.000Z
|
django_fire/hashers.py
|
lordpeara/django-fire
|
d5ee014cda9169ab093e1d032b2e76545f03a696
|
[
"MIT"
] | null | null | null |
from django.contrib.auth.hashers import (
UNUSABLE_PASSWORD_PREFIX, UNUSABLE_PASSWORD_SUFFIX_LENGTH
)
from django.utils.crypto import get_random_string
FIRED_PASSWORD_MARK = ':fired-password:'
FIRED_PASSWORD_PREFIX = UNUSABLE_PASSWORD_PREFIX + FIRED_PASSWORD_MARK
FIRED_PASSWORD_SUFFIX_LENGTH = (
UNUSABLE_PASSWORD_SUFFIX_LENGTH - len(FIRED_PASSWORD_MARK)
)
def is_password_fired(encoded):
return encoded.startswith(FIRED_PASSWORD_PREFIX)
def make_fired_password():
return FIRED_PASSWORD_PREFIX + get_random_string(FIRED_PASSWORD_SUFFIX_LENGTH)
| 29.789474
| 82
| 0.839223
| 73
| 566
| 6.013699
| 0.342466
| 0.296128
| 0.182232
| 0.136674
| 0.234624
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.100707
| 566
| 18
| 83
| 31.444444
| 0.862475
| 0
| 0
| 0
| 0
| 0
| 0.028269
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.153846
| false
| 0.692308
| 0.153846
| 0.153846
| 0.461538
| 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
| 0
| 1
| 0
| 1
| 0
| 0
|
0
| 4
|
7fb411d7332bdec7216cae0873ae4a2f79f78969
| 14,052
|
py
|
Python
|
cmibs/cisco_vpdn_mgmt_mib.py
|
prorevizor/noc
|
37e44b8afc64318b10699c06a1138eee9e7d6a4e
|
[
"BSD-3-Clause"
] | 84
|
2017-10-22T11:01:39.000Z
|
2022-02-27T03:43:48.000Z
|
cmibs/cisco_vpdn_mgmt_mib.py
|
prorevizor/noc
|
37e44b8afc64318b10699c06a1138eee9e7d6a4e
|
[
"BSD-3-Clause"
] | 22
|
2017-12-11T07:21:56.000Z
|
2021-09-23T02:53:50.000Z
|
cmibs/cisco_vpdn_mgmt_mib.py
|
prorevizor/noc
|
37e44b8afc64318b10699c06a1138eee9e7d6a4e
|
[
"BSD-3-Clause"
] | 23
|
2017-12-06T06:59:52.000Z
|
2022-02-24T00:02:25.000Z
|
# ----------------------------------------------------------------------
# CISCO-VPDN-MGMT-MIB
# Compiled MIB
# Do not modify this file directly
# Run ./noc mib make-cmib instead
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# MIB Name
NAME = "CISCO-VPDN-MGMT-MIB"
# Metadata
LAST_UPDATED = "2009-06-16"
COMPILED = "2020-01-19"
# MIB Data: name -> oid
MIB = {
"CISCO-VPDN-MGMT-MIB::ciscoVpdnMgmtMIB": "1.3.6.1.4.1.9.10.24",
"CISCO-VPDN-MGMT-MIB::ciscoVpdnMgmtMIBNotifs": "1.3.6.1.4.1.9.10.24.0",
"CISCO-VPDN-MGMT-MIB::cvpdnNotifSessionID": "1.3.6.1.4.1.9.10.24.0.1",
"CISCO-VPDN-MGMT-MIB::cvpdnNotifSessionEvent": "1.3.6.1.4.1.9.10.24.0.2",
"CISCO-VPDN-MGMT-MIB::cvpdnNotifSession": "1.3.6.1.4.1.9.10.24.0.3",
"CISCO-VPDN-MGMT-MIB::ciscoVpdnMgmtMIBObjects": "1.3.6.1.4.1.9.10.24.1",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemInfo": "1.3.6.1.4.1.9.10.24.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelTotal": "1.3.6.1.4.1.9.10.24.1.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionTotal": "1.3.6.1.4.1.9.10.24.1.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnDeniedUsersTotal": "1.3.6.1.4.1.9.10.24.1.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemTable": "1.3.6.1.4.1.9.10.24.1.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemEntry": "1.3.6.1.4.1.9.10.24.1.1.4.1",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemTunnelType": "1.3.6.1.4.1.9.10.24.1.1.4.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemTunnelTotal": "1.3.6.1.4.1.9.10.24.1.1.4.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemSessionTotal": "1.3.6.1.4.1.9.10.24.1.1.4.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemDeniedUsersTotal": "1.3.6.1.4.1.9.10.24.1.1.4.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemInitialConnReq": "1.3.6.1.4.1.9.10.24.1.1.4.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemSuccessConnReq": "1.3.6.1.4.1.9.10.24.1.1.4.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemFailedConnReq": "1.3.6.1.4.1.9.10.24.1.1.4.1.7",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemNotifSessionEnabled": "1.3.6.1.4.1.9.10.24.1.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnSystemClearSessions": "1.3.6.1.4.1.9.10.24.1.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelInfo": "1.3.6.1.4.1.9.10.24.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelTable": "1.3.6.1.4.1.9.10.24.1.2.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelEntry": "1.3.6.1.4.1.9.10.24.1.2.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelTunnelId": "1.3.6.1.4.1.9.10.24.1.2.1.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelRemoteTunnelId": "1.3.6.1.4.1.9.10.24.1.2.1.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelLocalName": "1.3.6.1.4.1.9.10.24.1.2.1.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelRemoteName": "1.3.6.1.4.1.9.10.24.1.2.1.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelRemoteEndpointName": "1.3.6.1.4.1.9.10.24.1.2.1.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelLocalInitConnection": "1.3.6.1.4.1.9.10.24.1.2.1.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelOrigCause": "1.3.6.1.4.1.9.10.24.1.2.1.1.7",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelState": "1.3.6.1.4.1.9.10.24.1.2.1.1.8",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelActiveSessions": "1.3.6.1.4.1.9.10.24.1.2.1.1.9",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelDeniedUsers": "1.3.6.1.4.1.9.10.24.1.2.1.1.10",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSoftshut": "1.3.6.1.4.1.9.10.24.1.2.1.1.12",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelNetworkServiceType": "1.3.6.1.4.1.9.10.24.1.2.1.1.13",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelLocalIpAddress": "1.3.6.1.4.1.9.10.24.1.2.1.1.14",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSourceIpAddress": "1.3.6.1.4.1.9.10.24.1.2.1.1.15",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelRemoteIpAddress": "1.3.6.1.4.1.9.10.24.1.2.1.1.16",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrTable": "1.3.6.1.4.1.9.10.24.1.2.2",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrEntry": "1.3.6.1.4.1.9.10.24.1.2.2.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrTunnelId": "1.3.6.1.4.1.9.10.24.1.2.2.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrRemoteTunnelId": "1.3.6.1.4.1.9.10.24.1.2.2.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrLocalName": "1.3.6.1.4.1.9.10.24.1.2.2.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrRemoteName": "1.3.6.1.4.1.9.10.24.1.2.2.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrRemoteEndpointName": "1.3.6.1.4.1.9.10.24.1.2.2.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrLocalInitConnection": "1.3.6.1.4.1.9.10.24.1.2.2.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrOrigCause": "1.3.6.1.4.1.9.10.24.1.2.2.1.7",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrState": "1.3.6.1.4.1.9.10.24.1.2.2.1.8",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrActiveSessions": "1.3.6.1.4.1.9.10.24.1.2.2.1.9",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrDeniedUsers": "1.3.6.1.4.1.9.10.24.1.2.2.1.10",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrSoftshut": "1.3.6.1.4.1.9.10.24.1.2.2.1.11",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrNetworkServiceType": "1.3.6.1.4.1.9.10.24.1.2.2.1.12",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrLocalIpAddress": "1.3.6.1.4.1.9.10.24.1.2.2.1.13",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrSourceIpAddress": "1.3.6.1.4.1.9.10.24.1.2.2.1.14",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrRemoteIpAddress": "1.3.6.1.4.1.9.10.24.1.2.2.1.15",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrLocalInetAddressType": "1.3.6.1.4.1.9.10.24.1.2.2.1.16",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrLocalInetAddress": "1.3.6.1.4.1.9.10.24.1.2.2.1.17",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrSourceInetAddressType": "1.3.6.1.4.1.9.10.24.1.2.2.1.18",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrSourceInetAddress": "1.3.6.1.4.1.9.10.24.1.2.2.1.19",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrRemoteInetAddressType": "1.3.6.1.4.1.9.10.24.1.2.2.1.20",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelAttrRemoteInetAddress": "1.3.6.1.4.1.9.10.24.1.2.2.1.21",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionInfo": "1.3.6.1.4.1.9.10.24.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionTable": "1.3.6.1.4.1.9.10.24.1.3.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionEntry": "1.3.6.1.4.1.9.10.24.1.3.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionId": "1.3.6.1.4.1.9.10.24.1.3.1.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionUserName": "1.3.6.1.4.1.9.10.24.1.3.1.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionState": "1.3.6.1.4.1.9.10.24.1.3.1.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionCallDuration": "1.3.6.1.4.1.9.10.24.1.3.1.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionPacketsOut": "1.3.6.1.4.1.9.10.24.1.3.1.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionBytesOut": "1.3.6.1.4.1.9.10.24.1.3.1.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionPacketsIn": "1.3.6.1.4.1.9.10.24.1.3.1.1.7",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionBytesIn": "1.3.6.1.4.1.9.10.24.1.3.1.1.8",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionDeviceType": "1.3.6.1.4.1.9.10.24.1.3.1.1.9",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionDeviceCallerId": "1.3.6.1.4.1.9.10.24.1.3.1.1.10",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionDevicePhyId": "1.3.6.1.4.1.9.10.24.1.3.1.1.11",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionMultilink": "1.3.6.1.4.1.9.10.24.1.3.1.1.12",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionModemSlotIndex": "1.3.6.1.4.1.9.10.24.1.3.1.1.13",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionModemPortIndex": "1.3.6.1.4.1.9.10.24.1.3.1.1.14",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionDS1SlotIndex": "1.3.6.1.4.1.9.10.24.1.3.1.1.15",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionDS1PortIndex": "1.3.6.1.4.1.9.10.24.1.3.1.1.16",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionDS1ChannelIndex": "1.3.6.1.4.1.9.10.24.1.3.1.1.17",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionModemCallStartTime": "1.3.6.1.4.1.9.10.24.1.3.1.1.18",
"CISCO-VPDN-MGMT-MIB::cvpdnTunnelSessionModemCallStartIndex": "1.3.6.1.4.1.9.10.24.1.3.1.1.19",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrTable": "1.3.6.1.4.1.9.10.24.1.3.2",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrEntry": "1.3.6.1.4.1.9.10.24.1.3.2.1",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrSessionId": "1.3.6.1.4.1.9.10.24.1.3.2.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrUserName": "1.3.6.1.4.1.9.10.24.1.3.2.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrState": "1.3.6.1.4.1.9.10.24.1.3.2.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrCallDuration": "1.3.6.1.4.1.9.10.24.1.3.2.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrPacketsOut": "1.3.6.1.4.1.9.10.24.1.3.2.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrBytesOut": "1.3.6.1.4.1.9.10.24.1.3.2.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrPacketsIn": "1.3.6.1.4.1.9.10.24.1.3.2.1.7",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrBytesIn": "1.3.6.1.4.1.9.10.24.1.3.2.1.8",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrDeviceType": "1.3.6.1.4.1.9.10.24.1.3.2.1.9",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrDeviceCallerId": "1.3.6.1.4.1.9.10.24.1.3.2.1.10",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrDevicePhyId": "1.3.6.1.4.1.9.10.24.1.3.2.1.11",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrMultilink": "1.3.6.1.4.1.9.10.24.1.3.2.1.12",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrModemSlotIndex": "1.3.6.1.4.1.9.10.24.1.3.2.1.13",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrModemPortIndex": "1.3.6.1.4.1.9.10.24.1.3.2.1.14",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrDS1SlotIndex": "1.3.6.1.4.1.9.10.24.1.3.2.1.15",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrDS1PortIndex": "1.3.6.1.4.1.9.10.24.1.3.2.1.16",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrDS1ChannelIndex": "1.3.6.1.4.1.9.10.24.1.3.2.1.17",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrModemCallStartTime": "1.3.6.1.4.1.9.10.24.1.3.2.1.18",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrModemCallStartIndex": "1.3.6.1.4.1.9.10.24.1.3.2.1.19",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrVirtualCircuitID": "1.3.6.1.4.1.9.10.24.1.3.2.1.20",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrSentPktsDropped": "1.3.6.1.4.1.9.10.24.1.3.2.1.21",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrRecvPktsDropped": "1.3.6.1.4.1.9.10.24.1.3.2.1.22",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrMultilinkBundle": "1.3.6.1.4.1.9.10.24.1.3.2.1.23",
"CISCO-VPDN-MGMT-MIB::cvpdnSessionAttrMultilinkIfIndex": "1.3.6.1.4.1.9.10.24.1.3.2.1.24",
"CISCO-VPDN-MGMT-MIB::cvpdnUserToFailHistInfo": "1.3.6.1.4.1.9.10.24.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnUserToFailHistInfoTable": "1.3.6.1.4.1.9.10.24.1.4.1",
"CISCO-VPDN-MGMT-MIB::cvpdnUserToFailHistInfoEntry": "1.3.6.1.4.1.9.10.24.1.4.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistUname": "1.3.6.1.4.1.9.10.24.1.4.1.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistTunnelId": "1.3.6.1.4.1.9.10.24.1.4.1.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistUserId": "1.3.6.1.4.1.9.10.24.1.4.1.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistLocalInitConn": "1.3.6.1.4.1.9.10.24.1.4.1.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistLocalName": "1.3.6.1.4.1.9.10.24.1.4.1.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistRemoteName": "1.3.6.1.4.1.9.10.24.1.4.1.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistSourceIp": "1.3.6.1.4.1.9.10.24.1.4.1.1.7",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistDestIp": "1.3.6.1.4.1.9.10.24.1.4.1.1.8",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistCount": "1.3.6.1.4.1.9.10.24.1.4.1.1.9",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistFailTime": "1.3.6.1.4.1.9.10.24.1.4.1.1.10",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistFailType": "1.3.6.1.4.1.9.10.24.1.4.1.1.11",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistFailReason": "1.3.6.1.4.1.9.10.24.1.4.1.1.12",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistSourceInetType": "1.3.6.1.4.1.9.10.24.1.4.1.1.13",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistSourceInetAddr": "1.3.6.1.4.1.9.10.24.1.4.1.1.14",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistDestInetType": "1.3.6.1.4.1.9.10.24.1.4.1.1.15",
"CISCO-VPDN-MGMT-MIB::cvpdnUnameToFailHistDestInetAddr": "1.3.6.1.4.1.9.10.24.1.4.1.1.16",
"CISCO-VPDN-MGMT-MIB::cvpdnTemplateInfo": "1.3.6.1.4.1.9.10.24.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnTemplateTable": "1.3.6.1.4.1.9.10.24.1.5.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTemplateEntry": "1.3.6.1.4.1.9.10.24.1.5.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTemplateName": "1.3.6.1.4.1.9.10.24.1.5.1.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnTemplateActiveSessions": "1.3.6.1.4.1.9.10.24.1.5.1.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnMultilinkInfo": "1.3.6.1.4.1.9.10.24.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnBundlesWithOneLink": "1.3.6.1.4.1.9.10.24.1.6.1",
"CISCO-VPDN-MGMT-MIB::cvpdnBundlesWithTwoLinks": "1.3.6.1.4.1.9.10.24.1.6.2",
"CISCO-VPDN-MGMT-MIB::cvpdnBundlesWithMoreThanTwoLinks": "1.3.6.1.4.1.9.10.24.1.6.3",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleTable": "1.3.6.1.4.1.9.10.24.1.6.4",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleEntry": "1.3.6.1.4.1.9.10.24.1.6.4.1",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleName": "1.3.6.1.4.1.9.10.24.1.6.4.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleLinkCount": "1.3.6.1.4.1.9.10.24.1.6.4.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleEndpointType": "1.3.6.1.4.1.9.10.24.1.6.4.1.3",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleEndpoint": "1.3.6.1.4.1.9.10.24.1.6.4.1.4",
"CISCO-VPDN-MGMT-MIB::cvpdnBundlePeerIpAddrType": "1.3.6.1.4.1.9.10.24.1.6.4.1.5",
"CISCO-VPDN-MGMT-MIB::cvpdnBundlePeerIpAddr": "1.3.6.1.4.1.9.10.24.1.6.4.1.6",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleEndpointClass": "1.3.6.1.4.1.9.10.24.1.6.4.1.7",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleLastChanged": "1.3.6.1.4.1.9.10.24.1.6.5",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleChildTable": "1.3.6.1.4.1.9.10.24.1.6.6",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleChildEntry": "1.3.6.1.4.1.9.10.24.1.6.6.1",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleChildTunnelType": "1.3.6.1.4.1.9.10.24.1.6.6.1.1",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleChildTunnelId": "1.3.6.1.4.1.9.10.24.1.6.6.1.2",
"CISCO-VPDN-MGMT-MIB::cvpdnBundleChildSessionId": "1.3.6.1.4.1.9.10.24.1.6.6.1.3",
"CISCO-VPDN-MGMT-MIB::ciscoVpdnMgmtMIBConformance": "1.3.6.1.4.1.9.10.24.3",
"CISCO-VPDN-MGMT-MIB::ciscoVpdnMgmtMIBCompliances": "1.3.6.1.4.1.9.10.24.3.1",
"CISCO-VPDN-MGMT-MIB::ciscoVpdnMgmtMIBGroups": "1.3.6.1.4.1.9.10.24.3.2",
}
DISPLAY_HINTS = {}
| 78.502793
| 99
| 0.650726
| 2,922
| 14,052
| 3.128679
| 0.074606
| 0.046598
| 0.059724
| 0.276526
| 0.533581
| 0.506454
| 0.466747
| 0.252242
| 0.248633
| 0.247429
| 0
| 0.19013
| 0.071378
| 14,052
| 178
| 100
| 78.94382
| 0.510461
| 0.029462
| 0
| 0
| 0
| 0.938272
| 0.85622
| 0.851963
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7fb71de96d38b9f33a8238ef956b48e7ae7a1a88
| 1,182
|
py
|
Python
|
solutions/socialdistancing2.py
|
24TangC/USACO-Bronze
|
80f0986cb04998b039ba23c7349d25431b4e876b
|
[
"MIT"
] | null | null | null |
solutions/socialdistancing2.py
|
24TangC/USACO-Bronze
|
80f0986cb04998b039ba23c7349d25431b4e876b
|
[
"MIT"
] | null | null | null |
solutions/socialdistancing2.py
|
24TangC/USACO-Bronze
|
80f0986cb04998b039ba23c7349d25431b4e876b
|
[
"MIT"
] | null | null | null |
N = int(input())
positions = []
for x in range(N):
input_line = input().split()
positions.append([int(input_line[0]), int(input_line[1])])
sorted_positions = sorted(positions)
minRadius = 1000000
for x in range(len(sorted_positions)-1):
if sorted_positions[x][1] == 0 and sorted_positions[x-1][1] == 1:
distance = abs(sorted_positions[x-1][0] - sorted_positions[x][0])
if distance < minRadius:
minRadius = distance
if sorted_positions[x][1] == 0 and sorted_positions[x+1][1] == 1:
distance = abs(sorted_positions[x][0] - sorted_positions[x+1][0])
if distance < minRadius:
minRadius = distance
minRadius -= 1
visited = [False] * len(sorted_positions)
counter = 0
previous = 0
for x in range(0, len(sorted_positions)):
if x == 0:
if sorted_positions[x][1] == 1:
counter += 1
elif sorted_positions[x][1] == 1:
if abs(sorted_positions[x][0] - previous) <= minRadius:
pass
else:
counter += 1
elif sorted_positions[x][1] == 0:
pass
previous = sorted_positions[x][0]
print(counter)
| 27.488372
| 74
| 0.586294
| 157
| 1,182
| 4.286624
| 0.184713
| 0.401189
| 0.309064
| 0.22734
| 0.493314
| 0.401189
| 0.291233
| 0.205052
| 0.205052
| 0.205052
| 0
| 0.047897
| 0.275804
| 1,182
| 42
| 75
| 28.142857
| 0.738318
| 0
| 0
| 0.242424
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.060606
| 0
| 0
| 0
| 0.030303
| 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
|
f6828224c419f94f7318771ddc9a907343c8c7bc
| 691
|
py
|
Python
|
cngi/vis/__init__.py
|
FedeMPouzols/cngi_prototype
|
421a99c460f4092b79120f5bec122de7ce9b8b96
|
[
"Apache-2.0"
] | null | null | null |
cngi/vis/__init__.py
|
FedeMPouzols/cngi_prototype
|
421a99c460f4092b79120f5bec122de7ce9b8b96
|
[
"Apache-2.0"
] | null | null | null |
cngi/vis/__init__.py
|
FedeMPouzols/cngi_prototype
|
421a99c460f4092b79120f5bec122de7ce9b8b96
|
[
"Apache-2.0"
] | null | null | null |
"""
These functions examine or manipulate Visibility data in the xarray Dataset (xds) format. They
take an xds as input and return a new xds or some other structure as
output. Some may operate directly on the zarr data store on
disk.
The input xarray Dataset is never modified.
To access these functions, use your favorite variation of:
``import cngi.vis``
"""
from .applyflags import *
from .chanaverage import *
from .chansmooth import *
from .ddijoin import *
from .visjoin import *
from .phaseshift import *
from .ddiregrid import *
from .timeaverage import *
from .uvcontfit import *
from .uvmodelfit import *
from .visplot import *
from .sdfit import *
from .sdpolaverage import *
| 27.64
| 95
| 0.765557
| 99
| 691
| 5.343434
| 0.606061
| 0.226843
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16932
| 691
| 24
| 96
| 28.791667
| 0.921603
| 0.515195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f690533fc33673fb4326312e91cca69a67d28567
| 178
|
py
|
Python
|
src/imitation/data/__init__.py
|
dreamfyrian/imitation
|
682bc4b919baf57bdd959ac646caba21d92cdf71
|
[
"MIT"
] | 438
|
2019-04-11T22:02:03.000Z
|
2022-03-30T05:17:19.000Z
|
src/imitation/data/__init__.py
|
dreamfyrian/imitation
|
682bc4b919baf57bdd959ac646caba21d92cdf71
|
[
"MIT"
] | 397
|
2019-03-22T18:24:10.000Z
|
2022-03-29T23:08:05.000Z
|
src/imitation/data/__init__.py
|
dreamfyrian/imitation
|
682bc4b919baf57bdd959ac646caba21d92cdf71
|
[
"MIT"
] | 106
|
2019-04-11T22:02:08.000Z
|
2022-03-28T14:12:20.000Z
|
"""Modules handling environment data.
For example: types for transitions/trajectories; methods to compute rollouts;
buffers to store transitions; helpers for these modules.
"""
| 29.666667
| 77
| 0.797753
| 22
| 178
| 6.454545
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129213
| 178
| 5
| 78
| 35.6
| 0.916129
| 0.955056
| 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
|
f6a2767b2fb67e55e13208c065c46a0a2abc914c
| 11,826
|
py
|
Python
|
TestingComponent.py
|
bjoernhad/CondorcetWinnerTestification
|
3aa5131bb9e217e8dbaf781db22c6c373e24e5ee
|
[
"MIT"
] | 1
|
2021-06-12T13:04:40.000Z
|
2021-06-12T13:04:40.000Z
|
TestingComponent.py
|
bjoernhad/CondorcetWinnerTestification
|
3aa5131bb9e217e8dbaf781db22c6c373e24e5ee
|
[
"MIT"
] | null | null | null |
TestingComponent.py
|
bjoernhad/CondorcetWinnerTestification
|
3aa5131bb9e217e8dbaf781db22c6c373e24e5ee
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This file implements the class 'CW_TestingComponent' and its superclass
'TestingComponent'.
It is an implementation of Algorithm 1 (Noisy Tournament Sampling) in
[Haddenhorst2021].
[Haddenhorst2021]: B. Haddenhorst, V. Bengs, J. Brandt and E.Hüllermeier,
Testification of Condorcet Winners in Dueling Bandits, Proceedings of UAI, 2021
"""
import TestEnvironment as tenv
import ReciprocalRelations as rr
import numpy as np
from scipy.special import binom
import math
import GraphTheoreticalPrerequisites as graph
import networkx as nx
###############################################################################
# Class: TestingComponent
###############################################################################
class TestingComponent(object):
def __init__(self):
assert False, "Do NOT create an object of the superclass 'TestingComponent' itself!"
def getDecision(self,N,R):
assert False, "Every TestingComponent needs a method `getDecision`. Note: Do NOT create an object of the superclass `PBMAB_algorithm` itself!"
###############################################################################
# Class: CW_TestingComponent (Subclass of TestingComponent)
###############################################################################
class CW_TestingComponent(TestingComponent):
def __init__(self, N, R, h=0.01, gamma=0.1):
"""
Initializes the LRT_TestingComponent instance
N: NumPy array of size (m,m) (m: number of alternatives), where N[i,i]=0 and N[i,j]=N[j,i] for all i,j.
(N[i,j] is the number of times i has been compared with j)
R: NumPy array of size (m,m) with R[i,j]+R[j,i]=N[i,j] for all i,j.
(R[i,j] is the number of times i has won against j)
h: min difference of win probabilities to 0.5
gamma: confidence in (0,1)
"""
assert 0 < h < 0.5 and type(h) is float
assert 0 < gamma < 1 and type(gamma) is float
assert type(N) is np.ndarray and len(N.shape) == 2 and N.shape[0] == N.shape[
1], "N either has to be `False` or a NumPy array of size (m,m) with N[i,i] = 0 and N[i,j]=N[j,i] for all distinct i,j. (Here, m is the number of alternatives)"
self.m = N.shape[0]
assert all(N[i, i] == 0 for i in range(0, self.m)) and (
(N - np.matrix.transpose(N)).astype(int) == np.zeros(
N.shape)).all(), "`N` has to fulfill N[i,i] = 0 and N[i,j]=N[j,i] for all distinct i,j."
assert type(R) is np.ndarray and type(N) is np.ndarray and R.shape == (self.m, self.m) and (
R + np.matrix.transpose(
R) == N).all(), "`R` has to be `False` or a NumPy array of size (m,m) with R[i,j]+R[j,i]=N[i,j] for all i,j. ((Here, m is the number of alternatives)"
self.N = N.astype(int)
self.R = R.astype(int)
self.time = int(np.sum(self.R))
self.h = h
self.gamma = gamma
self.gamma_1 = self.gamma/self.m
def update(self, arm1, arm2, feedback):
"""
Updates the internal statistics after a comparison of 'arm1' with 'arm2' with outcome 'feedback'.
(In case feedback==True, arm1 has won, otherwise arm2 has won.)
arm1: integer in 0,1,...,m-1 (m:number of alternatives)
arm2: integer in 0,1,...,m-1
feedback: either True or False
"""
assert type(arm1) is int and 0 <= arm1 and arm1 < self.m, "'arm1' has to be one of the integers 0,1,2,...,m-1."
assert type(arm2) is int and 0 <= arm2 and arm2 < self.m, "'arm2' has to be one of the integers 0,1,2,...,m-1."
assert feedback == True or feedback == False, "'feedback' has to be either True (meaning that arm1 won against arm2) or False (meaning that arm2 won against arm1"
self.N[arm1, arm2] += 1
if arm2 != arm1:
self.N[arm2, arm1] += 1
if feedback == True:
self.R[arm1, arm2] += 1
elif arm2 != arm1:
self.R[arm2, arm1] += 1
self.time += 1
def C(self, N):
"""
Compute Confidence interval boundary
"""
# if N == 0:
# return math.inf
# eps = 0.5
# delta = math.log(1 + eps) * math.pow(eps * self.gamma_1 / (2 + eps), 1 / (1 + eps))
# return max(0, (1 + math.sqrt(eps)) * math.sqrt(
# 0.5 * (1 + eps) * math.log(math.log((1 + eps) * N) / delta) / N) - self.h)
return (1/(2*N)) * np.ceil(np.log( (1-self.gamma_1) / self.gamma_1 ) / np.log( (0.5+self.h) / (0.5-self.h) ))
def TC(self):
"""
Termination criteria which checks if every estimated win probability is confident enough
"""
if np.sum(self.N) < self.m * self.m - self.m :
# not all pairs are regarded once
return False
q = self.R / self.N
# check if all estimated win probabilities are sure enough
for line in range(self.m):
for column in range(self.m):
if line != column:
c = self.C(self.N[line, column])
if q[line, column] >= 0.5 - c and q[line, column] <= 0.5 + c:
return False
# if termination criteria is fulfilled print the time
print("Termination iteration: " + str(self.time))
return True
def DC(self):
"""
Decision criteria which checks whether there exists a CW or not
"""
q = self.R / self.N
# check whether there exists an arm which have win probabilities > 0.5 against every other arm except itself
for line in range(self.m):
CW = True
for column in range(self.m):
if line != column:
if q[line, column] < 0.5:
# line is definitiv not the CW!
CW = False
continue
if CW == True:
# we have found a CW!
break
# printing the result
if CW == True:
print("CW exists!")
else:
print("CW does not exist!")
return CW
###############################################################################
# Class: Symmetric_TestingComponent (Subclass of TestingComponent)
###############################################################################
class Symmetric_TestingComponent(TestingComponent):
def __init__(self, N, R, h=0.01, gamma=0.1):
"""
Initializes the LRT_TestingComponent instance
N: NumPy array of size (m,m) (m: number of alternatives), where N[i,i]=0 and N[i,j]=N[j,i] for all i,j.
(N[i,j] is the number of times i has been compared with j)
R: NumPy array of size (m,m) with R[i,j]+R[j,i]=N[i,j] for all i,j.
(R[i,j] is the number of times i has won against j)
h: min difference of win probabilities to 0.5
gamma: confidence in (0,1)
"""
#assert 0 < h < 0.5 and type(h) is float
assert 0 < gamma < 1 and type(gamma) is float
assert type(N) is np.ndarray and len(N.shape) == 2 and N.shape[0] == N.shape[
1], "N either has to be `False` or a NumPy array of size (m,m) with N[i,i] = 0 and N[i,j]=N[j,i] for all distinct i,j. (Here, m is the number of alternatives)"
self.m = N.shape[0]
assert all(N[i, i] == 0 for i in range(0, self.m)) and (
(N - np.matrix.transpose(N)).astype(int) == np.zeros(
N.shape)).all(), "`N` has to fulfill N[i,i] = 0 and N[i,j]=N[j,i] for all distinct i,j."
assert type(R) is np.ndarray and type(N) is np.ndarray and R.shape == (self.m, self.m) and (
R + np.matrix.transpose(
R) == N).all(), "`R` has to be `False` or a NumPy array of size (m,m) with R[i,j]+R[j,i]=N[i,j] for all i,j. ((Here, m is the number of alternatives)"
self.N = N.astype(int)
self.R = R.astype(int)
self.time = int(np.sum(self.R))
self.h = h
self.gamma = gamma
self.gamma_1 = self.gamma/self.m
self.E = []
self.G = nx.DiGraph()
for i in range(0, self.m):
self.G.add_node(i, key=i)
def update(self, arm1, arm2, feedback):
"""
Updates the internal statistics after a comparison of 'arm1' with 'arm2' with outcome 'feedback'.
(In case feedback==True, arm1 has won, otherwise arm2 has won.)
arm1: integer in 0,1,...,m-1 (m:number of alternatives)
arm2: integer in 0,1,...,m-1
feedback: either True or False
"""
assert type(arm1) is int and 0 <= arm1 and arm1 < self.m, "'arm1' has to be one of the integers 0,1,2,...,m-1."
assert type(arm2) is int and 0 <= arm2 and arm2 < self.m, "'arm2' has to be one of the integers 0,1,2,...,m-1."
assert feedback == True or feedback == False, "'feedback' has to be either True (meaning that arm1 won against arm2) or False (meaning that arm2 won against arm1"
self.N[arm1, arm2] += 1
if arm2 != arm1:
self.N[arm2, arm1] += 1
if feedback == True:
self.R[arm1, arm2] += 1
elif arm2 != arm1:
self.R[arm2, arm1] += 1
self.time += 1
self.update_edges(arm1, arm2)
def update_edges(self, i, j):
"""
checks whether the confidence for estimated win probabilities is high enough to add an edge
i & j: arm pair which was compared
"""
assert type(i) is int and i >= 0 and i <= self.m
assert type(j) is int and j >= 0 and j <= self.m
c = self.C(self.N[i, j])
if self.R[i, j] / self.N[i, j] > 0.5 + c and not self.G.has_edge(j, i):
self.G.add_edge(i, j)
if self.R[i, j] / self.N[i, j] < 0.5 - c and not self.G.has_edge(i, j):
self.G.add_edge(j, i)
def C(self, N):
"""
Compute Confidence interval boundary
"""
# if N==0:
# return math.inf
# eps = 0.5
# delta = math.log(1 + eps) * math.pow(eps * self.gamma / (2 + eps), 1 / (1 + eps))
# return max(0, (1 + math.sqrt(eps)) * math.sqrt(
# 0.5 * (1 + eps) * math.log(math.log((1 + eps) * N) / delta) / N) - self.h)
return (1/(2*N)) * np.ceil(np.log( (1-self.gamma_1) / self.gamma_1 ) / np.log( (0.5+self.h) / (0.5-self.h) ))
def TC(self):
"""
checks whether every extension has a CW or has not a CW
"""
if graph.is_CW_in_extension(self.G):
# print result
# print("Termination iteration: " + str(self.time))
return True
if graph.is_nonCW_in_extension(self.G):
# print result
# print("Termination iteration: " + str(self.time))
return True
return False
def DC(self):
"""
checks whether every extension has a CW or has not a CW
"""
if graph.is_CW_in_extension(self.G):
# print result
# print("CW exists!")
return True
if graph.is_nonCW_in_extension(self.G):
# print result
# print("CW does not exist!")
return False
def find_CW(self):
return graph.Find_CW(self.G)
| 46.015564
| 176
| 0.513191
| 1,717
| 11,826
| 3.506698
| 0.12813
| 0.01229
| 0.007474
| 0.021259
| 0.747218
| 0.727952
| 0.706693
| 0.70387
| 0.677628
| 0.666667
| 0
| 0.029097
| 0.328683
| 11,826
| 256
| 177
| 46.195313
| 0.729311
| 0.301116
| 0
| 0.671756
| 0
| 0.068702
| 0.197659
| 0
| 0
| 0
| 0
| 0
| 0.145038
| 1
| 0.10687
| false
| 0
| 0.053435
| 0.007634
| 0.274809
| 0.022901
| 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
|
f6aff38154d58d0b3f7b404e333174063093179a
| 108
|
py
|
Python
|
localization/pipeline/arm_position/msl/__init__.py
|
cameronwp/MMGIS
|
5e6277bd4f0c8ff77cd12dce51d41abffe0ac394
|
[
"Apache-2.0",
"Unlicense"
] | 63
|
2019-03-28T18:46:55.000Z
|
2022-03-25T02:49:24.000Z
|
localization/pipeline/arm_position/msl/__init__.py
|
cameronwp/MMGIS
|
5e6277bd4f0c8ff77cd12dce51d41abffe0ac394
|
[
"Apache-2.0",
"Unlicense"
] | 75
|
2019-10-14T08:54:18.000Z
|
2022-03-30T02:33:29.000Z
|
localization/pipeline/arm_position/msl/__init__.py
|
cameronwp/MMGIS
|
5e6277bd4f0c8ff77cd12dce51d41abffe0ac394
|
[
"Apache-2.0",
"Unlicense"
] | 15
|
2019-12-15T11:26:01.000Z
|
2022-03-25T02:49:27.000Z
|
# Python module file
"""Classes that define properties of the Mars Science Laboratory Curiosity Rover."""
| 36
| 85
| 0.768519
| 14
| 108
| 5.928571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157407
| 108
| 2
| 86
| 54
| 0.912088
| 0.907407
| 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
|
f6b6e5e867adf30332f8046dfb5fbc355ad531d1
| 123
|
py
|
Python
|
use-cases/python/multi_file_structure/pkg/settings/responses.py
|
rockacola/neo-smart-contract-examples
|
d358c31d99fd7c2eed29008f92c123968ef94b0a
|
[
"MIT"
] | 15
|
2018-03-04T10:39:41.000Z
|
2021-12-02T11:07:10.000Z
|
use-cases/python/multi_file_structure/pkg/settings/responses.py
|
rockacola/neo-smart-contract-examples
|
d358c31d99fd7c2eed29008f92c123968ef94b0a
|
[
"MIT"
] | 1
|
2018-07-09T08:18:48.000Z
|
2019-10-23T14:40:11.000Z
|
use-cases/python/multi_file_structure/pkg/settings/responses.py
|
rockacola/neo-smart-contract-examples
|
d358c31d99fd7c2eed29008f92c123968ef94b0a
|
[
"MIT"
] | 7
|
2018-02-27T23:26:46.000Z
|
2021-08-18T05:45:37.000Z
|
class ErrorResponse():
unknown_operation = 'ERR_UNKNOWN_OPERATION'
invalid_args_length = 'ERR_INVALID_ARGS_LENGTH'
| 30.75
| 51
| 0.796748
| 14
| 123
| 6.428571
| 0.571429
| 0.355556
| 0.377778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130081
| 123
| 3
| 52
| 41
| 0.841122
| 0
| 0
| 0
| 0
| 0
| 0.357724
| 0.357724
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 1
| 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
|
f6be0715145edf77b27f73868e879f93fe9ddb0f
| 1,195
|
py
|
Python
|
test_test.py
|
MislavJaksic/rapdevpy
|
bf03c151ed00b88f89d3f6fbfaeed2348fe1e9f7
|
[
"MIT"
] | null | null | null |
test_test.py
|
MislavJaksic/rapdevpy
|
bf03c151ed00b88f89d3f6fbfaeed2348fe1e9f7
|
[
"MIT"
] | null | null | null |
test_test.py
|
MislavJaksic/rapdevpy
|
bf03c151ed00b88f89d3f6fbfaeed2348fe1e9f7
|
[
"MIT"
] | null | null | null |
# Auto-generated pytest file
class TestInit:
def test___init__(self):
fail()
class TestEnter:
def test___enter__(self):
fail()
class TestExit:
def test___exit__(self):
fail()
class TestGetSearchResultCount:
def test_get_search_result_count(self):
fail()
class TestGetSearchResultLinks:
def test_get_search_result_links(self):
fail()
class TestGetSpecialPageLinks:
def test_get_special_page_links(self):
fail()
class TestOpenIdLink:
def test_open_id_link(self):
fail()
class TestExtractSearchResultCount:
def test_extract_search_result_count(self):
fail()
class TestExtractSearchResultLinks:
def test_extract_search_result_links(self):
fail()
class TestExtractSpecialPageLinks:
def test_extract_special_page_links(self):
fail()
class TestTransformLinksToNoRedirectLinks:
def test_transform_links_to_no_redirect_links(self):
fail()
class TestIsSpecialPageIdExists:
def test_is_special_page_id_exists(self):
fail()
class TestLog:
def test_log(self):
fail()
class TestClose:
def test_close(self):
fail()
| 16.830986
| 56
| 0.702929
| 131
| 1,195
| 5.992366
| 0.343511
| 0.124841
| 0.215287
| 0.11465
| 0.287898
| 0.226752
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225105
| 1,195
| 70
| 57
| 17.071429
| 0.847732
| 0.021757
| 0
| 0.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
f6e1694b9a3aaf1f050df6898d9428435b9690ea
| 53
|
py
|
Python
|
tf1x/schematic_utils/real/__init__.py
|
dpaiton/DeepSparseCoding
|
5ea01fa8770794df5e13743aa3f2d85297c27eb1
|
[
"MIT"
] | 12
|
2017-04-27T17:19:31.000Z
|
2021-11-07T03:37:59.000Z
|
tf1x/schematic_utils/real/__init__.py
|
dpaiton/DeepSparseCoding
|
5ea01fa8770794df5e13743aa3f2d85297c27eb1
|
[
"MIT"
] | 12
|
2018-03-21T01:16:25.000Z
|
2022-02-10T00:21:58.000Z
|
tf1x/schematic_utils/real/__init__.py
|
dpaiton/DeepSparseCoding
|
5ea01fa8770794df5e13743aa3f2d85297c27eb1
|
[
"MIT"
] | 12
|
2017-02-01T19:49:57.000Z
|
2021-12-08T03:16:58.000Z
|
from . import plot, util
__all__ = ["plot", "util"]
| 13.25
| 26
| 0.622642
| 7
| 53
| 4.142857
| 0.714286
| 0.551724
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188679
| 53
| 3
| 27
| 17.666667
| 0.674419
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 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
|
f6ffd7f2bafe9e55552cfa695289f877f4d429a2
| 548
|
py
|
Python
|
LeetCode/1-1000/201-300/201-225/205. Isomorphic Strings/solution-python2.py
|
adubois85/coding_challenge_websites
|
7867a05847a216661eff3b24b1cb1480fb7d3030
|
[
"Apache-2.0"
] | null | null | null |
LeetCode/1-1000/201-300/201-225/205. Isomorphic Strings/solution-python2.py
|
adubois85/coding_challenge_websites
|
7867a05847a216661eff3b24b1cb1480fb7d3030
|
[
"Apache-2.0"
] | null | null | null |
LeetCode/1-1000/201-300/201-225/205. Isomorphic Strings/solution-python2.py
|
adubois85/coding_challenge_websites
|
7867a05847a216661eff3b24b1cb1480fb7d3030
|
[
"Apache-2.0"
] | null | null | null |
class Solution:
def isIsomorphic(self, s: str, t: str) -> bool:
# Copy / paste from the "fastest" solution.
# It's sort of beautiful in its simplicity, if wildly esoteric.
# Basically the same thing as the hacky failsafe in my first solution;
# compare the number of unique characters in each string with the
# number of unique characters in a zip of both strings. If there's a
# mismatch in any of them, they can't be isomorphic.
return len(set(zip(s, t))) == len(set(s)) == len(set(t))
| 60.888889
| 78
| 0.64781
| 86
| 548
| 4.127907
| 0.627907
| 0.050704
| 0.061972
| 0.095775
| 0.16338
| 0.16338
| 0
| 0
| 0
| 0
| 0
| 0
| 0.264599
| 548
| 9
| 79
| 60.888889
| 0.880893
| 0.64781
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
1001b24f6b9b67369518ec606bbba40ba8c27d36
| 1,102
|
py
|
Python
|
nilearn/maskers/tests/test_input_data.py
|
ctw/nilearn
|
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
|
[
"BSD-2-Clause"
] | null | null | null |
nilearn/maskers/tests/test_input_data.py
|
ctw/nilearn
|
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
|
[
"BSD-2-Clause"
] | null | null | null |
nilearn/maskers/tests/test_input_data.py
|
ctw/nilearn
|
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
|
[
"BSD-2-Clause"
] | null | null | null |
import pytest
def test_import_from_input_data_with_warning():
"""Tests that importing maskers from deprecated module ``input_data``
still works.
"""
from nilearn import input_data, maskers
assert input_data != maskers
assert maskers.NiftiMasker == input_data.NiftiMasker
assert maskers.NiftiLabelsMasker == input_data.NiftiLabelsMasker
assert maskers.NiftiMapsMasker == input_data.NiftiMapsMasker
assert maskers.NiftiSpheresMasker == input_data.NiftiSpheresMasker
assert maskers.MultiNiftiMasker == input_data.MultiNiftiMasker
from nilearn.input_data import NiftiMapsMasker as masker1
from nilearn.input_data.nifti_maps_masker import NiftiMapsMasker as masker2
assert masker1 is masker2
assert masker1.__module__ == 'nilearn.maskers.nifti_maps_masker'
assert masker2.__module__ == 'nilearn.maskers.nifti_maps_masker'
# Importing privates doesn't work
with pytest.raises(ImportError):
from nilearn.input_data.nifti_masker import _filter_and_mask # noqa
from nilearn.maskers.nifti_masker import _filter_and_mask # noqa
| 44.08
| 79
| 0.784029
| 130
| 1,102
| 6.346154
| 0.315385
| 0.130909
| 0.058182
| 0.072727
| 0.221818
| 0.167273
| 0.082424
| 0
| 0
| 0
| 0
| 0.006452
| 0.15608
| 1,102
| 24
| 80
| 45.916667
| 0.880645
| 0.110708
| 0
| 0
| 0
| 0
| 0.068607
| 0.068607
| 0
| 0
| 0
| 0
| 0.529412
| 1
| 0.058824
| true
| 0
| 0.470588
| 0
| 0.529412
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
100d2f479c5178dfb2b11794c14cb18bb865cc74
| 92
|
py
|
Python
|
online_cognacy_ident/commands/run.py
|
Anaphory/online_cognacy_ident
|
7a986af497e42871ac208d773a009bd844bc10d8
|
[
"MIT"
] | 1
|
2017-11-19T10:35:39.000Z
|
2017-11-19T10:35:39.000Z
|
online_cognacy_ident/commands/run.py
|
Anaphory/online_cognacy_ident
|
7a986af497e42871ac208d773a009bd844bc10d8
|
[
"MIT"
] | 6
|
2017-11-18T20:21:28.000Z
|
2019-01-10T10:56:02.000Z
|
online_cognacy_ident/commands/run.py
|
Anaphory/online_cognacy_ident
|
7a986af497e42871ac208d773a009bd844bc10d8
|
[
"MIT"
] | 1
|
2019-01-08T23:48:36.000Z
|
2019-01-08T23:48:36.000Z
|
from online_cognacy_ident.cli import RunCli
if __name__ == '__main__':
RunCli().run()
| 15.333333
| 43
| 0.717391
| 12
| 92
| 4.666667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.163043
| 92
| 5
| 44
| 18.4
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 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
|
63da1c39170a9cb51c85eac714483bad62c7ca8b
| 272
|
py
|
Python
|
gather/gather.py
|
kaloyan-i-r/crypto-inspect
|
f01f0a76e83db3853bc0986951082615156ff8e3
|
[
"MIT"
] | null | null | null |
gather/gather.py
|
kaloyan-i-r/crypto-inspect
|
f01f0a76e83db3853bc0986951082615156ff8e3
|
[
"MIT"
] | null | null | null |
gather/gather.py
|
kaloyan-i-r/crypto-inspect
|
f01f0a76e83db3853bc0986951082615156ff8e3
|
[
"MIT"
] | null | null | null |
from coinmarketcap import api as cmc
import repackage
repackage.up()
from data import crud
print(crud.update('cmc_ticker',{'id': 'latest'},{'id': 'latest', 'data':cmc.ticker()}))
print(crud.update('cmc_global',{'id': 'latest'},{'id': 'latest', 'data':cmc.global_data()}))
| 38.857143
| 92
| 0.691176
| 39
| 272
| 4.74359
| 0.410256
| 0.172973
| 0.162162
| 0.194595
| 0.248649
| 0.248649
| 0
| 0
| 0
| 0
| 0
| 0
| 0.077206
| 272
| 7
| 92
| 38.857143
| 0.737052
| 0
| 0
| 0
| 0
| 0
| 0.21978
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.333333
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
63eac7317c32760dd18bf3de680b8c71e7ba7f15
| 600
|
py
|
Python
|
vcsmd_helper/read_input.py
|
singularitti/vcsmd_helper
|
38a110d0ba6060dc4a6a11f75549ad62439753ad
|
[
"MIT"
] | null | null | null |
vcsmd_helper/read_input.py
|
singularitti/vcsmd_helper
|
38a110d0ba6060dc4a6a11f75549ad62439753ad
|
[
"MIT"
] | null | null | null |
vcsmd_helper/read_input.py
|
singularitti/vcsmd_helper
|
38a110d0ba6060dc4a6a11f75549ad62439753ad
|
[
"MIT"
] | null | null | null |
import json
# import crystals
__all__ = ['read_input', 'Input']
class Input(object):
def __init__(self, settings: dict):
self._settings = settings
@property
def title(self):
return self._settings['title']
@property
def calculation_type(self):
return self._settings['calc']
@property
def initialization_id(self):
return self._settings['ic']
@property
def output_id(self):
return self._settings['iio']
def read_input(filename: str):
with open(filename) as f:
settings = json.load(f)
return settings
| 17.647059
| 39
| 0.635
| 70
| 600
| 5.185714
| 0.442857
| 0.198347
| 0.15427
| 0.242424
| 0.132231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.255
| 600
| 33
| 40
| 18.181818
| 0.812081
| 0.025
| 0
| 0.190476
| 0
| 0
| 0.049743
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.047619
| 0.190476
| 0.619048
| 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
|
63efd956107002adab2b726c7d148fcb98f1296a
| 96
|
py
|
Python
|
recstudio/model/__init__.py
|
ustc-recsys/Torchrec
|
4d62ee42018c12961850936cfd8f4f8d3c6a8dbc
|
[
"MIT"
] | 1
|
2021-11-13T12:12:54.000Z
|
2021-11-13T12:12:54.000Z
|
recstudio/model/__init__.py
|
ustc-recsys/Torchrec
|
4d62ee42018c12961850936cfd8f4f8d3c6a8dbc
|
[
"MIT"
] | null | null | null |
recstudio/model/__init__.py
|
ustc-recsys/Torchrec
|
4d62ee42018c12961850936cfd8f4f8d3c6a8dbc
|
[
"MIT"
] | null | null | null |
# from recstudio.model.basemodel import Recommender, BaseRetriever, BaseRanker, BaseQueryEncoder
| 96
| 96
| 0.864583
| 9
| 96
| 9.222222
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072917
| 96
| 1
| 96
| 96
| 0.932584
| 0.979167
| 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
|
63f0cacfbf7472a7003e80fcadc4d684443d9b40
| 216
|
py
|
Python
|
todclean/use_cases/task/remover.py
|
marioidival/todclean
|
75be8ccdaaa443ebdeb6a7ef270cd92eb693afe4
|
[
"MIT"
] | null | null | null |
todclean/use_cases/task/remover.py
|
marioidival/todclean
|
75be8ccdaaa443ebdeb6a7ef270cd92eb693afe4
|
[
"MIT"
] | null | null | null |
todclean/use_cases/task/remover.py
|
marioidival/todclean
|
75be8ccdaaa443ebdeb6a7ef270cd92eb693afe4
|
[
"MIT"
] | null | null | null |
from todclean import repo_manager as manager
class TaskRemove:
def __init__(self):
self.repository = manager('task')
def remove_task(self, task_id):
return self.repository.delete(task_id)
| 19.636364
| 46
| 0.703704
| 28
| 216
| 5.142857
| 0.607143
| 0.194444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212963
| 216
| 10
| 47
| 21.6
| 0.847059
| 0
| 0
| 0
| 0
| 0
| 0.018519
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.166667
| 0.833333
| 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
|
63fc3f561ad0ce558e9911e5177b6b1d58502ef3
| 216
|
py
|
Python
|
python_project/my_module.py
|
gieljnssns/python-telenet
|
bc07edc38300512787b23a41d82a23f48b437cf9
|
[
"MIT"
] | null | null | null |
python_project/my_module.py
|
gieljnssns/python-telenet
|
bc07edc38300512787b23a41d82a23f48b437cf9
|
[
"MIT"
] | null | null | null |
python_project/my_module.py
|
gieljnssns/python-telenet
|
bc07edc38300512787b23a41d82a23f48b437cf9
|
[
"MIT"
] | null | null | null |
class MyModule():
def my_function():
pass
def main():
"""The main entrypoint for this script
Used in the setup.py file
"""
MyModule.my_function()
if __name__ == '__main__':
main()
| 14.4
| 42
| 0.597222
| 27
| 216
| 4.407407
| 0.703704
| 0.168067
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.282407
| 216
| 14
| 43
| 15.428571
| 0.767742
| 0.282407
| 0
| 0
| 0
| 0
| 0.057143
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| true
| 0.142857
| 0
| 0
| 0.428571
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
1225cd0fc0d0832ec39c655cc4556172f211cf9c
| 68
|
py
|
Python
|
omnilib/util/__init__.py
|
nitral/omnilib
|
ec0872700317f180336777c2feb121ec718fda68
|
[
"MIT"
] | null | null | null |
omnilib/util/__init__.py
|
nitral/omnilib
|
ec0872700317f180336777c2feb121ec718fda68
|
[
"MIT"
] | null | null | null |
omnilib/util/__init__.py
|
nitral/omnilib
|
ec0872700317f180336777c2feb121ec718fda68
|
[
"MIT"
] | null | null | null |
from .type import Singleton
from .container import MutableVariable
| 17
| 38
| 0.838235
| 8
| 68
| 7.125
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132353
| 68
| 3
| 39
| 22.666667
| 0.966102
| 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
|
1229c92f104b0c822bdbab60b017743c58c04444
| 167
|
py
|
Python
|
scripts/field/summonSchiller.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 54
|
2019-04-16T23:24:48.000Z
|
2021-12-18T11:41:50.000Z
|
scripts/field/summonSchiller.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 3
|
2019-05-19T15:19:41.000Z
|
2020-04-27T16:29:16.000Z
|
scripts/field/summonSchiller.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 49
|
2020-11-25T23:29:16.000Z
|
2022-03-26T16:20:24.000Z
|
# Hidden Street - 2nd Job Advancement (Resistance)
sm.createClock(10 * 60)
sm.invokeAfterDelay(10 * 6000, "warpInstanceOut", 310000000)
sm.spawnNpc( 2159100, 235, -14)
| 41.75
| 60
| 0.754491
| 21
| 167
| 6
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.216216
| 0.113772
| 167
| 4
| 61
| 41.75
| 0.635135
| 0.287425
| 0
| 0
| 0
| 0
| 0.127119
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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 | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
12485651ed163c62495c41e61482c750385744b2
| 129
|
py
|
Python
|
001146StepikPyBegin/Stepik001146PyBeginсh07p04st13С06_my__20200421.py
|
SafonovMikhail/python_000577
|
739f764e80f1ca354386f00b8e9db1df8c96531d
|
[
"Apache-2.0"
] | null | null | null |
001146StepikPyBegin/Stepik001146PyBeginсh07p04st13С06_my__20200421.py
|
SafonovMikhail/python_000577
|
739f764e80f1ca354386f00b8e9db1df8c96531d
|
[
"Apache-2.0"
] | null | null | null |
001146StepikPyBegin/Stepik001146PyBeginсh07p04st13С06_my__20200421.py
|
SafonovMikhail/python_000577
|
739f764e80f1ca354386f00b8e9db1df8c96531d
|
[
"Apache-2.0"
] | null | null | null |
num1 = int(input())
count1 = 0
while 1 <= num1 <= 5:
if num1 == 5:
count1 += 1
num1 = int(input())
print(count1)
| 16.125
| 23
| 0.51938
| 19
| 129
| 3.526316
| 0.526316
| 0.208955
| 0.358209
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 0.302326
| 129
| 7
| 24
| 18.428571
| 0.611111
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.142857
| 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
|
12654786c58c2e6f92f790a8fbfa4b645e3febd2
| 133
|
py
|
Python
|
icebergsdk/resources/payment.py
|
Iceberg-Marketplace/Iceberg-API-PYTHON
|
5f8314376ebb6e5a8099253ec79fd40ea835beac
|
[
"MIT"
] | null | null | null |
icebergsdk/resources/payment.py
|
Iceberg-Marketplace/Iceberg-API-PYTHON
|
5f8314376ebb6e5a8099253ec79fd40ea835beac
|
[
"MIT"
] | 2
|
2015-01-26T10:22:41.000Z
|
2015-01-26T10:22:41.000Z
|
icebergsdk/resources/payment.py
|
Iceberg-Marketplace/Iceberg-API-PYTHON
|
5f8314376ebb6e5a8099253ec79fd40ea835beac
|
[
"MIT"
] | 3
|
2016-12-30T15:08:57.000Z
|
2019-09-24T14:13:44.000Z
|
# -*- coding: utf-8 -*-
from icebergsdk.resources.base import IcebergObject
class Payment(IcebergObject):
endpoint = 'payment'
| 19
| 51
| 0.721805
| 14
| 133
| 6.857143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00885
| 0.150376
| 133
| 6
| 52
| 22.166667
| 0.840708
| 0.157895
| 0
| 0
| 0
| 0
| 0.063636
| 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
|
89fb6d1e29a145a9805a6ae900e22e052b735cf1
| 900
|
py
|
Python
|
test/functional/pageobjectmodel/pageobject/login.py
|
jiteshmohite/Python-Page-Object-Model-Framework
|
8e2db4e3be326fc8c51ca7218506b32411705246
|
[
"Apache-2.0"
] | 6
|
2019-08-31T06:11:45.000Z
|
2021-03-03T10:52:34.000Z
|
test/functional/pageobjectmodel/pageobject/login.py
|
jiteshmohite/Python-Page-Object-Model-Framework
|
8e2db4e3be326fc8c51ca7218506b32411705246
|
[
"Apache-2.0"
] | null | null | null |
test/functional/pageobjectmodel/pageobject/login.py
|
jiteshmohite/Python-Page-Object-Model-Framework
|
8e2db4e3be326fc8c51ca7218506b32411705246
|
[
"Apache-2.0"
] | 1
|
2019-09-17T10:38:42.000Z
|
2019-09-17T10:38:42.000Z
|
from test.functional.pageobjectmodel.locators.login_locator import LoginLocators
from test.functional.pageobjectmodel.pageobject import *
"""
This class contains all common method which we will require while executing login test
"""
class Login(BasePage):
def __init__(self, driver):
super().__init__(driver)
self.driver = driver
def set_email_id(self, email_id):
self.__set__(LoginLocators.EMAIL_ID, email_id)
def get_user_name(self):
return self.__get__(LoginLocators.EMAIL_ID)
def set_password(self, password):
self.__set__(LoginLocators.PASSWORD_ID, password)
def get_password(self):
return self.__get__(LoginLocators.PASSWORD_ID)
def is_login_successful(self):
return self.__get__(LoginLocators.LOGIN_RESULT) == 'Login Successful'
def sign_in(self):
return self.click(LoginLocators.SIGN_IN_ID)
| 29.032258
| 86
| 0.732222
| 112
| 900
| 5.464286
| 0.375
| 0.05719
| 0.091503
| 0.083333
| 0.147059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181111
| 900
| 30
| 87
| 30
| 0.830393
| 0
| 0
| 0
| 0
| 0
| 0.019851
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.388889
| false
| 0.222222
| 0.111111
| 0.222222
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
89fe32cb43d058fa2323017af971aabfca4e4d17
| 343
|
py
|
Python
|
tests/inspectortodo/project_for_testing/python/find_my_todos.py
|
code-acrobat/InspectorTodo
|
342bd0840d4f087cf2914f906ebc69bf2b21d9ce
|
[
"Apache-2.0"
] | 8
|
2018-05-28T08:41:01.000Z
|
2022-03-02T08:54:54.000Z
|
tests/inspectortodo/project_for_testing/python/find_my_todos.py
|
code-acrobat/InspectorTodo
|
342bd0840d4f087cf2914f906ebc69bf2b21d9ce
|
[
"Apache-2.0"
] | 9
|
2018-08-04T20:16:46.000Z
|
2022-03-08T14:29:47.000Z
|
tests/inspectortodo/project_for_testing/python/find_my_todos.py
|
code-acrobat/InspectorTodo
|
342bd0840d4f087cf2914f906ebc69bf2b21d9ce
|
[
"Apache-2.0"
] | 3
|
2018-05-29T08:00:29.000Z
|
2022-02-23T11:02:58.000Z
|
# Copyright 2018 TNG Technology Consulting GmbH, Unterfoehring, Germany
# Licensed under the Apache License, Version 2.0 - see LICENSE.md in project root directory
# TODO IT-1: give this function some great functionality
def great_function():
pass
# TODO: give this function some greater functionality
def greater_function():
pass
| 26.384615
| 91
| 0.772595
| 47
| 343
| 5.595745
| 0.723404
| 0.060837
| 0.121673
| 0.152091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024648
| 0.172012
| 343
| 12
| 92
| 28.583333
| 0.901408
| 0.77551
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0
| 1
| 0.5
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
d60f3f0b9de8ebf00f3b9541b1aa52113efd2076
| 137
|
py
|
Python
|
apps/order/urls.py
|
foxy4096/Interiorshop
|
e9210b6c1d23f170a2dc878f8cc87671a5355bf4
|
[
"Apache-2.0"
] | 3
|
2021-11-07T16:19:15.000Z
|
2021-12-07T13:17:35.000Z
|
apps/order/urls.py
|
foxy4096/Interiorshop
|
e9210b6c1d23f170a2dc878f8cc87671a5355bf4
|
[
"Apache-2.0"
] | null | null | null |
apps/order/urls.py
|
foxy4096/Interiorshop
|
e9210b6c1d23f170a2dc878f8cc87671a5355bf4
|
[
"Apache-2.0"
] | null | null | null |
from django.urls import path
from . import views
urlpatterns = [
path('<int:order_id>/', views.order_detail, name='order_detail'),
]
| 22.833333
| 69
| 0.715328
| 19
| 137
| 5
| 0.631579
| 0.231579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138686
| 137
| 6
| 70
| 22.833333
| 0.805085
| 0
| 0
| 0
| 0
| 0
| 0.195652
| 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
|
d610073fd43868d3e885a4bc214c943207931c5d
| 536
|
py
|
Python
|
diventi/ebooks/migrations/0031_auto_20190521_0735.py
|
flavoi/diven
|
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
|
[
"Apache-2.0"
] | 2
|
2019-06-27T16:00:17.000Z
|
2020-08-14T07:46:05.000Z
|
diventi/ebooks/migrations/0031_auto_20190521_0735.py
|
flavoi/diven
|
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
|
[
"Apache-2.0"
] | 26
|
2020-02-15T22:39:35.000Z
|
2022-02-19T21:09:01.000Z
|
diventi/ebooks/migrations/0031_auto_20190521_0735.py
|
flavoi/diven
|
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
|
[
"Apache-2.0"
] | 1
|
2021-11-12T22:30:15.000Z
|
2021-11-12T22:30:15.000Z
|
# Generated by Django 2.2.1 on 2019-05-21 05:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ebooks', '0030_auto_20190521_0733'),
]
operations = [
migrations.RemoveField(
model_name='section',
name='slug',
),
migrations.RemoveField(
model_name='section',
name='slug_en',
),
migrations.RemoveField(
model_name='section',
name='slug_it',
),
]
| 20.615385
| 47
| 0.541045
| 51
| 536
| 5.529412
| 0.588235
| 0.223404
| 0.276596
| 0.319149
| 0.478723
| 0.478723
| 0.478723
| 0
| 0
| 0
| 0
| 0.088319
| 0.345149
| 536
| 25
| 48
| 21.44
| 0.7151
| 0.083955
| 0
| 0.473684
| 1
| 0
| 0.139059
| 0.047035
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.052632
| 0
| 0.210526
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d632799b4faf191eaeef400499401123d8a22495
| 106
|
py
|
Python
|
src/compiler/spparser.py
|
Stalis/smallpython
|
93bf77ae4b35b2166c383a798e550f5c6fa75974
|
[
"BSD-3-Clause"
] | null | null | null |
src/compiler/spparser.py
|
Stalis/smallpython
|
93bf77ae4b35b2166c383a798e550f5c6fa75974
|
[
"BSD-3-Clause"
] | null | null | null |
src/compiler/spparser.py
|
Stalis/smallpython
|
93bf77ae4b35b2166c383a798e550f5c6fa75974
|
[
"BSD-3-Clause"
] | null | null | null |
from sly import Parser
from .splexer import SPLexer
class SPParser(Parser):
tokens = SPLexer.tokens
| 15.142857
| 28
| 0.764151
| 14
| 106
| 5.785714
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179245
| 106
| 6
| 29
| 17.666667
| 0.931034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 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
|
d6352aafa1e40538e21a6100e9f74cd95e5185d2
| 32
|
py
|
Python
|
moustiques/__init__.py
|
drosoCode/HASS_Custom_Components
|
de3b964844a3ece018ed6dd4f9a23f1413ef3234
|
[
"MIT"
] | null | null | null |
moustiques/__init__.py
|
drosoCode/HASS_Custom_Components
|
de3b964844a3ece018ed6dd4f9a23f1413ef3234
|
[
"MIT"
] | null | null | null |
moustiques/__init__.py
|
drosoCode/HASS_Custom_Components
|
de3b964844a3ece018ed6dd4f9a23f1413ef3234
|
[
"MIT"
] | null | null | null |
"""The mousquitos component."""
| 16
| 31
| 0.6875
| 3
| 32
| 7.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09375
| 32
| 1
| 32
| 32
| 0.758621
| 0.78125
| 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
|
d63a613a16595205e04bc47c9741aef0a4fc6ba8
| 157
|
py
|
Python
|
tests/manual.py
|
robertdurkaj/tengri
|
938bf295b129d4f27658aa4d107df442525be678
|
[
"MIT"
] | null | null | null |
tests/manual.py
|
robertdurkaj/tengri
|
938bf295b129d4f27658aa4d107df442525be678
|
[
"MIT"
] | 2
|
2017-03-02T13:19:42.000Z
|
2017-03-07T14:04:34.000Z
|
tests/manual.py
|
robertdurkaj/tengri
|
938bf295b129d4f27658aa4d107df442525be678
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
if __name__ == "__main__":
from tengri import weather
weather.forecast('Khan Tengri')
weather.forecast('Mount Everest')
| 22.428571
| 37
| 0.656051
| 18
| 157
| 5.277778
| 0.777778
| 0.315789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007874
| 0.191083
| 157
| 6
| 38
| 26.166667
| 0.740157
| 0.133758
| 0
| 0
| 0
| 0
| 0.238806
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 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
|
d646f894d0942733f5ba19139e68b1a8c54f869a
| 353
|
py
|
Python
|
Examples/CallTest/RegDlg_cmd.py
|
wxh0000mm/TKinterDesigner
|
01878e78746082413a09444283edbd52118d15ef
|
[
"Apache-2.0"
] | 1
|
2022-03-09T08:43:41.000Z
|
2022-03-09T08:43:41.000Z
|
Examples/CallTest/RegDlg_cmd.py
|
wxh0000mm/TKinterDesigner
|
01878e78746082413a09444283edbd52118d15ef
|
[
"Apache-2.0"
] | null | null | null |
Examples/CallTest/RegDlg_cmd.py
|
wxh0000mm/TKinterDesigner
|
01878e78746082413a09444283edbd52118d15ef
|
[
"Apache-2.0"
] | null | null | null |
#coding=utf-8
import sys
import tkinter
from tkinter import *
import Fun
def Button_13_onCommand(uiName,widgetName):
root = Fun.GetElement(uiName,'root')
UIInputDataArray = Fun.GetInputDataArray(uiName)
# print(UIInputDataArray)
root.destroy()
def Button_14_onCommand(uiName,widgetName):
root = Fun.GetElement(uiName,'root')
root.destroy()
| 27.153846
| 50
| 0.773371
| 44
| 353
| 6.113636
| 0.477273
| 0.066915
| 0.185874
| 0.215613
| 0.386617
| 0.386617
| 0.386617
| 0.386617
| 0
| 0
| 0
| 0.016026
| 0.116147
| 353
| 13
| 51
| 27.153846
| 0.846154
| 0.101983
| 0
| 0.363636
| 0
| 0
| 0.025316
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.181818
| false
| 0
| 0.363636
| 0
| 0.545455
| 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
|
d64d96301349149ba0909089455a45150ed8f14a
| 206
|
py
|
Python
|
azure-kusto-data/azure/kusto/data/__init__.py
|
artunduman/azure-kusto-python
|
d1cda6a552eb32a7c144ee834900d79468a263a3
|
[
"MIT"
] | 134
|
2018-05-11T07:09:30.000Z
|
2022-03-30T09:25:59.000Z
|
azure-kusto-data/azure/kusto/data/__init__.py
|
artunduman/azure-kusto-python
|
d1cda6a552eb32a7c144ee834900d79468a263a3
|
[
"MIT"
] | 176
|
2018-05-07T20:33:34.000Z
|
2022-03-31T14:51:06.000Z
|
azure-kusto-data/azure/kusto/data/__init__.py
|
artunduman/azure-kusto-python
|
d1cda6a552eb32a7c144ee834900d79468a263a3
|
[
"MIT"
] | 85
|
2018-04-16T08:53:22.000Z
|
2022-03-29T10:10:55.000Z
|
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from ._version import VERSION as __version__
from .client import KustoClient, KustoConnectionStringBuilder, ClientRequestProperties
| 34.333333
| 86
| 0.834951
| 21
| 206
| 7.952381
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116505
| 206
| 5
| 87
| 41.2
| 0.917582
| 0.330097
| 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
|
d657cd882c297e5e9f34aff6cbb8f4baeae923d0
| 956
|
py
|
Python
|
test/test_dashboards_api.py
|
Apteco/apteco-api
|
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
|
[
"Apache-2.0"
] | 2
|
2020-05-21T14:24:16.000Z
|
2020-12-03T19:56:34.000Z
|
test/test_dashboards_api.py
|
Apteco/apteco-api
|
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
|
[
"Apache-2.0"
] | null | null | null |
test/test_dashboards_api.py
|
Apteco/apteco-api
|
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
Apteco API
An API to allow access to Apteco Marketing Suite resources # noqa: E501
The version of the OpenAPI document: v2
Contact: support@apteco.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import apteco_api
from apteco_api.api.dashboards_api import DashboardsApi # noqa: E501
from apteco_api.rest import ApiException
class TestDashboardsApi(unittest.TestCase):
"""DashboardsApi unit test stubs"""
def setUp(self):
self.api = apteco_api.api.dashboards_api.DashboardsApi() # noqa: E501
def tearDown(self):
pass
def test_dashboards_get_dashboard_item_data_sync(self):
"""Test case for dashboards_get_dashboard_item_data_sync
EXPERIMENTAL: Return data needed to render visualisation for dashboard item # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()
| 22.761905
| 97
| 0.715481
| 121
| 956
| 5.404959
| 0.520661
| 0.068807
| 0.039755
| 0.067278
| 0.180428
| 0.103976
| 0
| 0
| 0
| 0
| 0
| 0.018543
| 0.210251
| 956
| 41
| 98
| 23.317073
| 0.847682
| 0.42887
| 0
| 0.142857
| 0
| 0
| 0.01636
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.214286
| false
| 0.142857
| 0.357143
| 0
| 0.642857
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
c3902dca4c6d0fe23b8fd75ea5d53d584af40e85
| 58
|
py
|
Python
|
crash_course/ch04/even_numbers.py
|
dantin/python-by-example
|
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
|
[
"BSD-3-Clause"
] | null | null | null |
crash_course/ch04/even_numbers.py
|
dantin/python-by-example
|
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
|
[
"BSD-3-Clause"
] | null | null | null |
crash_course/ch04/even_numbers.py
|
dantin/python-by-example
|
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
|
[
"BSD-3-Clause"
] | null | null | null |
even_numbers = list(range(2, 11, 2))
print(even_numbers)
| 14.5
| 36
| 0.724138
| 10
| 58
| 4
| 0.7
| 0.55
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 0.12069
| 58
| 3
| 37
| 19.333333
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c392ae93e7df5d4340ab456ed3b2f7a74272e1d7
| 107
|
py
|
Python
|
hordak/defaults.py
|
pavel64-sutyrin/django-hordak
|
1ffeda5058037595051672911b18bbe4558304a2
|
[
"MIT"
] | null | null | null |
hordak/defaults.py
|
pavel64-sutyrin/django-hordak
|
1ffeda5058037595051672911b18bbe4558304a2
|
[
"MIT"
] | null | null | null |
hordak/defaults.py
|
pavel64-sutyrin/django-hordak
|
1ffeda5058037595051672911b18bbe4558304a2
|
[
"MIT"
] | null | null | null |
from django.conf import settings
INTERNAL_CURRENCY = getattr(settings, 'HORDAK_INTERNAL_CURRENCY', 'EUR')
| 26.75
| 72
| 0.813084
| 13
| 107
| 6.461538
| 0.769231
| 0.380952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093458
| 107
| 3
| 73
| 35.666667
| 0.865979
| 0
| 0
| 0
| 0
| 0
| 0.252336
| 0.224299
| 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
|
c3d749325b8b643abb36bd61391c3ae303723592
| 217
|
py
|
Python
|
taggit_live/urls.py
|
20tab/django-taggit-live
|
3e1b1179c3d29d3a76d9fc7ff1d9a50ac22477aa
|
[
"BSD-3-Clause"
] | 5
|
2016-08-02T21:30:54.000Z
|
2021-07-09T09:01:39.000Z
|
taggit_live/urls.py
|
20tab/django-taggit-live
|
3e1b1179c3d29d3a76d9fc7ff1d9a50ac22477aa
|
[
"BSD-3-Clause"
] | 4
|
2016-12-15T12:20:31.000Z
|
2017-02-04T18:18:02.000Z
|
taggit_live/urls.py
|
20tab/django-taggit-live
|
3e1b1179c3d29d3a76d9fc7ff1d9a50ac22477aa
|
[
"BSD-3-Clause"
] | 4
|
2015-07-09T14:07:38.000Z
|
2017-03-23T10:21:03.000Z
|
from django.conf.urls import url
from .views import TaggitAutocompleteView
urlpatterns = [
url(r'^taggit_autocomplete_list/$',
TaggitAutocompleteView.as_view(),
name='taggit_autocomplete_list')
]
| 24.111111
| 41
| 0.737327
| 23
| 217
| 6.73913
| 0.695652
| 0.232258
| 0.283871
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.165899
| 217
| 8
| 42
| 27.125
| 0.856354
| 0
| 0
| 0
| 0
| 0
| 0.235023
| 0.235023
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.285714
| 0
| 0.285714
| 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
|
c3eb59ff4374c3e4975d233a9119fc2c05c99790
| 608
|
py
|
Python
|
toolkit/toolkit_loader.py
|
cosmos-org/ml-toolkit
|
2f1d06bafabb0f84c2598038402f9671c2d7720e
|
[
"MIT"
] | null | null | null |
toolkit/toolkit_loader.py
|
cosmos-org/ml-toolkit
|
2f1d06bafabb0f84c2598038402f9671c2d7720e
|
[
"MIT"
] | null | null | null |
toolkit/toolkit_loader.py
|
cosmos-org/ml-toolkit
|
2f1d06bafabb0f84c2598038402f9671c2d7720e
|
[
"MIT"
] | null | null | null |
from .relation_extractor import Keyword_Topic_Opinion_Relation_Extractor
from .sentiment_extractor import Bert_Sentimentor
class ToolKit_Loader():
relation_extractor_map = {
"1" : Keyword_Topic_Opinion_Relation_Extractor
}
sentiment_map = {
"1" : Bert_Sentimentor
}
def __init__(self):
pass
@staticmethod
def load_relation_extractor(type = 1):
return ToolKit_Loader.relation_extractor_map[str(type)].default_init()
@staticmethod
def load_sentiment_extractor(type = 1):
return ToolKit_Loader.sentiment_map[str(type)].default_init()
| 33.777778
| 78
| 0.730263
| 69
| 608
| 5.985507
| 0.362319
| 0.246973
| 0.09201
| 0.130751
| 0.556901
| 0.159806
| 0
| 0
| 0
| 0
| 0
| 0.008163
| 0.194079
| 608
| 17
| 79
| 35.764706
| 0.834694
| 0
| 0
| 0.117647
| 0
| 0
| 0.003289
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.176471
| false
| 0.058824
| 0.117647
| 0.117647
| 0.588235
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
c3f4ff2ee0413ee0f2b3c2bebc95bac88050954a
| 37
|
py
|
Python
|
hazelcast/protocol/codec/flake_id_generator_message_type.py
|
buraksezer/hazelcast-python-client
|
4cc593ef7de994bd84fdac8331b81b309cce30a0
|
[
"Apache-2.0"
] | 3
|
2020-05-01T15:01:54.000Z
|
2021-01-27T14:51:45.000Z
|
hazelcast/protocol/codec/flake_id_generator_message_type.py
|
buraksezer/hazelcast-python-client
|
4cc593ef7de994bd84fdac8331b81b309cce30a0
|
[
"Apache-2.0"
] | null | null | null |
hazelcast/protocol/codec/flake_id_generator_message_type.py
|
buraksezer/hazelcast-python-client
|
4cc593ef7de994bd84fdac8331b81b309cce30a0
|
[
"Apache-2.0"
] | 1
|
2020-12-01T20:00:35.000Z
|
2020-12-01T20:00:35.000Z
|
FLAKEIDGENERATOR_NEWIDBATCH = 0x1f01
| 18.5
| 36
| 0.891892
| 3
| 37
| 10.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 0.081081
| 37
| 1
| 37
| 37
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162162
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7f18f1ae1461bb54953f83b24b8dc8379c9b3e7b
| 85
|
py
|
Python
|
ocr4all_helper_scripts/utils/datastructures.py
|
OCR4all/OCR4all_helper-scripts
|
f1ec7974ab173e5c042e10094fffb8d8f8254538
|
[
"MIT"
] | 3
|
2020-02-20T11:53:51.000Z
|
2021-05-21T14:08:59.000Z
|
ocr4all_helper_scripts/utils/datastructures.py
|
OCR4all/OCR4all_helper-scripts
|
f1ec7974ab173e5c042e10094fffb8d8f8254538
|
[
"MIT"
] | 1
|
2020-12-21T11:57:21.000Z
|
2020-12-21T13:45:27.000Z
|
ocr4all_helper_scripts/utils/datastructures.py
|
OCR4all/OCR4all_helper-scripts
|
f1ec7974ab173e5c042e10094fffb8d8f8254538
|
[
"MIT"
] | 1
|
2020-04-22T14:01:04.000Z
|
2020-04-22T14:01:04.000Z
|
class Record(object):
def __init__(self, **kw):
self.__dict__.update(kw)
| 21.25
| 32
| 0.635294
| 11
| 85
| 4.181818
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.211765
| 85
| 3
| 33
| 28.333333
| 0.686567
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
612f526f0e0d27db0d7e55e122d61b13a242f92a
| 360
|
py
|
Python
|
larning/output/i.py
|
tasigabi97/larning
|
6489bb47c9d6bc08e58349d4cff621d108a3cb0a
|
[
"MIT"
] | null | null | null |
larning/output/i.py
|
tasigabi97/larning
|
6489bb47c9d6bc08e58349d4cff621d108a3cb0a
|
[
"MIT"
] | null | null | null |
larning/output/i.py
|
tasigabi97/larning
|
6489bb47c9d6bc08e58349d4cff621d108a3cb0a
|
[
"MIT"
] | null | null | null |
from termcolor import colored
line_length = 225
def red(s: str) -> str:
return colored(s, color="red")
def green(s: str) -> str:
return colored(s, color="green")
def blue(s: str) -> str:
return colored(s, color="blue")
def on_white(s: str) -> str:
return colored(s, on_color="on_white")
def var(s: str) -> str:
return f"<@{s}@>"
| 15
| 42
| 0.611111
| 58
| 360
| 3.724138
| 0.327586
| 0.092593
| 0.162037
| 0.300926
| 0.458333
| 0.458333
| 0.361111
| 0
| 0
| 0
| 0
| 0.010601
| 0.213889
| 360
| 23
| 43
| 15.652174
| 0.75265
| 0
| 0
| 0
| 0
| 0
| 0.075
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.416667
| false
| 0
| 0.083333
| 0.416667
| 0.916667
| 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
|
6167a01c22dd508132bd1d2951d7e5248a6bd350
| 93
|
py
|
Python
|
tatsu/__main__.py
|
bookofproofs/TatSu
|
501875416c8c802bb518f35f1ae08d9ebf437af2
|
[
"BSD-2-Clause"
] | 259
|
2017-05-22T04:33:21.000Z
|
2022-03-29T00:20:35.000Z
|
tatsu/__main__.py
|
bookofproofs/TatSu
|
501875416c8c802bb518f35f1ae08d9ebf437af2
|
[
"BSD-2-Clause"
] | 160
|
2017-05-30T01:28:58.000Z
|
2022-03-31T02:45:52.000Z
|
tatsu/__main__.py
|
bookofproofs/TatSu
|
501875416c8c802bb518f35f1ae08d9ebf437af2
|
[
"BSD-2-Clause"
] | 53
|
2017-05-22T05:00:58.000Z
|
2022-01-04T16:06:17.000Z
|
from __future__ import annotations
import tatsu
if __name__ == '__main__':
tatsu.main()
| 15.5
| 34
| 0.741935
| 11
| 93
| 5.181818
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172043
| 93
| 5
| 35
| 18.6
| 0.74026
| 0
| 0
| 0
| 0
| 0
| 0.086022
| 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
|
618d82ba3c6549a46a43daf1adc64c82c59f45fe
| 10,909
|
py
|
Python
|
tests/drive_data_loader_tests.py
|
lzamparo/SeqDemote
|
3eaf18e88c9dc6a3d1a69444ecdba9f9b5d9682a
|
[
"MIT"
] | 1
|
2019-04-16T12:25:09.000Z
|
2019-04-16T12:25:09.000Z
|
tests/drive_data_loader_tests.py
|
lzamparo/SeqDemote
|
3eaf18e88c9dc6a3d1a69444ecdba9f9b5d9682a
|
[
"MIT"
] | null | null | null |
tests/drive_data_loader_tests.py
|
lzamparo/SeqDemote
|
3eaf18e88c9dc6a3d1a69444ecdba9f9b5d9682a
|
[
"MIT"
] | null | null | null |
from __future__ import print_function
from nose.tools import eq_, ok_
import nose, functools
import os
import numpy as np
import load
from utils import dna_io
def expected_failure(test):
@functools.wraps(test)
def inner(*args, **kwargs):
try:
test(*args, **kwargs)
except Exception:
raise nose.SkipTest
else:
raise AssertionError('Failure expected')
return inner
### DNase data fixtures
train_size = 3201397
valid_size = 70000
output_size = 164
chunk_size = 4096
batch_size = 128
num_chunks_train = train_size // chunk_size
full_train_shape = (train_size, 4, 1, 600)
chunk_train_shape = (chunk_size,4,1,600)
chunk_out_shape = (chunk_size,output_size)
batch_train_shape = (batch_size,4,1,600)
path = os.path.expanduser("~/projects/SeqDemote/data/DNase/encode_roadmap.h5")
### Kmer fixtures
aaa_3mer_string = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
aaa_3mer_position = 0
ttt_3mer_string = 'TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT'
ttt_3mer_position = 63
aaa_4mer_string = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
ttt_4mer_string = 'TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT'
rando_3mer_string = 'ATGGGGTAGAGAATGGGGTAGAGACCAGGT'
alphabet_size_3 = 64
alphabet_size_4 = 256
threemer_chunk_shape = (chunk_size,alphabet_size_3, 1, 598)
fourmer_chunk_shape = (chunk_size, alphabet_size_4, 1, 597)
def test_build_data_loader():
""" Can I build a data loader for the DNase data """
data_loader = load.StandardDataLoader(chunk_size=chunk_size, batch_size=batch_size, num_chunks_train=num_chunks_train)
data_loader.load_train()
eq_(data_loader.train_in.shape, full_train_shape)
def test_build_data_loader_kwargs():
""" Can I build a data loader for the DNase data specifying the data path """
data_loader = load.StandardDataLoader(data_path=path,chunk_size=chunk_size, batch_size=batch_size, num_chunks_train=num_chunks_train)
data_loader.load_train()
eq_(data_loader.train_in.shape, full_train_shape)
eq_(data_loader.chunk_size, chunk_size)
eq_(data_loader.num_chunks_train, num_chunks_train)
def test_dnase_data_shape():
""" Is my DNase data the right size and shape """
data_loader = load.StandardDataLoader(data_path=path)
data_loader.load_train()
num_chunks = range(num_chunks_train)
for e, (x_chunk, y_chunk) in zip(num_chunks,data_loader.create_batch_gen()):
print("Chunk: ", str(e + 1), " of ", num_chunks_train)
eq_(x_chunk.shape, chunk_train_shape)
eq_(y_chunk.shape, chunk_out_shape)
def test_exhaust_data():
""" If I iterate through all the chunks, how many data points do I see? """
seen_pts = 0
data_loader = load.StandardDataLoader(data_path=path)
data_loader.load_train()
num_chunks = range(num_chunks_train)
for e, (x_chunk, y_chunk) in zip(num_chunks,data_loader.create_batch_gen()):
seen_pts = seen_pts + x_chunk.shape[0]
print("Saw ", str(seen_pts), " points total")
ok_(seen_pts <= train_size)
### Semantic tests: are all examples properly one-hot encoded?
def test_training_batch_encoding_sum():
""" If I sum all elements of a chunk of training data, do I get the number of expected ones? """
data_loader = load.StandardDataLoader(data_path=path)
data_loader.load_train()
num_chunks = range(num_chunks_train)
expected_chunk_sum = 600 * chunk_size
### each chunk of should have |seq_length| * |batch_size| * |chunk_size| number of 1s
for e, (x_chunk, y_chunk) in zip(num_chunks,data_loader.create_batch_gen()):
ones_per_chunk = np.sum(x_chunk)
#print("Chunk ", str(e + 1), " has ", ones_per_chunk, " bits turned on")
eq_(ones_per_chunk, expected_chunk_sum)
def test_validation_batch_encoding_sum():
""" If I sum all elements of a chunk of validation data, do I get the number of expected ones? """
data_loader = load.StandardDataLoader(data_path=path)
data_loader.load_validation()
num_chunks = range(num_chunks_train)
expected_chunk_sum = 600 * chunk_size
### each chunk of should have |seq_length| * |batch_size| * |chunk_size| number of 1s
for e, (x_chunk, y_chunk) in zip(num_chunks,data_loader.create_valid_gen()):
ones_per_chunk = np.sum(x_chunk)
#print("Chunk ", str(e + 1), " has ", ones_per_chunk, " bits turned on")
eq_(ones_per_chunk, expected_chunk_sum)
def test_any_always_negatives_training():
""" Are there any always-negative examples in the training set? """
data_loader = load.StandardDataLoader(data_path=path)
data_loader.load_train()
for e, (x_chunk, y_chunk) in zip(range(num_chunks_train),data_loader.create_batch_gen()):
for label_vector in y_chunk:
total_peaks_on = np.sum(label_vector)
ok_(total_peaks_on > 0)
def test_any_always_negatives_validation():
""" Are there any always-negative examples in the validation set? """
data_loader = load.StandardDataLoader(data_path=path)
data_loader.load_validation()
for e, (x_chunk, y_chunk) in zip(range(num_chunks_valid),data_loader.create_valid_gen()):
for label_vector in y_chunk:
total_peaks_on = np.sum(label_vector)
ok_(total_peaks_on > 0)
def test_encoding_kmerizing_threemers():
# encode the fixtures as a one-hot encoded matrix
my_seqs = [aaa_3mer_string,ttt_3mer_string,aaa_3mer_string,ttt_3mer_string]
seqs = np.vstack([dna_io.dna_one_hot(seq) for seq in my_seqs])
# reshape into expected shape
seqs = seqs.reshape((seqs.shape[0],4,1,seqs.shape[1]/4))
# re-encode the one-hot examples as positional 3-mers
seqs_3mers = dna_io.one_hot_to_kmerized(seqs, 3)
seqs_3mers_reshaped = seqs_3mers.reshape((seqs_3mers.shape[0],alphabet_size_3,1,len(aaa_3mer_string)-2))
# make up the positional 3-mer fixture
aaa_vec = dna_io.dna_one_hot_kmer(aaa_3mer_string, 3)
aaa_mat = aaa_vec.reshape((1,alphabet_size_3,1,len(aaa_3mer_string) - 2))
ttt_vec = dna_io.dna_one_hot_kmer(ttt_3mer_string, 3)
ttt_mat = ttt_vec.reshape((1,alphabet_size_3,1,len(ttt_3mer_string) - 2))
fixture = np.vstack((aaa_mat,ttt_mat,aaa_mat,ttt_mat))
for fix, elem in zip(fixture,seqs_3mers_reshaped):
ok_(np.allclose(fix, elem))
def test_decoding_kmerizing_threemers():
# encode the fixtures as a one-hot encoded matrix
my_seqs = [aaa_3mer_string,ttt_3mer_string,aaa_3mer_string,ttt_3mer_string]
seqs = np.vstack([dna_io.dna_one_hot(seq) for seq in my_seqs])
# reshape into expected shape
seqs = seqs.reshape((seqs.shape[0],4,1,seqs.shape[1]/4))
# re-encode the one-hot examples as positional 3-mers
seqs_3mers = dna_io.one_hot_to_kmerized(seqs, 3)
seqs_3mers_reshaped = seqs_3mers.reshape((seqs_3mers.shape[0],alphabet_size_3,1,len(aaa_3mer_string)-2))
# de-code the encoded 3-mers
decoded_seqs = dna_io.kmer_vecs_to_dna(seqs_3mers_reshaped, 3)
for seq, fix in zip(decoded_seqs,my_seqs):
eq_(seq,fix)
def test_encoding_kmerizing_fourmers():
# encode the fixtures as one-hot encoded matrix
my_seqs = [aaa_4mer_string,ttt_4mer_string, aaa_4mer_string, ttt_4mer_string]
seqs = np.vstack([dna_io.dna_one_hot(seq) for seq in my_seqs])
# reshape into expected shape
seqs = seqs.reshape((seqs.shape[0], 4, 1, seqs.shape[1]/4))
# re-encode the one-hot examles as positional 4-mers
seqs_4mers = dna_io.one_hot_to_kmerized(seqs, 4)
seqs_4mers_reshaped = seqs_4mers.reshape((seqs_4mers.shape[0],alphabet_size_4,1,len(aaa_4mer_string)-3))
# make up the positional 4-mer fixture
aaa_vec = dna_io.dna_one_hot_kmer(aaa_4mer_string,4)
aaa_mat = aaa_vec.reshape((1,alphabet_size_4,1,len(aaa_4mer_string)-3))
ttt_vec = dna_io.dna_one_hot_kmer(ttt_4mer_string, 4)
ttt_mat = ttt_vec.reshape((1,alphabet_size_4,1,len(ttt_4mer_string)-3))
fixture = np.vstack((aaa_mat,ttt_mat,aaa_mat,ttt_mat))
for fix, elem in zip(fixture, seqs_4mers_reshaped):
ok_(np.allclose(fix,elem))
def test_decoding_kmerizing_fourmers():
# encode the fixtures as one-hot encoded matrix
my_seqs = [aaa_4mer_string, ttt_4mer_string, aaa_4mer_string, ttt_4mer_string]
seqs = np.vstack([dna_io.dna_one_hot(seq) for seq in my_seqs])
# reshape into expected shape
seqs = seqs.reshape((seqs.shape[0], 4, 1, seqs.shape[1]/4))
# re-encode the one-hot examples as positional 4-mers
seqs_4mers = dna_io.one_hot_to_kmerized(seqs,4)
seqs_4mers_reshaped = seqs_4mers.reshape((seqs_4mers.shape[0], alphabet_size_4, 1, len(aaa_4mer_string)-3))
# decode the encoded 4-mers
decoded_seqs = dna_io.kmer_vecs_to_dna(seqs_4mers_reshaped, 4)
for seq, fix in zip(decoded_seqs,my_seqs):
eq_(seq,fix)
def test_threemer_data_loader_shape():
""" Can I build a data loader for the kmerized DNase data specifying the data path? """
data_loader = load.KmerDataLoader(data_path=path, kmer_length=3)
data_loader.load_train()
num_chunks = range(num_chunks_train)
for e, (x_chunk, y_chunk) in zip(num_chunks,data_loader.create_batch_gen()):
print("Chunk: ", str(e + 1), " of ", num_chunks_train)
eq_(x_chunk.shape, threemer_chunk_shape)
eq_(y_chunk.shape, chunk_out_shape)
def test_fourmer_data_loader_shape():
""" Can I build a data loader for the kmerized DNase data specifying the data path? """
data_loader = load.KmerDataLoader(data_path=path, kmer_length=4)
data_loader.load_train()
num_chunks = range(num_chunks_train)
for e, (x_chunk, y_chunk) in zip(num_chunks,data_loader.create_batch_gen()):
print("Chunk: ", str(e + 1), " of ", num_chunks_train)
eq_(x_chunk.shape, fourmer_chunk_shape)
eq_(y_chunk.shape, chunk_out_shape)
def test_exhaust_threemer_data_loader():
""" Is my kmerized data loader generator producing the right shape chunks? """
seen_pts = 0
data_loader = load.KmerDataLoader(data_path=path, kmer_length=3)
data_loader.load_train()
num_chunks = range(num_chunks_train)
for e, (x_chunk, y_chunk) in zip(num_chunks,data_loader.create_batch_gen()):
seen_pts = seen_pts + x_chunk.shape[0]
print("Saw ", str(seen_pts), " points total")
ok_(seen_pts <= train_size)
if __name__ == "__main__":
#test_build_data_loader()
#test_build_data_loader_kwargs()
#test_dnase_data_shape()
#test_exhaust_data()
#test_training_batch_encoding_sum()
#test_validation_batch_encoding_sum()
#test_encoding_kmerizing_threemers()
#test_decoding_kmerizing_threemers()
#test_encoding_kmerizing_fourmers()
#test_decoding_kmerizing_fourmers()
test_threemer_data_loader_shape()
| 39.813869
| 137
| 0.714548
| 1,676
| 10,909
| 4.293556
| 0.118138
| 0.066704
| 0.042802
| 0.023763
| 0.769177
| 0.726654
| 0.711923
| 0.707754
| 0.681351
| 0.660367
| 0
| 0.02307
| 0.185443
| 10,909
| 274
| 138
| 39.813869
| 0.786743
| 0.193327
| 0
| 0.526946
| 0
| 0
| 0.033824
| 0.023355
| 0
| 0
| 0
| 0
| 0.005988
| 1
| 0.101796
| false
| 0
| 0.041916
| 0
| 0.149701
| 0.035928
| 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
|
61b7734eba875221c207b51f7b85c8fff796221c
| 89
|
py
|
Python
|
day8/evalinfiles.py
|
nikhilsamninan/python-files
|
15198459081097058a939b40b5e8ef754e578fe0
|
[
"Apache-2.0"
] | null | null | null |
day8/evalinfiles.py
|
nikhilsamninan/python-files
|
15198459081097058a939b40b5e8ef754e578fe0
|
[
"Apache-2.0"
] | null | null | null |
day8/evalinfiles.py
|
nikhilsamninan/python-files
|
15198459081097058a939b40b5e8ef754e578fe0
|
[
"Apache-2.0"
] | null | null | null |
c = "{1:'nikhil',2:'Sam',3:'ninan'}"
print(type(c))
k = eval(c)
print (k)
print(type(k))
| 14.833333
| 36
| 0.561798
| 18
| 89
| 2.777778
| 0.611111
| 0.36
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037975
| 0.11236
| 89
| 5
| 37
| 17.8
| 0.594937
| 0
| 0
| 0
| 0
| 0
| 0.337079
| 0.337079
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.6
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
61bf95eacbb06ad0e79c8356c83ad64b783a1534
| 183
|
py
|
Python
|
tests/apitests/polygon.py
|
jenskutilek/drawbot-skia
|
e636316ab40843b410c88ce7e5ba628aeb7d1a2c
|
[
"Apache-2.0"
] | 60
|
2020-09-17T19:08:33.000Z
|
2022-02-02T07:27:13.000Z
|
tests/apitests/polygon.py
|
jenskutilek/drawbot-skia
|
e636316ab40843b410c88ce7e5ba628aeb7d1a2c
|
[
"Apache-2.0"
] | 47
|
2020-09-17T18:58:52.000Z
|
2022-03-28T17:36:07.000Z
|
tests/apitests/polygon.py
|
jenskutilek/drawbot-skia
|
e636316ab40843b410c88ce7e5ba628aeb7d1a2c
|
[
"Apache-2.0"
] | 9
|
2020-09-18T13:42:20.000Z
|
2022-03-10T23:17:18.000Z
|
size(200, 200)
stroke(0)
strokeWidth(10)
fill(1, 0.3, 0)
polygon((40, 40), (40, 160))
polygon((60, 40), (60, 160), (130, 160))
polygon((100, 40), (160, 160), (160, 40), close=False)
| 20.333333
| 54
| 0.595628
| 33
| 183
| 3.30303
| 0.515152
| 0.073395
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.335443
| 0.136612
| 183
| 8
| 55
| 22.875
| 0.35443
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4efe9e0a846ccc0d9f2ac0d6d96f90027bba45ca
| 105
|
py
|
Python
|
code/tarifa.py
|
kkirigaya/Kattis
|
29b7180aef70f51ea5b4d064204f70fc6d29d312
|
[
"MIT"
] | 1
|
2021-06-05T20:52:43.000Z
|
2021-06-05T20:52:43.000Z
|
code/tarifa.py
|
kkirigaya/Kattis
|
29b7180aef70f51ea5b4d064204f70fc6d29d312
|
[
"MIT"
] | null | null | null |
code/tarifa.py
|
kkirigaya/Kattis
|
29b7180aef70f51ea5b4d064204f70fc6d29d312
|
[
"MIT"
] | null | null | null |
x = int(input())
n = int(input())
pool = x
for _ in range(n):
pool += x - int(input())
print(pool)
| 11.666667
| 28
| 0.542857
| 18
| 105
| 3.111111
| 0.5
| 0.428571
| 0.321429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.238095
| 105
| 8
| 29
| 13.125
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.166667
| 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
|
f615b5f1113246ada930f4761cfb04feb4a744c3
| 124
|
py
|
Python
|
oocran/django/bbus/apps.py
|
howls90/oocran
|
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 3
|
2018-12-12T10:32:16.000Z
|
2022-02-07T19:46:10.000Z
|
oocran/django/bbus/apps.py
|
howls90/oocran
|
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 1
|
2017-01-11T06:56:35.000Z
|
2017-01-11T06:58:44.000Z
|
oocran/django/bbus/apps.py
|
howls90/OOCRAN
|
9951f3ff752f9f6517a4d016476c1d1e2bb44a4d
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 6
|
2017-05-29T03:34:23.000Z
|
2022-02-07T19:46:11.000Z
|
from __future__ import unicode_literals
from django.apps import AppConfig
class BbusConfig(AppConfig):
name = 'bbus'
| 15.5
| 39
| 0.782258
| 15
| 124
| 6.133333
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 124
| 7
| 40
| 17.714286
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0.032258
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 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
|
f61805f32ff6c0f192a7134da4410cf77edba294
| 1,310
|
py
|
Python
|
items/migrations/0001_initial.py
|
jhord/gloomhaven.io
|
f9e6d3ba6313f27bbaf3367c216b4f439e0d0042
|
[
"MIT"
] | 2
|
2018-07-27T00:44:28.000Z
|
2018-07-27T20:17:17.000Z
|
items/migrations/0001_initial.py
|
jhord/gloomhaven.io
|
f9e6d3ba6313f27bbaf3367c216b4f439e0d0042
|
[
"MIT"
] | 9
|
2018-07-27T00:08:25.000Z
|
2018-07-30T08:34:05.000Z
|
items/migrations/0001_initial.py
|
jhord/gloomhaven.io
|
f9e6d3ba6313f27bbaf3367c216b4f439e0d0042
|
[
"MIT"
] | 1
|
2018-12-18T08:16:07.000Z
|
2018-12-18T08:16:07.000Z
|
# Generated by Django 2.0.7 on 2018-07-19 20:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Items',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('prosp', models.CharField(max_length=50)),
('slot', models.CharField(max_length=50)),
('name', models.CharField(max_length=50)),
('modifier', models.CharField(max_length=50)),
('cclass', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='MyItems',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('head', models.CharField(max_length=50)),
('body', models.CharField(max_length=50)),
('legs', models.CharField(max_length=50)),
('onehand', models.CharField(max_length=50)),
('twohand', models.CharField(max_length=50)),
('small', models.CharField(max_length=50)),
],
),
]
| 34.473684
| 114
| 0.545802
| 130
| 1,310
| 5.369231
| 0.392308
| 0.23639
| 0.283668
| 0.378224
| 0.636103
| 0.226361
| 0.226361
| 0.226361
| 0.226361
| 0.226361
| 0
| 0.040929
| 0.309924
| 1,310
| 37
| 115
| 35.405405
| 0.731195
| 0.034351
| 0
| 0.333333
| 1
| 0
| 0.061758
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.033333
| 0
| 0.166667
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f659f8129e177895d2f2d22a02049e4390ce0c3d
| 131
|
py
|
Python
|
code_icc/scripts/cluster/__init__.py
|
ThmCuong/IIC-Python3
|
5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1
|
[
"MIT"
] | null | null | null |
code_icc/scripts/cluster/__init__.py
|
ThmCuong/IIC-Python3
|
5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1
|
[
"MIT"
] | null | null | null |
code_icc/scripts/cluster/__init__.py
|
ThmCuong/IIC-Python3
|
5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1
|
[
"MIT"
] | null | null | null |
from . import analysis, baselines, cluster_greysclae_twohead, cluster_sobel_twohead
from . import cluster_greyscale, cluster_sobel
| 43.666667
| 83
| 0.862595
| 16
| 131
| 6.6875
| 0.5625
| 0.186916
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091603
| 131
| 2
| 84
| 65.5
| 0.89916
| 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
|
f665d703521d6ae069907bba6dcc0dabc7326ffe
| 19,664
|
py
|
Python
|
pythonbible/verses.py
|
sulembutproton/pythonbible
|
7b8c90e1b25bfdc028da3e5a43aaa6287005a0b1
|
[
"MIT"
] | 11
|
2021-03-29T17:29:57.000Z
|
2022-02-19T20:55:43.000Z
|
pythonbible/verses.py
|
sulembutproton/pythonbible
|
7b8c90e1b25bfdc028da3e5a43aaa6287005a0b1
|
[
"MIT"
] | 18
|
2021-03-24T21:50:54.000Z
|
2022-03-15T01:10:14.000Z
|
pythonbible/verses.py
|
sulembutproton/pythonbible
|
7b8c90e1b25bfdc028da3e5a43aaa6287005a0b1
|
[
"MIT"
] | 4
|
2021-05-19T01:19:24.000Z
|
2022-03-26T00:48:56.000Z
|
from functools import lru_cache
from pathlib import Path
from typing import Dict, List, Optional, Tuple
from pythonbible.books import Book
from pythonbible.errors import InvalidChapterError, InvalidVerseError
with open(Path(__file__).resolve().parent / "data" / "verse_ids.txt") as verse_ids_file:
VERSE_IDS: List[int] = [int(verse_id) for verse_id in verse_ids_file.readlines()]
MAX_VERSE_NUMBER_BY_BOOK_AND_CHAPTER: Dict[Book, List[int]] = {
Book.GENESIS: [
31,
25,
24,
26,
32,
22,
24,
22,
29,
32,
32,
20,
18,
24,
21,
16,
27,
33,
38,
18,
34,
24,
20,
67,
34,
35,
46,
22,
35,
43,
55,
32,
20,
31,
29,
43,
36,
30,
23,
23,
57,
38,
34,
34,
28,
34,
31,
22,
33,
26,
],
Book.EXODUS: [
22,
25,
22,
31,
23,
30,
25,
32,
35,
29,
10,
51,
22,
31,
27,
36,
16,
27,
25,
26,
36,
31,
33,
18,
40,
37,
21,
43,
46,
38,
18,
35,
23,
35,
35,
38,
29,
31,
43,
38,
],
Book.LEVITICUS: [
17,
16,
17,
35,
19,
30,
38,
36,
24,
20,
47,
8,
59,
57,
33,
34,
16,
30,
37,
27,
24,
33,
44,
23,
55,
46,
34,
],
Book.NUMBERS: [
54,
34,
51,
49,
31,
27,
89,
26,
23,
36,
35,
16,
33,
45,
41,
50,
13,
32,
22,
29,
35,
41,
30,
25,
18,
65,
23,
31,
40,
16,
54,
42,
56,
29,
34,
13,
],
Book.DEUTERONOMY: [
46,
37,
29,
49,
33,
25,
26,
20,
29,
22,
32,
32,
18,
29,
23,
22,
20,
22,
21,
20,
23,
30,
25,
22,
19,
19,
26,
68,
29,
20,
30,
52,
29,
12,
],
Book.JOSHUA: [
18,
24,
17,
24,
15,
27,
26,
35,
27,
43,
23,
24,
33,
15,
63,
10,
18,
28,
51,
9,
45,
34,
16,
33,
],
Book.JUDGES: [
36,
23,
31,
24,
31,
40,
25,
35,
57,
18,
40,
15,
25,
20,
20,
31,
13,
31,
30,
48,
25,
],
Book.RUTH: [
22,
23,
18,
22,
],
Book.SAMUEL_1: [
28,
36,
21,
22,
12,
21,
17,
22,
27,
27,
15,
25,
23,
52,
35,
23,
58,
30,
24,
42,
15,
23,
29,
22,
44,
25,
12,
25,
11,
31,
13,
],
Book.SAMUEL_2: [
27,
32,
39,
12,
25,
23,
29,
18,
13,
19,
27,
31,
39,
33,
37,
23,
29,
33,
43,
26,
22,
51,
39,
25,
],
Book.KINGS_1: [
53,
46,
28,
34,
18,
38,
51,
66,
28,
29,
43,
33,
34,
31,
34,
34,
24,
46,
21,
43,
29,
53,
],
Book.KINGS_2: [
18,
25,
27,
44,
27,
33,
20,
29,
37,
36,
21,
21,
25,
29,
38,
20,
41,
37,
37,
21,
26,
20,
37,
20,
30,
],
Book.CHRONICLES_1: [
54,
55,
24,
43,
26,
81,
40,
40,
44,
14,
47,
40,
14,
17,
29,
43,
27,
17,
19,
8,
30,
19,
32,
31,
31,
32,
34,
21,
30,
],
Book.CHRONICLES_2: [
17,
18,
17,
22,
14,
42,
22,
18,
31,
19,
23,
16,
22,
15,
19,
14,
19,
34,
11,
37,
20,
12,
21,
27,
28,
23,
9,
27,
36,
27,
21,
33,
25,
33,
27,
23,
],
Book.EZRA: [
11,
70,
13,
24,
17,
22,
28,
36,
15,
44,
],
Book.NEHEMIAH: [
11,
20,
32,
23,
19,
19,
73,
18,
38,
39,
36,
47,
31,
],
Book.ESTHER: [
22,
23,
15,
17,
14,
14,
10,
17,
32,
3,
],
Book.JOB: [
22,
13,
26,
21,
27,
30,
21,
22,
35,
22,
20,
25,
28,
22,
35,
22,
16,
21,
29,
29,
34,
30,
17,
25,
6,
14,
23,
28,
25,
31,
40,
22,
33,
37,
16,
33,
24,
41,
30,
24,
34,
17,
],
Book.PSALMS: [
6,
12,
8,
8,
12,
10,
17,
9,
20,
18,
7,
8,
6,
7,
5,
11,
15,
50,
14,
9,
13,
31,
6,
10,
22,
12,
14,
9,
11,
12,
24,
11,
22,
22,
28,
12,
40,
22,
13,
17,
13,
11,
5,
26,
17,
11,
9,
14,
20,
23,
19,
9,
6,
7,
23,
13,
11,
11,
17,
12,
8,
12,
11,
10,
13,
20,
7,
35,
36,
5,
24,
20,
28,
23,
10,
12,
20,
72,
13,
19,
16,
8,
18,
12,
13,
17,
7,
18,
52,
17,
16,
15,
5,
23,
11,
13,
12,
9,
9,
5,
8,
28,
22,
35,
45,
48,
43,
13,
31,
7,
10,
10,
9,
8,
18,
19,
2,
29,
176,
7,
8,
9,
4,
8,
5,
6,
5,
6,
8,
8,
3,
18,
3,
3,
21,
26,
9,
8,
24,
13,
10,
7,
12,
15,
21,
10,
20,
14,
9,
6,
],
Book.PROVERBS: [
33,
22,
35,
27,
23,
35,
27,
36,
18,
32,
31,
28,
25,
35,
33,
33,
28,
24,
29,
30,
31,
29,
35,
34,
28,
28,
27,
28,
27,
33,
31,
],
Book.ECCLESIASTES: [
18,
26,
22,
16,
20,
12,
29,
17,
18,
20,
10,
14,
],
Book.SONG_OF_SONGS: [
17,
17,
11,
16,
16,
13,
13,
14,
],
Book.ISAIAH: [
31,
22,
26,
6,
30,
13,
25,
22,
21,
34,
16,
6,
22,
32,
9,
14,
14,
7,
25,
6,
17,
25,
18,
23,
12,
21,
13,
29,
24,
33,
9,
20,
24,
17,
10,
22,
38,
22,
8,
31,
29,
25,
28,
28,
25,
13,
15,
22,
26,
11,
23,
15,
12,
17,
13,
12,
21,
14,
21,
22,
11,
12,
19,
12,
25,
24,
],
Book.JEREMIAH: [
19,
37,
25,
31,
31,
30,
34,
22,
26,
25,
23,
17,
27,
22,
21,
21,
27,
23,
15,
18,
14,
30,
40,
10,
38,
24,
22,
17,
32,
24,
40,
44,
26,
22,
19,
32,
21,
28,
18,
16,
18,
22,
13,
30,
5,
28,
7,
47,
39,
46,
64,
34,
],
Book.LAMENTATIONS: [
22,
22,
66,
22,
22,
],
Book.EZEKIEL: [
28,
10,
27,
17,
17,
14,
27,
18,
11,
22,
25,
28,
23,
23,
8,
63,
24,
32,
14,
49,
32,
31,
49,
27,
17,
21,
36,
26,
21,
26,
18,
32,
33,
31,
15,
38,
28,
23,
29,
49,
26,
20,
27,
31,
25,
24,
23,
35,
],
Book.DANIEL: [
21,
49,
30,
37,
31,
28,
28,
27,
27,
21,
45,
13,
],
Book.HOSEA: [
11,
23,
5,
19,
15,
11,
16,
14,
17,
15,
12,
14,
16,
9,
],
Book.JOEL: [
20,
32,
21,
],
Book.AMOS: [
15,
16,
15,
13,
27,
14,
17,
14,
15,
],
Book.OBADIAH: [
21,
],
Book.JONAH: [
17,
10,
10,
11,
],
Book.MICAH: [
16,
13,
12,
13,
15,
16,
20,
],
Book.NAHUM: [
15,
13,
19,
],
Book.HABAKKUK: [
17,
20,
19,
],
Book.ZEPHANIAH: [
18,
15,
20,
],
Book.HAGGAI: [
15,
23,
],
Book.ZECHARIAH: [
21,
13,
10,
14,
11,
15,
14,
23,
17,
12,
17,
14,
9,
21,
],
Book.MALACHI: [
14,
17,
18,
6,
],
Book.MATTHEW: [
25,
23,
17,
25,
48,
34,
29,
34,
38,
42,
30,
50,
58,
36,
39,
28,
27,
35,
30,
34,
46,
46,
39,
51,
46,
75,
66,
20,
],
Book.MARK: [
45,
28,
35,
41,
43,
56,
37,
38,
50,
52,
33,
44,
37,
72,
47,
20,
],
Book.LUKE: [
80,
52,
38,
44,
39,
49,
50,
56,
62,
42,
54,
59,
35,
35,
32,
31,
37,
43,
48,
47,
38,
71,
56,
53,
],
Book.JOHN: [
51,
25,
36,
54,
47,
71,
53,
59,
41,
42,
57,
50,
38,
31,
27,
33,
26,
40,
42,
31,
25,
],
Book.ACTS: [
26,
47,
26,
37,
42,
15,
60,
40,
43,
48,
30,
25,
52,
28,
41,
40,
34,
28,
41,
38,
40,
30,
35,
27,
27,
32,
44,
31,
],
Book.ROMANS: [
32,
29,
31,
25,
21,
23,
25,
39,
33,
21,
36,
21,
14,
23,
33,
27,
],
Book.CORINTHIANS_1: [
31,
16,
23,
21,
13,
20,
40,
13,
27,
33,
34,
31,
13,
40,
58,
24,
],
Book.CORINTHIANS_2: [
24,
17,
18,
18,
21,
18,
16,
24,
15,
18,
33,
21,
14,
],
Book.GALATIANS: [
24,
21,
29,
31,
26,
18,
],
Book.EPHESIANS: [
23,
22,
21,
32,
33,
24,
],
Book.PHILIPPIANS: [
30,
30,
21,
23,
],
Book.COLOSSIANS: [
29,
23,
25,
18,
],
Book.THESSALONIANS_1: [
10,
20,
13,
18,
28,
],
Book.THESSALONIANS_2: [
12,
17,
18,
],
Book.TIMOTHY_1: [
20,
15,
16,
16,
25,
21,
],
Book.TIMOTHY_2: [
18,
26,
17,
22,
],
Book.TITUS: [
16,
15,
15,
],
Book.PHILEMON: [
25,
],
Book.HEBREWS: [
14,
18,
19,
16,
14,
20,
28,
13,
28,
39,
40,
29,
25,
],
Book.JAMES: [
27,
26,
18,
17,
20,
],
Book.PETER_1: [
25,
25,
22,
19,
14,
],
Book.PETER_2: [
21,
22,
18,
],
Book.JOHN_1: [
10,
29,
24,
21,
21,
],
Book.JOHN_2: [
13,
],
Book.JOHN_3: [
14,
],
Book.JUDE: [
25,
],
Book.REVELATION: [
20,
29,
22,
11,
14,
17,
17,
13,
21,
11,
19,
17,
18,
20,
8,
21,
18,
24,
21,
15,
27,
21,
],
# Book.ESDRAS_1: [],
# Book.TOBIT: [],
# Book.WISDOM_OF_SOLOMON: [],
# Book.ECCLESIASTICUS: [],
# Book.MACCABEES_1: [],
# Book.MACCABEES_2: [],
}
@lru_cache()
def get_number_of_chapters(book: Book) -> int:
"""
Given a book of the Bible, return the int number of chapters in that book.
:param book:
:return: the int number of chapters in the given book of the Bible.
"""
return len(MAX_VERSE_NUMBER_BY_BOOK_AND_CHAPTER[book])
@lru_cache()
def is_single_chapter_book(book: Book) -> bool:
return get_number_of_chapters(book) == 1
@lru_cache()
def get_max_number_of_verses(book: Book, chapter: int) -> int:
"""
Given a Book enum and chapter number int, if valid, return the int number of verses in that Book and chapter.
:param book:
:param chapter:
:return: the maximum integer verse number for the given book and chapter
"""
chapter_list: List[int] = MAX_VERSE_NUMBER_BY_BOOK_AND_CHAPTER[book]
try:
return chapter_list[chapter - 1]
except IndexError:
raise InvalidChapterError(
f"{chapter} is not a valid chapter number for the book of {book.title}. "
f"Valid chapter numbers are 1-{len(chapter_list)}."
)
@lru_cache()
def get_verse_id(book: Book, chapter: int, verse: int) -> int:
"""
Given the Book enum, chapter number int, and verse number int return the verse id if it exists.
:param book:
:param chapter:
:param verse:
:return: the integer verse id for the given book, chapter, and verse
"""
# Not only will this get the max verse number, it will validate the chapter.
max_verse_number: Optional[int] = get_max_number_of_verses(book, chapter)
if max_verse_number and not 1 <= verse <= max_verse_number:
raise InvalidVerseError(
f"{book.title} {chapter}:{verse} is not a valid Bible verse. "
f"Valid verses for that book and chapter are 1-{max_verse_number}"
)
return int(book) * 1000000 + chapter * 1000 + verse
@lru_cache()
def get_book_chapter_verse(verse_id: int) -> Tuple[Book, int, int]:
"""
Given a verse id return the tuple containing the Book enum, the chapter number int, and the verse number int.
:param verse_id:
:return: (Book, chapter number, verse number)
"""
if verse_id not in VERSE_IDS:
raise InvalidVerseError(verse_id=verse_id)
return (
Book(get_book_number(verse_id)),
get_chapter_number(verse_id),
get_verse_number(verse_id),
)
@lru_cache()
def get_book_number(verse_id: int) -> int:
"""
Given a verse id return the int book number.
:param verse_id:
:return: int book number
"""
return int(verse_id / 1000000)
@lru_cache()
def get_chapter_number(verse_id: int) -> int:
"""
Given a verse id return the int chapter number.
:param verse_id:
:return: int chapter number
"""
return int(verse_id % 1000000 / 1000)
@lru_cache()
def get_verse_number(verse_id: int) -> int:
"""
Given a verse id return the int verse number.
:param verse_id:
:return: int verse number
"""
return int(verse_id % 1000)
| 13.561379
| 113
| 0.281326
| 1,872
| 19,664
| 2.887821
| 0.11485
| 0.033666
| 0.021643
| 0.018128
| 0.143359
| 0.093415
| 0.058824
| 0.042175
| 0.024417
| 0.024417
| 0
| 0.319255
| 0.623118
| 19,664
| 1,449
| 114
| 13.570738
| 0.410201
| 0.062653
| 0
| 0.908958
| 0
| 0
| 0.014081
| 0.001205
| 0
| 0
| 0
| 0
| 0
| 1
| 0.005827
| false
| 0
| 0.003642
| 0.000728
| 0.015295
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f6798f1c59d99ca7c92ae0d1bc6a99bd9c2b593e
| 670
|
py
|
Python
|
python/anyascii/_data/_28d.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_28d.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_28d.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
b='Jiong Kai Que Nan Mou Xu Song Shen Kuang Que Wei Die Nan Ruo Gong Dou Nian Chao He Yan Cua Tu Bu Hu Yong Shi Chu Bing Xiao Men Li Ti Jian Zhi Gua Guan Qi Fei Yu Zhe Wei E Chan Xi Gu Que Hui Xie Ying Ta Wai Fu Jie Pi Cua Sheng Yu Kua Pi Xie Nue Xian Jian Xu Bi Nan Liang Pian Jing Ta Yan Ai Xiao Qiang Wu Tang Jun Kuo Lang Neng Cong Dou Shu Jiao Nie Eun Yu Ce Jiao Hua Wen Ye E Guang Hua Jiao Gwaan Lei Shang Yong Deng Guan Niu Sui Xiang Sa Chang Muon Run Yun Mo Fen Jian Xu Xi Shu Xie Li Tou Mi Chan Huo Cua Zhuan Yue Cua Lan Yan Dang Xiang'
| 670
| 670
| 0.614925
| 131
| 670
| 3.145038
| 0.748092
| 0.029126
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.380597
| 670
| 1
| 670
| 670
| 0.992771
| 0
| 0
| 0
| 0
| 1
| 0.992548
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9c99ab57c6f100dbec6429b506edaeb1676a9563
| 191
|
py
|
Python
|
drf_util/managers.py
|
BeginnerInPy/drf-util
|
e372a2611cd69bc3605d482da0ba17aef97e6c10
|
[
"MIT"
] | null | null | null |
drf_util/managers.py
|
BeginnerInPy/drf-util
|
e372a2611cd69bc3605d482da0ba17aef97e6c10
|
[
"MIT"
] | null | null | null |
drf_util/managers.py
|
BeginnerInPy/drf-util
|
e372a2611cd69bc3605d482da0ba17aef97e6c10
|
[
"MIT"
] | null | null | null |
from django.db import models
class NoDeleteManager(models.Manager):
def get_queryset(self):
return super(NoDeleteManager, self).get_queryset().filter(date_deleted__isnull=True)
| 27.285714
| 92
| 0.774869
| 24
| 191
| 5.958333
| 0.791667
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13089
| 191
| 6
| 93
| 31.833333
| 0.861446
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
9c9c7829f3936f5d0aa762b80f441be0e62672aa
| 115
|
py
|
Python
|
tests/test_example.py
|
westphahl/boilerplate
|
109aa8eb4b4c86ffea7ed0b899df859bb00fba1b
|
[
"MIT"
] | 1
|
2016-12-06T01:03:05.000Z
|
2016-12-06T01:03:05.000Z
|
tests/test_example.py
|
westphahl/boilerplate
|
109aa8eb4b4c86ffea7ed0b899df859bb00fba1b
|
[
"MIT"
] | 1
|
2017-12-14T07:00:26.000Z
|
2017-12-14T07:00:26.000Z
|
tests/test_example.py
|
westphahl/boilerplate
|
109aa8eb4b4c86ffea7ed0b899df859bb00fba1b
|
[
"MIT"
] | null | null | null |
import unittest
class TestExample(unittest.TestCase):
def test_example(self):
self.assertTrue(True)
| 14.375
| 37
| 0.721739
| 13
| 115
| 6.307692
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.191304
| 115
| 7
| 38
| 16.428571
| 0.88172
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 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
|
1406cc4ce91694c15df1927f24b38aa40acbeedc
| 80
|
py
|
Python
|
examples/3-foreach/1-1-map.py
|
muzi131313/pythonLearn
|
705ae6e3e4e1480e4ac541efc9c4065e08befc7b
|
[
"MIT"
] | null | null | null |
examples/3-foreach/1-1-map.py
|
muzi131313/pythonLearn
|
705ae6e3e4e1480e4ac541efc9c4065e08befc7b
|
[
"MIT"
] | null | null | null |
examples/3-foreach/1-1-map.py
|
muzi131313/pythonLearn
|
705ae6e3e4e1480e4ac541efc9c4065e08befc7b
|
[
"MIT"
] | null | null | null |
#map: https://eastlakeside.gitbooks.io/interpy-zh/content/Map_n_Filter/Map.html
| 40
| 79
| 0.8125
| 13
| 80
| 4.846154
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025
| 80
| 1
| 80
| 80
| 0.807692
| 0.975
| 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
|
1423f2bd72e0c903fcdc96ec2bed355551481c3c
| 212
|
py
|
Python
|
platemotion/__init__.py
|
lcx366/PlateTectonic
|
3ca84e77a1dfc45ae69aa9e2126771818b0fd07b
|
[
"MIT"
] | 2
|
2021-03-10T00:48:00.000Z
|
2021-11-26T04:42:26.000Z
|
platemotion/__init__.py
|
lcx366/PlateTectonic
|
3ca84e77a1dfc45ae69aa9e2126771818b0fd07b
|
[
"MIT"
] | null | null | null |
platemotion/__init__.py
|
lcx366/PlateTectonic
|
3ca84e77a1dfc45ae69aa9e2126771818b0fd07b
|
[
"MIT"
] | 1
|
2021-11-26T03:46:34.000Z
|
2021-11-26T03:46:34.000Z
|
'''
platemotion package
This package is an archive of scientific routines for tectonic plate motion.
'''
from .classes.plate import Plate, PlateMotion
from .geodetic.ITRF_PlateMotion import ITRF_PlateMotion
| 23.555556
| 79
| 0.801887
| 27
| 212
| 6.222222
| 0.666667
| 0.178571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141509
| 212
| 8
| 80
| 26.5
| 0.923077
| 0.457547
| 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
|
142ce309c880f133b3e46ea2e9dc68e073456eba
| 572
|
py
|
Python
|
slayer/models/base.py
|
ajduberstein/slayer
|
e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea
|
[
"MIT"
] | 2
|
2019-02-26T23:55:06.000Z
|
2019-02-26T23:56:09.000Z
|
slayer/models/base.py
|
ajduberstein/slayer
|
e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea
|
[
"MIT"
] | 1
|
2019-02-10T07:00:39.000Z
|
2019-02-10T07:00:39.000Z
|
slayer/models/base.py
|
ajduberstein/slayer
|
e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea
|
[
"MIT"
] | null | null | null |
class RenderInterface(object):
def render(self):
raise NotImplementedError("Class %s doesn't implement render()" % (self.__class__.__name__))
class ViewportInterface(object):
def to_dict(self):
raise NotImplementedError("Class %s doesn't implement to_dict()" % (self.__class__.__name__))
def render(self):
raise NotImplementedError("Class %s doesn't implement render()" % (self.__class__.__name__))
def autocompute(self):
raise NotImplementedError("Class %s doesn't implement autocompute()" % (self.__class__.__name__))
| 38.133333
| 105
| 0.70979
| 64
| 572
| 5.8125
| 0.265625
| 0.107527
| 0.301075
| 0.354839
| 0.677419
| 0.677419
| 0.677419
| 0.677419
| 0.413978
| 0.413978
| 0
| 0
| 0.167832
| 572
| 14
| 106
| 40.857143
| 0.781513
| 0
| 0
| 0.4
| 0
| 0
| 0.255245
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0
| 0.6
| 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
| 0
| 1
| 0
|
0
| 4
|
142f3760bf46fb06d144bd88175d50a143f6f735
| 150
|
py
|
Python
|
ETPM-SDG/f1aula3_2.py
|
ayresmajor/Curso-python
|
006229cec38ea365bf43b19e3ce93fbd32e1dca6
|
[
"MIT"
] | null | null | null |
ETPM-SDG/f1aula3_2.py
|
ayresmajor/Curso-python
|
006229cec38ea365bf43b19e3ce93fbd32e1dca6
|
[
"MIT"
] | null | null | null |
ETPM-SDG/f1aula3_2.py
|
ayresmajor/Curso-python
|
006229cec38ea365bf43b19e3ce93fbd32e1dca6
|
[
"MIT"
] | null | null | null |
num1 = int(input('digite um valor'))
num2 = int(input('digite um valor'))
s = num1 + num2
print('A soma entre {} e {} vale {}'.format(num1, num2, s))
| 30
| 59
| 0.626667
| 25
| 150
| 3.76
| 0.6
| 0.170213
| 0.297872
| 0.340426
| 0.446809
| 0
| 0
| 0
| 0
| 0
| 0
| 0.048
| 0.166667
| 150
| 4
| 60
| 37.5
| 0.704
| 0
| 0
| 0
| 0
| 0
| 0.386667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 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
|
1463ba908380cf48d9e346f80c1c6401ba921597
| 100
|
py
|
Python
|
dorent/rentlists/apps.py
|
puyomi/dorent
|
19ad6ab8c60e5177e6cf4890541f7f8049277a4f
|
[
"MIT"
] | null | null | null |
dorent/rentlists/apps.py
|
puyomi/dorent
|
19ad6ab8c60e5177e6cf4890541f7f8049277a4f
|
[
"MIT"
] | 12
|
2020-06-05T19:33:05.000Z
|
2022-02-26T13:12:32.000Z
|
dorent/rentlists/apps.py
|
puyomi/dorent
|
19ad6ab8c60e5177e6cf4890541f7f8049277a4f
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class RentlistsConfig(AppConfig):
name = 'dorent.rentlists'
| 16.666667
| 33
| 0.77
| 11
| 100
| 7
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 100
| 5
| 34
| 20
| 0.905882
| 0
| 0
| 0
| 0
| 0
| 0.16
| 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
|
14b0e52d181c3c3f3af9ceaa6dbf9566dedb19e3
| 125
|
py
|
Python
|
repositories/generate_rclcpp_interface.py
|
EvanLiUAV/rules_ros2
|
40928cfc1bf3d764d991312f1206b4a938e19d1f
|
[
"Apache-2.0"
] | 10
|
2021-05-18T16:27:31.000Z
|
2022-03-19T06:20:04.000Z
|
repositories/generate_rclcpp_interface.py
|
EvanLiUAV/rules_ros2
|
40928cfc1bf3d764d991312f1206b4a938e19d1f
|
[
"Apache-2.0"
] | 2
|
2021-06-07T13:03:14.000Z
|
2021-06-09T08:25:32.000Z
|
repositories/generate_rclcpp_interface.py
|
EvanLiUAV/rules_ros2
|
40928cfc1bf3d764d991312f1206b4a938e19d1f
|
[
"Apache-2.0"
] | 6
|
2021-06-08T13:08:50.000Z
|
2022-03-24T11:48:45.000Z
|
import sys
import em
em.invoke([
'-D', f'interface_name=\"{sys.argv[1]}\"',
'-o', sys.argv[2],
sys.argv[3],
])
| 12.5
| 46
| 0.528
| 20
| 125
| 3.25
| 0.65
| 0.323077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.03
| 0.2
| 125
| 9
| 47
| 13.888889
| 0.62
| 0
| 0
| 0
| 0
| 0
| 0.288
| 0.256
| 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
|
210a509caa47edd5eb7652d4dc5e1bb2a8bba574
| 78
|
py
|
Python
|
python/testData/intentions/PyConvertFormatOperatorToMethodIntentionTest/concatenated_after.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2018-12-29T09:53:39.000Z
|
2018-12-29T09:53:42.000Z
|
python/testData/intentions/PyConvertFormatOperatorToMethodIntentionTest/concatenated_after.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/intentions/PyConvertFormatOperatorToMethodIntentionTest/concatenated_after.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
print('{quantity} pounds of '
'{type}'.format(quantity=42, type='spam'))
| 39
| 48
| 0.628205
| 10
| 78
| 4.9
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029851
| 0.141026
| 78
| 2
| 48
| 39
| 0.701493
| 0
| 0
| 0
| 0
| 0
| 0.392405
| 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
|
210a977ea34e0f25aea6180e29bdac608db8cd51
| 212
|
py
|
Python
|
api/common/config.py
|
melonmanchan/gachimuch.io-api
|
43646c8eb9113731771a984c32d37d9fe48ef24a
|
[
"MIT"
] | null | null | null |
api/common/config.py
|
melonmanchan/gachimuch.io-api
|
43646c8eb9113731771a984c32d37d9fe48ef24a
|
[
"MIT"
] | null | null | null |
api/common/config.py
|
melonmanchan/gachimuch.io-api
|
43646c8eb9113731771a984c32d37d9fe48ef24a
|
[
"MIT"
] | null | null | null |
__author__ = 'matti'
class Config(object):
DEBUG = False
TESTING = False
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:testipassu@localhost/gachimuchio'
class DebugConfig(Config):
DEBUG = True
| 26.5
| 86
| 0.735849
| 22
| 212
| 6.818182
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.165094
| 212
| 8
| 87
| 26.5
| 0.847458
| 0
| 0
| 0
| 0
| 0
| 0.276995
| 0.253521
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.142857
| 0
| 0
| 0.857143
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
214686f5b0f595d8a80a51e522db33ed72417972
| 83
|
py
|
Python
|
allperf/builder/builder.py
|
JosiahCraw/allperf
|
1653e5a2cdfc44f59190541e54bb1e77ff6a8a66
|
[
"MIT"
] | null | null | null |
allperf/builder/builder.py
|
JosiahCraw/allperf
|
1653e5a2cdfc44f59190541e54bb1e77ff6a8a66
|
[
"MIT"
] | null | null | null |
allperf/builder/builder.py
|
JosiahCraw/allperf
|
1653e5a2cdfc44f59190541e54bb1e77ff6a8a66
|
[
"MIT"
] | null | null | null |
import subprocess
class Builder():
def __init__(config_file):
self.con
| 16.6
| 30
| 0.686747
| 10
| 83
| 5.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.228916
| 83
| 5
| 31
| 16.6
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
dcc66f41594e51e24d8337f4c2e0e698cdd9df55
| 4,454
|
py
|
Python
|
tests/docstring/create_operation_docstring_test.py
|
Timothyyung/bravado-core
|
baaef12d2908f803deed4e220e6bdaec4ee6e029
|
[
"BSD-3-Clause"
] | 122
|
2015-04-22T17:31:18.000Z
|
2021-11-08T10:29:57.000Z
|
tests/docstring/create_operation_docstring_test.py
|
Timothyyung/bravado-core
|
baaef12d2908f803deed4e220e6bdaec4ee6e029
|
[
"BSD-3-Clause"
] | 364
|
2015-04-10T22:19:23.000Z
|
2022-02-25T08:55:10.000Z
|
tests/docstring/create_operation_docstring_test.py
|
Timothyyung/bravado-core
|
baaef12d2908f803deed4e220e6bdaec4ee6e029
|
[
"BSD-3-Clause"
] | 118
|
2015-04-20T15:11:53.000Z
|
2021-12-09T10:03:34.000Z
|
# -*- coding: utf-8 -*-
from bravado_core.docstring import create_operation_docstring
from bravado_core.operation import Operation
def test_simple(op_spec, empty_swagger_spec):
expected = \
"[GET] Finds Pets by status\n\n" \
"Multiple status values can be provided with comma " \
"seperated strings\n\n" \
":param status: the status, yo! (Default: available) (optional)\n" \
":type status: array\n" \
":returns: 200: successful operation\n" \
":rtype: array:#/definitions/Pet\n" \
":returns: 400: Invalid status value\n"
op = Operation(empty_swagger_spec, '/pet', 'get', op_spec)
assert expected == create_operation_docstring(op)
def test_no_parameters(op_spec, empty_swagger_spec):
del op_spec['parameters']
expected = \
"[GET] Finds Pets by status\n\n" \
"Multiple status values can be provided with comma " \
"seperated strings\n\n" \
":returns: 200: successful operation\n" \
":rtype: array:#/definitions/Pet\n" \
":returns: 400: Invalid status value\n"
op = Operation(empty_swagger_spec, '/pet', 'get', op_spec)
assert expected == create_operation_docstring(op)
def test_deprecated(op_spec, empty_swagger_spec):
expected = \
"** DEPRECATED **\n" \
"[GET] Finds Pets by status\n\n" \
"Multiple status values can be provided with comma " \
"seperated strings\n\n" \
":param status: the status, yo! (Default: available) (optional)\n" \
":type status: array\n" \
":returns: 200: successful operation\n" \
":rtype: array:#/definitions/Pet\n" \
":returns: 400: Invalid status value\n"
op_spec['deprecated'] = True
op = Operation(empty_swagger_spec, '/pet', 'get', op_spec)
assert expected == create_operation_docstring(op)
def test_no_summary(op_spec, empty_swagger_spec):
expected = \
"Multiple status values can be provided with comma " \
"seperated strings\n\n" \
":param status: the status, yo! (Default: available) (optional)\n" \
":type status: array\n" \
":returns: 200: successful operation\n" \
":rtype: array:#/definitions/Pet\n" \
":returns: 400: Invalid status value\n"
del op_spec['summary']
op = Operation(empty_swagger_spec, '/pet', 'get', op_spec)
assert expected == create_operation_docstring(op)
def test_no_description(op_spec, empty_swagger_spec):
expected = \
"[GET] Finds Pets by status\n\n" \
":param status: the status, yo! (Default: available) (optional)\n" \
":type status: array\n" \
":returns: 200: successful operation\n" \
":rtype: array:#/definitions/Pet\n" \
":returns: 400: Invalid status value\n"
del op_spec['description']
op = Operation(empty_swagger_spec, '/pet', 'get', op_spec)
assert expected == create_operation_docstring(op)
def test_notype(op_spec, empty_swagger_spec):
del op_spec['responses']['200']['schema']['type']
expected = \
"[GET] Finds Pets by status\n\n" \
"Multiple status values can be provided with comma " \
"seperated strings\n\n" \
":param status: the status, yo! (Default: available) (optional)\n" \
":type status: array\n" \
":returns: 200: successful operation\n" \
":rtype: notype\n" \
":returns: 400: Invalid status value\n"
op = Operation(empty_swagger_spec, '/pet', 'get', op_spec)
assert expected == create_operation_docstring(op)
def test_unicode(op_spec, empty_swagger_spec):
# Only test freeform fields (those most likely to contain unicode)
op_spec['summary'] = u'Ümlaut1'
op_spec['description'] = u'Ümlaut2'
op_spec['parameters'][0]['name'] = u'Ümlaut3'
op_spec['parameters'][0]['description'] = u'Ümlaut4'
op_spec['parameters'][0]['default'] = u'Ümlaut5'
op_spec['responses']['200']['description'] = u'Ümlaut6'
op_spec['responses']['400']['description'] = u'Ümlaut7'
expected = \
u"[GET] Ümlaut1\n\n" \
u"Ümlaut2\n\n" \
u":param Ümlaut3: Ümlaut4 (Default: Ümlaut5) (optional)\n" \
u":type Ümlaut3: array\n" \
u":returns: 200: Ümlaut6\n" \
u":rtype: array:#/definitions/Pet\n" \
u":returns: 400: Ümlaut7\n"
op = Operation(empty_swagger_spec, '/pet', 'get', op_spec)
assert expected == create_operation_docstring(op)
| 37.745763
| 76
| 0.631118
| 560
| 4,454
| 4.873214
| 0.142857
| 0.057164
| 0.082081
| 0.046171
| 0.761085
| 0.743862
| 0.721876
| 0.721876
| 0.699157
| 0.699157
| 0
| 0.020278
| 0.224966
| 4,454
| 117
| 77
| 38.068376
| 0.770278
| 0.019308
| 0
| 0.677419
| 0
| 0
| 0.46575
| 0.034364
| 0
| 0
| 0
| 0
| 0.075269
| 1
| 0.075269
| false
| 0
| 0.021505
| 0
| 0.096774
| 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
|
dccca607188c3c70ea5cc7f5d0eac39532f21841
| 83
|
py
|
Python
|
skcuda/version.py
|
hsnyder/scikit-cuda
|
ab2708a1d514373d6760fa6e74ac7545b4ff8ec0
|
[
"BSD-3-Clause"
] | 1
|
2021-08-14T08:12:57.000Z
|
2021-08-14T08:12:57.000Z
|
skcuda/version.py
|
hsnyder/scikit-cuda
|
ab2708a1d514373d6760fa6e74ac7545b4ff8ec0
|
[
"BSD-3-Clause"
] | 1
|
2019-03-02T03:03:18.000Z
|
2019-03-02T03:03:18.000Z
|
skcuda/version.py
|
hsnyder/scikit-cuda
|
ab2708a1d514373d6760fa6e74ac7545b4ff8ec0
|
[
"BSD-3-Clause"
] | 1
|
2021-12-26T21:31:39.000Z
|
2021-12-26T21:31:39.000Z
|
import pkg_resources
__version__ = pkg_resources.require('scikit-cuda')[0].version
| 27.666667
| 61
| 0.819277
| 11
| 83
| 5.636364
| 0.727273
| 0.387097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012821
| 0.060241
| 83
| 2
| 62
| 41.5
| 0.782051
| 0
| 0
| 0
| 0
| 0
| 0.13253
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.