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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5ce5054e60df982aaf1577b3ec0cb69ba97506a | 1,305 | py | Python | razorpay/resources/customer.py | captn3m0/razorpay | 0352f2d81696984c96e51c55a81178c663be320f | [
"MIT"
] | 3 | 2015-11-18T10:28:07.000Z | 2015-11-21T01:17:35.000Z | razorpay/resources/customer.py | captn3m0/razorpay | 0352f2d81696984c96e51c55a81178c663be320f | [
"MIT"
] | null | null | null | razorpay/resources/customer.py | captn3m0/razorpay | 0352f2d81696984c96e51c55a81178c663be320f | [
"MIT"
] | null | null | null | from .base import Resource
from ..constants.url import URL
class Customer(Resource):
def __init__(self, client=None):
super(Customer, self).__init__(client)
self.base_url = URL.CUSTOMER_URL
def fetch(self, customer_id, data={}, **kwargs):
""""
Fetch Customer for given Id
... | 26.1 | 74 | 0.568582 | 148 | 1,305 | 4.885135 | 0.297297 | 0.11065 | 0.070539 | 0.082988 | 0.229599 | 0.11065 | 0.11065 | 0.11065 | 0 | 0 | 0 | 0 | 0.320307 | 1,305 | 50 | 75 | 26.1 | 0.815107 | 0.293487 | 0 | 0 | 0 | 0 | 0.006631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d5d44f7d4d799c3a7e7d2224c5ee33ef0d9990a9 | 252 | py | Python | python/intersection_of_2_array.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 17 | 2020-06-13T15:05:55.000Z | 2022-03-16T18:28:53.000Z | python/intersection_of_2_array.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | null | null | null | python/intersection_of_2_array.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 9 | 2020-12-27T19:17:58.000Z | 2022-03-22T07:02:19.000Z | from typing import List
class Solution:
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
nums_1_unique = set(nums1)
nums_2_unique = set(nums2)
return list(nums_1_unique.intersection(nums_2_unique))
| 28 | 76 | 0.686508 | 36 | 252 | 4.583333 | 0.5 | 0.127273 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.206349 | 252 | 8 | 77 | 31.5 | 0.785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d5d651c01006dd2d3c18278c397360a56ba313d4 | 3,617 | py | Python | models/flows/order.py | fromjupiter/ReverbNN | 19c078e0d37c4f6bf85e749a31c40f36f3562145 | [
"MIT"
] | 93 | 2019-07-04T06:33:35.000Z | 2022-02-07T07:21:26.000Z | code/models/flows/order.py | DBraun/flow_synthesizer | 7df51b574765c7834ebdda8a8936b2c0d363a93a | [
"MIT"
] | 4 | 2020-02-06T12:53:05.000Z | 2022-01-17T19:10:05.000Z | code/models/flows/order.py | DBraun/flow_synthesizer | 7df51b574765c7834ebdda8a8936b2c0d363a93a | [
"MIT"
] | 17 | 2019-07-02T09:30:08.000Z | 2022-01-16T13:36:44.000Z | # -*- coding: utf-8 -*-
import torch
# Internal imports
from .flow import Flow
from .layers import Conv2dZeros, GaussianDiag
class ReverseFlow(Flow):
"""
Reverse flow layer as defined in
Density estimation using Real NVP - Dinh et al. (2016)
(https://arxiv.org/pdf/1605.08803).
"""
def __init... | 28.03876 | 71 | 0.573956 | 492 | 3,617 | 4.103659 | 0.247967 | 0.029718 | 0.032689 | 0.020802 | 0.485884 | 0.374443 | 0.322932 | 0.289252 | 0.227836 | 0.227836 | 0 | 0.032605 | 0.279237 | 3,617 | 128 | 72 | 28.257813 | 0.741849 | 0.171136 | 0 | 0.351351 | 0 | 0 | 0.016569 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 1 | 0.22973 | false | 0 | 0.040541 | 0.081081 | 0.540541 | 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 |
d5d76d6deef6cd5fe9569d7b77b2dc18bfdf431c | 10,552 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/tunnelheadtrafficendpoint_399e6e14fa13954b413c4572ebd3725e.py | rfrye-github/ixnetwork_restpy | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/tunnelheadtrafficendpoint_399e6e14fa13954b413c4572ebd3725e.py | rfrye-github/ixnetwork_restpy | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/tunnelheadtrafficendpoint_399e6e14fa13954b413c4572ebd3725e.py | rfrye-github/ixnetwork_restpy | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | [
"MIT"
] | null | null | null | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | 53.836735 | 325 | 0.696077 | 1,343 | 10,552 | 5.402829 | 0.19583 | 0.010474 | 0.017365 | 0.023291 | 0.624724 | 0.580072 | 0.557332 | 0.557332 | 0.542861 | 0.492558 | 0 | 0.010593 | 0.239575 | 10,552 | 195 | 326 | 54.112821 | 0.893694 | 0.661107 | 0 | 0.092593 | 0 | 0 | 0.119668 | 0.080408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.037037 | 0 | 0.574074 | 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 |
d5d89941345252b869e0343b51748b8b7a925b50 | 547 | py | Python | tests/fixtures.py | junteudjio/runtimedocs | 5ef9ad072d4b03616bee24019da4d0ae7de49b8a | [
"MIT"
] | 2 | 2018-09-03T07:47:15.000Z | 2018-09-13T05:00:30.000Z | tests/fixtures.py | junteudjio/runtimedocs | 5ef9ad072d4b03616bee24019da4d0ae7de49b8a | [
"MIT"
] | null | null | null | tests/fixtures.py | junteudjio/runtimedocs | 5ef9ad072d4b03616bee24019da4d0ae7de49b8a | [
"MIT"
] | 1 | 2019-10-06T00:31:31.000Z | 2019-10-06T00:31:31.000Z | import pytest
from .context import mock, builtin_str
@pytest.fixture(scope='function')
def func():
def dummy(*agrs, **kwargs):
pass
f = mock.create_autospec(spec=dummy, name='fixture_function_to_decorate')
return f
@pytest.fixture(scope='function', autouse=True)
@mock.patch('{builtin}.open'.forma... | 27.35 | 77 | 0.716636 | 76 | 547 | 4.934211 | 0.460526 | 0.085333 | 0.096 | 0.138667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157221 | 547 | 19 | 78 | 28.789474 | 0.813449 | 0.235832 | 0 | 0 | 0 | 0 | 0.140436 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.166667 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d5f04747f2054204449c75f47e24e5e7cbfc19d6 | 409 | py | Python | accelerator/models/judging_round.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/models/judging_round.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/models/judging_round.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from __future__ import unicode_literals
import swapper
from accelerator_abstract.models.base_judging_round import BaseJudgingRound
class JudgingRound(BaseJudgingRound):
class Meta(BaseJudgingRound.Meta):
swappable = swapper.swappable_setting(BaseJu... | 27.266667 | 78 | 0.721271 | 39 | 409 | 7.307692 | 0.692308 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012539 | 0.220049 | 409 | 14 | 79 | 29.214286 | 0.880878 | 0.122249 | 0 | 0 | 0 | 0 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 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 |
d5f1d14a19b051aa011f71eefdc1fa3db9f45630 | 134 | py | Python | bakpdlbot/__init__.py | rasher/BakpdlBot | 86941df1a92f870f2701d674d41c60ab79f4e673 | [
"MIT"
] | null | null | null | bakpdlbot/__init__.py | rasher/BakpdlBot | 86941df1a92f870f2701d674d41c60ab79f4e673 | [
"MIT"
] | null | null | null | bakpdlbot/__init__.py | rasher/BakpdlBot | 86941df1a92f870f2701d674d41c60ab79f4e673 | [
"MIT"
] | 2 | 2021-12-21T16:21:46.000Z | 2022-01-22T21:45:53.000Z | """Top-level package for BakpdlBot."""
__author__ = """Mick Boekhoff"""
__email__ = 'mickboekhoff@hotmail.com'
__version__ = '0.1.0'
| 22.333333 | 38 | 0.701493 | 16 | 134 | 5.125 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.11194 | 134 | 5 | 39 | 26.8 | 0.663866 | 0.238806 | 0 | 0 | 0 | 0 | 0.4375 | 0.25 | 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 |
910def4e47add096e31b3e2350c1440aeb04eedb | 6,101 | py | Python | venv/Lib/site-packages/traits/examples/introduction/2_initialization.py | richung99/digitizePlots | 6b408c820660a415a289726e3223e8f558d3e18b | [
"MIT"
] | 1 | 2022-01-18T17:56:51.000Z | 2022-01-18T17:56:51.000Z | venv/Lib/site-packages/traits/examples/introduction/2_initialization.py | richung99/digitizePlots | 6b408c820660a415a289726e3223e8f558d3e18b | [
"MIT"
] | null | null | null | venv/Lib/site-packages/traits/examples/introduction/2_initialization.py | richung99/digitizePlots | 6b408c820660a415a289726e3223e8f558d3e18b | [
"MIT"
] | null | null | null | # (C) Copyright 2005-2021 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The license
# is also available online at... | 31.611399 | 77 | 0.680708 | 874 | 6,101 | 4.647597 | 0.338673 | 0.023634 | 0.006155 | 0.007386 | 0.185623 | 0.162974 | 0.156081 | 0.140325 | 0.140325 | 0.114229 | 0 | 0.010638 | 0.19882 | 6,101 | 192 | 78 | 31.776042 | 0.820376 | 0.867727 | 0 | 0 | 0 | 0 | 0.042416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0.043478 | 0.565217 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
911ccc1dd9e51c6e0ff1c95e2993fbc7c533e4d3 | 333 | py | Python | auth/forms.py | amalshaji/amalytics | 008034eb8e613da14a522ae5762c50922b2a4b6f | [
"MIT"
] | 4 | 2021-06-18T03:33:07.000Z | 2021-07-21T22:17:10.000Z | auth/forms.py | amalshaji/amalytics | 008034eb8e613da14a522ae5762c50922b2a4b6f | [
"MIT"
] | 6 | 2021-07-11T03:29:37.000Z | 2021-07-11T03:29:43.000Z | auth/forms.py | amalshaji/amalytics | 008034eb8e613da14a522ae5762c50922b2a4b6f | [
"MIT"
] | 1 | 2021-07-10T07:00:56.000Z | 2021-07-10T07:00:56.000Z | from flask_wtf import FlaskForm
from wtforms import PasswordField
from wtforms import StringField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
username = StringField("Username", validators=[DataRequired()])
password = PasswordField(
"Password",
validators=[DataRequir... | 25.615385 | 67 | 0.744745 | 31 | 333 | 7.967742 | 0.451613 | 0.133603 | 0.137652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174174 | 333 | 12 | 68 | 27.75 | 0.898182 | 0 | 0 | 0 | 0 | 0 | 0.048048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.3 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
911f8991cb8801a5a110797225e2af9bedc3d54f | 147 | py | Python | Test/test.py | Rainstyd/rainsty | 9a0d5f46c20faf909c4194f315fb9960652cffc6 | [
"Apache-2.0"
] | 1 | 2020-03-25T01:13:35.000Z | 2020-03-25T01:13:35.000Z | Test/test.py | Rainstyed/rainsty | f74e0ccaf16d1871c9d1870bd8a7c8a63243fcf5 | [
"Apache-2.0"
] | 1 | 2022-01-06T23:49:21.000Z | 2022-01-06T23:49:21.000Z | Test/test.py | rainstyd/rainsty | 9a0d5f46c20faf909c4194f315fb9960652cffc6 | [
"Apache-2.0"
] | 1 | 2020-03-20T08:48:36.000Z | 2020-03-20T08:48:36.000Z | # test.py
from datetime import datetime
def main():
print(datetime.now())
print('Hello World!')
if __name__ == '__main__':
main()
| 11.307692 | 29 | 0.62585 | 18 | 147 | 4.666667 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 147 | 12 | 30 | 12.25 | 0.736842 | 0.047619 | 0 | 0 | 0 | 0 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0.333333 | 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 |
9124698f93c5a6edfa885d7a843914b4c72f884b | 229 | py | Python | moto/sns/__init__.py | Lilja/moto | 3fca2c3b3126d18d07d743cb47feaccf264ab43e | [
"Apache-2.0"
] | null | null | null | moto/sns/__init__.py | Lilja/moto | 3fca2c3b3126d18d07d743cb47feaccf264ab43e | [
"Apache-2.0"
] | null | null | null | moto/sns/__init__.py | Lilja/moto | 3fca2c3b3126d18d07d743cb47feaccf264ab43e | [
"Apache-2.0"
] | null | null | null | import os
from .models import sns_backends
from ..core.models import base_decorator
region_name = os.environ.get("AWS_DEFAULT_REGION", "us-east-1")
sns_backend = sns_backends[region_name]
mock_sns = base_decorator(sns_backends)
| 28.625 | 63 | 0.812227 | 36 | 229 | 4.861111 | 0.555556 | 0.188571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.091703 | 229 | 7 | 64 | 32.714286 | 0.836538 | 0 | 0 | 0 | 0 | 0 | 0.117904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9127dbbe7b52b6b231a5b4bac50b1f48ba1a7aff | 1,394 | py | Python | tests/conftest.py | ichigozero/traininfojp | cb6f4888369681cca3acac7d8e781dda4df4c935 | [
"MIT"
] | null | null | null | tests/conftest.py | ichigozero/traininfojp | cb6f4888369681cca3acac7d8e781dda4df4c935 | [
"MIT"
] | null | null | null | tests/conftest.py | ichigozero/traininfojp | cb6f4888369681cca3acac7d8e781dda4df4c935 | [
"MIT"
] | null | null | null | import os
import pytest
from bs4 import BeautifulSoup
from traininfojp import (
RailDetails,
RailList,
RailSummary,
)
def test_file(filename):
path = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'test_files',
)
with open(os.path.join(path, filename), 'r') as f:
... | 19.633803 | 79 | 0.726686 | 182 | 1,394 | 5.269231 | 0.203297 | 0.122002 | 0.100104 | 0.12513 | 0.416058 | 0.096976 | 0 | 0 | 0 | 0 | 0 | 0.000858 | 0.163558 | 1,394 | 70 | 80 | 19.914286 | 0.821612 | 0 | 0 | 0.1875 | 0 | 0 | 0.07891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
9135035a53c1e47333733c6a01dbbe11faff27e5 | 5,059 | py | Python | alipay/aop/api/response/AlipayPcreditLoanCollateralCarQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayPcreditLoanCollateralCarQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayPcreditLoanCollateralCarQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayPcreditLoanCollateralCarQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayPcreditLoanCollateralCarQueryResponse, self).__init__()
self._address = N... | 28.744318 | 116 | 0.642419 | 664 | 5,059 | 4.516566 | 0.076807 | 0.074692 | 0.074692 | 0.050684 | 0.205735 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000272 | 0.273572 | 5,059 | 175 | 117 | 28.908571 | 0.815782 | 0.008302 | 0 | 0.10596 | 0 | 0 | 0.065803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225166 | false | 0 | 0.013245 | 0.10596 | 0.350993 | 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 |
913ca167b3590f16d00b9a08e3e41ef38ec4857e | 826 | py | Python | testcases/elichika_tests/node/Unpooling2D.py | vermashresth/chainer-compiler | 5f5ad365d14398d6ae0214fa012eb10360db8e7e | [
"MIT"
] | 116 | 2019-01-25T03:54:44.000Z | 2022-03-08T00:11:14.000Z | testcases/elichika_tests/node/Unpooling2D.py | vermashresth/chainer-compiler | 5f5ad365d14398d6ae0214fa012eb10360db8e7e | [
"MIT"
] | 431 | 2019-01-25T10:18:44.000Z | 2020-06-17T05:28:55.000Z | testcases/elichika_tests/node/Unpooling2D.py | vermashresth/chainer-compiler | 5f5ad365d14398d6ae0214fa012eb10360db8e7e | [
"MIT"
] | 26 | 2019-01-25T07:21:09.000Z | 2021-11-26T04:24:35.000Z | # coding: utf-8
import chainer
import chainer.functions as F
class Unpooling2D(chainer.Chain):
def forward(self, x):
y = F.unpooling_2d(x, 2, cover_all=False)
return y
class Unpooling2D_3x4(chainer.Chain):
def forward(self, x):
y = F.unpooling_2d(x, (3, 4), cover_all=False)
... | 23.6 | 68 | 0.642857 | 113 | 826 | 4.539823 | 0.469027 | 0.099415 | 0.146199 | 0.210526 | 0.440546 | 0.362573 | 0.362573 | 0.362573 | 0.159844 | 0.159844 | 0 | 0.053731 | 0.188862 | 826 | 34 | 69 | 24.294118 | 0.71194 | 0.094431 | 0 | 0.2 | 0 | 0 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.55 | 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 |
914abafe66d928a67735cf891c101bb439281767 | 832 | py | Python | cert_manager/tests/common.py | anshumgargdd/integrations-extras | a16b0c5324cc8b69e289cdf46c064d1c5574a415 | [
"BSD-3-Clause"
] | null | null | null | cert_manager/tests/common.py | anshumgargdd/integrations-extras | a16b0c5324cc8b69e289cdf46c064d1c5574a415 | [
"BSD-3-Clause"
] | null | null | null | cert_manager/tests/common.py | anshumgargdd/integrations-extras | a16b0c5324cc8b69e289cdf46c064d1c5574a415 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2019
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from datadog_checks.base.stubs import aggregator
EXPECTED_METRICS = {
'cert_manager.certificate.ready_status': aggregator.GAUGE,
'cert_manager.certificate.expiration_timestamp': aggregator.GAUGE,
'cer... | 41.6 | 80 | 0.783654 | 103 | 832 | 6.087379 | 0.495146 | 0.140351 | 0.151515 | 0.207337 | 0.424242 | 0.424242 | 0.314195 | 0.250399 | 0.175439 | 0 | 0 | 0.006711 | 0.104567 | 832 | 19 | 81 | 43.789474 | 0.834899 | 0.120192 | 0 | 0 | 0 | 0 | 0.537088 | 0.482143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
91526f193ee126de03d683619d2f19f5b3546618 | 857 | py | Python | multi-pose/CustomRenderers.py | shbe-aau/multi-pose-estimation | 0425ed9dcc7969f0281cb435615abc33c640e157 | [
"MIT"
] | 4 | 2021-12-28T09:25:06.000Z | 2022-01-13T12:55:44.000Z | multi-pose/CustomRenderers.py | shbe-aau/multi-view-pose-estimation | 22cea6cd09684fe655fb2214bc14856f589048e1 | [
"MIT"
] | null | null | null | multi-pose/CustomRenderers.py | shbe-aau/multi-view-pose-estimation | 22cea6cd09684fe655fb2214bc14856f589048e1 | [
"MIT"
] | 1 | 2022-01-13T13:00:15.000Z | 2022-01-13T13:00:15.000Z | import torch
import torch.nn as nn
from pytorch3d.renderer.blending import softmax_rgb_blend
from pytorch3d.renderer.blending import sigmoid_alpha_blend
class HardDepthShader(nn.Module):
def __init__(self):
super().__init__()
def forward(self, fragments, meshes, **kwargs) -> torch.Tensor:
imag... | 34.28 | 95 | 0.700117 | 109 | 857 | 5.256881 | 0.431193 | 0.095986 | 0.078534 | 0.101222 | 0.34904 | 0.160558 | 0.160558 | 0.160558 | 0 | 0 | 0 | 0.012894 | 0.185531 | 857 | 24 | 96 | 35.708333 | 0.808023 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.210526 | 0 | 0.631579 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e670c4c8354f4067eb21c9b1fce708147c162967 | 1,779 | py | Python | tensorflow/contrib/data/python/ops/random_ops.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 71 | 2017-05-25T16:02:15.000Z | 2021-06-09T16:08:08.000Z | tensorflow/contrib/data/python/ops/random_ops.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/contrib/data/python/ops/random_ops.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 26 | 2017-04-12T16:25:44.000Z | 2018-10-30T10:10:15.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 33.566038 | 80 | 0.730185 | 236 | 1,779 | 5.309322 | 0.466102 | 0.047885 | 0.09577 | 0.069433 | 0.128492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008598 | 0.150084 | 1,779 | 52 | 81 | 34.211538 | 0.820106 | 0.433952 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.333333 | 0.148148 | 0.703704 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
e67825e4bae70e874b5303cdf700fe1e985924c8 | 1,990 | py | Python | src/abaqus/DisplayGroup/LeafFromNodeLabels.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/DisplayGroup/LeafFromNodeLabels.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/DisplayGroup/LeafFromNodeLabels.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .Leaf import Leaf
class LeafFromNodeLabels(Leaf):
"""The LeafFromNodeLabels object can be used whenever a Leaf object is expected as an
argument. Leaf objects are used to specify the items in a display group. Leaf objects
are constructed as temporary objects, which are ... | 33.166667 | 101 | 0.654271 | 236 | 1,990 | 5.436441 | 0.419492 | 0.015588 | 0.025721 | 0.046765 | 0.305534 | 0.272798 | 0.272798 | 0.169914 | 0.169914 | 0.169914 | 0 | 0.005575 | 0.278894 | 1,990 | 59 | 102 | 33.728814 | 0.888502 | 0.745729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.714286 | 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 |
e683ebd373b7cb16aaaeaf19e4cbc5b01566dbf5 | 2,884 | py | Python | i18n_model/admin.py | anndro/django-i18n-model | 9e260a993327751598b6941c57d0235b6f338cab | [
"BSD-2-Clause"
] | null | null | null | i18n_model/admin.py | anndro/django-i18n-model | 9e260a993327751598b6941c57d0235b6f338cab | [
"BSD-2-Clause"
] | null | null | null | i18n_model/admin.py | anndro/django-i18n-model | 9e260a993327751598b6941c57d0235b6f338cab | [
"BSD-2-Clause"
] | null | null | null | from django.conf import settings
from django.contrib.auth import get_permission_codename
from django.forms.models import BaseInlineFormSet
def i18n_formset_factory(languages=[]):
# Create an ad-hoc form set
class I18nFormSet(BaseInlineFormSet):
def __init__(self, *args, **kwargs):
kwargs['... | 41.797101 | 79 | 0.674757 | 372 | 2,884 | 5.040323 | 0.306452 | 0.026133 | 0.0448 | 0.0384 | 0.365333 | 0.277333 | 0.277333 | 0.277333 | 0.277333 | 0.250667 | 0 | 0.012567 | 0.227462 | 2,884 | 68 | 80 | 42.411765 | 0.828995 | 0.130721 | 0 | 0.212766 | 0 | 0 | 0.029212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212766 | false | 0 | 0.06383 | 0 | 0.574468 | 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 |
e68622d4f95881f4a4d4cad57f0d45928bdfdc84 | 294 | py | Python | badbrowser/urls.py | hzlf/django-easy-badbrowser | a9d905fc10b6f8ba4c441eca8001b60462657be5 | [
"MIT"
] | null | null | null | badbrowser/urls.py | hzlf/django-easy-badbrowser | a9d905fc10b6f8ba4c441eca8001b60462657be5 | [
"MIT"
] | null | null | null | badbrowser/urls.py | hzlf/django-easy-badbrowser | a9d905fc10b6f8ba4c441eca8001b60462657be5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from .views import ignore, UnsupportedBrowser
urlpatterns = patterns("",
#url(r"^$", UnsupportedBrowser.as_view(), name="django-badbrowser-unsupported"),
url(r"^ignore/$", ignore, name="django-badbrowser-ignore"),
)
| 26.727273 | 84 | 0.697279 | 34 | 294 | 6 | 0.588235 | 0.107843 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.122449 | 294 | 10 | 85 | 29.4 | 0.786822 | 0.340136 | 0 | 0 | 0 | 0 | 0.172775 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e6882a307c060b0b56c64ed9935260128932c7c5 | 3,011 | py | Python | demom2m100.py | AK391/m2m100 | f81abbe033ff56dff6271638d6502ac9462ef7bb | [
"MIT"
] | null | null | null | demom2m100.py | AK391/m2m100 | f81abbe033ff56dff6271638d6502ac9462ef7bb | [
"MIT"
] | 1 | 2021-06-13T01:02:01.000Z | 2021-06-13T01:02:01.000Z | demom2m100.py | AK391/m2m100 | f81abbe033ff56dff6271638d6502ac9462ef7bb | [
"MIT"
] | 1 | 2021-05-06T08:33:54.000Z | 2021-05-06T08:33:54.000Z | from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
import gradio as gr
model = M2M100ForConditionalGeneration.from_pretrained("facebook/m2m100_418M")
tokenizer = M2M100Tokenizer.from_pretrained("facebook/m2m100_418M")
def translate(text, inlang, outlang):
tokenizer.src_lang = inlang
encoded_... | 77.205128 | 230 | 0.706742 | 417 | 3,011 | 5.059952 | 0.769784 | 0.011374 | 0.021327 | 0.028436 | 0.054976 | 0.024645 | 0 | 0 | 0 | 0 | 0 | 0.020865 | 0.124543 | 3,011 | 39 | 231 | 77.205128 | 0.77959 | 0 | 0 | 0 | 0 | 0.3125 | 0.692563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e69a7cc868d278888616c2fd97398aeed1c42ec7 | 9,643 | py | Python | importer/views_api.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | null | null | null | importer/views_api.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | null | null | null | importer/views_api.py | brand-fabian/varfish-server | 6a084d891d676ff29355e72a29d4f7b207220283 | [
"MIT"
] | null | null | null | """API views for the importer models."""
import logging
from bgjobs.models import BackgroundJob
from django.contrib.auth import get_user_model
from django.db import transaction
from projectroles.views import ProjectPermissionMixin
from projectroles.views_api import SODARAPIBaseProjectMixin, SODARAPIGenericProjectMixi... | 33.023973 | 99 | 0.69916 | 951 | 9,643 | 6.885384 | 0.174553 | 0.064142 | 0.046732 | 0.043983 | 0.50336 | 0.498778 | 0.498778 | 0.447465 | 0.411729 | 0.355834 | 0 | 0 | 0.217049 | 9,643 | 291 | 100 | 33.137457 | 0.867285 | 0.105569 | 0 | 0.517949 | 0 | 0 | 0.128172 | 0.038943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087179 | false | 0 | 0.394872 | 0.005128 | 0.938462 | 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 |
e6a3b7cb7ce1e3d16f61a93cf370e1331cd06ca1 | 351 | py | Python | nipy/algorithms/statistics/classification.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | 1 | 2015-08-22T16:14:45.000Z | 2015-08-22T16:14:45.000Z | nipy/algorithms/statistics/classification.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | null | null | null | nipy/algorithms/statistics/classification.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | null | null | null | """
TODO
"""
__docformat__ = 'restructuredtext'
from nipy.fixes.scipy.stats.models.model import Model
class Classifier(Model):
"""
TODO
"""
def learn(self, **keywords):
"""
:Parameters:
keywords : ``dict``
TODO
:Returns: ``None``
"""
... | 15.954545 | 53 | 0.495726 | 29 | 351 | 5.862069 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.353276 | 351 | 21 | 54 | 16.714286 | 0.748899 | 0.225071 | 0 | 0 | 0 | 0 | 0.079208 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e6a99d5a20da069b77e35ffdd0c1321d9c0307c8 | 21,873 | py | Python | ocpp/v201/datatypes.py | mdwcrft/ocpp | 2945d49ad93e52f9ac2ba6467fc2b7b7e06df9c5 | [
"MIT"
] | null | null | null | ocpp/v201/datatypes.py | mdwcrft/ocpp | 2945d49ad93e52f9ac2ba6467fc2b7b7e06df9c5 | [
"MIT"
] | null | null | null | ocpp/v201/datatypes.py | mdwcrft/ocpp | 2945d49ad93e52f9ac2ba6467fc2b7b7e06df9c5 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Optional
from ocpp.v201 import enums
@dataclass
class ACChargingParametersType:
"""
EV AC charging parameters.
ACChargingParametersType is used by: ChargingNeedsType
"""
energy_amount: int
ev_min_current: int
ev_max_current: int
ev... | 26.970407 | 79 | 0.751017 | 2,059 | 21,873 | 7.874696 | 0.231666 | 0.049217 | 0.028124 | 0.017762 | 0.327001 | 0.267855 | 0.257802 | 0.242198 | 0.233194 | 0.215246 | 0 | 0.001239 | 0.18836 | 21,873 | 810 | 80 | 27.003704 | 0.912071 | 0.415078 | 0 | 0.43956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.005495 | 0.008242 | 0 | 0.843407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e6aff5b793e1f0e2da00b2e86c513ebf0d5a198e | 2,212 | py | Python | wiki_core/api/v1/apps/blog/admin.py | lubchenko05/WikiApi | 7e5a094a1c378d8ba2fd1a3078146bd523e765f6 | [
"MIT"
] | null | null | null | wiki_core/api/v1/apps/blog/admin.py | lubchenko05/WikiApi | 7e5a094a1c378d8ba2fd1a3078146bd523e765f6 | [
"MIT"
] | null | null | null | wiki_core/api/v1/apps/blog/admin.py | lubchenko05/WikiApi | 7e5a094a1c378d8ba2fd1a3078146bd523e765f6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.utils.safestring import mark_safe
from api.v1.apps.blog.models import Post, PostContent
class PostContentAdmin(admin.ModelAdmin):
actions = None
list_display = ('id', 'post', 'author', 'created', 'text', 'is_published')
fieldsets = [
(None, {'fields': ... | 27.65 | 78 | 0.601266 | 240 | 2,212 | 5.370833 | 0.35 | 0.06827 | 0.076028 | 0.09775 | 0.342901 | 0.297905 | 0.240497 | 0.240497 | 0.240497 | 0.240497 | 0 | 0.000619 | 0.269439 | 2,212 | 80 | 79 | 27.65 | 0.79703 | 0.007685 | 0 | 0.333333 | 0 | 0 | 0.171376 | 0.049681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0.116667 | 0.683333 | 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 |
e6bf78445cb97c1b8b27b48a37454778d4a40a30 | 1,023 | py | Python | tests/acceptance/test_shortcuts.py | sunnycloudy/python-inquirer_plus | aa962dc5a0f661a3efc05e1eb25188b287e2b665 | [
"MIT"
] | 1 | 2019-12-15T09:30:01.000Z | 2019-12-15T09:30:01.000Z | tests/acceptance/test_shortcuts.py | worldofpeace/python-inquirer | c1b3bc776cec72b5039068ecbac509ce90d2e123 | [
"MIT"
] | null | null | null | tests/acceptance/test_shortcuts.py | worldofpeace/python-inquirer | c1b3bc776cec72b5039068ecbac509ce90d2e123 | [
"MIT"
] | 1 | 2019-12-15T10:12:48.000Z | 2019-12-15T10:12:48.000Z | import unittest
import pexpect
from readchar import key
class ShortcutsTest(unittest.TestCase):
def setUp(self):
self.sut = pexpect.spawn('python examples/shortcuts.py')
def set_username(self, name='foo'):
self.sut.expect("Enter your username", timeout=1)
self.sut.sendline(name)
... | 27.648649 | 72 | 0.644184 | 137 | 1,023 | 4.729927 | 0.343066 | 0.12963 | 0.100309 | 0.115741 | 0.236111 | 0.135802 | 0.101852 | 0.101852 | 0.101852 | 0 | 0 | 0.006361 | 0.231672 | 1,023 | 36 | 73 | 28.416667 | 0.818066 | 0 | 0 | 0.107143 | 0 | 0 | 0.147605 | 0.020528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.142857 | 0.107143 | 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 |
e6c269a0cdef73a2afde6cc634a655fc302b3f52 | 157 | py | Python | imageio/gray.py | dineshkumar2509/learning-python | e8af11ff0b396da4c3f2cfe21d14131bae4b2adb | [
"MIT"
] | 86 | 2015-06-13T16:53:55.000Z | 2022-03-24T20:56:42.000Z | imageio/gray.py | pei-zheng-yi/learning-python | 55e350dfe44cf04f7d4408e76e72d2f467bd42ce | [
"MIT"
] | 9 | 2015-05-27T07:52:44.000Z | 2022-03-29T21:52:40.000Z | imageio/gray.py | pei-zheng-yi/learning-python | 55e350dfe44cf04f7d4408e76e72d2f467bd42ce | [
"MIT"
] | 124 | 2015-12-10T01:17:18.000Z | 2021-11-08T04:03:38.000Z | #!/usr/bin/env python
import imageio
im = imageio.imread('akhead.png')
print(im.shape) # im is a numpy array
imageio.imwrite('akhead-gray.jpg', im[:,:,0])
| 19.625 | 45 | 0.694268 | 26 | 157 | 4.192308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.11465 | 157 | 7 | 46 | 22.428571 | 0.776978 | 0.254777 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e6ce7863e841a66c7131992da7a4e9b14d83310f | 649 | py | Python | var/spack/repos/builtin/packages/perl-extutils-pkgconfig/package.py | adrianjhpc/spack | 0a9e4fcee57911f2db586aa50c8873d9cca8de92 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 2 | 2020-10-15T01:08:42.000Z | 2021-10-18T01:28:18.000Z | var/spack/repos/builtin/packages/perl-extutils-pkgconfig/package.py | adrianjhpc/spack | 0a9e4fcee57911f2db586aa50c8873d9cca8de92 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 2 | 2019-07-30T10:12:28.000Z | 2019-12-17T09:02:27.000Z | var/spack/repos/builtin/packages/perl-extutils-pkgconfig/package.py | adrianjhpc/spack | 0a9e4fcee57911f2db586aa50c8873d9cca8de92 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 5 | 2019-07-30T09:42:14.000Z | 2021-01-25T05:39:20.000Z | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PerlExtutilsPkgconfig(PerlPackage):
"""simplistic interface to pkg-config"""
homepage... | 36.055556 | 96 | 0.744222 | 82 | 649 | 5.878049 | 0.792683 | 0.105809 | 0.058091 | 0.070539 | 0.099585 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091228 | 0.121726 | 649 | 17 | 97 | 38.176471 | 0.754386 | 0.345146 | 0 | 0 | 0 | 0.333333 | 0.581731 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e6d32f316b39bb1ee733298bf972e87d4e1dec36 | 2,000 | py | Python | src/screens/ScreenBase.py | Taffer/skelly | e29725d198306a57610c52774093e5b04bc14608 | [
"MIT"
] | null | null | null | src/screens/ScreenBase.py | Taffer/skelly | e29725d198306a57610c52774093e5b04bc14608 | [
"MIT"
] | 6 | 2021-04-15T11:59:09.000Z | 2021-04-18T13:06:50.000Z | src/screens/ScreenBase.py | Taffer/skelly | e29725d198306a57610c52774093e5b04bc14608 | [
"MIT"
] | null | null | null | ''' Skelly screen base class.
By Chris Herborth (https://github.com/Taffer)
MIT license, see LICENSE.md for details.
'''
import pygame
from ..ui import ImageButton
from ..ui import Label
WHITE = pygame.Color('white')
class ScreenBase:
def __init__(self, game) -> None:
''' Initialize.
@param g... | 26.315789 | 108 | 0.5885 | 246 | 2,000 | 4.670732 | 0.321138 | 0.062663 | 0.078329 | 0.104439 | 0.360313 | 0.315057 | 0.18799 | 0.18799 | 0 | 0 | 0 | 0.006316 | 0.2875 | 2,000 | 75 | 109 | 26.666667 | 0.8 | 0.154 | 0 | 0.232558 | 0 | 0 | 0.057681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0.186047 | 0.069767 | 0 | 0.348837 | 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 |
e6d48bdfb377bfceba6b7236f619c397134b49c9 | 5,605 | py | Python | housemonitor/inputs/computermonitor/test/computermonitor_test.py | gary-pickens/HouseMonitor | 4b169bdbeed9013e1824d4bb929970ae0c27a6c9 | [
"MIT"
] | 1 | 2021-06-28T06:52:03.000Z | 2021-06-28T06:52:03.000Z | housemonitor/inputs/computermonitor/test/computermonitor_test.py | gary-pickens/HouseMonitor | 4b169bdbeed9013e1824d4bb929970ae0c27a6c9 | [
"MIT"
] | null | null | null | housemonitor/inputs/computermonitor/test/computermonitor_test.py | gary-pickens/HouseMonitor | 4b169bdbeed9013e1824d4bb929970ae0c27a6c9 | [
"MIT"
] | null | null | null | '''
Created on Apr 12, 2013
@author: Gary
'''
from housemonitor.inputs import dataenvelope
from housemonitor.inputs.computermonitor.computermonitor import ComputerMonitor
from housemonitor.inputs.dataenvelope import DataEnvelope
from housemonitor.lib.common import Common
from housemonitor.lib.constants import Constant... | 42.142857 | 244 | 0.645495 | 742 | 5,605 | 4.807278 | 0.22372 | 0.050463 | 0.016821 | 0.025231 | 0.56434 | 0.552565 | 0.477993 | 0.477993 | 0.458088 | 0.415756 | 0 | 0.106658 | 0.212132 | 5,605 | 132 | 245 | 42.462121 | 0.701087 | 0.691704 | 0 | 0.421053 | 0 | 0.315789 | 0.529162 | 0.038275 | 0 | 0 | 0.072904 | 0 | 0 | 1 | 0.052632 | false | 0.026316 | 0.315789 | 0 | 0.421053 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e6ec1c9e6628b20534300f921bca3ea6e0076393 | 293 | py | Python | nes/processors/cpu/instructions/increment/increment_register.py | Hexadorsimal/pynes | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | 1 | 2017-05-13T18:57:09.000Z | 2017-05-13T18:57:09.000Z | nes/processors/cpu/instructions/increment/increment_register.py | Hexadorsimal/py6502 | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | 7 | 2020-10-24T17:16:56.000Z | 2020-11-01T14:10:23.000Z | nes/processors/cpu/instructions/increment/increment_register.py | Hexadorsimal/pynes | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | null | null | null | from .increment import IncrementInstruction
class IncrementRegisterInstruction(IncrementInstruction):
register_name = None
def increment(self, processor):
register = processor.registers[self.register_name]
register.value += self.amount
return register.value
| 26.636364 | 58 | 0.74744 | 27 | 293 | 8.037037 | 0.592593 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187713 | 293 | 10 | 59 | 29.3 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 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 |
e6fc7ba38caee7abeb69791d440892dd0211d504 | 218 | py | Python | test/test.py | lioramilbaum/dpline | 58b44392db84c05f4e238d4c3b982909e1dc002d | [
"Apache-2.0"
] | 1 | 2019-02-28T09:51:53.000Z | 2019-02-28T09:51:53.000Z | test/test.py | lioramilbaum/dpline | 58b44392db84c05f4e238d4c3b982909e1dc002d | [
"Apache-2.0"
] | 27 | 2019-01-15T12:39:26.000Z | 2019-01-26T19:19:47.000Z | test/test.py | devopsloft/dpline | 2b136bca959ff40a4db2d568f3971279c81a9527 | [
"Apache-2.0"
] | 1 | 2019-02-22T15:43:01.000Z | 2019-02-22T15:43:01.000Z | #!/usr/bin/env python3
import requests
def main():
requests.post(
"http://localhost:5601/api/sample_data/flights",
headers={"kbn-xsrf": "reporting"}
)
if __name__ == "__main__":
main()
| 14.533333 | 56 | 0.605505 | 25 | 218 | 4.92 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029586 | 0.224771 | 218 | 14 | 57 | 15.571429 | 0.698225 | 0.09633 | 0 | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.25 | 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 |
fc00777469e6698b0f8d583eebe63f8768c1df39 | 1,125 | py | Python | dev/Tickets/SF-89.py | jfeng08/CoolProp | ac96aa48c8ced6fa3c7330b54b9409e0e021d618 | [
"MIT"
] | 12 | 2015-04-21T07:43:09.000Z | 2021-11-09T08:35:58.000Z | dev/Tickets/SF-89.py | jfeng08/CoolProp | ac96aa48c8ced6fa3c7330b54b9409e0e021d618 | [
"MIT"
] | 32 | 2015-01-04T05:05:05.000Z | 2017-12-13T18:03:29.000Z | dev/Tickets/SF-89.py | jfeng08/CoolProp | ac96aa48c8ced6fa3c7330b54b9409e0e021d618 | [
"MIT"
] | 8 | 2015-01-01T21:15:37.000Z | 2020-08-05T13:31:50.000Z | '''
Created on 20 Sep 2013
@author: jowr
'''
# New example with R407F mixture
from pyrp.refpropClasses import RefpropSI
import CoolProp.CoolProp as cp
p = 30000
T = 273.15
ref = False
if ref:
xkg=[0.473194694453358,0.205109095413331,0.321696210133311]
names="R32|R125|R134a"
RP = RefpropSI()
RP.SETU... | 33.088235 | 96 | 0.677333 | 222 | 1,125 | 3.256757 | 0.337838 | 0.029046 | 0.033195 | 0.049793 | 0.085754 | 0.033195 | 0 | 0 | 0 | 0 | 0 | 0.258403 | 0.153778 | 1,125 | 34 | 97 | 33.088235 | 0.50105 | 0.174222 | 0 | 0 | 0 | 0.043478 | 0.142207 | 0.094425 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.086957 | 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 |
fc0d7bb54b642ae3399dd5609caf57a42d11d466 | 6,047 | py | Python | python_samples/Python_Examples/ibm_db_dbi/ibm_db_dbi_tools.py | adrianmahjour/db2-samples | ff984aec81c5c08ce28443d896c0818cfae4f789 | [
"Apache-2.0"
] | 54 | 2019-08-02T13:15:07.000Z | 2022-03-21T17:36:48.000Z | python_samples/Python_Examples/ibm_db_dbi/ibm_db_dbi_tools.py | junsulee75/db2-samples | d9ee03101cad1f9167eebc1609b4151559124017 | [
"Apache-2.0"
] | 13 | 2019-07-26T13:51:16.000Z | 2022-03-25T21:43:52.000Z | python_samples/Python_Examples/ibm_db_dbi/ibm_db_dbi_tools.py | junsulee75/db2-samples | d9ee03101cad1f9167eebc1609b4151559124017 | [
"Apache-2.0"
] | 75 | 2019-07-20T04:53:24.000Z | 2022-03-23T20:56:55.000Z | #-------------------------------------------------------------------------------------------------#
# NAME: ibm_db_tools.py #
# #
# PURPOSE: This fi... | 66.450549 | 99 | 0.435423 | 518 | 6,047 | 5.046332 | 0.436293 | 0.011477 | 0.015302 | 0.008416 | 0.07039 | 0.030604 | 0.030604 | 0.030604 | 0 | 0 | 0 | 0.00356 | 0.442533 | 6,047 | 90 | 100 | 67.188889 | 0.771878 | 0.832148 | 0 | 0.24 | 0 | 0 | 0.212486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.08 | 0.08 | 0 | 0.24 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fc12386ec6262395fe470b57aee5ca81e53aa465 | 15,606 | py | Python | sdk/python/pulumi_azure_native/apimanagement/v20180601preview/logger.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/apimanagement/v20180601preview/logger.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/apimanagement/v20180601preview/logger.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 47.43465 | 1,635 | 0.659746 | 1,785 | 15,606 | 5.518768 | 0.096359 | 0.073698 | 0.062532 | 0.046696 | 0.760836 | 0.670084 | 0.618211 | 0.452035 | 0.419754 | 0.379555 | 0 | 0.014775 | 0.232347 | 15,606 | 328 | 1,636 | 47.579268 | 0.807513 | 0.231193 | 0 | 0.371287 | 1 | 0 | 0.184018 | 0.097219 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143564 | false | 0.004951 | 0.029703 | 0 | 0.262376 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fc1c43d606d327fb35d6fd9f01dd55b613fdaf94 | 1,786 | py | Python | atlas/aws_utils/src/integration/config.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/aws_utils/src/integration/config.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/aws_utils/src/integration/config.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
from uuid import uuid4
# separates test runs
TEST_UUID = str(uuid4())
def _code_bucket():
return 'foundations-code-test'
def make_code_bucket():
from foundations import PrefixedBucket
from foundations_aws import AWSBucket
return PrefixedBucket(TEST_UUID, AWSBucket, _code_bucket())
def _result_b... | 31.333333 | 90 | 0.775476 | 176 | 1,786 | 7.477273 | 0.278409 | 0.207447 | 0.148936 | 0.191489 | 0.569149 | 0.544073 | 0.284195 | 0.284195 | 0.284195 | 0.284195 | 0 | 0.001317 | 0.149496 | 1,786 | 56 | 91 | 31.892857 | 0.865043 | 0.030235 | 0 | 0.2 | 0 | 0 | 0.231616 | 0.197452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.228571 | 0.057143 | 0.485714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fc202756d04cc8d7e369fd822ac0592a77be8896 | 3,992 | py | Python | nephos/fabric/utils.py | nicolapaoli/nephos | 0871c355a6efbdaa0beb1c076543d285d177b5a4 | [
"Apache-2.0"
] | null | null | null | nephos/fabric/utils.py | nicolapaoli/nephos | 0871c355a6efbdaa0beb1c076543d285d177b5a4 | [
"Apache-2.0"
] | 174 | 2019-06-24T10:56:43.000Z | 2021-08-02T05:38:57.000Z | nephos/fabric/utils.py | nicolapaoli/nephos | 0871c355a6efbdaa0beb1c076543d285d177b5a4 | [
"Apache-2.0"
] | 1 | 2019-05-02T11:43:54.000Z | 2019-05-02T11:43:54.000Z | # Copyright [2018] [Alejandro Vicente Grabovetsky via AID:Tech]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 33.546218 | 85 | 0.670842 | 547 | 3,992 | 4.804388 | 0.338208 | 0.026636 | 0.036149 | 0.028539 | 0.243531 | 0.222983 | 0.222983 | 0.20624 | 0.20624 | 0.20624 | 0 | 0.005939 | 0.240731 | 3,992 | 118 | 86 | 33.830508 | 0.861102 | 0.500501 | 0 | 0 | 0 | 0 | 0.146659 | 0.039109 | 0 | 0 | 0 | 0.025424 | 0.044444 | 1 | 0.133333 | false | 0.133333 | 0.111111 | 0.044444 | 0.355556 | 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 |
fc255b829a24741bc3ec38d5913aab404cbe99fd | 279 | py | Python | examples/f16/components/fileops.py | ZikangXiong/csaf | 2f03550d3c5e4b70ba3dd036bd49eb93684dcb78 | [
"BSD-3-Clause"
] | null | null | null | examples/f16/components/fileops.py | ZikangXiong/csaf | 2f03550d3c5e4b70ba3dd036bd49eb93684dcb78 | [
"BSD-3-Clause"
] | null | null | null | examples/f16/components/fileops.py | ZikangXiong/csaf | 2f03550d3c5e4b70ba3dd036bd49eb93684dcb78 | [
"BSD-3-Clause"
] | null | null | null | import os
import inspect
def construct_path(path):
assert(len(path) >= 1)
return os.path.join(path[0], *path[1:])
def prepend_curr_path(path):
callers_path = inspect.stack()[1].filename
return os.path.join(os.path.dirname(callers_path), construct_path(path))
| 21.461538 | 76 | 0.709677 | 43 | 279 | 4.465116 | 0.418605 | 0.125 | 0.177083 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.143369 | 279 | 12 | 77 | 23.25 | 0.786611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 |
fc287957c100fef079e15ce9ded6898601310754 | 3,605 | py | Python | pyvmc_vmc.py | maulepilot117/python-client-for-vmware-cloud-on-aws | b56e927e2d767c61917c06b64bbd0cb37b0d636f | [
"BSD-2-Clause"
] | 1 | 2021-11-30T23:07:09.000Z | 2021-11-30T23:07:09.000Z | pyvmc_vmc.py | maulepilot117/python-client-for-vmware-cloud-on-aws | b56e927e2d767c61917c06b64bbd0cb37b0d636f | [
"BSD-2-Clause"
] | null | null | null | pyvmc_vmc.py | maulepilot117/python-client-for-vmware-cloud-on-aws | b56e927e2d767c61917c06b64bbd0cb37b0d636f | [
"BSD-2-Clause"
] | null | null | null | # VMC on AWS Python library for PyVMC
################################################################################
### Copyright (C) 2019-2022 VMware, Inc. All rights reserved.
### SPDX-License-Identifier: BSD-2-Clause
################################################################################
import json
i... | 32.477477 | 91 | 0.551734 | 370 | 3,605 | 5.281081 | 0.243243 | 0.073695 | 0.073695 | 0.06346 | 0.67349 | 0.634596 | 0.614637 | 0.614637 | 0.614637 | 0.614637 | 0 | 0.006972 | 0.164494 | 3,605 | 111 | 92 | 32.477477 | 0.641766 | 0.285714 | 0 | 0.744681 | 0 | 0 | 0.329098 | 0.130877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.042553 | 0 | 0.212766 | 0.255319 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fc2af967190aec6e791e484ece2f930f7a3b2611 | 210 | py | Python | Exercicios/ex051.py | Dobravoski/Exercicios-Python | e7169e1ee6954a7bc9216063845611107a13759f | [
"MIT"
] | null | null | null | Exercicios/ex051.py | Dobravoski/Exercicios-Python | e7169e1ee6954a7bc9216063845611107a13759f | [
"MIT"
] | null | null | null | Exercicios/ex051.py | Dobravoski/Exercicios-Python | e7169e1ee6954a7bc9216063845611107a13759f | [
"MIT"
] | null | null | null | p = int(input('Digite o primeiro termo de uma PA: '))
r = int(input('Digite uma razão de uma PA: '))
d = p + 9 * r
print('OS 10 PRIMEIROS TERMOS DESSA PA É:')
for c in range(p, d + r, r):
print(c, end=' ')
| 30 | 53 | 0.6 | 42 | 210 | 3 | 0.619048 | 0.126984 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.228571 | 210 | 6 | 54 | 35 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 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 |
fc2b6d14ea4df16867279e438ff5212d839e5ff0 | 340 | py | Python | src/modifiers/to_raw_selection.py | cursorless-dev/cursorless-talon | 344fc3fb1e544f5653452fcb0416a1471e5f63e2 | [
"MIT"
] | 26 | 2022-01-27T10:47:13.000Z | 2022-03-22T21:36:58.000Z | cursorless-talon/src/modifiers/to_raw_selection.py | cursorless-dev/cursorless | 33d0a8fe266a9100ab8d29f4c3d2547cf692a9e2 | [
"MIT"
] | 11 | 2022-03-23T04:00:30.000Z | 2022-03-31T20:01:21.000Z | cursorless-talon/src/modifiers/to_raw_selection.py | cursorless-dev/cursorless | 33d0a8fe266a9100ab8d29f4c3d2547cf692a9e2 | [
"MIT"
] | 3 | 2022-02-27T10:28:39.000Z | 2022-03-22T17:33:43.000Z | from typing import Any
from talon import Module
mod = Module()
mod.list(
"cursorless_to_raw_selection",
desc="Cursorless modifier that converts its input to a raw selection.",
)
@mod.capture(rule="{user.cursorless_to_raw_selection}")
def cursorless_to_raw_selection(m) -> dict[str, Any]:
return {"type"... | 20 | 75 | 0.735294 | 47 | 340 | 5.12766 | 0.617021 | 0.19917 | 0.186722 | 0.298755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 340 | 16 | 76 | 21.25 | 0.83391 | 0 | 0 | 0 | 0 | 0 | 0.417647 | 0.179412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fc2cbd547dbb5be0967a55730f6b37f6bbdd8e85 | 294 | py | Python | src/repobee_plug/types.py | sakehl/repobee | 6e30d680d7cc5aa0c0e95c47f37197c2fb8c7df9 | [
"MIT"
] | null | null | null | src/repobee_plug/types.py | sakehl/repobee | 6e30d680d7cc5aa0c0e95c47f37197c2fb8c7df9 | [
"MIT"
] | 11 | 2021-07-26T02:09:47.000Z | 2022-03-29T02:15:24.000Z | src/repobee_plug/types.py | sakehl/repobee | 6e30d680d7cc5aa0c0e95c47f37197c2fb8c7df9 | [
"MIT"
] | null | null | null | """Custom type definitions for use in type hints."""
from typing import TypeVar, Iterator
from typing_extensions import Protocol
T = TypeVar("T", covariant=True)
class SizedIterable(Protocol[T]):
def __len__(self) -> int:
...
def __iter__(self) -> Iterator[T]:
...
| 19.6 | 52 | 0.659864 | 36 | 294 | 5.138889 | 0.666667 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210884 | 294 | 14 | 53 | 21 | 0.797414 | 0.156463 | 0 | 0.25 | 0 | 0 | 0.004132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fc488c451eaf4ae06547f98e11d8da95dacc178f | 949 | py | Python | src/testdata/y_attributes_8/lstm_online.py | suraj-jayakumar/lstm-rnn-ad | 381c1679e3cf876208dbb7a7c0fdd7a0b0036982 | [
"Apache-2.0"
] | 8 | 2017-03-22T08:22:14.000Z | 2020-08-05T11:13:10.000Z | src/testdata/y_attributes_8/lstm_online.py | suraj-jayakumar/lstm-rnn-ad | 381c1679e3cf876208dbb7a7c0fdd7a0b0036982 | [
"Apache-2.0"
] | null | null | null | src/testdata/y_attributes_8/lstm_online.py | suraj-jayakumar/lstm-rnn-ad | 381c1679e3cf876208dbb7a7c0fdd7a0b0036982 | [
"Apache-2.0"
] | 2 | 2017-07-22T12:43:20.000Z | 2019-07-05T07:11:50.000Z | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers.core import Dense
from keras.layers.recurrent import LSTM
from keras.models import Graph
from keras.models import model_from_json
from pandas import DataFrame
import pandas as pd
import pick... | 24.333333 | 94 | 0.75764 | 162 | 949 | 4.240741 | 0.45679 | 0.065502 | 0.034935 | 0.091703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0179 | 0.116965 | 949 | 38 | 95 | 24.973684 | 0.801909 | 0.071654 | 0 | 0 | 0 | 0 | 0.150513 | 0.029647 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.407407 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fc48a3112aa79dd6900e1e62f487bc6eb3042578 | 328 | py | Python | Notebooks/Naive.py | m-RezaFahlevi/Mathematica-Works | 325b59f7dc0a721f3af9b058991b9f1946dd4fa1 | [
"MIT"
] | 1 | 2020-11-24T09:16:35.000Z | 2020-11-24T09:16:35.000Z | Notebooks/Naive.py | m-RezaFahlevi/Mathematica-Works | 325b59f7dc0a721f3af9b058991b9f1946dd4fa1 | [
"MIT"
] | null | null | null | Notebooks/Naive.py | m-RezaFahlevi/Mathematica-Works | 325b59f7dc0a721f3af9b058991b9f1946dd4fa1 | [
"MIT"
] | null | null | null | # %%
def Naive(N):
is_prime = True
if N <= 1 :
is_prime = False
else:
for i in range(2, N, 1):
if N % i == 0:
is_prime = False
return(is_prime)
def main():
N = 139
print(f"{N} prime ? : {Naive(N)}")
if __name__=="__main__":
main()... | 17.263158 | 39 | 0.42378 | 44 | 328 | 2.886364 | 0.5 | 0.220472 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.42378 | 328 | 18 | 40 | 18.222222 | 0.634921 | 0.015244 | 0 | 0.142857 | 0 | 0 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fc4a186680025c51d051373f56f1499cdcf95965 | 1,803 | py | Python | conditional/blueprints/cache_management.py | adamhb123/conditional | 7193443106f83e8260b61535b6d6a253f01133f8 | [
"MIT"
] | 9 | 2016-08-21T19:27:24.000Z | 2019-09-12T06:56:49.000Z | conditional/blueprints/cache_management.py | adamhb123/conditional | 7193443106f83e8260b61535b6d6a253f01133f8 | [
"MIT"
] | 237 | 2016-08-21T18:08:58.000Z | 2022-03-28T17:01:36.000Z | conditional/blueprints/cache_management.py | adamhb123/conditional | 7193443106f83e8260b61535b6d6a253f01133f8 | [
"MIT"
] | 31 | 2016-08-22T23:46:48.000Z | 2022-03-26T22:37:39.000Z | import os
import signal
import structlog
from flask import Blueprint, request, redirect
from conditional import auth
from conditional.util.auth import get_user
from conditional.util.cache import clear_all_cached_functions
from conditional.util.ldap import _ldap_is_member_of_directorship
from conditional.util.ldap imp... | 29.557377 | 97 | 0.795341 | 263 | 1,803 | 5.106464 | 0.239544 | 0.122859 | 0.141474 | 0.137007 | 0.505585 | 0.435592 | 0.402829 | 0.211467 | 0.147431 | 0.147431 | 0 | 0.003778 | 0.119246 | 1,803 | 60 | 98 | 30.05 | 0.84194 | 0 | 0 | 0.177778 | 0 | 0 | 0.075984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.333333 | 0 | 0.511111 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc4c4adafd16d1a302751e1b31c8b74d9096f6d0 | 2,771 | py | Python | packages/python/yap_kernel/yap_kernel/inprocess/manager.py | ryandesign/yap | 9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214 | [
"Artistic-1.0-Perl",
"ClArtistic"
] | 90 | 2015-03-09T01:24:15.000Z | 2022-02-24T13:56:25.000Z | packages/python/yap_kernel/yap_kernel/inprocess/manager.py | ryandesign/yap | 9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214 | [
"Artistic-1.0-Perl",
"ClArtistic"
] | 52 | 2016-02-14T08:59:37.000Z | 2022-03-14T16:39:35.000Z | packages/python/yap_kernel/yap_kernel/inprocess/manager.py | ryandesign/yap | 9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214 | [
"Artistic-1.0-Perl",
"ClArtistic"
] | 27 | 2015-11-19T02:45:49.000Z | 2021-11-25T19:47:58.000Z | """A kernel manager for in-process kernels."""
# Copyright (c) yap_ipython Development Team.
# Distributed under the terms of the Modified BSD License.
from traitlets import Instance, DottedObjectName, default
from jupyter_client.managerabc import KernelManagerABC
from jupyter_client.manager import KernelManager
from... | 33.792683 | 89 | 0.644533 | 276 | 2,771 | 6.351449 | 0.362319 | 0.051341 | 0.034227 | 0.019395 | 0.036509 | 0.036509 | 0.036509 | 0.036509 | 0 | 0 | 0 | 0 | 0.175388 | 2,771 | 81 | 90 | 34.209877 | 0.767177 | 0.326236 | 0 | 0.05 | 0 | 0 | 0.103562 | 0.052055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275 | false | 0 | 0.175 | 0.075 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fc68af2ae257b6e1d429f6c17f50f81258055208 | 1,809 | py | Python | test/data_client/controller/ping_core_data_client_test.py | trcox/py-core-data-client | a6d35a792c99ccf5196d5618d5dc9df6413e16f7 | [
"Apache-2.0"
] | null | null | null | test/data_client/controller/ping_core_data_client_test.py | trcox/py-core-data-client | a6d35a792c99ccf5196d5618d5dc9df6413e16f7 | [
"Apache-2.0"
] | null | null | null | test/data_client/controller/ping_core_data_client_test.py | trcox/py-core-data-client | a6d35a792c99ccf5196d5618d5dc9df6413e16f7 | [
"Apache-2.0"
] | null | null | null | # *******************************************************************************
# Copyright 2017 Dell Inc.
#
# 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/L... | 33.5 | 99 | 0.678275 | 211 | 1,809 | 5.815166 | 0.606635 | 0.0489 | 0.03423 | 0.02608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01117 | 0.158651 | 1,809 | 53 | 100 | 34.132075 | 0.795007 | 0 | 0 | 0 | 0 | 0 | 0.077949 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | null | null | 0 | 0.333333 | 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 |
fc768223a1f97b1431ad62194917ce15b42c5089 | 457 | py | Python | PyCharm/Exercicios/Aula10/ex034.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | PyCharm/Exercicios/Aula10/ex034.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | PyCharm/Exercicios/Aula10/ex034.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | print('Vamos calcular o aumento do seu salário')
salario = float(input('Digite o valor do seu salário R$'))
if salario > 1250:
aumento = salario * 0.10
print('Seu \033[4;31maumento\033[m será de \033[1;34mR${:.2f}\033[m, salário total R${:.2f}'.format(aumento, salario + aumento))
else:
aumento = salario * 0... | 50.777778 | 132 | 0.671772 | 76 | 457 | 4.039474 | 0.447368 | 0.18241 | 0.078176 | 0.078176 | 0.286645 | 0.286645 | 0 | 0 | 0 | 0 | 0 | 0.128866 | 0.150985 | 457 | 8 | 133 | 57.125 | 0.662371 | 0 | 0 | 0 | 0 | 0.25 | 0.522976 | 0.210066 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fc7722ecffcb1c5189aca05fd62856447ffe6549 | 673 | py | Python | pyDownload/main.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null | pyDownload/main.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null | pyDownload/main.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
"""
Usage:
pyd <url> [--hash <value>] [--auth <u> <p] [--version]
Examples:
pyd https://www.python.org/static/img/python-logo.png : Download's the python logo from their homepage
pyd https://www.example.com/... --auth username password : When authentication is required
pyd http... | 28.041667 | 140 | 0.677563 | 89 | 673 | 4.988764 | 0.696629 | 0.054054 | 0.074324 | 0.081081 | 0.148649 | 0.148649 | 0.148649 | 0 | 0 | 0 | 0 | 0.005396 | 0.173848 | 673 | 23 | 141 | 29.26087 | 0.793165 | 0.710253 | 0 | 0 | 0 | 0 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
fc8bacfd78f8d843f26729e205d90d23f1b7e70a | 23,032 | py | Python | tests/test_acceptance/test_scenario_5183.py | nextflow/ucloud-sdk-python3 | d5296e1030d8af6b43a5d6f61f9884060db0a324 | [
"Apache-2.0"
] | null | null | null | tests/test_acceptance/test_scenario_5183.py | nextflow/ucloud-sdk-python3 | d5296e1030d8af6b43a5d6f61f9884060db0a324 | [
"Apache-2.0"
] | null | null | null | tests/test_acceptance/test_scenario_5183.py | nextflow/ucloud-sdk-python3 | d5296e1030d8af6b43a5d6f61f9884060db0a324 | [
"Apache-2.0"
] | null | null | null | """ Code is generated by ucloud-model, DO NOT EDIT IT. """
import pytest
from ucloud.core import exc
from ucloud.testing import funcs, op, env, utest
from ucloud.testing.driver import spec
scenario = spec.scenario(5183, "UCloudStack_02", owners=["lisa.wang@ucloud.cn"])
@pytest.mark.skipif(env.is_ut(), reason=env... | 22.917413 | 80 | 0.592784 | 2,544 | 23,032 | 5.201651 | 0.111635 | 0.099751 | 0.033855 | 0.033855 | 0.7176 | 0.668254 | 0.644147 | 0.628429 | 0.615885 | 0.613013 | 0 | 0.018002 | 0.254733 | 23,032 | 1,004 | 81 | 22.940239 | 0.752927 | 0.013199 | 0 | 0.644556 | 1 | 0 | 0.166476 | 0.018331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036295 | false | 0.001252 | 0.005006 | 0 | 0.076345 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fc955c29258b5c2e9e4d5b239fd157ec48ead4c9 | 446 | py | Python | taobao_wechat_bot/top/api/rest/ProductImgUploadRequest.py | zyphs21/myPythonPractise | 7da984c98ee93e650ab2f9da4a2502340f1220b4 | [
"MIT"
] | null | null | null | taobao_wechat_bot/top/api/rest/ProductImgUploadRequest.py | zyphs21/myPythonPractise | 7da984c98ee93e650ab2f9da4a2502340f1220b4 | [
"MIT"
] | null | null | null | taobao_wechat_bot/top/api/rest/ProductImgUploadRequest.py | zyphs21/myPythonPractise | 7da984c98ee93e650ab2f9da4a2502340f1220b4 | [
"MIT"
] | null | null | null | '''
Created by auto_sdk on 2012.10.15
'''
from top.api.base import RestApi
class ProductImgUploadRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.id = None
self.image = None
self.is_major = None
self.position = None
self.product_id... | 23.473684 | 56 | 0.699552 | 62 | 446 | 4.854839 | 0.596774 | 0.106312 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027248 | 0.17713 | 446 | 18 | 57 | 24.777778 | 0.792916 | 0.073991 | 0 | 0 | 0 | 0 | 0.121447 | 0.064599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
5d76a7c2423e1aeb9af6d1330ad8803cd4e3b2da | 336 | py | Python | Numpy/Mathemtical_Functions.py | Magdyedwar1996/python-level-one-codes | 066086672f43488bc8b32c620b5e2f94cedfe3da | [
"MIT"
] | 1 | 2021-11-16T14:14:38.000Z | 2021-11-16T14:14:38.000Z | Numpy/Mathemtical_Functions.py | Magdyedwar1996/python-level-one-codes | 066086672f43488bc8b32c620b5e2f94cedfe3da | [
"MIT"
] | null | null | null | Numpy/Mathemtical_Functions.py | Magdyedwar1996/python-level-one-codes | 066086672f43488bc8b32c620b5e2f94cedfe3da | [
"MIT"
] | null | null | null | import numpy as np
# We create a rank 1 ndarray
x = np.array([1,2,3,4])
# We print x
print()
print('x = ', x)
# We apply different mathematical functions to all elements of x
print()
print('EXP(x) =', np.exp(x))
print()
print('SQRT(x) =',np.sqrt(x))
print()
print('POW(x,2) =',np.power(x,2)) # We raise all elements t... | 22.4 | 75 | 0.64881 | 66 | 336 | 3.30303 | 0.454545 | 0.110092 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.166667 | 336 | 15 | 75 | 22.4 | 0.75 | 0.416667 | 0 | 0.4 | 0 | 0 | 0.161458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.8 | 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 |
5d77003718ac6248ba055b4f22e76650348a68a5 | 506 | py | Python | python_code/hash_chapter1_reimpl_js.py | possnfiffer/inside_python_dict | 4a16f41062c98974618b25711d3e56bf71a71294 | [
"MIT"
] | 124 | 2018-12-24T21:17:34.000Z | 2022-02-17T06:32:22.000Z | python_code/hash_chapter1_reimpl_js.py | possnfiffer/inside_python_dict | 4a16f41062c98974618b25711d3e56bf71a71294 | [
"MIT"
] | 1 | 2021-06-18T21:21:38.000Z | 2021-07-05T00:32:59.000Z | python_code/hash_chapter1_reimpl_js.py | possnfiffer/inside_python_dict | 4a16f41062c98974618b25711d3e56bf71a71294 | [
"MIT"
] | 8 | 2018-12-25T11:59:56.000Z | 2020-07-10T16:49:14.000Z | from js_reimpl_common import run_op_chapter1_chapter2
def run_op(keys, op, **kwargs):
return run_op_chapter1_chapter2("chapter1", None, keys, op, **kwargs)
def create_new(numbers):
return run_op(None, "create_new", array=numbers)
def create_new_broken(numbers):
return run_op(None, "create_new_broken",... | 23 | 73 | 0.73913 | 79 | 506 | 4.443038 | 0.291139 | 0.099715 | 0.156695 | 0.128205 | 0.176638 | 0.176638 | 0.176638 | 0 | 0 | 0 | 0 | 0.011494 | 0.140316 | 506 | 21 | 74 | 24.095238 | 0.795402 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.090909 | 0.454545 | 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 |
5d7bcc2f7fe0a8890f77f95c082936e0541a67bd | 1,105 | py | Python | scripts/hermann5_distribution.py | mmsbrggr/polar | 34348baf6992232e47cee7a4d56b5a96567c50b8 | [
"MIT"
] | 2 | 2021-10-06T13:29:24.000Z | 2021-11-11T19:42:43.000Z | scripts/hermann5_distribution.py | mmsbrggr/polar | 34348baf6992232e47cee7a4d56b5a96567c50b8 | [
"MIT"
] | 1 | 2022-01-26T15:58:28.000Z | 2022-01-28T13:47:28.000Z | scripts/hermann5_distribution.py | mmsbrggr/polar | 34348baf6992232e47cee7a4d56b5a96567c50b8 | [
"MIT"
] | 2 | 2021-10-01T15:08:52.000Z | 2022-03-15T14:10:06.000Z | from sympy import *
from sympy.solvers.solveset import linsolve
p0 = Symbol("p0", real=True)
p1 = Symbol("p1", real=True)
p2 = Symbol("p2", real=True)
p3 = Symbol("p3", real=True)
p4 = Symbol("p4", real=True)
p5 = Symbol("p5", real=True)
m = {
1: sympify("1 - 2 * 9 ** (-n) + (162 / 43) * (11 / 81) ** n + (96 / 4... | 38.103448 | 115 | 0.481448 | 194 | 1,105 | 2.742268 | 0.273196 | 0.090226 | 0.056391 | 0.065789 | 0.120301 | 0.120301 | 0 | 0 | 0 | 0 | 0 | 0.186158 | 0.241629 | 1,105 | 28 | 116 | 39.464286 | 0.448687 | 0 | 0 | 0 | 0 | 0.227273 | 0.362896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5d8809f54804ad8f8227da44f8a07e96ec2cf55f | 260 | py | Python | src/atc/etl/types.py | atc-net/atc-dataplatform | 4614efbbc9a5b2b4e063cc12211aa5c697cad115 | [
"MIT"
] | 6 | 2021-09-10T09:50:20.000Z | 2022-02-12T09:30:47.000Z | src/atc/etl/types.py | atc-net/atc-dataplatform | 4614efbbc9a5b2b4e063cc12211aa5c697cad115 | [
"MIT"
] | 40 | 2021-09-10T11:20:42.000Z | 2022-03-25T08:26:57.000Z | src/atc/etl/types.py | atc-net/atc-dataplatform | 4614efbbc9a5b2b4e063cc12211aa5c697cad115 | [
"MIT"
] | 2 | 2021-09-10T10:07:04.000Z | 2022-02-16T17:49:08.000Z | from abc import abstractmethod
from typing import Dict
from pyspark.sql import DataFrame
dataset_group = Dict[str, DataFrame]
class EtlBase:
@abstractmethod
def etl(self, inputs: dataset_group) -> dataset_group:
raise NotImplementedError()
| 20 | 58 | 0.757692 | 31 | 260 | 6.258065 | 0.645161 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180769 | 260 | 12 | 59 | 21.666667 | 0.910798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5d8d358ac99c16be18f5f791f5545f5d6f88e1f9 | 1,183 | py | Python | examples/concaves.py | nightimer-AU/collision | 0a140ee70f479fcdab7e2284f533c256d5a2f06a | [
"MIT"
] | 37 | 2018-10-16T04:41:42.000Z | 2022-03-06T17:44:23.000Z | examples/concaves.py | nightimer-AU/collision | 0a140ee70f479fcdab7e2284f533c256d5a2f06a | [
"MIT"
] | 9 | 2019-12-28T07:30:33.000Z | 2021-11-11T11:18:33.000Z | examples/concaves.py | nightimer-AU/collision | 0a140ee70f479fcdab7e2284f533c256d5a2f06a | [
"MIT"
] | 10 | 2019-03-18T14:40:30.000Z | 2022-02-22T12:02:14.000Z | import pygame as pg
import sys
from collision import *
SCREENSIZE = (500,500)
screen = pg.display.set_mode(SCREENSIZE, pg.DOUBLEBUF|pg.HWACCEL)
v = Vector
p0 = Concave_Poly(v(0,0), [v(-80,0), v(-20,20), v(0,80), v(20,20), v(80,0), v(20,-20), v(0,-80), v(-20,-20)])
p1 = Concave_Poly(v(500,500), [v(-80,0), v(-20,20)... | 25.717391 | 114 | 0.565511 | 236 | 1,183 | 2.817797 | 0.262712 | 0.03609 | 0.06015 | 0.054135 | 0.24812 | 0.218045 | 0.108271 | 0.108271 | 0.108271 | 0.108271 | 0 | 0.202717 | 0.19104 | 1,183 | 45 | 115 | 26.288889 | 0.492163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
5da4a4d47946320aaf5f546f3936855cf77c2fbc | 222 | py | Python | pyof/__init__.py | hdiogenes/python-openflow | ee5bb5d1bdb54f3b688e3e6d07a8399c756f8397 | [
"MIT"
] | null | null | null | pyof/__init__.py | hdiogenes/python-openflow | ee5bb5d1bdb54f3b688e3e6d07a8399c756f8397 | [
"MIT"
] | null | null | null | pyof/__init__.py | hdiogenes/python-openflow | ee5bb5d1bdb54f3b688e3e6d07a8399c756f8397 | [
"MIT"
] | null | null | null | """The ofx parser package. A package to parse OpenFlow messages.
This package is a library that parses and creates OpenFlow Messages.
It contains all implemented versions of OpenFlow protocol
"""
__version__ = '2020.2b3'
| 31.714286 | 68 | 0.788288 | 32 | 222 | 5.34375 | 0.8125 | 0.187135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.153153 | 222 | 6 | 69 | 37 | 0.87766 | 0.851351 | 0 | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5da88d7edcf8808521a94930d601ba32e64420f1 | 427 | py | Python | api/v2/views/provider_type.py | simpsonw/atmosphere | 3a5203ef0b563de3a0e8c8c8715df88186532d7a | [
"BSD-3-Clause"
] | 197 | 2016-12-08T02:33:32.000Z | 2022-03-23T14:27:47.000Z | api/v2/views/provider_type.py | simpsonw/atmosphere | 3a5203ef0b563de3a0e8c8c8715df88186532d7a | [
"BSD-3-Clause"
] | 385 | 2017-01-03T22:51:46.000Z | 2020-12-16T16:20:42.000Z | api/v2/views/provider_type.py | benlazarine/atmosphere | 38fad8e4002e510e8b4294f2bb5bc75e8e1817fa | [
"BSD-3-Clause"
] | 50 | 2016-12-08T08:32:25.000Z | 2021-12-10T00:21:39.000Z | from core.models import ProviderType
from api.v2.serializers.details import ProviderTypeSerializer
from api.v2.views.base import AuthModelViewSet
class ProviderTypeViewSet(AuthModelViewSet):
"""
API endpoint that allows instance actions to be viewed or edited.
"""
queryset = ProviderType.objects.all()... | 32.846154 | 69 | 0.761124 | 47 | 427 | 6.851064 | 0.765957 | 0.043478 | 0.055901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.152225 | 427 | 12 | 70 | 35.583333 | 0.883978 | 0.152225 | 0 | 0 | 0 | 0 | 0.054913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5da93b15b4be45c40797cc48c6436c9aed0c6f75 | 1,854 | py | Python | docs/demos/theme_explorer/form.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 776 | 2019-02-07T19:36:59.000Z | 2022-03-31T05:53:04.000Z | docs/demos/theme_explorer/form.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 350 | 2019-02-05T10:42:19.000Z | 2022-03-31T19:23:35.000Z | docs/demos/theme_explorer/form.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 219 | 2019-02-10T13:46:25.000Z | 2022-03-23T17:03:39.000Z | import dash_bootstrap_components as dbc
from dash import html
from .util import make_subheading
form = html.Div(
[
make_subheading("Form", "form"),
dbc.Form(
[
html.Div(
[
dbc.Label("Username"),
dbc.Inp... | 33.107143 | 74 | 0.254585 | 89 | 1,854 | 5.258427 | 0.41573 | 0.044872 | 0.076923 | 0.064103 | 0.606838 | 0.606838 | 0.491453 | 0.491453 | 0.491453 | 0.491453 | 0 | 0.001605 | 0.66397 | 1,854 | 55 | 75 | 33.709091 | 0.749599 | 0 | 0 | 0.509434 | 0 | 0 | 0.122977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.056604 | 0.056604 | 0 | 0.056604 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5daf0802268130bb3487539d79cfd8bc00ee9e76 | 76 | py | Python | python/testData/resolve/DunderSizeOfInDeclarationWithClassAttrNewStyleClass.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/resolve/DunderSizeOfInDeclarationWithClassAttrNewStyleClass.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/resolve/DunderSizeOfInDeclarationWithClassAttrNewStyleClass.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class A(object):
__sizeof__ = 17
print(__sizeof__)
# <ref> | 19 | 21 | 0.552632 | 8 | 76 | 4.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.328947 | 76 | 4 | 22 | 19 | 0.627451 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.666667 | 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 |
5dc97e70c371e60693b059eaf24a4375c45f792c | 1,255 | py | Python | vkbotkit/objects/decorators.py | kensoi/vkbotkit | 2dd62d801431a5ad43008d43069b757491be9bee | [
"Apache-2.0"
] | null | null | null | vkbotkit/objects/decorators.py | kensoi/vkbotkit | 2dd62d801431a5ad43008d43069b757491be9bee | [
"Apache-2.0"
] | null | null | null | vkbotkit/objects/decorators.py | kensoi/vkbotkit | 2dd62d801431a5ad43008d43069b757491be9bee | [
"Apache-2.0"
] | null | null | null | """
Copyright 2022 kensoi
"""
import asyncio
class Handler():
"""
docstring patch
"""
def __init__(self, callback_function, library_callback, library_module):
"""
docstring patch
"""
self.callback_function = callback_function
self.library_module = library_modu... | 18.455882 | 76 | 0.583267 | 120 | 1,255 | 5.85 | 0.325 | 0.139601 | 0.08547 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.321116 | 1,255 | 68 | 77 | 18.455882 | 0.819249 | 0.093227 | 0 | 0 | 0 | 0 | 0.038144 | 0.038144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.041667 | 0.041667 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5dcb366b56b4227ea9348a034fba2ef3d6d01d82 | 3,846 | py | Python | src/api/task.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | 3 | 2020-11-03T22:27:18.000Z | 2021-12-11T23:13:55.000Z | src/api/task.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | 1 | 2021-09-12T13:28:13.000Z | 2021-09-12T13:28:13.000Z | src/api/task.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | null | null | null | import requests
from typing import Set, Optional, List
from .base import API
from ..core import decorators
from ..core.models import Task
class APITask(API):
def __init__(self, token: str):
super().__init__(token)
@decorators.handle_http_errors
def fetch_all(self, project_id: int, task_status="o... | 31.016129 | 83 | 0.566563 | 456 | 3,846 | 4.596491 | 0.151316 | 0.046756 | 0.073473 | 0.099237 | 0.76479 | 0.715649 | 0.667462 | 0.648378 | 0.648378 | 0.644084 | 0 | 0.008221 | 0.304212 | 3,846 | 123 | 84 | 31.268293 | 0.775037 | 0 | 0 | 0.556701 | 0 | 0 | 0.119345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092784 | false | 0 | 0.051546 | 0 | 0.247423 | 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 |
5dcc3e61763b82ef7ea1e6c2cbe5a6edb0e9d1de | 1,745 | py | Python | app/app.py | jprusik/dreamhost-flask-project-template | b0ca102da5e23bac74cd5c9e9a4ad705baef83e8 | [
"MIT"
] | 6 | 2017-05-04T18:02:48.000Z | 2021-11-25T05:58:56.000Z | app/app.py | jprusik/dreamhost-flask-project-template | b0ca102da5e23bac74cd5c9e9a4ad705baef83e8 | [
"MIT"
] | null | null | null | app/app.py | jprusik/dreamhost-flask-project-template | b0ca102da5e23bac74cd5c9e9a4ad705baef83e8 | [
"MIT"
] | null | null | null | from flask import Flask, url_for, redirect, request, Markup, render_template, session, flash
import json, datetime
import config
app = Flask(__name__)
app.config.from_object('config')
# DISABLE DEBUG FOR PRODUCTION!
app.debug = False
def clear_session():
session['last_action'] = None
# using session.clear()... | 24.928571 | 164 | 0.708883 | 234 | 1,745 | 5.128205 | 0.431624 | 0.07 | 0.083333 | 0.0625 | 0.121667 | 0.121667 | 0.121667 | 0.09 | 0.09 | 0.09 | 0 | 0.010204 | 0.157593 | 1,745 | 69 | 165 | 25.289855 | 0.806122 | 0.23553 | 0 | 0.052632 | 0 | 0 | 0.164777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.078947 | 0.105263 | 0.447368 | 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 |
5dce97e064924ea53a91a3bbb0f7fc604434c8d2 | 230 | py | Python | backend/src/crawling/models/url_model.py | nokia-wroclaw/innovativeproject-noticrawl | 2569dfe39492695cc33d0bbcbc675465b14756c0 | [
"MIT"
] | 5 | 2020-03-08T14:38:47.000Z | 2021-02-24T12:17:57.000Z | backend/src/crawling/models/url_model.py | nokia-wroclaw/innovativeproject-noticrawl | 2569dfe39492695cc33d0bbcbc675465b14756c0 | [
"MIT"
] | 35 | 2020-03-13T14:18:00.000Z | 2020-06-16T22:17:39.000Z | backend/src/crawling/models/url_model.py | nokia-wroclaw/innovativeproject-noticrawl | 2569dfe39492695cc33d0bbcbc675465b14756c0 | [
"MIT"
] | 2 | 2020-03-03T20:56:19.000Z | 2020-03-08T14:38:53.000Z | from pydantic import BaseModel, validator
# from src.helpers.validation.validation import validate_url
class Url(BaseModel):
url: str
# @validator("url")
# def url_is_valid(cls, v):
# return validate_url(v)
| 20.909091 | 60 | 0.7 | 30 | 230 | 5.233333 | 0.6 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 230 | 10 | 61 | 23 | 0.853261 | 0.56087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5de475f926b3c81560d4d7e4ef3dea4a3580b171 | 2,331 | py | Python | config/sites/community/ver_settings.py | w940853815/bk-sops | f76fe91b632c20a2bf55abea934149a0a23603f6 | [
"Apache-2.0"
] | 1 | 2019-12-23T07:23:35.000Z | 2019-12-23T07:23:35.000Z | config/sites/community/ver_settings.py | w940853815/bk-sops | f76fe91b632c20a2bf55abea934149a0a23603f6 | [
"Apache-2.0"
] | 5 | 2020-02-12T02:55:56.000Z | 2021-06-10T22:57:10.000Z | config/sites/community/ver_settings.py | kellyyk/work-sops | b114db1b21c14b8454c34dff0453cb4fd8885c2e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 50.673913 | 115 | 0.814243 | 217 | 2,331 | 8.645161 | 0.714286 | 0.031983 | 0.013859 | 0.017058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077257 | 0.11154 | 2,331 | 45 | 116 | 51.8 | 0.828585 | 0.332475 | 0 | 0 | 0 | 0 | 0.811894 | 0.718164 | 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 |
5def2526a89f2618c46cd1f27f810b5245219fba | 679 | py | Python | switchdb/bkup_files/test2.py | smallfount/scriptsonly | cabdfc301da4e1653705d713b306f3fbf7f6934d | [
"Apache-2.0"
] | 32 | 2016-05-24T23:32:02.000Z | 2021-11-17T07:53:50.000Z | switchdb/bkup_files/test2.py | posai8701/scriptsonly | cabdfc301da4e1653705d713b306f3fbf7f6934d | [
"Apache-2.0"
] | 5 | 2016-09-25T15:55:02.000Z | 2018-09-06T10:54:45.000Z | switchdb/bkup_files/test2.py | posai8701/scriptsonly | cabdfc301da4e1653705d713b306f3fbf7f6934d | [
"Apache-2.0"
] | 34 | 2016-03-02T17:37:07.000Z | 2021-11-17T07:54:04.000Z | from flask import Flask, request, render_template, redirect, url_for, flash, session, make_response
from flask.ext.bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from models import db, Switches
from settings import APP_STATIC
import os
from flask import Flask, request, redirect, url_for
from werkzeu... | 29.521739 | 99 | 0.768778 | 94 | 679 | 5.382979 | 0.521277 | 0.071146 | 0.059289 | 0.079051 | 0.106719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003384 | 0.129602 | 679 | 22 | 100 | 30.863636 | 0.852792 | 0.030928 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.421053 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5df3d73af9cc798e2129147f5c3dd5e6243d1007 | 4,108 | py | Python | ctapipe/visualization/tests/test_bokeh.py | chaimain/ctapipe | ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5 | [
"BSD-3-Clause"
] | 53 | 2015-06-23T15:24:20.000Z | 2021-09-23T22:30:58.000Z | ctapipe/visualization/tests/test_bokeh.py | chaimain/ctapipe | ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5 | [
"BSD-3-Clause"
] | 1,537 | 2015-06-24T11:27:16.000Z | 2022-03-31T16:17:08.000Z | ctapipe/visualization/tests/test_bokeh.py | chaimain/ctapipe | ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5 | [
"BSD-3-Clause"
] | 275 | 2015-07-09T14:09:28.000Z | 2022-03-17T22:25:51.000Z | import numpy as np
import pytest
def test_camera_display_create():
from ctapipe.visualization.bokeh import CameraDisplay
CameraDisplay()
def test_camera_geom(example_event, example_subarray):
from ctapipe.visualization.bokeh import CameraDisplay
t = list(example_event.r0.tel.keys())[0]
geom = ... | 29.134752 | 79 | 0.711052 | 585 | 4,108 | 4.776068 | 0.129915 | 0.062992 | 0.055118 | 0.093414 | 0.829635 | 0.728704 | 0.680744 | 0.637079 | 0.595562 | 0.576593 | 0 | 0.010261 | 0.169669 | 4,108 | 140 | 80 | 29.342857 | 0.808854 | 0 | 0 | 0.515789 | 0 | 0 | 0.00852 | 0 | 0 | 0 | 0 | 0 | 0.231579 | 1 | 0.094737 | false | 0 | 0.115789 | 0 | 0.210526 | 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 |
5dfa99fc55bf991441211c2136bc0e15cef7ffff | 5,834 | py | Python | test_paolo/BiDAQ/fpga/block/TxMac.py | giachero/biDAQz | a6efb778bae4f327607c6699a91075e9988d1bef | [
"MIT"
] | null | null | null | test_paolo/BiDAQ/fpga/block/TxMac.py | giachero/biDAQz | a6efb778bae4f327607c6699a91075e9988d1bef | [
"MIT"
] | null | null | null | test_paolo/BiDAQ/fpga/block/TxMac.py | giachero/biDAQz | a6efb778bae4f327607c6699a91075e9988d1bef | [
"MIT"
] | null | null | null | #!/usr/bin/python
import netifaces
from ..register import FpgaReg
class TxMac:
# Class constructor
def __init__(self):
# Initialize register management class
self.FpgaReg = FpgaReg.FpgaReg()
def SetTxEnable(self, Enable):
self.FpgaReg.FpgaMem.WriteBits("eth_mac", "TX_ENA", Enab... | 33.918605 | 95 | 0.669866 | 637 | 5,834 | 5.990581 | 0.199372 | 0.098008 | 0.15566 | 0.115828 | 0.416143 | 0.390461 | 0.381813 | 0.325472 | 0.292453 | 0.21174 | 0 | 0.012519 | 0.205862 | 5,834 | 171 | 96 | 34.116959 | 0.811137 | 0.017312 | 0 | 0.016807 | 0 | 0 | 0.160586 | 0.003666 | 0 | 0 | 0.006109 | 0 | 0 | 1 | 0.310924 | false | 0 | 0.016807 | 0.12605 | 0.495798 | 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 |
b902d3528d44ab0f44a70b75656199f8d3e7a458 | 9,135 | py | Python | tests/test_models.py | uezo/chatdollkit-server-python | 4d0d8445accdddc2a427fb249826e2186b0cbc88 | [
"Apache-2.0"
] | null | null | null | tests/test_models.py | uezo/chatdollkit-server-python | 4d0d8445accdddc2a427fb249826e2186b0cbc88 | [
"Apache-2.0"
] | null | null | null | tests/test_models.py | uezo/chatdollkit-server-python | 4d0d8445accdddc2a427fb249826e2186b0cbc88 | [
"Apache-2.0"
] | null | null | null | import sys
import os
sys.path.append(os.pardir)
from uuid import uuid4
from chatdollkit.models import (
AnimatedVoiceRequest,
ChatdollKitException,
Response,
TTSConfiguration,
VoiceSource,
ApiResponseBase
)
def test_add_voice():
req = AnimatedVoiceRequest()
req.AddVoice("voice_01")
... | 40.420354 | 139 | 0.703558 | 1,254 | 9,135 | 5.024721 | 0.090909 | 0.196953 | 0.255515 | 0.144739 | 0.634502 | 0.588319 | 0.506428 | 0.419616 | 0.369465 | 0.358356 | 0 | 0.057169 | 0.147893 | 9,135 | 225 | 140 | 40.6 | 0.752312 | 0.001642 | 0 | 0.291209 | 0 | 0 | 0.111001 | 0 | 0 | 0 | 0 | 0 | 0.587912 | 1 | 0.049451 | false | 0 | 0.021978 | 0 | 0.071429 | 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 |
f8d9aafda0c88fd52a345e7a1934b15cd332a8e4 | 411 | py | Python | okta_admin_utils/tasks/get_users.py | mdorn/okta_admin_utils | 7ccb3b23dbbfe630409fcd1862fab75c3e9fdbf0 | [
"MIT"
] | 2 | 2019-08-20T15:03:35.000Z | 2019-09-25T16:37:10.000Z | okta_admin_utils/tasks/get_users.py | mdorn/okta_admin_utils | 7ccb3b23dbbfe630409fcd1862fab75c3e9fdbf0 | [
"MIT"
] | null | null | null | okta_admin_utils/tasks/get_users.py | mdorn/okta_admin_utils | 7ccb3b23dbbfe630409fcd1862fab75c3e9fdbf0 | [
"MIT"
] | null | null | null | import logging
import click
from okta_admin_utils.logs import format_json_output
from okta_admin_utils.api import OktaAPIClient
class Client(OktaAPIClient):
def run(self):
self.api.add_resource(resource_name='users')
limit = click.prompt('How many users?', type=int)
response = self.api.u... | 27.4 | 63 | 0.73236 | 56 | 411 | 5.196429 | 0.589286 | 0.054983 | 0.089347 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16545 | 411 | 14 | 64 | 29.357143 | 0.848397 | 0 | 0 | 0 | 0 | 0 | 0.060827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f8d9dd946849dd1537f96af5833006c9a2f2c1eb | 3,076 | py | Python | pysnmp/ADTRAN-AOS.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ADTRAN-AOS.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ADTRAN-AOS.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 ADTRAN-AOS (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADTRAN-AOS
# Produced by pysmi-0.3.4 at Mon Apr 29 16:58:35 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, 09:... | 99.225806 | 477 | 0.755202 | 364 | 3,076 | 6.376374 | 0.354396 | 0.01034 | 0.015511 | 0.020681 | 0.352434 | 0.267126 | 0.267126 | 0.263249 | 0.263249 | 0.263249 | 0 | 0.103882 | 0.095579 | 3,076 | 30 | 478 | 102.533333 | 0.73041 | 0.102081 | 0 | 0 | 0 | 0 | 0.208137 | 0.015983 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f8df6752e36385a18e071046706232a98b038c7e | 2,939 | py | Python | python/batchImport.py | LiquidAnalytics/ld-api-examples | 82a3c6c3c0948fc7e134f65a3db86ee2014ec3c2 | [
"Apache-2.0"
] | null | null | null | python/batchImport.py | LiquidAnalytics/ld-api-examples | 82a3c6c3c0948fc7e134f65a3db86ee2014ec3c2 | [
"Apache-2.0"
] | null | null | null | python/batchImport.py | LiquidAnalytics/ld-api-examples | 82a3c6c3c0948fc7e134f65a3db86ee2014ec3c2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import json
import requests
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-u", "--userId", dest="userId", type="string", action="store", help="UserId")
parser.add_option("-p", "--password", dest="password", type="string", action="store", help="Password")
parser.add_... | 57.627451 | 169 | 0.700238 | 369 | 2,939 | 5.520325 | 0.300813 | 0.061856 | 0.103093 | 0.14433 | 0.284732 | 0.197349 | 0.110947 | 0.040255 | 0.040255 | 0 | 0 | 0.001904 | 0.106499 | 2,939 | 50 | 170 | 58.78 | 0.7738 | 0.006805 | 0 | 0 | 0 | 0 | 0.380185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.075 | 0.125 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f8ee77d2dd1e27a1cdeec3a16d65a47db298ecdd | 712 | py | Python | notify/serializers.py | mister-rao/drf-notify-x | 7cc8ba80bc4db8f6220f2646e2d248535dc436e2 | [
"MIT"
] | null | null | null | notify/serializers.py | mister-rao/drf-notify-x | 7cc8ba80bc4db8f6220f2646e2d248535dc436e2 | [
"MIT"
] | null | null | null | notify/serializers.py | mister-rao/drf-notify-x | 7cc8ba80bc4db8f6220f2646e2d248535dc436e2 | [
"MIT"
] | null | null | null | from notify.models import Notification
from rest_framework import serializers
from core.serializers import DynamicModelSerializer
from users.models.custom_user import CustomUser
from users.serializers.user_serializers import AuthorStampSerializer
class NotificationSerializer(DynamicModelSerializer):
class Meta:... | 30.956522 | 68 | 0.758427 | 71 | 712 | 7.408451 | 0.549296 | 0.064639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179775 | 712 | 22 | 69 | 32.363636 | 0.900685 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.5625 | 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 |
f8f4ebae7db05ff7d51d0f3f1e884d5deb471ce9 | 640 | py | Python | pytorch_toolkit/ote/ote/modules/evaluators/__init__.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | null | null | null | pytorch_toolkit/ote/ote/modules/evaluators/__init__.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | null | null | null | pytorch_toolkit/ote/ote/modules/evaluators/__init__.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | null | null | null | from .base import BaseEvaluator
from .instance_segmentation import InstanceSegmentationEvaluator
from .mmaction import MMActionEvaluator
from .mmdetection import MMDetectionEvaluator
from .face_detection import MMFaceDetectionEvaluator
from .horizontal_text_detection import MMHorizontalTextDetectionEvaluator
from .text... | 32 | 73 | 0.826563 | 46 | 640 | 11.304348 | 0.478261 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120313 | 640 | 19 | 74 | 33.684211 | 0.923623 | 0 | 0 | 0 | 0 | 0 | 0.267188 | 0.16875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f8f8681cf56472ecddac7d078f8a830442e598f8 | 510 | py | Python | threads/007_semaphor.py | keys4words/oop | ddb80de06fcba8075632b6fdd620bb64056634d3 | [
"Apache-2.0"
] | null | null | null | threads/007_semaphor.py | keys4words/oop | ddb80de06fcba8075632b6fdd620bb64056634d3 | [
"Apache-2.0"
] | 2 | 2021-06-09T07:03:54.000Z | 2022-03-12T00:55:18.000Z | threads/007_semaphor.py | keys4words/oop | ddb80de06fcba8075632b6fdd620bb64056634d3 | [
"Apache-2.0"
] | null | null | null | import time, threading
def producer():
with lock:
print('set locking', lock._value)
time.sleep(3)
print("I'm free")
max_workers = 1
lock = threading.BoundedSemaphore(value=max_workers)
task1 = threading.Thread(target=producer)
task2 = threading.Thread(target=producer)
task3 = threading.T... | 18.214286 | 52 | 0.713725 | 66 | 510 | 5.469697 | 0.439394 | 0.166205 | 0.232687 | 0.32133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03211 | 0.145098 | 510 | 27 | 53 | 18.888889 | 0.795872 | 0 | 0 | 0 | 0 | 0 | 0.037255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 0.095238 | 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 |
f8f9fc64e1762e175a0428bc838f98b5e60e78f5 | 283 | py | Python | 5 kyu/Simple Fun 89 Boxes Packing.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 5 kyu/Simple Fun 89 Boxes Packing.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 5 kyu/Simple Fun 89 Boxes Packing.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def boxes_packing(length, width, height):
total=[sorted((i,j,k)) for i,j,k in zip(length, width, height)]
res=sorted(total, key=lambda x: -min(x))
for i,j in enumerate(res[1:]):
if any((k-l)<=0 for k,l in zip(res[i], j)):
return False
return True | 40.428571 | 67 | 0.590106 | 52 | 283 | 3.192308 | 0.538462 | 0.048193 | 0.204819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009217 | 0.233216 | 283 | 7 | 68 | 40.428571 | 0.75576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
5d0403ce424b76852bfe8c1228332d8255698076 | 160,758 | py | Python | sdk/python/pulumi_aws/tables.py | JakeGinnivan/pulumi-aws | c91ef78932964ac74eda7f5da81f65b0f1798c93 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/tables.py | JakeGinnivan/pulumi-aws | c91ef78932964ac74eda7f5da81f65b0f1798c93 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/tables.py | JakeGinnivan/pulumi-aws | c91ef78932964ac74eda7f5da81f65b0f1798c93 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
_SNAKE_TO_CAMEL_CASE_TABLE = {
"acceleration_status": "accelerationStatus",
"accelerator_arn": "acceleratorArn",
"accept_st... | 45.360609 | 100 | 0.735746 | 12,892 | 160,758 | 8.724868 | 0.221765 | 0.002987 | 0.002667 | 0.001956 | 0.036131 | 0.006099 | 0.001511 | 0 | 0 | 0 | 0 | 0.001785 | 0.132174 | 160,758 | 3,543 | 101 | 45.373412 | 0.804473 | 0.001101 | 0 | 0 | 1 | 0 | 0.73546 | 0.273563 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.011871 | 0.001696 | 0 | 0.001696 | 0.003957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5d0ad343cf29622139ce24bca74fcd7291f33777 | 307 | py | Python | codes_/1221_Split_a_String_in_Balanced_Strings.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/1221_Split_a_String_in_Balanced_Strings.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/1221_Split_a_String_in_Balanced_Strings.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [1221. Split a String in Balanced Strings](https://leetcode.com/problems/split-a-string-in-balanced-strings/)
class Solution:
def balancedStringSplit(self, s: str) -> int:
res = cnt = 0
for c in s:
cnt += (c == "L") * 2 - 1
res += not cnt
return res
| 34.111111 | 114 | 0.557003 | 42 | 307 | 4.071429 | 0.690476 | 0.070175 | 0.140351 | 0.163743 | 0.339181 | 0.339181 | 0 | 0 | 0 | 0 | 0 | 0.03271 | 0.302932 | 307 | 8 | 115 | 38.375 | 0.766355 | 0.364821 | 0 | 0 | 0 | 0 | 0.005181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5d19d63f9bf32e92d6c57d69ec96b2b7361cfac8 | 2,184 | py | Python | lasso/logging.py | sharkweek/lasso-python | 727957a8b9cf04240b25d18ab730153b9ab8db24 | [
"BSD-3-Clause"
] | null | null | null | lasso/logging.py | sharkweek/lasso-python | 727957a8b9cf04240b25d18ab730153b9ab8db24 | [
"BSD-3-Clause"
] | null | null | null | lasso/logging.py | sharkweek/lasso-python | 727957a8b9cf04240b25d18ab730153b9ab8db24 | [
"BSD-3-Clause"
] | null | null | null |
import logging
import platform
from lasso.utils.ConsoleColoring import ConsoleColoring
# settings
MARKER_INFO = '[/]'
MARKER_RUNNING = '[~]'
MARKER_WARNING = '[!]'
MARKER_SUCCESS = '[Y]' if platform.system() == 'Windows' else '[✔]'
MARKER_ERROR = '[X]' if platform.system() == 'Windows' else '[✘]'
LOGGER_NAME = "las... | 20.222222 | 84 | 0.56456 | 245 | 2,184 | 4.942857 | 0.269388 | 0.049546 | 0.049546 | 0.053675 | 0.557391 | 0.446738 | 0.393889 | 0.393889 | 0.393889 | 0.393889 | 0 | 0.007047 | 0.285256 | 2,184 | 107 | 85 | 20.411215 | 0.767457 | 0.399267 | 0 | 0 | 0 | 0.041667 | 0.141141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5d22ce43adae25f1835750f6f60fceedf951696a | 1,707 | py | Python | oldtoronto/test/date_distribution_test.py | patcon/oldto | 44c099550a4e3cfafa85afbaebd3cd6c33325891 | [
"Apache-2.0"
] | 22 | 2018-04-25T22:03:53.000Z | 2021-07-13T18:43:23.000Z | oldtoronto/test/date_distribution_test.py | patcon/oldto | 44c099550a4e3cfafa85afbaebd3cd6c33325891 | [
"Apache-2.0"
] | 17 | 2018-04-30T14:04:08.000Z | 2022-02-13T19:52:44.000Z | oldtoronto/test/date_distribution_test.py | patcon/oldto | 44c099550a4e3cfafa85afbaebd3cd6c33325891 | [
"Apache-2.0"
] | 7 | 2018-05-08T23:32:44.000Z | 2022-01-27T17:49:30.000Z | from nose.tools import eq_
from parameterized import parameterized
import sys
sys.path.append('oldtoronto')
from oldtoronto.date_distribution import parse_year # noqa
@parameterized([
(('1915', '1915'), 'May 20, 1915'),
(('1922', '1922'), '[ca. June 1922]'),
(('1890', '1890'), '[ca. 1890]'),
(('1947... | 36.319149 | 79 | 0.511424 | 197 | 1,707 | 4.375635 | 0.446701 | 0.031323 | 0.038283 | 0.044084 | 0.069606 | 0.069606 | 0.069606 | 0.069606 | 0 | 0 | 0 | 0.303249 | 0.188635 | 1,707 | 46 | 80 | 37.108696 | 0.319134 | 0.049209 | 0 | 0 | 0 | 0 | 0.444719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 0 | 0.125 | 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 |
5d26d1d0c42aa6591dffbf30fa5e0609b7daf8c5 | 335 | py | Python | api_credentials.sample.py | Payoneer-Escrow/payoneer-escrow-python | 691bbbf211e675fdbb4ff8706d239a79bd94b8ed | [
"MIT"
] | 2 | 2017-05-04T12:59:40.000Z | 2020-12-26T05:39:26.000Z | api_credentials.sample.py | Payoneer-Escrow/payoneer-escrow-python | 691bbbf211e675fdbb4ff8706d239a79bd94b8ed | [
"MIT"
] | null | null | null | api_credentials.sample.py | Payoneer-Escrow/payoneer-escrow-python | 691bbbf211e675fdbb4ff8706d239a79bd94b8ed | [
"MIT"
] | 3 | 2017-06-03T12:04:50.000Z | 2019-11-16T16:50:57.000Z | """
You can use this file as a template to store your api credentials. Just copy (or
rename) this file to `api_credentials.py` and fill in your key and secret.
`api_credentials.py` is in this repository's `.gitignore` file.
"""
PAYONEER_ESCROW_API_KEY = 'ENTER_YOUR_API_KEY_HERE'
PAYONEER_ESCROW_SECRET = 'ENTER_YOUR_AP... | 37.222222 | 80 | 0.78806 | 57 | 335 | 4.368421 | 0.54386 | 0.084337 | 0.128514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131343 | 335 | 8 | 81 | 41.875 | 0.85567 | 0.653731 | 0 | 0 | 0 | 0 | 0.453704 | 0.453704 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5d2eb6169ac286849f6a657daf56e3cd16d198c0 | 161 | py | Python | bomen/huffman/huffman.py | FabioP-2055346/algo-data | 0cec3fcef43751224ca9f45d506eb5fb2c09f58a | [
"MIT"
] | null | null | null | bomen/huffman/huffman.py | FabioP-2055346/algo-data | 0cec3fcef43751224ca9f45d506eb5fb2c09f58a | [
"MIT"
] | null | null | null | bomen/huffman/huffman.py | FabioP-2055346/algo-data | 0cec3fcef43751224ca9f45d506eb5fb2c09f58a | [
"MIT"
] | null | null | null | from huffman_classes import HuffmanCoding
#input file path
path = "./sample.txt"
h = HuffmanCoding(path)
output_path = h.compress()
h.decompress(output_path)
| 16.1 | 41 | 0.770186 | 22 | 161 | 5.5 | 0.636364 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124224 | 161 | 9 | 42 | 17.888889 | 0.858156 | 0.093168 | 0 | 0 | 0 | 0 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
5d337eb8c7897c96fc16383218b1bb6db108e43c | 612 | py | Python | chatterbot/ext/django_chatterbot/admin.py | sybitetechnologies/ChatterBot | 05dfe72d31046e16e46c43fc121d6d19bf6e1321 | [
"BSD-3-Clause"
] | null | null | null | chatterbot/ext/django_chatterbot/admin.py | sybitetechnologies/ChatterBot | 05dfe72d31046e16e46c43fc121d6d19bf6e1321 | [
"BSD-3-Clause"
] | null | null | null | chatterbot/ext/django_chatterbot/admin.py | sybitetechnologies/ChatterBot | 05dfe72d31046e16e46c43fc121d6d19bf6e1321 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from chatterbot.ext.django_chatterbot.models import Statement, Response, Conversation
class StatementAdmin(admin.ModelAdmin):
list_display = ('text', )
list_filter = ('text', )
search_fields = ('text', )
class ResponseAdmin(admin.ModelAdmin):
list_display = ('stateme... | 26.608696 | 85 | 0.746732 | 62 | 612 | 7.258065 | 0.419355 | 0.097778 | 0.126667 | 0.173333 | 0.2 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130719 | 612 | 22 | 86 | 27.818182 | 0.845865 | 0 | 0 | 0.142857 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5d3a3bc4117b741df204e8dfc91ac67a41bc837b | 730 | py | Python | src/mitol/oauth_toolkit_extensions/models.py | mitodl/ol-django | 16989278e528614d3e8e21d4c5adc4f55761ab98 | [
"BSD-3-Clause"
] | 1 | 2021-07-26T12:43:57.000Z | 2021-07-26T12:43:57.000Z | src/mitol/oauth_toolkit_extensions/models.py | mitodl/ol-django | 16989278e528614d3e8e21d4c5adc4f55761ab98 | [
"BSD-3-Clause"
] | 43 | 2020-08-28T12:16:11.000Z | 2022-02-01T19:45:41.000Z | src/mitol/oauth_toolkit_extensions/models.py | mitodl/ol-django | 16989278e528614d3e8e21d4c5adc4f55761ab98 | [
"BSD-3-Clause"
] | null | null | null | """OAuth toolkit extensions model classes"""
from typing import List
from django.db import models
from oauth2_provider.settings import oauth2_settings
from mitol.common.models import TimestampedModel
APPLICATION_MODEL = oauth2_settings.APPLICATION_MODEL
class ApplicationAccess(TimestampedModel):
"""Data model ... | 29.2 | 74 | 0.749315 | 87 | 730 | 6.172414 | 0.586207 | 0.089385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011457 | 0.163014 | 730 | 24 | 75 | 30.416667 | 0.86743 | 0.206849 | 0 | 0 | 0 | 0 | 0.012433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5d3aa206b1b0400f2de716d407f1e9ab05524953 | 16,056 | py | Python | mininet/mininet/provision/googlecloudprovision.py | a815027104/Distrinet | 29a0c6acbbe15932581b7ebb4407412b8daa2feb | [
"MIT"
] | 16 | 2019-08-27T13:57:21.000Z | 2021-12-10T12:24:10.000Z | mininet/mininet/provision/googlecloudprovision.py | a815027104/Distrinet | 29a0c6acbbe15932581b7ebb4407412b8daa2feb | [
"MIT"
] | 56 | 2019-08-22T14:16:27.000Z | 2022-01-15T20:33:31.000Z | mininet/mininet/provision/googlecloudprovision.py | a815027104/Distrinet | 29a0c6acbbe15932581b7ebb4407412b8daa2feb | [
"MIT"
] | 7 | 2019-08-11T13:11:20.000Z | 2021-12-09T04:03:33.000Z | from mininet.provision.provision import Provision
from time import sleep, time
import boto3
import os
import paramiko
import uuid
from botocore.exceptions import ClientError
import progressbar
conf = Provision.get_configurations()
gcloud_conf = conf["gcloud"]
GCLOUD_REGION = gcloud_conf["region"]
SRC_PLAYBOOKS_DIR = "... | 41.595855 | 135 | 0.667601 | 1,852 | 16,056 | 5.737041 | 0.221922 | 0.039529 | 0.041129 | 0.030024 | 0.320753 | 0.268612 | 0.235671 | 0.203859 | 0.182965 | 0.173647 | 0 | 0.010322 | 0.251806 | 16,056 | 385 | 136 | 41.703896 | 0.874136 | 0.511896 | 0 | 0.413793 | 0 | 0 | 0.13109 | 0.038724 | 0 | 0 | 0 | 0.002597 | 0 | 1 | 0.22069 | false | 0.17931 | 0.055172 | 0 | 0.310345 | 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 |
5d495513e26dc8f5dec77c24730c2747799a4415 | 223 | py | Python | src/passwords.py | byjiang1996/UIUC-Course-Hunter | 464cac8ad6e5760d7213fb73d3c45ec07d21b59b | [
"BSD-2-Clause"
] | 1 | 2021-01-25T21:03:04.000Z | 2021-01-25T21:03:04.000Z | src/passwords.py | byjiang1996/UIUC-Course-Hunter | 464cac8ad6e5760d7213fb73d3c45ec07d21b59b | [
"BSD-2-Clause"
] | null | null | null | src/passwords.py | byjiang1996/UIUC-Course-Hunter | 464cac8ad6e5760d7213fb73d3c45ec07d21b59b | [
"BSD-2-Clause"
] | null | null | null | ## Use your gmail account to receive course availability auto updates!!!
## NOTE: Please remember to enable "Less secure app access" for your google account!!!
details = {'email': 'example@gmail.com', 'password': 'example'} | 74.333333 | 86 | 0.735426 | 30 | 223 | 5.466667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134529 | 223 | 3 | 87 | 74.333333 | 0.849741 | 0.686099 | 0 | 0 | 0 | 0 | 0.560606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5d4eb248e83deda87915cf17eaaca65987fa72b5 | 120 | py | Python | 1.py | seanmanson/euler | b01418cf44c1113a0c574b5158aa5b89d725cca2 | [
"MIT"
] | null | null | null | 1.py | seanmanson/euler | b01418cf44c1113a0c574b5158aa5b89d725cca2 | [
"MIT"
] | null | null | null | 1.py | seanmanson/euler | b01418cf44c1113a0c574b5158aa5b89d725cca2 | [
"MIT"
] | null | null | null | summultiples = 0
for i in range(1000):
if i % 3 == 0 or i % 5 == 0:
summultiples += i
print(summultiples)
| 15 | 32 | 0.566667 | 19 | 120 | 3.578947 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108434 | 0.308333 | 120 | 7 | 33 | 17.142857 | 0.710843 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5d59054949dbb187510a12043bf36b07e052b751 | 1,257 | py | Python | basic_exercises/final/entity.py | vuhe/LearnPython | 0a081a85456557ae542925cce950b23313c3c9b9 | [
"MIT"
] | null | null | null | basic_exercises/final/entity.py | vuhe/LearnPython | 0a081a85456557ae542925cce950b23313c3c9b9 | [
"MIT"
] | null | null | null | basic_exercises/final/entity.py | vuhe/LearnPython | 0a081a85456557ae542925cce950b23313c3c9b9 | [
"MIT"
] | null | null | null | class News:
# 允许绑定的对象
__slots__ = ('__id', '__time', '__department', '__info')
# 构造函数
def __init__(self, url, time, department, info):
self.__id = url
self.__time = time
self.__department = department
self.__info = info
@property
def id(self):
return sel... | 23.277778 | 81 | 0.587112 | 151 | 1,257 | 4.490066 | 0.18543 | 0.082596 | 0.106195 | 0.070796 | 0.19764 | 0.19764 | 0.19764 | 0.144543 | 0.144543 | 0.144543 | 0 | 0 | 0.295147 | 1,257 | 53 | 82 | 23.716981 | 0.765237 | 0.009547 | 0 | 0.157895 | 0 | 0 | 0.058018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0 | 0.210526 | 0.578947 | 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 |
5d6218b9860130a19f7ec477e449debe93e6aacf | 2,028 | py | Python | tests/test.py | e7/json-parser | c8f0af9b2204ac75aa28bf0fe9270f65108f0385 | [
"BSD-2-Clause"
] | 2 | 2015-01-21T01:50:27.000Z | 2015-08-04T02:45:59.000Z | tests/test.py | e7/json-parser | c8f0af9b2204ac75aa28bf0fe9270f65108f0385 | [
"BSD-2-Clause"
] | null | null | null | tests/test.py | e7/json-parser | c8f0af9b2204ac75aa28bf0fe9270f65108f0385 | [
"BSD-2-Clause"
] | null | null | null |
# See bindings/python for the python jsonparser module
import jsonparser
import json
import glob
passed = "\033[92mPassed\033[0m"
failed = "\033[91mFailed\033[0m"
# Strict JSON tests
#
for i, test in enumerate(
map(lambda file: open(file).read(), sorted(glob.glob('valid*.json')))):
try:
jsonpar... | 28.56338 | 85 | 0.621795 | 272 | 2,028 | 4.617647 | 0.227941 | 0.011147 | 0.115446 | 0.123408 | 0.667994 | 0.657643 | 0.638535 | 0.601115 | 0.601115 | 0.44586 | 0 | 0.011576 | 0.233235 | 2,028 | 70 | 86 | 28.971429 | 0.796141 | 0.042406 | 0 | 0.468085 | 0 | 0.021277 | 0.223371 | 0.035677 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.106383 | 0.06383 | null | null | 0.212766 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5d7490821c3da62d51d713794d22526d9123f581 | 1,611 | py | Python | setup.py | ariadnext/IDCheckIO | 62804f78e02b9ef42e10f1fe7b4b4f3abbf703fd | [
"Apache-2.0"
] | 3 | 2016-03-24T11:08:57.000Z | 2016-10-05T13:32:45.000Z | setup.py | ariadnext/IDCheckIO | 62804f78e02b9ef42e10f1fe7b4b4f3abbf703fd | [
"Apache-2.0"
] | null | null | null | setup.py | ariadnext/IDCheckIO | 62804f78e02b9ef42e10f1fe7b4b4f3abbf703fd | [
"Apache-2.0"
] | 2 | 2019-10-18T14:25:08.000Z | 2020-12-12T17:07:07.000Z | # coding: utf-8
"""
IdCheck.IO API
Check identity documents
OpenAPI spec version: 0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may... | 28.767857 | 114 | 0.690875 | 211 | 1,611 | 5.232227 | 0.611374 | 0.054348 | 0.032609 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013037 | 0.190565 | 1,611 | 55 | 115 | 29.290909 | 0.833589 | 0.498448 | 0 | 0 | 1 | 0 | 0.396226 | 0.030997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.095238 | 0 | 0.095238 | 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 |
538d60425a49bb14e5c0a6ca0c42bd31465778e2 | 575 | py | Python | ontask/migrations/0005_auto_20191207_1326.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 33 | 2017-12-02T04:09:24.000Z | 2021-11-07T08:41:57.000Z | ontask/migrations/0005_auto_20191207_1326.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 189 | 2017-11-16T04:06:29.000Z | 2022-03-11T23:35:59.000Z | ontask/migrations/0005_auto_20191207_1326.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 30 | 2017-11-30T03:35:44.000Z | 2022-01-31T03:08:08.000Z | # Generated by Django 2.2.8 on 2019-12-07 02:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ontask', '0004_auto_20191206_2039'),
]
operations = [
migrations.RemoveField(
model_name='scheduledoperation',
name=... | 25 | 107 | 0.610435 | 59 | 575 | 5.813559 | 0.728814 | 0.052478 | 0.157434 | 0.180758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 0.278261 | 575 | 22 | 108 | 26.136364 | 0.742169 | 0.078261 | 0 | 0.25 | 1 | 0 | 0.189394 | 0.043561 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
539377be727ee3598d6cafdc8afa5249f54023ca | 1,449 | py | Python | aiida/sphinxext/calcjob.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | 1 | 2016-09-12T10:51:00.000Z | 2016-09-12T10:51:00.000Z | aiida/sphinxext/calcjob.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | 17 | 2020-03-11T17:04:05.000Z | 2020-05-01T09:34:45.000Z | aiida/sphinxext/calcjob.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 38.131579 | 98 | 0.595583 | 131 | 1,449 | 6.534351 | 0.641221 | 0.018692 | 0.049065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002676 | 0.226363 | 1,449 | 37 | 99 | 39.162162 | 0.760928 | 0.42098 | 0 | 0 | 0 | 0 | 0.054299 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.066667 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
53aabd7710c7a58be66f3b2d5c9556a47f32fa27 | 1,871 | py | Python | pyout/tests/terminal.py | pyout/pyout | 8007f33b553a897e2fcf06fa8b58279d8213f411 | [
"MIT"
] | 2 | 2020-01-29T13:42:02.000Z | 2020-05-13T02:26:50.000Z | pyout/tests/terminal.py | pyout/pyout | 8007f33b553a897e2fcf06fa8b58279d8213f411 | [
"MIT"
] | 132 | 2017-12-19T18:15:18.000Z | 2022-02-03T20:28:19.000Z | pyout/tests/terminal.py | pyout/pyout | 8007f33b553a897e2fcf06fa8b58279d8213f411 | [
"MIT"
] | 3 | 2017-12-19T20:57:25.000Z | 2020-05-12T22:56:21.000Z | """Terminal test utilities.
"""
from curses import tigetstr
from curses import tparm
from functools import partial
import re
import blessings
from pyout.tests.utils import assert_contains
class Terminal(blessings.Terminal):
def __init__(self, *args, **kwargs):
super(Terminal, self).__init__(
... | 24.618421 | 75 | 0.640834 | 240 | 1,871 | 4.858333 | 0.4375 | 0.042882 | 0.027444 | 0.02916 | 0.049743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014325 | 0.216462 | 1,871 | 75 | 76 | 24.946667 | 0.781037 | 0.172635 | 0 | 0.047619 | 0 | 0 | 0.080868 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0.142857 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
53addddb18220e51b9ee32e29a8ad88cb13cf41e | 1,425 | py | Python | docs/examples/types_constrained.py | fiebiga/pydantic | de0657e4a5495de9378db9fe15a17334c2b0fae5 | [
"MIT"
] | null | null | null | docs/examples/types_constrained.py | fiebiga/pydantic | de0657e4a5495de9378db9fe15a17334c2b0fae5 | [
"MIT"
] | 86 | 2020-12-24T04:10:00.000Z | 2022-03-28T22:09:36.000Z | docs/examples/types_constrained.py | Hultner/pydantic | 37e0e39c643e49e6a744a54c70d130c4f921f3c9 | [
"MIT"
] | 1 | 2020-12-29T05:28:06.000Z | 2020-12-29T05:28:06.000Z | from decimal import Decimal
from pydantic import (
BaseModel,
NegativeFloat,
NegativeInt,
PositiveFloat,
PositiveInt,
NonNegativeFloat,
NonNegativeInt,
NonPositiveFloat,
NonPositiveInt,
conbytes,
condecimal,
confloat,
conint,
conlist,
conset,
constr,
... | 25.446429 | 77 | 0.716491 | 184 | 1,425 | 5.293478 | 0.391304 | 0.027721 | 0.020534 | 0.026694 | 0.086242 | 0.086242 | 0.043121 | 0 | 0 | 0 | 0 | 0.037197 | 0.188772 | 1,425 | 55 | 78 | 25.909091 | 0.805363 | 0 | 0 | 0 | 0 | 0 | 0.021754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
53b21167af07bd53761019752bd4f739256bfc20 | 1,830 | py | Python | examples/calc_gen.py | ethframe/peg | b9529ba00ca44c0c2ac7c6b38ae3fb7169b282da | [
"MIT"
] | 1 | 2018-03-20T10:27:53.000Z | 2018-03-20T10:27:53.000Z | examples/calc_gen.py | ethframe/peg | b9529ba00ca44c0c2ac7c6b38ae3fb7169b282da | [
"MIT"
] | null | null | null | examples/calc_gen.py | ethframe/peg | b9529ba00ca44c0c2ac7c6b38ae3fb7169b282da | [
"MIT"
] | null | null | null | from peg import metagrammar, infer_types, gen_converter, generate_py_parser
def main():
grammar = """
Start <- _ Expr !.
Expr <- Mult ((ADD / SUB)<:left Mult:right)*
Mult <- Term ((MUL / DIV)<:left Term:right)*
Term <- LP Expr RP / Number / NEG Term:expr
Number <- ... | 25.068493 | 75 | 0.52459 | 225 | 1,830 | 4.057778 | 0.302222 | 0.131435 | 0.092004 | 0.098576 | 0.230011 | 0.205915 | 0.205915 | 0.205915 | 0.205915 | 0.205915 | 0 | 0.008661 | 0.306011 | 1,830 | 72 | 76 | 25.416667 | 0.710236 | 0 | 0 | 0.111111 | 1 | 0.018519 | 0.72459 | 0.054645 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.018519 | false | 0 | 0.037037 | 0 | 0.166667 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
53b40268d117581d034af1b051736c9939e507b6 | 74 | py | Python | CodeUP/Python basic 100/6074.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6074.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6074.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | a = input()
i = ord(a)
for i in range(i-96):
print(chr(i+97),end=" ")
| 14.8 | 28 | 0.527027 | 16 | 74 | 2.4375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.216216 | 74 | 4 | 29 | 18.5 | 0.603448 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
53bb327ded67c57061b823ec973aaaf51569ab17 | 467 | py | Python | httpd.py | bshah2016/web-processing | a5e252cfbcc0e695ed51e68b57aa91de71902a48 | [
"MIT"
] | 250 | 2015-01-03T04:54:44.000Z | 2021-11-08T09:59:46.000Z | tools/httpd.py | bbondy/processing-js | b20165886a6c990137b031d69ea981fefe689f5e | [
"MIT"
] | 4 | 2015-07-10T16:29:38.000Z | 2019-02-13T07:20:20.000Z | tools/httpd.py | bbondy/processing-js | b20165886a6c990137b031d69ea981fefe689f5e | [
"MIT"
] | 51 | 2015-01-04T14:14:57.000Z | 2020-11-09T20:18:55.000Z | #!/usr/bin/env python
PORT = 9914
SERVER = '127.0.0.1'
import SimpleHTTPServer
import BaseHTTPServer
import SocketServer
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
class Server(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer):
pass
httpd = Server((SERVER, PORT), Handler)
print "Web Server lis... | 22.238095 | 84 | 0.743041 | 55 | 467 | 6.290909 | 0.690909 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024814 | 0.137045 | 467 | 21 | 85 | 22.238095 | 0.833747 | 0.042827 | 0 | 0 | 0 | 0 | 0.181208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0.214286 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
53c9315475aca7021577097cb21e89be4698210a | 1,940 | py | Python | testing/projects/cpp_pimpl/__init__.py | roehling/exhale | 3ac6712a9079b94c009ccd62f95972f6d600e404 | [
"BSD-3-Clause"
] | null | null | null | testing/projects/cpp_pimpl/__init__.py | roehling/exhale | 3ac6712a9079b94c009ccd62f95972f6d600e404 | [
"BSD-3-Clause"
] | null | null | null | testing/projects/cpp_pimpl/__init__.py | roehling/exhale | 3ac6712a9079b94c009ccd62f95972f6d600e404 | [
"BSD-3-Clause"
] | null | null | null | """
The ``cpp_pimpl`` test project.
"""
from testing.hierarchies import clike, directory, file, namespace
def default_class_hierarchy_dict():
"""Return the default class hierarchy dictionary."""
return {
namespace("pimpl"): {
clike("class", "Planet"): {},
clike("class", "Earth... | 32.333333 | 65 | 0.37732 | 122 | 1,940 | 5.909836 | 0.237705 | 0.249653 | 0.105409 | 0.133148 | 0.65742 | 0.428571 | 0.368932 | 0.368932 | 0.368932 | 0.368932 | 0 | 0.003795 | 0.456701 | 1,940 | 59 | 66 | 32.881356 | 0.680266 | 0.063918 | 0 | 0.489796 | 0 | 0 | 0.179088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | true | 0 | 0.020408 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
53cb8536810863baa36f69facd171aab61f4ca30 | 980 | py | Python | python/turbodbc_test/test_data_types.py | arikfr/turbodbc | 80a29a7edfbdabf12410af01c0c0ae74bfc3aab4 | [
"MIT"
] | 537 | 2016-03-18T21:46:05.000Z | 2022-03-29T04:43:17.000Z | python/turbodbc_test/test_data_types.py | arikfr/turbodbc | 80a29a7edfbdabf12410af01c0c0ae74bfc3aab4 | [
"MIT"
] | 325 | 2016-04-08T11:54:41.000Z | 2022-03-21T23:58:42.000Z | python/turbodbc_test/test_data_types.py | arikfr/turbodbc | 80a29a7edfbdabf12410af01c0c0ae74bfc3aab4 | [
"MIT"
] | 83 | 2016-06-15T13:55:44.000Z | 2022-03-26T02:32:26.000Z | import turbodbc.data_types
from turbodbc import STRING, BINARY, NUMBER, DATETIME, ROWID
ALL_TYPE_CODES = [turbodbc.data_types._BOOLEAN_CODE,
turbodbc.data_types._INTEGER_CODE,
turbodbc.data_types._FLOATING_POINT_CODE,
turbodbc.data_types._STRING_CODE,
... | 37.692308 | 75 | 0.693878 | 131 | 980 | 4.755725 | 0.267176 | 0.173355 | 0.218299 | 0.202247 | 0.401284 | 0.24077 | 0.24077 | 0.24077 | 0.24077 | 0.24077 | 0 | 0.002685 | 0.239796 | 980 | 25 | 76 | 39.2 | 0.833557 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
53cea784af1289d170f80bfbfb2cb96456d0375b | 837 | py | Python | robottelemetryservice/infrastructure/configuration/application.py | andrewwgordon/robot_telemetry_service | 4b9dcfe3ceaadcaeced0f7026ae03f13713c5065 | [
"MIT"
] | null | null | null | robottelemetryservice/infrastructure/configuration/application.py | andrewwgordon/robot_telemetry_service | 4b9dcfe3ceaadcaeced0f7026ae03f13713c5065 | [
"MIT"
] | null | null | null | robottelemetryservice/infrastructure/configuration/application.py | andrewwgordon/robot_telemetry_service | 4b9dcfe3ceaadcaeced0f7026ae03f13713c5065 | [
"MIT"
] | null | null | null | import sys
import logging
import logging.config
import configparser
from datetime import datetime
from robottelemetryservice.infrastructure.repository.measurement_event_sqlite_repository import MeasurementEventSQLiteRepository
try:
logging.config.fileConfig('./robottelemetryservice/resources/logging.conf',disable_... | 33.48 | 128 | 0.837515 | 90 | 837 | 7.511111 | 0.511111 | 0.066568 | 0.079882 | 0.044379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083632 | 837 | 25 | 129 | 33.48 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0.196897 | 0.133652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.315789 | 0.105263 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.