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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d1f389e1911302cf6661f372eb084d42ba606639 | 11,399 | py | Python | sdk/python/pulumi_azure/batch/get_pool.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/batch/get_pool.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/batch/get_pool.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilitie... | 41.908088 | 352 | 0.683042 | 1,341 | 11,399 | 5.489187 | 0.146905 | 0.023231 | 0.034778 | 0.065209 | 0.328624 | 0.203641 | 0.149029 | 0.102839 | 0.061948 | 0.041027 | 0 | 0.000113 | 0.223528 | 11,399 | 271 | 353 | 42.062731 | 0.831544 | 0.151066 | 0 | 0.108696 | 1 | 0 | 0.192403 | 0.067604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103261 | false | 0 | 0.038043 | 0.021739 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1fef585f8365b6cd144d692121bfb6f868b3da6 | 4,408 | py | Python | python/FindMaxSymString.py | Justontheway/data-science | 380b15e6763ec295ef1263616d9023f6f772cb3f | [
"Apache-2.0"
] | null | null | null | python/FindMaxSymString.py | Justontheway/data-science | 380b15e6763ec295ef1263616d9023f6f772cb3f | [
"Apache-2.0"
] | 4 | 2017-03-27T09:03:18.000Z | 2017-04-25T02:56:30.000Z | python/FindMaxSymString.py | Justontheway/data-science | 380b15e6763ec295ef1263616d9023f6f772cb3f | [
"Apache-2.0"
] | null | null | null | #-*- coding:utf8 -*-
def getMaxSymStrFromCenterOdd(_string, cur_len):
"""Get The Max Symmetry String of @_string from center.
Return the start, end index of the Symmetry-String."""
pos_center = cur_len >> 1
offset = 1
while offset <= pos_center and _string[pos_center - offset] == _string[pos_cente... | 34.4375 | 96 | 0.59823 | 517 | 4,408 | 4.713733 | 0.106383 | 0.086172 | 0.059089 | 0.039393 | 0.679934 | 0.643824 | 0.578991 | 0.578991 | 0.578991 | 0.578991 | 0 | 0.015899 | 0.315109 | 4,408 | 127 | 97 | 34.708661 | 0.791322 | 0.023367 | 0 | 0.7 | 0 | 0 | 0.013033 | 0 | 0 | 0 | 0.003067 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d1ff73926957a3ac57a8a91f1257a8e83e8b93e2 | 840 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/payloadProtocolType_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/payloadProtocolType_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/payloadProtocolType_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class PayloadProtocolType(Base):
__slots__ = ()
_SDM_NAME = 'payloadProtocolType'
_SDM_ATT_MAP = {
'HeaderPayloadProtocolId': 'payloadProtocolType.header.payloadProtocolId-1',
}
def __init__(self, parent, list... | 31.111111 | 98 | 0.70119 | 88 | 840 | 6.318182 | 0.488636 | 0.070144 | 0.102518 | 0.115108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003008 | 0.208333 | 840 | 26 | 99 | 32.307692 | 0.833083 | 0.10119 | 0 | 0 | 0 | 0 | 0.155245 | 0.128671 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0612eb3f61130b58beb540b2a47fd2f7a46d71b3 | 973 | py | Python | setup.py | swyddfa/sphinx-stylo | e4a41e3b1ec82cdb21eacd13745d2de7b13559bd | [
"MIT"
] | 1 | 2018-10-30T10:07:28.000Z | 2018-10-30T10:07:28.000Z | setup.py | swyddfa/sphinx-stylo | e4a41e3b1ec82cdb21eacd13745d2de7b13559bd | [
"MIT"
] | null | null | null | setup.py | swyddfa/sphinx-stylo | e4a41e3b1ec82cdb21eacd13745d2de7b13559bd | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
exec(open("sphinx_stylo/_version.py").read())
def readme():
with open("README.md") as f:
return f.read()
setup(
name="sphinx-stylo",
version=__version__,
description="Insert images into Sphinx documentation using inline code and stylo",
long_d... | 28.617647 | 86 | 0.641316 | 108 | 973 | 5.62963 | 0.638889 | 0.072368 | 0.059211 | 0.085526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007792 | 0.208633 | 973 | 33 | 87 | 29.484848 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.435766 | 0.024666 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | true | 0 | 0.035714 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae061ec66274c343d4e886fe183507bd61a0348f | 4,651 | py | Python | nena/generator/ccsds_encoder.py | cypher-me/HAS-Qualifier-Challenges | bb795303716155dad4a930880a58fecb5d9b50c5 | [
"MIT"
] | 75 | 2020-07-20T20:54:00.000Z | 2022-03-09T09:18:37.000Z | nena/generator/ccsds_encoder.py | cypher-me/HAS-Qualifier-Challenges | bb795303716155dad4a930880a58fecb5d9b50c5 | [
"MIT"
] | 3 | 2020-09-13T00:46:49.000Z | 2021-07-06T16:18:22.000Z | nena/generator/ccsds_encoder.py | cypher-me/HAS-Qualifier-Challenges | bb795303716155dad4a930880a58fecb5d9b50c5 | [
"MIT"
] | 14 | 2020-07-22T16:34:51.000Z | 2021-09-13T12:19:59.000Z | # Given an input file, generate a ccsds.bin file that encodes the bytestream
from ccsds.model.SpacePacket import SpacePacketProtocolEncoder, SpacePacketType, SpacePacketProtocolDecoder
from ccsds.model.TCChannelCoding import CLTUEncoder, CLTUDecoder
from ccsds.model.TCDataLinkPacket import TCDataLinkProtocolEncoder, Co... | 38.122951 | 119 | 0.719415 | 640 | 4,651 | 4.995313 | 0.35625 | 0.050047 | 0.026275 | 0.045042 | 0.16578 | 0.105099 | 0.049421 | 0.027526 | 0.027526 | 0 | 0 | 0.06714 | 0.212212 | 4,651 | 121 | 120 | 38.438017 | 0.805404 | 0.220383 | 0 | 0.142857 | 1 | 0 | 0.26137 | 0.006908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae0e1d9c00eef27446aa1fae9b4bc5561a706674 | 1,158 | py | Python | src/mud/text/split.py | Martakan/YUMS | 57c8c02eac70a62233f9a48d78becb1a25bed64e | [
"MIT"
] | null | null | null | src/mud/text/split.py | Martakan/YUMS | 57c8c02eac70a62233f9a48d78becb1a25bed64e | [
"MIT"
] | null | null | null | src/mud/text/split.py | Martakan/YUMS | 57c8c02eac70a62233f9a48d78becb1a25bed64e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 1 10:46:16 2020
@author: AzureD
Useful tools to splitting and cleaning up input text.
"""
def cleanly(text: str):
"""
Splits the text into words at spaces, removing excess spaces.
"""
segmented = text.split(' ')
clean = [s for... | 33.085714 | 98 | 0.672712 | 167 | 1,158 | 4.664671 | 0.562874 | 0.077022 | 0.046213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023359 | 0.223661 | 1,158 | 35 | 99 | 33.085714 | 0.843159 | 0.580311 | 0 | 0 | 0 | 0 | 0.004739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae103884d1f0e99f45bebef154236fc2c9299725 | 1,860 | py | Python | pcassandra/tests.py | hgdeoro/pcassandra | c91ff6adc9e46772ce3f975a8b89191eb9bd7c1f | [
"BSD-3-Clause"
] | null | null | null | pcassandra/tests.py | hgdeoro/pcassandra | c91ff6adc9e46772ce3f975a8b89191eb9bd7c1f | [
"BSD-3-Clause"
] | null | null | null | pcassandra/tests.py | hgdeoro/pcassandra | c91ff6adc9e46772ce3f975a8b89191eb9bd7c1f | [
"BSD-3-Clause"
] | null | null | null | import uuid
from django import test
from django.contrib import auth
from django.test.utils import override_settings
from pcassandra import tests_utils
from pcassandra.dj18.auth import models
PCASSANDRA_AUTH_USER_MODEL = 'pcassandra.dj18.auth.models.CassandraUser'
class PCassandraBaseTest(test.TestCase, tests_util... | 31.525424 | 78 | 0.722043 | 203 | 1,860 | 6.320197 | 0.270936 | 0.062354 | 0.098207 | 0.125487 | 0.453624 | 0.385815 | 0.385815 | 0.385815 | 0.290725 | 0.290725 | 0 | 0.006028 | 0.197312 | 1,860 | 58 | 79 | 32.068966 | 0.853315 | 0 | 0 | 0.219512 | 0 | 0 | 0.02957 | 0.022043 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.073171 | false | 0.097561 | 0.146341 | 0 | 0.292683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae143be5afe98ffd8fa470eb805bdcc73887b038 | 482 | py | Python | 2016-10-04/solution.py | 3mmar7amed/Practice-Problems | 44a6b357caae096d953c8b8affeef3209b02638b | [
"MIT"
] | 2 | 2015-09-29T16:33:15.000Z | 2015-10-04T02:56:27.000Z | 2016-10-04/solution.py | 3mmar7amed/Practice-Problems | 44a6b357caae096d953c8b8affeef3209b02638b | [
"MIT"
] | null | null | null | 2016-10-04/solution.py | 3mmar7amed/Practice-Problems | 44a6b357caae096d953c8b8affeef3209b02638b | [
"MIT"
] | 4 | 2015-09-28T22:45:58.000Z | 2021-11-21T16:34:55.000Z |
q = int(input())
for _ in range(q):
n = int(input())
m = []
for _ in range(n*2):
m.append(list(map(int, input().split(' '))))
# Sorcery here...
bigMax = 0
for i in range(n):
for j in range(n):
try:
bigMax += max(m[i][j], m[i][2*... | 21.909091 | 89 | 0.379668 | 73 | 482 | 2.479452 | 0.356164 | 0.154696 | 0.066298 | 0.044199 | 0.110497 | 0.066298 | 0 | 0 | 0 | 0 | 0 | 0.034722 | 0.40249 | 482 | 21 | 90 | 22.952381 | 0.59375 | 0.116183 | 0 | 0 | 0 | 0 | 0.00237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 |
ae177d2842e4d3ceb3a8ccf51650e1ef95fe0c13 | 1,199 | py | Python | tests/test_profile.py | Bmcgarry194/presume | 736c988000d705309eedb42c721cd11a6fcc894d | [
"Apache-2.0"
] | null | null | null | tests/test_profile.py | Bmcgarry194/presume | 736c988000d705309eedb42c721cd11a6fcc894d | [
"Apache-2.0"
] | null | null | null | tests/test_profile.py | Bmcgarry194/presume | 736c988000d705309eedb42c721cd11a6fcc894d | [
"Apache-2.0"
] | null | null | null | """ Tests for profile.py
"""
import unittest as unittest
from src.profile import Profile
class Test(unittest.TestCase):
def test_init(self):
example = Profile(name="Tester McTasty", phone_num="8087654321",
email="mctasty@me.com")
self.assertEqual(example.name, "Tester Mc... | 34.257143 | 72 | 0.655546 | 136 | 1,199 | 5.632353 | 0.330882 | 0.137076 | 0.201044 | 0.151436 | 0.231071 | 0.165796 | 0.120104 | 0.120104 | 0 | 0 | 0 | 0.037736 | 0.204337 | 1,199 | 34 | 73 | 35.264706 | 0.765199 | 0.016681 | 0 | 0.08 | 0 | 0 | 0.185312 | 0 | 0 | 0 | 0 | 0 | 0.32 | 1 | 0.12 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae19e0efbb4953ccc59a5183f08b4c97c478d25f | 422 | py | Python | backend/tests/python_api_mulltiuser_check/DatabaseInterface.py | prisms-center/materialscommons.org | 421bd977dc83dc572a60606b5e3c1d8f2b0a7566 | [
"MIT"
] | 6 | 2015-09-25T20:07:30.000Z | 2021-03-07T02:41:35.000Z | backend/tests/python_api_mulltiuser_check/DatabaseInterface.py | materials-commons/materialscommons.org | 421bd977dc83dc572a60606b5e3c1d8f2b0a7566 | [
"MIT"
] | 770 | 2015-03-04T17:13:31.000Z | 2019-05-03T13:55:57.000Z | backend/tests/python_api_mulltiuser_check/DatabaseInterface.py | prisms-center/materialscommons.org | 421bd977dc83dc572a60606b5e3c1d8f2b0a7566 | [
"MIT"
] | 3 | 2016-06-23T19:36:20.000Z | 2020-09-06T12:26:00.000Z | from .DB import DbConnection
class DatabaseInterface:
def __init__(self):
db = DbConnection()
self.conn = db.connection()
self.r = db.interface()
def get_user_by_id(self, user_id):
return self.r.table('users').get(user_id).run(self.conn)
def add_user(self, user):
... | 28.133333 | 66 | 0.649289 | 61 | 422 | 4.213115 | 0.393443 | 0.093385 | 0.070039 | 0.085603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21564 | 422 | 15 | 67 | 28.133333 | 0.776435 | 0 | 0 | 0 | 0 | 0 | 0.023641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae1c4deefb4a20b6ad5b7fdff9611783314f8cb9 | 426 | py | Python | setup.py | jbn/streamlines | 851beda99705c72021af6de3af5acee7d7ad8cd7 | [
"MIT"
] | null | null | null | setup.py | jbn/streamlines | 851beda99705c72021af6de3af5acee7d7ad8cd7 | [
"MIT"
] | null | null | null | setup.py | jbn/streamlines | 851beda99705c72021af6de3af5acee7d7ad8cd7 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="streamlines",
version="0.0.2",
packages=["streamlines"],
license="License :: OSI Approved :: MIT License",
author="John Bjorn Nelson",
author_email="jbn@abreka.com",
description="Tools for working with files as line streams.",
long_description=o... | 28.4 | 64 | 0.669014 | 54 | 426 | 5.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014124 | 0.169014 | 426 | 14 | 65 | 30.428571 | 0.782486 | 0 | 0 | 0 | 0 | 0 | 0.453052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae2f0f4da760d9fc2a7a993d61c358bfc095219a | 6,394 | py | Python | vendor/packages/translate-toolkit/translate/storage/test_ts2.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/translate-toolkit/translate/storage/test_ts2.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | 1 | 2021-12-13T20:55:07.000Z | 2021-12-13T20:55:07.000Z | vendor/packages/translate-toolkit/translate/storage/test_ts2.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2008-2009 Zuza Software Foundation
#
# This file is part of the Translate Toolkit.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; e... | 34.010638 | 98 | 0.650297 | 772 | 6,394 | 5.361399 | 0.281088 | 0.034791 | 0.041314 | 0.021744 | 0.505678 | 0.455907 | 0.421358 | 0.402754 | 0.381493 | 0.342595 | 0 | 0.013983 | 0.217079 | 6,394 | 187 | 99 | 34.192513 | 0.812825 | 0.12152 | 0 | 0.524823 | 0 | 0 | 0.388299 | 0.075089 | 0 | 0 | 0 | 0 | 0.163121 | 0 | null | null | 0 | 0.049645 | null | null | 0.028369 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae30bb9229f99990c441cdf5029be4f76c985267 | 1,075 | py | Python | Lib/turtledemo/peace.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/turtledemo/peace.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/turtledemo/peace.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | #!/usr/bin/env python3
""" turtle-example-suite:
tdemo_peace.py
A simple drawing suitable jako a beginner's
programming example. Aside z the
peacecolors assignment oraz the dla loop,
it only uses turtle commands.
"""
z turtle zaimportuj *
def main():
peacecolors = ("red3", "orange", "yellow... | 17.33871 | 67 | 0.545116 | 122 | 1,075 | 4.729508 | 0.639344 | 0.057192 | 0.045061 | 0.055459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086897 | 0.325581 | 1,075 | 61 | 68 | 17.622951 | 0.708966 | 0.066047 | 0 | 0.348837 | 0 | 0 | 0.090216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
ae35cec20c03cbd9bc32a79ee5f694d533313da9 | 337 | py | Python | setup.py | soar/gitric | 5e27f82343ff1082137482d3c1a07944140ba411 | [
"MIT"
] | 43 | 2015-01-07T00:55:45.000Z | 2021-03-19T15:57:30.000Z | setup.py | dbravender/gitric | 5e27f82343ff1082137482d3c1a07944140ba411 | [
"MIT"
] | 7 | 2015-03-19T15:26:41.000Z | 2022-03-29T21:52:46.000Z | setup.py | soar/gitric | 5e27f82343ff1082137482d3c1a07944140ba411 | [
"MIT"
] | 12 | 2015-04-24T22:05:00.000Z | 2017-11-15T14:39:39.000Z | from distutils.core import setup
setup(
name='gitric',
version='0.4',
description='simple git-based deployment for fabric',
author='Dan Bravender',
author_email='dan.bravender@gmail.com',
url='http://dan.bravender.us',
download_url='http://github.com/dbravender/gitric/tarball/0.4',
pack... | 28.083333 | 67 | 0.68546 | 44 | 337 | 5.204545 | 0.704545 | 0.157205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.151335 | 337 | 11 | 68 | 30.636364 | 0.786713 | 0 | 0 | 0 | 0 | 0 | 0.47181 | 0.068249 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae5e649c44c44429e8dc6af30023a5e4bc275f7b | 865 | py | Python | src/common/extractor.py | ideaOzy/autotest_interface | 113fe5b2260c63683f7c2ec093cb4bad0c970700 | [
"Apache-2.0"
] | null | null | null | src/common/extractor.py | ideaOzy/autotest_interface | 113fe5b2260c63683f7c2ec093cb4bad0c970700 | [
"Apache-2.0"
] | null | null | null | src/common/extractor.py | ideaOzy/autotest_interface | 113fe5b2260c63683f7c2ec093cb4bad0c970700 | [
"Apache-2.0"
] | 2 | 2018-10-08T07:15:54.000Z | 2019-01-05T08:55:41.000Z | # -*- coding: utf-8 -*-
"""
抽取器,从响应结果中抽取部分数据
~~~~~~~~~~~
@Time: 2018/9/10 13:50
@author: ying.zhang01
@File: extractor.py
"""
import json
import jmespath
class JMESPathExtractor:
"""用JEMSPath实现对json格式数据的简单抽取。"""
def extract(self, query=None, body=None):
try:
return jmespath.search(quer... | 27.903226 | 306 | 0.625434 | 98 | 865 | 5.438776 | 0.72449 | 0.073171 | 0.090056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027739 | 0.166474 | 865 | 30 | 307 | 28.833333 | 0.711512 | 0.166474 | 0 | 0 | 0 | 0.076923 | 0.451977 | 0.274011 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae5e9eea311ecf6912e6b2d76f48952a2f87c9c1 | 2,215 | py | Python | language/python/python/variable_type/number/number_demo.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | 1 | 2019-11-25T07:23:42.000Z | 2019-11-25T07:23:42.000Z | language/python/python/variable_type/number/number_demo.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | 13 | 2020-01-07T16:09:47.000Z | 2022-03-02T12:51:44.000Z | language/python/python/variable_type/number/number_demo.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author: bigfoolliu
"""
python数字操作以及格式化相关
"""
from fractions import Fraction
def format_demo():
"""格式化输出数字示例"""
x = 1234.567
print(format(x, "0.2f")) # 保留两位小数
print(format(x, ">10.1f")) # 保留一位小数,靠右边,共10位数
print(format(x, "<10.1f")) # 保留一位小数,靠左边... | 19.094828 | 83 | 0.592777 | 332 | 2,215 | 3.75 | 0.319277 | 0.06747 | 0.086747 | 0.096386 | 0.125301 | 0.099598 | 0.081928 | 0.038554 | 0 | 0 | 0 | 0.092152 | 0.240632 | 2,215 | 115 | 84 | 19.26087 | 0.648038 | 0.201354 | 0 | 0 | 0 | 0.035088 | 0.115882 | 0.071765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.017544 | 0 | 0.105263 | 0.473684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ae638e43f1934215857f16b800a0584ff174d6c1 | 2,694 | py | Python | test/python/pipelinePoolPerf.py | webosce/umediaserver | 988605735c1e35937fbfb7ac28422dee678d70d6 | [
"Apache-2.0"
] | 8 | 2018-03-17T22:28:05.000Z | 2021-11-16T15:29:06.000Z | test/python/pipelinePoolPerf.py | webosce/umediaserver | 988605735c1e35937fbfb7ac28422dee678d70d6 | [
"Apache-2.0"
] | 1 | 2021-05-21T22:51:00.000Z | 2021-05-21T22:51:00.000Z | test/python/pipelinePoolPerf.py | webosce/umediaserver | 988605735c1e35937fbfb7ac28422dee678d70d6 | [
"Apache-2.0"
] | 4 | 2018-03-22T18:48:22.000Z | 2021-11-16T15:29:08.000Z | import time
import threading
import Queue
import argparse
import sys
from uMediaServer.uMediaClient import MediaPlayer
def proxy_thr(recv, send):
while True:
(ev, data) = recv.get()
print "ev '%s' = (%s)" % (ev, data)
send.put_nowait((ev, data))
def start_proxy(umc, send):
recv = Queu... | 31.694118 | 159 | 0.678916 | 354 | 2,694 | 5.090395 | 0.463277 | 0.029967 | 0.026637 | 0.044395 | 0.122087 | 0.122087 | 0.037736 | 0 | 0 | 0 | 0 | 0.053016 | 0.187825 | 2,694 | 84 | 160 | 32.071429 | 0.770567 | 0.337045 | 0 | 0.130435 | 0 | 0 | 0.14798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021739 | 0.130435 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae66db27d4d25a69ce06a390c25c5d9041a611a6 | 3,744 | py | Python | ecmcli/commands/alerts.py | cayspekko/ecmcli | f28ec2d5a79421198133ff958bb192e80337b844 | [
"MIT"
] | 9 | 2015-03-30T14:16:42.000Z | 2021-08-29T06:58:12.000Z | ecmcli/commands/alerts.py | cayspekko/ecmcli | f28ec2d5a79421198133ff958bb192e80337b844 | [
"MIT"
] | 4 | 2015-03-28T17:41:03.000Z | 2018-12-15T18:38:31.000Z | ecmcli/commands/alerts.py | cayspekko/ecmcli | f28ec2d5a79421198133ff958bb192e80337b844 | [
"MIT"
] | 7 | 2015-10-02T02:27:10.000Z | 2020-08-26T10:15:13.000Z | """
Analyze and Report ECM Alerts.
"""
import collections
import humanize
import shellish
import sys
from . import base
from .. import ui
def since(dt):
""" Return humanized time since for an absolute datetime. """
since = dt.now(tz=dt.tzinfo) - dt
return humanize.naturaltime(since)[:-4]
class Alerts(b... | 31.2 | 73 | 0.534455 | 418 | 3,744 | 4.657895 | 0.270335 | 0.024653 | 0.030817 | 0.039034 | 0.717514 | 0.681048 | 0.667694 | 0.667694 | 0.601438 | 0.601438 | 0 | 0.001196 | 0.330128 | 3,744 | 119 | 74 | 31.462185 | 0.77512 | 0.061432 | 0 | 0.62069 | 0 | 0 | 0.133774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091954 | false | 0 | 0.068966 | 0 | 0.264368 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae68bd2961a34b4efb5f2ecc7b720afc8e4793d7 | 7,264 | py | Python | corgie/layers/volumetric_layers.py | scottwedge/corgie | c6bad5d2bd2910af859b9222045c42e9eefc3ef7 | [
"Apache-2.0"
] | null | null | null | corgie/layers/volumetric_layers.py | scottwedge/corgie | c6bad5d2bd2910af859b9222045c42e9eefc3ef7 | [
"Apache-2.0"
] | null | null | null | corgie/layers/volumetric_layers.py | scottwedge/corgie | c6bad5d2bd2910af859b9222045c42e9eefc3ef7 | [
"Apache-2.0"
] | null | null | null | import copy
import torch
from corgie import constants, exceptions
from corgie.log import logger as corgie_logger
from corgie.boundingcube import BoundingCube
from corgie.layers.base import register_layer_type, BaseLayerType
from corgie import helpers
class VolumetricLayer(BaseLayerType):
def __init__(self, data... | 34.264151 | 91 | 0.589482 | 832 | 7,264 | 4.871394 | 0.177885 | 0.059709 | 0.02418 | 0.041451 | 0.506538 | 0.482852 | 0.481125 | 0.439428 | 0.39921 | 0.373057 | 0 | 0.010322 | 0.319796 | 7,264 | 211 | 92 | 34.42654 | 0.809958 | 0.043778 | 0 | 0.496894 | 0 | 0 | 0.049195 | 0 | 0 | 0 | 0 | 0.004739 | 0 | 1 | 0.204969 | false | 0 | 0.043478 | 0.093168 | 0.453416 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae6b0485267f9e69d2a3d9d857a06ca08a20abd0 | 2,869 | py | Python | examples/demo-generated-data-synthpop-disclosure-risk.py | alan-turing-institute/QUIPP-workflow | db97911f2330902a2fc9156b9380a56199adf3f0 | [
"MIT"
] | 17 | 2019-12-16T14:23:14.000Z | 2022-03-14T05:05:06.000Z | examples/demo-generated-data-synthpop-disclosure-risk.py | alan-turing-institute/QUIPP-workflow | db97911f2330902a2fc9156b9380a56199adf3f0 | [
"MIT"
] | 30 | 2020-01-07T14:01:28.000Z | 2021-12-19T22:46:31.000Z | examples/demo-generated-data-synthpop-disclosure-risk.py | alan-turing-institute/QUIPP-workflow | db97911f2330902a2fc9156b9380a56199adf3f0 | [
"MIT"
] | 4 | 2020-03-19T13:32:49.000Z | 2022-02-11T06:27:32.000Z | """
This example runs the pipeline on four synthpop syntheses (using the input files in
`examples/parameter_files/generated-synthpop-dr`) and plots a graph of a utility score (relative
difference of F1 scores) against a privacy score (disclosure risk).
"""
import json
import os
import subprocess
import shutil
import ... | 28.979798 | 96 | 0.682119 | 400 | 2,869 | 4.755 | 0.405 | 0.036803 | 0.02103 | 0.032597 | 0.138801 | 0.059937 | 0.029443 | 0.029443 | 0 | 0 | 0 | 0.008745 | 0.202858 | 2,869 | 98 | 97 | 29.27551 | 0.822912 | 0.230394 | 0 | 0.034483 | 1 | 0 | 0.20074 | 0.054117 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0 | 0.224138 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae6e3b223ddc5e27994b04d473940279c1aef870 | 1,239 | py | Python | Xian/week 6/38 Zodiac.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | Xian/week 6/38 Zodiac.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | Xian/week 6/38 Zodiac.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | '''
Write a program to read two integers that are the date and month of birth. They are used to find the
user's zodiac sign. The program should print type the birth signs on the screen. The details of each zodiac
are as follows.
22 Dec - 19 Jan Capricorn
20 Jan - 18 Feb Aquarius
19 Feb - 20 Mar Pisces
21 Mar - 19 Apr A... | 26.934783 | 107 | 0.634383 | 236 | 1,239 | 3.364407 | 0.347458 | 0.04534 | 0.018892 | 0.034005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090715 | 0.243745 | 1,239 | 45 | 108 | 27.533333 | 0.748132 | 0.409201 | 0 | 0 | 0 | 0 | 0.212707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ae6e4e7ba9517ecc07299302263682c678c5bfcd | 402 | py | Python | pydevtoolkit/_forked_pdb.py | nikAizuddin/pydevtoolkit | 710bc931fdf91a1821eca7ddefca80ac491bb01b | [
"MIT"
] | null | null | null | pydevtoolkit/_forked_pdb.py | nikAizuddin/pydevtoolkit | 710bc931fdf91a1821eca7ddefca80ac491bb01b | [
"MIT"
] | null | null | null | pydevtoolkit/_forked_pdb.py | nikAizuddin/pydevtoolkit | 710bc931fdf91a1821eca7ddefca80ac491bb01b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import pdb
class ForkedPdb(pdb.Pdb):
"""A Pdb subclass that only be used from a forked multiprocessing child.
"""
def interaction(self, *args, **kwargs):
_stdin = sys.stdin
try:
sys.stdin = open(0)
pdb.Pdb.i... | 22.333333 | 76 | 0.574627 | 50 | 402 | 4.58 | 0.64 | 0.104803 | 0.165939 | 0.218341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010601 | 0.29602 | 402 | 17 | 77 | 23.647059 | 0.798587 | 0.293532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae6f5879e9bb772c43beb5260e879d446769899c | 820 | py | Python | multiplot.py | TAdeJong/python-ising | e8689bd293bb5b4c5816a51e2deb4cbde375ad0d | [
"MIT"
] | null | null | null | multiplot.py | TAdeJong/python-ising | e8689bd293bb5b4c5816a51e2deb4cbde375ad0d | [
"MIT"
] | null | null | null | multiplot.py | TAdeJong/python-ising | e8689bd293bb5b4c5816a51e2deb4cbde375ad0d | [
"MIT"
] | null | null | null | from numpy import *
import matplotlib.pyplot as plot
import __builtin__ as std
import sys
n=[20,30]
name = sys.argv[1]
print name
if len(sys.argv) > 2 :
n = sys.argv[2]
d = 2
#steps = 20*n**d
#grootte = n**d
#E = load(name+'_'+'E'+'.npy')
beta = load(name+'_40_beta'+'.npy')
plot.figure(0)
for i in n :
Chi = load... | 23.428571 | 76 | 0.646341 | 148 | 820 | 3.506757 | 0.371622 | 0.061657 | 0.030829 | 0.026975 | 0.289017 | 0.235067 | 0.235067 | 0.100193 | 0 | 0 | 0 | 0.022599 | 0.136585 | 820 | 34 | 77 | 24.117647 | 0.710452 | 0.070732 | 0 | 0.137931 | 0 | 0 | 0.237154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae807aa4ea5eb5ff81255358ab8dc058a81b1ea1 | 506 | py | Python | python/src/setup/main.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | python/src/setup/main.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | python/src/setup/main.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | '''
Created on Jun 14, 2013
@author: gcardwel
'''
import json
from paramtypes import SLOT
encodings = {}
encodings['boolean'] = { 0:'none', 1:''}
slots = {}
paramtraits = {}
slots['percent1'] = SLOT('percent1', '%', 1, 1, 0, 0, 'boolean1')
slots['boolean1'] = SLOT('boolean1', '', 1, 1, 0, 0... | 14.882353 | 66 | 0.565217 | 57 | 506 | 4.877193 | 0.508772 | 0.129496 | 0.021583 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054124 | 0.233202 | 506 | 33 | 67 | 15.333333 | 0.662371 | 0.083004 | 0 | 0 | 0 | 0 | 0.189125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ae85c70bf1c33dfe276ba635e2f0d8a5d48773d2 | 11,304 | py | Python | IMP Diacritics/03 Add new Anchors.py | andrestelex/Impallari-Fontlab-Macros | ed9f57715dd376b513ce1a7ddb4d683e893a849b | [
"Apache-2.0"
] | 10 | 2015-02-25T11:38:56.000Z | 2020-11-19T22:47:08.000Z | IMP Diacritics/03 Add new Anchors.py | andrestelex/Impallari-Fontlab-Macros | ed9f57715dd376b513ce1a7ddb4d683e893a849b | [
"Apache-2.0"
] | 3 | 2015-06-24T05:03:06.000Z | 2016-07-28T00:37:31.000Z | IMP Diacritics/03 Add new Anchors.py | andrestelex/Impallari-Fontlab-Macros | ed9f57715dd376b513ce1a7ddb4d683e893a849b | [
"Apache-2.0"
] | 5 | 2017-04-20T11:09:47.000Z | 2021-05-19T22:17:53.000Z | #FLM: 03 Add new Anchors
# Description:
# Adds new anchors
# Credits:
# Pablo Impallari
# http://www.impallari.com
print "Starting..."
# Get the Font
from robofab.world import CurrentFont
f = CurrentFont()
# Borrar Anchors Viejos
for glyph in f:
glyph.clearAnchors()
f.update()
# Get Metrics
ascenderHeight = f.... | 33.743284 | 107 | 0.597841 | 1,775 | 11,304 | 3.675493 | 0.073239 | 0.033415 | 0.112661 | 0.098099 | 0.553495 | 0.528663 | 0.415389 | 0.301655 | 0.301655 | 0.245555 | 0 | 0.042361 | 0.150035 | 11,304 | 334 | 108 | 33.844311 | 0.636657 | 0.034501 | 0 | 0.013393 | 0 | 0 | 0.174943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.004464 | null | null | 0.013393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae862e971570e6ad23cc23553910a896e42f9299 | 3,649 | py | Python | src/datahub/meteringpoints/models.py | project-origin/datahub-service | 0c3f27ee4fa0381ce3147f1fffef1108f13dc2c2 | [
"MIT"
] | 1 | 2021-04-23T08:19:49.000Z | 2021-04-23T08:19:49.000Z | src/datahub/meteringpoints/models.py | project-origin/datahub-service | 0c3f27ee4fa0381ce3147f1fffef1108f13dc2c2 | [
"MIT"
] | 1 | 2021-02-10T02:28:52.000Z | 2021-02-10T02:28:52.000Z | src/datahub/meteringpoints/models.py | project-origin/datahub-service | 0c3f27ee4fa0381ce3147f1fffef1108f13dc2c2 | [
"MIT"
] | null | null | null | import sqlalchemy as sa
from enum import Enum
from typing import List
from dataclasses import dataclass, field
from bip32utils import BIP32Key
from datahub.db import ModelBase
class MeasurementType(Enum):
PRODUCTION = 'production'
CONSUMPTION = 'consumption'
class MeteringPoint(ModelBase):
"""
Impl... | 29.666667 | 91 | 0.65333 | 408 | 3,649 | 5.732843 | 0.318627 | 0.054724 | 0.068405 | 0.082086 | 0.301838 | 0.223172 | 0.200086 | 0.086362 | 0.037623 | 0 | 0 | 0.002746 | 0.201699 | 3,649 | 122 | 92 | 29.909836 | 0.800206 | 0.217868 | 0 | 0.109375 | 0 | 0 | 0.074805 | 0.00856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.84375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ae92a393757af9c82c8f37c241a70cdcdc335b73 | 245 | py | Python | examples/basic/blank.py | BurtHarris/pcbflow | 67b3d113c8ed58557f1ae3d1a5a25db67bcf4cc3 | [
"BSD-3-Clause"
] | 15 | 2021-04-04T01:28:53.000Z | 2022-02-19T12:02:58.000Z | examples/basic/blank.py | BurtHarris/pcbflow | 67b3d113c8ed58557f1ae3d1a5a25db67bcf4cc3 | [
"BSD-3-Clause"
] | 4 | 2021-04-07T13:08:02.000Z | 2021-04-29T15:22:54.000Z | examples/basic/blank.py | BurtHarris/pcbflow | 67b3d113c8ed58557f1ae3d1a5a25db67bcf4cc3 | [
"BSD-3-Clause"
] | 5 | 2021-04-15T20:40:54.000Z | 2021-11-09T23:39:12.000Z | import math
import shapely.geometry as sg
from pcbflow import *
if __name__ == "__main__":
brd = Board((40, 30))
brd.add_outline()
brd.fill_layer("GTL", "GND")
brd.fill_layer("GBL", "GND")
brd.save("%s" % (__file__[:-3]))
| 18.846154 | 36 | 0.616327 | 35 | 245 | 3.885714 | 0.742857 | 0.102941 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02551 | 0.2 | 245 | 12 | 37 | 20.416667 | 0.668367 | 0 | 0 | 0 | 0 | 0 | 0.089796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ae995825668931e1b51e084fc375bfc658f0930f | 1,262 | py | Python | tests/native/core/test_cache.py | gskoljarev/transifex-python | 84e50a8339841418388e810e6eb693481f4c3532 | [
"Apache-2.0"
] | 14 | 2020-04-10T20:54:59.000Z | 2022-03-07T16:13:22.000Z | tests/native/core/test_cache.py | gskoljarev/transifex-python | 84e50a8339841418388e810e6eb693481f4c3532 | [
"Apache-2.0"
] | 60 | 2020-04-14T12:41:06.000Z | 2022-03-29T06:38:09.000Z | tests/native/core/test_cache.py | gskoljarev/transifex-python | 84e50a8339841418388e810e6eb693481f4c3532 | [
"Apache-2.0"
] | 6 | 2021-01-01T10:28:11.000Z | 2021-06-10T09:50:26.000Z | # -*- coding: utf-8 -*-
from transifex.native.cache import MemoryCache
class TestMemoryCache(object):
"""Tests the functionality of the MemoryCache class."""
def test_returns_none_if_not_exists(self):
cache = MemoryCache()
assert cache.get('missing_key', 'en') is None
def test_returns_en... | 31.55 | 59 | 0.426307 | 118 | 1,262 | 4.474576 | 0.372881 | 0.145833 | 0.185606 | 0.098485 | 0.094697 | 0.094697 | 0 | 0 | 0 | 0 | 0 | 0.001406 | 0.436609 | 1,262 | 39 | 60 | 32.358974 | 0.74121 | 0.057052 | 0 | 0.242424 | 0 | 0 | 0.151182 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.060606 | false | 0 | 0.030303 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
881ac1ee718da8ac8679d914d9c5d676f6f93a41 | 465 | py | Python | Exercicios/Mundo 1/ex023.py | EdsonRomao/CursoEmVideo | caf99f5a54c001069572a0318dfcaa50d028d362 | [
"MIT"
] | null | null | null | Exercicios/Mundo 1/ex023.py | EdsonRomao/CursoEmVideo | caf99f5a54c001069572a0318dfcaa50d028d362 | [
"MIT"
] | null | null | null | Exercicios/Mundo 1/ex023.py | EdsonRomao/CursoEmVideo | caf99f5a54c001069572a0318dfcaa50d028d362 | [
"MIT"
] | null | null | null | """
Faça um programa que leia um número de 0 a 9999 e moste na tela cada um dos
digitos separados.
ex:
Digite um número: 1834
Unidade: 4
Dezena: 3
centena: 8
milhar: 1
"""
num = int(input('Informe um número: '))
u = num // 1 % 10
d = num // 10 % 10
c = num // 100 % 10
m = num // 1000 % 10
print(f'Analisando o número... | 17.884615 | 75 | 0.645161 | 85 | 465 | 3.529412 | 0.588235 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083558 | 0.202151 | 465 | 25 | 76 | 18.6 | 0.725067 | 0.451613 | 0 | 0 | 0 | 0 | 0.360324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
881b92a8922eace8d3d4892987391619a82223f7 | 976 | py | Python | clubadmin/database/options.py | rpmoseley/clubadmin | 35d0094ea5e97e8478ca021ab8e422cebbc26263 | [
"MIT"
] | null | null | null | clubadmin/database/options.py | rpmoseley/clubadmin | 35d0094ea5e97e8478ca021ab8e422cebbc26263 | [
"MIT"
] | null | null | null | clubadmin/database/options.py | rpmoseley/clubadmin | 35d0094ea5e97e8478ca021ab8e422cebbc26263 | [
"MIT"
] | null | null | null | '''
This module provides the support for the Options table, and enables the application
to work with a simple mapping given the option text or number without having to access
the underlying database information directly.
'''
import apsw
from ...config import configdb
# Define the default set of options for the progra... | 33.655172 | 89 | 0.723361 | 129 | 976 | 5.434109 | 0.666667 | 0.017118 | 0.042796 | 0.051355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181352 | 976 | 28 | 90 | 34.857143 | 0.877347 | 0.509221 | 0 | 0 | 0 | 0 | 0.208791 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
881c034cd62835d6a02311ed187783e8dc410a00 | 4,196 | py | Python | Notes_While_Learning_Python/ATBSWP/Notes_on_ATBSWP.py | LeslieDanill/Twitch | 31cbd23337bfd53dd3eded13d75e291e5fae7c5a | [
"Unlicense"
] | null | null | null | Notes_While_Learning_Python/ATBSWP/Notes_on_ATBSWP.py | LeslieDanill/Twitch | 31cbd23337bfd53dd3eded13d75e291e5fae7c5a | [
"Unlicense"
] | null | null | null | Notes_While_Learning_Python/ATBSWP/Notes_on_ATBSWP.py | LeslieDanill/Twitch | 31cbd23337bfd53dd3eded13d75e291e5fae7c5a | [
"Unlicense"
] | null | null | null | # Automate the Boring Stuff With Python #
# Learning Concepts #
'''
# --- Five Times --- #
print('My name is')
i = 0
for i in range(5):
while i < 5:
print('Jimmy Five Times ' + str(i))
i = i + 1
# --- YourName --- #
name = ''
while True:
print('Please type your name')
name = input()
if name == '... | 21.085427 | 620 | 0.527645 | 535 | 4,196 | 4.106542 | 0.343925 | 0.040965 | 0.023669 | 0.005462 | 0.086482 | 0.031862 | 0.031862 | 0.031862 | 0.031862 | 0 | 0 | 0.031099 | 0.310296 | 4,196 | 198 | 621 | 21.191919 | 0.728058 | 0.956387 | 0 | 0 | 0 | 0 | 0.295302 | 0.14094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
881ca45ad6728927c284cfda0c90be4f1e21d4e2 | 672 | py | Python | Python-Advanced/tuples_and_sets/average_student_grades.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | Python-Advanced/tuples_and_sets/average_student_grades.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | Python-Advanced/tuples_and_sets/average_student_grades.py | Xamaneone/SoftUni-Intro | 985fe3249cd2adf021c2003372e840219811d989 | [
"MIT"
] | null | null | null | def avg(values):
return sum(values) / len(values)
def input_to_list(count):
lines = []
for _ in range(count):
lines.append(input())
return lines
n = int(input())
students_grades_lines = input_to_list(n)
students_grades = {}
for line in students_grades_lines:
student, grade = line.spl... | 23.172414 | 71 | 0.662202 | 90 | 672 | 4.744444 | 0.377778 | 0.229508 | 0.112412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.193452 | 672 | 29 | 72 | 23.172414 | 0.784133 | 0 | 0 | 0 | 0 | 0 | 0.095097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0.052632 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
881d7c1a28aae627e65e822013cd68ffdec46d2d | 2,426 | py | Python | load_clancy_lattice.py | eldarion-client/hedera | a01d44232fadab4e60e8d06971feba9fad21e3f2 | [
"MIT"
] | 8 | 2018-10-25T19:30:49.000Z | 2021-07-27T18:16:42.000Z | load_clancy_lattice.py | eldarion-client/hedera | a01d44232fadab4e60e8d06971feba9fad21e3f2 | [
"MIT"
] | 233 | 2018-11-01T14:30:25.000Z | 2022-03-30T16:38:24.000Z | load_clancy_lattice.py | eldarion-client/hedera | a01d44232fadab4e60e8d06971feba9fad21e3f2 | [
"MIT"
] | 3 | 2019-05-16T14:57:55.000Z | 2021-03-16T13:05:01.000Z | #!/usr/bin/env python
# NOTE: this script is based on logeion_load.py to do a basic import of russian
from lattices.models import LatticeNode, LemmaNode
def create_lemma_node(lemma, lattice_node, context):
lemma_node, created = LemmaNode.objects.get_or_create(
context=context,
lemma=lemma,
... | 50.541667 | 154 | 0.681781 | 307 | 2,426 | 5.123779 | 0.247557 | 0.27972 | 0.129688 | 0.053401 | 0.390973 | 0.298792 | 0.256834 | 0.256834 | 0.228226 | 0.228226 | 0 | 0.000527 | 0.218054 | 2,426 | 47 | 155 | 51.617021 | 0.828677 | 0.040396 | 0 | 0.075 | 0 | 0 | 0.119948 | 0.012898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0.025 | 0.05 | 0 | 0.075 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88210675fc5d1af0696ac3393894403b6e9b7cfb | 527 | py | Python | mini/urls.py | VGichuki/minimusic | 1092b42ea5b4b3f291a64814543675cdb118dde3 | [
"MIT",
"Unlicense"
] | null | null | null | mini/urls.py | VGichuki/minimusic | 1092b42ea5b4b3f291a64814543675cdb118dde3 | [
"MIT",
"Unlicense"
] | null | null | null | mini/urls.py | VGichuki/minimusic | 1092b42ea5b4b3f291a64814543675cdb118dde3 | [
"MIT",
"Unlicense"
] | null | null | null | from django.urls import path
from .import views
from .import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
path('', views.home, name='home'),
path('new-music/', views.newMusic, name='new_music'),
path('register/', views.registerPage, name='register'),
p... | 32.9375 | 81 | 0.713472 | 68 | 527 | 5.470588 | 0.397059 | 0.080645 | 0.080645 | 0.102151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134725 | 527 | 16 | 81 | 32.9375 | 0.815789 | 0 | 0 | 0.142857 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
88245e7e992ddc08974c5cc6b43e5c7e9ffb3be0 | 2,035 | py | Python | sample_convex_combinations/tests/test_statistics.py | BenWiederhake/sample_convex_combinations | 15d45a3d2b32e0eedb41cd44bb8fc100e0b28927 | [
"MIT"
] | null | null | null | sample_convex_combinations/tests/test_statistics.py | BenWiederhake/sample_convex_combinations | 15d45a3d2b32e0eedb41cd44bb8fc100e0b28927 | [
"MIT"
] | null | null | null | sample_convex_combinations/tests/test_statistics.py | BenWiederhake/sample_convex_combinations | 15d45a3d2b32e0eedb41cd44bb8fc100e0b28927 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2020, Ben Wiederhake
# MIT license. See the LICENSE file included in the package.
import sample_convex_combinations
import unittest
GATHER_FALSE_POSITIVE = 1e-10
def gather(d, span_origin, asserter):
actual = sample_convex_combinations.sample(d, span_origin=span_origin)... | 30.373134 | 102 | 0.652088 | 292 | 2,035 | 4.417808 | 0.349315 | 0.124031 | 0.102326 | 0.021705 | 0.284496 | 0.181395 | 0.139535 | 0.139535 | 0.139535 | 0.096124 | 0 | 0.016635 | 0.231941 | 2,035 | 66 | 103 | 30.833333 | 0.808701 | 0.117445 | 0 | 0.1 | 0 | 0 | 0.004472 | 0 | 0 | 0 | 0 | 0.015152 | 0.175 | 1 | 0.175 | false | 0 | 0.05 | 0.025 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
882a3ab962a988b5919856aeb32fc8ee95593c40 | 19,389 | py | Python | pisugar/pisugar.py | PiSugar/pisugar-server-py | 418f660188a32206d283feaee312a8df18af6fd8 | [
"Apache-2.0"
] | 1 | 2022-03-18T02:58:32.000Z | 2022-03-18T02:58:32.000Z | pisugar/pisugar.py | PiSugar/pisugar-server-py | 418f660188a32206d283feaee312a8df18af6fd8 | [
"Apache-2.0"
] | null | null | null | pisugar/pisugar.py | PiSugar/pisugar-server-py | 418f660188a32206d283feaee312a8df18af6fd8 | [
"Apache-2.0"
] | null | null | null | # -*- coding=utf-8 -*-
import socket
import sys
import threading
from time import sleep
from datetime import datetime
def connect_domain_socket(file="/tmp/pisugar-server.sock"):
"""Connect pisugar server via unix domain socket file"""
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
conn = s.connect... | 39.97732 | 116 | 0.671876 | 2,658 | 19,389 | 4.544394 | 0.094808 | 0.048017 | 0.02732 | 0.036013 | 0.477109 | 0.345641 | 0.247537 | 0.190248 | 0.132875 | 0.107625 | 0 | 0.009129 | 0.214658 | 19,389 | 484 | 117 | 40.059917 | 0.784133 | 0.132962 | 0 | 0.130584 | 0 | 0 | 0.154676 | 0.057651 | 0 | 0 | 0 | 0 | 0.085911 | 1 | 0.24055 | false | 0.006873 | 0.017182 | 0.013746 | 0.487973 | 0.202749 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
882a71e8640ffdc2603ef8b4b032449b744faf71 | 661 | py | Python | solutions/Boats to Save People/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | 3 | 2021-06-06T22:03:15.000Z | 2021-06-08T08:49:04.000Z | solutions/Boats to Save People/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | solutions/Boats to Save People/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | class Solution:
def numRescueBoats(self, people: List[int], limit: int) -> int:
weight = dict()
for x in people:
if x in weight:
weight[x] += 1
else:
weight[x] = 1
ans = 0
for x in people:
if weight[x] > 0:
... | 28.73913 | 67 | 0.352496 | 69 | 661 | 3.376812 | 0.362319 | 0.120172 | 0.103004 | 0.103004 | 0.120172 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034722 | 0.564297 | 661 | 22 | 68 | 30.045455 | 0.774306 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
882f164b5ceb0261a441ec7227558cd0742615e4 | 13,625 | py | Python | nrps_db_launcher.py | SWFarag/NRPS-designer | 8b4700af274641c18f531bb4460cb5728257f410 | [
"MIT"
] | 1 | 2020-09-24T12:56:09.000Z | 2020-09-24T12:56:09.000Z | nrps_db_launcher.py | SWFarag/NRPS-designer | 8b4700af274641c18f531bb4460cb5728257f410 | [
"MIT"
] | null | null | null | nrps_db_launcher.py | SWFarag/NRPS-designer | 8b4700af274641c18f531bb4460cb5728257f410 | [
"MIT"
] | null | null | null | import pre_loader
from flask import Flask, render_template, request, make_response, send_file
import StringIO
import os
import pandas as pd
import ast
############### App ##################3
app = Flask(__name__)
app.secret_key = 'some_secret'
###### Pre-loading files #####
path = app.root_path
preloader = pre_loader.P... | 44.672131 | 160 | 0.667817 | 1,578 | 13,625 | 5.505703 | 0.17744 | 0.039365 | 0.020718 | 0.014503 | 0.523941 | 0.479282 | 0.457988 | 0.421846 | 0.378798 | 0.353246 | 0 | 0.007712 | 0.124477 | 13,625 | 304 | 161 | 44.819079 | 0.720597 | 0.055046 | 0 | 0.275862 | 0 | 0 | 0.246238 | 0.088081 | 0.00431 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008621 | 0.025862 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8835925b38c636f4c7dee70f661b97e3b1ef6d1f | 422 | py | Python | benchmark/bench_redirect_from_logging.py | YoavCohen/logbook | 3e0badb395ed8d0038d02996d38aa0505441327e | [
"BSD-3-Clause"
] | 771 | 2015-11-07T12:55:07.000Z | 2022-03-16T09:37:44.000Z | benchmark/bench_redirect_from_logging.py | alex/logbook | ab77961433977dbce315fdc8171e77fae0d6d7fd | [
"BSD-3-Clause"
] | 169 | 2015-11-08T06:56:55.000Z | 2022-02-28T06:58:50.000Z | benchmark/bench_redirect_from_logging.py | alex/logbook | ab77961433977dbce315fdc8171e77fae0d6d7fd | [
"BSD-3-Clause"
] | 105 | 2015-11-07T14:11:07.000Z | 2021-12-31T17:46:36.000Z | """Tests redirects from logging to logbook"""
from logging import getLogger
from logbook import StreamHandler
from logbook.compat import redirect_logging
from cStringIO import StringIO
redirect_logging()
log = getLogger('Test logger')
def run():
out = StringIO()
with StreamHandler(out):
for x in xra... | 23.444444 | 46 | 0.706161 | 54 | 422 | 5.481481 | 0.62963 | 0.074324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.194313 | 422 | 17 | 47 | 24.823529 | 0.852941 | 0.092417 | 0 | 0 | 0 | 0 | 0.084881 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8841385c6dedbb1c3aa4b60f2f831e3a89fbbff2 | 2,813 | py | Python | pu/adt/trieTree.py | gf0842wf/pu | 805274d9fe1b8013777683437bf184a09366788d | [
"MIT"
] | null | null | null | pu/adt/trieTree.py | gf0842wf/pu | 805274d9fe1b8013777683437bf184a09366788d | [
"MIT"
] | null | null | null | pu/adt/trieTree.py | gf0842wf/pu | 805274d9fe1b8013777683437bf184a09366788d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""字典树实现敏感词过滤"""
import codecs
class TrieNode(object):
def __init__(self, value=None):
self._end = False
self._child = dict()
self._value = value
def add(self, ch):
if not self._child.has_key(ch):
node = TrieNode(ch)
self._child... | 26.537736 | 60 | 0.495201 | 349 | 2,813 | 3.836676 | 0.246418 | 0.040329 | 0.03286 | 0.047797 | 0.442121 | 0.386856 | 0.353996 | 0.353996 | 0.353996 | 0.353996 | 0 | 0.008092 | 0.384998 | 2,813 | 105 | 61 | 26.790476 | 0.765896 | 0.007465 | 0 | 0.428571 | 0 | 0 | 0.037131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011905 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
884159177483209b0c32662f915d9ba9bee2157e | 372 | py | Python | app/converter/urls.py | lis-space/currency-converter | e794d5c5148f106613a846840b857173eb2531a0 | [
"MIT"
] | null | null | null | app/converter/urls.py | lis-space/currency-converter | e794d5c5148f106613a846840b857173eb2531a0 | [
"MIT"
] | null | null | null | app/converter/urls.py | lis-space/currency-converter | e794d5c5148f106613a846840b857173eb2531a0 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import CurrenciesViewSet, RatesViewSet, ConvertView
urlpatterns = [
path('currencies/', CurrenciesViewSet.as_view({'get': 'list'}), name='currencies'),
path('rates/', RatesViewSet.as_view({'get': 'list'}), name='rates'),
path('<str:fr>/<str:to>/<str:value>/', Conve... | 37.2 | 97 | 0.674731 | 44 | 372 | 5.636364 | 0.5 | 0.072581 | 0.108871 | 0.157258 | 0.205645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 372 | 9 | 98 | 41.333333 | 0.746988 | 0 | 0 | 0 | 0 | 0 | 0.241935 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 |
884199063845ddc4a1500228e8909845d4316796 | 4,935 | py | Python | kerasvis/kerasvis_helper.py | frankgh/deep-visualization-toolbox | c9bb26eacae0b4d1a25d3844538c2830026add76 | [
"MIT"
] | null | null | null | kerasvis/kerasvis_helper.py | frankgh/deep-visualization-toolbox | c9bb26eacae0b4d1a25d3844538c2830026add76 | [
"MIT"
] | null | null | null | kerasvis/kerasvis_helper.py | frankgh/deep-visualization-toolbox | c9bb26eacae0b4d1a25d3844538c2830026add76 | [
"MIT"
] | null | null | null | import numpy as np
from image_misc import get_tiles_height_width, caffe_load_image
# def net_preproc_forward(net, img, data_hw):
# appropriate_shape = data_hw + (3,)
# assert img.shape == appropriate_shape, 'img is wrong size (got %s but expected %s)' % (img.shape, appropriate_shape)
# data_blob = net.tr... | 42.179487 | 184 | 0.66383 | 743 | 4,935 | 4.213997 | 0.273217 | 0.033216 | 0.042478 | 0.043117 | 0.217502 | 0.156819 | 0.14085 | 0.092622 | 0.042159 | 0.042159 | 0 | 0.01965 | 0.236879 | 4,935 | 116 | 185 | 42.543103 | 0.811737 | 0.09078 | 0 | 0.097222 | 0 | 0 | 0.245379 | 0.038039 | 0 | 0 | 0 | 0 | 0.069444 | 0 | null | null | 0 | 0.027778 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8843e3dd84eb41a8caa0d67ae384a365746d5697 | 1,659 | py | Python | rpd/factories/rest_factory.py | ooliver1/RPD | e4900eed75ee636385749b883fe63e1cb48d81bd | [
"MIT"
] | null | null | null | rpd/factories/rest_factory.py | ooliver1/RPD | e4900eed75ee636385749b883fe63e1cb48d81bd | [
"MIT"
] | null | null | null | rpd/factories/rest_factory.py | ooliver1/RPD | e4900eed75ee636385749b883fe63e1cb48d81bd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# cython: language_level=3
# Copyright (c) 2021-present VincentRPS
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... | 36.065217 | 88 | 0.724533 | 239 | 1,659 | 5 | 0.569038 | 0.07364 | 0.021757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006808 | 0.203134 | 1,659 | 45 | 89 | 36.866667 | 0.897126 | 0.807715 | 0 | 0 | 0 | 0 | 0.055762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8844fd89dabc2d1ff59714ea8f9a7fea3d820a72 | 6,155 | py | Python | liota/dccs/dcc.py | giyyanan/liota | 838d8407f8b167d6ad25470dbd66deaec88607fe | [
"BSD-2-Clause"
] | 361 | 2016-04-29T14:07:18.000Z | 2021-01-23T10:15:39.000Z | liota/dccs/dcc.py | giyyanan/liota | 838d8407f8b167d6ad25470dbd66deaec88607fe | [
"BSD-2-Clause"
] | 148 | 2016-05-26T19:27:04.000Z | 2021-02-22T05:39:40.000Z | liota/dccs/dcc.py | giyyanan/liota | 838d8407f8b167d6ad25470dbd66deaec88607fe | [
"BSD-2-Clause"
] | 153 | 2016-04-28T22:46:23.000Z | 2020-02-13T19:01:07.000Z | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------#
# Copyright © 2015-2016 VMware, Inc. All Rights Reserved. #
# #
# Licensed under the BSD 2-Clause License (the “License... | 41.033333 | 120 | 0.591714 | 637 | 6,155 | 5.637363 | 0.357928 | 0.02005 | 0.026734 | 0.017544 | 0.142579 | 0.07853 | 0.07853 | 0.037872 | 0.037872 | 0.037872 | 0 | 0.00265 | 0.325589 | 6,155 | 149 | 121 | 41.308725 | 0.862202 | 0.642405 | 0 | 0.272727 | 0 | 0 | 0.105618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0.090909 | 0.113636 | 0 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
884b8d4f27a860b89c233f58357c8a6325850e1c | 14,236 | py | Python | tcfl/target_ext_tunnel.py | jhaapako/tcf | ecd75404459c6fec9d9fa1522b70a8deab896644 | [
"Apache-2.0"
] | 24 | 2018-08-21T18:04:48.000Z | 2022-02-07T22:50:06.000Z | tcfl/target_ext_tunnel.py | jhaapako/tcf | ecd75404459c6fec9d9fa1522b70a8deab896644 | [
"Apache-2.0"
] | 16 | 2018-08-21T18:03:52.000Z | 2022-03-01T17:15:42.000Z | tcfl/target_ext_tunnel.py | jhaapako/tcf | ecd75404459c6fec9d9fa1522b70a8deab896644 | [
"Apache-2.0"
] | 29 | 2018-08-22T19:40:59.000Z | 2021-12-21T11:13:23.000Z | #! /usr/bin/python3
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
"""
Create and remove network tunnels to the target via the server
--------------------------------------------------------------
"""
import pprint
from . import msgid_c
import commonl
from . import tc
class tunne... | 40.443182 | 81 | 0.556336 | 1,751 | 14,236 | 4.40434 | 0.163335 | 0.02723 | 0.020747 | 0.014523 | 0.522562 | 0.500259 | 0.475104 | 0.434777 | 0.41014 | 0.393802 | 0 | 0.012924 | 0.336892 | 14,236 | 351 | 82 | 40.558405 | 0.804025 | 0.242133 | 0 | 0.466981 | 0 | 0 | 0.190116 | 0.008253 | 0 | 0 | 0 | 0.002849 | 0.018868 | 1 | 0.04717 | false | 0.056604 | 0.018868 | 0 | 0.103774 | 0.014151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
88557090362f8a9601ea1a80a16cc847cbccc8be | 324 | py | Python | summer-of-code/week-03/nltkch3.py | VeraButler/toolkitten | c70c1dc11404685d14cba79f60ff9133c1050fcb | [
"MIT"
] | null | null | null | summer-of-code/week-03/nltkch3.py | VeraButler/toolkitten | c70c1dc11404685d14cba79f60ff9133c1050fcb | [
"MIT"
] | null | null | null | summer-of-code/week-03/nltkch3.py | VeraButler/toolkitten | c70c1dc11404685d14cba79f60ff9133c1050fcb | [
"MIT"
] | null | null | null | import nltk, re, pprint
from nltk import word_tokenize
from urllib import request
url = "http://www.gutenberg.org/files/2554/2554-0.txt"
response = request.urlopen(url)
raw = response.read().decode('utf8')
print(type(raw))
print(len(raw))
print(raw[:75])
tokens = word_tokenize(raw)
print(type(tokens))
print(tokens[:1... | 21.6 | 54 | 0.740741 | 51 | 324 | 4.666667 | 0.588235 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047782 | 0.095679 | 324 | 14 | 55 | 23.142857 | 0.764505 | 0 | 0 | 0 | 0 | 0 | 0.154321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
8863f4491e1d1acd66923aea42c72fc2c6079f04 | 1,274 | py | Python | Day5/list.py | omer21-meet/meet2019y1lab1 | ba96dcf512f41d1acaec1cd02b09ef754d6e5365 | [
"MIT"
] | null | null | null | Day5/list.py | omer21-meet/meet2019y1lab1 | ba96dcf512f41d1acaec1cd02b09ef754d6e5365 | [
"MIT"
] | null | null | null | Day5/list.py | omer21-meet/meet2019y1lab1 | ba96dcf512f41d1acaec1cd02b09ef754d6e5365 | [
"MIT"
] | null | null | null | Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license()" for more information.
>>> a = ['she','sells','sea','shells','by','the','sea','shore']
>>> b = "selfish shellfish"
>>> c = [1, 1, 2, 3, 5, 8, 13]
>>> b[3:... | 15.728395 | 72 | 0.49843 | 228 | 1,274 | 2.785088 | 0.337719 | 0.061417 | 0.100787 | 0.025197 | 0.376378 | 0.343307 | 0.28189 | 0.053543 | 0 | 0 | 0 | 0.119122 | 0.248823 | 1,274 | 80 | 73 | 15.925 | 0.54441 | 0 | 0 | 0.4 | 0 | 0 | 0.099686 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8864a19800bdcb127bd0638b3dc6f51217e71bbb | 1,881 | py | Python | cybox/core/associated_object.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | null | null | null | cybox/core/associated_object.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | null | null | null | cybox/core/associated_object.py | siemens/python-cybox | b692a98c8a62bd696e2a0dda802ada7359853482 | [
"BSD-3-Clause"
] | 1 | 2019-04-16T18:37:32.000Z | 2019-04-16T18:37:32.000Z | # Copyright (c) 2014, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import cybox
import cybox.bindings.cybox_core as core_binding
from cybox.common import VocabString
from cybox.core import Object
class AssociationType(VocabString):
_XSI_TYPE = 'cyboxVocabs:ActionObjectAssocia... | 34.2 | 115 | 0.719298 | 233 | 1,881 | 5.527897 | 0.274678 | 0.163043 | 0.073758 | 0.053571 | 0.220497 | 0.184783 | 0.046584 | 0 | 0 | 0 | 0 | 0.004003 | 0.203083 | 1,881 | 54 | 116 | 34.833333 | 0.855237 | 0.116427 | 0 | 0.25 | 0 | 0 | 0.048603 | 0.029162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.111111 | 0 | 0.527778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
886da013fb0bcd92bf75e84bac5a25598c0464a4 | 267 | py | Python | problems/1313_decompress_run_length_encoded_list.py | wasi0013/leet_code | c589c10f06043fa0ac7643e09ae3903d77c2f8e9 | [
"MIT"
] | null | null | null | problems/1313_decompress_run_length_encoded_list.py | wasi0013/leet_code | c589c10f06043fa0ac7643e09ae3903d77c2f8e9 | [
"MIT"
] | null | null | null | problems/1313_decompress_run_length_encoded_list.py | wasi0013/leet_code | c589c10f06043fa0ac7643e09ae3903d77c2f8e9 | [
"MIT"
] | null | null | null | class Solution:
def decompressRLElist(self, nums: List[int]) -> List[int]:
result = []
for i in range(0, len(nums), 2):
freq, val = nums[i:i+2]
for n in range(freq):
result.append(val)
return result
| 29.666667 | 62 | 0.513109 | 35 | 267 | 3.914286 | 0.6 | 0.10219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.359551 | 267 | 8 | 63 | 33.375 | 0.783626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 |
88703a4656b57713f400a79eca29690be3ef781c | 15,221 | py | Python | config.py | anhlt59/Cgnat | 14fd02075b97e25bc71e95d7bde0f6d325745e78 | [
"MIT"
] | null | null | null | config.py | anhlt59/Cgnat | 14fd02075b97e25bc71e95d7bde0f6d325745e78 | [
"MIT"
] | null | null | null | config.py | anhlt59/Cgnat | 14fd02075b97e25bc71e95d7bde0f6d325745e78 | [
"MIT"
] | null | null | null | # !/usr/bin/python
# -*- coding: utf-8 -*-
from configparser import ConfigParser
from os import path
from datetime import datetime
# Log
PATH = path.dirname(path.abspath(__file__))
FILE_LOG = '.'.join([datetime.strftime(datetime.now(), "%Y-%m-%d"), 'log'])
LOG_PATH = path.join(PATH, 'log', FILE_LOG)
# GiangLMC config... | 45.708709 | 129 | 0.303134 | 1,006 | 15,221 | 4.457256 | 0.322068 | 0.031891 | 0.046387 | 0.038136 | 0.416815 | 0.388938 | 0.351472 | 0.314451 | 0.314451 | 0.293711 | 0 | 0.088268 | 0.588398 | 15,221 | 332 | 130 | 45.846386 | 0.627454 | 0.030747 | 0 | 0.289286 | 0 | 0.003571 | 0.263154 | 0.040109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003571 | false | 0.010714 | 0.010714 | 0 | 0.117857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
887a3cd293b80d9acbdfecf5fb663b0e30c621f9 | 909 | py | Python | sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/_policy_insights_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/_policy_insights_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/_policy_insights_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 2 | 2020-05-21T22:51:22.000Z | 2020-05-26T20:53:01.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 ... | 36.36 | 161 | 0.638064 | 98 | 909 | 5.877551 | 0.693878 | 0.0625 | 0.024306 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001282 | 0.141914 | 909 | 24 | 162 | 37.875 | 0.737179 | 0.686469 | 0 | 0 | 0 | 0 | 0.194853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
888016f43395b30f5bb42509b2cf824b817a2f5c | 2,203 | py | Python | extract-airbnb-properties.py | townofchapelhill/hospitality-python | f6b0712a7ba0e9fd0164a55f271f163ebce41b6b | [
"WTFPL"
] | 1 | 2022-03-18T14:00:14.000Z | 2022-03-18T14:00:14.000Z | extract-airbnb-properties.py | townofchapelhill/hospitality-python | f6b0712a7ba0e9fd0164a55f271f163ebce41b6b | [
"WTFPL"
] | null | null | null | extract-airbnb-properties.py | townofchapelhill/hospitality-python | f6b0712a7ba0e9fd0164a55f271f163ebce41b6b | [
"WTFPL"
] | null | null | null | import airbnb
import airbnb_secrets
import csv
items=1
output_filename="airbnb_chapelhill.csv"
# Set CSV Header & line format
csv_header = ['City','Latitude','Longitude','Type','Bathrooms','Bedrooms','Public Address','Localized City','Source']
api = airbnb.Api()
# api = airbnb.Api(airbnb_secrets.login, airbnb_secrets... | 43.196078 | 123 | 0.67635 | 294 | 2,203 | 4.914966 | 0.35034 | 0.124567 | 0.157785 | 0.16609 | 0.359862 | 0.359862 | 0.359862 | 0.359862 | 0.249135 | 0 | 0 | 0.021661 | 0.119837 | 2,203 | 50 | 124 | 44.06 | 0.723569 | 0.08443 | 0 | 0.102564 | 0 | 0 | 0.336318 | 0.021393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8881e63fe7edbb15fd353d17c61312b0ff737fb1 | 3,414 | py | Python | aaem/components/heat_recovery/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 1 | 2022-01-23T07:18:36.000Z | 2022-01-23T07:18:36.000Z | aaem/components/heat_recovery/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 5 | 2017-07-14T21:56:46.000Z | 2017-07-14T21:59:15.000Z | aaem/components/heat_recovery/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 2 | 2020-04-28T18:12:55.000Z | 2021-01-13T01:56:57.000Z | """
Heat Recovery Configuration
---------------------------
Contains heat recovery configuration info for community data yaml file, and
other set-up requirements
"""
from aaem.components import definitions
COMPONENT_NAME = "Heat Recovery"
PROJECT_TYPE = 'heat_recovery'
IMPORT = "IMPORT"
UNKNOWN = "UNKNOWN"... | 34.14 | 105 | 0.635618 | 387 | 3,414 | 5.583979 | 0.260982 | 0.033318 | 0.03702 | 0.038871 | 0.28459 | 0.119852 | 0.090236 | 0.070338 | 0.070338 | 0.070338 | 0 | 0 | 0.228471 | 3,414 | 99 | 106 | 34.484848 | 0.820425 | 0.059168 | 0 | 0 | 0 | 0 | 0.61524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.02381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88854d80376ed3a0f7fe8b63d1831647484a8619 | 8,691 | py | Python | zwo_efw/_cffi.py | APinto-DTx/zwo-efw | 3c2a8ba144784b6e7273fe92a148cb4afa935b9d | [
"MIT"
] | null | null | null | zwo_efw/_cffi.py | APinto-DTx/zwo-efw | 3c2a8ba144784b6e7273fe92a148cb4afa935b9d | [
"MIT"
] | 2 | 2021-11-04T17:51:17.000Z | 2021-11-13T18:51:18.000Z | zwo_efw/_cffi.py | APinto-DTx/zwo-efw | 3c2a8ba144784b6e7273fe92a148cb4afa935b9d | [
"MIT"
] | 1 | 2021-11-12T12:55:49.000Z | 2021-11-12T12:55:49.000Z | """CFFI binding."""
import os
import cffi
import pathlib
ffi = cffi.FFI()
ffi.cdef("""
#define EFW_ID_MAX 128
typedef struct _EFW_INFO
{
int ID;
char Name[64];
int slotNum;
} EFW_INFO;
typedef enum _EFW_ERROR_CODE{
EFW_SUCCESS = 0,
EFW_ERROR_INVALID_INDEX,
EFW_ERROR_INVALID_ID,
EFW_ERROR_INVALID_VALUE,
EF... | 29.968966 | 126 | 0.572661 | 1,022 | 8,691 | 4.68591 | 0.174168 | 0.103571 | 0.053247 | 0.046147 | 0.527459 | 0.503863 | 0.485279 | 0.437043 | 0.422426 | 0.4218 | 0 | 0.003494 | 0.110804 | 8,691 | 289 | 127 | 30.072664 | 0.616201 | 0.001496 | 0 | 0.587156 | 0 | 0.027523 | 0.984548 | 0.361854 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
888c016b37c627e8ff69cbb9c162661168be7cd9 | 609 | py | Python | py/magic/testing/test_patch.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 1 | 2019-05-27T00:58:46.000Z | 2019-05-27T00:58:46.000Z | py/magic/testing/test_patch.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | py/magic/testing/test_patch.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | from py.test import raises
from py.magic import patch, revert
def test_patch_revert():
class a:
pass
raises(AttributeError, "patch(a, 'i', 42)")
a.i = 42
patch(a, 'i', 23)
assert a.i == 23
revert(a, 'i')
assert a.i == 42
def test_double_patch():
class a:
i = 42
ass... | 19.03125 | 47 | 0.528736 | 97 | 609 | 3.268041 | 0.216495 | 0.100946 | 0.063091 | 0.063091 | 0.201893 | 0.107256 | 0 | 0 | 0 | 0 | 0 | 0.057416 | 0.313629 | 609 | 31 | 48 | 19.645161 | 0.700957 | 0 | 0 | 0.269231 | 0 | 0 | 0.060855 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 1 | 0.115385 | false | 0.076923 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
888f9c33c23196ef448554054208b57c082d24c6 | 1,017 | py | Python | base/serializers/base_role.py | l-yb/vocabulary | 47054dfd4c047d5e6036bc05f79138e9a21ddfe9 | [
"Apache-2.0"
] | null | null | null | base/serializers/base_role.py | l-yb/vocabulary | 47054dfd4c047d5e6036bc05f79138e9a21ddfe9 | [
"Apache-2.0"
] | null | null | null | base/serializers/base_role.py | l-yb/vocabulary | 47054dfd4c047d5e6036bc05f79138e9a21ddfe9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-#
#
# Project: vocabulary
# Name: base_role
# Author: lzq
# Date: 2021/4/10 下午2:35
#
import django_filters
from rest_framework import serializers
from base.models import BaseUser, BaseRole
from common.utils import DynamicModelSerializer
class _baseUserSerializer(D... | 22.108696 | 93 | 0.679449 | 101 | 1,017 | 6.623762 | 0.564356 | 0.058296 | 0.06278 | 0.06577 | 0.083707 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013906 | 0.222222 | 1,017 | 45 | 94 | 22.6 | 0.831858 | 0.126844 | 0 | 0.318182 | 0 | 0 | 0.053179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0.045455 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8893bf4d1d48e80e87cb19d3db19f70cd87b29af | 390 | py | Python | crud/migrations/0005_alter_despesa_data_despesa.py | OuroborosD/03-PiggoV2 | 0fdabfeca3a29cf0cfb87f120506ad517ee75ce6 | [
"MIT"
] | null | null | null | crud/migrations/0005_alter_despesa_data_despesa.py | OuroborosD/03-PiggoV2 | 0fdabfeca3a29cf0cfb87f120506ad517ee75ce6 | [
"MIT"
] | null | null | null | crud/migrations/0005_alter_despesa_data_despesa.py | OuroborosD/03-PiggoV2 | 0fdabfeca3a29cf0cfb87f120506ad517ee75ce6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-05 01:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crud', '0004_auto_20211004_1805'),
]
operations = [
migrations.AlterField(
model_name='despesa',
name='data_despesa'... | 20.526316 | 50 | 0.602564 | 43 | 390 | 5.325581 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.284615 | 390 | 18 | 51 | 21.666667 | 0.709677 | 0.115385 | 0 | 0 | 1 | 0 | 0.134111 | 0.067055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
889b9a86fd2f66eac23cbe36ce6af2cb13cc14fc | 542 | py | Python | src/__init__.py | paarthdani/Sub-ji | 68a33c6ffa743378e7a488b0f8ef4a1fff77f48c | [
"MIT"
] | null | null | null | src/__init__.py | paarthdani/Sub-ji | 68a33c6ffa743378e7a488b0f8ef4a1fff77f48c | [
"MIT"
] | null | null | null | src/__init__.py | paarthdani/Sub-ji | 68a33c6ffa743378e7a488b0f8ef4a1fff77f48c | [
"MIT"
] | null | null | null | import flask
from flask_sqlalchemy import SQLAlchemy
import logging
from sqlalchemy import desc
from sqlalchemy.sql import func
app = flask.Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///subji.db"
db = SQLAlchemy(app)
logger = logging.getLogger()
logging.basicConfig(filename="system.log",
... | 27.1 | 68 | 0.702952 | 64 | 542 | 5.796875 | 0.59375 | 0.12938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191882 | 542 | 19 | 69 | 28.526316 | 0.847032 | 0 | 0 | 0 | 0 | 0 | 0.164207 | 0.042435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
889c60eff1e80c95be7e939d61cbea687c24f25f | 906 | py | Python | tests/unit/utils/test_parse_nftoken_id.py | LimpidCrypto/xrpl-py | 0350792c2890c9612e62057249ecda7b2cd500bc | [
"0BSD"
] | null | null | null | tests/unit/utils/test_parse_nftoken_id.py | LimpidCrypto/xrpl-py | 0350792c2890c9612e62057249ecda7b2cd500bc | [
"0BSD"
] | null | null | null | tests/unit/utils/test_parse_nftoken_id.py | LimpidCrypto/xrpl-py | 0350792c2890c9612e62057249ecda7b2cd500bc | [
"0BSD"
] | null | null | null | """Test the parse_nftoken_id util."""
from __future__ import annotations
from unittest import TestCase
from xrpl import XRPLException
from xrpl.utils.parse_nftoken_id import parse_nftoken_id
class TestParseNFTokenID(TestCase):
"""Test parse_nftoken_id."""
def test_parse_nftoken_id_successful(self: TestPars... | 31.241379 | 83 | 0.681015 | 90 | 906 | 6.533333 | 0.444444 | 0.137755 | 0.190476 | 0.091837 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083453 | 0.232892 | 906 | 28 | 84 | 32.357143 | 0.76259 | 0.059603 | 0 | 0 | 0 | 0 | 0.175981 | 0.116528 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88abe88290f75ba717577a34dfb39dfacfa50825 | 3,766 | py | Python | main.py | davidcsterratt/snl | 5c086fac092209c5efd2e4b882bbcb197e2facf8 | [
"MIT"
] | 30 | 2018-05-21T21:02:13.000Z | 2021-11-30T03:50:55.000Z | main.py | davidcsterratt/snl | 5c086fac092209c5efd2e4b882bbcb197e2facf8 | [
"MIT"
] | 3 | 2018-05-18T17:29:16.000Z | 2021-11-17T17:28:27.000Z | main.py | davidcsterratt/snl | 5c086fac092209c5efd2e4b882bbcb197e2facf8 | [
"MIT"
] | 12 | 2018-05-18T16:59:32.000Z | 2021-11-30T12:53:01.000Z | import argparse
import numpy as np
import util.io
import experiment_descriptor as ed
import misc
def parse_args():
"""
Returns an object describing the command line.
"""
parser = argparse.ArgumentParser(description='Likelihood-free inference experiments.')
subparsers = parser.add_subparsers()
... | 27.489051 | 120 | 0.676845 | 488 | 3,766 | 5.055328 | 0.258197 | 0.035671 | 0.030807 | 0.034049 | 0.431293 | 0.344953 | 0.344953 | 0.344953 | 0.297933 | 0.297933 | 0 | 0.002344 | 0.207116 | 3,766 | 136 | 121 | 27.691176 | 0.823845 | 0 | 0 | 0.338028 | 0 | 0 | 0.174148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.126761 | null | null | 0.140845 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88b0fea67d7727dcc3e5feeb1ea06677b7a43532 | 9,989 | py | Python | src/kindyn/src/pedaling/tests_pedaling/velocity_test.py | NexusReflex/VRpuppet | 0b6a14e13951ceaf849b09da1f8dd797a4a1125d | [
"BSD-3-Clause"
] | null | null | null | src/kindyn/src/pedaling/tests_pedaling/velocity_test.py | NexusReflex/VRpuppet | 0b6a14e13951ceaf849b09da1f8dd797a4a1125d | [
"BSD-3-Clause"
] | null | null | null | src/kindyn/src/pedaling/tests_pedaling/velocity_test.py | NexusReflex/VRpuppet | 0b6a14e13951ceaf849b09da1f8dd797a4a1125d | [
"BSD-3-Clause"
] | 1 | 2019-07-17T13:26:01.000Z | 2019-07-17T13:26:01.000Z | ## @package pedaling
# Documentation for this module.
#
# Test-script for testing the accuracy of a requested velocity and the transition-time (acceleration) between two
# different velocities, which is only important for testing in reality, because there is no transition-time between
# different velocities in simu... | 35.29682 | 119 | 0.703774 | 1,415 | 9,989 | 4.654417 | 0.149117 | 0.005466 | 0.025812 | 0.037959 | 0.513665 | 0.461737 | 0.402824 | 0.346493 | 0.298208 | 0.2645 | 0 | 0.016369 | 0.204925 | 9,989 | 282 | 120 | 35.421986 | 0.812893 | 0.196817 | 0 | 0.23913 | 0 | 0 | 0.068476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005435 | 0.043478 | null | null | 0.027174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88b33725587b9aead30a9491eeaf1dad1a64d54f | 3,529 | py | Python | tests/test_classes.py | khinsen/ImmutablePy | ddad7edf90bbf4ddb81daf9a189ea6f7796c1f16 | [
"CECILL-B"
] | null | null | null | tests/test_classes.py | khinsen/ImmutablePy | ddad7edf90bbf4ddb81daf9a189ea6f7796c1f16 | [
"CECILL-B"
] | null | null | null | tests/test_classes.py | khinsen/ImmutablePy | ddad7edf90bbf4ddb81daf9a189ea6f7796c1f16 | [
"CECILL-B"
] | null | null | null | # Tests for subclasses of Immutable
#
# Written by Konrad Hinsen
#
import unittest
from immutable import Immutable, ImmutableTuple
class Test1(Immutable):
def __init__(self, a, b):
self.a = a
self.b = b
class Test2(Test1):
def __init__(self, a, b, c):
Test1.__init__(self, a, b)
... | 30.162393 | 59 | 0.580334 | 430 | 3,529 | 4.586047 | 0.209302 | 0.015213 | 0.139452 | 0.024341 | 0.187627 | 0.154158 | 0.122211 | 0.111055 | 0.09432 | 0.09432 | 0 | 0.044058 | 0.298952 | 3,529 | 116 | 60 | 30.422414 | 0.753032 | 0.016435 | 0 | 0.139785 | 0 | 0 | 0.002308 | 0 | 0 | 0 | 0 | 0 | 0.290323 | 1 | 0.268817 | false | 0.010753 | 0.021505 | 0.043011 | 0.408602 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88b43696d51a32bbf978c6cd1b9f79b772ea538d | 1,203 | py | Python | bayern/ffb.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | 12 | 2022-02-23T11:06:06.000Z | 2022-03-04T17:21:44.000Z | bayern/ffb.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | null | null | null | bayern/ffb.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
from botbase import *
_ffb_c = re.compile(r"Stand\s\w+,\s(\d\d?\.\d\d?.20\d\d)\s\((\d\d?:\d\d)\sUhr\),\sgibt\ses\sinsgesamt\s+([0-9.]+)\s*(?:Infektionen|Corona-Infizierte)", re.U)
_ffb_d = re.compile(r"Todesfälle insgesamt mit Covid-19-Befund und Wohnsitz im Landkreis Fürstenfeldbruck: *([0-9.]+) *\... | 48.12 | 157 | 0.645054 | 211 | 1,203 | 3.545024 | 0.440758 | 0.042781 | 0.032086 | 0.02139 | 0.163102 | 0.15508 | 0.15508 | 0.144385 | 0.109626 | 0.109626 | 0 | 0.047847 | 0.131338 | 1,203 | 24 | 158 | 50.125 | 0.667943 | 0.023275 | 0 | 0 | 0 | 0.210526 | 0.407502 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88b4bac0604df2c096d92dc85ce1dea600b3ce73 | 2,772 | py | Python | tests/unit/test_result.py | alice-biometrics/meiga | 6c9f06e7463779bfca89e6e3483a0e119c02f9ea | [
"MIT"
] | 17 | 2019-09-21T11:25:12.000Z | 2022-01-27T17:28:32.000Z | tests/unit/test_result.py | alice-biometrics/meiga | 6c9f06e7463779bfca89e6e3483a0e119c02f9ea | [
"MIT"
] | 1 | 2020-04-22T08:40:13.000Z | 2020-04-22T08:50:58.000Z | tests/unit/test_result.py | alice-biometrics/meiga | 6c9f06e7463779bfca89e6e3483a0e119c02f9ea | [
"MIT"
] | null | null | null | import pytest
from meiga import Result, Error
@pytest.mark.unit
def test_should_create_a_success_result_with_a_true_bool():
result = Result(success=True)
assert result.is_success
assert result.value is True
@pytest.mark.unit
def test_should_create_a_success_result_with_a_false_bool():
result = Res... | 24.972973 | 106 | 0.739177 | 395 | 2,772 | 4.820253 | 0.156962 | 0.10084 | 0.095588 | 0.116071 | 0.773634 | 0.746324 | 0.691702 | 0.615546 | 0.472164 | 0.444853 | 0 | 0.009586 | 0.172078 | 2,772 | 110 | 107 | 25.2 | 0.820044 | 0 | 0 | 0.410959 | 0 | 0 | 0.075036 | 0 | 0 | 0 | 0 | 0 | 0.260274 | 1 | 0.178082 | false | 0.013699 | 0.027397 | 0 | 0.219178 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88b52d5d1c1b3d78cc0b21d1291ed3a4e0545df7 | 515 | py | Python | budget_api/views.py | danhuyle508/budget_tool | 57870ade9efb7d726fdd9b37cf68212b3d839893 | [
"MIT"
] | null | null | null | budget_api/views.py | danhuyle508/budget_tool | 57870ade9efb7d726fdd9b37cf68212b3d839893 | [
"MIT"
] | null | null | null | budget_api/views.py | danhuyle508/budget_tool | 57870ade9efb7d726fdd9b37cf68212b3d839893 | [
"MIT"
] | null | null | null | from rest_framework.authentication import TokenAuthentication
from rest_framework import generics
from .serializers import UserSerializer, User
# Create your views here.
class UserAPIView():
permission_classes = ''
authentication_classes = (TokenAuthentication,)
serializer_class = UserSerializer
class... | 32.1875 | 61 | 0.76699 | 51 | 515 | 7.588235 | 0.588235 | 0.041344 | 0.087855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161165 | 515 | 16 | 62 | 32.1875 | 0.895833 | 0.04466 | 0 | 0.333333 | 0 | 0 | 0.004073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
88b5614221db9682ceb6d65cbf29924eb1d89c67 | 1,792 | py | Python | xilinx/vc707/constraints/gen_clk_max_delay.py | csail-csg/fpgautils | cd782b907683635bc14f04faa5ce48884b3687a7 | [
"MIT"
] | 2 | 2018-01-10T08:16:34.000Z | 2022-03-06T10:31:15.000Z | xilinx/vc707/constraints/gen_clk_max_delay.py | csail-csg/fpgautils | cd782b907683635bc14f04faa5ce48884b3687a7 | [
"MIT"
] | null | null | null | xilinx/vc707/constraints/gen_clk_max_delay.py | csail-csg/fpgautils | cd782b907683635bc14f04faa5ce48884b3687a7 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2017 Massachusetts Institute of Technology
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights... | 47.157895 | 96 | 0.71317 | 269 | 1,792 | 4.639405 | 0.472119 | 0.070513 | 0.032051 | 0.025641 | 0.161859 | 0.161859 | 0.161859 | 0.161859 | 0.161859 | 0.161859 | 0 | 0.015862 | 0.190848 | 1,792 | 37 | 97 | 48.432432 | 0.844828 | 0.612165 | 0 | 0.181818 | 0 | 0 | 0.493314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31f22be410d595103c87f3d944853bec5fab2eff | 753 | py | Python | tutorial/stage0/setup.py | cloudmatrix/esky | 6fde3201f0335064931a6c7f7847fc5ad39001b4 | [
"BSD-3-Clause"
] | 190 | 2015-01-05T09:18:52.000Z | 2022-03-08T08:15:12.000Z | tutorial/stage0/setup.py | cloudmatrix/esky | 6fde3201f0335064931a6c7f7847fc5ad39001b4 | [
"BSD-3-Clause"
] | 100 | 2015-01-16T13:59:08.000Z | 2018-02-25T02:36:51.000Z | tutorial/stage0/setup.py | cloudmatrix/esky | 6fde3201f0335064931a6c7f7847fc5ad39001b4 | [
"BSD-3-Clause"
] | 58 | 2015-01-30T18:29:51.000Z | 2022-03-12T04:47:27.000Z | import sys
# for windows
# > python setup.py py2exe
if sys.argv[1] == 'py2exe':
import py2exe
from distutils.core import setup
setup(
name = "example-app",
version = "0.0",
console = ["example.py"]
)
# for mac
# > python setup.py py2app
elif sys.argv[1] == 'py2app':
from... | 20.916667 | 43 | 0.567065 | 90 | 753 | 4.722222 | 0.366667 | 0.077647 | 0.091765 | 0.134118 | 0.228235 | 0.228235 | 0.131765 | 0 | 0 | 0 | 0 | 0.02974 | 0.285525 | 753 | 35 | 44 | 21.514286 | 0.760223 | 0.156707 | 0 | 0.28 | 0 | 0 | 0.160828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31fd25aa1f3157bcf58c7ac0e29404b3068f8096 | 3,553 | py | Python | models/__init__.py | magnologan/Providence | c23a4aee8b2bab7b8bc7d4099bc5d7baa5face61 | [
"BSD-3-Clause"
] | 51 | 2017-03-26T06:12:10.000Z | 2021-10-19T19:29:58.000Z | models/__init__.py | magnologan/Providence | c23a4aee8b2bab7b8bc7d4099bc5d7baa5face61 | [
"BSD-3-Clause"
] | 7 | 2016-11-07T19:54:19.000Z | 2020-02-26T18:34:11.000Z | models/__init__.py | magnologan/Providence | c23a4aee8b2bab7b8bc7d4099bc5d7baa5face61 | [
"BSD-3-Clause"
] | 10 | 2016-11-08T11:07:28.000Z | 2019-08-06T04:44:46.000Z | '''
Copyright (c) 2015, Salesforce.com, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the foll... | 43.329268 | 755 | 0.735435 | 442 | 3,553 | 5.760181 | 0.380091 | 0.05106 | 0.041241 | 0.043205 | 0.35271 | 0.293794 | 0.293794 | 0.261587 | 0.261587 | 0.232522 | 0 | 0.002744 | 0.179567 | 3,553 | 81 | 756 | 43.864198 | 0.870669 | 0.416831 | 0 | 0.52459 | 0 | 0 | 0.06686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065574 | 0 | 0.819672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
31ff37fca71811f8928d8a0e8798a06e904eda26 | 1,063 | py | Python | backend/www/urls.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/www/urls.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/www/urls.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | """
WWW URL Configuration
"""
from django.conf.urls import url, include
from www.views import home
urlpatterns = [
# Home page
url(r'^$', home, name='home'),
url(r'^auth/', include('authorization.urls')),
url(r'^article/', include('article.urls')),
url(r'^assortment/', include('assortment.url... | 21.26 | 55 | 0.606773 | 132 | 1,063 | 4.878788 | 0.242424 | 0.10559 | 0.186335 | 0.046584 | 0.245342 | 0.111801 | 0.111801 | 0.111801 | 0 | 0 | 0 | 0 | 0.169332 | 1,063 | 49 | 56 | 21.693878 | 0.729332 | 0.105362 | 0 | 0.095238 | 0 | 0 | 0.367412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee01c26704f9e0308bbd84b3cd9b5f2c51e2df61 | 3,417 | py | Python | Ryven/packages/auto_generated/selectors/nodes.py | tfroehlich82/Ryven | cb57c91d13949712844a4410a9302c4a90d28dcd | [
"MIT"
] | 2,872 | 2020-07-01T09:06:34.000Z | 2022-03-31T05:52:32.000Z | Ryven/packages/auto_generated/selectors/nodes.py | dhf327/Ryven | a11e361528d982a9dd3c489dd536f8b05ffd56e1 | [
"MIT"
] | 59 | 2020-06-28T12:50:50.000Z | 2022-03-27T19:07:54.000Z | Ryven/packages/auto_generated/selectors/nodes.py | dhf327/Ryven | a11e361528d982a9dd3c489dd536f8b05ffd56e1 | [
"MIT"
] | 339 | 2020-07-05T04:36:20.000Z | 2022-03-24T07:25:18.000Z |
from NENV import *
import selectors
class NodeBase(Node):
pass
class _Can_Use_Node(NodeBase):
"""
Check if we can use the selector depending upon the
operating system. """
title = '_can_use'
type_ = 'selectors'
init_inputs = [
NodeInputBP(label='method'),
]
init_ou... | 24.76087 | 99 | 0.584431 | 398 | 3,417 | 4.849246 | 0.351759 | 0.015544 | 0.035233 | 0.047668 | 0.267358 | 0.267358 | 0.186529 | 0.186529 | 0.186529 | 0.186529 | 0 | 0.02403 | 0.305824 | 3,417 | 137 | 100 | 24.941606 | 0.789629 | 0.44981 | 0 | 0.40678 | 0 | 0 | 0.098331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0.016949 | 0.033898 | 0 | 0.525424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee07e26c19674ec9684cfd3a5c2cac93084dbf71 | 1,508 | py | Python | cv/models.py | Arlefreak/api.afk | 7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79 | [
"MIT"
] | null | null | null | cv/models.py | Arlefreak/api.afk | 7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79 | [
"MIT"
] | 5 | 2016-01-21T20:21:42.000Z | 2016-01-22T23:00:33.000Z | cv/models.py | Arlefreak/ApiArlefreak | 7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79 | [
"MIT"
] | null | null | null | from django.db import models
from adminsortable.models import SortableMixin
from django.template.defaultfilters import slugify
class CV(SortableMixin):
order = models.PositiveIntegerField(
default=0, editable=False, db_index=True)
publish = models.BooleanField(default=False)
name = models.CharFiel... | 30.16 | 72 | 0.689655 | 175 | 1,508 | 5.84 | 0.325714 | 0.063601 | 0.090998 | 0.111546 | 0.572407 | 0.527397 | 0.527397 | 0.527397 | 0.527397 | 0.527397 | 0 | 0.007401 | 0.193634 | 1,508 | 49 | 73 | 30.77551 | 0.833059 | 0 | 0 | 0.594595 | 0 | 0 | 0.024536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.081081 | 0.054054 | 0.756757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee0c96df63ff5d2a44b3fda5f2e2a7f42048c85d | 1,367 | py | Python | ProjectIoT/Mantenimientos/urls.py | caiki/iot-proyecto | 2cf9af70ab95ecdb19afc69c38cd634cd07fa5d8 | [
"Apache-2.0"
] | null | null | null | ProjectIoT/Mantenimientos/urls.py | caiki/iot-proyecto | 2cf9af70ab95ecdb19afc69c38cd634cd07fa5d8 | [
"Apache-2.0"
] | null | null | null | ProjectIoT/Mantenimientos/urls.py | caiki/iot-proyecto | 2cf9af70ab95ecdb19afc69c38cd634cd07fa5d8 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import patterns, url
urlpatterns= patterns('Mantenimientos.views',
url(r'^auten/', 'autentificar', name="autentificar"),
url(r'^inicio/', 'Inicio_view'),
url(r'^AgregarHeart_ajax/', 'AgregarHeart_ajax_view'),
url(r'^Bienvenida/', 'Bienvenida_view'),
)
"""... | 54.68 | 79 | 0.758595 | 160 | 1,367 | 6.0625 | 0.24375 | 0.082474 | 0.148454 | 0.173196 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080468 | 1,367 | 25 | 80 | 54.68 | 0.771679 | 0 | 0 | 0 | 0 | 0 | 0.44373 | 0.07074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee156fc2c58fe7f11ea839d9c90c92d45418e6b2 | 420 | py | Python | post_it/migrations/0003_post_it_zindex.py | constantin-kuehne/IdeaPostProduction | ddacd27e18d4a98f7fd860d23693f21ef74d831b | [
"MIT"
] | null | null | null | post_it/migrations/0003_post_it_zindex.py | constantin-kuehne/IdeaPostProduction | ddacd27e18d4a98f7fd860d23693f21ef74d831b | [
"MIT"
] | null | null | null | post_it/migrations/0003_post_it_zindex.py | constantin-kuehne/IdeaPostProduction | ddacd27e18d4a98f7fd860d23693f21ef74d831b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-10-05 17:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post_it', '0002_auto_20201002_1725'),
]
operations = [
migrations.AddField(
model_name='post_it',
name='zindex',
... | 21 | 49 | 0.595238 | 46 | 420 | 5.282609 | 0.76087 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0.295238 | 420 | 19 | 50 | 22.105263 | 0.712838 | 0.107143 | 0 | 0 | 1 | 0 | 0.115282 | 0.061662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee1f848b6ff438cbb4ce4d583185c36a651708d2 | 283 | py | Python | vnpy/trader/gateway/xspeedGateway/__init__.py | black0144/vnpy | 0d0ea30dad14a0150f7500ff9a62528030321426 | [
"MIT"
] | 5 | 2019-01-17T12:14:14.000Z | 2021-05-30T10:24:42.000Z | vnpy/trader/gateway/xspeedGateway/__init__.py | black0144/vnpy | 0d0ea30dad14a0150f7500ff9a62528030321426 | [
"MIT"
] | 1 | 2018-06-12T10:08:24.000Z | 2018-06-12T10:08:24.000Z | vnpy/trader/gateway/xspeedGateway/__init__.py | black0144/vnpy | 0d0ea30dad14a0150f7500ff9a62528030321426 | [
"MIT"
] | 5 | 2019-03-26T03:17:45.000Z | 2019-11-05T08:08:18.000Z | # encoding: UTF-8
from __future__ import absolute_import
from vnpy.trader import vtConstant
from .xspeedGateway import XspeedGateway
gatewayClass = XspeedGateway
gatewayName = 'XSPEED'
gatewayDisplayName = u'飞创'
gatewayType = vtConstant.GATEWAYTYPE_FUTURES
gatewayQryEnabled = True | 25.727273 | 44 | 0.837456 | 30 | 283 | 7.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.109541 | 283 | 11 | 45 | 25.727273 | 0.912698 | 0.053004 | 0 | 0 | 0 | 0 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ee25b73596d7cc38eff45365931166165a2ac40e | 11,760 | py | Python | sdk/python/pulumi_azure/storage/get_account.py | Frassle/pulumi-azure | 593dd1020b09b83422928913d06bf91538926155 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/storage/get_account.py | Frassle/pulumi-azure | 593dd1020b09b83422928913d06bf91538926155 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/storage/get_account.py | Frassle/pulumi-azure | 593dd1020b09b83422928913d06bf91538926155 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
from .. import utilities, tables
class GetAccountResult(object):
"""
A collection of value... | 53.944954 | 739 | 0.708759 | 1,358 | 11,760 | 5.721649 | 0.120766 | 0.065894 | 0.055598 | 0.104247 | 0.50103 | 0.417503 | 0.298456 | 0.146203 | 0.096268 | 0.06435 | 0 | 0.000109 | 0.220238 | 11,760 | 217 | 740 | 54.193548 | 0.847219 | 0.019133 | 0 | 0 | 1 | 0 | 0.207769 | 0.073252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008403 | false | 0 | 0.02521 | 0 | 0.05042 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee261814639382e967cc1c983d5b05e37ae1c5e4 | 2,954 | py | Python | wiimotes.py | Frazew/PythonUSBIP | 480195837bb3fc25892dedcdf8b5a0d113ad33d5 | [
"Unlicense"
] | 57 | 2016-09-22T00:19:26.000Z | 2022-03-11T15:26:47.000Z | wiimotes.py | Frazew/PythonUSBIP | 480195837bb3fc25892dedcdf8b5a0d113ad33d5 | [
"Unlicense"
] | 2 | 2018-08-28T15:54:30.000Z | 2018-09-05T18:03:23.000Z | wiimotes.py | Frazew/PythonUSBIP | 480195837bb3fc25892dedcdf8b5a0d113ad33d5 | [
"Unlicense"
] | 9 | 2017-12-17T17:33:03.000Z | 2022-03-22T08:37:58.000Z | #!/usr/bin/python
import cwiid
import time
import sys
from hid_wiimote import WiimoteHID, WiimoteContainer
from threading import Thread
# Hey StackOverflow !
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '... | 36.925 | 172 | 0.667569 | 356 | 2,954 | 5.38764 | 0.356742 | 0.100104 | 0.08342 | 0.059958 | 0.255474 | 0.211157 | 0.081335 | 0 | 0 | 0 | 0 | 0.023514 | 0.208192 | 2,954 | 79 | 173 | 37.392405 | 0.796494 | 0.012187 | 0 | 0.114286 | 0 | 0 | 0.16743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042857 | 0.071429 | null | null | 0.128571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee27501aeebb226b928a5413847814f2cf6ccff8 | 684 | py | Python | remove_item.py | AskingSteam5779/my-programming-progress | 77e6de2e7aed98ebd677d8e371a9b5b59bda3f26 | [
"MIT"
] | null | null | null | remove_item.py | AskingSteam5779/my-programming-progress | 77e6de2e7aed98ebd677d8e371a9b5b59bda3f26 | [
"MIT"
] | null | null | null | remove_item.py | AskingSteam5779/my-programming-progress | 77e6de2e7aed98ebd677d8e371a9b5b59bda3f26 | [
"MIT"
] | null | null | null | # This program demonstrates how to use the remove
# method to remove an item from a list.
def main():
# Create a list with some items.
food = ['Pizza', 'Burgers', 'Chips']
# Display the list.
print('Here are the items in the food list:')
print(food)
# Get the item to change.
i... | 20.727273 | 54 | 0.549708 | 88 | 684 | 4.272727 | 0.522727 | 0.095745 | 0.074468 | 0.101064 | 0.12234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.361111 | 684 | 32 | 55 | 21.375 | 0.860412 | 0.317251 | 0 | 0.166667 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ee27645a89ce9e458857c88f5daa34d028c8fe0c | 647 | py | Python | Main.py | sunn-e/Myntra-WebScrapper-Dataset | 3138274aa9293b7d24318e215b134f636a7d914c | [
"MIT"
] | null | null | null | Main.py | sunn-e/Myntra-WebScrapper-Dataset | 3138274aa9293b7d24318e215b134f636a7d914c | [
"MIT"
] | null | null | null | Main.py | sunn-e/Myntra-WebScrapper-Dataset | 3138274aa9293b7d24318e215b134f636a7d914c | [
"MIT"
] | 2 | 2021-03-13T10:07:29.000Z | 2021-03-21T14:41:36.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 15 14:02:21 2019
@author: SUNNY DHOKE
"""
import wsurlopen
import bs4
from urllib.error import HTTPError
from requests.exceptions import ConnectionError
def urlOpen(url):
try:
var = "no problem"
read = requests.get(url)
except HTTPError as e:
... | 22.310345 | 68 | 0.627512 | 88 | 647 | 4.613636 | 0.670455 | 0.022167 | 0.044335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0.279753 | 647 | 28 | 69 | 23.107143 | 0.841202 | 0.032458 | 0 | 0 | 0 | 0 | 0.275492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
ee2882df691afc1480a6b32058aa207c499b3b4b | 423 | py | Python | utils/management/commands/rqworker.py | schiederme/peering-manager | 2d29427fd4f2b91a5208f31e1a7ad69eaf82924c | [
"Apache-2.0"
] | 173 | 2020-08-08T15:38:08.000Z | 2022-03-21T11:35:25.000Z | utils/management/commands/rqworker.py | schiederme/peering-manager | 2d29427fd4f2b91a5208f31e1a7ad69eaf82924c | [
"Apache-2.0"
] | 247 | 2017-12-26T12:55:34.000Z | 2020-08-08T11:57:35.000Z | utils/management/commands/rqworker.py | schiederme/peering-manager | 2d29427fd4f2b91a5208f31e1a7ad69eaf82924c | [
"Apache-2.0"
] | 63 | 2017-10-13T06:46:05.000Z | 2020-08-08T00:41:57.000Z | from django.conf import settings
from django_rq.management.commands.rqworker import Command as C
class Command(C):
"""
Subclass django_rq's built-in rqworker to listen on all configured queues if none
are specified (instead of only the 'default' queue).
"""
def handle(self, *args, **options):
... | 26.4375 | 85 | 0.664303 | 58 | 423 | 4.793103 | 0.706897 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003086 | 0.234043 | 423 | 15 | 86 | 28.2 | 0.854938 | 0.316785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee34e8e0094b676ea08d0ef35055f2b2b90f0239 | 400 | py | Python | tests/source_news_test.py | Floride125-art/TheNews-App | f21c9956e1a2231840a3ef2992b32cc2ffdf2130 | [
"Unlicense"
] | null | null | null | tests/source_news_test.py | Floride125-art/TheNews-App | f21c9956e1a2231840a3ef2992b32cc2ffdf2130 | [
"Unlicense"
] | null | null | null | tests/source_news_test.py | Floride125-art/TheNews-App | f21c9956e1a2231840a3ef2992b32cc2ffdf2130 | [
"Unlicense"
] | null | null | null | import unittest
from app.models import News_Source
class NewsSourceTest(unittest.TestCase):
#Test news source class
def setUp(self):
#set up method that will run before every test
self.new_news = News_Source('a','b','www.d.com',"e")
def test_instance(self):
... | 23.529412 | 60 | 0.645 | 53 | 400 | 4.622642 | 0.660377 | 0.122449 | 0.122449 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 400 | 17 | 61 | 23.529412 | 0.816667 | 0.17 | 0 | 0 | 0 | 0 | 0.060423 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | null | null | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
ee37ff0783e240d8e2f7e1a629d8a9b64e320f03 | 929 | py | Python | src/users/models/componentsschemasmicrosoft_graph_workbookcommentreplyallof1.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | src/users/models/componentsschemasmicrosoft_graph_workbookcommentreplyallof1.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | src/users/models/componentsschemasmicrosoft_graph_workbookcommentreplyallof1.py | peombwa/Sample-Graph-Python-Client | 3396f531fbe6bb40a740767c4e31aee95a3b932e | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 32.034483 | 89 | 0.580194 | 79 | 929 | 6.620253 | 0.556962 | 0.16826 | 0.061185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003886 | 0.168999 | 929 | 28 | 90 | 33.178571 | 0.673575 | 0.435953 | 0 | 0 | 1 | 0 | 0.115854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee393bdc73ae2cea9645d4e1e718e5d67504d00c | 435 | py | Python | coingate/migrations/0005_payment_token.py | glitzybunny/coingate_sandbox_payment | f5686964cdd6b7d65f9f37957da4b2cda6a02f63 | [
"MIT"
] | 2 | 2020-08-31T17:53:06.000Z | 2020-08-31T18:33:05.000Z | coingate/migrations/0005_payment_token.py | glitzybunny/coingate_sandbox_payment | f5686964cdd6b7d65f9f37957da4b2cda6a02f63 | [
"MIT"
] | 5 | 2021-03-30T12:48:17.000Z | 2021-09-22T18:32:14.000Z | coingate/migrations/0005_payment_token.py | glitzybunny/coingate_sandbox_payment | f5686964cdd6b7d65f9f37957da4b2cda6a02f63 | [
"MIT"
] | 1 | 2020-11-04T04:42:58.000Z | 2020-11-04T04:42:58.000Z | # Generated by Django 3.0.3 on 2020-02-07 20:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('coingate', '0004_auto_20200207_1959'),
]
operations = [
migrations.AddField(
model_name='payment',
name='token',
... | 21.75 | 64 | 0.602299 | 47 | 435 | 5.446809 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119355 | 0.287356 | 435 | 19 | 65 | 22.894737 | 0.706452 | 0.103448 | 0 | 0 | 1 | 0 | 0.110825 | 0.059278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee3a8fd8520688a3b56cc3dd6622bce8cf08902b | 675 | py | Python | FavwatchLogModel.py | tinbotu/favwatch | f4136d271ae0f790fddd6ca7594242b26ba5149e | [
"MIT"
] | null | null | null | FavwatchLogModel.py | tinbotu/favwatch | f4136d271ae0f790fddd6ca7594242b26ba5149e | [
"MIT"
] | 2 | 2019-05-14T21:59:42.000Z | 2020-02-25T02:33:44.000Z | FavwatchLogModel.py | tinbotu/favwatch | f4136d271ae0f790fddd6ca7594242b26ba5149e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# vim: ts=4 sw=4 sts=4 ff=unix ft=python expandtab
import datetime
from peewee import *
favwatch_log = Proxy()
class BaseModel(Model):
class Meta:
database = favwatch_log
class FavLog(BaseModel):
fav_by_screen_name = TextField(null=False)
fav_rough_seen = DateTimeField(... | 22.5 | 65 | 0.657778 | 88 | 675 | 4.863636 | 0.545455 | 0.151869 | 0.119159 | 0.070093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.226667 | 675 | 29 | 66 | 23.275862 | 0.812261 | 0.103704 | 0 | 0.105263 | 0 | 0 | 0.044851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee466a82338313ea3570b338958da3a016584e78 | 3,336 | py | Python | anonymous/models.py | ParkHyeonChae/Re-Born-Web | 95f66600e048b6b10459ed7674d0fa5d3f53dcd5 | [
"MIT"
] | 23 | 2020-01-22T09:22:46.000Z | 2022-03-18T08:31:12.000Z | anonymous/models.py | ParkHyeonChae/Re-Born-Web | 95f66600e048b6b10459ed7674d0fa5d3f53dcd5 | [
"MIT"
] | 9 | 2020-06-05T20:41:34.000Z | 2022-03-12T00:46:58.000Z | anonymous/models.py | ParkHyeonChae/Re-Born-Web | 95f66600e048b6b10459ed7674d0fa5d3f53dcd5 | [
"MIT"
] | 15 | 2020-02-09T12:54:25.000Z | 2022-03-02T00:06:18.000Z | import os
from django.conf import settings
from django.db import models
from django.utils import timezone
from datetime import datetime, timedelta
from uuid import uuid4
def get_image_path(instance, filename):
ymd_path = datetime.now().strftime('%Y/%m/%d')
uuid_name = uuid4().hex
return '/'.join(['image_f... | 37.483146 | 116 | 0.657974 | 432 | 3,336 | 4.923611 | 0.298611 | 0.093089 | 0.042313 | 0.050776 | 0.461683 | 0.411848 | 0.411848 | 0.411848 | 0.370475 | 0.370475 | 0 | 0.011141 | 0.219724 | 3,336 | 89 | 117 | 37.483146 | 0.805993 | 0 | 0 | 0.39726 | 0 | 0 | 0.043752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09589 | false | 0 | 0.082192 | 0.041096 | 0.616438 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee481ef3ba8b65bcd329b322135554e04a7386f6 | 2,891 | py | Python | networkapi/api_network/tests/v3/unit/networkipv6/async/test_delete.py | vinicius-marinho/GloboNetworkAPI | 94651d3b4dd180769bc40ec966814f3427ccfb5b | [
"Apache-2.0"
] | 73 | 2015-04-13T17:56:11.000Z | 2022-03-24T06:13:07.000Z | networkapi/api_network/tests/v3/unit/networkipv6/async/test_delete.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 99 | 2015-04-03T01:04:46.000Z | 2021-10-03T23:24:48.000Z | networkapi/api_network/tests/v3/unit/networkipv6/async/test_delete.py | shildenbrand/GloboNetworkAPI | 515d5e961456cee657c08c275faa1b69b7452719 | [
"Apache-2.0"
] | 64 | 2015-08-05T21:26:29.000Z | 2022-03-22T01:06:28.000Z | # -*- coding: utf-8 -*-
import logging
from django.test.client import Client
from mock import patch
from networkapi.api_network.tasks import delete_networkv6
from networkapi.api_network.tasks import undeploy_networkv6
from networkapi.ip.models import NetworkIPv6
from networkapi.test.test_case import NetworkApiTestCas... | 28.623762 | 81 | 0.719128 | 361 | 2,891 | 5.493075 | 0.191136 | 0.052446 | 0.080686 | 0.075643 | 0.610187 | 0.587494 | 0.548664 | 0.548664 | 0.548664 | 0.548664 | 0 | 0.021851 | 0.192667 | 2,891 | 100 | 82 | 28.91 | 0.827764 | 0.095469 | 0 | 0.433333 | 0 | 0 | 0.148419 | 0.144564 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.2 | false | 0.1 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ee57daec5b67aab24f7114eb3d2ebaa8c0522e82 | 18,350 | py | Python | sm_cipher_tools.py | huangbaoliu/sm2_sm3_sm4_tools | 6fc015ab0d639347d6029b5a589a44f61c0569e2 | [
"MIT"
] | 16 | 2019-11-15T12:01:37.000Z | 2022-01-21T09:16:47.000Z | sm_cipher_tools.py | huangbaoliu/sm-tools | 6fc015ab0d639347d6029b5a589a44f61c0569e2 | [
"MIT"
] | 3 | 2020-04-16T06:43:28.000Z | 2022-03-09T07:19:55.000Z | sm_cipher_tools.py | huangbaoliu/sm-tools | 6fc015ab0d639347d6029b5a589a44f61c0569e2 | [
"MIT"
] | 3 | 2020-01-02T06:58:08.000Z | 2021-03-19T07:25:32.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'sm_cipher_tools.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_sm_cipher_tools(object):
def setupUi(self, sm_cipher_tool... | 57.523511 | 108 | 0.706975 | 2,377 | 18,350 | 5.202356 | 0.077409 | 0.082969 | 0.099871 | 0.067362 | 0.595504 | 0.455928 | 0.329775 | 0.205968 | 0.1623 | 0.1623 | 0 | 0.031735 | 0.170572 | 18,350 | 318 | 109 | 57.704403 | 0.780749 | 0.0103 | 0 | 0.013115 | 1 | 0 | 0.066432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006557 | false | 0 | 0.003279 | 0 | 0.013115 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee5bba391fdafc3c7f2b0c1beab56dad974c1dd2 | 272 | py | Python | ex_04_06/ex_04_06.py | rovelee/py4e | 32125f5d62b6c7b6a56c8e1a250c1d81c6d54006 | [
"MIT"
] | null | null | null | ex_04_06/ex_04_06.py | rovelee/py4e | 32125f5d62b6c7b6a56c8e1a250c1d81c6d54006 | [
"MIT"
] | null | null | null | ex_04_06/ex_04_06.py | rovelee/py4e | 32125f5d62b6c7b6a56c8e1a250c1d81c6d54006 | [
"MIT"
] | null | null | null | def computepay(h, r):
print("In computepay")
if h>40:
pay = 40 * r + (h - 40) * 1.5 * r
else:
pay = h * r
return pay
hrs = input("Enter Hours:")
h = float(hrs)
rate = input("Enter Rate:")
r = float(rate)
pay = computepay(h,r)
print(pay)
| 16 | 41 | 0.533088 | 44 | 272 | 3.295455 | 0.431818 | 0.041379 | 0.165517 | 0.234483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0.297794 | 272 | 16 | 42 | 17 | 0.717277 | 0 | 0 | 0 | 0 | 0 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee5f40c6dc8529d8f95506c803fab606fa826584 | 361 | py | Python | apps/contact/admin.py | vanderland/vdl_site | 43b9ad3e5e7b9a2d35fc3cbb6a378cc8374699f1 | [
"MIT"
] | null | null | null | apps/contact/admin.py | vanderland/vdl_site | 43b9ad3e5e7b9a2d35fc3cbb6a378cc8374699f1 | [
"MIT"
] | null | null | null | apps/contact/admin.py | vanderland/vdl_site | 43b9ad3e5e7b9a2d35fc3cbb6a378cc8374699f1 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Contact
class ContactAdmin(admin.ModelAdmin):
list_display = ('id', 'email_address', 'subject', 'created_on')
list_display_links = ('id', 'email_address')
search_fields = ('name_first', 'name_last', 'email_address')
list_per_page = 25
adm... | 30.083333 | 68 | 0.709141 | 44 | 361 | 5.545455 | 0.659091 | 0.147541 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.166205 | 361 | 11 | 69 | 32.818182 | 0.803987 | 0 | 0 | 0 | 0 | 0 | 0.225714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee6871d05698efcb220ea312eb6075a13e9f036f | 791 | py | Python | Leetcode Practice/unq_morse_code_words.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | 2 | 2020-04-11T14:15:10.000Z | 2020-05-12T09:57:29.000Z | Leetcode Practice/unq_morse_code_words.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | null | null | null | Leetcode Practice/unq_morse_code_words.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | 1 | 2021-10-10T02:13:42.000Z | 2021-10-10T02:13:42.000Z | # Link - https://leetcode.com/problems/unique-morse-code-words/
'''
Runtime: 28 ms, faster than 95.58% of Python3 online submissions for Unique Morse Code Words.
Memory Usage: 13.6 MB, less than 99.77% of Python3 online submissions for Unique Morse Code Words.
'''
class Solution:
def uniqueMorseRepresentations(se... | 30.423077 | 177 | 0.424779 | 75 | 791 | 4.48 | 0.64 | 0.098214 | 0.133929 | 0.178571 | 0.291667 | 0.291667 | 0.291667 | 0.291667 | 0.291667 | 0 | 0 | 0.030411 | 0.2933 | 791 | 25 | 178 | 31.64 | 0.570662 | 0.322377 | 0 | 0 | 0 | 0 | 0.155303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee6fe825a6b5906b213e56aa0327d500cd41a10f | 2,269 | py | Python | Python/6 - String/extrator_url.py | eduardoranucci/Alura | 952a6d7e88ce080877d08c803a1b34462c479240 | [
"MIT"
] | null | null | null | Python/6 - String/extrator_url.py | eduardoranucci/Alura | 952a6d7e88ce080877d08c803a1b34462c479240 | [
"MIT"
] | null | null | null | Python/6 - String/extrator_url.py | eduardoranucci/Alura | 952a6d7e88ce080877d08c803a1b34462c479240 | [
"MIT"
] | null | null | null | import re
class ExtratorUrl:
def __init__(self, url):
self.url = self.sanitiza_url(url)
self.valida_url(url)
def sanitiza_url(self, url):
if type(url) == str:
return url.strip()
else:
return ''
def valida_url(self, url):
if not url:
... | 29.467532 | 109 | 0.635963 | 289 | 2,269 | 4.747405 | 0.259516 | 0.056122 | 0.069971 | 0.072886 | 0.184402 | 0.104956 | 0.104956 | 0 | 0 | 0 | 0 | 0.009286 | 0.240635 | 2,269 | 76 | 110 | 29.855263 | 0.786999 | 0.089907 | 0 | 0.102041 | 0 | 0.020408 | 0.174927 | 0.045675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.020408 | 0.061224 | 0.44898 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee786c099c061d1dff789a1792123adfa52e03bd | 12,768 | py | Python | memento_damage/__init__.py | oduwsdl/web-memento-damage | 619a594bdce5e62685507769cc819ffdb3c3e82f | [
"MIT"
] | 2 | 2019-03-19T13:23:48.000Z | 2020-10-06T21:15:50.000Z | memento_damage/__init__.py | oduwsdl/web-memento-damage | 619a594bdce5e62685507769cc819ffdb3c3e82f | [
"MIT"
] | 5 | 2017-10-04T20:27:08.000Z | 2019-04-25T15:33:33.000Z | memento_damage/__init__.py | oduwsdl/web-memento-damage | 619a594bdce5e62685507769cc819ffdb3c3e82f | [
"MIT"
] | 1 | 2017-10-06T20:46:25.000Z | 2017-10-06T20:46:25.000Z | import errno
import io
import json
import logging
import mimetypes
import os
import sys
import tempfile
import time
import urllib
from datetime import datetime
from optparse import OptionParser
from memento_damage.damage_analysis import MementoDamageAnalysis
base_dir = os.path.abspath(os.path.dirname(__file__))
sys.p... | 36.795389 | 120 | 0.575893 | 1,503 | 12,768 | 4.665336 | 0.184298 | 0.044923 | 0.019966 | 0.021962 | 0.272533 | 0.234313 | 0.186395 | 0.155448 | 0.121221 | 0.121221 | 0 | 0.004729 | 0.304433 | 12,768 | 346 | 121 | 36.901734 | 0.784822 | 0.041353 | 0 | 0.262172 | 0 | 0 | 0.112275 | 0.003764 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052434 | null | null | 0.026217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee7fd3b89065d94d10f6c75fd2d54b740f1851d4 | 290 | py | Python | simplestore/cart/forms.py | martinstastny/django-store | 5b63de3e9efd688265df87cd84d81d43772e63fd | [
"MIT"
] | 36 | 2017-06-15T18:52:14.000Z | 2022-01-12T21:13:16.000Z | simplestore/cart/forms.py | martinstastny/django-store | 5b63de3e9efd688265df87cd84d81d43772e63fd | [
"MIT"
] | 7 | 2020-06-05T17:13:26.000Z | 2022-02-10T18:25:54.000Z | simplestore/cart/forms.py | martinstastny/django-store | 5b63de3e9efd688265df87cd84d81d43772e63fd | [
"MIT"
] | 10 | 2017-09-15T12:59:33.000Z | 2021-08-03T22:26:30.000Z | from django import forms
from .models import CartItem
class AddToCartForm(forms.ModelForm):
class Meta:
model = CartItem
fields = [
'quantity'
]
widgets = {
'quantity': forms.NumberInput(attrs={'class': 'full-width'})
}
| 20.714286 | 72 | 0.562069 | 26 | 290 | 6.269231 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334483 | 290 | 13 | 73 | 22.307692 | 0.84456 | 0 | 0 | 0 | 0 | 0 | 0.106897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee80c4f4788c235a0e6a15e12eba7374acb72a4b | 356 | py | Python | diagonal_diff.py | udaik/lang-python | c5fa05ed04c2fb782ba7c60e6c06097867c38edc | [
"Apache-2.0"
] | null | null | null | diagonal_diff.py | udaik/lang-python | c5fa05ed04c2fb782ba7c60e6c06097867c38edc | [
"Apache-2.0"
] | null | null | null | diagonal_diff.py | udaik/lang-python | c5fa05ed04c2fb782ba7c60e6c06097867c38edc | [
"Apache-2.0"
] | null | null | null | #!/bin/python
import sys
n = int(raw_input().strip())
a = []
for a_i in xrange(n):
a_temp = map(int,raw_input().strip().split(' '))
a.append(a_temp)
diag = [ a[i][i] for i in range(len(a)) ]
counter_diag = [ row[-i-1] for i,row in enumerate(a) ]
sum = 0
for i in diag:
sum = sum + i
for i in counter_diag... | 16.952381 | 54 | 0.592697 | 69 | 356 | 2.956522 | 0.42029 | 0.058824 | 0.088235 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.224719 | 356 | 20 | 55 | 17.8 | 0.731884 | 0.033708 | 0 | 0 | 0 | 0 | 0.002915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee86303aeee9884719ebe4a73e70b1d73b1b46a2 | 415 | py | Python | wordle_solver/__init__.py | Nadock/wordle_solver | 57ae2e23e00e1ae47170af2afec9ff3c76e7652e | [
"MIT"
] | null | null | null | wordle_solver/__init__.py | Nadock/wordle_solver | 57ae2e23e00e1ae47170af2afec9ff3c76e7652e | [
"MIT"
] | null | null | null | wordle_solver/__init__.py | Nadock/wordle_solver | 57ae2e23e00e1ae47170af2afec9ff3c76e7652e | [
"MIT"
] | null | null | null | from .constants import CORRECT, IN_WORD, INCORRECT, Answer, AnswerPart
from .renderer import RichWordleRenderer
from .solver import WordleSolver
from .version import __program__, __version__
from .words import ALL_WORDS
__all__ = [
"CORRECT",
"IN_WORD",
"INCORRECT",
"Answer",
"AnswerPart",
"Ric... | 21.842105 | 70 | 0.703614 | 40 | 415 | 6.7 | 0.425 | 0.067164 | 0.097015 | 0.164179 | 0.283582 | 0.283582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 415 | 18 | 71 | 23.055556 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee899b1bd8c14f355a31d6d79e9a7208fc87aa4e | 1,077 | py | Python | students/k3342/practical_works/Shipitsyna_Daria/simple_django_web_project/project_first_app/models.py | shipa99/ITMO_ICT_WebProgramming_2020 | 86b6b1faa606fd3487193e426830daffd70e801c | [
"MIT"
] | null | null | null | students/k3342/practical_works/Shipitsyna_Daria/simple_django_web_project/project_first_app/models.py | shipa99/ITMO_ICT_WebProgramming_2020 | 86b6b1faa606fd3487193e426830daffd70e801c | [
"MIT"
] | null | null | null | students/k3342/practical_works/Shipitsyna_Daria/simple_django_web_project/project_first_app/models.py | shipa99/ITMO_ICT_WebProgramming_2020 | 86b6b1faa606fd3487193e426830daffd70e801c | [
"MIT"
] | null | null | null | from django.db import models
class Car(models.Model):
mark = models.CharField(max_length=128)
model = models.CharField(max_length=128)
colour = models.CharField(max_length=128)
gov_number = models.CharField(max_length=128)
class Owner(models.Model):
first_name = models.CharField(max_length=128)
... | 32.636364 | 63 | 0.684308 | 134 | 1,077 | 5.328358 | 0.373134 | 0.147059 | 0.176471 | 0.235294 | 0.369748 | 0.218487 | 0.131653 | 0.131653 | 0 | 0 | 0 | 0.021518 | 0.18013 | 1,077 | 32 | 64 | 33.65625 | 0.787089 | 0 | 0 | 0.071429 | 0 | 0 | 0.031569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c98eaf1b193ea29aff2192e19a143612496b4430 | 3,091 | py | Python | forum_modules/facebookauth/authentication.py | Stackato-Apps/osqa | 728bb43ae913e33769c52f40cadb26721faaf2b2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2017-07-14T09:58:07.000Z | 2017-07-14T09:58:07.000Z | forum_modules/facebookauth/authentication.py | Stackato-Apps/osqa | 728bb43ae913e33769c52f40cadb26721faaf2b2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | forum_modules/facebookauth/authentication.py | Stackato-Apps/osqa | 728bb43ae913e33769c52f40cadb26721faaf2b2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # -*- coding: utf-8 -*-
import cgi
import logging
from urllib import urlopen, urlencode
from forum.authentication.base import AuthenticationConsumer, ConsumerTemplateContext, InvalidAuthentication
from django.conf import settings as django_settings
from django.utils.encoding import smart_unicode
from django.core.ur... | 35.125 | 137 | 0.662892 | 362 | 3,091 | 5.483425 | 0.406077 | 0.055416 | 0.019647 | 0.024181 | 0.114861 | 0.071033 | 0.071033 | 0.071033 | 0.043325 | 0.043325 | 0 | 0.005544 | 0.241346 | 3,091 | 87 | 138 | 35.528736 | 0.840938 | 0.117761 | 0 | 0 | 0 | 0 | 0.15894 | 0.011773 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.178571 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c993146b69e646cca11c26d31605dfcc27bd7623 | 976 | py | Python | examples/simple/src/schema/versions/78fa1d22bf42_202031817562_add_column_email_address_to_table_users_.py | lazytype/ent | d9729f3bb5c2410021e58dfdac0ef03efb439edb | [
"MIT"
] | 35 | 2021-05-28T00:16:56.000Z | 2022-03-14T10:02:09.000Z | examples/simple/src/schema/versions/78fa1d22bf42_202031817562_add_column_email_address_to_table_users_.py | lazytype/ent | d9729f3bb5c2410021e58dfdac0ef03efb439edb | [
"MIT"
] | 187 | 2021-05-26T19:23:59.000Z | 2022-03-30T17:53:49.000Z | examples/simple/src/schema/versions/78fa1d22bf42_202031817562_add_column_email_address_to_table_users_.py | lazytype/ent | d9729f3bb5c2410021e58dfdac0ef03efb439edb | [
"MIT"
] | 6 | 2021-06-11T23:09:22.000Z | 2022-02-01T23:45:35.000Z | # Code generated by github.com/lolopinto/ent/ent, DO NOT edit.
"""add column email_address to table users
add unique constraint users_unique_email_address
Revision ID: 78fa1d22bf42
Revises: d4bce0224501
Create Date: 2020-03-18 17:56:02.814172+00:00
"""
from alembic import op
import sqlalchemy as sa
# revision ide... | 28.705882 | 89 | 0.72541 | 128 | 976 | 5.359375 | 0.484375 | 0.122449 | 0.091837 | 0.113703 | 0.399417 | 0.399417 | 0.12828 | 0.12828 | 0 | 0 | 0 | 0.06506 | 0.14959 | 976 | 33 | 90 | 29.575758 | 0.761446 | 0.44877 | 0 | 0 | 1 | 0 | 0.282 | 0.104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c99b005c12a571fa578bc4f6ac341cd82605de56 | 12,778 | py | Python | paradigm/definitions/unsupported.py | lycantropos/paradigm | a74cd885e2a07418425379099ddc090edc6e1772 | [
"MIT"
] | 3 | 2019-09-11T07:24:07.000Z | 2020-11-27T04:09:06.000Z | paradigm/definitions/unsupported.py | lycantropos/paradigm | a74cd885e2a07418425379099ddc090edc6e1772 | [
"MIT"
] | 21 | 2018-11-08T17:34:00.000Z | 2019-12-14T13:57:29.000Z | paradigm/definitions/unsupported.py | lycantropos/paradigm | a74cd885e2a07418425379099ddc090edc6e1772 | [
"MIT"
] | 1 | 2019-09-11T07:24:14.000Z | 2019-09-11T07:24:14.000Z | import platform
import sys
from itertools import chain
from .utils import (_add,
_add_module,
_to_callables,
_update,
_update_modules)
# importing will cause unwanted side effects such as raising error
stdlib_modules_names = {'antigravity... | 51.112 | 78 | 0.35522 | 731 | 12,778 | 5.853625 | 0.358413 | 0.017527 | 0.049077 | 0.052582 | 0.247721 | 0.172237 | 0.162187 | 0.142557 | 0.142557 | 0.12573 | 0 | 0.011335 | 0.558147 | 12,778 | 249 | 79 | 51.317269 | 0.746546 | 0.019878 | 0 | 0.087558 | 0 | 0 | 0.217304 | 0.026444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018433 | 0 | 0.018433 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c99d1e42dd34d5995ddfae3e8b03c30879914681 | 3,959 | py | Python | search_blood.py | muneerulhudha/ThereWillBeBlood | 03efd1e506190fc1acca0ceafd6169e6880d93b0 | [
"MIT"
] | 1 | 2016-03-20T09:52:15.000Z | 2016-03-20T09:52:15.000Z | search_blood.py | muneerulhudha/ThereWillBeBlood | 03efd1e506190fc1acca0ceafd6169e6880d93b0 | [
"MIT"
] | null | null | null | search_blood.py | muneerulhudha/ThereWillBeBlood | 03efd1e506190fc1acca0ceafd6169e6880d93b0 | [
"MIT"
] | null | null | null | from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
import time
import json
import pickle
import authentication_file
import math
import re
import regex
import couchdb
from gcm import GCM
import access_gcm
import urllib2
tweet_list=["#Thane #Mumbai Urgently needs A+ blo... | 27.685315 | 314 | 0.697904 | 563 | 3,959 | 4.792185 | 0.312611 | 0.025945 | 0.016679 | 0.002965 | 0.079318 | 0.065975 | 0.05189 | 0.05189 | 0 | 0 | 0 | 0.015224 | 0.153827 | 3,959 | 142 | 315 | 27.880282 | 0.790149 | 0.201313 | 0 | 0.097826 | 0 | 0.021739 | 0.260648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152174 | null | null | 0.184783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9b1332ca9a41b4dc6405ff02181daa28cf27087 | 2,461 | py | Python | pjisp/pjisp_server/user/models.py | MilenaVujicic/pjisp-ocenjivanje | eb3441c187b9897311c8628054c53d7d01b72a62 | [
"BSD-3-Clause"
] | null | null | null | pjisp/pjisp_server/user/models.py | MilenaVujicic/pjisp-ocenjivanje | eb3441c187b9897311c8628054c53d7d01b72a62 | [
"BSD-3-Clause"
] | null | null | null | pjisp/pjisp_server/user/models.py | MilenaVujicic/pjisp-ocenjivanje | eb3441c187b9897311c8628054c53d7d01b72a62 | [
"BSD-3-Clause"
] | null | null | null | from typing import Type
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.contrib.auth.hashers import make_password, check_password
# Create your models here.
class AppUserManager(BaseUserManager):
def create_user(self, email, first_name, last_name, ... | 37.287879 | 144 | 0.700528 | 326 | 2,461 | 5.095092 | 0.254601 | 0.070439 | 0.050572 | 0.072246 | 0.51174 | 0.456352 | 0.456352 | 0.335942 | 0.335942 | 0.335942 | 0 | 0.003586 | 0.206826 | 2,461 | 65 | 145 | 37.861538 | 0.847336 | 0.026818 | 0 | 0.333333 | 0 | 0 | 0.081104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.104167 | 0.083333 | 0.0625 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.