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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa41ceb73f01b6ed99614aa176053160f3a545b8 | 95 | py | Python | flask_api/celery_tasks/sms/constants.py | FanLgchen/Celery- | 409a609f476a84c421f718b9f1266c822bef1366 | [
"MIT"
] | 2 | 2020-06-18T09:39:13.000Z | 2020-10-05T03:11:33.000Z | flask_api/celery_tasks/sms/constants.py | FanLgchen/Celery- | 409a609f476a84c421f718b9f1266c822bef1366 | [
"MIT"
] | null | null | null | flask_api/celery_tasks/sms/constants.py | FanLgchen/Celery- | 409a609f476a84c421f718b9f1266c822bef1366 | [
"MIT"
] | null | null | null | # 短信签名
SMS_SIGN = 'demo'
# 短信验证码模板ID
SMS_VERIFICATION_CODE_TEMPLATE_ID = 'SMS_151231777'
| 15.833333 | 52 | 0.747368 | 12 | 95 | 5.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113924 | 0.168421 | 95 | 5 | 53 | 19 | 0.708861 | 0.147368 | 0 | 0 | 0 | 0 | 0.232877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa47561e4fca5e7d0a34320e88d5fab9b997b427 | 4,929 | py | Python | tests/test_ERC721_Pausable.py | georgercarder/cairo-contracts | b661e1b65686820fa020c47c3c29a4951bb04547 | [
"MIT"
] | null | null | null | tests/test_ERC721_Pausable.py | georgercarder/cairo-contracts | b661e1b65686820fa020c47c3c29a4951bb04547 | [
"MIT"
] | null | null | null | tests/test_ERC721_Pausable.py | georgercarder/cairo-contracts | b661e1b65686820fa020c47c3c29a4951bb04547 | [
"MIT"
] | null | null | null | import pytest
import asyncio
from starkware.starknet.testing.starknet import Starknet
from utils import Signer, str_to_felt, assert_revert
signer = Signer(123456789987654321)
# bools (for readability)
false = 0
true = 1
# random uint256 tokenIDs
first_token_id = (5042, 0)
second_token_id = (7921, 1)
third_token_id ... | 27.082418 | 86 | 0.64435 | 519 | 4,929 | 5.863198 | 0.183044 | 0.167598 | 0.12422 | 0.128163 | 0.734473 | 0.701939 | 0.669077 | 0.667433 | 0.66579 | 0.645744 | 0 | 0.045791 | 0.260093 | 4,929 | 181 | 87 | 27.232044 | 0.788593 | 0.04788 | 0 | 0.526718 | 0 | 0 | 0.070115 | 0.026507 | 0 | 0 | 0.002565 | 0 | 0.076336 | 1 | 0.007634 | false | 0 | 0.030534 | 0.007634 | 0.053435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa4b58e784df0a2ddab274bac344bf702ab449fb | 540 | py | Python | setup.py | ianhalpern/python-payment-processor | 64fb785373082da19a572097b738da4dd71bd985 | [
"MIT"
] | 12 | 2016-11-11T10:31:25.000Z | 2022-03-25T12:51:22.000Z | setup.py | ianhalpern/python-payment-processor | 64fb785373082da19a572097b738da4dd71bd985 | [
"MIT"
] | null | null | null | setup.py | ianhalpern/python-payment-processor | 64fb785373082da19a572097b738da4dd71bd985 | [
"MIT"
] | 3 | 2017-09-06T15:06:29.000Z | 2019-03-22T14:20:31.000Z | #!/usr/bin/python
from distutils.core import setup
setup(
name = 'payment_processor',
version = '0.2.0',
description = 'A simple payment gateway api wrapper',
author = 'Ian Halpern',
author_email = 'ian@ian-halpern.com',
url = 'https://launchpad.net/python-payment',
download_url = '... | 27 | 65 | 0.681481 | 61 | 540 | 5.901639 | 0.57377 | 0.266667 | 0.094444 | 0.111111 | 0.227778 | 0.227778 | 0.227778 | 0 | 0 | 0 | 0 | 0.006757 | 0.177778 | 540 | 19 | 66 | 28.421053 | 0.804054 | 0.02963 | 0 | 0 | 0 | 0 | 0.552581 | 0.195029 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3af9c8ef389a9995607211ee0514625e68a7c702 | 189 | py | Python | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/apps/profiles/choices.py | powerdefy/cookiecutter-django-rest | 8841d7c959e588f34f260405af167206eaf47376 | [
"MIT"
] | null | null | null | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/apps/profiles/choices.py | powerdefy/cookiecutter-django-rest | 8841d7c959e588f34f260405af167206eaf47376 | [
"MIT"
] | null | null | null | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/apps/profiles/choices.py | powerdefy/cookiecutter-django-rest | 8841d7c959e588f34f260405af167206eaf47376 | [
"MIT"
] | null | null | null | from django.db import models
class Role(models.IntegerChoices):
ADMIN = 0, 'Admin'
GENERAL = 1, 'General'
GUEST = 2, 'Guest'
ACCOUNTING = 3, 'Accounting'
IT = 4, 'IT'
| 18.9 | 34 | 0.613757 | 24 | 189 | 4.833333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.253968 | 189 | 9 | 35 | 21 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.153439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3afe29425779a97835f8aa292d16b97d3ebe99af | 13,194 | py | Python | src/glados/es/ws2es/mappings_skeletons/es_chembl_tissue_mapping.py | chembl/GLaDOS | 044ed5f927b45dd5033c9383085ad5922c61f331 | [
"Apache-2.0"
] | 33 | 2017-09-21T11:38:44.000Z | 2022-03-19T06:41:47.000Z | src/glados/es/ws2es/mappings_skeletons/es_chembl_tissue_mapping.py | chembl/GLaDOS | 044ed5f927b45dd5033c9383085ad5922c61f331 | [
"Apache-2.0"
] | 739 | 2016-08-22T09:32:17.000Z | 2022-03-22T09:29:32.000Z | src/glados/es/ws2es/mappings_skeletons/es_chembl_tissue_mapping.py | chembl/GLaDOS | 044ed5f927b45dd5033c9383085ad5922c61f331 | [
"Apache-2.0"
] | 5 | 2020-06-12T01:51:41.000Z | 2021-09-17T10:32:53.000Z | # Elastic search mapping definition for the Molecule entity
from glados.es.ws2es.es_util import DefaultMappings
# Shards size - can be overridden from the default calculated value here
# shards = 3,
replicas = 1
analysis = DefaultMappings.COMMON_ANALYSIS
mappings = \
{
'properties':
{
... | 66.301508 | 120 | 0.488176 | 796 | 13,194 | 8.050251 | 0.645729 | 0.029963 | 0.004682 | 0.020599 | 0.071161 | 0.071161 | 0.039326 | 0.008115 | 0 | 0 | 0 | 0.352382 | 0.417766 | 13,194 | 198 | 121 | 66.636364 | 0.481776 | 0.573821 | 0 | 0.259259 | 0 | 0 | 0.09695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012346 | 0 | 0.012346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d71c193d332979ad562f8d1039609bbf9888baf0 | 1,366 | py | Python | tmi/api/io.py | fish2000/TMI | e849545644b99c132ecde24427531edd45213614 | [
"BSD-3-Clause"
] | null | null | null | tmi/api/io.py | fish2000/TMI | e849545644b99c132ecde24427531edd45213614 | [
"BSD-3-Clause"
] | null | null | null | tmi/api/io.py | fish2000/TMI | e849545644b99c132ecde24427531edd45213614 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
from enum import unique
import sys
from clu.enums import AliasingEnum, alias
from clu.exporting import Exporter
exporter = Exporter(path=__file__)
export = exporter.decorator()
@unique
class Status(AliasingEnum):
DISCARD = 200
RE... | 22.393443 | 65 | 0.614934 | 162 | 1,366 | 4.864198 | 0.512346 | 0.02665 | 0.038071 | 0.053299 | 0.068528 | 0.068528 | 0 | 0 | 0 | 0 | 0 | 0.032393 | 0.299414 | 1,366 | 60 | 66 | 22.766667 | 0.791014 | 0.199122 | 0 | 0.081081 | 0 | 0 | 0.007394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0.081081 | 0.135135 | 0.027027 | 0.648649 | 0.027027 | 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 | 1 | 0 | 0 | 2 |
d722d3dbdd851da32d3a6d5f6fb12b40e48dbb16 | 227 | py | Python | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null | def factorial(num):
# 재귀함수를 세울 때는 탈출 조건부터 찾는다.
if num <= 1:
return 1
return factorial(num - 1) * num
def main():
print(factorial(5))
# return 120
if __name__ == "__main__":
main() | 17.461538 | 36 | 0.53304 | 30 | 227 | 3.766667 | 0.566667 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047297 | 0.348018 | 227 | 13 | 37 | 17.461538 | 0.716216 | 0.154185 | 0 | 0 | 0 | 0 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d728c55b4f2bb7d8f35b667f6a550393bb16970f | 16,046 | py | Python | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class InternalHockey... | 37.316279 | 325 | 0.680294 | 1,798 | 16,046 | 5.804227 | 0.092325 | 0.051361 | 0.202376 | 0.165581 | 0.732081 | 0.655711 | 0.612112 | 0.577808 | 0.489747 | 0.403603 | 0 | 0.018409 | 0.251838 | 16,046 | 429 | 326 | 37.403263 | 0.850895 | 0.44441 | 0 | 0.100559 | 0 | 0 | 0.095488 | 0.04053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167598 | false | 0 | 0.01676 | 0 | 0.318436 | 0.011173 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d72b1da8920d5a9113865f0b4d64b0fa86860726 | 2,421 | py | Python | src/dispatch/incident_priority/service.py | mclueppers/dispatch | b9e524ca10e5b2e95490b388db61c58e79e975e2 | [
"Apache-2.0"
] | 1 | 2022-02-23T02:42:10.000Z | 2022-02-23T02:42:10.000Z | src/dispatch/incident_priority/service.py | mclueppers/dispatch | b9e524ca10e5b2e95490b388db61c58e79e975e2 | [
"Apache-2.0"
] | 1 | 2021-04-30T21:36:14.000Z | 2021-04-30T21:36:14.000Z | src/dispatch/incident_priority/service.py | AlexaKelley/dispatch | b46d8416a0e4ec9badb76f6f3d1765c6093203f8 | [
"Apache-2.0"
] | 1 | 2021-04-08T10:02:57.000Z | 2021-04-08T10:02:57.000Z | from typing import List, Optional
from fastapi.encoders import jsonable_encoder
from sqlalchemy.sql.expression import true
from .models import IncidentPriority, IncidentPriorityCreate, IncidentPriorityUpdate
def get(*, db_session, incident_priority_id: int) -> Optional[IncidentPriority]:
"""Returns an incident ... | 35.602941 | 100 | 0.748451 | 279 | 2,421 | 6.250896 | 0.225806 | 0.229358 | 0.061927 | 0.103211 | 0.565367 | 0.497706 | 0.386468 | 0.283257 | 0.283257 | 0.283257 | 0 | 0 | 0.149525 | 2,421 | 67 | 101 | 36.134328 | 0.847013 | 0.145394 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.102564 | 0 | 0.487179 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d72ddd086f69dbbd5f9fa1618ec9586c8a562c0f | 591 | py | Python | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 24 | 2015-01-03T00:47:06.000Z | 2020-11-27T14:58:32.000Z | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 4 | 2015-03-14T14:00:21.000Z | 2020-12-30T07:15:20.000Z | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 5 | 2015-02-04T00:44:08.000Z | 2018-08-13T21:59:47.000Z | from unittest import TestCase
from mangopi.site.mangafox import MangaFox
class TestMangaFox(TestCase):
SERIES = MangaFox.series('gantz')
CHAPTERS = SERIES.chapters
def test_chapter_count(self):
self.assertEqual(len(TestMangaFox.CHAPTERS), 386)
def test_chapter_title(self):
self.asse... | 28.142857 | 84 | 0.732657 | 71 | 591 | 5.971831 | 0.43662 | 0.066038 | 0.099057 | 0.103774 | 0.198113 | 0.198113 | 0 | 0 | 0 | 0 | 0 | 0.018145 | 0.160745 | 591 | 20 | 85 | 29.55 | 0.836694 | 0 | 0 | 0 | 0 | 0 | 0.047377 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.307692 | false | 0 | 0.153846 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d736949b59153dcc0e4c4d3472e58423cffa5c71 | 754 | py | Python | circuit_mapper/gate_1_qubit.py | quantumgenetics/quantumgenetics | 630ae5a47c887ecf7a3b4ad62de0d58dc944a42d | [
"Apache-2.0"
] | 6 | 2019-11-09T16:59:29.000Z | 2021-03-27T03:20:24.000Z | circuit_mapper/gate_1_qubit.py | quantumgenetics/quantumgenetics | 630ae5a47c887ecf7a3b4ad62de0d58dc944a42d | [
"Apache-2.0"
] | null | null | null | circuit_mapper/gate_1_qubit.py | quantumgenetics/quantumgenetics | 630ae5a47c887ecf7a3b4ad62de0d58dc944a42d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from functools import partial
def combine(qubit_count, gates):
return [partial(g, i) for g in gates for i in range(qubit_count)]
def repeat_none(index, count):
return [partial(apply_none, index)] * count
def apply_none(index, circuit):
pass
def apply_not(index, circuit):
qr... | 18.85 | 69 | 0.68435 | 116 | 754 | 4.336207 | 0.353448 | 0.095427 | 0.139165 | 0.208748 | 0.337972 | 0.337972 | 0.337972 | 0 | 0 | 0 | 0 | 0.009756 | 0.18435 | 754 | 39 | 70 | 19.333333 | 0.80813 | 0.027851 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.045455 | 0.045455 | 0.090909 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d7442cc25fd608f9e2b752fac226f3d226409445 | 273 | py | Python | MANN/Utils/similarities.py | jgyllinsky/How-to-Learn-from-Little-Data | 3b7b481ac8aa376540a2ca1fff7046de9f86dad6 | [
"MIT"
] | 161 | 2017-05-06T01:37:30.000Z | 2021-12-15T09:58:26.000Z | MANN/Utils/similarities.py | jgyllinsky/How-to-Learn-from-Little-Data | 3b7b481ac8aa376540a2ca1fff7046de9f86dad6 | [
"MIT"
] | 8 | 2017-05-08T20:00:51.000Z | 2018-05-28T01:16:30.000Z | MANN/Utils/similarities.py | jgyllinsky/How-to-Learn-from-Little-Data | 3b7b481ac8aa376540a2ca1fff7046de9f86dad6 | [
"MIT"
] | 78 | 2017-05-06T03:27:31.000Z | 2020-12-21T17:24:20.000Z | import tensorflow as tf
def cosine_similarity(x, y, eps=1e-6):
z = tf.batch_matmul(x, tf.transpose(y, perm=[0,2,1]))
z /= tf.sqrt(tf.multiply(tf.expand_dims(tf.reduce_sum(tf.multiply(x,x), 2), 2),tf.expand_dims(tf.reduce_sum(tf.multiply(y,y), 2), 1)) + eps)
return z
| 34.125 | 141 | 0.688645 | 56 | 273 | 3.25 | 0.482143 | 0.164835 | 0.131868 | 0.153846 | 0.362637 | 0.362637 | 0.362637 | 0.362637 | 0 | 0 | 0 | 0.037037 | 0.10989 | 273 | 7 | 142 | 39 | 0.711934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d74c74f32a5497e7e19bbaa47aa3d3f1d06f9e90 | 848 | py | Python | src/home_automation_hub/storage.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | 26 | 2018-08-21T19:54:21.000Z | 2021-10-15T18:59:17.000Z | src/home_automation_hub/storage.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | 3 | 2020-01-23T03:54:24.000Z | 2020-07-19T13:10:22.000Z | src/home_automation_hub/storage.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | 11 | 2018-09-18T21:31:11.000Z | 2021-07-03T11:23:30.000Z | import redis
import json
from . import config
redis_instance = None
def set_up(host, port, db):
global redis_instance
redis_instance = redis.StrictRedis(host=host, port=port, db=db)
class ModuleStorage():
def __init__(self, module_id):
self.key_prefix = "module:" + config.config.enabled_modules... | 24.941176 | 96 | 0.659198 | 115 | 848 | 4.643478 | 0.321739 | 0.146067 | 0.067416 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228774 | 848 | 33 | 97 | 25.69697 | 0.816514 | 0 | 0 | 0 | 0 | 0 | 0.061321 | 0.027123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.083333 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d74ea2281107cf74e2034caf7b92932a4e11e640 | 1,904 | py | Python | user_Test.py | Robertokello11/Password-Locker | 23afa9b2748044b523e33660e45f934a90d88328 | [
"MIT"
] | null | null | null | user_Test.py | Robertokello11/Password-Locker | 23afa9b2748044b523e33660e45f934a90d88328 | [
"MIT"
] | null | null | null | user_Test.py | Robertokello11/Password-Locker | 23afa9b2748044b523e33660e45f934a90d88328 | [
"MIT"
] | null | null | null | import unittest #Import unittest module
from user import user # importing the contact class
class TestUser(unittest.TestCase):
def setUp(self):
'''
method to run before each test
'''
self.new_user=User("Robert", "Robert11") #new User created
def tearDown(self):
'''
... | 25.72973 | 69 | 0.581408 | 231 | 1,904 | 4.580087 | 0.30303 | 0.066163 | 0.093573 | 0.056711 | 0.328923 | 0.273157 | 0.273157 | 0.273157 | 0.23913 | 0.174858 | 0 | 0.008352 | 0.308298 | 1,904 | 74 | 70 | 25.72973 | 0.794989 | 0.216912 | 0 | 0.375 | 0 | 0 | 0.059816 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.21875 | false | 0.125 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d75a122a7b1520cc30ff7d383f0593e9eebe913f | 2,260 | py | Python | src/utils/config.py | cpaismz89/DeepFireTopology | 9cfe7c5ed9997a2a89b7405af47d9991da7d5471 | [
"MIT"
] | null | null | null | src/utils/config.py | cpaismz89/DeepFireTopology | 9cfe7c5ed9997a2a89b7405af47d9991da7d5471 | [
"MIT"
] | null | null | null | src/utils/config.py | cpaismz89/DeepFireTopology | 9cfe7c5ed9997a2a89b7405af47d9991da7d5471 | [
"MIT"
] | null | null | null | # Run Keras on CPU
import os
# os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # see issue #152
# os.environ["CUDA_VISIBLE_DEVICES"] = " " # -1 if CPU
# Importations
from IPython.display import Image
# Compressed pickle
import pickle
from compress_pickle import dump as cdump
from compress_pickle import load ... | 32.753623 | 125 | 0.834513 | 310 | 2,260 | 5.948387 | 0.480645 | 0.078091 | 0.048807 | 0.02603 | 0.075922 | 0.053145 | 0.053145 | 0 | 0 | 0 | 0 | 0.004518 | 0.118584 | 2,260 | 69 | 126 | 32.753623 | 0.921185 | 0.127434 | 0 | 0.042553 | 0 | 0 | 0.001022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.978723 | 0 | 0.978723 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d75d5e9c183dad29dd630cad94b9feb4b957bbfc | 535 | py | Python | examples/tornado/myapp/__init__.py | s-shin/wswrapper | f47500eb9d27d3aa96d91a50081945e3b83be9dd | [
"MIT"
] | 2 | 2017-05-15T22:23:36.000Z | 2018-02-19T12:27:45.000Z | examples/tornado/myapp/__init__.py | s-shin/wswrapper | f47500eb9d27d3aa96d91a50081945e3b83be9dd | [
"MIT"
] | null | null | null | examples/tornado/myapp/__init__.py | s-shin/wswrapper | f47500eb9d27d3aa96d91a50081945e3b83be9dd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def setup_argparser(parser):
"""コマンドパーサーのセットアップ。
パーサーは共有されるので、被らないように上手く調整すること。
:param parser: ``argparse.ArgumentParser`` のインスタンス。
"""
pass
def setup_app(args):
"""コマンドパース後のセットアップ。
:param args: ``parser.arg_parse()`` の戻り値。
"""
pass
def on_open(... | 14.861111 | 55 | 0.605607 | 50 | 535 | 6.36 | 0.64 | 0.08805 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002463 | 0.241122 | 535 | 35 | 56 | 15.285714 | 0.780788 | 0.46729 | 0 | 0.4 | 0 | 0 | 0.073276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.4 | 0 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d768dc679de8770bdc1267fbf48dedc2b6d9648d | 365 | py | Python | answers/Python/@oseme-techguy/03-word-in-reverse.py | Flipponachi/20-questions | a6ad9a468683646781426008e71dbb508e8e59bb | [
"MIT"
] | 1 | 2019-09-13T14:13:07.000Z | 2019-09-13T14:13:07.000Z | answers/Python/@oseme-techguy/03-word-in-reverse.py | Flipponachi/20-questions | a6ad9a468683646781426008e71dbb508e8e59bb | [
"MIT"
] | null | null | null | answers/Python/@oseme-techguy/03-word-in-reverse.py | Flipponachi/20-questions | a6ad9a468683646781426008e71dbb508e8e59bb | [
"MIT"
] | 1 | 2021-01-02T12:01:46.000Z | 2021-01-02T12:01:46.000Z | """
Solution to Word in Reverse
"""
if __name__ == '__main__':
while True:
word = input('Enter a word: ')
word = str(word)
i = len(word)
reversed_word = ''
while i > 0:
reversed_word += word[i - 1]
i -= 1
print('{reversed_wo... | 22.8125 | 71 | 0.493151 | 42 | 365 | 3.97619 | 0.52381 | 0.359281 | 0.191617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.378082 | 365 | 15 | 72 | 24.333333 | 0.722467 | 0.073973 | 0 | 0 | 0 | 0 | 0.125402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d7761ae1988375a09b4acc44806bcabebad35bcd | 557 | py | Python | yoga/project/yoga/Database/migrations/0001_initial.py | sherlklee/yoga | fcfdfa2b326f20f2218b69fce6f881ff5d11d47b | [
"MIT"
] | null | null | null | yoga/project/yoga/Database/migrations/0001_initial.py | sherlklee/yoga | fcfdfa2b326f20f2218b69fce6f881ff5d11d47b | [
"MIT"
] | null | null | null | yoga/project/yoga/Database/migrations/0001_initial.py | sherlklee/yoga | fcfdfa2b326f20f2218b69fce6f881ff5d11d47b | [
"MIT"
] | 1 | 2019-06-04T01:53:52.000Z | 2019-06-04T01:53:52.000Z | # Generated by Django 2.2.1 on 2019-06-03 11:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
('username', models.Cha... | 24.217391 | 97 | 0.578097 | 56 | 557 | 5.678571 | 0.696429 | 0.141509 | 0.113208 | 0.150943 | 0.163522 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053708 | 0.298025 | 557 | 22 | 98 | 25.318182 | 0.759591 | 0.08079 | 0 | 0 | 1 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d777be6f240c93857c87bee44f62377cde598f0d | 12,511 | py | Python | testcases/OpTestIPMILockMode.py | vaibhav92/op-test-framework | 792fa18d3f09fd8c28073074815ff96d373ab96d | [
"Apache-2.0"
] | null | null | null | testcases/OpTestIPMILockMode.py | vaibhav92/op-test-framework | 792fa18d3f09fd8c28073074815ff96d373ab96d | [
"Apache-2.0"
] | null | null | null | testcases/OpTestIPMILockMode.py | vaibhav92/op-test-framework | 792fa18d3f09fd8c28073074815ff96d373ab96d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: op-test-framework/testcases/OpTestIPMILockMode.py $
#
# OpenPOWER Automated Test Project
#
# Contributors Listed Below - COPYRIGHT 2015
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache Lice... | 41.842809 | 104 | 0.671809 | 1,782 | 12,511 | 4.470258 | 0.204826 | 0.024102 | 0.035149 | 0.070299 | 0.429199 | 0.342707 | 0.321366 | 0.308059 | 0.296259 | 0.279689 | 0 | 0.011495 | 0.256015 | 12,511 | 298 | 105 | 41.983221 | 0.844327 | 0.300216 | 0 | 0.196078 | 1 | 0 | 0.178081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052288 | null | null | 0.254902 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d78d46855b1e8af013795bcd9ce42f63ccd57ab7 | 7,716 | py | Python | tests/test_contract.py | iwob/pysv | 6fdfb93d66cce84cceacabd3806f3f51f0cbbe17 | [
"MIT"
] | 2 | 2017-06-21T04:00:11.000Z | 2018-06-11T17:28:55.000Z | tests/test_contract.py | iwob/pysv | 6fdfb93d66cce84cceacabd3806f3f51f0cbbe17 | [
"MIT"
] | null | null | null | tests/test_contract.py | iwob/pysv | 6fdfb93d66cce84cceacabd3806f3f51f0cbbe17 | [
"MIT"
] | 1 | 2018-06-11T17:28:56.000Z | 2018-06-11T17:28:56.000Z | import unittest
from pysv.contract import *
class TestsContract(unittest.TestCase):
def test_program_vars_input_and_local(self):
vars = ProgramVars({'x': 'Int'}, {'y': 'Int'})
vars.add_marked_variables(["|x|'", "|y|'", "|y|''"])
self.assertEquals({'x': 'Int', "|x|'": 'Int'}, vars.input_v... | 49.780645 | 194 | 0.525531 | 1,045 | 7,716 | 3.724402 | 0.085167 | 0.209661 | 0.073484 | 0.0537 | 0.699897 | 0.670349 | 0.57554 | 0.505139 | 0.465313 | 0.410329 | 0 | 0.023737 | 0.235614 | 7,716 | 155 | 195 | 49.780645 | 0.636148 | 0 | 0 | 0.271186 | 0 | 0.008475 | 0.186212 | 0 | 0 | 0 | 0 | 0 | 0.457627 | 1 | 0.110169 | false | 0 | 0.016949 | 0 | 0.135593 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad0e9389830044b275eaeda53fb94fe0bd3d6df6 | 55 | py | Python | egtaonline/__init__.py | egtaonline/egtaonline-api | a450aad43f5828ab1bc74def7237018b2de9647e | [
"Apache-2.0"
] | null | null | null | egtaonline/__init__.py | egtaonline/egtaonline-api | a450aad43f5828ab1bc74def7237018b2de9647e | [
"Apache-2.0"
] | null | null | null | egtaonline/__init__.py | egtaonline/egtaonline-api | a450aad43f5828ab1bc74def7237018b2de9647e | [
"Apache-2.0"
] | 1 | 2019-03-09T11:45:55.000Z | 2019-03-09T11:45:55.000Z | """Module for egta online api"""
__version__ = '0.8.7'
| 18.333333 | 32 | 0.654545 | 9 | 55 | 3.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.145455 | 55 | 2 | 33 | 27.5 | 0.617021 | 0.472727 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad185864b0257450aa7c1d7f4d336d5631a276f2 | 1,232 | py | Python | tests/test/search/test_references_searcher_db_files.py | watermelonwolverine/fvttmv | 8689d47d1f904dd2bf0a083de515fda65713c460 | [
"MIT"
] | 1 | 2022-03-30T19:12:14.000Z | 2022-03-30T19:12:14.000Z | tests/test/search/test_references_searcher_db_files.py | watermelonwolverine/fvttmv | 8689d47d1f904dd2bf0a083de515fda65713c460 | [
"MIT"
] | null | null | null | tests/test/search/test_references_searcher_db_files.py | watermelonwolverine/fvttmv | 8689d47d1f904dd2bf0a083de515fda65713c460 | [
"MIT"
] | null | null | null | from fvttmv.search.__references_searcher_db_files import ReferencesSearcherDbFiles
from test.common import TestCase, AbsPaths, References
class ReferencesSearcherDbFilesTest(TestCase):
def test_search_for_references_in_db_files1(self):
print("test_search_for_references_in_db_files1")
expected = ... | 42.482759 | 113 | 0.57224 | 107 | 1,232 | 6.158879 | 0.35514 | 0.081942 | 0.172989 | 0.191199 | 0.528073 | 0.528073 | 0.528073 | 0.400607 | 0.291351 | 0.291351 | 0 | 0.010376 | 0.374188 | 1,232 | 28 | 114 | 44 | 0.844358 | 0.04789 | 0 | 0.222222 | 0 | 0 | 0.078632 | 0.066667 | 0 | 0 | 0 | 0.035714 | 0.111111 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.277778 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad1c7e0f78e361f8b94e7d3cccfcbd1e73831978 | 459 | py | Python | graph_explorer/structured_metrics/plugins/vmstat.py | farheenkaifee/dashboard_3 | bc557a6190a99182ec7a1c96dfdd33208a8575cd | [
"Apache-2.0"
] | 284 | 2015-01-03T05:35:18.000Z | 2022-01-19T08:30:31.000Z | graph_explorer/structured_metrics/plugins/vmstat.py | farheenkaifee/dashboard_3 | bc557a6190a99182ec7a1c96dfdd33208a8575cd | [
"Apache-2.0"
] | 9 | 2015-01-20T16:41:01.000Z | 2017-02-03T08:02:39.000Z | graph_explorer/structured_metrics/plugins/vmstat.py | isabella232/graph-explorer | bc557a6190a99182ec7a1c96dfdd33208a8575cd | [
"Apache-2.0"
] | 35 | 2015-02-05T13:03:51.000Z | 2022-01-19T08:31:15.000Z | from . import Plugin
class VmstatPlugin(Plugin):
targets = [
{
'match': '^servers\.(?P<server>[^\.]+)\.vmstat\.(?P<type>.*)$',
'target_type': 'rate',
'tags': {'unit': 'Page'}
}
]
def sanitize(self, target):
target['tags']['type'] = target['tags'... | 27 | 82 | 0.490196 | 48 | 459 | 4.625 | 0.625 | 0.18018 | 0.252252 | 0.18018 | 0.315315 | 0.315315 | 0.315315 | 0 | 0 | 0 | 0 | 0.005865 | 0.257081 | 459 | 16 | 83 | 28.6875 | 0.645161 | 0.039216 | 0 | 0 | 0 | 0 | 0.307517 | 0.116173 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad1e54977e7558a8f0c8a31c237e57a940caccfa | 184 | py | Python | app/auth/__init__.py | Muxi-Studio/ccnu-network-culture-festival | 3ff62b2a3052d1c0fcbc62df53f8985ea8bfd9d3 | [
"MIT"
] | 3 | 2016-12-01T07:38:17.000Z | 2016-12-17T14:37:24.000Z | examples/HelloAPI/app/auth/__init__.py | misakar/rest | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | [
"MIT"
] | 7 | 2020-03-24T16:05:11.000Z | 2022-01-13T00:51:53.000Z | examples/HelloAPI/app/auth/__init__.py | misakar/rest | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | [
"MIT"
] | 4 | 2015-12-11T03:20:27.000Z | 2016-02-03T04:47:52.000Z | # coding: utf-8
from flask import Blueprint
auth = Blueprint(
'auth',
__name__,
template_folder = 'templates',
static_folder = 'static'
)
from . import views, forms
| 14.153846 | 34 | 0.663043 | 21 | 184 | 5.52381 | 0.714286 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.233696 | 184 | 12 | 35 | 15.333333 | 0.815603 | 0.070652 | 0 | 0 | 0 | 0 | 0.112426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad2e32d215791b8f6d838656d93aa2028c4b0dfd | 416 | py | Python | dentexchange/apps/location/tests/test_zip_code.py | hellhound/dentexchange | 58ae303e842404fc9e1860f294ec8044a332bef3 | [
"BSD-3-Clause"
] | 1 | 2017-11-09T23:09:51.000Z | 2017-11-09T23:09:51.000Z | dentexchange/apps/location/tests/test_zip_code.py | hellhound/dentexchange | 58ae303e842404fc9e1860f294ec8044a332bef3 | [
"BSD-3-Clause"
] | null | null | null | dentexchange/apps/location/tests/test_zip_code.py | hellhound/dentexchange | 58ae303e842404fc9e1860f294ec8044a332bef3 | [
"BSD-3-Clause"
] | 3 | 2015-08-11T16:58:47.000Z | 2021-01-04T08:23:51.000Z | # -*- coding:utf-8 -*-
import unittest
import mock
import decimal
from ..models import ZipCode
class ZipCodeTestCase(unittest.TestCase):
def test_unicode_should_return_code(self):
# setup
model = ZipCode()
code = '1.0'
model.code = decimal.Decimal(code)
# action
r... | 19.809524 | 46 | 0.637019 | 46 | 416 | 5.630435 | 0.630435 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009836 | 0.266827 | 416 | 20 | 47 | 20.8 | 0.839344 | 0.096154 | 0 | 0 | 0 | 0 | 0.008086 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
ad32a03d43ea33a557f3e2f1e814ed32989f10d1 | 1,280 | py | Python | app/services/bgm_tv/bgm_tv.py | renovate-tests/pol | dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf | [
"MIT"
] | 5 | 2019-05-11T05:14:44.000Z | 2019-09-07T10:22:53.000Z | app/services/bgm_tv/bgm_tv.py | renovate-tests/pol | dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf | [
"MIT"
] | 161 | 2019-09-09T07:30:25.000Z | 2022-03-14T19:52:43.000Z | app/services/bgm_tv/bgm_tv.py | renovate-tests/pol | dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf | [
"MIT"
] | 3 | 2019-09-07T13:15:05.000Z | 2020-05-06T04:30:46.000Z | from typing import Optional
import requests
from app.core import config
from app.services.bgm_tv.model import UserInfo, SubjectWithEps
class BgmApi:
def __init__(self, mirror=False):
self.session = requests.Session()
if mirror:
self.host = "mirror.api.bgm.rin.cat"
self.se... | 29.767442 | 82 | 0.640625 | 171 | 1,280 | 4.584795 | 0.374269 | 0.084184 | 0.057398 | 0.056122 | 0.267857 | 0.267857 | 0.267857 | 0.107143 | 0.107143 | 0.107143 | 0 | 0 | 0.241406 | 1,280 | 42 | 83 | 30.47619 | 0.807415 | 0 | 0 | 0.125 | 0 | 0 | 0.094531 | 0.035938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.125 | 0.09375 | 0.59375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ad5c22c2a30ebb3dd262b8552db1d5d150acb5ab | 500 | py | Python | tests/test_invoke.py | avara1986/ardy | 1942413f12e117b991278cada69f478474b9b94b | [
"Apache-2.0"
] | 3 | 2017-07-07T06:39:36.000Z | 2017-11-29T23:09:37.000Z | tests/test_invoke.py | avara1986/ardy | 1942413f12e117b991278cada69f478474b9b94b | [
"Apache-2.0"
] | 3 | 2017-07-06T20:23:30.000Z | 2018-11-05T21:15:48.000Z | tests/test_invoke.py | avara1986/ardy | 1942413f12e117b991278cada69f478474b9b94b | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# python imports
from __future__ import unicode_literals, print_function, absolute_import
import os
import unittest
from ardy.core.invoke import Invoke
TESTS_PATH = os.path.dirname(os.path.abspath(__file__))
class InvokeTest(unittest.TestCase):
EXAMPLE_PROJECT = "myexamplelambdaproject"
def ... | 19.230769 | 72 | 0.726 | 61 | 500 | 5.57377 | 0.655738 | 0.052941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.18 | 500 | 25 | 73 | 20 | 0.82439 | 0.054 | 0 | 0 | 0 | 0 | 0.093617 | 0.046809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.285714 | 0 | 0.571429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
ad61efd89b487352162b06da16ad5ffe5da41461 | 20,737 | py | Python | Step4/04_reversing_bis.py | Aterwyn/SSTIC2019 | d7fcddd5b223663910ec35aa1d419f0bc636e701 | [
"MIT"
] | null | null | null | Step4/04_reversing_bis.py | Aterwyn/SSTIC2019 | d7fcddd5b223663910ec35aa1d419f0bc636e701 | [
"MIT"
] | null | null | null | Step4/04_reversing_bis.py | Aterwyn/SSTIC2019 | d7fcddd5b223663910ec35aa1d419f0bc636e701 | [
"MIT"
] | null | null | null | from SM4 import SM4
input_data = "a1a2a3a4a5a6a7a8a9aaabacadaeafa0b1b2b3b4b5b6b7b8b9babbbcbdbebfb0"
input_data = "acadaa8b5b55306fb3c6dfc3b2d1c80770084644225febd71a9189aa26ec740e"
#input_data = "0000000000000000000000000000000000000000000000000000000000000000"
global input_list
input_list = bytearray.fromhex(inp... | 57.602778 | 185 | 0.401601 | 2,196 | 20,737 | 3.739526 | 0.1102 | 0.027034 | 0.032879 | 0.014613 | 0.515952 | 0.369216 | 0.285192 | 0.176084 | 0.163663 | 0.118363 | 0 | 0.274107 | 0.488402 | 20,737 | 360 | 186 | 57.602778 | 0.499953 | 0.417032 | 0 | 0.36 | 0 | 0 | 0.024479 | 0.011605 | 0 | 0 | 0.136355 | 0 | 0.005 | 1 | 0.025 | false | 0 | 0.005 | 0 | 0.04 | 0.065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad651f61bd321ebea386f33585e8cf5eacb6acdb | 894 | py | Python | src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py | TNRIS/api.tnris.org | 46620a4edf0682c158907f110158110801e9c398 | [
"MIT"
] | 6 | 2019-05-22T20:01:45.000Z | 2020-08-18T12:05:12.000Z | src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py | TNRIS/api.tnris.org | 46620a4edf0682c158907f110158110801e9c398 | [
"MIT"
] | 73 | 2019-05-22T19:57:30.000Z | 2022-03-12T00:59:33.000Z | src/data_hub/lcd/migrations/0053_alter_collectionfootprint_the_geom.py | TNRIS/api.tnris.org | 46620a4edf0682c158907f110158110801e9c398 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-10 20:12
import django.contrib.gis.db.models.fields
import django.contrib.gis.geos.collections
import django.contrib.gis.geos.polygon
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('lcd', '0052_alter_collectionfootprint_th... | 40.636364 | 414 | 0.722595 | 105 | 894 | 6.085714 | 0.514286 | 0.122066 | 0.150235 | 0.125196 | 0.29421 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0.219608 | 0.144295 | 894 | 21 | 415 | 42.571429 | 0.615686 | 0.050336 | 0 | 0 | 1 | 0 | 0.095632 | 0.046045 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.466667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad72b53c026f5b811aebd943c7bb216b2e4dff3e | 726 | py | Python | unittest/test_unittest_runner.py | asisudai/practical_pipeline | 09b106dc70d0d9abf7bca117346e796ad542d534 | [
"MIT"
] | 3 | 2019-05-28T22:29:38.000Z | 2020-04-26T19:03:01.000Z | unittest/test_unittest_runner.py | asisudai/practical_pipeline | 09b106dc70d0d9abf7bca117346e796ad542d534 | [
"MIT"
] | null | null | null | unittest/test_unittest_runner.py | asisudai/practical_pipeline | 09b106dc70d0d9abf7bca117346e796ad542d534 | [
"MIT"
] | 1 | 2019-09-01T15:53:36.000Z | 2019-09-01T15:53:36.000Z | #!/usr/bin/env python
import unittest
# import your test modules
import test_unittest_01
import test_unittest_02
import test_unittest_03
import test_unittest_04
if __name__ == '__main__':
# initialize the test suite
loader = unittest.TestLoader()
suite = unittest.TestSuite()
# add tests to the test... | 29.04 | 64 | 0.77135 | 92 | 726 | 5.826087 | 0.402174 | 0.179104 | 0.134328 | 0.283582 | 0.373134 | 0.373134 | 0 | 0 | 0 | 0 | 0 | 0.027597 | 0.151515 | 726 | 24 | 65 | 30.25 | 0.842532 | 0.206612 | 0 | 0 | 0 | 0 | 0.014011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ad88dd61bbd09019864be52cbe4cf8c91fba88d8 | 337 | py | Python | accelerator/models/ethno_racial_identity.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/models/ethno_racial_identity.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/models/ethno_racial_identity.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | import swapper
from accelerator_abstract.models.base_ethno_racial_identity import (
BaseEthnoRacialIdentity,
)
class EthnoRacialIdentity(BaseEthnoRacialIdentity):
class Meta(BaseEthnoRacialIdentity.Meta):
swappable = swapper.swappable_setting(
BaseEthnoRacialIdentity.Meta.app_label, 'Ethno... | 30.636364 | 74 | 0.79822 | 28 | 337 | 9.392857 | 0.642857 | 0.212928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139466 | 337 | 10 | 75 | 33.7 | 0.906897 | 0 | 0 | 0 | 0 | 0 | 0.05638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad93a1fe02a22cf958094f14b1d5c32570598491 | 318 | py | Python | src/test.py | qitar888/ga2016_final_project | f573f683cc2b5cb73a863f3e83f90fc3ced6454a | [
"MIT"
] | null | null | null | src/test.py | qitar888/ga2016_final_project | f573f683cc2b5cb73a863f3e83f90fc3ced6454a | [
"MIT"
] | null | null | null | src/test.py | qitar888/ga2016_final_project | f573f683cc2b5cb73a863f3e83f90fc3ced6454a | [
"MIT"
] | null | null | null | import cost_function as cf
import pic
target_image = pic.pic2rgb("../data/img03.jpg", 50, 50)
cf.set_target_image(target_image)
s = "(H 0.73 (V 0.451 (H 0.963 (L color)(L color))(V 0.549 (L color)(L color)))(L color))"
matrix = cf.to_array(s, 50, 50, 1)
#print(matrix)
pic.rgb2pic(matrix, 'LAB', "./master_piece.png")
| 35.333333 | 90 | 0.68239 | 62 | 318 | 3.387097 | 0.548387 | 0.142857 | 0.1 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.119497 | 318 | 8 | 91 | 39.75 | 0.65 | 0.040881 | 0 | 0 | 0 | 0.142857 | 0.401316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad974a16f5e2eba5c65ce3b727dca372dec76010 | 1,353 | py | Python | cloudkittyclient/v1/info.py | mmariani/python-cloudkittyclient | 92f51ded48b261231f226669f75c52f199584d5c | [
"Apache-2.0"
] | null | null | null | cloudkittyclient/v1/info.py | mmariani/python-cloudkittyclient | 92f51ded48b261231f226669f75c52f199584d5c | [
"Apache-2.0"
] | null | null | null | cloudkittyclient/v1/info.py | mmariani/python-cloudkittyclient | 92f51ded48b261231f226669f75c52f199584d5c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018 Objectif Libre
#
# 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 ... | 35.605263 | 78 | 0.679231 | 188 | 1,353 | 4.835106 | 0.56383 | 0.066007 | 0.028603 | 0.035204 | 0.077008 | 0.077008 | 0.077008 | 0.077008 | 0 | 0 | 0 | 0.011429 | 0.223947 | 1,353 | 37 | 79 | 36.567568 | 0.854286 | 0.643755 | 0 | 0.222222 | 0 | 0 | 0.109785 | 0.078759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ad9d9fb7a38ac292e01525e196638ba0f6d199ab | 2,303 | py | Python | pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py | crxporter/pyatv | e694a210b3810c64044116bf40e7b75420b5fe75 | [
"MIT"
] | null | null | null | pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py | crxporter/pyatv | e694a210b3810c64044116bf40e7b75420b5fe75 | [
"MIT"
] | null | null | null | pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py | crxporter/pyatv | e694a210b3810c64044116bf40e7b75420b5fe75 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from g... | 57.575 | 500 | 0.860617 | 246 | 2,303 | 7.715447 | 0.345528 | 0.044257 | 0.073762 | 0.079031 | 0.246048 | 0.18177 | 0.082719 | 0.082719 | 0.082719 | 0.082719 | 0 | 0.027252 | 0.059922 | 2,303 | 39 | 501 | 59.051282 | 0.849423 | 0.14112 | 0 | 0 | 1 | 0.045455 | 0.308592 | 0.296899 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ad9e41e35c13ed20157dba440d5e3dc168b4b9c8 | 524 | py | Python | app_challenges_sections_units/migrations/0036_auto_20190619_1903.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | app_challenges_sections_units/migrations/0036_auto_20190619_1903.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | app_challenges_sections_units/migrations/0036_auto_20190619_1903.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2019-06-19 19:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0001_squashed_0021'),
('app_challenges_sections_units', '0035_auto_20190619_1847'),
]
operations = [
migrations.RenameModel... | 22.782609 | 69 | 0.603053 | 51 | 524 | 5.960784 | 0.764706 | 0.138158 | 0.157895 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104558 | 0.288168 | 524 | 22 | 70 | 23.818182 | 0.710456 | 0.085878 | 0 | 0.25 | 1 | 0 | 0.262055 | 0.109015 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8ebf8bbb141395df211d1beccebe31440e682f7 | 109 | py | Python | chk.py | benhur98/GazeUI_RH3 | 3e633474bcb78ab30897692fbcb75c8ad1f5c92e | [
"MIT"
] | null | null | null | chk.py | benhur98/GazeUI_RH3 | 3e633474bcb78ab30897692fbcb75c8ad1f5c92e | [
"MIT"
] | null | null | null | chk.py | benhur98/GazeUI_RH3 | 3e633474bcb78ab30897692fbcb75c8ad1f5c92e | [
"MIT"
] | null | null | null | import numpy as np
a=np.load("train-data-{}.npy".format(input()))
while 1:
print(a[int(input())][1])
| 21.8 | 47 | 0.605505 | 19 | 109 | 3.473684 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.146789 | 109 | 4 | 48 | 27.25 | 0.688172 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8f571492f94df0b230565b81e8284f0b4160ad7 | 1,994 | py | Python | cogs/StatCollector.py | galaxyAbstractor/rvnBot | a013b92c924cc218811e801680bf7d4318406a4c | [
"MIT"
] | null | null | null | cogs/StatCollector.py | galaxyAbstractor/rvnBot | a013b92c924cc218811e801680bf7d4318406a4c | [
"MIT"
] | null | null | null | cogs/StatCollector.py | galaxyAbstractor/rvnBot | a013b92c924cc218811e801680bf7d4318406a4c | [
"MIT"
] | null | null | null | from discord import TextChannel
from discord.ext import commands
from stats import StatService
from users import UserService
class StatCollector(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.stats = StatService(bot.pool)
self.users = UserService(bot.pool)
@commands.Cog.l... | 23.458824 | 56 | 0.654965 | 240 | 1,994 | 5.283333 | 0.2125 | 0.121451 | 0.194795 | 0.246057 | 0.572555 | 0.572555 | 0.526814 | 0.476341 | 0.433754 | 0.27918 | 0 | 0 | 0.253761 | 1,994 | 84 | 57 | 23.738095 | 0.852151 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8fcc6ac8aab4f48607db30ce376a669495d6728 | 229 | py | Python | lorem/data.py | Ahsoka/python-lorem | 5252a5819fcdf87955794a4f1d06284d152e2c8a | [
"MIT"
] | 21 | 2016-06-16T22:33:40.000Z | 2022-03-13T22:56:39.000Z | lorem/data.py | Ahsoka/python-lorem | 5252a5819fcdf87955794a4f1d06284d152e2c8a | [
"MIT"
] | null | null | null | lorem/data.py | Ahsoka/python-lorem | 5252a5819fcdf87955794a4f1d06284d152e2c8a | [
"MIT"
] | 10 | 2017-02-09T14:33:02.000Z | 2021-08-07T15:02:04.000Z | WORDS = ("adipisci aliquam amet consectetur dolor dolore dolorem eius est et"
"incidunt ipsum labore magnam modi neque non numquam porro quaerat qui"
"quia quisquam sed sit tempora ut velit voluptatem").split()
| 57.25 | 80 | 0.733624 | 31 | 229 | 5.419355 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213974 | 229 | 3 | 81 | 76.333333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0.803493 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8fdf92716ffae4bc0c6399c929dc082d01dc0eb | 886 | py | Python | motto/readers.py | attakei/jamproject | f3a677f4f95c112b89fb38957e6ba1a3c923ea85 | [
"Apache-2.0"
] | null | null | null | motto/readers.py | attakei/jamproject | f3a677f4f95c112b89fb38957e6ba1a3c923ea85 | [
"Apache-2.0"
] | 1 | 2020-01-05T14:04:35.000Z | 2020-01-05T14:04:35.000Z | motto/readers.py | attakei/motto | f3a677f4f95c112b89fb38957e6ba1a3c923ea85 | [
"Apache-2.0"
] | null | null | null | """Core custom readers for docutils
"""
from typing import List, Type
from docutils import readers
from docutils.transforms import Transform
from .skill import SkillBase
from .transforms import InitializeReportTransform, TokenizeTransform
class Reader(readers.Reader):
"""Basic custom reader class.
Includes
... | 27.6875 | 68 | 0.694131 | 92 | 886 | 6.5 | 0.369565 | 0.050167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209932 | 886 | 31 | 69 | 28.580645 | 0.854286 | 0.147856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | 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 | 1 | 0 | 0 | 2 |
d10f214ef69fa8548dfc5cc8ae64127b9968d418 | 376 | py | Python | tests/bitly/*REPL* [python].py | goldsborough/lnk | 1487d272a70329571c77c0ec17c394dc6a1d088f | [
"MIT"
] | 3 | 2017-06-16T18:51:54.000Z | 2018-04-08T19:36:12.000Z | tests/bitly/*REPL* [python].py | goldsborough/lnk | 1487d272a70329571c77c0ec17c394dc6a1d088f | [
"MIT"
] | 2 | 2021-02-08T20:17:54.000Z | 2021-04-30T20:35:44.000Z | tests/bitly/*REPL* [python].py | goldsborough/lnk | 1487d272a70329571c77c0ec17c394dc6a1d088f | [
"MIT"
] | 1 | 2019-11-06T19:05:30.000Z | 2019-11-06T19:05:30.000Z | Python 3.5.0 (default, Sep 14 2015, 02:37:27)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = [{'a': 1}, {'b': 2}]
>>> sorted(a)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorder... | 41.777778 | 70 | 0.606383 | 64 | 376 | 3.5625 | 0.78125 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101587 | 0.162234 | 376 | 9 | 71 | 41.777778 | 0.622222 | 0 | 0 | 0 | 0 | 0 | 0.100796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d112e5e4e9404a987fd2539dd0c5729a2d97741e | 210 | py | Python | app/events/client/commands/template.py | Hacker-1202/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 14 | 2021-11-05T11:27:25.000Z | 2022-02-28T02:04:32.000Z | app/events/client/commands/template.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 2 | 2022-01-24T22:00:44.000Z | 2022-01-31T13:13:27.000Z | app/events/client/commands/template.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 5 | 2022-01-02T13:33:17.000Z | 2022-02-26T13:09:50.000Z | from app.vars.client import client
from app.helpers import Notify, params
from app.filesystem import cfg
@client.command()
async def template(ctx):
notify = Notify(ctx=ctx, title='Template File...')
| 23.333333 | 54 | 0.733333 | 30 | 210 | 5.133333 | 0.566667 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 210 | 8 | 55 | 26.25 | 0.870057 | 0 | 0 | 0 | 0 | 0 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d123ae3da1f9bbc3e25f9668062bd9940c2f2120 | 991 | py | Python | inkcut-master/inkcut/device/protocols/debug.py | ilnanny/Inkscape-addons | a30cdde2093fa2da68b90213e057519d0304433f | [
"X11"
] | 3 | 2019-03-08T23:32:29.000Z | 2019-05-11T23:53:46.000Z | inkcut-master/inkcut/device/protocols/debug.py | ilnanny/Inkscape-addons | a30cdde2093fa2da68b90213e057519d0304433f | [
"X11"
] | null | null | null | inkcut-master/inkcut/device/protocols/debug.py | ilnanny/Inkscape-addons | a30cdde2093fa2da68b90213e057519d0304433f | [
"X11"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on Oct 23, 2015
@author: jrm
'''
from inkcut.device.plugin import DeviceProtocol
from inkcut.core.utils import async_sleep, log
class DebugProtocol(DeviceProtocol):
""" A protocol that just logs what is called """
def connection_made(self):
log.debug("protocol.conn... | 29.147059 | 69 | 0.619576 | 140 | 991 | 4.292857 | 0.457143 | 0.093178 | 0.186356 | 0.094842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011613 | 0.217962 | 991 | 34 | 70 | 29.147059 | 0.763871 | 0.139253 | 0 | 0 | 0 | 0 | 0.205006 | 0.205006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0.111111 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1308da11d5da22dc10b14287bdad38de1760631 | 1,466 | py | Python | Python3/537.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/537.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/537.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 24 ms submission
class Solution:
def complexNumberMultiply(self, a: str, b: str) -> str:
A = [int(x) for x in a.replace('i','').split('+')]
B = [int(x) for x in b.replace('i','').split('+')]
... | 36.65 | 98 | 0.527967 | 160 | 1,466 | 3 | 0.2625 | 0.025 | 0.095833 | 0.108333 | 0.204167 | 0.1625 | 0.1625 | 0.1625 | 0 | 0 | 0 | 0.019467 | 0.334243 | 1,466 | 39 | 99 | 37.589744 | 0.472336 | 0 | 0 | 0.289474 | 0 | 0 | 0.00955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1340b77da734e63775de7b3f26a9ce848c63723 | 2,160 | py | Python | radicalsdk/radardsp.py | moodoki/radical_sdk | 4438678cf73e156e5058ddb035ec8e5875fca84e | [
"Apache-2.0"
] | 7 | 2021-05-20T01:12:39.000Z | 2021-12-30T12:38:07.000Z | radicalsdk/radardsp.py | moodoki/radical_sdk | 4438678cf73e156e5058ddb035ec8e5875fca84e | [
"Apache-2.0"
] | null | null | null | radicalsdk/radardsp.py | moodoki/radical_sdk | 4438678cf73e156e5058ddb035ec8e5875fca84e | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_radardsp.ipynb (unless otherwise specified).
__all__ = ['cfar_nms', 'range_azimuth_ca_cfar']
# Cell
import numpy as np
from mmwave import dsp
# Cell
def cfar_nms(cfar_in, beamformed_ra, nhood_size=1):
"""non-maxumim suppression for cfar detections"""
def g... | 32.727273 | 95 | 0.539815 | 267 | 2,160 | 4.089888 | 0.359551 | 0.041209 | 0.047619 | 0.051282 | 0.169414 | 0.136447 | 0.055861 | 0.055861 | 0.055861 | 0.055861 | 0 | 0.021866 | 0.364815 | 2,160 | 66 | 96 | 32.727273 | 0.774052 | 0.17037 | 0 | 0.157895 | 1 | 0 | 0.020443 | 0.011925 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.131579 | 0.052632 | 0.026316 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d13bb185fb284c7a1c5cf8f8b572524463eee700 | 276 | py | Python | duo_universal_auth/apps.py | tonningp/django-duo-universal-auth | 4a7dc91c48e0d3c6b11d2b6eebd9cedd83cd3275 | [
"BSD-3-Clause"
] | 1 | 2021-12-26T21:04:16.000Z | 2021-12-26T21:04:16.000Z | duo_universal_auth/apps.py | tonningp/django-duo-universal-auth | 4a7dc91c48e0d3c6b11d2b6eebd9cedd83cd3275 | [
"BSD-3-Clause"
] | null | null | null | duo_universal_auth/apps.py | tonningp/django-duo-universal-auth | 4a7dc91c48e0d3c6b11d2b6eebd9cedd83cd3275 | [
"BSD-3-Clause"
] | 1 | 2021-12-26T21:29:45.000Z | 2021-12-26T21:29:45.000Z | """
Module to register the Django application.
"""
from django.apps import AppConfig
class DuoUniversalAuthConfig(AppConfig):
"""
The specific AppConfig class to register for the Duo Universal
Authentication application.
"""
name = 'duo_universal_auth'
| 19.714286 | 66 | 0.728261 | 30 | 276 | 6.633333 | 0.633333 | 0.100503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 276 | 13 | 67 | 21.230769 | 0.896396 | 0.481884 | 0 | 0 | 0 | 0 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
d142df79bef452231592066c73c02fa23e4fff32 | 398 | py | Python | firsttest/models/check.py | charlos1204/firsttest | 2c66385ae7149d1403071c2bf6da997873350556 | [
"MIT"
] | null | null | null | firsttest/models/check.py | charlos1204/firsttest | 2c66385ae7149d1403071c2bf6da997873350556 | [
"MIT"
] | null | null | null | firsttest/models/check.py | charlos1204/firsttest | 2c66385ae7149d1403071c2bf6da997873350556 | [
"MIT"
] | null | null | null | #import numpy as np
#import pickle
#import sequence2vector as s2v_tools
#y_data_name = '/data/label_dataset.pkl'#
#Y = pickle.load(open(y_data_name, 'rb'))
#print(Y.shape)
#Y = s2v_tools.seq2vectorize(Y)
#print(Y)
from keras.models import Sequential
import plotresults as pltrslts
import pickle
network = pickle.l... | 18.090909 | 54 | 0.748744 | 61 | 398 | 4.737705 | 0.52459 | 0.083045 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.115578 | 398 | 21 | 55 | 18.952381 | 0.809659 | 0.494975 | 0 | 0 | 0 | 0 | 0.119792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d1484a9f3cc1c846f424f96a4602ea6fd126b3cd | 952 | py | Python | src/stationbook/book/tests/test_view_station_borehole_layer_add.py | EIDA/stationbook | 80d36189170328257955b236c9ed6a8657a92853 | [
"MIT"
] | 3 | 2019-02-07T18:03:56.000Z | 2020-06-30T11:09:50.000Z | src/stationbook/book/tests/test_view_station_borehole_layer_add.py | EIDA/stationbook | 80d36189170328257955b236c9ed6a8657a92853 | [
"MIT"
] | 13 | 2019-03-25T08:09:25.000Z | 2022-03-11T23:40:25.000Z | src/stationbook/book/tests/test_view_station_borehole_layer_add.py | EIDA/stationbook | 80d36189170328257955b236c9ed6a8657a92853 | [
"MIT"
] | 1 | 2019-07-26T10:23:37.000Z | 2019-07-26T10:23:37.000Z | from django.urls import resolve, reverse
from .base_classes import NetworkStationTest
from ..views import station_borehole_layer_add
class StationBoreholeLayerAddTests(NetworkStationTest):
def __init__(self, *args):
NetworkStationTest.__init__(
self,
*args,
url="statio... | 35.259259 | 77 | 0.726891 | 113 | 952 | 5.681416 | 0.380531 | 0.141745 | 0.186916 | 0.214953 | 0.333333 | 0.333333 | 0.286604 | 0.286604 | 0.137072 | 0 | 0 | 0.01292 | 0.186975 | 952 | 26 | 78 | 36.615385 | 0.816537 | 0 | 0 | 0 | 0 | 0 | 0.093487 | 0.070378 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.2 | false | 0 | 0.15 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d14a8262549a69bf5004e70bf2d22c44d9e1fbdd | 6,594 | py | Python | cesiumpy/entities/tests/test_color.py | cksammons7/cesiumpy | 0ffa7509fdac03644f0e2fb91385106c40284aa1 | [
"Apache-2.0"
] | 62 | 2015-12-30T04:17:25.000Z | 2022-02-09T04:26:24.000Z | cesiumpy/entities/tests/test_color.py | cksammons7/cesiumpy | 0ffa7509fdac03644f0e2fb91385106c40284aa1 | [
"Apache-2.0"
] | 20 | 2016-01-19T10:07:21.000Z | 2021-11-15T18:36:45.000Z | cesiumpy/entities/tests/test_color.py | cksammons7/cesiumpy | 0ffa7509fdac03644f0e2fb91385106c40284aa1 | [
"Apache-2.0"
] | 33 | 2016-02-03T13:28:29.000Z | 2022-02-26T13:14:41.000Z | #!/usr/bin/env python
# coding: utf-8
import nose
import unittest
import traitlets
import cesiumpy
import cesiumpy.testing as tm
class TestColor(unittest.TestCase):
def test_maybe_color(self):
blue = cesiumpy.color.Color.maybe('blue')
self.assertEqual(repr(blue), "Color.BLUE")
self.ass... | 35.074468 | 81 | 0.607067 | 894 | 6,594 | 4.400447 | 0.144295 | 0.20971 | 0.077783 | 0.058465 | 0.63879 | 0.60727 | 0.559736 | 0.531774 | 0.524911 | 0.512964 | 0 | 0.031902 | 0.244161 | 6,594 | 187 | 82 | 35.262032 | 0.757424 | 0.014407 | 0 | 0.260563 | 0 | 0.021127 | 0.150139 | 0.034955 | 0 | 0 | 0 | 0 | 0.450704 | 1 | 0.06338 | false | 0 | 0.042254 | 0 | 0.112676 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d14d5d346317e2adeb5762d4720c2c3c5e7859a8 | 460 | py | Python | examples/docs_snippets/docs_snippets/overview/modes_resources/pipeline_with_modes.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 2 | 2021-06-21T17:50:26.000Z | 2021-06-21T19:14:23.000Z | examples/docs_snippets/docs_snippets/overview/modes_resources/pipeline_with_modes.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 7 | 2022-03-16T06:55:04.000Z | 2022-03-18T07:03:25.000Z | examples/docs_snippets/docs_snippets/overview/modes_resources/pipeline_with_modes.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 1 | 2021-08-18T17:21:57.000Z | 2021-08-18T17:21:57.000Z | from dagster import ModeDefinition, pipeline
from .database_resources import postgres_database, sqlite_database
from .solids_with_resources import generate_table_1, generate_table_2
@pipeline(
mode_defs=[
ModeDefinition("local_dev", resource_defs={"database": sqlite_database}),
ModeDefinition("pr... | 28.75 | 81 | 0.767391 | 52 | 460 | 6.384615 | 0.442308 | 0.156627 | 0.13253 | 0.13253 | 0.168675 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.13913 | 460 | 15 | 82 | 30.666667 | 0.828283 | 0 | 0 | 0 | 1 | 0 | 0.063043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d155115bca693ea9440a64b39244f42d954a8b6e | 5,153 | py | Python | sdk/notificationhubs/azure-mgmt-notificationhubs/azure/mgmt/notificationhubs/models/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/notificationhubs/azure-mgmt-notificationhubs/azure/mgmt/notificationhubs/models/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/notificationhubs/azure-mgmt-notificationhubs/azure/mgmt/notificationhubs/models/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 44.422414 | 94 | 0.751213 | 437 | 5,153 | 8.624714 | 0.203661 | 0.1645 | 0.106925 | 0.156275 | 0.206951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007478 | 0.16961 | 5,153 | 115 | 95 | 44.808696 | 0.873335 | 0.165923 | 0 | 0 | 0 | 0 | 0.162714 | 0.097206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.609524 | 0 | 0.609524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d1592de01ccfcfaa6800db9a077337ed4875fae8 | 1,723 | py | Python | shaping.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 17 | 2019-08-01T07:45:46.000Z | 2022-03-25T05:15:13.000Z | shaping.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 14 | 2020-05-30T16:18:28.000Z | 2021-06-24T08:08:19.000Z | shaping.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 6 | 2020-07-10T14:43:02.000Z | 2021-04-08T19:28:53.000Z | import functools
import typing
import torch
# equal to 1T
class _T(torch.Tensor):
pass
class BY(torch.Tensor):
pass
class T(torch.Tensor):
pass
class B(torch.Tensor):
pass
class S(torch.Tensor):
pass
class BCT(torch.Tensor):
pass
class CT(torch.Tensor):
pass
class BCt(torch.Tensor):
pass
class Bt(torch... | 20.270588 | 149 | 0.647707 | 266 | 1,723 | 4.116541 | 0.274436 | 0.140639 | 0.178082 | 0.219178 | 0.290411 | 0.241096 | 0.193607 | 0.193607 | 0.136986 | 0 | 0 | 0.001466 | 0.208358 | 1,723 | 84 | 150 | 20.511905 | 0.80132 | 0.006384 | 0 | 0.261538 | 0 | 0.030769 | 0.159064 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 1 | 0.076923 | false | 0.2 | 0.046154 | 0.015385 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d15d785d728aebc40b0768e439bd949eef225e9d | 1,867 | py | Python | qingmi/utils/crypto.py | xiongxianzhu/qingmi | ae5a446abec3982ebf2c5dde8546ef72f9453137 | [
"BSD-3-Clause"
] | 20 | 2018-05-22T09:29:40.000Z | 2020-12-11T04:53:15.000Z | qingmi/utils/crypto.py | xiongxianzhu/qingmi | ae5a446abec3982ebf2c5dde8546ef72f9453137 | [
"BSD-3-Clause"
] | 65 | 2019-03-07T02:43:06.000Z | 2021-01-07T03:43:52.000Z | qingmi/utils/crypto.py | xiongxianzhu/qingmi | ae5a446abec3982ebf2c5dde8546ef72f9453137 | [
"BSD-3-Clause"
] | 6 | 2019-03-08T06:39:47.000Z | 2021-07-01T11:02:56.000Z | # coding: utf-8
"""
Qingmi's standard crypto functions and utilities.
"""
import hashlib
import hmac
import random
import time
import base64
def get_random_string(length=12,
allowed_chars='abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'):
... | 24.246753 | 76 | 0.658811 | 196 | 1,867 | 6.096939 | 0.372449 | 0.05272 | 0.075314 | 0.087866 | 0.396653 | 0.379916 | 0.293724 | 0.2159 | 0.2159 | 0.175732 | 0 | 0.078788 | 0.204606 | 1,867 | 76 | 77 | 24.565789 | 0.725926 | 0.123728 | 0 | 0.157895 | 0 | 0 | 0.206137 | 0.168112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.131579 | 0 | 0.657895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d1680b983b55af635dd1b1c4efc3a00f490e8be1 | 10,276 | py | Python | core/database/generator.py | xorond/l0l | bb0c2bb23fc49997b695cf27d2b2b25169395521 | [
"WTFPL"
] | 6 | 2018-10-29T19:46:49.000Z | 2022-03-10T15:39:47.000Z | core/database/generator.py | xorond/l0l | bb0c2bb23fc49997b695cf27d2b2b25169395521 | [
"WTFPL"
] | null | null | null | core/database/generator.py | xorond/l0l | bb0c2bb23fc49997b695cf27d2b2b25169395521 | [
"WTFPL"
] | 4 | 2018-10-16T13:28:27.000Z | 2022-02-05T18:43:57.000Z | #------------------Bombermans Team---------------------------------#
#Author : B3mB4m
#Concat : b3mb4m@protonmail.com
#Project : https://github.com/b3mb4m/Shellsploit
#LICENSE : https://github.com/b3mb4m/Shellsploit/blob/master/LICENSE
#------------------------------------------------------------------#
def generato... | 34.139535 | 201 | 0.647042 | 1,211 | 10,276 | 5.367465 | 0.09744 | 0.113231 | 0.155692 | 0.076 | 0.683231 | 0.605692 | 0.528 | 0.484462 | 0.448769 | 0.427538 | 0 | 0.033868 | 0.247178 | 10,276 | 300 | 202 | 34.253333 | 0.80636 | 0.033476 | 0 | 0.580508 | 0 | 0.004237 | 0.074675 | 0.007357 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.423729 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d16a18b5e5a64b815eb735cb177e88912486769f | 1,020 | py | Python | bomber/views.py | acdh-oeaw/DAAC-DB | e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3 | [
"MIT"
] | null | null | null | bomber/views.py | acdh-oeaw/DAAC-DB | e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3 | [
"MIT"
] | null | null | null | bomber/views.py | acdh-oeaw/DAAC-DB | e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django_tables2 import RequestConfig
from django.views.generic.detail import DetailView
from django.db.models import Count
from crew.models import Person
from .models import Bomber
from .tables import BomberTable
def bomber(request):
table = BomberTable(Bomber.objects.all(... | 37.777778 | 171 | 0.755882 | 126 | 1,020 | 5.968254 | 0.380952 | 0.053191 | 0.042553 | 0.066489 | 0.106383 | 0.106383 | 0.106383 | 0 | 0 | 0 | 0 | 0.001133 | 0.134314 | 1,020 | 26 | 172 | 39.230769 | 0.85051 | 0 | 0 | 0 | 0 | 0 | 0.112745 | 0.022549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.35 | 0 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
66f44f9766c4d040eac6704c6c2ae8556c45fffa | 342 | py | Python | Monitoring/dht22_monitor.py | jpradass/Raspberry-Utils | b14c25e7dc9bedbea62d19240db3fb202372ea2c | [
"MIT"
] | null | null | null | Monitoring/dht22_monitor.py | jpradass/Raspberry-Utils | b14c25e7dc9bedbea62d19240db3fb202372ea2c | [
"MIT"
] | null | null | null | Monitoring/dht22_monitor.py | jpradass/Raspberry-Utils | b14c25e7dc9bedbea62d19240db3fb202372ea2c | [
"MIT"
] | null | null | null | import time
import requests
INFLUX_URL = 'http://localhost:8086/write?db=DHT22'
def sendDataToGrafana(humidity, temp, pressure):
requests.post(INFLUX_URL, data='temperature value=' + str(temp))
requests.post(INFLUX_URL, data='humidity value=' + str(humidity))
requests.post(INFLUX_URL, data='pressure valu... | 28.5 | 69 | 0.736842 | 44 | 342 | 5.636364 | 0.477273 | 0.145161 | 0.217742 | 0.254032 | 0.302419 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.122807 | 342 | 11 | 70 | 31.090909 | 0.806667 | 0 | 0 | 0 | 0 | 0 | 0.246334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
66ff808193f491101625deb10d4b03096229d8fa | 204 | py | Python | tests/deeply/test_exception.py | achillesrasquinha/deeply | fd1ce32da130591fc92df8df89e07f1497b2b902 | [
"MIT"
] | 2 | 2021-10-05T16:37:30.000Z | 2021-10-11T21:31:43.000Z | tests/deeply/test_exception.py | achillesrasquinha/deeply | fd1ce32da130591fc92df8df89e07f1497b2b902 | [
"MIT"
] | null | null | null | tests/deeply/test_exception.py | achillesrasquinha/deeply | fd1ce32da130591fc92df8df89e07f1497b2b902 | [
"MIT"
] | 1 | 2021-07-16T02:23:37.000Z | 2021-07-16T02:23:37.000Z | # imports - module imports
from deeply.exception import (
DeeplyError
)
# imports - test imports
import pytest
def test_deeply_error():
with pytest.raises(DeeplyError):
raise DeeplyError | 18.545455 | 36 | 0.730392 | 23 | 204 | 6.391304 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20098 | 204 | 11 | 37 | 18.545455 | 0.90184 | 0.230392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
66ffbb10c3681dba5f743ff2d041228d5ccdc263 | 1,153 | py | Python | test/common.py | philippe-goetz/python-jwt | 8dff3e43023f344642af55ad82f3cfb28b00f8d5 | [
"MIT"
] | null | null | null | test/common.py | philippe-goetz/python-jwt | 8dff3e43023f344642af55ad82f3cfb28b00f8d5 | [
"MIT"
] | null | null | null | test/common.py | philippe-goetz/python-jwt | 8dff3e43023f344642af55ad82f3cfb28b00f8d5 | [
"MIT"
] | null | null | null | """ Common setup and patching for tests """
#pylint: disable=wrong-import-order
from datetime import datetime as orig_datetime, timedelta
from mock import patch
import threading
#pylint: disable=W0401,W0614
from test.fixtures import *
_thread_state = threading.local()
def _new_utcnow():
""" Return last set datet... | 28.825 | 78 | 0.70425 | 147 | 1,153 | 5.231293 | 0.37415 | 0.114434 | 0.154746 | 0.062419 | 0.083225 | 0.083225 | 0 | 0 | 0 | 0 | 0 | 0.008412 | 0.175195 | 1,153 | 39 | 79 | 29.564103 | 0.80021 | 0.213356 | 0 | 0.086957 | 0 | 0 | 0.078251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.173913 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0f03c437607dd785e33ff9e71aa3dbb48d46d5a4 | 1,314 | py | Python | utils/prediction.py | ZhengLiangliang1996/Speech-Recogniton-Tool-Box | 0a2353d990e3f0a3057a747ff52fd3a066d4289d | [
"MIT"
] | null | null | null | utils/prediction.py | ZhengLiangliang1996/Speech-Recogniton-Tool-Box | 0a2353d990e3f0a3057a747ff52fd3a066d4289d | [
"MIT"
] | null | null | null | utils/prediction.py | ZhengLiangliang1996/Speech-Recogniton-Tool-Box | 0a2353d990e3f0a3057a747ff52fd3a066d4289d | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""
Author: LiangLiang ZHENG
Date:
File Description
"""
import sys
import time
import os
sys.path.append('..')
from __future__ import print_function
import sys
import argparse
from keras import backend as K
from utils.cha_level_helper import output_sequence
import numpy as np
#TODO: still need... | 28.565217 | 80 | 0.649924 | 179 | 1,314 | 4.631285 | 0.536313 | 0.050663 | 0.036188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.23516 | 1,314 | 45 | 81 | 29.2 | 0.814925 | 0.311263 | 0 | 0.217391 | 0 | 0 | 0.046404 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.043478 | false | 0 | 0.391304 | 0 | 0.434783 | 0.304348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0f0a874b832d5307c77060e388ac90f502854fe7 | 852 | py | Python | notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 6 | 2020-07-05T05:15:19.000Z | 2021-01-24T20:17:14.000Z | notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | null | null | null | notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 2 | 2020-09-14T06:46:37.000Z | 2021-06-15T09:17:21.000Z | from algo.number_theory.extended_gcd.extended_gcd import extended_gcd
from algo.number_theory.eulers_totient_function.eulers_totient import etf
def mod_inverse_gcd(a, m):
'''
a and m should be coprime!
Complexity -> O(log(m)).
'''
return extended_gcd(a, m)[0]
def mod_inverse_eulers(a, m):
''... | 20.780488 | 73 | 0.627934 | 140 | 852 | 3.6 | 0.342857 | 0.119048 | 0.077381 | 0.095238 | 0.198413 | 0.130952 | 0.130952 | 0.130952 | 0.130952 | 0.130952 | 0 | 0.017054 | 0.242958 | 852 | 40 | 74 | 21.3 | 0.764341 | 0.289906 | 0 | 0 | 0 | 0 | 0.014733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.529412 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0f116262d51df870092baaa77da7c1a3942b13fa | 121 | py | Python | BOJ/week02/recursion/ex10872.py | FridayAlgorithm/taesong_study | 50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c | [
"MIT"
] | null | null | null | BOJ/week02/recursion/ex10872.py | FridayAlgorithm/taesong_study | 50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c | [
"MIT"
] | null | null | null | BOJ/week02/recursion/ex10872.py | FridayAlgorithm/taesong_study | 50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c | [
"MIT"
] | 2 | 2020-12-27T15:03:46.000Z | 2021-03-06T14:13:34.000Z | N = int(input())
def factorial(N):
if N == 0:
return 1
return N * factorial(N-1)
print(factorial(N))
| 11 | 29 | 0.545455 | 19 | 121 | 3.473684 | 0.526316 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.297521 | 121 | 10 | 30 | 12.1 | 0.741176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0f1b976e46c7f2ba93a9ecff9c247ef02d3200d7 | 774 | py | Python | benchmark/python/tpch_base.py | alefranz/spark | f5f15379b2c080339a36423b0262f29d978fd362 | [
"MIT"
] | 1 | 2019-06-14T09:25:43.000Z | 2019-06-14T09:25:43.000Z | benchmark/python/tpch_base.py | tianyaba/spark | f1c5b86d84bc91cb2d6f5aaf3d2a401de6fd4098 | [
"MIT"
] | null | null | null | benchmark/python/tpch_base.py | tianyaba/spark | f1c5b86d84bc91cb2d6f5aaf3d2a401de6fd4098 | [
"MIT"
] | null | null | null | # Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
import pyspark
from pyspark.sql import SparkSession
class TpchBase:
def __init__(self, spark, dir):
self.c... | 43 | 70 | 0.683463 | 103 | 774 | 5.097087 | 0.427184 | 0.137143 | 0.24381 | 0.289524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204134 | 774 | 17 | 71 | 45.529412 | 0.852273 | 0.249354 | 0 | 0 | 0 | 0 | 0.093588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0f1d77811b98689b2cae0d686170946ae5f678f0 | 621 | py | Python | server/schemas/kind_to_strain.py | Georgi2704/pricelist-fastapi-boilerplate | 24b88e1f5c28b7eaff50745cd4464caac6de01e6 | [
"Apache-2.0"
] | null | null | null | server/schemas/kind_to_strain.py | Georgi2704/pricelist-fastapi-boilerplate | 24b88e1f5c28b7eaff50745cd4464caac6de01e6 | [
"Apache-2.0"
] | 2 | 2021-11-11T15:19:30.000Z | 2022-02-07T22:52:07.000Z | server/schemas/kind_to_strain.py | Georgi2704/pricelist-fastapi | 24b88e1f5c28b7eaff50745cd4464caac6de01e6 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from typing import Optional
from uuid import UUID
from server.schemas.base import BoilerplateBaseModel
class KindToStrainBase(BoilerplateBaseModel):
kind_id: UUID
strain_id: UUID
# Properties to receive via API on creation
class KindToStrainCreate(KindToStrainBase):
pass
... | 18.818182 | 52 | 0.780998 | 69 | 621 | 6.985507 | 0.492754 | 0.037344 | 0.078838 | 0.091286 | 0.112033 | 0.112033 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178744 | 621 | 32 | 53 | 19.40625 | 0.945098 | 0.194847 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.176471 | 0.235294 | 0 | 0.764706 | 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 | 1 | 0 | 0 | 2 |
0f2faddde2571ad100ca7bd92dfedb14e2aab42d | 375 | py | Python | examples/bbox.py | mzaglia/stac.py | 39314add494b5ab1bf11c44dcb69eba4614144db | [
"MIT"
] | null | null | null | examples/bbox.py | mzaglia/stac.py | 39314add494b5ab1bf11c44dcb69eba4614144db | [
"MIT"
] | null | null | null | examples/bbox.py | mzaglia/stac.py | 39314add494b5ab1bf11c44dcb69eba4614144db | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
#%%
import stac
#%%
s = stac.STAC('http://brazildatacube.dpi.inpe.br/bdc-stac/0.8.1/', True)
#%%
s.catalog
#%%
collection = s.collection('C4_64_16D_MED')
collection
#%%
items = collection.get_items(filter={'bbox':'-56.86523437500001,-15.919073517982413,-53.17382812500001,-13.90... | 19.736842 | 157 | 0.698667 | 55 | 375 | 4.690909 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263768 | 0.08 | 375 | 18 | 158 | 20.833333 | 0.484058 | 0.117333 | 0 | 0 | 0 | 0 | 0.518519 | 0.302469 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0f3c685bf3c706b184f1be524f6612e1e97c2875 | 1,704 | py | Python | designate/backend/impl_infoblox/record_factory.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | designate/backend/impl_infoblox/record_factory.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | designate/backend/impl_infoblox/record_factory.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Infoblox
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 39.627907 | 75 | 0.7277 | 227 | 1,704 | 5.374449 | 0.440529 | 0.07459 | 0.103279 | 0.118033 | 0.383607 | 0.383607 | 0.221311 | 0 | 0 | 0 | 0 | 0.007252 | 0.190728 | 1,704 | 42 | 76 | 40.571429 | 0.877447 | 0.320423 | 0 | 0 | 0 | 0 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0f42949be84c6e30aca5f319502468abb01b7512 | 849 | py | Python | crescent/resources/s3/bucket/transition.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | 1 | 2020-03-26T19:20:03.000Z | 2020-03-26T19:20:03.000Z | crescent/resources/s3/bucket/transition.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | crescent/resources/s3/bucket/transition.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | from crescent.core import Model
from crescent.functions import AnyFn
from .constants import AllowedValues, ModelRequiredProperties
from typing import Union
class Transition(Model):
def __init__(self):
super(Transition, self).__init__(
allowed_values={self.StorageClass.__name__: AllowedValues.T... | 38.590909 | 85 | 0.759717 | 94 | 849 | 6.425532 | 0.382979 | 0.054636 | 0.074503 | 0.089404 | 0.160596 | 0.160596 | 0.115894 | 0.115894 | 0 | 0 | 0 | 0 | 0.160188 | 849 | 21 | 86 | 40.428571 | 0.847125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.1875 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
0f4db0e6bc89de8ac27da4ed1b34ec1251d19ce7 | 6,107 | py | Python | Testing/daemon_Fake_Dev.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | 1 | 2020-06-23T10:41:33.000Z | 2020-06-23T10:41:33.000Z | Testing/daemon_Fake_Dev.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | null | null | null | Testing/daemon_Fake_Dev.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import couchdb
import pika
import ast
import time
import threading
import ctypes
import datetime
import sys
from daemon import Daemon
import ConfigParser
import logging
t=time
t.clock()
PIDFILE="/home/pi/FogOfThings/Device/pid/fake_dev.pid"
Config=ConfigParser.ConfigParser()
Config.read("/home/pi/... | 33.190217 | 132 | 0.594727 | 766 | 6,107 | 4.63577 | 0.24282 | 0.067587 | 0.015207 | 0.011264 | 0.384962 | 0.347789 | 0.31118 | 0.266404 | 0.202197 | 0.202197 | 0 | 0.01792 | 0.259866 | 6,107 | 183 | 133 | 33.371585 | 0.767699 | 0.05682 | 0 | 0.350318 | 0 | 0 | 0.103304 | 0.014261 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.057325 | 0.070064 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0f58ae9c56e868959385146e7aab8ad6eb80f5da | 2,344 | py | Python | models/base_model.py | siyuhuang/PoseStylizer | d1d832781ddfd3efde24bf32b36a4074fafebcc1 | [
"BSD-3-Clause"
] | 75 | 2020-07-20T01:33:15.000Z | 2022-03-26T11:55:20.000Z | models/base_model.py | siyuhuang/PoseStylizer | d1d832781ddfd3efde24bf32b36a4074fafebcc1 | [
"BSD-3-Clause"
] | 12 | 2020-07-20T12:16:11.000Z | 2022-01-13T19:31:04.000Z | models/base_model.py | siyuhuang/PoseStylizer | d1d832781ddfd3efde24bf32b36a4074fafebcc1 | [
"BSD-3-Clause"
] | 16 | 2020-07-20T01:19:16.000Z | 2022-03-26T09:34:35.000Z | import os
import torch
import torch.nn as nn
import numpy as np
import pickle
class BaseModel(nn.Module):
def __init__(self):
super(BaseModel, self).__init__()
def name(self):
return 'BaseModel'
def initialize(self, opt):
self.opt = opt
self.gpu_ids = opt.gpu_ids
... | 30.441558 | 93 | 0.636092 | 305 | 2,344 | 4.691803 | 0.334426 | 0.020964 | 0.030748 | 0.02935 | 0.241789 | 0.241789 | 0.241789 | 0.168414 | 0.118099 | 0.118099 | 0 | 0.001738 | 0.263652 | 2,344 | 76 | 94 | 30.842105 | 0.827346 | 0.079352 | 0 | 0.160714 | 0 | 0 | 0.070135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.089286 | 0.089286 | 0.053571 | 0.410714 | 0.053571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0f686508655f6cb5a008cef527be098e9ada85a3 | 1,399 | py | Python | app/api/v2/models/user_model.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | null | null | null | app/api/v2/models/user_model.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | 1 | 2019-01-19T13:10:02.000Z | 2019-01-19T13:10:02.000Z | app/api/v2/models/user_model.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | null | null | null | from ....db_conn import initialize_db
from psycopg2.extras import RealDictCursor
from werkzeug.security import generate_password_hash,check_password_hash
con = initialize_db()
cur = con.cursor(cursor_factory=RealDictCursor)
class User(object):
table = 'users'
""" Model class for the user object """
tab... | 25.436364 | 186 | 0.609721 | 161 | 1,399 | 5.21118 | 0.42236 | 0.038141 | 0.053635 | 0.047676 | 0.159714 | 0.159714 | 0.159714 | 0.159714 | 0.159714 | 0.159714 | 0 | 0.001949 | 0.266619 | 1,399 | 54 | 187 | 25.907407 | 0.815789 | 0.083631 | 0 | 0.275862 | 1 | 0.034483 | 0.210784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.137931 | 0.103448 | 0 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0f73367ba6109ee049aa54a44a28f5bd872d3d4e | 5,149 | py | Python | views.py | zhoubogao/hhlyDevops | 832684bb7fa4e67a23b2e6171ed0433fe0748de5 | [
"Unlicense"
] | null | null | null | views.py | zhoubogao/hhlyDevops | 832684bb7fa4e67a23b2e6171ed0433fe0748de5 | [
"Unlicense"
] | null | null | null | views.py | zhoubogao/hhlyDevops | 832684bb7fa4e67a23b2e6171ed0433fe0748de5 | [
"Unlicense"
] | null | null | null | #-*-coding:utf-8-*-
from flask import url_for, redirect, request, current_app
from flask_admin.contrib.sqla import ModelView
from flask_admin import AdminIndexView, helpers, expose
from werkzeug.security import generate_password_hash
from flask_login import current_user, login_user, logout_user
from models import User,... | 33.435065 | 85 | 0.619344 | 524 | 5,149 | 5.805344 | 0.253817 | 0.052597 | 0.06213 | 0.073965 | 0.522025 | 0.490796 | 0.467784 | 0.452991 | 0.423406 | 0.408284 | 0 | 0.002728 | 0.288017 | 5,149 | 153 | 86 | 33.653595 | 0.827059 | 0.112643 | 0 | 0.349057 | 0 | 0 | 0.109159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028302 | false | 0.066038 | 0.075472 | 0.009434 | 0.650943 | 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 | 1 | 0 | 0 | 2 |
0f8689ae827d935b48b38f4d0615ffaedb18fca7 | 49,355 | py | Python | dataset.py | DerryHub/the-TaobaoLive-Commodity-Identify-Competition | 7e5e5c4fbddd9949fe01810d58bd7994889c007c | [
"MIT"
] | 4 | 2020-08-15T14:49:37.000Z | 2022-01-16T08:34:07.000Z | dataset.py | weilin-droid/the-TaobaoLive-Commodity-Identify-Competition | 7e5e5c4fbddd9949fe01810d58bd7994889c007c | [
"MIT"
] | null | null | null | dataset.py | weilin-droid/the-TaobaoLive-Commodity-Identify-Competition | 7e5e5c4fbddd9949fe01810d58bd7994889c007c | [
"MIT"
] | 2 | 2021-05-26T05:16:09.000Z | 2021-06-09T09:07:49.000Z | import os
import torch
import numpy as np
from tqdm import tqdm
import json
from torch.utils.data import Dataset, DataLoader
from arcface.resnet import ResNet
from arcface.googlenet import GoogLeNet
from arcface.inception_v4 import InceptionV4
from arcface.inceptionresnet_v2 import InceptionResNetV2
from arcface.densen... | 36.025547 | 141 | 0.532975 | 6,221 | 49,355 | 4.085999 | 0.056904 | 0.026712 | 0.026752 | 0.018175 | 0.745781 | 0.710728 | 0.682796 | 0.652819 | 0.620874 | 0.606908 | 0 | 0.035712 | 0.323716 | 49,355 | 1,369 | 142 | 36.051863 | 0.725837 | 0.12637 | 0 | 0.582073 | 0 | 0 | 0.065615 | 0.003413 | 0 | 0 | 0 | 0 | 0.020518 | 1 | 0.050756 | false | 0 | 0.020518 | 0.016199 | 0.12203 | 0.019438 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7e25a7271dfc02edc1e4d7ee8ec27394dc69dcb1 | 35,165 | py | Python | psyneulink/core/rpc/graph_pb2.py | JeshuaT/PsyNeuLink | 912f691028e848659055430f37b6c15273c762f1 | [
"Apache-2.0"
] | 67 | 2018-01-05T22:18:44.000Z | 2022-03-27T11:27:31.000Z | psyneulink/core/rpc/graph_pb2.py | JeshuaT/PsyNeuLink | 912f691028e848659055430f37b6c15273c762f1 | [
"Apache-2.0"
] | 1,064 | 2017-12-01T18:58:27.000Z | 2022-03-31T22:22:24.000Z | psyneulink/core/rpc/graph_pb2.py | JeshuaT/PsyNeuLink | 912f691028e848659055430f37b6c15273c762f1 | [
"Apache-2.0"
] | 25 | 2017-12-01T20:27:07.000Z | 2022-03-08T21:49:39.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: graph.proto
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
fro... | 34.34082 | 2,882 | 0.746936 | 4,157 | 35,165 | 5.984364 | 0.073851 | 0.049926 | 0.074848 | 0.074888 | 0.642481 | 0.593199 | 0.58331 | 0.581541 | 0.566346 | 0.530369 | 0 | 0.032686 | 0.127371 | 35,165 | 1,023 | 2,883 | 34.374389 | 0.77801 | 0.03367 | 0 | 0.660944 | 1 | 0.001073 | 0.178402 | 0.11064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005365 | 0 | 0.005365 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7e35ba512bdc355a15686da4ebde9ef6630fcc86 | 564 | py | Python | setup.py | enricobacis/timeme | 6c906bf40daa547a8a11f034bd00b30f74519a72 | [
"MIT"
] | 1 | 2017-02-16T07:59:22.000Z | 2017-02-16T07:59:22.000Z | setup.py | enricobacis/timeme | 6c906bf40daa547a8a11f034bd00b30f74519a72 | [
"MIT"
] | null | null | null | setup.py | enricobacis/timeme | 6c906bf40daa547a8a11f034bd00b30f74519a72 | [
"MIT"
] | null | null | null | from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='timeme',
version='0.1.1',
description='Decorator that prints the running time of a function',
long_descript... | 31.333333 | 79 | 0.695035 | 67 | 564 | 5.746269 | 0.626866 | 0.233766 | 0.148052 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006479 | 0.179078 | 564 | 17 | 80 | 33.176471 | 0.825054 | 0 | 0 | 0 | 0 | 0 | 0.342199 | 0.039007 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7e3aaf1e8600f0c4dc3c6c5d88b0c978d139ca07 | 3,272 | py | Python | billing/models/pin_models.py | litchfield/merchant | e4fba8a88a326bbde39c26e937c17d5283817320 | [
"BSD-3-Clause"
] | null | null | null | billing/models/pin_models.py | litchfield/merchant | e4fba8a88a326bbde39c26e937c17d5283817320 | [
"BSD-3-Clause"
] | null | null | null | billing/models/pin_models.py | litchfield/merchant | e4fba8a88a326bbde39c26e937c17d5283817320 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
try:
from django.contrib.auth import get_user_model
except ImportError: # django < 1.5
from django.contrib.auth.models import User
else:
User = get_user_model()
class PinCard(models.Model):
token = models.CharField(max_length=32, db_index=True, editable=False)
display_n... | 39.421687 | 110 | 0.731357 | 409 | 3,272 | 5.643032 | 0.237164 | 0.136482 | 0.140381 | 0.187175 | 0.625217 | 0.565425 | 0.458406 | 0.391681 | 0.391681 | 0.391681 | 0 | 0.022578 | 0.160758 | 3,272 | 82 | 111 | 39.902439 | 0.817917 | 0.003667 | 0 | 0.42029 | 0 | 0 | 0.042984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.057971 | 0.057971 | 0.898551 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7e4e90eca537aa89aa63261527c4a76d2ff939ec | 93 | py | Python | onaws/__init__.py | bbhunter/onaws | ac5a5b7db3765258bb57cb6808f3ed04941434d2 | [
"MIT"
] | 1 | 2021-07-07T22:07:11.000Z | 2021-07-07T22:07:11.000Z | onaws/__init__.py | bbhunter/onaws | ac5a5b7db3765258bb57cb6808f3ed04941434d2 | [
"MIT"
] | null | null | null | onaws/__init__.py | bbhunter/onaws | ac5a5b7db3765258bb57cb6808f3ed04941434d2 | [
"MIT"
] | null | null | null | '''Simple library to check if a hostname belongs to AWS IP space.'''
__version__ = '0.0.12'
| 23.25 | 68 | 0.698925 | 16 | 93 | 3.8125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.172043 | 93 | 3 | 69 | 31 | 0.74026 | 0.666667 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7e595646df56fa1ccc0f7430fce5f92524bd68a3 | 1,092 | py | Python | timemachines/skaters/orbt/orbitlgtskaterfactory.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 253 | 2021-01-08T17:33:30.000Z | 2022-03-21T17:32:36.000Z | timemachines/skaters/orbt/orbitlgtskaterfactory.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 65 | 2021-01-20T16:43:35.000Z | 2022-03-30T19:07:22.000Z | timemachines/skaters/orbt/orbitlgtskaterfactory.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 28 | 2021-02-04T14:58:30.000Z | 2022-01-17T04:35:17.000Z |
from timemachines.skaters.orbt.orbitinclusion import using_orbit
if using_orbit:
from timemachines.skaters.orbt.orbitwrappers import orbit_lgt_iskater
from timemachines.skatertools.utilities.conventions import Y_TYPE, A_TYPE, R_TYPE, E_TYPE, T_TYPE
from timemachines.skatertools.batch.batchskater import ba... | 45.5 | 126 | 0.638278 | 175 | 1,092 | 3.76 | 0.24 | 0.085106 | 0.085106 | 0.095745 | 0.273556 | 0.273556 | 0.238602 | 0.238602 | 0.194529 | 0.194529 | 0 | 0.015912 | 0.251832 | 1,092 | 23 | 127 | 47.478261 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.010092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0.1875 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
7e6449d6fe77effb19a71805ede2cc6094e439b0 | 347 | py | Python | project/WeiboTest/SpiderMain.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | 2 | 2016-10-03T10:20:02.000Z | 2018-03-20T00:38:53.000Z | project/WeiboTest/SpiderMain.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | 2 | 2019-10-08T07:13:44.000Z | 2019-10-08T07:13:46.000Z | project/WeiboTest/SpiderMain.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
from Spider import Spider
# 入口
spider = Spider()
fans = spider.get_my_fans()
for fan in fans:
spider.user_crawl(fan.user_id)
spider.status_crawl(fan.user_id)
followers = spider.get_my_follower()
for follower in followers:
spider.user_crawl(fan.user_id)
spider... | 19.277778 | 36 | 0.723343 | 55 | 347 | 4.345455 | 0.4 | 0.133891 | 0.200837 | 0.23431 | 0.41841 | 0.41841 | 0.41841 | 0.41841 | 0.41841 | 0.41841 | 0 | 0.00339 | 0.149856 | 347 | 17 | 37 | 20.411765 | 0.80678 | 0.115274 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7e7db118c7f4f3b7e95cfc69811f1d3a63168f03 | 381 | py | Python | backpack/extensions/secondorder/diag_ggn/permute.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 395 | 2019-10-04T09:37:52.000Z | 2022-03-29T18:00:56.000Z | backpack/extensions/secondorder/diag_ggn/permute.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 78 | 2019-10-11T18:56:43.000Z | 2022-03-23T01:49:54.000Z | backpack/extensions/secondorder/diag_ggn/permute.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 50 | 2019-10-03T16:31:10.000Z | 2022-03-15T19:36:14.000Z | """Module defining DiagGGNPermute."""
from backpack.core.derivatives.permute import PermuteDerivatives
from backpack.extensions.secondorder.diag_ggn.diag_ggn_base import DiagGGNBaseModule
class DiagGGNPermute(DiagGGNBaseModule):
"""DiagGGN extension of Permute."""
def __init__(self):
"""Initialize.""... | 31.75 | 84 | 0.76378 | 36 | 381 | 7.777778 | 0.694444 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125984 | 381 | 11 | 85 | 34.636364 | 0.840841 | 0.191601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7e87f76640610e9de62b60abb07ac310224902a8 | 309 | py | Python | hcap_utils/contrib/allauth/login_form.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | null | null | null | hcap_utils/contrib/allauth/login_form.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | 31 | 2020-04-11T13:38:17.000Z | 2021-09-22T18:51:11.000Z | hcap_utils/contrib/allauth/login_form.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | 1 | 2020-04-08T17:04:39.000Z | 2020-04-08T17:04:39.000Z | from allauth.account.forms import LoginForm as AllauthLoginForm
class LoginForm(AllauthLoginForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
del self.fields["login"].widget.attrs["placeholder"]
del self.fields["password"].widget.attrs["placeholder"]
| 34.333333 | 63 | 0.702265 | 34 | 309 | 6.147059 | 0.647059 | 0.095694 | 0.124402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15534 | 309 | 8 | 64 | 38.625 | 0.800766 | 0 | 0 | 0 | 0 | 0 | 0.113269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7e935ec5d2ebb9f636c96a59cc60b230513b416f | 3,434 | py | Python | apps/user_app/models.py | lightless233/npiss | 8338f50d971600fe2b2366836ca2fb543f2276d5 | [
"MIT"
] | 1 | 2016-11-22T13:25:02.000Z | 2016-11-22T13:25:02.000Z | apps/user_app/models.py | LiGhT1EsS/npiss | 8338f50d971600fe2b2366836ca2fb543f2276d5 | [
"MIT"
] | 4 | 2020-06-05T17:28:20.000Z | 2022-03-11T23:15:49.000Z | apps/user_app/models.py | lightless233/npiss | 8338f50d971600fe2b2366836ca2fb543f2276d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# coding: utf8
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.hashers import make_password, check_password
__author__ = 'lightless'
__email__ = 'root@lightless.me'
class PissUser(models.Model):
"""
存储用户信息
"""
class Meta:
... | 31.796296 | 101 | 0.689284 | 423 | 3,434 | 5.361702 | 0.27896 | 0.066138 | 0.079365 | 0.10582 | 0.387125 | 0.314815 | 0.314815 | 0.279541 | 0.246032 | 0.246032 | 0 | 0.016275 | 0.194817 | 3,434 | 107 | 102 | 32.093458 | 0.803978 | 0.043972 | 0 | 0.220588 | 0 | 0 | 0.056329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.088235 | 0.044118 | 0.058824 | 0.735294 | 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 | 1 | 0 | 0 | 2 |
7e9894e1fe1b381787e323f05a879ce7b9f749fc | 2,478 | py | Python | nostrild/nostrild.py | nibalizer/galileo | f5d100adcfaa238d98ec2df93040eafc4d9e7420 | [
"Apache-2.0"
] | 1 | 2015-01-11T04:32:57.000Z | 2015-01-11T04:32:57.000Z | nostrild/nostrild.py | nibalizer/galileo | f5d100adcfaa238d98ec2df93040eafc4d9e7420 | [
"Apache-2.0"
] | 1 | 2015-01-12T01:17:07.000Z | 2015-01-12T01:17:07.000Z | nostrild/nostrild.py | nibalizer/galileo | f5d100adcfaa238d98ec2df93040eafc4d9e7420 | [
"Apache-2.0"
] | 2 | 2015-01-17T00:52:39.000Z | 2017-09-09T05:42:18.000Z | # nostrild
# authentication and user info daemon
import getent
import os
import yaml
import ldap
from itsdangerous import TimestampSigner
from flask import Flask, abort, request, jsonify
from flask_cors import CORS
app = Flask(__name__)
app.config['CORS_HEADERS'] = 'Content-Type'
cors = CORS(app)
def always_aut... | 22.324324 | 64 | 0.619048 | 332 | 2,478 | 4.509036 | 0.325301 | 0.032064 | 0.029392 | 0.037408 | 0.281897 | 0.281897 | 0.281897 | 0.197729 | 0.162993 | 0.162993 | 0 | 0.012105 | 0.233253 | 2,478 | 110 | 65 | 22.527273 | 0.775789 | 0.03067 | 0 | 0.298701 | 0 | 0 | 0.198129 | 0.022109 | 0 | 0 | 0 | 0.009091 | 0 | 0 | null | null | 0.103896 | 0.090909 | null | null | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7eb2e5d8b39a38645fd5ca261b5ad38bc6b3a64e | 17,580 | py | Python | deploy.py | NASA-PDS/planetarydata.org | 16731a251c22408b433117f7f01e29d004f11467 | [
"Apache-2.0"
] | null | null | null | deploy.py | NASA-PDS/planetarydata.org | 16731a251c22408b433117f7f01e29d004f11467 | [
"Apache-2.0"
] | 5 | 2021-03-19T21:41:19.000Z | 2022-02-11T14:55:14.000Z | deploy.py | NASA-PDS/planetarydata.org | 16731a251c22408b433117f7f01e29d004f11467 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
# Copyright 2014 California Institute of Technology. ALL RIGHTS
# RESERVED. U.S. Government Sponsorship acknowledged.
#
# deploy.py - Deploy the IPDA site into operations
import argparse, sys, logging, os, os.path, re, subprocess, pwd, urllib2, contextlib, tempfile, tarfile, str... | 46.141732 | 121 | 0.659158 | 2,380 | 17,580 | 4.810084 | 0.203782 | 0.027778 | 0.015898 | 0.018169 | 0.276555 | 0.221611 | 0.189465 | 0.121681 | 0.103337 | 0.071716 | 0 | 0.003861 | 0.189647 | 17,580 | 380 | 122 | 46.263158 | 0.799733 | 0.020193 | 0 | 0.064706 | 0 | 0.005882 | 0.288046 | 0.007783 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.064706 | 0.005882 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7eb546f1428e9e46c412c95c4b290bb93627a3b7 | 713 | py | Python | global_id/tests/utils/callers/guid_caller.py | ThePokerFaCcCe/messenger | 2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c | [
"MIT"
] | null | null | null | global_id/tests/utils/callers/guid_caller.py | ThePokerFaCcCe/messenger | 2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c | [
"MIT"
] | null | null | null | global_id/tests/utils/callers/guid_caller.py | ThePokerFaCcCe/messenger | 2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c | [
"MIT"
] | null | null | null | from django.urls.base import reverse
from rest_framework import status
from global_id.urls import app_name
from core.tests.utils import BaseCaller
from ..creators import create_guid
def guid_detail_url(guid=None):
return reverse(f"{app_name}:guid-detail",
kwargs={'guid': guid or create_guid().... | 31 | 63 | 0.678822 | 94 | 713 | 4.914894 | 0.521277 | 0.08658 | 0.056277 | 0.073593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005474 | 0.231417 | 713 | 22 | 64 | 32.409091 | 0.837591 | 0.053296 | 0 | 0 | 0 | 0 | 0.038864 | 0.032885 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0 | 0.3125 | 0.0625 | 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 | 1 | 0 | 0 | 2 |
0e22d4557755570980a88c3dd6efa6cf9f1ddd9e | 3,600 | py | Python | backend/config/settings/base.py | r0tii/process-status-viewer | 6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c | [
"MIT"
] | null | null | null | backend/config/settings/base.py | r0tii/process-status-viewer | 6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c | [
"MIT"
] | null | null | null | backend/config/settings/base.py | r0tii/process-status-viewer | 6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c | [
"MIT"
] | null | null | null | """
Base settings to build other settings files upon.
"""
from pathlib import Path
import environ
env = environ.Env()
# GENERAL
# -------------------------------------------------------------------------
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
PROJECT_NAME = "process_status_monitoring"
... | 30.252101 | 99 | 0.536667 | 267 | 3,600 | 7.041199 | 0.449438 | 0.103723 | 0.063298 | 0.044681 | 0.082979 | 0.082979 | 0 | 0 | 0 | 0 | 0 | 0.001308 | 0.150278 | 3,600 | 118 | 100 | 30.508475 | 0.613272 | 0.287222 | 0 | 0.037975 | 0 | 0 | 0.551479 | 0.476923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.063291 | 0.025316 | 0 | 0.025316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0e2735db31e23d6ef2afd7530322a682fcd103d9 | 2,703 | py | Python | hyperloglog/hashfunctions.py | mlkra/various-algorithms | 9cb2d21fe9ec0613c88e70f70e0ff1d471e43079 | [
"MIT"
] | 2 | 2021-12-04T16:12:03.000Z | 2021-12-25T06:57:27.000Z | mincount/hashfunctions.py | mlkra/various-algorithms | 9cb2d21fe9ec0613c88e70f70e0ff1d471e43079 | [
"MIT"
] | null | null | null | mincount/hashfunctions.py | mlkra/various-algorithms | 9cb2d21fe9ec0613c88e70f70e0ff1d471e43079 | [
"MIT"
] | null | null | null | from typing import Callable
import hashlib
import zlib
def __common(n: int, h: Callable, digest_size: int, b=0) -> float:
assert b <= digest_size
if b == 0:
return int.from_bytes(h(n.to_bytes(8, "big")).digest(), 'big') / 2**digest_size
else:
return (int.from_bytes(h(n.to_bytes(8, "big")).... | 22.525 | 101 | 0.594895 | 438 | 2,703 | 3.515982 | 0.150685 | 0.049351 | 0.048701 | 0.097403 | 0.553247 | 0.512987 | 0.483117 | 0.483117 | 0.4 | 0.238961 | 0 | 0.121198 | 0.221606 | 2,703 | 119 | 102 | 22.714286 | 0.610741 | 0.018498 | 0 | 0.08 | 0 | 0 | 0.05017 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 1 | 0.266667 | false | 0 | 0.04 | 0.213333 | 0.6 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
0e2afcb852554bb61271877076847899b292fc37 | 4,128 | py | Python | App/components/combEntrada.py | Alexfm101/automata | a39760a04d384ef96ce49cac2517d7248380bd72 | [
"MIT"
] | null | null | null | App/components/combEntrada.py | Alexfm101/automata | a39760a04d384ef96ce49cac2517d7248380bd72 | [
"MIT"
] | null | null | null | App/components/combEntrada.py | Alexfm101/automata | a39760a04d384ef96ce49cac2517d7248380bd72 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
data_edoSiguiente = [[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],
[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],
[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],
[1, 2, 3, 4],[1... | 33.024 | 83 | 0.428052 | 530 | 4,128 | 3.250943 | 0.141509 | 0.056878 | 0.083575 | 0.111434 | 0.335461 | 0.335461 | 0.335461 | 0.335461 | 0.335461 | 0.335461 | 0 | 0.108052 | 0.419331 | 4,128 | 124 | 84 | 33.290323 | 0.610763 | 0 | 0 | 0.405941 | 0 | 0 | 0.016066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.089109 | 0.039604 | null | null | 0.089109 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0e49791b45f3761db0f53cd99453bc620539bd37 | 456 | py | Python | Modulo 02/exercicios/d041.py | euyag/python-cursoemvideo | d2f684854d926e38ea193816a6c7d2c48d25aa3d | [
"MIT"
] | 2 | 2021-06-22T00:15:11.000Z | 2021-08-02T11:28:56.000Z | Modulo 02/exercicios/d041.py | euyag/python-cursoemvideo | d2f684854d926e38ea193816a6c7d2c48d25aa3d | [
"MIT"
] | null | null | null | Modulo 02/exercicios/d041.py | euyag/python-cursoemvideo | d2f684854d926e38ea193816a6c7d2c48d25aa3d | [
"MIT"
] | null | null | null | print('===== DESAFIO 041 =====')
nascimento = int(input('Digite o ano q vc nasceu: '))
idade = 2021 - nascimento
print(f'vc tem {idade} anos')
if idade <= 9:
print('vc é um nadador mirim')
elif idade > 9 and idade <= 14:
print('vc é um nadador infantil')
elif idade > 14 and idade <= 19:
print('vc é um na... | 26.823529 | 53 | 0.631579 | 75 | 456 | 3.84 | 0.426667 | 0.121528 | 0.138889 | 0.173611 | 0.34375 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0 | 0.059155 | 0.221491 | 456 | 17 | 54 | 26.823529 | 0.752113 | 0 | 0 | 0 | 0 | 0 | 0.391685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
0e4f69138aecd1313f122259efebb214ee565651 | 19,502 | py | Python | venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | 353 | 2020-12-10T10:47:17.000Z | 2022-03-31T23:08:29.000Z | venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | 80 | 2020-12-10T09:54:22.000Z | 2022-03-30T22:08:45.000Z | venv/Lib/site-packages/tensorboard/uploader/proto/server_info_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | 63 | 2020-12-10T17:10:34.000Z | 2022-03-28T16:27:07.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorboard/uploader/proto/server_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor a... | 40.127572 | 1,788 | 0.762383 | 2,310 | 19,502 | 6.133766 | 0.099134 | 0.044604 | 0.053356 | 0.056885 | 0.624674 | 0.526007 | 0.509281 | 0.509281 | 0.478157 | 0.463547 | 0 | 0.032963 | 0.117988 | 19,502 | 485 | 1,789 | 40.210309 | 0.790768 | 0.040816 | 0 | 0.642202 | 1 | 0.002294 | 0.253263 | 0.199979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013761 | 0 | 0.013761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0e677bb51b35c500b63970611b9dbe8b1db2dde6 | 292 | py | Python | django2/demo/meeting/views.py | Gozeon/code-collections | 7304e2b9c4c91a809125198d22cf40dcbb45a23b | [
"MIT"
] | null | null | null | django2/demo/meeting/views.py | Gozeon/code-collections | 7304e2b9c4c91a809125198d22cf40dcbb45a23b | [
"MIT"
] | 1 | 2020-07-17T09:25:42.000Z | 2020-07-17T09:25:42.000Z | django2/demo/meeting/views.py | Gozeon/code-collections | 7304e2b9c4c91a809125198d22cf40dcbb45a23b | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def hello(request):
return HttpResponse("Hello world")
def date(request, year, month, day):
return HttpResponse({
year: year,
month: month,
day: day
})
| 17.176471 | 38 | 0.660959 | 35 | 292 | 5.514286 | 0.571429 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 292 | 16 | 39 | 18.25 | 0.881279 | 0.078767 | 0 | 0 | 0 | 0 | 0.041199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
0e7dc78c76ad3448f8b2889d760c4e349ce77e58 | 1,429 | py | Python | test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 542 | 2021-12-17T22:34:31.000Z | 2022-03-31T14:36:23.000Z | test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 291 | 2021-12-17T20:07:53.000Z | 2022-03-31T11:07:23.000Z | test/connector/exchange/altmarkets/test_altmarkets_user_stream_tracker.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 220 | 2021-12-17T12:41:23.000Z | 2022-03-31T23:03:22.000Z | #!/usr/bin/env python
import sys
import asyncio
import logging
import unittest
import conf
from os.path import join, realpath
from hummingbot.connector.exchange.altmarkets.altmarkets_user_stream_tracker import AltmarketsUserStreamTracker
from hummingbot.connector.exchange.altmarkets.altmarkets_auth import AltmarketsA... | 37.605263 | 111 | 0.773268 | 177 | 1,429 | 5.971751 | 0.446328 | 0.075686 | 0.080416 | 0.056764 | 0.0965 | 0.0965 | 0 | 0 | 0 | 0 | 0 | 0.004882 | 0.139958 | 1,429 | 37 | 112 | 38.621622 | 0.855167 | 0.030791 | 0 | 0 | 0 | 0 | 0.055676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.37037 | 0 | 0.555556 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0e88cbb20b73b185549520afd3dddebdd1c5d349 | 881 | py | Python | tests/Bug1161780.py | grangier/python-soappy | 41158e4afabe3af2ff414b1c4be35907bbf5dc81 | [
"BSD-3-Clause"
] | 1 | 2015-01-19T02:11:57.000Z | 2015-01-19T02:11:57.000Z | tests/Bug1161780.py | grangier/python-soappy | 41158e4afabe3af2ff414b1c4be35907bbf5dc81 | [
"BSD-3-Clause"
] | 2 | 2017-02-03T20:11:57.000Z | 2019-09-09T19:10:49.000Z | tests/Bug1161780.py | grangier/python-soappy | 41158e4afabe3af2ff414b1c4be35907bbf5dc81 | [
"BSD-3-Clause"
] | 3 | 2016-04-22T17:38:29.000Z | 2019-08-13T14:38:37.000Z | #!/usr/bin/env python
import sys
sys.path.insert(1, "..")
from SOAPpy.Errors import Error
from SOAPpy.Parser import parseSOAPRPC
original = """<?xml version="1.0"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:... | 30.37931 | 132 | 0.725312 | 120 | 881 | 5.325 | 0.525 | 0.065728 | 0.084507 | 0.098592 | 0.323944 | 0.28482 | 0.131455 | 0.131455 | 0 | 0 | 0 | 0.006494 | 0.125993 | 881 | 28 | 133 | 31.464286 | 0.823377 | 0.022701 | 0 | 0 | 0 | 0.043478 | 0.660465 | 0.047674 | 0 | 0 | 0 | 0 | 0.086957 | 0 | null | null | 0 | 0.130435 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0e97bd1c773c1a5622d071293cbf5def12d114a3 | 3,101 | py | Python | api/models.py | WalkingMachine/wonderland | 44e27ccdd981c6e6d2a8e7944156a8bc9e730931 | [
"Apache-2.0"
] | 3 | 2017-06-10T15:49:47.000Z | 2019-03-15T10:04:31.000Z | api/models.py | WalkingMachine/wonderland | 44e27ccdd981c6e6d2a8e7944156a8bc9e730931 | [
"Apache-2.0"
] | 11 | 2017-06-05T20:19:32.000Z | 2018-06-16T21:03:37.000Z | api/models.py | WalkingMachine/wonderland | 44e27ccdd981c6e6d2a8e7944156a8bc9e730931 | [
"Apache-2.0"
] | 2 | 2017-07-17T18:03:45.000Z | 2021-11-12T03:36:58.000Z | from django.db import models
# Description of an object in the arena
class Entity(models.Model):
entityId = models.AutoField(primary_key=True)
entityClass = models.CharField(max_length=30)
entityName = models.CharField(max_length=30, null=True, blank=True)
entityCategory = models.CharField(max_length=... | 46.984848 | 119 | 0.741696 | 377 | 3,101 | 6.039788 | 0.236074 | 0.12253 | 0.15415 | 0.201581 | 0.60123 | 0.564339 | 0.434343 | 0.434343 | 0.132191 | 0 | 0 | 0.006798 | 0.146082 | 3,101 | 65 | 120 | 47.707692 | 0.853097 | 0.063528 | 0 | 0.046512 | 0 | 0 | 0.006211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.023256 | 0.046512 | 0.976744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0ea75c30072eee31077e1649933e02a8c3a47e21 | 2,617 | py | Python | meiduo_mall/scripts/regenerate_detail_html.py | 1103928458/meiduo_drf | 49595755f264b09ea748b4deb8a88bba5eb8557b | [
"MIT"
] | null | null | null | meiduo_mall/scripts/regenerate_detail_html.py | 1103928458/meiduo_drf | 49595755f264b09ea748b4deb8a88bba5eb8557b | [
"MIT"
] | null | null | null | meiduo_mall/scripts/regenerate_detail_html.py | 1103928458/meiduo_drf | 49595755f264b09ea748b4deb8a88bba5eb8557b | [
"MIT"
] | 1 | 2020-11-10T07:22:42.000Z | 2020-11-10T07:22:42.000Z | # from django.shortcuts import render
# import os
# from django.conf import settings
# from goods.models import SKU
# from contents.utils import get_categories
# from goods.utils import get_breadcrumb
#
# def generate_static_sku_detail_html(sku_id):
#
# sku = SKU.objects.get(id=sku_id)
#
# category = sku.catego... | 37.927536 | 101 | 0.620558 | 348 | 2,617 | 4.359195 | 0.304598 | 0.053395 | 0.047462 | 0.037574 | 0.124588 | 0.104153 | 0.076467 | 0.034278 | 0.034278 | 0.034278 | 0 | 0.032581 | 0.237677 | 2,617 | 69 | 102 | 37.927536 | 0.72782 | 0.938097 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0eafba60413846c138910dc0d814f1ad191425ea | 1,841 | py | Python | run_extraction_and_generation.py | aychen99/Excavating-Occaneechi-Town | 6e864ca69ff1881554eb4c88aebed236bafbeaf4 | [
"MIT"
] | 1 | 2020-10-01T01:07:11.000Z | 2020-10-01T01:07:11.000Z | run_extraction_and_generation.py | aychen99/Excavating-Occaneechi-Town | 6e864ca69ff1881554eb4c88aebed236bafbeaf4 | [
"MIT"
] | null | null | null | run_extraction_and_generation.py | aychen99/Excavating-Occaneechi-Town | 6e864ca69ff1881554eb4c88aebed236bafbeaf4 | [
"MIT"
] | null | null | null | import json
import pathlib
from src.extract_old_site.extract import run_extraction
from src.generate_new_site.generate import generate_site
if __name__ == "__main__":
script_root_dir = pathlib.Path(__file__).parent
config = None
with open((script_root_dir / "config.json")) as f:
config = json.load... | 38.354167 | 105 | 0.612167 | 195 | 1,841 | 5.54359 | 0.384615 | 0.046253 | 0.06013 | 0.029602 | 0.118409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204237 | 1,841 | 47 | 106 | 39.170213 | 0.737884 | 0.072243 | 0 | 0.171429 | 1 | 0 | 0.338624 | 0.191064 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0.114286 | 0 | 0.114286 | 0.114286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ecfee91de6afd15c9b4944fc8130ce2c7df090a | 162 | py | Python | top_players.py | ergest/Fantasy-Premier-League | 7773eaad57058e760c5d1f77cfa98d2a06d73e48 | [
"MIT"
] | 1,011 | 2016-12-30T09:37:45.000Z | 2022-03-31T02:50:09.000Z | top_players.py | ergest/Fantasy-Premier-League | 7773eaad57058e760c5d1f77cfa98d2a06d73e48 | [
"MIT"
] | 111 | 2018-04-13T02:02:09.000Z | 2022-02-21T05:07:39.000Z | top_players.py | ergest/Fantasy-Premier-League | 7773eaad57058e760c5d1f77cfa98d2a06d73e48 | [
"MIT"
] | 739 | 2017-12-27T03:30:18.000Z | 2022-03-22T14:09:04.000Z | from getters import *
from parsers import *
def main():
data = get_data()
parse_top_players(data, 'data/2020-21')
if __name__ == '__main__':
main()
| 16.2 | 43 | 0.654321 | 22 | 162 | 4.318182 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.209877 | 162 | 9 | 44 | 18 | 0.695313 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ed81731d9af7ea6f386a90d704f7cac21f33072 | 194 | py | Python | QRCodeLib/qrcodelib/format/mode_indicator.py | yas78/QRCodeLibPy | 7b2c489b5e38aa23619ae41bff7a31993885275b | [
"MIT"
] | null | null | null | QRCodeLib/qrcodelib/format/mode_indicator.py | yas78/QRCodeLibPy | 7b2c489b5e38aa23619ae41bff7a31993885275b | [
"MIT"
] | 1 | 2019-11-04T13:44:44.000Z | 2019-11-04T13:44:44.000Z | QRCodeLib/qrcodelib/format/mode_indicator.py | yas78/QRCodeLibPy | 7b2c489b5e38aa23619ae41bff7a31993885275b | [
"MIT"
] | null | null | null | class ModeIndicator:
LENGTH = 4
TERMINATOR_VALUE = 0x0
NUMERIC_VALUE = 0x1
ALPHANUMERIC_VALUE = 0x2
STRUCTURED_APPEND_VALUE = 0x3
BYTE_VALUE = 0x4
KANJI_VALUE = 0x8
| 19.4 | 33 | 0.690722 | 23 | 194 | 5.521739 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091549 | 0.268041 | 194 | 9 | 34 | 21.555556 | 0.802817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092784 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ee162a59b2d4c88fd31a1e5da83b93341c5641c | 2,980 | py | Python | planner/migrations/0020_auto_20171028_1709.py | zhajio1988/Vplanner | 2b84bac7c8e36fde5eecc73682fde561613273d1 | [
"Apache-2.0"
] | 4 | 2019-08-26T01:20:35.000Z | 2022-01-26T09:18:27.000Z | planner/migrations/0020_auto_20171028_1709.py | zhajio1988/Vplanner | 2b84bac7c8e36fde5eecc73682fde561613273d1 | [
"Apache-2.0"
] | null | null | null | planner/migrations/0020_auto_20171028_1709.py | zhajio1988/Vplanner | 2b84bac7c8e36fde5eecc73682fde561613273d1 | [
"Apache-2.0"
] | 1 | 2020-07-27T16:14:01.000Z | 2020-07-27T16:14:01.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-28 09:09
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('planner', '0019_auto_20171028... | 59.6 | 171 | 0.667785 | 294 | 2,980 | 6.608844 | 0.35034 | 0.079259 | 0.09264 | 0.168811 | 0.506948 | 0.506948 | 0.506948 | 0.487391 | 0.424086 | 0.424086 | 0 | 0.035774 | 0.193289 | 2,980 | 49 | 172 | 60.816327 | 0.772463 | 0.022819 | 0 | 0.095238 | 1 | 0 | 0.167068 | 0.007907 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ee771d4ce34d997b16dc36b66c0cfae9cd23bd9 | 1,177 | py | Python | typhon/core/type_system/constraints/member_constraint.py | strongrex2001/typhon | 7a8ad7e0252768844009ab331fc8aa61350f23a9 | [
"Apache-2.0"
] | 4 | 2021-03-03T12:44:34.000Z | 2021-07-03T10:15:43.000Z | typhon/core/type_system/constraints/member_constraint.py | eliphatfs/typhon | 7a8ad7e0252768844009ab331fc8aa61350f23a9 | [
"Apache-2.0"
] | null | null | null | typhon/core/type_system/constraints/member_constraint.py | eliphatfs/typhon | 7a8ad7e0252768844009ab331fc8aa61350f23a9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 14 09:40:01 2021
@author: eliphat
"""
from ..type_var import TypeVar
from ..type_repr import RecordType, BottomType
from ..system import TypeSystem
from .base_constraint import BaseConstraint
from .equality_constraint import EqualityConstraint
class MemberConstraint(Bas... | 28.02381 | 74 | 0.607477 | 148 | 1,177 | 4.709459 | 0.432432 | 0.040172 | 0.040172 | 0.05165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015644 | 0.293968 | 1,177 | 41 | 75 | 28.707317 | 0.823105 | 0.064571 | 0 | 0.068966 | 0 | 0 | 0.028362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.172414 | 0.103448 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
7eee18f21f85e2ef6c713447b04ed57350a47292 | 3,281 | py | Python | pysnmp-with-texts/Juniper-V35-CONF.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/Juniper-V35-CONF.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/Juniper-V35-CONF.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 Juniper-V35-CONF (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-V35-CONF
# Produced by pysmi-0.3.4 at Wed May 1 14:04:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | 105.83871 | 477 | 0.772021 | 389 | 3,281 | 6.506427 | 0.439589 | 0.063611 | 0.049783 | 0.065192 | 0.307388 | 0.229158 | 0.219676 | 0.203872 | 0.203872 | 0.203872 | 0 | 0.081951 | 0.09997 | 3,281 | 30 | 478 | 109.366667 | 0.775144 | 0.09936 | 0 | 0.136364 | 0 | 0.136364 | 0.410726 | 0.014936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
7d0038100c8c0111fa664f6eb6cc9dd2beee4fca | 335 | py | Python | chatting/models.py | aliakbars/tbdc | ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55 | [
"Apache-2.0"
] | null | null | null | chatting/models.py | aliakbars/tbdc | ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55 | [
"Apache-2.0"
] | null | null | null | chatting/models.py | aliakbars/tbdc | ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Chat(models.Model):
content = models.TextField()
sender = models.ForeignKey(User)
receiver = models.ForeignKey(User)
date_created = models.DateTimeField(aut... | 30.454545 | 58 | 0.776119 | 44 | 335 | 5.727273 | 0.659091 | 0.079365 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143284 | 335 | 11 | 58 | 30.454545 | 0.878049 | 0.071642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
7d187ae720e582888dbe9f2c84697c0a7a77dbce | 352 | py | Python | curso_em_video/mundo_1/exs_python/ExPy011.py | LuiZamberlan/Ex.-Python | f5b6e4782e0ce0e3fead82b126b52588e1bc21b0 | [
"MIT"
] | 1 | 2020-09-19T21:39:12.000Z | 2020-09-19T21:39:12.000Z | curso_em_video/mundo_1/exs_python/ExPy011.py | LuiZamberlan/Ex.-Python | f5b6e4782e0ce0e3fead82b126b52588e1bc21b0 | [
"MIT"
] | null | null | null | curso_em_video/mundo_1/exs_python/ExPy011.py | LuiZamberlan/Ex.-Python | f5b6e4782e0ce0e3fead82b126b52588e1bc21b0 | [
"MIT"
] | null | null | null | l = float(input('Digite a largura da parede em metros: '))
al = float(input('Digite a altura da parede em metros: '))
#Um litro de tinta pinta 2m², largura * altura da parede obtemos a área dela em m² e dividimos por dois para obter a quantidade de tinta necessária.
lt = (l * al) / 2
print(f'Com uma parede {l}x{al}, ... | 44 | 148 | 0.704545 | 66 | 352 | 3.757576 | 0.606061 | 0.096774 | 0.129032 | 0.137097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017483 | 0.1875 | 352 | 7 | 149 | 50.285714 | 0.84965 | 0.417614 | 0 | 0 | 0 | 0 | 0.632353 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.