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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
956d800944722fca803c54cb47c4a6b7ddb48ac6 | 112 | py | Python | villas/controller/__init__.py | VILLASframework/VILLAScontroller | e672439797f209afdd5bc62078f7d49c60269aa4 | [
"Apache-2.0"
] | null | null | null | villas/controller/__init__.py | VILLASframework/VILLAScontroller | e672439797f209afdd5bc62078f7d49c60269aa4 | [
"Apache-2.0"
] | null | null | null | villas/controller/__init__.py | VILLASframework/VILLAScontroller | e672439797f209afdd5bc62078f7d49c60269aa4 | [
"Apache-2.0"
] | null | null | null | import pkg_resources # part of setuptools
__version__ = pkg_resources.require('villas-controller')[0].version
| 28 | 67 | 0.803571 | 14 | 112 | 6 | 0.785714 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.098214 | 112 | 3 | 68 | 37.333333 | 0.821782 | 0.160714 | 0 | 0 | 0 | 0 | 0.184783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
95832b0b672551b187e10a73b519be000369ff7a | 373 | py | Python | problem20.py | hubenjm/projecteuler | 544596a6693a2e64a88e1d4606ce85480486dab5 | [
"MIT"
] | null | null | null | problem20.py | hubenjm/projecteuler | 544596a6693a2e64a88e1d4606ce85480486dab5 | [
"MIT"
] | null | null | null | problem20.py | hubenjm/projecteuler | 544596a6693a2e64a88e1d4606ce85480486dab5 | [
"MIT"
] | null | null | null | def sum_digits(n):
s=0
while n:
s += n % 10
n /= 10
return s
def factorial(n):
if n == 0:
return 1
else:
return n*factorial(n-1)
def sum_factorial_digits(n):
return sum_digits(factorial(n))
def main():
print(sum_factorial_digits(10))
print(sum_factorial_digits(100))
print(sum_factorial_digits(500... | 14.346154 | 33 | 0.664879 | 61 | 373 | 3.770492 | 0.311475 | 0.208696 | 0.313043 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053156 | 0.193029 | 373 | 25 | 34 | 14.92 | 0.710963 | 0.016086 | 0 | 0 | 0 | 0 | 0.021858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0.052632 | 0.421053 | 0.157895 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9599e0e8eb50c219052e77f540ae699c9a360ee4 | 378 | py | Python | src/UQpy/stochastic_process/supportive/__init__.py | SURGroup/UncertaintyQuantification | a94c8db47d07134ea2b3b0a3ca53ca818532c3e6 | [
"MIT"
] | null | null | null | src/UQpy/stochastic_process/supportive/__init__.py | SURGroup/UncertaintyQuantification | a94c8db47d07134ea2b3b0a3ca53ca818532c3e6 | [
"MIT"
] | null | null | null | src/UQpy/stochastic_process/supportive/__init__.py | SURGroup/UncertaintyQuantification | a94c8db47d07134ea2b3b0a3ca53ca818532c3e6 | [
"MIT"
] | null | null | null | """Collection of baseclasses"""
from UQpy.stochastic_process.supportive.inverse_wiener_khinchin_transform import (
inverse_wiener_khinchin_transform,
)
from UQpy.stochastic_process.supportive.wiener_khinchin_transform import (
wiener_khinchin_transform,
)
from UQpy.stochastic_process.supportive.scaling_correlat... | 34.363636 | 82 | 0.849206 | 41 | 378 | 7.414634 | 0.390244 | 0.184211 | 0.302632 | 0.246711 | 0.496711 | 0.381579 | 0.381579 | 0.381579 | 0 | 0 | 0 | 0 | 0.087302 | 378 | 10 | 83 | 37.8 | 0.881159 | 0.066138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
95d0988277f57f3342c8b6a40810f83dd1e3f9a6 | 4,425 | py | Python | search_profile/templatetags/user_filters.py | fattybobcat/git_profile_search | c87683e53e7149221f5f4efb1114cb6ead06e9af | [
"MIT"
] | null | null | null | search_profile/templatetags/user_filters.py | fattybobcat/git_profile_search | c87683e53e7149221f5f4efb1114cb6ead06e9af | [
"MIT"
] | null | null | null | search_profile/templatetags/user_filters.py | fattybobcat/git_profile_search | c87683e53e7149221f5f4efb1114cb6ead06e9af | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.filter
def addrowtable(open, closed):
table = ""
while open != {} or closed != {}:
if open != {} and closed != {}:
key, value = closed.popitem()
table += ("<td><a href='{0}' target='_blank''>{0}"
... | 39.159292 | 79 | 0.420565 | 501 | 4,425 | 3.638723 | 0.129741 | 0.076796 | 0.085573 | 0.092156 | 0.723533 | 0.705979 | 0.705979 | 0.705979 | 0.695557 | 0.661547 | 0 | 0.015784 | 0.355706 | 4,425 | 112 | 80 | 39.508929 | 0.623641 | 0 | 0 | 0.436893 | 0 | 0 | 0.305085 | 0.137175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.009709 | 0 | 0.097087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
95e16da927493eb5d7b2ffc4e2a4b2a5ae98e6a7 | 14,393 | py | Python | integration_methods.py | LudvigLindblad/DM-rate-calculation-in-graphene | de36b6207f7412e6ac71d3a88b7d10c55952a819 | [
"MIT"
] | 3 | 2020-05-12T19:13:28.000Z | 2020-09-16T07:26:34.000Z | integration_methods.py | LudvigLindblad/DM-rate-calculation-in-graphene | de36b6207f7412e6ac71d3a88b7d10c55952a819 | [
"MIT"
] | null | null | null | integration_methods.py | LudvigLindblad/DM-rate-calculation-in-graphene | de36b6207f7412e6ac71d3a88b7d10c55952a819 | [
"MIT"
] | null | null | null | import Rate_calculation
#import constants as ct
from mpmath import mp
from mpmath import fp
import numpy as np
import scipy.integrate as spint
import time
methods=["mp-gl", "mp-ts", "fp-gl", "fp-ts", "sp-quad", "sp-gauss", "monte-carlo", "w-cumsum", "sp-simps", "romberg"];
#cumtrapz relative error tolerance
err_rel=... | 36.62341 | 239 | 0.379907 | 1,806 | 14,393 | 3.008859 | 0.089701 | 0.032205 | 0.035333 | 0.048583 | 0.793522 | 0.756717 | 0.719912 | 0.681266 | 0.617777 | 0.602687 | 0 | 0.03349 | 0.466824 | 14,393 | 392 | 240 | 36.716837 | 0.674616 | 0.029737 | 0 | 0.728659 | 0 | 0 | 0.02208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006098 | false | 0 | 0.018293 | 0 | 0.118902 | 0.003049 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
95fe0d9334ca21b5999c423705bf101b4db22828 | 388 | py | Python | db.py | danalex93/ingsoft1-ayudantia5 | ccbec871fffe59664ed060be9b962830a0ea8f30 | [
"MIT"
] | null | null | null | db.py | danalex93/ingsoft1-ayudantia5 | ccbec871fffe59664ed060be9b962830a0ea8f30 | [
"MIT"
] | null | null | null | db.py | danalex93/ingsoft1-ayudantia5 | ccbec871fffe59664ed060be9b962830a0ea8f30 | [
"MIT"
] | null | null | null | import pymysql.cursors
class DatabaseManager(object):
def __init__(self):
super(DatabaseManager, self).__init__()
self.connection = pymysql.connect(host='localhost', port=8889, user='ayudante', password='holamundo', db='ayudantia_5', cursorclass=pymysql.cursors.DictCursor)
def get_connection(self):
re... | 32.333333 | 163 | 0.75 | 45 | 388 | 6.244444 | 0.622222 | 0.149466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014663 | 0.121134 | 388 | 12 | 164 | 32.333333 | 0.809384 | 0 | 0 | 0 | 0 | 0 | 0.095116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
250b12af701491e3829416603aa989a42bec10f7 | 873 | py | Python | bad_channel_lhc15o_mineAll.py | dhruvdixit/alice_calib_emcal | 26357206518511842c047c78c9b784acae6203e8 | [
"BSD-3-Clause-LBNL"
] | 1 | 2017-06-06T19:28:08.000Z | 2017-06-06T19:28:08.000Z | bad_channel_lhc15o_mineAll.py | dhruvdixit/alice_calib_emcal | 26357206518511842c047c78c9b784acae6203e8 | [
"BSD-3-Clause-LBNL"
] | null | null | null | bad_channel_lhc15o_mineAll.py | dhruvdixit/alice_calib_emcal | 26357206518511842c047c78c9b784acae6203e8 | [
"BSD-3-Clause-LBNL"
] | 1 | 2018-10-11T20:07:25.000Z | 2018-10-11T20:07:25.000Z | hot = [10, 326, 871, 1056, 1160, 1162, 1163, 1382, 1682, 1683, 1685, 1686, 1760, 1851, 1961, 2071, 2273, 3544, 3691, 3849, 3858, 3878, 3884, 4019, 4025, 4048, 4051, 4089, 4101, 4103, 4110, 4245, 4566, 4599, 4797, 5410, 5836, 6111, 6296, 6800, 6801, 6802, 6804, 6805, 6806, 6807, 6809, 7089, 7104, 7874, 8811, 8812, 8850,... | 436.5 | 872 | 0.688431 | 135 | 873 | 4.451852 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.811398 | 0.155785 | 873 | 1 | 873 | 873 | 0.004071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
251e296e01f36d9a852dceab4a644be72c1f2b3a | 180 | py | Python | example_repo/tests/test_fail.py | oaao/monoe-ci | 760b1d5027628e95607659eda91bc2c7183f528a | [
"MIT"
] | null | null | null | example_repo/tests/test_fail.py | oaao/monoe-ci | 760b1d5027628e95607659eda91bc2c7183f528a | [
"MIT"
] | null | null | null | example_repo/tests/test_fail.py | oaao/monoe-ci | 760b1d5027628e95607659eda91bc2c7183f528a | [
"MIT"
] | null | null | null | # https://github.com/malini/500lines/tree/master/ci/tests
import unittest
class TestFail(unittest.TestCase):
def test_fail(self):
self.fail('destined for greatness')
| 22.5 | 57 | 0.733333 | 24 | 180 | 5.458333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.138889 | 180 | 7 | 58 | 25.714286 | 0.825806 | 0.305556 | 0 | 0 | 0 | 0 | 0.178862 | 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 |
c2848bc6d1ffd1ee9447f32eba506bbea0d39b81 | 156 | py | Python | backend/cdEditor/apps.py | ArsalanShahid116/cd | 01e1f9b038cbda11ae61ce0f9d9cae6a83464a11 | [
"MIT"
] | null | null | null | backend/cdEditor/apps.py | ArsalanShahid116/cd | 01e1f9b038cbda11ae61ce0f9d9cae6a83464a11 | [
"MIT"
] | null | null | null | backend/cdEditor/apps.py | ArsalanShahid116/cd | 01e1f9b038cbda11ae61ce0f9d9cae6a83464a11 | [
"MIT"
] | 3 | 2019-03-18T11:22:41.000Z | 2019-03-22T18:38:43.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class CdeditorConfig(AppConfig):
name = 'cdEditor'
| 17.333333 | 39 | 0.737179 | 18 | 156 | 6.111111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.160256 | 156 | 8 | 40 | 19.5 | 0.832061 | 0.134615 | 0 | 0 | 0 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c2ad656fee2935c4df44cf071dba52ac1411494c | 94 | py | Python | billing/tests.py | lamhai1401/decoupled | 27aa180ebbb0aa038832a0f19e7d806be8075500 | [
"Apache-2.0"
] | null | null | null | billing/tests.py | lamhai1401/decoupled | 27aa180ebbb0aa038832a0f19e7d806be8075500 | [
"Apache-2.0"
] | null | null | null | billing/tests.py | lamhai1401/decoupled | 27aa180ebbb0aa038832a0f19e7d806be8075500 | [
"Apache-2.0"
] | null | null | null | """
Billing tests docstring
"""
# from django.test import TestCase
# Create your tests here.
| 13.428571 | 34 | 0.723404 | 12 | 94 | 5.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 94 | 6 | 35 | 15.666667 | 0.871795 | 0.861702 | 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 |
c2c5953c900d707c9ec640a4f2ff053d963f9288 | 87 | py | Python | python/testData/refactoring/introduceField/inConstructor.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/refactoring/introduceField/inConstructor.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/refactoring/introduceField/inConstructor.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class B():
def __init__(self):
self.a = "some string"
print(self.a) | 21.75 | 30 | 0.528736 | 12 | 87 | 3.5 | 0.75 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321839 | 87 | 4 | 31 | 21.75 | 0.711864 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 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 |
c2edbbf6cd691237b941937d5f66b48bca280f1e | 174 | py | Python | Chapter 05/ch5_16.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 05/ch5_16.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 05/ch5_16.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | x = int(input('Enter an integer:'))
y = int(input('Enter an integer:'))
if x ^ y!=0:
print(x,' and ', y, ' are different')
else:
print(x,' and ', y, ' are same') | 29 | 42 | 0.54023 | 29 | 174 | 3.241379 | 0.517241 | 0.170213 | 0.276596 | 0.319149 | 0.744681 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.235632 | 174 | 6 | 43 | 29 | 0.699248 | 0 | 0 | 0 | 0 | 0 | 0.394118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6c03c7aa8a2168cfe38c3a5341f70a474fa14b3e | 86 | py | Python | odp/publish/catalogue/__init__.py | SAEON/Open-Data-Platform | 8509c39c6f65ba18518e825e2359213ec4c67af5 | [
"MIT"
] | 2 | 2021-03-04T07:09:47.000Z | 2022-01-02T19:23:41.000Z | odp/publish/catalogue/__init__.py | SAEON/Open-Data-Platform | 8509c39c6f65ba18518e825e2359213ec4c67af5 | [
"MIT"
] | 18 | 2020-09-16T09:16:45.000Z | 2022-01-25T14:17:42.000Z | odp/publish/catalogue/__init__.py | SAEON/Open-Data-Platform | 8509c39c6f65ba18518e825e2359213ec4c67af5 | [
"MIT"
] | 1 | 2021-06-25T13:02:57.000Z | 2021-06-25T13:02:57.000Z | class Catalogue:
def synchronize(self) -> None:
raise NotImplementedError
| 21.5 | 34 | 0.697674 | 8 | 86 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 86 | 3 | 35 | 28.666667 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
6c11f2c9ccc7e429664a58803cc40dcf749808ca | 152 | py | Python | Suggestion/SupervisedLearning/__init__.py | QuasiLegendre/GraSPyPipeline | b8f0986cf3bbfa75e2a7c3669ff11a449e3c61bb | [
"Apache-2.0"
] | null | null | null | Suggestion/SupervisedLearning/__init__.py | QuasiLegendre/GraSPyPipeline | b8f0986cf3bbfa75e2a7c3669ff11a449e3c61bb | [
"Apache-2.0"
] | null | null | null | Suggestion/SupervisedLearning/__init__.py | QuasiLegendre/GraSPyPipeline | b8f0986cf3bbfa75e2a7c3669ff11a449e3c61bb | [
"Apache-2.0"
] | null | null | null | from .base import SupervisedLearningPipeline
from .MASEPipeline import MASEPipeline
__all__ = [
"SupervisedLearningPipeline",
"MASEPipeline",
]
| 21.714286 | 44 | 0.782895 | 11 | 152 | 10.454545 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144737 | 152 | 6 | 45 | 25.333333 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 1 | 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 |
6c17a5d022456ad9a1544455d5c7528405e98a8e | 463 | py | Python | dist/py/reflectedlight.py | microsoft/jacdac | 2c6548b7e55ac34141e5152c664ca268e873cf09 | [
"CC-BY-4.0",
"MIT"
] | 31 | 2020-07-24T14:49:32.000Z | 2022-03-20T12:20:56.000Z | dist/py/reflectedlight.py | QPC-database/jacdac | 74e9f7cebdb1db4c24f211aceb657b5125d0fd40 | [
"CC-BY-4.0",
"MIT"
] | 747 | 2020-07-31T22:05:45.000Z | 2022-03-31T23:27:35.000Z | dist/py/reflectedlight.py | QPC-database/jacdac | 74e9f7cebdb1db4c24f211aceb657b5125d0fd40 | [
"CC-BY-4.0",
"MIT"
] | 17 | 2020-07-31T10:49:01.000Z | 2022-03-15T03:21:43.000Z | # Autogenerated file for Reflected light
# Add missing from ... import const
_JD_SERVICE_CLASS_REFLECTED_LIGHT = const(0x126c4cb2)
_JD_REFLECTED_LIGHT_VARIANT_INFRARED_DIGITAL = const(0x1)
_JD_REFLECTED_LIGHT_VARIANT_INFRARED_ANALOG = const(0x2)
_JD_REFLECTED_LIGHT_REG_BRIGHTNESS = const(JD_REG_READING)
_JD_REFLECTED_L... | 51.444444 | 58 | 0.87257 | 69 | 463 | 5.202899 | 0.391304 | 0.311978 | 0.267409 | 0.128134 | 0.172702 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.071274 | 463 | 9 | 59 | 51.444444 | 0.811628 | 0.155508 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.041131 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6c39a020d2fa8fc95bf3d94bc3b6cdab9143bcc3 | 207 | py | Python | scripts/item/consume_2438086.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/item/consume_2438086.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/item/consume_2438086.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Created by MechAviv
# Nyen Damage Skin | (2438086)
if sm.addDamageSkin(2438086):
sm.chat("'Nyen Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem() | 41.4 | 103 | 0.729469 | 30 | 207 | 5.033333 | 0.666667 | 0.264901 | 0.18543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081395 | 0.169082 | 207 | 5 | 104 | 41.4 | 0.796512 | 0.231884 | 0 | 0 | 0 | 0 | 0.56051 | 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 |
6c4541a3d18186afe353469626c1a491e330f82a | 66 | py | Python | Chapter08/festival_test.py | PacktPublishing/Learning-Robotics-using-Python | d03a5ed459d3c2e05118e8b9345abb5a9650ced9 | [
"MIT"
] | 8 | 2019-06-04T13:32:35.000Z | 2021-11-08T13:10:20.000Z | Chapter08/festival_test.py | davidseowccc/Learning-Robotics-using-Python | d03a5ed459d3c2e05118e8b9345abb5a9650ced9 | [
"MIT"
] | null | null | null | Chapter08/festival_test.py | davidseowccc/Learning-Robotics-using-Python | d03a5ed459d3c2e05118e8b9345abb5a9650ced9 | [
"MIT"
] | 9 | 2019-07-22T03:27:40.000Z | 2021-07-18T01:00:59.000Z | #!/usr/bin/env python
import festival
festival.say("Hello World")
| 16.5 | 27 | 0.757576 | 10 | 66 | 5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 66 | 3 | 28 | 22 | 0.833333 | 0.30303 | 0 | 0 | 0 | 0 | 0.244444 | 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 |
6c5841ba097355b2108b8ddd7a5ef6483c8b259c | 88 | py | Python | 03_Day_Operators/9.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | 03_Day_Operators/9.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | 03_Day_Operators/9.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | x1 = 2
y1 = 2
x2 = 6
y2 = 10
m2 = (y2 - y1) / (x2 - x1)
print(f'Slope = {m2:.2f}') # 9
| 12.571429 | 31 | 0.443182 | 19 | 88 | 2.052632 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278689 | 0.306818 | 88 | 6 | 32 | 14.666667 | 0.360656 | 0.011364 | 0 | 0 | 0 | 0 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 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 |
6c6823999faa48c52506417b6bbf981460c1fb51 | 974 | py | Python | physics/__init__.py | fedorpashin/physics | d587d50679fb5ad3994a8b992806a30053ed45e1 | [
"MIT"
] | 2 | 2021-09-06T16:20:25.000Z | 2021-09-06T16:21:17.000Z | physics/__init__.py | fedorpashin/physics | d587d50679fb5ad3994a8b992806a30053ed45e1 | [
"MIT"
] | 30 | 2021-09-06T16:20:29.000Z | 2021-11-27T22:41:03.000Z | physics/__init__.py | fedorpashin/physics | d587d50679fb5ad3994a8b992806a30053ed45e1 | [
"MIT"
] | null | null | null | from .interval import *
from .boundary_conditions.boundary_condition import *
from .equations.any_equation import *
from .grids.any_grid import *
from .equations.any_algorithm import *
from .solution import *
from .boundary_conditions.first_type_boundary_condition import *
from .boundary_conditions.second_type_boundar... | 36.074074 | 65 | 0.835729 | 128 | 974 | 6.0625 | 0.203125 | 0.270619 | 0.162371 | 0.146907 | 0.574742 | 0.298969 | 0.126289 | 0 | 0 | 0 | 0 | 0 | 0.094456 | 974 | 26 | 66 | 37.461538 | 0.879819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 |
6c7134f355a2489e6feaef1e58c306ad7e5a70e4 | 265 | py | Python | alento_bot/__init__.py | alentoghostflame/StupidEveAppraisalBot | a78adb206efd3a4dc41cbbfb45ee0b8b61aea248 | [
"MIT"
] | null | null | null | alento_bot/__init__.py | alentoghostflame/StupidEveAppraisalBot | a78adb206efd3a4dc41cbbfb45ee0b8b61aea248 | [
"MIT"
] | null | null | null | alento_bot/__init__.py | alentoghostflame/StupidEveAppraisalBot | a78adb206efd3a4dc41cbbfb45ee0b8b61aea248 | [
"MIT"
] | null | null | null | from alento_bot.storage_module import StorageManager, ConfigData, guild_data_transformer, user_data_transformer, \
cache_transformer, BaseCache, BaseGuildCache, BaseUserCache
from alento_bot.core_module import DiscordBot
from alento_bot.core_cog import CoreCog
| 53 | 114 | 0.867925 | 33 | 265 | 6.636364 | 0.606061 | 0.136986 | 0.178082 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090566 | 265 | 4 | 115 | 66.25 | 0.908714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
66c2ef4213580ea381cb0b4d15d8f3d5e9664322 | 358 | py | Python | users/admin.py | intelligems/stolos | ca658aeea92b841f89992948a136214519dffcc7 | [
"MIT"
] | 5 | 2019-08-27T10:33:14.000Z | 2021-11-09T10:57:40.000Z | users/admin.py | intelligems/stolos | ca658aeea92b841f89992948a136214519dffcc7 | [
"MIT"
] | null | null | null | users/admin.py | intelligems/stolos | ca658aeea92b841f89992948a136214519dffcc7 | [
"MIT"
] | 3 | 2019-05-23T14:37:40.000Z | 2020-12-14T18:43:16.000Z | from django.contrib import admin
from guardian.admin import GuardedModelAdmin
from users import models
@admin.register(models.SSHPublicKey)
class SSHPublicKeyAdmin(GuardedModelAdmin):
pass
@admin.register(models.DockerCert)
class DockerCert(GuardedModelAdmin):
pass
@admin.register(models.APIToken)
class ... | 17.9 | 44 | 0.807263 | 38 | 358 | 7.605263 | 0.421053 | 0.134948 | 0.197232 | 0.235294 | 0.276817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120112 | 358 | 19 | 45 | 18.842105 | 0.91746 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
dd5b5672c9ca37a33e9ea130f80a22eedc10fb00 | 233 | py | Python | river/tests/admin.py | JohnieBraaf/django-river | 58f49624c37e1e5d1bdb4c7680810126454e36a6 | [
"BSD-3-Clause"
] | 705 | 2015-07-23T16:09:06.000Z | 2022-03-05T03:52:31.000Z | river/tests/admin.py | JohnieBraaf/django-river | 58f49624c37e1e5d1bdb4c7680810126454e36a6 | [
"BSD-3-Clause"
] | 188 | 2015-08-28T21:58:38.000Z | 2021-12-15T06:39:37.000Z | river/tests/admin.py | JohnieBraaf/django-river | 58f49624c37e1e5d1bdb4c7680810126454e36a6 | [
"BSD-3-Clause"
] | 101 | 2015-08-30T04:22:57.000Z | 2022-03-29T06:58:20.000Z | from django.contrib import admin
from django.contrib.admin import ModelAdmin
from river.tests.models import BasicTestModel
class BasicTestModelAdmin(ModelAdmin):
pass
admin.site.register(BasicTestModel, BasicTestModelAdmin)
| 19.416667 | 56 | 0.832618 | 26 | 233 | 7.461538 | 0.576923 | 0.103093 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111588 | 233 | 11 | 57 | 21.181818 | 0.937198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.5 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
dd606344a082df4a803d75a5752528318fdd82fc | 136 | py | Python | laundryapp/apps.py | chrillux/laundrybooking | fa58e460454ce8b22de0b3b2d1b697742aa0f140 | [
"MIT"
] | 1 | 2017-12-06T07:18:59.000Z | 2017-12-06T07:18:59.000Z | laundryapp/apps.py | chrillux/laundrybooking | fa58e460454ce8b22de0b3b2d1b697742aa0f140 | [
"MIT"
] | 3 | 2020-02-11T23:47:22.000Z | 2021-06-10T19:24:46.000Z | laundryapp/apps.py | chrillux/laundrybooking | fa58e460454ce8b22de0b3b2d1b697742aa0f140 | [
"MIT"
] | 3 | 2017-03-25T19:24:34.000Z | 2019-09-14T07:00:50.000Z | from __future__ import unicode_literals
from django.apps import AppConfig
class LaundryappConfig(AppConfig):
name = 'laundryapp'
| 17 | 39 | 0.801471 | 15 | 136 | 6.933333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 136 | 7 | 40 | 19.428571 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dd844e25a03ca578a56a655c145f5eccc06ecfb1 | 97 | py | Python | project/partnersapp/apps.py | ObukhovVladislav/site-store | a016fd69cecfd39d15169e3fae99b14d4806b2bf | [
"Apache-2.0"
] | null | null | null | project/partnersapp/apps.py | ObukhovVladislav/site-store | a016fd69cecfd39d15169e3fae99b14d4806b2bf | [
"Apache-2.0"
] | null | null | null | project/partnersapp/apps.py | ObukhovVladislav/site-store | a016fd69cecfd39d15169e3fae99b14d4806b2bf | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class PartnersappConfig(AppConfig):
name = 'partnersapp'
| 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 |
06c068e14cd832b5533778d992a4229418ea1ff2 | 226 | py | Python | app/resources/cache.py | thehyve/rest_api | e60aa7064dc8946e96ee3937692887e3a5e40459 | [
"Apache-2.0"
] | 15 | 2017-04-03T22:11:02.000Z | 2021-03-16T11:49:25.000Z | app/resources/cache.py | thehyve/rest_api | e60aa7064dc8946e96ee3937692887e3a5e40459 | [
"Apache-2.0"
] | 123 | 2017-01-05T14:01:01.000Z | 2019-10-21T16:56:48.000Z | app/resources/cache.py | thehyve/rest_api | e60aa7064dc8946e96ee3937692887e3a5e40459 | [
"Apache-2.0"
] | 9 | 2017-04-03T22:20:14.000Z | 2021-05-28T16:38:54.000Z | __author__ = 'andreap'
from flask import current_app
from flask_restful import Resource
class ClearCache(Resource):
''' clear the aplication cache
'''
def get(self ):
return current_app.cache.clear()
| 15.066667 | 40 | 0.69469 | 27 | 226 | 5.555556 | 0.703704 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221239 | 226 | 14 | 41 | 16.142857 | 0.852273 | 0.115044 | 0 | 0 | 0 | 0 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
06f1535314c56fdccd452a964379c01902b29201 | 274 | py | Python | keras/applications/xception.py | DNAdeveloper/keras | d81a590da23b63aec6949f1da118e504d04726ea | [
"MIT"
] | 9 | 2018-06-28T12:52:00.000Z | 2020-09-25T10:32:43.000Z | keras/applications/xception.py | DNAdeveloper/keras | d81a590da23b63aec6949f1da118e504d04726ea | [
"MIT"
] | null | null | null | keras/applications/xception.py | DNAdeveloper/keras | d81a590da23b63aec6949f1da118e504d04726ea | [
"MIT"
] | 7 | 2018-07-02T08:55:46.000Z | 2020-04-25T20:59:49.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from keras_applications import xception
Xception = xception.Xception
decode_predictions = xception.decode_predictions
preprocess_input = xception.preprocess_input
| 27.4 | 48 | 0.879562 | 32 | 274 | 6.9375 | 0.4375 | 0.135135 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09854 | 274 | 9 | 49 | 30.444444 | 0.898785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
660659de6edc70b7b8680360299c26304c6fec8c | 689 | py | Python | ogusa/__init__.py | benrpage1/OG-USA | f0229fe863d0f0e6f1af223b8c903ac97093fe93 | [
"CC0-1.0"
] | null | null | null | ogusa/__init__.py | benrpage1/OG-USA | f0229fe863d0f0e6f1af223b8c903ac97093fe93 | [
"CC0-1.0"
] | 2 | 2020-09-02T22:58:36.000Z | 2020-09-03T19:29:46.000Z | ogusa/__init__.py | prrathi/OG-USA | 2e5c116bb8656ab190a59e431a8d57415fe26b08 | [
"CC0-1.0"
] | null | null | null | """
Specify what is available to import from the ogusa package.
"""
from ogusa.SS import *
from ogusa.TPI import *
from ogusa.aggregates import *
from ogusa.constants import *
from ogusa.demographics import *
from ogusa.elliptical_u_est import *
from ogusa.execute import *
from ogusa.firm import *
from ogusa.fiscal imp... | 26.5 | 59 | 0.785196 | 102 | 689 | 5.186275 | 0.352941 | 0.378072 | 0.538752 | 0.079395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005059 | 0.139332 | 689 | 25 | 60 | 27.56 | 0.887015 | 0.085631 | 0 | 0 | 0 | 0 | 0.008039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.952381 | 0 | 0.952381 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
661b322d9a2530eb6d0698cf2ee1fa416d3856db | 59 | py | Python | galaxy_api/contrib/__init__.py | nixocio/galaxy-api | 12dcacdc0b093f3051b5dc87095324fb63bf6af3 | [
"Apache-2.0"
] | null | null | null | galaxy_api/contrib/__init__.py | nixocio/galaxy-api | 12dcacdc0b093f3051b5dc87095324fb63bf6af3 | [
"Apache-2.0"
] | null | null | null | galaxy_api/contrib/__init__.py | nixocio/galaxy-api | 12dcacdc0b093f3051b5dc87095324fb63bf6af3 | [
"Apache-2.0"
] | null | null | null | """A package for Insights specific modules and plugins."""
| 29.5 | 58 | 0.745763 | 8 | 59 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 59 | 1 | 59 | 59 | 0.862745 | 0.881356 | 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 |
663f3be8ccc64695e9ecee40c4ca4ac3693c20a8 | 217 | py | Python | samples/MyCustomException.py | bogdan9898/flaskvel | b3ab27d050870ea5fe6a3cd2ed3833220b18e089 | [
"MIT"
] | 3 | 2020-08-13T19:39:53.000Z | 2022-01-03T18:02:58.000Z | samples/MyCustomException.py | bogdan9898/flaskvel | b3ab27d050870ea5fe6a3cd2ed3833220b18e089 | [
"MIT"
] | null | null | null | samples/MyCustomException.py | bogdan9898/flaskvel | b3ab27d050870ea5fe6a3cd2ed3833220b18e089 | [
"MIT"
] | null | null | null | from flask import jsonify
from flaskvel import ValidationException
class MyCustomException(ValidationException):
def pretty_print(self):
return jsonify({
"validation": "failed",
"reasons": self._message
}) | 24.111111 | 45 | 0.769585 | 22 | 217 | 7.5 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138249 | 217 | 9 | 46 | 24.111111 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.105505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.625 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b07eb37b000ee567034ae0aa04fa240ea173e015 | 360 | py | Python | python/tintin/auth.py | FootprintAI/tintin-sdk | cc84a1cfeacd0374c098e4f745d8e19815832366 | [
"Apache-2.0"
] | null | null | null | python/tintin/auth.py | FootprintAI/tintin-sdk | cc84a1cfeacd0374c098e4f745d8e19815832366 | [
"Apache-2.0"
] | null | null | null | python/tintin/auth.py | FootprintAI/tintin-sdk | cc84a1cfeacd0374c098e4f745d8e19815832366 | [
"Apache-2.0"
] | null | null | null | from requests.auth import AuthBase
class MinioAuth(AuthBase):
"""Attaches HTTP Minio Authentication to the given Request object."""
def __init__(self, project_token):
# setup any auth-related data here
self.project_token = project_token
def __call__(self, r):
r.headers['MinioToken'... | 30 | 73 | 0.691667 | 45 | 360 | 5.266667 | 0.688889 | 0.202532 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225 | 360 | 11 | 74 | 32.727273 | 0.849462 | 0.269444 | 0 | 0 | 0 | 0 | 0.038911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b0d5092a20ac792be462b6c71154204739960a39 | 8,462 | py | Python | app.py | 5qc/Textwiki | 9a08a49bb9c914553a3bbad14f71250306715fef | [
"MIT"
] | null | null | null | app.py | 5qc/Textwiki | 9a08a49bb9c914553a3bbad14f71250306715fef | [
"MIT"
] | null | null | null | app.py | 5qc/Textwiki | 9a08a49bb9c914553a3bbad14f71250306715fef | [
"MIT"
] | null | null | null | import glob, os, re
from flask import Flask, render_template, redirect
app = Flask(__name__, template_folder="templates")
pagesDir = "pages"
@app.errorhandler(400)
def error400():
return render_template("404.html"), 404
@app.route("/")
def index():
return redirect("/index", 302)
@app.route("/<string:page>")... | 48.079545 | 115 | 0.442449 | 916 | 8,462 | 4.122271 | 0.127729 | 0.07018 | 0.137712 | 0.216367 | 0.778867 | 0.729078 | 0.703125 | 0.665784 | 0.64036 | 0.622881 | 0 | 0.020779 | 0.317537 | 8,462 | 175 | 116 | 48.354286 | 0.624069 | 0.025762 | 0 | 0.549296 | 0 | 0.014085 | 0.194144 | 0.039728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049296 | false | 0 | 0.014085 | 0.028169 | 0.112676 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b0fcaf469ac0162df1e38abf84594c8ee8d7237c | 192 | py | Python | api/admin.py | david30907d/avancevl-interview | fda7b049661de29b66cd4f73939bed12269d3bed | [
"MIT"
] | null | null | null | api/admin.py | david30907d/avancevl-interview | fda7b049661de29b66cd4f73939bed12269d3bed | [
"MIT"
] | 3 | 2020-04-30T15:08:29.000Z | 2021-05-11T05:39:42.000Z | api/admin.py | david30907d/avancevl-interview | fda7b049661de29b66cd4f73939bed12269d3bed | [
"MIT"
] | null | null | null | from django.contrib import admin
from api.models import Restaurant
class RestaurantAdmin(admin.ModelAdmin):
list_display = ('name', )
admin.site.register(Restaurant, RestaurantAdmin) | 27.428571 | 48 | 0.78125 | 22 | 192 | 6.772727 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130208 | 192 | 7 | 48 | 27.428571 | 0.892216 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 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 |
9fe1981013059de94e65e9b4fd6504056868341d | 237 | py | Python | backend/app/schemas/user.py | Asma-Alghamdi/CREstimator_website | 7c4dc07e9ed15cbfa4981ceba8e3115b2b9dabad | [
"MIT"
] | null | null | null | backend/app/schemas/user.py | Asma-Alghamdi/CREstimator_website | 7c4dc07e9ed15cbfa4981ceba8e3115b2b9dabad | [
"MIT"
] | null | null | null | backend/app/schemas/user.py | Asma-Alghamdi/CREstimator_website | 7c4dc07e9ed15cbfa4981ceba8e3115b2b9dabad | [
"MIT"
] | null | null | null | # Normal way
def userEntity(item) -> dict:
return {
"fname":item["fname"],
"lname":item["lname"],
"email":item["email"],
}
def usersEntity(entity) -> list:
return [userEntity(item) for item in entity] | 23.7 | 48 | 0.578059 | 27 | 237 | 5.074074 | 0.555556 | 0.20438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248945 | 237 | 10 | 48 | 23.7 | 0.769663 | 0.042194 | 0 | 0 | 0 | 0 | 0.132743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
b03b71125c925ab16c151b5f092d5646dbfd2ffa | 120 | py | Python | shop/admin.py | Debanjan2001/Ecommerce-WebApp | beebbdf036302036b6b3ff03b1a9f0dfe95a9c13 | [
"MIT"
] | 4 | 2021-04-21T17:58:11.000Z | 2021-04-25T06:56:42.000Z | shop/admin.py | Debanjan2001/Ecommerce-WebApp | beebbdf036302036b6b3ff03b1a9f0dfe95a9c13 | [
"MIT"
] | null | null | null | shop/admin.py | Debanjan2001/Ecommerce-WebApp | beebbdf036302036b6b3ff03b1a9f0dfe95a9c13 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . models import Product
# Register your models here.
admin.site.register(Product) | 24 | 32 | 0.808333 | 17 | 120 | 5.705882 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 120 | 5 | 33 | 24 | 0.92381 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b0497b7cb430a53a07653a60d303c9c44f7f60b9 | 572 | py | Python | example/books/models.py | spapas/django-generic-scaffold | dbc819455c077f56b0a2202c8a073f2e9e7ca80c | [
"MIT"
] | 106 | 2016-01-07T15:01:16.000Z | 2022-03-31T15:00:17.000Z | example/books/models.py | spapas/django-generic-scaffold | dbc819455c077f56b0a2202c8a073f2e9e7ca80c | [
"MIT"
] | 4 | 2016-03-07T07:14:55.000Z | 2020-04-24T14:29:34.000Z | example/books/models.py | spapas/django-generic-scaffold | dbc819455c077f56b0a2202c8a073f2e9e7ca80c | [
"MIT"
] | 15 | 2016-03-06T18:32:57.000Z | 2022-03-30T16:29:35.000Z | from __future__ import unicode_literals
try:
from django.core.urlresolvers import reverse
except ModuleNotFoundError:
from django.urls import reverse
from django.db import models
import generic_scaffold
class Book(models.Model):
title = models.CharField(max_length=128)
author = models.CharField(max_l... | 27.238095 | 75 | 0.73951 | 77 | 572 | 5.272727 | 0.558442 | 0.073892 | 0.133005 | 0.17734 | 0.133005 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023013 | 0.164336 | 572 | 20 | 76 | 28.6 | 0.82636 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0.133333 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
b04bc9f7a805f1ba2a951fdf14dd9f74e8a7baf8 | 25 | py | Python | docknv/tests/__init__.py | sharingcloud/docknv | 6eec6a576a32cb05278b7af045f90859066c9f1d | [
"MIT"
] | null | null | null | docknv/tests/__init__.py | sharingcloud/docknv | 6eec6a576a32cb05278b7af045f90859066c9f1d | [
"MIT"
] | null | null | null | docknv/tests/__init__.py | sharingcloud/docknv | 6eec6a576a32cb05278b7af045f90859066c9f1d | [
"MIT"
] | null | null | null | """docknv tests init."""
| 12.5 | 24 | 0.6 | 3 | 25 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.681818 | 0.72 | 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 |
b053484c5bf8a015af6cdc0ce5bb0b0df5c9b29a | 148 | py | Python | asterocr/text_rec/loss/__init__.py | ankur6ue/aster-ocr | c4503bb19c843d519a36f0e5b8bebd6809800e04 | [
"MIT"
] | 605 | 2019-07-13T08:55:47.000Z | 2022-03-27T13:54:33.000Z | asterocr/text_rec/loss/__init__.py | ankur6ue/aster-ocr | c4503bb19c843d519a36f0e5b8bebd6809800e04 | [
"MIT"
] | 81 | 2019-07-23T10:17:46.000Z | 2022-03-29T11:27:41.000Z | asterocr/text_rec/loss/__init__.py | ankur6ue/aster-ocr | c4503bb19c843d519a36f0e5b8bebd6809800e04 | [
"MIT"
] | 171 | 2019-07-18T06:32:38.000Z | 2022-03-24T06:44:05.000Z | from __future__ import absolute_import
from .sequenceCrossEntropyLoss import SequenceCrossEntropyLoss
__all__ = [
'SequenceCrossEntropyLoss',
] | 18.5 | 62 | 0.837838 | 11 | 148 | 10.454545 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114865 | 148 | 8 | 63 | 18.5 | 0.877863 | 0 | 0 | 0 | 0 | 0 | 0.161074 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 1 | 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 |
b0566025d71afa1ff067e5caeccf913b4a4d215a | 744 | py | Python | checkout_sdk/payments/responses/payment_processed.py | emanuele-cesari-cko/checkout-sdk-python | e1e0485881cfeb0e994c9852fa04ca36aec45bc3 | [
"MIT"
] | 13 | 2018-08-29T09:09:11.000Z | 2021-11-26T08:30:58.000Z | checkout_sdk/payments/responses/payment_processed.py | emanuele-cesari-cko/checkout-sdk-python | e1e0485881cfeb0e994c9852fa04ca36aec45bc3 | [
"MIT"
] | 17 | 2018-08-30T07:39:15.000Z | 2022-03-31T16:09:38.000Z | checkout_sdk/payments/responses/payment_processed.py | emanuele-cesari-cko/checkout-sdk-python | e1e0485881cfeb0e994c9852fa04ca36aec45bc3 | [
"MIT"
] | 13 | 2018-09-11T13:00:55.000Z | 2021-05-19T15:19:30.000Z | from checkout_sdk.payments.responses import Payment
class PaymentProcessed(Payment):
def __init__(self, api_response):
super().__init__(api_response, is_pending=False)
@property
def actions_link(self):
return self.get_link('actions')
@property
def can_capture(self):
retur... | 21.257143 | 56 | 0.653226 | 92 | 744 | 5 | 0.304348 | 0.167391 | 0.213043 | 0.156522 | 0.354348 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240591 | 744 | 34 | 57 | 21.882353 | 0.814159 | 0 | 0 | 0.28 | 0 | 0 | 0.055108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0.28 | 0.68 | 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 |
c6625b242e30d298ad252f1d6703e2d8f6af9901 | 3,353 | py | Python | velkozz_web_api/apps/geography_api/migrations/0006_auto_20210925_0716.py | velkoz-data-ingestion/velkozz_web_api | 519a6a90e5fdf5bab8ba2daf637768c5fd424a12 | [
"MIT"
] | null | null | null | velkozz_web_api/apps/geography_api/migrations/0006_auto_20210925_0716.py | velkoz-data-ingestion/velkozz_web_api | 519a6a90e5fdf5bab8ba2daf637768c5fd424a12 | [
"MIT"
] | null | null | null | velkozz_web_api/apps/geography_api/migrations/0006_auto_20210925_0716.py | velkoz-data-ingestion/velkozz_web_api | 519a6a90e5fdf5bab8ba2daf637768c5fd424a12 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-09-25 07:16
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('geography_api', '0005_auto_20210925_0702'),
]
operations = [
migrations.AlterField(
model_... | 31.933333 | 127 | 0.556218 | 299 | 3,353 | 6.130435 | 0.237458 | 0.196399 | 0.245499 | 0.284779 | 0.788871 | 0.707583 | 0.685761 | 0.685761 | 0.554828 | 0.523732 | 0 | 0.021239 | 0.325977 | 3,353 | 104 | 128 | 32.240385 | 0.789823 | 0.013421 | 0 | 0.653061 | 1 | 0 | 0.099516 | 0.006957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.05102 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c699e0de6acba01eb90d1e9d11eddcab32c1286e | 295 | py | Python | p1/meuapp/models.py | mentoriacompartilhada/helenamagaldi-v0 | d26e5b4ae887382b02c00092c2487437bc9ffb78 | [
"MIT"
] | 1 | 2021-08-19T02:38:47.000Z | 2021-08-19T02:38:47.000Z | p1/meuapp/models.py | mentoriacompartilhada/helenamagaldi-v0 | d26e5b4ae887382b02c00092c2487437bc9ffb78 | [
"MIT"
] | null | null | null | p1/meuapp/models.py | mentoriacompartilhada/helenamagaldi-v0 | d26e5b4ae887382b02c00092c2487437bc9ffb78 | [
"MIT"
] | null | null | null | from django.db import models
class Client(models.Model):
name = models.CharField(max_length= 240)
family_name = models.CharField(max_length= 300)
age = models.IntegerField(max_length=3)
nickname = models.CharField(max_length=10)
password = models.CharField(max_length=7)
| 24.583333 | 51 | 0.738983 | 40 | 295 | 5.3 | 0.55 | 0.212264 | 0.339623 | 0.45283 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.159322 | 295 | 11 | 52 | 26.818182 | 0.814516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c6b40d24bf82a2bf86acb56f47332d9fa1aeaa0e | 1,581 | py | Python | server/routing.py | lluo5779/Robo-Adviser | 43aa4b73bfc96e55ed664328330a930975596124 | [
"MIT"
] | null | null | null | server/routing.py | lluo5779/Robo-Adviser | 43aa4b73bfc96e55ed664328330a930975596124 | [
"MIT"
] | 3 | 2021-03-31T19:24:03.000Z | 2021-12-13T20:26:39.000Z | server/routing.py | lluo5779/Robo-Adviser | 43aa4b73bfc96e55ed664328330a930975596124 | [
"MIT"
] | null | null | null | from flask import render_template, flash, redirect, url_for, request
from flask_login import login_user, logout_user, current_user, login_required
# from app.forms import LoginForm, RegistrationForm
# Render home page
# @app.route('/')
def home():
return render_template('home.jinja2')
def login():
... | 31 | 102 | 0.665402 | 200 | 1,581 | 5.095 | 0.355 | 0.109912 | 0.13739 | 0.058881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005596 | 0.208729 | 1,581 | 50 | 103 | 31.62 | 0.808953 | 0.051866 | 0 | 0 | 0 | 0 | 0.130104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0.060606 | 0.060606 | 0.151515 | 0.636364 | 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 |
c6cf5de80cf1f90e66d348c052f85b5224e1d27a | 540 | py | Python | sovi/api/awards/views.py | husseinm/Saly | e656e4e30e696cc7b425f272424dc3c1db2ae92a | [
"MIT"
] | null | null | null | sovi/api/awards/views.py | husseinm/Saly | e656e4e30e696cc7b425f272424dc3c1db2ae92a | [
"MIT"
] | null | null | null | sovi/api/awards/views.py | husseinm/Saly | e656e4e30e696cc7b425f272424dc3c1db2ae92a | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from sovi.utils import jsonSerializer
from sovi.api.awards.models import Award, AwardType
@login_required
def getAllAwards(request):
return HttpResponse(jsonSerializer.serialize(Award.objects.all()),
... | 30 | 74 | 0.75 | 58 | 540 | 6.896552 | 0.517241 | 0.0975 | 0.08 | 0.195 | 0.42 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 540 | 17 | 75 | 31.764706 | 0.888889 | 0 | 0 | 0.333333 | 0 | 0 | 0.059259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
c6e9511bcfded6e45d799c06ddfe39dbde5408b7 | 800 | py | Python | tests/test_34.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_34.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_34.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 34. Find First and Last Position of Element in Sorted Array
"""
@pytest.fixture(scope="session")
def init_variables_34():
from src.leetcode_34_find_first_and_last_position_of_element_in_sorted_array import (
Solution,
)
solution = Solution()
def... | 24.242424 | 89 | 0.68 | 116 | 800 | 4.37069 | 0.387931 | 0.230769 | 0.266272 | 0.112426 | 0.518738 | 0.518738 | 0.518738 | 0.518738 | 0.518738 | 0.418146 | 0 | 0.077882 | 0.1975 | 800 | 32 | 90 | 25 | 0.711838 | 0.025 | 0 | 0 | 0 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.294118 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
05a1581e3ca9120962935c2b7091ad8ad3671640 | 3,582 | py | Python | tests/testapp/home/migrations/0001_initial.py | springload/wagtailblocks | 2226597db2fad52e661eed14e5fc8de0a1a8b347 | [
"MIT"
] | 25 | 2015-11-27T09:22:50.000Z | 2018-01-28T23:42:51.000Z | tests/testapp/home/migrations/0001_initial.py | springload/wagtailcommonblocks | 2226597db2fad52e661eed14e5fc8de0a1a8b347 | [
"MIT"
] | 7 | 2018-03-21T04:46:51.000Z | 2021-04-14T05:15:33.000Z | tests/testapp/home/migrations/0001_initial.py | springload/wagtailblocks | 2226597db2fad52e661eed14e5fc8de0a1a8b347 | [
"MIT"
] | 6 | 2016-11-12T20:11:34.000Z | 2018-03-12T15:49:07.000Z | # Generated by Django 2.0.3 on 2018-03-21 04:12
import commonblocks.blocks
import commonblocks.fields
from django.db import migrations, models
import django.db.models.deletion
try:
import wagtail.core.blocks as core_blocks
import wagtail.core.fields as core_fields
import wagtail.embeds.blocks as embeds_bl... | 85.285714 | 2,288 | 0.714685 | 409 | 3,582 | 6.0978 | 0.290954 | 0.124298 | 0.083801 | 0.119086 | 0.479551 | 0.394547 | 0.228549 | 0.225341 | 0.225341 | 0.225341 | 0 | 0.009163 | 0.116415 | 3,582 | 41 | 2,289 | 87.365854 | 0.778831 | 0.012563 | 0 | 0 | 1 | 0 | 0.174823 | 0.010184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.393939 | 0 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
05ab785bf7383bc474487869606451d920c812c8 | 95 | py | Python | {{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/apps/core/api/__init__.py | marksweb/cookiecutter-django | f8ea97593f768f3d1cc260838d2913bdb13026c4 | [
"MIT"
] | null | null | null | {{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/apps/core/api/__init__.py | marksweb/cookiecutter-django | f8ea97593f768f3d1cc260838d2913bdb13026c4 | [
"MIT"
] | null | null | null | {{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/apps/core/api/__init__.py | marksweb/cookiecutter-django | f8ea97593f768f3d1cc260838d2913bdb13026c4 | [
"MIT"
] | null | null | null | from lib.core.helpers import ModuleImport
imports = {"v1\.0": ModuleImport("apis.v1_0.urls")}
| 23.75 | 51 | 0.736842 | 14 | 95 | 4.928571 | 0.785714 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.094737 | 95 | 3 | 52 | 31.666667 | 0.755814 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
05ba3794bc0e23b5344f404c4660b97899046749 | 111 | py | Python | print_ops.py | cgsdfc/operator | 1e23aab962bb3613960702b66eb39d0fe5f10e06 | [
"MIT"
] | 2 | 2019-06-27T02:28:07.000Z | 2019-06-30T02:11:19.000Z | print_ops.py | cgsdfc/operator | 1e23aab962bb3613960702b66eb39d0fe5f10e06 | [
"MIT"
] | null | null | null | print_ops.py | cgsdfc/operator | 1e23aab962bb3613960702b66eb39d0fe5f10e06 | [
"MIT"
] | null | null | null | import operator
from pprint import pprint
names = dir(operator)
if __name__ == '__main__':
pprint(names)
| 13.875 | 26 | 0.72973 | 14 | 111 | 5.214286 | 0.642857 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18018 | 111 | 7 | 27 | 15.857143 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.4 | 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 |
05c6604a382a86bfe1e1129a037d444a7d262493 | 22 | py | Python | dogse/python/antchain_sdk_dog_test/__init__.py | sdk-team/antchain-openapi-prod-sdk | 4af1da6f11a2771e373f4a8904904427f06f1887 | [
"MIT"
] | null | null | null | dogse/python/antchain_sdk_dog_test/__init__.py | sdk-team/antchain-openapi-prod-sdk | 4af1da6f11a2771e373f4a8904904427f06f1887 | [
"MIT"
] | null | null | null | dogse/python/antchain_sdk_dog_test/__init__.py | sdk-team/antchain-openapi-prod-sdk | 4af1da6f11a2771e373f4a8904904427f06f1887 | [
"MIT"
] | null | null | null | __version__ = '1.1.23' | 22 | 22 | 0.681818 | 4 | 22 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.090909 | 22 | 1 | 22 | 22 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
05e7ce4a9357e481edc7e66fedb1259b6a6a5d93 | 260 | py | Python | models/__init__.py | Abhishek-Aditya-bs/Streaming-Spark-For-Machine-Learning | 76f9c97e66d6171bc83d1183fadc30bd492422a7 | [
"MIT"
] | 1 | 2021-12-10T13:14:53.000Z | 2021-12-10T13:14:53.000Z | models/__init__.py | iVishalr/SSML-spark-streaming-for-machine-learning | ba95a7d2d6bb15bacfbbf5b3c95317310b36d54f | [
"MIT"
] | null | null | null | models/__init__.py | iVishalr/SSML-spark-streaming-for-machine-learning | ba95a7d2d6bb15bacfbbf5b3c95317310b36d54f | [
"MIT"
] | null | null | null | from .MLP import MLP
from .svm import SVM
from .ann import ANN
from .kmeansClustering import Kmeans
from .deepImageMLP import DeepImageMLP
from .deepImageSVM import DeepImageSVM
from .deepImageFeaturizer import DeepImage
from .deepImageKmeans import DeepKmeans | 32.5 | 42 | 0.85 | 32 | 260 | 6.90625 | 0.40625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119231 | 260 | 8 | 43 | 32.5 | 0.965066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
af37acfda4b315866bd40675fa35cc85e59fd0fc | 486 | py | Python | dygraph/ppdet/modeling/__init__.py | syyxsxx/PaddleDetection | da0e1eed6472d492abc9db1db324569f9be62a5f | [
"Apache-2.0"
] | 2 | 2021-09-07T08:59:53.000Z | 2022-03-17T03:00:40.000Z | dygraph/ppdet/modeling/__init__.py | syyxsxx/PaddleDetection | da0e1eed6472d492abc9db1db324569f9be62a5f | [
"Apache-2.0"
] | null | null | null | dygraph/ppdet/modeling/__init__.py | syyxsxx/PaddleDetection | da0e1eed6472d492abc9db1db324569f9be62a5f | [
"Apache-2.0"
] | 1 | 2021-06-10T09:48:42.000Z | 2021-06-10T09:48:42.000Z | from . import ops
from . import bbox
from . import mask
from . import backbones
from . import necks
from . import heads
from . import losses
from . import architectures
from . import post_process
from . import layers
from . import utils
from .ops import *
from .bbox import *
from .mask import *
from .backbones import ... | 20.25 | 28 | 0.748971 | 68 | 486 | 5.323529 | 0.205882 | 0.303867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183128 | 486 | 23 | 29 | 21.130435 | 0.911839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 |
af45ff3cb9fd9d347e147e662a53b764aa58852c | 608 | py | Python | jesse/strategies/Test38/__init__.py | noenfugler/jesse | 217a3168620a755c1a9576d9deb27105db7dccf8 | [
"MIT"
] | 3,999 | 2018-11-09T10:38:51.000Z | 2022-03-31T12:29:12.000Z | jesse/strategies/Test38/__init__.py | noenfugler/jesse | 217a3168620a755c1a9576d9deb27105db7dccf8 | [
"MIT"
] | 172 | 2020-04-16T16:19:08.000Z | 2022-03-28T13:28:55.000Z | jesse/strategies/Test38/__init__.py | noenfugler/jesse | 217a3168620a755c1a9576d9deb27105db7dccf8 | [
"MIT"
] | 495 | 2019-03-01T21:48:53.000Z | 2022-03-30T15:35:19.000Z | from jesse.strategies import Strategy
# test_average_take_profit_exception
class Test38(Strategy):
def should_long(self) -> bool:
return self.index == 0
def should_short(self) -> bool:
return False
def go_long(self):
qty = 1
self.buy = qty, 2
self.stop_loss = qty,... | 20.965517 | 71 | 0.633224 | 82 | 608 | 4.5 | 0.487805 | 0.089431 | 0.138211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020882 | 0.291118 | 608 | 28 | 72 | 21.714286 | 0.835267 | 0.157895 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.055556 | 0.055556 | 0.277778 | 0.777778 | 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 |
af473677f6ca8e73947668d1a6fb837a7ffa12ed | 31 | py | Python | login.py | ChenJnHui/git_demo | f818b1dd2e36c1210857f2ca82c03a772deb11c8 | [
"MIT"
] | null | null | null | login.py | ChenJnHui/git_demo | f818b1dd2e36c1210857f2ca82c03a772deb11c8 | [
"MIT"
] | null | null | null | login.py | ChenJnHui/git_demo | f818b1dd2e36c1210857f2ca82c03a772deb11c8 | [
"MIT"
] | null | null | null | asdasdasd
asdasdasdsa
asdasd
| 5.166667 | 11 | 0.83871 | 3 | 31 | 8.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 31 | 5 | 12 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
af56de4497ade50be667a01643d4f79a84646e97 | 93 | py | Python | interactive/mechanism/apps.py | mattldawson/music-box-interactive | 6b2610b4f0f255f0e78e23628dc7ba6cc844d0f4 | [
"Apache-2.0"
] | 4 | 2020-07-20T17:18:51.000Z | 2022-03-17T19:08:24.000Z | interactive/mechanism/apps.py | mattldawson/music-box-interactive | 6b2610b4f0f255f0e78e23628dc7ba6cc844d0f4 | [
"Apache-2.0"
] | 174 | 2020-07-30T16:47:53.000Z | 2022-03-29T17:54:54.000Z | interactive/mechanism/apps.py | mattldawson/music-box-interactive | 6b2610b4f0f255f0e78e23628dc7ba6cc844d0f4 | [
"Apache-2.0"
] | 1 | 2021-01-05T22:42:55.000Z | 2021-01-05T22:42:55.000Z | from django.apps import AppConfig
class MechanismConfig(AppConfig):
name = 'mechanism'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
af7f1ded1897be10162ddcf1d243241fd7786382 | 1,698 | py | Python | tools/imports/shockabsorber/model/cast.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 49 | 2017-02-21T05:35:49.000Z | 2022-03-24T19:49:13.000Z | tools/imports/shockabsorber/model/cast.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 17 | 2017-02-23T08:59:51.000Z | 2019-05-10T03:02:42.000Z | tools/imports/shockabsorber/model/cast.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 11 | 2017-05-17T20:21:50.000Z | 2021-12-14T19:01:41.000Z | class CastLibraryTable: #------------------------------
def __init__(self, castlibs):
self.by_nr = {}
self.by_assoc_id = {}
for cl in castlibs:
self.by_nr[cl.nr] = cl
if cl.assoc_id>0:
self.by_assoc_id[cl.assoc_id] = cl
def iter_by_nr(self):
... | 36.913043 | 126 | 0.567138 | 217 | 1,698 | 4.119816 | 0.198157 | 0.184564 | 0.170022 | 0.102908 | 0.231544 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00236 | 0.251472 | 1,698 | 45 | 127 | 37.733333 | 0.701023 | 0.106007 | 0 | 0 | 0 | 0 | 0.02115 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.314286 | false | 0 | 0 | 0.171429 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
af7f4d8af83778a73414805fadc0ae843d4a6c07 | 364 | py | Python | fastdl/__init__.py | r-salas/fastdl | 8bb63c8b9cf87b0ae7987ffd4b3ae25816007b43 | [
"MIT"
] | 3 | 2021-08-25T09:47:41.000Z | 2021-09-27T03:05:00.000Z | fastdl/__init__.py | r-salas/fastdl | 8bb63c8b9cf87b0ae7987ffd4b3ae25816007b43 | [
"MIT"
] | null | null | null | fastdl/__init__.py | r-salas/fastdl | 8bb63c8b9cf87b0ae7987ffd4b3ae25816007b43 | [
"MIT"
] | 1 | 2021-09-27T03:05:10.000Z | 2021-09-27T03:05:10.000Z | from .__version__ import __version__, __author__, __url__, __license__, __description__
from . import utils # noqa: F401
from .config import conf # noqa: F401
from .extractor import extract_file # noqa: F401
from .downloader import download # noqa: F401
from .hasher import hash_file, validate_file # noqa: F401
f... | 36.4 | 87 | 0.771978 | 47 | 364 | 5.404255 | 0.446809 | 0.188976 | 0.23622 | 0.125984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059016 | 0.162088 | 364 | 9 | 88 | 40.444444 | 0.77377 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 |
af8edfa35d04a73bc66ed4878a8ac419b2a337fc | 134 | py | Python | student_management/students/api/throttling.py | nidhisha123/student-management | ef2df94d8daf29ed7b0b0e023d73ac2d8ec835c5 | [
"MIT"
] | null | null | null | student_management/students/api/throttling.py | nidhisha123/student-management | ef2df94d8daf29ed7b0b0e023d73ac2d8ec835c5 | [
"MIT"
] | 22 | 2021-12-15T23:24:09.000Z | 2022-03-31T23:26:33.000Z | student_management/students/api/throttling.py | nidhisha123/student-management | ef2df94d8daf29ed7b0b0e023d73ac2d8ec835c5 | [
"MIT"
] | null | null | null | from rest_framework.throttling import UserRateThrottle
class StudentDetailThrottling(UserRateThrottle):
scope = "student-detail" | 26.8 | 54 | 0.835821 | 12 | 134 | 9.25 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 134 | 5 | 55 | 26.8 | 0.925 | 0 | 0 | 0 | 0 | 0 | 0.103704 | 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 |
af918273cb0941b3f862e7b6f34758efc4d5c7ce | 299 | py | Python | main/break-numbers/break-numbers.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/break-numbers/break-numbers.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/break-numbers/break-numbers.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
def read_val():
return int(input())
def count_three_addend_decompositions(n):
# https://www.wolframalpha.com/input/?i=sum_k%3D0%5En+(n+-+k+%2B+1)
return (n + 1) * (n + 2) // 2
for _ in range(read_val()):
print(count_three_addend_decompositions(read_val()))
| 24.916667 | 71 | 0.665552 | 48 | 299 | 3.916667 | 0.645833 | 0.111702 | 0.170213 | 0.319149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.147157 | 299 | 11 | 72 | 27.181818 | 0.701961 | 0.29097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.166667 | 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 |
afa35a23ef98ce040ab2e39d40966f4dadc041f3 | 108 | py | Python | rideshare/rideshare_profile/apps.py | RideQuest/ridequest | a2f51d99109f9767c5d2abe7f6fb3f160e5212da | [
"MIT"
] | null | null | null | rideshare/rideshare_profile/apps.py | RideQuest/ridequest | a2f51d99109f9767c5d2abe7f6fb3f160e5212da | [
"MIT"
] | 12 | 2016-04-30T02:36:13.000Z | 2016-04-30T02:39:45.000Z | rideshare/rideshare_profile/apps.py | RideQuest/ridequest | a2f51d99109f9767c5d2abe7f6fb3f160e5212da | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RideshareProfileConfig(AppConfig):
name = 'rideshare_profile'
| 18 | 40 | 0.796296 | 11 | 108 | 7.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 108 | 5 | 41 | 21.6 | 0.913978 | 0 | 0 | 0 | 0 | 0 | 0.157407 | 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 |
bb6490997a8de45b640803f4c4967ad9580a3e15 | 174,397 | py | Python | unittests/test_process.py | Software-Factory-Labs/OpenPIVT | 9ee144076b870ef2bc2b23a41ae90d63b2f9081f | [
"Apache-2.0"
] | 1 | 2020-02-07T22:32:13.000Z | 2020-02-07T22:32:13.000Z | unittests/test_process.py | the-aerospace-corporation/pivt | 5f2ea999ee47b726ccf5bad4be984606901afb36 | [
"Apache-2.0"
] | 1 | 2020-04-30T14:41:54.000Z | 2020-04-30T14:41:54.000Z | unittests/test_process.py | the-aerospace-corporation/pivt | 5f2ea999ee47b726ccf5bad4be984606901afb36 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 The Aerospace Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 33.544335 | 290 | 0.56255 | 19,003 | 174,397 | 4.895227 | 0.038941 | 0.038184 | 0.009374 | 0.024327 | 0.81566 | 0.763384 | 0.720835 | 0.683566 | 0.645436 | 0.618099 | 0 | 0.018021 | 0.302849 | 174,397 | 5,198 | 291 | 33.550789 | 0.747099 | 0.006743 | 0 | 0.606286 | 0 | 0.001485 | 0.174546 | 0.056633 | 0 | 0 | 0 | 0.000385 | 0.08191 | 1 | 0.09948 | false | 0.009651 | 0.003959 | 0.002227 | 0.128681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bbad43026e4413699de8b53d21ce53ffe9a4ce2d | 70 | py | Python | waitlist/blueprints/api/fittings/blueprint.py | kimnnmadsen/eve-inc-waitlist | c3e4853c5563a95edbf105c11e73d481595fb3ab | [
"MIT"
] | null | null | null | waitlist/blueprints/api/fittings/blueprint.py | kimnnmadsen/eve-inc-waitlist | c3e4853c5563a95edbf105c11e73d481595fb3ab | [
"MIT"
] | 1 | 2020-02-18T05:11:20.000Z | 2020-02-18T05:29:10.000Z | waitlist/blueprints/api/fittings/blueprint.py | kimnnmadsen/eve-inc-waitlist | c3e4853c5563a95edbf105c11e73d481595fb3ab | [
"MIT"
] | null | null | null | from flask import Blueprint
bp = Blueprint('api_fittings', __name__)
| 17.5 | 40 | 0.785714 | 9 | 70 | 5.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 70 | 3 | 41 | 23.333333 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
bbae9cddd1a46d201d7326b9c52304b9ac769e60 | 181 | py | Python | optimism/test/testJaxConfig.py | btalamini/optimism | 023e1b2a0b137900a7517e4c7ac5056255cf7bbe | [
"MIT"
] | null | null | null | optimism/test/testJaxConfig.py | btalamini/optimism | 023e1b2a0b137900a7517e4c7ac5056255cf7bbe | [
"MIT"
] | 1 | 2022-03-12T00:01:12.000Z | 2022-03-12T00:01:12.000Z | optimism/test/testJaxConfig.py | btalamini/optimism | 023e1b2a0b137900a7517e4c7ac5056255cf7bbe | [
"MIT"
] | 3 | 2021-12-23T19:53:31.000Z | 2022-03-27T23:12:03.000Z | from optimism.JaxConfig import *
from optimism.test.TestFixture import *
class TestDebugIsOff(TestFixture):
def test_debug_if_off(self):
self.assertTrue(not jaxDebug)
| 22.625 | 39 | 0.767956 | 22 | 181 | 6.181818 | 0.727273 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154696 | 181 | 7 | 40 | 25.857143 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | 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 |
bbd22d0535b981da2ebb8a40ff270588b1d82203 | 174 | py | Python | wiki/forms.py | MariomcgeeArt/makewiki | 69226910b6c136ecd3277faa4095384336fef406 | [
"MIT"
] | null | null | null | wiki/forms.py | MariomcgeeArt/makewiki | 69226910b6c136ecd3277faa4095384336fef406 | [
"MIT"
] | 6 | 2020-06-06T01:51:57.000Z | 2022-02-10T11:26:02.000Z | wiki/forms.py | MariomcgeeArt/makewiki | 69226910b6c136ecd3277faa4095384336fef406 | [
"MIT"
] | null | null | null | from django import forms
from wiki.models import Page
class PageForm(forms.ModelForm):
class Meta:
model = Page
fields = ['title', 'author', 'content']
| 19.333333 | 47 | 0.655172 | 21 | 174 | 5.428571 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 174 | 8 | 48 | 21.75 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 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 |
bbe9d4f86ad71ae1a8da11868d53403988f897d5 | 997 | py | Python | pava/implementation/natives/sun/management/OperatingSystemImpl.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | 4 | 2017-03-30T16:51:16.000Z | 2020-10-05T12:25:47.000Z | pava/implementation/natives/sun/management/OperatingSystemImpl.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | null | null | null | pava/implementation/natives/sun/management/OperatingSystemImpl.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | null | null | null | def add_native_methods(clazz):
def getTotalSwapSpaceSize____(a0):
raise NotImplementedError()
def getFreeSwapSpaceSize____(a0):
raise NotImplementedError()
def getProcessCpuTime____(a0):
raise NotImplementedError()
def getFreePhysicalMemorySize____(a0):
raise NotImplem... | 32.16129 | 73 | 0.776329 | 61 | 997 | 11.278689 | 0.245902 | 0.071221 | 0.264535 | 0.252907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.171515 | 997 | 30 | 74 | 33.233333 | 0.824455 | 0 | 0 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bbf3dd2205a7a7f5b4ed1af44af8e62336f27a25 | 248 | py | Python | desafios/Ex002.py | FelipeAlafy/Python | da2374e55e8aa84e4ca6d9c7bf8dafeb546a4742 | [
"MIT"
] | null | null | null | desafios/Ex002.py | FelipeAlafy/Python | da2374e55e8aa84e4ca6d9c7bf8dafeb546a4742 | [
"MIT"
] | null | null | null | desafios/Ex002.py | FelipeAlafy/Python | da2374e55e8aa84e4ca6d9c7bf8dafeb546a4742 | [
"MIT"
] | null | null | null | dia = input("Em que dia você nasceu? ")
mes = input("Em que mês você nasceu? ")
ano = input("Em que ano você nasceu? ")
print("Você nasceu no dia \033[32m", dia, "\033[m no mês de \033[34m", mes, "\033[m e no ano de \033[33m", ano, "\033[m😆️😆️😆️")
| 49.6 | 127 | 0.612903 | 49 | 248 | 3.22449 | 0.387755 | 0.253165 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.177419 | 248 | 4 | 128 | 62 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0.657258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bbf4e04df68bdc02fd718db4669374fc11669974 | 7,866 | py | Python | tests/test_search_views.py | Kinto/kinto-algolia | f7bfdf795dc2073a69b7c31df1e650e2b51d05d7 | [
"Apache-2.0"
] | null | null | null | tests/test_search_views.py | Kinto/kinto-algolia | f7bfdf795dc2073a69b7c31df1e650e2b51d05d7 | [
"Apache-2.0"
] | 35 | 2018-04-11T15:14:42.000Z | 2021-06-25T15:18:04.000Z | tests/test_search_views.py | Kinto/kinto-algolia | f7bfdf795dc2073a69b7c31df1e650e2b51d05d7 | [
"Apache-2.0"
] | null | null | null | import unittest
from unittest import mock
from algoliasearch.exceptions import AlgoliaException
from kinto.core.testing import get_user_headers
from . import BaseWebTest
class SearchView(BaseWebTest, unittest.TestCase):
def setUp(self):
self.app.put("/buckets/bid", headers=self.headers)
self.app... | 46 | 98 | 0.627511 | 960 | 7,866 | 4.95625 | 0.164583 | 0.108659 | 0.124842 | 0.166456 | 0.742119 | 0.725725 | 0.702606 | 0.677806 | 0.638714 | 0.621269 | 0 | 0.012331 | 0.226799 | 7,866 | 170 | 99 | 46.270588 | 0.769977 | 0.338037 | 0 | 0.47619 | 0 | 0 | 0.242224 | 0.164463 | 0 | 0 | 0 | 0 | 0.059524 | 1 | 0.154762 | false | 0 | 0.059524 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a5259ebc7f918353a34189a75b2eb75858babbaf | 173 | py | Python | src/colorise/error.py | MisanthropicBit/colorise | c7a7e3d4b224e80f39761edfc10e5676b610ba41 | [
"BSD-3-Clause"
] | 2 | 2016-02-07T19:58:46.000Z | 2022-03-28T12:26:57.000Z | src/colorise/error.py | MisanthropicBit/colorise | c7a7e3d4b224e80f39761edfc10e5676b610ba41 | [
"BSD-3-Clause"
] | 5 | 2018-05-25T04:36:11.000Z | 2021-01-18T19:08:04.000Z | src/colorise/error.py | MisanthropicBit/colorise | c7a7e3d4b224e80f39761edfc10e5676b610ba41 | [
"BSD-3-Clause"
] | 2 | 2018-03-04T21:57:03.000Z | 2022-03-28T12:25:54.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Custom colorise exceptions."""
class NotSupportedError(Exception):
"""Raised when functionality is not supported."""
| 19.222222 | 53 | 0.676301 | 19 | 173 | 6.157895 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.144509 | 173 | 8 | 54 | 21.625 | 0.783784 | 0.65896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a527c83fa3ccf5cbfdf63ae4fb1d8ed50121da00 | 43 | py | Python | imutils/ml/optimizer/__init__.py | JacobARose/image-utils | aa0e005c0b4df5198d188b074f4e21f8d8f97962 | [
"MIT"
] | null | null | null | imutils/ml/optimizer/__init__.py | JacobARose/image-utils | aa0e005c0b4df5198d188b074f4e21f8d8f97962 | [
"MIT"
] | null | null | null | imutils/ml/optimizer/__init__.py | JacobARose/image-utils | aa0e005c0b4df5198d188b074f4e21f8d8f97962 | [
"MIT"
] | null | null | null | """
imutils/ml/optimizer/__init__.py
"""
| 7.166667 | 32 | 0.651163 | 5 | 43 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 43 | 5 | 33 | 8.6 | 0.631579 | 0.744186 | 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 |
a53a220e8b1a9ecb7ef773cdf896dcc1cac11f87 | 89 | py | Python | samples/generic/apps.py | falinwang/dj4e-samples | f55f021a2901195975a7375000e9f2b7564f82ad | [
"MIT"
] | null | null | null | samples/generic/apps.py | falinwang/dj4e-samples | f55f021a2901195975a7375000e9f2b7564f82ad | [
"MIT"
] | 5 | 2020-06-05T23:22:56.000Z | 2022-02-10T10:19:46.000Z | samples/generic/apps.py | falinwang/dj4e-samples | f55f021a2901195975a7375000e9f2b7564f82ad | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GenericConfig(AppConfig):
name = 'generic'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 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 |
a559e1b92a72fda3626b6284ff4891dda2fbf822 | 520 | py | Python | textacy/math_utils.py | ckot/textacy | b5d372650f22feae8e2d945d2ee1b8e1aa93441f | [
"Apache-2.0"
] | 2 | 2021-04-13T16:00:30.000Z | 2022-03-15T00:36:48.000Z | textacy/math_utils.py | ckot/textacy | b5d372650f22feae8e2d945d2ee1b8e1aa93441f | [
"Apache-2.0"
] | null | null | null | textacy/math_utils.py | ckot/textacy | b5d372650f22feae8e2d945d2ee1b8e1aa93441f | [
"Apache-2.0"
] | null | null | null | """
Set of small utility functions that do mathy stuff.
"""
from __future__ import division
import numpy as np
# TODO: make this module actually good and useful
# UPDATE: this module is still an orphan. Burton, get on it!
def cosine_similarity(vec1, vec2):
"""
Return the cosine similarity between two vector... | 21.666667 | 77 | 0.659615 | 72 | 520 | 4.694444 | 0.708333 | 0.059172 | 0.088757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.230769 | 520 | 23 | 78 | 22.608696 | 0.825 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a55c96a04bb04ebdcfd12e6f046c0ee15f77d69e | 181 | py | Python | src/livestreamer/packages/flashmedia/error.py | jaccarmac/livestreamer | ab80dbd6560f6f9835865b2fc9f9c6015aee5658 | [
"BSD-2-Clause",
"MIT"
] | 3,614 | 2015-01-01T08:07:27.000Z | 2022-03-20T00:31:07.000Z | src/livestreamer/packages/flashmedia/error.py | kviktor/livestreamer | ab80dbd6560f6f9835865b2fc9f9c6015aee5658 | [
"BSD-2-Clause",
"MIT"
] | 1,028 | 2015-01-02T03:38:38.000Z | 2021-08-06T16:17:48.000Z | src/livestreamer/packages/flashmedia/error.py | kviktor/livestreamer | ab80dbd6560f6f9835865b2fc9f9c6015aee5658 | [
"BSD-2-Clause",
"MIT"
] | 795 | 2015-01-02T06:12:04.000Z | 2022-03-27T23:41:53.000Z | #!/usr/bin/env python
class FLVError(Exception):
pass
class F4VError(Exception):
pass
class AMFError(Exception):
pass
__all__ = ["FLVError", "F4VError", "AMFError"]
| 13.923077 | 46 | 0.685083 | 20 | 181 | 6 | 0.55 | 0.325 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.176796 | 181 | 12 | 47 | 15.083333 | 0.791946 | 0.110497 | 0 | 0.428571 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.428571 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a583e3384501cd867af7c09558d58b254861daa2 | 168 | py | Python | my_classes/.history/ModulesPackages_PackageNamespaces/ImportingModules_20210725180951.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | my_classes/.history/ModulesPackages_PackageNamespaces/ImportingModules_20210725180951.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | my_classes/.history/ModulesPackages_PackageNamespaces/ImportingModules_20210725180951.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | """ Importing modules
When we run a statement such as
import fractions
what is python doing
The first thing to note is that Python
""" | 21 | 45 | 0.619048 | 23 | 168 | 4.521739 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.345238 | 168 | 8 | 46 | 21 | 0.945455 | 0.803571 | 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 |
a59ca8663434cc482993707d749a06bd34ddb9c9 | 97 | py | Python | profilesapi/apps.py | diyajaiswal11/Profile-rest-api | b5acbd97be7b1186c9ee9063a96efd1148419229 | [
"MIT"
] | 3 | 2020-06-04T05:22:39.000Z | 2020-09-23T19:44:07.000Z | profilesapi/apps.py | diyajaiswal11/Profile-rest-api | b5acbd97be7b1186c9ee9063a96efd1148419229 | [
"MIT"
] | null | null | null | profilesapi/apps.py | diyajaiswal11/Profile-rest-api | b5acbd97be7b1186c9ee9063a96efd1148419229 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ProfilesapiConfig(AppConfig):
name = 'profilesapi'
| 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 |
a5a5c8419e43a7a96e837a01dc1aa815921ceae8 | 495 | py | Python | tests/yodahelpers/hydratk/extensions/testenv/helpers.py | hydratk/hydratk-ext-testenv | 90eea9c460cc206781154cb541ed0fb8b2b292f3 | [
"BSD-3-Clause"
] | null | null | null | tests/yodahelpers/hydratk/extensions/testenv/helpers.py | hydratk/hydratk-ext-testenv | 90eea9c460cc206781154cb541ed0fb8b2b292f3 | [
"BSD-3-Clause"
] | null | null | null | tests/yodahelpers/hydratk/extensions/testenv/helpers.py | hydratk/hydratk-ext-testenv | 90eea9c460cc206781154cb541ed0fb8b2b292f3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""This code is part of TestEnv extension
.. module:: yodahelpers.testenv.helpers
:platform: Unix
:synopsis: TestEnv helpers
.. moduleauthor:: Petr Rašek <bowman@hydratk.org>
"""
from yodalib.hydratk.extensions.testenv.db_int import DB_INT as db
from yodalib.hydratk.extensions.testenv.r... | 33 | 72 | 0.781818 | 73 | 495 | 5.191781 | 0.438356 | 0.116095 | 0.189974 | 0.295515 | 0.369393 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002294 | 0.119192 | 495 | 14 | 73 | 35.357143 | 0.866972 | 0.406061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3c1ebe1880b5702bed7a1fc425a215730358e5af | 852 | py | Python | apps/admin/serializers/conference.py | panla/kesousou | df6751b0a2e8eeec5122418cd29fe1f99e23f39e | [
"MIT"
] | 1 | 2021-04-27T01:18:45.000Z | 2021-04-27T01:18:45.000Z | apps/admin/serializers/conference.py | panla/kesousou | df6751b0a2e8eeec5122418cd29fe1f99e23f39e | [
"MIT"
] | 5 | 2020-08-26T14:47:47.000Z | 2021-03-22T08:56:43.000Z | apps/custom/serializers/conference.py | panla/kesousou | df6751b0a2e8eeec5122418cd29fe1f99e23f39e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from model.models import Conference
class ConferenceListSerializer(serializers.ModelSerializer):
sponsors = serializers.ListField(required=False)
classifications = serializers.ListField(required=False)
class Meta:
model = Conference
fields = [
... | 29.37931 | 84 | 0.704225 | 72 | 852 | 8.263889 | 0.444444 | 0.235294 | 0.235294 | 0.277311 | 0.379832 | 0.379832 | 0.379832 | 0.379832 | 0.379832 | 0.379832 | 0 | 0 | 0.205399 | 852 | 28 | 85 | 30.428571 | 0.878877 | 0 | 0 | 0.380952 | 0 | 0 | 0.09507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.619048 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3c254cf982c779713820f4b14026e6d4d8af8e01 | 146 | py | Python | QCDAnalysis/Skimming/python/QCDHLT1jetPath_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | QCDAnalysis/Skimming/python/QCDHLT1jetPath_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | QCDAnalysis/Skimming/python/QCDHLT1jetPath_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
from QCDAnalysis.Skimming.QCDHLT1jetSkim_cfi import *
QCDHLT1jetSkimpath = cms.Path(QCDHLT1jetTrigger)
| 24.333333 | 53 | 0.849315 | 16 | 146 | 7.6875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.089041 | 146 | 5 | 54 | 29.2 | 0.902256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 |
3c2c7a626f57aef532ceed0db6bf40e89ce2bfef | 46 | py | Python | 000818CoursPyGusto/Coursera000818PyBasicsHSEw01TASK007_firstNum_20200508.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 000818CoursPyGusto/Coursera000818PyBasicsHSEw01TASK007_firstNum_20200508.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 000818CoursPyGusto/Coursera000818PyBasicsHSEw01TASK007_firstNum_20200508.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | firstNum = int(input())
print(firstNum // 10)
| 15.333333 | 23 | 0.673913 | 6 | 46 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.130435 | 46 | 2 | 24 | 23 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
3c7cea873f8d63f8786c51259ff90088d28bd244 | 179 | py | Python | Security/md5Rand.py | CicadaMikoto/Projects | ccc3de5184a8dc9fcd108c3ddbe6fd72d6aa380a | [
"MIT"
] | 1 | 2021-01-22T07:50:30.000Z | 2021-01-22T07:50:30.000Z | Security/md5Rand.py | CicadaMikoto/Projects | ccc3de5184a8dc9fcd108c3ddbe6fd72d6aa380a | [
"MIT"
] | null | null | null | Security/md5Rand.py | CicadaMikoto/Projects | ccc3de5184a8dc9fcd108c3ddbe6fd72d6aa380a | [
"MIT"
] | null | null | null | import string
import md5
for i in xrange(0,2000):
m = md5.new()
m.update('dfksdfkasdjfa' + str(i))
print str(m.hexdigest()) + ",program" + str(i) + "," + str(i) + "source"
| 19.888889 | 74 | 0.603352 | 28 | 179 | 3.857143 | 0.642857 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047945 | 0.184358 | 179 | 8 | 75 | 22.375 | 0.691781 | 0 | 0 | 0 | 0 | 0 | 0.156425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3c85dc9b0fc41db3b248270790497d5ecdfb6c5f | 174 | py | Python | venv/bin/django-admin.py | RodrigoMachado9/django-api | 65d61f5cd8e2ca4552af8d5bec9c862ce49b07b8 | [
"MIT"
] | 1 | 2020-06-29T21:14:43.000Z | 2020-06-29T21:14:43.000Z | venv/bin/django-admin.py | RodrigoMachado9/django_api | 65d61f5cd8e2ca4552af8d5bec9c862ce49b07b8 | [
"MIT"
] | 1 | 2020-06-22T01:54:45.000Z | 2020-06-22T01:54:45.000Z | venv/bin/django-admin.py | RodrigoMachado9/django_api | 65d61f5cd8e2ca4552af8d5bec9c862ce49b07b8 | [
"MIT"
] | null | null | null | #!/home/rmachado/PycharmProjects/pontos_turisticos/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 29 | 67 | 0.810345 | 21 | 174 | 6.142857 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.086207 | 174 | 5 | 68 | 34.8 | 0.805031 | 0.37931 | 0 | 0 | 0 | 0 | 0.074766 | 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 |
3c9755c0350ed6bc8db44ed80c5fbc23dcb16f67 | 22 | py | Python | aliyun-python-sdk-cloudphoto/aliyunsdkcloudphoto/__init__.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-cloudphoto/aliyunsdkcloudphoto/__init__.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-cloudphoto/aliyunsdkcloudphoto/__init__.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | __version__ = "1.1.19" | 22 | 22 | 0.681818 | 4 | 22 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.090909 | 22 | 1 | 22 | 22 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b1cbcff7705cd351504c5f7948aaebbb50f7ba6f | 246 | py | Python | ansys_corba/omniORB/COS/CosReference__POA/__init__.py | pyansys/ansys_corba | 91e4e66a48143c827f56cf1113145bb48d5f4d6a | [
"MIT"
] | 6 | 2021-04-26T09:25:48.000Z | 2022-03-26T05:09:38.000Z | ansys_corba/omniORB/COS/CosReference__POA/__init__.py | pyansys/ansys_corba | 91e4e66a48143c827f56cf1113145bb48d5f4d6a | [
"MIT"
] | 3 | 2022-03-14T08:17:21.000Z | 2022-03-17T20:07:23.000Z | ansys_corba/omniORB/COS/CosReference__POA/__init__.py | pyansys/pymapdl-corba | 91e4e66a48143c827f56cf1113145bb48d5f4d6a | [
"MIT"
] | 1 | 2020-11-11T11:10:19.000Z | 2020-11-11T11:10:19.000Z | # DO NOT EDIT THIS FILE!
#
# Python module CosReference__POA generated by omniidl
import omniORB
omniORB.updateModule("CosReference__POA")
# ** 1. Stub files contributing to this module
import CosReference_idl
# ** 2. Sub-modules
# ** 3. End
| 17.571429 | 54 | 0.747967 | 33 | 246 | 5.424242 | 0.787879 | 0.167598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.162602 | 246 | 13 | 55 | 18.923077 | 0.854369 | 0.601626 | 0 | 0 | 1 | 0 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b1ee38230915a65d7f1a3fb4afbac250cc50ae10 | 151 | py | Python | psyrun/tests/tasks/task_square_h5.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 2 | 2017-07-03T20:03:08.000Z | 2018-04-19T20:36:17.000Z | psyrun/tests/tasks/task_square_h5.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 67 | 2015-02-19T02:11:14.000Z | 2018-04-20T15:51:57.000Z | psyrun/tests/tasks/task_square_h5.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 1 | 2015-11-13T16:54:16.000Z | 2015-11-13T16:54:16.000Z | from psyrun import Param
from psyrun.store.h5 import H5Store
pspace = Param(x=range(4))
store = H5Store()
def execute(x):
return {'y': x ** 2}
| 13.727273 | 35 | 0.668874 | 24 | 151 | 4.208333 | 0.666667 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040984 | 0.192053 | 151 | 10 | 36 | 15.1 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
b1eee9447700dad420a5ef52a73e8993522ff99c | 111 | py | Python | PA6/sport.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | null | null | null | PA6/sport.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | null | null | null | PA6/sport.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | 1 | 2021-02-12T11:36:53.000Z | 2021-02-12T11:36:53.000Z | from dataclasses import dataclass, field, asdict
@dataclass(compare=True)
class Sport(object):
name: str
| 15.857143 | 48 | 0.756757 | 14 | 111 | 6 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153153 | 111 | 6 | 49 | 18.5 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5920a642019ecf310d062feef1490df676193336 | 84 | py | Python | code-snippet/python/src/com/codesnippet/ml/__init__.py | zhoujiagen/ml_hacks | 6e68e5227c472562f1c6330fba726a92bf4a7499 | [
"MIT"
] | null | null | null | code-snippet/python/src/com/codesnippet/ml/__init__.py | zhoujiagen/ml_hacks | 6e68e5227c472562f1c6330fba726a92bf4a7499 | [
"MIT"
] | null | null | null | code-snippet/python/src/com/codesnippet/ml/__init__.py | zhoujiagen/ml_hacks | 6e68e5227c472562f1c6330fba726a92bf4a7499 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: zhoujiagen
Created on 2020/8/21 5:14 PM
"""
| 9.333333 | 28 | 0.559524 | 13 | 84 | 3.615385 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 0.202381 | 84 | 8 | 29 | 10.5 | 0.537313 | 0.845238 | 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 |
3cc6c6f451673d8acff6f063ab61b3f8472ee9af | 121 | py | Python | zmonitor/views.py | ozelentok/ZMonitor | e203798025435cfa4c9f5bc65568c6fea161088e | [
"MIT"
] | null | null | null | zmonitor/views.py | ozelentok/ZMonitor | e203798025435cfa4c9f5bc65568c6fea161088e | [
"MIT"
] | null | null | null | zmonitor/views.py | ozelentok/ZMonitor | e203798025435cfa4c9f5bc65568c6fea161088e | [
"MIT"
] | null | null | null | from django.views import generic
class MonitorView(generic.TemplateView):
template_name = 'zmonitor/zmonitor.html'
| 20.166667 | 44 | 0.793388 | 14 | 121 | 6.785714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123967 | 121 | 5 | 45 | 24.2 | 0.896226 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.181818 | 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 |
a702f721396f5b4abf01c9d77f476b58f2b0e4e5 | 49 | py | Python | aws_profile_manager/rotate_keys/__init__.py | 99stealth/aws-profile-switcher | bd8f27a31d1dfeb22cd57c00ee196f72cc753ba1 | [
"MIT"
] | 31 | 2020-04-01T09:05:23.000Z | 2020-09-30T16:27:18.000Z | aws_profile_manager/rotate_keys/__init__.py | 99stealth/aws-profile-switcher | bd8f27a31d1dfeb22cd57c00ee196f72cc753ba1 | [
"MIT"
] | 1 | 2020-04-01T13:25:09.000Z | 2020-04-04T12:38:20.000Z | aws_profile_manager/rotate_keys/__init__.py | 99stealth/aws-profile-switcher | bd8f27a31d1dfeb22cd57c00ee196f72cc753ba1 | [
"MIT"
] | 1 | 2020-05-26T09:55:07.000Z | 2020-05-26T09:55:07.000Z | from .rotate import Rotate
__all__ = ('Rotate',) | 16.333333 | 26 | 0.714286 | 6 | 49 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 49 | 3 | 27 | 16.333333 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0.12 | 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 |
a709d0ebc17b6c51bbc27a5be7395b52a7c8db39 | 208 | py | Python | Three_Part_Moudule/Selenium/test.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 2 | 2019-01-24T15:06:59.000Z | 2019-01-25T07:34:45.000Z | Three_Part_Moudule/Selenium/test.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 1 | 2019-12-23T09:45:11.000Z | 2019-12-23T09:45:11.000Z | Three_Part_Moudule/Selenium/test.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 1 | 2019-07-18T14:21:35.000Z | 2019-07-18T14:21:35.000Z | from selenium import webdriver
import time
driver = webdriver.Chrome(executable_path="/home/alex/Downloads/SoftWare/chromedriver/chromedriver")
# driver = webdriver.Chrome()
driver.get('https://python.org')
| 29.714286 | 100 | 0.798077 | 25 | 208 | 6.6 | 0.72 | 0.181818 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072115 | 208 | 6 | 101 | 34.666667 | 0.854922 | 0.129808 | 0 | 0 | 0 | 0 | 0.407821 | 0.307263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a72345742b2ee3e0f3fc56e5055b67bd3a67592d | 28 | py | Python | app/api/api_v1/endpoints/__init__.py | fergusdixon/fastapi-example | 9e47e6f26dd5db86882f11b9e8eac0971925c019 | [
"MIT"
] | null | null | null | app/api/api_v1/endpoints/__init__.py | fergusdixon/fastapi-example | 9e47e6f26dd5db86882f11b9e8eac0971925c019 | [
"MIT"
] | null | null | null | app/api/api_v1/endpoints/__init__.py | fergusdixon/fastapi-example | 9e47e6f26dd5db86882f11b9e8eac0971925c019 | [
"MIT"
] | null | null | null | """Routes for V1 router."""
| 14 | 27 | 0.607143 | 4 | 28 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.142857 | 28 | 1 | 28 | 28 | 0.666667 | 0.75 | 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 |
5951a652a18ecb7114615b274d58a3247f57a8b0 | 202 | py | Python | cached_contingency/__init__.py | MrTomRod/cached-contingency | 951431218c47ed246ba1fb655b581a99a5cfde00 | [
"MIT"
] | null | null | null | cached_contingency/__init__.py | MrTomRod/cached-contingency | 951431218c47ed246ba1fb655b581a99a5cfde00 | [
"MIT"
] | null | null | null | cached_contingency/__init__.py | MrTomRod/cached-contingency | 951431218c47ed246ba1fb655b581a99a5cfde00 | [
"MIT"
] | null | null | null | from .KeyValueStore import KeyValueStore
from .CachedContingency import CachedContingency
from .CachedBoschloo import CachedBoschloo
from .CachedFisher import CachedFisher
from .utils import odds_ratio
| 33.666667 | 48 | 0.876238 | 21 | 202 | 8.380952 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 202 | 5 | 49 | 40.4 | 0.967033 | 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 |
595cab70a4b4bb151be060156881ac34eb2ca9ac | 166 | py | Python | test/integration/assets/mock_data/fixture_beaxy.py | vinhtran91/beaxy-bot | b07cc148f7eeea11694c762be8933b19d8167bd1 | [
"Apache-2.0"
] | 2 | 2020-08-09T18:08:17.000Z | 2020-11-19T03:21:31.000Z | test/integration/assets/mock_data/fixture_beaxy.py | vinhtran91/beaxy-bot | b07cc148f7eeea11694c762be8933b19d8167bd1 | [
"Apache-2.0"
] | null | null | null | test/integration/assets/mock_data/fixture_beaxy.py | vinhtran91/beaxy-bot | b07cc148f7eeea11694c762be8933b19d8167bd1 | [
"Apache-2.0"
] | 1 | 2020-09-07T14:16:46.000Z | 2020-09-07T14:16:46.000Z | import json
class FixtureBeaxy:
TRADE_WS_DATA = json.dumps({"symbol": "BTCUSDC", "price": 9462.28, "size": 0.001, "side": "SELL", "timestamp": 1590694156771})
| 23.714286 | 130 | 0.668675 | 21 | 166 | 5.190476 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160839 | 0.138554 | 166 | 6 | 131 | 27.666667 | 0.601399 | 0 | 0 | 0 | 0 | 0 | 0.23494 | 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 |
59b1afab7d18063ead94ae87e9b184d2f1ffd209 | 528 | py | Python | layers/poky/meta-selftest/lib/oeqa/selftest/cases/external-layer.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 53 | 2018-02-28T08:51:32.000Z | 2022-02-28T06:49:23.000Z | layers/poky/meta-selftest/lib/oeqa/selftest/cases/external-layer.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 27 | 2018-01-25T00:26:53.000Z | 2020-08-09T05:20:04.000Z | layers/poky/meta-selftest/lib/oeqa/selftest/cases/external-layer.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 51 | 2018-02-21T04:46:08.000Z | 2022-03-02T04:20:41.000Z | #from oeqa.selftest.base import oeSelfTest
from oeqa.selftest.case import OESelftestTestCase
#from oeqa.utils.decorators import testcase
class ImportedTests(OESelftestTestCase):
def test_unconditional_pass(self):
"""
Summary: Doesn't check anything, used to check import test from other layers.
... | 31.058824 | 85 | 0.708333 | 63 | 528 | 5.904762 | 0.698413 | 0.064516 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00241 | 0.214015 | 528 | 16 | 86 | 33 | 0.893976 | 0.49053 | 0 | 0 | 0 | 0 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0.25 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
ab79e6da8c3175ede93b3cfd1ecdeb15c18e931d | 354 | py | Python | pycryptax/util.py | mgalushka/PyCryptax | 246117c011a8e9699e178435395a4a38ea024fb5 | [
"MIT"
] | 8 | 2020-02-10T00:36:52.000Z | 2021-10-10T22:57:57.000Z | pycryptax/util.py | mgalushka/PyCryptax | 246117c011a8e9699e178435395a4a38ea024fb5 | [
"MIT"
] | null | null | null | pycryptax/util.py | mgalushka/PyCryptax | 246117c011a8e9699e178435395a4a38ea024fb5 | [
"MIT"
] | 1 | 2021-11-06T18:08:54.000Z | 2021-11-06T18:08:54.000Z | import datetime, copy
def dateFromString(s):
try:
return datetime.datetime.strptime(s, "%Y-%m-%d")
except ValueError:
return datetime.datetime.strptime(s, "%d %b %Y")
def getPrettyDate(d):
return d.strftime("%d/%m/%Y")
def addToDictKey(d, k, v):
if k in d:
d[k] += v
else:... | 18.631579 | 56 | 0.576271 | 52 | 354 | 3.923077 | 0.461538 | 0.029412 | 0.215686 | 0.294118 | 0.303922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259887 | 354 | 18 | 57 | 19.666667 | 0.778626 | 0 | 0 | 0 | 0 | 0 | 0.067989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.538462 | 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 | 0 | 1 | 0 | 0 | 4 |
ab8bd73c745defb8cd11256f2293b4136ccae44c | 162 | py | Python | rekcurd/console_scripts/errors.py | rekcurd/rekcurd-python | 71e1ecd1f7bf8394563e682308fa7b404492e6da | [
"Apache-2.0"
] | 22 | 2019-03-07T12:04:55.000Z | 2020-08-18T12:34:46.000Z | rekcurd/console_scripts/errors.py | rekcurd/python-rekcurd | 71e1ecd1f7bf8394563e682308fa7b404492e6da | [
"Apache-2.0"
] | 69 | 2019-02-01T05:53:28.000Z | 2022-03-15T19:14:20.000Z | rekcurd/console_scripts/errors.py | rekcurd/python-rekcurd | 71e1ecd1f7bf8394563e682308fa7b404492e6da | [
"Apache-2.0"
] | 8 | 2020-03-05T12:39:52.000Z | 2022-01-26T10:34:21.000Z | # -*- coding: utf-8 -*-
class CommandError(Exception):
"""
Exception class indicating a problem while executing a console
scripts.
"""
pass
| 16.2 | 66 | 0.623457 | 17 | 162 | 5.941176 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.259259 | 162 | 9 | 67 | 18 | 0.833333 | 0.580247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
abafcc968dc4d82e14329fcff78592be69107073 | 76 | py | Python | 6 kyu/Arraydiff.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Arraydiff.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Arraydiff.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def array_diff(a, b):
return [int for int in a if int not in b]
| 25.333333 | 45 | 0.578947 | 16 | 76 | 2.6875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.342105 | 76 | 3 | 46 | 25.333333 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 4 |
abcb51f8a5f3341d1194307425df0991c7aa9931 | 11,167 | py | Python | RUM.py | jingli9111/RUM-Tensorflow | 6a2fec4ee36a44e8d54f5a25493d2202bc43166a | [
"MIT"
] | 29 | 2018-01-07T05:36:42.000Z | 2021-06-14T20:02:14.000Z | RUM.py | jingli9111/RUM | 6a2fec4ee36a44e8d54f5a25493d2202bc43166a | [
"MIT"
] | 1 | 2018-06-29T02:59:45.000Z | 2018-07-29T04:56:13.000Z | RUM.py | ekcole/RUM-Tensorflow | 6a2fec4ee36a44e8d54f5a25493d2202bc43166a | [
"MIT"
] | 9 | 2018-03-02T21:19:38.000Z | 2020-06-30T13:52:32.000Z | #
import tensorflow as tf
import numpy as np
import auxiliary as aux
from termcolor import colored
from tensorflow.python.util.tf_export import tf_export
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import init_ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import... | 34.896875 | 128 | 0.696875 | 1,760 | 11,167 | 4.183523 | 0.122159 | 0.065191 | 0.057042 | 0.022002 | 0.769931 | 0.731903 | 0.709901 | 0.690887 | 0.66549 | 0.637784 | 0 | 0.019301 | 0.188054 | 11,167 | 320 | 129 | 34.896875 | 0.792765 | 0.228978 | 0 | 0.70283 | 0 | 0 | 0.005508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061321 | false | 0 | 0.056604 | 0.018868 | 0.179245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
abd9b76fb74b0c304c6d54275452d1b621067430 | 664 | py | Python | Kelas Rabu/Nilai Hash/1310651134 Dharma/1134_dharma.py | umjembersoft/TI20151-Keamanan-Komputer | 6e8a4e75fafa59149f5e96b71eb83de935642c38 | [
"MIT"
] | null | null | null | Kelas Rabu/Nilai Hash/1310651134 Dharma/1134_dharma.py | umjembersoft/TI20151-Keamanan-Komputer | 6e8a4e75fafa59149f5e96b71eb83de935642c38 | [
"MIT"
] | null | null | null | Kelas Rabu/Nilai Hash/1310651134 Dharma/1134_dharma.py | umjembersoft/TI20151-Keamanan-Komputer | 6e8a4e75fafa59149f5e96b71eb83de935642c38 | [
"MIT"
] | null | null | null | __author__ = 'Dharma Trias Brata Swasono'
import hashlib
print
print "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
print("Program Sederhana Untuk Melakukan Generate Terhadap Nilai Hash dari MD5")
print "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
pr... | 27.666667 | 98 | 0.578313 | 68 | 664 | 5.573529 | 0.573529 | 0.105541 | 0.084433 | 0.121372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031621 | 0.237952 | 664 | 23 | 99 | 28.869565 | 0.717391 | 0.112952 | 0 | 0.357143 | 1 | 0.142857 | 0.613288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2806c24584eab63acd8af9533ca5401acc6c7c3d | 363 | py | Python | app/server/admin.py | SigmaNewsVenturesGroupLtd/doccano | c6ca1e8c17291ad42ef97aae4c0b45c7d322af34 | [
"MIT"
] | 2 | 2021-03-24T07:42:24.000Z | 2021-05-17T09:35:31.000Z | app/server/admin.py | SigmaNewsVenturesGroupLtd/doccano | c6ca1e8c17291ad42ef97aae4c0b45c7d322af34 | [
"MIT"
] | 94 | 2020-01-15T07:26:36.000Z | 2021-07-27T05:54:10.000Z | app/server/admin.py | SigmaNewsVenturesGroupLtd/doccano | c6ca1e8c17291ad42ef97aae4c0b45c7d322af34 | [
"MIT"
] | 2 | 2020-01-30T10:05:09.000Z | 2020-08-07T23:52:46.000Z | from django.contrib import admin
from .models import Label, Document, Project
from .models import DocumentAnnotation, SequenceAnnotation, Seq2seqAnnotation
admin.site.register(DocumentAnnotation)
admin.site.register(SequenceAnnotation)
admin.site.register(Seq2seqAnnotation)
admin.site.register(Label)
admin.site.regis... | 30.25 | 77 | 0.848485 | 41 | 363 | 7.512195 | 0.341463 | 0.175325 | 0.331169 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0059 | 0.066116 | 363 | 11 | 78 | 33 | 0.902655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e602d02bd47c2566e482d012031b4cf2dd7f115a | 168 | py | Python | diagram.py | Open-Harvest/CallForCode2021 | 122e935dc7e133c08e34eda5865d5f750e459deb | [
"Apache-2.0"
] | 2 | 2021-07-06T18:48:24.000Z | 2021-11-08T09:33:47.000Z | diagram.py | Philipsty/CallForCode2021 | 122e935dc7e133c08e34eda5865d5f750e459deb | [
"Apache-2.0"
] | 20 | 2021-06-09T02:12:52.000Z | 2021-06-18T04:53:30.000Z | diagram.py | Philipsty/CallForCode2021 | 122e935dc7e133c08e34eda5865d5f750e459deb | [
"Apache-2.0"
] | 1 | 2021-06-15T02:22:16.000Z | 2021-06-15T02:22:16.000Z | from diagrams import Diagram, Cluster
from diagrams.ibm.general import Cloudant
with Diagram("Open Harvest", show=True, direction="TB"):
with Cluster("Backend"):
| 24 | 56 | 0.755952 | 22 | 168 | 5.772727 | 0.727273 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 168 | 6 | 57 | 28 | 0.869863 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | 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 |
e62ac222ff9182649f0f6094c7eb17b738214fe3 | 68 | py | Python | Eager/tests/samples/policy1.py | UCSB-CS-RACELab/eager-appscale | d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d | [
"Apache-2.0"
] | 3 | 2016-06-12T01:18:49.000Z | 2018-07-16T18:20:23.000Z | Eager/tests/samples/policy1.py | UCSB-CS-RACELab/eager-appscale | d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d | [
"Apache-2.0"
] | null | null | null | Eager/tests/samples/policy1.py | UCSB-CS-RACELab/eager-appscale | d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d | [
"Apache-2.0"
] | 1 | 2020-05-25T02:59:15.000Z | 2020-05-25T02:59:15.000Z | """
This is a comment.
"""
assert_app_dependency(app, 'Foo', '1.0') | 13.6 | 40 | 0.632353 | 11 | 68 | 3.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.132353 | 68 | 5 | 40 | 13.6 | 0.661017 | 0.264706 | 0 | 0 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
052555af2d28f4ca391968946dba864020a83949 | 515 | py | Python | tests/mocks.py | jmuddappa/DeepClassificationBot | 70aaa6787cf02e8a6b49a913af6496bc0f288b35 | [
"MIT"
] | null | null | null | tests/mocks.py | jmuddappa/DeepClassificationBot | 70aaa6787cf02e8a6b49a913af6496bc0f288b35 | [
"MIT"
] | null | null | null | tests/mocks.py | jmuddappa/DeepClassificationBot | 70aaa6787cf02e8a6b49a913af6496bc0f288b35 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import collections
from functools import partial
from StringIO import StringIO
import json
def mock_get(content):
def _mock_get(*args, **kwargs):
return MockResponse(content)
return _mock_get
class MockResponse(collections.namedtuple('Response', 'content')):
def iter_cont... | 22.391304 | 73 | 0.68932 | 64 | 515 | 5.421875 | 0.46875 | 0.060519 | 0.057637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.196117 | 515 | 22 | 74 | 23.409091 | 0.833333 | 0.040777 | 0 | 0 | 0 | 0 | 0.030488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.066667 | 0.266667 | 0.2 | 0.933333 | 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 |
0548c9c1eb7135b7894549d630bf31c91b96ea86 | 20 | py | Python | src/test/resources/files/caretAfterString_after.py | rendner/py-prefix-fstring-plugin | c2e2ca7cca1b3833e988543fda5bce05c6860309 | [
"MIT"
] | null | null | null | src/test/resources/files/caretAfterString_after.py | rendner/py-prefix-fstring-plugin | c2e2ca7cca1b3833e988543fda5bce05c6860309 | [
"MIT"
] | null | null | null | src/test/resources/files/caretAfterString_after.py | rendner/py-prefix-fstring-plugin | c2e2ca7cca1b3833e988543fda5bce05c6860309 | [
"MIT"
] | 1 | 2021-05-24T09:32:06.000Z | 2021-05-24T09:32:06.000Z | x = f'test {'<caret> | 20 | 20 | 0.55 | 4 | 20 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0557a132cfe7715d80692fa19eb494fb7ba5c3d8 | 2,638 | py | Python | components/ability.py | averyhiebert/vim-roguelike-challenge | 3decdc13ffcbdc893493c6d454e5ecaffb07094e | [
"Vim",
"MIT"
] | null | null | null | components/ability.py | averyhiebert/vim-roguelike-challenge | 3decdc13ffcbdc893493c6d454e5ecaffb07094e | [
"Vim",
"MIT"
] | null | null | null | components/ability.py | averyhiebert/vim-roguelike-challenge | 3decdc13ffcbdc893493c6d454e5ecaffb07094e | [
"Vim",
"MIT"
] | null | null | null | """
Basic architectural idea:
Actors (basically just the player) can have "intrinsic" Abilities.
Additionally, Items can have abilities.
An actor has access to the abilities of any items that they have equipped
in their inventory, in addition to any "intrinsic" abilities that they have.
In general, when the player ... | 33.392405 | 77 | 0.700531 | 346 | 2,638 | 5.268786 | 0.433526 | 0.093253 | 0.032913 | 0.057049 | 0.179923 | 0.179923 | 0.164015 | 0.122326 | 0.054855 | 0 | 0 | 0.002947 | 0.228203 | 2,638 | 78 | 78 | 33.820513 | 0.892436 | 0.537908 | 0 | 0.344828 | 0 | 0 | 0.023572 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.310345 | false | 0 | 0.103448 | 0.172414 | 0.793103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.