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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2262ab2fed211c56cc26b82d330e225fd54b1a30 | 375 | py | Python | aim2/modules/custom_activations.py | dushanw/DabbaMu-DEEP-TFM | 39f05a486ef4e53576859cd66b9a23d505db33f5 | [
"MIT"
] | null | null | null | aim2/modules/custom_activations.py | dushanw/DabbaMu-DEEP-TFM | 39f05a486ef4e53576859cd66b9a23d505db33f5 | [
"MIT"
] | null | null | null | aim2/modules/custom_activations.py | dushanw/DabbaMu-DEEP-TFM | 39f05a486ef4e53576859cd66b9a23d505db33f5 | [
"MIT"
] | null | null | null |
import torch
def sigmoid_custom(x, m):
return 1/(1+torch.exp(-m*x))
def sigmoid_custom2(x, m, c= 10):
return 1/(1+torch.exp(-m*x+m*c))
def sigmoid_custom2_with_translation(x, m, c=10, p=1, q=0):
x_dash= p*x+ q
return 1/(1+torch.exp(-m*x_dash + m*c))
def unit_func(x, m):
return x
def inc_m(m, e... | 18.75 | 59 | 0.605333 | 81 | 375 | 2.691358 | 0.320988 | 0.045872 | 0.110092 | 0.178899 | 0.247706 | 0.247706 | 0.247706 | 0 | 0 | 0 | 0 | 0.050505 | 0.208 | 375 | 20 | 60 | 18.75 | 0.683502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.214286 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
22654b88ec7878c1c1ad41f7856999def0f469de | 9,190 | py | Python | tests/test_parser.py | d4nuu8/krlparser | 4fad417349821f67442a94f51e4f652ad3635cc0 | [
"MIT"
] | 8 | 2019-09-30T20:11:41.000Z | 2021-07-01T01:24:30.000Z | tests/test_parser.py | d4nuu8/krlparser | 4fad417349821f67442a94f51e4f652ad3635cc0 | [
"MIT"
] | null | null | null | tests/test_parser.py | d4nuu8/krlparser | 4fad417349821f67442a94f51e4f652ad3635cc0 | [
"MIT"
] | 3 | 2019-12-24T08:16:23.000Z | 2021-04-01T14:09:49.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest
from krlparser.parser import Parser
from krlparser.ast import (Module, SourceFile, DataFile, FileAttribute,
FunctionDefinition, DataDefinition, Parameter, Type,
FunctionCall, VariableSymbol)
from krlpars... | 24.63807 | 79 | 0.546572 | 947 | 9,190 | 5.103485 | 0.097149 | 0.097248 | 0.040348 | 0.055038 | 0.792675 | 0.767639 | 0.742603 | 0.719015 | 0.688392 | 0.61556 | 0 | 0.005295 | 0.321872 | 9,190 | 372 | 80 | 24.704301 | 0.770218 | 0.004679 | 0 | 0.65493 | 0 | 0 | 0.112083 | 0 | 0 | 0 | 0 | 0 | 0.045775 | 1 | 0.066901 | false | 0.003521 | 0.014085 | 0 | 0.080986 | 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 |
2271c72c26ed121efa946d004050b23f0e53ad98 | 65 | py | Python | login.py | Suzhihaoa/test1 | 19996452d9a9f53b9ef0c117dfc671d82321bc15 | [
"MIT"
] | null | null | null | login.py | Suzhihaoa/test1 | 19996452d9a9f53b9ef0c117dfc671d82321bc15 | [
"MIT"
] | null | null | null | login.py | Suzhihaoa/test1 | 19996452d9a9f53b9ef0c117dfc671d82321bc15 | [
"MIT"
] | null | null | null | num1 = 10
num2 = 20
num3 = 30
num4 = 40
num5 = 50
end
dev = 100
| 7.222222 | 9 | 0.6 | 13 | 65 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0.307692 | 65 | 8 | 10 | 8.125 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
227cabc5c2f0d6d7ec1e3ae17e5980fb12c49143 | 107 | py | Python | 01_big_O_notation/01_linear_cost/01_linear_cost.py | software-foundations/algorithms | a3f955aaa72a909a9bf9d578387ab6720314b96b | [
"MIT"
] | null | null | null | 01_big_O_notation/01_linear_cost/01_linear_cost.py | software-foundations/algorithms | a3f955aaa72a909a9bf9d578387ab6720314b96b | [
"MIT"
] | null | null | null | 01_big_O_notation/01_linear_cost/01_linear_cost.py | software-foundations/algorithms | a3f955aaa72a909a9bf9d578387ab6720314b96b | [
"MIT"
] | null | null | null | """
O(n)
"""
def linear_cost(n: int) -> None:
for i in range(n):
print(i)
linear_cost(n=3)
| 8.916667 | 32 | 0.514019 | 19 | 107 | 2.789474 | 0.684211 | 0.377358 | 0.415094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.280374 | 107 | 11 | 33 | 9.727273 | 0.675325 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
97d6c89c79ad298dd6708bfde15ad3c34d71c330 | 212 | py | Python | gtorch_utils/nns/models/segmentation/unet3_plus/__init__.py | giussepi/gtorch_utils | 8dfe502b2ef2d7c082354b9f546db5248815af09 | [
"MIT"
] | null | null | null | gtorch_utils/nns/models/segmentation/unet3_plus/__init__.py | giussepi/gtorch_utils | 8dfe502b2ef2d7c082354b9f546db5248815af09 | [
"MIT"
] | null | null | null | gtorch_utils/nns/models/segmentation/unet3_plus/__init__.py | giussepi/gtorch_utils | 8dfe502b2ef2d7c082354b9f546db5248815af09 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" gtorch_utils/nns/models/segmentation/unet3_plus/__init__ """
from gtorch_utils.nns.models.segmentation.unet3_plus.models import UNet_3Plus, UNet_3Plus_DeepSup, UNet_3Plus_DeepSup_CGM
| 42.4 | 121 | 0.801887 | 30 | 212 | 5.2 | 0.566667 | 0.173077 | 0.179487 | 0.25641 | 0.525641 | 0.525641 | 0.525641 | 0 | 0 | 0 | 0 | 0.030457 | 0.070755 | 212 | 4 | 122 | 53 | 0.761421 | 0.377358 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
97e270b1c14263457b7a28be233c03a25ffc349f | 55 | py | Python | genesis/length_scales/cumulant/__init__.py | leifdenby/uclales-extractor | 6147533e25b3b417c744bd814d2407a6588cf995 | [
"BSD-3-Clause"
] | 2 | 2019-12-18T15:39:06.000Z | 2020-07-16T14:44:38.000Z | genesis/length_scales/cumulant/__init__.py | leifdenby/uclales-extractor | 6147533e25b3b417c744bd814d2407a6588cf995 | [
"BSD-3-Clause"
] | 2 | 2019-12-26T11:23:11.000Z | 2020-07-22T10:04:45.000Z | genesis/length_scales/cumulant/__init__.py | leifdenby/uclales-extractor | 6147533e25b3b417c744bd814d2407a6588cf995 | [
"BSD-3-Clause"
] | 1 | 2019-12-18T16:48:39.000Z | 2019-12-18T16:48:39.000Z | from . import calc, sections, vertical_profile # noqa
| 27.5 | 54 | 0.763636 | 7 | 55 | 5.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 55 | 1 | 55 | 55 | 0.891304 | 0.072727 | 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 |
3f1f39998f63cea598794eaca9c9ada64d2dd709 | 452 | py | Python | atest/testdata/variables/extended_variables.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 7,073 | 2015-01-01T17:19:16.000Z | 2022-03-31T22:01:29.000Z | atest/testdata/variables/extended_variables.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 2,412 | 2015-01-02T09:29:05.000Z | 2022-03-31T13:10:46.000Z | atest/testdata/variables/extended_variables.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 2,298 | 2015-01-03T02:47:15.000Z | 2022-03-31T02:00:16.000Z | class ExampleObject:
def __init__(self, name='<noname>'):
self.name = name
def greet(self, name=None):
if not name:
return '%s says hi!' % self.name
if name == 'FAIL':
raise ValueError
return '%s says hi to %s!' % (self.name, name)
def __str... | 21.52381 | 54 | 0.522124 | 54 | 452 | 4.148148 | 0.425926 | 0.25 | 0.107143 | 0.133929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.349558 | 452 | 20 | 55 | 22.6 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.642857 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3f351fc27cc5ac5e31a6ff03b8efb968855aa528 | 270 | py | Python | start_up/it_startup/models.py | noorshanu/start-up-template | c2bc5ece7fcb87613cf5ec91039ac614f726ee6c | [
"MIT"
] | null | null | null | start_up/it_startup/models.py | noorshanu/start-up-template | c2bc5ece7fcb87613cf5ec91039ac614f726ee6c | [
"MIT"
] | null | null | null | start_up/it_startup/models.py | noorshanu/start-up-template | c2bc5ece7fcb87613cf5ec91039ac614f726ee6c | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Contacts(models.Model):
name = models.CharField(max_length=50)
email = models.EmailField(max_length=70)
msg = models.CharField(max_length=400)
def __str__(self):
return self.name
| 19.285714 | 44 | 0.707407 | 37 | 270 | 4.972973 | 0.675676 | 0.146739 | 0.195652 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.196296 | 270 | 13 | 45 | 20.769231 | 0.815668 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3f4f272152ec6c1542110675d893a75141eeceb3 | 24 | py | Python | qcloud_cos/version.py | wucheng/cos-python-sdk-v5 | 58b71e5d21e97e758285cc4199d79d61cc953409 | [
"MIT"
] | null | null | null | qcloud_cos/version.py | wucheng/cos-python-sdk-v5 | 58b71e5d21e97e758285cc4199d79d61cc953409 | [
"MIT"
] | null | null | null | qcloud_cos/version.py | wucheng/cos-python-sdk-v5 | 58b71e5d21e97e758285cc4199d79d61cc953409 | [
"MIT"
] | 2 | 2017-07-26T03:32:38.000Z | 2017-07-26T06:13:26.000Z | __version__ = '5.1.9.7'
| 12 | 23 | 0.625 | 5 | 24 | 2.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.125 | 24 | 1 | 24 | 24 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 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 |
3f5b56e85b0f65ab981f232e2105035769f71b99 | 2,021 | py | Python | src/ImageLibrary/errors.py | oeick/robotframework-imagelibrary | 5c304374be82bbeb8f26256fecf20a4707fd116f | [
"Apache-2.0"
] | null | null | null | src/ImageLibrary/errors.py | oeick/robotframework-imagelibrary | 5c304374be82bbeb8f26256fecf20a4707fd116f | [
"Apache-2.0"
] | null | null | null | src/ImageLibrary/errors.py | oeick/robotframework-imagelibrary | 5c304374be82bbeb8f26256fecf20a4707fd116f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
class CanNotOpenImageException(Exception):
def __init__(self, image_name):
self.image_name = image_name
def __str__(self):
return 'Image file "%s" was not found' % self.image_name
class ImageNotFoundException(Exception):
def __init__(self, image_name):
self... | 29.289855 | 89 | 0.673429 | 250 | 2,021 | 5.108 | 0.272 | 0.084573 | 0.078309 | 0.112764 | 0.362569 | 0.323414 | 0.323414 | 0.274863 | 0.274863 | 0.274863 | 0 | 0.001286 | 0.230579 | 2,021 | 68 | 90 | 29.720588 | 0.819936 | 0.028699 | 0 | 0.416667 | 0 | 0 | 0.191837 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.375 | false | 0 | 0 | 0.208333 | 0.791667 | 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 |
3f62222173f61d3164c438f207cccd4e51f73b17 | 108 | py | Python | Basic's/Lists/Lists1.py | Fahad-Hafeez/Python-Learning | c37f26e10c1d23f5277327c9bc474c19747f2b90 | [
"Apache-2.0"
] | null | null | null | Basic's/Lists/Lists1.py | Fahad-Hafeez/Python-Learning | c37f26e10c1d23f5277327c9bc474c19747f2b90 | [
"Apache-2.0"
] | null | null | null | Basic's/Lists/Lists1.py | Fahad-Hafeez/Python-Learning | c37f26e10c1d23f5277327c9bc474c19747f2b90 | [
"Apache-2.0"
] | null | null | null | names = ['Ronaldo', 'Messi', 'Salah', 'Van Dijk', 'Alisson']
names[0] = 'CR7'
print(names[2:])
print(names) | 27 | 61 | 0.611111 | 15 | 108 | 4.4 | 0.733333 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.12037 | 108 | 4 | 62 | 27 | 0.663158 | 0 | 0 | 0 | 0 | 0 | 0.321101 | 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 |
58c06e475de159dac97e4e7395220cb70a7ab09c | 2,926 | py | Python | stats_eddie/debug/plot.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | 2 | 2019-04-01T00:54:39.000Z | 2021-06-22T18:02:47.000Z | effectiveness_vs_state_of_the_art/debug/plot.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | null | null | null | effectiveness_vs_state_of_the_art/debug/plot.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | 2 | 2018-06-20T14:50:03.000Z | 2020-08-27T01:55:34.000Z | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from scipy.interpolate import interp1d
tweets=pd.read_csv("final_incomplete_tweets.csv",sep =',')
#tweets=tweets[['inverted_loss','current_minus_entry','entry_batch']]
#tweets=tweets[tweets.entry_batch==2]
print(tweets)
tweets_org=tweets[['invert... | 43.029412 | 314 | 0.761449 | 485 | 2,926 | 4.45567 | 0.284536 | 0.007404 | 0.033318 | 0.040722 | 0.381768 | 0.34845 | 0.332254 | 0.229061 | 0.205923 | 0.08422 | 0 | 0.385499 | 0.047847 | 2,926 | 68 | 315 | 43.029412 | 0.390165 | 0.828435 | 0 | 0 | 0 | 0 | 0.237991 | 0.111354 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
58c43ff8430727395dd9956e59ffb6accdf28c6d | 279 | py | Python | racecar_gym/tasks/task.py | luigiberducci/racecar_gym | fd2ff7fb14e9319530786ef54a4a6864bf1f1c26 | [
"MIT"
] | 16 | 2020-11-27T02:55:24.000Z | 2022-03-24T01:27:29.000Z | racecar_gym/tasks/task.py | luigiberducci/racecar_gym | fd2ff7fb14e9319530786ef54a4a6864bf1f1c26 | [
"MIT"
] | 5 | 2020-08-24T15:59:39.000Z | 2020-10-20T19:45:46.000Z | racecar_gym/tasks/task.py | luigiberducci/racecar_gym | fd2ff7fb14e9319530786ef54a4a6864bf1f1c26 | [
"MIT"
] | 4 | 2020-10-08T16:14:19.000Z | 2021-12-26T18:19:53.000Z | from abc import abstractmethod, ABC
class Task(ABC):
@abstractmethod
def reward(self, agent_id, state, action) -> float:
pass
@abstractmethod
def done(self, agent_id, state) -> bool:
pass
@abstractmethod
def reset(self):
pass
| 16.411765 | 55 | 0.620072 | 32 | 279 | 5.34375 | 0.5625 | 0.298246 | 0.128655 | 0.187135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290323 | 279 | 16 | 56 | 17.4375 | 0.863636 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.272727 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
58e74aa3275fb3014b96d5ea98e5a2185be17429 | 813 | py | Python | dist/py/weightscale.py | microsoft/jacdac | 2c6548b7e55ac34141e5152c664ca268e873cf09 | [
"CC-BY-4.0",
"MIT"
] | 31 | 2020-07-24T14:49:32.000Z | 2022-03-20T12:20:56.000Z | dist/py/weightscale.py | QPC-database/jacdac | 74e9f7cebdb1db4c24f211aceb657b5125d0fd40 | [
"CC-BY-4.0",
"MIT"
] | 747 | 2020-07-31T22:05:45.000Z | 2022-03-31T23:27:35.000Z | dist/py/weightscale.py | QPC-database/jacdac | 74e9f7cebdb1db4c24f211aceb657b5125d0fd40 | [
"CC-BY-4.0",
"MIT"
] | 17 | 2020-07-31T10:49:01.000Z | 2022-03-15T03:21:43.000Z | # Autogenerated file for Weight Scale
# Add missing from ... import const
_JD_SERVICE_CLASS_WEIGHT_SCALE = const(0x1f4d5040)
_JD_WEIGHT_SCALE_VARIANT_BODY = const(0x1)
_JD_WEIGHT_SCALE_VARIANT_FOOD = const(0x2)
_JD_WEIGHT_SCALE_VARIANT_JEWELRY = const(0x3)
_JD_WEIGHT_SCALE_REG_WEIGHT = const(JD_REG_READING)
_JD_WEIGHT_... | 50.8125 | 73 | 0.875769 | 132 | 813 | 4.681818 | 0.257576 | 0.26699 | 0.273463 | 0.20712 | 0.330097 | 0.197411 | 0.10356 | 0 | 0 | 0 | 0 | 0.032938 | 0.066421 | 813 | 16 | 74 | 50.8125 | 0.781291 | 0.084871 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
58fdab6fa578a9b349429926a86ae2833f8655f4 | 1,803 | py | Python | oroscopo_fulfillment/dialogflow_request.py | fabiomoratti/oroscopo-fulfillmemt-lambda | 2ee2e76e907f536cfa52ea855b99da15c022c7cb | [
"Apache-2.0"
] | null | null | null | oroscopo_fulfillment/dialogflow_request.py | fabiomoratti/oroscopo-fulfillmemt-lambda | 2ee2e76e907f536cfa52ea855b99da15c022c7cb | [
"Apache-2.0"
] | null | null | null | oroscopo_fulfillment/dialogflow_request.py | fabiomoratti/oroscopo-fulfillmemt-lambda | 2ee2e76e907f536cfa52ea855b99da15c022c7cb | [
"Apache-2.0"
] | null | null | null | # Credits
# Dialogflow request / response JSON payloads are managed using the classes developed by
# [Emmarex](https://github.com/Emmarex); the original can be found
# [here](https://github.com/Emmarex/dialogflow-fulfillment-python).
import json
class DialogflowRequest:
def __init__(self,webhook_request):
... | 35.352941 | 93 | 0.688852 | 212 | 1,803 | 5.636792 | 0.316038 | 0.12887 | 0.175732 | 0.210879 | 0.445188 | 0.37908 | 0.230962 | 0.160669 | 0.076987 | 0.076987 | 0 | 0.002028 | 0.179701 | 1,803 | 51 | 93 | 35.352941 | 0.80595 | 0.160843 | 0 | 0 | 0 | 0 | 0.159814 | 0.017905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.40625 | false | 0 | 0.03125 | 0.34375 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
58fe0dc56536aa5fc521ae34fd4069d3df6e3863 | 343 | py | Python | lovpy/lovpy_utils.py | dkarageo/lovpy | 85f43c07aeed4b318238c35da606de2dc65ca24f | [
"Apache-2.0"
] | null | null | null | lovpy/lovpy_utils.py | dkarageo/lovpy | 85f43c07aeed4b318238c35da606de2dc65ca24f | [
"Apache-2.0"
] | null | null | null | lovpy/lovpy_utils.py | dkarageo/lovpy | 85f43c07aeed4b318238c35da606de2dc65ca24f | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from . import config
def get_lovpy_system_files():
"""Returns absolute paths of all files of current lovpy installation.
:return: A sequence of Path objects, containing the absolute paths to all files of
current lovpy installation.
"""
return Path(config.LOVPY_RO... | 26.384615 | 86 | 0.717201 | 47 | 343 | 5.12766 | 0.574468 | 0.107884 | 0.082988 | 0.141079 | 0.33195 | 0.33195 | 0.33195 | 0 | 0 | 0 | 0 | 0 | 0.209913 | 343 | 12 | 87 | 28.583333 | 0.889299 | 0.542274 | 0 | 0 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
451f6cffc22ce5193a58758d3f7cefa137687996 | 165 | py | Python | fmdtools/__init__.py | DesignEngrLab/fmdkit | 2d87c415c036f44fe10310500788f5ab697e618d | [
"MIT"
] | 8 | 2020-07-10T19:58:11.000Z | 2022-01-06T18:47:09.000Z | fmdtools/__init__.py | nasa/fmdtools | 7415068776998ff05eb199c78531ee7f9c2422e7 | [
"MIT"
] | 10 | 2020-07-10T23:17:59.000Z | 2021-05-20T13:31:43.000Z | fmdtools/__init__.py | nasa/fmdtools | 7415068776998ff05eb199c78531ee7f9c2422e7 | [
"MIT"
] | 3 | 2020-02-06T21:02:20.000Z | 2022-03-01T08:59:37.000Z |
import fmdtools.faultsim as faultsim
import fmdtools.modeldef as modeldef
import fmdtools.resultdisp as resultdisp
__all__ = ['resultdisp', 'faultsim', 'modeldef'] | 27.5 | 48 | 0.806061 | 19 | 165 | 6.789474 | 0.368421 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 165 | 6 | 48 | 27.5 | 0.877551 | 0 | 0 | 0 | 0 | 0 | 0.157576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
4529f492c8f85361ed9f3037dc36578e42fe05f5 | 181 | py | Python | blog/forms.py | dimalik/reading_group | 5324468c7d31a648654fab820e283d13a76d1b93 | [
"MIT"
] | null | null | null | blog/forms.py | dimalik/reading_group | 5324468c7d31a648654fab820e283d13a76d1b93 | [
"MIT"
] | null | null | null | blog/forms.py | dimalik/reading_group | 5324468c7d31a648654fab820e283d13a76d1b93 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from blog.models import Post
class BlogCreateForm(ModelForm):
class Meta:
model = Post
exclude = ('slug', 'paper', 'author',) | 25.857143 | 46 | 0.674033 | 21 | 181 | 5.809524 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220994 | 181 | 7 | 46 | 25.857143 | 0.865248 | 0 | 0 | 0 | 0 | 0 | 0.082418 | 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 |
18cf08012cc9b488430fd4952df4113c6a4d3f0b | 52 | py | Python | melodies_monet/stats/__init__.py | lkemmons/MELODIES-MONET | 97c85a9adaa471290beb82fc16a83d5069d4d1d4 | [
"Apache-2.0"
] | 1 | 2022-03-18T01:08:47.000Z | 2022-03-18T01:08:47.000Z | melodies_monet/stats/__init__.py | lkemmons/MELODIES-MONET | 97c85a9adaa471290beb82fc16a83d5069d4d1d4 | [
"Apache-2.0"
] | 17 | 2022-03-04T18:34:30.000Z | 2022-03-31T23:45:38.000Z | melodies_monet/stats/__init__.py | lkemmons/MELODIES-MONET | 97c85a9adaa471290beb82fc16a83d5069d4d1d4 | [
"Apache-2.0"
] | 7 | 2022-03-04T19:25:49.000Z | 2022-03-28T17:11:22.000Z | from . import proc_stats
__all__ = ("proc_stats",)
| 13 | 25 | 0.711538 | 7 | 52 | 4.428571 | 0.714286 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 3 | 26 | 17.333333 | 0.704545 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 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 |
7a1bfaf28d0ebe7cec34425ce2a04fe9bb4f5de6 | 269 | py | Python | 101.py | KuKuKai/104-108code | b6aabd73a2205a2d23ea901ef9dac39b3e7d9593 | [
"MIT"
] | null | null | null | 101.py | KuKuKai/104-108code | b6aabd73a2205a2d23ea901ef9dac39b3e7d9593 | [
"MIT"
] | null | null | null | 101.py | KuKuKai/104-108code | b6aabd73a2205a2d23ea901ef9dac39b3e7d9593 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 9 20:04:28 2018
@author: JinJheng
"""
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print('|%5d %5d|' %(a,b))
print('|%5d %5d|' %(c,d))
print('|%-5d %-5d|' %(a,b))
print('|%-5d %-5d|' %(c,d)) | 17.933333 | 36 | 0.483271 | 46 | 269 | 2.826087 | 0.478261 | 0.246154 | 0.276923 | 0.153846 | 0.338462 | 0.338462 | 0.338462 | 0.338462 | 0.338462 | 0.338462 | 0 | 0.090498 | 0.178439 | 269 | 15 | 37 | 17.933333 | 0.497738 | 0.286245 | 0 | 0 | 0 | 0 | 0.233918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e13ca4998a22254f06e1060142809dcae2efc873 | 250 | py | Python | servers/web/django/server/models.py | ericharmeling/photoblocks | b5c61e4d5b459336145647c877daa5d27a8440e6 | [
"MIT"
] | 2 | 2018-06-21T13:57:09.000Z | 2018-07-11T01:38:07.000Z | servers/web/django/server/models.py | ericharmeling/photoblocks | b5c61e4d5b459336145647c877daa5d27a8440e6 | [
"MIT"
] | null | null | null | servers/web/django/server/models.py | ericharmeling/photoblocks | b5c61e4d5b459336145647c877daa5d27a8440e6 | [
"MIT"
] | 1 | 2018-11-21T21:13:03.000Z | 2018-11-21T21:13:03.000Z | from django.db import models
class Nodes(models.Model):
node_type = models.CharField(max_length=30)
node_key = models.UUIDField(max_length=30)
node_id = models.IntegerField(max_length=30)
node_port = models.IntegerField(max_length=5) | 35.714286 | 49 | 0.764 | 37 | 250 | 4.945946 | 0.540541 | 0.196721 | 0.180328 | 0.245902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032407 | 0.136 | 250 | 7 | 49 | 35.714286 | 0.814815 | 0 | 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 |
e148774a08ea227c916d372fe1c81931c99bf27b | 292 | py | Python | cirq/vis/examples/bristlecone_heatmap_example_test.py | pingyeh/Cirq | 4b617f45ca53d223a2174c688fef0430b97392a7 | [
"Apache-2.0"
] | null | null | null | cirq/vis/examples/bristlecone_heatmap_example_test.py | pingyeh/Cirq | 4b617f45ca53d223a2174c688fef0430b97392a7 | [
"Apache-2.0"
] | null | null | null | cirq/vis/examples/bristlecone_heatmap_example_test.py | pingyeh/Cirq | 4b617f45ca53d223a2174c688fef0430b97392a7 | [
"Apache-2.0"
] | 1 | 2018-10-25T19:36:50.000Z | 2018-10-25T19:36:50.000Z | """Tests for bristlecone_heatmap_example."""
import matplotlib.pyplot as plt
from cirq.vis.examples import bristlecone_heatmap_example
class TestBristleconeHeatmapExample:
def test_that_example_runs(self):
plt.switch_backend('agg')
bristlecone_heatmap_example.main()
| 22.461538 | 57 | 0.780822 | 34 | 292 | 6.411765 | 0.735294 | 0.247706 | 0.344037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143836 | 292 | 12 | 58 | 24.333333 | 0.872 | 0.130137 | 0 | 0 | 0 | 0 | 0.012097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e14a4a5f3480a00cea0a16bdfd0c4aec9ab1cabc | 1,609 | py | Python | CreationalPattern/factory_method/factory_method_gun.py | Lcoderfit/PythonDesignPattern | 65c04d45db977f15a9628c46392b6c1050bf3f2d | [
"MIT"
] | null | null | null | CreationalPattern/factory_method/factory_method_gun.py | Lcoderfit/PythonDesignPattern | 65c04d45db977f15a9628c46392b6c1050bf3f2d | [
"MIT"
] | null | null | null | CreationalPattern/factory_method/factory_method_gun.py | Lcoderfit/PythonDesignPattern | 65c04d45db977f15a9628c46392b6c1050bf3f2d | [
"MIT"
] | null | null | null | from __future__ import annotations
from abc import ABC, abstractmethod, abstractproperty
"""
注:在Java中,抽象类中包含方法和属性,而接口里全部都是抽象方法,不包含属性
Python可以通过抽象类来实现接口
"""
class GunCreator(ABC):
@abstractmethod
def create_gun(self):
pass
def print_gun_info(self):
gun = self.create_gun()
print(g... | 17.48913 | 58 | 0.632691 | 181 | 1,609 | 5.436464 | 0.320442 | 0.081301 | 0.036585 | 0.04878 | 0.174797 | 0.123984 | 0 | 0 | 0 | 0 | 0 | 0.023729 | 0.266625 | 1,609 | 91 | 59 | 17.681319 | 0.810169 | 0.150404 | 0 | 0.363636 | 0 | 0 | 0.035549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236364 | false | 0.054545 | 0.036364 | 0.145455 | 0.545455 | 0.109091 | 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 |
e15db3150c806800bafdd71b34a57b4f8cc932e5 | 183 | py | Python | packages/grid/backend/grid/api/datasets/__init__.py | jackbandy/PySyft | 0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b | [
"Apache-2.0"
] | null | null | null | packages/grid/backend/grid/api/datasets/__init__.py | jackbandy/PySyft | 0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b | [
"Apache-2.0"
] | null | null | null | packages/grid/backend/grid/api/datasets/__init__.py | jackbandy/PySyft | 0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b | [
"Apache-2.0"
] | null | null | null | """
This module contains the information required to model a 'dataset' in Syft.
The logic for the provided functionalities to interact with that 'dataset' can also be found here.
"""
| 36.6 | 98 | 0.770492 | 28 | 183 | 5.035714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 183 | 4 | 99 | 45.75 | 0.921569 | 0.95082 | 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 |
e161de449cadb396fc6082b35bbcdf6241fa4587 | 155 | py | Python | apps/corecode/apps.py | 19521242bao/SE104 | e037f02e0cebf4a9d6638cbba71d3cd9fd0501eb | [
"MIT"
] | 4 | 2021-07-19T09:55:49.000Z | 2021-08-06T06:33:00.000Z | apps/corecode/apps.py | 19521242bao/SE104 | e037f02e0cebf4a9d6638cbba71d3cd9fd0501eb | [
"MIT"
] | null | null | null | apps/corecode/apps.py | 19521242bao/SE104 | e037f02e0cebf4a9d6638cbba71d3cd9fd0501eb | [
"MIT"
] | 2 | 2021-08-06T06:25:03.000Z | 2021-08-06T06:33:05.000Z | from django.apps import AppConfig
class CorecodeConfig(AppConfig):
name = 'apps.corecode'
def ready(self):
import apps.corecode.signals
| 17.222222 | 36 | 0.709677 | 18 | 155 | 6.111111 | 0.722222 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206452 | 155 | 8 | 37 | 19.375 | 0.894309 | 0 | 0 | 0 | 0 | 0 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
e17f6cd18cac169cd577e12dceac29f8414b1a68 | 186 | py | Python | packs/consul/actions/list_tokens.py | pearsontechnology/st2contrib | f60ff517079b91de7ee84fdf91cd742784e2731e | [
"Apache-2.0"
] | 5 | 2016-10-11T11:52:53.000Z | 2017-06-15T05:21:05.000Z | packs/consul/actions/list_tokens.py | pearsontechnology/st2contrib | f60ff517079b91de7ee84fdf91cd742784e2731e | [
"Apache-2.0"
] | 25 | 2016-07-28T17:50:35.000Z | 2017-09-25T09:26:18.000Z | packs/consul/actions/list_tokens.py | pearsontechnology/st2contrib | f60ff517079b91de7ee84fdf91cd742784e2731e | [
"Apache-2.0"
] | 1 | 2017-05-05T19:12:01.000Z | 2017-05-05T19:12:01.000Z | from lib import action
import json
class ConsulAclListAction(action.ConsulBaseAction):
def run(self):
acl_list = self.consul.acl.list()
print json.dumps(acl_list)
| 18.6 | 51 | 0.709677 | 24 | 186 | 5.416667 | 0.666667 | 0.161538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204301 | 186 | 9 | 52 | 20.666667 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
becdfb5c061da4cda823793aade0ae2d746b89dc | 477 | py | Python | tests/test_data_reader.py | ludovikcoba/recoxplainer | 532f5fed9ea17b4884a23c838f98aa11e074aba8 | [
"MIT"
] | 22 | 2021-02-02T22:07:43.000Z | 2022-03-01T17:29:26.000Z | tests/test_data_reader.py | ludovikcoba/recoxplainer | 532f5fed9ea17b4884a23c838f98aa11e074aba8 | [
"MIT"
] | null | null | null | tests/test_data_reader.py | ludovikcoba/recoxplainer | 532f5fed9ea17b4884a23c838f98aa11e074aba8 | [
"MIT"
] | 2 | 2021-03-01T19:35:08.000Z | 2021-03-23T01:32:30.000Z | import unittest
from recoxplainer.config import cfg
from recoxplainer.data_reader.data_reader import DataReader
class TestDataReader(unittest.TestCase):
def setUp(self) -> None:
self.data = DataReader(**cfg.testdata)
def test_import(self):
self.assertEqual(self.data.num_user, 249)
... | 26.5 | 59 | 0.716981 | 62 | 477 | 5.435484 | 0.483871 | 0.118694 | 0.225519 | 0.272997 | 0.362018 | 0.207715 | 0 | 0 | 0 | 0 | 0 | 0.032995 | 0.174004 | 477 | 17 | 60 | 28.058824 | 0.822335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bef4f373ffe10ddaa6ca111b6aecd29b77e863ce | 162 | py | Python | opensanctions/__init__.py | Richard-Green-UK/opensanctions | f7b0dfcf5325abc3b1dedd4cad6b580efd32fe3f | [
"MIT"
] | 2 | 2019-09-08T16:02:19.000Z | 2021-08-29T09:54:40.000Z | opensanctions/__init__.py | Richard-Green-UK/opensanctions | f7b0dfcf5325abc3b1dedd4cad6b580efd32fe3f | [
"MIT"
] | null | null | null | opensanctions/__init__.py | Richard-Green-UK/opensanctions | f7b0dfcf5325abc3b1dedd4cad6b580efd32fe3f | [
"MIT"
] | null | null | null | import os
from memorious.core import manager
def init():
config_path = os.path.join(os.path.dirname(__file__), 'config')
manager.load_path(config_path)
| 20.25 | 67 | 0.740741 | 24 | 162 | 4.708333 | 0.583333 | 0.176991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141975 | 162 | 7 | 68 | 23.142857 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
830843f59e9e4993621da41d085b5da2efdf6cf4 | 290 | py | Python | neo/test/test_recordingchannel.py | neurodebian/python-neo | 9be7cd97572ce9c1ea5583eae700a99a05423c11 | [
"BSD-3-Clause"
] | 1 | 2020-08-08T21:39:41.000Z | 2020-08-08T21:39:41.000Z | neo/test/test_recordingchannel.py | michaelfsp/python-neo | 56ce3b6a3f6944a096279404c22a75166b905844 | [
"BSD-3-Clause"
] | null | null | null | neo/test/test_recordingchannel.py | michaelfsp/python-neo | 56ce3b6a3f6944a096279404c22a75166b905844 | [
"BSD-3-Clause"
] | null | null | null | """
Tests of the RecordingChannelGroup class
"""
try:
import unittest2 as unittest
except ImportError:
import unittest
from neo.core.recordingchannel import RecordingChannel
class TestRecordingChannel(unittest.TestCase):
pass
if __name__ == "__main__":
unittest.main()
| 16.111111 | 54 | 0.755172 | 30 | 290 | 7.033333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.168966 | 290 | 17 | 55 | 17.058824 | 0.871369 | 0.137931 | 0 | 0 | 0 | 0 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.111111 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
832967ab2025afb0d2e5b1de2d354f877464375c | 76 | py | Python | catalog-be/src/main/resources/scripts/sdcBePy/__init__.py | xtommysk/sdc | 0ee8a452839f56cbd576f695d5283d7299babd02 | [
"Apache-2.0"
] | 15 | 2018-10-02T14:54:35.000Z | 2022-03-01T18:27:14.000Z | catalog-be/src/main/resources/scripts/sdcBePy/__init__.py | kobe0608/sdc | 737340d942fcfd431f21b5463bcde57b95e4d69c | [
"Apache-2.0"
] | 6 | 2021-12-14T21:00:42.000Z | 2022-02-27T17:07:08.000Z | catalog-be/src/main/resources/scripts/sdcBePy/__init__.py | kobe0608/sdc | 737340d942fcfd431f21b5463bcde57b95e4d69c | [
"Apache-2.0"
] | 31 | 2018-05-30T19:18:29.000Z | 2022-03-01T06:16:47.000Z | from sdcBePy.common.properties import Properties
properties = Properties()
| 19 | 48 | 0.828947 | 8 | 76 | 7.875 | 0.625 | 0.634921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 3 | 49 | 25.333333 | 0.926471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
36083b39844aabad4242f6a3b33cf354a4b30a00 | 1,386 | py | Python | VotacionesUca/migrations/0006_auto_20200117_1645.py | joaquinpco/Votaciones-Pinf-19 | 16115395302c3ecbb66dcae78725443a7c4de3e5 | [
"MIT"
] | null | null | null | VotacionesUca/migrations/0006_auto_20200117_1645.py | joaquinpco/Votaciones-Pinf-19 | 16115395302c3ecbb66dcae78725443a7c4de3e5 | [
"MIT"
] | 2 | 2021-03-10T01:20:44.000Z | 2021-03-10T01:20:54.000Z | VotacionesUca/migrations/0006_auto_20200117_1645.py | joaquinpco/Votaciones-Pinf-19 | 16115395302c3ecbb66dcae78725443a7c4de3e5 | [
"MIT"
] | 1 | 2020-01-25T15:42:36.000Z | 2020-01-25T15:42:36.000Z | # Generated by Django 2.2 on 2020-01-17 15:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('VotacionesUca', '0005_auto_20200116_1523'),
]
operations = [
migrations.AlterField(
model_name='eleccion',
name='nombr... | 28.285714 | 62 | 0.559885 | 123 | 1,386 | 6.170732 | 0.365854 | 0.184453 | 0.230567 | 0.267457 | 0.602108 | 0.602108 | 0.602108 | 0.602108 | 0.602108 | 0.602108 | 0 | 0.05478 | 0.328283 | 1,386 | 48 | 63 | 28.875 | 0.760473 | 0.031025 | 0 | 0.642857 | 1 | 0 | 0.126025 | 0.017151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
362a490328e51ea04e3838fcc4a54efc39cc8dfc | 179 | py | Python | Mistakes/__init__.py | retdop/chess_weaknesses | c954557777a213a07a3564fef27263d81a20e0a3 | [
"MIT"
] | 1 | 2020-03-25T14:02:25.000Z | 2020-03-25T14:02:25.000Z | Mistakes/__init__.py | retdop/chess_weaknesses | c954557777a213a07a3564fef27263d81a20e0a3 | [
"MIT"
] | 1 | 2020-04-04T14:02:39.000Z | 2020-04-04T14:02:39.000Z | Mistakes/__init__.py | retdop/chess_weaknesses | c954557777a213a07a3564fef27263d81a20e0a3 | [
"MIT"
] | 1 | 2020-04-02T09:44:58.000Z | 2020-04-02T09:44:58.000Z | from . import AllowedOpponentToPin
from . import OpponentTempoCheck
mistakes = [AllowedOpponentToPin.AllowedOpponentToPin(),
OpponentTempoCheck.OpponentTempoCheck()]
| 29.833333 | 56 | 0.793296 | 11 | 179 | 12.909091 | 0.454545 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139665 | 179 | 5 | 57 | 35.8 | 0.922078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3651a9db705d29466f00db7245eed0cef813a592 | 193 | py | Python | examples/scratch.py | gerrymanoim/balalaika | 9fa0b865a39e3383f49843d696caa4fc75dedbeb | [
"Apache-2.0"
] | null | null | null | examples/scratch.py | gerrymanoim/balalaika | 9fa0b865a39e3383f49843d696caa4fc75dedbeb | [
"Apache-2.0"
] | 2 | 2021-11-29T15:09:33.000Z | 2022-02-28T15:14:01.000Z | examples/scratch.py | gerrymanoim/balalaika | 9fa0b865a39e3383f49843d696caa4fc75dedbeb | [
"Apache-2.0"
] | null | null | null | from balalaika.tracers import BasicTracer, MermaidSequenceDiagramTracer
import trio
trio.run(
trio.open_tcp_stream, "github.com", 443,
instruments=[MermaidSequenceDiagramTracer()],
)
| 21.444444 | 71 | 0.787565 | 19 | 193 | 7.894737 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.119171 | 193 | 8 | 72 | 24.125 | 0.864706 | 0 | 0 | 0 | 0 | 0 | 0.051813 | 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 |
36ae3b67ebe840482450101b124d9747aa964bf3 | 131 | py | Python | code/2.7/setup.py | suqi/suqi-interpy-zh | 0301bcce4e8f5fdaa96bc74ec50bef9700416489 | [
"Apache-2.0"
] | 6,594 | 2015-09-21T06:59:34.000Z | 2022-03-31T18:29:13.000Z | code/2.7/setup.py | liqilong2017/interpy-zh | 742129689d2e2048aead521581d8f929a3c8860c | [
"Apache-2.0"
] | 54 | 2016-02-14T09:26:58.000Z | 2022-03-28T06:23:50.000Z | code/2.7/setup.py | liqilong2017/interpy-zh | 742129689d2e2048aead521581d8f929a3c8860c | [
"Apache-2.0"
] | 1,499 | 2015-09-22T03:42:20.000Z | 2022-03-18T02:15:45.000Z | from distutils.core import setup, Extension
setup(name='addList', version='1.0', ext_modules=[Extension('addList', ['adder.c'])])
| 32.75 | 85 | 0.725191 | 18 | 131 | 5.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.076336 | 131 | 3 | 86 | 43.666667 | 0.760331 | 0 | 0 | 0 | 0 | 0 | 0.183206 | 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 |
36bfd3113d83b59dbc984e83438813fc6bb85bdc | 52 | py | Python | pypureclient/pure1/__init__.py | Flav-STOR-WL/py-pure-client | 03b889c997d90380ac5d6380ca5d5432792d3e89 | [
"BSD-2-Clause"
] | 14 | 2018-12-07T18:30:27.000Z | 2022-02-22T09:12:33.000Z | pypureclient/pure1/__init__.py | Flav-STOR-WL/py-pure-client | 03b889c997d90380ac5d6380ca5d5432792d3e89 | [
"BSD-2-Clause"
] | 28 | 2019-09-17T21:03:52.000Z | 2022-03-29T22:07:35.000Z | pypureclient/pure1/__init__.py | Flav-STOR-WL/py-pure-client | 03b889c997d90380ac5d6380ca5d5432792d3e89 | [
"BSD-2-Clause"
] | 15 | 2020-06-11T15:50:08.000Z | 2022-03-21T09:27:25.000Z | from .Pure1_1_1 import *
from .client import Client
| 17.333333 | 26 | 0.788462 | 9 | 52 | 4.333333 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.153846 | 52 | 2 | 27 | 26 | 0.818182 | 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 |
36cb8f34e5ed4ef03cb16b18edd643e959a82439 | 172 | py | Python | CI/src/common/__init__.py | tdhooks/sarus | 64d3152e810b1081e6dbe7b3587e8e5948c3268e | [
"BSD-3-Clause"
] | 84 | 2019-04-30T17:35:14.000Z | 2022-03-20T21:15:41.000Z | CI/src/common/__init__.py | tdhooks/sarus | 64d3152e810b1081e6dbe7b3587e8e5948c3268e | [
"BSD-3-Clause"
] | 26 | 2019-11-07T19:24:36.000Z | 2022-02-10T14:18:58.000Z | CI/src/common/__init__.py | tdhooks/sarus | 64d3152e810b1081e6dbe7b3587e8e5948c3268e | [
"BSD-3-Clause"
] | 10 | 2019-05-24T02:20:02.000Z | 2022-03-20T14:17:29.000Z | # Sarus
#
# Copyright (c) 2018-2021, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
| 21.5 | 59 | 0.726744 | 26 | 172 | 4.807692 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.162791 | 172 | 7 | 60 | 24.571429 | 0.805556 | 0.918605 | 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 |
36cde96f484265dcb75f090b144e910ee15974fa | 41 | py | Python | serinda/constants/NNConstants.py | cdrchops/serinda | a8bc8e3c5e7dd31df576e01bda221293b862fd86 | [
"MIT"
] | 1 | 2021-03-26T16:34:25.000Z | 2021-03-26T16:34:25.000Z | serinda/constants/NNConstants.py | cdrchops/serinda | a8bc8e3c5e7dd31df576e01bda221293b862fd86 | [
"MIT"
] | null | null | null | serinda/constants/NNConstants.py | cdrchops/serinda | a8bc8e3c5e7dd31df576e01bda221293b862fd86 | [
"MIT"
] | null | null | null |
class NNConstants:
MNIST = "mnist" | 13.666667 | 19 | 0.634146 | 4 | 41 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268293 | 41 | 3 | 20 | 13.666667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
36de804dcbdb4042ac5ea98e4532d21947871f6e | 210 | py | Python | ENTRY_MODULE/NestedLoops/LAB/03_Combinations_BruteForce.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | ENTRY_MODULE/NestedLoops/LAB/03_Combinations_BruteForce.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | 1 | 2022-01-15T10:33:56.000Z | 2022-01-15T10:33:56.000Z | ENTRY_MODULE/NestedLoops/LAB/03_Combinations_BruteForce.py | sleepychild/ProgramingBasicsPython | d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16 | [
"MIT"
] | null | null | null | n = 800
combinations_count = 0
for x1 in range(0, n+1):
for x2 in range(0, n+1):
for x3 in range(0, n+1):
combinations_count += 1 if (x1 + x2 + x3) == n else 0
print(combinations_count) | 26.25 | 65 | 0.590476 | 39 | 210 | 3.102564 | 0.384615 | 0.421488 | 0.198347 | 0.223141 | 0.297521 | 0.214876 | 0 | 0 | 0 | 0 | 0 | 0.119205 | 0.280952 | 210 | 8 | 66 | 26.25 | 0.682119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
36e40cdd807480854ce6d02cc40db4f29c763a7c | 2,240 | py | Python | ascii_arts.py | vcaitite/hangman | 4326164ba10812356fb94e52878817326aa448aa | [
"MIT"
] | null | null | null | ascii_arts.py | vcaitite/hangman | 4326164ba10812356fb94e52878817326aa448aa | [
"MIT"
] | null | null | null | ascii_arts.py | vcaitite/hangman | 4326164ba10812356fb94e52878817326aa448aa | [
"MIT"
] | null | null | null | welcome_image = '''
888
888
888
88888b. 8888b. 88888b. .d88b. 88888b.d88b. 8888b. 88888b.
888 "88b "88b888 "88bd88P"88b888 "888 "88b ... | 19.478261 | 62 | 0.163839 | 78 | 2,240 | 4.333333 | 0.410256 | 0.159763 | 0.035503 | 0.035503 | 0.017751 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203036 | 0.529464 | 2,240 | 114 | 63 | 19.649123 | 0.117647 | 0 | 0 | 0.423077 | 0 | 0 | 0.946875 | 0.065179 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
36f6faaaac0f28558e5f8146d17fcbb8b537e362 | 488 | py | Python | snake.py | Datagatherer2357/Gareth-Duffy-GMIT-Problem-sets-Python-scripts | f14f62e5b76dc27c04a616d3fe73abfb5052fc3f | [
"Apache-2.0"
] | 2 | 2018-02-25T16:17:26.000Z | 2018-02-25T16:17:36.000Z | snake.py | Datagatherer2357/Gareth-Duffy-GMIT-Problem-sets-Python-scripts | f14f62e5b76dc27c04a616d3fe73abfb5052fc3f | [
"Apache-2.0"
] | null | null | null | snake.py | Datagatherer2357/Gareth-Duffy-GMIT-Problem-sets-Python-scripts | f14f62e5b76dc27c04a616d3fe73abfb5052fc3f | [
"Apache-2.0"
] | null | null | null | # Gareth Duffy 25-2-2018
# Python welcome
how_many_snakes = 1
snake_string = """
Welcome to Python3 Gareth!
____
/ o o\\
\ ---<
\ /
/ /
... | 22.181818 | 61 | 0.327869 | 28 | 488 | 4.607143 | 0.714286 | 0.108527 | 0.20155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.557377 | 488 | 21 | 62 | 23.238095 | 0.555556 | 0.07582 | 0 | 0.142857 | 0 | 0 | 0.810268 | 0.066964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7fe6a69b145c3f7dd385ac6b412ee0d1fd05e679 | 82 | py | Python | WebHub/quickstart.py | hugetiny/WebHubBot | 639274717a15231f1036443d91c018b8db988802 | [
"MIT"
] | 357 | 2020-04-15T00:24:00.000Z | 2022-03-30T11:18:43.000Z | PornHub/quickstart.py | Flings/WebHubBot | 4ca388aeabad0e97c0f601ab0f773d4b1ee5039e | [
"MIT"
] | 5 | 2020-10-24T20:05:15.000Z | 2022-03-02T14:56:10.000Z | PornHub/quickstart.py | Flings/WebHubBot | 4ca388aeabad0e97c0f601ab0f773d4b1ee5039e | [
"MIT"
] | 121 | 2020-04-21T11:48:13.000Z | 2022-03-21T12:04:52.000Z | from scrapy import cmdline
cmdline.execute("scrapy crawl pornHubSpider".split())
| 20.5 | 53 | 0.804878 | 10 | 82 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 82 | 3 | 54 | 27.333333 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0.317073 | 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 |
3d2e657fcd912f3cac346ca2d72c398c1e9c99bb | 34 | py | Python | homeassistant/components/starlingbank/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/starlingbank/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/starlingbank/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The starlingbank component."""
| 17 | 33 | 0.705882 | 3 | 34 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.774194 | 0.794118 | 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 |
3d32a2b226d408ad18c4ae029b081e3d499ee3dd | 19 | py | Python | homeassistant/components/opencv/models/__init__.py | rafale77/core | c85d599fdeed81b656b3ed94cfb1989d7338ceac | [
"Apache-2.0"
] | null | null | null | homeassistant/components/opencv/models/__init__.py | rafale77/core | c85d599fdeed81b656b3ed94cfb1989d7338ceac | [
"Apache-2.0"
] | 1 | 2021-04-18T02:00:22.000Z | 2021-04-18T02:00:22.000Z | homeassistant/components/opencv/models/__init__.py | rafale77/core | c85d599fdeed81b656b3ed94cfb1989d7338ceac | [
"Apache-2.0"
] | 1 | 2020-10-26T08:05:39.000Z | 2020-10-26T08:05:39.000Z | """YoloV4 Mish."""
| 9.5 | 18 | 0.526316 | 2 | 19 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.105263 | 19 | 1 | 19 | 19 | 0.529412 | 0.631579 | 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 |
3d331b95b6742ba588299a1a3cf38d540aa749fa | 156 | py | Python | web/dashboard/controller/__init__.py | lavon321/Kunlun-M | 792548536d67f648c92324ecc153d7f206623e31 | [
"MIT"
] | 1,059 | 2020-08-06T13:32:10.000Z | 2022-03-31T07:20:27.000Z | web/dashboard/controller/__init__.py | lavon321/Kunlun-M | 792548536d67f648c92324ecc153d7f206623e31 | [
"MIT"
] | 87 | 2020-09-08T06:34:45.000Z | 2022-03-28T05:52:36.000Z | web/dashboard/controller/__init__.py | lavon321/Kunlun-M | 792548536d67f648c92324ecc153d7f206623e31 | [
"MIT"
] | 171 | 2020-08-13T11:53:47.000Z | 2022-03-30T03:23:07.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/3/2 15:10
# @Author : LoRexxar
# @File : __init__.py.py
# @Contact : lorexxar@gmail.com
| 22.285714 | 31 | 0.589744 | 23 | 156 | 3.826087 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088 | 0.198718 | 156 | 6 | 32 | 26 | 0.616 | 0.923077 | 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 |
3d4db703a17e287ee16f08a9908f4289dd2d5fb2 | 54 | py | Python | atmos_space_flight/Python/spacesymmthrust.py | als0052/AtmosSpaceDynamics | acf20f4ba320f55bf7e33d959539e7938a4b24d2 | [
"CNRI-Python"
] | null | null | null | atmos_space_flight/Python/spacesymmthrust.py | als0052/AtmosSpaceDynamics | acf20f4ba320f55bf7e33d959539e7938a4b24d2 | [
"CNRI-Python"
] | null | null | null | atmos_space_flight/Python/spacesymmthrust.py | als0052/AtmosSpaceDynamics | acf20f4ba320f55bf7e33d959539e7938a4b24d2 | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/env python
# Filename: spacesymmthrust.py
| 13.5 | 30 | 0.740741 | 7 | 54 | 5.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 54 | 3 | 31 | 18 | 0.833333 | 0.907407 | 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 |
18037b48be3b68ca88302fb56deab6763f48c784 | 1,411 | py | Python | setup.py | TEEN-BOOM/fractal | 585de72ce32313228abba56dc9c79fb73fd3d02e | [
"MIT"
] | null | null | null | setup.py | TEEN-BOOM/fractal | 585de72ce32313228abba56dc9c79fb73fd3d02e | [
"MIT"
] | null | null | null | setup.py | TEEN-BOOM/fractal | 585de72ce32313228abba56dc9c79fb73fd3d02e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import setuptools
import re
url = "https://github.com/danilobellini/fractal"
metadata = {
"name": "fractal",
"version": "0.1.0.dev",
"author": "Danilo J. S. Bellini",
"description": "Fractals in Python",
"author_email": "danilo.bellini@gmail.com",
"url": url,
... | 30.673913 | 80 | 0.63005 | 162 | 1,411 | 5.432099 | 0.518519 | 0.2375 | 0.3125 | 0.177273 | 0.061364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02039 | 0.200567 | 1,411 | 45 | 81 | 31.355556 | 0.759752 | 0.014174 | 0 | 0 | 0 | 0 | 0.671942 | 0.034532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1809fd199b895af2daf360b195a380cd509eebb6 | 46 | py | Python | openmdao/__init__.py | wright/OpenMDAO | 0996d562aa04ad864c44f91c60c0f33024e09d5f | [
"Apache-2.0"
] | null | null | null | openmdao/__init__.py | wright/OpenMDAO | 0996d562aa04ad864c44f91c60c0f33024e09d5f | [
"Apache-2.0"
] | null | null | null | openmdao/__init__.py | wright/OpenMDAO | 0996d562aa04ad864c44f91c60c0f33024e09d5f | [
"Apache-2.0"
] | null | null | null | __version__ = '3.4.2-dev'
INF_BOUND = 1.0E30
| 11.5 | 25 | 0.673913 | 9 | 46 | 2.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0.152174 | 46 | 3 | 26 | 15.333333 | 0.487179 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 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 |
183649cfcb38f2e762ef0db4333be65da3f36877 | 1,043 | py | Python | tests_stringcalculator.py | PitayoSan/Test_Commit_Revert | 6e6326da902fc33773bf60d9f37471636ace8c54 | [
"MIT"
] | null | null | null | tests_stringcalculator.py | PitayoSan/Test_Commit_Revert | 6e6326da902fc33773bf60d9f37471636ace8c54 | [
"MIT"
] | null | null | null | tests_stringcalculator.py | PitayoSan/Test_Commit_Revert | 6e6326da902fc33773bf60d9f37471636ace8c54 | [
"MIT"
] | null | null | null | import unittest
import stringcalculator
class TestStringMethods(unittest.TestCase):
def test_zero_args(self):
self.assertEqual(stringcalculator.add(""), 0)
def test_one_arg(self):
self.assertEqual(stringcalculator.add("1"), 1)
def test_two_args(self):
self.assertEqual(stringca... | 26.075 | 71 | 0.696069 | 123 | 1,043 | 5.674797 | 0.341463 | 0.272206 | 0.17192 | 0.250716 | 0.643266 | 0.512894 | 0.25788 | 0 | 0 | 0 | 0 | 0.025581 | 0.175455 | 1,043 | 39 | 72 | 26.74359 | 0.786047 | 0 | 0 | 0 | 0 | 0 | 0.045062 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.318182 | false | 0 | 0.090909 | 0 | 0.454545 | 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 |
1848f0067163bc24248813f9565c5f63d47789dd | 7,034 | py | Python | printj/printj_colors.py | Jitesh17/printj | f0f73578a28c20e0f3b5df5610a9fe8b2e653552 | [
"MIT"
] | 1 | 2021-01-22T00:38:28.000Z | 2021-01-22T00:38:28.000Z | printj/printj_colors.py | Jitesh17/printj | f0f73578a28c20e0f3b5df5610a9fe8b2e653552 | [
"MIT"
] | null | null | null | printj/printj_colors.py | Jitesh17/printj | f0f73578a28c20e0f3b5df5610a9fe8b2e653552 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from printj.lib import Template
import os
from functools import partial
class say:
def __init__(self, text):
os.system(f'spd-say " {text} "')
class clear:
def __init__(self):
os.system('clear')
class bold:
# color = 'red'
def __init__(self, text):
prin... | 27.912698 | 97 | 0.662781 | 914 | 7,034 | 4.897155 | 0.063457 | 0.160858 | 0.115282 | 0.107239 | 0.82529 | 0.742181 | 0.724754 | 0.610366 | 0.606792 | 0.529937 | 0 | 0.000177 | 0.195053 | 7,034 | 252 | 98 | 27.912698 | 0.790357 | 0.020756 | 0 | 0.317647 | 0 | 0 | 0.084859 | 0.007265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.270588 | false | 0 | 0.017647 | 0.047059 | 0.476471 | 0.223529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
43e7838d1dbc06efb1a0f33e450eb4e12ea21555 | 2,328 | py | Python | torchdata/__init__.py | joanna-janos/torchdata | 3a458365bea75d940156b1435eb98fed04443e7c | [
"MIT"
] | null | null | null | torchdata/__init__.py | joanna-janos/torchdata | 3a458365bea75d940156b1435eb98fed04443e7c | [
"MIT"
] | null | null | null | torchdata/__init__.py | joanna-janos/torchdata | 3a458365bea75d940156b1435eb98fed04443e7c | [
"MIT"
] | null | null | null | r"""**This module contains PyTorch compatible datasets with extended capabilities.**
To quickly start with `torchdata`, just inherit from `torchdata.Dataset` and create
your dataset as you normally would, for example::
import torchdata
from PIL import Image
# Image loading dataset (use torchdata.Files fo... | 37.548387 | 142 | 0.703179 | 305 | 2,328 | 5.255738 | 0.432787 | 0.043668 | 0.061135 | 0.035558 | 0.122895 | 0.122895 | 0.08796 | 0.08796 | 0.08796 | 0.08796 | 0 | 0.00319 | 0.19201 | 2,328 | 61 | 143 | 38.163934 | 0.849016 | 0.952749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a1044f1d785b3e6f7c3a76d901d8659c9ea906b9 | 210 | py | Python | gta/test_torch/init.py | sanjibansg/nbox | bf23b7cceb3179ba3d051a38aac0e32925a513e8 | [
"BSD-3-Clause"
] | null | null | null | gta/test_torch/init.py | sanjibansg/nbox | bf23b7cceb3179ba3d051a38aac0e32925a513e8 | [
"BSD-3-Clause"
] | null | null | null | gta/test_torch/init.py | sanjibansg/nbox | bf23b7cceb3179ba3d051a38aac0e32925a513e8 | [
"BSD-3-Clause"
] | null | null | null | import sys
from nbox.utils import folder, join, _isthere
sys.path.append(join(folder(folder(__file__))))
from common import ModuleNotFound
def main():
if not _isthere('torch'):
ModuleNotFound('torch')
| 19.090909 | 47 | 0.747619 | 28 | 210 | 5.392857 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 210 | 10 | 48 | 21 | 0.82967 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.428571 | 0 | 0.571429 | 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 |
a112b7b59eb0e36541f856148dcbfa18fb4996c0 | 76 | py | Python | qpth/__init__.py | zhangdongkun98/qpth | 255dd55596685f2eff3db584bb44c4dfdbba1f28 | [
"Apache-2.0"
] | 553 | 2017-03-02T06:31:14.000Z | 2022-03-10T06:58:36.000Z | qpth/__init__.py | zhangdongkun98/qpth | 255dd55596685f2eff3db584bb44c4dfdbba1f28 | [
"Apache-2.0"
] | 43 | 2017-03-03T00:38:08.000Z | 2022-01-30T11:44:17.000Z | qpth/__init__.py | zhangdongkun98/qpth | 255dd55596685f2eff3db584bb44c4dfdbba1f28 | [
"Apache-2.0"
] | 87 | 2017-03-02T11:24:34.000Z | 2022-03-11T11:28:35.000Z | __all__ = ['qp', 'util', 'solvers']
from . import qp
from . import solvers
| 15.2 | 35 | 0.644737 | 10 | 76 | 4.5 | 0.6 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 76 | 4 | 36 | 19 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
a12319b12d316761e413d721bad10e3fc93569a0 | 129 | py | Python | Algorithms/String/58. Length of Last Word.py | chopchap/leetcode | 24d0986770a37ada73a6171773c27e6883653689 | [
"MIT"
] | 1 | 2020-12-02T13:54:30.000Z | 2020-12-02T13:54:30.000Z | Algorithms/String/58. Length of Last Word.py | chopchap/leetcode | 24d0986770a37ada73a6171773c27e6883653689 | [
"MIT"
] | null | null | null | Algorithms/String/58. Length of Last Word.py | chopchap/leetcode | 24d0986770a37ada73a6171773c27e6883653689 | [
"MIT"
] | null | null | null | class Solution:
def lengthOfLastWord(self, s: str) -> int:
words = s.split()
return 0 if not words else len(words[-1])
| 25.8 | 45 | 0.651163 | 20 | 129 | 4.2 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.217054 | 129 | 4 | 46 | 32.25 | 0.811881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a142674a926cb1fa5495d36315971abfe05d5b46 | 41,875 | py | Python | fiscalyear.py | pala1212/fiscalyear | 84fa8bc5e2b1b21ed24e0f7ba545c2d37bae120f | [
"MIT"
] | 34 | 2017-05-25T20:06:51.000Z | 2022-03-15T17:29:55.000Z | fiscalyear.py | pala1212/fiscalyear | 84fa8bc5e2b1b21ed24e0f7ba545c2d37bae120f | [
"MIT"
] | 22 | 2017-05-27T20:33:13.000Z | 2022-02-12T19:23:55.000Z | fiscalyear.py | pala1212/fiscalyear | 84fa8bc5e2b1b21ed24e0f7ba545c2d37bae120f | [
"MIT"
] | 12 | 2018-02-08T13:14:36.000Z | 2022-01-24T13:06:20.000Z | """Utilities for managing the fiscal calendar."""
from __future__ import division, with_statement
__author__ = "Adam J. Stewart"
__version__ = "0.3.2"
import calendar
import contextlib
import datetime
import warnings
# Number of months in each quarter
MONTHS_PER_QUARTER = 12 // 4
MIN_QUARTER = 1
MAX_QUARTER = 4
#... | 30.169308 | 85 | 0.580991 | 4,814 | 41,875 | 4.78334 | 0.052971 | 0.097277 | 0.046207 | 0.034742 | 0.818735 | 0.781648 | 0.723455 | 0.685977 | 0.646198 | 0.607721 | 0 | 0.007958 | 0.3248 | 41,875 | 1,387 | 86 | 30.19106 | 0.806465 | 0.26209 | 0 | 0.616175 | 0 | 0 | 0.062214 | 0.01231 | 0 | 0 | 0 | 0.002884 | 0 | 1 | 0.129653 | false | 0.002567 | 0.006418 | 0 | 0.293967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a14b89fb08816fb88a69d5d147914fd6cdb1ca6b | 232 | py | Python | tests/unit/opera/commands/test_package.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 31 | 2019-02-12T06:52:24.000Z | 2022-03-23T06:48:10.000Z | tests/unit/opera/commands/test_package.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 190 | 2019-05-09T09:12:38.000Z | 2022-03-31T06:21:51.000Z | tests/unit/opera/commands/test_package.py | abitrolly/xopera-opera | 49694282db95bb425b988117b90b629f898803ec | [
"Apache-2.0"
] | 19 | 2019-05-09T13:36:22.000Z | 2022-01-25T21:27:50.000Z | from opera.commands.package import package
class TestPackage:
def test_package_service_template(self, service_template):
_, path, _ = service_template
package(path, path / "test", path / "service.yaml", "zip")
| 29 | 66 | 0.706897 | 27 | 232 | 5.814815 | 0.555556 | 0.286624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 232 | 7 | 67 | 33.142857 | 0.835106 | 0 | 0 | 0 | 0 | 0 | 0.081897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a157c42acd92939cffd693001a10cef41177f8f4 | 149 | py | Python | wsgi.py | BalloonBox-Inc/SCRTSibyl-Oracle | 0e147ce10c6b5697e2068540c8dd1b2ccd98ceec | [
"Apache-2.0"
] | null | null | null | wsgi.py | BalloonBox-Inc/SCRTSibyl-Oracle | 0e147ce10c6b5697e2068540c8dd1b2ccd98ceec | [
"Apache-2.0"
] | 11 | 2022-03-03T20:45:57.000Z | 2022-03-24T22:44:44.000Z | wsgi.py | BalloonBox-Inc/SCRTSibyl-Oracle | 0e147ce10c6b5697e2068540c8dd1b2ccd98ceec | [
"Apache-2.0"
] | null | null | null | from app_route import app
if __name__ == '__main__':
# app.run(port=7000, debug=True) # test locally
app.run() # test remotly on Heroku
| 21.285714 | 53 | 0.66443 | 22 | 149 | 4.090909 | 0.772727 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.221477 | 149 | 6 | 54 | 24.833333 | 0.741379 | 0.463087 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
a162be43372f10cb4a02fb8d3700d6d44a8f70bc | 207 | py | Python | ramda/insert_all_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 56 | 2018-08-06T08:44:58.000Z | 2022-03-17T09:49:03.000Z | ramda/insert_all_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 28 | 2019-06-17T11:09:52.000Z | 2022-02-18T16:59:21.000Z | ramda/insert_all_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 5 | 2019-09-18T09:24:38.000Z | 2021-07-21T08:40:23.000Z | from ramda.insert_all import insert_all
from ramda.private.asserts import *
def insert_all_test():
assert_equal(
insert_all(2, ["x", "y", "z"], [1, 2, 3, 4]), [1, 2, "x", "y", "z", 3, 4]
)
| 23 | 81 | 0.574879 | 35 | 207 | 3.228571 | 0.514286 | 0.318584 | 0.053097 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.217391 | 207 | 8 | 82 | 25.875 | 0.641975 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
a177705d4e7f39c0030158c9e90315840ac1f434 | 71 | py | Python | engineer/lib/__init__.py | pridkett/engineer | 2d0227f65fbd977cb84f138c043cdbf8f6ab5351 | [
"MIT"
] | 1 | 2017-09-24T22:13:44.000Z | 2017-09-24T22:13:44.000Z | engineer/lib/__init__.py | pridkett/engineer | 2d0227f65fbd977cb84f138c043cdbf8f6ab5351 | [
"MIT"
] | null | null | null | engineer/lib/__init__.py | pridkett/engineer | 2d0227f65fbd977cb84f138c043cdbf8f6ab5351 | [
"MIT"
] | null | null | null | # coding=utf-8
__author__ = 'Tyler Butler <tyler@tylerbutler.com>'
| 17.75 | 52 | 0.704225 | 9 | 71 | 5.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.15493 | 71 | 3 | 53 | 23.666667 | 0.75 | 0.169014 | 0 | 0 | 0 | 0 | 0.666667 | 0.425926 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a182a0fbb96ac0277759c68fb3a99d39933ce71e | 465 | py | Python | spider_jd/constant.py | chuncaohenli/clp_project | 1df861f6c91ce35e1c6118a226c549d5a274d9df | [
"MIT"
] | null | null | null | spider_jd/constant.py | chuncaohenli/clp_project | 1df861f6c91ce35e1c6118a226c549d5a274d9df | [
"MIT"
] | null | null | null | spider_jd/constant.py | chuncaohenli/clp_project | 1df861f6c91ce35e1c6118a226c549d5a274d9df | [
"MIT"
] | null | null | null | my_headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0',
'Accept-Encoding': 'gzip, deflate, br'}
my_proxies = {
#'http': 'http://125.120.203.95:808',
#'http':'http://113.124.85.144:808',
#'http':'http://115.239.181.26:8998',
#'http':'http://... | 33.214286 | 104 | 0.567742 | 76 | 465 | 3.447368 | 0.671053 | 0.21374 | 0.125954 | 0.083969 | 0.10687 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29771 | 0.154839 | 465 | 13 | 105 | 35.769231 | 0.368957 | 0.380645 | 0 | 0 | 0 | 0.166667 | 0.609929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a189343d11787a0e3f222d9b95093bf972145998 | 1,771 | py | Python | bii-ide/bii_ide/common/style/icons.py | biicode/bii-ide | 5565859bcfc28f22f095f8a353325270192fbffc | [
"MIT"
] | 2 | 2015-01-15T09:50:38.000Z | 2015-01-27T14:00:59.000Z | bii-ide/bii_ide/common/style/icons.py | biicode/bii-ide | 5565859bcfc28f22f095f8a353325270192fbffc | [
"MIT"
] | null | null | null | bii-ide/bii_ide/common/style/icons.py | biicode/bii-ide | 5565859bcfc28f22f095f8a353325270192fbffc | [
"MIT"
] | 2 | 2015-04-20T21:39:54.000Z | 2016-05-29T07:21:54.000Z | import os
#GENERAL
_path = os.getcwd()
if 'resources' not in os.listdir(_path):
# PyInstaller route
_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..'))
GUI_ICON = "%s/resources/img/gorilla.png" % _path
GUI_ICON_128 = "%s/resources/img/gorilla_128.png" % _path
GUI_ICON_SUDO_128 ... | 43.195122 | 86 | 0.730661 | 257 | 1,771 | 4.832685 | 0.210117 | 0.217391 | 0.282609 | 0.166667 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007495 | 0.095991 | 1,771 | 40 | 87 | 44.275 | 0.76827 | 0.032185 | 0 | 0 | 0 | 0 | 0.561475 | 0.552693 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a1b3340c45a419ed8600cfe9dd994788b50845c6 | 97 | py | Python | apis/bbs_free_1/apps.py | s3ich4n/gmp_lite | ab1e901eb78a566ba0a30a48a30ade6484b5ea6e | [
"MIT"
] | 2 | 2021-09-17T11:25:58.000Z | 2021-12-06T14:51:05.000Z | apis/bbs_free_1/apps.py | s3ich4n/gmp_lite | ab1e901eb78a566ba0a30a48a30ade6484b5ea6e | [
"MIT"
] | 2 | 2021-09-17T16:46:42.000Z | 2021-09-17T17:15:57.000Z | apis/bbs_free_1/apps.py | s3ich4n/gmp_lite | ab1e901eb78a566ba0a30a48a30ade6484b5ea6e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BbsFreeConfig(AppConfig):
name = "apis.bbs_free_1"
| 16.166667 | 33 | 0.762887 | 13 | 97 | 5.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.154639 | 97 | 5 | 34 | 19.4 | 0.865854 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 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 |
a1f5a3ee8627ed67c5bc4190a0758192a531008f | 893 | py | Python | tests/urls.py | django-ftl/django-ftl | c34e4956741b17b3af10c3f543a90a0fdc6c8dd7 | [
"MIT"
] | 38 | 2018-05-19T15:17:23.000Z | 2022-03-03T17:52:55.000Z | tests/urls.py | django-ftl/django-ftl | c34e4956741b17b3af10c3f543a90a0fdc6c8dd7 | [
"MIT"
] | 3 | 2020-04-02T09:22:55.000Z | 2021-11-22T21:19:52.000Z | tests/urls.py | django-ftl/django-ftl | c34e4956741b17b3af10c3f543a90a0fdc6c8dd7 | [
"MIT"
] | 3 | 2019-04-17T10:07:27.000Z | 2021-11-23T11:50:50.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.conf.urls import url
from django.conf.urls.i18n import i18n_patterns
from django.views import i18n as i18n_views
from . import test_middleware
urlpatterns = [
url(r'^set_language/$', i18n_views.set_langua... | 49.611111 | 153 | 0.802912 | 122 | 893 | 5.47541 | 0.254098 | 0.272455 | 0.359281 | 0.431138 | 0.57485 | 0.57485 | 0.57485 | 0.57485 | 0.57485 | 0.57485 | 0 | 0.015873 | 0.082867 | 893 | 17 | 154 | 52.529412 | 0.799756 | 0.023516 | 0 | 0 | 0 | 0 | 0.396552 | 0.365517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
a1f6f683c4d033e27de9c72227d6e23f1ccb1b83 | 276 | py | Python | 02-Creating&VisualizingDataframes/11-DataFrameToCSV.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | 1 | 2020-10-18T16:42:28.000Z | 2020-10-18T16:42:28.000Z | 02-Creating&VisualizingDataframes/11-DataFrameToCSV.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | null | null | null | 02-Creating&VisualizingDataframes/11-DataFrameToCSV.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | null | null | null | # Create airline_totals_sorted
airline_totals_sorted = airline_totals.sort_values("bumps_per_10k",ascending=False)
# Print airline_totals_sorted
print(airline_totals_sorted)
# Save as airline_totals_sorted.csv
airline_totals_sorted.to_csv("airline_totals_sorted.csv") | 34.5 | 84 | 0.844203 | 39 | 276 | 5.487179 | 0.410256 | 0.485981 | 0.621495 | 0.242991 | 0.238318 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.083333 | 276 | 8 | 85 | 34.5 | 0.837945 | 0.326087 | 0 | 0 | 0 | 0 | 0.215909 | 0.142045 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
b81f7f3ceb985f6c0bc35eeec531841f2befdde0 | 126 | py | Python | ya3_collect/__main__.py | ecoreuse/ya3-collect | 7ee0fc359ea68504eb4960b7abfe0792e5a05499 | [
"MIT"
] | null | null | null | ya3_collect/__main__.py | ecoreuse/ya3-collect | 7ee0fc359ea68504eb4960b7abfe0792e5a05499 | [
"MIT"
] | null | null | null | ya3_collect/__main__.py | ecoreuse/ya3-collect | 7ee0fc359ea68504eb4960b7abfe0792e5a05499 | [
"MIT"
] | null | null | null | # Copyright (c) 2022 Shuhei Nitta. All rights reserved.
from ya3_collect import cli
if __name__ == "__main__":
cli.main() | 25.2 | 55 | 0.722222 | 18 | 126 | 4.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0.174603 | 126 | 5 | 56 | 25.2 | 0.740385 | 0.420635 | 0 | 0 | 0 | 0 | 0.111111 | 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 |
629c993bca3b3d76b86ceb85f930e1fc4c5a56cc | 201 | py | Python | aria/authenticators/__init__.py | aria-music/aria-core | 4a8e18d67672d26f4c2538029e91c1c2cf779a4d | [
"MIT"
] | 4 | 2020-05-27T23:27:17.000Z | 2021-11-08T11:14:01.000Z | aria/authenticators/__init__.py | akcakaletv/aria-core | 69d75aa18f9571a49efc5c2c9326c9845d5f1d84 | [
"MIT"
] | 32 | 2019-07-23T15:32:39.000Z | 2020-10-27T08:36:48.000Z | aria/authenticators/__init__.py | akcakaletv/aria-core | 69d75aa18f9571a49efc5c2c9326c9845d5f1d84 | [
"MIT"
] | 2 | 2020-03-31T14:15:02.000Z | 2021-04-24T09:59:08.000Z | from typing import Tuple, Type
from aria.authenticators.models import Authenticator
from .github import GitHubAuthenticator
AUTHENTICATORS: Tuple[Type[Authenticator]] = (
GitHubAuthenticator,
)
| 20.1 | 52 | 0.80597 | 20 | 201 | 8.1 | 0.55 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129353 | 201 | 9 | 53 | 22.333333 | 0.925714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
62b91c63652e79b9ea6ef212f5f6801d47cb8b15 | 195 | py | Python | output/models/ms_data/particles/particles_s003_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/particles/particles_s003_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/particles/particles_s003_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.particles.particles_s003_xsd.particles_s003 import (
B,
R,
Address,
Doc,
E3,
)
__all__ = [
"B",
"R",
"Address",
"Doc",
"E3",
]
| 12.1875 | 79 | 0.538462 | 23 | 195 | 4.217391 | 0.652174 | 0.268041 | 0.185567 | 0.247423 | 0.28866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059259 | 0.307692 | 195 | 15 | 80 | 13 | 0.659259 | 0 | 0 | 0 | 0 | 0 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
62d4a143f2bb9a43f29b2f9dd825c10e6c0d09db | 221 | py | Python | energyPATHWAYS/_obsolete/rollover_c_setup.py | jdailey/EnergyPATHWAYS | 0fb0ead475b6395f6b07fc43fe6c85826ee47d0f | [
"MIT"
] | 26 | 2017-02-06T22:57:29.000Z | 2022-03-25T20:02:32.000Z | energyPATHWAYS/_obsolete/rollover_c_setup.py | jdailey/EnergyPATHWAYS | 0fb0ead475b6395f6b07fc43fe6c85826ee47d0f | [
"MIT"
] | 65 | 2016-01-22T01:33:05.000Z | 2016-09-03T14:46:08.000Z | energyPATHWAYS/_obsolete/rollover_c_setup.py | jdailey/EnergyPATHWAYS | 0fb0ead475b6395f6b07fc43fe6c85826ee47d0f | [
"MIT"
] | 11 | 2017-02-24T23:27:36.000Z | 2021-10-18T17:33:37.000Z | from distutils.core import setup
from Cython.Build import cythonize
import numpy
setup(ext_modules=cythonize("rollover_c.pyx"),
include_dirs=[numpy.get_include()])
# python rollover_c_setup.py build_ext --inplace
| 24.555556 | 48 | 0.791855 | 32 | 221 | 5.25 | 0.625 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113122 | 221 | 8 | 49 | 27.625 | 0.857143 | 0.208145 | 0 | 0 | 0 | 0 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 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 |
62db2b0ef7b5fb326b8f9c40b66ea5d55de2cfe8 | 130 | py | Python | cedar/__init__.py | Bogdanp/cedar | 5118cb1d2cb782dfdf7b30be9cbb4d213308126c | [
"BSD-3-Clause"
] | 3 | 2016-06-26T19:23:25.000Z | 2021-07-05T05:55:15.000Z | cedar/__init__.py | Bogdanp/cedar | 5118cb1d2cb782dfdf7b30be9cbb4d213308126c | [
"BSD-3-Clause"
] | null | null | null | cedar/__init__.py | Bogdanp/cedar | 5118cb1d2cb782dfdf7b30be9cbb4d213308126c | [
"BSD-3-Clause"
] | null | null | null | # flake8: noqa
from .errors import CedarError, ParseError, TypeError, TypeErrors
from .parser import parse
__version__ = "0.3.3"
| 21.666667 | 65 | 0.769231 | 17 | 130 | 5.647059 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.138462 | 130 | 5 | 66 | 26 | 0.821429 | 0.092308 | 0 | 0 | 0 | 0 | 0.043103 | 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 |
62ee651433bafb197fc5f1ce9625da84401d4cd6 | 32 | py | Python | tests/x7/testing/maketests/__init__.py | gribbg/x7-testing | c062c430ff1c31e943f04f152c9c88c179f5085b | [
"BSD-2-Clause"
] | null | null | null | tests/x7/testing/maketests/__init__.py | gribbg/x7-testing | c062c430ff1c31e943f04f152c9c88c179f5085b | [
"BSD-2-Clause"
] | null | null | null | tests/x7/testing/maketests/__init__.py | gribbg/x7-testing | c062c430ff1c31e943f04f152c9c88c179f5085b | [
"BSD-2-Clause"
] | null | null | null | """Needed for test discovery"""
| 16 | 31 | 0.6875 | 4 | 32 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.785714 | 0.78125 | 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 |
62f97778d0d8586e96f62b305c58f0fc84aa951f | 95 | py | Python | coreModule/apps.py | addu390/app-builder-backend | b7dc4577f97f8e3a31c916bf2b3cf85386bbb445 | [
"MIT"
] | 1 | 2020-09-17T11:27:06.000Z | 2020-09-17T11:27:06.000Z | coreModule/apps.py | addu390/app-builder-backend | b7dc4577f97f8e3a31c916bf2b3cf85386bbb445 | [
"MIT"
] | 6 | 2020-07-17T09:47:29.000Z | 2021-09-22T18:57:32.000Z | coreModule/apps.py | addu390/app-builder-backend | b7dc4577f97f8e3a31c916bf2b3cf85386bbb445 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CoremoduleConfig(AppConfig):
name = 'coreModule'
| 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 |
1a10226e74a05b4279985bdd660de1be0b454b6d | 441 | py | Python | katas/beta/Is_it_Integer?.py | dusadamey/CodeWars | 386de2427c8a590fc2e65adf979658e817dd131a | [
"MIT"
] | null | null | null | katas/beta/Is_it_Integer?.py | dusadamey/CodeWars | 386de2427c8a590fc2e65adf979658e817dd131a | [
"MIT"
] | null | null | null | katas/beta/Is_it_Integer?.py | dusadamey/CodeWars | 386de2427c8a590fc2e65adf979658e817dd131a | [
"MIT"
] | 1 | 2021-10-30T15:45:40.000Z | 2021-10-30T15:45:40.000Z | # https://www.codewars.com/kata/58a6e75d934f82c94f0000ce/train/python
'''
Instructions :
Description:
In this Kata we are passing a number (n) into a function.
Your code will determine if the number passed is integer (or not).
The function needs to return either a true or false.
Numbers may be positive or negativ... | 18.375 | 69 | 0.721088 | 68 | 441 | 4.676471 | 0.75 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052778 | 0.183673 | 441 | 23 | 70 | 19.173913 | 0.830556 | 0.870748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1a29c2b7a16de9627b09102b8d186ec5c714095e | 103 | py | Python | generate_code.py | 3to1null/grpc-client-test | 7851428697b20af54409c2af1a8e05ca9299b774 | [
"Apache-2.0"
] | null | null | null | generate_code.py | 3to1null/grpc-client-test | 7851428697b20af54409c2af1a8e05ca9299b774 | [
"Apache-2.0"
] | null | null | null | generate_code.py | 3to1null/grpc-client-test | 7851428697b20af54409c2af1a8e05ca9299b774 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env
python -m grpc.tools.protoc -I./ --python_out=. --grpc_python_out=. ./helloworld.proto
| 25.75 | 86 | 0.699029 | 16 | 103 | 4.3125 | 0.75 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087379 | 103 | 3 | 87 | 34.333333 | 0.734043 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c528d926b75db84de695bbf427ed0e81b13da9fd | 574 | py | Python | userDB/apps.py | raumzeitlabor/benutzerDB-2.0 | a9b2381b6a2cd0a8ee0f448e5dc33e9b57571464 | [
"WTFPL"
] | 2 | 2018-04-02T20:47:06.000Z | 2019-05-30T12:26:29.000Z | userDB/apps.py | slowpoketail/benutzerDB-2.0 | a9b2381b6a2cd0a8ee0f448e5dc33e9b57571464 | [
"WTFPL"
] | 10 | 2018-03-05T00:33:11.000Z | 2018-03-18T18:06:47.000Z | userDB/apps.py | raumzeitlabor/benutzerDB-2.0 | a9b2381b6a2cd0a8ee0f448e5dc33e9b57571464 | [
"WTFPL"
] | null | null | null | from django.apps import AppConfig
from benutzerDB import settings
class UserdbConfig(AppConfig):
name = 'userDB'
def ready(self):
from django.contrib.auth.models import User
# XXX: this errors if the db is not initialized.
# TODO: find a way around this
#if not User.objects.fi... | 33.764706 | 80 | 0.656794 | 67 | 574 | 5.552239 | 0.641791 | 0.112903 | 0.11828 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25784 | 574 | 16 | 81 | 35.875 | 0.873239 | 0.491289 | 0 | 0 | 0 | 0 | 0.021127 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c541d7e09add18277e9f4596a8bde4913d4e6f4f | 220 | py | Python | api/serializers.py | Rubbish-Limited/carsense_backend | b1e4287c0d79662a9dd9648c0a35e5c112d02d49 | [
"MIT"
] | null | null | null | api/serializers.py | Rubbish-Limited/carsense_backend | b1e4287c0d79662a9dd9648c0a35e5c112d02d49 | [
"MIT"
] | 7 | 2020-06-05T20:22:03.000Z | 2021-09-22T18:20:10.000Z | api/serializers.py | Rubbish-Limited/carsense_backend | b1e4287c0d79662a9dd9648c0a35e5c112d02d49 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from api.models import ParkingSpot
class ParkingSpotSerializer(serializers.ModelSerializer):
class Meta:
model = ParkingSpot
fields = ("id", "x", "y", "free")
| 24.444444 | 57 | 0.709091 | 23 | 220 | 6.73913 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195455 | 220 | 8 | 58 | 27.5 | 0.875706 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 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 |
c54830fa353110a14110d31ba0434dfc7e7cf3c3 | 4,174 | py | Python | unit_tests/test_ceph_actions.py | wolsen/charm-ceph-mon | 1e148346b7acb35d9ef38e495178b855c352a133 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-04-17T04:00:38.000Z | 2021-01-18T16:09:54.000Z | unit_tests/test_ceph_actions.py | wolsen/charm-ceph-mon | 1e148346b7acb35d9ef38e495178b855c352a133 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2016-07-01T14:08:13.000Z | 2021-08-20T06:22:20.000Z | unit_tests/test_ceph_actions.py | wolsen/charm-ceph-mon | 1e148346b7acb35d9ef38e495178b855c352a133 | [
"ECL-2.0",
"Apache-2.0"
] | 19 | 2016-03-07T09:07:39.000Z | 2021-10-29T18:03:24.000Z | # Copyright 2019 Canonical Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, sof... | 32.609375 | 79 | 0.620268 | 481 | 4,174 | 5.089397 | 0.241164 | 0.069853 | 0.098039 | 0.042892 | 0.711601 | 0.711601 | 0.711601 | 0.706699 | 0.689951 | 0.689951 | 0 | 0.003284 | 0.270484 | 4,174 | 127 | 80 | 32.866142 | 0.800657 | 0.131049 | 0 | 0.69 | 0 | 0 | 0.150249 | 0 | 0 | 0 | 0 | 0 | 0.07 | 1 | 0.07 | false | 0 | 0.05 | 0 | 0.16 | 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 |
c56dddd072e69ed17cd07c9ef5562e6253d9daaf | 120 | py | Python | ib/apps.py | jayhsieh/Django-based-stock-trading-platform | eefcfff8e895065345a7a2e73fb8722194f8339f | [
"MIT"
] | 3 | 2019-10-26T05:10:23.000Z | 2022-01-31T21:26:37.000Z | ib/apps.py | ajmal017/Django-based-stock-trading-platform | eefcfff8e895065345a7a2e73fb8722194f8339f | [
"MIT"
] | null | null | null | ib/apps.py | ajmal017/Django-based-stock-trading-platform | eefcfff8e895065345a7a2e73fb8722194f8339f | [
"MIT"
] | 10 | 2020-01-18T13:33:14.000Z | 2022-03-16T18:42:50.000Z | from __future__ import unicode_literals
from django.apps import AppConfig
class IbConfig(AppConfig):
name = 'IB'
| 15 | 39 | 0.775 | 15 | 120 | 5.866667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 120 | 7 | 40 | 17.142857 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3d8271764bcf2909119d5ddd43699687ae02c1df | 263 | py | Python | iniciante/python/1014-consumo.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | iniciante/python/1014-consumo.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | iniciante/python/1014-consumo.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | def consumo_medio(distancia_total, combustivel_gasto):
consumo = distancia_total / combustivel_gasto
return print(f'{consumo:.3f} km/l')
distancia = int(input())
total_combustivel_gasto = float(input())
consumo_medio(distancia, total_combustivel_gasto)
| 29.222222 | 54 | 0.78327 | 33 | 263 | 5.939394 | 0.484848 | 0.326531 | 0.428571 | 0.459184 | 0.428571 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.110266 | 263 | 8 | 55 | 32.875 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.068441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 |
3d967f5e4ca4a0f8e73d52c17ac7529ba4f91711 | 310 | py | Python | Day 7-9 - Classes/workingModule.py | sameem420/30-Days-of-Python | f74b2a02d7e13f4f686bf2f93f35039804ae26f8 | [
"MIT"
] | 1 | 2021-04-06T07:00:00.000Z | 2021-04-06T07:00:00.000Z | Day 7-9 - Classes/workingModule.py | sameem420/30-Days-of-Python | f74b2a02d7e13f4f686bf2f93f35039804ae26f8 | [
"MIT"
] | null | null | null | Day 7-9 - Classes/workingModule.py | sameem420/30-Days-of-Python | f74b2a02d7e13f4f686bf2f93f35039804ae26f8 | [
"MIT"
] | null | null | null | class Message():
def __init__(self, username, email, message):
self.username = username
self.email = email
self.message = message
def create_message(self):
return "Hello {0}! We have just received a message from {1}. {2} ".format(self.username, self.email, self.message) | 44.285714 | 122 | 0.651613 | 40 | 310 | 4.925 | 0.5 | 0.182741 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012605 | 0.232258 | 310 | 7 | 122 | 44.285714 | 0.815126 | 0 | 0 | 0 | 0 | 0 | 0.18328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3db8d10c6dd144e275e68d72002bf5a225bb3c9a | 274 | py | Python | wonambi/detect/__init__.py | wonambi-python/wonambi | 4e2834cdd799576d1a231ecb48dfe4da1364fe3a | [
"BSD-3-Clause"
] | 63 | 2017-12-30T08:11:17.000Z | 2022-01-28T10:34:20.000Z | wonambi/detect/__init__.py | wonambi-python/wonambi | 4e2834cdd799576d1a231ecb48dfe4da1364fe3a | [
"BSD-3-Clause"
] | 23 | 2017-09-08T08:29:49.000Z | 2022-03-17T08:19:13.000Z | wonambi/detect/__init__.py | wonambi-python/wonambi | 4e2834cdd799576d1a231ecb48dfe4da1364fe3a | [
"BSD-3-Clause"
] | 12 | 2017-09-18T12:48:36.000Z | 2021-09-22T07:16:07.000Z | """Package to detect spindles, ripples, slow waves.
"""
from .spindle import DetectSpindle, merge_close, transform_signal
from .ripple import DetectRipple
from .slowwave import DetectSlowWave
from .arousal import DetectArousal
from .agreement import consensus, match_events
| 34.25 | 65 | 0.824818 | 33 | 274 | 6.757576 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113139 | 274 | 7 | 66 | 39.142857 | 0.917695 | 0.175182 | 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 |
3dc32cbeb63cd861642aeaa2e805bd30bc7de416 | 106 | py | Python | pyinstaller-hooks/hook-zbarlight.py | matheusd/pypaperbak | 66e56bcfde757d7ebb9094c6cb3e6befeea65af7 | [
"MIT"
] | 24 | 2017-08-02T12:57:55.000Z | 2021-03-01T21:55:29.000Z | pyinstaller-hooks/hook-zbarlight.py | matheusd/pypaperbak | 66e56bcfde757d7ebb9094c6cb3e6befeea65af7 | [
"MIT"
] | 1 | 2019-07-22T14:43:15.000Z | 2019-07-25T13:48:58.000Z | pyinstaller-hooks/hook-zbarlight.py | matheusd/pypaperbak | 66e56bcfde757d7ebb9094c6cb3e6befeea65af7 | [
"MIT"
] | 3 | 2017-10-06T13:44:14.000Z | 2019-02-28T02:15:51.000Z | from PyInstaller.utils.hooks import copy_metadata, collect_data_files
datas = copy_metadata('zbarlight')
| 26.5 | 69 | 0.839623 | 14 | 106 | 6.071429 | 0.857143 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084906 | 106 | 3 | 70 | 35.333333 | 0.876289 | 0 | 0 | 0 | 0 | 0 | 0.084906 | 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 |
3de40fc6499c7797590bb9e1bd727953176498c4 | 87 | py | Python | .history/ClassFiles/Control Flow/ForLoopRangeFunc_20210101223319.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/Control Flow/ForLoopRangeFunc_20210101223319.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/Control Flow/ForLoopRangeFunc_20210101223319.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | ''' Range Function
range() function is a builtin function of python
''' | 29 | 48 | 0.597701 | 10 | 87 | 5.2 | 0.7 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 87 | 3 | 49 | 29 | 0.866667 | 0.724138 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
3df146383332e740aefe945c92a9b840dd9b33e8 | 179 | py | Python | ducks/utils.py | OofChair/JojoCogs | 5cc70b01181b979a0c336e304d5c120f814bbc7b | [
"MIT"
] | null | null | null | ducks/utils.py | OofChair/JojoCogs | 5cc70b01181b979a0c336e304d5c120f814bbc7b | [
"MIT"
] | 3 | 2021-07-28T12:20:18.000Z | 2021-08-14T03:03:54.000Z | ducks/utils.py | OofChair/JojoCogs | 5cc70b01181b979a0c336e304d5c120f814bbc7b | [
"MIT"
] | null | null | null | # Copyright (c) 2021 - Jojo#7791
# Licensed under MIT
class APIError(Exception):
def __init__(self):
super().__init__("There was something wrong with that method.")
| 22.375 | 71 | 0.692737 | 23 | 179 | 5.043478 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.195531 | 179 | 7 | 72 | 25.571429 | 0.75 | 0.268156 | 0 | 0 | 0 | 0 | 0.338583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9a95194c7f49623598dbfa09c3e3eefbe364f4a1 | 416 | py | Python | rest/cli/__init__.py | neo1218/rest | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | [
"MIT"
] | 3 | 2015-12-05T20:57:04.000Z | 2017-04-26T03:02:43.000Z | rest/cli/__init__.py | misakar/rest | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | [
"MIT"
] | 1 | 2015-12-09T18:27:26.000Z | 2015-12-10T16:19:30.000Z | rest/cli/__init__.py | misakar/rest | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | [
"MIT"
] | 4 | 2015-12-11T03:20:27.000Z | 2016-02-03T04:47:52.000Z | # coding: utf-8
"""
rest ~ cli
auth command for auth
auto generate authentication file for HTTPBasicAuthentication with JWS token
step1: inherit class AuthUser
from rest.auth import AuthUser
class User(db.Model, UserMixin, AuthUser):
pass
step2: use auth command to gene... | 19.809524 | 80 | 0.677885 | 54 | 416 | 5.185185 | 0.740741 | 0.078571 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035831 | 0.262019 | 416 | 20 | 81 | 20.8 | 0.876222 | 0.973558 | 0 | null | 1 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9aa738173df145620d46649a7d0a03883f4bb3cf | 207 | py | Python | Ex006.py | BrunosVieira88/Python | 7dc105a62ede0b33d25c5864e892637ca71f2beb | [
"MIT"
] | null | null | null | Ex006.py | BrunosVieira88/Python | 7dc105a62ede0b33d25c5864e892637ca71f2beb | [
"MIT"
] | null | null | null | Ex006.py | BrunosVieira88/Python | 7dc105a62ede0b33d25c5864e892637ca71f2beb | [
"MIT"
] | null | null | null | n1=int(input('digite um numero: '))
print('O dobro de {} é igual a {}'.format(n1,n1*2))
print('O triplo de {} é igual a {}'.format(n1,n1*3))
print("A raiz quadrada de {} é igual a {}".format(n1,n1 **(1/2))) | 41.4 | 65 | 0.608696 | 41 | 207 | 3.073171 | 0.487805 | 0.071429 | 0.190476 | 0.214286 | 0.452381 | 0.452381 | 0.452381 | 0 | 0 | 0 | 0 | 0.062147 | 0.144928 | 207 | 5 | 65 | 41.4 | 0.649718 | 0 | 0 | 0 | 0 | 0 | 0.504808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9ab8e192ac0f978929580fc8d0d3a3ee5f3a7c0d | 16 | py | Python | trackhub/version.py | detrout/trackhub | 87c01b99bff79a6c68131ed843936a6b3713a492 | [
"MIT"
] | null | null | null | trackhub/version.py | detrout/trackhub | 87c01b99bff79a6c68131ed843936a6b3713a492 | [
"MIT"
] | null | null | null | trackhub/version.py | detrout/trackhub | 87c01b99bff79a6c68131ed843936a6b3713a492 | [
"MIT"
] | 1 | 2019-01-07T21:20:27.000Z | 2019-01-07T21:20:27.000Z | version="0.1.3"
| 8 | 15 | 0.625 | 4 | 16 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.0625 | 16 | 1 | 16 | 16 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 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 |
9add7305b7edfec00b303c7c5281850659698f13 | 194 | py | Python | iexfinance/tests/stocks/test_earnings_today.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 653 | 2018-01-02T21:03:49.000Z | 2022-03-24T06:37:10.000Z | iexfinance/tests/stocks/test_earnings_today.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 219 | 2017-12-09T21:44:43.000Z | 2022-03-23T20:21:46.000Z | iexfinance/tests/stocks/test_earnings_today.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 155 | 2018-02-07T17:08:18.000Z | 2022-03-13T23:36:57.000Z | from iexfinance.stocks import get_earnings_today
class TestEarningsToday(object):
def test_earnings_today(self):
data = get_earnings_today()
assert isinstance(data, dict)
| 21.555556 | 48 | 0.742268 | 23 | 194 | 6 | 0.73913 | 0.282609 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190722 | 194 | 8 | 49 | 24.25 | 0.878981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
b11fdcbc4f2eb846d8f6441a45f68bf20e55d71f | 100 | py | Python | django_finkok/apps.py | grvty-labs/django-finkok | a86b4d3162f37f7110ae36ba94118d2dbddc2a1f | [
"MIT"
] | null | null | null | django_finkok/apps.py | grvty-labs/django-finkok | a86b4d3162f37f7110ae36ba94118d2dbddc2a1f | [
"MIT"
] | null | null | null | django_finkok/apps.py | grvty-labs/django-finkok | a86b4d3162f37f7110ae36ba94118d2dbddc2a1f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjangoFinkokConfig(AppConfig):
name = 'django_finkok'
| 16.666667 | 36 | 0.78 | 11 | 100 | 7 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 37 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.13 | 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 |
b12668a5bf4c98ce972e945f66bc6fde598aecc3 | 180 | py | Python | __init__.py | atpaino/stocktradinganalysis | 368a03139f0b9993fe6e254c86b778aa957162c1 | [
"MIT"
] | 3 | 2015-02-13T07:33:30.000Z | 2017-11-18T12:48:57.000Z | __init__.py | atpaino/stocktradinganalysis | 368a03139f0b9993fe6e254c86b778aa957162c1 | [
"MIT"
] | null | null | null | __init__.py | atpaino/stocktradinganalysis | 368a03139f0b9993fe6e254c86b778aa957162c1 | [
"MIT"
] | null | null | null | #This level of the package contains generic stock analysis tools, such as
#code to save NASDAQ stock data and load it from a file.
DATA_PATH = 'C:\Users\Alex\Documents\StockData'
| 36 | 73 | 0.777778 | 31 | 180 | 4.483871 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 180 | 4 | 74 | 45 | 0.914474 | 0.705556 | 0 | 0 | 0 | 0 | 0.647059 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b1478fa2bf6c39bc7431c31ae610a91e1fb585a2 | 65 | py | Python | clearhat.py | coatsy/sense | 0eff613e461a1d26112902cbe42647ae6d2f0133 | [
"MIT"
] | null | null | null | clearhat.py | coatsy/sense | 0eff613e461a1d26112902cbe42647ae6d2f0133 | [
"MIT"
] | null | null | null | clearhat.py | coatsy/sense | 0eff613e461a1d26112902cbe42647ae6d2f0133 | [
"MIT"
] | null | null | null | from sense_hat import SenseHat
sense = SenseHat()
sense.clear()
| 13 | 30 | 0.769231 | 9 | 65 | 5.444444 | 0.666667 | 0.530612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 65 | 4 | 31 | 16.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b15d68e0fa6a57785f43037377ae7b500f8c2cce | 75 | py | Python | cards98/play_game_in_textmode.py | GrzegorzKrug/Player_98CardaGame | 5e11712b9eaaf15eb9aa4a04faea61eb75f6e1cd | [
"Apache-2.0"
] | 1 | 2020-11-30T01:30:49.000Z | 2020-11-30T01:30:49.000Z | cards98/play_game_in_textmode.py | GrzegorzKrug/Player_98CardaGame | 5e11712b9eaaf15eb9aa4a04faea61eb75f6e1cd | [
"Apache-2.0"
] | 2 | 2021-08-25T15:44:11.000Z | 2022-02-10T00:23:53.000Z | cards98/play_game_in_textmode.py | GrzegorzKrug/Player_98CardaGame | 5e11712b9eaaf15eb9aa4a04faea61eb75f6e1cd | [
"Apache-2.0"
] | null | null | null | from game.cards98 import GameCards98
app = GameCards98()
app.start_game()
| 15 | 36 | 0.786667 | 10 | 75 | 5.8 | 0.7 | 0.482759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.12 | 75 | 4 | 37 | 18.75 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b16925de0edfea7557e602ad229d9911eb517a39 | 414 | py | Python | zsalt/spid.py | dmnielsen/zSALT | 938904ef8f331d5e047bd00a04a4424e982552e2 | [
"BSD-3-Clause"
] | null | null | null | zsalt/spid.py | dmnielsen/zSALT | 938904ef8f331d5e047bd00a04a4424e982552e2 | [
"BSD-3-Clause"
] | null | null | null | zsalt/spid.py | dmnielsen/zSALT | 938904ef8f331d5e047bd00a04a4424e982552e2 | [
"BSD-3-Clause"
] | null | null | null | import sys
from pyraf import iraf
from iraf import pysalt
from specidentify import specidentify
specidentify(images=sys.argv[1], linelist=sys.argv[2], outfile='wav.db', guesstype='rss', guessfile='', automethod='Matchlines', function='poly', order=3, rstep=100, rstart='middlerow', mdiff=20, thresh=3, niter=5, smooth=... | 46 | 301 | 0.756039 | 60 | 414 | 5.216667 | 0.75 | 0.044728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.086957 | 414 | 8 | 302 | 51.75 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b1a2d183b1d778cdbc81f6b2f5f605e400ad1a90 | 62,689 | py | Python | venv/lib/python3.7/site-packages/futu/common/pb/Qot_GetSecuritySnapshot_pb2.py | CatTiger/vnpy | 7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b | [
"MIT"
] | 1 | 2021-01-10T00:54:39.000Z | 2021-01-10T00:54:39.000Z | futu/common/pb/Qot_GetSecuritySnapshot_pb2.py | GOGOYAO/py-futu-api | 540cf951738e387fd001064a76ceef6284c75d41 | [
"Apache-2.0"
] | 1 | 2020-04-21T02:42:32.000Z | 2020-04-21T02:42:32.000Z | venv/lib/python3.7/site-packages/futu/common/pb/Qot_GetSecuritySnapshot_pb2.py | CatTiger/vnpy | 7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b | [
"MIT"
] | 1 | 2021-02-17T17:46:36.000Z | 2021-02-17T17:46:36.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: Qot_GetSecuritySnapshot.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refl... | 50.719256 | 6,181 | 0.751168 | 7,841 | 62,689 | 5.759725 | 0.057518 | 0.065188 | 0.075417 | 0.086356 | 0.789425 | 0.623223 | 0.609783 | 0.608631 | 0.604734 | 0.60159 | 0 | 0.048597 | 0.128842 | 62,689 | 1,235 | 6,182 | 50.760324 | 0.778364 | 0.016032 | 0 | 0.732143 | 1 | 0.002551 | 0.243579 | 0.21092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006803 | 0 | 0.006803 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b1ac16d64bd4921dfe44c2aa05a7d48be292ba10 | 7,425 | py | Python | tests/test_plugins/test_plugins.py | philschatz/manim | e3359a571d9a02a08979b3e037ddada3e874eb7c | [
"MIT"
] | 1 | 2021-11-01T09:22:36.000Z | 2021-11-01T09:22:36.000Z | tests/test_plugins/test_plugins.py | philschatz/manim | e3359a571d9a02a08979b3e037ddada3e874eb7c | [
"MIT"
] | 3 | 2021-04-28T14:44:39.000Z | 2021-04-28T15:32:43.000Z | tests/test_plugins/test_plugins.py | philschatz/manim | e3359a571d9a02a08979b3e037ddada3e874eb7c | [
"MIT"
] | 1 | 2021-02-09T08:04:03.000Z | 2021-02-09T08:04:03.000Z | import shutil
import textwrap
from pathlib import Path
import pytest
from ..utils.commands import capture
plugin_pyproject_template = textwrap.dedent(
"""
[tool.poetry]
name = "{plugin_name}"
authors = ["ManimCE"]
version = "0.1.0"
description = ""
[tool.poetry.de... | 27.09854 | 78 | 0.593805 | 887 | 7,425 | 4.648253 | 0.148816 | 0.049236 | 0.029105 | 0.050934 | 0.728353 | 0.721562 | 0.714771 | 0.695853 | 0.686393 | 0.671356 | 0 | 0.004526 | 0.285791 | 7,425 | 273 | 79 | 27.197802 | 0.772959 | 0 | 0 | 0.727273 | 0 | 0 | 0.103238 | 0.016268 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.043062 | false | 0 | 0.043062 | 0.004785 | 0.095694 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
490f19a97929f12c101f6985ea705df03e36fe9c | 254 | py | Python | customer/admin.py | mostafaitalian/digitec | 46496ab23ef20a22840fb106d672ea56ba63f1f6 | [
"MIT"
] | null | null | null | customer/admin.py | mostafaitalian/digitec | 46496ab23ef20a22840fb106d672ea56ba63f1f6 | [
"MIT"
] | 3 | 2021-09-08T03:21:22.000Z | 2022-03-12T01:02:48.000Z | customer/admin.py | mostafaitalian/digitec | 46496ab23ef20a22840fb106d672ea56ba63f1f6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Customer, Department
# Register your models here.
@admin.register(Customer)
class CustomerAdmin(admin.ModelAdmin):
pass
@admin.register(Department)
class DepartmentAdmin(admin.ModelAdmin):
pass | 28.222222 | 40 | 0.80315 | 30 | 254 | 6.8 | 0.533333 | 0.127451 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114173 | 254 | 9 | 41 | 28.222222 | 0.906667 | 0.102362 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
495d0dc8e078af7ebe0c84d12dcbb5301c8e0f19 | 134 | py | Python | cgbeacon2/instance/__init__.py | Clinical-Genomics/cgbeacon2 | 968771c80d65b265141a0a67c6c58c565536fa49 | [
"MIT"
] | null | null | null | cgbeacon2/instance/__init__.py | Clinical-Genomics/cgbeacon2 | 968771c80d65b265141a0a67c6c58c565536fa49 | [
"MIT"
] | 169 | 2020-04-08T08:34:17.000Z | 2022-03-31T12:25:30.000Z | cgbeacon2/instance/__init__.py | Clinical-Genomics/cgbeacon2 | 968771c80d65b265141a0a67c6c58c565536fa49 | [
"MIT"
] | 1 | 2020-10-26T15:50:56.000Z | 2020-10-26T15:50:56.000Z | import pkg_resources
config_file = "instance/config.py"
config_file_path = pkg_resources.resource_filename("cgbeacon2", config_file)
| 26.8 | 76 | 0.835821 | 18 | 134 | 5.833333 | 0.611111 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.074627 | 134 | 4 | 77 | 33.5 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.201493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
498f035408602d3b5625b46a18b030f62829dde2 | 655 | py | Python | xarray/tests/test_options.py | martindurant/xarray | 98a05f11c6f38489c82e86c9e9df796e7fb65fd2 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2019-09-10T17:41:42.000Z | 2019-09-10T17:41:42.000Z | xarray/tests/test_options.py | thadncs/https-github.com-pydata-xarray | e31cf43e8d183c63474b2898a0776fda72abc82c | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2017-11-17T03:25:56.000Z | 2017-11-17T04:14:30.000Z | xarray/tests/test_options.py | thadncs/https-github.com-pydata-xarray | e31cf43e8d183c63474b2898a0776fda72abc82c | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2018-08-24T00:08:21.000Z | 2018-08-24T00:08:21.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import xarray
import pytest
from xarray.core.options import OPTIONS
def test_invalid_option_raises():
with pytest.raises(ValueError):
xarray.set_options(not_a_valid_options=True)
def test_nested... | 28.478261 | 52 | 0.740458 | 83 | 655 | 5.457831 | 0.361446 | 0.216336 | 0.293598 | 0.220751 | 0.373068 | 0.370861 | 0.313466 | 0.313466 | 0 | 0 | 0 | 0.009259 | 0.175573 | 655 | 22 | 53 | 29.772727 | 0.82963 | 0 | 0 | 0.117647 | 0 | 0 | 0.099237 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.470588 | 0.058824 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
49907f94b4b29755a6dcbde16f1ef0eecaf849a8 | 116 | py | Python | flask_blog/models/users.py | kshoji6011/serverless-application | a2dbbb318d95ba505117295acd2152317ed99552 | [
"Apache-2.0"
] | null | null | null | flask_blog/models/users.py | kshoji6011/serverless-application | a2dbbb318d95ba505117295acd2152317ed99552 | [
"Apache-2.0"
] | null | null | null | flask_blog/models/users.py | kshoji6011/serverless-application | a2dbbb318d95ba505117295acd2152317ed99552 | [
"Apache-2.0"
] | null | null | null | from flask_login import UserMixin
class User(UserMixin):
def __init__(self, user_id):
self.id = user_id | 23.2 | 33 | 0.715517 | 17 | 116 | 4.470588 | 0.647059 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 116 | 5 | 34 | 23.2 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b8cee0159eb6f8c5e337338ea9460d9cbb3851e8 | 3,387 | py | Python | tests/unit/test_base.py | yazug/koji_wrapper | 571654341859cd305199c580fa6f2628a00a011d | [
"MIT"
] | null | null | null | tests/unit/test_base.py | yazug/koji_wrapper | 571654341859cd305199c580fa6f2628a00a011d | [
"MIT"
] | null | null | null | tests/unit/test_base.py | yazug/koji_wrapper | 571654341859cd305199c580fa6f2628a00a011d | [
"MIT"
] | null | null | null | """
Test the KojiBase class
"""
import koji
import pytest
from unittest.mock import MagicMock
from koji_wrapper.base import KojiWrapperBase
def test_parses_config(shared_datadir):
"""
GIVEN we have a profile defined in a user-specified directory
WHEN we create a koji.ClientSession object
THEN we sho... | 31.073394 | 77 | 0.687924 | 480 | 3,387 | 4.702083 | 0.202083 | 0.057599 | 0.037218 | 0.029242 | 0.801063 | 0.744794 | 0.727957 | 0.682765 | 0.628711 | 0.628711 | 0 | 0 | 0.241512 | 3,387 | 108 | 78 | 31.361111 | 0.878552 | 0.373192 | 0 | 0.568182 | 0 | 0 | 0.085479 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.159091 | false | 0 | 0.090909 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b8f68eefe95f8095163602c85cea56efe2285487 | 10,637 | py | Python | tests/test_quorum_system.py | adsharma/quoracle | 9e32c2668c9898d73d28404aff1cfc7936977d53 | [
"MIT"
] | null | null | null | tests/test_quorum_system.py | adsharma/quoracle | 9e32c2668c9898d73d28404aff1cfc7936977d53 | [
"MIT"
] | null | null | null | tests/test_quorum_system.py | adsharma/quoracle | 9e32c2668c9898d73d28404aff1cfc7936977d53 | [
"MIT"
] | null | null | null | from quoracle import *
from quoracle.quorum_system import *
import unittest
class TestQuorumSystem(unittest.TestCase):
def test_init(self):
def quorums(e: Expr['str']) -> FrozenSet[FrozenSet[str]]:
return frozenset(frozenset(q) for q in e.quorums())
def assert_equal(x: Expr['str'], y:... | 33.449686 | 80 | 0.496945 | 1,201 | 10,637 | 4.293089 | 0.069109 | 0.154189 | 0.105508 | 0.096974 | 0.844453 | 0.817106 | 0.789566 | 0.745927 | 0.635958 | 0.545966 | 0 | 0.03352 | 0.346526 | 10,637 | 317 | 81 | 33.555205 | 0.708243 | 0.027733 | 0 | 0.611321 | 0 | 0 | 0.025271 | 0 | 0 | 0 | 0 | 0 | 0.264151 | 1 | 0.026415 | false | 0 | 0.011321 | 0.007547 | 0.049057 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
770a863bcbf4b819c3a537c83820997dc4032763 | 241 | py | Python | Part 1/Chapter 11/exercise_11_2.py | kg55555/pypractice | 1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef | [
"MIT"
] | null | null | null | Part 1/Chapter 11/exercise_11_2.py | kg55555/pypractice | 1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef | [
"MIT"
] | null | null | null | Part 1/Chapter 11/exercise_11_2.py | kg55555/pypractice | 1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef | [
"MIT"
] | null | null | null | def city_formatter(city, country, population=''):
if population:
formatted = f"{city.title()}, {country.title()} - Population: {population}"
else:
formatted = f"{city.title()}, {country.title()}"
return formatted
| 34.428571 | 83 | 0.626556 | 25 | 241 | 6 | 0.44 | 0.133333 | 0.186667 | 0.253333 | 0.413333 | 0.413333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19917 | 241 | 6 | 84 | 40.166667 | 0.777202 | 0 | 0 | 0 | 0 | 0 | 0.385892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.