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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f81645d8d8d718ec6d0f2fd5efdfee06de47fecf | 364 | py | Python | pydemic/mixins/__init__.py | PyDemic/pydemic | 7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5 | [
"MIT"
] | 3 | 2020-05-10T23:52:41.000Z | 2021-08-31T14:38:24.000Z | pydemic/mixins/__init__.py | PyDemic/pydemic | 7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5 | [
"MIT"
] | 1 | 2020-09-27T03:26:51.000Z | 2022-03-30T12:18:08.000Z | pydemic/mixins/__init__.py | PyDemic/pydemic | 7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5 | [
"MIT"
] | 1 | 2020-10-01T04:07:39.000Z | 2020-10-01T04:07:39.000Z | from .info import Info
from .meta_info import Meta
from .params_info import ParamsInfo
from .results import Results
from .with_data import WithDataMixin, WithDataModelMixin
from .with_info import WithInfoMixin
from .with_params import WithParamsMixin, WithDynamicParamsMixin
from .with_region import WithRegionDemography... | 36.4 | 64 | 0.865385 | 45 | 364 | 6.844444 | 0.377778 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104396 | 364 | 9 | 65 | 40.444444 | 0.944785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f8236d63dd03b057bd6278aa76416b915ba7c5cf | 221 | py | Python | tutorial/tutotial10.py | seigot/tetris_game_tutorial | 3360b2dc2ed3462177d5829fd298fac0330be325 | [
"MIT"
] | 1 | 2021-06-01T12:35:59.000Z | 2021-06-01T12:35:59.000Z | tutorial/tutotial10.py | seigot/tetris_game_tutorial | 3360b2dc2ed3462177d5829fd298fac0330be325 | [
"MIT"
] | null | null | null | tutorial/tutotial10.py | seigot/tetris_game_tutorial | 3360b2dc2ed3462177d5829fd298fac0330be325 | [
"MIT"
] | 4 | 2021-06-23T11:23:26.000Z | 2021-12-10T17:40:04.000Z | #辞書型
print("辞書型")
profile = {
"name": "tani",
"email": "kazunori-t@cyberbra.in"
}
print(profile["name"])
# 新しく要素を追加
profile["gender"] = "male"
# 新しく要素を追加した辞書型(profile)を出力
print(profile)
print(profile["gender"])
| 14.733333 | 37 | 0.651584 | 26 | 221 | 5.538462 | 0.576923 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135747 | 221 | 14 | 38 | 15.785714 | 0.753927 | 0.171946 | 0 | 0 | 0 | 0 | 0.322222 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f82c6c17abea8c10c556bc6633647af470f8ff9d | 202 | py | Python | demo_photo_face_rec.py | AntonFirc/SUR | 3173a80731e601cdcc590166a8ba2ef801e60325 | [
"MIT"
] | null | null | null | demo_photo_face_rec.py | AntonFirc/SUR | 3173a80731e601cdcc590166a8ba2ef801e60325 | [
"MIT"
] | null | null | null | demo_photo_face_rec.py | AntonFirc/SUR | 3173a80731e601cdcc590166a8ba2ef801e60325 | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.path.abspath('./photo'))
from photo_face_recognition import PhotoFaceRecognition
pr = PhotoFaceRecognition()
pr.train_model()
pr.eval_model()
pr.label_data()
| 15.538462 | 55 | 0.787129 | 28 | 202 | 5.5 | 0.607143 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094059 | 202 | 12 | 56 | 16.833333 | 0.84153 | 0 | 0 | 0 | 0 | 0 | 0.034653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f82cdcd7839aba48622a0553d33b63ab5a58431f | 71 | py | Python | examples/require.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | 5 | 2021-02-22T14:22:17.000Z | 2021-10-31T23:54:45.000Z | examples/require.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | null | null | null | examples/require.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | null | null | null | from PyJS import *
rand = require("random")
print(rand.randint(5,10)) | 14.2 | 25 | 0.704225 | 11 | 71 | 4.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.126761 | 71 | 5 | 25 | 14.2 | 0.758065 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f8451083f9211b0dad6f328542b0bb62f9ac7720 | 2,336 | py | Python | django_backend/login_api/models.py | SeethaLakshmanan/lilys-supermarket | b35144eec2a2ab63297096addc3d8c20565136be | [
"MIT"
] | null | null | null | django_backend/login_api/models.py | SeethaLakshmanan/lilys-supermarket | b35144eec2a2ab63297096addc3d8c20565136be | [
"MIT"
] | null | null | null | django_backend/login_api/models.py | SeethaLakshmanan/lilys-supermarket | b35144eec2a2ab63297096addc3d8c20565136be | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from rest_framework.authtoken.models import Token
# class for creating the user
class UsersManager(BaseUserManager):
def create_user(self, first_name, last_name, email, password):
if not email:
... | 37.079365 | 94 | 0.663527 | 290 | 2,336 | 5.162069 | 0.327586 | 0.066132 | 0.064128 | 0.05678 | 0.287241 | 0.209753 | 0.167001 | 0.082832 | 0.082832 | 0.082832 | 0 | 0.004616 | 0.258134 | 2,336 | 62 | 95 | 37.677419 | 0.859204 | 0.110017 | 0 | 0.133333 | 0 | 0 | 0.081042 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.111111 | false | 0.177778 | 0.066667 | 0.066667 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f84a8beb47f4453f803633cf62c0e03a235f5ce1 | 1,920 | py | Python | idManager/model/database/db_model.py | lgarciasbr/idm-api | 3517d29d55eb2a06fb5b4b21359b6cf6d11529a0 | [
"Apache-2.0"
] | 2 | 2018-01-14T22:43:43.000Z | 2018-01-14T22:43:48.000Z | idManager/model/database/db_model.py | lgarciasbr/idm-api | 3517d29d55eb2a06fb5b4b21359b6cf6d11529a0 | [
"Apache-2.0"
] | null | null | null | idManager/model/database/db_model.py | lgarciasbr/idm-api | 3517d29d55eb2a06fb5b4b21359b6cf6d11529a0 | [
"Apache-2.0"
] | null | null | null | from flask import url_for
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import func
from sqlalchemy.orm import backref
from idManager.settings import TOKEN_HOST, REDIS_URL
import redis
db = SQLAlchemy()
if TOKEN_HOST == 'redis':
db_redis = redis.from_url(REDIS_URL)
else:
db_redis = ''
class Group(... | 29.090909 | 95 | 0.691667 | 265 | 1,920 | 4.762264 | 0.237736 | 0.069731 | 0.087163 | 0.038035 | 0.455626 | 0.393027 | 0.358162 | 0.358162 | 0.233756 | 0.141046 | 0 | 0.005788 | 0.190104 | 1,920 | 65 | 96 | 29.538462 | 0.805788 | 0 | 0 | 0.244898 | 0 | 0 | 0.042708 | 0.010938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0.061224 | 0.122449 | 0.102041 | 0.755102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
f860b3687b46cca2655f4dc593ec39fcf96d84a6 | 919 | py | Python | catalog/bindings/csw/conceptual_scheme_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/conceptual_scheme_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/conceptual_scheme_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional
__NAMESPACE__ = "http://www.opengis.net/cat/csw/2.0.2"
@dataclass
class ConceptualSchemeType:
name: Optional[str] = field(
default=None,
metadata={
"name": "Name",
"type": "Element",
"namespac... | 25.527778 | 64 | 0.505985 | 91 | 919 | 5.065934 | 0.318681 | 0.112798 | 0.138829 | 0.199566 | 0.707158 | 0.707158 | 0.707158 | 0.453362 | 0.453362 | 0.453362 | 0 | 0.019576 | 0.332971 | 919 | 35 | 65 | 26.257143 | 0.732463 | 0 | 0 | 0.46875 | 0 | 0 | 0.284004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f86bd9f4e87573b05f67caf83cdf4b6b3b57fc74 | 508 | py | Python | backend/back_inicio.py | Nicolasramos411/pyqt5-simpsons-game | a0f52b78f82adddcd392d440ecb2469e342f9b9d | [
"MIT"
] | null | null | null | backend/back_inicio.py | Nicolasramos411/pyqt5-simpsons-game | a0f52b78f82adddcd392d440ecb2469e342f9b9d | [
"MIT"
] | null | null | null | backend/back_inicio.py | Nicolasramos411/pyqt5-simpsons-game | a0f52b78f82adddcd392d440ecb2469e342f9b9d | [
"MIT"
] | null | null | null | from PyQt5.QtCore import QObject, pyqtSignal, QTimer
class BackInicio(QObject):
senal_nombre_verificado = pyqtSignal(bool) # Envía al front-end si el nombre es valido
def __init__(self):
super().__init__()
def verificacion(self, nombre):
if nombre.isalnum() and len(nombre)... | 25.4 | 92 | 0.629921 | 61 | 508 | 5.016393 | 0.688525 | 0.107843 | 0.205882 | 0.163399 | 0.189542 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.275591 | 508 | 20 | 93 | 25.4 | 0.826087 | 0.080709 | 0 | 0 | 0 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.083333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f8775d20d7a43378483ad853fecb30e905e1ed95 | 169 | py | Python | trader/core/utils/functional.py | JustasZaltauskas/Trader | 554b788dbb856a81dc599ba90d9acdef2d9a340c | [
"MIT"
] | 3 | 2018-09-28T09:55:21.000Z | 2019-04-19T08:30:12.000Z | trader/core/utils/functional.py | JustasZaltauskas/Trader | 554b788dbb856a81dc599ba90d9acdef2d9a340c | [
"MIT"
] | null | null | null | trader/core/utils/functional.py | JustasZaltauskas/Trader | 554b788dbb856a81dc599ba90d9acdef2d9a340c | [
"MIT"
] | null | null | null | from toolz import curry
@curry
def append(arr, x):
arr.append(x)
return arr
@curry
def set_attribute(obj, name, value):
obj[name] = value
return obj
| 12.071429 | 36 | 0.656805 | 26 | 169 | 4.230769 | 0.538462 | 0.145455 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242604 | 169 | 13 | 37 | 13 | 0.859375 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f8780808986160762c306fe2229eb70c50f74c22 | 949 | py | Python | src/AuShadha/visit/visit_phyexam/dijit_widgets/pane.py | GosthMan/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 46 | 2015-03-04T14:19:47.000Z | 2021-12-09T02:58:46.000Z | src/AuShadha/visit/visit_phyexam/dijit_widgets/pane.py | aytida23/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 2 | 2015-06-05T10:29:04.000Z | 2015-12-06T16:54:10.000Z | src/AuShadha/visit/visit_phyexam/dijit_widgets/pane.py | aytida23/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 24 | 2015-03-23T01:38:11.000Z | 2022-01-24T16:23:42.000Z | ################################################################################
# Project: AuShadha
# Description: Pane of the UI
# Author ; Dr.Easwar T.R
# Date: 04-11-2013
# License: GNU-GPL Version3, see LICENSE.txt for details
################################################################################
from c... | 32.724138 | 80 | 0.640674 | 106 | 949 | 5.641509 | 0.622642 | 0.06689 | 0.055184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.09589 | 949 | 29 | 81 | 32.724138 | 0.682984 | 0.249737 | 0 | 0 | 0 | 0 | 0.06789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.6 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
f893b7b07b1b751f0335dbc31741687cced68c9b | 167 | py | Python | python_images/enviroment_image/main.py | kavisek/docker-images | 74a131b55fe68e6748eff5613b8ee94b07714ded | [
"MIT"
] | 1 | 2020-03-03T22:12:12.000Z | 2020-03-03T22:12:12.000Z | python_images/enviroment_image/main.py | kavisek/docker-images | 74a131b55fe68e6748eff5613b8ee94b07714ded | [
"MIT"
] | 5 | 2021-06-02T03:55:08.000Z | 2022-03-12T00:54:02.000Z | python_images/enviroment_image/main.py | kavisek/docker-images | 74a131b55fe68e6748eff5613b8ee94b07714ded | [
"MIT"
] | 1 | 2020-03-21T04:13:49.000Z | 2020-03-21T04:13:49.000Z | import sys
import os
import pprint
def main():
print("python version:", sys.version)
pprint.pprint(os.environ._data)
if __name__ == "__main__":
main()
| 12.846154 | 41 | 0.670659 | 22 | 167 | 4.681818 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197605 | 167 | 12 | 42 | 13.916667 | 0.768657 | 0 | 0 | 0 | 0 | 0 | 0.137725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.375 | 0 | 0.5 | 0.375 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f8a2df29296a34122f9bbd027e83430219b542c8 | 350 | py | Python | rl/envs/LunarLanderWithNoise.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | 7 | 2020-10-08T04:59:51.000Z | 2021-12-03T06:12:39.000Z | rl/envs/LunarLanderWithNoise.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | null | null | null | rl/envs/LunarLanderWithNoise.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | null | null | null | import numpy as np
from envs.EnvWrapper import EnvWrapper
class LunarLanderWithNoise(EnvWrapper):
def __init__(self, random_state):
super(LunarLanderWithNoise, self).__init__("LunarLander-v2", random_state)
self.state_sz = 256
def transform_obs(self, obs):
return np.concatenate((obs, ... | 29.166667 | 82 | 0.728571 | 43 | 350 | 5.651163 | 0.604651 | 0.090535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024138 | 0.171429 | 350 | 11 | 83 | 31.818182 | 0.813793 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f8c1bd44c997817237bb3e84355962ea4498e022 | 58 | py | Python | src/sadie/numbering/__init__.py | jwillis0720/pybody | 2d7c68650ac1ef5f3003ccb67171898eac1f63eb | [
"MIT"
] | null | null | null | src/sadie/numbering/__init__.py | jwillis0720/pybody | 2d7c68650ac1ef5f3003ccb67171898eac1f63eb | [
"MIT"
] | null | null | null | src/sadie/numbering/__init__.py | jwillis0720/pybody | 2d7c68650ac1ef5f3003ccb67171898eac1f63eb | [
"MIT"
] | null | null | null | from .numbering import Numbering
__all__ = ["Numbering"]
| 14.5 | 32 | 0.758621 | 6 | 58 | 6.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 3 | 33 | 19.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f8c1f6a2eed5ac2d86c9cc5c873ea1217665c486 | 8,289 | py | Python | src/LIGAND/NP_LigandMaker.py | MDSYN2019/MDNPPackage | 6a5e503b2ee48707472359dd1f3a3624320cfd67 | [
"Apache-2.0"
] | null | null | null | src/LIGAND/NP_LigandMaker.py | MDSYN2019/MDNPPackage | 6a5e503b2ee48707472359dd1f3a3624320cfd67 | [
"Apache-2.0"
] | null | null | null | src/LIGAND/NP_LigandMaker.py | MDSYN2019/MDNPPackage | 6a5e503b2ee48707472359dd1f3a3624320cfd67 | [
"Apache-2.0"
] | null | null | null |
import numpy as np
import six
import collections
import requests ... | 61.858209 | 203 | 0.300519 | 443 | 8,289 | 5.577878 | 0.433409 | 0.058276 | 0.057871 | 0.069203 | 0.189802 | 0.164306 | 0.138406 | 0.138406 | 0.106839 | 0.106839 | 0 | 0.010197 | 0.668718 | 8,289 | 133 | 204 | 62.323308 | 0.889658 | 0.123537 | 0 | 0.256757 | 0 | 0 | 0.005795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.635135 | 0 | 0.702703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3e837e6341d28750deb4b6ba3f02b66093428ed5 | 2,152 | py | Python | fhirclient/models/provenance_tests.py | JamesSkane/smart_resources | 85c362542b85ebc43ec00cd04915b114ee95f9c0 | [
"Apache-2.0"
] | null | null | null | fhirclient/models/provenance_tests.py | JamesSkane/smart_resources | 85c362542b85ebc43ec00cd04915b114ee95f9c0 | [
"Apache-2.0"
] | null | null | null | fhirclient/models/provenance_tests.py | JamesSkane/smart_resources | 85c362542b85ebc43ec00cd04915b114ee95f9c0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 0.5.0.5149 on 2015-07-06.
# 2015, SMART Health IT.
import os
import io
import unittest
import json
from . import provenance
from .fhirdate import FHIRDate
class ProvenanceTests(unittest.TestCase):
def instantiate_from(self, filename):
... | 43.04 | 128 | 0.680762 | 274 | 2,152 | 5.321168 | 0.394161 | 0.164609 | 0.182442 | 0.098765 | 0.290809 | 0.161866 | 0.082305 | 0 | 0 | 0 | 0 | 0.054771 | 0.177045 | 2,152 | 49 | 129 | 43.918367 | 0.768492 | 0.052509 | 0 | 0.055556 | 1 | 0.027778 | 0.245942 | 0.066404 | 0 | 0 | 0 | 0 | 0.472222 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.305556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e83c8c9b66481e86306586daf899e5fb50df3f4 | 615 | py | Python | core/migrations/0011_auto_20210819_1938.py | Thom03/majiapi | e65d9ed8c6dad5c599bcd21946284e87ba7feb1e | [
"MIT"
] | 1 | 2021-08-17T19:24:26.000Z | 2021-08-17T19:24:26.000Z | core/migrations/0011_auto_20210819_1938.py | Thom03/majiapi | e65d9ed8c6dad5c599bcd21946284e87ba7feb1e | [
"MIT"
] | null | null | null | core/migrations/0011_auto_20210819_1938.py | Thom03/majiapi | e65d9ed8c6dad5c599bcd21946284e87ba7feb1e | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2021-08-19 19:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0010_auto_20210819_1621'),
]
operations = [
migrations.RenameField(
model_name='meterreading',
old_name='current_rea... | 22.777778 | 47 | 0.572358 | 56 | 615 | 6.089286 | 0.642857 | 0.079179 | 0.184751 | 0.175953 | 0.269795 | 0.269795 | 0 | 0 | 0 | 0 | 0 | 0.074341 | 0.321951 | 615 | 26 | 48 | 23.653846 | 0.743405 | 0.073171 | 0 | 0.4 | 1 | 0 | 0.207746 | 0.040493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e89cdb3a70f3beefebaaaba15b82be623ee4bed | 105 | py | Python | src/ptpip/constants/object/live_view_display_rotation.py | DethCount/ptpip-d5300 | ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd | [
"MIT"
] | null | null | null | src/ptpip/constants/object/live_view_display_rotation.py | DethCount/ptpip-d5300 | ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd | [
"MIT"
] | null | null | null | src/ptpip/constants/object/live_view_display_rotation.py | DethCount/ptpip-d5300 | ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd | [
"MIT"
] | null | null | null | from enum import Enum
class LiveViewDisplayRotation(Enum):
NoRotation = 0
RotateCCW = 1
RotateCW = 2
| 15 | 36 | 0.761905 | 13 | 105 | 6.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.180952 | 105 | 6 | 37 | 17.5 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e41aa6e8879b6af807d21ba2de0d41b47525fc60 | 324 | py | Python | src/recipi/utils/helpers.py | EnTeQuAk/recpy | 58f157bd5b054db07be366beca76821386c28f6c | [
"0BSD"
] | 2 | 2015-11-12T08:58:14.000Z | 2021-03-06T01:30:11.000Z | src/recipi/utils/helpers.py | recipi/recipi | 58f157bd5b054db07be366beca76821386c28f6c | [
"0BSD"
] | 6 | 2015-02-03T00:16:58.000Z | 2015-02-04T23:47:30.000Z | src/recipi/utils/helpers.py | recipi/recipi | 58f157bd5b054db07be366beca76821386c28f6c | [
"0BSD"
] | null | null | null | from django.contrib.sessions.serializers import JSONSerializer as BaseJSONSerializer
from recipi.utils import json
class UUIDCapableJSONSerializer(BaseJSONSerializer):
def dumps(self, obj):
return json.dumps(obj).encode('latin-1')
def loads(self, data):
return json.loads(data.decode('latin-1... | 27 | 84 | 0.743827 | 39 | 324 | 6.179487 | 0.641026 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.154321 | 324 | 11 | 85 | 29.454545 | 0.872263 | 0 | 0 | 0 | 0 | 0 | 0.04321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.285714 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e43b8ab9d024c587cfdd71bb583bcc3de62905ca | 858 | py | Python | weave/util.py | CBI-PITT/weave | dbd647b7c995291b7b746550df6b7ae9a5c9c5dc | [
"BSD-3-Clause"
] | null | null | null | weave/util.py | CBI-PITT/weave | dbd647b7c995291b7b746550df6b7ae9a5c9c5dc | [
"BSD-3-Clause"
] | null | null | null | weave/util.py | CBI-PITT/weave | dbd647b7c995291b7b746550df6b7ae9a5c9c5dc | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 28 11:00:12 2022
@author: awatson
"""
import os
def pixToMB(pixNum,bit=16):
return pixNum*bit/8/1024/1024
def MBToPix(MB,bit=16):
return MB/bit*8*1024*1024
def getFileName(y,x):
return '{}.{}.tif'.format(y,x)
def getDir(location,t,c,z):
return os.... | 17.16 | 46 | 0.595571 | 127 | 858 | 4.015748 | 0.393701 | 0.023529 | 0.098039 | 0.107843 | 0.354902 | 0.135294 | 0.109804 | 0 | 0 | 0 | 0 | 0.055641 | 0.245921 | 858 | 49 | 47 | 17.510204 | 0.732612 | 0.088578 | 0 | 0.074074 | 0 | 0 | 0.024611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.037037 | 0.222222 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e4441cc52e0e959a9d6acad69a149e52c8715d03 | 2,059 | py | Python | darwinpush/listener.py | fasteroute/darwinpush | c919049e076cbdf61007fc9cc1c5a0271cde7929 | [
"Apache-2.0"
] | 3 | 2015-08-15T15:38:06.000Z | 2019-08-06T11:09:32.000Z | darwinpush/listener.py | grundleborg/darwinpush | c919049e076cbdf61007fc9cc1c5a0271cde7929 | [
"Apache-2.0"
] | 34 | 2015-07-22T13:47:16.000Z | 2015-08-12T17:40:23.000Z | darwinpush/listener.py | grundleborg/darwinpush | c919049e076cbdf61007fc9cc1c5a0271cde7929 | [
"Apache-2.0"
] | 1 | 2015-08-30T15:26:24.000Z | 2015-08-30T15:26:24.000Z | from darwinpush.messages import *
class Listener:
def __init__(self, q):
print("Initialising Listener")
#self.queue = queue.Queue(maxsize=10000)
self.queue = q
#self.process = multiprocessing.Process(target=self._run)
#self.thread.daemon = True
#p.start()
#p.... | 29.414286 | 65 | 0.59932 | 214 | 2,059 | 5.528037 | 0.275701 | 0.092984 | 0.13694 | 0.167371 | 0.391378 | 0.195266 | 0.08115 | 0 | 0 | 0 | 0 | 0.003546 | 0.315202 | 2,059 | 69 | 66 | 29.84058 | 0.835461 | 0.08645 | 0 | 0.191489 | 0 | 0 | 0.032051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0.191489 | 0.021277 | 0 | 0.276596 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e47c382c952aba5f4faa8eda3515ced105c54c2c | 618 | py | Python | callofduty/object.py | j0lv3r4/CallofDuty.py | 099d67d64d9b95902ea96974704f9b4bc64fa52d | [
"MIT"
] | 98 | 2018-11-02T11:22:40.000Z | 2022-02-28T19:04:50.000Z | callofduty/object.py | j0lv3r4/CallofDuty.py | 099d67d64d9b95902ea96974704f9b4bc64fa52d | [
"MIT"
] | 73 | 2020-01-27T06:23:59.000Z | 2021-11-09T20:32:33.000Z | callofduty/object.py | j0lv3r4/CallofDuty.py | 099d67d64d9b95902ea96974704f9b4bc64fa52d | [
"MIT"
] | 37 | 2020-05-24T21:04:50.000Z | 2022-02-15T00:08:24.000Z | import logging
from typing import Optional
log: logging.Logger = logging.getLogger(__name__)
class Object:
"""
Represents a generic Call of Duty object.
Parameters
----------
client : callofduty.Client
Client which manages communication with the Call of Duty API.
"""
_type: Opti... | 19.935484 | 69 | 0.62945 | 71 | 618 | 5.042254 | 0.507042 | 0.075419 | 0.055866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262136 | 618 | 30 | 70 | 20.6 | 0.785088 | 0.254045 | 0 | 0 | 0 | 0 | 0.062937 | 0.062937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.214286 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e49fda163f55d610b93da6b7501f798ca595d7e3 | 69 | py | Python | python/testData/inspections/PyTypeCheckerInspection/TypingAnnotatedTypeMultiFile/annotated.py | alexey-anufriev/intellij-community | ffcd46f14e630acdefcc76e2bfc7c43d2449013a | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/TypingAnnotatedTypeMultiFile/annotated.py | alexey-anufriev/intellij-community | ffcd46f14e630acdefcc76e2bfc7c43d2449013a | [
"Apache-2.0"
] | 1 | 2020-07-30T19:04:47.000Z | 2020-07-30T19:04:47.000Z | python/testData/inspections/PyTypeCheckerInspection/TypingAnnotatedTypeMultiFile/annotated.py | bradleesand/intellij-community | 750ff9c10333c9c1278c00dbe8d88c877b1b9749 | [
"Apache-2.0"
] | 1 | 2020-10-15T05:56:42.000Z | 2020-10-15T05:56:42.000Z | from typing import Annotated
A = Annotated[int, "Some constraint"]
| 13.8 | 37 | 0.753623 | 9 | 69 | 5.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 69 | 4 | 38 | 17.25 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e4ad09735938ff76892b644ae6d212db98b1d785 | 629 | py | Python | pykka/_envelope.py | fjarri/pykka | d1b33b32ba60c6a3e83576ea746b780775e8ff3e | [
"Apache-2.0"
] | 796 | 2015-01-01T14:40:40.000Z | 2022-03-31T09:57:45.000Z | pykka/_envelope.py | fjarri/pykka | d1b33b32ba60c6a3e83576ea746b780775e8ff3e | [
"Apache-2.0"
] | 123 | 2015-02-06T11:45:55.000Z | 2022-03-25T04:11:21.000Z | pykka/_envelope.py | fjarri/pykka | d1b33b32ba60c6a3e83576ea746b780775e8ff3e | [
"Apache-2.0"
] | 103 | 2015-01-13T10:34:27.000Z | 2022-02-23T12:47:10.000Z | class Envelope:
"""
Envelope to add metadata to a message.
This is an internal type and is not part of the public API.
:param message: the message to send
:type message: any
:param reply_to: the future to reply to if there is a response
:type reply_to: :class:`pykka.Future`
"""
# ... | 28.590909 | 80 | 0.659777 | 93 | 629 | 4.247312 | 0.462366 | 0.159494 | 0.04557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.243243 | 629 | 21 | 81 | 29.952381 | 0.82563 | 0.488076 | 0 | 0 | 0 | 0 | 0.269231 | 0.213287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e4adc5a2b666cd2da460e75b3f871db7f1c57ade | 1,001 | py | Python | src/utils/namers.py | canbakiskan/l2-normalized-network | a3e571e87b7e9ae76c80a33d058b982c4fd6bcfa | [
"Apache-2.0"
] | null | null | null | src/utils/namers.py | canbakiskan/l2-normalized-network | a3e571e87b7e9ae76c80a33d058b982c4fd6bcfa | [
"Apache-2.0"
] | null | null | null | src/utils/namers.py | canbakiskan/l2-normalized-network | a3e571e87b7e9ae76c80a33d058b982c4fd6bcfa | [
"Apache-2.0"
] | null | null | null | from os.path import join
def classifier_params_string(args):
classifier_params_string = args.neural_net.architecture
classifier_params_string += f"_{args.optimizer.name}"
classifier_params_string += f"_{args.optimizer.lr_scheduler}"
classifier_params_string += f"_{args.optimizer.lr:.4f}"
class... | 24.414634 | 78 | 0.719281 | 128 | 1,001 | 5.242188 | 0.304688 | 0.262295 | 0.360656 | 0.205663 | 0.405365 | 0.405365 | 0.351714 | 0.137109 | 0.137109 | 0 | 0 | 0.004848 | 0.175824 | 1,001 | 40 | 79 | 25.025 | 0.808485 | 0 | 0 | 0.095238 | 0 | 0 | 0.178821 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e4bd298c34d592c8ce8e59184db2c50b39660c01 | 1,169 | py | Python | src/cmp/cil/utils/cil_scope.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 3 | 2020-01-14T04:47:32.000Z | 2020-09-10T17:57:20.000Z | src/cmp/cil/utils/cil_scope.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 5 | 2020-01-14T06:06:35.000Z | 2020-02-19T01:01:33.000Z | src/cmp/cil/utils/cil_scope.py | codestrange/cool-compiler-2020 | 30508965d75a1a1d1362d0b51bef8da3978fd0c2 | [
"MIT"
] | 3 | 2020-01-14T04:58:24.000Z | 2020-01-14T16:23:41.000Z | from typing import Dict, Optional
class Var:
def __init__(self, idx: str, local_name: str):
self.id = idx
self.local_name = local_name
def __str__(self):
return f"[var] {self.id}: {self.local_name}"
def __repr__(self):
return str(self)
class Scope:
def __init__(self... | 25.413043 | 70 | 0.562019 | 157 | 1,169 | 3.974522 | 0.261147 | 0.086538 | 0.035256 | 0.048077 | 0.076923 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310522 | 1,169 | 45 | 71 | 25.977778 | 0.774194 | 0 | 0 | 0.176471 | 0 | 0 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.029412 | 0.117647 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e4e3065459b5d5f0a9888247147ef60f1f589522 | 200 | py | Python | settings.py | azharhappy/Nancy-VA--MacOS | e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d | [
"MIT"
] | 4 | 2017-01-03T07:26:10.000Z | 2017-06-28T11:16:39.000Z | settings.py | azhar22k/Nancy-VA--MacOS | e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d | [
"MIT"
] | null | null | null | settings.py | azhar22k/Nancy-VA--MacOS | e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d | [
"MIT"
] | 2 | 2018-03-27T13:00:58.000Z | 2019-01-14T14:55:59.000Z | #wolframalpha settings
from wolframalpha import Client
app_id = "TGRUL2-794AT5556P"
client = Client(app_id)
#getting user directory
from subprocess import getoutput
homeDir = getoutput('echo $HOME')
| 22.222222 | 33 | 0.805 | 25 | 200 | 6.36 | 0.68 | 0.113208 | 0.138365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.12 | 200 | 8 | 34 | 25 | 0.857955 | 0.215 | 0 | 0 | 0 | 0 | 0.174194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e4e401e5261b898311caee7d88bef391d9d73a68 | 735 | py | Python | examples/example_project/context.py | szabolcsdombi/zengl | 2c9c26784285f2f049fb5d6fc9da0ad65d32d52f | [
"MIT"
] | 116 | 2021-10-31T17:24:18.000Z | 2022-02-01T05:47:18.000Z | examples/example_project/context.py | szabolcsdombi/zengl | 2c9c26784285f2f049fb5d6fc9da0ad65d32d52f | [
"MIT"
] | 9 | 2021-11-12T19:21:33.000Z | 2022-01-20T09:48:31.000Z | examples/example_project/context.py | szabolcsdombi/zengl | 2c9c26784285f2f049fb5d6fc9da0ad65d32d52f | [
"MIT"
] | 3 | 2021-11-12T18:55:05.000Z | 2022-01-19T13:58:26.000Z | import zengl
class Context:
context = None
main_uniform_buffer = None
main_uniform_buffer_data = bytearray(b'\x00' * 64)
@classmethod
def initialize(cls):
ctx = zengl.context()
cls.context = ctx
cls.main_uniform_buffer = ctx.buffer(size=64)
ctx.includes['main_unifo... | 27.222222 | 94 | 0.636735 | 87 | 735 | 5.149425 | 0.390805 | 0.232143 | 0.265625 | 0.178571 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023985 | 0.262585 | 735 | 26 | 95 | 28.269231 | 0.802583 | 0 | 0 | 0.142857 | 0 | 0 | 0.17551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90155303159d4ac879a8e0f325c067375bb23d1c | 661 | py | Python | 3sum-closest/Solution.8137743.py | rahul-ramadas/leetcode | 6c84c2333a613729361c5cdb63dc3fc80203b340 | [
"MIT"
] | null | null | null | 3sum-closest/Solution.8137743.py | rahul-ramadas/leetcode | 6c84c2333a613729361c5cdb63dc3fc80203b340 | [
"MIT"
] | 1 | 2016-09-11T22:26:17.000Z | 2016-09-13T01:49:48.000Z | 3sum-closest/Solution.8137743.py | rahul-ramadas/leetcode | 6c84c2333a613729361c5cdb63dc3fc80203b340 | [
"MIT"
] | null | null | null | class Solution:
def threeSumClosest(self, num, target):
num = sorted(num)
best_sum = num[0] + num[1] + num[2]
for i in range(len(num)):
j = i + 1
k = len(num) - 1
while j < k:
current_sum = num[i] + num[j] + num[k]
... | 26.44 | 71 | 0.406959 | 74 | 661 | 3.5 | 0.351351 | 0.23166 | 0.185328 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021341 | 0.503782 | 661 | 24 | 72 | 27.541667 | 0.768293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
902448fc1be82e2073edb9ed08cb25b5b2a8c894 | 6,068 | py | Python | tests/test_jwt_authenticator.py | mikenac/jwt_authenticator | fb7739d48b1453a77d82ca89acbeed7a15107abb | [
"MIT"
] | 1 | 2020-08-12T15:45:44.000Z | 2020-08-12T15:45:44.000Z | tests/test_jwt_authenticator.py | TeleTrackingTechnologies/jwt_authenticator | fb7739d48b1453a77d82ca89acbeed7a15107abb | [
"MIT"
] | null | null | null | tests/test_jwt_authenticator.py | TeleTrackingTechnologies/jwt_authenticator | fb7739d48b1453a77d82ca89acbeed7a15107abb | [
"MIT"
] | null | null | null | import os
import datetime
import unittest
import secrets
from jwt_authenticator.authentication_handler import AuthenticationHandler, AuthError
from flask import Flask
class JwtAuthenticatorTests(unittest.TestCase):
""" Test fixture for application unit tests"""
@classmethod
def setUpClass(cls):
"... | 37.226994 | 92 | 0.636124 | 644 | 6,068 | 5.809006 | 0.204969 | 0.037423 | 0.040631 | 0.044908 | 0.767709 | 0.767709 | 0.740711 | 0.687784 | 0.687784 | 0.624165 | 0 | 0.00808 | 0.245386 | 6,068 | 162 | 93 | 37.45679 | 0.80891 | 0.084212 | 0 | 0.607143 | 0 | 0 | 0.1319 | 0.009473 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.089286 | false | 0 | 0.053571 | 0 | 0.151786 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9049a2e6e6af9f21ba7ff84f694bd742aa1d22f3 | 4,710 | py | Python | infrastructure/routes/course_router.py | Ubademy-G3/courses.service | f69ffe3d4736f6f3769d2d3aa74db4b98ff39f45 | [
"MIT"
] | null | null | null | infrastructure/routes/course_router.py | Ubademy-G3/courses.service | f69ffe3d4736f6f3769d2d3aa74db4b98ff39f45 | [
"MIT"
] | null | null | null | infrastructure/routes/course_router.py | Ubademy-G3/courses.service | f69ffe3d4736f6f3769d2d3aa74db4b98ff39f45 | [
"MIT"
] | 1 | 2022-03-16T21:53:33.000Z | 2022-03-16T21:53:33.000Z | from fastapi import APIRouter, Header, Query, Depends
from infrastructure.db.database import Session, get_db
from application.controllers.course_controller import CourseController
from application.services.auth import auth_service
from domain.course_model import CourseSchema, CourseDB, CourseList, CoursePatch, CourseWi... | 39.915254 | 146 | 0.752442 | 627 | 4,710 | 5.374801 | 0.130782 | 0.048961 | 0.047478 | 0.05638 | 0.736202 | 0.720772 | 0.714837 | 0.681899 | 0.667062 | 0.655193 | 0 | 0.007262 | 0.12293 | 4,710 | 117 | 147 | 40.25641 | 0.808521 | 0 | 0 | 0.482353 | 0 | 0 | 0.066454 | 0.004459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.082353 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f51ed5cd411490de576279adc4b08a7a705a462 | 678 | py | Python | tests/conftest.py | jugmac00/sphinx-argparse-cli | 2e0b6bbffa78bdf4d4bb7bfc4b250e66a182f1eb | [
"MIT"
] | 10 | 2021-02-05T04:04:42.000Z | 2021-05-20T18:41:30.000Z | tests/conftest.py | jugmac00/sphinx-argparse-cli | 2e0b6bbffa78bdf4d4bb7bfc4b250e66a182f1eb | [
"MIT"
] | 10 | 2021-02-05T12:06:27.000Z | 2021-08-07T09:29:53.000Z | tests/conftest.py | jugmac00/sphinx-argparse-cli | 2e0b6bbffa78bdf4d4bb7bfc4b250e66a182f1eb | [
"MIT"
] | 4 | 2021-10-12T23:31:53.000Z | 2022-02-16T11:56:44.000Z | from __future__ import annotations
import pytest
from _pytest.config import Config
from docutils import __version__ as docutils_version
from sphinx import __display_version__ as sphinx_version
from sphinx.testing.path import path
pytest_plugins = "sphinx.testing.fixtures"
collect_ignore = ["roots"]
def pytest_repor... | 28.25 | 77 | 0.774336 | 86 | 678 | 5.767442 | 0.5 | 0.03629 | 0.068548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005034 | 0.120944 | 678 | 23 | 78 | 29.478261 | 0.827181 | 0.014749 | 0 | 0 | 0 | 0 | 0.186186 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.133333 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
5f6214c248bfd8b7317d4b0fdcaff29eef32df57 | 932 | py | Python | ree/1.py | userElaina/SpiritCTF-2021 | c5e4ae05362da1f25718d2f80050709f3f99ef17 | [
"MIT"
] | null | null | null | ree/1.py | userElaina/SpiritCTF-2021 | c5e4ae05362da1f25718d2f80050709f3f99ef17 | [
"MIT"
] | null | null | null | ree/1.py | userElaina/SpiritCTF-2021 | c5e4ae05362da1f25718d2f80050709f3f99ef17 | [
"MIT"
] | null | null | null | flag=[0]*35
box = [
253, 194, 15, 13, 82,
129, 244, 80, 193, 233,
36, 54, 199, 69, 219,
74, 136, 6, 190, 144,
68, 57, 156, 153, 240,
65, 95, 135, 61, 179,
159, 183, 182, 130, 107]
target = [
174, 178, 102, 127, 22,
245, 143, 226, 245, 131,
65, 105, 135, 48, 94,
21, 185, 188, 225, 211,
116, 11,... | 28.242424 | 88 | 0.483906 | 183 | 932 | 2.464481 | 0.448087 | 0.21286 | 0.062084 | 0.062084 | 0.283814 | 0.206208 | 0.133038 | 0.070953 | 0 | 0 | 0 | 0.324638 | 0.259657 | 932 | 33 | 89 | 28.242424 | 0.328986 | 0.26073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f621fa5eb1aa0d7d3ecf5f99aa83d9feb5f290f | 20 | py | Python | swaglyrics/__init__.py | chriswang030/SwagLyrics-For-Spotify | a60fafe1ebe7a7d228495eba4d71f3a3b155f947 | [
"MIT"
] | 1 | 2019-02-14T05:24:18.000Z | 2019-02-14T05:24:18.000Z | swaglyrics/__init__.py | addddd123/SwagLyrics-For-Spotify | 8c0a9a4989c976adb79ce34c795d4070ea2abac3 | [
"MIT"
] | null | null | null | swaglyrics/__init__.py | addddd123/SwagLyrics-For-Spotify | 8c0a9a4989c976adb79ce34c795d4070ea2abac3 | [
"MIT"
] | null | null | null | name = 'swaglyrics'
| 10 | 19 | 0.7 | 2 | 20 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f71a29572c93d10fa342384e1ffecb1b5df5113 | 387 | py | Python | tests/test_plugin.py | clld/clldmpg | be9834314b1fc93116bd88baf48b54a9ca37e051 | [
"Apache-2.0"
] | null | null | null | tests/test_plugin.py | clld/clldmpg | be9834314b1fc93116bd88baf48b54a9ca37e051 | [
"Apache-2.0"
] | 14 | 2015-07-01T07:57:21.000Z | 2021-09-20T13:41:35.000Z | tests/test_plugin.py | clld/clldmpg | be9834314b1fc93116bd88baf48b54a9ca37e051 | [
"Apache-2.0"
] | 3 | 2015-12-06T22:03:44.000Z | 2018-10-12T18:10:04.000Z | from pyramid.testing import Configurator
def test_MpgOlacConfig(mocker):
from clldmpg import MpgOlacConfig
cfg = MpgOlacConfig()
assert cfg.admin(None).role == 'Admin'
assert 'eva' in cfg.description(mocker.MagicMock())['institution'].url
def test_includeme():
from clldmpg import includeme
... | 24.1875 | 74 | 0.726098 | 43 | 387 | 6.488372 | 0.581395 | 0.050179 | 0.121864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152455 | 387 | 15 | 75 | 25.8 | 0.85061 | 0 | 0 | 0 | 0 | 0 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5f72ef89eef45bcbec5d32eb189d651cc5f65444 | 261 | py | Python | src/python/src/rmq/utils/decorators/call_once.py | halimov-oa/scrapy-boilerplate | fe3c552fed26bedb0618c245ab923aa34a89ac9d | [
"MIT"
] | 34 | 2019-12-13T10:31:39.000Z | 2022-03-09T15:59:07.000Z | src/python/src/rmq/utils/decorators/call_once.py | halimov-oa/scrapy-boilerplate | fe3c552fed26bedb0618c245ab923aa34a89ac9d | [
"MIT"
] | 49 | 2020-02-25T19:41:09.000Z | 2022-02-27T12:05:25.000Z | src/python/src/rmq/utils/decorators/call_once.py | halimov-oa/scrapy-boilerplate | fe3c552fed26bedb0618c245ab923aa34a89ac9d | [
"MIT"
] | 23 | 2019-12-23T15:19:42.000Z | 2022-03-09T16:00:15.000Z | from functools import wraps
def call_once(f):
@wraps(f)
def wrapper(*args, **kwargs):
if not wrapper.__is_called:
wrapper.__is_called = True
return f(*args, **kwargs)
wrapper.__is_called = False
return wrapper
| 20.076923 | 38 | 0.616858 | 33 | 261 | 4.575758 | 0.545455 | 0.178808 | 0.298013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287356 | 261 | 12 | 39 | 21.75 | 0.811828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5fad0bf4bee24963cf3785988ffa92a06824d4c1 | 114 | py | Python | conjureup/controllers/juju/showsteps/gui.py | iMichka/conjure-up | 8e4599e6f58b52163384150d8d71e7802462d126 | [
"MIT"
] | 1 | 2019-06-26T23:39:13.000Z | 2019-06-26T23:39:13.000Z | conjureup/controllers/juju/showsteps/gui.py | iMichka/conjure-up | 8e4599e6f58b52163384150d8d71e7802462d126 | [
"MIT"
] | null | null | null | conjureup/controllers/juju/showsteps/gui.py | iMichka/conjure-up | 8e4599e6f58b52163384150d8d71e7802462d126 | [
"MIT"
] | 1 | 2020-10-05T14:42:31.000Z | 2020-10-05T14:42:31.000Z | from conjureup.controllers.base.showsteps.gui import ShowStepsController
_controller_class = ShowStepsController
| 28.5 | 72 | 0.885965 | 11 | 114 | 9 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 114 | 3 | 73 | 38 | 0.933962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5fc13db6cf72145114c32eaa6b0349bbab2345cc | 179 | py | Python | tests/test_example.py | sfxbadekunle/example-github-actions | 7e4543f1de4e37fe06f353bab814cb144b6e9d2d | [
"BSD-2-Clause"
] | null | null | null | tests/test_example.py | sfxbadekunle/example-github-actions | 7e4543f1de4e37fe06f353bab814cb144b6e9d2d | [
"BSD-2-Clause"
] | null | null | null | tests/test_example.py | sfxbadekunle/example-github-actions | 7e4543f1de4e37fe06f353bab814cb144b6e9d2d | [
"BSD-2-Clause"
] | null | null | null | import unittest
import pytest
class ExampleTest(unittest.TestCase):
def test_example(self):
self.assertEqual(2 * 2, 4)
if __name__ == "__main__":
unittest.main() | 19.888889 | 37 | 0.698324 | 22 | 179 | 5.272727 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.189944 | 179 | 9 | 38 | 19.888889 | 0.77931 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5fc87a41019d961e919704b561e9a03da5e5413a | 2,690 | py | Python | Level.py | KRHS-GameProgramming-2016/AstroDigger | 426c3b4750d86fae9e3f61b744518ffb5370f330 | [
"MIT"
] | 1 | 2017-03-15T16:56:29.000Z | 2017-03-15T16:56:29.000Z | Level.py | KRHS-GameProgramming-2016/AstroDigger | 426c3b4750d86fae9e3f61b744518ffb5370f330 | [
"MIT"
] | 3 | 2017-02-10T15:54:31.000Z | 2017-03-13T16:09:06.000Z | Level.py | KRHS-GameProgramming-2016/AstroDigger | 426c3b4750d86fae9e3f61b744518ffb5370f330 | [
"MIT"
] | null | null | null | import pygame, sys, math
from Dirt import *
from Enemy import *
from ShootingEnemy import *
from Shade import *
class Level():
def __init__(self, levelFile, levelNumber=1, tileSize=64):
self.dirts = []
self.players = []
self.enemies = []
self.playerSpawns = []
self.tileSize ... | 32.409639 | 75 | 0.414498 | 234 | 2,690 | 4.713675 | 0.286325 | 0.228468 | 0.116047 | 0.174071 | 0.285585 | 0.245694 | 0.245694 | 0.245694 | 0.245694 | 0.245694 | 0 | 0.023375 | 0.491078 | 2,690 | 82 | 76 | 32.804878 | 0.782323 | 0.027509 | 0 | 0.307692 | 0 | 0 | 0.021839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.015385 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
396ad12574d55687860011dc68a36b13e04bb74d | 582 | py | Python | qcloudsdkcdn/UpdateCdnProjectRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkcdn/UpdateCdnProjectRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkcdn/UpdateCdnProjectRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class UpdateCdnProjectRequest(Request):
def __init__(self):
super(UpdateCdnProjectRequest, self).__init__(
'cdn', 'qcloudcliV1', 'UpdateCdnProject', 'cdn.api.qcloud.com')
def get_hostId(self):
return self.get_param... | 26.454545 | 75 | 0.666667 | 65 | 582 | 5.723077 | 0.415385 | 0.080645 | 0.075269 | 0.091398 | 0.139785 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0.004292 | 0.199313 | 582 | 21 | 76 | 27.714286 | 0.793991 | 0.036082 | 0 | 0 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
396afec22caf9e8954136c5289b69cdb8edd67ac | 538 | py | Python | exhibitors/admin.py | betoesquivel/fil2014 | 4c2e9188769096391bb206b76ed1ab8bd2ff66a1 | [
"MIT"
] | 1 | 2016-05-18T18:46:48.000Z | 2016-05-18T18:46:48.000Z | exhibitors/admin.py | betoesquivel/fil2014 | 4c2e9188769096391bb206b76ed1ab8bd2ff66a1 | [
"MIT"
] | null | null | null | exhibitors/admin.py | betoesquivel/fil2014 | 4c2e9188769096391bb206b76ed1ab8bd2ff66a1 | [
"MIT"
] | null | null | null | from django.contrib import admin
from exhibitors.models import Exhibitor, Workshop, WorkshopEvents, Stand, Editorial, Book, Author, Category, Award, Volunteer, BookRegistered
# Register your models here.
admin.site.register(Exhibitor)
admin.site.register(Workshop)
admin.site.register(WorkshopEvents)
admin.site.registe... | 33.625 | 141 | 0.827138 | 68 | 538 | 6.544118 | 0.323529 | 0.222472 | 0.420225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065056 | 538 | 15 | 142 | 35.866667 | 0.884692 | 0.048327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
397498d105b42120ccc77b29b0703d54e27daae8 | 1,432 | py | Python | aiotdlib/api/types/group_call_participant_video_info.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/types/group_call_participant_video_info.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/types/group_call_participant_video_info.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 38.702703 | 114 | 0.569832 | 126 | 1,432 | 6.333333 | 0.52381 | 0.06015 | 0.0401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26257 | 1,432 | 36 | 115 | 39.777778 | 0.755682 | 0.585196 | 0 | 0 | 1 | 0 | 0.064516 | 0.055028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3977e24e667c82c38d13db7779c28c370c51a3c2 | 536 | py | Python | ex07/pessoa.py | barbaracalderon/dsoo-1 | 4f4955afdd05874ab9d6d8c6136b9dd34852a80d | [
"MIT"
] | null | null | null | ex07/pessoa.py | barbaracalderon/dsoo-1 | 4f4955afdd05874ab9d6d8c6136b9dd34852a80d | [
"MIT"
] | null | null | null | ex07/pessoa.py | barbaracalderon/dsoo-1 | 4f4955afdd05874ab9d6d8c6136b9dd34852a80d | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from abstractPessoa import AbstractPessoa
class Pessoa(AbstractPessoa, ABC):
def __init__(self, nome: str, codigo: int):
super().__init__()
self.__nome = nome
self.__codigo = codigo
@property
def nome(self) -> str:
return self.__nome
@nome.sette... | 22.333333 | 45 | 0.645522 | 64 | 536 | 5.09375 | 0.28125 | 0.122699 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251866 | 536 | 24 | 46 | 22.333333 | 0.812968 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
398ef53a63e97f1996fb81d5d84823582ec83c72 | 362 | py | Python | groupmne/__init__.py | hichamjanati/group-meeg | deea93b5d045a320f8aef30505cd363e287151ac | [
"MIT"
] | 5 | 2019-06-19T19:00:41.000Z | 2021-04-10T13:09:25.000Z | groupmne/__init__.py | hichamjanati/group-meeg | deea93b5d045a320f8aef30505cd363e287151ac | [
"MIT"
] | 24 | 2019-06-17T20:47:55.000Z | 2021-03-09T11:54:25.000Z | groupmne/__init__.py | hichamjanati/group-meeg | deea93b5d045a320f8aef30505cd363e287151ac | [
"MIT"
] | 2 | 2019-06-17T20:17:36.000Z | 2019-07-09T10:02:12.000Z | """Multi-subject source localization with MNE."""
from . import group_model, inverse, utils
from .group_model import compute_fwd, prepare_fwds
from .inverse import compute_group_inverse
from ._version import __version__
__all__ = ["group_model", "inverse",
"compute_group_inverse", "compute_fwd",
... | 30.166667 | 50 | 0.734807 | 43 | 362 | 5.627907 | 0.418605 | 0.123967 | 0.140496 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160221 | 362 | 11 | 51 | 32.909091 | 0.796053 | 0.118785 | 0 | 0 | 0 | 0 | 0.249201 | 0.067093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
39b129c4dab8b3eeffb5c49c8ca2b96a9b44a893 | 62 | py | Python | retinaface/__init__.py | hphuongdhsp/retinaface | c184141d91f6719c5b135ccd0ae99384ab84ca69 | [
"MIT"
] | 7 | 2020-11-27T15:32:29.000Z | 2021-06-03T19:05:32.000Z | retinaface/__init__.py | hphuongdhsp/retinaface | c184141d91f6719c5b135ccd0ae99384ab84ca69 | [
"MIT"
] | null | null | null | retinaface/__init__.py | hphuongdhsp/retinaface | c184141d91f6719c5b135ccd0ae99384ab84ca69 | [
"MIT"
] | 2 | 2020-12-29T11:20:42.000Z | 2021-02-26T02:41:40.000Z | __version__ = "0.0.1"
from .detector import RetinafaceDetector | 31 | 40 | 0.806452 | 8 | 62 | 5.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.096774 | 62 | 2 | 40 | 31 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
39d87f67ecd0f2f0ef3a08c6c0e3cbdbbfbfeb96 | 4,314 | py | Python | sample_package/vector.py | JanMatas/intro-to-python | 75da23f0e9018fec6bed44199c53e0a3ef2c7059 | [
"MIT"
] | 1 | 2020-09-06T18:37:00.000Z | 2020-09-06T18:37:00.000Z | sample_package/vector.py | JanMatas/intro-to-python | 75da23f0e9018fec6bed44199c53e0a3ef2c7059 | [
"MIT"
] | null | null | null | sample_package/vector.py | JanMatas/intro-to-python | 75da23f0e9018fec6bed44199c53e0a3ef2c7059 | [
"MIT"
] | 1 | 2021-12-04T20:11:35.000Z | 2021-12-04T20:11:35.000Z | """This module defines a Vector class."""
from .matrix import Matrix
class Vector:
"""A standard one-dimensional vector from linear algebra.
The class is designed for sub-classing in such a way that
the user can adapt the typing class attribute to change,
for example, how the entries are stored (e.g... | 30.380282 | 87 | 0.583217 | 545 | 4,314 | 4.372477 | 0.273395 | 0.056651 | 0.017625 | 0.025178 | 0.336551 | 0.305497 | 0.24423 | 0.216953 | 0.216953 | 0.216953 | 0 | 0.005135 | 0.322902 | 4,314 | 141 | 88 | 30.595745 | 0.810681 | 0.229485 | 0 | 0.180723 | 0 | 0 | 0.095253 | 0.007595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253012 | false | 0 | 0.012048 | 0.13253 | 0.650602 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
39deb813cd5685f2f43a3c9972aee3382aef172f | 562 | py | Python | conf/matplotlib_conf.py | SuperH-0630/HGSSystem | 4bd0b18cec810df4915fea9473adbea6faea4fe2 | [
"MIT"
] | null | null | null | conf/matplotlib_conf.py | SuperH-0630/HGSSystem | 4bd0b18cec810df4915fea9473adbea6faea4fe2 | [
"MIT"
] | null | null | null | conf/matplotlib_conf.py | SuperH-0630/HGSSystem | 4bd0b18cec810df4915fea9473adbea6faea4fe2 | [
"MIT"
] | null | null | null | class ConfigMatplotlibRelease:
""" Matplotlib 相关配置 """
matplotlib_font = "SimHei"
matplotlib_font_dict = dict(family=matplotlib_font)
ConfigMatplotlib = ConfigMatplotlibRelease
try:
import matplotlib.font_manager as fm
except ImportError:
pass
else:
if ConfigMatplotlib.matplotlib_font not in ... | 31.222222 | 88 | 0.743772 | 64 | 562 | 6.390625 | 0.59375 | 0.239609 | 0.220049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161922 | 562 | 17 | 89 | 33.058824 | 0.868365 | 0.058719 | 0 | 0 | 0 | 0 | 0.153551 | 0.065259 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f2f88b852a5d4bf1b561e8f3d45731f5dac6598e | 135 | py | Python | git_tester.py | uvchik/TollerName | 42d1e912d940ad854cf90bb9b6a57d20f917aeac | [
"MIT"
] | null | null | null | git_tester.py | uvchik/TollerName | 42d1e912d940ad854cf90bb9b6a57d20f917aeac | [
"MIT"
] | null | null | null | git_tester.py | uvchik/TollerName | 42d1e912d940ad854cf90bb9b6a57d20f917aeac | [
"MIT"
] | null | null | null | #! /usr/bin/python3
vorname = "Joe"
nachname = "Biden"
print("{0} {1} is elected!".format(vorname, nachname))
print("Hallo World!")
| 15 | 54 | 0.651852 | 18 | 135 | 4.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.133333 | 135 | 8 | 55 | 16.875 | 0.726496 | 0.133333 | 0 | 0 | 0 | 0 | 0.336207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f2f9578c500a44373f680d659ef7c0ef1bf17191 | 255 | py | Python | tech/process/lingo_processor.py | fferegrino/techlingo.fyi | 0ed41160b4a8c854f9f0c9104ce619e73c2c7e26 | [
"MIT"
] | 4 | 2021-06-20T00:53:19.000Z | 2022-02-04T19:26:12.000Z | tech/process/lingo_processor.py | fferegrino/techlingo.fyi | 0ed41160b4a8c854f9f0c9104ce619e73c2c7e26 | [
"MIT"
] | 16 | 2021-06-15T06:10:15.000Z | 2021-07-20T19:02:11.000Z | tech/process/lingo_processor.py | fferegrino/techlingo.fyi | 0ed41160b4a8c854f9f0c9104ce619e73c2c7e26 | [
"MIT"
] | 1 | 2021-06-20T03:03:42.000Z | 2021-06-20T03:03:42.000Z | from tech.entities.processed_lingo import ProcessedLingo
class LingoProcessor:
def process(self, processed: ProcessedLingo):
pass
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
pass
| 19.615385 | 56 | 0.694118 | 30 | 255 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239216 | 255 | 12 | 57 | 21.25 | 0.850515 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.25 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
f2fad1d2968b82dd0169033c6b783649405426fa | 226 | py | Python | connections/api/serializers.py | frwickst/apartment-application-service | 40387327a0f82ba01bfcb6ab8532ea4aec40d37a | [
"MIT"
] | 1 | 2021-03-15T11:29:12.000Z | 2021-03-15T11:29:12.000Z | connections/api/serializers.py | frwickst/apartment-application-service | 40387327a0f82ba01bfcb6ab8532ea4aec40d37a | [
"MIT"
] | 130 | 2020-09-07T08:30:29.000Z | 2022-03-29T11:49:27.000Z | connections/api/serializers.py | frwickst/apartment-application-service | 40387327a0f82ba01bfcb6ab8532ea4aec40d37a | [
"MIT"
] | 4 | 2020-09-07T05:34:13.000Z | 2021-11-07T12:51:21.000Z | from rest_framework import serializers
from connections.models import MappedApartment
class MappedApartmentSerializer(serializers.ModelSerializer):
class Meta:
model = MappedApartment
fields = "__all__"
| 22.6 | 61 | 0.774336 | 20 | 226 | 8.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181416 | 226 | 9 | 62 | 25.111111 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0.030973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8431ce7ee5d7ce84ff9dcdd48dc9bbc4bf329581 | 280 | py | Python | app/main/__init__.py | atwh0405/miniblog | 820fc2ec1b38210783a6b340827f6c0213277f3e | [
"MIT"
] | null | null | null | app/main/__init__.py | atwh0405/miniblog | 820fc2ec1b38210783a6b340827f6c0213277f3e | [
"MIT"
] | null | null | null | app/main/__init__.py | atwh0405/miniblog | 820fc2ec1b38210783a6b340827f6c0213277f3e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Blueprint
main = Blueprint('main', __name__)
from . import errors, views
from ..models import Permissions
@main.app_context_processor
def inject_permissions():
return dict(Permissions=Permissions) | 21.538462 | 40 | 0.714286 | 34 | 280 | 5.676471 | 0.705882 | 0.134715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.171429 | 280 | 13 | 40 | 21.538462 | 0.827586 | 0.15 | 0 | 0 | 0 | 0 | 0.017778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
84408c32802b1ef61c4d79ba69a6d29d57f38cb2 | 18,152 | py | Python | Games/Ludo/cli/ludo/painter.py | avyayjain/Python_Scripts | d89926a84d5df3cbd57244df27f215891aa60d20 | [
"Unlicense"
] | 20 | 2020-08-17T13:49:03.000Z | 2022-01-26T18:04:14.000Z | Games/Ludo/cli/ludo/painter.py | avyayjain/Python_Scripts | d89926a84d5df3cbd57244df27f215891aa60d20 | [
"Unlicense"
] | 20 | 2020-09-30T15:49:38.000Z | 2021-10-21T05:06:00.000Z | Games/Ludo/cli/ludo/painter.py | avyayjain/Python_Scripts | d89926a84d5df3cbd57244df27f215891aa60d20 | [
"Unlicense"
] | 67 | 2020-08-17T18:23:11.000Z | 2022-02-21T08:29:16.000Z | from copy import deepcopy
from os import linesep
# board template (matrix)
BOARD_TMPL = [['#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'... | 176.23301 | 14,180 | 0.113266 | 570 | 18,152 | 3.491228 | 0.242105 | 0.054271 | 0.039196 | 0.051256 | 0.20402 | 0.20402 | 0.20402 | 0.156281 | 0.106533 | 0.106533 | 0 | 0.030376 | 0.316274 | 18,152 | 102 | 14,181 | 177.960784 | 0.129965 | 0.039555 | 0 | 0.057971 | 0 | 0 | 0.174043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0 | 0.028986 | 0 | 0.144928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ffc39625910a0727e837291746c200a9c109501d | 581 | py | Python | neo_test.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | neo_test.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | neo_test.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | import numpy as np
from quantities import Hz
from neo import AnalogSignal as AnalogSignal
n = np.array([[0.1, 0.1, 0.1, 0.1],
[-2.0, -2.0, -2.0, -4.0],
[0.1, 0.1, 0.1, 0.1],
[-0.1, -0.1, -0.1, -0.1],
[-0.1, -0.1, -0.1, -0.1],
[-3.0, -3.0, -3.0, -3.0... | 23.24 | 53 | 0.462995 | 116 | 581 | 2.310345 | 0.215517 | 0.179104 | 0.235075 | 0.313433 | 0.212687 | 0.212687 | 0.186567 | 0.186567 | 0.156716 | 0.156716 | 0 | 0.178744 | 0.287435 | 581 | 24 | 54 | 24.208333 | 0.468599 | 0 | 0 | 0.2 | 0 | 0 | 0.001721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ffce648a04f8681b45206553c41129956e1b3998 | 163 | py | Python | src/tests/daily_test.py | ehoaix/qpet | b4161e5ba85d5d80ff44629d74665022a9f01659 | [
"MIT"
] | 7 | 2021-07-23T06:15:35.000Z | 2022-03-31T08:19:50.000Z | src/tests/daily_test.py | mohiko/qpet | efce3bc8a7e19eb2da591f5e756b80d94658d0ea | [
"MIT"
] | 1 | 2021-11-05T07:43:50.000Z | 2021-11-05T07:43:50.000Z | src/tests/daily_test.py | mohiko/qpet | efce3bc8a7e19eb2da591f5e756b80d94658d0ea | [
"MIT"
] | 4 | 2021-11-04T10:50:51.000Z | 2022-01-03T01:59:48.000Z | from qpet import qpet
import unittest
class DailyTest(unittest.TestCase):
def test_basic(self):
pass
if __name__ == '__main__':
unittest.main()
| 14.818182 | 35 | 0.693252 | 20 | 163 | 5.2 | 0.75 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214724 | 163 | 10 | 36 | 16.3 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.04908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ffe82ae544e4c44c41abff500a6c72c4d20ec043 | 106 | py | Python | answers/Akshay Shukla/Day5/ques1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/Akshay Shukla/Day5/ques1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/Akshay Shukla/Day5/ques1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | x,y,z=0,1,0
print(x,',',y,end="")
for i in range(1,49):
z=x+y
print(',',z,end="")
x=y
y=z
| 13.25 | 23 | 0.433962 | 26 | 106 | 1.769231 | 0.461538 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.245283 | 106 | 7 | 24 | 15.142857 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fff079ce77bf01ae417f39a9257cfba78600793b | 69 | py | Python | Polar_Coordinates.py | jairavelasco/hackerrank-python | 4bae82962d7086047571df027e93b546e0952d2c | [
"MIT"
] | null | null | null | Polar_Coordinates.py | jairavelasco/hackerrank-python | 4bae82962d7086047571df027e93b546e0952d2c | [
"MIT"
] | null | null | null | Polar_Coordinates.py | jairavelasco/hackerrank-python | 4bae82962d7086047571df027e93b546e0952d2c | [
"MIT"
] | null | null | null | import cmath
c = complex(input())
print(abs(c))
print(cmath.phase(c)) | 17.25 | 21 | 0.710145 | 12 | 69 | 4.083333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 69 | 4 | 21 | 17.25 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fffa1cf9aba30ea088883d1a9833d7ac78fe48af | 4,848 | py | Python | core/image_loaders.py | HakaiInstitute/deglint-mask-rgb | 1786a4cb255a4a0be3e6e5cfd7c77b5e4489994d | [
"MIT"
] | 3 | 2021-05-19T01:46:34.000Z | 2021-06-22T15:35:04.000Z | core/image_loaders.py | HakaiInstitute/deglint-mask-rgb | 1786a4cb255a4a0be3e6e5cfd7c77b5e4489994d | [
"MIT"
] | null | null | null | core/image_loaders.py | HakaiInstitute/deglint-mask-rgb | 1786a4cb255a4a0be3e6e5cfd7c77b5e4489994d | [
"MIT"
] | 1 | 2021-05-20T00:03:02.000Z | 2021-05-20T00:03:02.000Z | """
Created by: Taylor Denouden
Organization: Hakai Institute
Date: 2020-09-18
Description:
"""
import os
import re
from abc import ABC, ABCMeta, abstractmethod
from functools import singledispatchmethod
from pathlib import Path
from typing import Iterable, List, Union
import numpy as np
from PIL import Image
from .... | 31.894737 | 111 | 0.683581 | 660 | 4,848 | 4.792424 | 0.224242 | 0.040468 | 0.030351 | 0.031616 | 0.539994 | 0.522289 | 0.439772 | 0.439772 | 0.439772 | 0.439772 | 0 | 0.011503 | 0.193069 | 4,848 | 151 | 112 | 32.10596 | 0.797035 | 0.031147 | 0 | 0.52381 | 0 | 0 | 0.05225 | 0.046279 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.095238 | 0.142857 | 0.590476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fffdb61978c08d23ee1608acb0146ea1214fff62 | 11,710 | py | Python | pySpatialTools/Retrieve/aux_retriever_parsing.py | tgquintela/pySpatialTools | e028008f9750521bf7d311f7cd3323c88d621ea4 | [
"MIT"
] | 8 | 2015-07-21T05:15:16.000Z | 2018-06-12T18:22:52.000Z | pySpatialTools/Retrieve/aux_retriever_parsing.py | tgquintela/pySpatialTools | e028008f9750521bf7d311f7cd3323c88d621ea4 | [
"MIT"
] | 6 | 2016-01-11T22:25:28.000Z | 2016-01-28T16:17:46.000Z | pySpatialTools/Retrieve/aux_retriever_parsing.py | tgquintela/pySpatialTools | e028008f9750521bf7d311f7cd3323c88d621ea4 | [
"MIT"
] | null | null | null |
"""
Auxiliar retrievers parsing
---------------------------
Tools and utilities to parse heterogenous ways to give retriever information
in order to obtain retriever objects.
"""
import numpy as np
from retrievers import BaseRetriever
from collectionretrievers import RetrieverManager
from pySpatialTools.Discretizat... | 35.592705 | 79 | 0.604526 | 1,234 | 11,710 | 5.538088 | 0.119935 | 0.089406 | 0.03029 | 0.024583 | 0.777583 | 0.735294 | 0.718028 | 0.659789 | 0.641059 | 0.635792 | 0 | 0.002373 | 0.280359 | 11,710 | 328 | 80 | 35.70122 | 0.808591 | 0.431682 | 0 | 0.504505 | 0 | 0 | 0.001498 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 1 | 0.117117 | false | 0.018018 | 0.036036 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
080c8e3ffb6ac24f753fe57c340383052f7ee631 | 908 | py | Python | tree_hugger/core/queries.py | sarthakforwet/tree-hugger | f987cec0b8ecd639679885d791c3fce51db282b9 | [
"MIT"
] | 95 | 2020-05-07T15:16:59.000Z | 2022-03-10T17:12:56.000Z | tree_hugger/core/queries.py | rajpratyush/tree-hugger | f987cec0b8ecd639679885d791c3fce51db282b9 | [
"MIT"
] | 33 | 2020-06-11T00:11:37.000Z | 2021-11-20T09:02:00.000Z | tree_hugger/core/queries.py | rajpratyush/tree-hugger | f987cec0b8ecd639679885d791c3fce51db282b9 | [
"MIT"
] | 10 | 2020-08-20T03:45:10.000Z | 2021-03-14T01:38:15.000Z | import os
import logging
from pathlib import Path
from collections import UserDict
import yaml
import tree_hugger.setup_logging
from tree_hugger.exceptions import QueryFileNotFoundError
class Query(UserDict):
data = {}
def __init__(self, query_file_path: str, query_file_content: str):
self.query_f... | 27.515152 | 85 | 0.696035 | 122 | 908 | 4.918033 | 0.352459 | 0.18 | 0.216667 | 0.085 | 0.216667 | 0.096667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225771 | 908 | 32 | 86 | 28.375 | 0.853485 | 0 | 0 | 0 | 0 | 0 | 0.035242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.318182 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0838774fd2ec7fb312c8b7ec7aab501b6ceab3c0 | 223 | py | Python | 0290.word_pattern/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 5 | 2020-05-23T02:18:26.000Z | 2021-07-05T05:36:01.000Z | 0290.word_pattern/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 1 | 2020-06-10T07:17:24.000Z | 2020-07-20T02:21:24.000Z | 0290.word_pattern/solution.py | WZMJ/Algorithms | 07f648541d38e24df38bda469665c12df6a50637 | [
"MIT"
] | 1 | 2019-04-23T13:01:50.000Z | 2019-04-23T13:01:50.000Z | class Solution:
def word_pattern(self, pattern: str, str: str) -> bool:
words = str.split(" ")
return len(pattern) == len(words) and len(set(pattern)) == len(set(words)) == len(set(zip(pattern, words)))
| 44.6 | 115 | 0.61435 | 31 | 223 | 4.387097 | 0.483871 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201794 | 223 | 4 | 116 | 55.75 | 0.764045 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
083d32a0e26219db84725fa3c50a03abc3c4f22d | 196 | py | Python | backend/run.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | backend/run.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | backend/run.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | # add system path
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
from backend_app.api import app
if __name__ == "__main__":
app.run(debug=True, port=5001)
| 17.818182 | 59 | 0.739796 | 32 | 196 | 4.125 | 0.65625 | 0.090909 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.132653 | 196 | 10 | 60 | 19.6 | 0.752941 | 0.076531 | 0 | 0 | 0 | 0 | 0.044693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
08421ad6ff798414faaa10d03c7896d12c20ae79 | 1,242 | py | Python | NCPWD/apps/user_profile/migrations/0006_auto_20190816_0839.py | fossabot/NCPWD | e46776ecf0cb4f263ff4e7883cb2402a3fc58717 | [
"Apache-2.0"
] | 1 | 2019-08-22T23:36:07.000Z | 2019-08-22T23:36:07.000Z | NCPWD/apps/user_profile/migrations/0006_auto_20190816_0839.py | C3real-kill3r/H-digest | afce0a6e8b0fa4d2684550fe9f484ab9c6e76560 | [
"Apache-2.0"
] | 10 | 2019-12-12T13:59:43.000Z | 2021-09-22T18:21:44.000Z | NCPWD/apps/user_profile/migrations/0006_auto_20190816_0839.py | C3real-kill3r/H-digest | afce0a6e8b0fa4d2684550fe9f484ab9c6e76560 | [
"Apache-2.0"
] | 2 | 2019-12-12T13:56:33.000Z | 2019-12-26T11:47:05.000Z | # Generated by Django 2.2.4 on 2019-08-16 08:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profile', '0005_auto_20190810_0811'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='caus... | 26.425532 | 153 | 0.516103 | 109 | 1,242 | 5.743119 | 0.495413 | 0.115016 | 0.204473 | 0.255591 | 0.458466 | 0.458466 | 0 | 0 | 0 | 0 | 0 | 0.04064 | 0.346216 | 1,242 | 46 | 154 | 27 | 0.730296 | 0.036232 | 0 | 0.575 | 1 | 0 | 0.148954 | 0.019247 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0851630a1f917bf43d8c79b5c904d735ea9f9299 | 2,374 | py | Python | lpbm/modules/articles.py | fmichea/lpbm | 172772d562e2f1aa4aba72599150f95f89bdf6ce | [
"BSD-3-Clause"
] | 1 | 2015-11-09T11:30:41.000Z | 2015-11-09T11:30:41.000Z | lpbm/modules/articles.py | fmichea/lpbm | 172772d562e2f1aa4aba72599150f95f89bdf6ce | [
"BSD-3-Clause"
] | 1 | 2015-04-28T07:02:21.000Z | 2016-01-23T19:12:11.000Z | lpbm/modules/articles.py | fmichea/lpbm | 172772d562e2f1aa4aba72599150f95f89bdf6ce | [
"BSD-3-Clause"
] | 2 | 2016-01-11T17:55:42.000Z | 2018-03-19T19:03:15.000Z | # lpbm/modules/articles.py - Loads articles and treats them.
# Author: Franck Michea < franck.michea@gmail.com >
# License: New BSD License (See LICENSE)
'''
Articles manager, finds and loads all the articles of the blog. These are a
pair of two files. One is a markdown file, the other one an ini file.
'''
import lpb... | 30.831169 | 94 | 0.658382 | 309 | 2,374 | 4.961165 | 0.407767 | 0.066536 | 0.027397 | 0.04501 | 0.146119 | 0.146119 | 0.146119 | 0.146119 | 0.146119 | 0.146119 | 0 | 0 | 0.23631 | 2,374 | 76 | 95 | 31.236842 | 0.84556 | 0.281803 | 0 | 0.105263 | 0 | 0 | 0.108656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0.026316 | 0.157895 | 0.131579 | 0.552632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f2370df3d871e32c742319d6d2bf923338119f5b | 470 | py | Python | KeywordArguments.py | DrewDaddio/Automate-Python | 552c8f4041c53c9ce1d6a7e1b8c11f640695453c | [
"Unlicense"
] | null | null | null | KeywordArguments.py | DrewDaddio/Automate-Python | 552c8f4041c53c9ce1d6a7e1b8c11f640695453c | [
"Unlicense"
] | null | null | null | KeywordArguments.py | DrewDaddio/Automate-Python | 552c8f4041c53c9ce1d6a7e1b8c11f640695453c | [
"Unlicense"
] | null | null | null | print('Hello')
print('World')
# adding a keyword argument will get "Hello World" on the same line.
print('Hello', end=' ')
print('World')
# the "end=' '" adds a single space character at the end of Hello starts the next print right next ot it
print('cat', 'dog', 'mouse')
#the above will have a single spac... | 33.571429 | 105 | 0.685106 | 76 | 470 | 4.236842 | 0.486842 | 0.065217 | 0.111801 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 470 | 13 | 106 | 36.153846 | 0.847368 | 0.653191 | 0 | 0.333333 | 0 | 0 | 0.317241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f244ffac0ac28bca762fdd0edf5599847bffff64 | 262 | py | Python | python_demos/mysql_demos/01_connect.py | t4d-classes/advanced-python_01102022 | bf20d78f0ad44324998ceed8bdd377ec1805f97e | [
"MIT"
] | null | null | null | python_demos/mysql_demos/01_connect.py | t4d-classes/advanced-python_01102022 | bf20d78f0ad44324998ceed8bdd377ec1805f97e | [
"MIT"
] | null | null | null | python_demos/mysql_demos/01_connect.py | t4d-classes/advanced-python_01102022 | bf20d78f0ad44324998ceed8bdd377ec1805f97e | [
"MIT"
] | 1 | 2022-01-14T18:12:37.000Z | 2022-01-14T18:12:37.000Z | import mysql.connector
from contextlib import closing
with closing(mysql.connector.connect(
host="localhost",
port=3306,
user="root",
password="sql!DB123!"
)) as mydb:
print(mydb)
print(mydb.is_connected())
print(mydb.is_connected())
| 16.375 | 37 | 0.69084 | 33 | 262 | 5.424242 | 0.666667 | 0.150838 | 0.145251 | 0.223464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032407 | 0.175573 | 262 | 15 | 38 | 17.466667 | 0.796296 | 0 | 0 | 0.181818 | 0 | 0 | 0.087786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.090909 | 0.181818 | 0 | 0.181818 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f248799014f1580f7a21128c8db272cedeae8f5f | 582 | py | Python | apps/models/crawler.py | jiangxuewen16/hq-crawler | f03ec1e454513307e335943f224f4d927eaf2bbf | [
"MIT"
] | 1 | 2021-02-25T08:33:40.000Z | 2021-02-25T08:33:40.000Z | apps/models/crawler.py | jiangxuewen16/hq-crawler | f03ec1e454513307e335943f224f4d927eaf2bbf | [
"MIT"
] | null | null | null | apps/models/crawler.py | jiangxuewen16/hq-crawler | f03ec1e454513307e335943f224f4d927eaf2bbf | [
"MIT"
] | 2 | 2021-03-08T07:25:16.000Z | 2021-12-07T15:28:02.000Z | import mongoengine
class ExceptionLog(mongoengine.Document):
event = mongoengine.IntField()
system_name = mongoengine.StringField()
platform = mongoengine.StringField()
level = mongoengine.IntField()
api_url = mongoengine.StringField()
trace = mongoengine.StringField()
file = mongoengine.S... | 32.333333 | 45 | 0.737113 | 51 | 582 | 8.294118 | 0.470588 | 0.572104 | 0.205674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 582 | 17 | 46 | 34.235294 | 0.872165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f25069e1531ad75689c84401f0ed4f4a318e478b | 199 | py | Python | Lecture.09/3.dictionary.3.py | joonion/coding-for-problem-solving | 9f7a0b7e18803c58596899595dacc87a74b1b9d1 | [
"MIT"
] | null | null | null | Lecture.09/3.dictionary.3.py | joonion/coding-for-problem-solving | 9f7a0b7e18803c58596899595dacc87a74b1b9d1 | [
"MIT"
] | null | null | null | Lecture.09/3.dictionary.3.py | joonion/coding-for-problem-solving | 9f7a0b7e18803c58596899595dacc87a74b1b9d1 | [
"MIT"
] | null | null | null | table = {"깍두기":1, "민혀기":2, "서주니":3}
print(table.keys())
print(table.values())
for item in table.items():
key = item[0]
value = item[1]
print(key, ":", value)
table["깍두기"] = 4
print(table) | 22.111111 | 35 | 0.582915 | 32 | 199 | 3.625 | 0.5625 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.175879 | 199 | 9 | 36 | 22.111111 | 0.670732 | 0 | 0 | 0 | 0 | 0 | 0.065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f25918a2249ecad0b4dbbf89a52fe6cbc6af2d78 | 255 | py | Python | remove_max_number_of_edges_to_keep_graph_fully_traversable.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | remove_max_number_of_edges_to_keep_graph_fully_traversable.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | remove_max_number_of_edges_to_keep_graph_fully_traversable.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null |
class RemoveMaxNumberOfEdgesToKeepGraphFullyTraversable:
"""
https://leetcode-cn.com/problems/remove-max-number-of-edges-to-keep-graph-fully-traversable/
"""
def maxNumEdgesToRemove(self, n: int, edges: List[List[int]]) -> int:
| 28.333333 | 96 | 0.698039 | 27 | 255 | 6.592593 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 255 | 8 | 97 | 31.875 | 0.827907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f25fd453804d9342d201ed96d1a0aa2a58bbdbb9 | 586 | py | Python | robonaldo/commands/stop.py | xtrm-en/robonaldo | 91601bad88043effbb717e40467526fe11bd4cb5 | [
"0BSD"
] | null | null | null | robonaldo/commands/stop.py | xtrm-en/robonaldo | 91601bad88043effbb717e40467526fe11bd4cb5 | [
"0BSD"
] | null | null | null | robonaldo/commands/stop.py | xtrm-en/robonaldo | 91601bad88043effbb717e40467526fe11bd4cb5 | [
"0BSD"
] | null | null | null | from robonaldo.command import Command, CommandContext
from robonaldo.command import CommandManager
from robonaldo.controller import GameController
from robonaldo.core import Robonaldo
import sys
from typing import List
class Stop(Command):
def execute(self, ctx: CommandContext) -> bool:
Robonaldo().stop()
... | 25.478261 | 53 | 0.6843 | 67 | 586 | 5.985075 | 0.477612 | 0.129676 | 0.099751 | 0.129676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203072 | 586 | 23 | 54 | 25.478261 | 0.858672 | 0 | 0 | 0 | 0 | 0 | 0.059625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.352941 | 0.176471 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
f2625742cd02841d9982a75bdb21510947eae9f2 | 32 | py | Python | python/testData/inspections/PyTypeCheckerInspection/FieldWithNoneInStub/m1.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/FieldWithNoneInStub/m1.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyTypeCheckerInspection/FieldWithNoneInStub/m1.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class C(object):
foo = None
| 10.666667 | 16 | 0.59375 | 5 | 32 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28125 | 32 | 2 | 17 | 16 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f27fa3f09458d2eb1cc80182721989f249077d95 | 1,150 | py | Python | students/K33422/laboratory_works/Kirillov_Nikolay/laboratory_work_4/hotel_app/serializers.py | NikolayKirillov/ITMO_ICT_WebDevelopment_2020-2021 | 77ea82c38eb25c8fd61815b92e4cb006708a6de7 | [
"MIT"
] | null | null | null | students/K33422/laboratory_works/Kirillov_Nikolay/laboratory_work_4/hotel_app/serializers.py | NikolayKirillov/ITMO_ICT_WebDevelopment_2020-2021 | 77ea82c38eb25c8fd61815b92e4cb006708a6de7 | [
"MIT"
] | null | null | null | students/K33422/laboratory_works/Kirillov_Nikolay/laboratory_work_4/hotel_app/serializers.py | NikolayKirillov/ITMO_ICT_WebDevelopment_2020-2021 | 77ea82c38eb25c8fd61815b92e4cb006708a6de7 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from django.contrib.auth.hashers import make_password
from .models import *
class RoomSerializer(serializers.ModelSerializer):
class Meta:
model = Room
fields = "__all__"
class StaffSerializer(serializers.ModelSerializer):
class Meta:
model = St... | 25 | 63 | 0.658261 | 111 | 1,150 | 6.504505 | 0.378378 | 0.126039 | 0.214681 | 0.242382 | 0.277008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254783 | 1,150 | 45 | 64 | 25.555556 | 0.842474 | 0 | 0 | 0.294118 | 0 | 0 | 0.072174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.088235 | 0.088235 | 0 | 0.441176 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f29c020d68fa9c1f720fae29e11974624aa88cb1 | 727 | py | Python | core/admin.py | thiagofreitascarneiro/Projeto_Fusion | 4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9 | [
"MIT"
] | null | null | null | core/admin.py | thiagofreitascarneiro/Projeto_Fusion | 4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9 | [
"MIT"
] | null | null | null | core/admin.py | thiagofreitascarneiro/Projeto_Fusion | 4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Cargo, Servico, Funcionario, Feature, Preco
@admin.register(Cargo)
class CargoAdmin(admin.ModelAdmin):
list_display = ('cargo', 'ativo', 'modificado')
@admin.register(Servico)
class ServicoAdmin(admin.ModelAdmin):
list_display = ('servico', 'icone', 'ati... | 23.451613 | 63 | 0.722146 | 77 | 727 | 6.753247 | 0.350649 | 0.125 | 0.182692 | 0.25 | 0.253846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122421 | 727 | 30 | 64 | 24.233333 | 0.815047 | 0 | 0 | 0 | 0 | 0 | 0.173793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 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 | 1 | 0 | 0 | 3 |
f2a5e1bd4ee43f360092ed7ac978137e5c8ab12f | 3,577 | py | Python | registration/migrations/0002_attendee.py | OpenGeoLabs/gismentors-registration | caea938691fa8ec4331d1aa81bb820ac42734eea | [
"MIT"
] | 1 | 2018-05-19T22:47:36.000Z | 2018-05-19T22:47:36.000Z | registration/migrations/0002_attendee.py | OpenGeoLabs/gismentors-registration | caea938691fa8ec4331d1aa81bb820ac42734eea | [
"MIT"
] | 33 | 2018-09-05T12:54:04.000Z | 2020-10-12T07:31:50.000Z | registration/migrations/0002_attendee.py | OpenGeoLabs/gismentors-registration | caea938691fa8ec4331d1aa81bb820ac42734eea | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2018-09-16 09:19
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('registration', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='attendee',
name='token... | 68.788462 | 1,262 | 0.630976 | 440 | 3,577 | 5.077273 | 0.438636 | 0.032229 | 0.067144 | 0.077887 | 0.515219 | 0.515219 | 0.44718 | 0.44718 | 0.385407 | 0.385407 | 0 | 0.035209 | 0.2695 | 3,577 | 51 | 1,263 | 70.137255 | 0.819747 | 0.01258 | 0 | 0.604651 | 1 | 0.046512 | 0.624646 | 0.035694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.116279 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f2c8a2c7b178b64761d3f6664f933fb977259788 | 382 | py | Python | src/digolds/manipulate/drop_empty_row.py | digolds/dp | 305089cbd2e933a0fff4d044485d591b6a2f3349 | [
"MIT"
] | null | null | null | src/digolds/manipulate/drop_empty_row.py | digolds/dp | 305089cbd2e933a0fff4d044485d591b6a2f3349 | [
"MIT"
] | null | null | null | src/digolds/manipulate/drop_empty_row.py | digolds/dp | 305089cbd2e933a0fff4d044485d591b6a2f3349 | [
"MIT"
] | null | null | null | import pandas as pd
def _parse(args):
return []
def _drop_empty_row(df):
return df.dropna(how='all')
name = 'drop-empty-row'
def operator(df, args):
return _drop_empty_row(df, *_parse(args))
if __name__ == "__main__":
data = [['tom', 10], ['nick', 15], [None, None]]
df = pd.DataFrame(data, co... | 21.222222 | 55 | 0.604712 | 54 | 382 | 3.981481 | 0.518519 | 0.125581 | 0.167442 | 0.130233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.209424 | 382 | 18 | 56 | 21.222222 | 0.698676 | 0 | 0 | 0 | 0 | 0 | 0.101828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.230769 | 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 | 1 | 1 | 0 | 0 | 3 |
4b2c437bc56b4579b4dd14464d44a745a5d108f6 | 1,308 | py | Python | common/smartdashboard_update_trigger.py | CtrlZ-FRC4096/Robot-2016-Public | f23a73758da74eb458543b3fea86c654598d9eec | [
"MIT"
] | null | null | null | common/smartdashboard_update_trigger.py | CtrlZ-FRC4096/Robot-2016-Public | f23a73758da74eb458543b3fea86c654598d9eec | [
"MIT"
] | null | null | null | common/smartdashboard_update_trigger.py | CtrlZ-FRC4096/Robot-2016-Public | f23a73758da74eb458543b3fea86c654598d9eec | [
"MIT"
] | null | null | null | """
Ctrl-Z FRC Team 4096
FIRST Robotics Competition 2016, "Stronghold"
Code for robot "Jaw-Z"
contact@team4096.org
"""
from wpilib.buttons import Trigger
from networktables import NetworkTable
class SmartDashboard_Update_Trigger( Trigger ):
'''
Trigger used to check when entries are updated
in the SmartDa... | 29.066667 | 87 | 0.652141 | 163 | 1,308 | 5.03681 | 0.411043 | 0.06821 | 0.085262 | 0.115713 | 0.151035 | 0.097442 | 0.097442 | 0.097442 | 0.097442 | 0 | 0 | 0.016913 | 0.276758 | 1,308 | 45 | 88 | 29.066667 | 0.850951 | 0.327982 | 0 | 0.125 | 0 | 0 | 0.017903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4b2fe072dc6e14fa0ddf1302d9d50ca334158afa | 286 | py | Python | association-backend/src/api/query.py | pauloxnet/pycon | 82b6eff76dcc785865ea3ffd97a45e931c0add26 | [
"MIT"
] | 56 | 2018-01-20T17:18:40.000Z | 2022-03-28T22:42:04.000Z | association-backend/src/api/query.py | pauloxnet/pycon | 82b6eff76dcc785865ea3ffd97a45e931c0add26 | [
"MIT"
] | 2,029 | 2018-01-20T11:37:24.000Z | 2022-03-31T04:10:51.000Z | association-backend/src/api/query.py | pauloxnet/pycon | 82b6eff76dcc785865ea3ffd97a45e931c0add26 | [
"MIT"
] | 17 | 2018-03-17T09:44:28.000Z | 2021-12-27T19:57:35.000Z | from typing import Any
import strawberry
from strawberry.types import Info
from src.api.context import Context
@strawberry.federation.type(extend=True)
class Query:
@strawberry.field
async def association_service(self, info: Info[Context, Any]) -> bool:
return True
| 20.428571 | 74 | 0.755245 | 38 | 286 | 5.657895 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167832 | 286 | 13 | 75 | 22 | 0.903361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4b6d65db9677cacf83ebf573f4486fc50ee154fb | 6,340 | py | Python | samples/user management example.py | PTCInc/Kepware-ConfigAPI-SDK-Python | ff7757492a7ea1e73f3d5862ba956c8af4dcc797 | [
"MIT"
] | 9 | 2020-04-08T18:48:03.000Z | 2022-03-18T15:05:01.000Z | samples/user management example.py | PTCInc/Kepware-ConfigAPI-SDK-Python | ff7757492a7ea1e73f3d5862ba956c8af4dcc797 | [
"MIT"
] | 5 | 2020-08-24T15:08:54.000Z | 2022-03-16T17:07:09.000Z | samples/user management example.py | PTCInc/Kepware-ConfigAPI-SDK-Python | ff7757492a7ea1e73f3d5862ba956c8af4dcc797 | [
"MIT"
] | 10 | 2020-03-23T20:40:17.000Z | 2021-11-14T08:42:56.000Z | # -------------------------------------------------------------------------
# Copyright (c) PTC Inc. and/or all its affiliates. All rights reserved.
# See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
# User Management Example - ... | 40.903226 | 163 | 0.720505 | 688 | 6,340 | 6.360465 | 0.22093 | 0.283821 | 0.198355 | 0.093007 | 0.650594 | 0.573355 | 0.497486 | 0.410192 | 0.410192 | 0.388254 | 0 | 0.007628 | 0.131546 | 6,340 | 155 | 164 | 40.903226 | 0.787141 | 0.175079 | 0 | 0.468468 | 0 | 0 | 0.541507 | 0.432936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009009 | false | 0.045045 | 0.018018 | 0 | 0.027027 | 0.153153 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ba56feac67304561767135cb1974964fe52c746 | 144 | py | Python | arvinddhindsa/blog/apps.py | Dhindsa91/Django-blog | 072dfecdc13839370aca9fc5a062eb8f9eea17b5 | [
"bzip2-1.0.6"
] | null | null | null | arvinddhindsa/blog/apps.py | Dhindsa91/Django-blog | 072dfecdc13839370aca9fc5a062eb8f9eea17b5 | [
"bzip2-1.0.6"
] | null | null | null | arvinddhindsa/blog/apps.py | Dhindsa91/Django-blog | 072dfecdc13839370aca9fc5a062eb8f9eea17b5 | [
"bzip2-1.0.6"
] | null | null | null | from django.apps import AppConfig
#These files added to main settings.py under Installed Apps
class BlogConfig(AppConfig):
name = 'blog'
| 18 | 59 | 0.763889 | 20 | 144 | 5.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173611 | 144 | 7 | 60 | 20.571429 | 0.92437 | 0.402778 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4bac93f7a17520e1bd2be44bff9d51ab0e8f3619 | 25,725 | py | Python | naa_Isotopic_Abundance.py | AustinShih/radwatch-analysis | 748f23bb09a5aae87e848a3b212244b15bdda600 | [
"MIT"
] | 6 | 2016-08-03T02:21:09.000Z | 2020-01-30T18:47:51.000Z | naa_Isotopic_Abundance.py | AustinShih/radwatch-analysis | 748f23bb09a5aae87e848a3b212244b15bdda600 | [
"MIT"
] | 47 | 2016-07-29T23:42:51.000Z | 2017-08-04T16:41:01.000Z | naa_Isotopic_Abundance.py | AustinShih/radwatch-analysis | 748f23bb09a5aae87e848a3b212244b15bdda600 | [
"MIT"
] | 10 | 2016-08-03T04:48:25.000Z | 2021-11-16T08:24:39.000Z | """Isotopic Abundances for each isotope"""
class Natural_Isotope(object):
def __init__(self, symbol, mass_number, mass, isotopic_abundance,
cross_section):
self.symbol = symbol
self.mass_number = mass_number
self.mass = mass
self.isotopic_abundance = .01 *... | 68.236074 | 80 | 0.67724 | 4,051 | 25,725 | 4.083436 | 0.254752 | 0.245436 | 0.009672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355156 | 0.177026 | 25,725 | 376 | 81 | 68.417553 | 0.426196 | 0.001399 | 0 | 0 | 0 | 0 | 0.021496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002695 | false | 0 | 0 | 0 | 0.005391 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29958aa6f1da49f5ea7caddb786c93b859da38bc | 130 | py | Python | storeapi/files.py | pyhoneybot/plugins-store | 3e9c7989cf58e5933094fcba02f0db8e54f27e55 | [
"MIT"
] | 1 | 2020-05-08T18:16:23.000Z | 2020-05-08T18:16:23.000Z | storeapi/files.py | pyhoneybot/plugins-store | 3e9c7989cf58e5933094fcba02f0db8e54f27e55 | [
"MIT"
] | null | null | null | storeapi/files.py | pyhoneybot/plugins-store | 3e9c7989cf58e5933094fcba02f0db8e54f27e55 | [
"MIT"
] | null | null | null |
def new_file(filename, content):
with open(filename, 'w+') as f:
f.write(content)
print('Created at', filename)
| 18.571429 | 35 | 0.623077 | 18 | 130 | 4.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 130 | 6 | 36 | 21.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
299d2939f0157b5bc89bf80845d0c9887f8db709 | 9,776 | py | Python | examples/tor.py | JarbasAl/pybrowser | 61a6f96e601bb5bfb5085f90a7a7b1da03051878 | [
"Apache-2.0"
] | null | null | null | examples/tor.py | JarbasAl/pybrowser | 61a6f96e601bb5bfb5085f90a7a7b1da03051878 | [
"Apache-2.0"
] | null | null | null | examples/tor.py | JarbasAl/pybrowser | 61a6f96e601bb5bfb5085f90a7a7b1da03051878 | [
"Apache-2.0"
] | null | null | null | from pombo_correio import TorBrowser
from time import sleep
if __name__ == "__main__":
from os.path import join, dirname, expanduser
gecko_driver = join(dirname(__file__), "geckodriver")
# https://github.com/mozilla/geckodriver/releases
binary = expanduser("~/Downloads/tor-browser_en-US/Browser/fire... | 227.348837 | 4,787 | 0.714914 | 1,502 | 9,776 | 4.610519 | 0.406125 | 0.007509 | 0.009531 | 0.010975 | 0.242455 | 0.191625 | 0.174585 | 0.169675 | 0.14917 | 0.143105 | 0 | 0.114797 | 0.130319 | 9,776 | 43 | 4,788 | 227.348837 | 0.698542 | 0.01207 | 0 | 0.2 | 0 | 0 | 0.238674 | 0.119337 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29b8815aa5acfffc71bf3c2111e8778a37393680 | 189 | py | Python | python/CodingInterviews/offer17.py | CharlesPikachu/-algorithm | 5989495054b013ee07d25c6185289513e25a6edd | [
"MIT"
] | 16 | 2019-07-15T12:17:54.000Z | 2021-10-31T21:52:47.000Z | python/CodingInterviews/offer17.py | CharlesPikachu/-algorithm | 5989495054b013ee07d25c6185289513e25a6edd | [
"MIT"
] | null | null | null | python/CodingInterviews/offer17.py | CharlesPikachu/-algorithm | 5989495054b013ee07d25c6185289513e25a6edd | [
"MIT"
] | 3 | 2020-07-21T11:18:01.000Z | 2021-06-18T17:46:14.000Z | '''
Function:
打印从1到最大的n位数
Author:
Charles
'''
class Solution:
def printNumbers(self, n: int) -> List[int]:
start, end = 1, 10 ** n
return list(range(start, end)) | 18.9 | 48 | 0.582011 | 23 | 189 | 4.782609 | 0.782609 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.269841 | 189 | 10 | 49 | 18.9 | 0.768116 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0.25 | 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 | 1 | 0 | 0 | 3 |
29c2c28e4d26dbf250dfaf2f48073f7d515331b8 | 1,092 | py | Python | slow_processing_times/utils.py | GeoffreyDlvl/SlowwwwwProcessingTimes | f0e37d11fef6d4922e6c9c8fc68766f29bd21bb4 | [
"MIT"
] | null | null | null | slow_processing_times/utils.py | GeoffreyDlvl/SlowwwwwProcessingTimes | f0e37d11fef6d4922e6c9c8fc68766f29bd21bb4 | [
"MIT"
] | null | null | null | slow_processing_times/utils.py | GeoffreyDlvl/SlowwwwwProcessingTimes | f0e37d11fef6d4922e6c9c8fc68766f29bd21bb4 | [
"MIT"
] | null | null | null | import os, hashlib
from flask import (
current_app, jsonify, request, Response
)
def archive_exists(filename):
return filename in os.listdir(current_app.config['UPLOAD_FOLDER'])
def create_response(json_body, status_code):
resp = jsonify(json_body)
resp.status_code = status_code
return resp
def c... | 30.333333 | 91 | 0.700549 | 146 | 1,092 | 5.047945 | 0.458904 | 0.040706 | 0.043419 | 0.059701 | 0.075984 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015766 | 0.186813 | 1,092 | 36 | 92 | 30.333333 | 0.814189 | 0 | 0 | 0 | 0 | 0 | 0.114364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.103448 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
29ddd784009f4e4a9bd9dcb496f22ba1f0e58e50 | 336 | py | Python | PYTHON/Strings/find_a_string.py | byung-u/HackerRank | 4c02fefff7002b3af774b99ebf8d40f149f9d163 | [
"MIT"
] | null | null | null | PYTHON/Strings/find_a_string.py | byung-u/HackerRank | 4c02fefff7002b3af774b99ebf8d40f149f9d163 | [
"MIT"
] | null | null | null | PYTHON/Strings/find_a_string.py | byung-u/HackerRank | 4c02fefff7002b3af774b99ebf8d40f149f9d163 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
def count_substring(string, sub_string):
l1 = len(string)
l2 = len(sub_string)
return len([i for i in range(0, l1 - l2 + 1) if (string[i:i+l2] == sub_string)])
if __name__ == '__main__':
string = input()
sub_string = input()
print(count_substring(string... | 19.764706 | 84 | 0.636905 | 51 | 336 | 3.901961 | 0.509804 | 0.226131 | 0.201005 | 0.231156 | 0.291457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.220238 | 336 | 16 | 85 | 21 | 0.729008 | 0.0625 | 0 | 0 | 0 | 0 | 0.025559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4b10b07fbd553ab6db4a8aa768c1e21d2250ebfd | 907 | py | Python | scraping/migrations/0013_auto_20190307_1046.py | ThibaultRizzo/car-scraping | ca108a9c90319d8a935c58b30394a34f88e3d7df | [
"MIT"
] | null | null | null | scraping/migrations/0013_auto_20190307_1046.py | ThibaultRizzo/car-scraping | ca108a9c90319d8a935c58b30394a34f88e3d7df | [
"MIT"
] | 3 | 2020-02-11T23:48:07.000Z | 2021-03-31T19:01:48.000Z | scraping/migrations/0013_auto_20190307_1046.py | ThibaultRizzo/car-scraping | ca108a9c90319d8a935c58b30394a34f88e3d7df | [
"MIT"
] | 1 | 2019-02-25T13:40:36.000Z | 2019-02-25T13:40:36.000Z | # Generated by Django 2.1.5 on 2019-03-07 10:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scraping', '0012_auto_20190306_1322'),
]
operations = [
migrations.AlterField(
model_name='car',
name='color',
... | 26.676471 | 75 | 0.564498 | 94 | 907 | 5.297872 | 0.468085 | 0.160643 | 0.200803 | 0.232932 | 0.626506 | 0.626506 | 0.554217 | 0.554217 | 0.473896 | 0.473896 | 0 | 0.069355 | 0.316428 | 907 | 33 | 76 | 27.484848 | 0.733871 | 0.049614 | 0 | 0.555556 | 1 | 0 | 0.09186 | 0.026744 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4b2a2f9c4b98160142a330b5fdf86330d9c9cb3f | 204 | py | Python | PycharmProjects/Old.PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | PycharmProjects/Old.PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | PycharmProjects/Old.PythonExercicios/ex027.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | n = str(input('Digite o seu nome completo: ')).strip()
print('Muito prazer em te conhecer,',n,'!')
nome = n.split()
print(f'Seu primeiro nome é {nome[0]}')
print(f'Seu último nome é {nome[len(nome)-1]}')
| 34 | 54 | 0.656863 | 37 | 204 | 3.621622 | 0.621622 | 0.089552 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.127451 | 204 | 5 | 55 | 40.8 | 0.741573 | 0 | 0 | 0 | 0 | 0 | 0.602941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 | 1 | 0 | 3 |
d99acc9a746afea5d516cdd5f124b1058ba4c025 | 318 | py | Python | yach/types/announcement.py | Yach-Network/yach-blockchain | 8e1f8538493de7a97009faf6a959d649f1f00324 | [
"Apache-2.0"
] | 2 | 2021-06-29T11:09:02.000Z | 2021-07-01T16:17:59.000Z | yach/types/announcement.py | Yach-Network/yach-blockchain | 8e1f8538493de7a97009faf6a959d649f1f00324 | [
"Apache-2.0"
] | null | null | null | yach/types/announcement.py | Yach-Network/yach-blockchain | 8e1f8538493de7a97009faf6a959d649f1f00324 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from yach.types.blockchain_format.sized_bytes import bytes32
from yach.util.hash import std_hash
@dataclass(frozen=True)
class Announcement:
origin_info: bytes32
message: bytes
def name(self) -> bytes32:
return std_hash(bytes(self.origin_info + self.message))
| 22.714286 | 63 | 0.764151 | 43 | 318 | 5.511628 | 0.581395 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.160377 | 318 | 13 | 64 | 24.461538 | 0.865169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
d9b42a3281f57ce064b0ac73116b1933869f8ea6 | 232 | py | Python | pydtk/io/__init__.py | dataware-tools/pydtk | 1da61fb8ca90de6c39a371a9b2b65f4473932991 | [
"Apache-2.0"
] | 11 | 2020-10-09T01:29:18.000Z | 2022-01-21T13:21:40.000Z | pydtk/io/__init__.py | dataware-tools/pydtk | 1da61fb8ca90de6c39a371a9b2b65f4473932991 | [
"Apache-2.0"
] | 64 | 2020-10-20T04:55:22.000Z | 2022-01-24T15:52:32.000Z | pydtk/io/__init__.py | dataware-tools/pydtk | 1da61fb8ca90de6c39a371a9b2b65f4473932991 | [
"Apache-2.0"
] | 1 | 2021-07-30T04:52:38.000Z | 2021-07-30T04:52:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright Toolkit Authors
"""pydtk modules."""
from pydtk.io.writer import BaseFileWriter
from pydtk.io.reader import BaseFileReader
from pydtk.io.errors import NoModelMatchedError
| 21.090909 | 47 | 0.758621 | 30 | 232 | 5.866667 | 0.7 | 0.153409 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.12069 | 232 | 10 | 48 | 23.2 | 0.857843 | 0.357759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d9b69af3be3743bde145b2e9fb162d268c5bd804 | 165 | py | Python | battle-city/battle-city.py | mbdimitrova/battle-city | bd4f70d7f4c1d5cb41513ee44c1c03ef81786ab0 | [
"MIT"
] | 1 | 2015-04-27T23:27:52.000Z | 2015-04-27T23:27:52.000Z | battle-city/battle-city.py | mbdimitrova/battle-city | bd4f70d7f4c1d5cb41513ee44c1c03ef81786ab0 | [
"MIT"
] | null | null | null | battle-city/battle-city.py | mbdimitrova/battle-city | bd4f70d7f4c1d5cb41513ee44c1c03ef81786ab0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.3
"""
This is an attempt to recreate
Battle City for NES
"""
from code.game import *
if __name__ == '__main__':
Game("level01").main()
| 13.75 | 30 | 0.660606 | 25 | 165 | 4.04 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.181818 | 165 | 11 | 31 | 15 | 0.718519 | 0.448485 | 0 | 0 | 0 | 0 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d9d7652b0cea0dfa4633de3b20884eb71a3e8844 | 800 | py | Python | src/pretix/base/__init__.py | td00/pretix | e31bd7600c85598de135f2eb5012e2f33fdb1d11 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/base/__init__.py | td00/pretix | e31bd7600c85598de135f2eb5012e2f33fdb1d11 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/base/__init__.py | td00/pretix | e31bd7600c85598de135f2eb5012e2f33fdb1d11 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-08-09T17:11:28.000Z | 2017-08-09T17:11:28.000Z | from django.apps import AppConfig
from django.conf import settings
class PretixBaseConfig(AppConfig):
name = 'pretix.base'
label = 'pretixbase'
def ready(self):
from . import exporter # NOQA
from . import payment # NOQA
from . import exporters # NOQA
from . import invoi... | 25.806452 | 96 | 0.64125 | 89 | 800 | 5.685393 | 0.505618 | 0.079051 | 0.083004 | 0.098814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29125 | 800 | 30 | 97 | 26.666667 | 0.892416 | 0.0425 | 0 | 0.26087 | 0 | 0 | 0.080475 | 0.036939 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.521739 | 0 | 0.695652 | 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 | 1 | 0 | 0 | 3 |
d9f8c4de9e4edbdfeb3d6aa0824fbca11e77e1fc | 60,089 | py | Python | synthpop_pb2.py | dabreegster/ua-aspics | 3214f3c2daef8d5f465bbc66cae2b01911e337de | [
"MIT"
] | 7 | 2022-01-03T16:12:03.000Z | 2022-02-24T16:41:34.000Z | synthpop_pb2.py | dabreegster/ua-aspics | 3214f3c2daef8d5f465bbc66cae2b01911e337de | [
"MIT"
] | 16 | 2021-12-30T16:50:13.000Z | 2022-03-11T11:53:25.000Z | synthpop_pb2.py | dabreegster/ua-aspics | 3214f3c2daef8d5f465bbc66cae2b01911e337de | [
"MIT"
] | 1 | 2022-02-23T16:12:57.000Z | 2022-02-23T16:12:57.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: synthpop.proto
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
... | 40.876871 | 5,185 | 0.748057 | 7,629 | 60,089 | 5.563901 | 0.055446 | 0.051452 | 0.096238 | 0.083964 | 0.721629 | 0.655924 | 0.648621 | 0.637949 | 0.636676 | 0.615473 | 0 | 0.042481 | 0.130307 | 60,089 | 1,469 | 5,186 | 40.904697 | 0.769762 | 0.020503 | 0 | 0.670298 | 1 | 0.007988 | 0.117179 | 0.068601 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003631 | 0 | 0.003631 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
8a0fcfd0c102ebe9a28be1b13f4433c13bbc3403 | 2,402 | py | Python | ufw_config/ufw.py | WeLikeToCodeStuff/UFW-Management-Python | 618c7b90e14b197002ecb80a5aec5bf58ea119e0 | [
"Apache-2.0"
] | null | null | null | ufw_config/ufw.py | WeLikeToCodeStuff/UFW-Management-Python | 618c7b90e14b197002ecb80a5aec5bf58ea119e0 | [
"Apache-2.0"
] | 1 | 2020-11-22T02:16:18.000Z | 2020-11-22T02:22:08.000Z | ufw_config/ufw.py | WeLikeToCodeStuff/UFW-Management-Python | 618c7b90e14b197002ecb80a5aec5bf58ea119e0 | [
"Apache-2.0"
] | null | null | null | import os
from sys import exit
from .generator import UfwConfigGenerator
def main():
os.system("clear")
print(
"\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u... | 49.020408 | 263 | 0.647794 | 303 | 2,402 | 5.135314 | 0.29703 | 0.526992 | 0.771208 | 1.002571 | 0.470437 | 0.451157 | 0.451157 | 0.416452 | 0.376607 | 0.376607 | 0 | 0.18814 | 0.227727 | 2,402 | 48 | 264 | 50.041667 | 0.650674 | 0 | 0 | 0.209302 | 0 | 0.093023 | 0.553951 | 0.214104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.093023 | 0.232558 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a2331311c74994d7eeb291c86e00fbadb24d6cd | 476 | py | Python | python/clock/clock.py | fruit-in/exercism-solution | 942f824e2dacd23ee9fd12f5b3e8abed0aeb9581 | [
"MIT"
] | 9 | 2020-12-12T03:29:33.000Z | 2021-08-11T13:08:06.000Z | python/clock/clock.py | fruit-in/exercism-solution | 942f824e2dacd23ee9fd12f5b3e8abed0aeb9581 | [
"MIT"
] | null | null | null | python/clock/clock.py | fruit-in/exercism-solution | 942f824e2dacd23ee9fd12f5b3e8abed0aeb9581 | [
"MIT"
] | null | null | null | class Clock:
def __init__(self, hour, minute):
self.hour = (hour + (minute // 60)) % 24
self.minute = minute % 60
def __repr__(self):
return "{:02d}:{:02d}".format(self.hour, self.minute)
def __eq__(self, other):
return self.hour == other.hour and self.minute == other.minut... | 28 | 70 | 0.60084 | 60 | 476 | 4.433333 | 0.316667 | 0.150376 | 0.090226 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028329 | 0.258403 | 476 | 16 | 71 | 29.75 | 0.725212 | 0 | 0 | 0 | 0 | 0 | 0.027311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0.333333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8a25e4c4bc8bba356ba3442a2417b0847bd58149 | 169 | py | Python | sfa_api/test/conftest.py | wholmgren/solarforecastarbiter-api | defba6e62cbc1e3d3e57f7d709db6882d781dd01 | [
"MIT"
] | null | null | null | sfa_api/test/conftest.py | wholmgren/solarforecastarbiter-api | defba6e62cbc1e3d3e57f7d709db6882d781dd01 | [
"MIT"
] | null | null | null | sfa_api/test/conftest.py | wholmgren/solarforecastarbiter-api | defba6e62cbc1e3d3e57f7d709db6882d781dd01 | [
"MIT"
] | null | null | null | import pytest
from sfa_api import create_app
@pytest.fixture()
def api():
app = create_app(config_name='TestingConfig')
api = app.test_client()
return api
| 16.9 | 49 | 0.715976 | 24 | 169 | 4.833333 | 0.625 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183432 | 169 | 9 | 50 | 18.777778 | 0.84058 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8a386c33d4061c4bca933f0a07dc9ac20b2167e5 | 871 | py | Python | learnPythonTheHardWay/src/ex_04.py | pparacch/PlayingWithPython | 9fe75551cae6aeac8730b922a06ff0be85634f4d | [
"MIT"
] | null | null | null | learnPythonTheHardWay/src/ex_04.py | pparacch/PlayingWithPython | 9fe75551cae6aeac8730b922a06ff0be85634f4d | [
"MIT"
] | null | null | null | learnPythonTheHardWay/src/ex_04.py | pparacch/PlayingWithPython | 9fe75551cae6aeac8730b922a06ff0be85634f4d | [
"MIT"
] | null | null | null | #Variables & Names
#Playing around with variables, assignments and basic calculations.
#Python version 2.7.4
cars = 100 #assign to (variable) car the value 100 (integer)
space_in_a_car = 4.0 #assign to (variable) space_in_a_car teh value 4.0 (floating point)
drivers = 30
passengers = 90
cars_not_driven = cars - drive... | 37.869565 | 97 | 0.769231 | 132 | 871 | 4.893939 | 0.5 | 0.032508 | 0.037152 | 0.051084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022697 | 0.140069 | 871 | 22 | 98 | 39.590909 | 0.839786 | 0.338691 | 0 | 0 | 0 | 0 | 0.301056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.285714 | 0 | null | null | 0.428571 | 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 | 1 | 0 | 3 |
8a56cd43018948d49b0622365534ea3348b75ea7 | 10,867 | py | Python | orquesta/tests/unit/utils/test_schema.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 3 | 2020-11-17T21:29:26.000Z | 2021-03-17T13:56:16.000Z | orquesta/tests/unit/utils/test_schema.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 5 | 2021-03-02T01:41:36.000Z | 2022-03-08T23:31:31.000Z | orquesta/tests/unit/utils/test_schema.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 15 | 2020-08-08T16:21:40.000Z | 2022-03-17T04:45:51.000Z | # Copyright 2019 Extreme Networks, Inc.
#
# 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 i... | 30.69774 | 84 | 0.507224 | 948 | 10,867 | 5.602321 | 0.138186 | 0.080964 | 0.079081 | 0.110714 | 0.807004 | 0.775372 | 0.736208 | 0.680474 | 0.65788 | 0.598946 | 0 | 0.01273 | 0.349406 | 10,867 | 353 | 85 | 30.784703 | 0.738472 | 0.05144 | 0 | 0.613793 | 0 | 0 | 0.180688 | 0 | 0 | 0 | 0 | 0 | 0.127586 | 1 | 0.051724 | false | 0 | 0.010345 | 0 | 0.065517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a5e4ff7fe9003c5f56a721ebc52f53f2567997d | 14,796 | py | Python | kivymd/theme_picker.py | CodexLink/InventoryEditor-Data_List_Simplier_AEMB | e14848a1ad9fc5111a17f6d1ae629866274b3b69 | [
"Apache-2.0"
] | 1 | 2021-04-02T23:27:59.000Z | 2021-04-02T23:27:59.000Z | kivymd/theme_picker.py | CodexLink/InventoryEditor-Data_List_Simplier_AEMB | e14848a1ad9fc5111a17f6d1ae629866274b3b69 | [
"Apache-2.0"
] | 2 | 2019-11-14T02:28:38.000Z | 2020-01-06T14:51:01.000Z | kivymd/theme_picker.py | CodexLink/InventoryEditor-Data_List_Simplier_AEMB | e14848a1ad9fc5111a17f6d1ae629866274b3b69 | [
"Apache-2.0"
] | 3 | 2021-03-02T20:15:47.000Z | 2021-06-02T19:36:44.000Z | # -*- coding: utf-8 -*-
from kivy.lang import Builder
from kivy.properties import OptionProperty
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.modalview import ModalView
from kivy.utils import get_color_from_hex
from kivymd.backgroundcolorbehavior import SpecificBackgroundColorBehavior
from kivymd.button... | 34.978723 | 78 | 0.414166 | 1,148 | 14,796 | 5.182056 | 0.13676 | 0.06354 | 0.044377 | 0.05917 | 0.495714 | 0.472012 | 0.438393 | 0.418222 | 0.404102 | 0.396033 | 0 | 0.033602 | 0.505204 | 14,796 | 422 | 79 | 35.061611 | 0.778992 | 0.001419 | 0 | 0.747253 | 0 | 0.008242 | 0.910039 | 0.061463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005495 | false | 0.002747 | 0.043956 | 0.002747 | 0.068681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a5e6d0a9418d81ef9bbb4782057c3cae7a84761 | 459 | py | Python | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_platform.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | 177 | 2016-03-15T17:03:51.000Z | 2022-03-18T16:48:44.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_platform.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | 18 | 2016-03-30T10:45:22.000Z | 2020-07-14T16:28:13.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_platform.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2016-03-16T20:38:57.000Z | 2022-02-22T04:26:02.000Z | """ Cisco_IOS_XE_platform
Cisco XE Native Platform Yang model.
Copyright (c) 2016, 2018 by Cisco Systems, Inc.
All rights reserved.
"""
from collections import OrderedDict
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filters ... | 25.5 | 126 | 0.799564 | 65 | 459 | 5.507692 | 0.692308 | 0.078212 | 0.072626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025189 | 0.135076 | 459 | 17 | 127 | 27 | 0.876574 | 0.281046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8a68f7c73209b26becc42d3eec81aecca6abdc95 | 1,341 | py | Python | tests/plugins/precision/test_deepspeed_precision.py | mathemusician/pytorch-lightning | 15fa5389387b3a220bc044dd30eb0be1e8f64944 | [
"Apache-2.0"
] | 3,469 | 2019-03-31T03:09:16.000Z | 2020-01-13T15:06:31.000Z | tests/plugins/precision/test_deepspeed_precision.py | mathemusician/pytorch-lightning | 15fa5389387b3a220bc044dd30eb0be1e8f64944 | [
"Apache-2.0"
] | 524 | 2019-04-02T12:33:39.000Z | 2020-01-14T02:53:33.000Z | tests/plugins/precision/test_deepspeed_precision.py | mathemusician/pytorch-lightning | 15fa5389387b3a220bc044dd30eb0be1e8f64944 | [
"Apache-2.0"
] | 365 | 2019-04-02T22:14:04.000Z | 2020-01-13T17:21:54.000Z | # Copyright The PyTorch Lightning team.
#
# 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 i... | 43.258065 | 100 | 0.797166 | 178 | 1,341 | 5.882022 | 0.55618 | 0.057307 | 0.024833 | 0.030564 | 0.078319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011986 | 0.129008 | 1,341 | 30 | 101 | 44.7 | 0.884418 | 0.416853 | 0 | 0 | 0 | 0 | 0.226563 | 0.096354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | true | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8a6fb1591e79d0ce86bc7f4d94970462e56a33ed | 24,975 | py | Python | bandit/plugins/injection_shell.py | BackMarket/bandit | 7d6ab4a3e503843df3da389ce32ab30832d71474 | [
"Apache-2.0"
] | null | null | null | bandit/plugins/injection_shell.py | BackMarket/bandit | 7d6ab4a3e503843df3da389ce32ab30832d71474 | [
"Apache-2.0"
] | null | null | null | bandit/plugins/injection_shell.py | BackMarket/bandit | 7d6ab4a3e503843df3da389ce32ab30832d71474 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# SPDX-License-Identifier: Apache-2.0
import ast
import re
import bandit
from bandit.core import cwemap
from bandit.core import test_properties as test
# yuck, regex: starts with a windows drive letter (eg C:)
# or one of our path delimeter characters (/... | 38.013699 | 82 | 0.627908 | 3,025 | 24,975 | 5.094215 | 0.149091 | 0.020701 | 0.017651 | 0.018559 | 0.747242 | 0.729137 | 0.709409 | 0.687476 | 0.66353 | 0.625827 | 0 | 0.010761 | 0.289329 | 24,975 | 656 | 83 | 38.071646 | 0.857457 | 0.650771 | 0 | 0.322581 | 0 | 0 | 0.179212 | 0.013043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.026882 | 0 | 0.139785 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a75e89c80d69db20f7f12d342184ca2adfef506 | 227 | py | Python | 070-b-call-function.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | 5 | 2019-07-25T13:54:44.000Z | 2021-02-05T12:16:53.000Z | 070-b-call-function.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | null | null | null | 070-b-call-function.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | null | null | null | # These function calls don't quite work. Fix them!
uniforms = {'Thelma': '4', 'Twi': '21', 'Dottie': '9'}
thelma_number = int uniforms['Thelma']
twi_number = int uniforms['Twi']
sum = thelma_number + twi_number
print(sum)
| 22.7 | 54 | 0.674009 | 33 | 227 | 4.515152 | 0.606061 | 0.187919 | 0.228188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0.15859 | 227 | 9 | 55 | 25.222222 | 0.759162 | 0.215859 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.