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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbe8529955050607cdbf1c4fa2197e1d61475e9e | 920 | py | Python | Robocze/zle/test_binaryTree.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | 1 | 2017-11-15T13:03:40.000Z | 2017-11-15T13:03:40.000Z | Robocze/zle/test_binaryTree.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | null | null | null | Robocze/zle/test_binaryTree.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import unittest
from binaryTree import*
class TestPoint(unittest.TestCase):
def setUp(self):
self.b1 = BinaryTree()
self.b1.insert(8)
self.b1.insert(4)
self.b1.insert(12)
self.b1.insert(2)
self.b1.insert(6)
self.b1.insert(10)... | 22.439024 | 52 | 0.580435 | 118 | 920 | 4.415254 | 0.338983 | 0.184261 | 0.207294 | 0.176583 | 0.295585 | 0.103647 | 0 | 0 | 0 | 0 | 0 | 0.056317 | 0.28587 | 920 | 40 | 53 | 23 | 0.736682 | 0.045652 | 0 | 0.074074 | 0 | 0 | 0.009569 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.074074 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1dc17f6c93d77121ed293d5c5733172c8b63a46b | 118 | py | Python | main.py | rish-16/nam-pytorch | 7c52537e6f31ee9532258c76c9cded501dcc7f5d | [
"MIT"
] | 11 | 2021-05-30T17:28:47.000Z | 2022-03-14T23:42:46.000Z | main.py | rish-16/nam-pytorch | 7c52537e6f31ee9532258c76c9cded501dcc7f5d | [
"MIT"
] | null | null | null | main.py | rish-16/nam-pytorch | 7c52537e6f31ee9532258c76c9cded501dcc7f5d | [
"MIT"
] | 2 | 2021-06-10T13:38:55.000Z | 2021-06-22T09:40:42.000Z | import torch
from nam_pytorch import NAM
nam = NAM(784, "tanh")
x = torch.rand(32, 784)
y = nam(x)
print (y.shape) | 13.111111 | 27 | 0.669492 | 22 | 118 | 3.545455 | 0.590909 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.186441 | 118 | 9 | 28 | 13.111111 | 0.729167 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 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 |
1dfa96494f690d53cf9bda610985a9370f520423 | 109 | py | Python | memento/timegate/__init__.py | pastpages/django-memento | c1849f1fb34bf629cad8f3a4dfa40bf1105ca72a | [
"MIT"
] | 4 | 2015-08-05T02:58:33.000Z | 2021-07-17T18:39:49.000Z | memento/timegate/__init__.py | pastpages/django-memento | c1849f1fb34bf629cad8f3a4dfa40bf1105ca72a | [
"MIT"
] | 10 | 2015-05-10T02:41:19.000Z | 2016-10-17T17:08:31.000Z | memento/timegate/__init__.py | pastpages/django-memento-framework | c1849f1fb34bf629cad8f3a4dfa40bf1105ca72a | [
"MIT"
] | null | null | null | from views import TimeGateView, MementoDetailView
__all__ = (
"TimeGateView",
"MementoDetailView"
)
| 15.571429 | 49 | 0.733945 | 8 | 109 | 9.5 | 0.75 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183486 | 109 | 6 | 50 | 18.166667 | 0.853933 | 0 | 0 | 0 | 0 | 0 | 0.266055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
3802ba03c5491976e515c7a7c16d963497d3d653 | 658 | py | Python | tests/image/make_p_median3x3_data.py | duca/pal | 44376ef5db13629268b319380104fac995f07009 | [
"Apache-2.0"
] | 349 | 2015-02-01T12:52:18.000Z | 2022-03-26T20:53:38.000Z | tests/image/make_p_median3x3_data.py | duca/pal | 44376ef5db13629268b319380104fac995f07009 | [
"Apache-2.0"
] | 163 | 2015-02-11T19:54:30.000Z | 2017-01-30T09:19:50.000Z | tests/image/make_p_median3x3_data.py | duca/pal | 44376ef5db13629268b319380104fac995f07009 | [
"Apache-2.0"
] | 158 | 2015-02-22T19:13:30.000Z | 2020-11-27T12:38:04.000Z | #!/usr/bin/env python
import numpy
data = [
[-0.107358,-0.049577,+0.126623,-0.106948,-0.755809],
[+0.051781,-0.265425,+0.548136,+0.051735,-0.026964],
[+0.941475,-0.975603,+0.411370,+0.755263,-0.055232],
[-0.770979,-0.360797,-0.476552,-0.656793,-0.346903],
[+0.738044,-0.380252,-0.769260,+0.635805,-0.476552],
]
def med... | 26.32 | 89 | 0.585106 | 119 | 658 | 3.235294 | 0.436975 | 0.025974 | 0.023377 | 0.031169 | 0.166234 | 0.083117 | 0.057143 | 0 | 0 | 0 | 0 | 0.354244 | 0.176292 | 658 | 24 | 90 | 27.416667 | 0.356089 | 0.030395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.05 | 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 |
38181ea1c55e9507a9b6328e1b3795cb320aa8ed | 219 | py | Python | bfg9000/tools/cc/flags.py | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 72 | 2015-06-23T02:35:13.000Z | 2021-12-08T01:47:40.000Z | bfg9000/tools/cc/flags.py | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 139 | 2015-03-01T18:48:17.000Z | 2021-06-18T15:45:14.000Z | bfg9000/tools/cc/flags.py | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 19 | 2015-12-23T21:24:33.000Z | 2022-01-06T04:04:41.000Z | from ... import options as opts
optimize_flags = {
opts.OptimizeValue.disable : '-O0',
opts.OptimizeValue.size : '-Osize',
opts.OptimizeValue.speed : '-O3',
opts.OptimizeValue.linktime: '-flto',
}
| 24.333333 | 42 | 0.648402 | 23 | 219 | 6.130435 | 0.695652 | 0.48227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.196347 | 219 | 8 | 43 | 27.375 | 0.789773 | 0 | 0 | 0 | 0 | 0 | 0.077626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
381871675915c1cf6a5d3cfbba80f563bcddf640 | 4,376 | py | Python | Simulated annealing/solver/neighbourGenerators/swapSpecialistTwoRandomMeetings.py | XavierCL/elementary-school-solver | 2aef6f276d883bffbb9f456ace5778895078c66e | [
"MIT"
] | 3 | 2020-04-08T02:32:31.000Z | 2020-04-13T19:46:56.000Z | Simulated annealing/solver/neighbourGenerators/swapSpecialistTwoRandomMeetings.py | XavierCL/elementary-school-solver | 2aef6f276d883bffbb9f456ace5778895078c66e | [
"MIT"
] | null | null | null | Simulated annealing/solver/neighbourGenerators/swapSpecialistTwoRandomMeetings.py | XavierCL/elementary-school-solver | 2aef6f276d883bffbb9f456ace5778895078c66e | [
"MIT"
] | null | null | null | import solver.solutionInstance as solutionInstance
import numpy as np
import random
def swapSpecialistTwoPeriods(self: solutionInstance.SolutionInstance):
groupWithSwappedSpecialist = random.randrange(0, self.meetByPeriodByDayByLocalBySubjectByGroup.shape[0])
groupSpecialists = np.where(np.sum(
self.m... | 55.392405 | 116 | 0.663848 | 221 | 4,376 | 13.144796 | 0.226244 | 0.181756 | 0.190017 | 0.175559 | 0.413081 | 0.351807 | 0.185198 | 0.185198 | 0.185198 | 0.185198 | 0 | 0.009844 | 0.280393 | 4,376 | 79 | 117 | 55.392405 | 0.912671 | 0.007998 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.05 | 0 | 0.133333 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
38356f64de940ddd94838ec325370d0fde4d29a7 | 167 | py | Python | docs/extension-guide.py | kant/frictionless-py | 09cc98e1966d6f97f4eecb47757f45f8a946c5e7 | [
"MIT"
] | null | null | null | docs/extension-guide.py | kant/frictionless-py | 09cc98e1966d6f97f4eecb47757f45f8a946c5e7 | [
"MIT"
] | null | null | null | docs/extension-guide.py | kant/frictionless-py | 09cc98e1966d6f97f4eecb47757f45f8a946c5e7 | [
"MIT"
] | null | null | null | from scripts import docs
docs.from_notebook(
source="https://colab.research.google.com/drive/1yj_1Nk8RwMTV2QZ-0RR_cbKN6aQQ5jAb",
target="extension-guide",
)
| 20.875 | 87 | 0.766467 | 21 | 167 | 5.952381 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04698 | 0.107784 | 167 | 7 | 88 | 23.857143 | 0.791946 | 0 | 0 | 0 | 0 | 0 | 0.526946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
38434264b49a3b943295ee37f8f9ad30b5a5cf31 | 162 | py | Python | tests/benchmarks/dict-methods/remove.py | abeaumont/Dictu | e7fe088ca12538582c836d4ddaf09120b2cd2810 | [
"MIT"
] | 116 | 2020-07-30T22:09:20.000Z | 2022-03-09T11:08:10.000Z | tests/benchmarks/dict-methods/remove.py | abeaumont/Dictu | e7fe088ca12538582c836d4ddaf09120b2cd2810 | [
"MIT"
] | 130 | 2020-08-02T19:30:51.000Z | 2022-03-27T01:13:50.000Z | tests/benchmarks/dict-methods/remove.py | abeaumont/Dictu | e7fe088ca12538582c836d4ddaf09120b2cd2810 | [
"MIT"
] | 50 | 2020-08-01T12:27:01.000Z | 2022-02-24T03:46:52.000Z | import time
x = {i: "Dictu is great!" for i in range(10000)}
start = time.perf_counter()
for i in range(10000):
x.pop(i)
print(time.perf_counter() - start) | 18 | 48 | 0.666667 | 29 | 162 | 3.655172 | 0.551724 | 0.075472 | 0.113208 | 0.207547 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075188 | 0.179012 | 162 | 9 | 49 | 18 | 0.721805 | 0 | 0 | 0 | 0 | 0 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
384723f0575854cd326070a01165374d9e25f428 | 6,712 | py | Python | scripts/patches/s3.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | scripts/patches/s3.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | scripts/patches/s3.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | patches = [
{
"op": "remove",
"path": "/PropertyTypes/AWS::S3::StorageLens.S3BucketDestination/Properties/Encryption/Type",
},
{
"op": "add",
"path": "/PropertyTypes/AWS::S3::StorageLens.S3BucketDestination/Properties/Encryption/PrimitiveType",
"value": "Json",
},... | 38.797688 | 138 | 0.626937 | 566 | 6,712 | 7.434629 | 0.10424 | 0.078422 | 0.149002 | 0.205323 | 0.684648 | 0.576759 | 0.552994 | 0.433935 | 0.399715 | 0.173241 | 0 | 0.014114 | 0.208284 | 6,712 | 172 | 139 | 39.023256 | 0.777757 | 0.236293 | 0 | 0.219178 | 0 | 0 | 0.627966 | 0.515003 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
384bad728136d89332a9c012ea9ff572672a3db2 | 11,408 | py | Python | pysnmp/CISCO-COMMON-MGMT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-COMMON-MGMT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-COMMON-MGMT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-COMMON-MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-COMMON-MGMT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:36:17 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 132.651163 | 1,717 | 0.771914 | 1,208 | 11,408 | 7.288079 | 0.15149 | 0.00886 | 0.011926 | 0.015902 | 0.347456 | 0.28328 | 0.233076 | 0.201045 | 0.174012 | 0.172762 | 0 | 0.0668 | 0.078804 | 11,408 | 85 | 1,718 | 134.211765 | 0.770958 | 0.029453 | 0 | 0.052632 | 0 | 0 | 0.192895 | 0.093917 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.118421 | 0 | 0.118421 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
384c984a66737ccb28d0f07147f3f25b8847a3a2 | 111 | py | Python | render_order.py | dzendmitry/roguelike | e952f7b6ff11a99817438e1b17b98b30dd5bc61f | [
"BSD-2-Clause"
] | null | null | null | render_order.py | dzendmitry/roguelike | e952f7b6ff11a99817438e1b17b98b30dd5bc61f | [
"BSD-2-Clause"
] | null | null | null | render_order.py | dzendmitry/roguelike | e952f7b6ff11a99817438e1b17b98b30dd5bc61f | [
"BSD-2-Clause"
] | null | null | null | from enum import auto, Enum
class RenderOrder(Enum):
COPRSE = auto()
ITEM = auto()
ACTOR = auto()
| 15.857143 | 27 | 0.621622 | 14 | 111 | 4.928571 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261261 | 111 | 6 | 28 | 18.5 | 0.841463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6982db0bec08642a2d4c785a0cafee20f22423a8 | 223 | py | Python | app/manage.py | brianbirir/flask-boilerplate | c454a824f31a9289a019f4b72f5cf382d9572e38 | [
"MIT"
] | null | null | null | app/manage.py | brianbirir/flask-boilerplate | c454a824f31a9289a019f4b72f5cf382d9572e38 | [
"MIT"
] | 4 | 2019-04-24T09:48:34.000Z | 2019-05-24T09:31:44.000Z | app/manage.py | brianbirir/flask-boilerplate | c454a824f31a9289a019f4b72f5cf382d9572e38 | [
"MIT"
] | 1 | 2019-08-28T10:48:46.000Z | 2019-08-28T10:48:46.000Z | from flask_script import Manager
from flask_migrate import MigrateCommand
from src import create_app
manager = Manager(create_app())
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
| 20.272727 | 41 | 0.784753 | 29 | 223 | 5.586207 | 0.586207 | 0.111111 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130045 | 223 | 10 | 42 | 22.3 | 0.835052 | 0 | 0 | 0 | 0 | 0 | 0.044843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
699e25ec9631ae4c702eccf8b5f815ff2c2f9486 | 1,884 | py | Python | src/eduid_scimapi/utils.py | fredrikt/eduid-scimapi | c1dfee8fa83e77228a2ffaf8547f4e03074e8d66 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/eduid_scimapi/utils.py | fredrikt/eduid-scimapi | c1dfee8fa83e77228a2ffaf8547f4e03074e8d66 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-11-12T08:51:52.000Z | 2020-11-12T08:51:52.000Z | src/eduid_scimapi/utils.py | fredrikt/eduid-scimapi | c1dfee8fa83e77228a2ffaf8547f4e03074e8d66 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import base64
from typing import AnyStr
from uuid import uuid4
from bson import ObjectId
def urlappend(base: str, path: str) -> str:
"""
:param base: Base url
:param path: Path to join to base
:return: Joined url
Used instead of urlparse.urljoin to append path to base in an obvious way.
>>>... | 26.914286 | 78 | 0.620488 | 277 | 1,884 | 4.155235 | 0.32852 | 0.076455 | 0.104257 | 0.13901 | 0.264987 | 0.264987 | 0.264987 | 0.264987 | 0.264987 | 0.264987 | 0 | 0.016086 | 0.208068 | 1,884 | 69 | 79 | 27.304348 | 0.755362 | 0.360403 | 0 | 0.060606 | 0 | 0 | 0.067736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.121212 | 0.121212 | 0.606061 | 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 |
69b6d5fc80bac4029e47c258197828d41b409560 | 1,619 | py | Python | finat/discontinuous.py | Justincrum/FInAT | c47206c14149fd5124eb34674e73ab93e42ea960 | [
"MIT"
] | null | null | null | finat/discontinuous.py | Justincrum/FInAT | c47206c14149fd5124eb34674e73ab93e42ea960 | [
"MIT"
] | null | null | null | finat/discontinuous.py | Justincrum/FInAT | c47206c14149fd5124eb34674e73ab93e42ea960 | [
"MIT"
] | null | null | null | from gem.utils import cached_property
from finat.finiteelementbase import FiniteElementBase
class DiscontinuousElement(FiniteElementBase):
"""Element wrapper that makes a FInAT element discontinuous."""
def __init__(self, element):
super(DiscontinuousElement, self).__init__()
self.element = ... | 28.403509 | 102 | 0.689314 | 186 | 1,619 | 5.806452 | 0.290323 | 0.112037 | 0.141667 | 0.116667 | 0.048148 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000794 | 0.221742 | 1,619 | 56 | 103 | 28.910714 | 0.856349 | 0.049413 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.051282 | 0.25641 | 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 |
69ba56cb1ab1d7a991b7cc6e0712ccf961f4d432 | 657 | py | Python | storages/s3_book_image.py | R-Mielamud/Nicolaus | 05a28a19ca0127cf39b1238dc313cecd6e528c40 | [
"MIT"
] | null | null | null | storages/s3_book_image.py | R-Mielamud/Nicolaus | 05a28a19ca0127cf39b1238dc313cecd6e528c40 | [
"MIT"
] | null | null | null | storages/s3_book_image.py | R-Mielamud/Nicolaus | 05a28a19ca0127cf39b1238dc313cecd6e528c40 | [
"MIT"
] | 1 | 2021-03-09T16:06:23.000Z | 2021-03-09T16:06:23.000Z | import os
from django.core.files.storage import Storage
from django.utils.deconstruct import deconstructible
from helpers.s3 import S3BookImageUploader
@deconstructible
class S3BookImageStorage(Storage):
def __init__(self, *args, **kwargs):
self.uploader = S3BookImageUploader()
super().__init__(*ar... | 31.285714 | 61 | 0.721461 | 81 | 657 | 5.62963 | 0.444444 | 0.078947 | 0.078947 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.178082 | 657 | 20 | 62 | 32.85 | 0.837037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
69c4bcc265cdb2e9cba06d108b5ece934974b0f8 | 84 | py | Python | exec23/models.py | flavio-brusamolin/learning-python | 7cfdd35fe06d72d607131d2620b865d0cfa4781a | [
"MIT"
] | null | null | null | exec23/models.py | flavio-brusamolin/learning-python | 7cfdd35fe06d72d607131d2620b865d0cfa4781a | [
"MIT"
] | null | null | null | exec23/models.py | flavio-brusamolin/learning-python | 7cfdd35fe06d72d607131d2620b865d0cfa4781a | [
"MIT"
] | null | null | null | class Ball(object):
color = str()
circumference = float()
brand = str()
| 16.8 | 27 | 0.583333 | 9 | 84 | 5.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27381 | 84 | 4 | 28 | 21 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
69c98c4ce4b0062bf1a779c07d84a31180e5495d | 57 | py | Python | flask_gcp_wand/secret/__init__.py | skxeve/flask_gcp_wand | cf9b6ed1806dcebb4d1e7618607697c2d690a843 | [
"MIT"
] | null | null | null | flask_gcp_wand/secret/__init__.py | skxeve/flask_gcp_wand | cf9b6ed1806dcebb4d1e7618607697c2d690a843 | [
"MIT"
] | null | null | null | flask_gcp_wand/secret/__init__.py | skxeve/flask_gcp_wand | cf9b6ed1806dcebb4d1e7618607697c2d690a843 | [
"MIT"
] | null | null | null | from .secret_manager import Secret
__all__ = ["Secret"]
| 14.25 | 34 | 0.754386 | 7 | 57 | 5.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 57 | 3 | 35 | 19 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
69d658df41800ae3b6cc3a72ac82fb707cc43445 | 143 | py | Python | 2018/day-01/part1.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | 1 | 2019-12-27T22:36:30.000Z | 2019-12-27T22:36:30.000Z | 2018/day-01/part1.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | null | null | null | 2018/day-01/part1.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | null | null | null | def solve(input):
print(sum(list(map(int, input))))
with open('input.txt', 'r') as f:
input = f.read().splitlines()
solve(input)
| 17.875 | 37 | 0.601399 | 22 | 143 | 3.909091 | 0.727273 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188811 | 143 | 7 | 38 | 20.428571 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69da9c1e0a05adcec3930447c7223c70d9c5ca47 | 10,925 | py | Python | project_re/model/MedClinical.py | pnarsina/w266_final | 113cca1a3db752284e2c41f29b9e5757839b6843 | [
"Apache-2.0"
] | null | null | null | project_re/model/MedClinical.py | pnarsina/w266_final | 113cca1a3db752284e2c41f29b9e5757839b6843 | [
"Apache-2.0"
] | null | null | null | project_re/model/MedClinical.py | pnarsina/w266_final | 113cca1a3db752284e2c41f29b9e5757839b6843 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
import math
from transformers import BertModel
import torch
# from torchcrf import CRF
import numpy as np
from torch.autograd import Variable
import torch.nn.functional as F
from torch.nn import LayerNorm
from .lsoftmax import LSoftmaxLinear as Lsoftmax
class Biobert_fc(nn.Module):
def c... | 45.520833 | 159 | 0.626911 | 1,452 | 10,925 | 4.495868 | 0.11708 | 0.118566 | 0.171262 | 0.055147 | 0.741728 | 0.724418 | 0.714614 | 0.695159 | 0.66973 | 0.658701 | 0 | 0.022973 | 0.25492 | 10,925 | 240 | 160 | 45.520833 | 0.778993 | 0.308924 | 0 | 0.477876 | 0 | 0 | 0.022231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053097 | false | 0 | 0.079646 | 0 | 0.185841 | 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 |
69e1ec5c6f891e9549ecf58fc96af98b2741314e | 675 | py | Python | chibi/file/temp.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | chibi/file/temp.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | chibi/file/temp.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | import tempfile
from .path import Chibi_path
class Chibi_temp_path( Chibi_path ):
def __new__( cls, *args, **kw ):
args_2 = []
args_2.append( tempfile.mkdtemp() )
return str.__new__( cls, *args_2, **kw )
def __del__( self ):
self.delete()
def __add__( self, other ):
... | 27 | 74 | 0.611852 | 86 | 675 | 4.453488 | 0.383721 | 0.117493 | 0.117493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.268148 | 675 | 24 | 75 | 28.125 | 0.767206 | 0 | 0 | 0 | 0 | 0 | 0.017778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0.117647 | 0.705882 | 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 |
69f07cb339230257661fd9c57ff525e4fb7a0036 | 150 | py | Python | run.py | vitorhi/Detector-fake-news | 7beba2b2a4c136573828093d39f186461fc4601d | [
"MIT"
] | null | null | null | run.py | vitorhi/Detector-fake-news | 7beba2b2a4c136573828093d39f186461fc4601d | [
"MIT"
] | null | null | null | run.py | vitorhi/Detector-fake-news | 7beba2b2a4c136573828093d39f186461fc4601d | [
"MIT"
] | null | null | null | from app import app
import os
port = int(os.environ.get("PORT", 5000))
if __name__ == '__main__':
app.run(debug="True", host="0.0.0.0", port=port) | 18.75 | 49 | 0.666667 | 27 | 150 | 3.407407 | 0.62963 | 0.065217 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.133333 | 150 | 8 | 49 | 18.75 | 0.646154 | 0 | 0 | 0 | 0 | 0 | 0.152318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
69fedb153452c4357fef16bd3cc88c8c54c2465a | 1,535 | py | Python | yosai_dpcache/cache/proxybackend.py | YosaiProject/yosai_dpcache | 85d2c2922165a12ea06315bcbb6a4d6f02729793 | [
"Apache-2.0"
] | 6 | 2015-11-23T15:25:35.000Z | 2017-02-08T16:40:22.000Z | yosai_dpcache/cache/proxybackend.py | YosaiProject/yosai_dpcache | 85d2c2922165a12ea06315bcbb6a4d6f02729793 | [
"Apache-2.0"
] | null | null | null | yosai_dpcache/cache/proxybackend.py | YosaiProject/yosai_dpcache | 85d2c2922165a12ea06315bcbb6a4d6f02729793 | [
"Apache-2.0"
] | 1 | 2019-07-04T09:38:18.000Z | 2019-07-04T09:38:18.000Z | from yosai_dpcache.cache import ProxyBackend
class SerializationProxy(ProxyBackend):
def __init__(self, serialize, deserialize):
"""
serialization and de-serialization functionality is injected
"""
self.serialize = serialize
self.deserialize = deserialize
def get(self... | 30.7 | 74 | 0.64886 | 175 | 1,535 | 5.605714 | 0.291429 | 0.100917 | 0.069317 | 0.04893 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256678 | 1,535 | 49 | 75 | 31.326531 | 0.859772 | 0.120521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0 | 0.034483 | 0.103448 | 0.62069 | 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 |
0e119712774cd6e5d5cea5776ef1c29f8f7ed2c4 | 395 | py | Python | v1/utils/functools.py | DucPhamTV/Bank | 4905ec7d63ef4daafe2119bf6b32928d4db2d4f2 | [
"MIT"
] | 94 | 2020-07-12T23:08:47.000Z | 2022-03-05T14:00:01.000Z | v1/utils/functools.py | DucPhamTV/Bank | 4905ec7d63ef4daafe2119bf6b32928d4db2d4f2 | [
"MIT"
] | 84 | 2020-07-13T23:30:50.000Z | 2022-03-15T15:47:46.000Z | v1/utils/functools.py | DucPhamTV/Bank | 4905ec7d63ef4daafe2119bf6b32928d4db2d4f2 | [
"MIT"
] | 63 | 2020-07-13T02:46:51.000Z | 2021-11-26T09:29:29.000Z | import functools
def rgetattr(obj, attr, *args):
"""
Applies a dotted attribute string to given object and returns the value
obj - Python object (ex: 'BankTransaction | ID: 1')
attr - dotted attribute string (ex: 'block.sender')
"""
def _getattr(_obj, _attr):
return getattr(_obj, _at... | 24.6875 | 75 | 0.650633 | 49 | 395 | 5.122449 | 0.612245 | 0.111554 | 0.167331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003268 | 0.225316 | 395 | 15 | 76 | 26.333333 | 0.816993 | 0.44557 | 0 | 0 | 0 | 0 | 0.005128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
38741e2510f6380f9de1426aad5dd78141429732 | 635 | py | Python | classifier_procedure.py | kaan0821/Python-Handwriting-Recognition | f2af334390cbd546a4ed24bb098271f0f6198750 | [
"Apache-2.0"
] | null | null | null | classifier_procedure.py | kaan0821/Python-Handwriting-Recognition | f2af334390cbd546a4ed24bb098271f0f6198750 | [
"Apache-2.0"
] | null | null | null | classifier_procedure.py | kaan0821/Python-Handwriting-Recognition | f2af334390cbd546a4ed24bb098271f0f6198750 | [
"Apache-2.0"
] | null | null | null | # Arda Mavi
import joblib
from sklearn import tree
def createDecisionTree():
# Createing classifier:
return tree.DecisionTreeClassifier()
def getClassifier():
# Getting trained classifier:
try:
clf = joblib.load('Data/classifier/classifier.pkl')
except:
return None
return clf
... | 20.483871 | 59 | 0.677165 | 77 | 635 | 5.584416 | 0.480519 | 0.083721 | 0.111628 | 0.125581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215748 | 635 | 30 | 60 | 21.166667 | 0.863454 | 0.173228 | 0 | 0 | 0 | 0 | 0.11583 | 0.11583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
38996b4ed346605932f5fe15f5ed443a0146eb1d | 459 | py | Python | app/admin.py | bane138/nonhumanuser | 23db4f1544e5fc000618d56aa88d43f555e48034 | [
"MIT"
] | null | null | null | app/admin.py | bane138/nonhumanuser | 23db4f1544e5fc000618d56aa88d43f555e48034 | [
"MIT"
] | 8 | 2020-02-12T00:37:14.000Z | 2021-09-22T17:41:18.000Z | app/admin.py | bane138/nonhumanuser | 23db4f1544e5fc000618d56aa88d43f555e48034 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from app.models import Profile
# Register your models here.
class ProfileInline(admin.StackedInline):
model = Profile
can_delete = False
verbose_name_plural = 'profile'
... | 22.95 | 64 | 0.793028 | 59 | 459 | 6.118644 | 0.525424 | 0.083102 | 0.141274 | 0.116343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12854 | 459 | 19 | 65 | 24.157895 | 0.9025 | 0.056645 | 0 | 0 | 0 | 0 | 0.016241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.307692 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
389e4513770ef8d933dfee7d1059da5abdb01516 | 152 | py | Python | py/new/1.py | jeffreybreen/h2o | 1d1bc87c13ca81e67f333fa6146959dc70af4d6c | [
"Apache-2.0"
] | 1 | 2017-12-14T04:57:51.000Z | 2017-12-14T04:57:51.000Z | py/new/1.py | hansight/h2o | d7eee8b69dd3538b83412989eee361d2a2883857 | [
"Apache-2.0"
] | null | null | null | py/new/1.py | hansight/h2o | d7eee8b69dd3538b83412989eee361d2a2883857 | [
"Apache-2.0"
] | 1 | 2018-12-18T06:18:55.000Z | 2018-12-18T06:18:55.000Z |
import h2o_cloud, h2o_func
h2o = h2o_cloud.build_cloud(3)
h2o_func.put_file(path="/home/0xdiag/datasets/standard/covtype.data", key='covtype.hex')
| 16.888889 | 88 | 0.769737 | 25 | 152 | 4.44 | 0.68 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05036 | 0.085526 | 152 | 8 | 89 | 19 | 0.748201 | 0 | 0 | 0 | 0 | 0 | 0.36 | 0.286667 | 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 |
38ac2178cd32d80dfacbc2e02773669fb0444a59 | 203 | py | Python | statistical_modeling/factories/acf.py | fedorpashin/statistical-modeling | 2630e6811afca29cf8a616bab130ae7f9547a043 | [
"MIT"
] | 2 | 2021-05-21T15:29:05.000Z | 2021-08-11T14:08:31.000Z | statistical_modeling/factories/acf.py | fedorpashin/statistical-modeling | 2630e6811afca29cf8a616bab130ae7f9547a043 | [
"MIT"
] | 59 | 2021-08-11T14:08:36.000Z | 2021-09-30T11:15:33.000Z | statistical_modeling/factories/acf.py | fedorpashin/statistical-modeling | 2630e6811afca29cf8a616bab130ae7f9547a043 | [
"MIT"
] | null | null | null | from ..sample import AnySample, SampleACF
from final_class import final
__all__ = [
'ACF',
]
@final
class ACF:
def __new__(cls, sample: AnySample, f: int):
return SampleACF(sample, f)
| 15.615385 | 48 | 0.674877 | 26 | 203 | 4.923077 | 0.576923 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221675 | 203 | 12 | 49 | 16.916667 | 0.810127 | 0 | 0 | 0 | 0 | 0 | 0.014778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
38b6be35e74576f1b9250729d5556be7100b6fc2 | 226 | py | Python | PlayerState.py | LHGames-2017/superintelligence | bd9ea3d444e571a0f9607bf0f6799807f7e644ca | [
"MIT"
] | null | null | null | PlayerState.py | LHGames-2017/superintelligence | bd9ea3d444e571a0f9607bf0f6799807f7e644ca | [
"MIT"
] | null | null | null | PlayerState.py | LHGames-2017/superintelligence | bd9ea3d444e571a0f9607bf0f6799807f7e644ca | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from ServerCommands import *
class PlayerState:
""" Abstract class for player states """
__metaclass__ = ABCMeta
def doAction(self):
raise NotImplementedError()
| 17.384615 | 44 | 0.712389 | 22 | 226 | 7.136364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221239 | 226 | 12 | 45 | 18.833333 | 0.892045 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
38ddcb0565875ac1809dd2913466ee9417f4fd66 | 210 | py | Python | jumpscale_ms1/update.py | Jumpscale/play | c3ac8ef107748146e8fb615003a0081079e47c53 | [
"Apache-2.0"
] | 1 | 2015-10-26T10:38:30.000Z | 2015-10-26T10:38:30.000Z | jumpscale_ms1/update.py | Jumpscale/play | c3ac8ef107748146e8fb615003a0081079e47c53 | [
"Apache-2.0"
] | null | null | null | jumpscale_ms1/update.py | Jumpscale/play | c3ac8ef107748146e8fb615003a0081079e47c53 | [
"Apache-2.0"
] | null | null | null | #fabric install script (not using jumpscale)
from fabric.api import *
@task
def js():
"""
update jumpscale
"""
run("jscode update -a jumpscale -r jp_jumpscale,jp_serverapps,jumpscale_core")
| 16.153846 | 82 | 0.685714 | 27 | 210 | 5.222222 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204762 | 210 | 12 | 83 | 17.5 | 0.844311 | 0.285714 | 0 | 0 | 0 | 0 | 0.537879 | 0.310606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7f94cec34adf2fc126e4435144a375af59f4bd8 | 85 | py | Python | src/quo/event.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | 3 | 2022-03-13T13:22:35.000Z | 2022-03-18T08:22:51.000Z | src/quo/event.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | 1 | 2022-03-21T16:29:54.000Z | 2022-03-21T16:29:54.000Z | src/quo/event.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | null | null | null | from quo.keys.key_binding.key_processor import KeyPressEvent
Event = KeyPressEvent
| 17 | 60 | 0.847059 | 11 | 85 | 6.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105882 | 85 | 4 | 61 | 21.25 | 0.921053 | 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 |
2a02d23e83c693fcf716cd9747e30f379a500bb6 | 117 | py | Python | students.py | qqadadas/python0720 | 895c83f51a6cec5087cc9e661d5aefcc3e4650af | [
"Apache-2.0"
] | null | null | null | students.py | qqadadas/python0720 | 895c83f51a6cec5087cc9e661d5aefcc3e4650af | [
"Apache-2.0"
] | null | null | null | students.py | qqadadas/python0720 | 895c83f51a6cec5087cc9e661d5aefcc3e4650af | [
"Apache-2.0"
] | null | null | null | """
@author: lyh
@time: 2020-08-15
@file:students
@version:1.0
"""
def func():
print("使用pycharm提交代码")
func()
| 8.357143 | 26 | 0.606838 | 16 | 117 | 4.4375 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 0.17094 | 117 | 13 | 27 | 9 | 0.628866 | 0.495727 | 0 | 0 | 0 | 0 | 0.270833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a1495693f65011f6c4a217e4532f48ec585e5a9 | 147 | py | Python | presenter/secret_config_sample.py | dkkline/CanSat14-15 | 153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1 | [
"MIT"
] | null | null | null | presenter/secret_config_sample.py | dkkline/CanSat14-15 | 153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1 | [
"MIT"
] | null | null | null | presenter/secret_config_sample.py | dkkline/CanSat14-15 | 153d7d5b20ecdfbb3c3e0a2d416ea79bdd4899d1 | [
"MIT"
] | null | null | null | """
Contains configurations options so secret, that they may not even be
commited to git!
"""
ADMIN_PASSWORD = "secret"
SECRET_KEY = "secret key"
| 18.375 | 68 | 0.741497 | 21 | 147 | 5.095238 | 0.809524 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 147 | 7 | 69 | 21 | 0.869919 | 0.578231 | 0 | 0 | 0 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 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 |
2a1e898c93b598bf38f43a1abef71f305ceac1cc | 238 | py | Python | tests/settings.py | jespino/django-sr | c3d6f3d498bf389b1a7157cfee32e69313fea5d3 | [
"BSD-3-Clause"
] | 1 | 2018-01-10T01:17:52.000Z | 2018-01-10T01:17:52.000Z | tests/settings.py | jespino/django-sr | c3d6f3d498bf389b1a7157cfee32e69313fea5d3 | [
"BSD-3-Clause"
] | null | null | null | tests/settings.py | jespino/django-sr | c3d6f3d498bf389b1a7157cfee32e69313fea5d3 | [
"BSD-3-Clause"
] | 2 | 2018-03-05T18:25:45.000Z | 2019-01-31T16:48:43.000Z | SECRET_KEY = "123"
INSTALLED_APPS = [
'sr'
]
SR = {
'test1': 'Test1',
'test2': {
'test3': 'Test3',
},
'test4': {
'test4': 'Test4 {0} {1}',
},
'test5': {
'test5': "<b>foo</b>",
}
}
| 12.526316 | 33 | 0.369748 | 22 | 238 | 3.909091 | 0.681818 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100671 | 0.37395 | 238 | 18 | 34 | 13.222222 | 0.47651 | 0 | 0 | 0 | 0 | 0 | 0.306723 | 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 | 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 |
2a2952da8ce0b48e88039515dc1345584195a890 | 93 | py | Python | tests/functional/__init__.py | Belousova/ms-reservations | 1030e05ba16cf95f4a056700e3d1a64f5da77bb5 | [
"MIT"
] | 4 | 2021-06-23T17:23:21.000Z | 2022-02-04T12:28:37.000Z | tests/functional/__init__.py | Belousova/ms-reservations | 1030e05ba16cf95f4a056700e3d1a64f5da77bb5 | [
"MIT"
] | null | null | null | tests/functional/__init__.py | Belousova/ms-reservations | 1030e05ba16cf95f4a056700e3d1a64f5da77bb5 | [
"MIT"
] | 7 | 2020-11-11T08:13:07.000Z | 2021-12-18T15:23:44.000Z | # coding=utf-8
"""
tests.functional.module
~~~~~~~~~~~~~~
Functional tests
"""
| 10.333333 | 27 | 0.494624 | 8 | 93 | 5.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.236559 | 93 | 8 | 28 | 11.625 | 0.633803 | 0.752688 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a3b6b1b5d0ac4331721bb9cd05fdda7121bdcd8 | 1,111 | py | Python | Relium/constant.py | Fairy-Phy/Relium | 70ea037cea176f02e4768bde44dd5ee23af699b3 | [
"MIT"
] | null | null | null | Relium/constant.py | Fairy-Phy/Relium | 70ea037cea176f02e4768bde44dd5ee23af699b3 | [
"MIT"
] | null | null | null | Relium/constant.py | Fairy-Phy/Relium | 70ea037cea176f02e4768bde44dd5ee23af699b3 | [
"MIT"
] | null | null | null | """
変数(定数)置き場です
変数(定数)
----
zero_bpm : float
-> 0BPMのタイミングポイントです、正確には0ではありませんがほぼ0です
inf_bpm : float
-> ∞BPM(10億BPM以上?)のタイミングポイントです
max_offset : int
-> 最大offset値です、空ノーツを生成するときにしか使い所がありません
min_offset : str
-> 最小offset値です、使い所がありません
key_asset : List[List[int]]
-> キーとポジションのリストです。1つ目がキーの値です、0, 11, 13, 15, 17, 19以上は... | 21.784314 | 87 | 0.612061 | 178 | 1,111 | 3.769663 | 0.719101 | 0.04769 | 0.035768 | 0.038748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.409545 | 0.189019 | 1,111 | 50 | 88 | 22.22 | 0.334073 | 0.345635 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a452f3e86783cb799e20c60473479778b939cb4 | 280 | py | Python | ex007.py | jgabriel1607/Python | d6b75519eb8f0d4fef944e1690ba8914d81a5d16 | [
"MIT"
] | null | null | null | ex007.py | jgabriel1607/Python | d6b75519eb8f0d4fef944e1690ba8914d81a5d16 | [
"MIT"
] | null | null | null | ex007.py | jgabriel1607/Python | d6b75519eb8f0d4fef944e1690ba8914d81a5d16 | [
"MIT"
] | null | null | null | print('Descubra a média de 2 notas: \nObs: Utilize ponto para separas as casas decimais.')
a1 = float(input('Digite a nota da primeira avaliação: '))
a2 = float(input('Digite a nota da segunda avaliação: '))
m = (a1 + a2) / 2
print('A média das notas é igual a {:.1f}'.format(m))
| 46.666667 | 90 | 0.689286 | 48 | 280 | 4.020833 | 0.645833 | 0.062176 | 0.165803 | 0.176166 | 0.238342 | 0.238342 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0.167857 | 280 | 5 | 91 | 56 | 0.798283 | 0 | 0 | 0 | 0 | 0 | 0.671429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a5c12675b58461a794a5aab8c6ba41da8029330 | 1,383 | py | Python | src/model/date/date.py | PierreVieira/BrothersCoinsDataCollector | fe9cd8869227c33ba4ac964b134fa54e418de069 | [
"MIT"
] | null | null | null | src/model/date/date.py | PierreVieira/BrothersCoinsDataCollector | fe9cd8869227c33ba4ac964b134fa54e418de069 | [
"MIT"
] | null | null | null | src/model/date/date.py | PierreVieira/BrothersCoinsDataCollector | fe9cd8869227c33ba4ac964b134fa54e418de069 | [
"MIT"
] | null | null | null | from datetime import datetime
class Date:
def __init__(self, date: datetime = None, date_dict: dict = None):
self.__date_time = date if date is not None else datetime(
year=date_dict['year'],
month=date_dict['month'],
day=date_dict['day'],
hour=date_dict['ho... | 22.672131 | 70 | 0.566884 | 167 | 1,383 | 4.323353 | 0.185629 | 0.144044 | 0.182825 | 0.149584 | 0.307479 | 0.124654 | 0 | 0 | 0 | 0 | 0 | 0.002137 | 0.32321 | 1,383 | 60 | 71 | 23.05 | 0.769231 | 0 | 0 | 0.130435 | 0 | 0 | 0.043415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.021739 | 0.152174 | 0.456522 | 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 |
2a69f644db9ba1fdefe448654c011f1bcc7b03a3 | 577 | py | Python | lingvodoc/cache/basic/cache.py | EhrmannGit/lingvodoc | 9c78f3f7272fd45ab0cfd9e670e55f54b97362df | [
"Apache-2.0"
] | 1 | 2017-11-14T11:32:11.000Z | 2017-11-14T11:32:11.000Z | lingvodoc/cache/basic/cache.py | IgorBMSTU/lingvodoc | 54afdbc8b7380a092bb45e37c8719830a05ec722 | [
"Apache-2.0"
] | null | null | null | lingvodoc/cache/basic/cache.py | IgorBMSTU/lingvodoc | 54afdbc8b7380a092bb45e37c8719830a05ec722 | [
"Apache-2.0"
] | null | null | null | __author__ = 'alexander'
from dogpile.cache.api import NO_VALUE
from lingvodoc.cache.api.cache import ICache
class CommonCache(ICache):
def __init__(self, region):
"""
:param region: dogpile region
:return:
"""
self.cache = region
def get(self, key):
cached =... | 20.607143 | 44 | 0.596187 | 72 | 577 | 4.638889 | 0.458333 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30156 | 577 | 27 | 45 | 21.37037 | 0.828784 | 0.119584 | 0 | 0 | 0 | 0 | 0.018908 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2a6eedaef1354c2b0011f6ccf49917c0b0a577c5 | 373 | py | Python | geokey/core/exceptions.py | universityofsussex/geokey | 25e161dbc81841c57c148053dbe99facc81e84b8 | [
"Apache-2.0"
] | null | null | null | geokey/core/exceptions.py | universityofsussex/geokey | 25e161dbc81841c57c148053dbe99facc81e84b8 | [
"Apache-2.0"
] | null | null | null | geokey/core/exceptions.py | universityofsussex/geokey | 25e161dbc81841c57c148053dbe99facc81e84b8 | [
"Apache-2.0"
] | null | null | null | """Core exceptions."""
class Unauthenticated(Exception):
"""Thrown when user is not authenticated."""
pass
class MalformedRequestData(Exception):
"""Thrown when request data is malformed."""
pass
class InputError(Exception):
"""Thrown on input error."""
pass
class FileTypeError(Except... | 14.346154 | 48 | 0.662198 | 39 | 373 | 6.333333 | 0.589744 | 0.242915 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211796 | 373 | 25 | 49 | 14.92 | 0.840136 | 0.386059 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2a7e84bc059538bf41af72d168beb87f63894e61 | 282 | py | Python | fixture/navigation.py | Khripach/python_training | 041ea17d73b14258437cf845d06282604cbd85d1 | [
"Apache-2.0"
] | null | null | null | fixture/navigation.py | Khripach/python_training | 041ea17d73b14258437cf845d06282604cbd85d1 | [
"Apache-2.0"
] | null | null | null | fixture/navigation.py | Khripach/python_training | 041ea17d73b14258437cf845d06282604cbd85d1 | [
"Apache-2.0"
] | null | null | null |
class NavigationHelper:
def __init__(self, app):
self.app = app
def open_home_page(self):
wd = self.app.wd
wd.get(self.app.base_url)
def return_to_home_page(self):
wd = self.app.wd
wd.find_element_by_link_text("home").click()
| 20.142857 | 52 | 0.617021 | 42 | 282 | 3.809524 | 0.5 | 0.21875 | 0.15 | 0.175 | 0.3125 | 0.3125 | 0.3125 | 0.3125 | 0 | 0 | 0 | 0 | 0.269504 | 282 | 13 | 53 | 21.692308 | 0.776699 | 0 | 0 | 0.222222 | 0 | 0 | 0.014235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a811cf64bc8612c156f2f6b2b37274779cef582 | 1,387 | py | Python | pages/ajax_request_view.py | BloodLagbe/blood_lagbe | 597fcabea3523c9932381c591f65c0a91cc5f74c | [
"Apache-2.0"
] | 3 | 2021-04-24T16:30:09.000Z | 2021-06-19T08:02:22.000Z | pages/ajax_request_view.py | BloodLagbe/blood_lagbe | 597fcabea3523c9932381c591f65c0a91cc5f74c | [
"Apache-2.0"
] | 16 | 2021-04-24T07:44:34.000Z | 2021-04-28T17:12:25.000Z | pages/ajax_request_view.py | BloodLagbe/blood_lagbe | 597fcabea3523c9932381c591f65c0a91cc5f74c | [
"Apache-2.0"
] | 4 | 2021-04-24T23:42:51.000Z | 2021-06-20T16:53:00.000Z | from django.shortcuts import render
from accounts.models import User
def ajax_request_filter(request):
template = "pages/donor_filter.html"
division_id = request.GET.get('division')
district_id = request.GET.get('district')
upazila_id = request.GET.get('upazila')
blood_id = request.GET.get('blood'... | 30.152174 | 70 | 0.602019 | 158 | 1,387 | 4.917722 | 0.234177 | 0.297297 | 0.23166 | 0.28314 | 0.329472 | 0.329472 | 0.329472 | 0.329472 | 0.329472 | 0.329472 | 0 | 0.004219 | 0.31651 | 1,387 | 45 | 71 | 30.822222 | 0.815401 | 0 | 0 | 0.285714 | 0 | 0 | 0.05912 | 0.016583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.047619 | 0 | 0.095238 | 0.02381 | 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 |
aa4bc86b9f2edfcfd87df089246ed5d82c255e3a | 297 | py | Python | Chapter05/ex5_6_3.py | MJC-code/thinkpython | c92702b64a174e85294b17d8bed870977007842b | [
"Unlicense"
] | null | null | null | Chapter05/ex5_6_3.py | MJC-code/thinkpython | c92702b64a174e85294b17d8bed870977007842b | [
"Unlicense"
] | null | null | null | Chapter05/ex5_6_3.py | MJC-code/thinkpython | c92702b64a174e85294b17d8bed870977007842b | [
"Unlicense"
] | null | null | null | import turtle
bob = turtle.Turtle()
def cesaro(t, x):
""" Draws a Cesaro fractal with length x"""
if x < 2:
t.fd(x)
return
cesaro(t, x / 3)
t.lt(85)
cesaro(t, x / 3)
t.rt(170)
cesaro(t, x / 3)
t.lt(85)
cesaro(t, x / 3)
cesaro(bob, 200)
| 14.142857 | 47 | 0.491582 | 51 | 297 | 2.862745 | 0.431373 | 0.239726 | 0.273973 | 0.246575 | 0.321918 | 0.315068 | 0.315068 | 0.315068 | 0.315068 | 0.315068 | 0 | 0.07772 | 0.350168 | 297 | 20 | 48 | 14.85 | 0.678756 | 0.121212 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa56026fe3106e2c17b261e622b61277f03c37e6 | 799 | py | Python | tapis_cli/commands/taccapis/v2/apps/__init__.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 8 | 2020-10-18T22:48:23.000Z | 2022-01-10T09:16:14.000Z | tapis_cli/commands/taccapis/v2/apps/__init__.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 238 | 2019-09-04T14:37:54.000Z | 2020-04-15T16:24:24.000Z | tapis_cli/commands/taccapis/v2/apps/__init__.py | bpachev/tapis-cli | c3128fb5b63ef74e06b737bbd95ef28fb24f0d32 | [
"BSD-3-Clause"
] | 5 | 2019-09-20T04:23:49.000Z | 2020-01-16T17:45:14.000Z | """Apps service commands
"""
from tapis_cli.commands.taccapis.v2 import SERVICE_VERSION
from .models import App, API_NAME
from .show import AppsShow
from .list import AppsList
from .search import AppsSearch
from .enable import AppsEnable
from .disable import AppsDisable
from .history import AppsHistory
from .create i... | 28.535714 | 72 | 0.831039 | 107 | 799 | 6.130841 | 0.560748 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005739 | 0.12766 | 799 | 27 | 73 | 29.592593 | 0.935438 | 0.173967 | 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 |
aa859bba5221f255ce931d7ac24e2530ee3b42ce | 871 | py | Python | tests/functional/tests/security/conftest.py | jfckm/ocf | f52ee37caa1ac6b9e98ca721061ee46d33a8b81a | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/functional/tests/security/conftest.py | jfckm/ocf | f52ee37caa1ac6b9e98ca721061ee46d33a8b81a | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/functional/tests/security/conftest.py | jfckm/ocf | f52ee37caa1ac6b9e98ca721061ee46d33a8b81a | [
"BSD-3-Clause-Clear"
] | null | null | null | #
# Copyright(c) 2019 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
import os
import sys
from ctypes import (
c_uint64,
c_uint32,
c_uint16,
c_int
)
from tests.utils import get_random_strings, get_random_ints
import pytest
sys.path.append(os.path.join(os.path.dirname(__file__), os.... | 19.795455 | 72 | 0.776119 | 129 | 871 | 4.968992 | 0.325581 | 0.098284 | 0.101404 | 0.171607 | 0.514821 | 0.461778 | 0.461778 | 0.410296 | 0.410296 | 0.410296 | 0 | 0.030065 | 0.121699 | 871 | 43 | 73 | 20.255814 | 0.807843 | 0.0907 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.192308 | 0.192308 | 0.576923 | 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 |
aa87e1dbe1d3ea5819438e924b8053cb7b29b509 | 112 | py | Python | Corrections/keras_corr_1.py | Pumafi/geostats_deep_learning | 3cc8b55678684e0a6d29e70cf9841e577e0e5ea1 | [
"MIT"
] | null | null | null | Corrections/keras_corr_1.py | Pumafi/geostats_deep_learning | 3cc8b55678684e0a6d29e70cf9841e577e0e5ea1 | [
"MIT"
] | null | null | null | Corrections/keras_corr_1.py | Pumafi/geostats_deep_learning | 3cc8b55678684e0a6d29e70cf9841e577e0e5ea1 | [
"MIT"
] | null | null | null | output_size=128
activation='sigmoid'
fc = keras.layers.Dense(output_size, activation=activation, use_bias=True) | 28 | 74 | 0.821429 | 16 | 112 | 5.5625 | 0.75 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.0625 | 112 | 4 | 74 | 28 | 0.819048 | 0 | 0 | 0 | 0 | 0 | 0.061947 | 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 |
aa8e246d31a47f0c92f231d6de37db7c0d5c6830 | 229 | py | Python | djangae/contrib/gauth/admin.py | oleksa-pavlenko/gae-django-project-template | 2543d815378c185e422c58e5a5a65f82a0ed02e3 | [
"MIT"
] | null | null | null | djangae/contrib/gauth/admin.py | oleksa-pavlenko/gae-django-project-template | 2543d815378c185e422c58e5a5a65f82a0ed02e3 | [
"MIT"
] | null | null | null | djangae/contrib/gauth/admin.py | oleksa-pavlenko/gae-django-project-template | 2543d815378c185e422c58e5a5a65f82a0ed02e3 | [
"MIT"
] | null | null | null | from django.contrib import admin
# DJANGAE
from djangae.contrib.gauth.models import (
GaeUser,
GaeDatastoreUser,
Group
)
admin.site.register(GaeUser)
admin.site.register(GaeDatastoreUser)
admin.site.register(Group)
| 17.615385 | 42 | 0.772926 | 27 | 229 | 6.555556 | 0.481481 | 0.152542 | 0.288136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135371 | 229 | 12 | 43 | 19.083333 | 0.893939 | 0.030568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa96ee1fa9c0f1873a9fd5a99bbb8927f4a3b196 | 145 | py | Python | test/testapp_permissions/urls.py | jboegeholz/flask_urls | 382fcf7763a3aa35c6e395e308546589318679d8 | [
"MIT"
] | 1 | 2021-06-21T15:18:51.000Z | 2021-06-21T15:18:51.000Z | test/testapp_permissions/urls.py | jboegeholz/flask_urls | 382fcf7763a3aa35c6e395e308546589318679d8 | [
"MIT"
] | null | null | null | test/testapp_permissions/urls.py | jboegeholz/flask_urls | 382fcf7763a3aa35c6e395e308546589318679d8 | [
"MIT"
] | 1 | 2021-09-25T15:29:45.000Z | 2021-09-25T15:29:45.000Z | from test.testapp import views
urls = [
("/", views.index, ["GET"]),
("/users", views.get_users, ["GET"]),
("/home", "home.urls")
]
| 18.125 | 41 | 0.531034 | 17 | 145 | 4.470588 | 0.588235 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 145 | 7 | 42 | 20.714286 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0.186207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
aa9f635298e3081c7b08a03e698afc892fa594b5 | 1,183 | py | Python | libs/python-axolotl/axolotl/tests/inmemorysessionstore.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 4 | 2018-12-14T20:42:52.000Z | 2022-02-15T07:52:44.000Z | libs/python-axolotl/axolotl/tests/inmemorysessionstore.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 1 | 2019-09-19T00:46:55.000Z | 2019-09-19T00:46:55.000Z | libs/python-axolotl/axolotl/tests/inmemorysessionstore.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 2 | 2019-01-16T04:02:34.000Z | 2020-02-26T20:46:19.000Z | # -*- coding: utf-8 -*-
from ..state.sessionstore import SessionStore
from ..state.sessionrecord import SessionRecord
class InMemorySessionStore(SessionStore):
def __init__(self):
self.sessions = {}
def loadSession(self, recepientId, deviceId):
if self.containsSession(recepientId, deviceId):... | 31.131579 | 83 | 0.655114 | 113 | 1,183 | 6.823009 | 0.318584 | 0.22179 | 0.119326 | 0.120623 | 0.095979 | 0.095979 | 0.095979 | 0.095979 | 0.095979 | 0.095979 | 0 | 0.004459 | 0.241758 | 1,183 | 37 | 84 | 31.972973 | 0.855072 | 0.017751 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.076923 | 0.038462 | 0.538462 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aab5d20f9d11f6a3bd99bd832fccf785fcd212db | 251 | wsgi | Python | django.wsgi | tianhuyang/fifty-market | 613547a3446a59d9132b245a8cb8228f5eb0b0f9 | [
"MIT"
] | null | null | null | django.wsgi | tianhuyang/fifty-market | 613547a3446a59d9132b245a8cb8228f5eb0b0f9 | [
"MIT"
] | null | null | null | django.wsgi | tianhuyang/fifty-market | 613547a3446a59d9132b245a8cb8228f5eb0b0f9 | [
"MIT"
] | null | null | null | import os
import sys
path = os.path.dirname(__file__)
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'market.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler() | 22.818182 | 56 | 0.772908 | 37 | 251 | 5.081081 | 0.540541 | 0.111702 | 0.191489 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10757 | 251 | 11 | 57 | 22.818182 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.146825 | 0.087302 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
aabe49f18fe8ef45e97222742698a329f7421aec | 147 | py | Python | en/A.py | epeios-q37/basics-exercises | 98801d7ce462ead45bbec9a4b0d2b78631d62dc1 | [
"MIT"
] | 1 | 2019-07-23T15:36:51.000Z | 2019-07-23T15:36:51.000Z | en/A.py | epeios-q37/programming-tutorial | 98801d7ce462ead45bbec9a4b0d2b78631d62dc1 | [
"MIT"
] | null | null | null | en/A.py | epeios-q37/programming-tutorial | 98801d7ce462ead45bbec9a4b0d2b78631d62dc1 | [
"MIT"
] | null | null | null | # coding: utf-8
import sys
sys.path.append(".")
from workshop.en.a import *
display("Hello everyone!")
display("How are you?")
go()
| 12.25 | 28 | 0.619048 | 21 | 147 | 4.333333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.210884 | 147 | 11 | 29 | 13.363636 | 0.775862 | 0.088435 | 0 | 0 | 0 | 0 | 0.231405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aabea7ca32046951a8aef7622d28db06ab252f57 | 136 | py | Python | quiz/forms.py | sa-y-an/Qriosity2.0 | f0a46533881a6a7f8cd548eadbc72570396b1141 | [
"Apache-2.0"
] | null | null | null | quiz/forms.py | sa-y-an/Qriosity2.0 | f0a46533881a6a7f8cd548eadbc72570396b1141 | [
"Apache-2.0"
] | 2 | 2020-06-30T16:28:26.000Z | 2020-07-25T21:35:31.000Z | quiz/forms.py | sa-y-an/Qriosity2.0 | f0a46533881a6a7f8cd548eadbc72570396b1141 | [
"Apache-2.0"
] | 4 | 2021-06-16T09:53:15.000Z | 2021-09-18T07:40:31.000Z | from django import forms
class UserAnswer(forms.Form):
answer = forms.CharField(
label="Your Answer Here", required=True)
| 19.428571 | 48 | 0.705882 | 17 | 136 | 5.647059 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198529 | 136 | 6 | 49 | 22.666667 | 0.880734 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aabf15fca5ca334834d10450ef8301a646a3f085 | 1,189 | py | Python | tf_data/test_cases/test_taptap_importing_data.py | galaxy-captain/Deep-Learning | 06f0f931c750db6267148f27f48ab5c0eb02abaa | [
"Apache-2.0"
] | 6 | 2018-10-26T08:53:43.000Z | 2019-06-19T15:32:45.000Z | tf_data/test_cases/test_taptap_importing_data.py | galaxy-captain/Deep-Learning | 06f0f931c750db6267148f27f48ab5c0eb02abaa | [
"Apache-2.0"
] | 9 | 2019-01-23T10:44:49.000Z | 2019-01-30T14:16:10.000Z | tf_data/test_cases/test_taptap_importing_data.py | galaxy-captain/Deep-Learning | 06f0f931c750db6267148f27f48ab5c0eb02abaa | [
"Apache-2.0"
] | 12 | 2019-01-28T05:13:05.000Z | 2019-02-21T07:42:47.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0.0
@author: tianhonghan
@license: COPYRIGHT @ 2015 CHANGYOU.COM LIMITED
@contact: tianhonghan@cyou-inc.com
@site: http://www.changyou.com
@software: Game Prophet System)
@file: test_taptap_importing_data.py
@time: 2018/12/16 18:43
"""
from unittest import TestC... | 29.725 | 68 | 0.743482 | 168 | 1,189 | 4.934524 | 0.5 | 0.033776 | 0.077201 | 0.033776 | 0.250905 | 0.250905 | 0.195416 | 0.195416 | 0.195416 | 0.195416 | 0 | 0.02 | 0.158957 | 1,189 | 39 | 69 | 30.487179 | 0.809 | 0.26577 | 0 | 0.210526 | 0 | 0 | 0.128621 | 0.084589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.263158 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
aac7838d0914e14a1b7115ea56a70a91ead87996 | 815 | py | Python | app1/tasks.py | Yogi1994/task_queue | efd4fe977d9dfb3ebff2372d2ee1b7732b6769c1 | [
"MIT"
] | null | null | null | app1/tasks.py | Yogi1994/task_queue | efd4fe977d9dfb3ebff2372d2ee1b7732b6769c1 | [
"MIT"
] | null | null | null | app1/tasks.py | Yogi1994/task_queue | efd4fe977d9dfb3ebff2372d2ee1b7732b6769c1 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
from celery import task
from celery import shared_task
@shared_task
def add(x, y):
return x + y
@shared_task
def mul(x, y):
return x * y
@shared_task
def xsum(numbers):
return sum(numbers)
import string
from django.contrib.auth.models import Use... | 24.69697 | 83 | 0.728834 | 115 | 815 | 4.965217 | 0.46087 | 0.087566 | 0.091068 | 0.031524 | 0.08056 | 0.08056 | 0.08056 | 0.08056 | 0 | 0 | 0 | 0.005926 | 0.171779 | 815 | 33 | 84 | 24.69697 | 0.84 | 0 | 0 | 0.16 | 0 | 0 | 0.077206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.08 | 0.24 | 0.12 | 0.56 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
2a9bf78a57dec543bab78a4b92ded01663f9f18b | 153 | py | Python | kitsune/landings/apps.py | theresnotime/kitsune | 0757b267b0d332264167d31ce84e342263e1c635 | [
"BSD-3-Clause"
] | null | null | null | kitsune/landings/apps.py | theresnotime/kitsune | 0757b267b0d332264167d31ce84e342263e1c635 | [
"BSD-3-Clause"
] | null | null | null | kitsune/landings/apps.py | theresnotime/kitsune | 0757b267b0d332264167d31ce84e342263e1c635 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class LandingsConfig(AppConfig):
name = "kitsune.landings"
default_auto_field = "django.db.models.AutoField"
| 21.857143 | 53 | 0.764706 | 18 | 153 | 6.388889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143791 | 153 | 6 | 54 | 25.5 | 0.877863 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 0.169935 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2aba098b78f32e932f2f39291c14515283628c4a | 606 | py | Python | groups/serializers.py | PUANEY/OnlineJudge | 9756e0c7db82ce6882a07594364726be48530bd2 | [
"MIT"
] | null | null | null | groups/serializers.py | PUANEY/OnlineJudge | 9756e0c7db82ce6882a07594364726be48530bd2 | [
"MIT"
] | null | null | null | groups/serializers.py | PUANEY/OnlineJudge | 9756e0c7db82ce6882a07594364726be48530bd2 | [
"MIT"
] | null | null | null | from .models import HomeWork, Groups
from rest_framework import serializers
class GroupsSerializer(serializers.ModelSerializer):
create_time = serializers.DateTimeField(read_only=True, format='%Y-%m-%d')
class Meta:
model = Groups
fields = "__all__"
depth = 1
class HomeWorkSerialize... | 27.545455 | 78 | 0.69802 | 67 | 606 | 6.089552 | 0.462687 | 0.110294 | 0.205882 | 0.235294 | 0.360294 | 0.360294 | 0.360294 | 0.360294 | 0.360294 | 0.360294 | 0 | 0.002045 | 0.193069 | 606 | 21 | 79 | 28.857143 | 0.832311 | 0 | 0 | 0.266667 | 0 | 0 | 0.062706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2ac24010425a808f5103b103569586c83b9c4206 | 1,688 | py | Python | cuenta/models.py | chelocastillo1/test | b783e64dbd3071c3ed074e9ce23da047e9bad97d | [
"CC0-1.0"
] | 1 | 2021-12-12T22:27:52.000Z | 2021-12-12T22:27:52.000Z | cuenta/models.py | chelocastillo1/test | b783e64dbd3071c3ed074e9ce23da047e9bad97d | [
"CC0-1.0"
] | null | null | null | cuenta/models.py | chelocastillo1/test | b783e64dbd3071c3ed074e9ce23da047e9bad97d | [
"CC0-1.0"
] | null | null | null | # Importamos el modelo User que vamos a heredar para crear nuestras cuentas de usuarios.
from django.contrib.auth.models import User, Group
from django.db import models
#from django.conf import settings
#User = settings.AUTH_USER_MODEL
# Estas tres línes siguientes compensan el no poder hacer override sobre clases a... | 38.363636 | 102 | 0.725711 | 219 | 1,688 | 5.506849 | 0.493151 | 0.033168 | 0.027363 | 0.039801 | 0.270315 | 0.161692 | 0.11194 | 0.11194 | 0.077944 | 0 | 0 | 0.001445 | 0.180095 | 1,688 | 43 | 103 | 39.255814 | 0.869942 | 0.685427 | 0 | 0.214286 | 0 | 0 | 0.037475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 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 |
2acdc164feeda1f3bbc6624bd940f1222ab94a95 | 184 | py | Python | documents/phonetic.py | minhdua/my-vocabulary | cf9788b3a4d91089895275c7014a72b34c471277 | [
"Apache-2.0"
] | null | null | null | documents/phonetic.py | minhdua/my-vocabulary | cf9788b3a4d91089895275c7014a72b34c471277 | [
"Apache-2.0"
] | null | null | null | documents/phonetic.py | minhdua/my-vocabulary | cf9788b3a4d91089895275c7014a72b34c471277 | [
"Apache-2.0"
] | null | null | null | from documents.base_models import AuditEntity
class Phonetic(AuditEntity):
def __init__(self, phonetic='', audio=''):
self.phonetic = phonetic
self.audio = audio
| 23 | 46 | 0.690217 | 20 | 184 | 6.1 | 0.6 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206522 | 184 | 7 | 47 | 26.285714 | 0.835616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2ad38365418f93b89e2220ba399fdae32306ad37 | 4,807 | py | Python | server/employee.py | AakritiKinra/Employee-Management-System | ed92b8b7cb63d7c4f7a18ec5eec936de3beb0e3e | [
"MIT"
] | null | null | null | server/employee.py | AakritiKinra/Employee-Management-System | ed92b8b7cb63d7c4f7a18ec5eec936de3beb0e3e | [
"MIT"
] | null | null | null | server/employee.py | AakritiKinra/Employee-Management-System | ed92b8b7cb63d7c4f7a18ec5eec936de3beb0e3e | [
"MIT"
] | 2 | 2021-05-03T14:52:59.000Z | 2021-06-04T16:45:03.000Z | import sqlite3 as db
conn=db.connect('employee.db')
mycursor=conn.cursor()
mycursor.execute("""CREATE TABLE official (id INT NOT NULL PRIMARY KEY, name VARCHAR(255) NOT NULL, join_date DATE NOT NULL, designation VARCHAR(255) NOT NULL, department VARCHAR(255) NOT NULL, monthly_salary DECIMAL(9,2) NOT NULL, email VARCH... | 78.803279 | 298 | 0.644269 | 711 | 4,807 | 4.288326 | 0.198312 | 0.0551 | 0.058052 | 0.045917 | 0.635946 | 0.568055 | 0.564119 | 0.508035 | 0.492293 | 0.409315 | 0 | 0.083551 | 0.12357 | 4,807 | 60 | 299 | 80.116667 | 0.640161 | 0.054088 | 0 | 0 | 0 | 0.324324 | 0.687018 | 0.030637 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.216216 | 0.027027 | 0 | 0.027027 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2ad851bcb12ba050dba564e8d40b4f863c16f783 | 1,413 | py | Python | bitvector.py | moredatarequired/bitfield-algebra | 34c9febe334f4629db2124dbf5c9b144a3a169f2 | [
"MIT"
] | null | null | null | bitvector.py | moredatarequired/bitfield-algebra | 34c9febe334f4629db2124dbf5c9b144a3a169f2 | [
"MIT"
] | null | null | null | bitvector.py | moredatarequired/bitfield-algebra | 34c9febe334f4629db2124dbf5c9b144a3a169f2 | [
"MIT"
] | null | null | null | import math
from dataclasses import dataclass
from typing import Tuple
from bit_algebra import Bit
@dataclass(frozen=True)
class BitVector:
"""A vector of bits (such as byte) with known or unknown values."""
bits: Tuple[Bit]
@staticmethod
def new(name: str, size=8):
return BitVector(bits=tu... | 26.660377 | 76 | 0.611465 | 213 | 1,413 | 3.859155 | 0.300469 | 0.145985 | 0.170316 | 0.087591 | 0.341849 | 0.305353 | 0.237226 | 0.193431 | 0.193431 | 0.193431 | 0 | 0.004726 | 0.251239 | 1,413 | 52 | 77 | 27.173077 | 0.772212 | 0.043171 | 0 | 0.057143 | 0 | 0 | 0.007429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.342857 | false | 0 | 0.114286 | 0.314286 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2ad8c59dcd2c685d0541fb1a88b5cf797fbb9623 | 1,381 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/LightingSource.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/LightingSource.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/LightingSource.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class LightingSource(Enum, IComparable, IFormattable, IConvertible):
"""
Indicates the lighting scheme type in rendering settings.
enum LightingSource,values: ExteriorArtificial (23),ExteriorSun (21),ExteriorSunAndArtificial (22),InteriorArtificial (26),InteriorSun (24),InteriorSunAndArtificial (25)
"... | 27.62 | 221 | 0.614048 | 141 | 1,381 | 5.340426 | 0.382979 | 0.106242 | 0.111554 | 0.119522 | 0.171315 | 0.171315 | 0.171315 | 0.150066 | 0.150066 | 0.150066 | 0 | 0.011811 | 0.264301 | 1,381 | 49 | 222 | 28.183673 | 0.729331 | 0.404055 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.357143 | 0 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2ade3af89ac386fd25af3da87e14c2f60b63340a | 2,264 | py | Python | tests/hw2/test_curry.py | mi-sts/spbu_python_homeworks | 98cab295c7eef9710e6d122ab11cc5114342d795 | [
"MIT"
] | null | null | null | tests/hw2/test_curry.py | mi-sts/spbu_python_homeworks | 98cab295c7eef9710e6d122ab11cc5114342d795 | [
"MIT"
] | null | null | null | tests/hw2/test_curry.py | mi-sts/spbu_python_homeworks | 98cab295c7eef9710e6d122ab11cc5114342d795 | [
"MIT"
] | null | null | null | import pytest
from src.hw2.curry import curry_explicit, uncurry_explicit
def test_curry():
function = lambda x, y, z: x + y - z
curried_function = curry_explicit((lambda x, y, z: x + y - z), 3)
assert curried_function(1)(3)(5) == function(1, 3, 5)
def test_uncurry():
function = lambda x, y, z: x + y... | 30.594595 | 79 | 0.723057 | 302 | 2,264 | 5.135762 | 0.145695 | 0.203095 | 0.116054 | 0.162476 | 0.78401 | 0.698904 | 0.698904 | 0.650548 | 0.573179 | 0.502257 | 0 | 0.0315 | 0.172703 | 2,264 | 73 | 80 | 31.013699 | 0.796583 | 0 | 0 | 0.509804 | 0 | 0 | 0.020318 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 1 | 0.215686 | false | 0 | 0.039216 | 0 | 0.254902 | 0.098039 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
63001c761a1e78229dd27509a42661dbf770583a | 289 | py | Python | src/sentry/analytics/events/organization_joined.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T17:46:16.000Z | 2019-10-17T17:46:16.000Z | src/sentry/analytics/events/organization_joined.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/analytics/events/organization_joined.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from sentry import analytics
class OrganizationJoinedEvent(analytics.Event):
type = "organization.joined"
attributes = (analytics.Attribute("user_id"), analytics.Attribute("organization_id"))
analytics.register(OrganizationJoinedEvent)
| 22.230769 | 89 | 0.802768 | 28 | 289 | 8.035714 | 0.607143 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110727 | 289 | 12 | 90 | 24.083333 | 0.875486 | 0 | 0 | 0 | 0 | 0 | 0.141869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6304c6e091e30747905b64d7aba470624f2a9429 | 48,800 | py | Python | pysnmp-with-texts/BEGEMOT-PF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/BEGEMOT-PF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/BEGEMOT-PF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BEGEMOT-PF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BEGEMOT-PF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:37:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | 119.90172 | 5,893 | 0.788709 | 5,651 | 48,800 | 6.810653 | 0.085826 | 0.079196 | 0.138592 | 0.014239 | 0.534986 | 0.387456 | 0.312885 | 0.218022 | 0.200899 | 0.148362 | 0 | 0.071707 | 0.090389 | 48,800 | 406 | 5,894 | 120.197044 | 0.795332 | 0.006598 | 0 | 0 | 0 | 0.027569 | 0.210506 | 0.001341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.197995 | 0.017544 | 0 | 0.017544 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
630597bfbcae22da42de4ed7bdac4e16f23139e1 | 249 | py | Python | while_loop.py | isobelscott/vagrant_setup | 60746901f6a0b6e3c0af0cf0d7fa9580c47d229a | [
"MIT"
] | 1 | 2020-05-23T15:59:49.000Z | 2020-05-23T15:59:49.000Z | while_loop.py | isobelscott/vagrant_setup | 60746901f6a0b6e3c0af0cf0d7fa9580c47d229a | [
"MIT"
] | null | null | null | while_loop.py | isobelscott/vagrant_setup | 60746901f6a0b6e3c0af0cf0d7fa9580c47d229a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
if __name__ == '__main__':
a_str = sys.argv[1]
b_str = sys.argv[2]
a = int(sys.argv[1])
b = int(sys.argv[2])
while (a <= b):
print("a =" + str(a) + str(b) + ")")
a = a+1
| 16.6 | 44 | 0.46988 | 41 | 249 | 2.609756 | 0.439024 | 0.261682 | 0.186916 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 0.321285 | 249 | 14 | 45 | 17.785714 | 0.597633 | 0.084337 | 0 | 0 | 0 | 0 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 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 |
630b73747a6c4dd07619acb1f96539d6e03d228d | 312 | py | Python | telnyx/api_resources/number_order.py | rjkboyle/telnyx-python | bee8bdef9efd43076e63693876f7a423f3853180 | [
"MIT"
] | 35 | 2019-07-22T20:44:09.000Z | 2022-02-15T05:52:15.000Z | telnyx/api_resources/number_order.py | rjkboyle/telnyx-python | bee8bdef9efd43076e63693876f7a423f3853180 | [
"MIT"
] | 15 | 2019-08-05T21:16:41.000Z | 2022-01-14T00:14:35.000Z | telnyx/api_resources/number_order.py | rjkboyle/telnyx-python | bee8bdef9efd43076e63693876f7a423f3853180 | [
"MIT"
] | 6 | 2019-08-19T17:27:39.000Z | 2022-03-15T18:36:23.000Z | from __future__ import absolute_import, division, print_function
from telnyx.api_resources.abstract import (
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
)
class NumberOrder(CreateableAPIResource, ListableAPIResource, UpdateableAPIResource):
OBJECT_NAME = "number_order"
| 26 | 85 | 0.817308 | 26 | 312 | 9.461538 | 0.769231 | 0.325203 | 0.495935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 312 | 11 | 86 | 28.363636 | 0.904412 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0.125 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d50a2b5e3fda4ef6b3b49027c783b8f5620702f | 2,091 | py | Python | Directives.py | EklipZgit/generals-bot | d9651c406097f959e1919ecb597d18158f4f529f | [
"MIT"
] | 5 | 2019-04-24T14:52:15.000Z | 2019-07-19T10:08:40.000Z | Directives.py | EklipZgit/generals-bot | d9651c406097f959e1919ecb597d18158f4f529f | [
"MIT"
] | null | null | null | Directives.py | EklipZgit/generals-bot | d9651c406097f959e1919ecb597d18158f4f529f | [
"MIT"
] | 3 | 2017-12-06T06:04:00.000Z | 2019-06-27T15:08:03.000Z | '''
@ Travis Drake (EklipZ) eklipz.io - tdrake0x45 at gmail)
April 2017
Generals.io Automated Client - https://github.com/harrischristiansen/generals-bot
EklipZ bot - Tries to play generals lol
'''
import logging
from enum import Enum
class Timings():
def __init__(self, cycleTurns, quickExpandSplitTurns, splitTu... | 31.208955 | 146 | 0.759923 | 265 | 2,091 | 5.867925 | 0.354717 | 0.092605 | 0.064309 | 0.064309 | 0.228939 | 0.169775 | 0.169775 | 0.169775 | 0.169775 | 0.169775 | 0 | 0.005643 | 0.152559 | 2,091 | 66 | 147 | 31.681818 | 0.871896 | 0.225251 | 0 | 0.097561 | 0 | 0 | 0.021197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0 | 0.04878 | 0.146341 | 0.682927 | 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 |
2d94715607e69c6dee7bc3a0230571c68dd1f1ed | 144 | py | Python | api/urls.py | calvh/mlh-showntell | 48477d600453779c8fd058b2f050fb96eef2c0e4 | [
"MIT"
] | null | null | null | api/urls.py | calvh/mlh-showntell | 48477d600453779c8fd058b2f050fb96eef2c0e4 | [
"MIT"
] | null | null | null | api/urls.py | calvh/mlh-showntell | 48477d600453779c8fd058b2f050fb96eef2c0e4 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path("foods/", views.food_api),
path("entries/", views.entry_api),
]
| 16 | 38 | 0.673611 | 19 | 144 | 5 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 144 | 8 | 39 | 18 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 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 |
2daffb74ce20bad412882f1bdbd63299aa068090 | 2,381 | py | Python | python/sparktk/graph/constructors/create.py | lewisc/spark-tk | 5548fc925b5c278263cbdebbd9e8c7593320c2f4 | [
"ECL-2.0",
"Apache-2.0"
] | 34 | 2016-05-20T22:26:05.000Z | 2022-01-21T12:55:13.000Z | python/sparktk/graph/constructors/create.py | aayushidwivedi01/spark-tk-old | fcf25f86498ac416cce77de0db4cf0aa503d20ac | [
"ECL-2.0",
"Apache-2.0"
] | 70 | 2016-06-28T01:11:21.000Z | 2021-03-15T21:40:01.000Z | python/sparktk/graph/constructors/create.py | aayushidwivedi01/spark-tk-old | fcf25f86498ac416cce77de0db4cf0aa503d20ac | [
"ECL-2.0",
"Apache-2.0"
] | 34 | 2016-04-21T22:25:22.000Z | 2020-10-06T09:23:43.000Z | # vim: set encoding=utf-8
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 52.911111 | 120 | 0.676186 | 345 | 2,381 | 4.614493 | 0.417391 | 0.065327 | 0.040201 | 0.052764 | 0.263819 | 0.263819 | 0.190955 | 0.190955 | 0.146985 | 0.146985 | 0 | 0.005211 | 0.274675 | 2,381 | 44 | 121 | 54.113636 | 0.916618 | 0.847963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2dccbd17609469504ca9898579c31aea07006b58 | 248 | py | Python | my-python-lab/appfunctions.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | my-python-lab/appfunctions.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | my-python-lab/appfunctions.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | def Awana_Academy(name, age): ## say to python that all the code that come after that line is going to be in d function
print("Hello " + name + "you are " + age + "years old ")
Awana_Academy("Alex " , "45")
Awana_Academy("Donald ", "12")
| 41.333333 | 120 | 0.653226 | 40 | 248 | 3.975 | 0.775 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.217742 | 248 | 5 | 121 | 49.6 | 0.798969 | 0.346774 | 0 | 0 | 0 | 0 | 0.261438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2dd1f3206ae6327640ba41290cc054191e36fad9 | 1,240 | py | Python | lale/util/VisitorPathError.py | Bhaskers-Blu-Org1/lale | 6d3a361ccf2377027fba84a15d0ec38ba285ff4c | [
"Apache-2.0"
] | null | null | null | lale/util/VisitorPathError.py | Bhaskers-Blu-Org1/lale | 6d3a361ccf2377027fba84a15d0ec38ba285ff4c | [
"Apache-2.0"
] | null | null | null | lale/util/VisitorPathError.py | Bhaskers-Blu-Org1/lale | 6d3a361ccf2377027fba84a15d0ec38ba285ff4c | [
"Apache-2.0"
] | 1 | 2020-07-30T10:06:23.000Z | 2020-07-30T10:06:23.000Z | # Copyright 2019 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 29.52381 | 74 | 0.695968 | 175 | 1,240 | 4.771429 | 0.531429 | 0.071856 | 0.031138 | 0.038323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00804 | 0.197581 | 1,240 | 41 | 75 | 30.243902 | 0.831156 | 0.441935 | 0 | 0 | 0 | 0 | 0.053097 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0.166667 | 0.722222 | 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 |
2dd7760834a4bb79845c38073d41d38a401a17c9 | 156 | py | Python | setup.py | lsaether/md-tooltips | c67346d0657367a651eced2dc0e0ba5c048a026a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2020-02-27T19:07:04.000Z | 2021-12-02T00:53:37.000Z | setup.py | lsaether/md-tooltips | c67346d0657367a651eced2dc0e0ba5c048a026a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2019-11-11T15:04:41.000Z | 2021-05-03T10:09:05.000Z | setup.py | lsaether/md-tooltips | c67346d0657367a651eced2dc0e0ba5c048a026a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2020-02-27T17:44:11.000Z | 2021-05-18T11:39:26.000Z | from setuptools import setup
setup(
name='md-tooltips',
version='1.3.1',
py_modules=['mdtooltips'],
install_requires = ['markdown>=2.5'],
) | 19.5 | 41 | 0.641026 | 20 | 156 | 4.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039063 | 0.179487 | 156 | 8 | 42 | 19.5 | 0.726563 | 0 | 0 | 0 | 0 | 0 | 0.248408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2def48b6f9cae6956d859e87cebb915ed386dbcd | 1,365 | py | Python | katas/kyu_7/Scoring_Tests.py | dusadamey/CodeWars | 386de2427c8a590fc2e65adf979658e817dd131a | [
"MIT"
] | null | null | null | katas/kyu_7/Scoring_Tests.py | dusadamey/CodeWars | 386de2427c8a590fc2e65adf979658e817dd131a | [
"MIT"
] | null | null | null | katas/kyu_7/Scoring_Tests.py | dusadamey/CodeWars | 386de2427c8a590fc2e65adf979658e817dd131a | [
"MIT"
] | 1 | 2021-10-30T15:45:40.000Z | 2021-10-30T15:45:40.000Z | # https://www.codewars.com/kata/55d2aee99f30dbbf8b000001/
'''
Details :
A new school year is approaching, which also means students will be taking tests.
The tests in this kata are to be graded in different ways. A certain number of points will be given for each correct answer and a certain number of points will be ... | 34.125 | 296 | 0.704762 | 245 | 1,365 | 3.922449 | 0.387755 | 0.031217 | 0.043704 | 0.033299 | 0.07076 | 0.07076 | 0.058273 | 0 | 0 | 0 | 0 | 0.06938 | 0.208059 | 1,365 | 39 | 297 | 35 | 0.819611 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9306d5b3483e8913b4a04d702091fb5efbc3f444 | 241 | py | Python | pkg_resources/tests/test_markers.py | techtonik/setuptools | aec3649c91a2a55e218edd038571931704a8e3a6 | [
"MIT"
] | 1 | 2022-03-12T13:27:21.000Z | 2022-03-12T13:27:21.000Z | pkg_resources/tests/test_markers.py | techtonik/setuptools | aec3649c91a2a55e218edd038571931704a8e3a6 | [
"MIT"
] | null | null | null | pkg_resources/tests/test_markers.py | techtonik/setuptools | aec3649c91a2a55e218edd038571931704a8e3a6 | [
"MIT"
] | 1 | 2022-03-12T13:27:24.000Z | 2022-03-12T13:27:24.000Z | from unittest import mock
from pkg_resources import evaluate_marker
@mock.patch('platform.python_version', return_value='2.7.10')
def test_ordering(python_version_mock):
assert evaluate_marker("python_full_version > '2.7.3'") is True
| 26.777778 | 67 | 0.792531 | 37 | 241 | 4.891892 | 0.675676 | 0.154696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032407 | 0.103734 | 241 | 8 | 68 | 30.125 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.240664 | 0.095436 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 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 |
932f77b362c63775cc0922efcf808e2f2af1e968 | 304 | py | Python | sales/search_urls.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | sales/search_urls.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | sales/search_urls.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from . search_views import \
by_identifier, \
by_unique_sale_user
urlpatterns = [
url(r'^by-identifier', by_identifier, name='search-sale-by-identifier'),
url(r'^by-unique-sale-user', by_unique_sale_user, name='search-sale-by-unique-sale-user'),
] | 30.4 | 93 | 0.733553 | 46 | 304 | 4.652174 | 0.369565 | 0.224299 | 0.224299 | 0.299065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121711 | 304 | 10 | 94 | 30.4 | 0.801498 | 0 | 0 | 0 | 0 | 0 | 0.304054 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
934680beea62af79ab9b5be09f49faee77888f35 | 278 | py | Python | ujirani/views.py | maxwellharon/Ujirani | da920c804a942b9e7383a5266a4a5a92eeccae68 | [
"MIT"
] | null | null | null | ujirani/views.py | maxwellharon/Ujirani | da920c804a942b9e7383a5266a4a5a92eeccae68 | [
"MIT"
] | null | null | null | ujirani/views.py | maxwellharon/Ujirani | da920c804a942b9e7383a5266a4a5a92eeccae68 | [
"MIT"
] | null | null | null | from django.views.generic import TemplateView
from django.contrib.auth.mixins import LoginRequiredMixin
'''
This view function is responsible for when the user logs in and sees the homepage
'''
class HomePage(LoginRequiredMixin, TemplateView):
template_name = 'index.html'
| 30.888889 | 81 | 0.802158 | 36 | 278 | 6.166667 | 0.805556 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129496 | 278 | 8 | 82 | 34.75 | 0.917355 | 0 | 0 | 0 | 0 | 0 | 0.05291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
934a719a886813de9d5b0568563a8090a14f9a68 | 2,137 | py | Python | src/sima/post/blueprints/statisticaloperation.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/post/blueprints/statisticaloperation.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/post/blueprints/statisticaloperation.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | #
# Generated with StatisticalOperationBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from .operationnode import OperationNodeBlueprint
class Stati... | 71.233333 | 204 | 0.737015 | 224 | 2,137 | 6.973214 | 0.352679 | 0.143406 | 0.204866 | 0.204225 | 0.276569 | 0.214469 | 0.084507 | 0 | 0 | 0 | 0 | 0.002107 | 0.111839 | 2,137 | 30 | 205 | 71.233333 | 0.820864 | 0.02059 | 0 | 0 | 1 | 0.04 | 0.28263 | 0.052303 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.24 | 0 | 0.32 | 0.32 | 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 |
93722e7c65cc770ac2c11290ae9bd0b1291ad9e2 | 243 | py | Python | pytest/response/PublishDataResponse.py | IshaySela/PubSub | d25a90458c4fb178dc3c8eb8a0f204d0c4347043 | [
"MIT"
] | null | null | null | pytest/response/PublishDataResponse.py | IshaySela/PubSub | d25a90458c4fb178dc3c8eb8a0f204d0c4347043 | [
"MIT"
] | null | null | null | pytest/response/PublishDataResponse.py | IshaySela/PubSub | d25a90458c4fb178dc3c8eb8a0f204d0c4347043 | [
"MIT"
] | null | null | null | import json
class PublishDataResponse:
status:int
def __init__(self, status:int):
self.status = status
@staticmethod
def from_raw_json(raw_json:str):
return PublishDataResponse(json.loads(raw_json)["Status"]) | 22.090909 | 66 | 0.699588 | 29 | 243 | 5.586207 | 0.517241 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205761 | 243 | 11 | 66 | 22.090909 | 0.839378 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
fa805751d11bec252ba11095e9c0e936c4cf1d14 | 240 | py | Python | utils/json.py | MisileLab/Crayonbot | 98c2b0ff482a685cd324d94176a1a3f6e423deb3 | [
"MIT"
] | null | null | null | utils/json.py | MisileLab/Crayonbot | 98c2b0ff482a685cd324d94176a1a3f6e423deb3 | [
"MIT"
] | null | null | null | utils/json.py | MisileLab/Crayonbot | 98c2b0ff482a685cd324d94176a1a3f6e423deb3 | [
"MIT"
] | 1 | 2022-01-13T09:45:57.000Z | 2022-01-13T09:45:57.000Z | import json
def loadjson(src):
with open(src, "r", encoding="utf-8") as f:
return json.load(f)
def savejson(src, data):
with open(src, "w", encoding="utf-8") as f:
json.dump(data, f, ensure_ascii=False) | 21.818182 | 48 | 0.5875 | 38 | 240 | 3.684211 | 0.578947 | 0.114286 | 0.157143 | 0.2 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.254167 | 240 | 11 | 49 | 21.818182 | 0.77095 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 0 | 1 | 0 | 0 | 3 |
fa8380d6d963e8919e6b1c702ff245baa72a68cd | 1,355 | py | Python | darknet_2_pb/layers/mish.py | wdian/model_transform | 44fdd120ca4434a686d36c18978fc248ef4b7d7f | [
"Apache-2.0"
] | null | null | null | darknet_2_pb/layers/mish.py | wdian/model_transform | 44fdd120ca4434a686d36c18978fc248ef4b7d7f | [
"Apache-2.0"
] | null | null | null | darknet_2_pb/layers/mish.py | wdian/model_transform | 44fdd120ca4434a686d36c18978fc248ef4b7d7f | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*- #
"""
-------------------------------------------------------------------
Copyright (c) 2019-2022 Snow Lake Inc. All rights reserved.
Description :
File Name: mish.py
Author : wangdian@snowlake-tech.com
create date: 2021/7/8
--------------------------------------------... | 29.456522 | 67 | 0.546125 | 164 | 1,355 | 4.396341 | 0.54878 | 0.011096 | 0.016644 | 0.052705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015733 | 0.249446 | 1,355 | 45 | 68 | 30.111111 | 0.692232 | 0.594096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.153846 | 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 |
fa85056d0d9b2ed3cae822af5ad2950d2c9b968b | 48 | py | Python | src/__init__.py | HuskyHacks/the-crown-defcon615 | 74df87ab31c06e92f88d48c251bb4d9b712adc77 | [
"MIT"
] | 42 | 2022-01-10T02:16:09.000Z | 2022-02-22T00:37:48.000Z | src/__init__.py | HuskyHacks/the-crown-defcon615 | 74df87ab31c06e92f88d48c251bb4d9b712adc77 | [
"MIT"
] | null | null | null | src/__init__.py | HuskyHacks/the-crown-defcon615 | 74df87ab31c06e92f88d48c251bb4d9b712adc77 | [
"MIT"
] | 6 | 2022-01-11T02:46:47.000Z | 2022-01-26T01:11:21.000Z | __all__ = ["whoami", "pe_parse", "digital_rain"] | 48 | 48 | 0.6875 | 6 | 48 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 48 | 1 | 48 | 48 | 0.613636 | 0 | 0 | 0 | 0 | 0 | 0.530612 | 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 |
fa9dbb0ecf6939d2fc2af5ec467a4793b767277a | 86 | py | Python | show_color_scales.py | TheGerbilvonSteuben/PythonDataVisualization | 34a569a888287a1ba26c0467090a9429ac6fc928 | [
"CC0-1.0"
] | null | null | null | show_color_scales.py | TheGerbilvonSteuben/PythonDataVisualization | 34a569a888287a1ba26c0467090a9429ac6fc928 | [
"CC0-1.0"
] | null | null | null | show_color_scales.py | TheGerbilvonSteuben/PythonDataVisualization | 34a569a888287a1ba26c0467090a9429ac6fc928 | [
"CC0-1.0"
] | null | null | null | from plotly import colors
for key in colors.PLOTLY_SCALES.keys():
print(key)
| 17.2 | 40 | 0.709302 | 13 | 86 | 4.615385 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 86 | 4 | 41 | 21.5 | 0.882353 | 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 |
faa2e48d83c1bbacef2e6f8ce1bda1de427f1230 | 1,040 | py | Python | hyperion/pdfs/core/pdf.py | jsalt2019-diadet/hyperion | 14a11436d62f3c15cd9b1f70bcce3eafbea2f753 | [
"Apache-2.0"
] | 9 | 2019-09-22T05:19:59.000Z | 2022-03-05T18:03:37.000Z | hyperion/pdfs/core/pdf.py | jsalt2019-diadet/hyperion | 14a11436d62f3c15cd9b1f70bcce3eafbea2f753 | [
"Apache-2.0"
] | null | null | null | hyperion/pdfs/core/pdf.py | jsalt2019-diadet/hyperion | 14a11436d62f3c15cd9b1f70bcce3eafbea2f753 | [
"Apache-2.0"
] | 4 | 2019-10-10T06:34:05.000Z | 2022-03-05T18:03:56.000Z | """
Copyright 2018 Johns Hopkins University (Author: Jesus Villalba)
Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from six.moves import xrange
import numpy as np
from abc import ABCMeta, abs... | 22.608696 | 69 | 0.661538 | 136 | 1,040 | 4.75 | 0.455882 | 0.0387 | 0.074303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011307 | 0.234615 | 1,040 | 45 | 70 | 23.111111 | 0.800251 | 0.117308 | 0 | 0.153846 | 0 | 0 | 0.005513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.269231 | 0.076923 | 0.692308 | 0.038462 | 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 |
faabaab6339db3f6daf41e20feb07a922ead5b6e | 93 | py | Python | mud5games/apps.py | badCompany55/testDjangoDeploy | 80681fc070eb062dd51cb6787af1796c99ebd69c | [
"MIT"
] | 2 | 2019-09-21T23:17:06.000Z | 2019-09-27T03:09:09.000Z | mud5games/apps.py | badCompany55/testDjangoDeploy | 80681fc070eb062dd51cb6787af1796c99ebd69c | [
"MIT"
] | 16 | 2019-09-30T01:33:25.000Z | 2022-02-10T10:16:28.000Z | mud5games/apps.py | zacheryirvin/testDjangoDeploy | 80681fc070eb062dd51cb6787af1796c99ebd69c | [
"MIT"
] | 1 | 2019-09-19T01:47:10.000Z | 2019-09-19T01:47:10.000Z | from django.apps import AppConfig
class Mud5GamesConfig(AppConfig):
name = 'mud5games'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fae0852fdefec3aa304e90303d623af8b058bfd5 | 4,841 | py | Python | tests/media/test_upmedia.py | allenyummy/Sanga | ff4cc60e0fd05cac49bdf15ad8a57dfedcf75fd0 | [
"MIT"
] | 2 | 2021-09-01T13:39:58.000Z | 2021-09-01T13:41:49.000Z | tests/media/test_upmedia.py | allenyummy/Sanga | ff4cc60e0fd05cac49bdf15ad8a57dfedcf75fd0 | [
"MIT"
] | 3 | 2021-08-31T06:00:23.000Z | 2021-09-01T08:52:41.000Z | tests/media/test_upmedia.py | allenyummy/Sanga | ff4cc60e0fd05cac49bdf15ad8a57dfedcf75fd0 | [
"MIT"
] | null | null | null | # encoding=utf-8
# Author: Yu-Lun Chiang
# Description: Test NewsCrawler
import logging
import pytest
from collections import namedtuple
from Sanga.media import upmedia
from Sanga.struct import NewsStruct
logger = logging.getLogger(__name__)
TEST_DATA = namedtuple(
typename="TEST_DATA",
field_names=[
... | 63.697368 | 2,303 | 0.762652 | 583 | 4,841 | 6.26072 | 0.559177 | 0.020822 | 0.020548 | 0.020822 | 0.100274 | 0.090959 | 0.081096 | 0.06411 | 0.063836 | 0.055068 | 0 | 0.033855 | 0.115265 | 4,841 | 75 | 2,304 | 64.546667 | 0.817651 | 0.013634 | 0 | 0.229508 | 0 | 0.065574 | 0.729616 | 0.415217 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0.032787 | false | 0 | 0.098361 | 0 | 0.147541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
faf9acbede76ccd00d7cd2d6ae36177e8da68930 | 2,472 | gyp | Python | packager/media/filters/filters.gyp | nevil/shaka-packager | a217cdce294b5162ae305a310b2e53e73c4d0481 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | packager/media/filters/filters.gyp | nevil/shaka-packager | a217cdce294b5162ae305a310b2e53e73c4d0481 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | packager/media/filters/filters.gyp | nevil/shaka-packager | a217cdce294b5162ae305a310b2e53e73c4d0481 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 Google Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE filters or at
# https://developers.google.com/open-source/licenses/bsd
{
'includes': [
'../../common.gypi',
],
'targets': [
{
'target_name': 'filters',... | 30.9 | 57 | 0.613269 | 289 | 2,472 | 4.809689 | 0.273356 | 0.093525 | 0.057554 | 0.092086 | 0.253957 | 0.253957 | 0.146763 | 0 | 0 | 0 | 0 | 0.031823 | 0.25 | 2,472 | 79 | 58 | 31.291139 | 0.717907 | 0.084142 | 0 | 0.136986 | 0 | 0 | 0.641275 | 0.476085 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4f0cb05896848b118b9bdcc3254c6c6fe235f356 | 304 | py | Python | plugins/teedoc-plugin-markdown-parser/teedoc_plugin_markdown_parser/renderer.py | Neutree/teedoc | e909be61546e3817b872bd5005b9b867c6843e60 | [
"MIT"
] | 29 | 2021-02-05T10:00:45.000Z | 2022-03-30T06:42:15.000Z | plugins/teedoc-plugin-markdown-parser/teedoc_plugin_markdown_parser/renderer.py | Neutree/teedoc | e909be61546e3817b872bd5005b9b867c6843e60 | [
"MIT"
] | 13 | 2021-08-06T03:39:31.000Z | 2022-03-29T10:39:53.000Z | plugins/teedoc-plugin-markdown-parser/teedoc_plugin_markdown_parser/renderer.py | Neutree/teedoc | e909be61546e3817b872bd5005b9b867c6843e60 | [
"MIT"
] | 4 | 2021-02-23T08:31:35.000Z | 2022-03-06T20:10:44.000Z |
import mistune
mistune_version = mistune.__version__.split(".") # 0.8.4, 2.0.0rc1
mistune_version = int(mistune_version[0]) * 10 + int(mistune_version[1]) # 8, 20
if mistune_version >= 20:
from .renderer_new import create_markdown_parser
else:
from .renderer_old import create_markdown_parser
| 27.636364 | 80 | 0.753289 | 45 | 304 | 4.755556 | 0.488889 | 0.392523 | 0.158879 | 0.242991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061069 | 0.138158 | 304 | 10 | 81 | 30.4 | 0.755725 | 0.069079 | 0 | 0 | 0 | 0 | 0.00361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8793aaaec2fe62bbad3730eb76038db250c6edb4 | 133 | py | Python | Codeforces/89 Beta Division 2/Problem A/A.py | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/89 Beta Division 2/Problem A/A.py | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/89 Beta Division 2/Problem A/A.py | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | d = {"A","E","I","O","U","Y"}
s = raw_input()
res = ""
for c in s:
if c.upper() not in d:
res += '.'
res += c.lower()
print res
| 14.777778 | 29 | 0.458647 | 27 | 133 | 2.222222 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233083 | 133 | 8 | 30 | 16.625 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 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 |
879ef71dab92fadc5fbb38e65583f806e68b9c57 | 344 | py | Python | shared/exceptions.py | conducto/conducto | b480780905f5a25e8c803b60ca7cdf6976ce5ef6 | [
"Apache-2.0"
] | 25 | 2020-05-07T22:51:11.000Z | 2021-11-17T16:14:42.000Z | shared/exceptions.py | conducto/conducto | b480780905f5a25e8c803b60ca7cdf6976ce5ef6 | [
"Apache-2.0"
] | 3 | 2020-04-21T06:38:02.000Z | 2020-05-31T01:57:19.000Z | shared/exceptions.py | conducto/conducto | b480780905f5a25e8c803b60ca7cdf6976ce5ef6 | [
"Apache-2.0"
] | 2 | 2020-05-14T01:47:32.000Z | 2020-06-03T21:58:12.000Z | # TODO -- co.api.InvalidResponse is used in (client) public code. This should
# move to private.
class ClientError(Exception):
def __init__(self, status_code, message):
Exception.__init__(self)
self.status_code = status_code
self.message = message
def to_dict(self):
return {"... | 26.461538 | 78 | 0.674419 | 43 | 344 | 5.116279 | 0.581395 | 0.136364 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226744 | 344 | 12 | 79 | 28.666667 | 0.827068 | 0.270349 | 0 | 0 | 0 | 0 | 0.028226 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 3 |
879f2f30942922e4faafb6967e509ff9a929838e | 251 | py | Python | desafios/Mundo 1/Ex002.py | duartecgustavo/Python---Estudos- | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | 6 | 2021-01-20T20:43:39.000Z | 2021-08-13T15:44:10.000Z | desafios/Mundo 1/Ex002.py | duartecgustavo/PythonProgress | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | null | null | null | desafios/Mundo 1/Ex002.py | duartecgustavo/PythonProgress | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | 1 | 2020-09-06T03:34:19.000Z | 2020-09-06T03:34:19.000Z | # Desafio 2 - Aula 5 : Primeiro 'input' e lista simplês com cores.
nome = input('Me diga seu nome: ')
cor = {'azul' : '\033[34m',
'limpa' : '\033[m'}
print(f'Seu nome é,\033[34m{nome}{cor["limpa"]}!')
print(f'Seu nome é \033[34m{nome}\033[m!') | 35.857143 | 66 | 0.601594 | 44 | 251 | 3.431818 | 0.545455 | 0.139073 | 0.119205 | 0.172185 | 0.317881 | 0.317881 | 0.317881 | 0.317881 | 0 | 0 | 0 | 0.110577 | 0.171315 | 251 | 7 | 67 | 35.857143 | 0.615385 | 0.25498 | 0 | 0 | 0 | 0 | 0.607527 | 0.27957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87a154385d45b56e6c223157f7178b20d73dac15 | 219 | py | Python | apps/home/serializers.py | elgedawy/hidc | 09fbd96590e6d4534cb14be46928700e2a58404d | [
"MIT"
] | null | null | null | apps/home/serializers.py | elgedawy/hidc | 09fbd96590e6d4534cb14be46928700e2a58404d | [
"MIT"
] | null | null | null | apps/home/serializers.py | elgedawy/hidc | 09fbd96590e6d4534cb14be46928700e2a58404d | [
"MIT"
] | null | null | null | from dataclasses import field
from rest_framework import serializers
from .models import Request
class RequestSerializer(serializers.ModelSerializer):
class Meta:
model = Request
fields = '__all__' | 24.333333 | 53 | 0.757991 | 23 | 219 | 7 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196347 | 219 | 9 | 54 | 24.333333 | 0.914773 | 0 | 0 | 0 | 0 | 0 | 0.031818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 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 |
87cf50cebc755e5554d107b13249502e275e2dfa | 11,593 | py | Python | tests/manifolds/test_symmetric_positive_definite.py | navigator8972/pymanopt | b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f | [
"BSD-3-Clause"
] | null | null | null | tests/manifolds/test_symmetric_positive_definite.py | navigator8972/pymanopt | b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f | [
"BSD-3-Clause"
] | null | null | null | tests/manifolds/test_symmetric_positive_definite.py | navigator8972/pymanopt | b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f | [
"BSD-3-Clause"
] | null | null | null | import autograd.numpy as np
import numpy.testing as np_testing
from scipy.linalg import eigvalsh, expm, logm
from pymanopt.manifolds import SymmetricPositiveDefinite
from pymanopt.tools.multi import multiexpm, multilogm, multisym, multitransp
from ._manifold_tests import ManifoldTestCase
def geodesic(point_a, point... | 34.097059 | 86 | 0.610713 | 1,541 | 11,593 | 4.44841 | 0.123945 | 0.051204 | 0.083151 | 0.058352 | 0.774179 | 0.736397 | 0.709847 | 0.679358 | 0.65062 | 0.61736 | 0 | 0.008727 | 0.278444 | 11,593 | 339 | 87 | 34.19764 | 0.810759 | 0.137497 | 0 | 0.64557 | 0 | 0 | 0.002511 | 0 | 0 | 0 | 0 | 0 | 0.21097 | 1 | 0.109705 | false | 0 | 0.025316 | 0 | 0.147679 | 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 |
87dd596ebc705bb161b7b86a3cf7b6d2524b82b8 | 262 | py | Python | meeting (1)/color.py | ilia85-star/WebScraper | 2a86f71eba8dbfca8d46208e7a7c4504799d6bc0 | [
"MIT"
] | null | null | null | meeting (1)/color.py | ilia85-star/WebScraper | 2a86f71eba8dbfca8d46208e7a7c4504799d6bc0 | [
"MIT"
] | null | null | null | meeting (1)/color.py | ilia85-star/WebScraper | 2a86f71eba8dbfca8d46208e7a7c4504799d6bc0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
class Color():
black = "\u001b[30m"
red = "\u001b[31m"
green = "\u001b[32m"
yellow = "\u001b[33m"
blue = "\u001b[34m"
magenta = "\u001b[35m"
cyan = "\u001b[36m"
white = "\u001b[37m"
reset = "\u001b[0m"
| 20.153846 | 26 | 0.538168 | 33 | 262 | 4.272727 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231959 | 0.259542 | 262 | 12 | 27 | 21.833333 | 0.494845 | 0.080153 | 0 | 0 | 0 | 0 | 0.370833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
87e01fbca82f22178a864fe75aa8119590a73a99 | 248 | py | Python | molecule/default/tests/test_default.py | sansible/ruby | 8c7a294c6e56eec297ff9c969055f96dcbaa9741 | [
"MIT"
] | 1 | 2018-01-24T08:20:58.000Z | 2018-01-24T08:20:58.000Z | molecule/default/tests/test_default.py | sansible/ruby | 8c7a294c6e56eec297ff9c969055f96dcbaa9741 | [
"MIT"
] | 3 | 2016-09-30T15:46:43.000Z | 2018-02-16T12:55:24.000Z | molecule/default/tests/test_default.py | sansible/ruby | 8c7a294c6e56eec297ff9c969055f96dcbaa9741 | [
"MIT"
] | 1 | 2021-01-03T18:24:45.000Z | 2021-01-03T18:24:45.000Z | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_ruby_installed(host):
host.package("ruby2.2").is_installed
| 22.545455 | 63 | 0.794355 | 33 | 248 | 5.69697 | 0.69697 | 0.148936 | 0.223404 | 0.287234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008889 | 0.092742 | 248 | 10 | 64 | 24.8 | 0.826667 | 0 | 0 | 0 | 0 | 0 | 0.133065 | 0.092742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
87e0f638ed04e208ee128e3b339e280ef6905a9b | 209 | py | Python | elementable/exceptions.py | lilyminium/elementary | d522a92af4b777a86ca2b238a112ed7bfcb352ed | [
"MIT"
] | 1 | 2022-01-31T16:42:22.000Z | 2022-01-31T16:42:22.000Z | elementable/exceptions.py | lilyminium/elementary | d522a92af4b777a86ca2b238a112ed7bfcb352ed | [
"MIT"
] | 6 | 2022-01-31T00:28:13.000Z | 2022-02-01T02:46:15.000Z | elementable/exceptions.py | lilyminium/pyelementary | d522a92af4b777a86ca2b238a112ed7bfcb352ed | [
"MIT"
] | null | null | null | class ElementableError(Exception):
pass
class InvalidElementError(KeyError, ElementableError):
def __init__(self, msg):
msg = f"Element {msg} is not supported"
super().__init__(msg)
| 20.9 | 54 | 0.688995 | 22 | 209 | 6.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 209 | 9 | 55 | 23.222222 | 0.824242 | 0 | 0 | 0 | 0 | 0 | 0.143541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
87e5e4fba314d992b9e871647d149a16cd3d0d4e | 768 | py | Python | books/models.py | Fredy/Library-Py | 6d77f0afadc3d651c680fc149ac0d1993dd9f4ff | [
"MIT"
] | null | null | null | books/models.py | Fredy/Library-Py | 6d77f0afadc3d651c680fc149ac0d1993dd9f4ff | [
"MIT"
] | null | null | null | books/models.py | Fredy/Library-Py | 6d77f0afadc3d651c680fc149ac0d1993dd9f4ff | [
"MIT"
] | null | null | null | from django.db import models
class Author(models.Model):
first_name = models.CharField(max_length=20)
last_name = models.CharField(max_length=20)
birth_date = models.DateField()
def __str__(self):
return ' '.join([self.first_name, self.last_name])
class Genre(models.Model):
name = model... | 24.774194 | 58 | 0.700521 | 97 | 768 | 5.298969 | 0.402062 | 0.145914 | 0.175097 | 0.233463 | 0.252918 | 0.175097 | 0 | 0 | 0 | 0 | 0 | 0.019293 | 0.190104 | 768 | 30 | 59 | 25.6 | 0.807074 | 0 | 0 | 0.142857 | 0 | 0 | 0.001302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
87f34581e1f094c7dc99dee560838071f409e517 | 162 | py | Python | src/nip/NTIPAliasFlag.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | src/nip/NTIPAliasFlag.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | src/nip/NTIPAliasFlag.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | NTIPAliasFlag = {}
NTIPAliasFlag["identified"]="0x10"
NTIPAliasFlag["eth"]="0x400000"
NTIPAliasFlag["ethereal"]="0x400000"
NTIPAliasFlag["runeword"]="0x4000000"
| 23.142857 | 37 | 0.759259 | 13 | 162 | 9.461538 | 0.615385 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162338 | 0.049383 | 162 | 6 | 38 | 27 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.360248 | 0 | 0 | 0 | 0.180124 | 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 |
87ff7173909399138649f994dc13110243694f98 | 472 | py | Python | tests/functional-utils/test_functional_tools.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | 1 | 2018-02-09T01:30:27.000Z | 2018-02-09T01:30:27.000Z | tests/functional-utils/test_functional_tools.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | null | null | null | tests/functional-utils/test_functional_tools.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | 2 | 2017-06-13T15:17:09.000Z | 2021-06-17T11:09:32.000Z | from eth_utils.functional import compose
def test_composition_no_functions():
fn = compose()
assert fn(5) == 5
def test_composition_single_function():
def fn(x):
return x * 2
assert compose(fn)(5) == 10
def test_composition_multiple_function():
def fn(x):
return x + 1
ass... | 16.857143 | 41 | 0.610169 | 68 | 472 | 4.044118 | 0.441176 | 0.101818 | 0.196364 | 0.101818 | 0.152727 | 0.152727 | 0 | 0 | 0 | 0 | 0 | 0.038012 | 0.275424 | 472 | 27 | 42 | 17.481481 | 0.766082 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.352941 | false | 0 | 0.058824 | 0.117647 | 0.529412 | 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 |
e210434be14b24348a7db5da19eae2e7c7a45471 | 245 | py | Python | watchmen/raw_data/mapping.py | Indexical-Metrics-Measure-Advisory/watchmen-data-processor | d50b93e92868500552416997707d71720487bd77 | [
"MIT"
] | null | null | null | watchmen/raw_data/mapping.py | Indexical-Metrics-Measure-Advisory/watchmen-data-processor | d50b93e92868500552416997707d71720487bd77 | [
"MIT"
] | null | null | null | watchmen/raw_data/mapping.py | Indexical-Metrics-Measure-Advisory/watchmen-data-processor | d50b93e92868500552416997707d71720487bd77 | [
"MIT"
] | null | null | null | from watchmen.common.watchmen_model import WatchmenModel
class Mapping(WatchmenModel):
mapping_id: int
source_entity_id: int
source_entity_name: str
target_topic_id: int
target_topic_name: str
mapping_detail_list: list
| 22.272727 | 56 | 0.77551 | 33 | 245 | 5.393939 | 0.545455 | 0.08427 | 0.123596 | 0.191011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179592 | 245 | 10 | 57 | 24.5 | 0.885572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3554752f1a0210cda0928491d002f995503af5bc | 5,030 | py | Python | geomstats/backend/tensorflow.py | tolgabirdal/geomstats | 27667a9fbd8d3b8fa7a5da0e34d880ce0ad39d51 | [
"MIT"
] | null | null | null | geomstats/backend/tensorflow.py | tolgabirdal/geomstats | 27667a9fbd8d3b8fa7a5da0e34d880ce0ad39d51 | [
"MIT"
] | null | null | null | geomstats/backend/tensorflow.py | tolgabirdal/geomstats | 27667a9fbd8d3b8fa7a5da0e34d880ce0ad39d51 | [
"MIT"
] | null | null | null | """Tensorflow based computation backend."""
import tensorflow as tf
int8 = tf.int8
int32 = tf.int32
int64 = tf.int64
float16 = tf.float16
float32 = tf.float32
float64 = tf.float64
def while_loop(*args, **kwargs):
return tf.while_loop(*args, **kwargs)
def logical_or(x, y):
return tf.logical_or(x, y)
def... | 15.150602 | 68 | 0.626839 | 856 | 5,030 | 3.601636 | 0.192757 | 0.179046 | 0.0759 | 0.070062 | 0.118716 | 0.037626 | 0.011677 | 0.011677 | 0 | 0 | 0 | 0.013945 | 0.215905 | 5,030 | 331 | 69 | 15.196375 | 0.767748 | 0.007356 | 0 | 0.016854 | 0 | 0 | 0.00381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.41573 | false | 0 | 0.005618 | 0.370787 | 0.853933 | 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 |
355dfcb6c8d33e2748ee481458e4fbcec11c77b1 | 539 | py | Python | mwarp1d/ui/figures/artists/__init__.py | 0todd0000/mwarp1d | 7b40a47e6c112a8da5a1b67aff890fc77fe83d71 | [
"MIT"
] | null | null | null | mwarp1d/ui/figures/artists/__init__.py | 0todd0000/mwarp1d | 7b40a47e6c112a8da5a1b67aff890fc77fe83d71 | [
"MIT"
] | 6 | 2019-11-25T08:15:05.000Z | 2020-02-07T13:05:59.000Z | mwarp1d/ui/figures/artists/__init__.py | 0todd0000/mwarp1d | 7b40a47e6c112a8da5a1b67aff890fc77fe83d71 | [
"MIT"
] | 2 | 2019-11-28T02:58:14.000Z | 2019-12-18T11:45:33.000Z |
from . collection import TemplateWithLandmarks, SourceWithLandmarks
from . crosshairs import Crosshairs,CrosshairsManual
from . draggable_points import SourceLandmarks, TemplateLandmarks
from . selectable_line import Source,Template
from . stack import SelectionStack
from . template_source_plot import TemplateSourcePl... | 41.461538 | 67 | 0.871985 | 55 | 539 | 8.363636 | 0.545455 | 0.043478 | 0.078261 | 0.095652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100186 | 539 | 13 | 68 | 41.461538 | 0.948454 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.