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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dbd1346eab1718a3de14101f8c5c5c996610f9b | 172 | py | Python | testing/arkane/two_parameter_arrhenius_fit/imipraminerad.py | tza0035/RMG-Py | 38c49f7107d1b19e4a534408a1040ddd313b8596 | [
"MIT"
] | 250 | 2015-06-06T23:32:00.000Z | 2022-03-22T16:45:16.000Z | testing/arkane/two_parameter_arrhenius_fit/imipraminerad.py | tza0035/RMG-Py | 38c49f7107d1b19e4a534408a1040ddd313b8596 | [
"MIT"
] | 1,781 | 2015-05-26T23:52:00.000Z | 2022-03-31T19:07:54.000Z | testing/arkane/two_parameter_arrhenius_fit/imipraminerad.py | tza0035/RMG-Py | 38c49f7107d1b19e4a534408a1040ddd313b8596 | [
"MIT"
] | 161 | 2015-06-02T14:28:59.000Z | 2022-03-02T19:37:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
energy = Log('imipraminerad_sp.out')
geometry = Log('imipraminerad_freq.out')
frequencies = Log('imipraminerad_freq.out')
| 19.111111 | 43 | 0.697674 | 22 | 172 | 5.318182 | 0.681818 | 0.410256 | 0.34188 | 0.393162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.116279 | 172 | 8 | 44 | 21.5 | 0.763158 | 0.244186 | 0 | 0 | 0 | 0 | 0.5 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
2deab02a5822c3042f7f618accc8f6d6a3eeeb08 | 106 | py | Python | src/analytics/admin.py | s-Akhil-krishna/URL-shortener-Django | 9298e9dd7a31b1a17f087f55b3c33a12e018968d | [
"bzip2-1.0.6"
] | null | null | null | src/analytics/admin.py | s-Akhil-krishna/URL-shortener-Django | 9298e9dd7a31b1a17f087f55b3c33a12e018968d | [
"bzip2-1.0.6"
] | null | null | null | src/analytics/admin.py | s-Akhil-krishna/URL-shortener-Django | 9298e9dd7a31b1a17f087f55b3c33a12e018968d | [
"bzip2-1.0.6"
] | null | null | null | from django.contrib import admin
from analytics.models import ClickEvent
admin.site.register(ClickEvent) | 21.2 | 39 | 0.849057 | 14 | 106 | 6.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 106 | 5 | 40 | 21.2 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
9325cfb9c0a9063aa8f2a74f3ebda64dd561e0f7 | 473 | py | Python | modules/matrices/__init__.py | 276793422/attack-website | 9be8abbb8d77c3c73243cae2689f1af9725d19f9 | [
"Apache-2.0"
] | 327 | 2018-11-22T07:01:30.000Z | 2022-03-30T09:25:02.000Z | modules/matrices/__init__.py | 276793422/attack-website | 9be8abbb8d77c3c73243cae2689f1af9725d19f9 | [
"Apache-2.0"
] | 239 | 2019-02-11T13:47:44.000Z | 2022-03-30T06:20:47.000Z | modules/matrices/__init__.py | 276793422/attack-website | 9be8abbb8d77c3c73243cae2689f1af9725d19f9 | [
"Apache-2.0"
] | 111 | 2019-01-25T12:58:56.000Z | 2022-03-30T09:25:04.000Z | from . import matrices
from . import matrices_config
def get_priority():
return matrices_config.priority
def get_menu():
return {
"display_name": matrices_config.module_name,
"module_name": matrices_config.module_name,
"url": "/matrices/",
"external_link": False,
"priority": matrices_config.priority,
"children": []
}
def run_module():
return (matrices.generate_matrices(), matrices_config.module_name) | 26.277778 | 70 | 0.67019 | 51 | 473 | 5.901961 | 0.372549 | 0.27907 | 0.199336 | 0.239203 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217759 | 473 | 18 | 70 | 26.277778 | 0.813514 | 0 | 0 | 0 | 0 | 0 | 0.137131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.133333 | 0.2 | 0.533333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
934f305f138ae158227d06252b50456fda850ec4 | 82 | py | Python | scripts/field/autogen_enter_993001000.py | doriyan13/doristory | 438caf3b123922da3f5f3b16fcc98a26a8ab85ce | [
"MIT"
] | null | null | null | scripts/field/autogen_enter_993001000.py | doriyan13/doristory | 438caf3b123922da3f5f3b16fcc98a26a8ab85ce | [
"MIT"
] | null | null | null | scripts/field/autogen_enter_993001000.py | doriyan13/doristory | 438caf3b123922da3f5f3b16fcc98a26a8ab85ce | [
"MIT"
] | null | null | null | # ParentID: 993001000
# ObjectID: 0
# Character field ID when accessed: 993001000
| 20.5 | 45 | 0.768293 | 10 | 82 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275362 | 0.158537 | 82 | 3 | 46 | 27.333333 | 0.637681 | 0.914634 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
9366608bc843340b289b7cfb9819d5dff378962d | 24 | py | Python | ablator/ablator/version.py | ablator/ablator | 514635f6b3c34da590ea9f9824152a74cdf3dec9 | [
"BSD-3-Clause"
] | 65 | 2017-08-16T14:33:40.000Z | 2022-02-17T14:39:36.000Z | ablator/ablator/version.py | ablator/ablator | 514635f6b3c34da590ea9f9824152a74cdf3dec9 | [
"BSD-3-Clause"
] | 71 | 2017-08-13T13:35:04.000Z | 2019-10-31T03:23:18.000Z | ablator/ablator/version.py | ablator/ablator | 514635f6b3c34da590ea9f9824152a74cdf3dec9 | [
"BSD-3-Clause"
] | 3 | 2017-09-10T04:30:34.000Z | 2019-10-25T09:50:00.000Z | __version__ = "2020.1a"
| 12 | 23 | 0.708333 | 3 | 24 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0.125 | 24 | 1 | 24 | 24 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
936d8bdb497ba92cece60ddc3e1b16317a44e769 | 47 | py | Python | django_sloop/exceptions.py | Hipo/django-sloop | 092bcd4c87d6ef09d5dafa8972b78b06fe536716 | [
"Apache-2.0"
] | 17 | 2015-01-07T08:53:18.000Z | 2021-04-27T19:48:54.000Z | django_sloop/exceptions.py | Hipo/django-sloop | 092bcd4c87d6ef09d5dafa8972b78b06fe536716 | [
"Apache-2.0"
] | 12 | 2015-01-29T16:26:50.000Z | 2021-02-15T11:42:32.000Z | django_sloop/exceptions.py | Hipo/django-sloop | 092bcd4c87d6ef09d5dafa8972b78b06fe536716 | [
"Apache-2.0"
] | 5 | 2015-02-11T12:44:04.000Z | 2019-07-11T16:21:38.000Z |
class DeviceIsNotActive(Exception):
pass
| 9.4 | 35 | 0.744681 | 4 | 47 | 8.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 47 | 4 | 36 | 11.75 | 0.921053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
9374c032716c3f492105b7c8c19253c969208388 | 24 | py | Python | junior/file_backup/src/file2.py | Firekiss/python_learn | 15922af566a08924834ff924982a36a65b724bbf | [
"MIT"
] | null | null | null | junior/file_backup/src/file2.py | Firekiss/python_learn | 15922af566a08924834ff924982a36a65b724bbf | [
"MIT"
] | null | null | null | junior/file_backup/src/file2.py | Firekiss/python_learn | 15922af566a08924834ff924982a36a65b724bbf | [
"MIT"
] | null | null | null | 我是file2文件
这个是file2文件的内容 | 8 | 13 | 0.916667 | 2 | 24 | 11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.083333 | 24 | 3 | 13 | 8 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
937f29b2c5f01e0651d003d6bdf299bb45c69cca | 163 | py | Python | 01. Print Statements/print.py | joshtsengsh/Learn-Coding-with-Python | 9280c41f919f60c33a5d7d0a8bc454877692feec | [
"MIT"
] | null | null | null | 01. Print Statements/print.py | joshtsengsh/Learn-Coding-with-Python | 9280c41f919f60c33a5d7d0a8bc454877692feec | [
"MIT"
] | null | null | null | 01. Print Statements/print.py | joshtsengsh/Learn-Coding-with-Python | 9280c41f919f60c33a5d7d0a8bc454877692feec | [
"MIT"
] | null | null | null | #Created by Josh Tseng, 1 May 2020
#Get the computer terminal to display the text "Hello world"
#This is achieved using the print() function
print("Hello world")
| 27.166667 | 60 | 0.760736 | 27 | 163 | 4.592593 | 0.814815 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0.165644 | 163 | 5 | 61 | 32.6 | 0.875 | 0.828221 | 0 | 0 | 0 | 0 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
9382486bda52e3b549a23f15a85e2e19b9d102fe | 118 | py | Python | py_tdlib/constructors/passport_element_utility_bill.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/passport_element_utility_bill.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/passport_element_utility_bill.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class passportElementUtilityBill(Type):
utility_bill = None # type: "personalDocument"
| 19.666667 | 48 | 0.779661 | 12 | 118 | 7.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 118 | 5 | 49 | 23.6 | 0.892157 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 5 |
fac2d18f5e3cf59064397d0d5b76b103a033fe41 | 91 | py | Python | mango/__init__.py | asah/mango | 0ae21359b93c30e8e22270417377534e51ac0949 | [
"Apache-2.0"
] | null | null | null | mango/__init__.py | asah/mango | 0ae21359b93c30e8e22270417377534e51ac0949 | [
"Apache-2.0"
] | null | null | null | mango/__init__.py | asah/mango | 0ae21359b93c30e8e22270417377534e51ac0949 | [
"Apache-2.0"
] | null | null | null | from mango.tuner import Tuner
from mango import scheduler
__all__ = ['Tuner', 'scheduler'] | 22.75 | 32 | 0.769231 | 12 | 91 | 5.5 | 0.5 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 91 | 4 | 32 | 22.75 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
fae10e9b9881e77315d85b19d09c7b9cd7644903 | 465 | py | Python | python/tweedledum/BoolFunctionCompiler/__init__.py | zeta1999/tweedledum | f070bf582347668f96943a459e51e1a39572b7f4 | [
"MIT"
] | 1 | 2022-03-04T21:44:26.000Z | 2022-03-04T21:44:26.000Z | python/tweedledum/BoolFunctionCompiler/__init__.py | CQCL/tweedledum | f070bf582347668f96943a459e51e1a39572b7f4 | [
"MIT"
] | null | null | null | python/tweedledum/BoolFunctionCompiler/__init__.py | CQCL/tweedledum | f070bf582347668f96943a459e51e1a39572b7f4 | [
"MIT"
] | 1 | 2021-04-12T06:17:06.000Z | 2021-04-12T06:17:06.000Z | #-------------------------------------------------------------------------------
# Part of Tweedledum Project. This file is distributed under the MIT License.
# See accompanying file /LICENSE for details.
#-------------------------------------------------------------------------------
from .BitVec import *
from .BoolFunction import *
from .Parser import *
from .types import *
def phase_oracle(f):
# TODO
pass
def binary_oracle(f):
# TODO
pass
| 27.352941 | 80 | 0.464516 | 42 | 465 | 5.095238 | 0.690476 | 0.140187 | 0.102804 | 0.140187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144086 | 465 | 16 | 81 | 29.0625 | 0.537688 | 0.621505 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.25 | false | 0.25 | 0.5 | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 0 | 5 |
faeacd6acf3a83d7eefaccfdb3dacef7429393c9 | 146 | py | Python | python/opscore/__init__.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | null | null | null | python/opscore/__init__.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | 1 | 2021-08-17T21:08:14.000Z | 2021-08-17T21:08:14.000Z | python/opscore/__init__.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | null | null | null | """
Core software for SDSS-3 Operations
"""
from . import actor
from . import ply
from . import protocols
from . import RO
from . import utility
| 14.6 | 35 | 0.726027 | 21 | 146 | 5.047619 | 0.619048 | 0.471698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.191781 | 146 | 9 | 36 | 16.222222 | 0.889831 | 0.239726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
87e105fc3b832b9c3feca7d440e8689b2122ecdd | 84 | py | Python | Section 8/sound_conversion/rectomp3.py | PacktPublishing/Learning-Python-v- | 30fb28dfaaa18815f1b4c0b683e8839da223b195 | [
"MIT"
] | 1 | 2021-10-05T19:45:43.000Z | 2021-10-05T19:45:43.000Z | Section 8/sound_conversion/rectomp3.py | PacktPublishing/Learning-Python-v- | 30fb28dfaaa18815f1b4c0b683e8839da223b195 | [
"MIT"
] | null | null | null | Section 8/sound_conversion/rectomp3.py | PacktPublishing/Learning-Python-v- | 30fb28dfaaa18815f1b4c0b683e8839da223b195 | [
"MIT"
] | 2 | 2020-09-25T19:56:46.000Z | 2021-09-02T11:14:28.000Z | def rec2mp3():
"""
Converions code
"""
return "recording voice converted to Mp3" | 16.8 | 42 | 0.690476 | 10 | 84 | 5.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.178571 | 84 | 5 | 42 | 16.8 | 0.797101 | 0.178571 | 0 | 0 | 0 | 0 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
e204f5910b75ae04a697f69dfab6be63dcd0410b | 5,504 | py | Python | raco/expression/visitor.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 61 | 2015-02-09T17:27:40.000Z | 2022-03-28T14:37:53.000Z | raco/expression/visitor.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 201 | 2015-01-03T02:46:19.000Z | 2017-09-19T02:16:36.000Z | raco/expression/visitor.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 17 | 2015-06-03T12:01:30.000Z | 2021-11-27T15:49:21.000Z | import abc
from abc import abstractmethod
from raco.expression.function import UnaryFunction, \
BinaryFunction, NaryFunction
class ExpressionVisitor(object):
# TODO: make this more complete for kinds of expressions
__metaclass__ = abc.ABCMeta
def visit(self, expr):
# use expr to dispatch to appropriate visit_* method
# special case names for things we expect are not useful to
# differentiate further
# E.g., instead of visit_SQRT, do visit_UnaryFunction
if isinstance(expr, UnaryFunction):
typename = UnaryFunction.__name__
elif isinstance(expr, NaryFunction):
typename = NaryFunction.__name__
else:
# get most names from the expression's type
typename = type(expr).__name__
dispatchTo = getattr(self, "visit_%s" % (typename,))
return dispatchTo(expr)
@abc.abstractmethod
def visit_NOT(self, unaryExpr):
return
@abc.abstractmethod
def visit_AND(self, binaryExpr):
return
@abc.abstractmethod
def visit_OR(self, binaryExpr):
return
@abc.abstractmethod
def visit_EQ(self, binaryExpr):
return
@abc.abstractmethod
def visit_NEQ(self, binaryExpr):
return
@abc.abstractmethod
def visit_GT(self, binaryExpr):
return
@abc.abstractmethod
def visit_LT(self, binaryExpr):
return
@abc.abstractmethod
def visit_GTEQ(self, binaryExpr):
return
@abc.abstractmethod
def visit_LTEQ(self, binaryExpr):
return
@abc.abstractmethod
def visit_NamedAttributeRef(self, named):
return
@abc.abstractmethod
def visit_UnnamedAttributeRef(self, unnamed):
return
@abstractmethod
def visit_NamedStateAttributeRef(self, attr):
return
@abc.abstractmethod
def visit_StringLiteral(self, stringLiteral):
return
@abc.abstractmethod
def visit_NumericLiteral(self, numericLiteral):
return
@abc.abstractmethod
def visit_DIVIDE(self, binaryExpr):
return
@abc.abstractmethod
def visit_PLUS(self, binaryExpr):
return
@abstractmethod
def visit_MINUS(self, binaryExpr):
return
@abstractmethod
def visit_IDIVIDE(self, binaryExpr):
return
@abstractmethod
def visit_MOD(self, binaryExpr):
return
@abstractmethod
def visit_TIMES(self, binaryExpr):
return
@abstractmethod
def visit_NEG(self, unaryExpr):
return
@abstractmethod
def visit_Case(self, caseExpr):
return
@abstractmethod
def visit_UnaryFunction(self, expr):
return
@abstractmethod
def visit_BinaryFunction(self, expr):
return
@abstractmethod
def visit_NaryFunction(self, expr):
return
@abstractmethod
def visit_CAST(self, expr):
return
@abstractmethod
def visit_LIKE(self, binaryExpr):
return
class SimpleExpressionVisitor(ExpressionVisitor):
@abstractmethod
def visit_unary(self, unaryexpr):
pass
@abstractmethod
def visit_binary(self, binaryexpr):
pass
@abstractmethod
def visit_zeroary(self, zeroaryexpr):
pass
@abstractmethod
def visit_literal(self, literalexpr):
pass
@abstractmethod
def visit_nary(self, naryexpr):
pass
@abstractmethod
def visit_attr(self, attr):
pass
def visit_NOT(self, unaryExpr):
self.visit_unary(unaryExpr)
def visit_AND(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_OR(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_EQ(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_NEQ(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_GT(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_LT(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_GTEQ(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_LTEQ(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_NamedAttributeRef(self, named):
self.visit_attr(named)
def visit_UnnamedAttributeRef(self, unnamed):
self.visit_attr(unnamed)
def visit_NamedStateAttributeRef(self, attr):
self.visit_attr(attr)
def visit_StringLiteral(self, stringLiteral):
self.visit_literal(stringLiteral)
def visit_NumericLiteral(self, numericLiteral):
self.visit_literal(numericLiteral)
def visit_DIVIDE(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_PLUS(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_MINUS(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_IDIVIDE(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_MOD(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_TIMES(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_NEG(self, unaryExpr):
self.visit_unary(unaryExpr)
def visit_LIKE(self, binaryExpr):
self.visit_binary(binaryExpr)
def visit_UnaryFunction(self, expr):
self.visit_unary(expr)
def visit_BinaryFunction(self, expr):
self.visit_binary(expr)
def visit_NaryFunction(self, expr):
self.visit_nary(expr)
def visit_CAST(self, expr):
self.visit_unary(expr)
| 22.838174 | 67 | 0.667515 | 582 | 5,504 | 6.132302 | 0.17354 | 0.134491 | 0.203418 | 0.105071 | 0.677221 | 0.449426 | 0.335668 | 0.222191 | 0 | 0 | 0 | 0 | 0.255814 | 5,504 | 240 | 68 | 22.933333 | 0.871338 | 0.05069 | 0 | 0.820359 | 0 | 0 | 0.001533 | 0 | 0 | 0 | 0 | 0.004167 | 0 | 1 | 0.359281 | false | 0.035928 | 0.017964 | 0.161677 | 0.562874 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
35828399f8c0622f4a49ab251e614fe700b5b1fc | 81 | py | Python | sentry/__init__.py | IBM/backwork-notifier-sentry | ebc4dac07a64d927bcbd8e9926527170fb071685 | [
"Apache-2.0"
] | null | null | null | sentry/__init__.py | IBM/backwork-notifier-sentry | ebc4dac07a64d927bcbd8e9926527170fb071685 | [
"Apache-2.0"
] | null | null | null | sentry/__init__.py | IBM/backwork-notifier-sentry | ebc4dac07a64d927bcbd8e9926527170fb071685 | [
"Apache-2.0"
] | 2 | 2019-11-02T15:05:39.000Z | 2020-06-29T14:49:42.000Z | """Add support for Sentry notifications.
"""
from .sentry import SentryNotifier
| 16.2 | 40 | 0.765432 | 9 | 81 | 6.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 81 | 4 | 41 | 20.25 | 0.885714 | 0.45679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
35b0833b48841e754a72799f6cfe8b1ffe8c9751 | 90 | py | Python | utilities/PaxHeaders.2308045/ovs-dev.py | cuijianming/ovs-2.13.6 | e7fdf06d6c26d280b25bdf235146ae007cd2208c | [
"Apache-2.0"
] | null | null | null | utilities/PaxHeaders.2308045/ovs-dev.py | cuijianming/ovs-2.13.6 | e7fdf06d6c26d280b25bdf235146ae007cd2208c | [
"Apache-2.0"
] | null | null | null | utilities/PaxHeaders.2308045/ovs-dev.py | cuijianming/ovs-2.13.6 | e7fdf06d6c26d280b25bdf235146ae007cd2208c | [
"Apache-2.0"
] | null | null | null | 30 mtime=1639777085.534355983
30 atime=1639777086.397355983
30 ctime=1639777126.233355983
| 22.5 | 29 | 0.866667 | 12 | 90 | 6.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.75 | 0.066667 | 90 | 3 | 30 | 30 | 0.178571 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
35dcd660f95265e2d613a741d7a7a09a5645a5b7 | 24,031 | py | Python | tests/test_lineage.py | dpeerlab/cellrank | 461d1af79880a790bc56070626775eac24b6e5a2 | [
"BSD-3-Clause"
] | 3 | 2020-06-22T07:44:40.000Z | 2021-12-06T23:15:58.000Z | tests/test_lineage.py | dpeerlab/cellrank | 461d1af79880a790bc56070626775eac24b6e5a2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_lineage.py | dpeerlab/cellrank | 461d1af79880a790bc56070626775eac24b6e5a2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import mock
import numpy as np
import pytest
from pandas import DataFrame
import matplotlib.colors as colors
import cellrank.tools._lineage as mocker
from cellrank.tools import Lineage
from cellrank.tools._utils import _compute_mean_color
from cellrank.tools._colors import _create_categorical_colors
from cellrank.tools._constants import Lin
class TestLineageCreation:
def test_creation(self):
x = np.random.random((10, 3))
names = ["foo", "bar", "baz"]
colors = ["#000000", "#ababab", "#ffffff"]
l = Lineage(x, names=names, colors=colors)
np.testing.assert_array_equal(l, x)
np.testing.assert_array_equal(l.names, np.array(names))
np.testing.assert_array_equal(l.colors, np.array(colors))
def test_wrong_number_of_dimensions(self):
with pytest.raises(ValueError):
_ = Lineage(
np.random.random((10, 3, 1)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), "#ffffff", "#ff00FF"],
)
def test_names_length_mismatch(self):
with pytest.raises(ValueError):
_ = Lineage(
np.random.random((10, 3)),
names=["foo", "bar"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), "foobar"],
)
def test_colors_length_mismatch(self):
with pytest.raises(ValueError):
_ = Lineage(
np.random.random((10, 3)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5)],
)
def test_wrong_colors(self):
with pytest.raises(ValueError):
_ = Lineage(
np.random.random((10, 3)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), "foobar"],
)
def test_colors_setter(self):
l = Lineage(
np.random.random((10, 3)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
colors = ["#ffffff", "#ffffff", "#ffffff"]
l.colors = colors
np.testing.assert_array_equal(l.colors, np.array(colors))
def test_color_setter_wrong_colors(self):
l = Lineage(
np.random.random((10, 3)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
with pytest.raises(ValueError):
l.colors = ["#ffffff", "#ffffff", "foo"]
def test_names_setter(self):
l = Lineage(
np.random.random((10, 3)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
names = ["foo1", "bar1", "baz1"]
l.names = names
np.testing.assert_array_equal(l.names, np.array(names))
def test_names_setter_wrong_type(self):
l = Lineage(
np.random.random((10, 3)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
with pytest.raises(TypeError):
l.names = ["foo1", "bar1", 3]
def test_names_setter_wrong_size(self):
l = Lineage(
np.random.random((10, 3)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
with pytest.raises(ValueError):
l.names = ["foo1", "bar1"]
def test_names_setter_non_unique(self):
l = Lineage(
np.random.random((10, 3)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
with pytest.raises(ValueError):
l.names = ["foo1", "bar1", "bar1"]
def test_non_unique_names(self):
with pytest.raises(ValueError):
_ = Lineage(
np.random.random((10, 3, 1)),
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), "#ffffff", "#ff00FF"],
)
class TestLineageAccessor:
def test_subset_same_instance(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[0, 0]
assert isinstance(y, Lineage)
def test_singleton_column(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[:, 0]
np.testing.assert_array_equal(x[:, 0], np.array(y)[:, 0])
def test_singleton_column_name(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[:, "foo"]
np.testing.assert_array_equal(x[:, 0], np.array(y)[:, 0])
def test_singleton_column_first_index_assignment(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l["baz"]
np.testing.assert_array_equal(x[:, 2], np.array(y)[:, 0])
np.testing.assert_array_equal(y.names, ["baz"])
def test_singleton_row_and_column(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[0, "foo"]
assert isinstance(l, Lineage)
assert y.shape == (1, 1)
assert x[0, 0] == y[0, 0]
def test_mixed_columns(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[0, ["foo", 2, "bar"]]
np.testing.assert_array_equal(x[[[0]], [0, 2, 1]], np.array(y))
def test_remove_duplicates(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[0, ["foo", 2, "bar", 0, 0, "foo"]]
np.testing.assert_array_equal(x[[[0]], [0, 2, 1]], np.array(y))
def test_column_invalid_name(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
with pytest.raises(KeyError):
y = l["quux"]
def test_row_subset_with_ints(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[[1, 2, 3], :]
np.testing.assert_array_equal(x[[1, 2, 3], :], np.array(y))
def test_column_subset_boolean(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[:, [False, False, True]]
np.testing.assert_array_equal(x[:, -1], y.X.squeeze())
def test_column_subset_boolean_invalid_dim(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
with pytest.raises(IndexError):
y = l[:, [True]]
def test_row_subset_with_mask(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
mask = np.ones((x.shape[0]), dtype=np.bool)
mask[:5] = False
y = l[mask, :]
np.testing.assert_array_equal(x[mask, :], np.array(y))
def test_column_subset_with_ints(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[:, [2, 0]]
np.testing.assert_array_equal(x[:, [2, 0]], np.array(y))
def test_column_subset_with_mask(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
mask = np.ones((x.shape[1]), dtype=np.bool)
mask[0] = False
y = l[:, mask]
np.testing.assert_array_equal(x[:, mask], np.array(y))
def test_column_subset_with_names(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[:, ["foo", "bar"]]
np.testing.assert_array_equal(x[:, [0, 1]], np.array(y))
def test_comb_row_int_col_int(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[[0, 1], [1, 2]]
np.testing.assert_array_equal(x[[0, 1], :][:, [1, 2]], np.array(y))
def test_comb_row_int_col_mask(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
mask = np.ones((x.shape[1]), dtype=np.bool)
mask[0] = False
y = l[[0, 1], mask]
np.testing.assert_array_equal(x[[0, 1], :][:, mask], np.array(y))
def test_comb_row_int_col_names(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
y = l[[0, 1], "baz"]
np.testing.assert_array_equal(x[[0, 1], :][:, [2]], np.array(y))
def test_comb_row_mask_col_int(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
mask = np.ones((x.shape[0]), dtype=np.bool)
mask[5:] = False
y = l[mask, 0]
np.testing.assert_array_equal(x[mask, :][:, [0]], np.array(y))
def test_comb_row_mask_col_mask(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
row_mask = np.ones((x.shape[0]), dtype=np.bool)
row_mask[5:] = False
col_mask = np.ones((x.shape[1]), dtype=np.bool)
y = l[row_mask, col_mask]
np.testing.assert_array_equal(x[row_mask, :][:, col_mask], np.array(y))
def test_comb_row_mask_col_names(self):
x = np.random.random((10, 3))
l = Lineage(
x,
names=["foo", "bar", "baz"],
colors=[(0, 0, 0), (0.5, 0.5, 0.5), (1, 1, 1)],
)
mask = np.ones((x.shape[0]), dtype=np.bool)
mask[5:] = False
y = l[mask, ["baz", "bar"]]
np.testing.assert_array_equal(x[mask, :][:, [2, 1]], np.array(y))
def test_reordering(self):
x = np.random.random((10, 3))
l = Lineage(
x, names=["foo", "bar", "baz"], colors=["#ff0000", "#00ff00", "#0000ff"]
)
y = l[["baz", "bar", "foo"]]
np.testing.assert_array_equal(y.names, ["baz", "bar", "foo"])
np.testing.assert_array_equal(y.colors, ["#0000ff", "#00ff00", "#ff0000"])
def test_non_trivial_subset(self):
x = np.random.random((10, 3))
l = Lineage(
x, names=["foo", "bar", "baz"], colors=["#ff0000", "#00ff00", "#0000ff"]
)
mask = np.ones((x.shape[0]), dtype=np.bool)
mask[5:] = False
y = l[mask, :][:, ["baz", "bar", "foo"]]
np.testing.assert_array_equal(y, x[mask, :][:, ::-1])
np.testing.assert_array_equal(y.names, ["baz", "bar", "foo"])
np.testing.assert_array_equal(y.colors, ["#0000ff", "#00ff00", "#ff0000"])
def test_non_trivial_subset_2(self):
x = np.random.random((10, 3))
l = Lineage(
x, names=["foo", "bar", "baz"], colors=["#ff0000", "#00ff00", "#0000ff"]
)
mask = np.ones((x.shape[0]), dtype=np.bool)
mask[5:] = False
y = l[mask, ["baz", "bar", "foo"]]
z = l[mask, :][:, ["baz", "bar", "foo"]]
np.testing.assert_array_equal(y, z)
np.testing.assert_array_equal(y, x[mask, :][:, [2, 1, 0]])
np.testing.assert_array_equal(y.names, z.names)
np.testing.assert_array_equal(y.colors, z.colors)
def test_col_order(self):
x = np.random.random((10, 5))
l = Lineage(
x,
names=["foo", "bar", "baz", "quux", "wex"],
colors=["#ff0000", "#00ff00", "#0000ff", "#aaaaaa", "#bbbbbb"],
)
y = l[["wex", "quux"]]
np.testing.assert_array_equal(x[:, [4, 3]], y)
np.testing.assert_array_equal(y.names, ["wex", "quux"])
np.testing.assert_array_equal(y.colors, ["#bbbbbb", "#aaaaaa"])
def test_automatic_color_assignment(self):
x = np.random.random((10, 3))
l = Lineage(x, names=["foo", "bar", "baz"])
gt_colors = [colors.to_hex(c) for c in _create_categorical_colors(3)]
np.testing.assert_array_equal(l.colors, gt_colors)
def test_correct_names_to_ixs(self):
x = np.random.random((10, 3))
l = Lineage(x, names=["foo", "bar", "baz"])
y = l[["baz", "bar"]]
assert y._names_to_ixs == {"baz": 0, "bar": 1}
class TestLineageMixing:
def test_overlap(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
with pytest.raises(ValueError):
_ = x[["foo, bar", "foo"]]
def test_overlap_mix(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
with pytest.raises(ValueError):
_ = x[["foo, bar", 0]]
def test_ellipsis_and_none(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
with pytest.raises(ValueError):
_ = x[["foo, bar", Lin.REST, Lin.REST]]
def test_rest(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
y = x[["foo, bar", Lin.REST]]
expected = np.c_[np.sum(x.X[:, [0, 1]], axis=1), np.sum(x.X[:, [2, 3]], axis=1)]
assert y.shape == (10, 2)
np.testing.assert_array_equal(y.X, expected)
np.testing.assert_array_equal(y.names, ["bar or foo", "rest"])
np.testing.assert_array_equal(
y.colors,
[_compute_mean_color(x.colors[:2]), _compute_mean_color(x.colors[2:])],
)
def test_no_mixing(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
y = x[["foo", Lin.REST]]
expected = np.c_[np.sum(x.X[:, [0]], axis=1), np.sum(x.X[:, [1, 2, 3]], axis=1)]
assert y.shape == (10, 2)
np.testing.assert_array_equal(y.X, expected)
np.testing.assert_array_equal(y.names, ["foo", "rest"])
np.testing.assert_array_equal(
y.colors, [x.colors[0], _compute_mean_color(x.colors[1:])]
)
def test_no_rest_or_none(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
y = x[["foo, bar"]]
expected = np.sum(x.X[:, [0, 1]], axis=1)[..., np.newaxis]
assert y.shape == (10, 1)
np.testing.assert_array_equal(y.X, expected)
np.testing.assert_array_equal(y.names, ["bar or foo"])
np.testing.assert_array_equal(y.colors, [_compute_mean_color(x.colors[:2])])
def test_rest_all(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
y = x[[Lin.REST]]
assert y.shape == (10, 1)
np.testing.assert_array_equal(y.X[:, 0], np.sum(x.X, axis=1))
np.testing.assert_array_equal(y.names, ["rest"])
def test_row_subset(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
y = x[:5, ["foo, bar"]]
expected = np.sum(x.X[:5, [0, 1]], axis=1)[..., np.newaxis]
assert y.shape == (5, 1)
np.testing.assert_array_equal(y.X, expected)
np.testing.assert_array_equal(y.names, ["bar or foo"])
np.testing.assert_array_equal(y.colors, [_compute_mean_color(x.colors[:2])])
def test_rest_no_effect(self):
names = ["foo", "bar", "baz", "quux"]
x = Lineage(np.random.random((10, 4)), names=names)
y = x[names + [Lin.REST]]
np.testing.assert_array_equal(x.X, y.X)
np.testing.assert_array_equal(x.names, y.names)
np.testing.assert_array_equal(x.colors, y.colors)
def test_others_all(self):
names = ["foo", "bar", "baz", "quux"]
x = Lineage(np.random.random((10, 4)), names=names)
y = x[[Lin.OTHERS]]
np.testing.assert_array_equal(x.X, y.X)
np.testing.assert_array_equal(x.names, y.names)
np.testing.assert_array_equal(x.colors, y.colors)
def test_others(self):
names = ["foo", "bar", "baz", "quux"]
x = Lineage(np.random.random((10, 4)), names=names)
y = x[["foo, baz"] + [Lin.OTHERS]]
expected = x[["foo, baz", "bar", "quux"]]
np.testing.assert_array_equal(y.X, expected.X)
np.testing.assert_array_equal(y.names, expected.names)
np.testing.assert_array_equal(y.colors, expected.colors)
def test_others_no_effect(self):
names = ["foo", "bar", "baz", "quux"]
x = Lineage(np.random.random((10, 4)), names=names)
y = x[names + [Lin.OTHERS]]
np.testing.assert_array_equal(x.X, y.X)
np.testing.assert_array_equal(x.names, y.names)
np.testing.assert_array_equal(x.colors, y.colors)
class TestLineageNormalization:
def test_empty_keys(self, lineage: Lineage):
with pytest.raises(ValueError):
lineage.reduce([])
def test_not_summing_to_1(self, lineage: Lineage):
lineage[0, 0] = 0
with pytest.raises(ValueError):
lineage.reduce(["foo"])
def test_invalid_key(self, lineage: Lineage):
with pytest.raises(ValueError):
lineage.reduce(keys=["non_existent"])
def test_all_names(self, lineage: Lineage):
lin = lineage.reduce(lineage.names)
np.testing.assert_array_equal(lin.X, lineage.X)
def test_invalid_mode(self, lineage: Lineage):
with pytest.raises(ValueError):
lineage.reduce(["foo", "bar"], mode="foo")
def test_invalid_dist_measure(self, lineage: Lineage):
with pytest.raises(ValueError):
lineage.reduce(["foo", "bar"], dist_measure="foo")
def test_invalid_weight_normalize(self, lineage: Lineage):
with pytest.raises(ValueError):
lineage.reduce(["foo", "bar"], normalize_weights="foo")
def test_return_weights_mode_scale(self, lineage: Lineage):
lin, weights = lineage.reduce(["foo", "bar"], mode="scale", return_weights=True)
assert isinstance(lin, Lineage)
assert weights is None
def test_return_weights_mode_dist(self, lineage: Lineage):
lin, weights = lineage.reduce(["foo", "bar"], mode="dist", return_weights=True)
assert isinstance(lin, Lineage)
assert isinstance(weights, DataFrame)
def test_normal_only_1(self, lineage: Lineage):
lin = lineage.reduce("foo")
assert lin.shape == (10, 1)
np.testing.assert_allclose(np.sum(lin, axis=1), 1.0)
np.testing.assert_array_equal(lin.names, ["foo"])
np.testing.assert_array_equal(lin.colors, lineage[["foo"]].colors)
def test_normal_run(self, lineage: Lineage):
lin = lineage.reduce(["foo", "bar"])
assert lin.shape == (10, 2)
np.testing.assert_allclose(np.sum(lin, axis=1), 1.0)
np.testing.assert_array_equal(lin.names, ["foo", "bar"])
np.testing.assert_array_equal(lin.colors, lineage[["foo", "bar"]].colors)
@mock.patch("cellrank.tools._lineage._cosine_sim")
def test_cosine(self, mocker, lineage: Lineage):
try:
_ = lineage.reduce(["foo", "bar"], dist_measure="cosine_sim", mode="dist")
except ValueError:
pass
finally:
mocker.assert_called_once()
@mock.patch("cellrank.tools._lineage._wasserstein_dist")
def test_wasserstein(self, mocker, lineage: Lineage):
try:
_ = lineage.reduce(
["foo", "bar"], dist_measure="wasserstein_dist", mode="dist"
)
except ValueError:
pass
finally:
mocker.assert_called_once()
@mock.patch("cellrank.tools._lineage._kl_div")
def test_kl_div(self, mocker, lineage: Lineage):
try:
_ = lineage.reduce(["foo", "bar"], dist_measure="kl_div", mode="dist")
except ValueError:
pass
finally:
mocker.assert_called_once()
@mock.patch("cellrank.tools._lineage._js_div")
def test_js_div(self, mocker, lineage: Lineage):
try:
_ = lineage.reduce(["foo", "bar"], dist_measure="js_div", mode="dist")
except ValueError:
pass
finally:
mocker.assert_called_once()
@mock.patch("cellrank.tools._lineage._mutual_info")
def test_mutual_info(self, mocker, lineage: Lineage):
try:
_ = lineage.reduce(["foo", "bar"], dist_measure="mutual_info", mode="dist")
except ValueError:
pass
finally:
mocker.assert_called_once()
@mock.patch("cellrank.tools._lineage._row_normalize")
def test_equal(self, mocker, lineage: Lineage):
try:
_ = lineage.reduce(["foo", "bar"], dist_measure="equal", mode="dist")
except ValueError:
pass
finally:
# should be twice, but we have extra check inside and we're mocking that does nothing
mocker.assert_called_once()
@mock.patch("cellrank.tools._lineage._row_normalize")
def test_row_normalize(self, mocker, lineage: Lineage):
try:
_ = lineage.reduce(["foo", "bar"], mode="scale")
except ValueError:
pass
finally:
mocker.assert_called_once()
@mock.patch("cellrank.tools._lineage._softmax")
def test_softmax(self, mocker, lineage: Lineage):
try:
_ = lineage.reduce(["foo", "bar"], normalize_weights="softmax", mode="dist")
except ValueError:
pass
finally:
mocker.assert_called_once()
class TestLineageSameLengthIndexing:
def test_same_names(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
y = x[np.arange(len(x)), ["foo"] * len(x)]
expected = x["foo"]
assert y.shape == (10, 1)
np.testing.assert_array_equal(y.X, expected.X)
np.testing.assert_array_equal(y.names, ["mixture"])
np.testing.assert_array_equal(y.colors, ["#000000"])
def test_same_indices(self):
x = Lineage(np.random.random((10, 4)), names=["foo", "bar", "baz", "quux"])
half = len(x) // 2
y = x[[0] * len(x), ["foo"] * half + ["bar"] * half]
expected = np.array([x[0, "foo"].X[0, 0]] * half + [x[0, "bar"].X[0, 0]] * half)
assert y.shape == (10, 1)
np.testing.assert_array_equal(y.X.squeeze(), expected)
np.testing.assert_array_equal(y.names, ["mixture"])
np.testing.assert_array_equal(y.colors, ["#000000"])
| 32.213137 | 97 | 0.520203 | 3,270 | 24,031 | 3.678899 | 0.061468 | 0.01729 | 0.093516 | 0.121363 | 0.817124 | 0.797589 | 0.77847 | 0.730756 | 0.685619 | 0.634248 | 0 | 0.04633 | 0.291332 | 24,031 | 745 | 98 | 32.256376 | 0.66007 | 0.004369 | 0 | 0.521739 | 0 | 0 | 0.06847 | 0.011788 | 0 | 0 | 0 | 0 | 0.175652 | 1 | 0.125217 | false | 0.013913 | 0.017391 | 0 | 0.151304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
ea28581c0627744c8a172baf2611aeb9c8d851f5 | 76 | py | Python | stochastic_first_order/__init__.py | Hintonthu/opt_methods | e711ca708479c6fc99b7cad8fa2a078bd8d48cfd | [
"MIT"
] | 1 | 2020-07-17T08:46:18.000Z | 2020-07-17T08:46:18.000Z | stochastic_first_order/__init__.py | Hintonthu/opt_methods | e711ca708479c6fc99b7cad8fa2a078bd8d48cfd | [
"MIT"
] | null | null | null | stochastic_first_order/__init__.py | Hintonthu/opt_methods | e711ca708479c6fc99b7cad8fa2a078bd8d48cfd | [
"MIT"
] | null | null | null | from .sgd import Sgd
from .shuffling import Shuffling
from .svrg import Svrg | 25.333333 | 32 | 0.815789 | 12 | 76 | 5.166667 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144737 | 76 | 3 | 33 | 25.333333 | 0.953846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
ea657369139bad1d2152ac7818f0e609f4c2ce4a | 169 | py | Python | basic.py | marcos8896/Python-Crash-Course-For-Beginners | 3474fd1e5527777ea83015e47af20f4bb6c02182 | [
"MIT"
] | null | null | null | basic.py | marcos8896/Python-Crash-Course-For-Beginners | 3474fd1e5527777ea83015e47af20f4bb6c02182 | [
"MIT"
] | null | null | null | basic.py | marcos8896/Python-Crash-Course-For-Beginners | 3474fd1e5527777ea83015e47af20f4bb6c02182 | [
"MIT"
] | null | null | null | #COMMENTS
"""
This is a multiline
comment.
"""
print('Hello world!')
print("""This is a multiline
print with triple quotes.""")
print('Hello'[0]) | 12.071429 | 38 | 0.585799 | 21 | 169 | 4.714286 | 0.619048 | 0.121212 | 0.141414 | 0.323232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.248521 | 169 | 14 | 39 | 12.071429 | 0.771654 | 0.218935 | 0 | 0 | 0 | 0 | 0.617391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
ea96c7964273abc49cf3df282a4bc1d9322a53ad | 99 | py | Python | docs_src/python_types/tutorial007_py39.py | ddanier/fastapi | 440d2d2d1a72867b3f38b5c7359e021cccbfea8b | [
"MIT"
] | 13 | 2022-01-13T10:02:42.000Z | 2022-03-23T20:32:14.000Z | docs_src/python_types/tutorial007_py39.py | sumit-kumar-bhowmick/fastapi | 672c55ac626b20cc6219696023cdcc5871e5141d | [
"MIT"
] | 1 | 2022-01-07T21:04:04.000Z | 2022-01-07T21:04:04.000Z | docs_src/python_types/tutorial007_py39.py | sumit-kumar-bhowmick/fastapi | 672c55ac626b20cc6219696023cdcc5871e5141d | [
"MIT"
] | 1 | 2022-01-31T05:13:32.000Z | 2022-01-31T05:13:32.000Z | def process_items(items_t: tuple[int, int, str], items_s: set[bytes]):
return items_t, items_s
| 33 | 70 | 0.727273 | 18 | 99 | 3.722222 | 0.611111 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 99 | 2 | 71 | 49.5 | 0.788235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
578f67ee874c8ee42ca2ef998289ea07d6bd4c28 | 186 | py | Python | cpgames/modules/core/towerdefense/modules/interfaces/__init__.py | Wasabii88/Games | 33262ca1958207a24e57e3532feded7e275b1dd1 | [
"MIT"
] | 1 | 2022-02-27T10:33:41.000Z | 2022-02-27T10:33:41.000Z | cpgames/modules/core/towerdefense/modules/interfaces/__init__.py | beiwei365/Games | f6499f378802d3212a08aeca761191b58714b7f0 | [
"MIT"
] | null | null | null | cpgames/modules/core/towerdefense/modules/interfaces/__init__.py | beiwei365/Games | f6499f378802d3212a08aeca761191b58714b7f0 | [
"MIT"
] | null | null | null | '''initialize'''
from .end import EndInterface
from .start import StartInterface
from .pause import PauseInterface
from .choice import ChoiceInterface
from .gaming import GamingInterface | 31 | 35 | 0.833333 | 21 | 186 | 7.380952 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 186 | 6 | 36 | 31 | 0.933735 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
57afa5afd1709ae2c69f3a768f78fc6699e050e3 | 108 | py | Python | w3resource/Lambda/Lambda02.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | w3resource/Lambda/Lambda02.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | w3resource/Lambda/Lambda02.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | def funcion_multiplicadora(n):
return lambda a: a * n
x = funcion_multiplicadora(3)(5)
print(str(x)) | 13.5 | 32 | 0.694444 | 17 | 108 | 4.294118 | 0.705882 | 0.575342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.175926 | 108 | 8 | 33 | 13.5 | 0.797753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
17adbdde694ca9e97b89e2ed247dcc1fcabe2442 | 201 | py | Python | leetcode/292-Nim-Game/Mister-Hope.py | Hope-Studio/leetcode | 3cf7c5e45819f8c4616d0cb36afe5d2e0252801e | [
"MIT"
] | 1 | 2020-11-07T08:20:36.000Z | 2020-11-07T08:20:36.000Z | leetcode/292-Nim-Game/Mister-Hope.py | Hope-Studio/leetcode | 3cf7c5e45819f8c4616d0cb36afe5d2e0252801e | [
"MIT"
] | 268 | 2020-11-07T09:40:59.000Z | 2022-03-29T00:15:56.000Z | leetcode/292-Nim-Game/Mister-Hope.py | Hope-Studio/leetcode | 3cf7c5e45819f8c4616d0cb36afe5d2e0252801e | [
"MIT"
] | 3 | 2020-11-08T14:37:10.000Z | 2021-11-14T11:10:28.000Z | # Your runtime beats 90.8 % of python3 submissions
#
# Your memory usage beats 100 % of python3 submissions(14.2 MB)
class Solution:
def canWinNim(self, n: int) -> bool:
return n % 4 != 0
| 25.125 | 63 | 0.661692 | 31 | 201 | 4.290323 | 0.806452 | 0.135338 | 0.300752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084967 | 0.238806 | 201 | 7 | 64 | 28.714286 | 0.784314 | 0.547264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
aa04d0467fc6ded151236e7aa12095944487c301 | 207 | py | Python | external/webkit/LayoutTests/http/tests/websocket/tests/hybi/echo-challenge_wsh.py | ghsecuritylab/android_platform_sony_nicki | 526381be7808e5202d7865aa10303cb5d249388a | [
"Apache-2.0"
] | 2 | 2016-05-19T10:37:25.000Z | 2019-09-18T04:37:14.000Z | external/webkit/LayoutTests/http/tests/websocket/tests/hybi/echo-challenge_wsh.py | ghsecuritylab/android_platform_sony_nicki | 526381be7808e5202d7865aa10303cb5d249388a | [
"Apache-2.0"
] | null | null | null | external/webkit/LayoutTests/http/tests/websocket/tests/hybi/echo-challenge_wsh.py | ghsecuritylab/android_platform_sony_nicki | 526381be7808e5202d7865aa10303cb5d249388a | [
"Apache-2.0"
] | 7 | 2015-09-23T09:56:29.000Z | 2022-01-20T10:36:06.000Z | from mod_pywebsocket import msgutil
def web_socket_do_extra_handshake(request):
pass
def web_socket_transfer_data(request):
msgutil.send_message(request, request.headers_in['Sec-WebSocket-Key'])
| 20.7 | 74 | 0.806763 | 29 | 207 | 5.413793 | 0.758621 | 0.076433 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 207 | 9 | 75 | 23 | 0.853261 | 0 | 0 | 0 | 0 | 0 | 0.082126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
aa09bd0190eaf6809d8ceae947975f0eca171b7b | 87 | py | Python | helloworld.py | albertonl/helloworld | 5600af1374dc3d5bbd6010d8b45e8f3c0cb9f041 | [
"MIT"
] | null | null | null | helloworld.py | albertonl/helloworld | 5600af1374dc3d5bbd6010d8b45e8f3c0cb9f041 | [
"MIT"
] | null | null | null | helloworld.py | albertonl/helloworld | 5600af1374dc3d5bbd6010d8b45e8f3c0cb9f041 | [
"MIT"
] | 1 | 2019-10-14T11:07:51.000Z | 2019-10-14T11:07:51.000Z | # Hello, world!
# Python 3.7
# Alberto Navalon Lillo, (C) 2019
print("Hello, world!")
| 14.5 | 33 | 0.655172 | 13 | 87 | 4.384615 | 0.846154 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.708333 | 0.643678 | 0 | 0 | 0 | 0 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
a4e6f6b9fa64482b21eb683f1e03f442b4a5d6bf | 394 | py | Python | trabalho/lms/views.py | Sparks-FIT/-404-----OPE- | bb429cf07aef6dfc90baa97591c05c09fb24b6d4 | [
"Apache-2.0"
] | null | null | null | trabalho/lms/views.py | Sparks-FIT/-404-----OPE- | bb429cf07aef6dfc90baa97591c05c09fb24b6d4 | [
"Apache-2.0"
] | null | null | null | trabalho/lms/views.py | Sparks-FIT/-404-----OPE- | bb429cf07aef6dfc90baa97591c05c09fb24b6d4 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def index (request):
return render(request, "index.html")
def sobre(request):
return render(request, "sobre.html")
def insc(request):
return render(request, "inscricao.html")
def prof(request):
return render(request, "professor.html")
def aluno(request):
return render(request, "aluno.html")
| 23.176471 | 45 | 0.687817 | 49 | 394 | 5.530612 | 0.408163 | 0.239852 | 0.350554 | 0.479705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190355 | 394 | 16 | 46 | 24.625 | 0.84953 | 0.058376 | 0 | 0 | 0 | 0 | 0.164773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.090909 | 0.454545 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
a4ef303b3dbc0d5350f1d2a04a66c30ee390083f | 112 | py | Python | bedhandler/domain/pools.py | ip4-team/bedhandler | 6415327fe6de1e7b2167ab29598927a71638deb3 | [
"MIT"
] | 1 | 2018-12-06T13:07:45.000Z | 2018-12-06T13:07:45.000Z | bedhandler/domain/pools.py | ip4-team/bedhandler | 6415327fe6de1e7b2167ab29598927a71638deb3 | [
"MIT"
] | 5 | 2018-10-22T14:37:52.000Z | 2020-09-24T21:01:05.000Z | bedhandler/domain/pools.py | ip4-team/bedhandler | 6415327fe6de1e7b2167ab29598927a71638deb3 | [
"MIT"
] | null | null | null | from .base import BaseList, BaseMultList
class Pool(BaseList):
pass
class Pools(BaseMultList):
pass
| 11.2 | 40 | 0.723214 | 13 | 112 | 6.230769 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205357 | 112 | 9 | 41 | 12.444444 | 0.910112 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.4 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
352b2b2341f73a8b0595585b6426fc6e0169dae2 | 309 | py | Python | custom_components/poolstation/util.py | cibernox/homeassistant-poolstation | 2bce52495f8aa2edae1ad0c7aa466b015bdf27fa | [
"MIT"
] | null | null | null | custom_components/poolstation/util.py | cibernox/homeassistant-poolstation | 2bce52495f8aa2edae1ad0c7aa466b015bdf27fa | [
"MIT"
] | null | null | null | custom_components/poolstation/util.py | cibernox/homeassistant-poolstation | 2bce52495f8aa2edae1ad0c7aa466b015bdf27fa | [
"MIT"
] | 1 | 2021-11-07T15:03:49.000Z | 2021-11-07T15:03:49.000Z | """Shared useful methods for Poolstation integration."""
from pypoolstation import Account
def create_account(session, email, password, logger=None):
"""Create a pypoolstation.Account object with the given email, password."""
return Account(session, username=email, password=password, logger=logger)
| 44.142857 | 79 | 0.776699 | 37 | 309 | 6.459459 | 0.648649 | 0.16318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122977 | 309 | 6 | 80 | 51.5 | 0.881919 | 0.38835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.666667 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 5 |
103fa72e4a915c1a0e82429669f8aea5ea5a684a | 160 | py | Python | web/util.py | wdias/transformation-aggregate_accumulative | aca21ebb2af927251dea418da0c8bda5996d4a4f | [
"Apache-2.0"
] | null | null | null | web/util.py | wdias/transformation-aggregate_accumulative | aca21ebb2af927251dea418da0c8bda5996d4a4f | [
"Apache-2.0"
] | null | null | null | web/util.py | wdias/transformation-aggregate_accumulative | aca21ebb2af927251dea418da0c8bda5996d4a4f | [
"Apache-2.0"
] | null | null | null |
HOST_URL = 'http://transformation-aggregate-accumulative.default.svc.cluster.local'
METADATA_ADAPTER_URL = 'http://adapter-metadata.default.svc.cluster.local'
| 40 | 83 | 0.8125 | 20 | 160 | 6.35 | 0.6 | 0.110236 | 0.267717 | 0.346457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04375 | 160 | 3 | 84 | 53.333333 | 0.830065 | 0 | 0 | 0 | 0 | 0 | 0.748428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
10718451774b8a49145def2b3ab29d2bedb8f3ef | 39 | py | Python | integrations/samples/kfserving/od-cifar10/cifar10od/cifar10od/__init__.py | mishinma/alibi-detect | 9cc33902ed5f278d8efbcd9f58bf6ec5496be818 | [
"Apache-2.0"
] | null | null | null | integrations/samples/kfserving/od-cifar10/cifar10od/cifar10od/__init__.py | mishinma/alibi-detect | 9cc33902ed5f278d8efbcd9f58bf6ec5496be818 | [
"Apache-2.0"
] | null | null | null | integrations/samples/kfserving/od-cifar10/cifar10od/cifar10od/__init__.py | mishinma/alibi-detect | 9cc33902ed5f278d8efbcd9f58bf6ec5496be818 | [
"Apache-2.0"
] | null | null | null | from .model import Cifar10OutlierModel
| 19.5 | 38 | 0.871795 | 4 | 39 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.102564 | 39 | 1 | 39 | 39 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
1079c48de525a0e326840c079e84504ced455faa | 119 | py | Python | py_moysklad/entities/discounts/personal_discount.py | upmarket-cc/py_moysklad | e026e611344c38f8a8d4f428781fcfb315aaaa60 | [
"MIT"
] | null | null | null | py_moysklad/entities/discounts/personal_discount.py | upmarket-cc/py_moysklad | e026e611344c38f8a8d4f428781fcfb315aaaa60 | [
"MIT"
] | null | null | null | py_moysklad/entities/discounts/personal_discount.py | upmarket-cc/py_moysklad | e026e611344c38f8a8d4f428781fcfb315aaaa60 | [
"MIT"
] | null | null | null | from py_moysklad.entities.discounts.good_discount import GoodDiscount
class PersonalDiscount(GoodDiscount):
pass
| 19.833333 | 69 | 0.840336 | 13 | 119 | 7.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109244 | 119 | 5 | 70 | 23.8 | 0.924528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 5 |
52c4031f7935b0476a70b66ec549a86abd14c8eb | 133 | py | Python | config/about/admin.py | Gregory124124/ignatovich-main | f9bc93a40ae954eaf785880e0aae133561d4e1cd | [
"MIT"
] | null | null | null | config/about/admin.py | Gregory124124/ignatovich-main | f9bc93a40ae954eaf785880e0aae133561d4e1cd | [
"MIT"
] | null | null | null | config/about/admin.py | Gregory124124/ignatovich-main | f9bc93a40ae954eaf785880e0aae133561d4e1cd | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import About, GaleryPhoto
admin.site.register(About)
admin.site.register(GaleryPhoto) | 22.166667 | 38 | 0.827068 | 18 | 133 | 6.111111 | 0.555556 | 0.163636 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090226 | 133 | 6 | 39 | 22.166667 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
52e701f35c673fbd5b8c466058928be09cc67ae5 | 105 | py | Python | neuron_mocap_live/neuron_utils.py | pnmocap/neuron_mocap_live-c4d | 47b113587a328e142f691f915040e916bd4a8877 | [
"MIT"
] | null | null | null | neuron_mocap_live/neuron_utils.py | pnmocap/neuron_mocap_live-c4d | 47b113587a328e142f691f915040e916bd4a8877 | [
"MIT"
] | 1 | 2021-12-13T10:05:07.000Z | 2021-12-14T11:06:11.000Z | neuron_mocap_live/neuron_utils.py | pnmocap/neuron_mocap_live-c4d | 47b113587a328e142f691f915040e916bd4a8877 | [
"MIT"
] | null | null | null | import os
def GetResPath(res_name):
return os.path.join(os.path.dirname(__file__), "res", res_name)
| 21 | 67 | 0.733333 | 17 | 105 | 4.176471 | 0.647059 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12381 | 105 | 4 | 68 | 26.25 | 0.771739 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 5 |
52f4b94bcb99067ed239a3e2101e96881dff4373 | 40 | py | Python | The __all__ construct/foo_1.py | kyaiooiayk/Python-Programming | b70dde24901cd24b38e2ead7c9a1b2d1808fc4b0 | [
"OLDAP-2.3"
] | null | null | null | The __all__ construct/foo_1.py | kyaiooiayk/Python-Programming | b70dde24901cd24b38e2ead7c9a1b2d1808fc4b0 | [
"OLDAP-2.3"
] | null | null | null | The __all__ construct/foo_1.py | kyaiooiayk/Python-Programming | b70dde24901cd24b38e2ead7c9a1b2d1808fc4b0 | [
"OLDAP-2.3"
] | null | null | null | waz = 5
bar = 10
def baz(): return 'baz' | 13.333333 | 23 | 0.6 | 8 | 40 | 3 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0.225 | 40 | 3 | 23 | 13.333333 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.333333 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
5e22c4072694d79a345baef60eb562b372cad57f | 139 | py | Python | mmhuman3d/models/backbones/__init__.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 472 | 2021-12-03T03:12:55.000Z | 2022-03-31T01:33:13.000Z | mmhuman3d/models/backbones/__init__.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 127 | 2021-12-03T05:00:14.000Z | 2022-03-31T13:47:33.000Z | mmhuman3d/models/backbones/__init__.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 37 | 2021-12-03T03:23:22.000Z | 2022-03-31T08:41:58.000Z | from .hrnet import PoseHighResolutionNet
from .resnet import ResNet, ResNetV1d
__all__ = ['ResNet', 'ResNetV1d', 'PoseHighResolutionNet']
| 27.8 | 58 | 0.791367 | 13 | 139 | 8.153846 | 0.538462 | 0.283019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.107914 | 139 | 4 | 59 | 34.75 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.258993 | 0.151079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
5e3acf98507aa62159f1b1d31ba0931899089cd3 | 96 | py | Python | venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/hashes.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 1 | 2021-11-07T22:40:27.000Z | 2021-11-07T22:40:27.000Z | venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/hashes.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/hashes.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/21/54/69/f2f97a8c39cb12ccb8bd7c248bf8a75f897a577f5dc7abc8adfbc8af79 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.354167 | 0 | 96 | 1 | 96 | 96 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
eae7574cc456e5fa9b40f28e5fe370a1447951b5 | 79 | py | Python | ejercicio 2.py | claudiaalozano/Warm-up | 0988534ed8d651d35079b58ab5eb7ae0e09d993b | [
"Apache-2.0"
] | null | null | null | ejercicio 2.py | claudiaalozano/Warm-up | 0988534ed8d651d35079b58ab5eb7ae0e09d993b | [
"Apache-2.0"
] | null | null | null | ejercicio 2.py | claudiaalozano/Warm-up | 0988534ed8d651d35079b58ab5eb7ae0e09d993b | [
"Apache-2.0"
] | null | null | null | import colorama
from colorama import init, Fore
print(Fore.GREEN+"Hola mundo") | 26.333333 | 32 | 0.797468 | 12 | 79 | 5.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113924 | 79 | 3 | 33 | 26.333333 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
d8212cf5d3a1f8816b0769604f63b94c779ba592 | 62 | py | Python | first/Higher-order function.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | first/Higher-order function.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | first/Higher-order function.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | def add(x, y, f):
return f(x) + f(y)
print(add(5,-6,abs)) | 15.5 | 22 | 0.516129 | 15 | 62 | 2.133333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.209677 | 62 | 4 | 23 | 15.5 | 0.612245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
d829d1a09e5eb95f8265c60930e572e650dff3b8 | 42,757 | py | Python | settings.sample.py | mirror-weekly/tr-projects-rest | 89053c2a48b8995301e45294b9f3611bc5337555 | [
"MIT"
] | 2 | 2016-10-04T18:01:09.000Z | 2020-03-29T15:29:24.000Z | settings.sample.py | mirror-weekly/tr-projects-rest | 89053c2a48b8995301e45294b9f3611bc5337555 | [
"MIT"
] | 1 | 2019-11-15T08:23:15.000Z | 2019-11-15T08:23:15.000Z | settings.sample.py | mirror-weekly/tr-projects-rest | 89053c2a48b8995301e45294b9f3611bc5337555 | [
"MIT"
] | 7 | 2016-10-04T18:02:02.000Z | 2021-06-11T08:32:30.000Z | # MONGO DATABASE SETTINGS FOR SAMPLE
DATA_FORMAT = "a, %d %b %Y %H:%M:%S GMT+8"
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
MONGO_DBNAME = 'keystone-test'
# The assets url is for production
ASSETS_URL = 'https://www.mirrormedia.com.tw/'
GCS_URL = 'https://storage.googleapis.com/mirrormedia-dev/'
ENV = 'dev'
# ALLOW ACTIONS
DEBUG = False
ITEM_METHODS = ['GET', 'PATCH', 'PUT', 'DELETE'] if DEBUG else ['GET']
slug_schema = {
'slug': {
'type': 'string',
},
'isCampaign': {
'type': 'boolean',
},
}
listing_schema = {
'name': {
'type': 'string',
},
'slug': {
'type': 'string',
},
'title': {
'type': 'string',
},
'subtitle': {
'type': 'string',
},
'style': {
'type': 'string',
},
'brief': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'sections': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'isFeatured': {
'type': 'boolean',
},
'isAdvertised': {
'type': 'boolean',
},
'isAdult': {
'type': 'boolean',
},
'publishedDate': {
'type': 'datetime',
},
'isCampaign': {
'type': 'boolean',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'categories': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'postcategories',
'field': '_id',
'embeddable': True
},
},
}
}
partner_schema = {
'name': {
'type': 'string',
},
'display': {
'type': 'string',
},
'website': {
'type': 'string',
},
'public': {
'type': 'boolean',
},
}
external_schema = {
'name': {
'type': 'string',
},
'title': {
'type': 'string',
},
'subtitle': {
'type': 'string',
},
'brief': {
'type': 'string',
},
'content': {
'type': 'string',
},
'partner': {
'type': 'objectid',
'data_relation': {
'resource': 'partners',
'field': '_id',
'embeddable': True
},
},
'extend_byline': {
'type': 'string',
},
'publishedDate': {
'type': 'datetime',
},
'thumb': {
'type': 'string',
},
'source': {
'type': 'string',
},
}
meta_schema = {
'name': {
'type': 'string',
},
'slug': {
'type': 'string',
},
'title': {
'type': 'string',
},
'subtitle': {
'type': 'string',
},
'style': {
'type': 'string',
},
'brief': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'tags': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'tags',
'field': '_id',
'embeddable': True
},
},
},
'sections': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
'topics': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'topics',
'field': '_id',
'embeddable': True
},
},
},
'writers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': 'name',
'embeddable': True
},
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'categories': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'postcategories',
'field': '_id',
'embeddable': True
},
},
},
'relateds': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'meta',
'field': '_id',
'embeddable': True
},
},
},
'isFeatured': {
'type': 'boolean',
},
'isAdult': {
'type': 'boolean',
},
'isAdvertised': {
'type': 'boolean',
},
'publishedDate': {
'type': 'datetime',
},
'og_description': {
'type': 'string',
},
'isCampaign': {
'type': 'boolean',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
}
}
contact_schema = {
'name': {
'type': 'string',
},
'email': {
'type': 'string',
'regex': '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'
},
'homepage': {
'type': 'string',
},
'facebook': {
'type': 'string',
},
'twitter': {
'type': 'string',
},
'instantgram': {
'type': 'string',
},
'bio': {
'type': 'string',
},
'image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
}
event_schema = {
'name': {
'type': 'string',
},
'state': {
'type': 'string',
},
'eventType': {
'type': 'string',
},
'startDate': {
'type': 'datetime',
},
'endDate': {
'type': 'datetime',
},
'embed': {
'type': 'string',
},
'video': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'isFeatured': {
'type': 'boolean',
},
'link': {
'type': 'string',
},
'sections': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
},
}
node_schema = {
'name': {
'type': 'string',
},
'subtitle': {
'type': 'string',
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'heroCaption': {
'type': 'string',
},
'state': {
'type': 'string',
},
'nodeDate': {
'type': 'datetime',
},
'createTime': {
'type': 'datetime',
},
'updatedAt': {
'type': 'datetime',
},
'activity': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'activities',
'field': '_id',
'embeddable': True
},
},
},
'brief': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'content': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'og_title': {
'type': 'string',
},
'isFeatured': {
'type': 'boolean',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
}
post_schema = {
'name': {
'type': 'string',
},
'slug': {
'type': 'string',
},
'title': {
'type': 'string',
},
'subtitle': {
'type': 'string',
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'heroCaption': {
'type': 'string',
},
'state': {
'type': 'string',
},
'albums': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'albums',
'field': '_id',
'embeddable': True
},
},
},
'sections': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
},
'writers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'photographers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'camera_man': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'designers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'engineers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'publishedDate': {
'type': 'datetime',
},
'createTime': {
'type': 'datetime',
},
'updatedAt': {
'type': 'datetime',
},
'categories': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'postcategories',
'field': '_id',
'embeddable': True
},
},
},
'topics': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'topics',
'field': '_id',
'embeddable': True
},
},
},
'topics_ref': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'meta',
'field': 'topics',
'embeddable': True
},
},
},
'tags': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'tags',
'field': '_id',
'embeddable': True
},
},
},
'style': {
'type': 'string',
},
'brief': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'content': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'relateds': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'meta',
'field': '_id',
'embeddable': True
},
},
},
'extend_byline': {
'type': 'string',
},
'og_title': {
'type': 'string',
},
'isFeatured': {
'type': 'boolean',
},
'isAdvertised': {
'type': 'boolean',
},
'hiddenAdvertised': {
'type': 'boolean',
},
'isAdult': {
'type': 'boolean',
},
'lockJS': {
'type': 'boolean',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'device': {
'type': 'string',
},
'adTrace': {
'type': 'string',
},
'isCampaign': {
'type': 'boolean',
},
}
readr_schema = {
'name': {
'type': 'string',
},
'slug': {
'type': 'string',
},
'title': {
'type': 'string',
},
'subtitle': {
'type': 'string',
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'heroCaption': {
'type': 'string',
},
'state': {
'type': 'string',
},
'albums': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'albums',
'field': '_id',
'embeddable': True
},
},
},
'sections': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
},
'writers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'photographers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'camera_man': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'designers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'engineers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'publishedDate': {
'type': 'datetime',
},
'createTime': {
'type': 'datetime',
},
'updatedAt': {
'type': 'datetime',
},
'categories': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'postcategories',
'field': '_id',
'embeddable': True
},
},
},
'topics': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'topics',
'field': '_id',
'embeddable': True
},
},
},
'topics_ref': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'meta',
'field': 'topics',
'embeddable': True
},
},
},
'tags': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'tags',
'field': '_id',
'embeddable': True
},
},
},
'style': {
'type': 'string',
},
'brief': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'content': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'relateds': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'readrs',
'field': '_id',
'embeddable': True
},
},
},
'extend_byline': {
'type': 'string',
},
'og_title': {
'type': 'string',
},
'isFeatured': {
'type': 'boolean',
},
'isAdvertised': {
'type': 'boolean',
},
'hiddenAdvertised': {
'type': 'boolean',
},
'isAdult': {
'type': 'boolean',
},
'lockJS': {
'type': 'boolean',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'device': {
'type': 'string',
},
'adTrace': {
'type': 'string',
},
'isCampaign': {
'type': 'boolean',
},
}
album_schema = {
'name': {
'type': 'string',
},
'title': {
'type': 'string',
},
'leading': {
'type': 'string',
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'writers': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'state': {
'type': 'string',
},
'sections': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
},
'publishedDate': {
'type': 'datetime',
},
'createTime': {
'type': 'datetime',
},
'updatedAt': {
'type': 'datetime',
},
'categories': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'postcategories',
'field': '_id',
'embeddable': True
},
},
},
'tags': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'tags',
'field': '_id',
'embeddable': True
},
},
},
'style': {
'type': 'string',
},
'brief': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'og_title': {
'type': 'string',
},
'isFeatured': {
'type': 'boolean',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
}
sections_schema = {
'title': {
'type': 'string',
},
'name': {
'type': 'string',
},
'type': {
'type': 'string',
'allowed': ['articles', 'file', 'link']
},
'description': {
'type': 'string',
},
'isFeatured': {
'type': 'boolean',
},
'image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'categories': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'postcategories',
'field': '_id',
'embeddable': True
},
},
},
'extend_cats': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'postcategories',
'field': '_id',
'embeddable': True
},
},
},
'topics': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'topics',
'field': '_id',
'embeddable': True
},
},
},
'style': {
'type': 'string',
},
'og_title': {
'type': 'string',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'css': {
'type': 'string',
},
'javascript': {
'type': 'string',
},
'twitter': {
'type': 'string',
},
'sortOrder': {
'typr': 'integer',
}
}
videos_schema = {
'title': {
'type': 'string',
},
'description': {
'type': 'string',
},
'coverPhoto': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'sections': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
},
'feed': {
'type': 'boolean',
},
'categories': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'postcategories',
'field': '_id',
'embeddable': True
},
},
},
'video': {
'type': 'dict',
'schema': {
'filetype': {
'type': 'string',
},
'filename': {
'type': 'string',
},
'originalname': {
'type': 'string',
},
'path': {
'type': 'string',
},
'projectId': {
'type': 'string',
},
'size': {
'type': 'string',
},
'url': {
'type': 'string',
},
},
},
'createTime': {
'type': 'datetime',
},
'relateds': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'meta',
'field': '_id',
'embeddable': True
},
},
},
'updatedAt': {
'type': 'datetime',
},
'publishedDate': {
'type': 'datetime',
},
'state': {
'type': 'string',
},
'tags': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'tags',
'field': '_id',
'embeddable': True
},
},
},
}
activities_schema = {
'name': {
'type': 'string',
},
'brief': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'heroCaption': {
'type': 'string',
},
'topics': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'topics',
'field': '_id',
'embeddable': True
},
},
},
'og_title': {
'type': 'string',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
}
audiopromotions_schema = {
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'href': {
'type': 'string',
}
}
postcategories_schema = {
'name': {
'type': 'string',
},
'title': {
'type': 'string',
},
'isFeatured': {
'type': 'boolean',
},
'brief': {
'type': 'dict',
'schema': {
"html": {
"type": "string",
},
},
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'heroCaption': {
'type': 'string',
},
'og_title': {
'type': 'string',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'isCampaign': {
'type': 'boolean',
},
'style': {
'type': 'string',
},
'css': {
'type': 'string',
},
'javascript': {
'type': 'string',
}
}
audios_schema = {
'title': {
'type': 'string',
},
'description': {
'type': 'string',
},
'audio': {
'type': 'dict',
'schema': {
'filetype': {
'type': 'string',
},
'filename': {
'type': 'string',
},
'originalname': {
'type': 'string',
},
'path': {
'type': 'string',
},
'projectId': {
'type': 'string',
},
'size': {
'type': 'string',
},
'url': {
'type': 'string',
},
},
},
'coverPhoto': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'tags': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'tags',
'field': '_id',
'embeddable': True
},
},
},
}
tags_schema = {
'name': {
'type': 'string',
},
'leading': {
'type': 'string',
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'isFeatured': {
'type': 'boolean',
},
'og_title': {
'type': 'string',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'style': {
'type': 'string',
},
'css': {
'type': 'string',
},
'javascript': {
'type': 'string',
},
'sortOrder': {
'typr': 'integer',
},
'sections': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
},
}
topics_schema = {
'name': {
'type': 'string',
},
'subtitle': {
'type': 'string',
},
'leading': {
'type': 'string',
},
'type': {
'type': 'string',
},
'brief': {
'type': 'string',
},
'source': {
'type': 'string',
},
'state': {
'type': 'string',
},
'sort': {
'type': 'string',
},
'heroVideo': {
'type': 'objectid',
'data_relation': {
'resource': 'videos',
'field': '_id',
'embeddable': True
},
},
'sections': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'sections',
'field': '_id',
'embeddable': True
},
},
},
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'isFeatured': {
'type': 'boolean',
},
'og_title': {
'type': 'string',
},
'og_description': {
'type': 'string',
},
'og_image': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'style': {
'type': 'string',
},
'javascript': {
'type': 'string',
},
'tags': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'tags',
'field': '_id',
'embeddable': True
},
},
},
'dfp': {
'type': 'string',
},
'mobile_dfp': {
'type': 'string',
},
'sortOrder': {
'typr': 'integer',
}
}
editorchoices_schema = {
'choices': {
'type': 'objectid',
'data_relation': {
'resource': 'listing',
'field': '_id',
'embeddable': True
},
},
'sortOrder': {
'typr': 'integer',
},
}
watchbrand_schema = {
'name': {
'type': 'string',
},
}
watchfunction_schema = {
'name': {
'type': 'string',
},
}
watch_schema = {
'brand': {
'type': 'objectid',
'data_relation': {
'resource': 'watchbrands',
'field': '_id',
'embeddable': True
},
},
'watchfunction': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'watchfunctions',
'field': '_id',
'embeddable': True
},
},
},
'name': {
'type': 'string',
},
'type': {
'type': 'boolean',
},
'sex': {
'type': 'string',
},
'price': {
'type': 'string',
},
'movement': {
'type': 'string',
},
'power': {
'type': 'string',
},
'material': {
'type': 'string',
},
'waterproof': {
'type': 'string',
},
'watchImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'relateds': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'meta',
'field': '_id',
'embeddable': True
},
},
},
'content': {
'type': 'string',
},
}
choices_schema = {
'pickDate': {
'type': 'string',
},
'isPublished': {
'type': 'boolean',
},
'choices': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'meta',
'field': '_id',
'embeddable': True
},
},
},
}
image_schema = {
'photographer': {
'type': 'objectid',
'data_relation': {
'resource': 'contacts',
'field': '_id',
'embeddable': True
},
},
'description': {
'type': 'string',
},
'sale': {
'type': 'Boolean',
},
'topics': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'topics',
'field': '_id',
'embeddable': True
},
},
},
'tags': {
'type': 'list',
'schema': {
'type': 'objectid',
'data_relation': {
'resource': 'tags',
'field': '_id',
'embeddable': True
},
},
},
'image': {
'type': 'dict',
'schema': {
'artist': {
'type': 'string',
},
'description': {
'type': 'string',
},
'filename': {
'type': 'string',
},
'filetype': {
'type': 'string',
},
'height': {
'type': 'number',
},
'width': {
'type': 'number',
},
'size': {
'type': 'number',
},
'url': {
'type': 'string',
}
},
},
'createTime': {
'type': 'datetime',
},
'keywords': {
'type': 'string',
},
}
posts = {
'item_title': 'post',
'additional_lookup': {
'url': 'regex("[\w-]+")',
'default_sort': [('publishedDate', -1)],
'field': 'slug'
},
'datasource': {
'source': 'posts',
'filter': { '$or': [ { 'state': 'published' }, { 'state': 'invisible' } ] },
},
'resource_methods': ['GET'],
'embedded_fields': ['writers','photographers','camera_man','designers','engineers','heroImage', 'heroVideo', 'topics', 'sections', 'categories', 'tags', 'og_image', 'relateds'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': post_schema
}
readrs = {
'item_title': 'readr',
'additional_lookup': {
'url': 'regex("[\w-]+")',
'default_sort': [('publishedDate', -1)],
'field': 'slug'
},
'datasource': {
'source': 'readrs',
'filter': { '$or': [ { 'state': 'published' }, { 'state': 'invisible' } ] },
},
'resource_methods': ['GET'],
'embedded_fields': ['writers','photographers','camera_man','designers','engineers','heroImage', 'heroVideo', 'topics', 'sections', 'categories', 'tags', 'og_image', 'relateds'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': readr_schema
}
albums = {
'item_title': 'album',
'additional_lookup': {
'url': 'regex("[\w-]+")',
'default_sort': [('publishedDate', -1)],
'field': 'name'
},
'datasource': {
'source': 'albums',
'filter': { '$or': [ { 'state': 'published' }, { 'state': 'invisible' } ] },
},
'resource_methods': ['GET'],
'embedded_fields': ['heroImage', 'heroVideo', 'sections', 'writers', 'categories', 'tags', 'og_image'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': album_schema
}
nodes = {
'item_title': 'node',
'datasource': {
'source': 'nodes',
'filter': {'state': 'published'},
},
'resource_methods': ['GET'],
'embedded_fields': ['heroImage', 'heroVideo', 'activity', 'og_image'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': node_schema
}
externals = {
'item_title': 'external',
'datasource': {
'source': 'externals',
'filter': {'state': 'published'},
},
'resource_methods': ['GET'],
'embedded_fields': ['partner'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': external_schema
}
partners = {
'item_title': 'partners',
'datasource': {
'source': 'partners',
},
'resource_methods': ['GET'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': partner_schema
}
slug = {
'item_title': 'slug',
'datasource': {
'source': 'posts',
'filter': { '$and': [ { 'state': 'published' }, { 'style': { '$nin': ['campaign'] } } ] },
},
'resource_methods': ['GET'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': slug_schema
}
event = {
'item_title': 'event',
'datasource': {
'source': 'events',
'filter': {'state': 'published'},
'default_sort': [('startDate', -1)],
},
'resource_methods': ['GET'],
'embedded_fields': ['image','sections', 'video'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': event_schema
}
listing = {
'item_title': 'listing',
'additional_lookup': {
'url': 'regex("[\w-]+")',
'default_sort': [('publishedDate', -1)],
'field': 'slug'
},
'datasource': {
'source': 'posts',
'filter': { '$and': [ { 'state': 'published' }, { 'style': { '$nin': ['campaign' ] } } ] },
},
'resource_methods': ['GET'],
'embedded_fields': ['heroImage', 'sections', 'writers', 'og_image', 'heroVideo','categories'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': listing_schema
}
meta = {
'item_title': 'meta',
'additional_lookup': {
'url': 'regex("[\w-]+")',
'default_sort': [('publishedDate', -1)],
'field': 'slug'
},
'datasource': {
'source': 'posts',
'filter': { '$and': [ { 'state': 'published' }, { 'style': { '$nin': ['campaign'] } } ] },
},
'resource_methods': ['GET'],
'embedded_fields': ['heroImage','writers', 'topics','sections', 'categories','og_image', 'heroVideo', 'relateds', 'tags'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': meta_schema
}
drafts = {
'item_title': 'draft',
'additional_lookup': {
'url': 'regex("[\w-]+")',
'default_sort': [('publishedDate', -1)],
'field': 'slug'
},
'datasource': {
'source': 'posts',
# 'filter': {'state': 'draft'},
},
'resource_methods': ['GET'],
'embedded_fields': ['writers','photographers','designers','engineers','heroImage', 'heroVideo', 'topics', 'sections', 'categories', 'tags', 'og_image'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': post_schema
}
watchbrands = {
'item_title': 'watchbrand',
'datasource': {
'source': 'watchbrands',
},
'resource_methods': ['GET'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': watchbrand_schema
}
watchfunctions = {
'item_title': 'watchfunction',
'datasource': {
'source': 'watchfunctions',
},
'resource_methods': ['GET'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': watchfunction_schema
}
watches = {
'item_title': 'watch',
'datasource': {
'source': 'watches',
'default_sort': [('sortOrder', 1)],
# 'filter': {'state': 'draft'},
},
'resource_methods': ['GET'],
'embedded_fields': ['brand','watchfunction','watchImage', 'relateds'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': watch_schema
}
editorchoices = {
'item_title': 'editorchoice',
'datasource': {
'source': 'editorchoices',
'default_sort': [('sortOrder', 1)],
},
'embedded_fields': ['choices'],
'resource_methods': ['GET'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': editorchoices_schema
}
choices = {
'item_title': 'choice',
'datasource': {
'source': 'choices',
'filter': {'isPublished': True},
},
'embedded_fields': ['choices'],
'resource_methods': ['GET'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': choices_schema
}
topics = {
'item_title': 'topic',
'additional_lookup': {
'url': 'regex(".+")',
'field': 'name'
},
'datasource': {
'source': 'topics',
'filter': {'state': 'published'},
'default_sort': [('sortOrder', 1)],
},
'resource_methods': ['GET'],
'embedded_fields': ['heroImage', 'heroVideo', 'og_image'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': topics_schema
}
tags = {
'item_title': 'tag',
'additional_lookup': {
'url': 'regex(".+")',
'field': 'name'
},
'resource_methods': ['GET'],
'embedded_fields': ['heroImage', 'heroVideo', 'og_image', 'sections'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': tags_schema
}
contacts = {
'item_title': 'contact',
'additional_lookup': {
'url': 'regex(".+")',
'field': 'name'
},
'resource_methods': ['GET'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'embedded_fields': ['image'],
'schema': contact_schema
}
audiopromotions = {
'item_title': 'audiopromotions',
'resource_methods': ['GET'],
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'embedded_fields': ['heroImage'],
'schema': audiopromotions_schema,
}
postcategories = {
'item_title': 'postcategory',
'additional_lookup': {
'url': 'regex(".+")',
'field': 'name'
},
'resource_methods': ['GET'],
'heroImage': {
'type': 'objectid',
'data_relation': {
'resource': 'images',
'field': '_id',
'embeddable': True
},
},
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'embedded_fields': ['heroImage'],
'schema': postcategories_schema,
}
activities = {
'item_title': 'activity',
'resource_methods': ['GET'],
'embedded_fields': ['heroImage', 'heroVideo', 'topics'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': activities_schema,
}
sections = {
'item_title': 'section',
'additional_lookup': {
'url': 'regex(".+")',
'field': 'name'
},
'resource_methods': ['GET'],
'embedded_fields': ['categories', 'heroImage', 'image', 'extend_cats', 'topics'],
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'allow_unknown': False,
'schema': sections_schema,
}
images = {
'resource_methods': ['GET'],
'datasource': {'default_sort': [('createTime', -1)]},
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'schema': image_schema,
}
audios = {
'resource_methods': ['GET'],
'cache_control': 'max-age=1500,must-revalidate',
'embedded_fields': ['coverPhoto'],
'cache_expires': 1500,
'schema': audios_schema,
}
videos = {
'resource_methods': ['GET'],
'datasource': {
'source': 'videos',
'filter': {'state': 'published'},
},
'cache_control': 'max-age=1500,must-revalidate',
'cache_expires': 1500,
'embedded_fields': ['categories', 'sections', 'tags', 'relateds', 'heroImage'],
'schema': videos_schema,
}
DOMAIN = {
'posts': posts,
'readrs': readrs,
'albums': albums,
'drafts': drafts,
'meta': meta,
'listing': listing,
'slug': slug,
'tags': tags,
'choices': choices,
'editorchoices': editorchoices,
'contacts': contacts,
'topics': topics,
'nodes': nodes,
'postcategories': postcategories,
'audiopromotions': audiopromotions,
'activities': activities,
'images': images,
'audios': audios,
'videos': videos,
'event': event,
'sections': sections,
'watches': watches,
'watchbrands': watchbrands,
'watchfunctions': watchfunctions,
'partners': partners,
'externals': externals,
}
XML = False
IF_MATCH = False
X_DOMAINS = '*'
X_HEADERS = ['Content-Type']
PAGINATION_DEFAULT = 10
| 19.347059 | 181 | 0.451107 | 3,205 | 42,757 | 5.868331 | 0.074571 | 0.087197 | 0.085921 | 0.128881 | 0.799553 | 0.761272 | 0.750106 | 0.731763 | 0.708103 | 0.695768 | 0 | 0.008096 | 0.326917 | 42,757 | 2,209 | 182 | 19.355817 | 0.645436 | 0.003298 | 0 | 0.623316 | 0 | 0.000464 | 0.411101 | 0.018212 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
dc2075b09db87423fb496d14368aa1a4e0ab721e | 171 | py | Python | games/admin.py | nathancoulson/boxing-app-djangox | c638b92cf770f2fb1d7636465e8161dbec853802 | [
"MIT"
] | null | null | null | games/admin.py | nathancoulson/boxing-app-djangox | c638b92cf770f2fb1d7636465e8161dbec853802 | [
"MIT"
] | null | null | null | games/admin.py | nathancoulson/boxing-app-djangox | c638b92cf770f2fb1d7636465e8161dbec853802 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Fight
from .models import Game
admin.site.register(Fight)
admin.site.register(Game)
| 14.25 | 32 | 0.783626 | 25 | 171 | 5.36 | 0.48 | 0.149254 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 171 | 11 | 33 | 15.545455 | 0.911565 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
dc3bf5fb571aa3bf32c52f2772c0d7bf49dd1a10 | 12,355 | py | Python | app.py | AliRZ-02/deltahacks2022 | 4604c5b4def948d9ef70c8695b48c60ba111b982 | [
"MIT"
] | null | null | null | app.py | AliRZ-02/deltahacks2022 | 4604c5b4def948d9ef70c8695b48c60ba111b982 | [
"MIT"
] | null | null | null | app.py | AliRZ-02/deltahacks2022 | 4604c5b4def948d9ef70c8695b48c60ba111b982 | [
"MIT"
] | null | null | null | import os
import pathlib
from datetime import datetime
from flask import Flask, render_template, request, redirect
from difflib import get_close_matches
from flask_sqlalchemy import SQLAlchemy
from data_models import Course, UserData
from chances import parse_user_info, get_missing_courses, get_ec_level
from typing import List
# Creating the Flask App and Configuring the Database through SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']='sqlite:///requests.db'
db = SQLAlchemy(app)
class UserReviews(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(200), nullable=False)
uni = db.Column(db.String(200), nullable=False)
program = db.Column(db.String(200), nullable=False)
course_1 = db.Column(db.String(200), nullable=False)
course_2 = db.Column(db.String(200), nullable=False)
course_3 = db.Column(db.String(200), nullable=False)
course_4 = db.Column(db.String(200), nullable=False)
course_5 = db.Column(db.String(200), nullable=False)
course_6 = db.Column(db.String(200), nullable=False)
course_1_g = db.Column(db.String(200), nullable=False)
course_2_g = db.Column(db.String(200), nullable=False)
course_3_g = db.Column(db.String(200), nullable=False)
course_4_g = db.Column(db.String(200), nullable=False)
course_5_g = db.Column(db.String(200), nullable=False)
course_6_g = db.Column(db.String(200), nullable=False)
coop = db.Column(db.Boolean, nullable=False)
ap = db.Column(db.Boolean, nullable=False)
ib = db.Column(db.Boolean, nullable=False)
ec_level = db.Column(db.Text, nullable=True)
accepted = db.Column(db.Boolean, nullable=False)
date_created = db.Column(db.DateTime, default=datetime.utcnow)
class UserOUT(db.Model):
id = db.Column(db.Integer, primary_key=True)
uni = db.Column(db.String(200), nullable=False)
program = db.Column(db.String(200), nullable=False)
course_1 = db.Column(db.String(200), nullable=False)
course_2 = db.Column(db.String(200), nullable=False)
course_3 = db.Column(db.String(200), nullable=False)
course_4 = db.Column(db.String(200), nullable=False)
course_5 = db.Column(db.String(200), nullable=False)
course_6 = db.Column(db.String(200), nullable=False)
course_1_g = db.Column(db.String(200), nullable=False)
course_2_g = db.Column(db.String(200), nullable=False)
course_3_g = db.Column(db.String(200), nullable=False)
course_4_g = db.Column(db.String(200), nullable=False)
course_5_g = db.Column(db.String(200), nullable=False)
course_6_g = db.Column(db.String(200), nullable=False)
coop = db.Column(db.Boolean, nullable=False)
ap = db.Column(db.Boolean, nullable=False)
ib = db.Column(db.Boolean, nullable=False)
ecs = db.Column(db.Text, nullable=True)
chance = db.Column(db.String, nullable=False)
missing_courses = db.Column(db.String, nullable=True)
ec_level = db.Column(db.String, nullable=False)
date_created = db.Column(db.DateTime, default=datetime.utcnow)
def __repr__(self):
return '<Task %r>' % self.id
def get_program_list() -> List[str]:
path = pathlib.Path('programs')
files = os.listdir(f'{path}')
return [file.split('.json')[0].strip() for file in files]
def reduce_db():
users = UserOUT.query.order_by(UserOUT.date_created).all()
for user in users:
db.session.delete(user)
db.session.commit()
def remove_consecutive_duplicates(s):
if len(s)<2:
return s
if s[0] == '_' and s[0]==s[1]:
return remove_consecutive_duplicates(s[1:])
else:
return s[0]+remove_consecutive_duplicates(s[1:])
def legal_name(name: str) -> str:
valids = list("abcdefghijklmnopqrstuvwxyz1234567890")
name_to_return = []
for char in name:
if char in valids:
name_to_return.append(char)
else:
name_to_return.append('_')
name = "".join(name_to_return)
return remove_consecutive_duplicates(name)
# Main Website URL - Uses index.html
@app.route('/', methods=['GET', 'POST'])
def index():
if request.method == 'POST':
uni = request.form.get('school', 'McMaster University')
given_program = request.form.get('program', 'Arts & Science')
program = legal_name(given_program.lower())
programs = get_program_list()
closest_program = str(get_close_matches(program, programs, n=5)[0])
course_1 = Course(request.form.get('course_1', 'NONE'), int("80" if request.form.get('course_1_grade', 80) is "" else request.form.get('course_1_grade', 80)))
course_2 = Course(request.form.get('course_2', 'NONE'), int("80" if request.form.get('course_2_grade', 80) is "" else request.form.get('course_2_grade', 80)))
course_3 = Course(request.form.get('course_3', 'NONE'), int("80" if request.form.get('course_3_grade', 80) is "" else request.form.get('course_3_grade', 80)))
course_4 = Course(request.form.get('course_4', 'NONE'), int("80" if request.form.get('course_4_grade', 80) is "" else request.form.get('course_4_grade', 80)))
course_5 = Course(request.form.get('course_5', 'NONE'), int("80" if request.form.get('course_5_grade', 80) is "" else request.form.get('course_5_grade', 80)))
course_6 = Course(request.form.get('course_6', 'NONE'), int("80" if request.form.get('course_6_grade', 80) is "" else request.form.get('course_6_grade', 80)))
courses = [course_1, course_2, course_3, course_4, course_5, course_6]
non_empty_courses = [course for course in courses if course.name != 'NONE']
ecs = [ec.strip() for ec in request.form.get('extra_curriculars', '').split(',')]
ib = True if request.form.get('ib') == 'YES' else False
ap = True if request.form.get('ap') == 'YES' else False
coop = True if request.form.get('coop') == 'YES' else False
data = UserData(non_empty_courses, ecs, coop, closest_program, ap, ib)
user_chances = parse_user_info(data)
missing_courses = get_missing_courses(data.program_of_choice, data.courses)
if len(missing_courses) > 6:
missing_courses = missing_courses[:6]
if len(missing_courses) == 0: missing_courses = ['NONE']
ec_level = get_ec_level(data.extra_curriculars)
course_1_name = course_1.name if course_1.name != 'NONE' else 'N/A'
course_1_grade = course_1.grade if course_1_name != 'N/A' else 0
course_2_name = course_2.name if course_2.name != 'NONE' else 'N/A'
course_2_grade = course_2.grade if course_2_name != 'N/A' else 0
course_3_name = course_3.name if course_3.name != 'NONE' else 'N/A'
course_3_grade = course_3.grade if course_3_name != 'N/A' else 0
course_4_name = course_4.name if course_4.name != 'NONE' else 'N/A'
course_4_grade = course_4.grade if course_4_name != 'N/A' else 0
course_5_name = course_5.name if course_5.name != 'NONE' else 'N/A'
course_5_grade = course_5.grade if course_5_name != 'N/A' else 0
course_6_name = course_6.name if course_6.name != 'NONE' else 'N/A'
course_6_grade = course_6.grade if course_6_name != 'N/A' else 0
returnData = UserOUT(uni=uni, program=given_program, course_1=course_1_name, course_1_g=course_1_grade, course_2=course_2_name,
course_2_g=course_2_grade, course_3=course_3_name, course_3_g=course_3_grade,
course_4=course_4_name, course_4_g=course_4_grade, course_5=course_5_name,
course_5_g=course_5_grade, course_6=course_6_name, course_6_g=course_6_grade,
coop=coop, ap=ap, ib=ib, ecs=", ".join(ecs),
chance=user_chances, missing_courses=", ".join(missing_courses), ec_level=ec_level)
db.session.add(returnData)
db.session.commit()
return redirect('/results')
else:
userouts = UserOUT.query.order_by(UserOUT.date_created.desc()).all()
return render_template('index.html', userouts=userouts)
@app.route('/results', methods=['GET', 'POST'])
def about():
return index()
@app.route('/reviews', methods=['GET', 'POST'])
def add_review():
if request.method == 'POST':
name = request.form.get('name', 'User')
uni = request.form.get('school', 'McMaster University')
given_program = request.form.get('program', 'Arts & Science')
program = legal_name(given_program.lower())
programs = get_program_list()
closest_program = str(get_close_matches(program, programs, n=5)[0])
course_1 = Course(request.form.get('course_1', 'NONE'),
int("80" if request.form.get('course_1_grade', 80) is "" else request.form.get('course_1_grade', 80)))
course_2 = Course(request.form.get('course_2', 'NONE'),
int("80" if request.form.get('course_2_grade', 80) is "" else request.form.get('course_2_grade', 80)))
course_3 = Course(request.form.get('course_3', 'NONE'),
int("80" if request.form.get('course_3_grade', 80) is "" else request.form.get('course_3_grade', 80)))
course_4 = Course(request.form.get('course_4', 'NONE'),
int("80" if request.form.get('course_4_grade', 80) is "" else request.form.get('course_4_grade', 80)))
course_5 = Course(request.form.get('course_5', 'NONE'),
int("80" if request.form.get('course_5_grade', 80) is "" else request.form.get('course_5_grade', 80)))
course_6 = Course(request.form.get('course_6', 'NONE'),
int("80" if request.form.get('course_6_grade', 80) is "" else request.form.get('course_6_grade', 80)))
courses = [course_1, course_2, course_3, course_4, course_5, course_6]
non_empty_courses = [course for course in courses if course.name != 'NONE']
ecs = [ec.strip() for ec in request.form.get('extra_curriculars', '').split(',')]
ib = True if request.form.get('ib') == 'YES' else False
ap = True if request.form.get('ap') == 'YES' else False
coop = True if request.form.get('coop') == 'YES' else False
accepted = True if request.form.get('coop') == 'YES' else False
data = UserData(non_empty_courses, ecs, coop, closest_program, ap, ib)
ec_level = get_ec_level(data.extra_curriculars)
course_1_name = course_1.name if course_1.name != 'NONE' else 'N/A'
course_1_grade = course_1.grade if course_1_name != 'N/A' else 0
course_2_name = course_2.name if course_2.name != 'NONE' else 'N/A'
course_2_grade = course_2.grade if course_2_name != 'N/A' else 0
course_3_name = course_3.name if course_3.name != 'NONE' else 'N/A'
course_3_grade = course_3.grade if course_3_name != 'N/A' else 0
course_4_name = course_4.name if course_4.name != 'NONE' else 'N/A'
course_4_grade = course_4.grade if course_4_name != 'N/A' else 0
course_5_name = course_5.name if course_5.name != 'NONE' else 'N/A'
course_5_grade = course_5.grade if course_5_name != 'N/A' else 0
course_6_name = course_6.name if course_6.name != 'NONE' else 'N/A'
course_6_grade = course_6.grade if course_6_name != 'N/A' else 0
returnData = UserReviews(name=name, uni=uni, program=given_program, course_1=course_1_name, course_1_g=course_1_grade, course_2=course_2_name,
course_2_g=course_2_grade, course_3=course_3_name, course_3_g=course_3_grade,
course_4=course_4_name, course_4_g=course_4_grade, course_5=course_5_name,
course_5_g=course_5_grade, course_6=course_6_name, course_6_g=course_6_grade,
coop=coop, ap=ap, ib=ib, accepted=accepted, ec_level=ec_level)
db.session.add(returnData)
db.session.commit()
return redirect('/reviews/results')
else:
reviews = UserReviews.query.order_by(UserReviews.date_created.desc()).all()
return render_template('reviews.html', reviews=reviews)
@app.route('/reviews/results', methods=['GET', 'POST'])
def see_review():
return add_review()
if __name__ == "__main__":
db.drop_all()
db.create_all()
app.run(debug=True)
| 53.717391 | 166 | 0.661918 | 1,871 | 12,355 | 4.135222 | 0.088188 | 0.071087 | 0.090474 | 0.093059 | 0.788032 | 0.76942 | 0.754685 | 0.732584 | 0.732584 | 0.732584 | 0 | 0.040457 | 0.199757 | 12,355 | 229 | 167 | 53.951965 | 0.742086 | 0.008499 | 0 | 0.522388 | 0 | 0 | 0.085735 | 0.006532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.044776 | 0.014925 | 0.383085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
dc5693fe84a2c8fcf31d27469bdc041ddd8afce2 | 27 | py | Python | wsgi.py | AravindVasudev/DogsVsCats | cb6680b2feb56d8c99e5b9a8f82d2fc38b8bbaff | [
"MIT"
] | 1 | 2019-10-12T09:03:18.000Z | 2019-10-12T09:03:18.000Z | wsgi.py | AravindVasudev/DogsVsCats | cb6680b2feb56d8c99e5b9a8f82d2fc38b8bbaff | [
"MIT"
] | null | null | null | wsgi.py | AravindVasudev/DogsVsCats | cb6680b2feb56d8c99e5b9a8f82d2fc38b8bbaff | [
"MIT"
] | null | null | null | from DogsVsCats import app
| 13.5 | 26 | 0.851852 | 4 | 27 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
dc7787053633479f17eb70783f3f13b038121d2d | 47 | py | Python | datapool_client/core/errors.py | Eawag-SWW/datapool_client | a43c38f0f858a687d6354ef4d857beee59882c8a | [
"MIT"
] | null | null | null | datapool_client/core/errors.py | Eawag-SWW/datapool_client | a43c38f0f858a687d6354ef4d857beee59882c8a | [
"MIT"
] | null | null | null | datapool_client/core/errors.py | Eawag-SWW/datapool_client | a43c38f0f858a687d6354ef4d857beee59882c8a | [
"MIT"
] | null | null | null | class WritingDefaultError(Exception):
pass
| 15.666667 | 37 | 0.787234 | 4 | 47 | 9.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 47 | 2 | 38 | 23.5 | 0.925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
dc8eb0d01ca70649299bde2d368406bbe5353deb | 1,151 | py | Python | modulo-1/aulas/cores_no_terminal.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | modulo-1/aulas/cores_no_terminal.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | modulo-1/aulas/cores_no_terminal.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | # Padrão ANSI é um padrão de normalização de linguagens
# Sempre quando quiser representar uma cor coloque \033[ m
# Entre o cochete e o m vai o código da cor EX: \033[0;0;0fm
#Tabela de cores ANSI (Python)
print('''
\033[1;30mPreto\033[m
\033[1;40mFundo Preto\033[m
\033[1;31mVermelho\033[m
\033[1;41mFundo Vermelho\033[m
\033[1;32mVerde\033[m
\033[1;42mFundo Verde\033[m
\033[1;33mAmarelo\033[m
\033[1;43mFundo Amarelo\033[m
\033[1;34mAzul\033[m
\033[1;44mFundo Azul\033[m
\033[1;35mMagenta\033[m
\033[1;45mFundo Magente\033[m
\033[1;36mCyan\033[m
\033[1;46mFundo Cyan\033[m
\033[1;37mCinza Claro\033[m
\033[1;47mFundo Cinza Claro\033[m
\033[1;90mCinza Escuro\033[m
\033[1;100mFundo Cinza Escuro\033[m
\033[1;91mVermelho Claro\033[m
\033[1;101mFundo Vermelho Claro\033[m
\033[1;92mVerde Claro\033[m
\033[1;102mFundo Verde Claro\033[m
\033[1;93mAmarelo Claro\033[m
\033[1;103mFundo Amarelo Claro\033[m
\033[1;94mAzul Claro\033[m
\033[1;104mFundo Azul Claro\033[m
\033[1;95mMagenta Claro\033[m
\033[1;105mFundo Magenta Claro\033[m
\033[1;96mCyan Claro\033[m
\033[1;106mFundo Cyan Claro\033[m
\033[1;97mBranco\033[m
\033[1;107mFundo Branco\033[m
''') | 28.775 | 60 | 0.750652 | 232 | 1,151 | 3.724138 | 0.323276 | 0.152778 | 0.251157 | 0.287037 | 0.243056 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291866 | 0.092094 | 1,151 | 40 | 61 | 28.775 | 0.534928 | 0.172024 | 0 | 0 | 0 | 0 | 0.978925 | 0.141201 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
dc966e54008924d2225940c13269ab3c2fa8b766 | 125 | py | Python | tests/common/fixtures/__init__.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 2,103 | 2015-01-07T12:47:49.000Z | 2022-03-29T02:38:25.000Z | tests/common/fixtures/__init__.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 4,322 | 2015-01-04T17:18:01.000Z | 2022-03-31T17:06:02.000Z | tests/common/fixtures/__init__.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 389 | 2015-01-24T04:10:02.000Z | 2022-03-28T08:00:16.000Z | from tests.common.fixtures.elasticsearch import es_client, init_elasticsearch
__all__ = ("es_client", "init_elasticsearch")
| 31.25 | 77 | 0.824 | 15 | 125 | 6.333333 | 0.666667 | 0.168421 | 0.252632 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 125 | 3 | 78 | 41.666667 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
dc9b73a58c25f40732df604e535a41ff3a57777b | 345 | py | Python | Artesian/_Query/QueryParameters/AuctionQueryParameters.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 2 | 2022-02-21T17:03:04.000Z | 2022-02-24T17:14:02.000Z | Artesian/_Query/QueryParameters/AuctionQueryParameters.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 2 | 2020-02-06T10:03:35.000Z | 2022-03-01T09:39:54.000Z | Artesian/_Query/QueryParameters/AuctionQueryParameters.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 1 | 2019-08-01T06:20:58.000Z | 2019-08-01T06:20:58.000Z | from Artesian._Query.QueryParameters.QueryParameters import _QueryParameters
class AuctionQueryParameters(_QueryParameters):
def __init__(self, ids, extractionRangeSelectionConfig, extractionRangeType, timezone, filterId):
_QueryParameters.__init__(self, ids, extractionRangeSelectionConfig, extractionRangeType, timezone, filterId) | 86.25 | 117 | 0.846377 | 26 | 345 | 10.769231 | 0.576923 | 0.057143 | 0.078571 | 0.292857 | 0.542857 | 0.542857 | 0.542857 | 0 | 0 | 0 | 0 | 0 | 0.089855 | 345 | 4 | 117 | 86.25 | 0.89172 | 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 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
f496a0aad348750bafbf301a12fdb6236d0510f9 | 55 | py | Python | versioner/__init__.py | DmitryUlyanov/versioner | 30f52b6cf4759d0892886f6ac3a5d7764a449a8c | [
"MIT"
] | null | null | null | versioner/__init__.py | DmitryUlyanov/versioner | 30f52b6cf4759d0892886f6ac3a5d7764a449a8c | [
"MIT"
] | null | null | null | versioner/__init__.py | DmitryUlyanov/versioner | 30f52b6cf4759d0892886f6ac3a5d7764a449a8c | [
"MIT"
] | null | null | null | from .versioner import build_version, get_nvcc_version
| 27.5 | 54 | 0.872727 | 8 | 55 | 5.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 55 | 1 | 55 | 55 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
f49bc3fd164a3a9ed6a90a2db91c572a33ec8e59 | 106 | py | Python | LuoguCodes/AT1741.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/AT1741.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/AT1741.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | a = int(raw_input())
b = int(raw_input())
n = int(raw_input())
while (n % a or n % b):
n += 1
print n
| 15.142857 | 23 | 0.54717 | 22 | 106 | 2.5 | 0.454545 | 0.327273 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.245283 | 106 | 6 | 24 | 17.666667 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
76295e4208710455526f3bf07428b4ad4ad4e9a8 | 70 | py | Python | drones/Clock.py | Potzerus/Dorothy | 9971c342339e9eb61e5fbf4aa11ae1530555004f | [
"MIT"
] | null | null | null | drones/Clock.py | Potzerus/Dorothy | 9971c342339e9eb61e5fbf4aa11ae1530555004f | [
"MIT"
] | null | null | null | drones/Clock.py | Potzerus/Dorothy | 9971c342339e9eb61e5fbf4aa11ae1530555004f | [
"MIT"
] | null | null | null | class Clock:
def __init__(self, time=0):
self.time = time
| 17.5 | 31 | 0.6 | 10 | 70 | 3.8 | 0.7 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.285714 | 70 | 3 | 32 | 23.333333 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
5215b5bfd57a1266b4b7ac0705ddeeb71f427c37 | 213 | py | Python | optical/__init__.py | hashtagml/optical | 1ed11c403b5041497e5b795681b962280c4723d8 | [
"MIT"
] | 10 | 2021-04-11T04:45:54.000Z | 2022-02-17T07:49:48.000Z | optical/__init__.py | hashtagml/optical | 1ed11c403b5041497e5b795681b962280c4723d8 | [
"MIT"
] | 9 | 2021-04-13T18:09:38.000Z | 2021-05-05T13:21:20.000Z | optical/__init__.py | hashtagml/optical | 1ed11c403b5041497e5b795681b962280c4723d8 | [
"MIT"
] | null | null | null | from .converter import Annotation
try:
from importlib.metadata import version
except ImportError:
from importlib_metadata import version
try:
__version__ = version(__name__)
except: # noqa
pass
| 17.75 | 42 | 0.755869 | 24 | 213 | 6.333333 | 0.541667 | 0.171053 | 0.276316 | 0.355263 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 213 | 11 | 43 | 19.363636 | 0.888889 | 0.018779 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.444444 | 0 | 0.444444 | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 5 |
5250bed9bc794abdc9acaf6322e9dbc5c1868b38 | 244 | py | Python | signapp/utils/exceptions.py | saulolks/django-mysignup | 7cd9aae4f9138da7bdcaca610fe41be4d675e171 | [
"Unlicense"
] | null | null | null | signapp/utils/exceptions.py | saulolks/django-mysignup | 7cd9aae4f9138da7bdcaca610fe41be4d675e171 | [
"Unlicense"
] | null | null | null | signapp/utils/exceptions.py | saulolks/django-mysignup | 7cd9aae4f9138da7bdcaca610fe41be4d675e171 | [
"Unlicense"
] | null | null | null | class EmailAlreadyExistsError(Exception):
pass
class EmailNotFoundError(Exception):
pass
class IncorrectPasswordError(Exception):
pass
class InvalidTokenError(Exception):
pass
class ExpiredTokenError(Exception):
pass | 13.555556 | 41 | 0.766393 | 20 | 244 | 9.35 | 0.4 | 0.347594 | 0.385027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172131 | 244 | 18 | 42 | 13.555556 | 0.925743 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.6 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
5259db3b81ea0056ff439da5e779a9186f4a1590 | 175 | py | Python | staticpages/admin.py | oj-lappi/date-website | 76ed983d15be5c2d60205ad5911c58a69793cca5 | [
"CC0-1.0"
] | null | null | null | staticpages/admin.py | oj-lappi/date-website | 76ed983d15be5c2d60205ad5911c58a69793cca5 | [
"CC0-1.0"
] | null | null | null | staticpages/admin.py | oj-lappi/date-website | 76ed983d15be5c2d60205ad5911c58a69793cca5 | [
"CC0-1.0"
] | null | null | null | from django.contrib import admin
from .models import StaticPage, StaticPageNav
# Register your models here.
admin.site.register(StaticPage)
admin.site.register(StaticPageNav) | 29.166667 | 45 | 0.834286 | 22 | 175 | 6.636364 | 0.545455 | 0.123288 | 0.232877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091429 | 175 | 6 | 46 | 29.166667 | 0.918239 | 0.148571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
5265664e62211ad0b5e04e22fdedd41d045fd035 | 1,468 | py | Python | tests/test_eq.py | forever9717/jsonclasses | cc9bde67ceab220425b4855ebb59d432e6fd6ddc | [
"MIT"
] | 50 | 2021-08-18T08:08:04.000Z | 2022-03-20T07:23:26.000Z | tests/test_eq.py | zhichao-github/jsonclasses | 6ee8545683b446939c9c68414fc351cbc917ad41 | [
"MIT"
] | 1 | 2021-02-21T03:18:09.000Z | 2021-03-08T01:07:52.000Z | tests/test_eq.py | zhichao-github/jsonclasses | 6ee8545683b446939c9c68414fc351cbc917ad41 | [
"MIT"
] | 8 | 2021-07-01T02:39:15.000Z | 2021-12-10T02:20:18.000Z | from __future__ import annotations
from unittest import TestCase
from tests.classes.simple_eq import SimpleEq
from jsonclasses.excs import ValidationException
class TestEq(TestCase):
def test_eq_does_not_raise_if_equal(self):
e = SimpleEq(eq_value="dsadsa")
e.validate()
def test_eq_raises_if_is_not_equal(self):
e = SimpleEq(eq_value="dsa")
with self.assertRaises(ValidationException) as context:
e.validate()
self.assertEqual(context.exception.keypath_messages['eqValue'],
"value is not equal")
def test_eq_does_not_raise_if_equal_with_callable_value(self):
e = SimpleEq(ceq_value="dsadsa")
e.validate()
def test_eq_raises_if_is_not_equal_with_callable_value(self):
e = SimpleEq(ceq_value="dsa")
with self.assertRaises(ValidationException) as context:
e.validate()
self.assertEqual(context.exception.keypath_messages['ceqValue'],
"value is not equal")
def test_eq_does_not_raise_if_equal_with_types_value(self):
e = SimpleEq(teq_value="dsadsa")
e.validate()
def test_eq_raises_if_is_not_equal_with_types_value(self):
e = SimpleEq(teq_value="dsa")
with self.assertRaises(ValidationException) as context:
e.validate()
self.assertEqual(context.exception.keypath_messages['teqValue'],
"value is not equal")
| 35.804878 | 72 | 0.679837 | 182 | 1,468 | 5.142857 | 0.252747 | 0.044872 | 0.057692 | 0.076923 | 0.794872 | 0.794872 | 0.762821 | 0.762821 | 0.732906 | 0.615385 | 0 | 0 | 0.234332 | 1,468 | 40 | 73 | 36.7 | 0.83274 | 0 | 0 | 0.375 | 0 | 0 | 0.070845 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
527f7245b1499df742c19cc4a3e0c23caa5d2105 | 167 | py | Python | products/admin.py | harsh3029/bakery-shop-api | 331699878122090194aa0ca0bf8b494cc34c65a6 | [
"MIT"
] | null | null | null | products/admin.py | harsh3029/bakery-shop-api | 331699878122090194aa0ca0bf8b494cc34c65a6 | [
"MIT"
] | null | null | null | products/admin.py | harsh3029/bakery-shop-api | 331699878122090194aa0ca0bf8b494cc34c65a6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Ingredients, Products
# Register your models here.
admin.site.register(Ingredients)
admin.site.register(Products) | 27.833333 | 41 | 0.826347 | 22 | 167 | 6.272727 | 0.545455 | 0.130435 | 0.246377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095808 | 167 | 6 | 42 | 27.833333 | 0.913907 | 0.155689 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
bfedc0d62f2c01d790f2c91b32506693c810cc5b | 216 | py | Python | GodwillOnyewuchi/Phase 1/Python Basic 2/day 15 task/task 6.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | GodwillOnyewuchi/Phase 1/Python Basic 2/day 15 task/task 6.py | GREENFONTS/python-challenge-solutions | a9aad85a250892fe41961a7d5e77f67b8d14fc1b | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | GodwillOnyewuchi/Phase 1/Python Basic 2/day 15 task/task 6.py | GREENFONTS/python-challenge-solutions | a9aad85a250892fe41961a7d5e77f67b8d14fc1b | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | # Write a Python program to find files and skip directories of a given directory
import os
print([f for f in os.listdir('C:Users/Onyebuchi') if os.path.isfile(os.path.join('C:Users/Onyebuchi/PycharmProjects', f))])
| 43.2 | 123 | 0.759259 | 38 | 216 | 4.315789 | 0.736842 | 0.073171 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12037 | 216 | 4 | 124 | 54 | 0.863158 | 0.361111 | 0 | 0 | 0 | 0 | 0.367647 | 0.242647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
873f2c81da3ee9070ea2cd948cea67aac00e0776 | 121 | py | Python | grib/__init__.py | Mochis/curry_grib_runner | 628dbdf5ad9c06a246fd65f44772f31ebe127079 | [
"MIT"
] | null | null | null | grib/__init__.py | Mochis/curry_grib_runner | 628dbdf5ad9c06a246fd65f44772f31ebe127079 | [
"MIT"
] | null | null | null | grib/__init__.py | Mochis/curry_grib_runner | 628dbdf5ad9c06a246fd65f44772f31ebe127079 | [
"MIT"
] | null | null | null | from .grib_command import GribCommand
from .grib_utils import get_data_lines
__all__ = ["GribCommand", "get_data_lines"] | 30.25 | 43 | 0.818182 | 17 | 121 | 5.235294 | 0.588235 | 0.179775 | 0.269663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 121 | 4 | 43 | 30.25 | 0.816514 | 0 | 0 | 0 | 0 | 0 | 0.204918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
8747eac2da87f734a4680c3ad5aad5f009a44c0a | 174 | py | Python | tests/conftest.py | Svtter/micro | f88941fee953d7a8fbf6c313dfc79602c1702cc5 | [
"Apache-1.1"
] | 1 | 2021-11-20T10:47:39.000Z | 2021-11-20T10:47:39.000Z | tests/conftest.py | Svtter/micro | f88941fee953d7a8fbf6c313dfc79602c1702cc5 | [
"Apache-1.1"
] | null | null | null | tests/conftest.py | Svtter/micro | f88941fee953d7a8fbf6c313dfc79602c1702cc5 | [
"Apache-1.1"
] | null | null | null | import pytest
from micro.web import app
from .utils import start_background
@pytest.fixture
def main_app():
start_background(app.get_app('default').run)
yield app
| 15.818182 | 48 | 0.758621 | 26 | 174 | 4.923077 | 0.615385 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 174 | 10 | 49 | 17.4 | 0.870748 | 0 | 0 | 0 | 0 | 0 | 0.040462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.428571 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
5e440b9c76ccfecdf29dc7938d37b482a87b9ae2 | 670 | py | Python | deployment/sskcp-confgenerator/confgenerator/validator.py | elespejo/sskcp | c8609b20a2393cd667333d5485fe14349e50af92 | [
"MIT"
] | 2 | 2018-11-30T02:45:59.000Z | 2020-04-26T10:13:05.000Z | deployment/sskcp-confgenerator/confgenerator/validator.py | elespejo/sskcp | c8609b20a2393cd667333d5485fe14349e50af92 | [
"MIT"
] | null | null | null | deployment/sskcp-confgenerator/confgenerator/validator.py | elespejo/sskcp | c8609b20a2393cd667333d5485fe14349e50af92 | [
"MIT"
] | null | null | null | """
"""
class Validator():
"""
"""
def __init__(self):
"""
"""
pass
def validate_absolute_path(self):
"""
"""
pass
def validate_port(self):
"""
"""
pass
def validate_mode(self):
"""
"""
pass
def validate(self):
"""
"""
pass
class Client_Validator(Validator):
"""
"""
def validate_ip(self):
"""
"""
pass
def validate(self):
"""
"""
pass
class Server_Validator(Validator):
"""
"""
def validate(self):
"""
"""
pass | 12.407407 | 37 | 0.377612 | 47 | 670 | 5.148936 | 0.297872 | 0.264463 | 0.227273 | 0.392562 | 0.264463 | 0.264463 | 0.264463 | 0 | 0 | 0 | 0 | 0 | 0.465672 | 670 | 54 | 38 | 12.407407 | 0.675978 | 0 | 0 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0.421053 | 0 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
5e5bf5ee7caa234fa60bea0e8dc48a1d3a1070e6 | 143 | py | Python | drf_request_logging/apps.py | rehive/drf-request-logging | 0c5fd85fa1112f15b458b9d2d636064f99012e12 | [
"MIT"
] | null | null | null | drf_request_logging/apps.py | rehive/drf-request-logging | 0c5fd85fa1112f15b458b9d2d636064f99012e12 | [
"MIT"
] | null | null | null | drf_request_logging/apps.py | rehive/drf-request-logging | 0c5fd85fa1112f15b458b9d2d636064f99012e12 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DRFExtraConfig(AppConfig):
name = 'drf_request_logging'
verbose_name = "DRF Request Logging"
| 20.428571 | 40 | 0.762238 | 17 | 143 | 6.235294 | 0.705882 | 0.132075 | 0.264151 | 0.396226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167832 | 143 | 6 | 41 | 23.833333 | 0.890756 | 0 | 0 | 0 | 0 | 0 | 0.265734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
0d72e87de6e5d6bcabf80fdad45758091e723078 | 86 | py | Python | gamenotify/__init__.py | mahajar2/CASE | 28988b6ddc723b03abfb137667092a45c87e553c | [
"MIT"
] | null | null | null | gamenotify/__init__.py | mahajar2/CASE | 28988b6ddc723b03abfb137667092a45c87e553c | [
"MIT"
] | null | null | null | gamenotify/__init__.py | mahajar2/CASE | 28988b6ddc723b03abfb137667092a45c87e553c | [
"MIT"
] | null | null | null | from .gamenotify import Gamenotify
def setup(bot):
bot.add_cog(Gamenotify(bot))
| 14.333333 | 34 | 0.744186 | 12 | 86 | 5.25 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 86 | 5 | 35 | 17.2 | 0.863014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0d7978f3e98826b7ed0d9f8fe9f14c06cb30f842 | 421 | py | Python | PyCASC/rootfiles/__init__.py | RaidAndFade/PyCASC | e19e2a8a774aaf3fa3f08fa961c1ea96a4a38b94 | [
"MIT"
] | 3 | 2019-11-11T09:15:36.000Z | 2020-11-13T12:12:45.000Z | PyCASC/rootfiles/__init__.py | MrMoonKr/PyCASC-Doc | 93226f96b43e416b57b80744c295ba26b8f362ec | [
"MIT"
] | 1 | 2020-05-28T23:15:11.000Z | 2020-05-29T01:00:25.000Z | PyCASC/rootfiles/__init__.py | MrMoonKr/PyCASC-Doc | 93226f96b43e416b57b80744c295ba26b8f362ec | [
"MIT"
] | 2 | 2020-09-29T08:46:56.000Z | 2022-03-08T06:51:45.000Z | __all__ = ['warcraft3','diablo3','mndx','hearthstone','ow']
from PyCASC.rootfiles.warcraft3 import parse_warcraft3_root
from PyCASC.rootfiles.diablo3 import parse_d3_root
from PyCASC.rootfiles.mndx import parse_mndx_root
from PyCASC.rootfiles.hearthstone import parse_hearthstone_root
from PyCASC.rootfiles.ow import parse_ow_root
from PyCASC.rootfiles.wow import parse_wow_root | 52.625 | 65 | 0.767221 | 54 | 421 | 5.685185 | 0.259259 | 0.19544 | 0.371336 | 0.374593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 0.163895 | 421 | 8 | 66 | 52.625 | 0.855114 | 0 | 0 | 0 | 0 | 0 | 0.078199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0d95d473ad579ace2a135e59064debeaf5645cba | 275 | py | Python | draw_app/settings.py | TrinityThing/Bingo | 3bf57979415c6e23e130ef43f3c84daa9f405c53 | [
"Unlicense"
] | null | null | null | draw_app/settings.py | TrinityThing/Bingo | 3bf57979415c6e23e130ef43f3c84daa9f405c53 | [
"Unlicense"
] | 20 | 2019-10-17T10:58:37.000Z | 2019-10-23T11:20:20.000Z | draw_app/settings.py | TrinityThing/Bingo | 3bf57979415c6e23e130ef43f3c84daa9f405c53 | [
"Unlicense"
] | 1 | 2019-10-16T17:35:38.000Z | 2019-10-16T17:35:38.000Z | from pony import orm
db = orm.Database()
db.bind(
provider='postgres',
user='ppzlghqmclthps',
password='34ca5fb72f30f09b3713a9af1b65da2b1da657d29095cfc37fd4c772a8648f70',
host='ec2-54-220-0-91.eu-west-1.compute.amazonaws.com',
database='d9qdmq2bc3vjpj')
| 27.5 | 80 | 0.745455 | 29 | 275 | 7.068966 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215768 | 0.123636 | 275 | 9 | 81 | 30.555556 | 0.634855 | 0 | 0 | 0 | 0 | 0.125 | 0.534545 | 0.403636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
0d9bd6c79f17e5d39f15bea6af28b318dd297e9d | 162 | py | Python | app/brain/system/__init__.py | tiagodiana/assistente-virtual | 4ee14045c53c3ea6c8233fa12e588bbc7442e33b | [
"Apache-2.0"
] | 4 | 2020-01-14T00:07:42.000Z | 2020-03-24T02:22:42.000Z | app/brain/system/__init__.py | tiagodiana/assistente-virtual | 4ee14045c53c3ea6c8233fa12e588bbc7442e33b | [
"Apache-2.0"
] | null | null | null | app/brain/system/__init__.py | tiagodiana/assistente-virtual | 4ee14045c53c3ea6c8233fa12e588bbc7442e33b | [
"Apache-2.0"
] | 5 | 2020-01-13T21:45:39.000Z | 2020-04-05T01:18:49.000Z | import os
import sys
#
# Função para desligar computador
#
def desligarPC():
pass
#
# Função de encerramento do script
#
def exitsystem():
sys.exit()
| 9.529412 | 34 | 0.679012 | 20 | 162 | 5.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228395 | 162 | 16 | 35 | 10.125 | 0.88 | 0.395062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 5 |
0dc06f98f45b117088a575e0988905ee0c969a0a | 119 | py | Python | study/python-brasil/exercises/sequential-structure/sequential-structure - 005.py | gustavomarquezinho/python | e36779aa5c4bfaf88c587f05db5bd447fd41e4a2 | [
"MIT"
] | null | null | null | study/python-brasil/exercises/sequential-structure/sequential-structure - 005.py | gustavomarquezinho/python | e36779aa5c4bfaf88c587f05db5bd447fd41e4a2 | [
"MIT"
] | null | null | null | study/python-brasil/exercises/sequential-structure/sequential-structure - 005.py | gustavomarquezinho/python | e36779aa5c4bfaf88c587f05db5bd447fd41e4a2 | [
"MIT"
] | null | null | null | # 005 - Faça um Programa que converta metros para centímetros.
print(f'Centímetros: {float(input("Metros: ")) / 100}') | 39.666667 | 62 | 0.714286 | 16 | 119 | 5.3125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.134454 | 119 | 3 | 63 | 39.666667 | 0.76699 | 0.504202 | 0 | 0 | 0 | 0 | 0.775862 | 0.362069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
0dd8174c95d500cb18f0f02c1ef3f7451c9325a6 | 139 | py | Python | sitator/network/__init__.py | lekah/sitator | 0f9c84989758eb7b76be8104a94a8d6decd27b55 | [
"MIT"
] | 8 | 2018-10-05T18:02:24.000Z | 2021-02-22T20:24:58.000Z | sitator/network/__init__.py | lekah/sitator | 0f9c84989758eb7b76be8104a94a8d6decd27b55 | [
"MIT"
] | 6 | 2019-02-21T04:33:01.000Z | 2021-01-06T20:05:25.000Z | sitator/network/__init__.py | lekah/sitator | 0f9c84989758eb7b76be8104a94a8d6decd27b55 | [
"MIT"
] | 6 | 2018-08-11T21:43:59.000Z | 2021-12-21T06:32:12.000Z | from .DiffusionPathwayAnalysis import DiffusionPathwayAnalysis
from . import merging
from .MergeSitesByBarrier import MergeSitesByBarrier
| 27.8 | 62 | 0.884892 | 11 | 139 | 11.181818 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093525 | 139 | 4 | 63 | 34.75 | 0.97619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
0ddb93d44f363de9cfb456fee25882d2d54690f4 | 95 | py | Python | build/osx/hooks/hook-importlib_metadata.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 78 | 2021-11-08T16:11:23.000Z | 2022-03-27T17:51:04.000Z | build/osx/hooks/hook-importlib_metadata.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 19 | 2021-11-08T17:15:40.000Z | 2022-03-30T17:46:55.000Z | build/osx/hooks/hook-importlib_metadata.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 7 | 2021-11-09T17:42:32.000Z | 2022-03-09T00:37:57.000Z | from PyInstaller.utils.hooks import copy_metadata
datas = copy_metadata('importlib_metadata')
| 23.75 | 49 | 0.842105 | 12 | 95 | 6.416667 | 0.75 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084211 | 95 | 3 | 50 | 31.666667 | 0.885057 | 0 | 0 | 0 | 0 | 0 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
0de1b812186fb4580103bac93da9b0eb4865f507 | 93 | py | Python | pysyte/cli/args.py | git-wwts/pysyte | 625658138cdb5affc1a6a89a9f2c7e3667ee80c2 | [
"MIT"
] | 1 | 2021-11-10T15:24:36.000Z | 2021-11-10T15:24:36.000Z | pysyte/cli/args.py | git-wwts/pysyte | 625658138cdb5affc1a6a89a9f2c7e3667ee80c2 | [
"MIT"
] | 12 | 2020-01-15T00:19:41.000Z | 2021-05-11T14:52:04.000Z | pysyte/cli/args.py | git-wwts/pysyte | 625658138cdb5affc1a6a89a9f2c7e3667ee80c2 | [
"MIT"
] | 2 | 2015-01-31T11:51:06.000Z | 2015-01-31T21:29:19.000Z | def args(method):
pass
def fred(method):
breakpoint()
args_ = method() # noqa
| 11.625 | 28 | 0.591398 | 11 | 93 | 4.909091 | 0.636364 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27957 | 93 | 7 | 29 | 13.285714 | 0.80597 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
2171da8a7e1bba17734bf9b32eb589a45c6f6d60 | 113 | py | Python | test/run/t295.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | test/run/t295.py | csev/skulpt | 9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | test/run/t295.py | csev/skulpt | 9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | # Test that a clone of a list really is distinct
l = [1,2,3]
print l
m = list(l)
print m
m.pop()
print l
print m
| 12.555556 | 48 | 0.663717 | 27 | 113 | 2.777778 | 0.592593 | 0.16 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.230089 | 113 | 8 | 49 | 14.125 | 0.827586 | 0.40708 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.571429 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
218d971b3571f184974972dd8d004d184a958f98 | 209 | py | Python | snippets/count_distinct_field.py | hit9/skylark | 5b7a14e401196e025117b095a7c5e68e551e547a | [
"BSD-2-Clause",
"MIT"
] | 114 | 2015-01-06T06:12:30.000Z | 2021-08-25T06:17:05.000Z | snippets/count_distinct_field.py | keng-king/skylark | 5b7a14e401196e025117b095a7c5e68e551e547a | [
"BSD-2-Clause",
"MIT"
] | 10 | 2015-03-23T17:05:13.000Z | 2017-03-24T11:50:18.000Z | snippets/count_distinct_field.py | keng-king/skylark | 5b7a14e401196e025117b095a7c5e68e551e547a | [
"BSD-2-Clause",
"MIT"
] | 59 | 2015-01-21T14:56:23.000Z | 2021-09-05T01:24:37.000Z | from skylark import fn, distinct
from models import User
# select count(distinct(user.name)) from user
query = User.select(fn.count(distinct(User.name)))
result = query.execute()
return result.tuples()[0][0]
| 26.125 | 50 | 0.755981 | 32 | 209 | 4.9375 | 0.5 | 0.126582 | 0.21519 | 0.265823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.110048 | 209 | 7 | 51 | 29.857143 | 0.83871 | 0.205742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
21a667ccb715bdd21ee0a3c604c364b6c216aecd | 2,285 | py | Python | senic_hub/nuimo_app/components/custom_phue_scenes.py | neelotpalnag/senic-hub | c8765c5b1647f4cf90043a2f7d3ea777517bb796 | [
"MIT"
] | 2 | 2021-03-24T19:08:14.000Z | 2021-07-28T20:50:16.000Z | senic_hub/nuimo_app/components/custom_phue_scenes.py | neelotpalnag/senic-hub | c8765c5b1647f4cf90043a2f7d3ea777517bb796 | [
"MIT"
] | null | null | null | senic_hub/nuimo_app/components/custom_phue_scenes.py | neelotpalnag/senic-hub | c8765c5b1647f4cf90043a2f7d3ea777517bb796 | [
"MIT"
] | 2 | 2018-12-03T20:49:58.000Z | 2021-01-23T23:21:42.000Z | CUSTOM_SCENES = {
"scenes": {
"Relax": {
"lightstates": {
"on": True,
"bri": 144,
"ct": 447
}
},
"Read": {
"lightstates": {
"on": True,
"bri": 254,
"ct": 346
}
},
"Concentrate": {
"lightstates": {
"on": True,
"bri": 254,
"ct": 233,
}
},
"Energize": {
"lightstates": {
"on": True,
"bri": 254,
"ct": 156
}
},
"Bright": {
"lightstates": {
"on": True,
"bri": 254,
"ct": 367
}
},
"Dimmed": {
"lightstates": {
"on": True,
"bri": 77,
"ct": 367,
}
},
"Nightlight": {
"lightstates": {
"on": True,
"bri": 1,
"ct": 447,
"xy": [
0.561,
0.4042
]
}
},
"Savanna sunset": {
"lightstates": {
"on": True,
"bri": 199,
"ct": 385,
"xy": [
0.5337,
0.3856
]
}
},
"Tropical twilight": {
"lightstates": {
"on": True,
"bri": 123,
"ct": 322,
"xy": [
0.5431,
0.3853
]
}
},
"Arctic aurora": {
"lightstates": {
"on": True,
"bri": 137,
"ct": 153,
"xy": [
0.139,
0.081
]
}
},
"Spring blossom": {
"lightstates": {
"on": True,
"bri": 214,
"ct": 215,
"xy": [
0.3401,
0.3153
]
}
}
}
}
| 22.401961 | 30 | 0.212254 | 120 | 2,285 | 4.033333 | 0.425 | 0.295455 | 0.386364 | 0.454545 | 0.206612 | 0.206612 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 0.658206 | 2,285 | 101 | 31 | 22.623762 | 0.478873 | 0 | 0 | 0.306931 | 0 | 0 | 0.140919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
21d316bf1dfab293d84eda7316b5b03937eeb88b | 42 | py | Python | aiorm/__init__.py | jeremaihloo/aiorm | 687efaeed478e7484857233604e8e3fd841fe2a9 | [
"MIT"
] | null | null | null | aiorm/__init__.py | jeremaihloo/aiorm | 687efaeed478e7484857233604e8e3fd841fe2a9 | [
"MIT"
] | null | null | null | aiorm/__init__.py | jeremaihloo/aiorm | 687efaeed478e7484857233604e8e3fd841fe2a9 | [
"MIT"
] | null | null | null | from .backends import *
from .orm import * | 21 | 23 | 0.738095 | 6 | 42 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 2 | 24 | 21 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
21d85df939a8a56b863a1a3a670a19cc3800edf2 | 68 | py | Python | pyTorch-examples/Tutorials/2_Models/Gradient Descent/torch_gradient.py | chenghuiyu/DeepLearning-Examples | 36467c3385da796723ddb12c5f774a35b439fd5d | [
"MIT"
] | null | null | null | pyTorch-examples/Tutorials/2_Models/Gradient Descent/torch_gradient.py | chenghuiyu/DeepLearning-Examples | 36467c3385da796723ddb12c5f774a35b439fd5d | [
"MIT"
] | null | null | null | pyTorch-examples/Tutorials/2_Models/Gradient Descent/torch_gradient.py | chenghuiyu/DeepLearning-Examples | 36467c3385da796723ddb12c5f774a35b439fd5d | [
"MIT"
] | null | null | null | import numpy as np
import torch
from torch.autograd import Variable
| 17 | 35 | 0.838235 | 11 | 68 | 5.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 68 | 3 | 36 | 22.666667 | 0.982759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
21da48ec856e6e884bdcd70b5dc1729e77bb4d8b | 756 | py | Python | src/simple_regressor/metrics.py | leogs/regressor | e4adfc1281f746d6cb15e17f8600c7c9a9bf7ba0 | [
"MIT"
] | null | null | null | src/simple_regressor/metrics.py | leogs/regressor | e4adfc1281f746d6cb15e17f8600c7c9a9bf7ba0 | [
"MIT"
] | null | null | null | src/simple_regressor/metrics.py | leogs/regressor | e4adfc1281f746d6cb15e17f8600c7c9a9bf7ba0 | [
"MIT"
] | null | null | null | import numpy as np
def squared_error(pred_y, expec_y):
return (pred_y - expec_y) ** 2
def absolute_error(pred_y, expec_y):
return np.abs(pred_y - expec_y)
def mean_squared_error(pred_y, expec_y):
return np.average(squared_error(pred_y, expec_y))
def mean_absolute_error(pred_y, expec_y):
return np.average(absolute_error(pred_y, expec_y))
def r2 (pred_y, expec_y):
var_a = sum([ (y_i - y_t) ** 2 for y_i, y_t in zip(pred_y, expec_y) ])
var_b = sum([ (y_i - expec_y.mean()) ** 2 for y_i in expec_y ])
return 1 - (var_a/var_b)
def cross_entropy(y_pred, y_expec):
return (-y_expec*np.log(y_pred) - (1 - y_expec)*np.log(1 - y_pred)).mean()
def accuracy(y_pred, y_expec):
return (y_pred == y_expec).mean() | 30.24 | 78 | 0.67328 | 146 | 756 | 3.136986 | 0.212329 | 0.196507 | 0.283843 | 0.240175 | 0.604803 | 0.543668 | 0.30131 | 0.222707 | 0 | 0 | 0 | 0.011382 | 0.186508 | 756 | 25 | 79 | 30.24 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0 | 0.058824 | 0.352941 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
0dfe8ba19ded2a3d089683695ed81f8418abed79 | 93 | py | Python | ensemble/__init__.py | george-j-zhu/timeseriesprocessing | 5d774a438c5e835a8d5c802009f4d5303388b69d | [
"CC-BY-4.0"
] | 1 | 2018-06-26T05:27:55.000Z | 2018-06-26T05:27:55.000Z | ensemble/__init__.py | george-j-zhu/timeseriesprocessing | 5d774a438c5e835a8d5c802009f4d5303388b69d | [
"CC-BY-4.0"
] | null | null | null | ensemble/__init__.py | george-j-zhu/timeseriesprocessing | 5d774a438c5e835a8d5c802009f4d5303388b69d | [
"CC-BY-4.0"
] | null | null | null | from . import regressionLayer
from . import regressionStacker
from . import votingClassifier
| 23.25 | 31 | 0.83871 | 9 | 93 | 8.666667 | 0.555556 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 93 | 3 | 32 | 31 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
df089f084c4a71b53195ccc8992bec3099159340 | 529 | py | Python | tests/test_pressure_sensor.py | twinters007/robotpy-wpilib-utilities | d2e18c16fc97a469e0621521e0fbed0093610d6e | [
"MIT",
"BSD-3-Clause"
] | 2 | 2017-01-16T03:10:57.000Z | 2017-01-16T03:11:00.000Z | tests/test_pressure_sensor.py | twinters007/robotpy-wpilib-utilities | d2e18c16fc97a469e0621521e0fbed0093610d6e | [
"MIT",
"BSD-3-Clause"
] | null | null | null | tests/test_pressure_sensor.py | twinters007/robotpy-wpilib-utilities | d2e18c16fc97a469e0621521e0fbed0093610d6e | [
"MIT",
"BSD-3-Clause"
] | null | null | null | def test_sensor(wpimock):
from robotpy_ext.common_drivers.pressure_sensors import REVAnalogPressureSensor
sensor = REVAnalogPressureSensor(3, 3.3)
sensor.sensor.getAverageVoltage.return_value = 2.0
assert int(sensor.pressure) == 126
def test_calibration(wpimock):
from robotpy_ext.common_drivers.pressure_sensors import REVAnalogPressureSensor
sensor = REVAnalogPressureSensor(3, 3.3)
sensor.sensor.getAverageVoltage.return_value = 2.0
sensor.calibrate(50)
assert int(sensor.pressure) == 50
| 37.785714 | 83 | 0.780718 | 63 | 529 | 6.396825 | 0.396825 | 0.019851 | 0.08933 | 0.104218 | 0.754342 | 0.754342 | 0.754342 | 0.754342 | 0.754342 | 0.754342 | 0 | 0.037281 | 0.137996 | 529 | 13 | 84 | 40.692308 | 0.846491 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
df0eeb21ed9f06580297438299b316c9dbe27c93 | 253 | py | Python | pgbouncer.py | majj/pyroad | 94c2dd78c8e30c93c1986d3f40852d818ed1e37f | [
"MIT"
] | null | null | null | pgbouncer.py | majj/pyroad | 94c2dd78c8e30c93c1986d3f40852d818ed1e37f | [
"MIT"
] | null | null | null | pgbouncer.py | majj/pyroad | 94c2dd78c8e30c93c1986d3f40852d818ed1e37f | [
"MIT"
] | null | null | null |
## generate password for pgBounder
## PostgreSQL\pgBouncer\etc\userlist.txt
import hashlib
## he md5 password is just the md5sum of password + username with the string md5 prepended.
print('md5'+ hashlib.md5(b'mabouser' + b'mabotech').hexdigest())
| 25.3 | 92 | 0.750988 | 35 | 253 | 5.428571 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022936 | 0.13834 | 253 | 9 | 93 | 28.111111 | 0.848624 | 0.624506 | 0 | 0 | 1 | 0 | 0.22093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
df191826ee32bd7b59fb13e57f8fef92eed3353c | 200 | py | Python | test/tests/none__class__.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:28:45.000Z | 2020-02-06T14:28:45.000Z | test/tests/none__class__.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/none__class__.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:29:00.000Z | 2020-02-06T14:29:00.000Z | print None.__class__
print type(None).__doc__, None.__doc__
try:
print type(None).__new__(type(None))
except TypeError as e:
print e
try:
type(None)()
except TypeError as e:
print e
| 15.384615 | 40 | 0.695 | 31 | 200 | 3.967742 | 0.354839 | 0.260163 | 0.211382 | 0.373984 | 0.520325 | 0.520325 | 0.520325 | 0.520325 | 0 | 0 | 0 | 0 | 0.2 | 200 | 12 | 41 | 16.666667 | 0.76875 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
df65fb3cb538a58725926be9b6c36a276a6d1aab | 206 | py | Python | python/elif.py | Ajay-o-s/python | 69fe60bbfd25962e1a61285c63717cc66be20b2c | [
"MIT"
] | null | null | null | python/elif.py | Ajay-o-s/python | 69fe60bbfd25962e1a61285c63717cc66be20b2c | [
"MIT"
] | null | null | null | python/elif.py | Ajay-o-s/python | 69fe60bbfd25962e1a61285c63717cc66be20b2c | [
"MIT"
] | null | null | null | a = int(input("enter a number : "));
if (a<=10):
print ("number ",a ," is less than 10");
elif (a<=20):
print ("number ",a ," is less than 20");
else:
print ("number ",a," is greater than 20");
| 25.75 | 46 | 0.543689 | 34 | 206 | 3.294118 | 0.441176 | 0.294643 | 0.321429 | 0.375 | 0.392857 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0.062893 | 0.228155 | 206 | 7 | 47 | 29.428571 | 0.641509 | 0 | 0 | 0 | 0 | 0 | 0.432039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
df83e48383858b644846e54a31044a984f8f98b4 | 2,842 | py | Python | thesis rough codes/gridoworldtransitionmatrix.py | intisarnaheen/Bayesian-Reinforcement-Learning-with-Maximum-Entropy | b9cef141d6c55d346c74ba03dba269edead245ec | [
"MIT"
] | null | null | null | thesis rough codes/gridoworldtransitionmatrix.py | intisarnaheen/Bayesian-Reinforcement-Learning-with-Maximum-Entropy | b9cef141d6c55d346c74ba03dba269edead245ec | [
"MIT"
] | null | null | null | thesis rough codes/gridoworldtransitionmatrix.py | intisarnaheen/Bayesian-Reinforcement-Learning-with-Maximum-Entropy | b9cef141d6c55d346c74ba03dba269edead245ec | [
"MIT"
] | null | null | null | import numpy as np
def dirichlet_sample(alphas):
r = np.random.standard_gamma(alphas)
r /= r.sum(-1).reshape(-1, 1)
return r
if __name__ == "__main__":
alphas0 = np.array([[900,100,2,1,1,1,2,5,1,1,1,1],[100,800,100,2,1,4,1,6,3,4,2,3],[1,100,800,100,3,1,1,1,1,2,4,2],[1,1,2,1,1,1,1,1,2,1,2,1],[800,1,2,2,200,1,1,1,1,1,2,3],[1,1,1,3,1,1,1,1,2,1,1,1],[1,1,800,1,2,3,100,100,2,3,1,1],[1,1,1,2,1,1,1,1,1,1,1,1],[1,1,2,3,800,1,2,1,100,100,3,1],[1,1,2,3,1,1,2,1,100,800,100,1],[1,1,2,1,2,0,800,1,1,100,1,100],[1,1,2,1,1,2,1,800,1,1,100,100]])
alphas1 = np.array([[900,1,2,1,100,1,2,5,1,1,1,1],[800,200,1,2,1,4,1,6,3,4,2,3],[1,800,100,2,3,1,100,1,1,2,4,2],[1,1,2,1,1,1,1,1,2,1,2,1],[100,1,2,2,800,1,1,1,100,1,2,3],[1,1,2,3,1,1,1,1,2,1,1,1],[100,1,100,1,2,3,800,1,2,3,100,1],[1,1,1,2,1,1,1,1,1,1,1,1],[1,1,2,3,100,1,2,900,1,2,3,1],[1,1,2,3,1,1,2,800,200,1,2,1],[1,1,2,1,2,0,100,1,1,800,100,1],[1,1,2,1,1,2,1,100,1,1,800,100]])
alphas2 = np.array([[100,100,2,1,800,1,2,5,1,1,1,1],[100,800,100,2,1,4,1,6,3,4,2,3],[1,100,1,100,3,1,800,1,1,2,4,2],[1,1,2,1,1,1,1,1,2,1,2,1],[1,1,2,2,200,1,1,1,800,1,2,3],[1,1,2,3,1,1,1,1,2,1,1,1],[1,1,1,1,2,3,100,100,2,3,800,1],[1,1,1,2,1,1,1,1,1,1,1,1],[1,1,2,3,1,1,2,1,900,100,2,3],[1,1,2,3,1,1,2,1,100,800,100,2],[1,1,2,1,2,1,1,1,1,100,800,100],[1,1,2,1,1,2,1,1,1,1,100,900]])
alphas3 = np.array([[100,800,2,1,100,1,2,5,1,1,1,1],[1,200,800,2,1,4,1,6,3,4,2,3],[1,1,100,800,3,1,100,1,1,2,4,2],[1,1,2,1,1,1,1,1,2,1,2,1],[100,1,2,2,800,1,1,1,100,1,2,3],[1,1,2,3,1,1,1,1,2,1,1,1],[1,1,100,1,2,3,1,800,2,3,100,1],[1,1,1,2,1,1,1,1,1,1,1,1],[1,1,2,3,100,1,2,1,100,800,2,3],[1,1,2,3,1,1,2,1,1,200,800,2],[1,1,2,1,2,1,100,1,2,3,100,800],[1,1,2,1,1,2,1,100,1,1,1,900]])
transition_probablity0 = dirichlet_sample(alphas0)
transition_probablity1 = dirichlet_sample(alphas1)
transition_probablity2 = dirichlet_sample(alphas2)
transition_probablity3 = dirichlet_sample(alphas3)
transitionMatrix= np.dstack((transition_probablity0,transition_probablity1,transition_probablity2,transition_probablity3)) #order is i,j,a
#alphas1 = np.array([[900,1,2,0,100,1,2,5,1,0,0,0],[800,200,1,2,0,4,0,6,3,4,0,3],[1,800,100,2,3,0,100,1,0,2,4,0],[0,0,0,0,0,0,0,0,0,0,0,0],[100,1,2,2,800,1,1,1,100,1,2,3],[0,0,0,0,0,0,0,0,0,0,0,0],[100,1,100,1,2,3,800,1,2,3,100,1],[0,0,0,0,0,0,0,0,0,0,0,0],[1,1,2,3,100,1,2,900,1,2,3,1],[1,1,2,3,1,1,2,800,200,1,2,1],[1,1,2,1,2,0,100,1,1,800,100,1],[1,1,2,1,1,2,1,100,1,1,800,100]])
#alphas2= np.array([[800,200,1,2,3],[800,2,200,1,3],[800,1,2,2,200],[800,1,4,1,200],[800,4,2,1,200]])
#print(transitionMatrix)
P= transitionMatrix
#print(P[:,:,1])
c = np.array([-0.04, -0.04, -0.04, +1.0,
-0.04, 0.0, -0.04, -1.0,
-0.04, -0.04, -0.04, -0.04])
r_new = np.tile(c, (12,1))
R=np.dstack((r_new,r_new,r_new,r_new))
print(R[11,:,0])
| 74.789474 | 387 | 0.57741 | 881 | 2,842 | 1.832009 | 0.061294 | 0.234201 | 0.198885 | 0.156134 | 0.605328 | 0.570012 | 0.50062 | 0.454151 | 0.429368 | 0.413259 | 0 | 0.399551 | 0.059465 | 2,842 | 37 | 388 | 76.810811 | 0.204265 | 0.187896 | 0 | 0 | 0 | 0 | 0.003474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.136364 | 0.045455 | 0 | 0 | 1 | null | 1 | 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 | 5 |
10c7d5bdc7bb947d3ee9b2d102caeff796eabecd | 265 | py | Python | contracts/admin.py | Project-Ellie/Django | b5acf732c15fde78b86e6172992f35f8258c557d | [
"Apache-2.0"
] | null | null | null | contracts/admin.py | Project-Ellie/Django | b5acf732c15fde78b86e6172992f35f8258c557d | [
"Apache-2.0"
] | 6 | 2019-12-14T21:02:00.000Z | 2022-01-13T02:02:30.000Z | contracts/admin.py | Project-Ellie/Django | b5acf732c15fde78b86e6172992f35f8258c557d | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Contract, ContractualParty, UserContractualPartyAssociation
admin.site.register(Contract)
admin.site.register(ContractualParty)
admin.site.register(UserContractualPartyAssociation)
# Register your models here.
| 29.444444 | 79 | 0.856604 | 27 | 265 | 8.407407 | 0.481481 | 0.118943 | 0.22467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 265 | 8 | 80 | 33.125 | 0.926531 | 0.098113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
10eabcbef60f57df4f8125c5ab45ec1ae08f1f12 | 60 | py | Python | eru/model/__init__.py | Shawn-Shan/Eru | aa2c3e32a4465ff254dfbd894d68ae5007543675 | [
"MIT"
] | 1 | 2018-03-22T21:28:16.000Z | 2018-03-22T21:28:16.000Z | eru/model/__init__.py | Shawn-Shan/Eru | aa2c3e32a4465ff254dfbd894d68ae5007543675 | [
"MIT"
] | null | null | null | eru/model/__init__.py | Shawn-Shan/Eru | aa2c3e32a4465ff254dfbd894d68ae5007543675 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .model import * | 20 | 38 | 0.833333 | 8 | 60 | 5.625 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 3 | 39 | 20 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
8053c09510de31cfb0da760d3a99f6b458a91be7 | 63 | py | Python | creacion_de_aplicaciones/pyqt5_iris/app/__init__.py | soytupadrrre/Master_Python_Eip | c4774209d7dd15584233fe5d4cc01b1434c9316b | [
"MIT"
] | null | null | null | creacion_de_aplicaciones/pyqt5_iris/app/__init__.py | soytupadrrre/Master_Python_Eip | c4774209d7dd15584233fe5d4cc01b1434c9316b | [
"MIT"
] | null | null | null | creacion_de_aplicaciones/pyqt5_iris/app/__init__.py | soytupadrrre/Master_Python_Eip | c4774209d7dd15584233fe5d4cc01b1434c9316b | [
"MIT"
] | null | null | null | from app.iris import RestIris
from app.gui import Ui_MainWindow | 31.5 | 33 | 0.857143 | 11 | 63 | 4.818182 | 0.727273 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 63 | 2 | 33 | 31.5 | 0.946429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
3391fbb272cdddb316cd996a15bf4b7924e9a86c | 767 | py | Python | behavioral/strategy/logic/person_representer.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | behavioral/strategy/logic/person_representer.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | behavioral/strategy/logic/person_representer.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING
from behavioral.strategy.logic.strategies import BaseStrategy, JsonStrategy
if TYPE_CHECKING:
from behavioral.strategy.data import Person
class PersonRepresenter:
def __init__(self, person: Person, strategy: BaseStrategy = JsonStrategy()) -> None:
self._person = person
self._represent_strategy = strategy
def represent(self) -> None:
print(self._represent_strategy.represent(self._person))
@property
def represent_strategy(self) -> BaseStrategy:
return self._represent_strategy
@represent_strategy.setter
def represent_strategy(self, represent_strategy: BaseStrategy) -> None:
self._represent_strategy = represent_strategy
| 30.68 | 88 | 0.754889 | 81 | 767 | 6.839506 | 0.333333 | 0.276173 | 0.189531 | 0.162455 | 0.259928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174707 | 767 | 24 | 89 | 31.958333 | 0.875197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.058824 | 0.588235 | 0.058824 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
339fd52d8d5b270eb1c4fde500d4682b85d10343 | 38,175 | py | Python | resilient-circuits-performance-testing/pt_integration_c/pt_integration_c/util/customize.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | 28 | 2017-12-22T00:26:59.000Z | 2022-01-22T14:51:33.000Z | resilient-circuits-performance-testing/pt_integration_c/pt_integration_c/util/customize.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | 18 | 2018-03-06T19:04:20.000Z | 2022-03-21T15:06:30.000Z | resilient-circuits-performance-testing/pt_integration_c/pt_integration_c/util/customize.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | 28 | 2018-05-01T17:53:22.000Z | 2022-03-28T09:56:59.000Z | # -*- coding: utf-8 -*-
"""Generate the Resilient customizations required for pt_integration_c"""
from __future__ import print_function
from resilient_circuits.util import *
def codegen_reload_data():
"""Parameters to codegen used to generate the pt_integration_c package"""
reload_params = {"package": u"pt_integration_c",
"incident_fields": [u"pt_int_c_delay", u"pt_int_c_num_artifacts", u"pt_int_c_num_runs", u"pt_int_c_sample_data"],
"action_fields": [u"delay", u"num_artifacts", u"num_runs", u"sample_data"],
"function_params": [u"pt_int_artifact_description", u"pt_int_artifact_id", u"pt_int_artifact_value", u"pt_int_delay", u"pt_int_num_artifacts", u"pt_int_num_runs", u"pt_int_sample_data"],
"datatables": [],
"message_destinations": [u"pt_integration_c"],
"functions": [u"pt_integration_c_process_added_artifact", u"pt_integration_c_run"],
"phases": [],
"automatic_tasks": [],
"scripts": [u"PT Integration C: Set Custom Fields"],
"workflows": [u"pt_integration_c_process_added_artifact", u"pt_integration_c_run"],
"actions": [u"PT Integration C: Process Artifact", u"PT Integration C: Run", u"PT Integration C: Start"],
"incident_artifact_types": []
}
return reload_params
def customization_data(client=None):
"""Produce any customization definitions (types, fields, message destinations, etc)
that should be installed by `resilient-circuits customize`
"""
# This import data contains:
# Incident fields:
# pt_int_c_delay
# pt_int_c_num_artifacts
# pt_int_c_num_runs
# pt_int_c_sample_data
# Action fields:
# delay
# num_artifacts
# num_runs
# sample_data
# Function inputs:
# pt_int_artifact_description
# pt_int_artifact_id
# pt_int_artifact_value
# pt_int_delay
# pt_int_num_artifacts
# pt_int_num_runs
# pt_int_sample_data
# Message Destinations:
# pt_integration_c
# Functions:
# pt_integration_c_process_added_artifact
# pt_integration_c_run
# Scripts:
# PT Integration C: Set Custom Fields
# Workflows:
# pt_integration_c_process_added_artifact
# pt_integration_c_run
# Rules:
# PT Integration C: Process Artifact
# PT Integration C: Run
# PT Integration C: Start
yield ImportDefinition(u"""
eyJncm91cHMiOiBudWxsLCAibG9jYWxlIjogbnVsbCwgIndvcmtmbG93cyI6IFt7ImRlc2NyaXB0
aW9uIjogIiIsICJ3b3JrZmxvd19pZCI6IDM3LCAidGFncyI6IFtdLCAib2JqZWN0X3R5cGUiOiAi
aW5jaWRlbnQiLCAiZXhwb3J0X2tleSI6ICJwdF9pbnRlZ3JhdGlvbl9jX3J1biIsICJ1dWlkIjog
ImIyOGRjNjMwLTYyM2ItNDczMS1hYWM0LWM4YmY0ZDFiNGE2MiIsICJhY3Rpb25zIjogW10sICJj
b250ZW50IjogeyJ4bWwiOiAiPD94bWwgdmVyc2lvbj1cIjEuMFwiIGVuY29kaW5nPVwiVVRGLThc
Ij8+PGRlZmluaXRpb25zIHhtbG5zPVwiaHR0cDovL3d3dy5vbWcub3JnL3NwZWMvQlBNTi8yMDEw
MDUyNC9NT0RFTFwiIHhtbG5zOmJwbW5kaT1cImh0dHA6Ly93d3cub21nLm9yZy9zcGVjL0JQTU4v
MjAxMDA1MjQvRElcIiB4bWxuczpvbWdkYz1cImh0dHA6Ly93d3cub21nLm9yZy9zcGVjL0RELzIw
MTAwNTI0L0RDXCIgeG1sbnM6b21nZGk9XCJodHRwOi8vd3d3Lm9tZy5vcmcvc3BlYy9ERC8yMDEw
MDUyNC9ESVwiIHhtbG5zOnJlc2lsaWVudD1cImh0dHA6Ly9yZXNpbGllbnQuaWJtLmNvbS9icG1u
XCIgeG1sbnM6eHNkPVwiaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWFcIiB4bWxuczp4
c2k9XCJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5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2ludF9jX2RlbGF5IiwgImhpZGVfbm90aWZpY2F0aW9uIjogZmFsc2UsICJwbGFjZWhvbGRl
ciI6ICIiLCAibmFtZSI6ICJwdF9pbnRfY19kZWxheSIsICJkZXByZWNhdGVkIjogZmFsc2UsICJj
YWxjdWxhdGVkIjogZmFsc2UsICJ2YWx1ZXMiOiBbXSwgImRlZmF1bHRfY2hvc2VuX2J5X3NlcnZl
ciI6IGZhbHNlfV0sICJvdmVycmlkZXMiOiBbXSwgImV4cG9ydF9kYXRlIjogMTU3NjE1NDI0MDgy
NH0=
"""
) | 71.892655 | 207 | 0.960183 | 830 | 38,175 | 43.998795 | 0.693976 | 0.003012 | 0.008051 | 0.004107 | 0.014513 | 0.010022 | 0.00931 | 0.005696 | 0.005696 | 0.005696 | 0 | 0.11978 | 0.032063 | 38,175 | 531 | 208 | 71.892655 | 0.868529 | 0.027714 | 0 | 0.030992 | 1 | 0 | 0.975875 | 0.950077 | 0 | 1 | 0 | 0 | 0 | 1 | 0.004132 | false | 0 | 0.006198 | 0 | 0.012397 | 0.002066 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
33db47309d6d09c94f11a94092a1ba2feefdbf8f | 94 | py | Python | api/admin.py | nNDVG/yamdb_final | de8a5059b55aba745d74c522168c55ef27f4286b | [
"MIT"
] | null | null | null | api/admin.py | nNDVG/yamdb_final | de8a5059b55aba745d74c522168c55ef27f4286b | [
"MIT"
] | null | null | null | api/admin.py | nNDVG/yamdb_final | de8a5059b55aba745d74c522168c55ef27f4286b | [
"MIT"
] | null | null | null | from django.contrib import admin
from titles.models import Title
admin.site.register(Title)
| 15.666667 | 32 | 0.819149 | 14 | 94 | 5.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 94 | 5 | 33 | 18.8 | 0.927711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
33f1868840dcae764bf333e380d375fb955c1acd | 201 | py | Python | Jupyter/AOBW.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | Jupyter/AOBW.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | Jupyter/AOBW.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | # Description: Run the AOBW function from the pymolshortcuts.py file to generate photorealistic effect in grayscale.
# Source: placeHolder
"""
cmd.do('cmd.do("AOBW")')
"""
cmd.do('cmd.do("AOBW")')
| 22.333333 | 117 | 0.706468 | 28 | 201 | 5.071429 | 0.678571 | 0.140845 | 0.112676 | 0.140845 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 201 | 8 | 118 | 25.125 | 0.816092 | 0.80597 | 0 | 0 | 1 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
33f424d2b9763ed57ebfc13bcbbdd81b12f75854 | 128 | py | Python | mmfewshot/classification/models/utils/__init__.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 376 | 2021-11-23T13:29:57.000Z | 2022-03-30T07:22:14.000Z | mmfewshot/classification/models/utils/__init__.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 51 | 2021-11-23T14:45:08.000Z | 2022-03-30T03:37:15.000Z | mmfewshot/classification/models/utils/__init__.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 56 | 2021-11-23T14:02:27.000Z | 2022-03-31T09:01:50.000Z | # Copyright (c) OpenMMLab. All rights reserved.
from .maml_module import convert_maml_module
__all__ = ['convert_maml_module']
| 25.6 | 47 | 0.796875 | 17 | 128 | 5.470588 | 0.647059 | 0.322581 | 0.365591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117188 | 128 | 4 | 48 | 32 | 0.823009 | 0.351563 | 0 | 0 | 0 | 0 | 0.234568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
d50edeff6759ecbef9c9e76134aab7faa5dd9ac6 | 172 | py | Python | src/extract_browser_data/chromium/__init__.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | null | null | null | src/extract_browser_data/chromium/__init__.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | 7 | 2020-04-05T19:39:24.000Z | 2020-04-15T18:55:04.000Z | src/extract_browser_data/chromium/__init__.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | null | null | null | '''This package contains code for Chromium-based browsers'''
from .profile import ChromiumProfile
from .reader import ChromiumReader
from .writer import ChromiumWriter
| 34.4 | 61 | 0.80814 | 20 | 172 | 6.95 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133721 | 172 | 4 | 62 | 43 | 0.932886 | 0.313953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
1d52c17e13124769d81ab91c8e96764382cbd880 | 254 | py | Python | src/catcher/catcherexceptions.py | gavin-anders/callback-catcher | 77d18a983fc5a9e53b33189d4202868210b5d7e3 | [
"Apache-2.0"
] | 2 | 2019-06-27T21:08:23.000Z | 2020-10-16T12:07:19.000Z | src/catcher/catcherexceptions.py | gavin-anders/callback-catcher | 77d18a983fc5a9e53b33189d4202868210b5d7e3 | [
"Apache-2.0"
] | null | null | null | src/catcher/catcherexceptions.py | gavin-anders/callback-catcher | 77d18a983fc5a9e53b33189d4202868210b5d7e3 | [
"Apache-2.0"
] | null | null | null | class MissingConfigSection(Exception):
pass
class InvalidConfigValue(Exception):
pass
class InvalidConfigSection(Exception):
pass
class InvalidConfigFormat(ValueError):
pass
class FailedToStartServive(Exception):
pass | 18.142857 | 39 | 0.740157 | 20 | 254 | 9.4 | 0.45 | 0.276596 | 0.287234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200787 | 254 | 14 | 40 | 18.142857 | 0.926108 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
1d5a244bf56883ad995e0c476c3d6eb1643f43c4 | 14 | py | Python | hello.py | RobBlocker/sturdy-couscous | de05dda2d901f5a22add0cf1ad7a7c329112fad4 | [
"Unlicense"
] | null | null | null | hello.py | RobBlocker/sturdy-couscous | de05dda2d901f5a22add0cf1ad7a7c329112fad4 | [
"Unlicense"
] | null | null | null | hello.py | RobBlocker/sturdy-couscous | de05dda2d901f5a22add0cf1ad7a7c329112fad4 | [
"Unlicense"
] | null | null | null | print(Hello")
| 7 | 13 | 0.714286 | 2 | 14 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 14 | 1 | 14 | 14 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
1d5d117b8157971b5e96eff518f61764dc567318 | 89 | py | Python | backend/api/waitress_server.py | timbo-rafa/geo-cache | 6321bc554bfb9a8ae93e5668e364223c45d33c44 | [
"MIT"
] | null | null | null | backend/api/waitress_server.py | timbo-rafa/geo-cache | 6321bc554bfb9a8ae93e5668e364223c45d33c44 | [
"MIT"
] | null | null | null | backend/api/waitress_server.py | timbo-rafa/geo-cache | 6321bc554bfb9a8ae93e5668e364223c45d33c44 | [
"MIT"
] | null | null | null | import waitress
from cache_api import app
waitress.serve(app, host="0.0.0.0", port=5000) | 22.25 | 46 | 0.764045 | 17 | 89 | 3.941176 | 0.647059 | 0.089552 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.101124 | 89 | 4 | 46 | 22.25 | 0.7375 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
1d67756efa059874c1c33a0e2b4a7a42273ee83e | 180 | py | Python | fudgeit/recommendation/admin.py | fahimtran/hackgt-8 | 2746cd334b73268ea1f5872c796873125056e61d | [
"MIT"
] | null | null | null | fudgeit/recommendation/admin.py | fahimtran/hackgt-8 | 2746cd334b73268ea1f5872c796873125056e61d | [
"MIT"
] | null | null | null | fudgeit/recommendation/admin.py | fahimtran/hackgt-8 | 2746cd334b73268ea1f5872c796873125056e61d | [
"MIT"
] | null | null | null | from django.contrib import admin
from recommendation.models import Restaurant, FoodItem
# Register your models here.
admin.site.register(Restaurant)
admin.site.register(FoodItem)
| 25.714286 | 54 | 0.833333 | 23 | 180 | 6.521739 | 0.565217 | 0.12 | 0.226667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094444 | 180 | 6 | 55 | 30 | 0.920245 | 0.144444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
1d927afc307a2c472026e738cad2a335a925f556 | 126 | py | Python | info/moduels/index/__init__.py | haczfdx/information | 7364fb6eea54bb1d17b70c626cdceda129f99902 | [
"MIT"
] | null | null | null | info/moduels/index/__init__.py | haczfdx/information | 7364fb6eea54bb1d17b70c626cdceda129f99902 | [
"MIT"
] | null | null | null | info/moduels/index/__init__.py | haczfdx/information | 7364fb6eea54bb1d17b70c626cdceda129f99902 | [
"MIT"
] | null | null | null | """这个蓝图对应的是首页相关的操作"""
from flask import Blueprint
index_blue = Blueprint('index', __name__)
import info.moduels.index.views
| 18 | 41 | 0.777778 | 15 | 126 | 6.2 | 0.733333 | 0.301075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103175 | 126 | 6 | 42 | 21 | 0.823009 | 0.119048 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
d51f94da2359ed519864ef09566505ad68c97f10 | 166 | py | Python | carsus/model/meta/__init__.py | parikshit14/carsus | 3f67e8068829829361d7b1da9020e1fde9dcac2e | [
"BSD-3-Clause"
] | 21 | 2016-06-01T16:12:03.000Z | 2022-02-04T09:03:38.000Z | carsus/model/meta/__init__.py | parikshit14/carsus | 3f67e8068829829361d7b1da9020e1fde9dcac2e | [
"BSD-3-Clause"
] | 149 | 2016-05-03T17:50:42.000Z | 2022-03-25T14:48:51.000Z | carsus/model/meta/__init__.py | parikshit14/carsus | 3f67e8068829829361d7b1da9020e1fde9dcac2e | [
"BSD-3-Clause"
] | 34 | 2016-05-03T16:39:11.000Z | 2022-02-03T16:39:49.000Z | from .types import DBQuantity
from .orm import UniqueMixin, yield_limit
from .base import Base, setup
from .schema import QuantityMixin, DataSourceMixin, IonListMixin | 41.5 | 64 | 0.837349 | 21 | 166 | 6.571429 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114458 | 166 | 4 | 64 | 41.5 | 0.938776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
d56c460c8c34a9472e9b812b95c7b2c8cf12d359 | 198 | py | Python | MeGA_python/Entity.py | tuh8888/CommandLineTextAnnotation | bbb4af473f1229571221bd814d4d7b627b01543a | [
"MIT"
] | null | null | null | MeGA_python/Entity.py | tuh8888/CommandLineTextAnnotation | bbb4af473f1229571221bd814d4d7b627b01543a | [
"MIT"
] | null | null | null | MeGA_python/Entity.py | tuh8888/CommandLineTextAnnotation | bbb4af473f1229571221bd814d4d7b627b01543a | [
"MIT"
] | null | null | null | from Component import Component
class Entity(Component):
def __init__(self, name, children):
Component.__init__(self, name, children)
self.component_type = 'Entity'
| 19.8 | 49 | 0.666667 | 21 | 198 | 5.857143 | 0.52381 | 0.130081 | 0.195122 | 0.325203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247475 | 198 | 9 | 50 | 22 | 0.825503 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
d59bad4178eb1b4dc04c8afc5bfd4bac535de5d8 | 44 | py | Python | rurina2/errors.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | rurina2/errors.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | rurina2/errors.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | class TextRenderError(Exception):
pass
| 11 | 33 | 0.75 | 4 | 44 | 8.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 44 | 3 | 34 | 14.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
639163d267d30b2e81af6cf1f00dd9055e7494a1 | 17,626 | py | Python | xsugar/test/test_photocurrent.py | edmundsj/xsugar | 08596f500b043661b9fc807803319ee8f5d6de54 | [
"MIT"
] | null | null | null | xsugar/test/test_photocurrent.py | edmundsj/xsugar | 08596f500b043661b9fc807803319ee8f5d6de54 | [
"MIT"
] | 40 | 2021-03-21T16:08:34.000Z | 2021-05-28T01:52:07.000Z | xsugar/test/test_photocurrent.py | edmundsj/xsugar | 08596f500b043661b9fc807803319ee8f5d6de54 | [
"MIT"
] | null | null | null | import pytest
from xsugar import ureg, dc_photocurrent, modulated_photocurrent, noise_current, Experiment
from sciparse import assert_equal_qt, assert_allclose_qt, assertDataDictEqual
from sugarplot import assert_figures_equal, plt, Figure
import pandas as pd
import numpy as np
import os
@pytest.fixture
def sim_exp():
file_location = os.path.dirname(os.path.abspath(__file__))
base_path = file_location + '/data'
sim_exp = Experiment(name='REFL2', kind='test', base_path=base_path)
sim_exp.loadData()
return sim_exp
def test_dc_photocurrent():
gain = 10 * ureg.Mohm
input_data = pd.DataFrame({
'time (ms)': [0, 0.01, 0.02],
'voltage (uV)': [0.1, 0.2, 0.3]})
desired_photocurrent = 2e-5*ureg.nA
cond = {'gain': gain}
actual_photocurrent = dc_photocurrent(input_data, cond)
assert_allclose_qt(actual_photocurrent, desired_photocurrent)
def test_modulated_photocurrent():
data_length = 1000
sampling_frequency = 1 * ureg.kHz
signal_frequency = 0.1 * ureg.kHz
sampling_period = (1 / sampling_frequency).to(ureg.s)
gain = 1.5 * ureg.Mohm
cond = {'gain': gain, 'sampling_frequency': 1 * ureg.kHz}
number_periods = int(np.floor(data_length / (sampling_frequency / signal_frequency)))
number_sync_points = number_periods
indices = np.arange(0, number_sync_points, 1)
sync_indices = (1/2* sampling_frequency / signal_frequency *(1 + 2*indices)).astype(np.int).magnitude
zero_column = np.zeros(data_length, dtype=np.int)
zero_column[sync_indices] = 1
times = np.arange(0, data_length, 1)*sampling_period
voltages = 0.5 * ureg.mV * np.sin(2*np.pi * signal_frequency * times)
data = pd.DataFrame({
'time (ms)': times.to(ureg.ms).magnitude,
'voltage (mV)': voltages.to(ureg.mV).magnitude,
'Sync': zero_column
})
desired_data = (0.5 * ureg.mV / gain).to(ureg.pA)
actual_data = modulated_photocurrent(data, cond)
assert_allclose_qt(actual_data, desired_data)
def test_noise_current():
data_length = 10000
sampling_frequency = 10*ureg.kHz
nyquist_frequency = sampling_frequency / 2
sampling_period = (1 / sampling_frequency).to(ureg.s)
noise_voltage = np.random.normal(size=data_length)*ureg.uV
filter_cutoff = 200*ureg.Hz
times = np.arange(0, data_length, 1)*sampling_period
data = pd.DataFrame({
'Time (ms)': times.to(ureg.ms).magnitude,
'voltage (uV)': noise_voltage.to(ureg.uV).magnitude,
})
gain = 1.0 * ureg.Mohm
cond = {
'gain': gain,
'filter_cutoff': filter_cutoff
}
filter_correction_factor = (nyquist_frequency - filter_cutoff) / \
nyquist_frequency
desired_noise_current_psd = \
np.square(noise_voltage.std() / gain) / nyquist_frequency
desired_noise_current_psd = desired_noise_current_psd.to(
ureg.A ** 2 / ureg.Hz)
actual_noise_current_psd = noise_current(data, cond)
assert_allclose_qt(
actual_noise_current_psd, desired_noise_current_psd,
atol=1e-31, rtol=5e-2)
def test_noise_current_bin2():
data_length = 30000
sampling_frequency = 10*ureg.kHz
sampling_period = (1 / sampling_frequency).to(ureg.s)
noise_voltage = np.random.normal(size=data_length)*ureg.uV
times = np.arange(0, data_length, 1)*sampling_period
data = pd.DataFrame({
'Time (ms)': times.to(ureg.ms).magnitude,
'voltage (uV)': noise_voltage.to(ureg.uV).magnitude,
})
gain = 1.0 * ureg.Mohm
cond = {
'gain': gain,
'filter_cutoff': 200*ureg.Hz
}
desired_noise_current_psd = \
np.square(noise_voltage.std() / gain) / (sampling_frequency / 2)
desired_noise_current_psd = desired_noise_current_psd.to(
ureg.A ** 2 / ureg.Hz)
actual_noise_current_psd = noise_current(data, cond)
assert_allclose_qt(
actual_noise_current_psd, desired_noise_current_psd,
atol=1e-30, rtol=5e-2)
def test_process_photocurrent_simple(convert_name, sim_exp):
"""
Verifies that, given a sinusoidal input with a known offset and amplitude, the correct data is generated.
"""
wavelength = np.array([700, 750]) * ureg.nm
material = ['Au', 'Al']
gain = 1 * ureg.Mohm
current_offset = 100
current_amplitude = 1
dR_R0_ratio = current_amplitude / current_offset
reference_condition = dict(material='Au')
# Ensures no spectral leakage for simple test case
sin_data = pd.DataFrame({
'Time (ms)': np.array([0, 1, 2, 3, 4, 5, 6, 7]),
'Voltage (mV)': current_offset + \
current_amplitude * np.array([0, -1, 0, 1, 0, -1, 0, 1]),
'Sync': np.array([1, 0, 0, 0, 1, 0, 0, 0]),
})
test_data = {
convert_name('TEST1~material=Au~wavelength=700nm'): sin_data,
convert_name('TEST1~material=Al~wavelength=700nm'): sin_data,
convert_name('TEST1~material=Au~wavelength=750nm'): sin_data,
convert_name('TEST1~material=Al~wavelength=750nm'): sin_data,
}
exp = Experiment(
name='TEST1', kind='test',
wavelength=wavelength, material=material, gain=gain)
exp.data = test_data
R0_actual, dR_actual, inoise_actual = exp.process_photocurrent(
reference_condition=reference_condition, sim_exp=sim_exp)
R0_desired = {
convert_name('TEST1~material=Au~wavelength=700nm~spectra=R0'): 0.93329,
convert_name('TEST1~material=Al~wavelength=700nm~spectra=R0'): 0.93329,
convert_name('TEST1~material=Au~wavelength=750nm~spectra=R0'): 0.948615,
convert_name('TEST1~material=Al~wavelength=750nm~spectra=R0'): 0.948615,
}
dR_desired = {
convert_name('TEST1~material=Au~wavelength=700nm~spectra=dR'): \
0.93329 * dR_R0_ratio,
convert_name('TEST1~material=Al~wavelength=700nm~spectra=dR'): \
0.93329 * dR_R0_ratio,
convert_name('TEST1~material=Au~wavelength=750nm~spectra=dR'): \
0.948615 * dR_R0_ratio,
convert_name('TEST1~material=Al~wavelength=750nm~spectra=dR'): \
0.948615 * dR_R0_ratio,
}
inoise_desired = {
convert_name('TEST1~material=Au~wavelength=700nm'): \
1.3333333333333333e-21 * ureg.A ** 2 / ureg.Hz,
convert_name('TEST1~material=Al~wavelength=700nm'): \
1.3333333333333333e-21 * ureg.A ** 2 / ureg.Hz,
convert_name('TEST1~material=Au~wavelength=750nm'): \
1.3333333333333333e-21 * ureg.A ** 2 / ureg.Hz,
convert_name('TEST1~material=Al~wavelength=750nm'): \
1.3333333333333333e-21 * ureg.A ** 2 / ureg.Hz,
}
assertDataDictEqual(R0_actual, R0_desired)
assertDataDictEqual(dR_actual, dR_desired)
assertDataDictEqual(inoise_actual, inoise_desired)
def test_plot_photocurrent_simple(convert_name, sim_exp):
"""
Verifies that, given a sinusoidal input with a known offset and amplitude, the correct data is generated.
"""
wavelength = np.array([700, 750]) * ureg.nm
material = ['Au', 'Al']
gain = 1 * ureg.Mohm
current_offset = 100*ureg.nA # nA
current_amplitude = -10*ureg.pA #
dR_R0_ratio = current_amplitude / current_offset
reference_condition = dict(material='Au')
sin_data = pd.DataFrame({
'Time (ms)': np.array([0, 1, 2, 3, 4, 5, 6, 7]),
'Voltage (mV)': current_offset + \
current_amplitude * np.array([0, -1, 0, 1, 0, -1, 0, 1]),
'Sync': np.array([1, 0, 0, 0, 1, 0, 0, 0]),
})
test_data = {
convert_name('TEST1~wavelength=700nm~material=Au'): sin_data,
convert_name('TEST1~wavelength=750nm~material=Au'): sin_data,
convert_name('TEST1~wavelength=700nm~material=Al'): sin_data,
convert_name('TEST1~wavelength=750nm~material=Al'): sin_data,
}
exp = Experiment(
name='TEST1', kind='test',
wavelength=wavelength, material=material, gain=gain)
exp.data = test_data
R0_desired = {
convert_name('TEST1~wavelength=700nm~material=Au'): 0.93329,
convert_name('TEST1~wavelength=750nm~material=Au'): 0.948615,
convert_name('TEST1~wavelength=700nm~material=Al'): 0.93329,
convert_name('TEST1~wavelength=750nm~material=Al'): 0.948615,
}
dR_desired = {
convert_name('TEST1~wavelength=700nm~material=Au'): \
0.93329 * dR_R0_ratio,
convert_name('TEST1~wavelength=750nm~material=Au'): \
0.948615 * dR_R0_ratio,
convert_name('TEST1~wavelength=700nm~material=Al'): \
0.93329 * dR_R0_ratio,
convert_name('TEST1~wavelength=750nm~material=Al'): \
0.948615 * dR_R0_ratio,
}
(R0_figs_actual, _, dR_figs_actual, _, inoise_figs_actual, _) = \
exp.plot_photocurrent(
reference_condition=reference_condition, sim_exp=sim_exp)
Au_R0_data = sim_exp.data['REFL2~material=Au~spectra=R0']
Al_R0_data = sim_exp.data['REFL2~material=Al~spectra=R0']
R0_fig_desired = Figure()
R0_ax = R0_fig_desired.subplots()
R0_ax.plot([700, 750], [0.93329, 0.948615])
R0_ax.plot(Au_R0_data['Wavelength (nm)'].values, Au_R0_data['R'].values, linestyle='dashed')
R0_ax.plot([700, 750], [0.93329, 0.948615])
R0_ax.plot(Al_R0_data['Wavelength (nm)'].values, Al_R0_data['R'].values, linestyle='dashed')
R0_ax.set_xlabel('wavelength (nm)')
R0_ax.set_ylabel(r'$R_0$')
R0_ax.set_xlim(870, 1100)
# NOTE - This is the pk-pk data for 5V amplitude. To convert to rms,
# We need only to divide by 2 * sqrt(2)
dR_fig_desired = Figure()
dR_ax = dR_fig_desired.subplots()
dR_ax.plot([700, 750],
[0.93329 * dR_R0_ratio,
0.948615 * dR_R0_ratio])
dR_ax.plot([700, 750],
[0.93329 * dR_R0_ratio,
0.948615 * dR_R0_ratio])
dR_ax.set_xlabel('wavelength (nm)')
dR_ax.set_ylabel(r'$\Delta R_{amp}$')
dR_ax.set_xlim(870, 1100)
inoise_fig_desired = Figure()
inoise_ax_desired = inoise_fig_desired.subplots()
inoise_ax_desired.plot([700, 750],
[-248.750613, -248.750613])
inoise_ax_desired.plot([700, 750],
[-257.8073547127414, -257.8073547127414], linestyle='dashed')
inoise_ax_desired.plot([700, 750],
[-248.750613, -248.750613])
inoise_ax_desired.plot([700, 750],
[-257.8073547127414, -257.8073547127414], linestyle='dashed')
inoise_ax_desired.set_xlabel('wavelength (nm)')
inoise_ax_desired.set_ylabel('Power (dBA/Hz)')
assert_figures_equal(inoise_figs_actual[0], inoise_fig_desired, atol=1e-6)
assert_figures_equal(R0_figs_actual[0], R0_fig_desired, atol=1e-6, skip='ticks')
assert_figures_equal(dR_figs_actual[0], dR_fig_desired, atol=1e-6, skip='ticks')
def test_plot_photocurrent_realistic(convert_name, sim_exp):
"""
Verifies that, given a sinusoidal input with a known offset and amplitude, the correct data is generated.
"""
wavelength = np.array([850, 1150]) * ureg.nm
modulation_amplitude = ureg.V * np.array([10, 20])
gain = 10 * ureg.Mohm
current_offset = 100*ureg.nA
current_amplitude = 10*ureg.pA
dR_R0_ratio = current_amplitude / current_offset
reference_condition = dict(material='Au')
Au_data = pd.DataFrame({
'Time (ms)': np.array([0, 1, 2, 3, 4]),
'Voltage (mV)': (gain*current_offset).to(ureg.mV).m*np.ones(5),
'Sync': np.array([1, 0, 0, 0, 1]),
})
sin_data_5V_850nm = pd.DataFrame({
'Time (ms)': np.array([0, 1, 2, 3, 4]),
'Voltage (mV)': \
0.0261059412418133/0.96400635435947* \
(gain*current_offset).to(ureg.mV).m + \
(gain*current_amplitude).to(ureg.mV).m * \
np.array([0, -1, 0, 1, 0]),
'Sync': np.array([1, 0, 0, 0, 1]),
})
sin_data_5V_1150nm = pd.DataFrame({
'Time (ms)': np.array([0, 1, 2, 3, 4]),
'Voltage (mV)': \
0.283227973929987/0.975276963043909* \
(gain*current_offset).to(ureg.mV).m + \
(gain*current_amplitude).to(ureg.mV).m * \
np.array([0, -1, 0, 1, 0]),
'Sync': np.array([1, 0, 0, 0, 1]),
})
sin_data_10V_850nm = pd.DataFrame({
'Time (ms)': np.array([0, 1, 2, 3, 4]),
'Voltage (mV)':
0.0261059412418133/0.96400635435947* \
(gain*current_offset).to(ureg.mV).m + \
2 * (gain*current_amplitude).to(ureg.mV).m * \
np.array([0, -1, 0, 1, 0]),
'Sync': np.array([1, 0, 0, 0, 1]),
})
sin_data_10V_1150nm = pd.DataFrame({
'Time (ms)': np.array([0, 1, 2, 3, 4]),
'Voltage (mV)':
0.283227973929987/0.975276963043909* \
(gain*current_offset).to(ureg.mV).m + \
2 * (gain*current_amplitude).to(ureg.mV).m * \
np.array([0, -1, 0, 1, 0]),
'Sync': np.array([1, 0, 0, 0, 1]),
})
test_data = {
convert_name('TEST1~wavelength=850nm~material=Au~modulation_amplitude=0V'): Au_data,
convert_name('TEST1~wavelength=1150nm~material=Au~modulation_amplitude=0V'): Au_data,
convert_name('TEST1~wavelength=850nm~material=AlN~modulation_amplitude=5V'): sin_data_5V_850nm,
convert_name('TEST1~wavelength=1150nm~material=AlN~modulation_amplitude=5V'): sin_data_5V_1150nm,
convert_name('TEST1~wavelength=850nm~material=AlN~modulation_amplitude=10V'): sin_data_10V_850nm,
convert_name('TEST1~wavelength=1150nm~material=AlN~modulation_amplitude=10V'): sin_data_10V_1150nm,
}
exp = Experiment(
name='TEST1', kind='test',
wavelength=wavelength,
modulation_amplitude=modulation_amplitude,
material=['AlN'],
gain=gain)
exp.append_condition(
comb_type='cartesian',
wavelength=wavelength,
material='Au',
modulation_amplitude=0*ureg.V,
gain=gain)
exp.data = test_data
R0_desired = {
convert_name('TEST1~wavelength=850nm~modulation_amplitude=0V'): 0.0261059412418133,
convert_name('TEST1~wavelength=1150nm~modulation_amplitude=0V'): 0.283227973929987,
convert_name('TEST1~wavelength=850nm~modulation_amplitude=0V'): 0.0261059412418133,
convert_name('TEST1~wavelength=1150nm~modulation_amplitude=0V'): 0.283227973929987,
}
dR_desired = {
convert_name('TEST1~wavelength=850nm~modulation_amplitude=5V'): \
0.93329 * dR_R0_ratio,
convert_name('TEST1~wavelength=1150nm~modulation_amplitude=5V'): \
0.948615 * dR_R0_ratio,
convert_name('TEST1~wavelength=850nm~modulation_amplitude=10V'): \
0.93329 * dR_R0_ratio,
convert_name('TEST1~wavelength=1150nm~modulation_amplitude=10V'): \
0.948615 * dR_R0_ratio,
}
(R0_figs_actual, _, dR_figs_actual, _, inoise_figs_actual, _) = \
exp.plot_photocurrent(
reference_condition=reference_condition, sim_exp=sim_exp,
c_axis_include='modulation_amplitude')
AlN_R0_data = sim_exp.data['REFL2~material=AlN~spectra=R0']
R0_fig_desired = Figure()
R0_ax = R0_fig_desired.subplots()
R0_ax.plot([850, 1150], [0.026106, 0.283228])
R0_ax.plot(AlN_R0_data['Wavelength (nm)'].values, AlN_R0_data['R'].values, linestyle='dashed')
R0_ax.plot([850, 1150], [0.026106, 0.283228])
R0_ax.plot(AlN_R0_data['Wavelength (nm)'].values, AlN_R0_data['R'].values, linestyle='dashed')
R0_ax.set_xlabel('wavelength (nm)')
R0_ax.set_ylabel(r'$R_0$')
R0_ax.set_xlim(880, 1100)
# NOTE - This data is for a 5V *amplitude* sinewave.
AlN_dR_data = sim_exp.data['REFL2~material=AlN~modulation_amplitude=5V~spectra=dR']
AlN_dR_data_10 = sim_exp.data['REFL2~material=AlN~modulation_amplitude=10V~spectra=dR']
dR_fig_desired = Figure()
dR_ax = dR_fig_desired.subplots()
dR_ax.plot([850, 1150],
[0.96400635435947 * dR_R0_ratio,
0.975276963043909 * dR_R0_ratio])
dR_ax.plot(AlN_dR_data['Wavelength (nm)'].values, AlN_dR_data['R'].values,
linestyle='dashed')
dR_ax.plot([850, 1150],
[2*0.96400635435947 * dR_R0_ratio,
2*0.975276963043909 * dR_R0_ratio])
dR_ax.plot(AlN_dR_data['Wavelength (nm)'].values, AlN_dR_data_10['R'].values, linestyle='dashed')
dR_ax.set_xlabel('wavelength (nm)')
dR_ax.set_ylabel(r'$\Delta R_{amp}$')
dR_ax.set_xlim(880, 1100)
inoise_fig_desired = Figure()
inoise_ax_desired = inoise_fig_desired.subplots()
inoise_ax_desired.plot([850, 1150],
[-250, -250])
inoise_ax_desired.plot([850, 1150],
[-257.8073547127414, -257.8073547127414], linestyle='dashed')
inoise_ax_desired.plot([850, 1150],
[-243.9794, -243.9794])
inoise_ax_desired.plot([850, 1150],
[-257.8073547127414, -257.8073547127414], linestyle='dashed')
inoise_ax_desired.set_xlabel('wavelength (nm)')
inoise_ax_desired.set_ylabel('Power (dBA/Hz)')
assert_figures_equal(inoise_figs_actual[1], inoise_fig_desired, atol=1e-6, skip='ticks')
assert_figures_equal(R0_figs_actual[1], R0_fig_desired, atol=1e-6, skip='ticks')
assert_figures_equal(dR_figs_actual[1], dR_fig_desired, atol=1e-6, skip='ticks')
| 43.520988 | 109 | 0.637014 | 2,350 | 17,626 | 4.533191 | 0.099149 | 0.046466 | 0.063081 | 0.063456 | 0.814512 | 0.782878 | 0.759598 | 0.732564 | 0.668356 | 0.612691 | 0 | 0.106983 | 0.225746 | 17,626 | 404 | 110 | 43.628713 | 0.673628 | 0.029899 | 0 | 0.560773 | 0 | 0 | 0.159324 | 0.115152 | 0 | 0 | 0 | 0 | 0.041436 | 1 | 0.022099 | false | 0 | 0.019337 | 0 | 0.044199 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
63a82701b0c9196b04eb247a6c275ef441509e9c | 114 | py | Python | tests/system/data/test_204.py | yjqiang/stash | 83dd0367b2a260f69afbe59738ae9ae523f8f1d1 | [
"MIT"
] | 1 | 2019-04-16T14:01:03.000Z | 2019-04-16T14:01:03.000Z | tests/system/data/test_204.py | yjqiang/stash | 83dd0367b2a260f69afbe59738ae9ae523f8f1d1 | [
"MIT"
] | null | null | null | tests/system/data/test_204.py | yjqiang/stash | 83dd0367b2a260f69afbe59738ae9ae523f8f1d1 | [
"MIT"
] | null | null | null | from __future__ import print_function
print('The first line\nA quick brown fox jumps over the lazy dog\b', end='') | 57 | 76 | 0.780702 | 20 | 114 | 4.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 114 | 2 | 76 | 57 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0.513043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
63aa786ea81635cf0868eba9c889f163adbb9761 | 222 | py | Python | dtamg_py/create.py | transparencia-mg/dtamg-py | 6007d33a1f33f01f504f82a52ed298cc9f466f61 | [
"MIT"
] | null | null | null | dtamg_py/create.py | transparencia-mg/dtamg-py | 6007d33a1f33f01f504f82a52ed298cc9f466f61 | [
"MIT"
] | 15 | 2021-12-20T15:25:23.000Z | 2022-03-07T21:55:57.000Z | dtamg_py/create.py | transparencia-mg/dtamg-py | 6007d33a1f33f01f504f82a52ed298cc9f466f61 | [
"MIT"
] | null | null | null | import click
from dtamg_py.utils import run_dpckan_dataset
@click.command(name='dpckan-create')
def dpckan_create_cli():
"""
Função responsável pela criação dos conjuntos no CKAN.
"""
run_dpckan_dataset('create')
| 22.2 | 56 | 0.765766 | 31 | 222 | 5.258065 | 0.709677 | 0.110429 | 0.196319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130631 | 222 | 9 | 57 | 24.666667 | 0.84456 | 0.243243 | 0 | 0 | 0 | 0 | 0.121795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
895e3c33ab3710845de4f7efbed7549f8c975537 | 133 | py | Python | etlalchemy/__init__.py | carloshanson/etlalchemy | 73c53131245ec179cd3996d5b86f26a56fe0782e | [
"MIT"
] | null | null | null | etlalchemy/__init__.py | carloshanson/etlalchemy | 73c53131245ec179cd3996d5b86f26a56fe0782e | [
"MIT"
] | null | null | null | etlalchemy/__init__.py | carloshanson/etlalchemy | 73c53131245ec179cd3996d5b86f26a56fe0782e | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .ETLAlchemySource import ETLAlchemySource
from .ETLAlchemyTarget import ETLAlchemyTarget
| 33.25 | 46 | 0.894737 | 13 | 133 | 8.769231 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090226 | 133 | 3 | 47 | 44.333333 | 0.942149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.