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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fadf8ad0ce754455f3afaab4832b28a7d01d7a8b | 91 | py | Python | modelzoo/apps.py | SuperElastix/ElastixModelZooWebsite | 00d7b4aec8eb04c285d3771d53310079a3443fab | [
"Apache-2.0"
] | 1 | 2021-11-15T07:30:24.000Z | 2021-11-15T07:30:24.000Z | modelzoo/apps.py | SuperElastix/ElastixModelZooWebsite | 00d7b4aec8eb04c285d3771d53310079a3443fab | [
"Apache-2.0"
] | null | null | null | modelzoo/apps.py | SuperElastix/ElastixModelZooWebsite | 00d7b4aec8eb04c285d3771d53310079a3443fab | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class ModelzooConfig(AppConfig):
name = 'modelzoo'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 |
faf0fdc65278cadd936ef392f1b61bcf614377b4 | 226 | py | Python | example_project/server/django_server/ajax_client/urls.py | ghuntley/simpleapi | e64e05e9b2276098d3442db174a4d0204be56b39 | [
"MIT"
] | 1 | 2019-06-27T11:41:03.000Z | 2019-06-27T11:41:03.000Z | example_project/server/django_server/ajax_client/urls.py | ghuntley/simpleapi | e64e05e9b2276098d3442db174a4d0204be56b39 | [
"MIT"
] | null | null | null | example_project/server/django_server/ajax_client/urls.py | ghuntley/simpleapi | e64e05e9b2276098d3442db174a4d0204be56b39 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
urlpatterns = patterns('',
(r'^$', direct_to_template, {'template': 'ajax_client/index.html'}),
) | 28.25 | 72 | 0.707965 | 29 | 226 | 5.344828 | 0.758621 | 0.129032 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.115044 | 226 | 8 | 73 | 28.25 | 0.77 | 0.09292 | 0 | 0 | 0 | 0 | 0.156863 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
878a24f530c1af7566b8684171f362df9aafb83c | 52 | py | Python | repositories/__init__.py | Simon1093/book-shop | 03b9b9af9ee671adaa19b05700aba94a51b5a7c6 | [
"MIT"
] | null | null | null | repositories/__init__.py | Simon1093/book-shop | 03b9b9af9ee671adaa19b05700aba94a51b5a7c6 | [
"MIT"
] | null | null | null | repositories/__init__.py | Simon1093/book-shop | 03b9b9af9ee671adaa19b05700aba94a51b5a7c6 | [
"MIT"
] | null | null | null | from .pastebin_repository import PasteBinRepository
| 26 | 51 | 0.903846 | 5 | 52 | 9.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 52 | 1 | 52 | 52 | 0.958333 | 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 |
878fc39d9a86ab186e65855518088841dbb77f1c | 962 | py | Python | addresses/models.py | indoriyasboyz/E-commerce | a71e7d043899769e48992216bebebc4b43d647ca | [
"MIT"
] | null | null | null | addresses/models.py | indoriyasboyz/E-commerce | a71e7d043899769e48992216bebebc4b43d647ca | [
"MIT"
] | null | null | null | addresses/models.py | indoriyasboyz/E-commerce | a71e7d043899769e48992216bebebc4b43d647ca | [
"MIT"
] | null | null | null | from django.db import models
from billing.models import BillingProfile
ADDRESS_TYPES = (
('billing', 'Billing'),
('shipping', 'Shipping')
)
class Address(models.Model):
billing_profile = models.ForeignKey(BillingProfile, null=True, blank=False, on_delete=models.SET_NULL)
address_type = models.CharFi... | 38.48 | 129 | 0.725572 | 128 | 962 | 5.21875 | 0.351563 | 0.157186 | 0.188623 | 0.251497 | 0.282934 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030414 | 0.14553 | 962 | 25 | 129 | 38.48 | 0.782238 | 0 | 0 | 0 | 0 | 0.052632 | 0.155763 | 0.021807 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0.105263 | 0.789474 | 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 |
8794c79e6d4b49773109e2e11fa609b458c76872 | 2,421 | py | Python | toucan/alert_api/migrations/0001_initial.py | toucan-project/TOUCAN | d562e1191b5ef10480be819ba8c584034c25259b | [
"MIT"
] | 4 | 2019-08-28T14:36:23.000Z | 2019-08-30T09:49:12.000Z | toucan/alert_api/migrations/0001_initial.py | toucan-project/TOUCAN | d562e1191b5ef10480be819ba8c584034c25259b | [
"MIT"
] | 2 | 2021-04-20T17:09:30.000Z | 2021-09-23T23:26:22.000Z | toucan/alert_api/migrations/0001_initial.py | toucan-project/TOUCAN | d562e1191b5ef10480be819ba8c584034c25259b | [
"MIT"
] | 1 | 2020-01-22T20:01:58.000Z | 2020-01-22T20:01:58.000Z | # Generated by Django 2.2.3 on 2019-08-27 10:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CanaryAlertItem',
fields=[
('id', models.Au... | 42.473684 | 114 | 0.551012 | 235 | 2,421 | 5.53617 | 0.353191 | 0.230592 | 0.221368 | 0.295158 | 0.51422 | 0.374327 | 0.182168 | 0.182168 | 0.182168 | 0.182168 | 0 | 0.038915 | 0.299463 | 2,421 | 56 | 115 | 43.232143 | 0.728184 | 0.018587 | 0 | 0.346939 | 1 | 0 | 0.084667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.102041 | 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 |
87972328e81aacc489fee9da7362c4fcec06a852 | 174 | py | Python | python/local-for.py | tbedford/code-snippets | 9afe36c2726829f14fa5ec11acb8214bed704938 | [
"MIT"
] | null | null | null | python/local-for.py | tbedford/code-snippets | 9afe36c2726829f14fa5ec11acb8214bed704938 | [
"MIT"
] | null | null | null | python/local-for.py | tbedford/code-snippets | 9afe36c2726829f14fa5ec11acb8214bed704938 | [
"MIT"
] | 1 | 2018-10-09T02:03:12.000Z | 2018-10-09T02:03:12.000Z |
def my_func(count=4):
for i in range (1, 5):
print("count", count)
if count == 2:
print("count", count)
count = count - 1
my_func()
| 17.4 | 33 | 0.488506 | 25 | 174 | 3.32 | 0.56 | 0.481928 | 0.361446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.367816 | 174 | 9 | 34 | 19.333333 | 0.709091 | 0 | 0 | 0.285714 | 0 | 0 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.285714 | 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 |
87ca3a15e9e075458189419f7fbdf67f0a94cb5c | 110 | py | Python | abc254/a/main.py | seigot/atcoder | 6c2da684c75b7c5de162de3713a13507aeecce1d | [
"MIT"
] | 2 | 2021-12-28T11:43:47.000Z | 2022-02-20T14:41:27.000Z | abc254/a/main.py | seigot/atcoder | 6c2da684c75b7c5de162de3713a13507aeecce1d | [
"MIT"
] | null | null | null | abc254/a/main.py | seigot/atcoder | 6c2da684c75b7c5de162de3713a13507aeecce1d | [
"MIT"
] | null | null | null | s = str(input())
ss = ''.join(list(reversed(s)))
sss = ss[:2]
ssss = ''.join(list(reversed(sss)))
print(ssss)
| 18.333333 | 35 | 0.6 | 18 | 110 | 3.666667 | 0.611111 | 0.242424 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.118182 | 110 | 5 | 36 | 22 | 0.670103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
87d9822daad3fd6ab117e7b34cc822b4c5d97a44 | 174 | py | Python | skmine/periodic/__init__.py | sdall/scikit-mine | a8b63035ff1d766924788d16df136eb1dcc49da3 | [
"BSD-3-Clause"
] | null | null | null | skmine/periodic/__init__.py | sdall/scikit-mine | a8b63035ff1d766924788d16df136eb1dcc49da3 | [
"BSD-3-Clause"
] | null | null | null | skmine/periodic/__init__.py | sdall/scikit-mine | a8b63035ff1d766924788d16df136eb1dcc49da3 | [
"BSD-3-Clause"
] | null | null | null | """
The :mod:`skmine.periodic` implements tools to tackle periodicity in
datasets, preferably presentend in the form of event logs
"""
from .cycles import PeriodicCycleMiner
| 29 | 68 | 0.793103 | 23 | 174 | 6 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132184 | 174 | 5 | 69 | 34.8 | 0.913907 | 0.724138 | 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 |
35948db173b7bbd5ba900cd657faaa2ef535e475 | 106 | py | Python | sugarpidisplay/sugarpiconfig/__init__.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | 1 | 2022-02-12T20:39:20.000Z | 2022-02-12T20:39:20.000Z | sugarpidisplay/sugarpiconfig/__init__.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | null | null | null | sugarpidisplay/sugarpiconfig/__init__.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | null | null | null |
from flask import Flask
app = Flask(__name__)
app.secret_key = 'my secret key 123'
from .views import *
| 15.142857 | 36 | 0.735849 | 17 | 106 | 4.294118 | 0.588235 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.179245 | 106 | 6 | 37 | 17.666667 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 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 |
35e0a6e230640f363f96585a666f96aa4c9a6376 | 584 | py | Python | py/h2o_config_dump_example.py | vkuznet/h2o | e08f7014f228cbaecfb21f57379970e6a3ac0756 | [
"Apache-2.0"
] | 1 | 2017-12-14T04:57:51.000Z | 2017-12-14T04:57:51.000Z | py/h2o_config_dump_example.py | hansight/h2o | d7eee8b69dd3538b83412989eee361d2a2883857 | [
"Apache-2.0"
] | null | null | null | py/h2o_config_dump_example.py | hansight/h2o | d7eee8b69dd3538b83412989eee361d2a2883857 | [
"Apache-2.0"
] | 1 | 2018-12-18T06:18:55.000Z | 2018-12-18T06:18:55.000Z |
# used to create example of what we want for the json file
# not used for normal execution
hostDict = {}
hostDict['username'] = '0xdiag'
hostDict['password'] = '0xdiag'
hostDict['h2o_per_host'] = 2
hostDict['ip'] = []
hostDict['ip'].append('192.168.0.30')
hostDict['ip'].append('192.168.0.31')
hostDict['ip'].append('1... | 27.809524 | 60 | 0.693493 | 93 | 584 | 4.311828 | 0.505376 | 0.149626 | 0.199501 | 0.236908 | 0.386534 | 0.286783 | 0 | 0 | 0 | 0 | 0 | 0.097889 | 0.107877 | 584 | 20 | 61 | 29.2 | 0.671785 | 0.14726 | 0 | 0 | 0 | 0 | 0.255578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0 | null | null | 0.071429 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ea00eb0dc722603508ff6da0f340041fbe048aaf | 405 | py | Python | lib/clock.py | kostyaby/fc-helper | 727b4418a832cad73fbf3a76b07973ec7dd8f49f | [
"MIT"
] | null | null | null | lib/clock.py | kostyaby/fc-helper | 727b4418a832cad73fbf3a76b07973ec7dd8f49f | [
"MIT"
] | null | null | null | lib/clock.py | kostyaby/fc-helper | 727b4418a832cad73fbf3a76b07973ec7dd8f49f | [
"MIT"
] | null | null | null | from . import Constant
from datetime import date
import os.path
import time
class Clock:
def __init__(self):
self.cached_today = date.today()
self.cached_time = int(time.time() * Constant.Clock.MILLIS_IN_SECOND)
def get_timestamped_directory_name(self, dirname):
return "{}-{}".format(dirname, self.... | 20.25 | 73 | 0.730864 | 55 | 405 | 5.145455 | 0.509091 | 0.141343 | 0.14841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162963 | 405 | 19 | 74 | 21.315789 | 0.834808 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
ea0f5b77f66f23c9063b848f5d615513c4c0eb9c | 227 | py | Python | postgres_connector/errors.py | sandboxws/beam-postgres-connector | d08ed08e96991704fc234dd1e4d2ddf13f1885c1 | [
"MIT"
] | null | null | null | postgres_connector/errors.py | sandboxws/beam-postgres-connector | d08ed08e96991704fc234dd1e4d2ddf13f1885c1 | [
"MIT"
] | null | null | null | postgres_connector/errors.py | sandboxws/beam-postgres-connector | d08ed08e96991704fc234dd1e4d2ddf13f1885c1 | [
"MIT"
] | null | null | null | """Postgres Connector error classes."""
class PostgresConnectorError(Exception):
"""Base class for all errors."""
class PostgresClientError(PostgresConnectorError):
"""An error specific to the PostgreSQL driver."""
| 22.7 | 53 | 0.740088 | 22 | 227 | 7.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140969 | 227 | 9 | 54 | 25.222222 | 0.861538 | 0.45815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ea2d58f84b5df514e7e02a75e584d4a100903b8b | 83 | py | Python | oreo/apps.py | Caiseyann/instagram | d2bdaeb14eeb1b270e3164072153409f2f04f794 | [
"MIT"
] | null | null | null | oreo/apps.py | Caiseyann/instagram | d2bdaeb14eeb1b270e3164072153409f2f04f794 | [
"MIT"
] | null | null | null | oreo/apps.py | Caiseyann/instagram | d2bdaeb14eeb1b270e3164072153409f2f04f794 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class OreoConfig(AppConfig):
name = 'oreo'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
ea67a0fe482d979117822e61e98bbf945251fa7a | 51 | py | Python | src/pythonFEA/constraints/__init__.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | src/pythonFEA/constraints/__init__.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | src/pythonFEA/constraints/__init__.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | from .constraint.nodal import Suppress, Prescribe
| 17 | 49 | 0.823529 | 6 | 51 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 51 | 2 | 50 | 25.5 | 0.933333 | 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 |
576db8ecb910097b59d2f43587f1d66641640a59 | 183 | py | Python | Chapter09/filewrite1.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null | Chapter09/filewrite1.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null | Chapter09/filewrite1.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null | file_input = open("motivation.txt",'w')
file_input.write("Never give up")
file_input.write("\nRise above hate")
file_input.write("\nNo body remember second place")
file_input.close() | 36.6 | 51 | 0.759563 | 29 | 183 | 4.62069 | 0.655172 | 0.335821 | 0.313433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 183 | 5 | 52 | 36.6 | 0.797619 | 0 | 0 | 0 | 0 | 0 | 0.413043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5779ee13cb7483546b7269ccd2b8023e510e1921 | 206 | py | Python | exercisio23.py | bruno194/EXERCICIOS | cf7f00020515731031275a9b8d2696d7bf3bb5dc | [
"MIT"
] | 1 | 2022-02-25T13:28:46.000Z | 2022-02-25T13:28:46.000Z | exercisio23.py | bruno194/EXERCICIOS | cf7f00020515731031275a9b8d2696d7bf3bb5dc | [
"MIT"
] | null | null | null | exercisio23.py | bruno194/EXERCICIOS | cf7f00020515731031275a9b8d2696d7bf3bb5dc | [
"MIT"
] | null | null | null | numero = str(input('digite um numero'))
print('unidade: {}'.format(numero[1]))
print('dezena: {}'.format(numero[2]))
print('centena: {} '.format(numero[3]))
print('unidade de milhar: {}'.format(numero[4]))
| 34.333333 | 48 | 0.65534 | 28 | 206 | 4.821429 | 0.571429 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.07767 | 206 | 5 | 49 | 41.2 | 0.689474 | 0 | 0 | 0 | 0 | 0 | 0.339806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 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 |
578ac58c979fe8249e02e5b2e57a75de4d57379c | 398 | py | Python | server/src/repositories/FilmTop5.py | alexfire008/centrale | f08c66f6064005fa371cbe56401a0e2c692ce905 | [
"MIT"
] | 1 | 2019-06-17T08:24:52.000Z | 2019-06-17T08:24:52.000Z | server/src/repositories/FilmTop5.py | alexfire008/centrale | f08c66f6064005fa371cbe56401a0e2c692ce905 | [
"MIT"
] | null | null | null | server/src/repositories/FilmTop5.py | alexfire008/centrale | f08c66f6064005fa371cbe56401a0e2c692ce905 | [
"MIT"
] | null | null | null | """ Defines the User repository """
from models import Notation
from models import db
from sqlalchemy import func
class FilmTop5Repository:
"""The repository for the notation average truc"""
@staticmethod
def get():
return db.session.query(Notation.movie_title, func.avg(Notation.note)).group_by(... | 28.428571 | 165 | 0.738693 | 54 | 398 | 5.37037 | 0.611111 | 0.068966 | 0.110345 | 0.131034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005865 | 0.143216 | 398 | 13 | 166 | 30.615385 | 0.844575 | 0.180905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.428571 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
5795f2ab46be7e3ec9c242a4c59a1575f4d52ada | 320 | py | Python | pycomponents/html/__init__.py | expert-m/pycomponents | 2add583d02f826a333753265c9801efad2ecf976 | [
"MIT"
] | null | null | null | pycomponents/html/__init__.py | expert-m/pycomponents | 2add583d02f826a333753265c9801efad2ecf976 | [
"MIT"
] | null | null | null | pycomponents/html/__init__.py | expert-m/pycomponents | 2add583d02f826a333753265c9801efad2ecf976 | [
"MIT"
] | null | null | null | from .base import *
from .basic import *
from .forms import *
from .frames import *
from .images import *
from .audio_and_video import *
from .links import *
from .lists import *
from .tables import *
from .semantics import *
from .meta import *
from .formatting import *
from .programming import *
from .other import *
| 21.333333 | 30 | 0.7375 | 44 | 320 | 5.318182 | 0.409091 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 320 | 14 | 31 | 22.857143 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
57d463ae014a1adcc81be7555a5834bfa6a272f4 | 243 | py | Python | Python/Tests/TestData/AstAnalysis/Functions.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 695 | 2019-05-06T23:49:37.000Z | 2022-03-30T01:56:00.000Z | Python/Tests/TestData/AstAnalysis/Functions.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 1,672 | 2019-05-06T21:09:38.000Z | 2022-03-31T23:16:04.000Z | Python/Tests/TestData/AstAnalysis/Functions.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 186 | 2019-05-13T03:17:37.000Z | 2022-03-31T16:24:05.000Z | def f():
'''f'''
pass
def f1(): pass
f2 = f
if True:
def g(): pass
else:
def h(): pass
class C:
def i(self): pass
def j(self):
def j2(self):
pass
class C2:
def k(self): pass
| 11.045455 | 25 | 0.432099 | 37 | 243 | 2.837838 | 0.486486 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.423868 | 243 | 21 | 26 | 11.571429 | 0.721429 | 0.004115 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.533333 | false | 0.466667 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
57d4a21c9e38d88d70ac59d0af2e069ddcb1851d | 84 | py | Python | D_Network_analysis/solutions/ex1_2.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 7 | 2019-07-03T07:41:55.000Z | 2022-02-06T20:25:37.000Z | D_Network_analysis/solutions/ex1_2.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 9 | 2019-03-14T15:15:09.000Z | 2019-08-01T14:18:21.000Z | D_Network_analysis/solutions/ex1_2.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 11 | 2019-03-12T10:43:11.000Z | 2021-10-05T12:15:00.000Z |
print(G.number_of_edges())
print(len(G.edges()))
# both are equally valid solutions | 21 | 34 | 0.75 | 14 | 84 | 4.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 84 | 4 | 34 | 21 | 0.802632 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
57de75decc2524ccfcf879c9b0e7cfcbd68a761b | 7,684 | py | Python | examples/shared/dqn/networks.py | MushroomRL/mushroom-rl-meta | 08c13bd8115c81aba083ec62672956026e7ddd8a | [
"MIT"
] | null | null | null | examples/shared/dqn/networks.py | MushroomRL/mushroom-rl-meta | 08c13bd8115c81aba083ec62672956026e7ddd8a | [
"MIT"
] | null | null | null | examples/shared/dqn/networks.py | MushroomRL/mushroom-rl-meta | 08c13bd8115c81aba083ec62672956026e7ddd8a | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class AtariNetwork(nn.Module):
n_features = 512
def __init__(self, input_shape, _, n_actions_per_head, use_cuda, n_games,
features, dropout):
super().__init__()
self._n_input = input_shape... | 32.697872 | 85 | 0.530713 | 1,031 | 7,684 | 3.692532 | 0.118332 | 0.030208 | 0.034148 | 0.028369 | 0.838193 | 0.809299 | 0.744156 | 0.673759 | 0.659574 | 0.610454 | 0 | 0.028099 | 0.346955 | 7,684 | 234 | 86 | 32.837607 | 0.73057 | 0 | 0 | 0.604278 | 0 | 0 | 0.008069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064171 | false | 0 | 0.02139 | 0 | 0.122995 | 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 |
17b0ab50f83e4b3d03c38e3742d6653db8220b16 | 54,196 | py | Python | dnn_inference/BBoxTest.py | StatML-dAI/dnn-inference | f17b6945dfff80118e25f1b39b56c3e4027b3b92 | [
"MIT"
] | null | null | null | dnn_inference/BBoxTest.py | StatML-dAI/dnn-inference | f17b6945dfff80118e25f1b39b56c3e4027b3b92 | [
"MIT"
] | null | null | null | dnn_inference/BBoxTest.py | StatML-dAI/dnn-inference | f17b6945dfff80118e25f1b39b56c3e4027b3b92 | [
"MIT"
] | 2 | 2022-02-17T15:57:42.000Z | 2022-02-20T11:50:45.000Z | """
Significance testing based on black-box models
"""
# Author: Ben Dai <bendai@cuhk.edu.hk>
from tensorflow.keras.models import load_model
import numpy as np
from scipy.stats import norm, mode
from sklearn.model_selection import train_test_split
from tensorflow.keras.callbacks import EarlyStopping
import warnings
i... | 43.046863 | 249 | 0.554838 | 7,013 | 54,196 | 4.085983 | 0.071011 | 0.028058 | 0.020939 | 0.018147 | 0.796545 | 0.756936 | 0.72811 | 0.704449 | 0.679288 | 0.654964 | 0 | 0.012086 | 0.332829 | 54,196 | 1,258 | 250 | 43.081081 | 0.780408 | 0.357554 | 0 | 0.538593 | 0 | 0.015437 | 0.079255 | 0.001358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049743 | false | 0 | 0.02916 | 0.001715 | 0.118353 | 0.034305 | 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 |
17b47676490f2149ca392d188665a19bb39414e1 | 170 | py | Python | {{cookiecutter.repo_name}}/src/{{cookiecutter.django_project_name}}/apps.py | ionelmc/cookiecutter-django-docker | 98a114a6fd0831d4b528bad07976787ac8ca8004 | [
"Apache-2.0"
] | 1 | 2021-11-13T15:10:04.000Z | 2021-11-13T15:10:04.000Z | {{cookiecutter.repo_name}}/src/{{cookiecutter.django_project_name}}/apps.py | ionelmc/cookiecutter-django-docker | 98a114a6fd0831d4b528bad07976787ac8ca8004 | [
"Apache-2.0"
] | null | null | null | {{cookiecutter.repo_name}}/src/{{cookiecutter.django_project_name}}/apps.py | ionelmc/cookiecutter-django-docker | 98a114a6fd0831d4b528bad07976787ac8ca8004 | [
"Apache-2.0"
] | 1 | 2022-01-06T06:55:11.000Z | 2022-01-06T06:55:11.000Z | from django.contrib.admin.apps import AdminConfig
class CustomAdminConfig(AdminConfig):
default_site = '{{cookiecutter.django_project_name}}.admin.CustomAdminSite'
| 28.333333 | 79 | 0.817647 | 18 | 170 | 7.555556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 170 | 5 | 80 | 34 | 0.877419 | 0 | 0 | 0 | 0 | 0 | 0.341176 | 0.341176 | 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 |
17ea96c4fcc556760829a5069c2f5e81a624bc26 | 1,657 | py | Python | tests/test_executors.py | smartlegionlab/commandpack | b151875201ee4cb30d91f57a47c9ef8a2f01a2f7 | [
"BSD-3-Clause"
] | 1 | 2021-11-17T21:35:41.000Z | 2021-11-17T21:35:41.000Z | tests/test_executors.py | smartlegionlab/commandpack | b151875201ee4cb30d91f57a47c9ef8a2f01a2f7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_executors.py | smartlegionlab/commandpack | b151875201ee4cb30d91f57a47c9ef8a2f01a2f7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# --------------------------------------------------------
# Licensed under the terms of the BSD 3-Clause License
# (see LICENSE for details).
# Copyright © 2018-2021, A.A Suvorov
# All rights reserved.
# -------------------------------------------------------
import os
from commandpack.executo... | 35.255319 | 79 | 0.654194 | 184 | 1,657 | 5.652174 | 0.282609 | 0.2875 | 0.192308 | 0.25 | 0.561538 | 0.561538 | 0.486538 | 0.379808 | 0.269231 | 0.269231 | 0 | 0.007513 | 0.196741 | 1,657 | 46 | 80 | 36.021739 | 0.773103 | 0.162945 | 0 | 0.172414 | 0 | 0 | 0.003626 | 0 | 0 | 0 | 0 | 0 | 0.344828 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17eed3394d447ad4dfb39e51feba0208270eeaa8 | 153 | py | Python | codes_/0705_Design_HashSet.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0705_Design_HashSet.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0705_Design_HashSet.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [705. Design HashSet](https://leetcode.com/problems/design-hashset/)
class MyHashSet(set):
remove = set.discard
contains = set.__contains__
| 30.6 | 73 | 0.712418 | 18 | 153 | 5.833333 | 0.722222 | 0.247619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.137255 | 153 | 4 | 74 | 38.25 | 0.772727 | 0.464052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
aa33e3a7bbb06551ba3c984cc7da2a44f747d850 | 23 | py | Python | arrow/__init__.py | galaxy-genome-annotation/python-apollo | 1257e050ee3fc0a7f7ab8a8c780aefee5c8143f8 | [
"MIT"
] | 5 | 2017-06-27T19:41:57.000Z | 2021-06-05T13:36:11.000Z | arrow/__init__.py | galaxy-genome-annotation/python-apollo | 1257e050ee3fc0a7f7ab8a8c780aefee5c8143f8 | [
"MIT"
] | 28 | 2017-07-24T15:10:37.000Z | 2021-09-03T11:56:35.000Z | arrow/__init__.py | galaxy-genome-annotation/python-apollo | 1257e050ee3fc0a7f7ab8a8c780aefee5c8143f8 | [
"MIT"
] | 10 | 2017-05-10T19:13:44.000Z | 2021-08-09T04:52:33.000Z | __version__ = '4.2.13'
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa3604753b41cc5a0cab774f98f89109af994931 | 332 | py | Python | tests/plantcv/visualize/test_colorize_label_img.py | ygarrot/plantcv | e934a891e0d1bf8987ca6a9f982a4ac1f420bfe7 | [
"MIT"
] | 1 | 2022-02-03T12:08:59.000Z | 2022-02-03T12:08:59.000Z | tests/plantcv/visualize/test_colorize_label_img.py | HUISTENCOFFEE/plantcv | f38f7de53663522eb770870b70823d5fc46d0c0f | [
"MIT"
] | null | null | null | tests/plantcv/visualize/test_colorize_label_img.py | HUISTENCOFFEE/plantcv | f38f7de53663522eb770870b70823d5fc46d0c0f | [
"MIT"
] | null | null | null | import numpy as np
from plantcv.plantcv.visualize import colorize_label_img
def test_colorize_label_img():
"""Test for PlantCV."""
label_img = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
colored_img = colorize_label_img(label_img)
assert (colored_img.shape[0:-1] == label_img.shape) and colored_img.sha... | 33.2 | 86 | 0.686747 | 55 | 332 | 3.909091 | 0.509091 | 0.223256 | 0.223256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046595 | 0.159639 | 332 | 9 | 87 | 36.888889 | 0.724014 | 0.051205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
aa3ab5713d31f14c6a24991f6f77843e3a14c2b7 | 471 | py | Python | app/admin/daq_admin.py | quanpower/sitp | 082f244dd35c5e881b332a624d4808f3e9e81a96 | [
"Apache-2.0"
] | null | null | null | app/admin/daq_admin.py | quanpower/sitp | 082f244dd35c5e881b332a624d4808f3e9e81a96 | [
"Apache-2.0"
] | 4 | 2020-03-24T15:46:19.000Z | 2022-03-08T21:09:16.000Z | app/admin/daq_admin.py | quanpower/sitp | 082f244dd35c5e881b332a624d4808f3e9e81a96 | [
"Apache-2.0"
] | null | null | null | from flask_admin import Admin, BaseView, expose
from flask_admin.contrib.sqla import ModelView
from app.models import Temperature
import flask_login as login
class TemperatureModelView(ModelView):
def __init__(self, session, **kwargs):
# You can pass name and other parameters if you want to
super(... | 31.4 | 82 | 0.764331 | 60 | 471 | 5.766667 | 0.633333 | 0.052023 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169851 | 471 | 14 | 83 | 33.642857 | 0.88491 | 0.112527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
aa434eeae23a6a8cbf5fe3b603a79be5b0733f85 | 414 | py | Python | problems/191.Number_of_1_Bits/li.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/191.Number_of_1_Bits/li.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/191.Number_of_1_Bits/li.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | class Solution(object):
def hammingWeight(self, n):
"""
:type n: int
:rtype: int
"""
res = 0
while n:
res += 1
n &= (n-1)
return res
def hammingWeight(self, n):
for i in range(33):
if not n: return i
... | 18 | 32 | 0.42029 | 50 | 414 | 3.48 | 0.5 | 0.275862 | 0.344828 | 0.362069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031111 | 0.456522 | 414 | 22 | 33 | 18.818182 | 0.742222 | 0.074879 | 0 | 0.384615 | 0 | 0 | 0.002865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a4b9b34ae81930787322075904aa3296c4fefb23 | 1,427 | py | Python | cursors/coords.py | Jonas164/PSpaMM | 4941a14d6db03117c68d735c4fa78f66f327af2d | [
"BSD-3-Clause"
] | null | null | null | cursors/coords.py | Jonas164/PSpaMM | 4941a14d6db03117c68d735c4fa78f66f327af2d | [
"BSD-3-Clause"
] | null | null | null | cursors/coords.py | Jonas164/PSpaMM | 4941a14d6db03117c68d735c4fa78f66f327af2d | [
"BSD-3-Clause"
] | 2 | 2020-12-09T12:46:58.000Z | 2021-07-13T10:56:44.000Z | from collections import namedtuple
# The relationship between blocks and cells has become too complicated to
# safely bake into a coordinate system. The semantics has been moved to the
# cursor movement commands. A NewCoords object may represent a logical cell,
# a logical block start, or a physical block start depend... | 37.552632 | 89 | 0.665032 | 189 | 1,427 | 4.873016 | 0.433862 | 0.052117 | 0.070575 | 0.086862 | 0.314875 | 0.314875 | 0.314875 | 0.22367 | 0.22367 | 0.128122 | 0 | 0.001826 | 0.232656 | 1,427 | 38 | 90 | 37.552632 | 0.839269 | 0.289418 | 0 | 0 | 0 | 0 | 0.042659 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.125 | 0.583333 | 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 |
a4c89ea15ba64b8b6f264c35fcaeb76de5ace39c | 6,496 | py | Python | reinvent-2019/connected-photo-booth/py_client/config.py | chriscoombs/aws-builders-fair-projects | eee405931030b833fa8c51e906c73d09ce051bcd | [
"Apache-2.0"
] | null | null | null | reinvent-2019/connected-photo-booth/py_client/config.py | chriscoombs/aws-builders-fair-projects | eee405931030b833fa8c51e906c73d09ce051bcd | [
"Apache-2.0"
] | null | null | null | reinvent-2019/connected-photo-booth/py_client/config.py | chriscoombs/aws-builders-fair-projects | eee405931030b833fa8c51e906c73d09ce051bcd | [
"Apache-2.0"
] | null | null | null | import boto3
import botocore
import os
import glob
import json
import requests
from datetime import datetime
from time import sleep
from time import gmtime, strftime
import sys, getopt
import argparse
import subprocess
from shutil import copyfile, rmtree
import logging
import configparser
__CONFIG_FILE_PATH__ ... | 26.406504 | 114 | 0.671952 | 749 | 6,496 | 5.090788 | 0.188251 | 0.11828 | 0.117493 | 0.193024 | 0.380278 | 0.259376 | 0.097036 | 0.050354 | 0.031996 | 0.031996 | 0 | 0.002021 | 0.238454 | 6,496 | 245 | 115 | 26.514286 | 0.768749 | 0.023707 | 0 | 0.279762 | 0 | 0 | 0.142643 | 0.062012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.089286 | 0.244048 | 0.625 | 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 |
a4f4cc7885a15a585587ac425f24ba1f7aec8ca1 | 3,560 | py | Python | src/components/client/logica/logica_client.py | adp1002/practica-dms-2019-2020 | 9ae0c71140d537bb43c0f8ec8a81b8fff38dec21 | [
"MIT"
] | null | null | null | src/components/client/logica/logica_client.py | adp1002/practica-dms-2019-2020 | 9ae0c71140d537bb43c0f8ec8a81b8fff38dec21 | [
"MIT"
] | null | null | null | src/components/client/logica/logica_client.py | adp1002/practica-dms-2019-2020 | 9ae0c71140d537bb43c0f8ec8a81b8fff38dec21 | [
"MIT"
] | null | null | null | from conexiones.auth_client import AuthClient
from conexiones.hub_client import HubClient
from conexiones.game_client import GameClient
"""
Clase LogicaCliente es un clase con metodos estaticos.
Es la clase que lleva la logica y la que se comunica con la capa de datos.
"""
class LogicaCliente:
""" Reg... | 34.901961 | 115 | 0.665169 | 437 | 3,560 | 5.320366 | 0.281465 | 0.094624 | 0.051613 | 0.028387 | 0.282581 | 0.218925 | 0.188817 | 0.173763 | 0.173763 | 0.173763 | 0 | 0 | 0.271348 | 3,560 | 102 | 116 | 34.901961 | 0.896299 | 0.065449 | 0 | 0.21875 | 0 | 0 | 0.068801 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.21875 | false | 0.125 | 0.09375 | 0.125 | 0.59375 | 0.03125 | 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 |
a4f8c498ac79bb7c4f62a12a791b6d722f785086 | 267 | py | Python | backend/dynamicanalysis/codecoverage/serializers.py | IsmatAl/thesisProject | 1134ae3727d489f606e99625b14897a766409b73 | [
"Apache-2.0"
] | 1 | 2021-07-03T16:44:18.000Z | 2021-07-03T16:44:18.000Z | backend/dynamicanalysis/codecoverage/serializers.py | IsmatAl/thesisProject | 1134ae3727d489f606e99625b14897a766409b73 | [
"Apache-2.0"
] | null | null | null | backend/dynamicanalysis/codecoverage/serializers.py | IsmatAl/thesisProject | 1134ae3727d489f606e99625b14897a766409b73 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
class CodeCoverageSerializer(serializers.Serializer):
entry = serializers.CharField()
# id = serializers.CharField()
# inputs = serializers.ListField()
# expectedOutputs = serializers.ListField(required=False)
| 29.666667 | 61 | 0.764045 | 23 | 267 | 8.826087 | 0.695652 | 0.197044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 267 | 8 | 62 | 33.375 | 0.890351 | 0.438202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a4faaf198608f9edc4e9ccfccf1245286f8062a9 | 3,300 | py | Python | z2/part3/updated_part2_batch/jm/parser_errors_2/507857314.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 1 | 2020-04-16T12:13:47.000Z | 2020-04-16T12:13:47.000Z | z2/part3/updated_part2_batch/jm/parser_errors_2/507857314.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 18 | 2020-03-06T17:50:15.000Z | 2020-05-19T14:58:30.000Z | z2/part3/updated_part2_batch/jm/parser_errors_2/507857314.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 18 | 2020-03-06T17:45:13.000Z | 2020-06-09T19:18:31.000Z | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 507857314
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 4, 4, 3)
assert board is... | 28.695652 | 46 | 0.658788 | 585 | 3,300 | 3.564103 | 0.073504 | 0.311271 | 0.345324 | 0.460432 | 0.708873 | 0.691127 | 0.609592 | 0.415348 | 0.370743 | 0.370743 | 0 | 0.144231 | 0.180606 | 3,300 | 114 | 47 | 28.947368 | 0.626849 | 0 | 0 | 0.25 | 0 | 0 | 0.026152 | 0 | 0 | 0 | 0 | 0 | 0.6875 | 1 | 0 | false | 0 | 0.010417 | 0 | 0.010417 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
350ab29d99cc59e572eb6ccbaca5d0a2e6b4cab3 | 220 | py | Python | testing/slices.py | aheadley/pynemap | f2aa373e7c43755ce73c0a60110b609018cd2dcb | [
"MIT"
] | 6 | 2015-10-15T08:28:19.000Z | 2021-11-17T23:02:02.000Z | testing/slices.py | aheadley/pynemap | f2aa373e7c43755ce73c0a60110b609018cd2dcb | [
"MIT"
] | null | null | null | testing/slices.py | aheadley/pynemap | f2aa373e7c43755ce73c0a60110b609018cd2dcb | [
"MIT"
] | null | null | null | #!/usr/bin/python
import numpy
import nbt
blocks = numpy.fromstring(nbt.NBTFile('/home/aheadley/.minecraft/saves/World1/0/0/c.0.0.dat','rb')['Level']['Blocks'].value, dtype=numpy.uint8).reshape(16,16,128)
print blocks
| 27.5 | 162 | 0.731818 | 36 | 220 | 4.472222 | 0.722222 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062802 | 0.059091 | 220 | 7 | 163 | 31.428571 | 0.714976 | 0.072727 | 0 | 0 | 0 | 0.25 | 0.320197 | 0.256158 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.25 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3513092c9bf86ec661f011c1fc0cce874d87f4b7 | 223 | py | Python | python/hard_python/guess/method.py | ii6uu99/ipynb | d924a6926838ca5e563620cd324368a07d2c2521 | [
"MIT"
] | 1 | 2021-01-27T09:01:33.000Z | 2021-01-27T09:01:33.000Z | python/hard_python/guess/method.py | ii6uu99/ipynb | d924a6926838ca5e563620cd324368a07d2c2521 | [
"MIT"
] | null | null | null | python/hard_python/guess/method.py | ii6uu99/ipynb | d924a6926838ca5e563620cd324368a07d2c2521 | [
"MIT"
] | 1 | 2021-01-26T13:22:21.000Z | 2021-01-26T13:22:21.000Z | #引入模块
# import method2
# method2.a
# method2.f1()
# import method2 as m2
# m2.a
# m2.f1()
# from method2 import f1
# f1()
# from method2 import f1 as func1
# func1()
from method2 import *
f1()
f2()
print(a)
| 6.96875 | 33 | 0.61435 | 34 | 223 | 4.029412 | 0.323529 | 0.240876 | 0.372263 | 0.416058 | 0.306569 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113772 | 0.251121 | 223 | 31 | 34 | 7.193548 | 0.706587 | 0.64574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
351c290975642794a8ae565c249dd3371ea5bd7c | 92 | py | Python | choice/apps.py | prayogateguh/smk-quiz | e3651ba140eb884f604ab398f966f635210ee8dc | [
"MIT"
] | null | null | null | choice/apps.py | prayogateguh/smk-quiz | e3651ba140eb884f604ab398f966f635210ee8dc | [
"MIT"
] | null | null | null | choice/apps.py | prayogateguh/smk-quiz | e3651ba140eb884f604ab398f966f635210ee8dc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ChoiceConfig(AppConfig):
name = 'choice'
| 15.333333 | 34 | 0.706522 | 10 | 92 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 92 | 5 | 35 | 18.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1050815029404386ec86242bbba7a2c4918b6da1 | 1,304 | py | Python | test/test_edit_pdf_api.py | Cloudmersive/Cloudmersive.APIClient.Python.Convert | dba2fe7257229ebdacd266531b3724552c651009 | [
"Apache-2.0"
] | 3 | 2018-07-25T23:04:34.000Z | 2021-08-10T16:43:10.000Z | test/test_edit_pdf_api.py | Cloudmersive/Cloudmersive.APIClient.Python.Convert | dba2fe7257229ebdacd266531b3724552c651009 | [
"Apache-2.0"
] | 3 | 2020-11-23T10:46:48.000Z | 2021-12-30T14:09:34.000Z | test/test_edit_pdf_api.py | Cloudmersive/Cloudmersive.APIClient.Python.Convert | dba2fe7257229ebdacd266531b3724552c651009 | [
"Apache-2.0"
] | 2 | 2020-01-07T09:48:01.000Z | 2020-11-23T10:47:00.000Z | # coding: utf-8
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import cloudmersive_convert_api_... | 23.285714 | 94 | 0.690184 | 168 | 1,304 | 5.071429 | 0.39881 | 0.065728 | 0.103286 | 0.131455 | 0.326291 | 0.244131 | 0.166667 | 0.166667 | 0.070423 | 0 | 0 | 0.02006 | 0.235429 | 1,304 | 55 | 95 | 23.709091 | 0.834504 | 0.407209 | 0 | 0.222222 | 1 | 0 | 0.011905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.222222 | 0.277778 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
10674c916241b57388d3f501422e14c2fee1c34a | 158 | py | Python | aspyrobot/__init__.py | AustralianSynchrotron/pyrobot | a1b2b8fa02b6757ae22a4deb776cd9ae14ed45fe | [
"MIT"
] | 4 | 2019-10-08T19:24:13.000Z | 2020-10-21T05:41:27.000Z | aspyrobot/__init__.py | AustralianSynchrotron/pyrobot | a1b2b8fa02b6757ae22a4deb776cd9ae14ed45fe | [
"MIT"
] | 1 | 2020-01-06T22:03:44.000Z | 2020-01-06T22:03:44.000Z | aspyrobot/__init__.py | AustralianSynchrotron/pyrobot | a1b2b8fa02b6757ae22a4deb776cd9ae14ed45fe | [
"MIT"
] | 2 | 2016-07-20T00:00:11.000Z | 2018-04-08T08:49:07.000Z | from .robot import Robot
from .server import RobotServer
from .client import RobotClient
__version__ = '0.17.0'
__all__ = [Robot, RobotServer, RobotClient]
| 19.75 | 43 | 0.778481 | 20 | 158 | 5.75 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.139241 | 158 | 7 | 44 | 22.571429 | 0.816176 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
10830a95d33d248d287d61fff5418688e9181127 | 151 | py | Python | Problem/PeopleFund/itertools_permutations().py | yeojin-dev/coding-test | 30ce8507838beaa9232c6fc6c62a7dcb62d51464 | [
"MIT"
] | 2 | 2018-07-11T08:13:06.000Z | 2018-07-11T08:47:12.000Z | Problem/PeopleFund/itertools_permutations().py | yeojin-dev/coding-test | 30ce8507838beaa9232c6fc6c62a7dcb62d51464 | [
"MIT"
] | null | null | null | Problem/PeopleFund/itertools_permutations().py | yeojin-dev/coding-test | 30ce8507838beaa9232c6fc6c62a7dcb62d51464 | [
"MIT"
] | null | null | null | from itertools import permutations
string, number = input().split()
print('\n'.join([''.join(i) for i in permutations(sorted(string), int(number))]))
| 30.2 | 81 | 0.708609 | 21 | 151 | 5.095238 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099338 | 151 | 4 | 82 | 37.75 | 0.786765 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
109e10c4cf0d172e231d40adf248fc9d74957028 | 162 | py | Python | Lab 2/key.py | lcchiang/Artificial-Intelligence-Course | 0138b4d98f7fa15a56884af5e98b9cde9ad7ea69 | [
"MIT"
] | null | null | null | Lab 2/key.py | lcchiang/Artificial-Intelligence-Course | 0138b4d98f7fa15a56884af5e98b9cde9ad7ea69 | [
"MIT"
] | null | null | null | Lab 2/key.py | lcchiang/Artificial-Intelligence-Course | 0138b4d98f7fa15a56884af5e98b9cde9ad7ea69 | [
"MIT"
] | null | null | null | # Login information for the 6.034 Automated Tester
USERNAME="lcchiang_MIT_EDU"
PASSWORD="yu7Q4nPJNRALMY3AJ6ze"
XMLRPC_URL="https://ai6034.mit.edu/labs/xmlrpc/"
| 23.142857 | 50 | 0.802469 | 22 | 162 | 5.772727 | 0.863636 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080537 | 0.080247 | 162 | 6 | 51 | 27 | 0.771812 | 0.296296 | 0 | 0 | 0 | 0 | 0.63964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
10b786bbe9d5cd3f8f17725b81cf10a118eefe4b | 193 | py | Python | app/app/cal.py | bigdave2058/recipe-app-api | 2e4839570ed8aa74c4397dbdfda3b8c2e69e23ba | [
"MIT"
] | null | null | null | app/app/cal.py | bigdave2058/recipe-app-api | 2e4839570ed8aa74c4397dbdfda3b8c2e69e23ba | [
"MIT"
] | null | null | null | app/app/cal.py | bigdave2058/recipe-app-api | 2e4839570ed8aa74c4397dbdfda3b8c2e69e23ba | [
"MIT"
] | null | null | null | def addNumber(x,y)
"""Add two numbers""
return x + y
def subtract(x,y)
""" subtract two numbers """
return 0
def multiply(x,y)
""" multiply two numbers """
return x,y
| 16.083333 | 32 | 0.580311 | 29 | 193 | 3.862069 | 0.37931 | 0.089286 | 0.428571 | 0.303571 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.274611 | 193 | 11 | 33 | 17.545455 | 0.792857 | 0 | 0 | 0 | 0 | 0 | 0.286822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
52d413e4d83ba4fae12f2e30610d500ba02b969d | 100 | py | Python | GreyMatter/sleep.py | nayangupta824/Melissa-Web | cd669a60bf5642145904b6e7e2c4f3de2d4874c1 | [
"MIT"
] | 20 | 2015-12-09T13:14:25.000Z | 2020-05-14T05:08:31.000Z | Using_Internet_to_Gather_Information/Using_Internet_to_Gather_Information/Melissa-Core/GreyMatter/sleep.py | Abhidalakoti/Project1 | e7b6bae3cb96f543d04d33cdb5015b2698af283e | [
"MIT"
] | 1 | 2016-07-17T06:30:02.000Z | 2016-07-17T06:30:02.000Z | Using_Internet_to_Gather_Information/Using_Internet_to_Gather_Information/Melissa-Core/GreyMatter/sleep.py | Abhidalakoti/Project1 | e7b6bae3cb96f543d04d33cdb5015b2698af283e | [
"MIT"
] | 24 | 2015-12-16T13:15:32.000Z | 2021-02-21T17:29:44.000Z | from SenseCells.tts import tts
def go_to_sleep():
tts('Goodbye! Have a great day!')
quit()
| 16.666667 | 37 | 0.67 | 16 | 100 | 4.0625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21 | 100 | 5 | 38 | 20 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
52fa358681eab5d6341acbef8c09053cd44b7948 | 83 | py | Python | opac/apps.py | rimphyd/Django-OPAC | d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb | [
"MIT"
] | 1 | 2020-11-26T05:25:46.000Z | 2020-11-26T05:25:46.000Z | opac/apps.py | rimphyd/Django-OPAC | d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb | [
"MIT"
] | null | null | null | opac/apps.py | rimphyd/Django-OPAC | d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class OpacConfig(AppConfig):
name = 'opac'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
5e05143bf2f99e7842168d268bedbaa9ed718c62 | 142 | py | Python | examples/performance/__main__.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | 1 | 2018-04-02T18:41:52.000Z | 2018-04-02T18:41:52.000Z | examples/performance/__main__.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | null | null | null | examples/performance/__main__.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | 3 | 2017-09-26T13:59:24.000Z | 2020-12-04T17:51:54.000Z | """Allows the examples/performance package to be run as a script."""
from . import Profiler
if __name__ == '__main__':
Profiler.main()
| 17.75 | 68 | 0.697183 | 19 | 142 | 4.789474 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 142 | 7 | 69 | 20.285714 | 0.784483 | 0.43662 | 0 | 0 | 0 | 0 | 0.109589 | 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 |
5e1ae1e1f4b7771a8d516e544c80df43463b2e5c | 141 | py | Python | riskrate_data/__init__.py | riskrate/riskrate-data-python | d98257661daa98156c3e3aeeead30a4585f1a22b | [
"MIT"
] | null | null | null | riskrate_data/__init__.py | riskrate/riskrate-data-python | d98257661daa98156c3e3aeeead30a4585f1a22b | [
"MIT"
] | null | null | null | riskrate_data/__init__.py | riskrate/riskrate-data-python | d98257661daa98156c3e3aeeead30a4585f1a22b | [
"MIT"
] | null | null | null | from .connection import DataClient
from .helper import (
simple_query,
simple_query_dict,
simple_mutation,
insert_chunked,
)
| 17.625 | 34 | 0.737589 | 16 | 141 | 6.1875 | 0.6875 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205674 | 141 | 7 | 35 | 20.142857 | 0.883929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5e2815cca75744be4e2f16b61cc2ad6a3a1cd213 | 132 | py | Python | autocomplete_light/example_apps/unuseable_virtualfield/models.py | metzlar/django-autocomplete-light | 64f5d584bee35bf6e6ac612756cff713867ddc75 | [
"MIT"
] | 1 | 2015-10-12T21:42:05.000Z | 2015-10-12T21:42:05.000Z | autocomplete_light/example_apps/unuseable_virtualfield/models.py | metzlar/django-autocomplete-light | 64f5d584bee35bf6e6ac612756cff713867ddc75 | [
"MIT"
] | null | null | null | autocomplete_light/example_apps/unuseable_virtualfield/models.py | metzlar/django-autocomplete-light | 64f5d584bee35bf6e6ac612756cff713867ddc75 | [
"MIT"
] | null | null | null | from django.db import models
from vote.managers import VotableManager
class HasVotes(models.Model):
votes = VotableManager()
| 16.5 | 40 | 0.780303 | 16 | 132 | 6.4375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 132 | 7 | 41 | 18.857143 | 0.919643 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e3848d5c6a8e766beb25b2a8dfb16721e430525 | 7,293 | py | Python | tests/application_tests.py | dhdemerson/azure-lightning-flask | 1b9fc3dad3f2c75219f45e7e6cce387a1cc6e157 | [
"MIT"
] | null | null | null | tests/application_tests.py | dhdemerson/azure-lightning-flask | 1b9fc3dad3f2c75219f45e7e6cce387a1cc6e157 | [
"MIT"
] | 1 | 2018-03-12T15:20:03.000Z | 2018-03-12T15:20:03.000Z | tests/application_tests.py | dhdemerson/azure-lightning-flask | 1b9fc3dad3f2c75219f45e7e6cce387a1cc6e157 | [
"MIT"
] | null | null | null | """Tests for the azure_lightning_flask application"""
import unittest
from mock import patch
from azure.common import AzureMissingResourceHttpError
from azure_lightning_flask.application import create_app
from tests.test_config import TestConfig
class TestApplication(unittest.TestCase):
"""Tests for the azure_lig... | 42.9 | 99 | 0.702043 | 851 | 7,293 | 5.687427 | 0.150411 | 0.065083 | 0.075207 | 0.11157 | 0.780992 | 0.747521 | 0.735537 | 0.718595 | 0.699174 | 0.658471 | 0 | 0.010803 | 0.213081 | 7,293 | 170 | 100 | 42.9 | 0.832549 | 0.113808 | 0 | 0.636364 | 0 | 0 | 0.096472 | 0.071808 | 0 | 0 | 0 | 0 | 0.204545 | 1 | 0.060606 | false | 0 | 0.037879 | 0 | 0.121212 | 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 |
eab5f3b333442f9470fdabe1ae9131b6170b9d50 | 305 | py | Python | models.py | Pycomet/music-bot | 5a1d461bd29c38ac47fa5a1433427027c36fb9f2 | [
"MIT"
] | null | null | null | models.py | Pycomet/music-bot | 5a1d461bd29c38ac47fa5a1433427027c36fb9f2 | [
"MIT"
] | null | null | null | models.py | Pycomet/music-bot | 5a1d461bd29c38ac47fa5a1433427027c36fb9f2 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class User:
id: int
name: str = ""
@dataclass
class Order:
product: str
price: float
price: float
description: str
url: str
data: str
@dataclass
class Product:
name: str
price: float
description: str
url: str
| 13.26087 | 33 | 0.636066 | 37 | 305 | 5.243243 | 0.459459 | 0.216495 | 0.175258 | 0.247423 | 0.309278 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295082 | 305 | 22 | 34 | 13.863636 | 0.902326 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.842105 | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
eabf9506748ef34e5453412674f65abfb0cce65f | 345 | py | Python | spexxy/data/__init__.py | thusser/spexxy | 14a8d121076b9e043bdf2e27222a65088f771ff9 | [
"MIT"
] | 4 | 2019-05-13T21:36:31.000Z | 2021-09-06T01:56:36.000Z | spexxy/data/__init__.py | thusser/spexxy | 14a8d121076b9e043bdf2e27222a65088f771ff9 | [
"MIT"
] | 2 | 2020-02-12T14:36:39.000Z | 2020-07-14T11:43:10.000Z | spexxy/data/__init__.py | thusser/spexxy | 14a8d121076b9e043bdf2e27222a65088f771ff9 | [
"MIT"
] | 1 | 2019-11-08T09:26:23.000Z | 2019-11-08T09:26:23.000Z | from .filter import Filter
from .fitsspectrum import FitsSpectrum
from .isochrone import Isochrone, MultiIsochrone
from .losvd import LOSVD
from .lsf import LSF, AnalyticalLSF, EmpiricalLSF
from .resultsfits import ResultsFITS
from .spectrum import Spectrum, SpectrumFits, SpectrumFitsHDU, SpectrumBinTableFITS, Spectrum... | 43.125 | 117 | 0.852174 | 36 | 345 | 8.166667 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104348 | 345 | 7 | 118 | 49.285714 | 0.951456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d815f0fa1a0a2eacba24cf6df5a42d871994d842 | 225 | py | Python | PE010.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | PE010.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | PE010.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | from _prime_tools import sieve
def summation_of_primes(ceiling):
"""
Returns the sum of all primes below ceiling.
"""
return sum(sieve(ceiling))
def solve(vol=0):
return summation_of_primes(2 * 10**6)
| 17.307692 | 48 | 0.684444 | 33 | 225 | 4.484848 | 0.666667 | 0.148649 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028249 | 0.213333 | 225 | 12 | 49 | 18.75 | 0.80791 | 0.195556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d8309a7b87f1598ce047dcc66436dcd07a6d9334 | 955 | py | Python | dashboard/migrations/0029_auto_20210818_0515.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | null | null | null | dashboard/migrations/0029_auto_20210818_0515.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | null | null | null | dashboard/migrations/0029_auto_20210818_0515.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | 2 | 2021-08-10T09:09:58.000Z | 2021-08-10T10:54:51.000Z | # Generated by Django 3.2.5 on 2021-08-18 05:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0028_alter_participantrepayment_payment_1'),
]
operations = [
migrations.AddField(
model_name='participantrepayment... | 32.931034 | 114 | 0.636649 | 105 | 955 | 5.609524 | 0.419048 | 0.091681 | 0.117148 | 0.137521 | 0.702886 | 0.702886 | 0.702886 | 0.702886 | 0.402377 | 0.402377 | 0 | 0.049157 | 0.25445 | 955 | 28 | 115 | 34.107143 | 0.77809 | 0.04712 | 0 | 0.409091 | 1 | 0 | 0.23348 | 0.045154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dc41601ab381b12d423ec05c415d61350e7987cf | 470 | py | Python | src/plugins_/cfdocs/__init__.py | jcberquist/sublimetext-cfml | d1e37202eacbf4dd048f2822b7b9d9a93e8cebcf | [
"MIT"
] | 130 | 2016-01-01T18:44:21.000Z | 2022-03-22T22:42:11.000Z | src/plugins_/cfdocs/__init__.py | jcberquist/sublimetext-cfml | d1e37202eacbf4dd048f2822b7b9d9a93e8cebcf | [
"MIT"
] | 139 | 2016-01-07T16:12:35.000Z | 2021-12-11T03:50:57.000Z | src/plugins_/cfdocs/__init__.py | jcberquist/sublimetext-cfml | d1e37202eacbf4dd048f2822b7b9d9a93e8cebcf | [
"MIT"
] | 28 | 2016-01-27T23:03:36.000Z | 2021-12-14T15:18:12.000Z | from .. import plugin
from .cfdocs import (
get_inline_documentation,
get_completion_docs,
get_goto_cfml_file
)
class CFMLPlugin(plugin.CFMLPlugin):
def get_completion_docs(self, cfml_view):
return get_completion_docs(cfml_view)
def get_inline_documentation(self, cfml_view, doc_type):
... | 24.736842 | 60 | 0.755319 | 65 | 470 | 5.015385 | 0.307692 | 0.147239 | 0.202454 | 0.138037 | 0.128834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178723 | 470 | 18 | 61 | 26.111111 | 0.84456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.230769 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
dc50df24d0735b5e1db2956cd9adf6d347069c26 | 196 | py | Python | onfido/urls.py | snicks1/django-onfido | 7288552c6a156d022539d4d22d7f5a0236018ada | [
"MIT"
] | null | null | null | onfido/urls.py | snicks1/django-onfido | 7288552c6a156d022539d4d22d7f5a0236018ada | [
"MIT"
] | null | null | null | onfido/urls.py | snicks1/django-onfido | 7288552c6a156d022539d4d22d7f5a0236018ada | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""onfido urls."""
from django.conf.urls import url
from onfido.views import status_update
urlpatterns = [
url(r'^webhook/$', status_update, name='status_update'),
]
| 19.6 | 60 | 0.678571 | 26 | 196 | 5 | 0.653846 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.142857 | 196 | 9 | 61 | 21.777778 | 0.767857 | 0.178571 | 0 | 0 | 0 | 0 | 0.148387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
dc618bed337cd8cd05718408047b500788303816 | 259 | py | Python | utils/validation.py | Weenkus/on_power_efficient_virtual_network_function_placement_algorithm | 09621bd083ff13afdfb76a6629478cb16e6c8a9c | [
"MIT"
] | 1 | 2019-12-09T17:52:05.000Z | 2019-12-09T17:52:05.000Z | utils/validation.py | Weenkus/on_power_efficient_virtual_network_function_placement_algorithm | 09621bd083ff13afdfb76a6629478cb16e6c8a9c | [
"MIT"
] | null | null | null | utils/validation.py | Weenkus/on_power_efficient_virtual_network_function_placement_algorithm | 09621bd083ff13afdfb76a6629478cb16e6c8a9c | [
"MIT"
] | null | null | null |
class Assert(object):
@staticmethod
def is_instance(instance, instances_class):
assert isinstance(instance, instances_class), '{0} should be an instance of class {1}'.format(
instance.__name__, instances_class.__name__
)
| 28.777778 | 102 | 0.683398 | 29 | 259 | 5.689655 | 0.586207 | 0.254545 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.223938 | 259 | 8 | 103 | 32.375 | 0.810945 | 0 | 0 | 0 | 0 | 0 | 0.147287 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 |
dc84da74c859794cbc04f5d7aa3e4632d27aed37 | 98,491 | py | Python | smartd0rk3r-0.3.py | devasia2112/os-scripts | d7e7c09afc7b30355b242bdd7c5f40bd30af1a9a | [
"MIT",
"CC-BY-3.0",
"BSD-3-Clause"
] | 1 | 2020-03-01T15:36:17.000Z | 2020-03-01T15:36:17.000Z | smartd0rk3r-0.3.py | bantu07/kali-script | 839d7d2cc1935d50c7bb784b1b5a4656fa90ea94 | [
"MIT",
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | smartd0rk3r-0.3.py | bantu07/kali-script | 839d7d2cc1935d50c7bb784b1b5a4656fa90ea94 | [
"MIT",
"CC-BY-3.0",
"BSD-3-Clause"
] | 2 | 2019-05-10T18:39:59.000Z | 2021-05-15T08:55:50.000Z | #!/usr/bin/python
#
# smartd0rk3r.py - a modified darkd0rk3r
# - added dork array
# - added input for number of random dorks
# - added bugfix for over tor (it crashed alot over tor)
# - added optimization, 1 page with 0 results, skip to next dork
# - added extra check for links to comply with target (makes it... | 151.291859 | 3,587 | 0.642353 | 14,296 | 98,491 | 4.353945 | 0.107373 | 0.07673 | 0.009784 | 0.010796 | 0.483629 | 0.425953 | 0.361175 | 0.343808 | 0.318087 | 0.282083 | 0 | 0.012304 | 0.103837 | 98,491 | 651 | 3,588 | 151.291859 | 0.692899 | 0.010722 | 0 | 0.362617 | 0 | 0.173832 | 0.726462 | 0.19456 | 0 | 0 | 0.001417 | 0 | 0 | 0 | null | null | 0.04486 | 0.003738 | null | null | 0.173832 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dc8d32918dd28646757d919fffd7e6913e1a5298 | 2,737 | py | Python | problems/pe8.py | tgetzoya/project-euler-python | c459dc0f853c27006db6865be731ad53ee2cd778 | [
"BSD-2-Clause"
] | null | null | null | problems/pe8.py | tgetzoya/project-euler-python | c459dc0f853c27006db6865be731ad53ee2cd778 | [
"BSD-2-Clause"
] | null | null | null | problems/pe8.py | tgetzoya/project-euler-python | c459dc0f853c27006db6865be731ad53ee2cd778 | [
"BSD-2-Clause"
] | null | null | null | # The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.
#
# 73167176531330624919225119674426574742355349194934
# 96983520312774506326239578318016984801869478851843
# 85861560789112949495459501737958331952853208805511
# 125406987471585238630507156932909632952274430435... | 57.020833 | 1,024 | 0.882718 | 124 | 2,737 | 19.427419 | 0.548387 | 0.01868 | 0.031133 | 0.015774 | 0.049813 | 0.049813 | 0.049813 | 0.049813 | 0.049813 | 0.049813 | 0 | 0.817562 | 0.088783 | 2,737 | 47 | 1,025 | 58.234043 | 0.147153 | 0.464742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f4a89f42760fc8f9723c4693372c1a9bb3bf6528 | 7,721 | py | Python | scripts/print.py | DavideMammarella/USI-MSDE-Thesis-Code | 9570e81170d93712b36b2b82bfa43dd7424e7d75 | [
"MIT"
] | 4 | 2021-09-10T18:19:48.000Z | 2022-02-14T21:31:13.000Z | scripts/print.py | DavideMammarella/USI-MSDE-Thesis-Code | 9570e81170d93712b36b2b82bfa43dd7424e7d75 | [
"MIT"
] | null | null | null | scripts/print.py | DavideMammarella/USI-MSDE-Thesis-Code | 9570e81170d93712b36b2b82bfa43dd7424e7d75 | [
"MIT"
] | 2 | 2022-01-31T22:55:11.000Z | 2022-03-02T17:43:18.000Z | # Copyright 2021 Testing Automated @ Università della Svizzera italiana (USI)
# All rights reserved.
# This file is part of the project SelfOracle, a misbehaviour predictor for autonomous vehicles,
# developed within the ERC project PRECRIME
# and is released under the "MIT License Agreement". Please see the LICENSE
# ... | 41.735135 | 114 | 0.650563 | 1,017 | 7,721 | 4.689282 | 0.187807 | 0.06039 | 0.047809 | 0.062906 | 0.794297 | 0.788425 | 0.769553 | 0.744391 | 0.670581 | 0.670581 | 0 | 0.01943 | 0.226784 | 7,721 | 184 | 115 | 41.961957 | 0.779397 | 0.313172 | 0 | 0.43956 | 0 | 0.043956 | 0.159664 | 0.03495 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.032967 | 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 |
f4b3694750e60ed3e0fe7bdb1e6b181b2037b0a5 | 260 | py | Python | mysite/urls.py | AmanRiat1/uOttaHack | 9cd301c21721ef792ffb1232434ac43dd47d5e14 | [
"MIT"
] | null | null | null | mysite/urls.py | AmanRiat1/uOttaHack | 9cd301c21721ef792ffb1232434ac43dd47d5e14 | [
"MIT"
] | 1 | 2020-12-04T23:30:06.000Z | 2020-12-04T23:30:06.000Z | mysite/urls.py | AmanRiat1/uOttaHack | 9cd301c21721ef792ffb1232434ac43dd47d5e14 | [
"MIT"
] | 1 | 2020-12-04T03:58:36.000Z | 2020-12-04T03:58:36.000Z | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
url(r'^$', views.basic, name='output'),
]+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| 21.666667 | 66 | 0.757692 | 37 | 260 | 5.243243 | 0.432432 | 0.154639 | 0.216495 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126923 | 260 | 11 | 67 | 23.636364 | 0.854626 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 |
f4da74d76e8b4b7d2353ddc78e08f1b7ecb77326 | 368 | py | Python | src/transformers/models/herbert/__init__.py | timpal0l/transformers | d86d57faa3b6511c6e4d9139535d77b695b9af8a | [
"Apache-2.0"
] | 2 | 2020-11-30T11:30:40.000Z | 2021-03-26T17:20:33.000Z | src/transformers/models/herbert/__init__.py | timpal0l/transformers | d86d57faa3b6511c6e4d9139535d77b695b9af8a | [
"Apache-2.0"
] | 3 | 2021-06-08T23:15:29.000Z | 2022-01-13T03:40:10.000Z | src/transformers/models/herbert/__init__.py | timpal0l/transformers | d86d57faa3b6511c6e4d9139535d77b695b9af8a | [
"Apache-2.0"
] | 1 | 2020-03-19T06:01:53.000Z | 2020-03-19T06:01:53.000Z | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
from ...file_utils import is_tokenizers_available
from .tokenization_herbert import HerbertTokenizer
if is_tokenizers_available():
from .tokeni... | 33.454545 | 77 | 0.790761 | 51 | 368 | 5.54902 | 0.72549 | 0.070671 | 0.14841 | 0.176678 | 0.310954 | 0.310954 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.141304 | 368 | 10 | 78 | 36.8 | 0.882911 | 0.442935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
761131b1eaaeacd29621489b9b218598a1087a49 | 96 | py | Python | np/reference/ch6code/determinant.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | np/reference/ch6code/determinant.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | np/reference/ch6code/determinant.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | import numpy as np
A = np.mat("3 4;5 6")
print "A\n", A
print "Determinant", np.linalg.det(A)
| 13.714286 | 37 | 0.635417 | 21 | 96 | 2.904762 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.177083 | 96 | 6 | 38 | 16 | 0.721519 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
761fd02c338fbdd75cbd8cf814665ce9941d451a | 206 | py | Python | sep/loaders/__init__.py | Fafa87/SEP | cdc8fdad83478d35aeb2992b8382aa4bc1763131 | [
"MIT"
] | null | null | null | sep/loaders/__init__.py | Fafa87/SEP | cdc8fdad83478d35aeb2992b8382aa4bc1763131 | [
"MIT"
] | null | null | null | sep/loaders/__init__.py | Fafa87/SEP | cdc8fdad83478d35aeb2992b8382aa4bc1763131 | [
"MIT"
] | null | null | null | from .files import FilesLoader
from .images import ImagesLoader
from .loader import Loader
from .movies import MoviesLoader, FrameByGroupSelector, FrameByIntervalSelector
from .youtube import YoutubeLoader
| 34.333333 | 79 | 0.859223 | 22 | 206 | 8.045455 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 206 | 5 | 80 | 41.2 | 0.961957 | 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 |
5211555aa6730b3a877c5281990d7e8bcef9d308 | 39 | py | Python | pptx_template/__init__.py | skar404/pptx-template | f223b765c89224169f9621ebfa8e79be312a2598 | [
"Apache-2.0"
] | 1 | 2020-06-16T17:22:40.000Z | 2020-06-16T17:22:40.000Z | pptx_template/__init__.py | skar404/pptx-template | f223b765c89224169f9621ebfa8e79be312a2598 | [
"Apache-2.0"
] | 19 | 2018-01-26T13:04:03.000Z | 2020-04-27T19:43:08.000Z | pptx_template/__init__.py | skar404/pptx-template | f223b765c89224169f9621ebfa8e79be312a2598 | [
"Apache-2.0"
] | 2 | 2018-05-14T18:18:57.000Z | 2020-06-16T18:59:02.000Z | # coding=utf-8
__version__ = '0.2.7.6'
| 13 | 23 | 0.641026 | 8 | 39 | 2.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 0.128205 | 39 | 2 | 24 | 19.5 | 0.470588 | 0.307692 | 0 | 0 | 0 | 0 | 0.28 | 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 |
521cb31b49429c735000fc8678d6cfb5420ec04c | 196 | py | Python | examples/apps/simple_imaging_app/__init__.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 28 | 2021-09-17T18:16:42.000Z | 2022-03-31T16:32:36.000Z | examples/apps/simple_imaging_app/__init__.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 109 | 2021-09-17T18:34:31.000Z | 2022-03-31T21:04:35.000Z | examples/apps/simple_imaging_app/__init__.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 11 | 2021-09-17T20:23:31.000Z | 2022-03-29T08:55:19.000Z | import os
import sys
_current_dir = os.path.abspath(os.path.dirname(__file__))
if sys.path and os.path.abspath(sys.path[0]) != _current_dir:
sys.path.insert(0, _current_dir)
del _current_dir
| 24.5 | 61 | 0.760204 | 34 | 196 | 4.029412 | 0.411765 | 0.291971 | 0.189781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.112245 | 196 | 7 | 62 | 28 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
52213031642d4451fb1d0183770a419ec287cd7c | 3,859 | py | Python | pyserval/connection.py | umr-ds/pyserval | 073363ee56754f122d5b09544f242d54a17165e3 | [
"MIT"
] | 1 | 2017-08-29T19:37:31.000Z | 2017-08-29T19:37:31.000Z | pyserval/connection.py | umr-ds/pyserval | 073363ee56754f122d5b09544f242d54a17165e3 | [
"MIT"
] | 16 | 2017-11-29T16:41:35.000Z | 2019-09-30T13:44:10.000Z | pyserval/connection.py | umr-ds/pyserval | 073363ee56754f122d5b09544f242d54a17165e3 | [
"MIT"
] | 1 | 2017-08-20T21:51:52.000Z | 2017-08-20T21:51:52.000Z | """
pyserval.connection
~~~~~~~~~~~~~~~~~~~
"""
from pyserval.lowlevel.connection import RestfulConnection
from pyserval.exceptions import UnauthorizedError
from typing import Any
from requests.models import Response
class CheckedConnection(RestfulConnection):
"""Encapsulates HTTP-calls and throws exceptions for... | 29.458015 | 86 | 0.61078 | 418 | 3,859 | 5.607656 | 0.184211 | 0.03413 | 0.023464 | 0.036263 | 0.759386 | 0.759386 | 0.759386 | 0.688993 | 0.688993 | 0.688993 | 0 | 0.007014 | 0.298005 | 3,859 | 130 | 87 | 29.684615 | 0.85825 | 0.47318 | 0 | 0.394737 | 0 | 0 | 0.015198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.105263 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
523761fb91ccb5b06145e836b3ddc175d4955712 | 1,471 | py | Python | germanetpy/wictionaryparaphrase.py | Blubberli/GermaNetPy | 5a90a06a6c200c82fa477db879e03fb98dcb540c | [
"Apache-2.0"
] | 2 | 2020-10-27T10:26:23.000Z | 2022-02-02T15:31:56.000Z | germanetpy/wictionaryparaphrase.py | Blubberli/GermaNetPy | 5a90a06a6c200c82fa477db879e03fb98dcb540c | [
"Apache-2.0"
] | null | null | null | germanetpy/wictionaryparaphrase.py | Blubberli/GermaNetPy | 5a90a06a6c200c82fa477db879e03fb98dcb540c | [
"Apache-2.0"
] | 1 | 2021-02-10T14:00:39.000Z | 2021-02-10T14:00:39.000Z | class WiktionaryParaphrase:
def __init__(self, lexunit_id: str, wiktionary_id: str, wiktionary_sense_id: int, wiktionary_sense: str,
edited: bool):
"""
This class holds the Wictionary paraphrase object. A wictionary paraphrase can be part of lexical units. The
contain a def... | 35.02381 | 116 | 0.695445 | 178 | 1,471 | 5.466292 | 0.264045 | 0.200411 | 0.10483 | 0.049332 | 0.188078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246091 | 1,471 | 41 | 117 | 35.878049 | 0.877367 | 0.332427 | 0 | 0.2 | 0 | 0 | 0.083516 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0 | 0.24 | 0.56 | 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 |
5260a7678db3b63edbc71c51ad71ae9979094943 | 328 | py | Python | tests/python/generated_typing_t.py | mychiux413/ConstConv | 6c2190d1bb37ae5cfef8464f88371db97719b032 | [
"MIT"
] | null | null | null | tests/python/generated_typing_t.py | mychiux413/ConstConv | 6c2190d1bb37ae5cfef8464f88371db97719b032 | [
"MIT"
] | null | null | null | tests/python/generated_typing_t.py | mychiux413/ConstConv | 6c2190d1bb37ae5cfef8464f88371db97719b032 | [
"MIT"
] | null | null | null | from .generated_typing import MultiLangs, ZH_TW, EN
def test_generated():
ml = MultiLangs(ZH_TW)
assert ml.hello == "您好,歡迎"
assert ml.login == "登入"
assert ml.select_lang == "繁體中文"
ml.set_lang(EN)
assert ml.hello == "Hello,Welcome"
assert ml.login == "Login"
assert ml.select_lang == "E... | 23.428571 | 51 | 0.64939 | 47 | 328 | 4.382979 | 0.489362 | 0.23301 | 0.135922 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216463 | 328 | 13 | 52 | 25.230769 | 0.801556 | 0 | 0 | 0 | 1 | 0 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
528ef36f77cf3b8f1e175d53a9b454dd3f9a04dc | 919 | py | Python | jobcrawler/core/email/address.py | amakus/JobCrawler | 770e05dd439ad3c269aeb3d7e284d891893faa2d | [
"MIT"
] | null | null | null | jobcrawler/core/email/address.py | amakus/JobCrawler | 770e05dd439ad3c269aeb3d7e284d891893faa2d | [
"MIT"
] | 1 | 2021-11-15T17:48:36.000Z | 2021-11-15T17:48:36.000Z | jobcrawler/core/email/address.py | amakus/JobCrawler | 770e05dd439ad3c269aeb3d7e284d891893faa2d | [
"MIT"
] | null | null | null | class EmailAddress:
def __init__(self, email):
self.email = email
self._email_tpl = tuple(self._email.split('@'))
def __str__(self):
return self.email
def __repr__(self):
return f"{EmailAddress.__name__}('{self.email}')"
@property
def email(self):
return s... | 22.414634 | 74 | 0.579978 | 113 | 919 | 4.40708 | 0.283186 | 0.253012 | 0.11245 | 0.15261 | 0.088353 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007825 | 0.304679 | 919 | 40 | 75 | 22.975 | 0.771518 | 0 | 0 | 0.166667 | 0 | 0 | 0.090316 | 0.042437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.166667 | 0.566667 | 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 |
bfe9947640d576744abfd3f0393187a29fca3d7d | 235 | py | Python | finance_ml/features/__init__.py | zli69/finance_ml | 1c5a0e5b7d65e7c97aa9ad361b6656e870e4d0d4 | [
"MIT"
] | 51 | 2019-02-01T19:43:37.000Z | 2022-03-16T09:07:03.000Z | finance_ml/features/__init__.py | zli69/finance_ml | 1c5a0e5b7d65e7c97aa9ad361b6656e870e4d0d4 | [
"MIT"
] | 2 | 2019-02-23T18:54:22.000Z | 2019-11-09T01:30:32.000Z | finance_ml/features/__init__.py | zli69/finance_ml | 1c5a0e5b7d65e7c97aa9ad361b6656e870e4d0d4 | [
"MIT"
] | 35 | 2019-02-08T02:00:31.000Z | 2022-03-01T23:17:00.000Z | from .importance import feat_imp_MDA, feat_imp_MDI, feat_imp_SFI
from .orth import get_evec, ortho_feats
from .entropy import match_length, lempel_zib_lib, get_entropy_rate, plug_in, konto
from .fraction import get_opt_d, frac_diff_FFD | 58.75 | 83 | 0.851064 | 42 | 235 | 4.333333 | 0.690476 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097872 | 235 | 4 | 84 | 58.75 | 0.858491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
87058c59d2c4c5e43ec4ee6c9b06e7466fd2ec9f | 158 | py | Python | reference/apps.py | tanyong8520/tushare | d9dc8ef02b6d27f5956cbe86d8fd4b83ee2ebf72 | [
"MIT"
] | null | null | null | reference/apps.py | tanyong8520/tushare | d9dc8ef02b6d27f5956cbe86d8fd4b83ee2ebf72 | [
"MIT"
] | null | null | null | reference/apps.py | tanyong8520/tushare | d9dc8ef02b6d27f5956cbe86d8fd4b83ee2ebf72 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class ReferenceConfig(AppConfig):
name = 'reference'
| 17.555556 | 39 | 0.740506 | 18 | 158 | 6.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.158228 | 158 | 8 | 40 | 19.75 | 0.834586 | 0.132911 | 0 | 0 | 0 | 0 | 0.066667 | 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 |
870e009beb8185d059ba2585c55121f3e36f9fac | 207 | py | Python | vector.py | progs2002/Langton-s-Ant | 7c43250860f206965ba15b89028101a80cb30638 | [
"MIT"
] | 4 | 2021-06-08T07:42:02.000Z | 2021-07-15T15:30:39.000Z | vector.py | progs2002/Langton-s-Ant | 7c43250860f206965ba15b89028101a80cb30638 | [
"MIT"
] | null | null | null | vector.py | progs2002/Langton-s-Ant | 7c43250860f206965ba15b89028101a80cb30638 | [
"MIT"
] | 2 | 2021-07-15T15:30:41.000Z | 2021-07-15T15:35:20.000Z | class Vector:
def __init__(self,x,y):
self.x=x
self.y=y
def __repr__(self):
return str(self.x) +"i, "+ str(self.y)+"j"
def dotProduct(v1,v2):
return v1.x*v2.x + v1.y*v2.y | 23 | 50 | 0.550725 | 38 | 207 | 2.789474 | 0.394737 | 0.141509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.2657 | 207 | 9 | 51 | 23 | 0.657895 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
871c4d2f3cbdc2c494c6d85479924186043e1f43 | 248 | py | Python | mayan/apps/common/queues.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 2 | 2021-09-12T19:41:19.000Z | 2021-09-12T19:41:20.000Z | mayan/apps/common/queues.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 37 | 2021-09-13T01:00:12.000Z | 2021-10-02T03:54:30.000Z | mayan/apps/common/queues.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 1 | 2021-09-22T13:17:30.000Z | 2021-09-22T13:17:30.000Z | from django.utils.translation import ugettext_lazy as _
from mayan.apps.task_manager.classes import CeleryQueue
from mayan.apps.task_manager.workers import worker_d
queue_tools = CeleryQueue(label=_('Tools'), name='tools', worker=worker_d)
| 35.428571 | 75 | 0.802419 | 35 | 248 | 5.457143 | 0.6 | 0.094241 | 0.136126 | 0.17801 | 0.251309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108871 | 248 | 6 | 76 | 41.333333 | 0.864253 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
872367b5cbd2d3299fb7dfee49bcb4c4d4ded3f6 | 272 | py | Python | pygenome/fitness/loss.py | jorgetavares/pygenome | 2b529ea55feff8c4a0214b37354d4d7c273202a3 | [
"MIT"
] | 1 | 2019-11-18T14:41:20.000Z | 2019-11-18T14:41:20.000Z | pygenome/fitness/loss.py | jorgetavares/pygenome | 2b529ea55feff8c4a0214b37354d4d7c273202a3 | [
"MIT"
] | null | null | null | pygenome/fitness/loss.py | jorgetavares/pygenome | 2b529ea55feff8c4a0214b37354d4d7c273202a3 | [
"MIT"
] | null | null | null | import numpy as np
def mean_squared_error(x, y):
'''
Mean Squared Error (MSR)
Args:
x (array): array of predictions
y (array): array of labels
Returns:
the mean squared error
'''
return np.sum(np.sqrt(np.square(x - y)))
| 17 | 44 | 0.577206 | 39 | 272 | 3.974359 | 0.564103 | 0.212903 | 0.309677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 272 | 15 | 45 | 18.133333 | 0.828877 | 0.496324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
872a9237e21431df5d69feeb3e57d440932d922e | 1,564 | py | Python | tests/test_jdla_basic.py | JosueDLA/BasicModule | 1781ffb17c4be8455d6b6d660c4f83897a04e432 | [
"MIT"
] | null | null | null | tests/test_jdla_basic.py | JosueDLA/BasicModule | 1781ffb17c4be8455d6b6d660c4f83897a04e432 | [
"MIT"
] | null | null | null | tests/test_jdla_basic.py | JosueDLA/BasicModule | 1781ffb17c4be8455d6b6d660c4f83897a04e432 | [
"MIT"
] | null | null | null | import unittest
from jdla_basic import basic_operations
class Test_basic_opea(unittest.TestCase):
def test_add(self):
self.assertEqual(basic_operations.addition(10, 5), 15)
self.assertEqual(basic_operations.addition(-1, 1), 0)
self.assertEqual(basic_operations.addition(1, -1), 0)
... | 38.146341 | 71 | 0.689258 | 191 | 1,564 | 5.465969 | 0.219895 | 0.272989 | 0.306513 | 0.45977 | 0.772989 | 0.601533 | 0.601533 | 0.601533 | 0.501916 | 0.501916 | 0 | 0.047133 | 0.186061 | 1,564 | 40 | 72 | 39.1 | 0.772977 | 0.053069 | 0 | 0 | 0 | 0 | 0.005413 | 0 | 0 | 0 | 0 | 0 | 0.642857 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
873d9890d0ef50606e775f7ad4eeee0c477ef79a | 34 | py | Python | jupiter/domain/smart_lists/service/__init__.py | horia141/jupiter | 2c721d1d44e1cd2607ad9936e54a20ea254741dc | [
"MIT"
] | 15 | 2019-05-05T14:34:58.000Z | 2022-02-25T09:57:28.000Z | jupiter/domain/smart_lists/service/__init__.py | horia141/jupiter | 2c721d1d44e1cd2607ad9936e54a20ea254741dc | [
"MIT"
] | 3 | 2020-02-22T16:09:39.000Z | 2021-12-18T21:33:06.000Z | jupiter/domain/smart_lists/service/__init__.py | horia141/jupiter | 2c721d1d44e1cd2607ad9936e54a20ea254741dc | [
"MIT"
] | null | null | null | """Smart list service classes."""
| 17 | 33 | 0.676471 | 4 | 34 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.766667 | 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 |
8778de8cd4065de45c068f5e28f5187cb16355c9 | 193 | py | Python | coding_interviews/leetcode/easy/generate_the_string/generate_the_string.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | coding_interviews/leetcode/easy/generate_the_string/generate_the_string.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | coding_interviews/leetcode/easy/generate_the_string/generate_the_string.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | # https://leetcode.com/problems/generate-a-string-with-characters-that-have-odd-counts
def generate_the_string(n):
if n % 2 == 0:
return 'a' * (n - 1) + 'b'
return 'a' * n | 27.571429 | 86 | 0.601036 | 30 | 193 | 3.8 | 0.733333 | 0.122807 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.222798 | 193 | 7 | 87 | 27.571429 | 0.74 | 0.435233 | 0 | 0 | 1 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5e44bf436c778e9277b68ef4c5a05817865a95cf | 601 | py | Python | neuralpp/inference/graphical_model/variable/variable.py | stefanwebb/neuralpp | 598ac1ad636d11fc67a4244b52a2b08b990ffc86 | [
"MIT"
] | null | null | null | neuralpp/inference/graphical_model/variable/variable.py | stefanwebb/neuralpp | 598ac1ad636d11fc67a4244b52a2b08b990ffc86 | [
"MIT"
] | null | null | null | neuralpp/inference/graphical_model/variable/variable.py | stefanwebb/neuralpp | 598ac1ad636d11fc67a4244b52a2b08b990ffc86 | [
"MIT"
] | null | null | null | from typing import Any
import torch
class Variable:
def __eq__(self, other) -> bool:
self._not_implemented("__eq__")
def __hash__(self):
self._not_implemented("__hash__")
def __repr__(self) -> str:
self._not_implemented("__repr__")
def featurize(self, value) -> torch.Tensor... | 24.04 | 79 | 0.660566 | 70 | 601 | 5.128571 | 0.414286 | 0.272981 | 0.250696 | 0.122563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224626 | 601 | 24 | 80 | 25.041667 | 0.770386 | 0 | 0 | 0 | 0 | 0 | 0.138103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5e4759867d5518f967a7c86814eeaf2fb616ea16 | 548 | py | Python | tests/file_handler/test_local.py | Gallaecio/spider-feeder | 9372a9244b4cc582474883962b01f5e83779005e | [
"MIT"
] | null | null | null | tests/file_handler/test_local.py | Gallaecio/spider-feeder | 9372a9244b4cc582474883962b01f5e83779005e | [
"MIT"
] | null | null | null | tests/file_handler/test_local.py | Gallaecio/spider-feeder | 9372a9244b4cc582474883962b01f5e83779005e | [
"MIT"
] | null | null | null | from spider_feeder.file_handler import local
def test_open_local_file(mocker):
mock = mocker.patch('spider_feeder.file_handler.local.builtins.open')
local.open('/tmp/input_urls.txt', encoding='utf-8')
mock.assert_called_once_with('/tmp/input_urls.txt', encoding='utf-8')
def test_open_local_file_with_sch... | 39.142857 | 75 | 0.759124 | 84 | 548 | 4.666667 | 0.333333 | 0.091837 | 0.122449 | 0.153061 | 0.867347 | 0.765306 | 0.765306 | 0.596939 | 0.596939 | 0.596939 | 0 | 0.008032 | 0.091241 | 548 | 13 | 76 | 42.153846 | 0.779116 | 0 | 0 | 0.222222 | 0 | 0 | 0.363139 | 0.215328 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5e5a36ef2a03693ce4c2de8a9efa2fe8841eda2f | 66 | py | Python | test.py | Joshuawadd/rlcard | de2da05a9b32a39e0d8bbfc1cd589d88a6580c56 | [
"MIT"
] | null | null | null | test.py | Joshuawadd/rlcard | de2da05a9b32a39e0d8bbfc1cd589d88a6580c56 | [
"MIT"
] | null | null | null | test.py | Joshuawadd/rlcard | de2da05a9b32a39e0d8bbfc1cd589d88a6580c56 | [
"MIT"
] | null | null | null | import rlcard
rlcard.make('whist', config={'record_action': True}) | 33 | 52 | 0.757576 | 9 | 66 | 5.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 66 | 2 | 52 | 33 | 0.790323 | 0 | 0 | 0 | 0 | 0 | 0.268657 | 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 |
5e648c46deae58045c77e15aabfe8455c3ca7fc3 | 403 | py | Python | generator_counter.py | volhadounar/Python_tricks | 8307e1695c4a4a94ab4bd6770d932650406c4ddf | [
"BSD-3-Clause"
] | null | null | null | generator_counter.py | volhadounar/Python_tricks | 8307e1695c4a4a94ab4bd6770d932650406c4ddf | [
"BSD-3-Clause"
] | null | null | null | generator_counter.py | volhadounar/Python_tricks | 8307e1695c4a4a94ab4bd6770d932650406c4ddf | [
"BSD-3-Clause"
] | null | null | null | def gen_counter(cnt=None):
res = 0
while True:
yield res
res += 1 if cnt is None else cnt
if __name__=='__main__':
cnt = gen_counter()
print(next(cnt))
print(next(cnt))
print(next(cnt))
print(next(cnt))
print(next(cnt))
cnt = gen_counter(5)
print(next(cnt))
... | 17.521739 | 40 | 0.573201 | 59 | 403 | 3.728814 | 0.322034 | 0.409091 | 0.545455 | 0.618182 | 0.545455 | 0.545455 | 0.545455 | 0.545455 | 0.545455 | 0.545455 | 0 | 0.010345 | 0.280397 | 403 | 22 | 41 | 18.318182 | 0.748276 | 0 | 0 | 0.555556 | 0 | 0 | 0.019851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0.555556 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5e74c204557e66db10e4f9aacbe286c96a16b169 | 89 | py | Python | src/ebonite/ext/sqlalchemy/__init__.py | koskotG/ebonite | 9f9ae016b70fb24865d5edc99142afb8ab4ddc59 | [
"Apache-2.0"
] | 270 | 2019-11-14T15:46:08.000Z | 2021-09-17T16:43:03.000Z | src/ebonite/ext/sqlalchemy/__init__.py | geffy/ebonite | 2d85eeca44ac1799e743bafe333887712e325060 | [
"Apache-2.0"
] | 14 | 2019-11-29T11:49:39.000Z | 2022-02-10T00:23:59.000Z | src/ebonite/ext/sqlalchemy/__init__.py | geffy/ebonite | 2d85eeca44ac1799e743bafe333887712e325060 | [
"Apache-2.0"
] | 18 | 2019-11-22T13:15:14.000Z | 2021-09-01T13:36:12.000Z | from .repository import SQLAlchemyMetaRepository
__all__ = ['SQLAlchemyMetaRepository']
| 22.25 | 48 | 0.842697 | 6 | 89 | 11.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 89 | 3 | 49 | 29.666667 | 0.876543 | 0 | 0 | 0 | 0 | 0 | 0.269663 | 0.269663 | 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 |
5e9a0f4abc17fb2629811760023c0c3b6f89d0f3 | 138 | py | Python | pypd/tests/testutils.py | andyr0id/PyPD | fdc743cb5babb418b7769d7299a21d1db7e1a99d | [
"BSD-3-Clause"
] | null | null | null | pypd/tests/testutils.py | andyr0id/PyPD | fdc743cb5babb418b7769d7299a21d1db7e1a99d | [
"BSD-3-Clause"
] | null | null | null | pypd/tests/testutils.py | andyr0id/PyPD | fdc743cb5babb418b7769d7299a21d1db7e1a99d | [
"BSD-3-Clause"
] | null | null | null | import os
def getPatchesDir():
d = os.path.dirname(os.path.realpath(__file__))
return d[:d.index('pypd/pypd/')] + 'pypd/patches/' | 27.6 | 54 | 0.666667 | 20 | 138 | 4.4 | 0.65 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137681 | 138 | 5 | 54 | 27.6 | 0.739496 | 0 | 0 | 0 | 0 | 0 | 0.165468 | 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 |
5eba56c94b797340db1c37605131f5ed69f50d84 | 49 | py | Python | src/pushbroom/__init__.py | gpanders/Janitor | 1931f8d8856116a0bf5c951a2c3a51250b293cd4 | [
"MIT"
] | 4 | 2019-11-17T03:29:31.000Z | 2021-11-01T20:27:07.000Z | src/pushbroom/__init__.py | gpanders/Janitor | 1931f8d8856116a0bf5c951a2c3a51250b293cd4 | [
"MIT"
] | null | null | null | src/pushbroom/__init__.py | gpanders/Janitor | 1931f8d8856116a0bf5c951a2c3a51250b293cd4 | [
"MIT"
] | null | null | null | __version__ = "v1.0.0"
from .sweep import sweep
| 12.25 | 24 | 0.714286 | 8 | 49 | 3.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.163265 | 49 | 3 | 25 | 16.333333 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0d5a2e2a61d0c5a2fa42ed52311c9a745b69c345 | 13,635 | py | Python | logic.py | qwlea/chess | 06213ebbcd379e1968ebcfed41d38b9a00f9f3c8 | [
"Apache-2.0"
] | null | null | null | logic.py | qwlea/chess | 06213ebbcd379e1968ebcfed41d38b9a00f9f3c8 | [
"Apache-2.0"
] | null | null | null | logic.py | qwlea/chess | 06213ebbcd379e1968ebcfed41d38b9a00f9f3c8 | [
"Apache-2.0"
] | null | null | null | import pygame
# This class internally handles all of the board logic that's necessary to ensure legal moves are played
class Logic:
def __init__(self, bd):
self._board = bd
# This is a utility function that is used by the other functions of this class
def verify_legal(self, col, row, legal... | 51.844106 | 135 | 0.527539 | 1,951 | 13,635 | 3.480779 | 0.076371 | 0.040053 | 0.051539 | 0.06597 | 0.777647 | 0.744809 | 0.715506 | 0.709763 | 0.690178 | 0.639376 | 0 | 0.026737 | 0.371837 | 13,635 | 262 | 136 | 52.041985 | 0.766141 | 0.09945 | 0 | 0.612069 | 0 | 0 | 0.0005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.00431 | 0 | 0.081897 | 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 |
0d89e7eca6d9f4fa52e872177aef363e8ae3e8ff | 42 | py | Python | test_apps/python_app/targets/dut/o1_dut0.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | null | null | null | test_apps/python_app/targets/dut/o1_dut0.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | 127 | 2019-11-23T17:09:35.000Z | 2021-09-02T11:06:20.000Z | test_apps/python_app/targets/dut/o1_dut0.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | null | null | null | origen.app.instantiate_dut("dut.o1_dut0")
| 21 | 41 | 0.809524 | 7 | 42 | 4.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.02381 | 42 | 1 | 42 | 42 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ddf56cf8e72a5bf5f38558a8ab7e64ef10459c1 | 239 | py | Python | src/vendor/configrpc/plugin.py | radomirklacza/C-BAS | 5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32 | [
"BSD-3-Clause"
] | null | null | null | src/vendor/configrpc/plugin.py | radomirklacza/C-BAS | 5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32 | [
"BSD-3-Clause"
] | null | null | null | src/vendor/configrpc/plugin.py | radomirklacza/C-BAS | 5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32 | [
"BSD-3-Clause"
] | 2 | 2017-08-07T15:24:05.000Z | 2018-10-11T10:53:23.000Z | import eisoil.core.pluginmanager as pm
from crpc.configrpc import ConfigRPC
def setup():
# setup config keys
xmlrpc = pm.getService('xmlrpc')
xmlrpc.registerXMLRPC('configrpc', ConfigRPC(), '/amconfig') # handlerObj, endpoint | 29.875 | 87 | 0.736402 | 27 | 239 | 6.518519 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150628 | 239 | 8 | 87 | 29.875 | 0.866995 | 0.158996 | 0 | 0 | 0 | 0 | 0.120603 | 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 |
216d0a489cd9d3cd4e55e013d2c676784c470662 | 102 | py | Python | chho2/ignore/1.py | srishtikohli99/CHHO2 | 179d6987b02e20cebf241258fd32a557cc8d4f6e | [
"Apache-2.0"
] | null | null | null | chho2/ignore/1.py | srishtikohli99/CHHO2 | 179d6987b02e20cebf241258fd32a557cc8d4f6e | [
"Apache-2.0"
] | null | null | null | chho2/ignore/1.py | srishtikohli99/CHHO2 | 179d6987b02e20cebf241258fd32a557cc8d4f6e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 5 03:41:18 2019
@author: srishti
"""
print("Hello")
| 11.333333 | 35 | 0.578431 | 16 | 102 | 3.6875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 0.196078 | 102 | 8 | 36 | 12.75 | 0.573171 | 0.745098 | 0 | 0 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
216e704aed5840412ef0e392bf76c8a25c1a2f07 | 96 | py | Python | covid_stats/apps.py | cploutarchou/covid-19-tracker | 896114097be79939073ac82734b146d7a50df586 | [
"MIT"
] | null | null | null | covid_stats/apps.py | cploutarchou/covid-19-tracker | 896114097be79939073ac82734b146d7a50df586 | [
"MIT"
] | 15 | 2020-09-09T17:57:15.000Z | 2020-12-15T19:35:01.000Z | covid_stats/apps.py | cploutarchou/covid-19-tracker | 896114097be79939073ac82734b146d7a50df586 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CovidStatsConfig(AppConfig):
name = 'covid_stats'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 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 |
219551bbea42d4634a08e149f5f7635c2b411a23 | 259 | py | Python | tests/unit-tests/test_settings.py | Ycallaer/schema_registry_viz | dfd474445ff7f5188d92fca2091d3dcedf48106f | [
"MIT"
] | 1 | 2021-07-07T08:04:57.000Z | 2021-07-07T08:04:57.000Z | tests/unit-tests/test_settings.py | Ycallaer/schema_registry_viz | dfd474445ff7f5188d92fca2091d3dcedf48106f | [
"MIT"
] | null | null | null | tests/unit-tests/test_settings.py | Ycallaer/schema_registry_viz | dfd474445ff7f5188d92fca2091d3dcedf48106f | [
"MIT"
] | null | null | null | from schema_reg_viz.config.settings import get_settings
def test_health():
result = get_settings()
assert result.schema_registry.port == 8081
assert result.schema_registry.protocol == 'http'
assert result.schema_registry.url == 'localhost'
| 25.9 | 55 | 0.752896 | 33 | 259 | 5.666667 | 0.606061 | 0.192513 | 0.28877 | 0.417112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.15444 | 259 | 9 | 56 | 28.777778 | 0.835616 | 0 | 0 | 0 | 0 | 0 | 0.050193 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
219de8b1f6e08aa97a613a0524aea586f32a0e32 | 104 | py | Python | slide/snippet/list_str.py | TomohikoK/PyCat | d36632a6a348c1cdad8ba0594a7600e350c72f7c | [
"Apache-2.0"
] | null | null | null | slide/snippet/list_str.py | TomohikoK/PyCat | d36632a6a348c1cdad8ba0594a7600e350c72f7c | [
"Apache-2.0"
] | 6 | 2018-04-13T11:27:00.000Z | 2018-05-11T11:57:57.000Z | slide/snippet/list_str.py | TomohikoK/PyCat | d36632a6a348c1cdad8ba0594a7600e350c72f7c | [
"Apache-2.0"
] | null | null | null | from typing import List
list_of_string: List[str] = ['a', 'b', 'c']
list_of_int: List[int] = [1, 2, 3]
| 20.8 | 43 | 0.625 | 20 | 104 | 3.05 | 0.7 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.163462 | 104 | 4 | 44 | 26 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 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 |
21d1b7a99a4a4f2fed40cc3a522775a64b047e5d | 289 | py | Python | server/data.py | ParkingPrediXion/ParkingPrediXion | c7677c4e3f6961412e2e15fae987254f76f10eba | [
"MIT"
] | 2 | 2017-10-24T23:10:45.000Z | 2017-10-25T00:29:26.000Z | server/data.py | ParkingPrediXion/ParkingPrediXion | c7677c4e3f6961412e2e15fae987254f76f10eba | [
"MIT"
] | 9 | 2020-09-05T05:40:43.000Z | 2022-03-08T22:49:44.000Z | server/data.py | kevincai79/SmartParking | 596c17585eef8559f2972c86822a209289ac0788 | [
"MIT"
] | 2 | 2017-11-02T21:37:10.000Z | 2017-11-15T06:53:14.000Z | import json
import numpy as np
def get_timestamps(evts):
return [c['timestamp'] for c in evts['content']]
def get_bucket(dt):
return dt.weekday() * 24 + dt.hour
from collections import namedtuple
AllData = namedtuple('AllData', ['spots', 'trends', 'total'])
def load_data():
pass
| 17 | 61 | 0.705882 | 42 | 289 | 4.785714 | 0.714286 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008163 | 0.152249 | 289 | 16 | 62 | 18.0625 | 0.812245 | 0 | 0 | 0 | 0 | 0 | 0.134948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.1 | 0.3 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
21d2f21cea92db12ee599f05b8864f30beeca361 | 165 | py | Python | gallery/urls.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | null | null | null | gallery/urls.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | 7 | 2020-02-12T02:54:35.000Z | 2022-03-12T00:06:26.000Z | gallery/urls.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | 6 | 2020-02-10T16:37:38.000Z | 2021-01-28T13:39:46.000Z |
from django.urls import path
from . import views
urlpatterns = [
path('',views.gallery,name='gallery'),
path('api/',views.gallery_api,name='gallery_api')
]
| 20.625 | 53 | 0.69697 | 22 | 165 | 5.136364 | 0.454545 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139394 | 165 | 7 | 54 | 23.571429 | 0.795775 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 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 |
21e54bcf8058300c62c0f523bd119043add0d44d | 62 | py | Python | tests/datastructures/test_queue.py | TristenSeth/campy | 9e726c342d682239e1c19e6f5645c0b2167d7fab | [
"MIT"
] | 5 | 2018-12-03T19:18:50.000Z | 2021-05-31T07:17:06.000Z | tests/datastructures/test_queue.py | TristenSeth/campy | 9e726c342d682239e1c19e6f5645c0b2167d7fab | [
"MIT"
] | 1 | 2020-02-13T20:56:05.000Z | 2020-02-19T18:32:56.000Z | tests/datastructures/test_queue.py | TristenSeth/campy | 9e726c342d682239e1c19e6f5645c0b2167d7fab | [
"MIT"
] | 1 | 2017-06-06T07:29:07.000Z | 2017-06-06T07:29:07.000Z | """Tests for the :mod:`campy.datastructures.queue` module."""
| 31 | 61 | 0.709677 | 8 | 62 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 62 | 1 | 62 | 62 | 0.77193 | 0.887097 | 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 |
1d0efb5b6619dd435a246a3aa0f6270dc997abe4 | 488 | py | Python | stevesie/resources/task_dependency.py | Stevesie/stevesie-py | fd1bcf9271912dd2925d1279b7b9e3796d2c2e70 | [
"MIT"
] | 1 | 2018-12-25T11:11:46.000Z | 2018-12-25T11:11:46.000Z | stevesie/resources/task_dependency.py | Stevesie/stevesie-py | fd1bcf9271912dd2925d1279b7b9e3796d2c2e70 | [
"MIT"
] | null | null | null | stevesie/resources/task_dependency.py | Stevesie/stevesie-py | fd1bcf9271912dd2925d1279b7b9e3796d2c2e70 | [
"MIT"
] | 1 | 2021-07-26T21:58:41.000Z | 2021-07-26T21:58:41.000Z | from typing import NamedTuple, Sequence
from datetime import datetime
from stevesie.remote_resource import RemoteResource
from stevesie.resources.task_collection_field import TaskCollectionField
class TaskDependencyTuple(NamedTuple):
id: str
variable_name: str
name: str
sample_value: str
created_a... | 27.111111 | 85 | 0.811475 | 51 | 488 | 7.470588 | 0.627451 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135246 | 488 | 17 | 86 | 28.705882 | 0.902844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.076923 | 0.307692 | 0 | 0.846154 | 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 |
df1c0a5f087c452fa58e3ff9d7e772f2d4cfd30d | 226 | py | Python | objetto/observers.py | brunonicko/objetto | 50540bc14c5767e3f8fa09bf59ba322cb043a353 | [
"MIT"
] | 8 | 2020-12-10T21:04:06.000Z | 2022-01-22T07:43:07.000Z | objetto/observers.py | brunonicko/objetto | 50540bc14c5767e3f8fa09bf59ba322cb043a353 | [
"MIT"
] | null | null | null | objetto/observers.py | brunonicko/objetto | 50540bc14c5767e3f8fa09bf59ba322cb043a353 | [
"MIT"
] | 1 | 2022-01-20T21:39:48.000Z | 2022-01-20T21:39:48.000Z | # -*- coding: utf-8 -*-
"""Observer mixin class."""
from ._observers import ActionObserver, ActionObserverExceptionData, ActionObserverToken
__all__ = ["ActionObserver", "ActionObserverToken", "ActionObserverExceptionData"]
| 32.285714 | 88 | 0.774336 | 16 | 226 | 10.625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.09292 | 226 | 6 | 89 | 37.666667 | 0.82439 | 0.19469 | 0 | 0 | 0 | 0 | 0.340909 | 0.153409 | 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 |
df2bb3f06b0fd3d58ebaf78583368995ea6f807f | 1,600 | py | Python | manga_py/providers/translate_webtoons_com.py | sonvt1710/manga-py | 848a78e93b890af0c92056a1a9fc7f6ce5707cf6 | [
"MIT"
] | 7 | 2019-07-31T13:50:59.000Z | 2019-08-24T03:04:13.000Z | manga_py/providers/translate_webtoons_com.py | sonvt1710/manga-py | 848a78e93b890af0c92056a1a9fc7f6ce5707cf6 | [
"MIT"
] | 18 | 2019-07-26T22:27:06.000Z | 2019-08-25T13:45:13.000Z | manga_py/providers/translate_webtoons_com.py | sonvt1710/manga-py | 848a78e93b890af0c92056a1a9fc7f6ce5707cf6 | [
"MIT"
] | 2 | 2019-08-07T12:38:25.000Z | 2019-08-08T06:53:31.000Z | from manga_py.provider import Provider
from .helpers.std import Std
class TranslateWebToonsCom(Provider, Std):
def get_archive_name(self) -> str:
return self.normal_arc_name(self.get_chapter_index())
def get_chapter_index(self) -> str:
return self.re.search(r'\bepisodeNo=(\d+)', self.chapter)... | 30.188679 | 96 | 0.621875 | 202 | 1,600 | 4.717822 | 0.40099 | 0.083945 | 0.054565 | 0.071354 | 0.044071 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005892 | 0.2575 | 1,600 | 52 | 97 | 30.769231 | 0.796296 | 0.005625 | 0 | 0 | 0 | 0 | 0.081812 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.263158 | false | 0.026316 | 0.052632 | 0.157895 | 0.578947 | 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 |
df2c0482b57e718f47cb035d272a2bd625f0f2ab | 323 | py | Python | python/tasker/src/json/Importer.py | PUT-II/akai-org-rekrutacja | 82e3b65de3f2ce965a8f71e61395e32750d90f87 | [
"MIT"
] | null | null | null | python/tasker/src/json/Importer.py | PUT-II/akai-org-rekrutacja | 82e3b65de3f2ce965a8f71e61395e32750d90f87 | [
"MIT"
] | null | null | null | python/tasker/src/json/Importer.py | PUT-II/akai-org-rekrutacja | 82e3b65de3f2ce965a8f71e61395e32750d90f87 | [
"MIT"
] | null | null | null | import json
class Importer:
def __init__(self):
self.__encoded_tasks: str = ""
pass
def read_tasks(self):
with open("taski.json", mode="r", encoding="utf8") as file:
self.__encoded_tasks = file.read()
def get_tasks(self):
return json.loads(self.__encoded_task... | 20.1875 | 67 | 0.613003 | 41 | 323 | 4.463415 | 0.585366 | 0.180328 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.26935 | 323 | 15 | 68 | 21.533333 | 0.771186 | 0 | 0 | 0 | 0 | 0 | 0.04644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.1 | 0.2 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
df3f0c07e068990c16324e3f1d867643cf9be2d8 | 181 | py | Python | tests/unit2/test_arcade.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | 824 | 2016-01-07T19:27:57.000Z | 2020-08-01T03:15:47.000Z | tests/unit2/test_arcade.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | 646 | 2016-01-08T02:42:31.000Z | 2020-08-03T14:13:27.000Z | tests/unit2/test_arcade.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | 221 | 2016-01-07T22:36:33.000Z | 2020-07-24T23:30:08.000Z | import logging
import arcade
def test_logging():
arcade.configure_logging(logging.WARNING)
logger = logging.getLogger('arcade')
assert logger.level == logging.WARNING
| 20.111111 | 45 | 0.751381 | 21 | 181 | 6.380952 | 0.52381 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154696 | 181 | 8 | 46 | 22.625 | 0.875817 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 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 |
df4082af9eaf2640800c1ac86b5322b4d1947ee5 | 71 | py | Python | src/btc/types_btc.py | wenqinchao/btc | 9d9c7676d830a31396a5b17de981d456c3f27b89 | [
"MIT"
] | 3 | 2021-03-13T13:56:32.000Z | 2021-06-09T02:10:11.000Z | src/btc/types_btc.py | wenqinchao/btc | 9d9c7676d830a31396a5b17de981d456c3f27b89 | [
"MIT"
] | null | null | null | src/btc/types_btc.py | wenqinchao/btc | 9d9c7676d830a31396a5b17de981d456c3f27b89 | [
"MIT"
] | null | null | null | from typing import NewType
RPCEndpoint = NewType("RPCEndpoint", str) | 23.666667 | 41 | 0.774648 | 8 | 71 | 6.875 | 0.75 | 0.654545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 71 | 3 | 41 | 23.666667 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 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 |
df63416bcd28e4af3cbd00c243d23aa369eca361 | 83 | py | Python | pyytdata/util/__init__.py | princekrroshan01/youtube-api-wrapper | 922b1737600a3e9f41c30578c8fd202a0e092842 | [
"MIT"
] | 17 | 2020-07-12T11:32:50.000Z | 2022-03-15T13:36:43.000Z | pyytdata/util/__init__.py | princekrroshan01/youtube-api-wrapper | 922b1737600a3e9f41c30578c8fd202a0e092842 | [
"MIT"
] | 11 | 2020-07-07T07:34:26.000Z | 2021-12-17T07:47:04.000Z | pyytdata/util/__init__.py | princekrroshan01/youtube-api-wrapper | 922b1737600a3e9f41c30578c8fd202a0e092842 | [
"MIT"
] | 2 | 2020-08-20T07:31:18.000Z | 2021-02-28T21:24:51.000Z | from .chnlinfo import ChnlInfo
from .info import Info
from .vidinfo import VidInfo
| 20.75 | 30 | 0.819277 | 12 | 83 | 5.666667 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 3 | 31 | 27.666667 | 0.957746 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.