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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4b1f5f594632728fc31e8160bee1a40c0651549 | 455 | py | Python | qrogue/management/__init__.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | 4 | 2021-12-14T19:13:43.000Z | 2022-02-16T13:25:38.000Z | qrogue/management/__init__.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | null | null | null | qrogue/management/__init__.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | 1 | 2022-01-04T18:35:51.000Z | 2022-01-04T18:35:51.000Z | # exporting
from .pause import Pausing
from .save_data import SaveData
from .story import StoryNarration
from .map_management import MapManager
from .qrogue_pycui import QrogueCUI
# importing
# +util
# +util.game_simulator
# +util.key_logger
# +game.logic.actors
# +game.logic.actors.controllables
# +game.world.dungeon... | 21.666667 | 38 | 0.784615 | 58 | 455 | 6.051724 | 0.586207 | 0.102564 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 455 | 20 | 39 | 22.75 | 0.864532 | 0.564835 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d4b280f6a1a3945115782f70def7492512a19fba | 171 | py | Python | course1/secret_code.py | dbrandenburg/python-oreilley-certification | 44af77d093100971e32d48b309f8d6e6d1b78364 | [
"Apache-2.0"
] | null | null | null | course1/secret_code.py | dbrandenburg/python-oreilley-certification | 44af77d093100971e32d48b309f8d6e6d1b78364 | [
"Apache-2.0"
] | null | null | null | course1/secret_code.py | dbrandenburg/python-oreilley-certification | 44af77d093100971e32d48b309f8d6e6d1b78364 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python3
message = str(input("Message: "))
secret = ""
for character in reversed(message):
secret = secret + str(chr(ord(character)+1))
print(secret) | 21.375 | 48 | 0.684211 | 23 | 171 | 5.086957 | 0.695652 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.134503 | 171 | 8 | 49 | 21.375 | 0.777027 | 0.134503 | 0 | 0 | 0 | 0 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 3 |
d4b7c4ef17ff633f479396b3772e1f7318aaeee8 | 129 | py | Python | testfiles/pyobfu10.py | Oliv95/Language-based-security-project | 02f11982249294a54a8bbb29a9dc106f88944e10 | [
"MIT"
] | null | null | null | testfiles/pyobfu10.py | Oliv95/Language-based-security-project | 02f11982249294a54a8bbb29a9dc106f88944e10 | [
"MIT"
] | 1 | 2017-03-23T15:25:11.000Z | 2017-03-24T12:52:35.000Z | testfiles/pyobfu10.py | Oliv95/Language-based-security-project | 02f11982249294a54a8bbb29a9dc106f88944e10 | [
"MIT"
] | null | null | null | oo000 = 0
for ii in range ( 11 ) :
oo000 += ii
if 51 - 51: IiI1i11I
print ( oo000 )
# dd678faae9ac167bc83abf78e5cb2f3f0688d3a3
| 18.428571 | 42 | 0.705426 | 16 | 129 | 5.6875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.382353 | 0.209302 | 129 | 6 | 43 | 21.5 | 0.509804 | 0.310078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4c013499a0c2e5d3b4fafb8025e0916cc00d9d6 | 9,667 | py | Python | test/solution_tests/CHK/test_checkout.py | DPNT-Sourcecode/CHK-qvhh01 | 3eccdc858e46242af5838aa84cc553c423db8af8 | [
"Apache-2.0"
] | null | null | null | test/solution_tests/CHK/test_checkout.py | DPNT-Sourcecode/CHK-qvhh01 | 3eccdc858e46242af5838aa84cc553c423db8af8 | [
"Apache-2.0"
] | null | null | null | test/solution_tests/CHK/test_checkout.py | DPNT-Sourcecode/CHK-qvhh01 | 3eccdc858e46242af5838aa84cc553c423db8af8 | [
"Apache-2.0"
] | null | null | null | from lib.solutions.CHK import checkout_solution
class TestSkus():
def test_skus_should_created(self):
skus_a = checkout_solution.Skus(product_name='A', price=10.0)
assert skus_a.get_product_name() == 'A'
assert skus_a.get_price() == 10.0
assert skus_a.get_number_of_items() ==... | 42.213974 | 106 | 0.66877 | 1,181 | 9,667 | 5.108383 | 0.127011 | 0.188298 | 0.09448 | 0.103928 | 0.844853 | 0.560583 | 0.492458 | 0.491464 | 0.470247 | 0.470247 | 0 | 0.033526 | 0.231716 | 9,667 | 228 | 107 | 42.399123 | 0.77878 | 0.290162 | 0 | 0.226087 | 0 | 0 | 0.034572 | 0.011879 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.321739 | false | 0 | 0.008696 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4c5458ad84947b0d5f3819073069584c5373685 | 2,004 | py | Python | function/python/brightics/common/statistics.py | sharon1321/studio | c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5 | [
"Apache-2.0"
] | null | null | null | function/python/brightics/common/statistics.py | sharon1321/studio | c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5 | [
"Apache-2.0"
] | null | null | null | function/python/brightics/common/statistics.py | sharon1321/studio | c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2019 Samsung SDS
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applic... | 21.094737 | 87 | 0.662176 | 341 | 2,004 | 3.847507 | 0.357771 | 0.112043 | 0.109756 | 0.053354 | 0.197409 | 0.11128 | 0.091463 | 0.054878 | 0.054878 | 0.054878 | 0 | 0.009622 | 0.222056 | 2,004 | 94 | 88 | 21.319149 | 0.831944 | 0.2999 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.766667 | false | 0 | 0.1 | 0.733333 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d4c8f3b29546c3a956f7a3f5db89baea535074d2 | 136 | py | Python | haasomeapi/enums/EnumFlashSpreadOptions.py | iamcos/haasomeapi | eac1640cc13e1e7649b8a8d6ed88184722c907c8 | [
"MIT"
] | null | null | null | haasomeapi/enums/EnumFlashSpreadOptions.py | iamcos/haasomeapi | eac1640cc13e1e7649b8a8d6ed88184722c907c8 | [
"MIT"
] | null | null | null | haasomeapi/enums/EnumFlashSpreadOptions.py | iamcos/haasomeapi | eac1640cc13e1e7649b8a8d6ed88184722c907c8 | [
"MIT"
] | null | null | null | from enum import Enum
class EnumFlashSpreadOptions(Enum):
FIXED_AMOUNT = 0
PERCENTAGE = 1
PERCENTAGE_WITH_BOOST = 2
EXPONENTIAL = 3 | 19.428571 | 35 | 0.786765 | 18 | 136 | 5.777778 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.161765 | 136 | 7 | 36 | 19.428571 | 0.877193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
d4da2f97bc53ac1186d79a1c715aa6bdf9fa9071 | 182 | py | Python | db_replication/config.py | agarwal-nitesh/db_replication | c412d9176fc2b633bd70a3ae2789f7fef288f1dd | [
"MIT"
] | 2 | 2018-08-17T15:15:01.000Z | 2018-09-18T04:16:09.000Z | db_replication/config.py | therudite/db_replication | c412d9176fc2b633bd70a3ae2789f7fef288f1dd | [
"MIT"
] | null | null | null | db_replication/config.py | therudite/db_replication | c412d9176fc2b633bd70a3ae2789f7fef288f1dd | [
"MIT"
] | 2 | 2018-10-03T09:37:36.000Z | 2019-07-31T02:13:58.000Z | APP_PORT = 7991
LOGFILE_PATH = "/var/log/application/db_replication.log"
MASTER_MYSQL = {
'host': '127.0.0.1',
'port': 3306,
'user': 'root',
'password': 'password'
}
| 20.222222 | 56 | 0.615385 | 24 | 182 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 0.186813 | 182 | 8 | 57 | 22.75 | 0.635135 | 0 | 0 | 0 | 0 | 0 | 0.43956 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d4e8cfa2de53db832050bab74b279ea0eccc32d4 | 319 | py | Python | signal_notification/apps.py | pprolancer/django-signal-notification | 1d3f6fea1e58a97ac183d94fa6eca127e508f9a3 | [
"Apache-2.0"
] | 1 | 2020-12-01T14:02:11.000Z | 2020-12-01T14:02:11.000Z | signal_notification/apps.py | pprolancer/django-signal-notification | 1d3f6fea1e58a97ac183d94fa6eca127e508f9a3 | [
"Apache-2.0"
] | null | null | null | signal_notification/apps.py | pprolancer/django-signal-notification | 1d3f6fea1e58a97ac183d94fa6eca127e508f9a3 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class SignalNotificationConfig(AppConfig):
name = 'signal_notification'
def ready(self):
from signal_notification.notify_manager import get_registered_notify_manager, get_registered_handlers
get_registered_handlers()
get_registered_notify_manager()
| 26.583333 | 109 | 0.780564 | 34 | 319 | 6.941176 | 0.529412 | 0.220339 | 0.161017 | 0.220339 | 0.233051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169279 | 319 | 11 | 110 | 29 | 0.890566 | 0 | 0 | 0 | 0 | 0 | 0.059748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
be2a7f575bd5ee29e2edf3e8bfb1890ab5b0caf8 | 1,310 | py | Python | manga_py/providers/readmanga_eu.py | sonvt1710/manga-py | 848a78e93b890af0c92056a1a9fc7f6ce5707cf6 | [
"MIT"
] | 7 | 2019-07-31T13:50:59.000Z | 2019-08-24T03:04:13.000Z | manga_py/providers/readmanga_eu.py | sonvt1710/manga-py | 848a78e93b890af0c92056a1a9fc7f6ce5707cf6 | [
"MIT"
] | 18 | 2019-07-26T22:27:06.000Z | 2019-08-25T13:45:13.000Z | manga_py/providers/readmanga_eu.py | sonvt1710/manga-py | 848a78e93b890af0c92056a1a9fc7f6ce5707cf6 | [
"MIT"
] | 2 | 2019-08-07T12:38:25.000Z | 2019-08-08T06:53:31.000Z | from manga_py.provider import Provider
from .helpers.std import Std
class ReadMangaEu(Provider, Std):
def get_chapter_index(self) -> str:
idx = self.re.search('/manga/\d+/[^/]+/([^/]+)', self.chapter)
return '-'.join(idx.group(1).split('.'))
def get_content(self):
name = self._get_na... | 29.111111 | 70 | 0.608397 | 162 | 1,310 | 4.722222 | 0.388889 | 0.047059 | 0.028758 | 0.04183 | 0.112418 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001004 | 0.239695 | 1,310 | 44 | 71 | 29.772727 | 0.767068 | 0.00687 | 0 | 0 | 0 | 0 | 0.127021 | 0.018476 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.258065 | false | 0.032258 | 0.064516 | 0.064516 | 0.580645 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0787716fc352460cee4d15a876e7ae80344f20ee | 2,334 | py | Python | sesion_05/products/views.py | bernest/modulo-django-desarrollo-web-cdmx-20-05pt | 33f971f032f7d3902a49a993d46e3ecefb21d59b | [
"MIT"
] | null | null | null | sesion_05/products/views.py | bernest/modulo-django-desarrollo-web-cdmx-20-05pt | 33f971f032f7d3902a49a993d46e3ecefb21d59b | [
"MIT"
] | null | null | null | sesion_05/products/views.py | bernest/modulo-django-desarrollo-web-cdmx-20-05pt | 33f971f032f7d3902a49a993d46e3ecefb21d59b | [
"MIT"
] | null | null | null | """Products app views"""
# Stardard library
# Django imports
# from django.shortcuts import get_object_or_404
# Third party apps
# from rest_framework.response import Response
# from rest_framework.views import APIView
# from rest_framework import status, generics
from rest_framework import viewsets
# Local apps
fr... | 27.785714 | 80 | 0.691088 | 251 | 2,334 | 6.298805 | 0.318725 | 0.061986 | 0.091082 | 0.035421 | 0.471221 | 0.407337 | 0.407337 | 0.299178 | 0.299178 | 0.299178 | 0 | 0.012966 | 0.206941 | 2,334 | 83 | 81 | 28.120482 | 0.841167 | 0.841902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
07a115ea01d6ea3d9d0dff6259320b91ecfba474 | 132 | py | Python | desafio16.py | Ramossvitor/PYTHON | 72f1986afd80f908b66238729f689e0f1f166c6b | [
"MIT"
] | null | null | null | desafio16.py | Ramossvitor/PYTHON | 72f1986afd80f908b66238729f689e0f1f166c6b | [
"MIT"
] | null | null | null | desafio16.py | Ramossvitor/PYTHON | 72f1986afd80f908b66238729f689e0f1f166c6b | [
"MIT"
] | null | null | null | import math
num1 = float(input('Digite um numero: '))
print('O numero {} tem a parte inteira {:.0f}'.format(num1, math.trunc(num1))) | 44 | 78 | 0.689394 | 21 | 132 | 4.333333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.121212 | 132 | 3 | 78 | 44 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
07da308db478ad4656c1ade3bfa40966b789cec8 | 218 | py | Python | fbExceptionMeansPortNotPermitted.py | SkyLined/mTCPIPConnection | 52f6152a83a163c9f5a45c3fd6edc840c8e72a3b | [
"CC-BY-4.0"
] | null | null | null | fbExceptionMeansPortNotPermitted.py | SkyLined/mTCPIPConnection | 52f6152a83a163c9f5a45c3fd6edc840c8e72a3b | [
"CC-BY-4.0"
] | null | null | null | fbExceptionMeansPortNotPermitted.py | SkyLined/mTCPIPConnection | 52f6152a83a163c9f5a45c3fd6edc840c8e72a3b | [
"CC-BY-4.0"
] | null | null | null | import os, socket;
def fbExceptionMeansPortNotPermitted(oException):
return (
False
) if os.name == "nt" else (
(isinstance(oException, PermissionError) and oException.errno == 13) # Permission denied
); | 27.25 | 92 | 0.711009 | 22 | 218 | 7.045455 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.178899 | 218 | 8 | 93 | 27.25 | 0.854749 | 0.077982 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 0 | 1 | 0 | 0 | 0 | 3 |
07e6b33c99899b49f42db08fa5fa9726787d498b | 43 | py | Python | virt_backup/__init__.py | Anthony25/virt-backup | 610c46f24da2325efa25f52fbb1a14f166184684 | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2016-11-13T00:41:47.000Z | 2019-05-16T07:37:48.000Z | virt_backup/__init__.py | Anthony25/virt-backup | 610c46f24da2325efa25f52fbb1a14f166184684 | [
"BSD-2-Clause-FreeBSD"
] | 20 | 2016-08-03T00:21:46.000Z | 2019-06-11T21:52:07.000Z | virt_backup/__init__.py | Anthony25/virt-backup | 610c46f24da2325efa25f52fbb1a14f166184684 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2017-10-09T12:50:22.000Z | 2019-03-26T00:49:14.000Z | APP_NAME = "virt-backup"
VERSION = "0.5.4"
| 14.333333 | 24 | 0.651163 | 8 | 43 | 3.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.139535 | 43 | 2 | 25 | 21.5 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 0.372093 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
07ece62124e0aea3509bdde0925f7902f4130aa9 | 3,863 | py | Python | iscram/tests/integration/test_services.py | tkieras/iscram | 7d710e16db2df46e9860f02efa22ab641b8729d7 | [
"MIT"
] | null | null | null | iscram/tests/integration/test_services.py | tkieras/iscram | 7d710e16db2df46e9860f02efa22ab641b8729d7 | [
"MIT"
] | null | null | null | iscram/tests/integration/test_services.py | tkieras/iscram | 7d710e16db2df46e9860f02efa22ab641b8729d7 | [
"MIT"
] | null | null | null | from typing import Dict
from pytest import approx
from iscram.domain.model import SystemGraph
from iscram.adapters.repository import FakeRepository
from iscram.service_layer import services
from iscram.tests.conftest import get_sg_from_file
def test_get_birnbaum_structural_importance(minimal: SystemGraph):
bst_i... | 40.663158 | 131 | 0.768833 | 534 | 3,863 | 5.149813 | 0.153558 | 0.096 | 0.086545 | 0.058182 | 0.734182 | 0.717818 | 0.665455 | 0.625455 | 0.587636 | 0.455636 | 0 | 0.015188 | 0.130727 | 3,863 | 94 | 132 | 41.095745 | 0.803752 | 0 | 0 | 0.246154 | 0 | 0 | 0.076107 | 0.023816 | 0 | 0 | 0 | 0 | 0.338462 | 1 | 0.215385 | false | 0 | 0.461538 | 0 | 0.676923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
07f7686f93b2c90e0b5be3fe57a5046fc51868dd | 62 | py | Python | python/testData/intentions/convertVariadicParamPositionalContainerInPy3_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/convertVariadicParamPositionalContainerInPy3_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/convertVariadicParamPositionalContainerInPy3_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def foo(baz=None, *args, bar, **kwargs<caret>):
return bar | 31 | 47 | 0.645161 | 10 | 62 | 4 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 62 | 2 | 48 | 31 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
07fe3afab0b4cdc9f958037890ce461a43b89378 | 3,830 | py | Python | battlecalculator.py | owenonline/Battle-Calculator-Python | 91ba40e19ebe417e18aab66a2ba98a1fdc96e7a5 | [
"MIT"
] | null | null | null | battlecalculator.py | owenonline/Battle-Calculator-Python | 91ba40e19ebe417e18aab66a2ba98a1fdc96e7a5 | [
"MIT"
] | null | null | null | battlecalculator.py | owenonline/Battle-Calculator-Python | 91ba40e19ebe417e18aab66a2ba98a1fdc96e7a5 | [
"MIT"
] | null | null | null | import math
print("keep all values greater than 0")
forceA=float(input("Enter number of non artillery forces for side A: "))
forceB=float(input("Enter number of non artillery forces for side B: "))
deteffectivenessA=float(input("Enter the organic detection effectiveness (%) of side A: "))
deteffectivenessB=float(i... | 52.465753 | 168 | 0.66188 | 495 | 3,830 | 5.121212 | 0.157576 | 0.06075 | 0.071795 | 0.07574 | 0.743984 | 0.734911 | 0.734911 | 0.708876 | 0.590533 | 0.514793 | 0 | 0.018354 | 0.174935 | 3,830 | 73 | 169 | 52.465753 | 0.783861 | 0 | 0 | 0.265625 | 0 | 0.03125 | 0.205906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.015625 | 0 | 0.03125 | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 3 |
5806c1e5cf0aea0b7fce83ab4406884654dee558 | 1,493 | py | Python | simple_rl/mdp/StateClass.py | david-abel/mdps | d8fe6007efb4840377f085a4e35ba89aaa2cdf6d | [
"Apache-2.0"
] | 230 | 2016-08-04T12:59:11.000Z | 2022-03-15T04:14:40.000Z | simple_rl/mdp/StateClass.py | david-abel/mdps | d8fe6007efb4840377f085a4e35ba89aaa2cdf6d | [
"Apache-2.0"
] | 36 | 2016-08-31T19:31:36.000Z | 2021-11-17T03:58:24.000Z | simple_rl/mdp/StateClass.py | david-abel/mdps | d8fe6007efb4840377f085a4e35ba89aaa2cdf6d | [
"Apache-2.0"
] | 95 | 2016-08-31T19:10:45.000Z | 2022-03-15T04:15:39.000Z | # Python imports
from collections.abc import Sequence
import numpy as np
''' StateClass.py: Contains the State Class. '''
class State(Sequence):
''' Abstract State class '''
def __init__(self, data=[], is_terminal=False):
self.data = data
self._is_terminal = is_terminal
def features(sel... | 24.883333 | 70 | 0.600804 | 181 | 1,493 | 4.674033 | 0.39779 | 0.122931 | 0.049645 | 0.037825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304756 | 1,493 | 59 | 71 | 25.305085 | 0.815029 | 0.170797 | 0 | 0 | 0 | 0 | 0.001787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.060606 | 0.181818 | 0.787879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ed34a529e9f5ee833d3f64f7b2e9895870374308 | 1,822 | py | Python | engine/error/ecs.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | 1 | 2020-10-11T15:34:56.000Z | 2020-10-11T15:34:56.000Z | engine/error/ecs.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | null | null | null | engine/error/ecs.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | null | null | null | from .base import ECSError
__all__ = ["ComponentTypeError", "EntityLimitError", "GetComponentError", "InitializeComponent", "TerminateComponent"]
class ComponentTypeError(ECSError):
def __init__(self, component, expected=None):
self.component = component
self.expected = expected
def __str__(s... | 30.366667 | 121 | 0.658617 | 198 | 1,822 | 5.69697 | 0.232323 | 0.097518 | 0.079787 | 0.101064 | 0.470745 | 0.37234 | 0.308511 | 0.308511 | 0.308511 | 0.308511 | 0 | 0 | 0.221186 | 1,822 | 59 | 122 | 30.881356 | 0.794926 | 0 | 0 | 0.439024 | 0 | 0 | 0.177278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0 | 0.02439 | 0.121951 | 0.634146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ed505c7d14017fdb369e422b7cdd39c34df7dba9 | 505 | py | Python | djangocms_baseplugins/teaser_section/models.py | benzkji/djangocms-baseplugins | 7f041a030ed93dcdec70e4ca777b841846b8f2f2 | [
"MIT"
] | 2 | 2019-04-14T01:31:22.000Z | 2020-03-05T13:06:57.000Z | djangocms_baseplugins/teaser_section/models.py | benzkji/djangocms-baseplugins | 7f041a030ed93dcdec70e4ca777b841846b8f2f2 | [
"MIT"
] | 32 | 2017-04-04T09:28:06.000Z | 2021-08-18T16:23:02.000Z | djangocms_baseplugins/teaser_section/models.py | bnzk/djangocms-baseplugins | 7f041a030ed93dcdec70e4ca777b841846b8f2f2 | [
"MIT"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
from djangocms_baseplugins.baseplugin.models import AbstractBasePlugin
from djangocms_baseplugins.baseplugin.utils import check_migration_modules_needed
check_migration_modules_needed('teaser_section')
class TeaserSectionBase(AbstractBasePlugin):
class Me... | 24.047619 | 81 | 0.786139 | 55 | 505 | 6.890909 | 0.618182 | 0.068602 | 0.126649 | 0.17942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152475 | 505 | 20 | 82 | 25.25 | 0.885514 | 0 | 0 | 0 | 0 | 0 | 0.055446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ed5a6f0ffb1e37470c7a57935d081456a13620ca | 195 | py | Python | python/8Kyu/Define a card suit.py | athasv/Codewars-data | 5e106466e709fd776f23585ad9f652d0d65b48d3 | [
"MIT"
] | null | null | null | python/8Kyu/Define a card suit.py | athasv/Codewars-data | 5e106466e709fd776f23585ad9f652d0d65b48d3 | [
"MIT"
] | null | null | null | python/8Kyu/Define a card suit.py | athasv/Codewars-data | 5e106466e709fd776f23585ad9f652d0d65b48d3 | [
"MIT"
] | null | null | null | def define_suit(card):
if card.endswith("C"): return "clubs"
if card.endswith("D"): return "diamonds"
if card.endswith("H"): return "hearts"
if card.endswith("S"): return "spades" | 39 | 44 | 0.651282 | 28 | 195 | 4.5 | 0.535714 | 0.190476 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 195 | 5 | 45 | 39 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.147959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
ed6562c094a29d670635f02a4ce1ef60f2cc7c74 | 201 | py | Python | valorant_api/exceptions.py | MinshuG/valorant-api | 9c9a9dd4eb5401e3f80dc4daabddf2e343558260 | [
"MIT"
] | 3 | 2021-02-26T01:48:32.000Z | 2022-02-08T03:04:50.000Z | valorant_api/exceptions.py | MinshuG/valorant-api | 9c9a9dd4eb5401e3f80dc4daabddf2e343558260 | [
"MIT"
] | 1 | 2021-07-05T00:03:25.000Z | 2021-07-28T11:41:57.000Z | valorant_api/exceptions.py | MinshuG/valorant-api | 9c9a9dd4eb5401e3f80dc4daabddf2e343558260 | [
"MIT"
] | 3 | 2021-02-14T11:00:34.000Z | 2021-07-19T17:36:08.000Z | class ValorantApi(Exception):
pass
class InvalidOrMissingParameter(ValorantApi): # 400
pass
class NotFound(ValorantApi): # 404
pass
class AttributeExistsError(ValorantApi):
pass
| 14.357143 | 52 | 0.736318 | 18 | 201 | 8.222222 | 0.5 | 0.182432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.19403 | 201 | 13 | 53 | 15.461538 | 0.876543 | 0.034826 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ed814c8f249324f766a297bbb9d70d4e0a146f19 | 453 | py | Python | webhook_actions/adapters/repo_impl.py | Senth/webhook-actions | 73b9ccd48a281901a211dd45d9e17bd9b9844e43 | [
"MIT"
] | null | null | null | webhook_actions/adapters/repo_impl.py | Senth/webhook-actions | 73b9ccd48a281901a211dd45d9e17bd9b9844e43 | [
"MIT"
] | 2 | 2021-07-01T19:10:05.000Z | 2021-07-01T19:31:47.000Z | webhook_actions/adapters/repo_impl.py | Senth/webhook-actions | 73b9ccd48a281901a211dd45d9e17bd9b9844e43 | [
"MIT"
] | null | null | null | from ..app.run.run_repo import RunRepo
from ..core.entities.action import Action
from ..gateways.script_gateway import ScriptGateway
class RepoImpl(RunRepo):
def __init__(self) -> None:
super().__init__()
self.script_gateway = ScriptGateway()
def run(self, action: Action) -> bool:
ret... | 28.3125 | 51 | 0.699779 | 56 | 453 | 5.428571 | 0.410714 | 0.171053 | 0.167763 | 0.131579 | 0.282895 | 0.282895 | 0.282895 | 0.282895 | 0 | 0 | 0 | 0 | 0.189845 | 453 | 15 | 52 | 30.2 | 0.828338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ed8c03239f7424096760f3c141ae35c8eb7bc0b4 | 205 | py | Python | setup.py | adrianschlatter/ppf.jabref | cb0c054db9eaa1bce542f6a559d90e13ca0d829a | [
"MIT"
] | 2 | 2021-06-15T09:59:16.000Z | 2021-06-25T22:16:11.000Z | setup.py | adrianschlatter/ppf.jabref | cb0c054db9eaa1bce542f6a559d90e13ca0d829a | [
"MIT"
] | 18 | 2015-12-10T20:54:28.000Z | 2016-03-20T16:20:29.000Z | setup.py | adrianschlatter/ppf.jabref | cb0c054db9eaa1bce542f6a559d90e13ca0d829a | [
"MIT"
] | 1 | 2022-01-05T05:22:39.000Z | 2022-01-05T05:22:39.000Z | # -*- coding: utf-8 -*-
"""
A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
setuptools.setup()
| 15.769231 | 56 | 0.726829 | 26 | 205 | 5.730769 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.102439 | 205 | 12 | 57 | 17.083333 | 0.804348 | 0.760976 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
71e8c4ed12dfbb8999df239c19f770a1e734e65b | 454 | py | Python | scripts/generate_ramachandran_statistics.py | leimao/Ramachandran | 8080697cced0b33792493de8d784467734433ca5 | [
"Apache-2.0"
] | 2 | 2021-02-15T07:11:26.000Z | 2021-02-23T09:25:54.000Z | scripts/generate_ramachandran_statistics.py | leimao/Ramachandran | 8080697cced0b33792493de8d784467734433ca5 | [
"Apache-2.0"
] | null | null | null | scripts/generate_ramachandran_statistics.py | leimao/Ramachandran | 8080697cced0b33792493de8d784467734433ca5 | [
"Apache-2.0"
] | null | null | null | import ramachandran.statistics
ramachandran.statistics.count_torsion_angles_from_directory(dir_path="./pdbx_collections_resolution_1p0", save_file_path="./data/probability.npz", b_factor_threshold=30, resolution=90, num_processes=12)
ramachandran.statistics.compute_gaussian_kde_densities_from_directory(dir_path="./pd... | 90.8 | 218 | 0.867841 | 61 | 454 | 6 | 0.540984 | 0.180328 | 0.087432 | 0.10929 | 0.519126 | 0.519126 | 0.349727 | 0.349727 | 0.349727 | 0.349727 | 0 | 0.038549 | 0.028634 | 454 | 5 | 218 | 90.8 | 0.791383 | 0 | 0 | 0 | 0 | 0 | 0.252747 | 0.252747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
71f8daad5a201c0ad6ab4d685f07bba1f782ced2 | 460 | py | Python | scarf/__init__.py | gitter-badger/scarf-1 | 9fb230857ec9c33d5c4c23b5852a4b17a79fe60f | [
"BSD-3-Clause"
] | null | null | null | scarf/__init__.py | gitter-badger/scarf-1 | 9fb230857ec9c33d5c4c23b5852a4b17a79fe60f | [
"BSD-3-Clause"
] | null | null | null | scarf/__init__.py | gitter-badger/scarf-1 | 9fb230857ec9c33d5c4c23b5852a4b17a79fe60f | [
"BSD-3-Clause"
] | null | null | null | import warnings
from dask.array import PerformanceWarning
from importlib_metadata import version
warnings.filterwarnings("ignore", category=DeprecationWarning)
warnings.filterwarnings("ignore", category=PerformanceWarning)
try:
__version__ = version('scarf-toolkit')
except ImportError:
print("Scarf is not ins... | 25.555556 | 62 | 0.793478 | 52 | 460 | 6.903846 | 0.576923 | 0.111421 | 0.155989 | 0.200557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 460 | 17 | 63 | 27.058824 | 0.888614 | 0 | 0 | 0 | 0 | 0 | 0.102174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.642857 | 0 | 0.642857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9c268ee22e2e511b9e7808f4526ded04a216e8f5 | 1,191 | py | Python | jetengine/query/i_contains.py | kpdemetriou/jetengine | 1b931efb4a4b0ad7a473773aa6fcf0677c71f122 | [
"BSD-3-Clause"
] | 5 | 2019-06-24T08:57:42.000Z | 2021-12-17T22:58:08.000Z | jetengine/query/i_contains.py | kpdemetriou/jetengine | 1b931efb4a4b0ad7a473773aa6fcf0677c71f122 | [
"BSD-3-Clause"
] | 1 | 2020-02-24T15:04:13.000Z | 2020-07-31T11:47:44.000Z | jetengine/query/i_contains.py | kpdemetriou/jetengine | 1b931efb4a4b0ad7a473773aa6fcf0677c71f122 | [
"BSD-3-Clause"
] | 3 | 2019-11-07T13:57:40.000Z | 2021-12-17T22:58:00.000Z | from jetengine.query.base import QueryOperator
class IContainsOperator(QueryOperator):
"""
Query operator used to return all documents which specified field contains a string equal to a passed value.
It is not case sensitive.
For more information on `$regex` go to https://docs.mongodb.org/manual/ref... | 25.891304 | 112 | 0.625525 | 136 | 1,191 | 5.323529 | 0.5 | 0.074586 | 0.09116 | 0.055249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245172 | 1,191 | 45 | 113 | 26.466667 | 0.805339 | 0.743073 | 0 | 0 | 0 | 0 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9c399fcd0c0fa289f5191739732e8da5be0c76a3 | 981 | py | Python | crescent/resources/rds/__init__.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | 1 | 2020-03-26T19:20:03.000Z | 2020-03-26T19:20:03.000Z | crescent/resources/rds/__init__.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | crescent/resources/rds/__init__.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | from .arn import ArnFactory
from .db_cluster import DBClusterFactory
from .db_cluster_pg import DBClusterParameterGroupFactory
from .db_instance import DBInstanceFactory
from .db_pg import DBParameterGroupFactory
from .db_security_group import DBSecurityGroupFactory
from .db_security_group_ingress import DBSecurityGrou... | 35.035714 | 68 | 0.846075 | 81 | 981 | 10.024691 | 0.45679 | 0.051724 | 0.03202 | 0.046798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125382 | 981 | 27 | 69 | 36.333333 | 0.946387 | 0 | 0 | 0 | 0 | 0 | 0.003058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.478261 | 0 | 0.956522 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9c496278f4fb9e5afbb236dd88748c06807c00b3 | 4,559 | py | Python | autobahn/wamp/gen/wamp/proto/CalleeFeatures.py | rapyuta-robotics/autobahn-python | c08e9e352d526a7fd0885bb94706366a432ada1a | [
"MIT"
] | 1,670 | 2015-10-12T15:46:22.000Z | 2022-03-30T22:12:53.000Z | autobahn/wamp/gen/wamp/proto/CalleeFeatures.py | rapyuta-robotics/autobahn-python | c08e9e352d526a7fd0885bb94706366a432ada1a | [
"MIT"
] | 852 | 2015-10-16T22:11:03.000Z | 2022-03-27T07:57:01.000Z | autobahn/wamp/gen/wamp/proto/CalleeFeatures.py | rapyuta-robotics/autobahn-python | c08e9e352d526a7fd0885bb94706366a432ada1a | [
"MIT"
] | 790 | 2015-10-15T08:46:12.000Z | 2022-03-30T12:22:13.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: proto
import flatbuffers
class CalleeFeatures(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsCalleeFeatures(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x ... | 44.262136 | 143 | 0.725378 | 487 | 4,559 | 6.655031 | 0.178645 | 0.066955 | 0.135761 | 0.06788 | 0.466831 | 0.466831 | 0.466831 | 0.466831 | 0.466831 | 0.466831 | 0 | 0.013077 | 0.178109 | 4,559 | 102 | 144 | 44.696078 | 0.851882 | 0.054398 | 0 | 0.410959 | 1 | 0 | 0.000931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.328767 | false | 0 | 0.013699 | 0.013699 | 0.657534 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9c4b6f4acceda1c831def88da89d9cb55a9c600d | 195 | py | Python | tests/modules/ffi/base.py | mswart/topaz | 4bc02d6f4bf29c20f045223ecb6ae8a5cc9df2ae | [
"BSD-3-Clause"
] | 6 | 2015-04-10T20:11:03.000Z | 2021-11-10T07:03:46.000Z | tests/modules/ffi/base.py | mswart/topaz | 4bc02d6f4bf29c20f045223ecb6ae8a5cc9df2ae | [
"BSD-3-Clause"
] | 1 | 2017-01-24T10:17:55.000Z | 2017-01-24T10:17:55.000Z | tests/modules/ffi/base.py | mswart/topaz | 4bc02d6f4bf29c20f045223ecb6ae8a5cc9df2ae | [
"BSD-3-Clause"
] | 2 | 2017-01-23T18:47:35.000Z | 2019-11-13T08:31:18.000Z | from tests.base import BaseTopazTest
class BaseFFITest(BaseTopazTest):
def ask(self, space, question):
w_answer = space.execute(question)
return self.unwrap(space, w_answer)
| 27.857143 | 43 | 0.723077 | 24 | 195 | 5.791667 | 0.708333 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189744 | 195 | 6 | 44 | 32.5 | 0.879747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9c555899471a0a157d92ed764433713f75557236 | 25 | py | Python | tests/data/config/g.py | jinliwei1997/mmcv | f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79 | [
"Apache-2.0"
] | 3,748 | 2018-10-12T08:39:46.000Z | 2022-03-31T17:22:55.000Z | tests/data/config/g.py | jinliwei1997/mmcv | f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79 | [
"Apache-2.0"
] | 1,637 | 2018-10-12T06:06:18.000Z | 2022-03-31T02:20:53.000Z | tests/data/config/g.py | jinliwei1997/mmcv | f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79 | [
"Apache-2.0"
] | 1,234 | 2018-10-12T09:28:20.000Z | 2022-03-31T15:56:24.000Z | filename = 'reserved.py'
| 12.5 | 24 | 0.72 | 3 | 25 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.44 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92beadce1b8da861c78be46e403c35e8898f7212 | 155 | py | Python | setup.py | CorvusEtiam/financemgr | fecfa6111862030c583b044fd605baf252dd2389 | [
"MIT"
] | null | null | null | setup.py | CorvusEtiam/financemgr | fecfa6111862030c583b044fd605baf252dd2389 | [
"MIT"
] | null | null | null | setup.py | CorvusEtiam/financemgr | fecfa6111862030c583b044fd605baf252dd2389 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = "financemgr",
version = "1.0.0",
packages = ['financemgr'],
install_requires = ["sqlalchemy"]
) | 19.375 | 37 | 0.632258 | 16 | 155 | 6.0625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.219355 | 155 | 8 | 38 | 19.375 | 0.77686 | 0 | 0 | 0 | 0 | 0 | 0.224359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92d8dc7401e779f6222fdbfe1120027187b2590c | 240 | py | Python | tournaments/digitDifferenceSort/digitDifferenceSort.py | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 5 | 2020-02-06T09:51:22.000Z | 2021-03-19T00:18:44.000Z | tournaments/digitDifferenceSort/digitDifferenceSort.py | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | null | null | null | tournaments/digitDifferenceSort/digitDifferenceSort.py | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 3 | 2019-09-27T13:06:21.000Z | 2021-04-20T23:13:17.000Z | def digitDifferenceSort(a):
def dg(n):
s = list(map(int, str(n)))
return max(s) - min(s)
ans = [(a[i], i) for i in range(len(a))]
A = sorted(ans, key = lambda x: (dg(x[0]), -x[1]))
return [c[0] for c in A]
| 24 | 54 | 0.5 | 45 | 240 | 2.666667 | 0.577778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.2875 | 240 | 9 | 55 | 26.666667 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 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 | 0 | 1 | 0 | 0 | 3 |
92d99276dc4dc6c2e4ea78587a0fe9b9d2a89c3f | 204 | py | Python | 1c_GT_Computer_Networks/Project-3/topo2.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | 4 | 2016-08-28T03:21:36.000Z | 2021-01-19T01:59:17.000Z | 1c_GT_Computer_Networks/Project-3/topo2.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | null | null | null | 1c_GT_Computer_Networks/Project-3/topo2.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | 1 | 2018-05-20T12:33:23.000Z | 2018-05-20T12:33:23.000Z | # Topology with a single loop
# A --- B --- C
# | |
# D --- E
topo = { 'A' : ['B', 'D'],
'B' : ['A', 'C', 'E'],
'C' : ['B'],
'D' : ['A', 'E'],
'E' : ['B', 'D'] }
| 17 | 31 | 0.230392 | 26 | 204 | 1.807692 | 0.384615 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 204 | 11 | 32 | 18.545455 | 0.394958 | 0.279412 | 0 | 0 | 0 | 0 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92e191138d5ca707b62326d13003dd3309e107c9 | 611 | py | Python | abc_anno/attempt01.py | Preocts/python_play_carton | 071b19a6b5a6420192cd262195f95acfd787b476 | [
"MIT"
] | null | null | null | abc_anno/attempt01.py | Preocts/python_play_carton | 071b19a6b5a6420192cd262195f95acfd787b476 | [
"MIT"
] | null | null | null | abc_anno/attempt01.py | Preocts/python_play_carton | 071b19a6b5a6420192cd262195f95acfd787b476 | [
"MIT"
] | null | null | null | from __future__ import annotations
from abc import ABC
from abc import abstractmethod
class Parent(ABC):
@abstractmethod
def method_string(self) -> str:
raise NotImplementedError()
class ChildOne(Parent):
def method_string(self) -> str:
return "hello"
class ChildTwo(Parent):
def m... | 19.709677 | 47 | 0.672668 | 74 | 611 | 5.432432 | 0.418919 | 0.067164 | 0.11194 | 0.141791 | 0.223881 | 0.169154 | 0.169154 | 0 | 0 | 0 | 0 | 0.008457 | 0.225859 | 611 | 30 | 48 | 20.366667 | 0.841438 | 0 | 0 | 0.157895 | 0 | 0 | 0.01964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.157895 | 0.157895 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
92f05cd494aaa5de32fd28356ef02ad1b50368d6 | 1,241 | py | Python | python/python_100_days/django_test/hellodjango/hrs/views.py | bluewaitor/playground | 330266ce28212dc5e32b0276c896f9ceffd35bf5 | [
"MIT"
] | null | null | null | python/python_100_days/django_test/hellodjango/hrs/views.py | bluewaitor/playground | 330266ce28212dc5e32b0276c896f9ceffd35bf5 | [
"MIT"
] | null | null | null | python/python_100_days/django_test/hellodjango/hrs/views.py | bluewaitor/playground | 330266ce28212dc5e32b0276c896f9ceffd35bf5 | [
"MIT"
] | null | null | null | from io import StringIO
from django.http import HttpResponse
depts_list = [
{'no': 10, 'name': '财务部', 'location': '北京'},
{'no': 20, 'name': '研发部', 'location': '成都'},
{'no': 30, 'name': '销售部', 'location': '上海'},
]
def index(request):
output = StringIO()
output.write('<html>\n')
output.write('... | 32.657895 | 73 | 0.564061 | 199 | 1,241 | 3.507538 | 0.291457 | 0.346705 | 0.326648 | 0.223496 | 0.54298 | 0.54298 | 0.479943 | 0.39255 | 0.308023 | 0.308023 | 0 | 0.017391 | 0.165995 | 1,241 | 37 | 74 | 33.540541 | 0.657005 | 0 | 0 | 0.121212 | 0 | 0 | 0.377921 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92f77563985e2b27e675a89f3ea7485f58764eb1 | 6,092 | py | Python | src/features/fixtures/after_fixtures.py | Kamal1224/dataworks-behavioural-framework | e61cbdb4dd86311cc0eaa56911cb3f159255a964 | [
"0BSD"
] | null | null | null | src/features/fixtures/after_fixtures.py | Kamal1224/dataworks-behavioural-framework | e61cbdb4dd86311cc0eaa56911cb3f159255a964 | [
"0BSD"
] | null | null | null | src/features/fixtures/after_fixtures.py | Kamal1224/dataworks-behavioural-framework | e61cbdb4dd86311cc0eaa56911cb3f159255a964 | [
"0BSD"
] | null | null | null | import os
from behave import fixture
from botocore.exceptions import ClientError
from helpers import (
aws_helper,
console_printer,
)
@fixture
def clean_up_role_and_s3_objects(context, timeout=30, **kwargs):
console_printer.print_info("Executing 'clean_up_role_and_s3_objects' fixture")
aws_helper.rem... | 36.047337 | 160 | 0.688116 | 755 | 6,092 | 5.205298 | 0.128477 | 0.064122 | 0.096692 | 0.076081 | 0.805344 | 0.755216 | 0.679135 | 0.663359 | 0.618321 | 0.618321 | 0 | 0.007154 | 0.242777 | 6,092 | 168 | 161 | 36.261905 | 0.844786 | 0 | 0 | 0.431655 | 0 | 0.035971 | 0.258372 | 0.06845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057554 | false | 0 | 0.028777 | 0 | 0.086331 | 0.151079 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1311539a03deed286033435fe7cf044124e57cc0 | 29,170 | py | Python | IfxPy/tests/test_000_PrepareDb.py | deokershesh/IfxPy | 7c44a2aea85c115b6f595ffa82c038f660fbf1ad | [
"Apache-2.0"
] | null | null | null | IfxPy/tests/test_000_PrepareDb.py | deokershesh/IfxPy | 7c44a2aea85c115b6f595ffa82c038f660fbf1ad | [
"Apache-2.0"
] | null | null | null | IfxPy/tests/test_000_PrepareDb.py | deokershesh/IfxPy | 7c44a2aea85c115b6f595ffa82c038f660fbf1ad | [
"Apache-2.0"
] | null | null | null | #
#
#
import unittest, sys, os
import IfxPy
#need to add this line below to each file to make the connect parameters available to all the test files
import config
from testfunctions import IfxPyTestFunctions
name = 'name'
picture = 'picture'
class IfxPyTestCase(unittest.TestCase):
def test_000_PrepareDb(self):
... | 52.464029 | 328 | 0.528934 | 3,865 | 29,170 | 3.954463 | 0.196636 | 0.016488 | 0.027218 | 0.025517 | 0.377061 | 0.320924 | 0.278723 | 0.24614 | 0.170505 | 0.125425 | 0 | 0.260383 | 0.256256 | 29,170 | 555 | 329 | 52.558559 | 0.444112 | 0.048337 | 0 | 0.211416 | 0 | 0.02537 | 0.423003 | 0.00083 | 0 | 0 | 0 | 0 | 0.002114 | 0 | null | null | 0.031712 | 0.008457 | null | null | 0.006342 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1313197dfb0a287eaa24da0c98a1a327c61d097b | 207 | py | Python | sermin/exceptions.py | radiac/sermin | 5179bd69d6fa3706bda4bdf271ea35369fa96fb6 | [
"BSD-3-Clause"
] | null | null | null | sermin/exceptions.py | radiac/sermin | 5179bd69d6fa3706bda4bdf271ea35369fa96fb6 | [
"BSD-3-Clause"
] | null | null | null | sermin/exceptions.py | radiac/sermin | 5179bd69d6fa3706bda4bdf271ea35369fa96fb6 | [
"BSD-3-Clause"
] | null | null | null | """
Sermin exceptions
"""
class RunError(Exception):
"""
Sermin error during a blueprint run
"""
pass
class ShellError(RunError):
"""
Sermin shell command failed
"""
pass
| 11.5 | 39 | 0.594203 | 20 | 207 | 6.15 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289855 | 207 | 17 | 40 | 12.176471 | 0.836735 | 0.391304 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
131ee01de7bc6c6674a70f61f27de25ad5819741 | 206 | py | Python | sisu/__init__.py | balouf/sisu | 07541e6a02e545372452b33f7df056331397001f | [
"BSD-3-Clause"
] | null | null | null | sisu/__init__.py | balouf/sisu | 07541e6a02e545372452b33f7df056331397001f | [
"BSD-3-Clause"
] | null | null | null | sisu/__init__.py | balouf/sisu | 07541e6a02e545372452b33f7df056331397001f | [
"BSD-3-Clause"
] | null | null | null | """Top-level package for Structured and Interactive Summarization."""
__author__ = """Mélanie Cambus, Marc-Olivier Buob, Fabien Mathieu"""
__email__ = 'fabien.mathieu@normalesup.org'
__version__ = '0.2.0'
| 34.333333 | 69 | 0.752427 | 25 | 206 | 5.72 | 0.88 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.106796 | 206 | 5 | 70 | 41.2 | 0.76087 | 0.305825 | 0 | 0 | 0 | 0 | 0.605839 | 0.211679 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
131fdb409c897cd2ca36ac8f6f131184ff9edcec | 281 | py | Python | dynamic_menu/translation.py | lessss4/oil-and-rope | b8b52609f928e8c9174b7339cbb85cc21bae4538 | [
"MIT"
] | 8 | 2019-08-27T20:08:22.000Z | 2021-07-23T22:49:47.000Z | dynamic_menu/translation.py | lessss4/oil-and-rope | b8b52609f928e8c9174b7339cbb85cc21bae4538 | [
"MIT"
] | 73 | 2020-03-11T18:07:29.000Z | 2022-03-28T18:07:47.000Z | dynamic_menu/translation.py | lessss4/oil-and-rope | b8b52609f928e8c9174b7339cbb85cc21bae4538 | [
"MIT"
] | 4 | 2020-02-22T19:44:17.000Z | 2022-03-08T09:42:45.000Z | from modeltranslation.translator import TranslationOptions, register
from . import models
@register(models.DynamicMenu)
class DynamicMenuTranslationOptions(TranslationOptions):
"""
Configures how model must be translated.
"""
fields = ('name', 'description', )
| 21.615385 | 68 | 0.747331 | 24 | 281 | 8.75 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160142 | 281 | 12 | 69 | 23.416667 | 0.889831 | 0.142349 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1327215df9031fe2717a6476390360f734ce6bc3 | 1,807 | py | Python | PreprocessData/all_class_files/LocationFeatureSpecification.py | wkid-neu/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 3 | 2021-11-06T12:29:05.000Z | 2022-03-22T12:48:55.000Z | PreprocessData/all_class_files/LocationFeatureSpecification.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | null | null | null | PreprocessData/all_class_files/LocationFeatureSpecification.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 1 | 2021-11-06T12:29:12.000Z | 2021-11-06T12:29:12.000Z | from PreprocessData.all_class_files.PropertyValue import PropertyValue
import global_data
class LocationFeatureSpecification(PropertyValue):
def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=N... | 45.175 | 389 | 0.712784 | 184 | 1,807 | 6.744565 | 0.304348 | 0.036261 | 0.033844 | 0.04996 | 0.032232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205313 | 1,807 | 39 | 390 | 46.333333 | 0.864206 | 0 | 0 | 0.275862 | 0 | 0 | 0.011312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.068966 | 0.103448 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1336f3101e8d2585b20ca57dd61a80d3f1e56471 | 151 | py | Python | newfile/sub/sub1.py | sicilyChen/python | 30b09bb35c57ef5f9b8950c1d38fe7322a6273bb | [
"Apache-2.0"
] | null | null | null | newfile/sub/sub1.py | sicilyChen/python | 30b09bb35c57ef5f9b8950c1d38fe7322a6273bb | [
"Apache-2.0"
] | null | null | null | newfile/sub/sub1.py | sicilyChen/python | 30b09bb35c57ef5f9b8950c1d38fe7322a6273bb | [
"Apache-2.0"
] | null | null | null | import os
path=os.getcwd()
lst_files=os.walk(path)
for dirpath,dirname,filename in lst_files:
print(dirpath)
print(dirname)
print(filename) | 21.571429 | 42 | 0.741722 | 23 | 151 | 4.782609 | 0.565217 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145695 | 151 | 7 | 43 | 21.571429 | 0.852713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
133c57602f5d0115be51f69419d63c6f230f79c6 | 276 | py | Python | AUG16/02.py | Razdeep/PythonSnippets | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | [
"MIT"
] | null | null | null | AUG16/02.py | Razdeep/PythonSnippets | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | [
"MIT"
] | null | null | null | AUG16/02.py | Razdeep/PythonSnippets | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | [
"MIT"
] | null | null | null | # implicit conversion
num_int=123
num_float=1.23
result=num_int+num_float
print('datatype of num_int is',type(num_int))
print('datatype of num_float is',type(num_float))
print('datatype of result is',type(result))
# it automatically converts int to float to avoid data loss | 25.090909 | 59 | 0.786232 | 49 | 276 | 4.265306 | 0.428571 | 0.114833 | 0.215311 | 0.200957 | 0.220096 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02449 | 0.112319 | 276 | 11 | 59 | 25.090909 | 0.828571 | 0.278986 | 0 | 0 | 0 | 0 | 0.340102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
134aa796c97245d7ff93a2223068865f7f292462 | 6,432 | py | Python | skimage/filter/edges.py | jaberg/scikits-image | 2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d | [
"BSD-3-Clause"
] | null | null | null | skimage/filter/edges.py | jaberg/scikits-image | 2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d | [
"BSD-3-Clause"
] | null | null | null | skimage/filter/edges.py | jaberg/scikits-image | 2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d | [
"BSD-3-Clause"
] | 1 | 2019-12-20T19:19:59.000Z | 2019-12-20T19:19:59.000Z | """edges.py - Sobel edge filter
Originally part of CellProfiler, code licensed under both GPL and BSD licenses.
Website: http://www.cellprofiler.org
Copyright (c) 2003-2009 Massachusetts Institute of Technology
Copyright (c) 2009-2011 Broad Institute
All rights reserved.
Original author: Lee Kamentsky
"""
import nump... | 28.210526 | 79 | 0.595149 | 833 | 6,432 | 4.540216 | 0.184874 | 0.008461 | 0.044421 | 0.038075 | 0.740613 | 0.728451 | 0.702538 | 0.690375 | 0.689582 | 0.677948 | 0 | 0.025256 | 0.316698 | 6,432 | 227 | 80 | 28.334802 | 0.835267 | 0.606032 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152174 | false | 0 | 0.065217 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1371b9990b14aa80e77e5f895a123e8157354e7f | 32,120 | py | Python | libs/PureCloudPlatformClientV2/models/reporting_export_job_response.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | 1 | 2021-10-08T20:46:45.000Z | 2021-10-08T20:46:45.000Z | libs/PureCloudPlatformClientV2/models/reporting_export_job_response.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | null | null | null | libs/PureCloudPlatformClientV2/models/reporting_export_job_response.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | 35.491713 | 1,758 | 0.654795 | 3,613 | 32,120 | 5.565181 | 0.106006 | 0.035808 | 0.190978 | 0.069627 | 0.632914 | 0.539911 | 0.48038 | 0.394738 | 0.345452 | 0.310837 | 0 | 0.00236 | 0.274284 | 32,120 | 904 | 1,759 | 35.530973 | 0.860232 | 0.441469 | 0 | 0.114804 | 0 | 0 | 0.234155 | 0.137277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202417 | false | 0 | 0.015106 | 0 | 0.329305 | 0.003021 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1394f3e40b1b497fdf5622c1d3ecd798e00e4cb4 | 236 | py | Python | modelconvert/utils/humanize.py | x3dom/pipeline | 5c631065b25744cc50f0f284c01e2e1707ed566c | [
"Apache-2.0"
] | 16 | 2015-03-14T19:47:27.000Z | 2020-06-26T14:02:53.000Z | modelconvert/utils/humanize.py | x3dom/pipeline | 5c631065b25744cc50f0f284c01e2e1707ed566c | [
"Apache-2.0"
] | null | null | null | modelconvert/utils/humanize.py | x3dom/pipeline | 5c631065b25744cc50f0f284c01e2e1707ed566c | [
"Apache-2.0"
] | 8 | 2015-03-16T17:36:45.000Z | 2022-01-19T03:38:21.000Z | # -*- coding: utf-8 -*-
def bytes(num):
for x in ['bytes','KB','MB','GB']:
if num < 1024.0 and num > -1024.0:
return "{0:.1f} {1}".format(num, x)
num /= 1024.0
return "{0:.1f} {1}".format(num, 'TB')
| 26.222222 | 47 | 0.457627 | 38 | 236 | 2.842105 | 0.552632 | 0.194444 | 0.222222 | 0.259259 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0 | 0 | 0.130178 | 0.283898 | 236 | 8 | 48 | 29.5 | 0.508876 | 0.088983 | 0 | 0 | 0 | 0 | 0.164319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13b10d26ffa93906cc33cfb44730f1718d345af4 | 756 | py | Python | pages/result_sk.py | sunjeet-khokhar/tau-playwright-workshop | b2133164f8432e8b2564a7bfa91e4be9a9db62ca | [
"MIT"
] | 2 | 2021-12-07T19:22:26.000Z | 2021-12-12T04:36:20.000Z | pages/result_sk.py | sunjeet-khokhar/tau-playwright-workshop | b2133164f8432e8b2564a7bfa91e4be9a9db62ca | [
"MIT"
] | null | null | null | pages/result_sk.py | sunjeet-khokhar/tau-playwright-workshop | b2133164f8432e8b2564a7bfa91e4be9a9db62ca | [
"MIT"
] | null | null | null | """
This module contains DuckDuckGoResultPage,
the page object for the DuckDuckGo result page.
"""
from playwright.sync_api import Page
class ResultsPage:
SEARCH_FIELD= "[id='search_form_input']"
RESULT_TITLES = "[data-testid=result-title-a]"
def __init__(self,page : Page):
self.pag... | 28 | 73 | 0.675926 | 102 | 756 | 4.696078 | 0.441176 | 0.100209 | 0.087683 | 0.112735 | 0.129436 | 0.129436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21164 | 756 | 27 | 74 | 28 | 0.803691 | 0.119048 | 0 | 0 | 0 | 0 | 0.08953 | 0.078907 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.214286 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
13bfab6439a60ba360c1a8f0e7c0b8119f3c57ee | 524 | py | Python | api_object_spec/exceptions.py | AWinterman/sphinx-grammar | cfa8c6943ce344bc2d8a0ce8374ac5f95ee4ce88 | [
"Apache-2.0"
] | 1 | 2015-04-17T23:09:56.000Z | 2015-04-17T23:09:56.000Z | api_object_spec/exceptions.py | AWinterman/api_object_specification | cfa8c6943ce344bc2d8a0ce8374ac5f95ee4ce88 | [
"Apache-2.0"
] | null | null | null | api_object_spec/exceptions.py | AWinterman/api_object_specification | cfa8c6943ce344bc2d8a0ce8374ac5f95ee4ce88 | [
"Apache-2.0"
] | 1 | 2015-04-12T23:21:00.000Z | 2015-04-12T23:21:00.000Z | class ParsimoniousError(Exception):
def __init__(self, exception):
"""
A class for wrapping parsimonious errors to make them a bit more sensible to users of this library.
:param exception: The original parsimonious exception
:return: self
"""
self.exception = except... | 32.75 | 114 | 0.666031 | 62 | 524 | 5.435484 | 0.612903 | 0.106825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255725 | 524 | 16 | 115 | 32.75 | 0.864103 | 0.320611 | 0 | 0 | 0 | 0 | 0.230284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.285714 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
13cefb35ef0212a7f5e64c8c64d3c614b68213a2 | 508 | py | Python | pyrevolve/angle/robogen/body_parts/__init__.py | braj29/robo_swimmers | b3c3fa91976884095eb6b5e67844167598ec573d | [
"Apache-1.1"
] | null | null | null | pyrevolve/angle/robogen/body_parts/__init__.py | braj29/robo_swimmers | b3c3fa91976884095eb6b5e67844167598ec573d | [
"Apache-1.1"
] | null | null | null | pyrevolve/angle/robogen/body_parts/__init__.py | braj29/robo_swimmers | b3c3fa91976884095eb6b5e67844167598ec573d | [
"Apache-1.1"
] | null | null | null | from __future__ import absolute_import
#from .active_hinge import ActiveHinge
#from .core_component import CoreComponent
#from .hinge import Hinge
#from .light_sensor import LightSensor
#from .touch_sensor import TouchSensor
#from .fixed_brick import FixedBrick
#from .parametric_bar_joint import ParametricBarJoint
#fr... | 28.222222 | 53 | 0.809055 | 65 | 508 | 6.015385 | 0.446154 | 0.153453 | 0.204604 | 0.112532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122047 | 508 | 17 | 54 | 29.882353 | 0.876682 | 0.814961 | 0 | 0 | 0 | 0 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
13d46475fd1bb38aab4f091a942cf7711e68beed | 275 | py | Python | src/yellowdog_client/model/numeric_attribute_value.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/numeric_attribute_value.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/numeric_attribute_value.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from .attribute_value import AttributeValue
@dataclass
class NumericAttributeValue(AttributeValue):
type: str = field(default="co.yellowdog.platform.model.NumericAttributeValue", init=False)
attribute: str
value: float
| 25 | 94 | 0.792727 | 29 | 275 | 7.482759 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130909 | 275 | 10 | 95 | 27.5 | 0.90795 | 0 | 0 | 0 | 0 | 0 | 0.178182 | 0.178182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.857143 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
13dcbbb2cb2b60e3091e77302ea29346b4575a0f | 93 | py | Python | strings.py | slack333/Python | eb6b5191f7a5191e20fa0b46ea06c366b81addd4 | [
"MIT"
] | null | null | null | strings.py | slack333/Python | eb6b5191f7a5191e20fa0b46ea06c366b81addd4 | [
"MIT"
] | null | null | null | strings.py | slack333/Python | eb6b5191f7a5191e20fa0b46ea06c366b81addd4 | [
"MIT"
] | null | null | null | mistring = 'Curso de python3'
print(mistring [0:10])
palabra ="hola"
print (len(palabra))
| 13.285714 | 29 | 0.688172 | 13 | 93 | 4.923077 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.150538 | 93 | 6 | 30 | 15.5 | 0.759494 | 0 | 0 | 0 | 0 | 0 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
13ec652213421b675715ccd69356e1ccb55dbf04 | 245 | py | Python | ML_Basic/Linear.py | ductnn/Python-tu | 8d0c16a7986cf573dbf7324375967a6bce45a7a9 | [
"MIT"
] | 1 | 2020-05-18T11:40:40.000Z | 2020-05-18T11:40:40.000Z | ML_Basic/Linear.py | ductnn/Python-tu | 8d0c16a7986cf573dbf7324375967a6bce45a7a9 | [
"MIT"
] | null | null | null | ML_Basic/Linear.py | ductnn/Python-tu | 8d0c16a7986cf573dbf7324375967a6bce45a7a9 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib as plt
X = np.array([[150, 152, 160, 163, 170, 175, 180, 190]]).T
Y = np.array([[40, 42, 44, 45, 55, 58, 60, 75]])
one = np.ones((X.shape[0], 1))
Xbar = np.concatenate((one, X), axis=1)
| 24.5 | 58 | 0.620408 | 49 | 245 | 3.102041 | 0.734694 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212871 | 0.17551 | 245 | 9 | 59 | 27.222222 | 0.539604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
13f401b979b675cba08b0bd4129cdcad53d6f54a | 1,101 | py | Python | csep/utils/constants.py | pjmaechling/pycsep | 32502fea072291d09859071a2797e38036963805 | [
"BSD-3-Clause"
] | 26 | 2020-12-16T06:23:50.000Z | 2022-03-22T10:23:12.000Z | csep/utils/constants.py | pjmaechling/pycsep | 32502fea072291d09859071a2797e38036963805 | [
"BSD-3-Clause"
] | 132 | 2020-09-18T13:33:10.000Z | 2022-02-25T17:10:54.000Z | csep/utils/constants.py | pjmaechling/pycsep | 32502fea072291d09859071a2797e38036963805 | [
"BSD-3-Clause"
] | 11 | 2020-09-10T11:35:48.000Z | 2022-03-30T14:40:14.000Z | # Time Constants
import numpy
SECONDS_PER_ASTRONOMICAL_YEAR = 31557600
SECONDS_PER_DAY = 60*60*24
SECONDS_PER_HOUR = 60*60
SECONDS_PER_WEEK = SECONDS_PER_DAY*7
SECONDS_PER_MONTH = SECONDS_PER_WEEK*4
DAYS_PER_ASTRONOMICAL_YEAR = 365.25
MW_5_EQS_PER_YEAR = 10
# Magnitude Bins
min_mw = 2.5
max_mw = 8.95
dmw = 0.1
CSEP_... | 40.777778 | 90 | 0.381471 | 208 | 1,101 | 1.894231 | 0.1875 | 0.177665 | 0.096447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301003 | 0.456857 | 1,101 | 26 | 91 | 42.346154 | 0.35786 | 0.02634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b92233a63e2f3dbb2dd7a196f89359cf6eaa4fc6 | 169 | py | Python | odin_securities/queries/deletes/position.py | JamesBrofos/Odin-Securities | a07d3a21bcd3f78513ef394d4e8b620b7ca7fad8 | [
"MIT"
] | 13 | 2017-02-04T08:41:10.000Z | 2020-06-09T12:43:09.000Z | odin_securities/queries/deletes/position.py | JamesBrofos/Odin-Securities | a07d3a21bcd3f78513ef394d4e8b620b7ca7fad8 | [
"MIT"
] | 1 | 2020-11-15T05:32:18.000Z | 2020-11-15T05:32:18.000Z | odin_securities/queries/deletes/position.py | JamesBrofos/Odin-Securities | a07d3a21bcd3f78513ef394d4e8b620b7ca7fad8 | [
"MIT"
] | 9 | 2017-02-05T21:51:44.000Z | 2020-03-23T10:55:11.000Z | from ...connection_cursor import cur
def position(sid, pid):
cur.execute("""DELETE FROM positions WHERE symbol_id={} AND portfolio_id={}
""".format(sid, pid))
| 24.142857 | 79 | 0.692308 | 23 | 169 | 4.956522 | 0.782609 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 169 | 6 | 80 | 28.166667 | 0.797203 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b92fe17f4fefffef5f797b1036daa4a7a5e7633d | 240 | py | Python | usuarios/admin.py | SricardoSdSouza/Exercicios_python | 216f21936cd1eda0481c222c659482afb011b9b4 | [
"MIT"
] | null | null | null | usuarios/admin.py | SricardoSdSouza/Exercicios_python | 216f21936cd1eda0481c222c659482afb011b9b4 | [
"MIT"
] | null | null | null | usuarios/admin.py | SricardoSdSouza/Exercicios_python | 216f21936cd1eda0481c222c659482afb011b9b4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Usuario
@admin.register(Usuario)
class UsuarioAdmin(admin.ModelAdmin):
list_display = ('nome','email','senha')
search_fields = ('nome', 'email')
readonly_fields = ('senha',)
| 26.666667 | 43 | 0.7125 | 28 | 240 | 6 | 0.678571 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141667 | 240 | 8 | 44 | 30 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b945eb3831b48953ad88b0cb0377e893c5b1cc73 | 8,630 | py | Python | runtime/bamboo-pipeline/pipeline/tests/eri/imp/test_context.py | DomineCore/bamboo-engine | fb4583e70f9e1e87d9d48c2393db8d8104306f37 | [
"MIT"
] | 55 | 2021-09-07T11:50:35.000Z | 2022-03-23T13:19:38.000Z | runtime/bamboo-pipeline/pipeline/tests/eri/imp/test_context.py | DomineCore/bamboo-engine | fb4583e70f9e1e87d9d48c2393db8d8104306f37 | [
"MIT"
] | 64 | 2021-09-07T12:04:12.000Z | 2022-03-29T03:47:18.000Z | runtime/bamboo-pipeline/pipeline/tests/eri/imp/test_context.py | DomineCore/bamboo-engine | fb4583e70f9e1e87d9d48c2393db8d8104306f37 | [
"MIT"
] | 20 | 2021-09-07T11:52:08.000Z | 2022-03-28T08:05:22.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 51.987952 | 115 | 0.665353 | 1,047 | 8,630 | 5.268386 | 0.140401 | 0.186186 | 0.19942 | 0.253807 | 0.756526 | 0.687273 | 0.607868 | 0.551668 | 0.470631 | 0.465192 | 0 | 0.026693 | 0.183893 | 8,630 | 165 | 116 | 52.30303 | 0.756496 | 0.083662 | 0 | 0.439716 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0.503546 | 1 | 0.042553 | false | 0 | 0.049645 | 0 | 0.099291 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b95c4434d81a8b10d888760ed145c9be69fb04e5 | 487 | bzl | Python | third_party/javax_servlet.bzl | or-shachar/exodus | b28bf8f4c2330de47b8aac21c2bf3c40fda7cbdc | [
"MIT"
] | null | null | null | third_party/javax_servlet.bzl | or-shachar/exodus | b28bf8f4c2330de47b8aac21c2bf3c40fda7cbdc | [
"MIT"
] | null | null | null | third_party/javax_servlet.bzl | or-shachar/exodus | b28bf8f4c2330de47b8aac21c2bf3c40fda7cbdc | [
"MIT"
] | null | null | null | load("//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external")
def dependencies():
import_external(
name = "javax_servlet_javax_servlet_api",
artifact = "javax.servlet:javax.servlet-api:3.1.0",
jar_sha256 = "af456b2dd41c4e82cf54f3e743bc678973d9fe35bd4d3071fa05c7e5333b8482... | 37.461538 | 89 | 0.765914 | 44 | 487 | 8.090909 | 0.613636 | 0.157303 | 0.095506 | 0.134831 | 0.151685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214797 | 0.13963 | 487 | 12 | 90 | 40.583333 | 0.634845 | 0 | 0 | 0 | 0 | 0 | 0.537988 | 0.521561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b974619f3e40824f6fdd20ffcb04d383c271a688 | 655 | py | Python | installer/__main__.py | baptoutiego/Jarvis | 79c04845988d5f935338659899730ed882a6d76c | [
"MIT"
] | 2,605 | 2017-03-10T22:44:36.000Z | 2022-03-31T15:33:17.000Z | installer/__main__.py | baptoutiego/Jarvis | 79c04845988d5f935338659899730ed882a6d76c | [
"MIT"
] | 729 | 2017-03-11T00:06:46.000Z | 2022-03-31T22:04:44.000Z | installer/__main__.py | baptoutiego/Jarvis | 79c04845988d5f935338659899730ed882a6d76c | [
"MIT"
] | 1,181 | 2017-03-10T23:24:55.000Z | 2022-03-31T03:59:46.000Z | import traceback
try:
from helper import log_init, log_close
from unix_windows import IS_WIN
log_init()
import os
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import steps.a_setup_virtualenv
import steps.b_pip
import steps.c_nltk
if not IS_WIN:
# T... | 22.586207 | 74 | 0.691603 | 92 | 655 | 4.73913 | 0.576087 | 0.126147 | 0.059633 | 0.068807 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227481 | 655 | 28 | 75 | 23.392857 | 0.86166 | 0.079389 | 0 | 0 | 0 | 0 | 0.138333 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0 | true | 0.047619 | 0.428571 | 0 | 0.428571 | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b978a6f5a6fe9e2ce254c96f0fb1e22f10d6f1df | 2,214 | py | Python | qpylib/qpylib.py | isstabb/qpylib | e4eb906deefb71a99218557e1b89c2842ed279e7 | [
"Apache-2.0"
] | null | null | null | qpylib/qpylib.py | isstabb/qpylib | e4eb906deefb71a99218557e1b89c2842ed279e7 | [
"Apache-2.0"
] | null | null | null | qpylib/qpylib.py | isstabb/qpylib | e4eb906deefb71a99218557e1b89c2842ed279e7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 IBM Corporation All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
import os
from .live_qpylib import LiveQpylib
from .sdk_qpylib import SdkQpylib
def is_sdk():
sdk_env = os.getenv('QRADAR_APPFW_SDK', 'no').lower() == 'true'
return sdk_env
def strategy():
if is_sdk():
r... | 26.674699 | 73 | 0.70822 | 302 | 2,214 | 4.857616 | 0.281457 | 0.143149 | 0.104294 | 0.0409 | 0.370143 | 0.245399 | 0.141786 | 0.043626 | 0.043626 | 0 | 0 | 0.004331 | 0.165763 | 2,214 | 82 | 74 | 27 | 0.78993 | 0.070912 | 0 | 0 | 0 | 0 | 0.014641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.06 | 0.3 | 0.82 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b9b38f24812d55a99bca08c8f55559df0b56ce6f | 337 | py | Python | office365/sharepoint/logger/logFileInfoCollection.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | office365/sharepoint/logger/logFileInfoCollection.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | office365/sharepoint/logger/logFileInfoCollection.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from office365.sharepoint.base_entity_collection import BaseEntityCollection
from office365.sharepoint.logger.logFileInfo import LogFileInfo
class LogFileInfoCollection(BaseEntityCollection):
def __init__(self, context, resource_path=None):
super(LogFileInfoCollection, self).__init__(context, LogFileInfo... | 37.444444 | 88 | 0.836795 | 33 | 337 | 8.181818 | 0.606061 | 0.096296 | 0.17037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0.097923 | 337 | 8 | 89 | 42.125 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b9b54112c80322313abe422ce82fcb58613b51b9 | 390 | py | Python | tests/test_adams_bashforth.py | Ambistic/CellTissue | c7fce7bb9443a4dfc3b632d8f40aa598388f9d80 | [
"MIT"
] | 4 | 2020-04-15T07:53:10.000Z | 2021-10-03T13:44:50.000Z | tests/test_adams_bashforth.py | Ambistic/CellTissue | c7fce7bb9443a4dfc3b632d8f40aa598388f9d80 | [
"MIT"
] | null | null | null | tests/test_adams_bashforth.py | Ambistic/CellTissue | c7fce7bb9443a4dfc3b632d8f40aa598388f9d80 | [
"MIT"
] | 2 | 2020-07-09T10:32:47.000Z | 2022-02-03T00:59:10.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import cbmos.solvers.adams_bashforth as ab
@np.vectorize
def func(t, y):
return -50*y
def jacobian(y, fa):
return -50*np.eye(len(y))
def test_no_overstep():
t_span = (0, 1)
y0 = np.array([1, 1])
# fixed time step
sol = ab.s... | 16.956522 | 49 | 0.610256 | 71 | 390 | 3.253521 | 0.619718 | 0.064935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055738 | 0.217949 | 390 | 22 | 50 | 17.727273 | 0.701639 | 0.151282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0 | 0.166667 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b9ba1039cd18bc089f999a86b50508a9999fde55 | 311 | py | Python | exercises/is_lower_case.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | exercises/is_lower_case.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | exercises/is_lower_case.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | # is_lower_case
#
# Checks if a string is lower case.
#
# Convert the given string to lower case, using str.lower() method and compare it to the original.
def is_lower_case(string):
return string == string.lower()
is_lower_case('abc') # True
is_lower_case('a3@$') # True
is_lower_case('Ab4') # False
| 20.733333 | 98 | 0.707395 | 51 | 311 | 4.117647 | 0.490196 | 0.3 | 0.314286 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.176849 | 311 | 14 | 99 | 22.214286 | 0.8125 | 0.514469 | 0 | 0 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b9bd49a4c15d8b8a6692b1a6f3ae4252ac2abd25 | 10,757 | py | Python | tests/test_tweens.py | nikitagromov/nefertari | 1e3829bba4008a8014a3a5f23521a082bfd06ecd | [
"Apache-2.0"
] | 34 | 2015-03-27T16:00:38.000Z | 2016-01-26T02:15:47.000Z | tests/test_tweens.py | nikitagromov/nefertari | 1e3829bba4008a8014a3a5f23521a082bfd06ecd | [
"Apache-2.0"
] | 17 | 2015-04-17T12:24:23.000Z | 2015-12-09T03:46:10.000Z | tests/test_tweens.py | nikitagromov/nefertari | 1e3829bba4008a8014a3a5f23521a082bfd06ecd | [
"Apache-2.0"
] | 10 | 2015-03-30T06:07:38.000Z | 2015-11-30T06:32:56.000Z | import six
import pytest
from mock import Mock, patch
from nefertari import tweens
def mock_timer():
mock_timer.time = 0
def time_func():
mock_timer.time += 1
return mock_timer.time
return time_func
class DummyConfigurator(object):
def __init__(self):
self.subscribed = []
... | 36.713311 | 75 | 0.60528 | 1,223 | 10,757 | 5.145544 | 0.117743 | 0.007945 | 0.015096 | 0.018115 | 0.772763 | 0.738916 | 0.722231 | 0.679008 | 0.661847 | 0.646274 | 0 | 0.031484 | 0.267733 | 10,757 | 292 | 76 | 36.839041 | 0.767424 | 0 | 0 | 0.615686 | 0 | 0 | 0.138143 | 0.054197 | 0 | 0 | 0 | 0 | 0.164706 | 1 | 0.117647 | false | 0 | 0.023529 | 0.011765 | 0.180392 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9db133e6d1f0808d1473d64f946277690e4e4f6 | 1,739 | py | Python | motor_controls/gpioServo.py | ArifSohaib/AutonomousRobotChallenge | 10f7299022158425c6e7aa40f427105503d38468 | [
"MIT"
] | 13 | 2018-09-05T03:33:23.000Z | 2020-12-15T13:07:33.000Z | motor_controls/gpioServo.py | ArifSohaib/AutonomousRobotChallenge | 10f7299022158425c6e7aa40f427105503d38468 | [
"MIT"
] | 1 | 2019-03-24T20:07:19.000Z | 2019-03-25T21:18:04.000Z | motor_controls/gpioServo.py | ArifSohaib/AutonomousRobotChallenge | 10f7299022158425c6e7aa40f427105503d38468 | [
"MIT"
] | 11 | 2018-11-09T09:22:04.000Z | 2021-10-05T08:00:44.000Z | import RPi.GPIO as GPIO # always needed with RPi.GPIO
from time import sleep
class MotorControls:
def __init__(self, pin1=18, pin2=19):
GPIO.setmode(GPIO.BCM) # choose BCM or BOARD numbering schemes. I use BCM
GPIO.setup(pin1, GPIO.OUT)# set GPIO pin1 as an output. You can use any GPI... | 35.489796 | 98 | 0.579068 | 227 | 1,739 | 4.38326 | 0.46696 | 0.070352 | 0.056281 | 0.087437 | 0.096482 | 0.096482 | 0.096482 | 0.096482 | 0.096482 | 0.096482 | 0 | 0.05821 | 0.338125 | 1,739 | 49 | 99 | 35.489796 | 0.806255 | 0.306498 | 0 | 0.060606 | 0 | 0 | 0.006717 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.242424 | false | 0.060606 | 0.060606 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b9e6a8c6e66791b8323d66787eb9649e924049bd | 396 | py | Python | rattr/plugins/analysers/__init__.py | SuadeLabs/rattr | 22b82d31d4cebf0a7107fa1fb496a070b2e1f4ad | [
"MIT"
] | 6 | 2021-11-10T11:13:37.000Z | 2022-01-19T16:15:17.000Z | rattr/plugins/analysers/__init__.py | SuadeLabs/ratter | 22b82d31d4cebf0a7107fa1fb496a070b2e1f4ad | [
"MIT"
] | 13 | 2021-11-10T11:39:12.000Z | 2022-03-01T10:27:49.000Z | rattr/plugins/analysers/__init__.py | SuadeLabs/rattr | 22b82d31d4cebf0a7107fa1fb496a070b2e1f4ad | [
"MIT"
] | null | null | null | from rattr.plugins.analysers.builtins import (
DelattrAnalyser,
GetattrAnalyser,
HasattrAnalyser,
SetattrAnalyser,
SortedAnalyser,
)
from rattr.plugins.analysers.collections import DefaultDictAnalyser
DEFAULT_FUNCTION_ANALYSERS = (
GetattrAnalyser(),
SetattrAnalyser(),
HasattrAnalyser()... | 22 | 67 | 0.739899 | 27 | 396 | 10.777778 | 0.555556 | 0.061856 | 0.109966 | 0.171821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174242 | 396 | 17 | 68 | 23.294118 | 0.889908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9eb3f81b2dce8c837e36668e6008ddaa3ca7cd8 | 42,124 | py | Python | descarteslabs/common/proto/workflow/workflow_pb2.py | descarteslabs/descarteslabs-python | efc874d6062603dc424c9646287a9b1f8636e7ac | [
"Apache-2.0"
] | 167 | 2017-03-23T22:16:58.000Z | 2022-03-08T09:19:30.000Z | descarteslabs/common/proto/workflow/workflow_pb2.py | descarteslabs/descarteslabs-python | efc874d6062603dc424c9646287a9b1f8636e7ac | [
"Apache-2.0"
] | 93 | 2017-03-23T22:11:40.000Z | 2021-12-13T18:38:53.000Z | descarteslabs/common/proto/workflow/workflow_pb2.py | descarteslabs/descarteslabs-python | efc874d6062603dc424c9646287a9b1f8636e7ac | [
"Apache-2.0"
] | 46 | 2017-03-25T19:12:14.000Z | 2021-08-15T18:04:29.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: descarteslabs/common/proto/workflow/workflow.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflecti... | 49.325527 | 4,348 | 0.772291 | 5,035 | 42,124 | 6.143793 | 0.062959 | 0.040344 | 0.067563 | 0.059352 | 0.771352 | 0.692507 | 0.66713 | 0.664899 | 0.652227 | 0.621678 | 0 | 0.034704 | 0.108679 | 42,124 | 853 | 4,349 | 49.383353 | 0.789192 | 0.029128 | 0 | 0.670469 | 1 | 0.007605 | 0.229333 | 0.184685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008872 | 0 | 0.008872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9f21a9fa90a49f503a076f0448555209b958be3 | 256 | py | Python | pset_pandas_ext/101problems/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_pandas_ext/101problems/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_pandas_ext/101problems/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
18. How to convert the first character of each element in a series to uppercase?
"""
"""
Difficulty Level: L2
"""
"""
Change the first character of each word to upper case in each word of ser.
"""
"""
ser = pd.Series(['how', 'to', 'kick', 'ass?'])
"""
| 19.692308 | 80 | 0.636719 | 40 | 256 | 4.075 | 0.625 | 0.06135 | 0.208589 | 0.233129 | 0.282209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014354 | 0.183594 | 256 | 12 | 81 | 21.333333 | 0.76555 | 0.3125 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a13548da0fb5088c8857242c2932e85a88b0f90 | 1,957 | py | Python | demos/biotool/ee/tests/apifunction_test.py | Servir-Mekong/biotool | 80ef1b18e34db637bf11d2ab84782e6a1a2dddd0 | [
"Apache-2.0"
] | 1 | 2016-09-09T14:45:45.000Z | 2016-09-09T14:45:45.000Z | ee/tests/apifunction_test.py | fitoprincipe/ee_client_auth_demo | 61f5843d7421b8c465a56044c00c5fa42ebf20b7 | [
"MIT"
] | null | null | null | ee/tests/apifunction_test.py | fitoprincipe/ee_client_auth_demo | 61f5843d7421b8c465a56044c00c5fa42ebf20b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Tests for the ee.apifunction module."""
import types
import unittest
import ee
from ee import apitestcase
class ApiFunctionTest(apitestcase.ApiTestCase):
def testAddFunctions(self):
"""Verifies that addition of static and instance API functions."""
# Check instance vs static... | 30.107692 | 73 | 0.728666 | 217 | 1,957 | 6.451613 | 0.308756 | 0.137143 | 0.157143 | 0.221429 | 0.430714 | 0.382143 | 0.331429 | 0.331429 | 0.282857 | 0.282857 | 0 | 0 | 0.148697 | 1,957 | 64 | 74 | 30.578125 | 0.840336 | 0.145631 | 0 | 0.394737 | 0 | 0 | 0.096189 | 0 | 0 | 0 | 0 | 0 | 0.447368 | 1 | 0.105263 | false | 0.078947 | 0.184211 | 0 | 0.394737 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6a3a6e3946bc20209b6b119a6b5ad94fe2ccea86 | 3,866 | py | Python | d42/d42.py | m-e-w/d42-flask | d892cde19c7eaca7f2a1e88d1680f4310dd53b58 | [
"MIT"
] | null | null | null | d42/d42.py | m-e-w/d42-flask | d892cde19c7eaca7f2a1e88d1680f4310dd53b58 | [
"MIT"
] | null | null | null | d42/d42.py | m-e-w/d42-flask | d892cde19c7eaca7f2a1e88d1680f4310dd53b58 | [
"MIT"
] | null | null | null | import requests
from urllib3.exceptions import InsecureRequestWarning
import yaml
import json
class d42api ():
def __init__(self, config_path):
self.config = self._import_config(path=config_path)
requests.packages.urllib3.disable_warnings(
category=InsecureRequestWarning)
def _imp... | 42.483516 | 130 | 0.525091 | 417 | 3,866 | 4.788969 | 0.203837 | 0.110165 | 0.039059 | 0.055083 | 0.724086 | 0.724086 | 0.655984 | 0.624937 | 0.624937 | 0.624937 | 0 | 0.011756 | 0.3179 | 3,866 | 90 | 131 | 42.955556 | 0.745544 | 0 | 0 | 0.580247 | 0 | 0 | 0.231764 | 0.035178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08642 | false | 0.061728 | 0.074074 | 0 | 0.283951 | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6a4d5f116fb1ae545f23a0c3b60365b69c34907c | 173 | py | Python | problem0453.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0453.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0453.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #453 Lattice Quadrilaterals - Project Euler
# https://projecteuler.net/problem=453
#
# Code by Kevin Marciniak
#
###########################
| 19.222222 | 45 | 0.49711 | 14 | 173 | 6.142857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.109827 | 173 | 8 | 46 | 21.625 | 0.519481 | 0.595376 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dbfd340b62e57e0106d36b0ee54e60ab171287c1 | 988 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/lib/ops/data/groups.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Python.Fuzzbunch/Resources/Ops/PyScripts/lib/ops/data/groups.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Python.Fuzzbunch/Resources/Ops/PyScripts/lib/ops/data/groups.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z |
from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions
import dsz
if ('groups' not in cmd_definitions):
dszgroup = OpsClass('group', {'groupid': OpsField('groupid', dsz.TYPE_INT), 'group': OpsField('group', dsz.TYPE_STRING), 'comment': OpsField('comment', dsz.TYPE_STRING), 'attribute... | 141.142857 | 728 | 0.762146 | 104 | 988 | 7.105769 | 0.336538 | 0.104195 | 0.08931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077935 | 988 | 7 | 729 | 141.142857 | 0.811196 | 0 | 0 | 0 | 0 | 0 | 0.299595 | 0.04251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e008b253bda8c1f9f79ca66ea55b123cac160a25 | 444 | py | Python | tests/unit/interpreters/test_py_spec.py | snsnlou/tox | 036dfaca03a8202be77ccc3ce70e1f1f17ece57c | [
"MIT"
] | 2,811 | 2016-09-17T18:26:04.000Z | 2022-03-31T14:55:53.000Z | tests/unit/interpreters/test_py_spec.py | snsnlou/tox | 036dfaca03a8202be77ccc3ce70e1f1f17ece57c | [
"MIT"
] | 1,816 | 2016-09-17T20:00:01.000Z | 2022-03-31T10:44:42.000Z | tests/unit/interpreters/test_py_spec.py | snsnlou/tox | 036dfaca03a8202be77ccc3ce70e1f1f17ece57c | [
"MIT"
] | 509 | 2016-09-17T20:43:31.000Z | 2022-03-27T04:15:09.000Z | from tox.interpreters.py_spec import PythonSpec
def test_py_3_10():
spec = PythonSpec.from_name("python3.10")
assert (spec.major, spec.minor) == (3, 10)
def test_debug_python():
spec = PythonSpec.from_name("python3.10-dbg")
assert (spec.major, spec.minor) == (None, None)
def test_parse_architectur... | 26.117647 | 69 | 0.693694 | 64 | 444 | 4.640625 | 0.359375 | 0.070707 | 0.181818 | 0.222222 | 0.555556 | 0.313131 | 0 | 0 | 0 | 0 | 0 | 0.058667 | 0.155405 | 444 | 16 | 70 | 27.75 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
e00a68a24df0d95c1be50891d18fe0d7ee72c620 | 636 | py | Python | mypy/test/teststubinfo.py | AlexWaygood/mypy | eb1b1e007e7fd1e976e6dd0f49a71b662a30a2d6 | [
"PSF-2.0"
] | null | null | null | mypy/test/teststubinfo.py | AlexWaygood/mypy | eb1b1e007e7fd1e976e6dd0f49a71b662a30a2d6 | [
"PSF-2.0"
] | null | null | null | mypy/test/teststubinfo.py | AlexWaygood/mypy | eb1b1e007e7fd1e976e6dd0f49a71b662a30a2d6 | [
"PSF-2.0"
] | null | null | null | import unittest
from mypy.stubinfo import is_legacy_bundled_package
class TestStubInfo(unittest.TestCase):
def test_is_legacy_bundled_packages(self) -> None:
assert not is_legacy_bundled_package('foobar_asdf', 2)
assert not is_legacy_bundled_package('foobar_asdf', 3)
assert is_legacy_bun... | 33.473684 | 62 | 0.742138 | 84 | 636 | 5.22619 | 0.309524 | 0.182232 | 0.341686 | 0.451025 | 0.701595 | 0.624146 | 0.261959 | 0.186788 | 0 | 0 | 0 | 0.015326 | 0.179245 | 636 | 18 | 63 | 35.333333 | 0.825671 | 0 | 0 | 0 | 0 | 0 | 0.106918 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0269fc05bd285ec872ca9d2e66a7bb56e1184f9 | 61 | py | Python | openml/extensions/pytorch/layers/__init__.py | adriansmares/openml-deeplearning | 44856ae5f79b553acdb3001e52ca981922f3093f | [
"BSD-3-Clause"
] | 1 | 2020-08-25T10:55:41.000Z | 2020-08-25T10:55:41.000Z | openml/extensions/pytorch/layers/__init__.py | adriansmares/openml-deeplearning | 44856ae5f79b553acdb3001e52ca981922f3093f | [
"BSD-3-Clause"
] | 8 | 2019-05-23T08:03:24.000Z | 2019-09-20T10:14:43.000Z | openml_pytorch/layers/__init__.py | openml/openml-pytorch | 3e404b5f3124898bb6b925e5e9e467c9fe9cc0b6 | [
"BSD-3-Clause"
] | 2 | 2019-06-19T11:10:47.000Z | 2019-07-08T10:31:01.000Z | from .functional import Functional
__all__ = ['Functional']
| 15.25 | 34 | 0.770492 | 6 | 61 | 7.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 61 | 3 | 35 | 20.333333 | 0.811321 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e0272e046947fc51b612971111f80ff01aac447e | 48 | py | Python | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomAttributeScriptTest.removeAttribute.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 27 | 2015-02-15T22:01:39.000Z | 2022-03-02T05:41:29.000Z | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomAttributeScriptTest.removeAttribute.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 101 | 2015-06-05T06:53:56.000Z | 2022-02-28T19:32:44.000Z | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomAttributeScriptTest.removeAttribute.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 25 | 2015-05-26T21:28:42.000Z | 2021-07-06T10:04:01.000Z | element = S(input).attr(attributeName).remove()
| 24 | 47 | 0.75 | 6 | 48 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 48 | 1 | 48 | 48 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0542032fbea72ce75900f097c37cc6b5a8bfe96 | 244 | py | Python | src/py_dss_vis/Line.py | eniovianna/py_dss_vis | c40c1f66aacff632e837aa922a0450d28db0c43b | [
"MIT"
] | null | null | null | src/py_dss_vis/Line.py | eniovianna/py_dss_vis | c40c1f66aacff632e837aa922a0450d28db0c43b | [
"MIT"
] | null | null | null | src/py_dss_vis/Line.py | eniovianna/py_dss_vis | c40c1f66aacff632e837aa922a0450d28db0c43b | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
Created by Ênio Viana at 15/10/2021 at 22:19:09
Project: py-dss-vis [out, 2021]
"""
class Line:
def __init__(self):
self._name = "Line"
@property
def name(self):
return self._name
| 15.25 | 48 | 0.577869 | 36 | 244 | 3.75 | 0.75 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106145 | 0.266393 | 244 | 15 | 49 | 16.266667 | 0.648045 | 0.42623 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e066c7f36da59ad2ad3be24e31a8669edd1a912b | 1,360 | py | Python | part-3/1-dictionaries/6-custom_classes_hashing.py | boconlonton/python-deep-dive | c01591a4943c7b77d4d2cd90a8b23423280367a3 | [
"MIT"
] | null | null | null | part-3/1-dictionaries/6-custom_classes_hashing.py | boconlonton/python-deep-dive | c01591a4943c7b77d4d2cd90a8b23423280367a3 | [
"MIT"
] | null | null | null | part-3/1-dictionaries/6-custom_classes_hashing.py | boconlonton/python-deep-dive | c01591a4943c7b77d4d2cd90a8b23423280367a3 | [
"MIT"
] | null | null | null | class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def __repr__(self):
return f'Person(name={self.name}, age={self.age}'
def __eq__(self, other):
if isinstance(other, Person):
return self.name == other.name and self.age == other.age
... | 20 | 68 | 0.555147 | 189 | 1,360 | 3.740741 | 0.232804 | 0.063649 | 0.046676 | 0.059406 | 0.381895 | 0.282885 | 0.247525 | 0.115983 | 0.115983 | 0.115983 | 0 | 0.022082 | 0.300735 | 1,360 | 67 | 69 | 20.298507 | 0.721346 | 0.047794 | 0 | 0.311111 | 0 | 0 | 0.07758 | 0.018619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244444 | false | 0 | 0 | 0.111111 | 0.533333 | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e069dfc6fb3190477f486b122ea0b54c32459ecb | 597 | py | Python | HW4_GraphProblem/Node.py | cmfeng/CEE505 | 8974562f01461d1f8113e3abb88c704394c2b370 | [
"MIT"
] | null | null | null | HW4_GraphProblem/Node.py | cmfeng/CEE505 | 8974562f01461d1f8113e3abb88c704394c2b370 | [
"MIT"
] | null | null | null | HW4_GraphProblem/Node.py | cmfeng/CEE505 | 8974562f01461d1f8113e3abb88c704394c2b370 | [
"MIT"
] | null | null | null | '''
Created on Apr 24, 2009
@author: Peter
'''
from Vector import *
class Node(object):
def __init__(self, id, v):
self.id = id
self.node = Vector(v)
self.lines = []
def getPosition(self):
return self.node
def getID(self):
return self.id
... | 19.258065 | 56 | 0.557789 | 73 | 597 | 4.452055 | 0.39726 | 0.138462 | 0.172308 | 0.098462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014888 | 0.324958 | 597 | 31 | 57 | 19.258065 | 0.791563 | 0.065327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0.055556 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e06ac6c6b4f34bafc88da3eecca3147d137d4907 | 16,730 | py | Python | tests/unit/test_filters.py | shiratamu/pushwoosh-python-lib | da05d7b72729ebfc65a7ab0b08c9009632a38833 | [
"MIT"
] | 18 | 2015-01-08T19:51:42.000Z | 2021-11-12T11:42:18.000Z | tests/unit/test_filters.py | shiratamu/pushwoosh-python-lib | da05d7b72729ebfc65a7ab0b08c9009632a38833 | [
"MIT"
] | 7 | 2015-03-08T09:01:03.000Z | 2017-11-13T05:26:21.000Z | tests/unit/test_filters.py | shiratamu/pushwoosh-python-lib | da05d7b72729ebfc65a7ab0b08c9009632a38833 | [
"MIT"
] | 18 | 2015-02-17T03:40:54.000Z | 2021-11-25T02:26:44.000Z | from datetime import datetime
import unittest
from pypushwoosh import constants
from pypushwoosh.exceptions import PushwooshFilterInvalidOperatorException, PushwooshFilterInvalidOperandException
from pypushwoosh.filter import ApplicationFilter, ApplicationGroupFilter, IntegerTagFilter, StringTagFilter, \
ListTagFil... | 44.494681 | 130 | 0.704782 | 2,042 | 16,730 | 5.403036 | 0.067581 | 0.059005 | 0.115834 | 0.167316 | 0.784827 | 0.745944 | 0.705157 | 0.651772 | 0.596846 | 0.592677 | 0 | 0.017452 | 0.188285 | 16,730 | 376 | 131 | 44.494681 | 0.794993 | 0 | 0 | 0.435714 | 0 | 0.003571 | 0.064312 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.185714 | false | 0 | 0.017857 | 0 | 0.260714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ed1b9a5ebc494baa4b2025d19ac9bc600628af2 | 381 | py | Python | experimental/sma_database/calculate_smooth.py | Mecanon/morphing_wing | 28d027de4bca755d22345071b8d5abafff1c8778 | [
"MIT"
] | 3 | 2016-02-12T13:17:03.000Z | 2021-02-08T12:44:01.000Z | experimental/sma_database/calculate_smooth.py | Mecanon/morphing_wing | 28d027de4bca755d22345071b8d5abafff1c8778 | [
"MIT"
] | null | null | null | experimental/sma_database/calculate_smooth.py | Mecanon/morphing_wing | 28d027de4bca755d22345071b8d5abafff1c8778 | [
"MIT"
] | 1 | 2021-02-08T12:45:08.000Z | 2021-02-08T12:45:08.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 15 10:07:53 2016
@author: Pedro Leal
"""
import numpy as np
n_1 = 0.2
n_2 = 0.2
n_3 = 0.2
n_4 = 0.2
Ms_list = np.array([ 68.74, 75.71, 82.33, 84.77, 88.27])
Mf_list = np.array([ 57.74, 65.39, 71.29, 74.07, 77.88])
As_list = np.array([ 78.47, 83.82, 88.81, 91.38, 94.78]... | 22.411765 | 59 | 0.593176 | 91 | 381 | 2.395604 | 0.637363 | 0.036697 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.345048 | 0.178478 | 381 | 17 | 59 | 22.411765 | 0.351438 | 0.207349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ed69e566ad4863c16e2fb22f8ad41f1014f3e10 | 587 | py | Python | doc/examples/scope_class.py | barraponto/pytest-dependency | cab2f65ced816939a9041b9e67169073ef0ee412 | [
"Apache-2.0"
] | 91 | 2017-01-30T16:05:13.000Z | 2022-03-29T12:17:35.000Z | doc/examples/scope_class.py | ftesser/pytest-dependency | 1e01358b272ef7d1b2bae0eb7c9d4e33f657da35 | [
"Apache-2.0"
] | 63 | 2016-04-21T19:30:32.000Z | 2022-03-30T13:17:42.000Z | doc/examples/scope_class.py | ftesser/pytest-dependency | 1e01358b272ef7d1b2bae0eb7c9d4e33f657da35 | [
"Apache-2.0"
] | 29 | 2017-09-24T17:22:02.000Z | 2022-03-30T20:39:49.000Z | import pytest
@pytest.mark.dependency()
@pytest.mark.xfail(reason="deliberate fail")
def test_a():
assert False
class TestClass1(object):
@pytest.mark.dependency()
def test_b(self):
pass
class TestClass2(object):
@pytest.mark.dependency()
def test_a(self):
pass
@pytest.ma... | 17.787879 | 62 | 0.635434 | 75 | 587 | 4.853333 | 0.333333 | 0.192308 | 0.32967 | 0.148352 | 0.508242 | 0.508242 | 0.326923 | 0.21978 | 0 | 0 | 0 | 0.004367 | 0.219762 | 587 | 32 | 63 | 18.34375 | 0.790393 | 0 | 0 | 0.363636 | 0 | 0 | 0.073254 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.272727 | false | 0.227273 | 0.045455 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0edb1d732d37ad24af1ca3668a1c4bccae18cad2 | 6,358 | py | Python | tests/test_rand_weighted_cropd.py | davidiommi/MONAI | c470c1a67b33d7dbbce0f8b8c5ffdad84b76d60f | [
"Apache-2.0"
] | 1 | 2022-01-04T21:38:23.000Z | 2022-01-04T21:38:23.000Z | tests/test_rand_weighted_cropd.py | davidiommi/MONAI | c470c1a67b33d7dbbce0f8b8c5ffdad84b76d60f | [
"Apache-2.0"
] | null | null | null | tests/test_rand_weighted_cropd.py | davidiommi/MONAI | c470c1a67b33d7dbbce0f8b8c5ffdad84b76d60f | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 - 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in wri... | 43.848276 | 104 | 0.600818 | 924 | 6,358 | 4.006494 | 0.168831 | 0.051864 | 0.089141 | 0.136683 | 0.734468 | 0.728255 | 0.719611 | 0.693409 | 0.676391 | 0.632631 | 0 | 0.092497 | 0.234822 | 6,358 | 144 | 105 | 44.152778 | 0.668448 | 0.088078 | 0 | 0.605042 | 0 | 0 | 0.031623 | 0 | 0 | 0 | 0 | 0 | 0.252101 | 1 | 0.067227 | false | 0 | 0.033613 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1618c7abe1fc1d5d5b873b04cc79103c6ea2aaa3 | 307 | py | Python | utils/__init__.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | 1 | 2020-03-14T11:00:14.000Z | 2020-03-14T11:00:14.000Z | utils/__init__.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | null | null | null | utils/__init__.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | null | null | null | from .isAllowAccess import isAllowAccess
def validObjectAttr(obj, attrName):
if hasattr(obj, attrName):
return obj['attrName']
else:
return ''
def log(arg):
print ('\n')
print ("log --> ##################")
print (arg)
print ("##################")
print ('\n')
| 20.466667 | 40 | 0.501629 | 29 | 307 | 5.310345 | 0.517241 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2443 | 307 | 14 | 41 | 21.928571 | 0.663793 | 0 | 0 | 0.166667 | 0 | 0 | 0.18241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 0.416667 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
1647d816c96d99861baebc021e235eb197081ece | 3,403 | py | Python | bin/python/analyze-sensitivity-statusQuo.py | narslab/project-groundwork | 1d6ade695712bdd6ce773da7726b6c78a352ccff | [
"MIT"
] | null | null | null | bin/python/analyze-sensitivity-statusQuo.py | narslab/project-groundwork | 1d6ade695712bdd6ce773da7726b6c78a352ccff | [
"MIT"
] | null | null | null | bin/python/analyze-sensitivity-statusQuo.py | narslab/project-groundwork | 1d6ade695712bdd6ce773da7726b6c78a352ccff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 27 20:00:33 2021
@author: Mahsa
"""
import analyze_sensitivity
import pandas as pd
#sensitivity results for statusQuo strategy
output1=analyze_sensitivity.run_sensitivity_statusQuo('r',10)
output2=analyze_sensitivity.run_sensitivity_statusQuo('r',-10)
output3=analyze_se... | 70.895833 | 314 | 0.838672 | 403 | 3,403 | 6.717122 | 0.205955 | 0.221648 | 0.217215 | 0.330994 | 0.672331 | 0.672331 | 0.672331 | 0.639823 | 0.439601 | 0.217215 | 0 | 0.051385 | 0.04496 | 3,403 | 47 | 315 | 72.404255 | 0.781538 | 0.034088 | 0 | 0 | 0 | 0 | 0.29051 | 0.066829 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1659f62c33ec72d7be5aea496bd82fdb74bbf471 | 1,291 | py | Python | setup.py | transfluxus/jsonpath-ng | 3e2dd9ec404de61ed56ce4d8af99c2612fd540e6 | [
"Apache-2.0"
] | 1 | 2021-06-26T01:50:10.000Z | 2021-06-26T01:50:10.000Z | setup.py | transfluxus/jsonpath-ng | 3e2dd9ec404de61ed56ce4d8af99c2612fd540e6 | [
"Apache-2.0"
] | null | null | null | setup.py | transfluxus/jsonpath-ng | 3e2dd9ec404de61ed56ce4d8af99c2612fd540e6 | [
"Apache-2.0"
] | null | null | null | import io
import setuptools
setuptools.setup(
name='jsonpath-ng',
version='1.5.2',
description=(
'A final implementation of JSONPath for Python that aims to be '
'standard compliant, including arithmetic and binary comparison '
'operators and providing clear AST for metaprogrammin... | 32.275 | 73 | 0.621224 | 141 | 1,291 | 5.602837 | 0.617021 | 0.088608 | 0.189873 | 0.164557 | 0.146835 | 0.078481 | 0 | 0 | 0 | 0 | 0 | 0.01927 | 0.236251 | 1,291 | 39 | 74 | 33.102564 | 0.781947 | 0 | 0 | 0.081081 | 0 | 0 | 0.584818 | 0.03718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.054054 | 0 | 0.054054 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1667b8800017b68c1e28c6077fc9b51997736a5f | 241 | py | Python | knn.py | nw0428/Ed-Robotics | cb167ba5cc37765765b691499f9b8919c0923b2f | [
"MIT"
] | null | null | null | knn.py | nw0428/Ed-Robotics | cb167ba5cc37765765b691499f9b8919c0923b2f | [
"MIT"
] | null | null | null | knn.py | nw0428/Ed-Robotics | cb167ba5cc37765765b691499f9b8919c0923b2f | [
"MIT"
] | null | null | null | import math
def distance_squared(a, b):
return sum([a[i]-b[i] for i in range(len(a))])
def nearest_neighbor(data, current_value):
return min(map(lambda kv : (euclidean_distance_sq(current_value, kv[0]), kv[1]), data.items()))[1]
| 24.1 | 102 | 0.684647 | 42 | 241 | 3.785714 | 0.666667 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.141079 | 241 | 9 | 103 | 26.777778 | 0.753623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 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 | 0 | 0 | 0 | 3 |
167f91e34fe0f7ea4e77e7324c6a45a6097ceb3e | 4,029 | py | Python | h/services/__init__.py | jenkins-hypothesis/h | 328be7f5fa3abf3f05aba73d2311cf1eaf7b2277 | [
"BSD-2-Clause"
] | null | null | null | h/services/__init__.py | jenkins-hypothesis/h | 328be7f5fa3abf3f05aba73d2311cf1eaf7b2277 | [
"BSD-2-Clause"
] | null | null | null | h/services/__init__.py | jenkins-hypothesis/h | 328be7f5fa3abf3f05aba73d2311cf1eaf7b2277 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Service definitions that handle business logic."""
from __future__ import unicode_literals
def includeme(config):
config.register_service_factory(
".annotation_json_presentation.annotation_json_presentation_service_factory",
name="annotation_json_presentation",
)
... | 39.5 | 88 | 0.740134 | 432 | 4,029 | 6.428241 | 0.162037 | 0.252071 | 0.24955 | 0.332733 | 0.335254 | 0.027368 | 0 | 0 | 0 | 0 | 0 | 0.000295 | 0.157607 | 4,029 | 101 | 89 | 39.891089 | 0.817914 | 0.017374 | 0 | 0.265957 | 0 | 0 | 0.448014 | 0.356691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0.010638 | 0.010638 | 0 | 0.021277 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1696a0e8b84bb09c6f26361f21ca6900fbbcef60 | 908 | py | Python | lib/coginvasion/quest/Objective.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | 1 | 2020-03-12T16:44:10.000Z | 2020-03-12T16:44:10.000Z | lib/coginvasion/quest/Objective.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | lib/coginvasion/quest/Objective.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: lib.coginvasion.quest.Objective
from direct.directnotify.DirectNotifyGlobal import directNotify
class Objective:
notify = directNot... | 30.266667 | 104 | 0.683921 | 108 | 908 | 5.712963 | 0.546296 | 0.077796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062411 | 0.223568 | 908 | 30 | 105 | 30.266667 | 0.812766 | 0.227974 | 0 | 0.105263 | 0 | 0 | 0.012912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0.105263 | 0.052632 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
16a170c8d37127243d5d457eaa46078d241add92 | 311 | py | Python | nanome/api/structure/__init__.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 3 | 2020-07-02T13:08:27.000Z | 2021-11-24T14:32:53.000Z | nanome/api/structure/__init__.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 11 | 2020-09-14T17:01:47.000Z | 2022-02-18T04:00:52.000Z | nanome/api/structure/__init__.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | 5 | 2020-08-12T16:30:03.000Z | 2021-12-06T18:04:23.000Z | from . import *
from .base import Base
from .atom import Atom
from .bond import Bond
from .residue import Residue
from .chain import Chain
from .molecule import Molecule
from .complex import Complex
from .workspace import Workspace
from .substructure import Substructure
from . import client
from . import io
| 20.733333 | 38 | 0.797428 | 44 | 311 | 5.636364 | 0.295455 | 0.120968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160772 | 311 | 14 | 39 | 22.214286 | 0.950192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 3 |
16a6f00fea8944a6fb7d396d838b174192ce3b8c | 49,047 | py | Python | code/vox_fluoro/history/vox_fluoro_res_test/vox_fluoro_res_test.py | john-drago/fluoro | b757af60940c4395101a39a15f3ac4213f40fdce | [
"MIT"
] | 4 | 2021-03-01T15:34:37.000Z | 2021-06-03T08:56:39.000Z | code/vox_fluoro/history/vox_fluoro_res_test/vox_fluoro_res_test.py | john-drago/fluoro | b757af60940c4395101a39a15f3ac4213f40fdce | [
"MIT"
] | null | null | null | code/vox_fluoro/history/vox_fluoro_res_test/vox_fluoro_res_test.py | john-drago/fluoro | b757af60940c4395101a39a15f3ac4213f40fdce | [
"MIT"
] | null | null | null | import numpy as np
import h5py
import tensorflow as tf
# import keras
import os
import sys
import pickle
# We are going to try to do some residual netowrks
expr_name = sys.argv[0][:-3]
expr_no = '1'
save_dir = os.path.abspath(os.path.join(os.path.expanduser('~/fluoro/code/jupyt/vox_fluoro'), expr_name))
print(save_... | 52.456684 | 553 | 0.749669 | 7,774 | 49,047 | 4.297916 | 0.032673 | 0.041452 | 0.091823 | 0.061415 | 0.83455 | 0.761343 | 0.697294 | 0.686969 | 0.642793 | 0.625703 | 0 | 0.046992 | 0.079312 | 49,047 | 934 | 554 | 52.512848 | 0.692916 | 0.042143 | 0 | 0.066667 | 0 | 0 | 0.271359 | 0.011696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003509 | false | 0 | 0.010526 | 0 | 0.017544 | 0.003509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16b75c5e83d37992a431f71e1bcd20512928e780 | 2,377 | py | Python | cvfm/database.py | atsgen/tf-vcenter-fabric-manager | bb2cf0a0f80464457e1b884847df77a11259077c | [
"Apache-2.0"
] | 1 | 2022-03-13T06:31:49.000Z | 2022-03-13T06:31:49.000Z | cvfm/database.py | atsgen/tf-vcenter-fabric-manager | bb2cf0a0f80464457e1b884847df77a11259077c | [
"Apache-2.0"
] | null | null | null | cvfm/database.py | atsgen/tf-vcenter-fabric-manager | bb2cf0a0f80464457e1b884847df77a11259077c | [
"Apache-2.0"
] | 1 | 2020-08-25T12:44:56.000Z | 2020-08-25T12:44:56.000Z | from builtins import object
import collections
import logging
logger = logging.getLogger(__name__)
class Database(object):
def __init__(self):
self._vm_models = {}
self._dpg_models = {}
self._supported_dvses = set()
self._physical_interfaces = collections.defaultdict(list)
... | 30.87013 | 71 | 0.68069 | 342 | 2,377 | 4.283626 | 0.160819 | 0.066894 | 0.05256 | 0.044369 | 0.423208 | 0.238908 | 0.238908 | 0.238908 | 0.238908 | 0.187031 | 0 | 0 | 0.225494 | 2,377 | 76 | 72 | 31.276316 | 0.795763 | 0 | 0 | 0.140351 | 0 | 0 | 0.016407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.280702 | false | 0 | 0.052632 | 0.140351 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16b884f0ed5e9bfe1f5a2a3738e661ab8baa56c8 | 64 | py | Python | config.py | JuntaoZhong/pokemon-database-webapp | a29d70a0107cd29a6dc456aba40f6f0152d3bb00 | [
"MIT"
] | null | null | null | config.py | JuntaoZhong/pokemon-database-webapp | a29d70a0107cd29a6dc456aba40f6f0152d3bb00 | [
"MIT"
] | 23 | 2021-03-04T01:27:35.000Z | 2021-03-15T21:56:44.000Z | webapp/config.py | rossgk2/cs257 | 1031d731c8712bcb300fefc79cce534c9650470c | [
"MIT"
] | null | null | null | user = 'postgres'
database = 'pokemon_db'
password = 'postgres'
| 16 | 23 | 0.71875 | 7 | 64 | 6.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 64 | 3 | 24 | 21.333333 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
16d7c1852c96b7d34ca1f3c351f06dcbc7de0932 | 1,465 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/NVX/blend_equation_advanced_multi_draw_buffers.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/NVX/blend_equation_advanced_multi_draw_buffers.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/NVX/blend_equation_advanced_multi_draw_buffers.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension NVX.blend_equation_advanced_multi_draw_buffers
This module customises the behaviour of the
OpenGL.raw.GLES2.NVX.blend_equation_advanced_multi_draw_buffers to provide a more
Python-friendly API
Overview (from the spec)
This extension adds support for using advanced blend equations
in... | 43.088235 | 92 | 0.822526 | 195 | 1,465 | 5.969231 | 0.466667 | 0.089347 | 0.14433 | 0.103093 | 0.225086 | 0.225086 | 0.225086 | 0.156357 | 0.156357 | 0.156357 | 0 | 0.003162 | 0.136519 | 1,465 | 34 | 93 | 43.088235 | 0.916996 | 0.69215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
16d877a8588916581ed76bfde53c4b2fa2b3f575 | 226 | py | Python | main.py | Gsak3l/python-image-face-regognition | 8ad7dc8a27d634d794eee69d350ce6ba8029a608 | [
"MIT"
] | null | null | null | main.py | Gsak3l/python-image-face-regognition | 8ad7dc8a27d634d794eee69d350ce6ba8029a608 | [
"MIT"
] | null | null | null | main.py | Gsak3l/python-image-face-regognition | 8ad7dc8a27d634d794eee69d350ce6ba8029a608 | [
"MIT"
] | null | null | null | # what commands to type before starting
# pip install pipenv
# pipenv shell
# pipenv install face_recognition
# face_recognition --tolerance 0.50 --show-distance true --cpus 8 ./images/known ./images/unknown/ | cut -d ',' -f2
| 37.666667 | 115 | 0.738938 | 32 | 226 | 5.15625 | 0.8125 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025907 | 0.146018 | 226 | 5 | 116 | 45.2 | 0.829016 | 0.951327 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
16e158e370621ea54e309d69b61e4ad5cbf2e946 | 236 | py | Python | C_Tut/contact/admin.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | C_Tut/contact/admin.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | C_Tut/contact/admin.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Contact
# Register your models here.
class ContactAdmin(admin.ModelAdmin):
readonly_fields = ["first_name","last_name","email","message"]
admin.site.register(Contact,ContactAdmin) | 39.333333 | 66 | 0.792373 | 30 | 236 | 6.133333 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09322 | 236 | 6 | 67 | 39.333333 | 0.859813 | 0.110169 | 0 | 0 | 0 | 0 | 0.148325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bc4463fc3629ae1399f5b3d71e1d3feaf8a42247 | 1,135 | py | Python | xrpl/models/requests/ledger_data.py | SubCODERS/xrpl-py | 24a02d099002625794f5b6491ec2cafd872cc721 | [
"ISC"
] | 1 | 2022-03-11T07:01:02.000Z | 2022-03-11T07:01:02.000Z | xrpl/models/requests/ledger_data.py | SubCODERS/xrpl-py | 24a02d099002625794f5b6491ec2cafd872cc721 | [
"ISC"
] | 2 | 2022-02-23T22:57:46.000Z | 2022-02-24T11:41:49.000Z | xrpl/models/requests/ledger_data.py | SubCODERS/xrpl-py | 24a02d099002625794f5b6491ec2cafd872cc721 | [
"ISC"
] | 1 | 2022-02-21T07:36:36.000Z | 2022-02-21T07:36:36.000Z | """
The ledger_data method retrieves contents of
the specified ledger. You can iterate through
several calls to retrieve the entire contents
of a single ledger version.
`See ledger data <https://xrpl.org/ledger_data.html>`_
"""
from dataclasses import dataclass, field
from typing import Any, Optional, Union
from xrpl.... | 33.382353 | 80 | 0.753304 | 157 | 1,135 | 5.350318 | 0.43949 | 0.083333 | 0.030952 | 0.045238 | 0.419048 | 0.419048 | 0.419048 | 0.419048 | 0.419048 | 0.419048 | 0 | 0 | 0.171806 | 1,135 | 33 | 81 | 34.393939 | 0.893617 | 0.477533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.307692 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bc5ebcddc31fcfc02e140cf52c83b9e9e1f821b9 | 350 | py | Python | python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming-14/source/chapter08/queuecrazy.py | bosserbosser/codetest | 987563900d912e891b53eeda8e2cf36f3c769430 | [
"Apache-2.0"
] | null | null | null | python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming-14/source/chapter08/queuecrazy.py | bosserbosser/codetest | 987563900d912e891b53eeda8e2cf36f3c769430 | [
"Apache-2.0"
] | null | null | null | python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming-14/source/chapter08/queuecrazy.py | bosserbosser/codetest | 987563900d912e891b53eeda8e2cf36f3c769430 | [
"Apache-2.0"
] | null | null | null | # The script printed in the book that calls itself "queuecrazy.py" is
# actually named "queuepi.py", as you can see a page or two later when
# the book demonstrates how to invoke the script at the shell prompt.
# So the script actually lives at the URL:
# https://github.com/brandon-rhodes/fopnp/blob/m/py3/chapter08/qu... | 38.888889 | 73 | 0.757143 | 61 | 350 | 4.344262 | 0.754098 | 0.101887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.16 | 350 | 8 | 74 | 43.75 | 0.891156 | 0.957143 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
bc8f9b5d14129ebcc89949be7dd00347728a9636 | 269 | py | Python | django/esite/esite/views.py | vollov/django-template | ca904ace18919dbb557961acbb9959ffd48d4d20 | [
"MIT"
] | null | null | null | django/esite/esite/views.py | vollov/django-template | ca904ace18919dbb557961acbb9959ffd48d4d20 | [
"MIT"
] | null | null | null | django/esite/esite/views.py | vollov/django-template | ca904ace18919dbb557961acbb9959ffd48d4d20 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render
# import the logging library
import logging
# Get an instance of a logger
logger = logging.getLogger(__name__)
def home(request):
return render(request, 'home.html', {'page_title': 'home'}) | 24.454545 | 63 | 0.765799 | 37 | 269 | 5.432432 | 0.675676 | 0.099502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141264 | 269 | 11 | 63 | 24.454545 | 0.87013 | 0.200743 | 0 | 0 | 0 | 0 | 0.107981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
bca9285b98a6ae5d1452b8301a7ba4a1315ee54d | 343 | py | Python | src/cmp/cool_lang/ast/attr_declaration_node.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 3 | 2020-01-14T04:47:32.000Z | 2020-09-10T17:57:20.000Z | src/cmp/cool_lang/ast/attr_declaration_node.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 5 | 2020-01-14T06:06:35.000Z | 2020-02-19T01:01:33.000Z | src/cmp/cool_lang/ast/attr_declaration_node.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 3 | 2020-01-14T04:58:24.000Z | 2020-01-14T16:23:41.000Z | from .expresion_node import ExpressionNode
from .feature_declaration_node import FeatureDeclarationNode
class AttrDeclarationNode(FeatureDeclarationNode):
def __init__(self, idx: str, typex: str, expression: ExpressionNode, line: int, column: int):
super(AttrDeclarationNode, self).__init__(idx, typex, exp... | 42.875 | 97 | 0.795918 | 36 | 343 | 7.277778 | 0.583333 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 343 | 7 | 98 | 49 | 0.870432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bcc06ddb6c5cb8aab1de28e9dea70a2678d807ed | 135 | py | Python | table_not_found_error.py | WholeCoder/rlstools | 48b69905317dc495e4a44b66faa25b3978b3f383 | [
"MIT"
] | null | null | null | table_not_found_error.py | WholeCoder/rlstools | 48b69905317dc495e4a44b66faa25b3978b3f383 | [
"MIT"
] | null | null | null | table_not_found_error.py | WholeCoder/rlstools | 48b69905317dc495e4a44b66faa25b3978b3f383 | [
"MIT"
] | null | null | null | from sqlite3 import OperationalError
class TableNotFoundError(OperationalError):
def __init__(self, msg):
self.msg = msg
| 19.285714 | 43 | 0.740741 | 14 | 135 | 6.857143 | 0.714286 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.192593 | 135 | 6 | 44 | 22.5 | 0.87156 | 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 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.