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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
99a32f5360d3c389c674b3d0be566cf04d970ed0 | 92 | py | Python | moment/apps.py | PPER/Webgame | 7ee8e9b980b80bf107bf8549e62ff036f1e36822 | [
"MIT"
] | null | null | null | moment/apps.py | PPER/Webgame | 7ee8e9b980b80bf107bf8549e62ff036f1e36822 | [
"MIT"
] | null | null | null | moment/apps.py | PPER/Webgame | 7ee8e9b980b80bf107bf8549e62ff036f1e36822 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MomentConfig(AppConfig):
name = 'moment'
| 15.333333 | 34 | 0.706522 | 10 | 92 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 92 | 5 | 35 | 18.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 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 |
99a39aa76405832632d52e839dadfb09d1cce0a5 | 248 | py | Python | week2/quadrado.py | jotavev/usp-computer-science-python | 82aaa410f245e339c25e4a2b1a61e410259d0f8c | [
"MIT"
] | 1 | 2020-06-10T03:39:07.000Z | 2020-06-10T03:39:07.000Z | week2/quadrado.py | jotavev/usp-computer-science-python | 82aaa410f245e339c25e4a2b1a61e410259d0f8c | [
"MIT"
] | null | null | null | week2/quadrado.py | jotavev/usp-computer-science-python | 82aaa410f245e339c25e4a2b1a61e410259d0f8c | [
"MIT"
] | null | null | null | Lado_do_Quadrado = int(input('Digite o valor correspondente ao lado de um quadrado: '))
Perimetro_do_Quadrado = Lado_do_Quadrado * 4
Area_do_Quadrado = Lado_do_Quadrado ** 2
print(f'perímetro: {Perimetro_do_Quadrado} - área: {Area_do_Quadrado}')
| 35.428571 | 87 | 0.78629 | 38 | 248 | 4.763158 | 0.526316 | 0.38674 | 0.232044 | 0.176796 | 0.265193 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.116935 | 248 | 6 | 88 | 41.333333 | 0.817352 | 0 | 0 | 0 | 0 | 0 | 0.46371 | 0.092742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
41d6efd3a7a484d0b8f87178233c289eeaec240c | 957 | py | Python | billing/models/amazon_fps_models.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | 1 | 2020-12-27T18:43:25.000Z | 2020-12-27T18:43:25.000Z | billing/models/amazon_fps_models.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | null | null | null | billing/models/amazon_fps_models.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
class AmazonFPSResponse(models.Model):
buyerEmail = models.EmailField()
buyerName = models.CharField(max_length=75)
callerReference = models.CharField(max_length=100)
notificationType = models.CharField(max_length=50)
operation = models.CharField(max_length=20)
paym... | 38.28 | 66 | 0.735632 | 106 | 957 | 6.45283 | 0.481132 | 0.219298 | 0.263158 | 0.350877 | 0.304094 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026185 | 0.161964 | 957 | 24 | 67 | 39.875 | 0.826683 | 0.031348 | 0 | 0 | 0 | 0 | 0.008649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0.05 | 0.95 | 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 |
41e553910c0e27ea8236591cbfa107f13ccca21c | 196 | py | Python | pydsa/tests/test_selection_sort.py | mish24/pydsa | 422db76d77503fb60af3d9a712ceab0a02f668cf | [
"BSD-3-Clause"
] | null | null | null | pydsa/tests/test_selection_sort.py | mish24/pydsa | 422db76d77503fb60af3d9a712ceab0a02f668cf | [
"BSD-3-Clause"
] | null | null | null | pydsa/tests/test_selection_sort.py | mish24/pydsa | 422db76d77503fb60af3d9a712ceab0a02f668cf | [
"BSD-3-Clause"
] | 3 | 2017-03-14T14:00:03.000Z | 2019-09-19T06:22:14.000Z | from pydsa.selection_sort import selection_sort
from random import randint
def test_selection_sort():
a = b = [randint(1, 100) for i in range(100)]
assert selection_sort(a) == sorted(b)
| 24.5 | 49 | 0.729592 | 31 | 196 | 4.451613 | 0.612903 | 0.376812 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04321 | 0.173469 | 196 | 7 | 50 | 28 | 0.808642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
41e5e6eaf0866b04c94eefcf16ac63e58e42f0d6 | 465 | py | Python | src/dimstore/providers/persistor/persistor_base.py | neoworth/dimstore | d00243f7af4759f3a1d90e68325172330c649f20 | [
"MIT"
] | 4 | 2020-05-01T15:50:11.000Z | 2021-04-15T17:52:42.000Z | src/dimstore/providers/persistor/persistor_base.py | neoworth/dimstore | d00243f7af4759f3a1d90e68325172330c649f20 | [
"MIT"
] | null | null | null | src/dimstore/providers/persistor/persistor_base.py | neoworth/dimstore | d00243f7af4759f3a1d90e68325172330c649f20 | [
"MIT"
] | 1 | 2021-05-12T17:46:48.000Z | 2021-05-12T17:46:48.000Z | """
persistor base class
"""
class PersistorBase():
def __init__(self):
pass
def write(self, feature, dumps, **kwargs):
raise NotImplementedError("Persistor write method implementation error!")
def read(self, uid, **kwargs):
raise NotImplementedError("Persistor read method... | 29.0625 | 82 | 0.67957 | 46 | 465 | 6.782609 | 0.434783 | 0.105769 | 0.288462 | 0.375 | 0.294872 | 0.294872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215054 | 465 | 16 | 82 | 29.0625 | 0.854795 | 0.043011 | 0 | 0 | 0 | 0 | 0.304147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.111111 | 0 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
41f7fdf91e8f4eeaacc887070e235e6a208612b0 | 129 | py | Python | cryptofeed_werks/views/__init__.py | globophobe/django-cryptofeed-werks | dd7c04189a0d1582b115298fbe44cf1e0cb969f2 | [
"MIT"
] | 7 | 2021-12-30T02:38:17.000Z | 2022-03-08T16:14:35.000Z | cryptofeed_werks/views/__init__.py | globophobe/django-cryptofeed-werks | dd7c04189a0d1582b115298fbe44cf1e0cb969f2 | [
"MIT"
] | null | null | null | cryptofeed_werks/views/__init__.py | globophobe/django-cryptofeed-werks | dd7c04189a0d1582b115298fbe44cf1e0cb969f2 | [
"MIT"
] | 1 | 2022-01-28T00:18:45.000Z | 2022-01-28T00:18:45.000Z | from .convert_to_hourly import ConvertToHourlyView
from .trades import TradeView
__all__ = ["TradeView", "ConvertToHourlyView"]
| 25.8 | 50 | 0.821705 | 13 | 129 | 7.692308 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 129 | 4 | 51 | 32.25 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.217054 | 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 |
5109136875d21f958bc2749b3db6d840be762c47 | 1,200 | py | Python | Bio/Alphabet/__init__.py | lukasz-kozlowski/biopython | 6b601cf09234e1e82cfc94ad5030389036cb6343 | [
"BSD-3-Clause"
] | 2,856 | 2015-01-01T07:10:06.000Z | 2022-03-31T18:17:25.000Z | Bio/Alphabet/__init__.py | lukasz-kozlowski/biopython | 6b601cf09234e1e82cfc94ad5030389036cb6343 | [
"BSD-3-Clause"
] | 3,429 | 2015-01-05T11:11:42.000Z | 2022-03-31T13:08:10.000Z | Bio/Alphabet/__init__.py | lukasz-kozlowski/biopython | 6b601cf09234e1e82cfc94ad5030389036cb6343 | [
"BSD-3-Clause"
] | 1,619 | 2015-01-05T13:07:11.000Z | 2022-03-31T19:19:52.000Z | # Copyright 2000-2002 by Andrew Dalke.
# Revisions copyright 2007-2010 by Peter Cock.
# All rights reserved.
#
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that should have been included ... | 52.173913 | 325 | 0.789167 | 186 | 1,200 | 5.086022 | 0.591398 | 0.028541 | 0.029598 | 0.046512 | 0.086681 | 0.086681 | 0.086681 | 0.086681 | 0 | 0 | 0 | 0.019724 | 0.155 | 1,200 | 22 | 326 | 54.545455 | 0.913215 | 0.690833 | 0 | 0 | 0 | 0.333333 | 0.893557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
51314ca2e1feee7cf045e224008c1d84d323ef02 | 112 | py | Python | src/AntTrail/AntBase.py | andoryu/ants | 1a93210ff63deebd1aaf4d7fb09c5f8ce90544bd | [
"MIT"
] | null | null | null | src/AntTrail/AntBase.py | andoryu/ants | 1a93210ff63deebd1aaf4d7fb09c5f8ce90544bd | [
"MIT"
] | null | null | null | src/AntTrail/AntBase.py | andoryu/ants | 1a93210ff63deebd1aaf4d7fb09c5f8ce90544bd | [
"MIT"
] | null | null | null | from enum import Enum, auto
class Action(Enum):
ADVANCE = auto()
ROT_CCW = auto()
ROT_CW = auto()
| 16 | 27 | 0.616071 | 16 | 112 | 4.1875 | 0.625 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267857 | 112 | 6 | 28 | 18.666667 | 0.817073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
51374a34f3fb9f784fc5fe0c8bab325c8611e7b9 | 358 | py | Python | main.py | szymonbultrowicz/esp32-soil-moisture-sensor | 2615e72f51d8328b949b23fded34c39f4a201472 | [
"MIT"
] | null | null | null | main.py | szymonbultrowicz/esp32-soil-moisture-sensor | 2615e72f51d8328b949b23fded34c39f4a201472 | [
"MIT"
] | null | null | null | main.py | szymonbultrowicz/esp32-soil-moisture-sensor | 2615e72f51d8328b949b23fded34c39f4a201472 | [
"MIT"
] | null | null | null | import machine
from app.updater import updater
from app.wlan import connect
def download_and_install_update_if_available():
if updater.install_update_if_available():
print('Rebooting...')
machine.reset()
def boot():
connect()
download_and_install_update_if_available()
from app import... | 18.842105 | 47 | 0.72067 | 47 | 358 | 5.212766 | 0.425532 | 0.085714 | 0.183673 | 0.293878 | 0.285714 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192737 | 358 | 18 | 48 | 19.888889 | 0.847751 | 0 | 0 | 0 | 0 | 0 | 0.03352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | true | 0 | 0.307692 | 0 | 0.461538 | 0.076923 | 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 |
5abbd209723404c0544fd055c022c1976d160207 | 92 | py | Python | 001_first/hello.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | 001_first/hello.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | 001_first/hello.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/2/22 22:06
# @Author : cjp
| 18.4 | 28 | 0.532609 | 15 | 92 | 3.266667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.217391 | 92 | 4 | 29 | 23 | 0.513889 | 0.913043 | 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 |
8505873322bb63dc1ee46818a082aa35fac6d393 | 6,981 | py | Python | lib/lieu/spark/tfidf.py | sfomuseum/lieu | 05d47807968a802d9e18d99d09c5f9a3c9a995a0 | [
"MIT"
] | null | null | null | lib/lieu/spark/tfidf.py | sfomuseum/lieu | 05d47807968a802d9e18d99d09c5f9a3c9a995a0 | [
"MIT"
] | null | null | null | lib/lieu/spark/tfidf.py | sfomuseum/lieu | 05d47807968a802d9e18d99d09c5f9a3c9a995a0 | [
"MIT"
] | 2 | 2019-02-13T17:53:08.000Z | 2019-02-15T12:32:22.000Z | import geohash
import math
import six
from six import operator
from collections import Counter
from lieu.tfidf import TFIDF
from lieu.dedupe import Name
from lieu.spark.geo_word_index import GeoWordIndexSpark
class TFIDFSpark(object):
@classmethod
def doc_words(cls, docs, has_id=False):
if not has_... | 48.479167 | 204 | 0.621258 | 901 | 6,981 | 4.529412 | 0.102109 | 0.094095 | 0.035285 | 0.041166 | 0.812791 | 0.757412 | 0.706935 | 0.619211 | 0.605489 | 0.585151 | 0 | 0.002759 | 0.27317 | 6,981 | 143 | 205 | 48.818182 | 0.801537 | 0 | 0 | 0.542056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074766 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8515855d7e9852ab1acdc038711c30b5a94b8342 | 229 | py | Python | Forum/admin.py | elryndir/GuildPortal | d9604bdffdca93debcf5a4063b56e7f0efcc49fd | [
"MIT"
] | null | null | null | Forum/admin.py | elryndir/GuildPortal | d9604bdffdca93debcf5a4063b56e7f0efcc49fd | [
"MIT"
] | null | null | null | Forum/admin.py | elryndir/GuildPortal | d9604bdffdca93debcf5a4063b56e7f0efcc49fd | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from Forum.models import Forum, Category, Thread, Post
admin.site.register(Forum)
admin.site.register(Category)
admin.site.register(Thread)
admin.site.register(Post) | 25.444444 | 54 | 0.80786 | 33 | 229 | 5.606061 | 0.424242 | 0.194595 | 0.367568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091703 | 229 | 9 | 55 | 25.444444 | 0.889423 | 0.113537 | 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 | 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 |
5179906b7d6aee6571502258a1198ff1e65f3b01 | 32 | py | Python | knodj_test/__init__.py | mkennedy04/knodj | 7405c00f0f6a9d9d7af54d59a2de7806bc6301f2 | [
"MIT"
] | null | null | null | knodj_test/__init__.py | mkennedy04/knodj | 7405c00f0f6a9d9d7af54d59a2de7806bc6301f2 | [
"MIT"
] | null | null | null | knodj_test/__init__.py | mkennedy04/knodj | 7405c00f0f6a9d9d7af54d59a2de7806bc6301f2 | [
"MIT"
] | 1 | 2020-11-04T08:40:37.000Z | 2020-11-04T08:40:37.000Z | """
Package for knodj_test.
"""
| 8 | 23 | 0.625 | 4 | 32 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 3 | 24 | 10.666667 | 0.703704 | 0.71875 | 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 |
51c42bf22cfc6e1648bacb5057fb1820bd880cfc | 912 | py | Python | mlpug/pytorch/multi_processing.py | nuhame/ml-pug | ed73b337b90759bdb92a6c441c6da49d689a2cca | [
"Apache-2.0"
] | 4 | 2019-12-30T16:12:06.000Z | 2022-03-25T15:25:49.000Z | mlpug/pytorch/multi_processing.py | nuhame/mlpug | be9f7c55f7d6616af5303e9350cfd8092d55440b | [
"Apache-2.0"
] | null | null | null | mlpug/pytorch/multi_processing.py | nuhame/mlpug | be9f7c55f7d6616af5303e9350cfd8092d55440b | [
"Apache-2.0"
] | null | null | null | import torch.distributed as dist
from mlpug.multi_processing import \
MultiProcessingContextBase, \
MultiProcessingMixin
# TODO : All the mlpug components that derive from MultiProcessingMixin, here in the pytorch package
# should be in a seperate package. This creates an intermediate level between th... | 30.4 | 114 | 0.73136 | 108 | 912 | 6.009259 | 0.574074 | 0.061633 | 0.086287 | 0.078582 | 0.064715 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001383 | 0.207237 | 912 | 29 | 115 | 31.448276 | 0.896266 | 0.39364 | 0 | 0 | 0 | 0 | 0.04562 | 0.04562 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.333333 | false | 0 | 0.133333 | 0.266667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
51f078058d01159667001643d9cfdfe84ea40ea6 | 135 | py | Python | HackerRank/Python/itertools-permutations.py | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 2 | 2021-07-27T10:46:47.000Z | 2021-07-27T10:47:57.000Z | HackerRank/Python/itertools-permutations.py | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | HackerRank/Python/itertools-permutations.py | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | from itertools import permutations
s, k = input().split()
k = int(k)
for _ in sorted(list(permutations(s, k))):
print(''.join(_)) | 19.285714 | 42 | 0.651852 | 20 | 135 | 4.3 | 0.75 | 0.302326 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162963 | 135 | 7 | 43 | 19.285714 | 0.761062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cf974d17e49f60c091db582b57ee22e9aaa8b737 | 380 | py | Python | app/errors.py | jentjr/envirobase | 24431777a3e5ac772539a2810cd889e37e841987 | [
"MIT"
] | null | null | null | app/errors.py | jentjr/envirobase | 24431777a3e5ac772539a2810cd889e37e841987 | [
"MIT"
] | null | null | null | app/errors.py | jentjr/envirobase | 24431777a3e5ac772539a2810cd889e37e841987 | [
"MIT"
] | null | null | null | """ Error classes for USGS Paremeter Codes"""
class Error(Exception):
"""Base class for other exceptions"""
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class AlreadyExistsError(Error):
"""Raises an error when data already exists"""
def __init__(self, *arg... | 23.75 | 50 | 0.655263 | 44 | 380 | 5.295455 | 0.522727 | 0.137339 | 0.206009 | 0.309013 | 0.180258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197368 | 380 | 15 | 51 | 25.333333 | 0.763934 | 0.292105 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 |
cfab96469edea5cac2c2b51e05315b4da84b4431 | 2,192 | py | Python | test/test_list_api.py | eliksir/mailmojo-python-sdk | 99dfd209f190c5320663ce762dd36b7b8b2065f4 | [
"Apache-2.0"
] | null | null | null | test/test_list_api.py | eliksir/mailmojo-python-sdk | 99dfd209f190c5320663ce762dd36b7b8b2065f4 | [
"Apache-2.0"
] | 2 | 2017-01-13T14:23:41.000Z | 2017-02-07T10:43:14.000Z | test/test_list_api.py | eliksir/mailmojo-python-sdk | 99dfd209f190c5320663ce762dd36b7b8b2065f4 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
MailMojo API
v1 of the MailMojo API # noqa: E501
OpenAPI spec version: 1.1.0
Contact: hjelp@mailmojo.no
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import mailmojo_sdk
from mailmojo_sdk.api.li... | 22.367347 | 68 | 0.635493 | 284 | 2,192 | 4.616197 | 0.246479 | 0.073227 | 0.075515 | 0.102975 | 0.414188 | 0.325706 | 0.195271 | 0.132723 | 0.050343 | 0 | 0 | 0.026181 | 0.285584 | 2,192 | 97 | 69 | 22.597938 | 0.810983 | 0.44708 | 0 | 0.333333 | 1 | 0 | 0.008172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.366667 | false | 0.333333 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
cfd5b0ee1d3e9c0771e5882c5fdcee86f8a17e0b | 120 | py | Python | modulepackage/check_import/spam.py | Chyi341152/chyi-book | ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb | [
"MIT"
] | null | null | null | modulepackage/check_import/spam.py | Chyi341152/chyi-book | ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb | [
"MIT"
] | null | null | null | modulepackage/check_import/spam.py | Chyi341152/chyi-book | ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb | [
"MIT"
] | null | null | null | # spam.py
from importlib.util import find_spec
if find_spec('foo'):
import foo
else:
import simplefoo as foo
| 12 | 36 | 0.708333 | 19 | 120 | 4.368421 | 0.684211 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216667 | 120 | 9 | 37 | 13.333333 | 0.882979 | 0.058333 | 0 | 0 | 0 | 0 | 0.027273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cff49b25eedb0ec3747efd53369a506e3e409a62 | 170 | py | Python | env/lib/python3.8/site-packages/cpf_field/forms.py | ThiagoSilva20/Torneio | 673760d43fe93efcfcf9d787e9ed99c744c71453 | [
"MIT"
] | 12 | 2020-06-03T15:45:29.000Z | 2022-03-02T23:38:52.000Z | env/lib/python3.8/site-packages/cpf_field/forms.py | ThiagoSilva20/Torneio | 673760d43fe93efcfcf9d787e9ed99c744c71453 | [
"MIT"
] | 3 | 2021-04-08T20:54:08.000Z | 2021-09-22T19:09:32.000Z | env/lib/python3.8/site-packages/cpf_field/forms.py | ThiagoSilva20/Torneio | 673760d43fe93efcfcf9d787e9ed99c744c71453 | [
"MIT"
] | 2 | 2021-04-23T15:56:26.000Z | 2021-07-07T15:44:04.000Z | from django.forms import ModelForm
from cpf_field.models import MyModel
class CPFFieldForm(ModelForm):
class Meta:
model = MyModel
fields = ['cpf']
| 18.888889 | 36 | 0.694118 | 20 | 170 | 5.85 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 170 | 8 | 37 | 21.25 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 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 |
5c84410cf281fc97892a98c11511aa44c986cf52 | 522 | py | Python | 016_sphinx/src/test01.py | fkubota/rkkubotay-gmail.com | 03abffd520b6ba241d102184bba28507c8aa4d61 | [
"MIT"
] | null | null | null | 016_sphinx/src/test01.py | fkubota/rkkubotay-gmail.com | 03abffd520b6ba241d102184bba28507c8aa4d61 | [
"MIT"
] | 49 | 2021-01-12T07:25:17.000Z | 2022-03-12T00:53:24.000Z | 016_sphinx/src/test01.py | fkubota/rkkubotay-gmail.com | 03abffd520b6ba241d102184bba28507c8aa4d61 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
class calc:
'''
計算を行うクラスです
'''
def sum_(a, b):
'''
足し算を行う
Parameters
----------
a: float
b: float
Returns
-------
sum_: float
'''
sum_ = a + b
return sum_
def sub_(a, b):
... | 13.05 | 22 | 0.319923 | 42 | 522 | 3.785714 | 0.404762 | 0.050314 | 0.062893 | 0.213836 | 0.36478 | 0.36478 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.52682 | 522 | 39 | 23 | 13.384615 | 0.639676 | 0.356322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
5c87e521bb7cc021e9f8f809fedb08add0fc1cd3 | 2,985 | py | Python | client/tinychain/value.py | gitter-badger/tinychain | 9ed5ed7f0194032ee0c71e236be4bf2a5ba9e384 | [
"Apache-2.0"
] | null | null | null | client/tinychain/value.py | gitter-badger/tinychain | 9ed5ed7f0194032ee0c71e236be4bf2a5ba9e384 | [
"Apache-2.0"
] | null | null | null | client/tinychain/value.py | gitter-badger/tinychain | 9ed5ed7f0194032ee0c71e236be4bf2a5ba9e384 | [
"Apache-2.0"
] | null | null | null | """:class:`Value` types such as :class:`Nil`, :class:`Number`, and :class:`String`."""
from .ref import OpRef
from .reflect import Meta
from .state import Scalar
from .util import uri
# Scalar value types
class Value(Scalar, metaclass=Meta):
"""A scalar `Value` which supports equality and collation."""
__u... | 22.111111 | 86 | 0.58861 | 400 | 2,985 | 4.1575 | 0.185 | 0.178593 | 0.189417 | 0.148527 | 0.488876 | 0.406494 | 0.304871 | 0.117859 | 0.087793 | 0 | 0 | 0 | 0.258291 | 2,985 | 134 | 87 | 22.276119 | 0.751129 | 0.245561 | 0 | 0.096774 | 0 | 0 | 0.025818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.387097 | false | 0 | 0.064516 | 0.225806 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5ca927da6098e80a007e9d41f13f9a006a47cee0 | 22 | py | Python | aliyun-python-sdk-domain/aliyunsdkdomain/__init__.py | silent-beaters/aliyun-openapi-python-sdk | 7a025eabdad622af07affc3a7beeae1c5def469d | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-domain/aliyunsdkdomain/__init__.py | silent-beaters/aliyun-openapi-python-sdk | 7a025eabdad622af07affc3a7beeae1c5def469d | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-domain/aliyunsdkdomain/__init__.py | silent-beaters/aliyun-openapi-python-sdk | 7a025eabdad622af07affc3a7beeae1c5def469d | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | __version__ = '3.14.6' | 22 | 22 | 0.681818 | 4 | 22 | 2.75 | 1 | 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 |
7a26187e1a0d87c3d4c945798dae8e3a4ab37f76 | 357 | py | Python | src/pipelines/data_load.py | kumarjay/DVC_pract01 | 1433b96404be6bfaf3a28102b68ca4cc4a32926f | [
"MIT"
] | null | null | null | src/pipelines/data_load.py | kumarjay/DVC_pract01 | 1433b96404be6bfaf3a28102b68ca4cc4a32926f | [
"MIT"
] | null | null | null | src/pipelines/data_load.py | kumarjay/DVC_pract01 | 1433b96404be6bfaf3a28102b68ca4cc4a32926f | [
"MIT"
] | null | null | null | import argparse
from typing import Text
import yaml
import sys, os
# os.chdir('/DVC_pract01/dvc_5_demo_project_iris/')
# /home/jay/PycharmProjects/DVC_pract01/dvc_5_demo_project_iris/src/pipelines
# sys.path.insert(0, 'DVC_pract01/dvc_5_demo_project_iris/')
from dvc_5_demo_project_iris.src.data.dataset import get_da... | 22.3125 | 77 | 0.815126 | 60 | 357 | 4.516667 | 0.466667 | 0.059041 | 0.118081 | 0.221402 | 0.413284 | 0.413284 | 0.321033 | 0 | 0 | 0 | 0 | 0.033639 | 0.084034 | 357 | 15 | 78 | 23.8 | 0.795107 | 0.515406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.857143 | 0 | 0.857143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7a3168390f9650a2317f760e0043078b11ebf3c5 | 153 | py | Python | _posts/55.py | gregyoung2600/github-slideshow | 73522bd2dafba05349c6def26059ef92611e2df1 | [
"MIT"
] | null | null | null | _posts/55.py | gregyoung2600/github-slideshow | 73522bd2dafba05349c6def26059ef92611e2df1 | [
"MIT"
] | 5 | 2019-10-18T22:42:17.000Z | 2021-09-27T23:26:37.000Z | _posts/55.py | gregyoung2600/github-slideshow | 73522bd2dafba05349c6def26059ef92611e2df1 | [
"MIT"
] | null | null | null | first_number = 500 / 100 + 50 + 45
second_number = 250 - 50
print(first_number)
print(second_number)
total = first_number + second_number
print(total)
| 17 | 36 | 0.751634 | 23 | 153 | 4.73913 | 0.434783 | 0.302752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0.156863 | 153 | 8 | 37 | 19.125 | 0.728682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
7a4cc5b9dfe8dd3cd2d4569be0c7059a91e20814 | 48 | py | Python | codado/_version.py | radifalco/Codado | 487d51ec6132c05aa88e2f128012c95ccbf6928e | [
"MIT"
] | null | null | null | codado/_version.py | radifalco/Codado | 487d51ec6132c05aa88e2f128012c95ccbf6928e | [
"MIT"
] | null | null | null | codado/_version.py | radifalco/Codado | 487d51ec6132c05aa88e2f128012c95ccbf6928e | [
"MIT"
] | null | null | null | __version__ = "0.6.1"
__all__ = ["__version__"]
| 16 | 25 | 0.666667 | 6 | 48 | 3.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.125 | 48 | 2 | 26 | 24 | 0.404762 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 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 |
7a84fc339098e11e49f576acb29982395be06b3a | 255 | py | Python | tests/basics/fun_name.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 692 | 2016-12-19T23:25:35.000Z | 2022-03-31T14:20:48.000Z | tests/basics/fun_name.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 259 | 2016-12-25T06:38:22.000Z | 2022-03-13T16:38:36.000Z | tests/basics/fun_name.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 228 | 2016-12-19T05:03:30.000Z | 2022-03-22T18:13:00.000Z | def Fun():
pass
class A:
def __init__(self):
pass
def Fun(self):
pass
try:
print(Fun.__name__)
print(A.__init__.__name__)
print(A.Fun.__name__)
print(A().Fun.__name__)
except AttributeError:
print('SKIP')
| 15 | 30 | 0.6 | 33 | 255 | 3.909091 | 0.393939 | 0.162791 | 0.232558 | 0.20155 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270588 | 255 | 16 | 31 | 15.9375 | 0.693548 | 0 | 0 | 0.214286 | 0 | 0 | 0.015686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.214286 | 0 | 0 | 0.285714 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
7aa59abdfe7660de979ed3087b98dc8552c33f77 | 144 | py | Python | application.py | smlopezza/SofiaLearning_public | b0d8817f6f6894acf96d551bcddcd253345d11a7 | [
"MIT"
] | null | null | null | application.py | smlopezza/SofiaLearning_public | b0d8817f6f6894acf96d551bcddcd253345d11a7 | [
"MIT"
] | null | null | null | application.py | smlopezza/SofiaLearning_public | b0d8817f6f6894acf96d551bcddcd253345d11a7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thursday, June 6, 2020
@author: Sandra Milena Lopez Zamora
slopezza@outlook.com
"""
from app import app
| 16 | 35 | 0.6875 | 21 | 144 | 4.714286 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.166667 | 144 | 8 | 36 | 18 | 0.775 | 0.784722 | 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 |
7ac2735306b472212deb871c96c3a6c0a00cfc02 | 158 | py | Python | venv/bin/django-admin.py | lurdray/facedetect | 112a852a4f31bd07ea724e9faa4fd9fbb444ff23 | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | lurdray/facedetect | 112a852a4f31bd07ea724e9faa4fd9fbb444ff23 | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | lurdray/facedetect | 112a852a4f31bd07ea724e9faa4fd9fbb444ff23 | [
"MIT"
] | null | null | null | #!/home/raytech/gitdemo/facedetect/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 26.333333 | 51 | 0.791139 | 20 | 158 | 5.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.094937 | 158 | 5 | 52 | 31.6 | 0.79021 | 0.316456 | 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 |
7ac2c2dfbf3e6c365c172f77d3eb18048811b746 | 136 | py | Python | python/A First Course on Data Structures in Python/algo/selection/median.py | gauravssnl/Data-Structures-and-Algorithms | 1c335c72ce514d4f95090241bbd6edf01a1141a8 | [
"MIT"
] | 7 | 2020-05-10T09:57:23.000Z | 2021-03-27T11:55:07.000Z | python/A First Course on Data Structures in Python/algo/selection/median.py | gauravssnl/Data-Structures-and-Algorithms | 1c335c72ce514d4f95090241bbd6edf01a1141a8 | [
"MIT"
] | null | null | null | python/A First Course on Data Structures in Python/algo/selection/median.py | gauravssnl/Data-Structures-and-Algorithms | 1c335c72ce514d4f95090241bbd6edf01a1141a8 | [
"MIT"
] | 3 | 2021-03-27T03:42:57.000Z | 2021-08-09T12:03:41.000Z | def median(L):
L.sort()
return L[len(L) // 2]
if __name__ == "__main__":
L = [10, 17, 25, 1, 4, 15, 6]
print(median(L)) | 19.428571 | 33 | 0.507353 | 24 | 136 | 2.541667 | 0.75 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0.272059 | 136 | 7 | 34 | 19.428571 | 0.494949 | 0 | 0 | 0 | 0 | 0 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 1 | 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 |
8f81afc46e41c1641d6a5247aa46ed23129de31e | 741 | py | Python | src/others/tests/test_lexrank.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | src/others/tests/test_lexrank.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | src/others/tests/test_lexrank.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | import pytest
from others.lexrank import *
class TestLexrank:
def test_given_empty_string_then_raise_error(self):
with pytest.raises(ValueError):
rank("")
def test_given_string_of_length_one_then_return_rank_1(self):
assert rank("z") == 1
def test_given_string_of_... | 27.444444 | 66 | 0.596491 | 98 | 741 | 4.204082 | 0.44898 | 0.242718 | 0.145631 | 0.174757 | 0.252427 | 0.252427 | 0 | 0 | 0 | 0 | 0 | 0.024621 | 0.287449 | 741 | 26 | 67 | 28.5 | 0.755682 | 0 | 0 | 0 | 0 | 0 | 0.040559 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8fa963df7d967b62a4ceab4db2c8a660a35dbbd2 | 1,102 | py | Python | webdev/audio/migrations/0006_speech_symptoms.py | adikr24/Django_web_development | 16b10b3547c2e40cc4039b754afe4f9addd9136c | [
"MTLL"
] | null | null | null | webdev/audio/migrations/0006_speech_symptoms.py | adikr24/Django_web_development | 16b10b3547c2e40cc4039b754afe4f9addd9136c | [
"MTLL"
] | null | null | null | webdev/audio/migrations/0006_speech_symptoms.py | adikr24/Django_web_development | 16b10b3547c2e40cc4039b754afe4f9addd9136c | [
"MTLL"
] | null | null | null | # Generated by Django 2.2.1 on 2019-09-21 21:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0005_speech_to_symptoms'),
]
operations = [
migrations.CreateModel(
name='speech_symptoms',
fields=[
... | 36.733333 | 114 | 0.576225 | 110 | 1,102 | 5.590909 | 0.5 | 0.219512 | 0.263415 | 0.35122 | 0.364228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077215 | 0.283122 | 1,102 | 29 | 115 | 38 | 0.701266 | 0.040835 | 0 | 0 | 1 | 0 | 0.125118 | 0.021801 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8fb7cd9fb05e3391f14fdd28249a4e97223d866e | 119 | py | Python | property/realtors/admin.py | vijaykumarmcp/Real-State-Python-Django | 78d2fa1423b157c594b967891f44ea27a4143657 | [
"MIT"
] | null | null | null | property/realtors/admin.py | vijaykumarmcp/Real-State-Python-Django | 78d2fa1423b157c594b967891f44ea27a4143657 | [
"MIT"
] | 19 | 2020-07-19T21:28:01.000Z | 2022-03-12T00:46:36.000Z | property/realtors/admin.py | vijaykumarmcp/Real-State-Python-Django | 78d2fa1423b157c594b967891f44ea27a4143657 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . models import Realtor
# Register your models here.
admin.site.register(Realtor) | 29.75 | 32 | 0.815126 | 17 | 119 | 5.705882 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 119 | 4 | 33 | 29.75 | 0.92381 | 0.218487 | 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 |
8fda7fcbf8b6c965111411481a8a548b8a8c831d | 233 | py | Python | setup.py | lukaselmer/vis-beer | ecabbfa8aeb540ea3cb66cd1a1d2192b8e439085 | [
"MIT"
] | null | null | null | setup.py | lukaselmer/vis-beer | ecabbfa8aeb540ea3cb66cd1a1d2192b8e439085 | [
"MIT"
] | null | null | null | setup.py | lukaselmer/vis-beer | ecabbfa8aeb540ea3cb66cd1a1d2192b8e439085 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name="visbeer", version="0.0.1", packages=find_packages(),
install_requires=['flask'])
#install_requires=['SQLAlchemy', 'VISlib', 'werkzeug', 'webob', 'visapps >= 2.2'])
| 38.833333 | 88 | 0.686695 | 28 | 233 | 5.571429 | 0.714286 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02451 | 0.124464 | 233 | 5 | 89 | 46.6 | 0.740196 | 0.347639 | 0 | 0 | 0 | 0 | 0.112583 | 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 |
8fe3e11a584a32f979b0a67adeae285fcb65a319 | 150 | py | Python | app/tests/plugins/another_test_plugin/__init__.py | golem4300/quattran | 8ab49be9fce99d52384ada0defc94f3a0f4afff1 | [
"MIT"
] | 183 | 2016-07-23T22:29:18.000Z | 2016-09-25T15:39:10.000Z | app/tests/plugins/another_test_plugin/__init__.py | OpenPoGo/OpenPoGo | 02a6c955a36e25f7dd7d325f20ea9d6f5418a911 | [
"MIT"
] | 354 | 2016-07-23T21:43:27.000Z | 2016-09-15T21:01:39.000Z | app/tests/plugins/another_test_plugin/__init__.py | OpenPoGo/OpenPoGo | 02a6c955a36e25f7dd7d325f20ea9d6f5418a911 | [
"MIT"
] | 104 | 2016-07-23T22:28:58.000Z | 2016-09-09T11:28:01.000Z | from app.tests import test_kernel
@test_kernel.container.register('another_test_plugin', tags=['plugin'])
class AnotherTestPlugin(object):
pass
| 21.428571 | 71 | 0.786667 | 19 | 150 | 6 | 0.789474 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 150 | 6 | 72 | 25 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
8ff8a12b40afacbee864c94ac3f62fa29359e241 | 566 | py | Python | programs/99doc.py | Roseann-Guttierrez/100DOC_Projects | 559e49f715193d1548f543139aa1400097c3ed15 | [
"Apache-2.0"
] | null | null | null | programs/99doc.py | Roseann-Guttierrez/100DOC_Projects | 559e49f715193d1548f543139aa1400097c3ed15 | [
"Apache-2.0"
] | null | null | null | programs/99doc.py | Roseann-Guttierrez/100DOC_Projects | 559e49f715193d1548f543139aa1400097c3ed15 | [
"Apache-2.0"
] | null | null | null | # 99 Days of Code - Sung to the tune of "99 bottles of beer"
x = 99
z = 1
while x > 1:
y = x - 1
print(x , "days of code to complete,", x, "days of code.")
print("Commit to win,then start again", y, "days of code to complete...")
print()
x = x - 1
if x == 1:
print("1 day of code to complete,",... | 29.789474 | 77 | 0.627208 | 109 | 566 | 3.256881 | 0.376147 | 0.169014 | 0.197183 | 0.270423 | 0.428169 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0.037825 | 0.25265 | 566 | 18 | 78 | 31.444444 | 0.801418 | 0.102474 | 0 | 0.142857 | 0 | 0 | 0.630435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
8ffebf371fc2cdf93e884544730d8bfc64a7d6be | 215 | py | Python | django-react/django_react/frontend/views.py | bogdan-veliscu/react-stack-compare | e7d2020ec8177e12d1b1c41bfaed96c2ee87490c | [
"Apache-2.0"
] | null | null | null | django-react/django_react/frontend/views.py | bogdan-veliscu/react-stack-compare | e7d2020ec8177e12d1b1c41bfaed96c2ee87490c | [
"Apache-2.0"
] | 7 | 2021-10-06T14:03:21.000Z | 2022-02-27T02:40:18.000Z | django-react/django_react/frontend/views.py | bogdan-veliscu/react-stack-compare | e7d2020ec8177e12d1b1c41bfaed96c2ee87490c | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.views.decorators.csrf import ensure_csrf_cookie
@ensure_csrf_cookie
def index(request):
return render(request, 'frontend/index.html')
| 21.5 | 59 | 0.8 | 30 | 215 | 5.6 | 0.633333 | 0.119048 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12093 | 215 | 9 | 60 | 23.888889 | 0.888889 | 0.106977 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
64e3678ce8f2d120d22d17cc6265966ff5d94e29 | 181 | py | Python | igtagger/annotator/annotator.py | institutional-grammar-pl/ig-tagger | a162525dd3c15517be2b56bb63b2d76db5508604 | [
"MIT"
] | null | null | null | igtagger/annotator/annotator.py | institutional-grammar-pl/ig-tagger | a162525dd3c15517be2b56bb63b2d76db5508604 | [
"MIT"
] | null | null | null | igtagger/annotator/annotator.py | institutional-grammar-pl/ig-tagger | a162525dd3c15517be2b56bb63b2d76db5508604 | [
"MIT"
] | null | null | null | from abc import ABC
import pathlib
class BaseAnnotator(ABC):
def __init__(self):
self.resources_dir = str(pathlib.Path('~/.cache/ig/models/').expanduser().absolute())
| 22.625 | 93 | 0.701657 | 23 | 181 | 5.304348 | 0.782609 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149171 | 181 | 7 | 94 | 25.857143 | 0.792208 | 0 | 0 | 0 | 0 | 0 | 0.104972 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
64f19fd3efafde7c173e8f3ee37f1b7ec955448f | 200 | py | Python | library/urls.py | lesfernan/DemoHeroku | 719d6a327757735c57b3b0cea01a0eea7783958d | [
"FTL",
"Xnet",
"X11"
] | null | null | null | library/urls.py | lesfernan/DemoHeroku | 719d6a327757735c57b3b0cea01a0eea7783958d | [
"FTL",
"Xnet",
"X11"
] | null | null | null | library/urls.py | lesfernan/DemoHeroku | 719d6a327757735c57b3b0cea01a0eea7783958d | [
"FTL",
"Xnet",
"X11"
] | null | null | null | from django.urls import path
from library.views import BooksView, BookView
urlpatterns = [
path('v1/library/books', BooksView.as_view()),
path('v1/library/book/<pk>/', BookView.as_view()),
] | 25 | 54 | 0.71 | 27 | 200 | 5.185185 | 0.592593 | 0.085714 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.13 | 200 | 8 | 55 | 25 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.18408 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8f22e5db177faa49e47a82c081031ba53172fc1d | 447 | bzl | Python | local_defines_win.bzl | chokobole/bazel_utils | a4a6c24f630d153fb99f26b5789eb02a661220f2 | [
"BSD-3-Clause"
] | null | null | null | local_defines_win.bzl | chokobole/bazel_utils | a4a6c24f630d153fb99f26b5789eb02a661220f2 | [
"BSD-3-Clause"
] | null | null | null | local_defines_win.bzl | chokobole/bazel_utils | a4a6c24f630d153fb99f26b5789eb02a661220f2 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2019 The Bazel Utils Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def runtime_library():
return [
"_WINDOWS",
"WIN32",
]
def winver():
return [
"_WIN32_WINNT=0x0A00",
"WIN... | 20.318182 | 72 | 0.630872 | 58 | 447 | 4.689655 | 0.706897 | 0.080882 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054217 | 0.257271 | 447 | 21 | 73 | 21.285714 | 0.76506 | 0.362416 | 0 | 0.142857 | 0 | 0 | 0.281139 | 0 | 0 | 0 | 0.042705 | 0 | 0 | 1 | 0.285714 | true | 0 | 0 | 0.285714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
8f6779b3643f0e55f6077e960b38567341afe761 | 55 | py | Python | invite/migrations/operations/__init__.py | lmarvaud/django-invite | 86db0fa278f373cc9481aa9af22fb927ebc1a5d9 | [
"MIT"
] | null | null | null | invite/migrations/operations/__init__.py | lmarvaud/django-invite | 86db0fa278f373cc9481aa9af22fb927ebc1a5d9 | [
"MIT"
] | 4 | 2019-04-21T19:46:33.000Z | 2019-05-26T11:30:01.000Z | invite/migrations/operations/__init__.py | lmarvaud/django-invite | 86db0fa278f373cc9481aa9af22fb927ebc1a5d9 | [
"MIT"
] | null | null | null | """
__init__.py
Created by lmarvaud on 31/01/2019
"""
| 9.166667 | 33 | 0.672727 | 9 | 55 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.163636 | 55 | 5 | 34 | 11 | 0.543478 | 0.836364 | 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 |
8f77899de61c2ce94f124f1f72e9366662012665 | 146 | py | Python | basics/list_comprehensions.py | thealphaversion/A-Practical-Guide-To-Python | 7dd959152e895afb83957479a2ed69bbba82cea1 | [
"MIT"
] | null | null | null | basics/list_comprehensions.py | thealphaversion/A-Practical-Guide-To-Python | 7dd959152e895afb83957479a2ed69bbba82cea1 | [
"MIT"
] | null | null | null | basics/list_comprehensions.py | thealphaversion/A-Practical-Guide-To-Python | 7dd959152e895afb83957479a2ed69bbba82cea1 | [
"MIT"
] | null | null | null | # using list comprehensions is another way of creating lists
# it can be said to be a rather elegant and concise way to create lists in one line
| 36.5 | 83 | 0.780822 | 27 | 146 | 4.222222 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205479 | 146 | 3 | 84 | 48.666667 | 0.982759 | 0.958904 | 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 |
56be0bebe05b5a0cfa8006430f9f0963facd53aa | 151 | py | Python | tests/kubectl_test.py | rafalmierzwiak/kubeconfig-python | d8ad3f107b28202ac42fff28d53b5a2a1809ab20 | [
"BSD-3-Clause"
] | 7 | 2018-08-14T08:30:08.000Z | 2021-09-26T08:30:12.000Z | tests/kubectl_test.py | rafalmierzwiak/kubeconfig-python | d8ad3f107b28202ac42fff28d53b5a2a1809ab20 | [
"BSD-3-Clause"
] | 7 | 2019-06-01T08:16:46.000Z | 2021-11-30T10:51:12.000Z | tests/kubectl_test.py | rafalmierzwiak/kubeconfig-python | d8ad3f107b28202ac42fff28d53b5a2a1809ab20 | [
"BSD-3-Clause"
] | 9 | 2018-04-27T02:05:06.000Z | 2021-06-15T11:33:28.000Z | import os
import pytest
from kubeconfig import kubectl
def test_find_kubectl():
"""Make sure we can find and run kubectl"""
kubectl.run()
| 12.583333 | 47 | 0.708609 | 22 | 151 | 4.772727 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211921 | 151 | 11 | 48 | 13.727273 | 0.882353 | 0.245033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.6 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
56d436a4bfd9b8181eccc3e5ac47ed30612406b0 | 50 | py | Python | demo0/clean.py | Jianxun-Wang/PICNNSR | b12ed0cb89b8136a23d213c6c2fb0663e6064299 | [
"MIT"
] | 5 | 2021-07-13T14:56:04.000Z | 2021-12-13T03:20:34.000Z | demo0/clean.py | Jianxun-Wang/PICNNSR | b12ed0cb89b8136a23d213c6c2fb0663e6064299 | [
"MIT"
] | null | null | null | demo0/clean.py | Jianxun-Wang/PICNNSR | b12ed0cb89b8136a23d213c6c2fb0663e6064299 | [
"MIT"
] | 1 | 2021-11-26T21:58:58.000Z | 2021-11-26T21:58:58.000Z | import os
os.system('rm *.txt Utemp *.pdf *.pth') | 16.666667 | 39 | 0.64 | 9 | 50 | 3.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 3 | 39 | 16.666667 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0.509804 | 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 |
56e8e1941cbf25158516d2fc76980b2a1a76909d | 2,322 | py | Python | pythran/tests/test_random.py | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/tests/test_random.py | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/tests/test_random.py | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | 1 | 2017-03-12T20:32:36.000Z | 2017-03-12T20:32:36.000Z | from test_env import TestEnv
@TestEnv.module
class TestRandom(TestEnv):
def test_random_(self):
self.run_test("def random_(n): from random import random ; s= sum(random() for x in range(n)) ; return abs(s/n -.5) < .05", 10**5, random_=[int])
def test_gauss_(self):
self.run_test("def gauss_(n... | 59.538462 | 190 | 0.634798 | 403 | 2,322 | 3.545906 | 0.141439 | 0.053884 | 0.084675 | 0.115465 | 0.40098 | 0.26522 | 0.20014 | 0.185444 | 0.170049 | 0.03359 | 0 | 0.042283 | 0.185185 | 2,322 | 38 | 191 | 61.105263 | 0.713002 | 0 | 0 | 0 | 0 | 0.44 | 0.566753 | 0.021103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.44 | false | 0 | 0.48 | 0 | 0.96 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
56f46b5c46dc6c5ae1a757ac8cbdbd24d5f98a07 | 132 | py | Python | Chapter06/extract_contents.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 116 | 2018-12-21T01:05:47.000Z | 2022-03-23T21:41:41.000Z | Chapter06/extract_contents.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 2 | 2021-03-31T19:36:19.000Z | 2021-06-10T22:29:26.000Z | Chapter06/extract_contents.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 147 | 2018-12-19T14:10:32.000Z | 2022-03-20T11:03:20.000Z | import tarfile
import os
os.mkdir('work')
with tarfile.open('work.tar', 'r') as t:
t.extractall('work')
print(os.listdir('work'))
| 16.5 | 40 | 0.689394 | 22 | 132 | 4.136364 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 132 | 7 | 41 | 18.857143 | 0.771186 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
56f74a24ac72b0078a51eb2c9da2f1d69fd8c9a1 | 198 | py | Python | atst/routes/portfolios/__init__.py | philip-dds/atst | a227044ccf464dd0e3144dd74cecfafe8d6841b9 | [
"MIT"
] | 1 | 2020-01-16T16:15:52.000Z | 2020-01-16T16:15:52.000Z | atst/routes/portfolios/__init__.py | philip-dds/atst | a227044ccf464dd0e3144dd74cecfafe8d6841b9 | [
"MIT"
] | null | null | null | atst/routes/portfolios/__init__.py | philip-dds/atst | a227044ccf464dd0e3144dd74cecfafe8d6841b9 | [
"MIT"
] | null | null | null | from flask import request as http_request, g, render_template
from operator import attrgetter
from . import index
from . import invitations
from . import admin
from .blueprint import portfolios_bp
| 24.75 | 61 | 0.823232 | 28 | 198 | 5.714286 | 0.607143 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146465 | 198 | 7 | 62 | 28.285714 | 0.946746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
710625610431b951d48014d758463343c6670fdf | 6,890 | py | Python | brainscore/benchmarks/search.py | shashikg/brain-score | e7aa0dcfae0b2890adac94328d3ed10ad2a7b8d6 | [
"MIT"
] | null | null | null | brainscore/benchmarks/search.py | shashikg/brain-score | e7aa0dcfae0b2890adac94328d3ed10ad2a7b8d6 | [
"MIT"
] | null | null | null | brainscore/benchmarks/search.py | shashikg/brain-score | e7aa0dcfae0b2890adac94328d3ed10ad2a7b8d6 | [
"MIT"
] | null | null | null | import numpy as np
import ScanMatchPy
import matlab
import brainscore
import brainio_collection
from brainscore.benchmarks import Benchmark, ceil_score
from brainscore.model_interface import BrainModel
from brainscore.metrics import Score
from brainscore.utils import fullname
import logging
from tqdm import tqdm
clas... | 40.769231 | 143 | 0.654862 | 851 | 6,890 | 5.07168 | 0.190364 | 0.020853 | 0.018536 | 0.02595 | 0.762512 | 0.738184 | 0.712697 | 0.712697 | 0.69393 | 0.69393 | 0 | 0.039205 | 0.22627 | 6,890 | 168 | 144 | 41.011905 | 0.7704 | 0.043251 | 0 | 0.636364 | 0 | 0 | 0.101898 | 0.021716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.083333 | 0.083333 | 0.310606 | 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 |
710be0ec5b64054c1ba017fcc47cf94b55a7e4bc | 58 | py | Python | makahiki/apps/widgets/smartgrid/management/commands/__init__.py | justinslee/Wai-Not-Makahiki | 4b7dd685012ec64758affe0ecee3103596d16aa7 | [
"MIT"
] | 1 | 2015-07-22T11:31:20.000Z | 2015-07-22T11:31:20.000Z | makahiki/apps/widgets/smartgrid/management/commands/__init__.py | justinslee/Wai-Not-Makahiki | 4b7dd685012ec64758affe0ecee3103596d16aa7 | [
"MIT"
] | null | null | null | makahiki/apps/widgets/smartgrid/management/commands/__init__.py | justinslee/Wai-Not-Makahiki | 4b7dd685012ec64758affe0ecee3103596d16aa7 | [
"MIT"
] | null | null | null | """Management commands for the Smart Grid Game widget."""
| 29 | 57 | 0.741379 | 8 | 58 | 5.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 1 | 58 | 58 | 0.86 | 0.87931 | 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 |
710decbc5a138e02903bd621e060f3a397f78d2a | 194 | py | Python | privateurl/apps.py | liminspace/django-privateurl | 15fee25af5030809519f574df16f7e60cfa2b8ca | [
"MIT"
] | 5 | 2016-09-12T22:54:40.000Z | 2020-09-20T17:17:47.000Z | privateurl/apps.py | liminspace/django-privateurl | 15fee25af5030809519f574df16f7e60cfa2b8ca | [
"MIT"
] | 81 | 2018-08-29T13:02:09.000Z | 2022-03-01T17:05:10.000Z | privateurl/apps.py | liminspace/django-privateurl | 15fee25af5030809519f574df16f7e60cfa2b8ca | [
"MIT"
] | 3 | 2019-06-19T20:08:00.000Z | 2020-09-22T03:23:26.000Z | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class PrivateURLConfig(AppConfig):
name = 'privateurl'
verbose_name = _('Django Private URL')
| 24.25 | 55 | 0.773196 | 23 | 194 | 6.347826 | 0.73913 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 194 | 7 | 56 | 27.714286 | 0.890244 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 |
7126350f729b714e17eec7733b7c9d771e068869 | 143 | py | Python | map_gen/objects/water.py | Xorgon/Map-Generator | d91356ba7264d93999bd78f73337ebc3c53e117c | [
"MIT"
] | 9 | 2017-06-29T22:04:53.000Z | 2022-03-31T16:43:55.000Z | map_gen/objects/water.py | Xorgon/Map-Generator | d91356ba7264d93999bd78f73337ebc3c53e117c | [
"MIT"
] | null | null | null | map_gen/objects/water.py | Xorgon/Map-Generator | d91356ba7264d93999bd78f73337ebc3c53e117c | [
"MIT"
] | 1 | 2019-05-26T18:42:57.000Z | 2019-05-26T18:42:57.000Z | class Water():
regions = None
outline_points = None
def __init__(self):
self.regions = []
self.outline_points = [] | 20.428571 | 32 | 0.58042 | 15 | 143 | 5.133333 | 0.6 | 0.337662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 143 | 7 | 32 | 20.428571 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7126994ee39cee9df01c92811711922415bcc582 | 46 | py | Python | src/tests/testModules/partialModuleVariables/TrueNegative/basicTypes.py | Trimatix/carica | 074be16bdf50541eb3ba92ca42d0ad901cc51bd0 | [
"Apache-2.0"
] | 5 | 2021-09-08T07:29:23.000Z | 2021-11-24T00:18:22.000Z | src/tests/testModules/partialModuleVariables/TrueNegative/basicTypes.py | Trimatix/Carica | 074be16bdf50541eb3ba92ca42d0ad901cc51bd0 | [
"Apache-2.0"
] | 42 | 2021-09-08T07:31:25.000Z | 2022-01-16T17:39:34.000Z | src/tests/testModules/partialModuleVariables/TrueNegative/basicTypes.py | Trimatix/carica | 074be16bdf50541eb3ba92ca42d0ad901cc51bd0 | [
"Apache-2.0"
] | null | null | null | 1
"test"
"equality" == "equality"
1.5 * 10
int | 9.2 | 24 | 0.608696 | 8 | 46 | 3.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.173913 | 46 | 5 | 25 | 9.2 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 0.425532 | 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 |
85410725c9c7d10d173956c9fd5955936a0c6d05 | 287 | py | Python | lib/django-1.4/django/contrib/formtools/tests/wizard/sessionstorage.py | MiCHiLU/google_appengine_sdk | 3da9f20d7e65e26c4938d2c4054bc4f39cbc5522 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | AppServer/lib/django-1.5/django/contrib/formtools/tests/wizard/sessionstorage.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | AppServer/lib/django-1.5/django/contrib/formtools/tests/wizard/sessionstorage.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | from django.test import TestCase
from django.contrib.formtools.tests.wizard.storage import TestStorage
from django.contrib.formtools.wizard.storage.session import SessionStorage
class TestSessionStorage(TestStorage, TestCase):
def get_storage(self):
return SessionStorage
| 28.7 | 74 | 0.818815 | 33 | 287 | 7.090909 | 0.575758 | 0.128205 | 0.145299 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118467 | 287 | 9 | 75 | 31.888889 | 0.924901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
8549f8b41bf1cc1ec6666011d4e006447f55b1c3 | 231 | py | Python | withoutrest/myapp/models.py | ramadevim/restapi | 0afd7d77d5e431274c2c6f5120ab8be933505417 | [
"MIT"
] | null | null | null | withoutrest/myapp/models.py | ramadevim/restapi | 0afd7d77d5e431274c2c6f5120ab8be933505417 | [
"MIT"
] | null | null | null | withoutrest/myapp/models.py | ramadevim/restapi | 0afd7d77d5e431274c2c6f5120ab8be933505417 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Employee(models.Model):
eno=models.IntegerField()
ename=models.CharField(max_length=100)
esal=models.FloatField()
eaddr=models.CharField(max_length=300) | 28.875 | 42 | 0.757576 | 31 | 231 | 5.580645 | 0.709677 | 0.17341 | 0.208092 | 0.277457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.134199 | 231 | 8 | 43 | 28.875 | 0.835 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
856a9efb4bc5e6316e35fe86965436d8203aec36 | 183 | py | Python | app/auth/__init__.py | eellkk/flask_learn | 18810a09a7384af15d3767b56274c990fe1c154b | [
"MIT"
] | null | null | null | app/auth/__init__.py | eellkk/flask_learn | 18810a09a7384af15d3767b56274c990fe1c154b | [
"MIT"
] | null | null | null | app/auth/__init__.py | eellkk/flask_learn | 18810a09a7384af15d3767b56274c990fe1c154b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 22 13:25:49 2016
@author: Administrator
"""
from flask import Blueprint
auth = Blueprint('auth',__name__)
from . import views | 18.3 | 36 | 0.655738 | 25 | 183 | 4.64 | 0.84 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089041 | 0.202186 | 183 | 10 | 37 | 18.3 | 0.705479 | 0.448087 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
858d72eb16bde6876e22bd0171059dc132488005 | 687 | py | Python | framework/oktopus/solver/technology.py | charlee593/oktopus_framework | 2835c44c61d1b6170682f014450b8c2203786347 | [
"MIT"
] | 1 | 2022-02-21T12:03:17.000Z | 2022-02-21T12:03:17.000Z | framework/oktopus/solver/technology.py | charlee593/oktopus_framework | 2835c44c61d1b6170682f014450b8c2203786347 | [
"MIT"
] | 4 | 2020-07-02T00:56:32.000Z | 2020-07-02T00:56:45.000Z | framework/oktopus/solver/technology.py | charlee593/oktopus_framework | 2835c44c61d1b6170682f014450b8c2203786347 | [
"MIT"
] | 1 | 2022-02-21T12:03:03.000Z | 2022-02-21T12:03:03.000Z | from solution import Solution
class RoutingTechnology:
def __init__(self, name, solution):
assert isinstance(solution, Solution)
self.name = name
self.solution = solution
def encode(self):
raise NotImplementedError('Please use a specialized class...')
class OFRoutingTechnolo... | 23.689655 | 75 | 0.695779 | 68 | 687 | 6.735294 | 0.352941 | 0.087336 | 0.157205 | 0.183406 | 0.491266 | 0.427948 | 0.283843 | 0.283843 | 0.283843 | 0 | 0 | 0.003704 | 0.213974 | 687 | 28 | 76 | 24.535714 | 0.844444 | 0 | 0 | 0.388889 | 0 | 0 | 0.065598 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.333333 | false | 0.111111 | 0.055556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
858ea643925351a8cca92f006161411ce4bb196f | 612 | py | Python | jobslib/liveness/dummy.py | dimexid/jobslib | 1eff64b266b6da71abf8874d94181dfbc569fe41 | [
"BSD-3-Clause"
] | null | null | null | jobslib/liveness/dummy.py | dimexid/jobslib | 1eff64b266b6da71abf8874d94181dfbc569fe41 | [
"BSD-3-Clause"
] | 1 | 2020-09-02T07:57:33.000Z | 2020-09-02T07:57:33.000Z | jobslib/liveness/dummy.py | dimexid/jobslib | 1eff64b266b6da71abf8874d94181dfbc569fe41 | [
"BSD-3-Clause"
] | 3 | 2020-08-18T07:56:59.000Z | 2020-10-22T08:49:54.000Z | """
Module :mod:`jobslib.liveness.dummy` provides :class:`DummyLiveness`
writer.
"""
from . import BaseLiveness
__all__ = ['DummyLiveness']
class DummyLiveness(BaseLiveness):
"""
Dummy liveness implementation. Doesn't provide real functionality.
It is useful for development or if it is not necessary liv... | 21.103448 | 72 | 0.648693 | 66 | 612 | 5.939394 | 0.666667 | 0.137755 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 612 | 28 | 73 | 21.857143 | 0.837607 | 0.616013 | 0 | 0 | 0 | 0 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
858f49cf286181c268e3ca77739dab6e77aaa1df | 232 | py | Python | Strings/string_functions_FIXME.py | lvolkmann/couch-to-coder-python-exercises | afecb696d93eead9ba50613dc0723f2eca92d11a | [
"MIT"
] | null | null | null | Strings/string_functions_FIXME.py | lvolkmann/couch-to-coder-python-exercises | afecb696d93eead9ba50613dc0723f2eca92d11a | [
"MIT"
] | null | null | null | Strings/string_functions_FIXME.py | lvolkmann/couch-to-coder-python-exercises | afecb696d93eead9ba50613dc0723f2eca92d11a | [
"MIT"
] | null | null | null | """
Write a program by the following:
1. Define a function that accepts a string and prints every other word
2. Define a function that accepts a string and translates it into pig latin
3. If time, implement them into a main loop
""" | 38.666667 | 75 | 0.767241 | 42 | 232 | 4.238095 | 0.714286 | 0.078652 | 0.168539 | 0.213483 | 0.404494 | 0.404494 | 0.404494 | 0.404494 | 0 | 0 | 0 | 0.015873 | 0.185345 | 232 | 6 | 76 | 38.666667 | 0.925926 | 1.030172 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85aba02b83370d34bc009fd3703431a873ccdf45 | 27 | py | Python | terrarium/__init__.py | littleq0903/terrarium | eabdc36b07d0e2604c0177047375b5e47400eb6c | [
"BSD-3-Clause"
] | null | null | null | terrarium/__init__.py | littleq0903/terrarium | eabdc36b07d0e2604c0177047375b5e47400eb6c | [
"BSD-3-Clause"
] | null | null | null | terrarium/__init__.py | littleq0903/terrarium | eabdc36b07d0e2604c0177047375b5e47400eb6c | [
"BSD-3-Clause"
] | null | null | null | __version__ = '1.0.0-rc.6'
| 13.5 | 26 | 0.62963 | 6 | 27 | 2.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.111111 | 27 | 1 | 27 | 27 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0.37037 | 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 |
a44a88a696005a25f7ddaa213d6042ac6b78798c | 95 | py | Python | backend/hackomania/apps.py | SengCheong/HackOmania | 5c3a362fe0e06dca7498b520d8f4fc2df0f327b3 | [
"MIT"
] | 1 | 2019-09-17T14:48:05.000Z | 2019-09-17T14:48:05.000Z | backend/hackomania/apps.py | SengCheong/HackOmania | 5c3a362fe0e06dca7498b520d8f4fc2df0f327b3 | [
"MIT"
] | null | null | null | backend/hackomania/apps.py | SengCheong/HackOmania | 5c3a362fe0e06dca7498b520d8f4fc2df0f327b3 | [
"MIT"
] | 1 | 2019-09-17T14:51:24.000Z | 2019-09-17T14:51:24.000Z | from django.apps import AppConfig
class HackomaniaConfig(AppConfig):
name = 'hackomania'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
a4778ec9f9a61082c0edd35de9a0d5f0334359a5 | 16,116 | py | Python | gsr/graphlib/OGCtemplate2.py | Green-Resilience/wfRunner | df5cff4e51484ac8b8a0fbdb4ec3ad6d05586817 | [
"Apache-2.0"
] | null | null | null | gsr/graphlib/OGCtemplate2.py | Green-Resilience/wfRunner | df5cff4e51484ac8b8a0fbdb4ec3ad6d05586817 | [
"Apache-2.0"
] | null | null | null | gsr/graphlib/OGCtemplate2.py | Green-Resilience/wfRunner | df5cff4e51484ac8b8a0fbdb4ec3ad6d05586817 | [
"Apache-2.0"
] | null | null | null | #-------------------------------------------------------------------------------
# Name: OGCtemplate2.py
# Purpose: Create OGC GeoSPARQL File Template using UBO classes and properties
#
# Author: Holly Tina Ferguson hfergus2@nd.edu
#
# Created: 07/31/2015
# Copyright: (c) Holly Tina Ferguson 2015
... | 49.134146 | 159 | 0.590221 | 1,886 | 16,116 | 5.02439 | 0.120361 | 0.057619 | 0.078303 | 0.095082 | 0.764563 | 0.73111 | 0.710004 | 0.692275 | 0.598354 | 0.57461 | 0 | 0.030662 | 0.228965 | 16,116 | 327 | 160 | 49.284404 | 0.731933 | 0.063725 | 0 | 0.370968 | 0 | 0.330645 | 0.643718 | 0.042593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024194 | false | 0 | 0.072581 | 0 | 0.129032 | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f109a091813ec254443f40f949d69c7033c69159 | 55 | py | Python | testData/completion/instancePythonFunction.py | seandstewart/typical-pycharm-plugin | 4f6ec99766239421201faae9d75c32fa0ee3565a | [
"MIT"
] | null | null | null | testData/completion/instancePythonFunction.py | seandstewart/typical-pycharm-plugin | 4f6ec99766239421201faae9d75c32fa0ee3565a | [
"MIT"
] | null | null | null | testData/completion/instancePythonFunction.py | seandstewart/typical-pycharm-plugin | 4f6ec99766239421201faae9d75c32fa0ee3565a | [
"MIT"
] | null | null | null | from builtins import *
def a():
pass
a().<caret> | 7.857143 | 22 | 0.581818 | 8 | 55 | 4 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254545 | 55 | 7 | 23 | 7.857143 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f11c699b342b0caf1f7f4e8cc4d920d6b78bcc2c | 21 | py | Python | pyesapi/stubs/System/Array.py | VarianPremiumDeveloper/PyESAPI | c7b1d2986cab9387e85dbb4331a44e5b743b86ea | [
"MIT"
] | 45 | 2018-07-08T16:06:30.000Z | 2021-12-09T16:54:26.000Z | pyesapi/stubs/System/Array.py | VarianPremiumDeveloper/PyESAPI | c7b1d2986cab9387e85dbb4331a44e5b743b86ea | [
"MIT"
] | 18 | 2018-10-12T21:32:12.000Z | 2022-03-01T18:44:03.000Z | pyesapi/stubs/System/Array.py | VarianPremiumDeveloper/PyESAPI | c7b1d2986cab9387e85dbb4331a44e5b743b86ea | [
"MIT"
] | 19 | 2018-07-17T04:59:46.000Z | 2021-08-12T13:48:21.000Z | class Array:
...
| 7 | 12 | 0.47619 | 2 | 21 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 21 | 2 | 13 | 10.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f11c9c8fc7eb7452198c4aeb34c5972c8b3ce031 | 490 | py | Python | scrape/spatula/sources.py | brianhlin/people | 1e62124c24feafe26437c344aa5a5bb1de00c740 | [
"CC0-1.0"
] | null | null | null | scrape/spatula/sources.py | brianhlin/people | 1e62124c24feafe26437c344aa5a5bb1de00c740 | [
"CC0-1.0"
] | null | null | null | scrape/spatula/sources.py | brianhlin/people | 1e62124c24feafe26437c344aa5a5bb1de00c740 | [
"CC0-1.0"
] | null | null | null | class Source:
pass
class URL(Source):
def __init__(self, url, method="GET", data=None):
self.url = url
self.method = method
self.data = data
def get_data(self, scraper):
return scraper.request(method=self.method, url=self.url, data=self.data).content
def __str__(self)... | 20.416667 | 88 | 0.632653 | 64 | 490 | 4.5 | 0.28125 | 0.097222 | 0.069444 | 0.097222 | 0.326389 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261224 | 490 | 23 | 89 | 21.304348 | 0.79558 | 0 | 0 | 0.25 | 0 | 0 | 0.006122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
f1328a2025bc46e74498cf9910fb1fafd2904156 | 305 | py | Python | src/blubber_orm/models/__init__.py | hubbub-tech/blubber-orm | 4c445cec18e0f9d2212e15aa7ae91989b8aa9ada | [
"Apache-2.0"
] | 1 | 2021-04-13T22:00:58.000Z | 2021-04-13T22:00:58.000Z | src/blubber_orm/models/__init__.py | hubbub-tech/blubber-orm | 4c445cec18e0f9d2212e15aa7ae91989b8aa9ada | [
"Apache-2.0"
] | null | null | null | src/blubber_orm/models/__init__.py | hubbub-tech/blubber-orm | 4c445cec18e0f9d2212e15aa7ae91989b8aa9ada | [
"Apache-2.0"
] | null | null | null | from .addresses import Addresses
from .items import Items, Details, Calendars
from .logistics import Pickups, Dropoffs, Logistics
from .orders import Orders, Extensions
from .reservations import Reservations
from .texts import Tags, Testimonials, Reviews, Issues
from .users import Users, Profiles, Carts
| 38.125 | 54 | 0.819672 | 38 | 305 | 6.578947 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12459 | 305 | 7 | 55 | 43.571429 | 0.93633 | 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 |
f14ede35d83cf2a9456bc4bed057b703f1a934cc | 175 | py | Python | authors/apps/comments/renderers.py | kimbugp/ah-haven-space-sprinters | 00e08131d1c4d7785f127f8e1beb17488c8ca0fd | [
"BSD-3-Clause"
] | 4 | 2019-04-30T13:38:15.000Z | 2021-04-22T08:56:54.000Z | authors/apps/comments/renderers.py | kimbugp/ah-haven-space-sprinters | 00e08131d1c4d7785f127f8e1beb17488c8ca0fd | [
"BSD-3-Clause"
] | 37 | 2019-03-19T09:33:42.000Z | 2019-04-30T20:02:02.000Z | authors/apps/comments/renderers.py | kimbugp/ah-haven-space-sprinters | 00e08131d1c4d7785f127f8e1beb17488c8ca0fd | [
"BSD-3-Clause"
] | 4 | 2019-06-29T11:50:41.000Z | 2019-12-09T02:17:05.000Z | from ..authentication.default_renderer import BaseRenderer
class CommentRenderer(BaseRenderer):
data = 'comment'
class ReplyRenderer(BaseRenderer):
data = 'reply'
| 17.5 | 58 | 0.765714 | 16 | 175 | 8.3125 | 0.75 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148571 | 175 | 9 | 59 | 19.444444 | 0.892617 | 0 | 0 | 0 | 0 | 0 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f17bf1244dd36a3e21bd0fd531578f1a4f303a92 | 167 | py | Python | MobiliumServer/mobilium_server/message_handler.py | homersoft/Mobilium | 328329589edd83e67ba629d56867e46395cf8c24 | [
"MIT"
] | 14 | 2020-04-24T09:22:31.000Z | 2020-04-30T06:28:46.000Z | MobiliumServer/mobilium_server/message_handler.py | homersoft/Mobilium | 328329589edd83e67ba629d56867e46395cf8c24 | [
"MIT"
] | null | null | null | MobiliumServer/mobilium_server/message_handler.py | homersoft/Mobilium | 328329589edd83e67ba629d56867e46395cf8c24 | [
"MIT"
] | null | null | null | class MessageHandler:
def __init__(self, name: str):
self.name = name
self.broker = None
def process_message(self, data: bytes):
pass
| 20.875 | 43 | 0.610778 | 20 | 167 | 4.85 | 0.7 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299401 | 167 | 7 | 44 | 23.857143 | 0.82906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
74d29f50d8b3674fbfa224bc00039bb574200ee7 | 106 | py | Python | salesforce_bulk/__init__.py | pelucid/salesforce_bulk | 1adf711a3a20f021ec8a93aefca0d240f2cf9859 | [
"MIT"
] | 1 | 2021-07-01T20:27:10.000Z | 2021-07-01T20:27:10.000Z | salesforce_bulk/__init__.py | pelucid/salesforce_bulk | 1adf711a3a20f021ec8a93aefca0d240f2cf9859 | [
"MIT"
] | null | null | null | salesforce_bulk/__init__.py | pelucid/salesforce_bulk | 1adf711a3a20f021ec8a93aefca0d240f2cf9859 | [
"MIT"
] | 1 | 2017-05-24T14:52:29.000Z | 2017-05-24T14:52:29.000Z | from salesforce_bulk import SalesforceBulk
from csv_adapter import CsvDictsAdapter
__version__ = '1.0.7'
| 21.2 | 42 | 0.839623 | 14 | 106 | 5.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.113208 | 106 | 4 | 43 | 26.5 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 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 |
74f3d3bbfdeacc8ab7bb63f4d0fcdc8775ca99d5 | 400 | py | Python | src/openne/dataloaders/__init__.py | zhangzw16/OpenNE | 3a5ceec95da6c090537a288a7e521bc9eed1718e | [
"MIT"
] | 4 | 2020-09-21T07:32:36.000Z | 2021-06-09T07:23:34.000Z | src/openne/dataloaders/__init__.py | Bznkxs/OpenNE | 046b038d32a29e9f377163c2bc80dda949629483 | [
"MIT"
] | 1 | 2020-12-02T03:32:45.000Z | 2020-12-02T03:32:45.000Z | src/openne/dataloaders/__init__.py | zhangzw16/OpenNE | 3a5ceec95da6c090537a288a7e521bc9eed1718e | [
"MIT"
] | 3 | 2020-07-04T12:43:53.000Z | 2021-08-05T09:47:26.000Z | from .graph import Dataset, Graph, LocalFile, Adapter, NetResources, create_self_defined_dataset
from .matlab_matrix import MatlabMatrix, PPI, Wikipedia, Flickr, BlogCatalog
from .wiki import Wiki
from .planetoid_dataset import PubMed, Cora, CiteSeer
datasetlist = [PPI, Wikipedia, Flickr, BlogCatalog, Wiki, PubMed, Co... | 44.444444 | 96 | 0.8 | 50 | 400 | 6.22 | 0.58 | 0.07717 | 0.115756 | 0.186495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1175 | 400 | 8 | 97 | 50 | 0.88102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2d0dedf3e19aa5431f7c7ffa9ff911d4eef55ec2 | 130,436 | py | Python | tests/examples/minlplib/pooling_foulds5stp.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/pooling_foulds5stp.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/pooling_foulds5stp.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # NLP written by GAMS Convert at 04/21/18 13:53:11
#
# Equation counts
# Total E G L N X C B
# 1080 1033 0 47 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 41.17298 | 120 | 0.599382 | 25,561 | 130,436 | 3.058605 | 0.073393 | 0.044589 | 0.20395 | 0.180095 | 0.636497 | 0.372674 | 0.372597 | 0.372495 | 0.372495 | 0.065924 | 0 | 0.249785 | 0.178202 | 130,436 | 3,167 | 121 | 41.18598 | 0.479569 | 0.005198 | 0 | 0.002906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000484 | 0 | 0.000484 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2d0e17d21330325edde92f4b7e44733cd59749fc | 201 | py | Python | python/app/exceptions.py | VKFisher/enigma | 2f897038ea6aae731909c0fbd3965e06c6966a3d | [
"MIT"
] | null | null | null | python/app/exceptions.py | VKFisher/enigma | 2f897038ea6aae731909c0fbd3965e06c6966a3d | [
"MIT"
] | null | null | null | python/app/exceptions.py | VKFisher/enigma | 2f897038ea6aae731909c0fbd3965e06c6966a3d | [
"MIT"
] | null | null | null | class EnigmaException(Exception):
pass
class PlugboardException(EnigmaException):
pass
class ReflectorException(EnigmaException):
pass
class RotorException(EnigmaException):
pass
| 13.4 | 42 | 0.771144 | 16 | 201 | 9.6875 | 0.4375 | 0.174194 | 0.309677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169154 | 201 | 14 | 43 | 14.357143 | 0.928144 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2d2d64b631388d0ca9f923a67970a7645007cb85 | 225 | py | Python | open_seq2seq/encoders/__init__.py | Shikherneo2/OpenSeq2Seq | 28e5fde54ac4de4de3fce09c68d4f0fb5743f4de | [
"Apache-2.0"
] | null | null | null | open_seq2seq/encoders/__init__.py | Shikherneo2/OpenSeq2Seq | 28e5fde54ac4de4de3fce09c68d4f0fb5743f4de | [
"Apache-2.0"
] | null | null | null | open_seq2seq/encoders/__init__.py | Shikherneo2/OpenSeq2Seq | 28e5fde54ac4de4de3fce09c68d4f0fb5743f4de | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 NVIDIA Corporation
"""
This package contains various encoders.
An encoder typically takes data and produces representation.
"""
from .encoder import Encoder
from .tacotron2_encoder import Tacotron2Encoder | 32.142857 | 60 | 0.817778 | 27 | 225 | 6.777778 | 0.814815 | 0.142077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030457 | 0.124444 | 225 | 7 | 61 | 32.142857 | 0.898477 | 0.617778 | 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 |
2d3866e9220e3f7f155c84deb39f0e41c4f256eb | 323 | py | Python | respet/context.py | jjleewustledu/NiftyPETy | 6d0a84d20beb7a3692e01c306b4ac96ea6d12d48 | [
"Apache-2.0"
] | null | null | null | respet/context.py | jjleewustledu/NiftyPETy | 6d0a84d20beb7a3692e01c306b4ac96ea6d12d48 | [
"Apache-2.0"
] | null | null | null | respet/context.py | jjleewustledu/NiftyPETy | 6d0a84d20beb7a3692e01c306b4ac96ea6d12d48 | [
"Apache-2.0"
] | null | null | null | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'NiftyPETd', 'NIMPA', 'niftypet')))
import niftypet.nimpa
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'NiftyPETd', 'NIPET', 'niftypet')))
import niftypet.nip... | 46.142857 | 128 | 0.665635 | 44 | 323 | 4.704545 | 0.318182 | 0.173913 | 0.125604 | 0.135266 | 0.608696 | 0.608696 | 0.608696 | 0.608696 | 0.608696 | 0.608696 | 0 | 0.006689 | 0.074303 | 323 | 6 | 129 | 53.833333 | 0.685619 | 0 | 0 | 0 | 0 | 0 | 0.173375 | 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 | 1 | 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 |
2d399f519fc666daeabc3c5a0364c1bc8774bfe8 | 49 | py | Python | core/const.py | biobdeveloper/ormc | 413d3362fdf5cd7f171dfdb56ab00299099339ed | [
"MIT"
] | 9 | 2022-01-22T19:10:58.000Z | 2022-01-27T12:49:57.000Z | core/const.py | biobdeveloper/ormc | 413d3362fdf5cd7f171dfdb56ab00299099339ed | [
"MIT"
] | null | null | null | core/const.py | biobdeveloper/ormc | 413d3362fdf5cd7f171dfdb56ab00299099339ed | [
"MIT"
] | null | null | null | import pytest
SUPPORTED_ORMS = ("sa", "django")
| 12.25 | 33 | 0.693878 | 6 | 49 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 49 | 3 | 34 | 16.333333 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 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 |
2d43fccf17e7ad0e390d493788071c51f4b82304 | 291 | py | Python | aiopika/__init__.py | Fanto94/aiopika | c2da34e3169dc1592cbf89076fd6024285e2f206 | [
"MIT"
] | 1 | 2019-11-12T16:58:26.000Z | 2019-11-12T16:58:26.000Z | aiopika/__init__.py | Fanto94/aiopika | c2da34e3169dc1592cbf89076fd6024285e2f206 | [
"MIT"
] | null | null | null | aiopika/__init__.py | Fanto94/aiopika | c2da34e3169dc1592cbf89076fd6024285e2f206 | [
"MIT"
] | null | null | null | try:
import uvloop
uvloop.install()
del uvloop
except ImportError:
pass
__version__ = '0.1.0'
PRODUCT = "Aiopika Python Client Library"
from .parameter import *
from .exceptions import *
from .credentials import *
from .connection import *
from .channel import *
| 16.166667 | 41 | 0.694158 | 34 | 291 | 5.823529 | 0.647059 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.226804 | 291 | 17 | 42 | 17.117647 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.117241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.538462 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
7449fad762e6bb963a2473fcdf4f69078c4006a1 | 183 | py | Python | src/sort/__init__.py | ahmadgh74/clrs | 2a5158036240ebea627315dce6e82346ac333e35 | [
"MIT"
] | null | null | null | src/sort/__init__.py | ahmadgh74/clrs | 2a5158036240ebea627315dce6e82346ac333e35 | [
"MIT"
] | null | null | null | src/sort/__init__.py | ahmadgh74/clrs | 2a5158036240ebea627315dce6e82346ac333e35 | [
"MIT"
] | null | null | null | from .insertion_sort import insertion_sort
from .merge_sort import merge_sort
from .heap_sort import heap_sort
__all__ = [
'insertion_sort',
'merge_sort',
'heap_sort',
]
| 18.3 | 42 | 0.743169 | 25 | 183 | 4.92 | 0.28 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174863 | 183 | 9 | 43 | 20.333333 | 0.81457 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
74772278a4e47b3098aab9b8a00da6c5a7a70523 | 325 | py | Python | bynamodb/exceptions.py | Gaechi/BynamoDB | f936e0a173bf2b30dabd35e4e36cee647c5fe94b | [
"MIT"
] | 1 | 2015-01-06T07:07:52.000Z | 2015-01-06T07:07:52.000Z | bynamodb/exceptions.py | BalanceCareerInc/BynamoDB | f936e0a173bf2b30dabd35e4e36cee647c5fe94b | [
"MIT"
] | null | null | null | bynamodb/exceptions.py | BalanceCareerInc/BynamoDB | f936e0a173bf2b30dabd35e4e36cee647c5fe94b | [
"MIT"
] | null | null | null | class NullAttributeException(Exception):
"""Raised when the attribute which is not nullable is missing."""
pass
class ItemNotFoundException(Exception):
"""Raised when the item is not found"""
pass
class ConditionNotRecognizedException(Exception):
"""Raised when the condition is not found"""
... | 23.214286 | 69 | 0.726154 | 36 | 325 | 6.555556 | 0.5 | 0.190678 | 0.241525 | 0.279661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187692 | 325 | 13 | 70 | 25 | 0.893939 | 0.406154 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 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 |
77cddda65f4cfdf848b0e17ee751ba3dc01631e2 | 1,373 | py | Python | aula9/aula9.py | diegocolombo1989/Trabalho-Python | 4603117bebfb6e801c3289e108b4e8f29442ab6f | [
"MIT"
] | 1 | 2020-03-09T13:38:55.000Z | 2020-03-09T13:38:55.000Z | Aula 9/Aula9.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | null | null | null | Aula 9/Aula9.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | null | null | null | # Aula 9 - 19-11-2019
#--- Crie um programa que:
#--- 1- Leia dois numeros inteiros
#--- 2- Calcule a soma entre os dois numeros atraves de um metodo
#--- 3- Calcule a subtracao entre os dois numeros atraves de um metodo
#--- 4- Calcule a multiplicacao entre os dois numeros atraves de um metodo
#--- 5- Calcule a divisa... | 42.90625 | 79 | 0.680262 | 239 | 1,373 | 3.90795 | 0.305439 | 0.094218 | 0.082441 | 0.134904 | 0.408994 | 0.326552 | 0.262313 | 0.262313 | 0 | 0 | 0 | 0.040316 | 0.168973 | 1,373 | 32 | 80 | 42.90625 | 0.778265 | 0.534596 | 0 | 0 | 0 | 0.6 | 0.650564 | 0.035427 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.7 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
77e6a0d33128e64556f30561bd7963e49b74602c | 1,987 | py | Python | tests/api.py | Noneus/slojsonrpc | 33b5d79486e1562fe4fc7b73b8f3014535168b03 | [
"MIT"
] | null | null | null | tests/api.py | Noneus/slojsonrpc | 33b5d79486e1562fe4fc7b73b8f3014535168b03 | [
"MIT"
] | null | null | null | tests/api.py | Noneus/slojsonrpc | 33b5d79486e1562fe4fc7b73b8f3014535168b03 | [
"MIT"
] | null | null | null | '''
The MIT License (MIT)
Copyright (c) 2014 Stefan Lohmaier
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, mer... | 31.046875 | 80 | 0.691495 | 263 | 1,987 | 5.197719 | 0.494297 | 0.064375 | 0.035113 | 0.01902 | 0.05267 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006702 | 0.249119 | 1,987 | 63 | 81 | 31.539683 | 0.909517 | 0.544036 | 0 | 0.142857 | 0 | 0 | 0.025612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.392857 | false | 0.071429 | 0.035714 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
ae017ccc7ef464904862a1444fb537ac1fe26815 | 238 | py | Python | archived/algorithms/baselines/dqn/__init__.py | Justin-Yuan/efficient-rl | 2ec3e43d346235c92227147c4f9c27c6bed5c1b3 | [
"MIT"
] | null | null | null | archived/algorithms/baselines/dqn/__init__.py | Justin-Yuan/efficient-rl | 2ec3e43d346235c92227147c4f9c27c6bed5c1b3 | [
"MIT"
] | null | null | null | archived/algorithms/baselines/dqn/__init__.py | Justin-Yuan/efficient-rl | 2ec3e43d346235c92227147c4f9c27c6bed5c1b3 | [
"MIT"
] | null | null | null | from algorithms.baselines.dqn.dqn_trainer import DQN_CONFIG, BaselineDQNTrainer
from algorithms.baselines.dqn.dqn_policy import BaselineDQNTorchPolicy
__all__ = [
"DQN_CONFIG",
"BaselineDQNTrainer",
"BaselineDQNTorchPolicy"
] | 29.75 | 79 | 0.806723 | 23 | 238 | 8 | 0.478261 | 0.152174 | 0.25 | 0.282609 | 0.315217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 238 | 8 | 80 | 29.75 | 0.87619 | 0 | 0 | 0 | 0 | 0 | 0.209205 | 0.09205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 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 |
7add7d1a464899cedc97ea05e8a4ae294d302257 | 212 | py | Python | 33 def module.py | thanwaimdy/Others | e64b45d5b8113c745b6dfecfd54d731c9b0f27a6 | [
"MIT"
] | null | null | null | 33 def module.py | thanwaimdy/Others | e64b45d5b8113c745b6dfecfd54d731c9b0f27a6 | [
"MIT"
] | null | null | null | 33 def module.py | thanwaimdy/Others | e64b45d5b8113c745b6dfecfd54d731c9b0f27a6 | [
"MIT"
] | null | null | null | # this is the module which i will be
#calling and using again and again
def kolar():
print("I am a new module which will work i am call")
# this file save with same python path with new file name
| 23.555556 | 57 | 0.688679 | 39 | 212 | 3.74359 | 0.692308 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264151 | 212 | 8 | 58 | 26.5 | 0.935897 | 0.584906 | 0 | 0 | 0 | 0 | 0.511905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
7af425244b357a53f44f12c111d2536b36335be5 | 142 | py | Python | code/genric/model/__init__.py | wendazhou/reversible-inductive-construction | 14815d1b5ef5a35a569c0793888bc5548acd64be | [
"MIT"
] | 31 | 2019-07-22T23:34:43.000Z | 2021-09-10T14:28:53.000Z | code/genric/model/__init__.py | wendazhou/reversible-inductive-construction | 14815d1b5ef5a35a569c0793888bc5548acd64be | [
"MIT"
] | null | null | null | code/genric/model/__init__.py | wendazhou/reversible-inductive-construction | 14815d1b5ef5a35a569c0793888bc5548acd64be | [
"MIT"
] | 3 | 2019-12-03T14:12:45.000Z | 2020-07-17T14:50:18.000Z | """ Main module for model code and utilities. """
from . import nn
from ._autograd_range import autograd_range
from . import classification
| 20.285714 | 49 | 0.767606 | 19 | 142 | 5.578947 | 0.684211 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161972 | 142 | 6 | 50 | 23.666667 | 0.890756 | 0.288732 | 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 |
bb1228e6b27046db64a7376fc00205b847228d52 | 4,577 | py | Python | chess/resources.py | otaviocarvalho/chess-negamax | 21f1066611e581dac3257d3f46c71ca2b09b5964 | [
"MIT"
] | null | null | null | chess/resources.py | otaviocarvalho/chess-negamax | 21f1066611e581dac3257d3f46c71ca2b09b5964 | [
"MIT"
] | null | null | null | chess/resources.py | otaviocarvalho/chess-negamax | 21f1066611e581dac3257d3f46c71ca2b09b5964 | [
"MIT"
] | null | null | null | import os
import glob
import wx
import chess
__all__ = ['Resources']
class Resources(object):
def __init__(self):
self.bitmaps = {}
self.bitmaps['r'] = wx.Bitmap('assets/pieces/br.png', wx.BITMAP_TYPE_PNG)
self.bitmaps['n'] = wx.Bitmap('assets/pieces/bn.png', wx.BITMAP_TYPE_PNG)
... | 69.348485 | 123 | 0.715316 | 659 | 4,577 | 4.713202 | 0.118361 | 0.221507 | 0.193818 | 0.202833 | 0.812621 | 0.584353 | 0.584353 | 0.557952 | 0.42756 | 0.160979 | 0 | 0.002008 | 0.129342 | 4,577 | 66 | 124 | 69.348485 | 0.777415 | 0.017697 | 0 | 0 | 0 | 0 | 0.37842 | 0.286096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0.019231 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bb19a64dc681564ede5262f1e82b1c3181d102ee | 29 | py | Python | lace/__init__.py | bodylabs/lace | a6ae80787c8c6ba197bd9bad9254b503f4e05c73 | [
"BSD-2-Clause"
] | 2 | 2020-05-30T10:28:34.000Z | 2021-02-17T13:47:23.000Z | lace/__init__.py | lace/lace | a6ae80787c8c6ba197bd9bad9254b503f4e05c73 | [
"BSD-2-Clause"
] | 11 | 2019-08-29T16:53:29.000Z | 2021-07-01T06:24:37.000Z | lace/__init__.py | bodylabs/lace | a6ae80787c8c6ba197bd9bad9254b503f4e05c73 | [
"BSD-2-Clause"
] | 5 | 2017-05-09T16:18:16.000Z | 2018-05-08T16:16:09.000Z | __version__ = '5.0.0-beta.1'
| 14.5 | 28 | 0.655172 | 6 | 29 | 2.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.103448 | 29 | 1 | 29 | 29 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 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 |
bb2a918b9ed4963d2b2ea438c911e8b552697e86 | 264 | py | Python | gpMgmt/test/behave/mgmt_utils/steps/data/pid_background_script.py | henglabs/gpdb | 09a8cc05ac90d63c64c6d432ca35179b55a461b2 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gpMgmt/test/behave/mgmt_utils/steps/data/pid_background_script.py | henglabs/gpdb | 09a8cc05ac90d63c64c6d432ca35179b55a461b2 | [
"PostgreSQL",
"Apache-2.0"
] | 6 | 2018-08-04T07:51:37.000Z | 2018-11-26T07:09:44.000Z | gpMgmt/test/behave/mgmt_utils/steps/data/pid_background_script.py | henglabs/gpdb | 09a8cc05ac90d63c64c6d432ca35179b55a461b2 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
import time
import signal
signal.signal(signal.SIGTERM, signal.SIG_IGN)
signal.signal(signal.SIGHUP, signal.SIG_IGN)
signal.signal(signal.SIGINT, signal.SIG_IGN)
signal.signal(signal.SIGPIPE, signal.SIG_IGN)
while True:
time.sleep(1)
| 20.307692 | 45 | 0.784091 | 41 | 264 | 4.95122 | 0.414634 | 0.53202 | 0.44335 | 0.26601 | 0.44335 | 0.44335 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.090909 | 264 | 12 | 46 | 22 | 0.8375 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2482e246b7d05b971e8b577312c0d6a27948f860 | 102 | py | Python | output/models/ms_data/regex/regex_test_80_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/regex_test_80_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/regex_test_80_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.regex_test_80_xsd.regex_test_80 import Doc
__all__ = [
"Doc",
]
| 17 | 75 | 0.754902 | 17 | 102 | 3.941176 | 0.705882 | 0.268657 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.137255 | 102 | 5 | 76 | 20.4 | 0.715909 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
248f86402aff0c88689d75bbc838856c31f2921b | 267 | py | Python | appengine_config.py | Lopez6969/chromium-dashboard | b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2 | [
"Apache-2.0"
] | null | null | null | appengine_config.py | Lopez6969/chromium-dashboard | b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2 | [
"Apache-2.0"
] | null | null | null | appengine_config.py | Lopez6969/chromium-dashboard | b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
from __future__ import print_function
import os
# name of the django settings module
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from google.appengine.ext import vendor
vendor.add('lib') # add third party libs to "lib" folder.
| 26.7 | 57 | 0.794007 | 39 | 267 | 5.153846 | 0.641026 | 0.099502 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131086 | 267 | 9 | 58 | 29.666667 | 0.866379 | 0.269663 | 0 | 0 | 0 | 0 | 0.171875 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.166667 | 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 |
24ceb27bfca07293f3c6d6dc5dee17019dd64918 | 336 | py | Python | kilojoule/templates/kSI.py | johnfmaddox/kilojoule | b4c146ded82e3ef51a0252ff48b1066a076e9aeb | [
"MIT"
] | null | null | null | kilojoule/templates/kSI.py | johnfmaddox/kilojoule | b4c146ded82e3ef51a0252ff48b1066a076e9aeb | [
"MIT"
] | null | null | null | kilojoule/templates/kSI.py | johnfmaddox/kilojoule | b4c146ded82e3ef51a0252ff48b1066a076e9aeb | [
"MIT"
] | null | null | null | from kilojoule.templates.SI import *
p.set_units('kPa')
u.set_units('kJ/kg')
h.set_units('kJ/kg')
s.set_units('kJ/kg/K')
X.set_units('kJ')
Xdot.set_units('kW')
phi.set_units('kJ/kg')
psi.set_units('kJ/kg')
M.set_units('kg/kmol')
N.set_units('kmol')
R.set_units('kJ/kg/K')
c_v.set_units('kJ/kg/K')
c_p.set_... | 22.4 | 37 | 0.666667 | 72 | 336 | 2.902778 | 0.361111 | 0.497608 | 0.430622 | 0.45933 | 0.258373 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092262 | 336 | 15 | 38 | 22.4 | 0.685246 | 0 | 0 | 0 | 0 | 0 | 0.204334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
70091d2958f513b7f4ab0d938b7e19724bc59589 | 87 | py | Python | example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Spherical Harmonics/Conjugate spherical harmonics.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Spherical Harmonics/Conjugate spherical harmonics.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/NewSnippets/SymPy/Functions/Special functions/Spherical Harmonics/Conjugate spherical harmonics.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | vartheta, varphi = symbols("vartheta, varphi", real=True)
Ynm_c(n, m, vartheta, varphi) | 43.5 | 57 | 0.735632 | 13 | 87 | 4.846154 | 0.692308 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 87 | 2 | 58 | 43.5 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
701c6de69feac585676d0f10e650700c99f708c0 | 320 | py | Python | avdal/cache/__init__.py | hazimavdal/pip | b77a605e32730b98b0f70883ee222d38e092c162 | [
"MIT"
] | null | null | null | avdal/cache/__init__.py | hazimavdal/pip | b77a605e32730b98b0f70883ee222d38e092c162 | [
"MIT"
] | null | null | null | avdal/cache/__init__.py | hazimavdal/pip | b77a605e32730b98b0f70883ee222d38e092c162 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Cache(ABC):
@abstractmethod
def get(self, key):
raise NotImplementedError
@abstractmethod
def set(self, key, value, ttl=None):
raise NotImplementedError
@abstractmethod
def incr(self, key, amount=1):
raise NotImplementedError
| 20 | 40 | 0.675 | 34 | 320 | 6.352941 | 0.558824 | 0.236111 | 0.351852 | 0.37963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.25 | 320 | 15 | 41 | 21.333333 | 0.895833 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
702e128b8f588ec2bfd9bcfa609ab755cef1acda | 362 | py | Python | apps/covid_19/preprocess/mixing_matrix/static.py | malanchak/AuTuMN | 0cbd006d1f15da414d02eed44e48bb5c06f0802e | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | apps/covid_19/preprocess/mixing_matrix/static.py | malanchak/AuTuMN | 0cbd006d1f15da414d02eed44e48bb5c06f0802e | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | apps/covid_19/preprocess/mixing_matrix/static.py | malanchak/AuTuMN | 0cbd006d1f15da414d02eed44e48bb5c06f0802e | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import numpy as np
from autumn.inputs import get_country_mixing_matrix
def build_static(country_iso3: str) -> np.ndarray:
"""
Get a non-time-varying mixing matrix for a country.
Each row/column represents a 5 year age bucket.
Matrix is 16x16, representing ages 0-80+
"""
return get_country_mix... | 27.846154 | 67 | 0.740331 | 55 | 362 | 4.690909 | 0.709091 | 0.139535 | 0.124031 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.185083 | 362 | 12 | 68 | 30.166667 | 0.840678 | 0.38674 | 0 | 0 | 0 | 0 | 0.065657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
704e0ffa3865f7a324ee7ddf0db19406c5dfc0eb | 342 | py | Python | examples/test_operators.py | HighCWu/tpythonpp | f1c15e1101993e4c9c7529739823b47759ea13f7 | [
"PSF-2.0"
] | null | null | null | examples/test_operators.py | HighCWu/tpythonpp | f1c15e1101993e4c9c7529739823b47759ea13f7 | [
"PSF-2.0"
] | null | null | null | examples/test_operators.py | HighCWu/tpythonpp | f1c15e1101993e4c9c7529739823b47759ea13f7 | [
"PSF-2.0"
] | null | null | null | def test():
print('testing basic math ops')
assert 1+1 == 2
assert 10-1 == 9
assert 10 / 2 == 5
assert int(100.9) == 100
print('testing bitwise ops')
print(100 ^ 0xd008)
assert 100 ^ 0xd008 == 53356
print( 100 & 199 )
assert (100 & 199) == 68
## TODO fixme
print('TODO fix `100 & 199 == 68`')
assert 10... | 17.1 | 36 | 0.596491 | 55 | 342 | 3.709091 | 0.418182 | 0.117647 | 0.117647 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258687 | 0.24269 | 342 | 19 | 37 | 18 | 0.528958 | 0.02924 | 0 | 0 | 0 | 0 | 0.203647 | 0 | 0 | 0 | 0.036474 | 0.052632 | 0.5 | 1 | 0.071429 | true | 0 | 0 | 0 | 0.071429 | 0.357143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7066d65af21c16fbafa09a49510aeb0eb800ec2e | 93 | py | Python | app/router.py | jarcoal/django-project | 0af92dc35b3007e1e76c286ca7287a7bb90955a2 | [
"MIT"
] | 1 | 2021-07-18T23:29:57.000Z | 2021-07-18T23:29:57.000Z | app/router.py | jarcoal/django-project | 0af92dc35b3007e1e76c286ca7287a7bb90955a2 | [
"MIT"
] | null | null | null | app/router.py | jarcoal/django-project | 0af92dc35b3007e1e76c286ca7287a7bb90955a2 | [
"MIT"
] | null | null | null | from rest_framework import routers
from app import viewsets
router = routers.SimpleRouter()
| 18.6 | 34 | 0.827957 | 12 | 93 | 6.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 93 | 4 | 35 | 23.25 | 0.938272 | 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 |
5631dc57a875c21df0a6649c6830a58d3500b4fe | 4,151 | py | Python | tests/devdeck_slack/test_slack_status_control.py | jamesridgway/devdeck-slack | 07d3e30124f80c10dba9f59954ff6595a65ff0a6 | [
"BSD-3-Clause"
] | 9 | 2021-02-04T00:11:46.000Z | 2022-02-21T18:36:29.000Z | tests/devdeck_slack/test_slack_status_control.py | jamesridgway/devdeck-slack | 07d3e30124f80c10dba9f59954ff6595a65ff0a6 | [
"BSD-3-Clause"
] | 1 | 2021-07-03T09:51:04.000Z | 2021-07-03T09:51:04.000Z | tests/devdeck_slack/test_slack_status_control.py | jamesridgway/devdeck-slack | 07d3e30124f80c10dba9f59954ff6595a65ff0a6 | [
"BSD-3-Clause"
] | 1 | 2021-06-27T12:13:11.000Z | 2021-06-27T12:13:11.000Z | import math
from unittest import mock
import time
import parsedatetime
import tzlocal
from devdeck_core.mock_deck_context import mock_context, assert_rendered
from devdeck_core.renderer import Renderer
from devdeck_slack.slack_status_control import SlackStatusControl
class TestSlackStatusControl:
@mock.patch('... | 40.696078 | 98 | 0.613828 | 452 | 4,151 | 5.338496 | 0.183628 | 0.093245 | 0.041442 | 0.049316 | 0.73104 | 0.73104 | 0.73104 | 0.71322 | 0.666805 | 0.625363 | 0 | 0.006201 | 0.261865 | 4,151 | 101 | 99 | 41.09901 | 0.781332 | 0 | 0 | 0.611111 | 0 | 0 | 0.161407 | 0 | 0 | 0 | 0 | 0 | 0.144444 | 1 | 0.077778 | false | 0 | 0.088889 | 0 | 0.177778 | 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 |
5655ac1a77dfa94abb444de9099c23de30ccc7ca | 151 | py | Python | ola_rent/vehicles/__init__.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | ola_rent/vehicles/__init__.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | ola_rent/vehicles/__init__.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | from .director import Director
from .toyota import ToyotaBuilder
from .ford import FordBuilder
from .hyundai import HyundaiBuilder
from .car import Car | 30.2 | 35 | 0.84106 | 20 | 151 | 6.35 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125828 | 151 | 5 | 36 | 30.2 | 0.962121 | 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 |
567be9aceecef596ffc3e1f68d839702cba9cad6 | 35 | py | Python | tests/__init__.py | Rockbag/lenah | 820b5f8bc4f640e02fc5c15e27a5cac1dad1c788 | [
"MIT"
] | 1 | 2021-10-06T11:30:59.000Z | 2021-10-06T11:30:59.000Z | tests/__init__.py | Rockbag/lenah | 820b5f8bc4f640e02fc5c15e27a5cac1dad1c788 | [
"MIT"
] | null | null | null | tests/__init__.py | Rockbag/lenah | 820b5f8bc4f640e02fc5c15e27a5cac1dad1c788 | [
"MIT"
] | null | null | null | """Unit test package for lenah."""
| 17.5 | 34 | 0.657143 | 5 | 35 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 1 | 35 | 35 | 0.766667 | 0.8 | 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 |
567ceb0d40ea6b96121a1a79c828d67d7c707226 | 193 | py | Python | backend/recordbin/models/__init__.py | gtalarico/recordbin-api | 3533b3558f3f247672840b2c2c33d6ffd71d2517 | [
"MIT"
] | null | null | null | backend/recordbin/models/__init__.py | gtalarico/recordbin-api | 3533b3558f3f247672840b2c2c33d6ffd71d2517 | [
"MIT"
] | 1 | 2018-12-06T01:48:40.000Z | 2018-12-06T01:48:40.000Z | backend/recordbin/models/__init__.py | gtalarico/recordbin | 3533b3558f3f247672840b2c2c33d6ffd71d2517 | [
"MIT"
] | null | null | null |
from .user import User
from .record import Record, RecordSerializer # noqa
from .app import App, AppSerializer, AppToken, AppTokenSerializer # noqa
ALL_MODELS = [Record, App, AppToken, User]
| 27.571429 | 72 | 0.777202 | 24 | 193 | 6.208333 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145078 | 193 | 6 | 73 | 32.166667 | 0.90303 | 0.046632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5684cd4d5b05586a7e561bb7d1b2a6d0b304a2bb | 203 | py | Python | django_ratelimit/apps.py | mohammadrabetian/django-ratelimit | 93646ccd9569fc13cddb77b39ff775f91af1b817 | [
"Apache-2.0"
] | 2 | 2021-08-20T19:57:17.000Z | 2022-01-03T15:50:23.000Z | django_ratelimit/apps.py | mohammadrabetian/django-ratelimit | 93646ccd9569fc13cddb77b39ff775f91af1b817 | [
"Apache-2.0"
] | 1 | 2021-06-21T13:12:36.000Z | 2021-06-21T13:12:36.000Z | django_ratelimit/apps.py | mohammadrabetian/django-ratelimit | 93646ccd9569fc13cddb77b39ff775f91af1b817 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class RateLimitConfig(AppConfig):
name = "django_ratelimit"
def ready(self):
import django_ratelimit.signals
| 18.454545 | 39 | 0.763547 | 23 | 203 | 6.434783 | 0.695652 | 0.202703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182266 | 203 | 10 | 40 | 20.3 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0.078818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
569054497f9d4d5b0490d351f03b94eeed803b8b | 112 | py | Python | test/unit/shed_unit/__init__.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 1,085 | 2015-02-18T16:14:38.000Z | 2022-03-30T23:52:07.000Z | test/unit/shed_unit/__init__.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 11,253 | 2015-02-18T17:47:32.000Z | 2022-03-31T21:47:03.000Z | test/unit/shed_unit/__init__.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 1,000 | 2015-02-18T16:18:10.000Z | 2022-03-29T08:22:56.000Z | """
Module cannot be called tool_shed, because this conflicts with lib/tool_shed
also at top level of path.
"""
| 22.4 | 76 | 0.758929 | 19 | 112 | 4.368421 | 0.894737 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 112 | 4 | 77 | 28 | 0.882979 | 0.919643 | 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 |
56a11958d045f8c772005c129799c418a4916af6 | 62 | py | Python | tests/__init__.py | etijskens/utils | 6232e9d897cb0be4d61bb156d2c94d4d7d53936a | [
"MIT"
] | null | null | null | tests/__init__.py | etijskens/utils | 6232e9d897cb0be4d61bb156d2c94d4d7d53936a | [
"MIT"
] | null | null | null | tests/__init__.py | etijskens/utils | 6232e9d897cb0be4d61bb156d2c94d4d7d53936a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Unit test package for utils.
"""
| 10.333333 | 28 | 0.532258 | 8 | 62 | 4.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.209677 | 62 | 5 | 29 | 12.4 | 0.653061 | 0.822581 | 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 |
3b731beabb49dd0bf511e7898bb89bf3879101b6 | 197 | py | Python | src/app.py | koddas/python-oop-consistency-lab | 8ee3124aa230359d296fdfbe0c23773602769c8c | [
"MIT"
] | null | null | null | src/app.py | koddas/python-oop-consistency-lab | 8ee3124aa230359d296fdfbe0c23773602769c8c | [
"MIT"
] | null | null | null | src/app.py | koddas/python-oop-consistency-lab | 8ee3124aa230359d296fdfbe0c23773602769c8c | [
"MIT"
] | null | null | null | '''
This is from where we run the program. Yay!
'''
from controllers.competition import Competition
from boundaries.text_ui import TextUI
competition = Competition(TextUI())
competition.run_game() | 24.625 | 47 | 0.791878 | 26 | 197 | 5.923077 | 0.653846 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116751 | 197 | 8 | 48 | 24.625 | 0.885057 | 0.218274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.