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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
241917b9f7f7358d578b3f46ded3d76d3d53ac33 | 317 | py | Python | guillotina/addons.py | onna/guillotina | e4b05d97a1a8e4c211c6b97b2770ced1d97c4569 | [
"BSD-2-Clause"
] | null | null | null | guillotina/addons.py | onna/guillotina | e4b05d97a1a8e4c211c6b97b2770ced1d97c4569 | [
"BSD-2-Clause"
] | null | null | null | guillotina/addons.py | onna/guillotina | e4b05d97a1a8e4c211c6b97b2770ced1d97c4569 | [
"BSD-2-Clause"
] | null | null | null | from guillotina.interfaces import IAddOn
from zope.interface import implementer
@implementer(IAddOn)
class Addon(object):
""" Prototype of an Addon plugin
"""
@classmethod
def install(cls, container, request):
pass
@classmethod
def uninstall(cls, container, request):
pass
| 18.647059 | 43 | 0.684543 | 34 | 317 | 6.382353 | 0.676471 | 0.129032 | 0.175115 | 0.211982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233438 | 317 | 16 | 44 | 19.8125 | 0.893004 | 0.088328 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
24221b8a73a0a95ef4ba6b74bb424e4aeb60172f | 662 | py | Python | test/test_dnf.py | gburca/ccs-py | c69b6c7f8a899f6747b8632541ef1a4159a2baab | [
"MIT"
] | 1 | 2019-09-26T17:15:47.000Z | 2019-09-26T17:15:47.000Z | test/test_dnf.py | gburca/ccs-py | c69b6c7f8a899f6747b8632541ef1a4159a2baab | [
"MIT"
] | null | null | null | test/test_dnf.py | gburca/ccs-py | c69b6c7f8a899f6747b8632541ef1a4159a2baab | [
"MIT"
] | 1 | 2021-11-29T18:34:17.000Z | 2021-11-29T18:34:17.000Z | import io
from ccs.ast import flatten
from ccs.dnf import to_dnf
from ccs.parser import Parser
def dnfify(string: str):
expr = Parser().parse_selector(io.StringIO(string))
return to_dnf(flatten(expr))
def test_dnf():
assert str(dnfify("a b, c d")) == "a b, c d"
def test_cnf():
assert str(dnfify("... | 20.6875 | 70 | 0.599698 | 129 | 662 | 2.976744 | 0.294574 | 0.041667 | 0.046875 | 0.0625 | 0.276042 | 0.276042 | 0.260417 | 0.260417 | 0.15625 | 0.15625 | 0 | 0 | 0.214502 | 662 | 31 | 71 | 21.354839 | 0.738462 | 0 | 0 | 0 | 0 | 0 | 0.206949 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
242aa1b4332ee419dad2d7a777f468c52ef48829 | 2,169 | py | Python | application/pages/training_analysis/models/performance_curve.py | Jhsmit/awesome-panel | 53f7754f7c505a2666f6724df26c851ae942ec40 | [
"Apache-2.0"
] | 1 | 2020-05-08T21:44:37.000Z | 2020-05-08T21:44:37.000Z | application/pages/training_analysis/models/performance_curve.py | Jhsmit/awesome-panel | 53f7754f7c505a2666f6724df26c851ae942ec40 | [
"Apache-2.0"
] | null | null | null | application/pages/training_analysis/models/performance_curve.py | Jhsmit/awesome-panel | 53f7754f7c505a2666f6724df26c851ae942ec40 | [
"Apache-2.0"
] | null | null | null | """This module contains functionality to model a Performance Curve
An example is a Power Curve
"""
import datetime
import param
DATE_BOUNDS = (
datetime.date(1980, 1, 1,),
datetime.datetime.now().date(),
)
class PerformanceCurve(param.Parameterized):
"""A Model of a Performance Curve
... | 42.529412 | 85 | 0.688797 | 327 | 2,169 | 4.382263 | 0.235474 | 0.100488 | 0.136078 | 0.219819 | 0.459177 | 0.459177 | 0.436148 | 0.318214 | 0.318214 | 0.318214 | 0 | 0.095238 | 0.17704 | 2,169 | 50 | 86 | 43.38 | 0.707563 | 0.094514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.891892 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
242aa377a65320f1a5db35c6ca6b4e487643ce7b | 19,387 | py | Python | camera_module.py | RoboQYD/cobblr-camera | 21195fda4c6fd8edd62e5d32d893945d669c5c29 | [
"MIT"
] | 1 | 2020-08-08T07:39:14.000Z | 2020-08-08T07:39:14.000Z | camera_module.py | RoboQYD/cobblr-camera | 21195fda4c6fd8edd62e5d32d893945d669c5c29 | [
"MIT"
] | null | null | null | camera_module.py | RoboQYD/cobblr-camera | 21195fda4c6fd8edd62e5d32d893945d669c5c29 | [
"MIT"
] | null | null | null | """camera_module.py: Cobblr module that uses PiTFT and RPi camera to take pictures."""
__author__ = 'Qasim Dove'
__credit__ = ['Cliff Dove', '<name of persons>']
__license__ = "GPL"
__version__ = "1.0.1"
__email__ = "emailqasim@gmail.com"
from engine import Screen
from engine import Utilities
from engine import TextWr... | 37.865234 | 133 | 0.724558 | 2,304 | 19,387 | 5.925347 | 0.174479 | 0.257838 | 0.106798 | 0.053179 | 0.487401 | 0.413273 | 0.372619 | 0.321345 | 0.215573 | 0.197041 | 0 | 0.026184 | 0.156858 | 19,387 | 511 | 134 | 37.939335 | 0.809005 | 0.03327 | 0 | 0.308235 | 0 | 0 | 0.098838 | 0 | 0 | 0 | 0 | 0.001957 | 0 | 0 | null | null | 0.002353 | 0.030588 | null | null | 0.007059 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
244d554457d0ca56f046aa4593dd5c61e2327aed | 1,514 | py | Python | Pipeline/tokens.py | wcex1994/EssAI | 968f07d06f4d49a1538fb56fe505f13ff5f6fa8e | [
"MIT"
] | null | null | null | Pipeline/tokens.py | wcex1994/EssAI | 968f07d06f4d49a1538fb56fe505f13ff5f6fa8e | [
"MIT"
] | null | null | null | Pipeline/tokens.py | wcex1994/EssAI | 968f07d06f4d49a1538fb56fe505f13ff5f6fa8e | [
"MIT"
] | 1 | 2021-05-06T21:55:33.000Z | 2021-05-06T21:55:33.000Z | #=================================================================
# Libraries
#=================================================================
from pipeline.utils import *
from scipy import stats as s
import pandas as pd
# This language model will be used for tokenizing and pos tagging
import spacy
nlp = spacy... | 27.527273 | 69 | 0.463672 | 132 | 1,514 | 5.272727 | 0.484848 | 0.04023 | 0.028736 | 0.045977 | 0.063218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200793 | 1,514 | 55 | 70 | 27.527273 | 0.575207 | 0.446499 | 0 | 0 | 0 | 0 | 0.190101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
245e1b6622cdee6011e085cb77dbb85c6c0b9048 | 701 | py | Python | setup.py | SeoJeongYeop/kakaopy | a9865b56ab19abed5443d5558f9b979b36dd594a | [
"MIT"
] | null | null | null | setup.py | SeoJeongYeop/kakaopy | a9865b56ab19abed5443d5558f9b979b36dd594a | [
"MIT"
] | null | null | null | setup.py | SeoJeongYeop/kakaopy | a9865b56ab19abed5443d5558f9b979b36dd594a | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
# the setup script
setup(
name="kakaopy",
version = "0.2.0",
description = "kakao search API customizing",
long_description = open('README.md').read(),
long_description_content_type = "text/markdown",
url = "https://github.com/SeoJeongYeop/kakaopy",
... | 30.478261 | 52 | 0.633381 | 77 | 701 | 5.662338 | 0.701299 | 0.130734 | 0.172018 | 0.178899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018315 | 0.221113 | 701 | 23 | 53 | 30.478261 | 0.78022 | 0.022825 | 0 | 0 | 0 | 0 | 0.419591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
24646c642cf3b216437970f6a8055f313680560d | 525 | py | Python | src/lib/trains/train_factory.py | whklwhkl/CenterNet | a87f1e972528081505f89c9ede4d3bdd9aadb2ce | [
"MIT"
] | null | null | null | src/lib/trains/train_factory.py | whklwhkl/CenterNet | a87f1e972528081505f89c9ede4d3bdd9aadb2ce | [
"MIT"
] | null | null | null | src/lib/trains/train_factory.py | whklwhkl/CenterNet | a87f1e972528081505f89c9ede4d3bdd9aadb2ce | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .ctdet import CtdetTrainer
from .ddd import DddTrainer
from .exdet import ExdetTrainer
from .multi_pose import MultiPoseTrainer
from .pdet import PdetTrainer
from .no_gt_hm import Trainer
from .logwh impor... | 23.863636 | 40 | 0.786667 | 63 | 525 | 6.238095 | 0.428571 | 0.076336 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.142857 | 525 | 21 | 41 | 25 | 0.868889 | 0 | 0 | 0 | 0 | 0 | 0.078095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.526316 | 0 | 0.526316 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
246c2af4a4ae2f416a3da6f092fea66a6c835abc | 606 | py | Python | x_rebirth_station_calculator/station_data/modules/spice_tubes.py | Phipsz/XRebirthStationCalculator | ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835 | [
"MIT"
] | 1 | 2016-04-17T11:00:22.000Z | 2016-04-17T11:00:22.000Z | x_rebirth_station_calculator/station_data/modules/spice_tubes.py | Phipsz/XRebirthStationCalculator | ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835 | [
"MIT"
] | null | null | null | x_rebirth_station_calculator/station_data/modules/spice_tubes.py | Phipsz/XRebirthStationCalculator | ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835 | [
"MIT"
] | null | null | null | from x_rebirth_station_calculator.station_data.station_base import Module
from x_rebirth_station_calculator.station_data.station_base import Production
from x_rebirth_station_calculator.station_data.station_base import Consumption
from x_rebirth_station_calculator.station_data import wares
names = {'L044': 'Spice Tube... | 40.4 | 78 | 0.772277 | 69 | 606 | 6.507246 | 0.405797 | 0.044543 | 0.106904 | 0.169265 | 0.469933 | 0.469933 | 0.469933 | 0.380846 | 0.380846 | 0.380846 | 0 | 0.032505 | 0.136964 | 606 | 14 | 79 | 43.285714 | 0.826004 | 0 | 0 | 0 | 0 | 0 | 0.080858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
79e661dd9cf84e62462770be9ed60dad3dbcfc41 | 473 | py | Python | ex041.py | carlosvcerqueira/Projetos-Python | 2fb91a0be8abf436af6a1d57fb2a1eafd0d30394 | [
"MIT"
] | null | null | null | ex041.py | carlosvcerqueira/Projetos-Python | 2fb91a0be8abf436af6a1d57fb2a1eafd0d30394 | [
"MIT"
] | null | null | null | ex041.py | carlosvcerqueira/Projetos-Python | 2fb91a0be8abf436af6a1d57fb2a1eafd0d30394 | [
"MIT"
] | null | null | null | from datetime import date
ano = int(input('Ano de nascimento: '))
atual = date.today().year
idade = atual - ano
print('Atletas nascidos em {} tem {} anos em {}.'.format(ano, idade, atual))
if idade <= 9:
print('Sua categoria é a MIRIM.')
elif idade <= 14:
print('Sua categoria é a INFANTIL.')
elif idade... | 31.533333 | 77 | 0.634249 | 71 | 473 | 4.225352 | 0.507042 | 0.133333 | 0.283333 | 0.3 | 0.316667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01897 | 0.219873 | 473 | 15 | 78 | 31.533333 | 0.794038 | 0 | 0 | 0 | 0 | 0 | 0.404348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
79ed0150e2975215bacda31f634a8cc0d5af3519 | 1,721 | py | Python | stac/catalog.py | raphaelrpl/stac.py | 5d63930e2921d6b161f46b66b36fc06ac7d66b45 | [
"MIT"
] | null | null | null | stac/catalog.py | raphaelrpl/stac.py | 5d63930e2921d6b161f46b66b36fc06ac7d66b45 | [
"MIT"
] | null | null | null | stac/catalog.py | raphaelrpl/stac.py | 5d63930e2921d6b161f46b66b36fc06ac7d66b45 | [
"MIT"
] | null | null | null | #
# This file is part of Python Client Library for STAC.
# Copyright (C) 2019 INPE.
#
# Python Client Library for STAC is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""STAC Catalog module."""
import json
from pkg_resources import ... | 27.31746 | 103 | 0.636839 | 212 | 1,721 | 5.061321 | 0.396226 | 0.055918 | 0.060578 | 0.074557 | 0.048462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003113 | 0.253341 | 1,721 | 62 | 104 | 27.758065 | 0.831907 | 0.382336 | 0 | 0.2 | 0 | 0 | 0.085193 | 0.044625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0305af5db9f726aaa64cc75a60e2763ed54c1551 | 1,351 | py | Python | wikimetrics/models/mediawiki/user.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 6 | 2015-01-28T05:59:08.000Z | 2018-01-09T07:48:57.000Z | wikimetrics/models/mediawiki/user.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 2 | 2020-05-09T16:36:43.000Z | 2020-05-09T16:52:35.000Z | wikimetrics/models/mediawiki/user.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 1 | 2016-01-13T07:19:44.000Z | 2016-01-13T07:19:44.000Z | from sqlalchemy import Column, Integer, String
from wikimetrics.configurables import db
from custom_columns import MediawikiTimestamp
from sqlalchemy.dialects.mysql import TINYBLOB, VARBINARY
from wikimetrics.utils import UNICODE_NULL
__all__ = ['MediawikiUser']
class MediawikiUser(db.MediawikiBase):
__tablename... | 45.033333 | 88 | 0.77054 | 158 | 1,351 | 6.379747 | 0.424051 | 0.077381 | 0.119048 | 0.095238 | 0.217262 | 0.144841 | 0 | 0 | 0 | 0 | 0 | 0.016507 | 0.148038 | 1,351 | 29 | 89 | 46.586207 | 0.859253 | 0.126573 | 0 | 0 | 0 | 0 | 0.014456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.136364 | 0.227273 | 0 | 0.954545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
03065ba630a6d136eb37f39bb20a9d93bbd61d07 | 204 | py | Python | testes/aprender.py | robertoweller/python | b01939810f7eb388f4b79bfad00abc5fb293d8dd | [
"MIT"
] | null | null | null | testes/aprender.py | robertoweller/python | b01939810f7eb388f4b79bfad00abc5fb293d8dd | [
"MIT"
] | null | null | null | testes/aprender.py | robertoweller/python | b01939810f7eb388f4b79bfad00abc5fb293d8dd | [
"MIT"
] | null | null | null | import unittest
# unittest.TestCase.assertEqual(20, 20)
class SomaOperador(unittest.TestCase):
def principal(self):
self.assertEqual(21, 20)
if __name__ == '__name__':
unittest.main()
| 17 | 39 | 0.70098 | 23 | 204 | 5.869565 | 0.608696 | 0.237037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.176471 | 204 | 11 | 40 | 18.545455 | 0.755952 | 0.181373 | 0 | 0 | 0 | 0 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
03158b99989b37071196a199c3aa53a09ed2f621 | 701 | py | Python | src/stack_exchange_graph_data/helpers/__init__.py | Peilonrayz/stack_exchange_graph_data | d2d8d9f80dba727509f98b31d25e20e1e3824bb3 | [
"MIT"
] | null | null | null | src/stack_exchange_graph_data/helpers/__init__.py | Peilonrayz/stack_exchange_graph_data | d2d8d9f80dba727509f98b31d25e20e1e3824bb3 | [
"MIT"
] | null | null | null | src/stack_exchange_graph_data/helpers/__init__.py | Peilonrayz/stack_exchange_graph_data | d2d8d9f80dba727509f98b31d25e20e1e3824bb3 | [
"MIT"
] | null | null | null | """
Helper modules.
These should be stand alone modules that could reasonably be their own
PyPI package. This comes with two benefits:
1. The library is void of any business data, which makes it easier to
understand.
2. It means that it is decoupled making it easy to reuse the code in
different sections of the ... | 41.235294 | 74 | 0.774608 | 117 | 701 | 4.547009 | 0.65812 | 0.073308 | 0.101504 | 0.12406 | 0.165414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003436 | 0.169757 | 701 | 16 | 75 | 43.8125 | 0.910653 | 0.987161 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
031c361baf63684c24ca6b6f4a46e6a84603e677 | 616 | py | Python | tests/providers/spotify/test_spotify_playlist_provider.py | yawks/music_explorer_backend | 26ec17234a542f86d9c03b0256c22dbbef1f827f | [
"MIT"
] | null | null | null | tests/providers/spotify/test_spotify_playlist_provider.py | yawks/music_explorer_backend | 26ec17234a542f86d9c03b0256c22dbbef1f827f | [
"MIT"
] | null | null | null | tests/providers/spotify/test_spotify_playlist_provider.py | yawks/music_explorer_backend | 26ec17234a542f86d9c03b0256c22dbbef1f827f | [
"MIT"
] | null | null | null | from providers.spotify.spotify_id import SpotifyId
from providers.entities.playlist import Playlist
from typing import List
from providers.entities.song import Song
from providers.spotify.spotify_playlist_provider import SpotifyPlaylistProvider
def test_search():
spotify_playlist_provider: SpotifyPlaylistProvider... | 36.235294 | 81 | 0.769481 | 67 | 616 | 6.925373 | 0.477612 | 0.112069 | 0.148707 | 0.116379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011605 | 0.160714 | 616 | 16 | 82 | 38.5 | 0.88588 | 0 | 0 | 0 | 0 | 0 | 0.094156 | 0.035714 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | true | 0 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
031e1cea2fa30cd64ab64f1e49b216656619d84a | 1,620 | py | Python | script.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | script.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | script.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | from registration.models import Participant, College, verificationEmail
from intro.models import IntroReg
from registration.views import generate_password
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.template.loader import render_to_string, get_template
from dj... | 36.818182 | 139 | 0.772222 | 225 | 1,620 | 5.457778 | 0.44 | 0.058632 | 0.026873 | 0.029316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009777 | 0.116049 | 1,620 | 44 | 140 | 36.818182 | 0.847765 | 0 | 0 | 0.15 | 1 | 0 | 0.05984 | 0.014189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.025 | 0.325 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
03372d9d2923a65bb5565216b82e4aff815a471e | 1,873 | py | Python | test/test_files/pylops/pylops/basicoperators/LinearRegression.py | SoftwareUnderstanding/inspect4py | 9c4d7252535082ad938b26baf281d93f3a27285e | [
"BSD-3-Clause"
] | 2 | 2022-02-15T20:30:57.000Z | 2022-03-17T00:50:37.000Z | test/test_files/pylops/pylops/basicoperators/LinearRegression.py | SoftwareUnderstanding/code_inspector | a820b5a7bb18f5df9c3e79346108d8280b20c39a | [
"BSD-3-Clause"
] | 101 | 2021-06-09T14:19:59.000Z | 2022-01-24T13:24:39.000Z | test/test_files/pylops/pylops/basicoperators/LinearRegression.py | SoftwareUnderstanding/inspect4py | 9c4d7252535082ad938b26baf281d93f3a27285e | [
"BSD-3-Clause"
] | 1 | 2021-09-22T06:59:32.000Z | 2021-09-22T06:59:32.000Z | import logging
from pylops.basicoperators import Regression
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARNING)
def LinearRegression(taxis, dtype='float64'):
r"""Linear regression.
Creates an operator that applies linear regression to a set of points.
Values along the t-axis ... | 26.013889 | 79 | 0.583556 | 243 | 1,873 | 4.44856 | 0.489712 | 0.009251 | 0.016651 | 0.024052 | 0.009251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01283 | 0.292579 | 1,873 | 71 | 80 | 26.380282 | 0.803019 | 0.760812 | 0 | 0 | 0 | 0 | 0.134694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
033b77ead3426e690ffefe9c97e39f3c5c44d0b5 | 1,079 | py | Python | test/test_bonddatabase.py | jag1g13/pdb2lmp | d0cf344f0a71297a09e6bd589bd3dc727a159d98 | [
"MIT"
] | 8 | 2016-06-25T13:09:32.000Z | 2020-09-11T08:17:29.000Z | test/test_bonddatabase.py | jag1g13/pdb2lmp | d0cf344f0a71297a09e6bd589bd3dc727a159d98 | [
"MIT"
] | 4 | 2016-12-07T16:13:43.000Z | 2017-10-13T14:44:06.000Z | test/test_bonddatabase.py | jag1g13/pdb2lmp | d0cf344f0a71297a09e6bd589bd3dc727a159d98 | [
"MIT"
] | 1 | 2018-06-10T01:09:58.000Z | 2018-06-10T01:09:58.000Z | import unittest
from lib.bonddatabase import BondDatabase
class TestBondDatabase(unittest.TestCase):
def test_open_database(self):
db = BondDatabase()
def test_read_database(self):
db = BondDatabase()
self.assertTrue("sugar-ring" in db.length)
self.assertEqual(db.length["suga... | 35.966667 | 85 | 0.663577 | 144 | 1,079 | 4.888889 | 0.326389 | 0.170455 | 0.193182 | 0.073864 | 0.454545 | 0.454545 | 0.198864 | 0 | 0 | 0 | 0 | 0.046275 | 0.178869 | 1,079 | 29 | 86 | 37.206897 | 0.748307 | 0 | 0 | 0.095238 | 0 | 0 | 0.21316 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.238095 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
033edb96705c66668b782fccefda5d7e19ae6219 | 189 | py | Python | JuHPLC/apps.py | FZJ-INM5/JuHPLC | efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c | [
"Unlicense"
] | 1 | 2018-09-24T06:59:11.000Z | 2018-09-24T06:59:11.000Z | JuHPLC/apps.py | FZJ-INM5/JuHPLC | efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c | [
"Unlicense"
] | 1 | 2021-02-05T22:23:57.000Z | 2021-02-05T22:23:57.000Z | JuHPLC/apps.py | FZJ-INM5/JuHPLC | efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c | [
"Unlicense"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class JuhplcConfig(AppConfig):
name = 'JuHPLC'
verbose_name = name
def ready(self):
pass | 13.5 | 39 | 0.703704 | 22 | 189 | 5.772727 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 189 | 14 | 40 | 13.5 | 0.881944 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0340b41915ed791801c666ee509ed6857af24fb9 | 885 | py | Python | code/pyorg/scripts/syn/reduce_tomo_tilts.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 12 | 2020-01-08T01:33:02.000Z | 2022-03-16T00:25:34.000Z | code/pyorg/scripts/syn/reduce_tomo_tilts.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 8 | 2019-12-19T19:34:56.000Z | 2022-03-10T10:11:28.000Z | code/pyorg/scripts/syn/reduce_tomo_tilts.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 2 | 2022-03-30T13:12:22.000Z | 2022-03-30T18:12:10.000Z | """
Reduce the tilt series or micrographs within a stack
Input: - Micrographs stack
- *.order file with two columns; tilt angle, dose in e-/A**2
- Range of valid angles
Output: - Stack with some micrograph extracted
- *.order file with only the tilt angles selected
... | 25.285714 | 88 | 0.529944 | 98 | 885 | 4.673469 | 0.642857 | 0.045852 | 0.056769 | 0.065502 | 0.144105 | 0.144105 | 0.144105 | 0 | 0 | 0 | 0 | 0.008357 | 0.188701 | 885 | 35 | 89 | 25.285714 | 0.629526 | 0.438418 | 0 | 0 | 0 | 0 | 0.371648 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.7 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
034f3ce858c03d199f1b5c0ce47e0e35a84dabba | 1,766 | py | Python | pyqode/core/managers/decorations.py | SunChuquin/pyqode.core | edf29204446e3679701e74343288cf692eb07d86 | [
"MIT"
] | 42 | 2018-05-02T07:07:27.000Z | 2022-02-01T19:49:49.000Z | pyqode/core/managers/decorations.py | SunChuquin/pyqode.core | edf29204446e3679701e74343288cf692eb07d86 | [
"MIT"
] | 65 | 2018-03-08T11:53:13.000Z | 2018-09-17T09:00:09.000Z | Lib/site-packages/hackedit/vendor/pyqode/core/managers/decorations.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 24 | 2015-01-09T14:16:41.000Z | 2021-12-06T15:11:22.000Z | """
Contains the text decorations manager
"""
import logging
from pyqode.core.api.manager import Manager
def _logger():
return logging.getLogger(__name__)
class TextDecorationsManager(Manager):
"""
Manages the collection of TextDecoration that have been set on the editor
widget.
"""
def __in... | 26.757576 | 77 | 0.624009 | 175 | 1,766 | 6.102857 | 0.371429 | 0.168539 | 0.036517 | 0.089888 | 0.324906 | 0.17603 | 0.099251 | 0 | 0 | 0 | 0 | 0 | 0.296149 | 1,766 | 65 | 78 | 27.169231 | 0.859212 | 0.249151 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0.030303 | 0.060606 | 0.090909 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
037a7d0d9ae521bdbd2075c88854badbf66328e6 | 493 | py | Python | test_sniffer.py | lanfis/Spider | c66f1d134733318a8714c544050ca42e08b9fe0e | [
"MIT"
] | null | null | null | test_sniffer.py | lanfis/Spider | c66f1d134733318a8714c544050ca42e08b9fe0e | [
"MIT"
] | null | null | null | test_sniffer.py | lanfis/Spider | c66f1d134733318a8714c544050ca42e08b9fe0e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# license removed for brevity
import requests
from scapy.all import *
import sys
import os
current_folder = os.path.dirname(os.path.realpath(__file__))
sys.path.append(current_folder)
from modules.IPParser import IPParser
from modules.Sniffer import Sniffer
print("sniffer startin... | 23.47619 | 135 | 0.718053 | 70 | 493 | 4.942857 | 0.628571 | 0.075145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014458 | 0.158215 | 493 | 20 | 136 | 24.65 | 0.819277 | 0.21501 | 0 | 0 | 0 | 0 | 0.063536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cee82efcb8841d1cf048637bc603d708c9c3237a | 68 | py | Python | rest_framework_json_schema/__init__.py | greenroxana/drf-json-schema | 7525a3f54d14ca0ac15efc6fad7a06cc6a05aced | [
"MIT"
] | 15 | 2017-01-31T22:58:59.000Z | 2021-07-02T14:19:38.000Z | rest_framework_json_schema/__init__.py | greenroxana/drf-json-schema | 7525a3f54d14ca0ac15efc6fad7a06cc6a05aced | [
"MIT"
] | 13 | 2017-04-05T17:53:10.000Z | 2021-06-02T22:21:55.000Z | rest_framework_json_schema/__init__.py | greenroxana/drf-json-schema | 7525a3f54d14ca0ac15efc6fad7a06cc6a05aced | [
"MIT"
] | 4 | 2021-04-17T18:46:23.000Z | 2021-05-18T08:35:15.000Z | """Top-level package for drf-json-schema."""
__version__ = "0.4.1"
| 17 | 44 | 0.661765 | 11 | 68 | 3.727273 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.117647 | 68 | 3 | 45 | 22.666667 | 0.633333 | 0.558824 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
301a30b5257d73e6779d5dd6fa7f27d89a6ac738 | 515 | py | Python | msgboard/tests.py | Yarboa/beyond-tutorial | 12f9c2c2ed8def396042bda51084d9697378b95a | [
"MIT"
] | null | null | null | msgboard/tests.py | Yarboa/beyond-tutorial | 12f9c2c2ed8def396042bda51084d9697378b95a | [
"MIT"
] | 1 | 2020-11-15T16:07:00.000Z | 2020-11-15T16:07:23.000Z | msgboard/tests.py | Yarboa/beyond-tutorial | 12f9c2c2ed8def396042bda51084d9697378b95a | [
"MIT"
] | 1 | 2022-03-27T09:55:26.000Z | 2022-03-27T09:55:26.000Z | # import pytest
def test_with_authenticated_client(client, django_user_model):
username = "admin"
password = "123456"
django_user_model.objects.create_user(username=username, password=password)
# Use this:
# client.login(username=username, password=password)
response = client.get('/')
asse... | 32.1875 | 79 | 0.72233 | 61 | 515 | 5.918033 | 0.491803 | 0.116343 | 0.141274 | 0.199446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035047 | 0.168932 | 515 | 15 | 80 | 34.333333 | 0.808411 | 0.143689 | 0 | 0 | 0 | 0 | 0.064073 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0.2 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
302d70f0d066771793fc733e45f3e69d6c2e34b1 | 707 | py | Python | base_import_map/__manifest__.py | ShaheenHossain/itpp-labs-misc-addons13 | bf62dc5bc1abdc18d78e9560a286babbe1d0e082 | [
"MIT"
] | null | null | null | base_import_map/__manifest__.py | ShaheenHossain/itpp-labs-misc-addons13 | bf62dc5bc1abdc18d78e9560a286babbe1d0e082 | [
"MIT"
] | null | null | null | base_import_map/__manifest__.py | ShaheenHossain/itpp-labs-misc-addons13 | bf62dc5bc1abdc18d78e9560a286babbe1d0e082 | [
"MIT"
] | 3 | 2020-08-25T01:57:59.000Z | 2021-09-11T15:38:02.000Z | # -*- coding: utf-8 -*-
{
"name": "Import Settings",
"vesion": "10.0.1.0.0",
"summary": "Allows to save import settings to don't specify columns to fields mapping each time.",
"category": "Extra Tools",
"images": ["images/icon.png"],
"author": "IT-Projects LLC, Dinar Gabbasov",
"website": "h... | 30.73913 | 102 | 0.594059 | 86 | 707 | 4.77907 | 0.802326 | 0.072993 | 0.072993 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019856 | 0.216407 | 707 | 22 | 103 | 32.136364 | 0.722022 | 0.035361 | 0 | 0 | 0 | 0 | 0.646539 | 0.136966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.238095 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
303231e21f7a682e11dc5117a1d01c4b60a2563d | 201 | py | Python | consumer_assign_partition.py | mario21ic/python-kafka-demo | 99f6b5f21759f51e81ac5364774ecdf3211be052 | [
"MIT"
] | null | null | null | consumer_assign_partition.py | mario21ic/python-kafka-demo | 99f6b5f21759f51e81ac5364774ecdf3211be052 | [
"MIT"
] | null | null | null | consumer_assign_partition.py | mario21ic/python-kafka-demo | 99f6b5f21759f51e81ac5364774ecdf3211be052 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from kafka import KafkaConsumer, TopicPartition
consumer = KafkaConsumer(bootstrap_servers='localhost:9092')
consumer.assign([TopicPartition('foobar', 2)])
msg = next(consumer)
| 25.125 | 60 | 0.78607 | 23 | 201 | 6.826087 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.084577 | 201 | 7 | 61 | 28.714286 | 0.826087 | 0.099502 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3035ab8eeb71094ab56022fcf251985f3b343c61 | 315 | py | Python | src/cookbook/__init__.py | Vidreven/cookbook | 6b1e058b6c5aaa5a829172935a0bb8bbb23a1a50 | [
"MIT"
] | null | null | null | src/cookbook/__init__.py | Vidreven/cookbook | 6b1e058b6c5aaa5a829172935a0bb8bbb23a1a50 | [
"MIT"
] | null | null | null | src/cookbook/__init__.py | Vidreven/cookbook | 6b1e058b6c5aaa5a829172935a0bb8bbb23a1a50 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from . import config
URL = (
f"{config.DB_DRIVER}://{config.DB_USER}:{config.DB_PWD}"
f"@{config.DB_HOST}:{config.DB_PORT}/{config.DB_NAME}"
)
engine = create_engine(URL, pool_pre_ping=True)
Session = sessionmaker(bind=engine)
| 24.230769 | 60 | 0.749206 | 46 | 315 | 4.913043 | 0.5 | 0.212389 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 315 | 12 | 61 | 26.25 | 0.810036 | 0 | 0 | 0 | 0 | 0 | 0.330159 | 0.330159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
303d1e8ad32842d926b29449c1f9342505289f7d | 310 | py | Python | dedis_cluster/exceptions.py | feiwenchaoyes/dedis-cluster | 88ff3dc0446581207a16bc7038790c45354b3aad | [
"MIT"
] | 1 | 2021-11-17T03:37:43.000Z | 2021-11-17T03:37:43.000Z | dedis_cluster/exceptions.py | hifeiwenchao/dedis-cluster | 88ff3dc0446581207a16bc7038790c45354b3aad | [
"MIT"
] | 1 | 2019-12-02T06:50:51.000Z | 2019-12-02T06:52:00.000Z | dedis_cluster/exceptions.py | hifeiwenchao/dedis-cluster | 88ff3dc0446581207a16bc7038790c45354b3aad | [
"MIT"
] | null | null | null |
class ConnectionInterrupted(Exception):
"""连接中断异常"""
def __str__(self):
error_type = self.__class__.__name__
error_msg = "An error occurred while connecting to redis cluster"
return "Redis Cluster %s: %s" % (error_type, error_msg)
class CompressorError(Exception):
pass
| 23.846154 | 73 | 0.680645 | 35 | 310 | 5.571429 | 0.628571 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222581 | 310 | 12 | 74 | 25.833333 | 0.809129 | 0.019355 | 0 | 0 | 0 | 0 | 0.239057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
30576fbd745221661d0dda26c9fe4927e43113c1 | 527 | py | Python | optimizer/util/timeutil.py | lgasyou/spark-scheduler-configuration-optimizer | 05c0ea9411db642c7c7e675a6949ffcc6814947a | [
"MIT"
] | 1 | 2019-11-26T08:10:52.000Z | 2019-11-26T08:10:52.000Z | optimizer/util/timeutil.py | lgasyou/spark-scheduler-configuration-optimizer | 05c0ea9411db642c7c7e675a6949ffcc6814947a | [
"MIT"
] | 1 | 2019-12-24T06:40:07.000Z | 2019-12-24T06:40:07.000Z | optimizer/util/timeutil.py | lgasyou/spark-scheduler-configuration-optimizer | 05c0ea9411db642c7c7e675a6949ffcc6814947a | [
"MIT"
] | 2 | 2019-08-28T15:10:10.000Z | 2019-11-26T08:10:36.000Z | import time
GMT_FORMAT = '%Y-%m-%dT%H:%M:%S.%fGMT'
TIME_ADDITION = 8 * 3600 * 1000
def convert_str_to_timestamp(time_str: str) -> int:
ms = int(time_str.split('.')[1][:3])
return int(time.mktime(time.strptime(time_str, GMT_FORMAT))) * 1000 + TIME_ADDITION + ms
def convert_timestamp_to_str(timestamp: int, ... | 26.35 | 92 | 0.666034 | 86 | 527 | 3.883721 | 0.406977 | 0.062874 | 0.017964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052036 | 0.16129 | 527 | 19 | 93 | 27.736842 | 0.70362 | 0 | 0 | 0 | 0 | 0 | 0.077799 | 0.043643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
305b609c4945188bed3a21cdafdd5cb70de803c0 | 3,171 | py | Python | src/Setup.py | Playerz21/Game-Jam | 47df54b7dfc8d3e1bbada314103841d19a036b98 | [
"Apache-2.0"
] | null | null | null | src/Setup.py | Playerz21/Game-Jam | 47df54b7dfc8d3e1bbada314103841d19a036b98 | [
"Apache-2.0"
] | null | null | null | src/Setup.py | Playerz21/Game-Jam | 47df54b7dfc8d3e1bbada314103841d19a036b98 | [
"Apache-2.0"
] | null | null | null | '''Imports'''
import pygame
pygame.init()
'''Vars'''
WIDTH=1000
HEIGHT=600
FPS=60
i=0
wn=pygame.display.set_mode((WIDTH,HEIGHT))
pygame.display.set_caption("Game Jam Project")
'''Images'''
#Background Images
bg=pygame.image.load('../Assets/background.jpg')
bg=pygame.transform.scale(bg, (WIDTH, HEIGHT))... | 37.75 | 97 | 0.725323 | 457 | 3,171 | 4.954048 | 0.251641 | 0.172261 | 0.185512 | 0.185512 | 0.333039 | 0.272527 | 0.260601 | 0.083922 | 0.051237 | 0.051237 | 0 | 0.043136 | 0.078839 | 3,171 | 84 | 98 | 37.75 | 0.731941 | 0.023336 | 0 | 0 | 0 | 0 | 0.166044 | 0.048217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.016949 | 0 | 0.067797 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
306c9917bc50c69a59dcdfa61075dc6a4deec8b7 | 333 | py | Python | src/notelist/schemas/search.py | jajimenez/notelist | 5c4259126f40379cc31af6cde8713409e77c1d0b | [
"MIT"
] | 1 | 2021-06-01T14:04:08.000Z | 2021-06-01T14:04:08.000Z | src/notelist/schemas/search.py | jajimenez/notelist | 5c4259126f40379cc31af6cde8713409e77c1d0b | [
"MIT"
] | null | null | null | src/notelist/schemas/search.py | jajimenez/notelist | 5c4259126f40379cc31af6cde8713409e77c1d0b | [
"MIT"
] | null | null | null | """Search schemas module."""
from marshmallow import Schema
from marshmallow.fields import Str
from marshmallow.validate import Length
class SearchSchema(Schema):
"""Search schema."""
search = Str(
validate=Length(min=2, max=200),
required=True,
error_messages={"required": "Field is ... | 22.2 | 58 | 0.684685 | 38 | 333 | 5.973684 | 0.605263 | 0.198238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.195195 | 333 | 14 | 59 | 23.785714 | 0.83209 | 0.111111 | 0 | 0 | 0 | 0 | 0.091228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
061d77206e3f81e9bbb52f0f84675935bedc7464 | 210 | py | Python | utils_spell.py | MangoMoe/dnd-spell-generator | 8df416c2eef03fb1d1a4bd20c3f1d155dbf6b16a | [
"Apache-2.0"
] | null | null | null | utils_spell.py | MangoMoe/dnd-spell-generator | 8df416c2eef03fb1d1a4bd20c3f1d155dbf6b16a | [
"Apache-2.0"
] | null | null | null | utils_spell.py | MangoMoe/dnd-spell-generator | 8df416c2eef03fb1d1a4bd20c3f1d155dbf6b16a | [
"Apache-2.0"
] | null | null | null | import glob
def load_spells_list():
spells_list = []
for fil in glob.glob("spells/*.txt"):
with open(fil) as spell_file:
spells_list.append(spell_file.read())
return spells_list | 26.25 | 49 | 0.647619 | 30 | 210 | 4.3 | 0.6 | 0.310078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 210 | 8 | 50 | 26.25 | 0.80625 | 0 | 0 | 0 | 0 | 0 | 0.056872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 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 | 0 | 0 | 2 |
061ec6c76816f23d9cc40d47fa829e6df2b3bf4f | 505 | py | Python | src/utils/optim.py | yetongxin/math_algo | ae8797e02f113c6e26165c5fe1ec68503da63009 | [
"MIT"
] | 15 | 2019-08-11T07:08:40.000Z | 2021-07-15T02:42:42.000Z | src/utils/optim.py | yetongxin/math_algo | ae8797e02f113c6e26165c5fe1ec68503da63009 | [
"MIT"
] | 1 | 2019-10-22T08:18:36.000Z | 2020-09-22T17:12:37.000Z | src/utils/optim.py | yetongxin/math_algo | ae8797e02f113c6e26165c5fe1ec68503da63009 | [
"MIT"
] | 7 | 2019-08-05T06:46:51.000Z | 2021-11-11T06:52:51.000Z | import itertools
import torch
class Optimizer(object):
_ARG_MAX_GRAD_NORM = 'max_grad_norm'
def __init__(self, optim, max_grad_norm=0):
self.optimizer = optim
self.max_grad_norm = max_grad_norm
def step(self):
if self.max_grad_norm>0:
params = itertools.chain.from_ite... | 26.578947 | 75 | 0.663366 | 69 | 505 | 4.507246 | 0.42029 | 0.205788 | 0.247588 | 0.144695 | 0.160772 | 0.160772 | 0.160772 | 0 | 0 | 0 | 0 | 0.005236 | 0.243564 | 505 | 18 | 76 | 28.055556 | 0.808901 | 0 | 0 | 0 | 0 | 0 | 0.037698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0637472a8705fb219fa83287a3db6d02e2ac18b8 | 14,975 | py | Python | pysnmp-with-texts/HP-ICF-CHAIN.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HP-ICF-CHAIN.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HP-ICF-CHAIN.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HP-ICF-CHAIN (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-CHAIN
# Produced by pysmi-0.3.4 at Wed May 1 13:33:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 142.619048 | 1,160 | 0.774558 | 1,890 | 14,975 | 6.135979 | 0.18254 | 0.047599 | 0.083297 | 0.009658 | 0.416487 | 0.304303 | 0.286108 | 0.276192 | 0.241614 | 0.241614 | 0 | 0.051347 | 0.105242 | 14,975 | 104 | 1,161 | 143.990385 | 0.814165 | 0.021235 | 0 | 0.06383 | 0 | 0.138298 | 0.394525 | 0.005939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074468 | 0 | 0.074468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
063fddd86e70d2d550ef2ae69e972591243cef7c | 216 | py | Python | project/Python/other/0621dmo.py | lcscim/python-demo | c312b53f9a0f845051e6b9966d030753505d6c56 | [
"Apache-2.0"
] | null | null | null | project/Python/other/0621dmo.py | lcscim/python-demo | c312b53f9a0f845051e6b9966d030753505d6c56 | [
"Apache-2.0"
] | null | null | null | project/Python/other/0621dmo.py | lcscim/python-demo | c312b53f9a0f845051e6b9966d030753505d6c56 | [
"Apache-2.0"
] | null | null | null | import urllib.request
req = urllib.request.Request('http://placekitten.com/g/500/600')
response = urllib.request.urlopen(req)
cat_img = response.read()
with open('cat_500_600.jpg','wb') as f:
f.write(cat_img)
| 21.6 | 64 | 0.726852 | 35 | 216 | 4.371429 | 0.628571 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062176 | 0.106481 | 216 | 9 | 65 | 24 | 0.73057 | 0 | 0 | 0 | 0 | 0 | 0.226852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 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 | 0 | 0 | 2 |
0640f75abe28cb1fc123d7d87059d0a46f5cbcd1 | 3,101 | py | Python | pglet/slider.py | pglet/pglet-python | 31f65083d68888661d4780322c26bfc57c091e1c | [
"MIT"
] | 12 | 2021-05-01T17:49:57.000Z | 2022-02-12T21:20:56.000Z | pglet/slider.py | pglet/pglet-python | 31f65083d68888661d4780322c26bfc57c091e1c | [
"MIT"
] | 47 | 2021-01-22T18:31:22.000Z | 2022-03-24T00:17:03.000Z | pglet/slider.py | pglet/pglet-python | 31f65083d68888661d4780322c26bfc57c091e1c | [
"MIT"
] | 10 | 2021-02-08T19:13:42.000Z | 2022-03-26T10:40:20.000Z | from .utils import encode_attr
from .control import Control
class Slider(Control):
def __init__(self, label=None, id=None, value=None, min=None, max=None, step=None,
show_value=None, value_format=None, vertical=None, data=None, on_change=None,
width=None, height=None, padding=None, margin=N... | 28.190909 | 107 | 0.636246 | 406 | 3,101 | 4.679803 | 0.128079 | 0.047368 | 0.089474 | 0.080526 | 0.381053 | 0.293684 | 0.266316 | 0.191579 | 0.191579 | 0.138947 | 0 | 0 | 0.252177 | 3,101 | 110 | 108 | 28.190909 | 0.819319 | 0.021606 | 0 | 0.111111 | 0 | 0 | 0.083306 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.246914 | false | 0 | 0.024691 | 0.123457 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
064d1eb99599867db25d0335c34c6914e23225cf | 897 | py | Python | hypothesis/util/data/simulator_dataset.py | boyali/hypothesis-sre | f44d25eb281d49663d49d134ee73ad542849714b | [
"BSD-3-Clause"
] | 45 | 2019-02-13T14:16:35.000Z | 2022-02-23T21:30:02.000Z | hypothesis/util/data/simulator_dataset.py | boyali/hypothesis-sre | f44d25eb281d49663d49d134ee73ad542849714b | [
"BSD-3-Clause"
] | 1 | 2020-01-13T08:29:50.000Z | 2020-01-22T10:28:02.000Z | hypothesis/util/data/simulator_dataset.py | boyali/hypothesis-sre | f44d25eb281d49663d49d134ee73ad542849714b | [
"BSD-3-Clause"
] | 8 | 2019-04-23T14:25:08.000Z | 2021-07-28T15:05:31.000Z | import torch
from hypothesis.simulation import Simulator
from torch.utils.data import Dataset
class SimulatorDataset(Dataset):
r"""
Todo:
Write docs.
"""
def __init__(self, simulator, prior, size=1000000):
super(SimulatorDataset, self).__init__()
self.prior = prior
... | 20.860465 | 72 | 0.528428 | 89 | 897 | 5.146067 | 0.494382 | 0.032751 | 0.065502 | 0.091703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.377926 | 897 | 42 | 73 | 21.357143 | 0.80466 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.375 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
065381428280141aabcb3e0bf1ad93db900b0af7 | 314 | py | Python | conanfile.py | bincrafters/conan-boost_timer | 2df7fd6e9f9e161b8bf55c1bab0c8e4584a9df3d | [
"MIT"
] | null | null | null | conanfile.py | bincrafters/conan-boost_timer | 2df7fd6e9f9e161b8bf55c1bab0c8e4584a9df3d | [
"MIT"
] | null | null | null | conanfile.py | bincrafters/conan-boost_timer | 2df7fd6e9f9e161b8bf55c1bab0c8e4584a9df3d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from conans import python_requires
base = python_requires("boost_base/2.0.0@bincrafters/testing")
class BoostTimerConan(base.BoostBaseConan):
name = "boost_timer"
version = "1.70.0"
@property
def boost_build_requires(self):
return ["io"]
| 18.470588 | 62 | 0.678344 | 41 | 314 | 5.04878 | 0.756098 | 0.135266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031128 | 0.181529 | 314 | 16 | 63 | 19.625 | 0.774319 | 0.133758 | 0 | 0 | 0 | 0 | 0.203704 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
066c25c11eeb961cef5e58eb4d608795e0a54472 | 905 | py | Python | apps/api/views/__init__.py | LizanLycan/CertsGen | 2e18d8ddea6adf90805face16cbb8f8fa06989c3 | [
"MIT"
] | null | null | null | apps/api/views/__init__.py | LizanLycan/CertsGen | 2e18d8ddea6adf90805face16cbb8f8fa06989c3 | [
"MIT"
] | 1 | 2020-02-04T01:56:42.000Z | 2020-02-04T01:56:42.000Z | apps/api/views/__init__.py | LizanLycan/CertsGen | 2e18d8ddea6adf90805face16cbb8f8fa06989c3 | [
"MIT"
] | null | null | null | from .auth import (
AccreditationAuthorityCustomAuthToken,
CertificationAuthorityCustomAuthToken,
CertifierCustomAuthToken,
RecipientCustomAuthToken
)
from .signup import (
AccreditationAuthorityRegisterView,
CertificationAuthorityRegisterView,
CertifierRegisterView,
RecipientRegisterVie... | 33.518519 | 80 | 0.830939 | 41 | 905 | 18.341463 | 0.487805 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129282 | 905 | 26 | 81 | 34.807692 | 0.954315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
066f3ad3f9c30a8968067a757e405bcecd53c382 | 3,568 | py | Python | src/Classes/MSDS400/Module 6/practice/practice_2.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/Classes/MSDS400/Module 6/practice/practice_2.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/Classes/MSDS400/Module 6/practice/practice_2.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null |
# MSDS 400 Module 6 Practice 2
import matplotlib.pyplot as plt
from numpy import poly1d, linspace
'''
The first example shows how to generate and print a second degree
polynomial with coefficients, 1, -2 and 4. The software is not limited
to second degree polynomials. Higher order can be generated. The critical
t... | 27.658915 | 78 | 0.716648 | 614 | 3,568 | 4.164495 | 0.281759 | 0.021901 | 0.025029 | 0.048885 | 0.360579 | 0.312867 | 0.277669 | 0.277669 | 0.277669 | 0.277669 | 0 | 0.024366 | 0.160314 | 3,568 | 129 | 79 | 27.658915 | 0.829105 | 0.323711 | 0 | 0.567568 | 1 | 0 | 0.288551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.027027 | 0.405405 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
0670d15a9a656edd90aa39f84f5e0bf55472a4d9 | 81,228 | py | Python | pysnmp-with-texts/CADANT-HW-MEAS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CADANT-HW-MEAS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CADANT-HW-MEAS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CADANT-HW-MEAS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CADANT-HW-MEAS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:45:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | 131.649919 | 9,986 | 0.800032 | 8,870 | 81,228 | 7.326156 | 0.090417 | 0.06851 | 0.119893 | 0.011388 | 0.456966 | 0.328594 | 0.299355 | 0.283859 | 0.183879 | 0.173645 | 0 | 0.060285 | 0.08859 | 81,228 | 616 | 9,987 | 131.863636 | 0.817484 | 0.004063 | 0 | 0.013289 | 0 | 0.059801 | 0.257353 | 0.030424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009967 | 0.026578 | 0 | 0.068106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
06727bf100c4fb8664be5f4b6b4c1321bde755fb | 1,200 | py | Python | dfsimage/__init__.py | monkeyman79/dfsimage | de24cf0ff52b9204e52cfe7255a571b4089f5116 | [
"MIT"
] | 2 | 2021-02-20T16:55:12.000Z | 2021-08-18T09:55:09.000Z | dfsimage/__init__.py | monkeyman79/dfsimage | de24cf0ff52b9204e52cfe7255a571b4089f5116 | [
"MIT"
] | 8 | 2021-02-12T13:18:22.000Z | 2021-02-18T13:10:15.000Z | dfsimage/__init__.py | monkeyman79/dfsimage | de24cf0ff52b9204e52cfe7255a571b4089f5116 | [
"MIT"
] | null | null | null | """BBC Micro Acorn DFS floppy disk image maintenance package and command-line utility."""
import sys
if sys.version_info[0] != 3 or sys.version_info[1] < 8:
raise ImportError("Module dfsimage requires Python version 3.8.")
# pylint: disable=wrong-import-position
from .misc import ValidationWarning, InfWarning, D... | 37.5 | 94 | 0.746667 | 139 | 1,200 | 6.316547 | 0.47482 | 0.030752 | 0.051253 | 0.08656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008763 | 0.144167 | 1,200 | 31 | 95 | 38.709677 | 0.846154 | 0.101667 | 0 | 0 | 0 | 0 | 0.266791 | 0.020522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
067b291a0adcf9ad025fa442cc815c60ff528f8a | 171 | py | Python | Python/Download_Audio_From_Video/config.py | Lakshita2002/code-n-stitch | 5ae168e541c057e33996bb694903d627846b278f | [
"MIT"
] | 50 | 2020-09-19T16:40:21.000Z | 2022-02-05T05:48:42.000Z | Python/Download_Audio_From_Video/config.py | Lakshita2002/code-n-stitch | 5ae168e541c057e33996bb694903d627846b278f | [
"MIT"
] | 266 | 2020-09-25T17:24:04.000Z | 2021-11-29T07:17:57.000Z | Python/Download_Audio_From_Video/config.py | Lakshita2002/code-n-stitch | 5ae168e541c057e33996bb694903d627846b278f | [
"MIT"
] | 113 | 2020-09-26T10:28:11.000Z | 2021-10-15T06:58:53.000Z | YT_API_SERVICE_NAME = 'youtube'
DEVELOPER_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
MAX_RESULTS = 50
YT_API_VERSION = 'v3'
LINK = 'https://www.youtube.com/watch?v='
| 28.5 | 57 | 0.789474 | 22 | 171 | 5.818182 | 0.863636 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.087719 | 171 | 5 | 58 | 34.2 | 0.801282 | 0 | 0 | 0 | 0 | 0 | 0.467836 | 0.22807 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
069d4c62462dc7aa232b8dec3cd99f18bd73a59d | 264 | py | Python | PythonExercicios/ex010.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | PythonExercicios/ex010.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | PythonExercicios/ex010.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | # Crie um programa que leia quanto dinheiro uma pessoa
# tem na carteira e mostre quantos Dólares ela
# pode comprar.
# Considere US$ 1.00 = R$ 3.27
d = float(input('Digite quanto tem na carteira: '))
print('Você pode comprar US${:.2f} doláres.'.format(d/3.27))
| 33 | 60 | 0.708333 | 45 | 264 | 4.155556 | 0.777778 | 0.053476 | 0.139037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.166667 | 264 | 7 | 61 | 37.714286 | 0.804545 | 0.534091 | 0 | 0 | 0 | 0 | 0.567797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
06b00cab250db168b90f8db6cd1b5d9ee0988b50 | 2,459 | py | Python | fix_weights.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 1 | 2019-03-15T04:01:19.000Z | 2019-03-15T04:01:19.000Z | fix_weights.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 5 | 2017-12-11T00:11:39.000Z | 2021-07-09T17:05:16.000Z | fix_weights.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 2 | 2017-08-15T21:19:11.000Z | 2017-10-12T00:36:35.000Z | import sys,os
sys.path.append('/u/ki/awright/InstallingSoftware/pythons/')
from import_tools import *
from scipy import ndimage
s = ndimage.generate_binary_structure(2,2)
def fixwt(filt,i,cutval):
globwtfl2='/u/ki/awright/data/2015-12-15_%s/WEIGHTS/globalweight_%s.fits' % (filt,i)
globwtfl1='/u/ki/awright/data/2015... | 46.396226 | 186 | 0.758032 | 396 | 2,459 | 4.542929 | 0.30303 | 0.042802 | 0.058366 | 0.038911 | 0.246804 | 0.215675 | 0.183991 | 0.183991 | 0.171206 | 0.137854 | 0 | 0.070742 | 0.068727 | 2,459 | 52 | 187 | 47.288462 | 0.714847 | 0.141114 | 0 | 0 | 1 | 0.113636 | 0.216896 | 0.157095 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2307a8f5d579d875050cad19062680f6b6a5b946 | 9,406 | py | Python | pymarshmorpho2d/bmi_marsh_morpho2d.py | gregtucker/pymarshmorpho2d | 848d2eeb8496fe781d5a1495206995ff6b67b96e | [
"MIT"
] | null | null | null | pymarshmorpho2d/bmi_marsh_morpho2d.py | gregtucker/pymarshmorpho2d | 848d2eeb8496fe781d5a1495206995ff6b67b96e | [
"MIT"
] | null | null | null | pymarshmorpho2d/bmi_marsh_morpho2d.py | gregtucker/pymarshmorpho2d | 848d2eeb8496fe781d5a1495206995ff6b67b96e | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""Basic Model Interface implementation for the pyMarshMorpho2D model."""
import numpy as np
from bmipy import Bmi
from pymarshmorpho2d import MarshEvolver
from landlab import load_params
_DEFAULT_PARAMETERS = {
'rel_sl_rise_rate': 0.001 / 365.0,
'tidal_range': 3.1,
}
class MarshMorp... | 26.055402 | 82 | 0.562726 | 1,145 | 9,406 | 4.359825 | 0.166812 | 0.042067 | 0.032051 | 0.036058 | 0.398037 | 0.355369 | 0.311298 | 0.255208 | 0.239383 | 0.170873 | 0 | 0.004925 | 0.330746 | 9,406 | 360 | 83 | 26.127778 | 0.788086 | 0.323517 | 0 | 0.108527 | 0 | 0 | 0.050815 | 0.020857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.031008 | 0.062016 | 0.643411 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
230ab19ded266163e25736654dd12c62755c16be | 5,624 | py | Python | gdshowreelvote/gdshowreelvote/settings.py | Calinou/godot-showreel-voting | bde4ac975d74af569a6e2de74a6bb3db7a746043 | [
"MIT"
] | 7 | 2021-04-08T19:35:19.000Z | 2021-05-31T15:34:15.000Z | gdshowreelvote/gdshowreelvote/settings.py | Calinou/godot-showreel-voting | bde4ac975d74af569a6e2de74a6bb3db7a746043 | [
"MIT"
] | 5 | 2021-05-10T20:51:52.000Z | 2021-07-08T21:17:46.000Z | gdshowreelvote/gdshowreelvote/settings.py | Calinou/godot-showreel-voting | bde4ac975d74af569a6e2de74a6bb3db7a746043 | [
"MIT"
] | 1 | 2021-05-31T15:53:12.000Z | 2021-05-31T15:53:12.000Z | """
Django settings for gdshowreelvote project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | 30.4 | 164 | 0.734886 | 669 | 5,624 | 5.959641 | 0.339312 | 0.05217 | 0.034111 | 0.043893 | 0.250314 | 0.216203 | 0.177076 | 0.158515 | 0.121645 | 0.091548 | 0 | 0.006404 | 0.139225 | 5,624 | 185 | 165 | 30.4 | 0.817187 | 0.25569 | 0 | 0 | 1 | 0 | 0.514272 | 0.315675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.057143 | 0.019048 | 0 | 0.019048 | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
23298ea9ccd4c32269467cfb8d9ad3f9c51df1a2 | 44,085 | py | Python | ruckus_vsz_snmp/RUCKUS-SCG-TTG-MIB.py | molekuul/check_ruckus_vsz | 57b243a53794b8ab40b049cdd2ae0380d3476ac8 | [
"Apache-2.0"
] | 3 | 2016-09-06T10:23:23.000Z | 2021-04-27T14:37:40.000Z | ruckus_vsz_snmp/RUCKUS-SCG-TTG-MIB.py | molekuul/check_ruckus_vsz | 57b243a53794b8ab40b049cdd2ae0380d3476ac8 | [
"Apache-2.0"
] | 4 | 2018-06-25T08:45:43.000Z | 2020-10-22T07:26:58.000Z | ruckus_vsz_snmp/RUCKUS-SCG-TTG-MIB.py | molekuul/check_ruckus_vsz | 57b243a53794b8ab40b049cdd2ae0380d3476ac8 | [
"Apache-2.0"
] | null | null | null | # PySNMP SMI module. Autogenerated from smidump -f python RUCKUS-SCG-TTG-MIB
# by libsmi2pysnmp-0.1.3
# Python version sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial=0)
# pylint:disable=C0302
mibBuilder = mibBuilder # pylint:disable=undefined-variable,used-before-assignment
# Imports
(Int... | 91.084711 | 6,264 | 0.78149 | 4,589 | 44,085 | 7.506864 | 0.063848 | 0.020668 | 0.014717 | 0.017998 | 0.370577 | 0.364829 | 0.358501 | 0.358501 | 0.35345 | 0.153531 | 0 | 0.086313 | 0.08597 | 44,085 | 483 | 6,265 | 91.273292 | 0.768607 | 0.007417 | 0 | 0.322581 | 1 | 0.002151 | 0.126343 | 0.067892 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012903 | 0 | 0.012903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2339b2319d21cbc5b65c99d5a35baa432000799c | 1,529 | py | Python | admit/xmlio/bdpTest.py | astroumd/admit | bbf3d79bb6e1a6f7523553ed8ede0d358d106f2c | [
"MIT"
] | 4 | 2017-03-01T17:26:28.000Z | 2022-03-03T19:23:06.000Z | admit/xmlio/bdpTest.py | teuben/admit | 1cae54d1937c9af3f719102838df716e7e6d655c | [
"MIT"
] | 48 | 2016-10-04T01:25:33.000Z | 2021-09-08T14:51:10.000Z | admit/xmlio/bdpTest.py | teuben/admit | 1cae54d1937c9af3f719102838df716e7e6d655c | [
"MIT"
] | 2 | 2016-11-10T14:10:22.000Z | 2017-03-30T18:58:05.000Z | #! /usr/bin/env python
from admit.bdp import *
import admit.xmlio.dtdGenerator as dtdGenerator
import admit.xmlio.Parser as Parser
import numpy as np
if __name__ == "__main__" :
dtdGenerator.generate()
print "Creating initial class"
cs = CubeStats.CubeStats()
print "Setting initial values"
... | 26.824561 | 54 | 0.584696 | 226 | 1,529 | 3.920354 | 0.327434 | 0.063205 | 0.071106 | 0.038375 | 0.108352 | 0.108352 | 0 | 0 | 0 | 0 | 0 | 0.032456 | 0.254415 | 1,529 | 56 | 55 | 27.303571 | 0.744737 | 0.013734 | 0 | 0 | 0 | 0 | 0.201725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.446809 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
234388e79da91646410a32c231a800b9c9dbd109 | 337 | py | Python | WordRPG/systems/character/slot.py | ChristopherLBruce/WordRPG | e545cf313afc430e8191a7c813db9ee9759a6fd4 | [
"Apache-2.0"
] | 2 | 2018-12-15T15:06:35.000Z | 2022-02-09T00:19:28.000Z | WordRPG/systems/character/slot.py | ChristopherLBruce/WordRPG | e545cf313afc430e8191a7c813db9ee9759a6fd4 | [
"Apache-2.0"
] | null | null | null | WordRPG/systems/character/slot.py | ChristopherLBruce/WordRPG | e545cf313afc430e8191a7c813db9ee9759a6fd4 | [
"Apache-2.0"
] | null | null | null | class Slot:
def __init__(name, _type=None, item=None):
self.name = name,
if _type is not None:
self.type = _type
else:
self.type = name
self.item = item,
def equip(self):
pass
def unequip(self):
pass
def show(sel... | 14.652174 | 46 | 0.47181 | 39 | 337 | 3.897436 | 0.435897 | 0.157895 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.442137 | 337 | 22 | 47 | 15.318182 | 0.808511 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.214286 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
234a322c817ddc13e41f0d62246fabe1be6dde72 | 676 | py | Python | quiz/models.py | Raul-Azahares/unit | eb0c11f6efc56cfccdecea1dc4b425e8c0765878 | [
"MIT"
] | null | null | null | quiz/models.py | Raul-Azahares/unit | eb0c11f6efc56cfccdecea1dc4b425e8c0765878 | [
"MIT"
] | null | null | null | quiz/models.py | Raul-Azahares/unit | eb0c11f6efc56cfccdecea1dc4b425e8c0765878 | [
"MIT"
] | null | null | null | from django.db import models
# Crea tus modelos de preguntas y respuestas para el quiz aqui.
class Answer(models.Model):
text = models.CharField(max_length=500, verbose_name="respuesta")
def __unicode__(self):
return self.text
class Meta:
verbose_name = 'Respuesta'
verbose_name... | 26 | 87 | 0.696746 | 83 | 676 | 5.445783 | 0.481928 | 0.170354 | 0.132743 | 0.09292 | 0.384956 | 0.384956 | 0.384956 | 0.212389 | 0.212389 | 0.212389 | 0 | 0.011236 | 0.210059 | 676 | 26 | 88 | 26 | 0.835206 | 0.090237 | 0 | 0.375 | 0 | 0 | 0.100977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
234b7e484c385b53202efc2de7cebe72acfc242c | 480 | py | Python | migrations/versions/1050_add_admin_manager_role.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 25 | 2015-01-14T10:45:13.000Z | 2021-05-26T17:21:41.000Z | migrations/versions/1050_add_admin_manager_role.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 641 | 2015-01-15T11:10:50.000Z | 2021-06-15T22:18:42.000Z | migrations/versions/1050_add_admin_manager_role.py | uk-gov-mirror/alphagov.digitalmarketplace-api | 5a1db63691d0c4a435714837196ab6914badaf62 | [
"MIT"
] | 22 | 2015-06-13T15:37:45.000Z | 2021-08-19T23:40:49.000Z | """Add admin-manager role
Revision ID: 1050
Revises: 1040
Create Date: 2017-11-21 11:20:00.000000
"""
# revision identifiers, used by Alembic.
revision = '1050'
down_revision = '1040'
from alembic import op
def upgrade():
op.execute("COMMIT") # See: http://stackoverflow.com/a/30910417/15720
op.execute("A... | 20 | 112 | 0.7125 | 70 | 480 | 4.842857 | 0.742857 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1225 | 0.166667 | 480 | 23 | 113 | 20.869565 | 0.725 | 0.441667 | 0 | 0 | 0 | 0.125 | 0.418605 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
234d7e5a30a3331056a29c2623f76f58b47c2913 | 500 | py | Python | tests/test_models.py | abitrolly/stellar5 | 15b2904fa36c8acbe188324f7e58032e81f2484e | [
"MIT"
] | 932 | 2015-01-01T16:51:32.000Z | 2022-03-14T05:12:52.000Z | tests/test_models.py | abitrolly/stellar5 | 15b2904fa36c8acbe188324f7e58032e81f2484e | [
"MIT"
] | 43 | 2015-01-05T13:31:30.000Z | 2021-10-12T17:24:07.000Z | tests/test_models.py | abitrolly/stellar5 | 15b2904fa36c8acbe188324f7e58032e81f2484e | [
"MIT"
] | 64 | 2015-01-02T14:44:22.000Z | 2021-12-10T18:47:44.000Z | from stellar.models import get_unique_hash, Table, Snapshot
def test_get_unique_hash():
assert get_unique_hash()
assert get_unique_hash() != get_unique_hash()
assert len(get_unique_hash()) == 32
def test_table():
table = Table(
table_name='hapsu',
snapshot=Snapshot(
snaps... | 25 | 59 | 0.65 | 57 | 500 | 5.368421 | 0.368421 | 0.176471 | 0.254902 | 0.186275 | 0.166667 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0 | 0.071429 | 0.244 | 500 | 19 | 60 | 26.315789 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.064 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.133333 | false | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
234df647dd90abb64fceb047aeae050fd0a9bdd4 | 72 | py | Python | _solutions/intermediate/datetime/datetime_timedelta_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/intermediate/datetime/datetime_timedelta_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/intermediate/datetime/datetime_timedelta_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null |
duration = ARMSTRONG - GAGARIN
result = round(duration.days / YEAR, 1)
| 18 | 39 | 0.722222 | 9 | 72 | 5.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.166667 | 72 | 3 | 40 | 24 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2353182ccc2d0ee08a6404b25b4a9f86ac9e93d7 | 295 | py | Python | main.py | danieldanuega/fastapi-graphql | d97ae9f85b3ac74fd765a2cc258bb21c991d4655 | [
"MIT"
] | 2 | 2021-10-03T05:44:22.000Z | 2021-12-10T10:25:04.000Z | main.py | danieldanuega/fastapi-graphql | d97ae9f85b3ac74fd765a2cc258bb21c991d4655 | [
"MIT"
] | null | null | null | main.py | danieldanuega/fastapi-graphql | d97ae9f85b3ac74fd765a2cc258bb21c991d4655 | [
"MIT"
] | 1 | 2021-12-10T10:25:06.000Z | 2021-12-10T10:25:06.000Z | from fastapi import FastAPI
import graphene
from starlette.graphql import GraphQLApp
from schema import Query, Mutation
app = FastAPI()
app.add_route(
"/graphiql", GraphQLApp(schema=graphene.Schema(query=Query, mutation=Mutation))
)
@app.get("/")
def main():
return {"Hello": "World"} | 21.071429 | 83 | 0.738983 | 37 | 295 | 5.864865 | 0.540541 | 0.119816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132203 | 295 | 14 | 84 | 21.071429 | 0.847656 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
235525129082cff5841370425e1f8b69a61f9a3f | 856 | py | Python | speech_analysis/text_analysis.py | tngaspar/speech-analysis | a1bdca0b7465c2da0743cc02992da643b556a3fc | [
"MIT"
] | null | null | null | speech_analysis/text_analysis.py | tngaspar/speech-analysis | a1bdca0b7465c2da0743cc02992da643b556a3fc | [
"MIT"
] | null | null | null | speech_analysis/text_analysis.py | tngaspar/speech-analysis | a1bdca0b7465c2da0743cc02992da643b556a3fc | [
"MIT"
] | null | null | null | import re
from nltk.stem import WordNetLemmatizer
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.util import ngrams
from collections import Counter
def filter_text(text):
"""Returns a filtered version of a str ready for analysis
Args:
text (str): string of a speec... | 27.612903 | 69 | 0.690421 | 115 | 856 | 5.06087 | 0.452174 | 0.054983 | 0.030928 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23014 | 856 | 31 | 70 | 27.612903 | 0.883156 | 0.300234 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
236ebb416538f56b0b8a6ba021077f8b19cdff44 | 336 | py | Python | test/mitmproxy/console/test_common.py | johnsoft/mitmproxy | d133b8baeeefa04fa6bdf43c39be822def013a6b | [
"MIT"
] | null | null | null | test/mitmproxy/console/test_common.py | johnsoft/mitmproxy | d133b8baeeefa04fa6bdf43c39be822def013a6b | [
"MIT"
] | null | null | null | test/mitmproxy/console/test_common.py | johnsoft/mitmproxy | d133b8baeeefa04fa6bdf43c39be822def013a6b | [
"MIT"
] | 1 | 2020-11-07T08:54:29.000Z | 2020-11-07T08:54:29.000Z | from mitmproxy.test import tflow
from mitmproxy.tools.console import common
from ...conftest import skip_appveyor
@skip_appveyor
def test_format_flow():
f = tflow.tflow(resp=True)
assert common.format_flow(f, True)
assert common.format_flow(f, True, hostheader=True)
assert common.format_flow(f, True,... | 25.846154 | 55 | 0.764881 | 49 | 336 | 5.102041 | 0.408163 | 0.16 | 0.176 | 0.264 | 0.356 | 0.356 | 0.356 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 336 | 12 | 56 | 28 | 0.868056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
88ba8573ff378b4f6440be0b930e84e7fad00121 | 346 | py | Python | duckdb_builder.py | pjotrscholtze/trident | 865da68fff21d31490acc24db2f4b6bde0b80796 | [
"Apache-2.0"
] | null | null | null | duckdb_builder.py | pjotrscholtze/trident | 865da68fff21d31490acc24db2f4b6bde0b80796 | [
"Apache-2.0"
] | null | null | null | duckdb_builder.py | pjotrscholtze/trident | 865da68fff21d31490acc24db2f4b6bde0b80796 | [
"Apache-2.0"
] | null | null | null | import build.trident as trident
import sys, json
print("loading db")
db = trident.Db("/var/scratch/pse740/db/dbpedia-times-details", "/var/scratch/pse740/db/duckdb/dbpedia.duckdb")
print("aa")
schema = db.extract_schema()
print("bb")
with open("/var/scratch/pse740/db/duckdb/dbpedia.schema.json", "w") as f:
json.du... | 28.833333 | 111 | 0.725434 | 56 | 346 | 4.464286 | 0.482143 | 0.12 | 0.192 | 0.216 | 0.248 | 0.248 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.089595 | 346 | 11 | 112 | 31.454545 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.439306 | 0.395954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.3 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88bf65e3d7fb472948387f6dfc7989867485df7d | 492 | py | Python | app/pydantic_schemas.py | mikey-no/cert_tool | 7a3dc671d3b7d62eab25194e23c13b09071d4ed1 | [
"MIT"
] | 1 | 2022-02-20T14:03:12.000Z | 2022-02-20T14:03:12.000Z | app/pydantic_schemas.py | mikey-no/cert_tool | 7a3dc671d3b7d62eab25194e23c13b09071d4ed1 | [
"MIT"
] | null | null | null | app/pydantic_schemas.py | mikey-no/cert_tool | 7a3dc671d3b7d62eab25194e23c13b09071d4ed1 | [
"MIT"
] | null | null | null | import pathlib
from typing import List, Optional
from pydantic import BaseModel
class CSRPydanticModel(BaseModel):
common_name: str
prefix: str
csr: str
san: Optional[List[str]]
class RootCertInfoModel(BaseModel):
root_cert_subject: str
root_cert_not_valid_before: str
root_cert_not_vali... | 18.923077 | 35 | 0.75 | 64 | 492 | 5.5 | 0.46875 | 0.113636 | 0.125 | 0.125 | 0.284091 | 0.176136 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 492 | 25 | 36 | 19.68 | 0.888889 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
88d56c328f605192c7b99f686b939d984f53fa3e | 8,736 | py | Python | src/ptpip/constants/object/property_type.py | DethCount/ptpip-d5300 | ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd | [
"MIT"
] | null | null | null | src/ptpip/constants/object/property_type.py | DethCount/ptpip-d5300 | ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd | [
"MIT"
] | null | null | null | src/ptpip/constants/object/property_type.py | DethCount/ptpip-d5300 | ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd | [
"MIT"
] | null | null | null | from enum import Enum
class ObjectPropertyType(Enum):
Undefined = 0x0000 # 0
WirelessConfigurationFile = 0xB104
BuyFlag = 0xD901
# MTP Object Prop Code 0xDC00..0xDFFF
StorageID = 0xDC01 # 56321
ObjectFo... | 48.265193 | 78 | 0.44391 | 393 | 8,736 | 9.867684 | 0.959288 | 0.007736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145584 | 0.532166 | 8,736 | 180 | 79 | 48.533333 | 0.803279 | 0.038233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121089 | 0 | 0 | 1 | 0 | false | 0 | 0.005848 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
88d959107cd44ebfd61ba81cc58548676b6e69f2 | 514 | py | Python | Bidding/forms.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | Bidding/forms.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | Bidding/forms.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | 3 | 2020-12-30T11:35:22.000Z | 2021-01-07T13:10:26.000Z | from django import forms
from welcome.models import Users
from django.contrib.auth.models import User
from Bidding.models import *
class Sell_Form(forms.Form):
item_name = forms.CharField(label='Item Name')
item_description = forms.CharField(max_length=1000, default='',label='Item Description')
item_photo ... | 39.538462 | 92 | 0.766537 | 72 | 514 | 5.361111 | 0.472222 | 0.093264 | 0.103627 | 0.129534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008909 | 0.126459 | 514 | 13 | 93 | 39.538462 | 0.85078 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
88e0c5bd65e06f9b108254c7c5f2ed78a06ce6b0 | 72 | py | Python | commands/__init__.py | Nichodon/Democracy-Bot | 708613944b25f7331b18153e5f90c18f44e38aff | [
"MIT"
] | null | null | null | commands/__init__.py | Nichodon/Democracy-Bot | 708613944b25f7331b18153e5f90c18f44e38aff | [
"MIT"
] | 8 | 2018-05-12T17:11:04.000Z | 2020-02-24T22:28:23.000Z | commands/__init__.py | UnsignedByte/Democracy-Bot | da37e8428ea7252712d7c2f8771f06658afdb990 | [
"MIT"
] | null | null | null | __all__ = ['setup', 'elections', 'proposals', 'utilities', 'enforcing']
| 36 | 71 | 0.666667 | 6 | 72 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 72 | 1 | 72 | 72 | 0.676923 | 0 | 0 | 0 | 0 | 0 | 0.569444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88f02cefa349f834ee823699c17d2fbaa2e1e0d7 | 791 | py | Python | necrobot/racebot/__init__.py | pancelor/necrobot | 03003f0b4208c4e952cfa6b41a33d30480a351d7 | [
"MIT"
] | 8 | 2016-01-15T00:28:55.000Z | 2020-02-10T21:23:11.000Z | necrobot/racebot/__init__.py | pancelor/necrobot | 03003f0b4208c4e952cfa6b41a33d30480a351d7 | [
"MIT"
] | 12 | 2017-01-01T22:14:54.000Z | 2021-02-10T00:09:51.000Z | necrobot/racebot/__init__.py | pancelor/necrobot | 03003f0b4208c4e952cfa6b41a33d30480a351d7 | [
"MIT"
] | 18 | 2016-02-05T22:19:46.000Z | 2020-02-12T05:11:57.000Z | """
This very high-level module determines/implements the specific behavior of the "standard" Necrobot running on the Crypt
of the Necrobot server.
Package Requirements
--------------------
botbase
util
daily
race
stats
user
Dependencies
------------
mainchannel
botbase/
... | 18.833333 | 120 | 0.501896 | 71 | 791 | 5.394366 | 0.507042 | 0.02611 | 0.078329 | 0.104439 | 0.43342 | 0.43342 | 0.43342 | 0.43342 | 0.234987 | 0 | 0 | 0 | 0.4311 | 791 | 42 | 121 | 18.833333 | 0.851111 | 0.989886 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88f32cb584a82e0827e95bb7ae3cb09328f0d5a3 | 570 | py | Python | hashgen/algorithms.py | romerodiesan/password-generator | 955b8e897082d86a640766c74b3c3297baffe00d | [
"MIT"
] | 3 | 2021-11-26T19:52:16.000Z | 2021-11-27T01:20:36.000Z | hashgen/algorithms.py | romerodiesan/password-generator | 955b8e897082d86a640766c74b3c3297baffe00d | [
"MIT"
] | null | null | null | hashgen/algorithms.py | romerodiesan/password-generator | 955b8e897082d86a640766c74b3c3297baffe00d | [
"MIT"
] | null | null | null | import bcrypt
import hashlib
from hashgen.utilities import string_generator_and_encoding
class Algorithms:
def __init__(self, algorithm, difficulty) -> None:
self.algorithm = algorithm
self.difficulty = difficulty
def bcrypt_gen(self, difficulty):
string = string_generator_and_encoding(difficulty=... | 30 | 66 | 0.77193 | 67 | 570 | 6.358209 | 0.432836 | 0.105634 | 0.126761 | 0.183099 | 0.319249 | 0.319249 | 0.319249 | 0.319249 | 0.319249 | 0 | 0 | 0.002033 | 0.136842 | 570 | 19 | 67 | 30 | 0.863821 | 0 | 0 | 0.153846 | 0 | 0 | 0.008757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88f919ad3b4182008a2c9af566db1e29cae0261e | 870 | py | Python | database/models/move.py | Sytten/artis | fd407b4558212c435abf8f697ea7891c5375a10e | [
"MIT"
] | 6 | 2018-12-17T19:43:26.000Z | 2021-12-19T22:49:13.000Z | database/models/move.py | Sytten/artis | fd407b4558212c435abf8f697ea7891c5375a10e | [
"MIT"
] | null | null | null | database/models/move.py | Sytten/artis | fd407b4558212c435abf8f697ea7891c5375a10e | [
"MIT"
] | 1 | 2019-09-19T05:30:53.000Z | 2019-09-19T05:30:53.000Z | from sqlalchemy import Column, Integer, DateTime, String, Enum, Numeric, ForeignKey
from sqlalchemy.orm import relationship
from database.models.coins import Coins
from database.models.markets import Markets
from database.models.status import Status
from database.models.base import Base
class Move(Base):
__tablen... | 33.461538 | 83 | 0.718391 | 105 | 870 | 5.857143 | 0.4 | 0.078049 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0.165517 | 870 | 25 | 84 | 34.8 | 0.841598 | 0.133333 | 0 | 0 | 0 | 0 | 0.043883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0.052632 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
001109e36a3744e62834fed1080bf902694a1603 | 916 | py | Python | datasets/utils.py | creaiter/Quantization-Implementations | 8e97ae9b91dbd3f02ebeccc05d12aee241d252d4 | [
"MIT"
] | 2 | 2021-10-12T06:09:55.000Z | 2022-01-28T08:17:13.000Z | datasets/utils.py | creaiter/Quantization-Implementations | 8e97ae9b91dbd3f02ebeccc05d12aee241d252d4 | [
"MIT"
] | null | null | null | datasets/utils.py | creaiter/Quantization-Implementations | 8e97ae9b91dbd3f02ebeccc05d12aee241d252d4 | [
"MIT"
] | null | null | null | import torchvision.transforms as transforms
def change_normalize(cfg, dataset):
if hasattr(dataset, 'normalize'):
if cfg.dataset not in ds.keys():
raise Warning(f'There is no change in the normalization of {cfg.dataset} dataset for quantized inference.')
dataset.normarlize = ds[cfg.dat... | 41.636364 | 119 | 0.508734 | 99 | 916 | 4.69697 | 0.525253 | 0.086022 | 0.180645 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171477 | 0.356987 | 916 | 21 | 120 | 43.619048 | 0.617997 | 0 | 0 | 0 | 0 | 0 | 0.171397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0011a81863f3674c8679e290ec6883830eae8618 | 319 | py | Python | infusionsoft/contrib/django/apps.py | theY4Kman/infusionsoft-api | 3171171432dfcf291fc291ae39b47250b07dbb4c | [
"Apache-2.0"
] | 8 | 2017-04-13T01:37:24.000Z | 2020-07-30T01:03:02.000Z | infusionsoft/contrib/django/apps.py | theY4Kman/infusionsoft-api | 3171171432dfcf291fc291ae39b47250b07dbb4c | [
"Apache-2.0"
] | 12 | 2017-04-11T18:18:18.000Z | 2021-06-13T02:05:28.000Z | infusionsoft/contrib/django/apps.py | theY4Kman/infusionsoft-api | 3171171432dfcf291fc291ae39b47250b07dbb4c | [
"Apache-2.0"
] | 3 | 2017-07-24T04:50:34.000Z | 2017-07-25T08:35:33.000Z | import os
from django.apps import AppConfig
from infusionsoft.contrib.django.initialize import initialize
class InfusionsoftAppConfig(AppConfig):
name = 'infusionsoft'
verbose_name = 'Infusionsoft'
path = os.path.join(os.path.dirname(__file__), '__init__.py')
def ready(self):
initialize()
| 21.266667 | 65 | 0.733542 | 36 | 319 | 6.25 | 0.611111 | 0.142222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169279 | 319 | 14 | 66 | 22.785714 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.109718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 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 | 0 | 1 | 0 | 0 | 2 |
001e3606cf017ee9b09d1a628bef770a6fab2627 | 237 | py | Python | exercises-and-answers/chapter2-analysis/code-examples/2.4-anagram-etection/solution3-brute-force.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | exercises-and-answers/chapter2-analysis/code-examples/2.4-anagram-etection/solution3-brute-force.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | exercises-and-answers/chapter2-analysis/code-examples/2.4-anagram-etection/solution3-brute-force.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | """
Project: algorithms-exercises-using-python
Created by robin1885@github on 17-2-20.
"""
def anagram_solution3(s1, s2):
"""
@rtype : bool
@param s1: str1
@param s2: str2
@return: True or False
"""
pass | 13.941176 | 42 | 0.607595 | 31 | 237 | 4.612903 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.257384 | 237 | 17 | 43 | 13.941176 | 0.721591 | 0.637131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
003937a12c02710ba00cb34459411c60a44e1491 | 1,293 | py | Python | src/sact/epoch/interfaces.py | 0k/sact.epoch | 6b0a47068992ff6a73f0f1da36090affad7c8be0 | [
"BSD-3-Clause"
] | null | null | null | src/sact/epoch/interfaces.py | 0k/sact.epoch | 6b0a47068992ff6a73f0f1da36090affad7c8be0 | [
"BSD-3-Clause"
] | null | null | null | src/sact/epoch/interfaces.py | 0k/sact.epoch | 6b0a47068992ff6a73f0f1da36090affad7c8be0 | [
"BSD-3-Clause"
] | null | null | null |
from zope.interface import Interface, Attribute
class ITimeZone(Interface):
"""Standard TimeZone interface as defined in datetime module"""
def utcoffset(dt):
"""Return offset of local time from UTC, in minutes"""
def dst(dt):
"""Return the daylight saving time (DST) adjustment, in minu... | 21.55 | 79 | 0.629544 | 162 | 1,293 | 5.012346 | 0.444444 | 0.049261 | 0.054187 | 0.08867 | 0.371921 | 0.371921 | 0.371921 | 0.334975 | 0.246305 | 0.12069 | 0 | 0.004184 | 0.260634 | 1,293 | 59 | 80 | 21.915254 | 0.845188 | 0.485692 | 0 | 0 | 0 | 0 | 0.072566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5625 | false | 0 | 0.0625 | 0 | 0.9375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
003992e10166dc58a065d114c2a2b6c6861ab099 | 5,871 | py | Python | quotapolicyd/database.py | Anthchirp/postfix-quota-policyd | 12c18d2826dcb7bb811a590019731f06bc9b3f12 | [
"Apache-2.0"
] | null | null | null | quotapolicyd/database.py | Anthchirp/postfix-quota-policyd | 12c18d2826dcb7bb811a590019731f06bc9b3f12 | [
"Apache-2.0"
] | null | null | null | quotapolicyd/database.py | Anthchirp/postfix-quota-policyd | 12c18d2826dcb7bb811a590019731f06bc9b3f12 | [
"Apache-2.0"
] | null | null | null | import MySQLdb
import MySQLdb.cursors
import threading
class DBLink():
def __init__(self):
# Set some sensible defaults
self.defaults = {
'--db-host': '127.0.0.1',
'--db-port': 3306,
'--db-user': 'quotapolicyd',
'--db-pass': 'quotapolicyd',
'--db-name': 'quotapolicyd'
}
... | 32.081967 | 103 | 0.589848 | 669 | 5,871 | 5.076233 | 0.218236 | 0.021201 | 0.030919 | 0.035336 | 0.505595 | 0.454358 | 0.454358 | 0.454358 | 0.454358 | 0.454358 | 0 | 0.004503 | 0.281383 | 5,871 | 182 | 104 | 32.258242 | 0.800427 | 0.061148 | 0 | 0.465409 | 0 | 0 | 0.304581 | 0 | 0 | 0 | 0 | 0.005495 | 0 | 0 | null | null | 0.062893 | 0.018868 | null | null | 0.031447 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
004dac555520076c883cd498a1d172a5550a08e9 | 3,367 | py | Python | helper.py | nhardy/etude-04 | be71213d6dc35472b5a07622e818e3f33a263e8a | [
"MIT"
] | null | null | null | helper.py | nhardy/etude-04 | be71213d6dc35472b5a07622e818e3f33a263e8a | [
"MIT"
] | null | null | null | helper.py | nhardy/etude-04 | be71213d6dc35472b5a07622e818e3f33a263e8a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Etude 04
Authors:
"""
import sys
_TOTAL_DISTANCE = 2413
class Can:
CAPACITY = 20
def __init__(self):
self._fuel = 0
def fill(self, amount: float):
self._fuel = min(self.CAPACITY, self._fuel + amount)
return self
def remove(self, amount: float) ->... | 23.061644 | 93 | 0.579745 | 439 | 3,367 | 4.232346 | 0.177677 | 0.068891 | 0.037675 | 0.034984 | 0.354144 | 0.265877 | 0.244349 | 0.231432 | 0.142088 | 0.142088 | 0 | 0.019566 | 0.301752 | 3,367 | 145 | 94 | 23.22069 | 0.770736 | 0 | 0 | 0.299065 | 0 | 0 | 0.007831 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0 | null | null | 0.056075 | 0.009346 | null | null | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cc61a6cf5b7cc41fe8f6e03c8a314709e9295da2 | 433 | py | Python | apps/misc/forms.py | HON95/studlan | 8dc38c64d0060506d865b9c834466fed2f9f9571 | [
"MIT"
] | 9 | 2016-03-15T21:03:49.000Z | 2020-12-02T19:45:44.000Z | apps/misc/forms.py | HON95/studlan | 8dc38c64d0060506d865b9c834466fed2f9f9571 | [
"MIT"
] | 161 | 2016-02-05T14:11:50.000Z | 2020-10-14T10:13:21.000Z | apps/misc/forms.py | HON95/studlan | 8dc38c64d0060506d865b9c834466fed2f9f9571 | [
"MIT"
] | 11 | 2016-07-27T12:20:05.000Z | 2021-04-18T05:49:17.000Z | # -*- coding: utf-8 -*-
from django.forms.utils import ErrorList
from django.utils.safestring import mark_safe
class InlineSpanErrorList(ErrorList):
def __unicode__(self):
return self.as_spans()
def as_spans(self):
if not self:
return u''
return mark_safe(''.join([u'<span... | 28.866667 | 153 | 0.658199 | 60 | 433 | 4.616667 | 0.65 | 0.072202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023324 | 0.207852 | 433 | 14 | 154 | 30.928571 | 0.784257 | 0.122402 | 0 | 0 | 0 | 0 | 0.143236 | 0.061008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
cc6d7da3dd27bf1ac8883abc5c63c58c69ed18c1 | 5,539 | py | Python | ooobuild/lo/sdbc/result_set.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/sdbc/result_set.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/sdbc/result_set.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 53.259615 | 485 | 0.757176 | 786 | 5,539 | 5.245547 | 0.380407 | 0.009702 | 0.014553 | 0.010187 | 0.087073 | 0.087073 | 0.077856 | 0.059665 | 0.032016 | 0.032016 | 0 | 0.026416 | 0.193537 | 5,539 | 103 | 486 | 53.776699 | 0.896575 | 0.672324 | 0 | 0.192308 | 0 | 0 | 0.039526 | 0.017787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.423077 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cc79e2691a1fd6e960c81dd4103cde9e0ebb8789 | 86 | py | Python | lesson_4_work/Ex_8.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | lesson_4_work/Ex_8.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | lesson_4_work/Ex_8.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | players = ["Ярослав", "Бенджамін", "Євген", "Саша"]
for el in players:
print(el) | 28.666667 | 52 | 0.616279 | 11 | 86 | 4.818182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 86 | 3 | 53 | 28.666667 | 0.757143 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
cc820f34465bae2386200ee38974bfd50fc296c5 | 273 | py | Python | Random Drafts/rolling a dice.py | Kevinskwk/ILP | 7a3925a22232d486a5a8f5df8255f9297fd73fec | [
"MIT"
] | 1 | 2020-07-09T23:10:56.000Z | 2020-07-09T23:10:56.000Z | Random Drafts/rolling a dice.py | Kevinskwk/ILP | 7a3925a22232d486a5a8f5df8255f9297fd73fec | [
"MIT"
] | null | null | null | Random Drafts/rolling a dice.py | Kevinskwk/ILP | 7a3925a22232d486a5a8f5df8255f9297fd73fec | [
"MIT"
] | null | null | null | import random
def dice():
return random.randint(1,6)
n=100000
l=[0,0,0,0,0,0]
r=[0,0,0,0,0,0]
for i in range(n):
l[dice()-1]+=1
s=0
a=1/6.0
for x in range(2):
r[x]=l[x]/float(n)
s+=(abs(r[x]-a))**2
s=s/6.0
print l
print r
print s
| 11.869565 | 31 | 0.505495 | 67 | 273 | 2.059701 | 0.358209 | 0.144928 | 0.173913 | 0.173913 | 0.086957 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 0.263736 | 273 | 22 | 32 | 12.409091 | 0.537313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cc8ee3c957665dddb6b146bbfbdac775422e7b75 | 13,199 | py | Python | firebird/base/config_pb2.py | FirebirdSQL/python3-base | 541ed8df8d52467d03cc2ebc5f3f72aa93a29ab1 | [
"MIT"
] | 2 | 2020-05-29T09:51:26.000Z | 2020-10-19T10:42:59.000Z | firebird/base/config_pb2.py | FirebirdSQL/python3-base | 541ed8df8d52467d03cc2ebc5f3f72aa93a29ab1 | [
"MIT"
] | null | null | null | firebird/base/config_pb2.py | FirebirdSQL/python3-base | 541ed8df8d52467d03cc2ebc5f3f72aa93a29ab1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: firebird/base/config.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database... | 42.304487 | 1,104 | 0.751951 | 1,761 | 13,199 | 5.312323 | 0.09824 | 0.045323 | 0.032068 | 0.044896 | 0.703474 | 0.669375 | 0.569856 | 0.558311 | 0.554249 | 0.554249 | 0 | 0.040453 | 0.115994 | 13,199 | 311 | 1,105 | 42.440514 | 0.761313 | 0.035003 | 0 | 0.594306 | 1 | 0.007117 | 0.192111 | 0.136403 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017794 | 0 | 0.017794 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cc995593c99cb84dc604088d73174c08b6c5721e | 2,047 | py | Python | Framework/base/ManagerDictionary.py | jonreding2010/MAQS.Python | 43f73784fa9f0ab46545b0275fa8de38d86c76ed | [
"MIT"
] | null | null | null | Framework/base/ManagerDictionary.py | jonreding2010/MAQS.Python | 43f73784fa9f0ab46545b0275fa8de38d86c76ed | [
"MIT"
] | null | null | null | Framework/base/ManagerDictionary.py | jonreding2010/MAQS.Python | 43f73784fa9f0ab46545b0275fa8de38d86c76ed | [
"MIT"
] | null | null | null |
from Framework.base import BaseTest
class ManagerDictionary():
# Get the driver for the associated driver manager
# @param T Type of driver
# @param key Key for the manager
# @returns The managed driver
def get_Driver(self, driverType, key):
return driverType.key.Get()
# Get a driver
# @par... | 28.041096 | 66 | 0.642404 | 260 | 2,047 | 5.030769 | 0.219231 | 0.061162 | 0.041284 | 0.050459 | 0.37844 | 0.344037 | 0.307339 | 0.307339 | 0.218654 | 0.218654 | 0 | 0 | 0.268686 | 2,047 | 73 | 67 | 28.041096 | 0.873747 | 0.396678 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.032258 | 0.064516 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cc9fe1157ef61d46a4162af3490c99ca247cf4f5 | 273 | py | Python | services/movies_streaming_converter/src/db/postgres/connection.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | null | null | null | services/movies_streaming_converter/src/db/postgres/connection.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | null | null | null | services/movies_streaming_converter/src/db/postgres/connection.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | 1 | 2021-09-30T09:49:40.000Z | 2021-09-30T09:49:40.000Z | from core.config.postgres import get_tortoise_config
from tortoise import Tortoise
async def init_postgres():
await Tortoise.init(config=get_tortoise_config())
await Tortoise.generate_schemas()
async def close_postgres():
await Tortoise.close_connections()
| 22.75 | 53 | 0.794872 | 35 | 273 | 5.971429 | 0.428571 | 0.186603 | 0.162679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 273 | 11 | 54 | 24.818182 | 0.881857 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cca238df75170ab11df56f494b15ca55629672db | 2,650 | py | Python | airbyte-integrations/base-python/airbyte_protocol/airbyte_protocol/__init__.py | gasparakos/airbyte | 3b420c1775af3db355e9dd247378c3d7fe060004 | [
"MIT"
] | null | null | null | airbyte-integrations/base-python/airbyte_protocol/airbyte_protocol/__init__.py | gasparakos/airbyte | 3b420c1775af3db355e9dd247378c3d7fe060004 | [
"MIT"
] | null | null | null | airbyte-integrations/base-python/airbyte_protocol/airbyte_protocol/__init__.py | gasparakos/airbyte | 3b420c1775af3db355e9dd247378c3d7fe060004 | [
"MIT"
] | null | null | null | from typing import Generator
import yaml
import pkgutil
import warnings
import python_jsonschema_objects as pjs
def _load_classes(yaml_path: str):
data = yaml.load(pkgutil.get_data(__name__, yaml_path), Loader=yaml.FullLoader)
builder = pjs.ObjectBuilder(data)
return builder.build_classes(standardize_name... | 30.813953 | 120 | 0.739245 | 302 | 2,650 | 6.192053 | 0.347682 | 0.042781 | 0.041176 | 0.045455 | 0.167914 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183774 | 2,650 | 85 | 121 | 31.176471 | 0.86454 | 0.084151 | 0 | 0.178571 | 0 | 0 | 0.049546 | 0.02147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.053571 | 0.089286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ccb20438a9b921bb9e1ff19d0f9435a85958850e | 598 | py | Python | _teaching/csci127-summer-2020/readings/activities/etch-a-sketch.py | lgw2/lgw2.github.io | 3e2b0fb849407c26a64afd8e97be0eff7ce07f9b | [
"MIT"
] | null | null | null | _teaching/csci127-summer-2020/readings/activities/etch-a-sketch.py | lgw2/lgw2.github.io | 3e2b0fb849407c26a64afd8e97be0eff7ce07f9b | [
"MIT"
] | null | null | null | _teaching/csci127-summer-2020/readings/activities/etch-a-sketch.py | lgw2/lgw2.github.io | 3e2b0fb849407c26a64afd8e97be0eff7ce07f9b | [
"MIT"
] | null | null | null | import turtle
import random
window = turtle.Screen()
square = turtle.Turtle()
square.speed(0)
square.hideturtle()
square.up()
square.goto(-200, 200)
square.down()
for i in range(4):
square.forward(50)
square.right(90)
square.up()
square.goto(-205, 205)
square.write("Change Color")
pen... | 18.6875 | 79 | 0.64214 | 79 | 598 | 4.835443 | 0.493671 | 0.157068 | 0.188482 | 0.188482 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.197324 | 598 | 31 | 80 | 19.290323 | 0.733333 | 0 | 0 | 0.090909 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ccb411183786e11bdf4eb08feb173ee016ac5380 | 3,443 | py | Python | auth.py | nelsonrds/price_database | 00f7a9d0839640782fac13c814c2c6b17c047de2 | [
"MIT"
] | null | null | null | auth.py | nelsonrds/price_database | 00f7a9d0839640782fac13c814c2c6b17c047de2 | [
"MIT"
] | 3 | 2021-06-08T21:18:43.000Z | 2022-03-12T00:24:24.000Z | auth.py | nelsonrds/price_database | 00f7a9d0839640782fac13c814c2c6b17c047de2 | [
"MIT"
] | null | null | null | import functools
from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for, current_app, session
)
from werkzeug.security import check_password_hash, generate_password_hash
from .document import User
bp = Blueprint('auth', __name__, url_prefix='/auth')
@bp.route('/register',... | 26.898438 | 99 | 0.556491 | 370 | 3,443 | 5.048649 | 0.245946 | 0.047109 | 0.036403 | 0.042827 | 0.215739 | 0.180407 | 0.06531 | 0.06531 | 0.06531 | 0.06531 | 0 | 0.002555 | 0.318037 | 3,443 | 127 | 100 | 27.110236 | 0.793015 | 0.03253 | 0 | 0.344086 | 1 | 0 | 0.133794 | 0.007517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.172043 | 0.043011 | 0.010753 | 0.268817 | 0.043011 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ccc6840bf1ee14e63f7cee39888a7bf59c02a53c | 3,469 | py | Python | app/ml/artificial_user.py | sp0x/orion | 7ba1856546afe48710ef12d1e201f854f8d8d8ae | [
"MIT"
] | null | null | null | app/ml/artificial_user.py | sp0x/orion | 7ba1856546afe48710ef12d1e201f854f8d8d8ae | [
"MIT"
] | 3 | 2020-11-13T18:52:53.000Z | 2022-02-10T01:54:50.000Z | app/ml/artificial_user.py | sp0x/orion | 7ba1856546afe48710ef12d1e201f854f8d8d8ae | [
"MIT"
] | null | null | null |
class World:
def __init__(self):
pass
def get_state(self):
pass
def execute_action(self,a):
pass
class GameTree:
class GameNode:
def __init__(self, state, action, par):
self.state = state
self.action = action
self.... | 33.038095 | 105 | 0.544537 | 423 | 3,469 | 4.347518 | 0.250591 | 0.034802 | 0.023926 | 0.015226 | 0.109842 | 0.032626 | 0.032626 | 0 | 0 | 0 | 0 | 0.005112 | 0.379648 | 3,469 | 104 | 106 | 33.355769 | 0.849442 | 0.262612 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.09375 | 0 | 0 | 0.390625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ccca360676e3b7718b279666eca7277d488c1fec | 63 | py | Python | Premier-eye.API/controllers/areaMap/__init__.py | Sapfir0/premier-eye | 26bb27e5f804c2e9375cb6f5edebad58e7b5dffe | [
"MIT"
] | 16 | 2019-08-05T09:38:53.000Z | 2021-12-26T19:24:31.000Z | Premier-eye.API/controllers/areaMap/__init__.py | Sapfir0/premier-eye | 26bb27e5f804c2e9375cb6f5edebad58e7b5dffe | [
"MIT"
] | 4 | 2020-01-09T22:22:37.000Z | 2021-07-29T18:33:57.000Z | Premier-eye.API/controllers/areaMap/__init__.py | Sapfir0/premier-eye | 26bb27e5f804c2e9375cb6f5edebad58e7b5dffe | [
"MIT"
] | 4 | 2019-08-04T14:02:08.000Z | 2020-07-10T09:47:06.000Z |
namespace = '/map'
routes = {
'getAllObjectDest': '/',
}
| 9 | 28 | 0.539683 | 4 | 63 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 63 | 6 | 29 | 10.5 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.33871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ccd61acf39ff32cbf63568e1b6fc233c4e3f4beb | 231 | py | Python | NumPy/Array Basics/Reading and Writing Files/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | null | null | null | NumPy/Array Basics/Reading and Writing Files/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | 4 | 2022-01-14T10:40:47.000Z | 2022-02-14T13:01:13.000Z | NumPy/Array Basics/Reading and Writing Files/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from task import arr
# todo: replace this with an actual test
class TestCase(unittest.TestCase):
def test_add(self):
self.assertEqual((100, 4), arr.shape, msg="Wrong array shape.")
| 21 | 71 | 0.718615 | 35 | 231 | 4.714286 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.186147 | 231 | 10 | 72 | 23.1 | 0.856383 | 0.164502 | 0 | 0 | 0 | 0 | 0.094241 | 0 | 0 | 0 | 0 | 0.1 | 0.166667 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
aea3b21daff026772370e5d3884f05603fd8cbb1 | 433 | py | Python | hackoregon_examplar/api/models.py | hackoregon/2019-examplar-backend | a7dcfe7c64e81e957112a837c4fa277be59e4f26 | [
"MIT"
] | null | null | null | hackoregon_examplar/api/models.py | hackoregon/2019-examplar-backend | a7dcfe7c64e81e957112a837c4fa277be59e4f26 | [
"MIT"
] | 1 | 2019-07-22T04:00:15.000Z | 2019-07-22T04:11:04.000Z | hackoregon_examplar/api/models.py | hackoregon/2019-examplar-backend | a7dcfe7c64e81e957112a837c4fa277be59e4f26 | [
"MIT"
] | null | null | null | from django.db import models
class RouteChange(models.Model):
route_id = models.TextField(primary_key=True)
shape_id = models.TextField(blank=True, null=True)
y2009_trip_count = models.IntegerField(blank=True, null=True)
y2017_trip_count = models.IntegerField(blank=True, null=True)
pct_change = mod... | 33.307692 | 65 | 0.727483 | 58 | 433 | 5.258621 | 0.5 | 0.118033 | 0.170492 | 0.222951 | 0.288525 | 0.288525 | 0.288525 | 0.288525 | 0 | 0 | 0 | 0.022346 | 0.17321 | 433 | 12 | 66 | 36.083333 | 0.829609 | 0 | 0 | 0 | 0 | 0 | 0.027714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
aeab51d918e7f285f52097772c118f2d0d9c94cd | 1,068 | py | Python | 2doElemento/A17EjercicioVehiculo.py | Antonio985/SeminarioDeProgramacion | a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465 | [
"Unlicense"
] | null | null | null | 2doElemento/A17EjercicioVehiculo.py | Antonio985/SeminarioDeProgramacion | a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465 | [
"Unlicense"
] | null | null | null | 2doElemento/A17EjercicioVehiculo.py | Antonio985/SeminarioDeProgramacion | a1bdd7fa6fa202a0a7a2e9a0f72def24d0f1c465 | [
"Unlicense"
] | null | null | null | #Creacion de clase padre
class Vehiculo:
def __init__(self, color, ruedas):
self.color = color
self.ruedas = ruedas
def __str__(self):
return "Color : "+self.color+" ruedas: "+str(self.ruedas)
#creacion de una clase hija/o
class Coche(Vehiculo):
def __init__(self, color, ruedas, v... | 24.837209 | 80 | 0.648876 | 139 | 1,068 | 4.697842 | 0.280576 | 0.091884 | 0.091884 | 0.087289 | 0.3951 | 0.321593 | 0.11026 | 0 | 0 | 0 | 0 | 0.007246 | 0.224719 | 1,068 | 42 | 81 | 25.428571 | 0.781401 | 0.21161 | 0 | 0.208333 | 0 | 0 | 0.084135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
aebb6b993f7dc32f2063c8072caef7072ecf137e | 17,760 | py | Python | pysnmp-with-texts/HH3C-STACK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HH3C-STACK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HH3C-STACK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HH3C-STACK-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-STACK-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:29:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | 153.103448 | 1,549 | 0.791385 | 2,219 | 17,760 | 6.333033 | 0.148716 | 0.053796 | 0.094144 | 0.009393 | 0.439408 | 0.331104 | 0.287981 | 0.262364 | 0.2265 | 0.212695 | 0 | 0.058118 | 0.102872 | 17,760 | 115 | 1,550 | 154.434783 | 0.823888 | 0.018131 | 0 | 0 | 0 | 0.121495 | 0.388433 | 0.007057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074766 | 0 | 0.074766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aecb23d58213ed265f6e0f11e9c2fd0998664391 | 356 | py | Python | map func.py | ps2809/Python-Examples | 0574f53787af28bf5bd011c139d340091454a4f9 | [
"MIT"
] | 1 | 2021-07-30T06:15:18.000Z | 2021-07-30T06:15:18.000Z | map func.py | ps2809/Python-Examples | 0574f53787af28bf5bd011c139d340091454a4f9 | [
"MIT"
] | null | null | null | map func.py | ps2809/Python-Examples | 0574f53787af28bf5bd011c139d340091454a4f9 | [
"MIT"
] | null | null | null | l1=[1,2,3,4,5,6,7,8,9,10]
l2=list(map(lambda n:n*n,l1))
print('l2:',l2)
l3=list((map(lambda n,m:n*m,l1,l2)))#map function can take more than one sequence argument
print('l3:',l3)
#if the length of the sequence is not equal then function will perform till same length
l3.pop()
print('popped l3:',l3)
l4=list(map(lambda n,... | 35.6 | 90 | 0.691011 | 82 | 356 | 3 | 0.52439 | 0.03252 | 0.158537 | 0.170732 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.101124 | 356 | 10 | 91 | 35.6 | 0.675 | 0.390449 | 0 | 0 | 0 | 0 | 0.087963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
aed04305de4a221d1f525935a5ea1e7889c1c659 | 22,411 | py | Python | controller.py | PhilippeDura/Banking_project | 9b6859f883db52a70f83e61adbbfad8edc7dd19f | [
"MIT"
] | null | null | null | controller.py | PhilippeDura/Banking_project | 9b6859f883db52a70f83e61adbbfad8edc7dd19f | [
"MIT"
] | null | null | null | controller.py | PhilippeDura/Banking_project | 9b6859f883db52a70f83e61adbbfad8edc7dd19f | [
"MIT"
] | null | null | null |
import logging
from model import Client, SavingAccount, DebitAccount, BankAccount, TotalAccounts #on importe les classes du model
from model import session as db # importe la variale session du fichier model renomme db
from flask import render_template, request, redirect, url_for # url_for récupère l'url lié à l'etiqu... | 61.065395 | 522 | 0.693677 | 3,253 | 22,411 | 4.670458 | 0.130341 | 0.023893 | 0.028961 | 0.015007 | 0.726321 | 0.710985 | 0.688672 | 0.677878 | 0.671757 | 0.662015 | 0 | 0.003166 | 0.2248 | 22,411 | 366 | 523 | 61.23224 | 0.871352 | 0.488867 | 0 | 0.603524 | 0 | 0 | 0.132426 | 0.032454 | 0 | 0 | 0 | 0.002732 | 0 | 1 | 0.079295 | false | 0.022026 | 0.030837 | 0 | 0.264317 | 0.008811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aeddb855c5a797610dabb8dbde157b30a300ad42 | 2,452 | py | Python | dds/core/models.py | htrueman/data-delivery-system | 667681f09df4b4cd0adfbaae86b878d08e3a08c6 | [
"Apache-2.0"
] | null | null | null | dds/core/models.py | htrueman/data-delivery-system | 667681f09df4b4cd0adfbaae86b878d08e3a08c6 | [
"Apache-2.0"
] | null | null | null | dds/core/models.py | htrueman/data-delivery-system | 667681f09df4b4cd0adfbaae86b878d08e3a08c6 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth import password_validation
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import PermissionsMixin
from django.db import models
class SystemUserManager(BaseUserManager):
use_i... | 34.535211 | 77 | 0.705546 | 290 | 2,452 | 5.772414 | 0.310345 | 0.05914 | 0.062724 | 0.050179 | 0.221027 | 0.221027 | 0.158901 | 0.062127 | 0.062127 | 0 | 0 | 0.006119 | 0.200245 | 2,452 | 70 | 78 | 35.028571 | 0.847527 | 0.02814 | 0 | 0.08 | 0 | 0 | 0.055532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.34 | 0.1 | 0.02 | 0.62 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
aef3007d13ada0815d1caed5154b33e00a29e3cb | 862 | py | Python | GUI/Cocoa/Container.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/Cocoa/Container.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/Cocoa/Container.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #
# Python GUI - Containers - PyObjC version
#
from AppKit import NSView
from GUI.Utils import PyGUI_Flipped_NSView
from GUI import export
from GUI.GContainers import Container as GContainer
class Container(GContainer):
# _ns_inner_view NSView Containing NSView for subcomponents
# def __init__(self, _ns_vie... | 26.9375 | 79 | 0.679814 | 103 | 862 | 5.359223 | 0.368932 | 0.054348 | 0.059783 | 0.050725 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13109 | 862 | 31 | 80 | 27.806452 | 0.736983 | 0.49652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4e0349dfed050e2f0c2d7deb551b772a3559056a | 523 | py | Python | tests/test_question.py | thiagosalvatore/poo-exercise | ab897d9b17b3aa63252c4fa7334f624f6d380d9a | [
"Apache-2.0"
] | null | null | null | tests/test_question.py | thiagosalvatore/poo-exercise | ab897d9b17b3aa63252c4fa7334f624f6d380d9a | [
"Apache-2.0"
] | null | null | null | tests/test_question.py | thiagosalvatore/poo-exercise | ab897d9b17b3aa63252c4fa7334f624f6d380d9a | [
"Apache-2.0"
] | null | null | null | import pytest
from poo_exercise.models import Question
def test_create_question():
question = Question("Whats your name", ["Thiago", "James", "Bond"], "Thiago")
assert question
def test_create_question_without_options_should_raise_error():
with pytest.raises(AssertionError):
Question("Whats you... | 27.526316 | 81 | 0.730402 | 63 | 523 | 5.777778 | 0.47619 | 0.057692 | 0.107143 | 0.173077 | 0.667582 | 0.508242 | 0.508242 | 0.368132 | 0.368132 | 0.368132 | 0 | 0 | 0.14914 | 523 | 18 | 82 | 29.055556 | 0.817978 | 0 | 0 | 0.181818 | 0 | 0 | 0.162524 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e1579e95ea1c5c41beabd72c1214ff8afca88c6 | 913 | py | Python | model/dataloader.py | georgehalal/DetectNet | 8fc6661af60ae0bc26e3553117179ec3b5ddaacf | [
"MIT"
] | null | null | null | model/dataloader.py | georgehalal/DetectNet | 8fc6661af60ae0bc26e3553117179ec3b5ddaacf | [
"MIT"
] | null | null | null | model/dataloader.py | georgehalal/DetectNet | 8fc6661af60ae0bc26e3553117179ec3b5ddaacf | [
"MIT"
] | null | null | null | import os
import pdb
import pandas as pd
import pickle as pkl
import torch
from torch.utils.data import Dataset, DataLoader
class DetectionDataset(Dataset):
def __init__(self, dslice):
"""Load the datasets
Args:
dslice: data slice (train, test, or val)
"""
dir... | 25.361111 | 90 | 0.613363 | 123 | 913 | 4.447154 | 0.447154 | 0.043876 | 0.073126 | 0.082267 | 0.142596 | 0.142596 | 0 | 0 | 0 | 0 | 0 | 0.004438 | 0.259584 | 913 | 35 | 91 | 26.085714 | 0.804734 | 0.202629 | 0 | 0 | 0 | 0 | 0.109756 | 0.074695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.375 | 0.0625 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4e182abe2bd01aafd28e9ab0a5bb9f08c612a469 | 587 | py | Python | ExpenseTracker/expense/migrations/0002_auto_20200912_1458.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | null | null | null | ExpenseTracker/expense/migrations/0002_auto_20200912_1458.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | null | null | null | ExpenseTracker/expense/migrations/0002_auto_20200912_1458.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | 1 | 2020-09-01T15:38:19.000Z | 2020-09-01T15:38:19.000Z | # Generated by Django 3.1.1 on 2020-09-12 13:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('expense', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='expenseitem',
name='date_purchased',
... | 24.458333 | 94 | 0.594549 | 58 | 587 | 5.913793 | 0.741379 | 0.116618 | 0.145773 | 0.169096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052885 | 0.291312 | 587 | 23 | 95 | 25.521739 | 0.771635 | 0.076661 | 0 | 0.235294 | 1 | 0 | 0.131481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e1b409402762dd39acfb8b525e5332bf32c844f | 1,215 | py | Python | app.py | ismaeelakram/Discord-Embeds | 3991d984edc6c7d8229784d8372a62dcc226250f | [
"MIT"
] | null | null | null | app.py | ismaeelakram/Discord-Embeds | 3991d984edc6c7d8229784d8372a62dcc226250f | [
"MIT"
] | null | null | null | app.py | ismaeelakram/Discord-Embeds | 3991d984edc6c7d8229784d8372a62dcc226250f | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
import json
app = Flask(__name__)
base_url = "https://embed.ismaeelakram.com"
# TODO: Make homepage to generate queries
@app.route('/')
def home():
return 'Homepage coming soon..'
@app.route('/embed')
def embed():
title = request.args.get('title') or ""
... | 25.851064 | 103 | 0.611523 | 155 | 1,215 | 4.625806 | 0.309677 | 0.09205 | 0.117155 | 0.055788 | 0.078103 | 0.078103 | 0 | 0 | 0 | 0 | 0 | 0.008316 | 0.20823 | 1,215 | 46 | 104 | 26.413043 | 0.737006 | 0.032099 | 0 | 0.0625 | 1 | 0 | 0.18569 | 0.028109 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.09375 | false | 0 | 0.0625 | 0.03125 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e1c0e88901002cd3ae5f4ecfc2b6d2e051d85b0 | 3,187 | py | Python | src/rules_engine/rules_engine.py | funnel-io/funnel-rules-engine | 637c8973503446c75ca63d08eb3b3f91ef220122 | [
"MIT"
] | 3 | 2021-10-08T12:45:26.000Z | 2022-03-25T11:53:56.000Z | src/rules_engine/rules_engine.py | funnel-io/funnel-rules-engine | 637c8973503446c75ca63d08eb3b3f91ef220122 | [
"MIT"
] | 5 | 2021-10-10T11:18:54.000Z | 2021-12-29T22:02:05.000Z | src/rules_engine/rules_engine.py | funnel-io/funnel-rules-engine | 637c8973503446c75ca63d08eb3b3f91ef220122 | [
"MIT"
] | null | null | null | from concurrent.futures import ThreadPoolExecutor
class RulesEngine:
def __init__(self, *rules):
self.rules = rules
def reject(self, *tags):
"""Returns a new instance without the rules matching any of the given tags."""
return self.__class__(*filter(lambda rule: not rule.matches(*tags... | 28.20354 | 97 | 0.652338 | 429 | 3,187 | 4.72028 | 0.247086 | 0.027654 | 0.021728 | 0.019259 | 0.256296 | 0.232593 | 0.194568 | 0.194568 | 0.155062 | 0.155062 | 0 | 0.003313 | 0.242234 | 3,187 | 112 | 98 | 28.455357 | 0.835197 | 0.354879 | 0 | 0 | 0 | 0 | 0.030966 | 0.013881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.390244 | false | 0 | 0.02439 | 0.097561 | 0.829268 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4e25f6f23191d4a60303b03c54da9b561912579a | 299 | py | Python | UpdaterTest/service/main.py | kived/py4a-updater | 44c00382f78297cabba63207a37ea59e722507d9 | [
"MIT"
] | 5 | 2015-03-21T18:45:07.000Z | 2022-03-29T14:58:09.000Z | UpdaterTest/service/main.py | kived/py4a-updater | 44c00382f78297cabba63207a37ea59e722507d9 | [
"MIT"
] | null | null | null | UpdaterTest/service/main.py | kived/py4a-updater | 44c00382f78297cabba63207a37ea59e722507d9 | [
"MIT"
] | 3 | 2015-08-17T13:17:58.000Z | 2021-01-28T10:07:30.000Z | '''
Sample Android app updater service.
Remember to set the update check url below.
'''
UPDATE_CHECK_URL = 'http://192.168.2.130/updatecheck.txt'
from pyupdater.service import Updater
print 'service loading'
if __name__ == '__main__':
print 'service starting'
Updater(UPDATE_CHECK_URL).run()
| 18.6875 | 57 | 0.752508 | 42 | 299 | 5.071429 | 0.714286 | 0.15493 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03861 | 0.133779 | 299 | 15 | 58 | 19.933333 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.35545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e29fa8af5c1c540ab19f0c1eafab2e3233bf16a | 150 | py | Python | bjit_erp/models/contacts.py | KamrulSh/custom_erp_odoo | 5b48d1850888920b2ebf7bb7dcabc024030e2e28 | [
"MIT"
] | null | null | null | bjit_erp/models/contacts.py | KamrulSh/custom_erp_odoo | 5b48d1850888920b2ebf7bb7dcabc024030e2e28 | [
"MIT"
] | null | null | null | bjit_erp/models/contacts.py | KamrulSh/custom_erp_odoo | 5b48d1850888920b2ebf7bb7dcabc024030e2e28 | [
"MIT"
] | null | null | null | from odoo import models, fields, api
class EmployeesInformation(models.Model):
_inherit = 'res.users'
_description = "Inherit Contact Info"
| 21.428571 | 41 | 0.74 | 17 | 150 | 6.411765 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 150 | 6 | 42 | 25 | 0.879032 | 0 | 0 | 0 | 0 | 0 | 0.193333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e2f8c6c786c92f0f6059123c15169d6456f69da | 402 | py | Python | widgets/message_boxes/DBusErrorMessageBox.py | Wanket/DeSnapper | a321e6ce9ae493dfe4345b6b103e10050e380636 | [
"MIT"
] | null | null | null | widgets/message_boxes/DBusErrorMessageBox.py | Wanket/DeSnapper | a321e6ce9ae493dfe4345b6b103e10050e380636 | [
"MIT"
] | null | null | null | widgets/message_boxes/DBusErrorMessageBox.py | Wanket/DeSnapper | a321e6ce9ae493dfe4345b6b103e10050e380636 | [
"MIT"
] | null | null | null | from typing import Optional
from PyQt5.QtWidgets import QWidget
from dbus import DBusException
from widgets.message_boxes.ErrorMessageBox import ErrorMessageBox
class DBusErrorMessageBox(ErrorMessageBox):
def __init__(self, exception: DBusException, parent: Optional[QWidget] = None):
super().__init__(f"... | 33.5 | 108 | 0.79602 | 47 | 402 | 6.531915 | 0.574468 | 0.078176 | 0.104235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002809 | 0.114428 | 402 | 11 | 109 | 36.545455 | 0.859551 | 0 | 0 | 0 | 0 | 0 | 0.176617 | 0.146766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9d891495415c3f1e7a886c1ca6536f82d309da99 | 1,750 | py | Python | Project-Euler/python/8.py | marshallhumble/Project_Euler | 90101d308a3342a0eab33c1f4580df549bfc8896 | [
"MIT"
] | 3 | 2015-12-16T18:38:34.000Z | 2015-12-22T15:21:17.000Z | Project-Euler/python/8.py | marshallhumble/Project_Euler | 90101d308a3342a0eab33c1f4580df549bfc8896 | [
"MIT"
] | null | null | null | Project-Euler/python/8.py | marshallhumble/Project_Euler | 90101d308a3342a0eab33c1f4580df549bfc8896 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Find the greatest product of five consecutive digits in the 1000-digit number
"""
num = '\
73167176531330624919225119674426574742355349194934\
96983520312774506326239578318016984801869478851843\
85861560789112949495459501737958331952853208805511\
125406987471585238630507156932909632952274430... | 33.018868 | 89 | 0.782857 | 138 | 1,750 | 9.92029 | 0.536232 | 0.056976 | 0.066472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.684524 | 0.136 | 1,750 | 52 | 90 | 33.653846 | 0.220899 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.023256 | false | 0 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d8b251777adb233fafcbbb2e29ff957c108f54b | 798 | py | Python | NepsAcademy/Problemas/Python/medalhas.py | jailsonsf/NepsAcademy | ea5bb721cd19631bb5a8fc44c51d5d964ae37f49 | [
"MIT"
] | null | null | null | NepsAcademy/Problemas/Python/medalhas.py | jailsonsf/NepsAcademy | ea5bb721cd19631bb5a8fc44c51d5d964ae37f49 | [
"MIT"
] | null | null | null | NepsAcademy/Problemas/Python/medalhas.py | jailsonsf/NepsAcademy | ea5bb721cd19631bb5a8fc44c51d5d964ae37f49 | [
"MIT"
] | null | null | null | athlete_1 = int(input())
athlete_2 = int(input())
athlete_3 = int(input())
podium = []
if (athlete_1 < athlete_2 and athlete_1 < athlete_3):
podium.append(1)
if(athlete_2 < athlete_3):
podium.append(2)
podium.append(3)
else:
podium.append(3)
podium.append(2)
elif (athlete... | 19.95 | 55 | 0.610276 | 115 | 798 | 4.052174 | 0.121739 | 0.386266 | 0.167382 | 0.171674 | 0.613734 | 0.429185 | 0.429185 | 0.180258 | 0.180258 | 0 | 0 | 0.065878 | 0.258145 | 798 | 39 | 56 | 20.461538 | 0.721284 | 0 | 0 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.