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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b608402c0e8072771b347f2c3ecc7549b510eb7d | 327 | py | Python | bchscript/__init__.py | gandrewstone/bchscript | c73a69f259b4cfb71546903c736e4a94fd0680d7 | [
"MIT"
] | 7 | 2018-05-31T18:21:37.000Z | 2020-07-13T05:20:05.000Z | bchscript/__init__.py | gandrewstone/bchscript | c73a69f259b4cfb71546903c736e4a94fd0680d7 | [
"MIT"
] | 1 | 2018-06-19T18:14:48.000Z | 2018-06-19T18:14:48.000Z | bchscript/__init__.py | gandrewstone/bchscript | c73a69f259b4cfb71546903c736e4a94fd0680d7 | [
"MIT"
] | 4 | 2018-06-01T00:29:32.000Z | 2020-07-13T05:19:30.000Z | from bchscript.bchutil import BCH_TESTNET, BCH_MAINNET, BCH_REGTEST, bitcoinAddress2bin
from bchscript.bchscript import compile, script2hex, script2bin, prettyPrint
def mode(m):
global BCH_ADDRESS_PREFIX
BCH_ADDRESS_PREFIX = m
# print("setting bch network to '%s'" % BCH_ADDRESS_PREFIX)
__all__ = ["bchsc... | 27.25 | 87 | 0.7737 | 41 | 327 | 5.853659 | 0.609756 | 0.125 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.146789 | 327 | 11 | 88 | 29.727273 | 0.849462 | 0.174312 | 0 | 0 | 0 | 0 | 0.033582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3733d3e30660680d9a0362cfceee9dfad9c58b74 | 2,871 | py | Python | examples3/sac/visualize_deepmind.py | lgvaz/torchrl | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | 5 | 2018-06-21T14:33:40.000Z | 2018-08-18T02:26:03.000Z | examples3/sac/visualize_deepmind.py | lgvaz/reward | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | null | null | null | examples3/sac/visualize_deepmind.py | lgvaz/reward | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | 2 | 2018-05-08T03:34:49.000Z | 2018-06-22T15:04:17.000Z | import torch, torch.nn as nn, numpy as np
import reward as rw, reward.utils as U
from dm_control import suite, viewer
DEVICE = U.device.get()
class PolicyNN(nn.Module):
def __init__(self, n_in, n_out, hidden=256, activation=nn.ReLU, logstd_range=(-20, 2)):
super().__init__()
self.logstd_range = lo... | 38.797297 | 117 | 0.66388 | 489 | 2,871 | 3.730061 | 0.251534 | 0.013158 | 0.028509 | 0.030702 | 0.285088 | 0.260965 | 0.213816 | 0.169408 | 0.151316 | 0.121711 | 0 | 0.015411 | 0.186346 | 2,871 | 73 | 118 | 39.328767 | 0.765411 | 0.027517 | 0 | 0.071429 | 0 | 0 | 0.021872 | 0.018645 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.25 | false | 0 | 0.053571 | 0.107143 | 0.446429 | 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 |
3752032895f97132483d0cfa4339b37fb1eaf5c4 | 151 | py | Python | 3.py | guillesiesta/python_comprehensions | 4d2765b29b8165a5fa2488e6a50a49235238c82f | [
"Apache-2.0"
] | null | null | null | 3.py | guillesiesta/python_comprehensions | 4d2765b29b8165a5fa2488e6a50a49235238c82f | [
"Apache-2.0"
] | null | null | null | 3.py | guillesiesta/python_comprehensions | 4d2765b29b8165a5fa2488e6a50a49235238c82f | [
"Apache-2.0"
] | null | null | null | hola = True
adiosguillermomurielsanchezlafuente = True
if (adiosguillermomurielsanchezlafuente
and hola):
print("ok con nombre muy largo")
| 21.571429 | 42 | 0.761589 | 14 | 151 | 8.214286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178808 | 151 | 6 | 43 | 25.166667 | 0.927419 | 0 | 0 | 0 | 0 | 0 | 0.152318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3756ed66b18a82931a6853bd82ac2dc78630d72b | 1,597 | py | Python | src/foxdot/sandbox/180823_0948_compo_036.py | Neko250/aisthesis | 1d4a2c3070d10596c28b25ea2170523583e7eff0 | [
"Apache-2.0"
] | 4 | 2018-06-29T18:39:34.000Z | 2021-06-20T16:44:29.000Z | src/foxdot/sandbox/180823_0948_compo_036.py | Neko250/aisthesis | 1d4a2c3070d10596c28b25ea2170523583e7eff0 | [
"Apache-2.0"
] | null | null | null | src/foxdot/sandbox/180823_0948_compo_036.py | Neko250/aisthesis | 1d4a2c3070d10596c28b25ea2170523583e7eff0 | [
"Apache-2.0"
] | null | null | null | Scale.default = Scale.chromatic
Root.default = 0
Clock.bpm = 120
var.ch = var(P[1,5,0,3],8)
~p1 >> play('m', amp=.8, dur=PDur(3,8), rate=[1,(1,2)])
~p2 >> play('-', amp=.5, dur=2, hpf=2000, hpr=linvar([.1,1],16), sample=1).often('stutter', 4, dur=3).every(8, 'sample.offadd', 1)
~p3 >> play('{ ppP[pP][Pp]}', amp=.8,... | 33.270833 | 145 | 0.566061 | 333 | 1,597 | 2.714715 | 0.24024 | 0.038717 | 0.044248 | 0.039823 | 0.414823 | 0.392699 | 0.392699 | 0.355089 | 0.355089 | 0.285398 | 0 | 0.146564 | 0.107076 | 1,597 | 47 | 146 | 33.978723 | 0.487377 | 0 | 0 | 0 | 0 | 0 | 0.038197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
375c4db97fae968fedba9552a5d467ff9af0a2d3 | 1,216 | py | Python | statmail/Types.py | birm/StatMail | 61e39346a4754f8e9bab1736caf02f4cb1c2c2a5 | [
"MIT"
] | null | null | null | statmail/Types.py | birm/StatMail | 61e39346a4754f8e9bab1736caf02f4cb1c2c2a5 | [
"MIT"
] | 7 | 2016-10-18T18:30:47.000Z | 2017-01-17T21:28:40.000Z | statmail/Types.py | birm/StatMail | 61e39346a4754f8e9bab1736caf02f4cb1c2c2a5 | [
"MIT"
] | null | null | null | from .SMBase import SMBase
""" A collection of builtin server types. """
class Types(SMBase):
"""A class for keeping track of all types supported."""
# TODO read from files later for types, but for now...
supported = ["minimal"]
@classmethod
def supported(self, stype):
"""Determine if th... | 32.864865 | 86 | 0.564967 | 140 | 1,216 | 4.892857 | 0.528571 | 0.061314 | 0.052555 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010502 | 0.29523 | 1,216 | 36 | 87 | 33.777778 | 0.788798 | 0.186678 | 0 | 0.473684 | 0 | 0 | 0.121345 | 0.039474 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.578947 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
377f113688c643f861a107b95cf2a20826771ea4 | 445 | py | Python | check_db.py | Yaremenko-R/python_training | f198b898bd9947afd4f71bc01f992909df392a57 | [
"Apache-2.0"
] | null | null | null | check_db.py | Yaremenko-R/python_training | f198b898bd9947afd4f71bc01f992909df392a57 | [
"Apache-2.0"
] | null | null | null | check_db.py | Yaremenko-R/python_training | f198b898bd9947afd4f71bc01f992909df392a57 | [
"Apache-2.0"
] | null | null | null | from fixture.orm import ORMFixture
from fixture.db import DbFixture
from model.group import Group
from model.contact import Contact
database = ORMFixture(host="localhost", name="addressbook", user="root", password="")
try:
l = database.get_contacts_in_group(Group(id="174"))
# l = sorted(database.get_groups_con... | 27.8125 | 88 | 0.723596 | 65 | 445 | 4.830769 | 0.584615 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01061 | 0.152809 | 445 | 15 | 89 | 29.666667 | 0.822281 | 0.186517 | 0 | 0 | 0 | 0 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
379e57a273cd4876cffb73afd2c43311830a75c5 | 86 | py | Python | consent/__init__.py | alekosot/django-consent | 545363978e5ef9e404e633f198d94295b5aa384b | [
"MIT"
] | 1 | 2019-09-25T06:37:45.000Z | 2019-09-25T06:37:45.000Z | consent/__init__.py | d0ugal/django-consent | 8b72b487ace0a09e59962646ddb63b95796ca55a | [
"MIT"
] | null | null | null | consent/__init__.py | d0ugal/django-consent | 8b72b487ace0a09e59962646ddb63b95796ca55a | [
"MIT"
] | null | null | null | # following PEP 386, versiontools will pick it up
__version__ = (0, 2, 0, "final", 0)
| 28.666667 | 49 | 0.686047 | 14 | 86 | 3.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.186047 | 86 | 2 | 50 | 43 | 0.685714 | 0.546512 | 0 | 0 | 0 | 0 | 0.135135 | 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 |
37a1dff781641c0f7cb06a0378062d227d3b4139 | 1,441 | py | Python | tests/test_processor.py | manslogic/rasa_core | 17c82e6be052fc147caef9a9914d06f79a944687 | [
"Apache-2.0"
] | 1 | 2017-12-27T04:07:24.000Z | 2017-12-27T04:07:24.000Z | tests/test_processor.py | jenish-cj/botnlufoodrest | b41aa2c7a1f6e492e10f07e67562b612b5b13a53 | [
"Apache-2.0"
] | null | null | null | tests/test_processor.py | jenish-cj/botnlufoodrest | b41aa2c7a1f6e492e10f07e67562b612b5b13a53 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from rasa_core.channels import UserMessage
from rasa_core.channels.direct import CollectingOutputChannel
from rasa_core.featurizers import BinaryFeaturizer
from rasa_core... | 40.027778 | 70 | 0.764053 | 147 | 1,441 | 7.170068 | 0.401361 | 0.075901 | 0.113852 | 0.056926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000846 | 0.179736 | 1,441 | 35 | 71 | 41.171429 | 0.890863 | 0 | 0 | 0 | 0 | 0 | 0.055517 | 0.028452 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.034483 | false | 0 | 0.482759 | 0 | 0.517241 | 0.034483 | 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 |
37ad375b563b64c735e0509a6bc22b77f4aa298e | 2,633 | py | Python | arse/biclustering/deflation.py | marianotepper/comdet | ca55083fdcd555b3f80586423cbe8a09498993d2 | [
"BSD-3-Clause"
] | null | null | null | arse/biclustering/deflation.py | marianotepper/comdet | ca55083fdcd555b3f80586423cbe8a09498993d2 | [
"BSD-3-Clause"
] | null | null | null | arse/biclustering/deflation.py | marianotepper/comdet | ca55083fdcd555b3f80586423cbe8a09498993d2 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from . import compression
from . import utils
class DeflationError(RuntimeError):
def __init__(self, *args, **kwargs):
super(DeflationError, self).__init__(*args, **kwargs)
class Deflator(utils.Downdater):
def __init__(self, array):
super(Deflator, self... | 28.934066 | 76 | 0.635777 | 277 | 2,633 | 5.722022 | 0.205776 | 0.050473 | 0.02776 | 0.030284 | 0.411987 | 0.182334 | 0.120505 | 0.093375 | 0.093375 | 0.093375 | 0 | 0.003171 | 0.281428 | 2,633 | 90 | 77 | 29.255556 | 0.834567 | 0 | 0 | 0.414286 | 0 | 0 | 0.033042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.057143 | 0.042857 | 0.028571 | 0.385714 | 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 |
37b13ac6a482ca464f323ea8e9763e6ccd5bd832 | 3,646 | py | Python | Data Structures/Heap/JesseAndCookies.py | aibenStunner/HackerRank | de223f2b1fa95d1959deef9ce14b39baa61100ba | [
"MIT"
] | 2 | 2020-04-17T02:54:59.000Z | 2020-06-08T23:32:12.000Z | Data Structures/Heap/JesseAndCookies.py | aibenStunner/HackerRank | de223f2b1fa95d1959deef9ce14b39baa61100ba | [
"MIT"
] | null | null | null | Data Structures/Heap/JesseAndCookies.py | aibenStunner/HackerRank | de223f2b1fa95d1959deef9ce14b39baa61100ba | [
"MIT"
] | 1 | 2021-11-16T14:05:22.000Z | 2021-11-16T14:05:22.000Z | #!/bin/python3
import os
import sys
class minHeap:
def __init__(self):
self.items = []
self.size = len(self.items)
def getLeftChildIndex(self, parentIndex):
return 2 * parentIndex + 1
def getRightChildIndex(self, parentIndex):
return 2 * parentIndex + 2
def g... | 26.42029 | 93 | 0.538124 | 396 | 3,646 | 4.921717 | 0.244949 | 0.092355 | 0.053361 | 0.058492 | 0.205747 | 0.110826 | 0.043099 | 0.043099 | 0.043099 | 0.043099 | 0 | 0.014173 | 0.342019 | 3,646 | 137 | 94 | 26.613139 | 0.798249 | 0.153319 | 0 | 0.116279 | 0 | 0 | 0.010437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.023256 | 0.104651 | 0.395349 | 0.011628 | 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 |
37c68daf5d38e300ea366a9d35adffa55a0cf4c8 | 261 | py | Python | Python3/Exercises/DictionaryMethods/dictionary_methods.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | Python3/Exercises/DictionaryMethods/dictionary_methods.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | Python3/Exercises/DictionaryMethods/dictionary_methods.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | inventory = {'croissant': 19, 'bagel': 4, 'muffin': 8, 'cake': 1}
print(f'{inventory =}')
stock_list = inventory.copy()
print(f'{stock_list =}')
stock_list['hot cheetos'] = 25
stock_list.update({'cookie' : 18})
stock_list.pop('cake')
print(f'{stock_list =}') | 23.727273 | 65 | 0.655172 | 38 | 261 | 4.342105 | 0.552632 | 0.327273 | 0.133333 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038793 | 0.111111 | 261 | 11 | 66 | 23.727273 | 0.672414 | 0 | 0 | 0.25 | 0 | 0 | 0.328244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
805ebe18518a4388e308601d10dffab1db81feb4 | 304 | py | Python | tests/file_test_util.py | lyksdu/langmodels | 5a49ee523e84513915f6fa747e03e5ef813aec17 | [
"MIT"
] | 9 | 2020-01-21T13:34:49.000Z | 2022-03-18T02:34:30.000Z | tests/file_test_util.py | lyksdu/langmodels | 5a49ee523e84513915f6fa747e03e5ef813aec17 | [
"MIT"
] | 6 | 2020-05-02T07:03:26.000Z | 2022-03-11T23:48:38.000Z | tests/file_test_util.py | lyksdu/langmodels | 5a49ee523e84513915f6fa747e03e5ef813aec17 | [
"MIT"
] | 3 | 2019-08-03T00:06:19.000Z | 2020-05-07T00:37:19.000Z | from typing import List
from unittest.mock import MagicMock
def file_mock_with_lines(lines: List[str]):
file_mock = MagicMock(spec=['__enter__', '__exit__'])
handle1 = file_mock.__enter__.return_value
handle1.__iter__.return_value = iter(map(lambda l: l + '\n', lines))
return file_mock | 33.777778 | 72 | 0.740132 | 43 | 304 | 4.674419 | 0.534884 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.148026 | 304 | 9 | 73 | 33.777778 | 0.76834 | 0 | 0 | 0 | 0 | 0 | 0.062295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
80601f4e57df490107c52562edfb5325419b2d30 | 624 | py | Python | noheavenbot/utils/database_config.py | Molanito13/noheaven-bot | ad126d4601321ecabff9d1d214ce7d3f4e258c3e | [
"MIT"
] | 3 | 2018-10-13T14:05:24.000Z | 2018-12-25T21:40:21.000Z | noheavenbot/utils/database_config.py | Molanito13/noheaven-bot | ad126d4601321ecabff9d1d214ce7d3f4e258c3e | [
"MIT"
] | 2 | 2018-10-08T14:33:39.000Z | 2020-03-02T18:00:47.000Z | noheavenbot/utils/database_config.py | Molanito13/noheaven-bot | ad126d4601321ecabff9d1d214ce7d3f4e258c3e | [
"MIT"
] | 5 | 2018-10-08T14:18:58.000Z | 2020-11-01T17:55:51.000Z | import logging
try:
from asyncpg import create_pool
except ModuleNotFoundError:
logging.warning('Database not set up, install asyncpg')
from noheavenbot.utils.constants import EnvVariables
class Database:
@classmethod
async def connect(cls):
credentials = {'user': EnvVariables.get('DB_USER'... | 28.363636 | 67 | 0.621795 | 62 | 624 | 6.145161 | 0.564516 | 0.19685 | 0.223097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272436 | 624 | 21 | 68 | 29.714286 | 0.839207 | 0 | 0 | 0 | 0 | 0 | 0.165064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8070ca9d70fe00ca55a340a59c8f92988b806d9b | 1,427 | py | Python | style/predict/servable/base.py | imagination-ai/kerem-side-projects-monorepo | 3d9da9d57f305ac2d6a03bab3787acfbee7269ee | [
"MIT"
] | null | null | null | style/predict/servable/base.py | imagination-ai/kerem-side-projects-monorepo | 3d9da9d57f305ac2d6a03bab3787acfbee7269ee | [
"MIT"
] | 2 | 2022-01-20T15:46:39.000Z | 2022-02-16T20:51:47.000Z | style/predict/servable/base.py | imagination-ai/kerem-side-projects-monorepo | 3d9da9d57f305ac2d6a03bab3787acfbee7269ee | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
import dill
class BaseServable(ABC):
SCHEMA_SLUG = "schema.json"
MODEL_TYPE: str
MODEL_VARIANT: str
def __init__(self, model):
self.model = model
@abstractmethod
def export(self, path):
raise NotImplementedError
@abstractmethod
de... | 23.393443 | 76 | 0.641205 | 166 | 1,427 | 5.421687 | 0.415663 | 0.06 | 0.066667 | 0.056667 | 0.14 | 0.086667 | 0.086667 | 0.086667 | 0 | 0 | 0 | 0.011204 | 0.249474 | 1,427 | 60 | 77 | 23.783333 | 0.829132 | 0 | 0 | 0.395349 | 0 | 0 | 0.038542 | 0.015417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0.023256 | 0.046512 | 0.069767 | 0.581395 | 0.023256 | 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 |
8078d7a28563705ea00176138060393918bcd846 | 219 | py | Python | 0.1/game/maptest.py | icefoxen/games-drewfe | 7606330b89e4ad37e98637e79af2c058b18112d7 | [
"MIT"
] | null | null | null | 0.1/game/maptest.py | icefoxen/games-drewfe | 7606330b89e4ad37e98637e79af2c058b18112d7 | [
"MIT"
] | null | null | null | 0.1/game/maptest.py | icefoxen/games-drewfe | 7606330b89e4ad37e98637e79af2c058b18112d7 | [
"MIT"
] | null | null | null | import pygame
from pygame.locals import *
from map import *
a = Map( 'test.map' )
scr = pygame.display.set_mode( (400, 300) )
a.draw( scr, 0, 0, 400, 300 )
pygame.display.flip()
#a.printTileset()
while True:
pass
| 15.642857 | 43 | 0.671233 | 35 | 219 | 4.171429 | 0.571429 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 0.178082 | 219 | 13 | 44 | 16.846154 | 0.733333 | 0.073059 | 0 | 0 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
807f6be89f92fe14527544c6ac0f3f6e3bb7e50f | 1,066 | py | Python | server/src/service/image/i_image_controller_service.py | konrad2508/picgal | 7f7822a02145fd2efa697e1c7750af9af680a3da | [
"MIT"
] | 4 | 2021-12-31T10:06:34.000Z | 2022-01-16T16:34:50.000Z | server/src/service/image/i_image_controller_service.py | konrad2508/picgal | 7f7822a02145fd2efa697e1c7750af9af680a3da | [
"MIT"
] | null | null | null | server/src/service/image/i_image_controller_service.py | konrad2508/picgal | 7f7822a02145fd2efa697e1c7750af9af680a3da | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from model.image.data.count_data import CountData
from model.image.data.image_data import ImageData
from model.image.data.tag_data import TagData
from model.image.data.virtual_tag_data import VirtualTagData
from model.image.request.image_modification_request import ImageModification... | 34.387097 | 144 | 0.732645 | 135 | 1,066 | 5.607407 | 0.274074 | 0.157199 | 0.15852 | 0.095112 | 0.221929 | 0.200793 | 0.200793 | 0.200793 | 0.10568 | 0.10568 | 0 | 0 | 0.157599 | 1,066 | 30 | 145 | 35.533333 | 0.842984 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.285714 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
80866b9b24652869ee934797eac93607bc5366aa | 386 | py | Python | cursecreatortests.py | kushtrimh/curse-of-tenebrae | 374ca8684debb686a651c216e2be78f449b983de | [
"BSD-2-Clause"
] | null | null | null | cursecreatortests.py | kushtrimh/curse-of-tenebrae | 374ca8684debb686a651c216e2be78f449b983de | [
"BSD-2-Clause"
] | null | null | null | cursecreatortests.py | kushtrimh/curse-of-tenebrae | 374ca8684debb686a651c216e2be78f449b983de | [
"BSD-2-Clause"
] | null | null | null | import unittest
import mock
import Tkinter
from cursecreator import Application
class TestNPCCreator(unittest.TestCase):
def setUp(self):
root = Tkinter.Tk()
self.app = Application(root)
def test_attribute_fixer(self):
self.assertTrue(self.app.attribute_fixer("health", 0))
self.assertFalse(self.app.attribut... | 24.125 | 57 | 0.766839 | 50 | 386 | 5.68 | 0.54 | 0.073944 | 0.112676 | 0.147887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.11399 | 386 | 16 | 58 | 24.125 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0.05168 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
808721236b1e32630e399cfed97544fb1b0949bc | 813 | py | Python | external/modbus_tk/modbus_tk/__init__.py | iconnect-iot/intel-device-resource-mgt-lib | 3be2f7342b6f79836439e9712e2a36939c986760 | [
"Apache-2.0"
] | 2 | 2020-03-26T07:23:09.000Z | 2020-04-19T14:20:42.000Z | external/modbus_tk/modbus_tk/__init__.py | iconnect-iot/intel-device-resource-mgt-lib | 3be2f7342b6f79836439e9712e2a36939c986760 | [
"Apache-2.0"
] | 1 | 2020-06-02T04:32:15.000Z | 2020-06-02T04:32:34.000Z | external/modbus_tk/modbus_tk/__init__.py | iconnect-iot/intel-device-resource-mgt-lib | 3be2f7342b6f79836439e9712e2a36939c986760 | [
"Apache-2.0"
] | 15 | 2018-04-06T11:43:38.000Z | 2022-02-07T03:25:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Modbus TestKit: Implementation of Modbus protocol in python
(C)2009 - Luc Jean - luc.jean@gmail.com
(C)2009 - Apidev - http://www.apidev.fr
This is distributed under GNU LGPL license, see license.txt
Make possible to write modbus TCP and RTU master and... | 21.394737 | 80 | 0.675277 | 106 | 813 | 5.169811 | 0.792453 | 0.047445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030817 | 0.201722 | 813 | 37 | 81 | 21.972973 | 0.813559 | 0.845018 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
808b93fe478dc64ffdbfa77f3e6535748754649c | 1,296 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/EGL/MESA/drm_image.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/EGL/MESA/drm_image.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/EGL/MESA/drm_image.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.EGL import _types as _cs
# End users want this...
from OpenGL.raw.EGL._types import *
from OpenGL.raw.EGL import _errors
from OpenGL.constant import Constant as _C
imp... | 48 | 114 | 0.828704 | 203 | 1,296 | 4.802956 | 0.330049 | 0.086154 | 0.172308 | 0.078974 | 0.382564 | 0.207179 | 0 | 0 | 0 | 0 | 0 | 0.035176 | 0.078704 | 1,296 | 26 | 115 | 49.846154 | 0.781407 | 0.07716 | 0 | 0.090909 | 1 | 0 | 0.191745 | 0.144454 | 0 | 0 | 0.042992 | 0 | 0 | 1 | 0.136364 | false | 0.090909 | 0.272727 | 0.045455 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
809d1a480aa05cc6e8c44d78d1263f97f33db820 | 312 | py | Python | Python/02-Django/01-Try-Django/Challenges/01-Getting-Started/03/mainurls.py | pabhd3/Code-School | 5115c1bdc1e99ea667bdc942667342123ae3929a | [
"MIT"
] | null | null | null | Python/02-Django/01-Try-Django/Challenges/01-Getting-Started/03/mainurls.py | pabhd3/Code-School | 5115c1bdc1e99ea667bdc942667342123ae3929a | [
"MIT"
] | null | null | null | Python/02-Django/01-Try-Django/Challenges/01-Getting-Started/03/mainurls.py | pabhd3/Code-School | 5115c1bdc1e99ea667bdc942667342123ae3929a | [
"MIT"
] | null | null | null | # Python
# Django
# Try Django
# Getting Started (Level 1)
# Challenge 03 - Refactor the existing URL Dispatchers
from django.conf.urls import url
from . import views
urlpatterns = [
# TODO: Add a url() object whose regex parameter takes an empty path that
# terminates, and goes to views.home
] | 24 | 78 | 0.711538 | 44 | 312 | 5.045455 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.221154 | 312 | 13 | 79 | 24 | 0.901235 | 0.695513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
80b6a675ace70af0f9c0466a40acaf8e75019f1e | 179 | py | Python | tests/cases/help/see_for_top_level/test_see_for_top_level.py | WilliamMayor/vantage | 05cda557cfc27cbf8aaf80a472a023a896e98546 | [
"MIT"
] | 1 | 2018-02-21T09:50:53.000Z | 2018-02-21T09:50:53.000Z | tests/cases/help/see_for_top_level/test_see_for_top_level.py | WilliamMayor/vantage | 05cda557cfc27cbf8aaf80a472a023a896e98546 | [
"MIT"
] | 15 | 2015-04-30T15:19:29.000Z | 2021-07-28T14:34:46.000Z | tests/cases/help/see_for_top_level/test_see_for_top_level.py | WilliamMayor/vantage | 05cda557cfc27cbf8aaf80a472a023a896e98546 | [
"MIT"
] | null | null | null | def test_see_for_top_level(result):
assert (
"usage: vantage [-a PATH] [-e NAME ...] [-v KEY=[VALUE] ...] [--verbose] [-h] COMMAND..."
in result.stdout_
)
| 29.833333 | 97 | 0.547486 | 23 | 179 | 4.043478 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24581 | 179 | 5 | 98 | 35.8 | 0.688889 | 0 | 0 | 0 | 0 | 0.2 | 0.486034 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
80b90025f8cfff3aebe55376e817e68ada7a4f80 | 3,256 | py | Python | models/__init__.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | models/__init__.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | models/__init__.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import cPickle
class Distribution(object):
def dim(self):
raise NotImplementedError('abstract base class')
def predict(self, cond=None):
raise NotImplementedError('abstract base class')
def sample(self, cond=None, key_prefix=""):
raise NotImplementedError('ab... | 28.313043 | 110 | 0.585381 | 429 | 3,256 | 4.305361 | 0.202797 | 0.047645 | 0.155929 | 0.17542 | 0.464537 | 0.416892 | 0.239848 | 0.214402 | 0.142934 | 0.142934 | 0 | 0.007968 | 0.306204 | 3,256 | 114 | 111 | 28.561404 | 0.80965 | 0.105344 | 0 | 0.373134 | 0 | 0 | 0.061001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253731 | false | 0 | 0.029851 | 0.044776 | 0.447761 | 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 |
80c8767c767968d7e7fa23b2ecf6dcc08bf852f7 | 3,884 | py | Python | semana4/app.py | ArseniumGX/bluemer-modulo2 | 24e5071b734de362dc47ef9d402c191699d15b43 | [
"MIT"
] | null | null | null | semana4/app.py | ArseniumGX/bluemer-modulo2 | 24e5071b734de362dc47ef9d402c191699d15b43 | [
"MIT"
] | null | null | null | semana4/app.py | ArseniumGX/bluemer-modulo2 | 24e5071b734de362dc47ef9d402c191699d15b43 | [
"MIT"
] | null | null | null | from werkzeug.security import generate_password_hash, check_password_hash
from flask import Flask, render_template, jsonify, request, redirect, flash, url_for
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager, UserMixin, current_user, login_required, logout_user, login_user
app = Flask(__nam... | 32.638655 | 102 | 0.598095 | 450 | 3,884 | 4.982222 | 0.28 | 0.039251 | 0.049063 | 0.049955 | 0.169492 | 0.14719 | 0.14719 | 0.100803 | 0.068689 | 0.068689 | 0 | 0.010719 | 0.183316 | 3,884 | 119 | 103 | 32.638655 | 0.696091 | 0.003347 | 0 | 0.133333 | 1 | 0 | 0.107407 | 0.030484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.133333 | 0.055556 | 0.055556 | 0.455556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
80f13a81a491ee548192c6197ec3cfb3667be23d | 65 | py | Python | mdstudio/mdstudio/deferred/__init__.py | NLeSC/LIEStudio | 03c163b4a2590b4e2204621e1c941c28a9624887 | [
"Apache-2.0"
] | 10 | 2017-09-14T07:26:15.000Z | 2021-04-01T09:33:03.000Z | mdstudio/mdstudio/deferred/__init__.py | NLeSC/LIEStudio | 03c163b4a2590b4e2204621e1c941c28a9624887 | [
"Apache-2.0"
] | 117 | 2017-09-13T08:09:48.000Z | 2019-10-03T12:19:13.000Z | mdstudio/mdstudio/deferred/__init__.py | NLeSC/LIEStudio | 03c163b4a2590b4e2204621e1c941c28a9624887 | [
"Apache-2.0"
] | 1 | 2018-09-26T09:40:51.000Z | 2018-09-26T09:40:51.000Z | __all__ = ['chainable', 'make_deferred', "return_value", 'lock']
| 32.5 | 64 | 0.692308 | 7 | 65 | 5.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 65 | 1 | 65 | 65 | 0.661017 | 0 | 0 | 0 | 0 | 0 | 0.584615 | 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 |
80f142bd0ab437969db559a95c9f06b07679a259 | 1,440 | py | Python | setup.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | setup.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | setup.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright © 2019-2020, Matjaž Guštin <dev@matjaz.it> <https://matjaz.it>.
# Released under the BSD 3-Clause License
"""Package setup for the Rangeforce library."""
from distutils.core import setup
# noinspection PyUnresolvedReferences
import setuptools
setup(
n... | 28.235294 | 75 | 0.603472 | 147 | 1,440 | 5.870748 | 0.62585 | 0.132097 | 0.173812 | 0.180765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024931 | 0.247917 | 1,440 | 50 | 76 | 28.8 | 0.771006 | 0.163194 | 0 | 0.076923 | 0 | 0 | 0.505863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.051282 | 0 | 0.051282 | 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 |
80fd13c03cdfaa618f595e649dee4f74f7c9f3b9 | 498 | py | Python | genthreads/actor.py | f1sty/genthreads | 00e509b7315b7e0107e1c46235ec11e044aeb9ef | [
"MIT"
] | null | null | null | genthreads/actor.py | f1sty/genthreads | 00e509b7315b7e0107e1c46235ec11e044aeb9ef | [
"MIT"
] | null | null | null | genthreads/actor.py | f1sty/genthreads | 00e509b7315b7e0107e1c46235ec11e044aeb9ef | [
"MIT"
] | null | null | null | from multiprocessing import Process
class InboxFullError(Exception):
pass
class Actor(Process):
def __init__(self, inbox_size=48):
super(Actor, self).__init__()
self._inbox = list()
self._inbox_size = inbox_size
def send(self, value):
if len(self._inbox) < self._inbox_si... | 21.652174 | 58 | 0.628514 | 59 | 498 | 5 | 0.508475 | 0.213559 | 0.132203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.277108 | 498 | 22 | 59 | 22.636364 | 0.813889 | 0 | 0 | 0 | 0 | 0 | 0.044177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.0625 | 0.0625 | 0.4375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0384989e82636b5dbefe82692c4b228ca4b5e756 | 607 | py | Python | class4/pm.py | patrebert/pynet_cert | b82cce3ddb20d9e4abc89d74579ddeb3513bdf55 | [
"Apache-2.0"
] | null | null | null | class4/pm.py | patrebert/pynet_cert | b82cce3ddb20d9e4abc89d74579ddeb3513bdf55 | [
"Apache-2.0"
] | null | null | null | class4/pm.py | patrebert/pynet_cert | b82cce3ddb20d9e4abc89d74579ddeb3513bdf55 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Demonstrate use of paramiko to connect to
managed device, send commands, get output
"""
import sys
import paramiko
from getpass import getpass
from time import sleep
ip_addr = '184.105.247.70'
username = 'pyclass'
password = '88newclass'
password=getpass()
sess=paramiko.SSHClient()
sess.set_m... | 22.481481 | 58 | 0.775947 | 94 | 607 | 4.904255 | 0.62766 | 0.039046 | 0.043384 | 0.060738 | 0.099783 | 0.099783 | 0 | 0 | 0 | 0 | 0 | 0.040516 | 0.105437 | 607 | 26 | 59 | 23.346154 | 0.808471 | 0.032949 | 0 | 0.2 | 0 | 0 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.2 | 0.2 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
03b414db96d625b3d6c44cb1055d545e44f688f9 | 1,332 | py | Python | my_web_project/authentication/forms.py | AlexYankoff/my_web_project | d7d2c26289c561bc39d713ad5a1adff7a01b6508 | [
"MIT"
] | null | null | null | my_web_project/authentication/forms.py | AlexYankoff/my_web_project | d7d2c26289c561bc39d713ad5a1adff7a01b6508 | [
"MIT"
] | null | null | null | my_web_project/authentication/forms.py | AlexYankoff/my_web_project | d7d2c26289c561bc39d713ad5a1adff7a01b6508 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from my_web_project.common.forms import BootstrapFormMixin
from my_web_project.main.models import S... | 25.132075 | 74 | 0.686186 | 143 | 1,332 | 6.286713 | 0.426573 | 0.055617 | 0.05673 | 0.070078 | 0.160178 | 0.102336 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.222222 | 1,332 | 52 | 75 | 25.615385 | 0.8639 | 0.070571 | 0 | 0.121212 | 0 | 0 | 0.06737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.151515 | 0.212121 | 0.030303 | 0.575758 | 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 |
03b7252c4a570f5045354d6d3a9bb828ebea09f4 | 3,340 | py | Python | source_code/ghc2018.py | nuno-chicoria/GHC_2018 | d3a19c4f6293dd24ca06d24fdde58da04800781b | [
"Unlicense"
] | null | null | null | source_code/ghc2018.py | nuno-chicoria/GHC_2018 | d3a19c4f6293dd24ca06d24fdde58da04800781b | [
"Unlicense"
] | null | null | null | source_code/ghc2018.py | nuno-chicoria/GHC_2018 | d3a19c4f6293dd24ca06d24fdde58da04800781b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 1 18:44:04 2018
@author: JavaWizards
"""
import numpy as np
file = "/Users/nuno_chicoria/Downloads/b_should_be_easy.in"
handle = open(file)
R, C, F, N, B, T = handle.readline().split()
rides = []
index = []
for i in range(int(N)):
index.a... | 38.390805 | 208 | 0.498204 | 483 | 3,340 | 3.3706 | 0.167702 | 0.36855 | 0.207617 | 0.120393 | 0.590295 | 0.560811 | 0.560811 | 0.493857 | 0.4914 | 0.457002 | 0 | 0.0671 | 0.308383 | 3,340 | 86 | 209 | 38.837209 | 0.637662 | 0.03024 | 0 | 0.132353 | 0 | 0 | 0.022601 | 0.01548 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014706 | 0 | 0.014706 | 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 |
03c7dfec4bf01608ff9510185092140717400a2f | 170 | py | Python | zinc/utils/validation.py | PressLabs/zinc | 9e1dc852f31f9897e7759962cf0f3e6d42fbe637 | [
"Apache-2.0"
] | 29 | 2017-06-29T15:03:49.000Z | 2018-01-30T14:07:26.000Z | zinc/utils/validation.py | presslabs/zinc | 94146e5203fc93ee0e8bb011a4db0ffcd4b0096e | [
"Apache-2.0"
] | 9 | 2019-01-11T09:07:17.000Z | 2022-02-03T12:50:21.000Z | zinc/utils/validation.py | PressLabs/zinc | 9e1dc852f31f9897e7759962cf0f3e6d42fbe637 | [
"Apache-2.0"
] | 1 | 2020-08-09T18:17:25.000Z | 2020-08-09T18:17:25.000Z | import ipaddress
def is_ipv6(ip_addr):
try:
ipaddress.IPv6Address(ip_addr)
return True
except ipaddress.AddressValueError:
return False
| 17 | 39 | 0.676471 | 19 | 170 | 5.894737 | 0.736842 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.270588 | 170 | 9 | 40 | 18.888889 | 0.887097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
03cdffc4aa94129ab097ff69eb0662a8a2afab32 | 1,026 | py | Python | 013-Flareon 6 Reloadered/resolve.py | schommi/low-tech | 8dc1c823204da9088ff696c5d23d5471eef317e1 | [
"MIT"
] | null | null | null | 013-Flareon 6 Reloadered/resolve.py | schommi/low-tech | 8dc1c823204da9088ff696c5d23d5471eef317e1 | [
"MIT"
] | null | null | null | 013-Flareon 6 Reloadered/resolve.py | schommi/low-tech | 8dc1c823204da9088ff696c5d23d5471eef317e1 | [
"MIT"
] | null | null | null | import itertools
secret = [
0x7A, 0x17, 0x08, 0x34, 0x17, 0x31, 0x3B, 0x25, 0x5B, 0x18, 0x2E, 0x3A, 0x15, 0x56, 0x0E, 0x11,
0x3E, 0x0D, 0x11, 0x3B, 0x24, 0x21, 0x31, 0x06, 0x3C, 0x26, 0x7C, 0x3C, 0x0D, 0x24, 0x16, 0x3A,
0x14, 0x79, 0x01, 0x3A, 0x18, 0x5A, 0x58, 0x73, 0x2E, 0x09, 0x00, 0x16, 0x00, 0x49, 0x22, 0x0... | 27.72973 | 97 | 0.567251 | 169 | 1,026 | 3.420118 | 0.455621 | 0.055363 | 0.044983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214634 | 0.20078 | 1,026 | 36 | 98 | 28.5 | 0.490244 | 0 | 0 | 0 | 0 | 0 | 0.012683 | 0 | 0 | 0 | 0.202927 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.103448 | 0.034483 | 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 |
03d0163037b3ffb3243f9f7b36c80a6e4a2647ef | 1,098 | py | Python | py/cidoc_crm_types/entities/e66_formation.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/entities/e66_formation.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/entities/e66_formation.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | from .e63_beginning_of_existence import E63BeginningofExistence
from .e7_activity import E7Activity
from dataclasses import dataclass
@dataclass
class E66Formation(E63BeginningofExistence, E7Activity):
"""
Scope note:
This class comprises events that result in the formation of a formal or informal E74 Group of p... | 40.666667 | 393 | 0.784153 | 168 | 1,098 | 5.089286 | 0.547619 | 0.05614 | 0.065497 | 0.037427 | 0.063158 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0.050054 | 0.163024 | 1,098 | 26 | 394 | 42.230769 | 0.880305 | 0.740437 | 0 | 0 | 0 | 0 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
03d052fd2d3ee2a1a9e3667dd101b990d188cf77 | 7,269 | py | Python | platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4440_modem_calc/pro2plusapilist.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 82 | 2016-06-29T17:24:43.000Z | 2021-04-16T06:49:17.000Z | platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4440_modem_calc/pro2plusapilist.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 6 | 2022-01-12T18:22:08.000Z | 2022-03-25T10:19:27.000Z | platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4440_modem_calc/pro2plusapilist.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 56 | 2016-08-02T10:50:50.000Z | 2021-07-19T08:57:34.000Z | '''
Created on Apr 4, 2013
@author: sesuskic
'''
from .pro2apilist import Pro2ApiList
from .trueround import trueround
__all__ = ["Pro2PlusApiList"]
class Pro2PlusApiList(Pro2ApiList):
def _add_seq_cfg(self, modem_calc, api_list):
# api_list['SEQ_CFG0'] = (modem_calc.modulator.fields.close_hw_dly_comp) ... | 57.23622 | 138 | 0.618104 | 932 | 7,269 | 4.412017 | 0.2103 | 0.15321 | 0.257782 | 0.335117 | 0.454523 | 0.191391 | 0.116488 | 0.041342 | 0.011187 | 0.011187 | 0 | 0.030757 | 0.2933 | 7,269 | 126 | 139 | 57.690476 | 0.76971 | 0.086945 | 0 | 0.076923 | 0 | 0 | 0.061687 | 0.009828 | 0 | 0 | 0.006048 | 0 | 0 | 1 | 0.098901 | false | 0.010989 | 0.021978 | 0 | 0.131868 | 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 |
03e1aa08a772e435ec4bfa6b688a45a8f113fb37 | 25,849 | py | Python | lookerapi/models/query.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | lookerapi/models/query.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | lookerapi/models/query.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Looker API 3.1 Reference
### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token.... | 32.392231 | 4,190 | 0.607954 | 3,253 | 25,849 | 4.694436 | 0.134952 | 0.042433 | 0.077795 | 0.028289 | 0.491651 | 0.415493 | 0.340777 | 0.263506 | 0.202213 | 0.180866 | 0 | 0.00286 | 0.310147 | 25,849 | 797 | 4,191 | 32.432873 | 0.853522 | 0.505668 | 0 | 0.29021 | 0 | 0 | 0.101532 | 0.006609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20979 | false | 0 | 0.01049 | 0 | 0.339161 | 0.003497 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ff0002f28ad3a199bd96b680511c5012fe2c72ff | 107 | py | Python | src/filtermaker/__init__.py | yukihira1992/filtermaker | 0fdd76771ea551ecdfe3328eadec32f59d0f5f8c | [
"MIT"
] | null | null | null | src/filtermaker/__init__.py | yukihira1992/filtermaker | 0fdd76771ea551ecdfe3328eadec32f59d0f5f8c | [
"MIT"
] | null | null | null | src/filtermaker/__init__.py | yukihira1992/filtermaker | 0fdd76771ea551ecdfe3328eadec32f59d0f5f8c | [
"MIT"
] | null | null | null | from .filters import TextFilter
__version__ = '0.0.1'
__all__ = (
'__version__',
'TextFilter',
)
| 11.888889 | 31 | 0.64486 | 11 | 107 | 5.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.214953 | 107 | 8 | 32 | 13.375 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0.242991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
ff06a4859edba98a7a88d5622aad9b23c4419609 | 12,017 | py | Python | kafka_proto_api/protos/etf_http_ref_pb2.py | Ycallaer/kafka_proto_py | 478f0ac7a95e4c14f4bb2f1deeef60df0c8aa133 | [
"MIT"
] | 1 | 2021-03-24T12:43:24.000Z | 2021-03-24T12:43:24.000Z | kafka_proto_api/protos/etf_http_ref_pb2.py | Ycallaer/kafka_proto_py | 478f0ac7a95e4c14f4bb2f1deeef60df0c8aa133 | [
"MIT"
] | null | null | null | kafka_proto_api/protos/etf_http_ref_pb2.py | Ycallaer/kafka_proto_py | 478f0ac7a95e4c14f4bb2f1deeef60df0c8aa133 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: etf_http_ref.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.p... | 48.651822 | 1,362 | 0.785471 | 1,693 | 12,017 | 5.204962 | 0.125222 | 0.046301 | 0.077621 | 0.073536 | 0.610872 | 0.551294 | 0.514412 | 0.493305 | 0.462892 | 0.441557 | 0 | 0.046971 | 0.101772 | 12,017 | 246 | 1,363 | 48.849594 | 0.769409 | 0.021802 | 0 | 0.48 | 1 | 0.008889 | 0.182732 | 0.075272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026667 | 0 | 0.026667 | 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 |
ff1d37048cb854203f9a4fa6e024de7bc7ef651a | 356 | py | Python | exercicios-Python/desaf109/pythonteste.py | marcelo-py/Exercicios-Python | d654d54821983897dbc377a2d3db97671dd75b5b | [
"MIT"
] | null | null | null | exercicios-Python/desaf109/pythonteste.py | marcelo-py/Exercicios-Python | d654d54821983897dbc377a2d3db97671dd75b5b | [
"MIT"
] | null | null | null | exercicios-Python/desaf109/pythonteste.py | marcelo-py/Exercicios-Python | d654d54821983897dbc377a2d3db97671dd75b5b | [
"MIT"
] | null | null | null | from desaf109 import moeda
p = float(input('Digite um preço: R$'))
print('A metade de {} é {}'.format(moeda.moeda(p), moeda.metade(p, True)))
print('O dobro de {} é {}'.format(moeda.moeda(p), moeda.dobro(p, True)))
print('Se adcionarmos 10% fica {}'.format(moeda.aumentar(p, 10, True)))
print('Se tirarmos 13% fica {}'.... | 59.333333 | 74 | 0.671348 | 59 | 356 | 4.050847 | 0.474576 | 0.1841 | 0.075314 | 0.117155 | 0.209205 | 0.209205 | 0.209205 | 0 | 0 | 0 | 0 | 0.03481 | 0.11236 | 356 | 6 | 75 | 59.333333 | 0.721519 | 0 | 0 | 0 | 0 | 0 | 0.296919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 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 |
206c60f444384827b5b58347d59f704ffc3951d0 | 964 | py | Python | src/malign/alignment.py | tresoldi/malign | dad7f2585db3b12f2edbf587f591463aed7c98f5 | [
"MIT"
] | null | null | null | src/malign/alignment.py | tresoldi/malign | dad7f2585db3b12f2edbf587f591463aed7c98f5 | [
"MIT"
] | 1 | 2020-08-07T13:01:29.000Z | 2020-08-07T13:01:29.000Z | src/malign/alignment.py | tresoldi/malign | dad7f2585db3b12f2edbf587f591463aed7c98f5 | [
"MIT"
] | null | null | null | """
Module for the Alignment class.
The `Alignment` class is a simple data class that holds aligned sequences and
their score. It was originally a dictionary passed back and forth among
functions, for which a data class is a good replacement.
"""
from dataclasses import dataclass
from typing import Sequence, Hashable... | 25.368421 | 77 | 0.678423 | 128 | 964 | 5.046875 | 0.5 | 0.092879 | 0.065015 | 0.092879 | 0.168731 | 0.133127 | 0.133127 | 0.133127 | 0.133127 | 0 | 0 | 0 | 0.253112 | 964 | 37 | 78 | 26.054054 | 0.897222 | 0.593361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
209687c99cd37798d8ff94e233db49d920a9fa57 | 14,653 | py | Python | tests/test_record_parsing.py | jodal/python-netsgiro | b180ad3e6c8e4788c2dc539bdcd35b64b2bf6247 | [
"Apache-2.0"
] | null | null | null | tests/test_record_parsing.py | jodal/python-netsgiro | b180ad3e6c8e4788c2dc539bdcd35b64b2bf6247 | [
"Apache-2.0"
] | null | null | null | tests/test_record_parsing.py | jodal/python-netsgiro | b180ad3e6c8e4788c2dc539bdcd35b64b2bf6247 | [
"Apache-2.0"
] | null | null | null | from datetime import date
import pytest
import netsgiro
import netsgiro.records
def test_transmission_start():
record = netsgiro.records.TransmissionStart.from_string(
'NY00001055555555100008100008080000000000'
'0000000000000000000000000000000000000000'
)
assert record.service_code == n... | 34.076744 | 80 | 0.743943 | 1,479 | 14,653 | 7.102772 | 0.140636 | 0.165635 | 0.037982 | 0.059971 | 0.752118 | 0.720609 | 0.640076 | 0.564588 | 0.548406 | 0.49643 | 0 | 0.151303 | 0.182693 | 14,653 | 429 | 81 | 34.156177 | 0.725868 | 0 | 0 | 0.460317 | 0 | 0 | 0.140449 | 0.083055 | 0 | 0 | 0 | 0 | 0.469841 | 1 | 0.07619 | false | 0 | 0.012698 | 0.003175 | 0.092063 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
209da4aca789fa213327efbbc4af529de39c5ec3 | 507 | py | Python | pyexlatex/presentation/beamer/templates/control/tocsection.py | whoopnip/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 4 | 2020-06-08T07:17:12.000Z | 2021-11-04T21:39:52.000Z | pyexlatex/presentation/beamer/templates/control/tocsection.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 24 | 2020-02-17T17:20:44.000Z | 2021-12-20T00:10:19.000Z | pyexlatex/presentation/beamer/templates/control/tocsection.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | null | null | null | from pyexlatex.models.template import Template
from pyexlatex.presentation import Frame
from pyexlatex.presentation.beamer.control.atbeginsection import AtBeginSection
from pyexlatex.models.toc import TableOfContents
class TableOfContentsAtBeginSection(Template):
def __init__(self):
toc = TableOfContents... | 33.8 | 79 | 0.751479 | 52 | 507 | 7.134615 | 0.5 | 0.140162 | 0.102426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163708 | 507 | 14 | 80 | 36.214286 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.061144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
20a7c1efa318407820ebb42f64ba8d670b3812f6 | 1,800 | py | Python | order/models.py | akashbindal91/django_ecommerce_practice | 28b882efe384f8f5312e98cd06263f095756b3a9 | [
"MIT"
] | null | null | null | order/models.py | akashbindal91/django_ecommerce_practice | 28b882efe384f8f5312e98cd06263f095756b3a9 | [
"MIT"
] | null | null | null | order/models.py | akashbindal91/django_ecommerce_practice | 28b882efe384f8f5312e98cd06263f095756b3a9 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Order(models.Model):
"""
docstring
"""
token = models.CharField(max_length=250, blank=True)
total = models.DecimalField(
verbose_name="GBP Order Total", max_digits=10, decimal_places=2)
emailAddress = models.EmailField(
... | 30 | 73 | 0.675556 | 207 | 1,800 | 5.710145 | 0.323672 | 0.098985 | 0.182741 | 0.243655 | 0.460237 | 0.377327 | 0.335025 | 0 | 0 | 0 | 0 | 0.033263 | 0.215 | 1,800 | 59 | 74 | 30.508475 | 0.803255 | 0.036111 | 0 | 0.111111 | 0 | 0 | 0.039204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.027778 | 0.083333 | 0.805556 | 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 |
20aa667a3ce1f1ef065e0ad54f6366095acc219b | 149 | py | Python | program-4/4a)Extracting substring.py | sumukhmg/PYTHON-LAB-SET-PROGRAMS | 685d11ae8dd6e4352f83288fff1e3922e84bf022 | [
"MIT"
] | 12 | 2022-02-19T14:03:41.000Z | 2022-03-16T12:52:47.000Z | program-4/4a)Extracting substring.py | sumukhmg/PYTHON-LAB-SET-PROGRAMS | 685d11ae8dd6e4352f83288fff1e3922e84bf022 | [
"MIT"
] | 1 | 2022-03-02T14:55:37.000Z | 2022-03-02T14:55:37.000Z | program-4/4a)Extracting substring.py | sumukhmg/PYTHON-LAB-SET-PROGRAMS | 685d11ae8dd6e4352f83288fff1e3922e84bf022 | [
"MIT"
] | 2 | 2022-03-02T14:36:14.000Z | 2022-03-12T08:37:25.000Z | a = input("Enter the string:")
b = a.find("@")
c = a.find("#")
print("The original string is:",a)
print("The substring between @ and # is:",a[b+1:c]) | 29.8 | 51 | 0.604027 | 27 | 149 | 3.333333 | 0.555556 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.14094 | 149 | 5 | 51 | 29.8 | 0.695313 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
20bc2480212b49d6e810222a91c0c84532ff3e85 | 230 | py | Python | scripts/read_value.py | jayantpatil/brownie-simple-storage | f501e94e88576a9a267ea451c046cedcb7100871 | [
"MIT"
] | null | null | null | scripts/read_value.py | jayantpatil/brownie-simple-storage | f501e94e88576a9a267ea451c046cedcb7100871 | [
"MIT"
] | null | null | null | scripts/read_value.py | jayantpatil/brownie-simple-storage | f501e94e88576a9a267ea451c046cedcb7100871 | [
"MIT"
] | null | null | null | from brownie import accounts, config, SimpleStorage
def read_contract():
# -1 index gets most recent transaction
simple_storage = SimpleStorage[-1]
print(simple_storage.retrieve())
def main():
read_contract()
| 19.166667 | 51 | 0.721739 | 27 | 230 | 6 | 0.740741 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.186957 | 230 | 11 | 52 | 20.909091 | 0.855615 | 0.16087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
20ca2e167b593c60175aa9358fd246b00b8a7d20 | 382 | py | Python | ebrains_drive/__init__.py | apdavison/ebrains-drive | 8ff11fc60e77c1b605485f550efc350c1a5f443a | [
"Apache-2.0"
] | 5 | 2020-12-20T16:12:18.000Z | 2022-03-29T09:56:34.000Z | ebrains_drive/__init__.py | apdavison/ebrains-drive | 8ff11fc60e77c1b605485f550efc350c1a5f443a | [
"Apache-2.0"
] | 9 | 2020-09-25T08:27:41.000Z | 2022-01-03T08:41:48.000Z | ebrains_drive/__init__.py | apdavison/ebrains-drive | 8ff11fc60e77c1b605485f550efc350c1a5f443a | [
"Apache-2.0"
] | 2 | 2020-09-18T17:32:38.000Z | 2020-10-13T13:34:38.000Z | """
A Python package for working with the Human Brain Project Model Validation Framework.
Andrew Davison and Shailesh Appukuttan, CNRS, 2017-2020
License: BSD 3-clause, see LICENSE.txt
"""
from ebrains_drive.client import DriveApiClient
def connect(username=None, password=None, token=None, env=""):
client = Dr... | 27.285714 | 85 | 0.767016 | 51 | 382 | 5.72549 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027607 | 0.146597 | 382 | 14 | 86 | 27.285714 | 0.868098 | 0.47644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.5 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
20cc6c6f266cf22a4841a420e28fb03f3c12ecb1 | 1,290 | py | Python | test/mock/mock_lens.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | test/mock/mock_lens.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | test/mock/mock_lens.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | from test.mock.mock_inversion import MockMapper
from test.mock.mock_galaxy import MockHyperGalaxy
class MockTracer(object):
def __init__(self, unblurred_image_1d, blurring_image_1d, has_light_profile, has_pixelization, has_hyper_galaxy,
has_grid_mappers=False):
self.unblurred_image_1d = ... | 28.043478 | 116 | 0.713178 | 158 | 1,290 | 5.398734 | 0.221519 | 0.098476 | 0.10551 | 0.093787 | 0.42204 | 0.344666 | 0.332943 | 0.241501 | 0.241501 | 0.143025 | 0 | 0.013917 | 0.220155 | 1,290 | 46 | 117 | 28.043478 | 0.833996 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.057143 | 0.228571 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
20d0d67fe1712516c0256a25ca26beffb42631c7 | 187 | py | Python | 2-6 motto2.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | 1 | 2019-02-06T01:49:18.000Z | 2019-02-06T01:49:18.000Z | 2-6 motto2.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | null | null | null | 2-6 motto2.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | null | null | null | famous_name = "albert einstein"
motto = "A person who never made a mistake never tried anything new."
message = famous_name.title() + "once said, " + '"' + motto + '"'
print(message) | 37.4 | 70 | 0.673797 | 25 | 187 | 4.96 | 0.76 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187166 | 187 | 5 | 71 | 37.4 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0.472826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
20df17921cd623c6203bd44e441ee7f224b6468c | 2,273 | py | Python | 04_Data Manipulation with pandas/02_Aggregating Data/09_Multiple grouped summaries.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 5 | 2021-02-03T14:36:58.000Z | 2022-01-01T10:29:26.000Z | 04_Data Manipulation with pandas/02_Aggregating Data/09_Multiple grouped summaries.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | null | null | null | 04_Data Manipulation with pandas/02_Aggregating Data/09_Multiple grouped summaries.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 3 | 2021-02-08T00:31:16.000Z | 2022-03-17T13:52:32.000Z | '''
09 - Multiple grouped summaries
Earlier in this chapter, you saw that the .agg() method is useful to
compute multiple statistics on multiple variables. It also works with
grouped data. NumPy, which is imported as np, has many different summary
statistics functions, including: np.min, np.max, np.mean, and np.median... | 45.46 | 124 | 0.571051 | 322 | 2,273 | 3.919255 | 0.375776 | 0.027734 | 0.011886 | 0.027734 | 0.313788 | 0.274168 | 0.142631 | 0.093502 | 0.050713 | 0.050713 | 0 | 0.092207 | 0.260449 | 2,273 | 49 | 125 | 46.387755 | 0.658537 | 0.826221 | 0 | 0.25 | 0 | 0 | 0.204188 | 0.068063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
20e33764352d730024b8287c9a46b924f5639e3d | 342 | py | Python | MatrixSqrt.py | aminya/smop | d1ef857dbae08ed071b54685c106d4b5b40747c3 | [
"MIT"
] | null | null | null | MatrixSqrt.py | aminya/smop | d1ef857dbae08ed071b54685c106d4b5b40747c3 | [
"MIT"
] | 1 | 2019-10-16T03:45:08.000Z | 2019-10-16T03:45:08.000Z | MatrixSqrt.py | aminya/smop-for-Julia-Matlab-Python-Benchmark | d1ef857dbae08ed071b54685c106d4b5b40747c3 | [
"MIT"
] | null | null | null | # Generated with SMOP 0.41
from libsmop import *
# MatrixSqrt.m
@function
def MatrixSqrt(matrixSize=None,mX=None,mY=None,*args,**kwargs):
varargin = MatrixSqrt.varargin
nargin = MatrixSqrt.nargin
mY=dot(mX.T,mX)
# MatrixSqrt.m:3
mA=sqrtm(mY)
# MatrixSqrt.m:5
return mA
if __name__ == '__... | 18 | 63 | 0.660819 | 47 | 342 | 4.638298 | 0.659574 | 0.151376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018657 | 0.216374 | 342 | 19 | 64 | 18 | 0.794776 | 0.19883 | 0 | 0 | 1 | 0 | 0.02963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
456204f6871f6eb8dedf973fadca394db0e5504c | 87 | py | Python | scripts/exercicios/ex025.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | scripts/exercicios/ex025.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | scripts/exercicios/ex025.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | nome = str(input('Digite seu nome: ')).strip()
cap = nome.title()
print('Silva' in cap) | 29 | 46 | 0.655172 | 14 | 87 | 4.071429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 87 | 3 | 47 | 29 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.25 | 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 |
457331800134bf6e126c42a54f07847df0aef032 | 179 | py | Python | where my anagrams at.py | faaiqbilal/codewars-code | decc7001134234f7ec9ffa74653e2dca5fa40ef6 | [
"MIT"
] | null | null | null | where my anagrams at.py | faaiqbilal/codewars-code | decc7001134234f7ec9ffa74653e2dca5fa40ef6 | [
"MIT"
] | null | null | null | where my anagrams at.py | faaiqbilal/codewars-code | decc7001134234f7ec9ffa74653e2dca5fa40ef6 | [
"MIT"
] | null | null | null | def anagrams(word, words):
agrams = []
s1 = sorted(word)
for i in range (0, len(words)):
s2 = sorted(words[i])
if s1 == s2:
agrams.append(words[i])
return agrams | 22.375 | 33 | 0.603352 | 28 | 179 | 3.857143 | 0.607143 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036496 | 0.234637 | 179 | 8 | 34 | 22.375 | 0.751825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 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 |
45770058508f21a3a4be648d911aa80a191fe520 | 5,858 | py | Python | utils/ErrorMetrics.py | caozidong/Depth-Completion | a4d95cd33f29c5c8610fc8f40dd3b1fc81186143 | [
"Apache-2.0"
] | 5 | 2021-01-19T13:59:14.000Z | 2021-12-01T12:09:01.000Z | utils/ErrorMetrics.py | caozidong/Depth-Completion | a4d95cd33f29c5c8610fc8f40dd3b1fc81186143 | [
"Apache-2.0"
] | null | null | null | utils/ErrorMetrics.py | caozidong/Depth-Completion | a4d95cd33f29c5c8610fc8f40dd3b1fc81186143 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class MAE(nn.Module):
def __init__(self):
super(MAE, self).__init__()
def forward(self, outputs, target, *args):
val_pixels = (target > 0).float().cuda()
err = torch.abs(target * val_pixels - outputs ... | 35.50303 | 92 | 0.575111 | 857 | 5,858 | 3.711785 | 0.101517 | 0.096196 | 0.024521 | 0.028607 | 0.773342 | 0.732788 | 0.716441 | 0.589437 | 0.589437 | 0.520905 | 0 | 0.0351 | 0.26562 | 5,858 | 165 | 93 | 35.50303 | 0.704324 | 0.018266 | 0 | 0.472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 1 | 0.2 | false | 0 | 0.032 | 0 | 0.432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
457a13fcc5619e763cff2978c285e3ac7191dd4c | 349 | py | Python | easy/count-as-i-count/main.py | khanh-alice/codingame-python | 3d84361db2e3371104db8d9befcf4dbb47f6ac6e | [
"Apache-2.0"
] | null | null | null | easy/count-as-i-count/main.py | khanh-alice/codingame-python | 3d84361db2e3371104db8d9befcf4dbb47f6ac6e | [
"Apache-2.0"
] | null | null | null | easy/count-as-i-count/main.py | khanh-alice/codingame-python | 3d84361db2e3371104db8d9befcf4dbb47f6ac6e | [
"Apache-2.0"
] | null | null | null | initialScore = int(input())
def count_solutions(score, turn):
if score > 50 or turn > 4:
return 0
if score == 50:
return 1
result = count_solutions(score + 1, turn + 1)
for i in range(2, 13):
result += 2 * count_solutions(score + i, turn + 1)
return result
print(count... | 17.45 | 58 | 0.601719 | 49 | 349 | 4.204082 | 0.469388 | 0.271845 | 0.276699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060484 | 0.289398 | 349 | 19 | 59 | 18.368421 | 0.770161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0.090909 | 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 |
457d8ed76184da607ae120220f6d3c830a2b03ff | 399 | py | Python | kafka_streamer/topic/datatype/base.py | sam-mosleh/kafka-streamer | be977af192b33a335b42af0a42ad05d9f3f9fef4 | [
"BSD-3-Clause"
] | 1 | 2020-06-26T00:10:05.000Z | 2020-06-26T00:10:05.000Z | kafka_streamer/topic/datatype/base.py | sam-mosleh/kafka-streamer | be977af192b33a335b42af0a42ad05d9f3f9fef4 | [
"BSD-3-Clause"
] | null | null | null | kafka_streamer/topic/datatype/base.py | sam-mosleh/kafka-streamer | be977af192b33a335b42af0a42ad05d9f3f9fef4 | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Type, Union
from kafka_streamer.models import SchematicRecord, Serializable
class KafkaDataType(ABC):
_MAGIC_BYTE = 0
@abstractmethod
def deserialize(self, data: bytes):
pass
@abstractmethod
def serialize(
self, data: Union[... | 21 | 75 | 0.696742 | 43 | 399 | 6.395349 | 0.581395 | 0.123636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003257 | 0.230576 | 399 | 18 | 76 | 22.166667 | 0.892508 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
459f5157ab1931fdcbdbea8249e936a2e4eee079 | 332 | py | Python | _fred-v1/fred/endpoints/shutdown.py | elviva404/frontend-regression-validator | 21df2a127712bdf0688dc9aedf478c6a2a90a3c3 | [
"ECL-2.0",
"Apache-2.0"
] | 70 | 2019-09-16T13:30:49.000Z | 2022-02-25T17:46:23.000Z | _fred-v1/fred/endpoints/shutdown.py | elviva404/frontend-regression-validator | 21df2a127712bdf0688dc9aedf478c6a2a90a3c3 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-01-13T09:15:47.000Z | 2020-07-29T11:49:25.000Z | _fred-v1/fred/endpoints/shutdown.py | elviva404/frontend-regression-validator | 21df2a127712bdf0688dc9aedf478c6a2a90a3c3 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2019-10-06T08:22:05.000Z | 2022-02-03T18:45:08.000Z | from flask_restful import Resource
from flask import request
class Shutdown(Resource):
def get(self):
shutdown = request.environ.get('werkzeug.server.shutdown')
if shutdown is None:
raise RuntimeError('Not running with the Werkzeug Server')
shutdown()
return 'Server shu... | 27.666667 | 70 | 0.683735 | 39 | 332 | 5.794872 | 0.666667 | 0.079646 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243976 | 332 | 11 | 71 | 30.181818 | 0.900398 | 0 | 0 | 0 | 0 | 0 | 0.240964 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
45cd6b7941697c04db1bb1d94a1276f8ec7934e6 | 177 | py | Python | tests/__init__.py | obytes/tap-python | bc119cb785dc353f0c67241a64d9fcb30f21fbf7 | [
"MIT"
] | 3 | 2019-05-28T16:19:57.000Z | 2022-03-05T13:16:43.000Z | tests/__init__.py | obytes/tap-python | bc119cb785dc353f0c67241a64d9fcb30f21fbf7 | [
"MIT"
] | 2 | 2019-07-02T21:45:09.000Z | 2019-07-03T13:55:54.000Z | tests/__init__.py | obytes/tap-python | bc119cb785dc353f0c67241a64d9fcb30f21fbf7 | [
"MIT"
] | null | null | null | import vcr
tap_vcr = vcr.VCR(
serializer='yaml',
cassette_library_dir='tests/fixtures/vcr_cassettes',
record_mode='new_episodes',
match_on=['uri', 'method'],
)
| 19.666667 | 56 | 0.689266 | 23 | 177 | 5 | 0.826087 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158192 | 177 | 8 | 57 | 22.125 | 0.771812 | 0 | 0 | 0 | 0 | 0 | 0.299435 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
45e49b8126b2a37679ad85ae284597124464cca3 | 465 | py | Python | netmiko/ciena/ciena_saos_ssh.py | mostau1/netmiko | 5b5463fb01e39e771be553281748477a48c7391c | [
"MIT"
] | null | null | null | netmiko/ciena/ciena_saos_ssh.py | mostau1/netmiko | 5b5463fb01e39e771be553281748477a48c7391c | [
"MIT"
] | 8 | 2020-02-05T14:17:32.000Z | 2021-09-23T23:27:46.000Z | netmiko/ciena/ciena_saos_ssh.py | mostau1/netmiko | 5b5463fb01e39e771be553281748477a48c7391c | [
"MIT"
] | null | null | null | """Ciena SAOS support."""
from __future__ import print_function
from __future__ import unicode_literals
from netmiko.cisco_base_connection import CiscoSSHConnection
class CienaSaosSSH(CiscoSSHConnection):
"""Ciena SAOS support."""
def session_preparation(self):
self._test_channel_read()
self.s... | 29.0625 | 74 | 0.733333 | 55 | 465 | 5.854545 | 0.690909 | 0.055901 | 0.099379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176344 | 465 | 15 | 75 | 31 | 0.840731 | 0.083871 | 0 | 0 | 0 | 0 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.3 | 0 | 0.6 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
afe94ca2d45bfd979c9c6fa0ac9fdd90eb8ec0aa | 1,647 | py | Python | authors/apps/articles/views/article_favourite_view.py | AmosWels/ah-django | 5b8e39053d63f1dfb3c14066b163a1d37af91076 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/views/article_favourite_view.py | AmosWels/ah-django | 5b8e39053d63f1dfb3c14066b163a1d37af91076 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/views/article_favourite_view.py | AmosWels/ah-django | 5b8e39053d63f1dfb3c14066b163a1d37af91076 | [
"BSD-3-Clause"
] | null | null | null | from django.http import Http404
from django.core import exceptions
from rest_framework import status
from rest_framework.generics import RetrieveUpdateAPIView
from rest_framework.permissions import (
IsAuthenticatedOrReadOnly, IsAuthenticated
)
from rest_framework.response import Response
from rest_framework.vie... | 29.410714 | 79 | 0.743169 | 176 | 1,647 | 6.818182 | 0.346591 | 0.033333 | 0.070833 | 0.036667 | 0.356667 | 0.356667 | 0.356667 | 0.356667 | 0.356667 | 0.356667 | 0 | 0.011219 | 0.188221 | 1,647 | 55 | 80 | 29.945455 | 0.886313 | 0 | 0 | 0.2 | 0 | 0 | 0.0085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.325 | 0 | 0.575 | 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 |
b30c782f3342ff4875fb902c643ddb150ecbbb77 | 1,106 | py | Python | bot/migrators/config_migrator.py | yukie-nobuharu/TTMediaBot | 9d34aadb1cfa41fcceee212931ff12526d3d137f | [
"MIT"
] | null | null | null | bot/migrators/config_migrator.py | yukie-nobuharu/TTMediaBot | 9d34aadb1cfa41fcceee212931ff12526d3d137f | [
"MIT"
] | null | null | null | bot/migrators/config_migrator.py | yukie-nobuharu/TTMediaBot | 9d34aadb1cfa41fcceee212931ff12526d3d137f | [
"MIT"
] | null | null | null | import sys
from bot.config import ConfigManager, config_data_type
def to_v1(config_data: config_data_type) -> config_data_type:
return update_version(config_data, 1)
migrate_functs = {1: to_v1}
def migrate(
config_manager: ConfigManager,
config_data: config_data_type,
) -> config_data_type:
if "c... | 29.105263 | 84 | 0.712477 | 144 | 1,106 | 5.083333 | 0.236111 | 0.355191 | 0.196721 | 0.157104 | 0.397541 | 0.221311 | 0.221311 | 0.103825 | 0 | 0 | 0 | 0.005675 | 0.203436 | 1,106 | 37 | 85 | 29.891892 | 0.825199 | 0 | 0 | 0.071429 | 0 | 0 | 0.107595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0.035714 | 0.321429 | 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 |
b312fd40137f1f88994faa7dd28816b492eac96b | 18,544 | py | Python | ocrj/misc/nihongo.py | eggplants/OCR_Japanease | 15ed5df66a66047fa877ded2e935f7b2fb006c2b | [
"MIT"
] | 2 | 2021-08-08T07:14:36.000Z | 2021-08-08T07:25:43.000Z | ocrj/misc/nihongo.py | eggplants/ocrj | 15ed5df66a66047fa877ded2e935f7b2fb006c2b | [
"MIT"
] | null | null | null | ocrj/misc/nihongo.py | eggplants/ocrj | 15ed5df66a66047fa877ded2e935f7b2fb006c2b | [
"MIT"
] | null | null | null | import string
hiragana = \
['あ', 'い', 'う', 'え', 'お', 'か', 'き', 'く', 'け', 'こ', 'さ', 'し', 'す', 'せ', 'そ',
'た', 'ち', 'つ', 'て', 'と', 'な', 'に', 'ぬ', 'ね', 'の', 'は', 'ひ', 'ふ', 'へ', 'ほ',
'ま', 'み', 'む', 'め', 'も', 'ら', 'り', 'る', 'れ', 'ろ', 'が', 'ぎ', 'ぐ', 'げ', 'ご',
'ざ', 'じ', 'ず', 'ぜ', 'ぞ', 'だ', 'ぢ', 'づ', 'で', 'ど... | 61 | 79 | 0.303117 | 3,043 | 18,544 | 1.800854 | 0.770292 | 0.111496 | 0.103467 | 0.083212 | 0.240876 | 0.165876 | 0.120803 | 0.066788 | 0.05365 | 0.039416 | 0 | 0.00134 | 0.235224 | 18,544 | 303 | 80 | 61.20132 | 0.384643 | 0 | 0 | 0.027304 | 0 | 0 | 0.142742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003413 | 0 | 0.003413 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b34fbde2e6b2d38c2db36ca1c3b839a7216bdccf | 1,788 | py | Python | tablas.py | yakairi/Tienda.py | afc7c5734833e2974c0a6b9aceab1b7097db9add | [
"MIT"
] | null | null | null | tablas.py | yakairi/Tienda.py | afc7c5734833e2974c0a6b9aceab1b7097db9add | [
"MIT"
] | null | null | null | tablas.py | yakairi/Tienda.py | afc7c5734833e2974c0a6b9aceab1b7097db9add | [
"MIT"
] | null | null | null | # Tienda
CREATE TABLE `cliente` (
`idCliente` int NOT NULL AUTO_INCREMENT,
`nombre` varchar(45) DEFAULT NULL,
`apellido` varchar(45) DEFAULT NULL,
`telefono` varchar(45) DEFAULT NULL,
`email` varchar(45) DEFAULT NULL,
`ciudad` varchar(45) DEFAULT NULL,
`pais` varchar(45) DEFAULT NULL,
PRIMARY KEY (`idCl... | 29.311475 | 47 | 0.730984 | 221 | 1,788 | 5.882353 | 0.235294 | 0.194615 | 0.147692 | 0.184615 | 0.620769 | 0.490769 | 0.444615 | 0.243846 | 0.214615 | 0.156154 | 0 | 0.029216 | 0.157718 | 1,788 | 60 | 48 | 29.8 | 0.833997 | 0.003356 | 0 | 0.306122 | 0 | 0 | 0.006194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b350585827e6f65d1b53d617dcc78e85b78cd6c3 | 398 | py | Python | Python POO/Getters e Setters/exemplo02/pessoa.py | luccasocastro/Curso-Python | 7ad2b980bb2f95f833811291273d6ca1beb0fe77 | [
"MIT"
] | null | null | null | Python POO/Getters e Setters/exemplo02/pessoa.py | luccasocastro/Curso-Python | 7ad2b980bb2f95f833811291273d6ca1beb0fe77 | [
"MIT"
] | null | null | null | Python POO/Getters e Setters/exemplo02/pessoa.py | luccasocastro/Curso-Python | 7ad2b980bb2f95f833811291273d6ca1beb0fe77 | [
"MIT"
] | null | null | null | class Pessoa: #substantivo
def __init__(self, nome: str, idade: int) -> None:
self.nome = nome #substantivo
self.idade = idade #substantivo
def dirigir(self, veiculo: str) -> None: #verbos
print(f'Dirigindo um(a) {veiculo}')
def cantar(self) -> None: #verbos
print('lalalala... | 26.533333 | 54 | 0.61809 | 48 | 398 | 5.020833 | 0.479167 | 0.116183 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256281 | 398 | 14 | 55 | 28.428571 | 0.814189 | 0.128141 | 0 | 0 | 0 | 0 | 0.097059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.1 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b367137798db5a8033c70626264857c8575384f8 | 851 | py | Python | account/urls.py | bopopescu/storyboard | 0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2 | [
"MIT"
] | null | null | null | account/urls.py | bopopescu/storyboard | 0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2 | [
"MIT"
] | null | null | null | account/urls.py | bopopescu/storyboard | 0258fd6f80b6bbd9d0ca493cbaaae87c3a6d16e2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
urls.py
Created by Darcy Liu on 2012-03-03.
Copyright (c) 2012 Close To U. All rights reserved.
"""
from django.conf.urls import *
from django.contrib.auth import views as auth_views
urlpatterns = patterns('account.views',
(r'^$','index'),
(r'^signup... | 34.04 | 73 | 0.564042 | 101 | 851 | 4.613861 | 0.504951 | 0.240343 | 0.128755 | 0.098712 | 0.257511 | 0.141631 | 0 | 0 | 0 | 0 | 0 | 0.020093 | 0.239718 | 851 | 25 | 74 | 34.04 | 0.700155 | 0.156287 | 0 | 0 | 0 | 0 | 0.376056 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.3125 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2fa1d4df373d09a209451df383587b67198a18fa | 438 | py | Python | Study/src/com/company/test/favorite_languages.py | guptasuresh2004/python_handson | 8f47784b09bddabd5ab28d38641cfca671869623 | [
"MIT"
] | null | null | null | Study/src/com/company/test/favorite_languages.py | guptasuresh2004/python_handson | 8f47784b09bddabd5ab28d38641cfca671869623 | [
"MIT"
] | null | null | null | Study/src/com/company/test/favorite_languages.py | guptasuresh2004/python_handson | 8f47784b09bddabd5ab28d38641cfca671869623 | [
"MIT"
] | null | null | null | from collections import OrderedDict
favorite_languages = OrderedDict()
favorite_languages["Suresh"]="python"
favorite_languages["Kumar"]="Java"
favorite_languages["Gupta"]="c"
for key in favorite_languages.keys():
print(key+" like to use :"+favorite_languages[key].title())
lang = {}
lang["Suresh"]="python"
la... | 24.333333 | 63 | 0.694064 | 59 | 438 | 5.050847 | 0.40678 | 0.342282 | 0.187919 | 0.107383 | 0.14094 | 0.14094 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.114155 | 438 | 17 | 64 | 25.764706 | 0.762887 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 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 |
2fc259b569e3c130b039ed738e6f79be4ca77223 | 6,768 | py | Python | pymap/bytes/__init__.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | null | null | null | pymap/bytes/__init__.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | null | null | null | pymap/bytes/__init__.py | BoniLindsley/pymap | b3190d20799a6d342888e51bfc55cdfcbfe3ed26 | [
"MIT"
] | null | null | null | """Defines useful types and utilities for working with bytestrings."""
from __future__ import annotations
import zlib
from abc import abstractmethod, ABCMeta
from collections.abc import Iterable, Sequence
from io import BytesIO
from itertools import chain
from typing import cast, final, Any, Final, TypeVar, SupportsB... | 25.73384 | 79 | 0.599143 | 760 | 6,768 | 5.143421 | 0.227632 | 0.030698 | 0.015349 | 0.017396 | 0.214377 | 0.150166 | 0.107444 | 0.052187 | 0.052187 | 0.052187 | 0 | 0.001453 | 0.288121 | 6,768 | 262 | 80 | 25.832061 | 0.80988 | 0.283245 | 0 | 0.294118 | 0 | 0 | 0.040217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.008403 | 0.058824 | 0.067227 | 0.596639 | 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 |
2fc47242aa3943850747abcba7e7e472c1fce0f5 | 113 | py | Python | _solutions/pandas/dataframe/pandas_df_sample_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/pandas/dataframe/pandas_df_sample_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/pandas/dataframe/pandas_df_sample_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null |
df = pd.read_csv(DATA)
df = df.sample(frac=1.0)
df.reset_index(drop=True, inplace=True)
result = df.tail(n=10)
| 16.142857 | 39 | 0.699115 | 23 | 113 | 3.347826 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.115044 | 113 | 6 | 40 | 18.833333 | 0.73 | 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 |
2fc5eb9ac5bb61a25a0a92e01993111c6aae7c68 | 967 | py | Python | coursework1/task6/reducer.py | foundnet/UOE_EP_coursework1 | 25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8 | [
"Apache-2.0"
] | null | null | null | coursework1/task6/reducer.py | foundnet/UOE_EP_coursework1 | 25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8 | [
"Apache-2.0"
] | null | null | null | coursework1/task6/reducer.py | foundnet/UOE_EP_coursework1 | 25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys
import math
prev_key = ""
hresult = 0.0
totalcnt = 0
cntlist = []
for line in sys.stdin:
key,info = line.strip().split("\t",1)
if key != prev_key:
if prev_key != "":
hresult = 0.0
cntlist = strinfo.split(",")
cntlist = map(int,cntlist)
... | 25.447368 | 64 | 0.511892 | 118 | 967 | 4.135593 | 0.288136 | 0.10041 | 0.143443 | 0.092213 | 0.688525 | 0.655738 | 0.655738 | 0.655738 | 0.655738 | 0.655738 | 0 | 0.015848 | 0.347466 | 967 | 37 | 65 | 26.135135 | 0.757528 | 0.016546 | 0 | 0.612903 | 0 | 0 | 0.017895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2fd399ef21d1427fd4d75eb210dc4fb1e1e0b5ec | 152 | py | Python | Exercicios/Todos/ex049.py | Edson921/exerciciosResolvidos | 72a3089f4848650c62ac0dd876abf5695a64525a | [
"MIT"
] | null | null | null | Exercicios/Todos/ex049.py | Edson921/exerciciosResolvidos | 72a3089f4848650c62ac0dd876abf5695a64525a | [
"MIT"
] | null | null | null | Exercicios/Todos/ex049.py | Edson921/exerciciosResolvidos | 72a3089f4848650c62ac0dd876abf5695a64525a | [
"MIT"
] | null | null | null | #Calculadora de tabuada
n = int(input('Deseja ver tabuada de que numero?'))
for c in range(1, 13):
print('{} X {:2}= {} '. format(n, c, n * c))
| 30.4 | 51 | 0.572368 | 26 | 152 | 3.346154 | 0.769231 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.223684 | 152 | 5 | 52 | 30.4 | 0.70339 | 0.144737 | 0 | 0 | 0 | 0 | 0.361538 | 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 |
2fd4591d238347442d7ceffec0998337ad85bf70 | 362 | py | Python | rede/eevc/models/RegistroTotalizadorMatriz.py | marcioinfo/edi_reader | 9d19cb3fa462c4eb91a0a2f983e12e3de1b596eb | [
"MIT"
] | null | null | null | rede/eevc/models/RegistroTotalizadorMatriz.py | marcioinfo/edi_reader | 9d19cb3fa462c4eb91a0a2f983e12e3de1b596eb | [
"MIT"
] | null | null | null | rede/eevc/models/RegistroTotalizadorMatriz.py | marcioinfo/edi_reader | 9d19cb3fa462c4eb91a0a2f983e12e3de1b596eb | [
"MIT"
] | null | null | null | COLUMNS = [
'tipo_registro',
'nro_pv_matriz',
'vl_total_bruto',
'qtde_cvnsu',
'vl_total_rejeitado',
'vl_total_rotativo',
'vl_total_parcelado_sem_juros',
'vl_total_parcelado_iata',
'vl_total_dolar',
'vl_total_desconto',
'vl_total_liquido',
'vl_total_gorjeta',
'vl_total... | 22.625 | 35 | 0.676796 | 45 | 362 | 4.777778 | 0.533333 | 0.325581 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201657 | 362 | 16 | 36 | 22.625 | 0.743945 | 0 | 0 | 0 | 0 | 0 | 0.655647 | 0.140496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2fe058dd084d71d3320c034887d2a6bdbc3b3c7b | 322 | py | Python | basic_ml/notebooks/numpy/performance_test.py | jmetzz/ml-laboratory | 26b1e87bd0d80efa4f15280f7f32ad46d59efc1f | [
"MIT"
] | 1 | 2021-09-10T16:55:35.000Z | 2021-09-10T16:55:35.000Z | basic_ml/notebooks/numpy/performance_test.py | jmetzz/ml-laboratory | 26b1e87bd0d80efa4f15280f7f32ad46d59efc1f | [
"MIT"
] | 14 | 2022-03-12T01:06:08.000Z | 2022-03-30T14:30:22.000Z | basic_ml/notebooks/numpy/performance_test.py | jmetzz/ml-laboratory | 26b1e87bd0d80efa4f15280f7f32ad46d59efc1f | [
"MIT"
] | null | null | null | import numpy as np
# Create an array with 10^7 elements
arr = np.arange(1e7)
# Converting ndarray to list
larr = arr.tolist()
def list_times(alist, scalar):
return [val * scalar for val in alist]
# Using IPython's magic
# timeit command timeit arr * 1.1
# timeit list_times(larr, 1.1)
# box(x, y){line=snake... | 15.333333 | 42 | 0.692547 | 55 | 322 | 4.018182 | 0.727273 | 0.081448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.198758 | 322 | 20 | 43 | 16.1 | 0.821705 | 0.515528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
641df5fb5db24eb21cd2895f9c79ad3ad2b58d9b | 321 | py | Python | src/mars_profiling/__init__.py | wjsi/mars-profiling | 1accb00c90da67b46ad98ea1592fecc524625454 | [
"MIT"
] | 1 | 2021-01-21T09:11:58.000Z | 2021-01-21T09:11:58.000Z | src/mars_profiling/__init__.py | wjsi/mars-profiling | 1accb00c90da67b46ad98ea1592fecc524625454 | [
"MIT"
] | null | null | null | src/mars_profiling/__init__.py | wjsi/mars-profiling | 1accb00c90da67b46ad98ea1592fecc524625454 | [
"MIT"
] | 1 | 2020-12-30T08:32:29.000Z | 2020-12-30T08:32:29.000Z | """Main module of pandas-profiling.
.. include:: ../../README.md
"""
from mars_profiling.config import Config, config
from mars_profiling.controller import pandas_decorator
from mars_profiling.profile_report import ProfileReport
from mars_profiling.version import __version__
clear_config = ProfileReport.clear_config... | 26.75 | 55 | 0.82243 | 40 | 321 | 6.3 | 0.475 | 0.126984 | 0.269841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096573 | 321 | 11 | 56 | 29.181818 | 0.868966 | 0.193146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
642258fc8f2651e821a5bcb66a823371ffdb8d3d | 213 | py | Python | C1.py | dpocheng/SIMPLESEM-Compiler-Semantic | 9725968a4d8a78ed95e617ad3dbcdb4fc41bd53d | [
"Apache-2.0"
] | null | null | null | C1.py | dpocheng/SIMPLESEM-Compiler-Semantic | 9725968a4d8a78ed95e617ad3dbcdb4fc41bd53d | [
"Apache-2.0"
] | null | null | null | C1.py | dpocheng/SIMPLESEM-Compiler-Semantic | 9725968a4d8a78ed95e617ad3dbcdb4fc41bd53d | [
"Apache-2.0"
] | null | null | null | a, b, c = 3, 1, -1
def main():
global a, b
while a > c:
if a == 0:
print b
else:
b = b + a
a = a - 1
print a
print b
print c
main()
| 15.214286 | 22 | 0.328638 | 33 | 213 | 2.121212 | 0.393939 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0.568075 | 213 | 13 | 23 | 16.384615 | 0.706522 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
642d2e7d44ed6fcd127074d651ed9e62d6aa3d5f | 450 | py | Python | 33-inheritance.py | MKen212/pymosh | 6db31f181081baf3e4cc3d7228a3480b16bd3cda | [
"MIT"
] | null | null | null | 33-inheritance.py | MKen212/pymosh | 6db31f181081baf3e4cc3d7228a3480b16bd3cda | [
"MIT"
] | null | null | null | 33-inheritance.py | MKen212/pymosh | 6db31f181081baf3e4cc3d7228a3480b16bd3cda | [
"MIT"
] | null | null | null | class Mammal:
x = 10
def walk(self):
print("Walking")
# class Dog:
# def walk(self):
# print("Walking")
# class Cat:
# def walk(self):
# print("Walking")
class Dog(Mammal):
def bark(self):
print("Woof, woof!")
class Cat(Mammal):
pass # Just used here as Py... | 13.636364 | 85 | 0.575556 | 60 | 450 | 4.316667 | 0.45 | 0.138996 | 0.127413 | 0.185328 | 0.34749 | 0.34749 | 0.239382 | 0 | 0 | 0 | 0 | 0.006154 | 0.277778 | 450 | 32 | 86 | 14.0625 | 0.790769 | 0.411111 | 0 | 0 | 0 | 0 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0 | 0 | 0.428571 | 0.214286 | 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 |
6438cc3d752def2341c27211310e7e6e164ba110 | 1,242 | py | Python | travel_blog/blog/models.py | kennethlove/travel_blog_livestream | a6bc74e99b4922b5ac0d3a8ed0f2d5dbebde6fd2 | [
"MIT"
] | 2 | 2016-12-17T02:56:22.000Z | 2017-07-19T05:13:59.000Z | travel_blog/blog/models.py | kennethlove/travel_blog_livestream | a6bc74e99b4922b5ac0d3a8ed0f2d5dbebde6fd2 | [
"MIT"
] | null | null | null | travel_blog/blog/models.py | kennethlove/travel_blog_livestream | a6bc74e99b4922b5ac0d3a8ed0f2d5dbebde6fd2 | [
"MIT"
] | 1 | 2018-12-19T06:34:37.000Z | 2018-12-19T06:34:37.000Z | from django.contrib.gis.db import models
from django.core.urlresolvers import reverse
from django.utils import timezone
import markdown
class Post(models.Model):
title = models.CharField(max_length=255)
slug = models.SlugField()
content = models.TextField()
content_html = models.TextField(editable=Fa... | 28.883721 | 65 | 0.694042 | 153 | 1,242 | 5.490196 | 0.470588 | 0.047619 | 0.075 | 0.059524 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004931 | 0.183575 | 1,242 | 42 | 66 | 29.571429 | 0.823471 | 0 | 0 | 0.064516 | 0 | 0 | 0.040258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.129032 | 0.129032 | 0.870968 | 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 |
ff3c1fbbadea09a6b0eb293f80eec2bc2157f2ee | 692 | py | Python | guest/models.py | TylerBackman/chemminetools | 1896c2dd7362f44193528aef028390543a125921 | [
"BSD-4-Clause-UC"
] | 16 | 2015-03-24T18:34:18.000Z | 2018-04-11T06:02:52.000Z | guest/models.py | zagrosman/chemminetools | 1896c2dd7362f44193528aef028390543a125921 | [
"BSD-4-Clause-UC"
] | 60 | 2019-01-03T18:15:55.000Z | 2022-03-12T00:14:59.000Z | guest/models.py | zagrosman/chemminetools | 1896c2dd7362f44193528aef028390543a125921 | [
"BSD-4-Clause-UC"
] | 13 | 2018-04-25T18:25:09.000Z | 2022-02-14T08:15:03.000Z | import datetime
from django.db import models
from django.contrib.auth.models import User
from django.contrib.sessions.models import Session
class Guest(models.Model):
"""
A temporary user.
Fields:
``user`` - The temporary user.
``last_used`` - The last time we noted this user doing something... | 24.714286 | 69 | 0.693642 | 92 | 692 | 5.141304 | 0.521739 | 0.063425 | 0.071882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222543 | 692 | 27 | 70 | 25.62963 | 0.879182 | 0.322254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ff3fe555e0f853acd0d7022e07b47e9bc456ae3d | 323 | py | Python | tests/client/test_get_balance.py | kanzure/eth-testrpc | cbb22ff2bebc9f12098b0bb7f2a245f3510522b4 | [
"MIT"
] | 164 | 2016-04-20T08:30:22.000Z | 2022-01-05T07:43:12.000Z | tests/client/test_get_balance.py | kanzure/eth-testrpc | cbb22ff2bebc9f12098b0bb7f2a245f3510522b4 | [
"MIT"
] | 55 | 2016-06-30T20:06:56.000Z | 2019-12-12T07:36:02.000Z | tests/client/test_get_balance.py | kanzure/eth-testrpc | cbb22ff2bebc9f12098b0bb7f2a245f3510522b4 | [
"MIT"
] | 46 | 2016-04-27T16:28:46.000Z | 2022-01-09T17:59:09.000Z | def test_deploying_contract(client, hex_accounts):
pre_balance = client.get_balance(hex_accounts[1])
client.send_transaction(
_from=hex_accounts[0],
to=hex_accounts[1],
value=1234,
)
post_balance = client.get_balance(hex_accounts[1])
assert post_balance - pre_balance == 12... | 24.846154 | 54 | 0.693498 | 42 | 323 | 4.97619 | 0.47619 | 0.263158 | 0.172249 | 0.220096 | 0.334928 | 0.334928 | 0.334928 | 0 | 0 | 0 | 0 | 0.046875 | 0.20743 | 323 | 12 | 55 | 26.916667 | 0.769531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ff54be97770be18ceff808d68e4d32c92c411113 | 2,411 | py | Python | tests/saliency_tests/visualizer_tests/test_mol_visualizer.py | k-ishiguro/chainer-chemistry | aec33496def16e76bdfbefa508ba01ab9f79a592 | [
"MIT"
] | 1 | 2019-06-19T00:05:59.000Z | 2019-06-19T00:05:59.000Z | tests/saliency_tests/visualizer_tests/test_mol_visualizer.py | k-ishiguro/chainer-chemistry | aec33496def16e76bdfbefa508ba01ab9f79a592 | [
"MIT"
] | null | null | null | tests/saliency_tests/visualizer_tests/test_mol_visualizer.py | k-ishiguro/chainer-chemistry | aec33496def16e76bdfbefa508ba01ab9f79a592 | [
"MIT"
] | 1 | 2020-10-12T07:23:44.000Z | 2020-10-12T07:23:44.000Z | import os
import numpy
import pytest
from rdkit import Chem
from chainer_chemistry.saliency.visualizer.mol_visualizer import MolVisualier # NOQA
from chainer_chemistry.saliency.visualizer.mol_visualizer import SmilesVisualizer # NOQA
def test_mol_visualizer(tmpdir):
# Only test file is saved without error
... | 33.957746 | 89 | 0.686022 | 316 | 2,411 | 5.063291 | 0.243671 | 0.1425 | 0.118125 | 0.09 | 0.7475 | 0.70625 | 0.615625 | 0.546875 | 0.475625 | 0.445625 | 0 | 0.01972 | 0.200747 | 2,411 | 70 | 90 | 34.442857 | 0.810586 | 0.180423 | 0 | 0.511628 | 0 | 0 | 0.025484 | 0 | 0 | 0 | 0 | 0.014286 | 0.069767 | 1 | 0.069767 | false | 0 | 0.139535 | 0 | 0.209302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ff586db231494de039c35a8707572150023a7b03 | 971 | py | Python | crawlers/news/items.py | Ceruleanacg/rena | eb651b7e4d8d8db0ca87e1415a5c9190abb346d2 | [
"MIT"
] | 7 | 2018-04-01T16:07:31.000Z | 2018-07-01T10:33:26.000Z | crawlers/news/items.py | Ceruleanacg/rena | eb651b7e4d8d8db0ca87e1415a5c9190abb346d2 | [
"MIT"
] | null | null | null | crawlers/news/items.py | Ceruleanacg/rena | eb651b7e4d8d8db0ca87e1415a5c9190abb346d2 | [
"MIT"
] | 1 | 2016-02-04T20:33:06.000Z | 2016-02-04T20:33:06.000Z | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
from scrapy.loader.processors import TakeFirst, Join
class NewsItem(Item):
url = Field(
output_processor=TakeFirst()
)... | 16.741379 | 52 | 0.625129 | 100 | 971 | 5.93 | 0.49 | 0.166948 | 0.303541 | 0.440135 | 0.161889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001414 | 0.271885 | 971 | 58 | 53 | 16.741379 | 0.837341 | 0.143151 | 0 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.485714 | 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 |
ff687b565ac41fe08f64ade140dd3095099140f5 | 30,770 | py | Python | math/tests/testcases.py | fuz-woo/gpython | 06dadad26f41e35b57c144ffdac01fb3f23977e9 | [
"BSD-3-Clause"
] | 520 | 2018-08-21T19:28:23.000Z | 2022-03-30T21:26:10.000Z | math/tests/testcases.py | fuz-woo/gpython | 06dadad26f41e35b57c144ffdac01fb3f23977e9 | [
"BSD-3-Clause"
] | 165 | 2018-08-22T07:54:29.000Z | 2022-03-31T20:34:21.000Z | math/tests/testcases.py | fuz-woo/gpython | 06dadad26f41e35b57c144ffdac01fb3f23977e9 | [
"BSD-3-Clause"
] | 84 | 2018-08-27T03:29:09.000Z | 2022-03-15T23:19:13.000Z | # Copyright 2018 The go-python Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Testcases for functions in math.
#
# Each line takes the form:
#
# <testid> <function> <input_value> -> <output_value> <flags>
#
# where:
#
# <testid> ... | 43.034965 | 125 | 0.70819 | 4,612 | 30,770 | 4.719861 | 0.28144 | 0.033444 | 0.023153 | 0.008085 | 0.17953 | 0.153804 | 0.119166 | 0.065968 | 0.049798 | 0.022234 | 0 | 0.370685 | 0.11599 | 30,770 | 714 | 126 | 43.095238 | 0.42958 | 0.249041 | 0 | 0.022624 | 0 | 0.002262 | 0.140467 | 0 | 0 | 0 | 0 | 0.001401 | 0.004525 | 1 | 0.006787 | false | 0.002262 | 0.006787 | 0 | 0.027149 | 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 |
ff88e0f5ccecc3c701f512768bb897a2dfbe68cb | 1,035 | py | Python | sis-api/test/bdd/steps/membership.serialization.py | maxbilbow/7054CEM-sis | 1c5067c9afc38e340fcce046048f8ae21d267365 | [
"MIT"
] | null | null | null | sis-api/test/bdd/steps/membership.serialization.py | maxbilbow/7054CEM-sis | 1c5067c9afc38e340fcce046048f8ae21d267365 | [
"MIT"
] | null | null | null | sis-api/test/bdd/steps/membership.serialization.py | maxbilbow/7054CEM-sis | 1c5067c9afc38e340fcce046048f8ae21d267365 | [
"MIT"
] | null | null | null | from datetime import date
from behave import *
from core.model import to_dict
from core.model.membership import Membership
from core.model.membership_type import MembershipType
from core.utils.serialization import serialize
use_step_matcher("re")
@when("a serialized membership is requested")
def step_impl(context)... | 27.236842 | 118 | 0.72657 | 142 | 1,035 | 5.147887 | 0.366197 | 0.082079 | 0.053352 | 0.073871 | 0.268126 | 0.227086 | 0.227086 | 0.227086 | 0.227086 | 0.227086 | 0 | 0.002291 | 0.156522 | 1,035 | 37 | 119 | 27.972973 | 0.835052 | 0.137198 | 0 | 0.117647 | 0 | 0 | 0.194279 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.176471 | false | 0 | 0.352941 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ffb515697db4de0f590ab614acfa4b387f024c15 | 482 | py | Python | io_scene_vrm/editor/extension.py | 989onan/VRM_Addon_for_Blender | af894a87bdf2bc02b69842c6de082f097f1e0939 | [
"MIT"
] | 344 | 2021-02-09T15:06:26.000Z | 2022-03-31T07:13:40.000Z | io_scene_vrm/editor/extension.py | 989onan/VRM_Addon_for_Blender | af894a87bdf2bc02b69842c6de082f097f1e0939 | [
"MIT"
] | 47 | 2021-02-06T23:44:43.000Z | 2022-03-22T21:45:21.000Z | io_scene_vrm/editor/extension.py | 989onan/VRM_Addon_for_Blender | af894a87bdf2bc02b69842c6de082f097f1e0939 | [
"MIT"
] | 44 | 2021-02-21T14:15:38.000Z | 2022-03-31T01:53:12.000Z | import bpy
from .vrm0.property_group import Vrm0PropertyGroup
class VrmAddonArmatureExtensionPropertyGroup(bpy.types.PropertyGroup): # type: ignore[misc]
addon_version: bpy.props.IntVectorProperty( # type: ignore[valid-type]
size=3 # noqa: F722
)
vrm0: bpy.props.PointerProperty( # type: igno... | 30.125 | 92 | 0.715768 | 55 | 482 | 6.2 | 0.563636 | 0.117302 | 0.131965 | 0.167155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030227 | 0.176349 | 482 | 15 | 93 | 32.133333 | 0.828715 | 0.238589 | 0 | 0 | 0 | 0 | 0.019444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
44155aabada0f13fedb7c839b6f8e15ee94c7153 | 327 | py | Python | gz.17zwd.com/17wang.py | zzh-python/all-project | 915a47fb42d63ff3a36814992283c2f4ed8703a3 | [
"Apache-2.0"
] | 58 | 2019-03-01T08:15:19.000Z | 2022-03-28T03:16:17.000Z | gz.17zwd.com/17wang.py | zzh-python/all-project | 915a47fb42d63ff3a36814992283c2f4ed8703a3 | [
"Apache-2.0"
] | 2 | 2020-06-08T08:07:46.000Z | 2020-11-02T11:48:05.000Z | gz.17zwd.com/17wang.py | zzh-python/all-project | 915a47fb42d63ff3a36814992283c2f4ed8703a3 | [
"Apache-2.0"
] | 37 | 2019-02-26T23:30:08.000Z | 2022-01-27T05:10:18.000Z | from bs4 import BeautifulSoup
import requests
import csv
import sys
from urllib.error import HTTPError
sys.path.append("..")
import mytemp
import time
import json
url='https://gz.17zwd.com/api/shop/get-list/73'
resp=requests.get(url)
f=open('17wang.txt','w+',encoding='utf-8')
f.write(resp.text)
print(res... | 21.8 | 48 | 0.730887 | 53 | 327 | 4.509434 | 0.698113 | 0.066946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027875 | 0.122324 | 327 | 15 | 49 | 21.8 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0.071429 | 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 |
4453e7148b48df800b321d8e53272108159d1a65 | 346 | py | Python | login.py | kepler0301/test_git | 22b42b627b26224fff0bef29e43937b6a08c968a | [
"MIT"
] | 1 | 2018-12-27T12:58:46.000Z | 2018-12-27T12:58:46.000Z | login.py | kepler0301/test_git | 22b42b627b26224fff0bef29e43937b6a08c968a | [
"MIT"
] | null | null | null | login.py | kepler0301/test_git | 22b42b627b26224fff0bef29e43937b6a08c968a | [
"MIT"
] | null | null | null | print('helo world')
<<<<<<< HEAD
from flask import Flask
app = Flask(__name__)
def index():
return 'hello world'
id __name__ == '__main__'
app.run()
=======
from flask import Flask
app = Flask(__name__)
@app/route('/')
def index():
return 'hello world'
>>>>>>> b644c89d3eb5e1fcd31fedf63470ab57d597d9dd
... | 13.307692 | 48 | 0.647399 | 40 | 346 | 5.2 | 0.525 | 0.086538 | 0.144231 | 0.192308 | 0.538462 | 0.307692 | 0.307692 | 0 | 0 | 0 | 0 | 0.084507 | 0.179191 | 346 | 25 | 49 | 13.84 | 0.647887 | 0 | 0 | 0.470588 | 0 | 0 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.117647 | 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 |
4457c61974adf6ea23263c3521814d88592f3989 | 198 | py | Python | translateSfw.py | tkarabela/translate-swf | 4756079294de9faa55d95b320d9b8a5ae6c40104 | [
"MIT"
] | 1 | 2022-03-15T21:44:50.000Z | 2022-03-15T21:44:50.000Z | translateSfw.py | tkarabela/translate-swf | 4756079294de9faa55d95b320d9b8a5ae6c40104 | [
"MIT"
] | null | null | null | translateSfw.py | tkarabela/translate-swf | 4756079294de9faa55d95b320d9b8a5ae6c40104 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import pyTranslateSwf
import sys
def main():
cli = pyTranslateSwf.PyTranslateSwfCLI()
return cli.run(sys.argv[1:])
if __name__ == '__main__':
sys.exit(main())
| 15.230769 | 44 | 0.681818 | 25 | 198 | 5.08 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.171717 | 198 | 12 | 45 | 16.5 | 0.762195 | 0.106061 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44588a8251975fab2aceaf05fcf35cad8b89e5fe | 656 | py | Python | GT/GT_app/models.py | 10K-Linesofcode/Glowing-Tribble | be0e17ce5391b589792e4ae6b02156d7ee4ce145 | [
"MIT"
] | null | null | null | GT/GT_app/models.py | 10K-Linesofcode/Glowing-Tribble | be0e17ce5391b589792e4ae6b02156d7ee4ce145 | [
"MIT"
] | null | null | null | GT/GT_app/models.py | 10K-Linesofcode/Glowing-Tribble | be0e17ce5391b589792e4ae6b02156d7ee4ce145 | [
"MIT"
] | null | null | null |
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Topic(models.Model):
top_name= models.CharField(max_length=264,unique=True)
def __str__(self):
return self.top_name
class Webpage(models.Model):
topic=models.ForeignKey(Topic,on_delete=models.... | 22.62069 | 63 | 0.731707 | 89 | 656 | 5.11236 | 0.41573 | 0.061538 | 0.065934 | 0.105495 | 0.391209 | 0.29011 | 0.29011 | 0.18022 | 0 | 0 | 0 | 0.010989 | 0.167683 | 656 | 28 | 64 | 23.428571 | 0.822344 | 0.036585 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.176471 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
4461eff877eb304b062070484689204017151234 | 150 | py | Python | A/A 1030 In Search of an Easy Problem.py | zielman/Codeforces-solutions | 636f11a9eb10939d09d2e50ddc5ec53327d0b7ab | [
"MIT"
] | null | null | null | A/A 1030 In Search of an Easy Problem.py | zielman/Codeforces-solutions | 636f11a9eb10939d09d2e50ddc5ec53327d0b7ab | [
"MIT"
] | 1 | 2021-05-05T17:05:03.000Z | 2021-05-05T17:05:03.000Z | A/A 1030 In Search of an Easy Problem.py | zielman/Codeforces-solutions | 636f11a9eb10939d09d2e50ddc5ec53327d0b7ab | [
"MIT"
] | null | null | null | # https://codeforces.com/problemset/problem/1030/A
n = int(input())
o = list(map(int, input().split()))
print('HARD' if o.count(1) != 0 else 'EASY') | 25 | 50 | 0.646667 | 25 | 150 | 3.88 | 0.88 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045113 | 0.113333 | 150 | 6 | 51 | 25 | 0.684211 | 0.32 | 0 | 0 | 0 | 0 | 0.079208 | 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 |
44631cbd82bde4053d51f4b0bd82dc77e1e5e801 | 1,290 | py | Python | diplomacy_research/models/gym/__init__.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 39 | 2019-09-06T13:42:24.000Z | 2022-03-18T18:38:43.000Z | diplomacy_research/models/gym/__init__.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 9 | 2019-09-19T22:35:32.000Z | 2022-02-24T18:04:57.000Z | diplomacy_research/models/gym/__init__.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 8 | 2019-10-16T21:09:14.000Z | 2022-02-23T05:20:37.000Z | # ==============================================================================
# Copyright 2019 - Philip Paquette
#
# NOTICE: Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without rest... | 49.615385 | 112 | 0.684496 | 143 | 1,290 | 6.153846 | 0.65035 | 0.0625 | 0.029545 | 0.059091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004476 | 0.134109 | 1,290 | 25 | 113 | 51.6 | 0.783348 | 0.644186 | 0 | 0 | 0 | 0 | 0.246014 | 0.123007 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
446910272f530e7a9c174ed37e4268b3d0995159 | 29,890 | py | Python | src/rc_icons.py | lmdu/dockey | a8ae34c780c952cb26270a173de08897b34c7252 | [
"MIT"
] | null | null | null | src/rc_icons.py | lmdu/dockey | a8ae34c780c952cb26270a173de08897b34c7252 | [
"MIT"
] | null | null | null | src/rc_icons.py | lmdu/dockey | a8ae34c780c952cb26270a173de08897b34c7252 | [
"MIT"
] | null | null | null | # Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 6.3.0
# WARNING! All changes made in this file will be lost!
from PySide6 import QtCore
qt_resource_data = b"\
\x00\x00\x02\xd8\
<\
?xml version=\x221.\
0\x22 encoding=\x22utf\
-8\x22?>\x0d\x0a<!-- Gene\
rat... | 21.801605 | 96 | 0.636434 | 7,324 | 29,890 | 2.592572 | 0.114555 | 0.095429 | 0.060196 | 0.045502 | 0.708447 | 0.691911 | 0.654413 | 0.624289 | 0.585633 | 0.555298 | 0 | 0.335722 | 0.075611 | 29,890 | 1,370 | 97 | 21.817518 | 0.351502 | 0.005453 | 0 | 0.495217 | 0 | 0.020603 | 0 | 0 | 0 | 0 | 0.000269 | 0 | 0 | 1 | 0.001472 | false | 0 | 0.000736 | 0 | 0.002208 | 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 |
447112b6fa86b5ec0c006f66a69b184bd85f3270 | 267 | py | Python | recursion/base_converter.py | Yasir323/Data-Structures-and-Algorithms-in-Python | b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0 | [
"MIT"
] | null | null | null | recursion/base_converter.py | Yasir323/Data-Structures-and-Algorithms-in-Python | b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0 | [
"MIT"
] | null | null | null | recursion/base_converter.py | Yasir323/Data-Structures-and-Algorithms-in-Python | b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0 | [
"MIT"
] | null | null | null | def decimal2base(num, base):
convert_string = "0123456789ABCDEF"
if num < base:
return convert_string[num]
remainder = num % base
num = num // base
return decimal2base(num, base) + convert_string[remainder]
print(decimal2base(1453, 16))
| 24.272727 | 62 | 0.677903 | 31 | 267 | 5.741935 | 0.419355 | 0.196629 | 0.213483 | 0.292135 | 0.359551 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091346 | 0.220974 | 267 | 10 | 63 | 26.7 | 0.764423 | 0 | 0 | 0 | 0 | 0 | 0.059925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0.125 | 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 |
447b46504e3f133d3560744b576f31426d682d53 | 1,242 | py | Python | app/main/forms.py | macymuhia/Blogspot | b1a578a4120bebb2c4c2a57201ac43eec7a161e9 | [
"MIT"
] | null | null | null | app/main/forms.py | macymuhia/Blogspot | b1a578a4120bebb2c4c2a57201ac43eec7a161e9 | [
"MIT"
] | 6 | 2021-02-08T20:33:48.000Z | 2022-03-11T23:56:14.000Z | app/main/forms.py | macymuhia/Blogspot | b1a578a4120bebb2c4c2a57201ac43eec7a161e9 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SubmitField, SelectField
from wtforms.validators import Required
class BlogForm(FlaskForm):
blog_title = StringField("Blog title", validators=[Required()])
blog_description = StringField("Blog description", validators=[Required()... | 27 | 79 | 0.650564 | 108 | 1,242 | 7.444444 | 0.37963 | 0.156716 | 0.119403 | 0.174129 | 0.243781 | 0.243781 | 0.243781 | 0.243781 | 0.243781 | 0.243781 | 0 | 0 | 0.20934 | 1,242 | 45 | 80 | 27.6 | 0.818737 | 0.075684 | 0 | 0.214286 | 0 | 0 | 0.163605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.642857 | 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 |
447e060bfaf57ff9d2bd90b071b3844072392c17 | 3,912 | py | Python | tests/test_file_structure.py | ChrisWellsWood/carpyt | 6bdabd4924d0af5a83863dc25bec8961f321daaa | [
"MIT"
] | null | null | null | tests/test_file_structure.py | ChrisWellsWood/carpyt | 6bdabd4924d0af5a83863dc25bec8961f321daaa | [
"MIT"
] | null | null | null | tests/test_file_structure.py | ChrisWellsWood/carpyt | 6bdabd4924d0af5a83863dc25bec8961f321daaa | [
"MIT"
] | null | null | null | """Tests for creating file structure."""
import os
from pathlib import Path
import tempfile
from unittest import TestCase
import carpyt
TEST_TEMPLATES = Path(os.path.abspath(__file__)).parent / 'test_templates'
class TestTemplateParsing(TestCase):
"""Tests that templates are parsed correctly."""
def test... | 43.466667 | 74 | 0.650562 | 489 | 3,912 | 4.97546 | 0.167689 | 0.184135 | 0.147965 | 0.180847 | 0.556104 | 0.447185 | 0.326757 | 0.293876 | 0.21455 | 0.168516 | 0 | 0.012064 | 0.216002 | 3,912 | 89 | 75 | 43.955056 | 0.781219 | 0.103016 | 0 | 0.106061 | 0 | 0 | 0.093272 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.090909 | false | 0 | 0.075758 | 0 | 0.19697 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
44816770ada7ebc5eb5982830625b9550b145802 | 408 | py | Python | Flask/server/config.py | VincentParsons/DigSig | 195c97e34237dab78de40efd2d3a1e0269a82b70 | [
"MIT"
] | null | null | null | Flask/server/config.py | VincentParsons/DigSig | 195c97e34237dab78de40efd2d3a1e0269a82b70 | [
"MIT"
] | 1 | 2022-02-13T01:23:59.000Z | 2022-02-13T01:23:59.000Z | Flask/server/config.py | VincentParsons/DigSig | 195c97e34237dab78de40efd2d3a1e0269a82b70 | [
"MIT"
] | null | null | null | from dotenv import load_dotenv
import os
load_dotenv()
class ApplicationConfig:
SECRET_KEY = "asdadsd"
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True
SQLALCHEMY_DATABASE_URI = r"sqlite:///./db.sqlite"
SESSION_TYPE = "filesystem"
SESSION_PERMANENT = False
SESSION_USE_SIGNER... | 20.4 | 54 | 0.732843 | 46 | 408 | 6.195652 | 0.73913 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 408 | 19 | 55 | 21.473684 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.169533 | 0.051597 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.923077 | 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 |
4497c0bd8ba875e530e105c67eb98c37b9208182 | 2,151 | py | Python | tests/test_configManager.py | Helene/ibm-spectrum-scale-bridge-for-grafana | 9ec7953071d9fbe90332cb670a3f6c00ebf3291b | [
"Apache-2.0"
] | 28 | 2019-11-21T21:11:55.000Z | 2022-03-14T16:53:12.000Z | tests/test_configManager.py | Helene/ibm-spectrum-scale-bridge-for-grafana | 9ec7953071d9fbe90332cb670a3f6c00ebf3291b | [
"Apache-2.0"
] | 23 | 2019-12-17T08:44:09.000Z | 2022-01-07T11:02:01.000Z | tests/test_configManager.py | Helene/ibm-spectrum-scale-bridge-for-grafana | 9ec7953071d9fbe90332cb670a3f6c00ebf3291b | [
"Apache-2.0"
] | 7 | 2019-12-04T09:41:17.000Z | 2021-12-10T15:01:08.000Z | from source.confParser import ConfigManager
from source.__version__ import __version__ as version
def test_case01():
cm = ConfigManager()
result = cm.readConfigFile('config.ini')
assert isinstance(result, dict)
def test_case02():
cm = ConfigManager()
result = cm.readConfigFile('config.ini')
... | 22.882979 | 80 | 0.656439 | 250 | 2,151 | 5.552 | 0.248 | 0.065562 | 0.196686 | 0.215418 | 0.612392 | 0.445965 | 0.301153 | 0.177233 | 0.064842 | 0 | 0 | 0.031991 | 0.215249 | 2,151 | 93 | 81 | 23.129032 | 0.790284 | 0 | 0 | 0.477612 | 0 | 0 | 0.078568 | 0 | 0 | 0 | 0 | 0 | 0.283582 | 1 | 0.19403 | false | 0 | 0.029851 | 0 | 0.223881 | 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 |
9225d697e78183c1ad43794ee9e4cd4755df5089 | 2,260 | py | Python | orbit.py | srujan71/CubeSat-Mission-Planner | 34030254109def0b13e82116ed5122ecf79a82f7 | [
"MIT"
] | 1 | 2021-07-26T16:17:30.000Z | 2021-07-26T16:17:30.000Z | orbit.py | leizhang2020/CubeSat-Mission-Planner | 62d1ad33c2dcb1a2f8fb3ff615cc5cc0e6716969 | [
"MIT"
] | null | null | null | orbit.py | leizhang2020/CubeSat-Mission-Planner | 62d1ad33c2dcb1a2f8fb3ff615cc5cc0e6716969 | [
"MIT"
] | 2 | 2021-09-18T08:50:44.000Z | 2022-01-20T02:41:38.000Z | """
orbit.py
"Frankly, a very limited and highly specific implementation of an Orbit class.
If used for applications other than the original usecase, this class will
either need to be bypassed or heavily expanded upon."
@author: Johan Monster (https://github.com/Hans-Bananendans/)
"""
from numpy import log
... | 25.111111 | 78 | 0.509735 | 273 | 2,260 | 4.194139 | 0.450549 | 0.026201 | 0.044541 | 0.062882 | 0.360699 | 0.341485 | 0.297817 | 0.297817 | 0.260262 | 0.174672 | 0 | 0.064631 | 0.376991 | 2,260 | 90 | 79 | 25.111111 | 0.74858 | 0.600442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
922f623f7a3d41cac0130a562f5b7e6ac382fee1 | 2,639 | py | Python | mikelint/analysers/analyser.py | mike-fam/mikelint | 4e512039d11e9bbfde18a8cadcbc4608295e663f | [
"MIT"
] | 2 | 2021-04-27T01:13:37.000Z | 2021-05-21T02:28:24.000Z | mikelint/analysers/analyser.py | mike-fam/mikelint | 4e512039d11e9bbfde18a8cadcbc4608295e663f | [
"MIT"
] | 3 | 2021-05-05T10:21:25.000Z | 2021-05-30T12:51:43.000Z | mikelint/analysers/analyser.py | mike-fam/mikelint | 4e512039d11e9bbfde18a8cadcbc4608295e663f | [
"MIT"
] | null | null | null | """
Abstract analyser
"""
from functools import wraps
from inspect import getmembers, ismethod
from typing import Callable
from ..type_hints import AnalyserResults, AnalyserHelper
from ..utils import SyntaxTree, BaseViolation, ViolationResult
def register_check(error_format: str):
"""
Registers a new checker... | 32.182927 | 80 | 0.611595 | 277 | 2,639 | 5.631769 | 0.32491 | 0.049359 | 0.041026 | 0.029487 | 0.071795 | 0.046154 | 0.046154 | 0.046154 | 0 | 0 | 0 | 0.001095 | 0.307692 | 2,639 | 81 | 81 | 32.580247 | 0.852764 | 0.241379 | 0 | 0 | 0 | 0 | 0.003398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.138889 | 0 | 0.527778 | 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 |
9240a548d742f534b991d13e7dee47d24390d843 | 416 | py | Python | aiocloudflare/api/user/billing/subscriptions/subscriptions.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 2 | 2021-09-14T13:20:55.000Z | 2022-02-24T14:18:24.000Z | aiocloudflare/api/user/billing/subscriptions/subscriptions.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 46 | 2021-09-08T08:39:45.000Z | 2022-03-29T12:31:05.000Z | aiocloudflare/api/user/billing/subscriptions/subscriptions.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 1 | 2021-12-30T23:02:23.000Z | 2021-12-30T23:02:23.000Z | from aiocloudflare.commons.unused import Unused
from .apps.apps import Apps
from .zones.zones import Zones
class Subscriptions(Unused):
_endpoint1 = "user/billing/subscriptions"
_endpoint2 = None
_endpoint3 = None
@property
def apps(self) -> Apps:
return Apps(self._config, self._session)... | 21.894737 | 49 | 0.697115 | 49 | 416 | 5.77551 | 0.428571 | 0.077739 | 0.09894 | 0.14841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009146 | 0.211538 | 416 | 18 | 50 | 23.111111 | 0.853659 | 0 | 0 | 0.153846 | 0 | 0 | 0.0625 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.153846 | 0.846154 | 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 |
92414f09496d34fe212d6725d451c35584414eae | 1,548 | py | Python | dlutils/timer.py | podgorskiy/dlutils | 716c99fd26cde73550c58b2be1071d64c67ca036 | [
"Apache-2.0"
] | 5 | 2019-11-06T20:42:38.000Z | 2020-09-06T02:09:56.000Z | dlutils/timer.py | podgorskiy/dlutils | 716c99fd26cde73550c58b2be1071d64c67ca036 | [
"Apache-2.0"
] | 2 | 2020-04-23T09:22:29.000Z | 2020-04-23T14:41:22.000Z | dlutils/timer.py | podgorskiy/dlutils | 716c99fd26cde73550c58b2be1071d64c67ca036 | [
"Apache-2.0"
] | 3 | 2020-04-28T18:12:47.000Z | 2020-08-28T06:50:34.000Z | # Copyright 2017-2019 Stanislav Pidhorskyi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 29.769231 | 104 | 0.583333 | 189 | 1,548 | 4.714286 | 0.571429 | 0.06734 | 0.029181 | 0.035915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021968 | 0.264858 | 1,548 | 51 | 105 | 30.352941 | 0.760984 | 0.747416 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
924aac08eec6f6d80fd3a7f3fb5250d621f04816 | 162 | py | Python | tests/configuration/config.py | NHSDigital/karsten-ratelimit-test | f4eeccd999ef440d4a1ec4d0a71ffc187665877d | [
"MIT"
] | 1 | 2021-11-08T14:54:07.000Z | 2021-11-08T14:54:07.000Z | tests/configuration/config.py | NHSDigital/karsten-ratelimit-test | f4eeccd999ef440d4a1ec4d0a71ffc187665877d | [
"MIT"
] | 36 | 2020-06-24T10:55:10.000Z | 2022-02-11T10:11:07.000Z | tests/configuration/config.py | NHSDigital/public-data-catalogue | 7c385698a8db241cc9496a74bd41a1806bee2907 | [
"MIT"
] | 1 | 2021-04-11T07:32:37.000Z | 2021-04-11T07:32:37.000Z | from .environment import ENV
# Api Details
ENVIRONMENT = ENV["environment"]
BASE_URL = f"https://{ENVIRONMENT}.api.service.nhs.uk"
BASE_PATH = ENV["base_path"]
| 20.25 | 54 | 0.740741 | 23 | 162 | 5.086957 | 0.608696 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 162 | 7 | 55 | 23.142857 | 0.8125 | 0.067901 | 0 | 0 | 0 | 0 | 0.402685 | 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 |
9257db98b395b4b7c78f60feda8d5c9358ca061b | 709 | py | Python | ADTs/Node.py | pacevedom/three-in-line-AI | 9e42c1512bbfccbf5bccd9adc4a5da8bc595d4e5 | [
"MIT"
] | null | null | null | ADTs/Node.py | pacevedom/three-in-line-AI | 9e42c1512bbfccbf5bccd9adc4a5da8bc595d4e5 | [
"MIT"
] | null | null | null | ADTs/Node.py | pacevedom/three-in-line-AI | 9e42c1512bbfccbf5bccd9adc4a5da8bc595d4e5 | [
"MIT"
] | 1 | 2021-11-28T15:42:44.000Z | 2021-11-28T15:42:44.000Z | class Node:
def __init__(self, value, child, parent):
self._value = value
self._child = child
self._parent = parent
def get_value(self):
#Return the value of a node
return self._value
def get_child(self):
#Return the value of a node
return self._chil... | 24.448276 | 45 | 0.602257 | 96 | 709 | 4.25 | 0.166667 | 0.110294 | 0.085784 | 0.107843 | 0.335784 | 0.294118 | 0.294118 | 0.171569 | 0.171569 | 0 | 0 | 0 | 0.328632 | 709 | 29 | 46 | 24.448276 | 0.857143 | 0.222849 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0 | 0 | 0.176471 | 0.647059 | 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 |
926055753876c29c748828d168304c3ef6c8a5b4 | 578 | py | Python | Unit 8 Libraries/shapes.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | Unit 8 Libraries/shapes.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | Unit 8 Libraries/shapes.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu May 28 15:30:04 2020
@author: Christopher Cheng
"""
class Circle (object):
def __init__(self):
self.radius = 0
def change_radius(self, radius):
self.radius = radius
def get_radius (self):
return self.radius
class Rectangle(object):
... | 23.12 | 48 | 0.626298 | 77 | 578 | 4.545455 | 0.441558 | 0.114286 | 0.062857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033019 | 0.266436 | 578 | 24 | 49 | 24.083333 | 0.792453 | 0.223183 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.066667 | 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 |
926441ea90cbc6c22b98d9270a3adf3f083c5bbf | 889 | py | Python | card/models.py | tyhunt99/card-collector-db | 932bd829eb46f9492e6a25326140823629161bab | [
"MIT"
] | null | null | null | card/models.py | tyhunt99/card-collector-db | 932bd829eb46f9492e6a25326140823629161bab | [
"MIT"
] | 4 | 2020-06-05T20:53:52.000Z | 2022-02-10T08:32:51.000Z | card/models.py | tyhunt99/card-collector-db | 932bd829eb46f9492e6a25326140823629161bab | [
"MIT"
] | null | null | null | import datetime
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
class Collection(models.Model):
'''
A collection of cards.
'''
name = models.CharField(max_length=250)
class Card(models.Model):
first_name = models.CharField(max_length=150)
... | 26.939394 | 78 | 0.68054 | 96 | 889 | 6.197917 | 0.541667 | 0.12605 | 0.151261 | 0.201681 | 0.201681 | 0.104202 | 0 | 0 | 0 | 0 | 0 | 0.033189 | 0.220472 | 889 | 32 | 79 | 27.78125 | 0.825397 | 0.069741 | 0 | 0 | 0 | 0 | 0.039457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.565217 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.