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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
056ef37f8cd6cd116fdaa091e31732f563841be6 | 85 | py | Python | utils/config.py | mikesj-public/dcgan-autoencoder | 772815cb009349abd47b7f31c1ba5f41bef24b51 | [
"MIT"
] | 185 | 2016-01-25T13:09:33.000Z | 2020-12-27T19:00:34.000Z | utils/config.py | afcarl/dcgan-autoencoder | 772815cb009349abd47b7f31c1ba5f41bef24b51 | [
"MIT"
] | 3 | 2017-03-02T03:19:30.000Z | 2018-04-19T02:29:50.000Z | utils/config.py | afcarl/dcgan-autoencoder | 772815cb009349abd47b7f31c1ba5f41bef24b51 | [
"MIT"
] | 61 | 2016-01-26T10:52:51.000Z | 2021-04-15T07:57:20.000Z | data_dir = '/home/mike/Documents/convolutional_variational_autoencoder/dcgan/mnist/'
| 42.5 | 84 | 0.847059 | 10 | 85 | 6.9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 85 | 1 | 85 | 85 | 0.841463 | 0 | 0 | 0 | 0 | 0 | 0.835294 | 0.835294 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
55359815088e5657cecc45ebda74c6854a285ea3 | 4,768 | py | Python | tests/gdata_tests/apps/data_test.py | Cloudlock/gdata-python3 | a6481a13590bfa225f91a97b2185cca9aacd1403 | [
"Apache-2.0"
] | 19 | 2017-06-09T13:38:03.000Z | 2020-12-12T07:45:48.000Z | tests/gdata_tests/apps/data_test.py | AlexxIT/gdata-python3 | 5cc5a83a469d87f804d1fda8760ec76bcb6050c9 | [
"Apache-1.1"
] | 11 | 2017-07-22T07:09:54.000Z | 2020-12-02T15:08:48.000Z | tests/gdata_tests/apps/data_test.py | AlexxIT/gdata-python3 | 5cc5a83a469d87f804d1fda8760ec76bcb6050c9 | [
"Apache-1.1"
] | 25 | 2017-07-03T11:30:39.000Z | 2020-10-01T02:21:13.000Z | #
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License 2.0;
"""Data model tests for the Provisioning API."""
# __author__ = 'Shraddha Gupta <shraddhag@google.com>'
import unittest
import atom.core
import gdata.apps.data
import gdata.test_config as conf
from gdata import test_data... | 45.409524 | 96 | 0.645554 | 572 | 4,768 | 5.298951 | 0.181818 | 0.089739 | 0.200594 | 0.182118 | 0.765424 | 0.713956 | 0.662488 | 0.491587 | 0.430221 | 0.273837 | 0 | 0.027063 | 0.217282 | 4,768 | 104 | 97 | 45.846154 | 0.785102 | 0.038381 | 0 | 0.197531 | 0 | 0.024691 | 0.099454 | 0 | 0 | 0 | 0 | 0 | 0.518519 | 1 | 0.08642 | false | 0.024691 | 0.061728 | 0.012346 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
555a7d41ef798e55fd56514b01bc177e0b627c77 | 134 | py | Python | pysh/__init__.py | sfuller/pyshlang | 7b84d7a29eef552d03634298741b72940d7f8e86 | [
"Apache-2.0"
] | 1 | 2018-05-09T20:08:53.000Z | 2018-05-09T20:08:53.000Z | pysh/__init__.py | sfuller/pyshlang | 7b84d7a29eef552d03634298741b72940d7f8e86 | [
"Apache-2.0"
] | null | null | null | pysh/__init__.py | sfuller/pyshlang | 7b84d7a29eef552d03634298741b72940d7f8e86 | [
"Apache-2.0"
] | null | null | null | import sys
from pysh.interactive import Interactive
def main() -> None:
instance = Interactive()
sys.exit(instance.main())
| 14.888889 | 40 | 0.701493 | 16 | 134 | 5.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186567 | 134 | 8 | 41 | 16.75 | 0.862385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e95cd05fdd80cc09834f0a01565bd07dce348a07 | 240 | py | Python | KBBI/schema.py | harizMunawar/kbbi-as-a-service | d825a915a20bf84aa74a944e0d014c74b12808a5 | [
"MIT"
] | null | null | null | KBBI/schema.py | harizMunawar/kbbi-as-a-service | d825a915a20bf84aa74a944e0d014c74b12808a5 | [
"MIT"
] | null | null | null | KBBI/schema.py | harizMunawar/kbbi-as-a-service | d825a915a20bf84aa74a944e0d014c74b12808a5 | [
"MIT"
] | null | null | null | import graphene
import word.schema as word_schema
class Query(word_schema.Query, graphene.ObjectType):
pass
class Mutation(word_schema.Mutation, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query, mutation=Mutation) | 21.818182 | 58 | 0.795833 | 31 | 240 | 6.064516 | 0.322581 | 0.212766 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120833 | 240 | 11 | 59 | 21.818182 | 0.890995 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e9748216385a7778cabb1d959b83222a4fee7369 | 330 | py | Python | conftest.py | avanwyk/cipy | e5c8462eed8649abcb89c8a256d3868c89186b35 | [
"Apache-2.0"
] | 1 | 2016-07-12T12:14:06.000Z | 2016-07-12T12:14:06.000Z | conftest.py | avanwyk/cipy | e5c8462eed8649abcb89c8a256d3868c89186b35 | [
"Apache-2.0"
] | null | null | null | conftest.py | avanwyk/cipy | e5c8462eed8649abcb89c8a256d3868c89186b35 | [
"Apache-2.0"
] | null | null | null | def pytest_addoption(parser):
parser.addoption("--runexamples", action="store_true",
help="run examples")
parser.addoption("--runbenchmarks", action="store_true",
help="run benchmarks")
parser.addoption("--all", action="store_true",
help="run be... | 47.142857 | 60 | 0.587879 | 31 | 330 | 6.129032 | 0.451613 | 0.236842 | 0.236842 | 0.3 | 0.452632 | 0.336842 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 330 | 7 | 61 | 47.142857 | 0.785124 | 0 | 0 | 0.285714 | 0 | 0 | 0.311178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e974b1e0acdbae561e76f3830853fbcaa8dc4ff6 | 5,877 | py | Python | DailyProgrammer/DP20160323B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20160323B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20160323B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[2016-03-23] Challenge #259 [Intermediate] Mahjong Hands
https://www.reddit.com/r/dailyprogrammer/comments/4bmdwz/20160323_challenge_259_intermediate_mahjong_hands/
# Description
You are the biggest, baddest mahjong player around. Your enemies tremble at your presence on the battlefield, and you
can barely walk t... | 26.59276 | 120 | 0.695593 | 962 | 5,877 | 4.233888 | 0.274428 | 0.027498 | 0.031918 | 0.027498 | 0.338326 | 0.304444 | 0.268598 | 0.210901 | 0.210901 | 0.210901 | 0 | 0.03983 | 0.239578 | 5,877 | 220 | 121 | 26.713636 | 0.87156 | 0.987749 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e97c6363c6c295f6347e7d807643ea5ae77247f2 | 5,883 | py | Python | test/wrappers_tests.py | JakubPetriska/acpc-poker-bot-python-wrapper | b5079a214c66aafb54fbcba82812a5c032e497db | [
"MIT"
] | 12 | 2018-03-15T03:09:30.000Z | 2021-05-21T16:16:12.000Z | test/wrappers_tests.py | JakubPetriska/acpc-poker-bot-python-wrapper | b5079a214c66aafb54fbcba82812a5c032e497db | [
"MIT"
] | null | null | null | test/wrappers_tests.py | JakubPetriska/acpc-poker-bot-python-wrapper | b5079a214c66aafb54fbcba82812a5c032e497db | [
"MIT"
] | 1 | 2019-10-21T11:16:18.000Z | 2019-10-21T11:16:18.000Z | import ctypes as ctypes
import unittest
from acpc_python_client.wrappers import *
from test import agent_lib_test_utils as lib
class ActionWrapperTest(unittest.TestCase):
def setUp(self):
self.wrapper = ActionWrapper()
def test_values(self):
lib.test_utils.fillTestAction(ctypes.pointer(self... | 38.960265 | 80 | 0.664457 | 713 | 5,883 | 5.374474 | 0.16129 | 0.200939 | 0.208246 | 0.284969 | 0.658403 | 0.545929 | 0.455376 | 0.363257 | 0.324113 | 0.287839 | 0 | 0.012733 | 0.225735 | 5,883 | 150 | 81 | 39.22 | 0.82854 | 0 | 0 | 0.234783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.504348 | 1 | 0.113043 | false | 0 | 0.034783 | 0 | 0.191304 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e988750d7c00d28cb06970b09eb2a4bcfb89a2cb | 103 | py | Python | AdminSystem/RollMarkingApp/apps.py | J1mNg/StJohnAdminWebsite | 8be4327ab70d84fff7bd60ef308ea414e977a639 | [
"Apache-2.0"
] | null | null | null | AdminSystem/RollMarkingApp/apps.py | J1mNg/StJohnAdminWebsite | 8be4327ab70d84fff7bd60ef308ea414e977a639 | [
"Apache-2.0"
] | null | null | null | AdminSystem/RollMarkingApp/apps.py | J1mNg/StJohnAdminWebsite | 8be4327ab70d84fff7bd60ef308ea414e977a639 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class RollmarkingappConfig(AppConfig):
name = 'RollMarkingApp'
| 17.166667 | 38 | 0.786408 | 10 | 103 | 8.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 5 | 39 | 20.6 | 0.920455 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e9d0ffc3635c072166ea1ddbb10f823aa185c472 | 1,340 | py | Python | SNN_GDB/task.py | GOAL-Robots/ASpikingModelOfGoalDirectedBehaviour | 029b6a165039f8d9f748b77a1faa3c631ec27f07 | [
"MIT"
] | null | null | null | SNN_GDB/task.py | GOAL-Robots/ASpikingModelOfGoalDirectedBehaviour | 029b6a165039f8d9f748b77a1faa3c631ec27f07 | [
"MIT"
] | null | null | null | SNN_GDB/task.py | GOAL-Robots/ASpikingModelOfGoalDirectedBehaviour | 029b6a165039f8d9f748b77a1faa3c631ec27f07 | [
"MIT"
] | null | null | null | import numpy as np
def task_feedback(stim_acti_exp, stimulus, action, n_ttrial):
s = None
if stim_acti_exp[stimulus, action] == 0:
if 0 <= n_ttrial <= 2:
stim_acti_exp[stimulus, action] = -1
else:
if np.count_nonzero(stim_acti_exp == 1) == 0:
stim_acti_ex... | 39.411765 | 76 | 0.491045 | 159 | 1,340 | 3.874214 | 0.232704 | 0.207792 | 0.285714 | 0.37013 | 0.75487 | 0.714286 | 0.540584 | 0.366883 | 0.366883 | 0.243506 | 0 | 0.034398 | 0.392537 | 1,340 | 34 | 77 | 39.411765 | 0.722359 | 0 | 0 | 0.424242 | 0 | 0 | 0.014914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.030303 | 0 | 0.090909 | 0.060606 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e9df7000f3e1f2bde1287273ba9309def47b2ad6 | 107 | py | Python | enthought/mayavi/modules/structured_grid_outline.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/mayavi/modules/structured_grid_outline.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/mayavi/modules/structured_grid_outline.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from mayavi.modules.structured_grid_outline import *
| 26.75 | 52 | 0.859813 | 14 | 107 | 6.071429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 107 | 3 | 53 | 35.666667 | 0.885417 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7599386f118b857365ea81f861c5018eda95f818 | 143 | py | Python | wunderkafka/serdes/avro/types.py | severstal-digital/wunderkafka | 8c56fa4559a8576af7f005fd916bf97127576278 | [
"Apache-2.0"
] | null | null | null | wunderkafka/serdes/avro/types.py | severstal-digital/wunderkafka | 8c56fa4559a8576af7f005fd916bf97127576278 | [
"Apache-2.0"
] | null | null | null | wunderkafka/serdes/avro/types.py | severstal-digital/wunderkafka | 8c56fa4559a8576af7f005fd916bf97127576278 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List, Union
Field = Dict[str, Union[str, List[str]]]
FastAvroParsedSchema = Dict[str, Union[bool, str, List[Field]]]
| 28.6 | 63 | 0.727273 | 21 | 143 | 4.952381 | 0.47619 | 0.134615 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125874 | 143 | 4 | 64 | 35.75 | 0.832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
75c7e4d64142c0e13afdaca44df08a06b5dc2878 | 115 | py | Python | Chapter 06/ch6_1h.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 06/ch6_1h.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 06/ch6_1h.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | i=10
for i in range(5):
print(i)
i = i+3
print(i)
'''output
0
3
1
4
2
5
3
6
4
7
''' | 6.388889 | 20 | 0.4 | 25 | 115 | 1.84 | 0.6 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 0.46087 | 115 | 18 | 21 | 6.388889 | 0.516129 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
75ec4b561b0c01fbf35a9ca0d64168286a1cdf2d | 522 | py | Python | entities/part_category.py | DiPaolo/lego-image-dataset-retriever | 895fab10dbdbba99f36a1123d339b6f4fa5fe8fe | [
"Apache-2.0"
] | null | null | null | entities/part_category.py | DiPaolo/lego-image-dataset-retriever | 895fab10dbdbba99f36a1123d339b6f4fa5fe8fe | [
"Apache-2.0"
] | null | null | null | entities/part_category.py | DiPaolo/lego-image-dataset-retriever | 895fab10dbdbba99f36a1123d339b6f4fa5fe8fe | [
"Apache-2.0"
] | null | null | null | from json_utils import get_json_value
class PartCategory(object):
def __new__(cls, json_object):
if json_object:
return super(PartCategory, cls).__new__(cls)
else:
return None
def __init__(self, json_object):
self.__json = json_object
def id(self):
... | 23.727273 | 56 | 0.64751 | 69 | 522 | 4.376812 | 0.347826 | 0.13245 | 0.15894 | 0.168874 | 0.298013 | 0.298013 | 0.298013 | 0 | 0 | 0 | 0 | 0 | 0.260536 | 522 | 21 | 57 | 24.857143 | 0.782383 | 0 | 0 | 0 | 0 | 0 | 0.030651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f95c02c16b95fa11fc12543c35e7f60bf4259cdc | 145 | py | Python | res/default_secrets.py | raidancampbell/micropython | a87e18607c8bd3fb1a5b2952fa023d97035f3e3b | [
"MIT"
] | 1 | 2019-07-23T22:54:31.000Z | 2019-07-23T22:54:31.000Z | res/default_secrets.py | raidancampbell/micropython | a87e18607c8bd3fb1a5b2952fa023d97035f3e3b | [
"MIT"
] | null | null | null | res/default_secrets.py | raidancampbell/micropython | a87e18607c8bd3fb1a5b2952fa023d97035f3e3b | [
"MIT"
] | null | null | null | ssid = b'<ssid_name_here>'
password = b'<wifi_password_here>'
endpoint = 'http://www.brewstat.us/api/brews/<brew_id_here>/sessions/latest/stats'
| 36.25 | 82 | 0.758621 | 23 | 145 | 4.521739 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062069 | 145 | 3 | 83 | 48.333333 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f96a2532768da49cffd722ebe8357f02ee6c0d9e | 238 | py | Python | examples/detailed_use_cases/obj_5d.py | hase1128/dragonfly | 4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c | [
"MIT"
] | 675 | 2018-08-23T17:30:46.000Z | 2022-03-30T18:37:23.000Z | examples/detailed_use_cases/obj_5d.py | hase1128/dragonfly | 4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c | [
"MIT"
] | 62 | 2018-11-30T23:40:19.000Z | 2022-03-10T19:47:27.000Z | examples/detailed_use_cases/obj_5d.py | hase1128/dragonfly | 4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c | [
"MIT"
] | 349 | 2018-09-10T19:04:34.000Z | 2022-03-31T13:10:45.000Z | """
Synthetic function for 5D optimisation.
-- kirthevasank
"""
from moo_5d import compute_objectives as moo_objectives
def objective(x):
""" Computes the objectives. """
return moo_objectives(x)[0] # Just returns conductivity
| 19.833333 | 57 | 0.735294 | 29 | 238 | 5.896552 | 0.758621 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.163866 | 238 | 11 | 58 | 21.636364 | 0.844221 | 0.453782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f984514a36e775134a561a5a53018d1a0ce25b1a | 231 | py | Python | limitations_inference.py | cebucodecamp/pizzapy23-mypy | 648f636356e7771cb5b122620dcdd37fcd800553 | [
"CC0-1.0"
] | null | null | null | limitations_inference.py | cebucodecamp/pizzapy23-mypy | 648f636356e7771cb5b122620dcdd37fcd800553 | [
"CC0-1.0"
] | null | null | null | limitations_inference.py | cebucodecamp/pizzapy23-mypy | 648f636356e7771cb5b122620dcdd37fcd800553 | [
"CC0-1.0"
] | null | null | null | reveal_type(len("blub"))
def get_id(name: str):
return len(name)
reveal_type(get_id("blub"))
# limitations_inference.py:1: error: Revealed type is 'builtins.int'
# limitations_inference.py:7: error: Revealed type is 'Any'
| 19.25 | 68 | 0.727273 | 36 | 231 | 4.5 | 0.583333 | 0.123457 | 0.271605 | 0.234568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.12987 | 231 | 11 | 69 | 21 | 0.79602 | 0.536797 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
f9a82dbf62d27ed3584210c15e037ac3cfec68a9 | 224 | py | Python | tests/conftest.py | rishigarg94/pandas-visual-analysis | c9569878a44fb0f5d0acd8779ff65d51e1c1bd95 | [
"MIT"
] | 16 | 2020-09-03T20:58:40.000Z | 2022-03-19T01:12:31.000Z | tests/conftest.py | rishigarg94/pandas-visual-analysis | c9569878a44fb0f5d0acd8779ff65d51e1c1bd95 | [
"MIT"
] | 23 | 2020-08-26T19:47:54.000Z | 2022-01-21T20:38:15.000Z | tests/conftest.py | rishigarg94/pandas-visual-analysis | c9569878a44fb0f5d0acd8779ff65d51e1c1bd95 | [
"MIT"
] | 4 | 2020-08-26T19:46:37.000Z | 2021-09-30T06:24:19.000Z | import sys
import os
if os.path.exists("tests/../src/"):
sys.path.append("tests/../src/") # when calling pytest from root
if os.path.exists("../src/"):
sys.path.append("../src/") # when calling pytest from tests
| 24.888889 | 69 | 0.642857 | 34 | 224 | 4.235294 | 0.411765 | 0.055556 | 0.111111 | 0.194444 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 224 | 8 | 70 | 28 | 0.757895 | 0.267857 | 0 | 0 | 0 | 0 | 0.248447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f9e0eeeac8ad6fbaf2635604e1f2f05079cc96ce | 141 | py | Python | src/bills/forms.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | src/bills/forms.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | src/bills/forms.py | vandana0608/Pharmacy-Managament | f99bdec11c24027a432858daa19247a21cecc092 | [
"bzip2-1.0.6"
] | null | null | null | from django import forms
from .models import bill
class BillForm(forms.ModelForm):
class Meta:
model = bill
exclude = () | 20.142857 | 32 | 0.659574 | 17 | 141 | 5.470588 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269504 | 141 | 7 | 33 | 20.142857 | 0.902913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
ddaca74a42c0c3f1de24f4364b687dee927d5ad0 | 58 | py | Python | code/abc100_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc100_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc100_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | print("Yay!" if max(map(int,input().split()))<9 else ":(") | 58 | 58 | 0.586207 | 10 | 58 | 3.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.068966 | 58 | 1 | 58 | 58 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 4 |
ddb1edeecc6044d0606d64b913a134d90557cc27 | 10 | py | Python | templates/FLASK/auth.py | God-status/PyPC | d2db55b1a24f4149cb4a69ebed6d36a160d92d76 | [
"MIT"
] | 1 | 2021-11-26T19:09:09.000Z | 2021-11-26T19:09:09.000Z | templates/FLASK/auth.py | God-status/PyPC | d2db55b1a24f4149cb4a69ebed6d36a160d92d76 | [
"MIT"
] | null | null | null | templates/FLASK/auth.py | God-status/PyPC | d2db55b1a24f4149cb4a69ebed6d36a160d92d76 | [
"MIT"
] | null | null | null | # auth.py
| 5 | 9 | 0.6 | 2 | 10 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 10 | 1 | 10 | 10 | 0.75 | 0.7 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ddd9e89660b72080702963627fc5789ed5892399 | 486 | py | Python | challenges/towers_of_hanoi/test_towers_of_hanoi.py | jayadams011/data-structures-and-algorithms | b9a49c65ca769c82b2a34d840bd1e4dd626be025 | [
"MIT"
] | null | null | null | challenges/towers_of_hanoi/test_towers_of_hanoi.py | jayadams011/data-structures-and-algorithms | b9a49c65ca769c82b2a34d840bd1e4dd626be025 | [
"MIT"
] | 4 | 2018-03-22T16:56:06.000Z | 2018-03-28T23:30:29.000Z | challenges/towers_of_hanoi/test_towers_of_hanoi.py | jayadams011/data-structures-and-algorithms | b9a49c65ca769c82b2a34d840bd1e4dd626be025 | [
"MIT"
] | null | null | null | from .towers_of_hanoi import towers_of_hanoi as th
from .towers_of_hanoi import steps
import pytest
def test_empty_th():
"""test if input empty"""
assert th(0, '', '', '') is None
# def test_th_1():
# """ verify works with one disk """
# assert len(list(steps(3))) == 3
# def test_th_5():
# """ ... | 21.130435 | 50 | 0.600823 | 76 | 486 | 3.657895 | 0.381579 | 0.100719 | 0.140288 | 0.194245 | 0.557554 | 0.392086 | 0.392086 | 0.392086 | 0.266187 | 0 | 0 | 0.034759 | 0.230453 | 486 | 22 | 51 | 22.090909 | 0.708556 | 0.602881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | true | 0 | 0.6 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dddd2bac3bb9b4b49090ce53263dc000ac80018c | 70 | py | Python | pyts/plot/api.py | JensGM/pyTurbSim | 89357e94607e99e5a27e069975684fe8e6a89a9d | [
"Apache-2.0"
] | 8 | 2017-07-24T23:01:28.000Z | 2021-12-06T04:31:23.000Z | pyts/plot/api.py | camilledub/pyTurbSim | 69db0d7670afe5b2b386087aa0229a7511ef070d | [
"Apache-2.0"
] | 9 | 2015-04-06T16:01:06.000Z | 2020-06-16T16:51:49.000Z | pyts/plot/api.py | camilledub/pyTurbSim | 69db0d7670afe5b2b386087aa0229a7511ef070d | [
"Apache-2.0"
] | 17 | 2015-04-22T15:27:28.000Z | 2021-11-20T08:10:16.000Z | import axform
FigAxForm = axform.FigAxForm
summfig = axform.summfig
| 11.666667 | 28 | 0.8 | 8 | 70 | 7 | 0.5 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 70 | 5 | 29 | 14 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
ddf071e0c53607c5b89d1da787a61a285d649e7c | 185 | py | Python | csv_fix.py | lamphanqg/yahoo_auction_crawler | 2800527dfb24f2283cb8fe7e7ec6faa577b4acb2 | [
"MIT"
] | 1 | 2021-11-15T01:33:13.000Z | 2021-11-15T01:33:13.000Z | csv_fix.py | lamphanqg/yahoo_auction_crawler | 2800527dfb24f2283cb8fe7e7ec6faa577b4acb2 | [
"MIT"
] | null | null | null | csv_fix.py | lamphanqg/yahoo_auction_crawler | 2800527dfb24f2283cb8fe7e7ec6faa577b4acb2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
with open("products.csv", "rb") as f:
with open("products_fixed.csv", "w", encoding='utf-8-sig') as f2:
f2.write(f.read().decode().replace("\r", "")) | 46.25 | 69 | 0.567568 | 29 | 185 | 3.586207 | 0.689655 | 0.076923 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.156757 | 185 | 4 | 70 | 46.25 | 0.641026 | 0.113514 | 0 | 0 | 0 | 0 | 0.269939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ddf9ac169d140abae128b95a53b90bd57ee92765 | 108 | py | Python | codeit/algorithm/util.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | codeit/algorithm/util.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | codeit/algorithm/util.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | def test_value(result, answer):
print(f'result: {result}, answer: {answer}')
assert result == answer | 36 | 48 | 0.675926 | 14 | 108 | 5.142857 | 0.571429 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 108 | 3 | 49 | 36 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.311927 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fb2b31a52382e54fed6d4556698b75c8d4f241b0 | 300 | py | Python | db/mongo.py | gyulka/bashair | ca1fdb51af7640ee4c4c75dcb116ee0ad96e3db9 | [
"MIT"
] | 6 | 2021-03-23T21:02:00.000Z | 2022-03-06T10:10:34.000Z | db/mongo.py | gyulka/bashair | ca1fdb51af7640ee4c4c75dcb116ee0ad96e3db9 | [
"MIT"
] | null | null | null | db/mongo.py | gyulka/bashair | ca1fdb51af7640ee4c4c75dcb116ee0ad96e3db9 | [
"MIT"
] | 2 | 2021-04-01T19:31:09.000Z | 2022-02-11T18:54:55.000Z | from pymongo import MongoClient
from config import settings
def connection():
return MongoClient(f'{settings.MONGO_HOST}:{settings.MONGO_PORT}',
username=settings.MONGO_USER,
password=settings.MONGO_PASSWORD)
db = connection()[settings.MONGO_DB] | 25 | 70 | 0.676667 | 32 | 300 | 6.1875 | 0.53125 | 0.328283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236667 | 300 | 12 | 71 | 25 | 0.864629 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
34a169d2e4afab7fbbb35a96c32162f9b6f11681 | 169 | py | Python | Idat_Python2022/Semana_7/Practica_While/6_Practica_Sem07_While.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | Idat_Python2022/Semana_7/Practica_While/6_Practica_Sem07_While.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | Idat_Python2022/Semana_7/Practica_While/6_Practica_Sem07_While.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | # 2. Hacer un algoritmo en Python para determinar la media aritmética de
# una lista de 10 números positivos, se debe acabar el programa al ingresar un número negativo.
| 56.333333 | 95 | 0.792899 | 28 | 169 | 4.785714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.177515 | 169 | 2 | 96 | 84.5 | 0.942446 | 0.970414 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
34e2389b823c106b8e274ce54e5892de05e26d9e | 33 | py | Python | tests/__init__.py | KonnexionsGmbH/ocr_bench | 8f54b386c22b43a2f4e8f98dc6f7ac69edf7e0be | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2022-02-24T15:13:23.000Z | 2022-03-28T00:45:31.000Z | tests/__init__.py | KonnexionsGmbH/dcr | 3b58be5df66831e5389558599cf1d234da605aeb | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | tests/__init__.py | KonnexionsGmbH/dcr | 3b58be5df66831e5389558599cf1d234da605aeb | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | """Unit test package for dcr."""
| 16.5 | 32 | 0.636364 | 5 | 33 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 33 | 1 | 33 | 33 | 0.75 | 0.787879 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
550bab259a6621dec2f275162de8de31d180c0f0 | 231 | py | Python | brutal/spawn/spawn_template/hive.py | Acidburn0zzz/brutal | cfe230d162de63184b5a345870191de94cc772fd | [
"Apache-2.0"
] | 154 | 2015-01-12T23:33:01.000Z | 2022-03-30T21:37:39.000Z | brutal/spawn/spawn_template/hive.py | Acidburn0zzz/brutal | cfe230d162de63184b5a345870191de94cc772fd | [
"Apache-2.0"
] | null | null | null | brutal/spawn/spawn_template/hive.py | Acidburn0zzz/brutal | cfe230d162de63184b5a345870191de94cc772fd | [
"Apache-2.0"
] | 34 | 2015-01-19T11:14:46.000Z | 2021-08-03T01:47:50.000Z | #!/usr/bin/env python
import os
from brutal.core.management import exec_overlord
if __name__ == "__main__":
os.environ.setdefault("BRUTAL_CONFIG_MODULE", "{{ spawn_name }}.config")
exec_overlord("{{ spawn_name }}.config") | 28.875 | 76 | 0.727273 | 30 | 231 | 5.133333 | 0.666667 | 0.155844 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 231 | 8 | 77 | 28.875 | 0.758621 | 0.08658 | 0 | 0 | 0 | 0 | 0.350711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5520ee86ab306f4004b451e12d6bcaef5b23917d | 100 | py | Python | presalytics/lib/__init__.py | presalytics/python-client | 5d80b78562126feeeb49af4738e2c1aed12dce3a | [
"MIT"
] | 4 | 2020-02-21T16:30:46.000Z | 2021-01-12T12:22:03.000Z | presalytics/lib/__init__.py | presalytics/python-client | 5d80b78562126feeeb49af4738e2c1aed12dce3a | [
"MIT"
] | 4 | 2019-12-28T19:30:08.000Z | 2020-03-31T19:27:45.000Z | presalytics/lib/__init__.py | presalytics/python-client | 5d80b78562126feeeb49af4738e2c1aed12dce3a | [
"MIT"
] | null | null | null | """
Contains configuration and library objects for users to build upon when create story objects
""" | 33.333333 | 92 | 0.79 | 14 | 100 | 5.642857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 3 | 93 | 33.333333 | 0.929412 | 0.92 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9b3ca454b39eca0d3e5255ff8a80d2bba325abdc | 211 | py | Python | models/amenity.py | SantiagoHerreG/AirBnB_clone | aa8c8b042f991deb0184a3b2c37b1de2e5f0baa6 | [
"MIT"
] | 1 | 2019-11-09T23:12:05.000Z | 2019-11-09T23:12:05.000Z | models/amenity.py | SantiagoHerreG/AirBnB_clone | aa8c8b042f991deb0184a3b2c37b1de2e5f0baa6 | [
"MIT"
] | null | null | null | models/amenity.py | SantiagoHerreG/AirBnB_clone | aa8c8b042f991deb0184a3b2c37b1de2e5f0baa6 | [
"MIT"
] | 2 | 2019-11-13T18:37:50.000Z | 2019-11-15T18:30:03.000Z | #!/usr/bin/python3
""" Module that contains the class Amenity
"""
from models.base_model import BaseModel
class Amenity(BaseModel):
""" New class Amenity that inherits from BaseModel
"""
name = ""
| 19.181818 | 54 | 0.691943 | 26 | 211 | 5.576923 | 0.692308 | 0.248276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.194313 | 211 | 10 | 55 | 21.1 | 0.847059 | 0.511848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9bbe765c0d3f9198e0b9197ba3f1473ad2e7b4d8 | 137 | py | Python | examples/hooks/per_test_pre.py | rsp9u/side-runner-py | 13ad73a0d9055b03c9de54e0bbd4234b34d86498 | [
"MIT"
] | 5 | 2020-02-13T00:24:41.000Z | 2022-01-10T10:11:00.000Z | examples/hooks/per_test_pre.py | rsp9u/side-runner-py | 13ad73a0d9055b03c9de54e0bbd4234b34d86498 | [
"MIT"
] | 58 | 2019-04-02T02:51:02.000Z | 2021-01-14T08:42:19.000Z | examples/hooks/per_test_pre.py | rsp9u/side-runner-py | 13ad73a0d9055b03c9de54e0bbd4234b34d86498 | [
"MIT"
] | 7 | 2019-04-02T11:42:24.000Z | 2020-11-10T20:17:56.000Z | conditions = {
'test_project_ids': ['*'],
'test_suite_ids': ['*'],
'test_names': ['login'],
}
def pre_test_run():
pass
| 13.7 | 30 | 0.540146 | 15 | 137 | 4.466667 | 0.733333 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226277 | 137 | 9 | 31 | 15.222222 | 0.632075 | 0 | 0 | 0 | 0 | 0 | 0.343066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
32f4a20390eecb3a29521a7fcc36095c9205b35a | 9,092 | py | Python | src/tt_logic/tt_logic/clans/tests/test_constants.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/tt_logic/tt_logic/clans/tests/test_constants.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/tt_logic/tt_logic/clans/tests/test_constants.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import unittest
from .. import constants as c
class ConstantsTest(unittest.TestCase):
def test_constants_values(self):
self.assertEqual(c.EXPECTED_EVENT_LENGTH, 7)
self.assertEqual(c.MAX_EVENT_LENGTH, 30)
self.assertEqual(c.EMISSARY_RECEIVE_PERIOD_FOR_NEW_CLAN, 21)
self.asser... | 37.415638 | 110 | 0.41388 | 598 | 9,092 | 6.083612 | 0.449833 | 0.177295 | 0.189115 | 0.044255 | 0.374382 | 0.290269 | 0.198186 | 0.124244 | 0.124244 | 0.124244 | 0 | 0.429042 | 0.532666 | 9,092 | 242 | 111 | 37.570248 | 0.427159 | 0.017378 | 0 | 0.163462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201923 | 1 | 0.004808 | false | 0 | 0.009615 | 0 | 0.019231 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 4 |
32f6ec9d50d64b5bec408bcf28d000824f4401e4 | 230 | py | Python | modules/stripe/api_resources/issuer_fraud_record.py | SOSharkie/CMPS183_Final | 7b020f841a94cfaef3f1b7ff1ea1faefff3c9f3a | [
"MIT"
] | null | null | null | modules/stripe/api_resources/issuer_fraud_record.py | SOSharkie/CMPS183_Final | 7b020f841a94cfaef3f1b7ff1ea1faefff3c9f3a | [
"MIT"
] | 1 | 2021-03-31T18:36:41.000Z | 2021-03-31T18:36:41.000Z | lib/stripe/api_resources/issuer_fraud_record.py | linuxpi/hypoconn_gcloud | ebf06c44dc754ac446a0915a0db028f18e3f35a7 | [
"Apache-2.0"
] | null | null | null | from stripe.api_resources.abstract import ListableAPIResource
class IssuerFraudRecord(ListableAPIResource):
OBJECT_NAME = 'issuer_fraud_record'
@classmethod
def class_name(cls):
return 'issuer_fraud_record'
| 23 | 61 | 0.778261 | 24 | 230 | 7.166667 | 0.75 | 0.127907 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16087 | 230 | 9 | 62 | 25.555556 | 0.891192 | 0 | 0 | 0 | 0 | 0 | 0.165217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
32ff819f652f6bb09ca10b1e60b755fb9bf5178c | 3,033 | py | Python | env/Lib/site-packages/OpenGL/GLES2/OES/packed_depth_stencil.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | env/Lib/site-packages/OpenGL/GLES2/OES/packed_depth_stencil.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | env/Lib/site-packages/OpenGL/GLES2/OES/packed_depth_stencil.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension OES.packed_depth_stencil
This module customises the behaviour of the
OpenGL.raw.GLES2.OES.packed_depth_stencil to provide a more
Python-friendly API
Overview (from the spec)
Many OpenGL implementations have chosen to interleave the depth and stencil
buffers into one buffer, often with 24 bit... | 49.721311 | 77 | 0.802176 | 486 | 3,033 | 4.934156 | 0.407407 | 0.040033 | 0.029191 | 0.043786 | 0.118015 | 0.052127 | 0.052127 | 0.037531 | 0.037531 | 0 | 0 | 0.011458 | 0.165513 | 3,033 | 61 | 78 | 49.721311 | 0.935994 | 0.945269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fd320b30b3ba0e663c8f606e9610852b24185ccf | 526 | py | Python | Desafios/Mundo 01/009.py | fabianylopes/Curso-Em-Video-Python | ab510f1b7a1031fd83715866dcfa7850955dd8b8 | [
"MIT"
] | null | null | null | Desafios/Mundo 01/009.py | fabianylopes/Curso-Em-Video-Python | ab510f1b7a1031fd83715866dcfa7850955dd8b8 | [
"MIT"
] | null | null | null | Desafios/Mundo 01/009.py | fabianylopes/Curso-Em-Video-Python | ab510f1b7a1031fd83715866dcfa7850955dd8b8 | [
"MIT"
] | null | null | null | #009 - TABUADA
#Faça um programa que leia um número inteiro qualquer e mostre na tela a sua tabiada.
n = int(input('Digite um número para ver a sua tabuada: '))
print('-' * 12)
print(f'TABUADA DO {n}')
print('-' * 12)
print(f'{n} x 1 = {n * 1}')
print(f'{n} x 2 = {n * 2}')
print(f'{n} x 3 = {n * 3}')
print(f'{n} x ... | 27.684211 | 85 | 0.509506 | 110 | 526 | 2.436364 | 0.345455 | 0.246269 | 0.261194 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076733 | 0.231939 | 526 | 18 | 86 | 29.222222 | 0.586634 | 0.184411 | 0 | 0.2 | 0 | 0 | 0.559719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.933333 | 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 | 1 | 0 | 4 |
b5da3b2b78f5d8b974820fd2e1dc02e3cf5eb4d5 | 47 | py | Python | wikimedia_thumbor/engine/djvu/__init__.py | wikimedia/operations-software-thumbor-plugins | b30f1594e05118a1d2ed77a886d270866206d08a | [
"MIT"
] | 2 | 2017-06-14T15:14:50.000Z | 2018-02-19T12:38:00.000Z | wikimedia_thumbor/engine/djvu/__init__.py | wikimedia/operations-debs-python-thumbor-wikimedia | 555f99fd500a95e00778fa740ac08e41dc6ff896 | [
"MIT"
] | null | null | null | wikimedia_thumbor/engine/djvu/__init__.py | wikimedia/operations-debs-python-thumbor-wikimedia | 555f99fd500a95e00778fa740ac08e41dc6ff896 | [
"MIT"
] | null | null | null | from .djvu import Engine
__all__ = ['Engine']
| 11.75 | 24 | 0.702128 | 6 | 47 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 3 | 25 | 15.666667 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
b5fc452f208f6db885f451cb14fb70e14756c27b | 191 | py | Python | fancy_formsets/helper.py | cjsapaglinawan/django-crispy-forms-fancy-formsets | f55f6af5debf3e90d21a0fe7dfcac3f34c72e9b7 | [
"MIT"
] | 4 | 2015-01-20T17:55:04.000Z | 2017-08-06T12:37:35.000Z | fancy_formsets/helper.py | cjsapaglinawan/django-crispy-forms-fancy-formsets | f55f6af5debf3e90d21a0fe7dfcac3f34c72e9b7 | [
"MIT"
] | 2 | 2015-01-20T17:54:22.000Z | 2015-03-30T06:09:27.000Z | fancy_formsets/helper.py | cjsapaglinawan/django-crispy-forms-fancy-formsets | f55f6af5debf3e90d21a0fe7dfcac3f34c72e9b7 | [
"MIT"
] | 5 | 2015-01-12T12:51:45.000Z | 2020-12-11T13:56:16.000Z | from crispy_forms.helper import FormHelper
class InlineFormHelper(FormHelper):
pass
class InlineFormsetHelper(FormHelper):
template_name = 'fancy_formsets_bootstrap/formset.html'
| 19.1 | 59 | 0.811518 | 20 | 191 | 7.55 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125654 | 191 | 9 | 60 | 21.222222 | 0.904192 | 0 | 0 | 0 | 0 | 0 | 0.193717 | 0.193717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 4 |
1f9917d43baaf6b5610e618de1fcabf5722c0252 | 341 | py | Python | authentication/utils_test.py | mitodl/mit-xpro | 981d6c87d963837f0b9ccdd996067fe81394dba4 | [
"BSD-3-Clause"
] | 10 | 2019-02-20T18:41:32.000Z | 2021-07-26T10:39:58.000Z | authentication/utils_test.py | mitodl/mit-xpro | 981d6c87d963837f0b9ccdd996067fe81394dba4 | [
"BSD-3-Clause"
] | 2,226 | 2019-02-20T20:03:57.000Z | 2022-03-31T11:18:56.000Z | authentication/utils_test.py | mitodl/mit-xpro | 981d6c87d963837f0b9ccdd996067fe81394dba4 | [
"BSD-3-Clause"
] | 4 | 2020-08-26T19:26:02.000Z | 2021-03-09T17:46:47.000Z | """Utils tests"""
from authentication.strategy import DjangoRestFrameworkStrategy
from authentication.utils import load_drf_strategy
def test_load_drf_strategy(mocker):
"""Test that load_drf_strategy returns a DjangoRestFrameworkStrategy instance"""
assert isinstance(load_drf_strategy(mocker.Mock()), DjangoRe... | 37.888889 | 84 | 0.832845 | 37 | 341 | 7.432432 | 0.513514 | 0.101818 | 0.218182 | 0.152727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093842 | 341 | 8 | 85 | 42.625 | 0.889968 | 0.252199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1f9bf68bfad9b6633ae0a496197d980e64a83d86 | 58 | py | Python | examples/compilex-Demo1/temp/m32kmyl.py | IPPMCMP07/compiler | 1041c56dae9f7a13ba0657085532b4d074144e39 | [
"MIT"
] | null | null | null | examples/compilex-Demo1/temp/m32kmyl.py | IPPMCMP07/compiler | 1041c56dae9f7a13ba0657085532b4d074144e39 | [
"MIT"
] | null | null | null | examples/compilex-Demo1/temp/m32kmyl.py | IPPMCMP07/compiler | 1041c56dae9f7a13ba0657085532b4d074144e39 | [
"MIT"
] | null | null | null | a=5
b=3
print(a+b)
c=input()
#d=input()
d=4
e=c*d
print(e) | 7.25 | 10 | 0.586207 | 18 | 58 | 1.888889 | 0.555556 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.12069 | 58 | 8 | 11 | 7.25 | 0.607843 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 1 | 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 | 4 |
1fbd33a1f7801bb1c9fc945e5aefac1164b2e087 | 542 | py | Python | PI/__init__.py | HotShot0901/PI | 7e6fd0f68b4222e09ea825f27709ec5b1e51e928 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null | PI/__init__.py | HotShot0901/PI | 7e6fd0f68b4222e09ea825f27709ec5b1e51e928 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null | PI/__init__.py | HotShot0901/PI | 7e6fd0f68b4222e09ea825f27709ec5b1e51e928 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null | from .Core import *
from .Core.App import *
from .Core.Input import *
from .Core.Window import *
from .Events import *
from .Layers import *
from .ImGui import *
from .Platform import *
from .Renderer import *
from .Logging import *
from .ButtonCodes import *
import pyrr
import imgui
from numpy import de... | 16.9375 | 47 | 0.717712 | 76 | 542 | 5.092105 | 0.539474 | 0.258398 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195572 | 542 | 31 | 48 | 17.483871 | 0.887615 | 0.166052 | 0 | 0 | 0 | 0 | 0.01559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.736842 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1fcf87fb05017608d1e7a1e6ab6d40d6aa51b65b | 97 | py | Python | condominium/apps.py | kozlyuk/appart | 4a02cd31035949eaf5966f5b1975e1c6430b4d40 | [
"MIT"
] | null | null | null | condominium/apps.py | kozlyuk/appart | 4a02cd31035949eaf5966f5b1975e1c6430b4d40 | [
"MIT"
] | 4 | 2021-03-30T13:42:02.000Z | 2021-09-22T19:19:17.000Z | condominium/apps.py | kozlyuk/appart | 4a02cd31035949eaf5966f5b1975e1c6430b4d40 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CondominiumConfig(AppConfig):
name = 'condominium'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1ff1ca692848918d1c12e04cd79f4c5c510d5d44 | 93 | py | Python | lang/Python/string-interpolation--included--1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/string-interpolation--included--1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/string-interpolation--included--1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | original = 'Mary had a %s lamb.'
extra = 'little'
original % extra
'Mary had a little lamb.'
| 18.6 | 32 | 0.677419 | 15 | 93 | 4.2 | 0.533333 | 0.222222 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 93 | 4 | 33 | 23.25 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
1ff1fc565ce8d5406748c336c4555657437180a2 | 127 | py | Python | ServerAPI/image_classification_class.py | catalina-bejan/bachelor-graduation-thesis | e3b1bc67c153199a6188fcf1358dac0279b5b9a7 | [
"MIT"
] | null | null | null | ServerAPI/image_classification_class.py | catalina-bejan/bachelor-graduation-thesis | e3b1bc67c153199a6188fcf1358dac0279b5b9a7 | [
"MIT"
] | null | null | null | ServerAPI/image_classification_class.py | catalina-bejan/bachelor-graduation-thesis | e3b1bc67c153199a6188fcf1358dac0279b5b9a7 | [
"MIT"
] | null | null | null | class ImageClassification:
def __init__(self, label, binary_score):
self.label = label
self.binary_score = binary_score | 31.75 | 42 | 0.771654 | 16 | 127 | 5.6875 | 0.5 | 0.362637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 127 | 4 | 43 | 31.75 | 0.842593 | 0 | 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 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
950d8164a5cd7b49fdb0d01fa6008721680e6686 | 909 | py | Python | pymotifcounter/validators.py | aanastasiou/pymotifcounter | ec1f42b67d589d6f9cd6448fd2f94143eebb9cbf | [
"Apache-2.0"
] | null | null | null | pymotifcounter/validators.py | aanastasiou/pymotifcounter | ec1f42b67d589d6f9cd6448fd2f94143eebb9cbf | [
"Apache-2.0"
] | null | null | null | pymotifcounter/validators.py | aanastasiou/pymotifcounter | ec1f42b67d589d6f9cd6448fd2f94143eebb9cbf | [
"Apache-2.0"
] | null | null | null | """
Stock lambda functions for performing standard pieces of parameter validation
:author: Athanasios Anastasiou
:date: Nov 2021
"""
import os
def path_exists():
return lambda x: "OK" if os.path.exists(x) else f"{x} does not exist"
def validates_always():
return lambda x: True
def is_le(a):
return l... | 20.659091 | 77 | 0.629263 | 181 | 909 | 3.110497 | 0.281768 | 0.191829 | 0.207815 | 0.213144 | 0.463588 | 0.380107 | 0.348135 | 0.314387 | 0.314387 | 0.314387 | 0 | 0.005764 | 0.236524 | 909 | 44 | 78 | 20.659091 | 0.805476 | 0.137514 | 0 | 0 | 0 | 0 | 0.275418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0 | 0.052632 | 0.473684 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
20f8a1a2dbb5e9b6de2635be17052641dd3f78ce | 209 | py | Python | messaging/utils.py | sunhoww/messaging | 2d3d2dc2bc89f55c0f21345106c82e92d5a2d14d | [
"MIT"
] | 1 | 2018-09-12T09:09:36.000Z | 2018-09-12T09:09:36.000Z | messaging/utils.py | sunhoww/messaging | 2d3d2dc2bc89f55c0f21345106c82e92d5a2d14d | [
"MIT"
] | 1 | 2021-06-01T22:30:54.000Z | 2021-06-01T22:30:54.000Z | messaging/utils.py | sunhoww/messaging | 2d3d2dc2bc89f55c0f21345106c82e92d5a2d14d | [
"MIT"
] | 1 | 2018-09-12T09:09:43.000Z | 2018-09-12T09:09:43.000Z | # -*- coding: utf-8 -*-
from toolz import keyfilter
def pick(whitelist, d):
return keyfilter(lambda k: k in whitelist, d)
def omit(blacklist, d):
return keyfilter(lambda k: k not in blacklist, d)
| 17.416667 | 53 | 0.674641 | 32 | 209 | 4.40625 | 0.5625 | 0.141844 | 0.22695 | 0.312057 | 0.340426 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.205742 | 209 | 11 | 54 | 19 | 0.843373 | 0.100478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
1f0d50482cbd2607022d90152721af49e7c6e983 | 102 | py | Python | arkav_is_api/seminar/apps.py | arkavidia5/arkav-is | 6c6e8d091ead5bfff664d86f7903c62209800031 | [
"MIT"
] | 3 | 2018-10-01T16:30:15.000Z | 2020-01-06T09:03:57.000Z | arkav_is_api/seminar/apps.py | arkavidia5/arkav-is | 6c6e8d091ead5bfff664d86f7903c62209800031 | [
"MIT"
] | 4 | 2018-11-03T10:56:52.000Z | 2020-04-26T06:54:16.000Z | arkav_is_api/seminar/apps.py | arkavidia5/arkav-is | 6c6e8d091ead5bfff664d86f7903c62209800031 | [
"MIT"
] | 2 | 2018-09-26T16:28:01.000Z | 2019-09-04T06:23:14.000Z | from django.apps import AppConfig
class SeminarConfig(AppConfig):
name = 'arkav_is_api.seminar'
| 17 | 33 | 0.77451 | 13 | 102 | 5.923077 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 5 | 34 | 20.4 | 0.885057 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1f15f0fece664a9022ef611519d41a1fbc89bda4 | 85 | py | Python | hello_eric.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | hello_eric.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | hello_eric.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | name = "Eric"
print("Hello " + name + ", would you like to learn some Python today?") | 42.5 | 71 | 0.658824 | 13 | 85 | 4.307692 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 85 | 2 | 71 | 42.5 | 0.811594 | 0 | 0 | 0 | 0 | 0 | 0.627907 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1f75cea8375b355222a03c9712e08e22944c2fb8 | 547 | py | Python | 0x04-python-more_data_structures/102-main.py | darkares23/holbertonschool-higher_level_programming | 931b1b701d8a1d990b7cd931486496c0b5502e21 | [
"MIT"
] | 1 | 2022-02-07T12:13:18.000Z | 2022-02-07T12:13:18.000Z | 0x04-python-more_data_structures/102-main.py | darkares23/holbertonschool-higher_level_programming | 931b1b701d8a1d990b7cd931486496c0b5502e21 | [
"MIT"
] | null | null | null | 0x04-python-more_data_structures/102-main.py | darkares23/holbertonschool-higher_level_programming | 931b1b701d8a1d990b7cd931486496c0b5502e21 | [
"MIT"
] | 1 | 2021-12-06T18:15:54.000Z | 2021-12-06T18:15:54.000Z | #!/usr/bin/python3
complex_delete = __import__('102-complex_delete').complex_delete
print_sorted_dictionary = \
__import__('6-print_sorted_dictionary').print_sorted_dictionary
a_dictionary = {'lang': "C", 'track': "Low", 'pref': "C", 'ids': [1, 2, 3]}
new_dict = complex_delete(a_dictionary, 'C')
print_sorted_dicti... | 30.388889 | 75 | 0.755027 | 74 | 547 | 5.067568 | 0.337838 | 0.205333 | 0.392 | 0.176 | 0.602667 | 0.517333 | 0.517333 | 0.346667 | 0.346667 | 0.346667 | 0 | 0.015842 | 0.076782 | 547 | 17 | 76 | 32.176471 | 0.726733 | 0.031079 | 0 | 0.571429 | 0 | 0 | 0.153119 | 0.047259 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.714286 | 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 | 1 | 0 | 4 |
2f3cb9a0172077b256d4ac1ef2327391ec74f223 | 191 | py | Python | w3resource/Functions/Functions06.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | w3resource/Functions/Functions06.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | w3resource/Functions/Functions06.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | def in_range(minim, maxim, num):
if minim > maxim:
aux = minim
minim = maxim
maxim = aux
return num in range(minim, maxim)
x = in_range(10, 14, 11)
print(x)
| 17.363636 | 37 | 0.570681 | 29 | 191 | 3.689655 | 0.482759 | 0.373832 | 0.224299 | 0.317757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.324607 | 191 | 10 | 38 | 19.1 | 0.782946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 1 | 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 | 4 |
2f63b1d081dd6a17a73e6f2551079e28e482ddeb | 1,548 | py | Python | Python/Turtle/India_Flag.py | Aditya8821/Python | 58c7ea8daf381256d8a45736832fb70f735757f7 | [
"MIT"
] | 2 | 2021-05-12T11:20:39.000Z | 2021-06-17T04:35:16.000Z | Python/Turtle/India_Flag.py | Aditya8821/Python | 58c7ea8daf381256d8a45736832fb70f735757f7 | [
"MIT"
] | null | null | null | Python/Turtle/India_Flag.py | Aditya8821/Python | 58c7ea8daf381256d8a45736832fb70f735757f7 | [
"MIT"
] | null | null | null | import turtle
# Getting a Screen
ws = turtle.Screen()
# Defing a turtle Instance
flagTurtle = turtle.Turtle()
# initially penup()
flagTurtle.penup()
# Initially setting position
flagTurtle.goto(-180, 60)
# For First Rectangle and filling
# Orange color to Rectangle
flagTurtle... | 20.103896 | 36 | 0.69509 | 183 | 1,548 | 5.846995 | 0.300546 | 0.201869 | 0.213084 | 0.218692 | 0.594393 | 0.554206 | 0.554206 | 0.438318 | 0.419626 | 0.419626 | 0 | 0.054251 | 0.202196 | 1,548 | 76 | 37 | 20.368421 | 0.812146 | 0.216408 | 0 | 0.777778 | 0 | 0 | 0.013381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022222 | 0 | 0.022222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2f72921fa69da4613c1a4af16229ae181a6330bd | 2,625 | py | Python | hicdata/migrations/0029_auto_20200306_1126.py | hisham2k9/IMS-and-CAPA | 9f70988a6411c72ab4f0cbc818b84db58a28076f | [
"MIT"
] | null | null | null | hicdata/migrations/0029_auto_20200306_1126.py | hisham2k9/IMS-and-CAPA | 9f70988a6411c72ab4f0cbc818b84db58a28076f | [
"MIT"
] | 15 | 2021-03-19T03:43:56.000Z | 2022-03-12T00:30:55.000Z | hicdata/migrations/0029_auto_20200306_1126.py | hisham2k9/IMS-and-CAPA | 9f70988a6411c72ab4f0cbc818b84db58a28076f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-03-06 05:56
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hicdata', '0028_auto_20200306_1020'),
]
operations = [
migrations.AddField(
model_name='antibiotic',
... | 32.8125 | 74 | 0.572571 | 251 | 2,625 | 5.844622 | 0.25498 | 0.143149 | 0.171779 | 0.239264 | 0.773688 | 0.773688 | 0.74574 | 0.62713 | 0.593729 | 0.557601 | 0 | 0.02933 | 0.311619 | 2,625 | 79 | 75 | 33.227848 | 0.782512 | 0.017143 | 0 | 0.671233 | 1 | 0 | 0.135764 | 0.034523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027397 | 0 | 0.068493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2f7f03eb01216a62b94ef0fb142d4c90355f4bbe | 114 | py | Python | cythondemo/math/math.py | HansBug/cython-demo | 7efee8bd95e8021378b8c98e1f3381d04a976fda | [
"Apache-2.0"
] | null | null | null | cythondemo/math/math.py | HansBug/cython-demo | 7efee8bd95e8021378b8c98e1f3381d04a976fda | [
"Apache-2.0"
] | null | null | null | cythondemo/math/math.py | HansBug/cython-demo | 7efee8bd95e8021378b8c98e1f3381d04a976fda | [
"Apache-2.0"
] | null | null | null | import math
def heron(a, b, c):
p = (a + b + c) / 2.0
return math.sqrt(p * (p - a) * (p - b) * (p - c))
| 16.285714 | 53 | 0.421053 | 23 | 114 | 2.086957 | 0.521739 | 0.083333 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.342105 | 114 | 6 | 54 | 19 | 0.613333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 4 |
2f863cc976edb9b978586522d7a73ddc253b3284 | 174 | py | Python | Docker/python/packages/utils/load_pkl_gz.py | n-jun-k2/GPU-train | ee6b93147727b5c6ed1c8a207d86f94b73105f71 | [
"RSA-MD"
] | null | null | null | Docker/python/packages/utils/load_pkl_gz.py | n-jun-k2/GPU-train | ee6b93147727b5c6ed1c8a207d86f94b73105f71 | [
"RSA-MD"
] | 5 | 2020-10-20T09:37:18.000Z | 2021-06-20T08:47:47.000Z | Docker/python/packages/utils/load_pkl_gz.py | n-jun-k2/GPU-train | ee6b93147727b5c6ed1c8a207d86f94b73105f71 | [
"RSA-MD"
] | null | null | null | import pickle, gzip
def load_pkl_gz(input_path: str, encoding: str = 'latin1'):
with gzip.open(input_path, 'rb') as f:
return pickle.load(f, encoding=encoding)
| 24.857143 | 59 | 0.689655 | 27 | 174 | 4.296296 | 0.666667 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.183908 | 174 | 6 | 60 | 29 | 0.809859 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 4 |
2f8a99e99e8d63c7ae7f01602918f91960fe89fa | 73 | py | Python | radiusauth/backends/__init__.py | ansible/django-radius | 218428c20e885a300774dfaccc67ef10b2e976aa | [
"BSD-3-Clause"
] | 30 | 2016-09-22T11:58:24.000Z | 2022-02-26T06:08:24.000Z | radiusauth/backends/__init__.py | ansible/django-radius | 218428c20e885a300774dfaccc67ef10b2e976aa | [
"BSD-3-Clause"
] | 17 | 2017-11-15T10:06:02.000Z | 2019-02-13T15:32:41.000Z | radiusauth/backends/__init__.py | ansible/django-radius | 218428c20e885a300774dfaccc67ef10b2e976aa | [
"BSD-3-Clause"
] | 13 | 2017-10-29T13:40:42.000Z | 2022-03-08T14:24:26.000Z | from radiusauth.backends.radius import RADIUSBackend, RADIUSRealmBackend
| 36.5 | 72 | 0.890411 | 7 | 73 | 9.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 73 | 1 | 73 | 73 | 0.955882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
85d8b9ff380db7cf0d5b35941cc0837cc9aeac5b | 6,511 | py | Python | notebook/pandas_crosstab.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/pandas_crosstab.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/pandas_crosstab.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import pandas as pd
df = pd.read_csv('data/src/titanic_train.csv', index_col=0).drop(['Name', 'Ticket', 'SibSp', 'Parch'], axis=1)
print(df.head())
# Survived Pclass Sex Age Fare Cabin Embarked
# PassengerId
# 1 0 ... | 49.325758 | 110 | 0.405621 | 818 | 6,511 | 3.223716 | 0.237164 | 0.015927 | 0.022753 | 0.079636 | 0.644293 | 0.638225 | 0.607509 | 0.573758 | 0.557072 | 0.546454 | 0 | 0.344551 | 0.502534 | 6,511 | 131 | 111 | 49.70229 | 0.469589 | 0.788205 | 0 | 0.111111 | 0 | 0 | 0.21169 | 0.020537 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.722222 | 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 | 1 | 0 | 4 |
85dc31433edb8119d0793681fec8eddd42a27d4f | 130 | py | Python | apps/dataset.py | xinetzone/crack-book | 74bdee1bdbe6bb9a7920cf1687a4e551c303419d | [
"Apache-2.0"
] | null | null | null | apps/dataset.py | xinetzone/crack-book | 74bdee1bdbe6bb9a7920cf1687a4e551c303419d | [
"Apache-2.0"
] | null | null | null | apps/dataset.py | xinetzone/crack-book | 74bdee1bdbe6bb9a7920cf1687a4e551c303419d | [
"Apache-2.0"
] | null | null | null | def kaggle_root():
import kaggle
config_values = kaggle.api.config_values
root = config_values['path']
return root | 26 | 44 | 0.707692 | 17 | 130 | 5.176471 | 0.529412 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207692 | 130 | 5 | 45 | 26 | 0.854369 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 4 |
85e1fd4bc44dca54818e59042d3e8d6817d7f5bb | 823 | py | Python | src/site/app.py | samdixon/sjd.im | 315eaa6174972b3d50ccb1a47b7f7f440fe92495 | [
"MIT"
] | null | null | null | src/site/app.py | samdixon/sjd.im | 315eaa6174972b3d50ccb1a47b7f7f440fe92495 | [
"MIT"
] | 2 | 2021-05-05T02:38:38.000Z | 2021-09-23T23:34:55.000Z | src/site/app.py | samdixon/sjd.im | 315eaa6174972b3d50ccb1a47b7f7f440fe92495 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, redirect, url_for
from easy_publish import generate_posts
import mistune
posts = generate_posts("~/fakenotes")
app = Flask(__name__, static_url_path="/static")
@app.route('/')
def index():
return render_template("blog.html", metadata=posts.metadata)
@app.route('/about')... | 22.861111 | 64 | 0.702309 | 106 | 823 | 5.292453 | 0.311321 | 0.174688 | 0.213904 | 0.085562 | 0.203209 | 0.203209 | 0.203209 | 0.203209 | 0.203209 | 0.203209 | 0 | 0 | 0.140948 | 823 | 35 | 65 | 23.514286 | 0.793494 | 0 | 0 | 0.074074 | 1 | 0 | 0.143378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.185185 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
c800b1870344be5aa7a3af857eb65607577dd449 | 864 | py | Python | src/shape_constraint_detectors/PropertyPairLessThanDetectorSHACLLessThan.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | 1 | 2018-12-11T13:57:38.000Z | 2018-12-11T13:57:38.000Z | src/shape_constraint_detectors/PropertyPairLessThanDetectorSHACLLessThan.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | null | null | null | src/shape_constraint_detectors/PropertyPairLessThanDetectorSHACLLessThan.py | IDLabResearch/lovstats | dd33183574eed692ee89059ff3c6494160dfb8a9 | [
"MIT"
] | null | null | null |
from PropertyPairLessThanDetector import PropertyPairLessThanDetector
class PropertyPairLessThanDetectorSHACLLessThan(PropertyPairLessThanDetector):
"""
This class implements the detection of the less-than property pair constraint sh:lessThan.
For further information have a look at the parent class.
"... | 32 | 94 | 0.726852 | 84 | 864 | 7.345238 | 0.630952 | 0.048622 | 0.191248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.194444 | 864 | 26 | 95 | 33.230769 | 0.880747 | 0.170139 | 0 | 0 | 0 | 0 | 0.195965 | 0.145533 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c8350b18bd36ef1d3b8a96e9d426fe5b53c4c9bd | 6,418 | py | Python | Core/Navigation.py | sols11/PyGameServer | 32e15afb98b6b9e44ca0bd4fb8f4cf91668064bb | [
"MIT"
] | 4 | 2020-05-19T04:16:06.000Z | 2021-07-13T08:28:20.000Z | Core/Navigation.py | sols11/PyGameServer | 32e15afb98b6b9e44ca0bd4fb8f4cf91668064bb | [
"MIT"
] | null | null | null | Core/Navigation.py | sols11/PyGameServer | 32e15afb98b6b9e44ca0bd4fb8f4cf91668064bb | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""----------------------------------------------------------------------------
Author:
caodahan97@126.com
Date:
2019/05/29
Description:
A* path finding算法, 用heap实现版本
quick guide:
start = Node(None, 20, 20)
end = Node(None, 50, 30)
print findPath(start, end) # return path l... | 6,418 | 6,418 | 0.648333 | 877 | 6,418 | 4.720639 | 0.279361 | 0.019324 | 0.015217 | 0.016908 | 0.171256 | 0.103865 | 0.072464 | 0.051208 | 0.051208 | 0.038647 | 0 | 0.020237 | 0.183858 | 6,418 | 1 | 6,418 | 6,418 | 0.770141 | 1.145996 | 0 | 0.260274 | 0 | 0 | 0.037877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089041 | false | 0 | 0.013699 | 0 | 0.232877 | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c83c577080e27f10d7b53a88ad923bfd74ee1947 | 174 | py | Python | quotes/admin.py | nemesio65/Discord-Bot-Django | 9a3e2abd27f542210f4abf2aa42cdce700ae2d2c | [
"MIT"
] | null | null | null | quotes/admin.py | nemesio65/Discord-Bot-Django | 9a3e2abd27f542210f4abf2aa42cdce700ae2d2c | [
"MIT"
] | null | null | null | quotes/admin.py | nemesio65/Discord-Bot-Django | 9a3e2abd27f542210f4abf2aa42cdce700ae2d2c | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Quote
@admin.register(Quote)
class QuoteAdmin(admin.ModelAdmin):
list_display = ['series', 'character', 'quote']
| 17.4 | 51 | 0.741379 | 21 | 174 | 6.095238 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 174 | 9 | 52 | 19.333333 | 0.853333 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 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 | 1 | 0 | 0 | 4 |
c85fca02d156de3902e6bba984fa9487738301b9 | 24 | py | Python | main.py | flamurrogova/gh | 9fa56aaf2e34d82b252123cc578812a329ab4419 | [
"MIT"
] | null | null | null | main.py | flamurrogova/gh | 9fa56aaf2e34d82b252123cc578812a329ab4419 | [
"MIT"
] | null | null | null | main.py | flamurrogova/gh | 9fa56aaf2e34d82b252123cc578812a329ab4419 | [
"MIT"
] | null | null | null | import this
this = None
| 8 | 11 | 0.75 | 4 | 24 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 24 | 2 | 12 | 12 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
c8655bbcf7929f0b003b5e78b9b021229e79ad1c | 78 | py | Python | Rv_Flask/__init__.py | standroidbeta/data-science | 8f18133e676ac2ea334fadea8894ec4453f286cc | [
"MIT"
] | null | null | null | Rv_Flask/__init__.py | standroidbeta/data-science | 8f18133e676ac2ea334fadea8894ec4453f286cc | [
"MIT"
] | 1 | 2021-06-02T00:23:07.000Z | 2021-06-02T00:23:07.000Z | Rv_Flask/__init__.py | standroidbeta/data-science | 8f18133e676ac2ea334fadea8894ec4453f286cc | [
"MIT"
] | 2 | 2019-08-21T00:11:51.000Z | 2019-09-17T20:27:37.000Z | # __init__.py
from .coords import Coords
from .geometry_test import Geometry | 19.5 | 36 | 0.807692 | 11 | 78 | 5.272727 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 78 | 4 | 36 | 19.5 | 0.865672 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c077cb7c97477010d33717675922b083da719366 | 209 | py | Python | scripts/item/consume_2436721.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/item/consume_2436721.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/item/consume_2436721.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Created by MechAviv
# Sheep Damage Skin | (2436721)
if sm.addDamageSkin(2436721):
sm.chat("'Sheep Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem() | 41.8 | 104 | 0.732057 | 30 | 209 | 5.1 | 0.666667 | 0.261438 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08046 | 0.167464 | 209 | 5 | 105 | 41.8 | 0.798851 | 0.23445 | 0 | 0 | 0 | 0 | 0.563291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c09b1c77f27d697f311676e73a56290c21dcff0c | 115 | py | Python | recipes/Python/299410_Root_access_required_run/recipe-299410.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/299410_Root_access_required_run/recipe-299410.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/299410_Root_access_required_run/recipe-299410.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | import os, sys
# if not root...kick out
if not os.geteuid()==0:
sys.exit("\nOnly root can run this script\n")
| 19.166667 | 49 | 0.652174 | 22 | 115 | 3.409091 | 0.772727 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.191304 | 115 | 5 | 50 | 23 | 0.795699 | 0.191304 | 0 | 0 | 0 | 0 | 0.362637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c0b751f459f9473c171b99c7883b2fff95f95525 | 536 | py | Python | account_payment_group/models/payment_transaction.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | 1 | 2021-01-25T15:57:58.000Z | 2021-01-25T15:57:58.000Z | account_payment_group/models/payment_transaction.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | null | null | null | account_payment_group/models/payment_transaction.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | 2 | 2020-10-17T16:36:02.000Z | 2021-01-24T10:20:05.000Z | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models
class PaymentTransaction(models.Model):
_i... | 35.733333 | 78 | 0.544776 | 44 | 536 | 6.272727 | 0.795455 | 0.101449 | 0.181159 | 0.210145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117537 | 536 | 14 | 79 | 38.285714 | 0.58351 | 0.156716 | 0 | 0 | 0 | 0 | 0.064846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c0be5c2fbea8122f04aa9135703963f81b11ab8e | 95 | py | Python | 01. Tutorials/02. 10 Days of Statistics/09. s10-mcq-4.py | juletx/HackerRank | da42e3442e5098abac0b4bdfdcee58824666a2a2 | [
"MIT"
] | 1 | 2022-01-29T11:30:08.000Z | 2022-01-29T11:30:08.000Z | 01. Tutorials/02. 10 Days of Statistics/09. s10-mcq-4.py | juletx/HackerRank | da42e3442e5098abac0b4bdfdcee58824666a2a2 | [
"MIT"
] | null | null | null | 01. Tutorials/02. 10 Days of Statistics/09. s10-mcq-4.py | juletx/HackerRank | da42e3442e5098abac0b4bdfdcee58824666a2a2 | [
"MIT"
] | null | null | null | from fractions import Fraction
prob = (1/4) / (3/4)
print(Fraction(prob).limit_denominator()) | 19 | 41 | 0.726316 | 14 | 95 | 4.857143 | 0.785714 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.115789 | 95 | 5 | 41 | 19 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
c0d9762e0ea22bc07c77bdd7725df2cb4c1d2b4d | 348 | py | Python | app/forms.py | HU-WErrand/werrand | 4ce4ace4cac311f17ad8155960529e262a43c9c7 | [
"BSD-3-Clause"
] | null | null | null | app/forms.py | HU-WErrand/werrand | 4ce4ace4cac311f17ad8155960529e262a43c9c7 | [
"BSD-3-Clause"
] | null | null | null | app/forms.py | HU-WErrand/werrand | 4ce4ace4cac311f17ad8155960529e262a43c9c7 | [
"BSD-3-Clause"
] | null | null | null | from flask_wtf import Form
from wtforms import StringField, BooleanField, PasswordField
from wtforms.validators import DataRequired
class LoginForm(Form):
openid = StringField('openid',validators=[DataRequired()])
password = PasswordField('Password',validators=[DataRequired()])
remember_me = BooleanField('... | 38.666667 | 68 | 0.79023 | 36 | 348 | 7.555556 | 0.527778 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109195 | 348 | 8 | 69 | 43.5 | 0.877419 | 0 | 0 | 0 | 0 | 0 | 0.071839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
c0eb5fe6675c8f34d67b99c63d577aeffef55854 | 7,777 | bzl | Python | swc/private/versions.bzl | aspect-build/rules_swc | 7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6 | [
"Apache-2.0"
] | 14 | 2021-12-04T11:15:40.000Z | 2022-03-01T23:05:38.000Z | swc/private/versions.bzl | aspect-build/rules_swc | 7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6 | [
"Apache-2.0"
] | 6 | 2021-12-13T06:32:16.000Z | 2022-02-28T14:44:38.000Z | swc/private/versions.bzl | aspect-build/rules_swc | 7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6 | [
"Apache-2.0"
] | 2 | 2021-12-14T09:35:12.000Z | 2021-12-24T16:31:14.000Z | "Mirror of release info"
TOOL_VERSIONS = {
"v1.2.185": {
"android-arm-eabi": "sha384-a9NRmV90j+tXV7xT3+LK+UBcUgKMVRp9k4yz29hKi7VRqwIQxuL3aKAcyP1mXCly",
"android-arm64": "sha384-rdQq6yIfkTZtuhYiIz2eo0/Y1MuPDAGqf4See2ZPYRnzF6owWSAkU1MzUnKlwvas",
"darwin-arm64": "sha384-hMId2tsrNKrkOUH5MLGmNfR... | 84.532609 | 105 | 0.782821 | 526 | 7,777 | 11.572243 | 0.479087 | 0.029571 | 0.017743 | 0.022671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174338 | 0.106082 | 7,777 | 91 | 106 | 85.461538 | 0.701237 | 0.002829 | 0 | 0 | 0 | 0 | 0.829497 | 0.684711 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c0fcf82fd2e0e6ac103a85244530899b11167fb8 | 1,190 | py | Python | panels/quickmocap_panel_ImportNMocap.py | vltmedia/QuickMocap-BlenderAddon | ef152a87a8738d505555db2d3ec8ff851847983b | [
"Apache-2.0"
] | 17 | 2021-07-25T12:46:25.000Z | 2022-03-23T05:16:36.000Z | panels/quickmocap_panel_ImportNMocap.py | vltmedia/QuickMocap-BlenderAddon | ef152a87a8738d505555db2d3ec8ff851847983b | [
"Apache-2.0"
] | 4 | 2021-08-04T09:14:15.000Z | 2022-03-08T11:50:13.000Z | panels/quickmocap_panel_ImportNMocap.py | vltmedia/QuickMocap-BlenderAddon | ef152a87a8738d505555db2d3ec8ff851847983b | [
"Apache-2.0"
] | 3 | 2021-12-09T21:58:57.000Z | 2022-03-31T06:21:23.000Z |
import bpy
from panels.quickmocap_panel import QuickMocapTemplatePanel
class QMOCAP_PT_ImportNMocap(QuickMocapTemplatePanel, bpy.types.Panel):
bl_idname = 'OBJECT_PT_ImportNPanel_panel'
bl_parent_id = "OBJECT_PT_quickmocap_panel"
bl_label = "Import Numpy Mocap"
def draw(self, context):
... | 41.034483 | 72 | 0.689076 | 128 | 1,190 | 6.125 | 0.414063 | 0.196429 | 0.229592 | 0.27551 | 0.216837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1,190 | 29 | 73 | 41.034483 | 0.838503 | 0.094958 | 0 | 0 | 0 | 0 | 0.225621 | 0.113767 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.363636 | 0 | 0.590909 | 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 | 1 | 0 | 0 | 4 |
23ea430e52042f6a5aa3209303f9a7dbed64437d | 62 | py | Python | app.py | munisisazade/create-japronto-app | b2b9face8560a71c3cd0732a268d3cfa7fc6b290 | [
"MIT"
] | 1 | 2019-11-21T01:39:36.000Z | 2019-11-21T01:39:36.000Z | app.py | munisisazade/create-japronto-app | b2b9face8560a71c3cd0732a268d3cfa7fc6b290 | [
"MIT"
] | 1 | 2021-04-30T20:34:55.000Z | 2021-04-30T20:34:55.000Z | app.py | munisisazade/create-japronto-app | b2b9face8560a71c3cd0732a268d3cfa7fc6b290 | [
"MIT"
] | null | null | null | from conf.settings import *
munis.run(debug=DEBUG, port=PORT) | 20.666667 | 33 | 0.774194 | 10 | 62 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 62 | 3 | 33 | 20.666667 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9b14831592dde54a8e46ea0f3750ed8b12f4d2e7 | 336 | py | Python | services/storage/src/storage/interactions.py | jads-master-team-1/de-1 | 30cbe0175c3f9ee9a3041bce32d9f5e4af8a7ede | [
"MIT"
] | null | null | null | services/storage/src/storage/interactions.py | jads-master-team-1/de-1 | 30cbe0175c3f9ee9a3041bce32d9f5e4af8a7ede | [
"MIT"
] | 10 | 2021-11-14T09:21:32.000Z | 2022-01-02T17:40:18.000Z | services/storage/src/storage/interactions.py | jads-master-team-1/de-1 | 30cbe0175c3f9ee9a3041bce32d9f5e4af8a7ede | [
"MIT"
] | null | null | null | class StorageInteractions:
def __init__(self, **repositories):
self._storage_repository = repositories["storage_repository"]
def load(self, name):
return self._storage_repository.load_file(name)
def store(self, file):
name = self._storage_repository.store_file(file)
return... | 28 | 69 | 0.690476 | 37 | 336 | 5.918919 | 0.351351 | 0.310502 | 0.287671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205357 | 336 | 11 | 70 | 30.545455 | 0.820225 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 0.75 | 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 | 1 | 0 | 0 | 0 | 4 |
9b24959a4d0831eebcad9f3cf69950203a9ef5b6 | 1,705 | py | Python | hackaton/game/admin.py | EugeneSal/HackatonDjango | a2d643785d0780f1fe52be5067289f3a814d4776 | [
"BSD-2-Clause"
] | null | null | null | hackaton/game/admin.py | EugeneSal/HackatonDjango | a2d643785d0780f1fe52be5067289f3a814d4776 | [
"BSD-2-Clause"
] | null | null | null | hackaton/game/admin.py | EugeneSal/HackatonDjango | a2d643785d0780f1fe52be5067289f3a814d4776 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from .models import *
class PaladinAdmin(admin.ModelAdmin):
list_display = ('name_class', 'name', 'nick_name',
'hero_strength', 'hero_stamina', 'hero_armor',
'default_strength', 'default_stamina', 'default_armor')
search_fields = ('nam... | 34.1 | 75 | 0.644575 | 182 | 1,705 | 5.686813 | 0.203297 | 0.069565 | 0.081159 | 0.100483 | 0.737198 | 0.737198 | 0.737198 | 0.699517 | 0.66087 | 0.66087 | 0 | 0 | 0.207625 | 1,705 | 49 | 76 | 34.795918 | 0.766099 | 0.102639 | 0 | 0.606061 | 0 | 0 | 0.296393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f194533cff6dfa3a45dc6a92b7f66984df2ed46c | 140 | py | Python | research/importEnModel.py | HewJhong/1st_Day_Hack | 0d6582f53b8027cd02e15f56f7e1ee649e524d74 | [
"Apache-2.0"
] | 1 | 2020-12-13T05:04:22.000Z | 2020-12-13T05:04:22.000Z | research/importEnModel.py | HewJhong/1st_Day_Hack | 0d6582f53b8027cd02e15f56f7e1ee649e524d74 | [
"Apache-2.0"
] | null | null | null | research/importEnModel.py | HewJhong/1st_Day_Hack | 0d6582f53b8027cd02e15f56f7e1ee649e524d74 | [
"Apache-2.0"
] | null | null | null | import easyocr
def activateModel():
reader = easyocr.Reader(['en'],gpu=False) # need to run only once to load model into memory
#%%
| 17.5 | 95 | 0.685714 | 20 | 140 | 4.8 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192857 | 140 | 7 | 96 | 20 | 0.849558 | 0.35 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
f1b0c79d838c49e79bafa8d169306cd897c97bab | 95 | py | Python | module_template/exception.py | rstms/repeat | af9f1aa01cc0d5d5fd8e6ff688e7c84267b8600f | [
"MIT"
] | null | null | null | module_template/exception.py | rstms/repeat | af9f1aa01cc0d5d5fd8e6ff688e7c84267b8600f | [
"MIT"
] | null | null | null | module_template/exception.py | rstms/repeat | af9f1aa01cc0d5d5fd8e6ff688e7c84267b8600f | [
"MIT"
] | null | null | null | # exception classes
class Error(Exception):
pass
class ParameterError(Error):
pass
| 9.5 | 28 | 0.705263 | 10 | 95 | 6.7 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221053 | 95 | 9 | 29 | 10.555556 | 0.905405 | 0.178947 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f1b0e164f5e24a3f97510d391082a34daf446b75 | 55 | py | Python | network/demo_socket_mqtt.py | sipeed/MaixPy_Scripts | 4bcc8cd02d637d59016300e0ef3836f420692332 | [
"MIT"
] | null | null | null | network/demo_socket_mqtt.py | sipeed/MaixPy_Scripts | 4bcc8cd02d637d59016300e0ef3836f420692332 | [
"MIT"
] | null | null | null | network/demo_socket_mqtt.py | sipeed/MaixPy_Scripts | 4bcc8cd02d637d59016300e0ef3836f420692332 | [
"MIT"
] | null | null | null |
# Refer to https://github.com/daq-tools/umqtt-example
| 18.333333 | 53 | 0.745455 | 9 | 55 | 4.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 55 | 2 | 54 | 27.5 | 0.82 | 0.927273 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f1fa57fa445baec79ce8a454147c43f8c3af12d9 | 91 | py | Python | tests/test_1.py | aioworkers/pytest-aioworkers | 24ab842fab006826e186b2ecc9ec46182c9c4c8c | [
"Apache-2.0"
] | 1 | 2019-03-21T05:24:27.000Z | 2019-03-21T05:24:27.000Z | tests/test_1.py | aioworkers/pytest-aioworkers | 24ab842fab006826e186b2ecc9ec46182c9c4c8c | [
"Apache-2.0"
] | 3 | 2020-12-21T07:52:06.000Z | 2021-11-29T22:04:23.000Z | tests/test_1.py | aioworkers/pytest-aioworkers | 24ab842fab006826e186b2ecc9ec46182c9c4c8c | [
"Apache-2.0"
] | null | null | null |
async def test_make_coro(make_coro):
coro = make_coro(1)
assert 1 == await coro()
| 18.2 | 36 | 0.67033 | 15 | 91 | 3.8 | 0.533333 | 0.421053 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.21978 | 91 | 4 | 37 | 22.75 | 0.774648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
7b176805b319b6cadaa627db412151332b0b65cb | 880 | py | Python | indicators.py | Joaquin6/StockAPI | 1c65e52822dd156e888260c2954cb713896dbc5d | [
"MIT"
] | null | null | null | indicators.py | Joaquin6/StockAPI | 1c65e52822dd156e888260c2954cb713896dbc5d | [
"MIT"
] | 5 | 2021-05-20T21:23:20.000Z | 2022-03-16T04:48:50.000Z | indicators.py | Joaquin6/StockAPI | 1c65e52822dd156e888260c2954cb713896dbc5d | [
"MIT"
] | null | null | null | import config
import numpy as np
import pandas as pd
import alpaca_trade_api as alpaca
from config import *
class indicators():
def __init__(self):
#ind determines which indicactor it is
"""
ind determines which indicator to use
0 is Simple Moving Average
1 is Rsi indicator
... | 27.5 | 84 | 0.620455 | 121 | 880 | 4.413223 | 0.553719 | 0.073034 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.304545 | 880 | 32 | 85 | 27.5 | 0.867647 | 0.363636 | 0 | 0.133333 | 0 | 0 | 0.019068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.333333 | 0.133333 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
9e2bba9ee5e270cf3fbc2b85cb71f11172ebcf46 | 232 | py | Python | api/tests/helpers.py | Einenlum/django-event-feed | cc8e9b98bc9318f7ef5d208db42900fc96f057c7 | [
"MIT"
] | null | null | null | api/tests/helpers.py | Einenlum/django-event-feed | cc8e9b98bc9318f7ef5d208db42900fc96f057c7 | [
"MIT"
] | null | null | null | api/tests/helpers.py | Einenlum/django-event-feed | cc8e9b98bc9318f7ef5d208db42900fc96f057c7 | [
"MIT"
] | null | null | null | def authenticate_as(client, username, password):
token = client.post(
"/auth/authenticate/", {"username": username, "password": password}
).data["token"]
client.credentials(HTTP_AUTHORIZATION=f"Bearer {token}")
| 33.142857 | 75 | 0.685345 | 24 | 232 | 6.541667 | 0.625 | 0.203822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 232 | 6 | 76 | 38.666667 | 0.80102 | 0 | 0 | 0 | 0 | 0 | 0.232759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.4 | 0 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
9e6b4876a762b1eaa49a82a755e0c65506dc9bbd | 52 | py | Python | virus.py | https-github-com-talisma201/instavaysanse | 80c7dacfd7122352ad1cf23050c71cf2dccf000d | [
"BSL-1.0"
] | null | null | null | virus.py | https-github-com-talisma201/instavaysanse | 80c7dacfd7122352ad1cf23050c71cf2dccf000d | [
"BSL-1.0"
] | null | null | null | virus.py | https-github-com-talisma201/instavaysanse | 80c7dacfd7122352ad1cf23050c71cf2dccf000d | [
"BSL-1.0"
] | null | null | null | from sys import os
while:
os=filename("filename")
| 13 | 25 | 0.730769 | 8 | 52 | 4.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 3 | 26 | 17.333333 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
9e768265f4000162de6116b9a24634e435f6180b | 31 | py | Python | TCCDjango/TCCDjango/__init__.py | hkirschke/App-Web-TCC | 7cb8eecff6f5afe4c996c8a424358de099faefd0 | [
"MIT"
] | null | null | null | TCCDjango/TCCDjango/__init__.py | hkirschke/App-Web-TCC | 7cb8eecff6f5afe4c996c8a424358de099faefd0 | [
"MIT"
] | null | null | null | TCCDjango/TCCDjango/__init__.py | hkirschke/App-Web-TCC | 7cb8eecff6f5afe4c996c8a424358de099faefd0 | [
"MIT"
] | null | null | null | """
Package for TCCDjango.
"""
| 7.75 | 22 | 0.612903 | 3 | 31 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 31 | 3 | 23 | 10.333333 | 0.730769 | 0.709677 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9e84b3d997ea454c149b0450f9cb757b802e0932 | 473 | py | Python | app/http/controllers/Home.py | Balogunolalere/masonite-crud | e95f5053db486467361126e00ab56f4da3fdb819 | [
"MIT"
] | 1 | 2021-06-06T14:50:22.000Z | 2021-06-06T14:50:22.000Z | app/http/controllers/Home.py | Balogunolalere/masonite-crud | e95f5053db486467361126e00ab56f4da3fdb819 | [
"MIT"
] | null | null | null | app/http/controllers/Home.py | Balogunolalere/masonite-crud | e95f5053db486467361126e00ab56f4da3fdb819 | [
"MIT"
] | null | null | null | """A Home Module."""
from masonite.request import Request
from masonite.view import View
from masonite.controllers import Controller
class Home(Controller):
"""Home Controller Class."""
def __init__(self, request: Request):
"""Home Initializer
Arguments:
request {masonite.reques... | 22.52381 | 77 | 0.651163 | 52 | 473 | 5.846154 | 0.384615 | 0.118421 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241015 | 473 | 20 | 78 | 23.65 | 0.846797 | 0.287526 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.125 | 0.875 | 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 | 1 | 1 | 0 | 0 | 4 |
9e92ab29fdff57bfca89d883c35383566da2ce37 | 460 | py | Python | shoptools/checkout/signals.py | gregplaysguitar/django-shoptools | 7af9b69409d146b3627931430714b934122a2498 | [
"BSD-3-Clause"
] | 3 | 2015-09-11T01:24:25.000Z | 2018-08-19T16:47:09.000Z | shoptools/checkout/signals.py | gregplaysguitar/django-shoptools | 7af9b69409d146b3627931430714b934122a2498 | [
"BSD-3-Clause"
] | 29 | 2015-10-06T22:15:50.000Z | 2017-12-14T20:50:52.000Z | shoptools/checkout/signals.py | gregplaysguitar/django-shoptools | 7af9b69409d146b3627931430714b934122a2498 | [
"BSD-3-Clause"
] | 5 | 2015-10-05T23:33:51.000Z | 2019-01-14T19:49:40.000Z | from django.dispatch import Signal
checkout_pre_payment = Signal(providing_args=['request'])
checkout_post_payment_pre_success = Signal(
providing_args=['transaction', 'kwargs']
)
checkout_post_payment_post_success = Signal(
providing_args=['transaction', 'kwargs']
)
checkout_post_payment_pre_failure = Signal(... | 28.75 | 57 | 0.780435 | 52 | 460 | 6.461538 | 0.307692 | 0.223214 | 0.282738 | 0.357143 | 0.705357 | 0.705357 | 0.556548 | 0.556548 | 0.556548 | 0 | 0 | 0 | 0.104348 | 460 | 15 | 58 | 30.666667 | 0.815534 | 0 | 0 | 0.285714 | 0 | 0 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9e99590e3eea892e19070652e682394d482f410a | 529 | py | Python | django_health_check_version/backends.py | saschwarz/django-health-check-version | fc4de7b6572786889bed4a53bc0c4ce478152038 | [
"MIT"
] | null | null | null | django_health_check_version/backends.py | saschwarz/django-health-check-version | fc4de7b6572786889bed4a53bc0c4ce478152038 | [
"MIT"
] | null | null | null | django_health_check_version/backends.py | saschwarz/django-health-check-version | fc4de7b6572786889bed4a53bc0c4ce478152038 | [
"MIT"
] | null | null | null | from django.conf import settings
from health_check.backends import BaseHealthCheckBackend
class VersionBackend(BaseHealthCheckBackend):
#: The status endpoints will respond with a 200 status code
#: even if the check errors.
critical_service = False
def check_status(self):
pass
def ident... | 27.842105 | 71 | 0.725898 | 65 | 529 | 5.723077 | 0.630769 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.223062 | 529 | 18 | 72 | 29.388889 | 0.89781 | 0.31569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.1 | 0.2 | 0.2 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
9e997384abfe1efd2318ad0e80d77575aef46782 | 94 | py | Python | tests/__main__.py | nybrandnewschool/review4d | b97422eab2db0a3f0a979b42c1d6cafe1282f436 | [
"MIT"
] | null | null | null | tests/__main__.py | nybrandnewschool/review4d | b97422eab2db0a3f0a979b42c1d6cafe1282f436 | [
"MIT"
] | null | null | null | tests/__main__.py | nybrandnewschool/review4d | b97422eab2db0a3f0a979b42c1d6cafe1282f436 | [
"MIT"
] | 1 | 2021-11-01T20:42:20.000Z | 2021-11-01T20:42:20.000Z | import os
if __name__ == '__main__':
os.system('c4dpy -m unittest discover -v -s tests')
| 18.8 | 55 | 0.670213 | 14 | 94 | 3.928571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.191489 | 94 | 4 | 56 | 23.5 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0.489362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9ea9e7f8bfb917c7a27c8adb846803b0a567e021 | 182 | py | Python | remove_empty_files.py | rahulporuri/trains | 54572af1ea39a58c1761929d585d7b67f0949a6c | [
"MIT"
] | null | null | null | remove_empty_files.py | rahulporuri/trains | 54572af1ea39a58c1761929d585d7b67f0949a6c | [
"MIT"
] | null | null | null | remove_empty_files.py | rahulporuri/trains | 54572af1ea39a58c1761929d585d7b67f0949a6c | [
"MIT"
] | null | null | null | import os
list_of_files = os.listdir('del/')
for filename in list_of_files:
if os.stat('del/'+filename).st_size == 0:
print filename
os.remove('del/'+filename)
| 20.222222 | 45 | 0.648352 | 28 | 182 | 4.035714 | 0.607143 | 0.106195 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.208791 | 182 | 8 | 46 | 22.75 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ead01e1fd5156c0f6bf732b9394b696ffb190bd | 228 | py | Python | src/model/product.py | jpchagas/xepa-service | bd4f09f427ede789be5d94fca522b0d50b6f0ef7 | [
"Apache-2.0"
] | null | null | null | src/model/product.py | jpchagas/xepa-service | bd4f09f427ede789be5d94fca522b0d50b6f0ef7 | [
"Apache-2.0"
] | null | null | null | src/model/product.py | jpchagas/xepa-service | bd4f09f427ede789be5d94fca522b0d50b6f0ef7 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, String
from src.model.base import Base
class Product(Base):
__tablename__ = 'product'
id = Column(Integer, primary_key=True)
description = Column(String(50), nullable=False) | 25.333333 | 52 | 0.741228 | 29 | 228 | 5.655172 | 0.689655 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.162281 | 228 | 9 | 52 | 25.333333 | 0.848168 | 0 | 0 | 0 | 0 | 0 | 0.030568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9ebff92279f23707a0a0c876879d8bcff3fda4fe | 56 | py | Python | tests/package1/a.py | AndreaCrotti/breaking-changes | e9c788f76f845ff5c8c6a493d4e0b5736833a04b | [
"MIT"
] | null | null | null | tests/package1/a.py | AndreaCrotti/breaking-changes | e9c788f76f845ff5c8c6a493d4e0b5736833a04b | [
"MIT"
] | null | null | null | tests/package1/a.py | AndreaCrotti/breaking-changes | e9c788f76f845ff5c8c6a493d4e0b5736833a04b | [
"MIT"
] | null | null | null | def func1():
pass
def func2(arg):
print(arg)
| 7 | 15 | 0.553571 | 8 | 56 | 3.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.303571 | 56 | 7 | 16 | 8 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.25 | 0 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
7b368ea4db0cf405800b2d1b97996f0e36fb5477 | 242 | py | Python | serie4/docu/Code/create_objects.py | Koopakiller/Edu-NLA | 8376557cab9f74cedd19ee1573a8c71d7e415dd4 | [
"MIT"
] | null | null | null | serie4/docu/Code/create_objects.py | Koopakiller/Edu-NLA | 8376557cab9f74cedd19ee1573a8c71d7e415dd4 | [
"MIT"
] | null | null | null | serie4/docu/Code/create_objects.py | Koopakiller/Edu-NLA | 8376557cab9f74cedd19ee1573a8c71d7e415dd4 | [
"MIT"
] | null | null | null | # data_list = [(x, y), ...]
b = np.matrix(map(lambda pair:
[pair[1]], data_list))
a = np.matrix(map(lambda pair:
[e**(d * pair[0]),
e**(-d * pair[0]),
1], data_list))
| 26.888889 | 40 | 0.384298 | 31 | 242 | 2.903226 | 0.483871 | 0.266667 | 0.244444 | 0.377778 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.409091 | 242 | 8 | 41 | 30.25 | 0.601399 | 0.103306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7b4fd2bc941a06455ecc370da8d2b0b77682b14c | 187 | py | Python | CallParentConstructor/ParentClass.py | rubenhortas/python_examples | 9d542972cfb7005eb2f324f4c2bffbafa4e8937b | [
"MIT"
] | null | null | null | CallParentConstructor/ParentClass.py | rubenhortas/python_examples | 9d542972cfb7005eb2f324f4c2bffbafa4e8937b | [
"MIT"
] | 1 | 2015-10-02T23:40:39.000Z | 2015-10-02T23:40:39.000Z | CallParentConstructor/ParentClass.py | rubenhortas/python_examples | 9d542972cfb7005eb2f324f4c2bffbafa4e8937b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# _*_ coding:utf-8 _*
# Parent class has to inherit from "object" class
class Parent(object):
def __init__(self):
print("parent constructor called!")
| 20.777778 | 49 | 0.679144 | 25 | 187 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.192513 | 187 | 8 | 50 | 23.375 | 0.781457 | 0.475936 | 0 | 0 | 0 | 0 | 0.273684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7b97f7a287b63ebae0df377655f5155aafd4a569 | 179 | py | Python | plans/quota.py | afahounko/django-plans | 089c90486ead3b8ab69b8b119f33d5ef923ca08e | [
"MIT"
] | 1 | 2019-04-01T05:52:37.000Z | 2019-04-01T05:52:37.000Z | plans/quota.py | afahounko/django-plans | 089c90486ead3b8ab69b8b119f33d5ef923ca08e | [
"MIT"
] | 2 | 2015-06-11T07:44:21.000Z | 2015-06-11T07:47:31.000Z | plans/quota.py | afahounko/django-plans | 089c90486ead3b8ab69b8b119f33d5ef923ca08e | [
"MIT"
] | null | null | null | def get_user_quota(user):
"""
Tiny helper for getting quota dict for user (left mostly for backward compatibility)
"""
return user.userplan.plan.get_quota_dict()
| 25.571429 | 88 | 0.709497 | 25 | 179 | 4.92 | 0.64 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201117 | 179 | 6 | 89 | 29.833333 | 0.86014 | 0.469274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7ba0dff88053355c59c4cfd3d49bf0bd4be35092 | 13,241 | py | Python | share/jnum/scripts/jnum.py | jayeshbadwaik/jnum | dacda162ade863e8ac1b4248147a0d20d3efc0a3 | [
"Apache-2.0",
"MIT"
] | null | null | null | share/jnum/scripts/jnum.py | jayeshbadwaik/jnum | dacda162ade863e8ac1b4248147a0d20d3efc0a3 | [
"Apache-2.0",
"MIT"
] | null | null | null | share/jnum/scripts/jnum.py | jayeshbadwaik/jnum | dacda162ade863e8ac1b4248147a0d20d3efc0a3 | [
"Apache-2.0",
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import json
import operator
import os
import pathlib
from collections import OrderedDict
def write_modification_warning(data, filestring):
filestring = filestring + \
"// Generated by enumeration.py. Do not modify this file manually.\n"
return filestring
def wr... | 35.49866 | 79 | 0.672457 | 1,324 | 13,241 | 6.554381 | 0.111782 | 0.520857 | 0.191173 | 0.199816 | 0.793731 | 0.730814 | 0.627333 | 0.508412 | 0.34213 | 0.235538 | 0 | 0.000477 | 0.208972 | 13,241 | 372 | 80 | 35.594086 | 0.82805 | 0.001586 | 0 | 0.481605 | 0 | 0 | 0.165217 | 0.006279 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113712 | false | 0 | 0.020067 | 0.003344 | 0.247492 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7bc7d5979183b841c00a529c4b5396921a600095 | 1,422 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GL/IBM/static_data.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/IBM/static_data.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/IBM/static_data.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension IBM.static_data
This module customises the behaviour of the
OpenGL.raw.GL.IBM.static_data to provide a more
Python-friendly API
Overview (from the spec)
The OpenGL specification requires that data be bound at call time. The
IBM_static_data extension relaxes the bind-at-call semantics allowin... | 37.421053 | 72 | 0.807314 | 207 | 1,422 | 5.483092 | 0.531401 | 0.047577 | 0.068722 | 0.037004 | 0.081057 | 0.081057 | 0.059912 | 0.059912 | 0 | 0 | 0 | 0 | 0.146273 | 1,422 | 38 | 73 | 37.421053 | 0.934926 | 0.801688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7bcb23e5b9a15eedc4f32a353cfdcd4a3700da80 | 210 | py | Python | backend/apps/files/storages/__init__.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 174 | 2019-02-19T11:35:45.000Z | 2021-12-20T03:20:28.000Z | backend/apps/files/storages/__init__.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 56 | 2019-01-02T06:49:13.000Z | 2021-03-23T09:31:18.000Z | backend/apps/files/storages/__init__.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 36 | 2018-12-28T02:10:06.000Z | 2021-09-02T03:06:35.000Z | from django.conf import settings
if settings.USE_GCS:
from .gcloud import CaseStorage, TempStorage
else:
from .local import CaseStorage, TempStorage
__all__ = (
CaseStorage,
TempStorage,
)
| 14 | 48 | 0.728571 | 23 | 210 | 6.434783 | 0.608696 | 0.445946 | 0.378378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209524 | 210 | 14 | 49 | 15 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c87b5913ae01446c5ee9812d6ea1b472775dc00a | 75 | py | Python | scfmsp/controlflowanalysis/StackPointer.py | sepidehpouyan/SCF-MSP430 | 1d7565bf38d9f42e775031d4ea8515ff99bef778 | [
"MIT"
] | 1 | 2020-07-03T21:26:52.000Z | 2020-07-03T21:26:52.000Z | scfmsp/controlflowanalysis/StackPointer.py | sepidehpouyan/SCF-MSP430 | 1d7565bf38d9f42e775031d4ea8515ff99bef778 | [
"MIT"
] | null | null | null | scfmsp/controlflowanalysis/StackPointer.py | sepidehpouyan/SCF-MSP430 | 1d7565bf38d9f42e775031d4ea8515ff99bef778 | [
"MIT"
] | null | null | null | from enum import Enum
class StackPointer(Enum):
SP = 'sp'
| 10.714286 | 26 | 0.573333 | 9 | 75 | 4.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.346667 | 75 | 6 | 27 | 12.5 | 0.877551 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c8b48b4af57a9c033ef6979efb18d067d9c943d0 | 95 | py | Python | run.py | salarchitetto/Footy | 3d0fb94ef8268a696bf985766dc252ab7d75f35d | [
"MIT"
] | 2 | 2019-01-25T19:52:27.000Z | 2020-04-24T16:39:04.000Z | run.py | salarchitetto/Footy | 3d0fb94ef8268a696bf985766dc252ab7d75f35d | [
"MIT"
] | 6 | 2021-03-18T21:14:27.000Z | 2022-02-10T08:07:44.000Z | run.py | salarchitetto/Footy | 3d0fb94ef8268a696bf985766dc252ab7d75f35d | [
"MIT"
] | 2 | 2019-02-06T13:28:04.000Z | 2020-04-19T15:57:02.000Z | from dashboard.app import app
if __name__ == '__main__':
app.run_server(host='127.0.0.1')
| 19 | 36 | 0.694737 | 16 | 95 | 3.5625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.147368 | 95 | 4 | 37 | 23.75 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c8cb9c1b0ae4464e67e18ef367eaefe7d6791df2 | 898 | py | Python | virtman/drivers/connector.py | vmthunder/virtman | af81ee1eeab96094b716253ad93bda8630bc219d | [
"Apache-2.0"
] | 6 | 2015-02-09T23:39:58.000Z | 2021-05-17T22:18:57.000Z | virtman/drivers/connector.py | vmthunder/virtman | af81ee1eeab96094b716253ad93bda8630bc219d | [
"Apache-2.0"
] | 1 | 2015-05-04T03:41:49.000Z | 2015-05-04T03:41:49.000Z | virtman/drivers/connector.py | vmthunder/virtman | af81ee1eeab96094b716253ad93bda8630bc219d | [
"Apache-2.0"
] | 1 | 2016-08-12T07:00:01.000Z | 2016-08-12T07:00:01.000Z | import os
from brick.initiator.connector import ISCSIConnector
from virtman.utils import singleton
from virtman.utils import rootwrap
from virtman.openstack.common import processutils as putils
class ISCSIExecutor(ISCSIConnector):
def __init__(self):
ISCSIConnector.__init__(self, device_scan_attempts=5... | 29.933333 | 78 | 0.697105 | 97 | 898 | 6.175258 | 0.515464 | 0.066778 | 0.053422 | 0.073456 | 0.260434 | 0.140234 | 0.140234 | 0 | 0 | 0 | 0 | 0.001403 | 0.206013 | 898 | 29 | 79 | 30.965517 | 0.83871 | 0.268374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.214286 | false | 0 | 0.357143 | 0.071429 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c8f9e0e6dce02753c7664a0a682de8a37de1f10e | 7,467 | py | Python | imgurrlol.py | osis88/Lol-Bot | 68d4654bc428e257d16f09c2b46c754ded7fbcda | [
"MIT"
] | null | null | null | imgurrlol.py | osis88/Lol-Bot | 68d4654bc428e257d16f09c2b46c754ded7fbcda | [
"MIT"
] | null | null | null | imgurrlol.py | osis88/Lol-Bot | 68d4654bc428e257d16f09c2b46c754ded7fbcda | [
"MIT"
] | null | null | null | imgurr = {
1: "https://i.imgur.com/ZF6TzS4.jpg",
2: "https://i.imgur.com/eaSvBJR.jpg",
3: "https://i.imgur.com/bDoDm2W.jpg",
4: "https://i.imgur.com/5mCbYFU.jpg",
5: "https://i.imgur.com/zfnmieg.jpg",
6: "https://i.imgur.com/lLCL9qv.jpg",
7: "https://i.imgu... | 47.56051 | 48 | 0.545199 | 1,079 | 7,467 | 3.772938 | 0.29101 | 0.226971 | 0.416114 | 0.5296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092943 | 0.227668 | 7,467 | 156 | 49 | 47.865385 | 0.61297 | 0 | 0 | 0 | 0 | 0 | 0.653078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7404b9337a44c391ebdac2cf13faa1c4051df403 | 382 | py | Python | logic/calender.py | neojames/Maccies-Schedule-Scrapper | b7cdf2b1a4bdbc1cec439d9edbd97e4c59313751 | [
"Apache-2.0"
] | null | null | null | logic/calender.py | neojames/Maccies-Schedule-Scrapper | b7cdf2b1a4bdbc1cec439d9edbd97e4c59313751 | [
"Apache-2.0"
] | null | null | null | logic/calender.py | neojames/Maccies-Schedule-Scrapper | b7cdf2b1a4bdbc1cec439d9edbd97e4c59313751 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Scrap.py
# Main program logic; Scraps scheduling data from peoplestuffuk.com, checks to see if it has been updated, and if it has
# updates a shared calender. Publishes scrapped CSV onto calenders.
# Published under the Apache License 2.0, maintained by James Bolton (james@neojames.me)
# TODO: Tak... | 42.444444 | 120 | 0.772251 | 63 | 382 | 4.68254 | 0.84127 | 0.027119 | 0.047458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00627 | 0.164921 | 382 | 8 | 121 | 47.75 | 0.918495 | 0.963351 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.125 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cdc96e9ec30f596f003ff86f59cd05b5d38bd5a4 | 66 | py | Python | fython/lexem/numberx.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 41 | 2016-01-21T05:14:45.000Z | 2021-11-24T20:37:21.000Z | fython/lexem/numberx.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 5 | 2016-01-21T05:36:37.000Z | 2016-08-22T19:26:51.000Z | fython/lexem/numberx.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 3 | 2016-01-23T04:03:44.000Z | 2016-08-21T15:58:38.000Z | from fython.unit import *
class NumberX(Unit):
unit = l.numberx
| 13.2 | 25 | 0.727273 | 10 | 66 | 4.8 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 66 | 4 | 26 | 16.5 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a809479d6388e0379ee75d56c585a593bdf09c1e | 58 | py | Python | keys.py | imlegend19/Weather_App | 0d26bab27d9d4fb55ffcf1e62adc551dc22e2c4d | [
"MIT"
] | 1 | 2018-07-11T05:56:03.000Z | 2018-07-11T05:56:03.000Z | keys.py | imlegend19/Weather_App | 0d26bab27d9d4fb55ffcf1e62adc551dc22e2c4d | [
"MIT"
] | null | null | null | keys.py | imlegend19/Weather_App | 0d26bab27d9d4fb55ffcf1e62adc551dc22e2c4d | [
"MIT"
] | null | null | null | OPEN_WEATHER_API_KEY = "d72772c107da797f9df95ce49dad00e6"
| 29 | 57 | 0.896552 | 5 | 58 | 9.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.345455 | 0.051724 | 58 | 1 | 58 | 58 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0.551724 | 0.551724 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.