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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd7c4a005acc9a9ced14db71d5fcf1b5039c5bba | 880 | py | Python | tests/functional/conftest.py | brighter-ai/ips-client | ec41c47deb9a1c3fd991e0ae33b2635e9dcc0c1c | [
"MIT"
] | 1 | 2021-09-01T11:03:06.000Z | 2021-09-01T11:03:06.000Z | tests/functional/conftest.py | brighter-ai/ips-client | ec41c47deb9a1c3fd991e0ae33b2635e9dcc0c1c | [
"MIT"
] | 5 | 2021-05-05T08:48:48.000Z | 2022-01-10T13:51:02.000Z | tests/functional/conftest.py | brighter-ai/redact-client | ec41c47deb9a1c3fd991e0ae33b2635e9dcc0c1c | [
"MIT"
] | null | null | null | import pytest
from redact.data_models import ServiceType, OutputType
from redact.redact_instance import RedactInstance
from redact.redact_job import RedactJob
from redact.redact_requests import RedactRequests
from redact.settings import Settings
settings = Settings()
@pytest.fixture
def redact_requests(redact_url)... | 31.428571 | 91 | 0.819318 | 114 | 880 | 6.096491 | 0.350877 | 0.077698 | 0.069065 | 0.069065 | 0.089209 | 0.089209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106818 | 880 | 27 | 92 | 32.592593 | 0.884224 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
bd7e84cd2a08b1e814022a4b0b6887003ab0d19c | 435 | py | Python | JARVIS/queue/migrations/0002_queue_singleton.py | Jagjot1585/JARVIS-py | d4fb86a08760a8762873e28672a8cd90e2973746 | [
"MIT"
] | null | null | null | JARVIS/queue/migrations/0002_queue_singleton.py | Jagjot1585/JARVIS-py | d4fb86a08760a8762873e28672a8cd90e2973746 | [
"MIT"
] | 1 | 2016-06-23T18:49:28.000Z | 2016-06-24T08:33:48.000Z | JARVIS/queue/migrations/0002_queue_singleton.py | Jagjot1585/JARVIS-py | d4fb86a08760a8762873e28672a8cd90e2973746 | [
"MIT"
] | 2 | 2016-07-18T05:28:23.000Z | 2017-02-05T10:42:02.000Z | # -*- coding: utf-8 -*-
# Generated by system.
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
from queue.models import Queue
def create_queue(apps, schema_editor):
Queue.objects.create()
class Migration(migrations.Migration):
dependencies... | 18.125 | 42 | 0.698851 | 49 | 435 | 6.020408 | 0.612245 | 0.054237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.195402 | 435 | 23 | 43 | 18.913043 | 0.828571 | 0.096552 | 0 | 0 | 1 | 0 | 0.04359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bd9962decb11c913fed9e776aa5538f27d435b34 | 74 | py | Python | bugtests/test190c.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test190c.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test190c.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null |
from java.util import Date
DateX = Date
class SubDate(DateX):
pass
| 8.222222 | 26 | 0.702703 | 11 | 74 | 4.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22973 | 74 | 8 | 27 | 9.25 | 0.912281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bd9c1ec79d8825709adb7f196e3ab7cfceb6aba5 | 344 | py | Python | migrations/versions/2016_11_12_3f117d44226_.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 11 | 2015-04-23T21:57:56.000Z | 2019-04-28T12:48:58.000Z | migrations/versions/2016_11_12_3f117d44226_.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 1 | 2016-10-05T14:10:58.000Z | 2016-10-05T14:12:23.000Z | migrations/versions/2016_11_12_3f117d44226_.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 3 | 2016-10-05T14:00:42.000Z | 2019-01-16T14:33:43.000Z | """empty message
Revision ID: 3f117d44226
Revises: ('5491784529b', '5a7a0783e30')
Create Date: 2016-11-12 16:13:43.941215
"""
# revision identifiers, used by Alembic.
revision = '3f117d44226'
down_revision = ('5491784529b', '5a7a0783e30')
from alembic import op
import sqlalchemy as sa
def upgrade():
pass
de... | 14.956522 | 46 | 0.718023 | 42 | 344 | 5.857143 | 0.761905 | 0.178862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256944 | 0.162791 | 344 | 22 | 47 | 15.636364 | 0.597222 | 0.462209 | 0 | 0.25 | 0 | 0 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bdb1d4c2351d26fd97fdf7613c2f714acb4fe764 | 1,569 | py | Python | yunionclient/api/ec2credentials.py | tb365/mcclient_python | 06647e7496b9e2c3aeb5ade1276c81871063159b | [
"Apache-2.0"
] | 3 | 2021-09-22T11:34:08.000Z | 2022-03-13T04:55:17.000Z | yunionclient/api/ec2credentials.py | xhw20190116/python_yunionsdk | eb7c8c08300d38dac204ec4980a775abc9c7083a | [
"Apache-2.0"
] | 13 | 2019-06-06T08:25:41.000Z | 2021-07-16T07:26:10.000Z | yunionclient/api/ec2credentials.py | xhw20190116/python_yunionsdk | eb7c8c08300d38dac204ec4980a775abc9c7083a | [
"Apache-2.0"
] | 7 | 2019-03-31T05:43:36.000Z | 2021-03-04T09:59:05.000Z | from yunionclient.common import base
class EC2Credential(base.ResourceBase):
def _get_user(self):
if getattr(self, '_user', None) is None:
self._user = self._client_api.users.get(self.user_id)
return self._user
def _get_tenant(self):
if getattr(self, '_tenant', None) is N... | 32.020408 | 74 | 0.588273 | 181 | 1,569 | 4.872928 | 0.259669 | 0.090703 | 0.063492 | 0.086168 | 0.269841 | 0.222222 | 0.097506 | 0.097506 | 0.097506 | 0.097506 | 0 | 0.009946 | 0.295092 | 1,569 | 48 | 75 | 32.6875 | 0.787523 | 0 | 0 | 0.111111 | 0 | 0 | 0.132569 | 0.075207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.027778 | 0.138889 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bdb4642872758e3a941d2135665fc13584bccaa7 | 1,617 | py | Python | script/conllu.py | ialfina/d2d-converter | b2fc2d8e1971cf7ddde4a8e55a4b652f6dea1788 | [
"Apache-2.0"
] | null | null | null | script/conllu.py | ialfina/d2d-converter | b2fc2d8e1971cf7ddde4a8e55a4b652f6dea1788 | [
"Apache-2.0"
] | null | null | null | script/conllu.py | ialfina/d2d-converter | b2fc2d8e1971cf7ddde4a8e55a4b652f6dea1788 | [
"Apache-2.0"
] | null | null | null | #################################################################################
# Class ConlluData
#
# represents a token (a row of 10 columns) in CoNLLU format
#
# Author: Ika Alfina (ika.alfina@cs.ui.ac.id)
#
#################################################################################
class ConlluData:
def ... | 21.276316 | 81 | 0.566481 | 209 | 1,617 | 4.354067 | 0.291866 | 0.087912 | 0.123077 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008429 | 0.19295 | 1,617 | 75 | 82 | 21.56 | 0.688889 | 0.166976 | 0 | 0.232558 | 0 | 0 | 0.017167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.372093 | false | 0 | 0 | 0.186047 | 0.604651 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
bdb7b5c4a7ad052f849b6c4fbf1d64aeb4c1eb72 | 103 | py | Python | trick_sims/Ball/SIM_ball_L2/RUN_test/input.py | iamthad/trick | 88ac5b5990228e42a653347c9d7a103acea4d137 | [
"NASA-1.3"
] | 647 | 2015-05-07T16:08:16.000Z | 2022-03-30T02:33:21.000Z | trick_sims/Ball/SIM_ball_L2/RUN_test/input.py | tanglemontree/trick | f182c723495185708434e67789457eb29d52ad58 | [
"NASA-1.3"
] | 995 | 2015-04-30T19:44:31.000Z | 2022-03-31T20:14:44.000Z | trick_sims/Ball/SIM_ball_L2/RUN_test/input.py | tanglemontree/trick | f182c723495185708434e67789457eb29d52ad58 | [
"NASA-1.3"
] | 251 | 2015-05-15T09:24:34.000Z | 2022-03-22T20:39:05.000Z |
exec(open("Modified_data/data_record.dr").read())
trick.sim_services.exec_set_terminate_time(300.0)
| 17.166667 | 49 | 0.796117 | 17 | 103 | 4.470588 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.048544 | 103 | 5 | 50 | 20.6 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bdcc7d3a2edd9f2a4881995c5fd29f9d754fac5d | 165 | py | Python | Estrutura sequencial/Exercicio 7.py | sofiarochinha/aulaPython | 836a4dc253617360bad07eec9bf54fdd6643490e | [
"MIT"
] | null | null | null | Estrutura sequencial/Exercicio 7.py | sofiarochinha/aulaPython | 836a4dc253617360bad07eec9bf54fdd6643490e | [
"MIT"
] | null | null | null | Estrutura sequencial/Exercicio 7.py | sofiarochinha/aulaPython | 836a4dc253617360bad07eec9bf54fdd6643490e | [
"MIT"
] | null | null | null | print('Calcular a área do quadradado')
lado = int(input('Insira o tamanho do lado: '))
area = lado * lado
print('O dobro da area do quadrado é: ' + str(area * 2)) | 23.571429 | 56 | 0.666667 | 28 | 165 | 3.928571 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.193939 | 165 | 7 | 56 | 23.571429 | 0.819549 | 0 | 0 | 0 | 0 | 0 | 0.518072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
bdd3c688064e8c988e97fe476547c44c35dffcb3 | 328 | py | Python | roomlistwatcher/infrastructure/producing/compat.py | dnguyen0304/room-list-watcher | 7ac4d5172de22dd8906662da521995c8e06c2617 | [
"MIT"
] | null | null | null | roomlistwatcher/infrastructure/producing/compat.py | dnguyen0304/room-list-watcher | 7ac4d5172de22dd8906662da521995c8e06c2617 | [
"MIT"
] | null | null | null | roomlistwatcher/infrastructure/producing/compat.py | dnguyen0304/room-list-watcher | 7ac4d5172de22dd8906662da521995c8e06c2617 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
_MAJOR_AND_MINOR = slice(0, 2)
_PYTHON_VERSION = sys.version_info[_MAJOR_AND_MINOR]
_PYTHON_VERSION_27 = (2, 7)
if _PYTHON_VERSION == _PYTHON_VERSION_27:
import httplib as HttpStatus
import Queue as queuing
else:
import http.HTTPStatus as HttpStatus
import queue as ... | 21.866667 | 52 | 0.743902 | 48 | 328 | 4.729167 | 0.5 | 0.229075 | 0.114537 | 0.202643 | 0.281938 | 0.281938 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.176829 | 328 | 14 | 53 | 23.428571 | 0.807407 | 0.064024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bdda9f3a6f87b68892cc7e064747d98061567dd4 | 638 | py | Python | day7/task1.py | pablogo1/statistics | 39b86b8787876bc087f3ecb6b880952e1f6d010c | [
"MIT"
] | null | null | null | day7/task1.py | pablogo1/statistics | 39b86b8787876bc087f3ecb6b880952e1f6d010c | [
"MIT"
] | null | null | null | day7/task1.py | pablogo1/statistics | 39b86b8787876bc087f3ecb6b880952e1f6d010c | [
"MIT"
] | null | null | null | import math
def read_int():
return int(input())
def read_float_arr():
return list(map(float, input().rstrip().split()))
def cov(X, Y, mean_x, mean_y):
return sum(map(lambda x, y: (x - mean_x) * (y - mean_y), X, Y)) / len(X)
def std_dev(arr, mean):
return math.sqrt(sum(map(lambda x: (x - mean)**2, ar... | 22.785714 | 76 | 0.634796 | 124 | 638 | 3.032258 | 0.241935 | 0.093085 | 0.095745 | 0.106383 | 0.183511 | 0.154255 | 0.079787 | 0 | 0 | 0 | 0 | 0.00381 | 0.177116 | 638 | 27 | 77 | 23.62963 | 0.712381 | 0 | 0 | 0 | 0 | 0 | 0.010972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.263158 | 0.578947 | 0.052632 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
bddfede907dab9cead38a9fcb4d8e2a367cf1fdf | 1,329 | py | Python | src/schema.py | skylerberg/NamePending | 0788601a5e002814b2a9b9569442d9fca1abb501 | [
"Apache-2.0"
] | null | null | null | src/schema.py | skylerberg/NamePending | 0788601a5e002814b2a9b9569442d9fca1abb501 | [
"Apache-2.0"
] | null | null | null | src/schema.py | skylerberg/NamePending | 0788601a5e002814b2a9b9569442d9fca1abb501 | [
"Apache-2.0"
] | null | null | null | from marshmallow import Schema, fields
class UserSchema(Schema):
id = fields.Int(dump_only=True)
email = fields.Email(allow_none=False)
name = fields.Str(allow_none=False)
is_admin = fields.Bool(dump_only=True)
class ChallengeSchema(Schema):
id = fields.Int(dump_only=True)
title = fields.Str... | 30.906977 | 70 | 0.725357 | 186 | 1,329 | 5.010753 | 0.204301 | 0.128755 | 0.193133 | 0.182403 | 0.636266 | 0.564378 | 0.464592 | 0.287554 | 0.287554 | 0.287554 | 0 | 0 | 0.160271 | 1,329 | 42 | 71 | 31.642857 | 0.835125 | 0 | 0 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bdec7a7f05954ec7614a141c7f93beaf2bfdc50d | 235 | py | Python | utils/batch_labelme2dataset.py | zhaozhen1002/Maskrcnn | a6a8cfe80342c0bdfdbe1293ec82e06cddf6c620 | [
"MIT"
] | null | null | null | utils/batch_labelme2dataset.py | zhaozhen1002/Maskrcnn | a6a8cfe80342c0bdfdbe1293ec82e06cddf6c620 | [
"MIT"
] | null | null | null | utils/batch_labelme2dataset.py | zhaozhen1002/Maskrcnn | a6a8cfe80342c0bdfdbe1293ec82e06cddf6c620 | [
"MIT"
] | null | null | null | import os
path = r'C:\Users\pasonatech\Desktop\car_copy\test/'
json_file = os.listdir(path)
for file in json_file:
os.system(r'python C:\Users\pasonatech\Anaconda3\envs\labelme\Scripts\labelme_json_to_dataset.exe %s'%(path +file))
| 39.166667 | 119 | 0.770213 | 40 | 235 | 4.375 | 0.65 | 0.068571 | 0.182857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.085106 | 235 | 5 | 120 | 47 | 0.809302 | 0 | 0 | 0 | 0 | 0 | 0.553191 | 0.510638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bdfe948150bb57e1d4b5032012e25f31e5297411 | 84 | py | Python | {{cookiecutter.project_slug}}/src/web/__init__.py | illagrenan/django-cookiecutter-template | d237c01bbb4b61aa4d777c6abb5461e1dadfa8d0 | [
"MIT"
] | 1 | 2017-04-22T11:05:14.000Z | 2017-04-22T11:05:14.000Z | {{cookiecutter.project_slug}}/src/web/__init__.py | illagrenan/django-cookiecutter-template | d237c01bbb4b61aa4d777c6abb5461e1dadfa8d0 | [
"MIT"
] | 105 | 2015-04-15T23:19:18.000Z | 2019-02-11T19:41:55.000Z | {{cookiecutter.project_slug}}/src/web/__init__.py | illagrenan/django-cookiecutter-template | d237c01bbb4b61aa4d777c6abb5461e1dadfa8d0 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
# ! python3
default_app_config = 'web.apps.WebAppConfig'
| 16.8 | 44 | 0.666667 | 10 | 84 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.142857 | 84 | 4 | 45 | 21 | 0.722222 | 0.392857 | 0 | 0 | 0 | 0 | 0.4375 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da497bd49163c6f6b563fa13933f96aa0e52bc62 | 2,360 | py | Python | aliyun-python-sdk-alidns/aliyunsdkalidns/request/v20150109/UpdateGtmInstanceGlobalConfigRequest.py | sdk-team/aliyun-openapi-python-sdk | 384730d707e6720d1676ccb8f552e6a7b330ec86 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-alidns/aliyunsdkalidns/request/v20150109/UpdateGtmInstanceGlobalConfigRequest.py | sdk-team/aliyun-openapi-python-sdk | 384730d707e6720d1676ccb8f552e6a7b330ec86 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-alidns/aliyunsdkalidns/request/v20150109/UpdateGtmInstanceGlobalConfigRequest.py | sdk-team/aliyun-openapi-python-sdk | 384730d707e6720d1676ccb8f552e6a7b330ec86 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.777778 | 94 | 0.762712 | 316 | 2,360 | 5.518987 | 0.322785 | 0.027523 | 0.06422 | 0.077982 | 0.142202 | 0.142202 | 0.142202 | 0 | 0 | 0 | 0 | 0.005888 | 0.136441 | 2,360 | 72 | 95 | 32.777778 | 0.849853 | 0.319492 | 0 | 0 | 0 | 0 | 0.131818 | 0.018831 | 0 | 0 | 0 | 0 | 0 | 1 | 0.472222 | false | 0 | 0.027778 | 0.222222 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
da5b9e8d5fa7ab44c7ce0cc1b7d7490ab3564c1d | 560 | py | Python | Python/Question-19/index.py | willywill/Interview-Practice | 714769293af5564d89b0d1216af07b6be8981e40 | [
"MIT"
] | 1 | 2021-03-27T17:54:32.000Z | 2021-03-27T17:54:32.000Z | Python/Question-19/index.py | willywill/Interview-Practice | 714769293af5564d89b0d1216af07b6be8981e40 | [
"MIT"
] | 2 | 2021-04-28T03:39:30.000Z | 2021-09-05T22:54:36.000Z | Python/Question-19/index.py | willywill/Interview-Practice | 714769293af5564d89b0d1216af07b6be8981e40 | [
"MIT"
] | null | null | null | class Stack:
# Constructor
def __init__(self):
self.collection = []
# Append data on the top of the stack
def push(self, data):
self.collection.append(data)
# Remove and return the last item on the top of the stack
def pop(self):
return self.collection.pop()
... | 25.454545 | 64 | 0.623214 | 76 | 560 | 4.539474 | 0.421053 | 0.243478 | 0.127536 | 0.113043 | 0.121739 | 0.121739 | 0.121739 | 0 | 0 | 0 | 0 | 0.002538 | 0.296429 | 560 | 21 | 65 | 26.666667 | 0.873096 | 0.341071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0 | 0.272727 | 0.818182 | 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 | 0 | 0 | 0 | 3 |
da7db9efc0afe8ad5dbb3321eadf1e2e26ea3828 | 533 | py | Python | Bulk_User_Create.py | jjh5030/tidder | 4ec5937c3989dae4d5ea2bf2911194bd8e8b54de | [
"Unlicense",
"MIT"
] | 1 | 2016-01-19T14:16:46.000Z | 2016-01-19T14:16:46.000Z | Bulk_User_Create.py | jjh5030/tidder | 4ec5937c3989dae4d5ea2bf2911194bd8e8b54de | [
"Unlicense",
"MIT"
] | null | null | null | Bulk_User_Create.py | jjh5030/tidder | 4ec5937c3989dae4d5ea2bf2911194bd8e8b54de | [
"Unlicense",
"MIT"
] | null | null | null | from __future__ import print_function
# Setup the Django environment so we can access our models
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tidder.settings')
import sys
from django.utils.timezone import utc
from django.contrib.auth.models import User
from stories.models import Story
def main():
fo... | 25.380952 | 112 | 0.73546 | 81 | 533 | 4.641975 | 0.592593 | 0.053191 | 0.047872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006593 | 0.146341 | 533 | 20 | 113 | 26.65 | 0.81978 | 0.105066 | 0 | 0 | 0 | 0 | 0.2 | 0.046316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.461538 | 0 | 0.538462 | 0.153846 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
16f729eff684d99cb4c04b81065822ebc3e42750 | 575 | py | Python | test/conftest.py | mdtomo/wispysvr | 0d824c30e0e655d1db19a23a63153fbf4a3670b9 | [
"MIT"
] | 1 | 2017-10-06T04:23:09.000Z | 2017-10-06T04:23:09.000Z | test/conftest.py | mdtomo/wispysvr | 0d824c30e0e655d1db19a23a63153fbf4a3670b9 | [
"MIT"
] | null | null | null | test/conftest.py | mdtomo/wispysvr | 0d824c30e0e655d1db19a23a63153fbf4a3670b9 | [
"MIT"
] | null | null | null | import pytest
import sys, os
sys.path.append(os.path.abspath('..'))
import db
class SetupForTest(object):
def __init__(self):
self.test_user = 'test'
self.test_passwd = 'test'
#self.test_creds = ('test', 'test')
print('Connecting to mongodb...')
db.connect()
print(... | 23 | 74 | 0.641739 | 72 | 575 | 4.944444 | 0.472222 | 0.11236 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213913 | 575 | 25 | 75 | 23 | 0.787611 | 0.05913 | 0 | 0 | 0 | 0 | 0.118299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.176471 | 0.176471 | 0.117647 | 0.529412 | 0.117647 | 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 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
e51dc13301efef86f21fccf5dcf18a99b4f85bae | 461 | py | Python | utils.py | ShivanshMishra18/IntelligentDocFinder | 4a0ed1c9b4011ca212361397945a840c6f65ed3a | [
"BSD-2-Clause"
] | 1 | 2022-02-11T05:46:28.000Z | 2022-02-11T05:46:28.000Z | utils.py | amankrsingh1812/IntelligentDocFinder | 4a0ed1c9b4011ca212361397945a840c6f65ed3a | [
"BSD-2-Clause"
] | null | null | null | utils.py | amankrsingh1812/IntelligentDocFinder | 4a0ed1c9b4011ca212361397945a840c6f65ed3a | [
"BSD-2-Clause"
] | null | null | null | from enum import Enum
import numpy as np
Filetypes = Enum('File','txt pdf docx pptx')
def generate_filename(extension):
"""
Returns sample file from the samples/ folder
Arguments:
extension - extension of the req doc
"""
return f'samples/sample_{extension}.{extension}'
def calculat... | 25.611111 | 65 | 0.652928 | 67 | 461 | 4.432836 | 0.552239 | 0.020202 | 0.026936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221258 | 461 | 18 | 65 | 25.611111 | 0.827298 | 0.201735 | 0 | 0 | 1 | 0 | 0.173529 | 0.111765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e51f130a5f0dc6019eb6af9055ad3b62457b30c4 | 196 | py | Python | python/8Kyu/Is it a number.py | athasv/Codewars-data | 5e106466e709fd776f23585ad9f652d0d65b48d3 | [
"MIT"
] | null | null | null | python/8Kyu/Is it a number.py | athasv/Codewars-data | 5e106466e709fd776f23585ad9f652d0d65b48d3 | [
"MIT"
] | null | null | null | python/8Kyu/Is it a number.py | athasv/Codewars-data | 5e106466e709fd776f23585ad9f652d0d65b48d3 | [
"MIT"
] | null | null | null | def isDigit(string):
#11ELF
try:
float(string)
except ValueError:
try:
complex(string)
except ValueError:
return False
return True | 17.818182 | 27 | 0.530612 | 18 | 196 | 5.777778 | 0.666667 | 0.230769 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.408163 | 196 | 11 | 28 | 17.818182 | 0.87931 | 0.02551 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e521e6ac119f53b731c4edffcd6981eb209f33d5 | 462 | py | Python | Exercicios função def.py | dimagela29/Python-POO | 61904b232b50779f37ed48a46cc317fc709a744e | [
"Apache-2.0",
"MIT"
] | null | null | null | Exercicios função def.py | dimagela29/Python-POO | 61904b232b50779f37ed48a46cc317fc709a744e | [
"Apache-2.0",
"MIT"
] | null | null | null | Exercicios função def.py | dimagela29/Python-POO | 61904b232b50779f37ed48a46cc317fc709a744e | [
"Apache-2.0",
"MIT"
] | null | null | null | """def olá_Mundo():
return 'Olá Mundo'
def mestre(funcao):
return funcao()
executando = mestre(olá_Mundo)
print(executando)
"""
def mestre(funcao, *args, **kwargs):
return funcao(*args, **kwargs)
def fala_oi(nome):
return f'Oi {nome}'
def saudacao(nome, saudacao):
return f'{saudacao} {nome}'
e... | 19.25 | 63 | 0.692641 | 58 | 462 | 5.448276 | 0.327586 | 0.075949 | 0.094937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.151515 | 462 | 23 | 64 | 20.086957 | 0.80102 | 0.281385 | 0 | 0 | 0 | 0 | 0.156923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.3 | 0.6 | 0.2 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
e523aec5be4de3e37b07ea23860e78be25297daf | 1,437 | py | Python | fxm/online/migrations/0002_auto_20210308_1837.py | panyuan5056/fx | 24ca8dd57de7534e4d20cfbf2890607a1741dc70 | [
"Apache-2.0"
] | null | null | null | fxm/online/migrations/0002_auto_20210308_1837.py | panyuan5056/fx | 24ca8dd57de7534e4d20cfbf2890607a1741dc70 | [
"Apache-2.0"
] | null | null | null | fxm/online/migrations/0002_auto_20210308_1837.py | panyuan5056/fx | 24ca8dd57de7534e4d20cfbf2890607a1741dc70 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-08 10:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('online', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='online',
name='cpu',
field... | 32.659091 | 132 | 0.569241 | 146 | 1,437 | 5.458904 | 0.410959 | 0.150565 | 0.188206 | 0.218319 | 0.629862 | 0.629862 | 0.248432 | 0.248432 | 0.248432 | 0.248432 | 0 | 0.039139 | 0.288796 | 1,437 | 43 | 133 | 33.418605 | 0.740705 | 0.031315 | 0 | 0.486486 | 1 | 0 | 0.096403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5356df9f7b4aae6ddd8f336f54478eaeafac82c | 386 | py | Python | test/test_articles.py | budds300/News | 924f220ae416025b5061f0dab9ffca0f5a651618 | [
"MIT"
] | null | null | null | test/test_articles.py | budds300/News | 924f220ae416025b5061f0dab9ffca0f5a651618 | [
"MIT"
] | null | null | null | test/test_articles.py | budds300/News | 924f220ae416025b5061f0dab9ffca0f5a651618 | [
"MIT"
] | null | null | null | import unittest
from app.models import Articles
class ArticlesTest(unittest.TestCase):
def setUp(self):
self.new_articles = Articles('Tamminga','Technology advancement','The artificial intelligence takeover','http://ww.wzxnews.com','http://xhcbjkjkc.jpeg','23/6/21')
def test_instance(self... | 38.6 | 170 | 0.720207 | 46 | 386 | 5.978261 | 0.717391 | 0.058182 | 0.109091 | 0.167273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015244 | 0.150259 | 386 | 10 | 171 | 38.6 | 0.823171 | 0 | 0 | 0 | 0 | 0 | 0.297158 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 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 | 0 | 1 | 0 | 0 | 3 |
e552943088ed75b1f9e4e9c24e323482d3ae939c | 782 | py | Python | message_prototypes/pipe_messages/request_message.py | agratoth/py-message-prototypes | a23527f8264631e947ed2a6657b325036005330f | [
"MIT"
] | 1 | 2021-02-26T04:40:00.000Z | 2021-02-26T04:40:00.000Z | message_prototypes/pipe_messages/request_message.py | agratoth/py-message-prototypes | a23527f8264631e947ed2a6657b325036005330f | [
"MIT"
] | null | null | null | message_prototypes/pipe_messages/request_message.py | agratoth/py-message-prototypes | a23527f8264631e947ed2a6657b325036005330f | [
"MIT"
] | null | null | null | from message_prototypes import BaseMessage
from message_prototypes.pipe_messages import ActionPathMessage
from message_prototypes.pipe_messages import RequestExtraMessage
class RequestMessage(BaseMessage):
_serializable_fields = [
'path', 'action', 'extra',
]
def __init__(self):
self._pat... | 23.69697 | 64 | 0.695652 | 87 | 782 | 6.022989 | 0.275862 | 0.062977 | 0.120229 | 0.09542 | 0.148855 | 0.148855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216113 | 782 | 32 | 65 | 24.4375 | 0.854812 | 0 | 0 | 0.130435 | 0 | 0 | 0.019182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.130435 | 0.130435 | 0.521739 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
e554feacaefb60d2c28da94b54bd48f411033b6a | 270 | py | Python | inpaint/util.py | karfly/inpaint | 77d80c088f772746fd30ffbbf6b2bc3e78e68dc3 | [
"MIT"
] | 2 | 2018-05-20T21:19:05.000Z | 2020-04-08T09:26:49.000Z | inpaint/util.py | karfly/inpaint | 77d80c088f772746fd30ffbbf6b2bc3e78e68dc3 | [
"MIT"
] | 3 | 2021-03-18T20:31:38.000Z | 2021-09-07T23:52:26.000Z | inpaint/util.py | karfly/inpaint | 77d80c088f772746fd30ffbbf6b2bc3e78e68dc3 | [
"MIT"
] | 1 | 2018-05-14T10:29:34.000Z | 2018-05-14T10:29:34.000Z | def crop_to_square(x):
crop_width, remainder = divmod(abs(x.shape[0] - x.shape[1]), 2)
if x.shape[0] < x.shape[1]:
return x[:, crop_width : x.shape[1] - crop_width - remainder]
else:
return x[crop_width : x.shape[0] - crop_width - remainder]
| 38.571429 | 69 | 0.618519 | 45 | 270 | 3.555556 | 0.355556 | 0.225 | 0.1875 | 0.1 | 0.45 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0.033175 | 0.218519 | 270 | 6 | 70 | 45 | 0.725118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
e5690f5fa0281d0546846bab756ee6fd0919c8df | 474 | py | Python | packages/alicebot-adapter-dingtalk/alicebot/adapter/dingtalk/exceptions.py | st1020/alicebot | 955c159901c278d33422f531b6c7e68ab0490ea3 | [
"MIT"
] | 1 | 2021-09-04T08:36:55.000Z | 2021-09-04T08:36:55.000Z | packages/alicebot-adapter-dingtalk/alicebot/adapter/dingtalk/exceptions.py | st1020/alicebot | 955c159901c278d33422f531b6c7e68ab0490ea3 | [
"MIT"
] | null | null | null | packages/alicebot-adapter-dingtalk/alicebot/adapter/dingtalk/exceptions.py | st1020/alicebot | 955c159901c278d33422f531b6c7e68ab0490ea3 | [
"MIT"
] | null | null | null | """
=================
DingTalk 异常
=================
"""
from alicebot.exceptions import AdapterException, AdapterTimeout
class DingTalkException(AdapterException):
"""
DingTalk 异常基类。
"""
pass
class NetworkError(DingTalkException):
"""
网络异常。
"""
pass
class WebhookExpiredError(DingTa... | 13.542857 | 64 | 0.590717 | 32 | 474 | 8.75 | 0.625 | 0.096429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234177 | 474 | 34 | 65 | 13.941176 | 0.77135 | 0.200422 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.444444 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e5750996635048cf60f54f912763ddd0b84ff89f | 1,918 | py | Python | awards/migrations/0002_auto_20190908_1128.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | null | null | null | awards/migrations/0002_auto_20190908_1128.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | 7 | 2020-06-05T22:53:10.000Z | 2022-02-10T08:29:14.000Z | awards/migrations/0002_auto_20190908_1128.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-09-08 11:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20190908_1128'),
('awards', '0001_initial'),
]
operations = [
migrations.AddFiel... | 35.518519 | 114 | 0.566215 | 187 | 1,918 | 5.73262 | 0.320856 | 0.16791 | 0.214552 | 0.251866 | 0.625 | 0.625 | 0.429104 | 0.429104 | 0.382463 | 0.382463 | 0 | 0.033309 | 0.29562 | 1,918 | 53 | 115 | 36.188679 | 0.760178 | 0.023462 | 0 | 0.446809 | 1 | 0 | 0.099947 | 0.012293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.106383 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e585c8ece12ecaff106f9127b6fbc25d32bf48ad | 480 | py | Python | blackjack-card-game-template/card.py | rnddave/python-blackjack-card-game | 46ef64bbf525278bcd7f933da7d239dec9404193 | [
"Apache-2.0"
] | null | null | null | blackjack-card-game-template/card.py | rnddave/python-blackjack-card-game | 46ef64bbf525278bcd7f933da7d239dec9404193 | [
"Apache-2.0"
] | null | null | null | blackjack-card-game-template/card.py | rnddave/python-blackjack-card-game | 46ef64bbf525278bcd7f933da7d239dec9404193 | [
"Apache-2.0"
] | null | null | null | class Card:
SUIT_SYMBOLS = {
0: u"\u2666", # diamonds
1: u"\u2665", # hearts
2: u"\u2663", # clubs
3: u"\u2660" # spades
}
VALUE_NAMES = {
1: "A",
2: "2",
3: "3",
4: "4",
5: "5",
6: "6",
7: "7",
8: "8",
... | 16 | 33 | 0.316667 | 56 | 480 | 2.535714 | 0.696429 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188285 | 0.502083 | 480 | 29 | 34 | 16.551724 | 0.405858 | 0.058333 | 0 | 0.076923 | 0 | 0 | 0.082774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e58b007925780f1f392be4097783707403d8e630 | 752 | py | Python | week4/exam/exam1.py | sdanil-ops/stepik-beegeek-python | 02302ab85d581962a82cbce766b7b284d4c5491e | [
"MIT"
] | null | null | null | week4/exam/exam1.py | sdanil-ops/stepik-beegeek-python | 02302ab85d581962a82cbce766b7b284d4c5491e | [
"MIT"
] | null | null | null | week4/exam/exam1.py | sdanil-ops/stepik-beegeek-python | 02302ab85d581962a82cbce766b7b284d4c5491e | [
"MIT"
] | 1 | 2021-08-18T00:58:27.000Z | 2021-08-18T00:58:27.000Z | # -----------------------------------------------------------
# Copyright (c) 2021. Danil Smirnov
# Write a program that determines whether a year with a given
# number ends with two zeros. If the year ends, then output "YES",
# otherwise output "NO".Write a program that determines whether
# a year wi... | 37.6 | 69 | 0.554521 | 94 | 752 | 4.287234 | 0.43617 | 0.052109 | 0.064516 | 0.084367 | 0.565757 | 0.565757 | 0.565757 | 0.565757 | 0.565757 | 0.565757 | 0 | 0.019934 | 0.199468 | 752 | 20 | 70 | 37.6 | 0.649502 | 0.62367 | 0 | 0 | 0 | 0 | 0.047794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.625 | 0.125 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
e591ea6d920b2d71cbba55521ed3a212c74255c9 | 288 | py | Python | util.py | cyrex562/JanesVoyages3 | e66deefccf371fee9ad7e5907732b96b87734db6 | [
"MIT"
] | null | null | null | util.py | cyrex562/JanesVoyages3 | e66deefccf371fee9ad7e5907732b96b87734db6 | [
"MIT"
] | null | null | null | util.py | cyrex562/JanesVoyages3 | e66deefccf371fee9ad7e5907732b96b87734db6 | [
"MIT"
] | null | null | null | import pathlib
def get_top_dir() -> pathlib.Path:
return pathlib.Path(__file__).parent.parent.parent.absolute()
def get_local_db_path() -> pathlib.PurePath:
top_path = get_top_dir()
db_file_path = top_path.joinpath("data/sqlite.db")
return db_file_path
# END OF FILE
| 20.571429 | 65 | 0.729167 | 44 | 288 | 4.386364 | 0.431818 | 0.062176 | 0.093264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 288 | 13 | 66 | 22.153846 | 0.794239 | 0.038194 | 0 | 0 | 0 | 0 | 0.050909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e5cfc4ee5d0610ac6284d078e338aed2ab261e67 | 147 | py | Python | Spartacus/npython/console.py | wind39/spartacus-csharp | 66968293e089ae385a7ba048b5b57f80ce81c1f7 | [
"MIT"
] | 3 | 2017-05-11T08:08:16.000Z | 2018-03-20T11:16:10.000Z | Spartacus/npython/console.py | wind39/spartacus-csharp | 66968293e089ae385a7ba048b5b57f80ce81c1f7 | [
"MIT"
] | 1 | 2017-05-21T00:40:34.000Z | 2017-05-21T00:40:34.000Z | Spartacus/npython/console.py | wind39/spartacus-csharp | 66968293e089ae385a7ba048b5b57f80ce81c1f7 | [
"MIT"
] | 2 | 2017-05-22T13:20:10.000Z | 2021-05-05T08:50:26.000Z | import clr
from System import Console
Console.Write("Digite o seu nome: ")
v_nome = Console.ReadLine()
Console.WriteLine("Ola, " + v_nome + ".")
| 18.375 | 41 | 0.707483 | 21 | 147 | 4.857143 | 0.666667 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14966 | 147 | 7 | 42 | 21 | 0.816 | 0 | 0 | 0 | 0 | 0 | 0.171233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
e5e762521bc86c52dee876514bb919deaa993360 | 197 | py | Python | tests/versioning/testcases.py | flavors/django-graphql-persist | ff9acf108961f68831126c0f2d6e31b8b562390d | [
"MIT"
] | 24 | 2018-04-14T03:07:11.000Z | 2021-11-08T12:04:09.000Z | tests/versioning/testcases.py | urantialife/django-graphql-persist | ff9acf108961f68831126c0f2d6e31b8b562390d | [
"MIT"
] | 1 | 2018-10-02T18:45:49.000Z | 2018-10-02T18:45:49.000Z | tests/versioning/testcases.py | urantialife/django-graphql-persist | ff9acf108961f68831126c0f2d6e31b8b562390d | [
"MIT"
] | 5 | 2018-07-02T07:03:54.000Z | 2020-06-17T01:42:25.000Z | from django.test import RequestFactory, testcases
class VersioningTestsCase(testcases.TestCase):
def setUp(self):
self.request_factory = RequestFactory()
self.version = 'v1'
| 21.888889 | 49 | 0.720812 | 20 | 197 | 7.05 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.192893 | 197 | 8 | 50 | 24.625 | 0.880503 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
f905dca165092669a3553862b87560fe3221f275 | 347 | py | Python | gui/plot_lib.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 6 | 2015-04-03T02:25:28.000Z | 2021-11-17T21:42:59.000Z | gui/plot_lib.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 3 | 2020-02-11T22:29:15.000Z | 2021-06-10T17:44:31.000Z | gui/plot_lib.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""This file initializes the matplotlib."""
import matplotlib
# We need to select a non interactive backend for matplotlib.
matplotlib.use("Agg")
# This is exported for others to use.
# pylint: disable=unused-import, g-import-not-at-top
import matplotlib.pyplot as plt
# pylint: enable=unused-i... | 24.785714 | 61 | 0.755043 | 54 | 347 | 4.851852 | 0.648148 | 0.122137 | 0.099237 | 0.145038 | 0.206107 | 0.206107 | 0.206107 | 0 | 0 | 0 | 0 | 0 | 0.129683 | 347 | 13 | 62 | 26.692308 | 0.86755 | 0.73487 | 0 | 0 | 0 | 0 | 0.036585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f91a74802a1e00de947fbcf68fe1f1032862a8b9 | 226 | py | Python | roles/__init__.py | ubccapico/python-canvasapi-base | 1ff6a6c6ccb229d20d9792f8d8c1b2de4c3d126c | [
"MIT"
] | 4 | 2018-07-13T14:37:54.000Z | 2021-05-17T08:48:44.000Z | roles/__init__.py | ubccapico/python-canvasapi-base | 1ff6a6c6ccb229d20d9792f8d8c1b2de4c3d126c | [
"MIT"
] | null | null | null | roles/__init__.py | ubccapico/python-canvasapi-base | 1ff6a6c6ccb229d20d9792f8d8c1b2de4c3d126c | [
"MIT"
] | null | null | null | from CanvasAPI.util import callhelper
from CanvasAPI import instance
__all__ = ["get"]
def get(account_id):
'''Gets a course'''
url_str = "accounts/{}/roles".format(account_id)
return instance.all_pages(url_str)
| 22.6 | 52 | 0.721239 | 31 | 226 | 4.967742 | 0.677419 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154867 | 226 | 9 | 53 | 25.111111 | 0.806283 | 0.057522 | 0 | 0 | 0 | 0 | 0.096618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f91c5d9cae361466e564406c4e5047ce91d1c17b | 1,045 | py | Python | app/core/routes.py | Harry-Lees/Aston-Unofficial-Bot | 10a4e5ed40793d3c9ade8b7cc49fe635b4b437e3 | [
"MIT"
] | 2 | 2020-11-14T20:32:23.000Z | 2020-11-18T18:06:19.000Z | app/core/routes.py | Harry-Lees/Aston-Unofficial-Bot | 10a4e5ed40793d3c9ade8b7cc49fe635b4b437e3 | [
"MIT"
] | 15 | 2020-11-03T21:27:21.000Z | 2020-11-21T18:59:17.000Z | app/core/routes.py | Harry-Lees/Aston-Unofficial-Bot | 10a4e5ed40793d3c9ade8b7cc49fe635b4b437e3 | [
"MIT"
] | 1 | 2021-01-12T22:26:11.000Z | 2021-01-12T22:26:11.000Z | from flask import Blueprint, render_template
from app.extensions import database
from .models import Announcements
blueprint = Blueprint('core', __name__, template_folder = 'templates')
@blueprint.route('/')
def index():
announcements = Announcements.query.all()
return render_template('index.html', announce... | 24.302326 | 73 | 0.705263 | 119 | 1,045 | 6.042017 | 0.352941 | 0.1363 | 0.166898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.15311 | 1,045 | 43 | 74 | 24.302326 | 0.80565 | 0 | 0 | 0 | 0 | 0 | 0.239962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0.142857 | 0.535714 | 0.285714 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
f9255e92532548ec3ead628b0291c08d5043253a | 191 | py | Python | data_collection/gazette/spiders/sc_mondai.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 454 | 2018-04-07T03:32:57.000Z | 2020-08-17T19:56:22.000Z | data_collection/gazette/spiders/sc_mondai.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 254 | 2020-08-18T14:09:43.000Z | 2022-03-28T11:30:51.000Z | data_collection/gazette/spiders/sc_mondai.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 183 | 2018-04-11T15:09:37.000Z | 2020-08-15T18:55:11.000Z | from gazette.spiders.base.fecam import FecamGazetteSpider
class ScMondaiSpider(FecamGazetteSpider):
name = "sc_mondai"
FECAM_QUERY = "cod_entidade:168"
TERRITORY_ID = "4211009"
| 23.875 | 57 | 0.764398 | 21 | 191 | 6.761905 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0.151832 | 191 | 7 | 58 | 27.285714 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.167539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
f92a2b24e484afbd02983700f9886dca8644bcbd | 216 | py | Python | src/connection.py | Leoyll/PythonDemo | e3e8e9110a31c65aa6c766e6a6528bf1829592f2 | [
"MIT"
] | null | null | null | src/connection.py | Leoyll/PythonDemo | e3e8e9110a31c65aa6c766e6a6528bf1829592f2 | [
"MIT"
] | null | null | null | src/connection.py | Leoyll/PythonDemo | e3e8e9110a31c65aa6c766e6a6528bf1829592f2 | [
"MIT"
] | null | null | null | import mysql.connector
def getConnection(database, host, port, user, passwd):
return mysql.connector.connect(
host=host,
port=port,
user=user,
passwd=passwd,
database=database
) | 21.6 | 54 | 0.652778 | 24 | 216 | 5.875 | 0.5 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 216 | 10 | 55 | 21.6 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.111111 | 0.111111 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
005b96d8454d234fe62c7286829b5872066e3f47 | 424 | py | Python | day_1/combinatorics.py | anishLearnsToCode/python-workshop-7 | 2d5933be2629600f5f9e8efea58403421737a299 | [
"MIT"
] | 4 | 2020-12-22T14:28:22.000Z | 2021-09-15T20:28:15.000Z | day_1/combinatorics.py | anishLearnsToCode/python-workshop-7 | 2d5933be2629600f5f9e8efea58403421737a299 | [
"MIT"
] | null | null | null | day_1/combinatorics.py | anishLearnsToCode/python-workshop-7 | 2d5933be2629600f5f9e8efea58403421737a299 | [
"MIT"
] | null | null | null | def factorial(n):
result = 1
for number in range(1, n + 1):
result *= number
return result
# nPr = n! / (n - r)!
# 4 r=2
def permutation(n, r):
return factorial(n) // factorial(n - r)
# nCr = nPr / r!
def combination(n, r):
return permutation(n, r) // factorial(r)
print(combination(4, ... | 17.666667 | 44 | 0.606132 | 66 | 424 | 3.893939 | 0.30303 | 0.038911 | 0.330739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045593 | 0.224057 | 424 | 23 | 45 | 18.434783 | 0.735562 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.142857 | 0.428571 | 0.357143 | 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 | 0 | 0 | 0 | 3 |
00a5ca470c2d81b493f982f49541de1528a68bdb | 839 | py | Python | fingerExercises/fingerExercises-03/03.5-finger.apply-to-each-01.py | sodaPhix/MITx-6.00.1x | 8629e227d250cf6c2d5ca56944668b5796ce78cf | [
"MIT"
] | 1 | 2019-10-06T22:58:39.000Z | 2019-10-06T22:58:39.000Z | fingerExercises/fingerExercises-03/03.5-finger.apply-to-each-01.py | sodaPhix/MITx-6.00.1x | 8629e227d250cf6c2d5ca56944668b5796ce78cf | [
"MIT"
] | null | null | null | fingerExercises/fingerExercises-03/03.5-finger.apply-to-each-01.py | sodaPhix/MITx-6.00.1x | 8629e227d250cf6c2d5ca56944668b5796ce78cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 7 02:58:39 2019
@author: sodatab
MITx: 6.00.1x
"""
"""
03.5-Finger Apply to Each 01
-----------------------------
Here is the code for a function applyToEach:
def applyToEach(L, f):
for i in range(len(L)):
L[i] = f(L[i])
Assume tha... | 20.975 | 125 | 0.669845 | 133 | 839 | 4.225564 | 0.639098 | 0.007117 | 0.035587 | 0.039146 | 0.042705 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04699 | 0.188319 | 839 | 39 | 126 | 21.512821 | 0.778267 | 0.133492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
00b5a2748f955ac91e1dbc0688fcfbe7cd95c8a2 | 101 | py | Python | Estudotkinter.py | renato-felix/PythonCursoEmVideo | 267b862c7afdde6d5f7e630e0a203fe923ca74a8 | [
"MIT"
] | null | null | null | Estudotkinter.py | renato-felix/PythonCursoEmVideo | 267b862c7afdde6d5f7e630e0a203fe923ca74a8 | [
"MIT"
] | null | null | null | Estudotkinter.py | renato-felix/PythonCursoEmVideo | 267b862c7afdde6d5f7e630e0a203fe923ca74a8 | [
"MIT"
] | null | null | null | from tkinter import *
menu_inicial = Tk()
menu_inicial.title('Primeiro App')
menu_inicial.mainloop() | 20.2 | 34 | 0.782178 | 14 | 101 | 5.428571 | 0.714286 | 0.434211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 101 | 5 | 35 | 20.2 | 0.835165 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 3 |
00eb4f32c4932519f760835335dba58d9e2508e0 | 143 | py | Python | Python/Topics/For loop/Lucky 7/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 5 | 2020-08-29T15:15:31.000Z | 2022-03-01T18:22:34.000Z | Python/Topics/For loop/Lucky 7/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | null | null | null | Python/Topics/For loop/Lucky 7/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 1 | 2020-12-02T11:13:14.000Z | 2020-12-02T11:13:14.000Z | n = int(input())
numbers = []
for _ in range(n):
numbers.append(int(input()))
for i in numbers:
if i % 7 == 0:
print(i ** 2)
| 14.3 | 32 | 0.517483 | 23 | 143 | 3.173913 | 0.608696 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.293706 | 143 | 9 | 33 | 15.888889 | 0.693069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 3 |
00ebfda68743eb0896a9f7c6e7b75691f5cd37ba | 93 | py | Python | 04_Selenium/01_Introduction/FireFoxTest.py | twiindan/selenium_lessons | 798557e8f584f9e6655414c13f232017483f0439 | [
"Apache-2.0"
] | null | null | null | 04_Selenium/01_Introduction/FireFoxTest.py | twiindan/selenium_lessons | 798557e8f584f9e6655414c13f232017483f0439 | [
"Apache-2.0"
] | null | null | null | 04_Selenium/01_Introduction/FireFoxTest.py | twiindan/selenium_lessons | 798557e8f584f9e6655414c13f232017483f0439 | [
"Apache-2.0"
] | 1 | 2020-07-16T09:49:47.000Z | 2020-07-16T09:49:47.000Z | from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://google.com") | 23.25 | 32 | 0.774194 | 12 | 93 | 6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086022 | 93 | 4 | 32 | 23.25 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
daa5724f135c7afbdb6e29714e046459cbfc63de | 114 | py | Python | tools/pythonpkg/prep.py | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | 2 | 2020-01-07T17:19:02.000Z | 2020-01-09T22:04:04.000Z | tools/pythonpkg/prep.py | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | null | null | null | tools/pythonpkg/prep.py | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | null | null | null | import duckdb
con = duckdb.connect('')
print(con.cursor().execute('SELECT CAST(? AS INTEGER)', b'42').fetchall())
| 28.5 | 74 | 0.692982 | 16 | 114 | 4.9375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.087719 | 114 | 3 | 75 | 38 | 0.740385 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dab17b2915f83a6050986ec0713e7405431f71c4 | 243 | py | Python | Module 3/Chapter 6/ch6_7.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | 50 | 2016-12-11T13:49:01.000Z | 2022-03-20T19:47:55.000Z | Module 3/Chapter 6/ch6_7.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | null | null | null | Module 3/Chapter 6/ch6_7.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | 40 | 2017-06-14T14:02:48.000Z | 2021-10-14T06:25:00.000Z | import nltk
sentences1 = nltk.corpus.treebank.tagged_sents()[17]
print(nltk.ne_chunk(sentences1, binary=True))
sentences2 = nltk.corpus.treebank.tagged_sents()[7]
print(nltk.ne_chunk(sentences2, binary=True))
print(nltk.ne_chunk(sentences2))
| 30.375 | 52 | 0.798354 | 35 | 243 | 5.4 | 0.428571 | 0.142857 | 0.174603 | 0.253968 | 0.582011 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034935 | 0.057613 | 243 | 7 | 53 | 34.714286 | 0.790393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
dadcabc87f196ff6c3314491bebf5c92b17c1058 | 1,717 | py | Python | mojo_0_0_5.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | 1 | 2016-05-27T19:58:53.000Z | 2016-05-27T19:58:53.000Z | mojo_0_0_5.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | null | null | null | mojo_0_0_5.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | null | null | null | from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class MOJOInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing MOJO 0.0.5 on %s" % (node.alias))
node.ssh.execute('wget -c -P /opt/software/mojo http://dmel... | 81.761905 | 173 | 0.721607 | 302 | 1,717 | 4.039735 | 0.281457 | 0.02623 | 0.12623 | 0.065574 | 0.590984 | 0.565574 | 0.565574 | 0.565574 | 0.537705 | 0.514754 | 0 | 0.058527 | 0.074549 | 1,717 | 20 | 174 | 85.85 | 0.709251 | 0 | 0 | 0 | 0 | 0.647059 | 0.710542 | 0.546884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
daf11bda6ac58383501ec112948f69320c971e3e | 51 | py | Python | nasdaq_val/__init__.py | thunderoy/Nasdaq-Value | b2e4553cabf187ccd82eb1e3f4d11f7cecec4603 | [
"MIT"
] | null | null | null | nasdaq_val/__init__.py | thunderoy/Nasdaq-Value | b2e4553cabf187ccd82eb1e3f4d11f7cecec4603 | [
"MIT"
] | null | null | null | nasdaq_val/__init__.py | thunderoy/Nasdaq-Value | b2e4553cabf187ccd82eb1e3f4d11f7cecec4603 | [
"MIT"
] | null | null | null | from nasdaq_gui import window
__all__ = [window, ]
| 17 | 29 | 0.764706 | 7 | 51 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 2 | 30 | 25.5 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 3 |
daf13a58faa33f31c9bd5879b7cfccdc10cd33e9 | 306 | py | Python | information_routes.py | tiagofsv95/trabalho_final | 202aa26adeae4ec0eb3777c07fadce9a61352490 | [
"MIT"
] | null | null | null | information_routes.py | tiagofsv95/trabalho_final | 202aa26adeae4ec0eb3777c07fadce9a61352490 | [
"MIT"
] | null | null | null | information_routes.py | tiagofsv95/trabalho_final | 202aa26adeae4ec0eb3777c07fadce9a61352490 | [
"MIT"
] | null | null | null | from flask import request
from flask import jsonify
from datetime import datetime
from flask import make_response
import sqlite3
from sqlite3 import Error
import os
import uuid
# 1. Buscar informaçoes
def get_info():
resp = make_response(jsonify({'mensagem': 'APPLICATION UP.'}), 200)
return resp
| 21.857143 | 71 | 0.777778 | 43 | 306 | 5.465116 | 0.55814 | 0.114894 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023346 | 0.160131 | 306 | 13 | 72 | 23.538462 | 0.891051 | 0.068627 | 0 | 0 | 0 | 0 | 0.081272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.727273 | 0 | 0.909091 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dafb3c4ae3ec561c934fece252856b64b4296df1 | 900 | py | Python | src/express-route-cross-connection/azext_expressroutecrossconnection/_client_factory.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/express-route-cross-connection/azext_expressroutecrossconnection/_client_factory.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/express-route-cross-connection/azext_expressroutecrossconnection/_client_factory.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 47.368421 | 94 | 0.66 | 101 | 900 | 5.435644 | 0.475248 | 0.065574 | 0.123862 | 0.125683 | 0.393443 | 0.200364 | 0.200364 | 0.200364 | 0.200364 | 0.200364 | 0 | 0 | 0.087778 | 900 | 18 | 95 | 50 | 0.668697 | 0.373333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
97055c670a66eccc0b18db082789386ce01151de | 58 | py | Python | dataset/__init__.py | inflation/wgan | a546251fd4c825a95e075fea0dac7abe301b0b81 | [
"MIT"
] | 2 | 2017-03-12T07:55:35.000Z | 2019-12-04T06:09:10.000Z | dataset/__init__.py | inflation/wgan | a546251fd4c825a95e075fea0dac7abe301b0b81 | [
"MIT"
] | null | null | null | dataset/__init__.py | inflation/wgan | a546251fd4c825a95e075fea0dac7abe301b0b81 | [
"MIT"
] | null | null | null | from .images import ImageDataset
__all__ = [ImageDataset] | 19.333333 | 32 | 0.810345 | 6 | 58 | 7.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 58 | 3 | 33 | 19.333333 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 3 |
9706ce06b1129ce1795a1234c5ae6bee58da8f77 | 867 | py | Python | APIModel/views.py | bsprashanth1/recipe-app-api | 904c956d15554d269dc709600851b862adc75adb | [
"MIT"
] | null | null | null | APIModel/views.py | bsprashanth1/recipe-app-api | 904c956d15554d269dc709600851b862adc75adb | [
"MIT"
] | null | null | null | APIModel/views.py | bsprashanth1/recipe-app-api | 904c956d15554d269dc709600851b862adc75adb | [
"MIT"
] | null | null | null | from django.shortcuts import render
from requests import Response
from rest_framework import generics, request
from rest_framework.decorators import api_view
from rest_framework.reverse import reverse
from APIModel.models import UIModel
from APIModel.serializers import UISerializer
class UIList(generics.ListCreateAP... | 27.967742 | 56 | 0.793541 | 90 | 867 | 7.555556 | 0.422222 | 0.058824 | 0.117647 | 0.147059 | 0.335294 | 0.335294 | 0.335294 | 0.335294 | 0 | 0 | 0 | 0 | 0.137255 | 867 | 30 | 57 | 28.9 | 0.909091 | 0.279123 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.4375 | 0 | 0.875 | 0.0625 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
970accc4035945a22c0b9f512d5ee04a456ac44d | 631 | py | Python | web_store_app/users/forms.py | ikolokotronis/Web-Store-App | 366f17f42f920418a4acd7e9769d548aaee2b015 | [
"MIT"
] | null | null | null | web_store_app/users/forms.py | ikolokotronis/Web-Store-App | 366f17f42f920418a4acd7e9769d548aaee2b015 | [
"MIT"
] | null | null | null | web_store_app/users/forms.py | ikolokotronis/Web-Store-App | 366f17f42f920418a4acd7e9769d548aaee2b015 | [
"MIT"
] | null | null | null | from django import forms
from django.core.exceptions import ValidationError
class RegistrationForm(forms.Form):
username = forms.CharField(label='Username')
first_name = forms.CharField(label='First name')
last_name = forms.CharField(label='Last name')
email = forms.EmailField(label='E-mail')
phon... | 45.071429 | 84 | 0.757528 | 74 | 631 | 6.418919 | 0.432432 | 0.176842 | 0.24 | 0.096842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001802 | 0.120444 | 631 | 13 | 85 | 48.538462 | 0.854054 | 0 | 0 | 0 | 0 | 0 | 0.150555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.181818 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
970eb7d0afd8fd933fbd43b81c17ae4aa5800e9b | 7,919 | py | Python | lib/radiocorona/frontend/tests/test_voting.py | JackBortoneLab/radiocorona | 981851d8bc5d3427c72395f64a346ab3e8890e6d | [
"Apache-2.0"
] | 108 | 2015-07-01T01:57:24.000Z | 2019-07-09T12:29:57.000Z | reddit/tests/test_voting.py | priyadhoundiyal/django_reddit | 9a89deb0e3a4028f3e96c806d7288c3163da2223 | [
"Apache-2.0"
] | 1 | 2020-02-17T15:11:04.000Z | 2020-02-17T15:11:04.000Z | reddit/tests/test_voting.py | priyadhoundiyal/django_reddit | 9a89deb0e3a4028f3e96c806d7288c3163da2223 | [
"Apache-2.0"
] | 32 | 2015-11-21T16:33:58.000Z | 2019-06-03T11:16:43.000Z | import json
from django.core.urlresolvers import reverse
from django.http import HttpResponseNotAllowed, HttpResponseForbidden, \
HttpResponseBadRequest
from django.test import Client, TestCase
from reddit.models import Comment, Submission, Vote
from django.contrib.auth.models import User
from users.models import R... | 38.629268 | 79 | 0.529991 | 777 | 7,919 | 5.27027 | 0.109395 | 0.029304 | 0.020513 | 0.031746 | 0.75116 | 0.75116 | 0.708913 | 0.684737 | 0.684737 | 0.650794 | 0 | 0.010667 | 0.348908 | 7,919 | 204 | 80 | 38.818627 | 0.783553 | 0 | 0 | 0.668478 | 0 | 0 | 0.082334 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 1 | 0.054348 | false | 0.005435 | 0.038043 | 0 | 0.097826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
970ed672569661c4efd4190bab8f3d854d719d57 | 272 | py | Python | Exercise_7_3.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | Exercise_7_3.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | Exercise_7_3.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | #Multiple of ten:
number_of_ten = input("Please enter a number to check whether its multiple of 10 or not:")
if (int(number_of_ten) % 10) == 0:
print("Yes, your",number_of_ten,"is multiple of ten.")
else:
print("No, your",number_of_ten,"is not multiple of ten.") | 34 | 90 | 0.698529 | 49 | 272 | 3.714286 | 0.489796 | 0.192308 | 0.241758 | 0.164835 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022026 | 0.165441 | 272 | 8 | 91 | 34 | 0.779736 | 0.058824 | 0 | 0 | 0 | 0 | 0.484375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
972e7ed31007d09c9240110993c654e2b325d1f0 | 55 | py | Python | gcmd/cli/utils/__init__.py | scorbett111/py-rename-repo | 9b1a52fd2b59d7cebd29eda20fca8d3d47d11bfd | [
"MIT"
] | null | null | null | gcmd/cli/utils/__init__.py | scorbett111/py-rename-repo | 9b1a52fd2b59d7cebd29eda20fca8d3d47d11bfd | [
"MIT"
] | null | null | null | gcmd/cli/utils/__init__.py | scorbett111/py-rename-repo | 9b1a52fd2b59d7cebd29eda20fca8d3d47d11bfd | [
"MIT"
] | null | null | null | from .utils import (
splice_argv,
remove_argv
) | 13.75 | 20 | 0.672727 | 7 | 55 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254545 | 55 | 4 | 21 | 13.75 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 3 |
973184108935a6292f945fd2cedfcdb6de716514 | 271 | py | Python | esnpolimi_mgmt/templatetags/custom_filters.py | esnpolimi/esnpolimi_mgmt | 075762d319a86a12470688ef2b774b110ff972a0 | [
"BSD-3-Clause"
] | null | null | null | esnpolimi_mgmt/templatetags/custom_filters.py | esnpolimi/esnpolimi_mgmt | 075762d319a86a12470688ef2b774b110ff972a0 | [
"BSD-3-Clause"
] | 11 | 2021-04-07T11:17:39.000Z | 2021-04-07T11:41:53.000Z | esnpolimi_mgmt/templatetags/custom_filters.py | esnpolimi/esnpolimi_mgmt | 075762d319a86a12470688ef2b774b110ff972a0 | [
"BSD-3-Clause"
] | null | null | null | from django import template
register = template.Library()
@register.filter
def get_fields(obj):
return [(field.name, field.value_to_string(obj)) for field in obj._meta.fields]
@register.filter
def has_perm(user, permission):
return user.has_perm(permission)
| 19.357143 | 83 | 0.760148 | 39 | 271 | 5.128205 | 0.615385 | 0.14 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132841 | 271 | 13 | 84 | 20.846154 | 0.851064 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
9741191579b1e4d68dc779e2701f1654cb2b0c9a | 84 | py | Python | tests/test_clean.py | imnetdb/imnetdb | f7e1ef41be2f3f2089c666dbf602ea99112bf516 | [
"Apache-2.0"
] | 5 | 2019-03-13T20:34:36.000Z | 2020-04-18T15:35:13.000Z | tests/test_clean.py | imnetdb/imnetdb | f7e1ef41be2f3f2089c666dbf602ea99112bf516 | [
"Apache-2.0"
] | 2 | 2019-02-24T18:22:10.000Z | 2019-05-07T10:35:32.000Z | tests/test_clean.py | imnetdb/imnetdb | f7e1ef41be2f3f2089c666dbf602ea99112bf516 | [
"Apache-2.0"
] | 2 | 2019-04-17T23:42:55.000Z | 2019-04-20T15:55:43.000Z |
def test_clean(imnetdb):
imnetdb.wipe_database()
imnetdb.ensure_database()
| 16.8 | 29 | 0.738095 | 10 | 84 | 5.9 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 84 | 4 | 30 | 21 | 0.830986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97838d60df120e15b28ada82202be0402ec6e2f9 | 623 | py | Python | gbart/modified_bartpy/samplers/sigma.py | AugusHsu/gbart | e2e267eb3846783398d530bf7c4f835a7330e226 | [
"MIT"
] | 3 | 2019-11-05T10:00:43.000Z | 2021-12-16T04:37:29.000Z | gbart/modified_bartpy/samplers/sigma.py | AugusHsu/gbart | e2e267eb3846783398d530bf7c4f835a7330e226 | [
"MIT"
] | null | null | null | gbart/modified_bartpy/samplers/sigma.py | AugusHsu/gbart | e2e267eb3846783398d530bf7c4f835a7330e226 | [
"MIT"
] | null | null | null | import numpy as np
from gbart.modified_bartpy.model import Model
from gbart.modified_bartpy.sigma import Sigma
from gbart.modified_bartpy.samplers.sampler import Sampler
class SigmaSampler(Sampler):
def step(self, model: Model, sigma: Sigma) -> None:
sigma.set_value(self.sample(model, sigma))
def s... | 34.611111 | 84 | 0.701445 | 88 | 623 | 4.863636 | 0.454545 | 0.063084 | 0.119159 | 0.161215 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.176565 | 623 | 17 | 85 | 36.647059 | 0.822612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9786f5c1b92ca623ae69ccb0d243bd24274a4a55 | 482 | py | Python | matrix_multiplication/matmul.py | vaibhawvipul/performance-engineering | 66162162fba4fc891fbfa8a82bd7b5bc923ebbd4 | [
"MIT"
] | 3 | 2021-11-15T10:57:27.000Z | 2022-03-21T14:40:37.000Z | matrix_multiplication/matmul.py | cazzhd/performance-engineering | 66162162fba4fc891fbfa8a82bd7b5bc923ebbd4 | [
"MIT"
] | null | null | null | matrix_multiplication/matmul.py | cazzhd/performance-engineering | 66162162fba4fc891fbfa8a82bd7b5bc923ebbd4 | [
"MIT"
] | 1 | 2021-06-14T02:14:50.000Z | 2021-06-14T02:14:50.000Z | import sys, random
from tqdm import tqdm
from time import *
n = 4096
A = [[random.random()
for row in range(n)]
for col in range(n)]
B = [[random.random()
for row in range(n)]
for col in range(n)]
C = [[0 for row in range(n)]
for col in range(n)]
print("calculating ... \n")
start = ti... | 17.214286 | 40 | 0.543568 | 87 | 482 | 3.011494 | 0.287356 | 0.206107 | 0.244275 | 0.167939 | 0.412214 | 0.412214 | 0.412214 | 0.412214 | 0.412214 | 0.412214 | 0 | 0.020115 | 0.278008 | 482 | 27 | 41 | 17.851852 | 0.732759 | 0 | 0 | 0.25 | 0 | 0 | 0.047718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0.1 | 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 | 0 | 0 | 3 |
97954d5062e1afeab84a8466cf65ed44e8c3b12b | 312 | py | Python | gui/Uniform.py | brianjimenez/emol | b789b85b40a99247f008fb7cafa0d019d142cd3c | [
"MIT"
] | null | null | null | gui/Uniform.py | brianjimenez/emol | b789b85b40a99247f008fb7cafa0d019d142cd3c | [
"MIT"
] | null | null | null | gui/Uniform.py | brianjimenez/emol | b789b85b40a99247f008fb7cafa0d019d142cd3c | [
"MIT"
] | null | null | null | '''
@author: Brian Jimenez-Garcia
@contact: brian.jimenez@bsc.es
'''
from gui import Color
from gui.ColorMap import ColorMap
class Uniform(ColorMap):
def __init__(self, color):
super(Uniform, self).__init__()
self.color = color
def get_color(self):
return self.color
| 17.333333 | 39 | 0.653846 | 39 | 312 | 5 | 0.512821 | 0.138462 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237179 | 312 | 17 | 40 | 18.352941 | 0.819328 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
97bfd2972981f75b4a220417974a7b11fe71959f | 177 | py | Python | help/apps.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | help/apps.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | 11 | 2020-03-24T15:29:46.000Z | 2022-03-11T23:14:48.000Z | help/apps.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class HelpConfig(AppConfig):
name = 'help`'
verbose_name = 'Help'
def ready(self):
# import assets.signals
pass
| 16.090909 | 33 | 0.632768 | 20 | 177 | 5.55 | 0.8 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276836 | 177 | 10 | 34 | 17.7 | 0.867188 | 0.118644 | 0 | 0 | 0 | 0 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c10d082e86abd8de8c11cce3f506ec07b92b52c1 | 188 | py | Python | python/write_message.py | karandiip/PythonCrashCourse | 8b699447d6e0595e62000640ba64a81174f37127 | [
"MIT"
] | null | null | null | python/write_message.py | karandiip/PythonCrashCourse | 8b699447d6e0595e62000640ba64a81174f37127 | [
"MIT"
] | null | null | null | python/write_message.py | karandiip/PythonCrashCourse | 8b699447d6e0595e62000640ba64a81174f37127 | [
"MIT"
] | null | null | null | filename = 'programming.txt'
with open(filename, 'w') as file_object:
file_object.write("I love programming.")
with open(filename) as file_o:
line = file_o.read()
print(line) | 23.5 | 44 | 0.696809 | 28 | 188 | 4.535714 | 0.571429 | 0.125984 | 0.251969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 188 | 8 | 45 | 23.5 | 0.814103 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c11b18557e3ac68e865d4cf0abb51250fbbb74f7 | 258 | py | Python | release/scripts/presets/sss/whole_milk.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 365 | 2015-02-10T15:10:55.000Z | 2022-03-03T15:50:51.000Z | release/scripts/presets/sss/whole_milk.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 45 | 2015-01-09T15:34:20.000Z | 2021-10-05T14:44:23.000Z | release/scripts/presets/sss/whole_milk.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | import bpy
material = (bpy.context.material.active_node_material if bpy.context.material.active_node_material else bpy.context.material)
material.subsurface_scattering.radius = 10.899, 6.575, 2.508
material.subsurface_scattering.color = 0.947, 0.931, 0.852
| 43 | 125 | 0.817829 | 40 | 258 | 5.125 | 0.55 | 0.146341 | 0.263415 | 0.234146 | 0.35122 | 0.35122 | 0 | 0 | 0 | 0 | 0 | 0.105042 | 0.077519 | 258 | 5 | 126 | 51.6 | 0.756303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c12f750a279d79a872374923f2725ae89d5967bc | 323 | py | Python | examples/docs_snippets/docs_snippets_tests/intro_tutorial_tests/basics/test_hello_cereal.py | souterjk/dagster | 8b744a4959bb04ff9587cfee82a796404fcbc89e | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets_tests/intro_tutorial_tests/basics/test_hello_cereal.py | souterjk/dagster | 8b744a4959bb04ff9587cfee82a796404fcbc89e | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets_tests/intro_tutorial_tests/basics/test_hello_cereal.py | souterjk/dagster | 8b744a4959bb04ff9587cfee82a796404fcbc89e | [
"Apache-2.0"
] | 1 | 2019-09-11T03:02:27.000Z | 2019-09-11T03:02:27.000Z | from docs_snippets.intro_tutorial.basics.single_solid_pipeline.hello_cereal import hello_cereal_job
from docs_snippets.intro_tutorial.test_util import patch_cereal_requests
@patch_cereal_requests
def test_tutorial_intro_tutorial_hello_world():
result = hello_cereal_job.execute_in_process()
assert result.succe... | 35.888889 | 99 | 0.873065 | 46 | 323 | 5.630435 | 0.543478 | 0.150579 | 0.123552 | 0.162162 | 0.223938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080495 | 323 | 8 | 100 | 40.375 | 0.872054 | 0 | 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 | 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 | 0 | 0 | 0 | 3 |
c141ecd0e683871aca3ffa1adafb68f0cf8371d8 | 2,906 | py | Python | onconet/transformers/video.py | harrivle/Mirai | ea2d4839f1f8b9f881798b819b2192ce2795bd5d | [
"MIT"
] | 37 | 2021-01-28T06:00:34.000Z | 2022-03-29T21:14:12.000Z | onconet/transformers/video.py | NkwamPhilip/Mirai | 70413de690da36c5878e2e6006711476e166bb1d | [
"MIT"
] | null | null | null | onconet/transformers/video.py | NkwamPhilip/Mirai | 70413de690da36c5878e2e6006711476e166bb1d | [
"MIT"
] | 14 | 2021-02-02T09:42:18.000Z | 2022-03-23T00:36:41.000Z | import random
import torchvision
from onconet.transformers.factory import RegisterImageTransformer
from onconet.transformers.abstract import Abstract_transformer
import pdb
@RegisterImageTransformer("scale_3d")
class Scale_3d(Abstract_transformer):
"""Given an array of PIL images, rescales
each image accordin... | 33.022727 | 95 | 0.67894 | 373 | 2,906 | 5.02681 | 0.230563 | 0.037333 | 0.034667 | 0.032 | 0.546667 | 0.539733 | 0.525867 | 0.394667 | 0.394667 | 0.3712 | 0 | 0.010941 | 0.213696 | 2,906 | 87 | 96 | 33.402299 | 0.809628 | 0.108741 | 0 | 0.307692 | 0 | 0 | 0.034279 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.230769 | false | 0 | 0.096154 | 0.115385 | 0.557692 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
c16cdfe67a57a720e41f4d1f6a82111d663200a5 | 149 | py | Python | tests/iac_integration/cdk/testdata/cdk_v2/python/app.py | zhuhaow/aws-sam-cli | 59d82ec6848b5a0cdd544d8ada838d4d34052971 | [
"Apache-2.0"
] | 2,959 | 2018-05-08T21:48:56.000Z | 2020-08-24T14:35:39.000Z | tests/iac_integration/cdk/testdata/cdk_v2/python/app.py | zhuhaow/aws-sam-cli | 59d82ec6848b5a0cdd544d8ada838d4d34052971 | [
"Apache-2.0"
] | 1,469 | 2018-05-08T22:44:28.000Z | 2020-08-24T20:19:24.000Z | tests/iac_integration/cdk/testdata/cdk_v2/python/app.py | zhuhaow/aws-sam-cli | 59d82ec6848b5a0cdd544d8ada838d4d34052971 | [
"Apache-2.0"
] | 642 | 2018-05-08T22:09:19.000Z | 2020-08-17T09:04:37.000Z | #!/usr/bin/env python3
from aws_cdk import App
from python.python_stack import PythonStack
app = App()
PythonStack(app, "TestStack")
app.synth()
| 13.545455 | 43 | 0.751678 | 22 | 149 | 5 | 0.636364 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.134228 | 149 | 10 | 44 | 14.9 | 0.844961 | 0.14094 | 0 | 0 | 0 | 0 | 0.070866 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c173eb432cb1c4f6be10f21db5d47c693972d855 | 564 | py | Python | attacks/single_key/nullattack.py | CrackerCat/RsaCtfTool | 4c2c22d15f9729fce161e4f4bc46e6fe9c53e820 | [
"Beerware"
] | 3,493 | 2015-03-10T19:45:52.000Z | 2022-03-31T09:09:36.000Z | attacks/single_key/nullattack.py | CrackerCat/RsaCtfTool | 4c2c22d15f9729fce161e4f4bc46e6fe9c53e820 | [
"Beerware"
] | 184 | 2017-04-29T21:48:04.000Z | 2022-03-29T19:35:55.000Z | attacks/single_key/nullattack.py | CrackerCat/RsaCtfTool | 4c2c22d15f9729fce161e4f4bc46e6fe9c53e820 | [
"Beerware"
] | 741 | 2016-03-08T12:50:03.000Z | 2022-03-31T02:46:25.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from attacks.abstract_attack import AbstractAttack
class Attack(AbstractAttack):
def __init__(self, timeout=60):
super().__init__(timeout)
self.speed = AbstractAttack.speed_enum["medium"]
def attack(self, publickey, cipher=[], progress=True):
... | 26.857143 | 85 | 0.643617 | 68 | 564 | 5.191176 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.241135 | 564 | 20 | 86 | 28.2 | 0.815421 | 0.322695 | 0 | 0 | 0 | 0 | 0.016997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c18e7a01af2605ae1dcddfe325c9cd26c94e4c65 | 283 | py | Python | property_management/property_management/doctype/add_new_properties/test_add_new_properties.py | hrgadeha/property_management | 87d273dc6009117f46f492b8952bf25447a5e0bb | [
"MIT"
] | 2 | 2020-06-15T13:32:55.000Z | 2021-04-25T17:12:47.000Z | property_management/property_management/doctype/add_new_properties/test_add_new_properties.py | hrgadeha/property_management | 87d273dc6009117f46f492b8952bf25447a5e0bb | [
"MIT"
] | 1 | 2020-08-02T17:15:34.000Z | 2020-08-02T19:45:55.000Z | property_management/property_management/doctype/add_new_properties/test_add_new_properties.py | techyidiots/propertymanagement | 2be7f5bfa83cf5eb42ac09e5174e1bf333c6e1a8 | [
"MIT"
] | 9 | 2019-10-19T06:36:29.000Z | 2022-03-19T18:38:46.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2015, shakeel vaim and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
# test_records = frappe.get_test_records('Add New Properties')
class TestAddNewProperties(unittest.TestCase):
pass
| 21.769231 | 62 | 0.777385 | 36 | 283 | 5.888889 | 0.833333 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020325 | 0.130742 | 283 | 12 | 63 | 23.583333 | 0.841463 | 0.522968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.6 | 0 | 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 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
c1e48df7b7af43179e9bf797d58443de2151958b | 6,862 | py | Python | test.py | nbc-pet-task/functional.py | 5380259ef7a4925c784e973b63304aa24c4f496d | [
"MIT"
] | 2 | 2017-10-15T07:03:51.000Z | 2017-10-16T04:59:24.000Z | test.py | nbc-pet-task/functional.py | 5380259ef7a4925c784e973b63304aa24c4f496d | [
"MIT"
] | null | null | null | test.py | nbc-pet-task/functional.py | 5380259ef7a4925c784e973b63304aa24c4f496d | [
"MIT"
] | 1 | 2019-11-15T05:25:00.000Z | 2019-11-15T05:25:00.000Z | """unittest
"""
import unittest
import functional as F
import mathExt as M
import linearAlgebra as L
_list = [1,2,3,4]
_tuple = (1,2,3)
_str = "seokjoon.yun"
_dict = { "id": 1, "name": "seokjoon.yun" }
_dict_values = [1, "seokjoon.yun"]
_dict_keys = ["id", "name"]
matrix_2x2 = [[1, 2], [3, 4]]
matrix_3x3 = [[1,2,3], ... | 35.010204 | 169 | 0.625765 | 1,074 | 6,862 | 3.803538 | 0.115456 | 0.27907 | 0.148837 | 0.123378 | 0.485924 | 0.3459 | 0.223256 | 0.189718 | 0.152509 | 0.119217 | 0 | 0.068128 | 0.202128 | 6,862 | 196 | 170 | 35.010204 | 0.677991 | 0.01297 | 0 | 0.047945 | 0 | 0 | 0.008574 | 0 | 0 | 0 | 0 | 0 | 0.534247 | 1 | 0.226027 | false | 0.006849 | 0.027397 | 0.013699 | 0.267123 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de0912319bc7ed94e682438d012fd561e5a9586a | 4,098 | py | Python | Campaign/migrations/0002_auto_20170501_1437.py | amalinovskiy/Appraise | 03446dacebd91c556b29420fe917e2b0547047bd | [
"BSD-3-Clause"
] | 11 | 2021-02-08T08:40:23.000Z | 2022-03-30T09:56:40.000Z | Campaign/migrations/0002_auto_20170501_1437.py | amalinovskiy/Appraise | 03446dacebd91c556b29420fe917e2b0547047bd | [
"BSD-3-Clause"
] | 29 | 2021-01-23T16:50:47.000Z | 2022-03-25T13:46:01.000Z | Campaign/migrations/0002_auto_20170501_1437.py | amalinovskiy/Appraise | 03446dacebd91c556b29420fe917e2b0547047bd | [
"BSD-3-Clause"
] | 5 | 2021-05-22T14:34:47.000Z | 2021-08-23T15:50:05.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-01 21:37
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations... | 53.220779 | 272 | 0.691557 | 451 | 4,098 | 6.026608 | 0.159645 | 0.110375 | 0.093083 | 0.109272 | 0.786608 | 0.786608 | 0.710817 | 0.593451 | 0.593451 | 0.593451 | 0 | 0.007249 | 0.192045 | 4,098 | 76 | 273 | 53.921053 | 0.813651 | 0.016105 | 0 | 0.544118 | 1 | 0 | 0.209233 | 0.085381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de0ce7adc8fc8592c2e72bd98ae6ea82ad047a4d | 545 | py | Python | Algorithms/LeetCode_1629.py | pineapple028/LeetCode | 466d8545841cfe54a70b791f747b1f1d22e11f34 | [
"MIT"
] | null | null | null | Algorithms/LeetCode_1629.py | pineapple028/LeetCode | 466d8545841cfe54a70b791f747b1f1d22e11f34 | [
"MIT"
] | null | null | null | Algorithms/LeetCode_1629.py | pineapple028/LeetCode | 466d8545841cfe54a70b791f747b1f1d22e11f34 | [
"MIT"
] | null | null | null | class Solution:
def slowestKey(self, releaseTimes: List[int], keysPressed: str) -> str:
longest=releaseTimes[0]
output=keysPressed[0]
for i in range(1,len(releaseTimes)) :
if releaseTimes[i] - releaseTimes[i-1] > longest :
longest=releaseTimes[i] - releaseTimes[i-... | 38.928571 | 75 | 0.563303 | 56 | 545 | 5.482143 | 0.392857 | 0.254072 | 0.2443 | 0.254072 | 0.309446 | 0.221498 | 0 | 0 | 0 | 0 | 0 | 0.016438 | 0.330275 | 545 | 13 | 76 | 41.923077 | 0.824658 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a9add3de81c620a7b1005f921b1ceb3d2c401d37 | 104 | py | Python | MySQLdb/constants/error_codes.py | montag451/mysql-ctypes | feb1c9a15f41748d51caee8eab3f011fb35634c1 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-01T20:39:18.000Z | 2015-11-01T22:15:17.000Z | MySQLdb/constants/error_codes.py | amit2014/mysql-ctypes | 32d79b05c2394875ed9dec45eac69ede3bc45384 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | MySQLdb/constants/error_codes.py | amit2014/mysql-ctypes | 32d79b05c2394875ed9dec45eac69ede3bc45384 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | DUP_ENTRY = 1062
PARSE_ERROR = 1064
NO_SUCH_TABLE = 1146
DATA_TOO_LONG = 1406
ROW_IS_REFERENCED_2 = 1451 | 20.8 | 26 | 0.817308 | 19 | 104 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 0.134615 | 104 | 5 | 26 | 20.8 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a9da822411193b6456bcf1115c31790214c0cd96 | 360 | py | Python | Tools/grmm/lib/jython/Lib/inspect.py | arne-cl/codra-rst-parser | a03631aace2146da2fed0c0c8f0a3fe1c8c5483d | [
"Apache-2.0"
] | 8 | 2016-11-24T09:38:31.000Z | 2021-04-23T13:04:48.000Z | Tools/grmm/lib/jython/Lib/inspect.py | arne-cl/codra-rst-parser | a03631aace2146da2fed0c0c8f0a3fe1c8c5483d | [
"Apache-2.0"
] | 1 | 2019-01-16T00:58:12.000Z | 2019-12-30T14:33:16.000Z | Tools/grmm/lib/jython/Lib/inspect.py | arne-cl/codra-rst-parser | a03631aace2146da2fed0c0c8f0a3fe1c8c5483d | [
"Apache-2.0"
] | 4 | 2018-12-04T12:21:05.000Z | 2021-02-05T08:00:14.000Z | #
# Very simple version of inspect, just enough is supported for
# doctest to work.
#
import org.python.core as _core
def isclass(cls):
return isinstance(cls, _core.PyClass)
def isfunction(func):
return isinstance(func, _core.PyFunction)
def ismodule(mod):
return isinstance(mod, _core.PyModule)
def cla... | 17.142857 | 62 | 0.730556 | 49 | 360 | 5.244898 | 0.693878 | 0.18677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 360 | 20 | 63 | 18 | 0.86532 | 0.213889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.444444 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a9f98d144ecb4a41cca8c25a64a0e2b3968a07ff | 237 | py | Python | diary/modules/resume/entities/__init__.py | vsanasc/sbrain | c0d0c24ea347d6bd0f34b9fdc3d7f01563ba0461 | [
"BSD-3-Clause"
] | 1 | 2019-10-22T19:17:59.000Z | 2019-10-22T19:17:59.000Z | diary/modules/resume/entities/__init__.py | vsanasc/sbrain | c0d0c24ea347d6bd0f34b9fdc3d7f01563ba0461 | [
"BSD-3-Clause"
] | null | null | null | diary/modules/resume/entities/__init__.py | vsanasc/sbrain | c0d0c24ea347d6bd0f34b9fdc3d7f01563ba0461 | [
"BSD-3-Clause"
] | null | null | null | from .date import DateEntity
from .dedication import (
BaseDedicationEntity,
DedicationEntity
)
from .note import (
BaseNoteEntity,
NoteEntity
)
from .schedule import ScheduleEntity
from .habit import (
HabitEntity
)
| 16.928571 | 36 | 0.742616 | 22 | 237 | 8 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202532 | 237 | 13 | 37 | 18.230769 | 0.931217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.384615 | 0 | 0.384615 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e701f08ce8e6fae66ab6474622b97ef4417e55bf | 650 | py | Python | accounts/migrations/0008_auto_20200728_1719.py | MartinMwiti/crm | 2f775b25e293da410dc3a37d0e03d838df1144ac | [
"MIT"
] | null | null | null | accounts/migrations/0008_auto_20200728_1719.py | MartinMwiti/crm | 2f775b25e293da410dc3a37d0e03d838df1144ac | [
"MIT"
] | null | null | null | accounts/migrations/0008_auto_20200728_1719.py | MartinMwiti/crm | 2f775b25e293da410dc3a37d0e03d838df1144ac | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-28 14:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_auto_20200728_1701'),
]
operations = [
migrations.RenameField(
model_name='employeeprofile',
old_name='Depa... | 23.214286 | 48 | 0.569231 | 60 | 650 | 5.95 | 0.6 | 0.07563 | 0.201681 | 0.168067 | 0.291317 | 0.291317 | 0.291317 | 0 | 0 | 0 | 0 | 0.070615 | 0.324615 | 650 | 27 | 49 | 24.074074 | 0.742597 | 0.069231 | 0 | 0.380952 | 1 | 0 | 0.205638 | 0.038143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e70eeee68f707a70ee16821f81c27311e38470e0 | 188 | py | Python | piprepo/exceptions.py | mfickett/piprepo | d48445cd5809532e8479ec5cabb454a79c2fadae | [
"MIT"
] | 10 | 2017-06-20T14:36:03.000Z | 2022-02-14T04:00:00.000Z | piprepo/exceptions.py | mfickett/piprepo | d48445cd5809532e8479ec5cabb454a79c2fadae | [
"MIT"
] | 6 | 2017-08-17T20:50:55.000Z | 2021-07-16T16:18:01.000Z | piprepo/exceptions.py | mfickett/piprepo | d48445cd5809532e8479ec5cabb454a79c2fadae | [
"MIT"
] | 6 | 2018-04-17T21:58:39.000Z | 2021-07-16T02:35:15.000Z | class InvalidFileName(ValueError):
def __init__(self, filename):
self.message = 'Invalid file name: {}'.format(filename)
super(ValueError, self).__init__(self.message)
| 37.6 | 63 | 0.696809 | 20 | 188 | 6.15 | 0.65 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175532 | 188 | 4 | 64 | 47 | 0.793548 | 0 | 0 | 0 | 0 | 0 | 0.111702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e72428c69db022f2fbb4dbfc28bda60fe078f8a7 | 9,680 | py | Python | tests/tests/functional/test_views.py | crazyscientist/django-admin-view-permission | e6385622e2a708f23c5041ec031e32891e7e267e | [
"BSD-2-Clause"
] | null | null | null | tests/tests/functional/test_views.py | crazyscientist/django-admin-view-permission | e6385622e2a708f23c5041ec031e32891e7e267e | [
"BSD-2-Clause"
] | null | null | null | tests/tests/functional/test_views.py | crazyscientist/django-admin-view-permission | e6385622e2a708f23c5041ec031e32891e7e267e | [
"BSD-2-Clause"
] | null | null | null | from __future__ import unicode_literals
from bs4 import BeautifulSoup
from django import VERSION
from django.conf import settings
from django.test import override_settings
from model_mommy import mommy
from tests.tests.helpers import AdminViewPermissionViewsTestCase
try:
from django.urls import reverse
except Im... | 34.204947 | 79 | 0.591839 | 1,099 | 9,680 | 4.918107 | 0.141947 | 0.066605 | 0.075486 | 0.076596 | 0.746716 | 0.72951 | 0.708788 | 0.659574 | 0.613136 | 0.5963 | 0 | 0.020245 | 0.290702 | 9,680 | 282 | 80 | 34.326241 | 0.766968 | 0.045145 | 0 | 0.518349 | 0 | 0 | 0.205474 | 0.063423 | 0 | 0 | 0 | 0 | 0.146789 | 1 | 0.082569 | false | 0.082569 | 0.045872 | 0 | 0.133028 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e7495224cfc97b4d687cecd155ef80d2ea68cffa | 88 | py | Python | src/mdformat_gfm/__init__.py | hukkinj1/mdformat-gfm | 05b019ef52be13f237d840996438c93b1639aab4 | [
"MIT"
] | 2 | 2021-04-13T01:39:29.000Z | 2021-04-13T07:09:30.000Z | src/mdformat_gfm/__init__.py | hukkinj1/mdformat-gfm | 05b019ef52be13f237d840996438c93b1639aab4 | [
"MIT"
] | 2 | 2020-11-18T15:54:47.000Z | 2021-04-01T01:15:29.000Z | src/mdformat_gfm/__init__.py | hukkinj1/mdformat-gfm | 05b019ef52be13f237d840996438c93b1639aab4 | [
"MIT"
] | null | null | null | __version__ = "0.3.3" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
| 44 | 87 | 0.738636 | 15 | 88 | 4.066667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.181818 | 88 | 1 | 88 | 88 | 0.791667 | 0.704545 | 0 | 0 | 1 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e772a92a445faaa6b9c24ba721d8bb1b12729211 | 1,096 | py | Python | home/migrations/0008_restaurant_created_restaurant_date_restaurant_edited_and_more.py | divyesh1099/goparty | 7e2f189aa195824d31d349d25bdbe9c853209a42 | [
"MIT"
] | null | null | null | home/migrations/0008_restaurant_created_restaurant_date_restaurant_edited_and_more.py | divyesh1099/goparty | 7e2f189aa195824d31d349d25bdbe9c853209a42 | [
"MIT"
] | null | null | null | home/migrations/0008_restaurant_created_restaurant_date_restaurant_edited_and_more.py | divyesh1099/goparty | 7e2f189aa195824d31d349d25bdbe9c853209a42 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-04-15 10:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0007_alter_restaurantimage_restaurant'),
]
operations = [
migrations.AddField(
model_name='restaurant',
name... | 28.102564 | 75 | 0.568431 | 105 | 1,096 | 5.819048 | 0.457143 | 0.1473 | 0.188216 | 0.220949 | 0.509002 | 0.407529 | 0.340426 | 0.340426 | 0.260229 | 0 | 0 | 0.030626 | 0.314781 | 1,096 | 38 | 76 | 28.842105 | 0.782956 | 0.041058 | 0 | 0.46875 | 1 | 0 | 0.117255 | 0.035272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e77e9a3a9132e21a053101033daf9edc4473c640 | 2,079 | py | Python | user_credentials.py | Antavio/Password-Locker | 44a76fcebcc4ce202b84d9bda02cf5e75c9380b9 | [
"MIT"
] | 2 | 2019-12-17T19:59:27.000Z | 2021-04-16T01:58:08.000Z | user_credentials.py | Antavio/Password-Locker | 44a76fcebcc4ce202b84d9bda02cf5e75c9380b9 | [
"MIT"
] | null | null | null | user_credentials.py | Antavio/Password-Locker | 44a76fcebcc4ce202b84d9bda02cf5e75c9380b9 | [
"MIT"
] | null | null | null | class User_Credentials:
"""
Class that generates new instances of user credentials
"""
user_credential_list = []
def __init__(self, platform, firstname, secondname, username, phone_number, email, password):
'''
__init__ method that helps us define properties for our objects.
... | 30.130435 | 103 | 0.62482 | 215 | 2,079 | 5.87907 | 0.32093 | 0.077532 | 0.085443 | 0.068829 | 0.189082 | 0.110759 | 0.110759 | 0.110759 | 0.110759 | 0.110759 | 0 | 0 | 0.314093 | 2,079 | 68 | 104 | 30.573529 | 0.886396 | 0.337181 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 3 |
e78218333868ed2c302cd65f016712d4326db349 | 4,749 | py | Python | polytope_server/common/metric_collector/storage_metric_collector.py | ecmwf-projects/polytope-server | 135017717cf161d68875a55aa364ce311a1d2ea6 | [
"Apache-2.0"
] | null | null | null | polytope_server/common/metric_collector/storage_metric_collector.py | ecmwf-projects/polytope-server | 135017717cf161d68875a55aa364ce311a1d2ea6 | [
"Apache-2.0"
] | 1 | 2022-01-28T11:39:25.000Z | 2022-01-28T11:39:25.000Z | polytope_server/common/metric_collector/storage_metric_collector.py | ecmwf-projects/polytope-server | 135017717cf161d68875a55aa364ce311a1d2ea6 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2022 European Centre for Medium-Range Weather Forecasts (ECMWF)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 30.248408 | 98 | 0.671089 | 563 | 4,749 | 5.431616 | 0.26643 | 0.055919 | 0.051014 | 0.054938 | 0.321125 | 0.244277 | 0.142577 | 0.072596 | 0.072596 | 0.035971 | 0 | 0.004414 | 0.236681 | 4,749 | 156 | 99 | 30.442308 | 0.839172 | 0.165719 | 0 | 0.294118 | 0 | 0 | 0.046677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.029412 | 0.166667 | 0.558824 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
e799adb783bf9662c84a5a97940e416e7a17fca6 | 327 | py | Python | top/api/rest/RegionWarehouseManageRequest.py | forestsheep/middleman | 34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd | [
"MIT"
] | null | null | null | top/api/rest/RegionWarehouseManageRequest.py | forestsheep/middleman | 34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd | [
"MIT"
] | null | null | null | top/api/rest/RegionWarehouseManageRequest.py | forestsheep/middleman | 34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd | [
"MIT"
] | null | null | null | '''
Created by auto_sdk on 2016.07.14
'''
from top.api.base import RestApi
class RegionWarehouseManageRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.regions = None
self.store_code = None
def getapiname(self):
return 'taobao.region.warehouse.m... | 25.153846 | 55 | 0.755352 | 47 | 327 | 5.042553 | 0.723404 | 0.067511 | 0.118143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034602 | 0.116208 | 327 | 12 | 56 | 27.25 | 0.785467 | 0.100917 | 0 | 0 | 0 | 0 | 0.164336 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
e79b0c1cf43d88fc3b6e474e4d5f48a7ec7d8b42 | 224 | py | Python | locust_files/exceptions.py | Yahyaali1/user_focused_locust_boilerplate | fecd75a1a003ed4aaae3491e934dfb16670faa70 | [
"MIT"
] | null | null | null | locust_files/exceptions.py | Yahyaali1/user_focused_locust_boilerplate | fecd75a1a003ed4aaae3491e934dfb16670faa70 | [
"MIT"
] | 3 | 2020-10-08T12:07:45.000Z | 2020-10-09T06:24:04.000Z | locust_files/exceptions.py | Yahyaali1/user_focused_locust_boilerplate | fecd75a1a003ed4aaae3491e934dfb16670faa70 | [
"MIT"
] | null | null | null |
class UserCredentialsExhaustedException(Exception):
"""
Raised when user's have exhausted in user pool
"""
pass
class LoginFailureException(Exception):
"""
Failed to perform login
"""
pass
| 16 | 51 | 0.660714 | 21 | 224 | 7.047619 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254464 | 224 | 13 | 52 | 17.230769 | 0.886228 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e7c21a388cbcd71b233781845751c7175865ea01 | 158 | py | Python | jaymap/__init__.py | jreese/jaymap | e79b4a375a4c4b4ddccbe57f16631adf9eea8a7c | [
"MIT"
] | 1 | 2021-03-05T19:32:59.000Z | 2021-03-05T19:32:59.000Z | jaymap/__init__.py | jreese/jaymap | e79b4a375a4c4b4ddccbe57f16631adf9eea8a7c | [
"MIT"
] | 1 | 2021-01-18T23:43:05.000Z | 2021-01-18T23:43:05.000Z | jaymap/__init__.py | jreese/jaymap | e79b4a375a4c4b4ddccbe57f16631adf9eea8a7c | [
"MIT"
] | null | null | null | # Copyright 2021 John Reese
# Licensed under the MIT License
"""
JMAP client for asyncio
"""
__author__ = "John Reese"
from .__version__ import __version__
| 15.8 | 36 | 0.753165 | 20 | 158 | 5.35 | 0.85 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.170886 | 158 | 9 | 37 | 17.555556 | 0.78626 | 0.512658 | 0 | 0 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
99be7a9b8b790132172f7c1a4a9bfa00317ca836 | 425 | py | Python | validator/models/celery_task.py | s-scherrer/qa4sm | 99fa62d5e42e5a2b81c5bad1553c8137fe4259e7 | [
"MIT"
] | 10 | 2019-02-27T15:05:15.000Z | 2022-03-10T21:13:40.000Z | validator/models/celery_task.py | s-scherrer/qa4sm | 99fa62d5e42e5a2b81c5bad1553c8137fe4259e7 | [
"MIT"
] | 69 | 2019-07-04T23:20:17.000Z | 2022-03-29T06:34:06.000Z | validator/models/celery_task.py | s-scherrer/qa4sm | 99fa62d5e42e5a2b81c5bad1553c8137fe4259e7 | [
"MIT"
] | 10 | 2019-03-14T11:46:58.000Z | 2022-03-25T13:06:16.000Z | import uuid
from django.db import models
from validator.models.validation_run import ValidationRun
class CeleryTask(models.Model):
validation = models.ForeignKey(to=ValidationRun, on_delete=models.PROTECT, related_name='celery_tasks', null=False)
celery_task_id = models.UUIDField(primary_key=True, default=u... | 30.357143 | 119 | 0.774118 | 56 | 425 | 5.642857 | 0.678571 | 0.063291 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002688 | 0.124706 | 425 | 13 | 120 | 32.692308 | 0.846774 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
99cbfa5f3fd563b50342b335aff39eb1c1306a79 | 2,206 | py | Python | toqito/matrix_props/is_density.py | georgios-ts/toqito | d9379fb267a8e77784b97820c3131522d384f54d | [
"MIT"
] | 1 | 2021-05-13T15:44:40.000Z | 2021-05-13T15:44:40.000Z | toqito/matrix_props/is_density.py | georgios-ts/toqito | d9379fb267a8e77784b97820c3131522d384f54d | [
"MIT"
] | null | null | null | toqito/matrix_props/is_density.py | georgios-ts/toqito | d9379fb267a8e77784b97820c3131522d384f54d | [
"MIT"
] | null | null | null | """Is matrix a density matrix."""
import numpy as np
from toqito.matrix_props import is_positive_semidefinite
def is_density(mat: np.ndarray) -> bool:
r"""
Check if matrix is a density matrix [WikDensity]_.
A matrix is a density matrix if its trace is equal to one and it has the
property of being pos... | 31.070423 | 78 | 0.549411 | 284 | 2,206 | 4.21831 | 0.338028 | 0.015025 | 0.015025 | 0.016694 | 0.254591 | 0.231219 | 0.135225 | 0.128548 | 0.128548 | 0.128548 | 0 | 0.029034 | 0.328649 | 2,206 | 70 | 79 | 31.514286 | 0.779878 | 0.81641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
99d1cf153b54681306732cbdb6a260ded8195646 | 950 | py | Python | PyTM/commands/task.py | wasi0013/PyTM | a5f88ffcdc7809190c74c8ece254e9751b09b1c7 | [
"MIT"
] | 2 | 2020-07-02T01:02:55.000Z | 2020-07-05T07:20:13.000Z | PyTM/commands/task.py | wasi0013/PyTM | a5f88ffcdc7809190c74c8ece254e9751b09b1c7 | [
"MIT"
] | 114 | 2018-10-23T08:08:34.000Z | 2022-03-31T23:01:43.000Z | PyTM/commands/task.py | wasi0013/PyTM | a5f88ffcdc7809190c74c8ece254e9751b09b1c7 | [
"MIT"
] | 1 | 2018-10-24T08:47:17.000Z | 2018-10-24T08:47:17.000Z | import click
from PyTM.core import task
@click.group()
def task():
"""
pytm sub-command for managing tasks
"""
pass
@task.command()
@click.argument("task_name")
def abort(task_name):
"""
Abort an Ongoing Task
"""
click.secho("Pause Task "+task_name)
@task.command()
@click.argument... | 16.666667 | 73 | 0.636842 | 124 | 950 | 4.733871 | 0.25 | 0.204429 | 0.136286 | 0.204429 | 0.388416 | 0.34753 | 0.34753 | 0.226576 | 0.160136 | 0.160136 | 0 | 0 | 0.202105 | 950 | 56 | 74 | 16.964286 | 0.774406 | 0.118947 | 0 | 0.384615 | 0 | 0 | 0.180965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.038462 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99e73ab37412b0f583a9e0406a1b6252b8d1650a | 1,217 | py | Python | bookwyrm/models/connector.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 270 | 2020-01-27T06:06:07.000Z | 2020-06-21T00:28:18.000Z | bookwyrm/models/connector.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 158 | 2020-02-10T20:36:54.000Z | 2020-06-26T17:12:54.000Z | bookwyrm/models/connector.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 15 | 2020-02-13T21:53:33.000Z | 2020-06-17T16:52:46.000Z | """ manages interfaces with external sources of book data """
from django.db import models
from bookwyrm.connectors.settings import CONNECTORS
from .base_model import BookWyrmModel, DeactivationReason
ConnectorFiles = models.TextChoices("ConnectorFiles", CONNECTORS)
class Connector(BookWyrmModel):
"""book data... | 38.03125 | 85 | 0.753492 | 152 | 1,217 | 5.875 | 0.381579 | 0.167973 | 0.201568 | 0.268757 | 0.424412 | 0.394177 | 0.217245 | 0.217245 | 0.217245 | 0.118701 | 0 | 0.029693 | 0.142153 | 1,217 | 31 | 86 | 39.258065 | 0.825671 | 0.066557 | 0 | 0 | 0 | 0 | 0.03829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0.047619 | 0.857143 | 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 | 0 | 1 | 0 | 0 | 3 |
99eaa3ee149b49b646c3119f97c3861d22c18d80 | 68 | py | Python | niconico/exceptions.py | tuna2134/niconico.py | 0c06fb25a25599a1eabffe471e1fcf7a399236ac | [
"MIT"
] | null | null | null | niconico/exceptions.py | tuna2134/niconico.py | 0c06fb25a25599a1eabffe471e1fcf7a399236ac | [
"MIT"
] | null | null | null | niconico/exceptions.py | tuna2134/niconico.py | 0c06fb25a25599a1eabffe471e1fcf7a399236ac | [
"MIT"
] | null | null | null | # niconico.py - Exceptions
class ExtractFailed(Exception):
... | 13.6 | 31 | 0.691176 | 6 | 68 | 7.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 68 | 5 | 32 | 13.6 | 0.839286 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99ec5c8a2a2ebf7a07921f595f17884168e759bd | 1,378 | py | Python | caffe2onnx/src/op_layer_info.py | LaudateCorpus1/caffe2onnx | e1dfc5870e94a6d848fc26ca15b8ac3424566cd7 | [
"BSD-3-Clause"
] | null | null | null | caffe2onnx/src/op_layer_info.py | LaudateCorpus1/caffe2onnx | e1dfc5870e94a6d848fc26ca15b8ac3424566cd7 | [
"BSD-3-Clause"
] | null | null | null | caffe2onnx/src/op_layer_info.py | LaudateCorpus1/caffe2onnx | e1dfc5870e94a6d848fc26ca15b8ac3424566cd7 | [
"BSD-3-Clause"
] | 1 | 2022-01-20T05:18:29.000Z | 2022-01-20T05:18:29.000Z | from onnx import TensorProto
from caffe2onnx.proto import caffe_ssd_pb2 as caffe_pb2
# caffe layers
Layer_CONCAT = caffe_pb2.V1LayerParameter.CONCAT #3
Layer_CONVOLUTION = caffe_pb2.V1LayerParameter.CONVOLUTION #4
Layer_DROPOUT = caffe_pb2.V1LayerParameter.DROPOUT #6
Layer_INNER_PRODUCT = caffe_pb2.V1LayerParameter.IN... | 43.0625 | 66 | 0.693033 | 147 | 1,378 | 6.22449 | 0.353742 | 0.209836 | 0.262295 | 0.174863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036649 | 0.16836 | 1,378 | 32 | 67 | 43.0625 | 0.76178 | 0.021045 | 0 | 0 | 0 | 0 | 0.129297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
820475380aba3885b26485f6e24df311b20f404d | 142 | py | Python | config/kafka_config.py | goldfing/depot-task-statistics | 24dc7b9a0fca9d427df1c393a8ccd39ee174bb90 | [
"Unlicense"
] | null | null | null | config/kafka_config.py | goldfing/depot-task-statistics | 24dc7b9a0fca9d427df1c393a8ccd39ee174bb90 | [
"Unlicense"
] | null | null | null | config/kafka_config.py | goldfing/depot-task-statistics | 24dc7b9a0fca9d427df1c393a8ccd39ee174bb90 | [
"Unlicense"
] | null | null | null | class kafka_config :
def __init__(self):
self.topic = "depot.task.status.log.1"
self.bootstrap_servers = "localhost:9092"
| 28.4 | 49 | 0.661972 | 18 | 142 | 4.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0.21831 | 142 | 4 | 50 | 35.5 | 0.747748 | 0 | 0 | 0 | 0 | 0 | 0.260563 | 0.161972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
820c39e3e93cb876c06753f6863e5b08c473d11a | 875 | py | Python | py3dtiles/pntsoutput.py | AJTech2002/Point-Cloud-Tiler | 6b79371f1b4f8de0e212b75206fbbeb846484ab1 | [
"Apache-2.0"
] | 2 | 2021-03-11T20:19:39.000Z | 2021-08-18T08:31:49.000Z | pylas implementation/py3dtiles_container/pntsoutput.py | AJTech2002/Point-Cloud-Tiler | 6b79371f1b4f8de0e212b75206fbbeb846484ab1 | [
"Apache-2.0"
] | null | null | null | pylas implementation/py3dtiles_container/pntsoutput.py | AJTech2002/Point-Cloud-Tiler | 6b79371f1b4f8de0e212b75206fbbeb846484ab1 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pickle as pickle
import struct
import py3dtiles.points.task.pnts_writer as writer
from struct import *
def generateFeatureTable():
print("TE")
def outputToFile(name, pointArray, folder):
writer.points_to_pnts(name, pointArray, folder, False)
# import ctypes
# magic = b"pnt... | 23.648649 | 63 | 0.593143 | 110 | 875 | 4.690909 | 0.472727 | 0.05814 | 0.093023 | 0.116279 | 0.108527 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0.010542 | 0.241143 | 875 | 36 | 64 | 24.305556 | 0.766566 | 0.554286 | 0 | 0 | 1 | 0 | 0.005391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.555556 | 0 | 0.777778 | 0.111111 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8224f3b89c1c4b6edf4f9693c5e47711089e228a | 108 | py | Python | acmicpc/A11720.py | hanjoondev/zb-study | 65f3104076862e6ccefbbcddb7eac0114250cba0 | [
"MIT"
] | null | null | null | acmicpc/A11720.py | hanjoondev/zb-study | 65f3104076862e6ccefbbcddb7eac0114250cba0 | [
"MIT"
] | null | null | null | acmicpc/A11720.py | hanjoondev/zb-study | 65f3104076862e6ccefbbcddb7eac0114250cba0 | [
"MIT"
] | null | null | null | def reader():
input()
print(sum(int(c) for c in input()))
if __name__ == '__main__':
reader()
| 13.5 | 39 | 0.564815 | 15 | 108 | 3.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 108 | 7 | 40 | 15.428571 | 0.654321 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0 | 0 | 0.2 | 0.2 | 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 | 0 | 0 | 3 |
822e3d7858a077425bc83ade95fe74aa2eac2d59 | 557 | py | Python | venv/Lib/site-packages/black/rusty.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 16,110 | 2019-07-22T21:54:54.000Z | 2022-03-31T22:52:39.000Z | venv/Lib/site-packages/black/rusty.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 1,981 | 2019-07-22T21:26:16.000Z | 2022-03-31T23:14:35.000Z | venv/Lib/site-packages/black/rusty.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 1,762 | 2019-07-22T21:23:00.000Z | 2022-03-31T06:10:22.000Z | """An error-handling model influenced by that used by the Rust programming language
See https://doc.rust-lang.org/book/ch09-00-error-handling.html.
"""
from typing import Generic, TypeVar, Union
T = TypeVar("T")
E = TypeVar("E", bound=Exception)
class Ok(Generic[T]):
def __init__(self, value: T) -> None:
... | 19.206897 | 83 | 0.628366 | 85 | 557 | 3.976471 | 0.482353 | 0.059172 | 0.065089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.224417 | 557 | 28 | 84 | 19.892857 | 0.773148 | 0.260323 | 0 | 0 | 0 | 0 | 0.004938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.142857 | 0.642857 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
823877037c028c0f5cd0bd2114fac4ae9937f938 | 101 | py | Python | python/rpdk/java/__init__.py | rjlohan/cloudformation-cli-java-plugin | a4bf268462367ea43c6a3f5269a9ede42d1b2a89 | [
"Apache-2.0"
] | null | null | null | python/rpdk/java/__init__.py | rjlohan/cloudformation-cli-java-plugin | a4bf268462367ea43c6a3f5269a9ede42d1b2a89 | [
"Apache-2.0"
] | null | null | null | python/rpdk/java/__init__.py | rjlohan/cloudformation-cli-java-plugin | a4bf268462367ea43c6a3f5269a9ede42d1b2a89 | [
"Apache-2.0"
] | null | null | null | import logging
__version__ = "2.0.1"
logging.getLogger(__name__).addHandler(logging.NullHandler())
| 16.833333 | 61 | 0.782178 | 12 | 101 | 5.916667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.079208 | 101 | 5 | 62 | 20.2 | 0.731183 | 0 | 0 | 0 | 0 | 0 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
823b1cbca8cb627338736ade9fc59e77450fee9f | 3,566 | py | Python | jacobian.py | jabbershort/KinovaGen3 | b5aedf6f3433c9010fae4f63e194aa5c228555f3 | [
"MIT"
] | 1 | 2021-10-14T20:03:20.000Z | 2021-10-14T20:03:20.000Z | jacobian.py | jabbershort/KinovaGen3 | b5aedf6f3433c9010fae4f63e194aa5c228555f3 | [
"MIT"
] | null | null | null | jacobian.py | jabbershort/KinovaGen3 | b5aedf6f3433c9010fae4f63e194aa5c228555f3 | [
"MIT"
] | 1 | 2021-10-15T07:17:07.000Z | 2021-10-15T07:17:07.000Z | from numpy import array, cos, sin
def jacobian(q):
'''
The Jacobian of the Kinova Gen3 robot
Arguments
---------
q : array_like
The joint angles of the robot
Returns
-------
ndarray
The kinematic Jacobian matrix expressed in the base frame
'''
... | 29.716667 | 1,399 | 0.50673 | 644 | 3,566 | 2.804348 | 0.214286 | 0.05814 | 0.013289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444847 | 0.303421 | 3,566 | 119 | 1,400 | 29.966387 | 0.282206 | 0.055524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009804 | false | 0 | 0.009804 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 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 | 3 |
4162d9ee5254e60df2743f50e3525786487092d0 | 1,519 | py | Python | distributed_resource_allocator/src/tests/rhandlers.py | nasa/MOSAIC | af396ec450bd9f6f95fc5c603e13964035e05cd6 | [
"Apache-2.0"
] | 18 | 2019-04-01T02:58:38.000Z | 2022-01-02T07:31:03.000Z | distributed_resource_allocator/src/tests/rhandlers.py | nasa/MOSAIC | af396ec450bd9f6f95fc5c603e13964035e05cd6 | [
"Apache-2.0"
] | null | null | null | distributed_resource_allocator/src/tests/rhandlers.py | nasa/MOSAIC | af396ec450bd9f6f95fc5c603e13964035e05cd6 | [
"Apache-2.0"
] | 3 | 2019-11-04T01:52:50.000Z | 2021-09-13T01:52:50.000Z | #!/usr/bin/python
'''
# =====================================================================
# Resource handler for testing purposes
#
# Author: Marc Sanchez Net
# Date: 05/15/2019
# Copyright (c) 2019, Jet Propulsion Laboratory.
# =====================================================================
'''
# Patch i... | 27.125 | 71 | 0.576037 | 150 | 1,519 | 5.626667 | 0.5 | 0.041469 | 0.060427 | 0.056872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009471 | 0.165899 | 1,519 | 55 | 72 | 27.618182 | 0.656669 | 0.333114 | 0 | 0.115385 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.192308 | 0.153846 | 0.653846 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
4175ec11e102697e9dfa0532f11ba35ee9a80edc | 1,777 | py | Python | ahoy/c_measurers.py | eddiejessup/ships | acb30dfed5524fa2d20e988d08cef0e66ffcdc60 | [
"BSD-3-Clause"
] | null | null | null | ahoy/c_measurers.py | eddiejessup/ships | acb30dfed5524fa2d20e988d08cef0e66ffcdc60 | [
"BSD-3-Clause"
] | null | null | null | ahoy/c_measurers.py | eddiejessup/ships | acb30dfed5524fa2d20e988d08cef0e66ffcdc60 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, division
from abc import ABCMeta, abstractmethod
import numpy as np
from ciabatta.meta import make_repr_str
from ahoy import measurers
class CMeasurer(measurers.Measurer):
__metaclass__ = ABCMeta
@abstractmethod
def get_cs(self):
return
class FieldCMeasure... | 20.905882 | 54 | 0.652786 | 231 | 1,777 | 4.65368 | 0.212121 | 0.066977 | 0.074419 | 0.059535 | 0.647442 | 0.607442 | 0.547907 | 0.385116 | 0.385116 | 0.329302 | 0 | 0.004511 | 0.251548 | 1,777 | 84 | 55 | 21.154762 | 0.803759 | 0 | 0 | 0.589286 | 0 | 0 | 0.007878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.089286 | 0.142857 | 0.732143 | 0.017857 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
41852381437599fdf3595f4332874dd9aaf4cfa1 | 884 | py | Python | text_search_task.py | tomaszkyc/text-searcher | 0eac461ef0e0a4f55c75c5f999ac53ee101a9a4b | [
"MIT"
] | null | null | null | text_search_task.py | tomaszkyc/text-searcher | 0eac461ef0e0a4f55c75c5f999ac53ee101a9a4b | [
"MIT"
] | null | null | null | text_search_task.py | tomaszkyc/text-searcher | 0eac461ef0e0a4f55c75c5f999ac53ee101a9a4b | [
"MIT"
] | null | null | null | import logging
import os
class TextSearchTask:
def __init__(self, filepath, text_to_search):
self._filepath = filepath
self._text_to_search = text_to_search
self._occurences = 0
def occurences(self):
return self._occurences
def text_to_search(self):
return self._... | 29.466667 | 86 | 0.659502 | 116 | 884 | 4.741379 | 0.387931 | 0.087273 | 0.174545 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004573 | 0.257919 | 884 | 29 | 87 | 30.482759 | 0.833841 | 0.188914 | 0 | 0 | 0 | 0 | 0.011611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0.166667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
41899192e1962b19c044a786270df3346b3e2e91 | 931 | py | Python | cap_8/exercicios/exercicio_815.py | rsmonteiro2021/execicios_python | d984508ec529c5a83b51354fc930fa8eafa40dc1 | [
"MIT"
] | 1 | 2021-04-26T02:55:16.000Z | 2021-04-26T02:55:16.000Z | cap_8/exercicios/exercicio_815.py | rsmonteiro2021/execicios_python | d984508ec529c5a83b51354fc930fa8eafa40dc1 | [
"MIT"
] | null | null | null | cap_8/exercicios/exercicio_815.py | rsmonteiro2021/execicios_python | d984508ec529c5a83b51354fc930fa8eafa40dc1 | [
"MIT"
] | null | null | null | """
Impressão de Modelos: Coloque as funções do exemplo print_models.py em um arquivo
serparado de nome printing_functions.py. Escreva uma instrução import no início de
print_models.py e modifique o arquivo para usar as funções importadas.
"""
def print_models(unprinted_designs, completed_models):
"""
... | 42.318182 | 86 | 0.731472 | 123 | 931 | 5.382114 | 0.544715 | 0.135952 | 0.039275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001351 | 0.205156 | 931 | 22 | 87 | 42.318182 | 0.893243 | 0.487648 | 0 | 0 | 0 | 0 | 0.12933 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.222222 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 3 |
418e6a1617eca0f5146cd37e4a1c0d4598e1cf25 | 3,647 | py | Python | mqtt/MQTTConfig.py | Fyzel/weather-data-sensor | 5dfea1625e4b7794a43cd7b776dc59cf90ab7c03 | [
"Apache-2.0"
] | 2 | 2018-09-08T04:56:27.000Z | 2020-10-07T14:00:31.000Z | mqtt/MQTTConfig.py | Fyzel/weather-data-sensor | 5dfea1625e4b7794a43cd7b776dc59cf90ab7c03 | [
"Apache-2.0"
] | 17 | 2019-03-15T11:17:46.000Z | 2022-03-31T11:09:54.000Z | mqtt/MQTTConfig.py | Fyzel/weather-data-sensor | 5dfea1625e4b7794a43cd7b776dc59cf90ab7c03 | [
"Apache-2.0"
] | 2 | 2019-01-11T15:51:05.000Z | 2022-01-06T18:31:17.000Z | from configparser import ConfigParser
class MQTTConfig:
def __init__(self, config_file_path: str):
"""
Initialization with configuration file.
:param config_file_path:
:type config_file_path: str
"""
self._config_file_path = config_file_path
config = Config... | 27.628788 | 86 | 0.584864 | 408 | 3,647 | 5.031863 | 0.137255 | 0.075012 | 0.11398 | 0.070141 | 0.372138 | 0.287384 | 0.253775 | 0.088651 | 0.088651 | 0.044812 | 0 | 0 | 0.319989 | 3,647 | 131 | 87 | 27.839695 | 0.827823 | 0.31807 | 0 | 0.215686 | 0 | 0 | 0.110216 | 0.020131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254902 | false | 0.058824 | 0.019608 | 0 | 0.529412 | 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 | 0 | 1 | 0 | 0 | 3 |
41a7024b42a23e2d754cb23c89fa17ead2636174 | 1,062 | py | Python | python_src/tests/tests_search_algorithms.py | gustavo-veiga/estrutura-dados | 511dd7e09bc65bd8f1b1576e8094bf6d8a37b669 | [
"MIT"
] | null | null | null | python_src/tests/tests_search_algorithms.py | gustavo-veiga/estrutura-dados | 511dd7e09bc65bd8f1b1576e8094bf6d8a37b669 | [
"MIT"
] | null | null | null | python_src/tests/tests_search_algorithms.py | gustavo-veiga/estrutura-dados | 511dd7e09bc65bd8f1b1576e8094bf6d8a37b669 | [
"MIT"
] | null | null | null | from unittest import TestCase
from estrutura_dados.search_algorithms import linear_search, binary_search
numbers = [82, 9, 6, 16, 5, 70, 63, 64, 59, 72, 30, 10, 26, 77, 64, 11, 10, 7, 66, 59, 55, 76, 13, 38, 19, 68, 60, 42, 7, 51]
class LinearSearchTest(TestCase):
def test_linear_search_in_first_element(self):
... | 40.846154 | 125 | 0.727872 | 155 | 1,062 | 4.716129 | 0.36129 | 0.114911 | 0.155951 | 0.19699 | 0.708618 | 0.511628 | 0.511628 | 0.120383 | 0.120383 | 0 | 0 | 0.087937 | 0.164783 | 1,062 | 25 | 126 | 42.48 | 0.736189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.352941 | false | 0 | 0.117647 | 0 | 0.588235 | 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 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.