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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b03b9548b0bff3f1d4b3079664e467f611372b9 | 1,372 | py | Python | solartf/core/activation.py | solarfresh/solartf | 69a5f2ed9990f71e7e19054c4e6e1206396f24e3 | [
"Apache-2.0"
] | null | null | null | solartf/core/activation.py | solarfresh/solartf | 69a5f2ed9990f71e7e19054c4e6e1206396f24e3 | [
"Apache-2.0"
] | null | null | null | solartf/core/activation.py | solarfresh/solartf | 69a5f2ed9990f71e7e19054c4e6e1206396f24e3 | [
"Apache-2.0"
] | null | null | null | from tensorflow.keras.activations import softmax
from tensorflow.keras import layers
class HardSigmoid(layers.Layer):
def __init__(self, **kwargs):
super(HardSigmoid, self).__init__(**kwargs)
self.relu = layers.ReLU(6.)
def call(self, x, mask=None, *args, **kwargs):
return self.relu((... | 26.901961 | 118 | 0.64723 | 189 | 1,372 | 4.534392 | 0.259259 | 0.064177 | 0.042007 | 0.052509 | 0.312719 | 0.275379 | 0.149358 | 0 | 0 | 0 | 0 | 0.007442 | 0.216472 | 1,372 | 50 | 119 | 27.44 | 0.789767 | 0.034985 | 0 | 0.181818 | 0 | 0 | 0.014372 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.333333 | false | 0 | 0.060606 | 0.151515 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
2b09ec1f973c5a9e3519133ea7edc7ed1682ce45 | 5,419 | py | Python | src/labsgithub/repos.py | BloomTech-Labs/labby-functions | 1a6236d7df6b1b222014ef2365f150e93268cc26 | [
"MIT"
] | null | null | null | src/labsgithub/repos.py | BloomTech-Labs/labby-functions | 1a6236d7df6b1b222014ef2365f150e93268cc26 | [
"MIT"
] | 5 | 2020-02-11T06:02:24.000Z | 2021-06-15T16:51:17.000Z | src/labsgithub/repos.py | BloomTech-Labs/labby-functions | 1a6236d7df6b1b222014ef2365f150e93268cc26 | [
"MIT"
] | 2 | 2021-03-28T02:32:20.000Z | 2021-05-13T15:19:53.000Z | # Standard library imports
from enum import Enum
# Third party imports
import github.GithubException
# Local imports
from labsdao import repos
from labsgithub import dao as github_dao
# The repository naming convention requires a specific postfix depending on
# the purpose
class RepositoryPurpose(Enum):
FRONTEN... | 35.418301 | 118 | 0.592176 | 554 | 5,419 | 5.599278 | 0.268953 | 0.135397 | 0.085106 | 0.063185 | 0.348485 | 0.300129 | 0.187621 | 0.143133 | 0.072211 | 0.072211 | 0 | 0.000485 | 0.239528 | 5,419 | 152 | 119 | 35.651316 | 0.752245 | 0.897029 | 0 | 0 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0.006579 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2b133446977d2497d666fab585fe6484270fe82e | 816 | py | Python | c2_1_data/s5_ex2_2.py | zhou-zhenyi/sicp | ee6475d79a486a3bdc458378c55d0721195ea7d6 | [
"MIT"
] | null | null | null | c2_1_data/s5_ex2_2.py | zhou-zhenyi/sicp | ee6475d79a486a3bdc458378c55d0721195ea7d6 | [
"MIT"
] | null | null | null | c2_1_data/s5_ex2_2.py | zhou-zhenyi/sicp | ee6475d79a486a3bdc458378c55d0721195ea7d6 | [
"MIT"
] | null | null | null | from util_pair import cons, car, cdr
from util import average
def make_segment(start, end):
return cons(start, end)
def start_segment(segment):
return car(segment)
def end_segment(segment):
return cdr(segment)
def make_point(x, y):
return cons(x, y)
def x_point(point):
return car(point)
def y_... | 22.666667 | 71 | 0.650735 | 120 | 816 | 4.225 | 0.225 | 0.193294 | 0.112426 | 0.094675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00627 | 0.218137 | 816 | 36 | 72 | 22.666667 | 0.788401 | 0 | 0 | 0 | 0 | 0 | 0.004896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.269231 | 0.653846 | 0.115385 | 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 | 1 | 0 | 0 | 3 |
2b15c388975a498a25a69415dd763e34b89f9ee0 | 1,725 | py | Python | api/tests/factories/__init__.py | simpsonw/atmosphere | 3a5203ef0b563de3a0e8c8c8715df88186532d7a | [
"BSD-3-Clause"
] | 197 | 2016-12-08T02:33:32.000Z | 2022-03-23T14:27:47.000Z | api/tests/factories/__init__.py | simpsonw/atmosphere | 3a5203ef0b563de3a0e8c8c8715df88186532d7a | [
"BSD-3-Clause"
] | 385 | 2017-01-03T22:51:46.000Z | 2020-12-16T16:20:42.000Z | api/tests/factories/__init__.py | benlazarine/atmosphere | 38fad8e4002e510e8b4294f2bb5bc75e8e1817fa | [
"BSD-3-Clause"
] | 50 | 2016-12-08T08:32:25.000Z | 2021-12-10T00:21:39.000Z | from .tag_factory import TagFactory
from .user_factory import UserFactory, AnonymousUserFactory
from .provider_factory import ProviderFactory
from .group_factory import GroupFactory
from .group_membership_factory import GroupMembershipFactory
from .project_factory import ProjectFactory
from .identity_factory import Ide... | 50.735294 | 91 | 0.852754 | 143 | 1,725 | 10.048951 | 0.34965 | 0.189979 | 0.032011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088696 | 1,725 | 33 | 92 | 52.272727 | 0.914122 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0.134493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.65625 | 0 | 0.65625 | 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 | 1 | 0 | 0 | 3 |
2b2dcf3c17a98fb956b430658e5a2a33085c6b99 | 2,078 | py | Python | thaniya_common/src/thaniya_common/AppRuntimeBase.py | jkpubsrc/Thaniya | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | [
"Apache-1.1"
] | 1 | 2021-01-20T18:27:22.000Z | 2021-01-20T18:27:22.000Z | thaniya_common/src/thaniya_common/AppRuntimeBase.py | jkpubsrc/Thaniya | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | [
"Apache-1.1"
] | null | null | null | thaniya_common/src/thaniya_common/AppRuntimeBase.py | jkpubsrc/Thaniya | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | [
"Apache-1.1"
] | null | null | null |
import os
import jk_typing
import jk_logging
from .cfg import AbstractAppCfg
from .utils import IOContext
#
# Base class for application runtime objects.
#
class AppRuntimeBase(object):
########################################################################################################################... | 21.645833 | 129 | 0.459095 | 143 | 2,078 | 6.454545 | 0.433566 | 0.048754 | 0.099675 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001088 | 0.115014 | 2,078 | 95 | 130 | 21.873684 | 0.500816 | 0.118864 | 0 | 0.137931 | 0 | 0 | 0.024486 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.206897 | false | 0 | 0.172414 | 0.137931 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2b427cfbacb435beff77000e22ecbd3921259157 | 29,645 | py | Python | functions_tools.py | BlenderNPR/Abnormal | 0db8471b2cf6832c74aa2a7e8c60c18218703300 | [
"MIT"
] | 133 | 2020-03-25T14:22:15.000Z | 2021-01-05T16:23:36.000Z | functions_tools.py | bnpr/Abnormal | 0db8471b2cf6832c74aa2a7e8c60c18218703300 | [
"MIT"
] | 12 | 2021-01-28T09:57:56.000Z | 2022-03-13T19:48:06.000Z | functions_tools.py | bnpr/Abnormal | 0db8471b2cf6832c74aa2a7e8c60c18218703300 | [
"MIT"
] | 8 | 2021-06-24T05:52:09.000Z | 2022-03-28T05:52:12.000Z | import bpy
from mathutils import Vector, Euler
from mathutils.geometry import intersect_line_plane
from .functions_modal import *
from .classes_tool import *
def setup_tools(modal):
modal.tools = GEN_Modal_Container()
modal.tools.set_cancel_keys(['Cancel Tool 1', 'Cancel Tool 2'])
modal.tools.set_confirm_... | 29.974722 | 81 | 0.709529 | 4,178 | 29,645 | 4.670656 | 0.050742 | 0.040586 | 0.063134 | 0.059188 | 0.834837 | 0.785282 | 0.715743 | 0.672953 | 0.628421 | 0.575074 | 0 | 0.009549 | 0.194603 | 29,645 | 988 | 82 | 30.005061 | 0.807757 | 0.030123 | 0 | 0.598303 | 0 | 0 | 0.045367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100424 | false | 0.007072 | 0.007072 | 0 | 0.207921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b555cc26a64d0103b2dfab4eb3f3a9427deacb1 | 14,155 | py | Python | datumaro/components/errors.py | jovialio/datumaro | 437b39d481134e48ed086517b7b3c53d7c6d26f0 | [
"MIT"
] | null | null | null | datumaro/components/errors.py | jovialio/datumaro | 437b39d481134e48ed086517b7b3c53d7c6d26f0 | [
"MIT"
] | null | null | null | datumaro/components/errors.py | jovialio/datumaro | 437b39d481134e48ed086517b7b3c53d7c6d26f0 | [
"MIT"
] | null | null | null | # Copyright (C) 2020-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
from typing import Any, Tuple
from attrs import define, field
class ImmutableObjectError(Exception):
def __str__(self):
return "Cannot set value of immutable object"
class DatumaroError(Exception):
pass
class VcsError(Da... | 27.538911 | 79 | 0.662169 | 1,674 | 14,155 | 5.385305 | 0.165472 | 0.037271 | 0.052135 | 0.083417 | 0.521908 | 0.46345 | 0.413866 | 0.339767 | 0.284748 | 0.224737 | 0 | 0.00073 | 0.22621 | 14,155 | 513 | 80 | 27.592593 | 0.822332 | 0.011798 | 0 | 0.483117 | 0 | 0 | 0.260263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12987 | false | 0.054545 | 0.015584 | 0.124675 | 0.683117 | 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 | 1 | 1 | 0 | 0 | 3 |
2b6bab454c59414d799cbe3423a541f0c60b6808 | 224 | py | Python | fopy/solve/__init__.py | formulapy/fopy | 650e340c4333ab66bfcb790d1a14f27aa7bbaa1f | [
"MIT"
] | null | null | null | fopy/solve/__init__.py | formulapy/fopy | 650e340c4333ab66bfcb790d1a14f27aa7bbaa1f | [
"MIT"
] | 1 | 2020-10-12T01:23:20.000Z | 2020-10-12T01:23:20.000Z | fopy/solve/__init__.py | formulapy/fopy | 650e340c4333ab66bfcb790d1a14f27aa7bbaa1f | [
"MIT"
] | null | null | null | """Deriving expressions from formulas database
Puplic API
find
search
solve_for
derive
graph
trace
series of solve_for
"""
class Solve:
def __init__(self,):
pass | 14 | 46 | 0.575893 | 24 | 224 | 5.125 | 0.875 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375 | 224 | 16 | 47 | 14 | 0.878571 | 0.732143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2b78aec135d6c64a5bd2debe85b03e7cccbfe5bd | 109 | py | Python | atcoder/abc/b138.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | atcoder/abc/b138.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | atcoder/abc/b138.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | _ = int(input())
A = tuple(map(int, input().split()))
sum_ = 0
for a in A:
sum_ += 1 / a
print(1 / sum_)
| 15.571429 | 36 | 0.541284 | 20 | 109 | 2.75 | 0.6 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.238532 | 109 | 6 | 37 | 18.166667 | 0.626506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 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 | 3 |
9912649991fce2f539c77c09ecefd0ba1a256ccb | 10,936 | py | Python | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_parts/tests/test_rest_part.py | piyushka17/azure-intelligent-edge-patterns | 0d088899afb0022daa2ac434226824dba2c997c1 | [
"MIT"
] | null | null | null | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_parts/tests/test_rest_part.py | piyushka17/azure-intelligent-edge-patterns | 0d088899afb0022daa2ac434226824dba2c997c1 | [
"MIT"
] | null | null | null | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_parts/tests/test_rest_part.py | piyushka17/azure-intelligent-edge-patterns | 0d088899afb0022daa2ac434226824dba2c997c1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Azure Part REST API testcases.
"""
import json
import logging
from django.urls import reverse
from rest_framework import status
from vision_on_edge.general.tests.azure_testcase import CustomVisionTestCase
from vision_on_edge.general.tests.test_special_strings import special_strings
from .... | 35.62215 | 77 | 0.610004 | 1,230 | 10,936 | 5.264228 | 0.110569 | 0.106564 | 0.050193 | 0.065637 | 0.765405 | 0.730193 | 0.713822 | 0.689112 | 0.657915 | 0.625792 | 0 | 0.014749 | 0.256035 | 10,936 | 306 | 78 | 35.738562 | 0.781096 | 0.132772 | 0 | 0.615385 | 0 | 0 | 0.130232 | 0 | 0 | 0 | 0 | 0 | 0.320513 | 1 | 0.057692 | false | 0 | 0.044872 | 0 | 0.108974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
996d3b3567715fe7848cacc33e9f63f74b66a2c7 | 52 | py | Python | test2.py | cvendeirinho/HelloWorld | cee78dc5dfc154cdcbaf8f01cf34c3de50230cdb | [
"Apache-2.0"
] | null | null | null | test2.py | cvendeirinho/HelloWorld | cee78dc5dfc154cdcbaf8f01cf34c3de50230cdb | [
"Apache-2.0"
] | null | null | null | test2.py | cvendeirinho/HelloWorld | cee78dc5dfc154cdcbaf8f01cf34c3de50230cdb | [
"Apache-2.0"
] | null | null | null | for i in range(10):
print(i)
print("test2.py")
| 10.4 | 19 | 0.596154 | 10 | 52 | 3.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.211538 | 52 | 4 | 20 | 13 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 3 |
9977eba27d86ec6eb6a581e752decd54324a6760 | 255 | py | Python | CodeChef/Python Codes/HS08TEST.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null | CodeChef/Python Codes/HS08TEST.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null | CodeChef/Python Codes/HS08TEST.py | khaleeque-ansari/Online-Coding-Problems-Solutions-Python | c8378ccad88ce5f50239f82cf9569344e1b92f18 | [
"Apache-2.0"
] | null | null | null |
amount, balance = [float(x) for x in raw_input().split()]
if amount%5 != 0:
print '%.2f' %balance
elif amount > balance - 0.50:
print '%.2f' %balance
else :
print '%.2f' % (balance - amount - 0.50)
| 17 | 58 | 0.486275 | 32 | 255 | 3.84375 | 0.53125 | 0.170732 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067073 | 0.356863 | 255 | 14 | 59 | 18.214286 | 0.682927 | 0 | 0 | 0.285714 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9978d5f810459e52c1f6b0ab4dc9a864af25316a | 167 | py | Python | app/api/utils/password_manager.py | dragan-novakovic/Home-presence | 7957a7fa7316ba915f3f07a3891a2dbd03d1e3f9 | [
"MIT"
] | 5 | 2020-09-17T14:41:12.000Z | 2022-02-27T01:56:33.000Z | app/api/utils/password_manager.py | dragan-novakovic/Home-presence | 7957a7fa7316ba915f3f07a3891a2dbd03d1e3f9 | [
"MIT"
] | null | null | null | app/api/utils/password_manager.py | dragan-novakovic/Home-presence | 7957a7fa7316ba915f3f07a3891a2dbd03d1e3f9 | [
"MIT"
] | 1 | 2020-10-01T21:26:19.000Z | 2020-10-01T21:26:19.000Z | import hashlib
def hash_password(password):
m = hashlib.sha256()
m.update(bytes(password, 'UTF-8'))
enc_password = m.hexdigest()
return enc_password
| 18.555556 | 38 | 0.688623 | 22 | 167 | 5.090909 | 0.636364 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.191617 | 167 | 8 | 39 | 20.875 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.02994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.666667 | 0.166667 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
998c1e3aaeccbbb315c9f03ff5d93b8e43a8cea7 | 159 | py | Python | tests/integration/Interrupt.py | expo/watchman | 6ead93f4e94a71f44301a49605af7d6924063661 | [
"Apache-2.0"
] | 1 | 2019-06-19T18:12:38.000Z | 2019-06-19T18:12:38.000Z | tests/integration/Interrupt.py | sunshowers/watchman | 8f48ffbb3ab28c04f37b0a6e8676a5639dd46f45 | [
"Apache-2.0"
] | null | null | null | tests/integration/Interrupt.py | sunshowers/watchman | 8f48ffbb3ab28c04f37b0a6e8676a5639dd46f45 | [
"Apache-2.0"
] | null | null | null |
interrupted = False
def wasInterrupted():
global interrupted
return interrupted
def setInterrupted():
global interrupted
interrupted = True
| 14.454545 | 22 | 0.72956 | 14 | 159 | 8.285714 | 0.571429 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220126 | 159 | 10 | 23 | 15.9 | 0.935484 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41da3ea9bf1c3a920c2bd64b8f07e239e81be0f4 | 287 | py | Python | S4/S4 Library/simulation/restaurants/restaurant_ui.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/restaurants/restaurant_ui.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/restaurants/restaurant_ui.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from distributor.ops import Op, protocol_constants
class ShowMenu(Op):
def __init__(self, show_menu_message):
super().__init__()
self.op = show_menu_message
def write(self, msg):
self.serialize_op(msg, self.op, protocol_constants.RESTAURANT_SHOW_MENU)
| 26.090909 | 80 | 0.714286 | 38 | 287 | 4.947368 | 0.526316 | 0.12766 | 0.202128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191638 | 287 | 10 | 81 | 28.7 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
41f3f8dd8a0e4147f38c8b869f6d69a32d1a4a35 | 933 | py | Python | telegram_bot/_model.py | gcatanese/TelegramBotDemo | b18bc99e3d69261d44c849d272f8c18a086130d1 | [
"Apache-2.0"
] | 10 | 2021-04-02T13:04:07.000Z | 2022-03-15T12:28:50.000Z | telegram_bot/_model.py | gcatanese/TelegramBotDemo | b18bc99e3d69261d44c849d272f8c18a086130d1 | [
"Apache-2.0"
] | null | null | null | telegram_bot/_model.py | gcatanese/TelegramBotDemo | b18bc99e3d69261d44c849d272f8c18a086130d1 | [
"Apache-2.0"
] | 2 | 2021-10-01T07:13:06.000Z | 2021-11-25T09:12:16.000Z |
class User:
def __init__(self, id):
self.id = id
self.first_name = ""
self.last_name = ""
self.lang = ""
def __init__(self):
self.id = ""
self.first_name = ""
self.last_name = ""
self.lang = ""
def get_full_name_and_lang(self):
retur... | 20.733333 | 103 | 0.578778 | 116 | 933 | 4.258621 | 0.172414 | 0.129555 | 0.111336 | 0.129555 | 0.396761 | 0.368421 | 0.368421 | 0.368421 | 0.226721 | 0.153846 | 0 | 0 | 0.287245 | 933 | 44 | 104 | 21.204545 | 0.742857 | 0 | 0 | 0.448276 | 0 | 0.034483 | 0.21098 | 0.10549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0 | 0.137931 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
510d3811f3806e2c1db12e374197d11234f6287c | 2,116 | py | Python | symphony/bdk/gen/__init__.py | symphony-mariacristina/symphony-bdk-python | ef65762739890e826ccfaf38f7a41d61b95e7f22 | [
"Apache-2.0"
] | null | null | null | symphony/bdk/gen/__init__.py | symphony-mariacristina/symphony-bdk-python | ef65762739890e826ccfaf38f7a41d61b95e7f22 | [
"Apache-2.0"
] | null | null | null | symphony/bdk/gen/__init__.py | symphony-mariacristina/symphony-bdk-python | ef65762739890e826ccfaf38f7a41d61b95e7f22 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
"""
Agent API
This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end ... | 75.571429 | 1,445 | 0.800095 | 320 | 2,116 | 5.275 | 0.509375 | 0.056872 | 0.07109 | 0.085308 | 0.120853 | 0.120853 | 0 | 0 | 0 | 0 | 0 | 0.011673 | 0.149811 | 2,116 | 27 | 1,446 | 78.37037 | 0.926626 | 0.76465 | 0 | 0 | 0 | 0 | 0.010707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
511e5d2c4bec98b9349b1def26e79d228c6df42a | 136 | py | Python | poetry_projcet/test.py | pirahansiah/cv-ml-pipline | 0a8cbcce42538c4814f1ec3acd1dce38f7fd9d65 | [
"BSD-3-Clause-Attribution"
] | 1 | 2020-05-07T09:42:31.000Z | 2020-05-07T09:42:31.000Z | poetry_projcet/test.py | pirahansiah/cv-ml-pipline | 0a8cbcce42538c4814f1ec3acd1dce38f7fd9d65 | [
"BSD-3-Clause-Attribution"
] | 8 | 2020-03-03T14:16:26.000Z | 2022-03-12T00:17:42.000Z | poetry_projcet/test.py | pirahansiah/cv-ml-pipline | 0a8cbcce42538c4814f1ec3acd1dce38f7fd9d65 | [
"BSD-3-Clause-Attribution"
] | null | null | null | import os
class Test:
def p(self):
return print('test')
if __name__ == "__main__":
farshid = Test()
farshid.p()
| 11.333333 | 28 | 0.566176 | 17 | 136 | 4.058824 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 136 | 11 | 29 | 12.363636 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0.142857 | 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 | 1 | 1 | 0 | 0 | 3 |
5132ac5b83f797875579291f92ebb5ebff1b55a9 | 584 | py | Python | apps/win/windows_terminal/windows_terminal_actions.py | RichardHladik/knausj_talon | dc67801a59efc577f9010a2056501f5570bea14d | [
"MIT"
] | 1 | 2020-12-30T00:18:18.000Z | 2020-12-30T00:18:18.000Z | apps/win/windows_terminal/windows_terminal_actions.py | RichardHladik/knausj_talon | dc67801a59efc577f9010a2056501f5570bea14d | [
"MIT"
] | null | null | null | apps/win/windows_terminal/windows_terminal_actions.py | RichardHladik/knausj_talon | dc67801a59efc577f9010a2056501f5570bea14d | [
"MIT"
] | null | null | null | from talon import Context, actions
ctx = Context()
ctx.matches = r"""
app: windows_terminal
"""
@ctx.action_class('edit')
class EditActions:
# commands that work regardless of active terminal should go here.
# windows terminal config based on mrob95's
# https://github.com/mrob95/WindowsTerminal-config... | 27.809524 | 80 | 0.696918 | 82 | 584 | 4.902439 | 0.621951 | 0.099502 | 0.139303 | 0.189055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008163 | 0.160959 | 584 | 20 | 81 | 29.2 | 0.812245 | 0.309932 | 0 | 0 | 0 | 0 | 0.195489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 3 |
5144389e9fd9df8a9c81a1006d4ce480bd6bb71c | 29 | py | Python | cache/constants/defaults.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 206 | 2015-10-15T07:05:08.000Z | 2021-02-19T11:48:36.000Z | cache/constants/defaults.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 8 | 2017-10-16T10:18:31.000Z | 2022-03-09T14:24:27.000Z | cache/constants/defaults.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 61 | 2015-10-15T08:12:44.000Z | 2022-03-10T12:25:06.000Z | HTK_CACHE_KEY_PREFIX = 'htk'
| 14.5 | 28 | 0.793103 | 5 | 29 | 4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
5aa4e6d9f5877e885e0f791ce36ce44f502a2fa6 | 1,759 | py | Python | Controller/vehicle_control/vehicle_controller.py | Ernstsen/RC-car | eda8ec6ae28686380c06f442c889ea89a077315b | [
"MIT"
] | null | null | null | Controller/vehicle_control/vehicle_controller.py | Ernstsen/RC-car | eda8ec6ae28686380c06f442c889ea89a077315b | [
"MIT"
] | 3 | 2021-03-23T15:13:14.000Z | 2021-03-23T16:15:20.000Z | Controller/vehicle_control/vehicle_controller.py | Ernstsen/RC-car | eda8ec6ae28686380c06f442c889ea89a077315b | [
"MIT"
] | null | null | null | import socket
from .vehicle_controller_interface import VehicleControllerI
try:
from communication import server_utilities as server, Configurator
except ModuleNotFoundError:
from Controller.communication import server_utilities as server, Configurator
class VehicleController(VehicleControllerI):
"""
... | 30.859649 | 98 | 0.65037 | 196 | 1,759 | 5.739796 | 0.321429 | 0.124444 | 0.112 | 0.192 | 0.430222 | 0.336 | 0.264889 | 0.168889 | 0 | 0 | 0 | 0.002954 | 0.230244 | 1,759 | 56 | 99 | 31.410714 | 0.827917 | 0.127914 | 0 | 0 | 0 | 0 | 0.08345 | 0.030154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0 | 0.148148 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 3 |
5aa9d8235ad1af08a77ba4bd5edd6a4cd1813311 | 137 | py | Python | output/models/sun_data/elem_decl/type_def/type_def01401m/type_def01401m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/sun_data/elem_decl/type_def/type_def01401m/type_def01401m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/sun_data/elem_decl/type_def/type_def01401m/type_def01401m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.sun_data.elem_decl.type_def.type_def01401m.type_def01401m1_xsd.type_def01401m1 import Root
__all__ = [
"Root",
]
| 22.833333 | 109 | 0.80292 | 20 | 137 | 4.95 | 0.75 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138211 | 0.10219 | 137 | 5 | 110 | 27.4 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
5abc893c312fe99515c1dd5312dd110887434a93 | 271 | py | Python | geojson2kml/__init__.py | aguinane/geojson-to-kml | 41fbd2c9668ead123c4ac5382f155ebc92fbcdf8 | [
"MIT"
] | null | null | null | geojson2kml/__init__.py | aguinane/geojson-to-kml | 41fbd2c9668ead123c4ac5382f155ebc92fbcdf8 | [
"MIT"
] | null | null | null | geojson2kml/__init__.py | aguinane/geojson-to-kml | 41fbd2c9668ead123c4ac5382f155ebc92fbcdf8 | [
"MIT"
] | null | null | null | """
geojson2kml
~~~~~
Convert GeoJSON to KML file
"""
import logging
from logging import NullHandler
from .version import __version__
# Set default logging handler to avoid "No handler found" warnings.
logging.getLogger(__name__).addHandler(NullHandler())
| 19.357143 | 67 | 0.741697 | 31 | 271 | 6.225806 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.169742 | 271 | 13 | 68 | 20.846154 | 0.853333 | 0.413284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5ac40e7d34c9182ac77f0369ee9f9756a45a1d75 | 67 | py | Python | pytorch_classification/data/datasets/__init__.py | hysapphire/pytorch-classification | 029c4db44628affc5f8c3e512809196e00178cf9 | [
"MIT"
] | 1 | 2020-03-07T01:11:20.000Z | 2020-03-07T01:11:20.000Z | pytorch_classification/data/datasets/__init__.py | hysapphire/pytorch-classification | 029c4db44628affc5f8c3e512809196e00178cf9 | [
"MIT"
] | 1 | 2020-03-07T01:27:45.000Z | 2020-03-07T01:50:13.000Z | pytorch_classification/data/datasets/__init__.py | hysapphire/pytorch-classification | 029c4db44628affc5f8c3e512809196e00178cf9 | [
"MIT"
] | 1 | 2020-03-15T08:15:05.000Z | 2020-03-15T08:15:05.000Z | from .general import GeneralDataset
__all__ = ["GeneralDataset"]
| 13.4 | 35 | 0.776119 | 6 | 67 | 8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 67 | 4 | 36 | 16.75 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5acb72e9e0ac28265aadf52fc390b1f3f55bbd9e | 254 | py | Python | CreateAfricanAnimals.py | JoshKowal/LabelboxHelloWorld | bde7a558439d09dfe42fb1eaaaeea93b2a69635c | [
"Apache-2.0"
] | null | null | null | CreateAfricanAnimals.py | JoshKowal/LabelboxHelloWorld | bde7a558439d09dfe42fb1eaaaeea93b2a69635c | [
"Apache-2.0"
] | null | null | null | CreateAfricanAnimals.py | JoshKowal/LabelboxHelloWorld | bde7a558439d09dfe42fb1eaaaeea93b2a69635c | [
"Apache-2.0"
] | null | null | null | import CreateProject
from CreateProject import create_project_with_dataset
proj_name = 'African Animals'
data_name = 'Animals Subset'
filepath = '<your_path_here>/AfricanAnimalsSubset/*/*.jpg'
create_project_with_dataset(proj_name, data_name, filepath) | 31.75 | 59 | 0.834646 | 32 | 254 | 6.25 | 0.59375 | 0.13 | 0.17 | 0.24 | 0.32 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082677 | 254 | 8 | 59 | 31.75 | 0.858369 | 0 | 0 | 0 | 0 | 0 | 0.290196 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
5ad09994649ca89a4031f61822096568511911db | 241 | py | Python | terminal/services/__init__.py | creditease-natrix/natrix | 8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862 | [
"MIT"
] | 3 | 2019-06-28T02:25:10.000Z | 2019-12-16T08:50:08.000Z | terminal/services/__init__.py | creditease-natrix/natrix | 8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862 | [
"MIT"
] | 3 | 2020-02-12T00:17:22.000Z | 2021-06-10T21:29:11.000Z | terminal/services/__init__.py | creditease-natrix/natrix | 8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862 | [
"MIT"
] | 1 | 2019-06-22T06:04:59.000Z | 2019-06-22T06:04:59.000Z | # -*- coding: utf-8 -*-
from .reporter import (
basic_info_process, terminal_basic_guard,
advance_info_process, terminal_advance_guard,
terminal_alive_master,
)
from .keepalive import (
terminal_guardian,
)
| 20.083333 | 53 | 0.684647 | 26 | 241 | 5.923077 | 0.615385 | 0.142857 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.228216 | 241 | 11 | 54 | 21.909091 | 0.822581 | 0.087137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ad587684f1fa201df90385ede5a3afdc92bdbc4 | 273 | py | Python | main.py | bbglab/openvariant | ea1e1b6edf0486b0dea34f43227ba333df1071cc | [
"BSD-3-Clause"
] | null | null | null | main.py | bbglab/openvariant | ea1e1b6edf0486b0dea34f43227ba333df1071cc | [
"BSD-3-Clause"
] | null | null | null | main.py | bbglab/openvariant | ea1e1b6edf0486b0dea34f43227ba333df1071cc | [
"BSD-3-Clause"
] | null | null | null | import os
from openvariant.commands.tasks.groupby import group_by
for g, v, _ in group_by(f'{os.getcwd()}/tests/data/dataset/', f'{os.getcwd()}/tests/data/task_test.yaml',
None, key_by='DATASET', where="PROJECT >= \"SAMPLE1\"", quite=True):
print(g, len(v))
| 34.125 | 105 | 0.673993 | 43 | 273 | 4.162791 | 0.697674 | 0.078212 | 0.100559 | 0.156425 | 0.201117 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.131868 | 273 | 7 | 106 | 39 | 0.751055 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.263736 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5ae2dde0f0ed363b957c9dfaa386bc1ad465c75d | 795 | py | Python | Data Science With Python/22-network-analysis-in-python-(part-1)/04-bringing-it-all-together/02-characterizing-the-network-2.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 3 | 2019-05-12T04:49:24.000Z | 2020-05-06T00:40:28.000Z | Data Science With Python/22-network-analysis-in-python-(part-1)/04-bringing-it-all-together/02-characterizing-the-network-2.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | null | null | null | Data Science With Python/22-network-analysis-in-python-(part-1)/04-bringing-it-all-together/02-characterizing-the-network-2.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 7 | 2018-11-06T17:43:31.000Z | 2020-11-07T21:08:16.000Z | '''
Characterizing the network (II)
Let's continue recalling what you've learned before about node importances, by plotting the degree distribution of a network. This is the distribution of node degrees computed across all nodes in a network.
INSTRUCTIONS
100XP
Plot the degree distribution of the GitHub collaboration... | 37.857143 | 206 | 0.796226 | 122 | 795 | 5.180328 | 0.581967 | 0.056962 | 0.099684 | 0.109177 | 0.177215 | 0.177215 | 0.177215 | 0.177215 | 0.177215 | 0 | 0 | 0.004425 | 0.14717 | 795 | 20 | 207 | 39.75 | 0.927729 | 0.838994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5ae802de7458a2506b3cb96581df25aed3449ede | 379 | py | Python | beginning-game-development/Chapter 5/5-6.py | CrtomirJuren/pygame-projects | f710f36050bfe3ece866bbda7d570caa1e037d7a | [
"MIT"
] | 43 | 2015-09-20T02:05:48.000Z | 2022-03-01T22:00:43.000Z | beginning-game-development/Chapter 5/5-6.py | CrtomirJuren/pygame-projects | f710f36050bfe3ece866bbda7d570caa1e037d7a | [
"MIT"
] | null | null | null | beginning-game-development/Chapter 5/5-6.py | CrtomirJuren/pygame-projects | f710f36050bfe3ece866bbda7d570caa1e037d7a | [
"MIT"
] | 40 | 2015-05-19T06:51:13.000Z | 2022-03-27T18:11:16.000Z | class Vector2:
def __init__(self, x=0, y=0):
self.x = x
self.y = y
def __str__(self):
return "(%s, %s)"%(self.x, self.y)
def from_points(P1, P2):
# ( P2[0] - P1[0], P2[1] - P1[1] ) is the same as:
# numpy.array(P1) - numpy.array(P1)
... | 23.6875 | 58 | 0.435356 | 58 | 379 | 2.689655 | 0.37931 | 0.096154 | 0.076923 | 0.076923 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0 | 0 | 0 | 0.103004 | 0.385224 | 379 | 15 | 59 | 25.266667 | 0.566524 | 0.216359 | 0 | 0 | 0 | 0 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
852526b3c07c6b61e8259eb0e245341b77af6dc3 | 229 | py | Python | scopedconfig/error.py | etingof/scopedconfig | 100438c4cab3842e424b1496d66269fe00d0ef17 | [
"BSD-2-Clause"
] | null | null | null | scopedconfig/error.py | etingof/scopedconfig | 100438c4cab3842e424b1496d66269fe00d0ef17 | [
"BSD-2-Clause"
] | null | null | null | scopedconfig/error.py | etingof/scopedconfig | 100438c4cab3842e424b1496d66269fe00d0ef17 | [
"BSD-2-Clause"
] | null | null | null | #
# This file is part of scopedconfig software.
#
# Copyright (c) 2019, Ilya Etingof <etingof@gmail.com>
# License: https://github.com/etingof/scopedconfig/blob/master/LICENSE.rst
#
class ScopedConfigError(Exception):
pass
| 20.818182 | 74 | 0.746725 | 29 | 229 | 5.896552 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020101 | 0.131004 | 229 | 10 | 75 | 22.9 | 0.839196 | 0.737991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
85260a689ec85e6176d86e2711623e6fcf391d9f | 577 | py | Python | hwtBuildsystem/quartus/part.py | optical-o/hwtBuildsystem | 791c0409fde07e06c443d4dc2eece284804c3609 | [
"MIT"
] | 2 | 2020-02-07T14:24:55.000Z | 2020-06-02T09:29:02.000Z | hwtBuildsystem/quartus/part.py | optical-o/hwtBuildsystem | 791c0409fde07e06c443d4dc2eece284804c3609 | [
"MIT"
] | null | null | null | hwtBuildsystem/quartus/part.py | optical-o/hwtBuildsystem | 791c0409fde07e06c443d4dc2eece284804c3609 | [
"MIT"
] | 1 | 2021-09-27T20:11:03.000Z | 2021-09-27T20:11:03.000Z |
class IntelPart():
"""
Intel/Altera FPGA model name specification
"""
def __init__(self, family:str, device:str):
self.family = family
self.device = device
def as_tuple(self):
return (
self.family,
self.device,
)
def __eq__(self, other... | 22.192308 | 88 | 0.587522 | 68 | 577 | 4.514706 | 0.367647 | 0.130293 | 0.104235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285962 | 577 | 25 | 89 | 23.08 | 0.745146 | 0.07279 | 0 | 0 | 0 | 0.066667 | 0.11412 | 0.054159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.266667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
852837d0b511098223cd369bf7c5bc8975eb2591 | 529 | py | Python | revm2m/sampleapp/models.py | thebjorn/revm2m | 7102d57065e628ec956629ff200d8e79703e0da4 | [
"Unlicense"
] | null | null | null | revm2m/sampleapp/models.py | thebjorn/revm2m | 7102d57065e628ec956629ff200d8e79703e0da4 | [
"Unlicense"
] | null | null | null | revm2m/sampleapp/models.py | thebjorn/revm2m | 7102d57065e628ec956629ff200d8e79703e0da4 | [
"Unlicense"
] | null | null | null | from django.db import models
class Blog(models.Model):
name = models.CharField(max_length=100)
class Author(models.Model):
name = models.CharField(max_length=200)
joined = models.DateField()
def __repr__(self):
return self.name
class Entry(models.Model):
blog = models.ForeignKey(Blog,... | 22.041667 | 60 | 0.706994 | 65 | 529 | 5.569231 | 0.492308 | 0.09116 | 0.149171 | 0.198895 | 0.331492 | 0.21547 | 0.21547 | 0 | 0 | 0 | 0 | 0.020979 | 0.189036 | 529 | 23 | 61 | 23 | 0.822844 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.133333 | 1 | 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 | 1 | 1 | 0 | 0 | 3 |
5186fa2d21b8ee544fecdc6d024bb969b492c7a0 | 70 | py | Python | c-series/c726.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | 1 | 2018-10-21T10:03:42.000Z | 2018-10-21T10:03:42.000Z | c-series/c726.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | null | null | null | c-series/c726.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | 2 | 2018-10-12T16:40:11.000Z | 2021-04-05T12:05:36.000Z | a = input().split()
print("{} and {} sitting in the tree".format(*a))
| 23.333333 | 49 | 0.6 | 11 | 70 | 3.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 70 | 2 | 50 | 35 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.414286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
519a4e33dd3430c0dbfa1550dd1e129b2cd67285 | 54 | py | Python | src/utils/logger.py | zhangjie2012/qwerty-server | 56cfae83381df007cffce4c1cbf8f786f44e63b8 | [
"MIT"
] | 6 | 2018-11-07T03:46:10.000Z | 2019-06-21T13:51:19.000Z | src/utils/logger.py | zhangjie2012/qwerty-server | 56cfae83381df007cffce4c1cbf8f786f44e63b8 | [
"MIT"
] | 1 | 2019-07-18T13:59:12.000Z | 2019-08-11T04:27:18.000Z | src/utils/logger.py | zhangjie2012/qwerty | 56cfae83381df007cffce4c1cbf8f786f44e63b8 | [
"MIT"
] | 1 | 2020-10-01T11:00:33.000Z | 2020-10-01T11:00:33.000Z | import logging
logger = logging.getLogger('default')
| 13.5 | 37 | 0.777778 | 6 | 54 | 7 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 54 | 3 | 38 | 18 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
51ae7abf6a012a8cea212bcdb506ad973a8d1702 | 193 | py | Python | challenges/itertools-product/itertools-product.py | jrmsdev/hackerrank | 3393591338fb11e86aea5f6b33df7d1eccd50ecb | [
"BSD-3-Clause"
] | null | null | null | challenges/itertools-product/itertools-product.py | jrmsdev/hackerrank | 3393591338fb11e86aea5f6b33df7d1eccd50ecb | [
"BSD-3-Clause"
] | null | null | null | challenges/itertools-product/itertools-product.py | jrmsdev/hackerrank | 3393591338fb11e86aea5f6b33df7d1eccd50ecb | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from itertools import product
A = map (int, input ().strip ().split ())
B = map (int, input ().strip ().split ())
print (' '.join ([str (t) for t in product (A, B)]))
| 21.444444 | 52 | 0.590674 | 30 | 193 | 3.8 | 0.7 | 0.140351 | 0.192982 | 0.280702 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.186529 | 193 | 8 | 53 | 24.125 | 0.719745 | 0.108808 | 0 | 0 | 0 | 0 | 0.005848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
51b12ebb3c4a3988ac95cf983de2a321ad25b39f | 2,311 | py | Python | tests/theia_automation_lsp/keywords/general.py | grianbrcom/che-che4z-lsp-for-cobol | 9b7fa4dc6c670f311685949992d102b282fdfbc5 | [
"Apache-2.0"
] | null | null | null | tests/theia_automation_lsp/keywords/general.py | grianbrcom/che-che4z-lsp-for-cobol | 9b7fa4dc6c670f311685949992d102b282fdfbc5 | [
"Apache-2.0"
] | 1 | 2020-04-16T12:31:43.000Z | 2020-04-16T12:33:53.000Z | tests/theia_automation_lsp/keywords/general.py | grianbrcom/che-che4z-lsp-for-cobol | 9b7fa4dc6c670f311685949992d102b282fdfbc5 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 Broadcom.
# The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0... | 26.872093 | 86 | 0.772826 | 308 | 2,311 | 5.548701 | 0.392857 | 0.032768 | 0.031597 | 0.032768 | 0.097718 | 0.033938 | 0.033938 | 0 | 0 | 0 | 0 | 0.006552 | 0.141497 | 2,311 | 85 | 87 | 27.188235 | 0.854839 | 0.180009 | 0 | 0 | 0 | 0 | 0.056323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.295455 | false | 0.090909 | 0.159091 | 0.136364 | 0.613636 | 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 | 1 | 0 | 0 | 0 | 3 |
51c1331dd1f7d40229a96b2a66a208a26f1668b8 | 97 | py | Python | taichidfw/styles/apps.py | bchip50/taichidfw | 238713c04e0bfc010d5994a380a6c34d1926d0f5 | [
"MIT"
] | null | null | null | taichidfw/styles/apps.py | bchip50/taichidfw | 238713c04e0bfc010d5994a380a6c34d1926d0f5 | [
"MIT"
] | null | null | null | taichidfw/styles/apps.py | bchip50/taichidfw | 238713c04e0bfc010d5994a380a6c34d1926d0f5 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class StylesConfig(AppConfig):
name = "taichidfw.styles"
| 16.166667 | 33 | 0.762887 | 11 | 97 | 6.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 34 | 19.4 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
51c294e2b13b176305a2dec4ca722a9a91caecc1 | 629 | py | Python | tests/test_ast.py | kyuvie/Calculator | e9d1028dba022087484d71467dadc7899289af04 | [
"MIT"
] | null | null | null | tests/test_ast.py | kyuvie/Calculator | e9d1028dba022087484d71467dadc7899289af04 | [
"MIT"
] | null | null | null | tests/test_ast.py | kyuvie/Calculator | e9d1028dba022087484d71467dadc7899289af04 | [
"MIT"
] | null | null | null | from b1u3calculator import ast, token
import unittest
class AstTest(unittest.TestCase):
def test_assign_stmt_str(self):
program = ast.Program()
program.statements = [
ast.AssignStatement(
token=token.Token(token.ID, "myVar"),
name=ast.Identi... | 33.105263 | 115 | 0.594595 | 65 | 629 | 5.707692 | 0.430769 | 0.242588 | 0.242588 | 0.161725 | 0.274933 | 0.274933 | 0.188679 | 0 | 0 | 0 | 0 | 0.004376 | 0.27345 | 629 | 18 | 116 | 34.944444 | 0.80744 | 0 | 0 | 0 | 0 | 0 | 0.164274 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
cf9390bf8785c5414041b0ac675963dc6da9b0de | 906 | py | Python | src/strings.py | arthurBricq/Roots | a422a01a2f451f4e47603bfbdf43e40a34d441a2 | [
"Apache-2.0"
] | null | null | null | src/strings.py | arthurBricq/Roots | a422a01a2f451f4e47603bfbdf43e40a34d441a2 | [
"Apache-2.0"
] | null | null | null | src/strings.py | arthurBricq/Roots | a422a01a2f451f4e47603bfbdf43e40a34d441a2 | [
"Apache-2.0"
] | null | null | null |
welcome_text = "This app lets you visualize in real time the response of the Roots sensor. \nTouch the object and click on the 'Calibrate' button to train the software to recognize your gestures. Then, click on the name of the object to activate the gesture recognition for that particular object. In this simple dem... | 100.666667 | 432 | 0.786976 | 149 | 906 | 4.724832 | 0.516779 | 0.051136 | 0.042614 | 0.048295 | 0.244318 | 0.190341 | 0.190341 | 0.190341 | 0.099432 | 0 | 0 | 0.001333 | 0.172185 | 906 | 8 | 433 | 113.25 | 0.937333 | 0 | 0 | 0 | 0 | 0.166667 | 0.850446 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfa3794a990fe21d21f0bccabd0c32b96974f799 | 177 | py | Python | spec_cleaner/__main__.py | dcermak/spec-cleaner | 917e35c09d054b5545806ab1e9ce408e9a517de6 | [
"BSD-3-Clause"
] | null | null | null | spec_cleaner/__main__.py | dcermak/spec-cleaner | 917e35c09d054b5545806ab1e9ce408e9a517de6 | [
"BSD-3-Clause"
] | null | null | null | spec_cleaner/__main__.py | dcermak/spec-cleaner | 917e35c09d054b5545806ab1e9ce408e9a517de6 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
path = os.path.dirname(os.path.dirname(__file__))
sys.path.insert(0, path)
from spec_cleaner import main
if __name__ == '__main__':
sys.exit(main())
| 16.090909 | 49 | 0.723164 | 28 | 177 | 4.107143 | 0.535714 | 0.121739 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.141243 | 177 | 10 | 50 | 17.7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cfc6c867ec44cd887eb7820aecb9f91726c78922 | 639 | py | Python | project_name/settings/pipeline_helpers.py | igetgames/django-startproject | 0e489b3973dfd7dd6666039d6779f1e298592d88 | [
"MIT"
] | null | null | null | project_name/settings/pipeline_helpers.py | igetgames/django-startproject | 0e489b3973dfd7dd6666039d6779f1e298592d88 | [
"MIT"
] | null | null | null | project_name/settings/pipeline_helpers.py | igetgames/django-startproject | 0e489b3973dfd7dd6666039d6779f1e298592d88 | [
"MIT"
] | null | null | null | import os
from pipeline.storage import PipelineFinderStorage
# Replaces the match_location() method in PipelineFinderStorage to normalize
# the file name passed into the method. This fixes an issue where
# django-pipeline can't locate files on Windows - the storage path is in
# Windows format, but the name isn't.
# TO... | 49.153846 | 93 | 0.785603 | 85 | 639 | 5.870588 | 0.635294 | 0.078156 | 0.056112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150235 | 639 | 12 | 94 | 53.25 | 0.918969 | 0.497653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cfd1c8c2f93be3c89f31ceef2428117f1754636c | 20,703 | py | Python | COVID-19 Analysis.py | Hritik1302/COVID-19-Analysis | dcddb7215eb729580ed2e14d495ec615d78948e8 | [
"MIT"
] | 1 | 2020-07-17T17:45:54.000Z | 2020-07-17T17:45:54.000Z | COVID-19 Analysis.py | Hritik1302/COVID-19-Analysis | dcddb7215eb729580ed2e14d495ec615d78948e8 | [
"MIT"
] | null | null | null | COVID-19 Analysis.py | Hritik1302/COVID-19-Analysis | dcddb7215eb729580ed2e14d495ec615d78948e8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # COVID-19 Scientific Analysis
# ### What is Covid-19 ?
# Coronavirus disease 2019 (COVID-19) is an infectious disease caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2).
# The disease was first identified in December 2019 in Wuhan, the capital of China's H... | 69.942568 | 12,307 | 0.854031 | 1,524 | 20,703 | 11.497375 | 0.468504 | 0.006791 | 0.003196 | 0.005479 | 0.072309 | 0.063235 | 0.059811 | 0.059811 | 0.049367 | 0.035612 | 0 | 0.095016 | 0.0697 | 20,703 | 295 | 12,308 | 70.179661 | 0.814642 | 0.744095 | 0 | 0.174312 | 0 | 0.045872 | 0.268504 | 0.051272 | 0 | 1 | 0 | 0 | 0 | 1 | 0.018349 | false | 0 | 0.100917 | 0 | 0.12844 | 0.009174 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfedf0f7fafcddde8cb0367cbe3914669a61a123 | 153 | py | Python | files/Outros/Recursividade de Cauda.py | heltonricardo/estudo-python | e82eb8ebc15378175b03d367a6eeea66e8858cff | [
"MIT"
] | null | null | null | files/Outros/Recursividade de Cauda.py | heltonricardo/estudo-python | e82eb8ebc15378175b03d367a6eeea66e8858cff | [
"MIT"
] | null | null | null | files/Outros/Recursividade de Cauda.py | heltonricardo/estudo-python | e82eb8ebc15378175b03d367a6eeea66e8858cff | [
"MIT"
] | null | null | null | def fatorial(N, PARCIAL = 1):
if (N <= 1): return PARCIAL
else: return fatorial(N - 1, PARCIAL * N)
n = int(input())
print(fatorial(n))
input()
| 19.125 | 45 | 0.607843 | 24 | 153 | 3.875 | 0.458333 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.215686 | 153 | 7 | 46 | 21.857143 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 1 | 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 | 3 |
5c5109f2be9e2183187315a34404ced3b8a9b68c | 496 | py | Python | multiOut.py | Deconimus/JarMake | 7bcdc1ac4c3731b48b4acfb9508dd95fdc5fe37f | [
"MIT"
] | 3 | 2018-05-12T00:31:06.000Z | 2018-09-07T12:52:08.000Z | multiOut.py | Deconimus/JarMake | 7bcdc1ac4c3731b48b4acfb9508dd95fdc5fe37f | [
"MIT"
] | null | null | null | multiOut.py | Deconimus/JarMake | 7bcdc1ac4c3731b48b4acfb9508dd95fdc5fe37f | [
"MIT"
] | null | null | null | class MultiOutWrapper:
def __init__(self, *outputs):
self.outputs = outputs
def write(self, val):
for out in self.outputs:
out.write(val)
def flush(self):
for out in self.outputs:
out.flush()
def close(self):
for out in self.outputs:
out.... | 13.052632 | 31 | 0.532258 | 61 | 496 | 4.262295 | 0.311475 | 0.253846 | 0.123077 | 0.184615 | 0.373077 | 0.373077 | 0.2 | 0 | 0 | 0 | 0 | 0.006452 | 0.375 | 496 | 38 | 32 | 13.052632 | 0.832258 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 0 | 0.421053 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5c6389fe3a33b3afb39281195c3bf3b98ba13459 | 1,051 | py | Python | project/boh/filters.py | opt9/bag-of-holding | 786265f58474ab66bf138bda195882550462d8cc | [
"Apache-2.0"
] | 109 | 2016-05-23T15:00:27.000Z | 2022-02-16T17:15:53.000Z | project/boh/filters.py | opt9/bag-of-holding | 786265f58474ab66bf138bda195882550462d8cc | [
"Apache-2.0"
] | 116 | 2021-03-29T16:45:28.000Z | 2022-03-31T22:11:07.000Z | project/boh/filters.py | wrbejar/bag-of-holding | 35cb759fa0cb22340db0f81e2e9656b703cabc90 | [
"Apache-2.0"
] | 45 | 2016-05-31T20:16:24.000Z | 2022-03-08T14:05:55.000Z | import django_filters
from .models import Organization, Application
class ApplicationFilter(django_filters.FilterSet):
name = django_filters.CharFilter(lookup_expr='icontains')
organization = django_filters.ModelMultipleChoiceFilter(queryset=Organization.objects.all())
business_criticality = django_filte... | 50.047619 | 115 | 0.780209 | 95 | 1,051 | 8.378947 | 0.421053 | 0.146985 | 0.207286 | 0.251256 | 0.320352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129401 | 1,051 | 20 | 116 | 52.55 | 0.869945 | 0 | 0 | 0 | 0 | 0 | 0.156993 | 0.022835 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.6875 | 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 | 1 | 0 | 0 | 3 |
5c73c1d43e929e6c22ae31c6dfb990c15ce75583 | 119 | py | Python | lang/Python/terminal-control-unicode-output.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | lang/Python/terminal-control-unicode-output.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/terminal-control-unicode-output.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | import sys
if "UTF-8" in sys.stdout.encoding:
print("△")
else:
raise Exception("Terminal can't handle UTF-8")
| 17 | 50 | 0.663866 | 20 | 119 | 4 | 0.85 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.184874 | 119 | 6 | 51 | 19.833333 | 0.793814 | 0 | 0 | 0 | 0 | 0 | 0.277311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5cba7543460bd2082447ad9d6f13d540ab8bd182 | 357 | py | Python | tests/models.py | nephila/django-lock-tokens | 0be748d9a6a599f75f9e33da506f544de295a3e6 | [
"MIT"
] | 22 | 2016-10-21T14:14:51.000Z | 2021-08-30T11:16:20.000Z | tests/models.py | nephila/django-lock-tokens | 0be748d9a6a599f75f9e33da506f544de295a3e6 | [
"MIT"
] | 16 | 2017-07-25T23:06:01.000Z | 2021-03-18T13:14:33.000Z | tests/models.py | nephila/django-lock-tokens | 0be748d9a6a599f75f9e33da506f544de295a3e6 | [
"MIT"
] | 11 | 2017-09-04T17:47:46.000Z | 2021-12-29T15:51:46.000Z | # -*- coding: utf-8
from django.db import models
from lock_tokens.models import LockableModel
class TestModel(LockableModel):
"""Test model that inherits LockableModel"""
name = models.CharField(max_length=32)
class RegularModel(models.Model):
"""Test model that does not inherit LockableModel"""
na... | 23.8 | 56 | 0.742297 | 45 | 357 | 5.822222 | 0.577778 | 0.068702 | 0.099237 | 0.244275 | 0.328244 | 0.328244 | 0.328244 | 0 | 0 | 0 | 0 | 0.016556 | 0.154062 | 357 | 14 | 57 | 25.5 | 0.850993 | 0.291317 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5cc948cf2d3f9693909118112f786ed5c8b9517c | 245 | py | Python | lib/codegen/meta-python/isa/arm32/settings.py | Bobo1239/cranelift | aa3c3b0135d9127f53a5e1015b061e212e4c8057 | [
"Apache-2.0"
] | 2 | 2018-09-27T03:39:03.000Z | 2019-04-16T19:56:13.000Z | lib/codegen/meta-python/isa/arm32/settings.py | Bobo1239/cranelift | aa3c3b0135d9127f53a5e1015b061e212e4c8057 | [
"Apache-2.0"
] | 1 | 2018-10-11T22:37:33.000Z | 2018-10-12T00:09:02.000Z | lib/codegen/meta-python/isa/arm32/settings.py | Bobo1239/cranelift | aa3c3b0135d9127f53a5e1015b061e212e4c8057 | [
"Apache-2.0"
] | null | null | null | """
ARM32 settings.
"""
from __future__ import absolute_import
from cdsl.settings import SettingGroup
import base.settings as shared
from .defs import ISA
ISA.settings = SettingGroup('arm32', parent=shared.group)
ISA.settings.close(globals())
| 20.416667 | 57 | 0.787755 | 32 | 245 | 5.875 | 0.53125 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.110204 | 245 | 11 | 58 | 22.272727 | 0.844037 | 0.061224 | 0 | 0 | 0 | 0 | 0.022523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7a2906da2cf5c359f81c67bcf2f60bb9f3d3949a | 442 | py | Python | Backend/v1/third_party/rest_framework/permissions.py | yaya-BL/Restaurants_self-order_app | c6ea560e41ecc2e7a667d518ec815a2c14c68e88 | [
"MIT"
] | null | null | null | Backend/v1/third_party/rest_framework/permissions.py | yaya-BL/Restaurants_self-order_app | c6ea560e41ecc2e7a667d518ec815a2c14c68e88 | [
"MIT"
] | 15 | 2021-01-23T02:07:01.000Z | 2021-02-01T04:54:01.000Z | Backend/v1/third_party/rest_framework/permissions.py | yaya-BL/Restaurants_self-order_app | c6ea560e41ecc2e7a667d518ec815a2c14c68e88 | [
"MIT"
] | 1 | 2021-01-11T06:15:49.000Z | 2021-01-11T06:15:49.000Z | from rest_framework.permissions import BasePermission, SAFE_METHODS
class IsStaffOrReadOnly(BasePermission):
"""The request is authenticated as a user and is staff, or is a read-only request"""
def has_permission(self, request, view):
return (request.user and request.user.is_staff) or request.method i... | 44.2 | 89 | 0.760181 | 61 | 442 | 5.377049 | 0.52459 | 0.10061 | 0.054878 | 0.152439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162896 | 442 | 10 | 90 | 44.2 | 0.886486 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7a2bfd5011df053dd1137d10ad61d23baf3cddfd | 50 | py | Python | db_prefix/__init__.py | mdelapenya/opbeans-python | a8e88fe3038b51f2614cba03e91e5971a740d839 | [
"MIT"
] | 6 | 2018-11-21T16:23:06.000Z | 2021-03-17T14:16:08.000Z | db_prefix/__init__.py | mdelapenya/opbeans-python | a8e88fe3038b51f2614cba03e91e5971a740d839 | [
"MIT"
] | 107 | 2018-02-08T13:04:26.000Z | 2022-03-29T17:17:55.000Z | db_prefix/__init__.py | mdelapenya/opbeans-python | a8e88fe3038b51f2614cba03e91e5971a740d839 | [
"MIT"
] | 14 | 2018-02-06T18:33:26.000Z | 2021-01-21T01:39:57.000Z | default_app_config = 'db_prefix.apps.DbPrefixApp'
| 25 | 49 | 0.84 | 7 | 50 | 5.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 50 | 1 | 50 | 50 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.52 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a2e57237331681698ae4ea38e58f2f5abf8d8bc | 216 | py | Python | test/test.py | ExeExzo/Final-project-Python | 2b5809a24dc10b85a943f4711101f36a57a13175 | [
"MIT"
] | null | null | null | test/test.py | ExeExzo/Final-project-Python | 2b5809a24dc10b85a943f4711101f36a57a13175 | [
"MIT"
] | null | null | null | test/test.py | ExeExzo/Final-project-Python | 2b5809a24dc10b85a943f4711101f36a57a13175 | [
"MIT"
] | 1 | 2021-11-24T08:43:30.000Z | 2021-11-24T08:43:30.000Z | from summarizer import Summarizer
sum = Summarizer()
article_summary = sum.summarize('https://hackernoon.com/will-the-game-stop-with-gamestop-or-is-this-just-the-beginning-2j1x32aa')
print(article_summary)
| 27 | 130 | 0.773148 | 29 | 216 | 5.689655 | 0.793103 | 0.169697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020513 | 0.097222 | 216 | 7 | 131 | 30.857143 | 0.825641 | 0 | 0 | 0 | 0 | 0.25 | 0.454106 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a608c8da623288bc22fbffe8b274d18b6f063e7 | 1,023 | py | Python | tests/facebook/models/test_post.py | Socian-Ltd/python-facebook-1 | e9a4f626b37541103c9534a29342ef6033c09c06 | [
"Apache-2.0"
] | 2 | 2021-03-16T02:58:10.000Z | 2021-03-16T16:53:23.000Z | tests/facebook/models/test_post.py | nedsons/python-facebook | bf2b4a70ef0e0a67a142f5856586ea318f9807ea | [
"Apache-2.0"
] | null | null | null | tests/facebook/models/test_post.py | nedsons/python-facebook | bf2b4a70ef0e0a67a142f5856586ea318f9807ea | [
"Apache-2.0"
] | 1 | 2021-06-02T07:15:35.000Z | 2021-06-02T07:15:35.000Z | import json
import unittest
import pyfacebook.models as models
class PostModelTest(unittest.TestCase):
BASE_PATH = "testdata/facebook/models/posts/"
with open(BASE_PATH + 'post.json', 'rb') as f:
POST_INFO = json.loads(f.read().decode('utf-8'))
def testPost(self):
m = models.Post.new_fr... | 37.888889 | 84 | 0.698925 | 135 | 1,023 | 5.192593 | 0.518519 | 0.21398 | 0.182596 | 0.054208 | 0.165478 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08216 | 0.167155 | 1,023 | 26 | 85 | 39.346154 | 0.74061 | 0 | 0 | 0 | 0 | 0 | 0.109482 | 0.085044 | 0 | 0 | 0 | 0 | 0.55 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.3 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a6df4ac630c46852c010cf464bb0ee870133226 | 315 | py | Python | cmsplugin_blog/sitemaps.py | Troyhy/cmsplugin-blog | 0354d7ade3f9c1987f08806f4c9bcfb11d7576c3 | [
"BSD-3-Clause"
] | 3 | 2015-02-11T14:18:32.000Z | 2015-12-05T04:51:53.000Z | cmsplugin_blog/sitemaps.py | Troyhy/cmsplugin-blog | 0354d7ade3f9c1987f08806f4c9bcfb11d7576c3 | [
"BSD-3-Clause"
] | 4 | 2015-02-02T20:54:43.000Z | 2021-06-10T20:36:12.000Z | cmsplugin_blog/sitemaps.py | Troyhy/cmsplugin-blog | 0354d7ade3f9c1987f08806f4c9bcfb11d7576c3 | [
"BSD-3-Clause"
] | 3 | 2015-06-23T22:57:33.000Z | 2017-07-25T15:41:39.000Z | from django.contrib.sitemaps import Sitemap
from cmsplugin_blog.models import EntryTitle
class BlogSitemap(Sitemap):
changefreq = "monthly"
priority = 0.5
def items(self):
return EntryTitle.objects.filter(entry__is_published=True)
def lastmod(self, obj):
return obj.entry.pub_date | 26.25 | 66 | 0.733333 | 40 | 315 | 5.65 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.187302 | 315 | 12 | 67 | 26.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.022152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 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 | 1 | 0 | 0 | 3 |
7a6f158d78e7dae100eb0c1a23f8a8b8820775fd | 564 | py | Python | restF/forms.py | GraceMwende/ReviewApp | 51f287056f33e0fd98431f1fa5a66259ae31a3d8 | [
"MIT"
] | null | null | null | restF/forms.py | GraceMwende/ReviewApp | 51f287056f33e0fd98431f1fa5a66259ae31a3d8 | [
"MIT"
] | null | null | null | restF/forms.py | GraceMwende/ReviewApp | 51f287056f33e0fd98431f1fa5a66259ae31a3d8 | [
"MIT"
] | null | null | null | from .models import Project,Profile,Review
from django import forms
from django.contrib.auth.models import User
class NewProjectForm(forms.ModelForm):
class Meta:
model = Project
exclude = ['user','profile']
class UserForm(forms.ModelForm):
class Meta:
model = User
fields= ('username','first_name'... | 22.56 | 57 | 0.700355 | 67 | 564 | 5.835821 | 0.462687 | 0.143223 | 0.194373 | 0.235294 | 0.286445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177305 | 564 | 25 | 58 | 22.56 | 0.842672 | 0 | 0 | 0.210526 | 0 | 0 | 0.136283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.578947 | 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 | 1 | 0 | 0 | 3 |
7a6fe837e279e26b0d342158ecbde7aa3fcd1fcf | 179 | py | Python | psprensa/admin.py | danynt14/Processo-Seletivo-Prensa | b03ba93a295f7d90daf73b1127e162d48d9868c0 | [
"MIT"
] | 1 | 2021-01-12T20:04:24.000Z | 2021-01-12T20:04:24.000Z | psprensa/admin.py | danynt14/Processo-Seletivo-Prensa | b03ba93a295f7d90daf73b1127e162d48d9868c0 | [
"MIT"
] | null | null | null | psprensa/admin.py | danynt14/Processo-Seletivo-Prensa | b03ba93a295f7d90daf73b1127e162d48d9868c0 | [
"MIT"
] | 1 | 2021-01-12T20:04:41.000Z | 2021-01-12T20:04:41.000Z | from django.contrib import admin
from psprensa.models import TabelaBin
"""
localhost:8000/admin
username: psprensa
password : psprensa123456
"""
admin.site.register(TabelaBin)
| 14.916667 | 37 | 0.798883 | 21 | 179 | 6.809524 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062893 | 0.111732 | 179 | 11 | 38 | 16.272727 | 0.836478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
7a9b133d8d3044b59860d328689bb12ec0d0e4b5 | 893 | py | Python | src/utils.py | altear/carleton-no-more-waitlist | 2fc7df14224642a45c4cc04a3a287579a44193f2 | [
"MIT"
] | null | null | null | src/utils.py | altear/carleton-no-more-waitlist | 2fc7df14224642a45c4cc04a3a287579a44193f2 | [
"MIT"
] | 2 | 2021-03-31T19:23:22.000Z | 2021-12-13T20:13:18.000Z | src/utils.py | altear/carleton-no-more-waitlist | 2fc7df14224642a45c4cc04a3a287579a44193f2 | [
"MIT"
] | null | null | null | from ruamel.yaml import YAML
from pathlib import Path
from selenium.webdriver.common.keys import Keys
yaml = YAML()
class URL(str):
def __truediv__(self, b):
return URL('/'.join([self, b]))
def search_for_text(driver, text, element_type=None):
driver.find_elements_by_css_selector
def config_loader(... | 30.793103 | 78 | 0.75252 | 135 | 893 | 4.659259 | 0.392593 | 0.063593 | 0.081081 | 0.09062 | 0.468998 | 0.468998 | 0.373609 | 0.373609 | 0.373609 | 0.373609 | 0 | 0 | 0.132139 | 893 | 29 | 79 | 30.793103 | 0.811613 | 0 | 0 | 0.181818 | 0 | 0 | 0.016779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.136364 | 0.136364 | 0.590909 | 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 | 1 | 0 | 0 | 3 |
7abacd7159163c2835bd36c3396ba394d4b7cbba | 2,530 | py | Python | tests/test_distances.py | TobiasHerr/mapbox-sdk-py | 2a5971f9b4f90ae23bb52ff5f273ce7061b23461 | [
"MIT"
] | null | null | null | tests/test_distances.py | TobiasHerr/mapbox-sdk-py | 2a5971f9b4f90ae23bb52ff5f273ce7061b23461 | [
"MIT"
] | null | null | null | tests/test_distances.py | TobiasHerr/mapbox-sdk-py | 2a5971f9b4f90ae23bb52ff5f273ce7061b23461 | [
"MIT"
] | null | null | null | import pytest
import responses
import mapbox
points = [{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
-87.337875,
36.539156]}}, {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
... | 26.631579 | 82 | 0.599605 | 282 | 2,530 | 5.280142 | 0.280142 | 0.0591 | 0.069846 | 0.091336 | 0.753526 | 0.753526 | 0.753526 | 0.654802 | 0.593015 | 0.593015 | 0 | 0.078813 | 0.227668 | 2,530 | 94 | 83 | 26.914894 | 0.683214 | 0.028063 | 0 | 0.704225 | 0 | 0.084507 | 0.276257 | 0.069881 | 0 | 0 | 0 | 0 | 0.098592 | 1 | 0.070423 | false | 0 | 0.042254 | 0 | 0.112676 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7abef2977e18b7760f69993a5655cd52a3cb18dc | 84 | py | Python | _solved/solutions/01-introduction-geospatial-data15.py | lleondia/geopandas-tutorial | 5128fd6865bbd979a7b4e5b8cb4d0de51bead029 | [
"BSD-3-Clause"
] | 341 | 2018-04-26T08:46:05.000Z | 2022-03-01T08:13:39.000Z | _solved/solutions/01-introduction-geospatial-data15.py | lleondia/geopandas-tutorial | 5128fd6865bbd979a7b4e5b8cb4d0de51bead029 | [
"BSD-3-Clause"
] | 24 | 2020-09-30T19:57:14.000Z | 2021-10-05T07:21:09.000Z | _solved/solutions/01-introduction-geospatial-data15.py | lleondia/geopandas-tutorial | 5128fd6865bbd979a7b4e5b8cb4d0de51bead029 | [
"BSD-3-Clause"
] | 128 | 2018-05-07T07:30:29.000Z | 2022-02-19T17:53:39.000Z | # dividing by 10^6 for showing km²
districts['area'] = districts.geometry.area / 1e6 | 42 | 49 | 0.75 | 13 | 84 | 4.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0.130952 | 84 | 2 | 49 | 42 | 0.780822 | 0.380952 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8fab070dcebce6640451181a3f9f1095a2c34097 | 293 | py | Python | Python/selection_sort.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | Python/selection_sort.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | Python/selection_sort.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | def ordena(lista):
tam = len(lista)
for i in range(0, tam-1):
numero_vez = i
for j in range(i+1, tam):
if lista[j] < lista[numero_vez]:
numero_vez = j
lista[i], lista[numero_vez] = lista[numero_vez], lista[i]
return lista
| 22.538462 | 65 | 0.52901 | 44 | 293 | 3.409091 | 0.363636 | 0.3 | 0.28 | 0.253333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015789 | 0.351536 | 293 | 12 | 66 | 24.416667 | 0.773684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
8fcb67ffe027258d82491f602fb24e21820de01d | 4,401 | py | Python | factory/pizza.py | kinglion580/python_design_pattern | 8684fa4554fbcb2f5f6dfc0aa0c50ac4b0f42def | [
"MIT"
] | null | null | null | factory/pizza.py | kinglion580/python_design_pattern | 8684fa4554fbcb2f5f6dfc0aa0c50ac4b0f42def | [
"MIT"
] | null | null | null | factory/pizza.py | kinglion580/python_design_pattern | 8684fa4554fbcb2f5f6dfc0aa0c50ac4b0f42def | [
"MIT"
] | null | null | null | class PizzaIngredientFactory:
def create_dough(self):
pass
def create_sauce(self):
pass
def create_veggies(self):
pass
class NYPizzaIngredientFactory(PizzaIngredientFactory):
def create_dough(self):
return ThinCrustDough()
def create_sauce(self):
return M... | 22.569231 | 67 | 0.62713 | 455 | 4,401 | 5.852747 | 0.186813 | 0.10214 | 0.037552 | 0.048066 | 0.465265 | 0.313556 | 0.24709 | 0.226061 | 0.226061 | 0.185505 | 0 | 0.001564 | 0.273801 | 4,401 | 194 | 68 | 22.685567 | 0.831665 | 0 | 0 | 0.392593 | 0 | 0 | 0.109521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.251852 | false | 0.059259 | 0 | 0.096296 | 0.562963 | 0.059259 | 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 | 1 | 0 | 0 | 3 |
89114064d0414dc7aaba19da9c4c1a325d6c26a3 | 94 | py | Python | api/src/model/ModelAssociation.py | SamuelJansen/central-point-query | 1cbf1d5fdab3efe653bfd4e24952d9a1883983ca | [
"MIT"
] | null | null | null | api/src/model/ModelAssociation.py | SamuelJansen/central-point-query | 1cbf1d5fdab3efe653bfd4e24952d9a1883983ca | [
"MIT"
] | null | null | null | api/src/model/ModelAssociation.py | SamuelJansen/central-point-query | 1cbf1d5fdab3efe653bfd4e24952d9a1883983ca | [
"MIT"
] | null | null | null | from python_framework import FrameworkModel
DATA = 'Data'
MODEL = FrameworkModel.getModel()
| 15.666667 | 43 | 0.797872 | 10 | 94 | 7.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 94 | 5 | 44 | 18.8 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
8919fca7098db0a9cd7a73a8d88a8c65fd916dc8 | 631 | py | Python | wevesi/forms/access.py | paxet/wevesi | 5a87f210417be67c0ec33c4a11458a0291a5c4cb | [
"Apache-2.0"
] | null | null | null | wevesi/forms/access.py | paxet/wevesi | 5a87f210417be67c0ec33c4a11458a0291a5c4cb | [
"Apache-2.0"
] | null | null | null | wevesi/forms/access.py | paxet/wevesi | 5a87f210417be67c0ec33c4a11458a0291a5c4cb | [
"Apache-2.0"
] | null | null | null | from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class LoginForm(Form):
email = StringField('Email', validators=[DataRequired(), Email()])
passwd = PasswordField('Password', validators=[DataRequired()])
class SignupForm(Form):
n... | 35.055556 | 70 | 0.700475 | 56 | 631 | 7.857143 | 0.321429 | 0.3 | 0.184091 | 0.140909 | 0.440909 | 0.440909 | 0.440909 | 0.440909 | 0.440909 | 0.440909 | 0 | 0 | 0.171157 | 631 | 17 | 71 | 37.117647 | 0.8413 | 0 | 0 | 0.333333 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.25 | 0 | 0.916667 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
64ea07bb66825333491d8ac2184f361f9a2a9e45 | 2,221 | py | Python | fpp/__init__.py | faineance/fpp | 95da5dcd7bd1d9447ed9f186093961e240cd3f26 | [
"MIT"
] | 1 | 2017-10-17T11:22:02.000Z | 2017-10-17T11:22:02.000Z | fpp/__init__.py | faineance/fpp | 95da5dcd7bd1d9447ed9f186093961e240cd3f26 | [
"MIT"
] | null | null | null | fpp/__init__.py | faineance/fpp | 95da5dcd7bd1d9447ed9f186093961e240cd3f26 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
class Functor(metaclass=ABCMeta):
@abstractmethod
def fmap(self, func):
return NotImplemented
class Applicative(metaclass=ABCMeta):
@abstractmethod
def apply(self, something):
raise NotImplemented
def __mul__(self, something): # <*>
... | 20.564815 | 66 | 0.607384 | 275 | 2,221 | 4.694545 | 0.225455 | 0.034857 | 0.054222 | 0.076685 | 0.137103 | 0.029435 | 0.029435 | 0 | 0 | 0 | 0 | 0 | 0.285007 | 2,221 | 107 | 67 | 20.757009 | 0.812972 | 0.030617 | 0 | 0.319444 | 0 | 0 | 0.003723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.361111 | false | 0 | 0.013889 | 0.291667 | 0.819444 | 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 | 1 | 0 | 0 | 3 |
64fa770aa7ad79569cb88f7c328cf0892458a916 | 15,470 | py | Python | lang/python/github/com/metaprov/modelaapi/services/batchpredictord/v1/batchpredictord_pb2.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | 5 | 2022-02-18T03:40:10.000Z | 2022-03-01T16:11:24.000Z | lang/python/github/com/metaprov/modelaapi/services/batchpredictord/v1/batchpredictord_pb2.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | 1 | 2022-01-07T19:59:25.000Z | 2022-02-04T01:21:14.000Z | lang/python/github/com/metaprov/modelaapi/services/batchpredictord/v1/batchpredictord_pb2.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | 1 | 2022-03-25T10:21:43.000Z | 2022-03-25T10:21:43.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: github.com/metaprov/modelaapi/services/batchpredictord/v1/batchpredictord.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from go... | 53.344828 | 1,894 | 0.806529 | 1,846 | 15,470 | 6.418743 | 0.108342 | 0.042704 | 0.077644 | 0.087771 | 0.731707 | 0.713478 | 0.698878 | 0.673053 | 0.634737 | 0.598616 | 0 | 0.031918 | 0.086619 | 15,470 | 289 | 1,895 | 53.529412 | 0.806653 | 0.04958 | 0 | 0.597656 | 1 | 0.003906 | 0.304105 | 0.267343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027344 | 0 | 0.027344 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
8f03af43500a8b620596c86bdc4b597a21377710 | 1,608 | py | Python | New folder2/class.py | sanjaymanikandan/ML-For-Beginners | cd44eda1905c203143161c665aac5f0441c9ed39 | [
"MIT"
] | null | null | null | New folder2/class.py | sanjaymanikandan/ML-For-Beginners | cd44eda1905c203143161c665aac5f0441c9ed39 | [
"MIT"
] | null | null | null | New folder2/class.py | sanjaymanikandan/ML-For-Beginners | cd44eda1905c203143161c665aac5f0441c9ed39 | [
"MIT"
] | null | null | null | class MyClass:
x = 5
p1 = MyClass()
print(p1.x)
class MyClass:
x = "harish"
p1 = MyClass()
print(p1.x)
class Person:
def __init__(self,name,age):
self.name = name
self.age = age
p1 = Person("john",36)
print(p1.name)
print(p1.age)
... | 12.661417 | 46 | 0.478234 | 191 | 1,608 | 3.900524 | 0.141361 | 0.150336 | 0.112752 | 0.144966 | 0.755705 | 0.731544 | 0.679195 | 0.628188 | 0.628188 | 0.628188 | 0 | 0.034884 | 0.411692 | 1,608 | 126 | 47 | 12.761905 | 0.752643 | 0 | 0 | 0.732143 | 0 | 0 | 0.078858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196429 | false | 0 | 0 | 0 | 0.375 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
8f1dab4785074857f342a408d3b1f6be72b2af97 | 549 | py | Python | utils/style_dataframes.py | gitjeff05/nih-grant-awards | a026bb8c310c45fad23025fa5cde9d2900c710ba | [
"MIT"
] | 1 | 2020-05-28T18:33:17.000Z | 2020-05-28T18:33:17.000Z | utils/style_dataframes.py | gitjeff05/nih-grant-awards | a026bb8c310c45fad23025fa5cde9d2900c710ba | [
"MIT"
] | null | null | null | utils/style_dataframes.py | gitjeff05/nih-grant-awards | a026bb8c310c45fad23025fa5cde9d2900c710ba | [
"MIT"
] | 1 | 2021-07-14T03:15:11.000Z | 2021-07-14T03:15:11.000Z | def get_cell_styles(color):
return 'background-color: %s; font-size: %s; font-weight: %s;' % (color, '1.2em', 'bold')
def get_column_color(column_name):
if (column_name in ['FULL_PROJECT_NUM', 'CORE_PROJECT_NUM']):
return get_cell_styles('#ff677d')
elif (column_name in ['ACTIVITY', 'ADMINISTERING_I... | 45.75 | 112 | 0.708561 | 77 | 549 | 4.727273 | 0.519481 | 0.137363 | 0.107143 | 0.10989 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017021 | 0.143898 | 549 | 12 | 113 | 45.75 | 0.757447 | 0 | 0 | 0 | 0 | 0.1 | 0.314545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8f25b35dd8e617524cb1b90f0cdf35379c48d49a | 566 | py | Python | Visual model/MTCNN/Face_capture.py | MasterEndless/Final-year-project | ee9fc9e31a3b0855668077231de12da881c09035 | [
"MIT"
] | null | null | null | Visual model/MTCNN/Face_capture.py | MasterEndless/Final-year-project | ee9fc9e31a3b0855668077231de12da881c09035 | [
"MIT"
] | null | null | null | Visual model/MTCNN/Face_capture.py | MasterEndless/Final-year-project | ee9fc9e31a3b0855668077231de12da881c09035 | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.pardir)
from importlib import import_module
import cv2
from src.detect import FaceDetector
detector = FaceDetector()
def face_capture(frame):
image = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
bounding_boxes = detector.detect(image)
if (bounding_boxes.... | 21.769231 | 77 | 0.634276 | 75 | 566 | 4.666667 | 0.466667 | 0.222857 | 0.182857 | 0.194286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035377 | 0.250883 | 566 | 25 | 78 | 22.64 | 0.790094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
8f2bcefad6e8ba7764bb008e52ecd8db4a1c54df | 74 | py | Python | backend/pycon/settings/dev.py | hearot/pycon | 9a722c4803d8583ae8168066c7b710ce96d659a5 | [
"MIT"
] | null | null | null | backend/pycon/settings/dev.py | hearot/pycon | 9a722c4803d8583ae8168066c7b710ce96d659a5 | [
"MIT"
] | null | null | null | backend/pycon/settings/dev.py | hearot/pycon | 9a722c4803d8583ae8168066c7b710ce96d659a5 | [
"MIT"
] | null | null | null | from .base import * # noqa
SECRET_KEY = 'do not use this in production'
| 18.5 | 44 | 0.702703 | 12 | 74 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 74 | 3 | 45 | 24.666667 | 0.87931 | 0.054054 | 0 | 0 | 0 | 0 | 0.426471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
8f6e83bb513d2e400d14369b1e27c49c5c481c2a | 2,722 | py | Python | sdl_core/test/scripts/random_stream.py | APCVSRepo/android_packet | 5d4237234656b777cd9b0cae4731afea51986582 | [
"BSD-3-Clause"
] | 4 | 2016-09-21T12:36:24.000Z | 2020-10-29T01:45:03.000Z | sdl_core/test/scripts/random_stream.py | APCVSRepo/android_packet | 5d4237234656b777cd9b0cae4731afea51986582 | [
"BSD-3-Clause"
] | 7 | 2016-06-01T01:21:44.000Z | 2017-11-03T08:18:23.000Z | sdl_core/test/scripts/random_stream.py | APCVSRepo/android_packet | 5d4237234656b777cd9b0cae4731afea51986582 | [
"BSD-3-Clause"
] | 8 | 2017-08-29T10:51:50.000Z | 2021-03-24T10:19:11.000Z | #!/usr/bin/env python3
# -*- coding, 0x utf-8 -*-
import socket
from time import sleep
HOST = '127.0.0.1'
PORT = 12345
def main():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
startSession = bytes([
# header start
0x20, 0x07, 0x01, 0x00,
# max data size
0x0... | 35.350649 | 62 | 0.629317 | 411 | 2,722 | 4.143552 | 0.270073 | 0.089254 | 0.07751 | 0.056371 | 0.45919 | 0.412214 | 0.36054 | 0.326483 | 0.326483 | 0.305344 | 0 | 0.434254 | 0.214916 | 2,722 | 76 | 63 | 35.815789 | 0.362658 | 0.03086 | 0 | 0.171875 | 0 | 0 | 0.012124 | 0 | 0 | 0 | 0.514666 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.03125 | 0 | 0.046875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56b9a15073d494f819d4fec87d794dfb9ef25347 | 1,470 | py | Python | steampipe_alchemy/models/aws_vpc_vpn_connection.py | RyanJarv/steampipe_alchemy | c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f | [
"BSD-3-Clause"
] | 9 | 2021-04-21T04:21:01.000Z | 2021-06-19T19:33:36.000Z | steampipe_alchemy/models/aws_vpc_vpn_connection.py | RyanJarv/steampipe_alchemy | c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f | [
"BSD-3-Clause"
] | null | null | null | steampipe_alchemy/models/aws_vpc_vpn_connection.py | RyanJarv/steampipe_alchemy | c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f | [
"BSD-3-Clause"
] | 1 | 2021-04-26T21:08:20.000Z | 2021-04-26T21:08:20.000Z | from sqlalchemy import Column
from sqlalchemy.types import JSON, Text, Boolean, TIMESTAMP, BigInteger
from sqlalchemy.dialects import postgresql as psql
from steampipe_alchemy.mixins import FormatMixins
from steampipe_alchemy import Base
class AwsVpcVpnConnection(Base, FormatMixins):
__tablename__ = 'aws_vpc_vpn_... | 52.5 | 98 | 0.743537 | 183 | 1,470 | 5.775956 | 0.273224 | 0.215705 | 0.181646 | 0.085147 | 0.070956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142177 | 1,470 | 28 | 99 | 52.5 | 0.838224 | 0 | 0 | 0 | 0 | 0 | 0.14412 | 0.03535 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192308 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 3 |
56cfac30ef71a75c8a8ce35d60b84918e907970c | 216 | py | Python | trial/templatetags/app_filters.py | Alex394540/django_supplement_site | 0e1bb44608d9273968a7a65e2796ad388f2e72f5 | [
"MIT"
] | null | null | null | trial/templatetags/app_filters.py | Alex394540/django_supplement_site | 0e1bb44608d9273968a7a65e2796ad388f2e72f5 | [
"MIT"
] | null | null | null | trial/templatetags/app_filters.py | Alex394540/django_supplement_site | 0e1bb44608d9273968a7a65e2796ad388f2e72f5 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.filter(name='prepend_dollars')
def prepend_dollars(dollars):
if isinstance(dollars, float):
return "%.2f" % dollars
return dollars | 24 | 40 | 0.726852 | 25 | 216 | 6.2 | 0.64 | 0.180645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.166667 | 216 | 9 | 41 | 24 | 0.855556 | 0 | 0 | 0 | 0 | 0 | 0.087558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 3 |
56d71e0474b9e18b41d08b449a0407018493c3fb | 885 | py | Python | Ene-Jun-2020/alvarado-lara-luz-deorela-sabas/PrimerParcial/Ejercicio4/ocp.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ene-Jun-2020/alvarado-lara-luz-deorela-sabas/PrimerParcial/Ejercicio4/ocp.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ene-Jun-2020/alvarado-lara-luz-deorela-sabas/PrimerParcial/Ejercicio4/ocp.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z |
class Animal:
def __init__(self, nombre: str):
self.nombre = nombre
def get_nombre(self) -> str:
pass
def sonido(self):
pass
animales = [
Animal('león'),
Animal('ratón')
]
#CLASE PARA LEON
class Lion(Animal):
def sonido(self):
return 'roar'
#CLASE... | 21.071429 | 78 | 0.673446 | 125 | 885 | 4.728 | 0.568 | 0.060914 | 0.06599 | 0.064298 | 0.084602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248588 | 885 | 42 | 79 | 21.071429 | 0.888722 | 0.036158 | 0 | 0.238095 | 0 | 0 | 0.040254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.095238 | 0 | 0.095238 | 0.52381 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
56efbb70b090d8b85493cb856a904765d4077b67 | 6,705 | py | Python | jirasync/cliOperations.py | flopezag/fiware-cef | 530678b013dc31c943346d578cb03e669e80ee79 | [
"Apache-2.0"
] | null | null | null | jirasync/cliOperations.py | flopezag/fiware-cef | 530678b013dc31c943346d578cb03e669e80ee79 | [
"Apache-2.0"
] | null | null | null | jirasync/cliOperations.py | flopezag/fiware-cef | 530678b013dc31c943346d578cb03e669e80ee79 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
##
# Copyright 2018 FIWARE Foundation, e.V.
# 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.apach... | 33.358209 | 113 | 0.64877 | 918 | 6,705 | 4.577342 | 0.197168 | 0.026654 | 0.040219 | 0.043313 | 0.664446 | 0.664446 | 0.664446 | 0.660162 | 0.641599 | 0.641599 | 0 | 0.005006 | 0.255183 | 6,705 | 200 | 114 | 33.525 | 0.836404 | 0.260999 | 0 | 0.770833 | 0 | 0 | 0.09969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0.114583 | 0.052083 | 0 | 0.104167 | 0.114583 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
56f5d4ba3f60a5ad8c75abc33f22845789b98a2d | 3,917 | py | Python | ieee/bnfLexer.py | msagca/syntax_scraper | 5652061276631aa1bb6940b94af8949ed47ad86b | [
"MIT"
] | null | null | null | ieee/bnfLexer.py | msagca/syntax_scraper | 5652061276631aa1bb6940b94af8949ed47ad86b | [
"MIT"
] | null | null | null | ieee/bnfLexer.py | msagca/syntax_scraper | 5652061276631aa1bb6940b94af8949ed47ad86b | [
"MIT"
] | null | null | null | # Generated from bnfLexer.g4 by ANTLR 4.10
from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
return [
4,0,13,86,6,-1,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,
7,5,2,6... | 42.11828 | 103 | 0.556293 | 984 | 3,917 | 2.161585 | 0.177846 | 0.150447 | 0.102962 | 0.114716 | 0.201693 | 0.150447 | 0.145275 | 0.137283 | 0.137283 | 0.117536 | 0 | 0.330944 | 0.180751 | 3,917 | 92 | 104 | 42.576087 | 0.331879 | 0.010212 | 0 | 0 | 1 | 0 | 0.111283 | 0.005422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.066667 | 0.013333 | 0.413333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7118d0b587cc550b88202fb0aa7328bf28dd140b | 1,433 | py | Python | core/model/db/base.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | core/model/db/base.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | core/model/db/base.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ----------------------------------------------------------------------
# Autocommit pg database wrapper
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
... | 31.844444 | 90 | 0.578507 | 144 | 1,433 | 5.611111 | 0.625 | 0.037129 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011454 | 0.207955 | 1,433 | 44 | 91 | 32.568182 | 0.700441 | 0.410328 | 0 | 0.117647 | 0 | 0 | 0.005181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.117647 | 0.176471 | 0.058824 | 0.647059 | 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 | 1 | 0 | 0 | 3 |
713ec0a23350d256deaa6fe5a25a009ad43bce52 | 129 | py | Python | test/__init__.py | ikeuchi-screen/sandbox | e6ee6a8a8c34b2f10fd6ea386b25052a4ac1b884 | [
"MIT"
] | null | null | null | test/__init__.py | ikeuchi-screen/sandbox | e6ee6a8a8c34b2f10fd6ea386b25052a4ac1b884 | [
"MIT"
] | null | null | null | test/__init__.py | ikeuchi-screen/sandbox | e6ee6a8a8c34b2f10fd6ea386b25052a4ac1b884 | [
"MIT"
] | 1 | 2019-09-03T08:14:39.000Z | 2019-09-03T08:14:39.000Z | """
Python implementation of the algorithms.
"""
from .base import BaseFoo
__all__ = ['BaseFoo']
__version__ = '1.2'
| 12.9 | 41 | 0.643411 | 14 | 129 | 5.357143 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.224806 | 129 | 9 | 42 | 14.333333 | 0.73 | 0.310078 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
854edd9b6b997030f66a8d20cd7630829b83efd1 | 843 | py | Python | OPMS_v3-dev3.1/apps/host_management/admin.py | litiian/asyncstudy | a59119f189ca96fdd7f64b0b3212207572165dce | [
"Apache-2.0"
] | null | null | null | OPMS_v3-dev3.1/apps/host_management/admin.py | litiian/asyncstudy | a59119f189ca96fdd7f64b0b3212207572165dce | [
"Apache-2.0"
] | null | null | null | OPMS_v3-dev3.1/apps/host_management/admin.py | litiian/asyncstudy | a59119f189ca96fdd7f64b0b3212207572165dce | [
"Apache-2.0"
] | null | null | null | ######################################
# Django 模块
######################################
from django.contrib import admin
######################################
# 自己写的模块
######################################
from .models import *
######################################
# 注册
######################################
a... | 17.5625 | 45 | 0.588375 | 68 | 843 | 7.294118 | 0.367647 | 0.254032 | 0.479839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067616 | 843 | 47 | 46 | 17.93617 | 0.631043 | 0.022539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
85749bf995fc09bd13c1fd423c17c9c87fa06629 | 520 | py | Python | 2020/0_qualif/2.py | AmauryLiet/CodeJam | 3e02bce287e3c640d89eea4b0d5878319c79d59b | [
"MIT"
] | null | null | null | 2020/0_qualif/2.py | AmauryLiet/CodeJam | 3e02bce287e3c640d89eea4b0d5878319c79d59b | [
"MIT"
] | null | null | null | 2020/0_qualif/2.py | AmauryLiet/CodeJam | 3e02bce287e3c640d89eea4b0d5878319c79d59b | [
"MIT"
] | null | null | null | N = int(input())
for case_id in range(1, N + 1):
init_string = input()
final_string = ''
current_depth = 0
for char in init_string:
digit = int(char)
if digit > current_depth:
final_string += '(' * (digit - current_depth)
elif digit < current_depth:
fin... | 24.761905 | 57 | 0.573077 | 62 | 520 | 4.532258 | 0.33871 | 0.298932 | 0.241993 | 0.245552 | 0.199288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008242 | 0.3 | 520 | 20 | 58 | 26 | 0.763736 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | null | 1 | 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 | 3 |
85826e689a592a8f86c657c1325e1534ca3546e5 | 267 | py | Python | pymerit/__init__.py | pingali/pymerit | 37e5183c9a5b90485d620f803b7ea1159cc8c0e0 | [
"MIT"
] | 1 | 2019-01-04T04:53:36.000Z | 2019-01-04T04:53:36.000Z | pymerit/__init__.py | pingali/pymerit | 37e5183c9a5b90485d620f803b7ea1159cc8c0e0 | [
"MIT"
] | null | null | null | pymerit/__init__.py | pingali/pymerit | 37e5183c9a5b90485d620f803b7ea1159cc8c0e0 | [
"MIT"
] | null | null | null | """
pymerit
-------
Standardized metadata generation and processing.
This package provides:
a. Simple format for the metadata
b. Handlers to load and store metadata
"""
from .utils import *
from .exceptions import *
from .base import *
from .contrib import *
| 14.833333 | 49 | 0.722846 | 34 | 267 | 5.676471 | 0.735294 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183521 | 267 | 17 | 50 | 15.705882 | 0.885321 | 0.617978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
85862208584094e02b06623d571a4a4eb934ef9d | 4,317 | py | Python | compiler/Expr.py | thomascastleman/teaching-compiler | b88f261973d5859524569bfa5ad876531aa95b53 | [
"MIT"
] | null | null | null | compiler/Expr.py | thomascastleman/teaching-compiler | b88f261973d5859524569bfa5ad876531aa95b53 | [
"MIT"
] | null | null | null | compiler/Expr.py | thomascastleman/teaching-compiler | b88f261973d5859524569bfa5ad876531aa95b53 | [
"MIT"
] | 1 | 2021-05-18T00:05:47.000Z | 2021-05-18T00:05:47.000Z |
class Expr:
"""An Expr represents an expression in our language that can be
evaluated to produce a value (a number)"""
def isNum(self):
return isinstance(self, Num)
def isAdd1(self):
return isinstance(self, Add1)
def isSub1(self):
return isinstance(self, Sub1)
def isPlus(self):
return ... | 22.138462 | 66 | 0.637711 | 586 | 4,317 | 4.450512 | 0.116041 | 0.147239 | 0.092025 | 0.110429 | 0.517255 | 0.457439 | 0.457439 | 0.390337 | 0.390337 | 0.390337 | 0 | 0.003008 | 0.230021 | 4,317 | 194 | 67 | 22.252577 | 0.781588 | 0.023396 | 0 | 0.398601 | 0 | 0 | 0.066556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.335664 | false | 0 | 0 | 0.237762 | 0.685315 | 0.006993 | 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 | 1 | 0 | 0 | 3 |
85af93276d2d2f93f5624458a4b57381eaebaf8d | 391 | py | Python | central_service/minitopo/mpExperienceNone.py | netmsys/mpquic-rl | f9f9ce7a199c359baf0d5cdee063fbd5186f82c5 | [
"MIT"
] | 1 | 2020-04-30T19:20:01.000Z | 2020-04-30T19:20:01.000Z | central_service/minitopo/mpExperienceNone.py | netmsys/mpquic-rl | f9f9ce7a199c359baf0d5cdee063fbd5186f82c5 | [
"MIT"
] | null | null | null | central_service/minitopo/mpExperienceNone.py | netmsys/mpquic-rl | f9f9ce7a199c359baf0d5cdee063fbd5186f82c5 | [
"MIT"
] | null | null | null | from mpExperience import MpExperience
from mpParamXp import MpParamXp
class MpExperienceNone(MpExperience):
def __init__(self, xpParamFile, mpTopo, mpConfig):
MpExperience.__init__(self, xpParamFile, mpTopo, mpConfig)
MpExperience.classicRun(self)
def prepare(self):
MpExperience.prepare(self)
def clean(sel... | 23 | 60 | 0.782609 | 44 | 391 | 6.772727 | 0.386364 | 0.07047 | 0.127517 | 0.167785 | 0.302013 | 0.302013 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122762 | 391 | 16 | 61 | 24.4375 | 0.868805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.583333 | 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 | 1 | 0 | 0 | 3 |
85b700c7538f1bf71b063ede52fb38f664e79041 | 775 | py | Python | Lab2015/asinus_salutem/scripts/script1.py | jadnohra/jad-pre-2015-dabblings | 368cbd39c6371b3e48b0c67d9a83fc20eee41346 | [
"MIT"
] | null | null | null | Lab2015/asinus_salutem/scripts/script1.py | jadnohra/jad-pre-2015-dabblings | 368cbd39c6371b3e48b0c67d9a83fc20eee41346 | [
"MIT"
] | null | null | null | Lab2015/asinus_salutem/scripts/script1.py | jadnohra/jad-pre-2015-dabblings | 368cbd39c6371b3e48b0c67d9a83fc20eee41346 | [
"MIT"
] | null | null | null | #fctx1 = func_str_to_sym('A*cos(x)+B*sin(y)+[1^2*cos(x)]');
#print fctx1;
#print func_dist(fctx1['lambd_vars'], fctx1['lambd_f'], fctx1['lambd_f'], (-1,1,0.1));
#print func_dist(fctx1['lambd_vars'], fctx1['lambd_f'], fctx1['lambd_df'][0], (-1,1,0.1));
#print '----'
fctx_e2 = func_str_to_sym('( [ (C1*sin(x)-C2*cos(x))^2... | 64.583333 | 167 | 0.611613 | 162 | 775 | 2.685185 | 0.197531 | 0.137931 | 0.11954 | 0.036782 | 0.671264 | 0.650575 | 0.650575 | 0.650575 | 0.650575 | 0.547126 | 0 | 0.103693 | 0.091613 | 775 | 11 | 168 | 70.454545 | 0.514205 | 0.370323 | 0 | 0 | 0 | 0.5 | 0.540541 | 0.237006 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
85c1cc39715a8f47ba961d7a9cd351aa5309fd85 | 558 | py | Python | model/aws.py | IIIF/fixtures | 62811c897f985414be91ac017dd977aad5e87dfd | [
"Apache-2.0"
] | 1 | 2020-02-12T21:50:38.000Z | 2020-02-12T21:50:38.000Z | model/aws.py | IIIF/fixtures | 62811c897f985414be91ac017dd977aad5e87dfd | [
"Apache-2.0"
] | 6 | 2020-04-03T17:54:05.000Z | 2020-10-08T23:24:37.000Z | model/aws.py | IIIF/fixtures | 62811c897f985414be91ac017dd977aad5e87dfd | [
"Apache-2.0"
] | null | null | null | #!`which python3`
import os
import boto3
class AWS:
def __init__(self):
if 'AWS_ACCESS_KEY_ID' in os.environ and 'AWS_SECRET_ACCESS_KEY' in os.environ:
self.session = boto3.Session(aws_access_key_id=os.environ['AWS_ACCESS_KEY_ID'], aws_secret_access_key=os.environ['AWS_SECRET_ACCESS_KEY'])
... | 31 | 151 | 0.679211 | 80 | 558 | 4.45 | 0.375 | 0.151685 | 0.101124 | 0.117978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015801 | 0.206093 | 558 | 17 | 152 | 32.823529 | 0.78781 | 0.028674 | 0 | 0 | 0 | 0 | 0.160813 | 0.077634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a4108bb340bce66fecd2aa5a036e470330ad3be3 | 1,820 | py | Python | src/sfctl/helps/deployment.py | vshan/service-fabric-cli | f491a301a03db3e0c11bb17b2a2315949ff40ba3 | [
"MIT"
] | 1 | 2020-10-05T10:06:36.000Z | 2020-10-05T10:06:36.000Z | src/sfctl/helps/deployment.py | vshan/service-fabric-cli | f491a301a03db3e0c11bb17b2a2315949ff40ba3 | [
"MIT"
] | null | null | null | src/sfctl/helps/deployment.py | vshan/service-fabric-cli | f491a301a03db3e0c11bb17b2a2315949ff40ba3 | [
"MIT"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------... | 60.666667 | 172 | 0.641758 | 213 | 1,820 | 5.478873 | 0.399061 | 0.046272 | 0.068552 | 0.066838 | 0.418166 | 0.418166 | 0.418166 | 0.383033 | 0.383033 | 0.383033 | 0 | 0 | 0.20989 | 1,820 | 29 | 173 | 62.758621 | 0.811544 | 0.203297 | 0 | 0.1 | 0 | 0.3 | 0.955351 | 0.017718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.05 | 0.05 | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a4290659ade2c4d0058ec05ca53b83aa6e90b24c | 222 | py | Python | insomnia/explores/gaussian_noise.py | takeru1205/Insomnia | 72f78db5dc7b9c6e494f31408e0a011606275291 | [
"MIT"
] | null | null | null | insomnia/explores/gaussian_noise.py | takeru1205/Insomnia | 72f78db5dc7b9c6e494f31408e0a011606275291 | [
"MIT"
] | 3 | 2019-12-02T01:59:09.000Z | 2020-12-15T09:44:33.000Z | insomnia/explores/gaussian_noise.py | takeru1205/Insomnia | 72f78db5dc7b9c6e494f31408e0a011606275291 | [
"MIT"
] | null | null | null | import numpy as np
class GaussianActionNoise(object):
def __init__(self, mu, sigma=0.1):
self.mu = mu
self.sigma = sigma
def __call__(self):
return np.random.normal(self.mu, self.sigma)
| 18.5 | 52 | 0.635135 | 31 | 222 | 4.290323 | 0.580645 | 0.135338 | 0.165414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.256757 | 222 | 11 | 53 | 20.181818 | 0.793939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a43d688eeac916b77272b51bcc10bf35e45637ab | 155 | py | Python | timezones_cli/utils/variables.py | ojayyezzir/timezones-cli | a88dcad50895707ec35bf8be35659f84868df348 | [
"MIT"
] | 50 | 2020-10-05T04:55:14.000Z | 2022-03-10T19:56:46.000Z | timezones_cli/utils/variables.py | ojayyezzir/timezones-cli | a88dcad50895707ec35bf8be35659f84868df348 | [
"MIT"
] | 6 | 2020-10-05T04:59:45.000Z | 2022-03-10T04:05:06.000Z | timezones_cli/utils/variables.py | ojayyezzir/timezones-cli | a88dcad50895707ec35bf8be35659f84868df348 | [
"MIT"
] | 4 | 2020-10-05T13:25:03.000Z | 2020-11-18T09:53:43.000Z | """ Global variables """
from pathlib import Path
home_dir: str = str(Path.home())
filename: str = ".tz-cli"
config_file: str = f"{home_dir}/{filename}"
| 19.375 | 43 | 0.677419 | 23 | 155 | 4.434783 | 0.652174 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141935 | 155 | 7 | 44 | 22.142857 | 0.766917 | 0.103226 | 0 | 0 | 0 | 0 | 0.21374 | 0.160305 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a440926f750533e101efd8955dc8fb12259cca6f | 976 | py | Python | Marathon/items.py | Yoyun/Marathon | a370229fbb6e436b190fc98ba60c40dc2ae8c113 | [
"Apache-2.0"
] | null | null | null | Marathon/items.py | Yoyun/Marathon | a370229fbb6e436b190fc98ba60c40dc2ae8c113 | [
"Apache-2.0"
] | null | null | null | Marathon/items.py | Yoyun/Marathon | a370229fbb6e436b190fc98ba60c40dc2ae8c113 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class MarathonItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class MatchItem(scrapy.Item):
... | 20.333333 | 51 | 0.570697 | 118 | 976 | 4.610169 | 0.584746 | 0.323529 | 0.055147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00149 | 0.3125 | 976 | 47 | 52 | 20.765957 | 0.80924 | 0.282787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.052632 | 0 | 0.947368 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a447aff516b97b307b7e774aa96a98c9db3499c3 | 234 | py | Python | Easy/905. Sort Array By Parity/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 3 | 2020-05-09T12:55:09.000Z | 2022-03-11T18:56:05.000Z | Easy/905. Sort Array By Parity/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | null | null | null | Easy/905. Sort Array By Parity/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 1 | 2022-03-11T18:56:16.000Z | 2022-03-11T18:56:16.000Z | # 905. Sort Array By Parity
class Solution:
# Sort
# Use a custom comparator when sorting, to sort by parity.
def sortArrayByParity(self, A: list[int]) -> list[int]:
A.sort(key = lambda x: x % 2)
return A | 26 | 62 | 0.619658 | 35 | 234 | 4.142857 | 0.685714 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023669 | 0.277778 | 234 | 9 | 63 | 26 | 0.83432 | 0.371795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a4523b034245b27e3d8316707700f53027414c27 | 76 | py | Python | python/520.detect-capital.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/520.detect-capital.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/520.detect-capital.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def detectCapitalUse(self, word: str) -> bool:
| 19 | 50 | 0.618421 | 8 | 76 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276316 | 76 | 3 | 51 | 25.333333 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a49f72434dad3521abf4ca01d594400eb8d89043 | 690 | py | Python | Week 5 - playList/tiny_playlist.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 5 | 2021-01-19T00:31:22.000Z | 2021-03-05T02:31:10.000Z | Week 5 - playList/tiny_playlist.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 34 | 2021-01-14T21:00:18.000Z | 2021-03-11T17:57:26.000Z | Week 5 - playList/tiny_playlist.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 43 | 2021-01-14T20:40:47.000Z | 2021-03-11T02:29:30.000Z | playlist = []
first_song = raw_input("Enter your first song: ")
playlist.append(first_song)
second_song = raw_input("Enter your second song: ")
playlist.append(second_song)
if second_song == first_song:
print("Choose a different song: ")
playlist.pop(1)
second_song = raw_input("Enter your second song: ")... | 24.642857 | 57 | 0.726087 | 98 | 690 | 4.897959 | 0.214286 | 0.225 | 0.125 | 0.177083 | 0.74375 | 0.7 | 0.7 | 0.7 | 0.7 | 0.7 | 0 | 0.003442 | 0.157971 | 690 | 28 | 58 | 24.642857 | 0.822719 | 0 | 0 | 0.5 | 0 | 0 | 0.241679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a49fb6d676d7ff1c3dfd75ebdb4b758b542775a4 | 70 | py | Python | matminer/__init__.py | matSciMalcolm/matminer | ca0e02191d9019b2c0a48e6defe62c3f03558f8d | [
"BSD-3-Clause-LBNL"
] | null | null | null | matminer/__init__.py | matSciMalcolm/matminer | ca0e02191d9019b2c0a48e6defe62c3f03558f8d | [
"BSD-3-Clause-LBNL"
] | null | null | null | matminer/__init__.py | matSciMalcolm/matminer | ca0e02191d9019b2c0a48e6defe62c3f03558f8d | [
"BSD-3-Clause-LBNL"
] | null | null | null | __version__ = '0.5.1'
from matminer.figrecipes.plot import PlotlyFig
| 17.5 | 46 | 0.785714 | 10 | 70 | 5.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.114286 | 70 | 3 | 47 | 23.333333 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
8efd94d3c440320fb8244ce9b01d0b29a2490367 | 336 | py | Python | test/conftest.py | DanioPurdue/flask-calendar | cded022da18a2ae2cb3f3587ec75f8b3dc0fd307 | [
"Unlicense"
] | null | null | null | test/conftest.py | DanioPurdue/flask-calendar | cded022da18a2ae2cb3f3587ec75f8b3dc0fd307 | [
"Unlicense"
] | null | null | null | test/conftest.py | DanioPurdue/flask-calendar | cded022da18a2ae2cb3f3587ec75f8b3dc0fd307 | [
"Unlicense"
] | null | null | null | import pytest
from flask import Flask
from flask.testing import FlaskClient
from flask_calendar.app import create_app
@pytest.fixture
def app() -> Flask:
return create_app({
'TESTING': True,
'FAILED_LOGIN_DELAY_BASE': 0,
})
@pytest.fixture
def client(app: Flask) -> FlaskClient:
return ap... | 18.666667 | 41 | 0.708333 | 44 | 336 | 5.25 | 0.454545 | 0.116883 | 0.138528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.196429 | 336 | 17 | 42 | 19.764706 | 0.851852 | 0 | 0 | 0.153846 | 0 | 0 | 0.089286 | 0.068452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.153846 | 0.615385 | 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 | 1 | 0 | 0 | 3 |
f10c6cdc187cd038e284a21bd367b357d09375d0 | 2,002 | py | Python | Assignment_bootstrap/week5_dynamic_programming1/1_money_change_again/change_dp.py | brianchiang-tw/Algorithmic_Toolbox | ce04b8f330994aa6d600b27fdf85570646d7742b | [
"MIT"
] | null | null | null | Assignment_bootstrap/week5_dynamic_programming1/1_money_change_again/change_dp.py | brianchiang-tw/Algorithmic_Toolbox | ce04b8f330994aa6d600b27fdf85570646d7742b | [
"MIT"
] | null | null | null | Assignment_bootstrap/week5_dynamic_programming1/1_money_change_again/change_dp.py | brianchiang-tw/Algorithmic_Toolbox | ce04b8f330994aa6d600b27fdf85570646d7742b | [
"MIT"
] | null | null | null | # Uses python3
import sys
noNones = lambda fn : lambda *args : fn(a for a in args if a is not None)
def get_min_change( price, solution_table ):
for p in range(0, price+1):
# print("\n\nprice", p)
if 0 == p:
solution_table[p] = ( 0, [] )
elif 1 == p:
solution_tab... | 27.424658 | 130 | 0.547952 | 279 | 2,002 | 3.655914 | 0.215054 | 0.254902 | 0.219608 | 0.088235 | 0.403922 | 0.318627 | 0.221569 | 0.20098 | 0.20098 | 0.20098 | 0 | 0.034457 | 0.333167 | 2,002 | 72 | 131 | 27.805556 | 0.729588 | 0.111888 | 0 | 0.138889 | 0 | 0 | 0.004525 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.055556 | false | 0 | 0.027778 | 0 | 0.138889 | 0.027778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f1138ba3b65cc063a16506d57287acaab47d90b7 | 65 | py | Python | module/mymoudle.py | laoyou2018/PythonLearning | 3c2567f148215e2d0409ba4420ed87d627699097 | [
"MIT"
] | null | null | null | module/mymoudle.py | laoyou2018/PythonLearning | 3c2567f148215e2d0409ba4420ed87d627699097 | [
"MIT"
] | null | null | null | module/mymoudle.py | laoyou2018/PythonLearning | 3c2567f148215e2d0409ba4420ed87d627699097 | [
"MIT"
] | null | null | null | def myname(name):
print('my name is %s' %name)
myname('wxb') | 16.25 | 32 | 0.615385 | 11 | 65 | 3.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 65 | 4 | 33 | 16.25 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f121c14cc77e1b8fc2e1b8bb81bf820d243ec0c5 | 1,549 | py | Python | nautobot/core/settings_funcs.py | nniehoff/nautobot | e7fe2c711eb406727e99d0b0b526cd072e4d5a16 | [
"Apache-2.0"
] | null | null | null | nautobot/core/settings_funcs.py | nniehoff/nautobot | e7fe2c711eb406727e99d0b0b526cd072e4d5a16 | [
"Apache-2.0"
] | null | null | null | nautobot/core/settings_funcs.py | nniehoff/nautobot | e7fe2c711eb406727e99d0b0b526cd072e4d5a16 | [
"Apache-2.0"
] | null | null | null | """Helper functions to detect settings after app initialization. AKA 'dynamic settings'"""
from distutils.util import strtobool
from functools import lru_cache
#
# X_auth_enabled checks to see if a backend has been specified, thus assuming it is enabled.
# Leverages `lru_cache` since these are called per user sessio... | 28.163636 | 100 | 0.736604 | 219 | 1,549 | 4.986301 | 0.447489 | 0.131868 | 0.082418 | 0.126374 | 0.315018 | 0.309524 | 0.259158 | 0.129121 | 0.129121 | 0.129121 | 0 | 0.00394 | 0.180762 | 1,549 | 54 | 101 | 28.685185 | 0.85658 | 0.369916 | 0 | 0.125 | 0 | 0 | 0.109442 | 0.087983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.083333 | 0.208333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f12cf8715e32acd6b1f780cbca83ebd4bbff96af | 4,160 | py | Python | train/submit/PassengerDetails.py | ljygit/12306 | 3de32a7046a2cfef35c1a2793172607237bc7ef7 | [
"MIT"
] | 769 | 2018-12-24T01:57:47.000Z | 2022-02-12T16:05:01.000Z | train/submit/PassengerDetails.py | ljygit/12306 | 3de32a7046a2cfef35c1a2793172607237bc7ef7 | [
"MIT"
] | 68 | 2019-01-14T07:08:58.000Z | 2022-03-11T23:38:53.000Z | train/submit/PassengerDetails.py | Mr-Mei/12306- | ff6f027497962c34c8ad6df0138e617a7dc8be71 | [
"MIT"
] | 256 | 2019-01-11T05:37:29.000Z | 2021-08-18T05:54:49.000Z | class PassengerDetails(object):
@property
def code(self):
return self._code
@code.setter
def code(self, value):
self._code = value
@property
def passengerName(self):
return self._passengerName
@passengerName.setter
def passengerName(self, value):
self._... | 22.365591 | 65 | 0.590385 | 380 | 4,160 | 6.302632 | 0.102632 | 0.091858 | 0.122756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.326202 | 4,160 | 185 | 66 | 22.486486 | 0.854442 | 0 | 0 | 0.147887 | 0 | 0 | 0.016346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.302817 | false | 0.274648 | 0 | 0.15493 | 0.471831 | 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 | 1 | 0 | 0 | 0 | 3 |
f12d6c7f2148ddbbb97caadc9fd446ee868b4273 | 73 | py | Python | requests/demo2.py | silianpan/seal-spider-demo | 23bf013d08f9edaf23823bc3787f579bccd0ec3a | [
"Apache-2.0"
] | null | null | null | requests/demo2.py | silianpan/seal-spider-demo | 23bf013d08f9edaf23823bc3787f579bccd0ec3a | [
"Apache-2.0"
] | 3 | 2021-09-08T01:11:16.000Z | 2022-03-02T15:14:03.000Z | requests/demo2.py | silianpan/seal-spider-demo | 23bf013d08f9edaf23823bc3787f579bccd0ec3a | [
"Apache-2.0"
] | 1 | 2019-08-04T09:57:29.000Z | 2019-08-04T09:57:29.000Z | import requests
r = requests.get('http://httpbin.org/get')
print(r.text) | 18.25 | 42 | 0.726027 | 12 | 73 | 4.416667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 73 | 4 | 43 | 18.25 | 0.791045 | 0 | 0 | 0 | 0 | 0 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f12f701e11e4ee2274e6124da612d9a116abe8f2 | 150 | py | Python | project/settings/base/db.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | null | null | null | project/settings/base/db.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | 4 | 2020-05-06T17:22:00.000Z | 2021-12-13T20:43:30.000Z | project/settings/base/db.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | null | null | null | import os
from project.conf.database.database import config_dev, config_prod
DATABASES = {
"default": config_prod(),
"dev": config_dev(),
}
| 16.666667 | 66 | 0.706667 | 19 | 150 | 5.368421 | 0.578947 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 150 | 8 | 67 | 18.75 | 0.816 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f134d583a50d5138440649dcabf25ac533e5d3b2 | 52 | py | Python | F_Machine_learning/1_Unsupervised-Learning/solutions/ex4_1.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 7 | 2019-07-03T07:41:55.000Z | 2022-02-06T20:25:37.000Z | F_Machine_learning/1_Unsupervised-Learning/solutions/ex4_1.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 9 | 2019-03-14T15:15:09.000Z | 2019-08-01T14:18:21.000Z | F_Machine_learning/1_Unsupervised-Learning/solutions/ex4_1.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 11 | 2019-03-12T10:43:11.000Z | 2021-10-05T12:15:00.000Z | rna_seq = GEOparse.get_GEO(geo=GEO_ID, destdir="./") | 52 | 52 | 0.730769 | 9 | 52 | 3.888889 | 0.777778 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 52 | 1 | 52 | 52 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
f14ceaf7022581cc64cc2587b47f9b9a24a1df11 | 160 | py | Python | landing_pages/urls.py | davidkartuzinski/ellieplatformsite | 63a41cb2a15ae81a7cd3cdf68d783398b3205ce2 | [
"MIT"
] | null | null | null | landing_pages/urls.py | davidkartuzinski/ellieplatformsite | 63a41cb2a15ae81a7cd3cdf68d783398b3205ce2 | [
"MIT"
] | 2 | 2021-06-25T15:30:34.000Z | 2021-06-29T13:55:02.000Z | landing_pages/urls.py | davidkartuzinski/ellieplatformsite | 63a41cb2a15ae81a7cd3cdf68d783398b3205ce2 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'landing_page'
urlpatterns = [
path('<slug:slug>/', views.single_page, name='single_page'),
]
| 17.777778 | 64 | 0.70625 | 22 | 160 | 4.954545 | 0.590909 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 160 | 8 | 65 | 20 | 0.801471 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.