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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a7f46cf43674d4d170047a5ff27d8ae59d82dfe8 | 11,418 | py | Python | seatable_api/column.py | schattian/seatable-api-python | 88f4edfdf9d3a21ba07f81f89841c82cb1003867 | [
"Apache-2.0"
] | 12 | 2020-02-17T06:25:51.000Z | 2022-02-16T00:53:34.000Z | seatable_api/column.py | schattian/seatable-api-python | 88f4edfdf9d3a21ba07f81f89841c82cb1003867 | [
"Apache-2.0"
] | 5 | 2020-04-17T00:08:57.000Z | 2022-02-14T03:06:37.000Z | seatable_api/column.py | schattian/seatable-api-python | 88f4edfdf9d3a21ba07f81f89841c82cb1003867 | [
"Apache-2.0"
] | 2 | 2020-11-08T03:51:45.000Z | 2021-07-28T21:41:57.000Z | from datetime import datetime
from .constants import ColumnTypes
# Set the null list to distinguish the pure none and the number 0 or 0.00, which is
# a critical real value in number type column.
NULL_LIST = ['', [], None]
# Column Value related classes handle the compare computation of the table data
class ColumnV... | 33 | 110 | 0.618322 | 1,435 | 11,418 | 4.72892 | 0.139373 | 0.067787 | 0.051577 | 0.030946 | 0.529767 | 0.455497 | 0.37209 | 0.342028 | 0.268199 | 0.231948 | 0 | 0.005357 | 0.28061 | 11,418 | 345 | 111 | 33.095652 | 0.820794 | 0.141619 | 0 | 0.394619 | 0 | 0 | 0.128165 | 0.002687 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2287 | false | 0 | 0.008969 | 0.085202 | 0.502242 | 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 |
c506351c89c7815a62e5210f438aaf12ac9e917f | 818 | py | Python | onepercentclub/tests/factory_models/donation_factories.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 7 | 2015-01-02T19:31:14.000Z | 2021-03-22T17:30:23.000Z | onepercentclub/tests/factory_models/donation_factories.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 1 | 2015-03-06T08:34:59.000Z | 2015-03-06T08:34:59.000Z | onepercentclub/tests/factory_models/donation_factories.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | null | null | null | import datetime
import factory
import uuid
from apps.fund.models import Donation, Order
from bluebottle.test.factory_models.accounts import BlueBottleUserFactory
from onepercentclub.tests.factory_models.project_factories import OnePercentProjectFactory
def random_order_number(length=30):
return unicode(uuid.uuid... | 28.206897 | 90 | 0.799511 | 86 | 818 | 7.488372 | 0.5 | 0.10559 | 0.052795 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008415 | 0.128362 | 818 | 28 | 91 | 29.214286 | 0.894811 | 0 | 0 | 0.105263 | 0 | 0 | 0.008557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 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 |
c50833c81890691513f42fcaff209f4f4c6f6e45 | 806 | py | Python | 1401-1500/1476-Subrectangle Queries/1476-Subrectangle Queries.py | jiadaizhao/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 1401-1500/1476-Subrectangle Queries/1476-Subrectangle Queries.py | ptx-c/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 1401-1500/1476-Subrectangle Queries/1476-Subrectangle Queries.py | ptx-c/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class SubrectangleQueries:
def __init__(self, rectangle: List[List[int]]):
self.rec = rectangle
self.newRec = []
def updateSubrectangle(self, row1: int, col1: int, row2: int, col2: int, newValue: int) -> None:
self.newRec.append((row1, col1, row2, col2, newValue))
def get... | 36.636364 | 111 | 0.630273 | 110 | 806 | 4.572727 | 0.4 | 0.159046 | 0.109344 | 0.063618 | 0.095427 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033439 | 0.220844 | 806 | 21 | 112 | 38.380952 | 0.767516 | 0.240695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c509835c8e33786e2a925e5b62761d5a1a35504f | 906 | py | Python | tests/nnapi/specs/Ex/transpose_conv_ex_float_1.mod.py | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | tests/nnapi/specs/Ex/transpose_conv_ex_float_1.mod.py | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | tests/nnapi/specs/Ex/transpose_conv_ex_float_1.mod.py | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | # model
model = Model()
i0 = Input("op_shape", "TENSOR_INT32", "{4}")
weights = Parameter("ker", "TENSOR_FLOAT32", "{1, 3, 3, 1}", [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0])
i1 = Input("in", "TENSOR_FLOAT32", "{1, 4, 4, 1}" )
pad = Int32Scalar("pad_same", 1)
s_x = Int32Scalar("stride_x", 1)
s_y = Int32Scalar("strid... | 31.241379 | 107 | 0.540839 | 179 | 906 | 2.659218 | 0.368715 | 0.063025 | 0.088235 | 0.02521 | 0.147059 | 0.147059 | 0.07563 | 0.07563 | 0.07563 | 0.07563 | 0 | 0.238231 | 0.226269 | 906 | 28 | 108 | 32.357143 | 0.440799 | 0.098234 | 0 | 0 | 0 | 0 | 0.183951 | 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 | 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 |
c50c68651679a6bd5e446872cdfb9cd058e615dd | 155 | gyp | Python | binding.gyp | fbzhong/node-cityhash | 02779df9cbba0b4a4e497b5fec7f3ede3fb1a82b | [
"MIT"
] | 7 | 2015-01-17T21:31:25.000Z | 2018-07-25T03:39:00.000Z | binding.gyp | fbzhong/node-cityhash | 02779df9cbba0b4a4e497b5fec7f3ede3fb1a82b | [
"MIT"
] | 1 | 2015-03-18T12:01:14.000Z | 2015-07-11T00:12:24.000Z | binding.gyp | fbzhong/node-cityhash | 02779df9cbba0b4a4e497b5fec7f3ede3fb1a82b | [
"MIT"
] | null | null | null | {
"targets": [
{
"target_name": "cityhash",
"include_dirs": ["cityhash/"],
"sources": [
"binding.cc",
"cityhash/city.cc"
]
}
]
}
| 11.923077 | 33 | 0.490323 | 13 | 155 | 5.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270968 | 155 | 12 | 34 | 12.916667 | 0.654867 | 0 | 0 | 0 | 0 | 0 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c50fe5e6a33dc365a3d47b98a5fc1e145b2ed060 | 1,712 | py | Python | src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 47.555556 | 94 | 0.774533 | 143 | 1,712 | 8.916084 | 0.48951 | 0.141176 | 0.197647 | 0.048627 | 0.103529 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000647 | 0.097547 | 1,712 | 35 | 95 | 48.914286 | 0.824595 | 0.264019 | 0 | 0 | 0 | 0 | 0.22524 | 0.141374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c51100c4c6a42bf8a351c1b718e7554ab96e6d93 | 456 | py | Python | sparrow_cloud/apps/permission_command/views.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 15 | 2019-09-24T09:32:32.000Z | 2021-12-30T08:07:41.000Z | sparrow_cloud/apps/permission_command/views.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 13 | 2019-09-06T03:20:02.000Z | 2021-09-27T03:37:25.000Z | sparrow_cloud/apps/permission_command/views.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 17 | 2019-09-02T06:31:05.000Z | 2021-10-08T04:23:23.000Z | # from django.shortcuts import render
# from .models import CacheTest
# import uuid
# from rest_framework.response import Response
# from rest_framework.decorators import api_view
# @api_view(('GET',))
# def cachetest_detail(request, *args, **kwargs):
# cache_test_obj = CacheTest.objects.create(id=uuid.uuid4().hex... | 41.454545 | 89 | 0.763158 | 64 | 456 | 5.203125 | 0.5 | 0.108108 | 0.144144 | 0.078078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.118421 | 456 | 11 | 90 | 41.454545 | 0.818408 | 0.953947 | 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 |
c51df5e2ff2576d76ca7db48d3a3dc40352eeb00 | 1,848 | py | Python | examples/examples.py | YashaPushak/PCS | fbd8f5daffbfeabae2fbb57582efdfe1ee356d12 | [
"BSD-3-Clause"
] | 1 | 2020-07-03T20:57:31.000Z | 2020-07-03T20:57:31.000Z | examples/examples.py | YashaPushak/PCS | fbd8f5daffbfeabae2fbb57582efdfe1ee356d12 | [
"BSD-3-Clause"
] | null | null | null | examples/examples.py | YashaPushak/PCS | fbd8f5daffbfeabae2fbb57582efdfe1ee356d12 | [
"BSD-3-Clause"
] | null | null | null | mport PCS
pcs = PCS.PCS('params-lkh.pcs')
with open('params-lkh-copy.pcs','w') as f_out:
f_out.write(pcs.printDocument())
pcs2 = PCS.PCS('params-cplex.pcs')
with open('params-cplex-copy.pcs','w') as f_out:
f_out.write(pcs2.printDocument())
print('\n' + '*'*50)
print("ASCENT_CANDIDATES is not a child, so i... | 34.222222 | 185 | 0.674784 | 283 | 1,848 | 4.35689 | 0.342756 | 0.089213 | 0.103812 | 0.06326 | 0.404704 | 0.404704 | 0.269262 | 0.207624 | 0.207624 | 0.170316 | 0 | 0.008838 | 0.142857 | 1,848 | 53 | 186 | 34.867925 | 0.769571 | 0 | 0 | 0.512821 | 0 | 0.076923 | 0.5579 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0 | null | null | 0.615385 | 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 |
c5205ec8f0691ab5bda61356520560e88899a11f | 1,007 | py | Python | tools/evaluators/manual/convertManualToSspd.py | lee4138/6d-pose-estimation-with-ml-in-ar | e29162c82c867d4a8177322d7d49a55c5fd90639 | [
"MIT"
] | 7 | 2020-02-04T10:58:58.000Z | 2021-11-26T07:37:22.000Z | tools/evaluators/manual/convertManualToSspd.py | buaafw/6d-pose-estimation-with-ml-in-ar | e29162c82c867d4a8177322d7d49a55c5fd90639 | [
"MIT"
] | 1 | 2021-02-19T03:56:10.000Z | 2021-02-19T03:56:10.000Z | tools/evaluators/manual/convertManualToSspd.py | buaafw/6d-pose-estimation-with-ml-in-ar | e29162c82c867d4a8177322d7d49a55c5fd90639 | [
"MIT"
] | 8 | 2019-12-05T10:05:36.000Z | 2021-01-27T14:09:53.000Z | import glob, os, sys
import json
def createLabelContent():
print('creating labels and deleting pics where the obj is partly outside of frame')
with open('annotation-results.6dan.json', 'r') as json_file:
data = json.load(json_file)
for lbl in data:
p = lbl['sspd']
f = open(os.path.join('./manual... | 27.216216 | 238 | 0.574975 | 169 | 1,007 | 3.331361 | 0.526627 | 0.134991 | 0.191829 | 0.241563 | 0.071048 | 0.071048 | 0.071048 | 0.071048 | 0.071048 | 0.071048 | 0 | 0.068127 | 0.183714 | 1,007 | 36 | 239 | 27.972222 | 0.616788 | 0 | 0 | 0 | 0 | 0.05 | 0.321649 | 0.058763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0.1 | 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 |
c52b7b6972f93364e690513fc42455cacd033ce6 | 66 | py | Python | Python/Pandas/loop_Enumerate.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | Python/Pandas/loop_Enumerate.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | Python/Pandas/loop_Enumerate.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | a=[1,2]
for i,s in enumerate(a):
print(i,"index contains",s)
| 13.2 | 31 | 0.606061 | 14 | 66 | 2.857143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.181818 | 66 | 4 | 32 | 16.5 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c52f8a825fdff107b80df517b0c8cbcd36efc940 | 587 | py | Python | marshmallow_extended/fields/__init__.py | blackacornlabs/marshmallow_extended | 0cda702d65c850044ff58f00f4eb29d2969077d0 | [
"MIT"
] | null | null | null | marshmallow_extended/fields/__init__.py | blackacornlabs/marshmallow_extended | 0cda702d65c850044ff58f00f4eb29d2969077d0 | [
"MIT"
] | null | null | null | marshmallow_extended/fields/__init__.py | blackacornlabs/marshmallow_extended | 0cda702d65c850044ff58f00f4eb29d2969077d0 | [
"MIT"
] | null | null | null | from marshmallow.fields import *
from .instance import Instance
from .active import Active
from .email import Email
from .enum import Enum
from .icontains import IContains
__all__ = ["Field", "Raw", "Nested", "Mapping", "Dict", "List", "Tuple", "String", "UUID", "Number", "Integer",
"Decimal", "Boolean", "... | 45.153846 | 116 | 0.621806 | 63 | 587 | 5.730159 | 0.650794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.168654 | 587 | 12 | 117 | 48.916667 | 0.735656 | 0 | 0 | 0 | 0 | 0 | 0.369676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c54b2b855c6381c8c99e4ea956aaf818eb19d87b | 1,311 | py | Python | stinkin/lincoln/migrations/0002_auto_20170423_0241.py | NewsNerdsAtCoJMC/ProjectTicoTeam7 | 904ce0d74b986a64e8bedf31c499b6f57bb65863 | [
"MIT"
] | null | null | null | stinkin/lincoln/migrations/0002_auto_20170423_0241.py | NewsNerdsAtCoJMC/ProjectTicoTeam7 | 904ce0d74b986a64e8bedf31c499b6f57bb65863 | [
"MIT"
] | null | null | null | stinkin/lincoln/migrations/0002_auto_20170423_0241.py | NewsNerdsAtCoJMC/ProjectTicoTeam7 | 904ce0d74b986a64e8bedf31c499b6f57bb65863 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-04-23 02:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lincoln', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | 28.5 | 86 | 0.562929 | 128 | 1,311 | 5.617188 | 0.4375 | 0.075104 | 0.133519 | 0.166898 | 0.415855 | 0.415855 | 0.363004 | 0.363004 | 0.363004 | 0.363004 | 0 | 0.040134 | 0.315789 | 1,311 | 45 | 87 | 29.133333 | 0.761427 | 0.051869 | 0 | 0.5 | 1 | 0 | 0.079032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 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 |
c54d4c49862c023ffd167a4d8366ac0eb65e49d4 | 55,338 | py | Python | app/extensions/providers/openstack.py | subhransusekhar/cloud-core | 6b7ccd971a20bb8ee193d35edfcdc8a45753aea1 | [
"MIT"
] | null | null | null | app/extensions/providers/openstack.py | subhransusekhar/cloud-core | 6b7ccd971a20bb8ee193d35edfcdc8a45753aea1 | [
"MIT"
] | null | null | null | app/extensions/providers/openstack.py | subhransusekhar/cloud-core | 6b7ccd971a20bb8ee193d35edfcdc8a45753aea1 | [
"MIT"
] | null | null | null | # encoding: utf-8
# pylint: disable=no-self-use
"""
OpenStack provider setup.
"""
from datetime import datetime, timedelta
import functools
import logging
import openstack
import openstack.cloud
import types
from shade import *
from novaclient import client
from retrying import retry
from flask_login import current_u... | 43.988871 | 344 | 0.552279 | 5,845 | 55,338 | 4.940462 | 0.06296 | 0.040759 | 0.037088 | 0.047789 | 0.740105 | 0.712228 | 0.69706 | 0.688437 | 0.677425 | 0.664924 | 0 | 0.00863 | 0.348784 | 55,338 | 1,258 | 345 | 43.988871 | 0.792685 | 0.043569 | 0 | 0.544883 | 0 | 0 | 0.107817 | 0.004182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059246 | false | 0.003591 | 0.016158 | 0 | 0.143627 | 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 |
c5614b26e2324c0e86999962d294a88858250f77 | 2,557 | py | Python | tests/test_Project_1.py | yaraki0912/Project_1 | 48735c9a50cacd554134692525ebe5380b8050a1 | [
"MIT"
] | null | null | null | tests/test_Project_1.py | yaraki0912/Project_1 | 48735c9a50cacd554134692525ebe5380b8050a1 | [
"MIT"
] | null | null | null | tests/test_Project_1.py | yaraki0912/Project_1 | 48735c9a50cacd554134692525ebe5380b8050a1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `Project_1` package."""
import pytest
import matplotlib
matplotlib.use('Agg')
import matplotlib
import matplotlib.pyplot as plt
from click.testing import CliRunner
import Project_1
from Project_1 import Project_1
import io
import os
import numpy as np
import ... | 33.207792 | 212 | 0.636293 | 381 | 2,557 | 4.131234 | 0.351706 | 0.076239 | 0.015248 | 0.015248 | 0.064803 | 0.057814 | 0.053367 | 0 | 0 | 0 | 0 | 0.073626 | 0.224482 | 2,557 | 76 | 213 | 33.644737 | 0.720121 | 0.192022 | 0 | 0.086957 | 0 | 0 | 0.096259 | 0.010474 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.195652 | false | 0.043478 | 0.304348 | 0 | 0.521739 | 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 |
c5635fb41704495873b21d611a121d605a50fe4d | 1,267 | py | Python | example/myshop/modifiers.py | taime/django-shop | 19e2ebd5f7da584fbf2e8bab8984b41e11979fc2 | [
"BSD-3-Clause"
] | 39 | 2015-02-21T00:45:02.000Z | 2020-05-18T14:46:09.000Z | example/myshop/modifiers.py | taime/django-shop | 19e2ebd5f7da584fbf2e8bab8984b41e11979fc2 | [
"BSD-3-Clause"
] | 46 | 2015-02-03T19:51:37.000Z | 2017-03-24T23:40:14.000Z | example/myshop/modifiers.py | taime/django-shop | 19e2ebd5f7da584fbf2e8bab8984b41e11979fc2 | [
"BSD-3-Clause"
] | 23 | 2015-04-12T09:03:41.000Z | 2020-04-14T16:38:35.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from shop.modifiers.pool import cart_modifiers_pool
from shop.serializers.cart import ExtraCartRow
from shop.modifiers.base import ShippingModifier
from shop.money import Money
from shop.shipping.defa... | 33.342105 | 94 | 0.74191 | 142 | 1,267 | 6.43662 | 0.478873 | 0.052516 | 0.037199 | 0.035011 | 0.078775 | 0.078775 | 0.078775 | 0 | 0 | 0 | 0 | 0.003813 | 0.17206 | 1,267 | 37 | 95 | 34.243243 | 0.867493 | 0.035517 | 0 | 0.076923 | 0 | 0 | 0.079573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.307692 | 0.076923 | 0.807692 | 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 |
c568c205a8ce1b170f7e97b87d3d4fde9b7e94b8 | 127 | py | Python | ExPython/CursoemVideo/ex049.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | 1 | 2020-10-06T00:27:05.000Z | 2020-10-06T00:27:05.000Z | ExPython/CursoemVideo/ex049.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | null | null | null | ExPython/CursoemVideo/ex049.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | null | null | null | n = int(input('digite um númeoro para saber a sua tabuada:'))
for c in range(0,11):
print('{} X {} = {}'.format(c, n, c*n)) | 42.333333 | 61 | 0.582677 | 24 | 127 | 3.083333 | 0.833333 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.188976 | 127 | 3 | 62 | 42.333333 | 0.68932 | 0 | 0 | 0 | 0 | 0 | 0.429688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c56c12970e4328b452c3cf25db0c202a99dfe082 | 1,219 | py | Python | fixture/soap.py | softester-git/Mantis_training | d530d19691abde9289be1a9e311a5da1af7db9b2 | [
"Apache-2.0"
] | null | null | null | fixture/soap.py | softester-git/Mantis_training | d530d19691abde9289be1a9e311a5da1af7db9b2 | [
"Apache-2.0"
] | null | null | null | fixture/soap.py | softester-git/Mantis_training | d530d19691abde9289be1a9e311a5da1af7db9b2 | [
"Apache-2.0"
] | null | null | null | from suds.client import Client
from suds import WebFault
class SoapHelper:
def __init__(self, app):
self.app = app
def can_login(self, username, password):
client = Client("http://localhost/mantisbt-2.25.2/api/soap/mantisconnect.php?wsdl")
try:
client.service.mc_login(use... | 38.09375 | 133 | 0.66694 | 155 | 1,219 | 5.070968 | 0.283871 | 0.142494 | 0.076336 | 0.09542 | 0.665394 | 0.665394 | 0.665394 | 0.665394 | 0.665394 | 0.665394 | 0 | 0.013889 | 0.232158 | 1,219 | 32 | 134 | 38.09375 | 0.825855 | 0 | 0 | 0.461538 | 0 | 0.115385 | 0.157377 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0.269231 | 0.076923 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c5719b0e9ca81ac756c21d3b74ca3e5db098628a | 179 | py | Python | 23/aoc23-2-cython.py | combs/AdventOfCode2021 | 925df8a3526cb9c0dde368cf828673f345096e06 | [
"MIT"
] | null | null | null | 23/aoc23-2-cython.py | combs/AdventOfCode2021 | 925df8a3526cb9c0dde368cf828673f345096e06 | [
"MIT"
] | null | null | null | 23/aoc23-2-cython.py | combs/AdventOfCode2021 | 925df8a3526cb9c0dde368cf828673f345096e06 | [
"MIT"
] | null | null | null | import pyximport
pyximport.install()
from aoc23 import do_it
with open("data2.txt", "r") as fh:
board = fh.readlines()
board = [i.rstrip() for i in board]
do_it(board)
| 16.272727 | 39 | 0.675978 | 29 | 179 | 4.103448 | 0.689655 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.189944 | 179 | 10 | 40 | 17.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.055866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3d6fde2f287173dab623112960f79ee1605f2dbf | 129 | py | Python | July 29/mult.py | rithulkamesh/python-comp | 0d3fe963d0713b60857240491da68ff7d8320d1a | [
"MIT"
] | 1 | 2021-08-21T15:31:48.000Z | 2021-08-21T15:31:48.000Z | July 29/mult.py | rithulkamesh/python-comp | 0d3fe963d0713b60857240491da68ff7d8320d1a | [
"MIT"
] | null | null | null | July 29/mult.py | rithulkamesh/python-comp | 0d3fe963d0713b60857240491da68ff7d8320d1a | [
"MIT"
] | null | null | null | n = int(input('Enter A Number:'))
count = 1
for i in range(count, 11, 1):
print (f'{n} * {count} = {n*count}')
count +=1 | 21.5 | 40 | 0.542636 | 23 | 129 | 3.043478 | 0.652174 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050505 | 0.232558 | 129 | 6 | 41 | 21.5 | 0.656566 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
3d7075335bc8271a7a0c5b44c4fab9ff51f46086 | 966 | py | Python | tests/test__requests.py | LCBRU/lbrc_flask | f5f6c3f3832a9040e941c6398b7f150e567d4762 | [
"MIT"
] | null | null | null | tests/test__requests.py | LCBRU/lbrc_flask | f5f6c3f3832a9040e941c6398b7f150e567d4762 | [
"MIT"
] | null | null | null | tests/test__requests.py | LCBRU/lbrc_flask | f5f6c3f3832a9040e941c6398b7f150e567d4762 | [
"MIT"
] | null | null | null | import datetime
from flask import url_for
from lbrc_flask.pytest.helpers import login
def test__get_value_from_all_arguments__get(client, faker):
login(client, faker)
field_name = 'hello'
value = 'jim'
resp = client.get(url_for('json_requests', field_name=field_name, hello=value))
... | 26.108108 | 103 | 0.684265 | 131 | 966 | 4.679389 | 0.251908 | 0.161501 | 0.04894 | 0.073409 | 0.721044 | 0.721044 | 0.721044 | 0.49429 | 0.435563 | 0.435563 | 0 | 0 | 0.201863 | 966 | 36 | 104 | 26.833333 | 0.795071 | 0 | 0 | 0.285714 | 0 | 0 | 0.090323 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
3d79dcad0220655860ef0571df31b8ad0c8de0de | 838 | py | Python | diventi/products/migrations/0014_auto_20190120_1049.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 2 | 2019-06-27T16:00:17.000Z | 2020-08-14T07:46:05.000Z | diventi/products/migrations/0014_auto_20190120_1049.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 26 | 2020-02-15T22:39:35.000Z | 2022-02-19T21:09:01.000Z | diventi/products/migrations/0014_auto_20190120_1049.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 1 | 2021-11-12T22:30:15.000Z | 2021-11-12T22:30:15.000Z | # Generated by Django 2.0.8 on 2019-01-20 09:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0013_auto_20180902_1533'),
]
operations = [
migrations.AddField(
model_name='product',
name='abstract',
... | 28.896552 | 99 | 0.600239 | 89 | 838 | 5.494382 | 0.47191 | 0.147239 | 0.141104 | 0.165644 | 0.683027 | 0.683027 | 0.683027 | 0.588957 | 0.505112 | 0.505112 | 0 | 0.066116 | 0.278043 | 838 | 28 | 100 | 29.928571 | 0.742149 | 0.053699 | 0 | 0.5 | 1 | 0 | 0.134008 | 0.029077 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
3d919e67a42dec57530dda633e97dbb2ec4e98ae | 773 | py | Python | mplhep/alice.py | fmazzasc/mplhep | 73da70d8941a5853097e67c2502c9558554b88b0 | [
"MIT"
] | null | null | null | mplhep/alice.py | fmazzasc/mplhep | 73da70d8941a5853097e67c2502c9558554b88b0 | [
"MIT"
] | null | null | null | mplhep/alice.py | fmazzasc/mplhep | 73da70d8941a5853097e67c2502c9558554b88b0 | [
"MIT"
] | null | null | null | # Log styles
from . import styles_alice as style
from . import label as label_base
from .label import lumitext
import mplhep._deprecate as deprecate
from matplotlib import docstring
__all__ = [style, lumitext]
# Experiment wrappers, full names made private
def _alice_text(text="", **kwargs):
return label_base._... | 23.424242 | 83 | 0.711514 | 105 | 773 | 4.980952 | 0.333333 | 0.086042 | 0.091778 | 0.080306 | 0.325048 | 0.23327 | 0.114723 | 0 | 0 | 0 | 0 | 0.009259 | 0.161708 | 773 | 32 | 84 | 24.15625 | 0.79784 | 0.071151 | 0 | 0 | 0 | 0 | 0.013986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.25 | 0.2 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3da7ac70c48523175247c77a2bb496db304c71f3 | 249 | py | Python | models/Models.py | keldkemp/TelegramBotHSE | e1db85a60f404c0a3990b21a3e08fefcb8e451ff | [
"MIT"
] | null | null | null | models/Models.py | keldkemp/TelegramBotHSE | e1db85a60f404c0a3990b21a3e08fefcb8e451ff | [
"MIT"
] | null | null | null | models/Models.py | keldkemp/TelegramBotHSE | e1db85a60f404c0a3990b21a3e08fefcb8e451ff | [
"MIT"
] | null | null | null | """
Представление данных.
"""
class Pars:
def __init__(self, date, lesson, group, time, teacher):
self.date_lesson = date
self.lesson = lesson
self.group = group
self.time = time
self.teacher = teacher
| 17.785714 | 59 | 0.594378 | 28 | 249 | 5.107143 | 0.428571 | 0.111888 | 0.195804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301205 | 249 | 13 | 60 | 19.153846 | 0.821839 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3dc3ceeaac18ade26d3b4aa4faf2775a50b455f2 | 1,912 | py | Python | packages/sklearn/_bak/pre/svm getset test/nodes/svm getset test___GetParams0/svm getset test___GetParams0___METACODE.py | frecklebars/Ryven | 86a8c06effc47897d0b8fbbd1fa8580a957f9515 | [
"MIT"
] | 18 | 2021-01-18T09:52:41.000Z | 2022-03-22T10:48:44.000Z | packages/sklearn/base/nodes/base___GetParams0/base___GetParams0___METACODE.py | frecklebars/Ryven | 86a8c06effc47897d0b8fbbd1fa8580a957f9515 | [
"MIT"
] | null | null | null | packages/sklearn/base/nodes/base___GetParams0/base___GetParams0___METACODE.py | frecklebars/Ryven | 86a8c06effc47897d0b8fbbd1fa8580a957f9515 | [
"MIT"
] | 3 | 2021-01-18T09:49:42.000Z | 2022-03-22T10:48:47.000Z | from NIENV import *
# API METHODS --------------
# self.main_widget
# self.update_shape()
# Ports
# self.input(index)
# self.set_output_val(index, val)
# self.exec_output(index)
# self.create_new_input(type_, label, widget_name=None, widget_pos='under', pos=-1)
# self.delete_input(index)
# self.create_new_output(t... | 26.929577 | 93 | 0.582113 | 249 | 1,912 | 4.253012 | 0.305221 | 0.028329 | 0.061379 | 0.075543 | 0.21152 | 0.188857 | 0.117092 | 0.056657 | 0 | 0 | 0 | 0.00924 | 0.264121 | 1,912 | 70 | 94 | 27.314286 | 0.743426 | 0.312762 | 0 | 0.111111 | 0 | 0 | 0.036321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.027778 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3dc9e5423cc2b23261c777b886d4353ec7e70dac | 358 | py | Python | firstApp/models.py | dppeykov/Dj_RAC | 02a38bc7f2b5609c198df48a1f2e2f436f6c3142 | [
"Apache-2.0"
] | null | null | null | firstApp/models.py | dppeykov/Dj_RAC | 02a38bc7f2b5609c198df48a1f2e2f436f6c3142 | [
"Apache-2.0"
] | null | null | null | firstApp/models.py | dppeykov/Dj_RAC | 02a38bc7f2b5609c198df48a1f2e2f436f6c3142 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class Employee(models.Model):
id = models.IntegerField(primary_key=True)
name = models.CharField(max_length=20)
sal = models.DecimalField(max_digits=10, decimal_places=3)
def __str__(self):
return f'Employee object with ID: {self.id}, Nam... | 35.8 | 94 | 0.717877 | 52 | 358 | 4.788462 | 0.711538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016722 | 0.164804 | 358 | 10 | 94 | 35.8 | 0.816054 | 0.067039 | 0 | 0 | 0 | 0.142857 | 0.228228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3dd3d7a42465fb67818ae696db1885b8cf5e0f1a | 286 | py | Python | basic/12_exception.py | onezens/python | 73cdc22901a006751338d0145b6e120e55fdf80f | [
"MIT"
] | null | null | null | basic/12_exception.py | onezens/python | 73cdc22901a006751338d0145b6e120e55fdf80f | [
"MIT"
] | null | null | null | basic/12_exception.py | onezens/python | 73cdc22901a006751338d0145b6e120e55fdf80f | [
"MIT"
] | null | null | null | #!/usr/bin/python
#encoding=utf8
#通用异常信息处理方式
try: #可能发生异常的代码
open('123.txt', 'r')
except Exception, e: #发生异常后执行
print(e)
else: #没有发生异常之后执行
pass
finally: #不管有没有发生异常都会执行
pass
#指定异常信息处理
try:
print(a)
except (IOError, NameError), errorMsg:
print("error message: %s" %errorMsg)
| 13.619048 | 38 | 0.702797 | 37 | 286 | 5.432432 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.146853 | 286 | 20 | 39 | 14.3 | 0.807377 | 0.300699 | 0 | 0.333333 | 0 | 0 | 0.130208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.166667 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3dd71a393abec42cf8db0ccf8ecdd3416344692d | 10,894 | py | Python | tests/utils/postprocess/test_math.py | ToucanToco/toucan-data-sdk | 1d82b7112231b65f8a310327b6d6673d137b7378 | [
"BSD-3-Clause"
] | 9 | 2017-12-21T23:09:10.000Z | 2020-08-20T13:53:24.000Z | tests/utils/postprocess/test_math.py | ToucanToco/toucan-data-sdk | 1d82b7112231b65f8a310327b6d6673d137b7378 | [
"BSD-3-Clause"
] | 144 | 2017-11-24T17:23:02.000Z | 2022-03-28T02:34:15.000Z | tests/utils/postprocess/test_math.py | ToucanToco/toucan-data-sdk | 1d82b7112231b65f8a310327b6d6673d137b7378 | [
"BSD-3-Clause"
] | 5 | 2018-03-07T13:22:01.000Z | 2021-05-31T11:53:07.000Z | from functools import partial
import pandas as pd
import pytest
from toucan_data_sdk.utils.postprocess import (
absolute_values,
add,
divide,
formula,
multiply,
round_values,
subtract,
)
from toucan_data_sdk.utils.postprocess.math import (
DEPRECATED_COLUMN_QUOTE_CHARS,
LOGGER,
... | 34.257862 | 106 | 0.561961 | 1,499 | 10,894 | 3.927952 | 0.102735 | 0.05197 | 0.059103 | 0.088655 | 0.80231 | 0.753567 | 0.680876 | 0.610564 | 0.578974 | 0.544667 | 0 | 0.044599 | 0.219938 | 10,894 | 317 | 107 | 34.365931 | 0.64827 | 0.033229 | 0 | 0.356846 | 0 | 0.004149 | 0.214639 | 0.004474 | 0 | 0 | 0 | 0 | 0.307054 | 1 | 0.045643 | false | 0 | 0.037344 | 0 | 0.082988 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3dd9f4cf24cdf3e2771e6f75cfb2c3b7949f743a | 845 | py | Python | app/readers/exceptions.py | capralifecycle/office-games-client | a600e0ed90d14a5b4f50b4aa43ece53dd7a3ba2b | [
"MIT"
] | null | null | null | app/readers/exceptions.py | capralifecycle/office-games-client | a600e0ed90d14a5b4f50b4aa43ece53dd7a3ba2b | [
"MIT"
] | 5 | 2017-07-11T08:54:20.000Z | 2017-08-02T15:02:38.000Z | app/readers/exceptions.py | kotlarz/office-games-client | a600e0ed90d14a5b4f50b4aa43ece53dd7a3ba2b | [
"MIT"
] | null | null | null | def format_reader_port_message(message, reader_port, error):
return f'{message} with {reader_port}. Error: {error}'
def format_reader_message(message, vendor_id, product_id, serial_number):
return f'{message} with ' \
f'vendor_id={vendor_id}, ' \
f'product_id={product_id} and ' \
... | 35.208333 | 95 | 0.694675 | 102 | 845 | 5.313725 | 0.284314 | 0.110701 | 0.110701 | 0.094096 | 0.160517 | 0.160517 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20355 | 845 | 23 | 96 | 36.73913 | 0.805349 | 0 | 0 | 0 | 0 | 0 | 0.220118 | 0.087574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.117647 | 0.470588 | 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 |
3ddc0b61ba34a2544cccc8866069cd5b68e8f6b8 | 2,548 | py | Python | record.py | a276me/iris | 7c5732c454b33761fb1b3821a2409c9e148b82ca | [
"MIT"
] | 1 | 2020-10-17T02:25:39.000Z | 2020-10-17T02:25:39.000Z | record.py | a276me/iris | 7c5732c454b33761fb1b3821a2409c9e148b82ca | [
"MIT"
] | null | null | null | record.py | a276me/iris | 7c5732c454b33761fb1b3821a2409c9e148b82ca | [
"MIT"
] | null | null | null |
from scipy.io import wavfile
import sounddevice as sd
# import speech_recognition as sr
import os
from pyaudio import PyAudio, paInt16, paFloat32
from scipy.io.wavfile import *
from random import randint
import time
import wave
import base64
import matplotlib.pyplot as plt
import soundfile as sf
# print(o)
#
# exit... | 22.548673 | 75 | 0.644819 | 349 | 2,548 | 4.644699 | 0.378224 | 0.014806 | 0.013572 | 0.017273 | 0.022209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036639 | 0.196625 | 2,548 | 113 | 76 | 22.548673 | 0.755252 | 0.740581 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.647059 | 0 | 0.647059 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3ddf351dd36622541d72db9a1c91a65cbea1448a | 260 | py | Python | backend/src/classifier/classifier.py | orchardpark/freman | 6362f680135e91359acae37cd1c2824d917c449e | [
"MIT"
] | 1 | 2020-09-21T19:23:44.000Z | 2020-09-21T19:23:44.000Z | backend/src/classifier/classifier.py | orchardpark/freman | 6362f680135e91359acae37cd1c2824d917c449e | [
"MIT"
] | 1 | 2022-02-13T21:57:09.000Z | 2022-02-13T21:57:09.000Z | backend/src/classifier/classifier.py | orchardpark/freman | 6362f680135e91359acae37cd1c2824d917c449e | [
"MIT"
] | null | null | null | import abc
from enum import Enum
class Classes(Enum):
PRODUCTIVE_HIGH = 1
PRODUCTIVE_LOW = 2
UNPRODUCTIVE = 3
UNKNOWN = 4
class Classifier(metaclass=abc.ABCMeta):
@abc.abstractmethod
def classify(application: str, window_title: str) -> Classes:
pass
| 18.571429 | 62 | 0.757692 | 35 | 260 | 5.542857 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.157692 | 260 | 13 | 63 | 20 | 0.86758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
3de7e8356f912e8f30b0f7b2e4e44e302b3ffa2a | 197 | py | Python | shenmeGUI/bindings.py | tigerjang/ShenMeGUI | 55f30a2525a946b7b40fb3f17538b1f4f18c9fcc | [
"MIT"
] | 1 | 2016-09-22T03:12:38.000Z | 2016-09-22T03:12:38.000Z | shenmeGUI/bindings.py | tigerjang/ShenMeGUI | 55f30a2525a946b7b40fb3f17538b1f4f18c9fcc | [
"MIT"
] | null | null | null | shenmeGUI/bindings.py | tigerjang/ShenMeGUI | 55f30a2525a946b7b40fb3f17538b1f4f18c9fcc | [
"MIT"
] | null | null | null |
class BindingTypes:
JSFunction = 1
JSObject = 2
class Binding(object):
def __init__(self, type, src, dest):
self.type = type
self.src = src
self.dest = dest
| 15.153846 | 40 | 0.583756 | 24 | 197 | 4.625 | 0.583333 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.324873 | 197 | 12 | 41 | 16.416667 | 0.819549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 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 |
3de9c9032c2c61b000cbfeea2842a293f15c1b18 | 2,133 | py | Python | jupyterhub_config.py | MathHubInfo/JupyterHub-Deployment | 97b2b09acb448565b6dd4b4f748112d493d4fc1d | [
"BSD-3-Clause"
] | 1 | 2018-05-21T09:11:53.000Z | 2018-05-21T09:11:53.000Z | jupyterhub_config.py | MathHubInfo/JupyterHub-Deployment | 97b2b09acb448565b6dd4b4f748112d493d4fc1d | [
"BSD-3-Clause"
] | null | null | null | jupyterhub_config.py | MathHubInfo/JupyterHub-Deployment | 97b2b09acb448565b6dd4b4f748112d493d4fc1d | [
"BSD-3-Clause"
] | null | null | null | # adapted from original JupyterHub_config.py file
# which is Copyright (c) Jupyter Development Team, see LICENSE
import os
from dockerspawner import DockerSpawner
c = get_config()
# use our custom spawnwer dor jupyterhub config
class MathHubSpawner(DockerSpawner):
def __init__(self, *args, **kwargs):
sup... | 39.5 | 99 | 0.773558 | 282 | 2,133 | 5.64539 | 0.421986 | 0.096734 | 0.030151 | 0.022613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003166 | 0.11158 | 2,133 | 54 | 100 | 39.5 | 0.836939 | 0.245663 | 0 | 0 | 0 | 0 | 0.257358 | 0.132749 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.033333 | false | 0.066667 | 0.066667 | 0 | 0.133333 | 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 |
3df271c5b9b5347047880890099f198e3a87a2c0 | 6,158 | py | Python | CareerSuggestionGUI.py | akshaynagpal/career_path_suggestion | beb7543b1dc50c85c4c4325c64fa94e7c78441db | [
"MIT"
] | 3 | 2019-06-18T15:20:49.000Z | 2020-02-12T22:42:16.000Z | CareerSuggestionGUI.py | akshaynagpal/career_path_suggestion | beb7543b1dc50c85c4c4325c64fa94e7c78441db | [
"MIT"
] | null | null | null | CareerSuggestionGUI.py | akshaynagpal/career_path_suggestion | beb7543b1dc50c85c4c4325c64fa94e7c78441db | [
"MIT"
] | 3 | 2015-12-20T15:16:04.000Z | 2020-02-04T14:26:51.000Z | from Tkinter import *
import tkMessageBox
from numpy import array
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
import csv
cd_list = []
# opening csv file
with open("C:\/Users\/advance\/Documents\/GitHub\/career_path_prediction\/Career_data.csv",'rb') as csvfile:
filereader = csv.reader(csvfile,deli... | 37.779141 | 108 | 0.552939 | 767 | 6,158 | 4.279009 | 0.198175 | 0.101463 | 0.097502 | 0.121572 | 0.627057 | 0.627057 | 0.627057 | 0.627057 | 0.627057 | 0.604509 | 0 | 0.023377 | 0.312277 | 6,158 | 162 | 109 | 38.012346 | 0.751594 | 0.038324 | 0 | 0.57037 | 0 | 0 | 0.118334 | 0.013205 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044444 | null | null | 0.02963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9a7d40a6e7a87ae7532c3f46a8b83ebc55d78ad5 | 1,172 | py | Python | archive_for_wyko/Pyro-3.6/examples/BankExample/BankServer.py | ArcetriAdaptiveOptics/plico_interferometer_server | e14e240229c802333b2aa5bf6458a079dc950bd2 | [
"MIT"
] | null | null | null | archive_for_wyko/Pyro-3.6/examples/BankExample/BankServer.py | ArcetriAdaptiveOptics/plico_interferometer_server | e14e240229c802333b2aa5bf6458a079dc950bd2 | [
"MIT"
] | 3 | 2022-01-16T01:05:01.000Z | 2022-02-23T14:05:28.000Z | archive_for_wyko/Pyro-3.6/examples/BankExample/BankServer.py | ArcetriAdaptiveOptics/plico_interferometer_server | e14e240229c802333b2aa5bf6458a079dc950bd2 | [
"MIT"
] | 1 | 2022-01-14T14:04:07.000Z | 2022-01-14T14:04:07.000Z | #! /usr/bin/env python
#
# The banks server
#
import sys
import Pyro.naming
import Pyro.core
from Pyro.errors import PyroError,NamingError
import banks
group = ':banks1' # the namespace group for all test servers
# avoid network port trouble with the VSB bank server
Pyro.config.PYRO_PORT=Pyro.config.PYRO_PORT+1
... | 20.561404 | 69 | 0.773038 | 163 | 1,172 | 5.533742 | 0.484663 | 0.044346 | 0.046563 | 0.039911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007805 | 0.125427 | 1,172 | 56 | 70 | 20.928571 | 0.872195 | 0.325939 | 0 | 0.193548 | 0 | 0 | 0.110682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.064516 | 0.16129 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9a7f05900f0430e5acaf7895c4f780124c880692 | 526 | py | Python | tests/test_util.py | csommelet/raw_tiles | d4d8b246e2e8fe44203aad1f5421e479cd05a30c | [
"MIT"
] | 11 | 2016-10-06T19:52:12.000Z | 2021-03-03T21:12:00.000Z | tests/test_util.py | csommelet/raw_tiles | d4d8b246e2e8fe44203aad1f5421e479cd05a30c | [
"MIT"
] | 12 | 2017-10-03T14:41:28.000Z | 2019-03-04T10:21:20.000Z | tests/test_util.py | csommelet/raw_tiles | d4d8b246e2e8fe44203aad1f5421e479cd05a30c | [
"MIT"
] | 5 | 2017-10-10T16:58:51.000Z | 2020-03-18T15:57:51.000Z | import unittest
class UtilTest(unittest.TestCase):
def test_bbox_for_tile(self):
from raw_tiles.util import bbox_for_tile, MERCATOR_WORLD_SIZE
c = 0.5 * MERCATOR_WORLD_SIZE
self.assertEquals((-c, -c, c, c), bbox_for_tile(0, 0, 0))
self.assertEquals((-c, 0, 0, c), bbox_for_tile(1,... | 37.571429 | 69 | 0.617871 | 89 | 526 | 3.426966 | 0.258427 | 0.160656 | 0.252459 | 0.157377 | 0.35082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061275 | 0.224335 | 526 | 13 | 70 | 40.461538 | 0.686275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9a9875c46cd5e494bd3cf38a5639b591f6afea28 | 1,056 | py | Python | database/database.py | ethanlindley/lego.py | 88223a0e6a2d31365df86f35297fccc1642f28f2 | [
"MIT"
] | 4 | 2019-01-17T09:43:44.000Z | 2021-11-21T21:03:06.000Z | database/database.py | ethanlindley/lego.py | 88223a0e6a2d31365df86f35297fccc1642f28f2 | [
"MIT"
] | 2 | 2018-06-08T21:56:49.000Z | 2018-06-11T22:50:51.000Z | database/database.py | ethanlindley/lego.py | 88223a0e6a2d31365df86f35297fccc1642f28f2 | [
"MIT"
] | null | null | null | import os
from mongoengine import *
from .account import Account
class Database(object):
def __init__(self, salt):
if not os.path.exists('./resources/data'):
os.makedirs('./resources/data/db')
connect('lego-py', host='localhost', port=27017) # TODO - setup config for server/db specif... | 32 | 112 | 0.624053 | 125 | 1,056 | 5.176 | 0.536 | 0.055641 | 0.046368 | 0.07728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.278409 | 1,056 | 32 | 113 | 33 | 0.841207 | 0.188447 | 0 | 0.083333 | 0 | 0 | 0.059859 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.125 | false | 0.083333 | 0.125 | 0 | 0.291667 | 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 |
9a9f0e3d8bf5630794ada5355920a751db5d724c | 555 | py | Python | myenv/lib/python3.7/site-packages/autocorrect/constants.py | theCydonian/AudioEyes | 3dece4529b31e6c63771c4358457962999bda3b4 | [
"MIT"
] | 3 | 2020-07-18T19:45:24.000Z | 2021-05-11T05:40:38.000Z | myenv/lib/python3.7/site-packages/autocorrect/constants.py | theCydonian/AudioEyes | 3dece4529b31e6c63771c4358457962999bda3b4 | [
"MIT"
] | 2 | 2020-05-28T19:32:07.000Z | 2020-05-29T21:24:12.000Z | myenv/lib/python3.7/site-packages/autocorrect/constants.py | theCydonian/AudioEyes | 3dece4529b31e6c63771c4358457962999bda3b4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
word_regexes = {
'en': r'[A-Za-z]+',
'pl': r'[A-Za-zęóąśłżźćń]+',
'ru': r'[АаБбВвГгДдЕеЁёЖжЗзИиЙйКкЛлМмНнОоПпРрСсТтУуФфХхЦцЧчШшЩщЪъЫыЬьЭэЮюЯя]+',
'uk': r'[АаБбВвГ㥴ДдЕеЄєЖжЗзИиІіЇїЙйКкЛлМмНнОоПпРрСсТтУуФфХхЦцЧчШшЩщЬЮюЯя]+',
'tr': r'[a-zA-ZçÇğĞüÜöÖşŞıİ]+',
}
alphabets = {
... | 30.833333 | 83 | 0.691892 | 40 | 555 | 9.625 | 0.65 | 0.015584 | 0.031169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002083 | 0.135135 | 555 | 17 | 84 | 32.647059 | 0.795833 | 0.037838 | 0 | 0 | 0 | 0 | 0.693609 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ac361a8d08e06ac9f7caba87d56e73ae53edf3d | 1,080 | py | Python | OracleInternetDirectory/dockerfiles/12.2.1.4.0/container-scripts/start_oid_component.py | rmohare/oracle-product-images | a5b0fc823de9258a0d0d63aed5837abb46b17cf3 | [
"UPL-1.0"
] | 5,519 | 2015-01-23T15:07:05.000Z | 2022-03-31T12:12:19.000Z | OracleInternetDirectory/dockerfiles/12.2.1.4.0/container-scripts/start_oid_component.py | rmohare/oracle-product-images | a5b0fc823de9258a0d0d63aed5837abb46b17cf3 | [
"UPL-1.0"
] | 1,492 | 2015-01-26T05:31:35.000Z | 2022-03-31T21:16:34.000Z | OracleInternetDirectory/dockerfiles/12.2.1.4.0/container-scripts/start_oid_component.py | rmohare/oracle-product-images | a5b0fc823de9258a0d0d63aed5837abb46b17cf3 | [
"UPL-1.0"
] | 5,850 | 2015-01-22T01:40:51.000Z | 2022-03-31T12:12:19.000Z | #!/usr/bin/python
#
# Copyright (c) 2021, Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
# Author: Pratyush Dash
#
import os, sys, re
domain_name = os.environ.get("DOMAIN_NAME", "oid_domain")
oracle_home = os.environ.get("ORACL... | 30 | 104 | 0.642593 | 148 | 1,080 | 4.635135 | 0.527027 | 0.081633 | 0.081633 | 0.039359 | 0.08309 | 0.08309 | 0.067055 | 0.067055 | 0.067055 | 0.067055 | 0 | 0.020955 | 0.20463 | 1,080 | 35 | 105 | 30.857143 | 0.777648 | 0.176852 | 0 | 0.192308 | 0 | 0 | 0.189557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.115385 | 0.038462 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9adab9bd6820230e6c5c0f4daba4c72f869b4e43 | 1,545 | py | Python | venv/Lib/site-packages/factom/exceptions.py | TRGG3R/Visual_FCT_Explorer | 3fc2cf00109afa5f407de6c0d6e3de6cb7285a78 | [
"MIT"
] | 13 | 2019-08-12T16:32:56.000Z | 2022-02-23T17:16:30.000Z | venv/Lib/site-packages/factom/exceptions.py | TRGG3R/Visual_FCT_Explorer | 3fc2cf00109afa5f407de6c0d6e3de6cb7285a78 | [
"MIT"
] | 6 | 2019-07-30T19:22:48.000Z | 2020-07-29T04:40:13.000Z | venv/Lib/site-packages/factom/exceptions.py | TRGG3R/Visual_FCT_Explorer | 3fc2cf00109afa5f407de6c0d6e3de6cb7285a78 | [
"MIT"
] | 5 | 2018-01-10T23:00:32.000Z | 2019-05-11T19:59:59.000Z | def handle_error_response(resp):
codes = {
-1: FactomAPIError,
-32008: BlockNotFound,
-32009: MissingChainHead,
-32010: ReceiptCreationError,
-32011: RepeatedCommit,
-32600: InvalidRequest,
-32601: MethodNotFound,
-32602: InvalidParams,
-32603:... | 19.807692 | 75 | 0.627184 | 147 | 1,545 | 6.52381 | 0.306122 | 0.168926 | 0.191867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042365 | 0.266667 | 1,545 | 77 | 76 | 20.064935 | 0.80406 | 0 | 0 | 0.169811 | 0 | 0 | 0.03301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.169811 | 0 | 0 | 0.358491 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9ae3340b7777692b1128ad81e441c0f1fe220c4e | 894 | py | Python | Leetcode-cn/292.nim-游戏.py | joey66666/Codeyard | 08fc599baf1d99e39f878386124af854006a3602 | [
"MIT"
] | null | null | null | Leetcode-cn/292.nim-游戏.py | joey66666/Codeyard | 08fc599baf1d99e39f878386124af854006a3602 | [
"MIT"
] | 3 | 2020-08-11T10:18:23.000Z | 2021-05-18T15:25:42.000Z | Leetcode-cn/292.nim-游戏.py | joey66666/Codeyard | 08fc599baf1d99e39f878386124af854006a3602 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=292 lang=python3
#
# [292] Nim 游戏
#
# https://leetcode-cn.com/problems/nim-game/description/
#
# algorithms
# Easy (69.62%)
# Likes: 501
# Dislikes: 0
# Total Accepted: 102.9K
# Total Submissions: 146K
# Testcase Example: '4'
#
# 你和你的朋友,两个人一起玩 Nim 游戏:
#
#
# 桌子上有一堆石头。
# 你们轮流进行自己的回合,你作... | 12.591549 | 76 | 0.580537 | 130 | 894 | 3.992308 | 0.653846 | 0.017341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066274 | 0.240492 | 894 | 70 | 77 | 12.771429 | 0.698085 | 0.758389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
9aeb9bc31f8cbc1a7c1b99c2e75cab82aae385b3 | 3,225 | py | Python | deep_disfluency/tagger/deep_tagger_module.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | deep_disfluency/tagger/deep_tagger_module.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | deep_disfluency/tagger/deep_tagger_module.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | from __future__ import division
from deep_tagger import DeepDisfluencyTagger
import fluteline
class DeepTaggerModule(fluteline.Consumer):
"""A fluteline incremental concurrent Consumer module which
consumes update increments as word dictionaries, e.g.:
{'id': 1,
'start_time': 0.44,
... | 37.5 | 74 | 0.554729 | 378 | 3,225 | 4.47619 | 0.320106 | 0.058511 | 0.069149 | 0.056738 | 0.149527 | 0.128251 | 0.101064 | 0.101064 | 0.057329 | 0.057329 | 0 | 0.01582 | 0.353178 | 3,225 | 85 | 75 | 37.941176 | 0.795302 | 0.071008 | 0 | 0 | 0 | 0 | 0.078899 | 0.026147 | 0 | 0 | 0 | 0.011765 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9aec415620ef5da69dc6031202c441f8cf899fd5 | 463 | py | Python | bot/plugins/bonk.py | Preocts/twitch-chat-bot | 50341c30d8eada4b50634c8f25a9eb0eed681735 | [
"MIT"
] | 62 | 2019-11-16T22:07:42.000Z | 2022-03-08T20:50:01.000Z | bot/plugins/bonk.py | Preocts/twitch-chat-bot | 50341c30d8eada4b50634c8f25a9eb0eed681735 | [
"MIT"
] | 30 | 2019-03-19T15:05:55.000Z | 2022-03-24T05:00:53.000Z | bot/plugins/bonk.py | Preocts/twitch-chat-bot | 50341c30d8eada4b50634c8f25a9eb0eed681735 | [
"MIT"
] | 56 | 2019-06-08T20:34:31.000Z | 2022-02-21T20:10:38.000Z | from __future__ import annotations
from typing import Match
from bot.config import Config
from bot.data import command
from bot.data import esc
from bot.data import format_msg
@command('!bonk')
async def cmd_bonk(config: Config, match: Match[str]) -> str:
_, _, rest = match['msg'].partition(' ')
rest = rest... | 24.368421 | 71 | 0.699784 | 64 | 463 | 4.90625 | 0.421875 | 0.089172 | 0.105096 | 0.16242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196544 | 463 | 18 | 72 | 25.722222 | 0.844086 | 0 | 0 | 0 | 0 | 0 | 0.172786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 |
9af215802a780a6c8f5fb06a303327884eb7f568 | 96 | py | Python | PythonCode/1002.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | PythonCode/1002.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | PythonCode/1002.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | #Questão: Area do circulo
raio = float(input())
area = (raio**2)* 3.14159
print("A=%0.4f" %area) | 24 | 25 | 0.645833 | 17 | 96 | 3.647059 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0.125 | 96 | 4 | 26 | 24 | 0.630952 | 0.25 | 0 | 0 | 0 | 0 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b1031d18e9c3a0212db3faa0a6d7e72ae5b96b48 | 2,236 | py | Python | model.py | android-energy/energy | 9dc7902c019bcd0318eb0589a944a6c108e28ffa | [
"Apache-2.0"
] | null | null | null | model.py | android-energy/energy | 9dc7902c019bcd0318eb0589a944a6c108e28ffa | [
"Apache-2.0"
] | null | null | null | model.py | android-energy/energy | 9dc7902c019bcd0318eb0589a944a6c108e28ffa | [
"Apache-2.0"
] | null | null | null | import threading
import time
import Queue
from collections import namedtuple
from threading import _Event
class ComponentModel(object):
def __init__(self):
# self._tick = 1.0 #seconds
self._running = False
self._queue = Queue.Queue()
self._thread = threading.Thread(target=self._... | 24.043011 | 72 | 0.587209 | 252 | 2,236 | 4.920635 | 0.269841 | 0.053226 | 0.051613 | 0.043548 | 0.158065 | 0.075806 | 0.075806 | 0.075806 | 0 | 0 | 0 | 0.001292 | 0.307692 | 2,236 | 92 | 73 | 24.304348 | 0.799742 | 0.055009 | 0 | 0.328125 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 0 | null | null | 0.03125 | 0.078125 | null | null | 0.03125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b116c246f4e0fbbcadbd084e76344f2be5240480 | 1,954 | py | Python | server/urls.py | eddowh/flask-react-gae-multiuser-blog | 7979567455936d32ba55c6edf0df82c4670754ef | [
"Unlicense"
] | 1 | 2016-10-25T10:12:58.000Z | 2016-10-25T10:12:58.000Z | server/urls.py | eddowh/flask-react-gae-multiuser-blog | 7979567455936d32ba55c6edf0df82c4670754ef | [
"Unlicense"
] | null | null | null | server/urls.py | eddowh/flask-react-gae-multiuser-blog | 7979567455936d32ba55c6edf0df82c4670754ef | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
from settings import ROOT_URL
import blogs.resources
import users.resources
def get_user_uri(username):
return ROOT_URL + users.resources.api.url_for(
users.resources.UserAPI, username=username
)
def get_user_blogpost_reaction_uri(username, post_id, reaction_id):
return... | 26.767123 | 67 | 0.739509 | 248 | 1,954 | 5.528226 | 0.153226 | 0.194019 | 0.094821 | 0.131291 | 0.673961 | 0.584974 | 0.514953 | 0.514953 | 0.514953 | 0.487236 | 0 | 0.000622 | 0.177584 | 1,954 | 72 | 68 | 27.138889 | 0.85252 | 0.010747 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.061224 | 0.204082 | 0.469388 | 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 |
b11d8d68f9eb3fa715a324818ea7fc35dcbae89d | 302 | py | Python | novice/02-05/latihan/Refactoring - Bowler/02-rename-method.py | fakihAlim/zimera | 69271dbcfe9d8f9b2ef72e6f6c8ce0ae4c57a9c9 | [
"MIT"
] | null | null | null | novice/02-05/latihan/Refactoring - Bowler/02-rename-method.py | fakihAlim/zimera | 69271dbcfe9d8f9b2ef72e6f6c8ce0ae4c57a9c9 | [
"MIT"
] | null | null | null | novice/02-05/latihan/Refactoring - Bowler/02-rename-method.py | fakihAlim/zimera | 69271dbcfe9d8f9b2ef72e6f6c8ce0ae4c57a9c9 | [
"MIT"
] | null | null | null | from bowler import Query
def main():
(
Query()
.select_function("run")
.in_class("FooClass")
.rename("increament")
.execute()
)
(
Query()
.select_method("run")
.is_call()
.rename("increment")
.execute()
) | 16.777778 | 31 | 0.463576 | 25 | 302 | 5.44 | 0.76 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.387417 | 302 | 18 | 32 | 16.777778 | 0.735135 | 0 | 0 | 0.25 | 0 | 0 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | true | 0 | 0.0625 | 0 | 0.125 | 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 |
b1232535f7634758bea45191fb04845bd76d2626 | 2,866 | py | Python | api/devjobhubapi/jobs/views.py | Mastersam07/devjobhub | b0e80352bd0ff6d6b89c12093cc13b3ceae309ea | [
"MIT"
] | null | null | null | api/devjobhubapi/jobs/views.py | Mastersam07/devjobhub | b0e80352bd0ff6d6b89c12093cc13b3ceae309ea | [
"MIT"
] | 4 | 2021-04-08T21:20:19.000Z | 2021-09-22T19:48:32.000Z | jobs/views.py | icvntechstudio/devjobapi | 8cc7cc31abe3a96c8fc3b54a579fb663d98bd237 | [
"PostgreSQL",
"MIT"
] | null | null | null | from rest_framework import viewsets
from rest_framework.generics import ListAPIView
from rest_framework.permissions import AllowAny
from rest_framework import status
from rest_framework.decorators import api_view, permission_classes
from rest_framework.generics import CreateAPIView, ListAPIView
from rest_framework.p... | 39.260274 | 116 | 0.758548 | 335 | 2,866 | 6.292537 | 0.265672 | 0.064042 | 0.064516 | 0.056926 | 0.322106 | 0.236717 | 0.09203 | 0.072581 | 0 | 0 | 0 | 0.001242 | 0.157013 | 2,866 | 73 | 117 | 39.260274 | 0.871275 | 0.076064 | 0 | 0.176471 | 0 | 0 | 0.026853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.313725 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b123560fd68f0ea1584a73e973e4c1c557bcb907 | 2,975 | py | Python | src/pyrin/security/permission/base.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/security/permission/base.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/security/permission/base.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
permission base module.
"""
from abc import abstractmethod
import pyrin.security.permission.services as permission_services
from pyrin.core.structs import CoreObject
from pyrin.core.exceptions import CoreNotImplementedError
class PermissionBase(CoreObject):
"""
permission base c... | 24.385246 | 82 | 0.621176 | 311 | 2,975 | 5.826367 | 0.356913 | 0.023179 | 0.024283 | 0.02649 | 0.392384 | 0.392384 | 0.392384 | 0.339404 | 0.294702 | 0.294702 | 0 | 0.000488 | 0.311261 | 2,975 | 121 | 83 | 24.586777 | 0.883846 | 0.518992 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.148148 | 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 |
b1306b487c4c982f243c9192328ea533bc9ec30f | 3,181 | py | Python | azure/functions/_http.py | DalavanCloud/azure-functions-python-worker | b39be55993e8595f9547c9709c8feb55c536e7a6 | [
"MIT"
] | 1 | 2018-11-28T22:31:27.000Z | 2018-11-28T22:31:27.000Z | azure/functions/_http.py | DalavanCloud/azure-functions-python-worker | b39be55993e8595f9547c9709c8feb55c536e7a6 | [
"MIT"
] | null | null | null | azure/functions/_http.py | DalavanCloud/azure-functions-python-worker | b39be55993e8595f9547c9709c8feb55c536e7a6 | [
"MIT"
] | null | null | null | import collections.abc
import types
import typing
from . import _abc
class BaseHeaders(collections.abc.Mapping):
def __init__(self, source: typing.Optional[typing.Mapping]=None) -> None:
self.__http_headers__: typing.Dict[str, str] = {}
if source is not None:
self.__http_headers__.u... | 24.282443 | 78 | 0.607042 | 364 | 3,181 | 4.914835 | 0.239011 | 0.061487 | 0.07043 | 0.030184 | 0.094466 | 0.055897 | 0.055897 | 0.055897 | 0.055897 | 0 | 0 | 0.001783 | 0.294876 | 3,181 | 130 | 79 | 24.469231 | 0.795809 | 0.01509 | 0 | 0.155556 | 0 | 0 | 0.032671 | 0.006726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.011111 | 0.044444 | 0.155556 | 0.477778 | 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 |
b1318a9d18736845e8eafff91be768c78df7c46f | 457 | py | Python | src/imports/http_parser/domain.py | brando90/isabelle-gym | f4d231cb9f625422e873aa2c9c2c6f22b7da4b27 | [
"MIT"
] | null | null | null | src/imports/http_parser/domain.py | brando90/isabelle-gym | f4d231cb9f625422e873aa2c9c2c6f22b7da4b27 | [
"MIT"
] | 1 | 2021-06-22T15:34:13.000Z | 2021-06-22T15:34:13.000Z | src/imports/http_parser/domain.py | brando90/isabelle-gym | f4d231cb9f625422e873aa2c9c2c6f22b7da4b27 | [
"MIT"
] | null | null | null | from urllib.parse import urlparse
class Domain:
def __init__(self, url):
self.url = url
self.domain = self.get_domain()
self.sub_domain = self.get_sub_domain()
def get_domain(self):
results = self.get_sub_domain().split('.')
try:
return results[-2] + '.' +... | 22.85 | 50 | 0.592998 | 56 | 457 | 4.607143 | 0.410714 | 0.193798 | 0.139535 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.295405 | 457 | 19 | 51 | 24.052632 | 0.795031 | 0 | 0 | 0 | 0 | 0 | 0.004376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 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 |
b14139c450fcb655a873febdecb67cf9893b0b17 | 480 | py | Python | bocadillo/__init__.py | sfermigier/bocadillo | c96842edf3657af2627cce0d8af30776916c1e30 | [
"MIT"
] | null | null | null | bocadillo/__init__.py | sfermigier/bocadillo | c96842edf3657af2627cce0d8af30776916c1e30 | [
"MIT"
] | null | null | null | bocadillo/__init__.py | sfermigier/bocadillo | c96842edf3657af2627cce0d8af30776916c1e30 | [
"MIT"
] | null | null | null | from .applications import App
from .errors import HTTPError
from .middleware import ASGIMiddleware, Middleware
from .injection import discover_providers, provider, useprovider
from .recipes import Recipe
from .request import ClientDisconnect, Request
from .response import Response
from .sse import server_event
from .st... | 32 | 64 | 0.835417 | 59 | 480 | 6.694915 | 0.542373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009456 | 0.11875 | 480 | 14 | 65 | 34.285714 | 0.92435 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.923077 | 0 | 0.923077 | 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 |
b1594ff43a823eaf77f7d86827485bff7fb8d425 | 384 | py | Python | iletisim/models.py | VektorelPythonHIA23/WebProje | 8dc6b8116cf4ca1aa93b098721eb7e09445a9a15 | [
"MIT"
] | null | null | null | iletisim/models.py | VektorelPythonHIA23/WebProje | 8dc6b8116cf4ca1aa93b098721eb7e09445a9a15 | [
"MIT"
] | null | null | null | iletisim/models.py | VektorelPythonHIA23/WebProje | 8dc6b8116cf4ca1aa93b098721eb7e09445a9a15 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
class IletisimModel(models.Model):
adi = models.CharField(max_length=50)
soyadi = models.CharField(max_length=70)
mesaj = models.TextField()
zaman = models.DateTimeField(default=timezone.now)
def __str__(self):
liste = [self.... | 25.6 | 54 | 0.703125 | 49 | 384 | 5.387755 | 0.591837 | 0.075758 | 0.136364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012698 | 0.179688 | 384 | 14 | 55 | 27.428571 | 0.825397 | 0 | 0 | 0 | 0 | 0 | 0.002604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.9 | 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 |
b16038ce6c7e710def5b8b1442b6df479cf21038 | 102 | py | Python | pytest_trello/__init__.py | Lencof/pytest-trello | f5dd1faee4118809bac6b2b7a32c4d57133bff16 | [
"MIT"
] | 2 | 2021-03-19T06:45:23.000Z | 2021-03-19T09:20:18.000Z | pytest_trello/__init__.py | Lencof/pytest-trello | f5dd1faee4118809bac6b2b7a32c4d57133bff16 | [
"MIT"
] | null | null | null | pytest_trello/__init__.py | Lencof/pytest-trello | f5dd1faee4118809bac6b2b7a32c4d57133bff16 | [
"MIT"
] | null | null | null | __version__ = '0.0.7'
__author__ = "James Laska and Lencof"
__author_email__ = "<jlaska@ansible.com>"
| 25.5 | 41 | 0.735294 | 14 | 102 | 4.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.117647 | 102 | 3 | 42 | 34 | 0.655556 | 0 | 0 | 0 | 0 | 0 | 0.460784 | 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 |
b1606609425dfed27c7ca30b5fa7167fbe7def50 | 481 | py | Python | setup.py | moevis/py2ifttt | 99dc2be647c53c9279f2f212528fef7190de7476 | [
"MIT"
] | 3 | 2018-05-04T12:50:04.000Z | 2020-02-28T03:22:53.000Z | setup.py | moevis/py2ifttt | 99dc2be647c53c9279f2f212528fef7190de7476 | [
"MIT"
] | null | null | null | setup.py | moevis/py2ifttt | 99dc2be647c53c9279f2f212528fef7190de7476 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='py2ifttt',
version='1.0.0',
description='an interface for triggering ifttt webhooks',
long_description='an interface for triggering ifttt webhooks, http://github.com/moevis/py2ifttt',
url='http://github.com/moevis/py2ifttt',
author='moevis',
... | 32.066667 | 103 | 0.648649 | 54 | 481 | 5.703704 | 0.648148 | 0.084416 | 0.142857 | 0.162338 | 0.487013 | 0.311688 | 0.311688 | 0 | 0 | 0 | 0 | 0.018568 | 0.216216 | 481 | 15 | 104 | 32.066667 | 0.798408 | 0 | 0 | 0 | 0 | 0 | 0.429461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
b16da90a487077e31af156aadce1fe4ca5392a0a | 528 | py | Python | python/udp-test-swipe.py | mpinner/Active | b5e2c9df3a53bc79920fb5f17489296238b898d0 | [
"MIT"
] | 12 | 2015-02-12T19:08:48.000Z | 2022-01-24T06:55:02.000Z | python/udp-test-swipe.py | mpinner/Active | b5e2c9df3a53bc79920fb5f17489296238b898d0 | [
"MIT"
] | null | null | null | python/udp-test-swipe.py | mpinner/Active | b5e2c9df3a53bc79920fb5f17489296238b898d0 | [
"MIT"
] | 5 | 2015-07-25T15:33:07.000Z | 2021-02-13T00:13:55.000Z | import socket
from time import sleep
UDP_IP = "192.168.1.177";
UDP_PORT = 8888;
#MESSAGE = 0x0101010101010101010101010101010101010101010101010110
#NOT_MESSAGE = 0x10101010101010101010101010101010101010101010101010110
#"Hello, World!";
print "UDP target IP:", UDP_IP;
print "UDP target port:", UDP_PORT;
sock = socke... | 19.555556 | 70 | 0.731061 | 71 | 528 | 5.309859 | 0.507042 | 0.039788 | 0.074271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282561 | 0.142045 | 528 | 26 | 71 | 20.307692 | 0.549669 | 0.282197 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b1806496db78fd3338abf4e9e3cd3fa6f595a6cd | 1,050 | py | Python | media_tree/contrib/media_extensions/images/focal_point/__init__.py | erlenddalen/django-media-tree | 528763d6ac8de7d6b3ccf5544d3cd070a270a422 | [
"BSD-3-Clause"
] | 29 | 2015-02-25T03:42:34.000Z | 2021-04-11T11:18:12.000Z | media_tree/contrib/media_extensions/images/focal_point/__init__.py | erlenddalen/django-media-tree | 528763d6ac8de7d6b3ccf5544d3cd070a270a422 | [
"BSD-3-Clause"
] | 24 | 2015-01-01T17:41:47.000Z | 2022-03-11T23:12:15.000Z | media_tree/contrib/media_extensions/images/focal_point/__init__.py | erlenddalen/django-media-tree | 528763d6ac8de7d6b3ccf5544d3cd070a270a422 | [
"BSD-3-Clause"
] | 13 | 2015-01-13T06:44:00.000Z | 2018-11-29T16:31:02.000Z | """
focal_point
===========
The *focal_point* extension allows you to drag a marker on image thumbnails
while editing, thus specifying the most relevant portion of the image. You can
then use these coordinates in templates for image cropping.
- To install it, add the extension module to your ``INSTALLED_APPS`` sett... | 35 | 81 | 0.7 | 150 | 1,050 | 4.826667 | 0.586667 | 0.041436 | 0.022099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202857 | 1,050 | 29 | 82 | 36.206897 | 0.864994 | 0.989524 | 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 |
b184e40f9d2f979f594e91ff1cebfbb11201e703 | 62 | py | Python | webapp/test.py | a4242762/Novel-recommendation-system | d0789253f267d5dd26c6082eab8212fb934ace04 | [
"Apache-2.0"
] | 2 | 2018-12-05T09:49:07.000Z | 2021-12-16T02:07:35.000Z | webapp/test.py | a4242762/Novel-recommendation-system | d0789253f267d5dd26c6082eab8212fb934ace04 | [
"Apache-2.0"
] | null | null | null | webapp/test.py | a4242762/Novel-recommendation-system | d0789253f267d5dd26c6082eab8212fb934ace04 | [
"Apache-2.0"
] | null | null | null | from math import ceil
a = 1
b = 2
print(a/b)
print(ceil(1.6)) | 10.333333 | 21 | 0.645161 | 15 | 62 | 2.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.193548 | 62 | 6 | 22 | 10.333333 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 |
b1a211e0f64b84dcd02fec06616e3631f6750e0b | 4,907 | py | Python | tests/test_dte_constants.py | fyntex/lib-cl-sii-python | b6ffb72be1f173a1d2e44b17ae5c08caf96ebf34 | [
"MIT"
] | 8 | 2020-03-07T19:58:40.000Z | 2021-12-15T13:47:40.000Z | tests/test_dte_constants.py | fyntex/lib-cl-sii-python | b6ffb72be1f173a1d2e44b17ae5c08caf96ebf34 | [
"MIT"
] | 141 | 2020-01-17T22:47:35.000Z | 2022-03-31T18:29:47.000Z | tests/test_dte_constants.py | fyntex/lib-cl-sii-python | b6ffb72be1f173a1d2e44b17ae5c08caf96ebf34 | [
"MIT"
] | 3 | 2020-03-07T20:30:02.000Z | 2021-03-22T03:14:26.000Z | import unittest
from cl_sii.dte import constants # noqa: F401
from cl_sii.dte.constants import TipoDteEnum
class TipoDteEnumTest(unittest.TestCase):
def test_members(self):
self.assertSetEqual(
{x for x in TipoDteEnum},
{
TipoDteEnum.FACTURA_ELECTRONICA,
... | 33.155405 | 78 | 0.622988 | 500 | 4,907 | 5.826 | 0.11 | 0.067285 | 0.100927 | 0.148987 | 0.834535 | 0.764847 | 0.576725 | 0.547545 | 0.547545 | 0.48644 | 0 | 0.004868 | 0.288364 | 4,907 | 147 | 79 | 33.380952 | 0.829324 | 0.002038 | 0 | 0.530435 | 0 | 0 | 0.037998 | 0.034116 | 0 | 0 | 0 | 0 | 0.313043 | 1 | 0.069565 | false | 0 | 0.026087 | 0 | 0.104348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
49097a8b223cf88b0ac2ff55a8558da87a85fb68 | 171 | py | Python | cameratest.py | KaiJin1995/MTCNN-VGG-face | 613cd4a62bec2bd2fee30a5b5f19ee580ee5ac41 | [
"MIT"
] | 23 | 2017-09-30T01:55:51.000Z | 2022-02-16T03:41:00.000Z | cameratest.py | KaiJin1995/MTCNN-VGG-face | 613cd4a62bec2bd2fee30a5b5f19ee580ee5ac41 | [
"MIT"
] | 1 | 2017-11-07T13:14:50.000Z | 2018-03-05T01:57:26.000Z | cameratest.py | KaiJin1995/MTCNN-VGG-face | 613cd4a62bec2bd2fee30a5b5f19ee580ee5ac41 | [
"MIT"
] | 10 | 2017-10-11T06:55:26.000Z | 2019-05-20T01:41:20.000Z | #coding:utf-8
import cv2
import os
import sys
#测试相机能否使用
cap = cv2.VideoCapture(0)
while True:
ret,frame=cap.read()
cv2.imshow('MyVideo',frame)
cv2.waitKey(25)
| 15.545455 | 31 | 0.701754 | 27 | 171 | 4.444444 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055944 | 0.163743 | 171 | 10 | 32 | 17.1 | 0.783217 | 0.116959 | 0 | 0 | 0 | 0 | 0.04698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
490b1664b51606f250aa90bd75fa97ed51384670 | 30,741 | py | Python | problema_plano/graficacion.py | raulsaavedr/problema_plano | 9c95c92102e97168de53d6993e40f831f01e8c0a | [
"MIT"
] | null | null | null | problema_plano/graficacion.py | raulsaavedr/problema_plano | 9c95c92102e97168de53d6993e40f831f01e8c0a | [
"MIT"
] | null | null | null | problema_plano/graficacion.py | raulsaavedr/problema_plano | 9c95c92102e97168de53d6993e40f831f01e8c0a | [
"MIT"
] | null | null | null | from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_toolkits.mplot3d import axes3d
from matplotlib.patches import Rectangle, PathPatch
from matplotlib.text import TextPath
from matplotlib.tra... | 51.406355 | 183 | 0.638756 | 4,263 | 30,741 | 4.462585 | 0.091954 | 0.025757 | 0.009462 | 0.012616 | 0.758831 | 0.724296 | 0.690549 | 0.661743 | 0.608442 | 0.568703 | 0 | 0.011891 | 0.231287 | 30,741 | 597 | 184 | 51.492462 | 0.793153 | 0.22605 | 0 | 0.445333 | 0 | 0.024 | 0.169185 | 0.04037 | 0 | 0 | 0 | 0.01005 | 0 | 1 | 0.042667 | false | 0 | 0.056 | 0 | 0.098667 | 0.056 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4915e981195eeb195b615da47e0eb07122b77f86 | 133 | py | Python | backend/posts/models.py | hvitis/geodjango-rest-vue-boilerplate | bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd | [
"MIT"
] | 5 | 2020-11-23T11:31:40.000Z | 2022-03-11T01:24:46.000Z | backend/posts/models.py | hvitis/geodjango-rest-vue-boilerplate | bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd | [
"MIT"
] | null | null | null | backend/posts/models.py | hvitis/geodjango-rest-vue-boilerplate | bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd | [
"MIT"
] | null | null | null | from django.db import models
class Post(models.Model):
subject = models.CharField(max_length=200)
body = models.TextField()
| 22.166667 | 46 | 0.736842 | 18 | 133 | 5.388889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.157895 | 133 | 5 | 47 | 26.6 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
491cebf84efee159a8c46c69d6d547fd0a91d840 | 1,376 | py | Python | djangae/db/migrations/utils.py | farridav/djangae | afdef831481d99f3259ca1a10adcd0c35d3424c1 | [
"BSD-3-Clause"
] | null | null | null | djangae/db/migrations/utils.py | farridav/djangae | afdef831481d99f3259ca1a10adcd0c35d3424c1 | [
"BSD-3-Clause"
] | null | null | null | djangae/db/migrations/utils.py | farridav/djangae | afdef831481d99f3259ca1a10adcd0c35d3424c1 | [
"BSD-3-Clause"
] | null | null | null | import logging
import random
import time
def do_with_retry(func, *args, **kwargs):
""" Tries a function 3 times using exponential backoff
according to Google API specs. Optional kwargs:
`_attempts` - override the number of attempts before giving up.
`_catch` - tuple of exception types use... | 35.282051 | 87 | 0.65407 | 188 | 1,376 | 4.585106 | 0.547872 | 0.041763 | 0.041763 | 0.034803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.25218 | 1,376 | 38 | 88 | 36.210526 | 0.824101 | 0.177326 | 0 | 0 | 0 | 0 | 0.06146 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
491ebc05c002c1ec132270db9a821cc871c35e4c | 3,222 | py | Python | tests/test_core_config.py | seznam/shelter | 90c0d0bde2d007ede425159ffd4575e36d1b366c | [
"BSD-3-Clause"
] | 7 | 2016-08-19T19:44:16.000Z | 2022-01-14T10:57:37.000Z | tests/test_core_config.py | seznam/shelter | 90c0d0bde2d007ede425159ffd4575e36d1b366c | [
"BSD-3-Clause"
] | 2 | 2016-11-30T15:24:39.000Z | 2019-11-04T19:04:49.000Z | tests/test_core_config.py | seznam/shelter | 90c0d0bde2d007ede425159ffd4575e36d1b366c | [
"BSD-3-Clause"
] | 5 | 2016-11-26T16:00:23.000Z | 2019-12-13T17:47:52.000Z |
import importlib
import pytest
import tornado.web
from shelter.core.cmdlineparser import ArgumentParser
from shelter.core.config import Config
from shelter.core.context import Context
import tests.test_core_app
class ContextTest(Context):
pass
def test_config_cls():
config = Config(1, 2)
assert "<sh... | 28.767857 | 73 | 0.700807 | 417 | 3,222 | 5.273381 | 0.218225 | 0.203729 | 0.054116 | 0.061392 | 0.399727 | 0.3206 | 0.22965 | 0.14643 | 0.050023 | 0.050023 | 0 | 0.033077 | 0.193048 | 3,222 | 111 | 74 | 29.027027 | 0.812692 | 0 | 0 | 0.142857 | 0 | 0 | 0.076374 | 0.015523 | 0 | 0 | 0 | 0 | 0.52381 | 1 | 0.071429 | false | 0.011905 | 0.142857 | 0 | 0.22619 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4929d651063e96c88c336416584f7c0bc664447e | 359 | py | Python | examples/doc_model_savemodel.py | FaustinCarter/lmfit-py | 7fbb75b2fd3f383e78692fd85c9a646793d4b071 | [
"BSD-3-Clause"
] | null | null | null | examples/doc_model_savemodel.py | FaustinCarter/lmfit-py | 7fbb75b2fd3f383e78692fd85c9a646793d4b071 | [
"BSD-3-Clause"
] | null | null | null | examples/doc_model_savemodel.py | FaustinCarter/lmfit-py | 7fbb75b2fd3f383e78692fd85c9a646793d4b071 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# <examples/doc_mode_savemodel.py>
import numpy as np
from lmfit.model import Model, save_model
def mysine(x, amp, freq, shift):
return amp * np.sin(x*freq + shift)
sinemodel = Model(mysine)
pars = sinemodel.make_params(amp=1, freq=0.25, shift=0)
save_model(sinemodel, 'sinemodel.sav')
#... | 19.944444 | 55 | 0.732591 | 58 | 359 | 4.413793 | 0.586207 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016077 | 0.133705 | 359 | 17 | 56 | 21.117647 | 0.807074 | 0.253482 | 0 | 0 | 0 | 0 | 0.049057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
4938e43915b4772be6308cdea887d17c0350eec2 | 903 | py | Python | rb/processings/pipeline/svr.py | readerbench/ReaderBench | f0588a9a63ba21e3b8c2e5e5bc474904c07f6897 | [
"Apache-2.0"
] | 1 | 2022-03-05T17:12:55.000Z | 2022-03-05T17:12:55.000Z | rb/processings/pipeline/svr.py | rwth-acis/readerbenchpy | 1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3 | [
"Apache-2.0"
] | 2 | 2021-10-17T14:00:52.000Z | 2021-10-17T14:00:52.000Z | rb/processings/pipeline/svr.py | rwth-acis/readerbenchpy | 1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3 | [
"Apache-2.0"
] | null | null | null | from rb.processings.pipeline.estimator import Regressor
from rb.processings.pipeline.dataset import Dataset, Task
from typing import List, Dict
from sklearn import svm
class SVR(Regressor):
def __init__(self, dataset: Dataset, tasks: List[Task], params: Dict[str, str]):
super().__init__(dataset, tasks, par... | 36.12 | 93 | 0.612403 | 108 | 903 | 5 | 0.416667 | 0.055556 | 0.062963 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007236 | 0.234773 | 903 | 25 | 94 | 36.12 | 0.77424 | 0 | 0 | 0.095238 | 0 | 0 | 0.120575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.190476 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
494e670c553e5ebe7746b3f551c38607f352dcc9 | 555 | py | Python | tests/make_def_multi.py | shlomimatichin/Pymake3 | 1d7cd99c639dff208edd0a9873292e0d2d6e152e | [
"MIT"
] | 2 | 2021-04-22T17:14:51.000Z | 2022-02-26T10:52:06.000Z | tests/make_def_multi.py | shlomimatichin/Pymake3 | 1d7cd99c639dff208edd0a9873292e0d2d6e152e | [
"MIT"
] | null | null | null | tests/make_def_multi.py | shlomimatichin/Pymake3 | 1d7cd99c639dff208edd0a9873292e0d2d6e152e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#---------------------------------------
# IMPORTS
#---------------------------------------
import test
from pymake3 import *
#---------------------------------------
# FUNCTIONS
#---------------------------------------
@default_target
def my_target_1(conf):
test.fail("only the last default ... | 18.5 | 62 | 0.394595 | 46 | 555 | 4.586957 | 0.608696 | 0.184834 | 0.151659 | 0.170616 | 0.227488 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.102703 | 555 | 29 | 63 | 19.137931 | 0.411647 | 0.497297 | 0 | 0.2 | 0 | 0 | 0.263941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4963ddca348c9d948f86e9c857f095c32c504719 | 553 | py | Python | src/chapter2/exercise7.py | Group12BSE1/BSE-2021 | b47ac8fa2906fc24d74f2776d7da350e7267ff0b | [
"MIT"
] | null | null | null | src/chapter2/exercise7.py | Group12BSE1/BSE-2021 | b47ac8fa2906fc24d74f2776d7da350e7267ff0b | [
"MIT"
] | null | null | null | src/chapter2/exercise7.py | Group12BSE1/BSE-2021 | b47ac8fa2906fc24d74f2776d7da350e7267ff0b | [
"MIT"
] | null | null | null | #this is to make change from dollar bills
change=float(input("Enter an amount to make change for :"))
print("Your change is..")
print(int(change//20), "twenties")
change=change % 20
print(int(change//10), "tens")
change=change % 10
print(int(change//5), "fives")
change=change % 5
print(int(change//1), "ones")
change=ch... | 27.65 | 59 | 0.694394 | 94 | 553 | 4.085106 | 0.351064 | 0.166667 | 0.291667 | 0.15625 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068687 | 0.104882 | 553 | 19 | 60 | 29.105263 | 0.707071 | 0.072333 | 0 | 0 | 0 | 0 | 0.195313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 |
4971aa72fd7068501dc7dc31a0fb0845a29fbc5a | 39,269 | py | Python | dev/notes.py | negrinho/research_toolbox | c99aac302ba427269c07ccf25369eb4d552cac95 | [
"MIT"
] | 14 | 2018-06-19T13:58:17.000Z | 2022-02-25T02:03:53.000Z | dev/notes.py | negrinho/research_toolbox | c99aac302ba427269c07ccf25369eb4d552cac95 | [
"MIT"
] | null | null | null | dev/notes.py | negrinho/research_toolbox | c99aac302ba427269c07ccf25369eb4d552cac95 | [
"MIT"
] | 5 | 2019-01-17T13:19:29.000Z | 2022-02-25T02:03:55.000Z |
# NOTE: some stuff can be moved to the tb_numpy.
#
# Implementation requests
# * tb_augmentation.py
# * tb_data.py
# * tb_debugging.py
# * tb_experiments.py
# * tb_filesystem.py
# * tb_io.py
# * tb_logging.py
# * tb_plotting.py
# * Add grid plots.
# * Add histograms (1D, 2D).
# * Add scatter plots (1D, 2D... | 41.205666 | 193 | 0.763045 | 6,355 | 39,269 | 4.709363 | 0.175295 | 0.007518 | 0.00568 | 0.003308 | 0.044741 | 0.013967 | 0.002005 | 0 | 0 | 0 | 0 | 0.000345 | 0.189055 | 39,269 | 952 | 194 | 41.24895 | 0.939457 | 0.95788 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.00105 | 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 |
49772b5a8fcc5ac79513f436dc8a00c596d1efdd | 723 | py | Python | mythx_cli/group/status.py | Player1-PlaySwap/mythx-cli | defc59e2a8732a6e2e550ac62ded5a46c32a780b | [
"MIT"
] | 58 | 2019-09-13T13:42:33.000Z | 2022-03-28T11:37:54.000Z | mythx_cli/group/status.py | Player1-PlaySwap/mythx-cli | defc59e2a8732a6e2e550ac62ded5a46c32a780b | [
"MIT"
] | 48 | 2019-09-17T19:28:55.000Z | 2022-03-18T03:28:48.000Z | mythx_cli/group/status.py | Player1-PlaySwap/mythx-cli | defc59e2a8732a6e2e550ac62ded5a46c32a780b | [
"MIT"
] | 17 | 2019-09-17T06:49:38.000Z | 2022-03-02T19:24:00.000Z | import logging
from typing import List
import click
from mythx_cli.formatter import FORMAT_RESOLVER
from mythx_cli.util import write_or_print
LOGGER = logging.getLogger("mythx-cli")
@click.command("status")
@click.argument("gids", default=None, nargs=-1)
@click.pass_obj
def group_status(ctx, gids: List[str]) -> No... | 25.821429 | 77 | 0.715076 | 109 | 723 | 4.614679 | 0.504587 | 0.087475 | 0.047714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001681 | 0.17704 | 723 | 27 | 78 | 26.777778 | 0.843697 | 0.213001 | 0 | 0 | 0 | 0 | 0.113761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.357143 | 0 | 0.428571 | 0.142857 | 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 |
49788a7fcadb657f7e216247f638c8da3555a9c0 | 17,200 | py | Python | build/PureCloudPlatformClientV2/models/wem_coaching_appointment_topic_coaching_appointment_notification.py | cjohnson-ctl/platform-client-sdk-python | 38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100 | [
"MIT"
] | 10 | 2019-02-22T00:27:08.000Z | 2021-09-12T23:23:44.000Z | libs/PureCloudPlatformClientV2/models/wem_coaching_appointment_topic_coaching_appointment_notification.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | 5 | 2018-06-07T08:32:00.000Z | 2021-07-28T17:37:26.000Z | libs/PureCloudPlatformClientV2/models/wem_coaching_appointment_topic_coaching_appointment_notification.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | 6 | 2020-04-09T17:43:07.000Z | 2022-02-17T08:48:05.000Z | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | 32.514178 | 123 | 0.669244 | 1,403 | 17,200 | 8.022096 | 0.138275 | 0.034118 | 0.363927 | 0.099511 | 0.580809 | 0.383385 | 0.215815 | 0.075877 | 0.015637 | 0.009596 | 0 | 0.000948 | 0.263779 | 17,200 | 528 | 124 | 32.575758 | 0.887862 | 0.494535 | 0 | 0.108808 | 0 | 0 | 0.141354 | 0.04901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202073 | false | 0 | 0.025907 | 0 | 0.34715 | 0.005181 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
497fc78ecc49bdf4bd866a383af4c0326cae47e4 | 190 | py | Python | example.py | uxai/string-partitioner | f6d622305c81c219d567f54731e3a5a9e1285aa6 | [
"MIT"
] | 1 | 2022-03-05T10:04:50.000Z | 2022-03-05T10:04:50.000Z | example.py | uxai/string-partitioner | f6d622305c81c219d567f54731e3a5a9e1285aa6 | [
"MIT"
] | null | null | null | example.py | uxai/string-partitioner | f6d622305c81c219d567f54731e3a5a9e1285aa6 | [
"MIT"
] | null | null | null | # Sample data with output split 50/50 and retrieving both
import random
import partitioner as p
my_data = [random.uniform(0, 1) for _ in range(0, 10)]
print(p.pal(my_data, 50, tail=False)) | 27.142857 | 57 | 0.742105 | 35 | 190 | 3.942857 | 0.742857 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068323 | 0.152632 | 190 | 7 | 58 | 27.142857 | 0.78882 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4980790143426d11549b20191d93b68c635a4b09 | 1,097 | py | Python | postoffice_django/api/views.py | mercadona/postoffice_django | a7fa69bac93ca9ee5776974249f6291b1e18fe77 | [
"Apache-2.0"
] | 1 | 2020-11-23T11:13:25.000Z | 2020-11-23T11:13:25.000Z | postoffice_django/api/views.py | mercadona/postoffice_django | a7fa69bac93ca9ee5776974249f6291b1e18fe77 | [
"Apache-2.0"
] | 25 | 2020-01-29T10:35:01.000Z | 2021-03-02T12:41:56.000Z | postoffice_django/api/views.py | mercadona/postoffice_django | a7fa69bac93ca9ee5776974249f6291b1e18fe77 | [
"Apache-2.0"
] | null | null | null | from django.http import JsonResponse, HttpResponse
from django.views import View
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from django.views.generic.edit import BaseDeleteView
from postoffice_django.models import PublishingError
from postoffice_django.ser... | 34.28125 | 79 | 0.758432 | 128 | 1,097 | 6.335938 | 0.445313 | 0.073983 | 0.055487 | 0.051788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.152233 | 1,097 | 31 | 80 | 35.387097 | 0.865591 | 0 | 0 | 0 | 0 | 0 | 0.020966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.304348 | 0.043478 | 0.73913 | 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 |
49807d6ba67170915f38252c12da97a82955432f | 1,999 | py | Python | src/compas/artists/__init__.py | Sam-Bouten/compas | 011c7779ded9b69bb602568b470bb0443e336f62 | [
"MIT"
] | null | null | null | src/compas/artists/__init__.py | Sam-Bouten/compas | 011c7779ded9b69bb602568b470bb0443e336f62 | [
"MIT"
] | null | null | null | src/compas/artists/__init__.py | Sam-Bouten/compas | 011c7779ded9b69bb602568b470bb0443e336f62 | [
"MIT"
] | null | null | null | """
********************************************************************************
artists
********************************************************************************
.. currentmodule:: compas.artists
.. rst-class:: lead
For visualization of data objects such as geometry objects, robots, and data structures, ... | 22.211111 | 115 | 0.689845 | 176 | 1,999 | 7.721591 | 0.420455 | 0.029433 | 0.047093 | 0.086093 | 0.03532 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005389 | 0.164582 | 1,999 | 89 | 116 | 22.460674 | 0.808383 | 0.556778 | 0 | 0 | 0 | 0 | 0.149714 | 0.026286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.551724 | 0 | 0.551724 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
498184c10edc25ffc9f3291ed05346c0646359dd | 6,461 | py | Python | ZhiQue/settings.py | zhique-design/zhique-service | cbfef7e92b3aeff2f67dd9e5f352c6cfa2beaef9 | [
"Apache-2.0"
] | null | null | null | ZhiQue/settings.py | zhique-design/zhique-service | cbfef7e92b3aeff2f67dd9e5f352c6cfa2beaef9 | [
"Apache-2.0"
] | null | null | null | ZhiQue/settings.py | zhique-design/zhique-service | cbfef7e92b3aeff2f67dd9e5f352c6cfa2beaef9 | [
"Apache-2.0"
] | null | null | null | """
Django settings for ZhiQue project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import datetim... | 27.493617 | 91 | 0.688748 | 719 | 6,461 | 6.020862 | 0.371349 | 0.048048 | 0.036036 | 0.054054 | 0.19635 | 0.147147 | 0.077847 | 0.077847 | 0.02772 | 0 | 0 | 0.007489 | 0.173348 | 6,461 | 234 | 92 | 27.611111 | 0.803033 | 0.235258 | 0 | 0.060403 | 1 | 0 | 0.520923 | 0.382323 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.053691 | 0.013423 | 0 | 0.013423 | 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 |
498d558773c3f2f0b9b37f6c148b50a17c271abb | 554 | py | Python | Core/SystemManager.py | stories2/y_if-kakao | 6756df346d685fa571a6a9bf6c057b7f86b939b9 | [
"MIT"
] | null | null | null | Core/SystemManager.py | stories2/y_if-kakao | 6756df346d685fa571a6a9bf6c057b7f86b939b9 | [
"MIT"
] | null | null | null | Core/SystemManager.py | stories2/y_if-kakao | 6756df346d685fa571a6a9bf6c057b7f86b939b9 | [
"MIT"
] | null | null | null | from Utils import ResponseManager, LogManager
from Setting import DefineManager
def CheckVersion():
version = DefineManager.VERSION
LogManager.PrintLogMessage("SystemManager", "CheckVersion", "this version is " + version, DefineManager.LOG_LEVEL_INFO)
return ResponseManager.TemplateOfResponse(DefineManager... | 50.363636 | 123 | 0.805054 | 54 | 554 | 8.148148 | 0.425926 | 0.090909 | 0.172727 | 0.113636 | 0.413636 | 0.413636 | 0.413636 | 0.413636 | 0.413636 | 0.413636 | 0 | 0 | 0.108303 | 554 | 11 | 124 | 50.363636 | 0.890688 | 0 | 0 | 0 | 0 | 0 | 0.124324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 |
49949602a14d319f0bf5d508be16cf4100f3eddc | 715 | py | Python | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Missions/Segments/expand_state.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Missions/Segments/expand_state.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Missions/Segments/expand_state.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | ## @ingroup methods-mission-segments
# expand_state.py
#
# Created: Jul 2014, SUAVE Team
# Modified: Jan 2016, E. Botero
# ----------------------------------------------------------------------
# Expand State
# ----------------------------------------------------------------------
## @ingroup methods-mission-segme... | 19.324324 | 72 | 0.511888 | 71 | 715 | 5.028169 | 0.577465 | 0.022409 | 0.117647 | 0.162465 | 0.179272 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.216783 | 715 | 37 | 73 | 19.324324 | 0.623214 | 0.661538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8d7e09680b1d6d4fb3810f98ac323398c3eb755 | 759 | py | Python | pexels_api/errors.py | quattrococodrilo/unofficial_pexels_api_client | a6cad2854df8a89f6806b244fa89e52859846abd | [
"MIT"
] | null | null | null | pexels_api/errors.py | quattrococodrilo/unofficial_pexels_api_client | a6cad2854df8a89f6806b244fa89e52859846abd | [
"MIT"
] | null | null | null | pexels_api/errors.py | quattrococodrilo/unofficial_pexels_api_client | a6cad2854df8a89f6806b244fa89e52859846abd | [
"MIT"
] | null | null | null | class BasePexelError(Exception):
pass
class EndpointNotExists(BasePexelError):
def __init__(self, end_point, _enum) -> None:
options = _enum.__members__.keys()
self.message = f'Endpoint "{end_point}" not exists. Valid endpoints: {", ".join(options)}'
super().__init__(self.message)
c... | 29.192308 | 98 | 0.660079 | 86 | 759 | 5.360465 | 0.395349 | 0.104121 | 0.136659 | 0.16269 | 0.464208 | 0.464208 | 0.321041 | 0.164859 | 0 | 0 | 0 | 0 | 0.201581 | 759 | 25 | 99 | 30.36 | 0.760726 | 0 | 0 | 0.3125 | 0 | 0 | 0.218709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b8dc10bd37fee364565e50fa48cefdc82c476a5c | 1,792 | py | Python | sentience/framework/abc/train.py | jtdutta1/Sentience | 3316a89001b5cf3a40c7e67c0a613ac9fec4877d | [
"MIT"
] | null | null | null | sentience/framework/abc/train.py | jtdutta1/Sentience | 3316a89001b5cf3a40c7e67c0a613ac9fec4877d | [
"MIT"
] | null | null | null | sentience/framework/abc/train.py | jtdutta1/Sentience | 3316a89001b5cf3a40c7e67c0a613ac9fec4877d | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Trainer(ABC):
"""
Base class for trainers. Define your own trainer classes using this as your base.
"""
@abstractmethod
def train(self,
state_path,
save_state_interval,
resume=False,
model_check... | 30.372881 | 92 | 0.584263 | 214 | 1,792 | 4.785047 | 0.383178 | 0.083008 | 0.039063 | 0.027344 | 0.138672 | 0.138672 | 0.058594 | 0 | 0 | 0 | 0 | 0.000863 | 0.353237 | 1,792 | 59 | 93 | 30.372881 | 0.882657 | 0.56808 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.055556 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b8e1aa7c09ff25b2c8afb4220a55ac4b8868fe1d | 3,350 | py | Python | ics/structures/srad_star2_settings.py | hollinsky-intrepid/python_ics | b6ec5486ec3cc2548e33845c265faccf293b88f5 | [
"Unlicense"
] | null | null | null | ics/structures/srad_star2_settings.py | hollinsky-intrepid/python_ics | b6ec5486ec3cc2548e33845c265faccf293b88f5 | [
"Unlicense"
] | null | null | null | ics/structures/srad_star2_settings.py | hollinsky-intrepid/python_ics | b6ec5486ec3cc2548e33845c265faccf293b88f5 | [
"Unlicense"
] | null | null | null | # This file was auto generated; Do not modify, if you value your sanity!
import ctypes
try: # 10
from op_eth_general_settings import op_eth_general_settings
from op_eth_settings import op_eth_settings
from can_settings import can_settings
from canfd_settings import canfd_settings
from lin_settings ... | 45.890411 | 90 | 0.728358 | 419 | 3,350 | 5.369928 | 0.257757 | 0.074667 | 0.132889 | 0.1 | 0.529333 | 0.440889 | 0.320444 | 0.304 | 0.081778 | 0.081778 | 0 | 0.046606 | 0.186567 | 3,350 | 72 | 91 | 46.527778 | 0.779083 | 0.033731 | 0 | 0 | 1 | 0 | 0.177654 | 0.092541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.323077 | 0 | 0.369231 | 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 |
b8f1f803365d3031beee0174f5a7a5fd9fc0acc6 | 338 | py | Python | unitTest/GenerateTest.py | Sky10086/newcoder | 593d6a0a67bd1532f52f227b3a09ee64dd591c6c | [
"Apache-2.0"
] | 2 | 2017-11-26T11:56:52.000Z | 2017-11-26T11:57:05.000Z | unitTest/GenerateTest.py | Sky10086/newcoder | 593d6a0a67bd1532f52f227b3a09ee64dd591c6c | [
"Apache-2.0"
] | null | null | null | unitTest/GenerateTest.py | Sky10086/newcoder | 593d6a0a67bd1532f52f227b3a09ee64dd591c6c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import sys
if len(sys.argv)<2:
print "Usage: ./GenerateTest.py XXXXX"
model = 'model'
name = 'SkyNewCoder'+sys.argv[1]+'Test'
default = 'XXXXXXXXXXXXXX'
f = open(model,'r')
content = f.read();
f.close()
content = content.replace(default, name);
out = open(name+".cpp", 'w')
out.write(cont... | 17.789474 | 41 | 0.674556 | 51 | 338 | 4.470588 | 0.647059 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006734 | 0.121302 | 338 | 18 | 42 | 18.777778 | 0.760943 | 0.047337 | 0 | 0 | 1 | 0 | 0.218069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
b8f51a8e0776a4e33cb239619c163a5a0bff87d9 | 2,068 | py | Python | test.py | Gollor/database1 | 2f6bdabdeb237346a98ea0733dac3b385f23a358 | [
"MIT"
] | 2 | 2017-12-04T10:33:10.000Z | 2017-12-08T11:40:29.000Z | test.py | Gollor/database1 | 2f6bdabdeb237346a98ea0733dac3b385f23a358 | [
"MIT"
] | null | null | null | test.py | Gollor/database1 | 2f6bdabdeb237346a98ea0733dac3b385f23a358 | [
"MIT"
] | null | null | null | import unittest
import asyncio
import motor.motor_asyncio
import city_generator
client = motor.motor_asyncio.AsyncIOMotorClient('localhost', 27017)
db = client.local
loop = asyncio.get_event_loop()
async def get_all_cities(cap=500) -> list:
return await db.Cities.find({}).to_list(cap)
async def get_city_by_inde... | 40.54902 | 79 | 0.745164 | 287 | 2,068 | 4.968641 | 0.205575 | 0.098177 | 0.168303 | 0.280505 | 0.706171 | 0.706171 | 0.668303 | 0.642356 | 0.610799 | 0.551192 | 0 | 0.016356 | 0.14265 | 2,068 | 51 | 80 | 40.54902 | 0.78793 | 0 | 0 | 0.275 | 0 | 0 | 0.027066 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8f6c2e2ea939bb0153ea3db55c67cc3c4c12d8b | 691 | py | Python | src/analog_input/mcp3008.py | meshell/radioM40 | 2f2b50e0457fe37022e2b2c27ec3152f8213cb43 | [
"MIT"
] | null | null | null | src/analog_input/mcp3008.py | meshell/radioM40 | 2f2b50e0457fe37022e2b2c27ec3152f8213cb43 | [
"MIT"
] | null | null | null | src/analog_input/mcp3008.py | meshell/radioM40 | 2f2b50e0457fe37022e2b2c27ec3152f8213cb43 | [
"MIT"
] | null | null | null | import spi
from spi import SPIDevice
class MCP3008(object):
def __init__(self, bus=spi.Bus.SPI0, device=spi.Device.CE0, ref_voltage=3.3):
self._spi = SPIDevice(bus, device)
self._out = bytearray(3)
self._out[0] = 0x01
self._ref_voltage = ref_voltage
@property
def reference_... | 27.64 | 81 | 0.607815 | 94 | 691 | 4.244681 | 0.404255 | 0.100251 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042969 | 0.259045 | 691 | 25 | 82 | 27.64 | 0.736328 | 0.060781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0 | 0.526316 | 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 |
b8f732b78137a7a5d91e92fc7101b01a4a5b19e4 | 1,726 | py | Python | music_sync/general_sync_utils.py | justinplasmeier/PyMusicSync | 96b49e44906e6e3f206030b4b9066a0be03cfe3f | [
"MIT"
] | 2 | 2017-02-02T20:33:59.000Z | 2020-11-26T21:37:53.000Z | music_sync/general_sync_utils.py | justinplasmeier/PyMusicSync | 96b49e44906e6e3f206030b4b9066a0be03cfe3f | [
"MIT"
] | 1 | 2017-10-22T04:18:39.000Z | 2017-10-22T04:18:39.000Z | music_sync/general_sync_utils.py | justinplasmeier/PyMusicSync | 96b49e44906e6e3f206030b4b9066a0be03cfe3f | [
"MIT"
] | null | null | null | # general_sync_utils
# similar to music_sync_utils but more general
class NameEqualityMixin():
def __eq__(self, other):
if isinstance(other, str):
return self.name == other
return self.name == other.name
def __ne__(self, other):
return not self.__eq__(other)
def __ha... | 27.83871 | 88 | 0.590382 | 226 | 1,726 | 4.256637 | 0.216814 | 0.02079 | 0.012474 | 0.016632 | 0.388773 | 0.22869 | 0.22869 | 0.22869 | 0.22869 | 0.22869 | 0 | 0.005025 | 0.308227 | 1,726 | 61 | 89 | 28.295082 | 0.80067 | 0.060834 | 0 | 0.205128 | 0 | 0 | 0.063119 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.205128 | false | 0 | 0 | 0.102564 | 0.487179 | 0.051282 | 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 |
770593701c126d9089130fffb3efb37ca77b29bf | 161 | py | Python | file_split.py | juhyun0/python_filie | 779c589a2f30cce5868245a6b9b57f7b3513a2b0 | [
"Unlicense"
] | null | null | null | file_split.py | juhyun0/python_filie | 779c589a2f30cce5868245a6b9b57f7b3513a2b0 | [
"Unlicense"
] | null | null | null | file_split.py | juhyun0/python_filie | 779c589a2f30cce5868245a6b9b57f7b3513a2b0 | [
"Unlicense"
] | null | null | null | infile=open("proverbs.txt","r")
for line in infile:
line=line.rstrip()
word_list=line.split() #공백 단어분리
for word in word_list:
print(word);
infile.close()
| 16.1 | 32 | 0.701863 | 27 | 161 | 4.111111 | 0.592593 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136646 | 161 | 9 | 33 | 17.888889 | 0.798561 | 0.043478 | 0 | 0 | 0 | 0 | 0.085526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
7706284f7c9e82d3103b4570adec12b6681e5c2c | 6,348 | py | Python | server/src/test/integration/general/test_script.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | server/src/test/integration/general/test_script.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | server/src/test/integration/general/test_script.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# list... | 36.274286 | 170 | 0.630277 | 743 | 6,348 | 5.228802 | 0.298789 | 0.022651 | 0.016988 | 0.022651 | 0.266409 | 0.250193 | 0.236036 | 0.228314 | 0.21184 | 0.21184 | 0 | 0.011907 | 0.272369 | 6,348 | 174 | 171 | 36.482759 | 0.829184 | 0.089635 | 0 | 0.185841 | 0 | 0.026549 | 0.140815 | 0.02752 | 0 | 0 | 0 | 0 | 0.061947 | 0 | null | null | 0.088496 | 0.070796 | null | null | 0.017699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7720c313d625b8add8e64178aea024314fa30eb9 | 54 | py | Python | src/whylogs/features/__init__.py | cswarth/whylogs | 6805b252f1d07efde84836d3924949f7ec2d97b1 | [
"Apache-2.0"
] | 603 | 2020-07-31T23:26:10.000Z | 2022-03-31T23:05:36.000Z | src/whylogs/features/__init__.py | cswarth/whylogs | 6805b252f1d07efde84836d3924949f7ec2d97b1 | [
"Apache-2.0"
] | 284 | 2021-03-02T21:28:03.000Z | 2022-03-31T22:36:08.000Z | src/whylogs/features/__init__.py | jamie256/whylogs | e4b8288a61c00fbe033c0248a015e6e91ee6c8b0 | [
"Apache-2.0"
] | 39 | 2020-08-14T21:22:08.000Z | 2022-03-29T20:24:54.000Z | _IMAGE_FEATURES = ["Hue", "Brightness", "Saturation"]
| 27 | 53 | 0.703704 | 5 | 54 | 7.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 54 | 1 | 54 | 54 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0.425926 | 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 |
7721c81de81a1033cb3a3da8da7feacc23e39e04 | 1,315 | py | Python | wikifolioPy.py | TheFakeStefan/WikifolioPy | bc534856531eba210517a13ea91d701220d65789 | [
"Unlicense"
] | 3 | 2021-02-07T10:15:36.000Z | 2022-03-26T09:41:45.000Z | wikifolioPy.py | TheFakeStefan/WikifolioPy | bc534856531eba210517a13ea91d701220d65789 | [
"Unlicense"
] | 1 | 2021-02-12T23:56:34.000Z | 2021-02-14T16:40:54.000Z | wikifolioPy.py | TheFakeStefan/WikifolioPy | bc534856531eba210517a13ea91d701220d65789 | [
"Unlicense"
] | 2 | 2021-08-21T23:16:59.000Z | 2021-09-10T08:44:03.000Z |
#WikifolioPy imports all submodules and calls them within its own methods. This is to allow a more conventient use of the bot.
from credentials import credentials
from activateSession import SessionActivator
from controlBrowser import BrowserController
from checkWikifolio import CheckWikifolio
class WikifolioPy:
... | 28.586957 | 126 | 0.71711 | 145 | 1,315 | 6.413793 | 0.448276 | 0.034409 | 0.027957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206084 | 1,315 | 45 | 127 | 29.222222 | 0.890805 | 0.267681 | 0 | 0 | 0 | 0 | 0.02358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.173913 | 0.043478 | 0.521739 | 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 |
773acb3f9a6da79f18467b5e52d0df6d4087ef02 | 756 | py | Python | reservations/migrations/0002_auto_20181005_1022.py | marcusaj0114/aion | 345c7eb19af74c7a1fcde734f655b09710b0fb30 | [
"MIT"
] | null | null | null | reservations/migrations/0002_auto_20181005_1022.py | marcusaj0114/aion | 345c7eb19af74c7a1fcde734f655b09710b0fb30 | [
"MIT"
] | 8 | 2020-06-05T19:54:18.000Z | 2022-02-10T10:50:47.000Z | reservations/migrations/0002_auto_20181005_1022.py | marcusaj0114/aion | 345c7eb19af74c7a1fcde734f655b09710b0fb30 | [
"MIT"
] | 3 | 2019-04-12T08:15:06.000Z | 2019-10-04T12:37:05.000Z | # Generated by Django 2.1.2 on 2018-10-05 14:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservations', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='bio',
... | 26.068966 | 74 | 0.572751 | 79 | 756 | 5.379747 | 0.518987 | 0.141176 | 0.176471 | 0.204706 | 0.527059 | 0.527059 | 0.432941 | 0.432941 | 0.225882 | 0.225882 | 0 | 0.049524 | 0.305556 | 756 | 28 | 75 | 27 | 0.76 | 0.059524 | 0 | 0.5 | 1 | 0 | 0.084626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
77488eb0895f63d4cf5af01ab6ee2ac69fa79e60 | 1,456 | py | Python | tests/whist/server/api/user/test_auth.py | Whist-Team/Whist-Server | 7173bba9cbae505e189c812ebb459af661d656b2 | [
"MIT"
] | 1 | 2021-08-09T21:15:23.000Z | 2021-08-09T21:15:23.000Z | tests/whist/server/api/user/test_auth.py | Whist-Team/Whist-Server | 7173bba9cbae505e189c812ebb459af661d656b2 | [
"MIT"
] | 172 | 2021-04-18T21:09:56.000Z | 2022-03-31T20:38:07.000Z | tests/whist/server/api/user/test_auth.py | Whist-Team/Whist-Server | 7173bba9cbae505e189c812ebb459af661d656b2 | [
"MIT"
] | 2 | 2021-08-28T19:05:55.000Z | 2022-03-20T17:50:29.000Z | import unittest
from starlette.testclient import TestClient
from whist.server import app
from whist.server.database import db
class AuthTestCase(unittest.TestCase):
def setUp(self) -> None:
self.client = TestClient(app)
self.login_creds = {'username': 'marcel', 'password': 'abc'}
_ = sel... | 38.315789 | 84 | 0.657967 | 177 | 1,456 | 5.322034 | 0.282486 | 0.063694 | 0.07431 | 0.090234 | 0.601911 | 0.509554 | 0.481953 | 0.481953 | 0.481953 | 0.394904 | 0 | 0.010274 | 0.197802 | 1,456 | 37 | 85 | 39.351351 | 0.796233 | 0 | 0 | 0.178571 | 0 | 0 | 0.104396 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.214286 | false | 0.178571 | 0.142857 | 0 | 0.392857 | 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 |
77587760016c7771975719fc755a74987b1eeb08 | 1,259 | py | Python | WebApp/app/Geolocalisation_System/midleware.py | YacineHam/GeolocalisationSys | fc72f21e0eec66141174e7f92ef68cdf40ce5d73 | [
"MIT"
] | null | null | null | WebApp/app/Geolocalisation_System/midleware.py | YacineHam/GeolocalisationSys | fc72f21e0eec66141174e7f92ef68cdf40ce5d73 | [
"MIT"
] | null | null | null | WebApp/app/Geolocalisation_System/midleware.py | YacineHam/GeolocalisationSys | fc72f21e0eec66141174e7f92ef68cdf40ce5d73 | [
"MIT"
] | 1 | 2021-07-11T11:53:36.000Z | 2021-07-11T11:53:36.000Z | from django.db import close_old_connections
from rest_framework_simplejwt.tokens import UntypedToken
from rest_framework_simplejwt.exceptions import InvalidToken, TokenError
from jwt import decode as jwt_decode
from django.conf import settings
from django.contrib.auth import get_user_model
from urllib.parse import pars... | 35.971429 | 87 | 0.728356 | 163 | 1,259 | 5.398773 | 0.435583 | 0.045455 | 0.0375 | 0.059091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.193805 | 1,259 | 35 | 88 | 35.971429 | 0.862069 | 0 | 0 | 0.064516 | 0 | 0 | 0.029365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.354839 | 0 | 0.580645 | 0.032258 | 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 |
775b42741f600284c34f8b7e5447d2059d6b07b4 | 18,802 | py | Python | RI/flask_server/tapi_server/models/tapi_notification_notification.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 57 | 2018-04-09T08:56:18.000Z | 2022-03-23T08:31:06.000Z | RI/flask_server/tapi_server/models/tapi_notification_notification.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 143 | 2016-06-08T04:09:54.000Z | 2018-02-23T10:45:59.000Z | RI/flask_server/tapi_server/models/tapi_notification_notification.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 64 | 2018-03-07T07:55:17.000Z | 2022-03-28T07:14:28.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from tapi_server.models.base_model_ import Model
from tapi_server.models.tapi_common_global_class import TapiCommonGlobalClass # noqa: F401,E501
from tapi_server.model... | 41.232456 | 599 | 0.710297 | 2,015 | 18,802 | 6.389578 | 0.080397 | 0.035417 | 0.200699 | 0.047223 | 0.724738 | 0.607612 | 0.511689 | 0.401786 | 0.388971 | 0.229903 | 0 | 0.016482 | 0.225561 | 18,802 | 455 | 600 | 41.323077 | 0.867729 | 0.542761 | 0 | 0.28481 | 0 | 0 | 0.093966 | 0.013839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202532 | false | 0 | 0.088608 | 0 | 0.398734 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
620349ca2285c2b431af48857f4468ed1ccad992 | 1,285 | py | Python | app/server/calculator/Calculator/StatsCalculator.py | Nidhikokande/601_final_project | 2dbd18577a876c73bb0fcf7d10695257de44cafe | [
"MIT"
] | null | null | null | app/server/calculator/Calculator/StatsCalculator.py | Nidhikokande/601_final_project | 2dbd18577a876c73bb0fcf7d10695257de44cafe | [
"MIT"
] | null | null | null | app/server/calculator/Calculator/StatsCalculator.py | Nidhikokande/601_final_project | 2dbd18577a876c73bb0fcf7d10695257de44cafe | [
"MIT"
] | null | null | null | from .Calculator import Calculator
import statistics
from .helper import Helper
class StatsCalculator(Calculator):
@Helper.validateListInput
def mean(self,lst):
'''
mean
:param lst:
:return: mean of list
'''
return statistics.mean(lst)
@Helper.validateListI... | 21.065574 | 51 | 0.544747 | 127 | 1,285 | 5.503937 | 0.204724 | 0.197425 | 0.223176 | 0.157368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.354864 | 1,285 | 60 | 52 | 21.416667 | 0.843185 | 0.224125 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.136364 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6205295b40caa9c20ff4dd18cf7bccd245ed1d60 | 760 | py | Python | SandBox/MaxWang/test.py | JohnHZheng/Athena2019 | e318aaea895335a156df7b5cdaee40d669d46f8e | [
"MIT"
] | null | null | null | SandBox/MaxWang/test.py | JohnHZheng/Athena2019 | e318aaea895335a156df7b5cdaee40d669d46f8e | [
"MIT"
] | 2 | 2019-08-10T02:02:28.000Z | 2019-09-16T00:17:21.000Z | SandBox/MaxWang/test.py | JohnHZheng/Athena2019 | e318aaea895335a156df7b5cdaee40d669d46f8e | [
"MIT"
] | null | null | null | #!/usr/bin/env micropython
from ev3dev2.motor import LargeMotor, OUTPUT_C, OUTPUT_B, follow_for_ms
from ev3dev2.motor import SpeedDPS, SpeedRPM, SpeedRPS, SpeedDPM, MoveTank, MoveSteering, SpeedPercent
from time import sleep
from ev3dev2.sensor.lego import ColorSensor
<<<<<<< HEAD
#LeftWheel = LargeMotor(OUTPU... | 27.142857 | 102 | 0.717105 | 92 | 760 | 5.76087 | 0.521739 | 0.062264 | 0.060377 | 0.083019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080189 | 0.163158 | 760 | 27 | 103 | 28.148148 | 0.753145 | 0.322368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.363636 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
62149090a83c4e46f79f69454d55252d8da656be | 538 | py | Python | Factories/DefaultFactory.py | SUMER9999dev/Cubes-Playground | e21dc8832657b1a5356a72ba9ae5acc0ba162b3a | [
"WTFPL"
] | 1 | 2021-07-07T07:03:18.000Z | 2021-07-07T07:03:18.000Z | Factories/DefaultFactory.py | SUMER9999dev/Cubes-Playground | e21dc8832657b1a5356a72ba9ae5acc0ba162b3a | [
"WTFPL"
] | null | null | null | Factories/DefaultFactory.py | SUMER9999dev/Cubes-Playground | e21dc8832657b1a5356a72ba9ae5acc0ba162b3a | [
"WTFPL"
] | null | null | null | # import's
from Interfaces.IEvent import IEvent
from Interfaces.ICube import ICube
from Interfaces.IFactory import IFactory
from Interfaces.ICubeHandler import ICubeHandler
from Cubes.DefaultCube import DefaultCube
# factory
class DefaultFactory(IFactory):
def __init__(self, handler_base: ICubeHandler) -> None:
... | 26.9 | 59 | 0.752788 | 63 | 538 | 6.222222 | 0.380952 | 0.142857 | 0.114796 | 0.137755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006787 | 0.178439 | 538 | 19 | 60 | 28.315789 | 0.880091 | 0.02974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 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 |
6217f050a2bf1a7ab11eb57cf9444ae9a96c371f | 8,220 | py | Python | junction/conferences/migrations/0001_initial.py | theSage21/junction | ac713edcf56c41eb3f066da776a0a5d24e55b46a | [
"MIT"
] | 192 | 2015-01-12T06:21:24.000Z | 2022-03-10T09:57:37.000Z | junction/conferences/migrations/0001_initial.py | theSage21/junction | ac713edcf56c41eb3f066da776a0a5d24e55b46a | [
"MIT"
] | 621 | 2015-01-01T09:19:17.000Z | 2021-05-28T09:27:35.000Z | junction/conferences/migrations/0001_initial.py | theSage21/junction | ac713edcf56c41eb3f066da776a0a5d24e55b46a | [
"MIT"
] | 207 | 2015-01-05T16:39:06.000Z | 2022-02-15T13:18:15.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django_extensions.db.fields
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 35.73913 | 87 | 0.378102 | 503 | 8,220 | 5.962227 | 0.204771 | 0.080694 | 0.046682 | 0.073358 | 0.672224 | 0.652217 | 0.652217 | 0.623208 | 0.623208 | 0.623208 | 0 | 0.002899 | 0.538443 | 8,220 | 229 | 88 | 35.895197 | 0.787559 | 0.002555 | 0 | 0.681614 | 0 | 0 | 0.1076 | 0.033915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017937 | 0 | 0.03139 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
62212de14334b946862b03df4d7e3eef0fda8bd7 | 1,416 | py | Python | hard-gists/2310005/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/2310005/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/2310005/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | import os
import struct
import pylibemu
emu = pylibemu.Emulator()
# shellcode uses this address for the winexec call as cmdline
# modify it to see different emu_profile_output
emu.memory_write_dword(0x41414243, 0x41414141)
# this is used as exitprocess exitcode
emu.memory_write_dword(0x41414143, 0x00000021)
#b = ope... | 32.181818 | 332 | 0.778249 | 173 | 1,416 | 6.248555 | 0.537572 | 0.049954 | 0.059204 | 0.070305 | 0.051804 | 0.051804 | 0 | 0 | 0 | 0 | 0 | 0.225989 | 0.125 | 1,416 | 44 | 333 | 32.181818 | 0.646489 | 0.370763 | 0 | 0 | 0 | 0 | 0.406644 | 0.357388 | 0 | 0 | 0.054983 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6226e32aeb0be4dc0e8c928a08c87a993ed28798 | 558 | py | Python | get_instance_details.py | rafaelnize/Python_AWS_Scripts | 865c9f68ecd9f6b084a73afaff76b9200b18c378 | [
"Apache-2.0"
] | null | null | null | get_instance_details.py | rafaelnize/Python_AWS_Scripts | 865c9f68ecd9f6b084a73afaff76b9200b18c378 | [
"Apache-2.0"
] | null | null | null | get_instance_details.py | rafaelnize/Python_AWS_Scripts | 865c9f68ecd9f6b084a73afaff76b9200b18c378 | [
"Apache-2.0"
] | null | null | null | import boto
import boto.ec2
import argparse
from aws import EC2Instances
from aws import EC2Instances
parser = argparse.ArgumentParser(description='Get instance details')
parser.add_argument('-n', '--instance_name', metavar='pattern')
parser.add_argument('-i', "--instance_id", metavar='pattern')
def main():
"""... | 24.26087 | 68 | 0.716846 | 66 | 558 | 5.80303 | 0.5 | 0.052219 | 0.067885 | 0.130548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.148746 | 558 | 23 | 69 | 24.26087 | 0.795789 | 0.209677 | 0 | 0.153846 | 0 | 0 | 0.174941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.384615 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
622d934e3b36c32b8526f4a4c5e4b0fb5f191427 | 177 | py | Python | text/_geoshape/quad/_quad/_quad.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_geoshape/quad/_quad/_quad.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_geoshape/quad/_quad/_quad.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | """
*Quad*
A quad type.
"""
from dataclasses import dataclass
from .shape import QuadShape
__all__ = ["Shape"]
@dataclass
class Quad(
QuadShaping,
):
pass
| 8.428571 | 33 | 0.632768 | 19 | 177 | 5.684211 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254237 | 177 | 20 | 34 | 8.85 | 0.818182 | 0.112994 | 0 | 0 | 0 | 0 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.25 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
622f89ba2552aeaab956dfbcf9ecc9617ee0e621 | 900 | py | Python | sleepcounter/mocks/ledmatrix.py | daveshed/sleepcounter | aceaab25cc6d7af0a19573c4c42e879cd92aeacb | [
"MIT"
] | null | null | null | sleepcounter/mocks/ledmatrix.py | daveshed/sleepcounter | aceaab25cc6d7af0a19573c4c42e879cd92aeacb | [
"MIT"
] | null | null | null | sleepcounter/mocks/ledmatrix.py | daveshed/sleepcounter | aceaab25cc6d7af0a19573c4c42e879cd92aeacb | [
"MIT"
] | null | null | null | """
Mocks out led device hardware
"""
from logging import getLogger
from unittest.mock import Mock
_LOGGER = getLogger("mock matrix")
class Matrix:
"""
A mock for an led matrix device
"""
_width = 32
_height = 8
_mode = "1"
def __init__(self):
_LOGGER.info("Created mock led matri... | 18.75 | 63 | 0.556667 | 102 | 900 | 4.784314 | 0.441176 | 0.067623 | 0.061475 | 0.057377 | 0.131148 | 0.131148 | 0.131148 | 0 | 0 | 0 | 0 | 0.006803 | 0.346667 | 900 | 47 | 64 | 19.148936 | 0.823129 | 0.218889 | 0 | 0.142857 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 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 |
6238f4281b842778e9c6dc3b088dbbf62b86203b | 167,540 | py | Python | pysnmp-with-texts/Sentry4-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Sentry4-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Sentry4-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 Sentry4-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Sentry4-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:14:39 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 144.555651 | 11,591 | 0.784607 | 17,934 | 167,540 | 7.329709 | 0.050797 | 0.012309 | 0.111669 | 0.011898 | 0.555157 | 0.432412 | 0.402211 | 0.369674 | 0.32107 | 0.274247 | 0 | 0.070361 | 0.078316 | 167,540 | 1,158 | 11,592 | 144.680484 | 0.780901 | 0.001886 | 0 | 0.017452 | 0 | 0.012216 | 0.252555 | 0.03102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005236 | 0 | 0.017452 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.