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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa9c034f86d430a38b526444f294458e657d972b | 2,434 | py | Python | web-api/python/ws.py | OpenBEL/openbel-framework-examples | 91aa95ae76875e1b4b791d05e8111711f16ce6c9 | [
"Apache-2.0"
] | 1 | 2016-11-01T19:30:17.000Z | 2016-11-01T19:30:17.000Z | web-api/python/ws.py | OpenBEL/openbel-framework-examples | 91aa95ae76875e1b4b791d05e8111711f16ce6c9 | [
"Apache-2.0"
] | null | null | null | web-api/python/ws.py | OpenBEL/openbel-framework-examples | 91aa95ae76875e1b4b791d05e8111711f16ce6c9 | [
"Apache-2.0"
] | null | null | null | try:
from suds.client import Client
from suds.wsse import *
except ImportError as ie:
print
print "You're missing suds, the lightweight SOAP python client."
print "(https://fedorahosted.org/suds/)"
print
raise ie
import logging
class WS:
'''
Creates the WS connection from the URL, ... | 26.456522 | 104 | 0.575596 | 305 | 2,434 | 4.534426 | 0.363934 | 0.03543 | 0.032538 | 0.023138 | 0.159074 | 0.159074 | 0.159074 | 0.159074 | 0.101229 | 0.101229 | 0 | 0.010465 | 0.293344 | 2,434 | 91 | 105 | 26.747253 | 0.793605 | 0 | 0 | 0.236111 | 0 | 0 | 0.180119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.055556 | null | null | 0.236111 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
aaafcc277bd8f5e98eb8c759f77441ab6d3ae941 | 495 | py | Python | metagraph-plugin/metagraph_katana/plugins/__init__.py | chakpongchung/katana | 3278a39b504e0aeaec30d06cf629ab97dfeb3f22 | [
"BSD-3-Clause"
] | 64 | 2020-05-22T23:32:00.000Z | 2022-03-18T10:42:45.000Z | metagraph-plugin/metagraph_katana/plugins/__init__.py | chakpongchung/katana | 3278a39b504e0aeaec30d06cf629ab97dfeb3f22 | [
"BSD-3-Clause"
] | 705 | 2020-02-17T20:50:38.000Z | 2022-03-31T16:28:09.000Z | metagraph-plugin/metagraph_katana/plugins/__init__.py | chakpongchung/katana | 3278a39b504e0aeaec30d06cf629ab97dfeb3f22 | [
"BSD-3-Clause"
] | 93 | 2020-03-18T17:34:07.000Z | 2022-03-29T02:11:09.000Z | ############################
# Libraries used as plugins
############################
# try:
# import katana as _
# has_katana = True
# except ImportError:
# has_katana = False
import metagraph
# Use this as the entry_point object
registry = metagraph.PluginRegistry("metagraph_katana")
def find_plugi... | 19.8 | 55 | 0.650505 | 54 | 495 | 5.777778 | 0.611111 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183838 | 495 | 24 | 56 | 20.625 | 0.772277 | 0.40202 | 0 | 0 | 0 | 0 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
aab51a293c3106c0d637c737226f6820c54269fc | 142 | py | Python | site/flask/lib/python2.7/site-packages/openid/consumer/__init__.py | theholyhades1/tartanHacks2015 | a801b473f21cfbd136e2a5a74423e8c72d14f900 | [
"MIT"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | site/flask/lib/python2.7/site-packages/openid/consumer/__init__.py | theholyhades1/tartanHacks2015 | a801b473f21cfbd136e2a5a74423e8c72d14f900 | [
"MIT"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | site/flask/lib/python2.7/site-packages/openid/consumer/__init__.py | theholyhades1/tartanHacks2015 | a801b473f21cfbd136e2a5a74423e8c72d14f900 | [
"MIT"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | """
This package contains the portions of the library used only when
implementing an OpenID consumer.
"""
__all__ = ['consumer', 'discover']
| 20.285714 | 64 | 0.739437 | 18 | 142 | 5.611111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 142 | 6 | 65 | 23.666667 | 0.841667 | 0.683099 | 0 | 0 | 0 | 0 | 0.432432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aabba6eb297cca79e5a19b67e6b94e6d537532f8 | 102 | py | Python | ABC_A/ABC064_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC064_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC064_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | rgb = input()
rgb = rgb.replace(" ", "")
if int(rgb) % 4 == 0:
print("YES")
else:
print("NO")
| 14.571429 | 26 | 0.490196 | 15 | 102 | 3.333333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.245098 | 102 | 6 | 27 | 17 | 0.623377 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
aabdf78917a54e355ca20490fb180387ef8def20 | 208 | py | Python | data/strategies/publishers/sciencedirect.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | data/strategies/publishers/sciencedirect.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | data/strategies/publishers/sciencedirect.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | url = "www.sciencedirect.com/(science/)?journal/(aip/)?{ID}"
extractor_args = dict(restrict_text=[r"guide\s*for\s*authors"])
template = "https://www.elsevier.com/journals/{ID}/{issn_print}/guide-for-authors"
| 52 | 82 | 0.730769 | 31 | 208 | 4.806452 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043269 | 208 | 3 | 83 | 69.333333 | 0.748744 | 0 | 0 | 0 | 0 | 0 | 0.682692 | 0.350962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aac686a500d06436685bda29d1e413ab476fd9e0 | 239 | py | Python | angr/angr/procedures/linux_kernel/brk.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 1 | 2021-05-25T21:23:38.000Z | 2021-05-25T21:23:38.000Z | angr/angr/procedures/linux_kernel/brk.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | angr/angr/procedures/linux_kernel/brk.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 1 | 2022-02-03T20:06:20.000Z | 2022-02-03T20:06:20.000Z | import angr
class brk(angr.SimProcedure):
"""
This implements the brk system call.
"""
IS_SYSCALL = True
#pylint:disable=arguments-differ
def run(self, new_brk):
return self.state.posix.set_brk(new_brk)
| 17.071429 | 48 | 0.656904 | 32 | 239 | 4.78125 | 0.78125 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238494 | 239 | 13 | 49 | 18.384615 | 0.840659 | 0.284519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
aac99b726d64bd7079a0f89f4fbbe9f4ed504f1c | 279 | py | Python | o3d/build/file_exists.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | o3d/build/file_exists.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | o3d/build/file_exists.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | #!/usr/bin/env python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os.path
import sys
sys.stdout.write(str(os.path.exists(sys.argv[1])))
sys.exit(0)
| 25.363636 | 72 | 0.741935 | 51 | 279 | 4.058824 | 0.843137 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.146953 | 279 | 10 | 73 | 27.9 | 0.844538 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
aacd604db8c0b9d98dd96ab09594f44469370b44 | 543 | py | Python | _test_projects/unittests/tests/test_index.py | oren0e/cob | f2a5d74a15f5262d7980e4cf1f1a20af29194ffb | [
"BSD-3-Clause"
] | 2 | 2019-04-07T20:19:55.000Z | 2021-05-27T10:23:31.000Z | _test_projects/unittests/tests/test_index.py | oren0e/cob | f2a5d74a15f5262d7980e4cf1f1a20af29194ffb | [
"BSD-3-Clause"
] | 126 | 2016-08-10T19:59:45.000Z | 2021-11-26T06:58:16.000Z | _test_projects/unittests/tests/test_index.py | oren0e/cob | f2a5d74a15f5262d7980e4cf1f1a20af29194ffb | [
"BSD-3-Clause"
] | 6 | 2017-11-16T12:05:47.000Z | 2021-11-24T09:21:17.000Z | import pytest
from _cob import mymodels
@pytest.fixture
def people():
people = []
for _ in range(10):
person = mymodels.Person(first_name="First", last_name="Last")
people.append(person)
mymodels.db.session.add(person)
mymodels.db.session.commit()
yield people
for person in... | 25.857143 | 87 | 0.679558 | 72 | 543 | 5 | 0.472222 | 0.155556 | 0.188889 | 0.191667 | 0.161111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.197053 | 543 | 20 | 88 | 27.15 | 0.821101 | 0 | 0 | 0.125 | 0 | 0 | 0.053407 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aacd615ce905e7072cefde66518de28ff152e995 | 198 | py | Python | source/python/AxB.py | JoHyukJun/algorithm-analysis | 3eda22ce0eeb52490702206d73c04cff1eb3e72d | [
"Apache-2.0"
] | null | null | null | source/python/AxB.py | JoHyukJun/algorithm-analysis | 3eda22ce0eeb52490702206d73c04cff1eb3e72d | [
"Apache-2.0"
] | null | null | null | source/python/AxB.py | JoHyukJun/algorithm-analysis | 3eda22ce0eeb52490702206d73c04cff1eb3e72d | [
"Apache-2.0"
] | null | null | null | '''
main.py
Created by Jo Hyuk Jun on 2020
Copyright © 2020 Jo Hyuk Jun. All rights reserved.
'''
import sys
a, b= map(int, sys.stdin.readline().rstrip().split(' '))
print(a * b) | 12.375 | 56 | 0.606061 | 32 | 198 | 3.78125 | 0.78125 | 0.099174 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 0.242424 | 198 | 16 | 57 | 12.375 | 0.746667 | 0.454545 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
aae0ef8f2daf10f6e1dad0540340f6913a2de69f | 3,656 | py | Python | geo/models/data_paths.py | stefantaubert/life | 14fe8c0d631eb22f6c3f9e41430dbcfcd1718012 | [
"MIT"
] | 2 | 2018-06-28T13:02:35.000Z | 2018-12-25T08:58:26.000Z | geo/models/data_paths.py | stefantaubert/life | 14fe8c0d631eb22f6c3f9e41430dbcfcd1718012 | [
"MIT"
] | null | null | null | geo/models/data_paths.py | stefantaubert/life | 14fe8c0d631eb22f6c3f9e41430dbcfcd1718012 | [
"MIT"
] | null | null | null | import os
from geo.data_dir_config import root
test_submission = root + "submissions/submission_val.csv"
img_list_dir = root + "image_lists/"
train_samples = img_list_dir + "train/samples.npy"
train_samples_species_map = img_list_dir + "train/species_map.py"
test_samples = img_list_dir + "test/samples.npy"
#xgb no... | 43.52381 | 91 | 0.829869 | 544 | 3,656 | 5.071691 | 0.106618 | 0.137731 | 0.206597 | 0.225082 | 0.56071 | 0.228706 | 0.12432 | 0.103661 | 0.03842 | 0 | 0 | 0.005711 | 0.089989 | 3,656 | 83 | 92 | 44.048193 | 0.823565 | 0.040208 | 0 | 0 | 0 | 0 | 0.192637 | 0.086758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04918 | 0 | 0.04918 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ab83409d818bd1110ea3e87710cf481e80d1443 | 1,840 | py | Python | shop/models.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | null | null | null | shop/models.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | null | null | null | shop/models.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | 1 | 2021-03-31T10:55:51.000Z | 2021-03-31T10:55:51.000Z | from decimal import Decimal
from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
from django_countries.fields import CountryField
class Category(models.Model):
class Meta:
verbose_name_plural = 'Categories'
name = models.CharField(max_length=25... | 36.8 | 101 | 0.722826 | 248 | 1,840 | 5.169355 | 0.310484 | 0.049922 | 0.081123 | 0.106084 | 0.359594 | 0.265991 | 0.265991 | 0.265991 | 0.265991 | 0.221529 | 0 | 0.023102 | 0.17663 | 1,840 | 49 | 102 | 37.55102 | 0.823102 | 0 | 0 | 0.263158 | 0 | 0 | 0.009783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.131579 | 0.105263 | 0.842105 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
2ab8baacea67bdd028c291e9f1cb7d788577d7fe | 128 | py | Python | Desafios/desafio014.py | MaxGabrielima/Python-Codes | 195c13821a937f0b792b0d214d19840d57068279 | [
"MIT"
] | 3 | 2021-07-31T21:10:32.000Z | 2021-11-17T02:21:28.000Z | Desafios/desafio014.py | MaxGabrielima/Python-Codes | 195c13821a937f0b792b0d214d19840d57068279 | [
"MIT"
] | null | null | null | Desafios/desafio014.py | MaxGabrielima/Python-Codes | 195c13821a937f0b792b0d214d19840d57068279 | [
"MIT"
] | null | null | null | c = float(input('Digite a temperatura em C°: '))
f = c * 1.8 + 32
print('{:.0f} C° é igual a {:.0f}° Fahrenheight'.format(c, f)) | 42.666667 | 62 | 0.585938 | 27 | 128 | 2.888889 | 0.666667 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.171875 | 128 | 3 | 62 | 42.666667 | 0.650943 | 0 | 0 | 0 | 0 | 0 | 0.527132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
2abf8f5b55a3271c14b8d68f61753c7aa9842af3 | 139 | py | Python | tally.py | ishabalu/trial2 | 2be09f6148bcf4e9b42dbf996244bbd0ac19a2fd | [
"bzip2-1.0.6"
] | null | null | null | tally.py | ishabalu/trial2 | 2be09f6148bcf4e9b42dbf996244bbd0ac19a2fd | [
"bzip2-1.0.6"
] | null | null | null | tally.py | ishabalu/trial2 | 2be09f6148bcf4e9b42dbf996244bbd0ac19a2fd | [
"bzip2-1.0.6"
] | null | null | null | import calc
veg = 120
fruits = 45
cash = 200
tot = calc.add(veg, fruits)
cashback = calc.sub(cash,tot)
print(" cash returned is",cashback)
| 17.375 | 35 | 0.71223 | 23 | 139 | 4.304348 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068376 | 0.158273 | 139 | 7 | 36 | 19.857143 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.122302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 | 0 | 0 | 2 |
2ac3be150074861869766441229866e0c4874559 | 827 | py | Python | gpytorch/priors/_compatibility.py | bdecost/gpytorch | a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a | [
"MIT"
] | null | null | null | gpytorch/priors/_compatibility.py | bdecost/gpytorch | a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a | [
"MIT"
] | null | null | null | gpytorch/priors/_compatibility.py | bdecost/gpytorch | a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a | [
"MIT"
] | 1 | 2018-11-15T10:03:40.000Z | 2018-11-15T10:03:40.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import torch
from gpytorch.priors import SmoothedBoxPrior
logger = logging.getLogger()
def _bounds_to_prior(prior, bounds, batch_size=None, log_transfor... | 31.807692 | 93 | 0.712213 | 110 | 827 | 5.1 | 0.509091 | 0.071301 | 0.114082 | 0.064171 | 0.114082 | 0.114082 | 0.114082 | 0.114082 | 0 | 0 | 0 | 0.006221 | 0.222491 | 827 | 25 | 94 | 33.08 | 0.866252 | 0 | 0 | 0 | 0 | 0 | 0.168077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.52381 | 0.047619 | 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 | 0 | 1 | 0 | 0 | 2 |
2ac5fcdeea82457e9093cd683eac335895ac57c7 | 1,069 | py | Python | format.py | my-personal-forks/dart-sublime-bundle | 580127c13c3a97d7cb0c9ac09152f68cb665946c | [
"BSD-3-Clause"
] | 182 | 2017-03-05T07:43:13.000Z | 2022-03-15T13:09:07.000Z | format.py | kkurian/dart-sublime-bundle | 429324e43ea487f8c05a4fb7002c5fd2c8c56b42 | [
"BSD-3-Clause"
] | 93 | 2015-01-25T00:10:01.000Z | 2021-02-01T12:11:31.000Z | format.py | kkurian/dart-sublime-bundle | 429324e43ea487f8c05a4fb7002c5fd2c8c56b42 | [
"BSD-3-Clause"
] | 45 | 2015-01-25T00:18:01.000Z | 2021-02-25T18:09:08.000Z | # Copyright (c) 2014, Guillermo López-Anglada. Please see the AUTHORS file for details.
# All rights reserved. Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.)
from subprocess import PIPE
from subprocess import Popen
import sublime
import sublime_plugin
from Dart.s... | 26.725 | 87 | 0.728718 | 146 | 1,069 | 5.212329 | 0.582192 | 0.085414 | 0.052562 | 0.055191 | 0.063075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004657 | 0.196445 | 1,069 | 39 | 88 | 27.410256 | 0.881257 | 0.286249 | 0 | 0 | 0 | 0 | 0.010782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.65 | 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 | 0 | 1 | 0 | 0 | 2 |
2ae9b2f58a076033eafdcc2ae6914ebfe3c67a55 | 253 | py | Python | core/testIMain.py | xrami/Door-Interactive | 1b384e03d238aeadbee3af734c8f0cc14b84ffe9 | [
"MIT"
] | null | null | null | core/testIMain.py | xrami/Door-Interactive | 1b384e03d238aeadbee3af734c8f0cc14b84ffe9 | [
"MIT"
] | null | null | null | core/testIMain.py | xrami/Door-Interactive | 1b384e03d238aeadbee3af734c8f0cc14b84ffe9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Test Interactive
import datetime
from core import config,raiDB,SMSInteractive
input = True
doorType = 'glass'
print(datetime.datetime.now())
databaseInteractive.interactive(input,doorType)
#SMSInteractive.interactive(input)
| 19.461538 | 47 | 0.802372 | 29 | 253 | 7 | 0.689655 | 0.157635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.094862 | 253 | 12 | 48 | 21.083333 | 0.882096 | 0.280632 | 0 | 0 | 0 | 0 | 0.027933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
6308db804d14d8d34ac74bffe8bddc1f9c8eaacb | 2,799 | py | Python | vcfremapper/samples.py | jeremymcrae/vcfremapper | 81b9f5f9eee2347bc33951cfa50cd8f09304e219 | [
"MIT"
] | null | null | null | vcfremapper/samples.py | jeremymcrae/vcfremapper | 81b9f5f9eee2347bc33951cfa50cd8f09304e219 | [
"MIT"
] | null | null | null | vcfremapper/samples.py | jeremymcrae/vcfremapper | 81b9f5f9eee2347bc33951cfa50cd8f09304e219 | [
"MIT"
] | null | null | null |
from collections import OrderedDict
class Sample(object):
''' hold sample data for a variant (e.g. genotype call, allele depths)
'''
# set up a class variable that will be shared by all Sample instances, ie,
# all individuals for a given variant. That way they have a common set of
# keys for the v... | 28.561224 | 78 | 0.551626 | 349 | 2,799 | 4.249284 | 0.286533 | 0.080917 | 0.040459 | 0.01416 | 0.07822 | 0.07822 | 0.032367 | 0.032367 | 0 | 0 | 0 | 0.00218 | 0.344409 | 2,799 | 97 | 79 | 28.85567 | 0.805995 | 0.156127 | 0 | 0.125 | 0 | 0 | 0.021721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.015625 | 0.125 | 0.515625 | 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 | 0 | 0 | 0 | 2 |
6325096871cc4c050552bfe988d80c09029b212c | 1,705 | py | Python | src/pymor/parallel/dummy.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | 1 | 2021-07-26T12:58:50.000Z | 2021-07-26T12:58:50.000Z | src/pymor/parallel/dummy.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | null | null | null | src/pymor/parallel/dummy.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2017 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
from copy import deepcopy
from pymor.core.interfaces import ImmutableInterface
from pymor.paralle... | 27.95082 | 97 | 0.658651 | 209 | 1,705 | 5.253589 | 0.392345 | 0.065574 | 0.065574 | 0.054645 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0.112933 | 0 | 0.008462 | 0.237537 | 1,705 | 60 | 98 | 28.416667 | 0.836154 | 0.148387 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.289474 | false | 0 | 0.078947 | 0.078947 | 0.684211 | 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 | 0 | 1 | 0 | 0 | 2 |
632609b1966503509eb4c1ec121a46f324d4da41 | 9,413 | py | Python | TomcatBrute.py | WallbreakerTeam/TomcatBrute | a8e6defb7b07f20d9870c2092fd5b398e60e6dff | [
"Unlicense"
] | 16 | 2016-09-29T09:30:53.000Z | 2021-12-23T17:44:28.000Z | TomcatBrute.py | WallbreakerTeam/TomcatBrute | a8e6defb7b07f20d9870c2092fd5b398e60e6dff | [
"Unlicense"
] | 1 | 2016-10-30T13:50:24.000Z | 2016-11-04T13:00:03.000Z | TomcatBrute.py | WallbreakerTeam/TomcatBrute | a8e6defb7b07f20d9870c2092fd5b398e60e6dff | [
"Unlicense"
] | 18 | 2016-09-30T06:24:30.000Z | 2019-06-12T08:57:45.000Z | # encoding: utf-8
'''
Created on 2016-9-9
@author: lynn in WallbreakerTeam
'''
from burp import IBurpExtender, ITab
from javax import swing
from java.lang import Short
class BurpExtender(IBurpExtender, ITab):
'''
get url from proxy history window
'''
def registerExtenderCallbacks(sel... | 40.926087 | 144 | 0.576437 | 816 | 9,413 | 6.503676 | 0.310049 | 0.064443 | 0.053891 | 0.063689 | 0.233654 | 0.166384 | 0.101752 | 0.089316 | 0.080648 | 0.063689 | 0 | 0.027895 | 0.295442 | 9,413 | 229 | 145 | 41.104803 | 0.772316 | 0.038457 | 0 | 0.120482 | 0 | 0.012048 | 0.05757 | 0.007417 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.054217 | 0.054217 | null | null | 0.048193 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2d4b237f26a4ef81f41532ad12fd2bcd37cb4946 | 2,188 | py | Python | src/vector2D.py | germtb/PyLight | 5172fce608b9e41abeba45aed3e21f2008402667 | [
"MIT"
] | null | null | null | src/vector2D.py | germtb/PyLight | 5172fce608b9e41abeba45aed3e21f2008402667 | [
"MIT"
] | null | null | null | src/vector2D.py | germtb/PyLight | 5172fce608b9e41abeba45aed3e21f2008402667 | [
"MIT"
] | null | null | null | from cmath import sqrt
from math import hypot
from utils import near_equal
class Vector2D:
def __init__(self, x, y):
self.x = x
self.y = y
def normalized(self):
modulus = sqrt(self.x * self.x + self.y * self.y)
return Vector2D(self.x / modulus, self.y / modulus)
def dot(s... | 26.047619 | 74 | 0.584552 | 326 | 2,188 | 3.769939 | 0.174847 | 0.069162 | 0.034174 | 0.112286 | 0.362897 | 0.270138 | 0.270138 | 0.270138 | 0.139138 | 0.078112 | 0 | 0.032218 | 0.26234 | 2,188 | 83 | 75 | 26.361446 | 0.729244 | 0 | 0 | 0.035714 | 0 | 0 | 0.007313 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.375 | false | 0 | 0.071429 | 0.196429 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
2d6450541f1eff82c6df22ab0631864676631e5a | 2,913 | py | Python | inventory/api/api_views.py | jeff-eng/Commune | 647674c7817068271e18b61276cbcdc58d8e0996 | [
"MIT"
] | 1 | 2022-03-21T13:46:33.000Z | 2022-03-21T13:46:33.000Z | inventory/api/api_views.py | jeff-eng/Commune | 647674c7817068271e18b61276cbcdc58d8e0996 | [
"MIT"
] | 1 | 2022-03-31T00:38:09.000Z | 2022-03-31T00:38:09.000Z | inventory/api/api_views.py | jeff-eng/Commune | 647674c7817068271e18b61276cbcdc58d8e0996 | [
"MIT"
] | null | null | null | from rest_framework import permissions
from rest_framework.generics import ListAPIView, CreateAPIView, RetrieveUpdateDestroyAPIView
from rest_framework.exceptions import ValidationError
from inventory.api.serializers import AssetSerializer, BorrowerSerializer, CategorySerializer
from inventory.models import Asset, Borr... | 38.328947 | 93 | 0.756608 | 280 | 2,913 | 7.764286 | 0.332143 | 0.055198 | 0.103036 | 0.195032 | 0.518399 | 0.518399 | 0.518399 | 0.480221 | 0.394204 | 0.369365 | 0 | 0.000412 | 0.166495 | 2,913 | 76 | 94 | 38.328947 | 0.894975 | 0.047717 | 0 | 0.482143 | 0 | 0 | 0.02908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.107143 | 0.089286 | 0.875 | 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 | 0 | 1 | 0 | 0 | 2 |
2d656e06d5638f0e7850229dcdca031e34d85e0d | 463 | py | Python | envios/api/models.py | serivt/aes-amazoom | 4b9a9dbc38f9fc85519941eee98bcd258897ac25 | [
"MIT"
] | null | null | null | envios/api/models.py | serivt/aes-amazoom | 4b9a9dbc38f9fc85519941eee98bcd258897ac25 | [
"MIT"
] | null | null | null | envios/api/models.py | serivt/aes-amazoom | 4b9a9dbc38f9fc85519941eee98bcd258897ac25 | [
"MIT"
] | null | null | null | from django.db import models
class Shipping(models.Model):
product = models.CharField(max_length=2023)
address = models.CharField(max_length=2023)
amount = models.IntegerField()
total_price = models.FloatField()
def __str__(self):
return self.product
@property
def precio(self):
... | 23.15 | 47 | 0.682505 | 56 | 463 | 5.482143 | 0.464286 | 0.130293 | 0.117264 | 0.156352 | 0.18241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.222462 | 463 | 19 | 48 | 24.368421 | 0.830556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
2d6abf8880fce3d90621d1b350e83496ccbde7ee | 202 | py | Python | PubNubPublishARM/GetUniqueId.py | IDEO-coLAB/demo-vehicle-rec-microservice | aa7b4143533dd78323977f7f8862bbdacdfe85e8 | [
"MIT"
] | 1 | 2017-09-12T22:22:44.000Z | 2017-09-12T22:22:44.000Z | PubNubPublishARM/GetUniqueId.py | IDEO-coLAB/demo-vehicle-rec-microservice | aa7b4143533dd78323977f7f8862bbdacdfe85e8 | [
"MIT"
] | null | null | null | PubNubPublishARM/GetUniqueId.py | IDEO-coLAB/demo-vehicle-rec-microservice | aa7b4143533dd78323977f7f8862bbdacdfe85e8 | [
"MIT"
] | 1 | 2017-09-01T23:16:02.000Z | 2017-09-01T23:16:02.000Z | # File : GetUniqueId.py
# Subprogram to generate a unique id for Pubnub message
# Author: Sooraj Bopanna
import uuid
def GenerateId():
unique_id=uuid.uuid1()
str_id=str(unique_id)
return str_id
| 15.538462 | 55 | 0.752475 | 31 | 202 | 4.774194 | 0.709677 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.168317 | 202 | 12 | 56 | 16.833333 | 0.875 | 0.485149 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2d6c26bef68766892f7c39f8d331a162ec7e3837 | 949 | py | Python | api/models.py | JavierBarajas552/drf_shoestore_frontend | 2cee29ab8ad5a63228a84f7ceebe3625ac702532 | [
"MIT"
] | null | null | null | api/models.py | JavierBarajas552/drf_shoestore_frontend | 2cee29ab8ad5a63228a84f7ceebe3625ac702532 | [
"MIT"
] | null | null | null | api/models.py | JavierBarajas552/drf_shoestore_frontend | 2cee29ab8ad5a63228a84f7ceebe3625ac702532 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Manufacturer(models.Model):
name = models.CharField(max_length=100)
website = models.URLField()
class ShoeType(models.Model):
style = models.CharField(max_length=20)
class ShoeColor(models.Model):
color_name = models.CharField(max_leng... | 33.892857 | 137 | 0.69863 | 114 | 949 | 5.701754 | 0.403509 | 0.138462 | 0.166154 | 0.221538 | 0.18 | 0.095385 | 0 | 0 | 0 | 0 | 0 | 0.018382 | 0.140148 | 949 | 27 | 138 | 35.148148 | 0.778186 | 0.02529 | 0 | 0 | 0 | 0 | 0.097508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.941176 | 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 | 0 | 1 | 0 | 0 | 2 |
2d78aec8434f16fcf58dc608596a99e6ac15162a | 11,077 | py | Python | skeleton/models.py | l99fiamingo/ioniCup | ef69ee9e651a6f3482444ffcdc43102f8d02828d | [
"MIT"
] | 1 | 2019-01-23T19:23:00.000Z | 2019-01-23T19:23:00.000Z | skeleton/models.py | l99fiamingo/ioniCup | ef69ee9e651a6f3482444ffcdc43102f8d02828d | [
"MIT"
] | null | null | null | skeleton/models.py | l99fiamingo/ioniCup | ef69ee9e651a6f3482444ffcdc43102f8d02828d | [
"MIT"
] | null | null | null | from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
from django.template.defaultfilters import slugify
# Create your models here.
class Tournament(models.Model):
year = models.CharField(max_length=99)
title = models.CharField(max_length=99, blank=True)
slug... | 47.13617 | 173 | 0.685926 | 1,384 | 11,077 | 5.328757 | 0.147399 | 0.07322 | 0.070508 | 0.092203 | 0.749424 | 0.710644 | 0.658983 | 0.603254 | 0.550237 | 0.49939 | 0 | 0.013144 | 0.162047 | 11,077 | 234 | 174 | 47.337607 | 0.781405 | 0.008306 | 0 | 0.367021 | 0 | 0 | 0.068149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090426 | false | 0 | 0.026596 | 0.058511 | 0.723404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2d7fe9938a80c9399cec5b55620a24fe39137544 | 680 | py | Python | 03/spiral_memory.py | redfast00/advent_of_code_2017 | e5d56765b05f11935a0c585e25a55bfabecef0ef | [
"MIT"
] | null | null | null | 03/spiral_memory.py | redfast00/advent_of_code_2017 | e5d56765b05f11935a0c585e25a55bfabecef0ef | [
"MIT"
] | null | null | null | 03/spiral_memory.py | redfast00/advent_of_code_2017 | e5d56765b05f11935a0c585e25a55bfabecef0ef | [
"MIT"
] | null | null | null | def get_level(cell):
i = 0
while cell > (2*i+1)**2:
i += 1
return i
def find_coord(cell):
level = get_level(cell)
x = level
y = -level
current = (2*level+1)**2
while x != -level:
if current == cell:
return (x, y)
x-=1
current -= 1
while y !... | 20.606061 | 28 | 0.442647 | 91 | 680 | 3.263736 | 0.208791 | 0.094276 | 0.188552 | 0.242424 | 0.565657 | 0.565657 | 0.565657 | 0.565657 | 0.565657 | 0.565657 | 0 | 0.056555 | 0.427941 | 680 | 32 | 29 | 21.25 | 0.706941 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0.03125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2d9d962836b7caf558cda08216cac412faafa494 | 473 | py | Python | quoteline.py | G4me4u/typeformer | 247b50aa4cee2a0f2e0d224cb3eaebbb2f3b6bc0 | [
"MIT"
] | null | null | null | quoteline.py | G4me4u/typeformer | 247b50aa4cee2a0f2e0d224cb3eaebbb2f3b6bc0 | [
"MIT"
] | null | null | null | quoteline.py | G4me4u/typeformer | 247b50aa4cee2a0f2e0d224cb3eaebbb2f3b6bc0 | [
"MIT"
] | null | null | null |
class QuoteLine:
def __init__(self, lineText, lineNumber, origin):
self.lineText = lineText
self.lineNumber = lineNumber
self.origin = origin
self.renderedLine = None
def renderLine(self, font, color):
'''
Renders the line using the given font and color.
'''
self.renderedLine = font.render(self.l... | 20.565217 | 62 | 0.708245 | 55 | 473 | 6.018182 | 0.436364 | 0.193353 | 0.181269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 473 | 23 | 63 | 20.565217 | 0.85974 | 0.215645 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2d9dfec471bec82fe10dd82b2351003680e9e0ef | 534 | py | Python | utils/ConstantUtils.py | JoeBuzh/DeepWater | 9d01167517c91fb2024d2abbcbaa53b072c4fdbf | [
"MIT"
] | 1 | 2020-12-16T07:58:51.000Z | 2020-12-16T07:58:51.000Z | utils/ConstantUtils.py | JoeBuzh/DeepWater | 9d01167517c91fb2024d2abbcbaa53b072c4fdbf | [
"MIT"
] | null | null | null | utils/ConstantUtils.py | JoeBuzh/DeepWater | 9d01167517c91fb2024d2abbcbaa53b072c4fdbf | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
'''
@Filename : ConstantUtils.py
@Datetime : 2020/09/27 17:10:12
@Author : Joe-Bu
@version : 1.0
'''
from enum import Enum
class MonitorItem(Enum):
"""
Water Monitoring Items.
"""
ITEMS = ['watertemp', 'pH', 'DO', 'conductivity', 'turbidity']
INDEX = ['cod... | 21.36 | 66 | 0.580524 | 62 | 534 | 4.967742 | 0.709677 | 0.090909 | 0.058442 | 0.097403 | 0.188312 | 0.188312 | 0 | 0 | 0 | 0 | 0 | 0.044888 | 0.249064 | 534 | 25 | 67 | 21.36 | 0.723192 | 0.292135 | 0 | 0.2 | 0 | 0 | 0.132022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.8 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
2dab6e44f5f17e14c61408a9bd6b65c226b9dc15 | 17,447 | py | Python | pysnmp-with-texts/CHIPFDDINET-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CHIPFDDINET-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CHIPFDDINET-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CHIPFDDINET-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHIPFDDINET-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:48:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | 109.72956 | 2,728 | 0.729237 | 2,429 | 17,447 | 5.236723 | 0.135858 | 0.020912 | 0.022877 | 0.030503 | 0.440487 | 0.331604 | 0.323742 | 0.299843 | 0.233805 | 0.209748 | 0 | 0.109454 | 0.119734 | 17,447 | 158 | 2,729 | 110.424051 | 0.718778 | 0.018571 | 0 | 0 | 0 | 0.039735 | 0.176639 | 0.005317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046358 | 0 | 0.046358 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2db50956e427fa3a8dec0bcb0f7177bf182170e8 | 1,090 | py | Python | python/022_Generate_Parentheses.py | JerryCatLeung/leetcode | ac33a66d7754810ca40fc4fd595b633d30d9afc4 | [
"Apache-2.0"
] | null | null | null | python/022_Generate_Parentheses.py | JerryCatLeung/leetcode | ac33a66d7754810ca40fc4fd595b633d30d9afc4 | [
"Apache-2.0"
] | null | null | null | python/022_Generate_Parentheses.py | JerryCatLeung/leetcode | ac33a66d7754810ca40fc4fd595b633d30d9afc4 | [
"Apache-2.0"
] | null | null | null | # class Solution(object):
# def generateParenthesis(self, n):
# """
# :type n: int
# :rtype: List[str]
# """
class Solution(object):
def generateParenthesis(self, n):
if n == 1:
return ['()']
last_list = self.generateParenthesis(n - 1)
... | 32.058824 | 67 | 0.446789 | 106 | 1,090 | 4.575472 | 0.311321 | 0.057732 | 0.160825 | 0.16701 | 0.189691 | 0.189691 | 0.189691 | 0 | 0 | 0 | 0 | 0.0125 | 0.412844 | 1,090 | 33 | 68 | 33.030303 | 0.745313 | 0.509174 | 0 | 0 | 1 | 0 | 0.010373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
2dba3f56414ab0a1b51595f0c045d0fedc2787be | 515 | py | Python | aioairtable/helpers.py | gleb-chipiga/aioairtable | d6144475049624713ed5853f3402ed1ccfc67eb7 | [
"MIT"
] | null | null | null | aioairtable/helpers.py | gleb-chipiga/aioairtable | d6144475049624713ed5853f3402ed1ccfc67eb7 | [
"MIT"
] | null | null | null | aioairtable/helpers.py | gleb-chipiga/aioairtable | d6144475049624713ed5853f3402ed1ccfc67eb7 | [
"MIT"
] | null | null | null | import json
from functools import partial
from typing import Final
__all__ = ('json_dumps', 'get_python_version', 'get_software', 'debug')
json_dumps: Final = partial(json.dumps, ensure_ascii=False)
def get_python_version() -> str:
from sys import version_info as version
return f'{version.major}.{version.mi... | 23.409091 | 71 | 0.732039 | 68 | 515 | 5.132353 | 0.426471 | 0.077364 | 0.137536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151456 | 515 | 21 | 72 | 24.52381 | 0.798627 | 0 | 0 | 0 | 0 | 0 | 0.285437 | 0.196117 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.384615 | 0.076923 | 0.846154 | 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 | 0 | 0 | 0 | 2 |
2dbc72e9243483f58de94bb12eea207820f0828d | 1,975 | py | Python | winton_kafka_streams/processor/_context.py | szczeles/winton-kafka-streams | 8034cdffe4bf2ac3fa4fdf7210101dc6cdb97ed6 | [
"Apache-2.0"
] | null | null | null | winton_kafka_streams/processor/_context.py | szczeles/winton-kafka-streams | 8034cdffe4bf2ac3fa4fdf7210101dc6cdb97ed6 | [
"Apache-2.0"
] | null | null | null | winton_kafka_streams/processor/_context.py | szczeles/winton-kafka-streams | 8034cdffe4bf2ac3fa4fdf7210101dc6cdb97ed6 | [
"Apache-2.0"
] | 1 | 2019-04-28T23:31:24.000Z | 2019-04-28T23:31:24.000Z | """
Processor context is the link to kafka from individual processor objects
"""
import logging
import functools
from .._error import KafkaStreamsError
log = logging.getLogger(__name__)
def _raiseIfNullRecord(fn):
@functools.wraps(fn)
def _inner(*args, **kwargs):
if args[0].currentRecord is None:
... | 23.795181 | 105 | 0.644051 | 222 | 1,975 | 5.585586 | 0.378378 | 0.053226 | 0.048387 | 0.087097 | 0.079032 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000697 | 0.273418 | 1,975 | 82 | 106 | 24.085366 | 0.863415 | 0.147848 | 0 | 0.222222 | 0 | 0 | 0.121815 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.222222 | false | 0.044444 | 0.066667 | 0.088889 | 0.466667 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2dcfcb12fab28c15786bdd0a1ac2f2a320cb3de6 | 1,061 | py | Python | stubs.min/Autodesk/Revit/DB/__init___parts/ExportUnit.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-25T14:30:18.000Z | 2017-07-25T14:30:18.000Z | stubs.min/Autodesk/Revit/DB/__init___parts/ExportUnit.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Autodesk/Revit/DB/__init___parts/ExportUnit.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class ExportUnit(Enum,IComparable,IFormattable,IConvertible):
"""
An enumerated type listing possible target units for CAD Export.
enum ExportUnit,values: Centimeter (4),Default (0),Foot (2),Inch (1),Meter (5),Millimeter (3)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx._... | 27.921053 | 215 | 0.666352 | 143 | 1,061 | 4.27972 | 0.384615 | 0.130719 | 0.137255 | 0.147059 | 0.210784 | 0.210784 | 0.210784 | 0.184641 | 0.184641 | 0.184641 | 0 | 0.006857 | 0.175306 | 1,061 | 37 | 216 | 28.675676 | 0.692571 | 0.460886 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.357143 | 0 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2dd78a26eef090428c741f97c7b9fdc1547b8f58 | 120 | py | Python | taller 5/punto 7.py | 9juandromero7/controlrepeticion | 9c927484a0a5850163c03de7d75cca9d1eb3703a | [
"MIT"
] | null | null | null | taller 5/punto 7.py | 9juandromero7/controlrepeticion | 9c927484a0a5850163c03de7d75cca9d1eb3703a | [
"MIT"
] | null | null | null | taller 5/punto 7.py | 9juandromero7/controlrepeticion | 9c927484a0a5850163c03de7d75cca9d1eb3703a | [
"MIT"
] | null | null | null | while True:
X, M = map(int, input().split())
if X == 0 and M == 0:
break
Y = X * M
print(Y) | 20 | 37 | 0.416667 | 20 | 120 | 2.5 | 0.7 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.416667 | 120 | 6 | 38 | 20 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ded8b588b416944b635305d7fb615a960c61d24 | 323 | py | Python | Introduction.py | mudgalsaurabh/IEEE-Python_Workshop-2018 | dd4f9e0bfe35448161724122116afd7d5214fc05 | [
"MIT"
] | 3 | 2018-03-19T09:07:10.000Z | 2018-08-27T13:35:51.000Z | Introduction.py | mudgalsaurabh/IEEE-Python_Workshop-2018 | dd4f9e0bfe35448161724122116afd7d5214fc05 | [
"MIT"
] | null | null | null | Introduction.py | mudgalsaurabh/IEEE-Python_Workshop-2018 | dd4f9e0bfe35448161724122116afd7d5214fc05 | [
"MIT"
] | null | null | null | age = 5+(8%3)-3+(3*10)/2
greetings = "Welcome to IEEE Python Workshop 2018 edition. It's my pleasure to conduct today's workshop for you."
name = "Saurabh Mudgal"
major = "mechanical engineering"
print(greetings)
print("My name is " + name + ".")
print("I am " + str(age) + " years old and am majoring in " + major + ".... | 35.888889 | 113 | 0.668731 | 52 | 323 | 4.153846 | 0.730769 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045113 | 0.176471 | 323 | 8 | 114 | 40.375 | 0.766917 | 0 | 0 | 0 | 0 | 0.142857 | 0.566563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
9300b92923cb3c8a613fcde4793e644ef35fee3f | 415 | py | Python | code/python/qppMeasures/sARE.py | Zendelo/QPP-EnhancedEval | 80ad73eecdb4a5101aa57cff781b5d728944fab0 | [
"MIT"
] | 3 | 2021-01-16T06:08:43.000Z | 2021-11-11T07:58:20.000Z | code/python/qppMeasures/sARE.py | Zendelo/QPP-EnhancedEval | 80ad73eecdb4a5101aa57cff781b5d728944fab0 | [
"MIT"
] | null | null | null | code/python/qppMeasures/sARE.py | Zendelo/QPP-EnhancedEval | 80ad73eecdb4a5101aa57cff781b5d728944fab0 | [
"MIT"
] | null | null | null | import numpy as np
def sARESingle(qppColRanks, msrDFRanks, mapper):
refMsr = mapper(qppColRanks.name)
return (np.abs(qppColRanks - msrDFRanks[refMsr])/len(qppColRanks))
def sARE(msrDF, qppDF, rankType, mapper):
#convert to ranks
msrDFRanks = msrDF.rank(method=rankType)
qppDFRanks = qppDF.rank(... | 19.761905 | 72 | 0.722892 | 49 | 415 | 6.122449 | 0.55102 | 0.14 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 415 | 20 | 73 | 20.75 | 0.869565 | 0.038554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9312ee00b0aa9a3ffcace6c965f9c26359ba0160 | 538 | py | Python | mojito/event/EventGenerator.py | PPACI/mojito | 055fd18be99455760ba239a2cbeebf5b1d626ff7 | [
"Apache-2.0"
] | 2 | 2018-05-26T09:01:41.000Z | 2019-05-17T05:48:45.000Z | mojito/event/EventGenerator.py | PPACI/mojito | 055fd18be99455760ba239a2cbeebf5b1d626ff7 | [
"Apache-2.0"
] | null | null | null | mojito/event/EventGenerator.py | PPACI/mojito | 055fd18be99455760ba239a2cbeebf5b1d626ff7 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Any, Dict, List
class EventGenerator(ABC):
@abstractmethod
def generate(self) -> Dict[str, Any]:
"""
Generate a random event
:return: a dict like {property_name: value}
"""
raise NotImplementedError
@abstractm... | 23.391304 | 76 | 0.624535 | 59 | 538 | 5.677966 | 0.542373 | 0.101493 | 0.095522 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297398 | 538 | 22 | 77 | 24.454545 | 0.886243 | 0.321561 | 0 | 0.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93145bf7aa5441d416c39d58820c7753f13ba2da | 433 | py | Python | geo_college/geocode_tests.py | codelucas/antchatter | 7a2664b71fec904f3d52eead17ce7b6354a0697c | [
"Apache-2.0"
] | 1 | 2015-08-02T04:56:17.000Z | 2015-08-02T04:56:17.000Z | geo_college/geocode_tests.py | codelucas/antchatter | 7a2664b71fec904f3d52eead17ce7b6354a0697c | [
"Apache-2.0"
] | null | null | null | geo_college/geocode_tests.py | codelucas/antchatter | 7a2664b71fec904f3d52eead17ce7b6354a0697c | [
"Apache-2.0"
] | null | null | null | import os
import pickle
import codecs
import json
PARENT_DIR = os.path.dirname(os.path.abspath(__file__))
GEO_FILE = os.path.join(PARENT_DIR, 'college_geocode.txt')
geo_dat_prev = str(codecs.open(GEO_FILE, 'r', 'utf8').read())
geo_json = pickle.loads(geo_dat_prev)
for geo in geo_json[:10]:
print 'loc_range', geo... | 25.470588 | 61 | 0.732102 | 73 | 433 | 4.041096 | 0.465753 | 0.061017 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.120092 | 433 | 17 | 62 | 25.470588 | 0.766404 | 0 | 0 | 0 | 0 | 0 | 0.179724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.307692 | null | null | 0.307692 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
931a44d73eb416875e3fa728b1831a0f0e175e1b | 236 | py | Python | build.py | ledocc/conan-turtle | 6724f8076fc9e6b394a0fa61342f04078154d7cd | [
"BSL-1.0"
] | 1 | 2018-12-17T00:05:11.000Z | 2018-12-17T00:05:11.000Z | build.py | ledocc/conan-turtle | 6724f8076fc9e6b394a0fa61342f04078154d7cd | [
"BSL-1.0"
] | null | null | null | build.py | ledocc/conan-turtle | 6724f8076fc9e6b394a0fa61342f04078154d7cd | [
"BSL-1.0"
] | null | null | null | from cpt.packager import ConanMultiPackager, tools
if __name__ == "__main__":
builder = ConanMultiPackager(
reference="turtle/{}".format( tools.load("version.txt") )
)
builder.add_common_builds()
builder.run()
| 23.6 | 65 | 0.682203 | 24 | 236 | 6.291667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 236 | 9 | 66 | 26.222222 | 0.786458 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
931ab6d2877cbcf4d7148b5b28d9a753af6d74dc | 468 | py | Python | torchcde/__init__.py | jb-c/torchcde | 51ac556e5ec545ff2d15aaa1849ef5e7cd84f5e3 | [
"Apache-2.0"
] | 247 | 2020-09-10T10:42:46.000Z | 2022-03-30T18:06:14.000Z | torchcde/__init__.py | jb-c/torchcde | 51ac556e5ec545ff2d15aaa1849ef5e7cd84f5e3 | [
"Apache-2.0"
] | 29 | 2020-09-18T12:13:49.000Z | 2022-03-27T02:57:26.000Z | torchcde/__init__.py | jb-c/torchcde | 51ac556e5ec545ff2d15aaa1849ef5e7cd84f5e3 | [
"Apache-2.0"
] | 36 | 2020-09-11T13:26:49.000Z | 2022-03-29T12:06:40.000Z | from .interpolation_base import InterpolationBase
from .interpolation_cubic import natural_cubic_spline_coeffs, natural_cubic_coeffs, CubicSpline
from .interpolation_linear import linear_interpolation_coeffs, LinearInterpolation
from .interpolation_hermite_cubic_bdiff import hermite_cubic_coefficients_with_backward_dif... | 46.8 | 99 | 0.888889 | 57 | 468 | 6.859649 | 0.54386 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.076923 | 468 | 9 | 100 | 52 | 0.898148 | 0 | 0 | 0 | 0 | 0 | 0.010684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 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 | 0 | 0 | 0 | 2 |
932139a2e94537b81bbe5c85461632dc9970297c | 747 | py | Python | desafios/Mundo 1/Ex018.py | duartecgustavo/Python---Estudos- | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | 6 | 2021-01-20T20:43:39.000Z | 2021-08-13T15:44:10.000Z | desafios/Mundo 1/Ex018.py | duartecgustavo/PythonProgress | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | null | null | null | desafios/Mundo 1/Ex018.py | duartecgustavo/PythonProgress | 13a47f115dd24ef475addaed7b0c860a7b3817ca | [
"MIT"
] | 1 | 2020-09-06T03:34:19.000Z | 2020-09-06T03:34:19.000Z | # Desafio 18 - Aula 8 : Faça um programa que leia um angulo qualquer e calcule seu SENO, COSSENO E TANGENTE
import math
angulo = float(input('Digite um \033[4:32mangulo\033[m: '))
# no próprio python já possuem os calculos prontos para o SENO, COSSENO e TANGENTE
seno = math.sin(math.radians(angulo))
cos = math.cos(m... | 49.8 | 107 | 0.718876 | 141 | 747 | 3.808511 | 0.41844 | 0.074488 | 0.094972 | 0.050279 | 0.234637 | 0.189944 | 0.189944 | 0.189944 | 0.189944 | 0.189944 | 0 | 0.137615 | 0.124498 | 747 | 15 | 108 | 49.8 | 0.683486 | 0.360107 | 0 | 0 | 0 | 0.375 | 0.593684 | 0.456842 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93256527e696b17dd5a4f025abd87c6d2479e28a | 1,444 | py | Python | dtech_instagram/InstagramAPI/src/http/Response/LoginResponse.py | hideki-saito/InstagramAPP_Flask | c3ee6f10d35edb74f0f82f4370faca8f0c25200c | [
"MIT"
] | 126 | 2016-05-18T19:20:32.000Z | 2022-02-12T10:30:50.000Z | dtech_instagram/InstagramAPI/src/http/Response/LoginResponse.py | hideki-saito/InstagramAPP_Flask | c3ee6f10d35edb74f0f82f4370faca8f0c25200c | [
"MIT"
] | 41 | 2016-08-07T17:32:37.000Z | 2022-01-13T00:25:31.000Z | dtech_instagram/InstagramAPI/src/http/Response/LoginResponse.py | hideki-saito/InstagramAPP_Flask | c3ee6f10d35edb74f0f82f4370faca8f0c25200c | [
"MIT"
] | 61 | 2016-07-07T14:18:38.000Z | 2021-03-28T12:48:26.000Z | from .Response import Response
class LoginResponse(Response):
def __init__(self, response):
self.username = None
self.has_anonymous_profile_picture = None
self.profile_pic_url = None
self.profile_pic_id = None
self.full_name = None
self.pk = None
self.is_pr... | 30.723404 | 108 | 0.662742 | 171 | 1,444 | 5.292398 | 0.239766 | 0.070718 | 0.106077 | 0.154696 | 0.152486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243075 | 1,444 | 46 | 109 | 31.391304 | 0.827996 | 0 | 0 | 0 | 0 | 0 | 0.142659 | 0.020083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.029412 | 0.205882 | 0.5 | 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 | 0 | 0 | 0 | 2 |
9339b4cbef3eba0c243be2f938185db692a49e91 | 954 | py | Python | vector.py | qsctr/flocking | c4f5c5c6ea4fc4dd73270810bd4b24f944bd4fe8 | [
"MIT"
] | null | null | null | vector.py | qsctr/flocking | c4f5c5c6ea4fc4dd73270810bd4b24f944bd4fe8 | [
"MIT"
] | null | null | null | vector.py | qsctr/flocking | c4f5c5c6ea4fc4dd73270810bd4b24f944bd4fe8 | [
"MIT"
] | null | null | null | from math import atan2, degrees, hypot
from operator import add, mod, mul, sub, truediv
def average(vectors):
return sum(vectors) / len(vectors) if vectors else Vector()
def apply(op):
return lambda self, a: Vector(map(op, self, a if hasattr(a, '__iter__') else (a, a)))
class Vector:
def __init__(self, ... | 25.105263 | 89 | 0.654088 | 124 | 954 | 4.709677 | 0.33871 | 0.10274 | 0.075342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005487 | 0.235849 | 954 | 37 | 90 | 25.783784 | 0.79561 | 0 | 0 | 0.074074 | 0 | 0 | 0.008386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.074074 | 0.259259 | 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 | 0 | 0 | 0 | 2 |
9339da420020a5cb94f758240796ebe3c9e1f579 | 730 | py | Python | highlevel/simulation/entity/simulation_state.py | outech-robotic/code | b57acba3faae606f4d0c3cf210bc0716d7fef4e7 | [
"MIT"
] | 7 | 2020-04-15T16:42:56.000Z | 2021-12-25T10:12:13.000Z | highlevel/simulation/entity/simulation_state.py | outech-robotic/code | b57acba3faae606f4d0c3cf210bc0716d7fef4e7 | [
"MIT"
] | 37 | 2020-04-15T15:49:31.000Z | 2022-02-27T03:53:48.000Z | highlevel/simulation/entity/simulation_state.py | outech-robotic/code | b57acba3faae606f4d0c3cf210bc0716d7fef4e7 | [
"MIT"
] | null | null | null | """
SimulationState of a simulation at a given moment.
"""
from __future__ import annotations
from dataclasses import dataclass
from typing import List, Deque
from highlevel.util.type import Millisecond, TickPerSec
from highlevel.util.geometry.vector import Vector2
@dataclass
class Cup:
"""
A cup.
"""
... | 19.72973 | 55 | 0.721918 | 89 | 730 | 5.741573 | 0.52809 | 0.050881 | 0.066536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005146 | 0.20137 | 730 | 36 | 56 | 20.277778 | 0.871355 | 0.165753 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
933ab86179db3b5ea29aed79487577d4e208a5ef | 6,056 | py | Python | labtronyx/bases/driver.py | protonyx/labtronyx | e5f6ea306d7135f640e1a5f0cd7c3302facb911a | [
"MIT"
] | 4 | 2017-05-13T21:37:33.000Z | 2021-05-09T19:14:33.000Z | labtronyx/bases/driver.py | protonyx/labtronyx | e5f6ea306d7135f640e1a5f0cd7c3302facb911a | [
"MIT"
] | 21 | 2015-07-24T20:02:03.000Z | 2015-11-18T04:46:09.000Z | labtronyx/bases/driver.py | protonyx/labtronyx | e5f6ea306d7135f640e1a5f0cd7c3302facb911a | [
"MIT"
] | 3 | 2017-04-17T12:16:24.000Z | 2021-08-13T09:09:07.000Z | """
Getting Started
---------------
All Drivers extend :class:`labtronyx.DriverBase`::
import labtronyx
class DRIVER_CLASS_NAME(labtronyx.DriverBase):
pass
Required Attributes
-------------------
Drivers require some attributes to be defined in order to specify which resource types and interfaces t... | 39.070968 | 120 | 0.623349 | 676 | 6,056 | 5.548817 | 0.409763 | 0.02346 | 0.007198 | 0.007998 | 0.047987 | 0.036257 | 0.020794 | 0.020794 | 0 | 0 | 0 | 0.00402 | 0.219617 | 6,056 | 155 | 121 | 39.070968 | 0.789674 | 0.800859 | 0 | 0.076923 | 0 | 0 | 0.106849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.115385 | 0.038462 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93467d93f60c44aa27abbe634889d41e7faba558 | 1,291 | py | Python | nhais-adaptor/edifact/incoming/models/message.py | tomzo/integration-adaptors | d4f296d3e44475df6f69a78a27fac6ed5b67513b | [
"Apache-2.0"
] | 15 | 2019-08-06T16:08:12.000Z | 2021-05-24T13:14:39.000Z | nhais-adaptor/edifact/incoming/models/message.py | tomzo/integration-adaptors | d4f296d3e44475df6f69a78a27fac6ed5b67513b | [
"Apache-2.0"
] | 75 | 2019-04-25T13:59:02.000Z | 2021-09-15T06:05:36.000Z | nhais-adaptor/edifact/incoming/models/message.py | tomzo/integration-adaptors | d4f296d3e44475df6f69a78a27fac6ed5b67513b | [
"Apache-2.0"
] | 7 | 2019-11-12T15:26:34.000Z | 2021-04-11T07:23:56.000Z | from edifact.incoming.models.transaction import Transactions
class MessageSegmentBeginningDetails:
"""
A representation of the incoming edifact message beginning details contained in a message
"""
def __init__(self, reference_number):
"""
:param reference_number: the referen... | 30.738095 | 103 | 0.670023 | 125 | 1,291 | 6.728 | 0.352 | 0.091558 | 0.046373 | 0.047562 | 0.099881 | 0.099881 | 0.099881 | 0 | 0 | 0 | 0 | 0 | 0.268009 | 1,291 | 41 | 104 | 31.487805 | 0.889947 | 0.415957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
935c88f0b1aac02a7fc54b6afdf3252aa6ba683f | 313 | py | Python | src/identity/views.py | concordusapps/django-identity | c6829d0dba414039ca8fde6e257c6574e35e920a | [
"MIT"
] | 3 | 2015-10-03T11:02:56.000Z | 2018-05-06T19:54:30.000Z | src/identity/views.py | concordusapps/django-identity | c6829d0dba414039ca8fde6e257c6574e35e920a | [
"MIT"
] | null | null | null | src/identity/views.py | concordusapps/django-identity | c6829d0dba414039ca8fde6e257c6574e35e920a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" \file identity/views.py
\brief Implements the core views for django-identity.
\author Erich Healy (cactuscommander) ErichRHealy@gmail.com
\author Ryan Leckey (mehcode) leckey.ryan@gmail.com
\copyright Copyright 2012 © Concordus Applications, Inc.
All Rights Reserved.
"""
| 28.454545 | 59 | 0.72524 | 40 | 313 | 5.7 | 0.8 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018939 | 0.15655 | 313 | 10 | 60 | 31.3 | 0.840909 | 0.952077 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9364d84eb265e742fb18211cda22c10c728b9873 | 17,681 | py | Python | tests/integ/group_test.py | murlock/hsds | 9f5fc3cdb64017d07e34eb422eee5398553d213c | [
"Apache-2.0"
] | null | null | null | tests/integ/group_test.py | murlock/hsds | 9f5fc3cdb64017d07e34eb422eee5398553d213c | [
"Apache-2.0"
] | null | null | null | tests/integ/group_test.py | murlock/hsds | 9f5fc3cdb64017d07e34eb422eee5398553d213c | [
"Apache-2.0"
] | null | null | null | ##############################################################################
# Copyright by The HDF Group. #
# All rights reserved. #
# #
# Th... | 40.833718 | 90 | 0.607545 | 2,015 | 17,681 | 5.247146 | 0.115633 | 0.097891 | 0.049182 | 0.086257 | 0.727513 | 0.713326 | 0.681169 | 0.666036 | 0.648539 | 0.638135 | 0 | 0.016627 | 0.26865 | 17,681 | 432 | 91 | 40.928241 | 0.801021 | 0.139528 | 0 | 0.686469 | 0 | 0 | 0.081965 | 0 | 0 | 0 | 0 | 0 | 0.353135 | 1 | 0.026403 | false | 0 | 0.023102 | 0 | 0.059406 | 0.026403 | 0 | 0 | 0 | null | 0 | 0 | 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 | 2 |
936752f8c3d72771f3448e41c092d6bfe9dd2c3f | 423 | py | Python | mathcli/__init__.py | FedeClaudi/mathcli | f2e325c831bf2630903f516a63ce989da4905f74 | [
"MIT"
] | 2 | 2021-01-12T22:30:29.000Z | 2021-01-12T22:30:47.000Z | mathcli/__init__.py | FedeClaudi/mathcli | f2e325c831bf2630903f516a63ce989da4905f74 | [
"MIT"
] | null | null | null | mathcli/__init__.py | FedeClaudi/mathcli | f2e325c831bf2630903f516a63ce989da4905f74 | [
"MIT"
] | null | null | null | from pyinspect import install_traceback
from rich import pretty
install_traceback()
pretty.install()
from loguru import logger
import sys
# comment these two lines out to show logging info
logger.remove()
logger.add(sys.stderr, level="INFO")
logger.level("EXPRESSION", no=15, color="<yellow>", icon="🖇")
logger.leve... | 23.5 | 61 | 0.749409 | 62 | 423 | 5.112903 | 0.596774 | 0.100946 | 0.056782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.115839 | 423 | 17 | 62 | 24.882353 | 0.831551 | 0.113475 | 0 | 0 | 0 | 0 | 0.093834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
936cd52aff72edaf5aa127196cff5e95d9931fc5 | 424 | py | Python | website/volunteer/models.py | NTI-Gymnasieingenjor/RedCrossAction-Pacific | 6e18bf1e5b6d61febba3d350d2f14cb90a2efefd | [
"MIT"
] | null | null | null | website/volunteer/models.py | NTI-Gymnasieingenjor/RedCrossAction-Pacific | 6e18bf1e5b6d61febba3d350d2f14cb90a2efefd | [
"MIT"
] | null | null | null | website/volunteer/models.py | NTI-Gymnasieingenjor/RedCrossAction-Pacific | 6e18bf1e5b6d61febba3d350d2f14cb90a2efefd | [
"MIT"
] | 3 | 2020-10-06T08:51:15.000Z | 2020-10-23T12:58:09.000Z | import datetime
from django.db import models
from django.utils import timezone
# Create your models here.
class AddMail(models.Model):
mail_address = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.mail_address
def wa... | 32.615385 | 75 | 0.721698 | 55 | 424 | 5.363636 | 0.618182 | 0.067797 | 0.094915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011662 | 0.191038 | 424 | 13 | 75 | 32.615385 | 0.848397 | 0.056604 | 0 | 0 | 0 | 0 | 0.036176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
9371676f8c32b7d4e712a0027f83281f22e10be5 | 477 | py | Python | versions/1.1.3/blog/views/account/logout_view.py | mnp-fuf/django-bona-blog | ca9afd301345ece8074ccb696959feb6b8ca14b3 | [
"MIT"
] | 92 | 2020-07-08T05:24:53.000Z | 2022-03-16T05:53:47.000Z | versions/1.1.3/blog/views/account/logout_view.py | mnp-fuf/django-bona-blog | ca9afd301345ece8074ccb696959feb6b8ca14b3 | [
"MIT"
] | 9 | 2020-07-12T15:16:52.000Z | 2022-03-12T09:48:10.000Z | versions/1.1.3/blog/views/account/logout_view.py | mnp-fuf/django-bona-blog | ca9afd301345ece8074ccb696959feb6b8ca14b3 | [
"MIT"
] | 45 | 2020-07-10T09:20:45.000Z | 2022-03-19T18:53:18.000Z | # Django imports
from django.contrib.auth import logout
from django.contrib import messages
from django.shortcuts import render, redirect
from django.views.generic import View
class UserLogoutView(View):
"""
Logs user out of the dashboard.
"""
template_name = 'account/logout.html'
def get(self, ... | 25.105263 | 70 | 0.716981 | 59 | 477 | 5.762712 | 0.610169 | 0.117647 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199161 | 477 | 18 | 71 | 26.5 | 0.890052 | 0.098532 | 0 | 0 | 0 | 0 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fa75e928c5465d4d47684f4384d2159224599a8d | 2,018 | py | Python | inventory/migrations/0002_auto_20200919_1121.py | Kgford/TCLI | fe35abdf6771bcecc6c255b22faa513011ab9b9b | [
"BSD-3-Clause"
] | null | null | null | inventory/migrations/0002_auto_20200919_1121.py | Kgford/TCLI | fe35abdf6771bcecc6c255b22faa513011ab9b9b | [
"BSD-3-Clause"
] | 1 | 2020-08-02T17:13:59.000Z | 2020-08-02T17:13:59.000Z | inventory/migrations/0002_auto_20200919_1121.py | Kgford/TCLI | fe35abdf6771bcecc6c255b22faa513011ab9b9b | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.8 on 2020-09-19 15:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='inventory',
name='quantity',
... | 33.081967 | 106 | 0.568385 | 199 | 2,018 | 5.623116 | 0.286432 | 0.080429 | 0.144772 | 0.176944 | 0.67471 | 0.67471 | 0.409294 | 0.409294 | 0.210903 | 0.210903 | 0 | 0.024113 | 0.301288 | 2,018 | 60 | 107 | 33.633333 | 0.769504 | 0.022299 | 0 | 0.518519 | 1 | 0 | 0.145611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018519 | 0 | 0.074074 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
fa813163be2b27bb3255d6006d29517a7679bf34 | 353 | py | Python | drive-contents/boot_options/low_battery.py | TG-Techie/TG-Watch-Software | bd91222507787c1176c3faf43157b63e0b952582 | [
"MIT"
] | 1 | 2021-06-04T19:15:54.000Z | 2021-06-04T19:15:54.000Z | drive-contents/boot_options/low_battery.py | TG-Techie/TG-Watch-Software | bd91222507787c1176c3faf43157b63e0b952582 | [
"MIT"
] | 11 | 2021-03-07T18:26:38.000Z | 2021-06-09T14:08:27.000Z | drive-contents/boot_options/low_battery.py | TG-Techie/TG-Watch-Software | bd91222507787c1176c3faf43157b63e0b952582 | [
"MIT"
] | null | null | null | import time
import microcontroller
from hardware import drivers
if drivers.vbus_detect.value:
from . import low_battery_splash
while drivers._read_bat_percent() < 4:
time.sleep(5)
print(f"[time: {time.monotonic()}] battery too low, waiting to boot")
else:
print("battery charged to 4+ percent, restarti... | 25.214286 | 73 | 0.739377 | 48 | 353 | 5.3125 | 0.645833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010135 | 0.161473 | 353 | 13 | 74 | 27.153846 | 0.851351 | 0 | 0 | 0 | 0 | 0 | 0.283286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fa86d5be70b1b8f578674cb948dbc81f73624e50 | 1,347 | py | Python | bptf/pretraining.py | antonyms/AntonymPipeline | 050f963b9dbefeb5772be665d2d69e500764d4cd | [
"Apache-2.0"
] | 4 | 2015-08-24T20:41:32.000Z | 2020-03-26T19:16:36.000Z | bptf/pretraining.py | antonyms/AntonymPipeline | 050f963b9dbefeb5772be665d2d69e500764d4cd | [
"Apache-2.0"
] | null | null | null | bptf/pretraining.py | antonyms/AntonymPipeline | 050f963b9dbefeb5772be665d2d69e500764d4cd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from pretraining import mm
from pretraining.utils import *
rootPath = '../data/'
thPath = rootPath + 'combine/'
antPath = thPath + 'antonym.txt'
synPath = thPath + 'synonym.txt'
grePath = rootPath + 'test-data/gre_wordlist.txt'
commonPath = rootPath + 'test-data/test_wordlist.txt'
topPath = '../data/... | 24.490909 | 56 | 0.717149 | 197 | 1,347 | 4.77665 | 0.401015 | 0.021254 | 0.028693 | 0.02763 | 0.098831 | 0.098831 | 0 | 0 | 0 | 0 | 0 | 0.006071 | 0.144024 | 1,347 | 54 | 57 | 24.944444 | 0.810061 | 0.092799 | 0 | 0 | 0 | 0 | 0.202543 | 0.048138 | 0 | 0 | 0 | 0.018519 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.151515 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa8afa94f7b939df121ff14c8646b49d6bace9e3 | 749 | py | Python | testcontainers/oracle.py | martykube/testcontainers-python | 50d89eb83d9e9ccc2230592706e5a8384e6c9481 | [
"Apache-2.0"
] | null | null | null | testcontainers/oracle.py | martykube/testcontainers-python | 50d89eb83d9e9ccc2230592706e5a8384e6c9481 | [
"Apache-2.0"
] | null | null | null | testcontainers/oracle.py | martykube/testcontainers-python | 50d89eb83d9e9ccc2230592706e5a8384e6c9481 | [
"Apache-2.0"
] | null | null | null | from testcontainers.core.generic import DbContainer
class OracleDbContainer(DbContainer):
def __init__(self, image="wnameless/oracle-xe-11g-r2:latest"):
super(OracleDbContainer, self).__init__(image=image)
self.container_port = 1521
self.with_exposed_ports(self.container_port)
def _co... | 39.421053 | 71 | 0.554072 | 69 | 749 | 5.681159 | 0.594203 | 0.09949 | 0.130102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014523 | 0.356475 | 749 | 18 | 72 | 41.611111 | 0.798755 | 0 | 0 | 0 | 0 | 0 | 0.101469 | 0.044059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.071429 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fa9649caa3c7d2c9c8e63ec7477732f0964a1ec9 | 1,604 | py | Python | tests.py | synapticarbors/fishers_exact_test | fa770b95cce4aada6579b05441bb79d32e56e8e3 | [
"BSD-3-Clause"
] | 47 | 2015-01-13T15:06:52.000Z | 2022-03-30T01:25:24.000Z | tests.py | synapticarbors/fishers_exact_test | fa770b95cce4aada6579b05441bb79d32e56e8e3 | [
"BSD-3-Clause"
] | 30 | 2015-01-12T15:37:54.000Z | 2022-02-08T10:52:05.000Z | tests.py | synapticarbors/fishers_exact_test | fa770b95cce4aada6579b05441bb79d32e56e8e3 | [
"BSD-3-Clause"
] | 24 | 2015-01-13T15:06:55.000Z | 2022-01-21T18:35:46.000Z | import numpy as np
import pytest
from fisher.cfisher import pvalue, pvalue_npy
# Computed by ``fisher.test`` in R 3.2.2 and printed with
# ``sprintf(".16f")``.
@pytest.mark.parametrize("table,expected", [
([[100, 2], [1000, 5]],
(0.1300759363430016, 0.9797904453147230, 0.1300759363430016)),
([[2, 100], ... | 39.121951 | 67 | 0.631546 | 199 | 1,604 | 5.060302 | 0.371859 | 0.118173 | 0.053625 | 0.067527 | 0.105263 | 0.105263 | 0.105263 | 0.105263 | 0 | 0 | 0 | 0.525881 | 0.168953 | 1,604 | 40 | 68 | 40.1 | 0.229557 | 0.047382 | 0 | 0.057143 | 0 | 0 | 0.00918 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.028571 | false | 0 | 0.085714 | 0 | 0.114286 | 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 | 0 | 0 | 0 | 2 |
fa97ca232cdb2a463d0ef4ad3ff9a5c2854d5e3d | 185 | py | Python | Python_ex110_ex111/uteis.py | gabrieldepaiva/Exercicios-CursoEmVideo | 118231c24f040ca0ac3d3b6e6bf633e4eaa06858 | [
"MIT"
] | null | null | null | Python_ex110_ex111/uteis.py | gabrieldepaiva/Exercicios-CursoEmVideo | 118231c24f040ca0ac3d3b6e6bf633e4eaa06858 | [
"MIT"
] | null | null | null | Python_ex110_ex111/uteis.py | gabrieldepaiva/Exercicios-CursoEmVideo | 118231c24f040ca0ac3d3b6e6bf633e4eaa06858 | [
"MIT"
] | null | null | null | def fatorial (n):
r = 1
for num in range (n, 1, -1):
r *= num
return r
def dobro (n):
num = n * 2
return num
def triplo (n):
num = n * 3
return num | 14.230769 | 32 | 0.475676 | 32 | 185 | 2.75 | 0.4375 | 0.090909 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.405405 | 185 | 13 | 33 | 14.230769 | 0.754545 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.545455 | 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 | 0 | 1 | 0 | 0 | 2 |
faa720437508e2844a2c69e6d8fd0e3f1ca03ded | 501 | py | Python | bicicleta.py | PaloBraga/Helloworld-Python | 3c20eb4ca61d02431781d8813eeb57de9a8a77c6 | [
"Apache-2.0"
] | null | null | null | bicicleta.py | PaloBraga/Helloworld-Python | 3c20eb4ca61d02431781d8813eeb57de9a8a77c6 | [
"Apache-2.0"
] | null | null | null | bicicleta.py | PaloBraga/Helloworld-Python | 3c20eb4ca61d02431781d8813eeb57de9a8a77c6 | [
"Apache-2.0"
] | 1 | 2021-12-14T16:13:01.000Z | 2021-12-14T16:13:01.000Z | bicicleta=["bike","cannon","cargo", "CALOI"]
#Armazenamento de farias mensagens/lista em uma string
print(bicicleta[0].title())
print(bicicleta[1])
print(bicicleta[2])
print(bicicleta[3])
print(bicicleta[-1])
print(bicicleta[-2])
print(bicicleta[-3])
print(bicicleta[-4].title())
#como... | 19.269231 | 89 | 0.686627 | 63 | 501 | 5.460317 | 0.507937 | 0.325581 | 0.087209 | 0.116279 | 0.302326 | 0.302326 | 0.302326 | 0.302326 | 0.302326 | 0.302326 | 0 | 0.02148 | 0.163673 | 501 | 25 | 90 | 20.04 | 0.799523 | 0.279441 | 0 | 0 | 0 | 0 | 0.161677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.818182 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
fac62c5c337d42f8c36698b63943c2b7c975573b | 822 | py | Python | d7a/system_files/dll_config.py | christophevg/pyd7a | a785b50c1853988ae6770b94f12422b21a088523 | [
"Apache-2.0"
] | 3 | 2017-03-14T15:32:02.000Z | 2021-08-15T18:17:42.000Z | d7a/system_files/dll_config.py | christophevg/pyd7a | a785b50c1853988ae6770b94f12422b21a088523 | [
"Apache-2.0"
] | null | null | null | d7a/system_files/dll_config.py | christophevg/pyd7a | a785b50c1853988ae6770b94f12422b21a088523 | [
"Apache-2.0"
] | 1 | 2015-11-24T08:00:14.000Z | 2015-11-24T08:00:14.000Z | import struct
from d7a.support.schema import Validatable, Types
from d7a.system_files.system_file_ids import SystemFileIds
class DllConfigFile(Validatable):
SCHEMA = [{
"active_access_class": Types.INTEGER(min=0, max=20),
"vid": Types.INTEGER(min=0, max=0xFFFF)
# TODO others
}]
def __init__(self, ... | 24.909091 | 58 | 0.709246 | 115 | 822 | 4.817391 | 0.443478 | 0.129964 | 0.184116 | 0.113718 | 0.068592 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017751 | 0.177616 | 822 | 32 | 59 | 25.6875 | 0.801775 | 0.032847 | 0 | 0 | 0 | 0 | 0.046776 | 0 | 0 | 0 | 0.015171 | 0.03125 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0.043478 | 0.478261 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fad42916953c51126cc0d1a9f88eda2e81c963ea | 518 | py | Python | pieces/knight.py | Jone1/chessPyQt | 9c5b35ef7d617ba05033daa0e3380d95dfcfc39e | [
"MIT"
] | null | null | null | pieces/knight.py | Jone1/chessPyQt | 9c5b35ef7d617ba05033daa0e3380d95dfcfc39e | [
"MIT"
] | null | null | null | pieces/knight.py | Jone1/chessPyQt | 9c5b35ef7d617ba05033daa0e3380d95dfcfc39e | [
"MIT"
] | null | null | null | from pieces.piece import AbstractPiece
__author__ = 'Jone'
class Knight(AbstractPiece):
src_white = "D:/workspace/chessQt/chessQt/gfx/nw.png"
src_black = "D:/workspace/chessQt/chessQt/gfx/nb.png"
def __init__(self, x, y, color):
super(Knight, self).__init__(x, y, color)
def moveValidator(s... | 27.263158 | 59 | 0.600386 | 76 | 518 | 3.907895 | 0.473684 | 0.06734 | 0.114478 | 0.161616 | 0.262626 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010444 | 0.260618 | 518 | 19 | 60 | 27.263158 | 0.765013 | 0 | 0 | 0.153846 | 0 | 0 | 0.157996 | 0.150289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.692308 | 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 | 0 | 1 | 0 | 0 | 2 |
fae25562968e6ac15c95087684db52fc8f76b051 | 1,250 | py | Python | appengine/cr-buildbucket/main.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/cr-buildbucket/main.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/cr-buildbucket/main.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from components import endpoints_webapp2
from components import ereporter2
from components import utils
import gae_ts_mon
import webapp2
import handlers
imp... | 30.487805 | 74 | 0.78 | 171 | 1,250 | 5.45614 | 0.421053 | 0.026795 | 0.042872 | 0.034298 | 0.246517 | 0.246517 | 0.184352 | 0.184352 | 0.113612 | 0.113612 | 0 | 0.009294 | 0.1392 | 1,250 | 40 | 75 | 31.25 | 0.857807 | 0.2616 | 0 | 0.076923 | 0 | 0 | 0.027716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.307692 | 0 | 0.538462 | 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 | 0 | 1 | 0 | 0 | 2 |
fae52498c7e4af9ccc2234f7e813c4a9042e6c8d | 159 | py | Python | src/utils/lookups.py | PieInTheSky-Inc/pss-statistics | be57974f0f0a36a9a0ea1e2117348f6f481b26b0 | [
"Apache-2.0"
] | 12 | 2019-11-06T12:02:37.000Z | 2022-03-17T17:24:47.000Z | src/utils/lookups.py | PieInTheSky-Inc/pss-statistics | be57974f0f0a36a9a0ea1e2117348f6f481b26b0 | [
"Apache-2.0"
] | 243 | 2019-11-06T12:05:01.000Z | 2022-03-28T13:37:17.000Z | src/utils/lookups.py | PieInTheSky-Inc/pss-statistics | be57974f0f0a36a9a0ea1e2117348f6f481b26b0 | [
"Apache-2.0"
] | 19 | 2019-11-06T02:17:48.000Z | 2022-01-27T02:40:07.000Z | from typing import Dict as _Dict
# ---------- Constants ----------
REDUCE_TOKENS_LOOKUP: _Dict[int, str] = {
0: '',
1: 'k',
2: 'm',
3: 'g'
} | 14.454545 | 41 | 0.465409 | 20 | 159 | 3.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.264151 | 159 | 11 | 42 | 14.454545 | 0.564103 | 0.194969 | 0 | 0 | 0 | 0 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
faf0ee47bcf7fd77100b404fe9dc9183a57fdcbf | 225 | py | Python | solutions/numbers/factorial.py | TheAtomicGoose/karan | 60222165ad46fe1afc08e631c3171f63ef52b79d | [
"MIT"
] | null | null | null | solutions/numbers/factorial.py | TheAtomicGoose/karan | 60222165ad46fe1afc08e631c3171f63ef52b79d | [
"MIT"
] | null | null | null | solutions/numbers/factorial.py | TheAtomicGoose/karan | 60222165ad46fe1afc08e631c3171f63ef52b79d | [
"MIT"
] | 1 | 2018-03-25T05:57:57.000Z | 2018-03-25T05:57:57.000Z | """
Written by Jesse Evers
Finds the factorial of a number.
"""
def factorial(num):
# While num > 1, multiply num by num - 1
if num > 1:
return num * factorial(num - 1)
return num
print(factorial(10)) | 15 | 44 | 0.617778 | 34 | 225 | 4.088235 | 0.558824 | 0.115108 | 0.143885 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03681 | 0.275556 | 225 | 15 | 45 | 15 | 0.815951 | 0.426667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0.2 | 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 | 0 | 1 | 0 | 0 | 2 |
faf70cf8b218879ee5a762d2d3883608f4d88ade | 1,021 | py | Python | PythonExercicios/ex033.py | marcoantonio97/Curso-de-Python | b99c6c75e2b845086203b84a71a4013c0658dc44 | [
"MIT"
] | null | null | null | PythonExercicios/ex033.py | marcoantonio97/Curso-de-Python | b99c6c75e2b845086203b84a71a4013c0658dc44 | [
"MIT"
] | null | null | null | PythonExercicios/ex033.py | marcoantonio97/Curso-de-Python | b99c6c75e2b845086203b84a71a4013c0658dc44 | [
"MIT"
] | null | null | null | n1 = float(input('Primeiro número: '))
n2 = float(input('Segundo número: '))
n3 = float(input('Terceiro número: '))
menor = n1
if n2<n1 and n2<n3:
menor = n2
if n3<n1 and n3<n2:
menor = n3
maior = n1
if n2>n1 and n2>n3:
maior = n2
if n3>n1 and n3>n2:
maior = n3
print('{} é o maior'.format(maior))
pri... | 24.902439 | 47 | 0.496572 | 155 | 1,021 | 3.270968 | 0.116129 | 0.16568 | 0.193294 | 0.16568 | 0.733728 | 0.698225 | 0.650888 | 0.493097 | 0.473373 | 0.473373 | 0 | 0.067529 | 0.318315 | 1,021 | 40 | 48 | 25.525 | 0.66092 | 0 | 0 | 0 | 0 | 0 | 0.20904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f032ce43f1c55a8b54d8fdc70e11f942d309e54 | 621 | py | Python | main/cogs/beta.py | avizum/Groot | cc8dc05234808444de0686c91c746665f348ee94 | [
"MIT"
] | null | null | null | main/cogs/beta.py | avizum/Groot | cc8dc05234808444de0686c91c746665f348ee94 | [
"MIT"
] | null | null | null | main/cogs/beta.py | avizum/Groot | cc8dc05234808444de0686c91c746665f348ee94 | [
"MIT"
] | null | null | null | from utils._type import *
import discord
from discord.ext import commands
class Beta(commands.Cog):
"""
A cog with commands available to only the beta-testers
"""
def __init__(self, bot):
self.bot = bot
def cog_check(self, ctx: customContext):
member: discord.Member = self.bo... | 28.227273 | 117 | 0.660225 | 86 | 621 | 4.651163 | 0.511628 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.231884 | 621 | 22 | 118 | 28.227273 | 0.800839 | 0.086957 | 0 | 0 | 0 | 0 | 0.025362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4f076ea07d8ac8daa548c2e9e7e0dff9a07548bd | 4,761 | py | Python | bebotPlatform/settings.py | ElitosGon/bebotPlatform | f10b37ecc6cc748a719efc639faa9a2907357682 | [
"Apache-2.0"
] | null | null | null | bebotPlatform/settings.py | ElitosGon/bebotPlatform | f10b37ecc6cc748a719efc639faa9a2907357682 | [
"Apache-2.0"
] | 6 | 2020-06-05T17:08:29.000Z | 2022-03-11T23:14:15.000Z | bebotPlatform/settings.py | ElitosGon/bebotPlatform | f10b37ecc6cc748a719efc639faa9a2907357682 | [
"Apache-2.0"
] | null | null | null | """
Django settings for bebotPlatform project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
from dj... | 26.45 | 118 | 0.705944 | 542 | 4,761 | 6.053506 | 0.398524 | 0.067358 | 0.046937 | 0.053337 | 0.196586 | 0.166108 | 0.081378 | 0.081378 | 0.036574 | 0 | 0 | 0.014798 | 0.162571 | 4,761 | 179 | 119 | 26.597765 | 0.808126 | 0.239656 | 0 | 0 | 1 | 0 | 0.474784 | 0.350794 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.063636 | 0.027273 | 0 | 0.027273 | 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 | 0 | 0 | 0 | 2 |
8787cb261301723e8b35ab1b322844adbaa56bc1 | 237 | py | Python | stx/outputs/html/themes.py | bakasoft/stx | ef6ad209c2acaed83df37f8ebbec52ffc0ff1909 | [
"MIT"
] | 1 | 2020-04-07T04:42:11.000Z | 2020-04-07T04:42:11.000Z | stx/outputs/html/themes.py | stx-lang/python-stx | ef6ad209c2acaed83df37f8ebbec52ffc0ff1909 | [
"MIT"
] | 6 | 2020-03-21T20:16:07.000Z | 2020-04-10T02:53:38.000Z | stx/outputs/html/themes.py | stx-lang/python-stx | ef6ad209c2acaed83df37f8ebbec52ffc0ff1909 | [
"MIT"
] | null | null | null | from typing import List
class HtmlTheme:
def __init__(self):
self.head_styles: List[str] = []
self.head_scripts: List[str] = []
self.body_scripts: List[str] = []
class NullHtmlTheme(HtmlTheme):
pass
| 15.8 | 41 | 0.624473 | 28 | 237 | 5.035714 | 0.571429 | 0.148936 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257384 | 237 | 14 | 42 | 16.928571 | 0.801136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
87a3816e8ba45133a3f24abe22850ea34fe35921 | 3,135 | py | Python | search/COSP/reinforce_baselines.py | cjdjr/cosp_nas | f54243176e8398d79df25d295704f24238f24cc7 | [
"MIT"
] | 3 | 2021-12-09T18:59:40.000Z | 2021-12-09T19:00:08.000Z | search/COSP/reinforce_baselines.py | cjdjr/cosp_nas | f54243176e8398d79df25d295704f24238f24cc7 | [
"MIT"
] | null | null | null | search/COSP/reinforce_baselines.py | cjdjr/cosp_nas | f54243176e8398d79df25d295704f24238f24cc7 | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
from torch.utils.data import Dataset
from scipy.stats import ttest_rel
import copy
# from train import rollout, get_inner_model
class Baseline(object):
def wrap_dataset(self, dataset):
return dataset
def unwrap_batch(self, batch):
return batch, Non... | 27.26087 | 100 | 0.626475 | 427 | 3,135 | 4.447307 | 0.245902 | 0.061611 | 0.04792 | 0.025276 | 0.359136 | 0.254871 | 0.145866 | 0.048447 | 0 | 0 | 0 | 0.007061 | 0.277193 | 3,135 | 114 | 101 | 27.5 | 0.83098 | 0.127911 | 0 | 0.297297 | 0 | 0 | 0.028687 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 1 | 0.256757 | false | 0.027027 | 0.067568 | 0.094595 | 0.581081 | 0.013514 | 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 | 0 | 1 | 0 | 0 | 2 |
87a6049dcc5c9155a2d0a9db43127a28796d2edd | 1,065 | py | Python | app/api/rest/base.py | dolfinus/cryptonite | b90c24d008f4af78f8ed00fc9a30fea4628a443a | [
"MIT"
] | null | null | null | app/api/rest/base.py | dolfinus/cryptonite | b90c24d008f4af78f8ed00fc9a30fea4628a443a | [
"MIT"
] | 4 | 2020-03-18T12:04:12.000Z | 2020-07-07T19:32:23.000Z | app/api/rest/base.py | dolfinus/cryptonite | b90c24d008f4af78f8ed00fc9a30fea4628a443a | [
"MIT"
] | null | null | null | """ API Backend - Base Resource Models """
from flask_restful import Resource, abort
from api import api_rest
from api.security import multi_auth, restricted, restricted_or_current
class BaseResource(Resource):
def options (self, *args, **kwargs):
return None, 200, {
'Allow': 'GET, ... | 29.583333 | 93 | 0.630986 | 124 | 1,065 | 5.306452 | 0.451613 | 0.072948 | 0.12766 | 0.144377 | 0.288754 | 0.255319 | 0.103343 | 0 | 0 | 0 | 0 | 0.022416 | 0.246009 | 1,065 | 36 | 94 | 29.583333 | 0.797011 | 0.0723 | 0 | 0.208333 | 0 | 0 | 0.160638 | 0.108511 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.125 | 0.041667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
87e01d85390c29cc05312fcad7e8b2f696aba002 | 163 | py | Python | src/orientation.py | mackorone/catan | 57c6b6c939cb3a478742fae86888d5a1019f9180 | [
"MIT"
] | 5 | 2016-09-23T02:18:10.000Z | 2020-11-29T10:52:25.000Z | src/orientation.py | mackorone/catan | 57c6b6c939cb3a478742fae86888d5a1019f9180 | [
"MIT"
] | null | null | null | src/orientation.py | mackorone/catan | 57c6b6c939cb3a478742fae86888d5a1019f9180 | [
"MIT"
] | 2 | 2021-12-29T06:54:52.000Z | 2021-12-29T07:46:19.000Z | from enum import Enum
class Orientation(Enum):
NORTH_EAST = 0
NORTH = 1
NORTH_WEST = 2
SOUTH_WEST = 3
SOUTH = 4
SOUTH_EAST = 5
| 14.818182 | 24 | 0.576687 | 23 | 163 | 3.913043 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.368098 | 163 | 10 | 25 | 16.3 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
87e284629b1796249161d8c87a25bfb91c76dcb3 | 794 | py | Python | examples/helloworld/helloworld/hooks.py | ycvbcvfu/SoDo | 80e769f214e8809aa8b4fc5941703b8b52034580 | [
"MIT"
] | 4 | 2019-05-09T08:38:38.000Z | 2019-05-10T01:24:54.000Z | examples/helloworld/helloworld/hooks.py | bingryan/SoDo | 02fc6043b688edcdc5e0074cf9a54b1ae0842a7d | [
"MIT"
] | 3 | 2021-02-02T22:00:15.000Z | 2021-04-14T16:30:05.000Z | examples/helloworld/helloworld/hooks.py | bingryan/SoDo | 02fc6043b688edcdc5e0074cf9a54b1ae0842a7d | [
"MIT"
] | 2 | 2019-05-09T08:47:28.000Z | 2019-12-20T04:45:05.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from sodo.hook import HooKBase
# 第一种方式直接继承HooKBase,然后书写hook 逻辑
class FirstLogHook(HooKBase):
def process_hook(self, *args, **kwargs):
# self.crawler 有全局settings
# settings = self.crawler.settings
print("This is First LogHook")
print("F... | 25.612903 | 74 | 0.668766 | 90 | 794 | 5.822222 | 0.5 | 0.125954 | 0.108779 | 0.15458 | 0.244275 | 0.244275 | 0 | 0 | 0 | 0 | 0 | 0.001618 | 0.221662 | 794 | 30 | 75 | 26.466667 | 0.846278 | 0.238035 | 0 | 0.133333 | 0 | 0 | 0.22504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.066667 | 0.533333 | 0.266667 | 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 | 0 | 1 | 0 | 0 | 2 |
87f02c03d2cdf6a3ed9629ec6275cfcd6c2f4e84 | 3,689 | py | Python | python/database/optimize/test.py | visdata/DeepClue | 8d80ecd783919c97ba225db67664a0dfe5f3fb37 | [
"Apache-2.0"
] | 1 | 2020-12-06T08:04:32.000Z | 2020-12-06T08:04:32.000Z | python/database/optimize/test.py | visdata/DeepClue | 8d80ecd783919c97ba225db67664a0dfe5f3fb37 | [
"Apache-2.0"
] | null | null | null | python/database/optimize/test.py | visdata/DeepClue | 8d80ecd783919c97ba225db67664a0dfe5f3fb37 | [
"Apache-2.0"
] | null | null | null | import MySQLdb
import json
import time
db = MySQLdb.connect('localhost', 'root', 'vis_2014', 'FinanceVis')
cursor = db.cursor()
start = time.time()
keywords = ["mobile", "rise", "fed", "retail", "tablet", "jump", "plan", "lead", "apple", "lawsuit", "slip", "build", "electronic", "gadget", "phone", "sell", "probe", "l... | 58.555556 | 1,872 | 0.600163 | 453 | 3,689 | 4.812362 | 0.589404 | 0.030275 | 0.027523 | 0.019266 | 0.068807 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008199 | 0.173489 | 3,689 | 63 | 1,873 | 58.555556 | 0.706789 | 0.11331 | 0 | 0.045455 | 0 | 0 | 0.367403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87f24879d7b4bfea61df5f5a6729d2eda4313e9f | 998 | py | Python | broker/persistence/persistence_interface.py | javanlacerda/asperathos-manager | a85ecc53f56dfef07c7634b8f9f6cd2e1e88e1d9 | [
"Apache-2.0"
] | 7 | 2019-02-07T17:59:20.000Z | 2020-04-28T00:56:18.000Z | broker/persistence/persistence_interface.py | javanlacerda/asperathos-manager | a85ecc53f56dfef07c7634b8f9f6cd2e1e88e1d9 | [
"Apache-2.0"
] | 52 | 2018-11-09T10:32:39.000Z | 2020-05-07T14:55:58.000Z | broker/persistence/persistence_interface.py | javanlacerda/asperathos-manager | a85ecc53f56dfef07c7634b8f9f6cd2e1e88e1d9 | [
"Apache-2.0"
] | 11 | 2018-11-08T20:40:27.000Z | 2019-11-06T17:31:15.000Z | # Copyright (c) 2019 UFCG-LSD.
#
# 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,... | 21.695652 | 69 | 0.691383 | 141 | 998 | 4.87234 | 0.602837 | 0.087336 | 0.087336 | 0.046579 | 0.081514 | 0.081514 | 0 | 0 | 0 | 0 | 0 | 0.01039 | 0.228457 | 998 | 45 | 70 | 22.177778 | 0.881818 | 0.5501 | 0 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.238095 | 0.095238 | 0.047619 | 0.47619 | 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 | 0 | 0 | 0 | 2 |
87f40a69adae68f59cf1e8cc6911926d8166f0b4 | 1,977 | py | Python | library/password_file.py | lukasic/ansible-role-ispconf | 2478db63e6764f2a9e274d067aed7ba57dc86a4d | [
"WTFPL"
] | null | null | null | library/password_file.py | lukasic/ansible-role-ispconf | 2478db63e6764f2a9e274d067aed7ba57dc86a4d | [
"WTFPL"
] | null | null | null | library/password_file.py | lukasic/ansible-role-ispconf | 2478db63e6764f2a9e274d067aed7ba57dc86a4d | [
"WTFPL"
] | 1 | 2021-02-21T16:02:37.000Z | 2021-02-21T16:02:37.000Z | from ansible.module_utils.basic import AnsibleModule
import os
import sys
import string
def generate_password(length):
chars = string.ascii_letters + string.digits
if sys.version_info.major == 3:
return "".join(chars[c % len(chars)] for c in os.urandom(length))
else:
return "".join(chars[or... | 27.458333 | 78 | 0.556904 | 230 | 1,977 | 4.695652 | 0.391304 | 0.066667 | 0.040741 | 0.022222 | 0.142593 | 0.101852 | 0.055556 | 0.055556 | 0.055556 | 0 | 0 | 0.004428 | 0.314618 | 1,977 | 71 | 79 | 27.84507 | 0.79262 | 0.010622 | 0 | 0.181818 | 1 | 0 | 0.080901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0.109091 | 0.072727 | 0 | 0.145455 | 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 | 0 | 0 | 0 | 2 |
87fc9f6518ee6c8c21fc3ba6ae764a9073e0115a | 280 | py | Python | saleor/account/migrations/0059_merge_20220221_1025.py | victor-abz/saleor | f8e2b49703d995d4304d5a690dbe9c83631419d0 | [
"CC-BY-4.0"
] | 1,392 | 2021-10-06T15:54:28.000Z | 2022-03-31T20:50:55.000Z | saleor/account/migrations/0059_merge_20220221_1025.py | victor-abz/saleor | f8e2b49703d995d4304d5a690dbe9c83631419d0 | [
"CC-BY-4.0"
] | 888 | 2021-10-06T10:48:54.000Z | 2022-03-31T11:00:30.000Z | saleor/account/migrations/0059_merge_20220221_1025.py | victor-abz/saleor | f8e2b49703d995d4304d5a690dbe9c83631419d0 | [
"CC-BY-4.0"
] | 538 | 2021-10-07T16:21:27.000Z | 2022-03-31T22:58:57.000Z | # Generated by Django 3.2.12 on 2022-02-21 10:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("account", "0057_clear_user_addresses"),
("account", "0058_update_user_search_document"),
]
operations = []
| 20 | 56 | 0.675 | 34 | 280 | 5.352941 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0.207143 | 280 | 13 | 57 | 21.538462 | 0.711712 | 0.164286 | 0 | 0 | 1 | 0 | 0.306034 | 0.24569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e209193ea3b0ea62b19469f72b822cc5db7660be | 1,158 | py | Python | core/migrations/0002_auto_20180418_1558.py | araceli24/ticross | f8c387919eaf6c2ecd120187835bea252d8ab2c5 | [
"Apache-2.0"
] | null | null | null | core/migrations/0002_auto_20180418_1558.py | araceli24/ticross | f8c387919eaf6c2ecd120187835bea252d8ab2c5 | [
"Apache-2.0"
] | null | null | null | core/migrations/0002_auto_20180418_1558.py | araceli24/ticross | f8c387919eaf6c2ecd120187835bea252d8ab2c5 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.4 on 2018-04-18 13:58
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='activityjournal',
name='ti... | 28.95 | 99 | 0.571675 | 112 | 1,158 | 5.848214 | 0.410714 | 0.068702 | 0.152672 | 0.177099 | 0.630534 | 0.630534 | 0.561832 | 0.561832 | 0.561832 | 0.561832 | 0 | 0.071072 | 0.307427 | 1,158 | 39 | 100 | 29.692308 | 0.745636 | 0.03886 | 0 | 0.606061 | 1 | 0 | 0.092709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
3566f000a8458d5a6a9320823fd53e39a6f37576 | 326 | py | Python | pactman/__init__.py | RobbieClarken/pactman | 8810afbb5eb80e903af5eb7ec8f60e9aeb2fade5 | [
"MIT"
] | null | null | null | pactman/__init__.py | RobbieClarken/pactman | 8810afbb5eb80e903af5eb7ec8f60e9aeb2fade5 | [
"MIT"
] | null | null | null | pactman/__init__.py | RobbieClarken/pactman | 8810afbb5eb80e903af5eb7ec8f60e9aeb2fade5 | [
"MIT"
] | null | null | null | """Python methods for interactive with a Pact Mock Service."""
from .mock.consumer import Consumer
from .mock.matchers import EachLike, Like, SomethingLike, Term
from .mock.pact import Pact
from .mock.provider import Provider
__all__ = ('Consumer', 'EachLike', 'Like', 'Pact', 'Provider', 'SomethingLike',
'T... | 36.222222 | 79 | 0.723926 | 40 | 326 | 5.8 | 0.475 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150307 | 326 | 8 | 80 | 40.75 | 0.837545 | 0.171779 | 0 | 0 | 0 | 0 | 0.185606 | 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 | 0 | 0 | 0 | 2 |
357ca9006b3abbab5860885c8b439e5f602c0e3f | 169 | py | Python | Python/EvenOdd.py | udaypandey/BubblyCode | 675fbcdd32c80f685ddb10ed4a5a92e17d139795 | [
"MIT"
] | null | null | null | Python/EvenOdd.py | udaypandey/BubblyCode | 675fbcdd32c80f685ddb10ed4a5a92e17d139795 | [
"MIT"
] | null | null | null | Python/EvenOdd.py | udaypandey/BubblyCode | 675fbcdd32c80f685ddb10ed4a5a92e17d139795 | [
"MIT"
] | null | null | null | while True:
num = int(input("Enter a number: "))
if num % 2 == 0:
print(num, "is an even number")
else:
print(f"{num} is a odd number")
| 24.142857 | 42 | 0.508876 | 26 | 169 | 3.307692 | 0.692308 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.343195 | 169 | 6 | 43 | 28.166667 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.319527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
3595d276b169d18538f66ae2eb0490da73e7003c | 510 | py | Python | fw/tiny2040/keypad.py | RyuSLunK/t9-macropad-circuitpython | 1ca12b77f744d161174a1fa6f3f686f45a1baaa4 | [
"Apache-2.0"
] | 22 | 2021-05-27T01:20:23.000Z | 2022-02-12T02:52:25.000Z | fw/tiny2040/keypad.py | RyuSLunK/t9-macropad-circuitpython | 1ca12b77f744d161174a1fa6f3f686f45a1baaa4 | [
"Apache-2.0"
] | 1 | 2022-02-10T12:14:20.000Z | 2022-02-10T14:20:35.000Z | fw/tiny2040/keypad.py | RyuSLunK/t9-macropad-circuitpython | 1ca12b77f744d161174a1fa6f3f686f45a1baaa4 | [
"Apache-2.0"
] | 3 | 2021-06-03T20:25:09.000Z | 2021-12-01T08:39:08.000Z | import digitalio
import board
from digitalio import DigitalInOut
from digitalio import Direction
import adafruit_matrixkeypad
class Keypad():
def __init__(self, keys):
cols = [DigitalInOut(x) for x in (board.GP3, board.GP4, board.GP5)]
rows = [DigitalInOut(x) for x in (board.GP29_A3, board.GP28_A2,... | 34 | 102 | 0.727451 | 70 | 510 | 5.114286 | 0.485714 | 0.125698 | 0.106145 | 0.094972 | 0.134078 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.182353 | 510 | 15 | 103 | 34 | 0.822542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0.076923 | 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 | 0 | 1 | 0 | 0 | 2 |
359db9fea85f2c6902d2eb19d98b29a30c9d37b1 | 1,842 | py | Python | basic_modules.py | Starry316/VolGradNet | d3bcf1f84995fc5b44067ea888bbf2147fdf7e1f | [
"Apache-2.0"
] | 7 | 2020-09-23T09:14:25.000Z | 2021-11-26T11:14:31.000Z | basic_modules.py | Starry316/VolGradNet | d3bcf1f84995fc5b44067ea888bbf2147fdf7e1f | [
"Apache-2.0"
] | null | null | null | basic_modules.py | Starry316/VolGradNet | d3bcf1f84995fc5b44067ea888bbf2147fdf7e1f | [
"Apache-2.0"
] | 1 | 2020-12-09T11:43:10.000Z | 2020-12-09T11:43:10.000Z | """
Common basic modules
"""
import torch.nn as nn
import torch.nn.functional as F
class ConvBlock(nn.Module):
"""
Basis convolutional layer with leaky relu
"""
def __init__(self, in_channels, out_channels, kernel_size=3, stride=2, padding=1):
super(ConvBlock, self).__init__()
self.co... | 29.709677 | 113 | 0.657438 | 248 | 1,842 | 4.633065 | 0.209677 | 0.055701 | 0.109661 | 0.109661 | 0.456049 | 0.362924 | 0.330722 | 0.287206 | 0.205396 | 0.132289 | 0 | 0.024306 | 0.218241 | 1,842 | 62 | 114 | 29.709677 | 0.773611 | 0.065147 | 0 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.060606 | 0 | 0.545455 | 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 | 0 | 1 | 0 | 0 | 2 |
35c553c3a04a6b60a8bb488ee1237312f56d028b | 255 | py | Python | helper/enable_keymap_event_listener.py | Bhanditz/JavaScriptEnhancements | f87ff0ae9dba99bab69bf4fe4e73ca29d198f81e | [
"MIT"
] | null | null | null | helper/enable_keymap_event_listener.py | Bhanditz/JavaScriptEnhancements | f87ff0ae9dba99bab69bf4fe4e73ca29d198f81e | [
"MIT"
] | null | null | null | helper/enable_keymap_event_listener.py | Bhanditz/JavaScriptEnhancements | f87ff0ae9dba99bab69bf4fe4e73ca29d198f81e | [
"MIT"
] | null | null | null | import sublime, sublime_plugin
class enableKeymap(sublime_plugin.EventListener):
def on_text_command(self, view, command_name, args):
if command_name in KEYMAP_COMMANDS and not javascriptCompletions.get("enable_keymap"):
return ("noop", {}) | 31.875 | 90 | 0.772549 | 32 | 255 | 5.90625 | 0.78125 | 0.137566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 255 | 8 | 91 | 31.875 | 0.855204 | 0 | 0 | 0 | 0 | 0 | 0.066406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
35ccb0f7f7114aa4451a2c13ca775e85c47a9fe9 | 455 | py | Python | reap_oracle_dbs.py | VeranosTech/alembic | 7c352124d089c138bb063c9241eb55f929a06742 | [
"MIT"
] | null | null | null | reap_oracle_dbs.py | VeranosTech/alembic | 7c352124d089c138bb063c9241eb55f929a06742 | [
"MIT"
] | null | null | null | reap_oracle_dbs.py | VeranosTech/alembic | 7c352124d089c138bb063c9241eb55f929a06742 | [
"MIT"
] | 6 | 2018-05-10T01:19:33.000Z | 2019-10-07T02:01:01.000Z | """Drop Oracle databases that are left over from a
multiprocessing test run.
Currently the cx_Oracle driver seems to sometimes not release a
TCP connection even if close() is called, which prevents the provisioning
system from dropping a database in-process.
"""
from alembic.testing import provision
import logging
im... | 23.947368 | 73 | 0.808791 | 66 | 455 | 5.469697 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002513 | 0.125275 | 455 | 18 | 74 | 25.277778 | 0.904523 | 0.562637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ea0c9582f16ce3be555a9e1bc4d13e7a64889be1 | 538 | py | Python | Select_Data_loc.py | jonathan-JIPSlok/Aprendendo_Pandas | 2a6a5a3b72b4a757078ba25b0b1f953b682bb62d | [
"MIT"
] | 1 | 2021-09-16T23:12:55.000Z | 2021-09-16T23:12:55.000Z | Select_Data_loc.py | jonathan-JIPSlok/Aprendendo_Pandas | 2a6a5a3b72b4a757078ba25b0b1f953b682bb62d | [
"MIT"
] | null | null | null | Select_Data_loc.py | jonathan-JIPSlok/Aprendendo_Pandas | 2a6a5a3b72b4a757078ba25b0b1f953b682bb62d | [
"MIT"
] | null | null | null | import pandas as pd
import openpyxl
df = pd.read_excel("Arquivo.xlsx", engine="openpyxl")
print(df.loc[0])#Seleciona a linha
print()
print(df.loc[0:4])#Seleciona mais de uma linha
print()
print(df.loc[[0, 3, 5]])#Seleciona apenas as linhas 0, 3 e 5
print()
print(df.loc[3:6, "Nome"])#Seleciona da 3 linha até a sext... | 23.391304 | 87 | 0.704461 | 97 | 538 | 3.896907 | 0.402062 | 0.111111 | 0.15873 | 0.198413 | 0.222222 | 0.222222 | 0.111111 | 0 | 0 | 0 | 0 | 0.034335 | 0.133829 | 538 | 22 | 88 | 24.454545 | 0.776824 | 0.423792 | 0 | 0.4 | 0 | 0 | 0.128289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.8 | 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 | 0 | 0 | 1 | 0 | 2 |
ea0f49c379ea4ca97a761adf9b175b7317f94463 | 168 | py | Python | Question 7.py | Mkez45634/Python-Coding-Challenges | a325297a6edebba3e651173fd6ae68b9171cd4b0 | [
"MIT"
] | null | null | null | Question 7.py | Mkez45634/Python-Coding-Challenges | a325297a6edebba3e651173fd6ae68b9171cd4b0 | [
"MIT"
] | null | null | null | Question 7.py | Mkez45634/Python-Coding-Challenges | a325297a6edebba3e651173fd6ae68b9171cd4b0 | [
"MIT"
] | null | null | null | def signFinder (s):
plus = s.count("-")
minus = s.count("+")
total = plus+minus
if total == 1:
return True
else:
return False | 21 | 25 | 0.488095 | 20 | 168 | 4.1 | 0.65 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.375 | 168 | 8 | 26 | 21 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 | 0 | 0 | 0 | 2 |
ea2e5344d28c0ca643649447d86a2e5274628dcd | 359 | py | Python | minimize_1d.py | rlowrance/mlpack | 4a09987fd5efb9736284c94d90aa51b34d4bce7f | [
"MIT"
] | 1 | 2015-07-11T18:19:36.000Z | 2015-07-11T18:19:36.000Z | minimize_1d.py | rlowrance/mlpack | 4a09987fd5efb9736284c94d90aa51b34d4bce7f | [
"MIT"
] | null | null | null | minimize_1d.py | rlowrance/mlpack | 4a09987fd5efb9736284c94d90aa51b34d4bce7f | [
"MIT"
] | null | null | null | '''minimizers for functions of 1 variable
FUNCTIONS
golden_section(fun, low, high, interval_size) -> low*, high*
ARGS
fun(x) -> number
low: number
high: number
interval_size: search stops when high* - low* < interval_size
'''
from minimize_1d_golden_section import golden_section
if False:
# use imports, to avoid... | 21.117647 | 61 | 0.752089 | 51 | 359 | 5.117647 | 0.607843 | 0.199234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.158774 | 359 | 16 | 62 | 22.4375 | 0.857616 | 0.724234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ea311884d2607f2424c4884f9b8cabb3f603d28c | 1,039 | py | Python | h02_client.py | faberto/gps2nextcloud | 4e59589ecdc8d5379205676b99c4cd76449f88e9 | [
"MIT"
] | 2 | 2019-07-12T19:29:05.000Z | 2020-08-05T12:43:31.000Z | h02_client.py | faberto/gps2nextcloud | 4e59589ecdc8d5379205676b99c4cd76449f88e9 | [
"MIT"
] | 1 | 2019-07-15T21:52:03.000Z | 2019-09-05T13:08:08.000Z | h02_client.py | faberto/gps2nextcloud | 4e59589ecdc8d5379205676b99c4cd76449f88e9 | [
"MIT"
] | 3 | 2019-07-15T21:03:42.000Z | 2021-05-18T10:09:02.000Z | import socket
HOST = "127.0.0.1" # The server's hostname or IP address
PORT = 5012 # The port used by the server
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, PORT))
# s.sendall(b"*HQ,865205030330012,V1,145452,A,2240.55181,N,11358.32389,E,0.00,0,100815,FFFFFBFF#")
# s.sen... | 74.214286 | 290 | 0.827719 | 98 | 1,039 | 8.755102 | 0.561224 | 0.055944 | 0.060606 | 0.09324 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 0.542531 | 0.072185 | 1,039 | 13 | 291 | 79.923077 | 0.34751 | 0.713186 | 0 | 0 | 0 | 0 | 0.34375 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
ea3b832d2dadfcf96ee1791a53115c2913f1db76 | 925 | py | Python | tests/test_paypalutil.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 39 | 2016-01-04T04:13:27.000Z | 2022-01-18T19:17:24.000Z | tests/test_paypalutil.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 140 | 2015-11-01T01:19:54.000Z | 2022-03-10T13:00:33.000Z | tests/test_paypalutil.py | TreZc0/donation-tracker | 3a833a5eba3c0b7cedd8249b44b1435f526095ba | [
"Apache-2.0"
] | 35 | 2016-01-20T12:42:21.000Z | 2022-01-20T07:06:47.000Z | from django.test import TestCase
from paypal.standard.ipn.models import PayPalIPN
from tracker import paypalutil
class TestVerifyIPNRecipientEmail(TestCase):
def test_match_is_okay(self):
ipn = PayPalIPN(business='Charity@example.com')
paypalutil.verify_ipn_recipient_email(ipn, 'charity@example.... | 38.541667 | 77 | 0.749189 | 103 | 925 | 6.533981 | 0.330097 | 0.118871 | 0.15156 | 0.166419 | 0.653789 | 0.653789 | 0.653789 | 0.653789 | 0.653789 | 0.653789 | 0 | 0 | 0.156757 | 925 | 23 | 78 | 40.217391 | 0.862821 | 0 | 0 | 0.375 | 0 | 0 | 0.177297 | 0.054054 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.375 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea3bcaeba25dbd9268e979f263ebcadc958c2656 | 479 | py | Python | tabler_icons/templatetags/tabler_icons.py | alex-oleshkevich/python-tabler-icons | 548a1c8737454fa40c552261e2964eb1e23bdb83 | [
"MIT"
] | null | null | null | tabler_icons/templatetags/tabler_icons.py | alex-oleshkevich/python-tabler-icons | 548a1c8737454fa40c552261e2964eb1e23bdb83 | [
"MIT"
] | null | null | null | tabler_icons/templatetags/tabler_icons.py | alex-oleshkevich/python-tabler-icons | 548a1c8737454fa40c552261e2964eb1e23bdb83 | [
"MIT"
] | null | null | null | from __future__ import annotations
from django import template
from django.utils.safestring import SafeString, mark_safe
from ..icons import Stringable, get_icon
register = template.Library()
@register.simple_tag
def tabler_icon(name: str, size: Stringable = 24, **svg_attrs: Stringable) -> str:
fixed_kwargs = ... | 31.933333 | 118 | 0.759916 | 66 | 479 | 5.30303 | 0.560606 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004843 | 0.137787 | 479 | 14 | 119 | 34.214286 | 0.842615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ea3d5c78ddb1b867d01b5131c36e551eacbb5942 | 925 | py | Python | src/pybel/io/exc.py | tehw0lf/pybel | 6f67f8cce15052cc3c42ef87374e3b9ee45e6519 | [
"Apache-2.0"
] | null | null | null | src/pybel/io/exc.py | tehw0lf/pybel | 6f67f8cce15052cc3c42ef87374e3b9ee45e6519 | [
"Apache-2.0"
] | null | null | null | src/pybel/io/exc.py | tehw0lf/pybel | 6f67f8cce15052cc3c42ef87374e3b9ee45e6519 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Exceptions for input/output."""
from ..exceptions import PyBELWarning
import_version_message_fmt = 'Tried importing from PyBEL v{}. Need at least v{}'
class ImportVersionWarning(PyBELWarning, ValueError):
"""Raised when trying to import data from an old version of PyBEL."""
def ... | 34.259259 | 95 | 0.708108 | 115 | 925 | 5.330435 | 0.408696 | 0.156607 | 0.117455 | 0.117455 | 0.169657 | 0.120718 | 0 | 0 | 0 | 0 | 0 | 0.001335 | 0.19027 | 925 | 26 | 96 | 35.576923 | 0.817089 | 0.231351 | 0 | 0 | 0 | 0 | 0.076119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.454545 | 0 | 0.818182 | 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 | 0 | 1 | 0 | 0 | 2 |
ea7a56966154be75e52121b25e7f61517b365ec3 | 88 | py | Python | dota2crawler/__init__.py | co2y/Wallpaper-Crawler | c25e65b824b0312fb95a260fc21f141027c98251 | [
"MIT"
] | null | null | null | dota2crawler/__init__.py | co2y/Wallpaper-Crawler | c25e65b824b0312fb95a260fc21f141027c98251 | [
"MIT"
] | null | null | null | dota2crawler/__init__.py | co2y/Wallpaper-Crawler | c25e65b824b0312fb95a260fc21f141027c98251 | [
"MIT"
] | null | null | null | # coding=utf-8
__author__ = 'co2y'
__email__ = 'co2y@foxmail.com'
__version__ = '0.0.1'
| 17.6 | 30 | 0.693182 | 13 | 88 | 3.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077922 | 0.125 | 88 | 4 | 31 | 22 | 0.558442 | 0.136364 | 0 | 0 | 0 | 0 | 0.337838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ea94f8918b16ca700df9177777c652905f60bf62 | 274 | py | Python | authors/apps/articles/migrations/0025_merge_20190508_1042.py | andela/ah-the-jedi-backend | ba429dfcec577bd6d52052673c1c413835f65988 | [
"BSD-3-Clause"
] | 1 | 2019-12-25T18:59:34.000Z | 2019-12-25T18:59:34.000Z | authors/apps/articles/migrations/0025_merge_20190508_1042.py | katherine95/ah-the-jedi-backend | ba429dfcec577bd6d52052673c1c413835f65988 | [
"BSD-3-Clause"
] | 26 | 2019-04-23T11:20:35.000Z | 2022-03-11T23:45:54.000Z | authors/apps/articles/migrations/0025_merge_20190508_1042.py | katherine95/ah-the-jedi-backend | ba429dfcec577bd6d52052673c1c413835f65988 | [
"BSD-3-Clause"
] | 8 | 2019-05-21T06:54:34.000Z | 2019-11-18T19:45:22.000Z | # Generated by Django 2.1 on 2019-05-08 10:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('articles', '0024_auto_20190508_0741'),
('articles', '0020_merge_20190508_0813'),
]
operations = [
]
| 18.266667 | 49 | 0.653285 | 32 | 274 | 5.40625 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218009 | 0.229927 | 274 | 14 | 50 | 19.571429 | 0.601896 | 0.156934 | 0 | 0 | 1 | 0 | 0.275109 | 0.20524 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
ea9d5ba233c209ecfcec2c52fefc9d5e63d3e047 | 946 | py | Python | seapy/other.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 8 | 2015-07-02T13:34:06.000Z | 2021-05-17T21:34:07.000Z | seapy/other.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 2 | 2015-11-09T17:16:07.000Z | 2020-02-19T14:00:20.000Z | seapy/other.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 2 | 2021-02-03T08:56:10.000Z | 2022-01-22T02:21:43.000Z | """
Other equations.
================
This module contains all kind of additional equations than can be useful.
"""
import numpy as np
def total_loss_factor(frequency, reverberation_time):
"""
The total loss factor can be related to the reverberation time for any subsystem.
:param frequency: Freque... | 22.52381 | 85 | 0.625793 | 125 | 946 | 4.664 | 0.456 | 0.092624 | 0.154374 | 0.06175 | 0.19554 | 0.099485 | 0 | 0 | 0 | 0 | 0 | 0.033426 | 0.241015 | 946 | 41 | 86 | 23.073171 | 0.778552 | 0.641649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
575df30b87104eb3165a6853eb68e1fa8258b9f8 | 558 | py | Python | slhc/suites/module_ellone.py | kotmasha/kodlab-uma-encapsulated | cb812f07906c62d958041d41d58623fd99fdb8ac | [
"MIT"
] | null | null | null | slhc/suites/module_ellone.py | kotmasha/kodlab-uma-encapsulated | cb812f07906c62d958041d41d58623fd99fdb8ac | [
"MIT"
] | 1 | 2019-11-16T02:57:35.000Z | 2019-11-16T02:57:35.000Z | slhc/suites/module_ellone.py | kotmasha/kodlab-uma-encapsulated | cb812f07906c62d958041d41d58623fd99fdb8ac | [
"MIT"
] | 1 | 2021-08-02T21:14:54.000Z | 2021-08-02T21:14:54.000Z | ### module for basic operations with ellone metric
from scipy.spatial.distance import cityblock as ellone
from scipy.spatial.distance import pdist
def get_metric(params=None):
met_func=lambda pt1,pt2: ellone(pt1,pt2) if params is None else lambda pt1,pt2: ellone(params*pt1,params*pt2)
matr_func=lambda po... | 42.923077 | 175 | 0.758065 | 89 | 558 | 4.651685 | 0.404494 | 0.072464 | 0.077295 | 0.115942 | 0.26087 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0.029474 | 0.148746 | 558 | 12 | 176 | 46.5 | 0.842105 | 0.082437 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
576dad2656e28c0495c4e5893dd60fb94a44fb6f | 430 | py | Python | manage.py | ponyatov/laguna | c62b6106eac8c48695e8c9e40dc1152c5d9581aa | [
"MIT"
] | null | null | null | manage.py | ponyatov/laguna | c62b6106eac8c48695e8c9e40dc1152c5d9581aa | [
"MIT"
] | null | null | null | manage.py | ponyatov/laguna | c62b6106eac8c48695e8c9e40dc1152c5d9581aa | [
"MIT"
] | null | null | null |
# powered by metaL: https://github.com/ponyatov/metaL/wiki/metaL-manifest
# \ <section:top>
import os
import sys
import config
# / <section:top>
# \ <section:mid>
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
from django.core.management import execute_from_command_line
execute_from_c... | 25.294118 | 74 | 0.734884 | 58 | 430 | 5.172414 | 0.586207 | 0.066667 | 0.12 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111628 | 430 | 17 | 75 | 25.294118 | 0.78534 | 0.388372 | 0 | 0 | 0 | 0 | 0.169291 | 0.086614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.444444 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5778ba2b7086929cf277b409c2a82cf22c3b1729 | 424 | py | Python | temperature_program.py | denislavdenov/python-book | 7376a2cb81c94e8a75fa03163ecc51180f9eb8ab | [
"MIT"
] | null | null | null | temperature_program.py | denislavdenov/python-book | 7376a2cb81c94e8a75fa03163ecc51180f9eb8ab | [
"MIT"
] | null | null | null | temperature_program.py | denislavdenov/python-book | 7376a2cb81c94e8a75fa03163ecc51180f9eb8ab | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def convert_to_celsius(fahrenheit: float) -> float:
return (fahrenheit - 32.0) * 5.0 / 9.0
def above_freezing(celsius: float) -> bool:
return celsius > 0
fahrenheit = float(input('Enter the temperature in degrees Fahrenheit: '))
celsius = convert_to_celsius(fahrenheit)
print(celsius)... | 24.941176 | 74 | 0.714623 | 59 | 424 | 5.033898 | 0.508475 | 0.131313 | 0.107744 | 0.175084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025281 | 0.160377 | 424 | 17 | 75 | 24.941176 | 0.808989 | 0.049528 | 0 | 0 | 0 | 0 | 0.215881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.181818 | 0.363636 | 0.272727 | 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 | 0 | 0 | 0 | 2 |
57803f31416c3542e3d038a1eee67e6fd94e3b11 | 1,579 | py | Python | python_module/megengine/_internal/version.py | stoneMo/MegEngine | 4b55350dd0a5e7d9aef3c25f10c4b6c0d47f7ac7 | [
"Apache-2.0"
] | 2 | 2020-03-26T08:26:29.000Z | 2020-06-01T14:41:38.000Z | python_module/megengine/_internal/version.py | ted51/MegEngine | f91881ffdc051ab49314b1bd12c4a07a862dc9c6 | [
"Apache-2.0"
] | null | null | null | python_module/megengine/_internal/version.py | ted51/MegEngine | f91881ffdc051ab49314b1bd12c4a07a862dc9c6 | [
"Apache-2.0"
] | 1 | 2020-11-09T06:29:51.000Z | 2020-11-09T06:29:51.000Z | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | 27.224138 | 88 | 0.641545 | 205 | 1,579 | 4.526829 | 0.458537 | 0.045259 | 0.084052 | 0.116379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010561 | 0.220393 | 1,579 | 57 | 89 | 27.701754 | 0.743298 | 0.284991 | 0 | 0 | 0 | 0 | 0.03964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.064516 | 0.193548 | 0.612903 | 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 | 0 | 0 | 0 | 2 |
5796bda7dadc8d9e0a7ed68d34608c59ccb761d0 | 246 | py | Python | electrum_gui/common/basic/request/exceptions.py | huazhouwang/electrum | 3d7cf4aa05593ea71caec264065a1116b25324a6 | [
"MIT"
] | null | null | null | electrum_gui/common/basic/request/exceptions.py | huazhouwang/electrum | 3d7cf4aa05593ea71caec264065a1116b25324a6 | [
"MIT"
] | null | null | null | electrum_gui/common/basic/request/exceptions.py | huazhouwang/electrum | 3d7cf4aa05593ea71caec264065a1116b25324a6 | [
"MIT"
] | null | null | null | from requests import Response
class ResponseException(IOError):
def __init__(self, message: str, response: Response):
self.message = message
self.response = response
super(ResponseException, self).__init__(message)
| 24.6 | 57 | 0.711382 | 25 | 246 | 6.68 | 0.52 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207317 | 246 | 9 | 58 | 27.333333 | 0.85641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
579c1ede0adf6a62b997c52b403bfb42f8e4dc9a | 3,296 | py | Python | getLogFilePath.py | mismailzz/Extract-filenames-from-Strace-result | 2b99ded66fa7070cbee22c2035ec2e1a43093314 | [
"MIT"
] | null | null | null | getLogFilePath.py | mismailzz/Extract-filenames-from-Strace-result | 2b99ded66fa7070cbee22c2035ec2e1a43093314 | [
"MIT"
] | null | null | null | getLogFilePath.py | mismailzz/Extract-filenames-from-Strace-result | 2b99ded66fa7070cbee22c2035ec2e1a43093314 | [
"MIT"
] | null | null | null | from array import *
filepath = '/root/Desktop/output.txt'
#indexes value
quote_index = 0
slash_index = 1
alpha_numeric = 2
#print("\"ismail")
#2D list
# -1 mean nothing
table = [[1, -1, -1], [-1, 2, -1], [-1, -1, 3], [4, 2, 3]]
path_list = [] #to store table paths
with open(filepath) as fp:
line = fp.readline(... | 28.912281 | 166 | 0.585255 | 430 | 3,296 | 4.248837 | 0.230233 | 0.203612 | 0.172414 | 0.083744 | 0.5052 | 0.480022 | 0.463602 | 0.412698 | 0.378216 | 0.378216 | 0 | 0.017967 | 0.256978 | 3,296 | 113 | 167 | 29.168142 | 0.728052 | 0.167779 | 0 | 0.48 | 0 | 0 | 0.097722 | 0.062087 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013333 | null | null | 0.093333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57a7f0c0f2cdb3ec772875772ca0be4eff5bceb7 | 441 | py | Python | ctf/routes/scoreboard.py | owenofengland/lCTF-Platform | cad80dedfc15eb8ec2c78d807b16347d1c0878d8 | [
"MIT"
] | null | null | null | ctf/routes/scoreboard.py | owenofengland/lCTF-Platform | cad80dedfc15eb8ec2c78d807b16347d1c0878d8 | [
"MIT"
] | null | null | null | ctf/routes/scoreboard.py | owenofengland/lCTF-Platform | cad80dedfc15eb8ec2c78d807b16347d1c0878d8 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template
from flask_login import login_required, current_user
from ctf.models.Score import Score
from ctf import db
from sys import path
path.append("..")
scoreboard = Blueprint("scoreboard", __name__)
@scoreboard.route("/scoreboard")
def scoreboard_out():
scores = Score.query... | 27.5625 | 60 | 0.768707 | 60 | 441 | 5.483333 | 0.55 | 0.054711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124717 | 441 | 15 | 61 | 29.4 | 0.852332 | 0 | 0 | 0 | 0 | 0 | 0.086168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.583333 | 0.166667 | 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 | 0 | 1 | 0 | 0 | 2 |
57a8d027e7513b5c73766829e0be30fc6ad78901 | 293 | py | Python | karsender/tests.py | smirnoffs/karsender | 9bd0ae96b4931e88cd2fc3a6ab9bac0303235bd2 | [
"Apache-2.0"
] | null | null | null | karsender/tests.py | smirnoffs/karsender | 9bd0ae96b4931e88cd2fc3a6ab9bac0303235bd2 | [
"Apache-2.0"
] | null | null | null | karsender/tests.py | smirnoffs/karsender | 9bd0ae96b4931e88cd2fc3a6ab9bac0303235bd2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from karsender.database import get_collection
from karsender.services import validate_emails
__author__ = 'Sergey Smirnov <smirnoffs@gmail.com>'
from unittest import TestCase
class TestServices(TestCase):
def test_validate_emails(self):
validate_emails() | 26.636364 | 51 | 0.771331 | 35 | 293 | 6.2 | 0.714286 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.139932 | 293 | 11 | 52 | 26.636364 | 0.857143 | 0.071672 | 0 | 0 | 0 | 0 | 0.132841 | 0.077491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | 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 | 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 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.