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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4474528822317d73d77d6d9db96f75001ee8d9a | 1,549 | py | Python | tracardi/tests/unit/mocks/mock_storage.py | ryomahan/read-tracardi | 216b05395d70a869593a60e2804e0a71b58dfc8f | [
"MIT"
] | 29 | 2021-04-17T06:04:46.000Z | 2021-11-25T10:22:43.000Z | tracardi/tests/unit/mocks/mock_storage.py | ryomahan/read-tracardi | 216b05395d70a869593a60e2804e0a71b58dfc8f | [
"MIT"
] | 77 | 2021-04-03T21:20:04.000Z | 2021-10-17T10:12:23.000Z | tracardi/tests/unit/mocks/mock_storage.py | ryomahan/read-tracardi | 216b05395d70a869593a60e2804e0a71b58dfc8f | [
"MIT"
] | 17 | 2021-06-29T13:13:18.000Z | 2021-10-17T10:52:57.000Z | sessions = [{
"1": {
"type": "session",
"source": {"id": "scope"},
"id": "1",
'profile': {"id": "1"}
}
}]
profiles = [
{"1": {'id': "1", "traits": {}}},
{"2": {'id': "2", "traits": {}}},
]
class MockStorageCrud:
def __init__(self, index, domain_class_ref, entity):... | 24.203125 | 80 | 0.551323 | 187 | 1,549 | 4.449198 | 0.208556 | 0.144231 | 0.115385 | 0.064904 | 0.75 | 0.697115 | 0.697115 | 0.697115 | 0.697115 | 0.697115 | 0 | 0.0065 | 0.304713 | 1,549 | 63 | 81 | 24.587302 | 0.766017 | 0 | 0 | 0.553191 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a44a4231fa12b52d4dbb4a4c31e144cce9f32f67 | 491 | py | Python | examples/null_support/client.py | amrhgh/django-grpc-framework | 158e1d9001bd426410ca962e2f72b14ee3e2f935 | [
"Apache-2.0"
] | 269 | 2020-05-06T03:22:43.000Z | 2022-03-26T21:05:24.000Z | examples/null_support/client.py | amrhgh/django-grpc-framework | 158e1d9001bd426410ca962e2f72b14ee3e2f935 | [
"Apache-2.0"
] | 19 | 2020-06-03T03:46:39.000Z | 2022-03-30T20:24:55.000Z | examples/null_support/client.py | amrhgh/django-grpc-framework | 158e1d9001bd426410ca962e2f72b14ee3e2f935 | [
"Apache-2.0"
] | 39 | 2020-05-27T07:23:12.000Z | 2022-03-27T13:10:24.000Z | import grpc
import snippets_pb2
import snippets_pb2_grpc
from google.protobuf.struct_pb2 import NullValue
with grpc.insecure_channel('localhost:50051') as channel:
stub = snippets_pb2_grpc.SnippetControllerStub(channel)
request = snippets_pb2.Snippet(id=1, title='snippet title')
# send non-null value
... | 30.6875 | 63 | 0.753564 | 63 | 491 | 5.730159 | 0.507937 | 0.121884 | 0.094183 | 0.132964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026506 | 0.154786 | 491 | 15 | 64 | 32.733333 | 0.843373 | 0.14053 | 0 | 0 | 0 | 0 | 0.066986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a44c48f3e3ce5e20e3e7b72b596dd9b53b3b830c | 326 | py | Python | exercicios_mundo-I/ex008.py | Lucas-Lourencao/ExerciciosPython | e43ce23dbddd126abb9ce6c02bd39dac3677856e | [
"MIT"
] | null | null | null | exercicios_mundo-I/ex008.py | Lucas-Lourencao/ExerciciosPython | e43ce23dbddd126abb9ce6c02bd39dac3677856e | [
"MIT"
] | null | null | null | exercicios_mundo-I/ex008.py | Lucas-Lourencao/ExerciciosPython | e43ce23dbddd126abb9ce6c02bd39dac3677856e | [
"MIT"
] | null | null | null | m = float(input('Digite uma distância em metros: '))
k = m/1000
hct = m/100
dct = m/10
dcm = m*10
cm = m*100
mm = m*1000
print('A distância de {} metros informada corresponde a: \n{} Quilômetros;\n{} Hectômetros;\n{}Decâmetros;\n{:.0f}Decímetros;\n{:.0f}Centímetros e;\n{:.0f}Milímetros.'.format(m, k, hct, dct, dcm, cm,... | 36.222222 | 204 | 0.662577 | 58 | 326 | 3.724138 | 0.551724 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 0.134969 | 326 | 8 | 205 | 40.75 | 0.691489 | 0 | 0 | 0 | 0 | 0.125 | 0.58589 | 0.263804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a450260365598db276731bd5e9a50fe2e149415c | 180 | py | Python | ta_bot/__main__.py | ToxicPie/discord-ta-bot | 7ea163b11491039d2a287195d2026c4ed4b50b3b | [
"MIT"
] | null | null | null | ta_bot/__main__.py | ToxicPie/discord-ta-bot | 7ea163b11491039d2a287195d2026c4ed4b50b3b | [
"MIT"
] | null | null | null | ta_bot/__main__.py | ToxicPie/discord-ta-bot | 7ea163b11491039d2a287195d2026c4ed4b50b3b | [
"MIT"
] | null | null | null | import os
from . import setup_bot
bot_token = os.environ.get('DISCORD_BOT_TOKEN')
bot_prefix = os.environ.get('COMMAND_PREFIX')
bot = setup_bot(bot_prefix)
bot.run(bot_token)
| 15 | 47 | 0.766667 | 30 | 180 | 4.3 | 0.4 | 0.186047 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 180 | 11 | 48 | 16.363636 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.172222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a453f35423943d09ee98cc3713636f0e0c38c6c2 | 321 | py | Python | modules/controller/commands/key.py | TheSlimvReal/PSE---LA-meets-ML | 7614db17ae746c7b02dd95bd44d2c91ee3c1e662 | [
"BSD-2-Clause"
] | 4 | 2018-11-01T16:14:21.000Z | 2019-11-21T14:13:53.000Z | modules/controller/commands/key.py | TheSlimvReal/PSE---LA-meets-ML | 7614db17ae746c7b02dd95bd44d2c91ee3c1e662 | [
"BSD-2-Clause"
] | 56 | 2018-10-31T15:09:05.000Z | 2020-04-25T13:10:27.000Z | modules/controller/commands/key.py | TheSlimvReal/PSE---LA-meets-ML | 7614db17ae746c7b02dd95bd44d2c91ee3c1e662 | [
"BSD-2-Clause"
] | 1 | 2019-03-14T15:26:42.000Z | 2019-03-14T15:26:42.000Z | from enum import Enum
## enum that represents the possible keys a user can enter
#
# @extends Enum to get the enum logic
class Key(Enum):
QUIT = 0
AMOUNT = 1
NAME = 2
SIZE = 3
PATH = 4
GENERATE = 5
SAVING_PATH = 6
TRAIN = 7
NETWORK = 8
SOLVE = 9
HELP = 10
UPDATE = 11... | 16.05 | 59 | 0.579439 | 49 | 321 | 3.77551 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067961 | 0.358255 | 321 | 19 | 60 | 16.894737 | 0.830097 | 0.28972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a4669d9d29d0ac94144a7a972f616e9948724859 | 3,337 | py | Python | _tests/test_app.py | EinsteinCarrey/Shoppinglist | 8a5dbd22687619b189d69522090c0bc226384663 | [
"MIT"
] | null | null | null | _tests/test_app.py | EinsteinCarrey/Shoppinglist | 8a5dbd22687619b189d69522090c0bc226384663 | [
"MIT"
] | 8 | 2017-08-29T02:47:57.000Z | 2019-10-18T16:32:23.000Z | _tests/test_app.py | EinsteinNjoroge/Shoppinglist | 8a5dbd22687619b189d69522090c0bc226384663 | [
"MIT"
] | 3 | 2017-08-29T08:49:08.000Z | 2018-03-02T03:43:01.000Z | from unittest import TestCase
import global_functions
import app
from app import flask_app
class TestApp(TestCase):
def setUp(self):
self.app = app
self.username = "newuser"
self.pword = "password123"
self.test_client_app = flask_app.test_client()
self.test_client_app.testi... | 32.086538 | 77 | 0.642194 | 379 | 3,337 | 5.377309 | 0.203166 | 0.06526 | 0.150147 | 0.118744 | 0.553484 | 0.490677 | 0.453386 | 0.383219 | 0.219333 | 0.173209 | 0 | 0.014303 | 0.266707 | 3,337 | 103 | 78 | 32.398058 | 0.818553 | 0 | 0 | 0.188235 | 0 | 0 | 0.171411 | 0.006293 | 0 | 0 | 0 | 0 | 0.164706 | 1 | 0.188235 | false | 0.152941 | 0.047059 | 0 | 0.247059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a46bebce2e5af6624fe2efad9d1562b2a2de61f2 | 910 | py | Python | script/sklearn_like_toolkit/warpper/skClf_wrapper/skRidgeCVClf.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/sklearn_like_toolkit/warpper/skClf_wrapper/skRidgeCVClf.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/sklearn_like_toolkit/warpper/skClf_wrapper/skRidgeCVClf.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | from sklearn.linear_model import RidgeClassifierCV as _RidgeClassifierCV
from script.sklearn_like_toolkit.warpper.base.BaseWrapperClf import BaseWrapperClf
from script.sklearn_like_toolkit.warpper.base.MixIn import MetaBaseWrapperClfWithABC
class skRidgeCVClf(_RidgeClassifierCV, BaseWrapperClf, metaclass=MetaB... | 36.4 | 108 | 0.679121 | 96 | 910 | 6.145833 | 0.427083 | 0.040678 | 0.057627 | 0.071186 | 0.277966 | 0.176271 | 0.176271 | 0 | 0 | 0 | 0 | 0.019746 | 0.220879 | 910 | 24 | 109 | 37.916667 | 0.812412 | 0.124176 | 0 | 0 | 0 | 0 | 0.007833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a477cbe56b0f143b53d9193de114c7aa2f5db5ad | 2,195 | py | Python | app.py | 10239847509238470925387z/tmp123 | e899272ab0da746d7d31e3f2323530fb4e0272e9 | [
"Apache-2.0"
] | null | null | null | app.py | 10239847509238470925387z/tmp123 | e899272ab0da746d7d31e3f2323530fb4e0272e9 | [
"Apache-2.0"
] | null | null | null | app.py | 10239847509238470925387z/tmp123 | e899272ab0da746d7d31e3f2323530fb4e0272e9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import urllib
import json
import os
import constants
import accounts
from flask import Flask
from flask import request
from flask import make_response
# Flask app should start in global layout
app = Flask(__name__)
PERSON = constants.TEST_1
@app.route('/webhook', methods=['POST'])
def webhook... | 26.768293 | 144 | 0.636446 | 291 | 2,195 | 4.718213 | 0.378007 | 0.01748 | 0.03496 | 0.06118 | 0.256373 | 0.19665 | 0.19665 | 0.19665 | 0.19665 | 0.19665 | 0 | 0.008216 | 0.22369 | 2,195 | 81 | 145 | 27.098765 | 0.797535 | 0.077904 | 0 | 0.074074 | 0 | 0.018519 | 0.257553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a47d6bfe819ded66253723a137d5f16ea4ccfb43 | 1,211 | py | Python | dist/assets/code/seance3/8.py | Mistergix/deficode | 6460ec3e22d36b67cef6815d9977fba973ab139b | [
"MIT"
] | null | null | null | dist/assets/code/seance3/8.py | Mistergix/deficode | 6460ec3e22d36b67cef6815d9977fba973ab139b | [
"MIT"
] | 10 | 2018-07-11T22:40:57.000Z | 2018-11-24T21:05:14.000Z | dist/assets/code/seance3/8.py | Mistergix/deficode | 6460ec3e22d36b67cef6815d9977fba973ab139b | [
"MIT"
] | null | null | null | class Chocolatine:
def __init__(self):
print("je suis mangé!")
def nom(self):
return "CH0C0LA71N3 !!!!!"
cadeau = (Chocolatine(), "Nicolas", "Julian")
#déplier un tuple
objet, destinataire, expediteur = cadeau
#afficher un tuple
print(cadeau)
#fonction qui mange un objet de type: tuple... | 22.849057 | 104 | 0.652353 | 146 | 1,211 | 5.219178 | 0.376712 | 0.041995 | 0.068241 | 0.099738 | 0.301837 | 0.301837 | 0.228346 | 0.228346 | 0.228346 | 0.228346 | 0 | 0.015806 | 0.21635 | 1,211 | 53 | 105 | 22.849057 | 0.787144 | 0.101569 | 0 | 0.413793 | 0 | 0 | 0.145102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0 | 0.068966 | 0.413793 | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a47fa029a36ff0c32a340f11c3e4c167cc005848 | 17,038 | py | Python | lib/datasets/tpod_dataset.py | junjuew/py-faster-rcnn | cee50460078ea9756e03babc598a2fcbd18430b2 | [
"BSD-2-Clause"
] | 4 | 2017-01-24T01:02:40.000Z | 2020-05-19T02:32:16.000Z | lib/datasets/tpod_dataset.py | junjuew/py-faster-rcnn | cee50460078ea9756e03babc598a2fcbd18430b2 | [
"BSD-2-Clause"
] | 3 | 2016-09-04T20:07:31.000Z | 2018-03-31T20:25:21.000Z | lib/datasets/tpod_dataset.py | junjuew/py-faster-rcnn | cee50460078ea9756e03babc598a2fcbd18430b2 | [
"BSD-2-Clause"
] | 2 | 2017-04-03T02:00:54.000Z | 2020-05-14T17:09:57.000Z | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import os, time
from datasets.imdb import imdb
import datasets.ds_utils... | 41.055422 | 118 | 0.560042 | 2,101 | 17,038 | 4.330319 | 0.195621 | 0.021983 | 0.013849 | 0.009892 | 0.262036 | 0.213344 | 0.155309 | 0.137063 | 0.123873 | 0.107606 | 0 | 0.0074 | 0.317878 | 17,038 | 414 | 119 | 41.154589 | 0.775426 | 0.099542 | 0 | 0.155709 | 0 | 0 | 0.136409 | 0.023502 | 0 | 0 | 0 | 0 | 0.010381 | 0 | null | null | 0 | 0.055363 | null | null | 0.114187 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a484bdd1eb403382f98fb22c6f6ec574c6778758 | 529 | py | Python | octopus/constants.py | Fletch498ma/octopus | f2de0204a92b8cd9424805454212003f037d2984 | [
"MIT"
] | 12 | 2015-08-31T22:57:40.000Z | 2022-02-07T19:18:09.000Z | octopus/constants.py | Fletch498ma/octopus | f2de0204a92b8cd9424805454212003f037d2984 | [
"MIT"
] | 8 | 2017-12-17T18:56:23.000Z | 2021-08-23T13:26:16.000Z | octopus/constants.py | Fletch498ma/octopus | f2de0204a92b8cd9424805454212003f037d2984 | [
"MIT"
] | 10 | 2015-09-22T23:06:12.000Z | 2021-04-06T06:24:06.000Z | # Twisted Imports
from twisted.python.constants import ValueConstant, Values
class State (Values):
READY = ValueConstant("ready")
RUNNING = ValueConstant("running")
PAUSED = ValueConstant("paused")
COMPLETE = ValueConstant("complete")
CANCELLED = ValueConstant("cancelled")
ERROR = ValueConstant("error")
class E... | 27.842105 | 58 | 0.742911 | 53 | 529 | 7.396226 | 0.54717 | 0.117347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122873 | 529 | 19 | 59 | 27.842105 | 0.844828 | 0.028355 | 0 | 0 | 0 | 0 | 0.103314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a485203eed7da9af1f3d07a900bf441e21f54870 | 376 | py | Python | lang/py/pylib/code/fractions/fractions_limit_denominator.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | lang/py/pylib/code/fractions/fractions_limit_denominator.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | lang/py/pylib/code/fractions/fractions_limit_denominator.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2009 Doug Hellmann All rights reserved.
#
"""
"""
#end_pymotw_header
import fractions
import math
print 'PI =', math.pi
f_pi = fractions.Fraction(str(math.pi))
print 'No limit =', f_pi
for i in [ 1, 6, 11, 60, 70, 90, 100 ]:
limited = f_pi.limit_de... | 17.904762 | 55 | 0.640957 | 61 | 376 | 3.852459 | 0.688525 | 0.038298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069307 | 0.194149 | 376 | 20 | 56 | 18.8 | 0.706271 | 0.284574 | 0 | 0 | 0 | 0 | 0.121094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a48a978010878e0af222f955c60047e8c7e7b87e | 2,725 | py | Python | onnx_model_maker/ops/op_ver_2.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 66 | 2021-05-05T08:03:22.000Z | 2022-03-10T07:03:02.000Z | onnx_model_maker/ops/op_ver_2.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 21 | 2021-05-06T02:56:42.000Z | 2021-11-25T03:52:14.000Z | onnx_model_maker/ops/op_ver_2.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 18 | 2021-05-05T11:54:09.000Z | 2022-03-25T17:42:32.000Z | # Autogenerated by onnx-model-maker. Don't modify it manually.
import onnx
import onnx.helper
import onnx.numpy_helper
from onnx_model_maker import omm
from onnx_model_maker import onnx_mm_export
from onnx_model_maker.ops.op_helper import _add_input
@onnx_mm_export("v2.LabelEncoder")
def LabelEncoder(X, **kwargs):
... | 28.989362 | 101 | 0.57945 | 350 | 2,725 | 4.248571 | 0.148571 | 0.033625 | 0.080699 | 0.047075 | 0.568258 | 0.511769 | 0.434432 | 0.434432 | 0.394082 | 0.394082 | 0 | 0.005118 | 0.282936 | 2,725 | 93 | 102 | 29.301075 | 0.755885 | 0.022018 | 0 | 0.434211 | 1 | 0 | 0.127676 | 0.017274 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.078947 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a48ae7336ee1d7ff7f6b28c9bedae865b8e88589 | 3,350 | py | Python | modules/spotify.py | montarion/athena | ae8bd49786be613acc59e60edc758094bd26e7f4 | [
"Unlicense"
] | 3 | 2019-04-10T21:06:02.000Z | 2020-04-15T15:46:45.000Z | modules/spotify.py | montarion/athena | ae8bd49786be613acc59e60edc758094bd26e7f4 | [
"Unlicense"
] | 1 | 2019-05-21T13:45:35.000Z | 2019-05-21T13:45:35.000Z | modules/spotify.py | montarion/athena | ae8bd49786be613acc59e60edc758094bd26e7f4 | [
"Unlicense"
] | 2 | 2019-05-21T13:44:03.000Z | 2020-04-15T10:45:11.000Z | from components.logger import Logger
import requests
class Spotify:
def __init__(self, Database=None, Oauth=None, Watcher=None):
self.dependencies = {"tier":"user", "dependencies":["Database", "Oauth", "Watcher"]}
self.characteristics= ["timed"]
self.capabilities = ["music", "spotify", "pla... | 38.505747 | 117 | 0.565373 | 350 | 3,350 | 5.365714 | 0.388571 | 0.063898 | 0.014377 | 0.036741 | 0.138978 | 0.138978 | 0.103834 | 0.103834 | 0.103834 | 0.103834 | 0 | 0.004661 | 0.295522 | 3,350 | 86 | 118 | 38.953488 | 0.791102 | 0.118209 | 0 | 0.15625 | 0 | 0 | 0.205527 | 0.015889 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.078125 | false | 0 | 0.03125 | 0 | 0.140625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a495b9287cef3b1495deb0a17f3ccdbbcfee8124 | 11,838 | py | Python | model/run_GRU.py | Liang-Qiu/GRU_Android | 5ebab518fb700f49fa181eeff09cc030114d2992 | [
"MIT"
] | 11 | 2017-12-04T08:55:22.000Z | 2021-06-24T09:21:33.000Z | model/run_GRU.py | Liang-Qiu/GRU_Android | 5ebab518fb700f49fa181eeff09cc030114d2992 | [
"MIT"
] | 1 | 2017-12-13T11:09:59.000Z | 2021-01-21T19:59:00.000Z | model/run_GRU.py | LiangKlausQiu/GRU_Android | 5ebab518fb700f49fa181eeff09cc030114d2992 | [
"MIT"
] | 3 | 2017-07-21T10:53:52.000Z | 2017-10-03T06:24:15.000Z | #copyright 2016 LiangKlausQiu. 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 applicable law or... | 39.328904 | 163 | 0.688207 | 1,729 | 11,838 | 4.478311 | 0.172932 | 0.006974 | 0.008136 | 0.009815 | 0.492186 | 0.408111 | 0.375565 | 0.332558 | 0.235438 | 0.203539 | 0 | 0.023999 | 0.162274 | 11,838 | 300 | 164 | 39.46 | 0.756781 | 0.492144 | 0 | 0.225564 | 0 | 0 | 0.10158 | 0.011551 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075188 | null | null | 0.150376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4967d174d0a18e78ed6cd486861863e94b773ac | 822 | py | Python | lib/tagger/exceptions.py | shunf4/pys60v1-pymusic | 6bf03e296c7faae67dbe1d59ef563190b56ace5b | [
"MIT"
] | 3 | 2016-08-18T22:10:55.000Z | 2022-03-12T15:19:52.000Z | lib/tagger/exceptions.py | shunf4/pys60v1-pymusic | 6bf03e296c7faae67dbe1d59ef563190b56ace5b | [
"MIT"
] | null | null | null | lib/tagger/exceptions.py | shunf4/pys60v1-pymusic | 6bf03e296c7faae67dbe1d59ef563190b56ace5b | [
"MIT"
] | 3 | 2015-04-30T22:35:26.000Z | 2019-06-11T13:06:48.000Z | """ Custom Exceptions """
__author__ = "Alastair Tse <alastair@tse.id.au>"
__license__ = "BSD"
__copyright__ = "Copyright (c) 2004, Alastair Tse"
__revision__ = "$Id: exceptions.py,v 1.2 2004/05/04 12:18:21 acnt2 Exp $"
class ID3Exception(Exception):
"""General ID3Exception"""
pass
class ID3EncodingException(ID3... | 22.216216 | 73 | 0.754258 | 88 | 822 | 6.863636 | 0.613636 | 0.089404 | 0.043046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048611 | 0.124088 | 822 | 36 | 74 | 22.833333 | 0.790278 | 0.265207 | 0 | 0.388889 | 0 | 0.055556 | 0.221429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.388889 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a4a1341a47418ffee6ba8d4388fa1e153f30467e | 714 | py | Python | quokka/utils/__init__.py | mutita/FlaskPyCMS | cf87c7f2a55fc2df0be427764819b5df4d375520 | [
"MIT"
] | 1 | 2015-11-05T17:33:16.000Z | 2015-11-05T17:33:16.000Z | quokka/utils/__init__.py | laborautonomo/quokka | d6e08f15e8b35ce69ea1f0c9c294d5141f34c53a | [
"MIT"
] | null | null | null | quokka/utils/__init__.py | laborautonomo/quokka | d6e08f15e8b35ce69ea1f0c9c294d5141f34c53a | [
"MIT"
] | 2 | 2019-10-06T14:07:43.000Z | 2021-07-08T20:27:24.000Z | # -*- coding: utf-8 -*-
import logging
from speaklater import make_lazy_string
from quokka.modules.accounts.models import User
logger = logging.getLogger()
def lazy_str_setting(key, default=None):
from flask import current_app
return make_lazy_string(
lambda: current_app.config.get(key, default)
... | 23.8 | 55 | 0.677871 | 94 | 714 | 5 | 0.56383 | 0.093617 | 0.059574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001842 | 0.239496 | 714 | 29 | 56 | 24.62069 | 0.86372 | 0.063025 | 0 | 0.190476 | 0 | 0 | 0.025526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.238095 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a4a2393b2f74bb225f936fa45e3248350e11173d | 377 | py | Python | easy/leetcode2.py | ayang818/LeetCode | f15276f550997652b81f456134c0b64bcb61f65c | [
"MIT"
] | 1 | 2019-03-12T04:05:41.000Z | 2019-03-12T04:05:41.000Z | easy/leetcode2.py | ayang818/LeetCode | f15276f550997652b81f456134c0b64bcb61f65c | [
"MIT"
] | null | null | null | easy/leetcode2.py | ayang818/LeetCode | f15276f550997652b81f456134c0b64bcb61f65c | [
"MIT"
] | null | null | null | class Solution:
def reverse(self, x: int) -> int:
b = 0
if x < 0:
b, x = 1, abs(x)
mod, res = 0, 0
while x:
#下面两行分离出每一个位,从而完成逆序
x, mod = x // 10, x % 10
res = res * 10 + mod
if res > 2147483648:
return 0
... | 23.5625 | 37 | 0.371353 | 48 | 377 | 2.916667 | 0.416667 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129213 | 0.527851 | 377 | 15 | 38 | 25.133333 | 0.657303 | 0.047745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4a51161da395cb642968996bd39887142236598 | 3,854 | py | Python | dataReader/dataset.py | chupengrocky/HackthonClimate | 3011c18fd2a3901625064f30e213f16dab4304c3 | [
"MIT"
] | null | null | null | dataReader/dataset.py | chupengrocky/HackthonClimate | 3011c18fd2a3901625064f30e213f16dab4304c3 | [
"MIT"
] | null | null | null | dataReader/dataset.py | chupengrocky/HackthonClimate | 3011c18fd2a3901625064f30e213f16dab4304c3 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
import torch
import numpy as np
from sklearn.preprocessing import StandardScaler, MinMaxScaler, OneHotEncoder
import pandas as pd
np.random.seed(0)
class dataset(Dataset):
def __init__(self ,data_frame, model_indx, mode='train'):
self.x = None
self.y_cls = None
self.... | 34.106195 | 194 | 0.665023 | 617 | 3,854 | 3.930308 | 0.181524 | 0.041237 | 0.059381 | 0.060619 | 0.375258 | 0.303918 | 0.249485 | 0.211134 | 0.158351 | 0.158351 | 0 | 0.017795 | 0.183446 | 3,854 | 113 | 195 | 34.106195 | 0.75278 | 0.255579 | 0 | 0 | 0 | 0 | 0.016157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.19403 | false | 0 | 0.074627 | 0.119403 | 0.447761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8ef620d25e139d90023f0be743c33c64d489c6c0 | 1,810 | py | Python | utils/mysqlTools.py | kalenforn/MMVA | 1e4ec5417d4497a14f226fab8a66fe065a9f0f65 | [
"MIT"
] | 4 | 2021-12-16T08:17:49.000Z | 2022-03-12T10:14:50.000Z | utils/mysqlTools.py | kalenforn/video-content-clean | 4b6e572ec034fbe2e668c250cff8e1c9a13dd0e0 | [
"MIT"
] | null | null | null | utils/mysqlTools.py | kalenforn/video-content-clean | 4b6e572ec034fbe2e668c250cff8e1c9a13dd0e0 | [
"MIT"
] | 1 | 2021-12-14T08:17:41.000Z | 2021-12-14T08:17:41.000Z | import pymysql
class MySqlHold:
def __init__(self, host: str, user: str, password: str, database: str, port=3306):
self.db = pymysql.connect(host=host, user=user, port=port, database=database, password=password)
self.cursor = self.db.cursor()
def execute_command(self, command: str):
... | 31.206897 | 104 | 0.583425 | 217 | 1,810 | 4.769585 | 0.239631 | 0.074396 | 0.127536 | 0.034783 | 0.297585 | 0.297585 | 0.297585 | 0.241546 | 0.241546 | 0.241546 | 0 | 0.003026 | 0.269613 | 1,810 | 57 | 105 | 31.754386 | 0.779879 | 0 | 0 | 0.365854 | 0 | 0 | 0.108347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0.097561 | 0.02439 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8efcb07f31cdfd94de1b43df75d06bb21b637b78 | 1,748 | py | Python | lilac/__init__.py | mba811/lilac | ce7a4e19f7f73c07b2e6b4b33fb19b3812e8e131 | [
"MIT"
] | 1 | 2019-05-07T15:09:39.000Z | 2019-05-07T15:09:39.000Z | lilac/__init__.py | mba811/lilac | ce7a4e19f7f73c07b2e6b4b33fb19b3812e8e131 | [
"MIT"
] | null | null | null | lilac/__init__.py | mba811/lilac | ce7a4e19f7f73c07b2e6b4b33fb19b3812e8e131 | [
"MIT"
] | null | null | null | # coding=utf8
#
# OOO$QHHHQ$$$$$$$$$QQQHHHHNHHHNNNNNNNNNNN
# OO$$QHHNHQ$$$$$O$$$QQQHHHNNHHHNNNNNNMNNN
# $$$QQHHHH$$$OOO$$$$QQQQHHHHHHHNHNNNMNNNN
# HHQQQHHH--:!OOO$$$QQQQQQQHHHHHNNNNNNNNNN
# NNNHQHQ-;-:-:O$$$$$QQQ$QQQQHHHHNNNNNNNNN
# NMNHHQ;-;----:$$$$$$$:::OQHHHHHNNNNHHNNN
# NNNHH;;;-----:C$$$$$::----::-::>NNNNNNNN
# N... | 36.416667 | 50 | 0.521167 | 208 | 1,748 | 4.360577 | 0.586538 | 0.006615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034014 | 0.074943 | 1,748 | 47 | 51 | 37.191489 | 0.526902 | 0.886156 | 0 | 0 | 0 | 0 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f100d09d5dd0ea20c9825e6a6951cbbe2a921a4d | 4,351 | py | Python | kensu/client/models/field_def.py | vidma/kensu-py | aae1e04373f03c988d55772fde6563de3ca9f375 | [
"Apache-2.0"
] | 16 | 2021-04-28T13:22:41.000Z | 2022-03-02T10:45:19.000Z | kensu/client/models/field_def.py | vidma/kensu-py | aae1e04373f03c988d55772fde6563de3ca9f375 | [
"Apache-2.0"
] | 12 | 2021-05-17T08:06:42.000Z | 2022-02-28T22:43:04.000Z | kensu/client/models/field_def.py | vidma/kensu-py | aae1e04373f03c988d55772fde6563de3ca9f375 | [
"Apache-2.0"
] | 5 | 2021-04-27T15:02:16.000Z | 2021-10-15T16:07:21.000Z | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: beta
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
class FieldDef(obje... | 24.307263 | 105 | 0.536199 | 489 | 4,351 | 4.629857 | 0.226994 | 0.079505 | 0.074205 | 0.022968 | 0.353799 | 0.228799 | 0.174912 | 0.065371 | 0.033569 | 0.033569 | 0 | 0.001455 | 0.367961 | 4,351 | 178 | 106 | 24.44382 | 0.821818 | 0.251436 | 0 | 0.067568 | 1 | 0 | 0.092571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.027027 | 0 | 0.351351 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f10416747a1ff8f4a4affe6681c94660775c7e00 | 5,472 | py | Python | nominations/migrations/0001_initial.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | 911 | 2015-01-03T22:16:06.000Z | 2022-03-31T23:56:22.000Z | nominations/migrations/0001_initial.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | 1,342 | 2015-01-02T16:14:45.000Z | 2022-03-28T08:01:20.000Z | nominations/migrations/0001_initial.py | ewjoachim/pythondotorg | 382741cc6208fc56aa827cdd1da41983fb7e6ba8 | [
"Apache-2.0"
] | 551 | 2015-01-04T02:17:31.000Z | 2022-03-23T11:59:25.000Z | # Generated by Django 2.0.9 on 2019-03-18 20:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import markupfield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL... | 36.238411 | 86 | 0.41356 | 366 | 5,472 | 6.038251 | 0.289617 | 0.047059 | 0.038009 | 0.059729 | 0.540724 | 0.540724 | 0.51086 | 0.422172 | 0.422172 | 0.422172 | 0 | 0.016341 | 0.485563 | 5,472 | 150 | 87 | 36.48 | 0.768739 | 0.008224 | 0 | 0.552448 | 1 | 0 | 0.098065 | 0.015484 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027972 | 0 | 0.055944 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f10b49aaee68e7293e9a1314d7972c5caea9edb2 | 750 | py | Python | neighbor/migrations/0002_auto_20210412_2210.py | LewisNjagi/neighborhood | cbefac55b930999629dba202a784a096799949a4 | [
"MIT"
] | null | null | null | neighbor/migrations/0002_auto_20210412_2210.py | LewisNjagi/neighborhood | cbefac55b930999629dba202a784a096799949a4 | [
"MIT"
] | null | null | null | neighbor/migrations/0002_auto_20210412_2210.py | LewisNjagi/neighborhood | cbefac55b930999629dba202a784a096799949a4 | [
"MIT"
] | 2 | 2021-04-14T05:56:06.000Z | 2021-04-15T14:20:02.000Z | # Generated by Django 3.2 on 2021-04-12 22:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('neighbor', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='business',
... | 30 | 145 | 0.64 | 81 | 750 | 5.839506 | 0.493827 | 0.067653 | 0.088795 | 0.139535 | 0.498943 | 0.498943 | 0.325581 | 0.325581 | 0.325581 | 0.325581 | 0 | 0.031359 | 0.234667 | 750 | 24 | 146 | 31.25 | 0.792683 | 0.057333 | 0 | 0.333333 | 1 | 0 | 0.144681 | 0.029787 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f10c79f2e66be2d31bb61e574317d2eef21da993 | 4,068 | py | Python | pylps/core.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | 1 | 2018-05-19T18:28:12.000Z | 2018-05-19T18:28:12.000Z | pylps/core.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | 12 | 2018-04-26T00:58:11.000Z | 2018-05-13T22:03:39.000Z | pylps/core.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | null | null | null | from pylps.constants import *
from pylps.config import CONFIG
from pylps.kb import KB
from pylps.engine import ENGINE
from pylps.lps_objects import GoalClause, Observation, ReactiveRule
import pylps.creator as creator
''' Declarations '''
def create_actions(*args, return_obj=False):
ret = creator.create_objec... | 21.1875 | 79 | 0.682645 | 538 | 4,068 | 4.920074 | 0.263941 | 0.051001 | 0.05289 | 0.034001 | 0.250472 | 0.250472 | 0.225538 | 0.203627 | 0.191538 | 0.049112 | 0 | 0.006631 | 0.221485 | 4,068 | 191 | 80 | 21.298429 | 0.829176 | 0.141347 | 0 | 0.153846 | 0 | 0 | 0.024412 | 0 | 0 | 0 | 0 | 0.005236 | 0 | 1 | 0.211538 | false | 0 | 0.057692 | 0.067308 | 0.423077 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f10f9d27421300b1fdd0a309643ad08a50750df9 | 1,323 | py | Python | tests/test_k2.py | LanzLagman/chronos | 3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470 | [
"MIT"
] | null | null | null | tests/test_k2.py | LanzLagman/chronos | 3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470 | [
"MIT"
] | null | null | null | tests/test_k2.py | LanzLagman/chronos | 3c7e32e7bd8ed85d442ce3ecbf4c9a5272e8e470 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pandas as pd
import lightkurve as lk
from chronos.k2 import K2, Everest, K2sff
EPICID = 211916756 # k2-95
CAMPAIGN = 5 # or 18
def test_k2_attributes():
"""
"""
# test inherited attributes
s = K2(epicid=EPICID, campaign=CAMPAIGN)
assert s.epicid is not None
as... | 24.5 | 70 | 0.692366 | 186 | 1,323 | 4.736559 | 0.290323 | 0.127128 | 0.136209 | 0.190692 | 0.358683 | 0.351873 | 0.211124 | 0.106697 | 0 | 0 | 0 | 0.028918 | 0.18972 | 1,323 | 53 | 71 | 24.962264 | 0.79291 | 0.119426 | 0 | 0.103448 | 0 | 0 | 0.008007 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 1 | 0.172414 | false | 0 | 0.103448 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f11004b8b2440fc97ec0e3b374da4a63264ff26e | 388 | py | Python | ch22-直方图/22.3.4.hsv_hist-绘制2D直方图.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 2,875 | 2016-10-21T01:33:22.000Z | 2022-03-30T12:15:28.000Z | ch22-直方图/22.3.4.hsv_hist-绘制2D直方图.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 12 | 2017-07-18T14:24:27.000Z | 2021-07-04T10:32:25.000Z | ch22-直方图/22.3.4.hsv_hist-绘制2D直方图.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 1,066 | 2017-03-11T01:43:28.000Z | 2022-03-29T14:52:41.000Z | # -*-coding:utf8-*-#
__author__ = 'play4fun'
"""
create time:15-11-8 下午4:44
绘制2D直方图
"""
import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('../data/home.jpg')
# cv2.imshow("src", img)
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
hist = cv2.calcHist([hsv], [0, 1], None, [180, 256], [0, ... | 19.4 | 70 | 0.667526 | 61 | 388 | 4.163934 | 0.688525 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10119 | 0.134021 | 388 | 19 | 71 | 20.421053 | 0.654762 | 0.103093 | 0 | 0 | 0 | 0 | 0.102649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f11b98c4cbad0c6ce3b3cacf5a4c884e14ed54bb | 363 | py | Python | blog/migrations/0002_auto_20190719_0620.py | Sedherthe/Dj-Blog | 43d24e2a3654ba080da0be233d2e6f51c9baf4d4 | [
"MIT"
] | null | null | null | blog/migrations/0002_auto_20190719_0620.py | Sedherthe/Dj-Blog | 43d24e2a3654ba080da0be233d2e6f51c9baf4d4 | [
"MIT"
] | null | null | null | blog/migrations/0002_auto_20190719_0620.py | Sedherthe/Dj-Blog | 43d24e2a3654ba080da0be233d2e6f51c9baf4d4 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-07-19 00:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='data_published',
n... | 19.105263 | 47 | 0.584022 | 39 | 363 | 5.282051 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075099 | 0.30303 | 363 | 18 | 48 | 20.166667 | 0.73913 | 0.123967 | 0 | 0 | 1 | 0 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f12352df10226259fd2f7adb00c402a851d5ea01 | 839 | py | Python | python/magic-8-ball.py | CindyMullins/intro-to-open-source | 6099f28b30c62ee6362ae67f31d2d665ae2a6326 | [
"MIT"
] | 16 | 2017-08-20T06:08:53.000Z | 2021-02-18T03:41:28.000Z | python/magic-8-ball.py | CindyMullins/intro-to-open-source | 6099f28b30c62ee6362ae67f31d2d665ae2a6326 | [
"MIT"
] | 19 | 2017-08-19T05:32:30.000Z | 2021-03-26T18:40:19.000Z | python/magic-8-ball.py | CindyMullins/intro-to-open-source | 6099f28b30c62ee6362ae67f31d2d665ae2a6326 | [
"MIT"
] | 44 | 2017-08-19T05:09:13.000Z | 2021-07-28T13:39:33.000Z | import random
import time
responses = ["Not so sure", "Shitty", "Great", "Absolutely not", "Outlook is good", "I see good things happening", "Never", "Negative", "Could be", "Unclear, ask again", "Yes definitely", "No, Idon't think so"]
## Following function asks user question, then returns random results from respons... | 34.958333 | 210 | 0.692491 | 123 | 839 | 4.707317 | 0.674797 | 0.027634 | 0.034542 | 0.051813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002928 | 0.185936 | 839 | 23 | 211 | 36.478261 | 0.844802 | 0.200238 | 0 | 0.210526 | 0 | 0 | 0.417417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.315789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f124c20b1fe8e78ebe894a5b161358d7754b3437 | 584 | py | Python | DJangoHotel/viewspackage/roomInfoView.py | chuangkee/mygithub | a3742d45002de55378987eea551776a3168acc17 | [
"MIT"
] | null | null | null | DJangoHotel/viewspackage/roomInfoView.py | chuangkee/mygithub | a3742d45002de55378987eea551776a3168acc17 | [
"MIT"
] | null | null | null | DJangoHotel/viewspackage/roomInfoView.py | chuangkee/mygithub | a3742d45002de55378987eea551776a3168acc17 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.shortcuts import render
from qiniuyun.backend import QiniuPush
from qiniuyun.models import ImageAtQiniu
from .indexView import ImgList
from DJangoHotel.models import RoomInfo
def roomInfo(request):
rooms=RoomInfo.objects.all()
imgObjs=ImageAtQiniu.objects.all()
imgUrls=... | 29.2 | 76 | 0.688356 | 72 | 584 | 5.555556 | 0.541667 | 0.06 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002165 | 0.208904 | 584 | 19 | 77 | 30.736842 | 0.863636 | 0.035959 | 0 | 0 | 0 | 0 | 0.067736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f12913ad1c3dbc3a14c703a151bdf8159fa5b1c5 | 1,176 | py | Python | punica/cli/box_cmd.py | PunicaSuite/punica-python | dfcd50de4452454b96d0c252c2db994e3bad38c0 | [
"MIT"
] | 6 | 2018-11-01T23:39:32.000Z | 2020-03-25T13:39:46.000Z | punica/cli/box_cmd.py | PunicaSuite/punica-python | dfcd50de4452454b96d0c252c2db994e3bad38c0 | [
"MIT"
] | 3 | 2018-10-26T12:53:16.000Z | 2019-06-21T13:22:56.000Z | punica/cli/box_cmd.py | PunicaSuite/punica-python | dfcd50de4452454b96d0c252c2db994e3bad38c0 | [
"MIT"
] | 7 | 2018-10-11T07:03:10.000Z | 2019-06-26T02:38:58.000Z | import webbrowser
from ontology.exception.exception import SDKException
from click import (
argument,
pass_context
)
from .main import main
from punica.box.repo_box import Box
from punica.utils.output import echo_cli_exception
from punica.exception.punica_exception import PunicaException
@main.command('unb... | 21.777778 | 61 | 0.681973 | 153 | 1,176 | 5.091503 | 0.333333 | 0.056483 | 0.061617 | 0.046213 | 0.290116 | 0.290116 | 0.290116 | 0.290116 | 0.254172 | 0.164313 | 0 | 0.001065 | 0.201531 | 1,176 | 53 | 62 | 22.188679 | 0.828541 | 0.105442 | 0 | 0.371429 | 0 | 0 | 0.082505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.114286 | 0.2 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f1363e56bdfc412112127936e4e7fe72aeef181e | 10,827 | py | Python | python/project_kine/kine.py | OthmanEmpire/misc_code | 4d487db518167b62969ad65abaffbc9e01777d91 | [
"MIT"
] | null | null | null | python/project_kine/kine.py | OthmanEmpire/misc_code | 4d487db518167b62969ad65abaffbc9e01777d91 | [
"MIT"
] | null | null | null | python/project_kine/kine.py | OthmanEmpire/misc_code | 4d487db518167b62969ad65abaffbc9e01777d91 | [
"MIT"
] | null | null | null | ################################################################################
# Author: Othman Alikhan #
# Year Initiated: 2012 #
# ... | 32.70997 | 81 | 0.590745 | 1,083 | 10,827 | 5.803324 | 0.263158 | 0.028003 | 0.03564 | 0.031822 | 0.427844 | 0.406842 | 0.38027 | 0.253779 | 0.199045 | 0.199045 | 0 | 0.004316 | 0.315138 | 10,827 | 331 | 82 | 32.70997 | 0.843291 | 0.281149 | 0 | 0.245033 | 0 | 0 | 0.053579 | 0 | 0 | 0 | 0 | 0.006042 | 0.086093 | 1 | 0.165563 | false | 0.07947 | 0.05298 | 0 | 0.298013 | 0.125828 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f140c7545f7a24cc77e25acf7054d41c00c1c115 | 518 | py | Python | setup.py | madhav-datt/seeyourmail | 0fa1d312dbd8b091b41c92d4bcc26590705c1b97 | [
"MIT"
] | 1 | 2016-08-13T07:07:30.000Z | 2016-08-13T07:07:30.000Z | setup.py | madhav-datt/seeyourmail | 0fa1d312dbd8b091b41c92d4bcc26590705c1b97 | [
"MIT"
] | null | null | null | setup.py | madhav-datt/seeyourmail | 0fa1d312dbd8b091b41c92d4bcc26590705c1b97 | [
"MIT"
] | null | null | null |
from distutils.core import setup
setup(
name='seeyourmail',
packages=['seeyourmail'],
version='1.0',
description='seeyourmail makes retrieving and checking your email in programs as simple as can be',
author='Madhav Datt',
author_email='madhav.datt@hotmail.com',
url='https://github.com/mad... | 32.375 | 103 | 0.696911 | 63 | 518 | 5.698413 | 0.634921 | 0.111421 | 0.077994 | 0.094708 | 0.211699 | 0.211699 | 0.211699 | 0 | 0 | 0 | 0 | 0.00907 | 0.148649 | 518 | 15 | 104 | 34.533333 | 0.804989 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 0.044487 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1440fd46e2a7fc12bee012f62a878da9039092a | 517 | py | Python | history/migrations/0005_auto_20190411_2258.py | hereischen/Goliath | 2305048537f892febde6610b4cd108d3fb1b895a | [
"BSD-3-Clause"
] | 5 | 2019-05-08T00:50:25.000Z | 2021-11-24T07:33:10.000Z | history/migrations/0005_auto_20190411_2258.py | hereischen/Goliath | 2305048537f892febde6610b4cd108d3fb1b895a | [
"BSD-3-Clause"
] | 12 | 2019-12-02T00:05:06.000Z | 2022-01-13T01:04:35.000Z | history/migrations/0005_auto_20190411_2258.py | hereischen/Goliath | 2305048537f892febde6610b4cd108d3fb1b895a | [
"BSD-3-Clause"
] | 1 | 2019-01-08T17:43:41.000Z | 2019-01-08T17:43:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-04-11 22:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('history', '0004_history_prev_quantity'),
]
operations = [
migrations.Alter... | 24.619048 | 104 | 0.646035 | 57 | 517 | 5.666667 | 0.754386 | 0.074303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09596 | 0.234043 | 517 | 20 | 105 | 25.85 | 0.719697 | 0.133462 | 0 | 0 | 1 | 0 | 0.186517 | 0.125843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f148a0878c8fb132c93c5a6ed444cf5362a2ef2f | 558 | py | Python | server/huTools/couch.py | jeffjia/Send2Cloud | 4900c0a85ba9ea817bf34f0b5356580c2c3117c3 | [
"Apache-2.0"
] | 1 | 2018-03-01T13:12:46.000Z | 2018-03-01T13:12:46.000Z | server/huTools/couch.py | jeffjia/Send2Cloud | 4900c0a85ba9ea817bf34f0b5356580c2c3117c3 | [
"Apache-2.0"
] | null | null | null | server/huTools/couch.py | jeffjia/Send2Cloud | 4900c0a85ba9ea817bf34f0b5356580c2c3117c3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
couch.py
Created by Christian Klein on 2010-02-26.
Copyright (c) 2010 HUDORA GmbH. All rights reserved.
"""
import couchdb.client
import warnings
def setup_couchdb(servername, database):
"""Get a connection handler to the CouchDB Database, creating it when needed."""
... | 25.363636 | 84 | 0.724014 | 73 | 558 | 5.520548 | 0.753425 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030435 | 0.175627 | 558 | 21 | 85 | 26.571429 | 0.845652 | 0.387097 | 0 | 0 | 0 | 0 | 0.082317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f14921b446dc5a23fa822e2572f00ead72c3441d | 1,931 | py | Python | app/mixins.py | valentinDruzhinin/todo-lists | b517137437d5480d1aaec0451f060e1556bf3d8f | [
"MIT"
] | null | null | null | app/mixins.py | valentinDruzhinin/todo-lists | b517137437d5480d1aaec0451f060e1556bf3d8f | [
"MIT"
] | null | null | null | app/mixins.py | valentinDruzhinin/todo-lists | b517137437d5480d1aaec0451f060e1556bf3d8f | [
"MIT"
] | null | null | null | import json
from bson import ObjectId
from pymongo import ReturnDocument
from .exceptions import DBException
class DBActionsMixin:
def __init__(self, model, db):
self._model_cls = model
self._db = db
def add(self, item):
db_obj = self._collection.insert_one(item.prepare_for_db())
... | 31.655738 | 100 | 0.663905 | 278 | 1,931 | 4.305755 | 0.273381 | 0.037594 | 0.050125 | 0.047619 | 0.25731 | 0.136174 | 0.136174 | 0.087719 | 0.087719 | 0 | 0 | 0 | 0.235111 | 1,931 | 60 | 101 | 32.183333 | 0.810427 | 0 | 0 | 0.043478 | 0 | 0 | 0.066805 | 0.010875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195652 | false | 0 | 0.086957 | 0.086957 | 0.543478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f149870ce5099dc14c5ea591f5e0b61107cd647f | 276 | py | Python | demo.py | re-treat/DialoFlow | b7b729ddf5d146ee201c987f3a44894ad24938ce | [
"MIT"
] | null | null | null | demo.py | re-treat/DialoFlow | b7b729ddf5d146ee201c987f3a44894ad24938ce | [
"MIT"
] | null | null | null | demo.py | re-treat/DialoFlow | b7b729ddf5d146ee201c987f3a44894ad24938ce | [
"MIT"
] | null | null | null | from generate import *
history = []
while True:
new_sentence = input('>> User: ').replace('\n','')
history.append(new_sentence)
resps = get_responses(history[-5:],mode='sample')
best_resp = resps[0]
print(">> Bot:",best_resp)
history.append(best_resp) | 27.6 | 54 | 0.644928 | 35 | 276 | 4.914286 | 0.685714 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.173913 | 276 | 10 | 55 | 27.6 | 0.745614 | 0 | 0 | 0 | 1 | 0 | 0.086643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f14ca1f87eb014f04eefe6485b3e9dd32f417cfa | 6,308 | py | Python | pysnmp-with-texts/ZYXEL-L3-IP-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/ZYXEL-L3-IP-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/ZYXEL-L3-IP-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 ZYXEL-L3-IP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-L3-IP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:50:32 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | 121.307692 | 643 | 0.789474 | 724 | 6,308 | 6.875691 | 0.270718 | 0.057855 | 0.101245 | 0.009642 | 0.310566 | 0.174367 | 0.126557 | 0.126557 | 0.126557 | 0.126557 | 0 | 0.067988 | 0.088301 | 6,308 | 51 | 644 | 123.686275 | 0.7976 | 0.051363 | 0 | 0 | 0 | 0.090909 | 0.270795 | 0.011548 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.159091 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f15f43daea5e4b5fe8d0b408d0ba74de358571e1 | 491 | py | Python | beyondtheadmin/clients/migrations/0014_auto_20210825_0854.py | gfavre/invoice-manager | 2a1db22edd51b461c090282c6fc1f290f3265379 | [
"MIT"
] | 1 | 2021-11-27T06:40:34.000Z | 2021-11-27T06:40:34.000Z | beyondtheadmin/clients/migrations/0014_auto_20210825_0854.py | gfavre/invoice-manager | 2a1db22edd51b461c090282c6fc1f290f3265379 | [
"MIT"
] | 2 | 2021-05-13T04:50:50.000Z | 2022-02-28T21:06:24.000Z | beyondtheadmin/clients/migrations/0014_auto_20210825_0854.py | gfavre/invoice-manager | 2a1db22edd51b461c090282c6fc1f290f3265379 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-08-25 06:54
from django.db import migrations
import django_countries.fields
class Migration(migrations.Migration):
dependencies = [
('clients', '0013_auto_20210821_1503'),
]
operations = [
migrations.AlterField(
model_name='client',
... | 23.380952 | 130 | 0.645621 | 56 | 491 | 5.517857 | 0.767857 | 0.097087 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085562 | 0.238289 | 491 | 20 | 131 | 24.55 | 0.740642 | 0.09165 | 0 | 0 | 1 | 0 | 0.117117 | 0.051802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1624fc7acc4aea1db82d1a5689c7c3fa486c42f | 1,681 | py | Python | essaie_snippet/test_find_planet.py | Vahen/millenium_falcon_challenge | 1cc2493ae1f4a95b0bb7332bb877035a7070657d | [
"MIT"
] | null | null | null | essaie_snippet/test_find_planet.py | Vahen/millenium_falcon_challenge | 1cc2493ae1f4a95b0bb7332bb877035a7070657d | [
"MIT"
] | null | null | null | essaie_snippet/test_find_planet.py | Vahen/millenium_falcon_challenge | 1cc2493ae1f4a95b0bb7332bb877035a7070657d | [
"MIT"
] | null | null | null | ##planets = [
## {
## "planet": "Tatooine",
## "visited": False,
## "reachable": ["Dagobah", "Hoth"]
## },
## {
## "planet": "Dagobah",
## "visited": False,
## "reachable": ["Hoth", "Endor"]
## },
## {
## "planet": "Endor",
## "visited": False,
## ... | 28.491525 | 94 | 0.568709 | 161 | 1,681 | 5.757764 | 0.248447 | 0.071197 | 0.090615 | 0.074434 | 0.223301 | 0.158576 | 0.158576 | 0.158576 | 0.158576 | 0.158576 | 0 | 0.008507 | 0.230815 | 1,681 | 58 | 95 | 28.982759 | 0.70843 | 0.673409 | 0 | 0 | 0 | 0 | 0.349451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
f16280252c9840cdee510267af09c4d7567873a5 | 261 | py | Python | thehardway/exts/ext10.py | abos5/pythontutor | eba451700def8bd98d74668d1b6cc08c0ccc0d3c | [
"MIT"
] | null | null | null | thehardway/exts/ext10.py | abos5/pythontutor | eba451700def8bd98d74668d1b6cc08c0ccc0d3c | [
"MIT"
] | null | null | null | thehardway/exts/ext10.py | abos5/pythontutor | eba451700def8bd98d74668d1b6cc08c0ccc0d3c | [
"MIT"
] | null | null | null | tabby_cat = "\tI'm tabbed in"
persian_cat = "I'm split\non a line."
backslash_cat = "I'm \\ a \\ cat."
fat_cat = """
I'll do a list:
\t\t* Cat food.
\t* Fishes.
\t\t\t* Catnip\n\t* Grass
"""
print tabby_cat
print persian_cat
print backslash_cat
print fat_cat
| 16.3125 | 37 | 0.666667 | 52 | 261 | 3.192308 | 0.461538 | 0.072289 | 0.060241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168582 | 261 | 15 | 38 | 17.4 | 0.764977 | 0 | 0 | 0 | 0 | 0 | 0.471264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1633f649d0f1c1a41f819eb66c27318389d52d9 | 3,591 | py | Python | relational/populate-maria/populate-maria.py | eduardolfalcao/bigdata-unifacisa | a725fafd88c9508a717d7b0979dac9770dee6905 | [
"Apache-2.0"
] | 1 | 2020-11-02T18:44:46.000Z | 2020-11-02T18:44:46.000Z | relational/populate-maria/populate-maria.py | eduardolfalcao/bigdata-unifacisa | a725fafd88c9508a717d7b0979dac9770dee6905 | [
"Apache-2.0"
] | null | null | null | relational/populate-maria/populate-maria.py | eduardolfalcao/bigdata-unifacisa | a725fafd88c9508a717d7b0979dac9770dee6905 | [
"Apache-2.0"
] | 1 | 2021-09-15T01:42:35.000Z | 2021-09-15T01:42:35.000Z | #!/usr/bin/python3
import mysql.connector
from mysql.connector import Error
from mysql.connector import errorcode
from os import environ
import json
DB_HOST = environ.get('DB_HOST')
DB_NAME = environ.get('DB_NAME')
DB_USER = environ.get('DB_USER')
DB_PASSWORD = environ.get('DB_PASSWORD')
if DB_PASSWORD is not None:
... | 37.40625 | 137 | 0.644946 | 456 | 3,591 | 4.826754 | 0.217105 | 0.114948 | 0.069514 | 0.045434 | 0.325307 | 0.242617 | 0.140845 | 0.071786 | 0.030895 | 0 | 0 | 0.002743 | 0.187691 | 3,591 | 95 | 138 | 37.8 | 0.7518 | 0.038151 | 0 | 0.077922 | 0 | 0 | 0.265158 | 0.040615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077922 | false | 0.051948 | 0.064935 | 0.012987 | 0.220779 | 0.116883 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f165dc6651485b189667c7065cc6cc8aee155840 | 432 | py | Python | ABC/abc101-abc150/abc117/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | ABC/abc101-abc150/abc117/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | ABC/abc101-abc150/abc117/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
def main():
n, m = map(int, input().split())
xs = sorted(list(map(int, input().split())))
if n >= m:
print(0)
else:
ans = xs[-1] - xs[0]
diff = [0 for _ in range(m - 1)]
for i in range(m - 1):
diff[i] = xs[i + 1] - xs[... | 19.636364 | 61 | 0.428241 | 62 | 432 | 2.83871 | 0.467742 | 0.022727 | 0.125 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033088 | 0.37037 | 432 | 21 | 62 | 20.571429 | 0.613971 | 0.048611 | 0 | 0 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f16971b36b3a751347c35eb371dce2fda69c3718 | 9,071 | py | Python | mount_point_checker.py | light-bringer/mount-point-verifier | 883a1391e3d79b25444efc4351aaa9dc9828c002 | [
"MIT"
] | null | null | null | mount_point_checker.py | light-bringer/mount-point-verifier | 883a1391e3d79b25444efc4351aaa9dc9828c002 | [
"MIT"
] | null | null | null | mount_point_checker.py | light-bringer/mount-point-verifier | 883a1391e3d79b25444efc4351aaa9dc9828c002 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
PROGRAM : mount_point_checker.py
PyVersion : Python 2.7
This module takes multiple mount paths and compares them after backup
The module has 2 modes : Backup (-b) and Verify (-v)
Input Params :
-m <mount_points> All the mount point data that need to be backed up, ... | 35.996032 | 131 | 0.631904 | 1,180 | 9,071 | 4.701695 | 0.211017 | 0.023792 | 0.023432 | 0.027397 | 0.574802 | 0.564348 | 0.50036 | 0.457823 | 0.421053 | 0.421053 | 0 | 0.006233 | 0.257193 | 9,071 | 251 | 132 | 36.139442 | 0.817156 | 0.00893 | 0 | 0.333333 | 0 | 0.018182 | 0.270939 | 0.024867 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.048485 | null | null | 0.145455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f16a791d25b74cea013a19c66e01310b130ce613 | 6,678 | py | Python | handlers/account.py | zhy0216-collection/Gather | 4a42715b83ad8802514c4f8128fd0a30658ba359 | [
"MIT"
] | null | null | null | handlers/account.py | zhy0216-collection/Gather | 4a42715b83ad8802514c4f8128fd0a30658ba359 | [
"MIT"
] | null | null | null | handlers/account.py | zhy0216-collection/Gather | 4a42715b83ad8802514c4f8128fd0a30658ba359 | [
"MIT"
] | null | null | null | # coding=utf-8
import time
import hashlib
import tornado.web
import tornado.locale
from bson.objectid import ObjectId
from . import BaseHandler
from .utils import username_validator, email_validator
class SignupHandler(BaseHandler):
def get(self):
if self.current_user:
self.redirect(self.get_... | 37.516854 | 78 | 0.614555 | 717 | 6,678 | 5.616457 | 0.192469 | 0.034765 | 0.074497 | 0.028309 | 0.39856 | 0.335734 | 0.29178 | 0.211572 | 0.148001 | 0.148001 | 0 | 0.005387 | 0.249476 | 6,678 | 177 | 79 | 37.728814 | 0.798085 | 0.007038 | 0 | 0.294118 | 0 | 0 | 0.169962 | 0.026566 | 0 | 0 | 0 | 0.00565 | 0 | 1 | 0.071895 | false | 0.176471 | 0.045752 | 0 | 0.189542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f16a9f1e0a62e908912b60fb92e081e1677a4276 | 3,772 | py | Python | main.py | sajidengg/tets | 34287901dfb9222b109525f2198e73b561a1c55f | [
"MIT"
] | 1 | 2019-09-12T02:19:50.000Z | 2019-09-12T02:19:50.000Z | main.py | sajidengg/tets | 34287901dfb9222b109525f2198e73b561a1c55f | [
"MIT"
] | 1 | 2019-04-10T15:16:54.000Z | 2019-04-10T15:17:28.000Z | main.py | sajidengg/tets | 34287901dfb9222b109525f2198e73b561a1c55f | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
# main.py
# Root file for EmotionDetection program.
# Prints out command line menu and handles user choices
from __future__ import print_function
from EmotionDetection import WordMap
from EmotionDetection import EvaluateText
from EmotionDetection import GUI
try:
input = raw_input
except N... | 29.936508 | 101 | 0.574231 | 523 | 3,772 | 4.240918 | 0.321224 | 0.009919 | 0.014878 | 0.018034 | 0.244364 | 0.244364 | 0.243913 | 0.216862 | 0.204238 | 0.166366 | 0 | 0.009843 | 0.2728 | 3,772 | 125 | 102 | 30.176 | 0.777616 | 0.053552 | 0 | 0.287234 | 0 | 0.021277 | 0.409933 | 0.036756 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074468 | false | 0.010638 | 0.053191 | 0 | 0.12766 | 0.425532 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f17253e50c3d29da6840924939fc8b996955e407 | 545 | py | Python | main.py | upkodah/upkodah-service | 8ec16a4d5e53ec8a50cb3808d4473f60c5b12507 | [
"MIT"
] | null | null | null | main.py | upkodah/upkodah-service | 8ec16a4d5e53ec8a50cb3808d4473f60c5b12507 | [
"MIT"
] | 5 | 2020-10-29T01:27:37.000Z | 2020-11-26T09:10:12.000Z | main.py | upkodah/upkodah-service | 8ec16a4d5e53ec8a50cb3808d4473f60c5b12507 | [
"MIT"
] | null | null | null | import destination_search
'''
test용 값
gpsX = 127.0816985 # 동경 - 경도
gpsY = 37.5642135 # 북위 - 위도
time = 20
1. 좌표, 시간 입력 -> 주변 버스 정류소 ID 반환
2. 정류소 ID 입력 -> 버스 노선 획득
3. 획득한 버스 노선에서 출발지, 목적지 시간 계산하여 도착 버스 정류장 반환
'''
print("gps_x : ", end='')
gps_x = input()
print("gps_y : ", end='')
gps_y = input()
print("t... | 20.185185 | 66 | 0.609174 | 97 | 545 | 3.28866 | 0.484536 | 0.075235 | 0.087774 | 0.075235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.218349 | 545 | 26 | 67 | 20.961538 | 0.692488 | 0 | 0 | 0 | 0 | 0 | 0.210983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f17d5629104c63897a4fbfefaa73edad287f30c6 | 2,361 | py | Python | libs/gen_shop.py | a1ex4/ownfoil | fed98a393b83e10509dda7a397c6ab4d8feb0960 | [
"BSD-3-Clause"
] | 7 | 2021-06-15T21:17:25.000Z | 2022-03-21T15:02:29.000Z | libs/gen_shop.py | a1ex4/ownfoil | fed98a393b83e10509dda7a397c6ab4d8feb0960 | [
"BSD-3-Clause"
] | 1 | 2021-08-30T00:57:11.000Z | 2021-10-19T00:21:10.000Z | libs/gen_shop.py | a1ex4/ownfoil | fed98a393b83e10509dda7a397c6ab4d8feb0960 | [
"BSD-3-Clause"
] | 2 | 2021-09-08T02:29:48.000Z | 2021-11-15T10:44:42.000Z | # Usage:
# python gen_shop.py <directory to scan>
# Generate a 'shop.tfl' Tinfoil index file
# as well as 'shop.json', same content but viewable in the browser
import os, json, sys, time
from consts import *
from jsonc_parser.parser import JsoncParser
import logging
logging.basicConfig(format='%(asctime)s | %(levelna... | 31.065789 | 124 | 0.611605 | 312 | 2,361 | 4.557692 | 0.371795 | 0.042194 | 0.035162 | 0.029536 | 0.150492 | 0.088608 | 0.04782 | 0.04782 | 0.04782 | 0.04782 | 0 | 0.002877 | 0.263871 | 2,361 | 76 | 125 | 31.065789 | 0.815305 | 0.063956 | 0 | 0.107143 | 1 | 0 | 0.18631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.071429 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f180164738e1dc06d26dc68102e4eeb08427357b | 2,944 | py | Python | tech_project/lib/python2.7/site-packages/aldryn_common/timesince.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 2 | 2015-03-11T09:58:13.000Z | 2016-08-05T20:18:37.000Z | tech_project/lib/python2.7/site-packages/aldryn_common/timesince.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 27 | 2015-03-23T16:09:02.000Z | 2018-12-18T14:22:20.000Z | tech_project/lib/python2.7/site-packages/aldryn_common/timesince.py | priyamshah112/Project-Descripton-Blog | 8e01016c6be79776c4f5ca75563fa3daa839e39e | [
"MIT"
] | 8 | 2015-03-23T16:14:22.000Z | 2017-02-21T21:07:01.000Z | import datetime
from django.utils.timezone import is_aware, utc
from django.utils.translation import ugettext, ungettext
def timesince_data(d, now=None, reverse=False):
"""
Takes two datetime objects and returns the time between d and now
as a list of components, ordered by size.
e.g. [{'number': 2, ... | 34.232558 | 83 | 0.619565 | 412 | 2,944 | 4.364078 | 0.271845 | 0.035595 | 0.035595 | 0.050056 | 0.263626 | 0.161847 | 0.129588 | 0.110122 | 0.110122 | 0.110122 | 0 | 0.025945 | 0.227582 | 2,944 | 85 | 84 | 34.635294 | 0.764732 | 0.273777 | 0 | 0.044444 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.066667 | 0.133333 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
74ac48de8e16cbda27909756ffb236d23adc27ea | 376 | py | Python | country/migrations/0023_auto_20210301_0839.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | country/migrations/0023_auto_20210301_0839.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | country/migrations/0023_auto_20210301_0839.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.2 on 2021-03-01 08:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("country", "0022_merge_20210226_1050"),
]
operations = [
migrations.AlterModelOptions(
name="equitycategory",
options={"verbo... | 20.888889 | 65 | 0.625 | 38 | 376 | 6.052632 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111913 | 0.263298 | 376 | 17 | 66 | 22.117647 | 0.718412 | 0.119681 | 0 | 0 | 1 | 0 | 0.246201 | 0.072948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74ae0bf85eb2d9d38456959bc42d199b78f2e0f3 | 323 | py | Python | techproject/src/mainapp/products/migrations/0002_auto_20210416_2106.py | Joshuajking/RoyalHotel-WebApp | 351681ea9ee2a79046b09b22a9dae26780cd9e9c | [
"Unlicense"
] | null | null | null | techproject/src/mainapp/products/migrations/0002_auto_20210416_2106.py | Joshuajking/RoyalHotel-WebApp | 351681ea9ee2a79046b09b22a9dae26780cd9e9c | [
"Unlicense"
] | null | null | null | techproject/src/mainapp/products/migrations/0002_auto_20210416_2106.py | Joshuajking/RoyalHotel-WebApp | 351681ea9ee2a79046b09b22a9dae26780cd9e9c | [
"Unlicense"
] | null | null | null | # Generated by Django 2.0.7 on 2021-04-17 02:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Products',
new_name='Product',
),
... | 17.944444 | 47 | 0.585139 | 34 | 323 | 5.470588 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084071 | 0.30031 | 323 | 17 | 48 | 19 | 0.738938 | 0.139319 | 0 | 0 | 1 | 0 | 0.126812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74b1b62ded3a565c9e9435f28ddf27ba6a746cb0 | 738 | py | Python | ptmv/snd.py | ryw89/ptmv | 63df738a9700de173e3eb4202ec24a867e2525f4 | [
"MIT"
] | null | null | null | ptmv/snd.py | ryw89/ptmv | 63df738a9700de173e3eb4202ec24a867e2525f4 | [
"MIT"
] | null | null | null | ptmv/snd.py | ryw89/ptmv | 63df738a9700de173e3eb4202ec24a867e2525f4 | [
"MIT"
] | null | null | null | import os
import subprocess
import tempfile
import time
import wave
import simpleaudio
def extract(file):
ptmv_tempdir = os.path.join(tempfile.gettempdir(), "ptmv")
if not os.path.exists(ptmv_tempdir): os.makedirs(ptmv_tempdir)
snd_file = ptmv_tempdir + str(int(time.time())) + ".wav"
command = "ffmpeg -i " + file ... | 32.086957 | 90 | 0.752033 | 113 | 738 | 4.743363 | 0.442478 | 0.08209 | 0.05597 | 0.041045 | 0.063433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004615 | 0.119241 | 738 | 23 | 91 | 32.086957 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0.046008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.3 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
74b7f7e963a239b074c92c650bdbd8d4e5bdc2e6 | 1,127 | py | Python | rpg/lib.py | FlorianLeChat/Python-RPG | 833594a964687f57b71eeb63a2a410a8fee43aa1 | [
"MIT"
] | null | null | null | rpg/lib.py | FlorianLeChat/Python-RPG | 833594a964687f57b71eeb63a2a410a8fee43aa1 | [
"MIT"
] | null | null | null | rpg/lib.py | FlorianLeChat/Python-RPG | 833594a964687f57b71eeb63a2a410a8fee43aa1 | [
"MIT"
] | null | null | null | #
# Try to check if the input is a number.
# https://stackoverflow.com/a/1267145
#
def tryGetNumber(value = ""):
try:
int(value)
return True
except ValueError:
return False
#
# Try to retrieve the input from the usage by checking the termination
# controls like CTRL+C to stop the program.
#
def tryGetInput(pro... | 20.87037 | 74 | 0.700089 | 158 | 1,127 | 4.987342 | 0.518987 | 0.068528 | 0.079949 | 0.083756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022801 | 0.182786 | 1,127 | 54 | 75 | 20.87037 | 0.83279 | 0.377995 | 0 | 0.296296 | 0 | 0 | 0.013196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.074074 | 0 | 0.518519 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
74c416090412740f9213f9dd77f04282a2b98bbb | 372 | py | Python | setup.py | RosettaCommons/pyrosetta_colab_setup | 8e00ed2f1e73e46abc30a2103cef89e48a44a1c8 | [
"MIT"
] | 1 | 2021-07-16T19:31:19.000Z | 2021-07-16T19:31:19.000Z | setup.py | dw5601/pyrosetta_colab_setup | 8e00ed2f1e73e46abc30a2103cef89e48a44a1c8 | [
"MIT"
] | null | null | null | setup.py | dw5601/pyrosetta_colab_setup | 8e00ed2f1e73e46abc30a2103cef89e48a44a1c8 | [
"MIT"
] | 2 | 2021-07-16T19:31:21.000Z | 2021-09-09T06:50:32.000Z | from setuptools import setup
setup(name='pyrosettacolabsetup',
version='0.5',
description='Mounts Google Drive for PyRosetta use in Google Colaboratory',
url='https://github.com/kathyle9/pyrosettacolabsetup',
author='kathyle9',
author_email='kle16@jhu.edu',
license='MIT',
pack... | 31 | 81 | 0.688172 | 40 | 372 | 6.35 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.188172 | 372 | 11 | 82 | 33.818182 | 0.821192 | 0 | 0 | 0 | 0 | 0 | 0.462366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74c56a4b96f6fcd9893adae4e172250b3e40e46f | 1,885 | py | Python | my_decorator.py | 4enzo/learning_py | 6f0bc7b974fd7cdb9138a5c41ebaec339373513f | [
"MIT"
] | null | null | null | my_decorator.py | 4enzo/learning_py | 6f0bc7b974fd7cdb9138a5c41ebaec339373513f | [
"MIT"
] | null | null | null | my_decorator.py | 4enzo/learning_py | 6f0bc7b974fd7cdb9138a5c41ebaec339373513f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 2022-03-16
@author: Enzo
'''
import time
import functools
def run_time(func):
"函数运行时长"
@functools.wraps(func)
def inner(*args, **kwargs):
start_time = time.time()
result = func(*args, **kwargs)
end_time = time.time()
... | 23.271605 | 115 | 0.603714 | 203 | 1,885 | 5.403941 | 0.507389 | 0.02917 | 0.030082 | 0.025524 | 0.043756 | 0.043756 | 0.043756 | 0 | 0 | 0 | 0 | 0.009538 | 0.276923 | 1,885 | 80 | 116 | 23.5625 | 0.795304 | 0.327851 | 0 | 0.045455 | 0 | 0 | 0.10473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.022727 | 0.045455 | 0.022727 | 0.386364 | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74c6c5264a18874bfc3529ea2edc3a70a8558e9d | 35,236 | py | Python | src/oci/data_integration/models/task_run.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/data_integration/models/task_run.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/data_integration/models/task_run.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 31.237589 | 245 | 0.630662 | 4,367 | 35,236 | 4.89352 | 0.06343 | 0.045204 | 0.097333 | 0.04773 | 0.658914 | 0.554001 | 0.468507 | 0.397567 | 0.344829 | 0.337155 | 0 | 0.001131 | 0.297508 | 35,236 | 1,127 | 246 | 31.265306 | 0.862199 | 0.528267 | 0 | 0.094955 | 0 | 0 | 0.138681 | 0.003467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20178 | false | 0 | 0.005935 | 0.005935 | 0.376855 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74c93ec778e6f2115d37da29c96d96d36fd726a2 | 5,653 | py | Python | code/ml/gptheano/vecgpdm/test.py | dmytrov/gaussianprocess | 7044bd2d66f44e10656fee17e94fdee0c24c70bb | [
"MIT"
] | null | null | null | code/ml/gptheano/vecgpdm/test.py | dmytrov/gaussianprocess | 7044bd2d66f44e10656fee17e94fdee0c24c70bb | [
"MIT"
] | null | null | null | code/ml/gptheano/vecgpdm/test.py | dmytrov/gaussianprocess | 7044bd2d66f44e10656fee17e94fdee0c24c70bb | [
"MIT"
] | null | null | null | import os
import numpy as np
import matplotlibex as plx
import numerical.numpytheano.theanopool as tp
import ml.gptheano.vecgpdm.multiprimitivemodel as mdl
import ml.gptheano.vecgpdm.kernels as krn
import ml.gptheano.vecgpdm.equations as vceq
import numerical.numpytheano as nt
import matplotlibex.mlplot as plx
def ge... | 48.316239 | 140 | 0.66018 | 892 | 5,653 | 3.906951 | 0.179372 | 0.025825 | 0.033572 | 0.056815 | 0.677762 | 0.618938 | 0.537446 | 0.516786 | 0.480344 | 0.46944 | 0 | 0.0442 | 0.211569 | 5,653 | 116 | 141 | 48.732759 | 0.737492 | 0.017336 | 0 | 0.191919 | 0 | 0 | 0.027032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.040404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74ce4a0df4da03c89539d9d88b200fbc9f5506a3 | 993 | py | Python | application/__init__.py | UniversidadeDeVassouras/labproginter-2020.2-PedroHenriqueVasconcelos-t2 | 1ea78c16ada65da602de38b04ca741711734dc96 | [
"Apache-2.0"
] | null | null | null | application/__init__.py | UniversidadeDeVassouras/labproginter-2020.2-PedroHenriqueVasconcelos-t2 | 1ea78c16ada65da602de38b04ca741711734dc96 | [
"Apache-2.0"
] | null | null | null | application/__init__.py | UniversidadeDeVassouras/labproginter-2020.2-PedroHenriqueVasconcelos-t2 | 1ea78c16ada65da602de38b04ca741711734dc96 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
import os
from application.model.entity.aula import Aula
from application.model.entity.disciplina import Disciplina
app = Flask(__name__, static_folder=os.path.abspath("application/view/static"), template_folder=os.path.abspath("application/view/templates"))
aula1 = Aula(1, "Aula 1"... | 47.285714 | 143 | 0.752266 | 128 | 993 | 5.757813 | 0.40625 | 0.081411 | 0.077341 | 0.070556 | 0.092266 | 0.092266 | 0 | 0 | 0 | 0 | 0 | 0.033565 | 0.129909 | 993 | 21 | 144 | 47.285714 | 0.819444 | 0 | 0 | 0 | 0 | 0 | 0.322382 | 0.050308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
74d36a11253d7812de977142377470e5b81ffeb2 | 522 | py | Python | tractseg/experiments/endings_seg.py | jelleman8/TractSeg | 2a42efe6016141f3a32d46c8f509758302c5875b | [
"Apache-2.0"
] | 1 | 2020-06-07T09:36:46.000Z | 2020-06-07T09:36:46.000Z | tractseg/experiments/endings_seg.py | jelleman8/TractSeg | 2a42efe6016141f3a32d46c8f509758302c5875b | [
"Apache-2.0"
] | null | null | null | tractseg/experiments/endings_seg.py | jelleman8/TractSeg | 2a42efe6016141f3a32d46c8f509758302c5875b | [
"Apache-2.0"
] | null | null | null |
from tractseg.experiments.base import Config as BaseConfig
class Config(BaseConfig):
EXPERIMENT_TYPE = "endings_segmentation"
CLASSES = "All_endpoints"
LOSS_WEIGHT = 5
LOSS_WEIGHT_LEN = -1
# BATCH_SIZE = 30 # for all 72 (=144) classes we need smaller batch size because of memory limit
... | 26.1 | 108 | 0.703065 | 73 | 522 | 4.849315 | 0.794521 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058228 | 0.243295 | 522 | 19 | 109 | 27.473684 | 0.837975 | 0.385057 | 0 | 0 | 0 | 0 | 0.159236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
74d41a0f44d86a7b2cb92a7609690c034a52e6af | 1,844 | py | Python | putput/presets/factory.py | cicorias/putput | 96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44 | [
"MIT"
] | 1 | 2019-01-17T07:45:43.000Z | 2019-01-17T07:45:43.000Z | putput/presets/factory.py | cicorias/putput | 96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44 | [
"MIT"
] | 1 | 2019-01-17T07:47:04.000Z | 2019-01-17T07:47:04.000Z | putput/presets/factory.py | cicorias/putput | 96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44 | [
"MIT"
] | null | null | null | from typing import Callable
from putput.presets import displaCy
from putput.presets import iob2
from putput.presets import luis
from putput.presets import stochastic
def get_preset(preset: str) -> Callable:
"""A factory that gets a 'preset' Callable.
Args:
preset: the preset's name.
Returns:
... | 38.416667 | 119 | 0.611714 | 226 | 1,844 | 4.845133 | 0.358407 | 0.03653 | 0.043836 | 0.060274 | 0.094977 | 0.094977 | 0.094977 | 0.094977 | 0.094977 | 0.063014 | 0 | 0.003682 | 0.263557 | 1,844 | 47 | 120 | 39.234043 | 0.802651 | 0.599783 | 0 | 0 | 0 | 0 | 0.184252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
74d42683a6db7d7fd07c3575b8cbc1f38ea019f1 | 1,273 | py | Python | profilesapi/serializers.py | farbodgerami/profilerestapi | 8ccd42b4b6aff2d7a302d0301be08854fb5cce45 | [
"MIT"
] | null | null | null | profilesapi/serializers.py | farbodgerami/profilerestapi | 8ccd42b4b6aff2d7a302d0301be08854fb5cce45 | [
"MIT"
] | null | null | null | profilesapi/serializers.py | farbodgerami/profilerestapi | 8ccd42b4b6aff2d7a302d0301be08854fb5cce45 | [
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import UserProfile
from profilesapi import models
class helloserializer(serializers.Serializer):
name = serializers.CharField(max_length=15)
class UserProfileserializer(serializers.ModelSerializer):
class Meta:
model = UserProfile
# fields... | 27.673913 | 65 | 0.595444 | 113 | 1,273 | 6.566372 | 0.548673 | 0.070081 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002242 | 0.299293 | 1,273 | 45 | 66 | 28.288889 | 0.829596 | 0.089552 | 0 | 0.129032 | 0 | 0 | 0.116426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.129032 | 0.096774 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
74d6177d2881f21b08bc1ebf5e156825688392d8 | 1,456 | py | Python | consumers/venv/lib/python3.7/site-packages/faust/types/assignor.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | consumers/venv/lib/python3.7/site-packages/faust/types/assignor.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | consumers/venv/lib/python3.7/site-packages/faust/types/assignor.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | import abc
import typing
from typing import List, MutableMapping, Set
from mode import ServiceT
from yarl import URL
from .tuples import TP
if typing.TYPE_CHECKING:
from .app import AppT as _AppT
else:
class _AppT: ... # noqa
__all__ = [
'TopicToPartitionMap',
'HostToPartitionMap',
'Partiti... | 19.413333 | 63 | 0.635989 | 152 | 1,456 | 5.934211 | 0.348684 | 0.18847 | 0.221729 | 0.073171 | 0.195122 | 0.135255 | 0.070953 | 0 | 0 | 0 | 0 | 0.000914 | 0.248626 | 1,456 | 74 | 64 | 19.675676 | 0.823583 | 0.002747 | 0 | 0.415094 | 0 | 0 | 0.048276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188679 | false | 0 | 0.132075 | 0 | 0.433962 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
74d87e0b37acbf34d04b4a8b0edf22298797772c | 8,403 | py | Python | tests/utils/test_events.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 3,592 | 2017-03-12T19:44:07.000Z | 2022-03-30T16:03:33.000Z | tests/utils/test_events.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 1,648 | 2017-03-12T23:44:34.000Z | 2022-03-31T15:28:38.000Z | tests/utils/test_events.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 1,736 | 2017-03-13T14:01:28.000Z | 2022-03-31T08:14:24.000Z | from collections import defaultdict
from queue import Queue
from unittest.mock import patch
from redis.exceptions import ConnectionError
from CTFd.config import TestingConfig
from CTFd.utils.events import EventManager, RedisEventManager, ServerSentEvent
from tests.helpers import create_ctfd, destroy_ctfd, login_as_us... | 33.478088 | 86 | 0.558848 | 873 | 8,403 | 5.198167 | 0.189003 | 0.06082 | 0.022918 | 0.038784 | 0.655134 | 0.595857 | 0.572499 | 0.543411 | 0.456589 | 0.430145 | 0 | 0.035159 | 0.326431 | 8,403 | 250 | 87 | 33.612 | 0.766608 | 0.169106 | 0 | 0.745455 | 0 | 0 | 0.146539 | 0.05821 | 0 | 0 | 0 | 0 | 0.109091 | 1 | 0.048485 | false | 0.006061 | 0.042424 | 0 | 0.187879 | 0.024242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74dacdf39663c95dee29152f69fb689022586231 | 940 | py | Python | graphene_django_jwt/schema/middleware.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | graphene_django_jwt/schema/middleware.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | graphene_django_jwt/schema/middleware.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AnonymousUser
from graphene_django_jwt.blacklist import Blacklist
from graphene_django_jwt.shortcuts import get_user_by_token
from graphene_django_jwt.utils import get_credentials, get_payload
def _load_user(request):
token = get_credentials(request)
if token is not Non... | 31.333333 | 66 | 0.695745 | 119 | 940 | 5.226891 | 0.369748 | 0.057878 | 0.086817 | 0.101286 | 0.11254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223404 | 940 | 29 | 67 | 32.413793 | 0.852055 | 0 | 0 | 0.090909 | 0 | 0 | 0.01383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
74edb93d9d0f36c2269aab0e11e28b72cbcd34f1 | 6,327 | py | Python | src/pwnbot.py | jtorres-dev/discord_ctfbot | c4063e7b495a7096ff4e43e1c7bf39111f3ab401 | [
"MIT"
] | 2 | 2021-07-18T10:06:09.000Z | 2021-11-10T17:17:16.000Z | src/pwnbot.py | jtorres-dev/discord_ctfbot | c4063e7b495a7096ff4e43e1c7bf39111f3ab401 | [
"MIT"
] | null | null | null | src/pwnbot.py | jtorres-dev/discord_ctfbot | c4063e7b495a7096ff4e43e1c7bf39111f3ab401 | [
"MIT"
] | 1 | 2022-02-16T20:19:31.000Z | 2022-02-16T20:19:31.000Z | import discord
import ctftime
import os
import random
from discord.ext import commands, tasks
from datetime import datetime
# Token generated from https://discord.com/developers/applications
# Keep this private, if exposed generate new one
TOKEN = ''
# Bot channel ID was grabbed from Settings > Appearance > Developer... | 29.84434 | 146 | 0.657974 | 893 | 6,327 | 4.571109 | 0.262038 | 0.027438 | 0.032337 | 0.039196 | 0.246693 | 0.202107 | 0.178834 | 0.145762 | 0.105586 | 0.105586 | 0 | 0.010433 | 0.197092 | 6,327 | 211 | 147 | 29.985782 | 0.79311 | 0.127233 | 0 | 0.260274 | 1 | 0.013699 | 0.367781 | 0.055576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.041096 | 0.006849 | 0.116438 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74f0b6c0862dce65538cbea19beab8636aa3411a | 414 | py | Python | store/urls.py | hardik1410/ShopEase | 8d941cad662f8ed4bddab43f1ed486307f6654ff | [
"MIT"
] | null | null | null | store/urls.py | hardik1410/ShopEase | 8d941cad662f8ed4bddab43f1ed486307f6654ff | [
"MIT"
] | null | null | null | store/urls.py | hardik1410/ShopEase | 8d941cad662f8ed4bddab43f1ed486307f6654ff | [
"MIT"
] | 4 | 2021-08-14T19:03:20.000Z | 2022-03-31T20:58:05.000Z | from django.urls import path
from django.conf.urls import url
from store import views
from .views import getStore, addStore, updateStore, deleteStore
urlpatterns = [
url(r'getStore/', views.getStore),
url(r'addStore/', views.addStore),
url(r'updateStore/', views.updateStore),
url(r'deleteStore/', views... | 31.846154 | 76 | 0.724638 | 52 | 414 | 5.769231 | 0.384615 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.130435 | 414 | 12 | 77 | 34.5 | 0.827778 | 0 | 0 | 0 | 0 | 0 | 0.193237 | 0.091787 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
74f1d9921e9f47ecc63831f5691a1c67010b6be9 | 1,727 | py | Python | wwwhero/migrations/0006_auto_20210109_1311.py | IharSha/build_a_hero | 4a0f0aa701c205d04edd6bc801707a73bcc210f2 | [
"BSD-3-Clause"
] | null | null | null | wwwhero/migrations/0006_auto_20210109_1311.py | IharSha/build_a_hero | 4a0f0aa701c205d04edd6bc801707a73bcc210f2 | [
"BSD-3-Clause"
] | 2 | 2021-01-08T11:53:33.000Z | 2021-09-23T07:04:20.000Z | wwwhero/migrations/0006_auto_20210109_1311.py | IharSha/build_a_hero | 4a0f0aa701c205d04edd6bc801707a73bcc210f2 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-09 13:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wwwhero', '0005_auto_20210106_1308'),
]
operations = [
migrations.CreateModel(
name='LocationTy... | 39.25 | 156 | 0.599884 | 167 | 1,727 | 6.095808 | 0.42515 | 0.047151 | 0.068762 | 0.108055 | 0.378193 | 0.240668 | 0.240668 | 0.240668 | 0.240668 | 0.121807 | 0 | 0.028391 | 0.265779 | 1,727 | 43 | 157 | 40.162791 | 0.774448 | 0.026057 | 0 | 0.351351 | 1 | 0 | 0.1375 | 0.01369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74f899e21e839972b7e9857acc8c5b5a51ab3347 | 1,824 | py | Python | 2009/scientific-computing/prax3/src/RLPrax2_2.py | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | 2 | 2015-11-08T10:01:47.000Z | 2020-03-10T00:00:58.000Z | 2009/scientific-computing/prax3/src/RLPrax2_2.py | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | null | null | null | 2009/scientific-computing/prax3/src/RLPrax2_2.py | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Raivo Laanemets
# rlaanemt@ut.ee
import sys
from Taring import Taring
# Abiklass nelja täringuviske mängu simuleerimiseks.
class GameSimulator:
def __init__(self):
# Täringute ettevalmistamine.
self.t1 = Taring()
self.t2 = Taring()
self.t3 = Taring()
... | 30.915254 | 86 | 0.660636 | 195 | 1,824 | 6.117949 | 0.533333 | 0.025147 | 0.025147 | 0.036882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014545 | 0.246162 | 1,824 | 59 | 87 | 30.915254 | 0.853091 | 0.243421 | 0 | 0 | 0 | 0 | 0.141185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.194444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d027dd1899fc456d6f79fdb25756da0442fe0e9 | 19,594 | py | Python | tests/test_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | 1 | 2020-06-30T18:56:22.000Z | 2020-06-30T18:56:22.000Z | tests/test_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | null | null | null | tests/test_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | null | null | null | """Tests for RandoPony admin views and functionality.
"""
from datetime import datetime
import unittest
from unittest.mock import patch
from pyramid import testing
from pyramid_mailer import get_mailer
from sqlalchemy import create_engine
from randopony.models.meta import (
Base,
DBSession,
)
class TestCore... | 39.583838 | 80 | 0.610289 | 2,136 | 19,594 | 5.428371 | 0.138109 | 0.033635 | 0.023458 | 0.028029 | 0.730229 | 0.679603 | 0.672359 | 0.656749 | 0.633549 | 0.602932 | 0 | 0.025324 | 0.278504 | 19,594 | 494 | 81 | 39.663968 | 0.794865 | 0.068235 | 0 | 0.658711 | 0 | 0 | 0.177466 | 0.029917 | 0 | 0 | 0 | 0 | 0.078759 | 1 | 0.064439 | false | 0.009547 | 0.069212 | 0.002387 | 0.155131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d036ce61565c7bf56d00dfde72b453399c3d5d5 | 4,204 | py | Python | src/lib/parsers/parseretinac.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | null | null | null | src/lib/parsers/parseretinac.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | null | null | null | src/lib/parsers/parseretinac.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | 1 | 2018-02-22T02:18:48.000Z | 2018-02-22T02:18:48.000Z | #!/usr/bin/python
# parseretinac.py
#
# By Adrien de Beaupre adriendb@gmail.com | adrien@intru-shun.ca
# Copyright 2011 Intru-Shun.ca Inc.
# v0.09
# 16 October 2011
#
# The current version of these scripts are at: http://dshield.handers.org/adebeaupre/ossams-parser.tgz
#
# Parses retina community version XML... | 42.897959 | 133 | 0.657469 | 481 | 4,204 | 5.742204 | 0.428274 | 0.010862 | 0.011948 | 0.010138 | 0.171977 | 0.107893 | 0.052136 | 0.052136 | 0.052136 | 0.052136 | 0 | 0.006777 | 0.192674 | 4,204 | 97 | 134 | 43.340206 | 0.807012 | 0.260942 | 0 | 0.184615 | 0 | 0.030769 | 0.395638 | 0.023826 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d0642d0a2bf80cc847ea773f1cbfa1193d454b9 | 5,103 | py | Python | animate.py | manuelnaranjo/pyrealtimecharter | 72fa4faa132686ba2a401cc7dfff326d36ecc505 | [
"Apache-2.0"
] | null | null | null | animate.py | manuelnaranjo/pyrealtimecharter | 72fa4faa132686ba2a401cc7dfff326d36ecc505 | [
"Apache-2.0"
] | null | null | null | animate.py | manuelnaranjo/pyrealtimecharter | 72fa4faa132686ba2a401cc7dfff326d36ecc505 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Copyright 2010 Naranjo, Manuel Francisco <manuel@aircable.net>
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/... | 26.169231 | 82 | 0.619636 | 732 | 5,103 | 4.269126 | 0.337432 | 0.0544 | 0.0192 | 0.02112 | 0.23808 | 0.19264 | 0.17024 | 0.13056 | 0.13056 | 0.08256 | 0 | 0.014381 | 0.236919 | 5,103 | 194 | 83 | 26.304124 | 0.788136 | 0.047031 | 0 | 0.251799 | 0 | 0 | 0.056487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021583 | 0.043165 | null | null | 0.028777 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d09d5c976fe0b439fd326a0507f29f1c53af7a3 | 4,149 | py | Python | testing/unit_tests/test_loader.py | MotionCorrect/ivadomed | 5e402fe6dc180847ad12bb813ba5b0431d243f04 | [
"MIT"
] | null | null | null | testing/unit_tests/test_loader.py | MotionCorrect/ivadomed | 5e402fe6dc180847ad12bb813ba5b0431d243f04 | [
"MIT"
] | 6 | 2021-03-24T16:23:29.000Z | 2021-04-08T15:22:53.000Z | testing/unit_tests/test_loader.py | MotionCorrect/ivadomed | 5e402fe6dc180847ad12bb813ba5b0431d243f04 | [
"MIT"
] | null | null | null | import os
import pytest
import csv_diff
import logging
import torch
from unit_tests.t_utils import remove_tmp_dir, create_tmp_dir, __data_testing_dir__, __tmp_dir__
from ivadomed.loader import utils as imed_loader_utils
from ivadomed.loader import loader as imed_loader
logger = logging.getLogger(__name__)
def setup_f... | 42.336735 | 114 | 0.692215 | 606 | 4,149 | 4.438944 | 0.254125 | 0.031227 | 0.04461 | 0.053532 | 0.5171 | 0.511152 | 0.491822 | 0.458364 | 0.44461 | 0.43197 | 0 | 0.010904 | 0.160039 | 4,149 | 97 | 115 | 42.773196 | 0.760976 | 0.188961 | 0 | 0.3125 | 0 | 0 | 0.182809 | 0.009685 | 0 | 0 | 0 | 0.030928 | 0.0625 | 1 | 0.078125 | false | 0 | 0.125 | 0 | 0.203125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d102ba963d0416b1e7dda9fdfd6232ee7b52e79 | 640 | py | Python | server/project/api_v1/migrations/0003_auto_20191020_1229.py | Utree/TRAGRAM | d994394d580296c6acccbc3e222454b883ffb4d5 | [
"MIT"
] | null | null | null | server/project/api_v1/migrations/0003_auto_20191020_1229.py | Utree/TRAGRAM | d994394d580296c6acccbc3e222454b883ffb4d5 | [
"MIT"
] | null | null | null | server/project/api_v1/migrations/0003_auto_20191020_1229.py | Utree/TRAGRAM | d994394d580296c6acccbc3e222454b883ffb4d5 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.8 on 2019-10-20 03:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api_v1', '0002_auto_20191020_1005'),
]
operations = [
migrations.AlterField(
model_name='post',
name='map_lat',
... | 26.666667 | 102 | 0.60625 | 74 | 640 | 5.054054 | 0.608108 | 0.106952 | 0.13369 | 0.15508 | 0.57754 | 0.57754 | 0.57754 | 0.363636 | 0.363636 | 0.363636 | 0 | 0.090129 | 0.271875 | 640 | 23 | 103 | 27.826087 | 0.712446 | 0.070313 | 0 | 0.352941 | 1 | 0 | 0.092749 | 0.038786 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d12bbb1e89b0a3a7d504dd09f39cc0aa58d6b36 | 613 | py | Python | leads/migrations/0012_auto_20190521_0128.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | null | null | null | leads/migrations/0012_auto_20190521_0128.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | 8 | 2020-06-05T20:58:52.000Z | 2022-03-11T23:48:48.000Z | leads/migrations/0012_auto_20190521_0128.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-05-20 19:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leads', '0011_auto_20190520_1217'),
]
operations = [
migrations.AddField(
model_name='lead',
name='first_name',
... | 25.541667 | 89 | 0.595432 | 69 | 613 | 5.130435 | 0.57971 | 0.101695 | 0.129944 | 0.152542 | 0.508475 | 0.508475 | 0.310734 | 0.310734 | 0.310734 | 0.310734 | 0 | 0.084282 | 0.28385 | 613 | 23 | 90 | 26.652174 | 0.722096 | 0.073409 | 0 | 0.352941 | 1 | 0 | 0.130742 | 0.040636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d146ad7b735919c96c63ca899f284a422b94a05 | 7,406 | py | Python | ansys/dpf/core/operators/math/add_fc.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 18 | 2021-10-16T10:38:29.000Z | 2022-03-29T11:26:42.000Z | ansys/dpf/core/operators/math/add_fc.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 79 | 2021-10-11T23:18:54.000Z | 2022-03-29T14:53:14.000Z | ansys/dpf/core/operators/math/add_fc.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 5 | 2021-11-29T18:35:37.000Z | 2022-03-16T16:49:21.000Z | """
add_fc
===============
Autogenerated DPF operator classes.
"""
from warnings import warn
from ansys.dpf.core.dpf_operator import Operator
from ansys.dpf.core.inputs import Input, _Inputs
from ansys.dpf.core.outputs import Output, _Outputs
from ansys.dpf.core.operators.specification import PinSpecification, Specific... | 32.340611 | 90 | 0.591007 | 779 | 7,406 | 5.406932 | 0.16303 | 0.087369 | 0.02849 | 0.029915 | 0.537037 | 0.480532 | 0.447293 | 0.418566 | 0.401947 | 0.401947 | 0 | 0.011592 | 0.301107 | 7,406 | 228 | 91 | 32.482456 | 0.802164 | 0.44518 | 0 | 0.397727 | 1 | 0 | 0.11127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.056818 | 0 | 0.284091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d15860238c72c1cb7074178d1db48f26a5c4c75 | 8,665 | py | Python | scripts/gazebo_move_object.py | RCPRG-ros-pkg/rcprg_gazebo_utils | d50151280f430d1b0894b12beb4071906ac726ff | [
"BSD-3-Clause"
] | null | null | null | scripts/gazebo_move_object.py | RCPRG-ros-pkg/rcprg_gazebo_utils | d50151280f430d1b0894b12beb4071906ac726ff | [
"BSD-3-Clause"
] | null | null | null | scripts/gazebo_move_object.py | RCPRG-ros-pkg/rcprg_gazebo_utils | d50151280f430d1b0894b12beb4071906ac726ff | [
"BSD-3-Clause"
] | 1 | 2022-02-08T14:36:16.000Z | 2022-02-08T14:36:16.000Z | #!/usr/bin/env python
## Provides interactive 6D pose marker and allows moving object in Gazebo.
# @ingroup utilities
# @file gazebo_move_object.py
# @namespace scripts.gazebo_move_object Provides interactive 6D pose marker and allows moving object in Gazebo
# Copyright (c) 2017, Robot Control and Pattern Recognition... | 42.47549 | 127 | 0.698211 | 1,110 | 8,665 | 5.287387 | 0.268468 | 0.036804 | 0.03067 | 0.019083 | 0.385074 | 0.280286 | 0.242801 | 0.223377 | 0.223377 | 0.212813 | 0 | 0.015103 | 0.205309 | 8,665 | 203 | 128 | 42.684729 | 0.837206 | 0.227928 | 0 | 0.101449 | 0 | 0 | 0.05893 | 0.02285 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.123188 | null | null | 0.050725 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d1adcf9576413e99c39f705340235365fb3ff9b | 29,251 | py | Python | api/cueSearch/elasticSearch/elastic_search_indexing.py | cuebook/CueSearch | 8bf047de273b27bba41b8bf4e266aac1eee7f81a | [
"Apache-2.0"
] | 3 | 2022-02-10T17:00:19.000Z | 2022-03-29T14:31:25.000Z | api/cueSearch/elasticSearch/elastic_search_indexing.py | cuebook/CueSearch | 8bf047de273b27bba41b8bf4e266aac1eee7f81a | [
"Apache-2.0"
] | null | null | null | api/cueSearch/elasticSearch/elastic_search_indexing.py | cuebook/CueSearch | 8bf047de273b27bba41b8bf4e266aac1eee7f81a | [
"Apache-2.0"
] | null | null | null | import os
import time
import logging
from typing import List, Dict
from collections import deque
# from search import app
from elasticsearch import Elasticsearch
from elasticsearch.helpers import parallel_bulk
from datetime import datetime
# from config import ELASTICSEARCH_URL
import threading
from .utils import Uti... | 41.025245 | 140 | 0.487607 | 1,945 | 29,251 | 7.234961 | 0.141902 | 0.029136 | 0.047328 | 0.017197 | 0.711981 | 0.685972 | 0.673039 | 0.664937 | 0.659821 | 0.647385 | 0 | 0.002515 | 0.415541 | 29,251 | 712 | 141 | 41.082865 | 0.820601 | 0.078459 | 0 | 0.636364 | 0 | 0 | 0.206507 | 0.03114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024955 | false | 0.00713 | 0.023173 | 0 | 0.071301 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d1cdb8c16bb2b3f1d6f22088415125ae731aadd | 1,510 | py | Python | scripts/plot.py | dfvella/vtol | a4dfca2c29cae653156f2681d58ba6c83d3639f3 | [
"MIT"
] | null | null | null | scripts/plot.py | dfvella/vtol | a4dfca2c29cae653156f2681d58ba6c83d3639f3 | [
"MIT"
] | null | null | null | scripts/plot.py | dfvella/vtol | a4dfca2c29cae653156f2681d58ba6c83d3639f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import matplotlib.pyplot as plt
try:
filename = sys.argv[1]
except IndexError:
print('error: data file not specified')
exit(1)
#response = [ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 ]
#response = [ 0.2, 0.2, 0.2, 0.2, 0.1, 0.05, 0.02, 0.02, 0.01, 0.0 ]
#response... | 23.968254 | 79 | 0.541722 | 274 | 1,510 | 2.985401 | 0.310219 | 0.102689 | 0.139364 | 0.171149 | 0.118582 | 0.101467 | 0.101467 | 0.090465 | 0.090465 | 0.090465 | 0 | 0.11121 | 0.255629 | 1,510 | 62 | 80 | 24.354839 | 0.616548 | 0.159603 | 0 | 0.088889 | 0 | 0 | 0.058591 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0.022222 | false | 0 | 0.044444 | 0 | 0.088889 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d263e5b201c53646dfb63b01b0b12af6c504dd2 | 9,027 | py | Python | components/homme/scripts_for_paper/dictionaries.py | cjvogl/E3SM | d8990bc2efda76b6f9096f989eed46bd3ab87463 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | 1 | 2019-12-11T16:41:13.000Z | 2019-12-11T16:41:13.000Z | components/homme/scripts_for_paper/dictionaries.py | cjvogl/E3SM | d8990bc2efda76b6f9096f989eed46bd3ab87463 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/homme/scripts_for_paper/dictionaries.py | cjvogl/E3SM | d8990bc2efda76b6f9096f989eed46bd3ab87463 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | from netCDF4 import Dataset
import glob
# This is meant to be an all-inclusive list of possible methods
methodDict = {'KGU35-native': 5,
'ARS232-native': 7,
'KGU35': 21,
'ARS232': 22,
'DBM453': 23,
'ARS222': 24,
'ARS233': 25,
... | 34.719231 | 101 | 0.519442 | 921 | 9,027 | 5.054289 | 0.237785 | 0.032223 | 0.016756 | 0.01826 | 0.628357 | 0.603222 | 0.595704 | 0.595704 | 0.595704 | 0.595704 | 0 | 0.062219 | 0.334109 | 9,027 | 259 | 102 | 34.853282 | 0.712194 | 0.089842 | 0 | 0.517391 | 0 | 0 | 0.187355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008696 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d31fb36bbc127eece967cc6d7bfbeedbbe21933 | 225,425 | pyt | Python | LinkedDataConnector.pyt | gengchenmai/esri-linked-data-connector | bd68a3526dae77f221d60d04a5dbb96b2e456407 | [
"Apache-2.0"
] | 2 | 2020-02-18T06:35:51.000Z | 2020-07-21T12:57:54.000Z | LinkedDataConnector.pyt | gengchenmai/esri-linked-data-connector | bd68a3526dae77f221d60d04a5dbb96b2e456407 | [
"Apache-2.0"
] | null | null | null | LinkedDataConnector.pyt | gengchenmai/esri-linked-data-connector | bd68a3526dae77f221d60d04a5dbb96b2e456407 | [
"Apache-2.0"
] | 2 | 2020-06-17T13:51:39.000Z | 2020-08-28T00:01:29.000Z | import arcpy
import os
import json
import requests
import re
import os
import collections
import datetime
import numpy
from sets import Set
from collections import OrderedDict
from collections import defaultdict
from collections import namedtuple
from decimal import Decimal
from arcpy import env
class ... | 43.417758 | 269 | 0.708595 | 20,864 | 225,425 | 7.570648 | 0.056748 | 0.011301 | 0.006293 | 0.005166 | 0.693582 | 0.666086 | 0.631431 | 0.595768 | 0.571977 | 0.553332 | 0 | 0.010322 | 0.185139 | 225,425 | 5,191 | 270 | 43.426122 | 0.849573 | 0.293534 | 0 | 0.584185 | 0 | 0.011247 | 0.18592 | 0.00846 | 0.000341 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005112 | null | null | 0.00409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d3598ee4e5aabfea09ea77913d15276ad388685 | 4,904 | py | Python | neural_seq/utils.py | Dragon-hxl/LARC | c9f13f110a56aa2ecf837e464745375d9521409e | [
"MIT"
] | null | null | null | neural_seq/utils.py | Dragon-hxl/LARC | c9f13f110a56aa2ecf837e464745375d9521409e | [
"MIT"
] | null | null | null | neural_seq/utils.py | Dragon-hxl/LARC | c9f13f110a56aa2ecf837e464745375d9521409e | [
"MIT"
] | null | null | null | import argparse
def commandLineArgs():
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument("--restrict-types",
dest="restrict_types",
default=False,
action="store_true")
parser.add_argument("--tes... | 40.866667 | 116 | 0.418434 | 411 | 4,904 | 4.836983 | 0.262774 | 0.122233 | 0.230885 | 0.096579 | 0.501006 | 0.400905 | 0.360161 | 0.181087 | 0 | 0 | 0 | 0.012186 | 0.48124 | 4,904 | 119 | 117 | 41.210084 | 0.769261 | 0.010196 | 0 | 0.418803 | 0 | 0 | 0.198063 | 0.009068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008547 | false | 0 | 0.008547 | 0 | 0.025641 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
2d359bca45bc6e6f2073a2891a9bc99f4d08e0df | 7,168 | py | Python | pypillometry/fakedata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 13 | 2020-07-01T02:00:23.000Z | 2021-11-18T22:49:54.000Z | pypillometry/fakedata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 17 | 2020-06-24T10:26:09.000Z | 2022-01-27T13:36:10.000Z | pypillometry/fakedata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 5 | 2020-06-30T20:03:36.000Z | 2022-01-27T13:22:34.000Z | """
fakedata.py
====================================
Generate artificial pupil-data.
"""
import numpy as np
import scipy.stats as stats
from .baseline import *
from .pupil import *
def generate_pupil_data(event_onsets, fs=1000, pad=5000, baseline_lowpass=0.2,
evoked_response_perc=0.02, respon... | 37.726316 | 130 | 0.667411 | 1,071 | 7,168 | 4.331466 | 0.222222 | 0.030826 | 0.013796 | 0.008623 | 0.339728 | 0.324639 | 0.311921 | 0.295753 | 0.251347 | 0.226342 | 0 | 0.022894 | 0.220006 | 7,168 | 189 | 131 | 37.925926 | 0.806832 | 0.493722 | 0 | 0.15873 | 1 | 0 | 0.009855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0.031746 | 0.063492 | 0 | 0.126984 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d373b4ad5acb25372312662f936a4b9444821b2 | 608 | py | Python | Day 5/how_about_a_nice_game_of_chess_1.py | Shunderpooch/AdventOfCode2016 | 9651c829e2c1906fac82de1ec19e46561543362d | [
"MIT"
] | null | null | null | Day 5/how_about_a_nice_game_of_chess_1.py | Shunderpooch/AdventOfCode2016 | 9651c829e2c1906fac82de1ec19e46561543362d | [
"MIT"
] | null | null | null | Day 5/how_about_a_nice_game_of_chess_1.py | Shunderpooch/AdventOfCode2016 | 9651c829e2c1906fac82de1ec19e46561543362d | [
"MIT"
] | null | null | null | """
Arthur Dooner
Advent of Code Day 5
Challenge 1
"""
import sys
import hashlib
def md5_func(string):
md5result = hashlib.md5()
md5result.update(string.encode('utf-8'))
return md5result.hexdigest()
INTEGER_ID = 0
PASSWORD = ""
if len(sys.argv) < 2:
print("Please pass the puzzle input as a command l... | 20.266667 | 69 | 0.661184 | 91 | 608 | 4.318681 | 0.571429 | 0.091603 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051867 | 0.207237 | 608 | 30 | 70 | 20.266667 | 0.763485 | 0.075658 | 0 | 0 | 0 | 0 | 0.171171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.263158 | 0.105263 | 0 | 0.210526 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d376984cf7521c9d0b8668970e457c5497e11d2 | 1,204 | py | Python | estudiantes/migrations/0008_auto_20180411_2345.py | jlopez0591/SIGIA | e857e2273daa43ab64fa78df254275af2dbcc2a5 | [
"MIT"
] | null | null | null | estudiantes/migrations/0008_auto_20180411_2345.py | jlopez0591/SIGIA | e857e2273daa43ab64fa78df254275af2dbcc2a5 | [
"MIT"
] | 7 | 2020-02-12T00:42:15.000Z | 2022-03-11T23:23:48.000Z | estudiantes/migrations/0008_auto_20180411_2345.py | jlopez0591/SIGIA | e857e2273daa43ab64fa78df254275af2dbcc2a5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-04-12 04:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('estudiantes', '0007_auto_20180411_2100'),
]
operat... | 37.625 | 175 | 0.675249 | 129 | 1,204 | 6.124031 | 0.410853 | 0.050633 | 0.070886 | 0.111392 | 0.626582 | 0.626582 | 0.436709 | 0.436709 | 0.436709 | 0.436709 | 0 | 0.034519 | 0.20598 | 1,204 | 31 | 176 | 38.83871 | 0.791841 | 0.056478 | 0 | 0.375 | 1 | 0 | 0.214475 | 0.090026 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d3b855417b5b01166e9c53aefdcacbf633fd636 | 370 | py | Python | PythonExercicios/ex005.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex005.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex005.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | # Faça um programa que leia um número inteiro e mostre na tela o seu sucessor e seu antecessor
num = int(input('Digite um número inteiro: '))
ant = num - 1
suc = num + 1
print('O sucessor de {} é {} e seu antecessor é {}'.format(num, suc, ant))
# Resolução com somente uma variável:
# print('O sucessor de {} é {} e se... | 37 | 94 | 0.667568 | 64 | 370 | 3.859375 | 0.484375 | 0.064777 | 0.17004 | 0.129555 | 0.331984 | 0.331984 | 0.331984 | 0.331984 | 0.331984 | 0.331984 | 0 | 0.013378 | 0.191892 | 370 | 9 | 95 | 41.111111 | 0.812709 | 0.57027 | 0 | 0 | 0 | 0 | 0.445161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d3ce3e54e71945a04f010ae135aa8c962618bc4 | 369 | py | Python | modules/audio/settings.py | mlc2307/pyradio | 94b3705faea4d019f3f62efb49aa4f502c1a556e | [
"MIT"
] | null | null | null | modules/audio/settings.py | mlc2307/pyradio | 94b3705faea4d019f3f62efb49aa4f502c1a556e | [
"MIT"
] | null | null | null | modules/audio/settings.py | mlc2307/pyradio | 94b3705faea4d019f3f62efb49aa4f502c1a556e | [
"MIT"
] | null | null | null | """
Default audio settings.
"""
import numpy as np
from modules.socket.settings import PACKAGE_SIZE
# Number of sound channels.
CHANNELS = 2
# The size of the streaming buffer, that needs to fit into the socket buffer.
CHUNK_SIZE = PACKAGE_SIZE // CHANNELS // np.dtype(np.int16).itemsize
# Sound device frame rate. ... | 21.705882 | 77 | 0.742547 | 59 | 369 | 4.576271 | 0.677966 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032468 | 0.165312 | 369 | 16 | 78 | 23.0625 | 0.844156 | 0.474255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2d404ddffb52c313e2728aba0594c50a8c449448 | 2,231 | py | Python | parsl/dataflow/states.py | cylondata/parsl | 00ff9372bd841dafef8a0b3566c79ffe68f0e367 | [
"Apache-2.0"
] | 323 | 2017-07-28T21:31:27.000Z | 2022-03-05T13:06:05.000Z | parsl/dataflow/states.py | cylondata/parsl | 00ff9372bd841dafef8a0b3566c79ffe68f0e367 | [
"Apache-2.0"
] | 1,286 | 2017-06-01T16:50:00.000Z | 2022-03-31T16:45:14.000Z | parsl/dataflow/states.py | cylondata/parsl | 00ff9372bd841dafef8a0b3566c79ffe68f0e367 | [
"Apache-2.0"
] | 113 | 2017-06-03T11:38:40.000Z | 2022-03-26T16:43:05.000Z | from enum import IntEnum
class States(IntEnum):
"""Enumerates the states a parsl task may be in.
These states occur inside the task record for a task inside
a `DataFlowKernel` and in the monitoring database.
In a single successful task execution, tasks will progress in this
sequence:
pendin... | 32.808824 | 83 | 0.702824 | 344 | 2,231 | 4.508721 | 0.427326 | 0.022566 | 0.027079 | 0.015474 | 0.096712 | 0.078659 | 0.038685 | 0 | 0 | 0 | 0 | 0.006395 | 0.229045 | 2,231 | 67 | 84 | 33.298507 | 0.895349 | 0.235769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
74254b7b90cfc0efc1bfc67b61af489b33a9bc98 | 862 | py | Python | data_conversion_subsystem/config/config.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | 2 | 2018-07-01T20:36:46.000Z | 2019-11-01T22:47:06.000Z | data_conversion_subsystem/config/config.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | 1 | 2021-06-10T20:28:53.000Z | 2021-06-10T20:28:53.000Z | data_conversion_subsystem/config/config.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | null | null | null | from os import environ
from utilities.util import get_config
DCS_CONFIG = get_config(__file__)
DCS_CONFIG.update(get_config(__file__.replace('config.py', 'docker_config.py')) if environ.get('DOCKER_MODE', False)
else get_config(__file__.replace('config.py', 'dev_config.py')))
DCS_CONFIG['DATA_CONVERSION_SUBSYS... | 66.307692 | 116 | 0.778422 | 119 | 862 | 5.058824 | 0.277311 | 0.179402 | 0.086379 | 0.152824 | 0.760797 | 0.760797 | 0.667774 | 0.667774 | 0.667774 | 0.378738 | 0 | 0.002577 | 0.099768 | 862 | 12 | 117 | 71.833333 | 0.773196 | 0 | 0 | 0.181818 | 0 | 0 | 0.433875 | 0.320186 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74392be75a25359b077926e8e16806629ba266d4 | 3,693 | py | Python | blackduck/Reporting.py | rishianand06/hub-rest-api-python | 06ff0136b5e8f54a8947b70eca6fd26d72a9c6ea | [
"Apache-2.0"
] | null | null | null | blackduck/Reporting.py | rishianand06/hub-rest-api-python | 06ff0136b5e8f54a8947b70eca6fd26d72a9c6ea | [
"Apache-2.0"
] | null | null | null | blackduck/Reporting.py | rishianand06/hub-rest-api-python | 06ff0136b5e8f54a8947b70eca6fd26d72a9c6ea | [
"Apache-2.0"
] | null | null | null | import logging
import requests
import json
from operator import itemgetter
import urllib.parse
from .Utils import object_id
logger = logging.getLogger(__name__)
valid_categories = ['VERSION','CODE_LOCATIONS','COMPONENTS','SECURITY','FILES', 'ATTACHMENTS', 'CRYPTO_ALGORITHMS', 'PROJECT_VERSION_CUSTOM_FIELDS', 'BOM_CO... | 43.964286 | 207 | 0.721094 | 458 | 3,693 | 5.558952 | 0.30131 | 0.021995 | 0.023566 | 0.021995 | 0.220738 | 0.141006 | 0.083661 | 0.045954 | 0.032207 | 0 | 0 | 0.001288 | 0.158949 | 3,693 | 83 | 208 | 44.493976 | 0.818416 | 0.090983 | 0 | 0.080645 | 0 | 0 | 0.271039 | 0.074873 | 0 | 0 | 0 | 0.012048 | 0.064516 | 1 | 0.080645 | false | 0 | 0.096774 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
743bf38636435755c9ffb7ddc1a07e96b2063afd | 3,346 | py | Python | server/adb.py | narata/answerot_new_1 | 65d3dee0f4a1f0b743b17b82fbaf17479052f6be | [
"Apache-2.0"
] | null | null | null | server/adb.py | narata/answerot_new_1 | 65d3dee0f4a1f0b743b17b82fbaf17479052f6be | [
"Apache-2.0"
] | null | null | null | server/adb.py | narata/answerot_new_1 | 65d3dee0f4a1f0b743b17b82fbaf17479052f6be | [
"Apache-2.0"
] | null | null | null |
import subprocess,re
import ConfigParser
def set_config(device, sx, sy, ci, ck):
device_info = get_device()
result = {
"device": "",
"sx": "",
"sy": "",
"client_id": "",
"client_secret": "",
"msg": "",
"device_info": device_info,
}
cf = ConfigPa... | 28.355932 | 110 | 0.50269 | 417 | 3,346 | 3.959233 | 0.211031 | 0.059964 | 0.039976 | 0.054512 | 0.384615 | 0.261054 | 0.188976 | 0.188976 | 0.136887 | 0.136887 | 0 | 0.007114 | 0.327854 | 3,346 | 118 | 111 | 28.355932 | 0.72699 | 0 | 0 | 0.427273 | 0 | 0.018182 | 0.235804 | 0.038852 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.018182 | null | null | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7441bd95b6465fa3864a116467ce2c5d66e46a23 | 283 | py | Python | ged4py/__init__.py | haney/ged4py | d4ae4baa030caa23961fd1c15298f9e3a225c67d | [
"MIT"
] | 1 | 2022-01-06T22:56:38.000Z | 2022-01-06T22:56:38.000Z | ged4py/__init__.py | haney/ged4py | d4ae4baa030caa23961fd1c15298f9e3a225c67d | [
"MIT"
] | null | null | null | ged4py/__init__.py | haney/ged4py | d4ae4baa030caa23961fd1c15298f9e3a225c67d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for GEDCOM parser for Python."""
__author__ = """Andy Salnikov"""
__email__ = 'ged4py@py-dev.com'
__version__ = '0.1.10'
from . import codecs # noqa: F401, needed to register ANSEL codec
from .parser import GedcomReader # noqa: F401
| 25.727273 | 66 | 0.689046 | 39 | 283 | 4.692308 | 0.846154 | 0.087432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.162544 | 283 | 10 | 67 | 28.3 | 0.721519 | 0.438163 | 0 | 0 | 0 | 0 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
74420935d01b554c5fcec41d054c6daf42c2218a | 1,600 | py | Python | src/auth.py | 4shub/weExist | 5b3187ecdd11ee079b3a0ce85bd1a1aeee242b16 | [
"MIT"
] | null | null | null | src/auth.py | 4shub/weExist | 5b3187ecdd11ee079b3a0ce85bd1a1aeee242b16 | [
"MIT"
] | null | null | null | src/auth.py | 4shub/weExist | 5b3187ecdd11ee079b3a0ce85bd1a1aeee242b16 | [
"MIT"
] | null | null | null | """
Original: Shelley Pham
New Author: Shubham Naik
"""
from __future__ import print_function
import httplib2
import os
import re
import time
import base64
from apiclient import discovery
from apiclient import errors
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
... | 27.118644 | 75 | 0.719375 | 194 | 1,600 | 5.747423 | 0.458763 | 0.021525 | 0.034081 | 0.041256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00624 | 0.19875 | 1,600 | 58 | 76 | 27.586207 | 0.863495 | 0.05875 | 0 | 0 | 0 | 0 | 0.094126 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.363636 | 0 | 0.431818 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7445bb6b5d5d54d39878d1c0db391f23d5030f90 | 396 | py | Python | picky/wsgi.py | Wilfred/Picky | 48c40ad3e5bcb531c76439384094b1acfb174824 | [
"Python-2.0"
] | 2 | 2018-10-18T00:02:21.000Z | 2020-03-01T07:11:34.000Z | picky/wsgi.py | Wilfred/Picky | 48c40ad3e5bcb531c76439384094b1acfb174824 | [
"Python-2.0"
] | null | null | null | picky/wsgi.py | Wilfred/Picky | 48c40ad3e5bcb531c76439384094b1acfb174824 | [
"Python-2.0"
] | null | null | null | import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "picky.settings")
# This application object is used by the development server
# as well as any WSGI server configured to use this file.
from django.core.wsgi import get_wsgi_application
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
from ... | 33 | 68 | 0.820707 | 59 | 396 | 5.372881 | 0.610169 | 0.063091 | 0.113565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 396 | 11 | 69 | 36 | 0.900568 | 0.285354 | 0 | 0 | 0 | 0 | 0.128571 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
744740c25492cd193acb8f86ba79136bde1411c5 | 594 | py | Python | label_maker/utils.py | cgoodier/label-maker | 4e8774ff2790234352a78de82b92d762697a65d2 | [
"MIT"
] | 1 | 2021-03-21T13:37:46.000Z | 2021-03-21T13:37:46.000Z | label_maker/utils.py | cgoodier/label-maker | 4e8774ff2790234352a78de82b92d762697a65d2 | [
"MIT"
] | null | null | null | label_maker/utils.py | cgoodier/label-maker | 4e8774ff2790234352a78de82b92d762697a65d2 | [
"MIT"
] | null | null | null | """Provide utility functions"""
import numpy as np
def url(tile, imagery):
"""Return a tile url provided an imagery template and a tile"""
return imagery.replace('{x}', tile[0]).replace('{y}', tile[1]).replace('{z}', tile[2])
def class_match(ml_type, label, i):
"""Determine if a label matches a given clas... | 34.941176 | 90 | 0.638047 | 87 | 594 | 4.287356 | 0.563218 | 0.064343 | 0.053619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010593 | 0.205387 | 594 | 16 | 91 | 37.125 | 0.779661 | 0.222222 | 0 | 0 | 0 | 0 | 0.11435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
744966ab2f30b26d35cfd82483b84e8043c64525 | 2,702 | py | Python | vb_baseapp/admin/actions/basemodel_with_softdelete.py | vbyazilim/django-vb-baseapp | 83a62a9d7cb349351ea64aeeb616afe9a94cda5d | [
"MIT"
] | null | null | null | vb_baseapp/admin/actions/basemodel_with_softdelete.py | vbyazilim/django-vb-baseapp | 83a62a9d7cb349351ea64aeeb616afe9a94cda5d | [
"MIT"
] | 1 | 2021-10-30T16:44:15.000Z | 2021-10-30T16:44:15.000Z | vb_baseapp/admin/actions/basemodel_with_softdelete.py | vbyazilim/django-vb-baseapp | 83a62a9d7cb349351ea64aeeb616afe9a94cda5d | [
"MIT"
] | null | null | null | from django.contrib.admin import helpers
from django.contrib.admin.utils import model_ngettext
from django.core.exceptions import PermissionDenied
from django.template.response import TemplateResponse
from django.utils.translation import ugettext_lazy as _
from console import console
__all__ = ['recover_selected', 'h... | 37.013699 | 112 | 0.695041 | 315 | 2,702 | 5.625397 | 0.339683 | 0.045147 | 0.06772 | 0.035553 | 0.18623 | 0.164786 | 0.164786 | 0.164786 | 0.164786 | 0.164786 | 0 | 0.00374 | 0.208364 | 2,702 | 72 | 113 | 37.527778 | 0.824684 | 0.087713 | 0 | 0.137255 | 0 | 0 | 0.156404 | 0.018062 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.039216 | false | 0 | 0.117647 | 0 | 0.196078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7449e4cac17ed016fac5ca67316d8bffabed1d94 | 808 | py | Python | appname/mailers/teams.py | Dnida/Ignite | 38ac6042c9b16cdccf5ef066a1ee80b741b51a37 | [
"BSD-2-Clause"
] | 53 | 2017-12-12T06:58:25.000Z | 2022-03-24T17:58:37.000Z | appname/mailers/teams.py | Dnida/Ignite | 38ac6042c9b16cdccf5ef066a1ee80b741b51a37 | [
"BSD-2-Clause"
] | 144 | 2018-01-22T15:15:41.000Z | 2022-03-28T09:02:00.000Z | appname/mailers/teams.py | Dnida/Ignite | 38ac6042c9b16cdccf5ef066a1ee80b741b51a37 | [
"BSD-2-Clause"
] | 19 | 2017-12-12T07:04:14.000Z | 2022-03-23T00:20:00.000Z | from flask import render_template, url_for
from appname.mailers import Mailer
class InviteEmail(Mailer):
TEMPLATE = 'email/teams/invite.html'
def __init__(self, invite):
self.recipient = None
self.invite = invite
self.recipient_email = invite.invite_email or (invite.user and invite.us... | 35.130435 | 89 | 0.679455 | 105 | 808 | 5.057143 | 0.457143 | 0.112994 | 0.071563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001595 | 0.22401 | 808 | 22 | 90 | 36.727273 | 0.845295 | 0 | 0 | 0 | 0 | 0 | 0.10396 | 0.028465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
744cd6bb1eb26fbde0da3fa1db370c1066848b73 | 1,915 | py | Python | graphstar/tests/graph.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | graphstar/tests/graph.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | graphstar/tests/graph.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | import pytest
from graphstar import graph
@pytest.fixture(scope="function")
def g():
return graph.Graph()
@pytest.fixture
def n():
return graph.Node()
@pytest.fixture(scope="function")
def two_nodes(g):
n1 = g.make_node(1, 1)
n2 = g.make_node(2, 2)
return n1, n2
def test_get_node_by_id(g):
"""Test the nod... | 21.277778 | 56 | 0.710705 | 348 | 1,915 | 3.741379 | 0.20977 | 0.053763 | 0.0553 | 0.042243 | 0.408602 | 0.282642 | 0.215054 | 0.215054 | 0.215054 | 0.215054 | 0 | 0.037712 | 0.169191 | 1,915 | 89 | 57 | 21.516854 | 0.780641 | 0.203655 | 0 | 0.377358 | 0 | 0 | 0.010804 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 1 | 0.207547 | false | 0 | 0.037736 | 0.037736 | 0.301887 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
744eeaef10e5457895973e69731f2d0834acf4b0 | 30,350 | py | Python | __classes__/node.py | Ahuge/NukeParser | 97a37883f5ccf030da319d21c5f80cfd6113df49 | [
"MIT"
] | 24 | 2016-06-26T01:29:04.000Z | 2021-04-30T16:20:13.000Z | __classes__/node.py | Ahuge/NukeParser | 97a37883f5ccf030da319d21c5f80cfd6113df49 | [
"MIT"
] | 2 | 2021-10-13T23:12:06.000Z | 2022-01-17T21:30:00.000Z | __classes__/node.py | Ahuge/NukeParser | 97a37883f5ccf030da319d21c5f80cfd6113df49 | [
"MIT"
] | 2 | 2019-10-29T17:23:59.000Z | 2020-06-24T18:47:14.000Z | class Node(object):
def Class(self):
"""
self.Class() -> Class of node.
@return: Class of node.
"""
# raise NotImplementedError("This function is not written yet. Please put in an issue on the github page.")
return "%s(%r)" % (self.__class__, self.__dict__)
def ... | 45.776772 | 290 | 0.635848 | 4,121 | 30,350 | 4.664887 | 0.125455 | 0.020807 | 0.109238 | 0.140449 | 0.592072 | 0.579744 | 0.571369 | 0.558885 | 0.545672 | 0.537973 | 0 | 0.001109 | 0.286689 | 30,350 | 662 | 291 | 45.845921 | 0.886877 | 0.512718 | 0 | 0.490066 | 0 | 0 | 0.494641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.496689 | false | 0 | 0 | 0 | 0.509934 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7452e14d90ee89dce38e2b779f06bcdfbe502433 | 11,061 | py | Python | tests/test_admin.py | hongquan/django-improved-user | ae91086adf58aeca81d6e0fe1aeb4c7f3f4c2a77 | [
"BSD-2-Clause"
] | null | null | null | tests/test_admin.py | hongquan/django-improved-user | ae91086adf58aeca81d6e0fe1aeb4c7f3f4c2a77 | [
"BSD-2-Clause"
] | null | null | null | tests/test_admin.py | hongquan/django-improved-user | ae91086adf58aeca81d6e0fe1aeb4c7f3f4c2a77 | [
"BSD-2-Clause"
] | null | null | null | """Test Admin interface provided by Improved User"""
import os
import re
from django import VERSION as DjangoVersion
from django.contrib.admin.models import LogEntry
from django.contrib.auth import SESSION_KEY
from django.test import TestCase, override_settings
from django.test.utils import patch_logger
from django.ut... | 38.810526 | 79 | 0.610975 | 1,252 | 11,061 | 5.199681 | 0.211661 | 0.043779 | 0.025346 | 0.033794 | 0.403379 | 0.319662 | 0.282028 | 0.260369 | 0.254531 | 0.238863 | 0 | 0.008166 | 0.280354 | 11,061 | 284 | 80 | 38.947183 | 0.809673 | 0.126752 | 0 | 0.262009 | 0 | 0 | 0.162417 | 0.071346 | 0 | 0 | 0 | 0.003521 | 0.131004 | 1 | 0.065502 | false | 0.144105 | 0.061135 | 0 | 0.144105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7457d920cfc6444acc0e2d57941c84cbbc902130 | 370 | py | Python | metoo/db/redis.py | Kevin-Huang-NZ/fastapi_face_recognition | ef0811260a79c441816e007f1f9ca2a0597fc055 | [
"MIT"
] | null | null | null | metoo/db/redis.py | Kevin-Huang-NZ/fastapi_face_recognition | ef0811260a79c441816e007f1f9ca2a0597fc055 | [
"MIT"
] | null | null | null | metoo/db/redis.py | Kevin-Huang-NZ/fastapi_face_recognition | ef0811260a79c441816e007f1f9ca2a0597fc055 | [
"MIT"
] | null | null | null | from aioredis import Redis, from_url
from core.config import settings
async def init_redis_pool() -> Redis:
if settings.USE_REDIS_SENTINEL:
pass
else:
redis = await from_url(
settings.REDIS_URL,
password=settings.REDIS_PASSWORD,
encoding="utf-8",
... | 23.125 | 45 | 0.618919 | 44 | 370 | 5 | 0.545455 | 0.177273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.310811 | 370 | 16 | 46 | 23.125 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.013477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.