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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a00addcb2dd581122d441ebfc3ea209593da2d8a | 202 | py | Python | api/star/model.py | nirgn975/apistar-talk | ebd33425be977070843430ad362fdb3ae3644ad9 | [
"0BSD"
] | null | null | null | api/star/model.py | nirgn975/apistar-talk | ebd33425be977070843430ad362fdb3ae3644ad9 | [
"0BSD"
] | null | null | null | api/star/model.py | nirgn975/apistar-talk | ebd33425be977070843430ad362fdb3ae3644ad9 | [
"0BSD"
] | null | null | null | from mongoengine import Document, StringField, IntField
class Star(Document):
name = StringField(required=True, max_length=255)
rating = IntField()
dimension = StringField(max_length=255)
| 25.25 | 55 | 0.752475 | 23 | 202 | 6.521739 | 0.695652 | 0.12 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.158416 | 202 | 7 | 56 | 28.857143 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a014cafd70b7da68d39f37aa4666623a1ddd6e9c | 101 | py | Python | topo_processor/stac/asset_key.py | linz/processor-aerial-imagery | cf6425560cea381278fe7857865e3d9158b28d7e | [
"MIT"
] | null | null | null | topo_processor/stac/asset_key.py | linz/processor-aerial-imagery | cf6425560cea381278fe7857865e3d9158b28d7e | [
"MIT"
] | 15 | 2020-07-21T04:56:31.000Z | 2020-09-21T06:28:57.000Z | topo_processor/stac/asset_key.py | linz/processor-aerial-imagery | cf6425560cea381278fe7857865e3d9158b28d7e | [
"MIT"
] | null | null | null | from enum import Enum
class AssetKey(str, Enum):
Visual = "visual"
Thumbnail = "thumbnail"
| 14.428571 | 27 | 0.673267 | 12 | 101 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227723 | 101 | 6 | 28 | 16.833333 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a022580f158f9e597dc19b0cb6367a1f1477b1d6 | 28 | py | Python | test/testdata/config.py | syegulalp/folio | 02d18a1b08777f59d3cc0aae87a4eddfdd6a8aa4 | [
"MIT"
] | 26 | 2020-03-01T00:51:28.000Z | 2022-02-14T13:18:06.000Z | test/testdata/config.py | syegulalp/folio | 02d18a1b08777f59d3cc0aae87a4eddfdd6a8aa4 | [
"MIT"
] | 3 | 2020-05-03T16:54:37.000Z | 2022-03-23T16:37:48.000Z | test/testdata/config.py | syegulalp/folio | 02d18a1b08777f59d3cc0aae87a4eddfdd6a8aa4 | [
"MIT"
] | null | null | null | DATA_PATH = r"test/testdata" | 28 | 28 | 0.785714 | 5 | 28 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 28 | 1 | 28 | 28 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a022e1cf1b3cb88c4e83909831891354185952da | 196 | py | Python | washing_learning/vision/__init__.py | Lucas-rbnt/washing-learning | eb3e8bcc7c58dafc19bfb94779c681c1164524e7 | [
"MIT"
] | 8 | 2021-04-13T09:12:38.000Z | 2021-11-02T08:50:29.000Z | washing_learning/vision/__init__.py | Lucas-rbnt/washing-learning | eb3e8bcc7c58dafc19bfb94779c681c1164524e7 | [
"MIT"
] | null | null | null | washing_learning/vision/__init__.py | Lucas-rbnt/washing-learning | eb3e8bcc7c58dafc19bfb94779c681c1164524e7 | [
"MIT"
] | null | null | null | """
This API implements the classes and functions to avoid having to do boilerplate code and simplify the code by making it
higher-level. This module focuses solely on Computer Vision issues.
"""
| 39.2 | 119 | 0.790816 | 31 | 196 | 5 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 196 | 4 | 120 | 49 | 0.945122 | 0.954082 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e421affb6bd3d2a72e7616f38ee59252866783c | 294 | py | Python | python-mundo2/ex061.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | 1 | 2021-08-15T18:18:43.000Z | 2021-08-15T18:18:43.000Z | python-mundo2/ex061.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | null | null | null | python-mundo2/ex061.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | null | null | null | print(43*'\033[1;33m=')
print(8*'\033[1;31m-\033[m', '\033[1mG E R A D O R D E P A', 8*'\033[1;31m-')
print(43*'\033[1;33m=')
t1 = int(input('\033[1;34mPrimeiro termo: '))
r = int(input('Razão: \033[1;36m'))
c = 0
while c < 10:
print(t1, end=' -> ')
t1 += r
c += 1
print('FIM')
| 24.5 | 81 | 0.520408 | 61 | 294 | 2.508197 | 0.459016 | 0.156863 | 0.130719 | 0.143791 | 0.183007 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 0.197279 | 294 | 11 | 82 | 26.727273 | 0.411017 | 0 | 0 | 0.181818 | 0 | 0 | 0.44898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4e48921a42ed39af165ca708e5c2380c0a46ee12 | 383 | py | Python | tests/utils/mvts_cleaner_tests.py | skad00sh/gsudmlab-mvtsdata_toolkit | 2c5495deb6d31eef556e7f410ac1c1632bffa961 | [
"MIT"
] | 7 | 2020-07-07T10:27:02.000Z | 2021-04-02T13:20:24.000Z | tests/utils/mvts_cleaner_tests.py | skad00sh/gsudmlab-mvtsdata_toolkit | 2c5495deb6d31eef556e7f410ac1c1632bffa961 | [
"MIT"
] | 3 | 2020-03-31T09:35:53.000Z | 2021-08-23T20:46:33.000Z | tests/utils/mvts_cleaner_tests.py | skad00sh/gsudmlab-mvtsdata_toolkit | 2c5495deb6d31eef556e7f410ac1c1632bffa961 | [
"MIT"
] | 3 | 2020-08-31T10:21:21.000Z | 2021-12-01T11:38:17.000Z | import unittest
# TODO: @Kankan
# Here we test any methods that go to utils.mvts_cleaner.
class TestMVTSCleaner(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
pass
@classmethod
def tearDownClass(cls) -> None:
pass
def test_something(self):
self.assertEqua... | 16.652174 | 57 | 0.657963 | 44 | 383 | 5.5 | 0.727273 | 0.115702 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245431 | 383 | 22 | 58 | 17.409091 | 0.83737 | 0.180157 | 0 | 0.333333 | 0 | 0 | 0.025723 | 0 | 0 | 0 | 0 | 0.045455 | 0.083333 | 1 | 0.25 | false | 0.166667 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4e4be91d887129b17f4b9e47f663ffa9475bd35d | 536 | py | Python | algorithms/0002-Fibonacci/fibonacci.py | ivamluz/Algorithms-and-Data-Structures | cffacd758adf134dabc63cdc107c8b485b00b1c1 | [
"Apache-2.0"
] | 1 | 2018-11-06T22:43:07.000Z | 2018-11-06T22:43:07.000Z | algorithms/0002-Fibonacci/fibonacci.py | ivamluz/Algorithms-and-Data-Structures | cffacd758adf134dabc63cdc107c8b485b00b1c1 | [
"Apache-2.0"
] | null | null | null | algorithms/0002-Fibonacci/fibonacci.py | ivamluz/Algorithms-and-Data-Structures | cffacd758adf134dabc63cdc107c8b485b00b1c1 | [
"Apache-2.0"
] | null | null | null | # TODO: Memoize next_fibonacci_number function
def next_fibonacci_number(position):
if position <= 1:
return position
return next_fibonacci_number(position - 1) + next_fibonacci_number(position - 2)
def build_fibonacci_sequence_up_to(max_value):
if max_value <= 0:
return None
position = 0
next_val... | 21.44 | 82 | 0.720149 | 71 | 536 | 5.112676 | 0.309859 | 0.179063 | 0.261708 | 0.297521 | 0.15978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016355 | 0.201493 | 536 | 25 | 83 | 21.44 | 0.831776 | 0.08209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e4c9b2e0e4f6f5012b00935c8938578e0a58beb | 518 | py | Python | board_boot.py | blackfin/esp32_hydro_ponics | 7a7e021606a9922b4928b23658e384254f938ce8 | [
"MIT"
] | null | null | null | board_boot.py | blackfin/esp32_hydro_ponics | 7a7e021606a9922b4928b23658e384254f938ce8 | [
"MIT"
] | null | null | null | board_boot.py | blackfin/esp32_hydro_ponics | 7a7e021606a9922b4928b23658e384254f938ce8 | [
"MIT"
] | 1 | 2021-12-30T08:07:47.000Z | 2021-12-30T08:07:47.000Z | import upip
import utime, network
print('RUN: boot.py')
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print('connecting to network...')
wlan.connect("t0mcruzz", "RvM@55#2891")
while not wlan.isconnected():
pass
print('network config:', wlan.ifconfig())
ip = wlan.i... | 27.263158 | 44 | 0.725869 | 67 | 518 | 5.597015 | 0.522388 | 0.146667 | 0.234667 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017279 | 0.106178 | 518 | 19 | 45 | 27.263158 | 0.792657 | 0.044402 | 0 | 0 | 0 | 0 | 0.327273 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.125 | 0 | 0.125 | 0.1875 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4e4dfacd9fb75f1ee1d8aab961d6f60e6f440172 | 741 | py | Python | mule_local/python/mule_local/rexi/pcirexi/section/section.py | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 6 | 2017-11-20T08:12:46.000Z | 2021-03-11T15:32:36.000Z | mule_local/python/mule_local/rexi/pcirexi/section/section.py | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 4 | 2018-02-02T21:46:33.000Z | 2022-01-11T11:10:27.000Z | mule_local/python/mule_local/rexi/pcirexi/section/section.py | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 12 | 2016-03-01T18:33:34.000Z | 2022-02-08T22:20:31.000Z | from typing import TypeVar, Generic, List
import scipy.integrate as integrate
A_T = TypeVar('A_T')
Y_T = TypeVar('Y_T')
class Section(Generic[A_T, Y_T]):
start_a: A_T = 0
end_a: A_T = 0
def interpolate_list(self, a_interpol_list) -> List[Y_T]:
y_interpol_list: List[Y_T] = []
for cur_a i... | 24.7 | 87 | 0.651822 | 118 | 741 | 3.813559 | 0.322034 | 0.035556 | 0.086667 | 0.017778 | 0.142222 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.238866 | 741 | 29 | 88 | 25.551724 | 0.792553 | 0 | 0 | 0.15 | 0 | 0 | 0.008097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.15 | 0.1 | 0.05 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4e767b4ff69236125b1b8562fc4e99c54f4f5fb7 | 454 | py | Python | tw2/forms/mashups.py | toscawidgets/tw2.forms | 7967fd8fe55850dd3eb5060aba812b80d5140888 | [
"MIT"
] | 3 | 2016-05-24T22:13:04.000Z | 2020-04-17T13:54:31.000Z | tw2/forms/mashups.py | toscawidgets/tw2.forms | 7967fd8fe55850dd3eb5060aba812b80d5140888 | [
"MIT"
] | 2 | 2015-06-10T23:21:20.000Z | 2015-12-08T09:19:19.000Z | tw2/forms/mashups.py | toscawidgets/tw2.forms | 7967fd8fe55850dd3eb5060aba812b80d5140888 | [
"MIT"
] | 5 | 2015-06-23T07:33:35.000Z | 2017-05-04T09:06:20.000Z | import tw2.core as twc
from .widgets import CheckBox, PostlabeledInputField
class PostlabeledCheckBox(CheckBox, PostlabeledInputField):
pass
class PostlabeledPartialRadioButton(PostlabeledInputField):
""" This is basically a manual mixin of RadioButton and
IgnoredField. Inheritance doesn't work. """
... | 26.705882 | 59 | 0.751101 | 48 | 454 | 7.083333 | 0.854167 | 0.170588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002667 | 0.174009 | 454 | 16 | 60 | 28.375 | 0.904 | 0.200441 | 0 | 0 | 0 | 0 | 0.014245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
4e805f4a09a4a48dcdf512403febd670b2561b6f | 206 | py | Python | ymlparse/__init__.py | yhkl-dev/yamlparse | fb906ab9d0f0eeb7dc24a1700afb5fce6df0a1e0 | [
"MIT"
] | null | null | null | ymlparse/__init__.py | yhkl-dev/yamlparse | fb906ab9d0f0eeb7dc24a1700afb5fce6df0a1e0 | [
"MIT"
] | null | null | null | ymlparse/__init__.py | yhkl-dev/yamlparse | fb906ab9d0f0eeb7dc24a1700afb5fce6df0a1e0 | [
"MIT"
] | null | null | null | #!/usr/python/bin/python3
# -*- coding:utf-8 -*-
############################
#File Name: __init__.py
#Author: ykyk
#Mail: 525178992@qq.com
#Created Time: 2019-09-07 13:06:43
############################
| 18.727273 | 34 | 0.485437 | 25 | 206 | 3.84 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134409 | 0.097087 | 206 | 10 | 35 | 20.6 | 0.38172 | 0.650485 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e847efe15628a290bfad0d209de2d9f560149b3 | 2,184 | py | Python | config.py | osukurikku/kuriso | ae6a6f2d87f2aa592c9fe105a6c01872a02cc057 | [
"MIT"
] | 6 | 2021-03-07T20:14:29.000Z | 2022-03-10T20:28:20.000Z | config.py | osukurikku/kuriso | ae6a6f2d87f2aa592c9fe105a6c01872a02cc057 | [
"MIT"
] | 3 | 2021-04-20T17:18:58.000Z | 2022-03-28T18:17:35.000Z | config.py | osukurikku/kuriso | ae6a6f2d87f2aa592c9fe105a6c01872a02cc057 | [
"MIT"
] | 4 | 2021-03-30T12:55:07.000Z | 2022-03-10T09:01:16.000Z | import os
class Config:
"""Singleton конфигурация"""
config = {}
def __new__(cls):
if not hasattr(cls, 'instance'):
cls.instance = super(Config, cls).__new__(cls)
return cls.instance
@classmethod
def load_config(cls):
cls.config = {
'debug': os.env... | 42.823529 | 89 | 0.498626 | 240 | 2,184 | 4.375 | 0.2625 | 0.205714 | 0.274286 | 0.085714 | 0.215238 | 0.055238 | 0.055238 | 0.055238 | 0.055238 | 0.055238 | 0 | 0.029236 | 0.310897 | 2,184 | 50 | 90 | 43.68 | 0.668439 | 0.01511 | 0 | 0 | 0 | 0 | 0.27366 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.044444 | false | 0.044444 | 0.022222 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e86828cdcb743fabf5a06261a69b10597a9f545 | 289 | py | Python | mapbox_vector_tile/compat.py | tilezen/mapbox-vector-tile | 4e3a65a6f98c317048266260b8e7aac705e31e6f | [
"MIT"
] | 121 | 2016-07-14T00:44:54.000Z | 2022-03-19T00:49:14.000Z | mapbox_vector_tile/compat.py | tilezen/mapbox-vector-tile | 4e3a65a6f98c317048266260b8e7aac705e31e6f | [
"MIT"
] | 53 | 2016-07-05T14:35:06.000Z | 2021-05-20T22:31:02.000Z | mapbox_vector_tile/compat.py | tilezen/mapbox-vector-tile | 4e3a65a6f98c317048266260b8e7aac705e31e6f | [
"MIT"
] | 34 | 2016-07-27T23:45:05.000Z | 2022-01-02T20:37:58.000Z | import sys
from builtins import map
PY3 = sys.version_info[0] == 3
if PY3:
from .Mapbox import vector_tile_p3_pb2
vector_tile = vector_tile_p3_pb2
else:
from .Mapbox import vector_tile_pb2
vector_tile = vector_tile_pb2
def apply_map(fn, x):
return list(map(fn, x))
| 18.0625 | 42 | 0.726644 | 49 | 289 | 4 | 0.469388 | 0.306122 | 0.163265 | 0.22449 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04329 | 0.200692 | 289 | 15 | 43 | 19.266667 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4eab6e1c19097f4a18a247193adee856b2dda504 | 211 | py | Python | setup.py | perkinsml/dfsummary_package_PyPI | e83d09189da076ddcffe403640f631da6372c33e | [
"MIT"
] | 1 | 2020-03-14T14:14:05.000Z | 2020-03-14T14:14:05.000Z | setup.py | perkinsml/dfsummary_package_PyPI | e83d09189da076ddcffe403640f631da6372c33e | [
"MIT"
] | null | null | null | setup.py | perkinsml/dfsummary_package_PyPI | e83d09189da076ddcffe403640f631da6372c33e | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='dfsummary',
version='0.4',
description='A dataframe EDA helper package',
packages=['dfsummary'],
author='Matthew Perkins',
zip_safe=False)
| 23.444444 | 51 | 0.658768 | 24 | 211 | 5.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.218009 | 211 | 8 | 52 | 26.375 | 0.824242 | 0 | 0 | 0 | 0 | 0 | 0.312796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ec46488545bcd39cb415163b94c0ec8abbf05c7 | 242 | py | Python | noname/api/echo.py | alexd2580/noname | 2a82a91ef9ace315fcb972764521b28ceaa76e85 | [
"MIT"
] | null | null | null | noname/api/echo.py | alexd2580/noname | 2a82a91ef9ace315fcb972764521b28ceaa76e85 | [
"MIT"
] | null | null | null | noname/api/echo.py | alexd2580/noname | 2a82a91ef9ace315fcb972764521b28ceaa76e85 | [
"MIT"
] | null | null | null | """A simple echo route."""
from flask import request
from noname.api import api
from noname.responses import ok
@api.route('/', methods=['GET'])
def default():
"""Echo the parameters of the request."""
return ok(data=request.args)
| 20.166667 | 45 | 0.690083 | 35 | 242 | 4.771429 | 0.628571 | 0.11976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161157 | 242 | 11 | 46 | 22 | 0.82266 | 0.231405 | 0 | 0 | 0 | 0 | 0.022857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
14d8d3f206635e8f452d1ab6f233d610d7dd25c9 | 57 | py | Python | backend/courses/__init__.py | ranwise/djangochannel | 9c719d292b5c1d0fd008a16a64509a309bdd642e | [
"BSD-3-Clause"
] | 45 | 2019-10-04T10:12:54.000Z | 2022-03-29T18:12:34.000Z | backend/courses/__init__.py | ranwise/djangochannel | 9c719d292b5c1d0fd008a16a64509a309bdd642e | [
"BSD-3-Clause"
] | 6 | 2019-10-09T07:37:14.000Z | 2022-01-27T16:41:16.000Z | backend/courses/__init__.py | ranwise/djangochannel | 9c719d292b5c1d0fd008a16a64509a309bdd642e | [
"BSD-3-Clause"
] | 35 | 2019-10-04T10:18:48.000Z | 2022-01-14T22:40:38.000Z | default_app_config = "backend.courses.apps.CoursesConfig" | 57 | 57 | 0.859649 | 7 | 57 | 6.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 57 | 1 | 57 | 57 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0.586207 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
14fd76616a94d3b0a0957119964a759908066baf | 859 | py | Python | src/WriteConstantDirectoryFiles/WriteTransportProperties.py | darrinl2t/OpenFOAMCaseGenerator | 72c3072814e9447b12c40c3423593c8d9a8c9cb4 | [
"MIT"
] | 3 | 2020-12-23T11:12:12.000Z | 2021-05-19T15:18:15.000Z | src/WriteConstantDirectoryFiles/WriteTransportProperties.py | darrinl2t/OpenFOAMCaseGenerator | 72c3072814e9447b12c40c3423593c8d9a8c9cb4 | [
"MIT"
] | null | null | null | src/WriteConstantDirectoryFiles/WriteTransportProperties.py | darrinl2t/OpenFOAMCaseGenerator | 72c3072814e9447b12c40c3423593c8d9a8c9cb4 | [
"MIT"
] | 3 | 2021-01-18T19:31:13.000Z | 2021-06-08T12:28:38.000Z | class TransportPropertiesFile:
def __init__(self, properties, file_manager):
self.properties = properties
self.file_manager = file_manager
def write_input_file(self):
nu = self.properties['flow_properties']['dimensional_properties']['nu']
file_id = self.file_manager.create_file(... | 53.6875 | 116 | 0.592549 | 90 | 859 | 5.344444 | 0.266667 | 0.22869 | 0.24948 | 0.2079 | 0.413721 | 0.413721 | 0.259875 | 0.237006 | 0.174636 | 0.174636 | 0 | 0 | 0.206054 | 859 | 15 | 117 | 57.266667 | 0.705279 | 0 | 0 | 0 | 0 | 0 | 0.275902 | 0.110594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
091a99b31e64f7659bb3ce3af207a376c020aa44 | 178 | py | Python | ygo/message_handlers/reversedeck.py | yncat/yugioh-game | 90406c45d02325552df8a5a5ea3e25e055a14cb1 | [
"MIT"
] | 23 | 2017-09-23T13:29:17.000Z | 2022-03-02T19:03:11.000Z | ygo/message_handlers/reversedeck.py | yncat/yugioh-game | 90406c45d02325552df8a5a5ea3e25e055a14cb1 | [
"MIT"
] | 160 | 2017-09-15T13:24:30.000Z | 2022-02-11T15:10:34.000Z | ygo/message_handlers/reversedeck.py | yncat/yugioh-game | 90406c45d02325552df8a5a5ea3e25e055a14cb1 | [
"MIT"
] | 21 | 2017-09-15T13:17:29.000Z | 2022-01-31T09:28:06.000Z | def msg_reversedeck(self, data):
for pl in self.players+self.watchers:
pl.notify(pl._("all decks are now reversed."))
return data[1:]
MESSAGES = {37: msg_reversedeck}
| 25.428571 | 49 | 0.702247 | 27 | 178 | 4.518519 | 0.740741 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.162921 | 178 | 6 | 50 | 29.666667 | 0.798658 | 0 | 0 | 0 | 0 | 0 | 0.156977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
093e5434288e84a7431693e18bfa6b60bba2ce5f | 454 | py | Python | templates/index.py | angeal185/python-website-created-with-flask-and-jinja | 5a7c62941d5456e5c87c137fb58d06fc1ff10bcc | [
"MIT"
] | null | null | null | templates/index.py | angeal185/python-website-created-with-flask-and-jinja | 5a7c62941d5456e5c87c137fb58d06fc1ff10bcc | [
"MIT"
] | null | null | null | templates/index.py | angeal185/python-website-created-with-flask-and-jinja | 5a7c62941d5456e5c87c137fb58d06fc1ff10bcc | [
"MIT"
] | null | null | null | {% extends "layout.py" %}
{% block content %}
{% include "includes/featured.py" %}
{% include "includes/services.py" %}
<div class="c-logo-part parallax1"></div>
{% include "includes/reviews.py" %}
{% include "includes/about.py" %}
{% include "snippets/parallax-callout.py" %}
{% include "includes/portfolio.py" ... | 32.428571 | 45 | 0.634361 | 50 | 454 | 5.76 | 0.5 | 0.364583 | 0.295139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002591 | 0.14978 | 454 | 13 | 46 | 34.923077 | 0.743523 | 0 | 0 | 0 | 0 | 0 | 0.47619 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09485e9e9726bc1a1f431d18193cc44ae83bab3b | 209 | py | Python | Scripts/f2py.py | pyparallel/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | Scripts/f2py.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | Scripts/f2py.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | #!C:\Users\Trent\Home\src\pyparallel\PCbuild\amd64\python.exe
# EASY-INSTALL-SCRIPT: 'numpy==1.10.1','f2py.py'
__requires__ = 'numpy==1.10.1'
__import__('pkg_resources').run_script('numpy==1.10.1', 'f2py.py')
| 41.8 | 66 | 0.717703 | 35 | 209 | 4 | 0.657143 | 0.128571 | 0.171429 | 0.192857 | 0.3 | 0.3 | 0.3 | 0 | 0 | 0 | 0 | 0.08 | 0.043062 | 209 | 4 | 67 | 52.25 | 0.62 | 0.511962 | 0 | 0 | 0 | 0 | 0.46 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0948a672770345110abe87578a3cf33e9035fed2 | 173 | py | Python | scripts/status.py | TipaZloy/coda-automation | 20c00a92f2e3088e205677c0db96b3ed5c82b238 | [
"Apache-2.0"
] | null | null | null | scripts/status.py | TipaZloy/coda-automation | 20c00a92f2e3088e205677c0db96b3ed5c82b238 | [
"Apache-2.0"
] | null | null | null | scripts/status.py | TipaZloy/coda-automation | 20c00a92f2e3088e205677c0db96b3ed5c82b238 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
import codalib
import json
if __name__ == "__main__":
result = codalib.filtered_status()
print(json.dumps(result, sort_keys=True, indent=4))
| 24.714286 | 55 | 0.722543 | 24 | 173 | 4.791667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.144509 | 173 | 6 | 56 | 28.833333 | 0.763514 | 0.127168 | 0 | 0 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
09520270f127fbd33e93d2d2e2df67d4e194569d | 23 | py | Python | __init__.py | kmiller96/Quark-ChessEngine | ea4b84abdcc92a9392b9057c7978f05b6a3d25ea | [
"MIT"
] | 5 | 2017-02-14T06:01:27.000Z | 2017-05-01T10:37:17.000Z | tests/__init__.py | kmiller96/QuantumChessEngine | ea4b84abdcc92a9392b9057c7978f05b6a3d25ea | [
"MIT"
] | null | null | null | tests/__init__.py | kmiller96/QuantumChessEngine | ea4b84abdcc92a9392b9057c7978f05b6a3d25ea | [
"MIT"
] | 1 | 2018-08-23T20:55:20.000Z | 2018-08-23T20:55:20.000Z | __author__ = 'Kale M'
| 11.5 | 22 | 0.652174 | 3 | 23 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 23 | 1 | 23 | 23 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11985386f0b52bdb8b20141a32b0e5310307eecb | 90 | py | Python | maps/__init__.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | maps/__init__.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | 11 | 2020-03-24T15:29:46.000Z | 2022-03-11T23:14:48.000Z | maps/__init__.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | from maps.utils.layers import OVERLAY_LAYERS
default_app_config = 'maps.apps.MapsConfig'
| 22.5 | 44 | 0.833333 | 13 | 90 | 5.538462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 90 | 3 | 45 | 30 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
11c292dcf1b47a89a535b9260a173e3dff261ebc | 1,174 | py | Python | make/platform/platform.py | tompis/casual | d838716c7052a906af8a19e945a496acdc7899a2 | [
"MIT"
] | null | null | null | make/platform/platform.py | tompis/casual | d838716c7052a906af8a19e945a496acdc7899a2 | [
"MIT"
] | null | null | null | make/platform/platform.py | tompis/casual | d838716c7052a906af8a19e945a496acdc7899a2 | [
"MIT"
] | null | null | null | import casual.make.platform.registry
import os
class Platform:
def pre_make(self): pass
def post_make(self): pass
def link_directive(self, libs): pass
def include_paths(self, paths): pass
def library_paths(self, paths): pass
def library_name(self, baseFilename): p... | 30.894737 | 94 | 0.708688 | 142 | 1,174 | 5.753521 | 0.309859 | 0.145655 | 0.067319 | 0.117503 | 0.476132 | 0.343941 | 0.275398 | 0.110159 | 0 | 0 | 0 | 0 | 0.205281 | 1,174 | 38 | 95 | 30.894737 | 0.87567 | 0.028961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.818182 | false | 0.772727 | 0.090909 | 0.045455 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
11daa08892d27abdd75ac8e0bef59a81169d2ae2 | 1,506 | py | Python | Exerc_Python/fase9.py | BotoniLucas/Curso_Python | 6d6243e65758998d5cdd81b0ad06224784b88cb8 | [
"MIT"
] | null | null | null | Exerc_Python/fase9.py | BotoniLucas/Curso_Python | 6d6243e65758998d5cdd81b0ad06224784b88cb8 | [
"MIT"
] | null | null | null | Exerc_Python/fase9.py | BotoniLucas/Curso_Python | 6d6243e65758998d5cdd81b0ad06224784b88cb8 | [
"MIT"
] | null | null | null | print('''Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tempus felis felis, vitae dictum ipsum viverra ut. Etiam in fringilla ex.
Sed vestibulum dui nisl, quis ultricies mi blandit vel. Aliquam ultricies eros vel arcu fringilla, nec condimentum odio malesuada. Donec aliquam justo et massa pretium,
vi... | 94.125 | 175 | 0.780876 | 229 | 1,506 | 5.135371 | 0.663755 | 0.042517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.152722 | 1,506 | 16 | 176 | 94.125 | 0.918495 | 0.235724 | 0 | 0 | 0 | 0.461538 | 0.853893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.538462 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
11de4da131c82e1a801d933b538773f83271803c | 363 | py | Python | encryptTool.py | stableShip/signTool | f18cd400b994468ad43e78b28dba8f13af3a2e23 | [
"MIT"
] | 1 | 2016-01-04T12:23:46.000Z | 2016-01-04T12:23:46.000Z | encryptTool.py | stableShip/signTool | f18cd400b994468ad43e78b28dba8f13af3a2e23 | [
"MIT"
] | null | null | null | encryptTool.py | stableShip/signTool | f18cd400b994468ad43e78b28dba8f13af3a2e23 | [
"MIT"
] | null | null | null | # coding=utf-8
import hashlib
import base64
def sha1_encode(string):
sha1 = hashlib.sha1
return sha1(string).hexdigest()
def md5_encode(string):
md5 = hashlib.md5
return md5(string).hexdigest()
def base64_encode(string):
return base64.b64encode(string)
def base64_decode(encoding_string):
... | 15.782609 | 44 | 0.735537 | 47 | 363 | 5.553191 | 0.361702 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076159 | 0.168044 | 363 | 22 | 45 | 16.5 | 0.788079 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
11eb83be8fbf1614e48567d2fb90f69659b7303f | 136 | py | Python | otsun/logging_unit.py | RamonPujol/OTSun | 0a587980b8465bcc886811de246718e08e6dab06 | [
"MIT"
] | 5 | 2019-02-28T10:29:51.000Z | 2022-02-09T10:31:20.000Z | otsun/logging_unit.py | RamonPujol/OTSun | 0a587980b8465bcc886811de246718e08e6dab06 | [
"MIT"
] | 4 | 2017-02-07T11:10:24.000Z | 2018-06-21T15:33:23.000Z | otsun/logging_unit.py | RamonPujol/OTSun | 0a587980b8465bcc886811de246718e08e6dab06 | [
"MIT"
] | 6 | 2019-02-28T10:29:56.000Z | 2022-03-28T16:58:40.000Z | """
Module otsun.logging_unit: Sets up a logger for all logs emitted from otsun
"""
import logging
logger = logging.getLogger("otsun")
| 19.428571 | 75 | 0.75 | 20 | 136 | 5.05 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 136 | 6 | 76 | 22.666667 | 0.87069 | 0.551471 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
11fad1dba3a91d3aaef232bfab4c052c4731aefb | 240 | py | Python | tests/calling/vargs2.py | chrivers/pyjaco | 8ad793dce34ab7aed3b973aae729d6a943a2381c | [
"MIT"
] | 38 | 2015-01-01T18:08:59.000Z | 2022-02-18T08:57:27.000Z | tests/calling/vargs2.py | chrivers/pyjaco | 8ad793dce34ab7aed3b973aae729d6a943a2381c | [
"MIT"
] | 1 | 2020-01-08T04:32:52.000Z | 2020-01-08T04:32:52.000Z | tests/calling/vargs2.py | chrivers/pyjaco | 8ad793dce34ab7aed3b973aae729d6a943a2381c | [
"MIT"
] | 12 | 2016-03-07T09:30:49.000Z | 2021-09-05T20:38:47.000Z |
def test0(*varargs):
print varargs
class foo(object):
def test1(self, *varargs):
print varargs
@staticmethod
def test2(*varargs):
print varargs
c = foo()
test0(2,3,4,5)
c.test1(2,3,4,5)
c.test2(2,3,4,5)
| 13.333333 | 30 | 0.6 | 39 | 240 | 3.692308 | 0.410256 | 0.25 | 0.395833 | 0.083333 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099448 | 0.245833 | 240 | 17 | 31 | 14.117647 | 0.696133 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11fe7e3fb599dead3b8095ae94f3eaf44c7819a1 | 798 | py | Python | leetcode/20-Easy-Valid-Parentheses/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 25 | 2018-05-22T15:18:50.000Z | 2022-01-08T02:41:46.000Z | leetcode/20-Easy-Valid-Parentheses/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 1 | 2019-05-24T16:55:27.000Z | 2019-05-24T16:55:27.000Z | leetcode/20-Easy-Valid-Parentheses/answer.py | vaishali-bariwal/Practice-Coding-Questions | 747bfcb1cb2be5340daa745f2b9938f0ee87c9ac | [
"Unlicense"
] | 18 | 2018-09-20T15:39:26.000Z | 2022-03-02T21:38:22.000Z | #!/usr/bin/env python3
#-------------------------------------------------------------------------------
# solution
#-------------------------------------------------------------------------------
class Solution:
def isValid(self, s):
"""
:type s: str
:rtype: bool
"""
stack ... | 30.692308 | 80 | 0.253133 | 60 | 798 | 3.366667 | 0.5 | 0.237624 | 0.133663 | 0.178218 | 0.287129 | 0.287129 | 0.287129 | 0.287129 | 0.287129 | 0.287129 | 0 | 0.009328 | 0.328321 | 798 | 25 | 81 | 31.92 | 0.367537 | 0.367168 | 0 | 0 | 0 | 0 | 0.01919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f504201d11c57966042ea0982c8c973995a9c0dc | 233 | py | Python | avalanche/models/base_model.py | coreylowman/avalanche | 9c1e7765f1577c400ec0c57260221bcffd9566a2 | [
"MIT"
] | 810 | 2018-10-08T15:49:05.000Z | 2022-03-31T15:28:09.000Z | avalanche/models/base_model.py | coreylowman/avalanche | 9c1e7765f1577c400ec0c57260221bcffd9566a2 | [
"MIT"
] | 477 | 2021-03-01T17:50:51.000Z | 2022-03-31T14:51:23.000Z | avalanche/models/base_model.py | coreylowman/avalanche | 9c1e7765f1577c400ec0c57260221bcffd9566a2 | [
"MIT"
] | 147 | 2018-10-08T15:49:18.000Z | 2022-03-31T04:08:45.000Z | from abc import ABC, abstractmethod
class BaseModel(ABC):
"""
A base abstract class for models
"""
@abstractmethod
def get_features(self, x):
"""
Get features from model given input
"""
| 16.642857 | 43 | 0.592275 | 26 | 233 | 5.269231 | 0.730769 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317597 | 233 | 13 | 44 | 17.923077 | 0.861635 | 0.291845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
ee97e0f142e1bebc498692d3bce585d6c57ebaf0 | 166 | py | Python | server/routes/health.py | alessiosavi/flask-web-app | a690fd70d8ab6beda1e5f353bbb7f1315b86d24a | [
"Apache-2.0"
] | null | null | null | server/routes/health.py | alessiosavi/flask-web-app | a690fd70d8ab6beda1e5f353bbb7f1315b86d24a | [
"Apache-2.0"
] | null | null | null | server/routes/health.py | alessiosavi/flask-web-app | a690fd70d8ab6beda1e5f353bbb7f1315b86d24a | [
"Apache-2.0"
] | null | null | null | from flask import jsonify
from server import app
@app.route("/health")
def health():
"""health route"""
state = {"status": "UP"}
return jsonify(state)
| 15.090909 | 28 | 0.638554 | 21 | 166 | 5.047619 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204819 | 166 | 10 | 29 | 16.6 | 0.80303 | 0.072289 | 0 | 0 | 0 | 0 | 0.101351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
eead2dfd8ba315c36af5af2439d52ae82eb70876 | 367 | py | Python | scripts/azvnet-integration/notebook.py | iandexter/terraform-provider-databricks | b12bb6d05e07c539e8c96ba8b27fed5457ca1300 | [
"Apache-2.0"
] | 24 | 2020-04-29T13:07:10.000Z | 2020-06-12T16:27:51.000Z | scripts/azvnet-integration/notebook.py | iandexter/terraform-provider-databricks | b12bb6d05e07c539e8c96ba8b27fed5457ca1300 | [
"Apache-2.0"
] | 81 | 2020-04-29T21:32:39.000Z | 2020-06-15T15:36:47.000Z | scripts/azvnet-integration/notebook.py | iandexter/terraform-provider-databricks | b12bb6d05e07c539e8c96ba8b27fed5457ca1300 | [
"Apache-2.0"
] | 16 | 2020-04-30T16:25:58.000Z | 2020-06-11T12:00:29.000Z | # Databricks notebook source
# MAGIC %fs ls /mnt/sample
# COMMAND ----------
# MAGIC %sh ls /dbfs/mnt/sample
# COMMAND ----------
dbutils.widgets.text("department", "")
print(f'Department is {dbutils.widgets.get("department")}')
print(f'But secret is redacted: {dbutils.secrets.get("terraform", "blob_storage_key")}')... | 30.583333 | 134 | 0.689373 | 48 | 367 | 5.229167 | 0.6875 | 0.071713 | 0.12749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100817 | 367 | 11 | 135 | 33.363636 | 0.760606 | 0.444142 | 0 | 0 | 0 | 0 | 0.695431 | 0.345178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
eeb6f228ffb4ca24386e74b613147511bfaa11f0 | 865 | py | Python | src/rnn_play/rnn_playground.py | malcolmgreaves/rnn_playground | 4e7562530ccd161c26b183fc28b9508beac36328 | [
"Apache-2.0"
] | null | null | null | src/rnn_play/rnn_playground.py | malcolmgreaves/rnn_playground | 4e7562530ccd161c26b183fc28b9508beac36328 | [
"Apache-2.0"
] | null | null | null | src/rnn_play/rnn_playground.py | malcolmgreaves/rnn_playground | 4e7562530ccd161c26b183fc28b9508beac36328 | [
"Apache-2.0"
] | null | null | null | from sys import argv
def main():
print("""TODO
(1) number sequence prediction
(1.1) (a) function to generate values
(b) generate sequence
(c) train to memorize
(1.2) (a) generate _many_ sequences
(b) train over _all_
(c) predict (*sh... | 34.6 | 88 | 0.612717 | 122 | 865 | 4.213115 | 0.655738 | 0.007782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.299422 | 865 | 24 | 89 | 36.041667 | 0.828383 | 0 | 0 | 0 | 1 | 0.052632 | 0.904046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | true | 0 | 0.052632 | 0 | 0.105263 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eeb885eb044a275be59fb18074e4aff5f00eae51 | 71 | py | Python | FirstStepsInPython/Basics/More Exercises/First Steps in Coding/02.TriangleArea.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | null | null | null | FirstStepsInPython/Basics/More Exercises/First Steps in Coding/02.TriangleArea.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | null | null | null | FirstStepsInPython/Basics/More Exercises/First Steps in Coding/02.TriangleArea.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | 1 | 2021-10-07T18:30:42.000Z | 2021-10-07T18:30:42.000Z | a = float(input())
h = float(input())
s = (a * h) / 2
print(f"{s:.2f}") | 17.75 | 18 | 0.492958 | 14 | 71 | 2.5 | 0.642857 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.183099 | 71 | 4 | 19 | 17.75 | 0.568966 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eed7f38b77326fde11d4a52c58e14e9bf773fdeb | 188 | py | Python | stock_analysis/static/test-data.py | ztaylor2/stock-analysis | 57edd3a7b33a61cf3b7f68dab6b7640ccdc65a02 | [
"MIT"
] | 15 | 2017-11-03T17:30:02.000Z | 2022-01-14T06:15:06.000Z | stock_analysis/static/test-data.py | seekdestiny/stock-analysis | 57edd3a7b33a61cf3b7f68dab6b7640ccdc65a02 | [
"MIT"
] | 3 | 2019-12-26T16:39:17.000Z | 2021-06-01T21:56:41.000Z | stock_analysis/static/test-data.py | seekdestiny/stock-analysis | 57edd3a7b33a61cf3b7f68dab6b7640ccdc65a02 | [
"MIT"
] | 4 | 2018-03-01T06:35:08.000Z | 2021-04-02T16:39:12.000Z | """."""
stock = {'Book_Value_per_Share': '10.051',
'name': 'Yahoo',
'symbol': 'YHOO',
'price': '14.96',
'growth': '2.48',
'percent': '1.47%'}
| 20.888889 | 42 | 0.409574 | 20 | 188 | 3.7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11811 | 0.324468 | 188 | 8 | 43 | 23.5 | 0.464567 | 0.005319 | 0 | 0 | 0 | 0 | 0.425414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e10f708c4d165595df59a284b770b334e862e107 | 367 | py | Python | page/__init__.py | asd778623877/Automat-test | cdfad2b35daf8cf728f5d35175a8d1642bcba35c | [
"Apache-2.0"
] | 1 | 2020-04-25T14:00:58.000Z | 2020-04-25T14:00:58.000Z | page/__init__.py | asd778623877/Automat-test | cdfad2b35daf8cf728f5d35175a8d1642bcba35c | [
"Apache-2.0"
] | null | null | null | page/__init__.py | asd778623877/Automat-test | cdfad2b35daf8cf728f5d35175a8d1642bcba35c | [
"Apache-2.0"
] | null | null | null | from selenium.webdriver.common.by import By
tnar_n=(By.ID,'com.mobilefly.pda:id/edtName')
tnar_p=(By.ID,'com.mobilefly.pda:id/edtPassword')
tnar_e=(By.ID,'com.mobilefly.pda:id/btnLogin')
'''设置页面搜索
'''
search_s=(By.ID,"com.android.settings:id/search")
search_p=(By.ID,"com.android.settings:id/mc_search_edit")
search... | 26.214286 | 57 | 0.757493 | 63 | 367 | 4.269841 | 0.460317 | 0.074349 | 0.130112 | 0.178439 | 0.412639 | 0.412639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043597 | 367 | 14 | 58 | 26.214286 | 0.766382 | 0 | 0 | 0 | 0 | 0 | 0.515493 | 0.515493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e1115b3e6b60bf70054e89bfe33dc5c9754fd691 | 2,999 | py | Python | vseq/modules/straight_through.py | JakobHavtorn/vseq | bdd0258738b5f43d6f0f6c3df4b8b270f06d0aea | [
"MIT"
] | 7 | 2021-03-25T12:33:53.000Z | 2022-03-23T13:10:31.000Z | vseq/modules/straight_through.py | JakobHavtorn/vseq | bdd0258738b5f43d6f0f6c3df4b8b270f06d0aea | [
"MIT"
] | null | null | null | vseq/modules/straight_through.py | JakobHavtorn/vseq | bdd0258738b5f43d6f0f6c3df4b8b270f06d0aea | [
"MIT"
] | null | null | null | import torch
class STEFunction(torch.autograd.Function):
"""Abstract base class for Straight-Through Estimator"""
@staticmethod
def forward(ctx, x: torch.Tensor):
raise NotImplementedError()
@staticmethod
def backward(ctx, grad_output: torch.Tensor):
return grad_output
class Bin... | 32.247312 | 111 | 0.648883 | 371 | 2,999 | 5.026954 | 0.264151 | 0.047185 | 0.063807 | 0.042895 | 0.447721 | 0.443968 | 0.420912 | 0.359786 | 0.297051 | 0.297051 | 0 | 0.012007 | 0.222407 | 2,999 | 92 | 112 | 32.597826 | 0.787736 | 0.050684 | 0 | 0.42623 | 0 | 0.016393 | 0.064528 | 0.007405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0.04918 | 0.114754 | 0.508197 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e1195fcf2fd50d764ed956e34c5c3db16c081c3b | 375 | py | Python | DOT_assignment/__init__.py | kachark/FormFlight | 94189581ecd28ab5d9d30e2b171a3fa3296029a7 | [
"MIT"
] | 5 | 2019-11-03T06:35:28.000Z | 2021-05-25T16:21:28.000Z | DOT_assignment/__init__.py | kachark/FormFlight | 94189581ecd28ab5d9d30e2b171a3fa3296029a7 | [
"MIT"
] | null | null | null | DOT_assignment/__init__.py | kachark/FormFlight | 94189581ecd28ab5d9d30e2b171a3fa3296029a7 | [
"MIT"
] | null | null | null |
# Submodules and packages
from . import setup
from . import run
from . import agents
from . import controls
from . import dynamics
from . import engine
from . import systems
from . import linear_models_2D
from . import linear_models_3D
from . import assignments
from . import log
from .post_process import post_process... | 19.736842 | 38 | 0.784 | 55 | 375 | 5.145455 | 0.436364 | 0.388693 | 0.113074 | 0.155477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015974 | 0.165333 | 375 | 18 | 39 | 20.833333 | 0.888179 | 0.061333 | 0 | 0 | 0 | 0 | 0.014327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.928571 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0107e5a3c849b8f3f4155421fc8f009ad9b942ee | 312 | py | Python | backend/library/middleware.py | Cardinal-Alpha/fullstack-demo | 1f68a46d290479a286f0180bb1be20b2f6732afa | [
"MIT"
] | null | null | null | backend/library/middleware.py | Cardinal-Alpha/fullstack-demo | 1f68a46d290479a286f0180bb1be20b2f6732afa | [
"MIT"
] | null | null | null | backend/library/middleware.py | Cardinal-Alpha/fullstack-demo | 1f68a46d290479a286f0180bb1be20b2f6732afa | [
"MIT"
] | null | null | null | from django.middleware.csrf import CsrfViewMiddleware
from django.contrib.auth.middleware import AuthenticationMiddleware
def disableCSRF(getres):
def func(request, *args, **kwargs):
setattr(request, '_dont_enforce_csrf_checks', True)
return getres(request, *args, **kwargs)
return func | 34.666667 | 67 | 0.753205 | 35 | 312 | 6.6 | 0.628571 | 0.08658 | 0.147186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 312 | 9 | 68 | 34.666667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.079872 | 0.079872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
010fad40ce917c85b728c42612aa1d10a9919e34 | 231 | py | Python | learning/box-length.py | diegomontejano/python | b813947049e79ab3ca7aa5048c9d3fbe1c447686 | [
"MIT"
] | null | null | null | learning/box-length.py | diegomontejano/python | b813947049e79ab3ca7aa5048c9d3fbe1c447686 | [
"MIT"
] | null | null | null | learning/box-length.py | diegomontejano/python | b813947049e79ab3ca7aa5048c9d3fbe1c447686 | [
"MIT"
] | null | null | null | def box(x):
length = len(x) # Cria uma caixa ajustável com a mesma qnt de caracteres da string
if length:
print("+", "-" * length, "+")
print("|", x, "|")
print("+", "-" * length, "+")
box("Diego") | 28.875 | 87 | 0.493506 | 28 | 231 | 4.071429 | 0.714286 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290043 | 231 | 8 | 88 | 28.875 | 0.695122 | 0.277056 | 0 | 0.285714 | 0 | 0 | 0.078313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0114328a9434232cd7e8948a92f38b5f92d2a94c | 551 | py | Python | patterns/cli/services/environments.py | basis-os/basis-devkit | 0e650457a905782ffd66b226d17f3d9546b4ed3b | [
"BSD-3-Clause"
] | 7 | 2021-12-08T17:17:33.000Z | 2022-03-31T04:23:43.000Z | patterns/cli/services/environments.py | basis-os/basis-devkit | 0e650457a905782ffd66b226d17f3d9546b4ed3b | [
"BSD-3-Clause"
] | 28 | 2021-10-14T18:46:36.000Z | 2022-03-30T20:39:15.000Z | patterns/cli/services/environments.py | basis-os/basis-devkit | 0e650457a905782ffd66b226d17f3d9546b4ed3b | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
from patterns.cli.services.api import Endpoints, get_json
from patterns.cli.services.pagination import paginated
def get_environment_by_name(organization_uid: str, name: str) -> dict:
return get_json(Endpoints.environment_by_slug(organization_uid, name))
def get_environment_b... | 30.611111 | 74 | 0.823956 | 74 | 551 | 5.783784 | 0.351351 | 0.065421 | 0.091122 | 0.154206 | 0.301402 | 0.196262 | 0.196262 | 0.196262 | 0 | 0 | 0 | 0 | 0.099819 | 551 | 17 | 75 | 32.411765 | 0.862903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0.3 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
011e64b7c8907535999b2e549b8886eec7776cb7 | 466 | py | Python | common/types.py | gavincangan/alvin | 4e1945a3f5bb061842f0e35633f254863f8923c8 | [
"MIT"
] | 2 | 2019-01-26T00:12:35.000Z | 2020-01-30T01:25:22.000Z | common/types.py | gavincangan/alvin | 4e1945a3f5bb061842f0e35633f254863f8923c8 | [
"MIT"
] | null | null | null | common/types.py | gavincangan/alvin | 4e1945a3f5bb061842f0e35633f254863f8923c8 | [
"MIT"
] | 2 | 2018-07-12T17:44:12.000Z | 2021-04-12T06:49:03.000Z | import pyglet
class Twist(object):
"""2D motion described by velocity components
:ivar roboticsintro.common.Vector linear: linear component of twist
:ivar float angular: angular component of twist (z-axis rotation)
"""
def __init__(self, linear=0., angular=0.):
self.linear = linear
... | 29.125 | 71 | 0.650215 | 55 | 466 | 5.363636 | 0.545455 | 0.101695 | 0.108475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008427 | 0.236052 | 466 | 15 | 72 | 31.066667 | 0.820225 | 0.379828 | 0 | 0 | 0 | 0 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0127a6e5d3acd5a939e7f59cb65222ac1b188fa4 | 672 | py | Python | plugins/systools.py | ItzSjDude/PikaBotPlugins | 6b468a43caefbea5b8f3cd2c1ca83790380e1f5b | [
"Apache-2.0"
] | 1 | 2020-10-29T15:44:57.000Z | 2020-10-29T15:44:57.000Z | plugins/systools.py | ItzSjDude/PikaBotPlugins | 6b468a43caefbea5b8f3cd2c1ca83790380e1f5b | [
"Apache-2.0"
] | null | null | null | plugins/systools.py | ItzSjDude/PikaBotPlugins | 6b468a43caefbea5b8f3cd2c1ca83790380e1f5b | [
"Apache-2.0"
] | 4 | 2020-10-28T09:02:35.000Z | 2020-12-27T22:45:57.000Z | """**HEROKU MANAGER**\n\n
{i}set|get|del var <VarName>
**Usage**: set|get|del Heroku Vars\n
{i}usage
**Usage**: Shows Dynos usage\n
{i}logs
**Usage**: Sends your botlogs in current chat\n
{i}restart
**Usage**: Restarts Pikabot"""
from . import _dyno, _logs, _restart, _vars
@ItzSjDude(outgoing=True, pattern=r"(set|ge... | 21 | 82 | 0.660714 | 97 | 672 | 4.453608 | 0.371134 | 0.018519 | 0.194444 | 0.259259 | 0.201389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133929 | 672 | 31 | 83 | 21.677419 | 0.742268 | 0.324405 | 0 | 0.153846 | 0 | 0 | 0.151242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
014f6eed808e59fa1ebbb1579373164fd65e9e4e | 2,123 | py | Python | tests/test_closing.py | altairwei/msword-cli | 11dea143ce7d9a486bb96505604687687bf33956 | [
"BSD-2-Clause"
] | 13 | 2015-05-14T07:35:47.000Z | 2021-12-10T22:10:00.000Z | tests/test_closing.py | altairwei/msword-cli | 11dea143ce7d9a486bb96505604687687bf33956 | [
"BSD-2-Clause"
] | 1 | 2018-04-02T19:31:04.000Z | 2018-04-02T19:31:04.000Z | tests/test_closing.py | altairwei/msword-cli | 11dea143ce7d9a486bb96505604687687bf33956 | [
"BSD-2-Clause"
] | 1 | 2020-09-02T11:20:42.000Z | 2020-09-02T11:20:42.000Z | import unittest
import mock
from click.testing import CliRunner
import msword_cli
from .util import MockApp
@mock.patch('msword_cli.WORD', spec_set=MockApp(['foo.docx']))
class TestCloseCommand(unittest.TestCase):
def setUp(self):
self.runner = CliRunner()
def test_close_defaults(self, mock_app):
... | 42.46 | 92 | 0.699011 | 275 | 2,123 | 5.167273 | 0.196364 | 0.078818 | 0.046446 | 0.063336 | 0.813512 | 0.764251 | 0.684025 | 0.658691 | 0.658691 | 0.651654 | 0 | 0.004619 | 0.184173 | 2,123 | 50 | 93 | 42.46 | 0.81582 | 0.060763 | 0 | 0.324324 | 0 | 0 | 0.024016 | 0 | 0 | 0 | 0 | 0 | 0.378378 | 1 | 0.189189 | false | 0 | 0.135135 | 0 | 0.351351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0150a8707bca02cc0b703ef1815039697c9b502b | 320 | py | Python | Sea/adapter/subsystems/SubsystemBend.py | FRidh/Sea | b474e93a449570a9ba3b915c4d80f814feee2545 | [
"BSD-3-Clause"
] | 2 | 2015-07-02T13:34:09.000Z | 2015-09-28T09:07:52.000Z | Sea/adapter/subsystems/SubsystemBend.py | FRidh/Sea | b474e93a449570a9ba3b915c4d80f814feee2545 | [
"BSD-3-Clause"
] | null | null | null | Sea/adapter/subsystems/SubsystemBend.py | FRidh/Sea | b474e93a449570a9ba3b915c4d80f814feee2545 | [
"BSD-3-Clause"
] | 1 | 2022-01-22T03:01:54.000Z | 2022-01-22T03:01:54.000Z | import abc
class SubsystemBend(object):
"""
Adapter class for bending wave subsystems.
"""
__metaclass__ = abc.ABCMeta
def __init__(self, obj):
obj.Component.Proxy.subsystem_bend = obj.Proxy
def onChanged(self, obj, prop):
pass
def execute(self, obj):
pass | 20 | 54 | 0.615625 | 36 | 320 | 5.222222 | 0.666667 | 0.111702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290625 | 320 | 16 | 55 | 20 | 0.828194 | 0.13125 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.222222 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
015a8f5cbc14f5831ee259cfda05d42735f44bfe | 3,759 | py | Python | app/university/models.py | gbr-mendes/ead-courses-api | fd0fcc8aef996c4b671f34d51a8a74aafdf78480 | [
"MIT"
] | 1 | 2022-01-31T18:12:42.000Z | 2022-01-31T18:12:42.000Z | app/university/models.py | gbr-mendes/ead-courses-api | fd0fcc8aef996c4b671f34d51a8a74aafdf78480 | [
"MIT"
] | null | null | null | app/university/models.py | gbr-mendes/ead-courses-api | fd0fcc8aef996c4b671f34d51a8a74aafdf78480 | [
"MIT"
] | null | null | null | import uuid
import datetime
from django.db import models
from django.conf import settings
from django.db.models.signals import post_save
from django.contrib.auth.models import Group
class Employee(models.Model):
id = models.UUIDField(
default=uuid.uuid4,
primary_key=True,
editable=False
... | 24.568627 | 78 | 0.657888 | 452 | 3,759 | 5.267699 | 0.212389 | 0.032339 | 0.038219 | 0.055859 | 0.767325 | 0.707686 | 0.707686 | 0.692146 | 0.684586 | 0.656027 | 0 | 0.008784 | 0.242884 | 3,759 | 152 | 79 | 24.730263 | 0.827829 | 0.027401 | 0 | 0.622807 | 0 | 0 | 0.010405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.052632 | 0.061404 | 0.482456 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
016c5ff1fbff07eee08024efb596fcce583827b5 | 134 | py | Python | bookchook/apps.py | tombasche/BookChook | 2b1b28c0156754da75e100e2f4ba9ada7b8be31d | [
"MIT"
] | 7 | 2017-12-12T08:33:05.000Z | 2019-07-29T14:14:53.000Z | bookchook/apps.py | tombasche/BookChook | 2b1b28c0156754da75e100e2f4ba9ada7b8be31d | [
"MIT"
] | 20 | 2016-10-16T03:43:15.000Z | 2018-10-29T00:14:23.000Z | bookchook/apps.py | tombasche/BookChook | 2b1b28c0156754da75e100e2f4ba9ada7b8be31d | [
"MIT"
] | 1 | 2018-10-23T04:06:59.000Z | 2018-10-23T04:06:59.000Z | from __future__ import unicode_literals
from django.apps import AppConfig
class BookchookConfig(AppConfig):
name = 'bookchook'
| 16.75 | 39 | 0.798507 | 15 | 134 | 6.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 134 | 7 | 40 | 19.142857 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
016e712c638488b83a3740d110e8d3ca23d6ba64 | 190 | py | Python | com/hackerrank/my_solves/LeftRotate.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | null | null | null | com/hackerrank/my_solves/LeftRotate.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | null | null | null | com/hackerrank/my_solves/LeftRotate.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | null | null | null | def rotateLeft(d, arr):
# Write your code here
for i in range(d):
popped_number = arr.pop(0)
arr.append(popped_number)
print(arr)
rotateLeft(4, [1, 2, 3, 4, 5]) | 21.111111 | 34 | 0.589474 | 31 | 190 | 3.548387 | 0.741935 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050725 | 0.273684 | 190 | 9 | 35 | 21.111111 | 0.746377 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
016f0e70c4069561e82cad93740ad7194ec7c1d7 | 430 | py | Python | invenio_subjects_mesh/download/download.py | fenekku/invenio-subjects-mesh-orig | 505ee9796908342c63477482c7324edd87234458 | [
"MIT"
] | null | null | null | invenio_subjects_mesh/download/download.py | fenekku/invenio-subjects-mesh-orig | 505ee9796908342c63477482c7324edd87234458 | [
"MIT"
] | 2 | 2021-06-29T19:45:30.000Z | 2021-06-29T19:52:39.000Z | invenio_subjects_mesh/download/download.py | fenekku/invenio-subjects-mesh-orig | 505ee9796908342c63477482c7324edd87234458 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 Northwestern University.
#
# invenio-subjects-mesh is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
# TODO: Place this file in download/ subpkg
"""Download MeSH file."""
import requests... | 21.5 | 73 | 0.697674 | 61 | 430 | 4.901639 | 0.737705 | 0.06689 | 0.107023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.186047 | 430 | 19 | 74 | 22.631579 | 0.84 | 0.753488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
017f3094680c5de1b072cde76037ebf3d2816ff3 | 228 | py | Python | PythonExercicios/ex057.py | raulgranja/Python-Course | eaf776ab144923266a4784586f6bdf21911a5235 | [
"MIT"
] | null | null | null | PythonExercicios/ex057.py | raulgranja/Python-Course | eaf776ab144923266a4784586f6bdf21911a5235 | [
"MIT"
] | null | null | null | PythonExercicios/ex057.py | raulgranja/Python-Course | eaf776ab144923266a4784586f6bdf21911a5235 | [
"MIT"
] | null | null | null | genero = str(input('Digite seu gênero [M/F]: ')).strip().upper()[0]
while genero not in 'FM':
genero = str(input('Gênero inválido, tente novamente [M/F]: ')).strip().upper()[0]
print('Gênero registrado ({})'.format(genero))
| 45.6 | 86 | 0.649123 | 33 | 228 | 4.484848 | 0.636364 | 0.121622 | 0.189189 | 0.162162 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.118421 | 228 | 4 | 87 | 57 | 0.726368 | 0 | 0 | 0 | 0 | 0 | 0.390351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d70161168f19db7ad2816b716390a95dc5c235d | 193 | py | Python | setup.py | jishnujayakumar/specter | 40e3b5e538004b00b0955f17dd3d71fb1f96b922 | [
"Apache-2.0"
] | null | null | null | setup.py | jishnujayakumar/specter | 40e3b5e538004b00b0955f17dd3d71fb1f96b922 | [
"Apache-2.0"
] | null | null | null | setup.py | jishnujayakumar/specter | 40e3b5e538004b00b0955f17dd3d71fb1f96b922 | [
"Apache-2.0"
] | null | null | null | import setuptools
from os import path
setuptools.setup(
name='hecter',
version='0.0.1',
url='https://github.com/jishnujayakumar/specter',
packages=setuptools.find_packages(),
) | 21.444444 | 53 | 0.709845 | 24 | 193 | 5.666667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.145078 | 193 | 9 | 54 | 21.444444 | 0.806061 | 0 | 0 | 0 | 0 | 0 | 0.273196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d8ea07b314849cbdc538528c3f5ac1f98b9207a | 3,954 | py | Python | robot/commands/autonomousprogram.py | FRC-1123/FRC2018-1123 | 1fb78b59ae2d988864ef2c6cbc507e7f1952d892 | [
"MIT"
] | null | null | null | robot/commands/autonomousprogram.py | FRC-1123/FRC2018-1123 | 1fb78b59ae2d988864ef2c6cbc507e7f1952d892 | [
"MIT"
] | null | null | null | robot/commands/autonomousprogram.py | FRC-1123/FRC2018-1123 | 1fb78b59ae2d988864ef2c6cbc507e7f1952d892 | [
"MIT"
] | null | null | null | import wpilib
from networktables import NetworkTables
from wpilib.command.commandgroup import CommandGroup
from commands.driveforward import DriveForward
from commands.setforwardspeed import SetForwardSpeed
from commands.setspeeds import SetSpeeds
from commands.turnright90 import TurnRight90
from commands.turnleft90 im... | 43.450549 | 89 | 0.628477 | 457 | 3,954 | 5.402626 | 0.190372 | 0.227218 | 0.336979 | 0.347509 | 0.611989 | 0.535034 | 0.528149 | 0.504658 | 0.473066 | 0.473066 | 0 | 0.049612 | 0.250632 | 3,954 | 91 | 90 | 43.450549 | 0.783665 | 0.264795 | 0 | 0.27451 | 0 | 0 | 0.123525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.235294 | 0 | 0.27451 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6daab76dfa0ccdb49421e77c0b95a27b01db4952 | 212 | py | Python | snippets/python-mode/file-header.py | combofish/emacs.d | 14736b5191857bdbf247785f4ddb6d74a3b5957c | [
"MIT"
] | 6 | 2018-12-16T00:37:19.000Z | 2021-11-12T11:47:52.000Z | snippets/python-mode/file-header.py | combofish/emacs.d | 14736b5191857bdbf247785f4ddb6d74a3b5957c | [
"MIT"
] | null | null | null | snippets/python-mode/file-header.py | combofish/emacs.d | 14736b5191857bdbf247785f4ddb6d74a3b5957c | [
"MIT"
] | null | null | null | # -*- mode: snippet -*-
# name: file header
# key: fh
# binding: direct-keybinding
# --
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: Combofish
# Filename: `(file-name-nondirectory buffer-file-name)`
$0 | 19.272727 | 55 | 0.641509 | 27 | 212 | 5.037037 | 0.851852 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.146226 | 212 | 11 | 56 | 19.272727 | 0.740331 | 0.896226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6dc83d13df7edaebbec10db8384a22b24c40b666 | 283 | py | Python | Python/Basics/Basics if-else.py | vvrsk/Hacker-Rank-Solutions | ee8d5c9d8505fd20798acbb7b115eac527438289 | [
"MIT"
] | null | null | null | Python/Basics/Basics if-else.py | vvrsk/Hacker-Rank-Solutions | ee8d5c9d8505fd20798acbb7b115eac527438289 | [
"MIT"
] | null | null | null | Python/Basics/Basics if-else.py | vvrsk/Hacker-Rank-Solutions | ee8d5c9d8505fd20798acbb7b115eac527438289 | [
"MIT"
] | null | null | null | /*
Python - Basics
*/
if __name__ == '__main__':
n = int(input())
if n%2!=0:
print("Weird")
elif n%2 == 0:
if 2<=n<=5:
print("Not Weird")
elif 6<=n<=20:
print("Weird")
elif n>20:
print("Not Weird")
| 16.647059 | 30 | 0.413428 | 37 | 283 | 2.945946 | 0.459459 | 0.247706 | 0.055046 | 0.275229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0.40636 | 283 | 16 | 31 | 17.6875 | 0.583333 | 0 | 0 | 0.285714 | 0 | 0 | 0.127208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6dcbd84fcfca66ab03d75cf3d688ad090d5607a0 | 1,110 | py | Python | tests/common.py | cp4cds/c4cds-wps | 5abd9281195548bbd1e7653fe2ab1fee26745200 | [
"Apache-2.0"
] | null | null | null | tests/common.py | cp4cds/c4cds-wps | 5abd9281195548bbd1e7653fe2ab1fee26745200 | [
"Apache-2.0"
] | 4 | 2018-10-24T15:08:48.000Z | 2020-01-14T16:05:26.000Z | tests/common.py | cp4cds/c4cds-wps | 5abd9281195548bbd1e7653fe2ab1fee26745200 | [
"Apache-2.0"
] | null | null | null | import os
from pywps.tests import WpsClient, WpsTestResponse
def resource_file(filepath):
return os.path.join(os.path.dirname(__file__), 'resources', filepath)
ARCHIVE_BASE = resource_file('data')
C3S_CMIP5_ARCHIVE_BASE = os.path.join(ARCHIVE_BASE, 'c3s-cmip5', 'output1')
CORDEX_ARCHIVE_BASE = os.path.join(ARC... | 33.636364 | 208 | 0.74955 | 153 | 1,110 | 5.196078 | 0.457516 | 0.096855 | 0.037736 | 0.047799 | 0.188679 | 0.188679 | 0.188679 | 0.108176 | 0 | 0 | 0 | 0.075026 | 0.123423 | 1,110 | 32 | 209 | 34.6875 | 0.742035 | 0.008108 | 0 | 0 | 0 | 0.105263 | 0.302368 | 0.256831 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.157895 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6dd2c2b183da541e3538f167b08c64f7778522f2 | 76 | py | Python | CouponEndpoints.py | cthacker-udel/walgreens-python-api | 9f3f64d786afec03df6ae91d60ec92a8f9d4f0f3 | [
"MIT"
] | 1 | 2021-04-30T21:18:10.000Z | 2021-04-30T21:18:10.000Z | CouponEndpoints.py | cthacker-udel/walgreens-python-api | 9f3f64d786afec03df6ae91d60ec92a8f9d4f0f3 | [
"MIT"
] | null | null | null | CouponEndpoints.py | cthacker-udel/walgreens-python-api | 9f3f64d786afec03df6ae91d60ec92a8f9d4f0f3 | [
"MIT"
] | null | null | null | sandbox_url = 'https://services-qa.walgreens.com/api/photo/order/coupon/v3'
| 38 | 75 | 0.776316 | 12 | 76 | 4.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.039474 | 76 | 1 | 76 | 76 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0.776316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6dd46ec998e96cb2e663f4e7eaab020af05431dd | 233 | py | Python | app.py | RobinSrimal/TechnicalAssignment | 3a75ba43195510b56482f1d186c1dd58452347ab | [
"MIT"
] | null | null | null | app.py | RobinSrimal/TechnicalAssignment | 3a75ba43195510b56482f1d186c1dd58452347ab | [
"MIT"
] | null | null | null | app.py | RobinSrimal/TechnicalAssignment | 3a75ba43195510b56482f1d186c1dd58452347ab | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from query import Query
app = FastAPI()
@app.get("/{iswc_code}")
async def get_right_owners(iswc_code):
query = Query()
right_owners = query.find_right_owners(iswc_code)
return right_owners
| 19.416667 | 53 | 0.742489 | 34 | 233 | 4.823529 | 0.411765 | 0.268293 | 0.182927 | 0.231707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16309 | 233 | 11 | 54 | 21.181818 | 0.841026 | 0 | 0 | 0 | 0 | 0 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ddb83a39c60caefb438dbe59d4310703ee0b3c0 | 249 | py | Python | packages/gtk-doc.py | bratsche/bockbuild | 04d583550aa8e067f84dcc081be61fd1a78d71e3 | [
"MIT"
] | null | null | null | packages/gtk-doc.py | bratsche/bockbuild | 04d583550aa8e067f84dcc081be61fd1a78d71e3 | [
"MIT"
] | null | null | null | packages/gtk-doc.py | bratsche/bockbuild | 04d583550aa8e067f84dcc081be61fd1a78d71e3 | [
"MIT"
] | null | null | null | GnomePackage ('gtk-doc', version_major = '1', version_minor = '18', configure_flags = ['--with-xml-catalog="%{prefix}/etc/xml/catalog"'], sources = [
'http://ftp.gnome.org/pub/gnome/sources/%{name}/%{version}/%{name}-%{version}.tar.bz2'
])
| 62.25 | 149 | 0.64257 | 32 | 249 | 4.90625 | 0.75 | 0.127389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.100402 | 249 | 3 | 150 | 83 | 0.683036 | 0 | 0 | 0 | 0 | 0.333333 | 0.562249 | 0.184739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ddf07ce376ead83c64834d4079813ff9a99b3b5 | 1,927 | py | Python | lucas-kanade/classes/lucas_kanade_tracker.py | playandlearntocode/general-purpose-algorithms | 7f279e019d378eeddc1296ce3aabe86515bc5daa | [
"MIT"
] | null | null | null | lucas-kanade/classes/lucas_kanade_tracker.py | playandlearntocode/general-purpose-algorithms | 7f279e019d378eeddc1296ce3aabe86515bc5daa | [
"MIT"
] | null | null | null | lucas-kanade/classes/lucas_kanade_tracker.py | playandlearntocode/general-purpose-algorithms | 7f279e019d378eeddc1296ce3aabe86515bc5daa | [
"MIT"
] | 2 | 2021-11-03T18:49:01.000Z | 2022-02-02T22:01:11.000Z | import numpy as np
class LucasKanadeTracker:
def get_intensity_changes_for_box_x(self, grid, row, col, box_size):
output = np.zeros((box_size, box_size))
for r in range(box_size):
for c in range(box_size):
next_value = 0
prev_value = 0
... | 33.807018 | 87 | 0.471199 | 263 | 1,927 | 3.235741 | 0.148289 | 0.139835 | 0.12691 | 0.137485 | 0.826087 | 0.817861 | 0.714454 | 0.561692 | 0.561692 | 0.561692 | 0 | 0.024021 | 0.41671 | 1,927 | 56 | 88 | 34.410714 | 0.733096 | 0.052413 | 0 | 0.487805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.02439 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6df6ae499e83184861482cae132e3d93c9cbaf5a | 1,226 | py | Python | pizza.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | pizza.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | pizza.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | """
pizza = {
'crust': 'thick',
'toppings': ['mushrooms', 'extra cheese'],
}
print(f"You ordered a {pizza['crust']}-crust pizza "
"with the following toppings:")
for topping in pizza['toppings']:
print("\t" + topping)
"""
# def make_pizza(*toppings):
# """Print all ingredients ordered by the cu... | 26.085106 | 73 | 0.641109 | 155 | 1,226 | 5.006452 | 0.264516 | 0.115979 | 0.061856 | 0.108247 | 0.623711 | 0.623711 | 0.623711 | 0.623711 | 0.570876 | 0.570876 | 0 | 0.004032 | 0.190865 | 1,226 | 46 | 74 | 26.652174 | 0.778226 | 0.815661 | 0 | 0 | 0 | 0 | 0.338384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6df703f9ef9929097b216a47f2767b50416de308 | 81 | py | Python | jFlash/Server/lweflash/LWEFlashConstants.py | LongWeekend/xflash | e8f3cd1e291ba6b391dcfc0764e43c310e9cb8af | [
"MIT"
] | null | null | null | jFlash/Server/lweflash/LWEFlashConstants.py | LongWeekend/xflash | e8f3cd1e291ba6b391dcfc0764e43c310e9cb8af | [
"MIT"
] | null | null | null | jFlash/Server/lweflash/LWEFlashConstants.py | LongWeekend/xflash | e8f3cd1e291ba6b391dcfc0764e43c310e9cb8af | [
"MIT"
] | 1 | 2020-11-04T03:57:17.000Z | 2020-11-04T03:57:17.000Z | APP_NAME_JAPANESE_FLASH = "japaneseflash"
APP_NAME_CHINESE_FLASH = "chineseflash" | 40.5 | 41 | 0.864198 | 10 | 81 | 6.4 | 0.7 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 81 | 2 | 42 | 40.5 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.304878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
097762585dcb53eebc8a554a9edfb1ddda6931d9 | 15 | py | Python | mtinfo/tvmaze/__init__.py | nixnodes/mtinfo | 884e865e6f4c616eb4db669ec72e332683bac66d | [
"MIT"
] | null | null | null | mtinfo/tvmaze/__init__.py | nixnodes/mtinfo | 884e865e6f4c616eb4db669ec72e332683bac66d | [
"MIT"
] | null | null | null | mtinfo/tvmaze/__init__.py | nixnodes/mtinfo | 884e865e6f4c616eb4db669ec72e332683bac66d | [
"MIT"
] | null | null | null | name = "tvmaze" | 15 | 15 | 0.666667 | 2 | 15 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 15 | 1 | 15 | 15 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
097f265802e76575c30fa65d8fcbb9c8c42daa9d | 320 | py | Python | writer/abstract_writer.py | keremkoseoglu/Setlist-Generator | 06548ab482e9dff34867da77476dc56a8dab7ac4 | [
"MIT"
] | 1 | 2021-11-06T04:54:40.000Z | 2021-11-06T04:54:40.000Z | writer/abstract_writer.py | keremkoseoglu/Setlist-Generator | 06548ab482e9dff34867da77476dc56a8dab7ac4 | [
"MIT"
] | 15 | 2020-05-27T18:02:07.000Z | 2022-03-31T09:35:22.000Z | writer/abstract_writer.py | keremkoseoglu/Setlist-Generator | 06548ab482e9dff34867da77476dc56a8dab7ac4 | [
"MIT"
] | null | null | null | """ Abstract writer module """
from abc import ABC, abstractmethod
from gig.performance import Performance
class AbstractWriter(ABC):
""" Abstract writer class """
def __init__(self):
pass
@abstractmethod
def write(self, generated_performance: Performance):
""" Writes a new file """
| 21.333333 | 56 | 0.678125 | 34 | 320 | 6.235294 | 0.617647 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221875 | 320 | 14 | 57 | 22.857143 | 0.851406 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0984e73bf948a7667e59992bedc0aad4890ada64 | 62 | py | Python | ajax/__init__.py | chrislea/django-ajax | 64c3b7bb81719450a4076b357717db0a23aa1eee | [
"BSD-3-Clause"
] | 1 | 2020-09-20T01:21:16.000Z | 2020-09-20T01:21:16.000Z | ajax/__init__.py | chrislea/django-ajax | 64c3b7bb81719450a4076b357717db0a23aa1eee | [
"BSD-3-Clause"
] | null | null | null | ajax/__init__.py | chrislea/django-ajax | 64c3b7bb81719450a4076b357717db0a23aa1eee | [
"BSD-3-Clause"
] | null | null | null | from ajax.endpoints import Endpoints
endpoint = Endpoints()
| 12.4 | 36 | 0.790323 | 7 | 62 | 7 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 62 | 4 | 37 | 15.5 | 0.924528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
098bc1d84283718c94001cfb907af736a567359f | 401 | py | Python | subscription/serializers.py | rashiddaha/health-care-backend | ed9f918a30f1648501184804816ab98d00bcc3ed | [
"MIT"
] | null | null | null | subscription/serializers.py | rashiddaha/health-care-backend | ed9f918a30f1648501184804816ab98d00bcc3ed | [
"MIT"
] | null | null | null | subscription/serializers.py | rashiddaha/health-care-backend | ed9f918a30f1648501184804816ab98d00bcc3ed | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import CreditsSetting
class CardDetailSerializer(serializers.Serializer):
card_holder = serializers.CharField(required=True)
credit_card_number = serializers.CharField(required=True)
exp_date = serializers.CharField(required=True)
card_cvv = serialize... | 40.1 | 61 | 0.810474 | 43 | 401 | 7.418605 | 0.511628 | 0.188088 | 0.351097 | 0.401254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114713 | 401 | 9 | 62 | 44.555556 | 0.898592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
099760de4e9ed4a0297e880c8fe42abb5491c3f5 | 291 | py | Python | Locators/login_page_locators.py | trandahang/herokuapp | bbc405f9b291eece0e1bd29bdbb92d6535443cb3 | [
"MIT"
] | null | null | null | Locators/login_page_locators.py | trandahang/herokuapp | bbc405f9b291eece0e1bd29bdbb92d6535443cb3 | [
"MIT"
] | null | null | null | Locators/login_page_locators.py | trandahang/herokuapp | bbc405f9b291eece0e1bd29bdbb92d6535443cb3 | [
"MIT"
] | null | null | null | from selenium.webdriver.common.by import By
class LoginpageLocators:
"""A class for main page locators.All main page locators should come here"""
INPUT_USERNAME = (By.ID, 'username')
INPUT_PASSWORD = (By.ID, 'password')
BUTTON_LOGIN = (By.XPATH, "//button[@type='submit']") | 36.375 | 80 | 0.701031 | 39 | 291 | 5.153846 | 0.666667 | 0.079602 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161512 | 291 | 8 | 81 | 36.375 | 0.82377 | 0.24055 | 0 | 0 | 0 | 0 | 0.185185 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
09a515e82dbe5d2c12b5afddb515a62bf0f5ea67 | 1,559 | py | Python | packages/mccomposite/python/mccomposite/ScattererComputationEngineFactory.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 5 | 2017-01-16T03:59:47.000Z | 2020-06-23T02:54:19.000Z | packages/mccomposite/python/mccomposite/ScattererComputationEngineFactory.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 293 | 2015-10-29T17:45:52.000Z | 2022-01-07T16:31:09.000Z | packages/mccomposite/python/mccomposite/ScattererComputationEngineFactory.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 1 | 2019-05-25T00:53:31.000Z | 2019-05-25T00:53:31.000Z | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 26.87931 | 87 | 0.575369 | 131 | 1,559 | 6.725191 | 0.412214 | 0.099886 | 0.096481 | 0.056754 | 0.106697 | 0.106697 | 0.106697 | 0.106697 | 0.106697 | 0 | 0 | 0.005124 | 0.248877 | 1,559 | 57 | 88 | 27.350877 | 0.747225 | 0.357922 | 0 | 0 | 0 | 0 | 0.136204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.04 | 0 | 0.12 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
09afd08a537ef0fefa5646d0769d63fbb6e6c8a0 | 4,167 | py | Python | besspin/fett/freertos/sudoScapy.py | mikkowus/BESSPIN-Tool-Suite | e87e9abb1156a8627aacc3272f1925b034129146 | [
"Apache-2.0"
] | null | null | null | besspin/fett/freertos/sudoScapy.py | mikkowus/BESSPIN-Tool-Suite | e87e9abb1156a8627aacc3272f1925b034129146 | [
"Apache-2.0"
] | null | null | null | besspin/fett/freertos/sudoScapy.py | mikkowus/BESSPIN-Tool-Suite | e87e9abb1156a8627aacc3272f1925b034129146 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
"""
TFTP/OTA tests using SCAPY to forge malicious TFTP packets
This program uses the SCAPY module so must be run as ROOT
"""
def spoofTFTP(hostIP, targetIP, TFTPPort):
# attackString is a malicious "filename" for a TFTP Write-Request packet.
# The filename herein is too long, so it wil... | 43.863158 | 522 | 0.674346 | 760 | 4,167 | 3.647368 | 0.406579 | 0.194805 | 0.290043 | 0.383838 | 0.1829 | 0.158009 | 0.13925 | 0.13925 | 0.13925 | 0.13925 | 0 | 0.103503 | 0.24646 | 4,167 | 94 | 523 | 44.329787 | 0.779299 | 0.397408 | 0 | 0.148936 | 0 | 0.042553 | 0.403473 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.021277 | false | 0.021277 | 0.042553 | 0 | 0.085106 | 0.212766 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09c93fd5e5afe5fe92486d8d562763252b9ab8c9 | 93 | py | Python | gaelic-score.py | Omi0604/DCU-Einstein- | b35e2657b8e27904035e881021c9bdf9e51675bb | [
"MIT"
] | null | null | null | gaelic-score.py | Omi0604/DCU-Einstein- | b35e2657b8e27904035e881021c9bdf9e51675bb | [
"MIT"
] | null | null | null | gaelic-score.py | Omi0604/DCU-Einstein- | b35e2657b8e27904035e881021c9bdf9e51675bb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
n = int(input())
m = int(input())
total = (n * 3) + m
print(total)
| 10.333333 | 22 | 0.55914 | 16 | 93 | 3.25 | 0.6875 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.204301 | 93 | 8 | 23 | 11.625 | 0.675676 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09f741011c46431031aee0c68849fbb05807f81e | 1,053 | py | Python | palsbet/migrations/0010_auto_20180504_0611.py | denis254/palsbetc | d70d0fadaa661ff36c046a4f0a87a88d890c0dc4 | [
"BSD-3-Clause"
] | null | null | null | palsbet/migrations/0010_auto_20180504_0611.py | denis254/palsbetc | d70d0fadaa661ff36c046a4f0a87a88d890c0dc4 | [
"BSD-3-Clause"
] | 11 | 2020-03-24T16:11:23.000Z | 2021-12-13T19:47:29.000Z | palsbet/migrations/0010_auto_20180504_0611.py | denis254/overtimebet | 063af2fc263580d96e396e953ef8658a75ac38a5 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.3 on 2018-05-04 03:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('palsbet', '0009_auto_20180504_0610'),
]
operations = [
migrations.AlterField(
model_name='freetipsgames',
name='publ... | 30.970588 | 89 | 0.616334 | 105 | 1,053 | 5.961905 | 0.390476 | 0.127796 | 0.159744 | 0.185304 | 0.64377 | 0.64377 | 0.64377 | 0.64377 | 0.64377 | 0.64377 | 0 | 0.040629 | 0.275404 | 1,053 | 33 | 90 | 31.909091 | 0.779817 | 0.042735 | 0 | 0.592593 | 1 | 0 | 0.184891 | 0.022863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61ce449fc928b2a9332203a5c5f9f49582f53cd5 | 167 | py | Python | api_location/urls.py | archkwon/python-django-restful-mysql | a8097c08057de9656cb40266420fcffebb11bdb6 | [
"MIT"
] | null | null | null | api_location/urls.py | archkwon/python-django-restful-mysql | a8097c08057de9656cb40266420fcffebb11bdb6 | [
"MIT"
] | null | null | null | api_location/urls.py | archkwon/python-django-restful-mysql | a8097c08057de9656cb40266420fcffebb11bdb6 | [
"MIT"
] | null | null | null | from . import views
from django.urls import path, include
urlpatterns = [
path(r'tacar/v1/driver/location/get', views.DriverLocationView.as_view()), #특정기사위치정보
]
| 20.875 | 88 | 0.742515 | 22 | 167 | 5.590909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.131737 | 167 | 7 | 89 | 23.857143 | 0.841379 | 0.047904 | 0 | 0 | 0 | 0 | 0.177215 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
61d33ca8a539bb503d36ea529efb94bd0429fcd2 | 457 | py | Python | surround/experiment/web/project_explorer.py | agrantdeakin/surround | bc6f87bb570d93f362ab01647df197af7e549522 | [
"BSD-3-Clause"
] | 1 | 2019-11-18T00:12:48.000Z | 2019-11-18T00:12:48.000Z | surround/experiment/web/project_explorer.py | agrantdeakin/surround | bc6f87bb570d93f362ab01647df197af7e549522 | [
"BSD-3-Clause"
] | null | null | null | surround/experiment/web/project_explorer.py | agrantdeakin/surround | bc6f87bb570d93f362ab01647df197af7e549522 | [
"BSD-3-Clause"
] | null | null | null | import os
import tornado.web
class ProjectExplorer(tornado.web.RequestHandler):
def initialize(self, experiment_reader):
self.experiment_reader = experiment_reader
def get(self):
projects = self.experiment_reader.get_projects()
project_names = [proj['project_name'] for proj in projects... | 35.153846 | 133 | 0.743982 | 56 | 457 | 5.821429 | 0.482143 | 0.196319 | 0.184049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155361 | 457 | 12 | 134 | 38.083333 | 0.84456 | 0 | 0 | 0 | 0 | 0 | 0.07221 | 0.045952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
61dd4387496cbbc2713c6153f48c0c2380baadc4 | 665 | py | Python | onnx_jax/handlers/backend/shape.py | gglin001/onnx_jax | 08e2a1181250db48f4436f6430903fc895a3a1d6 | [
"Apache-2.0"
] | 9 | 2021-04-12T02:37:14.000Z | 2022-03-28T23:31:40.000Z | onnx_jax/handlers/backend/shape.py | gglin001/onnx-jax | 08e2a1181250db48f4436f6430903fc895a3a1d6 | [
"Apache-2.0"
] | null | null | null | onnx_jax/handlers/backend/shape.py | gglin001/onnx-jax | 08e2a1181250db48f4436f6430903fc895a3a1d6 | [
"Apache-2.0"
] | null | null | null | import jax.numpy as jnp
from jax import jit
from onnx_jax.handlers.backend_handler import BackendHandler
from onnx_jax.handlers.handler import onnx_op
from onnx_jax.pb_wrapper import OnnxNode
@onnx_op("Shape")
class Shape(BackendHandler):
@classmethod
def _common(cls, node: OnnxNode, **kwargs):
@jit
... | 24.62963 | 60 | 0.673684 | 87 | 665 | 4.988506 | 0.402299 | 0.092166 | 0.076037 | 0.087558 | 0.175115 | 0.175115 | 0.175115 | 0.175115 | 0 | 0 | 0 | 0.01751 | 0.227068 | 665 | 26 | 61 | 25.576923 | 0.826848 | 0.034586 | 0 | 0.263158 | 0 | 0 | 0.007813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.263158 | 0.157895 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
61e932d7efd92f4563fbceee30859f6cfe3dcc2b | 637 | py | Python | django/django_fundamentals/django_intro/dojoNinja_shell_project/shell_app/models.py | fatimaalheeh/python_stack | 9ba84e6dc030a65494f105152a97f0a38aa2e4f3 | [
"MIT"
] | null | null | null | django/django_fundamentals/django_intro/dojoNinja_shell_project/shell_app/models.py | fatimaalheeh/python_stack | 9ba84e6dc030a65494f105152a97f0a38aa2e4f3 | [
"MIT"
] | null | null | null | django/django_fundamentals/django_intro/dojoNinja_shell_project/shell_app/models.py | fatimaalheeh/python_stack | 9ba84e6dc030a65494f105152a97f0a38aa2e4f3 | [
"MIT"
] | null | null | null | from django.db import models
class dojos(models.Model):
name = models.CharField(max_length=255)
city = models.CharField(max_length=255)
state = models.CharField(max_length=2)
# created_at = models.DateTimeField(auto_now_add=True)
# updated_at = models.DateTimeField(auto_now=True)
class ninjas(mode... | 39.8125 | 88 | 0.745683 | 86 | 637 | 5.302326 | 0.372093 | 0.164474 | 0.197368 | 0.263158 | 0.618421 | 0.559211 | 0.355263 | 0.355263 | 0.355263 | 0.355263 | 0 | 0.023897 | 0.145997 | 637 | 16 | 89 | 39.8125 | 0.814338 | 0.318681 | 0 | 0 | 0 | 0 | 0.013953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
110335d9b21c86e8ac5ad910aa2ced11d3d0654e | 979 | py | Python | fetchr/fetchr_client.py | fetch-r/py-sdk | 03fc212458705dfc9c4cd851f412701b4b6f6777 | [
"MIT"
] | null | null | null | fetchr/fetchr_client.py | fetch-r/py-sdk | 03fc212458705dfc9c4cd851f412701b4b6f6777 | [
"MIT"
] | null | null | null | fetchr/fetchr_client.py | fetch-r/py-sdk | 03fc212458705dfc9c4cd851f412701b4b6f6777 | [
"MIT"
] | null | null | null | from .fetchr_apis import *
from .http_client import HttpApiClientWrapper
class FetchRClient:
def __init__(self, client: HttpApiClientWrapper):
self._client: HttpApiClientWrapper = client
def list(self, params):
return self._client.request("data", params)
def mutate(self, params):
... | 24.475 | 65 | 0.684372 | 107 | 979 | 6.074766 | 0.327103 | 0.076923 | 0.069231 | 0.061538 | 0.101538 | 0.101538 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222676 | 979 | 39 | 66 | 25.102564 | 0.854139 | 0 | 0 | 0.142857 | 0 | 0 | 0.010215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.321429 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
113a1a1bcb30dda9eed02ce6ffb970560c6f3797 | 1,263 | py | Python | basepairmodels/cli/bpnetutils.py | erankotler/basepairmodels | d848a787617bc6a698b887c55660d5dbee8d0074 | [
"MIT"
] | 13 | 2020-04-30T16:46:52.000Z | 2022-02-16T19:33:26.000Z | basepairmodels/cli/bpnetutils.py | erankotler/basepairmodels | d848a787617bc6a698b887c55660d5dbee8d0074 | [
"MIT"
] | 20 | 2020-09-23T22:36:50.000Z | 2022-02-10T00:02:01.000Z | basepairmodels/cli/bpnetutils.py | erankotler/basepairmodels | d848a787617bc6a698b887c55660d5dbee8d0074 | [
"MIT"
] | 12 | 2021-04-16T01:00:52.000Z | 2022-02-08T11:46:51.000Z | import random
import string
import pytz
from datetime import datetime, timezone
def getAlphaNumericTag(length):
""" generate a random alpha numeric tag
Args:
length (int): the desired length of the tag
Returns:
str: alphanumeric string of length `length`
... | 23.388889 | 72 | 0.570863 | 149 | 1,263 | 4.731544 | 0.38255 | 0.042553 | 0.028369 | 0.04539 | 0.113475 | 0.113475 | 0.113475 | 0.113475 | 0.113475 | 0.113475 | 0 | 0 | 0.338876 | 1,263 | 53 | 73 | 23.830189 | 0.844311 | 0.429137 | 0 | 0 | 1 | 0 | 0.031716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
113ab9f1f9dc7c24daa95b284f2ba89e5b821ef7 | 423 | py | Python | kyc_aml/admin.py | James-spiff/p2p_lend | 0c2bab307c6e86c11d3f79667fd943be089b7ebf | [
"BSD-3-Clause"
] | null | null | null | kyc_aml/admin.py | James-spiff/p2p_lend | 0c2bab307c6e86c11d3f79667fd943be089b7ebf | [
"BSD-3-Clause"
] | 1 | 2022-03-30T10:23:26.000Z | 2022-03-30T10:23:26.000Z | kyc_aml/admin.py | James-spiff/p2p_lend | 0c2bab307c6e86c11d3f79667fd943be089b7ebf | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import KYCApplication, KYCSetting
# Register your models here.
@admin.register(KYCApplication)
class KYCApplicationAdmin(admin.ModelAdmin):
def has_add_permission(self, obj): #This doesn't allow staff access the add functionality on the KYC application by default it's ... | 32.538462 | 142 | 0.808511 | 57 | 423 | 5.964912 | 0.736842 | 0.076471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125296 | 423 | 13 | 143 | 32.538462 | 0.918919 | 0.307329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
116367fbf5c12ca67c729f4fc1133dd7af72ef97 | 639 | py | Python | src/services/browser.py | pavanad/dolce-gusto-coupons | 43961a86cd2c33b4aad190de39ee7c7b7deaa583 | [
"MIT"
] | null | null | null | src/services/browser.py | pavanad/dolce-gusto-coupons | 43961a86cd2c33b4aad190de39ee7c7b7deaa583 | [
"MIT"
] | null | null | null | src/services/browser.py | pavanad/dolce-gusto-coupons | 43961a86cd2c33b4aad190de39ee7c7b7deaa583 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time
from secrets import DOLCE_PASSWORD, DOLCE_USERNAME
from selenium import webdriver
def open_browser():
url = "https://www.nescafe-dolcegusto.com.br/"
browser = webdriver.Firefox()
browser.get(url)
browser.find_element_by_css_selector("a.my-account").click()
u... | 25.56 | 64 | 0.729264 | 87 | 639 | 5.08046 | 0.528736 | 0.124434 | 0.20362 | 0.226244 | 0.18552 | 0.135747 | 0 | 0 | 0 | 0 | 0 | 0.005515 | 0.14867 | 639 | 24 | 65 | 26.625 | 0.806985 | 0.032864 | 0 | 0 | 0 | 0 | 0.118506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.1875 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1168e4a111f2bc37e68933e55aae6ec73f1d052c | 912 | py | Python | cms/pages/migrations/0022_auto_20201118_2211.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 1 | 2021-02-04T13:20:31.000Z | 2021-02-04T13:20:31.000Z | cms/pages/migrations/0022_auto_20201118_2211.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 77 | 2020-11-29T23:10:16.000Z | 2022-03-23T11:47:51.000Z | cms/pages/migrations/0022_auto_20201118_2211.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 3 | 2021-03-19T09:23:59.000Z | 2021-08-31T21:49:36.000Z | # Generated by Django 3.1.2 on 2020-11-18 22:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0021_auto_20201118_2208'),
]
operations = [
migrations.AddField(
model_name='basepage',
name='component_fie... | 26.823529 | 58 | 0.570175 | 90 | 912 | 5.644444 | 0.422222 | 0.141732 | 0.181102 | 0.212598 | 0.661417 | 0.661417 | 0.584646 | 0.584646 | 0.5 | 0.5 | 0 | 0.049521 | 0.313596 | 912 | 33 | 59 | 27.636364 | 0.761981 | 0.049342 | 0 | 0.592593 | 1 | 0 | 0.139884 | 0.02659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3a03e6b76e89e3142c838b476515caa80b24e29d | 938 | py | Python | Teil_18_Vector.py | harrymh142/A-beautiful-code-in-Python | bacdf52c6ac6bf3c45b834089fbc74642027574c | [
"MIT"
] | null | null | null | Teil_18_Vector.py | harrymh142/A-beautiful-code-in-Python | bacdf52c6ac6bf3c45b834089fbc74642027574c | [
"MIT"
] | null | null | null | Teil_18_Vector.py | harrymh142/A-beautiful-code-in-Python | bacdf52c6ac6bf3c45b834089fbc74642027574c | [
"MIT"
] | null | null | null | class Vector:
def __init__(self, *args):
""" Erstellt einen Vector, Beispiel: v = Vector(1,2) """
self.werte = args if len(args) > 0 else (0, 0)
def __add__(self, other):
""" Liefert einen Vector mit den Summen der Werte aus vector1 und vector2, Beispiel: v = vector1 + vector2"""
summen = tuple(a ... | 34.740741 | 114 | 0.663113 | 135 | 938 | 4.42963 | 0.333333 | 0.075251 | 0.075251 | 0.070234 | 0.240803 | 0.090301 | 0.090301 | 0.090301 | 0.090301 | 0.090301 | 0 | 0.020408 | 0.216418 | 938 | 26 | 115 | 36.076923 | 0.793197 | 0.3742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3a2ae80443e82f55d39ae8ec296211359a2f183e | 132 | py | Python | Data Structures/Trees/Tree: Postorder Traversal/solution.py | rawat9/Hackerrank | c8f5e0ec8c0e48ae723a019958940a753f97f8f4 | [
"MIT"
] | null | null | null | Data Structures/Trees/Tree: Postorder Traversal/solution.py | rawat9/Hackerrank | c8f5e0ec8c0e48ae723a019958940a753f97f8f4 | [
"MIT"
] | null | null | null | Data Structures/Trees/Tree: Postorder Traversal/solution.py | rawat9/Hackerrank | c8f5e0ec8c0e48ae723a019958940a753f97f8f4 | [
"MIT"
] | null | null | null | def postOrder(root):
if root:
postOrder(root.left)
postOrder(root.right)
print(str(root.info), end=" ")
| 22 | 38 | 0.575758 | 16 | 132 | 4.75 | 0.625 | 0.513158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280303 | 132 | 5 | 39 | 26.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3a399b25c3f02b6fd800e7ce2b2a0942b351299e | 741 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/EGL/VERSION/EGL_1_0.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/EGL/VERSION/EGL_1_0.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/EGL/VERSION/EGL_1_0.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension VERSION.EGL_1_0
This module customises the behaviour of the
OpenGL.raw.EGL.VERSION.EGL_1_0 to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/VERSION/EGL_1_0.txt
'''
from OpenGL import platform, constant, arrays... | 32.217391 | 71 | 0.801619 | 109 | 741 | 5.302752 | 0.477064 | 0.103806 | 0.095156 | 0.103806 | 0.15917 | 0.15917 | 0.15917 | 0.117647 | 0.117647 | 0 | 0 | 0.018547 | 0.126856 | 741 | 23 | 72 | 32.217391 | 0.874807 | 0.480432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3a4fc2b404496ba46de798b245c8eb0d4c3b49bc | 208 | py | Python | 0x0A-python-inheritance/2-is_same_class.py | johncoleman83/bootcampschool-higher_level_programming | a83c3b7092cfe893c87e495f8d8eec9228c9b808 | [
"MIT"
] | null | null | null | 0x0A-python-inheritance/2-is_same_class.py | johncoleman83/bootcampschool-higher_level_programming | a83c3b7092cfe893c87e495f8d8eec9228c9b808 | [
"MIT"
] | null | null | null | 0x0A-python-inheritance/2-is_same_class.py | johncoleman83/bootcampschool-higher_level_programming | a83c3b7092cfe893c87e495f8d8eec9228c9b808 | [
"MIT"
] | 1 | 2020-09-25T17:54:36.000Z | 2020-09-25T17:54:36.000Z | #!/usr/bin/python3
"""module to check if classes are the exact same class"""
def is_same_class(obj, a_class):
"""returns True if classes are the exact same class"""
return(obj.__class__ == a_class)
| 26 | 58 | 0.701923 | 34 | 208 | 4.058824 | 0.588235 | 0.195652 | 0.173913 | 0.217391 | 0.42029 | 0.42029 | 0.42029 | 0 | 0 | 0 | 0 | 0.005814 | 0.173077 | 208 | 7 | 59 | 29.714286 | 0.796512 | 0.567308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
28de912afd9a4c2223d1111bb830b026d6c9c45a | 170 | py | Python | todo_project/urls.py | codePerfectPlus/ToDoApp | 2bd9582ae711763759abb096a090c647772aa38b | [
"MIT"
] | 1 | 2021-02-27T20:30:53.000Z | 2021-02-27T20:30:53.000Z | todo_project/urls.py | codePerfectPlus/ToDoApp | 2bd9582ae711763759abb096a090c647772aa38b | [
"MIT"
] | 3 | 2021-04-08T20:50:20.000Z | 2021-09-22T19:05:12.000Z | todo_project/urls.py | codePerfectPlus/ToDoApp | 2bd9582ae711763759abb096a090c647772aa38b | [
"MIT"
] | 1 | 2020-06-11T07:42:02.000Z | 2020-06-11T07:42:02.000Z |
from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('apis/v1', include('apis.urls')),
]
| 18.888889 | 42 | 0.688235 | 23 | 170 | 5.086957 | 0.521739 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.152941 | 170 | 8 | 43 | 21.25 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.130178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
28ef6dfbf716548ae64f07d2ad6625de492ec72f | 154 | py | Python | Clinical/clinicalApp/apps.py | KiralyTamas/Django | d0df4bcffa499c25602e2672c230226440879f6d | [
"MIT"
] | null | null | null | Clinical/clinicalApp/apps.py | KiralyTamas/Django | d0df4bcffa499c25602e2672c230226440879f6d | [
"MIT"
] | null | null | null | Clinical/clinicalApp/apps.py | KiralyTamas/Django | d0df4bcffa499c25602e2672c230226440879f6d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ClinicalappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'clinicalApp'
| 22 | 56 | 0.772727 | 17 | 154 | 6.882353 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 154 | 6 | 57 | 25.666667 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0.25974 | 0.188312 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
28fcf3fc0391e4e99de60f230f895057d392d31c | 93 | py | Python | registrobrepp/contact/eppstatus.py | ivcmartello/registrobrepp | dece39a451bcdb964d337df6aa7bd418a60c1a85 | [
"MIT"
] | null | null | null | registrobrepp/contact/eppstatus.py | ivcmartello/registrobrepp | dece39a451bcdb964d337df6aa7bd418a60c1a85 | [
"MIT"
] | null | null | null | registrobrepp/contact/eppstatus.py | ivcmartello/registrobrepp | dece39a451bcdb964d337df6aa7bd418a60c1a85 | [
"MIT"
] | null | null | null | from enum import Enum
class EppStatus(Enum):
ACTIVE = 'active'
BLOCKED = 'blocked'
| 13.285714 | 23 | 0.666667 | 11 | 93 | 5.636364 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236559 | 93 | 6 | 24 | 15.5 | 0.873239 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e90c5e2a4ae68e278a797b0658fd78dd00256cd7 | 15,033 | py | Python | modules/world_state_processer.py | OnlpLab/RUN | 39b7312d159ee262d2dfabe971e00638f9780166 | [
"Apache-1.1"
] | 7 | 2019-09-20T11:42:51.000Z | 2022-01-18T13:34:51.000Z | modules/world_state_processer.py | OnlpLab/RUN | 39b7312d159ee262d2dfabe971e00638f9780166 | [
"Apache-1.1"
] | 12 | 2020-01-28T22:17:01.000Z | 2022-02-09T23:31:19.000Z | modules/world_state_processer.py | OnlpLab/RUN | 39b7312d159ee262d2dfabe971e00638f9780166 | [
"Apache-1.1"
] | 2 | 2021-11-27T08:51:03.000Z | 2022-01-18T09:12:11.000Z | import numpy as np
import math
import nltk
import difflib
MAX_GRID_DISTANCE = 85
"""
WorldStateProcesser constructs the world-state as a concatenation of current position (get_world_state_for_walking) and forward position (get_world_state_for_turn).
Each position is represented as a BOW.
"""
class Wo... | 49.288525 | 166 | 0.535821 | 1,806 | 15,033 | 4.066999 | 0.062569 | 0.05759 | 0.052417 | 0.053914 | 0.811028 | 0.706875 | 0.66467 | 0.638257 | 0.620967 | 0.610619 | 0 | 0.014555 | 0.383024 | 15,033 | 304 | 167 | 49.450658 | 0.777358 | 0.004324 | 0 | 0.523207 | 0 | 0 | 0.03856 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 1 | 0.012658 | false | 0 | 0.016878 | 0 | 0.046414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e90cf0bb5b8b728b87910c4559adf4724582b94f | 476 | py | Python | Scripts8/Script74.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | 1 | 2020-09-05T22:25:36.000Z | 2020-09-05T22:25:36.000Z | Scripts8/Script74.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | null | null | null | Scripts8/Script74.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | null | null | null | '''Crie um programa que vai gerar cinco números aleatórios e colocar em uma tupla. Depois disso, mostre a listagem de números gerados e também indique o menor e o maior valor que estão na tupla.'''
from random import randint
n = (randint(1,20),randint(1,20),randint(1,20),randint(1,20),randint(1,20))
print('-'*50)
print... | 52.888889 | 197 | 0.716387 | 86 | 476 | 3.965116 | 0.511628 | 0.117302 | 0.146628 | 0.199413 | 0.228739 | 0.146628 | 0.146628 | 0.146628 | 0.146628 | 0.146628 | 0 | 0.050602 | 0.128151 | 476 | 9 | 198 | 52.888889 | 0.771084 | 0.401261 | 0 | 0.375 | 0 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e92d5eae1b89b6e2b2f2e46ee1aaba174847c50c | 98 | py | Python | creds.py | harsathAI/Grocery-Bot-For-Amazon-Using-Python | 277814978a6be334b08b1c5ad450e0ae5bffab4e | [
"Apache-2.0"
] | 1 | 2019-03-30T05:56:12.000Z | 2019-03-30T05:56:12.000Z | creds.py | harsathAI/Grocery-Bot-For-Amazon-Using-Python | 277814978a6be334b08b1c5ad450e0ae5bffab4e | [
"Apache-2.0"
] | null | null | null | creds.py | harsathAI/Grocery-Bot-For-Amazon-Using-Python | 277814978a6be334b08b1c5ad450e0ae5bffab4e | [
"Apache-2.0"
] | null | null | null | #Enter Your Credentials in these Place Holders
FROM_EMAIL = ""
TO_EMAIL = ""
FROM_PASSWORD = ""
| 14 | 46 | 0.714286 | 13 | 98 | 5.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 98 | 6 | 47 | 16.333333 | 0.8375 | 0.459184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3a72746b19cf1bd876550bca5611b40b203fbad5 | 405 | py | Python | yetigo/transforms/malshare.py | sebdraven/yetigo | 7c870bc8d0d91735ecd8799ff61e504634e8062e | [
"Apache-2.0"
] | 3 | 2019-05-29T12:04:48.000Z | 2020-09-16T13:31:19.000Z | yetigo/transforms/malshare.py | sebdraven/yetigo | 7c870bc8d0d91735ecd8799ff61e504634e8062e | [
"Apache-2.0"
] | null | null | null | yetigo/transforms/malshare.py | sebdraven/yetigo | 7c870bc8d0d91735ecd8799ff61e504634e8062e | [
"Apache-2.0"
] | 1 | 2020-11-18T12:46:13.000Z | 2020-11-18T12:46:13.000Z | from canari.maltego.transform import Transform
from yetigo.transforms.entities import Hash
from yetigo.transforms.utils import create_response
class Malshare(Transform):
input_type = Hash
display_name = '[YT] Malshare'
def do_transform(self, request, response, config):
return create_response(req... | 28.928571 | 69 | 0.708642 | 45 | 405 | 6.244444 | 0.577778 | 0.071174 | 0.142349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214815 | 405 | 13 | 70 | 31.153846 | 0.883648 | 0 | 0 | 0 | 0 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
3a8ede744228367115e578c843b8f8a17fa219a4 | 184 | py | Python | reference/examples-v3/java/python/tests/t3.py | JaDogg/__py_playground | 416f88db10e03f5380bcb5cfcad0bca50ffa657c | [
"MIT"
] | 1 | 2015-10-28T00:00:16.000Z | 2015-10-28T00:00:16.000Z | reference/examples-v3/java/python/tests/t3.py | JaDogg/__py_playground | 416f88db10e03f5380bcb5cfcad0bca50ffa657c | [
"MIT"
] | null | null | null | reference/examples-v3/java/python/tests/t3.py | JaDogg/__py_playground | 416f88db10e03f5380bcb5cfcad0bca50ffa657c | [
"MIT"
] | null | null | null | class OutputBuffer:
def __init__(self, console, stylename):
a=1;b=4;
b=3;
def flush(self):
pass
a = [1,2,
3,4, # comment
# blank lines + comments ok
5]
| 11.5 | 40 | 0.559783 | 28 | 184 | 3.535714 | 0.75 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.304348 | 184 | 15 | 41 | 12.266667 | 0.710938 | 0.179348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3a9a3ef203003e9711cda0e4c36deabab9ec8a3e | 491 | py | Python | tests/conftest.py | frater/dosage | 8a2537055a9c14d5bdd0aa7fafdb5c9f757c7bc7 | [
"MIT"
] | 98 | 2015-04-14T02:11:36.000Z | 2022-02-02T03:32:58.000Z | tests/conftest.py | frater/dosage | 8a2537055a9c14d5bdd0aa7fafdb5c9f757c7bc7 | [
"MIT"
] | 199 | 2015-04-09T01:09:42.000Z | 2022-03-25T14:28:51.000Z | tests/conftest.py | frater/dosage | 8a2537055a9c14d5bdd0aa7fafdb5c9f757c7bc7 | [
"MIT"
] | 68 | 2015-04-11T17:15:54.000Z | 2022-03-20T17:45:43.000Z | # SPDX-License-Identifier: MIT
# Copyright (C) 2019-2020 Tobias Gruetzmacher
import time
from pathlib import Path
import pytest
@pytest.fixture()
def _nosleep(monkeypatch):
def sleep(seconds):
pass
monkeypatch.setattr(time, 'sleep', sleep)
class FakeAppdirs:
@property
def user_data_dir(se... | 18.185185 | 64 | 0.714868 | 57 | 491 | 6.017544 | 0.701754 | 0.075802 | 0.093294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019704 | 0.173116 | 491 | 26 | 65 | 18.884615 | 0.825123 | 0.14664 | 0 | 0.133333 | 0 | 0 | 0.076923 | 0.052885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.066667 | 0.2 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3aaf098b5e1d027ecf4401916765dfdd5dd54bd6 | 161 | py | Python | sendcloud/apps.py | edison7500/django-sendcloud | 7d500bf134591ea0e192edd98fd4d04800fa0caf | [
"MIT"
] | 2 | 2018-03-07T06:06:03.000Z | 2019-11-01T01:24:39.000Z | sendcloud/apps.py | edison7500/django-sendcloud | 7d500bf134591ea0e192edd98fd4d04800fa0caf | [
"MIT"
] | null | null | null | sendcloud/apps.py | edison7500/django-sendcloud | 7d500bf134591ea0e192edd98fd4d04800fa0caf | [
"MIT"
] | 2 | 2018-03-16T06:19:03.000Z | 2019-11-01T08:45:06.000Z | from django.apps import AppConfig
# from django.core import checks
class SendCloudBaseConfig(AppConfig):
name = 'sendcloud'
verbose_name = "SendCloud"
| 20.125 | 37 | 0.757764 | 18 | 161 | 6.722222 | 0.666667 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167702 | 161 | 7 | 38 | 23 | 0.902985 | 0.186335 | 0 | 0 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3ab591e8957825250e1e7d887b97ac2b41d11122 | 1,765 | py | Python | ohloh_widgets/api.py | FelixSchwarz/ohloh_widgets_macro | da86bac46d43f8a67168a79cf814a188e8ba6ad8 | [
"MIT"
] | null | null | null | ohloh_widgets/api.py | FelixSchwarz/ohloh_widgets_macro | da86bac46d43f8a67168a79cf814a188e8ba6ad8 | [
"MIT"
] | null | null | null | ohloh_widgets/api.py | FelixSchwarz/ohloh_widgets_macro | da86bac46d43f8a67168a79cf814a188e8ba6ad8 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
#
# The MIT License
#
# Copyright (c) 2010 Felix Schwarz <felix.schwarz@oss.schwarz.eu>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, includ... | 41.046512 | 79 | 0.728612 | 257 | 1,765 | 4.972763 | 0.540856 | 0.068858 | 0.020344 | 0.018779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003549 | 0.2017 | 1,765 | 42 | 80 | 42.02381 | 0.903478 | 0.834561 | 0 | 0 | 0 | 0 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3ac6054e3a3a0985f2804727fdbb12d1142b4164 | 414 | py | Python | app/auth.py | Serverchip/API | eaf7ab9da7bc80473d36585158f934d7a4c58613 | [
"Apache-2.0"
] | null | null | null | app/auth.py | Serverchip/API | eaf7ab9da7bc80473d36585158f934d7a4c58613 | [
"Apache-2.0"
] | null | null | null | app/auth.py | Serverchip/API | eaf7ab9da7bc80473d36585158f934d7a4c58613 | [
"Apache-2.0"
] | null | null | null | from bcrypt import hashpw
from eve.auth import BasicAuth
from flask import request, current_app as app
class BCryptAuthUser(BasicAuth):
def check_auth(self, email, password, allowed_roles, resource, method):
users = app.data.driver.db['user']
auth_user = users.find_one({'email': email})
re... | 37.636364 | 103 | 0.722222 | 57 | 414 | 5.105263 | 0.578947 | 0.109966 | 0.103093 | 0.130584 | 0.158076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164251 | 414 | 10 | 104 | 41.4 | 0.84104 | 0 | 0 | 0 | 0 | 0 | 0.060386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.25 | 0.375 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
3aca7b4902d958c7adc513faba1644aa6eb48186 | 88 | py | Python | certify/apps.py | benrpinto/ausimin | 37d9879a729f637ff03d030168904737fd415776 | [
"MIT"
] | null | null | null | certify/apps.py | benrpinto/ausimin | 37d9879a729f637ff03d030168904737fd415776 | [
"MIT"
] | null | null | null | certify/apps.py | benrpinto/ausimin | 37d9879a729f637ff03d030168904737fd415776 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CertifyConfig(AppConfig):
name = 'certify'
| 17.6 | 33 | 0.761364 | 10 | 88 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 4 | 34 | 22 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
aaff9387229c784266d2f16378b418454ffa1077 | 408 | py | Python | boa3/model/operation/unary/__init__.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3/model/operation/unary/__init__.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3/model/operation/unary/__init__.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | __all__ = ['BooleanNot',
'LogicNot',
'Negative',
'Positive'
]
from boa3.model.operation.unary.booleannot import BooleanNot
from boa3.model.operation.unary.logicnot import LogicNot
from boa3.model.operation.unary.negative import Negative
from boa3.model.operation.unary.positi... | 34 | 68 | 0.740196 | 45 | 408 | 6.622222 | 0.266667 | 0.134228 | 0.218121 | 0.369128 | 0.506711 | 0.234899 | 0 | 0 | 0 | 0 | 0 | 0.014881 | 0.176471 | 408 | 11 | 69 | 37.090909 | 0.872024 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c9136e89dd3fb703d84982c4f5796bcfe965ffd2 | 407 | py | Python | tests/test_helper_step3.py | malfadel/test | 1d03583321c0ac9675485a0be8e4724c3140266e | [
"MIT"
] | null | null | null | tests/test_helper_step3.py | malfadel/test | 1d03583321c0ac9675485a0be8e4724c3140266e | [
"MIT"
] | 2 | 2021-10-03T01:50:12.000Z | 2021-12-13T20:56:55.000Z | tests/test_helper_step3.py | malfadel/test | 1d03583321c0ac9675485a0be8e4724c3140266e | [
"MIT"
] | 1 | 2021-11-16T23:48:35.000Z | 2021-11-16T23:48:35.000Z | from dependency_threat.helper.step3 import repo_commits_combiner
import pandas as pd
import os
path = os.path.abspath(__file__).rsplit("/", 1)[0]
def test_repo_commits_combiner():
input_df = pd.read_csv(path + "/sample_inputs/test_step3.csv")
result_df = pd.read_csv(path + "/sample_outputs/test_step3.csv")
... | 31.307692 | 68 | 0.7543 | 64 | 407 | 4.421875 | 0.484375 | 0.116608 | 0.201413 | 0.169611 | 0.325088 | 0.14841 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.127764 | 407 | 12 | 69 | 33.916667 | 0.783099 | 0 | 0 | 0 | 0 | 0 | 0.14742 | 0.144963 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c914a439bf252b955138c72db89925e9e884ffdd | 163 | py | Python | todo/models.py | shuayb/simple-todo | 7a6c840d38ada098b5cc3458d652c7db02ffd791 | [
"MIT"
] | null | null | null | todo/models.py | shuayb/simple-todo | 7a6c840d38ada098b5cc3458d652c7db02ffd791 | [
"MIT"
] | null | null | null | todo/models.py | shuayb/simple-todo | 7a6c840d38ada098b5cc3458d652c7db02ffd791 | [
"MIT"
] | null | null | null | from app import db
class Todo(db.Model):
__tablename__ = "todo"
id = db.Column(db.Integer, primary_key=True)
description = db.Column(db.String(255)) | 20.375 | 48 | 0.687117 | 24 | 163 | 4.458333 | 0.708333 | 0.149533 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.184049 | 163 | 8 | 49 | 20.375 | 0.781955 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c936841fe9b83eae9c95472bfcada005ec4f693f | 59,781 | py | Python | python/datadict/core/os/biotech/rel_defines_kb.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/datadict/core/os/biotech/rel_defines_kb.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/datadict/core/os/biotech/rel_defines_kb.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# pylint:disable=bad-whitespace
# pylint:disable=line-too-long
# pylint:disable=too-many-lines
# pylint:disable=invalid-name
# #########################################################
#
# ************** !! WARNING !! ***************
# ******* THIS FILE WAS A... | 68.477663 | 150 | 0.678108 | 6,974 | 59,781 | 5.745196 | 0.152567 | 0.149025 | 0.340629 | 0.404497 | 0.570919 | 0.237128 | 0.04173 | 0.010932 | 0.002146 | 0.002146 | 0 | 0.001341 | 0.101905 | 59,781 | 872 | 151 | 68.556193 | 0.744883 | 0.005236 | 0 | 0 | 0 | 0.002342 | 0.790054 | 0.000388 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001171 | 0 | 0.001171 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.