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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c43de49a7cd2e110e5f0c94ca3c646c92dabdefb | 217 | py | Python | django_beginnings/blog/forms.py | henryfjordan/django_beginnings | 0aabb2c0ef250f211dabebcbc83b5c3e3d577302 | [
"BSD-3-Clause"
] | null | null | null | django_beginnings/blog/forms.py | henryfjordan/django_beginnings | 0aabb2c0ef250f211dabebcbc83b5c3e3d577302 | [
"BSD-3-Clause"
] | null | null | null | django_beginnings/blog/forms.py | henryfjordan/django_beginnings | 0aabb2c0ef250f211dabebcbc83b5c3e3d577302 | [
"BSD-3-Clause"
] | null | null | null | from django.forms import ModelForm
from .models import BlogComment
class CommentForm(ModelForm):
class Meta:
model = BlogComment
fields = ('comment',)
def is_valid(self):
return True | 19.727273 | 34 | 0.668203 | 24 | 217 | 6 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 217 | 11 | 35 | 19.727273 | 0.89441 | 0 | 0 | 0 | 0 | 0 | 0.03211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c449d90cf0a0313e3152b4b7bc7bea90cdc75b6e | 2,996 | py | Python | python/DeepSeaScene/FramebufferSurface.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 5 | 2018-11-17T23:13:22.000Z | 2021-09-30T13:37:04.000Z | python/DeepSeaScene/FramebufferSurface.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | null | null | null | python/DeepSeaScene/FramebufferSurface.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 2 | 2019-09-23T12:23:35.000Z | 2020-04-07T05:31:06.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: DeepSeaScene
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class FramebufferSurface(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers... | 38.410256 | 123 | 0.703939 | 355 | 2,996 | 5.847887 | 0.24507 | 0.043834 | 0.084778 | 0.074181 | 0.395472 | 0.387283 | 0.359345 | 0.27264 | 0.202312 | 0.202312 | 0 | 0.013608 | 0.190587 | 2,996 | 78 | 124 | 38.410256 | 0.842474 | 0.186248 | 0 | 0.203704 | 1 | 0 | 0.001669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.351852 | false | 0 | 0.055556 | 0.018519 | 0.740741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c45a7f401c57b1b0a7c01fc52e1290c43feab558 | 1,666 | py | Python | components/dash-core-components/tests/integration/clipboard/test_clipboard.py | emilhe/dash | c313d1b1c5aba054073b4925122accef5642ce5d | [
"MIT"
] | 17,143 | 2015-07-14T17:19:05.000Z | 2022-03-31T10:03:39.000Z | components/dash-core-components/tests/integration/clipboard/test_clipboard.py | waralex/dash | 02994069a81db68b843dda322238f6126e4b090b | [
"MIT"
] | 1,630 | 2015-11-17T22:15:41.000Z | 2022-03-31T09:15:07.000Z | components/dash-core-components/tests/integration/clipboard/test_clipboard.py | waralex/dash | 02994069a81db68b843dda322238f6126e4b090b | [
"MIT"
] | 1,970 | 2015-07-12T07:05:14.000Z | 2022-03-30T19:58:09.000Z | from dash import Dash, html, dcc
import dash.testing.wait as wait
import time
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
def test_clp001_clipboard_text(dash_dcc_headed):
copy_text = "Hello, Dash!"
app = Dash(__name__, prevent_initial_cal... | 29.22807 | 86 | 0.676471 | 223 | 1,666 | 4.73991 | 0.29148 | 0.07947 | 0.147588 | 0.0965 | 0.743614 | 0.701987 | 0.701987 | 0.637654 | 0.637654 | 0.637654 | 0 | 0.007446 | 0.193878 | 1,666 | 56 | 87 | 29.75 | 0.779598 | 0.007803 | 0 | 0.545455 | 0 | 0 | 0.081818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.159091 | 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 |
c46ebf871605cd3568a20372f38ef5adf1daef6e | 415 | py | Python | scripts/stl/tests/single_burst.py | timgates42/trex-core | efe94752fcb2d0734c83d4877afe92a3dbf8eccd | [
"Apache-2.0"
] | 956 | 2015-06-24T15:04:55.000Z | 2022-03-30T06:25:04.000Z | scripts/stl/tests/single_burst.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 782 | 2015-09-20T15:19:00.000Z | 2022-03-31T23:52:05.000Z | scripts/stl/tests/single_burst.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 429 | 2015-06-27T19:34:21.000Z | 2022-03-23T11:02:51.000Z | from trex_stl_lib.api import *
class STLS1(object):
def get_streams (self, direction = 0, **kwargs):
s1 = STLStream(packet = STLPktBuilder(pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/(10*'x')),
mode = STLTXSingleBurst(total_pkts = 27))
return [s... | 23.055556 | 129 | 0.614458 | 59 | 415 | 4.254237 | 0.830508 | 0.015936 | 0.023904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07837 | 0.231325 | 415 | 17 | 130 | 24.411765 | 0.708464 | 0.118072 | 0 | 0 | 0 | 0 | 0.047091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 |
c47484b20fa344cac5604c2d8012a4b69f840990 | 94 | py | Python | Level1/Lessons12969/minari - 12969.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level1/Lessons12969/minari - 12969.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level1/Lessons12969/minari - 12969.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | 1 | 2021-04-05T07:35:59.000Z | 2021-04-05T07:35:59.000Z | # 직사각형 별찍기
```python
n,m = map(int,input().split())
for i in range(m):
print("*"*n)
```
| 10.444444 | 30 | 0.521277 | 16 | 94 | 3.0625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202128 | 94 | 8 | 31 | 11.75 | 0.653333 | 0.085106 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c474e1c434aca544bd2f192dd2b86ca856dd44ce | 810 | py | Python | number.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | number.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | number.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | #!/usr/bin/python
var1 = 1
var2 = 10
print "Value of var1 is : ", var1
print "Value of var2 is : ", var2
del var1
#print "Value of var1 is : ", var1
print "Value of var2 is : ", var2
var_a = 100
var_b = 1000L
var_c = 1.125
var_d = 10 + 3j
print "==============================================================="
print... | 27 | 71 | 0.522222 | 124 | 810 | 3.25 | 0.233871 | 0.198511 | 0.238213 | 0.148883 | 0.436725 | 0.218362 | 0.218362 | 0.218362 | 0.218362 | 0.218362 | 0 | 0.041116 | 0.159259 | 810 | 29 | 72 | 27.931034 | 0.550661 | 0.060494 | 0 | 0.238095 | 0 | 0 | 0.570487 | 0.249012 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
67161f7d28dcd17d6f2494d0664d1ecd94349e30 | 956 | py | Python | weldr/stages/init.py | raytheonbbn/weldr | 88b0ad7104a305745490c33eb67afd6ee5871feb | [
"BSD-2-Clause"
] | 15 | 2020-04-15T21:19:02.000Z | 2021-12-20T22:41:37.000Z | weldr/stages/init.py | raytheonbbn/weldr | 88b0ad7104a305745490c33eb67afd6ee5871feb | [
"BSD-2-Clause"
] | 6 | 2020-06-23T19:56:03.000Z | 2021-07-31T13:22:59.000Z | weldr/stages/init.py | raytheonbbn/weldr | 88b0ad7104a305745490c33eb67afd6ee5871feb | [
"BSD-2-Clause"
] | 2 | 2021-03-14T04:44:40.000Z | 2021-06-24T05:40:36.000Z | # Copyright (c) 2020 Raytheon BBN Technologies, Inc. All Rights Reserved.
#
# This document does not contain technology or Technical Data controlled under either
# the U.S. International Traffic in Arms Regulations or the U.S. Export Administration
#
# Distribution A: Approved for Public Release, Distribution Unlimite... | 34.142857 | 97 | 0.687238 | 125 | 956 | 5.168 | 0.616 | 0.049536 | 0.01548 | 0.074303 | 0.148607 | 0.148607 | 0.148607 | 0.148607 | 0.148607 | 0 | 0 | 0.005263 | 0.205021 | 956 | 27 | 98 | 35.407407 | 0.844737 | 0.323222 | 0 | 0.117647 | 0 | 0 | 0.103125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.117647 | 0.529412 | 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 |
67180c7b0d16606aa0a38d0055966f13ae7fd508 | 28 | py | Python | kili/mutations/asset/fragments.py | marcenacp/kili-playground | d3a711d1908725d127cc99ceb504301482bf41d8 | [
"Apache-2.0"
] | null | null | null | kili/mutations/asset/fragments.py | marcenacp/kili-playground | d3a711d1908725d127cc99ceb504301482bf41d8 | [
"Apache-2.0"
] | null | null | null | kili/mutations/asset/fragments.py | marcenacp/kili-playground | d3a711d1908725d127cc99ceb504301482bf41d8 | [
"Apache-2.0"
] | null | null | null | ASSET_FRAGMENT = '''
id
'''
| 7 | 20 | 0.571429 | 3 | 28 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 28 | 3 | 21 | 9.333333 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
6726bf9a479708dd21827c7f29112cedb6990eab | 669 | bzl | Python | vulkan-memory-allocator/repository.bzl | dldt/third_party.bzl | 8c5431c3c48ad4c8761f0daee004d94d1f165eb2 | [
"MIT"
] | 1 | 2021-12-27T05:40:05.000Z | 2021-12-27T05:40:05.000Z | vulkan-memory-allocator/repository.bzl | tarcila/third_party.bzl | 8c5431c3c48ad4c8761f0daee004d94d1f165eb2 | [
"MIT"
] | null | null | null | vulkan-memory-allocator/repository.bzl | tarcila/third_party.bzl | 8c5431c3c48ad4c8761f0daee004d94d1f165eb2 | [
"MIT"
] | 1 | 2021-07-22T07:16:50.000Z | 2021-07-22T07:16:50.000Z | load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def vulkan_memory_allocator_repository():
maybe(
http_archive,
name = "vulkan-memory-allocator",
urls = [
"https://github.com/GPUOpen-LibrariesAndS... | 44.6 | 133 | 0.729447 | 58 | 669 | 8.206897 | 0.586207 | 0.07563 | 0.132353 | 0.079832 | 0.134454 | 0.134454 | 0.134454 | 0 | 0 | 0 | 0 | 0.187279 | 0.153961 | 669 | 14 | 134 | 47.785714 | 0.65371 | 0 | 0 | 0 | 0 | 0 | 0.635277 | 0.433483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0 | 0 | 0.076923 | 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 |
67387e859282794c206a3d510564217634a01ada | 345 | py | Python | nest_py/core/db/nest_entry.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 2 | 2020-02-12T22:20:51.000Z | 2020-07-31T03:19:51.000Z | nest_py/core/db/nest_entry.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 1 | 2021-06-02T00:29:02.000Z | 2021-06-02T00:29:02.000Z | nest_py/core/db/nest_entry.py | KnowEnG/platform | 7356fabf5e2db4171ef1f910514436b69ecaa701 | [
"MIT"
] | 1 | 2018-01-03T22:56:27.000Z | 2018-01-03T22:56:27.000Z | from sqlalchemy import Column, Integer, String
from nest_py.core.data_types.nest_id import NestId
class NestEntryMixin(object):
id = Column(Integer, primary_key=True)
owner_id = Column(Integer)
def set_nest_id(self, nest_id):
self.id = nest_id.get_value()
def get_nest_id(self):
... | 20.294118 | 50 | 0.701449 | 51 | 345 | 4.509804 | 0.509804 | 0.130435 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208696 | 345 | 16 | 51 | 21.5625 | 0.842491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
676a6fac378e1214a39d952f42e668d41a516912 | 532 | py | Python | main/cloudfoundry_client/v3/service_instances.py | sap-contributions/cf-python-client | f0677802e2f8bdba0fc2ee2285f8427aac19dad9 | [
"Apache-2.0"
] | null | null | null | main/cloudfoundry_client/v3/service_instances.py | sap-contributions/cf-python-client | f0677802e2f8bdba0fc2ee2285f8427aac19dad9 | [
"Apache-2.0"
] | null | null | null | main/cloudfoundry_client/v3/service_instances.py | sap-contributions/cf-python-client | f0677802e2f8bdba0fc2ee2285f8427aac19dad9 | [
"Apache-2.0"
] | null | null | null | from typing import TYPE_CHECKING
from cloudfoundry_client.v3.entities import EntityManager
if TYPE_CHECKING:
from cloudfoundry_client.client import CloudFoundryClient
class ServiceInstanceManager(EntityManager):
def __init__(self, target_endpoint: str, client: "CloudFoundryClient"):
super(ServiceIns... | 35.466667 | 102 | 0.787594 | 56 | 532 | 7.196429 | 0.5 | 0.059553 | 0.079404 | 0.138958 | 0.168734 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.131579 | 532 | 14 | 103 | 38 | 0.867965 | 0 | 0 | 0 | 0 | 0 | 0.073308 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
676e179a69163d02a9250af2d7947529edd58239 | 240 | py | Python | cultureplatform/forum/forms.py | michaelroudnitski/cultureplatform | 38a68faa541cd1b043ec0c0f98323b2fb7623d14 | [
"Apache-2.0"
] | null | null | null | cultureplatform/forum/forms.py | michaelroudnitski/cultureplatform | 38a68faa541cd1b043ec0c0f98323b2fb7623d14 | [
"Apache-2.0"
] | null | null | null | cultureplatform/forum/forms.py | michaelroudnitski/cultureplatform | 38a68faa541cd1b043ec0c0f98323b2fb7623d14 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.forms import ModelForm
from .models import Forum
class NewForumForm(ModelForm):
""" inherits the Forum model and casts as a form """
class Meta:
model = Forum
fields = ['title',] | 26.666667 | 56 | 0.683333 | 31 | 240 | 5.290323 | 0.645161 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2375 | 240 | 9 | 57 | 26.666667 | 0.896175 | 0.183333 | 0 | 0 | 0 | 0 | 0.026455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 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 |
6770bbe2e5e7e9cb0ebf7c10730b205abcf5a791 | 1,365 | py | Python | lessons/day_02/python/resolvers.py | jiaguilera/a-walk-in-graphql | ed4f44b4f4bf283cc7342141eb8127a2745ea2d7 | [
"MIT"
] | 16 | 2020-06-16T17:12:16.000Z | 2021-12-03T14:19:38.000Z | lessons/day_02/python/resolvers.py | martinarnesi/a-walk-in-graphql | 56cd949cbeb4c4322882bd15398a867b16900ccd | [
"MIT"
] | 8 | 2020-06-11T21:53:03.000Z | 2020-07-26T01:47:10.000Z | lessons/day_02/python/resolvers.py | martinarnesi/a-walk-in-graphql | 56cd949cbeb4c4322882bd15398a867b16900ccd | [
"MIT"
] | 9 | 2020-06-15T13:09:57.000Z | 2022-03-06T14:49:17.000Z | from ariadne import QueryType, ObjectType
from random import randint
from models import Skill, Person
from data import session
from datetime import datetime
query = QueryType()
# Type definition
skill = ObjectType("Skill")
person = ObjectType("Person")
# Top level resolvers
@query.field("randomSkill")
def resolve_... | 21.328125 | 88 | 0.732601 | 186 | 1,365 | 5.247312 | 0.274194 | 0.092213 | 0.066598 | 0.065574 | 0.143443 | 0.10041 | 0.10041 | 0.10041 | 0.10041 | 0.10041 | 0 | 0.001701 | 0.138462 | 1,365 | 63 | 89 | 21.666667 | 0.828231 | 0.041758 | 0 | 0.051282 | 0 | 0 | 0.078988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.128205 | 0.179487 | 0.589744 | 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 |
6772cbc34ca2aec1662749ed5914bb86d92c2aa9 | 145 | py | Python | python/problem2.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | 1 | 2016-05-14T15:58:03.000Z | 2016-05-14T15:58:03.000Z | python/problem2.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | null | null | null | python/problem2.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | null | null | null | sum = 0
num1, num2, temp = 1, 2, 1
while (num2 <= 4000000):
if(num2%2==0):
sum += num2
temp = num1
num1 = num2
num2 += temp
print(sum) | 12.083333 | 26 | 0.565517 | 25 | 145 | 3.28 | 0.44 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205607 | 0.262069 | 145 | 12 | 27 | 12.083333 | 0.560748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
67732ac624a4bf96154055a9f2068be106a4a12e | 520 | py | Python | src/interpreter/resources/resources.py | DontStopMeNow/Fit0_n9n9_back | c543fdd14e281d4fac16312aa2a0565525b966bd | [
"MIT"
] | null | null | null | src/interpreter/resources/resources.py | DontStopMeNow/Fit0_n9n9_back | c543fdd14e281d4fac16312aa2a0565525b966bd | [
"MIT"
] | null | null | null | src/interpreter/resources/resources.py | DontStopMeNow/Fit0_n9n9_back | c543fdd14e281d4fac16312aa2a0565525b966bd | [
"MIT"
] | null | null | null | from .stack import Stack
from .memory import Memory
from .output import Output
class Resources:
def __init__(self, stack: Stack,
memory: Memory,
output: Output) -> None:
self._stack = stack
self._memory = memory
self._output = output
@property
def... | 20.8 | 41 | 0.594231 | 57 | 520 | 5.245614 | 0.22807 | 0.120401 | 0.093645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325 | 520 | 24 | 42 | 21.666667 | 0.851852 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.157895 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
678c1032185eefd7ca58e9df3e222a54f83b1fbd | 23 | py | Python | jet_sidebar/templatetags/__init__.py | raifran1/jet-sidebar | ab978a7dbd1bf4eb676fc066a82a0b8ab96d2e54 | [
"MIT"
] | 2 | 2021-07-02T15:10:05.000Z | 2021-07-14T17:34:13.000Z | jet_sidebar/templatetags/__init__.py | raifran1/jet-sidebar | ab978a7dbd1bf4eb676fc066a82a0b8ab96d2e54 | [
"MIT"
] | null | null | null | jet_sidebar/templatetags/__init__.py | raifran1/jet-sidebar | ab978a7dbd1bf4eb676fc066a82a0b8ab96d2e54 | [
"MIT"
] | null | null | null | __author__ = 'raif21x'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.130435 | 23 | 1 | 23 | 23 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 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 |
67994b09c689cd596c979e48e80cb5834c730a45 | 173 | py | Python | docs/examples_src/fields/custom_key_name.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 486 | 2020-10-19T05:33:53.000Z | 2022-03-30T12:54:57.000Z | docs/examples_src/fields/custom_key_name.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 183 | 2020-10-19T18:15:25.000Z | 2022-03-31T04:59:21.000Z | docs/examples_src/fields/custom_key_name.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 53 | 2020-10-19T09:35:01.000Z | 2022-03-31T20:39:51.000Z | from odmantic import AIOEngine, Field, Model
class Player(Model):
name: str = Field(key_name="username")
engine = AIOEngine()
await engine.save(Player(name="Jack"))
| 17.3 | 44 | 0.722543 | 23 | 173 | 5.391304 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144509 | 173 | 9 | 45 | 19.222222 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
67c1c2ccb5bebba6104691f42a69539493cc9313 | 235 | py | Python | NeoTrellis_M4_Sound_Board/color_names.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 665 | 2017-09-27T21:20:14.000Z | 2022-03-31T09:09:25.000Z | NeoTrellis_M4_Sound_Board/color_names.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 641 | 2017-10-03T19:46:37.000Z | 2022-03-30T18:28:46.000Z | NeoTrellis_M4_Sound_Board/color_names.py | gamblor21/Adafruit_Learning_System_Guides | f5dab4a758bc82d0bfc3c299683fe89dc093912a | [
"MIT"
] | 734 | 2017-10-02T22:47:38.000Z | 2022-03-30T14:03:51.000Z | RED = 0xFF0000
MAROON = 0x800000
ORANGE = 0xFF8000
YELLOW = 0xFFFF00
OLIVE = 0x808000
GREEN = 0x008000
AQUA = 0x00FFFF
TEAL = 0x008080
BLUE = 0x0000FF
NAVY = 0x000080
PURPLE = 0x800080
PINK = 0xFF0080
WHITE = 0xFFFFFF
BLACK = 0x000000
| 15.666667 | 17 | 0.761702 | 28 | 235 | 6.392857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.393782 | 0.178723 | 235 | 14 | 18 | 16.785714 | 0.533679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.476596 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
67debee59e3a74e60311e4d97a057a7f4a74c4ec | 116 | py | Python | oscar/lib/python2.7/site-packages/faker/__init__.py | bhav11esh/Oscar-Bookshelf | b48f088e2ed908b3603f2ecc63d602f81392eac4 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/faker/__init__.py | bhav11esh/Oscar-Bookshelf | b48f088e2ed908b3603f2ecc63d602f81392eac4 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/faker/__init__.py | bhav11esh/Oscar-Bookshelf | b48f088e2ed908b3603f2ecc63d602f81392eac4 | [
"BSD-3-Clause"
] | 1 | 2019-11-23T08:32:07.000Z | 2019-11-23T08:32:07.000Z | VERSION = '0.7.18'
from faker.generator import Generator
from faker.factory import Factory
Faker = Factory.create
| 16.571429 | 37 | 0.784483 | 17 | 116 | 5.352941 | 0.588235 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 116 | 6 | 38 | 19.333333 | 0.87 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 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 |
67e6ccce5f1ce4484c08154456a1168bbe4cbee7 | 40 | py | Python | Week1_PyThonBasic/Loop/Exercise1.py | minhvip2001/pythonproject | 0ad9e70203fae2cd038872a8d1a71c0bc9416cf3 | [
"MIT"
] | null | null | null | Week1_PyThonBasic/Loop/Exercise1.py | minhvip2001/pythonproject | 0ad9e70203fae2cd038872a8d1a71c0bc9416cf3 | [
"MIT"
] | null | null | null | Week1_PyThonBasic/Loop/Exercise1.py | minhvip2001/pythonproject | 0ad9e70203fae2cd038872a8d1a71c0bc9416cf3 | [
"MIT"
] | null | null | null | i = 0
while i <= 10:
print(i)
i += 1 | 10 | 14 | 0.45 | 9 | 40 | 2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.35 | 40 | 4 | 15 | 10 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
db2722bf41b931e8f97a983fa2bf73393cc981d8 | 131 | py | Python | Smartsort/setupcam.py | chungchunwang/SmartSort | c284b34a835a6d08aa91229dd51babce808f9bef | [
"MIT"
] | 4 | 2021-01-03T17:42:47.000Z | 2021-02-12T18:14:32.000Z | Smartsort/setupcam.py | chungchunwang/Smartsort | c284b34a835a6d08aa91229dd51babce808f9bef | [
"MIT"
] | null | null | null | Smartsort/setupcam.py | chungchunwang/Smartsort | c284b34a835a6d08aa91229dd51babce808f9bef | [
"MIT"
] | null | null | null | from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.start_preview();
sleep(100);
camera.stop_preview(); | 21.833333 | 29 | 0.793893 | 18 | 131 | 5.666667 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.099237 | 131 | 6 | 30 | 21.833333 | 0.838983 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e1f6df28c52077eb54bc8a7fc888d34f1eefc05d | 2,450 | py | Python | pytorch/run_split.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | pytorch/run_split.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | pytorch/run_split.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
import random
import utils.vcl as vcl
import utils.coreset as coreset
from utils.DataGenerator import SplitMnistGenerator
from utils.seed import seed_everything
seed_everything()
hidden_size = [256, 256]
batch_size = None
no_epochs = 120
single_head = False
run_coreset_only = False
N_... | 34.507042 | 90 | 0.750204 | 386 | 2,450 | 4.46114 | 0.160622 | 0.083624 | 0.069686 | 0.052265 | 0.779907 | 0.75029 | 0.710801 | 0.673635 | 0.641115 | 0.624855 | 0 | 0.010516 | 0.146122 | 2,450 | 71 | 90 | 34.507042 | 0.81262 | 0.056735 | 0 | 0.444444 | 0 | 0 | 0.128906 | 0.128906 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12963 | 0 | 0.12963 | 0.074074 | 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 |
c00e8f74c9246a7f5d8971208d8696a0cabcdbd7 | 1,185 | py | Python | lib/analysis/component.py | Sebastiaan-Alvarez-Rodriguez/Meizodon | c66e13cdcb3b9b24273c6447a267c64a6cdd8f11 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T11:34:52.000Z | 2020-02-26T05:22:15.000Z | lib/analysis/component.py | Sebastiaan-Alvarez-Rodriguez/Meizodon | c66e13cdcb3b9b24273c6447a267c64a6cdd8f11 | [
"BSD-3-Clause"
] | null | null | null | lib/analysis/component.py | Sebastiaan-Alvarez-Rodriguez/Meizodon | c66e13cdcb3b9b24273c6447a267c64a6cdd8f11 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import lib.independence.fs as fs
import lib.settings as s
class AnalysisComponent(object):
'''Object to facilitate analysis runs'''
# Constructor
# runresultpath is path where results of run are, which should be analysed.
# analysisresultpath is path where result of analysis sho... | 40.862069 | 91 | 0.755274 | 135 | 1,185 | 6.518519 | 0.444444 | 0.0625 | 0.057955 | 0.047727 | 0.104545 | 0.104545 | 0.104545 | 0 | 0 | 0 | 0 | 0 | 0.177215 | 1,185 | 29 | 92 | 40.862069 | 0.902564 | 0.349367 | 0 | 0 | 0 | 0 | 0.013175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c027bb51f49c394dd976fa836188d5296d8fa961 | 127 | py | Python | uplink_httpx/__init__.py | chassing/uplink-httpx | 295f2a1728eff2c27aeffbba277eb0fba46b1f8e | [
"MIT"
] | 9 | 2020-01-09T16:49:21.000Z | 2021-04-23T13:59:52.000Z | uplink_httpx/__init__.py | chassing/uplink-httpx | 295f2a1728eff2c27aeffbba277eb0fba46b1f8e | [
"MIT"
] | 1 | 2020-10-01T07:36:36.000Z | 2020-10-01T07:36:36.000Z | uplink_httpx/__init__.py | chassing/uplink-httpx | 295f2a1728eff2c27aeffbba277eb0fba46b1f8e | [
"MIT"
] | 2 | 2020-03-26T14:12:35.000Z | 2021-04-23T13:59:53.000Z | from .client import HttpxClient
from .consumer import ContextConsumer
__all__ = [
"HttpxClient",
"ContextConsumer",
]
| 15.875 | 37 | 0.732283 | 11 | 127 | 8.090909 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181102 | 127 | 7 | 38 | 18.142857 | 0.855769 | 0 | 0 | 0 | 0 | 0 | 0.204724 | 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 |
c04117a72bdcab9ce955415b348fd33f76fccca0 | 1,788 | py | Python | spider/models.py | mannuan/dspider | bf1bbad375b3b61f800cb25d1c839659a66f3e12 | [
"Apache-2.0"
] | 15 | 2018-05-12T17:15:59.000Z | 2020-09-06T04:32:47.000Z | spider/models.py | mannuan/dspider | bf1bbad375b3b61f800cb25d1c839659a66f3e12 | [
"Apache-2.0"
] | null | null | null | spider/models.py | mannuan/dspider | bf1bbad375b3b61f800cb25d1c839659a66f3e12 | [
"Apache-2.0"
] | 2 | 2018-06-29T00:44:52.000Z | 2020-07-07T01:58:03.000Z | from django.db import models
# Create your models here.
from django.contrib.auth.models import User
import django.utils.timezone as timezone
class DataWebsite(models.Model):
# name = models.CharField('网站来源', max_length=100, primary_key=True, editable=False)
name = models.CharField('网站来源', max_length=100, pri... | 36.489796 | 89 | 0.717562 | 234 | 1,788 | 5.213675 | 0.273504 | 0.065574 | 0.068852 | 0.088525 | 0.518852 | 0.435246 | 0.435246 | 0.435246 | 0.435246 | 0.435246 | 0 | 0.011364 | 0.163311 | 1,788 | 48 | 90 | 37.25 | 0.804144 | 0.105145 | 0 | 0.457143 | 0 | 0 | 0.050125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.085714 | 0.228571 | 0.971429 | 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 |
fbe6be2a85dab1a0ccfe1f5564a051782df5eecb | 2,539 | py | Python | deep_verify/src/specifications/target_objective_base.py | LaudateCorpus1/deep-verify | ad74b938b28a6f2fde2273b07f5d305767e7833a | [
"Apache-2.0"
] | 12 | 2019-11-11T11:30:32.000Z | 2022-01-05T04:48:25.000Z | deep_verify/src/specifications/target_objective_base.py | deepmind/deep-verify | ad74b938b28a6f2fde2273b07f5d305767e7833a | [
"Apache-2.0"
] | 4 | 2021-03-16T17:45:15.000Z | 2021-05-11T18:27:58.000Z | deep_verify/src/specifications/target_objective_base.py | LaudateCorpus1/deep-verify | ad74b938b28a6f2fde2273b07f5d305767e7833a | [
"Apache-2.0"
] | 6 | 2019-11-11T11:31:08.000Z | 2021-10-05T16:11:47.000Z | # coding=utf-8
# Copyright 2019 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 34.310811 | 79 | 0.732178 | 358 | 2,539 | 5.067039 | 0.418994 | 0.035281 | 0.057332 | 0.044101 | 0.148842 | 0.097023 | 0.097023 | 0.079383 | 0 | 0 | 0 | 0.007433 | 0.205199 | 2,539 | 73 | 80 | 34.780822 | 0.891477 | 0.768019 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.384615 | 0 | 0.692308 | 0.076923 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
221ad40b3910de5808cc3859654ae6032f4d20bd | 284 | py | Python | src/mjotool/mjs/__init__.py | trigger-segfault/majiro-py | e2e237cc726da1ebaf1c9a5ce409c856c8dce17f | [
"MIT"
] | 2 | 2021-04-21T11:30:45.000Z | 2022-02-15T05:26:47.000Z | src/mjotool/mjs/__init__.py | trigger-segfault/majiro-py | e2e237cc726da1ebaf1c9a5ce409c856c8dce17f | [
"MIT"
] | 3 | 2021-10-15T00:10:49.000Z | 2021-12-27T10:30:13.000Z | src/mjotool/mjs/__init__.py | trigger-segfault/majiro-py | e2e237cc726da1ebaf1c9a5ce409c856c8dce17f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
"""
"""
__version__ = '0.1.0'
__date__ = '2021-05-04'
__author__ = 'Robert Jordan'
#######################################################################################
from .identifiers import *
from .mjsreader import MjsReader
| 20.285714 | 87 | 0.447183 | 25 | 284 | 4.6 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052 | 0.119718 | 284 | 13 | 88 | 21.846154 | 0.408 | 0.147887 | 0 | 0 | 0 | 0 | 0.191781 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
221d7b77b3b571aa84b8142024c2b8bdc4f96171 | 831 | py | Python | Dataset/Leetcode/test/12/283.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/12/283.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/12/283.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, num):
"""
:type num: int
:rtype: str
"""
grid = {
1: ('I', 'IV', 'V', 'IX'),
2: ('X', 'XL', 'L', 'XC'),
3: ('C', 'CD', 'D', 'CM'),
4: ('M', '', '', '')
}
s = ''
i ... | 20.775 | 82 | 0.273165 | 105 | 831 | 2.161905 | 0.428571 | 0.110132 | 0.039648 | 0.079295 | 0.088106 | 0.088106 | 0.088106 | 0 | 0 | 0 | 0 | 0.080605 | 0.522262 | 831 | 39 | 83 | 21.307692 | 0.491184 | 0 | 0 | 0.083333 | 0 | 0 | 0.051813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
222dd16b5666d18352a55c562ec0b5545c459342 | 29 | py | Python | server/handlers/__init__.py | kserhii/async_server | ef49e92ec89e4c91c06e19e7f5f900875eb9ec2e | [
"MIT"
] | 1 | 2017-11-26T21:31:52.000Z | 2017-11-26T21:31:52.000Z | server/handlers/__init__.py | kserhii/async_server | ef49e92ec89e4c91c06e19e7f5f900875eb9ec2e | [
"MIT"
] | null | null | null | server/handlers/__init__.py | kserhii/async_server | ef49e92ec89e4c91c06e19e7f5f900875eb9ec2e | [
"MIT"
] | null | null | null | __author__ = 'Serhii Kostel'
| 14.5 | 28 | 0.758621 | 3 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2232e31ab93954862b5986533bc531b8261b3d9b | 889 | py | Python | kat/lib/file.py | TOT0RoKR/kat | 5fafe688593a60700f1067ca51ec9d5f148a396e | [
"MIT"
] | 3 | 2019-10-27T08:26:15.000Z | 2019-11-26T12:23:38.000Z | kat/lib/file.py | tot0rokr/kat | 5fafe688593a60700f1067ca51ec9d5f148a396e | [
"MIT"
] | null | null | null | kat/lib/file.py | tot0rokr/kat | 5fafe688593a60700f1067ca51ec9d5f148a396e | [
"MIT"
] | 1 | 2020-01-25T00:14:51.000Z | 2020-01-25T00:14:51.000Z | import os.path
import time
class File:
def __init__(self, file, rootdir=None):
self.path = file # str()
self.information = "None"
self.scope = None
self.type = None # "std": standard library
# "usr": user definition
se... | 28.677419 | 66 | 0.579303 | 105 | 889 | 4.619048 | 0.390476 | 0.065979 | 0.092784 | 0.082474 | 0.230928 | 0.14433 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0.326209 | 889 | 30 | 67 | 29.633333 | 0.809683 | 0.065242 | 0 | 0.086957 | 0 | 0 | 0.004843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0.173913 | 0.608696 | 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 |
2245a45af36236152752816281cc0420ed45a873 | 665 | py | Python | src/models/trees/base_tree.py | Ajordat/Algorithms | 377cb7c4884c727211b0bf96f31f655fc0a91474 | [
"MIT"
] | null | null | null | src/models/trees/base_tree.py | Ajordat/Algorithms | 377cb7c4884c727211b0bf96f31f655fc0a91474 | [
"MIT"
] | null | null | null | src/models/trees/base_tree.py | Ajordat/Algorithms | 377cb7c4884c727211b0bf96f31f655fc0a91474 | [
"MIT"
] | null | null | null | from abc import ABC
from abc import abstractmethod
from typing import Optional
class BaseTree(ABC):
def __init__(self, root=None):
self.root_node: Optional[BaseNode] = root
@abstractmethod
def add_value(self, value):
pass
@abstractmethod
def search(self, value):
pass
cl... | 19.558824 | 49 | 0.642105 | 76 | 665 | 5.421053 | 0.342105 | 0.131068 | 0.063107 | 0.067961 | 0.296117 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002045 | 0.264662 | 665 | 33 | 50 | 20.151515 | 0.840491 | 0 | 0 | 0.416667 | 0 | 0 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.083333 | 0.125 | 0.041667 | 0.541667 | 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 |
22480f93f5425ccdb92de0f228e71859be1bb466 | 433 | py | Python | home/views.py | SebastinSanty/cte | 3d1a9758d96a7cfce59f5007bed55c34e56600ac | [
"CNRI-Python"
] | null | null | null | home/views.py | SebastinSanty/cte | 3d1a9758d96a7cfce59f5007bed55c34e56600ac | [
"CNRI-Python"
] | null | null | null | home/views.py | SebastinSanty/cte | 3d1a9758d96a7cfce59f5007bed55c34e56600ac | [
"CNRI-Python"
] | null | null | null | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from .models import *
# Create your views here.
def home(request):
return render(request,"home.html")
@login_required
def dashboard(request):
return render(request,"dashboard.html")
@login_required
def profile(request):
... | 18.826087 | 57 | 0.752887 | 58 | 433 | 5.568966 | 0.465517 | 0.120743 | 0.176471 | 0.160991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12933 | 433 | 22 | 58 | 19.681818 | 0.856764 | 0.053118 | 0 | 0.133333 | 0 | 0 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.133333 | 0.6 | 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 |
2279457282147d6992639b9241fc6b23c527d298 | 204 | py | Python | ams/storage/urls.py | chris0203/pmes | 97df332b859803e9953f983dda3ca47d4bc35758 | [
"Apache-2.0"
] | null | null | null | ams/storage/urls.py | chris0203/pmes | 97df332b859803e9953f983dda3ca47d4bc35758 | [
"Apache-2.0"
] | null | null | null | ams/storage/urls.py | chris0203/pmes | 97df332b859803e9953f983dda3ca47d4bc35758 | [
"Apache-2.0"
] | null | null | null | import tornado.web
import settings
from ams.storage import views
storage_router = tornado.web.Application([
(settings.ENDPOINTS["storage"], views.StorageHandler)
], debug=settings.DEBUG) | 29.142857 | 62 | 0.740196 | 23 | 204 | 6.521739 | 0.565217 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 204 | 7 | 63 | 29.142857 | 0.872093 | 0 | 0 | 0 | 0 | 0 | 0.034146 | 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 |
97da30fcaf9a0700bc834d7a9fd4702f98d92fd0 | 128 | py | Python | python/screenshot.py | chiragSp/CodesByFreak | b9f10290e543282beb10272b776dca3ad0de3b51 | [
"MIT"
] | null | null | null | python/screenshot.py | chiragSp/CodesByFreak | b9f10290e543282beb10272b776dca3ad0de3b51 | [
"MIT"
] | null | null | null | python/screenshot.py | chiragSp/CodesByFreak | b9f10290e543282beb10272b776dca3ad0de3b51 | [
"MIT"
] | null | null | null | import pyautogui
im1 = pyautogui.screenshot(region=(900,371,600,425))
im1.save(r"D:\\Code by Freak\\python\\savedimage.png") | 32 | 54 | 0.734375 | 20 | 128 | 4.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119658 | 0.085938 | 128 | 4 | 54 | 32 | 0.683761 | 0 | 0 | 0 | 0 | 0 | 0.325397 | 0.230159 | 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 |
97e011ae5eafa8c75b7e9b787c0af20c3b68badf | 195 | py | Python | exception.py | wutianlong/PythonStudy | 8d351c0d2186a849e3c8a8ac65194a0444045964 | [
"MIT"
] | null | null | null | exception.py | wutianlong/PythonStudy | 8d351c0d2186a849e3c8a8ac65194a0444045964 | [
"MIT"
] | null | null | null | exception.py | wutianlong/PythonStudy | 8d351c0d2186a849e3c8a8ac65194a0444045964 | [
"MIT"
] | null | null | null | # python2.7 exception.py
re = iter(range(10))
try:
for i in range(100):
print re.next()
except StopIteration:
print 'except StopIteration'
finally:
print 'finally process'
| 15 | 32 | 0.661538 | 26 | 195 | 4.961538 | 0.730769 | 0.294574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046667 | 0.230769 | 195 | 12 | 33 | 16.25 | 0.813333 | 0.112821 | 0 | 0 | 0 | 0 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.375 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97e41502c13ea49cba66778e76bc6cc3b4f6fd9f | 635 | py | Python | modules/utils.py | adrienGzc/neural-network-python | f4f15e6ad9c9b1d89f48b3e7acf764f9f728f40f | [
"MIT"
] | null | null | null | modules/utils.py | adrienGzc/neural-network-python | f4f15e6ad9c9b1d89f48b3e7acf764f9f728f40f | [
"MIT"
] | null | null | null | modules/utils.py | adrienGzc/neural-network-python | f4f15e6ad9c9b1d89f48b3e7acf764f9f728f40f | [
"MIT"
] | null | null | null | import numpy as np
# Activation
def sigmoid(x):
return 1.0 / (1.0 + np.exp(-x))
def sigmoid_derivatif(x):
return sigmoid(x) * (1.0 - sigmoid(x))
def tanh(x):
return np.tanh(x)
def tanh_derivatif(x):
return 1.0 - np.square(np.tanh(x))
def relu(x):
return x * (x > 0)
def relu_derivatif(x):
r... | 19.242424 | 59 | 0.574803 | 104 | 635 | 3.432692 | 0.211538 | 0.117647 | 0.067227 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032854 | 0.233071 | 635 | 33 | 60 | 19.242424 | 0.700205 | 0.247244 | 0 | 0 | 0 | 0 | 0.031847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0.333333 | 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 |
97f42c047a17b7b41fb21b3ce4c365f0d9a6c3e8 | 189 | py | Python | fun/fnotification/urls.py | larryw3i/osp | d9526a179876053a6b93e5a110d2de730376f511 | [
"MIT"
] | 1 | 2022-01-01T11:14:58.000Z | 2022-01-01T11:14:58.000Z | fun/fnotification/urls.py | larryw3i/osp | d9526a179876053a6b93e5a110d2de730376f511 | [
"MIT"
] | null | null | null | fun/fnotification/urls.py | larryw3i/osp | d9526a179876053a6b93e5a110d2de730376f511 | [
"MIT"
] | null | null | null |
from django.urls import path
from . import views
from .apps import app_name
app_name = app_name
urlpatterns = [
path('list', views.FnotificationListView.as_view(), name='list'),
]
| 14.538462 | 69 | 0.724868 | 26 | 189 | 5.115385 | 0.538462 | 0.157895 | 0.150376 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164021 | 189 | 12 | 70 | 15.75 | 0.841772 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3f44fc72e5ac19145ca434b16be340dd20257cb6 | 476 | py | Python | testcase_maker/executor.py | Tawishi/testcase-maker | befa990c83aa1c6e710d539d252fd8472bc38b0e | [
"MIT"
] | null | null | null | testcase_maker/executor.py | Tawishi/testcase-maker | befa990c83aa1c6e710d539d252fd8472bc38b0e | [
"MIT"
] | null | null | null | testcase_maker/executor.py | Tawishi/testcase-maker | befa990c83aa1c6e710d539d252fd8472bc38b0e | [
"MIT"
] | null | null | null | from abc import ABC
from typing import TYPE_CHECKING, Union
if TYPE_CHECKING:
from pathlib import Path
class Executor(ABC):
@property
def file_extension(self) -> str:
raise NotImplementedError
def compile(self, tempdir: Union["Path", str], source_filename: Union["Path", str]) -> Union["Path"... | 26.444444 | 110 | 0.693277 | 58 | 476 | 5.603448 | 0.482759 | 0.110769 | 0.147692 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203782 | 476 | 17 | 111 | 28 | 0.85752 | 0 | 0 | 0.25 | 0 | 0 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.583333 | 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 |
3f4702034c32a7d88e530e9f1f3111625f75e3ac | 2,968 | py | Python | tests/test_parser.py | admariner/wikipedia_ql | 5674b02a1ddf3898411a0930eb9c7b94a9274b03 | [
"MIT"
] | null | null | null | tests/test_parser.py | admariner/wikipedia_ql | 5674b02a1ddf3898411a0930eb9c7b94a9274b03 | [
"MIT"
] | 2 | 2021-10-13T23:37:00.000Z | 2021-11-30T23:31:16.000Z | tests/test_parser.py | admariner/wikipedia_ql | 5674b02a1ddf3898411a0930eb9c7b94a9274b03 | [
"MIT"
] | null | null | null | import pytest
from wikipedia_ql.selectors import text, text_group, sentence, section, css, alt, page, attr, table_data
from wikipedia_ql.parser import Parser
@pytest.fixture
def parser():
return Parser()
def test_parse_selectors_base(parser):
assert parser.parse_selector('text:matches("foo")') == text(functi... | 53 | 120 | 0.672507 | 372 | 2,968 | 5.225806 | 0.16129 | 0.135802 | 0.192387 | 0.257202 | 0.58642 | 0.515432 | 0.407407 | 0.239198 | 0.216049 | 0.187757 | 0 | 0.00695 | 0.127358 | 2,968 | 55 | 121 | 53.963636 | 0.743629 | 0 | 0 | 0.047619 | 0 | 0.02381 | 0.298181 | 0.067049 | 0 | 0 | 0 | 0 | 0.52381 | 1 | 0.142857 | false | 0 | 0.071429 | 0.02381 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3f475efcf0bf57b6e749b7b3bcfb2995c89c9416 | 733 | py | Python | com/backup/AbsBacker.py | hao707822882/Bichon | 54092e69c9316ee592ee392dc85e1f7fd0c47b68 | [
"Apache-2.0"
] | null | null | null | com/backup/AbsBacker.py | hao707822882/Bichon | 54092e69c9316ee592ee392dc85e1f7fd0c47b68 | [
"Apache-2.0"
] | null | null | null | com/backup/AbsBacker.py | hao707822882/Bichon | 54092e69c9316ee592ee392dc85e1f7fd0c47b68 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# --coding:utf-8--
# coding: utf-8
# ━━━━━━神兽出没━━━━━━
# ┏┓ ┏┓
# ┏┛┻━━━┛┻┓
# ┃ ┃
# ┃ ━ ┃
# ┃ ┳┛ ┗┳ ┃
# ┃ ┃
# ┃ ┻ ┃
# ┃ ┃
# ┗━┓ ┏━┛
# ┃ ┃神兽保佑, 永无BUG!
# ┃ ┃Code is far away from bug with the animal protecting
# ┃ ┗━━━┓
# ... | 17.452381 | 64 | 0.407913 | 101 | 733 | 3.811881 | 0.673267 | 0.051948 | 0.031169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051836 | 0.368349 | 733 | 41 | 65 | 17.878049 | 0.568035 | 0.631651 | 0 | 0.222222 | 0 | 0 | 0.053279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3f6119662e341262b16006b1a5446caf200f1932 | 300 | py | Python | tinyprompt/colors.py | sirosen/tinyprompt | 21fdee2db0ba8dc818bc19da1414ba32384775f5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tinyprompt/colors.py | sirosen/tinyprompt | 21fdee2db0ba8dc818bc19da1414ba32384775f5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tinyprompt/colors.py | sirosen/tinyprompt | 21fdee2db0ba8dc818bc19da1414ba32384775f5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | RED = "0;31"
GREEN = "0;32"
YELLOW = "0;33"
BLUE = "0;34"
GRAY = "0;37"
def _ansicolorize(text, color_code):
return "\033[{}m{}\033[0m".format(color_code, text)
def color_print(text, color_code):
if color_code:
print(_ansicolorize(text, color_code))
else:
print(text)
| 17.647059 | 55 | 0.623333 | 46 | 300 | 3.891304 | 0.521739 | 0.251397 | 0.217877 | 0.27933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092437 | 0.206667 | 300 | 16 | 56 | 18.75 | 0.659664 | 0 | 0 | 0 | 0 | 0 | 0.123333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.25 | 0.25 | 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 |
3f6290d48f6ea18c206106fad73281c1fdf135ff | 210 | py | Python | flask_unchained/_code_templates/project/app/__init__.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | flask_unchained/_code_templates/project/app/__init__.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | flask_unchained/_code_templates/project/app/__init__.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | from flask_unchained import AppBundle, FlaskUnchained
class App(AppBundle):
@classmethod
def after_init_app(cls, app: FlaskUnchained):
app.jinja_env.add_extension('jinja2_time.TimeExtension')
| 26.25 | 64 | 0.771429 | 25 | 210 | 6.24 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.147619 | 210 | 7 | 65 | 30 | 0.865922 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0.119048 | 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 |
58aa350261cc482c1b4a7d54b4eb4d3aaeae18c0 | 101 | py | Python | modules/config.py | SatelliteApplicationsCatapult/Orbitool | c0e6bbe0a55de28f6658b926d51168aa08920536 | [
"Apache-2.0"
] | 2 | 2018-03-19T22:19:18.000Z | 2018-05-15T05:05:09.000Z | modules/config.py | SatelliteApplicationsCatapult/Orbitool | c0e6bbe0a55de28f6658b926d51168aa08920536 | [
"Apache-2.0"
] | 6 | 2018-03-16T09:37:22.000Z | 2018-03-16T09:39:04.000Z | modules/config.py | SatelliteApplicationsCatapult/Orbitool | c0e6bbe0a55de28f6658b926d51168aa08920536 | [
"Apache-2.0"
] | null | null | null | pathtopropadir = '/home/www-data/' #put it in a folder named propa and call the executable propaexec
| 50.5 | 100 | 0.772277 | 16 | 101 | 4.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 1 | 101 | 101 | 0.906977 | 0.633663 | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
58dda47c51eb451b0bbe2708995e32fc44e98b16 | 1,703 | py | Python | smok/extras/macros_database/pickling.py | smok-serwis/smok-client | a97b3dac454569f55a8a28a1cac44ae04e3e9cde | [
"MIT"
] | null | null | null | smok/extras/macros_database/pickling.py | smok-serwis/smok-client | a97b3dac454569f55a8a28a1cac44ae04e3e9cde | [
"MIT"
] | 1 | 2021-02-03T14:58:35.000Z | 2021-02-13T17:25:30.000Z | smok/extras/macros_database/pickling.py | smok-serwis/smok-client | a97b3dac454569f55a8a28a1cac44ae04e3e9cde | [
"MIT"
] | null | null | null | import os
import pickle
import typing as tp
from satella.coding import silence_excs, wraps
from smok.extras.macros_database.in_memory import InMemoryMacroDatabase
from smok.macro import Macro
def always_sync(fun):
@wraps(fun)
def inner(self, *args, **kwargs):
try:
return fun(self, *args,... | 28.383333 | 83 | 0.662361 | 218 | 1,703 | 4.885321 | 0.330275 | 0.046948 | 0.048826 | 0.053521 | 0.22723 | 0.22723 | 0.170892 | 0.170892 | 0.097653 | 0.097653 | 0 | 0 | 0.230769 | 1,703 | 59 | 84 | 28.864407 | 0.812977 | 0.041104 | 0 | 0.102564 | 0 | 0 | 0.019839 | 0.017359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.102564 | 0.564103 | 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 |
58ef398c4d1dc0c594b66e19e02f653a1c6b55fa | 1,347 | py | Python | sdk/python/pulumi_azure_native/timeseriesinsights/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/timeseriesinsights/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/timeseriesinsights/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .access_policy import *
from .environmen... | 42.09375 | 104 | 0.81366 | 161 | 1,347 | 6.559006 | 0.385093 | 0.094697 | 0.128788 | 0.174242 | 0.549242 | 0.454545 | 0.204545 | 0 | 0 | 0 | 0 | 0.108586 | 0.11804 | 1,347 | 31 | 105 | 43.451613 | 0.780303 | 0.171492 | 0 | 0 | 1 | 0 | 0.185753 | 0.185753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.913043 | 0 | 0.913043 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4506cf97be8758300b418b690d56cff981f9c46b | 119 | py | Python | snippets/python/debug/loglevel.py | c6401/Snippets | a88d97005658eeda99f1a2766e3d069a64e142cb | [
"MIT"
] | null | null | null | snippets/python/debug/loglevel.py | c6401/Snippets | a88d97005658eeda99f1a2766e3d069a64e142cb | [
"MIT"
] | null | null | null | snippets/python/debug/loglevel.py | c6401/Snippets | a88d97005658eeda99f1a2766e3d069a64e142cb | [
"MIT"
] | null | null | null | import os
import logging
LOGLEVEL = os.environ.get('LOGLEVEL', 'WARNING').upper()
logging.basicConfig(level=LOGLEVEL)
| 19.833333 | 56 | 0.773109 | 15 | 119 | 6.133333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084034 | 119 | 5 | 57 | 23.8 | 0.844037 | 0 | 0 | 0 | 0 | 0 | 0.12605 | 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 |
4514c589fcea749d99def27584bd4a25e15a6dfe | 1,240 | py | Python | main/migrations/0001_initial.py | Sahil-softuvo/docstring | 5b3bca6eddef279e0ba497814bc1d1bf87f796df | [
"Apache-2.0"
] | null | null | null | main/migrations/0001_initial.py | Sahil-softuvo/docstring | 5b3bca6eddef279e0ba497814bc1d1bf87f796df | [
"Apache-2.0"
] | null | null | null | main/migrations/0001_initial.py | Sahil-softuvo/docstring | 5b3bca6eddef279e0ba497814bc1d1bf87f796df | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-17 09:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='employees',
fields=[
('id', models.BigAutoF... | 33.513514 | 117 | 0.545968 | 114 | 1,240 | 5.815789 | 0.412281 | 0.135747 | 0.162896 | 0.217195 | 0.693816 | 0.693816 | 0.693816 | 0.693816 | 0.693816 | 0.693816 | 0 | 0.038732 | 0.312903 | 1,240 | 36 | 118 | 34.444444 | 0.739437 | 0.03629 | 0 | 0.689655 | 1 | 0 | 0.076278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4514e3d618deba8160e10813fcb20e1822b78953 | 298 | py | Python | sunpy/spectra/sources/__init__.py | CyclingNinja/sunpy | 768417a04d110a863b17807485a43067e6820ee9 | [
"MIT"
] | null | null | null | sunpy/spectra/sources/__init__.py | CyclingNinja/sunpy | 768417a04d110a863b17807485a43067e6820ee9 | [
"MIT"
] | null | null | null | sunpy/spectra/sources/__init__.py | CyclingNinja/sunpy | 768417a04d110a863b17807485a43067e6820ee9 | [
"MIT"
] | null | null | null | """Datasource-specific classes
This is where datasource specific logic is implemented. Each mission should
have its own file with one or more classes defined.
"""
__all__ = ['CallistoSpectrogram', 'SWavesSpectrogram']
from callisto import CallistoSpectrogram
from swaves import SWavesSpectrogram
| 29.8 | 75 | 0.815436 | 35 | 298 | 6.828571 | 0.771429 | 0.150628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127517 | 298 | 9 | 76 | 33.111111 | 0.919231 | 0.52349 | 0 | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4516eff2fd4bab766629092c5cacc0a213394e98 | 105 | py | Python | tile.py | clairette150/DungeonCrawler2021 | ebc159f448f419ff7a8245eb2294b6f2e2392233 | [
"CC0-1.0"
] | 3 | 2021-05-07T17:51:22.000Z | 2021-05-10T12:29:26.000Z | tile.py | clairette150/DungeonCrawler2021 | ebc159f448f419ff7a8245eb2294b6f2e2392233 | [
"CC0-1.0"
] | 28 | 2021-05-08T07:12:42.000Z | 2021-05-28T20:26:41.000Z | tile.py | clairette150/DungeonCrawler2021 | ebc159f448f419ff7a8245eb2294b6f2e2392233 | [
"CC0-1.0"
] | 1 | 2021-05-07T17:52:47.000Z | 2021-05-07T17:52:47.000Z | class Tile:
def __init__(self, x, y, tile_type):
self.x = x
self.y = y
self.tile_type = tile_type
| 17.5 | 37 | 0.657143 | 20 | 105 | 3.1 | 0.4 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219048 | 105 | 5 | 38 | 21 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
451df0eed58d23b372610d6d6c77f417ea773ead | 2,742 | py | Python | lib/exabgp/bgp/message/update/attribute/community/initial/community.py | criteo-forks/exabgp | 52ad73c53a5f1396dbf8d34c627f21db6906a737 | [
"BSD-3-Clause"
] | 27 | 2015-01-05T17:28:13.000Z | 2021-08-05T01:30:04.000Z | lib/exabgp/bgp/message/update/attribute/community/initial/community.py | criteo-forks/exabgp | 52ad73c53a5f1396dbf8d34c627f21db6906a737 | [
"BSD-3-Clause"
] | 1 | 2015-05-10T18:02:04.000Z | 2015-05-10T18:07:06.000Z | lib/exabgp/bgp/message/update/attribute/community/initial/community.py | criteo-forks/exabgp | 52ad73c53a5f1396dbf8d34c627f21db6906a737 | [
"BSD-3-Clause"
] | 2 | 2015-01-26T06:11:38.000Z | 2020-01-09T15:13:12.000Z | # encoding: utf-8
"""
community.py
Created by Thomas Mangin on 2009-11-05.
Copyright (c) 2009-2017 Exa Networks. All rights reserved.
License: 3-clause BSD. (See the COPYRIGHT file)
"""
from struct import pack
from struct import unpack
# ==================================================================== Community... | 28.268041 | 93 | 0.631291 | 315 | 2,742 | 5.295238 | 0.288889 | 0.085731 | 0.079736 | 0.068345 | 0.26199 | 0.193046 | 0.193046 | 0.161871 | 0 | 0 | 0 | 0.017266 | 0.239606 | 2,742 | 96 | 94 | 28.5625 | 0.782734 | 0.115609 | 0 | 0.063492 | 0 | 0 | 0.03604 | 0 | 0 | 0 | 0.024855 | 0 | 0 | 1 | 0.206349 | false | 0 | 0.031746 | 0.174603 | 0.603175 | 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 |
45233eec59deb4d2c3be83569f580108cf169983 | 65 | py | Python | lektor/admin/__init__.py | khashashin/StaticWebSieteLesson | 5cc29b547b3db98dbcb4d0bd9a2aec0b7532774e | [
"BSD-3-Clause"
] | null | null | null | lektor/admin/__init__.py | khashashin/StaticWebSieteLesson | 5cc29b547b3db98dbcb4d0bd9a2aec0b7532774e | [
"BSD-3-Clause"
] | null | null | null | lektor/admin/__init__.py | khashashin/StaticWebSieteLesson | 5cc29b547b3db98dbcb4d0bd9a2aec0b7532774e | [
"BSD-3-Clause"
] | 1 | 2020-09-22T04:18:18.000Z | 2020-09-22T04:18:18.000Z | from lektor.admin.webui import WebAdmin
__all__ = ['WebAdmin']
| 13 | 39 | 0.753846 | 8 | 65 | 5.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 65 | 4 | 40 | 16.25 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 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 |
452e4088986e57b3053586543d40d4e5623bd4e7 | 208 | py | Python | tests/3rdparty/testngpp/scripts/setup_linux.py | chencang1980/mockcpp | 45660e7bcf0a6cf8edce3c6a736e4b168acc016e | [
"Apache-2.0"
] | 30 | 2015-04-16T02:42:36.000Z | 2022-03-19T02:53:43.000Z | tests/3rdparty/testngpp/scripts/setup_linux.py | chencang1980/mockcpp | 45660e7bcf0a6cf8edce3c6a736e4b168acc016e | [
"Apache-2.0"
] | 21 | 2021-03-17T06:41:56.000Z | 2022-02-01T12:27:28.000Z | tests/3rdparty/testngpp/scripts/setup_linux.py | chencang1980/mockcpp | 45660e7bcf0a6cf8edce3c6a736e4b168acc016e | [
"Apache-2.0"
] | 23 | 2015-04-16T02:44:30.000Z | 2021-12-21T09:50:24.000Z | from cx_Freeze import setup, Executable
setup(
name = "testngppgen",
version = "1.1",
description = "testngpp generator script",
executables = [Executable("testngppgen.py")])
| 26 | 53 | 0.629808 | 20 | 208 | 6.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.254808 | 208 | 7 | 54 | 29.714286 | 0.825806 | 0 | 0 | 0 | 0 | 0 | 0.254808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
453a9f40cb2cc8f78d3c1dab4a4bf9e0bab05dd7 | 601 | py | Python | stack/python_stack_overflow.py | ashishihota/learning-Algorithms | a5206afbd11468d4c5b0e9fbb626a998d70d2e81 | [
"MIT"
] | null | null | null | stack/python_stack_overflow.py | ashishihota/learning-Algorithms | a5206afbd11468d4c5b0e9fbb626a998d70d2e81 | [
"MIT"
] | null | null | null | stack/python_stack_overflow.py | ashishihota/learning-Algorithms | a5206afbd11468d4c5b0e9fbb626a998d70d2e81 | [
"MIT"
] | null | null | null |
class stack(object):
def __init__(self):
self.stk = [] #initializing an array as a stack
def is_empty(self):
return self.stk == []
def push(self, item):
self.stk.append(data)
def pop(self):
if self.is_empty():
print("the stack is empty")
... | 22.259259 | 60 | 0.494176 | 75 | 601 | 3.866667 | 0.386667 | 0.168966 | 0.134483 | 0.117241 | 0.282759 | 0.282759 | 0.282759 | 0.282759 | 0.282759 | 0.282759 | 0 | 0.002732 | 0.391015 | 601 | 27 | 61 | 22.259259 | 0.789617 | 0.053245 | 0 | 0.285714 | 0 | 0 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.142857 | 0.571429 | 0.095238 | 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 |
4540e9b3a54fbb6b70a1e0ddf27cfc5e3b3489bf | 253 | py | Python | archive/lym_project/treeano-master/benchmarks/sparse_repeated_updates.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 45 | 2015-04-26T04:45:51.000Z | 2022-01-24T15:03:55.000Z | archive/lym_project/treeano-master/benchmarks/sparse_repeated_updates.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 8 | 2018-07-20T20:54:51.000Z | 2020-06-12T05:36:04.000Z | archive/lym_project/treeano-master/benchmarks/sparse_repeated_updates.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 22 | 2018-05-21T23:57:20.000Z | 2022-02-21T00:48:32.000Z | import numpy as np
import theano
import theano.tensor as T
fX = theano.config.floatX
s = theano.shared(np.ones((10, 1), dtype=fX))
idxs = [0, 1, 1]
fn = theano.function([], updates=[(s, T.inc_subtensor(s[idxs], s[idxs] ** 2))])
fn()
print s.get_value()
| 25.3 | 79 | 0.671937 | 46 | 253 | 3.652174 | 0.586957 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031963 | 0.134387 | 253 | 9 | 80 | 28.111111 | 0.73516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4541b4b6b377376a7cdda16165ec512558cfb92a | 11,647 | py | Python | nexuscli/resolvers.py | dhaneshnm/nexus-cli | 9c210c86c9e7924532b1feb262b67319a7bb8ec6 | [
"Apache-2.0"
] | 3 | 2018-09-03T09:04:34.000Z | 2019-08-18T15:18:45.000Z | nexuscli/resolvers.py | dhaneshnm/nexus-cli | 9c210c86c9e7924532b1feb262b67319a7bb8ec6 | [
"Apache-2.0"
] | 5 | 2018-09-03T09:03:07.000Z | 2019-07-09T10:01:19.000Z | nexuscli/resolvers.py | dhaneshnm/nexus-cli | 9c210c86c9e7924532b1feb262b67319a7bb8ec6 | [
"Apache-2.0"
] | 10 | 2018-09-03T09:04:38.000Z | 2021-12-09T09:45:35.000Z |
import click
from prettytable import PrettyTable
import json
import os
import tempfile
from nexuscli.cli import cli
from nexuscli import utils
from nexussdk.utils import http as nexussdk_http
from urllib.parse import quote_plus as encode_url
@cli.group()
def resolvers():
"""Resolvers operations"""
@resolvers.c... | 55.461905 | 222 | 0.661029 | 1,547 | 11,647 | 4.778927 | 0.128636 | 0.044366 | 0.045719 | 0.030299 | 0.753821 | 0.744353 | 0.723793 | 0.695523 | 0.667929 | 0.667929 | 0 | 0.001074 | 0.200738 | 11,647 | 210 | 223 | 55.461905 | 0.793103 | 0.016657 | 0 | 0.579235 | 0 | 0.016393 | 0.26457 | 0.003844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038251 | false | 0 | 0.04918 | 0 | 0.092896 | 0.087432 | 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 |
18f96b5c05ab6a7025b6417f589b952a536cf202 | 356 | py | Python | python/NodoCola.py | earevah205/Practica2s12017_200313310 | 70aa24f6a2b9966f5c4815b63e1725e44d96b0f6 | [
"MIT"
] | null | null | null | python/NodoCola.py | earevah205/Practica2s12017_200313310 | 70aa24f6a2b9966f5c4815b63e1725e44d96b0f6 | [
"MIT"
] | null | null | null | python/NodoCola.py | earevah205/Practica2s12017_200313310 | 70aa24f6a2b9966f5c4815b63e1725e44d96b0f6 | [
"MIT"
] | null | null | null | class NodoCola:
def __init__(self):
self.__numero = 0
self.__siguiente = None
def getNumero(self):
return self.__numero
def setNumero(self, numero):
self.__numero = numero
def getSiguiente(self):
return self.__siguiente
def setSiguiente(self, siguiente):
... | 20.941176 | 38 | 0.634831 | 37 | 356 | 5.675676 | 0.378378 | 0.190476 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.286517 | 356 | 16 | 39 | 22.25 | 0.822835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
18ff32df970667a0ca90731e8d1f22c5c9f13fd9 | 458 | py | Python | cassiopeia/dto/staticdata/__init__.py | artemigkh/cassiopeia | fa78cb8f86ea21857916a707d04de6a05498033e | [
"MIT"
] | null | null | null | cassiopeia/dto/staticdata/__init__.py | artemigkh/cassiopeia | fa78cb8f86ea21857916a707d04de6a05498033e | [
"MIT"
] | null | null | null | cassiopeia/dto/staticdata/__init__.py | artemigkh/cassiopeia | fa78cb8f86ea21857916a707d04de6a05498033e | [
"MIT"
] | null | null | null | from .champion import ChampionDto, ChampionListDto, ChampionReleaseDto, ChampionReleasesDto
from .item import ItemDto, ItemListDto
from .language import LanguageStringsDto, LanguagesDto
from .map import MapDto, MapListDto
from .profileicon import ProfileIconDataDto, ProfileIconDetailsDto
from .realm import RealmDto
fro... | 45.8 | 91 | 0.862445 | 45 | 458 | 8.777778 | 0.644444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098253 | 458 | 9 | 92 | 50.888889 | 0.956416 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7a022c845a35b1dc48111c13bd98bb3eaea4b636 | 242 | py | Python | backend/app/literature/continuum_plugins.py | dougli1sqrd/agr_literature_service | 5090c6a8f4d6ad6a58569fdfd843c0a15907b797 | [
"MIT"
] | null | null | null | backend/app/literature/continuum_plugins.py | dougli1sqrd/agr_literature_service | 5090c6a8f4d6ad6a58569fdfd843c0a15907b797 | [
"MIT"
] | 39 | 2021-10-18T17:02:49.000Z | 2022-03-28T20:56:24.000Z | backend/app/literature/continuum_plugins.py | dougli1sqrd/agr_literature_service | 5090c6a8f4d6ad6a58569fdfd843c0a15907b797 | [
"MIT"
] | 1 | 2021-10-21T00:11:18.000Z | 2021-10-21T00:11:18.000Z | from sqlalchemy_continuum.plugins import Plugin
from literature.user import get_global_user_id
class UserPlugin(Plugin):
def transaction_args(self, uow, session):
return {
'user_id': get_global_user_id()
}
| 20.166667 | 47 | 0.702479 | 30 | 242 | 5.366667 | 0.666667 | 0.111801 | 0.161491 | 0.186335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 242 | 11 | 48 | 22 | 0.860963 | 0 | 0 | 0 | 0 | 0 | 0.028926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.714286 | 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 |
7a07a8543b758860c367f2c50b9b6c301c55f9e0 | 2,033 | py | Python | diamandas/myghtyboard/permshelpers.py | bailey-ann/diamanda | 3d1942b786f4b00f5b5c9b024cef1ce9cba13f7c | [
"BSD-3-Clause"
] | null | null | null | diamandas/myghtyboard/permshelpers.py | bailey-ann/diamanda | 3d1942b786f4b00f5b5c9b024cef1ce9cba13f7c | [
"BSD-3-Clause"
] | null | null | null | diamandas/myghtyboard/permshelpers.py | bailey-ann/diamanda | 3d1942b786f4b00f5b5c9b024cef1ce9cba13f7c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Diamanda Application Set
# myghtyboard forum
# functions that wrap permission checks
from django.utils.translation import ugettext as _
from django.shortcuts import render_to_response
from django.template import RequestContext
from diamandas.myghtyboard.context import forum as forumContext
def ca... | 37.648148 | 125 | 0.734875 | 281 | 2,033 | 5.117438 | 0.231317 | 0.062587 | 0.089013 | 0.107093 | 0.747566 | 0.701669 | 0.701669 | 0.689152 | 0.624478 | 0.607093 | 0 | 0 | 0.12789 | 2,033 | 54 | 126 | 37.648148 | 0.811055 | 0.047713 | 0 | 0.488889 | 0 | 0 | 0.214175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.377778 | 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 |
e1541b8eaaf4e0ea37e9ac4fad640a844dc098ec | 5,480 | py | Python | bin/GithubAPI.py | splunk/splunk-app-splunkgit | 11658bd1000464e09064a2d7cc6937fa1af75f2b | [
"Apache-2.0"
] | 25 | 2015-02-07T17:26:21.000Z | 2021-06-23T00:51:38.000Z | bin/GithubAPI.py | splunk/splunk-app-splunkgit | 11658bd1000464e09064a2d7cc6937fa1af75f2b | [
"Apache-2.0"
] | 1 | 2018-11-02T22:50:42.000Z | 2018-11-05T20:48:32.000Z | bin/GithubAPI.py | splunk/splunk-app-splunkgit | 11658bd1000464e09064a2d7cc6937fa1af75f2b | [
"Apache-2.0"
] | 23 | 2015-02-07T17:25:53.000Z | 2022-03-27T09:05:42.000Z | # Copyright 2011 Splunk, Inc.
#
# 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, so... | 37.027027 | 193 | 0.696533 | 767 | 5,480 | 4.629726 | 0.271186 | 0.01577 | 0.023655 | 0.033512 | 0.326669 | 0.234863 | 0.219375 | 0.181639 | 0.138553 | 0.078569 | 0 | 0.010797 | 0.205657 | 5,480 | 148 | 194 | 37.027027 | 0.804962 | 0.144708 | 0 | 0.047619 | 0 | 0 | 0.094631 | 0.038255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.063492 | 0.126984 | 0.603175 | 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 |
e159378964bebe0ccd77be8e166f292a8ba6a948 | 3,321 | py | Python | app/models.py | 9aditya9/karigar | 62c115e3f314017a28251b3e23c25b28f108ef36 | [
"MIT"
] | null | null | null | app/models.py | 9aditya9/karigar | 62c115e3f314017a28251b3e23c25b28f108ef36 | [
"MIT"
] | null | null | null | app/models.py | 9aditya9/karigar | 62c115e3f314017a28251b3e23c25b28f108ef36 | [
"MIT"
] | null | null | null | from datetime import datetime
from app import db
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from app import login
from hashlib import md5
#association table
# booked = db.Table('booked',
# db.Column('user_id', db.Integer, db.ForeignKey('user.id')),
... | 36.097826 | 121 | 0.668172 | 433 | 3,321 | 5.004619 | 0.221709 | 0.077527 | 0.087679 | 0.070605 | 0.39317 | 0.321181 | 0.265805 | 0.265805 | 0.265805 | 0.211352 | 0 | 0.006927 | 0.174044 | 3,321 | 91 | 122 | 36.494505 | 0.783084 | 0.246311 | 0 | 0.16 | 1 | 0 | 0.069371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.12 | 0.12 | 0.1 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e15cd474bc47f383ca2af478ab348691b0031f61 | 241 | py | Python | rastervision/v2/rv/data/class_config.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | 1 | 2019-11-07T10:02:23.000Z | 2019-11-07T10:02:23.000Z | rastervision/v2/rv/data/class_config.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | null | null | null | rastervision/v2/rv/data/class_config.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | null | null | null | from typing import List
from rastervision.v2.core.config import Config, register_config
@register_config('class_config')
class ClassConfig(Config):
names: List[str]
colors: List[str]
def update(self, task=None):
pass
| 18.538462 | 63 | 0.721992 | 32 | 241 | 5.34375 | 0.625 | 0.163743 | 0.233918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.182573 | 241 | 12 | 64 | 20.083333 | 0.862944 | 0 | 0 | 0 | 0 | 0 | 0.049793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e1671a7fc949abf6e0e32fccaa02455feb139d4a | 70 | py | Python | ex1.py | gitkabi/CPython | 93c8278d75afd9e38903ad61d989defb3f0afd29 | [
"Apache-2.0"
] | null | null | null | ex1.py | gitkabi/CPython | 93c8278d75afd9e38903ad61d989defb3f0afd29 | [
"Apache-2.0"
] | null | null | null | ex1.py | gitkabi/CPython | 93c8278d75afd9e38903ad61d989defb3f0afd29 | [
"Apache-2.0"
] | null | null | null | name = input('What are you learning?')
print("I'am learning " + name) | 23.333333 | 38 | 0.671429 | 11 | 70 | 4.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 70 | 3 | 39 | 23.333333 | 0.79661 | 0 | 0 | 0 | 0 | 0 | 0.507042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e1b9c0e075c674dc093187ab1774338556b67ff7 | 6,953 | py | Python | hivs_administrative/abstract_models.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | hivs_administrative/abstract_models.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | hivs_administrative/abstract_models.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | from django.contrib.gis.db import models
from django.core.validators import MinValueValidator
from django.utils.translation import ugettext_lazy as _
from django.contrib.postgres.fields import JSONField
from django.contrib.gis import geos
from mptt.models import MPTTModel, TreeForeignKey
class AbstractAreaType(models... | 30.629956 | 72 | 0.621458 | 700 | 6,953 | 5.948571 | 0.177143 | 0.060519 | 0.04611 | 0.053074 | 0.76513 | 0.756484 | 0.738713 | 0.695005 | 0.679395 | 0.657301 | 0 | 0.005176 | 0.277578 | 6,953 | 226 | 73 | 30.765487 | 0.82381 | 0 | 0 | 0.642857 | 0 | 0 | 0.086438 | 0.007479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.028571 | 0.014286 | 0.290476 | 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 |
e1bcb4a9e83fffa8e34679fde4b2357b1ff1a430 | 207 | py | Python | wrapanapi/containers/template.py | ohiliazo/wrapanapi | df8290869c203911e92572b6fd93891c962eff3b | [
"MIT"
] | 1 | 2016-09-13T07:31:06.000Z | 2016-09-13T07:31:06.000Z | wrapanapi/containers/template.py | ohiliazo/wrapanapi | df8290869c203911e92572b6fd93891c962eff3b | [
"MIT"
] | null | null | null | wrapanapi/containers/template.py | ohiliazo/wrapanapi | df8290869c203911e92572b6fd93891c962eff3b | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from wrapanapi.containers import ContainersResourceBase
class Template(ContainersResourceBase):
RESOURCE_TYPE = 'template'
CREATABLE = True
API = 'o_api'
| 23 | 55 | 0.78744 | 21 | 207 | 7.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 207 | 8 | 56 | 25.875 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0.062802 | 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 |
bef075a51b9106d08a154e05630f4618703b3b55 | 165 | py | Python | OOP/Exams/2020_August_Retake/1_Structure_and_2_ Functionality/project/appliances/laptop.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | 2 | 2022-03-04T11:39:03.000Z | 2022-03-13T07:13:23.000Z | OOP/Exams/2020_August_Retake/1_Structure_and_2_ Functionality/project/appliances/laptop.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | null | null | null | OOP/Exams/2020_August_Retake/1_Structure_and_2_ Functionality/project/appliances/laptop.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | null | null | null | from project.appliances.appliance import Appliance
class Laptop(Appliance):
_COST = 1
def __init__(self):
super().__init__(self.__class__._COST)
| 16.5 | 50 | 0.709091 | 19 | 165 | 5.421053 | 0.684211 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.193939 | 165 | 9 | 51 | 18.333333 | 0.766917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
befd2f5c3bf898e44f7d3402bb8c9570230b574f | 15,646 | py | Python | N_gram_1Row_main.py | kupc25648/N_gram_One_row_keyboard | 6bf60f3cfd543ab74a2bb29d9cf5d476fd778fb8 | [
"MIT"
] | null | null | null | N_gram_1Row_main.py | kupc25648/N_gram_One_row_keyboard | 6bf60f3cfd543ab74a2bb29d9cf5d476fd778fb8 | [
"MIT"
] | null | null | null | N_gram_1Row_main.py | kupc25648/N_gram_One_row_keyboard | 6bf60f3cfd543ab74a2bb29d9cf5d476fd778fb8 | [
"MIT"
] | null | null | null | '''
==============================================================================================================
Import
==============================================================================================================
'''
import pandas as pd
import numpy as np
import random
import string
'''
===========... | 45.482558 | 307 | 0.501278 | 2,200 | 15,646 | 3.425455 | 0.062727 | 0.15008 | 0.181529 | 0.070064 | 0.760881 | 0.713641 | 0.676884 | 0.645435 | 0.630573 | 0.611067 | 0 | 0.029928 | 0.188483 | 15,646 | 343 | 308 | 45.61516 | 0.563598 | 0.059568 | 0 | 0.471774 | 0 | 0 | 0.037448 | 0.005225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040323 | false | 0.020161 | 0.016129 | 0 | 0.072581 | 0.03629 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
befd842bf2a1192c1a725a8f6b7e00b583959d08 | 108 | py | Python | kafka_utils/conf.py | GalphaXie/LaoX | b7e8f9744292dc052c870e4d873052e9bfec19ee | [
"MIT"
] | null | null | null | kafka_utils/conf.py | GalphaXie/LaoX | b7e8f9744292dc052c870e4d873052e9bfec19ee | [
"MIT"
] | 12 | 2020-03-24T17:39:25.000Z | 2022-03-12T00:01:24.000Z | kafka_utils/conf.py | GalphaXie/LaoX | b7e8f9744292dc052c870e4d873052e9bfec19ee | [
"MIT"
] | null | null | null |
# 引导程序(启动程序服务地址) 9092 是kafka默认端口号
# BOOTSTRAP_SERVERS = "ip:port"
BOOTSTRAP_SERVERS = "127.0.0.1:9092"
| 15.428571 | 36 | 0.712963 | 15 | 108 | 5 | 0.733333 | 0.426667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 0.148148 | 108 | 6 | 37 | 18 | 0.663043 | 0.583333 | 0 | 0 | 0 | 0 | 0.341463 | 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 |
8330de316ba615f77cb7a8e05a543d520db90f82 | 17,611 | py | Python | tests/wow/test_wow.py | scb5304/pyblizzard | 03effdecc7f9fdb198cee1d2bbc1ee23309bb0fd | [
"MIT"
] | 7 | 2018-01-24T18:53:33.000Z | 2022-02-01T10:49:37.000Z | tests/wow/test_wow.py | scb5304/pyblizzard | 03effdecc7f9fdb198cee1d2bbc1ee23309bb0fd | [
"MIT"
] | 1 | 2021-06-01T21:55:40.000Z | 2021-06-01T21:55:40.000Z | tests/wow/test_wow.py | scb5304/pyblizzard | 03effdecc7f9fdb198cee1d2bbc1ee23309bb0fd | [
"MIT"
] | 3 | 2019-01-18T03:37:15.000Z | 2019-08-12T15:22:30.000Z | import re
import pytest
import responses
from pyblizzard.common.enum.locale import Locale
from pyblizzard.common.enum.region import Region
from pyblizzard.wow.enum.characterprofilefield import CharacterProfileField
from pyblizzard.wow.enum.guildprofilefield import GuildProfileField
from pyblizzard.wow.enum.pvpbracket... | 41.930952 | 282 | 0.713247 | 2,373 | 17,611 | 5.006321 | 0.067425 | 0.1 | 0.043603 | 0.051515 | 0.772475 | 0.733081 | 0.719024 | 0.692088 | 0.686532 | 0.642508 | 0 | 0.01944 | 0.185055 | 17,611 | 420 | 283 | 41.930952 | 0.808319 | 0.127761 | 0 | 0.487805 | 0 | 0.125436 | 0.207053 | 0.001516 | 0 | 0 | 0 | 0 | 0.125436 | 1 | 0.12892 | false | 0 | 0.031359 | 0.003484 | 0.167247 | 0.006969 | 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 |
8338d4bfbf0623d4a49b1873e27e18a4be9ff7bf | 1,146 | py | Python | 6.00.1x/PS7/Adopter.py | batnam/MITx6.00.1x | f2c342c8b69ecf22b2e40f3ce554255efdc6f7c0 | [
"MIT"
] | null | null | null | 6.00.1x/PS7/Adopter.py | batnam/MITx6.00.1x | f2c342c8b69ecf22b2e40f3ce554255efdc6f7c0 | [
"MIT"
] | null | null | null | 6.00.1x/PS7/Adopter.py | batnam/MITx6.00.1x | f2c342c8b69ecf22b2e40f3ce554255efdc6f7c0 | [
"MIT"
] | null | null | null | __author__ = 'ThanhNam'
# Enter your code for the Adopter class here
class Adopter:#(object):
"""
Adopters represent people interested in adopting a species.
They have a desired species type that they want, and their score is
simply the number of species that the shelter has of that species.
"""
... | 45.84 | 82 | 0.69808 | 160 | 1,146 | 4.84375 | 0.3625 | 0.19871 | 0.061935 | 0.054194 | 0.148387 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003476 | 0.246946 | 1,146 | 25 | 82 | 45.84 | 0.894554 | 0.552356 | 0 | 0 | 0 | 0 | 0.016632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
83432e95738b6e49b76d942d9bcaa838af7e773e | 92 | py | Python | client codes/client/config.py | nathaniel-security/Localhost-distributed-computing-engine | 4643c22f563a969ccaf1062da17696819e00ab9a | [
"MIT"
] | null | null | null | client codes/client/config.py | nathaniel-security/Localhost-distributed-computing-engine | 4643c22f563a969ccaf1062da17696819e00ab9a | [
"MIT"
] | null | null | null | client codes/client/config.py | nathaniel-security/Localhost-distributed-computing-engine | 4643c22f563a969ccaf1062da17696819e00ab9a | [
"MIT"
] | null | null | null | free = True
node_id = '762'
node_password = '656531'
local_path = ''
code_done = False
| 15.333333 | 25 | 0.663043 | 13 | 92 | 4.384615 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.217391 | 92 | 5 | 26 | 18.4 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
83624965de54ad78e96c1136d86a9566ed034fc9 | 161 | py | Python | tests/data/src/extension/setup.py | rogerhil/pip | 7616583dbb2dcbda5a19d78873642d6751fbf017 | [
"MIT"
] | 7,089 | 2015-01-01T10:48:04.000Z | 2022-03-31T08:47:02.000Z | tests/data/src/extension/setup.py | rogerhil/pip | 7616583dbb2dcbda5a19d78873642d6751fbf017 | [
"MIT"
] | 8,417 | 2015-01-01T13:03:16.000Z | 2022-03-31T17:40:27.000Z | tests/data/src/extension/setup.py | rogerhil/pip | 7616583dbb2dcbda5a19d78873642d6751fbf017 | [
"MIT"
] | 2,663 | 2015-01-02T04:02:12.000Z | 2022-03-30T02:30:46.000Z | from setuptools import Extension, setup
module = Extension("extension", sources=["extension.c"])
setup(name="extension", version="0.0.1", ext_modules=[module])
| 32.2 | 62 | 0.745342 | 21 | 161 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.080745 | 161 | 4 | 63 | 40.25 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.21118 | 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 |
36094a718776491395f950e1dfb8f4dc8d5d2871 | 872 | py | Python | 01 VacantHusky-2048GameAutoMovePython/2048python&c/config.py | Guleixibian2009/Game-Collection | 1d8997b3ab0ea38958ed67dab7132bc89d467644 | [
"Unlicense"
] | 1 | 2021-12-19T05:37:19.000Z | 2021-12-19T05:37:19.000Z | 01 VacantHusky-2048GameAutoMovePython/2048python&c/config.py | Guleixibian2009/Game-Collection | 1d8997b3ab0ea38958ed67dab7132bc89d467644 | [
"Unlicense"
] | null | null | null | 01 VacantHusky-2048GameAutoMovePython/2048python&c/config.py | Guleixibian2009/Game-Collection | 1d8997b3ab0ea38958ed67dab7132bc89d467644 | [
"Unlicense"
] | null | null | null |
class Base:
WINDOW_W = 700
WINDOW_H = 550
GAME_WH = 500
SIZE = 5
FPS = 60
DEBUG = False
COLORS = {
'0': (205, 193, 180),
'2': (238, 228, 218),
'4': (237, 224, 200),
'8': (242, 177, 121),
'16': (245, 149, 99),
'32': (246, 124, 95),
'64'... | 17.098039 | 31 | 0.457569 | 115 | 872 | 3.408696 | 0.669565 | 0.081633 | 0.122449 | 0.09949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.326087 | 0.366972 | 872 | 50 | 32 | 17.44 | 0.384058 | 0 | 0 | 0.081081 | 0 | 0 | 0.04635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.567568 | 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 |
360d6c01887b0ada87078c32f6e516462b04bc9c | 909 | py | Python | cargo/fields/percent.py | dalou/django-cargo | 633d051ca8647623adbab746c9da9153f46e1e8f | [
"BSD-3-Clause"
] | null | null | null | cargo/fields/percent.py | dalou/django-cargo | 633d051ca8647623adbab746c9da9153f46e1e8f | [
"BSD-3-Clause"
] | null | null | null | cargo/fields/percent.py | dalou/django-cargo | 633d051ca8647623adbab746c9da9153f46e1e8f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from django import forms
from django.utils.text import capfirst
from django.core.exceptions import ValidationError
from django.core.validators import MaxValueValidator, MinValueValidator
# from cargo.forms import PriceField as PriceFormField, PriceInput
class Per... | 32.464286 | 77 | 0.731573 | 96 | 909 | 6.791667 | 0.53125 | 0.076687 | 0.042945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006545 | 0.159516 | 909 | 28 | 78 | 32.464286 | 0.846859 | 0.281628 | 0 | 0 | 0 | 0 | 0.059937 | 0.044164 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.5 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
361cdb263d7220ed14fcf93daf635460b899e045 | 149 | py | Python | lessons/lesson3/t212.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | lessons/lesson3/t212.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | lessons/lesson3/t212.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | # t212.py
from machine import Pin
p26=Pin(26,Pin.OPEN_DRAIN)
while True:
p26.value(0) # 0V
time.sleep(2)
p26.value(1) # ?V
time.sleep(2)
| 14.9 | 26 | 0.651007 | 28 | 149 | 3.428571 | 0.714286 | 0.166667 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.194631 | 149 | 9 | 27 | 16.555556 | 0.666667 | 0.087248 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
363a28284ebeeaf39cb3c256121b0cfcd60b97a6 | 1,439 | py | Python | helpers/colors.py | kmcelwee/mondrianify | 846716fdf6ff475c968bedf5629ac21f441772b6 | [
"MIT"
] | 4 | 2020-07-29T16:08:48.000Z | 2021-11-14T18:28:41.000Z | helpers/colors.py | kmcelwee/mondrianify | 846716fdf6ff475c968bedf5629ac21f441772b6 | [
"MIT"
] | 10 | 2020-07-14T01:03:38.000Z | 2021-09-24T14:59:31.000Z | helpers/colors.py | kmcelwee/mondrianify | 846716fdf6ff475c968bedf5629ac21f441772b6 | [
"MIT"
] | null | null | null | """Palette of colors collected from Mondrian's paintings"""
mondrian_palette = {
"red2": {
"rgb": [
221,
40,
32
],
"hex": "#dd2820"
},
"yellow": {
"rgb": [
252,
218,
77
],
"hex": "#fcda4d... | 15.641304 | 59 | 0.229326 | 87 | 1,439 | 3.781609 | 0.735632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221825 | 0.611536 | 1,439 | 92 | 60 | 15.641304 | 0.366726 | 0.036831 | 0 | 0.266667 | 0 | 0 | 0.143374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
364596a9cf7db5a0924f0754da365f04300b4b72 | 289 | py | Python | hydra/__init__.py | CarlosXXX407/hydra | 4e006b10d9b005df6abd886991548f02a8d80691 | [
"MIT"
] | null | null | null | hydra/__init__.py | CarlosXXX407/hydra | 4e006b10d9b005df6abd886991548f02a8d80691 | [
"MIT"
] | null | null | null | hydra/__init__.py | CarlosXXX407/hydra | 4e006b10d9b005df6abd886991548f02a8d80691 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from . import utils
from .errors import MissingConfigException
from .main import main
# Source of truth for Hydra's version
__version__ = "0.10.0"
__all__ = ["__version__", "MissingConfigException", "main", "utils"]
| 28.9 | 70 | 0.754325 | 37 | 289 | 5.567568 | 0.675676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.141869 | 289 | 9 | 71 | 32.111111 | 0.814516 | 0.359862 | 0 | 0 | 0 | 0 | 0.263736 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 |
36486f2146c2347bb4fbb599c3b6777a8d3c9f9b | 452 | py | Python | samples/docs/quickstart2.py | gdoumenc/coworks | 97bb3babfd9c652315b5cf830d170cd20485b1d1 | [
"MIT"
] | 23 | 2019-12-26T16:28:40.000Z | 2022-02-22T14:05:47.000Z | samples/docs/quickstart2.py | gdoumenc/coworks | 97bb3babfd9c652315b5cf830d170cd20485b1d1 | [
"MIT"
] | 15 | 2019-12-24T13:29:29.000Z | 2021-12-28T10:16:36.000Z | samples/docs/quickstart2.py | gdoumenc/coworks | 97bb3babfd9c652315b5cf830d170cd20485b1d1 | [
"MIT"
] | 4 | 2021-07-10T17:59:51.000Z | 2022-02-14T18:53:00.000Z | from coworks import TechMicroService, entry
from coworks.config import Config
from coworks.cws.deployer import CwsTerraformDeployer
from coworks.cws.runner import CwsRunner
class SimpleMicroService(TechMicroService):
def auth(self, auth_request):
return True
@entry
def get(self):
return ... | 22.6 | 53 | 0.765487 | 51 | 452 | 6.764706 | 0.54902 | 0.127536 | 0.081159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15708 | 452 | 19 | 54 | 23.789474 | 0.905512 | 0 | 0 | 0 | 0 | 0 | 0.075221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
364f8be2bd154617978c781a851d5ceefc369188 | 2,075 | py | Python | release/stubs.min/System/Diagnostics/__init___parts/StackTrace.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/System/Diagnostics/__init___parts/StackTrace.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/System/Diagnostics/__init___parts/StackTrace.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class StackTrace(object):
"""
Represents a stack trace,which is an ordered collection of one or more stack frames.
StackTrace()
StackTrace(fNeedFileInfo: bool)
StackTrace(skipFrames: int)
StackTrace(skipFrames: int,fNeedFileInfo: bool)
StackTrace(e: Exception)
StackTrace(e: Exception,fN... | 19.951923 | 105 | 0.68241 | 244 | 2,075 | 5.606557 | 0.286885 | 0.04386 | 0.073099 | 0.087719 | 0.340643 | 0.201754 | 0.172515 | 0 | 0 | 0 | 0 | 0.000615 | 0.216867 | 2,075 | 103 | 106 | 20.145631 | 0.841231 | 0.712771 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3650b86614269b8fcba3ab0bb0721a5ae79eb5a9 | 1,721 | py | Python | python_simple_sample.py | jayson-garrison/AIWolf-2021-greenmachine | 39833c4b6a335628bc035b2ac95c569cc632f5f0 | [
"MIT"
] | 1 | 2021-06-16T16:59:09.000Z | 2021-06-16T16:59:09.000Z | python_simple_sample.py | jayson-garrison/AIWolf-2021-greenmachine | 39833c4b6a335628bc035b2ac95c569cc632f5f0 | [
"MIT"
] | null | null | null | python_simple_sample.py | jayson-garrison/AIWolf-2021-greenmachine | 39833c4b6a335628bc035b2ac95c569cc632f5f0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function, division
# This sample script connects to the AIWolf server, but
# does not do anything else. It will choose itself as the
# target for any actions requested by the server, (voting,
# attacking ,etc) forcing the server to choose a random target.
import aiwo... | 24.585714 | 63 | 0.661825 | 227 | 1,721 | 4.84141 | 0.414097 | 0.087352 | 0.087352 | 0.065514 | 0.237489 | 0.164695 | 0.090082 | 0 | 0 | 0 | 0 | 0 | 0.25276 | 1,721 | 69 | 64 | 24.942029 | 0.854588 | 0.334108 | 0 | 0.30303 | 0 | 0 | 0.047028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.757576 | 0.030303 | 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 |
365750cabee9a34d178d724038cddd88aa4ebf8c | 620 | py | Python | webapp-flask/app/run.py | didYouUpdateCode/iot_monitoring | 84fd215758aa6bfbe8d11589231ab8c60d0f6a0d | [
"MIT"
] | null | null | null | webapp-flask/app/run.py | didYouUpdateCode/iot_monitoring | 84fd215758aa6bfbe8d11589231ab8c60d0f6a0d | [
"MIT"
] | null | null | null | webapp-flask/app/run.py | didYouUpdateCode/iot_monitoring | 84fd215758aa6bfbe8d11589231ab8c60d0f6a0d | [
"MIT"
] | null | null | null | from src import app, db, api
from src.models.user import User
from src.resources.register import Register
from src.resources.verify import Verify
from src.resources.login import Login
from src.resources.refresh import Refresh
from src.resources.me import Me
with app.app_context():
db.drop_all()
db.create_all()... | 29.52381 | 48 | 0.729032 | 96 | 620 | 4.541667 | 0.322917 | 0.112385 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.13871 | 620 | 20 | 49 | 31 | 0.805243 | 0 | 0 | 0 | 0 | 0 | 0.117742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.411765 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3662a55c2095442fd723abae7c395aa7969e0bc6 | 460 | py | Python | state.py | dark0ghost/async_py_bot | ec79285e5fbf5fc67661025effe596439107f21f | [
"MIT"
] | 24 | 2019-08-30T20:00:07.000Z | 2022-03-20T17:58:21.000Z | state.py | dark0ghost/async_py_bot | ec79285e5fbf5fc67661025effe596439107f21f | [
"MIT"
] | 3 | 2020-02-12T19:48:21.000Z | 2021-03-07T19:24:50.000Z | state.py | dark0ghost/async_py_bot | ec79285e5fbf5fc67661025effe596439107f21f | [
"MIT"
] | 3 | 2021-04-19T18:38:07.000Z | 2022-02-10T07:04:27.000Z | from aiogram.dispatcher.filters.state import StatesGroup, State
class States(StatesGroup):
"""
class for set up state user
"""
start: State = State()
end: State = State()
contact: State = State()
geo: State = State()
get_mail: State = State()
mail_ver: State = State()
save_json... | 24.210526 | 63 | 0.621739 | 56 | 460 | 5 | 0.5 | 0.392857 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254348 | 460 | 18 | 64 | 25.555556 | 0.816327 | 0.058696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
367324ec3e1c91fe3fbe7ae89929e12e8e14eb7f | 356 | py | Python | code401challengespython/quick_sort/test_quick_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | code401challengespython/quick_sort/test_quick_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | code401challengespython/quick_sort/test_quick_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | from quick_sort import quick_sort
def test_quick_sort_one():
arr = [5,2,11,9,4,18,10,7,14,8]
assert quick_sort(arr,0,len(arr)-1) == [2,4,5,7,8,9,10,11,14,18]
def test_quick_sort_empty():
arr = []
assert quick_sort(arr,0,len(arr)-1) == []
def test_quick_sort_two():
arr = [3]
assert quick_s... | 27.384615 | 68 | 0.61236 | 70 | 356 | 2.914286 | 0.357143 | 0.352941 | 0.176471 | 0.235294 | 0.382353 | 0.382353 | 0.382353 | 0.382353 | 0 | 0 | 0 | 0.125436 | 0.19382 | 356 | 13 | 69 | 27.384615 | 0.585366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 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 |
3675e16ae3051248ec98f74920885919b79d7d36 | 1,132 | py | Python | tests/test_js_api.py | rotu/pywebview | f0e731b2ff65da73a510cc12abd91f63851d1dc6 | [
"BSD-3-Clause"
] | null | null | null | tests/test_js_api.py | rotu/pywebview | f0e731b2ff65da73a510cc12abd91f63851d1dc6 | [
"BSD-3-Clause"
] | 8 | 2021-03-01T21:31:12.000Z | 2022-02-27T10:59:15.000Z | tests/test_js_api.py | rotu/pywebview | f0e731b2ff65da73a510cc12abd91f63851d1dc6 | [
"BSD-3-Clause"
] | 1 | 2019-12-12T18:44:28.000Z | 2019-12-12T18:44:28.000Z | import webview
from .util import run_test, assert_js
def test_js_bridge():
api = Api()
window = webview.create_window('JSBridge test', js_api=api)
run_test(webview, window, js_bridge)
class Api:
def get_int(self, params):
return 420
def get_float(self, params):
return 3.141
... | 26.325581 | 80 | 0.638693 | 159 | 1,132 | 4.314465 | 0.238994 | 0.093294 | 0.163265 | 0.173469 | 0.317784 | 0.28863 | 0.28863 | 0.206997 | 0.110787 | 0 | 0 | 0.03782 | 0.20583 | 1,132 | 42 | 81 | 26.952381 | 0.72525 | 0 | 0 | 0 | 0 | 0 | 0.215548 | 0.045053 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.3 | false | 0 | 0.066667 | 0.233333 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
3681c885c5f4add4e470d9bff6560ad77be50a85 | 965 | py | Python | tests/test_jinja2_j2ninja.py | simonkowallik/as3ninja | f9997dfa0e26d481452c727fe2c2a03a811e189a | [
"0BSD"
] | 7 | 2019-11-07T21:19:50.000Z | 2021-12-22T15:03:59.000Z | tests/test_jinja2_j2ninja.py | simonkowallik/as3ninja | f9997dfa0e26d481452c727fe2c2a03a811e189a | [
"0BSD"
] | 63 | 2019-11-09T21:07:09.000Z | 2022-01-31T17:44:55.000Z | tests/test_jinja2_j2ninja.py | simonkowallik/as3ninja | f9997dfa0e26d481452c727fe2c2a03a811e189a | [
"0BSD"
] | 3 | 2019-11-20T17:32:18.000Z | 2021-03-01T19:47:00.000Z | # -*- coding: utf-8 -*-
from as3ninja.jinja2 import J2Ninja
class Test_J2Ninja:
@staticmethod
def test_registerfunction():
@J2Ninja.registerfunction
def my_function():
pass
assert J2Ninja.functions["my_function"] == my_function
@staticmethod
def test_registerfilt... | 24.125 | 74 | 0.639378 | 90 | 965 | 6.644444 | 0.3 | 0.108696 | 0.12709 | 0.080268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021398 | 0.273575 | 965 | 39 | 75 | 24.74359 | 0.831669 | 0.021762 | 0 | 0.428571 | 0 | 0 | 0.064756 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.285714 | true | 0.071429 | 0.035714 | 0.071429 | 0.428571 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
36846bd94319f5aa990747bce2a9d6f943ac4b03 | 185 | py | Python | opendc-web/opendc-web-api/opendc/api/v2/traces/test_endpoint.py | Koen1999/opendc | f9b43518d2d50f33077734537a477539fca9f5b7 | [
"MIT"
] | null | null | null | opendc-web/opendc-web-api/opendc/api/v2/traces/test_endpoint.py | Koen1999/opendc | f9b43518d2d50f33077734537a477539fca9f5b7 | [
"MIT"
] | 4 | 2020-11-27T16:27:58.000Z | 2020-12-28T23:00:08.000Z | opendc-web/opendc-web-api/opendc/api/v2/traces/test_endpoint.py | Koen1999/opendc | f9b43518d2d50f33077734537a477539fca9f5b7 | [
"MIT"
] | null | null | null | from opendc.util.database import DB
def test_get_traces(client, mocker):
mocker.patch.object(DB, 'fetch_all', return_value=[])
assert '200' in client.get('/v2/traces').status
| 26.428571 | 57 | 0.724324 | 28 | 185 | 4.642857 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0.12973 | 185 | 6 | 58 | 30.833333 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.118919 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
368e1c76bc1cb958c70f43b77710785594b9c7aa | 342 | py | Python | transformer/plugins/__init__.py | kartoch/transformer | d31e34e7f7f8b645cfbe5cbd128456a650f0769e | [
"MIT"
] | 59 | 2019-09-11T16:53:37.000Z | 2022-02-17T11:09:00.000Z | transformer/plugins/__init__.py | kartoch/transformer | d31e34e7f7f8b645cfbe5cbd128456a650f0769e | [
"MIT"
] | 48 | 2019-01-29T10:09:09.000Z | 2019-09-02T11:40:03.000Z | transformer/plugins/__init__.py | kartoch/transformer | d31e34e7f7f8b645cfbe5cbd128456a650f0769e | [
"MIT"
] | 11 | 2019-09-26T09:25:39.000Z | 2022-03-09T18:27:31.000Z | """
:mod:`transformer.plugins` -- Plugin System
===========================================
This module exposes the API needed to create your own Transformer plugins.
"""
from .resolve import resolve
from .contracts import plugin, Contract, apply, group_by_contract
__all__ = ["resolve", "plugin", "Contract", "apply",... | 31.090909 | 74 | 0.654971 | 38 | 342 | 5.684211 | 0.631579 | 0.166667 | 0.175926 | 0.222222 | 0.314815 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114035 | 342 | 10 | 75 | 34.2 | 0.712871 | 0.476608 | 0 | 0 | 0 | 0 | 0.251462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3692892c726741df09f3d93418c54c1586a86453 | 861 | py | Python | src/custom_auth/oauth/serializers.py | harenlewis/bullet-train-api | 07fa3d88d5e56dd73b2a17f408ee391bbcfb2251 | [
"BSD-3-Clause"
] | null | null | null | src/custom_auth/oauth/serializers.py | harenlewis/bullet-train-api | 07fa3d88d5e56dd73b2a17f408ee391bbcfb2251 | [
"BSD-3-Clause"
] | null | null | null | src/custom_auth/oauth/serializers.py | harenlewis/bullet-train-api | 07fa3d88d5e56dd73b2a17f408ee391bbcfb2251 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth import get_user_model
from rest_framework import serializers
from rest_framework.authtoken.models import Token
from custom_auth.oauth.google import get_user_info
GOOGLE_URL = "https://www.googleapis.com/oauth2/v1/userinfo?alt=json&"
UserModel = get_user_model()
class OAuthAccessTokenSeriali... | 35.875 | 87 | 0.74216 | 119 | 861 | 5.168067 | 0.512605 | 0.045528 | 0.053659 | 0.058537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004225 | 0.175377 | 861 | 23 | 88 | 37.434783 | 0.861972 | 0.167247 | 0 | 0 | 0 | 0 | 0.105109 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
36cc27df1c2c19625238520eedc42aaaaea18c96 | 61 | py | Python | src/truecolor/__init__.py | chanchan69/truecolor | 5633e00fc5df5183ccb4e8d8dfa7165ea5dd1e89 | [
"Apache-2.0"
] | null | null | null | src/truecolor/__init__.py | chanchan69/truecolor | 5633e00fc5df5183ccb4e8d8dfa7165ea5dd1e89 | [
"Apache-2.0"
] | null | null | null | src/truecolor/__init__.py | chanchan69/truecolor | 5633e00fc5df5183ccb4e8d8dfa7165ea5dd1e89 | [
"Apache-2.0"
] | null | null | null | from truecolor.functions import fg
reset = "\033[0m"
| 10.166667 | 35 | 0.655738 | 8 | 61 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.245902 | 61 | 5 | 36 | 12.2 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 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 |
36ee357374e3ea4d66bd97a77bf1d46273bd5245 | 454 | py | Python | helpers/filter_math_helper.py | sHarveyWilliams/digital-filters | ce9acbba951bfe33fa68907c3f78659231fc6e92 | [
"MIT"
] | null | null | null | helpers/filter_math_helper.py | sHarveyWilliams/digital-filters | ce9acbba951bfe33fa68907c3f78659231fc6e92 | [
"MIT"
] | null | null | null | helpers/filter_math_helper.py | sHarveyWilliams/digital-filters | ce9acbba951bfe33fa68907c3f78659231fc6e92 | [
"MIT"
] | null | null | null | import math
class FilterMath:
@staticmethod
def avg(value_array):
return sum(value_array) / len(value_array)
@staticmethod
def median(value_array):
length = len(value_array)
length_half = math.floor(length / 2)
value_array = sorted(value_array)
if length % 2:... | 22.7 | 74 | 0.632159 | 55 | 454 | 4.963636 | 0.363636 | 0.3663 | 0.29304 | 0.29304 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009231 | 0.284141 | 454 | 19 | 75 | 23.894737 | 0.830769 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.071429 | 0.5 | 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 |
7fcb510c253dee4b7937b81202f6510237c57a31 | 885 | py | Python | quantity/digger/datasource/source.py | wyjcpu/quantity | a53126a430f12b5bac81a52b2fe749cc497faf36 | [
"MIT"
] | null | null | null | quantity/digger/datasource/source.py | wyjcpu/quantity | a53126a430f12b5bac81a52b2fe749cc497faf36 | [
"MIT"
] | null | null | null | quantity/digger/datasource/source.py | wyjcpu/quantity | a53126a430f12b5bac81a52b2fe749cc497faf36 | [
"MIT"
] | 1 | 2021-05-11T09:33:59.000Z | 2021-05-11T09:33:59.000Z | # -*- coding: utf-8 -*-
class SourceWrapper(object):
""" 数据源包装器,使相关数据源支持逐步读取操作 """
def __init__(self, pcontract, data, max_length):
self.data = data
self.curbar = -1
self.pcontract = pcontract
self._max_length = max_length
def __len__(self):
return self._max_length... | 23.918919 | 53 | 0.623729 | 95 | 885 | 5.557895 | 0.410526 | 0.085227 | 0.073864 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00627 | 0.279096 | 885 | 36 | 54 | 24.583333 | 0.821317 | 0.068927 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0 | 0.043478 | 0.521739 | 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 |
7fd57e1f71ef8199a3ea7908dfde12bb6bc203a5 | 6,663 | py | Python | examples_multiprocessing/utils/bbgm_utils.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | 2 | 2015-09-18T00:17:16.000Z | 2019-02-06T04:41:29.000Z | examples_multiprocessing/utils/bbgm_utils.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | examples_multiprocessing/utils/bbgm_utils.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | '''
Created on Nov 1, 2010
@author: octi
'''
import dbbgm_batch
import math
class dbvalue:
def __init__(self, index, type):
self.id = index # unsigned integer
self.type = type # string
import math
def frameSuffixWrite(index,maxFrame):
if (index==0):
digits=1;
... | 36.211957 | 86 | 0.707639 | 915 | 6,663 | 4.843716 | 0.145355 | 0.212094 | 0.129061 | 0.1787 | 0.648466 | 0.613042 | 0.502708 | 0.377933 | 0.368457 | 0.368457 | 0 | 0.017382 | 0.171094 | 6,663 | 183 | 87 | 36.409836 | 0.785081 | 0.024764 | 0 | 0.4625 | 0 | 0 | 0.057686 | 0.053212 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01875 | null | null | 0.1375 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7fe3a3e24ea8528683f20a4acf01e24365840788 | 209 | py | Python | app.py | gonzalezf/TopicVisExplorer | 259bb5774e66c6f8881eaa9cf7cae371476b0db9 | [
"BSD-3-Clause"
] | 1 | 2020-12-16T15:36:04.000Z | 2020-12-16T15:36:04.000Z | app.py | gonzalezf/TopicVisExplorer | 259bb5774e66c6f8881eaa9cf7cae371476b0db9 | [
"BSD-3-Clause"
] | 3 | 2020-12-10T18:25:32.000Z | 2021-05-11T23:44:37.000Z | app.py | gonzalezf/TopicVisExplorer | 259bb5774e66c6f8881eaa9cf7cae371476b0db9 | [
"BSD-3-Clause"
] | null | null | null | import topicvisexplorer
import json
vis = topicvisexplorer.TopicVisExplorer("topicvisexplorer")
vis.load_scenarios(json.load(open("scenarios.json")))
app = vis.app
if __name__ == '__main__':
vis.run() | 26.125 | 59 | 0.755981 | 24 | 209 | 6.208333 | 0.5 | 0.42953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114833 | 209 | 8 | 60 | 26.125 | 0.805405 | 0 | 0 | 0 | 0 | 0 | 0.180952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
7ff01813133bd49bef218e6f235fbe6ee44d14f7 | 149 | py | Python | pictures/apps.py | kigensky/pic-galery | 8e256c1f0295e3672ab07a0125213b722d04be66 | [
"MIT"
] | 1 | 2021-05-21T06:35:04.000Z | 2021-05-21T06:35:04.000Z | pictures/apps.py | kigensky/pic-galery | 8e256c1f0295e3672ab07a0125213b722d04be66 | [
"MIT"
] | null | null | null | pictures/apps.py | kigensky/pic-galery | 8e256c1f0295e3672ab07a0125213b722d04be66 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PicturesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'pictures'
| 18.625 | 56 | 0.758389 | 17 | 149 | 6.529412 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154362 | 149 | 7 | 57 | 21.285714 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.195946 | 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 |
3d098cb3fd1f68af045894aff755abac2a26c3c7 | 55 | py | Python | PythonPi.py | Sharath-a26/PythonPi | 5cfca26755b8ecd5e00be1040940b9dee971591e | [
"MIT"
] | null | null | null | PythonPi.py | Sharath-a26/PythonPi | 5cfca26755b8ecd5e00be1040940b9dee971591e | [
"MIT"
] | null | null | null | PythonPi.py | Sharath-a26/PythonPi | 5cfca26755b8ecd5e00be1040940b9dee971591e | [
"MIT"
] | null | null | null |
import math
n = int(input())
print(round(math.pi,n))
| 9.166667 | 23 | 0.654545 | 10 | 55 | 3.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 55 | 5 | 24 | 11 | 0.765957 | 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 |
3d10e0df50bce2ca47b6191642a9d5ae6a1f820a | 442 | py | Python | pypairs/tests/test_datasets.py | fabianrost84/pypairs | 9f6a10819cb06f5a6078429ff863078880c68fb9 | [
"BSD-3-Clause"
] | 5 | 2018-05-04T08:14:22.000Z | 2020-05-02T22:12:50.000Z | pypairs/tests/test_datasets.py | fabianrost84/pypairs | 9f6a10819cb06f5a6078429ff863078880c68fb9 | [
"BSD-3-Clause"
] | 19 | 2018-10-17T10:34:21.000Z | 2021-02-17T12:35:46.000Z | pypairs/tests/test_datasets.py | fabianrost84/pypairs | 9f6a10819cb06f5a6078429ff863078880c68fb9 | [
"BSD-3-Clause"
] | 4 | 2018-05-03T09:02:01.000Z | 2019-05-18T06:33:42.000Z | from pypairs import datasets
def test_leng15():
training_data = datasets.leng15(mode='all')
if not training_data.shape == (460, 19084):
raise AssertionError()
training_data = datasets.leng15(mode='sorted')
if not training_data.shape == (247, 19084):
raise AssertionError()
traini... | 26 | 52 | 0.676471 | 52 | 442 | 5.615385 | 0.423077 | 0.246575 | 0.205479 | 0.267123 | 0.69863 | 0.369863 | 0.369863 | 0.369863 | 0 | 0 | 0 | 0.091429 | 0.208145 | 442 | 16 | 53 | 27.625 | 0.742857 | 0 | 0 | 0.272727 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 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 |
3d41d27f73d5b1df50a9ac25d59393fb507f70aa | 131 | py | Python | forge/configs.py | Pandinosaurus/3d-forge | d631e14a9351911c3e5612c73c1608d97ed547d2 | [
"BSD-3-Clause"
] | 31 | 2015-07-13T15:36:50.000Z | 2022-02-07T21:37:51.000Z | forge/configs.py | Pandinosaurus/3d-forge | d631e14a9351911c3e5612c73c1608d97ed547d2 | [
"BSD-3-Clause"
] | 109 | 2015-04-24T10:03:24.000Z | 2019-04-12T13:34:01.000Z | forge/configs.py | Pandinosaurus/3d-forge | d631e14a9351911c3e5612c73c1608d97ed547d2 | [
"BSD-3-Clause"
] | 16 | 2015-10-03T06:03:22.000Z | 2022-03-31T08:24:37.000Z | # -*- coding: utf-8 -*-
import ConfigParser
tmsConfig = ConfigParser.RawConfigParser()
tmsConfig.read('configs/terrain/tms.cfg')
| 18.714286 | 42 | 0.740458 | 14 | 131 | 6.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.099237 | 131 | 6 | 43 | 21.833333 | 0.813559 | 0.160305 | 0 | 0 | 0 | 0 | 0.212963 | 0.212963 | 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 |
3d59e5cb29188d0b1a7b902429605b64c0c02ed0 | 309 | py | Python | spec/python/test_hello_world.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/python/test_hello_world.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/python/test_hello_world.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from hello_world import HelloWorld
class TestHelloWorld(unittest.TestCase):
def test_hello_world(self):
with HelloWorld.from_file('src/fixed_struct.bin') as r:
self.assertEqual(r.one, 80)
| 28.090909 | 77 | 0.7411 | 44 | 309 | 5.090909 | 0.795455 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.184466 | 309 | 10 | 78 | 30.9 | 0.880952 | 0.242718 | 0 | 0 | 1 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3d5d09cd863c3262a30139966f75850206ce3889 | 1,488 | py | Python | mathics/machines/basic.py | kbatten/mathics | 9a392ca12e0d3b9113dcab3c230902ea6621a1a8 | [
"MIT"
] | null | null | null | mathics/machines/basic.py | kbatten/mathics | 9a392ca12e0d3b9113dcab3c230902ea6621a1a8 | [
"MIT"
] | null | null | null | mathics/machines/basic.py | kbatten/mathics | 9a392ca12e0d3b9113dcab3c230902ea6621a1a8 | [
"MIT"
] | null | null | null | import math
class Machine(object):
def __init__(self):
self.t = 0.0
def __str__(self):
return "Machine: None"
def set_time(self, t):
self.t = t
class Point(Machine):
def __init__(self, x=0, y=0):
self.x = float(x)
self.y = float(y)
def __str__(self):
... | 23.619048 | 82 | 0.552419 | 218 | 1,488 | 3.646789 | 0.192661 | 0.062893 | 0.030189 | 0.060377 | 0.135849 | 0.135849 | 0.135849 | 0.135849 | 0 | 0 | 0 | 0.006724 | 0.300403 | 1,488 | 62 | 83 | 24 | 0.756964 | 0 | 0 | 0.173913 | 0 | 0 | 0.037634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.326087 | false | 0 | 0.021739 | 0.173913 | 0.630435 | 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 |
e9e56756df72dccfc6458362545eb11d04f87ac3 | 252 | py | Python | btb/tuning/uniform.py | csala/BTB_test | 10bbf894c4ea893ace9b73c979075ae2ab301df3 | [
"MIT"
] | null | null | null | btb/tuning/uniform.py | csala/BTB_test | 10bbf894c4ea893ace9b73c979075ae2ab301df3 | [
"MIT"
] | 2 | 2018-04-30T20:28:45.000Z | 2018-05-02T18:36:30.000Z | btb/tuning/uniform.py | csala/BTB_test | 10bbf894c4ea893ace9b73c979075ae2ab301df3 | [
"MIT"
] | null | null | null | import numpy as np
from btb.tuning.tuner import BaseTuner
class Uniform(BaseTuner):
"""
Very bare_bones tuner that returns a random set of parameters each time.
"""
def predict(self, x):
return np.random.rand(x.shape[0], 1)
| 19.384615 | 76 | 0.674603 | 38 | 252 | 4.447368 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.230159 | 252 | 12 | 77 | 21 | 0.860825 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.