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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5cb9fd4990eafbf2dfb57671a83f6c5543f0048c | 232 | py | Python | fix_store.py | fatrix/httptest | b362abdba231215468336a64aa9c5ebc9d98e245 | [
"MIT"
] | null | null | null | fix_store.py | fatrix/httptest | b362abdba231215468336a64aa9c5ebc9d98e245 | [
"MIT"
] | 4 | 2016-08-15T07:18:14.000Z | 2018-02-20T14:02:36.000Z | fix_store.py | sahlinet/httptest | b362abdba231215468336a64aa9c5ebc9d98e245 | [
"MIT"
] | null | null | null | def func(self):
#return str(dir(self.datastore))
self.datastore.session.rollback()
self.datastore._execute("SELECT setval('data_table_id_seq', (SELECT MAX(id) FROM data_table)+1)")
self.datastore.session.commit()
return "Fixed" | 38.666667 | 98 | 0.762931 | 34 | 232 | 5.058824 | 0.617647 | 0.302326 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.077586 | 232 | 6 | 99 | 38.666667 | 0.799065 | 0.133621 | 0 | 0 | 0 | 0 | 0.373134 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 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 |
5cdb6ffc600e8a91054d4bd38da926f09cdc243d | 566 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/theming/helpers_static.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/theming/helpers_static.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/theming/helpers_static.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | # lint-amnesty, pylint: disable=missing-module-docstring
from django.contrib.staticfiles.storage import staticfiles_storage
def get_static_file_url(asset):
"""
Returns url of the themed asset if asset is not themed than returns the default asset url.
Example:
>> get_static_file_url('css/lms-main... | 26.952381 | 94 | 0.69788 | 79 | 566 | 4.898734 | 0.556962 | 0.139535 | 0.067183 | 0.082687 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004454 | 0.206714 | 566 | 20 | 95 | 28.3 | 0.857461 | 0.657244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7a4009aaeac25246fee1d6ee7dd8817c83176427 | 6,198 | py | Python | envs/pomdp/__init__.py | hai-h-nguyen/pomdp-baselines | 629180d56641810d99653a116cca41ede65172eb | [
"MIT"
] | 40 | 2021-10-15T14:53:00.000Z | 2022-03-31T02:27:20.000Z | envs/pomdp/__init__.py | hai-h-nguyen/pomdp-baselines | 629180d56641810d99653a116cca41ede65172eb | [
"MIT"
] | 1 | 2022-03-13T04:02:30.000Z | 2022-03-13T04:02:30.000Z | envs/pomdp/__init__.py | hai-h-nguyen/pomdp-baselines | 629180d56641810d99653a116cca41ede65172eb | [
"MIT"
] | 5 | 2021-11-28T04:08:13.000Z | 2022-03-17T02:33:51.000Z | from gym.envs.registration import register
import gym
# Notation:
# F: full observed (original env)
# P: position/angle observed
# V: velocity observed
register(
"Pendulum-F-v0",
entry_point="envs.pomdp.wrappers:POMDPWrapper",
kwargs=dict(
env=gym.make("Pendulum-v1"), partially_obs_dims=[0, 1, 2]
... | 24.401575 | 84 | 0.599871 | 794 | 6,198 | 4.540302 | 0.170025 | 0.040777 | 0.069903 | 0.093204 | 0.823856 | 0.803606 | 0.655479 | 0.588904 | 0.588904 | 0.588904 | 0 | 0.069818 | 0.255889 | 6,198 | 253 | 85 | 24.498024 | 0.711839 | 0.065666 | 0 | 0.681159 | 0 | 0 | 0.248009 | 0.140501 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.014493 | 0 | 0.014493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a4dc72f81393f12365f3336f40360a8c909098e | 121 | py | Python | game/game.py | fumiya-kubota/card-adv | ea233949407bbe534fb3d9b8e2e421272e35546b | [
"MIT"
] | null | null | null | game/game.py | fumiya-kubota/card-adv | ea233949407bbe534fb3d9b8e2e421272e35546b | [
"MIT"
] | null | null | null | game/game.py | fumiya-kubota/card-adv | ea233949407bbe534fb3d9b8e2e421272e35546b | [
"MIT"
] | null | null | null | import click
@click.command()
@click.argument('deck-path', type=click.Path(exists=True))
def main(deck_path):
pass
| 15.125 | 58 | 0.719008 | 18 | 121 | 4.777778 | 0.666667 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 121 | 7 | 59 | 17.285714 | 0.803738 | 0 | 0 | 0 | 0 | 0 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7a5010445eab6612e0657652d2a991f81feb2e51 | 1,152 | py | Python | tests/json_test.py | ecleya/pyfileinfo | a293db7020fe53130934ae733f0dd173fef8851a | [
"MIT"
] | null | null | null | tests/json_test.py | ecleya/pyfileinfo | a293db7020fe53130934ae733f0dd173fef8851a | [
"MIT"
] | null | null | null | tests/json_test.py | ecleya/pyfileinfo | a293db7020fe53130934ae733f0dd173fef8851a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import unittest
from pyfileinfo import PyFileInfo, JSON
from tests import DATA_ROOT
class TestJSON(unittest.TestCase):
def test_dict_json_file(self):
file = PyFileInfo(os.path.join(DATA_ROOT, 'dict.json'))
self.assertTrue(isinstance(file.instance, JSON))
de... | 31.135135 | 63 | 0.663194 | 160 | 1,152 | 4.60625 | 0.2375 | 0.086839 | 0.151967 | 0.189959 | 0.700136 | 0.700136 | 0.672999 | 0.672999 | 0.672999 | 0.583446 | 0 | 0.006445 | 0.19184 | 1,152 | 36 | 64 | 32 | 0.785177 | 0.018229 | 0 | 0.44 | 0 | 0 | 0.058459 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.24 | false | 0 | 0.16 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a6303ddc9e592cb0599ccc60bdf5841f6c3c0a9 | 2,333 | py | Python | test_and_tune/remote_tmali/extern_op.py | TVM-for-armgpu/tvm | 4c4392306f5b4d21e85d633231bae71e935f39a2 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | 1 | 2022-03-19T12:21:33.000Z | 2022-03-19T12:21:33.000Z | test_and_tune/remote_tmali/extern_op.py | TVM-for-armgpu/tvm | 4c4392306f5b4d21e85d633231bae71e935f39a2 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | test_and_tune/remote_tmali/extern_op.py | TVM-for-armgpu/tvm | 4c4392306f5b4d21e85d633231bae71e935f39a2 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | import tvm
import numpy
from tvm import te
import numpy as np
def mymul(x,y):
"""customized log intrinsic function"""
return tvm.tir.call_intrin(x.dtype, "tir.mymul", x,y)
def mymad(x,y):
"""customized log intrinsic function"""
return tvm.tir.call_intrin(x.dtype, "tir.mymad", y,x)
def read_imagef(data... | 39.542373 | 101 | 0.734676 | 373 | 2,333 | 4.407507 | 0.209115 | 0.047445 | 0.058394 | 0.077859 | 0.731144 | 0.701946 | 0.684915 | 0.659367 | 0.59854 | 0.529197 | 0 | 0.009087 | 0.103729 | 2,333 | 58 | 102 | 40.224138 | 0.77714 | 0.493356 | 0 | 0 | 0 | 0 | 0.131206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.16 | 0 | 0.8 | 0.04 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7a74cd4cde26c1bee49d00697109e1e0edb6eca1 | 22 | py | Python | epson_printer/test/__init__.py | alex071995/python-epson-printer | 7d89b2f21bc76d2cc4d5ad548e19a356ca92fbc5 | [
"MIT"
] | 48 | 2015-02-13T19:58:40.000Z | 2022-01-13T21:03:35.000Z | epson_printer/test/__init__.py | alex071995/python-epson-printer | 7d89b2f21bc76d2cc4d5ad548e19a356ca92fbc5 | [
"MIT"
] | 12 | 2015-01-03T11:24:48.000Z | 2018-05-08T13:38:23.000Z | epson_printer/test/__init__.py | alex071995/python-epson-printer | 7d89b2f21bc76d2cc4d5ad548e19a356ca92fbc5 | [
"MIT"
] | 25 | 2015-02-06T21:50:01.000Z | 2022-01-13T22:25:13.000Z | __author__ = 'benoit'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
7a83670abe594899d5944537d5fd191fe605ea36 | 271 | py | Python | ch_04/task5.py | berchev/python_learning | 5b99065cade53c64b4ede3d0e583c58573ca654c | [
"MIT"
] | null | null | null | ch_04/task5.py | berchev/python_learning | 5b99065cade53c64b4ede3d0e583c58573ca654c | [
"MIT"
] | null | null | null | ch_04/task5.py | berchev/python_learning | 5b99065cade53c64b4ede3d0e583c58573ca654c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
x = 3
y = 12.5
print("The rabbit is " + str(x))
print("The rabbit is " + str(3))
print("The rabbit is " + str(x) + " years old")
print(str(y) + " is average")
print( str(y) + " * " + str(x))
print( str(y) + " * " + str(x) + " is " + str(x * y))
| 19.357143 | 53 | 0.516605 | 48 | 271 | 2.916667 | 0.354167 | 0.142857 | 0.3 | 0.342857 | 0.607143 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0.024038 | 0.232472 | 271 | 13 | 54 | 20.846154 | 0.649038 | 0.073801 | 0 | 0 | 0 | 0 | 0.294355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7a8d8a76ad899c4705aefc448c1f16dbdd632857 | 321 | py | Python | quiz/serializers.py | jstavanja/quiz-biometrics-api | 75e0db348668b14a85f94261aac092ae2d5fa9c6 | [
"MIT"
] | null | null | null | quiz/serializers.py | jstavanja/quiz-biometrics-api | 75e0db348668b14a85f94261aac092ae2d5fa9c6 | [
"MIT"
] | null | null | null | quiz/serializers.py | jstavanja/quiz-biometrics-api | 75e0db348668b14a85f94261aac092ae2d5fa9c6 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Quiz
from course.serializers import CourseSerializer
from .models import Quiz
class QuizSerializer(serializers.ModelSerializer):
course = CourseSerializer(read_only=True)
class Meta:
model = Quiz
fields = '__all__'
read_only_fields = ['pk']... | 22.928571 | 50 | 0.76947 | 37 | 321 | 6.459459 | 0.540541 | 0.083682 | 0.133891 | 0.167364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165109 | 321 | 13 | 51 | 24.692308 | 0.891791 | 0 | 0 | 0.2 | 0 | 0 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7a960a00d0a13229af7e7e6d54c95f137034bee8 | 2,146 | py | Python | data_structures/stack-dir/test_stack.py | tyler-fishbone/data-structures-and-algorithms | 29790f2672d3ddb0aadf62725f28180b092f4568 | [
"MIT"
] | null | null | null | data_structures/stack-dir/test_stack.py | tyler-fishbone/data-structures-and-algorithms | 29790f2672d3ddb0aadf62725f28180b092f4568 | [
"MIT"
] | 4 | 2018-03-22T19:19:11.000Z | 2018-04-11T00:35:26.000Z | data_structures/stack-dir/test_stack.py | tyler-fishbone/data-structures-and-algorithms | 29790f2672d3ddb0aadf62725f28180b092f4568 | [
"MIT"
] | null | null | null | import pytest
from stack import Stack
from node import Node
# init
def test_empty_stack_has_no_top(empty_stack):
"""
check top of empty string is 0
"""
assert empty_stack.top is None
def test_full_stack_top_is_correct_valid(one_nine_stack):
"""
tests top of valid stack is expected value
"... | 22.589474 | 72 | 0.688257 | 333 | 2,146 | 4.147147 | 0.198198 | 0.123099 | 0.147719 | 0.091238 | 0.398262 | 0.22013 | 0.152064 | 0.102824 | 0.102824 | 0.102824 | 0 | 0.005995 | 0.22274 | 2,146 | 95 | 73 | 22.589474 | 0.821942 | 0.290774 | 0 | 0.064516 | 0 | 0 | 0.003033 | 0 | 0 | 0 | 0 | 0 | 0.419355 | 1 | 0.419355 | false | 0 | 0.096774 | 0 | 0.516129 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7aa5aedfd32d07fb796f4c237523a2a10a9546d4 | 22 | py | Python | base/services/__init__.py | musicmash/notify | 0f1c72207979e812c6485238da32ca7f5b463859 | [
"MIT"
] | null | null | null | base/services/__init__.py | musicmash/notify | 0f1c72207979e812c6485238da32ca7f5b463859 | [
"MIT"
] | 86 | 2020-07-13T11:14:24.000Z | 2022-03-25T01:10:30.000Z | base/services/__init__.py | musicmash/notify | 0f1c72207979e812c6485238da32ca7f5b463859 | [
"MIT"
] | null | null | null | TELEGRAM = "telegram"
| 11 | 21 | 0.727273 | 2 | 22 | 8 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 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 |
7aad6d65afb98352f88c6e331b755e65323a2307 | 1,626 | py | Python | Food_recognition/forward.py | KiaKafaei1/Data_Science_Portfolio | 9bfa29632d664c6bad9589106e47a455041f0d2c | [
"MIT"
] | null | null | null | Food_recognition/forward.py | KiaKafaei1/Data_Science_Portfolio | 9bfa29632d664c6bad9589106e47a455041f0d2c | [
"MIT"
] | null | null | null | Food_recognition/forward.py | KiaKafaei1/Data_Science_Portfolio | 9bfa29632d664c6bad9589106e47a455041f0d2c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""forward.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1xeF3yjIY5hCawL6k8hT2mRPnzekYL-GJ
"""
# Commented out IPython magic to ensure Python compatibility.
# %matplotlib inline
import matplotlib
import numpy as np
impor... | 26.655738 | 147 | 0.792743 | 233 | 1,626 | 5.334764 | 0.437768 | 0.022526 | 0.020917 | 0.038616 | 0.078842 | 0.03218 | 0 | 0 | 0 | 0 | 0 | 0.011503 | 0.144526 | 1,626 | 60 | 148 | 27.1 | 0.882099 | 0.223862 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.636364 | 0 | 0.69697 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8f8246c46a4cbb8e9a8c886dbf143673355aafa9 | 851 | py | Python | src/xsd_trips/models/trip_manager.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 2 | 2017-08-14T14:40:17.000Z | 2019-02-07T13:10:23.000Z | src/xsd_trips/models/trip_manager.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 19 | 2016-02-07T18:02:53.000Z | 2019-11-03T17:48:13.000Z | src/xsd_trips/models/trip_manager.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 4 | 2015-10-19T17:24:35.000Z | 2021-05-12T07:30:32.000Z |
import datetime
from django.db import models
from .trip_state import *
class TripManager(models.Manager):
def all(self, *args, **kwargs):
return super(TripManager, self).all(*args, **kwargs).order_by('date_start')
def upcoming_all(self):
return self.filter(date_start__gte=datetime.date.tod... | 31.518519 | 118 | 0.692127 | 116 | 851 | 4.87931 | 0.396552 | 0.079505 | 0.077739 | 0.113074 | 0.263251 | 0.229682 | 0.134276 | 0.134276 | 0 | 0 | 0 | 0.002849 | 0.175088 | 851 | 26 | 119 | 32.730769 | 0.803419 | 0.119859 | 0 | 0 | 0 | 0 | 0.056088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.214286 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8fa2596d226dede231e2af39c1d1f29606559512 | 737 | py | Python | tbr_reg/metrics/adjusted_r2.py | ucl-tbr-group-project/regression | ab02f62cdf83ffc43d9b8e88b0c1833190d65b95 | [
"MIT"
] | null | null | null | tbr_reg/metrics/adjusted_r2.py | ucl-tbr-group-project/regression | ab02f62cdf83ffc43d9b8e88b0c1833190d65b95 | [
"MIT"
] | null | null | null | tbr_reg/metrics/adjusted_r2.py | ucl-tbr-group-project/regression | ab02f62cdf83ffc43d9b8e88b0c1833190d65b95 | [
"MIT"
] | null | null | null | from sklearn.metrics import r2_score
from .basic_metric import RegressionMetric
class AdjustedR2Factory:
def __init__(self):
self.id = AdjustedR2Score().id
def init_metric(self):
return AdjustedR2Score()
class AdjustedR2Score(RegressionMetric):
'''Adjusted R2 score, implemented as an e... | 25.413793 | 95 | 0.622795 | 97 | 737 | 4.505155 | 0.443299 | 0.048055 | 0.050343 | 0.045767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037906 | 0.248304 | 737 | 28 | 96 | 26.321429 | 0.750903 | 0.115332 | 0 | 0.111111 | 0 | 0 | 0.06192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8faec749d84af4d6f3c1308fe175397e0f4f7575 | 82 | py | Python | Knight-Rank/DAY-10/299A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | 2 | 2021-12-09T18:07:46.000Z | 2022-01-26T16:51:18.000Z | Knight-Rank/DAY-10/299A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | null | null | null | Knight-Rank/DAY-10/299A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | null | null | null | a=sorted(map(int,[*open(0)][1].split()))
print([a[0],-1][any(x%a[0] for x in a)])
| 27.333333 | 40 | 0.54878 | 20 | 82 | 2.25 | 0.65 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0.073171 | 82 | 2 | 41 | 41 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8fc02a6aa5537248705ef4236720b58d33ca4118 | 1,122 | py | Python | cyborg/agent/manager.py | my-HenryS/cyborg | df8fba42769c2ef4bf339ec75661b683197bb481 | [
"Apache-2.0"
] | null | null | null | cyborg/agent/manager.py | my-HenryS/cyborg | df8fba42769c2ef4bf339ec75661b683197bb481 | [
"Apache-2.0"
] | null | null | null | cyborg/agent/manager.py | my-HenryS/cyborg | df8fba42769c2ef4bf339ec75661b683197bb481 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 29.526316 | 75 | 0.706774 | 158 | 1,122 | 4.911392 | 0.607595 | 0.07732 | 0.033505 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007839 | 0.2041 | 1,122 | 37 | 76 | 30.324324 | 0.861142 | 0.537433 | 0 | 0.153846 | 0 | 0 | 0.006048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.153846 | 0.153846 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8fd25931fca31f69c45a1fb4f9cc7008ea506821 | 733 | py | Python | pyblas/level1/scabs1.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | null | null | null | pyblas/level1/scabs1.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | 1 | 2020-10-10T23:23:06.000Z | 2020-10-10T23:23:06.000Z | pyblas/level1/scabs1.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def scabs1(Z):
"""Computes the sum of the absolute value of real and imaginary components of z
Parameters
----------
Z : numpy.complex64
The single-precision complex number z
Returns
-------
numpy.single
See Also
--------
dcabs1 : Double-precision ... | 22.90625 | 113 | 0.623465 | 96 | 733 | 4.760417 | 0.614583 | 0.030635 | 0.026258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028319 | 0.229195 | 733 | 31 | 114 | 23.645161 | 0.780531 | 0.766712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8fe3cdb902097bf303cd3f2a090cbb0449ef70f9 | 1,486 | py | Python | ccdb/locations/migrations/0003_DATA_reset_sequences.py | thermokarst/ccdb-api | 01d76d75ffaaa9949991cdc3ac43b9ae388ad2a6 | [
"MIT"
] | null | null | null | ccdb/locations/migrations/0003_DATA_reset_sequences.py | thermokarst/ccdb-api | 01d76d75ffaaa9949991cdc3ac43b9ae388ad2a6 | [
"MIT"
] | 24 | 2017-01-09T12:51:13.000Z | 2018-04-30T17:40:27.000Z | ccdb/locations/migrations/0003_DATA_reset_sequences.py | thermokarst/ccdb-api | 01d76d75ffaaa9949991cdc3ac43b9ae388ad2a6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-12-18 13:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('locations', '0002_DATA_initial'),
]
operations = [
migrations.RunSQL(
"... | 29.137255 | 75 | 0.612382 | 155 | 1,486 | 5.6 | 0.258065 | 0.138249 | 0.241935 | 0.16129 | 0.690092 | 0.671659 | 0.394009 | 0.394009 | 0.221198 | 0 | 0 | 0.028598 | 0.270525 | 1,486 | 50 | 76 | 29.72 | 0.77214 | 0.04576 | 0 | 0.30303 | 1 | 0 | 0.562544 | 0.325795 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 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 |
8fea0776d4a8780e3559258aa5eb516ac439e66a | 266 | py | Python | monitor/views/__init__.py | victorfsf/github-monitor | 7192827d44ca616c0914864770f8f7910cbe55b3 | [
"MIT"
] | 1 | 2020-04-04T20:55:20.000Z | 2020-04-04T20:55:20.000Z | monitor/views/__init__.py | victorfsf/github-monitor | 7192827d44ca616c0914864770f8f7910cbe55b3 | [
"MIT"
] | null | null | null | monitor/views/__init__.py | victorfsf/github-monitor | 7192827d44ca616c0914864770f8f7910cbe55b3 | [
"MIT"
] | null | null | null | from .viewsets import CommitViewSet
from .viewsets import RepositoryViewSet
from .viewsets import RepositoryCommitsViewSet
from .hub import hub_webhook_view
__all__ = [
'RepositoryViewSet', 'CommitViewSet',
'RepositoryCommitsViewSet', 'hub_webhook_view'
]
| 24.181818 | 50 | 0.804511 | 25 | 266 | 8.24 | 0.4 | 0.174757 | 0.262136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 266 | 10 | 51 | 26.6 | 0.887931 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 0.090226 | 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 |
8ffea1abefb7a5516d76ff0559f68b9b60277a31 | 974 | py | Python | agon_ratings/categories.py | GeoNode/geonode-ratings | fb66307235286b6d14c5c24e55c089ffa34d5578 | [
"BSD-3-Clause"
] | null | null | null | agon_ratings/categories.py | GeoNode/geonode-ratings | fb66307235286b6d14c5c24e55c089ffa34d5578 | [
"BSD-3-Clause"
] | 5 | 2016-02-23T16:54:34.000Z | 2017-06-23T22:16:52.000Z | agon_ratings/categories.py | GeoNode/geonode-ratings | fb66307235286b6d14c5c24e55c089ffa34d5578 | [
"BSD-3-Clause"
] | 4 | 2016-02-23T16:54:48.000Z | 2018-03-01T14:07:43.000Z | from django.conf import settings
RATING_CATEGORY_CHOICES_DICT = getattr(settings, "AGON_RATINGS_CATEGORY_CHOICES", {})
RATING_CATEGORY_CHOICES = []
RATING_CATEGORY_LOOKUP = {}
if len(RATING_CATEGORY_CHOICES_DICT.keys()) > 0:
for model_str in RATING_CATEGORY_CHOICES_DICT.keys():
for choice in RATING_CATEGO... | 33.586207 | 85 | 0.708419 | 134 | 974 | 4.791045 | 0.30597 | 0.239875 | 0.261682 | 0.194704 | 0.241433 | 0.105919 | 0.105919 | 0.105919 | 0.105919 | 0.105919 | 0 | 0.002491 | 0.175565 | 974 | 28 | 86 | 34.785714 | 0.797011 | 0 | 0 | 0 | 0 | 0 | 0.048255 | 0.029774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0.1 | 0.35 | 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 |
8905aefb26e2d8e5c53cba4681dc8fb9bd8ccefe | 558 | py | Python | src/apps/admin.py | revanth-reddy/ns-3-Appstore | 32ac93acf1c9a721adf9f43c0799d6daff9beb7f | [
"MIT"
] | null | null | null | src/apps/admin.py | revanth-reddy/ns-3-Appstore | 32ac93acf1c9a721adf9f43c0799d6daff9beb7f | [
"MIT"
] | null | null | null | src/apps/admin.py | revanth-reddy/ns-3-Appstore | 32ac93acf1c9a721adf9f43c0799d6daff9beb7f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from models import Tag, App, Release, NsRelease, Comment, Screenshot, \
Maintenance, Installation, Download, Development
# Register your models here.
admin.site.register(Tag)
admin.site.register(App)
admin.site.re... | 29.368421 | 71 | 0.795699 | 70 | 558 | 6.271429 | 0.371429 | 0.205011 | 0.387244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001976 | 0.09319 | 558 | 18 | 72 | 31 | 0.865613 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.214286 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
890fe220b10129cb422daccbcb55b05f67308d40 | 71 | py | Python | software/kilsyth/host/__init__.py | kbeckmann/Kilsyth | 897d19073c10668ae0109cee6095f0a1215c139d | [
"0BSD"
] | 5 | 2020-09-18T22:31:06.000Z | 2022-03-01T17:52:50.000Z | software/kilsyth_migen/host/__init__.py | kamejoko80/Kilsyth | 897d19073c10668ae0109cee6095f0a1215c139d | [
"0BSD"
] | null | null | null | software/kilsyth_migen/host/__init__.py | kamejoko80/Kilsyth | 897d19073c10668ae0109cee6095f0a1215c139d | [
"0BSD"
] | 2 | 2020-10-18T09:37:34.000Z | 2021-12-02T09:13:58.000Z | from .ftd3xx_wrapper import FTD3xxWrapper
__all__ = ["FTD3xxWrapper"]
| 17.75 | 41 | 0.802817 | 7 | 71 | 7.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.112676 | 71 | 3 | 42 | 23.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 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 |
8f1a272ad545bcf98075e6d855201cdf4b6e2eca | 516 | py | Python | app/schema/indbetaling_post_schema.py | kirkenskorshaer/of2mscrm | af36db6f5012a80486f59a3d54f7539870a27cff | [
"Unlicense"
] | null | null | null | app/schema/indbetaling_post_schema.py | kirkenskorshaer/of2mscrm | af36db6f5012a80486f59a3d54f7539870a27cff | [
"Unlicense"
] | null | null | null | app/schema/indbetaling_post_schema.py | kirkenskorshaer/of2mscrm | af36db6f5012a80486f59a3d54f7539870a27cff | [
"Unlicense"
] | null | null | null | def get_schema():
return {
'type': 'object',
'properties': {
'aftale':
{
'type': 'object',
'properties':
{
'aftale_id': {'type': 'string'},
'charge_ts': {'type': 'string'},
'gateway_fejlkode': {'type': 'string'}
},
'required': ['aftale_id', 'charge_ts', 'gateway_fejlkode']
... | 18.428571 | 62 | 0.498062 | 42 | 516 | 5.952381 | 0.404762 | 0.16 | 0.24 | 0.208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261628 | 516 | 27 | 63 | 19.111111 | 0.656168 | 0 | 0 | 0.185185 | 0 | 0 | 0.46124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | true | 0 | 0 | 0.037037 | 0.074074 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f1b26317298bf48fc5122defcd39a003e4e20b2 | 327 | py | Python | tests/test_wallet.py | Tasari/Restaurant_system | bc0127e0060c54c17abb7aa78800da7bd5bc12cb | [
"MIT"
] | null | null | null | tests/test_wallet.py | Tasari/Restaurant_system | bc0127e0060c54c17abb7aa78800da7bd5bc12cb | [
"MIT"
] | null | null | null | tests/test_wallet.py | Tasari/Restaurant_system | bc0127e0060c54c17abb7aa78800da7bd5bc12cb | [
"MIT"
] | null | null | null | from wallet import Wallet
def test_wallet_creation():
'''
Tests valid creation of wallet
'''
wallet = Wallet(5000)
assert wallet.money == 5000
def test_wallet_add_money():
'''
Tests adding money to wallet
'''
wallet = Wallet(5000)
wallet.add_money(2500)
assert wallet.money ... | 20.4375 | 34 | 0.648318 | 41 | 327 | 5.02439 | 0.414634 | 0.23301 | 0.126214 | 0.213592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.250765 | 327 | 16 | 35 | 20.4375 | 0.759184 | 0.180428 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f21b99a1993ee4eaf2735f9e96b0cc50bae6593 | 22 | py | Python | snippet/management/__init__.py | aither64/havesnippet | 283bf2c66141b3950f93407c67f1e60a4100978b | [
"MIT"
] | 4 | 2016-08-15T18:20:08.000Z | 2022-01-02T18:08:42.000Z | snippet/management/commands/__init__.py | aither64/havesnippet | 283bf2c66141b3950f93407c67f1e60a4100978b | [
"MIT"
] | null | null | null | snippet/management/commands/__init__.py | aither64/havesnippet | 283bf2c66141b3950f93407c67f1e60a4100978b | [
"MIT"
] | null | null | null | __author__ = 'aither'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
8f3a4a69822e0f90ee32f06eb5010688a17fa7b0 | 4,993 | py | Python | webapp/grua/settings.py | thiagopena/grua | d8b56d2b205c092a06866fffa689f0d831d1b338 | [
"Apache-2.0"
] | 17 | 2018-08-28T20:58:32.000Z | 2021-03-16T05:28:12.000Z | webapp/grua/settings.py | thiagopena/grua | d8b56d2b205c092a06866fffa689f0d831d1b338 | [
"Apache-2.0"
] | 33 | 2018-11-23T16:18:58.000Z | 2022-02-11T12:32:47.000Z | webapp/grua/settings.py | thiagopena/grua | d8b56d2b205c092a06866fffa689f0d831d1b338 | [
"Apache-2.0"
] | 11 | 2018-11-05T17:34:59.000Z | 2021-11-25T12:24:46.000Z | """
Django settings for GRUA project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Buil... | 29.544379 | 90 | 0.708993 | 552 | 4,993 | 6.271739 | 0.40942 | 0.063836 | 0.039284 | 0.050549 | 0.141248 | 0.122184 | 0.077123 | 0.077123 | 0.034662 | 0 | 0 | 0.010409 | 0.153415 | 4,993 | 168 | 91 | 29.720238 | 0.808611 | 0.222512 | 0 | 0.019048 | 1 | 0 | 0.557977 | 0.44773 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.07619 | 0.009524 | 0 | 0.009524 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8f414c4546d2b0a8876e885f7e0f4914d7b57e1b | 2,923 | py | Python | skills_ml/ontologies/clustering.py | bhagyaramgpo/skills-ml | be520fc2a2f88bff756d25e57c3378a465a1dcb2 | [
"MIT"
] | 147 | 2016-12-05T19:45:05.000Z | 2022-02-17T03:03:28.000Z | skills_ml/ontologies/clustering.py | bhagyaramgpo/skills-ml | be520fc2a2f88bff756d25e57c3378a465a1dcb2 | [
"MIT"
] | 390 | 2016-12-02T03:11:13.000Z | 2022-03-28T22:08:20.000Z | skills_ml/ontologies/clustering.py | bhagyaramgpo/skills-ml | be520fc2a2f88bff756d25e57c3378a465a1dcb2 | [
"MIT"
] | 66 | 2017-12-14T16:33:24.000Z | 2022-02-17T03:03:31.000Z | from collections import MutableMapping, KeysView
class KeysViewOnlyKeys(KeysView):
# Subclass that just changes the representation.
def __repr__(self):
return f"{self.__class__.__name__}({list(self)})"
class Clustering(MutableMapping):
""" A clustering object acting like a dictionary which key is... | 37 | 116 | 0.670202 | 390 | 2,923 | 4.753846 | 0.307692 | 0.077131 | 0.052859 | 0.064725 | 0.212513 | 0.14671 | 0.078749 | 0 | 0 | 0 | 0 | 0 | 0.258981 | 2,923 | 78 | 117 | 37.474359 | 0.855956 | 0.491618 | 0 | 0 | 0 | 0 | 0.028322 | 0.028322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.028571 | 0.2 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8f5ac534b87521fbaca05581db06a7e73f147337 | 1,998 | py | Python | Tile.py | Notabela/2048 | f6ad5f8cfad9b84f1a113a8f69eecd10ea74f656 | [
"Apache-2.0"
] | null | null | null | Tile.py | Notabela/2048 | f6ad5f8cfad9b84f1a113a8f69eecd10ea74f656 | [
"Apache-2.0"
] | null | null | null | Tile.py | Notabela/2048 | f6ad5f8cfad9b84f1a113a8f69eecd10ea74f656 | [
"Apache-2.0"
] | null | null | null | """
Tile Class representing a 2048 tile
"""
class Tile:
# Tile with value = 0 is an empty tile
def __init__(self, value: int, row: int=0, col: int=0):
self.value = value
self.row = row
self.col = col
# References to tile that formed this
self.source = None
sel... | 24.975 | 72 | 0.601602 | 270 | 1,998 | 4.203704 | 0.251852 | 0.134802 | 0.172687 | 0.211454 | 0.462555 | 0.462555 | 0.377974 | 0.348018 | 0 | 0 | 0 | 0.005047 | 0.305806 | 1,998 | 80 | 73 | 24.975 | 0.813266 | 0.17968 | 0 | 0.170213 | 0 | 0 | 0.015375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.340426 | false | 0 | 0 | 0.276596 | 0.659574 | 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 | 1 | 0 | 0 | 0 | 3 |
8f6c85b696643e03166562a5ff9c9be130e00abb | 694 | py | Python | PyPowerStore/tests/unit_tests/test_vcenter.py | dell/python-powerstore | 04d6d73e4c926cf0d347cf68b24f8f11ff80f565 | [
"Apache-2.0"
] | 15 | 2020-05-06T23:46:44.000Z | 2021-12-14T08:04:48.000Z | PyPowerStore/tests/unit_tests/test_vcenter.py | dell/python-powerstore | 04d6d73e4c926cf0d347cf68b24f8f11ff80f565 | [
"Apache-2.0"
] | 2 | 2020-06-09T15:19:25.000Z | 2020-08-18T18:58:59.000Z | PyPowerStore/tests/unit_tests/test_vcenter.py | dell/python-powerstore | 04d6d73e4c926cf0d347cf68b24f8f11ff80f565 | [
"Apache-2.0"
] | 5 | 2020-05-06T23:46:22.000Z | 2021-05-08T03:03:07.000Z | from PyPowerStore.tests.unit_tests.base_test import TestBase
class TestVcenter(TestBase):
def test_modify_vcenter(self):
vcenter_details = self.configuration.modify_vcenter(
self.data.vcenter_id1, self.data.vasa_provider_credentials)
self.assertEqual(vcenter_details, self.data.vcenter... | 38.555556 | 87 | 0.756484 | 84 | 694 | 5.940476 | 0.309524 | 0.224449 | 0.216433 | 0.132265 | 0.452906 | 0.204409 | 0.204409 | 0.204409 | 0 | 0 | 0 | 0.003448 | 0.164265 | 694 | 17 | 88 | 40.823529 | 0.856897 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f6e94f77d755dccc3f3841cc1d9fcab4840c8b4 | 115 | py | Python | URIonlinejudge/1007 - Difference.py | MahmudX/Algorithms | df498929b5d3fc0f0d558b3369c2aa9804c292f1 | [
"MIT"
] | null | null | null | URIonlinejudge/1007 - Difference.py | MahmudX/Algorithms | df498929b5d3fc0f0d558b3369c2aa9804c292f1 | [
"MIT"
] | null | null | null | URIonlinejudge/1007 - Difference.py | MahmudX/Algorithms | df498929b5d3fc0f0d558b3369c2aa9804c292f1 | [
"MIT"
] | null | null | null | A = int(input())
B = int(input())
C = int(input())
D = int(input())
print("DIFERENCA =", ((A * B) - (C * D)))
| 19.166667 | 42 | 0.469565 | 18 | 115 | 3 | 0.444444 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226087 | 115 | 5 | 43 | 23 | 0.606742 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
56ab582967c51829a4686b501ee4daadbfee89a6 | 1,638 | py | Python | apps/product/migrations/0002_auto_20180714_1406.py | jakejie/ShopPro | f0cec134ae77f4449f15a0219123d6a6bce2aad2 | [
"Apache-2.0"
] | 1 | 2019-04-20T16:58:02.000Z | 2019-04-20T16:58:02.000Z | apps/product/migrations/0002_auto_20180714_1406.py | jakejie/ShopPro | f0cec134ae77f4449f15a0219123d6a6bce2aad2 | [
"Apache-2.0"
] | 6 | 2020-06-05T19:57:58.000Z | 2021-09-08T00:49:17.000Z | apps/product/migrations/0002_auto_20180714_1406.py | jakejie/ShopPro | f0cec134ae77f4449f15a0219123d6a6bce2aad2 | [
"Apache-2.0"
] | 1 | 2021-09-10T18:29:28.000Z | 2021-09-10T18:29:28.000Z | # Generated by Django 2.0.7 on 2018-07-14 14:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='catalog',
f... | 30.333333 | 84 | 0.545177 | 148 | 1,638 | 5.898649 | 0.351351 | 0.082474 | 0.146621 | 0.183276 | 0.728522 | 0.728522 | 0.112257 | 0.112257 | 0.112257 | 0 | 0 | 0.023277 | 0.318071 | 1,638 | 53 | 85 | 30.90566 | 0.758281 | 0.027473 | 0 | 0.510638 | 1 | 0 | 0.09868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56d2216ef31bde82310b38979a2b916426ebd4c4 | 276 | py | Python | Tokens/Token.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | Tokens/Token.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | Tokens/Token.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | # Token -- Base class for Token objects
from Tokens import TokenType
class Token:
def __init__(self, t):
self.tt = t
def getType(self):
return self.tt
if __name__ == "__main__":
tok = Token(TokenType.DOT)
print(tok.getType())
| 18.4 | 40 | 0.601449 | 35 | 276 | 4.4 | 0.628571 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297101 | 276 | 14 | 41 | 19.714286 | 0.793814 | 0.134058 | 0 | 0 | 0 | 0 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0.111111 | 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 |
56f621c46a5c956b50899dfd44b9131fec6c4a19 | 1,429 | py | Python | eprints2archives/exceptions.py | caltechlibrary/eprints2archives | 367266f6d006004604de6c5013cebe3ba46a919d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-09-09T17:18:52.000Z | 2020-09-09T17:18:52.000Z | eprints2archives/exceptions.py | caltechlibrary/eprints2archives | 367266f6d006004604de6c5013cebe3ba46a919d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-03T18:29:28.000Z | 2020-10-02T19:05:21.000Z | eprints2archives/exceptions.py | caltechlibrary/eprints2archives | 367266f6d006004604de6c5013cebe3ba46a919d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | '''
exceptions.py: exceptions defined by eprints2archives
Authors
-------
Michael Hucka <mhucka@caltech.edu> -- Caltech Library
Copyright
---------
Copyright (c) 2020-2021 by the California Institute of Technology. This code
is open-source software released under a 3-clause BSD license. Please see the
file "LICEN... | 28.019608 | 79 | 0.671099 | 138 | 1,429 | 6.949275 | 0.630435 | 0.037539 | 0.043796 | 0.039625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015523 | 0.143457 | 1,429 | 50 | 80 | 28.58 | 0.767974 | 0.696991 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
56f90532ec98bfc426e09105ecade72bed9b5ede | 1,106 | py | Python | OOP/mate.py | agustashd/Learning-Python | b54e3c4a0a6e10bbb0dab396a4cd20ac454ea5be | [
"MIT"
] | null | null | null | OOP/mate.py | agustashd/Learning-Python | b54e3c4a0a6e10bbb0dab396a4cd20ac454ea5be | [
"MIT"
] | null | null | null | OOP/mate.py | agustashd/Learning-Python | b54e3c4a0a6e10bbb0dab396a4cd20ac454ea5be | [
"MIT"
] | null | null | null | '''
Ejercicio 14.7.6. Modelar una clase Mate que describa el funcionamiento de la conocida bebida
tradicional local. La clase debe contener como miembros:
a) Un atributo para la cantidad de cebadas restantes hasta que se lava el mate (representada
por un número).
b) Un atributo para el estado (lleno o vacío).
c) ... | 58.210526 | 94 | 0.766727 | 192 | 1,106 | 4.416667 | 0.505208 | 0.049528 | 0.042453 | 0.053066 | 0.195755 | 0.101415 | 0.101415 | 0.101415 | 0.101415 | 0 | 0 | 0.005587 | 0.190778 | 1,106 | 18 | 95 | 61.444444 | 0.941899 | 0.975588 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.111111 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
710c7e4883767f9492fefa7cf74a46b7fcc0eb1e | 191 | py | Python | cotidia/account/tests/profile/models.py | hayden5-mwac/cotidia-account | 5b38a796879ba58781214e4c9d9b1765809d7f77 | [
"BSD-3-Clause"
] | null | null | null | cotidia/account/tests/profile/models.py | hayden5-mwac/cotidia-account | 5b38a796879ba58781214e4c9d9b1765809d7f77 | [
"BSD-3-Clause"
] | 11 | 2020-02-11T23:43:59.000Z | 2022-03-11T23:40:41.000Z | cotidia/account/tests/profile/models.py | hayden5-mwac/cotidia-account | 5b38a796879ba58781214e4c9d9b1765809d7f77 | [
"BSD-3-Clause"
] | 1 | 2020-05-18T20:56:35.000Z | 2020-05-18T20:56:35.000Z | from django.db import models
class Profile(models.Model):
user = models.OneToOneField('account.User', on_delete=models.CASCADE)
company = models.CharField(max_length=50, null=True)
| 27.285714 | 73 | 0.759162 | 26 | 191 | 5.5 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.125654 | 191 | 6 | 74 | 31.833333 | 0.844311 | 0 | 0 | 0 | 0 | 0 | 0.062827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7112a29106bf37cf6bc2145ee236e9203ae76bb6 | 1,027 | py | Python | python/projects/learnpythonthehardway.org/ex28.py | zhaoace/codecraft | bf06267e86bd7386714911b0df4aa0ca0a91d882 | [
"Unlicense"
] | null | null | null | python/projects/learnpythonthehardway.org/ex28.py | zhaoace/codecraft | bf06267e86bd7386714911b0df4aa0ca0a91d882 | [
"Unlicense"
] | null | null | null | python/projects/learnpythonthehardway.org/ex28.py | zhaoace/codecraft | bf06267e86bd7386714911b0df4aa0ca0a91d882 | [
"Unlicense"
] | null | null | null | answers = []
answers.append( True and True)
answers.append( False and True )
answers.append( 1 == 1 and 2 == 1 )
answers.append( "test" == "test" )
answers.append( 1 == 1 or 2 != 1 )
answers.append( True and 1==1 )
answers.append( False and 0!= 0 )
answers.append( True or... | 41.08 | 85 | 0.526777 | 140 | 1,027 | 3.864286 | 0.171429 | 0.480592 | 0.181146 | 0.083179 | 0.249538 | 0.18854 | 0.140481 | 0 | 0 | 0 | 0 | 0.069832 | 0.302824 | 1,027 | 24 | 86 | 42.791667 | 0.685754 | 0 | 0 | 0 | 0 | 0 | 0.099701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.045455 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7119930ac5e8cdc8d66ca17d0983a7d6653f9e9d | 1,184 | py | Python | tests/hdb_connector/init_test.py | Simranpal/shaptools-experiments | ba33ea910d274225bf8e15fd3fedb57cb54847e5 | [
"Apache-2.0"
] | 10 | 2019-03-21T09:27:19.000Z | 2022-03-30T13:46:30.000Z | tests/hdb_connector/init_test.py | Simranpal/shaptools-experiments | ba33ea910d274225bf8e15fd3fedb57cb54847e5 | [
"Apache-2.0"
] | 22 | 2019-02-22T14:50:25.000Z | 2022-02-02T16:39:32.000Z | tests/hdb_connector/init_test.py | Simranpal/shaptools-experiments | ba33ea910d274225bf8e15fd3fedb57cb54847e5 | [
"Apache-2.0"
] | 10 | 2019-03-12T15:55:07.000Z | 2021-06-23T11:45:23.000Z | """
Unitary tests for hdb_connector/__init__.py.
:author: xarbulu
:organization: SUSE LLC
:contact: xarbulu@suse.com
:since: 2019-05-14
"""
# pylint:disable=C0103,C0111,W0212,W0611
import os
import sys
import logging
import unittest
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))... | 19.409836 | 82 | 0.639358 | 132 | 1,184 | 5.590909 | 0.575758 | 0.065041 | 0.04065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028153 | 0.25 | 1,184 | 60 | 83 | 19.733333 | 0.802928 | 0.221284 | 0 | 0.086957 | 0 | 0 | 0.038414 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.217391 | false | 0 | 0.391304 | 0 | 0.652174 | 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 |
8571cc469ffc1480ea1e2c1b676bb82f63b17fa4 | 162 | py | Python | mydjangoapp/mydjangoapp/redisconf.py | wenxinwilliam/async-task-message-queue | aecd786caaed751b76554c6262c9fc19187c3951 | [
"MIT"
] | 8 | 2015-08-26T12:17:32.000Z | 2018-06-13T16:13:32.000Z | mydjangoapp/mydjangoapp/redisconf.py | wenxinwilliam/async-task-message-queue | aecd786caaed751b76554c6262c9fc19187c3951 | [
"MIT"
] | null | null | null | mydjangoapp/mydjangoapp/redisconf.py | wenxinwilliam/async-task-message-queue | aecd786caaed751b76554c6262c9fc19187c3951 | [
"MIT"
] | 3 | 2017-07-14T19:20:49.000Z | 2019-03-24T06:45:22.000Z | from django.conf import settings
import redis
redis_conn = redis.StrictRedis(
host=settings.REDIS_HOST,
port=settings.REDIS_PORT,
db=settings.USER_TOKEN_DB,
) | 20.25 | 32 | 0.814815 | 24 | 162 | 5.291667 | 0.541667 | 0.204724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 162 | 8 | 33 | 20.25 | 0.869863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
85806d7fdfa88c7c36bf0de3cec0e84b9916a78c | 799 | py | Python | examples/grid.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | 1 | 2021-12-04T21:37:41.000Z | 2021-12-04T21:37:41.000Z | examples/grid.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | null | null | null | examples/grid.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | null | null | null | # This example shows how to iterate over a grid of parameters.
import exhaust
def generate_combination(state: exhaust.State):
return {
'integer': state.randint(1, 5),
'bool': state.maybe(),
'choice': state.choice([1, None, 'foo', ['bar']])
}
for combination in exhaust.space(generate_c... | 30.730769 | 62 | 0.583229 | 99 | 799 | 4.686869 | 0.363636 | 0.137931 | 0.206897 | 0.137931 | 0.422414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022831 | 0.177722 | 799 | 25 | 63 | 31.96 | 0.683409 | 0.600751 | 0 | 0 | 1 | 0 | 0.075163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 3 |
85815b1efe8555ff191b6c1c5ddde5b5203fbcf5 | 137 | py | Python | tests/scripts/create_db.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null | tests/scripts/create_db.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null | tests/scripts/create_db.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null | from flask_app.create_db import create
from qaviton.utils import path
db = path.of(__file__)('../../flask_app/database.db')
create(db)
| 19.571429 | 53 | 0.751825 | 22 | 137 | 4.363636 | 0.545455 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10219 | 137 | 6 | 54 | 22.833333 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0.19708 | 0.19708 | 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 |
858a39bd706ad8bbe3a54aff9f77ae257ba3e846 | 77 | py | Python | del_img_comments/skip.py | hpfilho/FlickrTasks | fdf1a08e8b1db41324edf9f49d7268c5af38434a | [
"MIT"
] | 1 | 2022-02-05T06:36:37.000Z | 2022-02-05T06:36:37.000Z | del_img_comments/skip.py | hpfilho/FlickrTasks | fdf1a08e8b1db41324edf9f49d7268c5af38434a | [
"MIT"
] | null | null | null | del_img_comments/skip.py | hpfilho/FlickrTasks | fdf1a08e8b1db41324edf9f49d7268c5af38434a | [
"MIT"
] | 1 | 2021-02-14T19:00:33.000Z | 2021-02-14T19:00:33.000Z | list = (
'30622510@N02',
'hpfilho',
'fr_unofficial',
'steve-wilkinson.net'
)
| 11 | 21 | 0.675325 | 9 | 77 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 0.103896 | 77 | 6 | 22 | 12.833333 | 0.594203 | 0 | 0 | 0 | 0 | 0 | 0.662338 | 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 |
85ae5d38e40471812187e3ecc9344c0b04a52219 | 458 | py | Python | app/forms/DMForm.py | TolulopeVerissimo/InstantaneousGramme | adb1d6f61146bfbcc8c501564b94ce009271276a | [
"MIT",
"Unlicense"
] | 5 | 2021-02-19T19:07:35.000Z | 2021-04-09T11:35:45.000Z | app/forms/DMForm.py | TolulopeVerissimo/InstantaneousGramme | adb1d6f61146bfbcc8c501564b94ce009271276a | [
"MIT",
"Unlicense"
] | 55 | 2021-02-23T08:16:06.000Z | 2021-08-10T18:04:06.000Z | app/forms/DMForm.py | TolulopeVerissimo/InstantaneousGramme | adb1d6f61146bfbcc8c501564b94ce009271276a | [
"MIT",
"Unlicense"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField
from wtforms.validators import DataRequired, Length
class DMForm(FlaskForm):
senderId = IntegerField("senderId", validators=[DataRequired()])
receiverId = IntegerField("receiverId", validators=[DataRequired()])
message = StringF... | 50.888889 | 159 | 0.772926 | 51 | 458 | 6.921569 | 0.54902 | 0.186969 | 0.164306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017157 | 0.10917 | 458 | 9 | 159 | 50.888889 | 0.848039 | 0 | 0 | 0 | 0 | 0 | 0.159041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a41155d50c980673edb45f2d33df3c60c15a9c5b | 438 | py | Python | main.py | monknomo/thriller-novel-name-generator | 6ca03df733164cd917d80c3a1f8b246dff833810 | [
"MIT"
] | null | null | null | main.py | monknomo/thriller-novel-name-generator | 6ca03df733164cd917d80c3a1f8b246dff833810 | [
"MIT"
] | null | null | null | main.py | monknomo/thriller-novel-name-generator | 6ca03df733164cd917d80c3a1f8b246dff833810 | [
"MIT"
] | null | null | null | from bottle import get, run, error, default_app
import CodeNameGen
app = default_app()
@get('/')
def index():
return "Hello World"
@get('/name')
def random_name():
return {'name': CodeNameGen.get_code_name()}
@error(403)
def error403(code):
return "Error 403, verboten"
@error(404)
def error404(... | 19.043478 | 50 | 0.6621 | 63 | 438 | 4.396825 | 0.555556 | 0.021661 | 0.021661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064246 | 0.182648 | 438 | 23 | 51 | 19.043478 | 0.709497 | 0 | 0 | 0 | 0 | 0 | 0.209567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.235294 | 0.588235 | 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 |
a41557ea4fa7fa459cfba3060422491a3575803a | 1,309 | py | Python | core_marketing/migrations/0024_auto_20210228_0913.py | amenabe22/ashewa_backend | 0c1aba1de3fcb86538482da1b628c68d4e5960a7 | [
"MIT"
] | null | null | null | core_marketing/migrations/0024_auto_20210228_0913.py | amenabe22/ashewa_backend | 0c1aba1de3fcb86538482da1b628c68d4e5960a7 | [
"MIT"
] | null | null | null | core_marketing/migrations/0024_auto_20210228_0913.py | amenabe22/ashewa_backend | 0c1aba1de3fcb86538482da1b628c68d4e5960a7 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-02-28 09:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0013_auto_20210228_0913'),
('core_marketing', '0023_auto_20210225_0901'),
]
operations = [
... | 26.714286 | 115 | 0.554622 | 119 | 1,309 | 5.89916 | 0.478992 | 0.102564 | 0.182336 | 0.22792 | 0.408832 | 0.408832 | 0 | 0 | 0 | 0 | 0 | 0.053653 | 0.330787 | 1,309 | 48 | 116 | 27.270833 | 0.747717 | 0.034377 | 0 | 0.547619 | 1 | 0 | 0.179873 | 0.05309 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.119048 | 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 |
a449ffa5458d8a6f4ee2d32b1df9b6bd9cbd652c | 998 | py | Python | src/king/geometry_attribute/angle.py | KingAirC/KingPaint | 32753c48415c3ed1474c5b5c55388ad6e2201600 | [
"MIT"
] | 1 | 2021-06-11T12:35:12.000Z | 2021-06-11T12:35:12.000Z | src/king/geometry_attribute/angle.py | KingAirC/KingPaint | 32753c48415c3ed1474c5b5c55388ad6e2201600 | [
"MIT"
] | null | null | null | src/king/geometry_attribute/angle.py | KingAirC/KingPaint | 32753c48415c3ed1474c5b5c55388ad6e2201600 | [
"MIT"
] | null | null | null | from ..alg.plane_geometry_alg import get_angle_by_three_point_corr
def get_angle_by_three_point(p1, p2, p3):
return get_angle_by_three_point_corr(*p1.basic_data, *p2.basic_data, *p3.basic_data)
def print_angle_by_three_point_when_change(p1, p2, p3):
p1.append_call_back(lambda point_1: print(get_angle_by_thr... | 35.642857 | 89 | 0.751503 | 176 | 998 | 3.829545 | 0.204545 | 0.114243 | 0.195846 | 0.277448 | 0.68546 | 0.574184 | 0.451039 | 0.353116 | 0.299703 | 0.20178 | 0 | 0.0553 | 0.130261 | 998 | 27 | 90 | 36.962963 | 0.721198 | 0 | 0 | 0 | 0 | 0 | 0.009018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0.058824 | 0.470588 | 0.235294 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a471bbe0601b16b93524e3de284e562d59828d7a | 642 | py | Python | smallrl/main.py | nicklashansen/smallrl | 745589cef49d81770b680a3e719c5fe884240a29 | [
"MIT"
] | null | null | null | smallrl/main.py | nicklashansen/smallrl | 745589cef49d81770b680a3e719c5fe884240a29 | [
"MIT"
] | null | null | null | smallrl/main.py | nicklashansen/smallrl | 745589cef49d81770b680a3e719c5fe884240a29 | [
"MIT"
] | null | null | null | import torch
import numpy as np
import gym
from smallrl import algorithms
from smallrl import buffers
from smallrl import networks
from smallrl import environments
from smallrl import utils
from smallrl import schedules
from smallrl import demos
if __name__ == '__main__':
print('Running smallrl example usage.\nF... | 29.181818 | 110 | 0.76324 | 86 | 642 | 5.546512 | 0.569767 | 0.161426 | 0.249476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020147 | 0.149533 | 642 | 22 | 111 | 29.181818 | 0.85348 | 0.014019 | 0 | 0 | 0 | 0.0625 | 0.224684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0.0625 | 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 |
a475f2a264ae4db51c285a3d988028b9dda77b31 | 133 | py | Python | CyclicGAN/config.py | sarthakforwet/CyclicGAN_API | 8f36f9e8fef860e89f9f3dabb7506ffd2060162f | [
"MIT"
] | 3 | 2021-09-07T05:48:10.000Z | 2021-09-07T06:16:29.000Z | CyclicGAN/config.py | sarthakforwet/CyclicGAN_API | 8f36f9e8fef860e89f9f3dabb7506ffd2060162f | [
"MIT"
] | null | null | null | CyclicGAN/config.py | sarthakforwet/CyclicGAN_API | 8f36f9e8fef860e89f9f3dabb7506ffd2060162f | [
"MIT"
] | null | null | null |
class Configuration:
LAMBDA_CYCLIC = 10
REDUCTION_DISCRIMINATOR = 0.5
OUTPUT_CHANNELS = 3
IMAGE_SIZE = [256, 256, 3] | 22.166667 | 33 | 0.684211 | 17 | 133 | 5.117647 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 0.240602 | 133 | 6 | 34 | 22.166667 | 0.742574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a47e97ce30f09f876b6780ca31bea313fd00788e | 712 | py | Python | app/user/domain/user.py | amazingguni/flask-ddd | 8a789c1db96a8ad4079fdd2957f64b7af710b5b3 | [
"Apache-2.0"
] | 1 | 2022-02-06T14:00:02.000Z | 2022-02-06T14:00:02.000Z | app/user/domain/user.py | amazingguni/flask-ddd | 8a789c1db96a8ad4079fdd2957f64b7af710b5b3 | [
"Apache-2.0"
] | null | null | null | app/user/domain/user.py | amazingguni/flask-ddd | 8a789c1db96a8ad4079fdd2957f64b7af710b5b3 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Boolean, Column, Integer, \
String
from app import db
class User(db.Model):
__tablename__ = 'user'
id = Column(Integer, primary_key=True)
username = Column(String(255), unique=True, nullable=True)
password = Column(String(255), nullable=False)
blocked = Column(Boolean(25... | 22.967742 | 62 | 0.651685 | 87 | 712 | 5.172414 | 0.436782 | 0.111111 | 0.086667 | 0.102222 | 0.244444 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0.02214 | 0.238764 | 712 | 30 | 63 | 23.733333 | 0.808118 | 0 | 0 | 0.217391 | 0 | 0 | 0.026685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.043478 | 0.086957 | 0.217391 | 0.826087 | 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 |
a48683a67c343c4b9dbf8c58106b16364b6d7dd9 | 415 | py | Python | ics/structures/serdespoc_settings.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 45 | 2017-10-17T08:42:08.000Z | 2022-02-21T16:26:48.000Z | ics/structures/serdespoc_settings.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 106 | 2017-03-07T21:10:39.000Z | 2022-03-29T15:32:46.000Z | ics/structures/serdespoc_settings.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 17 | 2017-04-04T12:30:22.000Z | 2022-01-28T05:30:25.000Z | # This file was auto generated; Do not modify, if you value your sanity!
import ctypes
import enum
class serdespoc_settings(ctypes.Structure):
_pack_ = 2
_fields_ = [
('mode', ctypes.c_uint8),
('rsvd', ctypes.c_uint8 * 6),
('voltage', ctypes.c_uint8),
('chksum', ctypes.c_uint1... | 20.75 | 72 | 0.672289 | 51 | 415 | 5.196078 | 0.627451 | 0.320755 | 0.135849 | 0.256604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.224096 | 415 | 19 | 73 | 21.842105 | 0.801242 | 0.168675 | 0 | 0 | 1 | 0 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a48fca78bddc9573a6404b95eb89144d7b279675 | 2,219 | py | Python | pydse/data/__init__.py | vaibhaw1994kumar/pydse | 9d6fe86fd6442605ad9f01004d34d372c20834dd | [
"BSD-3-Clause"
] | 37 | 2015-03-24T13:37:32.000Z | 2021-11-09T18:51:50.000Z | pydse/data/__init__.py | noisyoscillator/pydse | 9d6fe86fd6442605ad9f01004d34d372c20834dd | [
"BSD-3-Clause"
] | 3 | 2015-03-25T13:27:29.000Z | 2019-10-17T10:37:23.000Z | pydse/data/__init__.py | noisyoscillator/pydse | 9d6fe86fd6442605ad9f01004d34d372c20834dd | [
"BSD-3-Clause"
] | 127 | 2015-03-25T12:47:28.000Z | 2022-03-18T15:08:37.000Z | # -*- encoding: utf-8 -*-
"""
Example data files taken from `DataMarket <http://datamarket.com/>`_.
Data is under the `default open license
<http://datamarket.com/data/license/0/default-open-license.html>`_:
"""
from __future__ import division, print_function, absolute_import
import os
import inspect
from datetime i... | 25.215909 | 77 | 0.663813 | 303 | 2,219 | 4.60396 | 0.40264 | 0.028674 | 0.051613 | 0.074552 | 0.166308 | 0.102509 | 0.083871 | 0.083871 | 0.083871 | 0 | 0 | 0.045819 | 0.213159 | 2,219 | 87 | 78 | 25.505747 | 0.75315 | 0.2758 | 0 | 0 | 0 | 0 | 0.199865 | 0.138627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.138889 | 0 | 0.666667 | 0.027778 | 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 |
a49ddb6809d7edca2da5d107b0d18c69909a3354 | 329 | py | Python | classwork/quizzes/Quiz1/quiz1.py | SamuelFolledo/CS1.3-Core-Data-Structures-And-Algorithms | 75c7c8ee1cf26f64e64843f26ba44ed2fa6ee0c5 | [
"MIT"
] | null | null | null | classwork/quizzes/Quiz1/quiz1.py | SamuelFolledo/CS1.3-Core-Data-Structures-And-Algorithms | 75c7c8ee1cf26f64e64843f26ba44ed2fa6ee0c5 | [
"MIT"
] | null | null | null | classwork/quizzes/Quiz1/quiz1.py | SamuelFolledo/CS1.3-Core-Data-Structures-And-Algorithms | 75c7c8ee1cf26f64e64843f26ba44ed2fa6ee0c5 | [
"MIT"
] | null | null | null |
def compute_sum_iteratively(num):
sum = 0
for i in range(1, num+1):
sum += i
return sum
print(compute_sum_iteratively(2))
def compute_sum_recursively(num):
if num == 0 or num == 1:
return num
if num > 1:
return num + compute_sum_recursively(num - 1)
print(compute_sum_recurs... | 23.5 | 53 | 0.644377 | 51 | 329 | 3.960784 | 0.333333 | 0.247525 | 0.311881 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036735 | 0.255319 | 329 | 14 | 54 | 23.5 | 0.787755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.416667 | 0.166667 | 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 |
a4a08389c6878712385912d0a60076b874196318 | 1,617 | py | Python | plotting/basic.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | 11 | 2020-03-31T21:27:19.000Z | 2022-01-11T09:50:13.000Z | plotting/basic.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | null | null | null | plotting/basic.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | 5 | 2020-05-13T05:47:23.000Z | 2021-09-27T18:43:25.000Z | #!/usr/bin/env python3
# Import the basic plotting package
# plt has all of the plotting commands - all of your plotting will begin with ply.[blah]
# To have this behave more like MatLab, do
# import matplotlib.pyplot
# in which case the plt scoping isn't needed
import matplotlib.pyplot as plt
# Get some thin... | 53.9 | 117 | 0.716141 | 294 | 1,617 | 3.911565 | 0.510204 | 0.018261 | 0.027826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014252 | 0.218924 | 1,617 | 29 | 118 | 55.758621 | 0.896279 | 0.855288 | 0 | 0 | 0 | 0 | 0.037209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a4a559b7845846caa378b28b8f50d647fd2a1cd0 | 361 | py | Python | packages/micropython-official/v1.9.4/esp32/stubs/gc.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 18 | 2019-07-11T13:31:09.000Z | 2022-01-27T06:38:40.000Z | packages/micropython-official/v1.9.4/esp32/stubs/gc.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 9 | 2019-09-01T21:44:49.000Z | 2022-02-04T20:55:08.000Z | packages/micropython-official/v1.9.4/esp32/stubs/gc.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 6 | 2019-10-08T05:31:21.000Z | 2021-04-22T10:21:01.000Z | """
Module: 'gc' on esp32 1.9.4
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.9.4', version='v1.9.4 on 2018-05-11', machine='ESP32 module with ESP32')
# Stubber: 1.2.0
def collect():
pass
def disable():
pass
def enable():
pass
def isenabled():
pass
def mem_alloc():
pass
def mem_free... | 13.37037 | 126 | 0.603878 | 56 | 361 | 3.857143 | 0.553571 | 0.194444 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106007 | 0.216066 | 361 | 26 | 127 | 13.884615 | 0.657244 | 0.465374 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f1170741ef1065c14964f128ce1ee2698dfb4886 | 1,788 | py | Python | aptsources_cleanup/util/__init__.py | Erotemic/aptsources-cleanup | ac5fc5ccf5df81b414ccfed23c7d7efad355fcd5 | [
"MIT"
] | null | null | null | aptsources_cleanup/util/__init__.py | Erotemic/aptsources-cleanup | ac5fc5ccf5df81b414ccfed23c7d7efad355fcd5 | [
"MIT"
] | null | null | null | aptsources_cleanup/util/__init__.py | Erotemic/aptsources-cleanup | ac5fc5ccf5df81b414ccfed23c7d7efad355fcd5 | [
"MIT"
] | null | null | null | """
Autogenerated With:
mkinit aptsources_cleanup/util/__init__.py -w --rel --nomod
"""
from .collections import (ExtSet,)
from .filesystem import (remove_sources_files, samefile,)
from .fileutils import (display_file,)
from .functools import (LazyInstance, comp,)
from .gettext import (ChoiceInfo, Choices, DictTran... | 52.588235 | 78 | 0.68736 | 168 | 1,788 | 7.089286 | 0.464286 | 0.036944 | 0.030227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002719 | 0.177293 | 1,788 | 33 | 79 | 54.181818 | 0.806934 | 0.046421 | 0 | 0 | 1 | 0 | 0.262227 | 0.012375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f126087e0ff1062f5aa762f077c2541818b90d88 | 4,089 | py | Python | test/srsampledata.py | kmjonsson/luts3-service | 41afaf02cf58c7f4a9ad50011a558d2b21a7bb29 | [
"Apache-2.0"
] | null | null | null | test/srsampledata.py | kmjonsson/luts3-service | 41afaf02cf58c7f4a9ad50011a558d2b21a7bb29 | [
"Apache-2.0"
] | 14 | 2015-03-10T13:18:28.000Z | 2020-10-30T08:03:34.000Z | test/srsampledata.py | kmjonsson/luts3-service | 41afaf02cf58c7f4a9ad50011a558d2b21a7bb29 | [
"Apache-2.0"
] | 4 | 2016-04-01T11:43:11.000Z | 2018-01-23T10:31:36.000Z | """
Some sample storage records.
"""
SR_0_ID = "host.example.org/sr/87912469269276"
SR_0 = """<sr:StorageUsageRecords xmlns:sr="http://eu-emi.eu/namespaces/2011/02/storagerecord">
<sr:StorageUsageRecord>
<sr:RecordIdentity sr:createTime="2010-11-09T09:06:52Z" sr:recordId="host.example.org/sr/87912469269276"/>
<s... | 43.967742 | 115 | 0.751284 | 522 | 4,089 | 5.837165 | 0.199234 | 0.052511 | 0.055136 | 0.063013 | 0.73679 | 0.71316 | 0.619626 | 0.619626 | 0.541516 | 0.54086 | 0 | 0.115862 | 0.073368 | 4,089 | 92 | 116 | 44.445652 | 0.688308 | 0.006848 | 0 | 0.530864 | 0 | 0.148148 | 0.941002 | 0.728462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f1365eaf24366ab0deed9c7aa356107d9250de5d | 152 | py | Python | readability/readability.py | mattselph/Dockerfiles | 62f185ca6281d3da717a195925f785d232be18ae | [
"Apache-2.0"
] | null | null | null | readability/readability.py | mattselph/Dockerfiles | 62f185ca6281d3da717a195925f785d232be18ae | [
"Apache-2.0"
] | null | null | null | readability/readability.py | mattselph/Dockerfiles | 62f185ca6281d3da717a195925f785d232be18ae | [
"Apache-2.0"
] | 1 | 2020-01-10T19:05:22.000Z | 2020-01-10T19:05:22.000Z | import sys
from pyreadability.readability import Readability
if __name__ == '__main__':
f = str(sys.argv)[1]
r = Readability(f[0])
print(r.result)
| 16.888889 | 49 | 0.723684 | 22 | 152 | 4.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.144737 | 152 | 8 | 50 | 19 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f1380d1028fd69121433ccf3d6f17a8b2dd8b20e | 64 | py | Python | nomenclateUI/platforms/__init__.py | AndresMWeber/NomenclateUI | 0a96baa1268e7c6d72b8facb68cb50df9a520dfb | [
"MIT"
] | null | null | null | nomenclateUI/platforms/__init__.py | AndresMWeber/NomenclateUI | 0a96baa1268e7c6d72b8facb68cb50df9a520dfb | [
"MIT"
] | null | null | null | nomenclateUI/platforms/__init__.py | AndresMWeber/NomenclateUI | 0a96baa1268e7c6d72b8facb68cb50df9a520dfb | [
"MIT"
] | null | null | null | from . import present
current = present.get_current_platform()
| 16 | 40 | 0.796875 | 8 | 64 | 6.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 3 | 41 | 21.333333 | 0.875 | 0 | 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 | 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 |
f14b39f45ccc8992a4abd049f1f5692e684bd31e | 729 | py | Python | app/api_json_extension/api/auth.py | de-conf/arduino.io | 50b5ddcf8b3032ffdeb857bcd9a125441239a77b | [
"MIT"
] | 4 | 2020-01-06T23:29:52.000Z | 2022-02-04T22:53:30.000Z | app/api_json_extension/api/auth.py | de-conf/arduino.io | 50b5ddcf8b3032ffdeb857bcd9a125441239a77b | [
"MIT"
] | 1 | 2021-04-06T14:46:10.000Z | 2021-04-07T14:50:53.000Z | app/api_json_extension/api/auth.py | de-conf/arduino.io | 50b5ddcf8b3032ffdeb857bcd9a125441239a77b | [
"MIT"
] | 1 | 2020-01-20T07:12:35.000Z | 2020-01-20T07:12:35.000Z | from flask_httpauth import HTTPBasicAuth
from app.models import User
from flask import g
from flask_login import current_user
from .error import unauthorized, forbidden
from app.api import api
auth = HTTPBasicAuth()
@auth.verify_password
def verify_password(email, password):
if email=='':
return False
... | 22.78125 | 54 | 0.735254 | 96 | 729 | 5.427083 | 0.40625 | 0.051823 | 0.046065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 729 | 31 | 55 | 23.516129 | 0.864013 | 0.201646 | 0 | 0.105263 | 0 | 0 | 0.032929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.157895 | 0.315789 | 0.052632 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
f14c3530bdbf30e497393b560b1ecac430871c59 | 134 | py | Python | test/system/ruby/roles/vim/molecule/default/system/test_testaid_ruby_role_vim_system.py | RebelCodeBase/testaid | 998c827b826fe4374ecf0a234fef61a975e2fcd7 | [
"Apache-2.0"
] | 17 | 2019-08-04T09:29:19.000Z | 2020-05-16T02:25:20.000Z | test/system/ruby/roles/vim/molecule/default/system/test_testaid_ruby_role_vim_system.py | RebelCodeBase/testaid | 998c827b826fe4374ecf0a234fef61a975e2fcd7 | [
"Apache-2.0"
] | 12 | 2019-07-19T22:20:42.000Z | 2020-01-20T06:45:38.000Z | test/system/ruby/roles/vim/molecule/default/system/test_testaid_ruby_role_vim_system.py | RebelCodeBase/testaid | 998c827b826fe4374ecf0a234fef61a975e2fcd7 | [
"Apache-2.0"
] | 3 | 2019-08-08T18:18:13.000Z | 2019-10-07T13:46:03.000Z | import testaid
testinfra_hosts = testaid.hosts()
def test_testaid_ruby_role_vim_system(host):
assert host.run('vim --version')
| 16.75 | 44 | 0.768657 | 19 | 134 | 5.105263 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126866 | 134 | 7 | 45 | 19.142857 | 0.82906 | 0 | 0 | 0 | 0 | 0 | 0.097015 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f16642b455793c4dba9c9e96b8b6ebb976502261 | 484 | py | Python | tests/test_basket.py | woutdp/GroceryStoreCashRegister | e76a9cd27c3543a43be8bcc1c10c55fba6be7ef0 | [
"MIT"
] | null | null | null | tests/test_basket.py | woutdp/GroceryStoreCashRegister | e76a9cd27c3543a43be8bcc1c10c55fba6be7ef0 | [
"MIT"
] | null | null | null | tests/test_basket.py | woutdp/GroceryStoreCashRegister | e76a9cd27c3543a43be8bcc1c10c55fba6be7ef0 | [
"MIT"
] | null | null | null | from decimal import Decimal
from factories import GroceryFactory
from objects import Basket
def test_basket_correctly_adds_up_total_price():
grocery1 = GroceryFactory(price_per_unit=Decimal('1'), quantity=Decimal('1')) # 1
grocery2 = GroceryFactory(price_per_unit=Decimal('2'), quantity=Decimal('2')) # 4
... | 40.333333 | 86 | 0.75 | 62 | 484 | 5.645161 | 0.435484 | 0.162857 | 0.188571 | 0.222857 | 0.282857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040094 | 0.123967 | 484 | 11 | 87 | 44 | 0.785377 | 0.010331 | 0 | 0 | 0 | 0 | 0.016842 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f1761336ca00aaeddf28d2e0b901efea3473063f | 529 | py | Python | tests/fixtures/trailing_whitespace/trailing_whitespace1_out.py | spulec/pep8ify | cf1815f7bad9882027289bdb2f77604b68962ca7 | [
"Apache-2.0"
] | 50 | 2015-01-04T04:24:41.000Z | 2021-09-13T01:01:29.000Z | tests/fixtures/trailing_whitespace/trailing_whitespace1_out.py | michaelBenin/pep8ify | 3cd8a9e8baaab33d66e792185a6870338bdf0911 | [
"Apache-2.0"
] | 2 | 2016-05-15T12:01:28.000Z | 2019-03-08T03:27:20.000Z | tests/fixtures/trailing_whitespace/trailing_whitespace1_out.py | michaelBenin/pep8ify | 3cd8a9e8baaab33d66e792185a6870338bdf0911 | [
"Apache-2.0"
] | 5 | 2016-07-27T13:44:54.000Z | 2020-11-19T16:00:08.000Z | class tester(object):
def __init__(self, attr1, attr2):
self.attr1 = attr1
self.attr2 = attr2
self.attr3 = ["one string",
"another string"]
def __unicode__(self):
return u"testing unicode response"
def test_method(self):
return self.attr1 + self.attr2
... | 25.190476 | 45 | 0.599244 | 66 | 529 | 4.636364 | 0.424242 | 0.117647 | 0.091503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034759 | 0.293006 | 529 | 20 | 46 | 26.45 | 0.783422 | 0.077505 | 0 | 0 | 0 | 0 | 0.140206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.214286 | 0.642857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f17c583cdfe6375836fa782d9d413116dcee9132 | 235 | py | Python | lib/rand.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 4 | 2020-07-21T09:47:52.000Z | 2022-01-05T21:43:36.000Z | lib/rand.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 1 | 2020-09-23T20:46:33.000Z | 2020-09-23T20:59:57.000Z | lib/rand.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 4 | 2020-07-13T00:45:24.000Z | 2021-09-04T14:50:46.000Z | # Module 'rand'
import whrandom
def srand(seed):
whrandom.seed(seed%256, seed/256%256, seed/65536%256)
def rand():
return int(whrandom.random() * 32768.0) % 32768
def choice(seq):
return seq[rand() % len(seq)]
| 18.076923 | 60 | 0.634043 | 34 | 235 | 4.382353 | 0.5 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 0.208511 | 235 | 12 | 61 | 19.583333 | 0.650538 | 0.055319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0.285714 | 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 |
74aed1497fa39beb4b91f1bca60e39562a6815ac | 73 | py | Python | 02.py | MateusVS/Exercicios_Python | 7d56837a2e0efb5e1c6f8aecc06684769db63f06 | [
"Apache-2.0"
] | 1 | 2019-04-09T04:08:52.000Z | 2019-04-09T04:08:52.000Z | 02.py | MateusVS/Exercicios_Python | 7d56837a2e0efb5e1c6f8aecc06684769db63f06 | [
"Apache-2.0"
] | null | null | null | 02.py | MateusVS/Exercicios_Python | 7d56837a2e0efb5e1c6f8aecc06684769db63f06 | [
"Apache-2.0"
] | null | null | null | num = input('Informe um numero: ')
print('O numero informado foi: ',num) | 36.5 | 37 | 0.684932 | 11 | 73 | 4.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150685 | 73 | 2 | 37 | 36.5 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.589041 | 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 |
74c217140cc56b85bc96bc81b371a06f016405b4 | 272 | py | Python | src/trade/views/heartbeat/views.py | zeroleo12345/restful_server | adbc0567b3a83ebffe0dbf0ef051a70d38134a44 | [
"MIT"
] | 5 | 2018-08-21T06:48:46.000Z | 2021-01-05T06:55:02.000Z | src/trade/views/heartbeat/views.py | zeroleo12345/restful_server | adbc0567b3a83ebffe0dbf0ef051a70d38134a44 | [
"MIT"
] | 8 | 2020-08-03T02:00:40.000Z | 2022-01-14T13:52:52.000Z | src/trade/views/heartbeat/views.py | zeroleo12345/restful_server | adbc0567b3a83ebffe0dbf0ef051a70d38134a44 | [
"MIT"
] | 1 | 2021-04-29T10:20:54.000Z | 2021-04-29T10:20:54.000Z | # django 库
from rest_framework.views import APIView
from framework.restful import BihuResponse
# 第三方库
# 项目库
# /heartbeat
class HeartBeatView(APIView):
authentication_classes = ()
permission_classes = ()
def get(self, request):
return BihuResponse()
| 18.133333 | 42 | 0.724265 | 29 | 272 | 6.689655 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194853 | 272 | 14 | 43 | 19.428571 | 0.885845 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
74d72467b70de872713a21225e9f9fe55b059598 | 457 | py | Python | appalerts/rules.py | bihealth/sodar_core | a6c22c4f276b64ffae6de48779a82d59a60a9333 | [
"MIT"
] | 11 | 2019-06-26T14:05:58.000Z | 2020-12-05T02:20:11.000Z | appalerts/rules.py | bihealth/sodar_core | a6c22c4f276b64ffae6de48779a82d59a60a9333 | [
"MIT"
] | 11 | 2019-07-01T06:17:44.000Z | 2021-04-20T07:19:40.000Z | appalerts/rules.py | bihealth/sodar-core | ac7397294b24aea352bc7842e75011ad8c1a2033 | [
"MIT"
] | 4 | 2019-06-26T07:49:50.000Z | 2020-05-19T21:58:10.000Z | """Rules for the appalerts app"""
import rules
# Predicates -------------------------------------------------------------
# None needed right now
# Rules ------------------------------------------------------------------
# Rules should not be needed, use permissions for user rights
# Permissions ------------... | 20.772727 | 74 | 0.435449 | 36 | 457 | 5.444444 | 0.722222 | 0.112245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109409 | 457 | 21 | 75 | 21.761905 | 0.481572 | 0.765864 | 0 | 0 | 0 | 0 | 0.21875 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
74e324bbda5ea6db80ec9aa73c7699f2f884dcf5 | 187 | py | Python | debug.py | ZPVIP/PythonDictionaryOnline | 192565e0620a0d7671474f843721a08310bc9186 | [
"Apache-2.0"
] | 2 | 2019-02-25T14:30:28.000Z | 2020-04-17T00:26:13.000Z | debug.py | ZPVIP/PythonDictionaryOnline | 192565e0620a0d7671474f843721a08310bc9186 | [
"Apache-2.0"
] | null | null | null | debug.py | ZPVIP/PythonDictionaryOnline | 192565e0620a0d7671474f843721a08310bc9186 | [
"Apache-2.0"
] | 4 | 2016-12-12T07:28:05.000Z | 2020-12-28T21:20:02.000Z | # -*- coding: utf-8 -*-
# version: python 3.5
import re
import os
import sys
import webbrowser
# url = 'http://www.baidu.com'
# webbrowser.open(url)
print(os.getcwd())
print(sys.path[0]) | 17 | 30 | 0.679144 | 30 | 187 | 4.233333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.13369 | 187 | 11 | 31 | 17 | 0.759259 | 0.486631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 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 |
74eec06221d6fccb7db5d8cd473501c0eaed4c3e | 522 | py | Python | examples/dagster_examples/bay_bikes/repository.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 3 | 2020-04-28T16:27:33.000Z | 2020-07-22T07:43:30.000Z | examples/dagster_examples/bay_bikes/repository.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | null | null | null | examples/dagster_examples/bay_bikes/repository.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 1 | 2021-02-21T12:16:47.000Z | 2021-02-21T12:16:47.000Z | from dagster import RepositoryDefinition
from .pipelines import (
extract_daily_weather_data_pipeline,
generate_training_set,
monthly_trip_pipeline,
)
def define_repo():
return RepositoryDefinition(
name='bay_bikes_demo',
pipeline_dict={
'extract_daily_weather_data_pipelin... | 27.473684 | 95 | 0.720307 | 54 | 522 | 6.444444 | 0.462963 | 0.103448 | 0.163793 | 0.198276 | 0.267241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214559 | 522 | 18 | 96 | 29 | 0.84878 | 0 | 0 | 0 | 1 | 0 | 0.17433 | 0.14751 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.133333 | 0.066667 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
74ffb8f5c2ad71317520530ac1071085a521f289 | 193 | py | Python | Scripts/django_summernote/urls.py | ksusonic/Django-editor | 9c31281c801859841858f3fcf6b309e0f8135117 | [
"MIT"
] | null | null | null | Scripts/django_summernote/urls.py | ksusonic/Django-editor | 9c31281c801859841858f3fcf6b309e0f8135117 | [
"MIT"
] | null | null | null | Scripts/django_summernote/urls.py | ksusonic/Django-editor | 9c31281c801859841858f3fcf6b309e0f8135117 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import SummernoteEditor
urlpatterns = [
url(r'^editor/(?P<id>.+)/$', SummernoteEditor.as_view(),
name='django_summernote-editor'),
]
| 19.3 | 60 | 0.683938 | 23 | 193 | 5.652174 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15544 | 193 | 9 | 61 | 21.444444 | 0.797546 | 0 | 0 | 0 | 0 | 0 | 0.227979 | 0.124352 | 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 |
2d0eb85c12a4fd743ef8140ac47c2b26169a1df4 | 23 | py | Python | src/libdisc/constants.py | UltimoBodega/discord_analytics | 566bd98d7410c33a45d828b7e12b5b923db640fe | [
"MIT"
] | 4 | 2021-01-06T19:53:58.000Z | 2021-01-12T06:10:39.000Z | src/libdisc/constants.py | UltimoBodega/discord_analytics | 566bd98d7410c33a45d828b7e12b5b923db640fe | [
"MIT"
] | null | null | null | src/libdisc/constants.py | UltimoBodega/discord_analytics | 566bd98d7410c33a45d828b7e12b5b923db640fe | [
"MIT"
] | null | null | null | SECONDS_IN_HOUR = 3600
| 11.5 | 22 | 0.826087 | 4 | 23 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2d14c11dee6f525190d044e6bf0173523ad8a60d | 239 | py | Python | app/hospitals/admin.py | chavez897/blood-bank-management | 93f645fb390a6b30c25431def6bb36785f6f51ce | [
"MIT"
] | null | null | null | app/hospitals/admin.py | chavez897/blood-bank-management | 93f645fb390a6b30c25431def6bb36785f6f51ce | [
"MIT"
] | null | null | null | app/hospitals/admin.py | chavez897/blood-bank-management | 93f645fb390a6b30c25431def6bb36785f6f51ce | [
"MIT"
] | null | null | null | from django.contrib import admin
from hospitals.models.hospitals import Hospital
@admin.register(Hospital)
class HospitalModelAdmin(admin.ModelAdmin):
list_display = ("id", "name", "city", "phone",)
list_display_links = ("id", )
| 26.555556 | 51 | 0.736402 | 28 | 239 | 6.178571 | 0.678571 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129707 | 239 | 8 | 52 | 29.875 | 0.831731 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 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 |
740f76f0f053ef125246cc4682a161372a1e7524 | 842 | py | Python | tools/leetcode.098.Validate Binary Search Tree/leetcode.098.Validate Binary Search Tree.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.098.Validate Binary Search Tree/leetcode.098.Validate Binary Search Tree.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.098.Validate Binary Search Tree/leetcode.098.Validate Binary Search Tree.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param {TreeNode} root
# @return {boolean}
def isValidBST(self, root):
# attempt one recursive
if not root: ret... | 842 | 842 | 0.483373 | 95 | 842 | 4.242105 | 0.389474 | 0.074442 | 0.074442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.420428 | 842 | 1 | 842 | 842 | 0.817623 | 0.977435 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7434006e63cac19f476e67cffb73433c3ea285bf | 292 | py | Python | api/zeus_api/controllers/trending.py | imthaghost/digift | 6d7582204000190d7f11cbf22a4ecabfbd3c45c4 | [
"MIT"
] | 7 | 2020-02-19T23:17:59.000Z | 2021-04-09T08:51:28.000Z | api/zeus_api/controllers/trending.py | imthaghost/digift | 6d7582204000190d7f11cbf22a4ecabfbd3c45c4 | [
"MIT"
] | 2 | 2021-03-31T20:04:31.000Z | 2021-12-13T20:40:59.000Z | FinalProject/api/zeus_api/controllers/trending.py | SamuelFolledo/SPD1.3 | aa28fb738191f315b6627250049db029f8b62585 | [
"MIT"
] | 3 | 2020-01-28T17:00:59.000Z | 2020-02-02T07:45:48.000Z | """Company Details Endpoint"""
from zeus_api.models.company import Company
from flask_restful import Resource
from random import randint
from flask import jsonify
import zeus_api
import json
class companyDetails(Resource):
def get(self):
pass
def post(self):
pass
| 17.176471 | 43 | 0.739726 | 39 | 292 | 5.461538 | 0.564103 | 0.065728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202055 | 292 | 16 | 44 | 18.25 | 0.914163 | 0.082192 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.181818 | 0.545455 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
743a9c354d8bd4446772c608f6a15c6c37a631b4 | 1,149 | py | Python | stackvm/byteutil.py | Dentosal/StackVM | 655026bb890d52f756d30f340f8b2ad344741175 | [
"MIT"
] | 1 | 2018-03-05T03:39:33.000Z | 2018-03-05T03:39:33.000Z | stackvm/byteutil.py | Dentosal/StackVM | 655026bb890d52f756d30f340f8b2ad344741175 | [
"MIT"
] | null | null | null | stackvm/byteutil.py | Dentosal/StackVM | 655026bb890d52f756d30f340f8b2ad344741175 | [
"MIT"
] | null | null | null | from more_itertools import chunked
def int_from_bytes(b):
"""Creates integer from little-endian bytes."""
return int.from_bytes(b, byteorder="little")
def bytes_from_int(v, pad_to):
"""Creates little-endian bytes from integer."""
assert v >= 0
return int.to_bytes(v, pad_to, byteorder="little")
de... | 31.916667 | 81 | 0.718886 | 194 | 1,149 | 3.994845 | 0.242268 | 0.03871 | 0.061935 | 0.030968 | 0.103226 | 0.08 | 0.08 | 0 | 0 | 0 | 0 | 0.061741 | 0.140122 | 1,149 | 35 | 82 | 32.828571 | 0.722672 | 0.087032 | 0 | 0 | 0 | 0 | 0.040462 | 0 | 0 | 0 | 0.023121 | 0 | 0.26087 | 1 | 0.347826 | false | 0 | 0.043478 | 0.217391 | 0.73913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
743c64d6b2a559ee21f2382defeea18e129f360d | 447 | py | Python | accelerator/models/application_type.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/models/application_type.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/models/application_type.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from __future__ import unicode_literals
import swapper
from accelerator_abstract.models import BaseApplicationType
from accelerator_abstract.models.accelerator_model import AcceleratorModel
class ApplicationType(BaseApplicationType):
class Meta(Accelerator... | 27.9375 | 74 | 0.807606 | 44 | 447 | 7.977273 | 0.590909 | 0.08547 | 0.131054 | 0.165242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.136465 | 447 | 15 | 75 | 29.8 | 0.898964 | 0.111857 | 0 | 0 | 0 | 0 | 0.038071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
74680814153df714f2f02a72859634497fe9a040 | 10,418 | py | Python | nova/hooks.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/hooks.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/hooks.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright (c) 2012 OpenStack Foundation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n... | 16.102009 | 1,035 | 0.595604 | 1,551 | 10,418 | 3.958092 | 0.149581 | 0.12217 | 0.065157 | 0.034045 | 0.537873 | 0.445675 | 0.382473 | 0.356573 | 0.289135 | 0.277244 | 0 | 0.001816 | 0.154444 | 10,418 | 646 | 1,036 | 16.126935 | 0.695085 | 0 | 0 | 0.886997 | 0 | 0.010836 | 0.501152 | 0.005375 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004644 | 0.006192 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7468c655e3eeb8afd151af6a5e0fec3468ba5ffb | 19,470 | py | Python | tests/test_hull.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 24 | 2020-01-21T21:40:44.000Z | 2022-03-23T13:37:18.000Z | tests/test_hull.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 234 | 2020-02-03T15:56:58.000Z | 2022-03-29T21:36:45.000Z | tests/test_hull.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 15 | 2019-11-29T11:33:32.000Z | 2021-11-02T09:14:08.000Z | """ Test hull routines. """
import unittest
import copy
from os.path import realpath
from glob import glob
import numpy as np
from matador.hull import QueryConvexHull
from matador.query import DBQuery
from matador.scrapers.castep_scrapers import res2dict, castep2dict
from matador.utils.chem_utils import get_concentr... | 39.573171 | 93 | 0.571905 | 2,298 | 19,470 | 4.681897 | 0.112707 | 0.092016 | 0.110419 | 0.094061 | 0.784274 | 0.736871 | 0.707965 | 0.667906 | 0.656381 | 0.609815 | 0 | 0.047075 | 0.289728 | 19,470 | 491 | 94 | 39.653768 | 0.730928 | 0.027632 | 0 | 0.531765 | 0 | 0 | 0.150988 | 0.024326 | 0 | 0 | 0 | 0 | 0.188235 | 1 | 0.044706 | false | 0 | 0.030588 | 0 | 0.082353 | 0.030588 | 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 |
74732c960e521a0bf17f27249c602ea13e1ed299 | 964 | py | Python | test/Template/procedures/SystemProceduresTest.py | paulondc/chilopoda | 046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4 | [
"MIT"
] | 2 | 2019-09-24T18:56:27.000Z | 2021-02-07T04:58:49.000Z | test/Template/procedures/SystemProceduresTest.py | paulondc/kombi | 046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4 | [
"MIT"
] | 20 | 2019-02-16T04:21:13.000Z | 2019-03-09T21:21:21.000Z | test/Template/procedures/SystemProceduresTest.py | paulondc/kombi | 046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4 | [
"MIT"
] | 3 | 2019-11-15T05:16:32.000Z | 2021-09-28T21:28:29.000Z | import unittest
import getpass
import os
import tempfile
from ...BaseTestCase import BaseTestCase
from kombi.Template import Template
class SystemProceduresTest(BaseTestCase):
"""Test System template procedures."""
def testTmp(self):
"""
Test that the tmp procedure works properly.
"""
... | 26.054054 | 72 | 0.64834 | 97 | 964 | 6.360825 | 0.453608 | 0.038898 | 0.058347 | 0.072934 | 0.155592 | 0.155592 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247925 | 964 | 36 | 73 | 26.777778 | 0.851034 | 0.173237 | 0 | 0 | 0 | 0 | 0.049862 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.157895 | false | 0.105263 | 0.315789 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
74992dbdd63170e1f661762764285e40a155fd81 | 2,192 | py | Python | conftest.py | simlist/djangorestframework_useremail | f3022ffe69a5801fbd93c09eec3a82d0290a6a4f | [
"MIT"
] | null | null | null | conftest.py | simlist/djangorestframework_useremail | f3022ffe69a5801fbd93c09eec3a82d0290a6a4f | [
"MIT"
] | 8 | 2020-02-12T01:13:10.000Z | 2022-02-10T08:45:58.000Z | conftest.py | simlist/django-rest-framework-emailuser | f3022ffe69a5801fbd93c09eec3a82d0290a6a4f | [
"MIT"
] | null | null | null | from django.conf import settings
def pytest_configure():
settings.configure(
DEBUG_PROPAGATE_EXCEPTIONS=True,
DATABASES={'default': {'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:'}},
SECRET_KEY='Testing Testing',
USE_I18N=True,
USE_... | 40.592593 | 70 | 0.607208 | 168 | 2,192 | 7.779762 | 0.482143 | 0.159143 | 0.104055 | 0.110176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006345 | 0.281022 | 2,192 | 54 | 71 | 40.592593 | 0.82297 | 0 | 0 | 0.075472 | 0 | 0 | 0.530324 | 0.453716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | true | 0.132075 | 0.018868 | 0 | 0.037736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
749ec5b108ede5fb1e1a7761dbd2023b4d6bf0e5 | 1,573 | py | Python | test/python/targets/asgi.py | OutOfFocus4/unit | 84b73160930f47b65763f8976666a03c64ddd6e7 | [
"Apache-2.0"
] | null | null | null | test/python/targets/asgi.py | OutOfFocus4/unit | 84b73160930f47b65763f8976666a03c64ddd6e7 | [
"Apache-2.0"
] | null | null | null | test/python/targets/asgi.py | OutOfFocus4/unit | 84b73160930f47b65763f8976666a03c64ddd6e7 | [
"Apache-2.0"
] | null | null | null | async def application_201(scope, receive, send):
assert scope['type'] == 'http'
await send(
{
'type': 'http.response.start',
'status': 201,
'headers': [(b'content-length', b'0')],
}
)
async def application_200(scope, receive, send):
assert scope['ty... | 21.847222 | 69 | 0.507311 | 167 | 1,573 | 4.658683 | 0.185629 | 0.113111 | 0.100257 | 0.131105 | 0.794344 | 0.708226 | 0.708226 | 0.708226 | 0.61054 | 0.533419 | 0 | 0.041667 | 0.328671 | 1,573 | 71 | 70 | 22.15493 | 0.695076 | 0 | 0 | 0.45283 | 0 | 0 | 0.216147 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 1 | 0.037736 | false | 0 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
749fdafe5ced5f0f9f60baaf5795a688752dbf06 | 473 | py | Python | spatialpandas/__init__.py | isabella232/spatialpandas | 0a4e08ecf2c9e2f69c65c627cc353d88b6cd2807 | [
"BSD-2-Clause"
] | null | null | null | spatialpandas/__init__.py | isabella232/spatialpandas | 0a4e08ecf2c9e2f69c65c627cc353d88b6cd2807 | [
"BSD-2-Clause"
] | 1 | 2021-04-17T15:22:28.000Z | 2021-04-17T15:22:28.000Z | spatialpandas/__init__.py | isabella232/spatialpandas | 0a4e08ecf2c9e2f69c65c627cc353d88b6cd2807 | [
"BSD-2-Clause"
] | 1 | 2021-04-17T15:22:00.000Z | 2021-04-17T15:22:00.000Z | from . import geometry, spatialindex, tools
from .geoseries import GeoSeries
from .geodataframe import GeoDataFrame
from .tools.sjoin import sjoin
import param as _param
try:
import dask.dataframe
# Import to trigger registration of types with Dask
import spatialpandas.dask
except ImportError:
# Dask d... | 26.277778 | 75 | 0.767442 | 57 | 473 | 6.175439 | 0.596491 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 473 | 17 | 76 | 27.823529 | 0.888889 | 0.164905 | 0 | 0 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.615385 | 0 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
74a5c63b6fa02b74489ef42c26b6eb112cdb3855 | 2,777 | py | Python | secretsauce/apps/account/models.py | sutd-rms/secret_sauce | de49eb4cb8e6bdc92209e9f4c6c53b1b4c2c465f | [
"MIT"
] | null | null | null | secretsauce/apps/account/models.py | sutd-rms/secret_sauce | de49eb4cb8e6bdc92209e9f4c6c53b1b4c2c465f | [
"MIT"
] | 16 | 2020-03-28T14:54:45.000Z | 2022-03-12T00:36:23.000Z | secretsauce/apps/account/models.py | sutd-rms/secret_sauce | de49eb4cb8e6bdc92209e9f4c6c53b1b4c2c465f | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser, BaseUserManager
from django.utils.translation import ugettext_lazy as _
from django.core.validators import validate_email
import uuid
class Company(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=F... | 39.671429 | 132 | 0.710119 | 361 | 2,777 | 5.299169 | 0.354571 | 0.074752 | 0.04966 | 0.050183 | 0.366963 | 0.304234 | 0.231051 | 0.197595 | 0.151594 | 0.062729 | 0 | 0.004021 | 0.194094 | 2,777 | 69 | 133 | 40.246377 | 0.85076 | 0.187252 | 0 | 0.086957 | 0 | 0 | 0.103402 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.086957 | false | 0.130435 | 0.108696 | 0.021739 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
77718adabccc9a32ab4a2b3d2bed15b9ad69da99 | 114 | py | Python | PythonExercicios/ex112/teste.py | raulgranja/Python-Course | eaf776ab144923266a4784586f6bdf21911a5235 | [
"MIT"
] | null | null | null | PythonExercicios/ex112/teste.py | raulgranja/Python-Course | eaf776ab144923266a4784586f6bdf21911a5235 | [
"MIT"
] | null | null | null | PythonExercicios/ex112/teste.py | raulgranja/Python-Course | eaf776ab144923266a4784586f6bdf21911a5235 | [
"MIT"
] | null | null | null | from ex112.utilidadescev import moeda, dado
p = dado.leiaDinheiro('Digite o preço: R$ ')
moeda.resumo(p, 20, 12)
| 22.8 | 44 | 0.72807 | 18 | 114 | 4.611111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.140351 | 114 | 4 | 45 | 28.5 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 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 |
777650b2db6232e073215cee9bc5bb9d71bd9d2d | 889 | py | Python | bspump/mysql/convertors.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | 17 | 2019-02-14T09:26:03.000Z | 2022-03-11T09:23:52.000Z | bspump/mysql/convertors.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | 91 | 2019-05-06T18:59:02.000Z | 2022-01-11T06:22:32.000Z | bspump/mysql/convertors.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | 10 | 2019-04-23T08:48:58.000Z | 2022-02-13T14:24:28.000Z | from pymysql.converters import encoders as convertors
import numpy as np
""" Those methods extends pymysql convertor for numpy datatypes """
def convert_numpy_int(value, mapping=None):
return str(value)
def convert_numpy_float(value, mapping=None):
s = repr(value)
if s in ('inf', 'nan'):
raise ... | 26.939394 | 67 | 0.751406 | 129 | 889 | 4.976744 | 0.395349 | 0.242991 | 0.21028 | 0.311526 | 0.426791 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027815 | 0.150731 | 889 | 32 | 68 | 27.78125 | 0.822517 | 0 | 0 | 0 | 0 | 0 | 0.046229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.045455 | 0.272727 | 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 |
7789b9182da5b325c90bddc9d6a15924abed421f | 148 | py | Python | jp.atcoder/abc028/abc028_c/28356174.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc028/abc028_c/28356174.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc028/abc028_c/28356174.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import typing
def main() -> typing.NoReturn:
a, b, c, d, e = map(int, input().split())
print(max(b + c + e, a + d + e))
main()
| 14.8 | 46 | 0.486486 | 24 | 148 | 3 | 0.666667 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310811 | 148 | 9 | 47 | 16.444444 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
778c35c89bb806aae12fe98021e6827727f79447 | 567 | py | Python | scicast/__init__.py | iandriver/scicast | 5c391a20e063fbb4a540e69704208f8309afc484 | [
"MIT"
] | 5 | 2016-11-05T00:01:15.000Z | 2020-11-19T13:54:30.000Z | scicast/__init__.py | iandriver/SCICAST | 5c391a20e063fbb4a540e69704208f8309afc484 | [
"MIT"
] | null | null | null | scicast/__init__.py | iandriver/SCICAST | 5c391a20e063fbb4a540e69704208f8309afc484 | [
"MIT"
] | 1 | 2017-08-29T02:33:49.000Z | 2017-08-29T02:33:49.000Z | from .cluster import *
from .scicast_argparse import *
from .sci_load import *
from .tkinter_scicast import *
from .matrix_filter import *
from .dim_reduction import *
from .heatmaps import *
from .correlation import *
from .significance_testing import *
from .R_qgraph import run_qgraph
from .stability_test import *
im... | 31.5 | 176 | 0.772487 | 72 | 567 | 5.736111 | 0.416667 | 0.217918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007952 | 0.112875 | 567 | 17 | 177 | 33.352941 | 0.813121 | 0 | 0 | 0 | 0 | 0 | 0.241623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
77921be95929181d7a6d20d9c49e2e886e7ef91a | 200 | py | Python | detail/NaptListenerEventArgs.py | rainforest-tokyo/AutoNaptPython | 5c021ca18e7a8280b52fd168ff6c443321ff3e31 | [
"MIT"
] | null | null | null | detail/NaptListenerEventArgs.py | rainforest-tokyo/AutoNaptPython | 5c021ca18e7a8280b52fd168ff6c443321ff3e31 | [
"MIT"
] | null | null | null | detail/NaptListenerEventArgs.py | rainforest-tokyo/AutoNaptPython | 5c021ca18e7a8280b52fd168ff6c443321ff3e31 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class NaptListenerEventArgs(object):
def __init__(self, accepted, accepter):
self.accepted = accepted
self.accepter = accepter
| 25 | 43 | 0.64 | 21 | 200 | 5.904762 | 0.714286 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.23 | 200 | 7 | 44 | 28.571429 | 0.798701 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
77cb1e6131dc98b4b59060d1af04c0ad39bf47a6 | 183 | py | Python | source-code-from-author-book/Listings-for-Second-Edition/listing_6_22.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_6_22.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_6_22.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | def buildHeap(self,alist):
i = len(alist) // 2
self.currentSize = len(alist)
self.heapList = [0] + alist[:]
while (i > 0): self.percDown(i)
i = i - 1
| 26.142857 | 44 | 0.519126 | 25 | 183 | 3.8 | 0.52 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.31694 | 183 | 6 | 45 | 30.5 | 0.728 | 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 |
77dbe3453d77c9f3260fe5916e39156e4c278710 | 208 | py | Python | py/place/align.py | teppchan/tkintertips | dc4b43e86185906d72ba5d5712edee94c76f8b37 | [
"MIT"
] | null | null | null | py/place/align.py | teppchan/tkintertips | dc4b43e86185906d72ba5d5712edee94c76f8b37 | [
"MIT"
] | null | null | null | py/place/align.py | teppchan/tkintertips | dc4b43e86185906d72ba5d5712edee94c76f8b37 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import Tkinter as Tk
root=Tk.Tk()
Tk.Button(root,
text="wide wide wide wide wide"
).pack(fill='x')
Tk.Button(root,
text="narrow"
).pack(fill='x')
root.mainloop()
| 13.866667 | 41 | 0.615385 | 33 | 208 | 3.878788 | 0.515152 | 0.25 | 0.28125 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201923 | 208 | 14 | 42 | 14.857143 | 0.771084 | 0.096154 | 0 | 0.444444 | 0 | 0 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
77ef6afb6ab0fa0ae7db686e5ba3684384e44364 | 171 | py | Python | a001/split.py | amaraimusi/python_sample | 7d5524b3d42ecfeff89fbfb8fe2c2c61a18143ac | [
"MIT"
] | null | null | null | a001/split.py | amaraimusi/python_sample | 7d5524b3d42ecfeff89fbfb8fe2c2c61a18143ac | [
"MIT"
] | null | null | null | a001/split.py | amaraimusi/python_sample | 7d5524b3d42ecfeff89fbfb8fe2c2c61a18143ac | [
"MIT"
] | null | null | null | print ('split 文字列分割のテスト')
str1 = 'neko inu yagi\nSika\tTanuki';
list = str1.split()
print(list)
str2 = '猫 , 犬,ヤギ,シカ, タヌキ X';
list = str2.split(',')
print(list)
| 14.25 | 39 | 0.608187 | 26 | 171 | 4 | 0.653846 | 0.192308 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.19883 | 171 | 11 | 40 | 15.545455 | 0.729927 | 0 | 0 | 0.285714 | 0 | 0 | 0.397661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7af9ed6f90267c8138d923ea887d61171fc53267 | 716 | py | Python | isu/operation/section.py | pecusys/isutils | 39fa92dc391cc430dcf1864f4c2f0212f0db58b6 | [
"MIT"
] | null | null | null | isu/operation/section.py | pecusys/isutils | 39fa92dc391cc430dcf1864f4c2f0212f0db58b6 | [
"MIT"
] | null | null | null | isu/operation/section.py | pecusys/isutils | 39fa92dc391cc430dcf1864f4c2f0212f0db58b6 | [
"MIT"
] | null | null | null | import lxml.etree as ET
from typing import Optional, List, Dict, Any, Tuple
from PyQt6.QtCore import *
from dataclasses import dataclass
from ..operation import Op, Status
from isu.models.demo import Demo
from PIL import Image
import os, glob
def sect_test(xml_path: str):
pass
@dataclass
class Section(Op):
s... | 23.096774 | 57 | 0.666201 | 98 | 716 | 4.785714 | 0.540816 | 0.051173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001808 | 0.227654 | 716 | 30 | 58 | 23.866667 | 0.844485 | 0.069832 | 0 | 0 | 0 | 0 | 0.010558 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | null | null | 0.043478 | 0.347826 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bb16d819ba0a6cdc7084569722fdb1f16c24a7a6 | 17 | py | Python | T32-01/program.py | miguelgaoreiss/SSof-Project1920 | 0bf74c264e06966931d6a2e0b42134dfddc32eb4 | [
"MIT"
] | 2 | 2019-11-20T19:26:07.000Z | 2019-11-22T00:42:23.000Z | T32-01/program.py | miguelgaoreiss/SSof-Project1920 | 0bf74c264e06966931d6a2e0b42134dfddc32eb4 | [
"MIT"
] | 2 | 2019-11-28T05:21:24.000Z | 2019-11-28T05:21:58.000Z | T32-01/program.py | miguelgaoreiss/SSof-Project1920 | 0bf74c264e06966931d6a2e0b42134dfddc32eb4 | [
"MIT"
] | 25 | 2019-11-27T01:40:56.000Z | 2019-12-04T23:38:59.000Z | t = src()
snk(t)
| 5.666667 | 9 | 0.470588 | 4 | 17 | 2 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 17 | 2 | 10 | 8.5 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb3bba2e63e02cfa8487bc00ce0808865dd2ef5d | 689 | py | Python | Python-ControlFlowReview.py | H2oPtic/Codecademy-Education | 454ecff36a055fa17b4b338e1c6f1e9b3b94ef66 | [
"MIT"
] | null | null | null | Python-ControlFlowReview.py | H2oPtic/Codecademy-Education | 454ecff36a055fa17b4b338e1c6f1e9b3b94ef66 | [
"MIT"
] | null | null | null | Python-ControlFlowReview.py | H2oPtic/Codecademy-Education | 454ecff36a055fa17b4b338e1c6f1e9b3b94ef66 | [
"MIT"
] | null | null | null | print("I have information for the following planets:\n")
print(" 1. Venus 2. Mars 3. Jupiter")
print(" 4. Saturn 5. Uranus 6. Neptune\n")
weight = 185
planet = 2
# Write an if statement below:
if planet == 1:
print('Your weight on Venus is: ' + str(weight * 0.91))
elif planet == 2:
pri... | 31.318182 | 60 | 0.609579 | 111 | 689 | 3.783784 | 0.369369 | 0.128571 | 0.214286 | 0.242857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06501 | 0.240929 | 689 | 22 | 61 | 31.318182 | 0.73805 | 0.040639 | 0 | 0 | 0 | 0 | 0.428795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2485c7ae13811efeddce55716ac5d80fd14a81bd | 2,838 | py | Python | psx/_dump_/43/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/43/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/43/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x8014B488, "EA_cd_seek", SN_NOWARN)
set_name(0x8014B490, "MY_CdGetSector", SN_NOWARN)
set_name(0x8014B4C4, "init_cdstream", SN_NOWARN)
set_name(0x8014B4D4, "flush_cdstream", SN_NOWARN)
set_name(0x8014B4F8, "check_complete_frame", SN_NOWARN)
set_name(0x8014B578, "reset_cdstream", SN_NOWARN)
set_name(0x8014B5A0... | 49.789474 | 58 | 0.82241 | 424 | 2,838 | 5.03066 | 0.29717 | 0.183779 | 0.283638 | 0.386779 | 0.384435 | 0.197843 | 0 | 0 | 0 | 0 | 0 | 0.149064 | 0.059197 | 2,838 | 56 | 59 | 50.678571 | 0.649813 | 0 | 0 | 0 | 0 | 0 | 0.289641 | 0.046159 | 0 | 0 | 0.197322 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24e3b4ab9bd8446ffc563b3df90ca8f3de511976 | 431 | py | Python | src/integrations/segment/views.py | augustuswm/flagsmith-api | 6f37947fe3791726a92b4df2cdbded11e77387d3 | [
"BSD-3-Clause"
] | 1,259 | 2021-06-10T11:24:09.000Z | 2022-03-31T10:30:44.000Z | src/integrations/segment/views.py | augustuswm/flagsmith-api | 6f37947fe3791726a92b4df2cdbded11e77387d3 | [
"BSD-3-Clause"
] | 392 | 2021-06-10T11:12:29.000Z | 2022-03-31T10:13:53.000Z | src/integrations/segment/views.py | augustuswm/flagsmith-api | 6f37947fe3791726a92b4df2cdbded11e77387d3 | [
"BSD-3-Clause"
] | 58 | 2021-06-11T03:18:07.000Z | 2022-03-31T14:39:10.000Z | from integrations.common.views import IntegrationCommonViewSet
from integrations.segment.models import SegmentConfiguration
from integrations.segment.serializers import SegmentConfigurationSerializer
class SegmentConfigurationViewSet(IntegrationCommonViewSet):
serializer_class = SegmentConfigurationSerializer
... | 43.1 | 75 | 0.863109 | 37 | 431 | 9.972973 | 0.648649 | 0.130081 | 0.124661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106729 | 431 | 9 | 76 | 47.888889 | 0.958442 | 0.099768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24e4c451206841fc4626fecbd5e3a50b7bb2c23b | 132 | py | Python | codeChef/practice/easy/remiss.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 25 | 2015-01-21T16:39:18.000Z | 2021-05-24T07:01:24.000Z | codeChef/practice/easy/remiss.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 2 | 2020-09-30T19:39:36.000Z | 2020-10-01T17:15:16.000Z | codeChef/practice/easy/remiss.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 15 | 2015-01-21T16:39:27.000Z | 2020-10-01T17:00:22.000Z | from sys import stdin
for i, ln in enumerate(stdin):
if i:
a, b = map(int, ln.split())
print max(a, b), a + b
| 16.5 | 35 | 0.530303 | 24 | 132 | 2.916667 | 0.708333 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 132 | 7 | 36 | 18.857143 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
700543bf1b866d62c5e94357d7bcf822a7046d7b | 644 | py | Python | tests/test_get.py | tomviner/maven | 254e62c2556ae4d109d631635d4574940da85c6b | [
"Apache-2.0"
] | null | null | null | tests/test_get.py | tomviner/maven | 254e62c2556ae4d109d631635d4574940da85c6b | [
"Apache-2.0"
] | null | null | null | tests/test_get.py | tomviner/maven | 254e62c2556ae4d109d631635d4574940da85c6b | [
"Apache-2.0"
] | null | null | null | """
Running tests in development:
$ cd /path/to/repo
$ python -m pytest
Running tests against installed version (either `pip install .` or `pip install maven`):
$ cd /path/to/repo
$ pytest
"""
import pytest
import maven
def test_nonexisting_identifier():
with pytest.raises(KeyError):
ma... | 25.76 | 116 | 0.714286 | 87 | 644 | 5.229885 | 0.655172 | 0.052747 | 0.035165 | 0.052747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007619 | 0.184783 | 644 | 24 | 117 | 26.833333 | 0.859048 | 0.486025 | 0 | 0 | 0 | 0 | 0.198142 | 0.198142 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7021b16bbb6379e1fc00cc1ee02542e04601580c | 5,731 | py | Python | jobscheduler/test/test_jobscheduler.py | wenbobuaa/pykit | 43e38fe40297a1e7a9329bcf3db3554c7ca48ead | [
"MIT"
] | 2 | 2018-01-04T06:39:54.000Z | 2018-03-20T10:32:13.000Z | jobscheduler/test/test_jobscheduler.py | wenbobuaa/pykit | 43e38fe40297a1e7a9329bcf3db3554c7ca48ead | [
"MIT"
] | 3 | 2018-10-15T06:08:28.000Z | 2018-12-03T12:07:06.000Z | jobscheduler/test/test_jobscheduler.py | wenbobuaa/pykit | 43e38fe40297a1e7a9329bcf3db3554c7ca48ead | [
"MIT"
] | 2 | 2018-04-08T07:11:19.000Z | 2021-03-21T06:04:54.000Z | #!/usr/bin/env python2
# coding: utf-8
import time
import unittest
from pykit import jobscheduler
from pykit import timeutil
class TestJobScheduler(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_get_next_fire_time(self):
cases = (
(
... | 30.978378 | 80 | 0.342698 | 585 | 5,731 | 3.290598 | 0.188034 | 0.09974 | 0.116364 | 0.067532 | 0.610909 | 0.580779 | 0.566234 | 0.529351 | 0.510649 | 0.480519 | 0 | 0.24172 | 0.504798 | 5,731 | 184 | 81 | 31.146739 | 0.436575 | 0.065957 | 0 | 0.416149 | 0 | 0 | 0.217066 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 1 | 0.024845 | false | 0.012422 | 0.024845 | 0 | 0.055901 | 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 |
702dc1c64cfae2c0f2655457a184fb24028932cc | 253 | py | Python | Cursos/basic_python/for.py | ArmandoCarrillo91/Platzi | e4dca01c36c8569bd0e5b6537c9c688c841e54a3 | [
"Apache-2.0"
] | null | null | null | Cursos/basic_python/for.py | ArmandoCarrillo91/Platzi | e4dca01c36c8569bd0e5b6537c9c688c841e54a3 | [
"Apache-2.0"
] | null | null | null | Cursos/basic_python/for.py | ArmandoCarrillo91/Platzi | e4dca01c36c8569bd0e5b6537c9c688c841e54a3 | [
"Apache-2.0"
] | null | null | null | # print(1)
# print(2)
# print(3)
# print(4)
# print(5)
# contador = 1
# print(contador)
# while contador < 1000:
# contador += 1
# print(contador)
# for contador in range (1,10001):
# print(contador)
for i in range(10):
print(11 * i) | 14.055556 | 34 | 0.588933 | 37 | 253 | 4.027027 | 0.432432 | 0.120805 | 0.187919 | 0.295302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0.241107 | 253 | 18 | 35 | 14.055556 | 0.666667 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
703a45166d1b46904c483f867fa8739be58f21c4 | 235 | py | Python | src/python/marbles/ie/core/exception.py | marbles-ai/ie | b3fef462d3418580c827c94bc206bd2991500c1f | [
"MIT"
] | null | null | null | src/python/marbles/ie/core/exception.py | marbles-ai/ie | b3fef462d3418580c827c94bc206bd2991500c1f | [
"MIT"
] | null | null | null | src/python/marbles/ie/core/exception.py | marbles-ai/ie | b3fef462d3418580c827c94bc206bd2991500c1f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
class DrsComposeError(Exception):
"""DrsComposeError Error."""
pass
class UnaryRuleError(Exception):
"""UnaryRuleError Error."""
pass
| 16.785714 | 55 | 0.697872 | 22 | 235 | 7.181818 | 0.727273 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.174468 | 235 | 13 | 56 | 18.076923 | 0.809278 | 0.285106 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.4 | 0.2 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7041a543288944e63efb5e20bcf53728e4ca4f1f | 721 | py | Python | idl2js/config.py | raefko/idl2js | 3956fcd9f190deb5dd78106a8c25948e270205ae | [
"Apache-2.0"
] | 6 | 2021-05-30T15:41:25.000Z | 2021-12-16T17:09:53.000Z | idl2js/config.py | raefko/idl2js | 3956fcd9f190deb5dd78106a8c25948e270205ae | [
"Apache-2.0"
] | null | null | null | idl2js/config.py | raefko/idl2js | 3956fcd9f190deb5dd78106a8c25948e270205ae | [
"Apache-2.0"
] | 4 | 2021-03-10T08:39:16.000Z | 2021-12-16T03:17:20.000Z | import os
from collections.abc import Mapping
from typing import Any, Iterator
class Block(Mapping):
def __init__(self, /, **kwargs: Any):
self._data = kwargs
def __getitem__(self, item: str) -> str:
return self._data[item]
def __iter__(self) -> Iterator[str]:
return iter(self._... | 19.486486 | 44 | 0.590846 | 83 | 721 | 4.710843 | 0.421687 | 0.081841 | 0.056266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001965 | 0.294036 | 721 | 36 | 45 | 20.027778 | 0.766208 | 0 | 0 | 0 | 0 | 0 | 0.008322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.12 | 0.16 | 0.64 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.