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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2209b4af213980fdb95f95413838d487ad63e69d | 1,987 | py | Python | services/resource_search/src/oci_cli_resource_search/resourcesearch_cli_extended.py | rosalexander/oci-cli | 2ab654c639a50431903dd6b81b0143fb602b0864 | [
"Apache-2.0"
] | null | null | null | services/resource_search/src/oci_cli_resource_search/resourcesearch_cli_extended.py | rosalexander/oci-cli | 2ab654c639a50431903dd6b81b0143fb602b0864 | [
"Apache-2.0"
] | null | null | null | services/resource_search/src/oci_cli_resource_search/resourcesearch_cli_extended.py | rosalexander/oci-cli | 2ab654c639a50431903dd6b81b0143fb602b0864 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
from oci_cli_resource_search.generated import resourcesearch_cli
from oci_cli import cli_util
from oci_cli import json_skeleton_utils
import click
cli_util.rename_command(resourcesearch_cli.search_root_group, resourcesearch... | 73.592593 | 331 | 0.841973 | 254 | 1,987 | 6.200787 | 0.370079 | 0.151111 | 0.102222 | 0.121905 | 0.446349 | 0.422222 | 0.339048 | 0.24 | 0.24 | 0.24 | 0 | 0.004932 | 0.08153 | 1,987 | 26 | 332 | 76.423077 | 0.858082 | 0.045294 | 0 | 0 | 1 | 0.052632 | 0.223865 | 0.0132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.210526 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
22434aeaa88ad193bfb39e3f11e966e634098ecf | 25,701 | py | Python | release/stubs.min/Tekla/Structures/Geometry3d.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/Geometry3d.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/Geometry3d.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Tekla.Structures.Geometry3d calls itself Geometry3d
# from Tekla.Structures,Version=2017.0.0.0,Culture=neutral,PublicKeyToken=2f04dbe497b71114
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class AABB(object):
"""
AABB()
AABB(MinPoint: Point,MaxPo... | 22.967828 | 157 | 0.585892 | 2,535 | 25,701 | 5.757002 | 0.092702 | 0.076059 | 0.045635 | 0.060847 | 0.495341 | 0.40962 | 0.348636 | 0.31698 | 0.29752 | 0.280389 | 0 | 0.010723 | 0.274308 | 25,701 | 1,118 | 158 | 22.988372 | 0.771755 | 0.336329 | 0 | 0.592493 | 0 | 0 | 0.033819 | 0.001975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.281501 | false | 0.281501 | 0 | 0 | 0.482574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2250d56ea68d98de035a3ab4ffc4f30af15e228b | 52 | py | Python | Opereator.py | liusong-cn/python | f67933f0879021a595258e09c4cde5ca1f9f6aed | [
"Apache-2.0"
] | 1 | 2019-11-12T13:38:54.000Z | 2019-11-12T13:38:54.000Z | Opereator.py | liusong-cn/python | f67933f0879021a595258e09c4cde5ca1f9f6aed | [
"Apache-2.0"
] | null | null | null | Opereator.py | liusong-cn/python | f67933f0879021a595258e09c4cde5ca1f9f6aed | [
"Apache-2.0"
] | null | null | null | a=2
b=3
#三目运算符
str='a>b'if a>b else 'a<b'
print(str) | 10.4 | 26 | 0.615385 | 16 | 52 | 2 | 0.5625 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.134615 | 52 | 5 | 27 | 10.4 | 0.666667 | 0.096154 | 0 | 0 | 0 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2255983c8182b5798819635ce04471e869a7c5c2 | 1,375 | py | Python | docs/source/examples/FB2.0/get_array_connections.py | Flav-STOR-WL/py-pure-client | 03b889c997d90380ac5d6380ca5d5432792d3e89 | [
"BSD-2-Clause"
] | 14 | 2018-12-07T18:30:27.000Z | 2022-02-22T09:12:33.000Z | docs/source/examples/FB2.0/get_array_connections.py | Flav-STOR-WL/py-pure-client | 03b889c997d90380ac5d6380ca5d5432792d3e89 | [
"BSD-2-Clause"
] | 28 | 2019-09-17T21:03:52.000Z | 2022-03-29T22:07:35.000Z | docs/source/examples/FB2.0/get_array_connections.py | Flav-STOR-WL/py-pure-client | 03b889c997d90380ac5d6380ca5d5432792d3e89 | [
"BSD-2-Clause"
] | 15 | 2020-06-11T15:50:08.000Z | 2022-03-21T09:27:25.000Z | # list all array connections
res = client.get_array_connections()
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list all array connections with remote name "otherarray"
res = client.get_array_connections(remote_names=["otherarray"])
print(res)
if type(res) == pypureclient... | 41.666667 | 87 | 0.776727 | 188 | 1,375 | 5.595745 | 0.303191 | 0.18251 | 0.068441 | 0.096958 | 0.727186 | 0.613118 | 0.548479 | 0.464829 | 0.464829 | 0.464829 | 0 | 0.045603 | 0.106909 | 1,375 | 32 | 88 | 42.96875 | 0.811075 | 0.303273 | 0 | 0.75 | 0 | 0 | 0.066386 | 0.037935 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
225fbf173d744ad5ffaa0f150ef122ea6aeb1995 | 114 | py | Python | botmention/__init__.py | qaisjp/cogs | e9b3094722980722419905aa8af07c77ebb0ea6c | [
"MIT"
] | 2 | 2020-06-04T11:16:39.000Z | 2020-06-27T08:31:57.000Z | botmention/__init__.py | qaisjp/cogs | e9b3094722980722419905aa8af07c77ebb0ea6c | [
"MIT"
] | 2 | 2020-06-04T11:07:02.000Z | 2020-08-03T16:54:36.000Z | botmention/__init__.py | qaisjp/cogs | e9b3094722980722419905aa8af07c77ebb0ea6c | [
"MIT"
] | 2 | 2020-07-08T18:28:08.000Z | 2021-02-06T22:18:05.000Z | from .botmention import BotMention
def setup(bot):
cog = BotMention(bot)
bot.add_cog(cog)
cog.init() | 16.285714 | 34 | 0.675439 | 16 | 114 | 4.75 | 0.5625 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 114 | 7 | 35 | 16.285714 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
22779e5368f4e647fad720d138f02b8b137611c7 | 1,468 | py | Python | setup.py | jeroyang/txttk | 8e6daf9cbb7dfbc4900870fb365add17929bd4ab | [
"BSD-3-Clause"
] | null | null | null | setup.py | jeroyang/txttk | 8e6daf9cbb7dfbc4900870fb365add17929bd4ab | [
"BSD-3-Clause"
] | null | null | null | setup.py | jeroyang/txttk | 8e6daf9cbb7dfbc4900870fb365add17929bd4ab | [
"BSD-3-Clause"
] | 1 | 2016-04-14T09:13:30.000Z | 2016-04-14T09:13:30.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
with open('README.rst') as f:
readme = f.read()
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist bdist_wheel upload")
sys.exit()
requirements = [
# TODO: put package requirements here
]
tes... | 25.754386 | 69 | 0.611035 | 162 | 1,468 | 5.462963 | 0.58642 | 0.150282 | 0.19774 | 0.146893 | 0.061017 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017164 | 0.245913 | 1,468 | 56 | 70 | 26.214286 | 0.782294 | 0.081063 | 0 | 0.043478 | 0 | 0 | 0.440892 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.065217 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
227958a67100e5154af110338e2d2e60f2e38481 | 135 | py | Python | scripts/test_scipt.py | misads/torch_image_template | db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1 | [
"MIT"
] | 5 | 2019-12-23T05:13:15.000Z | 2020-04-09T03:47:53.000Z | scripts/test_scipt.py | misads/torch_image_template | db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1 | [
"MIT"
] | null | null | null | scripts/test_scipt.py | misads/torch_image_template | db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1 | [
"MIT"
] | null | null | null | import os
tags = ['fold_1', 'fold_2']
for tag in tags:
cmd = "python3 test.py --load %s" % tag
print(cmd)
os.system(cmd)
| 15 | 43 | 0.585185 | 23 | 135 | 3.347826 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.251852 | 135 | 8 | 44 | 16.875 | 0.732673 | 0 | 0 | 0 | 0 | 0 | 0.274074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
97d6a0844419a028b599d717c3e28786d71a991a | 181 | py | Python | syncplay/__main__.py | weeb-poly/syncplay-srv | ed7fb3ee97e249585fc382861dc666a52b31ef53 | [
"Apache-2.0"
] | 1 | 2020-11-04T03:25:54.000Z | 2020-11-04T03:25:54.000Z | syncplay/__main__.py | weeb-poly/syncplay-srv | ed7fb3ee97e249585fc382861dc666a52b31ef53 | [
"Apache-2.0"
] | null | null | null | syncplay/__main__.py | weeb-poly/syncplay-srv | ed7fb3ee97e249585fc382861dc666a52b31ef53 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import logging
from . import ep_server
def main():
logging.basicConfig(level=logging.INFO)
ep_server.main()
if __name__ == '__main__':
main()
| 13.923077 | 43 | 0.685083 | 24 | 181 | 4.75 | 0.666667 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.18232 | 181 | 12 | 44 | 15.083333 | 0.763514 | 0.116022 | 0 | 0 | 0 | 0 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
97d7f4b975a662aef547d67bfe33791cb3dded59 | 7,958 | py | Python | tools/pydev/movifier.py | xdr1000/https-github.com-intercept-intercept | f283e2fd3ce1024e496c6c17eb27f81693f05ca8 | [
"MIT"
] | 166 | 2016-02-11T09:21:26.000Z | 2022-01-01T10:34:38.000Z | tools/pydev/movifier.py | xdr1000/https-github.com-intercept-intercept | f283e2fd3ce1024e496c6c17eb27f81693f05ca8 | [
"MIT"
] | 104 | 2016-02-10T14:34:27.000Z | 2022-03-26T18:03:47.000Z | tools/pydev/movifier.py | xdr1000/https-github.com-intercept-intercept | f283e2fd3ce1024e496c6c17eb27f81693f05ca8 | [
"MIT"
] | 85 | 2016-02-11T23:14:23.000Z | 2022-03-18T05:03:09.000Z |
# ******************************************************************************************************************
# **************************************************** movefier ****************************************************
# ******************************************************************************... | 37.013953 | 127 | 0.614727 | 973 | 7,958 | 4.913669 | 0.219938 | 0.058565 | 0.025099 | 0.014641 | 0.411839 | 0.322736 | 0.275256 | 0.233842 | 0.176114 | 0.159381 | 0 | 0.00277 | 0.228826 | 7,958 | 215 | 128 | 37.013953 | 0.776275 | 0.051144 | 0 | 0.427835 | 0 | 0.010309 | 0.380933 | 0.010229 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.494845 | 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 | 1 | 0 | 2 |
97e0fab62c69648e1d2a17827314f1ba817b6bbc | 210 | py | Python | data_structure/set.py | mstao/pycore | 6bb2224a477f788625619ca58cbde7f39a6911eb | [
"MIT"
] | null | null | null | data_structure/set.py | mstao/pycore | 6bb2224a477f788625619ca58cbde7f39a6911eb | [
"MIT"
] | null | null | null | data_structure/set.py | mstao/pycore | 6bb2224a477f788625619ca58cbde7f39a6911eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 集合
basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
print(basket)
# 判断是否在集合中
print('orange' in basket)
# 初始化
a = set('abracadabra')
print(a)
| 15 | 65 | 0.609524 | 28 | 210 | 4.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.152381 | 210 | 13 | 66 | 16.153846 | 0.707865 | 0.280952 | 0 | 0 | 0 | 0 | 0.335616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 | 1 | 0 | 2 |
97f3b7e25294414087e65f48d6dbb7a09ecfe49b | 6,397 | bzl | Python | repositories.bzl | salrashid123/go-grpc-bazel-docker | 333c02c614d5876bfe63a0660c78eabceb87ca5a | [
"Apache-2.0"
] | 15 | 2020-08-24T23:13:17.000Z | 2022-02-16T17:57:19.000Z | repositories.bzl | salrashid123/go-grpc-bazel-docker | 333c02c614d5876bfe63a0660c78eabceb87ca5a | [
"Apache-2.0"
] | null | null | null | repositories.bzl | salrashid123/go-grpc-bazel-docker | 333c02c614d5876bfe63a0660c78eabceb87ca5a | [
"Apache-2.0"
] | 2 | 2020-08-27T16:29:55.000Z | 2021-02-12T01:02:16.000Z | """
External repositories used in this workspace.
"""
load("@bazel_gazelle//:deps.bzl", "go_repository")
def go_repositories():
go_repository(
name = "co_honnef_go_tools",
importpath = "honnef.co/go/tools",
sum = "h1:/hemPrYIhOhy8zYrNj+069zDB68us2sMGsfkFJO0iZs=",
version = "v0.0.0-... | 36.346591 | 74 | 0.637017 | 627 | 6,397 | 6.299841 | 0.264753 | 0.088101 | 0.113418 | 0.038987 | 0.188861 | 0.176203 | 0.029873 | 0 | 0 | 0 | 0 | 0.127489 | 0.238549 | 6,397 | 175 | 75 | 36.554286 | 0.683433 | 0.007035 | 0 | 0.164706 | 0 | 0 | 0.512768 | 0.43017 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005882 | true | 0 | 0.164706 | 0 | 0.170588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3f09c95e22c686b9536164614190bd64c0bc4b7c | 134 | py | Python | test/exc-TA_%s.py | gwk/cove | 0cdfba60c75b325f64fc33afa72659061333a1a6 | [
"CC0-1.0"
] | null | null | null | test/exc-TA_%s.py | gwk/cove | 0cdfba60c75b325f64fc33afa72659061333a1a6 | [
"CC0-1.0"
] | null | null | null | test/exc-TA_%s.py | gwk/cove | 0cdfba60c75b325f64fc33afa72659061333a1a6 | [
"CC0-1.0"
] | null | null | null | from fixtures import try_, exc, handle_args, E1
def top(arg):
try:
try_(arg)
except E1 as e1:
exc(e1)
handle_args(top)
| 12.181818 | 47 | 0.656716 | 23 | 134 | 3.652174 | 0.565217 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.238806 | 134 | 10 | 48 | 13.4 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3f186b7920c701bdff2a19fd7f383e4d399d85be | 407 | py | Python | server/fundraisers/views.py | Techbikers/techbikers-api | f9c6ea467d1ae730e9cabe0d4785423634c044e5 | [
"MIT"
] | 2 | 2016-08-14T04:21:04.000Z | 2017-05-23T22:04:48.000Z | server/fundraisers/views.py | Techbikers/techbikers-api | f9c6ea467d1ae730e9cabe0d4785423634c044e5 | [
"MIT"
] | 19 | 2015-08-26T10:05:02.000Z | 2018-06-27T20:08:54.000Z | server/fundraisers/views.py | Techbikers/api | f9c6ea467d1ae730e9cabe0d4785423634c044e5 | [
"MIT"
] | 6 | 2015-08-19T16:49:13.000Z | 2018-05-25T16:38:24.000Z | from rest_framework import generics
from rest_framework.permissions import AllowAny
from server.fundraisers.serializers import FundraiserSerializer
from server.fundraisers.models import Fundraiser
class FundraisersList(generics.ListAPIView):
model = Fundraiser
queryset = Fundraiser.objects.filter(pageStatus=... | 31.307692 | 63 | 0.82801 | 41 | 407 | 8.121951 | 0.609756 | 0.048048 | 0.102102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120393 | 407 | 12 | 64 | 33.916667 | 0.930168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3f26d8418348eef42c27e6a2c637f7a7005004a6 | 1,900 | py | Python | 4-Behavioral Patterns/11-Observer Pattern/Tweeter-Follower Example Without Builtin/Python/observer.py | Ziang-Lu/Design-Patterns | 7a8167a85456b481aba15d5eee5a64b116b00adc | [
"MIT"
] | 2 | 2020-05-05T05:50:59.000Z | 2021-04-12T14:19:34.000Z | 4-Behavioral Patterns/11-Observer Pattern/Tweeter-Follower Example Without Builtin/Python/observer.py | Ziang-Lu/Design-Patterns | 7a8167a85456b481aba15d5eee5a64b116b00adc | [
"MIT"
] | null | null | null | 4-Behavioral Patterns/11-Observer Pattern/Tweeter-Follower Example Without Builtin/Python/observer.py | Ziang-Lu/Design-Patterns | 7a8167a85456b481aba15d5eee5a64b116b00adc | [
"MIT"
] | null | null | null | #!usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Observer module.
"""
__author__ = 'Ziang Lu'
from abc import ABC, abstractmethod
class Observer(ABC):
"""
Abstract Observer class.
"""
__slots__ = []
@abstractmethod
def update(self, subject) -> None:
"""
Gets notified with ... | 23.45679 | 80 | 0.574211 | 208 | 1,900 | 5.048077 | 0.447115 | 0.060952 | 0.028571 | 0.04 | 0.140952 | 0.091429 | 0.091429 | 0.091429 | 0.091429 | 0.091429 | 0 | 0.001528 | 0.311053 | 1,900 | 80 | 81 | 23.75 | 0.800611 | 0.305263 | 0 | 0 | 0 | 0 | 0.191928 | 0.026906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.033333 | 0.033333 | 0.033333 | 0.566667 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3f44974e7231aa29fbbdf0c5ce2d580cf359d858 | 1,388 | py | Python | front/models.py | david19871027/education_site | 2599d6a2fee65db82c203511c3e10732efe06b04 | [
"MIT"
] | null | null | null | front/models.py | david19871027/education_site | 2599d6a2fee65db82c203511c3e10732efe06b04 | [
"MIT"
] | null | null | null | front/models.py | david19871027/education_site | 2599d6a2fee65db82c203511c3e10732efe06b04 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from django_comments_xtd.models import XtdComment
# Create your ... | 38.555556 | 123 | 0.759366 | 195 | 1,388 | 5.297436 | 0.584615 | 0.058083 | 0.043562 | 0.0697 | 0.071636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025338 | 0.146974 | 1,388 | 36 | 124 | 38.555556 | 0.847128 | 0.136167 | 0 | 0 | 0 | 0 | 0.240369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0.047619 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3f45d45d17e0355ee568714a59d23247150e89e2 | 598 | py | Python | sharkstruc/readers/reader.py | sharksmhi/sharkstruc | 6d234f164817332e1589179c497bc82eddac6545 | [
"MIT"
] | null | null | null | sharkstruc/readers/reader.py | sharksmhi/sharkstruc | 6d234f164817332e1589179c497bc82eddac6545 | [
"MIT"
] | null | null | null | sharkstruc/readers/reader.py | sharksmhi/sharkstruc | 6d234f164817332e1589179c497bc82eddac6545 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 SMHI, Swedish Meteorological and Hydrological Institute
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
"""
Created on 2021-01-05 10:36
@author: johannes
"""
from abc import ABC
class Reader(ABC):
"""
"""
def __init__(self):
super().__init__(... | 22.148148 | 79 | 0.662207 | 75 | 598 | 5.12 | 0.76 | 0.041667 | 0.072917 | 0.098958 | 0.197917 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035865 | 0.207358 | 598 | 26 | 80 | 23 | 0.774262 | 0.33612 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | 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 | 1 | 0 | 0 | 2 |
3f4905dab4e839a5ff1e55df096cd6bb40b00d41 | 533 | py | Python | stere/strategy/strategy.py | jsfehler/stere | 066c38b11636850ce11a0451a7b1efc8887b1015 | [
"MIT"
] | 17 | 2017-12-11T15:49:10.000Z | 2021-06-16T19:29:45.000Z | stere/strategy/strategy.py | jsfehler/stere | 066c38b11636850ce11a0451a7b1efc8887b1015 | [
"MIT"
] | 328 | 2018-02-06T02:29:21.000Z | 2022-03-30T10:47:33.000Z | stere/strategy/strategy.py | jsfehler/stere | 066c38b11636850ce11a0451a7b1efc8887b1015 | [
"MIT"
] | 3 | 2019-04-05T19:40:55.000Z | 2021-11-04T06:50:32.000Z | strategies = {}
def strategy(strategy_name: str):
"""Register a strategy name and strategy Class.
Use as a decorator.
Example:
@strategy('id')
class FindById:
...
Strategy Classes are used to build Elements Objects.
Arguments:
strategy_name (... | 22.208333 | 68 | 0.606004 | 57 | 533 | 5.561404 | 0.54386 | 0.15142 | 0.094637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324578 | 533 | 23 | 69 | 23.173913 | 0.880556 | 0.482176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3f60bb2e2f2b8c7ffbef42051fb054c27e7e982a | 581 | py | Python | print_nested_list.py | zoomhgtk/hsun_pynet_exercise | 0a645ae1f9bbd20540d79f3944bd6dfd2f1b7506 | [
"Apache-2.0"
] | null | null | null | print_nested_list.py | zoomhgtk/hsun_pynet_exercise | 0a645ae1f9bbd20540d79f3944bd6dfd2f1b7506 | [
"Apache-2.0"
] | null | null | null | print_nested_list.py | zoomhgtk/hsun_pynet_exercise | 0a645ae1f9bbd20540d79f3944bd6dfd2f1b7506 | [
"Apache-2.0"
] | null | null | null | def print_lol(the_list, indent=False, level=0):
# the default value of indent is False
for each_item in the_list:
if isinstance(each_item, list):
print_lol(each_item, indent, level+1) # level = level + 1
else:
if indent: # if indent is needed
for tab_curs... | 36.3125 | 125 | 0.583477 | 79 | 581 | 4.139241 | 0.518987 | 0.097859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022277 | 0.304647 | 581 | 15 | 126 | 38.733333 | 0.787129 | 0.127367 | 0 | 0 | 0 | 0 | 0.159046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
3f72eeec076028a2f55be88a6b9129aab8a5f3cc | 3,269 | py | Python | sys/debug/struct.py | pj1031999/mimiker | ed701132b45dbb6b3b94121cd1ef3820bf4781aa | [
"BSD-3-Clause"
] | 185 | 2016-06-24T16:40:13.000Z | 2022-03-24T18:07:18.000Z | sys/debug/struct.py | pj1031999/mimiker | ed701132b45dbb6b3b94121cd1ef3820bf4781aa | [
"BSD-3-Clause"
] | 586 | 2016-04-21T22:54:18.000Z | 2022-03-25T18:34:01.000Z | sys/debug/struct.py | pj1031999/mimiker | ed701132b45dbb6b3b94121cd1ef3820bf4781aa | [
"BSD-3-Clause"
] | 57 | 2016-06-03T14:02:11.000Z | 2022-03-12T03:18:54.000Z | import gdb
import re
from .utils import cast, relpath
def cstr(val):
try:
return val.string()
except gdb.MemoryError:
return '[bad-ptr 0x%x]' % val.address
def enum(v):
return v.type.target().fields()[int(v)].name
class ProgramCounter():
def __init__(self, pc):
self.pc = ca... | 27.016529 | 79 | 0.535944 | 401 | 3,269 | 4.129676 | 0.326683 | 0.033816 | 0.033213 | 0.027174 | 0.197464 | 0.166667 | 0.166667 | 0.166667 | 0.126812 | 0.126812 | 0 | 0.005527 | 0.335883 | 3,269 | 120 | 80 | 27.241667 | 0.757255 | 0.048639 | 0 | 0.191011 | 0 | 0 | 0.075982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213483 | false | 0 | 0.033708 | 0.05618 | 0.52809 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
58aca8ffc419ab6a4c7b224e7e61e7eb92ad6bee | 602 | py | Python | src/holyshit/exceptions.py | cobaltgit/holyshit | c4ccb0705d2862ad38adfa35d3be1bbbc652968b | [
"MIT"
] | null | null | null | src/holyshit/exceptions.py | cobaltgit/holyshit | c4ccb0705d2862ad38adfa35d3be1bbbc652968b | [
"MIT"
] | null | null | null | src/holyshit/exceptions.py | cobaltgit/holyshit | c4ccb0705d2862ad38adfa35d3be1bbbc652968b | [
"MIT"
] | null | null | null | class ContentUnavailable(Exception):
"""Raises when fetching content fails or type is invalid."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
class ClosedSessionError(Exception):
"""Raises when attempting to interact with a closed client instance."""
def __... | 30.1 | 75 | 0.667774 | 67 | 602 | 5.641791 | 0.492537 | 0.15873 | 0.150794 | 0.119048 | 0.539683 | 0.375661 | 0.375661 | 0.375661 | 0.375661 | 0.375661 | 0 | 0 | 0.186047 | 602 | 19 | 76 | 31.684211 | 0.771429 | 0.295681 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
58b43d301ed7d15d8b477eaf1104b68f81d4a3e6 | 185 | py | Python | backend/dataVis/user/form.py | onlyonedaniel/Learn | d5e96e7d66189d1b20d798315fbb9039df6ebe54 | [
"Apache-2.0"
] | null | null | null | backend/dataVis/user/form.py | onlyonedaniel/Learn | d5e96e7d66189d1b20d798315fbb9039df6ebe54 | [
"Apache-2.0"
] | null | null | null | backend/dataVis/user/form.py | onlyonedaniel/Learn | d5e96e7d66189d1b20d798315fbb9039df6ebe54 | [
"Apache-2.0"
] | null | null | null |
import django.forms as froms
from user.models import User
class RegisterForm(froms.ModelForm):
class Meta:
model = User
fields = "__all__"
exclude = None
| 16.818182 | 36 | 0.654054 | 22 | 185 | 5.318182 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281081 | 185 | 10 | 37 | 18.5 | 0.879699 | 0 | 0 | 0 | 0 | 0 | 0.038043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
58bad6adff49c51dd78ac41ba7c709ca56e3815c | 660 | py | Python | pytsrepr/__init__.py | holgern/pytsrepr | 187d1f393050b753bd1d021943cc5261a580a2df | [
"MIT"
] | null | null | null | pytsrepr/__init__.py | holgern/pytsrepr | 187d1f393050b753bd1d021943cc5261a580a2df | [
"MIT"
] | null | null | null | pytsrepr/__init__.py | holgern/pytsrepr | 187d1f393050b753bd1d021943cc5261a580a2df | [
"MIT"
] | null | null | null | # flake8: noqa
# Copyright (c) 2017 Holger Nahrstaedt
# Copyright (c) 2016-2017 The pytsrepr Developers
# <https://github.com/holgern/pytsrepr>
# See LICENSE for license details.
from __future__ import division, print_function, absolute_import
from .paa import *
from . import data
from pyts... | 24.444444 | 77 | 0.709091 | 96 | 660 | 4.71875 | 0.666667 | 0.04415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027132 | 0.218182 | 660 | 26 | 78 | 25.384615 | 0.850775 | 0.490909 | 0 | 0 | 0 | 0 | 0.003049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.454545 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
58c0efa9801c20127327f4dad3db62f98fe6b36f | 354 | py | Python | crypt/master_enc.py | Sarthak2143/SimplePasswordManager | 3b10a9ec1db26c98c85cdb2decfa0802120bea5d | [
"MIT"
] | 3 | 2022-01-19T13:05:13.000Z | 2022-01-20T20:35:05.000Z | crypt/master_enc.py | Sarthak2143/SimplePasswordManager | 3b10a9ec1db26c98c85cdb2decfa0802120bea5d | [
"MIT"
] | null | null | null | crypt/master_enc.py | Sarthak2143/SimplePasswordManager | 3b10a9ec1db26c98c85cdb2decfa0802120bea5d | [
"MIT"
] | null | null | null | from cryptography.fernet import Fernet
with open("keys/master_pwd.key", "wb") as f:
global key
key = Fernet.generate_key()
f.write(key)
k = Fernet(key)
with open("../pwds/master.pwd", "rb") as f:
global data
data = f.read()
global token
token = k.encrypt(data)
with open("../pwds/master.pw... | 22.125 | 44 | 0.629944 | 56 | 354 | 3.946429 | 0.410714 | 0.108597 | 0.045249 | 0.162896 | 0.190045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206215 | 354 | 16 | 45 | 22.125 | 0.786477 | 0 | 0 | 0 | 1 | 0 | 0.171831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
58c176a28eb6ca52c1898620faa39a5db983b170 | 398 | py | Python | lab2.py | bcon12/ia241-github | 32b8b0feaa1a5158b40348c21143f1fbe4532b48 | [
"MIT"
] | null | null | null | lab2.py | bcon12/ia241-github | 32b8b0feaa1a5158b40348c21143f1fbe4532b48 | [
"MIT"
] | null | null | null | lab2.py | bcon12/ia241-github | 32b8b0feaa1a5158b40348c21143f1fbe4532b48 | [
"MIT"
] | null | null | null | '''
lab2
'''
#3.1
my_name = 'Tom'
print(my_name.upper())
#3.
my_id = 123
print(my_id)
#3.3
#123=my_id
my_id=your_id=123
print(my_id)
print(your_id)
#3.4
my_id_str = '123'
print(my_id_str)
#3.5
#print(my_name=my_id)
#3.6
print(my_name+my_id_str)
#3.7
print(my_name*3)
#3.8
print('hello, world. This is my first... | 9.707317 | 65 | 0.660804 | 86 | 398 | 2.837209 | 0.325581 | 0.147541 | 0.180328 | 0.147541 | 0.237705 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.145729 | 398 | 41 | 66 | 9.707317 | 0.617647 | 0.150754 | 0 | 0.142857 | 0 | 0 | 0.208723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.642857 | 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 | 1 | 0 | 2 |
58cb7097f68f3043d18a4344bda0900e1c176e34 | 337 | py | Python | FYP/pipelines.py | Vindulamj/Python-Web-Scrapper | 93e506a882e7802dd331487ad1f4928ab52569e5 | [
"Apache-2.0"
] | null | null | null | FYP/pipelines.py | Vindulamj/Python-Web-Scrapper | 93e506a882e7802dd331487ad1f4928ab52569e5 | [
"Apache-2.0"
] | null | null | null | FYP/pipelines.py | Vindulamj/Python-Web-Scrapper | 93e506a882e7802dd331487ad1f4928ab52569e5 | [
"Apache-2.0"
] | null | null | null | import json
import MySQLdb
class WriterPipeline(object):
def open_spider(self, spider):
self.file = open('data.csv', 'wb')
def close_spider(self, spider):
self.file.close()
def process_item(self, item, spider):
line = json.dumps(dict(item)) + "\n"
self.file.write(line)
... | 22.466667 | 44 | 0.620178 | 44 | 337 | 4.681818 | 0.522727 | 0.194175 | 0.15534 | 0.194175 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249258 | 337 | 15 | 45 | 22.466667 | 0.814229 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
58d54df5e207736a2c2565d33f16568611a21fb5 | 300 | py | Python | django/test/__init__.py | pomarec/django | 98514849dce07acfaa224a90a784bba9d97249e5 | [
"BSD-3-Clause"
] | 1 | 2015-06-14T07:55:29.000Z | 2015-06-14T07:55:29.000Z | django/test/__init__.py | pomarec/django | 98514849dce07acfaa224a90a784bba9d97249e5 | [
"BSD-3-Clause"
] | null | null | null | django/test/__init__.py | pomarec/django | 98514849dce07acfaa224a90a784bba9d97249e5 | [
"BSD-3-Clause"
] | null | null | null | """
Django Unit Test and Doctest framework.
"""
from django.test.client import Client, RequestFactory
from django.test.testcases import (TestCase, TransactionTestCase,
SimpleTestCase, LiveServerTestCase, skipIfDBFeature,
skipUnlessDBFeature
)
from django.test.utils import override_settings
| 27.272727 | 65 | 0.81 | 31 | 300 | 7.806452 | 0.645161 | 0.123967 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 300 | 10 | 66 | 30 | 0.916667 | 0.13 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4503c5f5df5a6dc73d1ededf6f1fbd66df611c16 | 2,716 | py | Python | pypy/module/pypyjit/test_pypy_c/test_struct.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | 34 | 2015-07-09T04:53:27.000Z | 2021-07-19T05:22:27.000Z | pypy/module/pypyjit/test_pypy_c/test_struct.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | 6 | 2015-05-30T17:20:45.000Z | 2017-06-12T14:29:23.000Z | pypy/module/pypyjit/test_pypy_c/test_struct.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | 11 | 2015-09-07T14:26:08.000Z | 2020-04-10T07:20:41.000Z | import sys
from pypy.module.pypyjit.test_pypy_c.test_00_model import BaseTestPyPyC
if sys.maxsize == 2 ** 63 - 1:
extra = """
i8 = int_ge(i4, -2147483648)
guard_true(i8, descr=...)
i9 = int_le(i4, 2147483647)
guard_true(i9, descr=...)
"""
else:
extra = ""
class TestStruct... | 29.846154 | 76 | 0.482695 | 343 | 2,716 | 3.664723 | 0.303207 | 0.038186 | 0.020684 | 0.019093 | 0.693715 | 0.693715 | 0.639618 | 0.639618 | 0.639618 | 0.639618 | 0 | 0.135863 | 0.39838 | 2,716 | 90 | 77 | 30.177778 | 0.633415 | 0.053019 | 0 | 0.753247 | 0 | 0 | 0.584729 | 0.024932 | 0 | 0 | 0 | 0 | 0.051948 | 1 | 0.051948 | false | 0 | 0.051948 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
450898facaa3f093f6450d31cc53b2d75d95c306 | 245 | py | Python | module4-software-testing-documentation-and-licensing/sqrt_testing/new_test.py | EvidenceN/DS-Unit-3-Sprint-1-Software-Engineering | 5f481299e1cc7b360f6b0da23fc73f4b435514e4 | [
"MIT"
] | null | null | null | module4-software-testing-documentation-and-licensing/sqrt_testing/new_test.py | EvidenceN/DS-Unit-3-Sprint-1-Software-Engineering | 5f481299e1cc7b360f6b0da23fc73f4b435514e4 | [
"MIT"
] | 18 | 2020-03-24T18:02:54.000Z | 2021-08-23T20:35:52.000Z | sqrt_testing/new_test.py | EvidenceN/lambda-data-ds9 | d6cd018935817901a2c16157b6d424cf5b8f3720 | [
"MIT"
] | null | null | null | import unittest
from sqrt import newton_sqrt1, newton_sqrt2, lazy_sqrt, builtin_sqrt
class sqrtTests(unittest.TestCase):
def test_sqrt9(self):
self.assertEqual(lazy_sqrt(9), 3)
if __name__ == "__main__":
unittest.main() | 27.222222 | 69 | 0.718367 | 32 | 245 | 5.0625 | 0.6875 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.183673 | 245 | 9 | 70 | 27.222222 | 0.785 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
450d2cf1b3b63eef06d2af9ff2c45a37c115217d | 649 | py | Python | examples/research2/preprocess.py | cluebbehusen/fhir-petl | 58572b24b27a2c5e78b8ea45ab64af2a5d46d4e8 | [
"MIT"
] | null | null | null | examples/research2/preprocess.py | cluebbehusen/fhir-petl | 58572b24b27a2c5e78b8ea45ab64af2a5d46d4e8 | [
"MIT"
] | 1 | 2020-09-15T19:04:58.000Z | 2020-09-15T19:04:58.000Z | examples/research2/preprocess.py | cluebbehusen/fhir-petl | 58572b24b27a2c5e78b8ea45ab64af2a5d46d4e8 | [
"MIT"
] | 4 | 2019-07-05T19:25:56.000Z | 2021-11-16T21:18:46.000Z | import petl as etl
from fhir_petl.util import preprocess, resolve, mkdirp
mkdirp(resolve('work'))
preprocess(
etl.io.csv.fromcsv(resolve('Table_1_Demographics_New_Cohorts.csv'))
).tocsv(resolve('work/Patient.csv'))
preprocess(
etl.io.csv.fromcsv(resolve('Diagnoses.csv'))
).tocsv(resolve('work/Condition.csv')... | 25.96 | 71 | 0.742681 | 86 | 649 | 5.534884 | 0.360465 | 0.138655 | 0.157563 | 0.189076 | 0.361345 | 0.361345 | 0.294118 | 0 | 0 | 0 | 0 | 0.001675 | 0.080123 | 649 | 24 | 72 | 27.041667 | 0.795645 | 0 | 0 | 0.277778 | 0 | 0 | 0.31433 | 0.12943 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
451e03b2ab73bba532b77133185828c87c502c5d | 426 | py | Python | packages/service-integration/src/service_integration/compose_spec_model.py | elisabettai/osparc-simcore | ad7b6e05111b50fe95e49306a992170490a7247f | [
"MIT"
] | null | null | null | packages/service-integration/src/service_integration/compose_spec_model.py | elisabettai/osparc-simcore | ad7b6e05111b50fe95e49306a992170490a7247f | [
"MIT"
] | 55 | 2018-05-15T09:47:00.000Z | 2022-03-31T06:56:50.000Z | packages/service-integration/src/service_integration/compose_spec_model.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | 1 | 2020-04-22T15:06:58.000Z | 2020-04-22T15:06:58.000Z | """ Use this module as facade to import auto-generated model
SEE Makefile recipe to produce _compose_spec_model_autogenerated.py
"""
from ._compose_spec_model_autogenerated import (
SCHEMA_VERSION,
BuildItem,
ComposeSpecification,
Service,
Volume1,
)
# Aliases
ServiceVolume = Volume1
__all__ = (... | 17.75 | 67 | 0.715962 | 42 | 426 | 6.928571 | 0.666667 | 0.075601 | 0.109966 | 0.199313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005865 | 0.199531 | 426 | 23 | 68 | 18.521739 | 0.847507 | 0.316901 | 0 | 0 | 1 | 0 | 0.222615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
451e6f050066be1f856a281c7df526a1573349ec | 580 | py | Python | generateParenthesis.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | generateParenthesis.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | generateParenthesis.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# 回溯法 backtracking, helper param: curr_str, res, 正括号已经用的数量, 反括号已经用的数量
# 想想tree
class Solution(object):
def generateParenthesis(self, n):
res = []
self.helper('', res, n, 0, 0)
return res
def helper(self, curr, res, n, left, right):
# 反括号已用完
if rig... | 26.363636 | 69 | 0.546552 | 72 | 580 | 4.388889 | 0.430556 | 0.050633 | 0.075949 | 0.113924 | 0.208861 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0.014963 | 0.308621 | 580 | 22 | 70 | 26.363636 | 0.773067 | 0.177586 | 0 | 0 | 1 | 0 | 0.004228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
188ee5f7ab6ed1aec4cdc7c88ecb67f9c38a5320 | 1,535 | py | Python | agate/aggregations/deciles.py | andriyor/agate | 9b12d4bcc75bf3788e0774e23188f4409c3e7519 | [
"MIT"
] | 663 | 2016-02-16T13:43:00.000Z | 2022-03-13T17:21:19.000Z | agate/aggregations/deciles.py | andriyor/agate | 9b12d4bcc75bf3788e0774e23188f4409c3e7519 | [
"MIT"
] | 371 | 2020-03-04T21:51:56.000Z | 2022-03-31T20:59:11.000Z | agate/aggregations/deciles.py | andriyor/agate | 9b12d4bcc75bf3788e0774e23188f4409c3e7519 | [
"MIT"
] | 122 | 2016-02-23T02:43:24.000Z | 2022-03-04T17:21:14.000Z | #!/usr/bin/env python
from agate.aggregations.base import Aggregation
from agate.aggregations.has_nulls import HasNulls
from agate.aggregations.percentiles import Percentiles
from agate.data_types import Number
from agate.exceptions import DataTypeError
from agate.utils import Quantiles
from agate.warns import warn_nu... | 30.7 | 97 | 0.698371 | 195 | 1,535 | 5.374359 | 0.446154 | 0.060115 | 0.066794 | 0.032443 | 0.041985 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.218241 | 1,535 | 49 | 98 | 31.326531 | 0.863333 | 0.32443 | 0 | 0 | 0 | 0 | 0.064449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.35 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1896648c6a779fd24d2873d93a4b43d938ecc74e | 688 | py | Python | books/models.py | spereverde/kinsmanlibrary | 7f99acfdd6428b1178dca3f3c4964dc6ffb75f31 | [
"MIT"
] | null | null | null | books/models.py | spereverde/kinsmanlibrary | 7f99acfdd6428b1178dca3f3c4964dc6ffb75f31 | [
"MIT"
] | null | null | null | books/models.py | spereverde/kinsmanlibrary | 7f99acfdd6428b1178dca3f3c4964dc6ffb75f31 | [
"MIT"
] | null | null | null | import datetime
from django.db import models
from django.utils import timezone
class Author(models.Model):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
date_of_birth = models.DateTimeField('date of birth')
def __str__(self):
name = '{} {}'.format(self.first_name, s... | 27.52 | 74 | 0.770349 | 99 | 688 | 5.10101 | 0.434343 | 0.089109 | 0.106931 | 0.142574 | 0.122772 | 0.122772 | 0 | 0 | 0 | 0 | 0 | 0.016447 | 0.116279 | 688 | 24 | 75 | 28.666667 | 0.814145 | 0 | 0 | 0.111111 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.111111 | 0.944444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
189802f76b75196ee207f80a75b0080c66a843c0 | 451 | py | Python | lintcode/428.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/428.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/428.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
428. Pow(x, n)
https://www.lintcode.com/problem/powx-n/description?_from=ladder&&fromId=152
"""
class Solution:
"""
@param x {float}: the base number
@param n {int}: the power number
@return {float}: the result
"""
def myPow(self, x, n):
# write your code here
if n == 0:
... | 23.736842 | 76 | 0.51663 | 64 | 451 | 3.625 | 0.59375 | 0.025862 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036913 | 0.339246 | 451 | 19 | 77 | 23.736842 | 0.741611 | 0.461197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
189b44c01f766a80ec2578c24e9d27f472f54171 | 1,425 | py | Python | venv/lib/python3.8/site-packages/ansible_test/_internal/encoding.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/ansible_test/_internal/encoding.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/ansible_test/_internal/encoding.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | """Functions for encoding and decoding strings."""
from __future__ import annotations
import typing as t
ENCODING = 'utf-8'
Text = type(u'')
def to_optional_bytes(value, errors='strict'): # type: (t.Optional[t.AnyStr], str) -> t.Optional[bytes]
"""Return the given value as bytes encoded using UTF-8 if not alr... | 34.756098 | 113 | 0.682105 | 220 | 1,425 | 4.363636 | 0.209091 | 0.06875 | 0.070833 | 0.0875 | 0.783333 | 0.783333 | 0.629167 | 0.564583 | 0.564583 | 0.564583 | 0 | 0.004371 | 0.197193 | 1,425 | 40 | 114 | 35.625 | 0.83479 | 0.400702 | 0 | 0.4 | 0 | 0 | 0.107879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
189c581d34c5fa5ab29297f381c756ad6cc8d60f | 227 | py | Python | blog/models.py | gtimoshaz/gtimoshaz-ru | 02269c0e29fdc97632669e617aebfb0ca50786da | [
"MIT"
] | null | null | null | blog/models.py | gtimoshaz/gtimoshaz-ru | 02269c0e29fdc97632669e617aebfb0ca50786da | [
"MIT"
] | null | null | null | blog/models.py | gtimoshaz/gtimoshaz-ru | 02269c0e29fdc97632669e617aebfb0ca50786da | [
"MIT"
] | null | null | null | from django.db import models
class Post(models.Model):
pub_date = models.DateTimeField(auto_now=True)
text = models.TextField()
short = models.TextField(max_length=280)
title = models.CharField(max_length=200)
| 28.375 | 50 | 0.740088 | 31 | 227 | 5.290323 | 0.741935 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.154185 | 227 | 7 | 51 | 32.428571 | 0.822917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
18a76dddcc08218917d388c56872766fcdfcf2c6 | 998 | py | Python | .buildkite/defines.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | 1 | 2020-09-19T16:35:59.000Z | 2020-09-19T16:35:59.000Z | .buildkite/defines.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | null | null | null | .buildkite/defines.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | null | null | null | # This should be an enum once we make our own buildkite AMI with py3
class SupportedPython:
V3_8 = "3.8.1"
V3_7 = "3.7.6"
V3_6 = "3.6.10"
V3_5 = "3.5.8"
V2_7 = "2.7.17"
SupportedPythons = [
SupportedPython.V2_7,
SupportedPython.V3_5,
SupportedPython.V3_6,
SupportedPython.V3_7,
... | 22.177778 | 90 | 0.697395 | 133 | 998 | 5.030075 | 0.345865 | 0.48281 | 0.134529 | 0.197309 | 0.557549 | 0.478326 | 0.478326 | 0.478326 | 0.478326 | 0.349776 | 0 | 0.115196 | 0.182365 | 998 | 44 | 91 | 22.681818 | 0.704657 | 0.176353 | 0 | 0.393939 | 0 | 0 | 0.057457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
18b1461bcc443840ddb6840344335d187509db4c | 3,091 | py | Python | tests/utilities.py | EgorBlagov/jsonrpclib | 2de2c59fef22b797f6c4c67504c9e0f6a5e6d0f5 | [
"Apache-2.0"
] | null | null | null | tests/utilities.py | EgorBlagov/jsonrpclib | 2de2c59fef22b797f6c4c67504c9e0f6a5e6d0f5 | [
"Apache-2.0"
] | 1 | 2020-01-30T11:10:29.000Z | 2020-01-30T11:10:29.000Z | tests/utilities.py | EgorBlagov/jsonrpclib | 2de2c59fef22b797f6c4c67504c9e0f6a5e6d0f5 | [
"Apache-2.0"
] | 2 | 2020-01-17T16:32:01.000Z | 2020-01-30T08:34:33.000Z | #!/usr/bin/python
# -- Content-Encoding: UTF-8 --
"""
Tests utility classes
:license: Apache License 2.0
"""
# Standard library
import threading
# JSON-RPC library
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer
# ------------------------------------------------------------------------------
# Test m... | 22.562044 | 80 | 0.574895 | 331 | 3,091 | 5.265861 | 0.392749 | 0.080321 | 0.126219 | 0.025818 | 0.119334 | 0.119334 | 0.087206 | 0.087206 | 0.087206 | 0.087206 | 0 | 0.002706 | 0.282756 | 3,091 | 136 | 81 | 22.727941 | 0.783491 | 0.355548 | 0 | 0.12766 | 0 | 0 | 0.030268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255319 | false | 0 | 0.042553 | 0 | 0.510638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7a0aa129db8bb5cad4704ff6d0c8c302945b89ca | 6,808 | py | Python | src/pystage/core/_sensing.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 12 | 2021-05-20T12:49:52.000Z | 2022-01-12T02:15:33.000Z | src/pystage/core/_sensing.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 14 | 2021-05-25T09:28:33.000Z | 2021-09-10T07:54:45.000Z | src/pystage/core/_sensing.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 3 | 2021-05-25T12:58:36.000Z | 2022-02-18T04:19:21.000Z | import pygame
import pystage
from pystage.core.constants import KEY_MAPPINGS
from pystage.core._base_sprite import BaseSprite
class _Sensing(BaseSprite):
def __init__(self):
super().__init__()
def sensing_askandwait(self, question):
# an input field, answer needs to be available somehow
... | 29.344828 | 91 | 0.731639 | 814 | 6,808 | 5.792383 | 0.203931 | 0.091622 | 0.034995 | 0.041994 | 0.239236 | 0.040721 | 0.016967 | 0.016967 | 0 | 0 | 0 | 0.001627 | 0.18772 | 6,808 | 231 | 92 | 29.471861 | 0.850995 | 0.079172 | 0 | 0.212903 | 0 | 0 | 0.120364 | 0.01055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.251613 | false | 0.187097 | 0.025806 | 0.025806 | 0.341935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7a0c83f1efa471255f3740a2f24c3f9c5cde2898 | 981 | py | Python | test/selenium/src/lib/exception.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/selenium/src/lib/exception.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-07-06T00:04:23.000Z | 2021-02-26T21:13:20.000Z | test/selenium/src/lib/exception.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-11-11T22:16:56.000Z | 2017-11-11T22:16:56.000Z | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"Exceptions definition."
class ElementNotFound(Exception):
"""Raised when an element is not found. Selenium has it's own exception but
when we're iterating through multiple elements and expect one, we ra... | 28.852941 | 78 | 0.755352 | 141 | 981 | 5.255319 | 0.624113 | 0.052632 | 0.048583 | 0.048583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007326 | 0.165138 | 981 | 33 | 79 | 29.727273 | 0.897436 | 0.751274 | 0 | 0 | 0 | 0 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e134a320269155be946429f04dcb40d6550a336b | 922 | py | Python | app/models/metric.py | arxcdr/silverback | 212139cbc1a648d1f877d60f2d7c4d750eefc3da | [
"BSD-3-Clause"
] | null | null | null | app/models/metric.py | arxcdr/silverback | 212139cbc1a648d1f877d60f2d7c4d750eefc3da | [
"BSD-3-Clause"
] | null | null | null | app/models/metric.py | arxcdr/silverback | 212139cbc1a648d1f877d60f2d7c4d750eefc3da | [
"BSD-3-Clause"
] | null | null | null | """
Metric Model
"""
# Third Party Library
from django.db import models
class Metric(models.Model):
SOURCE_CHOICES = (
('newrelic', 'NEW_RELIC'),
('librato', 'LIBRATO'),
('datadog', 'DATADOG'),
('pingdom', 'PINGDOM')
)
title = models.CharField(max_length=150, verbose_nam... | 31.793103 | 111 | 0.694143 | 114 | 922 | 5.377193 | 0.412281 | 0.143556 | 0.146819 | 0.195759 | 0.228385 | 0.137031 | 0.137031 | 0.137031 | 0 | 0 | 0 | 0.018277 | 0.169197 | 922 | 28 | 112 | 32.928571 | 0.781984 | 0.035792 | 0 | 0 | 0 | 0 | 0.153235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e134b8da794019a56ff34e1f8a31955fdc31a039 | 326 | py | Python | 2 - python intermediario/desafios - exercicios/65 - exercicio.py | AdrianaViabL/Curso-Python-udemy | a4f230354985d0f6026a1e7b4913a8f64e205654 | [
"Apache-2.0"
] | null | null | null | 2 - python intermediario/desafios - exercicios/65 - exercicio.py | AdrianaViabL/Curso-Python-udemy | a4f230354985d0f6026a1e7b4913a8f64e205654 | [
"Apache-2.0"
] | null | null | null | 2 - python intermediario/desafios - exercicios/65 - exercicio.py | AdrianaViabL/Curso-Python-udemy | a4f230354985d0f6026a1e7b4913a8f64e205654 | [
"Apache-2.0"
] | null | null | null | '''
pegue o preco dos produto e some usando compreeção de lista
'''
carrinho = []
carrinho.append(('Produto 1', 40))
carrinho.append(('Produto 2', 10))
carrinho.append(('Produto 3', 50))
carrinho.append(('Produto 4', 20))
carrinho.append(('Produto 5', 10))
valor = sum([float(val) for prod, val in carrinho])
print(v... | 20.375 | 59 | 0.684049 | 48 | 326 | 4.645833 | 0.625 | 0.313901 | 0.470852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053191 | 0.134969 | 326 | 15 | 60 | 21.733333 | 0.737589 | 0.180982 | 0 | 0 | 0 | 0 | 0.173745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e139375dad2e7c4e5f94ce20377607065b9401b7 | 3,075 | py | Python | src/compas/geometry/_primitives/_primitive.py | arpastrana/compas | ed677a162c14dbe562c82d72f370279259faf7da | [
"MIT"
] | null | null | null | src/compas/geometry/_primitives/_primitive.py | arpastrana/compas | ed677a162c14dbe562c82d72f370279259faf7da | [
"MIT"
] | null | null | null | src/compas/geometry/_primitives/_primitive.py | arpastrana/compas | ed677a162c14dbe562c82d72f370279259faf7da | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__all__ = ['Primitive']
import json
from compas.base import Base
class Primitive(Base):
"""Base class for geometric primitives."""
__slots__ = []
def __init__(self):
pass
@proper... | 22.445255 | 79 | 0.551545 | 300 | 3,075 | 5.543333 | 0.27 | 0.036079 | 0.064943 | 0.021648 | 0.387252 | 0.387252 | 0.387252 | 0.387252 | 0.387252 | 0.337943 | 0 | 0 | 0.354146 | 3,075 | 136 | 80 | 22.610294 | 0.837362 | 0.450732 | 0 | 0.189189 | 0 | 0 | 0.010327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0.027027 | 0.135135 | 0 | 0.540541 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e1561fc4fd6121062109dca8a2036c73064fde65 | 1,302 | py | Python | scraper/scraper/dbrouter.py | ikeikeikeike/panglao-scraper | e7a4919c40c457ea73e89782e8b2dd3213129bcf | [
"MIT"
] | 1 | 2017-03-04T06:41:03.000Z | 2017-03-04T06:41:03.000Z | scraper/scraper/dbrouter.py | ikeikeikeike/panglao-scraper | e7a4919c40c457ea73e89782e8b2dd3213129bcf | [
"MIT"
] | null | null | null | scraper/scraper/dbrouter.py | ikeikeikeike/panglao-scraper | e7a4919c40c457ea73e89782e8b2dd3213129bcf | [
"MIT"
] | null | null | null | class DBRouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label == 'panglao':
return 'panglao'
if model._meta.app_label == 'cheapcdn':
return 'cheapcdn'
if model._meta.app_label == 'lifecycle':
return 'lifecycle'
return 'def... | 35.189189 | 58 | 0.55914 | 146 | 1,302 | 4.760274 | 0.191781 | 0.172662 | 0.207194 | 0.120863 | 0.670504 | 0.523741 | 0.523741 | 0.440288 | 0.440288 | 0.440288 | 0 | 0.009101 | 0.324885 | 1,302 | 36 | 59 | 36.166667 | 0.78157 | 0 | 0 | 0.606061 | 0 | 0 | 0.147465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0 | 0 | 0.575758 | 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 | 1 | 0 | 0 | 2 |
e1574c6d34be9ec3aecda898a3da76fc7a5f7457 | 992 | py | Python | math/0x04-convolutions_and_pooling/test/5-main.py | cbarros7/holbertonschool-machine_learning | 1edb4c253441f6319b86c9c590d1e7dd3fc32bf4 | [
"MIT"
] | 1 | 2022-03-09T19:12:22.000Z | 2022-03-09T19:12:22.000Z | math/0x04-convolutions_and_pooling/test/5-main.py | cbarros7/holbertonschool-machine_learning | 1edb4c253441f6319b86c9c590d1e7dd3fc32bf4 | [
"MIT"
] | null | null | null | math/0x04-convolutions_and_pooling/test/5-main.py | cbarros7/holbertonschool-machine_learning | 1edb4c253441f6319b86c9c590d1e7dd3fc32bf4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import matplotlib.pyplot as plt
import numpy as np
convolve = __import__('5-convolve').convolve
if __name__ == '__main__':
dataset = np.load('../../supervised_learning/data/animals_1.npz')
images = dataset['data']
print(images.shape)
kernels = np.array([[[[0, 1, 1], [0, 1, 1],... | 36.740741 | 145 | 0.465726 | 161 | 992 | 2.751553 | 0.223602 | 0.112867 | 0.142212 | 0.162528 | 0.370203 | 0.370203 | 0.370203 | 0.293454 | 0.167043 | 0.167043 | 0 | 0.12053 | 0.238911 | 992 | 27 | 146 | 36.740741 | 0.466225 | 0.021169 | 0 | 0.2 | 0 | 0 | 0.07312 | 0.045314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e15fe2808a63c326ed53df8aba8d98c7f19f13c5 | 707 | py | Python | test/automation/dataset/loader.py | agupta54/ulca | c1f570ac254ce2ac73f40c49716458f4f7cbaee2 | [
"MIT"
] | 3 | 2022-01-12T06:51:51.000Z | 2022-02-23T18:54:33.000Z | test/automation/dataset/loader.py | agupta54/ulca | c1f570ac254ce2ac73f40c49716458f4f7cbaee2 | [
"MIT"
] | 6 | 2021-08-31T19:21:26.000Z | 2022-01-03T05:53:42.000Z | test/automation/dataset/loader.py | agupta54/ulca | c1f570ac254ce2ac73f40c49716458f4f7cbaee2 | [
"MIT"
] | 8 | 2021-08-12T08:07:49.000Z | 2022-01-25T04:40:51.000Z | from config import PENDING_WAIT_TIME
from core.core_main import print_task,print_output
from core.core_main import get_url,get_file
from core.core_main import wait_for_2_sec,wait_for_pending_request
from core.core_web import perform_webpage_function
from core.core_web import show_all_data_from_table
from core.url im... | 30.73913 | 66 | 0.881188 | 126 | 707 | 4.563492 | 0.301587 | 0.153043 | 0.146087 | 0.118261 | 0.558261 | 0.175652 | 0.135652 | 0 | 0 | 0 | 0 | 0.00157 | 0.09901 | 707 | 22 | 67 | 32.136364 | 0.901099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e1641fb46112f4da7be6805651b5a0e46b2c2d8c | 899 | py | Python | src/postPdo.py | NikiforMalkov/python-parser | 3dd5ea664db2dd8c8f3350252ff3d35bdcf9bc0d | [
"MIT"
] | null | null | null | src/postPdo.py | NikiforMalkov/python-parser | 3dd5ea664db2dd8c8f3350252ff3d35bdcf9bc0d | [
"MIT"
] | null | null | null | src/postPdo.py | NikiforMalkov/python-parser | 3dd5ea664db2dd8c8f3350252ff3d35bdcf9bc0d | [
"MIT"
] | null | null | null | from src.post import Post
class PostPdo(object):
def __init__(self, session):
self.session = session
# TODO: более объектынй подход
def add_post(self, comment, image_url, link, date):
test_post = Post(str(comment), str(image_url), str(link), str(date))
print("Add new post")
... | 29.966667 | 76 | 0.63515 | 128 | 899 | 4.304688 | 0.289063 | 0.139746 | 0.136116 | 0.108893 | 0.283122 | 0.283122 | 0.283122 | 0.108893 | 0 | 0 | 0 | 0 | 0.234705 | 899 | 29 | 77 | 31 | 0.800872 | 0.031146 | 0 | 0.095238 | 0 | 0 | 0.073648 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.380952 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e168ace6cfa2948ec50a716b6fc302d6d57959fd | 5,434 | py | Python | bbt_bpm/hooks.py | rathodjitendra/BBT-I2E | acadedb0fb295ab2687bd23018a6038064f4e791 | [
"MIT"
] | null | null | null | bbt_bpm/hooks.py | rathodjitendra/BBT-I2E | acadedb0fb295ab2687bd23018a6038064f4e791 | [
"MIT"
] | null | null | null | bbt_bpm/hooks.py | rathodjitendra/BBT-I2E | acadedb0fb295ab2687bd23018a6038064f4e791 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "bbt_bpm"
app_title = "Bbt Bpm"
app_publisher = "Ashish"
app_description = "bbt_bpm"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "ashishkumar.r@indictrans.in"
app_license =... | 29.058824 | 105 | 0.724512 | 728 | 5,434 | 5.06456 | 0.215659 | 0.069976 | 0.065094 | 0.09764 | 0.446705 | 0.368592 | 0.280987 | 0.234879 | 0.129645 | 0.027122 | 0 | 0.000207 | 0.112624 | 5,434 | 186 | 106 | 29.215054 | 0.764413 | 0.459514 | 0 | 0 | 0 | 0 | 0.724235 | 0.586704 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e1797854d4bcafeec83544ee59b616a7a349ae16 | 2,011 | py | Python | odps/mars_extension/__init__.py | wjsi/aliyun-odps-python-sdk | 8b064340e4376def201b8d8fdc0c2fa021aae9be | [
"Apache-2.0"
] | 412 | 2015-11-01T09:27:52.000Z | 2022-03-26T05:04:03.000Z | odps/mars_extension/__init__.py | wjsi/aliyun-odps-python-sdk | 8b064340e4376def201b8d8fdc0c2fa021aae9be | [
"Apache-2.0"
] | 168 | 2015-11-16T09:46:39.000Z | 2022-03-17T06:35:26.000Z | odps/mars_extension/__init__.py | wjsi/aliyun-odps-python-sdk | 8b064340e4376def201b8d8fdc0c2fa021aae9be | [
"Apache-2.0"
] | 103 | 2015-12-01T08:10:09.000Z | 2022-02-21T12:46:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2018 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-... | 27.547945 | 79 | 0.740925 | 259 | 2,011 | 5.57529 | 0.409266 | 0.041551 | 0.041551 | 0.045706 | 0.092798 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007884 | 0.18001 | 2,011 | 72 | 80 | 27.930556 | 0.867799 | 0.314272 | 0 | 0.404762 | 0 | 0 | 0.03304 | 0.027166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.404762 | 0 | 0.404762 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
e18dfb051e062cef171c9b6a8b5e589f3bedb2f4 | 674 | py | Python | makahiki/apps/widgets/bonus_points/urls.py | justinslee/Wai-Not-Makahiki | 4b7dd685012ec64758affe0ecee3103596d16aa7 | [
"MIT"
] | 1 | 2015-07-22T11:31:20.000Z | 2015-07-22T11:31:20.000Z | makahiki/apps/widgets/bonus_points/urls.py | justinslee/Wai-Not-Makahiki | 4b7dd685012ec64758affe0ecee3103596d16aa7 | [
"MIT"
] | null | null | null | makahiki/apps/widgets/bonus_points/urls.py | justinslee/Wai-Not-Makahiki | 4b7dd685012ec64758affe0ecee3103596d16aa7 | [
"MIT"
] | null | null | null | """urls definition for bonus_points widget."""
'''
Created on Aug 5, 2012
@author: Cam Moore
'''
from django.conf.urls.defaults import url, patterns
urlpatterns = patterns('',
url(r'^bonus_code/$',
'apps.widgets.bonus_points.views.bonus_code',
name="bonus_points_code"),
url(r'^view_codes/$',
... | 28.083333 | 65 | 0.672107 | 88 | 674 | 4.875 | 0.375 | 0.205128 | 0.149184 | 0.205128 | 0.324009 | 0.18648 | 0.18648 | 0 | 0 | 0 | 0 | 0.009009 | 0.176558 | 674 | 23 | 66 | 29.304348 | 0.763964 | 0.059347 | 0 | 0 | 0 | 0 | 0.555363 | 0.370242 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e1952c4979872e32b247f9d1a7294af05bfbc354 | 310 | py | Python | sf_tools/__init__.py | sfarrens/sf_tools | 2a280dcca548f19599e7fc60f4c6d006d8ba4380 | [
"MIT"
] | null | null | null | sf_tools/__init__.py | sfarrens/sf_tools | 2a280dcca548f19599e7fc60f4c6d006d8ba4380 | [
"MIT"
] | 4 | 2017-12-06T13:17:15.000Z | 2020-02-15T08:23:53.000Z | sf_tools/__init__.py | sfarrens/sf_tools | 2a280dcca548f19599e7fc60f4c6d006d8ba4380 | [
"MIT"
] | 3 | 2017-10-05T10:19:33.000Z | 2017-12-05T12:16:30.000Z | # -*- coding: utf-8 -*-
"""SF-TOOLS PACKAGE
SF_TOOLS is a series of Python modules with applications to image analysis,
signal processing and statistics.
:Author: Samuel Farrens <samuel.farrens@cea.fr>
"""
__all__ = ['image']
from . import *
from .image import *
from .info import __version__, __about__
| 18.235294 | 75 | 0.722581 | 42 | 310 | 5.02381 | 0.761905 | 0.066351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.16129 | 310 | 16 | 76 | 19.375 | 0.807692 | 0.641935 | 0 | 0 | 0 | 0 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
e19cb10b782e14a6cbec25b8e13b057cb7e97a25 | 1,351 | py | Python | tests/test_ctap_get_assertion_request.py | dany74q/ctap-keyring-device | 2f41f008679259182a61224680d75b6e0bdc510b | [
"MIT"
] | 1 | 2022-03-04T09:37:49.000Z | 2022-03-04T09:37:49.000Z | tests/test_ctap_get_assertion_request.py | dany74q/ctap-keyring-device | 2f41f008679259182a61224680d75b6e0bdc510b | [
"MIT"
] | null | null | null | tests/test_ctap_get_assertion_request.py | dany74q/ctap-keyring-device | 2f41f008679259182a61224680d75b6e0bdc510b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from ctap_keyring_device.ctap_strucs import CtapGetAssertionRequest, CtapOptions
class TestCtapGetAssertionRequest(unittest.TestCase):
def test_allow_list_is_empty_list_when_none(self):
req = CtapGetAssertionRequest.create(
{CtapGetAssertionRequest.ALLO... | 34.641026 | 88 | 0.698001 | 132 | 1,351 | 6.742424 | 0.272727 | 0.179775 | 0.168539 | 0.202247 | 0.694382 | 0.647191 | 0.531461 | 0.453933 | 0.453933 | 0.453933 | 0 | 0.000973 | 0.239082 | 1,351 | 38 | 89 | 35.552632 | 0.864786 | 0.015544 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0.166667 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e1a1ce41dcc265de04cbe91a303caf3ed2917d8a | 434 | py | Python | app.py | tuzhucheng/uw-course-alerter | dfa92db8ba32a2209dacab04d9b14279f5f37f3d | [
"MIT"
] | 2 | 2015-02-28T21:29:25.000Z | 2016-12-02T16:59:26.000Z | app.py | tuzhucheng/uw-course-alerter | dfa92db8ba32a2209dacab04d9b14279f5f37f3d | [
"MIT"
] | 1 | 2017-07-31T14:43:34.000Z | 2017-07-31T19:31:28.000Z | app.py | tuzhucheng/uw-course-alerter | dfa92db8ba32a2209dacab04d9b14279f5f37f3d | [
"MIT"
] | null | null | null | from flask import Flask
from flask import make_response, request
import core.request_handler as request_handler
app = Flask(__name__)
app.config.from_envvar('CONFIG_FILE')
@app.route('/')
def index():
return make_response(open('static/index.html').read())
@app.route('/check_availability', methods=['POST'])
def ... | 20.666667 | 58 | 0.74424 | 57 | 434 | 5.280702 | 0.508772 | 0.139535 | 0.099668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119816 | 434 | 20 | 59 | 21.7 | 0.787958 | 0 | 0 | 0 | 0 | 0 | 0.138568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.153846 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
e1a597df83c62b3d9d258ffbd3bf69714b06ac97 | 1,133 | py | Python | msg_parser/properties/ms_props_date_type_map.py | haikezegwaard/msg_parser | ae36fb8af85599029dbbfc6ce52f4dabeb547e2e | [
"BSD-2-Clause"
] | null | null | null | msg_parser/properties/ms_props_date_type_map.py | haikezegwaard/msg_parser | ae36fb8af85599029dbbfc6ce52f4dabeb547e2e | [
"BSD-2-Clause"
] | null | null | null | msg_parser/properties/ms_props_date_type_map.py | haikezegwaard/msg_parser | ae36fb8af85599029dbbfc6ce52f4dabeb547e2e | [
"BSD-2-Clause"
] | null | null | null | # coding=utf-8
# autogenerated using ms_props_generator.py
DATA_TYPE_MAP = {
"0x0000": "PtypUnspecified",
"0x0001": "PtypNull",
"0x0002": "PtypInteger16",
"0x0003": "PtypInteger32",
"0x0004": "PtypFloating32",
"0x0005": "PtypFloating64",
"0x0006": "PtypCurrency",
"0x0007": "PtypFloating... | 29.815789 | 43 | 0.64519 | 76 | 1,133 | 9.565789 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182796 | 0.17917 | 1,133 | 37 | 44 | 30.621622 | 0.598925 | 0.047661 | 0 | 0 | 1 | 0 | 0.622677 | 0.121747 | 0 | 0 | 0.178439 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e1b32ba12fcf5b98fdece8ba0200fd3974176ed3 | 1,010 | py | Python | samples/python/simple_fetch_blocks.py | biteasy/blockchain-api | 73ed5ff5cddddf7867b77576a83bb9f6accbaa49 | [
"Apache-1.1"
] | 14 | 2015-02-09T16:03:47.000Z | 2021-01-11T12:10:48.000Z | samples/python/simple_fetch_blocks.py | wizardofozzie/blockchain-api | 73ed5ff5cddddf7867b77576a83bb9f6accbaa49 | [
"Apache-1.1"
] | 14 | 2015-01-13T00:10:53.000Z | 2017-09-14T08:54:58.000Z | samples/python/simple_fetch_blocks.py | wizardofozzie/blockchain-api | 73ed5ff5cddddf7867b77576a83bb9f6accbaa49 | [
"Apache-1.1"
] | 8 | 2015-01-30T03:04:51.000Z | 2017-01-01T07:16:59.000Z | ###
# Filename : simple_fetch_blocks.py
# Description: Fetch latest blocks with the use of the Biteasy Blockchain API.
#
# Copyright (c) 2013-2014 Biteasy, LTD
#
# LICENSE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# Yo... | 33.666667 | 88 | 0.747525 | 149 | 1,010 | 5.033557 | 0.651007 | 0.08 | 0.034667 | 0.042667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01993 | 0.155446 | 1,010 | 30 | 89 | 33.666667 | 0.85932 | 0.681188 | 0 | 0 | 0 | 0 | 0.252525 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e1c18e5fbd22a5cc0488f26fcae7964b15bf72e9 | 859 | py | Python | src/flask_bombril/utils.py | marcoprado17/flask-bone | 772d25bdf6c6e41701da1ef2e2a67bae7ae21757 | [
"MIT"
] | null | null | null | src/flask_bombril/utils.py | marcoprado17/flask-bone | 772d25bdf6c6e41701da1ef2e2a67bae7ae21757 | [
"MIT"
] | null | null | null | src/flask_bombril/utils.py | marcoprado17/flask-bone | 772d25bdf6c6e41701da1ef2e2a67bae7ae21757 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# ======================================================================================================================
# The MIT License (MIT)
# ======================================================================================================================
# Copyr... | 39.045455 | 120 | 0.423749 | 67 | 859 | 5.223881 | 0.552239 | 0.077143 | 0.057143 | 0.085714 | 0.131429 | 0.131429 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.103609 | 859 | 21 | 121 | 40.904762 | 0.448052 | 0.56461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e1cac149c0ee0396e5b58713e41c72525fb78334 | 7,168 | py | Python | pysnmp/HH3C-LswMAM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HH3C-LswMAM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HH3C-LswMAM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HH3C-LswMAM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-LswMAM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:15:14 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | 115.612903 | 1,040 | 0.780273 | 732 | 7,168 | 7.637978 | 0.214481 | 0.00787 | 0.010195 | 0.012878 | 0.336076 | 0.248793 | 0.237346 | 0.237346 | 0.225362 | 0.225362 | 0 | 0.094554 | 0.077846 | 7,168 | 61 | 1,041 | 117.508197 | 0.751286 | 0.045201 | 0 | 0.038462 | 0 | 0 | 0.158303 | 0.021361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e1ce1b7e139b223af7a15c9f0c773354d9165663 | 78 | py | Python | testes.py | Williancc1557/client1 | 68d4057eaa1208ee73f747bae771cf657a8ed1b7 | [
"MIT"
] | null | null | null | testes.py | Williancc1557/client1 | 68d4057eaa1208ee73f747bae771cf657a8ed1b7 | [
"MIT"
] | null | null | null | testes.py | Williancc1557/client1 | 68d4057eaa1208ee73f747bae771cf657a8ed1b7 | [
"MIT"
] | null | null | null | import json
dindin = {123: 123}
dados = json.loads(f'{dindin}')
print(dados)
| 13 | 31 | 0.679487 | 12 | 78 | 4.416667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 0.141026 | 78 | 5 | 32 | 15.6 | 0.701493 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
beca66fd1093873b130ccbeef5e67429df005b04 | 315 | py | Python | Packs/CaseManagement-Generic/Scripts/LinkIncidentsButton/LinkIncidentsButton.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/CaseManagement-Generic/Scripts/LinkIncidentsButton/LinkIncidentsButton.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/CaseManagement-Generic/Scripts/LinkIncidentsButton/LinkIncidentsButton.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | import demistomock as demisto
action = demisto.getArg('action')
if action not in ['link', 'unlink']:
action = 'link'
demisto.results(demisto.executeCommand("linkIncidents", {"linkedIncidentIDs": demisto.getArg("linkedIncidentIDs"),
"action": action}))
| 35 | 114 | 0.606349 | 27 | 315 | 7.074074 | 0.555556 | 0.136126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 315 | 8 | 115 | 39.375 | 0.82684 | 0 | 0 | 0 | 0 | 0 | 0.231746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bed82419b4fa8d2bbfeb951ab6a2e2d7e848bd37 | 244 | py | Python | src/WindowHandling/Window.py | AlexandrePetrassi/awso-me | e174eb478d6f6359d3ad866af2008791b9c73d0c | [
"MIT"
] | null | null | null | src/WindowHandling/Window.py | AlexandrePetrassi/awso-me | e174eb478d6f6359d3ad866af2008791b9c73d0c | [
"MIT"
] | null | null | null | src/WindowHandling/Window.py | AlexandrePetrassi/awso-me | e174eb478d6f6359d3ad866af2008791b9c73d0c | [
"MIT"
] | null | null | null | """Dataclass responsible to pass window data among modules"""
from dataclasses import dataclass
@dataclass(frozen=True, slots=True)
class Window:
"""
A window dataclass composed of a pid and a handle
"""
pid: 0
handle: 0
| 18.769231 | 61 | 0.688525 | 33 | 244 | 5.090909 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010582 | 0.22541 | 244 | 12 | 62 | 20.333333 | 0.878307 | 0.430328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
bedce3efee0030d381c8751f9ebd9cd1e0fc48c1 | 137 | py | Python | elkme/__init__.py | 46elks/elkme | 6ebdce6f8ac852fc6f714d1f1b836f2777fece4e | [
"MIT"
] | 11 | 2015-07-23T10:16:49.000Z | 2021-05-17T13:50:00.000Z | elkme/__init__.py | 46elks/elkme | 6ebdce6f8ac852fc6f714d1f1b836f2777fece4e | [
"MIT"
] | 7 | 2015-07-23T09:42:40.000Z | 2017-07-17T13:55:32.000Z | elkme/__init__.py | 46elks/elkme | 6ebdce6f8ac852fc6f714d1f1b836f2777fece4e | [
"MIT"
] | 3 | 2017-06-20T21:46:59.000Z | 2021-05-17T13:50:32.000Z | #
# elkme - the command-line sms utility
# see main.py for the main entry-point
#
__version__ = '0.6.0'
__release_date__ = '2017-07-17'
| 17.125 | 38 | 0.70073 | 23 | 137 | 3.782609 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096491 | 0.167883 | 137 | 7 | 39 | 19.571429 | 0.666667 | 0.532847 | 0 | 0 | 0 | 0 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bede36ffbe0cf2376dc175af1bcedaa93cc45476 | 228 | py | Python | test.py | UCL-EO/gurl | 0ab9d56cafd8bfc37c705958067ae82a42703332 | [
"MIT"
] | null | null | null | test.py | UCL-EO/gurl | 0ab9d56cafd8bfc37c705958067ae82a42703332 | [
"MIT"
] | null | null | null | test.py | UCL-EO/gurl | 0ab9d56cafd8bfc37c705958067ae82a42703332 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from gurl import URL
print('test 7: multi-level, with cache, password required, read html')
u='https://e4ftl01.cr.usgs.gov/'
url = URL(u,pwr=True,cache=True)
data = url.read_text()
| 25.333333 | 70 | 0.684211 | 39 | 228 | 3.974359 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.122807 | 228 | 8 | 71 | 28.5 | 0.75 | 0.184211 | 0 | 0 | 0 | 0 | 0.483696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
befeeab8d52743c0373ded848e31af75d7b96c7b | 299 | py | Python | django_clear_memcache/__init__.py | eht16/django-clear-memcache | 6cbd0178f516eb6189d96b8be557eb6f56e99f50 | [
"BSD-3-Clause"
] | 4 | 2015-01-13T14:11:21.000Z | 2018-01-18T12:53:16.000Z | django_clear_memcache/__init__.py | eht16/django-clear-memcache | 6cbd0178f516eb6189d96b8be557eb6f56e99f50 | [
"BSD-3-Clause"
] | 2 | 2018-04-09T08:57:29.000Z | 2022-01-08T11:29:32.000Z | django_clear_memcache/__init__.py | eht16/django-clear-memcache | 6cbd0178f516eb6189d96b8be557eb6f56e99f50 | [
"BSD-3-Clause"
] | 5 | 2017-06-26T08:08:41.000Z | 2021-12-08T07:44:57.000Z | # -*- coding: utf-8 -*-
VERSION = (1, 4, 3)
default_app_config = 'django_clear_memcache.apps.ClearMemcacheConfig'
try:
# Django 4.x
from django.utils.translation import gettext_lazy as _
except ImportError:
# Older Versions
from django.utils.translation import ugettext_lazy as _
| 23 | 69 | 0.729097 | 39 | 299 | 5.384615 | 0.74359 | 0.095238 | 0.142857 | 0.247619 | 0.304762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020325 | 0.177258 | 299 | 12 | 70 | 24.916667 | 0.833333 | 0.157191 | 0 | 0 | 0 | 0 | 0.185484 | 0.185484 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
83099a09774f584fca2d0e950d9203930f20b809 | 7,790 | py | Python | media_file_types.py | jasonivey/scripts | 09f9702e5ce62abbb7699aae16b45b33711fe856 | [
"MIT"
] | null | null | null | media_file_types.py | jasonivey/scripts | 09f9702e5ce62abbb7699aae16b45b33711fe856 | [
"MIT"
] | null | null | null | media_file_types.py | jasonivey/scripts | 09f9702e5ce62abbb7699aae16b45b33711fe856 | [
"MIT"
] | null | null | null |
var2 = {
# Video Only files
'.webm' : ('WebM', 'Free and libre format created for HTML5 video.'),
'.mkv' : ('Matroska', ''),
'.flv' : ('Flash Video', 'Use of the H.264 and AAC compression formats in the FLV file format has some limitations and authors of Flash Player strongly encourage everyone to embrace the new stan... | 105.27027 | 389 | 0.731964 | 1,224 | 7,790 | 4.65768 | 0.349673 | 0.015787 | 0.007016 | 0.009647 | 0.239432 | 0.20014 | 0.171724 | 0.150675 | 0.150675 | 0.150675 | 0 | 0.012102 | 0.162003 | 7,790 | 73 | 390 | 106.712329 | 0.861213 | 0.004236 | 0 | 0 | 0 | 0.086957 | 0.893332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
830e71a23f6f7d6130d0b74472822f02f937f898 | 2,826 | py | Python | nbx/cli/client.py | dalejung/nbx | 649a9c6c53b5727b6015d9ecb3e1a8caf7d03cb8 | [
"MIT"
] | 2 | 2015-11-01T16:50:48.000Z | 2016-06-17T06:38:29.000Z | nbx/cli/client.py | dalejung/nbx | 649a9c6c53b5727b6015d9ecb3e1a8caf7d03cb8 | [
"MIT"
] | 19 | 2015-01-21T21:03:48.000Z | 2021-06-10T05:22:41.000Z | nbx/cli/client.py | dalejung/nbx | 649a9c6c53b5727b6015d9ecb3e1a8caf7d03cb8 | [
"MIT"
] | 1 | 2015-11-01T16:50:49.000Z | 2015-11-01T16:50:49.000Z | import requests
class IPythonService(object):
def __init__(self, host, port, token=None):
self.host = host
self.port = port
self.token = token
def _get(self, path, **kwargs):
token = self.token
if token:
kwargs['headers'] = {'Authorization': f'token {token}'... | 32.482759 | 88 | 0.608634 | 338 | 2,826 | 4.923077 | 0.248521 | 0.038462 | 0.023438 | 0.020433 | 0.135817 | 0.135817 | 0.09976 | 0.09976 | 0.09976 | 0.09976 | 0 | 0.008407 | 0.242392 | 2,826 | 86 | 89 | 32.860465 | 0.7688 | 0.031493 | 0 | 0.176471 | 0 | 0 | 0.114833 | 0.009937 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.205882 | false | 0 | 0.029412 | 0.044118 | 0.426471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
831b5b5d24f3048fc8078263f9de13fdc41f457b | 725 | py | Python | Python Code/password.py | ona-li-toki-e-jan-Epiphany-tawa-mi/AkashicRecord | 0a4882d2729da88c4fb7b7c8970bb00af82eb29c | [
"MIT"
] | 1 | 2021-02-24T22:07:01.000Z | 2021-02-24T22:07:01.000Z | Python Code/password.py | ona-li-toki-e-jan-Epiphany-tawa-mi/AkashicRecord | 0a4882d2729da88c4fb7b7c8970bb00af82eb29c | [
"MIT"
] | null | null | null | Python Code/password.py | ona-li-toki-e-jan-Epiphany-tawa-mi/AkashicRecord | 0a4882d2729da88c4fb7b7c8970bb00af82eb29c | [
"MIT"
] | null | null | null | import secrets
import string
def main():
''' Generates a password of the length specified by the user. '''
password_length = input("How many characters long should the password be?: ")
if password_length.isdecimal():
password_length = int(password_length)
# Generates password.
i... | 21.969697 | 81 | 0.602759 | 77 | 725 | 5.454545 | 0.506494 | 0.2 | 0.07619 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001988 | 0.306207 | 725 | 33 | 82 | 21.969697 | 0.833002 | 0.108966 | 0 | 0.210526 | 1 | 0 | 0.1375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.421053 | 0.105263 | 0 | 0.157895 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
83209e50874b5d95c0d216b5f339e9f21c1cec5a | 171 | py | Python | csv2json.py | jrotithor/PHAZE | a7e290b89f0b4c86cb0295e6c37303cbe0e10eb5 | [
"MIT"
] | null | null | null | csv2json.py | jrotithor/PHAZE | a7e290b89f0b4c86cb0295e6c37303cbe0e10eb5 | [
"MIT"
] | null | null | null | csv2json.py | jrotithor/PHAZE | a7e290b89f0b4c86cb0295e6c37303cbe0e10eb5 | [
"MIT"
] | 1 | 2018-09-14T01:51:51.000Z | 2018-09-14T01:51:51.000Z | import csv
import json
with open('sample_data.csv') as f:
reader = csv.DictReader(f)
rows = list(reader)
with open('test.json', 'w') as f:
json.dump(rows, f) | 19 | 34 | 0.649123 | 29 | 171 | 3.793103 | 0.551724 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19883 | 171 | 9 | 35 | 19 | 0.80292 | 0 | 0 | 0 | 0 | 0 | 0.145349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8347deafbee4154ad74523405718ce44a54cc7b3 | 322 | py | Python | src/the_tale/the_tale/game/artifacts/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/artifacts/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/artifacts/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class ArtifactRecordAdmin(django_admin.ModelAdmin):
list_display = ('id', 'uuid', 'name', 'state', 'type', 'power_type', 'created_at', 'updated_at')
list_filter = ('state', 'type', 'power_type')
django_admin.site.register(models.ArtifactRecord, ArtifactRecordAdmin... | 23 | 100 | 0.729814 | 37 | 322 | 6.081081 | 0.675676 | 0.106667 | 0.124444 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114907 | 322 | 13 | 101 | 24.769231 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.211838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
83497d8faa5f0939199d91047002f2ef63d64567 | 2,150 | py | Python | user/views.py | ssoumyajit/imgapi2 | b2129f1d35d55e093a3d96272686ac25ea2cf7bb | [
"MIT"
] | null | null | null | user/views.py | ssoumyajit/imgapi2 | b2129f1d35d55e093a3d96272686ac25ea2cf7bb | [
"MIT"
] | null | null | null | user/views.py | ssoumyajit/imgapi2 | b2129f1d35d55e093a3d96272686ac25ea2cf7bb | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework.generics import CreateAPIView, RetrieveUpdateAPIView
from .serializers import UserSerializer, CustomTokenSerializer
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework_simplejwt.views import TokenObtainPairView
from rest_framework.autht... | 35.833333 | 136 | 0.767907 | 237 | 2,150 | 6.864979 | 0.388186 | 0.063921 | 0.073141 | 0.031961 | 0.186847 | 0.186847 | 0.186847 | 0.186847 | 0.186847 | 0.137677 | 0 | 0.019355 | 0.134884 | 2,150 | 59 | 137 | 36.440678 | 0.855376 | 0.226512 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.473684 | 0.052632 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8357dfd7cf08fac47dd45cbc04692e0cb7552f4b | 1,466 | py | Python | mason/engines/metastore/models/database/__init__.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 4 | 2021-04-12T17:49:34.000Z | 2022-01-23T19:54:29.000Z | mason/engines/metastore/models/database/__init__.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 24 | 2021-04-30T18:40:25.000Z | 2021-05-12T20:52:06.000Z | mason/engines/metastore/models/database/__init__.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 3 | 2021-04-12T19:40:43.000Z | 2021-09-07T21:56:36.000Z | from typing import List
from mason.clients.responsable import Responsable
from mason.clients.response import Response
from mason.engines.metastore.models.table.table import TableList
class Database(Responsable):
def __init__(self, name: str, tables: TableList):
self.name = name
self.tables = tab... | 29.918367 | 92 | 0.656889 | 166 | 1,466 | 5.638554 | 0.277108 | 0.119658 | 0.057692 | 0.070513 | 0.122863 | 0.122863 | 0.087607 | 0 | 0 | 0 | 0 | 0.000912 | 0.251705 | 1,466 | 49 | 93 | 29.918367 | 0.852325 | 0 | 0 | 0.121212 | 0 | 0 | 0.058623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.121212 | 0.030303 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8358202b58405aff0433ceacedf3dd01ee039168 | 331 | py | Python | General/string.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 32 | 2020-04-05T08:29:40.000Z | 2022-01-08T03:10:00.000Z | General/string.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 3 | 2021-06-02T04:09:11.000Z | 2022-03-02T14:55:03.000Z | General/string.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 3 | 2020-07-13T05:44:04.000Z | 2021-03-03T07:07:58.000Z | # s='welcome to the world of python'
# result=s.split(" ")
# print(s)
# d={1:'one',2:'two'}
# for k,v in d.items():
# print(k,v)
# #
# d={1:'one',2:'two'}
# # for k,v in enumerate(d):
# # print(k,v)
# # print(d.keys())
# print(d[2][2])
# lst=[1,2,3,4]
# dic={}
# for k,v in enumerate(lst):
# dic[k]=v
#... | 17.421053 | 36 | 0.501511 | 64 | 331 | 2.59375 | 0.40625 | 0.072289 | 0.090361 | 0.126506 | 0.343373 | 0.192771 | 0.192771 | 0.192771 | 0.192771 | 0 | 0 | 0.038168 | 0.208459 | 331 | 19 | 37 | 17.421053 | 0.59542 | 0.879154 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8358cb9062e4b439af72cb0a05fc9e75b0a80011 | 7,108 | py | Python | commercialoperator/management/commands/update_approval_status.py | sharpeez/ledger | 0ea05669f488336a63e2bdd6390725d00d619e9a | [
"Apache-2.0"
] | null | null | null | commercialoperator/management/commands/update_approval_status.py | sharpeez/ledger | 0ea05669f488336a63e2bdd6390725d00d619e9a | [
"Apache-2.0"
] | null | null | null | commercialoperator/management/commands/update_approval_status.py | sharpeez/ledger | 0ea05669f488336a63e2bdd6390725d00d619e9a | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand
from django.utils import timezone
from django.conf import settings
from commercialoperator.components.approvals.models import Approval, ApprovalUserAction
from commercialoperator.components.proposals.models import Proposal, ProposalUserAction
from ledger.accounts.mode... | 53.443609 | 133 | 0.57794 | 698 | 7,108 | 5.67192 | 0.141834 | 0.031826 | 0.040919 | 0.036373 | 0.756504 | 0.70826 | 0.686032 | 0.646123 | 0.646123 | 0.646123 | 0 | 0 | 0.335537 | 7,108 | 132 | 134 | 53.848485 | 0.838238 | 0 | 0 | 0.619469 | 0 | 0 | 0.09893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00885 | false | 0.00885 | 0.088496 | 0 | 0.115044 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8363fc2da6f675e46a740874a7aecf083c093c68 | 1,287 | py | Python | test_set.py | milesrout/visp | 73e2839e128949c238efee177a005894576987d2 | [
"Artistic-2.0"
] | 5 | 2016-03-17T22:15:52.000Z | 2016-09-27T01:12:29.000Z | test_set.py | milesrout/visp | 73e2839e128949c238efee177a005894576987d2 | [
"Artistic-2.0"
] | 3 | 2016-09-25T09:26:18.000Z | 2016-09-27T12:58:12.000Z | test_set.py | milesrout/visp | 73e2839e128949c238efee177a005894576987d2 | [
"Artistic-2.0"
] | null | null | null | import unittest
import test_visp
class TestSet(test_visp.TestCase):
def test_set_simple(self):
self.assertEvalEqual(
"""(let ((x 1))
(set! x 2)
x)""",
"2")
def test_set_works_in_child_scope(self):
self.assertEvalEqual(
"""(l... | 24.75 | 44 | 0.359751 | 127 | 1,287 | 3.464567 | 0.228346 | 0.081818 | 0.136364 | 0.354545 | 0.629545 | 0.629545 | 0.565909 | 0.565909 | 0.497727 | 0.368182 | 0 | 0.035549 | 0.497281 | 1,287 | 51 | 45 | 25.235294 | 0.644513 | 0 | 0 | 0.407407 | 0 | 0 | 0.008785 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.074074 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83659bc06adec14313782b5c15b27314e0f4ba3c | 4,069 | py | Python | quadpy/quadrilateral/wissmann_becker.py | gdmcbain/quadpy | c083d500027d7c1b2187ae06ff2b7fbdd360ccc7 | [
"MIT"
] | 1 | 2019-01-02T19:04:42.000Z | 2019-01-02T19:04:42.000Z | quadpy/quadrilateral/wissmann_becker.py | gdmcbain/quadpy | c083d500027d7c1b2187ae06ff2b7fbdd360ccc7 | [
"MIT"
] | null | null | null | quadpy/quadrilateral/wissmann_becker.py | gdmcbain/quadpy | c083d500027d7c1b2187ae06ff2b7fbdd360ccc7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
from __future__ import division
import numpy
import sympy
from ..helpers import untangle
class WissmannBecker(object):
"""
Johannes W. Wissmann and Thomas Becker,
Partially Symmetric Cubature Formulas for Even Degrees of Exactness,
SIAM J. Numer. Anal., 23(3), 676–685, 10 p... | 41.520408 | 79 | 0.561809 | 391 | 4,069 | 5.723785 | 0.455243 | 0.022341 | 0.014745 | 0.013405 | 0.028597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5811 | 0.303023 | 4,069 | 97 | 80 | 41.948454 | 0.207687 | 0.052593 | 0 | 0.153846 | 0 | 0 | 0.006273 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.038462 | false | 0 | 0.051282 | 0.025641 | 0.141026 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
55c4fad2f012f03f04302caad02766461263ca1f | 621 | py | Python | gdpr/management/commands/delete_users.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 2 | 2020-12-31T06:21:54.000Z | 2021-11-15T15:35:45.000Z | gdpr/management/commands/delete_users.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | null | null | null | gdpr/management/commands/delete_users.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | null | null | null | import logging
from datetime import datetime
from django.conf import settings
from django.core.management import BaseCommand
from gdpr.forget import delete_user_data
from users.models.user import User
log = logging.getLogger(__name__)
class Command(BaseCommand):
help = "Cron job to actually delete users"
... | 25.875 | 103 | 0.721417 | 83 | 621 | 5.253012 | 0.578313 | 0.045872 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190016 | 621 | 23 | 104 | 27 | 0.864811 | 0 | 0 | 0 | 0 | 0 | 0.10467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
55ca84e73e8ec248bf4ea4f63be151197ddf3bfe | 561 | py | Python | kowi fashions/kowi/kowiapp/migrations/0009_auto_20210424_1023.py | kingwebdev0105/django-fashion-site | c202bb662dbd8650c2da16662e4c27009f7fe6b0 | [
"Apache-2.0"
] | 3 | 2021-07-21T13:47:04.000Z | 2021-07-25T12:19:01.000Z | kowi fashions/kowi/kowiapp/migrations/0009_auto_20210424_1023.py | kingwebdev0105/django-fashion-site | c202bb662dbd8650c2da16662e4c27009f7fe6b0 | [
"Apache-2.0"
] | null | null | null | kowi fashions/kowi/kowiapp/migrations/0009_auto_20210424_1023.py | kingwebdev0105/django-fashion-site | c202bb662dbd8650c2da16662e4c27009f7fe6b0 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.7 on 2021-04-24 10:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kowiapp', '0008_auto_20210424_1022'),
]
operations = [
migrations.AlterField(
model_name='custinfo',
name='age',
... | 23.375 | 61 | 0.579323 | 57 | 561 | 5.614035 | 0.631579 | 0.125 | 0.15625 | 0.18125 | 0.50625 | 0.50625 | 0.25 | 0 | 0 | 0 | 0 | 0.079284 | 0.30303 | 561 | 23 | 62 | 24.391304 | 0.73913 | 0.080214 | 0 | 0.470588 | 1 | 0 | 0.105058 | 0.044747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
55cf676bc0346e717a4a0072d6f7b34a12b82e61 | 275 | py | Python | apiwrapper/api_objects/__init__.py | daxm/apiwrapper | 42a15ce6e2d5f06569937d43ea0a479d9b179de4 | [
"BSD-3-Clause"
] | null | null | null | apiwrapper/api_objects/__init__.py | daxm/apiwrapper | 42a15ce6e2d5f06569937d43ea0a479d9b179de4 | [
"BSD-3-Clause"
] | null | null | null | apiwrapper/api_objects/__init__.py | daxm/apiwrapper | 42a15ce6e2d5f06569937d43ea0a479d9b179de4 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T16:10:43.000Z | 2019-09-06T16:10:43.000Z | import logging
# Each API Class needs to be imported.
from .example_api import Example
logging.debug("In the api_objects __init__.py file.")
# Each API Class needs to be identified here so that it can be referenced directly via apiwrapper.<Class>.
__all__ = [
'Example',
]
| 25 | 106 | 0.763636 | 43 | 275 | 4.651163 | 0.674419 | 0.07 | 0.12 | 0.17 | 0.21 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 275 | 10 | 107 | 27.5 | 0.865801 | 0.512727 | 0 | 0 | 0 | 0 | 0.328244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
55d1bbbb52c78c38d2136d080de33159929f3b91 | 3,233 | py | Python | agrirouter/auth/dto.py | DKE-Data/agrirouter-sdk-python | 6d6b26606f7d424c62289af56da55acf412772fc | [
"Apache-2.0"
] | null | null | null | agrirouter/auth/dto.py | DKE-Data/agrirouter-sdk-python | 6d6b26606f7d424c62289af56da55acf412772fc | [
"Apache-2.0"
] | null | null | null | agrirouter/auth/dto.py | DKE-Data/agrirouter-sdk-python | 6d6b26606f7d424c62289af56da55acf412772fc | [
"Apache-2.0"
] | null | null | null | import json
from typing import Union
from agrirouter.messaging.exceptions import WrongFieldError
class AuthorizationToken:
ACCOUNT = 'account'
REGISTRATION_CODE = 'regcode'
EXPIRES = 'expires'
def __init__(self,
*,
account: str = None,
regcode: str ... | 27.168067 | 90 | 0.578719 | 349 | 3,233 | 5.209169 | 0.143266 | 0.069307 | 0.072607 | 0.084158 | 0.257426 | 0.128713 | 0.128713 | 0.081408 | 0.081408 | 0.081408 | 0 | 0 | 0.335292 | 3,233 | 118 | 91 | 27.398305 | 0.845975 | 0 | 0 | 0.41573 | 0 | 0 | 0.021342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269663 | false | 0 | 0.033708 | 0.11236 | 0.483146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
55e2d1935797c521d302fda6e7b04fd1118da6f8 | 619 | py | Python | score_tracker.py | almontez/osuhackathon_mar2022 | d8f20240ca5abfca9cfda20cb3b6e0e7bad8f609 | [
"BSD-2-Clause"
] | null | null | null | score_tracker.py | almontez/osuhackathon_mar2022 | d8f20240ca5abfca9cfda20cb3b6e0e7bad8f609 | [
"BSD-2-Clause"
] | null | null | null | score_tracker.py | almontez/osuhackathon_mar2022 | d8f20240ca5abfca9cfda20cb3b6e0e7bad8f609 | [
"BSD-2-Clause"
] | 2 | 2022-03-24T20:21:48.000Z | 2022-03-26T17:34:30.000Z | class Player:
def __init__(self, name):
"""Initializes the player's name. The default score is 0"""
self._name = name
self._score = 0
def get_name(self):
"""Return player's name"""
return self._name
def get_score(self):
"""Return player's score"""
r... | 26.913043 | 81 | 0.597738 | 85 | 619 | 4.164706 | 0.411765 | 0.090395 | 0.09322 | 0.079096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011416 | 0.292407 | 619 | 22 | 82 | 28.136364 | 0.796804 | 0.350565 | 0 | 0 | 0 | 0 | 0.077748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0 | 0.666667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
360731bc5294cef6f237bbcc61170e5fe9b4e81d | 409 | py | Python | MediaManage/source/_licensed/rebulk/__init__.py | carceneaux-forks/alfred-workflows | 5073532cbc39f44f6c4937165bd42147a1db2ad0 | [
"Unlicense"
] | 55 | 2015-10-29T17:25:43.000Z | 2022-01-16T02:51:37.000Z | MediaManage/source/_licensed/rebulk/__init__.py | carceneaux-forks/alfred-workflows | 5073532cbc39f44f6c4937165bd42147a1db2ad0 | [
"Unlicense"
] | 18 | 2015-10-20T07:26:12.000Z | 2021-12-07T19:42:24.000Z | MediaManage/source/_licensed/rebulk/__init__.py | carceneaux-forks/alfred-workflows | 5073532cbc39f44f6c4937165bd42147a1db2ad0 | [
"Unlicense"
] | 9 | 2015-12-20T15:16:08.000Z | 2021-11-12T17:53:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Define simple search patterns in bulk to perform advanced matching on any string.
"""
# pylint:disable=import-self
from .rebulk import Rebulk
from .rules import Rule, CustomRule, AppendMatch, RemoveMatch, RenameMatch, AppendTags, RemoveTags
from .processors import Conf... | 37.181818 | 98 | 0.784841 | 52 | 409 | 6.115385 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.122249 | 409 | 10 | 99 | 40.9 | 0.883008 | 0.371638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
360b7f5cb930d816384f5dc74107b4a8b49e537e | 1,466 | py | Python | rclpy_tutorials/setup.py | AndyBlightLeeds/tutorials | 34a1ab4c66fdf1d62c3b86639fce00969502bd0d | [
"Apache-2.0"
] | 30 | 2016-11-16T21:45:01.000Z | 2022-03-01T13:30:21.000Z | rclpy_tutorials/setup.py | AndyBlightLeeds/tutorials | 34a1ab4c66fdf1d62c3b86639fce00969502bd0d | [
"Apache-2.0"
] | 21 | 2016-11-16T21:51:10.000Z | 2020-08-26T07:51:13.000Z | rclpy_tutorials/setup.py | AndyBlightLeeds/tutorials | 34a1ab4c66fdf1d62c3b86639fce00969502bd0d | [
"Apache-2.0"
] | 15 | 2016-11-17T06:22:44.000Z | 2022-01-19T10:07:34.000Z | from setuptools import setup
setup(
name='rclpy_tutorials',
version='0.0.0',
packages=[],
py_modules=[
'topics.listener_py', 'topics.talker_py',
'topics.listener_qos_py', 'topics.talker_qos_py',
'services.add_two_ints_client_py', 'services.add_two_ints_client_async_py',
... | 37.589744 | 88 | 0.664393 | 175 | 1,466 | 5.194286 | 0.371429 | 0.059406 | 0.09901 | 0.105611 | 0.349835 | 0.287129 | 0.232123 | 0.179318 | 0.165017 | 0.165017 | 0 | 0.004367 | 0.218963 | 1,466 | 38 | 89 | 38.578947 | 0.78952 | 0 | 0 | 0.054054 | 0 | 0 | 0.605048 | 0.30764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027027 | 0 | 0.027027 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
360d93859de8140e67911ea7aa85d8dd632bae53 | 514 | py | Python | 3_drawing_functions_in_OpenCV.py | dilanHewawitharana/OpenCV-Python-Self-Learning-10-Hrs | 3f14567e5a00be2d1cf22131ff9a517b5aca2548 | [
"MIT"
] | 2 | 2020-12-01T03:14:16.000Z | 2021-07-25T22:55:09.000Z | 3_drawing_functions_in_OpenCV.py | dilanHewawitharana/OpenCV-Python-Self-Learning-10-Hrs | 3f14567e5a00be2d1cf22131ff9a517b5aca2548 | [
"MIT"
] | null | null | null | 3_drawing_functions_in_OpenCV.py | dilanHewawitharana/OpenCV-Python-Self-Learning-10-Hrs | 3f14567e5a00be2d1cf22131ff9a517b5aca2548 | [
"MIT"
] | 1 | 2021-06-18T10:52:50.000Z | 2021-06-18T10:52:50.000Z | import numpy as np
import cv2
img = np.zeros([512, 512, 3], np.uint8)
img = cv2.line(img, (0,0), (255, 255), (255, 0, 0), 10)
img = cv2.arrowedLine(img, (0, 255), (255, 255), (0, 255, 0), 10)
img = cv2.rectangle(img, (384, 0), (510, 128), (0, 0, 255), 10)
img = cv2.circle(img, (447, 63), 63, (255, 255, 0), cv2.FILLE... | 27.052632 | 84 | 0.620623 | 93 | 514 | 3.387097 | 0.387097 | 0.114286 | 0.066667 | 0.063492 | 0.069841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228111 | 0.155642 | 514 | 18 | 85 | 28.555556 | 0.497696 | 0 | 0 | 0 | 0 | 0 | 0.023392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3619a50651036f7039f527783938bb7dc59cd573 | 170,470 | py | Python | tests/examples/minlplib/hydroenergy3.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/hydroenergy3.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/hydroenergy3.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # MINLP written by GAMS Convert at 04/21/18 13:52:24
#
# Equation counts
# Total E G L N X C B
# 1499 337 504 658 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 40.271675 | 120 | 0.631789 | 31,225 | 170,470 | 3.449191 | 0.087142 | 0.034726 | 0.093592 | 0.12479 | 0.67589 | 0.507349 | 0.441389 | 0.435595 | 0.435595 | 0.169488 | 0 | 0.283294 | 0.156338 | 170,470 | 4,232 | 121 | 40.281191 | 0.465571 | 0.003989 | 0 | 0.053117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000369 | 0 | 0.000369 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3624aafbb44ffd3022418fc8737275138ee2c23a | 205 | py | Python | examples/tutorials/07_hello.py | strakam/PyEasyGraphics | 57a586aa92385d26725d4ec3d61b2bbbe970195d | [
"BSD-3-Clause"
] | 5 | 2019-09-23T05:15:47.000Z | 2021-01-17T08:06:47.000Z | examples/tutorials/07_hello.py | strakam/PyEasyGraphics | 57a586aa92385d26725d4ec3d61b2bbbe970195d | [
"BSD-3-Clause"
] | 3 | 2019-05-03T05:25:17.000Z | 2021-04-15T04:53:16.000Z | examples/tutorials/07_hello.py | strakam/PyEasyGraphics | 57a586aa92385d26725d4ec3d61b2bbbe970195d | [
"BSD-3-Clause"
] | 4 | 2019-05-04T13:42:40.000Z | 2021-04-15T10:38:48.000Z | """
Draw text
"""
from easygraphics import *
def main():
init_graph(400, 50)
draw_text(50, 30, "There", "are", 5, "dogs", "under", "the", "tree", ".")
pause()
close_graph()
easy_run(main) | 17.083333 | 77 | 0.57561 | 28 | 205 | 4.071429 | 0.821429 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06135 | 0.204878 | 205 | 12 | 78 | 17.083333 | 0.638037 | 0.043902 | 0 | 0 | 0 | 0 | 0.132275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
362e6d5ca07cb0057b0319cfe45f02c072ea9f4f | 6,789 | py | Python | das_decennial/programs/schema/attributes/rel.py | p-b-j/uscb-das-container-public | 7f7ba44055da15d13b191180249e656e1bd398c6 | [
"MIT"
] | 1 | 2021-11-13T01:35:31.000Z | 2021-11-13T01:35:31.000Z | das_decennial/programs/schema/attributes/rel.py | p-b-j/uscb-das-container-public | 7f7ba44055da15d13b191180249e656e1bd398c6 | [
"MIT"
] | 1 | 2021-10-30T00:48:45.000Z | 2021-11-01T23:33:46.000Z | das_decennial/programs/schema/attributes/rel.py | p-b-j/uscb-das-container-public | 7f7ba44055da15d13b191180249e656e1bd398c6 | [
"MIT"
] | null | null | null | from programs.schema.attributes.abstractattribute import AbstractAttribute
from constants import CC
class RelAttr(AbstractAttribute):
@staticmethod
def getName():
return CC.ATTR_REL
@staticmethod
def getLevels():
return {
"Householder" ... | 74.604396 | 130 | 0.300633 | 372 | 6,789 | 5.473118 | 0.615591 | 0.044204 | 0.013261 | 0.027505 | 0.030452 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073482 | 0.631168 | 6,789 | 91 | 131 | 74.604396 | 0.739617 | 0.0109 | 0 | 0.148148 | 0 | 0 | 0.234768 | 0.003873 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.074074 | false | 0 | 0.024691 | 0.024691 | 0.185185 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3633006060c98808f87a0ba4a1abbc787b7282f7 | 1,188 | py | Python | contacts_import/views.py | haganf/django-contacts-import | f84249cc9a1af4b0f04eb38a9c5ade0f509d2491 | [
"BSD-3-Clause"
] | 14 | 2015-03-03T00:10:04.000Z | 2020-12-29T06:08:11.000Z | contacts_import/views.py | haganf/django-contacts-import | f84249cc9a1af4b0f04eb38a9c5ade0f509d2491 | [
"BSD-3-Clause"
] | 1 | 2015-01-13T10:24:36.000Z | 2015-01-13T10:24:36.000Z | contacts_import/views.py | haganf/django-contacts-import | f84249cc9a1af4b0f04eb38a9c5ade0f509d2491 | [
"BSD-3-Clause"
] | 8 | 2015-01-12T09:48:33.000Z | 2021-12-03T06:22:19.000Z | from django.http import HttpResponse, Http404
from django.shortcuts import redirect
from django.views.generic.base import TemplateView
from django.views.generic.edit import FormView
from contacts_import.conf import settings
class ImportBeginView(TemplateView):
template_name = "contacts_import/import_begin.h... | 28.97561 | 80 | 0.680976 | 134 | 1,188 | 5.88806 | 0.358209 | 0.057034 | 0.038023 | 0.055767 | 0.081115 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006557 | 0.229798 | 1,188 | 40 | 81 | 29.7 | 0.855738 | 0 | 0 | 0 | 0 | 0 | 0.073232 | 0.057239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.571429 | 0.035714 | 1.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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
364fa7259a76d5a6ce7e865d92753f9dfeb7e481 | 992 | py | Python | model.py | D10221/pyglet_gui_x | 18df5ff714c156d29fc1ebc19d81c4c16051084d | [
"Unlicense"
] | null | null | null | model.py | D10221/pyglet_gui_x | 18df5ff714c156d29fc1ebc19d81c4c16051084d | [
"Unlicense"
] | null | null | null | model.py | D10221/pyglet_gui_x | 18df5ff714c156d29fc1ebc19d81c4c16051084d | [
"Unlicense"
] | null | null | null | from model_base import ModelBase
class Model(ModelBase):
# ...
def __init__(self):
super().__init__()
self._title = 'hello'
self._message = 'Try (SHIFT+)TAB and ENTER?'
@property
def title(self):
return self._title
@title.setter
def title(self, value: str):
... | 21.106383 | 54 | 0.556452 | 112 | 992 | 4.732143 | 0.348214 | 0.084906 | 0.045283 | 0.05283 | 0.067925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.326613 | 992 | 46 | 55 | 21.565217 | 0.793413 | 0.003024 | 0 | 0.176471 | 0 | 0 | 0.045685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0.058824 | 0.029412 | 0.058824 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3654d72554a3351c4dd1c57e4ab8841632f55708 | 263 | py | Python | addons/generic_request/models/__init__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/generic_request/models/__init__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/generic_request/models/__init__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | 1 | 2021-05-05T07:59:08.000Z | 2021-05-05T07:59:08.000Z | from . import (
request_request,
request_category,
request_stage,
request_stage_type,
request_stage_route,
request_type,
request_event,
request_event_type,
res_partner,
res_users,
res_config_settings,
res_company
)
| 17.533333 | 24 | 0.69962 | 30 | 263 | 5.6 | 0.466667 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247148 | 263 | 14 | 25 | 18.785714 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
365c69933d0da75bce68c8f35f4ef2eddead2c00 | 324 | py | Python | 01-create-db.py | sb-olr/Crypto-data-ETL-backtest-Pipeline-project | c3956f027d88e2a006308bcedcb220267fac524b | [
"Apache-2.0"
] | 1 | 2021-11-10T11:28:04.000Z | 2021-11-10T11:28:04.000Z | 01-create-db.py | sb-olr/Crypto-data-ETL-backtest-Pipeline-project | c3956f027d88e2a006308bcedcb220267fac524b | [
"Apache-2.0"
] | null | null | null | 01-create-db.py | sb-olr/Crypto-data-ETL-backtest-Pipeline-project | c3956f027d88e2a006308bcedcb220267fac524b | [
"Apache-2.0"
] | 1 | 2021-07-27T03:29:39.000Z | 2021-07-27T03:29:39.000Z | #!/usr/bin/env python3
# Usage: ./01-create-db.py
import my_db_utils
from config import CONFIG
# db_name = ':memory:' # to make a in memory db
db_name = CONFIG['data_dir']+CONFIG['db_file']
table_name = CONFIG['table_name']
table_fields = CONFIG['table_fields']
my_db_utils.create_table(db_name, table_name, table_fiel... | 27 | 59 | 0.753086 | 55 | 324 | 4.145455 | 0.454545 | 0.078947 | 0.078947 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.111111 | 324 | 11 | 60 | 29.454545 | 0.78125 | 0.280864 | 0 | 0 | 0 | 0 | 0.161572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
365e4ec9b37d7e8fcad8da0155cb776f0a12f12f | 10,183 | py | Python | glance_store/tests/unit/test_rbd_store.py | cpallares/glance_store | ec025eb9e5502d9111b32dc5360a4bd5d9aff8eb | [
"Apache-2.0"
] | null | null | null | glance_store/tests/unit/test_rbd_store.py | cpallares/glance_store | ec025eb9e5502d9111b32dc5360a4bd5d9aff8eb | [
"Apache-2.0"
] | null | null | null | glance_store/tests/unit/test_rbd_store.py | cpallares/glance_store | ec025eb9e5502d9111b32dc5360a4bd5d9aff8eb | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 33.277778 | 78 | 0.612 | 1,133 | 10,183 | 5.230362 | 0.17564 | 0.064124 | 0.066149 | 0.045562 | 0.535268 | 0.469288 | 0.379177 | 0.354539 | 0.30459 | 0.269828 | 0 | 0.002075 | 0.29019 | 10,183 | 305 | 79 | 33.386885 | 0.817792 | 0.075223 | 0 | 0.404878 | 0 | 0 | 0.049191 | 0 | 0 | 0 | 0 | 0 | 0.058537 | 1 | 0.268293 | false | 0.092683 | 0.039024 | 0.039024 | 0.404878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
366ee923e6ba30400262e3aaae07f6a24f032de2 | 2,207 | py | Python | haystack_cloudsearch/cloudsearch_utils.py | ericpauley/haystack-cloudsearch | 36aba4b73d79ac1949358390ba09bac928f57de3 | [
"Apache-2.0"
] | 1 | 2016-08-26T11:56:27.000Z | 2016-08-26T11:56:27.000Z | haystack_cloudsearch/cloudsearch_utils.py | ericpauley/haystack-cloudsearch | 36aba4b73d79ac1949358390ba09bac928f57de3 | [
"Apache-2.0"
] | null | null | null | haystack_cloudsearch/cloudsearch_utils.py | ericpauley/haystack-cloudsearch | 36aba4b73d79ac1949358390ba09bac928f57de3 | [
"Apache-2.0"
] | null | null | null |
import time
from haystack.constants import ID, DJANGO_CT, DJANGO_ID
### Useful For Querying
def get_backend(index_instance, using=None):
""" given an index, return the backend, by default using the default connection """
using = using or 'default'
return index_instance._get_backend(using=using)
def get... | 32.455882 | 121 | 0.719982 | 314 | 2,207 | 4.878981 | 0.353503 | 0.02611 | 0.013055 | 0.020888 | 0.036554 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003291 | 0.173992 | 2,207 | 68 | 122 | 32.455882 | 0.837082 | 0.382873 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0 | 0.074074 | 0 | 0.814815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
367626257eec71f67ee3f6650590e07ab4a6d174 | 307 | py | Python | 6_kyu/Character_with_longest_consecutive_repetition.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | 6_kyu/Character_with_longest_consecutive_repetition.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | 6_kyu/Character_with_longest_consecutive_repetition.py | UlrichBerntien/Codewars-Katas | bbd025e67aa352d313564d3862db19fffa39f552 | [
"MIT"
] | null | null | null | from itertools import groupby
from typing import Tuple
def longest_repetition(chars: str) -> Tuple[str,int]:
"Character with longest consecutive repetition"
if not (chars and type(chars) is str):
return ('',0)
return max(((c,len(list(g))) for c,g in groupby(chars)), key=lambda x: x[1]) | 38.375 | 80 | 0.687296 | 48 | 307 | 4.375 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0.18241 | 307 | 8 | 80 | 38.375 | 0.828685 | 0.14658 | 0 | 0 | 0 | 0 | 0.146104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3676d5b4ef2732752cf656f3dedf68b489af0e50 | 1,769 | py | Python | {{cookiecutter.project_slug}}/app/auth/auth.py | elben10/cookiecutter-dash-full-stack | 548a2a900e028566fe294ad992954c46bcbed1ad | [
"MIT"
] | 4 | 2021-01-29T14:04:47.000Z | 2021-05-12T10:58:32.000Z | {{cookiecutter.project_slug}}/app/auth/auth.py | elben10/cookiecutter-dash-full-stack | 548a2a900e028566fe294ad992954c46bcbed1ad | [
"MIT"
] | 9 | 2021-01-29T13:53:47.000Z | 2021-02-25T14:28:33.000Z | {{cookiecutter.project_slug}}/app/auth/auth.py | elben10/cookiecutter-dash-full-stack | 548a2a900e028566fe294ad992954c46bcbed1ad | [
"MIT"
] | 1 | 2022-01-12T18:26:15.000Z | 2022-01-12T18:26:15.000Z | from __future__ import absolute_import
from abc import ABCMeta, abstractmethod
from six import add_metaclass, iteritems
@add_metaclass(ABCMeta)
class Auth(object):
def __init__(
self, app, authorization_hook=None, _overwrite_index=True, protect_assets=False
):
self.app = app
self._in... | 30.5 | 88 | 0.656868 | 210 | 1,769 | 5.161905 | 0.319048 | 0.066421 | 0.059963 | 0.078413 | 0.284133 | 0.236162 | 0.236162 | 0.167897 | 0.167897 | 0.083026 | 0 | 0 | 0.270774 | 1,769 | 57 | 89 | 31.035088 | 0.84031 | 0.036744 | 0 | 0.227273 | 0 | 0 | 0.037015 | 0.025852 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.181818 | false | 0.090909 | 0.068182 | 0 | 0.295455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
367e677dd99bc51ea52f754a3a1f0c898189a99c | 1,936 | py | Python | ShipGen.py | BobMak/SpaceShooter | e31f240de27de291b543993c3bc7e50f350dfce6 | [
"MIT"
] | 1 | 2018-05-29T11:02:39.000Z | 2018-05-29T11:02:39.000Z | ShipGen.py | BobMak/SpaceShooter | e31f240de27de291b543993c3bc7e50f350dfce6 | [
"MIT"
] | 10 | 2018-05-31T14:36:46.000Z | 2020-09-26T03:12:17.000Z | ShipGen.py | BobMak/SpaceShooter | e31f240de27de291b543993c3bc7e50f350dfce6 | [
"MIT"
] | 3 | 2018-05-25T13:57:32.000Z | 2019-12-03T07:26:11.000Z | """
using trained pytorch DRAW implementation by
https://github.com/Natsu6767/Generating-Devanagari-Using-DRAW
to generate ships
"""
import pygame.surfarray
import torch
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import torchvision.utils as vutils
import time
from draw_... | 30.25 | 81 | 0.662707 | 278 | 1,936 | 4.521583 | 0.410072 | 0.02864 | 0.023866 | 0.027049 | 0.025457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020639 | 0.224174 | 1,936 | 64 | 82 | 30.25 | 0.816245 | 0.294938 | 0 | 0 | 1 | 0 | 0.044676 | 0.018615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.30303 | 0 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3683d0a80705a891173a9a015a5fd16dc1adc675 | 372 | py | Python | app/stance/views/stance_api_view.py | TennaGraph/TennaGraph | 002998d94300ee67168f1a8164c0e6bc86836e1f | [
"Apache-2.0"
] | 7 | 2018-11-13T17:39:15.000Z | 2019-03-27T04:55:24.000Z | app/stance/views/stance_api_view.py | TennaGraph/TennaGraph | 002998d94300ee67168f1a8164c0e6bc86836e1f | [
"Apache-2.0"
] | 72 | 2018-11-09T14:20:25.000Z | 2020-06-05T19:28:19.000Z | app/stance/views/stance_api_view.py | TennaGraph/TennaGraph | 002998d94300ee67168f1a8164c0e6bc86836e1f | [
"Apache-2.0"
] | 3 | 2018-11-19T19:10:39.000Z | 2019-08-23T20:52:23.000Z | # Pip imports
from rest_framework import generics
from rest_framework import permissions
# App imports
from ..serializers import StanceSerializer
from ..models import Stance
class StanceAPIView(generics.RetrieveAPIView):
lookup_field = 'pk'
permission_classes = [permissions.AllowAny]
serializer_class = ... | 24.8 | 47 | 0.790323 | 40 | 372 | 7.225 | 0.65 | 0.076125 | 0.117647 | 0.15917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147849 | 372 | 15 | 48 | 24.8 | 0.911672 | 0.061828 | 0 | 0 | 0 | 0 | 0.005764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
36862fbdc5629b8a354f91ed063e06d6bc8e8096 | 506 | py | Python | scripts/util.py | samnooij/metameta | 3a3c203e6398caf040e3f5ab901469a8656cae3a | [
"MIT"
] | 24 | 2017-05-17T10:14:28.000Z | 2021-09-16T00:57:12.000Z | scripts/util.py | samnooij/metameta | 3a3c203e6398caf040e3f5ab901469a8656cae3a | [
"MIT"
] | 16 | 2017-08-31T11:40:35.000Z | 2020-04-16T07:22:10.000Z | scripts/util.py | samnooij/metameta | 3a3c203e6398caf040e3f5ab901469a8656cae3a | [
"MIT"
] | 12 | 2017-09-25T05:10:15.000Z | 2021-02-08T07:17:46.000Z | # Manual download instead of using snakemake remote function because we snakemake checks for updates on the remote files
def download(link,output):
cmd = "curl -L -o " + output + " " + link
return(cmd)
def has_custom_db(tool):
import os
return True if os.path.isfile(workflow.basedir + "/tools/"+tool+"_db_custom.sm... | 42.166667 | 121 | 0.701581 | 70 | 506 | 5.014286 | 0.7 | 0.079772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 506 | 12 | 122 | 42.166667 | 0.818182 | 0.233202 | 0 | 0 | 0 | 0 | 0.108808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3694fb9ae9a4ac325092ebabf845833694e3b52b | 1,681 | py | Python | pylibui/controls/tab.py | superzazu/pylibui | 2e74db787bfea533f3ae465670963daedcaec344 | [
"MIT"
] | 222 | 2016-05-20T19:12:05.000Z | 2022-03-09T14:59:48.000Z | pylibui/controls/tab.py | superzazu/pylibui | 2e74db787bfea533f3ae465670963daedcaec344 | [
"MIT"
] | 66 | 2016-05-29T00:11:53.000Z | 2018-10-14T20:01:38.000Z | pylibui/controls/tab.py | superzazu/pylibui | 2e74db787bfea533f3ae465670963daedcaec344 | [
"MIT"
] | 32 | 2016-06-03T07:08:29.000Z | 2021-05-12T07:41:41.000Z | """
Python wrapper for libui.
"""
from pylibui import libui
from .control import Control
class Tab(Control):
def __init__(self):
"""
Creates a new tab.
"""
super().__init__()
self.control = libui.uiNewTab()
def append(self, name, control):
"""
Appen... | 22.118421 | 74 | 0.555622 | 182 | 1,681 | 5.087912 | 0.324176 | 0.083153 | 0.064795 | 0.032397 | 0.272138 | 0.272138 | 0.161987 | 0.097192 | 0.097192 | 0.097192 | 0 | 0 | 0.339084 | 1,681 | 75 | 75 | 22.413333 | 0.833483 | 0.33492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
36a3a1f8913f074db25b33556bcf57f43267c8e1 | 311 | py | Python | boa3_test/test_sc/relational_test/TupleIdentity.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/relational_test/TupleIdentity.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/relational_test/TupleIdentity.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from typing import Tuple
from boa3.builtin import public
@public
def with_attribution() -> bool:
a: Tuple[int, int, int] = (1, 2, 3)
b = a
return a is b
@public
def without_attribution() -> bool:
a: Tuple[int, int, int] = (1, 2, 3)
b: Tuple[int, int, int] = (1, 2, 3)
return a is b
| 17.277778 | 39 | 0.594855 | 53 | 311 | 3.45283 | 0.377358 | 0.196721 | 0.180328 | 0.229508 | 0.464481 | 0.464481 | 0.464481 | 0.371585 | 0.371585 | 0.371585 | 0 | 0.043668 | 0.263666 | 311 | 17 | 40 | 18.294118 | 0.755459 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
36b62636e75332b163cb53be74da4f5ff29e715b | 400 | py | Python | Chapter03/0308.py | 0201shj/Python-OpenCV | 249f8cc9404e547da0f5c68000f29f2e598562a5 | [
"MIT"
] | null | null | null | Chapter03/0308.py | 0201shj/Python-OpenCV | 249f8cc9404e547da0f5c68000f29f2e598562a5 | [
"MIT"
] | null | null | null | Chapter03/0308.py | 0201shj/Python-OpenCV | 249f8cc9404e547da0f5c68000f29f2e598562a5 | [
"MIT"
] | null | null | null | # 0308.py
import cv2
import numpy as np
img = np.zeros(shape = (512, 512, 3), dtype = np.uint8) + 255
pts1 = np.array([[100, 100], [200, 100], [200, 200], [100, 200]])
pts2 = np.array([[300, 200], [400, 100], [400, 200]])
cv2.fillConvexPoly(img, pts1, color = (255, 0, 0))
cv2.fillPoly(img, [pts2], color ... | 25 | 66 | 0.595 | 63 | 400 | 3.777778 | 0.460317 | 0.07563 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236923 | 0.1875 | 400 | 16 | 67 | 25 | 0.495385 | 0.0175 | 0 | 0 | 0 | 0 | 0.007958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
36c73adf4e9d828e138761d7e0fae7d5c1fea042 | 404 | py | Python | satchless/image/views.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | satchless/image/views.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | satchless/image/views.py | bartels/satchless | 4d333014333dc4fd5815f9e0bbea565959919a30 | [
"BSD-4-Clause"
] | null | null | null | from django.http import HttpResponseNotFound
from django.shortcuts import get_object_or_404, redirect
from . import IMAGE_SIZES
from . import models
def thumbnail(request, image_id, size):
image = get_object_or_404(models.Image, id=image_id)
if not size in IMAGE_SIZES:
return HttpResponseNotFound()
... | 28.857143 | 83 | 0.784653 | 58 | 404 | 5.224138 | 0.448276 | 0.092409 | 0.072607 | 0.092409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.14604 | 404 | 13 | 84 | 31.076923 | 0.86087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.