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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2099913a2cc0406cab077323045b6393134c2a57 | 724 | py | Python | pyseaflux/data/config.py | sckw/pySeaFlux | ab125f72f8f0fb2d1b627b4dd229f8744e916120 | [
"MIT"
] | 2 | 2021-07-09T11:26:10.000Z | 2021-09-01T19:39:11.000Z | pyseaflux/data/config.py | sckw/pySeaFlux | ab125f72f8f0fb2d1b627b4dd229f8744e916120 | [
"MIT"
] | 6 | 2021-03-09T07:42:11.000Z | 2021-04-19T08:03:39.000Z | pyseaflux/data/config.py | lukegre/SeaFlux | 3ecc2c7bedc121925be4056fa55f0e5a544eae64 | [
"MIT"
] | 3 | 2020-07-06T13:56:15.000Z | 2020-11-11T18:51:31.000Z | """
The zenodo url version is stored here. Makes it easier to update when new files are uploaded.
TODO: future version may hold the file names here too.
"""
zenodo_url = "https://zenodo.org/record/4664653"
year_range = [1982, 2020]
version = "v2021.02"
contact = "luke.gregor@usys.ethz.ch"
citation = (
"Fay, A. ... | 34.47619 | 93 | 0.675414 | 109 | 724 | 4.46789 | 0.834862 | 0.036961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064298 | 0.183702 | 724 | 20 | 94 | 36.2 | 0.759729 | 0.205801 | 0 | 0 | 0 | 0.25 | 0.772487 | 0.042328 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20b8860024b653941fa20de81e404555f5032ed5 | 2,838 | py | Python | psx/_dump_/29/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/29/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/29/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x80149E4C, "EA_cd_seek", SN_NOWARN)
set_name(0x80149E74, "MY_CdGetSector", SN_NOWARN)
set_name(0x80149EA8, "init_cdstream", SN_NOWARN)
set_name(0x80149EB8, "flush_cdstream", SN_NOWARN)
set_name(0x80149EDC, "check_complete_frame", SN_NOWARN)
set_name(0x80149F5C, "reset_cdstream", SN_NOWARN)
set_name(0x80149F84... | 49.789474 | 58 | 0.82241 | 424 | 2,838 | 5.03066 | 0.29717 | 0.183779 | 0.283638 | 0.386779 | 0.384435 | 0.197843 | 0 | 0 | 0 | 0 | 0 | 0.151311 | 0.059197 | 2,838 | 56 | 59 | 50.678571 | 0.647566 | 0 | 0 | 0 | 0 | 0 | 0.289641 | 0.046159 | 0 | 0 | 0.197322 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
20b9a3d266c0a789a3c9bd499e9b34dc96ef6ef8 | 40 | py | Python | util/ssl.py | kwestpharedhat/quay | a0df895005bcd3e53847046f69f6a7add87c88fd | [
"Apache-2.0"
] | null | null | null | util/ssl.py | kwestpharedhat/quay | a0df895005bcd3e53847046f69f6a7add87c88fd | [
"Apache-2.0"
] | null | null | null | util/ssl.py | kwestpharedhat/quay | a0df895005bcd3e53847046f69f6a7add87c88fd | [
"Apache-2.0"
] | null | null | null | SSL_FILENAMES = ["ssl.cert", "ssl.key"]
| 20 | 39 | 0.65 | 6 | 40 | 4.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20e1031df12478c408178ff20844c46ffb12a227 | 3,713 | py | Python | gradient/api_sdk/models/deployment.py | vishalbelsare/gradient-cli | c0e06252925cad3ad73d47ded1100f6b0cb0989a | [
"0BSD"
] | 52 | 2019-06-10T04:20:00.000Z | 2021-12-06T01:13:26.000Z | gradient/api_sdk/models/deployment.py | vishalbelsare/gradient-cli | c0e06252925cad3ad73d47ded1100f6b0cb0989a | [
"0BSD"
] | 125 | 2019-06-05T16:34:19.000Z | 2022-03-30T18:46:06.000Z | gradient/api_sdk/models/deployment.py | vishalbelsare/gradient-cli | c0e06252925cad3ad73d47ded1100f6b0cb0989a | [
"0BSD"
] | 11 | 2019-07-16T06:48:55.000Z | 2021-12-15T12:41:51.000Z | import datetime
import attr
@attr.s
class AutoscalingMetric(object):
type = attr.ib(type=str)
name = attr.ib(type=str)
value_type = attr.ib(type=str)
value = attr.ib(type=float)
@attr.s
class AutoscalingDefinition(object):
min_instance_count = attr.ib(type=int, default=None)
max_instance_co... | 34.37963 | 116 | 0.684622 | 524 | 3,713 | 4.765267 | 0.229008 | 0.10813 | 0.180216 | 0.150981 | 0.506207 | 0.480176 | 0.402483 | 0.131758 | 0 | 0 | 0 | 0.004046 | 0.201185 | 3,713 | 107 | 117 | 34.700935 | 0.837829 | 0.301912 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.056604 | 0.037736 | 0 | 0.943396 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4546b18c68975621595a405b377ef3ff51033197 | 247 | py | Python | server/database/collections/runs.py | KohlbacherLab/deregnet-rest | d512e04b66556fbb52a49e9da465af01ebfdd78a | [
"BSD-3-Clause"
] | null | null | null | server/database/collections/runs.py | KohlbacherLab/deregnet-rest | d512e04b66556fbb52a49e9da465af01ebfdd78a | [
"BSD-3-Clause"
] | null | null | null | server/database/collections/runs.py | KohlbacherLab/deregnet-rest | d512e04b66556fbb52a49e9da465af01ebfdd78a | [
"BSD-3-Clause"
] | 1 | 2018-01-30T18:38:56.000Z | 2018-01-30T18:38:56.000Z | import pymongo
from deregnet_rest.database.connection import database
class Runs(pymongo.collection.Collection):
'''
'''
def __init__(self, client):
super().__init__(client.deregnet_rest, name='runs')
runs = Runs(database)
| 19 | 59 | 0.708502 | 28 | 247 | 5.892857 | 0.571429 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17004 | 247 | 12 | 60 | 20.583333 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0.017021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
455972dac2670e7b8dda6ebd991856ca149907c2 | 98 | py | Python | broqer/publishers/__init__.py | semiversus/python-broqer | 131a78b4e475c4134bc32e035b833c8b162cdff2 | [
"MIT"
] | 74 | 2018-04-13T11:29:16.000Z | 2021-05-08T17:55:13.000Z | broqer/publishers/__init__.py | semiversus/python-broqer | 131a78b4e475c4134bc32e035b833c8b162cdff2 | [
"MIT"
] | 36 | 2018-06-13T04:00:12.000Z | 2022-03-01T12:13:38.000Z | broqer/publishers/__init__.py | semiversus/python-broqer | 131a78b4e475c4134bc32e035b833c8b162cdff2 | [
"MIT"
] | 6 | 2019-04-17T17:33:11.000Z | 2021-05-08T17:55:32.000Z | """ Module containing Publishers """
from .poll import PollPublisher
__all__ = ['PollPublisher']
| 19.6 | 36 | 0.744898 | 9 | 98 | 7.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132653 | 98 | 4 | 37 | 24.5 | 0.811765 | 0.285714 | 0 | 0 | 0 | 0 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
456366344d947ebcceb1ee89486b70862975311e | 148 | py | Python | artworks/apps.py | mnosinov/artworks_project | b6901ff83c1cd370ce1539f09b464ecb995e1ce3 | [
"MIT"
] | null | null | null | artworks/apps.py | mnosinov/artworks_project | b6901ff83c1cd370ce1539f09b464ecb995e1ce3 | [
"MIT"
] | null | null | null | artworks/apps.py | mnosinov/artworks_project | b6901ff83c1cd370ce1539f09b464ecb995e1ce3 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ArtworksConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'artworks'
| 21.142857 | 56 | 0.763514 | 17 | 148 | 6.529412 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 148 | 6 | 57 | 24.666667 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.195946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4564035f6de5fc5aa9829601a1a429075e59773f | 807 | py | Python | app/auth/forms.py | Manuel-bit/personalblog | e44928ad4534ec01959cb0425c72d0c3ca174f62 | [
"Unlicense"
] | null | null | null | app/auth/forms.py | Manuel-bit/personalblog | e44928ad4534ec01959cb0425c72d0c3ca174f62 | [
"Unlicense"
] | null | null | null | app/auth/forms.py | Manuel-bit/personalblog | e44928ad4534ec01959cb0425c72d0c3ca174f62 | [
"Unlicense"
] | null | null | null | from wtforms import StringField,SubmitField,TextAreaField,PasswordField,BooleanField
from wtforms.validators import DataRequired,Length,ValidationError,EqualTo
from ..models import Writter
from flask_wtf import FlaskForm
class SignUpForm(FlaskForm):
username=StringField("Username..", validators=[DataRequired()])
... | 40.35 | 100 | 0.793061 | 78 | 807 | 8.179487 | 0.423077 | 0.206897 | 0.141066 | 0.097179 | 0.200627 | 0.200627 | 0.200627 | 0 | 0 | 0 | 0 | 0 | 0.075589 | 807 | 19 | 101 | 42.473684 | 0.855228 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.266667 | 0.266667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4585797105e80c34aa0a81b5c3b5fec4a2303099 | 1,018 | py | Python | teste_servidor.py | bernardolorenzini/Python_Projects | cf2b196de10a90f767cd227fa34e649c8d681dc5 | [
"MIT"
] | null | null | null | teste_servidor.py | bernardolorenzini/Python_Projects | cf2b196de10a90f767cd227fa34e649c8d681dc5 | [
"MIT"
] | null | null | null | teste_servidor.py | bernardolorenzini/Python_Projects | cf2b196de10a90f767cd227fa34e649c8d681dc5 | [
"MIT"
] | null | null | null | import mysql.connector
db = mysql.connector.connect(
host="localhost",
user="root",
passwd="admin506606",
database="condominio_turin"
)
mycursor = db.cursor()
#CRIANDO DATABASE TESTE ----
# mycursor.execute("CREATE DATABASE condominio_turin DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci )... | 33.933333 | 153 | 0.727898 | 129 | 1,018 | 5.705426 | 0.488372 | 0.203804 | 0.171196 | 0.203804 | 0.347826 | 0.347826 | 0.347826 | 0.125 | 0.125 | 0.125 | 0 | 0.029115 | 0.12279 | 1,018 | 29 | 154 | 35.103448 | 0.795073 | 0.560904 | 0 | 0 | 0 | 0 | 0.438356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
458c57ee3c9d29e32264b798faad088e4ae91e9c | 355 | py | Python | app/main/views/status.py | alphagov-mirror/digitalmarketplace-user-frontend | d45c76d5e8f52246423d00bd50ac93e19485e6ca | [
"MIT"
] | null | null | null | app/main/views/status.py | alphagov-mirror/digitalmarketplace-user-frontend | d45c76d5e8f52246423d00bd50ac93e19485e6ca | [
"MIT"
] | 86 | 2017-09-14T09:20:13.000Z | 2021-07-01T10:31:52.000Z | app/main/views/status.py | alphagov-mirror/digitalmarketplace-user-frontend | d45c76d5e8f52246423d00bd50ac93e19485e6ca | [
"MIT"
] | 6 | 2017-09-14T09:34:06.000Z | 2021-04-10T18:07:14.000Z | from flask import request
from .. import main
from ... import data_api_client
from dmutils.status import get_app_status
@main.route('/_status')
def status():
return get_app_status(data_api_client=data_api_client,
search_api_client=None,
ignore_dependencies='ign... | 27.307692 | 84 | 0.687324 | 45 | 355 | 5.111111 | 0.466667 | 0.156522 | 0.169565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23662 | 355 | 12 | 85 | 29.583333 | 0.848708 | 0 | 0 | 0 | 0 | 0 | 0.076056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.444444 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
45bd936dcda67c4b7ff280acc77670b65bc9f38d | 655 | py | Python | pyawe/iotypes.py | maet3608/py-awe | 3a3156e7432923b924b87e5b5cda862136304366 | [
"Apache-2.0"
] | null | null | null | pyawe/iotypes.py | maet3608/py-awe | 3a3156e7432923b924b87e5b5cda862136304366 | [
"Apache-2.0"
] | null | null | null | pyawe/iotypes.py | maet3608/py-awe | 3a3156e7432923b924b87e5b5cda862136304366 | [
"Apache-2.0"
] | 1 | 2020-09-29T06:37:48.000Z | 2020-09-29T06:37:48.000Z | """
Data types and their validation functions.
"""
from __future__ import absolute_import, print_function
def is_any(data):
return True
def is_boolean(data):
return isinstance(data, bool)
def is_number(data):
return isinstance(data, int) or isinstance(data, float)
def IMPLEMENT_THIS(data):
retur... | 17.702703 | 59 | 0.685496 | 87 | 655 | 4.988506 | 0.471264 | 0.092166 | 0.092166 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215267 | 655 | 36 | 60 | 18.194444 | 0.844358 | 0.064122 | 0 | 0.095238 | 0 | 0 | 0.110744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0.190476 | 0.52381 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
45cd262b02e5cff53fcc35e201a2a1efee11947d | 900 | py | Python | project/core/tools/tests.py | robwise1/birdr | fa6cf9036baebb735bff9a59abc4c04867e40d61 | [
"MIT"
] | null | null | null | project/core/tools/tests.py | robwise1/birdr | fa6cf9036baebb735bff9a59abc4c04867e40d61 | [
"MIT"
] | null | null | null | project/core/tools/tests.py | robwise1/birdr | fa6cf9036baebb735bff9a59abc4c04867e40d61 | [
"MIT"
] | null | null | null | import simplejson
from django.test import Client
from profiles.models import User
class FunctionalTestCase(object):
"""
Base class for all functional test, making requests to API etc.
"""
def create_user(self, **kwargs):
user = User(**kwargs)
user.save()
return user
def g... | 30 | 95 | 0.666667 | 116 | 900 | 5.094828 | 0.37931 | 0.081218 | 0.071066 | 0.091371 | 0.441624 | 0.441624 | 0.28934 | 0.28934 | 0.28934 | 0.199662 | 0 | 0 | 0.221111 | 900 | 29 | 96 | 31.034483 | 0.843081 | 0.07 | 0 | 0 | 0 | 0 | 0.058465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.157895 | 0.157895 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
45dbe33ead1c265a1f869861a6b9c9a8ff699357 | 265 | py | Python | alphatwirl/delphes/__init__.py | benkrikler/alphatwirl | cda7d12fec21291ea33af23234fc08be19430934 | [
"BSD-3-Clause"
] | null | null | null | alphatwirl/delphes/__init__.py | benkrikler/alphatwirl | cda7d12fec21291ea33af23234fc08be19430934 | [
"BSD-3-Clause"
] | 7 | 2018-02-26T10:32:26.000Z | 2018-03-19T12:27:12.000Z | alphatwirl/delphes/__init__.py | benkrikler/alphatwirl | cda7d12fec21291ea33af23234fc08be19430934 | [
"BSD-3-Clause"
] | null | null | null | hasROOT = False
try:
import ROOT
hasROOT = True
except ImportError:
pass
if hasROOT:
from .DelphesEvents import DelphesEvents
from .DelphesEventBuilder import DelphesEventBuilder
from .EventBuilderConfigMaker import EventBuilderConfigMaker
| 22.083333 | 64 | 0.777358 | 24 | 265 | 8.583333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192453 | 265 | 11 | 65 | 24.090909 | 0.962617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
afe8c9920ed069cd389007b14c78237c3f2efcd2 | 107 | py | Python | Knight-Rank/DAY-7/139A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | 2 | 2021-12-09T18:07:46.000Z | 2022-01-26T16:51:18.000Z | Knight-Rank/DAY-7/139A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | null | null | null | Knight-Rank/DAY-7/139A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | null | null | null | n=int(input())
l=list(map(int,input().split()))
i=0
while n>l[i]:
n-=l[i]
i=(i+1)%7
print(i+1)
| 10.7 | 32 | 0.504673 | 25 | 107 | 2.16 | 0.52 | 0.296296 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.186916 | 107 | 9 | 33 | 11.888889 | 0.574713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
b308cb33b744ede1067b34ff8a2a0be567acda65 | 310 | py | Python | src/arguable/utils.py | Dominik1123/arguable | 0d861592d46aefe5b8c69b3d85fe915dc63e5c06 | [
"MIT"
] | null | null | null | src/arguable/utils.py | Dominik1123/arguable | 0d861592d46aefe5b8c69b3d85fe915dc63e5c06 | [
"MIT"
] | null | null | null | src/arguable/utils.py | Dominik1123/arguable | 0d861592d46aefe5b8c69b3d85fe915dc63e5c06 | [
"MIT"
] | null | null | null | """General purpose utility functions."""
def removeprefix(string, prefix):
if prefix and string.startswith(prefix):
return string[len(prefix):]
return string
def removesuffix(string, suffix):
if suffix and string.endswith(suffix):
return string[:-len(suffix)]
return string
| 22.142857 | 44 | 0.690323 | 36 | 310 | 5.944444 | 0.444444 | 0.224299 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 310 | 13 | 45 | 23.846154 | 0.862903 | 0.109677 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 0 | 1 | 0 | 0 | 3 |
b3112b59740b19d3f08e456d1690d6e5373a7435 | 281 | py | Python | packages/mica/post_check_logs.py | sot/ska_testr | dd84b89d0b5ebf6158c6cda4c1df432138044e20 | [
"MIT"
] | null | null | null | packages/mica/post_check_logs.py | sot/ska_testr | dd84b89d0b5ebf6158c6cda4c1df432138044e20 | [
"MIT"
] | 27 | 2016-10-19T19:39:46.000Z | 2022-03-04T14:56:40.000Z | packages/mica/post_check_logs.py | sot/ska_testr | dd84b89d0b5ebf6158c6cda4c1df432138044e20 | [
"MIT"
] | null | null | null | from testr.packages import check_files
check_files('test_*.log', ['warning', 'error'],
allows=['did not parse as fits unit',
'specified but multiple tables',
'has 2 aspect intervals',
'NaturalNameWarning:'])
| 35.125 | 52 | 0.551601 | 28 | 281 | 5.428571 | 0.928571 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.338078 | 281 | 7 | 53 | 40.142857 | 0.811828 | 0 | 0 | 0 | 0 | 0 | 0.419929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b311f5815a0f072cc9e06a33dfe68010eb18fb34 | 76 | py | Python | src/config.py | RahulSajnani/Networking-project | dd3212644de505d660b78d0cb072d15bd080e9d4 | [
"MIT"
] | 1 | 2020-04-30T19:53:49.000Z | 2020-04-30T19:53:49.000Z | src/config.py | RahulSajnani/Networking-project | dd3212644de505d660b78d0cb072d15bd080e9d4 | [
"MIT"
] | null | null | null | src/config.py | RahulSajnani/Networking-project | dd3212644de505d660b78d0cb072d15bd080e9d4 | [
"MIT"
] | 1 | 2020-04-30T19:53:51.000Z | 2020-04-30T19:53:51.000Z | BUFFER_SIZE = 4096
SOCKET_TIMEOUT = 30
PASSWORD = 'NetworkingAssignment123' | 19 | 36 | 0.815789 | 8 | 76 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 0.118421 | 76 | 4 | 36 | 19 | 0.761194 | 0 | 0 | 0 | 0 | 0 | 0.298701 | 0.298701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b32d78258555e54f55d8a30c89e0fbf3fd77b553 | 623 | py | Python | zsh/welcome/colors.py | julianobarbosa/dotfiles-1 | bca4f9a4978927d29c3d88f87f2d52d2bad1eb56 | [
"MIT"
] | null | null | null | zsh/welcome/colors.py | julianobarbosa/dotfiles-1 | bca4f9a4978927d29c3d88f87f2d52d2bad1eb56 | [
"MIT"
] | null | null | null | zsh/welcome/colors.py | julianobarbosa/dotfiles-1 | bca4f9a4978927d29c3d88f87f2d52d2bad1eb56 | [
"MIT"
] | null | null | null | from colorama import Fore, Style, ansi
COLORS = [ansi.code_to_chars(30 + color_index) for color_index in range(0, 8)]
def colored(string, *colors):
return "".join(colors + (string, Style.RESET_ALL))
def bright_colored(string, *colors):
return "".join(colors + (Style.BRIGHT, string, Style.RESET_ALL))
def ... | 28.318182 | 78 | 0.698234 | 88 | 623 | 4.806818 | 0.454545 | 0.141844 | 0.089835 | 0.118203 | 0.269504 | 0.165485 | 0 | 0 | 0 | 0 | 0 | 0.017578 | 0.17817 | 623 | 21 | 79 | 29.666667 | 0.808594 | 0 | 0 | 0 | 0 | 0 | 0.009631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b333fec1e08142bc33456249143064349f4f1042 | 686 | py | Python | src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2_rational_field.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 3 | 2019-07-15T13:48:24.000Z | 2019-11-08T12:31:43.000Z | src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2_rational_field.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 2 | 2018-10-30T13:40:20.000Z | 2020-07-23T12:13:30.000Z | src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2_rational_field.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 7 | 2021-11-08T10:01:59.000Z | 2022-03-03T11:25:52.000Z | """
Hyperelliptic curves of genus 2 over the rationals
"""
from __future__ import absolute_import
#*****************************************************************************
# Copyright (C) 2006 David Kohel <kohel@maths.usyd.edu>
# Distributed under the terms of the GNU General Public License (GPL)
# ... | 38.111111 | 78 | 0.606414 | 64 | 686 | 6.1875 | 0.609375 | 0.131313 | 0.111111 | 0.151515 | 0.176768 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014876 | 0.118076 | 686 | 17 | 79 | 40.352941 | 0.639669 | 0.546647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
b337123a8ccc5143bc73ecccae2dcd032aaf3e9b | 100 | gyp | Python | binding.gyp | chdow/packet | 6db043aff2abe77313b9cf8f371ef404b38ee203 | [
"Unlicense"
] | null | null | null | binding.gyp | chdow/packet | 6db043aff2abe77313b9cf8f371ef404b38ee203 | [
"Unlicense"
] | null | null | null | binding.gyp | chdow/packet | 6db043aff2abe77313b9cf8f371ef404b38ee203 | [
"Unlicense"
] | null | null | null | {"targets" :
[
{
"target_name" : "packet",
"sources" : ["packet.cc"]
}
]
} | 12.5 | 32 | 0.39 | 7 | 100 | 5.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.38 | 100 | 8 | 33 | 12.5 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0.39604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b34a23657366716b9e1b5538399b857cfe665125 | 15,403 | py | Python | kili/queries/label/__init__.py | ASonay/kili-playground | 9624073703b5e6151cf496f44f17f531576875b7 | [
"Apache-2.0"
] | 214 | 2019-08-05T14:55:01.000Z | 2022-03-28T21:02:22.000Z | kili/queries/label/__init__.py | x213212/kili-playground | dfb94c2d54bedfd7fec452b91f811587a2156c13 | [
"Apache-2.0"
] | 10 | 2020-05-14T10:44:16.000Z | 2022-03-08T09:39:24.000Z | kili/queries/label/__init__.py | x213212/kili-playground | dfb94c2d54bedfd7fec452b91f811587a2156c13 | [
"Apache-2.0"
] | 19 | 2019-11-26T22:41:09.000Z | 2022-01-16T19:17:38.000Z | """
Label queries
"""
from typing import List, Optional
from typeguard import typechecked
import pandas as pd
from ...helpers import Compatible, format_result, fragment_builder
from ..asset import QueriesAsset
from ..project import QueriesProject
from .queries import gql_labels, GQL_LABELS_COUNT
from ...constants im... | 43.511299 | 138 | 0.577225 | 1,663 | 15,403 | 5.202646 | 0.1365 | 0.048544 | 0.057097 | 0.068655 | 0.737864 | 0.705848 | 0.702381 | 0.675451 | 0.645862 | 0.610957 | 0 | 0.001563 | 0.335324 | 15,403 | 353 | 139 | 43.634561 | 0.843524 | 0.447965 | 0 | 0.496894 | 0 | 0 | 0.085341 | 0.008396 | 0 | 0 | 0 | 0.005666 | 0.006211 | 1 | 0.043478 | false | 0 | 0.062112 | 0 | 0.180124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b36426bb4da3a40f107d9cb145608b7dab11e19a | 167 | py | Python | web_elements/table/tbody.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | 8 | 2019-03-05T12:23:07.000Z | 2021-01-10T09:49:27.000Z | web_elements/table/tbody.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | null | null | null | web_elements/table/tbody.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | 2 | 2019-02-18T06:34:34.000Z | 2019-03-05T12:17:22.000Z | from ..web_element import WebElement
class TbodyElement(WebElement):
TBODY = 'tbody'
def __init__(self):
super().__init__(element_type=self.TBODY)
| 16.7 | 49 | 0.700599 | 19 | 167 | 5.631579 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191617 | 167 | 9 | 50 | 18.555556 | 0.792593 | 0 | 0 | 0 | 0 | 0 | 0.02994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
2fa77805c6a502ebeae4bbdd39585b12d288197c | 282 | py | Python | openeo_driver/specs/__init__.py | Bart92/openeo-python-driver | 3aa7c1629b609841a695b9fb66775d6b24bbd9f6 | [
"Apache-2.0"
] | 4 | 2018-03-16T09:01:03.000Z | 2022-03-09T12:24:56.000Z | openeo_driver/specs/__init__.py | Bart92/openeo-python-driver | 3aa7c1629b609841a695b9fb66775d6b24bbd9f6 | [
"Apache-2.0"
] | 80 | 2019-06-18T13:52:19.000Z | 2022-03-28T06:37:29.000Z | openeo_driver/specs/__init__.py | Bart92/openeo-python-driver | 3aa7c1629b609841a695b9fb66775d6b24bbd9f6 | [
"Apache-2.0"
] | 3 | 2019-06-12T08:41:38.000Z | 2021-07-08T19:58:48.000Z | from pathlib import Path
from typing import Union
from openeo_driver.utils import read_json
SPECS_ROOT = Path(__file__).parent
def read_spec(path: Union[str, Path]) -> dict:
"""Read specification JSON file (given by relative path)"""
return read_json(SPECS_ROOT / path)
| 23.5 | 63 | 0.751773 | 42 | 282 | 4.809524 | 0.571429 | 0.079208 | 0.128713 | 0.168317 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 282 | 11 | 64 | 25.636364 | 0.852321 | 0.187943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2fac59ea49c07157b87d2455063cdff53b28a12c | 222 | py | Python | flaskapi/test/test_api.py | kalyons11/flaskapi | 6530f77afb42e92a6232fdfd5d862c65d9797dc8 | [
"MIT"
] | null | null | null | flaskapi/test/test_api.py | kalyons11/flaskapi | 6530f77afb42e92a6232fdfd5d862c65d9797dc8 | [
"MIT"
] | null | null | null | flaskapi/test/test_api.py | kalyons11/flaskapi | 6530f77afb42e92a6232fdfd5d862c65d9797dc8 | [
"MIT"
] | null | null | null | import unittest
from flaskapi import app
class APITest(unittest.TestCase):
def setUp(self):
app.testing = True
self.app = app.test_client()
def test_another(self):
self.assertTrue(True)
| 17.076923 | 36 | 0.662162 | 28 | 222 | 5.178571 | 0.607143 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247748 | 222 | 12 | 37 | 18.5 | 0.868263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2fbb4753a3ae5bc4c589843e937bd930f0c24fb6 | 190 | py | Python | Dictionary_comprehensions.py | maainul/Paython | c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9 | [
"DOC"
] | null | null | null | Dictionary_comprehensions.py | maainul/Paython | c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9 | [
"DOC"
] | null | null | null | Dictionary_comprehensions.py | maainul/Paython | c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9 | [
"DOC"
] | null | null | null | word = 'letters'
letter_count = {lette{'r': 1, 'e': 2, 'l': 1, 't': 2, 's': 1}r: word.count(letter) for letter in set(word)}
print(letter_count)
>>{'r': 1, 'e': 2, 'l': 1, 't': 2, 's': 1}
| 27.142857 | 107 | 0.521053 | 37 | 190 | 2.621622 | 0.432432 | 0.226804 | 0.061856 | 0.082474 | 0.206186 | 0.206186 | 0.206186 | 0.206186 | 0.206186 | 0.206186 | 0 | 0.063694 | 0.173684 | 190 | 6 | 108 | 31.666667 | 0.55414 | 0 | 0 | 0 | 0 | 0 | 0.089947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2fc64710c2931bf16c44c49915c0ea793d091412 | 155 | py | Python | 03. Programacion orientada a objetos/02. importar funcionalidades/prueba.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | 03. Programacion orientada a objetos/02. importar funcionalidades/prueba.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | 03. Programacion orientada a objetos/02. importar funcionalidades/prueba.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | class datos:
atributo="esto es una prueba"
def imprimir(self):
self.guardar = self.atributo
print (self.guardar)
x=datos()
x.imprimir() | 17.222222 | 31 | 0.658065 | 21 | 155 | 4.857143 | 0.619048 | 0.215686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219355 | 155 | 9 | 32 | 17.222222 | 0.842975 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
2fcc0e1a8d5d27c08cb124bf1ff07c57e8ea3919 | 592 | py | Python | py.py | shyamalguchhait/dps | 1c608c83dd9f5059a8a97cb18c964e84458005e2 | [
"MIT"
] | null | null | null | py.py | shyamalguchhait/dps | 1c608c83dd9f5059a8a97cb18c964e84458005e2 | [
"MIT"
] | null | null | null | py.py | shyamalguchhait/dps | 1c608c83dd9f5059a8a97cb18c964e84458005e2 | [
"MIT"
] | null | null | null | from people import db
from people.model import Student
import pandas as pd
df = pd.read_csv('iPhD.csv')
#print(df.Sl)
'''for (sl, id, name, user) in zip(df.Sl, df.ID, df.Name, df.User):
print(sl, id, name, user)
u = Student(name = name, IDNo = id, userID = user, mail = user+"@iiserkol.ac.in", supervisor = "XXX... | 37 | 140 | 0.633446 | 92 | 592 | 4.043478 | 0.369565 | 0.096774 | 0.043011 | 0.064516 | 0.607527 | 0.607527 | 0.607527 | 0.607527 | 0.607527 | 0.607527 | 0 | 0 | 0.180743 | 592 | 15 | 141 | 39.466667 | 0.76701 | 0.02027 | 0 | 0 | 0 | 0 | 0.157191 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2fd16347c70367375cf9650b9302d605090a98a1 | 405 | py | Python | nsls2_detector_handlers/srx_flyscans.py | NSLS-II/nsls2-detector-handlers | ddc45426ba72056bc8a4b9b98729efd388314668 | [
"BSD-3-Clause"
] | null | null | null | nsls2_detector_handlers/srx_flyscans.py | NSLS-II/nsls2-detector-handlers | ddc45426ba72056bc8a4b9b98729efd388314668 | [
"BSD-3-Clause"
] | 1 | 2020-06-29T15:16:53.000Z | 2020-06-29T15:18:08.000Z | nsls2_detector_handlers/srx_flyscans.py | bluesky/nsls2-detector-handlers | ddc45426ba72056bc8a4b9b98729efd388314668 | [
"BSD-3-Clause"
] | 1 | 2020-03-06T20:55:58.000Z | 2020-03-06T20:55:58.000Z | import h5py
from . import HandlerBase
class ZebraHDF5Handler(HandlerBase):
specs = {'ZEBRA_HDF51', 'SIS_HDF51'}
def __init__(self, resource_fn):
self._resource_fn = resource_fn
self._handle = h5py.File(resource_fn, 'r')
def __call__(self, *, column):
return self._handle[column][... | 22.5 | 50 | 0.674074 | 50 | 405 | 5 | 0.52 | 0.2 | 0.168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022013 | 0.214815 | 405 | 17 | 51 | 23.823529 | 0.764151 | 0 | 0 | 0 | 0 | 0 | 0.051852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2fd970c856802cfc953478c94685c9621e1fb41e | 242 | py | Python | login/views.py | OkayJosh/Nemis | ebc6b7b0cfc64386517408a3da566f306fe1e140 | [
"MIT"
] | null | null | null | login/views.py | OkayJosh/Nemis | ebc6b7b0cfc64386517408a3da566f306fe1e140 | [
"MIT"
] | null | null | null | login/views.py | OkayJosh/Nemis | ebc6b7b0cfc64386517408a3da566f306fe1e140 | [
"MIT"
] | null | null | null | from django.views import View
from django.shortcuts import render
class HomeView(View):
template_name = 'login/base.html'
def get(self, request):
# <view logic>
return render(request, self.template_name)
| 22 | 52 | 0.665289 | 30 | 242 | 5.3 | 0.666667 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247934 | 242 | 10 | 53 | 24.2 | 0.873626 | 0.049587 | 0 | 0 | 0 | 0 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
2fda0fdd1934a2b3921d1df36703d5638e74b754 | 3,417 | py | Python | ensemble/logic/frozen_set.py | licit-lab/ensemble | 7a78ef0d69610d4fcfc5e008f931ade15e35acbf | [
"Linux-OpenIB"
] | null | null | null | ensemble/logic/frozen_set.py | licit-lab/ensemble | 7a78ef0d69610d4fcfc5e008f931ade15e35acbf | [
"Linux-OpenIB"
] | null | null | null | ensemble/logic/frozen_set.py | licit-lab/ensemble | 7a78ef0d69610d4fcfc5e008f931ade15e35acbf | [
"Linux-OpenIB"
] | null | null | null | """
Frozen Set
===========
This is a class describing a sorted frozen set. This is a collection implementation for a set of ordered elements that establish specific protocols for iteration, information access, element identification.
"""
# ============================================================================
# ... | 29.713043 | 206 | 0.556629 | 361 | 3,417 | 5.077562 | 0.34072 | 0.06383 | 0.05892 | 0.072013 | 0.286416 | 0.230769 | 0.230769 | 0.064375 | 0.064375 | 0.064375 | 0 | 0.0004 | 0.267779 | 3,417 | 114 | 207 | 29.973684 | 0.732214 | 0.278022 | 0 | 0.060606 | 0 | 0 | 0.017406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.287879 | false | 0 | 0.045455 | 0.19697 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2fdb4addb4ef65f41784ce1081c7c07db7393cc7 | 8,359 | py | Python | tests/test_scipy.py | akpc/margarita | 171fc160b32b60b30ff31e8ec62c7517da3d240d | [
"MIT"
] | null | null | null | tests/test_scipy.py | akpc/margarita | 171fc160b32b60b30ff31e8ec62c7517da3d240d | [
"MIT"
] | 1 | 2020-05-08T13:34:33.000Z | 2021-12-06T06:12:37.000Z | tests/test_scipy.py | akpc/margarita | 171fc160b32b60b30ff31e8ec62c7517da3d240d | [
"MIT"
] | null | null | null | import pytest, numpy
import tequila as tq
import copy
# skip usage of symbolic simulator
import tequila.simulators.simulator_api
simulators = []
for k in tequila.simulators.simulator_api.INSTALLED_SIMULATORS.keys():
if k != "symbolic":
simulators.append(k)
samplers = []
for k in tequila.simulators.simulato... | 51.598765 | 145 | 0.652111 | 1,253 | 8,359 | 4.260974 | 0.142059 | 0.040644 | 0.022476 | 0.070612 | 0.769245 | 0.731785 | 0.713429 | 0.669039 | 0.640382 | 0.632515 | 0 | 0.046218 | 0.174303 | 8,359 | 161 | 146 | 51.919255 | 0.727325 | 0.048929 | 0 | 0.496063 | 0 | 0 | 0.056423 | 0 | 0 | 0 | 0 | 0 | 0.055118 | 1 | 0.062992 | false | 0 | 0.031496 | 0 | 0.110236 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2febe8352ac026bc2788fb2fdc117ef1ae737914 | 105 | py | Python | 7 kyu/Two Oldest Ages/Two Oldest Ages.py | anthonyjatoba/codewars | 76b0d66dd1ba76a4d136b658920cdf85fd5c4b06 | [
"MIT"
] | null | null | null | 7 kyu/Two Oldest Ages/Two Oldest Ages.py | anthonyjatoba/codewars | 76b0d66dd1ba76a4d136b658920cdf85fd5c4b06 | [
"MIT"
] | null | null | null | 7 kyu/Two Oldest Ages/Two Oldest Ages.py | anthonyjatoba/codewars | 76b0d66dd1ba76a4d136b658920cdf85fd5c4b06 | [
"MIT"
] | null | null | null | def two_oldest_ages(ages):
m = max(ages)
ages.remove(m)
smax = max(ages)
return [smax, m] | 21 | 26 | 0.6 | 17 | 105 | 3.588235 | 0.529412 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 105 | 5 | 27 | 21 | 0.782051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ff92953bafbba3e44bf6dcd867d2b2932796901 | 325 | py | Python | ja/code_snippets/results/result.api-alert-show.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | ja/code_snippets/results/result.api-alert-show.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | ja/code_snippets/results/result.api-alert-show.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | {'creator': 3658,
'event_object': 'e7ac36c6531ccfa9e39c8988b0f28bdb',
'id': 525,
'message': 'We may need to add web hosts if this is consistently high.',
'name': 'Bytes received on host0',
'notify_no_data': False,
'query': 'avg(last_1h):sum:system.net.bytes_rcvd{host:host0} > 100',
'silenced': False,
'state': '... | 32.5 | 73 | 0.692308 | 45 | 325 | 4.888889 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106007 | 0.129231 | 325 | 9 | 74 | 36.111111 | 0.671378 | 0 | 0 | 0 | 0 | 0 | 0.723077 | 0.252308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ffbd75a9bac270b9027d6101da200e170cec595 | 298 | py | Python | section/admin.py | Shelo/cmdoc | 38d2da1a74ce6ab8144d5710ad3869ec73c46616 | [
"MIT"
] | null | null | null | section/admin.py | Shelo/cmdoc | 38d2da1a74ce6ab8144d5710ad3869ec73c46616 | [
"MIT"
] | null | null | null | section/admin.py | Shelo/cmdoc | 38d2da1a74ce6ab8144d5710ad3869ec73c46616 | [
"MIT"
] | null | null | null | from django.contrib import admin
from section import models
class SectionAdmin(admin.ModelAdmin):
list_display = ['short_content', 'document_title', 'owner', 'position',
'last_modified', 'message', 'modifier', 'editing']
admin.site.register(models.Section, SectionAdmin)
| 29.8 | 75 | 0.711409 | 32 | 298 | 6.5 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16443 | 298 | 9 | 76 | 33.111111 | 0.835341 | 0 | 0 | 0 | 0 | 0 | 0.251678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
640080c18bc24be65631113e7bd225f6d4a674bd | 123 | py | Python | fetch/h1-parsing/resources/message.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | fetch/h1-parsing/resources/message.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | fetch/h1-parsing/resources/message.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | def main(request, response):
response.writer.write(request.GET.first(b"message"))
response.close_connection = True
| 30.75 | 56 | 0.747967 | 16 | 123 | 5.6875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 123 | 3 | 57 | 41 | 0.842593 | 0 | 0 | 0 | 0 | 0 | 0.056911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
64041a984e100b210c4a189698336f8f8c98e632 | 221 | py | Python | agdc-v2/datacube/index/postgres/__init__.py | ceos-seo/Data_Cube_v2 | 81c3be66153ea123b5d21cf9ec7f59ccb7a2050a | [
"Apache-2.0"
] | 27 | 2016-08-16T18:22:47.000Z | 2018-08-25T17:18:15.000Z | datacube/index/postgres/__init__.py | cronosnull/agdc-v2 | 596923779d3650c47a6b43276b3369a5ec619158 | [
"Apache-2.0"
] | null | null | null | datacube/index/postgres/__init__.py | cronosnull/agdc-v2 | 596923779d3650c47a6b43276b3369a5ec619158 | [
"Apache-2.0"
] | 27 | 2016-08-26T18:14:40.000Z | 2021-12-24T08:41:29.000Z | # coding=utf-8
"""
Lower-level database access.
This package tries to contain any SQLAlchemy and database-specific code.
"""
from __future__ import absolute_import
from ._api import PostgresDb
__all__ = ['PostgresDb']
| 18.416667 | 72 | 0.773756 | 29 | 221 | 5.551724 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.140271 | 221 | 11 | 73 | 20.090909 | 0.842105 | 0.524887 | 0 | 0 | 0 | 0 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6407ff2508b554982a6c880969dc185d7ef3bdb4 | 320 | py | Python | modules/__init__.py | vladpi/zenmoney-bot | 280723a49979632811f585fb8dced3c396fe563a | [
"Apache-2.0"
] | null | null | null | modules/__init__.py | vladpi/zenmoney-bot | 280723a49979632811f585fb8dced3c396fe563a | [
"Apache-2.0"
] | 1 | 2022-02-16T22:29:36.000Z | 2022-02-16T22:29:54.000Z | modules/__init__.py | vladpi/zenmoney-bot | 280723a49979632811f585fb8dced3c396fe563a | [
"Apache-2.0"
] | null | null | null | import inspect
import sys
from .accounts import * # noqa
from .bot import * # noqa
from .categories import * # noqa
from .users import * # noqa
routers = []
for _, module in inspect.getmembers(sys.modules[__name__], inspect.ismodule):
if router := module.__dict__.get('router'):
routers.append(router)
| 24.615385 | 77 | 0.696875 | 40 | 320 | 5.35 | 0.55 | 0.186916 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 320 | 12 | 78 | 26.666667 | 0.823077 | 0.059375 | 0 | 0 | 0 | 0 | 0.02027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6423999ab6cca59eba66c8cf56c3fcca993ce33c | 626 | py | Python | helper_formula_converter.py | mikoim/software-rasterization-toolkit | ed04dc07edf8d8e7d0f00579e1e57d2773f389d7 | [
"MIT"
] | 2 | 2021-01-06T00:46:16.000Z | 2022-02-20T18:01:13.000Z | helper_formula_converter.py | mikoim/software-rasterization-toolkit | ed04dc07edf8d8e7d0f00579e1e57d2773f389d7 | [
"MIT"
] | null | null | null | helper_formula_converter.py | mikoim/software-rasterization-toolkit | ed04dc07edf8d8e7d0f00579e1e57d2773f389d7 | [
"MIT"
] | null | null | null | import re
formula = """
j n r v - i o r v - j m s v + h o s v + i m t v - h n t v
"""
clean_formula = re.sub(r"\s", "", formula)
normalized_formula = '*'.join(clean_formula)\
.replace('*-', '-') \
.replace('*+', '+') \
.replace('*/', '/') \
.replace('*(', '(') \
.replace('*)', ')')\
.replace('... | 22.357143 | 58 | 0.404153 | 73 | 626 | 3.383562 | 0.410959 | 0.510121 | 0.680162 | 0.793522 | 0.283401 | 0.283401 | 0.283401 | 0.283401 | 0.283401 | 0 | 0 | 0 | 0.252396 | 626 | 27 | 59 | 23.185185 | 0.527778 | 0 | 0 | 0 | 0 | 0.047619 | 0.196486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.190476 | 0.047619 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6427ba2f454795f6a082ccf196151e728d707ff7 | 1,401 | py | Python | server_app/mongodb_lsh/interfaces.py | CKPOON0619/lsh_doc | 627d7f641628815e5f8be57422187484645985db | [
"MIT"
] | null | null | null | server_app/mongodb_lsh/interfaces.py | CKPOON0619/lsh_doc | 627d7f641628815e5f8be57422187484645985db | [
"MIT"
] | null | null | null | server_app/mongodb_lsh/interfaces.py | CKPOON0619/lsh_doc | 627d7f641628815e5f8be57422187484645985db | [
"MIT"
] | null | null | null | '''
Interfaces for app api
'''
from pydantic import BaseModel
from typing import Optional, List
class ItemInfo(BaseModel):
itemId: str
itemType: str
contentType: str
content: str
class TenantRegistry(BaseModel):
tenantId: str
class UserRegistry(BaseModel):
email: str
class TenantUserReg... | 16.879518 | 45 | 0.695218 | 146 | 1,401 | 6.636986 | 0.273973 | 0.140351 | 0.165119 | 0.209494 | 0.500516 | 0.434469 | 0.434469 | 0.434469 | 0.434469 | 0.375645 | 0 | 0 | 0.236974 | 1,401 | 82 | 46 | 17.085366 | 0.906455 | 0.015703 | 0 | 0.672414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
642f56576867b93742b156c7945fc374fde32540 | 254 | py | Python | tests/xoto3/utils/b64_test.py | xoeye/xoto3 | ef91cde3cce81e1ded311389358271d5c8eba02b | [
"MIT"
] | 16 | 2020-05-23T15:23:38.000Z | 2022-03-18T19:28:37.000Z | tests/xoto3/utils/b64_test.py | xoeye/xoto3 | ef91cde3cce81e1ded311389358271d5c8eba02b | [
"MIT"
] | 9 | 2020-08-19T23:08:36.000Z | 2021-10-06T17:16:35.000Z | tests/xoto3/utils/b64_test.py | xoeye/xoto3 | ef91cde3cce81e1ded311389358271d5c8eba02b | [
"MIT"
] | 2 | 2020-12-12T08:23:53.000Z | 2021-09-03T20:25:54.000Z | from xoto3.utils.b64 import obj_to_base64, base64_to_obj
def test_decoding():
obj = dict(birthday=[2014, 12, 22, 6, 42, 11], age="Steve")
assert base64_to_obj(obj_to_base64(obj)) == obj
assert base64_to_obj(obj_to_base64(dict())) == dict()
| 31.75 | 63 | 0.704724 | 43 | 254 | 3.860465 | 0.511628 | 0.090361 | 0.198795 | 0.204819 | 0.337349 | 0.337349 | 0.337349 | 0 | 0 | 0 | 0 | 0.12963 | 0.149606 | 254 | 7 | 64 | 36.285714 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0.019685 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
643dff50503e9745d708528054a8765c2eb10525 | 214 | py | Python | backend/app/app/api/schemas/token.py | bigSAS/fast-api-backend-starter | 21d92632e9c9668de461dd7f40156ae098765242 | [
"MIT"
] | 1 | 2021-06-23T14:38:24.000Z | 2021-06-23T14:38:24.000Z | backend/app/app/api/schemas/token.py | bigSAS/fast-api-backend-starter | 21d92632e9c9668de461dd7f40156ae098765242 | [
"MIT"
] | null | null | null | backend/app/app/api/schemas/token.py | bigSAS/fast-api-backend-starter | 21d92632e9c9668de461dd7f40156ae098765242 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
from typing import List
class Token(BaseModel):
access_token: str
token_type: str
class TokenData(BaseModel):
username: str
email: str
permissions: List[dict]
| 15.285714 | 30 | 0.724299 | 27 | 214 | 5.666667 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214953 | 214 | 13 | 31 | 16.461538 | 0.910714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ff28b533e58f82f7f08df0e22f1ecf891db86e36 | 6,390 | py | Python | tests/double_indent_test.py | theendlessriver13/double-indent | 0eb54112cbb88b863f165df3524bd5945a32ece7 | [
"MIT"
] | null | null | null | tests/double_indent_test.py | theendlessriver13/double-indent | 0eb54112cbb88b863f165df3524bd5945a32ece7 | [
"MIT"
] | 2 | 2022-01-03T19:26:37.000Z | 2022-02-07T19:37:51.000Z | tests/double_indent_test.py | theendlessriver13/double-indent | 0eb54112cbb88b863f165df3524bd5945a32ece7 | [
"MIT"
] | null | null | null | import pytest
from tokenize_rt import src_to_tokens
from double_indent import _find_outer_parens
from double_indent import _fix_src
from double_indent import _is_multiline_def
def test_find_matching_parens():
f = '''\
def f(
x = (5, 6),
x = 6,
):
pass
'''
tokens = src_to_tokens(f)
assert _fin... | 23.579336 | 78 | 0.313615 | 629 | 6,390 | 3.0938 | 0.146264 | 0.06372 | 0.064234 | 0.067831 | 0.68705 | 0.59147 | 0.502056 | 0.474306 | 0.424974 | 0.393114 | 0 | 0.007052 | 0.533959 | 6,390 | 270 | 79 | 23.666667 | 0.646407 | 0 | 0 | 0.769531 | 0 | 0 | 0.335524 | 0 | 0 | 0 | 0 | 0 | 0.027344 | 1 | 0.023438 | false | 0.121094 | 0.019531 | 0 | 0.042969 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ff353fee9d8aa038727b6476982c7aa242ce8edc | 683 | py | Python | advisor_server/suggestion/algorithm/base_algorithm_test.py | zrcahyx/advisor | 1b608f8401c4aa611ee80ed9c6f25b8dbcafd16d | [
"Apache-2.0"
] | null | null | null | advisor_server/suggestion/algorithm/base_algorithm_test.py | zrcahyx/advisor | 1b608f8401c4aa611ee80ed9c6f25b8dbcafd16d | [
"Apache-2.0"
] | null | null | null | advisor_server/suggestion/algorithm/base_algorithm_test.py | zrcahyx/advisor | 1b608f8401c4aa611ee80ed9c6f25b8dbcafd16d | [
"Apache-2.0"
] | null | null | null | import json
from django.test import TestCase
from suggestion.models import Study
from suggestion.models import Trial
from suggestion.algorithm.base_algorithm import BaseSuggestionAlgorithm
from suggestion.algorithm.base_algorithm import BaseEarlyStopAlgorithm
class RandomSearchAlgorithmTest(TestCase):
def setUp(s... | 27.32 | 78 | 0.802343 | 60 | 683 | 8.95 | 0.383333 | 0.104283 | 0.074488 | 0.096834 | 0.156425 | 0.156425 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146413 | 683 | 24 | 79 | 28.458333 | 0.921098 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.176471 | false | 0.117647 | 0.352941 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
ff3879ae7ff69a243e5cc84cab4c6f9d78de26dc | 10,345 | py | Python | mypj3/kakuninn.py | TakenokoEmpire/mypj | fcc56c1113c88d6611b60d0855d6c79df7add7fb | [
"MIT"
] | null | null | null | mypj3/kakuninn.py | TakenokoEmpire/mypj | fcc56c1113c88d6611b60d0855d6c79df7add7fb | [
"MIT"
] | null | null | null | mypj3/kakuninn.py | TakenokoEmpire/mypj | fcc56c1113c88d6611b60d0855d6c79df7add7fb | [
"MIT"
] | null | null | null | import pygame
from pygame import mixer
import time
pygame.init()
mixer.init()
import sys
from pygame.locals import *
import random
### 画面初期化
surface = pygame.display.set_mode((360, 640))
clock = pygame.time.Clock()
FPS = 72
surface.fill((0,0,0))
color_list = [(175,238,238),(238,130,238),(212,175,55)]
color = color_lis... | 36.171329 | 85 | 0.558627 | 1,376 | 10,345 | 4.15189 | 0.122093 | 0.030807 | 0.051462 | 0.049011 | 0.790653 | 0.744267 | 0.725538 | 0.66795 | 0.636268 | 0.594959 | 0 | 0.131134 | 0.284969 | 10,345 | 285 | 86 | 36.298246 | 0.641071 | 0.02407 | 0 | 0.756477 | 0 | 0 | 0.077202 | 0.037663 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031088 | 0 | 0.031088 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 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 | 3 |
ff3a1135c696814356b6d952fc22e64d2fc58d3a | 118 | py | Python | models/test_spatial-correlation-sampler.py | xdr940/cc | a98fe9b6c33c332a4c399f968032a90989c55672 | [
"MIT"
] | null | null | null | models/test_spatial-correlation-sampler.py | xdr940/cc | a98fe9b6c33c332a4c399f968032a90989c55672 | [
"MIT"
] | 1 | 2019-08-16T07:09:22.000Z | 2019-09-04T04:59:51.000Z | models/test_spatial-correlation-sampler.py | xdr940/cc | a98fe9b6c33c332a4c399f968032a90989c55672 | [
"MIT"
] | 1 | 2020-01-13T04:51:22.000Z | 2020-01-13T04:51:22.000Z | import matplotlib.pyplot as plt
import torch
img = torch.ones(3,100,100)
plt.imsave('test.png',img,cmap='plasma')
| 14.75 | 40 | 0.728814 | 20 | 118 | 4.3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 0.118644 | 118 | 7 | 41 | 16.857143 | 0.759615 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ff4f690faa145a5aabdd5753f3bee4a211c47b04 | 134 | py | Python | 01 arrays/test.py | harshrajm/Python-Algo-DS | 02437fa923b2b6264b29bd7ba84ccbb7feb9c8f0 | [
"MIT"
] | null | null | null | 01 arrays/test.py | harshrajm/Python-Algo-DS | 02437fa923b2b6264b29bd7ba84ccbb7feb9c8f0 | [
"MIT"
] | null | null | null | 01 arrays/test.py | harshrajm/Python-Algo-DS | 02437fa923b2b6264b29bd7ba84ccbb7feb9c8f0 | [
"MIT"
] | null | null | null | def sum1(n):
final_sum = 0
for x in range(n+1):
final_sum += x
return final_sum
print(sum1(10)) | 14.888889 | 25 | 0.5 | 21 | 134 | 3.047619 | 0.666667 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.395522 | 134 | 9 | 26 | 14.888889 | 0.716049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
ff53b38e122e28f6a078ffaaba89d01b86e7b335 | 463 | py | Python | pero/scales/__init__.py | xxao/pero | a7f0c84fae0b21fe120204e798bd61cdab3a125d | [
"MIT"
] | 13 | 2019-07-15T17:51:21.000Z | 2022-03-15T06:13:43.000Z | pero/scales/__init__.py | xxao/pero | a7f0c84fae0b21fe120204e798bd61cdab3a125d | [
"MIT"
] | 1 | 2021-12-29T00:46:44.000Z | 2022-01-21T16:18:48.000Z | pero/scales/__init__.py | xxao/pero | a7f0c84fae0b21fe120204e798bd61cdab3a125d | [
"MIT"
] | 3 | 2020-09-27T14:31:45.000Z | 2022-01-22T14:28:15.000Z | # Created byMartin.cz
# Copyright (c) Martin Strohalm. All rights reserved.
# import main objects
from . interpols import Interpol, LinInterpol, LogInterpol, PowInterpol
from . scale import Scale
from . ordinal import OrdinalScale
from . levels import LevelScale
from . continuous import ContinuousScale, LinScale, L... | 35.615385 | 90 | 0.812095 | 50 | 463 | 7.52 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136069 | 463 | 12 | 91 | 38.583333 | 0.94 | 0.198704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ff6e2e015cd41f3581814a92aa9a93bcc77204c2 | 2,677 | py | Python | databaseModel.py | yurunyang1998/XUPT_- | 415c20550b54914b1206cfa3b83ddbe8260e7a6f | [
"MIT"
] | null | null | null | databaseModel.py | yurunyang1998/XUPT_- | 415c20550b54914b1206cfa3b83ddbe8260e7a6f | [
"MIT"
] | null | null | null | databaseModel.py | yurunyang1998/XUPT_- | 415c20550b54914b1206cfa3b83ddbe8260e7a6f | [
"MIT"
] | null | null | null | # Created by GuoXin
from index_page import db
class Users(db.Model):
__tablename__ = "Users"
UserName = db.Column(db.String(20), primary_key=True)
RealyName = db.Column(db.String(20))
UserTele = db.Column(db.String(11))
PassWord = db.Column(db.String(25))
RoleNum = db.Column(db.INT)
class ... | 28.478723 | 90 | 0.686216 | 369 | 2,677 | 4.813008 | 0.181572 | 0.18018 | 0.225225 | 0.243243 | 0.567568 | 0.393018 | 0.286599 | 0.15991 | 0.121622 | 0.121622 | 0 | 0.02451 | 0.161748 | 2,677 | 94 | 91 | 28.478723 | 0.766934 | 0.00635 | 0 | 0.123077 | 0 | 0 | 0.067319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.046154 | 0.015385 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ffa2ca258c5e96196f56c9bf184203c2833ede16 | 1,229 | py | Python | hata/discord/channel/metadata/__init__.py | WizzyBots/hata | f6991afc0bebf7dad932888a536f4d010f8663c7 | [
"0BSD"
] | null | null | null | hata/discord/channel/metadata/__init__.py | WizzyBots/hata | f6991afc0bebf7dad932888a536f4d010f8663c7 | [
"0BSD"
] | 1 | 2022-02-08T16:54:39.000Z | 2022-02-08T16:54:39.000Z | hata/discord/channel/metadata/__init__.py | WizzyBots/hata | f6991afc0bebf7dad932888a536f4d010f8663c7 | [
"0BSD"
] | null | null | null | from .base import *
from .guild_announcements import *
from .guild_base import *
from .guild_category import *
from .guild_directory import *
from .guild_forum import *
from .guild_main_base import *
from .guild_stage import *
from .guild_store import *
from .guild_text import *
from .guild_text_base import *
from .gui... | 26.148936 | 41 | 0.753458 | 156 | 1,229 | 5.051282 | 0.121795 | 0.253807 | 0.304569 | 0.120558 | 0.063452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158666 | 1,229 | 46 | 42 | 26.717391 | 0.762089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.477273 | 0 | 0.477273 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ffa4cb292378c6be357dd4bd52e2217f2a26a669 | 178 | py | Python | app/core/urls.py | NDevox/website | 76004e667f2295eddd79d500ba21f02a0480412f | [
"Apache-2.0"
] | null | null | null | app/core/urls.py | NDevox/website | 76004e667f2295eddd79d500ba21f02a0480412f | [
"Apache-2.0"
] | null | null | null | app/core/urls.py | NDevox/website | 76004e667f2295eddd79d500ba21f02a0480412f | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from .views import task_result_view
app_name = 'core'
urlpatterns = [
path('tasks/<uuid:task_id>', task_result_view, name='task-results'),
]
| 16.181818 | 72 | 0.724719 | 26 | 178 | 4.730769 | 0.653846 | 0.162602 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 178 | 10 | 73 | 17.8 | 0.809211 | 0 | 0 | 0 | 0 | 0 | 0.202247 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ffab386fb79442b8a7ab5bd16ad9699b6241d3ac | 1,350 | py | Python | syntax/Nodes/Token.py | GallupGovt/pymln | d904fcd4f36c8c2409924e1bd4cc2b07242ae8cb | [
"MIT"
] | 9 | 2020-03-11T21:42:02.000Z | 2020-12-16T05:40:34.000Z | syntax/Nodes/Token.py | GallupGovt/pymln | d904fcd4f36c8c2409924e1bd4cc2b07242ae8cb | [
"MIT"
] | null | null | null | syntax/Nodes/Token.py | GallupGovt/pymln | d904fcd4f36c8c2409924e1bd4cc2b07242ae8cb | [
"MIT"
] | 1 | 2020-12-15T09:05:44.000Z | 2020-12-15T09:05:44.000Z |
class Token(object):
def __init__(self, pos, lemma, form=None):
self._pos = pos
self._lemma = lemma
if form is None:
self._form = lemma
else:
self._form = form
self._tkn_cnt = dict()
def __repr__(self):
return self.toString()
def... | 19.285714 | 72 | 0.50963 | 173 | 1,350 | 3.82659 | 0.260116 | 0.10574 | 0.148036 | 0.102719 | 0.172205 | 0.117825 | 0.117825 | 0.117825 | 0 | 0 | 0 | 0.00346 | 0.357778 | 1,350 | 69 | 73 | 19.565217 | 0.760092 | 0 | 0 | 0.097561 | 0 | 0 | 0.007418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0 | 0 | 0.219512 | 0.585366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ffb897ba59f44cbf0397c2950cecf5420a9618f7 | 382 | py | Python | external/hashgen/hashes.py | phixion/l0phtcrack | 48ee2f711134e178dbedbd925640f6b3b663fbb5 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-10-20T00:25:39.000Z | 2021-11-08T12:52:42.000Z | external/hashgen/hashes.py | Brute-f0rce/l0phtcrack | 25f681c07828e5e68e0dd788d84cc13c154aed3d | [
"Apache-2.0",
"MIT"
] | null | null | null | external/hashgen/hashes.py | Brute-f0rce/l0phtcrack | 25f681c07828e5e68e0dd788d84cc13c154aed3d | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-14T06:41:16.000Z | 2022-03-14T06:41:16.000Z | from passlib.hash import sha256_crypt, sha512_crypt
import random
import string
import sys
username=''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(8))
if sys.argv[1]=="sha256":
print username+":"+sha256_crypt.encrypt(sys.argv[2],rounds=10000)
elif sys.argv[1]=="sha512":
print... | 31.833333 | 90 | 0.740838 | 57 | 382 | 4.859649 | 0.508772 | 0.101083 | 0.057762 | 0.137184 | 0.223827 | 0.223827 | 0.223827 | 0 | 0 | 0 | 0 | 0.096774 | 0.10733 | 382 | 11 | 91 | 34.727273 | 0.715543 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0.444444 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
80ff61751299458da5a6e5e347ed1369817e4347 | 527 | py | Python | kinetick/models/contract.py | ShabbirHasan1/kinetick | 9846210535e4f86bbac3611ff7883fd89103fb53 | [
"Apache-2.0"
] | 14 | 2021-09-02T05:02:05.000Z | 2022-03-20T10:00:55.000Z | kinetick/models/contract.py | aWFtbGVnaW9u/kinetick | 2562a666ff57e72d1314e053db415d2873b8f71f | [
"Apache-2.0"
] | 2 | 2021-10-17T15:20:22.000Z | 2022-01-09T05:39:42.000Z | kinetick/models/contract.py | aWFtbGVnaW9u/kinetick | 2562a666ff57e72d1314e053db415d2873b8f71f | [
"Apache-2.0"
] | 12 | 2021-09-02T17:12:05.000Z | 2022-02-14T10:56:54.000Z | from mongoengine import Document, StringField, DateTimeField, DecimalField
CURRENCY = ('INR', 'USD')
class Contract(Document):
tickerId = StringField(max_length=50, required=False, unique=True)
symbol = StringField(max_length=50, required=True, unique=True)
sec_type = StringField(max_length=50, required=... | 35.133333 | 74 | 0.741935 | 59 | 527 | 6.525424 | 0.491525 | 0.181818 | 0.25974 | 0.228571 | 0.350649 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0.020089 | 0.149905 | 527 | 14 | 75 | 37.642857 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.011385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
443c313b23307d3efbf2a4e0b6aac422f61513e9 | 226 | py | Python | gym_bandit/__init__.py | keithnyati/gym-bandit | 0046b7eb7709717f9d633f696de1ae76651fbb7d | [
"MIT"
] | 1 | 2020-01-17T20:52:23.000Z | 2020-01-17T20:52:23.000Z | gym_bandit/__init__.py | kthnyt/gym-bandit | 0046b7eb7709717f9d633f696de1ae76651fbb7d | [
"MIT"
] | null | null | null | gym_bandit/__init__.py | kthnyt/gym-bandit | 0046b7eb7709717f9d633f696de1ae76651fbb7d | [
"MIT"
] | null | null | null | from gym.envs.registration import register
register(
id='GreedyBandit-v1',
entry_point='gym_bandit.envs:GreedyBanditEnv',
)
register(
id='GradientBandit-v0',
entry_point='gym_bandit.envs:GradientBanditEnv',
) | 20.545455 | 52 | 0.747788 | 26 | 226 | 6.346154 | 0.615385 | 0.121212 | 0.157576 | 0.230303 | 0.278788 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.128319 | 226 | 11 | 53 | 20.545455 | 0.827411 | 0 | 0 | 0.222222 | 0 | 0 | 0.422907 | 0.281938 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4446bd819f5bdf73a165c6379340a68d4341bacb | 106 | py | Python | bittensor/_neuron/text/template_miner/main.py | chaosxcode/bittensor | 9c2f513cc7fb03844952ae3755162ed914b11cba | [
"MIT"
] | null | null | null | bittensor/_neuron/text/template_miner/main.py | chaosxcode/bittensor | 9c2f513cc7fb03844952ae3755162ed914b11cba | [
"MIT"
] | null | null | null | bittensor/_neuron/text/template_miner/main.py | chaosxcode/bittensor | 9c2f513cc7fb03844952ae3755162ed914b11cba | [
"MIT"
] | null | null | null | import bittensor
if __name__ == "__main__":
template = bittensor.neurons.template_miner.neuron().run() | 35.333333 | 62 | 0.754717 | 12 | 106 | 5.916667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 106 | 3 | 62 | 35.333333 | 0.755319 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
444f05bd9f9cf88ed9633c5e80fb02af7defcc2e | 2,508 | py | Python | tests/base.py | santiagobasulto/parallel | 7e729ca720bbdacdb656f6ab19baa5f2d33341d6 | [
"MIT"
] | 22 | 2019-06-10T21:16:16.000Z | 2022-03-27T04:36:15.000Z | tests/base.py | santiagobasulto/parallel | 7e729ca720bbdacdb656f6ab19baa5f2d33341d6 | [
"MIT"
] | 5 | 2019-06-15T23:12:53.000Z | 2020-12-02T08:53:51.000Z | tests/base.py | santiagobasulto/parallel | 7e729ca720bbdacdb656f6ab19baa5f2d33341d6 | [
"MIT"
] | null | null | null | import time
import parallel
__all__ = [
'sleep_return_single_param',
'sleep_return_tuple',
'sleep_return_multi_param',
'sleep_return_optional_param',
'sleep_return_tuple_optional',
'sleep_return_kwargs',
'sleep_return_single_param_decorated',
'sleep_return_multi_param_decorated',
... | 23.660377 | 74 | 0.728469 | 313 | 2,508 | 5.507987 | 0.121406 | 0.204176 | 0.097448 | 0.092807 | 0.800464 | 0.727958 | 0.62355 | 0.477378 | 0.461137 | 0.404292 | 0 | 0.000975 | 0.181818 | 2,508 | 106 | 75 | 23.660377 | 0.839181 | 0 | 0 | 0.54878 | 0 | 0 | 0.157035 | 0.129932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158537 | false | 0 | 0.02439 | 0.012195 | 0.414634 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4476bd32a433c8b9e2304c86cb28a114fa662563 | 246 | py | Python | rgitools/tests/conftest.py | OGGM/rgi-toolkit | f1f670a2ba7c01ce1518ec64fe240b48ceb2f9f8 | [
"BSD-3-Clause"
] | 6 | 2018-05-09T07:53:28.000Z | 2019-11-29T16:28:08.000Z | rgitools/tests/conftest.py | OGGM/rgi-toolkit | f1f670a2ba7c01ce1518ec64fe240b48ceb2f9f8 | [
"BSD-3-Clause"
] | 22 | 2020-01-13T15:10:36.000Z | 2020-11-16T08:16:08.000Z | rgitools/tests/conftest.py | OGGM/rgi-toolkit | f1f670a2ba7c01ce1518ec64fe240b48ceb2f9f8 | [
"BSD-3-Clause"
] | 4 | 2018-05-11T18:08:28.000Z | 2019-12-06T02:24:04.000Z | import pytest
from oggm.utils import _downloads
from oggm.tests.conftest import secure_url_retrieve
@pytest.fixture(autouse=True)
def patch_url_retrieve(monkeypatch):
monkeypatch.setattr(_downloads, 'oggm_urlretrieve', secure_url_retrieve)
| 27.333333 | 76 | 0.837398 | 32 | 246 | 6.15625 | 0.59375 | 0.167513 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089431 | 246 | 8 | 77 | 30.75 | 0.879464 | 0 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4487e92699363194a0f390b6ea258f2903a59bb3 | 111 | py | Python | week2/6.py | kamorozov/coursera_python | 706bc1bc46839f8b3debdf293240ad5ce20c9775 | [
"Unlicense"
] | 2 | 2019-05-17T13:42:02.000Z | 2019-05-18T04:00:35.000Z | week2/6.py | kamorozov/coursera_python | 706bc1bc46839f8b3debdf293240ad5ce20c9775 | [
"Unlicense"
] | null | null | null | week2/6.py | kamorozov/coursera_python | 706bc1bc46839f8b3debdf293240ad5ce20c9775 | [
"Unlicense"
] | 2 | 2019-10-03T09:07:44.000Z | 2019-12-28T19:17:20.000Z | x = int(input())
y = int(input())
z = y % (y - x + 1)
if z == 0:
print('YES')
else:
print('NO')
| 13.875 | 20 | 0.414414 | 19 | 111 | 2.421053 | 0.631579 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.333333 | 111 | 7 | 21 | 15.857143 | 0.594595 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
922d7eb38e4d9f3b2f2c901229fae63f90b96145 | 1,440 | py | Python | tests/test_getter.py | MacHu-GWU/inspect_mate-project | a3d0980ee259daf578bb2226fea311af08ab435b | [
"MIT"
] | 4 | 2019-10-29T02:28:28.000Z | 2021-12-02T17:48:53.000Z | tests/test_getter.py | MacHu-GWU/inspect_mate-project | a3d0980ee259daf578bb2226fea311af08ab435b | [
"MIT"
] | null | null | null | tests/test_getter.py | MacHu-GWU/inspect_mate-project | a3d0980ee259daf578bb2226fea311af08ab435b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from inspect_mate.tests import Klass, instance
from inspect_mate.getter import *
def keys(items):
return set([item[0] for item in items])
def test():
assert keys(get_attributes(Klass)) == {"attribute"}
assert keys(get_property_methods(Klass)) ... | 34.285714 | 78 | 0.693056 | 172 | 1,440 | 5.465116 | 0.27907 | 0.148936 | 0.193617 | 0.22234 | 0.660638 | 0.580851 | 0.425532 | 0.097872 | 0 | 0 | 0 | 0.001643 | 0.154861 | 1,440 | 41 | 79 | 35.121951 | 0.770748 | 0.029167 | 0 | 0.071429 | 0 | 0 | 0.222779 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.071429 | false | 0 | 0.142857 | 0.035714 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
923f38ed3ce5760b1b5da56394ac05f1ed87014f | 254 | gyp | Python | binding.gyp | liushoukai/node-hash-functions | 326fe5042920eab419455709eebf673f76ab2aa7 | [
"MIT"
] | 11 | 2015-10-29T06:06:30.000Z | 2021-09-14T03:11:00.000Z | binding.gyp | liushoukai/node-hash-functions | 326fe5042920eab419455709eebf673f76ab2aa7 | [
"MIT"
] | 3 | 2015-10-30T14:53:20.000Z | 2017-07-21T04:07:23.000Z | binding.gyp | liushoukai/node-hash-functions | 326fe5042920eab419455709eebf673f76ab2aa7 | [
"MIT"
] | 3 | 2015-10-29T06:09:52.000Z | 2019-09-16T07:21:45.000Z | {
"targets": [
{
"target_name": "nodehashes",
"sources": [ "src/CalculateHash.cpp", "src/GeneralHashFunctions.cpp", "src/MurmurHash3.cpp" ],
"include_dirs": [ "<!(node -e \"require('nan')\")" ]
}
]
}
| 25.4 | 106 | 0.488189 | 20 | 254 | 6.1 | 0.8 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.295276 | 254 | 9 | 107 | 28.222222 | 0.675978 | 0 | 0 | 0 | 0 | 0 | 0.515748 | 0.192913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b8716da4a27e4c40ad43b6cb8f673e28600c5e8 | 192 | py | Python | practice/prabhkar1.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | 1 | 2020-01-15T11:04:16.000Z | 2020-01-15T11:04:16.000Z | practice/prabhkar1.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | 2 | 2021-03-31T19:36:19.000Z | 2021-06-10T22:29:26.000Z | practice/prabhkar1.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | null | null | null | with open('requests1.py','w+') as file:
file.writelines('import requests \
r = requests.get("http://www.pythonhow.com") \
print(r.text[:100])')
| 32 | 65 | 0.510417 | 22 | 192 | 4.454545 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.3125 | 192 | 5 | 66 | 38.4 | 0.712121 | 0 | 0 | 0 | 0 | 0 | 0.203209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b90ab5de49b52b9a73945a43cf3e26efa0a554f | 1,139 | py | Python | gdeck/gdeck.py | damiiegregorio/gdeck | fca2857b88ea7fbc41d148ad7efee2456c5e4e21 | [
"MIT"
] | null | null | null | gdeck/gdeck.py | damiiegregorio/gdeck | fca2857b88ea7fbc41d148ad7efee2456c5e4e21 | [
"MIT"
] | null | null | null | gdeck/gdeck.py | damiiegregorio/gdeck | fca2857b88ea7fbc41d148ad7efee2456c5e4e21 | [
"MIT"
] | null | null | null | import random
class Card:
def __init__(self, suit, rank):
self.suit = suit
self.rank = rank
def __repr__(self):
return "{} of {}".format(self.rank, self.suit)
class Deck:
suit = ['Clubs', 'Diamonds', 'Hearts', 'Spades']
rank = ['Ace', "2", "3", "4", "5", "6", "... | 23.244898 | 95 | 0.553117 | 148 | 1,139 | 4 | 0.351351 | 0.081081 | 0.101351 | 0.091216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015892 | 0.281826 | 1,139 | 48 | 96 | 23.729167 | 0.707824 | 0.158911 | 0 | 0 | 0 | 0 | 0.067816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0.12 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2b9404d6bf50abd6cafdffa321265c1e7cd976d6 | 175 | py | Python | web/mooctracker/pages/urls.py | Jaaga/mooc-tracker | b7be270d24fa2608042064dc87ae13740893bade | [
"MIT"
] | null | null | null | web/mooctracker/pages/urls.py | Jaaga/mooc-tracker | b7be270d24fa2608042064dc87ae13740893bade | [
"MIT"
] | 1 | 2020-06-05T17:43:59.000Z | 2020-06-05T17:43:59.000Z | web/mooctracker/pages/urls.py | Jaaga/mooc-tracker | b7be270d24fa2608042064dc87ae13740893bade | [
"MIT"
] | 2 | 2015-02-25T10:46:20.000Z | 2016-10-28T11:24:32.000Z | from django.conf.urls import patterns
from .views import *
urlpatterns = patterns('',
(r'^dashboard/$', dashboard),
(r'^student-dashboard/$', student_dashboard),
) | 17.5 | 47 | 0.68 | 19 | 175 | 6.210526 | 0.578947 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154286 | 175 | 10 | 48 | 17.5 | 0.797297 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2b9570b3c39782b4f824c9ca4852b92520ded832 | 192 | py | Python | AdvancedPythonObjectsandDataStructures/advance_numbers.py | theprogrammingthinker/Python-practice | fef11a7fbd5082a0614b01f88a13ea29d68860bf | [
"Unlicense"
] | 1 | 2017-05-02T10:28:36.000Z | 2017-05-02T10:28:36.000Z | AdvancedPythonObjectsandDataStructures/advance_numbers.py | theprogrammingthinker/Python-practice | fef11a7fbd5082a0614b01f88a13ea29d68860bf | [
"Unlicense"
] | null | null | null | AdvancedPythonObjectsandDataStructures/advance_numbers.py | theprogrammingthinker/Python-practice | fef11a7fbd5082a0614b01f88a13ea29d68860bf | [
"Unlicense"
] | null | null | null | print(hex(12))
print(hex(512))
print(bin(1234))
print(bin(128))
print(bin(512))
print(2 ** 4)
print(pow(2, 4, 3))
print(abs(2))
print(abs(24))
print(round(3.3))
print(round(3.141592, 2))
| 11.294118 | 25 | 0.635417 | 38 | 192 | 3.210526 | 0.394737 | 0.196721 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 0.109375 | 192 | 16 | 26 | 12 | 0.520468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2b95e9c7fad14c549f114726729caa6301699fc4 | 1,156 | py | Python | base.py | hcieslewicz/A1 | 581c097282b4d76b7611f9d518513278a965d8df | [
"MIT"
] | null | null | null | base.py | hcieslewicz/A1 | 581c097282b4d76b7611f9d518513278a965d8df | [
"MIT"
] | null | null | null | base.py | hcieslewicz/A1 | 581c097282b4d76b7611f9d518513278a965d8df | [
"MIT"
] | null | null | null | from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
# this Base class is serving basic attributes for every single page inherited from Page class
class Page(object):
def __init__(self, driver, base_url=''):
self.base_url = base_url
... | 32.111111 | 97 | 0.684256 | 153 | 1,156 | 4.980392 | 0.359477 | 0.104987 | 0.066929 | 0.11811 | 0.21916 | 0.21916 | 0.21916 | 0.21916 | 0.21916 | 0.154856 | 0 | 0.008743 | 0.208478 | 1,156 | 35 | 98 | 33.028571 | 0.824044 | 0.07872 | 0 | 0 | 0 | 0 | 0.003763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.208333 | 0.708333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2ba25d15102dd8b3f9fcd4931790f8e2f692410b | 151 | py | Python | tikz/graph-triangles/coordinates.py | RalfGuder/LaTeX-examples | a1bf9fe422969be1ca4674394ebd2170c07f7693 | [
"MIT"
] | 1,231 | 2015-01-07T04:04:25.000Z | 2022-03-31T17:43:29.000Z | tikz/graph-triangles/coordinates.py | DoubleL61/LaTeX-examples | cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c | [
"MIT"
] | 5 | 2015-05-10T13:10:47.000Z | 2021-05-02T21:28:49.000Z | tikz/graph-triangles/coordinates.py | DoubleL61/LaTeX-examples | cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c | [
"MIT"
] | 400 | 2015-01-05T06:22:18.000Z | 2022-03-19T04:07:59.000Z | def give_coordinates(n):
for y in range(0, n):
for x in range(y, 2*n-y, 2):
print(x, y)
print("")
give_coordinates(5)
| 18.875 | 36 | 0.516556 | 26 | 151 | 2.923077 | 0.5 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.331126 | 151 | 7 | 37 | 21.571429 | 0.712871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ba8597dcb1b5f855667ecb77ce2fd4a92b80f08 | 27,615 | py | Python | tests/service/optimizer/test_profile.py | vinifmor/guapow | 59a9a1e6706bacbcb3d4bbc762ff9264d5e6f582 | [
"Zlib"
] | 7 | 2021-10-06T17:02:13.000Z | 2022-03-22T10:45:23.000Z | tests/service/optimizer/test_profile.py | vinifmor/guapow | 59a9a1e6706bacbcb3d4bbc762ff9264d5e6f582 | [
"Zlib"
] | 2 | 2022-03-16T11:20:54.000Z | 2022-03-24T13:54:49.000Z | tests/service/optimizer/test_profile.py | vinifmor/guapow | 59a9a1e6706bacbcb3d4bbc762ff9264d5e6f582 | [
"Zlib"
] | null | null | null | from unittest import TestCase, IsolatedAsyncioTestCase
from unittest.mock import Mock, patch, AsyncMock, call
from guapow import __app_name__
from guapow.common.config import OptimizerConfig
from guapow.common.model_util import FileModelFiller
from guapow.common.profile import StopProcessSettings
from guapow.service.o... | 42.354294 | 110 | 0.738222 | 3,277 | 27,615 | 5.88404 | 0.071407 | 0.04792 | 0.088995 | 0.029094 | 0.786018 | 0.745773 | 0.702365 | 0.650192 | 0.601079 | 0.561041 | 0 | 0.003531 | 0.169401 | 27,615 | 651 | 111 | 42.419355 | 0.837119 | 0.003513 | 0 | 0.51153 | 0 | 0 | 0.062416 | 0.053692 | 0 | 0 | 0 | 0 | 0.536688 | 1 | 0.08805 | false | 0 | 0.016771 | 0 | 0.125786 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2bb200562771a8f53371ed815affb489e2783a0a | 336 | py | Python | Kattis/doorman.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | null | null | null | Kattis/doorman.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | null | null | null | Kattis/doorman.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | 1 | 2020-06-22T21:07:24.000Z | 2020-06-22T21:07:24.000Z | n = int(input())
v = list(map(lambda x: 1 if x == 'M' else -1, input()))
curr = 0
ans = 0
while ans < len(v)-1:
if abs(curr + v[ans+1]) < abs(curr + v[ans]):
v[ans], v[ans+1] = v[ans+1], v[ans]
if abs(curr + v[ans]) > n:
break
curr += v[ans]
ans += 1
if abs(curr + v[ans]) <= n:
ans ... | 21 | 55 | 0.479167 | 66 | 336 | 2.439394 | 0.30303 | 0.223602 | 0.248447 | 0.273292 | 0.354037 | 0.267081 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0.291667 | 336 | 16 | 56 | 21 | 0.634454 | 0 | 0 | 0.142857 | 0 | 0 | 0.002967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2bb301ab8794ed9a895ced4a716c7f7b3c897f8b | 465 | py | Python | python/tests/test_array_shift.py | HishamKhalil1990/data-structures-and-algorithms | 6e63791a6c0f943de7feea91859b81e0f2630f32 | [
"MIT"
] | null | null | null | python/tests/test_array_shift.py | HishamKhalil1990/data-structures-and-algorithms | 6e63791a6c0f943de7feea91859b81e0f2630f32 | [
"MIT"
] | 3 | 2021-05-04T23:58:30.000Z | 2021-06-28T22:02:19.000Z | python/tests/test_array_shift.py | HishamKhalil1990/data-structures-and-algorithms | 6e63791a6c0f943de7feea91859b81e0f2630f32 | [
"MIT"
] | 1 | 2021-06-15T21:21:03.000Z | 2021-06-15T21:21:03.000Z | # from code_challenges.array_shift.array_shift import __version__
# from code_challenges.array_shift.array_shift.array_shift import insertShiftArray
# def test_version():
# assert __version__ == '0.1.0'
# def test1():
# expected = [2,4,5,6,8]
# actual = insertShiftArray([2,4,6,8],5)
# assert actual =... | 27.352941 | 82 | 0.673118 | 66 | 465 | 4.5 | 0.393939 | 0.16835 | 0.151515 | 0.20202 | 0.329966 | 0.255892 | 0.255892 | 0 | 0 | 0 | 0 | 0.091384 | 0.176344 | 465 | 16 | 83 | 29.0625 | 0.684073 | 0.937634 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2bb90687b4691c3996703a9be83cc747eb15d5c0 | 215 | py | Python | main/urls.py | eclectic-boy/eclectic_boy_2_public | e7127e04b200a4b2af423efa5e722ffc8d0b96dd | [
"BSD-3-Clause"
] | 1 | 2020-02-04T00:53:51.000Z | 2020-02-04T00:53:51.000Z | main/urls.py | eclectic-boy/eclectic_boy_2_public | e7127e04b200a4b2af423efa5e722ffc8d0b96dd | [
"BSD-3-Clause"
] | 7 | 2020-06-05T20:10:59.000Z | 2021-09-22T18:08:52.000Z | main/urls.py | eclectic-boy/eclectic_boy_2_public | e7127e04b200a4b2af423efa5e722ffc8d0b96dd | [
"BSD-3-Clause"
] | null | null | null | # pylint: disable=invalid-name
from django.urls import path
from main import views
urlpatterns = [
path('', views.index, name='index'),
path('cookie-policy', views.cookie_policy, name='cookie_policy'),
]
| 19.545455 | 69 | 0.706977 | 28 | 215 | 5.357143 | 0.535714 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148837 | 215 | 10 | 70 | 21.5 | 0.819672 | 0.130233 | 0 | 0 | 0 | 0 | 0.167568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2bd8246a52c06c42b03a0c92e8d0fc8e15dc18ee | 73 | py | Python | version.py | rjuang/flstudio-arturia-keylab-mk2 | 91fe800769bb724010122d5f6a67af7f51418682 | [
"MIT"
] | 19 | 2020-11-25T18:31:57.000Z | 2022-03-09T14:45:18.000Z | version.py | rjuang/flstudio-arturia-keylab-mk2 | 91fe800769bb724010122d5f6a67af7f51418682 | [
"MIT"
] | 1 | 2021-01-24T11:31:16.000Z | 2021-06-05T21:39:10.000Z | version.py | rjuang/flstudio-arturia-keylab-mk2 | 91fe800769bb724010122d5f6a67af7f51418682 | [
"MIT"
] | 3 | 2021-03-20T03:50:10.000Z | 2021-12-24T00:27:49.000Z | # Number representing the last change date
CHANGE_DATE = 2021_10_13_2318
| 24.333333 | 42 | 0.835616 | 12 | 73 | 4.75 | 0.833333 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.136986 | 73 | 2 | 43 | 36.5 | 0.714286 | 0.547945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
92015c854a2c0c48e329802d38a4c7c77a85c9b5 | 3,720 | py | Python | data/raw/sub19.py | Amyunimus/catatt | 94c022007d4f8246d7da56148b1ef78d0679d11d | [
"MIT"
] | null | null | null | data/raw/sub19.py | Amyunimus/catatt | 94c022007d4f8246d7da56148b1ef78d0679d11d | [
"MIT"
] | null | null | null | data/raw/sub19.py | Amyunimus/catatt | 94c022007d4f8246d7da56148b1ef78d0679d11d | [
"MIT"
] | null | null | null | Welcome to PsychoPy2!
v1.83.04
()
################ Running: F:\users\emiwar\edited_new\catAtt1.py ################
COM1
Serial<id=0x51b7810, open=True>(port='COM1', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=2.5, xonxoff=False, rtscts=False, dsrdtr=False)
492
1 False [('a', 1.0283942587458341)]... | 27.761194 | 154 | 0.672849 | 505 | 3,720 | 4.954455 | 0.380198 | 0.027178 | 0.019584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.419437 | 0.150806 | 3,720 | 133 | 155 | 27.969925 | 0.372586 | 0.012366 | 0 | 0 | 0 | 0 | 0.024522 | 0 | 0 | 0 | 0.002566 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ecfb5c39f51de2272894b6187ecf31c08f7c1138 | 305 | py | Python | tests/test_apps.py | jchiang87/docker_dm_apps_testing | 5e506b5e8e078fce7eb36729fd15deb7e69ec756 | [
"BSD-3-Clause"
] | null | null | null | tests/test_apps.py | jchiang87/docker_dm_apps_testing | 5e506b5e8e078fce7eb36729fd15deb7e69ec756 | [
"BSD-3-Clause"
] | null | null | null | tests/test_apps.py | jchiang87/docker_dm_apps_testing | 5e506b5e8e078fce7eb36729fd15deb7e69ec756 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import lsst.afw
import desc.apps_test
class AppsTestCase(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_apps_test_class(self):
self.assertEqual(42, desc.apps_test.test_app())
if __name__ == '__main__':
unittest.main()
| 20.333333 | 55 | 0.685246 | 40 | 305 | 4.875 | 0.525 | 0.123077 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.213115 | 305 | 14 | 56 | 21.785714 | 0.804167 | 0 | 0 | 0.166667 | 0 | 0 | 0.02623 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0.166667 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a60cc95f120241ef244a4201b8b5efbe0f519147 | 102 | py | Python | setup.py | danilons/RCC8 | f6bdb45732b430dc347e0e79fe0de59aa63c4709 | [
"BSD-2-Clause"
] | null | null | null | setup.py | danilons/RCC8 | f6bdb45732b430dc347e0e79fe0de59aa63c4709 | [
"BSD-2-Clause"
] | null | null | null | setup.py | danilons/RCC8 | f6bdb45732b430dc347e0e79fe0de59aa63c4709 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(name='rcc8nn',
version='1.0',
)
| 14.571429 | 28 | 0.627451 | 14 | 102 | 4.571429 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0.215686 | 102 | 6 | 29 | 17 | 0.7625 | 0.196078 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a61f5449fc5d57246e89b4deaefe742dc64d20f8 | 525 | py | Python | src/app/entities/users/user.py | dieisabel/cypherman | 06d8678b79b18aa256a79ec6967d68274f088dbc | [
"MIT"
] | null | null | null | src/app/entities/users/user.py | dieisabel/cypherman | 06d8678b79b18aa256a79ec6967d68274f088dbc | [
"MIT"
] | 43 | 2021-12-02T21:26:01.000Z | 2022-02-21T08:51:06.000Z | src/app/entities/users/user.py | dieisabel/cypherman | 06d8678b79b18aa256a79ec6967d68274f088dbc | [
"MIT"
] | null | null | null | """Module for User entity"""
__all__ = ['User']
from typing import Optional
class User:
"""User entity
Args:
user_id: User unique identifier
username: Username
email: Email
"""
def __init__(self, user_id: int, username: str, email: Optional[str] = None) -> None:
sel... | 21.875 | 92 | 0.615238 | 66 | 525 | 4.621212 | 0.378788 | 0.118033 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260952 | 525 | 23 | 93 | 22.826087 | 0.786082 | 0.222857 | 0 | 0 | 0 | 0 | 0.207447 | 0.140957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a62a8a7e90d4662db665c19cd01d06385580e28f | 140 | py | Python | deezer_dl/utils.py | doulwyi/deezer-dl | b80a056fd77d1ffe86a1d048bc3d96ba60c92b80 | [
"MIT"
] | 4 | 2019-10-02T21:25:19.000Z | 2021-11-15T12:11:49.000Z | deezer_dl/utils.py | doulwyi/deezer-dl | b80a056fd77d1ffe86a1d048bc3d96ba60c92b80 | [
"MIT"
] | 4 | 2020-01-27T15:35:37.000Z | 2021-06-01T23:00:32.000Z | deezer_dl/utils.py | doulwyi/deezer-dl | b80a056fd77d1ffe86a1d048bc3d96ba60c92b80 | [
"MIT"
] | 2 | 2020-05-12T14:36:38.000Z | 2021-07-28T16:04:20.000Z | google_service_name = "youtube"
youtube_api_version = "v3"
video = 'youtube#video'
youtube_url_pattern = 'https://www.youtube.com/watch?v='
| 28 | 56 | 0.764286 | 20 | 140 | 5.05 | 0.75 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.085714 | 140 | 4 | 57 | 35 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0.385714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
a62ac3065153e0e9a06ec8d84be9ca3e577e0e42 | 253 | py | Python | dokerc/dokerc.py | HaRo87/dokerc | 2e6e9ba60f9c5498f8c5c7c8890589230cf2caf9 | [
"MIT"
] | null | null | null | dokerc/dokerc.py | HaRo87/dokerc | 2e6e9ba60f9c5498f8c5c7c8890589230cf2caf9 | [
"MIT"
] | 1 | 2021-01-08T09:15:26.000Z | 2021-01-08T09:15:26.000Z | dokerc/dokerc.py | HaRo87/dokerc | 2e6e9ba60f9c5498f8c5c7c8890589230cf2caf9 | [
"MIT"
] | null | null | null | import click
@click.group()
def cli():
pass
@click.command()
def info():
click.echo('DokerC a small CLI client for the Doker Backend.')
click.echo('Checkout https://haro87.github.io/doker-meta for further info.')
cli.add_command(info)
| 15.8125 | 80 | 0.6917 | 38 | 253 | 4.578947 | 0.657895 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.166008 | 253 | 15 | 81 | 16.866667 | 0.815166 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0.111111 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a656b063decc40528d3b91b00abccaecc5ee2352 | 1,015 | py | Python | week2_exercise6.py | kenyonej/PyPlusTraining | 1e0d41745e02a4dc1491be9eaf568dd456d53863 | [
"Apache-2.0"
] | null | null | null | week2_exercise6.py | kenyonej/PyPlusTraining | 1e0d41745e02a4dc1491be9eaf568dd456d53863 | [
"Apache-2.0"
] | null | null | null | week2_exercise6.py | kenyonej/PyPlusTraining | 1e0d41745e02a4dc1491be9eaf568dd456d53863 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from netmiko import ConnectHandler, redispatch
import time
from getpass import getpass
password = getpass()
device = {
'host': 'cisco4.lasthop.io',
'username': 'pyclass',
'password': password,
'secret': password,
'device_type': 'cisco_ios',
'session_log': 'my_output.txt'... | 24.756098 | 59 | 0.743842 | 134 | 1,015 | 5.38806 | 0.350746 | 0.193906 | 0.288089 | 0.166205 | 0.591413 | 0.591413 | 0.551247 | 0.504155 | 0.504155 | 0.504155 | 0 | 0.002235 | 0.118227 | 1,015 | 40 | 60 | 25.375 | 0.804469 | 0.037438 | 0 | 0.441176 | 0 | 0 | 0.122051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.088235 | 0 | 0.088235 | 0.205882 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a6621d738ba0eacd7118a83ab199f4d7b41e4b24 | 132 | py | Python | Problems/Informatics/Loops/For/340.py | kvlizhvn/Lab_7 | e7f7f8da2b5f52a426bb55981594fb8ddcbd127a | [
"MIT"
] | 1 | 2022-02-18T15:44:46.000Z | 2022-02-18T15:44:46.000Z | Problems/Informatics/Loops/For/340.py | kvlizhvn/Lab_7 | e7f7f8da2b5f52a426bb55981594fb8ddcbd127a | [
"MIT"
] | null | null | null | Problems/Informatics/Loops/For/340.py | kvlizhvn/Lab_7 | e7f7f8da2b5f52a426bb55981594fb8ddcbd127a | [
"MIT"
] | 1 | 2021-03-26T13:55:52.000Z | 2021-03-26T13:55:52.000Z | n = int(input())
res = []
for i in range(1, n + 1):
if n % i == 0:
res.append(i)
print(' '.join(str(i) for i in res)) | 14.666667 | 36 | 0.477273 | 26 | 132 | 2.423077 | 0.576923 | 0.126984 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.30303 | 132 | 9 | 36 | 14.666667 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
a66e1c2ea074e46bfc20d54191d5c3513a81d50c | 962 | py | Python | aiotdlib/api/functions/set_bio.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/functions/set_bio.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/functions/set_bio.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 32.066667 | 99 | 0.438669 | 84 | 962 | 4.952381 | 0.642857 | 0.024038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007716 | 0.326403 | 962 | 29 | 100 | 33.172414 | 0.634259 | 0.593555 | 0 | 0 | 1 | 0 | 0.031609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0.1 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a67dd3d6d173124e82e29a576f0a25af4058f015 | 322 | py | Python | gann/__init__.py | jeanniesarah/gann-square | de01cde98f69a07a11b32732a3c7015c6d2b7999 | [
"MIT"
] | 8 | 2020-01-31T22:41:39.000Z | 2021-12-20T03:26:15.000Z | gann/__init__.py | jeanniesarah/gann-square | de01cde98f69a07a11b32732a3c7015c6d2b7999 | [
"MIT"
] | 2 | 2021-01-08T13:20:50.000Z | 2021-01-08T14:43:14.000Z | gann/__init__.py | jeanniesarah/gann-square | de01cde98f69a07a11b32732a3c7015c6d2b7999 | [
"MIT"
] | 6 | 2018-09-20T02:12:09.000Z | 2021-02-08T14:55:10.000Z | # -*- coding: utf-8 -*-
__author__ = 'Ilya Shoshin'
__copyright__ = 'Copyright 2015, Ilya Shoshin'
from .engine import *
from .marks_io import *
__all__ = ['create_gann_square_classic', 'create_gann_sub_square_dates',
'create_gann_square_dates_slice', 'create_gann_square_dates',
'load_marks... | 32.2 | 72 | 0.704969 | 39 | 322 | 5.102564 | 0.564103 | 0.201005 | 0.241206 | 0.211055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018939 | 0.180124 | 322 | 10 | 73 | 32.2 | 0.734848 | 0.065217 | 0 | 0 | 0 | 0 | 0.526667 | 0.36 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a68cc6b3307fb378d238e15b35e019c68e37e0bf | 209 | py | Python | lab-taxi/main.py | ymazari/deep-reinforcement-learning | fc8e5c7103c9f78d3e24e44ae189fc42938c256b | [
"MIT"
] | null | null | null | lab-taxi/main.py | ymazari/deep-reinforcement-learning | fc8e5c7103c9f78d3e24e44ae189fc42938c256b | [
"MIT"
] | null | null | null | lab-taxi/main.py | ymazari/deep-reinforcement-learning | fc8e5c7103c9f78d3e24e44ae189fc42938c256b | [
"MIT"
] | null | null | null | from agent import Agent
from monitor import interact
import gym
env = gym.make('Taxi-v2')
num_episodes=20000
agent = Agent(env, num_episodes)
avg_rewards, best_avg_reward = interact(env, agent, num_episodes)
| 23.222222 | 65 | 0.794258 | 33 | 209 | 4.848485 | 0.515152 | 0.20625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.119617 | 209 | 8 | 66 | 26.125 | 0.836957 | 0 | 0 | 0 | 0 | 0 | 0.033493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a6ea8426e55828749fb9b14958fc90fbdc59da1c | 16,935 | py | Python | helper/ambiente.py | lidiaxp/plannie | b05f80a8bb5170ccec0124c97251d515892dc931 | [
"Unlicense"
] | 6 | 2021-09-15T12:33:20.000Z | 2022-03-30T17:40:17.000Z | helper/ambiente.py | lidiaxp/plannie | b05f80a8bb5170ccec0124c97251d515892dc931 | [
"Unlicense"
] | null | null | null | helper/ambiente.py | lidiaxp/plannie | b05f80a8bb5170ccec0124c97251d515892dc931 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
from math import ceil
import matplotlib.pyplot as plt
class Pontos:
def __init__(self):
self.checkEstatico = True
tamCapa = 0
self.limiar = (20,20)
self.xs = 2
self.ys = 2
self.xt = 18
self.yt = 8
... | 72.99569 | 2,102 | 0.478063 | 3,563 | 16,935 | 2.268875 | 0.055852 | 0.037605 | 0.051954 | 0.063335 | 0.73194 | 0.666502 | 0.624938 | 0.573231 | 0.51237 | 0.479713 | 0 | 0.373721 | 0.267021 | 16,935 | 231 | 2,103 | 73.311688 | 0.277532 | 0.547919 | 0 | 0.325926 | 0 | 0 | 0.005979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007407 | false | 0.037037 | 0.022222 | 0 | 0.037037 | 0.014815 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
470e893998bdba2a70b9907b7bd319c30c2e56ca | 98 | py | Python | src/apps/endpoints/apps.py | forafekt/mlapi | 4d47fb3eb808b7bf0b00d908fd8f108f64f8aeb9 | [
"MIT"
] | null | null | null | src/apps/endpoints/apps.py | forafekt/mlapi | 4d47fb3eb808b7bf0b00d908fd8f108f64f8aeb9 | [
"MIT"
] | null | null | null | src/apps/endpoints/apps.py | forafekt/mlapi | 4d47fb3eb808b7bf0b00d908fd8f108f64f8aeb9 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EndpointsConfig(AppConfig):
name = 'apps.endpoints'
| 16.333333 | 33 | 0.765306 | 11 | 98 | 6.818182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 34 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5b454312e4cb764b0f1380b3a572792ab08b8d88 | 97 | py | Python | ex111/teste111.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | ex111/teste111.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | ex111/teste111.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | import utilidades.moeda as moeda
p = float(input('Digite um valor R$'))
moeda.resumo(p, 20, 12)
| 19.4 | 38 | 0.71134 | 17 | 97 | 4.058824 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.14433 | 97 | 4 | 39 | 24.25 | 0.783133 | 0 | 0 | 0 | 0 | 0 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5b4924bc96eb0e89374725a715ddbe892d37aa13 | 216 | wsgi | Python | heimdallv2.wsgi | drogomarks/heimdallv2 | 960260d0d238811bc7b4e0402aaa2498ee0bdb30 | [
"MIT"
] | null | null | null | heimdallv2.wsgi | drogomarks/heimdallv2 | 960260d0d238811bc7b4e0402aaa2498ee0bdb30 | [
"MIT"
] | null | null | null | heimdallv2.wsgi | drogomarks/heimdallv2 | 960260d0d238811bc7b4e0402aaa2498ee0bdb30 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/vhosts/heimdall/")
from heimdallv2 import app as application
application.secret_key = 'development-key'
| 24 | 46 | 0.796296 | 31 | 216 | 5.516129 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.078704 | 216 | 8 | 47 | 27 | 0.849246 | 0.074074 | 0 | 0 | 0 | 0 | 0.201005 | 0.125628 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5b53e8f19a1aa7c8f37c6460a04e56ad5870ef84 | 1,773 | py | Python | creatures/Creature.py | stasgora/python-world-simulator | f574c8791de4d8045e1ebcbe48e6e66c3f2ff256 | [
"MIT"
] | null | null | null | creatures/Creature.py | stasgora/python-world-simulator | f574c8791de4d8045e1ebcbe48e6e66c3f2ff256 | [
"MIT"
] | null | null | null | creatures/Creature.py | stasgora/python-world-simulator | f574c8791de4d8045e1ebcbe48e6e66c3f2ff256 | [
"MIT"
] | null | null | null | class Creature(object):
CHILDHOOD_TIME = 4
MATED_TIME = 2
def __init__(self, strength, initiative, symbol, position, world, color):
self._strength = strength
self._initiative = initiative
self._symbol = symbol
self._position = position
self._world = world
... | 23.025974 | 78 | 0.574168 | 207 | 1,773 | 4.603865 | 0.173913 | 0.094439 | 0.146905 | 0.056663 | 0.072403 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.348562 | 1,773 | 76 | 79 | 23.328947 | 0.819048 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0 | 0 | 0.196429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5b7abff1544daf944fa2f1b6c35729dbd03c76f5 | 128 | py | Python | app/test_functional.py | mosheeven/python-flask-docker | cd55c6ec86ce4d4f1a52c8a67eae4d5067e23c85 | [
"Apache-2.0"
] | null | null | null | app/test_functional.py | mosheeven/python-flask-docker | cd55c6ec86ce4d4f1a52c8a67eae4d5067e23c85 | [
"Apache-2.0"
] | null | null | null | app/test_functional.py | mosheeven/python-flask-docker | cd55c6ec86ce4d4f1a52c8a67eae4d5067e23c85 | [
"Apache-2.0"
] | null | null | null | from app import app
def test_index_route():
response = app.test_client().get('/')
assert response.status_code == 200
| 16 | 41 | 0.6875 | 18 | 128 | 4.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0.1875 | 128 | 7 | 42 | 18.285714 | 0.778846 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5b8c71d41b05309aa0bcd3797cc908010bb900dc | 1,786 | py | Python | cacheobj/storage.py | youknowone/cacheobj | 566fa71e5194a29879d880c37bf21b6fa83b1466 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-08-01T17:50:11.000Z | 2016-08-01T17:50:11.000Z | cacheobj/storage.py | youknowone/cacheobj | 566fa71e5194a29879d880c37bf21b6fa83b1466 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | cacheobj/storage.py | youknowone/cacheobj | 566fa71e5194a29879d880c37bf21b6fa83b1466 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null |
class Storage(object):
def __init__(self, backend, keygen):
self._backend = backend
if callable(keygen):
self._keygen = keygen
else:
def _keygen(key):
key = '.'.join((keygen, key))
return key
self._keygen = _keygen
def... | 34.346154 | 85 | 0.538634 | 189 | 1,786 | 4.746032 | 0.185185 | 0.111483 | 0.075808 | 0.06689 | 0.149387 | 0.111483 | 0.111483 | 0.111483 | 0.111483 | 0 | 0 | 0.00431 | 0.350504 | 1,786 | 51 | 86 | 35.019608 | 0.768966 | 0 | 0 | 0.136364 | 0 | 0 | 0.010084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.159091 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5bbfa119fb2151f6dca27abfc226b1301459ebbe | 388 | py | Python | code-018.py | cpermuttacth/BornToDev | fde536ea307ca7ce76743a8116c36c2fd5e4f5e2 | [
"Apache-2.0"
] | null | null | null | code-018.py | cpermuttacth/BornToDev | fde536ea307ca7ce76743a8116c36c2fd5e4f5e2 | [
"Apache-2.0"
] | null | null | null | code-018.py | cpermuttacth/BornToDev | fde536ea307ca7ce76743a8116c36c2fd5e4f5e2 | [
"Apache-2.0"
] | null | null | null | a = int(input())
if a >= 90:
print("A")
else:
if a >= 85:
print("B+")
else:
if a >= 80:
print("B")
else:
if a >= 75:
print("C+")
else:
if a >= 70:
print("C")
else:
if a >= 65:
print("D+")
else:
if a >= 60:
... | 16.166667 | 24 | 0.309278 | 47 | 388 | 2.553191 | 0.361702 | 0.175 | 0.35 | 0.2 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 0.515464 | 388 | 23 | 25 | 16.869565 | 0.56383 | 0 | 0 | 0.304348 | 0 | 0 | 0.028351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5bc32c262b0f9ee100a8d2014cb4d4df8c64bfbe | 9,564 | py | Python | tools/tester.py | jsharris/job_manager | 5168cbc17a815c46ea028a2fb548b1f0741ea622 | [
"MIT"
] | null | null | null | tools/tester.py | jsharris/job_manager | 5168cbc17a815c46ea028a2fb548b1f0741ea622 | [
"MIT"
] | null | null | null | tools/tester.py | jsharris/job_manager | 5168cbc17a815c46ea028a2fb548b1f0741ea622 | [
"MIT"
] | null | null | null | __author__ = 'jon'
# make available all the common modules
import sys
sys.path.append('../libs')
import requests
import ujson
import unittest
import logging
def build_logging():
log = logging.getLogger()
log.setLevel(logging.INFO)
fh = logging.FileHandler('job_manager.log')
fh.setLevel(logging.INFO)... | 38.720648 | 92 | 0.619406 | 1,163 | 9,564 | 4.894239 | 0.114359 | 0.086964 | 0.135278 | 0.085383 | 0.805341 | 0.723999 | 0.66532 | 0.645292 | 0.614722 | 0.598911 | 0 | 0.004482 | 0.230238 | 9,564 | 246 | 93 | 38.878049 | 0.768677 | 0.057821 | 0 | 0.502674 | 0 | 0 | 0.162938 | 0 | 0 | 0 | 0 | 0 | 0.251337 | 0 | null | null | 0 | 0.026738 | null | null | 0.010695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5bc7614a5a8444cfe57163864639ddfcbfa58a72 | 592 | py | Python | src/utils/VideoFile.py | instigatorofawe/neural-video-toolkit | fa8c2483cbfdcef89d794aa8382900e4c13f2acc | [
"MIT"
] | 2 | 2021-01-31T04:10:18.000Z | 2021-01-31T16:37:14.000Z | src/utils/VideoFile.py | instigatorofawe/neural-video-toolkit | fa8c2483cbfdcef89d794aa8382900e4c13f2acc | [
"MIT"
] | null | null | null | src/utils/VideoFile.py | instigatorofawe/neural-video-toolkit | fa8c2483cbfdcef89d794aa8382900e4c13f2acc | [
"MIT"
] | null | null | null | import ffmpeg
import numpy
from src import get_video_info
class VideoFile:
"""
A class to help facilitate reading data from video files using ffmpeg-python
"""
def __init__(self, filename):
self.filename = filename
# Extract framerate from ffprobe info
info = ffmpeg.probe(file... | 22.769231 | 80 | 0.636824 | 72 | 592 | 5.013889 | 0.583333 | 0.044321 | 0.066482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283784 | 592 | 25 | 81 | 23.68 | 0.851415 | 0.293919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5bdccd0c420448d48d7f46edb27c5b4fe00b9a79 | 1,817 | py | Python | elf/elf.py | Valmarelox/elftoolsng | 99c3f4913a7e477007b1d81df83274d7657bf693 | [
"MIT"
] | null | null | null | elf/elf.py | Valmarelox/elftoolsng | 99c3f4913a7e477007b1d81df83274d7657bf693 | [
"MIT"
] | null | null | null | elf/elf.py | Valmarelox/elftoolsng | 99c3f4913a7e477007b1d81df83274d7657bf693 | [
"MIT"
] | null | null | null | from __future__ import annotations
from elf.data_driver import build_driver, BaseDriver
from elf.elf_phrs import ElfPhdrs
from elf.elf_sections import ElfSections
from elf.types.base import ElfOffset
from elf.types.header.elf_header import ELFHeader
from elf.types.header.ident import EIClass
class ELF(object):
_... | 27.119403 | 103 | 0.637865 | 225 | 1,817 | 4.964444 | 0.32 | 0.068935 | 0.039391 | 0.042972 | 0.055506 | 0.039391 | 0 | 0 | 0 | 0 | 0 | 0.005162 | 0.253715 | 1,817 | 67 | 104 | 27.119403 | 0.818584 | 0.053385 | 0 | 0.162791 | 0 | 0.023256 | 0.090248 | 0.058752 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.255814 | false | 0 | 0.162791 | 0.139535 | 0.697674 | 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 | 0 | 0 | 0 | 3 |
5bfa44487d0d7e99d2420697f5d325ff6d30544d | 501 | py | Python | fibra/__init__.py | mfrasca/fibra | c9363f311dc07b43bdfddcbf1f3084290278f535 | [
"Unlicense"
] | null | null | null | fibra/__init__.py | mfrasca/fibra | c9363f311dc07b43bdfddcbf1f3084290278f535 | [
"Unlicense"
] | null | null | null | fibra/__init__.py | mfrasca/fibra | c9363f311dc07b43bdfddcbf1f3084290278f535 | [
"Unlicense"
] | null | null | null | """
Fibra is a sophisticated scheduler for cooperative tasks.
It's a bit lke Stackless Python. It uses Python generator functions
to create tasks which can be iterated.
"""
from __future__ import absolute_import
from fibra.schedule import *
from fibra.handlers.sleep import Sleep
from fibra.handlers.nonblock import U... | 31.3125 | 71 | 0.810379 | 73 | 501 | 5.493151 | 0.589041 | 0.134663 | 0.21197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131737 | 501 | 15 | 72 | 33.4 | 0.921839 | 0.329341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5bff48a27c50ffa3dae7097b3c890b147367c9f2 | 426 | py | Python | .utilities/increment-build-code.py | AaronLionsheep/ShellyMQTT | 5530112976963eb8cb394c8eefc070edb34eb9eb | [
"MIT"
] | null | null | null | .utilities/increment-build-code.py | AaronLionsheep/ShellyMQTT | 5530112976963eb8cb394c8eefc070edb34eb9eb | [
"MIT"
] | 91 | 2020-03-07T21:31:03.000Z | 2022-03-22T21:45:58.000Z | .utilities/increment-build-code.py | HackintoshMan/ShellyMQTT | 39202116694386ca838f08f6d615aefbec9729f7 | [
"MIT"
] | null | null | null | def main():
build_code = 0
build_code_file_name = "ShellyMQTT.indigoPlugin/Contents/Server Plugin/build_code.txt"
with open(build_code_file_name) as build_code_file:
data = build_code_file.read()
if data:
build_code = int(data, 16)
with open(build_code_file_name, 'w') as bu... | 26.625 | 90 | 0.676056 | 62 | 426 | 4.177419 | 0.403226 | 0.382239 | 0.351351 | 0.196911 | 0.19305 | 0.19305 | 0 | 0 | 0 | 0 | 0 | 0.012085 | 0.223005 | 426 | 15 | 91 | 28.4 | 0.770393 | 0 | 0 | 0 | 0 | 0 | 0.164319 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
750992578950ab4bd9cfce28e83cb81dd2e51062 | 19,723 | py | Python | pretrained-model/smith/experiment_config_pb2.py | ahmed3991/malaya | d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c | [
"MIT"
] | 1 | 2021-03-19T22:42:34.000Z | 2021-03-19T22:42:34.000Z | pretrained-model/smith/experiment_config_pb2.py | ahmed3991/malaya | d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c | [
"MIT"
] | null | null | null | pretrained-model/smith/experiment_config_pb2.py | ahmed3991/malaya | d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: experiment_config.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from goog... | 51.496084 | 2,053 | 0.763525 | 2,652 | 19,723 | 5.324284 | 0.090875 | 0.054958 | 0.084773 | 0.068839 | 0.719759 | 0.656091 | 0.633074 | 0.609278 | 0.604037 | 0.600496 | 0 | 0.043606 | 0.118643 | 19,723 | 382 | 2,054 | 51.63089 | 0.768682 | 0.022867 | 0 | 0.68 | 1 | 0.002857 | 0.229723 | 0.188649 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011429 | 0 | 0.011429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7512713707978f329ea315970164baacda8a9c86 | 433 | py | Python | DRF(Django Rest Framework)/TlxyDRF/case01/models.py | xuxaut555/hello-git | b9282a2396cf3ef0e51e5fff39b32fa1f1a43141 | [
"MIT"
] | null | null | null | DRF(Django Rest Framework)/TlxyDRF/case01/models.py | xuxaut555/hello-git | b9282a2396cf3ef0e51e5fff39b32fa1f1a43141 | [
"MIT"
] | null | null | null | DRF(Django Rest Framework)/TlxyDRF/case01/models.py | xuxaut555/hello-git | b9282a2396cf3ef0e51e5fff39b32fa1f1a43141 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class ClassRoom(models.Model):
roomName = models.CharField(max_length=20)
loc = models.CharField(max_length=20)
class Student(models.Model):
name = models.CharField(max_length=5)
age = models.IntegerField()
class Teacher(models.Model):
cour... | 24.055556 | 46 | 0.727483 | 57 | 433 | 5.438596 | 0.421053 | 0.241935 | 0.290323 | 0.387097 | 0.574194 | 0.322581 | 0.322581 | 0.322581 | 0.322581 | 0 | 0 | 0.022039 | 0.161663 | 433 | 17 | 47 | 25.470588 | 0.831956 | 0.055427 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7534d107e4e22fe1cd9d688c17af619ccd9e61a8 | 1,428 | py | Python | pylore/genetics.py | gerzin/pylore | 445a3692df097901ce2babaa60a242d7ff43e5ae | [
"MIT"
] | null | null | null | pylore/genetics.py | gerzin/pylore | 445a3692df097901ce2babaa60a242d7ff43e5ae | [
"MIT"
] | null | null | null | pylore/genetics.py | gerzin/pylore | 445a3692df097901ce2babaa60a242d7ff43e5ae | [
"MIT"
] | null | null | null | """
This module contains the implementation of the function that creates a synthetic neighborhood of an instance using a genetic algorithm.
"""
from abc import ABC, abstractmethod
from pylore.blackbox import AbstractBlackBoxWrapper
from typing import Callable
import numpy as np
from numba import njit
from pylore.dist... | 21.636364 | 135 | 0.62395 | 166 | 1,428 | 5.222892 | 0.463855 | 0.032295 | 0.05075 | 0.032295 | 0.186851 | 0.138408 | 0.138408 | 0.138408 | 0.066897 | 0 | 0 | 0.015444 | 0.27451 | 1,428 | 65 | 136 | 21.969231 | 0.821429 | 0.221289 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.205882 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7542adf4fea854bd3cb70ce0bed45a21fddb75ec | 35 | py | Python | docs/new-pandas-doc/generated/pandas-DataFrame-plot-bar-4.py | maartenbreddels/datapythonista.github.io | f78d7b9a8a793fc446c5ba3ee74423433b00fb63 | [
"Apache-2.0"
] | null | null | null | docs/new-pandas-doc/generated/pandas-DataFrame-plot-bar-4.py | maartenbreddels/datapythonista.github.io | f78d7b9a8a793fc446c5ba3ee74423433b00fb63 | [
"Apache-2.0"
] | null | null | null | docs/new-pandas-doc/generated/pandas-DataFrame-plot-bar-4.py | maartenbreddels/datapythonista.github.io | f78d7b9a8a793fc446c5ba3ee74423433b00fb63 | [
"Apache-2.0"
] | null | null | null | ax = df.plot.bar(y='speed', rot=0)
| 17.5 | 34 | 0.6 | 8 | 35 | 2.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.114286 | 35 | 1 | 35 | 35 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f345984c861addeb315d1a654ffb009ccb790ad4 | 30,337 | py | Python | Kgf/Kgf2_dec.py | shyamjangid07/Reverse-Engineering | 469efabcd6057f7895d8d891f1fabdf2ffe730b0 | [
"Apache-2.0"
] | 337 | 2020-08-15T12:22:14.000Z | 2022-03-29T06:05:15.000Z | Kgf/Kgf2_dec.py | ajairakaam/Reverse-Engineering | 49d00bafd0622ffb79e081946a19c5fd3a42628f | [
"Apache-2.0"
] | 3 | 2020-11-12T14:30:48.000Z | 2021-05-18T16:56:22.000Z | Kgf/Kgf2_dec.py | ajairakaam/Reverse-Engineering | 49d00bafd0622ffb79e081946a19c5fd3a42628f | [
"Apache-2.0"
] | 83 | 2020-08-15T00:22:58.000Z | 2022-03-31T08:40:23.000Z |
# Python Auto Dis Parser 1.0.1
# Author : HTR-TECH | TAHMID RAYAT
# https://linktr.ee/tahmid.rayat
# https://fb.me/tahmid.rayat.official
# ------------------------------------------
# uncompyle6 version 3.7.4
# Python bytecode 2.7
# Decompiled from: Python 2.7.16 (default, Oct 10 2019, 22:02:15)
# [GCC 8.3.0]
# Embed... | 39.656209 | 1,666 | 0.537265 | 3,951 | 30,337 | 4.089344 | 0.128069 | 0.063873 | 0.045677 | 0.017825 | 0.657672 | 0.627654 | 0.583091 | 0.553259 | 0.519218 | 0.481896 | 0 | 0.100735 | 0.291229 | 30,337 | 764 | 1,667 | 39.708115 | 0.650684 | 0.010416 | 0 | 0.543704 | 0 | 0.038519 | 0.409844 | 0.140891 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.087407 | 0.007407 | null | null | 0.197037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.