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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
339ef8fed5ba4d012d573e8185656759fe212dc2 | 870 | py | Python | demos/shared.py | ContextLogic/wheezy-captcha | a2f92216e1dd40e004ce5798d9af804dbaea9c80 | [
"MIT"
] | 5 | 2017-01-04T13:42:35.000Z | 2019-10-16T16:12:02.000Z | demos/shared.py | ContextLogic/wheezy-captcha | a2f92216e1dd40e004ce5798d9af804dbaea9c80 | [
"MIT"
] | null | null | null | demos/shared.py | ContextLogic/wheezy-captcha | a2f92216e1dd40e004ce5798d9af804dbaea9c80 | [
"MIT"
] | 4 | 2017-01-04T13:43:59.000Z | 2020-03-07T12:21:42.000Z | """
"""
from wheezy.caching import MemoryCache
from wheezy.captcha.http import CaptchaContext
from wheezy.captcha.image import captcha
from wheezy.captcha.image import background
from wheezy.captcha.image import curve
from wheezy.captcha.image import noise
from wheezy.captcha.image import smooth
from wheezy.captcha... | 21.219512 | 52 | 0.706897 | 101 | 870 | 6.049505 | 0.277228 | 0.180033 | 0.278232 | 0.324059 | 0.412439 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002857 | 0.195402 | 870 | 40 | 53 | 21.75 | 0.87 | 0 | 0 | 0 | 0 | 0 | 0.062572 | 0.062572 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.392857 | 0 | 0.392857 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
33ad060228449e120ade568ad0fee99f6dee04cd | 307 | py | Python | dwml/__init__.py | bazingarj/dwml | 479d68ac10d69b39e08aa2fad11cca1e83e36d63 | [
"Apache-2.0"
] | null | null | null | dwml/__init__.py | bazingarj/dwml | 479d68ac10d69b39e08aa2fad11cca1e83e36d63 | [
"Apache-2.0"
] | null | null | null | dwml/__init__.py | bazingarj/dwml | 479d68ac10d69b39e08aa2fad11cca1e83e36d63 | [
"Apache-2.0"
] | null | null | null | """
http://www.ecma-international.org/publications/standards/Ecma-376.htm
"""
try:
import lxml.etree as ET # It's faster than 'xml.etree.ElementTree' in CPython
except ImportError:
import xml.etree.ElementTree as ET
__version__ = '0.2'
class NotSupport(Exception):
"""
not support exception
"""
pass | 20.466667 | 78 | 0.739414 | 43 | 307 | 5.186047 | 0.790698 | 0.035874 | 0.170404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018657 | 0.127036 | 307 | 15 | 79 | 20.466667 | 0.813433 | 0.469055 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
33c562eafbc0f87bf29f303662d0f9a419f617c0 | 352 | py | Python | image_similarity/crash_test.py | JonathanSum/image_similarity | 3215f5932f11f1c7c52f87bda99745be24b03632 | [
"MIT"
] | 160 | 2020-08-23T18:49:29.000Z | 2022-03-27T02:56:41.000Z | image_similarity/crash_test.py | JonathanSum/image_similarity | 3215f5932f11f1c7c52f87bda99745be24b03632 | [
"MIT"
] | 5 | 2020-09-03T13:19:01.000Z | 2022-01-24T08:45:43.000Z | image_similarity/crash_test.py | JonathanSum/image_similarity | 3215f5932f11f1c7c52f87bda99745be24b03632 | [
"MIT"
] | 37 | 2020-08-25T08:19:48.000Z | 2022-03-11T06:48:39.000Z | # # Just a file to test small blocks of code
# import requests
# from PIL import Image
# import config
# if __name__ == "__main__":
# # img = Image.open(config.TEST_IMAGE_PATH)
# data = Image.open(config.TEST_IMAGE_PATH)
# my_obj = {"image" : data}
# r = requests.post("http://127.0.0.1:9000/simimage... | 23.466667 | 71 | 0.647727 | 53 | 352 | 4.037736 | 0.622642 | 0.084112 | 0.140187 | 0.17757 | 0.261682 | 0.261682 | 0 | 0 | 0 | 0 | 0 | 0.035842 | 0.207386 | 352 | 14 | 72 | 25.142857 | 0.731183 | 0.920455 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
33c5d8f8e338fbc2a2f83177a50a95d73053d6db | 306 | py | Python | core/resource/serializers.py | ojengwa/reportr | ca66184e2b7f28cb3818bb5d3a931232566bff99 | [
"MIT"
] | 2 | 2015-01-26T14:43:20.000Z | 2015-02-13T10:18:44.000Z | core/resource/serializers.py | ojengwa/reportr | ca66184e2b7f28cb3818bb5d3a931232566bff99 | [
"MIT"
] | null | null | null | core/resource/serializers.py | ojengwa/reportr | ca66184e2b7f28cb3818bb5d3a931232566bff99 | [
"MIT"
] | null | null | null | from apps.users.models import Staff
from rest_framework import serializers
# Serializers define the API representation.
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Staff
fields = ('first_name', 'last_name', 'username', 'email', 'picture', 'url')
| 30.6 | 83 | 0.735294 | 33 | 306 | 6.727273 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 306 | 9 | 84 | 34 | 0.870588 | 0.137255 | 0 | 0 | 0 | 0 | 0.160305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
33dba11a8c9b35804d7fc964bad0ade177b2af56 | 125 | py | Python | test/output/053.py | EliRibble/pyfmt | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | [
"MIT"
] | null | null | null | test/output/053.py | EliRibble/pyfmt | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | [
"MIT"
] | null | null | null | test/output/053.py | EliRibble/pyfmt | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | [
"MIT"
] | null | null | null | AN_ESCAPED_NEWLINE = "\n"
AN_ESCAPED_TAB = "\t"
A_COMMA = ","
A_QUOTE = "'"
A_TAB = "\t"
DOUBLE_QUOTES = "\""
NEWLINE = "\n"
| 15.625 | 25 | 0.6 | 19 | 125 | 3.526316 | 0.578947 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168 | 125 | 7 | 26 | 17.857143 | 0.644231 | 0 | 0 | 0 | 0 | 0 | 0.088 | 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 |
33ddd2ac11c66b282731fb19828aa202a021c294 | 664 | py | Python | signal_ocean/freight_pricing/_freight_pricing_json.py | ktsitsikas-signal/SignalSDK | 1b125ae963ee2b53a2a3ec5a7ae6bf9511608355 | [
"Apache-2.0"
] | null | null | null | signal_ocean/freight_pricing/_freight_pricing_json.py | ktsitsikas-signal/SignalSDK | 1b125ae963ee2b53a2a3ec5a7ae6bf9511608355 | [
"Apache-2.0"
] | null | null | null | signal_ocean/freight_pricing/_freight_pricing_json.py | ktsitsikas-signal/SignalSDK | 1b125ae963ee2b53a2a3ec5a7ae6bf9511608355 | [
"Apache-2.0"
] | null | null | null | from typing import Iterable, Tuple, cast, Mapping, Any
from decimal import Decimal
from .models import FreightPricing
from .._internals import as_decimal
def parse(json: Iterable[Mapping[str, Any]]) -> Tuple[FreightPricing, ...]:
return tuple(parse_freight_pricing_item(i) for i in json)
def parse_freight_prici... | 34.947368 | 75 | 0.710843 | 85 | 664 | 5.423529 | 0.352941 | 0.078091 | 0.084599 | 0.130152 | 0.234273 | 0.234273 | 0.234273 | 0.234273 | 0 | 0 | 0 | 0 | 0.153614 | 664 | 18 | 76 | 36.888889 | 0.820285 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0 | 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 |
33fea3210d158a3cb7496eda982986f4c56ec137 | 382 | py | Python | rest_easy/specification/core.py | mplanchard/rest-easy | f1b84a3e3bf7dce4d0ff3c5e4b1289087d37d4c0 | [
"MIT"
] | null | null | null | rest_easy/specification/core.py | mplanchard/rest-easy | f1b84a3e3bf7dce4d0ff3c5e4b1289087d37d4c0 | [
"MIT"
] | null | null | null | rest_easy/specification/core.py | mplanchard/rest-easy | f1b84a3e3bf7dce4d0ff3c5e4b1289087d37d4c0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Specifications for a ReST API.
Specifications are customized Marshmallow schemas.
"""
from marshmallow.schema import BaseSchema, SchemaMeta
from six import with_metaclass
class SpecificationMeta(SchemaMeta):
pass
class SpecificationBase(BaseSchema):
pass
class Specification(wi... | 18.190476 | 74 | 0.774869 | 39 | 382 | 7.538462 | 0.641026 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003058 | 0.143979 | 382 | 20 | 75 | 19.1 | 0.896024 | 0.274869 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.375 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1d669c418a966c4b9ce77da4600a7d0ebc1f3845 | 3,322 | gyp | Python | node_modules/nodegit/binding.gyp | nodeframe/dite | bfe7d02af159b39b42a2c88fde4ce369db021c85 | [
"MIT"
] | null | null | null | node_modules/nodegit/binding.gyp | nodeframe/dite | bfe7d02af159b39b42a2c88fde4ce369db021c85 | [
"MIT"
] | null | null | null | node_modules/nodegit/binding.gyp | nodeframe/dite | bfe7d02af159b39b42a2c88fde4ce369db021c85 | [
"MIT"
] | null | null | null | # // This is a generated file, modify: generate/templates/binding.gyp.
{
"targets": [{
"target_name": "nodegit",
"dependencies": [
"<(module_root_dir)/vendor/libgit2.gyp:libgit2"
],
"sources": [
"src/nodegit.cc",
"src/wrapper.cc",
"src/functions/copy.cc",
"src/attr.cc"... | 23.899281 | 70 | 0.505418 | 388 | 3,322 | 4.188144 | 0.368557 | 0.276923 | 0.066462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004766 | 0.305238 | 3,322 | 139 | 71 | 23.899281 | 0.699307 | 0.02047 | 0 | 0.061069 | 1 | 0 | 0.568398 | 0.128804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.007634 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1d6c06e61eec4e83fe4cfa2cf8d3af1bc38e65fc | 57 | py | Python | uri/2483.py | AdilsonTorres/programming-problems | d611870c5fe6464d83c9d2a6c6a79ccedbf110b9 | [
"MIT"
] | null | null | null | uri/2483.py | AdilsonTorres/programming-problems | d611870c5fe6464d83c9d2a6c6a79ccedbf110b9 | [
"MIT"
] | null | null | null | uri/2483.py | AdilsonTorres/programming-problems | d611870c5fe6464d83c9d2a6c6a79ccedbf110b9 | [
"MIT"
] | null | null | null | N = int(input())
print("Feliz nat{}l!".format('a' * N))
| 14.25 | 38 | 0.54386 | 10 | 57 | 3.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 57 | 3 | 39 | 19 | 0.632653 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 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 |
1d6ed0f96213dcc912ba8f6d93a7d76f791a2790 | 99 | py | Python | GymGo/gym_go/envs/go_extrahard_env.py | QPT-Family/QPT-CleverGo | 5ab381de52bf3d515dfad60152eda73d62701116 | [
"MIT"
] | 15 | 2021-11-08T14:30:50.000Z | 2022-03-30T08:04:43.000Z | GymGo/gym_go/envs/go_extrahard_env.py | QPT-Family/QPT-CleverGo | 5ab381de52bf3d515dfad60152eda73d62701116 | [
"MIT"
] | 11 | 2021-07-11T00:21:15.000Z | 2022-01-04T01:39:32.000Z | GymGo/gym_go/envs/go_extrahard_env.py | QPT-Family/QPT-CleverGo | 5ab381de52bf3d515dfad60152eda73d62701116 | [
"MIT"
] | 2 | 2021-11-11T14:41:23.000Z | 2022-02-23T08:04:38.000Z | import gym
class GoExtraHardEnv(gym.Env):
metadata = {'render.modes': ['human', 'terminal']}
| 16.5 | 54 | 0.666667 | 11 | 99 | 6 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 55 | 19.8 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.252525 | 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 |
1d9711cdbc62259cac59a21aed7e8fbe99fb7bae | 565 | py | Python | week2/ex4.py | tomjshine/pynet | 13457e9bbfc9da93610d26bc2eda797360363fd3 | [
"Apache-2.0"
] | null | null | null | week2/ex4.py | tomjshine/pynet | 13457e9bbfc9da93610d26bc2eda797360363fd3 | [
"Apache-2.0"
] | null | null | null | week2/ex4.py | tomjshine/pynet | 13457e9bbfc9da93610d26bc2eda797360363fd3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin env python
from snmp_helper import snmp_get_oid, snmp_extract
IP = '50.76.53.27'
router_1 = (IP, 'galileo', 7961)
router_2 = (IP, 'galileo', 8061)
sysName = '1.3.6.1.2.1.1.5.0'
sysDescr = '1.3.6.1.2.1.1.1.0'
def snmp_output(dev, oid):
snmp_data = snmp_get_oid(dev, oid)
output = snmp_ex... | 19.482759 | 50 | 0.688496 | 99 | 565 | 3.727273 | 0.363636 | 0.135501 | 0.162602 | 0.227642 | 0.314363 | 0.03794 | 0.03794 | 0 | 0 | 0 | 0 | 0.089362 | 0.168142 | 565 | 28 | 51 | 20.178571 | 0.695745 | 0.035398 | 0 | 0 | 0 | 0 | 0.152574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.411765 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d522413882f9ea3d95f95cd35cf8824ea55950f1 | 165 | py | Python | app/__init__.py | ankitgoswami23/BasicStudentInfo | 5449a12ce5490c63d5d0997c0b39e569b2000737 | [
"Unlicense"
] | null | null | null | app/__init__.py | ankitgoswami23/BasicStudentInfo | 5449a12ce5490c63d5d0997c0b39e569b2000737 | [
"Unlicense"
] | null | null | null | app/__init__.py | ankitgoswami23/BasicStudentInfo | 5449a12ce5490c63d5d0997c0b39e569b2000737 | [
"Unlicense"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
from flask import Flask
app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)
from app import views
| 16.5 | 39 | 0.793939 | 24 | 165 | 5.208333 | 0.416667 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 165 | 9 | 40 | 18.333333 | 0.874126 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 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 |
d523fdbaef8a55afa13df9f90c24de0997db3093 | 355 | py | Python | tests/test_individual_import.py | noirqs/PyImports | 1f356ace2035d82a6e15f78b12fdd30520d4e3f7 | [
"BSD-2-Clause"
] | 118 | 2015-02-20T13:59:09.000Z | 2022-01-28T18:43:52.000Z | tests/test_individual_import.py | noirqs/PyImports | 1f356ace2035d82a6e15f78b12fdd30520d4e3f7 | [
"BSD-2-Clause"
] | 2 | 2017-09-19T03:55:14.000Z | 2018-05-03T10:37:17.000Z | tests/test_individual_import.py | noirqs/PyImports | 1f356ace2035d82a6e15f78b12fdd30520d4e3f7 | [
"BSD-2-Clause"
] | 16 | 2016-04-07T14:51:19.000Z | 2022-03-25T05:59:05.000Z |
# one class in each file, import directly from the file
from myimports.boo.ger import Booger
from myimports.boo.kbag import Bookbag
import unittest
class TestBooger(unittest.TestCase):
def test_booger(self, ):
assert 12 == Booger().add(6,2,0,4)
def test_bookbag(self, ):
assert 48 == ... | 22.1875 | 55 | 0.656338 | 53 | 355 | 4.358491 | 0.584906 | 0.112554 | 0.138528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047794 | 0.233803 | 355 | 15 | 56 | 23.666667 | 0.801471 | 0.149296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d56dbb3bbf48b0256e392554e5cceeca341b1908 | 3,703 | py | Python | shopify/orders/objects/customer.py | alikhan126/python-shopify-api | 656cdf1af99485b25be545e2ed527bcb653076fd | [
"Unlicense"
] | 10 | 2016-12-29T06:53:21.000Z | 2022-03-01T10:35:32.000Z | shopify/orders/objects/customer.py | alikhan126/python-shopify-api | 656cdf1af99485b25be545e2ed527bcb653076fd | [
"Unlicense"
] | 4 | 2016-12-30T15:12:47.000Z | 2021-07-24T07:14:20.000Z | shopify/orders/objects/customer.py | alikhan126/python-shopify-api | 656cdf1af99485b25be545e2ed527bcb653076fd | [
"Unlicense"
] | 8 | 2016-12-29T19:13:39.000Z | 2022-03-22T18:02:58.000Z | from ...base import BaseParser, string_to_datetime, string_to_float
from .address import Address
class Customer(BaseParser):
"""
Parser which contains descriptive information about the customer such as name and email.
"""
@property
def email(self):
"""
The customer's email address... | 23.436709 | 96 | 0.561437 | 383 | 3,703 | 5.279373 | 0.255875 | 0.092483 | 0.092483 | 0.10089 | 0.458952 | 0.391691 | 0.364985 | 0.364985 | 0.32641 | 0.266073 | 0 | 0 | 0.334594 | 3,703 | 157 | 97 | 23.585987 | 0.820617 | 0.323521 | 0 | 0.314815 | 0 | 0 | 0.09541 | 0 | 0 | 0 | 0 | 0.050955 | 0 | 1 | 0.314815 | false | 0.037037 | 0.037037 | 0 | 0.685185 | 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 | 0 | 1 | 0 | 0 | 3 |
d57ff16a70b38bb06715e5ad68b20a27ce214656 | 168 | py | Python | mllib/__init__.py | foxlog/mllib | 3131aa7952064e26337757c96bac87bff167dd1a | [
"MIT"
] | null | null | null | mllib/__init__.py | foxlog/mllib | 3131aa7952064e26337757c96bac87bff167dd1a | [
"MIT"
] | null | null | null | mllib/__init__.py | foxlog/mllib | 3131aa7952064e26337757c96bac87bff167dd1a | [
"MIT"
] | null | null | null | __version__ = '0.1.0'
__author__ = 'Alex Wang'
"""
from datautil
"""
from mllib.utils.datautils import *
"""
from plotutil
"""
from mllib.utils.plotutils import *
| 10.5 | 35 | 0.678571 | 21 | 168 | 5.047619 | 0.666667 | 0.169811 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.166667 | 168 | 15 | 36 | 11.2 | 0.735714 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
d586bc608ff2b87167d0432da7bf518842cd019a | 3,973 | py | Python | tests/infrastructure/orm/cache/integration/test_exchange_rate_repositories.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | 8 | 2021-11-09T16:43:38.000Z | 2022-03-25T16:04:26.000Z | tests/infrastructure/orm/cache/integration/test_exchange_rate_repositories.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | null | null | null | tests/infrastructure/orm/cache/integration/test_exchange_rate_repositories.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | 2 | 2021-11-16T21:17:31.000Z | 2022-02-11T11:15:29.000Z | # coding: utf-8
import random
from django.core.cache import cache
from src.domain.exchange_rate import CurrencyEntity, CurrencyExchangeRateEntity
from src.infrastructure.orm.cache.exchange_rate.constants import (
CACHE_AVAILABLE_CURRENCIES_KEY)
from src.infrastructure.orm.cache.exchange_rate.repositories import ... | 45.147727 | 81 | 0.80141 | 440 | 3,973 | 6.940909 | 0.131818 | 0.11002 | 0.072037 | 0.051081 | 0.764244 | 0.760314 | 0.726588 | 0.677145 | 0.677145 | 0.677145 | 0 | 0.002021 | 0.128366 | 3,973 | 87 | 82 | 45.666667 | 0.879873 | 0.003272 | 0 | 0.633803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.394366 | 1 | 0.084507 | false | 0 | 0.084507 | 0 | 0.169014 | 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 |
d599cdb45208e4a81578eb17c8372bf8c3b3d6c9 | 1,294 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GLX/SGIX/swap_barrier.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 3 | 2019-04-01T11:03:04.000Z | 2019-12-31T02:17:15.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GLX/SGIX/swap_barrier.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 1 | 2021-04-15T18:46:45.000Z | 2021-04-15T18:46:45.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GLX/SGIX/swap_barrier.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 1 | 2020-11-04T06:48:34.000Z | 2020-11-04T06:48:34.000Z | '''OpenGL extension SGIX.swap_barrier
This module customises the behaviour of the
OpenGL.raw.GLX.SGIX.swap_barrier to provide a more
Python-friendly API
Overview (from the spec)
This extension provides the capability to sychronize the buffer
swaps of different swap groups.
A swap group is bound to a _swap_ba... | 34.972973 | 72 | 0.795981 | 193 | 1,294 | 5.264249 | 0.466321 | 0.064961 | 0.073819 | 0.047244 | 0.148622 | 0.099409 | 0.072835 | 0.072835 | 0 | 0 | 0 | 0 | 0.156105 | 1,294 | 37 | 73 | 34.972973 | 0.930403 | 0.761978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 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 |
63390ba0c4563cf7c599b46b0313017e6874e028 | 784 | py | Python | 01-data-model/frenchdeck.py | SamuelNLP/example-code-2e | 74162d2fca550b25de6f79da29006e0656c9b926 | [
"MIT"
] | null | null | null | 01-data-model/frenchdeck.py | SamuelNLP/example-code-2e | 74162d2fca550b25de6f79da29006e0656c9b926 | [
"MIT"
] | null | null | null | 01-data-model/frenchdeck.py | SamuelNLP/example-code-2e | 74162d2fca550b25de6f79da29006e0656c9b926 | [
"MIT"
] | null | null | null | import collections
Card = collections.namedtuple("Card", ["rank", "suit"])
class FrenchDeck:
ranks = [str(n) for n in range(2, 11)] + list("JQKA")
suits = "spades diamonds clubs hearts".split()
def __init__(self):
self._cards = [Card(rank, suit) for suit in self.suits for rank in self.ranks]
... | 27.034483 | 86 | 0.645408 | 105 | 784 | 4.533333 | 0.428571 | 0.067227 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011401 | 0.216837 | 784 | 28 | 87 | 28 | 0.763844 | 0 | 0 | 0 | 0 | 0 | 0.098214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 0.611111 | 0.055556 | 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 |
6348a11865c3d23a168e761496a3cef97aa0d01a | 10,185 | py | Python | indico/modules/users/legacy.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | indico/modules/users/legacy.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | indico/modules/users/legacy.py | UNOG-Indico/UNOG-Indico-v2 | 4fa4393cc1f3b453a69f5e0ea3b52c18337831a5 | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from flask_multipass import IdentityInfo
from indico.legacy.common.cache import GenericCache
from indico.... | 30.494012 | 118 | 0.632892 | 1,270 | 10,185 | 4.933858 | 0.211024 | 0.071497 | 0.03527 | 0.020109 | 0.272901 | 0.204756 | 0.166294 | 0.080753 | 0.080753 | 0.080753 | 0 | 0.004168 | 0.26971 | 10,185 | 333 | 119 | 30.585586 | 0.838263 | 0.093667 | 0 | 0.35443 | 0 | 0 | 0.044333 | 0.002717 | 0 | 0 | 0 | 0.003003 | 0 | 1 | 0.223629 | false | 0.004219 | 0.042194 | 0.113924 | 0.565401 | 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 |
6353a485a6e49f5e7f23db0d4373469540166ca7 | 1,295 | py | Python | nagare/server/cli_application.py | nagareproject/server-cli | fdcaa67c5883c6c8dbfa15eba4c500ab1f27761c | [
"BSD-3-Clause"
] | null | null | null | nagare/server/cli_application.py | nagareproject/server-cli | fdcaa67c5883c6c8dbfa15eba4c500ab1f27761c | [
"BSD-3-Clause"
] | null | null | null | nagare/server/cli_application.py | nagareproject/server-cli | fdcaa67c5883c6c8dbfa15eba4c500ab1f27761c | [
"BSD-3-Clause"
] | null | null | null | # --
# Copyright (c) 2008-2021 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
import sys
from nagare.admin import app_serve
from nagare.services import plugin
from nagare.co... | 25.9 | 80 | 0.66332 | 158 | 1,295 | 5.253165 | 0.462025 | 0.036145 | 0.043373 | 0.043373 | 0.06747 | 0.06747 | 0.06747 | 0 | 0 | 0 | 0 | 0.007929 | 0.220849 | 1,295 | 49 | 81 | 26.428571 | 0.814668 | 0.159073 | 0 | 0.148148 | 0 | 0 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.074074 | 0.148148 | 0.037037 | 0.555556 | 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 |
637865a55c7322cd249026f3801643c37a25633d | 922 | py | Python | cranelift-codegen/meta-python/gen_build_deps.py | kleimkuhler/cranelift | c47ca7bafc8fc48358f1baa72360e61fc1f7a0f2 | [
"Apache-2.0"
] | null | null | null | cranelift-codegen/meta-python/gen_build_deps.py | kleimkuhler/cranelift | c47ca7bafc8fc48358f1baa72360e61fc1f7a0f2 | [
"Apache-2.0"
] | null | null | null | cranelift-codegen/meta-python/gen_build_deps.py | kleimkuhler/cranelift | c47ca7bafc8fc48358f1baa72360e61fc1f7a0f2 | [
"Apache-2.0"
] | null | null | null | """
Generate build dependencies for Cargo.
The `build.py` script is invoked by cargo when building cranelift-codegen to
generate Rust code from the instruction descriptions. Cargo needs to know when
it is necessary to rerun the build script.
If the build script outputs lines of the form:
cargo:rerun-if-changed=/... | 27.939394 | 78 | 0.712581 | 131 | 922 | 4.931298 | 0.519084 | 0.049536 | 0.065015 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204989 | 922 | 32 | 79 | 28.8125 | 0.88131 | 0.475054 | 0 | 0 | 1 | 0 | 0.143158 | 0.048421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.357143 | 0 | 0.428571 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
6379d819f6ab5776d85edcd436773fcc5da0744c | 788 | py | Python | web/templatetags/tools.py | Migueltorresp/frgl | f8da4d6ff688862bfef0902e8315160ae1049e0a | [
"Apache-2.0"
] | 1 | 2015-09-18T09:44:25.000Z | 2015-09-18T09:44:25.000Z | web/templatetags/tools.py | SchoolIdolTomodachi/frgl | f8da4d6ff688862bfef0902e8315160ae1049e0a | [
"Apache-2.0"
] | null | null | null | web/templatetags/tools.py | SchoolIdolTomodachi/frgl | f8da4d6ff688862bfef0902e8315160ae1049e0a | [
"Apache-2.0"
] | 1 | 2021-09-06T21:40:47.000Z | 2021-09-06T21:40:47.000Z | from django import template
register = template.Library()
def mod(value, arg):
return value % arg == 0
register.filter('mod', mod)
def split(string, splitter=","):
if string:
return string.split(splitter)
return []
register.filter('split', split)
def addint(string, int):
return string + unico... | 22.514286 | 49 | 0.668782 | 104 | 788 | 5.067308 | 0.365385 | 0.185958 | 0.072106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.182741 | 788 | 34 | 50 | 23.176471 | 0.796584 | 0 | 0 | 0 | 0 | 0 | 0.085025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.037037 | 0.185185 | 0.62963 | 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 |
637de35a2c7a77cb30c540365c58fbdc9cc99484 | 194 | gyp | Python | renewed_shadbot_2/binding.gyp | supahero1/diep.io | ce11e9f51ed434e9d549fde87e5276488e109539 | [
"MIT"
] | 7 | 2020-09-21T14:19:58.000Z | 2021-08-13T02:47:51.000Z | renewed_shadbot_2/binding.gyp | supahero1/diep.io | ce11e9f51ed434e9d549fde87e5276488e109539 | [
"MIT"
] | null | null | null | renewed_shadbot_2/binding.gyp | supahero1/diep.io | ce11e9f51ed434e9d549fde87e5276488e109539 | [
"MIT"
] | 11 | 2020-09-21T17:35:08.000Z | 2021-07-05T20:51:35.000Z | {
"targets": [
{
"target_name": "decompressor",
"sources": ["decompressor.cpp"]
},
{
"target_name": "pow_solver",
"sources": ["pow_solver.cpp"]
}
]
}
| 14.923077 | 37 | 0.479381 | 15 | 194 | 5.933333 | 0.533333 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314433 | 194 | 12 | 38 | 16.166667 | 0.669173 | 0 | 0 | 0 | 0 | 0 | 0.489691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
639ac55ce3cdde845b230eb7eb710cd3e887cc79 | 45 | py | Python | my_test/__init__.py | irux/test-bump | 8e9bea115193fb0a075cb069f5e6663592842acc | [
"MIT"
] | null | null | null | my_test/__init__.py | irux/test-bump | 8e9bea115193fb0a075cb069f5e6663592842acc | [
"MIT"
] | null | null | null | my_test/__init__.py | irux/test-bump | 8e9bea115193fb0a075cb069f5e6663592842acc | [
"MIT"
] | null | null | null | """Testing package"""
__version__ = "1.0.0" | 11.25 | 21 | 0.622222 | 6 | 45 | 4 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.133333 | 45 | 4 | 22 | 11.25 | 0.538462 | 0.333333 | 0 | 0 | 0 | 0 | 0.2 | 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 |
63a1ec977a20a87c8ea0ed6ae152ef6ffd13b233 | 1,133 | py | Python | iterator_generator.py | drewgoodman/Python-Exercises | 4a45976fc78bfa7406b387ecb90032c44c9d7a08 | [
"FSFAP"
] | null | null | null | iterator_generator.py | drewgoodman/Python-Exercises | 4a45976fc78bfa7406b387ecb90032c44c9d7a08 | [
"FSFAP"
] | null | null | null | iterator_generator.py | drewgoodman/Python-Exercises | 4a45976fc78bfa7406b387ecb90032c44c9d7a08 | [
"FSFAP"
] | null | null | null | class InfiniteLineup:
def __init__(self, players):
self.players = players
def lineup(self):
lineup_max = len(self.players)
idx = 0
while True:
if idx < lineup_max:
yield self.players[idx]
else:
idx = 0
... | 21.377358 | 65 | 0.631068 | 132 | 1,133 | 5.181818 | 0.272727 | 0.263158 | 0.307018 | 0.429825 | 0.438596 | 0.438596 | 0.438596 | 0.438596 | 0.438596 | 0.438596 | 0 | 0.003509 | 0.245366 | 1,133 | 52 | 66 | 21.788462 | 0.796491 | 0 | 0 | 0.409091 | 0 | 0 | 0.120918 | 0.027361 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0.045455 | 0.159091 | 0.318182 | 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 |
63bad67c026144f236db26a0d7f986b2d43543b3 | 3,131 | py | Python | test/unit/ggrc_workflows/notification/test_data_handler.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/unit/ggrc_workflows/notification/test_data_handler.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-07-06T00:04:23.000Z | 2021-02-26T21:13:20.000Z | test/unit/ggrc_workflows/notification/test_data_handler.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-11-11T22:16:56.000Z | 2017-11-11T22:16:56.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""A module with tests for the GGRC Workflow's data_handler module."""
import unittest
from mock import MagicMock, patch
from ggrc_workflows import models
from ggrc_workflows.notif... | 31.31 | 78 | 0.696583 | 443 | 3,131 | 4.704289 | 0.216704 | 0.056142 | 0.067179 | 0.036948 | 0.757198 | 0.757198 | 0.727927 | 0.694338 | 0.630998 | 0.630998 | 0 | 0.021969 | 0.185883 | 3,131 | 99 | 79 | 31.626263 | 0.795606 | 0.220696 | 0 | 0.630769 | 0 | 0 | 0.227273 | 0.138866 | 0 | 0 | 0 | 0 | 0.061538 | 1 | 0.061538 | false | 0 | 0.061538 | 0 | 0.153846 | 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 |
63bc37835b5d0e902b607520531dbeb12dc4f029 | 146 | py | Python | readalongs/__init__.py | finguist/ReadAlong-Studio | fb2ad609eec175ff18cf9a53df05d8dad739898a | [
"MIT"
] | 1 | 2021-10-02T09:38:49.000Z | 2021-10-02T09:38:49.000Z | readalongs/__init__.py | finguist/ReadAlong-Studio | fb2ad609eec175ff18cf9a53df05d8dad739898a | [
"MIT"
] | null | null | null | readalongs/__init__.py | finguist/ReadAlong-Studio | fb2ad609eec175ff18cf9a53df05d8dad739898a | [
"MIT"
] | null | null | null | """
Package of code for time-aligned read-alongs.
"""
import os
mapping_dir = os.path.join(os.path.dirname(__file__), 'lang')
VERSION = '0.0.1'
| 16.222222 | 61 | 0.691781 | 24 | 146 | 4 | 0.833333 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0.130137 | 146 | 8 | 62 | 18.25 | 0.732283 | 0.308219 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
89596d5c2afd2f692f7c8dec1782d4ee8b3db78f | 305 | py | Python | app/utils/__init__.py | johnlcd/AppServer | b802b2afe273edeeff7a4341676b7aeb722883a6 | [
"MIT"
] | 90 | 2017-03-01T17:58:13.000Z | 2021-11-07T20:18:44.000Z | app/utils/__init__.py | kakawaa/AppServer | 53a3ec952dda8b0975cce5300a196895679de19f | [
"MIT"
] | 4 | 2017-03-02T06:33:12.000Z | 2020-05-07T07:56:38.000Z | app/utils/__init__.py | kakawaa/AppServer | 53a3ec952dda8b0975cce5300a196895679de19f | [
"MIT"
] | 31 | 2017-03-02T00:54:27.000Z | 2021-02-14T08:35:14.000Z | # -*- coding: utf-8 -*-
# Created by apple on 2017/1/30.
from .package_parse import PackageParse
from .alchemy_json_encoder import AlchemyEncoder
from .json_result import JsonResult
from .regex import Regex
from .ipa_plist import IPAPlist
from .date import Date
from .byte import Byte
from .db import DB
| 25.416667 | 48 | 0.786885 | 47 | 305 | 5 | 0.595745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030651 | 0.144262 | 305 | 11 | 49 | 27.727273 | 0.869732 | 0.170492 | 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 |
89710cf351a38f980a790573cfdf4f86802c681a | 111 | py | Python | scripts/incorrect/no_hostvars.py | yogeshprabhu/Ansible-inventory-file-examples | 4bf6547f02b54c9d5ffedae7efdc407f08174dad | [
"MIT"
] | 25 | 2017-10-17T07:09:11.000Z | 2021-06-18T20:39:18.000Z | scripts/incorrect/no_hostvars.py | yogeshprabhu/Ansible-inventory-file-examples | 4bf6547f02b54c9d5ffedae7efdc407f08174dad | [
"MIT"
] | 1 | 2019-10-25T14:50:33.000Z | 2019-10-25T14:50:40.000Z | scripts/incorrect/no_hostvars.py | yogeshprabhu/Ansible-inventory-file-examples | 4bf6547f02b54c9d5ffedae7efdc407f08174dad | [
"MIT"
] | 20 | 2017-11-03T15:02:38.000Z | 2022-03-08T22:18:48.000Z | #!/usr/bin/env python
import json
inventory = {
'group-1': ['host1', 'host2']
}
print json.dumps(inventory) | 18.5 | 33 | 0.657658 | 15 | 111 | 4.866667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.144144 | 111 | 6 | 34 | 18.5 | 0.736842 | 0.18018 | 0 | 0 | 0 | 0 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
899acc17ac8e909e44aa88dcbb86a92f2ab00c23 | 378 | py | Python | ok-derby-backend/auto_derby/data/__init__.py | Akegarasu/ok-derby | 98d4fc103433d08ae29e0aee111aa6f651e3ec16 | [
"MIT"
] | 52 | 2021-08-13T06:50:27.000Z | 2022-03-31T03:48:40.000Z | ok-derby-backend/auto_derby/data/__init__.py | AnduinF/ok-derby | 98d4fc103433d08ae29e0aee111aa6f651e3ec16 | [
"MIT"
] | 7 | 2021-08-29T17:02:53.000Z | 2022-02-06T11:08:45.000Z | ok-derby-backend/auto_derby/data/__init__.py | AnduinF/ok-derby | 98d4fc103433d08ae29e0aee111aa6f651e3ec16 | [
"MIT"
] | 7 | 2021-08-30T05:37:05.000Z | 2022-03-15T16:45:54.000Z | # -*- coding=UTF-8 -*-
# pyright: strict
from __future__ import annotations
from typing import Text
import os
import sys
__dirname__ = os.path.join(os.path.dirname(sys.executable), "auto_derby", "data") \
if hasattr(sys, "frozen") else os.path.dirname(os.path.abspath(__file__))
def path(*paths: Te... | 22.235294 | 89 | 0.687831 | 52 | 378 | 4.673077 | 0.557692 | 0.123457 | 0.106996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003185 | 0.169312 | 378 | 16 | 90 | 23.625 | 0.770701 | 0.095238 | 0 | 0 | 0 | 0 | 0.058997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
899b479670b336fc000d04d15f026a5ad1138dfb | 2,864 | py | Python | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 36.717949 | 109 | 0.772696 | 209 | 2,864 | 10.325359 | 0.382775 | 0.10658 | 0.138554 | 0.202502 | 0.100093 | 0.100093 | 0.100093 | 0.100093 | 0 | 0 | 0 | 0.009558 | 0.123254 | 2,864 | 77 | 110 | 37.194805 | 0.849861 | 0.157821 | 0 | 0 | 0 | 0 | 0.295757 | 0.19426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
89a148cf4a37382ba53fff26ced0e6eac5bf0878 | 2,865 | py | Python | DSA/data_structures/doubly_linked_list_test.py | pekoto/DFII | bc797e1f4e16803782d6b75e5cc9a88d2d277090 | [
"Unlicense"
] | null | null | null | DSA/data_structures/doubly_linked_list_test.py | pekoto/DFII | bc797e1f4e16803782d6b75e5cc9a88d2d277090 | [
"Unlicense"
] | null | null | null | DSA/data_structures/doubly_linked_list_test.py | pekoto/DFII | bc797e1f4e16803782d6b75e5cc9a88d2d277090 | [
"Unlicense"
] | null | null | null | import unittest
from data_structures.doubly_linked_list import DoublyLinkedList
class DoublyLinkedListTest(unittest.TestCase):
def test_add_to_tail(self):
deque = DoublyLinkedList()
deque.add_to_tail(1)
deque.add_to_tail(2)
deque.add_to_tail(3)
self.assertEqual(3, deque... | 27.548077 | 63 | 0.626876 | 384 | 2,865 | 4.458333 | 0.111979 | 0.271612 | 0.128505 | 0.155374 | 0.766355 | 0.709112 | 0.694509 | 0.523364 | 0.458528 | 0.458528 | 0 | 0.027397 | 0.261082 | 2,865 | 103 | 64 | 27.815534 | 0.781294 | 0.024084 | 0 | 0.554054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.432432 | 1 | 0.081081 | false | 0 | 0.027027 | 0 | 0.121622 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
89b5ba9501331be3358ab1cc6dcbf3444bc9f55e | 1,757 | py | Python | csvs/migrations/0001_initial.py | Taylor-X01/second-hand-car-scrapper | c3acc8b3d86954641ccab0bab8ad6c327ce671f5 | [
"MIT"
] | null | null | null | csvs/migrations/0001_initial.py | Taylor-X01/second-hand-car-scrapper | c3acc8b3d86954641ccab0bab8ad6c327ce671f5 | [
"MIT"
] | null | null | null | csvs/migrations/0001_initial.py | Taylor-X01/second-hand-car-scrapper | c3acc8b3d86954641ccab0bab8ad6c327ce671f5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-06-13 15:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='carPost_moteur',
fields=[
('id', models.BigAu... | 39.044444 | 117 | 0.55037 | 173 | 1,757 | 5.439306 | 0.32948 | 0.172157 | 0.229543 | 0.306057 | 0.730074 | 0.646121 | 0.578108 | 0.578108 | 0.578108 | 0.578108 | 0 | 0.041633 | 0.302789 | 1,757 | 44 | 118 | 39.931818 | 0.726531 | 0.024474 | 0 | 0.648649 | 1 | 0 | 0.068341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.135135 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
89b97c1325af40bcce9f277161ff7cb1cd459c85 | 86 | pyde | Python | IGR204/lab 2/sketch_180513b/sketch_180513b.pyde | zhufangda/Telecom-Paristech | 13772c3b3db59598b68de0ade0170d5986491c42 | [
"Apache-2.0"
] | 5 | 2019-06-20T11:06:18.000Z | 2020-11-28T15:09:34.000Z | IGR204/lab 2/sketch_180513b/sketch_180513b.pyde | zhufangda/Telecom-Paristech | 13772c3b3db59598b68de0ade0170d5986491c42 | [
"Apache-2.0"
] | null | null | null | IGR204/lab 2/sketch_180513b/sketch_180513b.pyde | zhufangda/Telecom-Paristech | 13772c3b3db59598b68de0ade0170d5986491c42 | [
"Apache-2.0"
] | 2 | 2019-05-10T13:24:41.000Z | 2019-05-10T14:15:07.000Z | void setup(){
size(800, 800);
noKoop();
}
void draw(){
background(255)
}
| 9.555556 | 19 | 0.534884 | 10 | 86 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.267442 | 86 | 8 | 20 | 10.75 | 0.587302 | 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 |
98278e38434f4fd3884be47bc15cbf7b953e62b3 | 273 | py | Python | qa_tool/migrations/0003_merge_20200706_1812.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 12 | 2017-08-30T18:21:00.000Z | 2021-12-09T04:04:17.000Z | qa_tool/migrations/0003_merge_20200706_1812.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 424 | 2017-08-08T18:32:14.000Z | 2022-03-30T21:42:51.000Z | qa_tool/migrations/0003_merge_20200706_1812.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 7 | 2017-09-29T21:14:37.000Z | 2019-12-30T21:07:37.000Z | # Generated by Django 3.0.7 on 2020-07-06 18:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('qa_tool', '0002_auto_20200409_1740'),
('qa_tool', '0002_auto_20191230_2252'),
]
operations = [
]
| 18.2 | 47 | 0.648352 | 35 | 273 | 4.828571 | 0.8 | 0.071006 | 0.118343 | 0.16568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22381 | 0.230769 | 273 | 14 | 48 | 19.5 | 0.580952 | 0.164835 | 0 | 0 | 1 | 0 | 0.265487 | 0.20354 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
982ccd4c9b197d295838817812449dea044e1885 | 252 | py | Python | ex038.py | GuiBarreto/Segundo-Mundo-Python-Curso-em-Video | 34a87b8987fd6e4f87301b7120dc25d0a7b35e5b | [
"MIT"
] | null | null | null | ex038.py | GuiBarreto/Segundo-Mundo-Python-Curso-em-Video | 34a87b8987fd6e4f87301b7120dc25d0a7b35e5b | [
"MIT"
] | null | null | null | ex038.py | GuiBarreto/Segundo-Mundo-Python-Curso-em-Video | 34a87b8987fd6e4f87301b7120dc25d0a7b35e5b | [
"MIT"
] | null | null | null | valor1 = float(input('Primeiro número: '))
valor2 = float(input('Segundo número: '))
if valor1 > valor2:
print('O primeiro número é maior!')
elif valor1 < valor2:
print('O segundo valor é maior!')
else:
print('Os dois números são iguais!')
| 28 | 42 | 0.674603 | 35 | 252 | 4.857143 | 0.571429 | 0.117647 | 0.2 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.18254 | 252 | 8 | 43 | 31.5 | 0.796117 | 0 | 0 | 0 | 0 | 0 | 0.436508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
9845073107187af37cd825e9e5523157c922fa96 | 532 | py | Python | AdminConsolePi/py-impl/mainnavigation/UserListScreen.py | emschimmel/BrainPi | 96c0ccb727507bcce4d48292f77bb80a77164a0c | [
"Apache-2.0"
] | 4 | 2017-11-12T12:55:32.000Z | 2020-03-05T06:12:25.000Z | AdminConsolePi/py-impl/mainnavigation/UserListScreen.py | emschimmel/BrainPi | 96c0ccb727507bcce4d48292f77bb80a77164a0c | [
"Apache-2.0"
] | 21 | 2017-11-24T10:18:29.000Z | 2018-01-24T10:09:34.000Z | AdminConsolePi/py-impl/mainnavigation/UserListScreen.py | emschimmel/BrainPi | 96c0ccb727507bcce4d48292f77bb80a77164a0c | [
"Apache-2.0"
] | null | null | null | from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import Screen
from kivy.uix.boxlayout import BoxLayout
from widget.UserListWidget import UserList
Builder.load_file("mainnavigation/template/UserListScreen.kv")
class UserListScreen(Screen):
def on_enter(self, *args):
sel... | 19.703704 | 62 | 0.738722 | 69 | 532 | 5.623188 | 0.434783 | 0.082474 | 0.056701 | 0.07732 | 0.118557 | 0.118557 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169173 | 532 | 26 | 63 | 20.461538 | 0.877828 | 0 | 0 | 0 | 0 | 0 | 0.077358 | 0.077358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.3125 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
985adab0a3879e4fa7b578546f95975573369b4b | 11,259 | py | Python | chimera/config.py | caltech-chimera/PyChimera | 61beeacea703d745b2f385b4f2197ce9c842f650 | [
"MIT"
] | 1 | 2019-03-20T20:58:49.000Z | 2019-03-20T20:58:49.000Z | chimera/config.py | caltech-chimera/PyChimera | 61beeacea703d745b2f385b4f2197ce9c842f650 | [
"MIT"
] | null | null | null | chimera/config.py | caltech-chimera/PyChimera | 61beeacea703d745b2f385b4f2197ce9c842f650 | [
"MIT"
] | 3 | 2020-01-29T04:59:36.000Z | 2020-09-29T22:51:53.000Z |
import os, json
import chimera
class Config:
def __init__(self, fname = "chimera.conf"):
self.conf_fname = os.path.join(chimera.pkg_dir, fname)
def dump(self):
"""
Generate CHIMERA configuration json file.
Parameters
----------
Return... | 43.980469 | 377 | 0.113332 | 507 | 11,259 | 2.500986 | 0.29783 | 0.059148 | 0.047319 | 0.022082 | 0.22082 | 0.105678 | 0.056782 | 0.056782 | 0.037855 | 0.037855 | 0 | 0.253182 | 0.804601 | 11,259 | 256 | 378 | 43.980469 | 0.323182 | 0.021938 | 0 | 0.171717 | 0 | 0 | 0.051088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.010101 | 0 | 0.040404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
987f236a6bb41841b910ff3baf63b270a1aa00d2 | 9,567 | py | Python | tests/testcrc64calculator.py | rlaPHOENiX/pydvdid | 63f36dcfbecc333cfd1f9062f7d2984a43a5a99e | [
"Apache-2.0"
] | 9 | 2016-11-19T18:49:55.000Z | 2022-02-13T09:24:50.000Z | tests/testcrc64calculator.py | rlaPHOENiX/pydvdid | 63f36dcfbecc333cfd1f9062f7d2984a43a5a99e | [
"Apache-2.0"
] | null | null | null | tests/testcrc64calculator.py | rlaPHOENiX/pydvdid | 63f36dcfbecc333cfd1f9062f7d2984a43a5a99e | [
"Apache-2.0"
] | 7 | 2018-02-16T08:09:47.000Z | 2022-01-15T00:32:29.000Z | """Implements tests for the pydvdid.crc64calculator module.
"""
from __future__ import absolute_import
from mock import patch
from nose.tools import (
eq_, istest
)
from pydvdid.crc64calculator import _Crc64Calculator
from pydvdid.crc64result import Crc64Result
@istest
@patch("pydvdid.crc64calculator._Crc64Calc... | 58.693252 | 149 | 0.807881 | 710 | 9,567 | 10.674648 | 0.501408 | 0.026125 | 0.036944 | 0.051722 | 0.261908 | 0.261908 | 0.245415 | 0.226415 | 0.189339 | 0.18736 | 0 | 0.362606 | 0.13348 | 9,567 | 162 | 150 | 59.055556 | 0.551628 | 0.16651 | 0 | 0.133929 | 0 | 0 | 0.034912 | 0.034912 | 0 | 0 | 0.613939 | 0 | 0.044643 | 1 | 0.044643 | false | 0 | 0.044643 | 0 | 0.089286 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98948377803779cec85c9e3ba18369e53a2b0068 | 474 | py | Python | NER/models.py | eoglethorpe/DEEPL | fb6403ceb63197ecd314905f060a2e5f1e790f66 | [
"MIT"
] | 1 | 2020-07-02T15:39:37.000Z | 2020-07-02T15:39:37.000Z | NER/models.py | eoglethorpe/DEEPL | fb6403ceb63197ecd314905f060a2e5f1e790f66 | [
"MIT"
] | 11 | 2017-10-28T10:50:09.000Z | 2021-06-10T20:07:44.000Z | NER/models.py | eoglethorpe/DEEPL | fb6403ceb63197ecd314905f060a2e5f1e790f66 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.postgres.fields import JSONField
from classifier.models import BaseModel
class GoogleLocationCache(BaseModel):
_location = models.CharField(max_length=50, unique=True)
location_info = JSONField()
@property
def location(self):
return self._locat... | 23.7 | 60 | 0.7173 | 55 | 474 | 6.018182 | 0.527273 | 0.108761 | 0.090634 | 0.132931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.198312 | 474 | 19 | 61 | 24.947368 | 0.865789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.142857 | 0.785714 | 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 |
98954e67275a97952f0bd1f5acd65733730957c3 | 933 | py | Python | .venv/lib/python3.8/site-packages/pylev/classic.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | 72 | 2015-01-05T10:10:43.000Z | 2022-03-19T13:57:30.000Z | .venv/lib/python3.8/site-packages/pylev/classic.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | 14 | 2015-01-05T06:54:44.000Z | 2021-07-23T19:05:47.000Z | .venv/lib/python3.8/site-packages/pylev/classic.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | 21 | 2015-01-05T06:35:45.000Z | 2022-03-19T13:57:32.000Z | def classic_levenshtein(string_1, string_2):
"""
Calculates the Levenshtein distance between two strings.
This version is easier to read, but significantly slower than the version
below (up to several orders of magnitude). Useful for learning, less so
otherwise.
Usage::
>>> classic_le... | 25.916667 | 77 | 0.588424 | 122 | 933 | 4.278689 | 0.385246 | 0.241379 | 0.183908 | 0.191571 | 0.254789 | 0.252874 | 0.130268 | 0.130268 | 0 | 0 | 0 | 0.053929 | 0.304394 | 933 | 35 | 78 | 26.657143 | 0.750385 | 0.401929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 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 |
98a01d2ea95b78655f87fab4f0d80079c6dbfa17 | 672 | py | Python | tourney/achievements/win_behavior.py | netromdk/tourney | 192d9dec935ac087969a810870b784e3d626b9d5 | [
"MIT"
] | 1 | 2022-01-11T07:29:49.000Z | 2022-01-11T07:29:49.000Z | tourney/achievements/win_behavior.py | netromdk/tourney | 192d9dec935ac087969a810870b784e3d626b9d5 | [
"MIT"
] | 7 | 2018-10-26T08:10:23.000Z | 2021-08-17T06:13:27.000Z | tourney/achievements/win_behavior.py | netromdk/tourney | 192d9dec935ac087969a810870b784e3d626b9d5 | [
"MIT"
] | 2 | 2018-08-24T13:43:02.000Z | 2019-02-20T09:09:19.000Z | from .behavior import Behavior, WIN_BEHAVIOR
class WinBehavior(Behavior):
def __init__(self, user_id, rounds, winner_score, loser_score, winner_team, loser_team):
super(WinBehavior, self).__init__(WIN_BEHAVIOR, user_id)
self.__rounds = rounds
self.__winner_score = winner_score
self.__loser_score = lo... | 25.846154 | 90 | 0.752976 | 92 | 672 | 4.934783 | 0.195652 | 0.121145 | 0.154185 | 0.0837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171131 | 672 | 25 | 91 | 26.88 | 0.815081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0.263158 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7f29ae559ef9240b6089fc5b1b29efceb85913d0 | 8,769 | py | Python | ttcal/year.py | datakortet/ttcal | 0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af | [
"MIT"
] | null | null | null | ttcal/year.py | datakortet/ttcal | 0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af | [
"MIT"
] | 3 | 2020-03-06T10:36:41.000Z | 2022-01-19T16:21:20.000Z | ttcal/year.py | datakortet/ttcal | 0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Year class.
"""
from builtins import str # pylint:disable=redefined-builtin
import datetime
from .calfns import chop, rangecmp, rangetuple
from .day import Day
from .month import Month
class Year(object): # pylint:disable=too-many-public-methods
"""A single year.
"""
def _... | 23.572581 | 75 | 0.536891 | 1,055 | 8,769 | 4.376303 | 0.210427 | 0.086636 | 0.072775 | 0.051982 | 0.35261 | 0.297163 | 0.232835 | 0.209443 | 0.185185 | 0.185185 | 0 | 0.016331 | 0.343597 | 8,769 | 371 | 76 | 23.636119 | 0.785789 | 0.240962 | 0 | 0.253589 | 0 | 0 | 0.003459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291866 | false | 0.004785 | 0.023923 | 0.100478 | 0.631579 | 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 |
7f48c957da4f5513f73314c643c666810f8d3685 | 3,629 | py | Python | mit-ml/project0/perceptron.py | stepinski/machinelearning | 1f84883a25616da4cd76bb4655267efd3421e561 | [
"MIT"
] | null | null | null | mit-ml/project0/perceptron.py | stepinski/machinelearning | 1f84883a25616da4cd76bb4655267efd3421e561 | [
"MIT"
] | null | null | null | mit-ml/project0/perceptron.py | stepinski/machinelearning | 1f84883a25616da4cd76bb4655267efd3421e561 | [
"MIT"
] | null | null | null | import numpy as np
def percept(x, y, theta):
progress = []
mistakes = 0
iter = 0
# progress.append(theta)
stopit = False
cnt = 0
while(not stopit):
iter = 0
for i in x:
if np.dot(np.transpose(theta), i)*y[iter] <= 0:
theta = theta+y[iter]*i
... | 21.347059 | 79 | 0.430422 | 489 | 3,629 | 3.177914 | 0.114519 | 0.037323 | 0.027027 | 0.040541 | 0.771557 | 0.7574 | 0.743243 | 0.6287 | 0.596525 | 0.596525 | 0 | 0.072809 | 0.386883 | 3,629 | 169 | 80 | 21.473373 | 0.625618 | 0.037751 | 0 | 0.715385 | 0 | 0 | 0.016087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084615 | false | 0 | 0.007692 | 0 | 0.115385 | 0.176923 | 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 |
7f5143a770b93f378ad0b62e5eae6b5527d21dd6 | 120 | py | Python | tests/app/urls.py | seik/django-belt | 0a214a04332184bc1736fe344b0bf54d1590f9c4 | [
"MIT"
] | null | null | null | tests/app/urls.py | seik/django-belt | 0a214a04332184bc1736fe344b0bf54d1590f9c4 | [
"MIT"
] | null | null | null | tests/app/urls.py | seik/django-belt | 0a214a04332184bc1736fe344b0bf54d1590f9c4 | [
"MIT"
] | null | null | null | from django.urls import path, include
urlpatterns = [path("api/v1/", include("tests.app.router", namespace="api_v1"))]
| 30 | 80 | 0.725 | 17 | 120 | 5.058824 | 0.764706 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.091667 | 120 | 3 | 81 | 40 | 0.770642 | 0 | 0 | 0 | 0 | 0 | 0.241667 | 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 |
7f607ccd9a992cd7ab87730c130a1cc5bd55c4b1 | 223 | py | Python | scripts/setup.py | medecau/lamson | e78520b857384462b9eecdedfc0f8c2e57cdd00a | [
"BSD-3-Clause"
] | 2 | 2016-01-10T13:04:56.000Z | 2016-08-10T08:04:37.000Z | scripts/setup.py | medecau/lamson | e78520b857384462b9eecdedfc0f8c2e57cdd00a | [
"BSD-3-Clause"
] | 1 | 2017-10-28T11:16:07.000Z | 2017-10-28T11:16:07.000Z | scripts/setup.py | medecau/lamson | e78520b857384462b9eecdedfc0f8c2e57cdd00a | [
"BSD-3-Clause"
] | null | null | null | ## this file is generated from settings in build.vel
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# from options["setup"] in build.vel
config = %(setup)s
setup(**config)
| 18.583333 | 52 | 0.730942 | 32 | 223 | 5.09375 | 0.625 | 0.08589 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179372 | 223 | 11 | 53 | 20.272727 | 0.89071 | 0.376682 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7f7d92f5701e1328255503e79db34ff1d8edf472 | 101 | py | Python | music_site/userPlaylists/apps.py | UVG-Teams/music-space | 8f464b6b1cbe59afea3be3ab1b9ed4e25ab0b424 | [
"MIT"
] | null | null | null | music_site/userPlaylists/apps.py | UVG-Teams/music-space | 8f464b6b1cbe59afea3be3ab1b9ed4e25ab0b424 | [
"MIT"
] | null | null | null | music_site/userPlaylists/apps.py | UVG-Teams/music-space | 8f464b6b1cbe59afea3be3ab1b9ed4e25ab0b424 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class UserplaylistsConfig(AppConfig):
name = 'userPlaylists'
| 16.833333 | 37 | 0.782178 | 10 | 101 | 7.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 5 | 38 | 20.2 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 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 |
7f81d475c4b81c2c083db4c133473af2199f9d4e | 341 | py | Python | test_timewriter/__init__.py | sugar-activities/4191-activity | c28faca507a868edef26248737e7d7e829aa223d | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | test_timewriter/__init__.py | sugar-activities/4191-activity | c28faca507a868edef26248737e7d7e829aa223d | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | test_timewriter/__init__.py | sugar-activities/4191-activity | c28faca507a868edef26248737e7d7e829aa223d | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Code released in the Public Domain. You can do whatever you want with this package.
# Look at NOTES file to see how to adapt this program.
# Originally written by Pierre Métras <pierre@alterna.tv> for the OLPC XO laptop.
"""Module to test set of rules for writing time in full letters, in va... | 37.888889 | 86 | 0.730205 | 57 | 341 | 4.368421 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.184751 | 341 | 8 | 87 | 42.625 | 0.892086 | 0.947214 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7fa7a984d86915ac0dd0d340bb3effc96d1f73c0 | 544 | py | Python | BlackBox_Python/.ipynb_checkpoints/ci-checkpoint.py | UBC-MDS/BlackBox_Python | 5eb7effa09d21b5fe0ca8a2bb18a456d1e6edcc8 | [
"MIT"
] | null | null | null | BlackBox_Python/.ipynb_checkpoints/ci-checkpoint.py | UBC-MDS/BlackBox_Python | 5eb7effa09d21b5fe0ca8a2bb18a456d1e6edcc8 | [
"MIT"
] | 1 | 2018-03-04T10:46:34.000Z | 2018-03-04T10:46:34.000Z | BlackBox_Python/.ipynb_checkpoints/ci-checkpoint.py | UBC-MDS/BlackBox_Python | 5eb7effa09d21b5fe0ca8a2bb18a456d1e6edcc8 | [
"MIT"
] | 4 | 2018-02-11T05:49:07.000Z | 2018-03-17T02:39:29.000Z | def getConfidenceInterval(df):
"""
Compute 95% confidence interval (frequentist approach)
Args:
dataframe: first column is name(string), second column is score(numeric)
Return:
dataframe(three columns:name,lower_bound,upper_bound)
"""
pass
def getCredibleInterval(df):
"""
com... | 20.923077 | 76 | 0.689338 | 62 | 544 | 5.983871 | 0.467742 | 0.086253 | 0.059299 | 0.140162 | 0.673854 | 0.673854 | 0.673854 | 0.673854 | 0.673854 | 0.673854 | 0 | 0.009412 | 0.21875 | 544 | 25 | 77 | 21.76 | 0.863529 | 0.716912 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7fb859b055c3ec390ce173f494570f7e64172227 | 462 | py | Python | presqt/api_v1/utilities/fixity/hash_generator.py | djordjetrajkovic/presqt | 8424b61b1c5b8d29de74c7a333889d9e9eb7aee8 | [
"Apache-2.0"
] | 3 | 2019-01-29T19:45:25.000Z | 2020-12-01T18:24:51.000Z | presqt/api_v1/utilities/fixity/hash_generator.py | djordjetrajkovic/presqt | 8424b61b1c5b8d29de74c7a333889d9e9eb7aee8 | [
"Apache-2.0"
] | 419 | 2018-09-13T23:11:15.000Z | 2021-09-22T17:49:00.000Z | presqt/api_v1/utilities/fixity/hash_generator.py | djordjetrajkovic/presqt | 8424b61b1c5b8d29de74c7a333889d9e9eb7aee8 | [
"Apache-2.0"
] | 2 | 2020-04-10T08:19:41.000Z | 2021-01-04T15:29:42.000Z | import hashlib
def hash_generator(file, hash_algorithm):
"""
Generate a hash for a file based on a given hash algorithm
Parameters
----------
file : bytes
File to be ran through the hash algorithm
hash_algorithm : str
Hash algorithm to use
Returns
-------
String o... | 22 | 66 | 0.634199 | 61 | 462 | 4.737705 | 0.52459 | 0.314879 | 0.124567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279221 | 462 | 21 | 67 | 22 | 0.867868 | 0.577922 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7fbb3b7447f91281591ac9240b966fb8131b1114 | 69 | py | Python | tftk/train/__init__.py | kitfactory/tftk | 5cae0a96b99eecb6f64922068c162f973eebba71 | [
"MIT"
] | 6 | 2020-03-09T00:18:08.000Z | 2021-11-08T09:27:19.000Z | tftk/train/__init__.py | kitfactory/tftk | 5cae0a96b99eecb6f64922068c162f973eebba71 | [
"MIT"
] | 2 | 2022-02-10T07:34:22.000Z | 2022-03-12T01:10:05.000Z | tftk/train/__init__.py | kitfactory/tftk | 5cae0a96b99eecb6f64922068c162f973eebba71 | [
"MIT"
] | null | null | null | from . train import TrainingExecutor
__all__ = ['TrainingExecutor']
| 17.25 | 36 | 0.782609 | 6 | 69 | 8.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 69 | 3 | 37 | 23 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.231884 | 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 |
f68727e246f94181304f2413d0c53b79a00f7633 | 419 | py | Python | tests/pipert/core/utils/component/dummy_component.py | ItamarWilf/PipeRT | 0511245cf7c3aef6d047ea91cc32fdbea2d5dfc0 | [
"MIT"
] | 10 | 2020-01-20T16:00:55.000Z | 2020-05-13T12:48:40.000Z | tests/pipert/core/utils/component/dummy_component.py | ItamarWilf/PipeRT | 0511245cf7c3aef6d047ea91cc32fdbea2d5dfc0 | [
"MIT"
] | 97 | 2020-01-11T22:05:50.000Z | 2020-06-25T13:43:13.000Z | tests/pipert/core/utils/component/dummy_component.py | ItamarWilf/PipeRT | 0511245cf7c3aef6d047ea91cc32fdbea2d5dfc0 | [
"MIT"
] | 8 | 2020-01-14T20:54:19.000Z | 2020-04-07T22:59:17.000Z | from pipert.core.component import BaseComponent
import logging
class DummyComponent(BaseComponent):
def __init__(self, component_config, start_component=False):
super().__init__(component_config, start_component=start_component)
self._setup_logger()
def _setup_logger(self):
self.logg... | 24.647059 | 75 | 0.71599 | 49 | 419 | 5.755102 | 0.55102 | 0.148936 | 0.141844 | 0.205674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193317 | 419 | 16 | 76 | 26.1875 | 0.83432 | 0 | 0 | 0 | 0 | 0 | 0.031026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f6a4727bd14707271cdc6327dcf7264760d686f3 | 241 | py | Python | miqa/core/models/__init__.py | girder/miqa | 756675481c6a11c02134acbde405bfafc9d06b87 | [
"Apache-2.0"
] | 1 | 2021-05-26T18:49:52.000Z | 2021-05-26T18:49:52.000Z | miqa/core/models/__init__.py | girder/miqa | 756675481c6a11c02134acbde405bfafc9d06b87 | [
"Apache-2.0"
] | 8 | 2021-04-29T17:25:28.000Z | 2021-05-27T15:09:20.000Z | miqa/core/models/__init__.py | girder/miqa | 756675481c6a11c02134acbde405bfafc9d06b87 | [
"Apache-2.0"
] | null | null | null | from .experiment import Experiment
from .image import Image
from .scan import Scan
from .scan_note import ScanNote
from .session import Session
from .site import Site
__all__ = ['Experiment', 'Image', 'Scan', 'ScanNote', 'Session', 'Site']
| 26.777778 | 72 | 0.755187 | 32 | 241 | 5.53125 | 0.3125 | 0.090395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136929 | 241 | 8 | 73 | 30.125 | 0.850962 | 0 | 0 | 0 | 0 | 0 | 0.157676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f6af4bfe25faba450d1fe896764cc6815c7c02ad | 64 | py | Python | cdj/__init__.py | Ma233/cdj | f256d231015eee765bad5d6d696f24835de90254 | [
"MIT"
] | null | null | null | cdj/__init__.py | Ma233/cdj | f256d231015eee765bad5d6d696f24835de90254 | [
"MIT"
] | null | null | null | cdj/__init__.py | Ma233/cdj | f256d231015eee765bad5d6d696f24835de90254 | [
"MIT"
] | null | null | null | from caller import call
__version__ = '0.0.1'
__all__ = [call]
| 12.8 | 23 | 0.703125 | 10 | 64 | 3.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.171875 | 64 | 4 | 24 | 16 | 0.641509 | 0 | 0 | 0 | 0 | 0 | 0.078125 | 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 |
f6b852c4b6eb3355443cf48d9105ff3c1eb3ab12 | 1,714 | py | Python | authenticate/permissions.py | ockibagusp/cloud-platform | a9fd369c51d8e2aa1b2fd51d11f2cb16b018bf66 | [
"MIT"
] | 1 | 2019-09-29T06:24:19.000Z | 2019-09-29T06:24:19.000Z | authenticate/permissions.py | ockibagusp/cloud-platform | a9fd369c51d8e2aa1b2fd51d11f2cb16b018bf66 | [
"MIT"
] | 1 | 2020-11-23T10:03:46.000Z | 2020-11-23T10:03:46.000Z | authenticate/permissions.py | OckiFals/cloud-platform | c62eba7fcc08b06485b845089e79b3ce236ec1ec | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission
from django.contrib.auth.models import AnonymousUser
from supernodes.models import Supernodes
from users.models import User
class AllowAny(BasePermission):
"""
Allow any access.
This isn't strictly required, since you could use an empty
permission_... | 25.969697 | 93 | 0.696033 | 208 | 1,714 | 5.629808 | 0.336538 | 0.111016 | 0.081981 | 0.102477 | 0.542272 | 0.470538 | 0.40649 | 0.252775 | 0.252775 | 0.252775 | 0 | 0.00149 | 0.217036 | 1,714 | 65 | 94 | 26.369231 | 0.871088 | 0.219953 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.115385 | 0.846154 | 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 |
f6ee07db361ebd0621cd73fb9d0b2901d4ac426c | 6,208 | py | Python | config_sampler.py | sriyash421/CrowdNav_DSRNN | 968f54f1f37ae65ee0a13a5a8e96eda1af1916ab | [
"MIT"
] | null | null | null | config_sampler.py | sriyash421/CrowdNav_DSRNN | 968f54f1f37ae65ee0a13a5a8e96eda1af1916ab | [
"MIT"
] | null | null | null | config_sampler.py | sriyash421/CrowdNav_DSRNN | 968f54f1f37ae65ee0a13a5a8e96eda1af1916ab | [
"MIT"
] | null | null | null | import numpy as np
from crowd_nav.configs.config import Config, BaseConfig
class SimpleConfigSampler():
def __init__(self):
self.random = np.random.RandomState()
def sample(self, seed):
self.random = np.random.RandomState(seed=seed)
config = Config()
config.humans.pol... | 38.559006 | 91 | 0.609214 | 845 | 6,208 | 4.397633 | 0.139645 | 0.129171 | 0.178418 | 0.101722 | 0.781755 | 0.728471 | 0.71394 | 0.653391 | 0.653391 | 0.610065 | 0 | 0.025344 | 0.262726 | 6,208 | 161 | 92 | 38.559006 | 0.786541 | 0.086179 | 0 | 0.672566 | 0 | 0 | 0.021224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061947 | false | 0 | 0.017699 | 0 | 0.141593 | 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 |
f6f46b6a82c94e5d3237928eb39dbc21748eea2e | 529 | py | Python | source/ex4.py | aurelo/lphw | 8e1ecddc52a7c91fd0f53d4174c1079c63a10a81 | [
"MIT"
] | null | null | null | source/ex4.py | aurelo/lphw | 8e1ecddc52a7c91fd0f53d4174c1079c63a10a81 | [
"MIT"
] | null | null | null | source/ex4.py | aurelo/lphw | 8e1ecddc52a7c91fd0f53d4174c1079c63a10a81 | [
"MIT"
] | null | null | null | cars = 100
space_in_cars = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_cars
average_passenger_per_car = passengers / cars_driven
print "There are", cars, "available"
print "There are only", drivers, "available"
print "There will be",... | 33.0625 | 64 | 0.771267 | 81 | 529 | 4.802469 | 0.444444 | 0.077121 | 0.092545 | 0.113111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0.137996 | 529 | 15 | 65 | 35.266667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.275992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.285714 | 0 | null | null | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
f6fbe82f0da524e7fa4c51508eb409118063d589 | 789 | py | Python | sunpy/visualization/animator/__init__.py | Octaves0911/sunpy | d3dff03fe6cc404e40f22da90200ffbb3d38c1a7 | [
"BSD-2-Clause"
] | 2 | 2020-02-05T18:39:12.000Z | 2021-03-22T19:56:38.000Z | sunpy/visualization/animator/__init__.py | Octaves0911/sunpy | d3dff03fe6cc404e40f22da90200ffbb3d38c1a7 | [
"BSD-2-Clause"
] | 10 | 2017-08-10T07:55:42.000Z | 2020-04-19T10:56:43.000Z | sunpy/visualization/animator/__init__.py | Octaves0911/sunpy | d3dff03fe6cc404e40f22da90200ffbb3d38c1a7 | [
"BSD-2-Clause"
] | 1 | 2019-02-06T11:57:56.000Z | 2019-02-06T11:57:56.000Z | import mpl_animators as _animators
from sunpy.util.decorators import deprecated
from sunpy.visualization.animator.mapsequenceanimator import MapSequenceAnimator
__all__ = ['LineAnimator', 'ImageAnimator', 'ArrayAnimatorWCS',
'ArrayAnimator', 'BaseFuncAnimator', 'MapSequenceAnimator']
deprecated_animator =... | 22.542857 | 84 | 0.807351 | 71 | 789 | 8.732394 | 0.366197 | 0.174194 | 0.185484 | 0.174194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002865 | 0.115336 | 789 | 34 | 85 | 23.205882 | 0.885387 | 0 | 0 | 0.47619 | 0 | 0 | 0.153359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.238095 | 0.142857 | 0 | 0.380952 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
122767b39b0f2f15e52e062082e656a162d955f0 | 1,061 | py | Python | index.py | soup591/Tony_Website | afa9e685d1ff87e88092ba4f684217bedecc4de0 | [
"MIT"
] | null | null | null | index.py | soup591/Tony_Website | afa9e685d1ff87e88092ba4f684217bedecc4de0 | [
"MIT"
] | null | null | null | index.py | soup591/Tony_Website | afa9e685d1ff87e88092ba4f684217bedecc4de0 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, url_for, flash, redirect
"""
Set variable "app" to an instance of the Flask class.
__name__ is a special variable in Python that just means
the name of the module. It can be equal to "__main__".
Basically, this is so Python knows where to look for your
templates, static files... | 25.878049 | 77 | 0.713478 | 154 | 1,061 | 4.74026 | 0.5 | 0.115068 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148916 | 1,061 | 40 | 78 | 26.525 | 0.808416 | 0 | 0 | 0 | 0 | 0 | 0.20912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.25 | 0.55 | 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 |
123b81f8695503fafd295a9f8e5d9f9b7c9ca149 | 6,130 | py | Python | exam_template-workPC.py | s183920/introML_02450_exam | 4b3b5c8e9a6f039aeb658615ed8e0be70456b23a | [
"MIT"
] | 1 | 2021-12-08T12:29:29.000Z | 2021-12-08T12:29:29.000Z | exam_template-workPC.py | s183920/introML_02450_exam | 4b3b5c8e9a6f039aeb658615ed8e0be70456b23a | [
"MIT"
] | null | null | null | exam_template-workPC.py | s183920/introML_02450_exam | 4b3b5c8e9a6f039aeb658615ed8e0be70456b23a | [
"MIT"
] | 2 | 2020-11-21T15:28:32.000Z | 2021-12-08T13:40:17.000Z | import toolbox_extended as te
import toolbox_02450 as tb
import numpy as np
import pandas as pd
from exam_toolbox import *
import re
import os
class exam:
# ----------------------------------------------- OPG 1-----------------------------------------------
def opg1():
return "E"
# ------------... | 31.116751 | 107 | 0.26199 | 443 | 6,130 | 3.591422 | 0.286682 | 0.113136 | 0.163419 | 0.017599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051198 | 0.203426 | 6,130 | 196 | 108 | 31.27551 | 0.274626 | 0.468516 | 0 | 0.257143 | 0 | 0 | 0.083643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.247619 | 0.609524 | 0.019048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
12440082f606152f91d7c26a8109e246252e79db | 184 | py | Python | pinax/projects/private_beta_project/__init__.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | 1 | 2016-05-09T15:23:14.000Z | 2016-05-09T15:23:14.000Z | pinax/projects/private_beta_project/__init__.py | ericholscher/pinax | 6ba4585671c6a3d9ac154441296f8a403453469f | [
"MIT"
] | null | null | null | pinax/projects/private_beta_project/__init__.py | ericholscher/pinax | 6ba4585671c6a3d9ac154441296f8a403453469f | [
"MIT"
] | 1 | 2019-02-12T04:45:40.000Z | 2019-02-12T04:45:40.000Z | # -*- coding: utf-8 -*-
__about__ = """
This project demonstrates the use of a waiting list and signup codes for
sites in private beta. Otherwise it is the same as basic_project.
"""
| 26.285714 | 72 | 0.717391 | 29 | 184 | 4.37931 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.184783 | 184 | 6 | 73 | 30.666667 | 0.84 | 0.11413 | 0 | 0 | 0 | 0 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
89c23dab2caa44668747a61457995617e8816178 | 2,092 | py | Python | rigify_constrain_meta_to_generated.py | WindyDarian/blender_scripts | 35f7302060f7e8e4862e774d1c5ba1810af42ff5 | [
"MIT"
] | null | null | null | rigify_constrain_meta_to_generated.py | WindyDarian/blender_scripts | 35f7302060f7e8e4862e774d1c5ba1810af42ff5 | [
"MIT"
] | null | null | null | rigify_constrain_meta_to_generated.py | WindyDarian/blender_scripts | 35f7302060f7e8e4862e774d1c5ba1810af42ff5 | [
"MIT"
] | null | null | null | # Copyright 2017-2019 Windy Darian. MIT License.
# Created on March 19, 2017
'''
A script to add constraints to meta rig to keep it in sync with the rig generated by
Rigify. So we can use the simpler meta rig to game engines to keep the bone hierachy simple.
Assuming the meta rig is named 'armature' and generated rig ... | 41.019608 | 100 | 0.686424 | 289 | 2,092 | 4.761246 | 0.349481 | 0.05814 | 0.065407 | 0.037064 | 0.337209 | 0.274709 | 0.274709 | 0.274709 | 0.22093 | 0.22093 | 0 | 0.020258 | 0.221319 | 2,092 | 50 | 101 | 41.84 | 0.824432 | 0.206501 | 0 | 0.08 | 1 | 0 | 0.124288 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.04 | false | 0.08 | 0.04 | 0 | 0.08 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d60e720b4c37dfd504fd3e95c88c8952a58a1ecd | 305 | py | Python | tamcolors/examples/host_loopback.py | cmcmarrow/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 29 | 2020-07-17T23:46:17.000Z | 2022-02-06T05:36:44.000Z | tamcolors/examples/host_loopback.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 42 | 2020-07-25T19:39:52.000Z | 2021-02-24T01:19:58.000Z | tamcolors/examples/host_loopback.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 8 | 2020-07-18T23:02:48.000Z | 2020-12-30T04:07:35.000Z | from tamcolors.examples import tabletennis
from tamcolors import tam
from tamcolors.utils import tcp
from tamcolors.tam_io import tcp_io
def run():
with tcp.TCPReceiver() as r:
io = tcp_io.get_tcp_io(r)
tam.tam_loop.TAMLoop(tabletennis.TableTennis(), io=io).run()
io.close()
| 25.416667 | 68 | 0.714754 | 46 | 305 | 4.608696 | 0.413043 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190164 | 305 | 11 | 69 | 27.727273 | 0.8583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d62dd3ff0343ce0bda6a15d88ee091fb7a2380dd | 3,487 | py | Python | src/charma/movies/stats/api.py | mononobi/charma-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 1 | 2020-01-16T23:36:10.000Z | 2020-01-16T23:36:10.000Z | src/charma/movies/stats/api.py | mononobi/imovie-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 24 | 2020-06-08T18:27:04.000Z | 2021-06-06T12:01:39.000Z | src/charma/movies/stats/api.py | mononobi/charma-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 1 | 2020-12-20T05:29:04.000Z | 2020-12-20T05:29:04.000Z | # -*- coding: utf-8 -*-
"""
movies stats api module.
"""
from pyrin.api.router.decorators import api
import charma.movies.stats.services as movies_stat_services
@api('/movies/stats/average-rate', authenticated=False)
def get_average_rate(**options):
"""
gets average imdb rate of all movies.
:rtype: flo... | 22.940789 | 66 | 0.673932 | 422 | 3,487 | 5.35782 | 0.120853 | 0.068111 | 0.103494 | 0.127377 | 0.446705 | 0.287483 | 0.275984 | 0.245909 | 0.190624 | 0.171605 | 0 | 0.000367 | 0.218526 | 3,487 | 151 | 67 | 23.092715 | 0.829358 | 0.375681 | 0 | 0 | 0 | 0 | 0.140749 | 0.102794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | true | 0 | 0.052632 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d63b6e028001278beaa3472cdbf2397c2b42a734 | 40 | py | Python | machine_translation_vision/utils/__init__.py | Eurus-Holmes/VAG-NMT | 38095c4a5477a0e7e2fa1592e8401aa9cddf2beb | [
"Apache-2.0"
] | 12 | 2019-12-28T12:55:27.000Z | 2022-02-10T00:19:53.000Z | machine_translation_vision/utils/__init__.py | Eurus-Holmes/VAG-NMT | 38095c4a5477a0e7e2fa1592e8401aa9cddf2beb | [
"Apache-2.0"
] | 1 | 2020-01-07T12:13:03.000Z | 2020-01-30T10:45:00.000Z | machine_translation_vision/utils/__init__.py | wonderseen/OVC-MMT | b982038ea1295cc038b8dcbca11aa81d318f7a49 | [
"MIT"
] | 3 | 2020-05-07T19:13:41.000Z | 2021-02-19T11:26:00.000Z | __all__ = ['utils','im_retrieval_eval']
| 20 | 39 | 0.725 | 5 | 40 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 40 | 1 | 40 | 40 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0.55 | 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 |
c392d4812d049eec2153145db5b1406080678f0f | 121 | py | Python | day_2/sum_squares_for.py | anishLearnsToCode/ml-workshop-wac-3 | 062568c9229d9da61c83b0ae343e7834d8e81916 | [
"MIT"
] | 2 | 2021-02-02T16:42:58.000Z | 2021-11-28T15:42:53.000Z | day_2/sum_squares_for.py | anishLearnsToCode/ml-workshop-wac-3 | 062568c9229d9da61c83b0ae343e7834d8e81916 | [
"MIT"
] | null | null | null | day_2/sum_squares_for.py | anishLearnsToCode/ml-workshop-wac-3 | 062568c9229d9da61c83b0ae343e7834d8e81916 | [
"MIT"
] | null | null | null | """
N
1^2 + 2^2 + 3^2 + ... + N^2
"""
N = int(input())
sum = 0
for i in range(1, N + 1):
sum += i ** 2
print(sum)
| 9.307692 | 27 | 0.404959 | 26 | 121 | 1.884615 | 0.5 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 0.31405 | 121 | 12 | 28 | 10.083333 | 0.457831 | 0.239669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c393db5fc9bb17fce87d8a58500443cc9e2e126c | 851 | py | Python | torchclas/models/builder.py | hua1024/OpenClas | 446b3f6f8cf5cc390c86d6e2674e525aeaa3a552 | [
"Apache-2.0"
] | null | null | null | torchclas/models/builder.py | hua1024/OpenClas | 446b3f6f8cf5cc390c86d6e2674e525aeaa3a552 | [
"Apache-2.0"
] | 1 | 2021-05-23T13:47:51.000Z | 2021-05-24T11:39:32.000Z | torchclas/models/builder.py | hua1024/OpenClas | 446b3f6f8cf5cc390c86d6e2674e525aeaa3a552 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# @Time : 2020/11/9 15:27
# @Auto : zzf-jeff
import torch.nn as nn
from torchclas.utils.registry import Registry, build_from_cfg
BACKBONES = Registry('backbone')
LOSSES = Registry('loss')
OPTIMIZERS = Registry('optimizer')
LR_SCHEDULERS = Registry('lr_scheduler')
def build(cfg, reg... | 23.638889 | 73 | 0.66745 | 110 | 851 | 4.990909 | 0.4 | 0.07286 | 0.102004 | 0.123862 | 0.123862 | 0.123862 | 0.123862 | 0 | 0 | 0 | 0 | 0.018321 | 0.230317 | 851 | 36 | 74 | 23.638889 | 0.819847 | 0.06933 | 0 | 0 | 0 | 0 | 0.043767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.181818 | 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 |
c39591341b6ff4b2c6f5743917cd3ce9905b83a1 | 407 | py | Python | helpers.py | todun/fileparser_problem | 27ebec8a40b7f5f5a7987a4b2b7c55bb2676c423 | [
"MIT"
] | null | null | null | helpers.py | todun/fileparser_problem | 27ebec8a40b7f5f5a7987a4b2b7c55bb2676c423 | [
"MIT"
] | null | null | null | helpers.py | todun/fileparser_problem | 27ebec8a40b7f5f5a7987a4b2b7c55bb2676c423 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Used to simulate an enum with unique values
class Enumeration(set):
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
def __setattr__(self, name, value):
raise RuntimeError("Cannot override values"... | 25.4375 | 52 | 0.648649 | 49 | 407 | 5.142857 | 0.693878 | 0.095238 | 0.18254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.253071 | 407 | 15 | 53 | 27.133333 | 0.825658 | 0.211302 | 0 | 0 | 0 | 0 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.555556 | 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 |
c39cd9a7d6e50005f9207855650d93e14b8544d6 | 234 | py | Python | app_test/views.py | Zitronen25U/django_template | a8d56f48ed4bf8f41b5e40f5ec25be619dc8e191 | [
"MIT"
] | null | null | null | app_test/views.py | Zitronen25U/django_template | a8d56f48ed4bf8f41b5e40f5ec25be619dc8e191 | [
"MIT"
] | null | null | null | app_test/views.py | Zitronen25U/django_template | a8d56f48ed4bf8f41b5e40f5ec25be619dc8e191 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import ListView
from .models import Default
# Create your views here.
class DefaultListView(ListView):
model = Default
template_name = "default/default_list.html" | 26 | 47 | 0.790598 | 30 | 234 | 6.1 | 0.666667 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145299 | 234 | 9 | 47 | 26 | 0.915 | 0.098291 | 0 | 0 | 0 | 0 | 0.119048 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c3bcac5039811682ea106b398e7d7d374a6ee2b5 | 193 | py | Python | ecs/core/urls/catalog.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 9 | 2017-02-13T18:17:13.000Z | 2020-11-21T20:15:54.000Z | ecs/core/urls/catalog.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 2 | 2021-05-20T14:26:47.000Z | 2021-05-20T14:26:48.000Z | ecs/core/urls/catalog.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 4 | 2017-04-02T18:48:59.000Z | 2021-11-23T15:40:35.000Z | from django.conf.urls import url
from ecs.core.views import submissions as views
urlpatterns = (
url(r'^(?:(?P<year>\d+)/)?$', views.catalog),
url(r'^json/$', views.catalog_json),
)
| 19.3 | 49 | 0.647668 | 28 | 193 | 4.428571 | 0.642857 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150259 | 193 | 9 | 50 | 21.444444 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0.145078 | 0.108808 | 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 |
c3bd03569543eebd2be93c8dcef6eb7dd25fc3d0 | 947 | py | Python | 2_3_2_perceptron.py | karaage0703/zero-deeplearning | 8b6e4550d14819c2b4f3114405af15e78c700a33 | [
"MIT"
] | null | null | null | 2_3_2_perceptron.py | karaage0703/zero-deeplearning | 8b6e4550d14819c2b4f3114405af15e78c700a33 | [
"MIT"
] | null | null | null | 2_3_2_perceptron.py | karaage0703/zero-deeplearning | 8b6e4550d14819c2b4f3114405af15e78c700a33 | [
"MIT"
] | null | null | null | import numpy as np
def AND(x1, x2):
x = np.array([x1,x2])
w = np.array([0.5,0.5])
b = -0.7
tmp = np.sum(w*x) + b
if tmp <=0:
return 0
else:
return 1
def NAND(x1, x2):
x = np.array([x1,x2])
w = np.array([-0.5,-0.5])
b = 0.7
tmp = np.sum(w*x) + b
if tmp <=0:
... | 15.52459 | 29 | 0.49736 | 199 | 947 | 2.366834 | 0.125628 | 0.152866 | 0.089172 | 0.044586 | 0.940552 | 0.917197 | 0.615711 | 0.430998 | 0.430998 | 0.430998 | 0 | 0.121678 | 0.244984 | 947 | 60 | 30 | 15.783333 | 0.537063 | 0 | 0 | 0.384615 | 0 | 0 | 0.10148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.019231 | 0 | 0.192308 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7f0077c58b5df641e64b6d11d9090efc2bde633b | 345 | py | Python | deploy/dag/vertex.py | bigdatalab/movingdata | 9e51a54b9c601fa8fd55a571d28beb66fcca9def | [
"MIT"
] | 1 | 2017-01-19T22:54:22.000Z | 2017-01-19T22:54:22.000Z | deploy/dag/vertex.py | bigdatalab/movingdata | 9e51a54b9c601fa8fd55a571d28beb66fcca9def | [
"MIT"
] | null | null | null | deploy/dag/vertex.py | bigdatalab/movingdata | 9e51a54b9c601fa8fd55a571d28beb66fcca9def | [
"MIT"
] | null | null | null | #
# Represents a vertex in a DAG
#
# Copyright (c) 2013 by Michael Luckeneder
#
class Vertex(object):
"""Represents a vertex in a DAG"""
def __init__(self, name):
"""Initialize the vertex"""
self.name = name
def __str__(self):
"""Returns String representation of vertex"""
... | 20.294118 | 53 | 0.605797 | 42 | 345 | 4.785714 | 0.595238 | 0.119403 | 0.169154 | 0.189055 | 0.228856 | 0.228856 | 0 | 0 | 0 | 0 | 0 | 0.016194 | 0.284058 | 345 | 16 | 54 | 21.5625 | 0.797571 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.8 | 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 |
7f1b559199ccf60ba468c17da94c4c26588281b4 | 551 | py | Python | tests/test_query_runner_operator.py | geronimo-iia/airflow-indexima | 7dc9aec646f7f75cfa90e320fff86549f98185c2 | [
"MIT"
] | 2 | 2019-12-04T15:51:49.000Z | 2019-12-20T09:18:01.000Z | tests/test_query_runner_operator.py | geronimo-iia/airflow-indexima | 7dc9aec646f7f75cfa90e320fff86549f98185c2 | [
"MIT"
] | null | null | null | tests/test_query_runner_operator.py | geronimo-iia/airflow-indexima | 7dc9aec646f7f75cfa90e320fff86549f98185c2 | [
"MIT"
] | null | null | null | import pytest
from airflow.exceptions import AirflowException
def test_query_runner_operator_sql_query_mandatory():
from airflow_indexima.operators.indexima import IndeximaQueryRunnerOperator
with pytest.raises(AirflowException):
IndeximaQueryRunnerOperator(task_id="my_task", indexima_conn_id='fake_c... | 34.4375 | 93 | 0.849365 | 61 | 551 | 7.262295 | 0.508197 | 0.074492 | 0.054176 | 0.081264 | 0.465011 | 0.465011 | 0.465011 | 0 | 0 | 0 | 0 | 0 | 0.101633 | 551 | 15 | 94 | 36.733333 | 0.894949 | 0 | 0 | 0.222222 | 0 | 0 | 0.063521 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | true | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6130d94526c35a254974ff93c99dd40bb6979fa9 | 922 | py | Python | security/security.py | guillaumesimler/nanofsp2 | dfb0404dd0a24f8d87dec874a85b888a1c672e2f | [
"MIT"
] | null | null | null | security/security.py | guillaumesimler/nanofsp2 | dfb0404dd0a24f8d87dec874a85b888a1c672e2f | [
"MIT"
] | null | null | null | security/security.py | guillaumesimler/nanofsp2 | dfb0404dd0a24f8d87dec874a85b888a1c672e2f | [
"MIT"
] | null | null | null | # ----- Multi User Block -----
# ----- Security.py ------
#
#
# For obvious security reasons, the security management is
# outside the main file
#
# A Program by Guillaume Simler
import random
import string
import hashlib
import hmac
# Cookie encoding
codeword = "qd8qfem2eq4r52+tu"
def hash_cookie(id):
retu... | 17.074074 | 70 | 0.645336 | 129 | 922 | 4.51938 | 0.465116 | 0.041166 | 0.051458 | 0.048027 | 0.068611 | 0.068611 | 0 | 0 | 0 | 0 | 0 | 0.014946 | 0.201735 | 922 | 53 | 71 | 17.396226 | 0.777174 | 0.215835 | 0 | 0 | 0 | 0 | 0.04073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.136364 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
61513d4b7dce273a6a4f296ec4a50242a9843d72 | 1,901 | py | Python | rustiql/host/main_host.py | pyrustic/rustiql | cc4c38e59ae6b9d6d6beaf8cfb1c45f9096819b1 | [
"MIT"
] | 1 | 2021-02-02T21:05:44.000Z | 2021-02-02T21:05:44.000Z | rustiql/host/main_host.py | pyrustic/rustiql | cc4c38e59ae6b9d6d6beaf8cfb1c45f9096819b1 | [
"MIT"
] | null | null | null | rustiql/host/main_host.py | pyrustic/rustiql | cc4c38e59ae6b9d6d6beaf8cfb1c45f9096819b1 | [
"MIT"
] | null | null | null | import sqlite3 as sqlite
import os
import os.path
import pkgutil
from shared import Jason
from backstage import constant
class MainHost:
def __init__(self, dao_builder):
self._dao_builder = dao_builder
self._dao = None
self._path = None
self._setup()
@property
def path(sel... | 23.182927 | 56 | 0.579169 | 238 | 1,901 | 4.428571 | 0.273109 | 0.092979 | 0.086338 | 0.032258 | 0.125237 | 0.051233 | 0 | 0 | 0 | 0 | 0 | 0.002368 | 0.333509 | 1,901 | 81 | 57 | 23.469136 | 0.829519 | 0 | 0 | 0.060606 | 0 | 0 | 0.003156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0.015152 | 0.090909 | 0.121212 | 0.560606 | 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 |
61631bf7a658bef6f40636386a414345816f041d | 188 | py | Python | demos/rpycfs/mount.rpycfs.py | geromueller/rpyc | 12a53169100bce7175470f959e956f29902fa153 | [
"MIT"
] | 1 | 2016-09-09T19:42:06.000Z | 2016-09-09T19:42:06.000Z | demos/rpycfs/mount.rpycfs.py | tvanzyl/rpyc | 1b7ea8b51fd459cf1c7035578068104de5e67e1c | [
"MIT"
] | null | null | null | demos/rpycfs/mount.rpycfs.py | tvanzyl/rpyc | 1b7ea8b51fd459cf1c7035578068104de5e67e1c | [
"MIT"
] | 1 | 2019-01-27T19:59:30.000Z | 2019-01-27T19:59:30.000Z | # requires fuse bindings for python
import fuse
class RPyCFS(fuse.Fuse):
def __init__(self, conn, mountpoint):
self.conn = conn
fuse.Fuse.__init__(self, mountpoint)
| 18.8 | 44 | 0.68617 | 24 | 188 | 5.041667 | 0.541667 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223404 | 188 | 9 | 45 | 20.888889 | 0.828767 | 0.175532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
616db250743d4a185ec60e9e469179c94447e8c7 | 305 | py | Python | losses/BCE_Dice_loss.py | ChmarsLuo/Charms-Semantic-Segmentation-Models | 4a8cdf82a218c3d3e1c8d10ef6a9118c8e6f3f89 | [
"Apache-2.0"
] | 5 | 2021-03-09T22:56:03.000Z | 2021-06-18T12:20:34.000Z | losses/BCE_Dice_loss.py | ChmarsLuo/Charms-Semantic-Segmentation-Models | 4a8cdf82a218c3d3e1c8d10ef6a9118c8e6f3f89 | [
"Apache-2.0"
] | null | null | null | losses/BCE_Dice_loss.py | ChmarsLuo/Charms-Semantic-Segmentation-Models | 4a8cdf82a218c3d3e1c8d10ef6a9118c8e6f3f89 | [
"Apache-2.0"
] | 1 | 2021-01-23T08:32:46.000Z | 2021-01-23T08:32:46.000Z | #coding=utf-8
from keras.losses import binary_crossentropy
from losses.Dice_loss import _dice_coef_loss
def _BCE_Dice_Loss(y_true, y_pred):
loss = binary_crossentropy(y_true, y_pred) + _dice_coef_loss(y_true, y_pred)
return loss
def BCE_DiceLoss():
return _BCE_Dice_Loss
| 19.0625 | 81 | 0.740984 | 48 | 305 | 4.25 | 0.395833 | 0.117647 | 0.088235 | 0.147059 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.193443 | 305 | 15 | 82 | 20.333333 | 0.825203 | 0.039344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 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 |
618fc3c7a041ac75c46ec4126fb6721c16f92fa6 | 594 | py | Python | pytglib/api/types/text_entity_type_bot_command.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/types/text_entity_type_bot_command.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/types/text_entity_type_bot_command.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class TextEntityTypeBotCommand(Object):
"""
A bot command, beginning with "/". This shouldn't be highlighted if there are no bots in the chat
Attributes:
ID (:obj:`str`): ``TextEntityTypeBotCommand``
No parameters required.
Returns:
TextEntityType
... | 19.16129 | 101 | 0.622896 | 55 | 594 | 6.654545 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 594 | 30 | 102 | 19.8 | 0.853147 | 0.422559 | 0 | 0 | 0 | 0 | 0.161616 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 0.125 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
61924b2cf5928827ba0d81a04d43755d63350edc | 304 | py | Python | kolibri/plugins/learn/views.py | jonboiser/kolibri | 8ea2febc1739ac772007aae4084f0226dfb4ed40 | [
"MIT"
] | null | null | null | kolibri/plugins/learn/views.py | jonboiser/kolibri | 8ea2febc1739ac772007aae4084f0226dfb4ed40 | [
"MIT"
] | 5 | 2016-01-22T18:43:44.000Z | 2019-07-25T20:34:16.000Z | kolibri/plugins/learn/views.py | jonboiser/kolibri | 8ea2febc1739ac772007aae4084f0226dfb4ed40 | [
"MIT"
] | 1 | 2019-11-12T14:00:30.000Z | 2019-11-12T14:00:30.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import logging as logger
from django.views.generic.base import TemplateView
logging = logger.getLogger(__name__)
class LearnView(TemplateView):
template_name = "learn/learn.html"
| 23.384615 | 50 | 0.832237 | 38 | 304 | 6.131579 | 0.605263 | 0.128755 | 0.206009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 304 | 12 | 51 | 25.333333 | 0.869403 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.875 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
61986f5ff4a272dbf2df5054ccddb14e9fe5665e | 425 | py | Python | tensormonk/__init__.py | Tensor46/TensorMONK | 67617d3fdf8fde072ba9cab42de7d67c79b17494 | [
"MIT"
] | 29 | 2018-07-06T23:57:23.000Z | 2022-03-08T20:38:57.000Z | tensormonk/__init__.py | sparupat/TensorMONK | 7a2699a28299a89b186e0eb17ed6e9feaea5429e | [
"MIT"
] | 3 | 2018-12-14T22:21:26.000Z | 2020-06-19T02:13:34.000Z | tensormonk/__init__.py | sparupat/TensorMONK | 7a2699a28299a89b186e0eb17ed6e9feaea5429e | [
"MIT"
] | 8 | 2018-07-06T23:58:03.000Z | 2021-04-12T01:35:54.000Z | """ TensorMONK """
__all__ = ["activations", "architectures", "layers", "loss",
"normalizations", "regularizations", "essentials",
"data", "plots", "utils", "thirdparty",
"detection"]
from . import detection
from . import activations, architectures, layers, loss
from . import normali... | 30.357143 | 61 | 0.665882 | 38 | 425 | 7.236842 | 0.5 | 0.145455 | 0.218182 | 0.247273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008721 | 0.190588 | 425 | 13 | 62 | 32.692308 | 0.790698 | 0.023529 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
61b879789097a90ee5b112e251476ecc67575cec | 757 | py | Python | TransformeFourier/FFT2D.py | Cybermade/ProjetMaths | d60d9f68a97be0e710f2fa644a54e0228eeefff0 | [
"MIT"
] | 1 | 2022-01-29T21:59:53.000Z | 2022-01-29T21:59:53.000Z | TransformeFourier/FFT2D.py | Cybermade/ProjetMaths | d60d9f68a97be0e710f2fa644a54e0228eeefff0 | [
"MIT"
] | null | null | null | TransformeFourier/FFT2D.py | Cybermade/ProjetMaths | d60d9f68a97be0e710f2fa644a54e0228eeefff0 | [
"MIT"
] | null | null | null | import cmath
import TransformeFourier.FFT as FFT
def usual(tab):
I = len(tab)
J = len(tab[0])
#print(tab[0])
for i in range(I):
tab[i]=FFT.usual(tab[i])
tab = transpose(tab)
for i in range(J):
tab[i]=FFT.usual(tab[i])
tab = transpose(tab)
return tab
def transpo... | 21.628571 | 53 | 0.532365 | 130 | 757 | 3.1 | 0.153846 | 0.119107 | 0.08933 | 0.163772 | 0.746898 | 0.746898 | 0.744417 | 0.699752 | 0.575682 | 0.421836 | 0 | 0.015326 | 0.310436 | 757 | 35 | 54 | 21.628571 | 0.756705 | 0.017173 | 0 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f603993ad8fb94857cc0d9892c999598088f1250 | 388 | py | Python | user/models.py | arnav-mandal1234/AnswerIt | cfb64f408c0d88016b2ae6aaa5f2d9b5147f9ef2 | [
"MIT"
] | 1 | 2018-05-03T15:26:45.000Z | 2018-05-03T15:26:45.000Z | user/models.py | arnav-mandal1234/AnswerIt | cfb64f408c0d88016b2ae6aaa5f2d9b5147f9ef2 | [
"MIT"
] | null | null | null | user/models.py | arnav-mandal1234/AnswerIt | cfb64f408c0d88016b2ae6aaa5f2d9b5147f9ef2 | [
"MIT"
] | 6 | 2018-05-03T15:26:52.000Z | 2020-10-04T15:03:48.000Z | from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
name = models.CharField(blank = True, max_length = 255)
karma = models.IntegerField(default = 0)
is_active = models.BooleanField(default = True)
is_moderator = models.BooleanField(d... | 32.333333 | 60 | 0.713918 | 46 | 388 | 5.869565 | 0.673913 | 0.074074 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.201031 | 388 | 12 | 61 | 32.333333 | 0.858065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f60dfe00bc336de71a0e7c7a2d1420aa7896cc1c | 603 | py | Python | tests/test_post.py | Juru-10/blog | ac554952e884c35ce7dd50cf0ef9748a8da96a3f | [
"MIT"
] | null | null | null | tests/test_post.py | Juru-10/blog | ac554952e884c35ce7dd50cf0ef9748a8da96a3f | [
"MIT"
] | null | null | null | tests/test_post.py | Juru-10/blog | ac554952e884c35ce7dd50cf0ef9748a8da96a3f | [
"MIT"
] | null | null | null | import unittest
from app.models import Pitch,User
class PitchModelTest(unittest.TestCase):
def setUp(self):
self.user_wecode = User(id=12345,username = 'Wecode',password = 'potato', email = 'wecode@wecode')
self.new_post = Post(name="ttttttttttcfcfghgh",user_id=12345,posted= 12/2/2008 )
# def ... | 33.5 | 106 | 0.679934 | 82 | 603 | 4.804878 | 0.487805 | 0.060914 | 0.055838 | 0.081218 | 0.126904 | 0.126904 | 0 | 0 | 0 | 0 | 0 | 0.04908 | 0.189055 | 603 | 17 | 107 | 35.470588 | 0.756646 | 0.218905 | 0 | 0 | 0 | 0 | 0.092275 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0.111111 | 0.222222 | 0 | 0.555556 | 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 |
f6216925ab13df388c034f0be93c2a6cf66f212a | 142 | py | Python | stockscreener/apps.py | alexbid/sqrtrading | 1dadf3e42e9b747134861572b44f81cb8222c2f2 | [
"MIT"
] | null | null | null | stockscreener/apps.py | alexbid/sqrtrading | 1dadf3e42e9b747134861572b44f81cb8222c2f2 | [
"MIT"
] | null | null | null | stockscreener/apps.py | alexbid/sqrtrading | 1dadf3e42e9b747134861572b44f81cb8222c2f2 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class stockscreenerConfig(AppConfig):
name = 'stockscreener'
| 17.75 | 39 | 0.809859 | 15 | 142 | 7.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 142 | 7 | 40 | 20.285714 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0.091549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
f633a9816d909f2a0adf6d7c8bbec14370e04327 | 2,292 | py | Python | test/test_user_profile_validator.py | danirod/dummyauth | f21ddda21dd3eed202d36399419f6e77d3a438ae | [
"0BSD"
] | 1 | 2020-04-05T23:54:56.000Z | 2020-04-05T23:54:56.000Z | test/test_user_profile_validator.py | danirod/dummyauth | f21ddda21dd3eed202d36399419f6e77d3a438ae | [
"0BSD"
] | 1 | 2019-10-01T20:48:21.000Z | 2019-10-01T20:48:50.000Z | test/test_user_profile_validator.py | danirod/dummyauth | f21ddda21dd3eed202d36399419f6e77d3a438ae | [
"0BSD"
] | null | null | null | from unittest import TestCase
from unittest.mock import patch, Mock
from dummyauth.forms import ValidUserProfile
from wtforms.validators import ValidationError
@patch('flask_wtf.FlaskForm', autospec=True)
class LoginFormTestCase(TestCase):
def test_validator_accepts_url(self, form):
field = Mock(data='htt... | 44.076923 | 76 | 0.727312 | 273 | 2,292 | 5.871795 | 0.234432 | 0.123518 | 0.109794 | 0.116656 | 0.794136 | 0.777916 | 0.676856 | 0.676856 | 0.532751 | 0.46413 | 0 | 0.008269 | 0.155759 | 2,292 | 51 | 77 | 44.941176 | 0.820155 | 0 | 0 | 0.282051 | 0 | 0 | 0.126963 | 0.010035 | 0 | 0 | 0 | 0 | 0.205128 | 1 | 0.282051 | false | 0.051282 | 0.102564 | 0 | 0.410256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f6375e4be35d047099904f73ee608fe06fd5b77a | 173 | py | Python | output/models/ms_data/datatypes/facets/ncname/ncname_max_length003_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/datatypes/facets/ncname/ncname_max_length003_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/datatypes/facets/ncname/ncname_max_length003_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.datatypes.facets.ncname.ncname_max_length003_xsd.ncname_max_length003 import (
FooType,
Test,
)
__all__ = [
"FooType",
"Test",
]
| 17.3 | 105 | 0.710983 | 21 | 173 | 5.380952 | 0.714286 | 0.159292 | 0.318584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041958 | 0.17341 | 173 | 9 | 106 | 19.222222 | 0.748252 | 0 | 0 | 0 | 0 | 0 | 0.063584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f65e536233dee39487955a01834c5746d4d70c7d | 44,292 | py | Python | 3rd_party/senet50_256_pytorch/senet50_256_pytorch.py | dantevergil304/Instance-Search | 8c72e6ac23c0cc631bcffed215042620fd932d1b | [
"MIT"
] | null | null | null | 3rd_party/senet50_256_pytorch/senet50_256_pytorch.py | dantevergil304/Instance-Search | 8c72e6ac23c0cc631bcffed215042620fd932d1b | [
"MIT"
] | null | null | null | 3rd_party/senet50_256_pytorch/senet50_256_pytorch.py | dantevergil304/Instance-Search | 8c72e6ac23c0cc631bcffed215042620fd932d1b | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
__weights_dict = dict()
def load_weights(weight_file):
if weight_file == None:
return
try:
weights_dict = np.load(weight_file).item()
except:
weights_dict = np.load(weight_file, encoding='bytes')... | 90.207739 | 176 | 0.733586 | 7,798 | 44,292 | 3.669274 | 0.016927 | 0.029777 | 0.058155 | 0.039073 | 0.935449 | 0.835739 | 0.669591 | 0.487401 | 0.410548 | 0.410548 | 0 | 0.162627 | 0.152307 | 44,292 | 490 | 177 | 90.391837 | 0.599451 | 0 | 0 | 0.025316 | 0 | 0 | 0.055608 | 0.015895 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008439 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f664f72c0631fb6dd580ec793d87a263e0a2862e | 88 | py | Python | vpmbench/__init__.py | aruscher/VPMBench | d784d9ff273363f775f0f84c92585dedee32938b | [
"MIT"
] | 7 | 2021-03-07T00:18:43.000Z | 2021-12-03T19:41:07.000Z | vpmbench/__init__.py | aruscher/VPMBench | d784d9ff273363f775f0f84c92585dedee32938b | [
"MIT"
] | 7 | 2021-04-27T14:47:29.000Z | 2021-08-18T12:15:32.000Z | vpmbench/__init__.py | aruscher/VPMBench | d784d9ff273363f775f0f84c92585dedee32938b | [
"MIT"
] | 2 | 2021-04-27T13:53:43.000Z | 2021-07-16T09:37:46.000Z | import logging
log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())
| 17.6 | 37 | 0.806818 | 10 | 88 | 6.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 88 | 4 | 38 | 22 | 0.82716 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f677cd0570970b807f6d14476b36839053c6d749 | 115 | py | Python | code/class3/multi_way_decisions_1.py | jeremypedersen/pythonBootcamp | 5d9a3219911cdd2d733b143d4b5b0fa857cf9b29 | [
"CC-BY-4.0"
] | null | null | null | code/class3/multi_way_decisions_1.py | jeremypedersen/pythonBootcamp | 5d9a3219911cdd2d733b143d4b5b0fa857cf9b29 | [
"CC-BY-4.0"
] | null | null | null | code/class3/multi_way_decisions_1.py | jeremypedersen/pythonBootcamp | 5d9a3219911cdd2d733b143d4b5b0fa857cf9b29 | [
"CC-BY-4.0"
] | null | null | null | x = 0
if x < 2 :
print('small')
elif x < 10 :
print('Medium')
else :
print('LARGE')
print('All done')
| 11.5 | 19 | 0.521739 | 18 | 115 | 3.333333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.286957 | 115 | 9 | 20 | 12.777778 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 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 |
9ca3bc090238d1d2e72ddaf8139c57cbcde6a0aa | 284 | py | Python | Python/Ex031.py | EspagueteTV/Meus-Estudos-CursoEmVideo | 1bf3cc367bc754625a3fd59114ab63470e8d934b | [
"MIT"
] | null | null | null | Python/Ex031.py | EspagueteTV/Meus-Estudos-CursoEmVideo | 1bf3cc367bc754625a3fd59114ab63470e8d934b | [
"MIT"
] | null | null | null | Python/Ex031.py | EspagueteTV/Meus-Estudos-CursoEmVideo | 1bf3cc367bc754625a3fd59114ab63470e8d934b | [
"MIT"
] | null | null | null | d = float(input('Informe a distâcia de sua viagem: '))
print('Você vai fazer uma viagem de {:.2f} Km. '.format(d))
if d <= 200:
print('É o preço de sua passagem será de R$ {:.2f}'.format(d * 0.50))
else:
print('É o preço de sua passagem será de R$ {:.2f} '.format(d * 0.45))
| 40.571429 | 74 | 0.616197 | 54 | 284 | 3.240741 | 0.537037 | 0.085714 | 0.08 | 0.137143 | 0.48 | 0.48 | 0.48 | 0.48 | 0.48 | 0.48 | 0 | 0.052863 | 0.200704 | 284 | 6 | 75 | 47.333333 | 0.718062 | 0 | 0 | 0 | 0 | 0 | 0.570423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
9cade2137c3cb869ad7f9bead24ed68cda14c24b | 33,120 | py | Python | sigfoxapi/__init__.py | mjuenema/python-sigfox-backend-api | 4144f26c363a1eb7cf10eb032c4d758539a47405 | [
"BSD-2-Clause"
] | 5 | 2018-03-14T08:02:27.000Z | 2020-09-14T11:37:23.000Z | sigfoxapi/__init__.py | mjuenema/python-sigfox-backend-api | 4144f26c363a1eb7cf10eb032c4d758539a47405 | [
"BSD-2-Clause"
] | 14 | 2017-07-04T05:37:00.000Z | 2021-06-01T22:24:27.000Z | sigfoxapi/__init__.py | mjuenema/python-sigfox-backend-api | 4144f26c363a1eb7cf10eb032c4d758539a47405 | [
"BSD-2-Clause"
] | 4 | 2017-12-15T20:41:03.000Z | 2021-09-03T06:21:57.000Z | """
Python wrapper for the Sigfox backend REST API.
Inspired by https://pypi.python.org/pypi/pySigfox.
(c) 2017 Markus Juenemann
"""
import copy
import urllib.parse
import functools
import drest
import drest.exc
import drest.serialization
import sigfoxapi.requesthandler
__author__ = 'Markus Juenemann <markus@jue... | 32.955224 | 109 | 0.502264 | 2,835 | 33,120 | 5.810935 | 0.206349 | 0.019425 | 0.030958 | 0.029137 | 0.482336 | 0.417871 | 0.377565 | 0.341144 | 0.331553 | 0.32184 | 0 | 0.070811 | 0.382156 | 33,120 | 1,004 | 110 | 32.988048 | 0.734252 | 0.552989 | 0 | 0.179191 | 0 | 0 | 0.115484 | 0.074836 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219653 | false | 0.052023 | 0.040462 | 0.00578 | 0.537572 | 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 |
9cc3a254e8d5375823eb14f36c4a84c36101c210 | 747 | py | Python | odin/utilities/finance/modern_portfolio_theory/black_litterman.py | gsamarakoon/Odin | e2e9d638c68947d24f1260d35a3527dd84c2523f | [
"MIT"
] | 103 | 2017-01-14T19:38:14.000Z | 2022-03-10T12:52:09.000Z | odin/utilities/finance/modern_portfolio_theory/black_litterman.py | gsamarakoon/Odin | e2e9d638c68947d24f1260d35a3527dd84c2523f | [
"MIT"
] | 6 | 2017-01-19T01:38:53.000Z | 2020-03-09T19:03:18.000Z | odin/utilities/finance/modern_portfolio_theory/black_litterman.py | JamesBrofos/Odin | e2e9d638c68947d24f1260d35a3527dd84c2523f | [
"MIT"
] | 33 | 2017-02-05T21:51:17.000Z | 2021-12-22T20:38:30.000Z | import numpy as np
import pandas as pd
from cvxopt import matrix
from cvxopt.blas import dot
from cvxopt.solvers import qp, options
options["show_progress"] = False
def solve_black_litterman(prices):
"""This method solves the Black-Litterman asset allocation problem.
Generally viewed as an improvement over th... | 32.478261 | 79 | 0.748327 | 104 | 747 | 5.336538 | 0.711538 | 0.100901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004918 | 0.1834 | 747 | 22 | 80 | 33.954545 | 0.904918 | 0.539491 | 0 | 0 | 0 | 0 | 0.041139 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9cd0e9e36a888bc7214ff93cdc3e4154c68f5c2f | 69,459 | py | Python | test/python/test_assoc.py | kkaempf/cmpi-bindings | acfd07726bc235a360819e98a1347038da896a2a | [
"BSD-3-Clause"
] | 1 | 2015-12-21T09:02:35.000Z | 2015-12-21T09:02:35.000Z | test/python/test_assoc.py | kkaempf/cmpi-bindings | acfd07726bc235a360819e98a1347038da896a2a | [
"BSD-3-Clause"
] | 1 | 2015-01-29T06:57:46.000Z | 2015-01-29T06:57:46.000Z | test/python/test_assoc.py | kkaempf/cmpi-bindings | acfd07726bc235a360819e98a1347038da896a2a | [
"BSD-3-Clause"
] | 1 | 2019-12-12T01:24:41.000Z | 2019-12-12T01:24:41.000Z | #!/usr/bin/env python
""" Test script to validate the correctness of
association handling in a CIM provider interface.
Exercises the classes defined in TestAssoc.mof
and the corresponding provider in TestAssocProvider.py.
"""
import unittest
import optparse
import pywbem
import pwd
import grp
from lib import Provid... | 58.813717 | 142 | 0.558589 | 7,061 | 69,459 | 5.386772 | 0.062173 | 0.04827 | 0.023925 | 0.005048 | 0.802582 | 0.765564 | 0.720423 | 0.685745 | 0.637843 | 0.585656 | 0 | 0.002487 | 0.351618 | 69,459 | 1,180 | 143 | 58.863559 | 0.842082 | 0.115968 | 0 | 0.618002 | 0 | 0 | 0.291189 | 0.032285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040615 | false | 0 | 0.008782 | 0 | 0.051592 | 0.002195 | 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 |
9ce9e62675f10768878b63bfbabd82bd33bc39be | 279 | py | Python | Core/Other/Clipboard.py | HugoMskn/Telegram-RAT | 53989b2509b1c844c6a33f670aece5f8dbf15305 | [
"MIT"
] | 375 | 2020-03-17T06:20:50.000Z | 2022-03-29T22:27:23.000Z | Core/Other/Clipboard.py | HugoMskn/Telegram-RAT | 53989b2509b1c844c6a33f670aece5f8dbf15305 | [
"MIT"
] | 44 | 2020-04-06T22:37:59.000Z | 2020-11-15T15:53:39.000Z | Core/Other/Clipboard.py | HugoMskn/Telegram-RAT | 53989b2509b1c844c6a33f670aece5f8dbf15305 | [
"MIT"
] | 173 | 2020-04-01T17:17:26.000Z | 2022-03-24T13:28:15.000Z | # Import modules
try:
from pyperclip import copy, paste
except ImportError:
raise SystemExit('Please run › pip install pyperclip')
# Sets text to clipboard
def SetClipboard(Text):
copy(Text)
# Get text from clipboard
def GetClipboard():
return paste() | 15.5 | 56 | 0.702509 | 35 | 279 | 5.628571 | 0.714286 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 279 | 18 | 57 | 15.5 | 0.903226 | 0.218638 | 0 | 0 | 0 | 0 | 0.171717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9ceb3ebe4f5021d043ae33dab4d969b778bf0d8b | 572 | py | Python | website/recipients/migrations/0066_auto_20210402_1019.py | tibet5/website | 937e1941aaadbf7cd0a404a2655858451c01dd54 | [
"MIT"
] | null | null | null | website/recipients/migrations/0066_auto_20210402_1019.py | tibet5/website | 937e1941aaadbf7cd0a404a2655858451c01dd54 | [
"MIT"
] | null | null | null | website/recipients/migrations/0066_auto_20210402_1019.py | tibet5/website | 937e1941aaadbf7cd0a404a2655858451c01dd54 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-04-02 14:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('recipients', '0065_remove_groceryrequest_physical_gift_card'),
]
operations = [
migrations.RemoveField(
model_name='groceryrequest',
... | 22 | 72 | 0.56993 | 51 | 572 | 6.235294 | 0.647059 | 0.198113 | 0.245283 | 0.283019 | 0.238994 | 0.238994 | 0 | 0 | 0 | 0 | 0 | 0.049096 | 0.323427 | 572 | 25 | 73 | 22.88 | 0.77261 | 0.078671 | 0 | 0.473684 | 1 | 0 | 0.198095 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9cf620edc11a6ad97e71278b8cb9f9ab57c588ab | 1,356 | py | Python | ctap_keyring_device/ctap_credential_maker.py | dany74q/ctap-keyring-device | 2f41f008679259182a61224680d75b6e0bdc510b | [
"MIT"
] | 1 | 2022-03-04T09:37:49.000Z | 2022-03-04T09:37:49.000Z | ctap_keyring_device/ctap_credential_maker.py | dany74q/ctap-keyring-device | 2f41f008679259182a61224680d75b6e0bdc510b | [
"MIT"
] | null | null | null | ctap_keyring_device/ctap_credential_maker.py | dany74q/ctap-keyring-device | 2f41f008679259182a61224680d75b6e0bdc510b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import Type
from uuid import uuid4, uuid5, NAMESPACE_OID
from fido2.cose import CoseKey
from ctap_keyring_device.ctap_private_key_wrapper import CtapPrivateKeyWrapper
from ctap_keyring_device.ctap_strucs import Credential
class CtapCredentialMaker:
""" This class makes a new ... | 37.666667 | 108 | 0.708702 | 189 | 1,356 | 4.878307 | 0.444444 | 0.05423 | 0.043384 | 0.045553 | 0.104121 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009497 | 0.223451 | 1,356 | 35 | 109 | 38.742857 | 0.866097 | 0.402655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0.133333 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
9cf78a84a698cc63ab56db3385e5c65430f8a412 | 263 | py | Python | src/RandomPlayer.py | fbarth/Connect4-Python | 954646c14be9b2f3bd97c3db7069835e0a12c0d2 | [
"MIT"
] | null | null | null | src/RandomPlayer.py | fbarth/Connect4-Python | 954646c14be9b2f3bd97c3db7069835e0a12c0d2 | [
"MIT"
] | null | null | null | src/RandomPlayer.py | fbarth/Connect4-Python | 954646c14be9b2f3bd97c3db7069835e0a12c0d2 | [
"MIT"
] | null | null | null | from random import randint
from Player import Player
class RandomPlayer(Player):
def name(self):
return "Random"
#
# retorna a coluna onde a bola será jogada
#
def move(self, player_code, board, depth):
return randint(0, 6)
| 18.785714 | 46 | 0.65019 | 35 | 263 | 4.857143 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.273764 | 263 | 13 | 47 | 20.230769 | 0.879581 | 0.152091 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.285714 | 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 |
1435135375b87fd403168e7ced6f09a4d398d453 | 97 | py | Python | src/pybullet_planning/interfaces/control/__init__.py | mcx/pybullet_planning | cc90e8620dd61acc7fc4246638d91f222b64e77a | [
"MIT"
] | 61 | 2019-10-07T19:20:15.000Z | 2022-03-09T21:28:18.000Z | src/pybullet_planning/interfaces/control/__init__.py | mcx/pybullet_planning | cc90e8620dd61acc7fc4246638d91f222b64e77a | [
"MIT"
] | 9 | 2020-03-14T21:24:05.000Z | 2021-06-01T13:27:45.000Z | src/pybullet_planning/interfaces/control/__init__.py | mcx/pybullet_planning | cc90e8620dd61acc7fc4246638d91f222b64e77a | [
"MIT"
] | 11 | 2020-08-20T12:54:55.000Z | 2022-01-27T06:05:51.000Z | """
"""
from .control import *
__all__ = [name for name in dir() if not name.startswith('_')]
| 12.125 | 62 | 0.618557 | 13 | 97 | 4.230769 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195876 | 97 | 7 | 63 | 13.857143 | 0.705128 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 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 |
144654543d057706131597a7cd90b7eba1dda3a0 | 1,126 | py | Python | test/test_check.py | toddsifleet/retrypy | 77c85cab38b5e1acc4c33dbfaba0d1ce157ad9c4 | [
"MIT"
] | 19 | 2015-02-07T04:59:26.000Z | 2019-09-28T01:26:36.000Z | test/test_check.py | toddsifleet/retrypy | 77c85cab38b5e1acc4c33dbfaba0d1ce157ad9c4 | [
"MIT"
] | 1 | 2015-01-31T13:39:46.000Z | 2015-02-07T08:52:44.000Z | test/test_check.py | toddsifleet/retrypy | 77c85cab38b5e1acc4c33dbfaba0d1ce157ad9c4 | [
"MIT"
] | 4 | 2016-01-25T13:27:36.000Z | 2020-11-20T12:09:17.000Z | import re
from retrypy import check
def test_message_equals_returns_true():
func = check.message_equals('foo')
assert func(Exception('foo'), 1)
def test_message_equals_returns_false():
func = check.message_equals('foo')
assert not func(Exception('bar'), 1)
def test_message_contains_returns_true()... | 25.590909 | 53 | 0.738011 | 156 | 1,126 | 5.019231 | 0.173077 | 0.07152 | 0.14304 | 0.1341 | 0.920817 | 0.799489 | 0.496807 | 0.496807 | 0.357599 | 0.357599 | 0 | 0.00829 | 0.142984 | 1,126 | 43 | 54 | 26.186047 | 0.803109 | 0 | 0 | 0.346154 | 0 | 0 | 0.077265 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1454811a31a6f8a8448cd35c15a22470dbffde2d | 659 | py | Python | pal5_constrain_mwhalo_shape/streams/pal5/__init__.py | nstarman/pal5-constrain-mwhalo-shape | 57e1523675332121cc538d1fa6e0ac6edecaeefe | [
"BSD-3-Clause"
] | 1 | 2020-11-20T18:27:21.000Z | 2020-11-20T18:27:21.000Z | pal5_constrain_mwhalo_shape/streams/pal5/__init__.py | nstarman/pal5-constrain-mwhalo-shape | 57e1523675332121cc538d1fa6e0ac6edecaeefe | [
"BSD-3-Clause"
] | null | null | null | pal5_constrain_mwhalo_shape/streams/pal5/__init__.py | nstarman/pal5-constrain-mwhalo-shape | 57e1523675332121cc538d1fa6e0ac6edecaeefe | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# see LICENSE.rst
# ----------------------------------------------------------------------------
#
# TITLE :
# AUTHOR :
# PROJECT :
#
# ----------------------------------------------------------------------------
"""Initialization file for Pal 5 stream functions."""
# __all__ = [
# ""
... | 17.810811 | 78 | 0.2261 | 28 | 659 | 5 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005164 | 0.118361 | 659 | 36 | 79 | 18.305556 | 0.2358 | 0.503794 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 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.