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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7abf0dedd7528e5e8c658c425a2c635f12f405fd | 874 | py | Python | flask-api/api/models/rating.py | reciprep/reciprep-dev | 73c9e7084c7797ed7ce51c624f527c52ee3a5d87 | [
"MIT"
] | null | null | null | flask-api/api/models/rating.py | reciprep/reciprep-dev | 73c9e7084c7797ed7ce51c624f527c52ee3a5d87 | [
"MIT"
] | 5 | 2017-03-07T23:20:30.000Z | 2017-03-07T23:22:10.000Z | flask-api/api/models/rating.py | reciprep/reciprep-server | 73c9e7084c7797ed7ce51c624f527c52ee3a5d87 | [
"MIT"
] | null | null | null | import uuid
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.dialects.postgresql import ARRAY
from api import app, db, bcrypt
from api.models.user import User
from api.models.recipe import Recipe
class Rating(db.Model):
__tablename__ = ... | 33.615385 | 90 | 0.729977 | 123 | 874 | 5.04878 | 0.382114 | 0.05153 | 0.048309 | 0.067633 | 0.276973 | 0.154589 | 0.154589 | 0.115942 | 0.115942 | 0 | 0 | 0.002706 | 0.154462 | 874 | 25 | 91 | 34.96 | 0.837618 | 0 | 0 | 0 | 0 | 0 | 0.056064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.842105 | 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 |
8f81f4cfe87bac50670acf3a61610147f3e9fb75 | 341 | py | Python | eisenmann-backend/product/views/product_entry_view.py | RubenRodrigo/Eisenmann-Inventory | 5abb59a11d43987db3d1742b6f0978c6aa6ee81d | [
"MIT"
] | null | null | null | eisenmann-backend/product/views/product_entry_view.py | RubenRodrigo/Eisenmann-Inventory | 5abb59a11d43987db3d1742b6f0978c6aa6ee81d | [
"MIT"
] | null | null | null | eisenmann-backend/product/views/product_entry_view.py | RubenRodrigo/Eisenmann-Inventory | 5abb59a11d43987db3d1742b6f0978c6aa6ee81d | [
"MIT"
] | null | null | null | # DRF
from rest_framework import viewsets
# Models
from product.models.product_entry import ProductEntry
# Serializers
from product.serializers.product_entry_serializer import ProductEntrySerializer
class ProductEntryViewSet(viewsets.ModelViewSet):
queryset = ProductEntry.objects.all()
serializer_class = Pr... | 24.357143 | 79 | 0.83871 | 34 | 341 | 8.264706 | 0.558824 | 0.078292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111437 | 341 | 13 | 80 | 26.230769 | 0.927393 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 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 |
8f93b66dde157acbb6af2fc0a8acb61534446a20 | 2,252 | py | Python | .templates_py/PipelineModule.py | lnilya/sammie | 656b57ecef67923228f866406385b767a7099e3d | [
"BSD-3-Clause"
] | 2 | 2022-02-03T20:03:54.000Z | 2022-02-03T20:14:37.000Z | .templates_py/PipelineModule.py | lnilya/sammie | 656b57ecef67923228f866406385b767a7099e3d | [
"BSD-3-Clause"
] | null | null | null | .templates_py/PipelineModule.py | lnilya/sammie | 656b57ecef67923228f866406385b767a7099e3d | [
"BSD-3-Clause"
] | null | null | null | from src.sammie.py.modules.ModuleBase import ModuleBase
class __NAME__Keys:
"""Convenience class to access the keys as named entities rather than in an array"""
inSomeInputKey: str
outSomeOutputKey: str
def __init__(self, inputs, outputs):
self.inSomeInputKey = inputs[0]
self.outSomeOu... | 39.508772 | 154 | 0.674067 | 294 | 2,252 | 5.054422 | 0.496599 | 0.016151 | 0.014805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005942 | 0.252664 | 2,252 | 56 | 155 | 40.214286 | 0.877005 | 0.446714 | 0 | 0 | 0 | 0 | 0.041425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.541667 | 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 |
8f95bfd1b9620b0dbb4a2ac282872ee79ea87f6c | 4,317 | py | Python | xii/assembler/ufl_utils.py | MiroK/fenics_ii | 58c41f0e8dba720962830395851e081b057269cc | [
"MIT"
] | 10 | 2017-06-22T21:05:17.000Z | 2020-09-25T08:36:59.000Z | xii/assembler/ufl_utils.py | MiroK/fenics_ii | 58c41f0e8dba720962830395851e081b057269cc | [
"MIT"
] | 2 | 2018-04-14T08:43:59.000Z | 2018-09-19T14:51:46.000Z | xii/assembler/ufl_utils.py | MiroK/fenics_ii | 58c41f0e8dba720962830395851e081b057269cc | [
"MIT"
] | 6 | 2018-04-13T20:33:53.000Z | 2020-09-25T08:37:01.000Z | from dolfin.function.argument import Argument
from ufl.core.terminal import Terminal
import dolfin as df
def topological_dim(thing):
'''Extract topological dimension of thing's cell'''
domain = thing.ufl_domain() # None with e.g. Constants
return -1 if domain is None else domain.ufl_cell().topological_d... | 31.057554 | 99 | 0.660644 | 590 | 4,317 | 4.749153 | 0.261017 | 0.046395 | 0.021413 | 0.021413 | 0.180228 | 0.15132 | 0.135617 | 0.087081 | 0.056388 | 0.027123 | 0 | 0.002163 | 0.250405 | 4,317 | 138 | 100 | 31.282609 | 0.863721 | 0.270558 | 0 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.014493 | 1 | 0.202899 | false | 0 | 0.043478 | 0 | 0.608696 | 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 |
8fad3780b5ebc9508bdfc9f62b8013265d83efd2 | 197 | py | Python | admins/urls.py | Sult/evehub | 61872390d25dd089958f6b4bbc7677f8dd137297 | [
"MIT"
] | null | null | null | admins/urls.py | Sult/evehub | 61872390d25dd089958f6b4bbc7677f8dd137297 | [
"MIT"
] | null | null | null | admins/urls.py | Sult/evehub | 61872390d25dd089958f6b4bbc7677f8dd137297 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from admins import views
urlpatterns = patterns(
'',
# Control panels
url(r'^admin/overview/$', views.overview, name='admin_overview'),
)
| 16.416667 | 69 | 0.690355 | 24 | 197 | 5.625 | 0.666667 | 0.192593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182741 | 197 | 11 | 70 | 17.909091 | 0.838509 | 0.071066 | 0 | 0 | 0 | 0 | 0.171271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8faeb13d8f905c19361af335e0eb34cc0470d735 | 648 | py | Python | minder_utils/configurations/__init__.py | minder-utils/minder_utils_light | d0bd7f7279d20b51a6f73aa55f885c04b31dd9f4 | [
"MIT"
] | null | null | null | minder_utils/configurations/__init__.py | minder-utils/minder_utils_light | d0bd7f7279d20b51a6f73aa55f885c04b31dd9f4 | [
"MIT"
] | null | null | null | minder_utils/configurations/__init__.py | minder-utils/minder_utils_light | d0bd7f7279d20b51a6f73aa55f885c04b31dd9f4 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from minder_utils.util.util import reformat_path
import yaml
p = Path(os.path.join(os.path.dirname(__file__), 'confidential'))
if not p.exists():
os.mkdir(reformat_path(p))
data_path = os.path.join(os.path.dirname(__file__), 'confidential', 'data_path.txt')
token_path = os.path.... | 40.5 | 94 | 0.757716 | 100 | 648 | 4.54 | 0.27 | 0.15859 | 0.132159 | 0.185022 | 0.585903 | 0.585903 | 0.585903 | 0.585903 | 0.585903 | 0.207048 | 0 | 0 | 0.080247 | 648 | 15 | 95 | 43.2 | 0.761745 | 0 | 0 | 0 | 0 | 0 | 0.211747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
8fbcc4c5e6588cf9b8d93e9638b85b3ec56bfe21 | 1,067 | py | Python | lab01/tiago-dalloca.py | Desnord/lab-mc102 | 470e5d942cf57305d8ba0b272f4c5f9aad4de11f | [
"Apache-2.0"
] | 7 | 2018-03-30T21:08:14.000Z | 2018-08-23T01:10:27.000Z | lab01/tiago-dalloca.py | Desnord/lab-mc102 | 470e5d942cf57305d8ba0b272f4c5f9aad4de11f | [
"Apache-2.0"
] | 2 | 2018-03-30T23:24:41.000Z | 2018-05-15T00:46:12.000Z | lab01/tiago-dalloca.py | Desnord/lab-mc102 | 470e5d942cf57305d8ba0b272f4c5f9aad4de11f | [
"Apache-2.0"
] | 7 | 2018-03-30T21:13:46.000Z | 2018-09-23T17:12:33.000Z | # DESCRIÇÃO
# Escreva um programa que calcule a circunferência C de um determinado
# planeta, com base na observação do ângulo A, entre duas localidades C1 e
# C2, e na distância D, em estádios, entre elas.
# Suponha que as localidades estejam no mesmo meridiano de um planeta
# esférico. O seu programa deverá imprimi... | 23.195652 | 74 | 0.725398 | 180 | 1,067 | 4.244444 | 0.483333 | 0.052356 | 0.043194 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021127 | 0.2015 | 1,067 | 45 | 75 | 23.711111 | 0.875587 | 0.757263 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.181818 | 0.454545 | 0.363636 | 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 |
8fc46a0cea8d599b2e3cb170bc4da8cc1384b79d | 461 | py | Python | sphinxcontrib/needs/services/base.py | twodrops/sphinxcontrib-needs | c2081bd499fe7d36840d29ca3fb05c80e7bf2284 | [
"MIT"
] | null | null | null | sphinxcontrib/needs/services/base.py | twodrops/sphinxcontrib-needs | c2081bd499fe7d36840d29ca3fb05c80e7bf2284 | [
"MIT"
] | null | null | null | sphinxcontrib/needs/services/base.py | twodrops/sphinxcontrib-needs | c2081bd499fe7d36840d29ca3fb05c80e7bf2284 | [
"MIT"
] | null | null | null | import sphinx
from pkg_resources import parse_version
sphinx_version = sphinx.__version__
if parse_version(sphinx_version) >= parse_version("1.6"):
from sphinx.util import logging
else:
import logging
logging.basicConfig()
class BaseService:
def __init__(self, *args, **kwargs):
self.log = l... | 23.05 | 72 | 0.724512 | 56 | 461 | 5.642857 | 0.589286 | 0.113924 | 0.189873 | 0.158228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.180043 | 461 | 19 | 73 | 24.263158 | 0.830688 | 0 | 0 | 0 | 0 | 0 | 0.08243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 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 |
8fd1a869a307cb963df420776582253aee8db365 | 606 | py | Python | pytglib/api/types/rich_texts.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/types/rich_texts.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/types/rich_texts.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class RichTexts(Object):
"""
A concatenation of rich texts
Attributes:
ID (:obj:`str`): ``RichTexts``
Args:
texts (List of :class:`telegram.api.types.RichText`):
Texts
Returns:
RichText
Raises:
:class:`telegram.Error... | 18.363636 | 61 | 0.551155 | 66 | 606 | 5 | 0.560606 | 0.054545 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315182 | 606 | 32 | 62 | 18.9375 | 0.795181 | 0.387789 | 0 | 0 | 0 | 0 | 0.072555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8ff3bce5f3310585f9e33a3098800502c9b89141 | 868 | py | Python | astruct/type_hints/extras.py | misterfifths/nis_mods | 9d460414cb88d10f2737e9be90babe85c9856001 | [
"MIT"
] | 1 | 2021-10-18T13:42:09.000Z | 2021-10-18T13:42:09.000Z | astruct/type_hints/extras.py | misterfifths/nis-mods | 9d460414cb88d10f2737e9be90babe85c9856001 | [
"MIT"
] | null | null | null | astruct/type_hints/extras.py | misterfifths/nis-mods | 9d460414cb88d10f2737e9be90babe85c9856001 | [
"MIT"
] | null | null | null | import ctypes as C
from typing import TYPE_CHECKING, Sequence, Union
from .ctypes_aliases import AnyCType
if TYPE_CHECKING:
import mmap
"""
TODO: Better WriteableBuffer type? Feels like a MutableSequence[int] should be
fine, but there's some weirdness between the types struct.unpack_from and
ctypes.Structure.fro... | 33.384615 | 84 | 0.786866 | 126 | 868 | 5.34127 | 0.531746 | 0.066865 | 0.05052 | 0.053492 | 0.118871 | 0.118871 | 0.118871 | 0.118871 | 0 | 0 | 0 | 0 | 0.141705 | 868 | 25 | 85 | 34.72 | 0.903356 | 0.320277 | 0 | 0 | 0 | 0 | 0.023077 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
8ffd6bcc2115d84d5eb85d847a161fe75fb0b230 | 108 | py | Python | examples/helloworld2.py | lam2mo/FPTuner | 29898c96741db341716a20ebfc4d12138cac2c99 | [
"MIT"
] | 14 | 2016-10-29T18:45:03.000Z | 2021-02-12T01:46:54.000Z | examples/helloworld2.py | lam2mo/FPTuner | 29898c96741db341716a20ebfc4d12138cac2c99 | [
"MIT"
] | 4 | 2017-09-12T13:24:54.000Z | 2021-02-19T03:21:18.000Z | examples/helloworld2.py | lam2mo/FPTuner | 29898c96741db341716a20ebfc4d12138cac2c99 | [
"MIT"
] | 4 | 2017-07-19T21:46:54.000Z | 2020-05-21T20:34:41.000Z |
import tft_ir_api as IR
A = IR.RealVE("A", 0, 0.0, 100.0)
rel = IR.BE("+", 4, A, A)
IR.TuneExpr(rel)
| 12 | 33 | 0.555556 | 24 | 108 | 2.416667 | 0.541667 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.222222 | 108 | 8 | 34 | 13.5 | 0.595238 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8907501c9b28be9a6d3ff576ef6b0896b6546e5f | 470 | py | Python | geohash/models.py | sewald101/geohash_root | 64f56c21f4a0892e6b3bdc332140988363a5fab8 | [
"Unlicense"
] | 1 | 2020-12-10T23:23:47.000Z | 2020-12-10T23:23:47.000Z | geohash/models.py | sewald101/geohash_root | 64f56c21f4a0892e6b3bdc332140988363a5fab8 | [
"Unlicense"
] | 1 | 2021-06-04T23:33:06.000Z | 2021-06-04T23:33:06.000Z | geohash/models.py | sewald101/geohash_root | 64f56c21f4a0892e6b3bdc332140988363a5fab8 | [
"Unlicense"
] | null | null | null |
import datetime
from django.db import models
from django.utils import timezone
# Create your models here.
class Woeids(models.Model):
country = models.CharField(max_length=200, null=True, blank=True)
name = models.CharField(max_length=200, null=True, blank=True)
woeid = models.IntegerField(default=0, nul... | 23.5 | 69 | 0.66383 | 63 | 470 | 4.857143 | 0.507937 | 0.078431 | 0.127451 | 0.166667 | 0.287582 | 0.287582 | 0.287582 | 0.287582 | 0.287582 | 0 | 0 | 0.019178 | 0.223404 | 470 | 19 | 70 | 24.736842 | 0.819178 | 0.051064 | 0 | 0 | 0 | 0 | 0.0181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 0.692308 | 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 |
890fa29094f2698ba0162646dededd0938cbb192 | 202 | py | Python | data_collection/gazette/spiders/sc_sao_domingos.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 454 | 2018-04-07T03:32:57.000Z | 2020-08-17T19:56:22.000Z | data_collection/gazette/spiders/sc_sao_domingos.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 254 | 2020-08-18T14:09:43.000Z | 2022-03-28T11:30:51.000Z | data_collection/gazette/spiders/sc_sao_domingos.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 183 | 2018-04-11T15:09:37.000Z | 2020-08-15T18:55:11.000Z | from gazette.spiders.base.fecam import FecamGazetteSpider
class ScSaoDomingosSpider(FecamGazetteSpider):
name = "sc_sao_domingos"
FECAM_QUERY = "cod_entidade:244"
TERRITORY_ID = "4216107"
| 25.25 | 57 | 0.777228 | 22 | 202 | 6.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057803 | 0.143564 | 202 | 7 | 58 | 28.857143 | 0.820809 | 0 | 0 | 0 | 0 | 0 | 0.188119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
89102e8ca848b6e2650eb69463ed0f3738b0b58d | 520 | py | Python | src/messages.py | K-Paul-Acct/wChanger | 70643b52a7305f14cf1ebc9aeff089273edee8c5 | [
"MIT"
] | 2 | 2021-04-06T10:03:57.000Z | 2022-03-22T07:39:25.000Z | src/messages.py | K-Paul-Acct/wChanger | 70643b52a7305f14cf1ebc9aeff089273edee8c5 | [
"MIT"
] | 1 | 2021-11-13T00:14:14.000Z | 2021-11-13T00:14:14.000Z | src/messages.py | K-Paul-Acct/wChanger | 70643b52a7305f14cf1ebc9aeff089273edee8c5 | [
"MIT"
] | null | null | null | bot_is_not_admin = 'Ой! Для того, чтобы бот мог менять название беседы, нужно сделать его админом.'
setting = 'Для настройки смены названия для вашей беседы введите, разделяя вертикальной ' \
'чертой "@wchanger Название чётной недели | Название нечётной недели"'
success = 'Бот успешно настроен и теперь будет ... | 65 | 99 | 0.751923 | 71 | 520 | 5.450704 | 0.732394 | 0.02584 | 0.05168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 520 | 7 | 100 | 74.285714 | 0.891204 | 0 | 0 | 0 | 0 | 0 | 0.757692 | 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 | 0 | 0 | 0 | 1 | 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 |
64e3db1ac6b37142f68fda74466fe0e7eed1abc3 | 304 | py | Python | scripts/remove_empty_models.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null | scripts/remove_empty_models.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null | scripts/remove_empty_models.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
def remove_where(field, match_fn):
def transform(element):
pass
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Remove empty models from a db')
parser.add_argument('db-path')
args = parser.parse_args()
| 17.882353 | 52 | 0.674342 | 38 | 304 | 5.078947 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213816 | 304 | 16 | 53 | 19 | 0.807531 | 0.065789 | 0 | 0 | 0 | 0 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
64e3e47a28caa9481770670a833516f65a1d1add | 717 | py | Python | backend/apps/users/filters.py | playonefor/turiy | e8065e0f6f8b3ade048375332b767a889a19c1df | [
"MIT"
] | null | null | null | backend/apps/users/filters.py | playonefor/turiy | e8065e0f6f8b3ade048375332b767a889a19c1df | [
"MIT"
] | null | null | null | backend/apps/users/filters.py | playonefor/turiy | e8065e0f6f8b3ade048375332b767a889a19c1df | [
"MIT"
] | null | null | null | from django_filters import rest_framework as filters
from django.db.models import Q
from django.contrib.auth import get_user_model
from users.models import tGroup
User = get_user_model()
class UsersFilter(filters.FilterSet):
'''
用户过滤
'''
username = filters.CharFilter(lookup_expr='icontains')
mo... | 21.088235 | 61 | 0.67643 | 81 | 717 | 5.851852 | 0.432099 | 0.14346 | 0.194093 | 0.227848 | 0.362869 | 0.21097 | 0.21097 | 0.21097 | 0 | 0 | 0 | 0 | 0.211994 | 717 | 33 | 62 | 21.727273 | 0.838938 | 0.013947 | 0 | 0.117647 | 0 | 0 | 0.100592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.705882 | 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 |
64f0e961423c1d65186320fe453b1e81ade39eac | 204 | py | Python | libs/request/header_const.py | jumper2014/http-api-test-framework-python-pytest | 0cd12def0aa36e643df7741340f7ffade28c4329 | [
"Apache-2.0"
] | null | null | null | libs/request/header_const.py | jumper2014/http-api-test-framework-python-pytest | 0cd12def0aa36e643df7741340f7ffade28c4329 | [
"Apache-2.0"
] | null | null | null | libs/request/header_const.py | jumper2014/http-api-test-framework-python-pytest | 0cd12def0aa36e643df7741340f7ffade28c4329 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# author: zengyuetian
content_type_json = {'Content-Type': 'application/json'}
accept_type_json = {'Accept': 'application/json'}
if __name__ == "__main__":
pass | 20.4 | 56 | 0.705882 | 26 | 204 | 5.076923 | 0.692308 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.127451 | 204 | 10 | 57 | 20.4 | 0.735955 | 0.259804 | 0 | 0 | 0 | 0 | 0.389262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
64f763d77c10eb46452117b6282cf68007248866 | 200 | py | Python | pysnake/__main__.py | otov4its/pysnake | dbfe36e464b660cddb4193a493fc0e37e55a251f | [
"MIT"
] | null | null | null | pysnake/__main__.py | otov4its/pysnake | dbfe36e464b660cddb4193a493fc0e37e55a251f | [
"MIT"
] | null | null | null | pysnake/__main__.py | otov4its/pysnake | dbfe36e464b660cddb4193a493fc0e37e55a251f | [
"MIT"
] | null | null | null | import curses
from .game import Game
def go(stdscr):
Game(stdscr).run() # Start game
def main():
# Curses convinient wrapper
curses.wrapper(go)
if __name__ == '__main__':
main() | 13.333333 | 36 | 0.65 | 26 | 200 | 4.692308 | 0.538462 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23 | 200 | 15 | 37 | 13.333333 | 0.792208 | 0.18 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8f0275d3ff8e79732e2092d8d35642359defd84e | 479 | py | Python | utils/__init__.py | CSuppan/two-shot-brdf-shape | 352201b66bfa5cd5e25111451a6583a3e7d499f0 | [
"BSD-Source-Code"
] | null | null | null | utils/__init__.py | CSuppan/two-shot-brdf-shape | 352201b66bfa5cd5e25111451a6583a3e7d499f0 | [
"BSD-Source-Code"
] | null | null | null | utils/__init__.py | CSuppan/two-shot-brdf-shape | 352201b66bfa5cd5e25111451a6583a3e7d499f0 | [
"BSD-Source-Code"
] | null | null | null | # -----------------------------------------------------------------------
# Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
#
# This work is made available
# under the Nvidia Source Code License (1-way Commercial).
#
# Official Implementation of the CVPR2020 Paper
# Two-shot Spatially-varying BRDF and Shap... | 43.545455 | 73 | 0.528184 | 48 | 479 | 5.270833 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021327 | 0.118998 | 479 | 10 | 74 | 47.9 | 0.578199 | 0.956159 | 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 |
8f0d306d518d0d86a40d7ee992fbad6f04fe875f | 243 | py | Python | vocoder/hifigan/env.py | 10088/MockingBird | 6a793cea8488ad40fcad6ab30f9d82bc920ac114 | [
"MIT"
] | 1 | 2021-12-08T16:33:17.000Z | 2021-12-08T16:33:17.000Z | vocoder/hifigan/env.py | 10088/MockingBird | 6a793cea8488ad40fcad6ab30f9d82bc920ac114 | [
"MIT"
] | null | null | null | vocoder/hifigan/env.py | 10088/MockingBird | 6a793cea8488ad40fcad6ab30f9d82bc920ac114 | [
"MIT"
] | null | null | null | import os
import shutil
def build_env(config, config_name, path):
t_path = os.path.join(path, config_name)
if config != t_path:
os.makedirs(path, exist_ok=True)
shutil.copyfile(config, os.path.join(path, config_name))
| 27 | 64 | 0.695473 | 38 | 243 | 4.263158 | 0.447368 | 0.185185 | 0.08642 | 0.17284 | 0.296296 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1893 | 243 | 8 | 65 | 30.375 | 0.822335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 |
8f10ee40e95cf26a981af25a14d379eb64be7e96 | 540 | py | Python | app/routers/openstack/sizes.py | skyworkflows/swm-cloud-gate | 5cae6bc62b5abeb6c985b0b1d1b7d4f7484416af | [
"BSD-3-Clause"
] | 3 | 2021-04-05T18:32:27.000Z | 2021-04-06T08:14:22.000Z | app/routers/openstack/sizes.py | skyworkflows/swm-cloud-gate | 5cae6bc62b5abeb6c985b0b1d1b7d4f7484416af | [
"BSD-3-Clause"
] | null | null | null | app/routers/openstack/sizes.py | skyworkflows/swm-cloud-gate | 5cae6bc62b5abeb6c985b0b1d1b7d4f7484416af | [
"BSD-3-Clause"
] | null | null | null | import typing
from fastapi import APIRouter, Header
from .connector import OpenStackConnector
from .models import convert_to_flavor
CONNECTOR = OpenStackConnector()
ROUTER = APIRouter()
@ROUTER.get("/openstack/flavors")
async def list_flavors(username: str = Header(None), password: str = Header(None)):
CONNECT... | 28.421053 | 83 | 0.753704 | 64 | 540 | 6.21875 | 0.5 | 0.075377 | 0.075377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140741 | 540 | 18 | 84 | 30 | 0.857759 | 0 | 0 | 0 | 0 | 0 | 0.059259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.307692 | 0 | 0.384615 | 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 |
8f12996b37d2624cf9dc2205e4c9a3d5e5086701 | 831 | py | Python | tests/test_ptkcmd/myptkcmd.py | mmiguel6288code/ptkcmd | 825a88d083b5a6114b054421f4067d37b889606f | [
"MIT"
] | 8 | 2020-09-02T21:20:33.000Z | 2022-02-03T19:31:25.000Z | tests/test_ptkcmd/myptkcmd.py | mmiguel6288code/ptkcmd | 825a88d083b5a6114b054421f4067d37b889606f | [
"MIT"
] | null | null | null | tests/test_ptkcmd/myptkcmd.py | mmiguel6288code/ptkcmd | 825a88d083b5a6114b054421f4067d37b889606f | [
"MIT"
] | 1 | 2020-11-12T06:32:48.000Z | 2020-11-12T06:32:48.000Z | from ptkcmd import PtkCmd, Completion, complete_files
class MyPtkCmd(PtkCmd):
prompt='MyPtkCmd$ '
def __init__(self,stdin=None,stdout=None,intro=None,interactive=True,do_complete_cmd=True,default_shell=False,**psession_kwargs):
super().__init__(stdin,stdout,intro,interactive,do_complete_cmd,default_shel... | 33.24 | 133 | 0.696751 | 112 | 831 | 4.928571 | 0.455357 | 0.054348 | 0.081522 | 0.068841 | 0.130435 | 0.130435 | 0.130435 | 0.130435 | 0.130435 | 0.130435 | 0 | 0 | 0.175692 | 831 | 24 | 134 | 34.625 | 0.805839 | 0.032491 | 0 | 0.133333 | 0 | 0 | 0.086118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8f1535cce7276091ce2be0169366ccc905627a69 | 7,925 | py | Python | Beginner/03. Python/ZodiacSignTraits.py | DipadityaDas/Hacktoberfest | 0e403775b9f1daaccae5d13084f91e4c4b44ef18 | [
"MIT"
] | 1 | 2020-10-19T10:02:16.000Z | 2020-10-19T10:02:16.000Z | Beginner/03. Python/ZodiacSignTraits.py | DipadityaDas/Hacktoberfest | 0e403775b9f1daaccae5d13084f91e4c4b44ef18 | [
"MIT"
] | null | null | null | Beginner/03. Python/ZodiacSignTraits.py | DipadityaDas/Hacktoberfest | 0e403775b9f1daaccae5d13084f91e4c4b44ef18 | [
"MIT"
] | null | null | null | def showAries():
print("ARIES (March 21 – April 19)")
print("")
print("Aries is independent in nature, fun loving, impulsive and a tough cookie. You desire big goals and possess the determination to accomplish them without getting weakened by any hurdle. " +
"The courage and ambition you hold ... | 46.345029 | 199 | 0.644164 | 1,036 | 7,925 | 4.939189 | 0.361969 | 0.072308 | 0.035568 | 0.038695 | 0.086574 | 0.064686 | 0 | 0 | 0 | 0 | 0 | 0.008207 | 0.261956 | 7,925 | 170 | 200 | 46.617647 | 0.864592 | 0 | 0 | 0.410256 | 0 | 0.134615 | 0.659273 | 0.002837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.012821 | 0 | 0 | 0.083333 | 0.557692 | 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 |
8f17a41721088444baaa6e7c92cf04c8870b502e | 25,714 | py | Python | neural-navigation-with-lstm/MARCO/nltk/test/token.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | 14 | 2016-04-03T19:25:13.000Z | 2022-01-05T07:03:07.000Z | neural-navigation-with-lstm/MARCO/nltk/test/token.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | null | null | null | neural-navigation-with-lstm/MARCO/nltk/test/token.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | 5 | 2018-06-21T12:58:58.000Z | 2020-02-15T05:33:39.000Z | # Natural Language Toolkit: Test Code for Tokens and Tokenizers
#
# Copyright (C) 2001 University of Pennsylvania
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
#
# $Id: token.py,v 1.1.1.2 2004/09/29 21:58:12 adastra Exp $
"""
Unit testing... | 27.980413 | 75 | 0.60224 | 3,352 | 25,714 | 4.556683 | 0.1429 | 0.029789 | 0.043538 | 0.052704 | 0.436101 | 0.353477 | 0.286958 | 0.270001 | 0.230195 | 0.220767 | 0 | 0.03578 | 0.220697 | 25,714 | 918 | 76 | 28.010893 | 0.726433 | 0.941355 | 0 | 0.349432 | 0 | 0.015625 | 0.962064 | 0.098803 | 0 | 0 | 0 | 0 | 0.009943 | 1 | 0.012784 | false | 0.002841 | 0.007102 | 0 | 0.021307 | 0.109375 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8f2646ce36d6581ebe702f50f5d9fc46cbfd6387 | 3,332 | py | Python | pythonProjects/guess_number/guess_number.py | chisma/pythonProjects | f22f4e8dae33827696ed6ad3168d1cc83f974150 | [
"MIT"
] | null | null | null | pythonProjects/guess_number/guess_number.py | chisma/pythonProjects | f22f4e8dae33827696ed6ad3168d1cc83f974150 | [
"MIT"
] | null | null | null | pythonProjects/guess_number/guess_number.py | chisma/pythonProjects | f22f4e8dae33827696ed6ad3168d1cc83f974150 | [
"MIT"
] | null | null | null | import random
def guess(x):
random_number = random.randint(1, x)
guess = 0
while guess != random_number:
guess = int(input(
f"Python generated a lucky number for you. It's your turn to GUESS the number now! Hint: Number is between 1 and {x}: "))
if guess < random_number:
... | 39.666667 | 133 | 0.592737 | 421 | 3,332 | 4.465558 | 0.211401 | 0.200532 | 0.069149 | 0.093085 | 0.428723 | 0.379787 | 0.379787 | 0.379787 | 0.347872 | 0.305319 | 0 | 0.016178 | 0.313625 | 3,332 | 83 | 134 | 40.144578 | 0.805859 | 0.007803 | 0 | 0.236111 | 1 | 0.013889 | 0.277021 | 0.027248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.013889 | 0 | 0.055556 | 0.152778 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8f266aed6cb59b4094ca5da5b7023d58572f52b6 | 9,705 | py | Python | catalog/harvest/initial_harverster_s2.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | catalog/harvest/initial_harverster_s2.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | catalog/harvest/initial_harverster_s2.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
""" EOSS catalog system
Reads sentinel2 data which is stored in AWS buckets extracted with 'aws s3 ls sentinel-s2-l1c/products/ --recursive --region=eu-central-1 | grep productInfo.json'
[
"""
__author__ = "Thilo Wehrmann, Steffen Gebhardt"
__copyright__ = "Copyright 2016, EOSS GmbH"
__credits_... | 43.716216 | 162 | 0.578362 | 1,010 | 9,705 | 5.287129 | 0.212871 | 0.043071 | 0.038951 | 0.025843 | 0.638202 | 0.633708 | 0.624719 | 0.624719 | 0.613858 | 0.613858 | 0 | 0.017914 | 0.321278 | 9,705 | 221 | 163 | 43.914027 | 0.792774 | 0.002164 | 0 | 0.590909 | 0 | 0 | 0.123485 | 0.024444 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085227 | null | null | 0.073864 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
8f32b28ef06f4c9691ebde7eacf5ccd2c60aace0 | 163 | py | Python | Ex 06.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | Ex 06.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | Ex 06.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | import math
a = int(input('digite um numero:'))
print('O dobro do valor digitado é: {}\nO triplo é: {}\nA Raiz quadrada é: {}'.format((a*2),(a*3),(math.sqrt(a))))
| 40.75 | 114 | 0.631902 | 30 | 163 | 3.433333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.128834 | 163 | 3 | 115 | 54.333333 | 0.711268 | 0 | 0 | 0 | 0 | 0 | 0.533742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8f38228c5f10a4b1bfb3ff3d3be495b938c13abf | 1,063 | py | Python | tests/unit/rules/contexts/count.py | translationexchange/tml-python | d09e36f0319f5d3ac0b83ee84b8848d2b2e8e481 | [
"MIT"
] | 1 | 2017-05-16T18:54:18.000Z | 2017-05-16T18:54:18.000Z | tests/unit/rules/contexts/count.py | translationexchange/tml-python | d09e36f0319f5d3ac0b83ee84b8848d2b2e8e481 | [
"MIT"
] | 2 | 2021-03-22T16:55:59.000Z | 2021-12-13T19:35:12.000Z | tests/unit/rules/contexts/count.py | translationexchange/tml-python | d09e36f0319f5d3ac0b83ee84b8848d2b2e8e481 | [
"MIT"
] | 1 | 2016-08-15T14:41:18.000Z | 2016-08-15T14:41:18.000Z | # encoding: UTF-8
""" Test rules built-in functions """
from __future__ import absolute_import
import unittest
from tml.rules.contexts.count import *
import six
class WithLength(object):
def __len__(self):
return 10
class WithoutLength(object):
pass
class CountTest(unittest.TestCase):
""" Test c... | 25.926829 | 85 | 0.648166 | 129 | 1,063 | 5.170543 | 0.410853 | 0.104948 | 0.11994 | 0.148426 | 0.286357 | 0.286357 | 0 | 0 | 0 | 0 | 0 | 0.020311 | 0.212606 | 1,063 | 40 | 86 | 26.575 | 0.776583 | 0.055503 | 0 | 0.111111 | 0 | 0 | 0.078788 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.222222 | false | 0.037037 | 0.148148 | 0.037037 | 0.518519 | 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 |
8f3c5e333599fdc4cb51a82f876ae8020f57a096 | 167 | py | Python | critters/fac-rec.py | vagoff/shootout | e2f085436cdfb6945db55dc92a9de46e925b8f39 | [
"MIT"
] | null | null | null | critters/fac-rec.py | vagoff/shootout | e2f085436cdfb6945db55dc92a9de46e925b8f39 | [
"MIT"
] | null | null | null | critters/fac-rec.py | vagoff/shootout | e2f085436cdfb6945db55dc92a9de46e925b8f39 | [
"MIT"
] | null | null | null | import sys
import math
sys.setrecursionlimit(999000)
def fac(x):
if x < 2:
return 1
return x * fac(x - 1)
print(math.log10( fac(int(sys.argv[1])) ))
| 15.181818 | 42 | 0.616766 | 28 | 167 | 3.678571 | 0.571429 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094488 | 0.239521 | 167 | 10 | 43 | 16.7 | 0.716535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0.125 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
8f3d42e4319e4d469d3130e2ebbeefda3a9be8b3 | 553 | py | Python | whyis/autonomic/global_change_service.py | tolulomo/whyis | eb50ab3301eb7efd27a1a3f6fb2305dedd910397 | [
"Apache-2.0"
] | 31 | 2018-05-30T02:41:23.000Z | 2021-10-17T01:25:20.000Z | whyis/autonomic/global_change_service.py | tolulomo/whyis | eb50ab3301eb7efd27a1a3f6fb2305dedd910397 | [
"Apache-2.0"
] | 115 | 2018-04-07T00:59:11.000Z | 2022-03-02T03:06:45.000Z | whyis/autonomic/global_change_service.py | tolulomo/whyis | eb50ab3301eb7efd27a1a3f6fb2305dedd910397 | [
"Apache-2.0"
] | 25 | 2018-04-07T00:49:55.000Z | 2021-09-28T14:29:18.000Z | from builtins import str
import sadi
import rdflib
import setlr
from datetime import datetime
from .service import Service
from nanopub import Nanopublication
from datastore import create_id
import flask
from flask import render_template
from flask import render_template_string
import logging
import sys, traceback
i... | 18.433333 | 42 | 0.824593 | 71 | 553 | 6.352113 | 0.535211 | 0.039911 | 0.066519 | 0.093126 | 0.128603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151899 | 553 | 29 | 43 | 19.068966 | 0.96162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.809524 | 0.047619 | 0.952381 | 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 |
8f4ba8756914cc8a83e68158bde5ac2c5e1c8691 | 162 | py | Python | alloy_related/alloyToRailML/parserAlloy/level.py | pedrordgs/RailML-Utilities | f8842860acc263ab30da185ff2ca84c3ba7335f6 | [
"MIT"
] | 21 | 2021-06-23T03:09:42.000Z | 2021-12-22T16:02:20.000Z | alloy_related/alloyToRailML/parserAlloy/level.py | pedrordgs/RailML-Utilities | f8842860acc263ab30da185ff2ca84c3ba7335f6 | [
"MIT"
] | null | null | null | alloy_related/alloyToRailML/parserAlloy/level.py | pedrordgs/RailML-Utilities | f8842860acc263ab30da185ff2ca84c3ba7335f6 | [
"MIT"
] | null | null | null | class Level:
def __init__(self, ident, desc, nresources):
self.id = ident
self.description = desc
self.networkResources = nresources
| 23.142857 | 48 | 0.641975 | 17 | 162 | 5.882353 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 162 | 6 | 49 | 27 | 0.854701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8f51b1f418a90f98dcafef44fa8b0b18f313cb00 | 64,106 | py | Python | pytorch2caffe/caffe_pb2.py | wgggSg/pytorch2caffe | b22ce80339dd5f5fcec5a53f65fbf3b1c1d938ea | [
"MIT"
] | null | null | null | pytorch2caffe/caffe_pb2.py | wgggSg/pytorch2caffe | b22ce80339dd5f5fcec5a53f65fbf3b1c1d938ea | [
"MIT"
] | null | null | null | pytorch2caffe/caffe_pb2.py | wgggSg/pytorch2caffe | b22ce80339dd5f5fcec5a53f65fbf3b1c1d938ea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: caffe.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from... | 83.254545 | 30,057 | 0.800471 | 9,038 | 64,106 | 5.427418 | 0.101792 | 0.01003 | 0.019081 | 0.031802 | 0.416203 | 0.325994 | 0.277027 | 0.224696 | 0.20168 | 0.128922 | 0 | 0.147591 | 0.046345 | 64,106 | 769 | 30,058 | 83.362809 | 0.65478 | 0.064003 | 0 | 0.208333 | 1 | 0.072115 | 0.380256 | 0.305283 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009615 | 0 | 0.009615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8f51d2a0ec979865686042df3864ca787e25c4cd | 738 | py | Python | tests/CRAFT/MFW/lambdaV1.py | idaholab/SR2ML | 2aa5e0be02786523cdeaf898d42411a7068d30b7 | [
"Apache-2.0"
] | 5 | 2021-01-25T02:01:22.000Z | 2021-12-27T03:14:49.000Z | tests/CRAFT/MFW/lambdaV1.py | idaholab/SR2ML | 2aa5e0be02786523cdeaf898d42411a7068d30b7 | [
"Apache-2.0"
] | 32 | 2021-01-12T18:43:29.000Z | 2022-02-17T19:45:27.000Z | tests/CRAFT/testMC_timeDep/lambdaV1.py | idaholab/SR2ML | 2aa5e0be02786523cdeaf898d42411a7068d30b7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020, Battelle Energy Alliance, LLC
# ALL RIGHTS RESERVED
import numpy as np
import math
import random
from scipy.integrate import quad
def timeDepLambda(t,a,b):
return a+t*b
def pdfFailure(t,a,b):
first = timeDepLambda(t,a,b)
second = math.exp(-quad(timeDepLambda, 0, t, args=(a,b))[0])
return fi... | 28.384615 | 110 | 0.666667 | 130 | 738 | 3.7 | 0.376923 | 0.016632 | 0.018711 | 0.066528 | 0.268191 | 0.112266 | 0.112266 | 0.112266 | 0.112266 | 0.112266 | 0 | 0.038339 | 0.151762 | 738 | 25 | 111 | 29.52 | 0.730032 | 0.303523 | 0 | 0 | 0 | 0 | 0.031558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8f644f6734e040c6ba15713aebdfb20814872df6 | 140 | py | Python | submissions/abc058/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/abc058/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/abc058/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | null | null | null | o = input()
e = input()
ans = ''
for i in range(len(e)):
ans += o[i]
ans += e[i]
if len(o)-len(e) == 1:
ans += o[-1]
print(ans)
| 14 | 23 | 0.457143 | 28 | 140 | 2.285714 | 0.428571 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.278571 | 140 | 9 | 24 | 15.555556 | 0.613861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
8f66133575ba5eaf993451dbd859e1f29cf63dd0 | 1,637 | py | Python | src/datasets/imagenet_r.py | mmatena/wise-ft | 2630c366d252ad32db82ea886f7ab6a752142792 | [
"MIT"
] | 79 | 2021-10-01T22:29:51.000Z | 2022-03-30T04:19:58.000Z | src/datasets/imagenet_r.py | mmatena/wise-ft | 2630c366d252ad32db82ea886f7ab6a752142792 | [
"MIT"
] | 2 | 2021-11-18T19:50:59.000Z | 2022-01-08T00:57:24.000Z | src/datasets/imagenet_r.py | mmatena/wise-ft | 2630c366d252ad32db82ea886f7ab6a752142792 | [
"MIT"
] | 10 | 2021-10-14T18:29:59.000Z | 2022-03-27T12:40:18.000Z | import os
import torch
import torchvision.datasets as datasets
from .imagenet import ImageNetSubsample, ImageNetSubsampleValClasses
import numpy as np
CLASS_SUBLIST = [
1, 2, 4, 6, 8, 9, 11, 13, 22, 23, 26, 29, 31, 39, 47, 63, 71, 76, 79, 84, 90, 94, 96, 97, 99, 100, 105, 107,
113, 122,
125, 130, 132, 14... | 41.974359 | 112 | 0.635919 | 277 | 1,637 | 3.685921 | 0.837545 | 0.105779 | 0.047013 | 0.03526 | 0.123408 | 0.123408 | 0.123408 | 0.123408 | 0.123408 | 0.123408 | 0 | 0.448006 | 0.218693 | 1,637 | 39 | 113 | 41.974359 | 0.350274 | 0 | 0 | 0.125 | 0 | 0 | 0.006105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.15625 | 0.09375 | 0.40625 | 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 |
8f6eca7563e2ddd3d0e7e1f65939a98d7d6facd2 | 598 | py | Python | tests/basic_test.py | LE-LOY/socialsims | b1eb0413d3ce52886e41679024974f5d7c1dc32f | [
"MIT"
] | null | null | null | tests/basic_test.py | LE-LOY/socialsims | b1eb0413d3ce52886e41679024974f5d7c1dc32f | [
"MIT"
] | null | null | null | tests/basic_test.py | LE-LOY/socialsims | b1eb0413d3ce52886e41679024974f5d7c1dc32f | [
"MIT"
] | null | null | null | # from ..sims.deprecated.cat_mouse import data_visualizer as cat_mouse_vis
# from ..sims.deprecated.route_choice import data_visualizer as route_choice_vis
# from ..sims.deprecated.simple_migration import data_visualizer as simple_mig_vis
"""
@pytest.mark.skip(reason="deprecated")
def test_cat_mouse_visualizer():
... | 31.473684 | 82 | 0.804348 | 84 | 598 | 5.404762 | 0.27381 | 0.070485 | 0.118943 | 0.145374 | 0.332599 | 0.332599 | 0.332599 | 0.251101 | 0.251101 | 0.251101 | 0 | 0 | 0.085284 | 598 | 19 | 83 | 31.473684 | 0.829982 | 0.976589 | 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 |
56bd7fdd6caf6376c1fc4fab1089d4ae75cad328 | 272 | py | Python | tests/test_mparser.py | Dih5/zadeh | 3cc0d2a4803a77d8d4d0a90c0012eea0397ee9ca | [
"MIT"
] | 2 | 2020-11-24T14:37:05.000Z | 2021-06-16T20:02:41.000Z | tests/test_mparser.py | Dih5/zadeh | 3cc0d2a4803a77d8d4d0a90c0012eea0397ee9ca | [
"MIT"
] | null | null | null | tests/test_mparser.py | Dih5/zadeh | 3cc0d2a4803a77d8d4d0a90c0012eea0397ee9ca | [
"MIT"
] | null | null | null | import zadeh
import os
def test_parse():
"""Load an external .fis file"""
fis = zadeh.FIS.from_matlab(os.path.join(os.path.dirname(os.path.abspath(__file__)), "data", "tipper.fis"))
assert isinstance(fis.get_crisp_output({"food": 5, "service": 5}), float)
| 24.727273 | 111 | 0.680147 | 41 | 272 | 4.317073 | 0.682927 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.139706 | 272 | 10 | 112 | 27.2 | 0.747863 | 0.095588 | 0 | 0 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 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 |
56c407bfcd2ed5ebef40aab5ddeb784178957418 | 804 | py | Python | instructions/docker_build.py | gnubyte/publicServerAutomator | b26828519b72702119013061cdf881a4a353e9ed | [
"MIT"
] | null | null | null | instructions/docker_build.py | gnubyte/publicServerAutomator | b26828519b72702119013061cdf881a4a353e9ed | [
"MIT"
] | 1 | 2019-10-25T20:13:29.000Z | 2019-10-25T20:13:29.000Z | instructions/docker_build.py | gnubyte/publicServerAutomator | b26828519b72702119013061cdf881a4a353e9ed | [
"MIT"
] | null | null | null | # @Author: Patrick Hastings
# @Date 4-13-2018
# ----------------
import server
dockerInstructions = [
"apt-get update -y",
"apt-get install apt-transport-https -y",
"apt-get install software-properties-common -y",
"apt-get install curl -y",
"apt-get install gnupg2 -y",
"apt-get install git -... | 28.714286 | 115 | 0.672886 | 106 | 804 | 5.075472 | 0.518868 | 0.111524 | 0.104089 | 0.208178 | 0.096654 | 0.096654 | 0.096654 | 0 | 0 | 0 | 0 | 0.022091 | 0.155473 | 804 | 28 | 116 | 28.714286 | 0.77025 | 0.072139 | 0 | 0.105263 | 0 | 0 | 0.489731 | 0.041074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.052632 | 0 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
56c5a8cf4cfd02c84dde21b4def9e05ee3a6e235 | 2,300 | py | Python | .github/workflows/scripts/check_java_version.py | cezary986/hello-github-actions | 3f178fbc32c8b60d598e2fb0361f31c356ea7b66 | [
"MIT"
] | null | null | null | .github/workflows/scripts/check_java_version.py | cezary986/hello-github-actions | 3f178fbc32c8b60d598e2fb0361f31c356ea7b66 | [
"MIT"
] | 3 | 2020-05-12T10:39:35.000Z | 2020-05-12T11:24:05.000Z | .github/workflows/scripts/check_java_version.py | cezary986/hello-github-actions | 3f178fbc32c8b60d598e2fb0361f31c356ea7b66 | [
"MIT"
] | null | null | null | import sys
import os
import re
import json
import base64
REFERENCE_BRANCH_NAME = 'master'
GRADLE_FILE_PATH = './build.gradle'
GET_GRADLE_COMMAND = f'git show {REFERENCE_BRANCH_NAME} HEAD:{GRADLE_FILE_PATH}'
class Version:
def __init__(self, version_string: str):
parts = version_string.split('.')
if le... | 28.04878 | 105 | 0.70087 | 331 | 2,300 | 4.459215 | 0.250755 | 0.070461 | 0.060976 | 0.077236 | 0.243902 | 0.174797 | 0.174797 | 0.174797 | 0.174797 | 0.174797 | 0 | 0.009937 | 0.168696 | 2,300 | 82 | 106 | 28.04878 | 0.762029 | 0 | 0 | 0 | 0 | 0 | 0.116471 | 0.059539 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.080645 | 0.145161 | 0.483871 | 0.032258 | 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 |
56c67af805accf44e8f758d5853f747ef0bec3dd | 87 | py | Python | Chapter 07/Chap07_Example7.96.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.96.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.96.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | myfruits = {"Apple", "Banana", "Grapes", "Litchi", "Mango"}
myfruits.remove('Guava')
| 29 | 60 | 0.632184 | 9 | 87 | 6.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 87 | 2 | 61 | 43.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.388235 | 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 |
56cf63f6be5f6939930d8a50e929022411806fe2 | 5,051 | py | Python | userbot/plugins/Gban.py | techyminati/DeOXy | 014efbf6ba4ba31525f996e935279e8918c8ba96 | [
"Apache-2.0"
] | 1 | 2020-08-27T12:54:28.000Z | 2020-08-27T12:54:28.000Z | userbot/plugins/Gban.py | techyminati/DeOXy | 014efbf6ba4ba31525f996e935279e8918c8ba96 | [
"Apache-2.0"
] | null | null | null | userbot/plugins/Gban.py | techyminati/DeOXy | 014efbf6ba4ba31525f996e935279e8918c8ba96 | [
"Apache-2.0"
] | 6 | 2020-08-17T16:11:18.000Z | 2020-11-03T16:06:46.000Z | #Imported to DeOXy
from userbot import bot, BOTLOG_CHATID, ALIVE_NAME, CMD_LIST
import asyncio
from telethon import events
from telethon.tl.functions.channels import EditBannedRequest
from telethon.tl.types import (PeerChat, PeerChannel,ChannelParticipantsAdmins, ChatAdminRights,ChatBannedRights, MessageEntityMentionN... | 42.445378 | 276 | 0.586814 | 644 | 5,051 | 4.5 | 0.200311 | 0.052795 | 0.062802 | 0.067633 | 0.713596 | 0.696342 | 0.666667 | 0.666667 | 0.65735 | 0.65528 | 0 | 0.007659 | 0.276183 | 5,051 | 118 | 277 | 42.805085 | 0.785011 | 0.013661 | 0 | 0.66055 | 0 | 0.018349 | 0.199839 | 0.052018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.073395 | 0.100917 | 0 | 0.174312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
56eb43911a555b4c47f0e76fd588f8f5e30f1599 | 3,648 | py | Python | src/micropython/microbit/__model/compass.py | julianrendell/vscode-python-devicesimulator | 8014a940c9a0551793bfb5694bff9a52df6c0155 | [
"MIT"
] | 151 | 2019-11-05T10:10:29.000Z | 2022-02-18T11:46:27.000Z | src/micropython/microbit/__model/compass.py | julianrendell/vscode-python-devicesimulator | 8014a940c9a0551793bfb5694bff9a52df6c0155 | [
"MIT"
] | 98 | 2019-11-09T17:41:30.000Z | 2021-12-17T23:05:01.000Z | src/micropython/microbit/__model/compass.py | julianrendell/vscode-python-devicesimulator | 8014a940c9a0551793bfb5694bff9a52df6c0155 | [
"MIT"
] | 42 | 2019-11-10T02:26:27.000Z | 2022-03-22T01:43:01.000Z | from common import utils
from common.telemetry import telemetry_py
from common.telemetry_events import TelemetryEvent
class Compass:
# The implementation is based off of https://microbit-micropython.readthedocs.io/en/v1.0.1/compass.html.
def calibrate(self):
"""
This function is not implemente... | 40.988764 | 259 | 0.705044 | 461 | 3,648 | 5.353579 | 0.258134 | 0.040113 | 0.051053 | 0.058347 | 0.655186 | 0.655186 | 0.587115 | 0.568882 | 0.568882 | 0.507293 | 0 | 0.002874 | 0.236842 | 3,648 | 88 | 260 | 41.454545 | 0.883621 | 0.459704 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.607143 | 0.107143 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
56ef5b761db8737bcaf9e921790f38bfdd5880da | 258 | py | Python | posts/tests.py | Code-Institute-Submissions/Dermomurphy-MS4-DJ-ecomSite_MayResub | b1925d1b75e777be31b658698025f6aa963d97b0 | [
"MIT"
] | null | null | null | posts/tests.py | Code-Institute-Submissions/Dermomurphy-MS4-DJ-ecomSite_MayResub | b1925d1b75e777be31b658698025f6aa963d97b0 | [
"MIT"
] | null | null | null | posts/tests.py | Code-Institute-Submissions/Dermomurphy-MS4-DJ-ecomSite_MayResub | b1925d1b75e777be31b658698025f6aa963d97b0 | [
"MIT"
] | 1 | 2021-02-28T12:00:41.000Z | 2021-02-28T12:00:41.000Z | from django.test import TestCase
from posts.models import Posts
from datetime import datetime
# Create your tests here.
class PostTestCase(TestCase):
def setUp(self):
Posts.objects.create(title='Test1', body='Test text',created_on=datetime.now)
| 28.666667 | 85 | 0.763566 | 36 | 258 | 5.444444 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.143411 | 258 | 8 | 86 | 32.25 | 0.882353 | 0.089147 | 0 | 0 | 0 | 0 | 0.060086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
56f4e87901fdbfcd99ffadd07ef472398a26666d | 28,995 | py | Python | pysnmp-with-texts/CISCO-UNIFIED-COMPUTING-SYSFILE-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/CISCO-UNIFIED-COMPUTING-SYSFILE-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/CISCO-UNIFIED-COMPUTING-SYSFILE-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 CISCO-UNIFIED-COMPUTING-SYSFILE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-UNIFIED-COMPUTING-SYSFILE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:17:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Usi... | 134.860465 | 3,906 | 0.820038 | 2,806 | 28,995 | 8.472915 | 0.100855 | 0.065615 | 0.114827 | 0.010768 | 0.463176 | 0.240463 | 0.201725 | 0.191209 | 0.110032 | 0.092114 | 0 | 0.044854 | 0.07115 | 28,995 | 214 | 3,907 | 135.490654 | 0.837925 | 0.012554 | 0 | 0 | 0 | 0.004831 | 0.213088 | 0.068688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057971 | 0 | 0.057971 | 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 |
56f7a55e1ecb0ebcbf31f7444aa06591df34f007 | 2,125 | py | Python | app_control/migrations/0002_initial_app_control.py | bkstudy/bk_kb_1 | e053eec6be989456afa17cb635831f7fbc18c624 | [
"Apache-2.0"
] | 4 | 2021-05-19T02:28:01.000Z | 2021-12-14T04:02:22.000Z | app_control/migrations/0002_initial_app_control.py | bkstudy/bk_kb_1 | e053eec6be989456afa17cb635831f7fbc18c624 | [
"Apache-2.0"
] | 6 | 2019-12-18T10:09:29.000Z | 2021-06-10T22:24:50.000Z | app_control/migrations/0002_initial_app_control.py | bkstudy/bk_kb_1 | e053eec6be989456afa17cb635831f7fbc18c624 | [
"Apache-2.0"
] | 1 | 2018-10-11T07:49:19.000Z | 2018-10-11T07:49:19.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obt... | 46.195652 | 121 | 0.680471 | 263 | 2,125 | 5.330798 | 0.51711 | 0.071327 | 0.074893 | 0.164765 | 0.234665 | 0.234665 | 0.234665 | 0 | 0 | 0 | 0 | 0.006403 | 0.191529 | 2,125 | 45 | 122 | 47.222222 | 0.809662 | 0.014588 | 0 | 0 | 0 | 0 | 0.376231 | 0.147679 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037037 | 0.111111 | null | null | 0.037037 | 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 |
56fb092688f5317d00254a637a7273416245b4d9 | 1,816 | py | Python | tests/test_location.py | enthought/supplement | 76090598cb55c80f9f4d4caad87344a8ac9d8e11 | [
"MIT"
] | 1 | 2017-02-15T18:30:44.000Z | 2017-02-15T18:30:44.000Z | tests/test_location.py | enthought/supplement | 76090598cb55c80f9f4d4caad87344a8ac9d8e11 | [
"MIT"
] | 3 | 2015-04-09T14:31:45.000Z | 2016-08-26T13:01:47.000Z | tests/test_location.py | enthought/supplement | 76090598cb55c80f9f4d4caad87344a8ac9d8e11 | [
"MIT"
] | null | null | null | from .helpers import pytest_funcarg__project
def test_function_node_location(project):
m = project.create_module('test', '''
def test():
pass
''')
line, filename = m['test'].get_location()
assert line == 1
assert filename == 'test.py'
def test_assign_node_location(project):
... | 22.146341 | 53 | 0.570485 | 207 | 1,816 | 4.845411 | 0.178744 | 0.055833 | 0.151545 | 0.14656 | 0.745763 | 0.720837 | 0.617149 | 0.581256 | 0.411765 | 0.257228 | 0 | 0.010753 | 0.28304 | 1,816 | 82 | 54 | 22.146341 | 0.759601 | 0 | 0 | 0.655738 | 0 | 0 | 0.313154 | 0 | 0 | 0 | 0 | 0 | 0.229508 | 1 | 0.098361 | false | 0.081967 | 0.131148 | 0 | 0.229508 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7104c6048405b9052f215a66f26b258c85c0d654 | 914 | py | Python | src/CompartmentalSystems/bins/TsTpMassFieldsPerTimeStep.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | src/CompartmentalSystems/bins/TsTpMassFieldsPerTimeStep.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | src/CompartmentalSystems/bins/TsTpMassFieldsPerTimeStep.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | # vim: set ff=unix expandtab ts=4 sw=4:
import numpy as np
from .TsMassFieldsPerTimeStep import TsMassFieldsPerTimeStep
from .FieldsPerTimeStep import FieldsPerTimeStep
class TsTpMassFieldsPerTimeStep(FieldsPerTimeStep):
@property
def total_contents(self):
return [field.total_content for field in self... | 35.153846 | 80 | 0.741794 | 115 | 914 | 5.66087 | 0.4 | 0.069124 | 0.168971 | 0.043011 | 0.242704 | 0.15361 | 0.15361 | 0.15361 | 0.15361 | 0.15361 | 0 | 0.002663 | 0.178337 | 914 | 25 | 81 | 36.56 | 0.864181 | 0.040481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.166667 | 0.055556 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
71188757a4a3122d3041dcb62629fe9ef707fc95 | 75 | py | Python | abc/166/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/166/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/166/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | contests = ['ABC', 'ARC']
S = input()
contests.remove(S)
print(contests[0]) | 18.75 | 25 | 0.653333 | 11 | 75 | 4.454545 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.106667 | 75 | 4 | 26 | 18.75 | 0.716418 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
711e169130e686398528c2631ac52499a472cbef | 3,068 | py | Python | simple_dispatch/dispatch.py | ossdev07/SimpleDispatch | 051556b4f8a12bd85575eaed102ba6bfb672def1 | [
"MIT"
] | null | null | null | simple_dispatch/dispatch.py | ossdev07/SimpleDispatch | 051556b4f8a12bd85575eaed102ba6bfb672def1 | [
"MIT"
] | null | null | null | simple_dispatch/dispatch.py | ossdev07/SimpleDispatch | 051556b4f8a12bd85575eaed102ba6bfb672def1 | [
"MIT"
] | null | null | null | from typing import Callable
_handlers = None
def connect(event_name: str, func: Callable):
"""
Connects a given function to be subscribed to the given event.
:param event_name: The name of the event to subscribe to.
:param func: The function that will be invoked when the event is published.
"""
... | 29.786408 | 118 | 0.674055 | 414 | 3,068 | 4.881643 | 0.251208 | 0.066799 | 0.027709 | 0.033647 | 0.290945 | 0.269174 | 0.235527 | 0.235527 | 0.220188 | 0.203859 | 0 | 0 | 0.253911 | 3,068 | 102 | 119 | 30.078431 | 0.882918 | 0.544329 | 0 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0 | 0.027027 | 0 | 0.540541 | 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 |
7121f1f037c6646fc97580bcb231acfa36639d90 | 36,430 | py | Python | utils/synthetic_cell_nuclei_masks.py | stegmaierj/CellSynthesis | de2c90ed668b7f57b960896473df3d56636eca82 | [
"Apache-2.0"
] | 1 | 2021-07-21T21:40:32.000Z | 2021-07-21T21:40:32.000Z | utils/synthetic_cell_nuclei_masks.py | stegmaierj/CellSynthesis | de2c90ed668b7f57b960896473df3d56636eca82 | [
"Apache-2.0"
] | null | null | null | utils/synthetic_cell_nuclei_masks.py | stegmaierj/CellSynthesis | de2c90ed668b7f57b960896473df3d56636eca82 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
# 3D Image Data Synthesis.
# Copyright (C) 2021 D. Eschweiler, M. Rethwisch, M. Jarchow, S. Koppers, J. Stegmaier
#
# 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 Liceense at
... | 47.250324 | 303 | 0.592204 | 4,818 | 36,430 | 4.272105 | 0.091739 | 0.032648 | 0.059758 | 0.022543 | 0.730749 | 0.710003 | 0.693582 | 0.678327 | 0.662537 | 0.655201 | 0 | 0.032854 | 0.284793 | 36,430 | 771 | 304 | 47.250324 | 0.757129 | 0.100439 | 0 | 0.54195 | 0 | 0 | 0.036988 | 0.005996 | 0 | 0 | 0 | 0 | 0.006803 | 1 | 0.052154 | false | 0.004535 | 0.024943 | 0 | 0.097506 | 0.049887 | 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 |
712dccf11a8623f93cc1a6d9e212a9aebc4a39f9 | 425 | py | Python | test/test_backbone_utils.py | Gaurav7888/vision | a227a2026ef57fce08c1a73bad61bbabc3a52bfd | [
"BSD-3-Clause"
] | 2 | 2021-07-23T15:45:49.000Z | 2021-07-27T17:34:15.000Z | test/test_backbone_utils.py | Gaurav7888/vision | a227a2026ef57fce08c1a73bad61bbabc3a52bfd | [
"BSD-3-Clause"
] | 46 | 2020-10-20T09:52:53.000Z | 2021-08-15T09:29:27.000Z | test/test_backbone_utils.py | Gaurav7888/vision | a227a2026ef57fce08c1a73bad61bbabc3a52bfd | [
"BSD-3-Clause"
] | 2 | 2021-06-29T14:30:51.000Z | 2021-06-29T14:32:21.000Z | import torch
from torchvision.models.detection.backbone_utils import resnet_fpn_backbone
import pytest
@pytest.mark.parametrize('backbone_name', ('resnet18', 'resnet50'))
def test_resnet_fpn_backbone(backbone_name):
x = torch.rand(1, 3, 300, 300, dtype=torch.float32, device='cpu')
y = resnet_fpn_backbone(bac... | 35.416667 | 77 | 0.731765 | 60 | 425 | 4.983333 | 0.6 | 0.160535 | 0.170569 | 0.167224 | 0.19398 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047745 | 0.112941 | 425 | 11 | 78 | 38.636364 | 0.745358 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 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 |
713b53cdaf7061c2baa7e69b3bfc2dd5bcba7b31 | 170 | py | Python | AMAO/settings/celery_settings.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | 2 | 2017-04-26T14:08:02.000Z | 2017-09-01T13:10:17.000Z | AMAO/settings/celery_settings.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | null | null | null | AMAO/settings/celery_settings.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | null | null | null | #coding: utf-8
import djcelery
djcelery.setup_loader()
BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "admin"
BROKER_PASSWORD = "mypass"
BROKER_VHOST = "/"
| 15.454545 | 26 | 0.752941 | 22 | 170 | 5.545455 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.129412 | 170 | 10 | 27 | 17 | 0.790541 | 0.076471 | 0 | 0 | 0 | 0 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
713cd9544e5aedaf7a2f331751f6c1faba151b1d | 433 | py | Python | kanbanflow_prj_selector/cli.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | kanbanflow_prj_selector/cli.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | kanbanflow_prj_selector/cli.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | """Console script for kanbanflow_prj_selector."""
import sys
import click
from .kanbanflow_prj_selector import start
@click.command()
@click.option('-f', '--board-token-path', help='Input file with board tokens to fetch', required=True)
def main(board_token_path):
"""Console script for kanbanflow_prj_selector.""... | 24.055556 | 102 | 0.725173 | 60 | 433 | 4.933333 | 0.6 | 0.131757 | 0.212838 | 0.175676 | 0.25 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0.002703 | 0.145497 | 433 | 17 | 103 | 25.470588 | 0.797297 | 0.242494 | 0 | 0 | 0 | 0 | 0.205047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71414595796daa9ea1d1cb02aaa1e96629a157dd | 194 | py | Python | v1/schemas/auth.py | takotab/cloudrun-fastapi | 515145dc68f49b222cf582940368fdba4b6dcfd3 | [
"MIT"
] | 74 | 2020-02-06T18:20:36.000Z | 2021-11-28T11:46:02.000Z | v1/schemas/auth.py | takotab/cloudrun-fastapi | 515145dc68f49b222cf582940368fdba4b6dcfd3 | [
"MIT"
] | 13 | 2020-03-03T01:00:27.000Z | 2021-10-21T17:11:15.000Z | v1/schemas/auth.py | takotab/cloudrun-fastapi | 515145dc68f49b222cf582940368fdba4b6dcfd3 | [
"MIT"
] | 17 | 2020-02-08T13:20:21.000Z | 2021-11-02T10:19:16.000Z | from pydantic import UUID4, BaseModel, EmailStr
class Token(BaseModel):
access_token: str
token_type: str
class TokenData(BaseModel):
email: EmailStr = None
id: UUID4 = None
| 16.166667 | 47 | 0.71134 | 24 | 194 | 5.666667 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.216495 | 194 | 11 | 48 | 17.636364 | 0.881579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8530f3a6fb147cef24829cc3993767b80c2ae23e | 209 | py | Python | test/img.py | milligan22963/Camera | 8d76d8366dc0dda755e1595f26b6b6caaf2f61a6 | [
"MIT"
] | null | null | null | test/img.py | milligan22963/Camera | 8d76d8366dc0dda755e1595f26b6b6caaf2f61a6 | [
"MIT"
] | null | null | null | test/img.py | milligan22963/Camera | 8d76d8366dc0dda755e1595f26b6b6caaf2f61a6 | [
"MIT"
] | null | null | null | from PIL import Image
def main():
try:
image = Image.open("/home/daniel/Pictures/buddy.jpg");
except IOError:
print("Error")
pass
if __name__ == "__main__":
print("Starting main")
main()
| 16.076923 | 58 | 0.641148 | 27 | 209 | 4.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205742 | 209 | 12 | 59 | 17.416667 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0.148325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
85380f6a877ccb17d787241d534302810a979279 | 833 | py | Python | test_app/api/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | 6 | 2021-05-20T14:46:23.000Z | 2022-01-24T07:07:55.000Z | test_app/api/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | null | null | null | test_app/api/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | null | null | null |
from rest_framework import viewsets
from rest_framework.viewsets import ModelViewSet
from rest_framework.permissions import DjangoModelPermissions
from ..models import Blog
from .serializers import BlogSerializer
class BlogViewset(ModelViewSet):
permission_classes = [ DjangoModelPermissions ]
serialize... | 19.372093 | 61 | 0.798319 | 84 | 833 | 7.77381 | 0.321429 | 0.073507 | 0.156202 | 0.070444 | 0.722818 | 0.649311 | 0.447167 | 0.447167 | 0.447167 | 0.447167 | 0 | 0 | 0.156062 | 833 | 42 | 62 | 19.833333 | 0.928876 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0.1 | 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 |
854005657bfe33d29052924f10923a274658e20b | 770 | py | Python | SimCalorimetry/HcalZeroSuppressionProducers/python/NoHcalZeroSuppression_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | SimCalorimetry/HcalZeroSuppressionProducers/python/NoHcalZeroSuppression_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | SimCalorimetry/HcalZeroSuppressionProducers/python/NoHcalZeroSuppression_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | # Fragment to switch off HCAL zero suppression as an option
# by cmsDriver customisation
# to generate Unsuppressed digis, one has to set the following parameter:
# process.simHcalDigis.useConfigZSvalues = 1
# to generate suppressed digis, useConfigZSvalues should be set to 0
import FWCore.ParameterSet.Config as cms
... | 36.666667 | 99 | 0.787013 | 83 | 770 | 7.289157 | 0.614458 | 0.219835 | 0.145455 | 0.122314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022624 | 0.138961 | 770 | 20 | 100 | 38.5 | 0.889894 | 0.58961 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
85555d370982e1458f4b4957aa368e80824c0d07 | 8,353 | py | Python | automation/models.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 1 | 2020-09-19T21:56:40.000Z | 2020-09-19T21:56:40.000Z | automation/models.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | null | null | null | automation/models.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 5 | 2020-09-18T18:53:03.000Z | 2020-10-21T14:42:00.000Z | from app.persian import PersianCalendar
from django.db import models
from .enums import UnitNameEnum,ProductRequestStatusEnum,LetterStatusEnum,AgentRoleEnum
from app.enums import ColorEnum,IconsEnum,EmployeeEnum,DegreeLevelEnum
from django.shortcuts import reverse
from app.settings import ADMIN_URL
from django.utils.tr... | 43.963158 | 151 | 0.709565 | 954 | 8,353 | 5.985325 | 0.179245 | 0.05972 | 0.029422 | 0.088266 | 0.494046 | 0.480736 | 0.424168 | 0.343958 | 0.326445 | 0.296497 | 0 | 0.004297 | 0.164252 | 8,353 | 190 | 152 | 43.963158 | 0.813637 | 0 | 0 | 0.477124 | 0 | 0.006536 | 0.175844 | 0.046325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150327 | false | 0 | 0.058824 | 0.124183 | 0.686275 | 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 |
855639cc0a04b3c6e819ec29c78c848da7561279 | 808 | py | Python | ok2_backend/KNSQueries/migrations/0002_auto_20210123_1519.py | moshe742/ok2-backend | 03243a296c3ef753dee2173b589a2d01bd36d2e0 | [
"MIT"
] | null | null | null | ok2_backend/KNSQueries/migrations/0002_auto_20210123_1519.py | moshe742/ok2-backend | 03243a296c3ef753dee2173b589a2d01bd36d2e0 | [
"MIT"
] | null | null | null | ok2_backend/KNSQueries/migrations/0002_auto_20210123_1519.py | moshe742/ok2-backend | 03243a296c3ef753dee2173b589a2d01bd36d2e0 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2021-01-23 15:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('KNSQueries', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='person',
name='is_current',
... | 24.484848 | 51 | 0.553218 | 74 | 808 | 5.918919 | 0.513514 | 0.082192 | 0.171233 | 0.19863 | 0.372146 | 0.372146 | 0.292237 | 0.292237 | 0.292237 | 0.292237 | 0 | 0.03525 | 0.332921 | 808 | 32 | 52 | 25.25 | 0.777365 | 0.055693 | 0 | 0.461538 | 1 | 0 | 0.115637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.153846 | 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 |
855e12d4846d6066ca80faa302d770e52bf51d3f | 1,550 | py | Python | apps/common/behaviors/uploadable.py | yudame/prakti-api | 9d00c1dd155f80839248e611e0d63b1c70041758 | [
"Unlicense"
] | null | null | null | apps/common/behaviors/uploadable.py | yudame/prakti-api | 9d00c1dd155f80839248e611e0d63b1c70041758 | [
"Unlicense"
] | null | null | null | apps/common/behaviors/uploadable.py | yudame/prakti-api | 9d00c1dd155f80839248e611e0d63b1c70041758 | [
"Unlicense"
] | null | null | null | import json
import uuid
from jsonfield import JSONField
from django.db import models
class Uploadable(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
url = models.URLField(default="")
meta_data = JSONField(blank=True, null=True)
class Meta:
abstrac... | 30.392157 | 79 | 0.601935 | 205 | 1,550 | 4.409756 | 0.263415 | 0.221239 | 0.318584 | 0.09292 | 0.457965 | 0.372788 | 0.372788 | 0.308628 | 0.308628 | 0.308628 | 0 | 0.000894 | 0.278065 | 1,550 | 50 | 80 | 31 | 0.806971 | 0.010323 | 0 | 0.25 | 0 | 0 | 0.022846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.45 | 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 |
856869ea9b6dabe9d40a2462ee1d13b5b5eaa0b9 | 708 | py | Python | lib/cli_commands/validate_classifier.py | antonsuba/ids-test-environment-sdn | 0292931cc7d9897eea7aae8c3c23a690fde7d862 | [
"MIT"
] | 1 | 2020-03-11T18:47:24.000Z | 2020-03-11T18:47:24.000Z | lib/cli_commands/validate_classifier.py | antonsuba/ids-test-environment-sdn | 0292931cc7d9897eea7aae8c3c23a690fde7d862 | [
"MIT"
] | null | null | null | lib/cli_commands/validate_classifier.py | antonsuba/ids-test-environment-sdn | 0292931cc7d9897eea7aae8c3c23a690fde7d862 | [
"MIT"
] | 2 | 2018-11-26T11:31:37.000Z | 2019-02-20T14:23:44.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import yaml
import inspect
from importlib import import_module
DIRNAME = os.path.dirname(os.path.abspath(inspect.stack()[0][1]))
CONFIG = os.path.join(DIRNAME, '../../config/config.yml')
with open(CONFIG, 'r') as config_file:
cfg = yaml.load(config_fi... | 24.413793 | 65 | 0.659605 | 90 | 708 | 5.111111 | 0.622222 | 0.03913 | 0.056522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.207627 | 708 | 28 | 66 | 25.285714 | 0.814617 | 0.053672 | 0 | 0 | 0 | 0 | 0.218563 | 0.034431 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.315789 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
857a1a342199e6e969244060bb3ca1b798f9735f | 1,305 | py | Python | implementations/tesla/bin/responsehandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | 3 | 2020-08-31T00:59:26.000Z | 2021-10-19T22:01:00.000Z | implementations/tesla/bin/responsehandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | null | null | null | implementations/tesla/bin/responsehandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | 1 | 2020-01-09T03:55:51.000Z | 2020-01-09T03:55:51.000Z | #add your custom response handler class to this module
import json
import datetime
#the default handler , does nothing , just passes the raw output directly to STDOUT
class DefaultResponseHandler:
def __init__(self, **args):
pass
def __call__(self, response_object, raw_response_output, res... | 31.829268 | 104 | 0.564751 | 138 | 1,305 | 5.072464 | 0.427536 | 0.08 | 0.128571 | 0.042857 | 0.34 | 0.34 | 0.251429 | 0.251429 | 0.251429 | 0.251429 | 0 | 0.001124 | 0.318008 | 1,305 | 40 | 105 | 32.625 | 0.785393 | 0.129502 | 0 | 0.347826 | 0 | 0 | 0.10424 | 0.035336 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.086957 | 0.086957 | null | null | 0.173913 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
858a0cf0d14ee703329ac16399a65e3ed5de626f | 5,007 | py | Python | make_json.py | DewMaple/head_box | 27ac90511344bfa75b340d1db960365e9eb148c7 | [
"Apache-2.0",
"MIT"
] | null | null | null | make_json.py | DewMaple/head_box | 27ac90511344bfa75b340d1db960365e9eb148c7 | [
"Apache-2.0",
"MIT"
] | null | null | null | make_json.py | DewMaple/head_box | 27ac90511344bfa75b340d1db960365e9eb148c7 | [
"Apache-2.0",
"MIT"
] | null | null | null | # A tool for hand labelling images
# Generates an IDL file
# pass in the directory where you store your images and a filename, then select the points on the images
# every time you hit next a line is generated
# the clear button removes are selected points on the current image
# when all files in the directory are proc... | 29.627219 | 114 | 0.641102 | 707 | 5,007 | 4.44413 | 0.302687 | 0.04774 | 0.038192 | 0.029281 | 0.295672 | 0.262572 | 0.206238 | 0.140038 | 0.140038 | 0.112031 | 0 | 0.029964 | 0.233473 | 5,007 | 168 | 115 | 29.803571 | 0.788692 | 0.215099 | 0 | 0.241071 | 1 | 0 | 0.04585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089286 | 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 |
85a5679ea55a61eae86d19df12cb920b82adecd1 | 2,021 | py | Python | note37/attr_test2.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | note37/attr_test2.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | note37/attr_test2.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | import abc
from typing import ValuesView
class AttributeProxy:
def __init__(self, name) -> None:
self.name = name
def __get__(self, instance, owner):
return instance.__dict__[self.name]
def __set__(self, instance, value):
instance.__dict__[self.name] = value
class ValidatableAt... | 27.684932 | 89 | 0.644236 | 252 | 2,021 | 5.007937 | 0.293651 | 0.025357 | 0.044374 | 0.063391 | 0.395404 | 0.303487 | 0.27813 | 0.174326 | 0.174326 | 0.174326 | 0 | 0.021767 | 0.227115 | 2,021 | 73 | 90 | 27.684932 | 0.786172 | 0.300346 | 0 | 0.204545 | 0 | 0 | 0.044223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.022727 | 0.045455 | 0.045455 | 0.522727 | 0.068182 | 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 |
85b0727bf78ced43482d2f2348ea8955c8ae7a71 | 274 | py | Python | set.py | mghelton/snmp_research | 5cca96e94506e3aa10df8d45c3db4649071eee22 | [
"MIT"
] | null | null | null | set.py | mghelton/snmp_research | 5cca96e94506e3aa10df8d45c3db4649071eee22 | [
"MIT"
] | null | null | null | set.py | mghelton/snmp_research | 5cca96e94506e3aa10df8d45c3db4649071eee22 | [
"MIT"
] | null | null | null | from pysnmp.hlapi import *
g = setCmd(SnmpEngine(),
CommunityData('public'),
UdpTransportTarget(('192.168.61.6', 161)),
ContextData(),
ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysName', 0),'test'))
gen = next(g)
print(gen[3])
| 30.444444 | 74 | 0.583942 | 29 | 274 | 5.517241 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072115 | 0.240876 | 274 | 8 | 75 | 34.25 | 0.697115 | 0 | 0 | 0 | 0 | 0 | 0.142336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 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 |
85b577080a0e6e1949e13130cd725e21728ff5fa | 1,464 | bzl | Python | specs2/specs2.bzl | ittaym/rules_scala | 4666a7e4efa6f7c9eaedf10863af23ce184111d3 | [
"Apache-2.0"
] | 2 | 2019-06-17T19:20:57.000Z | 2020-04-22T15:39:04.000Z | specs2/specs2.bzl | ittaym/rules_scala | 4666a7e4efa6f7c9eaedf10863af23ce184111d3 | [
"Apache-2.0"
] | 1 | 2017-06-28T15:43:25.000Z | 2017-08-13T15:56:34.000Z | specs2/specs2.bzl | ittaym/rules_scala | 4666a7e4efa6f7c9eaedf10863af23ce184111d3 | [
"Apache-2.0"
] | 3 | 2017-07-12T07:04:11.000Z | 2018-12-11T12:31:17.000Z | load("//scala:scala_cross_version.bzl",
"scala_mvn_artifact",
)
def specs2_version():
return "3.8.8"
def specs2_repositories():
native.maven_jar(
name = "io_bazel_rules_scala_org_specs2_specs2_core",
artifact = scala_mvn_artifact("org.specs2:specs2-core:" + specs2_version()),
sha1 = "495bed0... | 34.046512 | 118 | 0.741803 | 170 | 1,464 | 5.982353 | 0.229412 | 0.106195 | 0.094395 | 0.133727 | 0.526057 | 0.522124 | 0.514258 | 0.245821 | 0.245821 | 0.245821 | 0 | 0.130573 | 0.142077 | 1,464 | 42 | 119 | 34.857143 | 0.67914 | 0 | 0 | 0.147059 | 0 | 0 | 0.50888 | 0.493169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | true | 0 | 0 | 0.058824 | 0.147059 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
85bdfe99465860c0e5ef243c43925cbed19e1e66 | 250 | py | Python | Proyecto_Global_Hitss_RF_v1/Funciones/Obtener_hora_actual.py | marlonsale08/Marlon | 07570fb4aefd2427564e77c45a15e36e3fca3b19 | [
"MIT"
] | null | null | null | Proyecto_Global_Hitss_RF_v1/Funciones/Obtener_hora_actual.py | marlonsale08/Marlon | 07570fb4aefd2427564e77c45a15e36e3fca3b19 | [
"MIT"
] | null | null | null | Proyecto_Global_Hitss_RF_v1/Funciones/Obtener_hora_actual.py | marlonsale08/Marlon | 07570fb4aefd2427564e77c45a15e36e3fca3b19 | [
"MIT"
] | null | null | null | from datetime import datetime
def greetingTime():
current_hour = datetime.now().hour
if current_hour < 12:
return "Buenos días"
elif 12 <= current_hour < 18:
return "Buenas tardes"
else:
return "Buenas noches" | 25 | 38 | 0.64 | 30 | 250 | 5.233333 | 0.633333 | 0.210191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0.276 | 250 | 10 | 39 | 25 | 0.834254 | 0 | 0 | 0 | 0 | 0 | 0.14741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a418f30be67e74f37f6d483c86e7442d6adafeb7 | 225 | py | Python | examples/dir.py | dmytrostriletskyi/design-kit | 6b7cf8657ffe18cd6a43c6cfb73b071084f0331e | [
"MIT"
] | 107 | 2019-03-02T22:31:04.000Z | 2022-01-24T09:57:15.000Z | examples/dir.py | dmytrostriletskyi/accessify | 6b7cf8657ffe18cd6a43c6cfb73b071084f0331e | [
"MIT"
] | 161 | 2019-03-02T17:46:20.000Z | 2020-11-13T15:45:53.000Z | examples/dir.py | dmytrostriletskyi/design-kit | 6b7cf8657ffe18cd6a43c6cfb73b071084f0331e | [
"MIT"
] | 8 | 2019-03-04T13:01:40.000Z | 2022-03-31T06:40:46.000Z | from accessify import accessify, private
@accessify
class Car:
@private
def start_engine(self):
return 'Engine sound.'
if __name__ == '__main__':
car = Car()
assert 'start_engine' not in dir(car)
| 15 | 41 | 0.657778 | 28 | 225 | 4.928571 | 0.678571 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244444 | 225 | 14 | 42 | 16.071429 | 0.811765 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.444444 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
a41a3584d47653dd2b897f2654eeed6f9c1edc8d | 6,285 | py | Python | webDe/settings.py | dannybombastic/Cockfight | ea02132053a590ff407b53dee98ab0d22bfae0dd | [
"Apache-2.0"
] | null | null | null | webDe/settings.py | dannybombastic/Cockfight | ea02132053a590ff407b53dee98ab0d22bfae0dd | [
"Apache-2.0"
] | null | null | null | webDe/settings.py | dannybombastic/Cockfight | ea02132053a590ff407b53dee98ab0d22bfae0dd | [
"Apache-2.0"
] | null | null | null | """
Django settings for webDe project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
from... | 29.78673 | 91 | 0.724582 | 727 | 6,285 | 6.061898 | 0.339752 | 0.072612 | 0.081688 | 0.03971 | 0.217608 | 0.170865 | 0.093261 | 0.093261 | 0.059905 | 0.032675 | 0 | 0.008945 | 0.146221 | 6,285 | 210 | 92 | 29.928571 | 0.812337 | 0.513763 | 0 | 0.044944 | 1 | 0.011236 | 0.47379 | 0.386425 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05618 | 0.033708 | 0 | 0.033708 | 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 |
a41ee16c11a22caabeb9c2d8e601622abe31911d | 285 | py | Python | data/groups.py | bloodes/adressbook | 52582bc8c4825987db668ab084dff32202f1e2e5 | [
"Apache-2.0"
] | null | null | null | data/groups.py | bloodes/adressbook | 52582bc8c4825987db668ab084dff32202f1e2e5 | [
"Apache-2.0"
] | null | null | null | data/groups.py | bloodes/adressbook | 52582bc8c4825987db668ab084dff32202f1e2e5 | [
"Apache-2.0"
] | null | null | null | from models.model_group import Group
testdata = [Group(group_name='', group_header='', group_footer=''),
Group(group_name='name1', group_header='name1', group_footer='name1'),
Group(group_name='name2', group_header='name2', group_footer='name2')
] | 40.714286 | 82 | 0.65614 | 34 | 285 | 5.205882 | 0.323529 | 0.169492 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.185965 | 285 | 7 | 83 | 40.714286 | 0.737069 | 0 | 0 | 0 | 0 | 0 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a4231d9ebb1a9fdc4a81aec0b543a74474670f0f | 2,100 | py | Python | design_pattern/memento/implementation.py | AustinHellerRepo/DesignPatternDemo | 2409315eb7494ff738e64e1ca51206fb46083040 | [
"MIT"
] | null | null | null | design_pattern/memento/implementation.py | AustinHellerRepo/DesignPatternDemo | 2409315eb7494ff738e64e1ca51206fb46083040 | [
"MIT"
] | null | null | null | design_pattern/memento/implementation.py | AustinHellerRepo/DesignPatternDemo | 2409315eb7494ff738e64e1ca51206fb46083040 | [
"MIT"
] | null | null | null | from __future__ import annotations
from design_pattern.memento.framework import Originator, Memento, Caretaker
from typing import List
from abc import ABC, abstractmethod
class Implementor(ABC):
def __init__(self):
self.__grocery_list = GroceryList(
title="Untitled"
)
self.__grocery_list_history = Caretak... | 21 | 77 | 0.717143 | 279 | 2,100 | 4.978495 | 0.200717 | 0.102952 | 0.107991 | 0.047516 | 0.351332 | 0.293737 | 0.222462 | 0.12959 | 0.12959 | 0 | 0 | 0 | 0.164762 | 2,100 | 99 | 78 | 21.212121 | 0.791904 | 0.028095 | 0 | 0.246377 | 0 | 0 | 0.003943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275362 | false | 0 | 0.057971 | 0.101449 | 0.507246 | 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 |
a43b6bd99ed126f9facb51ef643c518482f41775 | 2,200 | py | Python | cookbook/c08/p18_mixin_classes.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 3 | 2018-09-19T06:44:13.000Z | 2019-03-24T10:07:07.000Z | cookbook/c08/p18_mixin_classes.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 2 | 2020-09-19T17:10:23.000Z | 2020-10-17T16:43:52.000Z | cookbook/c08/p18_mixin_classes.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 1 | 2020-12-22T06:33:18.000Z | 2020-12-22T06:33:18.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Topic: 混入类
Desc : 如果单独使用Minxin类没有任何意义,但是当利用多继承和其他类配合后就有神奇效果了。
Mixin也是多继承的主要用途。
"""
class LoggedMappingMixin:
"""
Add logging to get/set/delete operations for debugging.
"""
__slots__ = () # 混入类都没有实例变量,因为直接实例化混入类没有任何意义
def __getitem__(self, ... | 21.568627 | 59 | 0.630909 | 246 | 2,200 | 5.211382 | 0.333333 | 0.060062 | 0.054602 | 0.074103 | 0.335413 | 0.326053 | 0.277691 | 0.232449 | 0.232449 | 0.168487 | 0 | 0.004182 | 0.239091 | 2,200 | 101 | 60 | 21.782178 | 0.761649 | 0.148636 | 0 | 0.418182 | 0 | 0 | 0.057979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163636 | false | 0.054545 | 0.018182 | 0 | 0.509091 | 0.127273 | 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 |
a4413159fd227ec62328bd4292601f85b5ced963 | 2,486 | py | Python | examples.py | JayakrishnanAjayakumar/pcml | 1ac37e95ef68c1661fd4a0b1e6f500a14f103ecb | [
"BSD-3-Clause"
] | 1 | 2018-03-07T20:35:15.000Z | 2018-03-07T20:35:15.000Z | examples.py | Jindam/HPCGISLab | 54ec030cd87b3f6f46ea68cdf007b21344517515 | [
"BSD-3-Clause"
] | null | null | null | examples.py | Jindam/HPCGISLab | 54ec030cd87b3f6f46ea68cdf007b21344517515 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
"""
Copyright (c) 2014 High-Performance Computing and GIS (HPCGIS) Laboratory. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Authors and contributors: Eric Shook (eshook@kent.edu); Zhengliang Feng (odayfans@gmail.com, zfeng2@kent... | 28.906977 | 109 | 0.678198 | 325 | 2,486 | 5.123077 | 0.436923 | 0.048649 | 0.067267 | 0.066066 | 0.201802 | 0.170571 | 0.124925 | 0.124925 | 0.068468 | 0.068468 | 0 | 0.030659 | 0.212792 | 2,486 | 85 | 110 | 29.247059 | 0.820133 | 0.072003 | 0 | 0.222222 | 0 | 0 | 0.243964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.481481 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
a468bc3f8c7872a6af3170d81c5d24594468a8d8 | 850 | py | Python | custom_imports/importer/simple_finder.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | null | null | null | custom_imports/importer/simple_finder.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | 1 | 2020-05-21T02:36:07.000Z | 2020-05-21T12:55:24.000Z | custom_imports/importer/simple_finder.py | madman-bob/python-custom-imports | e9d6979865bfde5f149a2190d8f2895d333ab219 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from types import ModuleType
from typing import Callable, Iterable, Optional, TypeVar
from custom_imports.importer.types import Finder
from custom_imports.utils import field_required
__all__ = ["SimpleFinder"]
LT = TypeVar("LT") # Locator type.
@dataclass(frozen=True)
clas... | 25.757576 | 85 | 0.708235 | 100 | 850 | 5.88 | 0.45 | 0.061224 | 0.057823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191765 | 850 | 32 | 86 | 26.5625 | 0.855895 | 0.167059 | 0 | 0 | 0 | 0 | 0.02071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0.0625 | 0.5625 | 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 |
a48b8d8cba8d89e0d7d26e09e3e988db1dcbd798 | 5,090 | py | Python | services/base_image/fixed/fast_oci_object_storage_models__init__.py | samle-appsbroker/acquire | 34f29dc4173cb87f8e2f49864559b35efb48b21b | [
"Apache-2.0"
] | 21 | 2019-01-29T17:18:45.000Z | 2021-11-07T19:29:31.000Z | services/base_image/fixed/fast_oci_object_storage_models__init__.py | openghg/acquire | 8af8701b092f7304c02fea1ee6360e53502dfd64 | [
"Apache-2.0"
] | 229 | 2020-09-30T15:08:39.000Z | 2022-03-31T14:23:55.000Z | services/base_image/fixed/fast_oci_object_storage_models__init__.py | openghg/acquire | 8af8701b092f7304c02fea1ee6360e53502dfd64 | [
"Apache-2.0"
] | 4 | 2019-06-20T07:49:05.000Z | 2020-03-31T18:11:56.000Z | # coding: utf-8
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
from __future__ import absolute_import
import lazy_import as _lazy_import
Bucket = _lazy_import.lazy_class("oci.object_storage.models.bucket.Bucket")
BucketSummary = _lazy_import.lazy_class("oci.object_storage.models.bucke... | 74.852941 | 168 | 0.862672 | 460 | 5,090 | 9.152174 | 0.195652 | 0.071259 | 0.093112 | 0.126366 | 0.333729 | 0.333729 | 0.333729 | 0.333729 | 0.275297 | 0.174822 | 0 | 0.001876 | 0.057367 | 5,090 | 67 | 169 | 75.970149 | 0.875573 | 0.028684 | 0 | 0 | 0 | 0 | 0.512551 | 0.458502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a4a4806c0f26942854d6736a2bed167e72d43f93 | 1,352 | py | Python | tests/regressions/issue_61/test_issue_61.py | bitranox/Arpeggio | 62151cb8ef2cfe5113a4388da09892e7714c5e96 | [
"MIT"
] | null | null | null | tests/regressions/issue_61/test_issue_61.py | bitranox/Arpeggio | 62151cb8ef2cfe5113a4388da09892e7714c5e96 | [
"MIT"
] | null | null | null | tests/regressions/issue_61/test_issue_61.py | bitranox/Arpeggio | 62151cb8ef2cfe5113a4388da09892e7714c5e96 | [
"MIT"
] | null | null | null | # stdlib
import pytest # type: ignore
# proj
from arpeggio import *
def test_ordered_choice_skipws_ws() -> None:
# Both rules will skip white-spaces
def sentence():
return Sequence(ZeroOrMore(word), skipws=True), EOF
def word():
return OrderedChoice([(id, ' ', '.'), id, '.'], skipws=T... | 25.509434 | 79 | 0.60429 | 175 | 1,352 | 4.645714 | 0.44 | 0.094711 | 0.110701 | 0.086101 | 0.313653 | 0.242312 | 0.242312 | 0.202952 | 0.162362 | 0.162362 | 0 | 0.012048 | 0.263314 | 1,352 | 52 | 80 | 26 | 0.804217 | 0.244822 | 0 | 0.37931 | 0 | 0 | 0.049554 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.206897 | false | 0 | 0.068966 | 0.172414 | 0.448276 | 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 |
8ef85708ab32d77d250dc4442a1b579f02e718b3 | 498 | py | Python | Tests/get_url_test.py | by09115/Flask-URLshortener | 860eef75d86658f91a9316c253b512bf3aad0a6c | [
"MIT"
] | 1 | 2019-01-02T08:50:07.000Z | 2019-01-02T08:50:07.000Z | Tests/get_url_test.py | by09115/Flask-URLshortener | 860eef75d86658f91a9316c253b512bf3aad0a6c | [
"MIT"
] | null | null | null | Tests/get_url_test.py | by09115/Flask-URLshortener | 860eef75d86658f91a9316c253b512bf3aad0a6c | [
"MIT"
] | null | null | null | from Tests import TestCaseBase, check_status_code
class GetUrlTest(TestCaseBase):
def setUp(self):
super(GetUrlTest, self).setUp()
self.short_url = self.save_url_request()
@check_status_code(302)
def test_success_get_url(self):
rv = self.get_url_request('b')
self.assertEq... | 26.210526 | 76 | 0.680723 | 66 | 498 | 4.863636 | 0.515152 | 0.102804 | 0.140187 | 0.105919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.204819 | 498 | 18 | 77 | 27.666667 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0.074297 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 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 |
f10df601a7c5749970e3056bb9860eea4ebaf2e2 | 1,186 | py | Python | pyuwb/client_id_utils.py | Jiangshan00001/pyuwb | 9253c9f7481199eddac37dec544723fba31ba996 | [
"MIT"
] | 1 | 2022-03-24T03:08:46.000Z | 2022-03-24T03:08:46.000Z | pyuwb/client_id_utils.py | Jiangshan00001/pyuwb | 9253c9f7481199eddac37dec544723fba31ba996 | [
"MIT"
] | null | null | null | pyuwb/client_id_utils.py | Jiangshan00001/pyuwb | 9253c9f7481199eddac37dec544723fba31ba996 | [
"MIT"
] | null | null | null | __author__ = "songjiangshan"
__copyright__ = "Copyright (C) 2021 songjiangshan \n All Rights Reserved."
__license__ = ""
__version__ = "1.0"
DEVICE_TYPE_TAG=0 #OLD3
DEVICE_TYPE_ANCHOR=1 #OLD2
DEVICE_TYPE_ANCHORZ=2 #OLD1
def client_id_remove_group(client_id):
return str(client_id_get_type(client_id)) + '-' + str(... | 23.72 | 86 | 0.667791 | 195 | 1,186 | 3.615385 | 0.246154 | 0.27234 | 0.187234 | 0.144681 | 0.459574 | 0.321986 | 0.133333 | 0 | 0 | 0 | 0 | 0.052254 | 0.177066 | 1,186 | 49 | 87 | 24.204082 | 0.670082 | 0.152614 | 0 | 0.115385 | 0 | 0 | 0.11373 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.192308 | false | 0 | 0 | 0.038462 | 0.384615 | 0.038462 | 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 |
f111e8f8ba25e9c2ff8287a1f8d7026ab95f0fc1 | 2,012 | py | Python | apitest/api_test/migrations/0012_auto_20200219_1756.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | null | null | null | apitest/api_test/migrations/0012_auto_20200219_1756.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | 3 | 2020-06-06T01:57:41.000Z | 2021-06-10T22:57:58.000Z | apitest/api_test/migrations/0012_auto_20200219_1756.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.2 on 2020-02-19 17:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api_test', '0011_apiautomationcoverage_num'),
]
operations = [
migrations.AlterField(
model_nam... | 36.581818 | 183 | 0.60835 | 203 | 2,012 | 5.891626 | 0.29064 | 0.133779 | 0.167224 | 0.19398 | 0.551839 | 0.551839 | 0.461538 | 0.461538 | 0.461538 | 0.461538 | 0 | 0.013541 | 0.265905 | 2,012 | 54 | 184 | 37.259259 | 0.796209 | 0.022366 | 0 | 0.583333 | 1 | 0 | 0.149109 | 0.036641 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.104167 | 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 |
f113bc3867136bab6f6070ecf2922c70504f996e | 574 | py | Python | submission/counter_reactionary.py | leomaurodesenv/rock-paper-scissors-kaggle | c9690378757481b2ab1bce0911a50101e1bdacde | [
"CC0-1.0"
] | null | null | null | submission/counter_reactionary.py | leomaurodesenv/rock-paper-scissors-kaggle | c9690378757481b2ab1bce0911a50101e1bdacde | [
"CC0-1.0"
] | null | null | null | submission/counter_reactionary.py | leomaurodesenv/rock-paper-scissors-kaggle | c9690378757481b2ab1bce0911a50101e1bdacde | [
"CC0-1.0"
] | null | null | null |
import random
from kaggle_environments.envs.rps.utils import get_score
last_counter_action = None
def counter_reactionary(observation, configuration):
global last_counter_action
if observation.step == 0:
last_counter_action = random.randrange(0, configuration.signs)
elif get_score(last_counter_a... | 31.888889 | 88 | 0.770035 | 67 | 574 | 6.298507 | 0.447761 | 0.208531 | 0.322275 | 0.090047 | 0.300948 | 0.222749 | 0 | 0 | 0 | 0 | 0 | 0.010395 | 0.162021 | 574 | 17 | 89 | 33.764706 | 0.866944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
f118ab6fe117fde800f9a346ebf9d9692538566f | 3,492 | py | Python | django_cradmin/demo/project/test/settings.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 11 | 2015-07-05T16:57:58.000Z | 2020-11-24T16:58:19.000Z | django_cradmin/demo/project/test/settings.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 91 | 2015-01-08T22:38:13.000Z | 2022-02-10T10:25:27.000Z | django_cradmin/demo/project/test/settings.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 3 | 2016-12-07T12:19:24.000Z | 2018-10-03T14:04:18.000Z | """
Django settings for running the django_cradmin tests.
"""
from django_dbdev.backends.sqlite import DBSETTINGS
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'y%j0x%=7a^sf53m*s^5nbmfe0_t13d*oibfx#m#*wz1x+k6+m1'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG... | 32.333333 | 92 | 0.725086 | 385 | 3,492 | 6.311688 | 0.376623 | 0.139095 | 0.083951 | 0.108642 | 0.188477 | 0.100823 | 0.023868 | 0 | 0 | 0 | 0 | 0.007893 | 0.165521 | 3,492 | 107 | 93 | 32.635514 | 0.826012 | 0.146048 | 0 | 0.027027 | 0 | 0.013514 | 0.640809 | 0.595953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013514 | 0.013514 | 0 | 0.013514 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f11be192d1ddd50cdda688a06bb1a1af21e7e165 | 428 | py | Python | mnist/configs/resnet18.py | anisayari/pipeline | 48313bc5c459fde0d3fc0acd9f78ccfb677a5197 | [
"MIT"
] | 1 | 2019-02-14T13:59:03.000Z | 2019-02-14T13:59:03.000Z | mnist/configs/resnet18.py | anisayari/pipeline | 48313bc5c459fde0d3fc0acd9f78ccfb677a5197 | [
"MIT"
] | null | null | null | mnist/configs/resnet18.py | anisayari/pipeline | 48313bc5c459fde0d3fc0acd9f78ccfb677a5197 | [
"MIT"
] | null | null | null | from .base import ConfigMNISTBase
from pipeline.models.classification import ClassificationModuleLinear
from pipeline.models.image_classification import Resnet18Model
import torch.nn as nn
class Config(ConfigMNISTBase):
def __init__(self):
model = nn.Sequential(
Resnet18Model(),
... | 25.176471 | 70 | 0.733645 | 41 | 428 | 7.414634 | 0.585366 | 0.078947 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023324 | 0.198598 | 428 | 16 | 71 | 26.75 | 0.862974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
f139fb71cd890e05932e05089ee6bc01628c1c14 | 1,890 | py | Python | core/logger.py | nragon/keeper | e7e668a89799759009dacb1e33bae07b3bcea40a | [
"MIT"
] | 28 | 2018-11-29T10:33:35.000Z | 2022-01-18T10:36:08.000Z | core/logger.py | nragon/keeper | e7e668a89799759009dacb1e33bae07b3bcea40a | [
"MIT"
] | 3 | 2019-04-26T14:13:29.000Z | 2020-05-22T20:12:01.000Z | core/logger.py | nragon/keeper | e7e668a89799759009dacb1e33bae07b3bcea40a | [
"MIT"
] | 9 | 2019-01-08T04:20:46.000Z | 2022-01-03T05:14:48.000Z | # -*- coding: utf-8 -*-
"""
Provides base logging functions
:copyright: © 2018 by Nuno Gonçalves
:license: MIT, see LICENSE for more details.
"""
from logging import getLevelName, INFO, WARN, ERROR, DEBUG
from multiprocessing import current_process
from time import strftime
from core.common import load_con... | 22.771084 | 82 | 0.566667 | 206 | 1,890 | 5.121359 | 0.325243 | 0.079621 | 0.108057 | 0.098578 | 0.25782 | 0.216114 | 0.070142 | 0 | 0 | 0 | 0 | 0.003931 | 0.326984 | 1,890 | 82 | 83 | 23.04878 | 0.824686 | 0.305291 | 0 | 0 | 0 | 0 | 0.022179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.208333 | 0 | 0.541667 | 0.041667 | 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 |
f13a4cc826ea37913e60b843ea7611564973e259 | 149 | py | Python | terms_finder/__init__.py | elderdk/pyxliff | ae641f0e93790498798f64ce1b64b16e9334cf75 | [
"MIT"
] | 2 | 2021-12-10T17:16:14.000Z | 2022-02-28T12:37:21.000Z | terms_finder/__init__.py | elderdk/pyxliff | ae641f0e93790498798f64ce1b64b16e9334cf75 | [
"MIT"
] | null | null | null | terms_finder/__init__.py | elderdk/pyxliff | ae641f0e93790498798f64ce1b64b16e9334cf75 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pyxliff/__init__.py
"""Provides useful functions for SDLXliff terms verification and discovery."""
__version__ = "0.1.0"
| 21.285714 | 78 | 0.697987 | 19 | 149 | 5.052632 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.14094 | 149 | 6 | 79 | 24.833333 | 0.71875 | 0.771812 | 0 | 0 | 0 | 0 | 0.185185 | 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 |
f140a85804be9f86cc527818513ef5706f31e72f | 2,251 | py | Python | codewar/4 By 4 Skyscrapers -2k/4 By 4 Skyscrapers.py | z7211979/practise-Python | fb3c72b5e094b4102c9cce0513f48fca6ef4d8bc | [
"MIT"
] | 1 | 2018-08-30T23:11:47.000Z | 2018-08-30T23:11:47.000Z | codewar/4 By 4 Skyscrapers -2k/4 By 4 Skyscrapers.py | z7211979/practise-Python | fb3c72b5e094b4102c9cce0513f48fca6ef4d8bc | [
"MIT"
] | null | null | null | codewar/4 By 4 Skyscrapers -2k/4 By 4 Skyscrapers.py | z7211979/practise-Python | fb3c72b5e094b4102c9cce0513f48fca6ef4d8bc | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
'''
not worked
'''
import sys
sys.path.append('../')
import cw as test
import time
N=4
def rotate(matrix):
"""
:contrarotate matrix.
"""
return list(map(list,zip(*matrix[::])))[::-1]
def visible_onerow(array):
"""
:return visible number in ... | 21.438095 | 73 | 0.513994 | 345 | 2,251 | 3.24058 | 0.234783 | 0.075134 | 0.026834 | 0.049195 | 0.177102 | 0.059034 | 0.059034 | 0 | 0 | 0 | 0 | 0.071845 | 0.313638 | 2,251 | 104 | 74 | 21.644231 | 0.65178 | 0.095957 | 0 | 0.237288 | 0 | 0 | 0.034596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.050847 | 0.050847 | null | null | 0.033898 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f1466265e389573bb78149ea31304ec7d422874a | 22,156 | py | Python | applications/cpfecys/controllers/default.py | SIMBitGt-Company/RepoRepo | b84c39d9643a0c5e51291d5e62e36b6080a7e622 | [
"BSD-3-Clause"
] | null | null | null | applications/cpfecys/controllers/default.py | SIMBitGt-Company/RepoRepo | b84c39d9643a0c5e51291d5e62e36b6080a7e622 | [
"BSD-3-Clause"
] | null | null | null | applications/cpfecys/controllers/default.py | SIMBitGt-Company/RepoRepo | b84c39d9643a0c5e51291d5e62e36b6080a7e622 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## This is a sample controller
## - index is the default action of any application
## - user is required for authentication and authorization... | 46.644211 | 302 | 0.586162 | 2,561 | 22,156 | 4.939086 | 0.178055 | 0.017076 | 0.019606 | 0.016602 | 0.430864 | 0.362163 | 0.315203 | 0.299549 | 0.283105 | 0.261602 | 0 | 0.003455 | 0.281414 | 22,156 | 474 | 303 | 46.742616 | 0.7899 | 0.067837 | 0 | 0.362018 | 0 | 0.005935 | 0.086049 | 0.010307 | 0 | 0 | 0 | 0.00211 | 0 | 0 | null | null | 0.050445 | 0.029674 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f15f139fa9354be5d310a537e18612012d1f77d1 | 1,924 | py | Python | qa327_test/frontend/test_logout_page.py | jacob-seiler/seetgeek | 07affac0b06b8670911e348fc9d078bdf5242dc0 | [
"MIT"
] | null | null | null | qa327_test/frontend/test_logout_page.py | jacob-seiler/seetgeek | 07affac0b06b8670911e348fc9d078bdf5242dc0 | [
"MIT"
] | null | null | null | qa327_test/frontend/test_logout_page.py | jacob-seiler/seetgeek | 07affac0b06b8670911e348fc9d078bdf5242dc0 | [
"MIT"
] | 1 | 2021-01-02T19:44:53.000Z | 2021-01-02T19:44:53.000Z | import pytest
from seleniumbase import BaseCase
from qa327_test.conftest import base_url
from unittest.mock import patch
from qa327.models import User
from werkzeug.security import generate_password_hash, check_password_hash
"""
This file defines all unit tests for the logout page.
The tests will only test the front... | 32.066667 | 95 | 0.690229 | 265 | 1,924 | 4.913208 | 0.456604 | 0.026882 | 0.036866 | 0.046083 | 0.156682 | 0.104455 | 0.104455 | 0.104455 | 0.104455 | 0.104455 | 0 | 0.015416 | 0.224532 | 1,924 | 59 | 96 | 32.610169 | 0.857239 | 0.220894 | 0 | 0.166667 | 1 | 0 | 0.119256 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0.125 | 0.25 | 0 | 0.375 | 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 |
f1782944c639b14d71ac08800edccf0760178af8 | 186 | py | Python | src/x_mlps/_version.py | PyriteAI/x-mlps | fcbba196384f16b742fccb8e82bd2adc467b1ef2 | [
"MIT"
] | 4 | 2021-12-29T03:04:58.000Z | 2022-01-13T13:07:43.000Z | src/x_mlps/_version.py | PyriteAI/x-mlps | fcbba196384f16b742fccb8e82bd2adc467b1ef2 | [
"MIT"
] | 1 | 2022-01-24T00:06:46.000Z | 2022-01-24T00:06:46.000Z | src/x_mlps/_version.py | PyriteAI/x-mlps | fcbba196384f16b742fccb8e82bd2adc467b1ef2 | [
"MIT"
] | 1 | 2022-02-24T10:17:17.000Z | 2022-02-24T10:17:17.000Z | from importlib.metadata import PackageNotFoundError, version
try:
__version__ = version("x_mlps")
except PackageNotFoundError:
# package is not installed
__version__ = None
| 23.25 | 60 | 0.768817 | 19 | 186 | 7.052632 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 186 | 7 | 61 | 26.571429 | 0.87013 | 0.129032 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
f1797974af0b1c517090e44934a9250630e99a4d | 324 | py | Python | company/signals/handlers.py | OnGridSystems/RobotVeraWebApp | 01cee658a3983fcaf128b40bb99c1a4272e90c07 | [
"MIT"
] | 11 | 2018-06-13T10:10:11.000Z | 2021-06-05T08:23:43.000Z | company/signals/handlers.py | OnGridSystems/RobotVeraWebApp | 01cee658a3983fcaf128b40bb99c1a4272e90c07 | [
"MIT"
] | 5 | 2020-06-05T18:24:25.000Z | 2022-03-11T23:21:01.000Z | company/signals/handlers.py | OnGridSystems/RobotVeraWebApp | 01cee658a3983fcaf128b40bb99c1a4272e90c07 | [
"MIT"
] | 5 | 2018-08-17T16:09:33.000Z | 2021-06-06T05:32:10.000Z | from django.db.models.signals import post_save
from django.dispatch import receiver
from company.models import Company
from company.tasks import deploy_new_company
@receiver(post_save, sender=Company)
def company_created(sender, instance, created, **kwargs):
if created:
deploy_new_company.delay(instance.... | 27 | 57 | 0.799383 | 45 | 324 | 5.6 | 0.488889 | 0.079365 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126543 | 324 | 11 | 58 | 29.454545 | 0.890459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
f18dc483d7521c03921392d10535b3718b96278d | 25,767 | py | Python | pysnmp/ALCATEL-IND1-IPX-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ALCATEL-IND1-IPX-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ALCATEL-IND1-IPX-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 ALCATEL-IND1-IPX-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-IPX-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:02:31 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 137.058511 | 3,836 | 0.75131 | 3,001 | 25,767 | 6.450183 | 0.075641 | 0.014982 | 0.014568 | 0.015705 | 0.396084 | 0.351759 | 0.332851 | 0.322881 | 0.284858 | 0.275921 | 0 | 0.103516 | 0.09159 | 25,767 | 187 | 3,837 | 137.791444 | 0.723459 | 0.012962 | 0 | 0.073446 | 0 | 0 | 0.149347 | 0.039884 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039548 | 0 | 0.084746 | 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 |
74bb773e96b796a32e9006fbdb28494ee5ebd765 | 1,893 | py | Python | krvjezivot/users/migrations/0003_users_donors.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | krvjezivot/users/migrations/0003_users_donors.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | krvjezivot/users/migrations/0003_users_donors.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2018-05-23 22:44
from django.db import migrations, models
import enumfields.fields
import krvjezivot.donations.enums
import krvjezivot.users.enums
class Migration(migrations.Migration):
dependencies = [
('users', '0002_full_name'),
]
operations = [
migrati... | 36.403846 | 160 | 0.621764 | 204 | 1,893 | 5.651961 | 0.333333 | 0.10928 | 0.139636 | 0.16392 | 0.525585 | 0.525585 | 0.240243 | 0.162186 | 0.116219 | 0.116219 | 0 | 0.020714 | 0.260433 | 1,893 | 51 | 161 | 37.117647 | 0.802857 | 0.023772 | 0 | 0.466667 | 1 | 0 | 0.131094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088889 | 0 | 0.155556 | 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 |
74c637a2577e1df643e2a3b1180f5d79679865a0 | 2,057 | py | Python | pyccl/__init__.py | Russell-Jones-OxPhys/CCL | 1cdc4ecb8ae6fb23806540b39799cc3317473e71 | [
"BSD-3-Clause"
] | null | null | null | pyccl/__init__.py | Russell-Jones-OxPhys/CCL | 1cdc4ecb8ae6fb23806540b39799cc3317473e71 | [
"BSD-3-Clause"
] | null | null | null | pyccl/__init__.py | Russell-Jones-OxPhys/CCL | 1cdc4ecb8ae6fb23806540b39799cc3317473e71 | [
"BSD-3-Clause"
] | null | null | null | """The pyccl package contains all of the submodules that are implemented in
individual files in CCL.
"""
# flake8: noqa
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
# Sets ... | 33.177419 | 84 | 0.787555 | 269 | 2,057 | 5.762082 | 0.546468 | 0.02129 | 0.015484 | 0.028387 | 0.033548 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004002 | 0.149733 | 2,057 | 61 | 85 | 33.721311 | 0.882218 | 0.237725 | 0 | 0 | 0 | 0 | 0.047127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032258 | 0.516129 | 0 | 0.516129 | 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 |
74c877722010d45093123c6bb2302c0e0c62cc73 | 1,516 | py | Python | src/166. Fraction to Recurring Decimal.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/166. Fraction to Recurring Decimal.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/166. Fraction to Recurring Decimal.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | import time
class Solution(object):
def fractionToDecimal(self, numerator, denominator):
"""
:type numerator: int
:type denominator: int
:rtype: str
"""
if numerator == 0: return '0'
if numerator < 0 and denominator < 0:
return self.fractionToDec... | 27.563636 | 81 | 0.53562 | 148 | 1,516 | 5.486486 | 0.297297 | 0.080049 | 0.184729 | 0.054187 | 0.096059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023374 | 0.350923 | 1,516 | 55 | 82 | 27.563636 | 0.801829 | 0.047493 | 0 | 0 | 0 | 0 | 0.004454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.147059 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
74d381cc69d2e01f962aec382693cd60d7da90cd | 1,254 | py | Python | test/test_align.py | ishine/fac-via-ppg | 552e2c15046ff6f5e2656324e59d83a3bfe50e85 | [
"Apache-2.0"
] | 98 | 2019-06-27T17:00:01.000Z | 2022-03-10T10:48:18.000Z | test/test_align.py | itsclint/fac-via-ppg | 9f749039ee6d7f92ebc5ad261cdfb67035a85e38 | [
"Apache-2.0"
] | 16 | 2019-09-09T03:21:16.000Z | 2021-11-03T01:55:26.000Z | test/test_align.py | itsclint/fac-via-ppg | 9f749039ee6d7f92ebc5ad261cdfb67035a85e38 | [
"Apache-2.0"
] | 36 | 2019-09-06T09:07:42.000Z | 2021-12-20T13:54:47.000Z | # Copyright 2018 Guanlong Zhao
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | 32.153846 | 74 | 0.704944 | 186 | 1,254 | 4.639785 | 0.505376 | 0.069525 | 0.034762 | 0.03708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010091 | 0.209729 | 1,254 | 38 | 75 | 33 | 0.860747 | 0.437799 | 0 | 0 | 0 | 0 | 0.06196 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.210526 | false | 0.052632 | 0.157895 | 0 | 0.421053 | 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 |
2d0be59b7bb1d28debf0ba11e1837d4e4a08540c | 2,637 | py | Python | slash/utils/__init__.py | kbh2o/slash | 532b7e3acdf46103ece5b86f21c29f9b58587289 | [
"BSD-3-Clause"
] | 70 | 2015-12-05T12:33:10.000Z | 2022-03-03T04:56:58.000Z | slash/utils/__init__.py | kbh2o/slash | 532b7e3acdf46103ece5b86f21c29f9b58587289 | [
"BSD-3-Clause"
] | 711 | 2015-10-06T11:01:48.000Z | 2022-02-09T12:40:47.000Z | slash/utils/__init__.py | kbh2o/slash | 532b7e3acdf46103ece5b86f21c29f9b58587289 | [
"BSD-3-Clause"
] | 37 | 2015-10-13T11:00:51.000Z | 2022-02-08T07:28:11.000Z | import functools
from ..ctx import context
from ..core.markers import repeat_marker
from ..core import requirements
from ..exceptions import SkipTest
def skip_test(*args):
"""
Skips the current test execution by raising a :class:`slash.exceptions.SkipTest`
exception. It can optionally receive a reason ar... | 34.246753 | 119 | 0.732651 | 376 | 2,637 | 5.037234 | 0.348404 | 0.063358 | 0.022175 | 0.020591 | 0.459873 | 0.401795 | 0.388596 | 0.388596 | 0.388596 | 0.32735 | 0 | 0.001889 | 0.197194 | 2,637 | 76 | 120 | 34.697368 | 0.892773 | 0.492984 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.208333 | 0 | 0.708333 | 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 |
2d381c92d99c3d97332feb4ffb198a371008ed12 | 2,945 | py | Python | api/migrations/0001_initial.py | backdev96/yamdb_final | ba61132adca74952eded09d0218ded6e234af9ee | [
"Apache-2.0"
] | null | null | null | api/migrations/0001_initial.py | backdev96/yamdb_final | ba61132adca74952eded09d0218ded6e234af9ee | [
"Apache-2.0"
] | 3 | 2021-06-05T00:11:14.000Z | 2021-09-22T19:57:18.000Z | api/migrations/0001_initial.py | backdev96/api_yamdb | 36210130bde3d6c7e5a7cbce6ab978b66c510067 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-12-07 16:56
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 43.955224 | 133 | 0.582003 | 298 | 2,945 | 5.614094 | 0.278523 | 0.033473 | 0.050209 | 0.0789 | 0.633592 | 0.633592 | 0.61566 | 0.61566 | 0.61566 | 0.61566 | 0 | 0.01591 | 0.274363 | 2,945 | 66 | 134 | 44.621212 | 0.766963 | 0.01528 | 0 | 0.610169 | 1 | 0 | 0.073154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050847 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2d464bb2b382adc56b7664d71eeadee804346536 | 1,056 | py | Python | stock_news_beta/stock_news_beta/apps/focus/migrations/0004_auto_20190125_1724.py | zws910/stock-news | dcf90d25a36a903e44ddfd04bb655f665b692b36 | [
"MIT"
] | null | null | null | stock_news_beta/stock_news_beta/apps/focus/migrations/0004_auto_20190125_1724.py | zws910/stock-news | dcf90d25a36a903e44ddfd04bb655f665b692b36 | [
"MIT"
] | null | null | null | stock_news_beta/stock_news_beta/apps/focus/migrations/0004_auto_20190125_1724.py | zws910/stock-news | dcf90d25a36a903e44ddfd04bb655f665b692b36 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-01-25 09:24
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('focus', '0003_auto_20190125_1721'),
]
operations = [
migrations.AlterModelOptions(... | 29.333333 | 94 | 0.568182 | 98 | 1,056 | 5.887755 | 0.469388 | 0.190641 | 0.268631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044914 | 0.283144 | 1,056 | 35 | 95 | 30.171429 | 0.717305 | 0.065341 | 0 | 0.357143 | 1 | 0 | 0.248984 | 0.023374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7437242aebcdc39142761605d71fd8ac6df32f75 | 348 | py | Python | venv/lib/python3.8/site-packages/azureml/_tracing/__init__.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/azureml/_tracing/__init__.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/azureml/_tracing/__init__.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | 2 | 2021-05-23T16:46:31.000Z | 2021-05-26T23:51:09.000Z | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from azureml._base_sdk_common import __version__ as VERSION
from ._tracer_factory import get_tracer
__version__ = VERSION
__all_... | 26.769231 | 60 | 0.488506 | 27 | 348 | 5.592593 | 0.666667 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140805 | 348 | 12 | 61 | 29 | 0.505017 | 0.497126 | 0 | 0 | 0 | 0 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
744939994e227d0b6b7c94dcb8010fec20ecb0bf | 267 | py | Python | elm-finder/apps/homepage/admin.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | 2 | 2019-04-28T21:32:46.000Z | 2019-05-13T05:27:09.000Z | elm-finder/apps/homepage/admin.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | null | null | null | elm-finder/apps/homepage/admin.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | null | null | null | from django.contrib import admin
from apps.homepage.models import PSA, Dpotw, Gotw
@admin.register(Dpotw)
class DpotwAdmin(admin.ModelAdmin):
raw_id_fields = ("package",)
@admin.register(Gotw)
class GotwAdmin(admin.ModelAdmin):
raw_id_fields = ("grid",)
| 19.071429 | 49 | 0.745318 | 35 | 267 | 5.571429 | 0.6 | 0.133333 | 0.184615 | 0.205128 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131086 | 267 | 13 | 50 | 20.538462 | 0.840517 | 0 | 0 | 0 | 0 | 0 | 0.041199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 |
7454293e13312ee705f2fc3945097505c0c97567 | 946 | py | Python | project/evaluate/views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | null | null | null | project/evaluate/views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | null | null | null | project/evaluate/views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | 1 | 2019-10-03T14:24:07.000Z | 2019-10-03T14:24:07.000Z | """
Contains the views of the 'evaluate' blueprint.
"""
# pylint: disable=invalid-name
from flask import Blueprint, render_template, request
from project.evaluate.forms import EvaluateForm
from project.evaluate.helpers import evaluate_pass
evaluate_blueprint = Blueprint('evaluate', __name__, url_prefix='/evaluate... | 35.037037 | 79 | 0.664905 | 107 | 946 | 5.747664 | 0.46729 | 0.082927 | 0.078049 | 0.091057 | 0.247154 | 0.146341 | 0.146341 | 0.146341 | 0 | 0 | 0 | 0 | 0.200846 | 946 | 26 | 80 | 36.384615 | 0.813492 | 0.112051 | 0 | 0.133333 | 0 | 0 | 0.13017 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.066667 | false | 0.2 | 0.2 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.