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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce2a982a0e4d8995d7542eb89ba80c55fc2409b2 | 131 | py | Python | extra_old_code/even_odd.py | ugo-en/some-python-code | 95ca7d9f34ab175dc25556b1c0485134c49b0370 | [
"MIT"
] | null | null | null | extra_old_code/even_odd.py | ugo-en/some-python-code | 95ca7d9f34ab175dc25556b1c0485134c49b0370 | [
"MIT"
] | null | null | null | extra_old_code/even_odd.py | ugo-en/some-python-code | 95ca7d9f34ab175dc25556b1c0485134c49b0370 | [
"MIT"
] | null | null | null | test = int(input("Enter a whole number"))
if (test % 2 ==00):
print(test, "is even.")
else:
print(test, ""odd number")
| 21.833333 | 42 | 0.572519 | 20 | 131 | 3.75 | 0.75 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.229008 | 131 | 5 | 43 | 26.2 | 0.712871 | 0 | 0 | 0 | 0 | 0 | 0.221374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02187df5c6da5220dd248bf10d57174be096541f | 207 | py | Python | we-web/scripts/prepare_db.py | h-qub/wordeater-web | 9a336d1e467d08c6b3875bd8b83dea0dc3b9236d | [
"MIT"
] | null | null | null | we-web/scripts/prepare_db.py | h-qub/wordeater-web | 9a336d1e467d08c6b3875bd8b83dea0dc3b9236d | [
"MIT"
] | 3 | 2016-03-11T08:43:47.000Z | 2016-11-01T13:07:48.000Z | we-web/scripts/prepare_db.py | h-qub/wordeater-web | 9a336d1e467d08c6b3875bd8b83dea0dc3b9236d | [
"MIT"
] | null | null | null | # coding=utf-8
__author__ = 'Warlock'
from flask.ext.script import Command
from services.users import UserService
from domain.model import db
class CreatDatabase(Command):
def run(self):
pass
| 17.25 | 38 | 0.743961 | 28 | 207 | 5.357143 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.178744 | 207 | 11 | 39 | 18.818182 | 0.876471 | 0.057971 | 0 | 0 | 0 | 0 | 0.036269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
02272b50731feb5f67d123e7b6ab5d8223364afb | 43 | py | Python | rsvm/__init__.py | Doctorado-ML/RSvm | 42c2e40000d9dded4c80a827aeda236ab91a0cd3 | [
"MIT"
] | 1 | 2021-05-23T16:47:00.000Z | 2021-05-23T16:47:00.000Z | rsvm/__init__.py | Doctorado-ML/RSvm | 42c2e40000d9dded4c80a827aeda236ab91a0cd3 | [
"MIT"
] | null | null | null | rsvm/__init__.py | Doctorado-ML/RSvm | 42c2e40000d9dded4c80a827aeda236ab91a0cd3 | [
"MIT"
] | null | null | null | from .RSvm import RSvm
__all__ = ["RSvm"]
| 10.75 | 22 | 0.674419 | 6 | 43 | 4.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 3 | 23 | 14.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
026960fa41d2f5ee17dfac2dee8257f82957df3a | 560 | py | Python | Pothos/InputPort.py | pothosware/PothosPython | c6d7ed4ef7578a5534ec6a4ba3159a9683970bd3 | [
"BSL-1.0"
] | 7 | 2018-01-02T14:21:08.000Z | 2021-07-08T19:44:24.000Z | Pothos/InputPort.py | BelmY/PothosPython | b597d9e2d914f8e8e31b7335fe2db17af6b88e55 | [
"BSL-1.0"
] | 7 | 2015-12-17T03:27:49.000Z | 2017-02-10T17:37:55.000Z | Pothos/InputPort.py | BelmY/PothosPython | b597d9e2d914f8e8e31b7335fe2db17af6b88e55 | [
"BSL-1.0"
] | 4 | 2018-05-24T21:28:53.000Z | 2022-03-24T06:20:15.000Z | # Copyright (c) 2014-2016 Josh Blum
# SPDX-License-Identifier: BSL-1.0
from . PothosModule import *
from . Label import Label, LabelIteratorRange
from . Buffer import pointer_to_ndarray
from . Buffer import dtype_to_numpy
import numpy
class InputPort(object):
def __init__(self, port):
self._port = port
... | 25.454545 | 57 | 0.707143 | 74 | 560 | 5.108108 | 0.5 | 0.10582 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022173 | 0.194643 | 560 | 21 | 58 | 26.666667 | 0.815965 | 0.117857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.357143 | 0.214286 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
5a0626942a56258102798b86dfbb8c0d2c9be433 | 216 | py | Python | bin/sa_haveibeenpwned/aob_py3/backports/__init__.py | hRun/SA-haveibeenpwned | 2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb | [
"Apache-2.0"
] | 2 | 2020-08-17T07:52:48.000Z | 2020-12-18T16:39:32.000Z | bin/sa_haveibeenpwned/aob_py2/backports/__init__.py | hRun/SA-haveibeenpwned | 2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb | [
"Apache-2.0"
] | 5 | 2020-12-15T23:40:14.000Z | 2022-02-23T15:43:18.000Z | bin/sa_haveibeenpwned/aob_py2/backports/__init__.py | hRun/SA-haveibeenpwned | 2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb | [
"Apache-2.0"
] | 4 | 2019-05-16T09:57:33.000Z | 2021-07-14T12:31:21.000Z | # A Python "namespace package" http://www.python.org/dev/peps/pep-0382/
# This always goes inside of a namespace package's __init__.py
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
| 36 | 72 | 0.768519 | 33 | 216 | 4.484848 | 0.757576 | 0.216216 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.138889 | 216 | 5 | 73 | 43.2 | 0.774194 | 0.601852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5a095fd0da5e24afe585557d1aac0166773fdcbd | 1,063 | py | Python | test.py | BraunPhilipp/sentiment-analyzer | de1528c924b7015bafda56196b264523b64dc7c1 | [
"MIT"
] | 4 | 2016-09-24T22:09:49.000Z | 2017-05-17T12:51:48.000Z | test.py | BraunPhilipp/sentiment-analyzer | de1528c924b7015bafda56196b264523b64dc7c1 | [
"MIT"
] | 2 | 2016-11-29T05:50:01.000Z | 2021-02-13T18:07:20.000Z | test.py | BraunPhilipp/sentiment-analyzer | de1528c924b7015bafda56196b264523b64dc7c1 | [
"MIT"
] | null | null | null | from logger import logger
from api import api
## Tracker
#api.tracker().create('donald trump')
#api.tracker().delete('ruby')
#print(api.tracker().next())
## Reviews
# import reviews.walmart as walmart
#
# for i in range(1, 1000000):
# rt = walmart.walmart().data
# print(rt)
#
# if len(rt) > 0:
# ... | 18.649123 | 105 | 0.618062 | 152 | 1,063 | 4.302632 | 0.407895 | 0.107034 | 0.068807 | 0.058104 | 0.110092 | 0.110092 | 0.06422 | 0 | 0 | 0 | 0 | 0.021814 | 0.180621 | 1,063 | 56 | 106 | 18.982143 | 0.729047 | 0.863594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5a125550803bc179b384fa5344ab20371c2e644e | 2,296 | py | Python | cogs/connect_four/buttons.py | Gumbachi/HallBot | eb779507ffd2f17b7f9776c3dda2a55de34cae6e | [
"MIT"
] | null | null | null | cogs/connect_four/buttons.py | Gumbachi/HallBot | eb779507ffd2f17b7f9776c3dda2a55de34cae6e | [
"MIT"
] | null | null | null | cogs/connect_four/buttons.py | Gumbachi/HallBot | eb779507ffd2f17b7f9776c3dda2a55de34cae6e | [
"MIT"
] | null | null | null | """Module holds buttons for connect four."""
import discord
from discord.enums import ButtonStyle
from discord.ui import Button
class Emoji:
RIGHT = "▶️"
LEFT = "◀️"
BIGLEFT = "⏪"
BIGRIGHT = "⏩"
SUBMIT = "✅"
class RightButton(Button):
def __init__(self, game):
super().__init__(emoji=... | 28.7 | 70 | 0.662456 | 276 | 2,296 | 5.326087 | 0.228261 | 0.152381 | 0.085714 | 0.134694 | 0.738776 | 0.737415 | 0.737415 | 0.737415 | 0.737415 | 0.565306 | 0 | 0.004522 | 0.22953 | 2,296 | 79 | 71 | 29.063291 | 0.822499 | 0.027003 | 0 | 0.517857 | 0 | 0 | 0.003142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.053571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
5a27afa28c35dce754027e37c079003105cad2c6 | 23 | py | Python | trimesh/version.py | carolina-mesquita-hp/trimesh | 90af69803958bdffee55a7fa3f43bdadfac95415 | [
"MIT"
] | null | null | null | trimesh/version.py | carolina-mesquita-hp/trimesh | 90af69803958bdffee55a7fa3f43bdadfac95415 | [
"MIT"
] | null | null | null | trimesh/version.py | carolina-mesquita-hp/trimesh | 90af69803958bdffee55a7fa3f43bdadfac95415 | [
"MIT"
] | null | null | null | __version__ = '3.8.11'
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5a3a5579128f977cdcd0b197818631bfffc9f348 | 26 | py | Python | neo/__init__.py | nunojusto/neo-python | 1f54bca9d14fa547290f278f0539a4d4b0c13195 | [
"MIT"
] | null | null | null | neo/__init__.py | nunojusto/neo-python | 1f54bca9d14fa547290f278f0539a4d4b0c13195 | [
"MIT"
] | null | null | null | neo/__init__.py | nunojusto/neo-python | 1f54bca9d14fa547290f278f0539a4d4b0c13195 | [
"MIT"
] | null | null | null | __version__ = '0.7.9-dev'
| 13 | 25 | 0.653846 | 5 | 26 | 2.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5a4aaa71df111c41cf05bca7a92cd681604282e7 | 2,410 | py | Python | src/metamodels/troll_rng.py | VivaLaPanda/bayeslite-server | a6056a7cc2ea77c5b6d818d46ae3c574a9fd5a88 | [
"Apache-2.0"
] | 1 | 2019-10-31T04:03:38.000Z | 2019-10-31T04:03:38.000Z | src/metamodels/troll_rng.py | VivaLaPanda/bayeslite-server | a6056a7cc2ea77c5b6d818d46ae3c574a9fd5a88 | [
"Apache-2.0"
] | null | null | null | src/metamodels/troll_rng.py | VivaLaPanda/bayeslite-server | a6056a7cc2ea77c5b6d818d46ae3c574a9fd5a88 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# 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/LICENS... | 36.515152 | 76 | 0.663485 | 318 | 2,410 | 4.924528 | 0.490566 | 0.03129 | 0.049808 | 0.068966 | 0.175607 | 0.148787 | 0.068966 | 0.068966 | 0.068966 | 0 | 0 | 0.015226 | 0.236929 | 2,410 | 65 | 77 | 37.076923 | 0.836324 | 0.461411 | 0 | 0.068966 | 0 | 0 | 0.089825 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.413793 | false | 0.275862 | 0.034483 | 0.068966 | 0.62069 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
5a539efadb82ab5bc90c66e8927c2d8d67cc6778 | 2,066 | py | Python | encodings/mac_farsi.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | 1 | 2020-03-12T16:44:10.000Z | 2020-03-12T16:44:10.000Z | encodings/mac_farsi.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | encodings/mac_farsi.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: encodings.mac_farsi
import codecs
class Codec(codecs.Codec):
def encode(self, input, errors='strict'):
return codecs.charm... | 50.390244 | 823 | 0.75605 | 294 | 2,066 | 5.261905 | 0.666667 | 0.038785 | 0.049127 | 0.023271 | 0.129282 | 0.10084 | 0.10084 | 0 | 0 | 0 | 0 | 0.198417 | 0.082769 | 2,066 | 41 | 824 | 50.390244 | 0.617942 | 0.094385 | 0 | 0.1 | 0 | 0.1 | 0.313337 | 0.297804 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.1 | 0.05 | 0.25 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
5a7da4057286feb7bb84f5d0c8b296070337ad84 | 24 | py | Python | php_tc.py | akshatvg/So-Many-Languages | 7dc1aa59c2798e4d4ae77cde818dd45e9e93399e | [
"MIT"
] | 7 | 2019-09-07T03:36:19.000Z | 2021-02-21T20:57:24.000Z | php_tc.py | Nirmitjatana/So-Many-Languages | 82c62082aab8c69c26a5e9a7e4f687f3ecc5cbf0 | [
"MIT"
] | 6 | 2020-03-23T08:45:28.000Z | 2020-08-11T02:27:32.000Z | php_tc.py | Nirmitjatana/So-Many-Languages | 82c62082aab8c69c26a5e9a7e4f687f3ecc5cbf0 | [
"MIT"
] | 6 | 2019-09-08T12:28:58.000Z | 2020-10-09T05:18:13.000Z | n= input()
print('hey')
| 8 | 12 | 0.583333 | 4 | 24 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 2 | 13 | 12 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ce706378e6f944c4f5daa17d147fb4a04e3d6119 | 105 | py | Python | scripts/config.py | ekungurov/devops-school-website-v1 | 72ce08d3c928cb1413b3deaa607692ab7c536e6b | [
"MIT"
] | null | null | null | scripts/config.py | ekungurov/devops-school-website-v1 | 72ce08d3c928cb1413b3deaa607692ab7c536e6b | [
"MIT"
] | null | null | null | scripts/config.py | ekungurov/devops-school-website-v1 | 72ce08d3c928cb1413b3deaa607692ab7c536e6b | [
"MIT"
] | null | null | null | DB_HOSTNAME = "localhost"
DB_LOGIN = "db_login"
DB_PASSWORD = "some_secret_password"
DB_NAME = "db_name"
| 21 | 36 | 0.771429 | 16 | 105 | 4.5625 | 0.5 | 0.191781 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 105 | 4 | 37 | 26.25 | 0.784946 | 0 | 0 | 0 | 0 | 0 | 0.419048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ce94dc507341659dacff3113d79fb923b468fceb | 108 | py | Python | temp.py | UTCSheffield/PiTemp | a84f72569c8686ff6c2153a1b6fa331183693048 | [
"MIT"
] | null | null | null | temp.py | UTCSheffield/PiTemp | a84f72569c8686ff6c2153a1b6fa331183693048 | [
"MIT"
] | 8 | 2018-05-02T11:26:30.000Z | 2018-05-09T10:58:54.000Z | temp.py | UTCSheffield/PiTemp | a84f72569c8686ff6c2153a1b6fa331183693048 | [
"MIT"
] | null | null | null | from envirophat import weather
import time
while True:
print(weather.temperature())
time.sleep(15)
| 15.428571 | 32 | 0.740741 | 14 | 108 | 5.714286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.175926 | 108 | 6 | 33 | 18 | 0.876404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ceb235b389f2033eda5d59eb8440bb234b7e8ef2 | 14 | py | Python | Genetic Algorithm/genetic_algorithm.py | armandwayoff/Graph-Optimization | 9a7472d023935a49e270f1d1d7191af26ca6ffe9 | [
"MIT"
] | 1 | 2021-12-07T18:03:27.000Z | 2021-12-07T18:03:27.000Z | Genetic Algorithm/genetic_algorithm.py | armandwayoff/Graph-Optimization | 9a7472d023935a49e270f1d1d7191af26ca6ffe9 | [
"MIT"
] | null | null | null | Genetic Algorithm/genetic_algorithm.py | armandwayoff/Graph-Optimization | 9a7472d023935a49e270f1d1d7191af26ca6ffe9 | [
"MIT"
] | null | null | null | # to complete
| 7 | 13 | 0.714286 | 2 | 14 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 14 | 1 | 14 | 14 | 0.909091 | 0.785714 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cec5e6b740bb52f8bfb38b02fa1598024af1c53f | 254 | py | Python | server/service/slack/workflow/helper.py | EtienneTurc/IChooseYou | 9ea7767b793ba6ef389f7cc806a02db2e1434c70 | [
"MIT"
] | 4 | 2022-01-10T10:04:12.000Z | 2022-01-10T18:05:48.000Z | server/service/slack/workflow/helper.py | EtienneTurc/IChooseYou | 9ea7767b793ba6ef389f7cc806a02db2e1434c70 | [
"MIT"
] | null | null | null | server/service/slack/workflow/helper.py | EtienneTurc/IChooseYou | 9ea7767b793ba6ef389f7cc806a02db2e1434c70 | [
"MIT"
] | null | null | null | from server.service.slack.workflow.enum import OutputVariable
def create_select_item_name(index: int) -> str:
return f"{OutputVariable.SELECTED_ITEM.value}_{index}"
def create_value_dict(value: any) -> dict[str, any]:
return {"value": value}
| 25.4 | 61 | 0.748031 | 35 | 254 | 5.228571 | 0.628571 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125984 | 254 | 9 | 62 | 28.222222 | 0.824324 | 0 | 0 | 0 | 0 | 0 | 0.192913 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0c66a2d3f85e6730dba8436522307c43ba5009c3 | 2,090 | py | Python | test_WiFiClientSecure/test_tenki.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | test_WiFiClientSecure/test_tenki.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | 1 | 2022-01-19T00:16:02.000Z | 2022-01-26T03:43:34.000Z | test_WiFiClientSecure/test_tenki.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | from wifi_connect import wifi_connect
from wio_terminal_rtl.WiFiClientSecure import WiFiClientSecure
from wio_terminal_rtl.rpc import ssl
wifi_connect()
c = WiFiClientSecure()
c.rootCA = """-----BEGIN CERTIFICATE-----
MIIEsDCCA5igAwIBAgIQd70OB0LV2enQSdd00CpvmjANBgkqhkiG9w0BAQsFADBM
MSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3Qg... | 43.541667 | 64 | 0.903828 | 115 | 2,090 | 16.365217 | 0.747826 | 0.017535 | 0.01594 | 0.019129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112444 | 0.042584 | 2,090 | 47 | 65 | 44.468085 | 0.828086 | 0 | 0 | 0.046512 | 0 | 0 | 0.84067 | 0.780383 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.069767 | 0.023256 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c701a73487c810b67b79f6b0c9d9613598c12d8 | 201 | py | Python | models/__init__.py | bckim92/sequential-knowledge-transformer | 1e9c47bb61291a0b15e5b1e6901eafebc73db8db | [
"MIT"
] | 135 | 2020-01-03T08:35:35.000Z | 2022-03-28T03:19:55.000Z | models/__init__.py | bckim92/sequential-knowledge-transformer | 1e9c47bb61291a0b15e5b1e6901eafebc73db8db | [
"MIT"
] | 7 | 2020-01-17T16:02:28.000Z | 2021-02-02T14:11:19.000Z | models/__init__.py | bckim92/sequential-knowledge-transformer | 1e9c47bb61291a0b15e5b1e6901eafebc73db8db | [
"MIT"
] | 12 | 2020-01-29T12:17:07.000Z | 2022-02-24T16:18:44.000Z | from models.base import BaseModel
from models.sequential_knowledge_transformer import SequentialKnowledgeTransformer
MODELS = {
'SequentialKnowledgeTransformer': SequentialKnowledgeTransformer,
}
| 28.714286 | 82 | 0.860697 | 15 | 201 | 11.4 | 0.6 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094527 | 201 | 6 | 83 | 33.5 | 0.93956 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0c7623ef1e018b4dccc74df1960a3250f22f08fa | 89 | py | Python | Newline.py | mcjohnchristopher/Python_Samples | 738f3b7d9baa7f4e396647f380118eba66ea645c | [
"CC0-1.0"
] | null | null | null | Newline.py | mcjohnchristopher/Python_Samples | 738f3b7d9baa7f4e396647f380118eba66ea645c | [
"CC0-1.0"
] | null | null | null | Newline.py | mcjohnchristopher/Python_Samples | 738f3b7d9baa7f4e396647f380118eba66ea645c | [
"CC0-1.0"
] | null | null | null | Stuff = 'Hello\nWorld'
stuff
print stuff
stuff = 'X\nY'
print stuff
len(stuff)
| 9.888889 | 23 | 0.640449 | 13 | 89 | 4.384615 | 0.538462 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247191 | 89 | 8 | 24 | 11.125 | 0.850746 | 0 | 0 | 0.333333 | 0 | 0 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ca086bd28170a535a3dbd9141d7e087d3a2f3f3 | 377 | bzl | Python | cargo/defs.bzl | yesudeep/rules_rust | cdca6ed5eb9609cbc3f6b5d8f760e46e3b0596a2 | [
"Apache-2.0"
] | 349 | 2016-03-15T20:38:00.000Z | 2022-03-28T07:03:02.000Z | cargo/defs.bzl | yesudeep/rules_rust | cdca6ed5eb9609cbc3f6b5d8f760e46e3b0596a2 | [
"Apache-2.0"
] | 872 | 2016-03-18T06:40:26.000Z | 2022-03-31T16:04:04.000Z | cargo/defs.bzl | yesudeep/rules_rust | cdca6ed5eb9609cbc3f6b5d8f760e46e3b0596a2 | [
"Apache-2.0"
] | 231 | 2016-03-16T11:34:47.000Z | 2022-03-25T23:01:35.000Z | """Common definitions for the `@rules_rust//cargo` package"""
load(":cargo_bootstrap.bzl", _cargo_bootstrap_repository = "cargo_bootstrap_repository", _cargo_env = "cargo_env")
load(":cargo_build_script.bzl", _cargo_build_script = "cargo_build_script")
cargo_bootstrap_repository = _cargo_bootstrap_repository
cargo_en... | 37.7 | 114 | 0.822281 | 49 | 377 | 5.714286 | 0.306122 | 0.25 | 0.285714 | 0.414286 | 0.685714 | 0.685714 | 0.457143 | 0.457143 | 0.457143 | 0.457143 | 0 | 0 | 0.076923 | 377 | 9 | 115 | 41.888889 | 0.804598 | 0.145889 | 0 | 0 | 0 | 0 | 0.303797 | 0.155063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ccbfa3e52248109ec725450a3d0fb66bbd972b6 | 986 | py | Python | gameComponents/weaponChoose.py | Chavezgabo11/Rock-Paper-Scissors-Game | 56c29db7b553e63cbf2785a83aae6c088e6f86a5 | [
"Unlicense"
] | null | null | null | gameComponents/weaponChoose.py | Chavezgabo11/Rock-Paper-Scissors-Game | 56c29db7b553e63cbf2785a83aae6c088e6f86a5 | [
"Unlicense"
] | null | null | null | gameComponents/weaponChoose.py | Chavezgabo11/Rock-Paper-Scissors-Game | 56c29db7b553e63cbf2785a83aae6c088e6f86a5 | [
"Unlicense"
] | null | null | null | from gameComponents import gameVars
def weapon():
if gameVars.computer_choice == gameVars.player_choice:
print("tie")
elif gameVars.computer_choice == "rock":
if gameVars.player_choice == "scissors":
gameVars.player_lives -= 1
print("you lose! player lives:", gameVars.pl... | 37.923077 | 67 | 0.593306 | 105 | 986 | 5.409524 | 0.209524 | 0.246479 | 0.200704 | 0.137324 | 0.614437 | 0.614437 | 0.614437 | 0.614437 | 0.614437 | 0.614437 | 0 | 0.008658 | 0.29716 | 986 | 26 | 68 | 37.923077 | 0.810967 | 0 | 0 | 0.6 | 0 | 0 | 0.131712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | true | 0 | 0.04 | 0 | 0.08 | 0.28 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0cdba52b2aec708bc1a72ef1393ec1c8e8d3d5e0 | 202 | py | Python | arithmatic.py | ASTYWY/PY | 6d073fb1af67e0cd1bbc39dd586f7239873910bf | [
"MIT"
] | null | null | null | arithmatic.py | ASTYWY/PY | 6d073fb1af67e0cd1bbc39dd586f7239873910bf | [
"MIT"
] | null | null | null | arithmatic.py | ASTYWY/PY | 6d073fb1af67e0cd1bbc39dd586f7239873910bf | [
"MIT"
] | null | null | null | a=float(input("Введите сторону a: "))
b=float(input("Введите сторону b: "))
c=float(input("Введите сторону c: "))
p=(a+b+c) /2
s1=p*(p-a)*(p-b)*(p-c)
s=s1**(0.5)
print("Плошадь треугольника равна: ", s) | 28.857143 | 40 | 0.628713 | 40 | 202 | 3.175 | 0.425 | 0.23622 | 0.401575 | 0.566929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027473 | 0.09901 | 202 | 7 | 40 | 28.857143 | 0.67033 | 0 | 0 | 0 | 0 | 0 | 0.418719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0b543b0da3b0e11c755c6952ff335f1157d45b6a | 165 | py | Python | Week 7/django/bin/django-admin.py | bpgc-cte/python2017 | c1eed0201039c6b4daf857dd1f08c47a7b1e3f45 | [
"MIT"
] | 23 | 2017-09-02T08:15:17.000Z | 2019-11-20T04:30:52.000Z | Week 7/django/bin/django-admin.py | carlosal1015/python2017 | c1eed0201039c6b4daf857dd1f08c47a7b1e3f45 | [
"MIT"
] | 2 | 2017-08-24T06:53:33.000Z | 2017-08-24T06:54:42.000Z | Week 7/django/bin/django-admin.py | bpgc-cte/python2017 | c1eed0201039c6b4daf857dd1f08c47a7b1e3f45 | [
"MIT"
] | 22 | 2017-08-22T08:01:09.000Z | 2019-11-20T04:30:56.000Z | #!/Users/sebastinsanty/Desktop/CS/cte/django/bin/python3.6
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 27.5 | 58 | 0.787879 | 22 | 165 | 5.409091 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.090909 | 165 | 5 | 59 | 33 | 0.78 | 0.345455 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0b858ac57a336f9995b60b57a77138eb9c4f12c3 | 1,270 | py | Python | tools/leetcode.044.Wildcard Matching/leetcode.044.Wildcard Matching.submission5.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.044.Wildcard Matching/leetcode.044.Wildcard Matching.submission5.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.044.Wildcard Matching/leetcode.044.Wildcard Matching.submission5.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @param s, an input string
# @param p, a pattern string
# @return a boolean
def isMatch(self, s, p):
if '*' not in p:
if len(s) != len(p):
return False
else:
for i in range(len(s)):
if s[i] != p[i] and p... | 1,270 | 1,270 | 0.355118 | 131 | 1,270 | 3.389313 | 0.274809 | 0.094595 | 0.087838 | 0.094595 | 0.135135 | 0.135135 | 0.135135 | 0.135135 | 0 | 0 | 0 | 0.050347 | 0.546457 | 1,270 | 1 | 1,270 | 1,270 | 0.720486 | 0.055118 | 0 | 0.297297 | 0 | 0 | 0.005848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0b884ac9defe7c5ae34ac88da7c4f78d79100173 | 106 | py | Python | RiskQuantLib/Set/__init__.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | 1 | 2021-12-29T12:18:45.000Z | 2021-12-29T12:18:45.000Z | RiskQuantLib/Set/__init__.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | null | null | null | RiskQuantLib/Set/__init__.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | 1 | 2021-12-08T02:14:34.000Z | 2021-12-08T02:14:34.000Z | """
This is the automatically built module. Any source code will be replaced
for each building action.
""" | 26.5 | 72 | 0.764151 | 16 | 106 | 5.0625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160377 | 106 | 4 | 73 | 26.5 | 0.910112 | 0.924528 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0b976c0e65730ca8712b0ca38dd5b59042acb45d | 321 | py | Python | study/w3resource/exercises/python-basic/031 - 060/python-basic - 036.py | gustavomarquezinho/python | e36779aa5c4bfaf88c587f05db5bd447fd41e4a2 | [
"MIT"
] | null | null | null | study/w3resource/exercises/python-basic/031 - 060/python-basic - 036.py | gustavomarquezinho/python | e36779aa5c4bfaf88c587f05db5bd447fd41e4a2 | [
"MIT"
] | null | null | null | study/w3resource/exercises/python-basic/031 - 060/python-basic - 036.py | gustavomarquezinho/python | e36779aa5c4bfaf88c587f05db5bd447fd41e4a2 | [
"MIT"
] | null | null | null | # 036 - Write a Python program to add two objects if both objects are an integer type.
def sumInteger(pNum1, pNum2):
if (int(pNum1) != pNum1) or (int(pNum2) != pNum2):
return "Inputs must be integers"
return pNum1 + pNum2
print(sumInteger(10, 20))
print(sumInteger(10.5, 20))
print(sumInteger(10, 20.5)... | 32.1 | 86 | 0.685358 | 50 | 321 | 4.4 | 0.6 | 0.204545 | 0.231818 | 0.172727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0.190031 | 321 | 10 | 87 | 32.1 | 0.75 | 0.261682 | 0 | 0 | 0 | 0 | 0.097458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.428571 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0b9820ad588a613ce4983a334d943c959a69db7b | 798 | py | Python | rsolve/hm/hm.py | thautwarm/python-csp | f1735de5445983532d32bf5508e971455de8e6a4 | [
"MIT"
] | 4 | 2019-09-27T10:53:03.000Z | 2019-09-28T08:25:43.000Z | rsolve/hm/hm.py | thautwarm/python-csp | f1735de5445983532d32bf5508e971455de8e6a4 | [
"MIT"
] | 1 | 2019-10-01T16:00:11.000Z | 2019-10-01T16:00:11.000Z | rsolve/hm/hm.py | thautwarm/python-csp | f1735de5445983532d32bf5508e971455de8e6a4 | [
"MIT"
] | null | null | null | from enum import Enum, auto as _auto
import abc
import typing as t
from dataclasses import dataclass
T = t.TypeVar('T', )
class HMT(t.Generic[T]):
pass
@dataclass(frozen=True, order=True)
class TNom(HMT[T]):
nom:T
pass
@dataclass(frozen=True, order=True)
class TVar(HMT[T]):
i:int
pass
@dat... | 14 | 36 | 0.646617 | 127 | 798 | 4.055118 | 0.307087 | 0.108738 | 0.258252 | 0.312621 | 0.530097 | 0.530097 | 0.530097 | 0.386408 | 0.238835 | 0 | 0 | 0 | 0.199248 | 798 | 56 | 37 | 14.25 | 0.805947 | 0 | 0 | 0.394737 | 0 | 0 | 0.001253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.210526 | 0.105263 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e7f4f64e3aae1a766136704fce7588f40eb5b3c3 | 56,696 | py | Python | unit1-database.py | Jawn-Blue/HTSK-Listening-Practice | ea5e93cc9aff6db0f64f7f6e56a849bde6ccbf46 | [
"MIT"
] | null | null | null | unit1-database.py | Jawn-Blue/HTSK-Listening-Practice | ea5e93cc9aff6db0f64f7f6e56a849bde6ccbf46 | [
"MIT"
] | 3 | 2021-01-27T23:44:07.000Z | 2021-01-31T00:46:04.000Z | unit1-database.py | Jawn-Blue/HTSK-Listening-Practice | ea5e93cc9aff6db0f64f7f6e56a849bde6ccbf46 | [
"MIT"
] | null | null | null | # All text/sentences in this file are copy-pasted from
# the example sentence dictionary included with the Unit 1
# audio files package.
import numpy as np
#class TextTranslation:
# def __init__(self, korean, english):
# self.korean = korean
# self.english = english
#
L7arr = np.array([["나는 집을... | 1,111.686275 | 5,211 | 0.644243 | 10,819 | 56,696 | 3.376652 | 0.210556 | 0.009033 | 0.009197 | 0.007665 | 0.299409 | 0.234972 | 0.177379 | 0.139439 | 0.117431 | 0.100843 | 0 | 0.003306 | 0.189167 | 56,696 | 50 | 5,212 | 1,133.92 | 0.791151 | 0.004268 | 0 | 0 | 0 | 0 | 0.799752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.15 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f002a701c551c450f53e57a7e5daef0c2f3a7a41 | 780 | py | Python | CISSL_cls/lib/datasets/svhn.py | MinsungHyun/Class-Imbalanced-Semi-Supervsied-Learning | fed14a47fa4dda8a72e8f606ad9a21922b4f7ba4 | [
"MIT"
] | 4 | 2021-09-28T09:23:10.000Z | 2022-03-14T11:51:23.000Z | CISSL_cls/lib/datasets/svhn.py | MinsungHyun/Class-Imbalanced-Semi-Supervsied-Learning | fed14a47fa4dda8a72e8f606ad9a21922b4f7ba4 | [
"MIT"
] | null | null | null | CISSL_cls/lib/datasets/svhn.py | MinsungHyun/Class-Imbalanced-Semi-Supervsied-Learning | fed14a47fa4dda8a72e8f606ad9a21922b4f7ba4 | [
"MIT"
] | null | null | null | import numpy as np
import os
class SVHN:
def __init__(self, root, split="l_train"):
self.dataset = np.load(os.path.join(root, "svhn", split+".npy"), allow_pickle=True).item()
def __getitem__(self, idx):
image = self.dataset["images"][idx]
label = self.dataset["labels"][idx]
ima... | 26.896552 | 98 | 0.6 | 103 | 780 | 4.291262 | 0.339806 | 0.223982 | 0.153846 | 0.076923 | 0.615385 | 0.615385 | 0.615385 | 0.615385 | 0.615385 | 0.615385 | 0 | 0.023891 | 0.248718 | 780 | 29 | 99 | 26.896552 | 0.730375 | 0 | 0 | 0.636364 | 0 | 0 | 0.065301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f018a0a26815a77b23f1b3f80f0048c8d4c38508 | 408 | py | Python | envoy.distribution.repo/envoy/distribution/repo/cmd.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | 1 | 2021-12-09T19:24:48.000Z | 2021-12-09T19:24:48.000Z | envoy.distribution.repo/envoy/distribution/repo/cmd.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | 392 | 2021-08-24T15:55:32.000Z | 2022-03-28T14:26:22.000Z | envoy.distribution.repo/envoy/distribution/repo/cmd.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | 3 | 2021-10-06T13:43:11.000Z | 2021-11-29T13:48:56.000Z |
import sys
from typing import Optional
from .deb import DebRepoManager
from .runner import RepoBuildingRunner
def _register_repo_types() -> None:
RepoBuildingRunner.register_repo_type("deb", DebRepoManager)
def main(*args: str) -> Optional[int]:
_register_repo_types()
return RepoBuildingRunner(*args)(... | 17 | 64 | 0.718137 | 49 | 408 | 5.653061 | 0.530612 | 0.129964 | 0.122744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.161765 | 408 | 23 | 65 | 17.73913 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | true | 0 | 0.307692 | 0 | 0.615385 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f0227cd04c5519d0537c492bc589829c9ae0b2da | 1,150 | py | Python | etl/lib/base/scraper.py | Maps-for-Change/events-etl | d803c53f3215fbdb917048d560704244648bc668 | [
"MIT"
] | null | null | null | etl/lib/base/scraper.py | Maps-for-Change/events-etl | d803c53f3215fbdb917048d560704244648bc668 | [
"MIT"
] | 3 | 2017-04-15T05:56:12.000Z | 2017-04-17T23:45:56.000Z | etl/lib/base/scraper.py | Maps-for-Change/events-etl | d803c53f3215fbdb917048d560704244648bc668 | [
"MIT"
] | 1 | 2021-07-09T15:24:19.000Z | 2021-07-09T15:24:19.000Z | # encoding=utf8
import abc
class Scraper(object):
__metaclass__ = abc.ABCMeta
def __init__(self):
self.minified_data = None
self.osdified_data = None
def get_data(self):
return self.minified_data
def get_osdi_data(self):
return self.osdified_data
... | 20.535714 | 51 | 0.546087 | 112 | 1,150 | 5.473214 | 0.455357 | 0.114193 | 0.228385 | 0.252855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001408 | 0.382609 | 1,150 | 55 | 52 | 20.909091 | 0.861972 | 0.244348 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0.08 | 0.52 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f02a7ce465175476a74a0b1723a2385bed9dc276 | 107,687 | py | Python | UI/img_rc.py | BeiChenYx/NetDebug | 55986b59d56bce8c8e02cc764c0fd4233a03be22 | [
"MIT"
] | 9 | 2019-01-12T15:43:21.000Z | 2022-02-17T07:15:04.000Z | UI/img_rc.py | BeiChenYx/NetDebug | 55986b59d56bce8c8e02cc764c0fd4233a03be22 | [
"MIT"
] | null | null | null | UI/img_rc.py | BeiChenYx/NetDebug | 55986b59d56bce8c8e02cc764c0fd4233a03be22 | [
"MIT"
] | 1 | 2020-07-18T14:33:19.000Z | 2020-07-18T14:33:19.000Z | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.11.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x02\x35\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\xc8\x... | 61.818025 | 129 | 0.726216 | 25,985 | 107,687 | 3.00812 | 0.011815 | 0.103626 | 0.124581 | 0.14001 | 0.525689 | 0.515864 | 0.512512 | 0.511706 | 0.50948 | 0.50403 | 0 | 0.338529 | 0.016984 | 107,687 | 1,741 | 130 | 61.853532 | 0.399875 | 0.001412 | 0 | 0.426667 | 0 | 0.923478 | 0.000009 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.001159 | false | 0 | 0.00058 | 0 | 0.001739 | 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 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f0476f11dd24db6bf1c30cb78ed60d8b9e0b5dc2 | 3,249 | py | Python | xmantissa/test/historic/stub_website5to6.py | jonathanj/mantissa | 53e5502aba23ce99be78b27f923a276593033fe8 | [
"MIT"
] | 6 | 2016-02-17T15:04:53.000Z | 2021-08-20T09:44:10.000Z | xmantissa/test/historic/stub_website5to6.py | jonathanj/mantissa | 53e5502aba23ce99be78b27f923a276593033fe8 | [
"MIT"
] | 62 | 2015-02-04T23:40:55.000Z | 2021-02-18T19:56:02.000Z | xmantissa/test/historic/stub_website5to6.py | jonathanj/mantissa | 53e5502aba23ce99be78b27f923a276593033fe8 | [
"MIT"
] | 8 | 2015-11-15T17:26:42.000Z | 2020-12-02T06:36:52.000Z | # -*- test-case-name: xmantissa.test.historic.test_website5to6 -*-
from axiom.test.historic.stubloader import saveStub
from axiom.plugins.mantissacmd import Mantissa
from axiom.userbase import LoginSystem
from axiom.dependency import installOn
from xmantissa.port import TCPPort, SSLPort
from xmantissa.website import... | 49.227273 | 72 | 0.805171 | 236 | 3,249 | 11.04661 | 0.567797 | 0.013809 | 0.009973 | 0.01074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088721 | 0.104955 | 3,249 | 65 | 73 | 49.984615 | 0.807772 | 0.038473 | 0 | 0 | 0 | 0 | 0.623552 | 0.566924 | 0 | 1 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.109091 | 0 | 0.127273 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f06c2e616a4a7976d8177957898a0dab76a161e0 | 69 | py | Python | geometry/utilities/test/__init__.py | fR0zTy/geometry | c8cbd3671fd8ac5e86150cdeb297b584a63a9760 | [
"MIT"
] | null | null | null | geometry/utilities/test/__init__.py | fR0zTy/geometry | c8cbd3671fd8ac5e86150cdeb297b584a63a9760 | [
"MIT"
] | null | null | null | geometry/utilities/test/__init__.py | fR0zTy/geometry | c8cbd3671fd8ac5e86150cdeb297b584a63a9760 | [
"MIT"
] | null | null | null | # -*- coding : utf-8 -*-
# init in geometry.utilities.test package
| 13.8 | 41 | 0.637681 | 9 | 69 | 4.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.188406 | 69 | 4 | 42 | 17.25 | 0.767857 | 0.898551 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f0803fb3f2b9c4e6e18b9ba1351f9b64c0418cad | 4,822 | py | Python | tests/verification/test_checklib.py | stklik/CREST | 7fd97c50b0c6c923e1c477105bed4f0ea032bb99 | [
"MIT"
] | 14 | 2019-08-06T10:17:46.000Z | 2022-03-13T12:50:59.000Z | tests/verification/test_checklib.py | stklik/CREST | 7fd97c50b0c6c923e1c477105bed4f0ea032bb99 | [
"MIT"
] | 16 | 2018-01-20T00:54:24.000Z | 2019-07-24T15:43:42.000Z | tests/verification/test_checklib.py | stklik/CREST | 7fd97c50b0c6c923e1c477105bed4f0ea032bb99 | [
"MIT"
] | 1 | 2021-02-01T15:33:24.000Z | 2021-02-01T15:33:24.000Z | import crestdsl.model as crest
import unittest
from crestdsl.verification import check
class TestEntity(crest.Entity):
res = crest.Resource("float-resource", crest.Types.REAL)
listres = crest.Resource("list-res", ["first", "TWO", "3.14abc"])
port = crest.Local(resource=res, value=314.13)
port2 = crest... | 29.950311 | 69 | 0.580257 | 585 | 4,822 | 4.649573 | 0.107692 | 0.127941 | 0.132353 | 0.105882 | 0.842279 | 0.815074 | 0.790809 | 0.701838 | 0.580147 | 0.486765 | 0 | 0.032839 | 0.286396 | 4,822 | 161 | 70 | 29.950311 | 0.757629 | 0 | 0 | 0.511628 | 0 | 0 | 0.017066 | 0 | 0 | 0 | 0 | 0 | 0.263566 | 1 | 0.155039 | false | 0 | 0.023256 | 0 | 0.263566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
b2de3bd58ebdb5fad2bffedf481f1750de79f5f5 | 432 | py | Python | lab_3/task3_utils.py | balolam/university-mpi-python | 92485b6d402c1ed91b6ff08191d34d83dc43717f | [
"Apache-2.0"
] | null | null | null | lab_3/task3_utils.py | balolam/university-mpi-python | 92485b6d402c1ed91b6ff08191d34d83dc43717f | [
"Apache-2.0"
] | null | null | null | lab_3/task3_utils.py | balolam/university-mpi-python | 92485b6d402c1ed91b6ff08191d34d83dc43717f | [
"Apache-2.0"
] | null | null | null | import numpy as np
# noinspection PyShadowingNames
def sum_els_python(arr):
length = len(arr)
if length > 0:
sum_els = 0
index = 1
while index < length:
sum_els = sum_els + arr[index]
return sum_els
else:
return 0
# noinspection PyShadowingNames
def... | 17.28 | 42 | 0.645833 | 59 | 432 | 4.542373 | 0.372881 | 0.179104 | 0.347015 | 0.380597 | 0.414179 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.282407 | 432 | 25 | 43 | 17.28 | 0.851613 | 0.206019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
b2e2d4e8730d075ab690727751a7704dc934dd92 | 228 | py | Python | integration_tests/util.py | janneronkko/vcsver | 77020e296a8239ee142213642504c03b9064653f | [
"MIT"
] | 1 | 2020-12-23T19:22:51.000Z | 2020-12-23T19:22:51.000Z | integration_tests/util.py | janneronkko/vcsver | 77020e296a8239ee142213642504c03b9064653f | [
"MIT"
] | null | null | null | integration_tests/util.py | janneronkko/vcsver | 77020e296a8239ee142213642504c03b9064653f | [
"MIT"
] | null | null | null | import subprocess
def run(*cmd, **kwargs):
kwargs.setdefault('stdout', subprocess.DEVNULL)
kwargs.setdefault('stderr', subprocess.PIPE)
return subprocess.run(cmd, **kwargs) # pylint: disable=subprocess-run-check
| 25.333333 | 80 | 0.723684 | 26 | 228 | 6.346154 | 0.576923 | 0.072727 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135965 | 228 | 8 | 81 | 28.5 | 0.837563 | 0.157895 | 0 | 0 | 0 | 0 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6521d3f658a75ab0587bd56761deae48e64f5b7d | 208 | py | Python | bilanci_project/shorturls/models.py | DeppSRL/open_bilanci | a6d94cb5181fddd420c70410cc5271aa9c62bbac | [
"MIT"
] | 6 | 2016-09-29T11:08:33.000Z | 2020-06-24T09:07:34.000Z | bilanci_project/shorturls/models.py | Mavks25/open_bilanci | a6d94cb5181fddd420c70410cc5271aa9c62bbac | [
"MIT"
] | 1 | 2017-07-05T14:10:38.000Z | 2017-07-05T14:10:38.000Z | bilanci_project/shorturls/models.py | Mavks25/open_bilanci | a6d94cb5181fddd420c70410cc5271aa9c62bbac | [
"MIT"
] | 7 | 2016-06-08T10:11:36.000Z | 2022-02-05T14:26:00.000Z | __author__ = 'stefano'
from django.db import models
class ShortUrl(models.Model):
long_url = models.TextField(max_length=3000, null=False)
short_url = models.TextField(max_length=1000, null=False)
| 23.111111 | 61 | 0.759615 | 29 | 208 | 5.172414 | 0.689655 | 0.12 | 0.24 | 0.28 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.134615 | 208 | 8 | 62 | 26 | 0.788889 | 0 | 0 | 0 | 0 | 0 | 0.033816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
652ea65d5fdc8f7e707b5346fd58c43a5dfc5106 | 172 | py | Python | titanscraper/__init__.py | emileKing/titanscraper | 639d6d1a97a5c55ef2c70b595a93c3dea8d19461 | [
"MIT"
] | null | null | null | titanscraper/__init__.py | emileKing/titanscraper | 639d6d1a97a5c55ef2c70b595a93c3dea8d19461 | [
"MIT"
] | null | null | null | titanscraper/__init__.py | emileKing/titanscraper | 639d6d1a97a5c55ef2c70b595a93c3dea8d19461 | [
"MIT"
] | null | null | null | """
TITANSCRAPER
AUTHOR: Emile DJIDA GONGDEBIYA
COMPANY: TITANWARE Technology
VERSION: 0.0.21
LICENCE: MIT
"""
__version__ = "0.0.21"
from .titanscraper import TitanScraper | 19.111111 | 38 | 0.77907 | 22 | 172 | 5.909091 | 0.681818 | 0.123077 | 0.138462 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.116279 | 172 | 9 | 38 | 19.111111 | 0.802632 | 0.593023 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e8e4853f1ac875eada525ea06f6402aa30a34681 | 334 | py | Python | vvspy/obj/__init__.py | zaanposni/vvs | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 13 | 2019-12-02T12:47:05.000Z | 2020-01-29T09:56:38.000Z | vvspy/obj/__init__.py | zaanposni/vvspy | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 16 | 2019-12-01T19:20:06.000Z | 2019-12-21T11:50:00.000Z | vvspy/obj/__init__.py | FI18-Trainees/vvs-py | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 2 | 2021-01-30T18:58:33.000Z | 2021-08-30T07:07:22.000Z | from .arrival import Arrival
from .departure import Departure
from .arrival import Arrival
from .trip import Trip
from .serving_line import ServingLine
from .line_operator import LineOperator
from .connection import Connection
from .origin import Origin
from .destination import Destination
from .transportation import T... | 30.363636 | 42 | 0.850299 | 42 | 334 | 6.714286 | 0.333333 | 0.078014 | 0.120567 | 0.170213 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11976 | 334 | 10 | 43 | 33.4 | 0.959184 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e8ea3d5cd9306fba32826520339f2ffcda53d7cb | 149 | py | Python | loop_break.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | loop_break.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | loop_break.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | # 在while循环中,break的作用也是一样的。
for i in range(1, 6):
print 'i =', i,
print 'Hello, how',
if i == 3:
break
print 'are you today?'
| 18.625 | 26 | 0.536913 | 22 | 149 | 3.636364 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.315436 | 149 | 7 | 27 | 21.285714 | 0.754902 | 0.161074 | 0 | 0 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
3364b3c34418b8de4ab932ee92d0994c01ae4166 | 45 | py | Python | maxindex.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | 1 | 2017-07-11T05:02:12.000Z | 2017-07-11T05:02:12.000Z | maxindex.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | null | null | null | maxindex.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | null | null | null | a = 'abab'
b = 'aba'
if b in a:
print b
| 9 | 11 | 0.466667 | 10 | 45 | 2.1 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.377778 | 45 | 4 | 12 | 11.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
682ab3726832c1b37fe5b4a38f3288edb515e9ad | 341 | py | Python | 2021/06_FileIO/Code_Ex_1.py | lfrommelt/monty | e8cabf0e4ac01ab3d97eecee5e699139076d6544 | [
"MIT"
] | null | null | null | 2021/06_FileIO/Code_Ex_1.py | lfrommelt/monty | e8cabf0e4ac01ab3d97eecee5e699139076d6544 | [
"MIT"
] | null | null | null | 2021/06_FileIO/Code_Ex_1.py | lfrommelt/monty | e8cabf0e4ac01ab3d97eecee5e699139076d6544 | [
"MIT"
] | 1 | 2020-03-20T14:26:28.000Z | 2020-03-20T14:26:28.000Z | fun_fact = "This string uses words\nand lines\n"
# the string variable fun_fact
print(fun_fact)
print(type(fun_fact))
# using strip
print(fun_fact.strip())
print(type(fun_fact.strip()))
# using split
print(fun_fact.split())
print(type(fun_fact.split()))
# using splitlines
print(fun_fact.splitlines())
print(type(fun... | 18.944444 | 48 | 0.753666 | 54 | 341 | 4.574074 | 0.314815 | 0.283401 | 0.194332 | 0.259109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 341 | 17 | 49 | 20.058824 | 0.801948 | 0.202346 | 0 | 0 | 0 | 0 | 0.131086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.888889 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
686211567cfa275c39866be1b325af1571895f8c | 97 | py | Python | apps/static_page/apps.py | agiledesign2/base-rent | 071c2122cea0501c75f4afd17ea1bbd944694f85 | [
"MIT"
] | null | null | null | apps/static_page/apps.py | agiledesign2/base-rent | 071c2122cea0501c75f4afd17ea1bbd944694f85 | [
"MIT"
] | null | null | null | apps/static_page/apps.py | agiledesign2/base-rent | 071c2122cea0501c75f4afd17ea1bbd944694f85 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class Static_pageConfig(AppConfig):
name = 'static_page'
| 16.166667 | 35 | 0.773196 | 12 | 97 | 6.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.890244 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
68695eea6ece834b0977adeae395013b43373888 | 164 | py | Python | Group/admin.py | deanbi/TasKing | c29eb5f24eacd5c7933a471f04e7fc6f1c798240 | [
"MIT"
] | null | null | null | Group/admin.py | deanbi/TasKing | c29eb5f24eacd5c7933a471f04e7fc6f1c798240 | [
"MIT"
] | null | null | null | Group/admin.py | deanbi/TasKing | c29eb5f24eacd5c7933a471f04e7fc6f1c798240 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Group
@admin.register(Group)
class GroupAdminConfig(admin.ModelAdmin):
list_display = ('creator','prize')
| 23.428571 | 41 | 0.77439 | 20 | 164 | 6.3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115854 | 164 | 6 | 42 | 27.333333 | 0.868966 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
68815cea067b478a918240b10885ba05f4f6b3a9 | 6,540 | py | Python | tests/test_rainfl.py | hustjinghu/metal-fatigue | 29bc3f7079b489314d740bfa55497aa53a376964 | [
"MIT"
] | null | null | null | tests/test_rainfl.py | hustjinghu/metal-fatigue | 29bc3f7079b489314d740bfa55497aa53a376964 | [
"MIT"
] | null | null | null | tests/test_rainfl.py | hustjinghu/metal-fatigue | 29bc3f7079b489314d740bfa55497aa53a376964 | [
"MIT"
] | 1 | 2021-07-18T03:23:40.000Z | 2021-07-18T03:23:40.000Z | import pytest
import sys
sys.path.append("D:\\alexa\\Documents\\metal-fatigue")
import numpy as np
from metal_fatigue import rainfl
def test_binned():
# init bin
values = np.array([[1, 2, 3], [4, 5, 6]])
binsize = np.array([0.5, 10])
minedge = np.array([-1.19, 20])
numbins = np.array([2, 3])
b... | 36.949153 | 95 | 0.671101 | 992 | 6,540 | 4.290323 | 0.104839 | 0.120536 | 0.200893 | 0.308036 | 0.712406 | 0.679276 | 0.668938 | 0.648731 | 0.630404 | 0.62594 | 0 | 0.049483 | 0.171865 | 6,540 | 176 | 96 | 37.159091 | 0.736337 | 0.005963 | 0 | 0.550336 | 0 | 0 | 0.013545 | 0.005387 | 0 | 0 | 0 | 0 | 0.416107 | 1 | 0.067114 | false | 0 | 0.026846 | 0 | 0.09396 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6884d1f24b8916b7149ac2fea7212520c8607244 | 206 | py | Python | Exercicios/005-antecessor-sucessor.py | fernandaveiga/Curso-em-Video | ea8956fce6e16cbaa8a83106ffa45071cbdc617e | [
"MIT"
] | null | null | null | Exercicios/005-antecessor-sucessor.py | fernandaveiga/Curso-em-Video | ea8956fce6e16cbaa8a83106ffa45071cbdc617e | [
"MIT"
] | null | null | null | Exercicios/005-antecessor-sucessor.py | fernandaveiga/Curso-em-Video | ea8956fce6e16cbaa8a83106ffa45071cbdc617e | [
"MIT"
] | null | null | null | # 005 - Faça um programa que leia um número inteiro e mostre na tela o seu sucessor e seu antecessor:
num = int(input('Digite um número: '))
print(f'O antecessor de {num} é {num-1} e o sucessor é {num+1}') | 51.5 | 101 | 0.703883 | 40 | 206 | 3.625 | 0.625 | 0.110345 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029762 | 0.184466 | 206 | 4 | 102 | 51.5 | 0.833333 | 0.480583 | 0 | 0 | 0 | 0.5 | 0.679245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
688bf2cbda2cbb29740e469320cce1c5b51ca806 | 67 | py | Python | WalletTransition/__init__.py | MasoudHeidary/django-telegram-bot-trade | 7032428e5e04cb02bb081dcc4d86a585a773ada0 | [
"MIT"
] | null | null | null | WalletTransition/__init__.py | MasoudHeidary/django-telegram-bot-trade | 7032428e5e04cb02bb081dcc4d86a585a773ada0 | [
"MIT"
] | null | null | null | WalletTransition/__init__.py | MasoudHeidary/django-telegram-bot-trade | 7032428e5e04cb02bb081dcc4d86a585a773ada0 | [
"MIT"
] | null | null | null | default_app_config = 'WalletTransition.apps.WallettransitionConfig' | 67 | 67 | 0.895522 | 6 | 67 | 9.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 67 | 1 | 67 | 67 | 0.892308 | 0 | 0 | 0 | 0 | 0 | 0.647059 | 0.647059 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d799c91469a01ab283047e4b60f84f226de1975f | 1,482 | py | Python | waterpump/pumps/mig_backup/0031_auto_20190816_2301.py | hwan27/WATERPUMP_django | dcc6bf27ae3c0e6ca851e854e51fc512f96eab56 | [
"MIT"
] | null | null | null | waterpump/pumps/mig_backup/0031_auto_20190816_2301.py | hwan27/WATERPUMP_django | dcc6bf27ae3c0e6ca851e854e51fc512f96eab56 | [
"MIT"
] | null | null | null | waterpump/pumps/mig_backup/0031_auto_20190816_2301.py | hwan27/WATERPUMP_django | dcc6bf27ae3c0e6ca851e854e51fc512f96eab56 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.10 on 2019-08-16 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pumps', '0030_auto_20190816_2256'),
]
operations = [
migrations.AddField(
model_name='sector',
name='pump_1_operati... | 29.64 | 63 | 0.569501 | 152 | 1,482 | 5.322368 | 0.328947 | 0.077874 | 0.12979 | 0.1644 | 0.736712 | 0.736712 | 0.729295 | 0.627936 | 0.627936 | 0.572312 | 0 | 0.058416 | 0.318489 | 1,482 | 49 | 64 | 30.244898 | 0.742574 | 0.031039 | 0 | 0.627907 | 1 | 0 | 0.130404 | 0.074616 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.093023 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d79b448ebca9f2b21d455046623172c48c5c3ef0 | 216 | py | Python | mmdet/core/anchor/builder.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 12,377 | 2017-12-04T02:46:57.000Z | 2022-03-31T16:48:31.000Z | mmdet/core/anchor/builder.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 1,851 | 2017-12-05T05:41:23.000Z | 2022-03-30T13:06:22.000Z | mmdet/core/anchor/builder.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 4,198 | 2017-12-05T02:57:19.000Z | 2022-03-30T10:29:37.000Z | from mmcv.utils import Registry, build_from_cfg
ANCHOR_GENERATORS = Registry('Anchor generator')
def build_anchor_generator(cfg, default_args=None):
return build_from_cfg(cfg, ANCHOR_GENERATORS, default_args)
| 27 | 63 | 0.819444 | 30 | 216 | 5.566667 | 0.5 | 0.107784 | 0.143713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106481 | 216 | 7 | 64 | 30.857143 | 0.865285 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d7a2de7e7dbcb3b5feb4260b2e64d9689d3988fe | 1,135 | py | Python | tests/kyu_5_tests/test_sum_of_pairs.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | tests/kyu_5_tests/test_sum_of_pairs.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | tests/kyu_5_tests/test_sum_of_pairs.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import unittest
from katas.kyu_5.sum_of_pairs import sum_pairs
class SumOfPairsTestCase(unittest.TestCase):
def test_equal_1(self):
self.assertEqual(sum_pairs([11, 3, 7, 5], 10), [3, 7])
def test_equal_2(self):
self.assertEqual(sum_pairs([4, 3, 2, 3, 4], 6), [4, 2])
def test_equal_3(sel... | 29.102564 | 70 | 0.585903 | 198 | 1,135 | 3.161616 | 0.176768 | 0.153355 | 0.172524 | 0.316294 | 0.552716 | 0.290735 | 0.15655 | 0.15655 | 0.060703 | 0 | 0 | 0.118316 | 0.225551 | 1,135 | 38 | 71 | 29.868421 | 0.593857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.44 | 1 | 0.44 | false | 0 | 0.08 | 0 | 0.56 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cc00828e7fb8afcfa432a6bc1971a0dae4b142aa | 62 | py | Python | src/retrieve_posts.py | Charcoal-SE/SmokeDetector2 | 02c1b32c05f4c9e44b5a8dd717288d9d567ff13f | [
"Apache-2.0",
"MIT"
] | 7 | 2017-03-29T19:46:55.000Z | 2021-11-11T04:26:25.000Z | src/retrieve_posts.py | Charcoal-SE/SmokeDetector2 | 02c1b32c05f4c9e44b5a8dd717288d9d567ff13f | [
"Apache-2.0",
"MIT"
] | 27 | 2017-03-30T19:22:32.000Z | 2017-04-28T17:09:41.000Z | src/retrieve_posts.py | Charcoal-SE/SmokeDetector2 | 02c1b32c05f4c9e44b5a8dd717288d9d567ff13f | [
"Apache-2.0",
"MIT"
] | 5 | 2017-03-30T18:02:20.000Z | 2021-11-11T04:26:18.000Z | # vim: set filetype=python tabstop=4 shiftwidth=4 expandtab:
| 20.666667 | 60 | 0.774194 | 9 | 62 | 5.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.129032 | 62 | 2 | 61 | 31 | 0.851852 | 0.935484 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cc0a952b7488a1363ae4af9f0c2d8759b6c08bf1 | 114 | py | Python | tbx/project_styleguide/apps.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 103 | 2015-02-24T17:58:21.000Z | 2022-03-23T08:08:58.000Z | tbx/project_styleguide/apps.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 145 | 2015-01-13T17:13:43.000Z | 2022-03-29T12:56:20.000Z | tbx/project_styleguide/apps.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 57 | 2015-01-03T12:00:37.000Z | 2022-02-09T13:11:30.000Z | from django.apps import AppConfig
class ProjectStyleguideConfig(AppConfig):
name = "tbx.project_styleguide"
| 19 | 41 | 0.798246 | 12 | 114 | 7.5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 114 | 5 | 42 | 22.8 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cc1f966beb1ac7200bbdff7b06cf1f51f44ebb6c | 938 | py | Python | donationdb/donations/migrations/0023_auto_20211028_1612.py | emilkauppi/vision.tf.fi | f0d668c6af38bac5575b87d27a1db4ff9864b7de | [
"MIT"
] | null | null | null | donationdb/donations/migrations/0023_auto_20211028_1612.py | emilkauppi/vision.tf.fi | f0d668c6af38bac5575b87d27a1db4ff9864b7de | [
"MIT"
] | null | null | null | donationdb/donations/migrations/0023_auto_20211028_1612.py | emilkauppi/vision.tf.fi | f0d668c6af38bac5575b87d27a1db4ff9864b7de | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-10-28 16:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('donations', '0022_auto_20211028_1553'),
]
operations = [
migrations.RemoveField(
model_name='donation',
name='organization_a... | 24.684211 | 49 | 0.558635 | 78 | 938 | 6.5 | 0.474359 | 0.248521 | 0.307692 | 0.35503 | 0.639053 | 0.639053 | 0.639053 | 0 | 0 | 0 | 0 | 0.049919 | 0.337953 | 938 | 37 | 50 | 25.351351 | 0.766506 | 0.047974 | 0 | 0.580645 | 1 | 0 | 0.2211 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cc2273a57e8ede5f98ed2049d6c22c8ef7de3a45 | 482 | py | Python | eventcore/exceptions.py | CasperCL/eventcore | 469724ff189add8055e88a3443d2e08a9e078861 | [
"MIT"
] | null | null | null | eventcore/exceptions.py | CasperCL/eventcore | 469724ff189add8055e88a3443d2e08a9e078861 | [
"MIT"
] | null | null | null | eventcore/exceptions.py | CasperCL/eventcore | 469724ff189add8055e88a3443d2e08a9e078861 | [
"MIT"
] | null | null | null | class ProducerError(Exception):
"""
Exception is thrown when producing fails.
"""
pass
class MissingProducerError(ProducerError):
"""
Exception is thrown when trying to dispatch without a producer.
"""
pass
class ConsumerError(Exception):
"""
Exception is thrown when consumin... | 17.214286 | 67 | 0.6639 | 47 | 482 | 6.808511 | 0.446809 | 0.1375 | 0.2125 | 0.2625 | 0.340625 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253112 | 482 | 27 | 68 | 17.851852 | 0.888889 | 0.435685 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
cc2e423f7c88e99c1116bcb33eab0346458ccc31 | 132 | py | Python | .ycm_extra_conf.py | Steve-Tod/3D_generation | 75817f91f4a69da06375b4401d4182e932102cd1 | [
"Apache-2.0"
] | null | null | null | .ycm_extra_conf.py | Steve-Tod/3D_generation | 75817f91f4a69da06375b4401d4182e932102cd1 | [
"Apache-2.0"
] | null | null | null | .ycm_extra_conf.py | Steve-Tod/3D_generation | 75817f91f4a69da06375b4401d4182e932102cd1 | [
"Apache-2.0"
] | 1 | 2019-07-24T03:35:27.000Z | 2019-07-24T03:35:27.000Z | def Settings(**kwargs):
return {
'interpreter_path':
'/orion/u/jiangthu/anaconda3/envs/tf_py3/bin/python'
}
| 22 | 60 | 0.613636 | 15 | 132 | 5.266667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.234848 | 132 | 5 | 61 | 26.4 | 0.762376 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.378788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0 | 0.2 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
0bcdd466643453d4ba9dd49a9427ac307dc91f4b | 36 | py | Python | Grocery.py | CtrlAltDel668/kuroshiro101 | e84b154b7492b144403f5186008911c4c0660f10 | [
"Apache-2.0"
] | null | null | null | Grocery.py | CtrlAltDel668/kuroshiro101 | e84b154b7492b144403f5186008911c4c0660f10 | [
"Apache-2.0"
] | null | null | null | Grocery.py | CtrlAltDel668/kuroshiro101 | e84b154b7492b144403f5186008911c4c0660f10 | [
"Apache-2.0"
] | null | null | null | for x in range (10):
print (x)
| 9 | 21 | 0.527778 | 7 | 36 | 2.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.333333 | 36 | 3 | 22 | 12 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0bed488a830e6fc584458a93db308cea51da26eb | 4,033 | py | Python | carball/analysis/stats/stats.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 119 | 2018-09-14T02:14:19.000Z | 2022-03-06T05:06:54.000Z | carball/analysis/stats/stats.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 207 | 2018-09-06T18:53:06.000Z | 2022-02-12T22:39:36.000Z | carball/analysis/stats/stats.py | unitedroguegg/carball | 4767f2c5d195b7d5d60e6a5575415262803acef7 | [
"Apache-2.0"
] | 44 | 2018-09-10T16:54:13.000Z | 2022-02-19T03:07:50.000Z | import logging
from typing import Dict
import pandas as pd
from ...generated.api import game_pb2
from ...generated.api.player_pb2 import Player
from ...generated.api.stats.events_pb2 import Hit
from ...generated.api.stats.player_stats_pb2 import PlayerStats
from ...generated.api.stats.team_stats_pb2 import TeamStats
... | 51.705128 | 115 | 0.68733 | 585 | 4,033 | 4.611966 | 0.17265 | 0.033358 | 0.022239 | 0.020015 | 0.616383 | 0.598592 | 0.598592 | 0.581913 | 0.581913 | 0.553002 | 0 | 0.002969 | 0.24845 | 4,033 | 77 | 116 | 52.376623 | 0.887166 | 0.53459 | 0 | 0.259259 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.62963 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0413c0a20778a28cb5c959dae98e948b970583aa | 30 | py | Python | language/_experimental/_thing/_util/__init__.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | language/_experimental/_thing/_util/__init__.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | language/_experimental/_thing/_util/__init__.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | """
Utility decorators.
"""
| 5 | 19 | 0.566667 | 2 | 30 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 30 | 5 | 20 | 6 | 0.708333 | 0.633333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0437c7741f2446b362aab03162a0b7fa059afc5f | 77 | py | Python | server.py | syahrulhamdani/disaster-response-pipeline | b5ce11d0c29972120e500e8effecaa9c44f765d7 | [
"MIT"
] | null | null | null | server.py | syahrulhamdani/disaster-response-pipeline | b5ce11d0c29972120e500e8effecaa9c44f765d7 | [
"MIT"
] | null | null | null | server.py | syahrulhamdani/disaster-response-pipeline | b5ce11d0c29972120e500e8effecaa9c44f765d7 | [
"MIT"
] | null | null | null | from apps.routes import app
app.run(host='0.0.0.0', port=3001, debug=True)
| 15.4 | 46 | 0.701299 | 16 | 77 | 3.375 | 0.75 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.116883 | 77 | 4 | 47 | 19.25 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
04578116dd0763a6d8225c1383f320ccf513ab37 | 23 | py | Python | data/studio21_generated/introductory/4186/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4186/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4186/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def sum_of_threes(n):
| 11.5 | 21 | 0.73913 | 5 | 23 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 2 | 22 | 11.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f0b215157442d7a62f0dfbc5e7bb6a33474ea742 | 12,104 | py | Python | src/selena/services/migrations/0002_auto__del_field_service_service_not_working_min_probes_count__del_fiel.py | deejay1/selena | 16189ee57c8197ab4375727ef8a905d4f4561eb7 | [
"Apache-2.0"
] | 23 | 2015-01-10T18:17:58.000Z | 2021-12-21T03:01:38.000Z | src/selena/services/migrations/0002_auto__del_field_service_service_not_working_min_probes_count__del_fiel.py | deejay1/selena | 16189ee57c8197ab4375727ef8a905d4f4561eb7 | [
"Apache-2.0"
] | 20 | 2015-01-10T14:05:42.000Z | 2016-08-09T07:48:50.000Z | src/selena/services/migrations/0002_auto__del_field_service_service_not_working_min_probes_count__del_fiel.py | deejay1/selena | 16189ee57c8197ab4375727ef8a905d4f4561eb7 | [
"Apache-2.0"
] | 3 | 2015-01-10T18:27:30.000Z | 2020-04-07T16:17:43.000Z | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Service.service_not_working_min_probes_count'
db.delete_column(u'services_service', 'servi... | 82.90411 | 216 | 0.58997 | 1,272 | 12,104 | 5.445755 | 0.134434 | 0.098167 | 0.16977 | 0.242529 | 0.82229 | 0.797315 | 0.724412 | 0.685867 | 0.628122 | 0.567345 | 0 | 0.012702 | 0.180436 | 12,104 | 146 | 217 | 82.90411 | 0.685585 | 0.031147 | 0 | 0.299213 | 0 | 0.007874 | 0.585154 | 0.320307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015748 | false | 0.007874 | 0.031496 | 0 | 0.070866 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f0b323066656f0790fc19e48ba4944d82214ebaf | 1,090 | py | Python | bcb/utils.py | gcunharodrigues/python-bcb | 1fc28daa0307b33ef005541c9eaab3b6f854c1e4 | [
"MIT"
] | 12 | 2021-12-28T12:30:23.000Z | 2022-03-30T17:20:22.000Z | bcb/utils.py | gcunharodrigues/python-bcb | 1fc28daa0307b33ef005541c9eaab3b6f854c1e4 | [
"MIT"
] | 6 | 2021-12-29T10:08:07.000Z | 2022-02-07T18:55:23.000Z | bcb/utils.py | gcunharodrigues/python-bcb | 1fc28daa0307b33ef005541c9eaab3b6f854c1e4 | [
"MIT"
] | 4 | 2021-05-18T07:13:33.000Z | 2022-01-19T23:00:18.000Z |
from datetime import datetime, date
class Date:
def __init__(self, d=None, format='%Y-%m-%d', mindate=date(1900, 1, 1)):
d = d if d else mindate
if isinstance(d, str):
if d == 'now' or d == 'today':
d = date.today()
else:
d = datetime.strpti... | 24.222222 | 76 | 0.534862 | 138 | 1,090 | 3.963768 | 0.275362 | 0.102377 | 0.137112 | 0.173675 | 0.411335 | 0.411335 | 0.411335 | 0.319927 | 0 | 0 | 0 | 0.008368 | 0.342202 | 1,090 | 44 | 77 | 24.772727 | 0.754533 | 0 | 0 | 0.060606 | 0 | 0 | 0.022039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0.030303 | 0.030303 | 0.212121 | 0.545455 | 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 | 1 | 1 | 0 | 0 | 4 |
f0b8aac48ea83edc98f4f58b750f0e1c7623383f | 2,576 | py | Python | tensorflow_model_analysis/utils/beam_util.py | rtg0795/model-analysis | 0f73989a2dfe1e56548f1ccd0001d98846f89e05 | [
"Apache-2.0"
] | null | null | null | tensorflow_model_analysis/utils/beam_util.py | rtg0795/model-analysis | 0f73989a2dfe1e56548f1ccd0001d98846f89e05 | [
"Apache-2.0"
] | null | null | null | tensorflow_model_analysis/utils/beam_util.py | rtg0795/model-analysis | 0f73989a2dfe1e56548f1ccd0001d98846f89e05 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 39.030303 | 80 | 0.767857 | 347 | 2,576 | 5.582133 | 0.429395 | 0.046464 | 0.060403 | 0.058854 | 0.108931 | 0.091378 | 0.066082 | 0.066082 | 0 | 0 | 0 | 0.007889 | 0.163432 | 2,576 | 65 | 81 | 39.630769 | 0.890951 | 0.550854 | 0 | 0 | 0 | 0 | 0.014427 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.772727 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f0bcb79f1f0b673aff363ebe39eef1ef648c47e9 | 94 | py | Python | Test_xiao.py | xiao19950825/Phone-elves | 084c3da348ade3a6aea512251f5e807ef2ed2166 | [
"Apache-2.0"
] | null | null | null | Test_xiao.py | xiao19950825/Phone-elves | 084c3da348ade3a6aea512251f5e807ef2ed2166 | [
"Apache-2.0"
] | null | null | null | Test_xiao.py | xiao19950825/Phone-elves | 084c3da348ade3a6aea512251f5e807ef2ed2166 | [
"Apache-2.0"
] | null | null | null |
import sklearn
def add():
pass
print("test git")
print("login")
print('1111111111') | 7.230769 | 19 | 0.638298 | 12 | 94 | 5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.202128 | 94 | 13 | 19 | 7.230769 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.247312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0.166667 | 0.166667 | 0 | 0.333333 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 4 |
f0c65e4d4c77a9bf5804b3a079ace263611c86bb | 264 | py | Python | day02/hw/yb/exercise4-10.py | zsh2401/hello-python | 6082071335123251cc653cf5667bce02031bb91f | [
"MulanPSL-1.0"
] | 1 | 2020-08-07T12:05:40.000Z | 2020-08-07T12:05:40.000Z | day02/hw/yb/exercise4-10.py | zsh2401/hello-python | 6082071335123251cc653cf5667bce02031bb91f | [
"MulanPSL-1.0"
] | null | null | null | day02/hw/yb/exercise4-10.py | zsh2401/hello-python | 6082071335123251cc653cf5667bce02031bb91f | [
"MulanPSL-1.0"
] | null | null | null | '''
Name:YB
Time:2020.8.6
'''
nums = [1,2,3,4,5,6,7,8,9]
print("Teh first three items in the list are : " + str(nums[:3]))
print("Three items from the middle of the list are : " + str(nums[3:6]))
print("Teh last three items in the list are : " + str(nums[-3:]))
| 26.4 | 73 | 0.617424 | 54 | 264 | 3.018519 | 0.518519 | 0.184049 | 0.184049 | 0.239264 | 0.478528 | 0.478528 | 0.368098 | 0.368098 | 0.368098 | 0 | 0 | 0.087156 | 0.174242 | 264 | 9 | 74 | 29.333333 | 0.66055 | 0.079545 | 0 | 0 | 0 | 0 | 0.53617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f0f5e5b2100c270eb39ea98ebf3a90874f87681b | 53 | py | Python | interface.py | abhi270595/Poker | fe0c94142466b703567fdf99a81df32bfbf12f5c | [
"MIT"
] | null | null | null | interface.py | abhi270595/Poker | fe0c94142466b703567fdf99a81df32bfbf12f5c | [
"MIT"
] | null | null | null | interface.py | abhi270595/Poker | fe0c94142466b703567fdf99a81df32bfbf12f5c | [
"MIT"
] | null | null | null | from game import Game
game = Game( "./input.txt" ) | 17.666667 | 28 | 0.641509 | 8 | 53 | 4.25 | 0.625 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 53 | 3 | 28 | 17.666667 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9bc3b1c6c269694a5c854e97363840c90e52e90c | 627 | py | Python | build/lib.linux-x86_64-2.7_ucs4/mx/BeeBase/BeeIndex.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/BeeBase/BeeIndex.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/BeeBase/BeeIndex.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | """ BeeIndex - A B++ Tree implementation.
Based on source code published in:
SORTING AND SEARCHING ALGORITHMS: A COOKBOOK
by THOMAS NIEMANN Portland, Oregon
email: thomasn@jps.net
home: http://members.xoom.com/thomasn/s_man.htm
Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lembur... | 31.35 | 77 | 0.736842 | 88 | 627 | 5.193182 | 0.761364 | 0.043764 | 0.083151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031373 | 0.186603 | 627 | 19 | 78 | 33 | 0.864706 | 0.832536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9bcc86392d7f7c7935123930940e7b08781ffbb5 | 9,074 | py | Python | tests/api/endpoints/test_upload_links.py | weimens/seahub | 5ecf78ed7a2ddc72a23961804ee41be21c24893f | [
"Apache-2.0"
] | 420 | 2015-01-03T11:34:46.000Z | 2022-03-10T07:15:41.000Z | tests/api/endpoints/test_upload_links.py | weimens/seahub | 5ecf78ed7a2ddc72a23961804ee41be21c24893f | [
"Apache-2.0"
] | 735 | 2015-01-04T21:22:51.000Z | 2022-03-31T09:26:07.000Z | tests/api/endpoints/test_upload_links.py | weimens/seahub | 5ecf78ed7a2ddc72a23961804ee41be21c24893f | [
"Apache-2.0"
] | 379 | 2015-01-05T17:08:03.000Z | 2022-03-06T00:11:50.000Z | # -*- coding: utf-8 -*-
import json
from mock import patch
from dateutil.relativedelta import relativedelta
from django.utils import timezone
from django.urls import reverse
from tests.common.utils import upload_file_test, randstring
from seaserv import seafile_api
from seahub.test_utils import BaseTestCase
from se... | 33.732342 | 99 | 0.679524 | 1,261 | 9,074 | 4.616971 | 0.107851 | 0.084164 | 0.034352 | 0.028856 | 0.794744 | 0.764857 | 0.752319 | 0.701477 | 0.663689 | 0.613707 | 0 | 0.014755 | 0.215781 | 9,074 | 268 | 100 | 33.858209 | 0.803401 | 0.048711 | 0 | 0.569767 | 0 | 0 | 0.06973 | 0.029586 | 0 | 0 | 0 | 0 | 0.180233 | 1 | 0.133721 | false | 0.017442 | 0.069767 | 0 | 0.238372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9bd0c3a3329fc69a16ffe3eca5ffb5a52da20fe3 | 654 | py | Python | web-app/src/repositories/abstracts/AbcRepository.py | philipp-mos/iubh-quiz-app | 3ea4a6b673bba6df0ece273e17e65c8fe5edc341 | [
"MIT"
] | null | null | null | web-app/src/repositories/abstracts/AbcRepository.py | philipp-mos/iubh-quiz-app | 3ea4a6b673bba6df0ece273e17e65c8fe5edc341 | [
"MIT"
] | 65 | 2021-06-01T15:52:12.000Z | 2021-10-01T15:44:50.000Z | web-app/src/repositories/abstracts/AbcRepository.py | philipp-mos/iubh-quiz-app | 3ea4a6b673bba6df0ece273e17e65c8fe5edc341 | [
"MIT"
] | 1 | 2022-03-29T14:13:45.000Z | 2022-03-29T14:13:45.000Z | from abc import ABC, abstractmethod
class AbcRepository(ABC):
@abstractmethod
def get_all():
raise NotImplementedError
@abstractmethod
def find_by_id(id):
raise NotImplementedError
@abstractmethod
def add_and_commit(item) -> None:
raise NotImplementedError
@abst... | 19.818182 | 40 | 0.671254 | 60 | 654 | 7.2 | 0.333333 | 0.275463 | 0.527778 | 0.569444 | 0.631944 | 0.523148 | 0.409722 | 0.268519 | 0 | 0 | 0 | 0 | 0.264526 | 654 | 32 | 41 | 20.4375 | 0.898129 | 0 | 0 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.043478 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9bd251abff14c0e91b9946b9708b769d236acbc4 | 362 | py | Python | python/matrix/matrix.py | whitepeaony/exercism-python | 5c947ba5c589f1969bcb754e88969420262c457e | [
"MIT"
] | null | null | null | python/matrix/matrix.py | whitepeaony/exercism-python | 5c947ba5c589f1969bcb754e88969420262c457e | [
"MIT"
] | 20 | 2019-08-02T13:59:21.000Z | 2022-01-22T10:08:23.000Z | python/matrix/matrix.py | whitepeaony/exercism-python | 5c947ba5c589f1969bcb754e88969420262c457e | [
"MIT"
] | null | null | null | class Matrix(object):
def __init__(self, matrix_string):
self.matrix = []
for i in matrix_string.split('\n'):
b = [int(l) for l in i.split()]
self.matrix.append(b)
def row(self, index):
return self.matrix[index - 1]
def column(self, index):
r... | 27.846154 | 51 | 0.546961 | 51 | 362 | 3.764706 | 0.431373 | 0.260417 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.320442 | 362 | 13 | 51 | 27.846154 | 0.772358 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.2 | 0.6 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9bd98da2f540920efb003a7b689a2510bdcb13d9 | 61,730 | py | Python | crypto_primitives/slow_hash_lgplv3.py | wkta/ReadableCryptoReader | a09c92a9ac4c526cc4bda1508f661fbaeff4fef4 | [
"MIT"
] | 14 | 2018-05-13T20:15:57.000Z | 2021-09-28T18:12:24.000Z | crypto_primitives/slow_hash_lgplv3.py | ArdeshirV/ReadableCryptoMiner | a09c92a9ac4c526cc4bda1508f661fbaeff4fef4 | [
"MIT"
] | 2 | 2019-05-07T14:19:45.000Z | 2021-08-16T14:10:47.000Z | crypto_primitives/slow_hash_lgplv3.py | ArdeshirV/ReadableCryptoMiner | a09c92a9ac4c526cc4bda1508f661fbaeff4fef4 | [
"MIT"
] | 7 | 2018-07-25T22:42:35.000Z | 2021-12-16T16:50:05.000Z | #!/usr/bin/env python
__author__ = "Patrik Lundin / Thomas Iwaszko"
__copyright__ = "Copyright 2018, nothisispatrik.com"
__license__ = "LGPL v3. Algorithms/constants may be (C) 2014-2018 The Monero project or (C) 2012-2014 The Cryptonote Developers. All code is original"
__email__ = "patrik@nothisispatrik.com / thoma... | 81.437995 | 2,822 | 0.713656 | 8,040 | 61,730 | 5.470398 | 0.479975 | 0.008754 | 0.00532 | 0.009754 | 0.063139 | 0.048793 | 0.043109 | 0.039289 | 0.031922 | 0.031104 | 0 | 0.435884 | 0.148664 | 61,730 | 757 | 2,823 | 81.545575 | 0.401024 | 0.06462 | 0 | 0.124567 | 0 | 0.00173 | 0.023346 | 0.000815 | 0 | 0 | 0.576265 | 0 | 0 | 1 | 0.046713 | false | 0.00346 | 0.00346 | 0.00692 | 0.081315 | 0.022491 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9bddc5f2fa49fa8170a523c2069f52453c62874e | 162 | wsgi | Python | trac.wsgi | CGI-define-and-primeportal/trac-plugin-trac-plugin-sharepoint | 165dec6a2559d873ea436d09a3366a5d3809b4a7 | [
"BSD-3-Clause"
] | 2 | 2015-05-07T10:04:31.000Z | 2015-05-12T14:07:37.000Z | trac.wsgi | CGI-define-and-primeportal/trac-plugin-trac-plugin-sharepoint | 165dec6a2559d873ea436d09a3366a5d3809b4a7 | [
"BSD-3-Clause"
] | 3 | 2015-05-07T15:08:04.000Z | 2015-05-12T15:18:57.000Z | trac.wsgi | CGI-define-and-primeportal/trac-plugin-trac-plugin-sharepoint | 165dec6a2559d873ea436d09a3366a5d3809b4a7 | [
"BSD-3-Clause"
] | null | null | null | import os
os.environ['TRAC_ENV'] = '/var/local/trac/'
os.environ['PYTHON_EGG_CACHE'] = '/tmp'
import trac.web.main
application = trac.web.main.dispatch_request
| 20.25 | 44 | 0.740741 | 25 | 162 | 4.64 | 0.64 | 0.155172 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 162 | 7 | 45 | 23.142857 | 0.789116 | 0 | 0 | 0 | 0 | 0 | 0.271605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9be348723a86c9d59ad74d31cc9497434a5de3af | 263 | py | Python | Desafio11.py | ricksmc/Python-projects | 1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093 | [
"MIT"
] | null | null | null | Desafio11.py | ricksmc/Python-projects | 1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093 | [
"MIT"
] | null | null | null | Desafio11.py | ricksmc/Python-projects | 1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093 | [
"MIT"
] | null | null | null | l = float(input('Digite a largura da parede em metros: '))
h = float(input('Digite a altura da parede em metros: '))
a = l * h
q = a/2
print('A área da parede é de {}'.format(a))
print('Para pintar toda a parede, serão necessários {} litros de tinta'.format(q)) | 32.875 | 82 | 0.673004 | 48 | 263 | 3.6875 | 0.541667 | 0.135593 | 0.180791 | 0.19209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.178707 | 263 | 8 | 82 | 32.875 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.613636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
501ec9ad0cba370745d544a906e80bb06e521739 | 89 | py | Python | RadiAIDD/Backend/UI/__init__.py | jo-mueller/RadiAiDD | 1c73cca9035c71556ce525aa8e404c2012720221 | [
"MIT"
] | 7 | 2021-06-18T06:16:32.000Z | 2022-01-25T05:51:11.000Z | RadiAIDD/Backend/__init__.py | jo-mueller/RadiAiDD | 1c73cca9035c71556ce525aa8e404c2012720221 | [
"MIT"
] | 18 | 2020-08-24T13:45:35.000Z | 2022-01-14T15:55:58.000Z | RadiAIDD/Backend/__init__.py | jo-mueller/RadiAiDD | 1c73cca9035c71556ce525aa8e404c2012720221 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 15 14:47:44 2018
@author: muellejoh
"""
| 11.125 | 35 | 0.58427 | 14 | 89 | 3.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 0.202247 | 89 | 7 | 36 | 12.714286 | 0.549296 | 0.876404 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
503a54b32c708af3b6dbbc5dcc405e0c232617a8 | 213 | py | Python | py2md/classes/__init__.py | Xero64/py2md | d35f7163863bb3012d7285207c7e4378df20ffa5 | [
"MIT"
] | 4 | 2019-06-30T11:29:00.000Z | 2021-09-04T19:27:40.000Z | py2md/classes/__init__.py | Xero64/py2md | d35f7163863bb3012d7285207c7e4378df20ffa5 | [
"MIT"
] | null | null | null | py2md/classes/__init__.py | Xero64/py2md | d35f7163863bb3012d7285207c7e4378df20ffa5 | [
"MIT"
] | null | null | null | from .mdlist import MDList
from .mdtable import MDTable
from .mdheading import MDHeading
from .mdmatrix import MDMatrix
from .mdstring import MDString
from .mdreport import MDReport
from .mdfigure import MDFigure
| 26.625 | 32 | 0.835681 | 28 | 213 | 6.357143 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131455 | 213 | 7 | 33 | 30.428571 | 0.962162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5044bfcb34fe8172862f77ee97c78d74d875df71 | 974 | py | Python | src/pyrin/security/services.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/security/services.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/security/services.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
security services module.
"""
from pyrin.application.services import get_component
from pyrin.security import SecurityPackage
def get_password_hash(password, **options):
"""
gets the given password's hash.
:param str password: password to get it's hash.
:keyword bool is_... | 24.974359 | 95 | 0.706366 | 112 | 974 | 6.053571 | 0.473214 | 0.053097 | 0.044248 | 0.067847 | 0.280236 | 0.19174 | 0.19174 | 0.19174 | 0.19174 | 0.19174 | 0 | 0.001294 | 0.206366 | 974 | 38 | 96 | 25.631579 | 0.875809 | 0.551335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
505c89e3dacd9a09e02feb08b854da6f4841bf25 | 98 | py | Python | brilschema-run.py | xiezhen/brilws | e3652dd4506dff9d713184ff623b59bc11fbe2c7 | [
"MIT"
] | 1 | 2017-03-23T16:26:06.000Z | 2017-03-23T16:26:06.000Z | brilschema-run.py | xiezhen/brilws | e3652dd4506dff9d713184ff623b59bc11fbe2c7 | [
"MIT"
] | 1 | 2017-03-24T15:02:20.000Z | 2017-10-02T13:43:26.000Z | brilschema-run.py | xiezhen/brilws | e3652dd4506dff9d713184ff623b59bc11fbe2c7 | [
"MIT"
] | 1 | 2019-12-06T09:23:01.000Z | 2019-12-06T09:23:01.000Z | #!/usr/bin/env python
from brilws import cli
if __name__ == '__main__':
cli.brilschema_main()
| 19.6 | 26 | 0.714286 | 14 | 98 | 4.357143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 4 | 27 | 24.5 | 0.73494 | 0.204082 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ac99d860f0e836d3ce3ca1d301d69c460fed3281 | 525 | py | Python | archive/pim/api/json_adapters.py | aarongreenwald/pim | 425fb2e3708286ebbfe60c74a2fcdf2a30d748bb | [
"MIT"
] | null | null | null | archive/pim/api/json_adapters.py | aarongreenwald/pim | 425fb2e3708286ebbfe60c74a2fcdf2a30d748bb | [
"MIT"
] | 7 | 2020-09-25T17:26:33.000Z | 2022-02-19T06:33:27.000Z | archive/pim/api/json_adapters.py | aarongreenwald/pim | 425fb2e3708286ebbfe60c74a2fcdf2a30d748bb | [
"MIT"
] | null | null | null | from pyramid.renderers import JSON
import decimal
import datetime
def number_adapter(obj, request):
return float(obj)
def datetime_adapter(obj, request):
return datetime.datetime.isoformat(obj)
def date_adapter(obj, request):
return datetime_adapter(datetime.datetime(obj.year, obj.month, obj.day), request) ... | 30.882353 | 83 | 0.809524 | 71 | 525 | 5.788732 | 0.295775 | 0.155718 | 0.124088 | 0.167883 | 0.3309 | 0.180049 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099048 | 525 | 17 | 84 | 30.882353 | 0.868922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.230769 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
acaddd7b4fe703ef5bd137f65432fe0e7750999f | 43 | py | Python | python/testData/completion/identifiersInPlainDocstring.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/completion/identifiersInPlainDocstring.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/identifiersInPlainDocstring.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def foo(bar):
""" Variable b<caret> """ | 21.5 | 29 | 0.534884 | 6 | 43 | 3.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 43 | 2 | 29 | 21.5 | 0.676471 | 0.395349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | false | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
acd01c9d2bbf4874b745fd9c4fc447ee75a2fe08 | 64 | py | Python | icevision_dashboards/plotting/__init__.py | ZivotJeKrasny/icevision_dashboards | 40d6b508e7684144c02c6d507c730415781207c7 | [
"Apache-2.0"
] | 10 | 2020-11-27T11:38:38.000Z | 2021-03-04T14:57:06.000Z | icevision_dashboards/plotting/__init__.py | ZivotJeKrasny/icevision_dashboards | 40d6b508e7684144c02c6d507c730415781207c7 | [
"Apache-2.0"
] | 5 | 2021-06-16T11:53:31.000Z | 2022-03-07T19:27:15.000Z | icevision_dashboards/plotting/__init__.py | ZivotJeKrasny/icevision_dashboards | 40d6b508e7684144c02c6d507c730415781207c7 | [
"Apache-2.0"
] | 2 | 2021-06-15T20:23:15.000Z | 2022-01-15T18:36:51.000Z | from .core import *
from . import utils
from .controls import *
| 16 | 23 | 0.734375 | 9 | 64 | 5.222222 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 64 | 3 | 24 | 21.333333 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
acd937ae414d83549c78ad112adb18f95718455e | 272 | py | Python | accounts/admin.py | Bryson69/Customer-Management | ca23a9d504ea679961f8013e255cc607534695f4 | [
"MIT"
] | null | null | null | accounts/admin.py | Bryson69/Customer-Management | ca23a9d504ea679961f8013e255cc607534695f4 | [
"MIT"
] | null | null | null | accounts/admin.py | Bryson69/Customer-Management | ca23a9d504ea679961f8013e255cc607534695f4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Import the class Customer
# Register your models here.
# Registering the table from the class Customer
admin.site.register(Customer)
admin.site.register(Product)
admin.site.register(Tag)
admin.site.register(Order)
| 24.727273 | 47 | 0.801471 | 39 | 272 | 5.589744 | 0.461538 | 0.165138 | 0.311927 | 0.229358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113971 | 272 | 10 | 48 | 27.2 | 0.904564 | 0.360294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
acf274059275c3f98e94de651e6dfcdabe29711f | 227 | py | Python | utils/__init__.py | snuffle-PX/2048-api | a43c74c3cfcf47e3f79ab631705b46ddbe3add1e | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | snuffle-PX/2048-api | a43c74c3cfcf47e3f79ab631705b46ddbe3add1e | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | snuffle-PX/2048-api | a43c74c3cfcf47e3f79ab631705b46ddbe3add1e | [
"Apache-2.0"
] | null | null | null | from .move import try_to_move
from .rot_invariance import get_train_data, get_train_data_12
from .onehot import conv_to_onehot, conv_log_to_onehot, flatten_onehot, conv_to_onehot_12
from .memory import ReplayMemory, Transition
| 45.4 | 89 | 0.867841 | 38 | 227 | 4.736842 | 0.473684 | 0.133333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.092511 | 227 | 4 | 90 | 56.75 | 0.854369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4a116353f68e1495d84e07ad19415a1580342eee | 101 | py | Python | allennlp_models/tokenizers/spacy_tokenizer.py | alvinwatner/allennlp-models | 7e767f00da836c5af59e39dc74852b484b45ef46 | [
"Apache-2.0"
] | null | null | null | allennlp_models/tokenizers/spacy_tokenizer.py | alvinwatner/allennlp-models | 7e767f00da836c5af59e39dc74852b484b45ef46 | [
"Apache-2.0"
] | null | null | null | allennlp_models/tokenizers/spacy_tokenizer.py | alvinwatner/allennlp-models | 7e767f00da836c5af59e39dc74852b484b45ef46 | [
"Apache-2.0"
] | null | null | null | # from allennlp.data.tokenizers import Token, Tokenizer, SpacyTokenizer
#
# SpacyTokenizer(language=) | 33.666667 | 71 | 0.811881 | 10 | 101 | 8.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089109 | 101 | 3 | 72 | 33.666667 | 0.891304 | 0.940594 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c5932a0a177924ead52f616b0ba3ad362dc2034d | 2,576 | py | Python | dfirtrack_main/tests/casetype/test_casetype_models.py | thomas-kropeit/dfirtrack | b1e0e659af7bc8085cfe2d269ddc651f9f4ba585 | [
"Apache-2.0"
] | 273 | 2018-04-18T22:09:15.000Z | 2021-06-04T09:15:48.000Z | dfirtrack_main/tests/casetype/test_casetype_models.py | stuhli/dfirtrack | 9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e | [
"Apache-2.0"
] | 75 | 2018-08-31T11:05:37.000Z | 2021-06-08T14:15:07.000Z | dfirtrack_main/tests/casetype/test_casetype_models.py | thomas-kropeit/dfirtrack | b1e0e659af7bc8085cfe2d269ddc651f9f4ba585 | [
"Apache-2.0"
] | 61 | 2018-11-12T22:55:48.000Z | 2021-06-06T15:16:16.000Z | from django.test import TestCase
from dfirtrack_main.models import Casetype
class CasetypeModelTestCase(TestCase):
"""casetype model tests"""
@classmethod
def setUpTestData(cls):
# create object
Casetype.objects.create(casetype_name='casetype_1')
def test_casetype_string(self):
... | 31.414634 | 78 | 0.662267 | 303 | 2,576 | 5.326733 | 0.135314 | 0.128253 | 0.099133 | 0.104089 | 0.766419 | 0.736679 | 0.736679 | 0.726766 | 0.547088 | 0.547088 | 0 | 0.014826 | 0.240683 | 2,576 | 81 | 79 | 31.802469 | 0.810327 | 0.151009 | 0 | 0.272727 | 0 | 0 | 0.101599 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.242424 | false | 0 | 0.060606 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
c5e5fc0d40bbe79523f31c1ae89b60a7e5458c9d | 43 | py | Python | input_words.py | Nocryset/VoKeep | 8812264ded073ef7a0a546441f2ef4768a207cb4 | [
"MIT"
] | null | null | null | input_words.py | Nocryset/VoKeep | 8812264ded073ef7a0a546441f2ef4768a207cb4 | [
"MIT"
] | null | null | null | input_words.py | Nocryset/VoKeep | 8812264ded073ef7a0a546441f2ef4768a207cb4 | [
"MIT"
] | null | null | null | user = [{name:""}]
select user
insert user | 10.75 | 18 | 0.651163 | 6 | 43 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 43 | 4 | 19 | 10.75 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
68014721e55827192a363b5512abd9fe3933270f | 8,499 | py | Python | tests/dicts/io/test_io_dict_csv.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 365 | 2019-05-21T05:50:30.000Z | 2022-03-29T11:35:35.000Z | tests/dicts/io/test_io_dict_csv.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 78 | 2019-11-16T12:22:54.000Z | 2022-03-14T12:21:30.000Z | tests/dicts/io/test_io_dict_csv.py | next-franciscoalgaba/python-benedict | 81ff459304868327238c322a0a8a203d9d5d4314 | [
"MIT"
] | 26 | 2019-12-16T06:34:12.000Z | 2022-02-28T07:16:41.000Z | # -*- coding: utf-8 -*-
from benedict.dicts.io import IODict
from .test_io_dict import io_dict_test_case
class io_dict_csv_test_case(io_dict_test_case):
def test_from_csv_with_valid_data(self):
s = """id,name,age,height,weight
1,Alice,20,62,120.6
2,Freddie,21,74,190.6
3,Bob,17,68,120.0
4,François,32,75... | 40.089623 | 110 | 0.525944 | 1,045 | 8,499 | 4.149282 | 0.099522 | 0.037131 | 0.073801 | 0.103782 | 0.8381 | 0.831181 | 0.757841 | 0.726476 | 0.645756 | 0.592943 | 0 | 0.071417 | 0.260266 | 8,499 | 211 | 111 | 40.279621 | 0.61826 | 0.237557 | 0 | 0.597015 | 0 | 0 | 0.30485 | 0.074068 | 0 | 0 | 0 | 0.004739 | 0.126866 | 1 | 0.074627 | false | 0 | 0.014925 | 0 | 0.097015 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
6814885b3ce6b60ff916b9932ef895fc1012cad9 | 42 | py | Python | create_system_announcement.py | ultirian/USW_CW2_PYTHON_SQL_IMPLEMENT | 4826cac6411254bf85222171d405d3c77c0dbf81 | [
"Unlicense"
] | null | null | null | create_system_announcement.py | ultirian/USW_CW2_PYTHON_SQL_IMPLEMENT | 4826cac6411254bf85222171d405d3c77c0dbf81 | [
"Unlicense"
] | null | null | null | create_system_announcement.py | ultirian/USW_CW2_PYTHON_SQL_IMPLEMENT | 4826cac6411254bf85222171d405d3c77c0dbf81 | [
"Unlicense"
] | null | null | null | # coding=utf-8
# Libraries
# Functions
| 10.5 | 15 | 0.666667 | 5 | 42 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.214286 | 42 | 3 | 16 | 14 | 0.818182 | 0.761905 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a83bd811eeba69896e238b9e187178a4e652f68c | 10,031 | py | Python | build_framework/environment.py | kdschlosser/wxAnimation | ad472719a77a081da5e51280d469cfd5d5bfcd3c | [
"MIT"
] | 2 | 2020-03-23T11:29:56.000Z | 2021-11-24T22:10:07.000Z | build_framework/environment.py | kdschlosser/wxAnimation | ad472719a77a081da5e51280d469cfd5d5bfcd3c | [
"MIT"
] | null | null | null | build_framework/environment.py | kdschlosser/wxAnimation | ad472719a77a081da5e51280d469cfd5d5bfcd3c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import os
from distutils.spawn import find_executable
def check_packages():
pkg_config = find_executable("pkg-config")
print("Found pkg-config : {0}".format(pkg_config))
if pkg_config:
from . import pkgconfig
packa... | 29.159884 | 72 | 0.478218 | 1,132 | 10,031 | 4.150177 | 0.071555 | 0.097701 | 0.048531 | 0.101107 | 0.789485 | 0.749681 | 0.715624 | 0.651128 | 0.64304 | 0.64304 | 0 | 0.004984 | 0.379922 | 10,031 | 343 | 73 | 29.244898 | 0.750322 | 0.002094 | 0 | 0.722222 | 0 | 0 | 0.131894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006944 | false | 0 | 0.020833 | 0 | 0.027778 | 0.097222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a83ff4d27c7a01bf1b5d4deac419883f6e680639 | 338 | py | Python | tests/test_happy_number.py | dhanraj-vedanth/Leetcode | b8b3283fc443b9ead769f8e3c720fc6c5d7633a6 | [
"MIT"
] | null | null | null | tests/test_happy_number.py | dhanraj-vedanth/Leetcode | b8b3283fc443b9ead769f8e3c720fc6c5d7633a6 | [
"MIT"
] | null | null | null | tests/test_happy_number.py | dhanraj-vedanth/Leetcode | b8b3283fc443b9ead769f8e3c720fc6c5d7633a6 | [
"MIT"
] | null | null | null | import unittest
from happy_number_202.main import Solution
class HappyTest(unittest.TestCase):
def test_true(self):
self.solution = Solution()
self.assertEqual(self.solution.isHappy(19), True)
def test_false(self):
self.solution = Solution()
self.assertEqual(self.solution.i... | 26 | 57 | 0.695266 | 41 | 338 | 5.634146 | 0.487805 | 0.207792 | 0.138528 | 0.207792 | 0.502165 | 0.502165 | 0.502165 | 0.502165 | 0.502165 | 0 | 0 | 0.022222 | 0.201183 | 338 | 12 | 58 | 28.166667 | 0.833333 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a842d05a77e1f952c3df462f79a7e8fea624e157 | 23 | py | Python | horovod/__init__.py | fossabot/horovod | 4eaae291fae03e9f854630088187dba7594457e7 | [
"BSD-3-Clause"
] | 30 | 2015-01-13T22:06:37.000Z | 2022-02-06T18:45:45.000Z | horovod/__init__.py | fossabot/horovod | 4eaae291fae03e9f854630088187dba7594457e7 | [
"BSD-3-Clause"
] | 72 | 2018-08-20T14:36:53.000Z | 2019-11-20T17:41:03.000Z | horovod/__init__.py | fossabot/horovod | 4eaae291fae03e9f854630088187dba7594457e7 | [
"BSD-3-Clause"
] | 22 | 2015-08-04T16:33:04.000Z | 2021-05-25T20:26:07.000Z | __version__ = '0.15.0'
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a85ddee17472b9f637869764bc63a5f97c21801f | 270 | py | Python | api/barriers/migrations/0019_merge_20181023_1423.py | cad106uk/market-access-api | a357c33bbec93408b193e598a5628634126e9e99 | [
"MIT"
] | null | null | null | api/barriers/migrations/0019_merge_20181023_1423.py | cad106uk/market-access-api | a357c33bbec93408b193e598a5628634126e9e99 | [
"MIT"
] | 51 | 2018-05-31T12:16:31.000Z | 2022-03-08T09:36:48.000Z | api/barriers/migrations/0019_merge_20181023_1423.py | cad106uk/market-access-api | a357c33bbec93408b193e598a5628634126e9e99 | [
"MIT"
] | 2 | 2019-12-24T09:47:42.000Z | 2021-02-09T09:36:51.000Z | # Generated by Django 2.1.2 on 2018-10-23 14:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("barriers", "0018_auto_20181022_2148"),
("barriers", "0018_auto_20181012_1426"),
]
operations = []
| 19.285714 | 48 | 0.662963 | 33 | 270 | 5.242424 | 0.757576 | 0.138728 | 0.184971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221698 | 0.214815 | 270 | 13 | 49 | 20.769231 | 0.59434 | 0.166667 | 0 | 0 | 1 | 0 | 0.278027 | 0.206278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a867c20639cba5d5a7c794d3e26da5a16d3c4a00 | 317 | py | Python | pymnn/pip_package/MNN/tools/utils/opname.py | GHLab/MNN | 9f1555ffdde9df84faf41dcf6beecba8f0e227f4 | [
"Apache-2.0"
] | 3 | 2019-12-27T01:10:32.000Z | 2021-05-14T08:10:40.000Z | pymnn/pip_package/MNN/tools/utils/opname.py | GHLab/MNN | 9f1555ffdde9df84faf41dcf6beecba8f0e227f4 | [
"Apache-2.0"
] | 10 | 2019-07-04T01:40:13.000Z | 2019-10-30T02:38:42.000Z | pymnn/pip_package/MNN/tools/utils/opname.py | chrisYooh/MNN | 9f1555ffdde9df84faf41dcf6beecba8f0e227f4 | [
"Apache-2.0"
] | 1 | 2019-12-06T06:53:51.000Z | 2019-12-06T06:53:51.000Z | # Copyright @ 2019 Alibaba. All rights reserved.
# Created by ruhuan on 2019.09.09
""" python OP API """
import MNN.tools.mnn_fb.OpType as OpType
import MNN.tools.utils.getkey as GetKey
def optype_to_name(op_type):
"""convert from op type to op name """
return GetKey.get_key(OpType.OpType.__dict__, op_type)
| 35.222222 | 58 | 0.741325 | 53 | 317 | 4.245283 | 0.603774 | 0.08 | 0.124444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04461 | 0.15142 | 317 | 8 | 59 | 39.625 | 0.791822 | 0.400631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a86e0eb7bc1d3efa50617454237ad2528cc74377 | 260 | py | Python | Pyton_curso/Python_introducao.py | HigorAnjos/Fundamentos-VI | e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb | [
"MIT"
] | null | null | null | Pyton_curso/Python_introducao.py | HigorAnjos/Fundamentos-VI | e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb | [
"MIT"
] | null | null | null | Pyton_curso/Python_introducao.py | HigorAnjos/Fundamentos-VI | e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb | [
"MIT"
] | null | null | null | # https://anandology.com/python-practice-book/working-with-data.html
# https://www.youtube.com/watch?v=vmEHCJofslg&ab_channel=KeithGalli
# https://www.youtube.com/watch?v=hp-FGSKVPy4&list=PLyqOvdQmGdTR46HUxDA6Ymv4DGsIjvTQ-&index=13&ab_channel=Did%C3%A1ticaTech | 86.666667 | 123 | 0.819231 | 37 | 260 | 5.702703 | 0.72973 | 0.075829 | 0.14218 | 0.170616 | 0.227488 | 0.227488 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.019231 | 260 | 3 | 123 | 86.666667 | 0.792157 | 0.976923 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a871f5aef53747e11eb01ec78be6c56466b3ce53 | 9,550 | py | Python | pot/invoke_saving_pot.py | punica-box/saving-pot-box | 8824e3621b21a8e06ac398c29e7ec07ac1442d1f | [
"MIT"
] | 1 | 2018-11-17T10:37:38.000Z | 2018-11-17T10:37:38.000Z | pot/invoke_saving_pot.py | NashMiao/saving-pot-box | 0ea7b0ee4be8aadf069faacf1d862d7412d5b4da | [
"MIT"
] | null | null | null | pot/invoke_saving_pot.py | NashMiao/saving-pot-box | 0ea7b0ee4be8aadf069faacf1d862d7412d5b4da | [
"MIT"
] | 1 | 2018-11-10T15:56:58.000Z | 2018-11-10T15:56:58.000Z | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
import binascii
import time
from ontology.exception.exception import SDKException
from ontology.ont_sdk import OntologySdk
from ontology.account.account import Account
from ontology.smart_contract.neo_contract.abi.abi_info import AbiInfo
from pot.pot_exception import (... | 51.069519 | 115 | 0.631414 | 1,227 | 9,550 | 4.503667 | 0.098615 | 0.038002 | 0.032573 | 0.034745 | 0.777778 | 0.767463 | 0.752262 | 0.732175 | 0.68802 | 0.677705 | 0 | 0.008569 | 0.279058 | 9,550 | 186 | 116 | 51.344086 | 0.794045 | 0.004503 | 0 | 0.584337 | 0 | 0 | 0.04798 | 0.005261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084337 | false | 0 | 0.042169 | 0.006024 | 0.283133 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a89be80466b1409eab24151286163d56743169af | 201 | py | Python | tests/syntax/assign_to_function_call_3.py | friendly-traceback/friendly-traceback | 4f6785f14c271a4d6412ef19c140f9d380cdbcbf | [
"MIT"
] | 45 | 2021-07-06T03:30:20.000Z | 2022-03-16T17:30:58.000Z | tests/syntax/assign_to_function_call_3.py | friendly-traceback/friendly-traceback | 4f6785f14c271a4d6412ef19c140f9d380cdbcbf | [
"MIT"
] | 110 | 2021-06-28T11:48:46.000Z | 2022-03-25T20:41:25.000Z | tests/syntax/assign_to_function_call_3.py | friendly-traceback/friendly-traceback | 4f6785f14c271a4d6412ef19c140f9d380cdbcbf | [
"MIT"
] | 4 | 2021-07-05T20:56:39.000Z | 2021-11-11T20:24:34.000Z | """Should raise SyntaxError: can't assign to function call
Python 3.8: SyntaxError: cannot assign to function call
"""
# tests for continuation marker
a = f(1, 2, # this is a comment
3, 4) = 5
| 25.125 | 58 | 0.686567 | 33 | 201 | 4.181818 | 0.787879 | 0.115942 | 0.231884 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044304 | 0.21393 | 201 | 7 | 59 | 28.714286 | 0.829114 | 0.233831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8a632c63764485ae787602f43b246f27cbb4e79 | 784 | py | Python | nets/CitationGraphs_node_classification/load_net.py | sejunssi/benchmarking_gnns | 881c92850f5366f7f8ca008da375037a41936681 | [
"MIT"
] | 1 | 2020-04-06T14:54:09.000Z | 2020-04-06T14:54:09.000Z | nets/CitationGraphs_node_classification/load_net.py | sejunssi/benchmarking_gnns | 881c92850f5366f7f8ca008da375037a41936681 | [
"MIT"
] | null | null | null | nets/CitationGraphs_node_classification/load_net.py | sejunssi/benchmarking_gnns | 881c92850f5366f7f8ca008da375037a41936681 | [
"MIT"
] | null | null | null | """
Utility file to select GraphNN model as
selected by the user
"""
from nets.CitationGraphs_node_classification.gcn_net import GCNNet
from nets.CitationGraphs_node_classification.gat_net import GATNet
from nets.CitationGraphs_node_classification.graphsage_net import GraphSageNet
from nets.CitationGraphs_node... | 23.058824 | 78 | 0.734694 | 101 | 784 | 5.455446 | 0.316832 | 0.163339 | 0.15971 | 0.188748 | 0.290381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 784 | 33 | 79 | 23.757576 | 0.864992 | 0.076531 | 0 | 0 | 0 | 0 | 0.025424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.2 | 0.2 | 0.7 | 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 | 1 | 1 | 0 | 0 | 4 |
a8a864b4853a7507052408418708caf6ad58628c | 38 | py | Python | s3netcdfapi/export/shapefile.py | meracan/s3-netcdf-api | 920d09ef7b1a205230ea2c76eabcb4853616992c | [
"MIT"
] | 1 | 2020-08-30T01:47:45.000Z | 2020-08-30T01:47:45.000Z | s3netcdfapi/export/shapefile.py | meracan/s3-netcdf-api | 920d09ef7b1a205230ea2c76eabcb4853616992c | [
"MIT"
] | null | null | null | s3netcdfapi/export/shapefile.py | meracan/s3-netcdf-api | 920d09ef7b1a205230ea2c76eabcb4853616992c | [
"MIT"
] | null | null | null | # pyshape
def shapefile(data):
None | 9.5 | 20 | 0.710526 | 5 | 38 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 4 | 21 | 9.5 | 0.870968 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8b0db2d6c78c554dbf03cf253e74f1713639d20 | 1,025 | py | Python | pynitrokey/nethsm/client/__init__.py | sgued/pynitrokey | 0499b4283739de5ac451916a22527fa5151ab5db | [
"Apache-2.0",
"MIT"
] | 15 | 2020-08-05T14:37:37.000Z | 2022-02-20T13:47:41.000Z | pynitrokey/nethsm/client/__init__.py | sgued/pynitrokey | 0499b4283739de5ac451916a22527fa5151ab5db | [
"Apache-2.0",
"MIT"
] | 153 | 2020-06-22T13:09:41.000Z | 2022-03-31T10:25:14.000Z | pynitrokey/nethsm/client/__init__.py | sgued/pynitrokey | 0499b4283739de5ac451916a22527fa5151ab5db | [
"Apache-2.0",
"MIT"
] | 4 | 2021-04-06T07:08:59.000Z | 2022-02-14T14:26:38.000Z | # flake8: noqa
"""
NetHSM
All endpoints expect exactly the specified JSON. Additional properties will cause a Bad Request Error (400). All HTTP errors contain a JSON structure with an explanation of type string. All <a href=\"https://tools.ietf.org/html/rfc4648#section-4\">base64</a> encoded values are Big En... | 36.607143 | 307 | 0.805854 | 132 | 1,025 | 6.219697 | 0.522727 | 0.136419 | 0.194884 | 0.25335 | 0.306943 | 0.306943 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.121951 | 1,025 | 27 | 308 | 37.962963 | 0.892222 | 0.453659 | 0 | 0 | 0 | 0 | 0.009416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
a8d7618788c23c6cf12fd99da772de2a74e2c57f | 209 | py | Python | src/meteringpoints_shared/bus.py | RasmusGodske/po-meteringpoints | 0723a891423c68241b7eb78e0de7756f99ea4b6d | [
"Apache-2.0"
] | null | null | null | src/meteringpoints_shared/bus.py | RasmusGodske/po-meteringpoints | 0723a891423c68241b7eb78e0de7756f99ea4b6d | [
"Apache-2.0"
] | null | null | null | src/meteringpoints_shared/bus.py | RasmusGodske/po-meteringpoints | 0723a891423c68241b7eb78e0de7756f99ea4b6d | [
"Apache-2.0"
] | null | null | null | from energytt_platform.bus import get_default_broker
from meteringpoints_shared.config import MESSAGE_BUS_SERVERS
broker = get_default_broker(
group='meteringpoints',
servers=MESSAGE_BUS_SERVERS,
)
| 20.9 | 60 | 0.827751 | 26 | 209 | 6.269231 | 0.538462 | 0.122699 | 0.196319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119617 | 209 | 9 | 61 | 23.222222 | 0.88587 | 0 | 0 | 0 | 0 | 0 | 0.066986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.