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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6eb5d880909774de1b62f8116287bd12744b55da | 348 | py | Python | test-and-sample/backup-script-sample/keyring-registration.py | pyagmail/pyagmail | dd7d1a5405454004570148905051c4d11c33ba6d | [
"MIT"
] | null | null | null | test-and-sample/backup-script-sample/keyring-registration.py | pyagmail/pyagmail | dd7d1a5405454004570148905051c4d11c33ba6d | [
"MIT"
] | 1 | 2021-11-12T00:02:09.000Z | 2021-11-12T00:02:09.000Z | test-and-sample/backup-script-sample/keyring-registration.py | pyagmail/pyagmail | dd7d1a5405454004570148905051c4d11c33ba6d | [
"MIT"
] | null | null | null | # coding=utf-8
import yagmail
import keyring
# FOR GMAIL SENDER ACCOUNT NEED TO ACTIVATED THE UNSECURE APP AUTORIZATION: GO https://myaccount.google.com/security SEARCH FOR Access to less secure apps AND ENABLE IT
sender_mail = "your.unsecured@gmail.com"
sender_password = "Gmail-Password"
yagmail.register(sender_mail... | 34.8 | 168 | 0.810345 | 51 | 348 | 5.45098 | 0.705882 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.114943 | 348 | 9 | 169 | 38.666667 | 0.899351 | 0.514368 | 0 | 0 | 0 | 0 | 0.228916 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
6eb7933095ed01ec74a3ba8df63e4e1326c03de3 | 333 | py | Python | reverse-words-in-a-string-iii.py | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | reverse-words-in-a-string-iii.py | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | reverse-words-in-a-string-iii.py | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | from functools import reduce
class Solution:
def reverseWords(self, s: str) -> str:
# words = s.split(" ")
# words = list(map(lambda a: a[::-1], words))
# res = reduce(lambda a, b: a + " " + b, words, "")
# return res.strip()
return " ".join(list(map(lambda x: x[::-1], s.s... | 27.75 | 67 | 0.513514 | 44 | 333 | 3.886364 | 0.545455 | 0.070175 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.285285 | 333 | 11 | 68 | 30.272727 | 0.710084 | 0.399399 | 0 | 0 | 0 | 0 | 0.010256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6ec39deeda9ef4c29b6eb855db70587d39f6d5b0 | 231 | py | Python | fp_py/src/main/fruitpunch/runner_app.py | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | null | null | null | fp_py/src/main/fruitpunch/runner_app.py | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | null | null | null | fp_py/src/main/fruitpunch/runner_app.py | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | 1 | 2020-08-14T02:51:47.000Z | 2020-08-14T02:51:47.000Z | from fruitpunch import App
class RunnerApp(App):
def __init__(self, scene):
super(RunnerApp, self).__init__()
self.scene = scene
def on_init(self, event):
self.go_to_scene(self.scene) | 21 | 41 | 0.619048 | 29 | 231 | 4.551724 | 0.517241 | 0.181818 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281385 | 231 | 11 | 42 | 21 | 0.795181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ed3f4cf05f51b1f40facfbef5978034fb7409c0 | 174 | py | Python | music/class_/audioa/a/base/__init__.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/audioa/a/base/__init__.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/audioa/a/base/__init__.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | """
*mus . key . a . bse*
"""
from ._key import A_Key
from .major import A_Major
from .minor import A_Minor
__all__ = [
"A_Key",
"A_Major",
"A_Minor",
]
| 10.235294 | 26 | 0.568966 | 26 | 174 | 3.384615 | 0.346154 | 0.238636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281609 | 174 | 16 | 27 | 10.875 | 0.704 | 0.12069 | 0 | 0 | 0 | 0 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
42eb4f8667a7ce56583d10d6ea69fdb9159c0154 | 3,996 | py | Python | cloudify_agent/tests/api/pm/test_detach.py | cloudify-cosmo/cloudify-agent | 9036842a31a31e0f5a25895dc9097a2f37c3eba9 | [
"Apache-2.0"
] | 12 | 2016-01-23T00:54:47.000Z | 2021-11-23T19:04:02.000Z | cloudify_agent/tests/api/pm/test_detach.py | cloudify-cosmo/cloudify-agent | 9036842a31a31e0f5a25895dc9097a2f37c3eba9 | [
"Apache-2.0"
] | 122 | 2015-08-18T19:34:44.000Z | 2022-02-03T13:16:19.000Z | cloudify_agent/tests/api/pm/test_detach.py | cloudify-cosmo/cloudify-agent | 9036842a31a31e0f5a25895dc9097a2f37c3eba9 | [
"Apache-2.0"
] | 22 | 2015-07-15T14:28:18.000Z | 2021-05-11T02:18:02.000Z | import os
import pytest
from cloudify_agent.tests.daemon import (
wait_for_daemon_alive,
wait_for_daemon_dead,
)
from cloudify_agent.tests.api.pm import shared
@pytest.mark.only_posix
def test_configure(detach_daemon):
daemon = detach_daemon.create_daemon()
daemon.create()
daemon.configure()
... | 24.218182 | 67 | 0.788789 | 580 | 3,996 | 5.056897 | 0.137931 | 0.18002 | 0.181384 | 0.12956 | 0.815547 | 0.728606 | 0.59359 | 0.494374 | 0.477327 | 0.477327 | 0 | 0.00057 | 0.121371 | 3,996 | 164 | 68 | 24.365854 | 0.834805 | 0.025025 | 0 | 0.5 | 0 | 0 | 0.014132 | 0.00591 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.178571 | false | 0 | 0.035714 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
6e07afa0d5e8a255b39d5da87461621886e0aa69 | 163 | py | Python | sparqlwrapper_brick/common.py | jbkoh/sparqlwrapper_brick | fab61040ab04ddff9d33315910353419bd11c894 | [
"MIT"
] | 1 | 2020-01-27T14:26:50.000Z | 2020-01-27T14:26:50.000Z | sparqlwrapper_brick/common.py | jbkoh/sparqlwrapper_brick | fab61040ab04ddff9d33315910353419bd11c894 | [
"MIT"
] | 1 | 2018-09-14T22:04:25.000Z | 2018-09-14T22:04:25.000Z | sparqlwrapper_brick/common.py | jbkoh/sparqlwrapper_brick | fab61040ab04ddff9d33315910353419bd11c894 | [
"MIT"
] | null | null | null | import urllib.parse
url_encode = urllib.parse.quote_plus
def normalize_uri(s):
assert isinstance(s, str)
s = s.replace(' ', '_')
return url_encode(s)
| 20.375 | 36 | 0.687117 | 24 | 163 | 4.458333 | 0.666667 | 0.205607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184049 | 163 | 7 | 37 | 23.285714 | 0.804511 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e0c0626b071e2d33ea690c2a51ce2dd346e725f | 355 | py | Python | build/lib.linux-x86_64-2.7_ucs4/mx/BeeBase/mxBeeBase/__init__.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/BeeBase/mxBeeBase/__init__.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/BeeBase/mxBeeBase/__init__.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | """ mxBeeBase - C part of BeeBase
Copyright (c) 2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2015, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
"""
from mxBeeBase import *... | 35.5 | 77 | 0.749296 | 49 | 355 | 5.346939 | 0.714286 | 0.076336 | 0.10687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.171831 | 355 | 9 | 78 | 39.444444 | 0.85034 | 0.766197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6e112a8568c033fd5050dc6cf1e861a2bd668000 | 1,074 | py | Python | pydatpiff/urls.py | cbedroid/datpiff | 4027d5ff4ee115928cc11e2a74bb8368b677ae0e | [
"MIT"
] | 16 | 2019-11-20T07:53:51.000Z | 2021-12-21T06:39:51.000Z | pydatpiff/urls.py | cbedroid/datpiff | 4027d5ff4ee115928cc11e2a74bb8368b677ae0e | [
"MIT"
] | 4 | 2020-09-10T01:53:26.000Z | 2021-10-30T16:26:05.000Z | pydatpiff/urls.py | cbedroid/datpiff | 4027d5ff4ee115928cc11e2a74bb8368b677ae0e | [
"MIT"
] | 5 | 2019-12-23T03:05:16.000Z | 2022-01-19T22:14:05.000Z | class Urls:
url = {
"base": "https://www.datpiff.com/",
"album": "http://www.datpiff.com",
"search": "https://www.datpiff.com/mixtapes-search",
}
category = {
"hot": "http://www.datpiff.com/mixtapes/hot",
"new": "http://www.datpiff.com/mixtapes",
"top": "http... | 42.96 | 97 | 0.625698 | 122 | 1,074 | 5.508197 | 0.336066 | 0.193452 | 0.251488 | 0.278274 | 0.511905 | 0.400298 | 0.316964 | 0.264881 | 0.14881 | 0.14881 | 0 | 0.002281 | 0.183426 | 1,074 | 24 | 98 | 44.75 | 0.763968 | 0 | 0 | 0 | 0 | 0.090909 | 0.662942 | 0.029795 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e20ad599e15031c5e5bf5a32df2b5a303e0d400 | 2,773 | py | Python | utils/idcard_entity.py | deep-practice/fake_certificate_generator | 8d8c124732ca6018355ec1b4118d2b27ed995b54 | [
"MIT"
] | 27 | 2020-04-14T06:21:01.000Z | 2022-02-15T09:09:01.000Z | utils/idcard_entity.py | Artosh-Oladeus/fake_certificate_generator | aa6e3bcb07738ccfb029c4814532b292ce471f42 | [
"MIT"
] | 2 | 2021-06-08T21:16:21.000Z | 2022-03-04T03:05:46.000Z | utils/idcard_entity.py | Artosh-Oladeus/fake_certificate_generator | aa6e3bcb07738ccfb029c4814532b292ce471f42 | [
"MIT"
] | 15 | 2020-04-14T07:53:49.000Z | 2022-01-17T09:34:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''生成身份证字段'''
#1.身份证由17位数字本体码和1位校验码组成。排列顺序从左至右依次为:6位数字地址码,8位数字出生日期码,3位数字顺序码和1位数字校验码。
#2.6位地址码:省(2位)+市(4位)
from datetime import datetime, timedelta
import random,re
# 十五位身份证号表达式
ID_NUMBER_15_REGEX = r"^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$"
#... | 27.455446 | 116 | 0.628561 | 428 | 2,773 | 3.759346 | 0.287383 | 0.094469 | 0.07831 | 0.044748 | 0.081417 | 0.042262 | 0.029832 | 0.029832 | 0.029832 | 0.029832 | 0 | 0.069375 | 0.209881 | 2,773 | 100 | 117 | 27.73 | 0.664993 | 0.112874 | 0 | 0 | 0 | 0.035088 | 0.085265 | 0.066639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245614 | false | 0 | 0.035088 | 0.157895 | 0.54386 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6e2b098ecfdf3d5bff0e898a6615e9f4d667ebda | 242 | py | Python | modules/helpers.py | shenjia/breakout | b443eb7270139d8d5a40c4c1b3fcfff87b13527c | [
"MIT"
] | null | null | null | modules/helpers.py | shenjia/breakout | b443eb7270139d8d5a40c4c1b3fcfff87b13527c | [
"MIT"
] | 1 | 2019-03-20T09:45:55.000Z | 2019-04-04T14:28:30.000Z | modules/helpers.py | shenjia/breakout | b443eb7270139d8d5a40c4c1b3fcfff87b13527c | [
"MIT"
] | null | null | null | import math
# 将值限制在一个范围内
def clamp(value, min, max):
if value < min: return min
if value > max: return max
return value
# 计算两点之间的距离
def distance(x, y, Px, Py):
return math.sqrt(math.pow(x - Px, 2) + math.pow(y - Py, 2))
| 20.166667 | 63 | 0.619835 | 40 | 242 | 3.75 | 0.475 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.252066 | 242 | 12 | 64 | 20.166667 | 0.81768 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 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 | 1 | 0 | 0 | 3 |
6e3b636628acd4d20a47b7600428f32b21d18ddd | 927 | py | Python | src/genie/libs/parser/iosxe/tests/ShowCryptoIsakmpSa/cli/equal/golden_output_isakmp_no_ipv6_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowCryptoIsakmpSa/cli/equal/golden_output_isakmp_no_ipv6_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowCryptoIsakmpSa/cli/equal/golden_output_isakmp_no_ipv6_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | expected_output = {
'isakmp_stats': {
'IPv4':{
1:{
'destination': '100.0.10.2',
'source': '100.13.220.2',
'session_state': 'QM_IDLE',
'conn_id': 29609,
'status': 'ACTIVE'
... | 33.107143 | 51 | 0.311758 | 69 | 927 | 4 | 0.492754 | 0.152174 | 0.163043 | 0.184783 | 0.474638 | 0.474638 | 0.474638 | 0 | 0 | 0 | 0 | 0.15677 | 0.545847 | 927 | 28 | 52 | 33.107143 | 0.498812 | 0 | 0 | 0.25 | 0 | 0 | 0.295259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e49acfabdb9bd67e2cfc5fdda613d1e137f1e0d | 91 | py | Python | api_keys.py | j-fair/python-api-challenge | 2a2c51613c94b3973049c6cdf561ff3be02053a8 | [
"ADSL"
] | null | null | null | api_keys.py | j-fair/python-api-challenge | 2a2c51613c94b3973049c6cdf561ff3be02053a8 | [
"ADSL"
] | null | null | null | api_keys.py | j-fair/python-api-challenge | 2a2c51613c94b3973049c6cdf561ff3be02053a8 | [
"ADSL"
] | null | null | null | # OpenWeatherMap API Key
weather_api_key = "redacted"
# Google API Key
g_key = "redacted"
| 15.166667 | 28 | 0.747253 | 13 | 91 | 5 | 0.538462 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 29 | 18.2 | 0.855263 | 0.406593 | 0 | 0 | 0 | 0 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
281a5ee6302f936e87f481b24e3f02ea95d82f8f | 276 | py | Python | Aula7.py | juniorsmartins/Aulas-Python | 48cf784c8856a588a4789c3206601a970206fdfe | [
"MIT"
] | null | null | null | Aula7.py | juniorsmartins/Aulas-Python | 48cf784c8856a588a4789c3206601a970206fdfe | [
"MIT"
] | null | null | null | Aula7.py | juniorsmartins/Aulas-Python | 48cf784c8856a588a4789c3206601a970206fdfe | [
"MIT"
] | null | null | null | print('Desafio 4 - Curso em Vídeo')
print('Professor: Gustavo Guanabara')
print('Calcular soma')
n1 = int(input('Digite o primeiro valor: '))
print(type(n1))
n2 = int(input('Digite o segundo valor: '))
soma = (n1 + n2)
print('A soma de {} com {} é: {}'.format(n1, n2, soma))
| 27.6 | 55 | 0.652174 | 43 | 276 | 4.186047 | 0.604651 | 0.066667 | 0.155556 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.152174 | 276 | 9 | 56 | 30.666667 | 0.735043 | 0 | 0 | 0 | 0 | 0 | 0.51087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2832e71f5bedd78244160169a4744f3a3700187c | 188 | py | Python | src/lesson_runtime_features/sys_int_info.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | 3 | 2018-08-14T09:33:52.000Z | 2022-03-21T12:31:58.000Z | src/lesson_runtime_features/sys_int_info.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | null | null | null | src/lesson_runtime_features/sys_int_info.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | null | null | null | import sys
print('Number of bits used to hold each digit:',
sys.int_info.bits_per_digit)
print('Size in bytes of C type used to hold each digit:',
sys.int_info.sizeof_digit)
| 23.5 | 57 | 0.718085 | 34 | 188 | 3.823529 | 0.588235 | 0.092308 | 0.153846 | 0.215385 | 0.446154 | 0.446154 | 0.446154 | 0.446154 | 0 | 0 | 0 | 0 | 0.196809 | 188 | 7 | 58 | 26.857143 | 0.860927 | 0 | 0 | 0 | 0 | 0 | 0.465241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
284275fda66fb869939779c1f040c93e2506764c | 383 | py | Python | lab/Week_07_Lab_HumanQuest.py | allegheny-college-cmpsc-100-fall-2020/cmpsc-100-fall-2020-week-07-functions-and-modules | b546d7bc9974afa078018ae4ecd060213e3dcf76 | [
"CC-BY-4.0"
] | null | null | null | lab/Week_07_Lab_HumanQuest.py | allegheny-college-cmpsc-100-fall-2020/cmpsc-100-fall-2020-week-07-functions-and-modules | b546d7bc9974afa078018ae4ecd060213e3dcf76 | [
"CC-BY-4.0"
] | null | null | null | lab/Week_07_Lab_HumanQuest.py | allegheny-college-cmpsc-100-fall-2020/cmpsc-100-fall-2020-week-07-functions-and-modules | b546d7bc9974afa078018ae4ecd060213e3dcf76 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# TODO: Import random
# TODO: Create die_roll function which
# Accepts one parameter (# of sides)
# Returns random number between 1 and sides
# TODO: Open and parse file to:
# Retrieve monster name
# Retrieve monster die roll
# TODO: Do the rolls
# TODO: total the ... | 19.15 | 46 | 0.70235 | 57 | 383 | 4.701754 | 0.701754 | 0.052239 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006689 | 0.219321 | 383 | 20 | 47 | 19.15 | 0.889632 | 0.882507 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.05 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
284487793b0f48c968929651326a0778fa98fd7c | 248 | py | Python | create_descriptor.py | shots47s/fslwrappers | ae9bb6c2855c52e44c1f63db1c9cbbecd723d077 | [
"MIT"
] | null | null | null | create_descriptor.py | shots47s/fslwrappers | ae9bb6c2855c52e44c1f63db1c9cbbecd723d077 | [
"MIT"
] | 1 | 2021-04-30T20:38:47.000Z | 2021-04-30T20:38:47.000Z | create_descriptor.py | shots47s/fslwrappers | ae9bb6c2855c52e44c1f63db1c9cbbecd723d077 | [
"MIT"
] | 2 | 2018-07-30T23:58:57.000Z | 2018-07-31T21:53:43.000Z | #!/usr/bin/env python
from eddy_driver import hcpparser
import boutiques.creator as bc
newDescriptor = bc.CreateDescriptor(hcpparser(),
execname="python eddy_driver.py")
newDescriptor.save("eddy_driver.json")
| 24.8 | 69 | 0.685484 | 28 | 248 | 5.964286 | 0.678571 | 0.179641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221774 | 248 | 9 | 70 | 27.555556 | 0.865285 | 0.080645 | 0 | 0 | 0 | 0 | 0.162996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2853bfb1e0fb519456f0d2e9896d49e73fdbdeef | 342 | py | Python | SWSIdentity/Models/roles/__init__.py | vanzhiganov/identity | 90936482cc23251ba06121658e6a0a9251e30b3b | [
"Apache-2.0"
] | 1 | 2018-03-26T21:18:52.000Z | 2018-03-26T21:18:52.000Z | SWSIdentity/Models/roles/__init__.py | vanzhiganov/identity | 90936482cc23251ba06121658e6a0a9251e30b3b | [
"Apache-2.0"
] | null | null | null | SWSIdentity/Models/roles/__init__.py | vanzhiganov/identity | 90936482cc23251ba06121658e6a0a9251e30b3b | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, String
from SWSIdentity import db
class Roles(db.Model):
id = Column(Integer, primary_key=True)
project = Column(Integer, nullable=False, index=True)
name = Column(String(128), nullable=False)
description = Column(String(128))
enabled = Column(Integer, nulla... | 31.090909 | 57 | 0.730994 | 44 | 342 | 5.659091 | 0.568182 | 0.208835 | 0.168675 | 0.208835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.160819 | 342 | 10 | 58 | 34.2 | 0.843206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
28776f5b783fda5296860197c55beb4c2217db5d | 216 | py | Python | topic-model/pca.py | miyopico/e2d3-contrib | b3645fd1f9a43703d2e65f8be1a47ce3308c7179 | [
"Apache-2.0"
] | 82 | 2015-03-24T12:00:32.000Z | 2021-12-26T20:31:35.000Z | topic-model/pca.py | miyopico/e2d3-contrib | b3645fd1f9a43703d2e65f8be1a47ce3308c7179 | [
"Apache-2.0"
] | 173 | 2015-02-19T07:54:56.000Z | 2021-08-19T05:52:30.000Z | topic-model/pca.py | miyopico/e2d3-contrib | b3645fd1f9a43703d2e65f8be1a47ce3308c7179 | [
"Apache-2.0"
] | 211 | 2015-03-08T04:47:44.000Z | 2022-02-12T05:36:14.000Z | import numpy
import sklearn.decomposition
dim=2
data=numpy.loadtxt("data.csv", delimiter=",")
pca=sklearn.decomposition.PCA(dim)
result=pca.fit_transform(data);
numpy.savetxt("result.csv", result, delimiter=",")
| 21.6 | 50 | 0.759259 | 29 | 216 | 5.62069 | 0.517241 | 0.245399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.074074 | 216 | 9 | 51 | 24 | 0.81 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
288a99fca08403a300002caafb5c7566558c6be1 | 1,535 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/ES3_2_compatibility.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/ES3_2_compatibility.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/ES3_2_compatibility.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension ARB.ES3_2_compatibility
This module customises the behaviour of the
OpenGL.raw.GL.ARB.ES3_2_compatibility to provide a more
Python-friendly API
Overview (from the spec)
This extension adds support for features of OpenGL ES 3.2 that are
missing from OpenGL 4.5. Enabling these feature... | 37.439024 | 73 | 0.789577 | 221 | 1,535 | 5.348416 | 0.506787 | 0.067682 | 0.029611 | 0.084602 | 0.095601 | 0.095601 | 0.095601 | 0.069374 | 0.069374 | 0 | 0 | 0.017941 | 0.164821 | 1,535 | 41 | 74 | 37.439024 | 0.904056 | 0.78241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
95455942371066c56b70efc84e070b8ffd9d51a4 | 1,384 | py | Python | students/k33422/Alexandrin_Anton/Lr3/dogshow/main/serializers.py | aytakr/ITMO_ICT_WebDevelopment_2021-2022 | 57c0eef5e1f413c7f031ee001d59e5122f990f26 | [
"MIT"
] | 7 | 2021-09-02T08:20:58.000Z | 2022-01-12T11:48:07.000Z | students/k33422/Alexandrin_Anton/Lr3/dogshow/main/serializers.py | aytakr/ITMO_ICT_WebDevelopment_2021-2022 | 57c0eef5e1f413c7f031ee001d59e5122f990f26 | [
"MIT"
] | 76 | 2021-09-17T23:01:50.000Z | 2022-03-18T16:42:03.000Z | students/k33422/Alexandrin_Anton/Lr3/dogshow/main/serializers.py | aytakr/ITMO_ICT_WebDevelopment_2021-2022 | 57c0eef5e1f413c7f031ee001d59e5122f990f26 | [
"MIT"
] | 60 | 2021-09-04T16:47:39.000Z | 2022-03-21T04:41:27.000Z | from rest_framework import serializers
from .models import *
class ExpertSerializer(serializers.ModelSerializer):
class Meta:
model = Expert
fields = "__all__"
class ParticipantSerializer(serializers.ModelSerializer):
class Meta:
model = Participant
fields = "__all__"
cla... | 20.656716 | 63 | 0.687139 | 117 | 1,384 | 7.982906 | 0.367521 | 0.222698 | 0.119914 | 0.187366 | 0.337259 | 0.183084 | 0.183084 | 0 | 0 | 0 | 0 | 0 | 0.228324 | 1,384 | 66 | 64 | 20.969697 | 0.874532 | 0 | 0 | 0.410256 | 0 | 0 | 0.052784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.051282 | 0.025641 | 0.589744 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9566cf0fdfca522e3e2fc24aeb804a108f7d2922 | 5,871 | py | Python | aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/OperateExistsNodeClusterRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/OperateExistsNodeClusterRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/OperateExistsNodeClusterRequest.py | liumihust/aliyun-openapi-python-sdk | c7b5dd4befae4b9c59181654289f9272531207ef | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | 32.436464 | 91 | 0.754727 | 746 | 5,871 | 5.726542 | 0.183646 | 0.033708 | 0.078652 | 0.095506 | 0.202949 | 0.193118 | 0.193118 | 0.018961 | 0 | 0 | 0 | 0.00295 | 0.134049 | 5,871 | 181 | 92 | 32.436464 | 0.837333 | 0.128428 | 0 | 0 | 0 | 0 | 0.126346 | 0.022344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.441441 | false | 0 | 0.018018 | 0.216216 | 0.684685 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9568db49d50de6526ff2fbeadd8028d96e1d6e65 | 312 | py | Python | yatube/posts/utils.py | alexzawadsky/YaTube | 0c85c35ced621693d1a1457e89179a9de2c262e7 | [
"MIT"
] | null | null | null | yatube/posts/utils.py | alexzawadsky/YaTube | 0c85c35ced621693d1a1457e89179a9de2c262e7 | [
"MIT"
] | null | null | null | yatube/posts/utils.py | alexzawadsky/YaTube | 0c85c35ced621693d1a1457e89179a9de2c262e7 | [
"MIT"
] | null | null | null | from django.core.paginator import Paginator
from yatube.settings import PAGINATOR_OBJECTS_ON_PAGE
def paginator(request, objects, *args):
paginator = Paginator(objects, PAGINATOR_OBJECTS_ON_PAGE)
page_number = request.GET.get("page")
page_obj = paginator.get_page(page_number)
return page_obj
| 28.363636 | 61 | 0.785256 | 42 | 312 | 5.571429 | 0.404762 | 0.205128 | 0.153846 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137821 | 312 | 10 | 62 | 31.2 | 0.869888 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
956e33a7ef9fb52edaa1edf50435971ee86c98d7 | 817 | py | Python | prescience/labelling/KungFuMaster.py | grockious/bounded-prescience | cc1278fb4c077f67c611ef8ac00b00f0f2c4f433 | [
"BSD-3-Clause"
] | 1 | 2021-01-26T12:17:12.000Z | 2021-01-26T12:17:12.000Z | prescience/labelling/KungFuMaster.py | grockious/bounded-prescience | cc1278fb4c077f67c611ef8ac00b00f0f2c4f433 | [
"BSD-3-Clause"
] | null | null | null | prescience/labelling/KungFuMaster.py | grockious/bounded-prescience | cc1278fb4c077f67c611ef8ac00b00f0f2c4f433 | [
"BSD-3-Clause"
] | 2 | 2021-01-26T11:19:01.000Z | 2021-03-19T10:18:13.000Z | import gym
from prescience.labelling import Labeller
import numpy as np
from collections import deque
class Energy_Loss(Labeller):
def __init__(self, env):
self.energy_bar = deque()
super().__init__(env)
def reset(self):
self.energy_bar = deque()
def label(self, obs, reward, done... | 25.53125 | 65 | 0.604651 | 108 | 817 | 4.407407 | 0.5 | 0.189076 | 0.245798 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0.298654 | 817 | 31 | 66 | 26.354839 | 0.809773 | 0.051408 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.173913 | 0.043478 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
95711cbd0d872e8307ec62af9a285d0869a0ad59 | 915 | py | Python | backend/mlarchive/bin/django_setup.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 6 | 2022-03-09T23:10:28.000Z | 2022-03-21T05:32:40.000Z | backend/mlarchive/bin/django_setup.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 5 | 2022-03-11T09:39:47.000Z | 2022-03-30T16:48:09.000Z | backend/mlarchive/bin/django_setup.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 4 | 2022-03-04T15:36:19.000Z | 2022-03-28T23:45:44.000Z | '''
Broilerplate for standalone Django scripts
'''
import os
import sys
#DEFAULT_DJANGO_SETTINGS_MODULE = 'mlarchive.settings.production'
DEFAULT_DJANGO_SETTINGS_MODULE = 'mlarchive.settings.settings'
def do_setup(django_settings=None):
'''Boilerplate environment setup for bin scripts'''
path = os.path.dirna... | 28.59375 | 87 | 0.739891 | 114 | 915 | 5.692982 | 0.377193 | 0.237288 | 0.1849 | 0.124807 | 0.204931 | 0.204931 | 0.069337 | 0.069337 | 0 | 0 | 0 | 0.001319 | 0.171585 | 915 | 31 | 88 | 29.516129 | 0.854881 | 0.264481 | 0 | 0 | 0 | 0 | 0.141553 | 0.141553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.235294 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
957aed3ee4f31746eedab600579ef4c38fdd2b1c | 27 | py | Python | DevicesApi/Devices/Cisco/detail/interfaces.py | kefatong/NetworkAutomation | 70e663df5f650c1959da7eeb3b35de060470fa4d | [
"Apache-2.0"
] | null | null | null | DevicesApi/Devices/Cisco/detail/interfaces.py | kefatong/NetworkAutomation | 70e663df5f650c1959da7eeb3b35de060470fa4d | [
"Apache-2.0"
] | null | null | null | DevicesApi/Devices/Cisco/detail/interfaces.py | kefatong/NetworkAutomation | 70e663df5f650c1959da7eeb3b35de060470fa4d | [
"Apache-2.0"
] | null | null | null | __author__ = 'eric'
| 5.4 | 20 | 0.518519 | 2 | 27 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.37037 | 27 | 4 | 21 | 6.75 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
95acf1ce9f2da7134924c6f36d790982aad3cac6 | 2,180 | py | Python | intermol/types/__init__.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | intermol/types/__init__.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | intermol/types/__init__.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | from abstract_atom_type import AbstractAtomType
from abstract_nonbonded_type import AbstractNonbondedType
from abstract_bond_type import AbstractBondType
from abstract_pair_type import AbstractPairType
from abstract_angle_type import AbstractAngleType
from abstract_dihedral_type import AbstractDihedralType
from atom_C... | 44.489796 | 77 | 0.92156 | 254 | 2,180 | 7.555118 | 0.295276 | 0.177176 | 0.054716 | 0.094841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024888 | 0.07844 | 2,180 | 48 | 78 | 45.416667 | 0.930314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
95c7b4f8fbd7fa893c0d8be258aac32461bc6a55 | 396 | py | Python | forecast/views.py | GoddessLuBoYan/rmforecast | ec0417c247965a5b2dc9d77c55fae338c1163c06 | [
"MIT"
] | null | null | null | forecast/views.py | GoddessLuBoYan/rmforecast | ec0417c247965a5b2dc9d77c55fae338c1163c06 | [
"MIT"
] | null | null | null | forecast/views.py | GoddessLuBoYan/rmforecast | ec0417c247965a5b2dc9d77c55fae338c1163c06 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from rhythm_master.test1 import *
# Create your views here.
def index(request):
return HttpResponse("Hello World!")
def friend(request):
return HttpResponse(Map.getData())
def guide(request):
return HttpResponse(Guide.getDat... | 24.75 | 43 | 0.739899 | 47 | 396 | 6.212766 | 0.531915 | 0.178082 | 0.342466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003021 | 0.164141 | 396 | 16 | 43 | 24.75 | 0.879154 | 0.058081 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.272727 | 0.363636 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
95e6989d79a74dfb897ffedd59220ec00b536656 | 640 | py | Python | l5kit/l5kit/data/labels.py | stefaniespeichert/l5kit | e7ef272b80d71c5080891b27f478c6d3e001774e | [
"Apache-2.0"
] | 5 | 2021-02-27T07:40:41.000Z | 2022-03-24T07:03:35.000Z | l5kit/l5kit/data/labels.py | phalanx-hk/l5kit | 92c88c4050b946b6828a47ddb3d13da9d87f9f7d | [
"Apache-2.0"
] | null | null | null | l5kit/l5kit/data/labels.py | phalanx-hk/l5kit | 92c88c4050b946b6828a47ddb3d13da9d87f9f7d | [
"Apache-2.0"
] | 2 | 2021-12-07T06:59:06.000Z | 2022-01-22T07:19:18.000Z | LABELS = [
"PERCEPTION_LABEL_NOT_SET",
"PERCEPTION_LABEL_UNKNOWN",
"PERCEPTION_LABEL_DONTCARE",
"PERCEPTION_LABEL_CAR",
"PERCEPTION_LABEL_VAN",
"PERCEPTION_LABEL_TRAM",
"PERCEPTION_LABEL_BUS",
"PERCEPTION_LABEL_TRUCK",
"PERCEPTION_LABEL_EMERGENCY_VEHICLE",
"PERCEPTION_LABEL_OTHER... | 30.47619 | 71 | 0.748438 | 66 | 640 | 6.666667 | 0.409091 | 0.545455 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153125 | 640 | 20 | 72 | 32 | 0.811808 | 0 | 0 | 0 | 0 | 0 | 0.654688 | 0.560938 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
95e6993ae52d73accef470fbb0017afbab6fa0ad | 127 | py | Python | exts.py | 0v3rW4tch/webshell_detect_cms | aeda3b59a6d281df8eae8e5f34d839e98e546364 | [
"MIT"
] | 2 | 2020-08-05T06:54:21.000Z | 2020-12-23T02:25:03.000Z | exts.py | 0v3rW4tch/webshell_detect_cms | aeda3b59a6d281df8eae8e5f34d839e98e546364 | [
"MIT"
] | null | null | null | exts.py | 0v3rW4tch/webshell_detect_cms | aeda3b59a6d281df8eae8e5f34d839e98e546364 | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
from flask_apscheduler import APScheduler
db = SQLAlchemy()
scheduler = APScheduler()
| 21.166667 | 41 | 0.834646 | 14 | 127 | 7.428571 | 0.5 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11811 | 127 | 5 | 42 | 25.4 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
95ec03dc05d10a7857c245f5c1d41148d8616838 | 278 | py | Python | nexmo/urls.py | japsu/django-nexmo | 6b6825544837f657979d2b58496172a971fc6e73 | [
"BSD-2-Clause"
] | null | null | null | nexmo/urls.py | japsu/django-nexmo | 6b6825544837f657979d2b58496172a971fc6e73 | [
"BSD-2-Clause"
] | null | null | null | nexmo/urls.py | japsu/django-nexmo | 6b6825544837f657979d2b58496172a971fc6e73 | [
"BSD-2-Clause"
] | null | null | null | from django.conf.urls import url
from .views import nexmo_delivery, nexmo_message
urlpatterns = [
url(r'^nexmo/delivery/(?P<key>[a-f0-9]+)/$', nexmo_delivery, name='nexmo_delivery'),
url(r'^nexmo/message/(?P<key>[a-f0-9]+)/$', nexmo_message, name='nexmo_message'),
]
| 27.8 | 88 | 0.68705 | 42 | 278 | 4.404762 | 0.428571 | 0.281081 | 0.097297 | 0.075676 | 0.140541 | 0.140541 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.107914 | 278 | 9 | 89 | 30.888889 | 0.729839 | 0 | 0 | 0 | 0 | 0 | 0.352518 | 0.255396 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
95efdbddf0cca8f5520eead72af5c70eb534fb83 | 289 | py | Python | extensions/yaml_support/yaml_support/loader/base_loader.py | Yunusbcr/labgraph | a00ae7098b7b0e0eda8ce2e7e62dae86854616fb | [
"MIT"
] | 124 | 2021-07-14T21:25:59.000Z | 2022-03-08T20:40:16.000Z | extensions/yaml_support/yaml_support/loader/base_loader.py | Yunusbcr/labgraph | a00ae7098b7b0e0eda8ce2e7e62dae86854616fb | [
"MIT"
] | 46 | 2021-07-16T18:41:11.000Z | 2022-03-31T20:53:00.000Z | extensions/yaml_support/yaml_support/loader/base_loader.py | Yunusbcr/labgraph | a00ae7098b7b0e0eda8ce2e7e62dae86854616fb | [
"MIT"
] | 22 | 2021-07-16T18:34:56.000Z | 2022-03-31T15:12:06.000Z | #!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.
from abc import ABCMeta, abstractstaticmethod
class BaseLoader(metaclass=ABCMeta):
"""
An abstraction for file loaders
"""
@abstractstaticmethod
def load_from_file() -> str:
pass
| 20.642857 | 55 | 0.702422 | 32 | 289 | 6.28125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 0.207612 | 289 | 13 | 56 | 22.230769 | 0.855895 | 0.370242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0.2 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
95f443a2f7f26c46dee7503a1b11058786366746 | 1,519 | py | Python | graphlearn/python/model/tf/layers/conv.py | acezen/graph-learn | 05292e25b66c4505abb2804903bb838de4cd5e43 | [
"Apache-2.0"
] | 1 | 2020-03-30T07:49:22.000Z | 2020-03-30T07:49:22.000Z | graphlearn/python/model/tf/layers/conv.py | Sunsj2014/graph-learn | 7bbffceed2c69a7acf903d80ee5bbc7e3fec6ca1 | [
"Apache-2.0"
] | null | null | null | graphlearn/python/model/tf/layers/conv.py | Sunsj2014/graph-learn | 7bbffceed2c69a7acf903d80ee5bbc7e3fec6ca1 | [
"Apache-2.0"
] | 1 | 2021-12-01T04:48:41.000Z | 2021-12-01T04:48:41.000Z | # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved.
#
# 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 ... | 37.04878 | 79 | 0.703752 | 205 | 1,519 | 5.068293 | 0.604878 | 0.057748 | 0.046198 | 0.030799 | 0.055823 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006457 | 0.184332 | 1,519 | 40 | 80 | 37.975 | 0.832123 | 0.748519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.444444 | 0 | 0.777778 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
250809b5c439fcf959eca35278b08f692e48d0b5 | 126 | py | Python | 1079.py | gabzin/beecrowd | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | 3 | 2021-12-15T20:27:14.000Z | 2022-03-01T12:30:08.000Z | 1079.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | 1079.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
x,b,c=map(float,input().split())
d=((x/5.0)+((b*3.0)/10.0)+(c/2.0))
print("%.1f"%d)
| 25.2 | 38 | 0.484127 | 27 | 126 | 2.222222 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0.150794 | 126 | 4 | 39 | 31.5 | 0.46729 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2515434943227a0d6663e43b90c09c02ef67b897 | 4,848 | py | Python | minkf/tests/test_methods.py | solbes/minkf | faefdfe20d44273fd6443a3e3d2b25e31956fb87 | [
"MIT"
] | 1 | 2021-12-09T15:12:04.000Z | 2021-12-09T15:12:04.000Z | minkf/tests/test_methods.py | solbes/minkf | faefdfe20d44273fd6443a3e3d2b25e31956fb87 | [
"MIT"
] | null | null | null | minkf/tests/test_methods.py | solbes/minkf | faefdfe20d44273fd6443a3e3d2b25e31956fb87 | [
"MIT"
] | 1 | 2021-12-09T22:28:58.000Z | 2021-12-09T22:28:58.000Z | import numpy as np
import minkf as kf
def test_filter_and_smoother():
# case 1: 1d-signal, constant matrices
y = np.ones(3)
x0 = np.array([0.0])
Cest0 = 1 * np.array([[1.0]])
M = np.array([[1.0]])
K = np.array([[1.0]])
Q = np.array([[1.0]])
R = np.array([[1.0]])
res = kf.run_fil... | 31.894737 | 80 | 0.486799 | 706 | 4,848 | 3.235127 | 0.130312 | 0.15324 | 0.122592 | 0.171191 | 0.721541 | 0.678196 | 0.643608 | 0.584063 | 0.46366 | 0.46366 | 0 | 0.218609 | 0.314975 | 4,848 | 151 | 81 | 32.10596 | 0.469136 | 0.02764 | 0 | 0.384615 | 0 | 0 | 0.008068 | 0 | 0 | 0 | 0 | 0 | 0.130769 | 1 | 0.007692 | false | 0 | 0.015385 | 0 | 0.030769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2522363b6f1355c3c4af415776c5e4f1ef17294c | 659 | py | Python | exceptions.py | RaymondCarlaw/watt-watchers-api | 3666e658a975c2afa6283d95f498f7dd8ecfc944 | [
"MIT"
] | null | null | null | exceptions.py | RaymondCarlaw/watt-watchers-api | 3666e658a975c2afa6283d95f498f7dd8ecfc944 | [
"MIT"
] | null | null | null | exceptions.py | RaymondCarlaw/watt-watchers-api | 3666e658a975c2afa6283d95f498f7dd8ecfc944 | [
"MIT"
] | null | null | null | from .models import RateLimits
from typing import Dict
class CommonError(Exception):
def __init__(self, content: Dict[str, str], rateLimits: RateLimits):
self.Code: str = content.get('code')
self.HttpCode: str = content.get('httpCode')
self.Message: str = content.get('message')
se... | 29.954545 | 90 | 0.657056 | 77 | 659 | 5.415584 | 0.363636 | 0.143885 | 0.093525 | 0.095923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201821 | 659 | 22 | 90 | 29.954545 | 0.792776 | 0 | 0 | 0.133333 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.133333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
253225963b9bb21affe69ea93a0d0965145058da | 81 | py | Python | tests/__init__.py | practo/federation | e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e | [
"MIT"
] | null | null | null | tests/__init__.py | practo/federation | e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e | [
"MIT"
] | null | null | null | tests/__init__.py | practo/federation | e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e | [
"MIT"
] | null | null | null | from faker import Factory as FakerFactory
faker = FakerFactory.create('hi_IN')
| 16.2 | 41 | 0.790123 | 11 | 81 | 5.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 81 | 4 | 42 | 20.25 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
25333ddee0c87516d502ec720da6c562ee5ca0fc | 2,070 | py | Python | tweet_nlp_toolkit/prep/text_prep.py | hitchhicker/tweet_nlp_toolkit | 258ef7657d39af9fe06e7719c28a107a893b074e | [
"Apache-2.0"
] | 2 | 2022-03-05T10:54:57.000Z | 2022-03-05T17:25:57.000Z | tweet_nlp_toolkit/prep/text_prep.py | hitchhicker/tweet_nlp_toolkit | 258ef7657d39af9fe06e7719c28a107a893b074e | [
"Apache-2.0"
] | null | null | null | tweet_nlp_toolkit/prep/text_prep.py | hitchhicker/tweet_nlp_toolkit | 258ef7657d39af9fe06e7719c28a107a893b074e | [
"Apache-2.0"
] | null | null | null | """
Text preprocessing.
"""
import codecs
import logging
import re
import contractions
from tweet_nlp_toolkit.prep.regexes import URL_PAT, QUOTES_PAT, RT_MENTION_PAT, APOSTROPHES_PAT
from tweet_nlp_toolkit.prep.text_parser import parse_text
logger = logging.getLogger(__name__)
# TODO handle html entities &
# T... | 24.939759 | 102 | 0.668116 | 287 | 2,070 | 4.696864 | 0.425087 | 0.037092 | 0.040801 | 0.02819 | 0.096439 | 0.035608 | 0.035608 | 0 | 0 | 0 | 0 | 0.00246 | 0.214493 | 2,070 | 82 | 103 | 25.243902 | 0.826568 | 0.341063 | 0 | 0 | 0 | 0 | 0.095736 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.258065 | false | 0 | 0.193548 | 0.064516 | 0.709677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
257264572000cdaf7f89a18f22db549ff2f4dcec | 442 | py | Python | saleor/core/management/commands/set_order_search_document_values.py | lxmarinkovic/saleor | 237a8cce5fdc88d2995903c4c872344669f6fd08 | [
"CC-BY-4.0"
] | 1 | 2021-08-20T02:19:08.000Z | 2021-08-20T02:19:08.000Z | saleor/core/management/commands/set_order_search_document_values.py | lxmarinkovic/saleor | 237a8cce5fdc88d2995903c4c872344669f6fd08 | [
"CC-BY-4.0"
] | 172 | 2021-05-03T04:34:37.000Z | 2022-03-28T04:41:53.000Z | saleor/core/management/commands/set_order_search_document_values.py | twocucao/saleor | 308413ed9c19e7938e690fe3cf339b526fd34df2 | [
"CC-BY-4.0"
] | 1 | 2022-03-24T08:37:58.000Z | 2022-03-24T08:37:58.000Z | from typing import Any
from django.core.management import BaseCommand
from ....order.models import Order
from ...search_tasks import set_order_search_document_values
class Command(BaseCommand):
help = "Used to set search document values for order."
def handle(self, *args: Any, **options: Any):
tota... | 29.466667 | 70 | 0.751131 | 60 | 442 | 5.333333 | 0.533333 | 0.175 | 0.1875 | 0.1375 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002674 | 0.153846 | 442 | 14 | 71 | 31.571429 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.10181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c24f5588b5befc84cbb1474723a86b52d09dee1a | 327 | py | Python | python/dgl/storages/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | 1 | 2022-02-23T01:35:37.000Z | 2022-02-23T01:35:37.000Z | python/dgl/storages/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | null | null | null | python/dgl/storages/__init__.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | null | null | null | """Feature storage classes for DataLoading"""
from .. import backend as F
from .base import *
from .numpy import *
# Defines the name TensorStorage
if F.get_preferred_backend() == 'pytorch':
from .pytorch_tensor import PyTorchTensorStorage as TensorStorage
else:
from .tensor import BaseTensorStorage as TensorS... | 29.727273 | 69 | 0.7737 | 40 | 327 | 6.25 | 0.6 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152905 | 327 | 10 | 70 | 32.7 | 0.902527 | 0.217125 | 0 | 0 | 0 | 0 | 0.028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c25f57ae98eeb3664988f788f2ddb8e0222b9857 | 664 | py | Python | orange3/Orange/classification/__init__.py | rgschmitz1/BioDepot-workflow-builder | f74d904eeaf91ec52ec9b703d9fb38e9064e5a66 | [
"MIT"
] | 54 | 2017-01-08T17:21:49.000Z | 2021-11-02T08:46:07.000Z | orange3/Orange/classification/__init__.py | Synthia-3/BioDepot-workflow-builder | 4ee93abe2d79465755e82a145af3b6a6e1e79fd4 | [
"MIT"
] | 22 | 2017-03-28T06:03:14.000Z | 2021-07-28T05:43:55.000Z | orange3/Orange/classification/__init__.py | Synthia-3/BioDepot-workflow-builder | 4ee93abe2d79465755e82a145af3b6a6e1e79fd4 | [
"MIT"
] | 21 | 2017-01-26T21:12:09.000Z | 2022-01-31T21:34:59.000Z | # Pull members from modules to Orange.classification namespace
# pylint: disable=wildcard-import
from .base_classification import (
ModelClassification as Model,
LearnerClassification as Learner,
SklModelClassification as SklModel,
SklLearnerClassification as SklLearner,
)
from .knn import *
from .logi... | 27.666667 | 62 | 0.786145 | 79 | 664 | 6.481013 | 0.506329 | 0.273438 | 0.078125 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152108 | 664 | 23 | 63 | 28.869565 | 0.909414 | 0.138554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c270d5edfb65daed5e8213522e9e89c2177e60e2 | 1,232 | py | Python | os.py | ebinsecure/python | 2270fbf52d2104081abf6e60f837cc1ef6d893ea | [
"Apache-2.0"
] | null | null | null | os.py | ebinsecure/python | 2270fbf52d2104081abf6e60f837cc1ef6d893ea | [
"Apache-2.0"
] | null | null | null | os.py | ebinsecure/python | 2270fbf52d2104081abf6e60f837cc1ef6d893ea | [
"Apache-2.0"
] | null | null | null | import os
print (os.ctermid)
print (os.environ)
print (os.environb)
print (os.chdir)
print (os.fchdir)
print (os.getcwd)
print (os.fsencode)
print (os.fsdecode)
print (os.fspath)
print (os.pathlike)
print (os.getenv)
print (os.getenvb)
print (os.get_exec_path)
print (os.os.getegid())
print (os.geteuid())... | 17.855072 | 45 | 0.662338 | 175 | 1,232 | 4.651429 | 0.405714 | 0.386978 | 0.02457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 1,232 | 68 | 46 | 18.117647 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.020833 | 0 | 0.020833 | 0.979167 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c27556be885c1c35006c534c10fabd3962c477a0 | 10,132 | py | Python | db/Analysis.py | kk629/SQLAlchemy | 2f36a5998816a4a635e24fe5f2b3fa12ea4a4666 | [
"MIT"
] | null | null | null | db/Analysis.py | kk629/SQLAlchemy | 2f36a5998816a4a635e24fe5f2b3fa12ea4a4666 | [
"MIT"
] | null | null | null | db/Analysis.py | kk629/SQLAlchemy | 2f36a5998816a4a635e24fe5f2b3fa12ea4a4666 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy import *
from sqlalchemy.orm import Session
from sqlalchemy.exc import IntegrityError
import DatbaseInitialization, Insert
from datetime import datetime
engine = create_engine("sqlite:///db1.sqlite")
session = Session(bind=engine)
result = session.query(DatbaseIn... | 45.63964 | 185 | 0.7273 | 1,288 | 10,132 | 5.654503 | 0.11413 | 0.064259 | 0.172182 | 0.166003 | 0.764932 | 0.707401 | 0.66868 | 0.641357 | 0.640945 | 0.619525 | 0 | 0.004741 | 0.125642 | 10,132 | 221 | 186 | 45.846154 | 0.817361 | 0 | 0 | 0.4 | 0 | 0 | 0.201856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006061 | false | 0.006061 | 0.036364 | 0 | 0.054545 | 0.393939 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c28422a1967ae46d9f923ba1176eb74bea3196ca | 36,657 | py | Python | stoq/tests/test_core.py | ytreister/stoq | 8bfc78b226ee6500eb78e1bdf361fc83bc5005b7 | [
"Apache-2.0"
] | null | null | null | stoq/tests/test_core.py | ytreister/stoq | 8bfc78b226ee6500eb78e1bdf361fc83bc5005b7 | [
"Apache-2.0"
] | null | null | null | stoq/tests/test_core.py | ytreister/stoq | 8bfc78b226ee6500eb78e1bdf361fc83bc5005b7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2014-2018 PUNCH Cyber Analytics Group
#
# 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
#
# Un... | 44.812958 | 88 | 0.665303 | 4,365 | 36,657 | 5.324399 | 0.077663 | 0.053698 | 0.01975 | 0.026333 | 0.774967 | 0.750828 | 0.724108 | 0.694419 | 0.659653 | 0.617701 | 0 | 0.007595 | 0.224132 | 36,657 | 817 | 89 | 44.867809 | 0.809571 | 0.050086 | 0 | 0.535311 | 0 | 0 | 0.131128 | 0.00357 | 0 | 0 | 0 | 0.001224 | 0.223164 | 1 | 0.019774 | false | 0 | 0.012712 | 0 | 0.033898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c293c2df85d82787425f966b9280dba04327dd78 | 385 | py | Python | app/urls.py | tmcna/tracker_server | a371fce5491a01d57fb3462669a3d959a9b30e02 | [
"MIT"
] | null | null | null | app/urls.py | tmcna/tracker_server | a371fce5491a01d57fb3462669a3d959a9b30e02 | [
"MIT"
] | null | null | null | app/urls.py | tmcna/tracker_server | a371fce5491a01d57fb3462669a3d959a9b30e02 | [
"MIT"
] | null | null | null | from rest_framework import routers
from .views import UserViewSet, ProjectViewSet, TestSuiteViewSet, TestCaseViewSet, IssueViewSet
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
router.register(r'projects', ProjectViewSet)
router.register(r'testsuites', TestSuiteViewSet)
router.register(r'test... | 42.777778 | 95 | 0.833766 | 41 | 385 | 7.804878 | 0.487805 | 0.21875 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 385 | 9 | 96 | 42.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.098446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2a1d7ba8839ac8dd761e4fca3384469d4e4c7b4 | 432 | py | Python | apps/gallery/forms.py | F483/bikesurf.org | c85680f7443920a4dbf95e24f58e0a095c3da42f | [
"MIT"
] | 6 | 2015-08-11T19:48:12.000Z | 2019-06-26T20:02:05.000Z | apps/gallery/forms.py | F483/bikesurf.org | c85680f7443920a4dbf95e24f58e0a095c3da42f | [
"MIT"
] | 27 | 2015-02-15T22:21:20.000Z | 2017-12-06T20:27:35.000Z | apps/gallery/forms.py | F483/bikesurf.org | c85680f7443920a4dbf95e24f58e0a095c3da42f | [
"MIT"
] | 3 | 2015-08-10T18:11:59.000Z | 2017-11-28T20:59:40.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com>
# License: MIT (see LICENSE.TXT file)
from django.utils.translation import ugettext as _
from django.forms import Form
from django.forms import ImageField
from django.forms import ModelChoiceField
class Create(... | 19.636364 | 80 | 0.694444 | 54 | 432 | 5.5 | 0.574074 | 0.13468 | 0.151515 | 0.212121 | 0.195286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014327 | 0.19213 | 432 | 21 | 81 | 20.571429 | 0.836676 | 0.314815 | 0 | 0.25 | 0 | 0 | 0.034602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c2aade956be76e4291865ae10e9c3aa541902d66 | 1,617 | py | Python | python/genetic_trainer.py | codeKarancher/KobraChessAI | 64008689554cdeac3c1f84f80fc8b642342311cc | [
"BSD-2-Clause"
] | null | null | null | python/genetic_trainer.py | codeKarancher/KobraChessAI | 64008689554cdeac3c1f84f80fc8b642342311cc | [
"BSD-2-Clause"
] | null | null | null | python/genetic_trainer.py | codeKarancher/KobraChessAI | 64008689554cdeac3c1f84f80fc8b642342311cc | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2021 Karan Sharma - ks920@cam.ac.uk
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following dis... | 52.16129 | 207 | 0.784787 | 242 | 1,617 | 5.219008 | 0.57438 | 0.028504 | 0.02692 | 0.036421 | 0.145685 | 0.10768 | 0.10768 | 0.10768 | 0.10768 | 0.10768 | 0 | 0.011095 | 0.163884 | 1,617 | 30 | 208 | 53.9 | 0.923077 | 0.790353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.555556 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
c2afa32846b7ffcad9fefc64fb3e46b2b32e5f4e | 1,703 | py | Python | rest_in_python/data_administer/__init__.py | Varun2604/rest_in_python | cd8e0c7b2862c43176d249a9de26e0133ae7a7af | [
"MIT"
] | null | null | null | rest_in_python/data_administer/__init__.py | Varun2604/rest_in_python | cd8e0c7b2862c43176d249a9de26e0133ae7a7af | [
"MIT"
] | null | null | null | rest_in_python/data_administer/__init__.py | Varun2604/rest_in_python | cd8e0c7b2862c43176d249a9de26e0133ae7a7af | [
"MIT"
] | null | null | null |
#interface to fetch data from the specified orm
# all methods throw exceptions.
DB_OPERATIONS = {
'CREATE' : 'CREATE',
'READ' : 'READ',
'UPDATE' : 'UPDATE',
'DELETE' : 'DELETE',
'READ_LIST' : 'READ_LIST'
}
class DataAdminister(object):
def __init__(self, db_connection):
if db_connecti... | 33.392157 | 88 | 0.655901 | 244 | 1,703 | 4.504098 | 0.307377 | 0.025478 | 0.059145 | 0.081893 | 0.495905 | 0.415833 | 0.415833 | 0.415833 | 0.415833 | 0.386715 | 0 | 0 | 0.270112 | 1,703 | 50 | 89 | 34.06 | 0.884151 | 0.567821 | 0 | 0.227273 | 0 | 0 | 0.125698 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.272727 | false | 0.227273 | 0 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c2b899af2c2a14370f7553de0bce7a92adf5f933 | 4,184 | py | Python | meslas/vectors.py | CedricTravelletti/MESLAS | 362c7f13c5f3d7261e7603920c22429275a4958b | [
"MIT"
] | null | null | null | meslas/vectors.py | CedricTravelletti/MESLAS | 362c7f13c5f3d7261e7603920c22429275a4958b | [
"MIT"
] | null | null | null | meslas/vectors.py | CedricTravelletti/MESLAS | 362c7f13c5f3d7261e7603920c22429275a4958b | [
"MIT"
] | null | null | null | """ Encapsulation of the reshaping between isotopic and non-isotopic form.
"""
import torch
class GeneralizedVector():
""" A generalized vector is used to implement the types of vectors that
appear when working with multivariate random fields. Given *n_points*
points in space, the value of a *n_out* dime... | 30.100719 | 91 | 0.639818 | 584 | 4,184 | 4.402397 | 0.205479 | 0.050564 | 0.046674 | 0.032672 | 0.63555 | 0.541813 | 0.520031 | 0.458187 | 0.458187 | 0.446519 | 0 | 0.015334 | 0.267447 | 4,184 | 138 | 92 | 30.318841 | 0.823491 | 0.409417 | 0 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.016667 | 0.116667 | 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 | 1 | 1 | 0 | 0 | 3 |
c2ea030b1b3fbdd327888e0721b5335cbddc4f60 | 50 | py | Python | numpy_zeros.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | 1 | 2018-07-02T03:37:03.000Z | 2018-07-02T03:37:03.000Z | numpy_zeros.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | numpy_zeros.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | import numpy as numpy
x = numpy.zeros(5)
print (x) | 16.666667 | 21 | 0.72 | 10 | 50 | 3.6 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.16 | 50 | 3 | 22 | 16.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6c19b1e45c36bb670c66059d450355db4919a221 | 569 | py | Python | bika/lims/browser/worksheet/views/__init__.py | hocinebendou/bika.gsoc | 85bc0c587de7f52073ae0e89bddbc77bf875f295 | [
"MIT"
] | null | null | null | bika/lims/browser/worksheet/views/__init__.py | hocinebendou/bika.gsoc | 85bc0c587de7f52073ae0e89bddbc77bf875f295 | [
"MIT"
] | null | null | null | bika/lims/browser/worksheet/views/__init__.py | hocinebendou/bika.gsoc | 85bc0c587de7f52073ae0e89bddbc77bf875f295 | [
"MIT"
] | null | null | null | # coding=utf-8
from add_analyses import AddAnalysesView
from add_blank import AddBlankView
from add_control import AddControlView
from add_duplicate import AddDuplicateView
from add_worksheet import AddWorksheetView
from analyses import AnalysesView
from analyses_transposed import AnalysesTransposedView
from analysisre... | 35.5625 | 54 | 0.892794 | 65 | 569 | 7.723077 | 0.492308 | 0.069721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001957 | 0.101933 | 569 | 15 | 55 | 37.933333 | 0.980431 | 0.02109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6c1bbf7af9c00101463427510bc32a2e99dbef1a | 733 | py | Python | source/server/lib/config.py | LuckyHacker/UMNI | 68887f00a4c00b4fddfd6a789e8b99750a31f27c | [
"MIT"
] | 1 | 2018-02-22T14:54:16.000Z | 2018-02-22T14:54:16.000Z | source/server/lib/config.py | LuckyHacker/UMNI | 68887f00a4c00b4fddfd6a789e8b99750a31f27c | [
"MIT"
] | null | null | null | source/server/lib/config.py | LuckyHacker/UMNI | 68887f00a4c00b4fddfd6a789e8b99750a31f27c | [
"MIT"
] | 1 | 2018-02-25T03:23:15.000Z | 2018-02-25T03:23:15.000Z | import json
class Config:
def __init__(self):
try:
with open("config.json", "r") as f:
self.config = json.loads(f.read())
except FileNotFoundError:
self.config = {}
self.config["Default"] = {
"HOST": "localhost",
"... | 27.148148 | 74 | 0.511596 | 82 | 733 | 4.47561 | 0.414634 | 0.190736 | 0.185286 | 0.163488 | 0.245232 | 0.245232 | 0 | 0 | 0 | 0 | 0 | 0.012448 | 0.342428 | 733 | 26 | 75 | 28.192308 | 0.748963 | 0 | 0 | 0 | 0 | 0 | 0.126876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0.142857 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
6c3585f786b9febe50fe5160f56db79dbe3801ad | 229 | py | Python | specify/utils.py | Einenlum/specify | 73d466eee6c96a6b12e6bfc25487e06ace12d970 | [
"MIT"
] | null | null | null | specify/utils.py | Einenlum/specify | 73d466eee6c96a6b12e6bfc25487e06ace12d970 | [
"MIT"
] | null | null | null | specify/utils.py | Einenlum/specify | 73d466eee6c96a6b12e6bfc25487e06ace12d970 | [
"MIT"
] | null | null | null | from prophepy import Mock
def map_for_dict(func, dictionary):
return {k: func(v) for k, v in dictionary.items()}
def reveal_if_needed(value):
if isinstance(value, Mock):
return value._reveal()
return value
| 20.818182 | 54 | 0.694323 | 34 | 229 | 4.529412 | 0.588235 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20524 | 229 | 10 | 55 | 22.9 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6c463045f797790cd6e4d94d04f0eb7aaaf3a9ad | 2,827 | py | Python | tests/test_message.py | jschneier/TwistedTorrent | 39914240a244c0285aa6fe3fdcd0b24b01fc16f8 | [
"MIT"
] | 1 | 2018-06-11T09:54:30.000Z | 2018-06-11T09:54:30.000Z | tests/test_message.py | jschneier/TwistedTorrent | 39914240a244c0285aa6fe3fdcd0b24b01fc16f8 | [
"MIT"
] | 1 | 2019-04-30T22:51:26.000Z | 2019-04-30T22:51:26.000Z | tests/test_message.py | jschneier/TwistedTorrent | 39914240a244c0285aa6fe3fdcd0b24b01fc16f8 | [
"MIT"
] | null | null | null | import unittest
from bitarray import bitarray
from twistedtorrent.message import Message
from twistedtorrent.constants import BSIZE
class MessageTest(unittest.TestCase):
def test_keep_alive(self):
self.assertEquals(Message('keep_alive'), '\x00\x00\x00\x00')
def test_choke(self):
self.assertEq... | 39.816901 | 107 | 0.572338 | 349 | 2,827 | 4.524355 | 0.203438 | 0.216593 | 0.153895 | 0.256491 | 0.412286 | 0.183661 | 0.183661 | 0.183661 | 0.168461 | 0.168461 | 0 | 0.149556 | 0.283339 | 2,827 | 70 | 108 | 40.385714 | 0.629812 | 0 | 0 | 0.056604 | 0 | 0.075472 | 0.253272 | 0.148567 | 0 | 0 | 0 | 0 | 0.301887 | 1 | 0.301887 | false | 0 | 0.075472 | 0 | 0.396226 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6c5046dd6f83847cd1ce936b621247b6ec076bb9 | 300 | py | Python | client/experimentfile/old/toolboxclass.py | xutongxin1/UnitAi-project | 226ccc7d73096fd3582a55bf76593756d8033892 | [
"MIT"
] | 5 | 2019-03-23T09:21:14.000Z | 2019-10-18T11:31:10.000Z | client/experimentfile/old/toolboxclass.py | xutongxin1/UnitAi-project | 226ccc7d73096fd3582a55bf76593756d8033892 | [
"MIT"
] | null | null | null | client/experimentfile/old/toolboxclass.py | xutongxin1/UnitAi-project | 226ccc7d73096fd3582a55bf76593756d8033892 | [
"MIT"
] | 2 | 2020-01-12T06:03:44.000Z | 2020-01-17T00:23:20.000Z | from PyQt5 import QtCore, QtGui, QtWidgets,Qt
from PyQt5.QtWidgets import QApplication, QPushButton, QMenu,QLineEdit,QMainWindow,QLabel
from PyQt5.QtCore import QCoreApplication,QTimer,QThread,pyqtSignal
from PyQt5.QtGui import QIcon, QPainter, QPixmap,QPalette,QBrush
class zhixueall(QMainWindow):
| 50 | 90 | 0.846667 | 37 | 300 | 6.864865 | 0.648649 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014545 | 0.083333 | 300 | 5 | 91 | 60 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.8 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6c6200ed58174b6fb603b2351a2148793c4f389e | 157 | py | Python | redisco/models/key.py | saltduck/redisco | 9d2027c6ab7cb9479600e2f5e4bcecd3150e4552 | [
"MIT"
] | null | null | null | redisco/models/key.py | saltduck/redisco | 9d2027c6ab7cb9479600e2f5e4bcecd3150e4552 | [
"MIT"
] | null | null | null | redisco/models/key.py | saltduck/redisco | 9d2027c6ab7cb9479600e2f5e4bcecd3150e4552 | [
"MIT"
] | null | null | null | try:
str
except NameError:
# Python 3
str = str = str
class Key(str):
def __getitem__(self, key):
return Key("%s:%s" % (self, key))
| 15.7 | 41 | 0.55414 | 22 | 157 | 3.772727 | 0.590909 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.299363 | 157 | 9 | 42 | 17.444444 | 0.745455 | 0.050955 | 0 | 0 | 0 | 0 | 0.034014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
6c86bdbbc5a7a0991fa48d69e47acf9c2c6e60c2 | 364 | py | Python | src/bokstaever/migrations/0021_auto_20180817_0900.py | thesus/bokstaever | e0a5e2614dd222ccd56a8945aba4fd28de85dd31 | [
"MIT"
] | null | null | null | src/bokstaever/migrations/0021_auto_20180817_0900.py | thesus/bokstaever | e0a5e2614dd222ccd56a8945aba4fd28de85dd31 | [
"MIT"
] | 7 | 2019-11-18T16:11:01.000Z | 2019-11-18T16:11:04.000Z | src/bokstaever/migrations/0021_auto_20180817_0900.py | thesus/bokstaever | e0a5e2614dd222ccd56a8945aba4fd28de85dd31 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-08-17 09:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("bokstaever", "0020_auto_20180816_1809"),
]
operations = [
migrations.RemoveField(model_name="page", name="gallery",),
migrations.RemoveField... | 22.75 | 67 | 0.664835 | 42 | 364 | 5.642857 | 0.738095 | 0.177215 | 0.219409 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106529 | 0.200549 | 364 | 15 | 68 | 24.266667 | 0.707904 | 0.123626 | 0 | 0 | 1 | 0 | 0.173502 | 0.072555 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6655b3cfec3bbf8dabb84bda78b4a04426af9d60 | 94 | py | Python | Curso/Challenges/URI/1156SSequenceII.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | Curso/Challenges/URI/1156SSequenceII.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | Curso/Challenges/URI/1156SSequenceII.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | s = 1
base = 2
for i in range(3, 40, 2):
s = s + i / base
base *= 2
print(f"{s:.2f}")
| 13.428571 | 25 | 0.457447 | 21 | 94 | 2.047619 | 0.619048 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 0.329787 | 94 | 6 | 26 | 15.666667 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
666cec56a78c235710e5cb8e6c41c55b55568700 | 1,660 | py | Python | spartan/expr/logic.py | GabrielWen/spartan | ce3bf7f2bb551d7f996a1884acef819b620cc854 | [
"Apache-2.0"
] | 156 | 2015-01-10T21:54:25.000Z | 2021-10-17T14:13:57.000Z | spartan/expr/logic.py | GabrielWen/spartan | ce3bf7f2bb551d7f996a1884acef819b620cc854 | [
"Apache-2.0"
] | 8 | 2015-01-05T16:34:18.000Z | 2015-12-11T08:12:28.000Z | spartan/expr/logic.py | GabrielWen/spartan | ce3bf7f2bb551d7f996a1884acef819b620cc854 | [
"Apache-2.0"
] | 24 | 2015-01-10T21:55:48.000Z | 2021-04-14T08:09:34.000Z |
'''
Basic numpy style logic operations on arrays.
These include --
*
'''
import sys
import __builtin__
import numpy as np
import scipy.sparse as sp
from .operator.map import map, map2
from .operator.map_with_location import map_with_location
from .operator.reduce import reduce
from .operator.ndarray import ndarray
... | 20 | 63 | 0.66988 | 266 | 1,660 | 4.015038 | 0.24812 | 0.033708 | 0.067416 | 0.092697 | 0.470037 | 0.397004 | 0.397004 | 0.342697 | 0.342697 | 0.140449 | 0 | 0.000762 | 0.209639 | 1,660 | 82 | 64 | 20.243902 | 0.813262 | 0.039759 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.276596 | false | 0 | 0.276596 | 0.276596 | 0.829787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6677406a133d5be3c2d238bd99d04df6f6b2ba5b | 13,051 | py | Python | Django-restApiTest/polls/views.py | hsuyeemon/Testing | 3ff0e46baa9ce8db446d44cfc10b0cc8ef3a4ef0 | [
"Apache-2.0"
] | 1 | 2020-02-18T06:06:24.000Z | 2020-02-18T06:06:24.000Z | Django-restApiTest/polls/views.py | hsuyeemon/Testing | 3ff0e46baa9ce8db446d44cfc10b0cc8ef3a4ef0 | [
"Apache-2.0"
] | 4 | 2021-05-10T18:47:55.000Z | 2022-02-26T19:48:52.000Z | Django-restApiTest/polls/views.py | hsuyeemon/Testing | 3ff0e46baa9ce8db446d44cfc10b0cc8ef3a4ef0 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated # <-- Here
from django.http import HttpResponse
import requests
import os
import base64
'''
class HelloView(APIVie... | 78.149701 | 8,618 | 0.88384 | 525 | 13,051 | 21.921905 | 0.278095 | 0.004866 | 0.01034 | 0.01034 | 0.106265 | 0.096272 | 0.080459 | 0.074463 | 0.060474 | 0.044661 | 0 | 0.106006 | 0.061068 | 13,051 | 167 | 8,619 | 78.149701 | 0.833197 | 0.7001 | 0 | 0.117647 | 0 | 0.014706 | 0.317126 | 0.075301 | 0 | 1 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.044118 | 0.117647 | 0.014706 | 0.323529 | 0.029412 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
667ac14287671da9d9e7bd229a330dd400b1d0f3 | 3,187 | py | Python | hsite/views.py | priscillansilva/django-horoscope | ba86f8e2f0772c8272b358567f1f17dcbe4a39bb | [
"MIT"
] | null | null | null | hsite/views.py | priscillansilva/django-horoscope | ba86f8e2f0772c8272b358567f1f17dcbe4a39bb | [
"MIT"
] | null | null | null | hsite/views.py | priscillansilva/django-horoscope | ba86f8e2f0772c8272b358567f1f17dcbe4a39bb | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Signos
from django import forms
# Create your views here.
def MainPage(request):
return render(request, 'MainPage.html', {})
def Contato(request):
return render(request, 'hsite/Contato.html', {})
def MostrarTodosSelect(request, signo):
select = True... | 35.021978 | 109 | 0.547851 | 284 | 3,187 | 6.140845 | 0.246479 | 0.358372 | 0.426606 | 0.240826 | 0.355505 | 0.322821 | 0.076835 | 0.076835 | 0.076835 | 0.076835 | 0 | 0.030391 | 0.349545 | 3,187 | 90 | 110 | 35.411111 | 0.810902 | 0.007217 | 0 | 0.609756 | 0 | 0 | 0.093295 | 0.021822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.036585 | 0.02439 | 0.45122 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
667d95bffde48f508bf35a95268ea03ebbc1b27c | 141 | py | Python | frontend/urls.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | null | null | null | frontend/urls.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | 4 | 2021-05-02T01:14:59.000Z | 2022-02-13T17:58:36.000Z | frontend/urls.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
# path('adicionar-casa/', views.listRooms),
path('', views.home),
] | 20.142857 | 47 | 0.666667 | 17 | 141 | 5.529412 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177305 | 141 | 7 | 48 | 20.142857 | 0.810345 | 0.29078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
667fab9f6ded3943033766a31bb24253a8fe2be2 | 908 | py | Python | kfdda/models/user.py | ll1l11/pymysql-test | de5747366bbf23ecb0b1f01059b3a69c8ac4936d | [
"MIT"
] | null | null | null | kfdda/models/user.py | ll1l11/pymysql-test | de5747366bbf23ecb0b1f01059b3a69c8ac4936d | [
"MIT"
] | null | null | null | kfdda/models/user.py | ll1l11/pymysql-test | de5747366bbf23ecb0b1f01059b3a69c8ac4936d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from sqlalchemy import event, DDL
from ..core import db
from . import BaseModel
class User(BaseModel, UserMixin):
id = db.Column(db.Integer, primary_key=True)
phone = db.Column(... | 26.705882 | 73 | 0.719163 | 118 | 908 | 5.364407 | 0.491525 | 0.132701 | 0.063191 | 0.075829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.176211 | 908 | 33 | 74 | 27.515152 | 0.823529 | 0.038546 | 0 | 0 | 1 | 0 | 0.105747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.391304 | 0.217391 | 0.043478 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
66a95f0538e956634fc707cc6599664874c7388b | 2,700 | py | Python | correction/calib_correction.py | sean-mackenzie/gdpyt-analysis | b03931ee431862573aaf449a6b5db2aea00bf998 | [
"MIT"
] | null | null | null | correction/calib_correction.py | sean-mackenzie/gdpyt-analysis | b03931ee431862573aaf449a6b5db2aea00bf998 | [
"MIT"
] | null | null | null | correction/calib_correction.py | sean-mackenzie/gdpyt-analysis | b03931ee431862573aaf449a6b5db2aea00bf998 | [
"MIT"
] | null | null | null |
# imports
import numpy as np
import pandas as pd
from scipy.interpolate import griddata, Akima1DInterpolator
import random
from utils import io, plotting, fit, modify
import matplotlib.pyplot as plt
plt.style.use(['science', 'ieee', 'std-colors'])
# inspect calibration in-focus coords
"""
# file path
fp_in_focus... | 31.764706 | 181 | 0.716667 | 483 | 2,700 | 3.871636 | 0.341615 | 0.02139 | 0.010695 | 0.036364 | 0.292513 | 0.217112 | 0.217112 | 0.162567 | 0.148663 | 0.148663 | 0 | 0.03134 | 0.101852 | 2,700 | 85 | 182 | 31.764706 | 0.739794 | 0.046667 | 0 | 0 | 0 | 0 | 0.083004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
66d1669b73f4240515662a0b4ca6a52bc2d2548c | 2,386 | py | Python | tests/test_alara_split_task.py | zxkjack123/alara_split_gather | 5316c65666d2406f04b4fa6136b484367fbc77aa | [
"MIT"
] | null | null | null | tests/test_alara_split_task.py | zxkjack123/alara_split_gather | 5316c65666d2406f04b4fa6136b484367fbc77aa | [
"MIT"
] | null | null | null | tests/test_alara_split_task.py | zxkjack123/alara_split_gather | 5316c65666d2406f04b4fa6136b484367fbc77aa | [
"MIT"
] | 1 | 2021-09-13T10:22:00.000Z | 2021-09-13T10:22:00.000Z | """tests for alara_split_gather.alara_split_task"""
import os
import nose
from nose.tools import assert_equal, assert_not_equal, assert_raises, raises, \
assert_in, assert_true
from numpy.testing import assert_array_equal, assert_array_almost_equal
import numpy as np
import filecmp
from alara_split_gather.alara_... | 30.589744 | 79 | 0.6886 | 394 | 2,386 | 3.870558 | 0.180203 | 0.074754 | 0.12459 | 0.189508 | 0.739672 | 0.716721 | 0.68918 | 0.623607 | 0.623607 | 0.603934 | 0 | 0.034813 | 0.169321 | 2,386 | 77 | 80 | 30.987013 | 0.734612 | 0.069573 | 0 | 0.489796 | 0 | 0 | 0.220408 | 0.049887 | 0 | 0 | 0 | 0 | 0.163265 | 1 | 0.061224 | false | 0 | 0.163265 | 0 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66e6bdbf9fc9295f81e95ae8dd3693805565099c | 58 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/D/deuteron rms charge radius.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/D/deuteron rms charge radius.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/D/deuteron rms charge radius.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["deuteron rms charge radius"] | 58 | 58 | 0.862069 | 7 | 58 | 7 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 58 | 1 | 58 | 58 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0.440678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66e6e78da6a8f2681b7450af7934a8c33553fcb5 | 624 | py | Python | uploader/maoyan.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 23 | 2020-07-12T07:23:11.000Z | 2022-02-11T09:56:45.000Z | uploader/maoyan.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 2 | 2021-07-25T07:01:14.000Z | 2021-09-01T12:17:49.000Z | uploader/maoyan.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 21 | 2020-07-23T15:27:37.000Z | 2022-03-08T02:44:49.000Z | import os
from uploader import AbstractUploader
class Uploader(AbstractUploader):
@property
def request_url(self) -> str:
return 'https://www.maoyan.com/ajax/proxy/admin/mmdb/photos/upload.json'
@property
def file_key(self) -> str:
return 'file'
@property
def parsed(self) -> ... | 28.363636 | 116 | 0.636218 | 74 | 624 | 5.324324 | 0.621622 | 0.083756 | 0.098985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026369 | 0.209936 | 624 | 21 | 117 | 29.714286 | 0.772819 | 0 | 0 | 0.1875 | 0 | 0.0625 | 0.217949 | 0.054487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.1875 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
66e971962f463cc9edb5f600c81a7ddfcdff8b7e | 3,010 | py | Python | vector.py | bencole12345/3DRenderer | 6f57fe0e097246f85ec9a4e1c33d6012f7d70ba3 | [
"CNRI-Python"
] | null | null | null | vector.py | bencole12345/3DRenderer | 6f57fe0e097246f85ec9a4e1c33d6012f7d70ba3 | [
"CNRI-Python"
] | null | null | null | vector.py | bencole12345/3DRenderer | 6f57fe0e097246f85ec9a4e1c33d6012f7d70ba3 | [
"CNRI-Python"
] | null | null | null | import math
class Vector3D:
def __init__(self, x, y, z):
self.x = float(x)
self.y = float(y)
self.z = float(z)
def __str__(self):
return "(%f, %f, %f)" % (self.x, self.y, self.z)
def scale(self, magnitude):
return Vector3D(self.x * magnitude, self.y * magnitude, ... | 30.714286 | 103 | 0.522924 | 421 | 3,010 | 3.615202 | 0.133017 | 0.032852 | 0.070959 | 0.034166 | 0.38502 | 0.215506 | 0.137976 | 0.103811 | 0.103811 | 0.103811 | 0 | 0.034175 | 0.329236 | 3,010 | 98 | 104 | 30.714286 | 0.719663 | 0.041528 | 0 | 0.115942 | 0 | 0 | 0.004164 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.202899 | false | 0 | 0.014493 | 0.115942 | 0.449275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
dd24665273f611b8f6737771f9c2c1ee444c24d8 | 520 | py | Python | astrofit/core/coope_fit.py | fulmen27/AstroFit | f5113d46ebb1ebc94507655646f84970a3c439b3 | [
"MIT"
] | 1 | 2018-12-19T15:34:29.000Z | 2018-12-19T15:34:29.000Z | astrofit/core/coope_fit.py | fulmen27/AstroFit | f5113d46ebb1ebc94507655646f84970a3c439b3 | [
"MIT"
] | null | null | null | astrofit/core/coope_fit.py | fulmen27/AstroFit | f5113d46ebb1ebc94507655646f84970a3c439b3 | [
"MIT"
] | null | null | null | import numpy as np
from scipy import optimize as opt
def coope_fit_method(x, y):
x = np.array(x)
y = np.array(y)
def my_model(coefficients):
return coefficients[0] * x + coefficients[1] * y + coefficients[2]
def residuals(coefficients):
return x ** 2 + y ** 2 - my_model(coefficients... | 24.761905 | 74 | 0.621154 | 77 | 520 | 4.142857 | 0.38961 | 0.012539 | 0.119122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.238462 | 520 | 20 | 75 | 26 | 0.765152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dd29784dfd24d5f12a0376e76b63233dc896a54b | 656 | py | Python | Flask backend/endpoints.py | williamtoader/HackITall-2021 | c1fb2e17d82d9aec608ec605675c955886cb539d | [
"MIT"
] | null | null | null | Flask backend/endpoints.py | williamtoader/HackITall-2021 | c1fb2e17d82d9aec608ec605675c955886cb539d | [
"MIT"
] | null | null | null | Flask backend/endpoints.py | williamtoader/HackITall-2021 | c1fb2e17d82d9aec608ec605675c955886cb539d | [
"MIT"
] | null | null | null | import analysis as ans
import json
from email import utils
import datetime
ans.tickers_sp500
def getAllTickers():
return json.dumps(ans.tickers_sp500())
def getDataForTicker(ticker, start_date, end_date, interval):
data_list = ans._get_data(ticker, _start_date=start_date, _end_date = end_date, _interval = int... | 34.526316 | 123 | 0.728659 | 103 | 656 | 4.436893 | 0.495146 | 0.065646 | 0.098468 | 0.078775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02773 | 0.120427 | 656 | 19 | 124 | 34.526316 | 0.764298 | 0.033537 | 0 | 0 | 0 | 0 | 0.009479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dd31df54e31e08d01fe492addc05b5d9bc86abd8 | 346 | py | Python | medium.py | xavieryao/nn | 846a8dabdded97e05e7f458925a599f404316b5f | [
"MIT"
] | null | null | null | medium.py | xavieryao/nn | 846a8dabdded97e05e7f458925a599f404316b5f | [
"MIT"
] | null | null | null | medium.py | xavieryao/nn | 846a8dabdded97e05e7f458925a599f404316b5f | [
"MIT"
] | null | null | null | from .low import *
def neg(x: Node) -> Node:
return ScalarMul(neg_one, x)
def relu(x: Node) -> Node:
take_max = Max(zero, x)
return take_max
def sigmoid(x: Node) -> Node:
a = add(one, exp(neg(x)))
return power(a, neg_one)
def binary_cross_entropy(p: Node, y: Node) -> Node:
return -(y*log... | 17.3 | 51 | 0.601156 | 60 | 346 | 3.366667 | 0.416667 | 0.158416 | 0.133663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225434 | 346 | 19 | 52 | 18.210526 | 0.753731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dd4fba34c5c552087b5f7ae9aaecfec1550cce9b | 247 | py | Python | tests/aoc/test_d06.py | klittlepage/aoc2020 | 7135ac08263480a8cc9d6536d7caeb26bf85ae4f | [
"MIT"
] | null | null | null | tests/aoc/test_d06.py | klittlepage/aoc2020 | 7135ac08263480a8cc9d6536d7caeb26bf85ae4f | [
"MIT"
] | null | null | null | tests/aoc/test_d06.py | klittlepage/aoc2020 | 7135ac08263480a8cc9d6536d7caeb26bf85ae4f | [
"MIT"
] | null | null | null | import aoc.d06
from tests.aoc.test_base import BaseTestCase
class TestAll(BaseTestCase):
def test_part_one(self):
self.run_aoc_part(6, 6947, aoc.d06.p_1)
def test_part_two(self):
self.run_aoc_part(6, 3398, aoc.d06.p_2)
| 20.583333 | 47 | 0.708502 | 43 | 247 | 3.813953 | 0.511628 | 0.109756 | 0.134146 | 0.170732 | 0.231707 | 0.231707 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 0.186235 | 247 | 11 | 48 | 22.454545 | 0.726368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dd8953f483079fec631ab1797e68b9094ab427b4 | 550 | py | Python | cell/cell.py | tobegit3hub/enas_model | 66fde22203ba022d1bea3ca333f9a4ac2bec849b | [
"Apache-2.0"
] | 30 | 2018-04-25T01:25:13.000Z | 2020-02-04T08:03:53.000Z | cell/cell.py | tobegit3hub/enas_model | 66fde22203ba022d1bea3ca333f9a4ac2bec849b | [
"Apache-2.0"
] | 1 | 2018-06-25T15:54:09.000Z | 2018-06-25T15:54:09.000Z | cell/cell.py | tobegit3hub/enas_model | 66fde22203ba022d1bea3ca333f9a4ac2bec849b | [
"Apache-2.0"
] | 3 | 2019-04-07T08:00:16.000Z | 2021-11-26T08:58:37.000Z | class EnasNode(object):
def __init__(self):
self.index = None
def __str__(self):
instance_string = "Index: {}".format(self.index)
return instance_string
def __repr__(self):
return self.__str__()
class EnasModel(object):
def __init__(self):
self.model_type = None
self.nodes = []
de... | 20.37037 | 79 | 0.670909 | 70 | 550 | 4.714286 | 0.3 | 0.169697 | 0.078788 | 0.10303 | 0.539394 | 0.266667 | 0.266667 | 0.266667 | 0.266667 | 0 | 0 | 0 | 0.198182 | 550 | 26 | 80 | 21.153846 | 0.748299 | 0 | 0 | 0.526316 | 0 | 0 | 0.050909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0 | 0 | 0.105263 | 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 | 1 | 1 | 0 | 0 | 3 |
06bb085d239d79df50a75b767f1cf682bbc32860 | 285 | py | Python | codeforces/1519B-The Cake Is a Lie/1519B.py | hubert-wojtowicz/faang | a1594962033300cd50bf4e2334dced24ce817f4f | [
"MIT"
] | null | null | null | codeforces/1519B-The Cake Is a Lie/1519B.py | hubert-wojtowicz/faang | a1594962033300cd50bf4e2334dced24ce817f4f | [
"MIT"
] | null | null | null | codeforces/1519B-The Cake Is a Lie/1519B.py | hubert-wojtowicz/faang | a1594962033300cd50bf4e2334dced24ce817f4f | [
"MIT"
] | null | null | null | # https://codeforces.com/problemset/problem/1519/B
# https://codeforces.com/problemset/submission/1519/118914154
if __name__ == '__main__':
t = int(input())
while t>0:
t-=1
(n,m,k) = map(int, input().split(' '))
print("YES" if m-1+(n-1)*m==k else "NO") | 31.666667 | 61 | 0.589474 | 43 | 285 | 3.72093 | 0.627907 | 0.1875 | 0.225 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091703 | 0.196491 | 285 | 9 | 62 | 31.666667 | 0.606987 | 0.378947 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06bcd4ec1a882a511f7b1cc3118f83c4cfe3145d | 103 | py | Python | app_builder/__init__.py | Icenium/appbuilder-sublime-package | 850d42b27e244d947cb3194e67ceda8415239963 | [
"Apache-2.0"
] | 3 | 2015-02-26T21:46:21.000Z | 2019-04-27T15:12:46.000Z | app_builder/__init__.py | Icenium/appbuilder-sublime-package | 850d42b27e244d947cb3194e67ceda8415239963 | [
"Apache-2.0"
] | 38 | 2015-01-12T12:55:48.000Z | 2016-09-17T08:35:13.000Z | app_builder/__init__.py | Icenium/appbuilder-sublime-package | 850d42b27e244d947cb3194e67ceda8415239963 | [
"Apache-2.0"
] | 1 | 2015-09-13T16:32:51.000Z | 2015-09-13T16:32:51.000Z | from .discontinuation_command import DiscontinuationCommand
__all__ = [
"DiscontinuationCommand"
] | 20.6 | 59 | 0.815534 | 7 | 103 | 11.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126214 | 103 | 5 | 60 | 20.6 | 0.877778 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06d5f086933b81ed30537a8842b6353892140d31 | 114 | py | Python | Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 61/61.py | jaswinder9051998/Resources | fd468af37bf24ca57555d153ee64693c018e822e | [
"MIT"
] | 101 | 2021-12-20T11:57:11.000Z | 2022-03-23T09:49:13.000Z | Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 61/61.py | jaswinder9051998/Resources | fd468af37bf24ca57555d153ee64693c018e822e | [
"MIT"
] | 4 | 2022-01-12T11:55:56.000Z | 2022-02-12T04:53:33.000Z | Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 61/61.py | jaswinder9051998/Resources | fd468af37bf24ca57555d153ee64693c018e822e | [
"MIT"
] | 38 | 2022-01-12T11:56:16.000Z | 2022-03-23T10:07:52.000Z | #Create a program that prints Hello every 2 seconds
import time
while True:
print("Hello")
time.sleep(2)
| 16.285714 | 51 | 0.710526 | 18 | 114 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.210526 | 114 | 6 | 52 | 19 | 0.877778 | 0.438596 | 0 | 0 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06d7ff589b1350f07b013c0cbb43461f90fc0e5b | 129 | py | Python | tsis1/add(insert)list.py | ayazhan112/python- | fba09ecc25e11dbfb116f273838b13174f66126d | [
"MIT"
] | null | null | null | tsis1/add(insert)list.py | ayazhan112/python- | fba09ecc25e11dbfb116f273838b13174f66126d | [
"MIT"
] | null | null | null | tsis1/add(insert)list.py | ayazhan112/python- | fba09ecc25e11dbfb116f273838b13174f66126d | [
"MIT"
] | null | null | null | thislist = ["apple", "banana", "cherry"]
thislist.insert(1, "orange")
print(thislist)
#['apple', 'orange', 'banana', 'cherry'] | 32.25 | 41 | 0.635659 | 14 | 129 | 5.857143 | 0.571429 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.108527 | 129 | 4 | 42 | 32.25 | 0.704348 | 0.302326 | 0 | 0 | 0 | 0 | 0.264368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06dc818b61a465851136f79e8dc4d438925091a9 | 388 | py | Python | src/pySanbot/device/interface.py | BHFaction/Tribot | 38d8caaa73775654125db3091b8de2aadb3dba99 | [
"MIT"
] | 3 | 2017-04-04T04:03:28.000Z | 2021-05-29T08:08:48.000Z | src/pySanbot/device/interface.py | BHFaction/Tribot | 38d8caaa73775654125db3091b8de2aadb3dba99 | [
"MIT"
] | null | null | null | src/pySanbot/device/interface.py | BHFaction/Tribot | 38d8caaa73775654125db3091b8de2aadb3dba99 | [
"MIT"
] | 2 | 2018-02-28T14:16:11.000Z | 2019-05-07T18:02:16.000Z | __author__ = 'Yifei'
class PacketListener(object):
def on_packet_received(self, packets):
raise NotImplementedError
def on_packet_sent(self, packets):
raise NotImplementedError
class ConnectionListener(object):
def on_connected(self, packets):
raise NotImplementedError
def ... | 19.4 | 42 | 0.721649 | 38 | 388 | 7.105263 | 0.447368 | 0.074074 | 0.237037 | 0.518519 | 0.296296 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213918 | 388 | 19 | 43 | 20.421053 | 0.885246 | 0 | 0 | 0.363636 | 0 | 0 | 0.012953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06e2ba791130ef0a244032d5c3c870de5bc9f08b | 1,816 | py | Python | stage/configuration/test_google_bigquery_origin.py | Sentienz/datacollector-tests | ca27988351dc3366488098b5db6c85a8be2f7b85 | [
"Apache-2.0"
] | null | null | null | stage/configuration/test_google_bigquery_origin.py | Sentienz/datacollector-tests | ca27988351dc3366488098b5db6c85a8be2f7b85 | [
"Apache-2.0"
] | 1 | 2019-04-24T11:06:38.000Z | 2019-04-24T11:06:38.000Z | stage/configuration/test_google_bigquery_origin.py | anubandhan/datacollector-tests | 301c024c66d68353735256b262b681dd05ba16cc | [
"Apache-2.0"
] | 2 | 2019-05-24T06:34:37.000Z | 2020-03-30T11:48:18.000Z | import pytest
from streamsets.testframework.decorators import stub
@stub
@pytest.mark.parametrize('stage_attributes', [{'credentials_provider': 'JSON'}])
def test_credentials_file_content_in_json(sdc_builder, sdc_executor, stage_attributes):
pass
@stub
@pytest.mark.parametrize('stage_attributes', [{'credential... | 27.938462 | 119 | 0.703744 | 214 | 1,816 | 5.542056 | 0.224299 | 0.151771 | 0.109612 | 0.177066 | 0.667791 | 0.667791 | 0.667791 | 0.570826 | 0.565767 | 0.440135 | 0 | 0 | 0.186123 | 1,816 | 64 | 120 | 28.375 | 0.802436 | 0 | 0 | 0.47619 | 0 | 0 | 0.217631 | 0.026446 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.238095 | 0.047619 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
660375ee45e59ecaacc1629cb8273926034217b7 | 2,166 | py | Python | keyboards/inline/in_processing/__init__.py | itcosplay/cryptobot | 6890cfde64a631bf0e4db55f6873a2217212d801 | [
"MIT"
] | null | null | null | keyboards/inline/in_processing/__init__.py | itcosplay/cryptobot | 6890cfde64a631bf0e4db55f6873a2217212d801 | [
"MIT"
] | null | null | null | keyboards/inline/in_processing/__init__.py | itcosplay/cryptobot | 6890cfde64a631bf0e4db55f6873a2217212d801 | [
"MIT"
] | null | null | null | from .keyboard_current_requests import create_kb_current_requests
from .keyboard_current_requests import cb_current_requests
from .keyboard_chosen_request import create_kb_chosen_request
from .keyboard_chosen_request import cb_chosen_requests
from .keyboards_sum_ready import create_kb_what_sum
from .keyboards_sum_rea... | 38.678571 | 73 | 0.906279 | 329 | 2,166 | 5.416413 | 0.12766 | 0.141414 | 0.164983 | 0.094276 | 0.750281 | 0.665544 | 0.43266 | 0.218294 | 0.047138 | 0 | 0 | 0 | 0.076639 | 2,166 | 55 | 74 | 39.381818 | 0.891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6613ae97edc94b90178a1c650f0e8429d3c7503b | 973 | py | Python | setup.py | flopsi-l-f/vpython-test | e50379a7cfdab141035f85a6070fa4d14e8e9e37 | [
"MIT"
] | 1 | 2022-01-21T00:11:07.000Z | 2022-01-21T00:11:07.000Z | setup.py | flopsi-l-f/two-body-problem_simulation | e50379a7cfdab141035f85a6070fa4d14e8e9e37 | [
"MIT"
] | null | null | null | setup.py | flopsi-l-f/two-body-problem_simulation | e50379a7cfdab141035f85a6070fa4d14e8e9e37 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup()
# with open("README.md", "r") as f:
# long_description = f.read()
#
# setup(
# name="twobodyproblem",
# version="1.0.0",
# description="a little simulation for the gravitational two body problem",
# long_description=long_description,
# long_description_cont... | 31.387097 | 79 | 0.619733 | 113 | 973 | 5.230089 | 0.628319 | 0.101523 | 0.047377 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023018 | 0.1963 | 973 | 30 | 80 | 32.433333 | 0.732737 | 0.905447 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
661675f601fcd0515a3c2fbcc4d267e7d7cb86d1 | 1,092 | py | Python | ex07/chamado.py | barbaracalderon/dsoo-1 | 4f4955afdd05874ab9d6d8c6136b9dd34852a80d | [
"MIT"
] | null | null | null | ex07/chamado.py | barbaracalderon/dsoo-1 | 4f4955afdd05874ab9d6d8c6136b9dd34852a80d | [
"MIT"
] | null | null | null | ex07/chamado.py | barbaracalderon/dsoo-1 | 4f4955afdd05874ab9d6d8c6136b9dd34852a80d | [
"MIT"
] | null | null | null | from abstractChamado import AbstractChamado
from tipoChamado import TipoChamado
from datetime import date as Date
from cliente import Cliente
from tecnico import Tecnico
class Chamado(AbstractChamado):
def __init__(self, data: Date, cliente: Cliente, tecnico: Tecnico,
titulo: str,descricao: str,prior... | 23.73913 | 79 | 0.698718 | 124 | 1,092 | 5.862903 | 0.193548 | 0.105915 | 0.033012 | 0.060523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217949 | 1,092 | 46 | 80 | 23.73913 | 0.851288 | 0.014652 | 0 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.135135 | 0.189189 | 0.567568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
661f973b032e2205fe90b9a4d8a0111b355db28b | 175 | py | Python | src/discord.py | iamtakagi/markov-feed | ce3935c47e7f6ee03f263ed1523af8473065d64d | [
"MIT"
] | null | null | null | src/discord.py | iamtakagi/markov-feed | ce3935c47e7f6ee03f263ed1523af8473065d64d | [
"MIT"
] | null | null | null | src/discord.py | iamtakagi/markov-feed | ce3935c47e7f6ee03f263ed1523af8473065d64d | [
"MIT"
] | null | null | null | import os
import requests
from makeSentence import makeSentence
main_content = {
"content": makeSentence()
}
requests.post(os.getenv("DISCORD_WEBHOOK_URL"), main_content)
| 17.5 | 61 | 0.788571 | 21 | 175 | 6.380952 | 0.571429 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 175 | 9 | 62 | 19.444444 | 0.864516 | 0 | 0 | 0 | 0 | 0 | 0.148571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
663c43b74828a5f7977d6291e05106719c4815a4 | 3,774 | py | Python | backend/app/models.py | dasdachs/flask-blog | d484026c1057e991a89df54d3fec20b43a507d1b | [
"MIT"
] | null | null | null | backend/app/models.py | dasdachs/flask-blog | d484026c1057e991a89df54d3fec20b43a507d1b | [
"MIT"
] | null | null | null | backend/app/models.py | dasdachs/flask-blog | d484026c1057e991a89df54d3fec20b43a507d1b | [
"MIT"
] | 1 | 2020-04-08T17:48:34.000Z | 2020-04-08T17:48:34.000Z | #!/usr/bin/env python3.4
import datetime
import pytz
from werkzeug.security import generate_password_hash, check_password_hash
from . import db
class User(db.Model):
"""
The user class is the basic user class with username, mail, a password.
It has a foreign key for posts (one-to-many)
User:
=... | 29.255814 | 80 | 0.64017 | 503 | 3,774 | 4.707753 | 0.276342 | 0.064189 | 0.080236 | 0.040541 | 0.289274 | 0.257601 | 0.223395 | 0.223395 | 0.146959 | 0.146959 | 0 | 0.012251 | 0.242978 | 3,774 | 128 | 81 | 29.484375 | 0.816591 | 0.327504 | 0 | 0.217391 | 1 | 0 | 0.054274 | 0 | 0 | 0 | 0 | 0.007813 | 0 | 1 | 0.152174 | false | 0.195652 | 0.086957 | 0 | 0.913043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b07b1ae555f7acd12050efcd77fa863d3810c8d5 | 382 | py | Python | django-app/main/admin.py | honchardev/crypto-sentiment-app | 176a6ed61246490c42d2a2b7af4d45f67e3c7499 | [
"MIT"
] | 9 | 2019-07-07T02:57:50.000Z | 2022-01-07T10:03:30.000Z | django-app/main/admin.py | honchardev/crypto-sentiment-app | 176a6ed61246490c42d2a2b7af4d45f67e3c7499 | [
"MIT"
] | null | null | null | django-app/main/admin.py | honchardev/crypto-sentiment-app | 176a6ed61246490c42d2a2b7af4d45f67e3c7499 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Currency, Media, Market, Prediction, Price, NewsMedia, TwitterMedia, RedditMedia
admin.site.register(Currency)
admin.site.register(Media)
admin.site.register(Market)
admin.site.register(Prediction)
admin.site.register(Price)
admin.site.register(NewsMedia)
admin... | 22.470588 | 100 | 0.816754 | 48 | 382 | 6.5 | 0.333333 | 0.230769 | 0.435897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075916 | 382 | 16 | 101 | 23.875 | 0.883853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b09469e038220cf0d7c8ddbf402d37fde52940ef | 3,273 | py | Python | tests/test_sdf.py | s-holst/kyupy | b17ab2d1485928d8d7d92a9043476db48eab7cc7 | [
"MIT"
] | 4 | 2020-11-29T07:39:46.000Z | 2022-01-11T09:28:57.000Z | tests/test_sdf.py | s-holst/kyupy | b17ab2d1485928d8d7d92a9043476db48eab7cc7 | [
"MIT"
] | null | null | null | tests/test_sdf.py | s-holst/kyupy | b17ab2d1485928d8d7d92a9043476db48eab7cc7 | [
"MIT"
] | 2 | 2020-11-28T07:35:30.000Z | 2021-06-24T03:05:10.000Z | from kyupy import sdf, verilog
def test_parse():
test = '''
(DELAYFILE
(SDFVERSION "OVI 2.1")
(DESIGN "test")
(DATE "Wed May 31 14:46:06 2017")
(VENDOR "saed90nm_max")
(PROGRAM "Synopsys Design Compiler cmos-annotated")
(VERSION "I-2013.12-ICC-SP3")
(DIVIDER /)
(VOLTAGE 1.20:1.... | 32.73 | 107 | 0.555454 | 531 | 3,273 | 3.387947 | 0.308851 | 0.094497 | 0.079489 | 0.040022 | 0.26348 | 0.043357 | 0.043357 | 0.043357 | 0.013341 | 0.013341 | 0 | 0.209605 | 0.249313 | 3,273 | 99 | 108 | 33.060606 | 0.522589 | 0.030859 | 0 | 0.102273 | 0 | 0.261364 | 0.763722 | 0.050789 | 0 | 0 | 0 | 0 | 0.113636 | 1 | 0.034091 | false | 0 | 0.011364 | 0 | 0.045455 | 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 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0a23abe69f72f614da3c31db68cf128fa5b5672 | 543 | py | Python | synapse/tests/test_lib_time.py | larrycameron80/synapse | 24bf21c40b4a467e5dc28c8204aecaf502d5cddf | [
"Apache-2.0"
] | null | null | null | synapse/tests/test_lib_time.py | larrycameron80/synapse | 24bf21c40b4a467e5dc28c8204aecaf502d5cddf | [
"Apache-2.0"
] | 4 | 2017-10-03T21:50:40.000Z | 2017-11-20T15:49:38.000Z | synapse/tests/test_lib_time.py | larrycameron80/synapse | 24bf21c40b4a467e5dc28c8204aecaf502d5cddf | [
"Apache-2.0"
] | null | null | null |
import synapse.lib.time as s_time
from synapse.tests.common import *
class TimeTest(SynTest):
def test_time_parse(self):
self.eq(s_time.parse('2050'), 2524608000000)
self.eq(s_time.parse('205012'), 2553465600000)
self.eq(s_time.parse('20501217'), 2554848000000)
self.eq(s_time.par... | 33.9375 | 65 | 0.697974 | 69 | 543 | 5.347826 | 0.449275 | 0.108401 | 0.132791 | 0.208672 | 0.303523 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357616 | 0.165746 | 543 | 15 | 66 | 36.2 | 0.456954 | 0 | 0 | 0 | 0 | 0 | 0.130996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0a29ae82833f772d1debf392f75ddc70168e44c | 326 | py | Python | app.py | Vvkmnn/movieTrailers | 18b3d145f06e69bdf0b68ab9555522176e2a2afd | [
"MIT"
] | null | null | null | app.py | Vvkmnn/movieTrailers | 18b3d145f06e69bdf0b68ab9555522176e2a2afd | [
"MIT"
] | null | null | null | app.py | Vvkmnn/movieTrailers | 18b3d145f06e69bdf0b68ab9555522176e2a2afd | [
"MIT"
] | null | null | null | from entertainment_center import EntertainmentCenter
from fresh_tomatoes import open_movies_page
if __name__ == '__main__':
# Simulate an entertainment center
entertainment_center = EntertainmentCenter()
# Open the movies web page with the list of movies
open_movies_page(movies=entertainment_center.mo... | 32.6 | 56 | 0.803681 | 39 | 326 | 6.307692 | 0.512821 | 0.308943 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153374 | 326 | 9 | 57 | 36.222222 | 0.891304 | 0.248466 | 0 | 0 | 0 | 0 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b0cc8538cbcc83fcfe5159eda21c2e765f5e5b07 | 91 | py | Python | katas/september2018/test.py | igoroya/pycodingkatas | 75b14d0a30b2b2248d064a4b4ffcf43ba14535d8 | [
"MIT"
] | null | null | null | katas/september2018/test.py | igoroya/pycodingkatas | 75b14d0a30b2b2248d064a4b4ffcf43ba14535d8 | [
"MIT"
] | null | null | null | katas/september2018/test.py | igoroya/pycodingkatas | 75b14d0a30b2b2248d064a4b4ffcf43ba14535d8 | [
"MIT"
] | null | null | null | '''
Created on 10 Sep 2018
toer
@author: igoroya
'''
if __name__ == '__main__':
pass | 9.1 | 26 | 0.626374 | 12 | 91 | 4.083333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.230769 | 91 | 10 | 27 | 9.1 | 0.614286 | 0.505495 | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b0dd320c6c954d9570acc2d63ce01f56f57f1aed | 498 | py | Python | django_analyses/models/output/definitions/file_output_definition.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 1 | 2020-12-30T12:43:34.000Z | 2020-12-30T12:43:34.000Z | django_analyses/models/output/definitions/file_output_definition.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 59 | 2019-12-25T13:14:56.000Z | 2021-07-22T12:24:46.000Z | django_analyses/models/output/definitions/file_output_definition.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 2 | 2020-05-24T06:44:27.000Z | 2020-07-09T15:47:31.000Z | from django.db import models
from django_analyses.models.output.definitions.output_definition import \
OutputDefinition
from django_analyses.models.output.definitions.output_definitions import \
OutputDefinitions
from django_analyses.models.output.types.file_output import FileOutput
class FileOutputDefinition... | 33.2 | 74 | 0.813253 | 55 | 498 | 7.2 | 0.509091 | 0.10101 | 0.136364 | 0.181818 | 0.313131 | 0.237374 | 0.237374 | 0 | 0 | 0 | 0 | 0 | 0.126506 | 498 | 14 | 75 | 35.571429 | 0.910345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b0e0cac5b94ce7b88a75b5519db7d36d26888a7a | 2,273 | py | Python | examples/service/hello_resource.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 2 | 2015-06-09T16:07:09.000Z | 2015-07-28T10:06:31.000Z | examples/service/hello_resource.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 3 | 2020-07-22T15:14:55.000Z | 2021-12-13T19:35:06.000Z | examples/service/hello_resource.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
from pyon.public import log, RT, PRED, LCS
from interface.services.examples.hello.ihello_resource_service import BaseHelloResourceService
class HelloResourceService(BaseHelloResourceService):
# The following are illustrative and not necessary. Delete if no... | 38.525424 | 105 | 0.714474 | 300 | 2,273 | 5.12 | 0.28 | 0.208333 | 0.078125 | 0.123047 | 0.42513 | 0.40625 | 0.30599 | 0.264323 | 0.264323 | 0.264323 | 0 | 0.00162 | 0.185218 | 2,273 | 58 | 106 | 39.189655 | 0.827754 | 0.040475 | 0 | 0.121951 | 0 | 0 | 0.143185 | 0.047269 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.268293 | false | 0 | 0.073171 | 0 | 0.536585 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b0f408f235ce89c6314161961857e91ccc652bbb | 864 | py | Python | csming/config.py | lyming90/csming | ec1db94758e59cf24c4e6bdb8f4f647e4dd86558 | [
"MIT"
] | 1 | 2018-07-06T11:11:10.000Z | 2018-07-06T11:11:10.000Z | csming/config.py | liumcse/csming | ec1db94758e59cf24c4e6bdb8f4f647e4dd86558 | [
"MIT"
] | 21 | 2020-07-16T18:19:48.000Z | 2022-03-08T22:38:19.000Z | csming/config.py | lyming90/csming | ec1db94758e59cf24c4e6bdb8f4f647e4dd86558 | [
"MIT"
] | 1 | 2020-08-30T00:50:24.000Z | 2020-08-30T00:50:24.000Z | # -*- coding: utf-8 -*-
class BasicConfig(object):
Project = "csming"
debug = False
# Secret key
secret_key = "I\x088o\x1a\x9f\xa2\x1bu\xf2\x95\xe0h\x9b\xd7\x9fG\xf4\x888#.h\xf4$l\x81\xf2\x11\xb2\xbc\x8b\xfc\x08_\xc5\x19\x98\xf2\xed\x98\x9fxm\\D\x8b\x16[\x1c-h\x9d<r\xc1\x94\xaf:|\x8e\x84... | 43.2 | 401 | 0.658565 | 141 | 864 | 3.929078 | 0.737589 | 0.093863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12605 | 0.173611 | 864 | 19 | 402 | 45.473684 | 0.64986 | 0.152778 | 0 | 0 | 0 | 0.111111 | 0.578363 | 0.510402 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7c02274b952efb68ff57acbf91fc2326de22adbf | 5,795 | py | Python | temboo/core/Library/eBay/Trading/AddMemberMessageRTQ.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/eBay/Trading/AddMemberMessageRTQ.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/eBay/Trading/AddMemberMessageRTQ.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# AddMemberMessageRTQ
# Allows a seller to reply to a question about an active item listing.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (th... | 45.273438 | 223 | 0.69094 | 696 | 5,795 | 5.675287 | 0.291667 | 0.018987 | 0.03038 | 0.037975 | 0.293165 | 0.132658 | 0.116456 | 0 | 0 | 0 | 0 | 0.003466 | 0.203451 | 5,795 | 127 | 224 | 45.629921 | 0.852253 | 0.483693 | 0 | 0 | 0 | 0 | 0.063052 | 0.016466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.395349 | false | 0 | 0.116279 | 0.116279 | 0.744186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9fd338d15872e325c72f6b59fa844ad943650e5e | 141 | py | Python | app.py | marius321967/raspberry_hw | e5bd1b4decb3f102a89800180220c87b126832fe | [
"MIT"
] | null | null | null | app.py | marius321967/raspberry_hw | e5bd1b4decb3f102a89800180220c87b126832fe | [
"MIT"
] | null | null | null | app.py | marius321967/raspberry_hw | e5bd1b4decb3f102a89800180220c87b126832fe | [
"MIT"
] | null | null | null | import os
from flask import Flask
from routes import register
app = Flask('hello_world')
register(app)
app.run(port=8080, host='0.0.0.0')
| 14.1 | 34 | 0.737589 | 25 | 141 | 4.12 | 0.56 | 0.058252 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.134752 | 141 | 9 | 35 | 15.666667 | 0.778689 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9fd62492fe76fc5c66cfb951847c2c11bc2c2978 | 251 | py | Python | PythonExe/aula10.py | ScnMatheus/my-python-projects | 9cc3511dd6e25d9b16429347598c105f15bd6916 | [
"MIT"
] | null | null | null | PythonExe/aula10.py | ScnMatheus/my-python-projects | 9cc3511dd6e25d9b16429347598c105f15bd6916 | [
"MIT"
] | null | null | null | PythonExe/aula10.py | ScnMatheus/my-python-projects | 9cc3511dd6e25d9b16429347598c105f15bd6916 | [
"MIT"
] | null | null | null | n1 = float(input('Digite a primeira nota: '))
n2 = float(input('Digite a Segunda Nota: '))
m = (n1+n2) / 2
print(f'A sua média foi {m:.1f}')
if m >= 6.0:
print('Sua média foi boa, parabéns!')
else:
print('Sua média foi ruim! ESTUDE MAIS!!!')
| 25.1 | 47 | 0.613546 | 44 | 251 | 3.5 | 0.590909 | 0.155844 | 0.214286 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.195219 | 251 | 9 | 48 | 27.888889 | 0.722772 | 0 | 0 | 0 | 0 | 0 | 0.525896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9fde06baff02490cfbc5a0d947333d119ad8ec16 | 571 | py | Python | google_documents/entities/api_credentials_mixin.py | mokemokechicken/google-documents | 8f9fc79b888de4bef3d0b08f00cbe5c6a68b8a77 | [
"MIT"
] | null | null | null | google_documents/entities/api_credentials_mixin.py | mokemokechicken/google-documents | 8f9fc79b888de4bef3d0b08f00cbe5c6a68b8a77 | [
"MIT"
] | 6 | 2018-08-29T08:06:23.000Z | 2018-09-25T09:09:50.000Z | google_documents/entities/api_credentials_mixin.py | mokemokechicken/google-documents | 8f9fc79b888de4bef3d0b08f00cbe5c6a68b8a77 | [
"MIT"
] | 2 | 2020-12-07T16:26:35.000Z | 2021-01-05T04:20:02.000Z | from google_documents.entity_managers.file import GoogleDriveDocumentManager
class ApiCredentialsMixin:
_custom_api_credentials = None
def set_api_credentials(self, api_credentials):
self._custom_api_credentials = api_credentials
@property
def _default_api_credentials(self):
return s... | 27.190476 | 76 | 0.765324 | 62 | 571 | 6.629032 | 0.403226 | 0.340633 | 0.175182 | 0.116788 | 0.136253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178634 | 571 | 20 | 77 | 28.55 | 0.876333 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.214286 | 0.714286 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9fe67107399181be0ddb6c0a1d35f64626945cc7 | 832 | py | Python | ssc2ce/common/l2_book.py | fakecoinbase/olnedslashssc2ce-python | 2cf576471fe4ba1170f2ba85b09e85ba3ee47474 | [
"MIT"
] | 4 | 2020-06-23T13:04:11.000Z | 2021-09-03T10:40:13.000Z | ssc2ce/common/l2_book.py | fakecoinbase/olnedslashssc2ce-python | 2cf576471fe4ba1170f2ba85b09e85ba3ee47474 | [
"MIT"
] | 6 | 2020-06-01T13:20:37.000Z | 2020-09-18T19:09:36.000Z | ssc2ce/common/l2_book.py | fakecoinbase/olnedslashssc2ce-python | 2cf576471fe4ba1170f2ba85b09e85ba3ee47474 | [
"MIT"
] | 3 | 2019-05-24T16:35:30.000Z | 2021-10-06T21:21:02.000Z | from .l2_book_side import L2BookSide
class L2Book:
"""
"""
def __init__(self, instrument: str):
"""
:param instrument:
"""
self._instrument = instrument
self._bids = L2BookSide(is_bids=True)
self._asks = L2BookSide(is_bids=False)
def instrument(self)... | 20.292683 | 70 | 0.588942 | 102 | 832 | 4.568627 | 0.313725 | 0.085837 | 0.077253 | 0.103004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021997 | 0.289663 | 832 | 40 | 71 | 20.8 | 0.766497 | 0.021635 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0.043478 | 0.26087 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9ff061fdd546da769e8d427a4f8fd690f451b8fb | 243 | py | Python | Chatbot_Model/Intent_Detection_Slot_Filling/Intent_detection.py | guci314/Chatbot_CN | 02044eed4a141aa8c61d6064c166f95dbdae894c | [
"Apache-2.0"
] | 8 | 2019-08-12T12:38:35.000Z | 2022-02-21T03:25:04.000Z | Chatbot_Model/Intent_Detection_Slot_Filling/Intent_detection.py | JianboTang/Chatbot_CN | a0f7194252a189f8bc2b62fd16eb2abe432c0bf9 | [
"Apache-2.0"
] | null | null | null | Chatbot_Model/Intent_Detection_Slot_Filling/Intent_detection.py | JianboTang/Chatbot_CN | a0f7194252a189f8bc2b62fd16eb2abe432c0bf9 | [
"Apache-2.0"
] | 5 | 2020-01-08T15:30:38.000Z | 2022-02-15T02:39:46.000Z | #-*- coding:utf-8 _*-
"""
@author:charlesXu
@file: Intent_detection.py
@desc: 获取意图识别模型返回的结果
@time: 2019/05/15
"""
def get_INTENT(query):
'''
获取意图识别模型返回的结果
:param query:
:return:
'''
result = '喜欢'
return result | 15.1875 | 27 | 0.592593 | 27 | 243 | 5.222222 | 0.814815 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048649 | 0.238683 | 243 | 16 | 28 | 15.1875 | 0.713514 | 0.588477 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9ffd14fa62769dabf27da60af75a58a142298f21 | 262 | py | Python | tutorial.py | TheBestCodersInTheWorld/DominoesApp | 1f006cabdd58a91237b08abadc5a538949ce9d45 | [
"MIT"
] | null | null | null | tutorial.py | TheBestCodersInTheWorld/DominoesApp | 1f006cabdd58a91237b08abadc5a538949ce9d45 | [
"MIT"
] | null | null | null | tutorial.py | TheBestCodersInTheWorld/DominoesApp | 1f006cabdd58a91237b08abadc5a538949ce9d45 | [
"MIT"
] | null | null | null | # this will be a testing file where we will look at how different methods of the API work
# we will use the ConsoleInput class inside console.py to print to stdout,
# we'll be focuse on making a simple GUI though, which well be putting in another separate file! | 87.333333 | 96 | 0.778626 | 49 | 262 | 4.163265 | 0.795918 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19084 | 262 | 3 | 96 | 87.333333 | 0.962264 | 0.977099 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9fffd9f1913245c79aa9c1ba2628ae04f1c00aa5 | 38,454 | py | Python | pysnmp-with-texts/XYLAN-DS3-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/XYLAN-DS3-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/XYLAN-DS3-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 XYLAN-DS3-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/XYLAN-DS3-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:45:01 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 174 | 3,978 | 0.801919 | 4,643 | 38,454 | 6.641611 | 0.091751 | 0.052923 | 0.092616 | 0.00895 | 0.578104 | 0.46869 | 0.444498 | 0.432792 | 0.363232 | 0.355839 | 0 | 0.060329 | 0.097805 | 38,454 | 220 | 3,979 | 174.790909 | 0.828524 | 0.008322 | 0 | 0 | 0 | 0.206573 | 0.361259 | 0.012643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032864 | 0 | 0.032864 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b016e4fc4f8f6ef223940dcd35d74570f1d22259 | 616 | py | Python | instabot/bot/delay.py | wrknd/instabot | 61c0eb72ef9be6dda08c4cf61b0e0dae1b210862 | [
"Apache-2.0"
] | null | null | null | instabot/bot/delay.py | wrknd/instabot | 61c0eb72ef9be6dda08c4cf61b0e0dae1b210862 | [
"Apache-2.0"
] | null | null | null | instabot/bot/delay.py | wrknd/instabot | 61c0eb72ef9be6dda08c4cf61b0e0dae1b210862 | [
"Apache-2.0"
] | null | null | null | """
Function to calculate delays for like/follow/unfollow etc.
"""
import time
import random
def add_dispersion(delay_value):
return delay_value * 3 / 4 + delay_value * random.random() / 2
def like_delay(bot):
time.sleep(add_dispersion(bot.like_delay))
def unlike_delay(bot):
time.sleep(add_disper... | 17.6 | 66 | 0.73539 | 90 | 616 | 4.811111 | 0.3 | 0.180139 | 0.166282 | 0.235566 | 0.381062 | 0.381062 | 0.381062 | 0 | 0 | 0 | 0 | 0.01145 | 0.149351 | 616 | 34 | 67 | 18.117647 | 0.814886 | 0.094156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0.125 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.