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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57b4a3bfa901835ff9b8f8bbc37ce73703aca758 | 288 | py | Python | agda/agda/settings/test.py | NBISweden/agda | a67e94b127ee7f97419152d5abe6a770bcee4f07 | [
"MIT"
] | 1 | 2015-03-09T22:43:39.000Z | 2015-03-09T22:43:39.000Z | agda/agda/settings/test.py | BILS/agda | a67e94b127ee7f97419152d5abe6a770bcee4f07 | [
"MIT"
] | 1 | 2018-09-29T22:16:02.000Z | 2018-10-01T07:08:38.000Z | agda/agda/settings/test.py | BILS/agda | a67e94b127ee7f97419152d5abe6a770bcee4f07 | [
"MIT"
] | null | null | null | from local import * # noqa
########## IN-MEMORY TEST DATABASE
#DATABASES = {
# "default": {
# "ENGINE": "django.db.backends.sqlite3",
# "NAME": ":memory:",
# "USER": "",
# "PASSWORD": "",
# "HOST": "",
# "PORT": "",
# },
#}
LOGGING = {}
| 18 | 48 | 0.420139 | 22 | 288 | 5.5 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.315972 | 288 | 15 | 49 | 19.2 | 0.609137 | 0.756944 | 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 | 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 | 2 |
57d67a9fc0d58134f46801eb4b2a14519c833dc6 | 458 | py | Python | rest_framework_simplejwt/state.py | SPKorhonen/django-rest-framework-simplejwt | 9afef5c5098586a362165945fb212cba0582866e | [
"MIT"
] | null | null | null | rest_framework_simplejwt/state.py | SPKorhonen/django-rest-framework-simplejwt | 9afef5c5098586a362165945fb212cba0582866e | [
"MIT"
] | null | null | null | rest_framework_simplejwt/state.py | SPKorhonen/django-rest-framework-simplejwt | 9afef5c5098586a362165945fb212cba0582866e | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from .backends import TokenBackend
from .settings import api_settings
User = get_user_model()
token_backend = TokenBackend(
algorithm=.ALGORITHM,
signing_key=api_settings.SIGNING_KEY,
verifying_key=api_settings.VERIFYING_KEY,
secret_key=api_settings.JWT_S... | 28.625 | 57 | 0.812227 | 63 | 458 | 5.507937 | 0.349206 | 0.221902 | 0.161383 | 0.115274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122271 | 458 | 15 | 58 | 30.533333 | 0.863184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
57e3d380c048d040250fa793a294b4265a7f087b | 3,288 | py | Python | pydhs/controller_stored_procedures.py | 00krishna-tools/pydhs | e00491b1ea3bf5a83d875571dd69e6c901e09191 | [
"MIT"
] | null | null | null | pydhs/controller_stored_procedures.py | 00krishna-tools/pydhs | e00491b1ea3bf5a83d875571dd69e6c901e09191 | [
"MIT"
] | 17 | 2017-10-23T18:04:36.000Z | 2018-05-28T21:07:55.000Z | pydhs/controller_stored_procedures.py | 00krishna-tools/pydhs | e00491b1ea3bf5a83d875571dd69e6c901e09191 | [
"MIT"
] | null | null | null | """
Controller Class
-----------------
This class contains the controller logic for the application. This takes
input from the table and other interface objects and then manages change of
state for the database. It will also pass the state changes to the table
objects.
"""
__author__ = 'krishnab'
__version__ = '0.1.... | 30.444444 | 81 | 0.425791 | 276 | 3,288 | 4.927536 | 0.398551 | 0.058824 | 0.066176 | 0.025 | 0.241176 | 0.201471 | 0.144118 | 0.085294 | 0.085294 | 0.085294 | 0 | 0.038698 | 0.504866 | 3,288 | 107 | 82 | 30.728972 | 0.796683 | 0.114659 | 0 | 0.438356 | 0 | 0.013699 | 0.648602 | 0.007594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0 | 0.027397 | 0 | 0.082192 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17a8dd4d1cb496a75f6331723a64ceb21de641ff | 417 | py | Python | dmr/sdmr.py | taylorshin/dmr | e496cc8df87392548812af17b38b4cb3753f8fde | [
"MIT"
] | 43 | 2017-01-10T21:44:29.000Z | 2021-03-18T13:18:23.000Z | dmr/sdmr.py | taylorshin/dmr | e496cc8df87392548812af17b38b4cb3753f8fde | [
"MIT"
] | 1 | 2019-06-28T03:21:04.000Z | 2019-06-28T03:21:04.000Z | dmr/sdmr.py | taylorshin/dmr | e496cc8df87392548812af17b38b4cb3753f8fde | [
"MIT"
] | 12 | 2017-04-10T07:31:41.000Z | 2022-03-21T05:30:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import scipy.special as special
import scipy.optimize as optimize
import scipy.misc as misc
from .dmr import DMR
class SDMR(DMR):
'''
Simple Topic Model with Dirichlet Multinomial Regression
'''
def get_alpha_n_m_z(self, idx=None):
... | 23.166667 | 60 | 0.652278 | 61 | 417 | 4.393443 | 0.639344 | 0.123134 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.256595 | 417 | 17 | 61 | 24.529412 | 0.86129 | 0.23741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.818182 | 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 | 0 | 1 | 0 | 0 | 2 |
17a8ef217f04f750ab4edc1cd07edfaddd1f2be1 | 274 | py | Python | sevdesk/client/models/get_communication_ways_type.py | HpLightcorner/SevDesk-Python-Client | 303ca8dddd78da4291e7d23692ccfb147c7ba31a | [
"MIT"
] | null | null | null | sevdesk/client/models/get_communication_ways_type.py | HpLightcorner/SevDesk-Python-Client | 303ca8dddd78da4291e7d23692ccfb147c7ba31a | [
"MIT"
] | null | null | null | sevdesk/client/models/get_communication_ways_type.py | HpLightcorner/SevDesk-Python-Client | 303ca8dddd78da4291e7d23692ccfb147c7ba31a | [
"MIT"
] | null | null | null | from enum import Enum
class GetCommunicationWaysType(str, Enum):
PHONE = "PHONE"
EMAIL = "EMAIL"
WEB = "WEB"
MOBILE = "MOBILE"
# The SevDesk API might use "0" for null-enums
NULL = "0"
def __str__(self) -> str:
return str(self.value)
| 18.266667 | 50 | 0.605839 | 35 | 274 | 4.628571 | 0.657143 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.281022 | 274 | 14 | 51 | 19.571429 | 0.812183 | 0.160584 | 0 | 0 | 0 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
17b2cf3c27f61b4c0709f7027e65a8620c5fcceb | 1,679 | py | Python | tests/mztab_m_io/test_main.py | lifs-tools/pymzTab-m | 4d5f0c2370a24a70f15e430c8b3edbf4f26f2f2e | [
"MIT"
] | 4 | 2019-06-12T14:00:42.000Z | 2022-02-01T02:46:02.000Z | tests/mztab_m_io/test_main.py | lifs-tools/pymzTab-m | 4d5f0c2370a24a70f15e430c8b3edbf4f26f2f2e | [
"MIT"
] | 3 | 2020-08-17T07:25:15.000Z | 2022-02-04T18:50:20.000Z | tests/mztab_m_io/test_main.py | lifs-tools/pymzTab-m | 4d5f0c2370a24a70f15e430c8b3edbf4f26f2f2e | [
"MIT"
] | 2 | 2019-06-12T14:00:49.000Z | 2020-08-19T14:57:43.000Z | '''
Created on 11.12.2018
@author: mirandaa
'''
import unittest
import pytest
from mztab_m_swagger_client.api_client import ApiClient
import json
from collections import namedtuple
from pprint import pprint
from mztab_m_io import mztab_parser
from pathlib import Path, PurePath
class MzTabParseTestCase(unittest.TestC... | 31.679245 | 135 | 0.681358 | 199 | 1,679 | 5.577889 | 0.467337 | 0.063063 | 0.054054 | 0.030631 | 0.07027 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015083 | 0.210244 | 1,679 | 52 | 136 | 32.288462 | 0.822021 | 0.208457 | 0 | 0 | 0 | 0 | 0.114767 | 0.022188 | 0 | 0 | 0 | 0.019231 | 0.192308 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.423077 | 0.076923 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
17bb8c5e8ae29461a0396fd1995b40729b7b9a47 | 2,539 | py | Python | sqlalchemy_ydb/__init__.py | blinkov/sqlalchemy-ydb | 8723887dd70e25a12e8f9ff62263fd495d4d79df | [
"Apache-2.0"
] | null | null | null | sqlalchemy_ydb/__init__.py | blinkov/sqlalchemy-ydb | 8723887dd70e25a12e8f9ff62263fd495d4d79df | [
"Apache-2.0"
] | null | null | null | sqlalchemy_ydb/__init__.py | blinkov/sqlalchemy-ydb | 8723887dd70e25a12e8f9ff62263fd495d4d79df | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import unicode_literals
from kikimr.public.dbapi.errors import NotSupportedError
try:
from sqlalchemy.engine.default import DefaultDialect, DefaultExecutionContext
from sqlalchemy.sql.compiler import DDLCompiler, IdentifierPreparer, GenericTypeCompiler
... | 30.22619 | 92 | 0.642379 | 227 | 2,539 | 6.872247 | 0.444934 | 0.05 | 0.032692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001706 | 0.307601 | 2,539 | 83 | 93 | 30.590361 | 0.885666 | 0.001575 | 0 | 0.065574 | 0 | 0 | 0.014607 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.114754 | false | 0.032787 | 0.131148 | 0.016393 | 0.770492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
17ca887ec2832db69231c4eded234ddbad667a04 | 291 | py | Python | invoice/apps.py | AhmedElmawary/erp | c998787c62194e26e10e3cbc61e35935e901e56d | [
"MIT"
] | null | null | null | invoice/apps.py | AhmedElmawary/erp | c998787c62194e26e10e3cbc61e35935e901e56d | [
"MIT"
] | null | null | null | invoice/apps.py | AhmedElmawary/erp | c998787c62194e26e10e3cbc61e35935e901e56d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class InvoiceConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'invoice'
verbose_name = _("Invoice")
def ready(self):
import invoice.signals
| 26.454545 | 56 | 0.725086 | 34 | 291 | 6.029412 | 0.735294 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19244 | 291 | 10 | 57 | 29.1 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0.147766 | 0.099656 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
17d2e81e8be1bdbc8e1b2314da3e4fcb85e34d0e | 867 | py | Python | 2019/## Python/TADs e Classes/TAD_ponto_heranca.py | ed1rac/AulasEstruturasDados | 1a351abee539a2be5e73cba60a61c3225c80164b | [
"MIT"
] | 8 | 2016-05-06T01:07:21.000Z | 2021-05-27T16:30:17.000Z | 2019/## Python/TADs e Classes/TAD_ponto_heranca.py | ed1rac/AulasEstruturasDados | 1a351abee539a2be5e73cba60a61c3225c80164b | [
"MIT"
] | null | null | null | 2019/## Python/TADs e Classes/TAD_ponto_heranca.py | ed1rac/AulasEstruturasDados | 1a351abee539a2be5e73cba60a61c3225c80164b | [
"MIT"
] | 3 | 2017-06-24T00:49:53.000Z | 2018-03-29T02:09:17.000Z |
class Ponto(object):
def __init__(self, x, y): #método construtor (cria ponto)
self.x = x
self.y = y
def exibe_ponto(self):
print('Coordenadas -> x: ', self.x, ', y: ', self.y)
def set_x(self, x):
self.x = x
def set_y(self, y):
self.y = y
def dis... | 20.642857 | 66 | 0.543253 | 148 | 867 | 3.006757 | 0.256757 | 0.078652 | 0.053933 | 0.053933 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032362 | 0.287197 | 867 | 42 | 66 | 20.642857 | 0.687702 | 0.034602 | 0 | 0.2 | 0 | 0 | 0.080144 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.233333 | false | 0 | 0 | 0 | 0.333333 | 0.1 | 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 | 0 | 0 | 2 |
17dc39411e72dca8b9546af36338b3a22659ef0d | 391 | py | Python | Python-desenvolvimento/ex031.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | Python-desenvolvimento/ex031.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | Python-desenvolvimento/ex031.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | #custo de uma viagem. ate 200km( R$0,50), mais q isso (R$0,45)
distancia = float(input('Informe a distância: '))
print('Por essa distância {}km: '.format(distancia))
if distancia <= 200:
preco = distancia * 0.50
print('O valor da passagem será de R${:.2f}.'.format(preco))
else:
preco = distancia * 0... | 39.1 | 65 | 0.636829 | 62 | 391 | 4.016129 | 0.548387 | 0.016064 | 0.120482 | 0.104418 | 0.329317 | 0.329317 | 0.329317 | 0.329317 | 0.329317 | 0.329317 | 0 | 0.063694 | 0.196931 | 391 | 9 | 66 | 43.444444 | 0.729299 | 0.15601 | 0 | 0.25 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
17e61abab92665223791d7a45feb29e456337411 | 585 | py | Python | package/zimagi/exceptions.py | zimagi/zima | d87b3f91e2fa669a77145413582d636d783a0c71 | [
"Apache-2.0"
] | null | null | null | package/zimagi/exceptions.py | zimagi/zima | d87b3f91e2fa669a77145413582d636d783a0c71 | [
"Apache-2.0"
] | null | null | null | package/zimagi/exceptions.py | zimagi/zima | d87b3f91e2fa669a77145413582d636d783a0c71 | [
"Apache-2.0"
] | null | null | null | import sys
import traceback
def format_exception_info():
exc_type, exc_value, exc_tb = sys.exc_info()
return traceback.format_exception(exc_type, exc_value, exc_tb)
class ParameterError(Exception):
pass
class CodecError(Exception):
pass
class CommandError(Exception):
pass
class CommandClientE... | 16.25 | 66 | 0.762393 | 63 | 585 | 6.920635 | 0.365079 | 0.165138 | 0.165138 | 0.068807 | 0.091743 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167521 | 585 | 35 | 67 | 16.714286 | 0.895277 | 0 | 0 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | true | 0.391304 | 0.086957 | 0 | 0.565217 | 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 | 0 | 0 | 0 | 2 |
17e79f9474f8b4ed2f0c509e70318f07827faf7d | 135 | py | Python | PY_Basics/test_square.py | CodexLink/StashedCodes | ec68c0374ff8bc9ad57cb50e62aa1b4ca405bd4a | [
"Apache-2.0"
] | null | null | null | PY_Basics/test_square.py | CodexLink/StashedCodes | ec68c0374ff8bc9ad57cb50e62aa1b4ca405bd4a | [
"Apache-2.0"
] | 1 | 2022-01-31T03:55:58.000Z | 2022-01-31T03:55:58.000Z | PY_Basics/test_square.py | CodexLink/StashedCodes | ec68c0374ff8bc9ad57cb50e62aa1b4ca405bd4a | [
"Apache-2.0"
] | null | null | null | import math
def test_sqrt():
num = 25
assert math.sqrt(num) == 5
def test_square():
num = 7
assert num * num == 49
| 11.25 | 30 | 0.57037 | 21 | 135 | 3.571429 | 0.571429 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.311111 | 135 | 11 | 31 | 12.272727 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17edc55f5c8d00da58edbf2b04fd598d202aea7b | 1,009 | py | Python | pmworker/document_file.py | ciur/papermerge-worker | cfd863e3f9a4bf2cfc35ce911a4f8ab7ee45bbc7 | [
"Apache-2.0"
] | 2 | 2020-01-08T18:10:46.000Z | 2020-03-29T22:12:00.000Z | pmworker/document_file.py | ciur/papermerge-worker | cfd863e3f9a4bf2cfc35ce911a4f8ab7ee45bbc7 | [
"Apache-2.0"
] | 2 | 2020-07-21T16:34:49.000Z | 2020-07-21T17:24:05.000Z | pmworker/document_file.py | ciur/papermerge-worker | cfd863e3f9a4bf2cfc35ce911a4f8ab7ee45bbc7 | [
"Apache-2.0"
] | 2 | 2020-06-03T00:09:46.000Z | 2020-07-21T16:24:48.000Z | import os
class DocumentFile:
def __init__(self, fmtdirstr, file_name, media_root):
self.fmtdirstr = fmtdirstr
self.file_name = file_name
self.media_root = media_root
@property
def dir_path(self):
return os.path.join(
self.media_root,
self.fmtdirstr... | 19.784314 | 57 | 0.547076 | 114 | 1,009 | 4.622807 | 0.315789 | 0.068311 | 0.068311 | 0.091082 | 0.091082 | 0.091082 | 0 | 0 | 0 | 0 | 0 | 0.001529 | 0.351834 | 1,009 | 50 | 58 | 20.18 | 0.804281 | 0 | 0 | 0.243243 | 0 | 0 | 0.013078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0.135135 | 0.486486 | 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 | 0 | 0 | 0 | 2 |
17f8b78043cfae6a95437ab8d153bff0ef34ac79 | 2,418 | py | Python | copilot-read-email.py | ghoelzer-rht/python-copilot-experiments | 22e8d0f94778fe827d8084212ac36bd0b8853a41 | [
"MIT"
] | null | null | null | copilot-read-email.py | ghoelzer-rht/python-copilot-experiments | 22e8d0f94778fe827d8084212ac36bd0b8853a41 | [
"MIT"
] | null | null | null | copilot-read-email.py | ghoelzer-rht/python-copilot-experiments | 22e8d0f94778fe827d8084212ac36bd0b8853a41 | [
"MIT"
] | null | null | null | # Create program to read email from Gmail account and perform a sentiment analysis on the email.
import imaplib
import email
import email.message
import email.utils
import re
import datetime
import sys
import os
# import pandas as pd
# import numpy as np
# import matplotlib.pyplot as plt
# from matplotlib.b... | 31 | 96 | 0.710918 | 336 | 2,418 | 4.946429 | 0.386905 | 0.092058 | 0.067389 | 0.072202 | 0.028881 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006972 | 0.169562 | 2,418 | 77 | 97 | 31.402597 | 0.820717 | 0.232837 | 0 | 0 | 0 | 0 | 0.130648 | 0.011976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.489362 | 0 | 0.510638 | 0.085106 | 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 | 0 | 1 | 0 | 0 | 2 |
17fa06f0b22792ce08a8082b33e87a145d544e4a | 629 | py | Python | euler/60_1.py | stauntonknight/algorithm | 39dbe6dc952ab7db3a469e1ca785003a4660fedb | [
"CNRI-Python"
] | null | null | null | euler/60_1.py | stauntonknight/algorithm | 39dbe6dc952ab7db3a469e1ca785003a4660fedb | [
"CNRI-Python"
] | null | null | null | euler/60_1.py | stauntonknight/algorithm | 39dbe6dc952ab7db3a469e1ca785003a4660fedb | [
"CNRI-Python"
] | null | null | null | limit = 10000
primes = primelist(limit)
s1 = dict()
s2 = set()
s3 = set()
s4 = set()
for p in primes:
s1[p] = set()
for s in s1:
if isprime(int(str(p) + str(s)), primes) and isprime(int(str(s) + str(p)), primes):
s1[s].add(p)
s1[p].add(s)
s2.add((s, p))
... | 25.16 | 91 | 0.462639 | 137 | 629 | 2.124088 | 0.182482 | 0.103093 | 0.154639 | 0.185567 | 0.343643 | 0.264605 | 0.264605 | 0.264605 | 0.264605 | 0.264605 | 0 | 0.100239 | 0.333863 | 629 | 24 | 92 | 26.208333 | 0.594272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17fea3ff177f3be82b633c513c1b2ea59a9920f3 | 4,857 | py | Python | classNotes/control_structures2,3/Selection3/control_structures.py | minefarmer/Think_like_a_programmer | d6b1363f96600445ea47f91c637c5d0bede2e8f6 | [
"Unlicense"
] | null | null | null | classNotes/control_structures2,3/Selection3/control_structures.py | minefarmer/Think_like_a_programmer | d6b1363f96600445ea47f91c637c5d0bede2e8f6 | [
"Unlicense"
] | null | null | null | classNotes/control_structures2,3/Selection3/control_structures.py | minefarmer/Think_like_a_programmer | d6b1363f96600445ea47f91c637c5d0bede2e8f6 | [
"Unlicense"
] | null | null | null | ''' Control Structures
A statement used to control the flow of execution in a program is called a control structure.
Types of control structures
1. Sequence ******************************************************
In a sequential structure the statements are executed in the same order in which they a... | 31.745098 | 396 | 0.604282 | 661 | 4,857 | 4.419062 | 0.276853 | 0.023964 | 0.037658 | 0.044505 | 0.24204 | 0.201643 | 0.137282 | 0.082506 | 0.082506 | 0.082506 | 0 | 0.022012 | 0.326539 | 4,857 | 152 | 397 | 31.953947 | 0.870987 | 0.996706 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aa110b042895b7a711684ee0679ac44224908ace | 517 | py | Python | tests/test_compose/test_write/test_tag/test_div.py | schireson/htmxl | d4adef9fe0630f39c3664d3913bbbbe3db3ec069 | [
"MIT"
] | 2 | 2021-08-11T15:15:29.000Z | 2022-03-20T04:04:54.000Z | tests/test_compose/test_write/test_tag/test_div.py | schireson/htmxl | d4adef9fe0630f39c3664d3913bbbbe3db3ec069 | [
"MIT"
] | 5 | 2021-08-18T20:54:32.000Z | 2022-01-24T20:06:46.000Z | tests/test_compose/test_write/test_tag/test_div.py | schireson/htmxl | d4adef9fe0630f39c3664d3913bbbbe3db3ec069 | [
"MIT"
] | null | null | null | from tests.utils import WriteTests
class WriteDiv(WriteTests):
fixture_dir = "tests/fixtures/templates/tags/div"
class TestAdjacentDivs(WriteDiv):
template_file = "adjacent_divs.html.jinja2"
expected_result_file = "adjacent_divs.xlsx"
class TestContainedDivs(WriteDiv):
template_file = "contained_d... | 24.619048 | 53 | 0.775629 | 62 | 517 | 6.177419 | 0.451613 | 0.125326 | 0.156658 | 0.18799 | 0.240209 | 0.167102 | 0 | 0 | 0 | 0 | 0 | 0.006696 | 0.133462 | 517 | 20 | 54 | 25.85 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0.321083 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
aa1dc210af3f7972d1f905e24374d7526d9857de | 309 | py | Python | cupy/cuda/cutensor.py | prkhrsrvstv1/cupy | ea86c8225b575af9d2855fb77a306cf86fd098ea | [
"MIT"
] | 6,180 | 2016-11-01T14:22:30.000Z | 2022-03-31T08:39:20.000Z | cupy/cuda/cutensor.py | prkhrsrvstv1/cupy | ea86c8225b575af9d2855fb77a306cf86fd098ea | [
"MIT"
] | 6,281 | 2016-12-22T07:42:31.000Z | 2022-03-31T19:57:02.000Z | cupy/cuda/cutensor.py | prkhrsrvstv1/cupy | ea86c8225b575af9d2855fb77a306cf86fd098ea | [
"MIT"
] | 829 | 2017-02-23T05:46:12.000Z | 2022-03-27T17:40:03.000Z | """
cuTENSOR Wrapper
Use `cupy_backends.cuda.libs.cutensor` directly in CuPy codebase.
"""
available = True
try:
from cupy_backends.cuda.libs.cutensor import * # NOQA
except ImportError as e:
available = False
from cupy._environment import _preload_warning
_preload_warning('cutensor', e)
| 20.6 | 65 | 0.7411 | 39 | 309 | 5.692308 | 0.615385 | 0.108108 | 0.144144 | 0.18018 | 0.252252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171521 | 309 | 14 | 66 | 22.071429 | 0.867188 | 0.288026 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 2 |
aa25245dfeeb1d835d48af16326bbc86862accb6 | 736 | py | Python | tools/leetcode.125.Valid Palindrome/leetcode.125.Valid Palindrome.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.125.Valid Palindrome/leetcode.125.Valid Palindrome.submission11.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.125.Valid Palindrome/leetcode.125.Valid Palindrome.submission11.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @param s, a string
# @return a boolean
def isPalindrome(self, s):
if not s:return True
s = s.lower()
puncset = [',','.',':','\'','\"','?','!',';','/','(',')','[',']','-',' ','@','#','$','%','^','&','*','_','+','~','`','\\','{','}','|','<','>']
posl = 0
... | 736 | 736 | 0.370924 | 79 | 736 | 3.443038 | 0.329114 | 0.058824 | 0.036765 | 0.110294 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017505 | 0.379076 | 736 | 1 | 736 | 736 | 0.577681 | 0.048913 | 0 | 0.222222 | 0 | 0 | 0.045845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aa2cb5cd51037d53d649dce14987e1f6c44fc8bb | 950 | py | Python | OOP/Classes and objectives excercise/To-do-list/project/task.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | 2 | 2022-03-05T13:17:12.000Z | 2022-03-05T13:17:16.000Z | OOP/Classes and objectives excercise/To-do-list/project/task.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | OOP/Classes and objectives excercise/To-do-list/project/task.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | class Task:
def __init__(self,name,due_date):
self.name = name
self.due_date = due_date
self.comments=[]
self.completed=False
def change_name(self,new_name:str):
if self.name==new_name:
return f"Name cannot be the same."
self.name=new_name
ret... | 30.645161 | 63 | 0.627368 | 135 | 950 | 4.214815 | 0.259259 | 0.110721 | 0.096661 | 0.052724 | 0.27768 | 0.084359 | 0 | 0 | 0 | 0 | 0 | 0.001431 | 0.264211 | 950 | 30 | 64 | 31.666667 | 0.812589 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0 | 0.04 | 0.56 | 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 | 0 | 1 | 0 | 0 | 2 |
aa48dd743674319ae62bf6b36d23173d72bf7f45 | 364 | py | Python | python_practice/data_structure/queue/queue_linked_listTest.py | jeremykid/FunAlgorithm | 0ee34f130574d2a42ce995a1a44545a7368f9add | [
"MIT"
] | null | null | null | python_practice/data_structure/queue/queue_linked_listTest.py | jeremykid/FunAlgorithm | 0ee34f130574d2a42ce995a1a44545a7368f9add | [
"MIT"
] | null | null | null | python_practice/data_structure/queue/queue_linked_listTest.py | jeremykid/FunAlgorithm | 0ee34f130574d2a42ce995a1a44545a7368f9add | [
"MIT"
] | null | null | null | from queue_link_list import queue_linked_list
def test1():
QLL = queue_linked_list()
QLL.enqueue('A')
QLL.enqueue('B')
QLL.enqueue('C')
print "1. QLL = ",QLL
QLL.enqueue('D')
print "2. After QLL.enqueue('D') QLL = ",QLL
print "3. After QLL.empty() = ",QLL.empty()
QLL.dequeue()
print "4. After QLL.dequeue()... | 19.157895 | 46 | 0.642857 | 58 | 364 | 3.931034 | 0.396552 | 0.219298 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0.164835 | 364 | 19 | 47 | 19.157895 | 0.730263 | 0 | 0 | 0 | 0 | 0 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.266667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a4ad67b3abfdef372b0d8658d99527db133840f8 | 5,369 | py | Python | test/python/topology/test2_spl_window.py | markheger/streamsx.topology | 8118513146399fa6a9490a1debd8037615d7acd1 | [
"Apache-2.0"
] | 31 | 2015-06-24T06:21:14.000Z | 2020-08-28T21:45:50.000Z | test/python/topology/test2_spl_window.py | markheger/streamsx.topology | 8118513146399fa6a9490a1debd8037615d7acd1 | [
"Apache-2.0"
] | 1,203 | 2015-06-15T02:11:49.000Z | 2021-03-22T09:47:54.000Z | test/python/topology/test2_spl_window.py | markheger/streamsx.topology | 8118513146399fa6a9490a1debd8037615d7acd1 | [
"Apache-2.0"
] | 53 | 2015-05-28T21:14:16.000Z | 2021-12-23T12:58:59.000Z | # Licensed Materials - Property of IBM
# Copyright IBM Corp. 2016
import unittest
import sys
import itertools
import threading
from streamsx.topology.topology import *
from streamsx.topology.tester import Tester
from streamsx.topology import schema
import streamsx.topology.context
from streamsx.topology.context import... | 34.197452 | 82 | 0.566772 | 634 | 5,369 | 4.716088 | 0.175079 | 0.034783 | 0.037458 | 0.025084 | 0.738127 | 0.678595 | 0.668562 | 0.668562 | 0.668562 | 0.655853 | 0 | 0.021095 | 0.302477 | 5,369 | 156 | 83 | 34.416667 | 0.777303 | 0.026076 | 0 | 0.714286 | 0 | 0 | 0.135057 | 0.023946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067227 | false | 0 | 0.092437 | 0.008403 | 0.184874 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a4b0521ba31d273cd2922f507353c4b1a300dd0e | 1,139 | py | Python | adt/core.py | catethos/adt | eccf6286d1d650298a7bb2ce9b14f1987439f44d | [
"MIT"
] | null | null | null | adt/core.py | catethos/adt | eccf6286d1d650298a7bb2ce9b14f1987439f44d | [
"MIT"
] | null | null | null | adt/core.py | catethos/adt | eccf6286d1d650298a7bb2ce9b14f1987439f44d | [
"MIT"
] | null | null | null | from pampy import match, _
from dataclasses import dataclass
from typing import TypeVar, Generic
T = TypeVar('T')
class Matcher:
def __init__(self):
self.pattern = []
def __setitem__(self, pat, method):
self.pattern.append(pat)
self.pattern.append(method)
def __call__(... | 23.729167 | 72 | 0.550483 | 124 | 1,139 | 4.669355 | 0.451613 | 0.048359 | 0.056995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00267 | 0.342406 | 1,139 | 48 | 73 | 23.729167 | 0.77036 | 0 | 0 | 0.142857 | 0 | 0 | 0.027193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.085714 | 0.085714 | 0.028571 | 0.485714 | 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 | 0 | 0 | 0 | 2 |
a4b46975023e3860d8743a5e9ea43df11558a0d8 | 490 | py | Python | manage.py | PapaCharlie/SteamReviews | 41a72c71314c93bf9ffdd3e17d66f4e458a2411b | [
"MIT"
] | null | null | null | manage.py | PapaCharlie/SteamReviews | 41a72c71314c93bf9ffdd3e17d66f4e458a2411b | [
"MIT"
] | null | null | null | manage.py | PapaCharlie/SteamReviews | 41a72c71314c93bf9ffdd3e17d66f4e458a2411b | [
"MIT"
] | null | null | null | import nltk
import os
from flask_script import Manager
from app import app
from app.dynamodb.utils import create_dynamo_table
from app.models.review import Review
from app.models.game import Game
from app.models.tag import Tag
manager = Manager(app)
@manager.command
def create_tables():
create_dynamo_table(Revie... | 19.6 | 50 | 0.773469 | 72 | 490 | 5 | 0.375 | 0.097222 | 0.188889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144898 | 490 | 24 | 51 | 20.416667 | 0.859189 | 0 | 0 | 0.105263 | 0 | 0 | 0.026531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.421053 | 0 | 0.526316 | 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 | 0 | 0 | 0 | 2 |
a4c095beec687b0f10b812a9dc795471f7a40d81 | 1,434 | py | Python | src/pyexpressions/highlevel/PyScoped.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | null | null | null | src/pyexpressions/highlevel/PyScoped.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | 9 | 2022-02-23T10:32:44.000Z | 2022-03-27T17:55:43.000Z | src/pyexpressions/highlevel/PyScoped.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | null | null | null | """
Python object which manages it's own private scope.
"""
from _ast import AST
from abc import ABCMeta
from typing import Optional
from src.pyexpressions.abstract.PyExpression import PyExpression
from src.scopes.Scope import Scope
from src.structures.TypeRenames import GENERIC_PYEXPR_TYPE
class PyScoped(PyExpressi... | 29.265306 | 79 | 0.67643 | 180 | 1,434 | 5.216667 | 0.505556 | 0.047923 | 0.036209 | 0.051118 | 0.089457 | 0.089457 | 0.089457 | 0.089457 | 0.089457 | 0 | 0 | 0 | 0.253138 | 1,434 | 48 | 80 | 29.875 | 0.876751 | 0.380056 | 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 | 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 | 2 |
a4f0b3d0e87958725f249387998ff64515858a05 | 550 | py | Python | test/day_10/test_pt1.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | test/day_10/test_pt1.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | test/day_10/test_pt1.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | import unittest
from test.std_test_utils import STDIOTest
from teagles_advent_2021.day_10.pt1 import main
TEST_INPUT = """[({(<(())[]>[[{[]{<()<>>
[(()[<>])]({[<{<<[]>>(
{([(<{}[<>[]}>{[]{[(<()>
(((({<>}<{<{<>}{[]{[]{}
[[<[([]))<([[{}[[()]]]
[{[{({}]{}}([{[{{{}}([]
{<[[]]>}<{[{[{[]{()[[[]
[<(<(<(<{}))><([]([]()
<{([(... | 21.153846 | 60 | 0.421818 | 44 | 550 | 4.795455 | 0.636364 | 0.075829 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030426 | 0.103636 | 550 | 25 | 61 | 22 | 0.397566 | 0 | 0 | 0 | 0 | 0 | 0.461818 | 0.416364 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a4fc0592658c5692d49789e2a711359f202775aa | 304 | py | Python | LDA_qje/policy_relevant_topics.py | erialc-cal/NLP-FOMC | 2a8ad113a87e79f5d7beefa6cfd4653f445c92d5 | [
"MIT"
] | null | null | null | LDA_qje/policy_relevant_topics.py | erialc-cal/NLP-FOMC | 2a8ad113a87e79f5d7beefa6cfd4653f445c92d5 | [
"MIT"
] | null | null | null | LDA_qje/policy_relevant_topics.py | erialc-cal/NLP-FOMC | 2a8ad113a87e79f5d7beefa6cfd4653f445c92d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 11 11:47:23 2021
@author: Claire He
Selecting Topics : paper suggest topic selection policy-wise using Meade (2017)
work on dissent in policies. We may want to use the same method to select
Using Lasso regression shrinkage
"""
| 20.266667 | 79 | 0.720395 | 49 | 304 | 4.469388 | 0.918367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072581 | 0.184211 | 304 | 14 | 80 | 21.714286 | 0.810484 | 0.953947 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
35054baf837b25d80b136ba45f8010086cf84e61 | 268 | py | Python | Python101/Challenges/14.py | Yuma-Tsushima07/Python101 | 2f1146f9c30914516fe5152a96779d98c2da9923 | [
"Apache-2.0"
] | 1 | 2021-12-24T02:59:15.000Z | 2021-12-24T02:59:15.000Z | Python101/Challenges/14.py | Yuma-Tsushima07/Python101 | 2f1146f9c30914516fe5152a96779d98c2da9923 | [
"Apache-2.0"
] | null | null | null | Python101/Challenges/14.py | Yuma-Tsushima07/Python101 | 2f1146f9c30914516fe5152a96779d98c2da9923 | [
"Apache-2.0"
] | 1 | 2021-12-24T02:59:19.000Z | 2021-12-24T02:59:19.000Z | print('Challenge 14: WAF to check if a number is present in a list or not.')
test_list = [ 1, 6, 3, 5, 3, 4 ]
print("Checking if 6 exists in list: ")
# Checking if 6 exists in list
# using loop
for i in test_list:
if(i == 6) :
print ("Element Exists") | 24.363636 | 76 | 0.626866 | 50 | 268 | 3.32 | 0.56 | 0.096386 | 0.13253 | 0.204819 | 0.277108 | 0.277108 | 0 | 0 | 0 | 0 | 0 | 0.055276 | 0.257463 | 268 | 11 | 77 | 24.363636 | 0.778894 | 0.145522 | 0 | 0 | 0 | 0 | 0.488987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
350b87ad6dba0c26ad3c46d36ce11cfa872b5f46 | 297 | py | Python | zip.py | aziz-alqudsy/basic-python | 3baf40a7786a0d320380b4ae6e5ba311a7ac6ca7 | [
"Unlicense"
] | null | null | null | zip.py | aziz-alqudsy/basic-python | 3baf40a7786a0d320380b4ae6e5ba311a7ac6ca7 | [
"Unlicense"
] | null | null | null | zip.py | aziz-alqudsy/basic-python | 3baf40a7786a0d320380b4ae6e5ba311a7ac6ca7 | [
"Unlicense"
] | null | null | null | # dictionaries
friends = ["john", "andre", "mark", "robert"]
ages = [23, 43, 54, 12]
biodatas_dict = dict(zip(friends, ages))
print(biodatas_dict)
# list
biodatas_list = list(zip(friends, ages))
print(biodatas_list)
# tuple
biodatas_tuple = tuple(zip(friends, ages))
print(biodatas_tuple)
| 14.85 | 45 | 0.703704 | 40 | 297 | 5.075 | 0.425 | 0.147783 | 0.206897 | 0.280788 | 0.399015 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.138047 | 297 | 19 | 46 | 15.631579 | 0.761719 | 0.077441 | 0 | 0 | 0 | 0 | 0.07037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 | 0 | 0 | 0 | 2 |
3510cdc12e64c5b60e70dd1bed43f972420aff62 | 1,435 | py | Python | views/spot.py | sbutler/spacescout_web | 848a3470710f61ff8e86935aa97f4f37d2c5a10b | [
"Apache-2.0"
] | null | null | null | views/spot.py | sbutler/spacescout_web | 848a3470710f61ff8e86935aa97f4f37d2c5a10b | [
"Apache-2.0"
] | null | null | null | views/spot.py | sbutler/spacescout_web | 848a3470710f61ff8e86935aa97f4f37d2c5a10b | [
"Apache-2.0"
] | null | null | null | """ Copyright 2012, 2013 UW Information Technology, University of Washington
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 r... | 37.763158 | 110 | 0.738676 | 197 | 1,435 | 5.304569 | 0.558376 | 0.057416 | 0.031579 | 0.030622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020815 | 0.196516 | 1,435 | 37 | 111 | 38.783784 | 0.885516 | 0.41324 | 0 | 0 | 0 | 0 | 0.073935 | 0.031328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.526316 | 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 | 0 | 1 | 0 | 0 | 2 |
3521d1a09c59f9a53a319a748fac2a404812ad51 | 1,813 | py | Python | dec_6/dec_6.py | gasparia405/aoc2021 | 2a0faeff0c45b001073ba363f4f4693a876127fd | [
"MIT"
] | null | null | null | dec_6/dec_6.py | gasparia405/aoc2021 | 2a0faeff0c45b001073ba363f4f4693a876127fd | [
"MIT"
] | null | null | null | dec_6/dec_6.py | gasparia405/aoc2021 | 2a0faeff0c45b001073ba363f4f4693a876127fd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
def count_fish(lanternfish: list, repro_day: int) -> int:
return len([x for x in lanternfish if x == repro_day])
def pass_one_day(fish_age_hash: dict, day: int, lanternfish: list=None):
if day == 0:
if not lanternfish:
raise AttributeError("Error: lanternfish list mus... | 34.865385 | 81 | 0.602868 | 254 | 1,813 | 4.035433 | 0.291339 | 0.150244 | 0.236098 | 0.058537 | 0.300488 | 0.28 | 0.259512 | 0.20878 | 0.20878 | 0.152195 | 0 | 0.019245 | 0.254826 | 1,813 | 51 | 82 | 35.54902 | 0.739452 | 0.025372 | 0 | 0.2 | 0 | 0 | 0.11401 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0 | 0.025 | 0.1 | 0.05 | 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 | 0 | 0 | 0 | 2 |
35243ea822d56b28faa8e676dd6b07e0120cec51 | 216 | py | Python | chapter6/6_9Decoding and Encoding Hexadecimal Digits/6_9.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | chapter6/6_9Decoding and Encoding Hexadecimal Digits/6_9.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | chapter6/6_9Decoding and Encoding Hexadecimal Digits/6_9.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | s = b'Hello World'
import binascii
h = binascii.b2a_hex( s )
print( h )
print( binascii.a2b_hex( h ))
import base64
h = base64.b16encode( s )
print( h )
print( base64.b16decode( h ) )
print( h.decode('ascii')) | 14.4 | 30 | 0.662037 | 34 | 216 | 4.147059 | 0.470588 | 0.12766 | 0.099291 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068571 | 0.189815 | 216 | 15 | 31 | 14.4 | 0.737143 | 0 | 0 | 0.2 | 0 | 0 | 0.073733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
3525a302f47e24c6aa08d2a3d44a3634c43dd8d6 | 439 | py | Python | invenio_app/wsgi_ui.py | topless/invenio-app | 2b5a2e6f416e7115d211408171a87fc2b4da16ee | [
"MIT"
] | null | null | null | invenio_app/wsgi_ui.py | topless/invenio-app | 2b5a2e6f416e7115d211408171a87fc2b4da16ee | [
"MIT"
] | null | null | null | invenio_app/wsgi_ui.py | topless/invenio-app | 2b5a2e6f416e7115d211408171a87fc2b4da16ee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""UI-only WSGI application for Invenio flavours."""
from __future__ import absolute... | 25.823529 | 72 | 0.742597 | 66 | 439 | 4.818182 | 0.681818 | 0.09434 | 0.113208 | 0.157233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0.166287 | 439 | 16 | 73 | 27.4375 | 0.844262 | 0.685649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 2 |
3528001b4fd3a32cc7c106dfebd4d91edcd6fabb | 727 | py | Python | assets/scripts/test_tmx.py | hanselrd/bubble-warriors-adventure | 7dd9639102ff25a2aa430162d9c472d7a157ee22 | [
"MIT"
] | 1 | 2021-01-22T04:27:48.000Z | 2021-01-22T04:27:48.000Z | assets/scripts/test_tmx.py | kjolicoeur/Bubble_Warrior_Adventures | 7dd9639102ff25a2aa430162d9c472d7a157ee22 | [
"MIT"
] | 4 | 2017-02-07T04:12:39.000Z | 2017-12-21T09:52:40.000Z | assets/scripts/test_tmx.py | kjolicoeur/Bubble_Warrior_Adventures | 7dd9639102ff25a2aa430162d9c472d7a157ee22 | [
"MIT"
] | 3 | 2017-01-30T21:53:52.000Z | 2018-06-02T22:34:03.000Z | def main(map):
from game import settings
from game.tmx import Map, Layer
print('Map [%s]:' % 'some map')
print(' width:', map.width)
print(' height:', map.height)
print(' tilewidth:', map.tilewidth)
print(' tileheight:', map.tileheight)
print(' layers:')
for layer in map.layers... | 31.608696 | 82 | 0.511692 | 93 | 727 | 4 | 0.387097 | 0.053763 | 0.075269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324622 | 727 | 22 | 83 | 33.045455 | 0.757637 | 0.078404 | 0 | 0 | 0 | 0 | 0.14093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.117647 | 0 | 0.176471 | 0.470588 | 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 | 0 | 0 | 1 | 0 | 2 |
352933c9c79e594541953480eaddc772d9e51e73 | 407 | py | Python | Rustik Bot/config.py | Creveoolus/youtube-discord-bot | 556b143e11dc9051a279c1c5aa9dcc40c369275b | [
"MIT"
] | null | null | null | Rustik Bot/config.py | Creveoolus/youtube-discord-bot | 556b143e11dc9051a279c1c5aa9dcc40c369275b | [
"MIT"
] | 1 | 2021-12-10T13:57:34.000Z | 2021-12-10T13:57:34.000Z | Rustik Bot/config.py | Creveoolus/youtube-discord-bot | 556b143e11dc9051a279c1c5aa9dcc40c369275b | [
"MIT"
] | null | null | null | token = 'Ndhhfghfgh'
firebase = {
"apiKey": "AIzaSyBYHMxJYFVWP6xH55gAY1TJpVECq4KRjKM",
"authDomain": "test24-13912.firebaseapp.com",
"databaseURL": "https://test24-13912-default-rtdb.firebaseio.com",
"projectId": "test24-13912",
"storageBucket": "test24-13912.appspot.com",
"messagingSenderId": "939334214645",
"... | 33.916667 | 67 | 0.746929 | 36 | 407 | 8.444444 | 0.75 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207447 | 0.076167 | 407 | 12 | 68 | 33.916667 | 0.601064 | 0 | 0 | 0 | 0 | 0 | 0.759804 | 0.323529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
352cbaff8e07c799b0e7ab33bc04fc456ff7ed99 | 708 | py | Python | flash/image/__init__.py | tszumowski/lightning-flash | d094fee4065d3d8d1337eed451041ee17fdf50aa | [
"Apache-2.0"
] | null | null | null | flash/image/__init__.py | tszumowski/lightning-flash | d094fee4065d3d8d1337eed451041ee17fdf50aa | [
"Apache-2.0"
] | null | null | null | flash/image/__init__.py | tszumowski/lightning-flash | d094fee4065d3d8d1337eed451041ee17fdf50aa | [
"Apache-2.0"
] | 1 | 2021-07-14T09:17:46.000Z | 2021-07-14T09:17:46.000Z | from flash.image.backbones import OBJ_DETECTION_BACKBONES # noqa: F401
from flash.image.classification import ( # noqa: F401
ImageClassificationData,
ImageClassificationPreprocess,
ImageClassifier,
)
from flash.image.classification.backbones import IMAGE_CLASSIFIER_BACKBONES # noqa: F401
from flash.image... | 44.25 | 110 | 0.812147 | 69 | 708 | 8.26087 | 0.391304 | 0.110526 | 0.17193 | 0.119298 | 0.185965 | 0.108772 | 0 | 0 | 0 | 0 | 0 | 0.034036 | 0.128531 | 708 | 15 | 111 | 47.2 | 0.889789 | 0.107345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.466667 | 0 | 0.466667 | 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 | 0 | 0 | 0 | 2 |
3530f34f7789755ca3481c7d9d71788916cc2c8e | 618 | py | Python | tests/PhuongHoang/Object.py | PhuongHoang1182/consensus-specs | 8b337b18a098a246e9329d87da27a74fa0c2e127 | [
"CC0-1.0"
] | null | null | null | tests/PhuongHoang/Object.py | PhuongHoang1182/consensus-specs | 8b337b18a098a246e9329d87da27a74fa0c2e127 | [
"CC0-1.0"
] | null | null | null | tests/PhuongHoang/Object.py | PhuongHoang1182/consensus-specs | 8b337b18a098a246e9329d87da27a74fa0c2e127 | [
"CC0-1.0"
] | null | null | null | class person:
def __init__(self, first_name, last_name, age):
self.first_name = first_name
self.last_name = last_name
self.age = age
def get_full_name(self):
return f"{self.first_name} {self.last_name}"
def introduce(self):
return f"Hi. I'm {self.first_name}. {se... | 25.75 | 87 | 0.661812 | 96 | 618 | 4.03125 | 0.322917 | 0.139535 | 0.134367 | 0.131783 | 0.183463 | 0.129199 | 0 | 0 | 0 | 0 | 0 | 0.003992 | 0.18932 | 618 | 24 | 88 | 25.75 | 0.768463 | 0.208738 | 0 | 0 | 0 | 0.083333 | 0.30123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.166667 | 0.5 | 0.083333 | 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 | 0 | 0 | 0 | 2 |
3531f5073227dab1626d1fb4be987dddc8b6acf9 | 457 | py | Python | bmtk/tests/simulator/bionet/conftest.py | mjhyman/bmtk | 42dcce944fe8ff8cab02b19d2d983f73a8cbc0d1 | [
"BSD-3-Clause"
] | 1 | 2020-08-12T23:02:05.000Z | 2020-08-12T23:02:05.000Z | bmtk/tests/simulator/bionet/conftest.py | mjhyman/bmtk | 42dcce944fe8ff8cab02b19d2d983f73a8cbc0d1 | [
"BSD-3-Clause"
] | null | null | null | bmtk/tests/simulator/bionet/conftest.py | mjhyman/bmtk | 42dcce944fe8ff8cab02b19d2d983f73a8cbc0d1 | [
"BSD-3-Clause"
] | null | null | null | try:
import bmtk.simulator.bionet as bionet
from bmtk.simulator.bionet.gids import GidPool
from bmtk.simulator.bionet.pyfunction_cache import *
from neuron import h
h.load_file('stdrun.hoc')
nrn_installed = True
except ImportError:
nrn_installed = False
has_mechanism = False
if nrn_... | 19.869565 | 56 | 0.689278 | 56 | 457 | 5.482143 | 0.5 | 0.127036 | 0.185668 | 0.149837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247265 | 457 | 22 | 57 | 20.772727 | 0.892442 | 0 | 0 | 0.25 | 0 | 0 | 0.021882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 2 |
35343013d2b151eb09f935dea4d3e42e18e34147 | 1,284 | py | Python | govhack/models.py | MatthewJA/govhack-2016 | 23bc471530edcf3324e9ebf517a263c95c00f940 | [
"MIT"
] | null | null | null | govhack/models.py | MatthewJA/govhack-2016 | 23bc471530edcf3324e9ebf517a263c95c00f940 | [
"MIT"
] | 4 | 2016-07-30T07:15:45.000Z | 2016-09-25T12:06:10.000Z | govhack/models.py | MatthewJA/govhack-2016 | 23bc471530edcf3324e9ebf517a263c95c00f940 | [
"MIT"
] | null | null | null | import sqlalchemy as sa
import sqlalchemy.ext as ext
import sqlalchemy.ext.declarative
import sqlalchemy.orm as orm
from .database import Base
class InterestingTrend():
def __init__(self, title, description):
self.title = title
self.description = description
def to_dict(self):
return ... | 26.204082 | 65 | 0.623053 | 151 | 1,284 | 5.086093 | 0.245033 | 0.0625 | 0.078125 | 0.083333 | 0.164063 | 0.164063 | 0.164063 | 0.164063 | 0 | 0 | 0 | 0 | 0.253115 | 1,284 | 49 | 66 | 26.204082 | 0.800834 | 0 | 0 | 0.153846 | 0 | 0 | 0.061479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.128205 | 0.102564 | 0.692308 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
353fb3caa2c55e8b64b8c5452df130810410263b | 459 | py | Python | fdk_client/application/models/StoreManagerSerializer.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/application/models/StoreManagerSerializer.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/application/models/StoreManagerSerializer.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | """Application Models."""
from marshmallow import fields, Schema
from marshmallow.validate import OneOf
from ..enums import *
from ..models.BaseSchema import BaseSchema
from .SellerPhoneNumber import SellerPhoneNumber
class StoreManagerSerializer(BaseSchema):
# Catalog swagger.json
mobile_no = fie... | 17.653846 | 64 | 0.736383 | 47 | 459 | 7.170213 | 0.531915 | 0.115727 | 0.10089 | 0.130564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183007 | 459 | 25 | 65 | 18.36 | 0.898667 | 0.089325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1025e21562f47b1a956eb59602316084e0e7e2ed | 988 | py | Python | aphla/contrib/extendwf.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | null | null | null | aphla/contrib/extendwf.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | 1 | 2020-02-17T18:56:18.000Z | 2020-02-20T17:06:20.000Z | aphla/contrib/extendwf.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T16:07:11.000Z | 2021-03-08T16:07:11.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
from numpy import *
import os
import commands
import time
import datetime
import re
import string
import sys
# python
'''
from extendwf import *
outputwf=extendwf(Nwflength,inputwf)
Nwflength:output wavefor... | 22.976744 | 130 | 0.713563 | 125 | 988 | 5.592 | 0.408 | 0.080114 | 0.103004 | 0.074392 | 0.457797 | 0.457797 | 0.457797 | 0.457797 | 0.457797 | 0.457797 | 0 | 0.002545 | 0.204453 | 988 | 42 | 131 | 23.52381 | 0.886768 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.473684 | 0 | 0.578947 | 0.105263 | 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 | 0 | 1 | 0 | 0 | 2 |
1036e415e967b31c75562b66c1b8ddd57695f684 | 467 | py | Python | python/tests/test_insertion_sort.py | arahal81/data-structures-and-algorithms | 5af09fec2c485def6c3485deb4a46a59d3923742 | [
"MIT"
] | null | null | null | python/tests/test_insertion_sort.py | arahal81/data-structures-and-algorithms | 5af09fec2c485def6c3485deb4a46a59d3923742 | [
"MIT"
] | 6 | 2021-08-07T09:35:08.000Z | 2021-09-14T06:32:15.000Z | python/tests/test_insertion_sort.py | arahal81/data-structures-and-algorithms | 5af09fec2c485def6c3485deb4a46a59d3923742 | [
"MIT"
] | null | null | null | from insertion_sort.insertion_sort import insertion_Sort
import pytest
@pytest.mark.parametrize(
"input,expected_value",
[
([8, 4, 23, 42, 16, 15], [4, 8, 15, 16, 23, 42]),
([20, 18, 12, 8, 5, -2], [-2, 5, 8, 12, 18, 20]),
([5, 12, 7, 5, 5, 7], [5, 5, 5, 7, 7, 12]),
([2, 3, 5, ... | 27.470588 | 57 | 0.546039 | 77 | 467 | 3.194805 | 0.38961 | 0.211382 | 0.219512 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194286 | 0.250535 | 467 | 16 | 58 | 29.1875 | 0.508571 | 0 | 0 | 0 | 0 | 0 | 0.042827 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10378133e5bfb17bae12ce187eeab947f299838c | 30,338 | py | Python | pysnmp/HPN-ICF-FLASH-MAN-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HPN-ICF-FLASH-MAN-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HPN-ICF-FLASH-MAN-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HPN-ICF-FLASH-MAN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-FLASH-MAN-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:26:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 141.766355 | 4,170 | 0.740556 | 3,648 | 30,338 | 6.158169 | 0.083333 | 0.01095 | 0.014422 | 0.016025 | 0.439172 | 0.335722 | 0.278611 | 0.264278 | 0.242243 | 0.229646 | 0 | 0.08846 | 0.092293 | 30,338 | 213 | 4,171 | 142.431925 | 0.727322 | 0.011075 | 0 | 0.059406 | 0 | 0 | 0.177241 | 0.083519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019802 | 0.049505 | 0 | 0.108911 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
103d9af57775dad1a7d0d2bf077cd48e761a32d1 | 16,246 | py | Python | pysnmp-with-texts/BENU-IP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/BENU-IP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/BENU-IP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BENU-IP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BENU-IP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:37:23 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 114.408451 | 1,976 | 0.797981 | 1,745 | 16,246 | 7.42808 | 0.163897 | 0.07684 | 0.13447 | 0.012344 | 0.422311 | 0.283675 | 0.15638 | 0.121509 | 0.114566 | 0.113563 | 0 | 0.101896 | 0.081189 | 16,246 | 141 | 1,977 | 115.219858 | 0.766463 | 0.019451 | 0 | 0 | 0 | 0.015038 | 0.203316 | 0.004836 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06015 | 0 | 0.06015 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
103fdd1db8e5ea1dc43eaf73363e4c653e00c6be | 410 | py | Python | pinterest_problems/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 129 | 2018-10-14T17:52:29.000Z | 2022-01-29T15:45:57.000Z | pinterest_problems/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 2 | 2019-11-30T23:28:23.000Z | 2020-01-03T16:30:32.000Z | pinterest_problems/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 60 | 2019-02-21T09:18:31.000Z | 2022-03-25T21:01:04.000Z | """This problem was asked by Pinterest.
At a party, there is a single person who everyone knows, but who does not
know anyone in return (the "celebrity"). To help figure out who this is,
you have access to an O(1) method called knows(a, b), which returns True
if person a knows person b, else False.
Given a list of... | 41 | 74 | 0.736585 | 78 | 410 | 3.871795 | 0.717949 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 0.197561 | 410 | 10 | 75 | 41 | 0.914894 | 0.982927 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10534452b01f12728d6ebb8026ce4aee623060b8 | 842 | py | Python | hobbies/models.py | ablades/sideline | 8a153da3da0cb0de84cd15751c055f4c625f2f5f | [
"MIT"
] | 1 | 2020-05-11T08:32:01.000Z | 2020-05-11T08:32:01.000Z | hobbies/models.py | ablades/sideline | 8a153da3da0cb0de84cd15751c055f4c625f2f5f | [
"MIT"
] | 7 | 2021-03-19T00:25:46.000Z | 2022-03-12T00:22:45.000Z | hobbies/models.py | ablades/sideline | 8a153da3da0cb0de84cd15751c055f4c625f2f5f | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
class Hobbies(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
img_url = models.URLField(max_length=1000, default="https://www.okea.... | 40.095238 | 121 | 0.745843 | 117 | 842 | 5.230769 | 0.495727 | 0.065359 | 0.068627 | 0.083333 | 0.207516 | 0.207516 | 0.207516 | 0.160131 | 0.160131 | 0.160131 | 0 | 0.017931 | 0.138955 | 842 | 21 | 122 | 40.095238 | 0.826207 | 0 | 0 | 0 | 0 | 0.058824 | 0.093713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0.117647 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
1055fd2c41567ab5c8c4954ca3760b72c1c158c1 | 271,367 | py | Python | tests/integration_tests/test_resources/general_value.py | JobtechSwe/elastic-importers | ae370984f79295a784350f98e695977a1f73647a | [
"Apache-2.0"
] | 2 | 2020-03-02T18:29:08.000Z | 2021-06-09T00:48:24.000Z | tests/integration_tests/test_resources/general_value.py | JobtechSwe/elastic-importers | ae370984f79295a784350f98e695977a1f73647a | [
"Apache-2.0"
] | 12 | 2019-01-31T09:54:23.000Z | 2021-10-04T11:25:44.000Z | tests/integration_tests/test_resources/general_value.py | JobtechSwe/elastic-importers | ae370984f79295a784350f98e695977a1f73647a | [
"Apache-2.0"
] | 1 | 2018-11-09T14:44:55.000Z | 2018-11-09T14:44:55.000Z | general_value_test_cases = [( {'type': 'driving-licence', 'id': '4HpY_e2U_TUH', 'preferred_label': 'AM', 'deprecated_legacy_id': '16'},
'driving-license', {'legacy_ams_taxonomy_id': '16', 'type': 'driving-license', 'label': 'AM', 'concept_id': '4HpY_e2U_TUH', 'legacy_ams_taxonomy_num_id': 16}),
( {'type': 'driving-li... | 96.297729 | 261 | 0.702783 | 35,939 | 271,367 | 4.914772 | 0.124489 | 0.09569 | 0.180749 | 0.101007 | 0.476901 | 0.279796 | 0.249004 | 0.230519 | 0.220606 | 0.216897 | 0 | 0.044719 | 0.079457 | 271,367 | 2,818 | 262 | 96.297729 | 0.662329 | 0 | 0 | 0 | 0 | 0 | 0.700359 | 0.219337 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1065e5fee1d50967007a9bea10c2e8609545c1ac | 252 | py | Python | gallry/models.py | Evan-cell/gallery | 4850f9927bc5f8f6827822db42961a8ded9cb602 | [
"Unlicense"
] | null | null | null | gallry/models.py | Evan-cell/gallery | 4850f9927bc5f8f6827822db42961a8ded9cb602 | [
"Unlicense"
] | null | null | null | gallry/models.py | Evan-cell/gallery | 4850f9927bc5f8f6827822db42961a8ded9cb602 | [
"Unlicense"
] | null | null | null |
import datetime as dt
from django.db import models
from cloudinary.models import CloudinaryField
class photos(models.Model):
# title field
title = models.CharField(max_length=100)
#image field
image = CloudinaryField('image')
| 19.384615 | 45 | 0.72619 | 31 | 252 | 5.870968 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.202381 | 252 | 13 | 46 | 19.384615 | 0.890547 | 0.087302 | 0 | 0 | 0 | 0 | 0.022026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
106dc373c55a425e4d3b1b92fee46f7d2e619f3c | 2,195 | py | Python | integer_gtype.py | didrikjonassen/ea | 018000aec2c50eca8260748ab7a47da07290b05e | [
"MIT"
] | null | null | null | integer_gtype.py | didrikjonassen/ea | 018000aec2c50eca8260748ab7a47da07290b05e | [
"MIT"
] | null | null | null | integer_gtype.py | didrikjonassen/ea | 018000aec2c50eca8260748ab7a47da07290b05e | [
"MIT"
] | 1 | 2020-06-12T14:36:10.000Z | 2020-06-12T14:36:10.000Z | import random
class integer_genotype(object):
gene = None
max_int = 1
def __init__(this, max_int=1, gene=None):
this.max_int = max_int
this.gene = gene
def generate_random(this, length):
this.gene = [random.randint(0, this.max_int) for i in xrange(length)]
def generate_distinct(this):
this.gene = ra... | 32.279412 | 91 | 0.671071 | 326 | 2,195 | 4.40184 | 0.187117 | 0.117073 | 0.083624 | 0.062718 | 0.297561 | 0.225784 | 0.225784 | 0.188153 | 0.188153 | 0.188153 | 0 | 0.020902 | 0.171754 | 2,195 | 68 | 92 | 32.279412 | 0.768427 | 0.015034 | 0 | 0.160714 | 1 | 0 | 0.014339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1074d8d68da4667bdbcd7887e3b6e0852caf1e84 | 367 | py | Python | emailuser/forms.py | simlist/djangorestframework_useremail | f3022ffe69a5801fbd93c09eec3a82d0290a6a4f | [
"MIT"
] | null | null | null | emailuser/forms.py | simlist/djangorestframework_useremail | f3022ffe69a5801fbd93c09eec3a82d0290a6a4f | [
"MIT"
] | 8 | 2020-02-12T01:13:10.000Z | 2022-02-10T08:45:58.000Z | emailuser/forms.py | simlist/django-rest-framework-emailuser | f3022ffe69a5801fbd93c09eec3a82d0290a6a4f | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import EmailUser
class EmailUserCreationForm(UserCreationForm):
class Meta(UserCreationForm):
model = EmailUser
fields = ('email', 'name')
class EmailUserChangeForm(UserChangeForm):
class Meta:
model... | 24.466667 | 70 | 0.705722 | 33 | 367 | 7.848485 | 0.545455 | 0.069498 | 0.15444 | 0.19305 | 0.223938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20436 | 367 | 15 | 71 | 24.466667 | 0.886986 | 0 | 0 | 0.4 | 0 | 0 | 0.048913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
10767392882535c8cb8eaf6fd2c15397ad83fc1a | 9,648 | py | Python | stackdio/api/cloud/migrations/0001_0_8_initial.py | hdmillerdr/stackdio | 84be621705031d147e104369399b872d5093ef64 | [
"Apache-2.0"
] | 9 | 2015-12-18T22:44:55.000Z | 2022-02-07T19:34:44.000Z | stackdio/api/cloud/migrations/0001_0_8_initial.py | hdmillerdr/stackdio | 84be621705031d147e104369399b872d5093ef64 | [
"Apache-2.0"
] | 77 | 2015-01-12T17:49:38.000Z | 2017-02-24T17:57:46.000Z | stackdio/api/cloud/migrations/0001_0_8_initial.py | hdmillerdr/stackdio | 84be621705031d147e104369399b872d5093ef64 | [
"Apache-2.0"
] | 11 | 2015-01-23T15:50:19.000Z | 2022-02-07T19:34:45.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django.core.files.storage
import django.utils.timezone
import django_extensions.db.fields
from django.conf import settings
from django.db import migrations, models
import stackdio.core.fields
def get_config_file_path(instance, filename):
ret... | 58.120482 | 274 | 0.618781 | 960 | 9,648 | 6.023958 | 0.161458 | 0.077987 | 0.049801 | 0.066402 | 0.767595 | 0.720906 | 0.683036 | 0.676638 | 0.633408 | 0.633408 | 0 | 0.014176 | 0.232276 | 9,648 | 165 | 275 | 58.472727 | 0.766572 | 0.002177 | 0 | 0.546053 | 0 | 0 | 0.159481 | 0.019429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.046053 | 0.013158 | 0.105263 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 2 |
1081426f297bb7d9d0056ba211fd67d93b762bba | 1,501 | py | Python | clubbi_utils/json_logging.py | dev-clubbi/clubbi_utils | 3a3622374daf0927e6b8aedb58266e8792426880 | [
"MIT"
] | null | null | null | clubbi_utils/json_logging.py | dev-clubbi/clubbi_utils | 3a3622374daf0927e6b8aedb58266e8792426880 | [
"MIT"
] | 34 | 2021-11-23T14:10:52.000Z | 2022-03-30T22:46:24.000Z | clubbi_utils/json_logging.py | dev-clubbi/clubbi_utils | 3a3622374daf0927e6b8aedb58266e8792426880 | [
"MIT"
] | null | null | null | from typing import Any
from .logging import logger, LogLevelEnum
from clubbi_utils import json
from typing import Callable
import logging
class JsonLogger:
def __init__(self, logger:logging.Logger):
self.logger = logger
setattr(self, "fatal", self._log(LogLevelEnum.fatal))
setattr(self, "e... | 32.630435 | 99 | 0.642239 | 180 | 1,501 | 5.25 | 0.216667 | 0.059259 | 0.114286 | 0.133333 | 0.334392 | 0.334392 | 0.270899 | 0.234921 | 0.234921 | 0.190476 | 0 | 0 | 0.231845 | 1,501 | 45 | 100 | 33.355556 | 0.819601 | 0 | 0 | 0.147059 | 0 | 0 | 0.017322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.147059 | 0.147059 | 0.029412 | 0.441176 | 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 | 0 | 0 | 0 | 2 |
10965b24f34d216bf243fa07a296e7025bfd5faa | 94 | py | Python | baekjoon/10039.py | jiyeoun/PS | 855ec59fe7844daf102fde713eab48c88cbc5419 | [
"MIT"
] | null | null | null | baekjoon/10039.py | jiyeoun/PS | 855ec59fe7844daf102fde713eab48c88cbc5419 | [
"MIT"
] | null | null | null | baekjoon/10039.py | jiyeoun/PS | 855ec59fe7844daf102fde713eab48c88cbc5419 | [
"MIT"
] | null | null | null | sum=0
for i in range(5):
a=int(input())
if a<40:
a=40
sum+=a
print(sum//5) | 13.428571 | 18 | 0.489362 | 20 | 94 | 2.3 | 0.65 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0.319149 | 94 | 7 | 19 | 13.428571 | 0.609375 | 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 | 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 | 0 | 0 | 2 |
1099629b5203bc9b003b26c8c2df4a11eceff5f9 | 586 | py | Python | constants.py | Di-Ny/LoRaPacketForwarderDomoticzConfigurator | f99c0f46501da9e126e70d47b53c45e441dfc441 | [
"MIT"
] | null | null | null | constants.py | Di-Ny/LoRaPacketForwarderDomoticzConfigurator | f99c0f46501da9e126e70d47b53c45e441dfc441 | [
"MIT"
] | null | null | null | constants.py | Di-Ny/LoRaPacketForwarderDomoticzConfigurator | f99c0f46501da9e126e70d47b53c45e441dfc441 | [
"MIT"
] | null | null | null | # Some constants to work for https://github.com/Di-Ny/LoRaPacketForwarderDomoticzConfigurator
#
# Author: DiNy
###########
## Global
GW_UNIT_ID=10
###########
## LORA
DR_2_SFBW_EU868 = {
"0":["12","125.0","5"],
"1":["11","125.0","5"],
"2":["10","125.0","5"],
"3":["9","125.0","5"],
"4":["8","125.0","5"],
"5":["7"... | 20.206897 | 93 | 0.426621 | 103 | 586 | 2.378641 | 0.407767 | 0.130612 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 0.095563 | 586 | 28 | 94 | 20.928571 | 0.216981 | 0.197952 | 0 | 0 | 0 | 0 | 0.318907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10a2f7645600d5c2fd4b4f4b1e9510c52ddd293e | 1,253 | py | Python | BuildingDepot-v3.2.8/buildingdepot/CentralService/app/auth/forms.py | Entromorgan/GIoTTo | 53ba7519c56d46af1e32a77aab5cf1c5cd8143fc | [
"MIT"
] | null | null | null | BuildingDepot-v3.2.8/buildingdepot/CentralService/app/auth/forms.py | Entromorgan/GIoTTo | 53ba7519c56d46af1e32a77aab5cf1c5cd8143fc | [
"MIT"
] | null | null | null | BuildingDepot-v3.2.8/buildingdepot/CentralService/app/auth/forms.py | Entromorgan/GIoTTo | 53ba7519c56d46af1e32a77aab5cf1c5cd8143fc | [
"MIT"
] | null | null | null | """
CentalService.auth.views
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Contains all the forms for the CentralService authorization functions.
The two forms that are used are for login and for creating a new user.
@copyright: (c) 2016 SynergyLabs
@license: UCSD License. See License file for details.
"""
from flask_wtf import Form... | 35.8 | 111 | 0.715084 | 137 | 1,253 | 6.510949 | 0.583942 | 0.098655 | 0.100897 | 0.087444 | 0.11435 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005731 | 0.164405 | 1,253 | 34 | 112 | 36.852941 | 0.846227 | 0.226656 | 0 | 0 | 0 | 0 | 0.127083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.277778 | 0.277778 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
10a61ba6a126e4358d1da126d1956f1020722dac | 8,484 | py | Python | supervisor_jcmd/tests/test_controllerplugin.py | astronouth7303/supervisor-jcmd | 76d287425fd099b2637b79572b0adf18ae9081a7 | [
"BSD-3-Clause"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/10a61ba6a126e4358d1da126d1956f1020722dactest_controllerplugin.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/10a61ba6a126e4358d1da126d1956f1020722dactest_controllerplugin.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | import sys
import unittest
try:
from StringIO import StringIO
except:
from io import StringIO
class TestControllerPlugin(unittest.TestCase):
# Factory
def test_make_cache_controllerplugin_factory(self):
from supervisor_cache import controllerplugin
controller = DummyController()
... | 30.192171 | 80 | 0.663956 | 931 | 8,484 | 5.794844 | 0.104189 | 0.044115 | 0.143652 | 0.1557 | 0.75848 | 0.714365 | 0.678777 | 0.654866 | 0.647451 | 0.625209 | 0 | 0.000154 | 0.233734 | 8,484 | 280 | 81 | 30.3 | 0.829719 | 0.012258 | 0 | 0.510417 | 0 | 0 | 0.048268 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.161458 | false | 0 | 0.041667 | 0.010417 | 0.234375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 2 |
10b341c2038d791c64486c910f56f384ad5018a4 | 1,738 | py | Python | utils/auth_utils.py | darth-dodo/hustlers-den | 74c375da1b82c6ad4d4f2b763bc8e47a3f73417d | [
"MIT"
] | 3 | 2019-07-27T08:42:27.000Z | 2020-04-02T14:26:35.000Z | utils/auth_utils.py | darth-dodo/hustlers-den | 74c375da1b82c6ad4d4f2b763bc8e47a3f73417d | [
"MIT"
] | 34 | 2019-08-14T19:05:56.000Z | 2022-02-10T10:54:45.000Z | utils/auth_utils.py | darth-dodo/hustlers-den | 74c375da1b82c6ad4d4f2b763bc8e47a3f73417d | [
"MIT"
] | null | null | null | from django.core.exceptions import PermissionDenied
from django.utils.crypto import get_random_string
from rest_framework_jwt.settings import api_settings
from utils.constants import AUTO_GENERATED_PASSWORD_LENGTH
# binding.pry equivalent
# import code; code.interact(local=locals())
def get_hustler_data(hustler_obj... | 27.15625 | 81 | 0.73878 | 217 | 1,738 | 5.658986 | 0.364055 | 0.062704 | 0.041531 | 0.043974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192175 | 1,738 | 63 | 82 | 27.587302 | 0.874644 | 0.248562 | 0 | 0 | 1 | 0 | 0.058101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.208333 | 0 | 0.458333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
10b4f8646591d9a140373f55a838458b289c596a | 823 | py | Python | dataservice/api/common/id_service.py | ConnorBarnhill/kf-api-dataservice | 547df467a307788882469a25c947a14965a26336 | [
"Apache-2.0"
] | 6 | 2018-01-25T13:49:24.000Z | 2020-03-07T16:25:09.000Z | dataservice/api/common/id_service.py | ConnorBarnhill/kf-api-dataservice | 547df467a307788882469a25c947a14965a26336 | [
"Apache-2.0"
] | 369 | 2018-01-17T15:22:18.000Z | 2022-03-10T19:14:56.000Z | dataservice/api/common/id_service.py | ConnorBarnhill/kf-api-dataservice | 547df467a307788882469a25c947a14965a26336 | [
"Apache-2.0"
] | 3 | 2018-04-11T14:18:37.000Z | 2018-10-31T19:09:48.000Z | import uuid
import random
import base32_crockford as b32
def uuid_generator():
"""
Returns a stringified uuid of 36 characters
"""
return str(uuid.uuid4())
def kf_id_generator(prefix):
"""
Returns a function to generator
(Crockford)[http://www.crockford.com/wrmg/base32.html] base 32
... | 23.514286 | 75 | 0.641555 | 109 | 823 | 4.761468 | 0.642202 | 0.030829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0.261239 | 823 | 34 | 76 | 24.205882 | 0.787829 | 0.427704 | 0 | 0 | 0 | 0 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0 | 0.25 | 0.083333 | 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 | 0 | 1 | 0 | 0 | 2 |
10ba2058de3f9bc88e1da19e0b4260e49f7c1ff1 | 1,379 | py | Python | ais-kml/descriptionService.py | ctwardy/jacobs-vault | 6f18a3897e4ac7a0fb281d61f55e1f5d5339671c | [
"Apache-2.0"
] | 1 | 2020-12-27T19:18:38.000Z | 2020-12-27T19:18:38.000Z | ais-kml/descriptionService.py | ctwardy/jacobs-vault | 6f18a3897e4ac7a0fb281d61f55e1f5d5339671c | [
"Apache-2.0"
] | 8 | 2020-12-24T21:48:07.000Z | 2021-01-14T16:01:00.000Z | ais-kml/descriptionService.py | ctwardy/jacobs-vault | 6f18a3897e4ac7a0fb281d61f55e1f5d5339671c | [
"Apache-2.0"
] | 1 | 2022-02-18T13:46:49.000Z | 2022-02-18T13:46:49.000Z |
from datetime import datetime
from flask import Flask
from flask import request
from flask import send_file
try:
# restplus is dead: https://github.com/noirbizarre/flask-restplus/issues/770
from flask_restx import Resource, Api
from flask_restx import reqparse
except ImportError:
try:
from f... | 28.729167 | 83 | 0.693981 | 182 | 1,379 | 5.159341 | 0.450549 | 0.076677 | 0.047923 | 0.073482 | 0.188498 | 0.151225 | 0.078807 | 0.078807 | 0 | 0 | 0 | 0.029038 | 0.20087 | 1,379 | 47 | 84 | 29.340426 | 0.823049 | 0.102248 | 0 | 0.228571 | 0 | 0 | 0.117504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.4 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
529ca24b2d645ddff25c4ff11addeec727c07028 | 316 | py | Python | setup.py | mrexmelle/setuptools-example-hello | 4ba224f8ea9d8783caff17c886b7e94b01d78c5e | [
"MIT"
] | null | null | null | setup.py | mrexmelle/setuptools-example-hello | 4ba224f8ea9d8783caff17c886b7e94b01d78c5e | [
"MIT"
] | null | null | null | setup.py | mrexmelle/setuptools-example-hello | 4ba224f8ea9d8783caff17c886b7e94b01d78c5e | [
"MIT"
] | null | null | null |
#!/bin/python
from setuptools import setup, find_packages
setup(
name="setuptools-example-hello",
version="1.0",
packages=find_packages(),
url="https://github.com/mrexmelle/setuptools-example-hello",
entry_points={
'console_scripts': [
'setuptools-hello = hello.main:main',
]}
)
| 18.588235 | 61 | 0.667722 | 36 | 316 | 5.75 | 0.666667 | 0.115942 | 0.21256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.177215 | 316 | 16 | 62 | 19.75 | 0.788462 | 0.037975 | 0 | 0 | 0 | 0 | 0.428571 | 0.079734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52a9a4e32f184f25a634f2a0229e843432ab2c66 | 1,751 | py | Python | sapsan/core/abstrctions/experiment.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 11 | 2020-05-25T18:59:02.000Z | 2021-11-30T15:27:43.000Z | sapsan/core/abstrctions/experiment.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 19 | 2020-04-17T05:54:09.000Z | 2021-09-14T05:24:17.000Z | sapsan/core/abstrctions/experiment.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 3 | 2021-09-01T16:11:18.000Z | 2021-09-06T07:39:06.000Z | from abc import ABC, abstractmethod
from typing import List
from sapsan.core.abstrctions.algorithm import Parameter, Metric, Artifact
from sapsan.core.abstrctions.tracking import TrackingBackend
from sapsan.core.tracking.logger import LoggingBackend
class Experiment(ABC):
"""
Base experiment class
"""
... | 25.014286 | 73 | 0.609366 | 169 | 1,751 | 6.230769 | 0.254438 | 0.11396 | 0.090218 | 0.062678 | 0.043685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302113 | 1,751 | 70 | 74 | 25.014286 | 0.861702 | 0.197601 | 0 | 0.382353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.147059 | 0.147059 | 0 | 0.411765 | 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 | 0 | 0 | 0 | 2 |
52c4b04c25298263449d173d17b8ca08d50a4e81 | 383 | py | Python | TensorCook.py | AmanKishore/TensorCook | 924b98aea7243fed9f4d955a0567921fe716799f | [
"Apache-2.0"
] | 1 | 2019-05-26T18:10:17.000Z | 2019-05-26T18:10:17.000Z | TensorCook.py | AmanKishore/TensorCook | 924b98aea7243fed9f4d955a0567921fe716799f | [
"Apache-2.0"
] | null | null | null | TensorCook.py | AmanKishore/TensorCook | 924b98aea7243fed9f4d955a0567921fe716799f | [
"Apache-2.0"
] | null | null | null |
from google_images_download import google_images_download
food_list = ['food with protein','unhealthy food','carbs','food with sugar','vegetables']
for food in food_list:
args = {"keywords":food, "format": "jpg", "limit":1000, "output_directory":"./tf_files/food_images"}
response = google_images_downl... | 42.555556 | 105 | 0.733681 | 47 | 383 | 5.744681 | 0.595745 | 0.133333 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.133159 | 383 | 9 | 106 | 42.555556 | 0.801205 | 0 | 0 | 0 | 0 | 0 | 0.322667 | 0.058667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52dd5cb5c5e87fc7127c5d97dc70bbd2c17cc008 | 741 | py | Python | src/strategies/reinforce/NoReinforceStrategy.py | jgc128/crabada.py | cb50c9d4748786a6abedc822f2e1ee461d65e508 | [
"MIT"
] | 34 | 2022-02-07T10:11:06.000Z | 2022-03-25T01:14:09.000Z | src/strategies/reinforce/NoReinforceStrategy.py | Antuaaan/crabada.py | 7ffc97445b3034020784a6265679a841470e7893 | [
"MIT"
] | 26 | 2022-02-23T00:55:22.000Z | 2022-03-31T17:55:51.000Z | src/strategies/reinforce/NoReinforceStrategy.py | Antuaaan/crabada.py | 7ffc97445b3034020784a6265679a841470e7893 | [
"MIT"
] | 27 | 2022-02-01T09:56:32.000Z | 2022-03-30T07:16:54.000Z | from typing import Any, List
from src.libs.CrabadaWeb2Client.types import CrabForLending, Game, TeamStatus
from src.strategies.reinforce.ReinforceStrategy import ReinforceStrategy
class NoReinforceStrategy(ReinforceStrategy):
"""
Strategy to adopt if you do not wish to reinforce
at all; useful for auto-lo... | 30.875 | 77 | 0.676113 | 95 | 741 | 5.273684 | 0.642105 | 0.027944 | 0.031936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001776 | 0.240216 | 741 | 23 | 78 | 32.217391 | 0.888099 | 0.330634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.1 | 0.3 | 0 | 0.9 | 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 | 0 | 0 | 0 | 2 |
5e0dfdec446b50091ea891014e22a4df5552c1b1 | 310 | py | Python | ds4se/_nbdev.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | null | null | null | ds4se/_nbdev.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | null | null | null | ds4se/_nbdev.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {}
modules = [].py",
"exp/info.py"].py"]
doc_url = "https://ncoop57.github.io/ds4se/"
git_url = "https://github.com/ncoop57/ds4se/tree/master/"
def custom_doc_links(name): return None
| 20.666667 | 61 | 0.658065 | 44 | 310 | 4.386364 | 0.659091 | 0.124352 | 0.145078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022814 | 0.151613 | 310 | 14 | 62 | 22.142857 | 0.711027 | 0 | 0 | 0 | 1 | 0 | 0.452206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e109efb52db2ed2fb55277b71f07dfd5cd80780 | 1,357 | py | Python | examples/common/python/utility/hex_utils.py | gbarcomu/avalon | 060e8bce29a6c80845e45b11dcacb936401fe031 | [
"Apache-2.0"
] | null | null | null | examples/common/python/utility/hex_utils.py | gbarcomu/avalon | 060e8bce29a6c80845e45b11dcacb936401fe031 | [
"Apache-2.0"
] | null | null | null | examples/common/python/utility/hex_utils.py | gbarcomu/avalon | 060e8bce29a6c80845e45b11dcacb936401fe031 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 30.155556 | 74 | 0.711127 | 210 | 1,357 | 4.490476 | 0.5 | 0.063627 | 0.027572 | 0.033934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014124 | 0.217391 | 1,357 | 44 | 75 | 30.840909 | 0.873823 | 0.603537 | 0 | 0 | 0 | 0 | 0.016632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.0625 | 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 | 0 | 1 | 0 | 0 | 2 |
5e15697c6522c69aaef973da161486248bf9e07e | 2,173 | py | Python | vagalume_json/busca_top_100_artistas_vagalume.py | Koalapvh13/python_exercises | 5dc12dfa886edaccc54727d1866438f20a83d4d0 | [
"MIT"
] | null | null | null | vagalume_json/busca_top_100_artistas_vagalume.py | Koalapvh13/python_exercises | 5dc12dfa886edaccc54727d1866438f20a83d4d0 | [
"MIT"
] | null | null | null | vagalume_json/busca_top_100_artistas_vagalume.py | Koalapvh13/python_exercises | 5dc12dfa886edaccc54727d1866438f20a83d4d0 | [
"MIT"
] | null | null | null | import json
import requests
def remove_repetidos(lista):
l = []
for i in lista:
if i not in l:
l.append(i)
l.sort()
return l
def busca_musicas(id_api):
r = requests.get(id_api+'index.js')
if r.status_code == 200:
reddit_data = json.loads(r.content)
musicas ... | 38.122807 | 123 | 0.520939 | 224 | 2,173 | 4.875 | 0.375 | 0.241758 | 0.161172 | 0.221612 | 0.494505 | 0.494505 | 0.430403 | 0.076923 | 0 | 0 | 0 | 0.006566 | 0.299126 | 2,173 | 56 | 124 | 38.803571 | 0.71044 | 0.116889 | 0 | 0 | 0 | 0 | 0.094223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.128205 | 0.025641 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
5e17549668eff5872c1a52cd27848dc8d0ca3108 | 4,340 | py | Python | src/sima/post/nonequidistantsignal.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/post/nonequidistantsignal.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/post/nonequidistantsignal.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # This an autogenerated file
#
# Generated with NonEquidistantSignal
from typing import Dict,Sequence,List
from dmt.entity import Entity
from dmt.blueprint import Blueprint
from .blueprints.nonequidistantsignal import NonEquidistantSignalBlueprint
from typing import Dict
from sima.post.generatorsignal import Generator... | 26.30303 | 111 | 0.593088 | 445 | 4,340 | 5.653933 | 0.166292 | 0.048092 | 0.063593 | 0.041733 | 0.137917 | 0.137917 | 0.137917 | 0.134738 | 0.091812 | 0.091812 | 0 | 0 | 0.285945 | 4,340 | 164 | 112 | 26.463415 | 0.811875 | 0.162442 | 0 | 0.180851 | 1 | 0 | 0.024184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.095745 | 0 | 0.457447 | 0.042553 | 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 | 0 | 0 | 0 | 2 |
5e1f37d6e1e73f1e56a0de8909779eba754b59d9 | 638 | py | Python | Practical3-AddIns/ExplosionAddin/Install/ExplosionAddin_addin.py | masher92/GEOG_5790 | 674b889e3290b9964563e23d12dc139907f8068c | [
"MIT"
] | null | null | null | Practical3-AddIns/ExplosionAddin/Install/ExplosionAddin_addin.py | masher92/GEOG_5790 | 674b889e3290b9964563e23d12dc139907f8068c | [
"MIT"
] | null | null | null | Practical3-AddIns/ExplosionAddin/Install/ExplosionAddin_addin.py | masher92/GEOG_5790 | 674b889e3290b9964563e23d12dc139907f8068c | [
"MIT"
] | null | null | null | import arcpy
import pythonaddins
class ExplosionButtonClass(object):
"""Implementation for ExplosionAddin_addin.explosionbutton (Button)"""
def __init__(self):
self.enabled = True
self.checked = False
def onClick(self):
# Print message to confirm initialisation
#pythonaddi... | 42.533333 | 142 | 0.705329 | 69 | 638 | 6.434783 | 0.797101 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013645 | 0.195925 | 638 | 14 | 143 | 45.571429 | 0.851852 | 0.329154 | 0 | 0 | 0 | 0.111111 | 0.303103 | 0.174224 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eaa5c26b0653bf259d024dc1c8fbfd4c4cd66cbf | 2,651 | py | Python | cp2/parser.py | thomas-franceschi/theory-project-pied-piper | a55ea764e8f0624f1f085ee589a7688be33eb892 | [
"MIT"
] | null | null | null | cp2/parser.py | thomas-franceschi/theory-project-pied-piper | a55ea764e8f0624f1f085ee589a7688be33eb892 | [
"MIT"
] | null | null | null | cp2/parser.py | thomas-franceschi/theory-project-pied-piper | a55ea764e8f0624f1f085ee589a7688be33eb892 | [
"MIT"
] | null | null | null | #CP2
#Thomas Franceschi
#Kyle Williams
#import sys
class baseParser:
def __init__(self, expression, length, counter):
self.expression = expression #String being parsed
self.length = length #Max range for token
self.counter = counter #Token
self.M = '' #Output
def parseRegexp(self):
... | 27.329897 | 167 | 0.641645 | 348 | 2,651 | 4.853448 | 0.181034 | 0.208407 | 0.142096 | 0.192422 | 0.415631 | 0.377146 | 0.377146 | 0.357608 | 0.315571 | 0.260509 | 0 | 0.008443 | 0.195775 | 2,651 | 97 | 168 | 27.329897 | 0.783771 | 0.070162 | 0 | 0.351351 | 0 | 0 | 0.048203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0 | 0.081081 | 0.445946 | 0.040541 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
eaacffa5635de7d130724bf613c005ec00bda6b3 | 5,756 | py | Python | fairest/models/Rule.py | houfu/fairest | 4ca7b1d2981bcb8f15bfd04da1c00d390ebfefaa | [
"MIT"
] | null | null | null | fairest/models/Rule.py | houfu/fairest | 4ca7b1d2981bcb8f15bfd04da1c00d390ebfefaa | [
"MIT"
] | null | null | null | fairest/models/Rule.py | houfu/fairest | 4ca7b1d2981bcb8f15bfd04da1c00d390ebfefaa | [
"MIT"
] | null | null | null | # Copyright (c) 2021. Ang Hou Fu
#
# This software is licensed under the The MIT License.
# You should have received a copy of the license terms with the software.
# Otherwise, you can find the text here: https://opensource.org/licenses/MIT
#
#
# This software is licensed under the The MIT License.
# You should ... | 34.467066 | 117 | 0.687804 | 702 | 5,756 | 5.505698 | 0.225071 | 0.016818 | 0.017076 | 0.019664 | 0.347477 | 0.328331 | 0.284605 | 0.284605 | 0.284605 | 0.27141 | 0 | 0.000905 | 0.232453 | 5,756 | 166 | 118 | 34.674699 | 0.873925 | 0.373871 | 0 | 0.320513 | 0 | 0 | 0.004237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.051282 | 0.051282 | 0.538462 | 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 | 0 | 1 | 0 | 0 | 2 |
eaaf2d75551772f88faef1d73e39712b0758753d | 608 | py | Python | test/unit/data_factory.py | JoachimC/magicbox_distance | 3706172315f406a391bb643d494dad121b858e97 | [
"BSD-3-Clause"
] | null | null | null | test/unit/data_factory.py | JoachimC/magicbox_distance | 3706172315f406a391bb643d494dad121b858e97 | [
"BSD-3-Clause"
] | 12 | 2018-08-11T13:26:33.000Z | 2018-10-16T15:36:16.000Z | test/unit/data_factory.py | JoachimC/magicbox_distance | 3706172315f406a391bb643d494dad121b858e97 | [
"BSD-3-Clause"
] | null | null | null | from geopy import Point
from magicbox_distance import shapefile, distance
right_angle_start = Point(1.0, 1.0)
right_angle_middle = Point(1.1, 1.0)
right_angle_end = Point(1.1, 1.1)
right_angle_distance = distance.using_latitude_and_longitude(right_angle_start, right_angle_middle) + \
distance.... | 33.777778 | 117 | 0.771382 | 89 | 608 | 4.966292 | 0.370787 | 0.180995 | 0.108597 | 0.054299 | 0.19457 | 0.19457 | 0.19457 | 0 | 0 | 0 | 0 | 0.024715 | 0.134868 | 608 | 17 | 118 | 35.764706 | 0.815589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.181818 | 0.545455 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
eab30f1688f1b449c20968d4aa342c448d1a8471 | 1,187 | py | Python | src/data/dataset_wrapper.py | vkinakh/scatsimclr | 7630b124fc644ae8362b90890c2b16e2c3bc0e40 | [
"MIT"
] | 12 | 2021-09-01T05:42:50.000Z | 2022-03-04T14:48:19.000Z | src/data/dataset_wrapper.py | vkinakh/scatsimclr | 7630b124fc644ae8362b90890c2b16e2c3bc0e40 | [
"MIT"
] | 1 | 2021-09-17T09:09:41.000Z | 2022-02-28T11:10:32.000Z | src/data/dataset_wrapper.py | vkinakh/scatsimclr | 7630b124fc644ae8362b90890c2b16e2c3bc0e40 | [
"MIT"
] | 2 | 2021-09-02T06:18:17.000Z | 2021-09-05T04:54:57.000Z | from typing import Tuple
from torch.utils.data import Dataset
from .datasets import get_dataset
from .augmentor import ContrastiveAugmentor
from .base_dataset_wrapper import BaseDatasetWrapper
class UnsupervisedDatasetWrapper(BaseDatasetWrapper):
"""Dataset wrapper for unsupervised image classification"""
... | 34.911765 | 112 | 0.672283 | 143 | 1,187 | 5.391608 | 0.440559 | 0.046693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002273 | 0.258635 | 1,187 | 33 | 113 | 35.969697 | 0.873864 | 0.342881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ead37ac3726f84334d348d7ef4c7ef47a260928a | 463 | py | Python | SUSOD/config.py | whale-net/SUSOD | 404cd25e08db10759073475821353eaf4c0a7041 | [
"MIT"
] | 1 | 2020-08-06T04:07:42.000Z | 2020-08-06T04:07:42.000Z | SUSOD/config.py | whale-net/SUSOD | 404cd25e08db10759073475821353eaf4c0a7041 | [
"MIT"
] | 4 | 2020-05-24T20:30:43.000Z | 2021-05-10T04:21:58.000Z | SUSOD/config.py | whale-net/SUSOD | 404cd25e08db10759073475821353eaf4c0a7041 | [
"MIT"
] | null | null | null | """
SUSOD dev config.
currently not very useful
"""
import os
APPLICATION_ROOT = '/'
SECRET_KEY = b'tobegenerated'
SESSION_COOKIE_NAME = 'login_name'
# Directory for file uploads
# currently not used
UPLOAD_FOLDER = os.path.join(
os.path.dirname(os.path.dirname(os.path.realpath(__file__))),
'var',
'uploads',
)
... | 17.148148 | 62 | 0.74946 | 58 | 463 | 5.741379 | 0.655172 | 0.072072 | 0.078078 | 0.09009 | 0.096096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12959 | 463 | 26 | 63 | 17.807692 | 0.826303 | 0.24622 | 0 | 0 | 1 | 0 | 0.186391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ead921c30f58ffcd596e6f300a682691b4e3445a | 1,922 | py | Python | users/serializers.py | nikolamatijas/DjangoAndReact | a14673ff261eb578f4ac0358c2ff4d1ab0c6101e | [
"MIT"
] | null | null | null | users/serializers.py | nikolamatijas/DjangoAndReact | a14673ff261eb578f4ac0358c2ff4d1ab0c6101e | [
"MIT"
] | null | null | null | users/serializers.py | nikolamatijas/DjangoAndReact | a14673ff261eb578f4ac0358c2ff4d1ab0c6101e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from users.models import User, Permission, Role
class RoleRelatedField(serializers.RelatedField):
def to_representation(self, instance):
return RoleSerializer(instance).data
def to_internal_value(self, data):
return self.queryset.get(pk=data)
class U... | 27.855072 | 79 | 0.668574 | 195 | 1,922 | 6.441026 | 0.312821 | 0.082803 | 0.033439 | 0.062102 | 0.338376 | 0.307325 | 0.307325 | 0.25 | 0.11465 | 0.11465 | 0 | 0 | 0.237773 | 1,922 | 68 | 80 | 28.264706 | 0.857338 | 0 | 0 | 0.489796 | 0 | 0 | 0.050468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.163265 | 0.040816 | 0.081633 | 0.530612 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
eae5e190e5841e9291345cb75b89119be3613a88 | 5,269 | py | Python | google/ads/google_ads/v2/proto/services/landing_page_view_service_pb2.py | jiulongw/google-ads-python | 6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e | [
"Apache-2.0"
] | 1 | 2019-11-30T23:42:39.000Z | 2019-11-30T23:42:39.000Z | google/ads/google_ads/v2/proto/services/landing_page_view_service_pb2.py | jiulongw/google-ads-python | 6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v2/proto/services/landing_page_view_service_pb2.py | jiulongw/google-ads-python | 6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e | [
"Apache-2.0"
] | 1 | 2020-03-13T00:14:31.000Z | 2020-03-13T00:14:31.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v2/proto/services/landing_page_view_service.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.pro... | 48.33945 | 982 | 0.812868 | 651 | 5,269 | 6.270353 | 0.282642 | 0.075453 | 0.085742 | 0.10779 | 0.389515 | 0.339294 | 0.245468 | 0.191573 | 0.133268 | 0.105341 | 0 | 0.042514 | 0.075916 | 5,269 | 108 | 983 | 48.787037 | 0.795851 | 0.062061 | 0 | 0.120482 | 1 | 0.036145 | 0.449037 | 0.41074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096386 | 0 | 0.096386 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eae7bc93294fa3611434c4ab548a05d09a49b731 | 573 | py | Python | __manifest__.py | rocketgithub/hr_expense_invoice | fa7d4bf16593526e343856cd47d584ab25ac1fd2 | [
"BSD-3-Clause"
] | null | null | null | __manifest__.py | rocketgithub/hr_expense_invoice | fa7d4bf16593526e343856cd47d584ab25ac1fd2 | [
"BSD-3-Clause"
] | null | null | null | __manifest__.py | rocketgithub/hr_expense_invoice | fa7d4bf16593526e343856cd47d584ab25ac1fd2 | [
"BSD-3-Clause"
] | 1 | 2020-08-04T21:57:54.000Z | 2020-08-04T21:57:54.000Z | # -*- coding: utf-8 -*-
{
'name': 'Gastos unidos a facturas',
'version': '1.0',
'category': 'Accounting/Expenses',
'sequence': 6,
'summary': 'Gastos unidos a facturas',
'description': """ Cambios a gastos para unirlas a facturas """,
'website': 'http://aquih.com',
'author': 'Rodrigo Fer... | 26.045455 | 68 | 0.565445 | 61 | 573 | 5.213115 | 0.770492 | 0.084906 | 0.081761 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.239093 | 573 | 22 | 69 | 26.045455 | 0.720183 | 0.036649 | 0 | 0.1 | 0 | 0 | 0.604356 | 0.14882 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eaede35871f76a986f3f40e9c52427828d858379 | 106 | py | Python | notebooks/universals.py | MikeOMa/MV_Prediction | 81552cbd9ad256959d631b2c80c7d5dde4bed105 | [
"Apache-2.0"
] | 1 | 2021-06-08T19:55:14.000Z | 2021-06-08T19:55:14.000Z | notebooks/universals.py | MikeOMa/MV_Prediction | 81552cbd9ad256959d631b2c80c7d5dde4bed105 | [
"Apache-2.0"
] | 2 | 2021-11-04T08:41:17.000Z | 2022-01-05T08:36:17.000Z | notebooks/universals.py | MikeOMa/MV_Prediction | 81552cbd9ad256959d631b2c80c7d5dde4bed105 | [
"Apache-2.0"
] | null | null | null | METHOD_ORDER = ["NGB", "Indep NGB", "skGB", "GB", "NN"]
METRIC_ORDER = ["NLL", "RMSE", "coverage", "area"] | 53 | 55 | 0.584906 | 14 | 106 | 4.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122642 | 106 | 2 | 56 | 53 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0.364486 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eaedfd59190ad288f5447652b18cad9a710941b7 | 161 | py | Python | main.py | justinhchae/app_courts | c46d48c4fa02cec91bda6fc3818ab677d6a83281 | [
"MIT"
] | 4 | 2021-01-04T05:46:43.000Z | 2022-01-06T16:33:40.000Z | main.py | justinhchae/app_courts | c46d48c4fa02cec91bda6fc3818ab677d6a83281 | [
"MIT"
] | null | null | null | main.py | justinhchae/app_courts | c46d48c4fa02cec91bda6fc3818ab677d6a83281 | [
"MIT"
] | null | null | null | from application.application import Application
if __name__ == '__main__':
app = Application()
def run_app():
app.run_app()
run_app()
| 11.5 | 47 | 0.63354 | 18 | 161 | 5.055556 | 0.5 | 0.197802 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 161 | 13 | 48 | 12.384615 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.050955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d81c73ad954ff5a23253f4d7c2873ebcd773f12f | 1,124 | py | Python | homeworks/kirill_shevchuk/lesson11/level04.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | homeworks/kirill_shevchuk/lesson11/level04.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | 8 | 2019-11-15T18:15:56.000Z | 2020-02-03T18:05:05.000Z | homeworks/kirill_shevchuk/lesson11/level04.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | from homeworks.kirill_shevchuk.lesson11 import level03
class User(level03.User):
def validate(self):
validate_name(self.name)
validate_email(self.email)
email_name = self.email.split("@")[0]
email_adres = self.email.split("@")[1]
validate_name(email_name)
validate_e... | 26.139535 | 75 | 0.646797 | 137 | 1,124 | 5.160584 | 0.248175 | 0.23338 | 0.192362 | 0.113154 | 0.454031 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.252669 | 1,124 | 42 | 76 | 26.761905 | 0.813095 | 0 | 0 | 0.323529 | 0 | 0 | 0.036477 | 0.023132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.029412 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d81f7906529570b65d225aaa4c5268df0762fbfb | 236 | py | Python | ARRAYS/Easy/Shuffle the Array/Code.py | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | 3 | 2021-08-31T11:02:28.000Z | 2022-01-17T08:07:00.000Z | ARRAYS/Easy/Shuffle the Array/Code.py | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | ARRAYS/Easy/Shuffle the Array/Code.py | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | #PROBLEM LINK:- https://leetcode.com/problems/shuffle-the-array/
class Solution:
def shuffle(self, nums, n):
v = []
for i in range(n):
v.append(nums[i])
v.append(nums[i+n])
return v
| 23.6 | 64 | 0.538136 | 33 | 236 | 3.848485 | 0.666667 | 0.031496 | 0.173228 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313559 | 236 | 9 | 65 | 26.222222 | 0.783951 | 0.266949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
d82089aa0380edc3dcc36b75333e15ef0b3983cc | 4,399 | py | Python | alacode/migrations/0002_auto_20200116_1512.py | vanatteveldt/alacode | 58463967e2dca5ece229ea89480b2422171790bd | [
"MIT"
] | null | null | null | alacode/migrations/0002_auto_20200116_1512.py | vanatteveldt/alacode | 58463967e2dca5ece229ea89480b2422171790bd | [
"MIT"
] | null | null | null | alacode/migrations/0002_auto_20200116_1512.py | vanatteveldt/alacode | 58463967e2dca5ece229ea89480b2422171790bd | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-16 15:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('alacode', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='code',
name='q12',
field=mo... | 58.653333 | 361 | 0.600818 | 582 | 4,399 | 4.474227 | 0.225086 | 0.041475 | 0.059908 | 0.078341 | 0.711214 | 0.703149 | 0.506144 | 0.495392 | 0.432412 | 0.432412 | 0 | 0.039854 | 0.252785 | 4,399 | 74 | 362 | 59.445946 | 0.752358 | 0.01023 | 0 | 0.514706 | 1 | 0.088235 | 0.389017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014706 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d82b02b5be90237b9c6cc393b72dc71b4203a6cf | 450 | py | Python | projects/min_max_average_finder/main.py | PrasadHonrao/python-samples | faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a | [
"MIT"
] | 3 | 2018-08-20T13:00:01.000Z | 2021-09-18T04:19:46.000Z | projects/min_max_average_finder/main.py | PrasadHonrao/python-samples | faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a | [
"MIT"
] | 1 | 2021-06-25T20:25:02.000Z | 2021-08-19T22:44:31.000Z | projects/min_max_average_finder/main.py | PrasadHonrao/python-samples | faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a | [
"MIT"
] | 1 | 2021-09-18T23:51:20.000Z | 2021-09-18T23:51:20.000Z | input_numbers = input('Enter numbers separated by a space : ').split()
max = int(input_numbers[0])
min = int(input_numbers[0])
avg = 0
sum = 0
for i in range(0, len(input_numbers)):
input_numbers[i] = int(input_numbers[i])
sum = sum + input_numbers[i]
if input_numbers[i] > max:
max = input_nu... | 22.5 | 70 | 0.637778 | 71 | 450 | 3.873239 | 0.295775 | 0.523636 | 0.330909 | 0.116364 | 0.203636 | 0.203636 | 0.203636 | 0 | 0 | 0 | 0 | 0.014409 | 0.228889 | 450 | 20 | 71 | 22.5 | 0.778098 | 0 | 0 | 0 | 0 | 0 | 0.08204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d82d134166744d458657a23a546edb58c948d0d4 | 325 | py | Python | mak/build_framework/build/host/windows.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | 4 | 2015-05-13T16:28:36.000Z | 2017-05-24T15:34:14.000Z | mak/build_framework/build/host/windows.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | mak/build_framework/build/host/windows.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | 1 | 2017-03-21T08:28:07.000Z | 2017-03-21T08:28:07.000Z | import os
def build(bld):
environ = getattr(bld, 'environ', os.environ)
environ['PATH'] = os.pathsep.join([bld.bldnode.parent.parent.make_node("host/win32/bin").abspath(), environ['PATH']])
if bld.env.PATH:
bld.env.PATH = [bld.bldnode.parent.parent.make_node("host/win32/bin").abspath()] + bld.env.... | 36.111111 | 121 | 0.673846 | 48 | 325 | 4.520833 | 0.416667 | 0.082949 | 0.138249 | 0.202765 | 0.451613 | 0.451613 | 0.451613 | 0.451613 | 0.451613 | 0.451613 | 0 | 0.014134 | 0.129231 | 325 | 8 | 122 | 40.625 | 0.75265 | 0 | 0 | 0 | 0 | 0 | 0.132308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
d83480d334856f0c46ef22d74332d9b1881b1e36 | 374 | py | Python | Ekeopara_Praise/Phase 2/STRINGS/Day33 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Ekeopara_Praise/Phase 2/STRINGS/Day33 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Ekeopara_Praise/Phase 2/STRINGS/Day33 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | '''3. Write a Python program to print the square and cube symbol in the
area of a rectangle and volume of a cylinder.
Sample output:
The area of the rectangle is 1256.66cm2
The volume of the cylinder is 1254.725cm3'''
area = 1256.66
volume = 1254.725
print(f"The area of the rectangle is {round(area, 2)}cm2")
print(f... | 37.4 | 72 | 0.743316 | 71 | 374 | 3.915493 | 0.450704 | 0.071942 | 0.097122 | 0.086331 | 0.33813 | 0.33813 | 0 | 0 | 0 | 0 | 0 | 0.106109 | 0.168449 | 374 | 10 | 73 | 37.4 | 0.787781 | 0.569519 | 0 | 0 | 0 | 0 | 0.634615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
d835d59f81af8140315aff9fafcc4288d7a45244 | 415 | py | Python | src/mylib/lgb/util.py | murez/mobile-semantic-segmentation | 0f6cb62c6a1f68f68a53c50612c5636cfe339aa6 | [
"MIT"
] | 713 | 2017-11-02T09:03:20.000Z | 2022-03-20T06:45:17.000Z | src/mylib/lgb/util.py | murez/mobile-semantic-segmentation | 0f6cb62c6a1f68f68a53c50612c5636cfe339aa6 | [
"MIT"
] | 56 | 2017-11-01T07:09:08.000Z | 2022-03-12T00:46:11.000Z | src/mylib/lgb/util.py | murez/mobile-semantic-segmentation | 0f6cb62c6a1f68f68a53c50612c5636cfe339aa6 | [
"MIT"
] | 158 | 2017-11-08T04:24:40.000Z | 2021-12-14T12:05:29.000Z | from typing import List
import pandas as pd
from lightgbm import Booster
def make_imp_df(boosters: List[Booster]) -> pd.DataFrame:
df = pd.concat([
pd.DataFrame({'name': b.feature_name(), 'importance': b.feature_importance()})
for b in boosters
])
return df.groupby('name').mean() \
... | 25.9375 | 86 | 0.633735 | 53 | 415 | 4.830189 | 0.584906 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221687 | 415 | 15 | 87 | 27.666667 | 0.79257 | 0 | 0 | 0 | 0 | 0 | 0.086747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
dc3439fd3df0787f73076ead499a0236ef51d0b8 | 1,238 | py | Python | setup.py | heylouiz/scrapy-sticky-meta-params | 8f8c034a6c577691b5e843376280ff446dd2fd47 | [
"MIT"
] | 2 | 2019-10-17T19:16:43.000Z | 2020-07-05T23:30:34.000Z | setup.py | heylouiz/scrapy-sticky-meta-params | 8f8c034a6c577691b5e843376280ff446dd2fd47 | [
"MIT"
] | 1 | 2021-12-09T19:17:48.000Z | 2021-12-09T19:17:48.000Z | setup.py | heylouiz/scrapy-sticky-meta-params | 8f8c034a6c577691b5e843376280ff446dd2fd47 | [
"MIT"
] | 2 | 2020-07-05T23:32:57.000Z | 2020-10-18T08:35:22.000Z | from setuptools import setup
from scrapy_sticky_meta_params import __version__
with open("README.md") as f:
readme = f.read()
setup(
name="scrapy-sticky-meta-params",
version=__version__,
license="MIT license",
description="A spider middleware that forwards meta params through subsequent requests... | 34.388889 | 93 | 0.659935 | 138 | 1,238 | 5.76087 | 0.557971 | 0.167296 | 0.220126 | 0.228931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01631 | 0.207593 | 1,238 | 35 | 94 | 35.371429 | 0.794088 | 0 | 0 | 0 | 0 | 0 | 0.530695 | 0.058966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 | 0 | 0 | 0 | 2 |
dc40afec9f4eb9105f1687864fc496137a1eb536 | 336 | py | Python | input_output.py | mixanik379/python_lesson_2 | 4b74a0fc56f7e5eb49dc9065ca6baf379a698f9a | [
"MIT"
] | null | null | null | input_output.py | mixanik379/python_lesson_2 | 4b74a0fc56f7e5eb49dc9065ca6baf379a698f9a | [
"MIT"
] | null | null | null | input_output.py | mixanik379/python_lesson_2 | 4b74a0fc56f7e5eb49dc9065ca6baf379a698f9a | [
"MIT"
] | null | null | null | # однострочный комментарий
'''
первая строка
вторая строка
'''
print('Hello!')
print('Hello!', 'student!', 123, sep='xxx')
print('Hello!', 'student!', 123, end='yyy')
print()
# Ввод
age = input('Input your age')
print(age, type(age))
print(int(age), type(int(age)))
'''
print(1+1, 'student', sep='yyy', end='!'... | 11.2 | 43 | 0.60119 | 45 | 336 | 4.488889 | 0.444444 | 0.148515 | 0.168317 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027875 | 0.145833 | 336 | 29 | 44 | 11.586207 | 0.675958 | 0.172619 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.857143 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
dc43a062c59feda77b5541ac6855f43bc2244355 | 3,045 | py | Python | source/interstate_love_song/plugins/simple.py | ilpvfx/interstate_love_song | 36d65def92ac067e6a25a68bb24a948d2048e0df | [
"Apache-2.0"
] | 9 | 2020-06-28T17:00:48.000Z | 2022-03-04T22:10:21.000Z | source/interstate_love_song/plugins/simple.py | ilpvfx/interstate_love_song | 36d65def92ac067e6a25a68bb24a948d2048e0df | [
"Apache-2.0"
] | 6 | 2020-06-26T16:31:47.000Z | 2020-09-01T10:59:36.000Z | source/interstate_love_song/plugins/simple.py | ilpvfx/interstate_love_song | 36d65def92ac067e6a25a68bb24a948d2048e0df | [
"Apache-2.0"
] | 1 | 2020-06-27T13:15:24.000Z | 2020-06-27T13:15:24.000Z | from dataclasses import dataclass
import dataclasses
import argparse
from hashlib import pbkdf2_hmac
from typing import Mapping, Any
from interstate_love_song.mapping.base import *
def hash_pass(s: str, salt="IGNORED"):
"""Hash a password.
Not the best way to store a password since the salt is known, but i... | 30.148515 | 117 | 0.650246 | 349 | 3,045 | 5.498567 | 0.381089 | 0.062533 | 0.02345 | 0.021886 | 0.063575 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005732 | 0.255172 | 3,045 | 100 | 118 | 30.45 | 0.840388 | 0.141215 | 0 | 0.112903 | 0 | 0 | 0.042925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0.177419 | 0.112903 | 0.080645 | 0.516129 | 0.016129 | 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 | 0 | 1 | 0 | 0 | 2 |
dc46c28f1b16bd46806021fe941a0087d612f9ec | 899 | py | Python | openbot/plugin.py | jcb1317/OpenBot | a09f748a2a9018d8b1a7fece64e5fc98687dcdc3 | [
"MIT"
] | null | null | null | openbot/plugin.py | jcb1317/OpenBot | a09f748a2a9018d8b1a7fece64e5fc98687dcdc3 | [
"MIT"
] | null | null | null | openbot/plugin.py | jcb1317/OpenBot | a09f748a2a9018d8b1a7fece64e5fc98687dcdc3 | [
"MIT"
] | 1 | 2020-08-15T17:50:33.000Z | 2020-08-15T17:50:33.000Z | class Plugin(object):
"""
Plugin Base Class
Meant to be inherited for plugins
"""
def __init__(self):
self._commands = {}
def command(self, name, **kwargs):
"""
Decorator to register a coroutine to a plugin command
:param name: Command Name
:return:
... | 24.972222 | 88 | 0.542825 | 109 | 899 | 4.357798 | 0.394495 | 0.101053 | 0.101053 | 0.050526 | 0.067368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357063 | 899 | 35 | 89 | 25.685714 | 0.821799 | 0.321468 | 0 | 0 | 0 | 0 | 0.019531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
dc49a65e5c82617c39e3fb2bf97598f281f89fa7 | 563 | py | Python | year2020/day2/part2.py | kalaspuff/advent-of-code | ac366c35ac07e7643ac37762f2fdeb050519d98f | [
"MIT"
] | null | null | null | year2020/day2/part2.py | kalaspuff/advent-of-code | ac366c35ac07e7643ac37762f2fdeb050519d98f | [
"MIT"
] | null | null | null | year2020/day2/part2.py | kalaspuff/advent-of-code | ac366c35ac07e7643ac37762f2fdeb050519d98f | [
"MIT"
] | null | null | null | from helpers import int_minus
from values import values
async def run():
for pos_1, pos_2, char, password in values.match_rows(r"^([0-9]+)-([0-9]+) (.): (.*)$", (int_minus, int_minus)):
if bool(password[pos_1] == char) ^ bool(password[pos_2] == char):
values.counter += 1
return values.cou... | 28.15 | 116 | 0.579041 | 74 | 563 | 4.283784 | 0.5 | 0.07571 | 0.050473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061905 | 0.253996 | 563 | 19 | 117 | 29.631579 | 0.692857 | 0.39254 | 0 | 0 | 0 | 0 | 0.086826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.285714 | 0.285714 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
dc6b3cd20f2183330304445ca08ac6108bc42188 | 503 | py | Python | reo/migrations/0142_auto_20211206_2100.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 7 | 2022-01-29T12:10:10.000Z | 2022-03-28T13:45:20.000Z | reo/migrations/0142_auto_20211206_2100.py | NREL/reopt_api | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 12 | 2022-02-01T18:23:18.000Z | 2022-03-31T17:22:17.000Z | reo/migrations/0142_auto_20211206_2100.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 3 | 2022-02-08T19:44:40.000Z | 2022-03-12T11:05:36.000Z | # Generated by Django 3.1.13 on 2021-12-06 21:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reo', '0141_auto_20211202_2315'),
]
operations = [
migrations.RemoveField(
model_name='sitemodel',
name='preprocessed_BAU_l... | 22.863636 | 61 | 0.622266 | 51 | 503 | 5.862745 | 0.705882 | 0.140468 | 0.173913 | 0.200669 | 0.38796 | 0.38796 | 0.38796 | 0.38796 | 0 | 0 | 0 | 0.093923 | 0.280318 | 503 | 21 | 62 | 23.952381 | 0.732044 | 0.091451 | 0 | 0.4 | 1 | 0 | 0.274725 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dc6e01f65223ff7b43181cb8bdca3adc8b8ea36e | 1,005 | py | Python | models/appointments/appointment.py | lohmann99/odensefotografen | d0eac8e7d16dd5eed2b6bf4ebd1e9029193c060c | [
"MIT"
] | null | null | null | models/appointments/appointment.py | lohmann99/odensefotografen | d0eac8e7d16dd5eed2b6bf4ebd1e9029193c060c | [
"MIT"
] | null | null | null | models/appointments/appointment.py | lohmann99/odensefotografen | d0eac8e7d16dd5eed2b6bf4ebd1e9029193c060c | [
"MIT"
] | null | null | null | import uuid
from static.common.database import Database
class Appointment(object):
def __init__(self, owner_id, date, time, confirmed=False, _id=None):
self.owner_id = owner_id
self.date = date
self.time = time
self.confirmed = confirmed
self._id = uuid.uuid4().hex if _id i... | 28.714286 | 116 | 0.59801 | 127 | 1,005 | 4.511811 | 0.417323 | 0.061082 | 0.057592 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001372 | 0.274627 | 1,005 | 34 | 117 | 29.558824 | 0.784636 | 0 | 0 | 0 | 0 | 0 | 0.117413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.074074 | 0.111111 | 0.481481 | 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 | 0 | 0 | 0 | 2 |
dc803d0730090a54ae6da8d2cf68b58719550b2f | 1,742 | py | Python | tests/args/regex/test_args.py | benwhalley/pytest-bdd | f878209f36cf8988336220dc7da3e561e6c871aa | [
"MIT"
] | 1 | 2020-07-04T19:19:22.000Z | 2020-07-04T19:19:22.000Z | tests/args/regex/test_args.py | benwhalley/pytest-bdd | f878209f36cf8988336220dc7da3e561e6c871aa | [
"MIT"
] | null | null | null | tests/args/regex/test_args.py | benwhalley/pytest-bdd | f878209f36cf8988336220dc7da3e561e6c871aa | [
"MIT"
] | 2 | 2020-01-23T22:24:42.000Z | 2020-05-25T10:16:05.000Z | """Step arguments tests."""
import functools
import re
from pytest_bdd import given, parsers, scenario, then, when
import pytest
from pytest_bdd import exceptions
scenario_when = functools.partial(scenario, "../when_arguments.feature")
scenario_args = functools.partial(scenario, "../args_steps.feature")
@scenari... | 23.863014 | 81 | 0.69403 | 265 | 1,742 | 4.437736 | 0.249057 | 0.045918 | 0.05102 | 0.046769 | 0.420918 | 0.347789 | 0.27466 | 0.216837 | 0.096088 | 0.096088 | 0 | 0.004755 | 0.154994 | 1,742 | 72 | 82 | 24.194444 | 0.794158 | 0.08209 | 0 | 0.175 | 0 | 0 | 0.231405 | 0.029243 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.275 | false | 0.1 | 0.125 | 0 | 0.425 | 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 | 0 | 0 | 0 | 2 |
dc812b2d32b82fea94156277dbadb504ec5f752e | 1,445 | py | Python | heuristics.py | MasterOdin/Connect4-AI | 237ba250a4597c49faefbaf6507fddb3121c0261 | [
"MIT"
] | null | null | null | heuristics.py | MasterOdin/Connect4-AI | 237ba250a4597c49faefbaf6507fddb3121c0261 | [
"MIT"
] | null | null | null | heuristics.py | MasterOdin/Connect4-AI | 237ba250a4597c49faefbaf6507fddb3121c0261 | [
"MIT"
] | null | null | null | """
AI Heuristics for various evaluation methods
"""
from __future__ import print_function
import random
__author__ = "Matthew 'MasterOdin' Peveler"
__license__ = "The MIT License (MIT)"
class Heuristic(object):
"""
This is the heuristic interface
"""
@staticmethod
def get_best_column(board):
... | 20.069444 | 69 | 0.612457 | 156 | 1,445 | 5.448718 | 0.397436 | 0.105882 | 0.127059 | 0.077647 | 0.497647 | 0.497647 | 0.348235 | 0.216471 | 0.112941 | 0.112941 | 0 | 0.00198 | 0.301038 | 1,445 | 71 | 70 | 20.352113 | 0.839604 | 0.224221 | 0 | 0.617647 | 0 | 0 | 0.100815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.147059 | 0.058824 | 0 | 0.470588 | 0.029412 | 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 | 0 | 0 | 0 | 2 |
dc8adf067fa88f69026bc58dfa18893ff33af2f1 | 359 | py | Python | atlassian/__init__.py | approximatenumber/atlassian-python-api | 340d4962d5f6a0f79bae40472daf683fe18544f9 | [
"Apache-2.0"
] | null | null | null | atlassian/__init__.py | approximatenumber/atlassian-python-api | 340d4962d5f6a0f79bae40472daf683fe18544f9 | [
"Apache-2.0"
] | null | null | null | atlassian/__init__.py | approximatenumber/atlassian-python-api | 340d4962d5f6a0f79bae40472daf683fe18544f9 | [
"Apache-2.0"
] | null | null | null | from .confluence import Confluence
from .jira import Jira
from .bitbucket import Bitbucket
from .bitbucket import Bitbucket as Stash
from .portfolio import Portfolio
from .bamboo import Bamboo
from .crowd import Crowd
from .service_desk import ServiceDesk
__all__ = ['Confluence', 'Jira', 'Bitbucket', 'Portfolio', 'Bam... | 32.636364 | 101 | 0.779944 | 44 | 359 | 6.25 | 0.318182 | 0.094545 | 0.138182 | 0.203636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125348 | 359 | 10 | 102 | 35.9 | 0.875796 | 0 | 0 | 0 | 0 | 0 | 0.164345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 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 | 0 | 0 | 0 | 2 |
dc9898aedf85d1a0c97027c399bfce3ca821c879 | 1,256 | py | Python | hypatia/physics.py | defcon201/hypatia-engine | 7f712491b818f0f03b285b265dd1127388bcb30d | [
"MIT"
] | 251 | 2015-06-23T05:11:56.000Z | 2015-08-15T11:08:46.000Z | hypatia/physics.py | defcon201/hypatia-engine | 7f712491b818f0f03b285b265dd1127388bcb30d | [
"MIT"
] | 58 | 2015-01-15T22:55:45.000Z | 2015-08-15T08:43:18.000Z | hypatia/physics.py | lillian-mahoney/untitled-game-engine | 7f712491b818f0f03b285b265dd1127388bcb30d | [
"MIT"
] | 26 | 2015-06-16T19:32:30.000Z | 2015-08-09T05:53:01.000Z | """Physical attributes of things.
Right now, not much differs it from the constants
module, but there will surely be much more to do
with physics as time progresses.
See Also:
:mod:`constants`
"""
import pygame
from hypatia import constants
class Velocity(object):
"""Eight-directional velocity."""
d... | 19.323077 | 71 | 0.591561 | 168 | 1,256 | 4.375 | 0.511905 | 0.010884 | 0.029932 | 0.032653 | 0.07619 | 0.07619 | 0.07619 | 0 | 0 | 0 | 0 | 0.002273 | 0.299363 | 1,256 | 64 | 72 | 19.625 | 0.832955 | 0.568471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
dcbaaba033b92036ca9b59355034f4d71e6bb989 | 816 | py | Python | image_classif/app_image_classif_evaluate.py | icalciu/apps | 2cfdaa9aa88b4d770b8e7c92ad86470c795bc963 | [
"MIT"
] | null | null | null | image_classif/app_image_classif_evaluate.py | icalciu/apps | 2cfdaa9aa88b4d770b8e7c92ad86470c795bc963 | [
"MIT"
] | null | null | null | image_classif/app_image_classif_evaluate.py | icalciu/apps | 2cfdaa9aa88b4d770b8e7c92ad86470c795bc963 | [
"MIT"
] | null | null | null | import os
import sys
import random
import subprocess
import time
import turicreate as tc
#### Evaluate the model
# First create test and train data: app_image_classif_create.py
# And train the model: app_image_classif_model.py
######################
tracker='sudo /home/icalciu/ccfpga/peaberry/src/pbsim-ptrace/tracke... | 22.054054 | 69 | 0.719363 | 121 | 816 | 4.727273 | 0.487603 | 0.041958 | 0.055944 | 0.055944 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002766 | 0.113971 | 816 | 36 | 70 | 22.666667 | 0.788382 | 0.270833 | 0 | 0 | 0 | 0 | 0.303704 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.315789 | null | null | 0.210526 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f49b180db78d64a9190fc84b28949a636fbf0615 | 752 | py | Python | checkov/terraform/checks/resource/digitalocean/DropletSSHKeys.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | 1 | 2022-02-20T21:20:39.000Z | 2022-02-20T21:20:39.000Z | checkov/terraform/checks/resource/digitalocean/DropletSSHKeys.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | 3 | 2022-03-07T20:37:31.000Z | 2022-03-21T20:20:14.000Z | checkov/terraform/checks/resource/digitalocean/DropletSSHKeys.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | null | null | null | from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
from typing import Any
from checkov.common.models.consts import ANY_VALUE
class DropletSSHKeys(BaseResourceValueCheck):
def __init__(self):
name = "Ensure... | 31.333333 | 106 | 0.75266 | 87 | 752 | 6.218391 | 0.528736 | 0.060998 | 0.062847 | 0.085028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001608 | 0.172872 | 752 | 23 | 107 | 32.695652 | 0.868167 | 0 | 0 | 0 | 0 | 0 | 0.101064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
f4a22494c0913fb067f5874b4647e3cabca949e2 | 974 | py | Python | src/integral_timber_joints/rhino/debug_movements.py | gramaziokohler/integral_timber_joints | 70e75a66e13b5ada580fcffc58879f5fcb8fce32 | [
"MIT"
] | 3 | 2021-09-16T13:08:32.000Z | 2022-02-21T17:20:21.000Z | src/integral_timber_joints/rhino/debug_movements.py | gramaziokohler/integral_timber_joints | 70e75a66e13b5ada580fcffc58879f5fcb8fce32 | [
"MIT"
] | 80 | 2021-09-06T09:55:38.000Z | 2022-03-22T18:44:24.000Z | src/integral_timber_joints/rhino/debug_movements.py | gramaziokohler/integral_timber_joints | 70e75a66e13b5ada580fcffc58879f5fcb8fce32 | [
"MIT"
] | null | null | null | import Rhino # type: ignore
import rhinoscriptsyntax as rs
import scriptcontext
import re
from integral_timber_joints.rhino.load import get_process, get_process_artist, process_is_none
from integral_timber_joints.geometry import JointHalfLap
from integral_timber_joints.rhino.assembly_artist import AssemblyNurbsArtist
... | 36.074074 | 121 | 0.841889 | 123 | 974 | 6.357724 | 0.487805 | 0.076726 | 0.11509 | 0.153453 | 0.18798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110883 | 974 | 26 | 122 | 37.461538 | 0.903002 | 0.01232 | 0 | 0 | 0 | 0 | 0.008342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.7 | 0 | 0.7 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
f4aa7899627c9adfeb1e1312ca076002e9dc0d99 | 829 | py | Python | src/analisador_sintatico/Node.py | matheusfbonfim/BahTche-Language-Compiler | 531a4fb784914718fcc8a8a8f2e421b068362624 | [
"MIT"
] | 1 | 2021-12-10T14:14:36.000Z | 2021-12-10T14:14:36.000Z | src/analisador_sintatico/Node.py | matheusfbonfim/BahTche-Language-Compiler | 531a4fb784914718fcc8a8a8f2e421b068362624 | [
"MIT"
] | null | null | null | src/analisador_sintatico/Node.py | matheusfbonfim/BahTche-Language-Compiler | 531a4fb784914718fcc8a8a8f2e421b068362624 | [
"MIT"
] | null | null | null | class Node:
def __init__(self, name=None, terminal=False):
self._name = name
self._children = []
self._level = None
self._terminal = terminal
# ====================
# GETTERS E SETTERS
@property
def name(self):
return self._name
@name.setter
def name... | 19.738095 | 50 | 0.564536 | 88 | 829 | 5.136364 | 0.227273 | 0.070796 | 0.123894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322075 | 829 | 41 | 51 | 20.219512 | 0.80427 | 0.045838 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.133333 | 0.466667 | 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 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.