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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1ab0572d1e2c779b2b16d774b8c2fd9a8cd9602 | 348 | py | Python | challenge-55/solver.py | mauricioklein/algorithm-exercises | 1be95762d000102795059255a0a0d2d21d4b67fc | [
"MIT"
] | 3 | 2019-12-03T11:40:36.000Z | 2020-06-28T19:39:51.000Z | challenge-55/solver.py | mauricioklein/algorithm-exercises | 1be95762d000102795059255a0a0d2d21d4b67fc | [
"MIT"
] | null | null | null | challenge-55/solver.py | mauricioklein/algorithm-exercises | 1be95762d000102795059255a0a0d2d21d4b67fc | [
"MIT"
] | null | null | null | def find_ranges(nums):
if not nums:
return []
first = last = nums[0]
ranges = []
def append_range(first, last):
ranges.append('{}->{}'.format(first, last))
for num in nums:
if abs(num - last) > 1:
append_range(first, last)
first = num
last = num
# Remaining
append_range(fi... | 15.818182 | 47 | 0.594828 | 47 | 348 | 4.319149 | 0.404255 | 0.221675 | 0.236453 | 0.295567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.270115 | 348 | 21 | 48 | 16.571429 | 0.791339 | 0.025862 | 0 | 0.142857 | 0 | 0 | 0.017804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
f1ab462248636cd7de9febef12efdcc7eda17f3a | 573 | py | Python | solutions/NodeSerializer_test.py | sedawk/CodingPractices | f4e1ea51702e45cd2f79e574e705dbc7fe5cab7c | [
"MIT"
] | null | null | null | solutions/NodeSerializer_test.py | sedawk/CodingPractices | f4e1ea51702e45cd2f79e574e705dbc7fe5cab7c | [
"MIT"
] | null | null | null | solutions/NodeSerializer_test.py | sedawk/CodingPractices | f4e1ea51702e45cd2f79e574e705dbc7fe5cab7c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import pickle
import unittest
def serialize(node):
return pickle.dumps(node)
def deserialize(node):
return pickle.loads(node)
class Node:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
class TestCase(u... | 22.92 | 75 | 0.633508 | 71 | 573 | 4.943662 | 0.380282 | 0.091168 | 0.091168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226876 | 573 | 24 | 76 | 23.875 | 0.792325 | 0.027923 | 0 | 0 | 0 | 0 | 0.070144 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.235294 | false | 0 | 0.117647 | 0.117647 | 0.588235 | 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 |
f1b5ac93bdaf9cad477e0bbe35bcd37e828165a9 | 331 | py | Python | exercises/exc_F1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/exc_F1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/exc_F1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | # Initialize counter = -4
counter = -4
#1 Code the while loop
__________________:
#2 Print Great job
__________________
#3 if counter positive
______________:
# Decrease counter
_____________________
#4 else (negative)
____:
# Increase counter
_____________________
#5 Print counter
____... | 18.388889 | 25 | 0.728097 | 28 | 331 | 4.678571 | 0.714286 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027132 | 0.220544 | 331 | 17 | 26 | 19.470588 | 0.48062 | 0.44713 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f1bbce4383aead7a7cb11223fef7c83da3031c38 | 401 | py | Python | tests/test_pytsp.py | BraveDistribution/pytsp | 52144ef6283196cba01a2036987e9d7b982c6f99 | [
"MIT"
] | 9 | 2019-12-05T06:57:03.000Z | 2022-01-31T18:33:25.000Z | tests/test_pytsp.py | BraveDistribution/pytsp | 52144ef6283196cba01a2036987e9d7b982c6f99 | [
"MIT"
] | 3 | 2018-11-11T09:32:57.000Z | 2020-03-31T00:34:30.000Z | tests/test_pytsp.py | BraveDistribution/pytsp | 52144ef6283196cba01a2036987e9d7b982c6f99 | [
"MIT"
] | 12 | 2019-08-14T17:30:36.000Z | 2022-03-21T11:06:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `pytsp` package."""
import unittest
from pytsp import pytsp
class TestPytsp(unittest.TestCase):
"""Tests for `pytsp` package."""
def setUp(self):
"""Set up test fixtures, if any."""
def tearDown(self):
"""Tear down test fixtu... | 17.434783 | 46 | 0.600998 | 50 | 401 | 4.78 | 0.62 | 0.066946 | 0.108787 | 0.167364 | 0.167364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012945 | 0.229426 | 401 | 22 | 47 | 18.227273 | 0.760518 | 0.436409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f1c8b2ed738e873cf4da0575a2e55a19dc5da060 | 143 | py | Python | Components/text.py | ABMHub/UnBCaiuBot | 64e7285d0bf19b76d8a6d8946dc15be48c7feb17 | [
"MIT"
] | 1 | 2022-01-07T22:03:46.000Z | 2022-01-07T22:03:46.000Z | Components/text.py | ABMHub/UnBCaiuBot | 64e7285d0bf19b76d8a6d8946dc15be48c7feb17 | [
"MIT"
] | null | null | null | Components/text.py | ABMHub/UnBCaiuBot | 64e7285d0bf19b76d8a6d8946dc15be48c7feb17 | [
"MIT"
] | null | null | null | import time
# emojis
nice = '\u2705'
bad = '\u274c'
def timestamp():
return time.strftime("%d %b %Y %H:%M:%S", time.localtime(time.time())) | 17.875 | 72 | 0.629371 | 22 | 143 | 4.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057377 | 0.146853 | 143 | 8 | 72 | 17.875 | 0.680328 | 0.041958 | 0 | 0 | 0 | 0 | 0.213235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f1f1c19b5e99619e9553649d1d1737e3389e5af9 | 573 | py | Python | codewars/8kyu/amrlotfy77/Remove String Spaces/test_main.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | null | null | null | codewars/8kyu/amrlotfy77/Remove String Spaces/test_main.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | 2 | 2019-01-22T10:53:42.000Z | 2019-01-31T08:02:48.000Z | codewars/8kyu/amrlotfy77/Remove String Spaces/test_main.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | 13 | 2019-01-22T10:37:42.000Z | 2019-01-25T13:30:43.000Z | import unittest
from main import no_space
class Test_DNAtoRNA(unittest.TestCase):
def test(self):
self.assertEqual(no_space('8 j 8 mBliB8g imjB8B8 jl B'), '8j8mBliB8gimjB8B8jlB')
self.assertEqual(no_space('8 8 Bi fk8h B 8 BB8B B B B888 c hl8 BhB fd'), '88Bifk8hB8BB8BBBB888chl8BhBfd')
... | 31.833333 | 114 | 0.680628 | 75 | 573 | 5 | 0.573333 | 0.112 | 0.226667 | 0.293333 | 0.122667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0.205934 | 573 | 18 | 115 | 31.833333 | 0.736264 | 0 | 0 | 0 | 0 | 0 | 0.367596 | 0.050523 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b14d2d053051cc3435a58336c1292df6b3b0e45 | 58 | py | Python | yml_reader/__init__.py | ThorsHamster/find_new_hometown | 862231bb1f3a0a1505d02b452adca2b45a6fc850 | [
"MIT"
] | 2 | 2020-01-07T07:28:17.000Z | 2020-01-07T10:21:41.000Z | yml_reader/__init__.py | ThorsHamster/find_new_hometown | 862231bb1f3a0a1505d02b452adca2b45a6fc850 | [
"MIT"
] | 30 | 2021-03-19T15:46:29.000Z | 2021-12-21T12:22:50.000Z | yml_reader/__init__.py | ThorsHamster/find_new_hometown | 862231bb1f3a0a1505d02b452adca2b45a6fc850 | [
"MIT"
] | null | null | null | from .yml_reader import YmlReader
__all__ = ["YmlReader"]
| 19.333333 | 33 | 0.775862 | 7 | 58 | 5.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 58 | 2 | 34 | 29 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 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 |
7b2fa52c8904426c3b99f31a545205f6b42eec96 | 131 | py | Python | example/apps/test_security/tests/throttling_validators.py | jsilhan/django-security | fd56a6ca8ab7ad2b1e91a33ea4ecb40bb10cc42b | [
"MIT"
] | null | null | null | example/apps/test_security/tests/throttling_validators.py | jsilhan/django-security | fd56a6ca8ab7ad2b1e91a33ea4ecb40bb10cc42b | [
"MIT"
] | null | null | null | example/apps/test_security/tests/throttling_validators.py | jsilhan/django-security | fd56a6ca8ab7ad2b1e91a33ea4ecb40bb10cc42b | [
"MIT"
] | null | null | null | from security.throttling import PerRequestThrottlingValidator
default_validators = (
PerRequestThrottlingValidator(60, 2),
)
| 18.714286 | 61 | 0.816794 | 10 | 131 | 10.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.122137 | 131 | 6 | 62 | 21.833333 | 0.895652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e4116f002d454421c42fb7a1e7129dc863872e1 | 334 | py | Python | track.py | joelewiss/pi-smarthome | 3d7a8e08f15495bc703df44ddef18228ef0e3164 | [
"MIT"
] | null | null | null | track.py | joelewiss/pi-smarthome | 3d7a8e08f15495bc703df44ddef18228ef0e3164 | [
"MIT"
] | null | null | null | track.py | joelewiss/pi-smarthome | 3d7a8e08f15495bc703df44ddef18228ef0e3164 | [
"MIT"
] | null | null | null | modules = dict()
def register(module_name):
def decorate_action(func):
if module_name in modules:
modules[module_name][func.__name__] = func
else:
modules[module_name] = dict()
modules[module_name][func.__name__] = func
return func
return de... | 23.857143 | 54 | 0.60479 | 37 | 334 | 5.054054 | 0.351351 | 0.26738 | 0.272727 | 0.224599 | 0.31016 | 0.31016 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311377 | 334 | 13 | 55 | 25.692308 | 0.813043 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 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 |
9e5d681974758eef1750c39bb016a207447260e1 | 1,844 | py | Python | cargonext/config/desktop.py | ahmadRagheb/cargonext | 251c65e30741f1babb311d0c42edbc72c363e188 | [
"MIT"
] | null | null | null | cargonext/config/desktop.py | ahmadRagheb/cargonext | 251c65e30741f1babb311d0c42edbc72c363e188 | [
"MIT"
] | null | null | null | cargonext/config/desktop.py | ahmadRagheb/cargonext | 251c65e30741f1babb311d0c42edbc72c363e188 | [
"MIT"
] | 2 | 2019-02-23T15:34:01.000Z | 2019-12-03T15:53:10.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "CargoNext",
"color": "grey",
"icon": "icon-truck",
"type": "module",
"label": _("CargoNext")
},
{
"module_name": "Forwarding",
... | 36.156863 | 124 | 0.26898 | 90 | 1,844 | 5.3 | 0.411111 | 0.125786 | 0.188679 | 0.071279 | 0.1174 | 0.1174 | 0 | 0 | 0 | 0 | 0 | 0.001389 | 0.609544 | 1,844 | 50 | 125 | 36.88 | 0.661111 | 0.011388 | 0 | 0.212766 | 0 | 0 | 0.230093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | true | 0 | 0.042553 | 0.021277 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
9e5df7cd47afa80535ac2bdade2a25050da4137d | 108 | py | Python | connect4/unit_tests/__main__.py | hckr/engineering-thesis | c466f1aec498a608ca4787ed3283ebea1f42d871 | [
"MIT"
] | null | null | null | connect4/unit_tests/__main__.py | hckr/engineering-thesis | c466f1aec498a608ca4787ed3283ebea1f42d871 | [
"MIT"
] | null | null | null | connect4/unit_tests/__main__.py | hckr/engineering-thesis | c466f1aec498a608ca4787ed3283ebea1f42d871 | [
"MIT"
] | null | null | null | import unittest
tests = unittest.TestLoader().discover('.')
unittest.TextTestRunner(verbosity=2).run(tests) | 27 | 47 | 0.787037 | 12 | 108 | 7.083333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.055556 | 108 | 4 | 47 | 27 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 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 |
9ebc9542d402ed1cde2fe2629c3623d6b41b4266 | 7,648 | py | Python | catalogues/bcks/migrations/0001_initial.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | catalogues/bcks/migrations/0001_initial.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | catalogues/bcks/migrations/0001_initial.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-17 13:06
import autoslug.fields
import cities_light.abstract_models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migra... | 59.286822 | 231 | 0.587343 | 792 | 7,648 | 5.531566 | 0.194444 | 0.065738 | 0.054782 | 0.071217 | 0.732938 | 0.705547 | 0.666971 | 0.666971 | 0.666971 | 0.645743 | 0 | 0.015133 | 0.26556 | 7,648 | 128 | 232 | 59.75 | 0.764821 | 0.005884 | 0 | 0.603306 | 1 | 0 | 0.145992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033058 | 0 | 0.066116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 |
9ec104cbe968223276342565a279e53298c2a77a | 1,253 | py | Python | dpmmpython/priors.py | razzamir/dpmmpython | c181f4f06cd0743df17681fa4e296d6d377d986a | [
"MIT"
] | null | null | null | dpmmpython/priors.py | razzamir/dpmmpython | c181f4f06cd0743df17681fa4e296d6d377d986a | [
"MIT"
] | null | null | null | dpmmpython/priors.py | razzamir/dpmmpython | c181f4f06cd0743df17681fa4e296d6d377d986a | [
"MIT"
] | null | null | null | import julia
from julia import DPMMSubClusters
import numpy as np
class prior:
def to_julia_prior(self):
pass
def get_type(self):
pass
def to_JSON(self):
pass
class niw(prior):
def __init__(self, kappa, mu, nu, psi):
if nu < len(mu):
raise Exception('nu shou... | 24.096154 | 84 | 0.550678 | 158 | 1,253 | 4.227848 | 0.297468 | 0.04491 | 0.04491 | 0.067365 | 0.25 | 0.11976 | 0.11976 | 0 | 0 | 0 | 0 | 0.001215 | 0.343176 | 1,253 | 52 | 85 | 24.096154 | 0.81045 | 0 | 0 | 0.325581 | 0 | 0 | 0.046252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0.069767 | 0.069767 | 0.093023 | 0.534884 | 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 |
9ec2f14cced1cf5706237f64ceb1ff2113a1cb13 | 96 | py | Python | python/testData/quickFixes/PyWrapInExceptionQuickFixTest/inFunction.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/quickFixes/PyWrapInExceptionQuickFixTest/inFunction.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/quickFixes/PyWrapInExceptionQuickFixTest/inFunction.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def foo():
raise <error descr="Raising a string exception">"String"<caret> "String1"</error> | 48 | 85 | 0.697917 | 13 | 96 | 5.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.125 | 96 | 2 | 85 | 48 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.402062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b3ecb9592bf6dd1a054da4d1fb5e7f6778235f9 | 1,119 | py | Python | python/yacht/yacht.py | troberson/exercises-exercism | 143c94c72e05661b4ec3b7e383d5afcd2a75710f | [
"Unlicense"
] | 1 | 2018-10-13T00:18:41.000Z | 2018-10-13T00:18:41.000Z | python/yacht/yacht.py | troberson/exercises-exercism | 143c94c72e05661b4ec3b7e383d5afcd2a75710f | [
"Unlicense"
] | null | null | null | python/yacht/yacht.py | troberson/exercises-exercism | 143c94c72e05661b4ec3b7e383d5afcd2a75710f | [
"Unlicense"
] | null | null | null | from collections import Counter
from functools import partial
from typing import Any, Callable, List
def YACHT(dice: List[int]) -> int:
return 50 if find_combos(dice) == [5] else 0
def score_multiple(number: int, dice: List[int]) -> int:
return number * dice.count(number)
(ONES, TWOS, THREES, FOURS, FIVES... | 23.808511 | 72 | 0.649687 | 181 | 1,119 | 3.950276 | 0.337017 | 0.088112 | 0.123077 | 0.137063 | 0.276923 | 0.193007 | 0.193007 | 0.117483 | 0.117483 | 0.117483 | 0 | 0.033408 | 0.197498 | 1,119 | 46 | 73 | 24.326087 | 0.762806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.346154 | false | 0 | 0.115385 | 0.307692 | 0.807692 | 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 |
7b5d7f134c49c3e12ac78f7840e18d1a70aa8ae8 | 201 | py | Python | covid19_id/data/kasus/base.py | hexatester/covid19-id | 8d8aa3f9092a40461a308f4db054ab4f95374849 | [
"MIT"
] | null | null | null | covid19_id/data/kasus/base.py | hexatester/covid19-id | 8d8aa3f9092a40461a308f4db054ab4f95374849 | [
"MIT"
] | null | null | null | covid19_id/data/kasus/base.py | hexatester/covid19-id | 8d8aa3f9092a40461a308f4db054ab4f95374849 | [
"MIT"
] | null | null | null | import attr
from typing import List
from covid19_id.data import DataKeyDoc
@attr.dataclass(slots=True)
class BaseKasus:
current_data: int
missing_data: float
list_data: List[DataKeyDoc]
| 16.75 | 38 | 0.771144 | 28 | 201 | 5.392857 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.169154 | 201 | 11 | 39 | 18.272727 | 0.892216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.875 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7bc0dc97db305134e2f24b79c5a20e62a9a50e56 | 323 | py | Python | submissions/hello-django/mysite/myapp/models.py | YashJipkate/csoc18-week5 | c37c371e9365b2fe30437a4771f52153a17e8aa1 | [
"MIT"
] | null | null | null | submissions/hello-django/mysite/myapp/models.py | YashJipkate/csoc18-week5 | c37c371e9365b2fe30437a4771f52153a17e8aa1 | [
"MIT"
] | null | null | null | submissions/hello-django/mysite/myapp/models.py | YashJipkate/csoc18-week5 | c37c371e9365b2fe30437a4771f52153a17e8aa1 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.urlresolvers import reverse
# Create your models here.
class Armoury(models.Model):
item_name = models.CharField(max_length=100)
quantity = models.IntegerField(default=0)
price = models.IntegerField(default=0)
def __str__(self):
return self.item_n... | 26.916667 | 48 | 0.74613 | 43 | 323 | 5.44186 | 0.674419 | 0.08547 | 0.213675 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018587 | 0.167183 | 323 | 12 | 49 | 26.916667 | 0.851301 | 0.074303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 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 | 1 | 0 | 0 | 0 | 3 |
7bc4e8314b09363db13f18e66132c42fe0772a22 | 306 | py | Python | day-04/virtual-coin-toss-program-heads-or-tails.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | 1 | 2021-08-13T23:46:20.000Z | 2021-08-13T23:46:20.000Z | day-04/virtual-coin-toss-program-heads-or-tails.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | null | null | null | day-04/virtual-coin-toss-program-heads-or-tails.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | null | null | null | # import the random module
import random
# welcome message
print("Virtual Coin Toss Program")
# generate a random number and apply a variable
random_number = random.randint(0, 1)
# if the number is 1 = Heads and 0 = Tails
if random_number == 1:
print("Heads")
elif random_number == 0:
print("Tails") | 21.857143 | 47 | 0.72549 | 48 | 306 | 4.5625 | 0.520833 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023904 | 0.179739 | 306 | 14 | 48 | 21.857143 | 0.848606 | 0.415033 | 0 | 0 | 1 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7bccaf37d3d65aced410260358c321c26318a150 | 161 | py | Python | test.py | tsukuru-club/beam-bot | f6840ba9db860748d93638b98aba28a3458022e4 | [
"MIT"
] | null | null | null | test.py | tsukuru-club/beam-bot | f6840ba9db860748d93638b98aba28a3458022e4 | [
"MIT"
] | null | null | null | test.py | tsukuru-club/beam-bot | f6840ba9db860748d93638b98aba28a3458022e4 | [
"MIT"
] | null | null | null | import messages
reply = messages.processMessage("get price of BTC in USD")
if reply:
print(reply)
print(messages.processMessage("give me a random emoji"))
| 20.125 | 58 | 0.751553 | 23 | 161 | 5.26087 | 0.73913 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149068 | 161 | 7 | 59 | 23 | 0.883212 | 0 | 0 | 0 | 0 | 0 | 0.279503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 |
c880dde2ab58e92e4f182fa62494439c6f22a546 | 296 | py | Python | src/main/python/app/schemas/Iwad.py | karlpet/WadLauncher | 512f5d28de5c57e4dffdc642b170891a99a00ea8 | [
"MIT"
] | 2 | 2020-09-06T11:16:30.000Z | 2020-09-15T17:11:34.000Z | src/main/python/app/schemas/Iwad.py | karlpet/WadLauncher | 512f5d28de5c57e4dffdc642b170891a99a00ea8 | [
"MIT"
] | 74 | 2020-09-07T16:40:54.000Z | 2021-06-18T00:22:39.000Z | src/main/python/app/schemas/Iwad.py | karlpet/WadLauncher | 512f5d28de5c57e4dffdc642b170891a99a00ea8 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from core.base.Schema import _SchemaBase, _SchemaDefaultsBase
@dataclass
class _IwadBase(_SchemaBase):
name: str
path: str
@dataclass
class _IwadDefaultsBase(_SchemaDefaultsBase):
pass
@dataclass
class Iwad(_IwadDefaultsBase, _IwadBase):
pass
| 18.5 | 61 | 0.790541 | 30 | 296 | 7.533333 | 0.566667 | 0.185841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 296 | 15 | 62 | 19.733333 | 0.896825 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c88d354d2e4e7927d527a9fa84075d8a35be79c7 | 189 | py | Python | svmplus/__init__.py | nobuyukioishi/svmplus | 0cd8f9cc03e9abb61d425e64bfb93052f427f84a | [
"MIT"
] | 6 | 2019-10-10T05:56:59.000Z | 2021-11-17T01:34:31.000Z | svmplus/__init__.py | nobuyukioishi/svmplus | 0cd8f9cc03e9abb61d425e64bfb93052f427f84a | [
"MIT"
] | 2 | 2020-01-31T04:06:59.000Z | 2021-11-15T17:47:26.000Z | svmplus/__init__.py | nobuyukioishi/svmplus | 0cd8f9cc03e9abb61d425e64bfb93052f427f84a | [
"MIT"
] | 2 | 2021-03-03T03:36:50.000Z | 2021-11-17T01:34:37.000Z | # -*- coding: utf-8 -*-
"""Top-level package for svmplus."""
__author__ = """Niharika Gauraha"""
__email__ = 'niharika.gauraha@farmbio.uu.se'
__version__ = '1.0.0'
__all__ = ['svmplus']
| 18.9 | 44 | 0.650794 | 23 | 189 | 4.652174 | 0.826087 | 0.280374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.132275 | 189 | 9 | 45 | 21 | 0.628049 | 0.280423 | 0 | 0 | 0 | 0 | 0.446154 | 0.230769 | 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 |
c88f1104c453fb24633707b14e8435e76b519258 | 79 | py | Python | chainer/cats_dogs/preprocess.py | abeja-inc/abeja-platform-samples | 8c06870522569c780b54f5247f9fc95aac817c3d | [
"MIT"
] | 6 | 2018-11-27T07:17:05.000Z | 2022-01-11T03:59:21.000Z | chainer/cats_dogs/preprocess.py | abeja-inc/abeja-platform-samples | 8c06870522569c780b54f5247f9fc95aac817c3d | [
"MIT"
] | 20 | 2019-04-12T01:43:44.000Z | 2022-03-12T00:05:06.000Z | chainer/cats_dogs/preprocess.py | abeja-inc/abeja-platform-samples | 8c06870522569c780b54f5247f9fc95aac817c3d | [
"MIT"
] | 1 | 2019-05-28T10:05:44.000Z | 2019-05-28T10:05:44.000Z | def preprocess_input(img):
img *= (2.0 / 255.0)
img -= 1
return img | 19.75 | 26 | 0.556962 | 13 | 79 | 3.307692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.291139 | 79 | 4 | 27 | 19.75 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c8ab0b67e77575fc98d6f608ce17a88e2d19559b | 1,650 | py | Python | CoffeeShop/core/migrations/0004_cart_order.py | Kigamekun/coffeshop | 2a028b4e280d68fd5b21009cc7b0e6dbff7b5af9 | [
"MIT"
] | null | null | null | CoffeeShop/core/migrations/0004_cart_order.py | Kigamekun/coffeshop | 2a028b4e280d68fd5b21009cc7b0e6dbff7b5af9 | [
"MIT"
] | null | null | null | CoffeeShop/core/migrations/0004_cart_order.py | Kigamekun/coffeshop | 2a028b4e280d68fd5b21009cc7b0e6dbff7b5af9 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.14 on 2021-03-05 07:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20210218_1726'),
]
operations = [
migrations.CreateModel(
name='Order',
... | 42.307692 | 134 | 0.592727 | 159 | 1,650 | 6.050314 | 0.415094 | 0.189189 | 0.205821 | 0.212058 | 0.297297 | 0.297297 | 0.297297 | 0.297297 | 0.297297 | 0.297297 | 0 | 0.033717 | 0.26303 | 1,650 | 38 | 135 | 43.421053 | 0.757401 | 0.027879 | 0 | 0.3125 | 1 | 0 | 0.094257 | 0.014357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
c8ad138cf6642e7e4d7293152dea9e0c0df52f30 | 84 | py | Python | spider_proxy/app/jobs/__init__.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | spider_proxy/app/jobs/__init__.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | spider_proxy/app/jobs/__init__.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
PROXY_RAW_KEY = "proxy_raw"
PROXY_VALID_KEY = "proxy_valid"
| 16.8 | 31 | 0.690476 | 13 | 84 | 4 | 0.538462 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.130952 | 84 | 4 | 32 | 21 | 0.69863 | 0.238095 | 0 | 0 | 0 | 0 | 0.322581 | 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 |
c8cae151fbab7cf3441382a866cb3679e7962588 | 257 | py | Python | testing/bdd/test_timeBase_attribute_mandatory.py | ebu/ebu-tt-live-toolk | 8c67f83010d9fc0af5d3e270c70dce87674ad289 | [
"BSD-3-Clause"
] | 22 | 2016-01-12T10:24:27.000Z | 2022-02-17T15:40:09.000Z | testing/bdd/test_timeBase_attribute_mandatory.py | ebu/ebu-tt-live-toolk | 8c67f83010d9fc0af5d3e270c70dce87674ad289 | [
"BSD-3-Clause"
] | 532 | 2016-04-22T13:44:11.000Z | 2021-12-21T17:39:36.000Z | testing/bdd/test_timeBase_attribute_mandatory.py | ebu/ebu-tt-live-toolk | 8c67f83010d9fc0af5d3e270c70dce87674ad289 | [
"BSD-3-Clause"
] | 8 | 2016-04-04T12:38:30.000Z | 2019-09-05T08:01:58.000Z | from pytest_bdd import when, scenarios
scenarios('features/validation/timeBase_attribute_mandatory.feature')
@when('it has ttp:timeBase attribute <time_base>')
def when_has_time_base(time_base, template_dict):
template_dict['time_base'] = time_base
| 25.7 | 69 | 0.805447 | 36 | 257 | 5.416667 | 0.555556 | 0.205128 | 0.123077 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097276 | 257 | 9 | 70 | 28.555556 | 0.840517 | 0 | 0 | 0 | 0 | 0 | 0.412451 | 0.217899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 3 |
c8d3bdb4f6ac2672729204410b68090f4f53b1c0 | 416 | py | Python | PythonCurso/SECAO02/Aula05/Aula 05.py | Bonnivaldo/Projects | cb60be98702da4a516b30c76ac2994144615d440 | [
"MIT"
] | null | null | null | PythonCurso/SECAO02/Aula05/Aula 05.py | Bonnivaldo/Projects | cb60be98702da4a516b30c76ac2994144615d440 | [
"MIT"
] | null | null | null | PythonCurso/SECAO02/Aula05/Aula 05.py | Bonnivaldo/Projects | cb60be98702da4a516b30c76ac2994144615d440 | [
"MIT"
] | null | null | null | """"
+ adição
- subtração
* multiplicação
/ divisão
// divisão inteira
** potenciação
% resto da divisão
() alterar precedência
"""
print('Multiplicação * ', 10 * 10)
print('Adição + ', 10 + 10)
print('Subtração - ', 10 - 10)
print('Divisão / ', 10 / 10)
print('Divisão Inteira //', 10.5 / 10)
print('Potenciação **... | 23.111111 | 44 | 0.620192 | 50 | 416 | 5.16 | 0.28 | 0.108527 | 0.209302 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100295 | 0.185096 | 416 | 18 | 44 | 23.111111 | 0.660767 | 0.310096 | 0 | 0 | 0 | 0 | 0.430605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c8ffabf38a4cbdc5cd3b24ff29f6e7dd2f642725 | 1,349 | py | Python | hubcheck/pageobjects/po_time_overview_page.py | codedsk/hubcheck | 2ff506eb56ba00f035300862f8848e4168452a17 | [
"MIT"
] | 1 | 2016-02-13T13:42:23.000Z | 2016-02-13T13:42:23.000Z | hubcheck/pageobjects/po_time_overview_page.py | codedsk/hubcheck | 2ff506eb56ba00f035300862f8848e4168452a17 | [
"MIT"
] | null | null | null | hubcheck/pageobjects/po_time_overview_page.py | codedsk/hubcheck | 2ff506eb56ba00f035300862f8848e4168452a17 | [
"MIT"
] | null | null | null | from hubcheck.pageobjects.po_time_base_page import TimeBasePage
from hubcheck.pageobjects.basepageelement import Link
class TimeOverviewPage(TimeBasePage):
"""time overview page"""
def __init__(self,browser,catalog,groupid=None):
super(TimeOverviewPage,self).__init__(browser,catalog)
self.path... | 29.326087 | 80 | 0.705708 | 154 | 1,349 | 5.896104 | 0.311688 | 0.092511 | 0.049559 | 0.062775 | 0.112335 | 0.112335 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0.197924 | 1,349 | 45 | 81 | 29.977778 | 0.839187 | 0.100074 | 0 | 0 | 0 | 0 | 0.077435 | 0.039134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.076923 | 0.115385 | 0.576923 | 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 |
74011c150852c64bedf9f9ea08ea8024239a4f90 | 404 | py | Python | sphinx/docker/source/_static/code/devops/python/pydemo/poco.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 26 | 2020-05-05T08:07:43.000Z | 2022-02-12T03:28:15.000Z | sphinx/docker/source/_static/code/devops/python/pydemo/poco.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 19 | 2021-03-10T00:33:51.000Z | 2022-03-02T13:04:32.000Z | sphinx/docker/source/_static/code/devops/python/pydemo/poco.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 2 | 2022-01-09T16:48:21.000Z | 2022-02-19T17:06:50.000Z | class Human(object):
def __init__(self, first_name, last_name, age, gender):
self.first_name = first_name
self.last_name = last_name
self.age = age
self.gender = gender
def as_dict(self):
return {
'first_name': self.first_name,
'last_name': self.... | 25.25 | 59 | 0.55198 | 49 | 404 | 4.244898 | 0.285714 | 0.216346 | 0.1875 | 0.163462 | 0.201923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.344059 | 404 | 15 | 60 | 26.933333 | 0.784906 | 0 | 0 | 0 | 0 | 0 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.307692 | 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 |
cdba4cab8b6aa9fa44528c96c53e7c4c0dc4b529 | 414 | py | Python | lab1sm/functions.py | remalefica/SystemModeling_KPI | 354a5f5141872202c2532a9562f1bddb7e4b0ca7 | [
"MIT"
] | null | null | null | lab1sm/functions.py | remalefica/SystemModeling_KPI | 354a5f5141872202c2532a9562f1bddb7e4b0ca7 | [
"MIT"
] | null | null | null | lab1sm/functions.py | remalefica/SystemModeling_KPI | 354a5f5141872202c2532a9562f1bddb7e4b0ca7 | [
"MIT"
] | null | null | null | import numpy as np
import math
def exp_fun(average, x):
return 1 - pow(np.exp(1), -(average * x))
def normal_fun(alpha, sigma, x):
denominator = np.sqrt(sigma) * np.sqrt(2 * np.pi)
numerator = (np.exp(-pow(x - alpha, 2) / (2 * sigma)))
val = numerator / denominator
return val
def dis_fun(alpha... | 23 | 80 | 0.596618 | 68 | 414 | 3.588235 | 0.352941 | 0.098361 | 0.065574 | 0.114754 | 0.147541 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0.02795 | 0.222222 | 414 | 17 | 81 | 24.352941 | 0.729814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.727273 | 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 |
cddc49da64229237eda2a59922152b519d95d77d | 211 | py | Python | src/pynwb/ndx_tank_metadata/__init__.py | catalystneuro/ndx-tank-metadata | 1bc4c83936f629748d3e777945580199b06ecbe3 | [
"BSD-3-Clause"
] | 2 | 2021-01-26T14:36:12.000Z | 2021-02-22T23:26:27.000Z | src/pynwb/ndx_tank_metadata/__init__.py | catalystneuro/ndx-tank-metadata | 1bc4c83936f629748d3e777945580199b06ecbe3 | [
"BSD-3-Clause"
] | 2 | 2020-12-16T16:43:20.000Z | 2021-01-06T15:37:22.000Z | src/pynwb/ndx_tank_metadata/__init__.py | catalystneuro/ndx-tank-metadata | 1bc4c83936f629748d3e777945580199b06ecbe3 | [
"BSD-3-Clause"
] | 1 | 2021-01-26T14:36:25.000Z | 2021-01-26T14:36:25.000Z | from pynwb import get_class
from .maze_extension import MazeExtension
LabMetaDataExtension = get_class('LabMetaDataExtension', 'ndx-tank-metadata')
RigExtension = get_class('RigExtension', 'ndx-tank-metadata')
| 35.166667 | 77 | 0.819905 | 24 | 211 | 7.041667 | 0.541667 | 0.142012 | 0.177515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080569 | 211 | 5 | 78 | 42.2 | 0.871134 | 0 | 0 | 0 | 0 | 0 | 0.312796 | 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 |
a809404ab348e6712d2219717d39c78fb2a95560 | 779 | py | Python | TaskList/FileInfo/Renderlayer.py | CaptainDesAstres/Blender-Render-Manager | 39082e7833383bbe7dd414381f1b295e3b778439 | [
"MIT"
] | 5 | 2015-07-22T03:02:17.000Z | 2018-10-11T10:07:42.000Z | TaskList/FileInfo/Renderlayer.py | CaptainDesAstres/Blender-Render-Manager | 39082e7833383bbe7dd414381f1b295e3b778439 | [
"MIT"
] | null | null | null | TaskList/FileInfo/Renderlayer.py | CaptainDesAstres/Blender-Render-Manager | 39082e7833383bbe7dd414381f1b295e3b778439 | [
"MIT"
] | 1 | 2018-10-11T10:07:43.000Z | 2018-10-11T10:07:43.000Z | #!/usr/bin/python3.4
# -*-coding:Utf-8 -*
'''module to manage blender Renderlayer info'''
import xml.etree.ElementTree as xmlMod
import os
from usefullFunctions import XML
class Renderlayer:
'''class to manage blender Renderlayer info'''
def __init__(self, xml):
'''initialize blender Renderlayer info with defa... | 16.229167 | 91 | 0.655969 | 98 | 779 | 5.173469 | 0.489796 | 0.177515 | 0.216963 | 0.102564 | 0.287968 | 0.169625 | 0.169625 | 0 | 0 | 0 | 0 | 0.004808 | 0.198973 | 779 | 47 | 92 | 16.574468 | 0.807692 | 0.39923 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0 | 0.727273 | 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 |
a80ee77eb7a4b87e54efca364e4141503bca40cf | 1,826 | py | Python | miragecore/core/class_utils.py | shotastage/mirage-django | afdc1ca1fa6db01af174cf31310b6ef690d9254a | [
"Apache-2.0"
] | null | null | null | miragecore/core/class_utils.py | shotastage/mirage-django | afdc1ca1fa6db01af174cf31310b6ef690d9254a | [
"Apache-2.0"
] | 77 | 2019-05-10T22:24:54.000Z | 2021-07-02T03:11:01.000Z | miragecore/core/class_utils.py | shotastage/mirage-django | afdc1ca1fa6db01af174cf31310b6ef690d9254a | [
"Apache-2.0"
] | 1 | 2018-12-08T09:57:54.000Z | 2018-12-08T09:57:54.000Z | """
MIRAGE Framework
class_utils.py
Created by Shota Shimazu on 2018/12/13
Copyright (c) 2018-2020 Shota Shimazu All Rights Reserved.
This software is released under the Apache License, see LICENSE for detail.
https://github.com/shotastage/mirageframework/blob/master/LICENSE
"""
from typing import Type, TypeVar
"... | 32.035088 | 78 | 0.77218 | 277 | 1,826 | 5.054152 | 0.566787 | 0.062857 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013021 | 0.158817 | 1,826 | 56 | 79 | 32.607143 | 0.898438 | 0.181271 | 0 | 0 | 0 | 0 | 0.175385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0 | 0.555556 | 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 |
a82546b593abd0544a92d5eb8f961fa787cb1499 | 911 | py | Python | third_party/compiler_gym/envs/__init__.py | HuantWang/SUPERSONIC | bea7090e8bc4a54ed52495dd910ef946c88bec67 | [
"CC-BY-4.0"
] | 78 | 2022-02-02T00:23:02.000Z | 2022-03-15T11:44:02.000Z | third_party/compiler_gym/envs/__init__.py | HuantWang/SUPERSONIC | bea7090e8bc4a54ed52495dd910ef946c88bec67 | [
"CC-BY-4.0"
] | null | null | null | third_party/compiler_gym/envs/__init__.py | HuantWang/SUPERSONIC | bea7090e8bc4a54ed52495dd910ef946c88bec67 | [
"CC-BY-4.0"
] | 3 | 2022-01-30T05:10:14.000Z | 2022-03-04T21:18:44.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from compiler_gym.envs.compiler_env import CompilerEnv
from compiler_gym.envs.llvm.llvm_env import LlvmEnv
# from compiler_gym.envs.Optimizati... | 33.740741 | 72 | 0.794731 | 118 | 911 | 5.949153 | 0.398305 | 0.172365 | 0.213675 | 0.216524 | 0.290598 | 0.15812 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132821 | 911 | 26 | 73 | 35.038462 | 0.888608 | 0.248079 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.421053 | 0 | 0.421053 | 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 |
a831770ad34d6e935cbcbe4e5227fd97a9930c9d | 370 | py | Python | corehq/apps/sms/handlers/fallback.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | corehq/apps/sms/handlers/fallback.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/sms/handlers/fallback.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | from corehq.apps.domain.models import Domain
from corehq.apps.sms.api import send_sms_to_verified_number
def fallback_handler(v, text, msg):
domain_obj = Domain.get_by_name(v.domain, strict=True)
if domain_obj.use_default_sms_response and domain_obj.default_sms_response:
send_sms_to_verified_number(v, ... | 37 | 79 | 0.808108 | 60 | 370 | 4.616667 | 0.5 | 0.129964 | 0.194946 | 0.122744 | 0.361011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124324 | 370 | 9 | 80 | 41.111111 | 0.854938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a835ff04ab175c033fecb9b1391d228accb21386 | 472 | py | Python | cookbook/movies/models.py | Geeker1/graphql-django | ef10886a03b6393bd16aa73576f515394cc4bd9e | [
"MIT"
] | 1 | 2020-06-05T08:31:08.000Z | 2020-06-05T08:31:08.000Z | cookbook/movies/models.py | Geeker1/graphql-django | ef10886a03b6393bd16aa73576f515394cc4bd9e | [
"MIT"
] | 2 | 2020-06-06T00:21:18.000Z | 2021-06-10T22:11:53.000Z | cookbook/movies/models.py | Geeker1/graphql-django | ef10886a03b6393bd16aa73576f515394cc4bd9e | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Actor(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return self.name
class Meta:
ordering = ('name',)
class Movie(models.Model):
title = models.CharField(max_length=100)
actors = models.M... | 18.153846 | 44 | 0.646186 | 56 | 472 | 5.267857 | 0.5 | 0.074576 | 0.122034 | 0.162712 | 0.318644 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.245763 | 472 | 25 | 45 | 18.88 | 0.811798 | 0.050847 | 0 | 0.266667 | 0 | 0 | 0.020179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.133333 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b5493499d3d8fe9083b4df07bdfd09dd61f712a6 | 1,007 | py | Python | phonetic_matcher/__init__.py | JarbasAl/phonetic_matcher | 82c3bd808e40e75086716bf12bf7a719b741e817 | [
"Apache-2.0"
] | 2 | 2020-12-29T02:38:25.000Z | 2021-01-15T05:48:56.000Z | phonetic_matcher/__init__.py | JarbasAl/phonetic_matcher | 82c3bd808e40e75086716bf12bf7a719b741e817 | [
"Apache-2.0"
] | null | null | null | phonetic_matcher/__init__.py | JarbasAl/phonetic_matcher | 82c3bd808e40e75086716bf12bf7a719b741e817 | [
"Apache-2.0"
] | 1 | 2021-04-27T16:44:33.000Z | 2021-04-27T16:44:33.000Z | from phonetic_matcher.phonemes import phoneme_fuzzy_match, phoneme_match, phoneme_best_match
from phonetic_matcher.metaphone import metaphone_fuzzy_match, \
metaphone_match, metaphone_best_match, dmetaphone_best_match, \
dmetaphone_fuzzy_match, dmetaphone_match
from phonetic_matcher.string_matching import Match... | 41.958333 | 94 | 0.764647 | 142 | 1,007 | 5.098592 | 0.267606 | 0.110497 | 0.038674 | 0.074586 | 0.411602 | 0.356354 | 0.356354 | 0.356354 | 0.290055 | 0.290055 | 0 | 0.008121 | 0.143992 | 1,007 | 23 | 95 | 43.782609 | 0.831787 | 0 | 0 | 0.235294 | 0 | 0 | 0.005958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.176471 | 0.117647 | 0.764706 | 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 |
b578f958425f8bac906c1a155ed613c8c988f0f0 | 592 | py | Python | Test/test_fizzbuzz.py | merciewaf/Bootcamp8-nbo | 92994debb24ba1bafea4e93909b96b5ba96d6d5b | [
"MIT"
] | null | null | null | Test/test_fizzbuzz.py | merciewaf/Bootcamp8-nbo | 92994debb24ba1bafea4e93909b96b5ba96d6d5b | [
"MIT"
] | null | null | null | Test/test_fizzbuzz.py | merciewaf/Bootcamp8-nbo | 92994debb24ba1bafea4e93909b96b5ba96d6d5b | [
"MIT"
] | null | null | null | import unittest
import fizzbuz
class FizzBuzzTest(unittest.TestCase):
"""Testing FizzBuzzTest
"""
def test_fizz_1(self):
self.assertEqual(fizz_buzz(3) 'Fizz')
def test_fizz_2(self):
self.assertEqual(fizz_buzz(33) 'Fizz')
def test_buzz_1(self):
self.assertEqual(fizz_buzz(5... | 22.769231 | 52 | 0.648649 | 78 | 592 | 4.666667 | 0.282051 | 0.175824 | 0.313187 | 0.379121 | 0.505495 | 0.505495 | 0.351648 | 0 | 0 | 0 | 0 | 0.037199 | 0.228041 | 592 | 26 | 53 | 22.769231 | 0.7593 | 0 | 0 | 0 | 0 | 0 | 0.056637 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0 | null | null | 0 | 0.133333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b589ac2f20bcb0e4420ac853ae3fdf5cd1a715ad | 192 | py | Python | ballot/constants.py | HiroshiFuu/cs-balloting | 565eb3ee88769d88b27705828c10c7b5be964ef5 | [
"MIT"
] | null | null | null | ballot/constants.py | HiroshiFuu/cs-balloting | 565eb3ee88769d88b27705828c10c7b5be964ef5 | [
"MIT"
] | null | null | null | ballot/constants.py | HiroshiFuu/cs-balloting | 565eb3ee88769d88b27705828c10c7b5be964ef5 | [
"MIT"
] | null | null | null | from django.utils.translation import gettext as _
POLL_TYPE_BY_SHARE = 1
POLL_TYPE_BY_LOT = 2
POLL_TYPES = (
(POLL_TYPE_BY_SHARE, _('By Share')),
(POLL_TYPE_BY_LOT, _('By Lot')),
)
| 17.454545 | 49 | 0.708333 | 31 | 192 | 3.870968 | 0.483871 | 0.266667 | 0.333333 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 0.171875 | 192 | 10 | 50 | 19.2 | 0.742138 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
b58bb64615a432ea673443ce6d6fc020d1ef2a27 | 381 | py | Python | run.py | AnneSWarlaumont/BabbleNN | efb0fab6b03cee746886329dbb7c541e54b61025 | [
"MIT"
] | 7 | 2015-09-10T03:38:20.000Z | 2019-03-15T13:41:13.000Z | run.py | AnneSWarlaumont/BabbleNN | efb0fab6b03cee746886329dbb7c541e54b61025 | [
"MIT"
] | null | null | null | run.py | AnneSWarlaumont/BabbleNN | efb0fab6b03cee746886329dbb7c541e54b61025 | [
"MIT"
] | 5 | 2015-09-10T02:04:04.000Z | 2022-02-22T16:56:03.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 22 12:42:32 2018
@author: awarlau
"""
import sys
sys.path.append('/Users/awarlau/Google Drive/Work/IVOC-NN-Learning/BabbleNN')
import babble_daspnet_reservoir
babble_daspnet_reservoir.sim('Mortimer','/Users/awarlau/Downloads',
... | 29.307692 | 77 | 0.629921 | 49 | 381 | 4.816327 | 0.836735 | 0.101695 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057432 | 0.223097 | 381 | 13 | 78 | 29.307692 | 0.739865 | 0.254593 | 0 | 0 | 0 | 0 | 0.344203 | 0.293478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b5910362d1e1112d2155a21463e92811306d299b | 7,721 | py | Python | pycatia/part_interfaces/remove_face.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | pycatia/part_interfaces/remove_face.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | pycatia/part_interfaces/remove_face.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! usr/bin/python3.6
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... | 32.995726 | 111 | 0.522342 | 771 | 7,721 | 5.093385 | 0.212711 | 0.063662 | 0.035651 | 0.036669 | 0.67125 | 0.662083 | 0.614719 | 0.605551 | 0.596893 | 0.571429 | 0 | 0.043139 | 0.402539 | 7,721 | 233 | 112 | 33.137339 | 0.808151 | 0.629323 | 0 | 0.147059 | 1 | 0 | 0.016621 | 0.016621 | 0 | 0 | 0 | 0 | 0 | 1 | 0.323529 | false | 0 | 0.088235 | 0.029412 | 0.676471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b5992198f893f00160d9d66e12ff178e823fc458 | 311 | py | Python | threeplot/objects/__init__.py | vidartf/threeplot | 8f14f1175a90c47c5487c2768b0a7a008ab1c8ed | [
"BSD-3-Clause"
] | 3 | 2017-08-31T13:51:23.000Z | 2017-09-18T08:14:56.000Z | threeplot/objects/__init__.py | vidartf/threeplot | 8f14f1175a90c47c5487c2768b0a7a008ab1c8ed | [
"BSD-3-Clause"
] | null | null | null | threeplot/objects/__init__.py | vidartf/threeplot | 8f14f1175a90c47c5487c2768b0a7a008ab1c8ed | [
"BSD-3-Clause"
] | 2 | 2017-09-18T08:14:41.000Z | 2018-06-10T01:49:11.000Z | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from .object import ObjectWidget
from .axescross import AxesCross
from .gridcross import GridCross, GridlineStyle, GridStyle
from .cylindricalgrid import CylindricalGrid
| 28.272727 | 58 | 0.803859 | 39 | 311 | 6.410256 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.131833 | 311 | 10 | 59 | 31.1 | 0.922222 | 0.421222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b5a23a901342a2542dca1f781e6ce0510ef27e6a | 51 | py | Python | hw/code/tfidf/common.py | skrilladeville/msds692 | 1690846e7299819cd5b1b24a56968bf1074e16bf | [
"MIT"
] | 87 | 2018-08-10T23:27:24.000Z | 2022-03-29T05:07:45.000Z | hw/code/tfidf/common.py | skrilladeville/msds692 | 1690846e7299819cd5b1b24a56968bf1074e16bf | [
"MIT"
] | 1 | 2019-10-06T15:45:03.000Z | 2019-10-06T15:45:03.000Z | hw/code/tfidf/common.py | skrilladeville/msds692 | 1690846e7299819cd5b1b24a56968bf1074e16bf | [
"MIT"
] | 171 | 2018-08-20T23:59:43.000Z | 2022-03-31T16:21:52.000Z | from tfidf import *
import sys
xmltext = ...
...
| 7.285714 | 19 | 0.607843 | 6 | 51 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 51 | 6 | 20 | 8.5 | 0.794872 | 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 |
b5a65caebd0e296d1610a063fd2763cfbebacdab | 122 | py | Python | cbsdng/types.py | mekanix/cbsdng-backend | 0c0058521ffb97b0dd9948a257290c5489ae5216 | [
"BSD-2-Clause"
] | null | null | null | cbsdng/types.py | mekanix/cbsdng-backend | 0c0058521ffb97b0dd9948a257290c5489ae5216 | [
"BSD-2-Clause"
] | 5 | 2020-10-19T21:54:55.000Z | 2020-11-20T13:02:49.000Z | cbsdng/types.py | mekanix/cbsdng-backend | 0c0058521ffb97b0dd9948a257290c5489ae5216 | [
"BSD-2-Clause"
] | 1 | 2020-10-10T18:00:39.000Z | 2020-10-10T18:00:39.000Z | class Type():
NONE = 0x0
NOCOLOR = 0x1
JAIL = 0x2
BHYVE = 0x4
EXIT = 0x8
CONNECTION_CLOSED = 0x10
| 15.25 | 28 | 0.565574 | 15 | 122 | 4.533333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.360656 | 122 | 7 | 29 | 17.428571 | 0.705128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155738 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b5a694986f51a084780828d6c10b1100cb684122 | 673 | py | Python | src/util.py | j0sh77/phnot | 19f6f91a19ced971adc05bd45f3ba5d8cfb1e5ae | [
"MIT"
] | null | null | null | src/util.py | j0sh77/phnot | 19f6f91a19ced971adc05bd45f3ba5d8cfb1e5ae | [
"MIT"
] | null | null | null | src/util.py | j0sh77/phnot | 19f6f91a19ced971adc05bd45f3ba5d8cfb1e5ae | [
"MIT"
] | null | null | null | import re
import auth
import conf
def should_ignore_username(username):
ignore_due_to_current_user = conf.IGNORE_MY_ACTIONS and username == auth.MAIL_USER
return username is None or ignore_due_to_current_user or sum([1 for user in conf.IGNORED_USERS if user in username])
def regex_phab_id(subject):
return... | 35.421053 | 120 | 0.745914 | 114 | 673 | 4.149123 | 0.464912 | 0.082452 | 0.046512 | 0.07611 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017153 | 0.13373 | 673 | 18 | 121 | 37.388889 | 0.794168 | 0 | 0 | 0 | 0 | 0 | 0.090639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.214286 | 0.142857 | 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 |
a91442e101a4129872fca1f9bdc322d05529f35e | 305 | py | Python | flask_imagine/filters/interface.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 1 | 2016-04-16T00:51:35.000Z | 2016-04-16T00:51:35.000Z | flask_imagine/filters/interface.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 8 | 2016-04-12T22:32:51.000Z | 2021-09-07T23:23:32.000Z | flask_imagine/filters/interface.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 2 | 2017-05-21T13:45:54.000Z | 2017-12-14T17:28:18.000Z | """
This module implement a filter interface.
"""
class ImagineFilterInterface(object):
"""
Filter interface
"""
def apply(self, resource):
"""
Apply filter to resource
:param resource: Image
:return: Image
"""
raise NotImplementedError()
| 17.941176 | 41 | 0.580328 | 26 | 305 | 6.807692 | 0.730769 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314754 | 305 | 16 | 42 | 19.0625 | 0.84689 | 0.396721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a9282ce2dd1c134d7f5ee63abfd7dd0870b2fa95 | 289 | py | Python | dynaparse/parsers/yaml_parser.py | kungfuai/dynaparse | 6c4001718b80deaf9552ffa95b69f961fee6ff89 | [
"MIT"
] | 2 | 2021-08-13T20:15:11.000Z | 2022-01-23T02:03:40.000Z | dynaparse/parsers/yaml_parser.py | kungfuai/dynaparse | 6c4001718b80deaf9552ffa95b69f961fee6ff89 | [
"MIT"
] | 8 | 2021-07-08T16:52:02.000Z | 2021-10-30T14:47:00.000Z | dynaparse/parsers/yaml_parser.py | kungfuai/dynaparse | 6c4001718b80deaf9552ffa95b69f961fee6ff89 | [
"MIT"
] | null | null | null | import yaml
class YAMLParser:
@classmethod
def load(cls, filename):
with open(filename, "r") as fd:
return yaml.safe_load(fd)
@staticmethod
def is_yaml(filename):
return filename.lower().endswith(".yaml") or filename.lower().endswith(".yml")
| 22.230769 | 86 | 0.633218 | 35 | 289 | 5.171429 | 0.628571 | 0.143646 | 0.232044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238754 | 289 | 12 | 87 | 24.083333 | 0.822727 | 0 | 0 | 0 | 0 | 0 | 0.034602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
a933da3999e46bef53007e6925a2c50f9b5d7942 | 5,001 | py | Python | S4/S4 Library/simulation/interactions/constraint_variants.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/interactions/constraint_variants.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/interactions/constraint_variants.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from _sims4_collections import frozendict
from interactions.constraints import TunableFacing, TunableLineOfSight, TunableCone, TunableCircle, TunableSpawnPoint, RelativeCircleConstraint, CurrentPosition, TunablePosition, PostureConstraintFactory, TunableWelcomeConstraint, TunableFrontDoorConstraint, JigConstraint, Obje... | 135.162162 | 1,892 | 0.771046 | 486 | 5,001 | 7.728395 | 0.316872 | 0.045261 | 0.031949 | 0.027689 | 0.186102 | 0.100639 | 0.053248 | 0.035676 | 0.035676 | 0.035676 | 0 | 0.003527 | 0.14957 | 5,001 | 36 | 1,893 | 138.916667 | 0.879614 | 0 | 0 | 0 | 0 | 0.034483 | 0.24995 | 0.004799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.206897 | 0.034483 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a947be3b507c1b2a7dbb333a57c0c4d1416004de | 977 | py | Python | embeddings/position_embedding.py | lvyufeng/basic_nlp_modules | 354aac74eaa268f6bc4cf29d44adbe8d3f41e9ad | [
"MIT"
] | 4 | 2020-05-01T16:30:24.000Z | 2021-04-05T12:50:48.000Z | embeddings/position_embedding.py | lvyufeng/basic_nlp_modules | 354aac74eaa268f6bc4cf29d44adbe8d3f41e9ad | [
"MIT"
] | null | null | null | embeddings/position_embedding.py | lvyufeng/basic_nlp_modules | 354aac74eaa268f6bc4cf29d44adbe8d3f41e9ad | [
"MIT"
] | null | null | null | import torch
import numpy as np
def position_encoding(n_postion, dim_hidden, padding_idx = None):
"""
from paper: Attention is all you need <http://papers.nips.cc/paper/7181-attention-is-all-you-need.pdf>
"""
def angle(postion, hidden_idx):
"""
pos/10000^(2i/d_{model})
"""
... | 30.53125 | 106 | 0.647902 | 143 | 977 | 4.195804 | 0.412587 | 0.093333 | 0.046667 | 0.056667 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.214944 | 977 | 32 | 107 | 30.53125 | 0.74837 | 0.12999 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.052632 | 0.157895 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a94cb51462a098a7bf4ed9939c8a4470291a0b7d | 71 | py | Python | BasicPrograms/bitwiseNotOperator.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | 1 | 2020-09-30T19:06:15.000Z | 2020-09-30T19:06:15.000Z | BasicPrograms/bitwiseNotOperator.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | null | null | null | BasicPrograms/bitwiseNotOperator.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | null | null | null | # BITWISE NOT OPERATOR FOR A GIVEN NUMBER
N = int(input(""))
print(~N)
| 17.75 | 41 | 0.676056 | 12 | 71 | 4 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 71 | 3 | 42 | 23.666667 | 0.813559 | 0.549296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a962cb85bc6dc2b6244a9365895188ae091a0b82 | 422 | py | Python | mmdet/models/roi_heads/mask_heads/__init__.py | hding2455/DSC | a3f49f549fd569e3c22b6dadbee1013418b9716f | [
"BSD-2-Clause"
] | 13 | 2021-04-26T08:33:00.000Z | 2022-03-30T03:29:36.000Z | mmdet/models/roi_heads/mask_heads/__init__.py | hding2455/DSC | a3f49f549fd569e3c22b6dadbee1013418b9716f | [
"BSD-2-Clause"
] | 14 | 2021-06-24T07:02:38.000Z | 2022-03-18T21:25:47.000Z | mmdet/models/roi_heads/mask_heads/__init__.py | hding2455/DSC | a3f49f549fd569e3c22b6dadbee1013418b9716f | [
"BSD-2-Clause"
] | 3 | 2021-10-21T11:42:32.000Z | 2022-03-26T08:30:34.000Z | from .coarse_mask_head import CoarseMaskHead
from .fcn_mask_head import FCNMaskHead
from .fused_semantic_head import FusedSemanticHead
from .grid_head import GridHead
from .dsc_mask_head import DSCMaskHead
from .mask_point_head import MaskPointHead
from .maskiou_head import MaskIoUHead
__all__ = [
'FCNMaskHead', '... | 32.461538 | 66 | 0.815166 | 48 | 422 | 6.833333 | 0.416667 | 0.213415 | 0.128049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113744 | 422 | 12 | 67 | 35.166667 | 0.877005 | 0 | 0 | 0 | 0 | 0 | 0.201422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 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 |
a96c9b9c8cbd5c37abbd0d6487098320e9b55cf4 | 247 | py | Python | tests/test_wfgenerator.py | dafnevk/nlppln | e9c64aea28d755de9f2ef4a7025c96e880e4381f | [
"Apache-2.0"
] | null | null | null | tests/test_wfgenerator.py | dafnevk/nlppln | e9c64aea28d755de9f2ef4a7025c96e880e4381f | [
"Apache-2.0"
] | null | null | null | tests/test_wfgenerator.py | dafnevk/nlppln | e9c64aea28d755de9f2ef4a7025c96e880e4381f | [
"Apache-2.0"
] | null | null | null | import pytest
from nlppln import WorkflowGenerator
class TestWFGenerator(object):
@pytest.fixture
def wf(self):
return WorkflowGenerator()
def test_steps_in_library(self, wf):
assert len(wf.steps_library.steps) > 0
| 19 | 46 | 0.712551 | 30 | 247 | 5.733333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.210526 | 247 | 12 | 47 | 20.583333 | 0.876923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 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 |
a9723611187cdc428d11b15598e00cd46714297f | 632 | py | Python | src/processor/exceptions.py | hirmeos/metrics | 546726f01e81e3ca2f37d448d01a55625e9be1ea | [
"MIT"
] | 2 | 2018-05-14T13:45:00.000Z | 2018-12-06T16:21:59.000Z | src/processor/exceptions.py | hirmeos/altmetrics | 546726f01e81e3ca2f37d448d01a55625e9be1ea | [
"MIT"
] | 23 | 2019-02-08T12:27:40.000Z | 2020-12-16T20:43:50.000Z | src/processor/exceptions.py | hirmeos/altmetrics | 546726f01e81e3ca2f37d448d01a55625e9be1ea | [
"MIT"
] | 1 | 2020-05-04T08:44:25.000Z | 2020-05-04T08:44:25.000Z | class TimeoutException(Exception):
"""Class to add a timeout attribute to an exception. If an exception is
raised specifically due to a rate-limits being exceeded, this class can
be used to add a timeout, indicated how long a task or application should
wait until retrying.
Attributes:
exce... | 35.111111 | 78 | 0.69462 | 83 | 632 | 5.192771 | 0.554217 | 0.090487 | 0.027842 | 0.060325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245253 | 632 | 17 | 79 | 37.176471 | 0.903564 | 0.612342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 |
a9a3306ac4cea7c299fdb6e6072a2168baeedfc0 | 1,428 | py | Python | tests/shells/rubbishcontext.py | NymanRobin/crl-interactivesessions | 2c1df279cde6c006d1741bed386ebbe2e5faf8ec | [
"BSD-3-Clause"
] | 2 | 2019-04-10T11:13:55.000Z | 2019-05-04T17:46:23.000Z | tests/shells/rubbishcontext.py | NymanRobin/crl-interactivesessions | 2c1df279cde6c006d1741bed386ebbe2e5faf8ec | [
"BSD-3-Clause"
] | 39 | 2019-03-04T14:20:24.000Z | 2021-12-03T17:14:19.000Z | tests/shells/rubbishcontext.py | NymanRobin/crl-interactivesessions | 2c1df279cde6c006d1741bed386ebbe2e5faf8ec | [
"BSD-3-Clause"
] | 5 | 2019-03-04T14:20:58.000Z | 2020-01-22T19:11:00.000Z | import abc
import logging
import os
import six
from .terminalmockos import (
WriteContextBase,
AttrMockOsBase)
__copyright__ = 'Copyright (C) 2019, Nokia'
LOGGER = logging.getLogger(__name__)
@six.add_metaclass(abc.ABCMeta)
class RubbishContextBase(WriteContextBase):
@property
def client_attr(self... | 20.112676 | 81 | 0.656162 | 161 | 1,428 | 5.602484 | 0.354037 | 0.088692 | 0.060976 | 0.066519 | 0.321508 | 0.290466 | 0.27051 | 0.128603 | 0 | 0 | 0 | 0.007407 | 0.243697 | 1,428 | 70 | 82 | 20.4 | 0.827778 | 0.038515 | 0 | 0.361702 | 0 | 0 | 0.080265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.106383 | 0.170213 | 0.595745 | 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 |
8d13b5c7c138030c4eee935c7c7dc264d37f4cc8 | 4,041 | py | Python | cpi/models.py | salah93/cpi | 5708f8c3cb21fec8f3326d17aa98b3aa374220a8 | [
"MIT"
] | null | null | null | cpi/models.py | salah93/cpi | 5708f8c3cb21fec8f3326d17aa98b3aa374220a8 | [
"MIT"
] | null | null | null | cpi/models.py | salah93/cpi | 5708f8c3cb21fec8f3326d17aa98b3aa374220a8 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Python objects for modeling Consumer Price Index (CPI) data structures.
"""
from datetime import date
class ObjectList(list):
"""
A custom list that allows for lookups by the "id" attribute of objects.
"""
def get(self, key):
try:
... | 25.738854 | 111 | 0.584756 | 496 | 4,041 | 4.552419 | 0.28629 | 0.031887 | 0.029229 | 0.045173 | 0.265279 | 0.265279 | 0.265279 | 0.23295 | 0.199734 | 0.148804 | 0 | 0.00708 | 0.300916 | 4,041 | 156 | 112 | 25.903846 | 0.792212 | 0.23707 | 0 | 0.409091 | 0 | 0 | 0.059903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.011364 | 0.136364 | 0.568182 | 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 |
8d25c5d8d048b69a75cb521f2c1611d4724624d6 | 566 | py | Python | bandwidth/messaging/models/priority_enum.py | roverdotcom/python-sdk | c6947fb3331b77f0064aeec2dcf0c4ff178de34c | [
"MIT"
] | 5 | 2020-11-04T14:29:37.000Z | 2022-02-23T20:33:07.000Z | bandwidth/messaging/models/priority_enum.py | roverdotcom/python-sdk | c6947fb3331b77f0064aeec2dcf0c4ff178de34c | [
"MIT"
] | 3 | 2021-07-23T18:48:48.000Z | 2022-03-15T14:59:07.000Z | bandwidth/messaging/models/priority_enum.py | roverdotcom/python-sdk | c6947fb3331b77f0064aeec2dcf0c4ff178de34c | [
"MIT"
] | 8 | 2020-04-14T09:22:53.000Z | 2022-03-11T10:46:06.000Z | # -*- coding: utf-8 -*-
"""
bandwidth
This file was automatically generated by APIMATIC v3.0 (
https://www.apimatic.io ).
"""
class PriorityEnum(object):
"""Implementation of the 'Priority' enum.
The message's priority, currently for toll-free or short code SMS only.
Messages with a pr... | 20.214286 | 78 | 0.623675 | 67 | 566 | 5.268657 | 0.791045 | 0.045326 | 0.107649 | 0.130312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.273852 | 566 | 27 | 79 | 20.962963 | 0.851582 | 0.729682 | 0 | 0 | 1 | 0 | 0.13253 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 1 | 0 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8d27dd35f72a49307685550abeaf8e8c1afee42f | 95 | py | Python | python/file/next.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | python/file/next.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | 1 | 2016-09-15T07:06:15.000Z | 2016-09-15T07:06:15.000Z | python/file/next.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | #!/usr/bin/python35
fp = open('hello.txt')
print(fp.__next__())
print(next(fp))
fp.close()
| 9.5 | 22 | 0.642105 | 15 | 95 | 3.8 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.115789 | 95 | 9 | 23 | 10.555556 | 0.654762 | 0.189474 | 0 | 0 | 0 | 0 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8d28040460af512b4cf6d280ca21e2bd4c248268 | 148 | py | Python | skills/dff_bot_persona_2_skill/dff/core/keywords.py | stefanrer/bot-emotion2 | a09a51bb3355eec29c9fc09d1080877a64ef89fb | [
"Apache-2.0"
] | null | null | null | skills/dff_bot_persona_2_skill/dff/core/keywords.py | stefanrer/bot-emotion2 | a09a51bb3355eec29c9fc09d1080877a64ef89fb | [
"Apache-2.0"
] | null | null | null | skills/dff_bot_persona_2_skill/dff/core/keywords.py | stefanrer/bot-emotion2 | a09a51bb3355eec29c9fc09d1080877a64ef89fb | [
"Apache-2.0"
] | null | null | null | GLOBAL_TRANSITIONS = "global_transitions"
TRANSITIONS = "transitions"
RESPONSE = "response"
PROCESSING = "processing"
GRAPH = "graph"
MISC = "misc"
| 21.142857 | 41 | 0.756757 | 14 | 148 | 7.857143 | 0.428571 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 148 | 6 | 42 | 24.666667 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.378378 | 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 |
8d44892b15e68a8801b0fc2b735804cc2ee83b40 | 2,079 | py | Python | wtf_plugin/wtf_request.py | zpriddy/WTF-Plugin-Framework | 5b7226b7c57c6048e8a1e587db98ca9a7208941e | [
"Apache-2.0"
] | null | null | null | wtf_plugin/wtf_request.py | zpriddy/WTF-Plugin-Framework | 5b7226b7c57c6048e8a1e587db98ca9a7208941e | [
"Apache-2.0"
] | null | null | null | wtf_plugin/wtf_request.py | zpriddy/WTF-Plugin-Framework | 5b7226b7c57c6048e8a1e587db98ca9a7208941e | [
"Apache-2.0"
] | null | null | null | #################################################################################
# #
# Copyright 2018/08/16 Zachary Priddy (me@zpriddy.com) https://zpriddy.com #
# ... | 43.3125 | 81 | 0.435305 | 180 | 2,079 | 4.872222 | 0.494444 | 0.068415 | 0.051311 | 0.036488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009983 | 0.421837 | 2,079 | 47 | 82 | 44.234043 | 0.719634 | 0.470418 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.52381 | 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 |
8d49ac0dd764d7fc280cce866074fdaf5a196076 | 154 | py | Python | python/testData/docstrings/googleMandatoryIndentationInsideSection.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/docstrings/googleMandatoryIndentationInsideSection.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/docstrings/googleMandatoryIndentationInsideSection.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def f(x, y):
"""
Args:
x (int): foo
Args:
y (int): bar
Examples:
first line
second line
third line
""" | 11.846154 | 20 | 0.415584 | 19 | 154 | 3.368421 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.461039 | 154 | 13 | 21 | 11.846154 | 0.771084 | 0.603896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8d5510046a93cbb3eb8cd15f608875c9c12f6b4a | 252 | py | Python | backend/api/main.py | ryutaro-0907/prome | efb8211e6d832e5b1c4b2dffd70b13b696baf45f | [
"MIT"
] | null | null | null | backend/api/main.py | ryutaro-0907/prome | efb8211e6d832e5b1c4b2dffd70b13b696baf45f | [
"MIT"
] | null | null | null | backend/api/main.py | ryutaro-0907/prome | efb8211e6d832e5b1c4b2dffd70b13b696baf45f | [
"MIT"
] | null | null | null | from typing import Dict
from fastapi import FastAPI
from api.infrastcture import sample_router
app = FastAPI()
sample_router = sample_router.router
app.include_router(sample_router)
@app.get("/")
def root() -> Dict:
return {"message": "root"} | 16.8 | 42 | 0.746032 | 34 | 252 | 5.382353 | 0.470588 | 0.262295 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 252 | 15 | 43 | 16.8 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0.047431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 3 |
8d60ab6e6d84aabdb4bd131927f58447eaad9f55 | 2,731 | py | Python | tests/integration_tests/test_full_ops_on_mirror_repo.py | ralphqq/gitchm | 1b403efb30fda127333575c131723a75200a0ab3 | [
"MIT"
] | 1 | 2020-07-06T17:43:52.000Z | 2020-07-06T17:43:52.000Z | tests/integration_tests/test_full_ops_on_mirror_repo.py | ralphqq/gitchm | 1b403efb30fda127333575c131723a75200a0ab3 | [
"MIT"
] | null | null | null | tests/integration_tests/test_full_ops_on_mirror_repo.py | ralphqq/gitchm | 1b403efb30fda127333575c131723a75200a0ab3 | [
"MIT"
] | null | null | null | """
End-to-end mirror ops tests for different scenarios
involving mirror destination repos.
Test Classes:
TestMirrorOpsDestMaster
"""
import pytest
from gitchm.utils import delete_dir
from tests.utils import (
DEST_FEATURE_COMMITS,
DEST_MASTER_COMMITS,
FEATURE_BRANCH,
listify_attribute,
load_i... | 34.1375 | 68 | 0.700842 | 354 | 2,731 | 5.096045 | 0.220339 | 0.062084 | 0.039911 | 0.039911 | 0.741685 | 0.741685 | 0.711752 | 0.674058 | 0.674058 | 0.62306 | 0 | 0.000938 | 0.219334 | 2,731 | 79 | 69 | 34.56962 | 0.845216 | 0.147931 | 0 | 0.45283 | 0 | 0 | 0.027754 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.09434 | 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 |
8d6a014ae4dd89451f9827e9500c5b305c93d565 | 301 | py | Python | python/test-nose.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | python/test-nose.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | python/test-nose.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | def compute(a, b):
return a + b
def Test1():
a = -1
b = 1
assert compute(a, b) == -1
def testabc():
a = 0
b = -1
assert compute(a, b) == 0
def Test3():
a = 1
b = 10
assert compute(a, b) == 10
def Test4():
a = -1
b = -1
assert compute(a, b) == 1
| 13.086957 | 30 | 0.451827 | 51 | 301 | 2.666667 | 0.254902 | 0.088235 | 0.330882 | 0.441176 | 0.419118 | 0.419118 | 0.294118 | 0.294118 | 0.294118 | 0 | 0 | 0.091398 | 0.38206 | 301 | 22 | 31 | 13.681818 | 0.639785 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.277778 | false | 0 | 0 | 0.055556 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d871c4a82afa39c541dc59cbcfbf36209a2f12b | 364 | py | Python | polecat/utils/importing.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 4 | 2019-08-10T12:56:12.000Z | 2020-01-21T09:51:20.000Z | polecat/utils/importing.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 71 | 2019-04-09T05:39:21.000Z | 2020-05-16T23:09:24.000Z | polecat/utils/importing.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | null | null | null | import importlib
def import_attribute(path_or_attr):
if isinstance(path_or_attr, str):
last_index = path_or_attr.rfind('.')
module_path = path_or_attr[:last_index]
attr_name = path_or_attr[last_index + 1:]
module = importlib.import_module(module_path)
path_or_attr = getattr... | 30.333333 | 53 | 0.703297 | 52 | 364 | 4.480769 | 0.346154 | 0.180258 | 0.300429 | 0.137339 | 0.291845 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003484 | 0.211538 | 364 | 11 | 54 | 33.090909 | 0.808362 | 0 | 0 | 0 | 0 | 0 | 0.002747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8da32cf8b35694d16ea6aab073caf60b47a8c5d9 | 1,120 | py | Python | geo/hierarchy.py | saxix/django-geo | f061f50d6514507fb50e329043820dd0aca0c452 | [
"BSD-1-Clause"
] | 9 | 2015-08-22T20:38:48.000Z | 2021-07-02T23:36:12.000Z | geo/hierarchy.py | saxix/django-geo | f061f50d6514507fb50e329043820dd0aca0c452 | [
"BSD-1-Clause"
] | null | null | null | geo/hierarchy.py | saxix/django-geo | f061f50d6514507fb50e329043820dd0aca0c452 | [
"BSD-1-Clause"
] | 2 | 2015-06-26T16:43:18.000Z | 2018-04-23T21:34:39.000Z | # -*- coding: utf-8 -*-
from django.utils.translation import gettext as _
from geo.models import Country
def italy():
italy = Country.objects.get(iso_code='IT')
regione, __ = italy.administrativeareatype_set.get_or_create(name='Regione')
provincia, __ = italy.administrativeareatype_set.get_or_create(name... | 43.076923 | 84 | 0.578571 | 105 | 1,120 | 5.857143 | 0.333333 | 0.263415 | 0.292683 | 0.321951 | 0.517073 | 0.439024 | 0.439024 | 0 | 0 | 0 | 0 | 0.001333 | 0.330357 | 1,120 | 25 | 85 | 44.8 | 0.818667 | 0.01875 | 0 | 0 | 0 | 0 | 0.041058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
a5d4f83f34035797f8ec2708c86f4a64ef9c64b0 | 163 | py | Python | config_template.py | fortune-uwha/scrape_books | 062d7605b73e12317780cd8f0fbba0cba25d5133 | [
"MIT"
] | null | null | null | config_template.py | fortune-uwha/scrape_books | 062d7605b73e12317780cd8f0fbba0cba25d5133 | [
"MIT"
] | null | null | null | config_template.py | fortune-uwha/scrape_books | 062d7605b73e12317780cd8f0fbba0cba25d5133 | [
"MIT"
] | null | null | null | # Heroku PostgreSQL credentials, rename this file to config.py
HOST = "placeholder"
DB = "placeholder"
USER = "placeholder"
PASSWORD = "placeholder"
PORT = "5432"
| 23.285714 | 62 | 0.742331 | 19 | 163 | 6.368421 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.147239 | 163 | 6 | 63 | 27.166667 | 0.841727 | 0.368098 | 0 | 0 | 0 | 0 | 0.475248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 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 |
a5d80afd4e8c892dd0c41f94376e745808aa19bf | 2,922 | py | Python | PreprocessData/all_class_files/Action.py | wkid-neu/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 3 | 2021-11-06T12:29:05.000Z | 2022-03-22T12:48:55.000Z | PreprocessData/all_class_files/Action.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | null | null | null | PreprocessData/all_class_files/Action.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 1 | 2021-11-06T12:29:12.000Z | 2021-11-06T12:29:12.000Z | from PreprocessData.all_class_files.Thing import Thing
import global_data
class Action(Thing):
def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None, potentialAction=None, sameAs=None, url=No... | 30.4375 | 385 | 0.645448 | 323 | 2,922 | 5.643963 | 0.179567 | 0.036204 | 0.084476 | 0.020845 | 0.021942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272758 | 2,922 | 95 | 386 | 30.757895 | 0.857882 | 0 | 0 | 0.347826 | 0 | 0 | 0.007075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0.028986 | 0.15942 | 0.565217 | 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 |
a5e19654873c7bf5b9d6965fea856c40d342f604 | 230 | py | Python | kaa/filetype/rst/__init__.py | tnhung2011/kaa | e6a8819a5ecba04b7db8303bd5736b5a7c9b822d | [
"Unlicense"
] | 82 | 2015-01-26T15:34:03.000Z | 2021-12-03T14:34:23.000Z | kaa/filetype/rst/__init__.py | tnhung2011/kaa | e6a8819a5ecba04b7db8303bd5736b5a7c9b822d | [
"Unlicense"
] | 34 | 2015-02-09T08:13:05.000Z | 2021-04-08T08:19:05.000Z | kaa/filetype/rst/__init__.py | tnhung2011/kaa | e6a8819a5ecba04b7db8303bd5736b5a7c9b822d | [
"Unlicense"
] | 15 | 2015-05-21T07:41:17.000Z | 2021-10-16T13:33:22.000Z | from kaa.filetype import filetypedef
class FileTypeInfo(filetypedef.FileTypeInfo):
FILE_EXT = {'.rst'}
@classmethod
def get_modetype(cls):
from kaa.filetype.rst.rstmode import RstMode
return RstMode
| 20.909091 | 52 | 0.708696 | 26 | 230 | 6.192308 | 0.653846 | 0.086957 | 0.186335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213043 | 230 | 10 | 53 | 23 | 0.889503 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a5ef0dc9d4845fd7e429c1780247a4ffb7a76d2e | 1,108 | py | Python | src/bpp/migrations/0190_auto_20191030_0532.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/migrations/0190_auto_20191030_0532.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/bpp/migrations/0190_auto_20191030_0532.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.1.10 on 2019-10-30 04:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bpp', '0189_auto_20191027_2158'),
]
operations = [
migrations.AddField(
model_name='praca_doktorska',
name='pmc_id'... | 32.588235 | 107 | 0.610108 | 125 | 1,108 | 5.224 | 0.368 | 0.11026 | 0.140888 | 0.165391 | 0.722818 | 0.666156 | 0.666156 | 0.666156 | 0.666156 | 0.666156 | 0 | 0.049628 | 0.272563 | 1,108 | 33 | 108 | 33.575758 | 0.760546 | 0.041516 | 0 | 0.592593 | 1 | 0 | 0.177358 | 0.021698 | 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 |
a5f1ed60d7b94fc22a47ad41b29585352a5dda78 | 348 | py | Python | stalkreporter/forecast_chart/_options.py | peake100/stalkreports-py | 4da5d11cd7dc27523c29948386ffc3da90b7588a | [
"MIT"
] | null | null | null | stalkreporter/forecast_chart/_options.py | peake100/stalkreports-py | 4da5d11cd7dc27523c29948386ffc3da90b7588a | [
"MIT"
] | null | null | null | stalkreporter/forecast_chart/_options.py | peake100/stalkreports-py | 4da5d11cd7dc27523c29948386ffc3da90b7588a | [
"MIT"
] | null | null | null | import dataclasses
from typing import Optional
from protogen.stalk_proto import models_pb2 as proto
from stalkreporter import colors
@dataclasses.dataclass
class ForecastOptions:
ticker: proto.Ticker
forecast: proto.Forecast
image_format: proto.ImageFormat
bg_color: Optional[colors.ColorType]
pad... | 21.75 | 52 | 0.787356 | 42 | 348 | 6.428571 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003448 | 0.166667 | 348 | 15 | 53 | 23.2 | 0.927586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.916667 | 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 |
570e87a5facee3138ad8ff84061ccb382e0fe4c4 | 105 | py | Python | pytest_xray/constants.py | IlyaKnysh/pytest_xray | 031ab941aa37c0172f303ca2df90ee2430553c9d | [
"MIT"
] | null | null | null | pytest_xray/constants.py | IlyaKnysh/pytest_xray | 031ab941aa37c0172f303ca2df90ee2430553c9d | [
"MIT"
] | null | null | null | pytest_xray/constants.py | IlyaKnysh/pytest_xray | 031ab941aa37c0172f303ca2df90ee2430553c9d | [
"MIT"
] | null | null | null | XRAY_PLUGIN = "JIRA_XRAY"
XRAY_MARKER_NAME = "xray"
XRAY_API_BASE_URL = "https://xray.cloud.getxray.app"
| 26.25 | 52 | 0.771429 | 17 | 105 | 4.352941 | 0.705882 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 105 | 3 | 53 | 35 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0.409524 | 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 |
57106b1126a1fd26f501c28adb05ed7d322ed60b | 1,824 | py | Python | Polygon Area Calculator/shape_calculator.py | m3gofriends/freeCodeCamp-Scientific-Computing-with-Python-Projects | 70b805875eda3169f0aafc7cea17e013b612d22d | [
"MIT"
] | null | null | null | Polygon Area Calculator/shape_calculator.py | m3gofriends/freeCodeCamp-Scientific-Computing-with-Python-Projects | 70b805875eda3169f0aafc7cea17e013b612d22d | [
"MIT"
] | null | null | null | Polygon Area Calculator/shape_calculator.py | m3gofriends/freeCodeCamp-Scientific-Computing-with-Python-Projects | 70b805875eda3169f0aafc7cea17e013b612d22d | [
"MIT"
] | null | null | null | class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def __str__(self):
return "Rectangle(width=" + str(self.width) + ", height="+ str(self.height) + ")"
def set_width(self, width):
self.width = width
def set_height(self, hei... | 24.986301 | 89 | 0.552083 | 225 | 1,824 | 4.32 | 0.168889 | 0.154321 | 0.045267 | 0.082305 | 0.536008 | 0.365226 | 0.211934 | 0.146091 | 0.146091 | 0.092593 | 0 | 0.013866 | 0.327851 | 1,824 | 72 | 90 | 25.333333 | 0.778956 | 0 | 0 | 0.528302 | 0 | 0 | 0.046601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.339623 | false | 0 | 0 | 0.169811 | 0.622642 | 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 |
5714138096531ef86867e3704619a5664bd2ee52 | 97 | py | Python | tests/tokens/indent2.py | akshanshbhatt/lpython | 70fef49dbbb6cbb0447f7013231171e5c8b8e5df | [
"BSD-3-Clause"
] | 31 | 2022-01-07T23:56:33.000Z | 2022-03-29T16:09:02.000Z | tests/tokens/indent2.py | akshanshbhatt/lpython | 70fef49dbbb6cbb0447f7013231171e5c8b8e5df | [
"BSD-3-Clause"
] | 197 | 2021-12-29T19:01:41.000Z | 2022-03-31T15:58:25.000Z | tests/tokens/indent2.py | akshanshbhatt/lpython | 70fef49dbbb6cbb0447f7013231171e5c8b8e5df | [
"BSD-3-Clause"
] | 17 | 2022-01-06T15:34:36.000Z | 2022-03-31T13:55:33.000Z | class Test:
def foo(a):
if a == 'foo':
return 'foo'
return 'bar'
| 16.166667 | 24 | 0.412371 | 12 | 97 | 3.333333 | 0.666667 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.453608 | 97 | 5 | 25 | 19.4 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 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 |
571eb7df51970dc767f45442abe9636806ebb981 | 974 | py | Python | Mundo1/Desafio03.py | David-M-Dias/Exercicios-do-curso-de-Python | 14f818243f231738e9d47d452f778fb3bace93c0 | [
"MIT"
] | 1 | 2021-01-20T13:32:58.000Z | 2021-01-20T13:32:58.000Z | Mundo1/Desafio03.py | David-M-Dias/Exercicios-do-curso-de-Python | 14f818243f231738e9d47d452f778fb3bace93c0 | [
"MIT"
] | null | null | null | Mundo1/Desafio03.py | David-M-Dias/Exercicios-do-curso-de-Python | 14f818243f231738e9d47d452f778fb3bace93c0 | [
"MIT"
] | null | null | null | #Exercício Python 3: Crie um programa que leia dois números e mostre a soma entre eles.
nome = str(input("Digite seu nome: "))
print("Olá {}, tudo bem?".format(nome))
print("Espero que sim!... \nMeu nome e VanTec-9000, e hoje eu vou te ajudar com uma soma!")
print("Por favor siga os passos que eu vou te pedir, é bem f... | 51.263158 | 91 | 0.691992 | 163 | 974 | 4.134969 | 0.527607 | 0.048961 | 0.04451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015644 | 0.146817 | 974 | 19 | 92 | 51.263158 | 0.795427 | 0.088296 | 0 | 0 | 0 | 0.058824 | 0.688063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0 | 0 | 0 | 0.823529 | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
572545c62a1f37fba61e20bd431f631c8ae783b8 | 432 | py | Python | blockchain/tests/test_hash.py | tkuriyama/toycoin | aace6c2f2b55ddb2003dcbffff8b923ea6a47670 | [
"MIT"
] | 2 | 2021-07-14T07:45:26.000Z | 2021-08-11T19:28:42.000Z | blockchain/tests/test_hash.py | tkuriyama/toycoin | aace6c2f2b55ddb2003dcbffff8b923ea6a47670 | [
"MIT"
] | null | null | null | blockchain/tests/test_hash.py | tkuriyama/toycoin | aace6c2f2b55ddb2003dcbffff8b923ea6a47670 | [
"MIT"
] | null | null | null |
from toycoin import hash
################################################################################
class TestHash:
def test_hash(self):
"""Test SHA512 hash."""
msg = b'hello world'
h = '309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd'
h += '3ca86d4cd86f989dd35bc5ff... | 22.736842 | 80 | 0.532407 | 29 | 432 | 7.896552 | 0.689655 | 0.061135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218659 | 0.206019 | 432 | 18 | 81 | 24 | 0.44898 | 0.039352 | 0 | 0 | 0 | 0 | 0.42378 | 0.390244 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 1 | 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 | 0 | 0 | 3 |
57436cf5651f9566276949ce8ca803593a47a425 | 2,079 | py | Python | PYTHON/NURBSReconstruction/PetersScheme/scaleAwayParameters.py | mlaradji/CADO | 33cf9a5e3eb84e2caee5cb07ca1401d60de621da | [
"BSD-3-Clause"
] | 16 | 2016-12-20T17:02:49.000Z | 2021-12-11T20:07:34.000Z | PYTHON/NURBSReconstruction/PetersScheme/scaleAwayParameters.py | mlaradji/CADO | 33cf9a5e3eb84e2caee5cb07ca1401d60de621da | [
"BSD-3-Clause"
] | null | null | null | PYTHON/NURBSReconstruction/PetersScheme/scaleAwayParameters.py | mlaradji/CADO | 33cf9a5e3eb84e2caee5cb07ca1401d60de621da | [
"BSD-3-Clause"
] | 4 | 2019-03-10T14:44:15.000Z | 2021-08-29T20:08:01.000Z | import numpy as np
import math
import scipy.io as sio
def scaleAwayParameters(unscaled_params, datapoints):
'''
:param unscaled_params:
:param datapoints:
:return:
'''
assert type(unscaled_params) is np.ndarray
assert unscaled_params.ndim == 2
assert unscaled_params.shape[1] == 3
q... | 42.428571 | 116 | 0.465608 | 201 | 2,079 | 4.681592 | 0.273632 | 0.223167 | 0.162593 | 0.191286 | 0.485654 | 0.463337 | 0.463337 | 0.388948 | 0.136026 | 0.136026 | 0 | 0.028352 | 0.372294 | 2,079 | 48 | 117 | 43.3125 | 0.69272 | 0 | 0 | 0.060606 | 0 | 0 | 0.05045 | 0.031469 | 0 | 0 | 0 | 0 | 0.090909 | 0 | null | null | 0 | 0.090909 | null | null | 0.060606 | 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 |
5754701f72605a8e6a477ba78ed459f8adf600c6 | 22 | py | Python | configs.py | chngchinboon/Intercomstats | 2782f92fb3a654510fa93aa9280f13f98dc6d353 | [
"MIT"
] | null | null | null | configs.py | chngchinboon/Intercomstats | 2782f92fb3a654510fa93aa9280f13f98dc6d353 | [
"MIT"
] | null | null | null | configs.py | chngchinboon/Intercomstats | 2782f92fb3a654510fa93aa9280f13f98dc6d353 | [
"MIT"
] | null | null | null | pid = 'id'
key ='key' | 11 | 11 | 0.5 | 4 | 22 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 22 | 2 | 12 | 11 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 |
57579c3e1fc0c4a7866224b99746b214378e231d | 214 | py | Python | Chapter 2/Full_Name.py | 3GamersStudios/SHSPythonWork | 6f98ad3a25d30f2670dc48ca4f9b4cf75eb37a61 | [
"MIT"
] | null | null | null | Chapter 2/Full_Name.py | 3GamersStudios/SHSPythonWork | 6f98ad3a25d30f2670dc48ca4f9b4cf75eb37a61 | [
"MIT"
] | null | null | null | Chapter 2/Full_Name.py | 3GamersStudios/SHSPythonWork | 6f98ad3a25d30f2670dc48ca4f9b4cf75eb37a61 | [
"MIT"
] | null | null | null | first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
#or
full_name = "{} {}".format(first_name,last_name)
#print(full_name)
message = f"Hello, {full_name.title()}!"
print(message) | 15.285714 | 48 | 0.691589 | 32 | 214 | 4.3125 | 0.40625 | 0.231884 | 0.188406 | 0.246377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121495 | 214 | 14 | 49 | 15.285714 | 0.734043 | 0.084112 | 0 | 0 | 0 | 0 | 0.34359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
93895bf097a8df060fc04a57c7c7d9aaea147f13 | 527 | py | Python | SALEITEMS/user.py | camilyo/ITC255_Spr2019 | f88080eaee7a21b9b091b6111ea99dbaf05fb6b1 | [
"Apache-2.0"
] | null | null | null | SALEITEMS/user.py | camilyo/ITC255_Spr2019 | f88080eaee7a21b9b091b6111ea99dbaf05fb6b1 | [
"Apache-2.0"
] | null | null | null | SALEITEMS/user.py | camilyo/ITC255_Spr2019 | f88080eaee7a21b9b091b6111ea99dbaf05fb6b1 | [
"Apache-2.0"
] | null | null | null | '''
the permission will be set in the database
and only the managers will have permission to
cancel an order already completed
'''
class User():
def __init__(self, userid, username, permission):
self.userid=userid
self.username=username
self.permission=permission
def getUserNumber(self)... | 23.954545 | 53 | 0.679317 | 62 | 527 | 5.645161 | 0.467742 | 0.114286 | 0.16 | 0.125714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250474 | 527 | 22 | 54 | 23.954545 | 0.886076 | 0.231499 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9393799066066d21fa69c249a525ce4bf5e0fbbf | 577 | py | Python | backend/flourish/admin.py | huanglianqi/ricite | df493314bcdc9c6cf184a334260c02bf0bbe1f0f | [
"MIT"
] | 3 | 2020-12-07T02:46:47.000Z | 2021-04-25T00:54:20.000Z | backend/flourish/admin.py | huanglianqi/ricite | df493314bcdc9c6cf184a334260c02bf0bbe1f0f | [
"MIT"
] | 5 | 2021-03-19T03:53:43.000Z | 2022-01-27T16:12:58.000Z | backend/flourish/admin.py | huanglianqi/ricite | df493314bcdc9c6cf184a334260c02bf0bbe1f0f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import (
Teacher,
InfoForm,
UserCourse,
ApplyCourse,
FeedbackForm,
FeedbackUnit,
FeedbackPic,
Share,
ShareComment,
ShareLike,
SharePic,
)
admin.site.register(Teacher)
admin.site.register(InfoForm)
admin.site.register(UserCourse)... | 20.607143 | 33 | 0.764298 | 63 | 577 | 7 | 0.301587 | 0.22449 | 0.424036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133449 | 577 | 27 | 34 | 21.37037 | 0.882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
93939a5d601dd2352b6a85d7c8d854c9ed3ef5a6 | 1,670 | py | Python | src/harness/testcases/cu_pass/dpa_calculator/features/steps/dpa_neighborhood/cbsd_interference/clutter_loss.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | src/harness/testcases/cu_pass/dpa_calculator/features/steps/dpa_neighborhood/cbsd_interference/clutter_loss.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | src/harness/testcases/cu_pass/dpa_calculator/features/steps/dpa_neighborhood/cbsd_interference/clutter_loss.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | from behave import *
from testcases.cu_pass.dpa_calculator.features.steps.dpa_neighborhood.cbsd_interference.environment.environment import \
ContextCbsdInterference
from cu_pass.dpa_calculator.helpers.parsers import NumberRange
use_step_matcher('parse')
@then("clutter loss distribution is within {expected_clut... | 42.820513 | 139 | 0.758683 | 209 | 1,670 | 5.717703 | 0.301435 | 0.119665 | 0.190795 | 0.241004 | 0.596653 | 0.423431 | 0.423431 | 0.423431 | 0.423431 | 0.323013 | 0 | 0.001438 | 0.167066 | 1,670 | 38 | 140 | 43.947368 | 0.857656 | 0.097605 | 0 | 0.090909 | 0 | 0 | 0.192466 | 0.10274 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.136364 | false | 0.090909 | 0.136364 | 0.045455 | 0.318182 | 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 |
939402912421000adab474c27ab9943147b4d7a4 | 1,424 | py | Python | MyParser/doparser.py | freelancing-solutions/smart_gcp_functions | a2f165f6de7f13f6c6760f6e14065412f1c45626 | [
"MIT"
] | 1 | 2021-04-15T19:45:11.000Z | 2021-04-15T19:45:11.000Z | MyParser/doparser.py | freelancing-solutions/smart_gcp_functions | a2f165f6de7f13f6c6760f6e14065412f1c45626 | [
"MIT"
] | null | null | null | MyParser/doparser.py | freelancing-solutions/smart_gcp_functions | a2f165f6de7f13f6c6760f6e14065412f1c45626 | [
"MIT"
] | null | null | null |
class DataParser:
input_pub_sub_subscription = ""
output_pub_sub_subscription = ""
stocks: list = []
brokers: list = []
def __init__(self, html):
self.html = html
def parse_table_content(self, html):
"""
:param html: a table of stock or broker
:return:
... | 21.253731 | 88 | 0.511236 | 149 | 1,424 | 4.744966 | 0.342282 | 0.09901 | 0.110325 | 0.089109 | 0.287129 | 0.226308 | 0.226308 | 0.130127 | 0.130127 | 0.130127 | 0 | 0 | 0.403792 | 1,424 | 66 | 89 | 21.575758 | 0.832744 | 0.360955 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.380952 | false | 0.333333 | 0 | 0 | 0.619048 | 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 |
93cbc6423cae7b342aa28d417a50a4a89cb7c36f | 118 | py | Python | Launch.py | nurialozano/nlgammon | 96263fffa3b8275505fec131b4950ed8bca884f1 | [
"MIT"
] | null | null | null | Launch.py | nurialozano/nlgammon | 96263fffa3b8275505fec131b4950ed8bca884f1 | [
"MIT"
] | null | null | null | Launch.py | nurialozano/nlgammon | 96263fffa3b8275505fec131b4950ed8bca884f1 | [
"MIT"
] | null | null | null | from GraphicGame import GraphicGame
game = GraphicGame('GRAPHIC', 'ML', None, 'final_brain_700000')
game.start()
| 23.6 | 64 | 0.737288 | 14 | 118 | 6.071429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.135593 | 118 | 4 | 65 | 29.5 | 0.77451 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 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 |
9e0474eeb1838d1a71dfc938be77f0c18eeb36c3 | 430 | py | Python | mmdet/models/utils/activations.py | JegernOUTT/mmdetection | 4ff6189d40e2221b8376a2831247bfd8b5e06237 | [
"Apache-2.0"
] | 19 | 2019-11-18T07:19:22.000Z | 2021-09-09T04:34:21.000Z | mmdet/models/utils/activations.py | JegernOUTT/mmdetection | 4ff6189d40e2221b8376a2831247bfd8b5e06237 | [
"Apache-2.0"
] | null | null | null | mmdet/models/utils/activations.py | JegernOUTT/mmdetection | 4ff6189d40e2221b8376a2831247bfd8b5e06237 | [
"Apache-2.0"
] | 6 | 2019-11-20T15:15:06.000Z | 2022-01-28T01:01:43.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
__all__ = ['Mish', 'Swish']
class Mish(nn.Module):
def __init__(self):
super().__init__()
def forward(self, x):
return x * torch.tanh(F.softplus(x))
class Swish(nn.Module):
def __init__(self):
super(Swish, self)... | 18.695652 | 44 | 0.616279 | 60 | 430 | 4.083333 | 0.35 | 0.134694 | 0.106122 | 0.122449 | 0.37551 | 0.37551 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244186 | 430 | 22 | 45 | 19.545455 | 0.753846 | 0 | 0 | 0.266667 | 0 | 0 | 0.02093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.133333 | 0.733333 | 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 |
9e192480b6dd56d2d67724969ab5b1c5af68c6fe | 19,588 | py | Python | src/programy/parser/pattern/nodes.py | ajit2688/program-y-chatbot | f0a7eb33be2ec8de630644a6393296ddd2576eee | [
"MIT"
] | null | null | null | src/programy/parser/pattern/nodes.py | ajit2688/program-y-chatbot | f0a7eb33be2ec8de630644a6393296ddd2576eee | [
"MIT"
] | null | null | null | src/programy/parser/pattern/nodes.py | ajit2688/program-y-chatbot | f0a7eb33be2ec8de630644a6393296ddd2576eee | [
"MIT"
] | null | null | null | """
Copyright (c) 2016 Keith Sterling
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, including without limitation
the rights to use, copy, modify, merge, publish, distribute,... | 31.491961 | 126 | 0.586584 | 2,227 | 19,588 | 4.9533 | 0.100135 | 0.034902 | 0.026108 | 0.034267 | 0.615085 | 0.557701 | 0.500952 | 0.435953 | 0.370773 | 0.3162 | 0 | 0.004717 | 0.26409 | 19,588 | 621 | 127 | 31.542673 | 0.760527 | 0.072442 | 0 | 0.551887 | 0 | 0.002358 | 0.055217 | 0.002872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242925 | false | 0.002358 | 0.004717 | 0.129717 | 0.561321 | 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 |
9e1e216cab9021463ae5701bd544ef8d3315aecb | 1,604 | py | Python | tests/catalyst/contrib/utils/test_pandas.py | gr33n-made/catalyst | bd413abc908ef7cbdeab42b0e805277a791e3ddb | [
"Apache-2.0"
] | 2,693 | 2019-01-23T19:16:12.000Z | 2022-03-31T02:12:42.000Z | tests/catalyst/contrib/utils/test_pandas.py | gr33n-made/catalyst | bd413abc908ef7cbdeab42b0e805277a791e3ddb | [
"Apache-2.0"
] | 763 | 2019-01-22T20:12:56.000Z | 2022-03-27T18:36:10.000Z | tests/catalyst/contrib/utils/test_pandas.py | gr33n-made/catalyst | bd413abc908ef7cbdeab42b0e805277a791e3ddb | [
"Apache-2.0"
] | 445 | 2019-01-23T17:07:09.000Z | 2022-03-30T05:38:45.000Z | # flake8: noqa
# import pandas as pd
# import pytest
#
# from catalyst.contrib.utils.pandas import (
# folds_to_list,
# split_dataframe_on_stratified_folds,
# )
#
#
# def test_folds_to_list():
# """@TODO: Docs. Contribution is welcome."""
# assert folds_to_list("1,2,1,3,4,2,4,6") == [1, 2, 3, 4, 6]
# ... | 30.264151 | 76 | 0.591646 | 219 | 1,604 | 4.09589 | 0.310502 | 0.046823 | 0.073579 | 0.086957 | 0.403567 | 0.218506 | 0.176143 | 0.176143 | 0.176143 | 0.176143 | 0 | 0.030111 | 0.213217 | 1,604 | 52 | 77 | 30.846154 | 0.680666 | 0.934539 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.019231 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f514c11e24383877976853d4fbe6d03666b4b66b | 286 | py | Python | qtoggleserver/paradox/exceptions.py | qtoggle/qtoggleserver-paradox | 006fd1310d82cf4984e6a56c3e651a0f5704c6f4 | [
"Apache-2.0"
] | null | null | null | qtoggleserver/paradox/exceptions.py | qtoggle/qtoggleserver-paradox | 006fd1310d82cf4984e6a56c3e651a0f5704c6f4 | [
"Apache-2.0"
] | null | null | null | qtoggleserver/paradox/exceptions.py | qtoggle/qtoggleserver-paradox | 006fd1310d82cf4984e6a56c3e651a0f5704c6f4 | [
"Apache-2.0"
] | null | null | null |
class ParadoxException(Exception):
pass
class ParadoxConnectError(ParadoxException):
def __init__(self) -> None:
super().__init__('Unable to connect to panel')
class ParadoxCommandError(ParadoxException):
pass
class ParadoxTimeout(ParadoxException):
pass
| 16.823529 | 54 | 0.737762 | 26 | 286 | 7.807692 | 0.615385 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178322 | 286 | 16 | 55 | 17.875 | 0.86383 | 0 | 0 | 0.333333 | 0 | 0 | 0.091228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.333333 | 0 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f53813ee9e5952e39a0d47de0dec2f5034975501 | 357 | py | Python | discord/ext/music/utils/var.py | mansuf/discord-ext-music | 969b43e61f3e48a69a42f546fbeb3282ffba3a2b | [
"MIT"
] | 4 | 2021-08-11T18:03:43.000Z | 2022-03-07T06:46:04.000Z | discord/ext/music/utils/var.py | mansuf/discord-ext-music | 969b43e61f3e48a69a42f546fbeb3282ffba3a2b | [
"MIT"
] | null | null | null | discord/ext/music/utils/var.py | mansuf/discord-ext-music | 969b43e61f3e48a69a42f546fbeb3282ffba3a2b | [
"MIT"
] | 1 | 2021-12-10T16:19:54.000Z | 2021-12-10T16:19:54.000Z | from typing import Any
class ContextVar:
"""
like tkinter.StringVar,
but with get() and set() only
you can store any type in this thing
"""
def __init__(self, context=None):
self._ctx = context
def set(self, context: Any=None):
self._ctx = context
def... | 19.833333 | 41 | 0.579832 | 46 | 357 | 4.347826 | 0.630435 | 0.105 | 0.11 | 0.18 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330532 | 357 | 18 | 42 | 19.833333 | 0.83682 | 0.254902 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f548a9ec52bc327e7062c4e261d6d22efb5c3280 | 256 | py | Python | ipyselect2/__init__.py | opentradesolutions/ipyselect2 | 68accd9523b8f85aaeb9f7e11bf0a12daa422f58 | [
"MIT"
] | 3 | 2019-12-25T17:55:45.000Z | 2020-06-08T15:25:41.000Z | ipyselect2/__init__.py | opentradesolutions/ipyselect2 | 68accd9523b8f85aaeb9f7e11bf0a12daa422f58 | [
"MIT"
] | 9 | 2019-10-07T12:09:35.000Z | 2022-01-22T09:24:25.000Z | ipyselect2/__init__.py | opentradesolutions/ipyselect2 | 68accd9523b8f85aaeb9f7e11bf0a12daa422f58 | [
"MIT"
] | 3 | 2019-11-04T03:17:04.000Z | 2020-03-20T02:33:14.000Z | from ._version import version_info, __version__
from .select2 import *
def _jupyter_nbextension_paths():
return [{
'section': 'notebook',
'src': 'static',
'dest': 'ipyselect2',
'require': 'ipyselect2/extension'
}]
| 21.333333 | 47 | 0.613281 | 23 | 256 | 6.434783 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.25 | 256 | 11 | 48 | 23.272727 | 0.755208 | 0 | 0 | 0 | 0 | 0 | 0.253906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 0.111111 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f54f1a34405a8ed397524a91e28ff685b001682b | 617 | py | Python | tests/test_app_args.py | jeffbuttars/apistar-autoapp | 0c00d7650cfa860eeab71e58fd5b30cd04a3f1a1 | [
"Apache-2.0"
] | 5 | 2018-05-30T12:47:18.000Z | 2018-06-17T07:11:11.000Z | tests/test_app_args.py | jeffbuttars/apistar-autoapp | 0c00d7650cfa860eeab71e58fd5b30cd04a3f1a1 | [
"Apache-2.0"
] | 3 | 2018-05-23T14:20:20.000Z | 2021-06-01T22:21:46.000Z | tests/test_app_args.py | jeffbuttars/apistar-autoapp | 0c00d7650cfa860eeab71e58fd5b30cd04a3f1a1 | [
"Apache-2.0"
] | null | null | null | from apistar_autoapp.autoapp import app_args
def test_app_args_empty():
res = app_args()
assert res
assert res.get('components') == []
assert res.get('event_hooks') == []
assert res.get('routes') == []
def test_app_args_print():
# Make sure it doesn't explode
res = app_args(print_result... | 22.035714 | 44 | 0.649919 | 85 | 617 | 4.482353 | 0.329412 | 0.212598 | 0.188976 | 0.110236 | 0.503937 | 0.372703 | 0.372703 | 0.372703 | 0.372703 | 0.372703 | 0 | 0 | 0.209076 | 617 | 27 | 45 | 22.851852 | 0.780738 | 0.045381 | 0 | 0.5 | 0 | 0 | 0.131175 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.166667 | false | 0 | 0.055556 | 0 | 0.222222 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f554471c55e464c519a66bf8af93de22260f2cac | 864 | py | Python | util/config.py | urootcom/TSDK | 389a974c0fd2d647e55d0475158d2517e76db20d | [
"MIT"
] | 331 | 2018-12-29T08:09:33.000Z | 2022-03-25T10:47:25.000Z | util/config.py | satifanie/TSDK | 389a974c0fd2d647e55d0475158d2517e76db20d | [
"MIT"
] | 11 | 2019-08-16T01:22:09.000Z | 2021-08-15T06:16:27.000Z | util/config.py | satifanie/TSDK | 389a974c0fd2d647e55d0475158d2517e76db20d | [
"MIT"
] | 132 | 2018-12-26T08:49:28.000Z | 2022-03-22T02:45:01.000Z | # coding:utf-8
# 目的:作为统一的配置加载,由这个来控制配置文件的更新以及导出
# 第一:文件检查,首先检查有没有配置文件对象,如果没有下载配置文件然后更新文件对象
# 第二:时间判断,请求文件获取到请求的缓存时间然后比对文件的创建时间,如果比创建时间大那么启动更新
import datetime
import pathlib
import os
class FileUpdate(object):
def __init__(self):
self.time = datetime.datetime.now()
def __get__(self,instance,instanc... | 16.615385 | 50 | 0.646991 | 93 | 864 | 5.55914 | 0.505376 | 0.061896 | 0.06383 | 0.065764 | 0.081238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.252315 | 864 | 52 | 51 | 16.615385 | 0.797214 | 0.153935 | 0 | 0.230769 | 0 | 0 | 0.011004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.153846 | 0.115385 | 0.076923 | 0.615385 | 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 |
f55b8dcb8d38b3a8ed7da53ae93de4ca3eae174d | 892 | py | Python | tests/testapp/factories.py | mitodl/ol-django | 16989278e528614d3e8e21d4c5adc4f55761ab98 | [
"BSD-3-Clause"
] | 1 | 2021-07-26T12:43:57.000Z | 2021-07-26T12:43:57.000Z | tests/testapp/factories.py | mitodl/ol-django | 16989278e528614d3e8e21d4c5adc4f55761ab98 | [
"BSD-3-Clause"
] | 43 | 2020-08-28T12:16:11.000Z | 2022-02-01T19:45:41.000Z | tests/testapp/factories.py | mitodl/ol-django | 16989278e528614d3e8e21d4c5adc4f55761ab98 | [
"BSD-3-Clause"
] | null | null | null | """Test factories"""
from factory import SubFactory
from factory.django import DjangoModelFactory
from testapp.models import DemoCourseware
from mitol.common.factories import UserFactory
from mitol.digitalcredentials.factories import (
DigitalCredentialFactory,
DigitalCredentialRequestFactory,
)
class DemoCo... | 27.875 | 85 | 0.810538 | 68 | 892 | 10.602941 | 0.455882 | 0.041609 | 0.030513 | 0.094313 | 0.180305 | 0.180305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128924 | 892 | 31 | 86 | 28.774194 | 0.927928 | 0.165919 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.75 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f56d5e0025eeb8061262849a2fd5af2fa667ea87 | 970 | py | Python | molsysmt/item/mdtraj_Trajectory/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/item/mdtraj_Trajectory/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/item/mdtraj_Trajectory/__init__.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | from .is_mdtraj_Trajectory import is_mdtraj_Trajectory
from .extract import extract
from .add import add
from .append_structures import append_structures
from .get import *
from .set import *
from .to_file_pdb import to_file_pdb
from .to_file_xtc import to_file_xtc
from .to_biopython_Seq import to_biopython_Seq
from ... | 38.8 | 58 | 0.886598 | 148 | 970 | 5.364865 | 0.209459 | 0.11335 | 0.060453 | 0.050378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00453 | 0.089691 | 970 | 24 | 59 | 40.416667 | 0.894677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f58dc271a976cd2ee64d3467acc45236428579eb | 197 | py | Python | algebra/matrici_casuali.py | danesinoo/secondo_semestre | c6c284985f59f956d80a7073e5505cb72acaf29d | [
"MIT"
] | null | null | null | algebra/matrici_casuali.py | danesinoo/secondo_semestre | c6c284985f59f956d80a7073e5505cb72acaf29d | [
"MIT"
] | null | null | null | algebra/matrici_casuali.py | danesinoo/secondo_semestre | c6c284985f59f956d80a7073e5505cb72acaf29d | [
"MIT"
] | null | null | null | import random
def num():
return str(random.randint(0,9))
righe = random.randint(3,4)
for i in range(righe):
line = []
for i in range(righe):
line.append(num())
print(line)
| 17.909091 | 35 | 0.609137 | 31 | 197 | 3.870968 | 0.612903 | 0.216667 | 0.1 | 0.183333 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.238579 | 197 | 10 | 36 | 19.7 | 0.773333 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
191a7751c226d89d2f4198dd51558c3dc63e9f41 | 1,046 | py | Python | django_teams/templatetags/teams.py | SumedhWalujkar/django_teams | 969c7467e4e4ad75e026cc7b369fac944b6b6cc9 | [
"MIT"
] | null | null | null | django_teams/templatetags/teams.py | SumedhWalujkar/django_teams | 969c7467e4e4ad75e026cc7b369fac944b6b6cc9 | [
"MIT"
] | null | null | null | django_teams/templatetags/teams.py | SumedhWalujkar/django_teams | 969c7467e4e4ad75e026cc7b369fac944b6b6cc9 | [
"MIT"
] | null | null | null | from django import template
from django.contrib.contenttypes.models import ContentType
def get_user_status(team, user):
ts = team.get_user_status(user)
return ts
def get_owned_objects(team, model):
return team.owned_objects(model)
def get_approved_objects(team, model):
return team.approved_objects... | 24.325581 | 82 | 0.774379 | 140 | 1,046 | 5.535714 | 0.307143 | 0.108387 | 0.087742 | 0.056774 | 0.067097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135755 | 1,046 | 42 | 83 | 24.904762 | 0.857301 | 0 | 0 | 0 | 0 | 0 | 0.06501 | 0.06501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.142857 | 0.535714 | 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 |
191ba4a780b823eaf5632d086ed40765fb5a8c9d | 2,137 | py | Python | compiler/bitcells/replica_bitcell_1port.py | im-world/OpenRAM | f66aac3264598eeae31225c62b6a4af52412d407 | [
"BSD-3-Clause"
] | 335 | 2018-03-13T21:05:22.000Z | 2022-03-30T07:53:25.000Z | compiler/bitcells/replica_bitcell_1port.py | im-world/OpenRAM | f66aac3264598eeae31225c62b6a4af52412d407 | [
"BSD-3-Clause"
] | 87 | 2018-03-06T00:55:51.000Z | 2022-03-30T19:38:29.000Z | compiler/bitcells/replica_bitcell_1port.py | im-world/OpenRAM | f66aac3264598eeae31225c62b6a4af52412d407 | [
"BSD-3-Clause"
] | 95 | 2018-03-14T16:22:55.000Z | 2022-03-24T00:34:37.000Z | # See LICENSE for licensing information.
#
# Copyright (c) 2016-2021 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import debug
import bitcell_base
from tech impor... | 38.854545 | 113 | 0.701451 | 297 | 2,137 | 4.888889 | 0.511785 | 0.022727 | 0.028926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013301 | 0.226018 | 2,137 | 55 | 114 | 38.854545 | 0.864571 | 0.430978 | 0 | 0 | 0 | 0 | 0.065348 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
191cbe2c7239a5203e516fb2efe90fadd7908764 | 6,540 | py | Python | manitobot/utility.py | kubamik/Manitobot | 4185be44a1afd2a3b796020bc819c8c65dca0e07 | [
"MIT"
] | null | null | null | manitobot/utility.py | kubamik/Manitobot | 4185be44a1afd2a3b796020bc819c8c65dca0e07 | [
"MIT"
] | null | null | null | manitobot/utility.py | kubamik/Manitobot | 4185be44a1afd2a3b796020bc819c8c65dca0e07 | [
"MIT"
] | 1 | 2020-07-01T17:21:48.000Z | 2020-07-01T17:21:48.000Z | import asyncio
from typing import Optional, List
import discord
from discord.ext import commands
from .bot_basics import bot, command_prefix
from .errors import InvalidRequest
from settings import *
def get_guild() -> discord.Guild:
return bot.get_guild(GUILD_ID)
def get_player_role() -> discord.Role:
ret... | 28.684211 | 120 | 0.679969 | 879 | 6,540 | 4.827076 | 0.201365 | 0.049022 | 0.04148 | 0.088145 | 0.441197 | 0.394532 | 0.389583 | 0.341504 | 0.20363 | 0.106528 | 0 | 0.002644 | 0.190214 | 6,540 | 227 | 121 | 28.810573 | 0.798338 | 0.009939 | 0 | 0.125874 | 0 | 0 | 0.054385 | 0.003409 | 0.006993 | 0 | 0 | 0 | 0 | 1 | 0.237762 | false | 0.006993 | 0.048951 | 0.195804 | 0.524476 | 0.013986 | 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 |
191ea772d70fb9d26ddd38a1c5b96e8dbc166982 | 239 | py | Python | cal_tools/struct/track.py | hsoju/cal-tools | b6b24926d1e32ecd09dd469be20538fcdafb0e15 | [
"MIT"
] | null | null | null | cal_tools/struct/track.py | hsoju/cal-tools | b6b24926d1e32ecd09dd469be20538fcdafb0e15 | [
"MIT"
] | null | null | null | cal_tools/struct/track.py | hsoju/cal-tools | b6b24926d1e32ecd09dd469be20538fcdafb0e15 | [
"MIT"
] | null | null | null | from typing import Collection
from cal_tools.struct.keyframe import CalKeyframe
class CalTrack:
def __init__(self, bone_id: int, keyframes: Collection[CalKeyframe]):
self.bone_id = bone_id
self.keyframes = keyframes
| 23.9 | 73 | 0.74477 | 30 | 239 | 5.666667 | 0.6 | 0.105882 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188285 | 239 | 9 | 74 | 26.555556 | 0.876289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
194b0739243a9edf42904c085787825a9737af72 | 1,273 | py | Python | src/main/resources/db/migration/syys.py | jajvirta/liiga | 878895b34ec762a04714313f98e3277c2bd2dde2 | [
"MIT"
] | null | null | null | src/main/resources/db/migration/syys.py | jajvirta/liiga | 878895b34ec762a04714313f98e3277c2bd2dde2 | [
"MIT"
] | null | null | null | src/main/resources/db/migration/syys.py | jajvirta/liiga | 878895b34ec762a04714313f98e3277c2bd2dde2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
current_date = None
for line in file('V14__otteluohjelma.sql'):
if line.find('delete from') > -1:
continue
elif line.find('to_date') > -1:
current_date = line
elif line.find('select joukkue_id from') > -1:
pdate = current_date.split("'")
c = line.split("'"... | 34.405405 | 79 | 0.413197 | 171 | 1,273 | 3.017544 | 0.350877 | 0.104651 | 0.023256 | 0.050388 | 0.352713 | 0.081395 | 0.081395 | 0 | 0 | 0 | 0 | 0.301266 | 0.379419 | 1,273 | 36 | 80 | 35.361111 | 0.351899 | 0.012569 | 0 | 0.0625 | 0 | 0 | 0.306773 | 0.01753 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19617ea8f55a811e841de4d38e26bff7bc3b9114 | 353 | py | Python | tests/base_utilities/test_change_directory.py | douglassimonsen/redshift_upload | e549c770538f022c0b90a983ca056f3e9c16c643 | [
"MIT"
] | null | null | null | tests/base_utilities/test_change_directory.py | douglassimonsen/redshift_upload | e549c770538f022c0b90a983ca056f3e9c16c643 | [
"MIT"
] | 1 | 2022-03-12T03:50:55.000Z | 2022-03-12T03:50:55.000Z | tests/base_utilities/test_change_directory.py | douglassimonsen/redshift_upload | e549c770538f022c0b90a983ca056f3e9c16c643 | [
"MIT"
] | null | null | null | import os
from redshift_upload import base_utilities # noqa
def test_change_directory():
with base_utilities.change_directory():
assert (
os.getcwd()
.replace("\\", "/")
.endswith("redshift_upload/tests/base_utilities")
)
if __name__ == "__main__... | 22.0625 | 62 | 0.597734 | 34 | 353 | 5.676471 | 0.617647 | 0.202073 | 0.196891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294618 | 353 | 15 | 63 | 23.533333 | 0.7751 | 0.011331 | 0 | 0 | 0 | 0 | 0.141566 | 0.108434 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | true | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
196abe6fbb20af971cce7f381f835d1d4c01b9c8 | 67 | py | Python | start/First steps in the library/random/rand2.py | codermoji-contrib/python | 764bffaf0e92270be196aa5728f255aaaf5b8150 | [
"MIT"
] | null | null | null | start/First steps in the library/random/rand2.py | codermoji-contrib/python | 764bffaf0e92270be196aa5728f255aaaf5b8150 | [
"MIT"
] | null | null | null | start/First steps in the library/random/rand2.py | codermoji-contrib/python | 764bffaf0e92270be196aa5728f255aaaf5b8150 | [
"MIT"
] | null | null | null | import random
for i in range(15):
print(random.randint(0, 10))
| 16.75 | 32 | 0.686567 | 12 | 67 | 3.833333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.179104 | 67 | 3 | 33 | 22.333333 | 0.745455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.