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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c173a30d162061f75d59cfc75308ecd73f410a3 | 1,343 | py | Python | 2_even_fibonacci_numbers.py | mariusavram91/python_collection | eade5a79e1b0d28d2f90411092f9fbaa5e633d57 | [
"MIT"
] | null | null | null | 2_even_fibonacci_numbers.py | mariusavram91/python_collection | eade5a79e1b0d28d2f90411092f9fbaa5e633d57 | [
"MIT"
] | null | null | null | 2_even_fibonacci_numbers.py | mariusavram91/python_collection | eade5a79e1b0d28d2f90411092f9fbaa5e633d57 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import unittest
'''
Problem 2: https://projecteuler.net/problem=2
Each new term in the Fibonacci sequence is generated by adding the previous
two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence ... | 24.418182 | 77 | 0.673864 | 201 | 1,343 | 4.283582 | 0.442786 | 0.065041 | 0.138211 | 0.088269 | 0.318235 | 0.269454 | 0.176539 | 0 | 0 | 0 | 0 | 0.051675 | 0.221891 | 1,343 | 54 | 78 | 24.87037 | 0.772249 | 0.012658 | 0 | 0 | 1 | 0 | 0.016077 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.269231 | false | 0.192308 | 0.038462 | 0 | 0.384615 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2c2a4f7030a7dbd6b8fb6462ddecf6b68bca00df | 11,874 | py | Python | popparsing/tests/testing_data.py | PhasesResearchLab/popparsing | d6f15f105afed7e912a83482f87350d4fc05c66b | [
"MIT"
] | null | null | null | popparsing/tests/testing_data.py | PhasesResearchLab/popparsing | d6f15f105afed7e912a83482f87350d4fc05c66b | [
"MIT"
] | null | null | null | popparsing/tests/testing_data.py | PhasesResearchLab/popparsing | d6f15f105afed7e912a83482f87350d4fc05c66b | [
"MIT"
] | 1 | 2018-02-28T23:44:27.000Z | 2018-02-28T23:44:27.000Z | """
Data for testing
"""
POP_ACTIVITY = """
$===================================================
$ Carbon activity data in the fcc phase
$===================================================
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE FCC_A1=FIX 1
CHANGE_STATUS PHASE GRAPHITE=D
SET_REFERENCE_STATE C GRAPHITE,,,,
SET... | 20.86819 | 85 | 0.632643 | 2,178 | 11,874 | 3.359963 | 0.255739 | 0.02528 | 0.048784 | 0.036895 | 0.285051 | 0.229571 | 0.199918 | 0.153731 | 0.124624 | 0.107133 | 0 | 0.258071 | 0.165235 | 11,874 | 568 | 86 | 20.90493 | 0.480226 | 0.001347 | 0 | 0.285437 | 0 | 0.005825 | 0.96346 | 0.132911 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c30223e7d78e2ee57f7ecb303414a185efe9ed3 | 44 | py | Python | skforecast/__init__.py | Plozano94/skforecast | 71b83a45ecde757fb24be58adf9c88d8066a4582 | [
"MIT"
] | null | null | null | skforecast/__init__.py | Plozano94/skforecast | 71b83a45ecde757fb24be58adf9c88d8066a4582 | [
"MIT"
] | null | null | null | skforecast/__init__.py | Plozano94/skforecast | 71b83a45ecde757fb24be58adf9c88d8066a4582 | [
"MIT"
] | null | null | null | name = "skforecast"
__version__ = "0.4.dev"
| 14.666667 | 23 | 0.681818 | 6 | 44 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.136364 | 44 | 2 | 24 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.386364 | 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 |
25736ff012fb67e83024a4ec67f7c9c88e2ec7ec | 256 | py | Python | flask_restly/exception/not_found.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 16 | 2018-10-16T20:07:02.000Z | 2021-01-07T13:01:05.000Z | flask_restly/exception/not_found.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 16 | 2018-10-16T14:09:55.000Z | 2020-01-16T07:52:22.000Z | flask_restly/exception/not_found.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 1 | 2019-04-17T03:20:41.000Z | 2019-04-17T03:20:41.000Z | from werkzeug.exceptions import NotFound as WerkzeugNotFound
class NotFound(WerkzeugNotFound):
description = "Entity not found"
def __init__(self, description=None):
if description is not None:
self.description = description
| 25.6 | 60 | 0.726563 | 27 | 256 | 6.740741 | 0.666667 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214844 | 256 | 9 | 61 | 28.444444 | 0.905473 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2599e041283be403b076edf482c398a94853a1ec | 2,079 | py | Python | books/model.py | devesh-todarwal/web-dev | c82b8a011b345382ae2fd7124cbaa9e9e4661e27 | [
"MIT"
] | 1 | 2020-10-24T08:51:33.000Z | 2020-10-24T08:51:33.000Z | books/model.py | devesh-todarwal/web-dev | c82b8a011b345382ae2fd7124cbaa9e9e4661e27 | [
"MIT"
] | 17 | 2020-10-17T12:00:01.000Z | 2022-02-10T11:50:09.000Z | books/model.py | devesh-todarwal/web-dev | c82b8a011b345382ae2fd7124cbaa9e9e4661e27 | [
"MIT"
] | 2 | 2020-10-17T10:43:29.000Z | 2020-10-17T11:54:18.000Z | from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_utils.types.password import PasswordType
db = SQLAlchemy()
class Book(db.Model):
__tablename__ = "books"
isbn = db.Column(db.String, primary_key=True, nullable=False)
title = db.Column(db.String, nullable=False)
author = db.Column(db.String, null... | 35.237288 | 107 | 0.646946 | 279 | 2,079 | 4.666667 | 0.250896 | 0.104455 | 0.122888 | 0.159754 | 0.422427 | 0.422427 | 0.183564 | 0.128264 | 0.128264 | 0 | 0 | 0.003652 | 0.209716 | 2,079 | 58 | 108 | 35.844828 | 0.788801 | 0 | 0 | 0.104167 | 0 | 0.0625 | 0.136123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.104167 | 0.041667 | 0.104167 | 0.75 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
25bde24f4a1bf34933f2fd050655eacb1a99134a | 1,043 | py | Python | assignment9-songeon-20171635/hangman.py | HoRangDev/sw-proj2-team3 | f1e05be84c36b5b08757489d4b4bc54a0577cac6 | [
"MIT"
] | null | null | null | assignment9-songeon-20171635/hangman.py | HoRangDev/sw-proj2-team3 | f1e05be84c36b5b08757489d4b4bc54a0577cac6 | [
"MIT"
] | null | null | null | assignment9-songeon-20171635/hangman.py | HoRangDev/sw-proj2-team3 | f1e05be84c36b5b08757489d4b4bc54a0577cac6 | [
"MIT"
] | null | null | null | class Hangman:
text = [
'''\
____
| |
| o
| /|\\
| |
| / \\
_|_
| |______
| |
|__________|\
''',
'''\
____
| |
| o
| /|\\
| |
| /
_|_
| |______
| |
|__________|\
''',
'''\
____
| |
| o
| /|\\
| |
|
_|_
| |_____... | 9.568807 | 57 | 0.348993 | 44 | 1,043 | 4.659091 | 0.454545 | 0.04878 | 0.058537 | 0.058537 | 0.029268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.450623 | 1,043 | 108 | 58 | 9.657407 | 0.352531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
25c20d59235191a61d03ec2d349e4da425fd0ea6 | 3,236 | py | Python | examples/birth_death.py | BPSB/OOGillespie | bf82a6cc2ca31c02823257720b5dc8e6580dc913 | [
"BSD-3-Clause"
] | 1 | 2019-02-22T12:20:55.000Z | 2019-02-22T12:20:55.000Z | examples/birth_death.py | BPSB/OOGillespie | bf82a6cc2ca31c02823257720b5dc8e6580dc913 | [
"BSD-3-Clause"
] | null | null | null | examples/birth_death.py | BPSB/OOGillespie | bf82a6cc2ca31c02823257720b5dc8e6580dc913 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
We want to implement a simple birth–death process where births happen with a constant rate of :math:`α=0.1` and each individual dies with a rate of :math:`ω=0.001`, starting at a population of :math:`N=0`.
We start with importing the Gillespie class as well as setting th... | 35.173913 | 420 | 0.735476 | 534 | 3,236 | 4.417603 | 0.32397 | 0.042391 | 0.091564 | 0.108521 | 0.272573 | 0.242052 | 0.242052 | 0.242052 | 0.242052 | 0.242052 | 0 | 0.033842 | 0.169036 | 3,236 | 91 | 421 | 35.56044 | 0.843064 | 0.898949 | 0 | 0 | 0 | 0 | 0.018265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.105263 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
25c936055386b9dc72ab47ceb0b4c6abee12f56f | 455 | py | Python | civil-war-predictor/main.py | Ruthenic/small-dumb-things | 1e73cecffe1f701718d7ad17e76c92818ca839f3 | [
"Unlicense"
] | null | null | null | civil-war-predictor/main.py | Ruthenic/small-dumb-things | 1e73cecffe1f701718d7ad17e76c92818ca839f3 | [
"Unlicense"
] | null | null | null | civil-war-predictor/main.py | Ruthenic/small-dumb-things | 1e73cecffe1f701718d7ad17e76c92818ca839f3 | [
"Unlicense"
] | null | null | null | print("Welcome to Civil War Predictor, which predicts whether your country will get in Civil War 100% Correctly.\nUnless It Doesn't.")
country = input("What country would you like to predict Civil War for? ")
if 'America' in country: #note that this does not include the middle east or literally any-fucking-where else, ... | 65 | 134 | 0.745055 | 77 | 455 | 4.402597 | 0.649351 | 0.117994 | 0.132743 | 0.117994 | 0.100295 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007979 | 0.173626 | 455 | 6 | 135 | 75.833333 | 0.893617 | 0.217582 | 0 | 0 | 0 | 0.166667 | 0.766197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
25d901787b221acb20854d8e135185c962649ab0 | 1,398 | py | Python | app/paths.py | Marioneq4958/uonetplus_api | 85c067ad5e2f6bf9cb3fb5231b60c50886c5d644 | [
"Apache-2.0"
] | null | null | null | app/paths.py | Marioneq4958/uonetplus_api | 85c067ad5e2f6bf9cb3fb5231b60c50886c5d644 | [
"Apache-2.0"
] | null | null | null | app/paths.py | Marioneq4958/uonetplus_api | 85c067ad5e2f6bf9cb3fb5231b60c50886c5d644 | [
"Apache-2.0"
] | null | null | null | class CUFS:
START: str = "/{SYMBOL}/Account/LogOn?ReturnUrl=%2F{SYMBOL}%2FFS%2FLS%3Fwa%3Dwsignin1.0%26wtrealm%3D{REALM}"
LOGOUT: str = "/{SYMBOL}/FS/LS?wa=wsignout1.0"
class UONETPLUS:
START: str = "/{SYMBOL}/LoginEndpoint.aspx"
GETKIDSLUCKYNUMBERS: str = "/{SYMBOL}/Start.mvc/GetKidsLuckyNumbers"
... | 43.6875 | 112 | 0.717454 | 133 | 1,398 | 7.466165 | 0.330827 | 0.145015 | 0.171198 | 0.140987 | 0.08862 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009877 | 0.130901 | 1,398 | 32 | 113 | 43.6875 | 0.807407 | 0 | 0 | 0 | 0 | 0.038462 | 0.528949 | 0.528949 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d32e27654779611a97edb7d8da6ad05ca5aab047 | 3,675 | py | Python | lib/python/batch_sim/scoring_functions/buoy.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | lib/python/batch_sim/scoring_functions/buoy.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | lib/python/batch_sim/scoring_functions/buoy.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 36.029412 | 78 | 0.733061 | 481 | 3,675 | 5.316008 | 0.305613 | 0.042237 | 0.042237 | 0.059836 | 0.486508 | 0.380524 | 0.35002 | 0.25264 | 0.196324 | 0.148221 | 0 | 0.005579 | 0.170884 | 3,675 | 101 | 79 | 36.386139 | 0.833607 | 0.21415 | 0 | 0.433333 | 0 | 0 | 0.148862 | 0.058144 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.25 | false | 0 | 0.05 | 0.116667 | 0.55 | 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 |
d3346eb4076cf7e5bbc506969f04a63891a2aa45 | 1,231 | py | Python | failed-trials/hu.py | hiroki-kyoto/alice | 273e7f3d647c685db65d224baacd21e9f0e361f9 | [
"MIT"
] | null | null | null | failed-trials/hu.py | hiroki-kyoto/alice | 273e7f3d647c685db65d224baacd21e9f0e361f9 | [
"MIT"
] | null | null | null | failed-trials/hu.py | hiroki-kyoto/alice | 273e7f3d647c685db65d224baacd21e9f0e361f9 | [
"MIT"
] | null | null | null | # The [Hu] system
# The similar philosophy but different approach of GAN.
# A revivable self-supervised Learning system
# The theory contains two:
# 1. The Hu system consists of two agents: the first agent try to provide a good initial solution for the second
# to optimize until the solution meets the specified req... | 61.55 | 120 | 0.766856 | 189 | 1,231 | 4.973545 | 0.603175 | 0.010638 | 0.023404 | 0.044681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002014 | 0.193339 | 1,231 | 20 | 121 | 61.55 | 0.944612 | 0.92039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d35f2739370ea3eaaa26ecc0b2e59cdf90a72d5f | 134 | py | Python | tasks/lint.py | marcus-crane/pkgparse | f5d88ae04e6601446f5a836b4690c48c71db8879 | [
"MIT"
] | 9 | 2017-03-09T05:26:25.000Z | 2017-06-23T17:09:59.000Z | tasks/lint.py | marcus-crane/pkgparse | f5d88ae04e6601446f5a836b4690c48c71db8879 | [
"MIT"
] | 9 | 2016-07-14T01:52:17.000Z | 2018-04-11T22:47:13.000Z | tasks/lint.py | marcus-crane/pkgparse | f5d88ae04e6601446f5a836b4690c48c71db8879 | [
"MIT"
] | 4 | 2016-09-14T06:31:34.000Z | 2017-06-23T17:10:01.000Z | from invoke import task
@task
def flake8(ctx):
""" Run the flake8 linter """
ctx.run("python -m flake8 --exclude=docs,env")
| 16.75 | 50 | 0.649254 | 20 | 134 | 4.35 | 0.75 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.201493 | 134 | 7 | 51 | 19.142857 | 0.785047 | 0.156716 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d36092bb59883d4e8d43485d2f65f2350b118ab5 | 147 | py | Python | Beecrowd/Python/2373.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | Beecrowd/Python/2373.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | Beecrowd/Python/2373.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | N = int(input())
qnt_copos = 0
for i in range(1, N + 1):
L, C = map(int, input().split())
if L > C:
qnt_copos += C
print(qnt_copos) | 21 | 36 | 0.537415 | 28 | 147 | 2.714286 | 0.607143 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.278912 | 147 | 7 | 37 | 21 | 0.688679 | 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 |
d360debd9b2af9126221168c609a0f1c3e91818c | 393 | py | Python | examples/text_bool.py | mik2k2/py-s-lang | 73be30805e2db9be3463eca570bd4b711c4a1f06 | [
"MIT"
] | 1 | 2020-06-14T08:02:32.000Z | 2020-06-14T08:02:32.000Z | examples/text_bool.py | mik2k2/py-s-lang | 73be30805e2db9be3463eca570bd4b711c4a1f06 | [
"MIT"
] | null | null | null | examples/text_bool.py | mik2k2/py-s-lang | 73be30805e2db9be3463eca570bd4b711c4a1f06 | [
"MIT"
] | null | null | null | """TextBool usage"""
import py_s_lang
__all__ = ['is_true', 'get_object', 'get_zero']
def text_to_bool(value):
if isinstance(value, str):
value = value.lower()
return value not in ('false', 'off', 'no', '-', '0') and bool(value)
def is_true(value: text_to_bool):
print('yep' if value else 'nope'... | 17.086957 | 72 | 0.628499 | 59 | 393 | 3.915254 | 0.559322 | 0.051948 | 0.08658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.206107 | 393 | 22 | 73 | 17.863636 | 0.733974 | 0.035623 | 0 | 0 | 0 | 0 | 0.117962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.166667 | 0.666667 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d38a0c8110d530a31171badd0a59d864e1288763 | 3,175 | py | Python | ssdaq/tests/test_assembler.py | sflis/SSDAQold | 4f9a84c34b580548a53719e000dc623f6e1b8a40 | [
"BSD-3-Clause"
] | 1 | 2018-10-23T11:12:44.000Z | 2018-10-23T11:12:44.000Z | ssdaq/tests/test_assembler.py | sflis/SSDAQold | 4f9a84c34b580548a53719e000dc623f6e1b8a40 | [
"BSD-3-Clause"
] | 28 | 2019-02-07T12:50:10.000Z | 2019-11-18T20:36:31.000Z | ssdaq/tests/test_assembler.py | sflis/SSDAQold | 4f9a84c34b580548a53719e000dc623f6e1b8a40 | [
"BSD-3-Clause"
] | 2 | 2019-02-07T12:46:03.000Z | 2019-05-27T13:44:41.000Z | import unittest
# from ssdaq import SSReadout, SSReadoutAssembler # ,SSReadoutlowSignalDataProtocol
import socket
from queue import Queue
import time
# #Silencing INFO logging
# import logging
# from ssdaq import sslogger
# sslogger.setLevel(logging.ERROR)
# import numpy as np
# class TestSSReadout(unittest.TestCa... | 40.189873 | 103 | 0.627087 | 366 | 3,175 | 5.314208 | 0.248634 | 0.071979 | 0.06581 | 0.090488 | 0.398458 | 0.389717 | 0.366067 | 0.341388 | 0.341388 | 0.341388 | 0 | 0.058268 | 0.232441 | 3,175 | 78 | 104 | 40.705128 | 0.739844 | 0.920945 | 0 | 0 | 0 | 0 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d395e1f63713dfb7d2aa932711ac8027c5853ada | 201 | py | Python | backend/apps/recipes/urls.py | Zimodra/foodgram-project-react | d1c35e288c94a76ca6fd609fc4d6df2184f40d4c | [
"MIT"
] | null | null | null | backend/apps/recipes/urls.py | Zimodra/foodgram-project-react | d1c35e288c94a76ca6fd609fc4d6df2184f40d4c | [
"MIT"
] | null | null | null | backend/apps/recipes/urls.py | Zimodra/foodgram-project-react | d1c35e288c94a76ca6fd609fc4d6df2184f40d4c | [
"MIT"
] | null | null | null | from rest_framework import routers
from .apis import RecipesRestAPI
router = routers.DefaultRouter()
router.register(r'recipes', RecipesRestAPI, basename='recipes_api_v1')
urlpatterns = router.urls
| 22.333333 | 70 | 0.81592 | 24 | 201 | 6.708333 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.099502 | 201 | 8 | 71 | 25.125 | 0.883978 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d39c7c46109fb517c36d192a4af96a19e90e430e | 250 | py | Python | pypi_org/models/account/index.py | vyahello/pypi-flask-clone | a96f3aeab98ee36e9f6c7ddeb58fe55abd990aa3 | [
"MIT"
] | null | null | null | pypi_org/models/account/index.py | vyahello/pypi-flask-clone | a96f3aeab98ee36e9f6c7ddeb58fe55abd990aa3 | [
"MIT"
] | null | null | null | pypi_org/models/account/index.py | vyahello/pypi-flask-clone | a96f3aeab98ee36e9f6c7ddeb58fe55abd990aa3 | [
"MIT"
] | null | null | null | from pypi_org.models.shared.modelbase import ViewModelBase
from pypi_org.services.user import find_user_by_id
class IndexViewModel(ViewModelBase):
def __init__(self):
super().__init__()
self.user = find_user_by_id(self.user_id)
| 27.777778 | 58 | 0.764 | 35 | 250 | 4.971429 | 0.542857 | 0.091954 | 0.126437 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152 | 250 | 8 | 59 | 31.25 | 0.820755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f009212053e5c092bf4a9337dc601189e117c64 | 369 | py | Python | p33_test.py | alpatine/project-euler-python | d731d2deebff4bfb812811921f56da7b984652c0 | [
"MIT"
] | null | null | null | p33_test.py | alpatine/project-euler-python | d731d2deebff4bfb812811921f56da7b984652c0 | [
"MIT"
] | null | null | null | p33_test.py | alpatine/project-euler-python | d731d2deebff4bfb812811921f56da7b984652c0 | [
"MIT"
] | null | null | null | from unittest import TestCase
from p33 import can_digit_cancel, p33
class P33_Test(TestCase):
def test_p33(self):
self.assertEqual(p33(), 100)
class Can_Digit_Cancel_Test(TestCase):
def test_trivial(self):
self.assertEqual(can_digit_cancel(30, 50), False)
def test_49_98(self):
... | 28.384615 | 57 | 0.715447 | 54 | 369 | 4.62963 | 0.388889 | 0.128 | 0.224 | 0.152 | 0.264 | 0.264 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.186992 | 369 | 13 | 58 | 28.384615 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9f10ff68dc5f1ef6457ece31e900ee91828262b1 | 304 | py | Python | envi/tests/msp430/isetc.py | rnui2k/vivisect | b7b00f2d03defef28b4b8c912e3a8016e956c5f7 | [
"ECL-2.0",
"Apache-2.0"
] | 716 | 2015-01-01T14:41:11.000Z | 2022-03-28T06:51:50.000Z | envi/tests/msp430/isetc.py | rnui2k/vivisect | b7b00f2d03defef28b4b8c912e3a8016e956c5f7 | [
"ECL-2.0",
"Apache-2.0"
] | 266 | 2015-01-01T15:07:27.000Z | 2022-03-30T15:19:26.000Z | envi/tests/msp430/isetc.py | rnui2k/vivisect | b7b00f2d03defef28b4b8c912e3a8016e956c5f7 | [
"ECL-2.0",
"Apache-2.0"
] | 159 | 2015-01-01T16:19:44.000Z | 2022-03-21T21:55:34.000Z | from envi.archs.msp430.regs import *
checks = [
# SETC
(
'SETC',
{ 'regs': [], 'flags': [(SR_N, 0), (SR_Z, 0), (SR_C, 0), (SR_V, 0)], 'code': "12d3", 'data': "" },
{ 'regs': [], 'flags': [(SR_N, 0), (SR_Z, 0), (SR_C, 1), (SR_V, 0)], 'code': "12d3", 'data': "" }
),
]
| 27.636364 | 106 | 0.411184 | 43 | 304 | 2.72093 | 0.44186 | 0.128205 | 0.188034 | 0.205128 | 0.615385 | 0.615385 | 0.34188 | 0.34188 | 0.34188 | 0.34188 | 0 | 0.077273 | 0.276316 | 304 | 10 | 107 | 30.4 | 0.454545 | 0.013158 | 0 | 0 | 0 | 0 | 0.154362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f115eb2efac861d1ed61e4376128b798a55bfef | 183 | py | Python | redis_pr/wsgi_websocket.py | unix2315/redis_test | ebb63c6a91b50e7c86671722bcea6ea317f834fb | [
"MIT"
] | null | null | null | redis_pr/wsgi_websocket.py | unix2315/redis_test | ebb63c6a91b50e7c86671722bcea6ea317f834fb | [
"MIT"
] | null | null | null | redis_pr/wsgi_websocket.py | unix2315/redis_test | ebb63c6a91b50e7c86671722bcea6ea317f834fb | [
"MIT"
] | null | null | null | # entry point for the websocket loop
import gevent.monkey
gevent.monkey.patch_thread()
from ws4redis.uwsgi_runserver import uWSGIWebsocketServer
application = uWSGIWebsocketServer()
| 26.142857 | 57 | 0.846995 | 21 | 183 | 7.285714 | 0.809524 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.098361 | 183 | 6 | 58 | 30.5 | 0.921212 | 0.185792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9f1b4080913131e2215674661ecd2ca43cd47382 | 116 | py | Python | Hackerrank/Regex/backreferences-to-failed-groups.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | 1 | 2021-01-10T13:29:21.000Z | 2021-01-10T13:29:21.000Z | Hackerrank/Regex/backreferences-to-failed-groups.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | null | null | null | Hackerrank/Regex/backreferences-to-failed-groups.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | null | null | null | Regex_Pattern = r"^\d\d(-?)(\d\d\1){2}\d\d$"
import re
print(str(bool(re.search(Regex_Pattern, input()))).lower()) | 23.2 | 59 | 0.62931 | 22 | 116 | 3.227273 | 0.636364 | 0.112676 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.068966 | 116 | 5 | 59 | 23.2 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0.213675 | 0.213675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9f2fd6fc405ea0c6eadbe9ba65cada0fba1d9b0f | 109 | py | Python | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotRebarEndDetailStrip_t.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotRebarEndDetailStrip_t.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Tekla/Structures/ModelInternal_parts/dotRebarEndDetailStrip_t.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class dotRebarEndDetailStrip_t(object):
# no doc
RebarHookData=None
RebarStrip=None
RebarThreading=None
| 15.571429 | 39 | 0.816514 | 12 | 109 | 7.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119266 | 109 | 6 | 40 | 18.166667 | 0.916667 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 |
9f33dce4447d0bf94308182a1dfd90b9e49e615e | 67 | py | Python | code/sample_3-1-1.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | 1 | 2022-03-29T13:50:12.000Z | 2022-03-29T13:50:12.000Z | code/sample_3-1-1.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | null | null | null | code/sample_3-1-1.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | null | null | null | x = 1
if x == 1:
print("x is 1")
else:
print("x is not 1")
| 11.166667 | 23 | 0.462687 | 15 | 67 | 2.066667 | 0.466667 | 0.129032 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.343284 | 67 | 5 | 24 | 13.4 | 0.613636 | 0 | 0 | 0 | 0 | 0 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
9f3baf3c0c6fec72365739c2568b7b2d6676ad96 | 2,733 | py | Python | MY_standardize.py | igor-yusupov/autorace | 0294873a62f3dbfdf3564bb2b63e97e917be6de6 | [
"MIT"
] | null | null | null | MY_standardize.py | igor-yusupov/autorace | 0294873a62f3dbfdf3564bb2b63e97e917be6de6 | [
"MIT"
] | null | null | null | MY_standardize.py | igor-yusupov/autorace | 0294873a62f3dbfdf3564bb2b63e97e917be6de6 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[ ]:
#### 標準化などの処理
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from sklearn.preprocessing import StandardScaler, MinMaxScaler, RobustScaler, Normalizer
def get_standardized( X_train, X_test = None ) :
#あとで dataframeに変換するときむけの列名
X_colu... | 24.185841 | 88 | 0.64142 | 381 | 2,733 | 4.338583 | 0.125984 | 0.111918 | 0.054446 | 0.043557 | 0.745917 | 0.736842 | 0.708409 | 0.68784 | 0.673321 | 0.651543 | 0 | 0.000501 | 0.270033 | 2,733 | 113 | 89 | 24.185841 | 0.82807 | 0.097695 | 0 | 0.654545 | 0 | 0 | 0.01758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.090909 | 0 | 0.236364 | 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 |
9f4b64adf8e046da9cf38e305c4c0167d8942500 | 23,361 | py | Python | hsi_pe.py | liyuan989/quant-tools | 4154710760b5d8e0c9b55ae379da4dfda2f641a4 | [
"BSD-3-Clause"
] | 1 | 2017-05-10T11:49:35.000Z | 2017-05-10T11:49:35.000Z | hsi_pe.py | liyuan989/quant-tools | 4154710760b5d8e0c9b55ae379da4dfda2f641a4 | [
"BSD-3-Clause"
] | null | null | null | hsi_pe.py | liyuan989/quant-tools | 4154710760b5d8e0c9b55ae379da4dfda2f641a4 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# 运行平台: https://www.joinquant.com/
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import bisect
data_config = {
u'恒生指数' : [
['1973-05-31', 43.5],
['1973-06-30', 33.1],
['1973-07-31', 38.1],
['1973-08-31', 31.6],
['1973-09-30'... | 29.274436 | 97 | 0.376097 | 3,834 | 23,361 | 2.274387 | 0.046688 | 0.027982 | 0.006881 | 0.002408 | 0.02133 | 0.016514 | 0.009633 | 0.009633 | 0.009633 | 0 | 0 | 0.497554 | 0.334874 | 23,361 | 797 | 98 | 29.311167 | 0.06365 | 0.002654 | 0 | 0.007653 | 0 | 0 | 0.313544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005102 | null | null | 0.001276 | 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 |
9f5335637987a71bc478bc9be002732a4b977d84 | 3,011 | py | Python | tests/test_nba_ranking.py | UBC-MDS/pysketball | 3515dfe8367d6f5883cbbf1fef540cb9b9fa608f | [
"MIT"
] | null | null | null | tests/test_nba_ranking.py | UBC-MDS/pysketball | 3515dfe8367d6f5883cbbf1fef540cb9b9fa608f | [
"MIT"
] | 47 | 2020-02-26T06:30:26.000Z | 2020-03-25T23:27:47.000Z | tests/test_nba_ranking.py | AndresPitta/pysketball | 3515dfe8367d6f5883cbbf1fef540cb9b9fa608f | [
"MIT"
] | null | null | null |
import altair as alt
# import numpy as np
import pandas as pd
from pysketball import nba_ranking
from pytest import raises
# import warnings
data_dictionary = {'A': [1, 2, 3],
'B': [2, 3, 4],
'C': ["A", "B", "C"]}
data = pd.DataFrame(data_dictionary)
def test_nba_ranking_in... | 31.041237 | 79 | 0.576553 | 367 | 3,011 | 4.604905 | 0.196185 | 0.195266 | 0.1 | 0.153846 | 0.73787 | 0.73787 | 0.706509 | 0.672781 | 0.614793 | 0.614201 | 0 | 0.011189 | 0.287612 | 3,011 | 96 | 80 | 31.364583 | 0.77669 | 0.278313 | 0 | 0.372093 | 0 | 0 | 0.047778 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.139535 | 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 |
9f654066d61403f12094cb1b8abc8c11a69bc257 | 24,532 | py | Python | psx/_dump_/42/_dump_ida_/overlay_b/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/42/_dump_ida_/overlay_b/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/42/_dump_ida_/overlay_b/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x8013923C, "PreGameOnlyTestRoutine__Fv", SN_NOWARN)
set_name(0x8013B300, "DRLG_PlaceDoor__Fii", SN_NOWARN)
set_name(0x8013B7D4, "DRLG_L1Shadows__Fv", SN_NOWARN)
set_name(0x8013BBEC, "DRLG_PlaceMiniSet__FPCUciiiiiii", SN_NOWARN)
set_name(0x8013C058, "DRLG_L1Floor__Fv", SN_NOWARN)
set_name(0x8013C144, "StoreBlo... | 50.477366 | 68 | 0.822069 | 3,365 | 24,532 | 5.470134 | 0.301932 | 0.184441 | 0.289238 | 0.394415 | 0.31048 | 0.011517 | 0 | 0 | 0 | 0 | 0 | 0.178056 | 0.05931 | 24,532 | 485 | 69 | 50.581443 | 0.619578 | 0 | 0 | 0 | 0 | 0 | 0.288277 | 0.07211 | 0 | 0 | 0.197701 | 0 | 0 | 1 | 0 | true | 0.008247 | 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 |
9f6c6d60611bfc51ed5001182b759772d8f978a4 | 1,332 | py | Python | netrd/reconstruction/__init__.py | Carromattsson/netrd | ec3360b5a9e241f318d7c8e729db3aeed9f2e5b7 | [
"MIT"
] | null | null | null | netrd/reconstruction/__init__.py | Carromattsson/netrd | ec3360b5a9e241f318d7c8e729db3aeed9f2e5b7 | [
"MIT"
] | null | null | null | netrd/reconstruction/__init__.py | Carromattsson/netrd | ec3360b5a9e241f318d7c8e729db3aeed9f2e5b7 | [
"MIT"
] | null | null | null | from .base import BaseReconstructor
from .random import RandomReconstructor
from .correlation_matrix import CorrelationMatrixReconstructor
from .regularized_correlation_matrix import RegularizedCorrelationMatrixReconstructor
from .partial_correlation_matrix import PartialCorrelationMatrixReconstructor
from .partial_cor... | 57.913043 | 85 | 0.91967 | 113 | 1,332 | 10.522124 | 0.557522 | 0.04037 | 0.058032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 1,332 | 22 | 86 | 60.545455 | 0.952724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.952381 | 0 | 0.952381 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9f7209ff0b068024e2cee0edbd57036506aee8db | 539 | py | Python | protobot/roles/checks.py | ProtoTechMC/ProtoBot | b067d40ad41e6c651a81ca246789c7e7361380ab | [
"MIT"
] | null | null | null | protobot/roles/checks.py | ProtoTechMC/ProtoBot | b067d40ad41e6c651a81ca246789c7e7361380ab | [
"MIT"
] | null | null | null | protobot/roles/checks.py | ProtoTechMC/ProtoBot | b067d40ad41e6c651a81ca246789c7e7361380ab | [
"MIT"
] | null | null | null | from discord import Member, Member
from discord.ext.commands import Context
from discord.utils import get
from protobot.roles.utils import get_role
async def can_give_friend(ctx: Context):
return any(get_role(ctx, name=role) in ctx.author.roles for role in ("Admin", "Member"))
def can_grant_friend(ctx: Context, ... | 38.5 | 92 | 0.756957 | 88 | 539 | 4.522727 | 0.352273 | 0.070352 | 0.120603 | 0.105528 | 0.241206 | 0.145729 | 0.145729 | 0.145729 | 0 | 0 | 0 | 0 | 0.135436 | 539 | 14 | 93 | 38.5 | 0.854077 | 0 | 0 | 0 | 0 | 0 | 0.062963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
9f9c72d866f7a7993bd849032aedc970f142a0a4 | 178 | py | Python | tests/watson/common/test_contextmanagers.py | watsonpy/watson-common | 166cf138511d47ed766393d3bb8bf862c609fdcd | [
"BSD-3-Clause"
] | null | null | null | tests/watson/common/test_contextmanagers.py | watsonpy/watson-common | 166cf138511d47ed766393d3bb8bf862c609fdcd | [
"BSD-3-Clause"
] | null | null | null | tests/watson/common/test_contextmanagers.py | watsonpy/watson-common | 166cf138511d47ed766393d3bb8bf862c609fdcd | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from watson.common.contextmanagers import suppress
def test_ignored_exception():
with suppress(Exception):
raise Exception
assert True
| 17.8 | 50 | 0.702247 | 20 | 178 | 6.15 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.202247 | 178 | 9 | 51 | 19.777778 | 0.859155 | 0.117978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9faa452e423ab7d4a0d01240835a14a564c24024 | 794 | py | Python | test_functions.py | QijingMa/COGS18-Final-Project | 71d2761706f2614bcee2e5d5d2b42a98af542d21 | [
"MIT"
] | null | null | null | test_functions.py | QijingMa/COGS18-Final-Project | 71d2761706f2614bcee2e5d5d2b42a98af542d21 | [
"MIT"
] | null | null | null | test_functions.py | QijingMa/COGS18-Final-Project | 71d2761706f2614bcee2e5d5d2b42a98af542d21 | [
"MIT"
] | null | null | null | """Test for my functions."""
from functions import *
def test_Intro():
Intro()
assert True
def test_choosePokemon():
choosePokemon()
assert True
def test_chooseSkill1():
chooseSkill1()
assert True
def test_chooseSkill2():
... | 13.233333 | 42 | 0.527708 | 65 | 794 | 6.323077 | 0.384615 | 0.136253 | 0.221411 | 0.289538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032051 | 0.410579 | 794 | 59 | 43 | 13.457627 | 0.846154 | 0 | 0 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0 | null | null | 0 | 0.04 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9fafdfb701b1607e96c3343d00181c3f0637d094 | 179 | py | Python | Week 8: Functional programming/8 (03).py | MLunov/Python-programming-basics-HSE | 7df8bba105db84d6b932c454fdc39193a648254e | [
"MIT"
] | null | null | null | Week 8: Functional programming/8 (03).py | MLunov/Python-programming-basics-HSE | 7df8bba105db84d6b932c454fdc39193a648254e | [
"MIT"
] | null | null | null | Week 8: Functional programming/8 (03).py | MLunov/Python-programming-basics-HSE | 7df8bba105db84d6b932c454fdc39193a648254e | [
"MIT"
] | null | null | null | print(
min(
filter(
lambda x: x % 2 != 0,
map(
int,
input().split()
)
)
)
)
| 14.916667 | 34 | 0.223464 | 12 | 179 | 3.333333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.670391 | 179 | 11 | 35 | 16.272727 | 0.644068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9fb143668210f70a8dce491a4b8fc9f6c27bc32c | 311 | py | Python | lib/tests/test_utils.py | wwwuFei/euro-calliope | aef4939a6577aefaeff0d76adbf4216da17cd42b | [
"MIT"
] | 16 | 2020-06-24T12:50:59.000Z | 2022-02-02T10:30:07.000Z | lib/tests/test_utils.py | wwwuFei/euro-calliope | aef4939a6577aefaeff0d76adbf4216da17cd42b | [
"MIT"
] | 153 | 2020-06-17T14:30:08.000Z | 2022-03-30T10:15:31.000Z | lib/tests/test_utils.py | wwwuFei/euro-calliope | aef4939a6577aefaeff0d76adbf4216da17cd42b | [
"MIT"
] | 6 | 2020-11-03T14:44:01.000Z | 2021-10-19T04:53:39.000Z | import pytest
from eurocalliopelib.utils import eu_country_code_to_iso3
@pytest.mark.parametrize('eu_country_code,iso3166', [
("uk", "GBR"),
("el", "GRC"),
("de", "DEU")
])
def test_country_code_conversion(eu_country_code, iso3166):
assert eu_country_code_to_iso3(eu_country_code) == iso3166
| 23.923077 | 62 | 0.729904 | 43 | 311 | 4.883721 | 0.534884 | 0.314286 | 0.309524 | 0.285714 | 0.180952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051852 | 0.131833 | 311 | 12 | 63 | 25.916667 | 0.725926 | 0 | 0 | 0 | 0 | 0 | 0.122187 | 0.073955 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ca8316079521ae31c12c05455098f68ba02e3ce | 228 | py | Python | MLtools/__init__.py | artificialnouveau/lazydatasci | bd82998c33f05258bfdc847564c738c2bcbbb17f | [
"MIT"
] | null | null | null | MLtools/__init__.py | artificialnouveau/lazydatasci | bd82998c33f05258bfdc847564c738c2bcbbb17f | [
"MIT"
] | null | null | null | MLtools/__init__.py | artificialnouveau/lazydatasci | bd82998c33f05258bfdc847564c738c2bcbbb17f | [
"MIT"
] | null | null | null | name = "MethDevDataSci"
# import subpackages
from . import crossvalid
from . import dataviz
from . import EDA
from . import featureengineer
from . import featureselection
from . import hyperparameteropt
from . import utilities
| 20.727273 | 31 | 0.798246 | 25 | 228 | 7.28 | 0.48 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153509 | 228 | 10 | 32 | 22.8 | 0.943005 | 0.078947 | 0 | 0 | 0 | 0 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 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 |
4cf5a41ae19301eee2283296e371a992e3546cb8 | 4,207 | py | Python | realtime_er/models.py | ButucRoxana/RealTime-ER | d7253257a73fd88ef7226d2ba2a976ccc123bdb2 | [
"Apache-2.0"
] | null | null | null | realtime_er/models.py | ButucRoxana/RealTime-ER | d7253257a73fd88ef7226d2ba2a976ccc123bdb2 | [
"Apache-2.0"
] | null | null | null | realtime_er/models.py | ButucRoxana/RealTime-ER | d7253257a73fd88ef7226d2ba2a976ccc123bdb2 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from sqlalchemy import desc
from flask_login import UserMixin
from werkzeug.security import check_password_hash, generate_password_hash
from realtime_er import db
class User(db.Model, UserMixin):
user_id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(8... | 39.688679 | 96 | 0.706917 | 584 | 4,207 | 4.969178 | 0.193493 | 0.107512 | 0.13439 | 0.140593 | 0.523777 | 0.410062 | 0.324259 | 0.251895 | 0.206409 | 0.206409 | 0 | 0.009019 | 0.156644 | 4,207 | 105 | 97 | 40.066667 | 0.808906 | 0.045401 | 0 | 0.088608 | 1 | 0 | 0.100549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0.113924 | 0.063291 | 0.050633 | 0.924051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4cfec76763d9ba36b4d721265e31f7c3aee57d26 | 6,764 | py | Python | HardwareTests/KnownValues/kv_2__arithmetic.py | JetStarBlues/Nand-2-Tetris | c27b5c2ac659f1edb63d36d89bf87e226bc5672c | [
"MIT"
] | null | null | null | HardwareTests/KnownValues/kv_2__arithmetic.py | JetStarBlues/Nand-2-Tetris | c27b5c2ac659f1edb63d36d89bf87e226bc5672c | [
"MIT"
] | null | null | null | HardwareTests/KnownValues/kv_2__arithmetic.py | JetStarBlues/Nand-2-Tetris | c27b5c2ac659f1edb63d36d89bf87e226bc5672c | [
"MIT"
] | null | null | null | '''
Comparison data as seen here,
http://www.nand2tetris.org/
'''
'''------------------------- Arithmetic gates -------------------------'''
k_halfAdder = [
# [ a, b, ( sum, carry ) ]
[ 0, 0, ( 0, 0 ) ],
[ 0, 1, ( 1, 0 ) ],
[ 1, 0, ( 1, 0 ) ],
[ 1, 1, ( 0, 1 ) ],
]
k_fullAdder = [
# [ a, b, c, ( sum, carry ... | 52.84375 | 87 | 0.651685 | 539 | 6,764 | 8.163265 | 0.243043 | 0.016818 | 0.098182 | 0.077273 | 0.395455 | 0.210227 | 0.013182 | 0.009091 | 0.004091 | 0 | 0 | 0.716545 | 0.130544 | 6,764 | 127 | 88 | 53.259843 | 0.031627 | 0.028977 | 0 | 0 | 0 | 0 | 0.624016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
980fe5de087887a31148985ecda2aa1aaed41c3c | 35 | py | Python | guild/tests/samples/projects/autocomplete/echo.py | dwolfschlaeger/guildai | f82102ad950d7c89c8f2c2eafe596b2d7109dc57 | [
"Apache-2.0"
] | 694 | 2018-11-30T01:06:30.000Z | 2022-03-31T14:46:26.000Z | guild/tests/samples/projects/autocomplete/echo.py | dwolfschlaeger/guildai | f82102ad950d7c89c8f2c2eafe596b2d7109dc57 | [
"Apache-2.0"
] | 323 | 2018-11-05T17:44:34.000Z | 2022-03-31T16:56:41.000Z | guild/tests/samples/projects/autocomplete/echo.py | dwolfschlaeger/guildai | f82102ad950d7c89c8f2c2eafe596b2d7109dc57 | [
"Apache-2.0"
] | 68 | 2019-04-01T04:24:47.000Z | 2022-02-24T17:22:04.000Z | msg = None
if msg:
print(msg)
| 7 | 14 | 0.571429 | 6 | 35 | 3.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314286 | 35 | 4 | 15 | 8.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
98198e5933d0fcdc237d3d46ec68a3845a5a75a0 | 573 | py | Python | ACME/geometry/project_point_on_plane.py | mauriziokovacic/ACME | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 3 | 2019-10-23T23:10:55.000Z | 2021-09-01T07:30:14.000Z | ACME/geometry/project_point_on_plane.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | null | null | null | ACME/geometry/project_point_on_plane.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 1 | 2020-07-11T11:35:43.000Z | 2020-07-11T11:35:43.000Z | from .point_plane_distance import *
def project_point_on_plane(P, N, Q, dim=1):
"""
Returns the projection of a given point Q onto the plane passing in P, with normal N
Parameters
----------
P : Tensor
a point on the plane
N : Tensor
the normal of the plane
Q : Tensor
... | 21.222222 | 88 | 0.605585 | 83 | 573 | 4.096386 | 0.445783 | 0.070588 | 0.105882 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.308901 | 573 | 26 | 89 | 22.038462 | 0.853535 | 0.624782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e245c9c8840fb602fc28fdf04f855a5402953718 | 264 | py | Python | ui_htmx/views.py | remiberthoz/teachers-rubrics | 355a282e8d4e91e343eef28aaa9b1214b03d3399 | [
"MIT"
] | null | null | null | ui_htmx/views.py | remiberthoz/teachers-rubrics | 355a282e8d4e91e343eef28aaa9b1214b03d3399 | [
"MIT"
] | null | null | null | ui_htmx/views.py | remiberthoz/teachers-rubrics | 355a282e8d4e91e343eef28aaa9b1214b03d3399 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from core.models import Exam
from .htmx_render import htmx_render_page
def index(request):
exams = Exam.objects.order_by("name")
return HttpResponse(htmx_render_page(request, 'ui_htmx/index.html', {'exams': exams}))
| 26.4 | 90 | 0.768939 | 38 | 264 | 5.157895 | 0.578947 | 0.153061 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 264 | 9 | 91 | 29.333333 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0.102273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e24c5f2dd2508c2aed0d99107127430f364e4e48 | 228 | py | Python | settings/includes.py | vnknt/p2p_network | d01923ed1db84ed4f3bc52f9f50856e89e930cb3 | [
"MIT"
] | 3 | 2021-04-08T11:24:51.000Z | 2022-01-18T21:00:40.000Z | settings/includes.py | vnknt/p2p_network | d01923ed1db84ed4f3bc52f9f50856e89e930cb3 | [
"MIT"
] | 1 | 2021-04-04T17:37:53.000Z | 2021-04-04T22:28:11.000Z | settings/includes.py | vnknt/p2p_network | d01923ed1db84ed4f3bc52f9f50856e89e930cb3 | [
"MIT"
] | null | null | null | import socket
import time
import threading
import commands
import random
import json
import hashlib
from settings.terminal_set import bcolors
from helpers.terminal_helper import print_colored
import os
os.system("color")
| 12 | 49 | 0.828947 | 32 | 228 | 5.8125 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 228 | 18 | 50 | 12.666667 | 0.94898 | 0 | 0 | 0 | 0 | 0 | 0.022026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.909091 | 0 | 0.909091 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e28c04608bd2395066f1399c64f97e24c619aa96 | 58 | py | Python | webfriend/info.py | PerformLine/webfriend | 579f226f94b937f8685454235d1653a9ee542c36 | [
"BSD-2-Clause"
] | 32 | 2017-05-31T01:52:17.000Z | 2021-12-15T18:06:09.000Z | webfriend/info.py | PerformLine/webfriend | 579f226f94b937f8685454235d1653a9ee542c36 | [
"BSD-2-Clause"
] | 4 | 2017-06-14T03:53:19.000Z | 2022-01-17T14:29:08.000Z | webfriend/info.py | PerformLine/webfriend | 579f226f94b937f8685454235d1653a9ee542c36 | [
"BSD-2-Clause"
] | 2 | 2020-07-20T20:12:48.000Z | 2022-03-23T08:35:59.000Z | from __future__ import absolute_import
version = '0.4.1'
| 14.5 | 38 | 0.775862 | 9 | 58 | 4.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.137931 | 58 | 3 | 39 | 19.333333 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 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 |
e298ae72576e0ac1631df59074930b4df888b027 | 39 | py | Python | accounts/urls.py | SNFernandes24/church-ims | 944b7e65e926276adfe376ace01cf0adf135b954 | [
"MIT"
] | 1 | 2021-09-11T17:22:37.000Z | 2021-09-11T17:22:37.000Z | accounts/urls.py | SNFernandes24/church-ims | 944b7e65e926276adfe376ace01cf0adf135b954 | [
"MIT"
] | 39 | 2021-06-26T02:01:37.000Z | 2021-07-14T17:11:53.000Z | accounts/urls.py | SNFernandes24/church-ims | 944b7e65e926276adfe376ace01cf0adf135b954 | [
"MIT"
] | 2 | 2021-07-19T08:00:58.000Z | 2022-02-05T16:38:02.000Z | app_name = "accounts"
urlpatterns = []
| 13 | 21 | 0.692308 | 4 | 39 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 39 | 2 | 22 | 19.5 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 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 |
e2a29ef064020d609faa3b8c9aa45334305c6f9e | 568 | py | Python | tests/eth2/core/beacon/types/test_aggregate_and_proof.py | dendisuhubdy/trinity | 001664781259c7dd0779a0ef6f822451b608ded4 | [
"MIT"
] | 14 | 2020-08-24T18:23:31.000Z | 2021-11-04T14:11:04.000Z | tests/eth2/core/beacon/types/test_aggregate_and_proof.py | dendisuhubdy/trinity | 001664781259c7dd0779a0ef6f822451b608ded4 | [
"MIT"
] | 19 | 2020-08-25T15:57:05.000Z | 2021-07-07T00:49:45.000Z | tests/eth2/core/beacon/types/test_aggregate_and_proof.py | dendisuhubdy/trinity | 001664781259c7dd0779a0ef6f822451b608ded4 | [
"MIT"
] | 7 | 2020-08-24T22:53:02.000Z | 2022-03-28T18:51:48.000Z | from eth2.beacon.types.aggregate_and_proof import AggregateAndProof
def test_defaults(sample_aggregate_and_proof_params):
aggregate_and_proof = AggregateAndProof.create(**sample_aggregate_and_proof_params)
assert aggregate_and_proof.aggregator_index == (
sample_aggregate_and_proof_params["aggregator_... | 33.411765 | 87 | 0.772887 | 64 | 568 | 6.3125 | 0.296875 | 0.29703 | 0.420792 | 0.284653 | 0.403465 | 0.188119 | 0 | 0 | 0 | 0 | 0 | 0.002092 | 0.158451 | 568 | 16 | 88 | 35.5 | 0.843096 | 0 | 0 | 0.153846 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 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 |
2c4f62bc3d2c060e3eca0e91cbf9b202b65489b4 | 485 | py | Python | formatter/tree/serializer.py | p141592/fromat_parse | 0cf3465de3b7c2f89de42574f1cb2b1ac62e56d4 | [
"BSD-3-Clause"
] | null | null | null | formatter/tree/serializer.py | p141592/fromat_parse | 0cf3465de3b7c2f89de42574f1cb2b1ac62e56d4 | [
"BSD-3-Clause"
] | 1 | 2019-07-31T20:17:07.000Z | 2019-07-31T20:17:07.000Z | formatter/tree/serializer.py | p141592/markdown_parse | 0cf3465de3b7c2f89de42574f1cb2b1ac62e56d4 | [
"BSD-3-Clause"
] | null | null | null | from marshmallow import fields, Schema
class BaseNodeDBSerializator(Schema):
type = fields.String() # Тип объекта строкой
format_sign = fields.Boolean(allow_none=True) # Признак формата в строке Boolean
path = fields.String(allow_none=True) # Полный путь до файла
filename = fields.String(allow_none=Tru... | 48.5 | 84 | 0.762887 | 63 | 485 | 5.761905 | 0.619048 | 0.123967 | 0.179063 | 0.173554 | 0.206612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156701 | 485 | 9 | 85 | 53.888889 | 0.887531 | 0.276289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2c53e69d06afa05ee3ba39b8bf126294c1f649b7 | 551 | py | Python | python/yandex/04_generate_parentheses_seq.py | holyketzer/ctci_v6 | 8877093c3f6744887a4c04ffcdee44d3592170c8 | [
"MIT"
] | 1 | 2021-07-04T19:07:04.000Z | 2021-07-04T19:07:04.000Z | python/yandex/04_generate_parentheses_seq.py | holyketzer/ctci_v6 | 8877093c3f6744887a4c04ffcdee44d3592170c8 | [
"MIT"
] | null | null | null | python/yandex/04_generate_parentheses_seq.py | holyketzer/ctci_v6 | 8877093c3f6744887a4c04ffcdee44d3592170c8 | [
"MIT"
] | 1 | 2020-12-22T21:20:35.000Z | 2020-12-22T21:20:35.000Z | import sys
def generate_seqs(n, left_count, right_count, curr, index):
if left_count == n and right_count == n:
print ''.join(curr)
elif right_count > left_count:
return
else:
if left_count < n:
curr[index] = '('
generate_seqs(n, left_count + 1, right_count, curr, index + 1)
curr[in... | 25.045455 | 68 | 0.600726 | 82 | 551 | 3.841463 | 0.304878 | 0.2 | 0.165079 | 0.161905 | 0.488889 | 0.368254 | 0.368254 | 0.234921 | 0.234921 | 0 | 0 | 0.019277 | 0.246824 | 551 | 21 | 69 | 26.238095 | 0.739759 | 0 | 0 | 0.117647 | 1 | 0 | 0.00363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c61d298e2cf871aefa93591c46adf3109d541e2 | 24 | py | Python | config/deps.py | veltzer/demos-statstics-python | 478a355791a17a570c113fdda27889b78cbef50d | [
"MIT"
] | null | null | null | config/deps.py | veltzer/demos-statstics-python | 478a355791a17a570c113fdda27889b78cbef50d | [
"MIT"
] | null | null | null | config/deps.py | veltzer/demos-statstics-python | 478a355791a17a570c113fdda27889b78cbef50d | [
"MIT"
] | null | null | null | packages=[
'ldc',
]
| 6 | 10 | 0.458333 | 2 | 24 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 24 | 3 | 11 | 8 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0.125 | 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 |
2cab9fdd4d36ba13bf22c200b9385144d053991f | 298 | py | Python | dew/commands/clean.py | jackoalan/dew | 22295c426e54e1289092eb5ca0eef9357f84e596 | [
"Apache-2.0"
] | 3 | 2017-08-20T20:39:16.000Z | 2019-05-14T00:28:39.000Z | dew/commands/clean.py | jackoalan/dew | 22295c426e54e1289092eb5ca0eef9357f84e596 | [
"Apache-2.0"
] | 6 | 2019-05-12T04:09:34.000Z | 2019-11-29T20:59:58.000Z | dew/commands/clean.py | jackoalan/dew | 22295c426e54e1289092eb5ca0eef9357f84e596 | [
"Apache-2.0"
] | 3 | 2019-02-09T17:16:32.000Z | 2020-03-25T16:25:58.000Z | import dew.command
from dew.impl import CommandData
class ArgumentData(object):
def __init__(self) -> None:
pass
class Command(dew.command.Command):
def execute(self, args: ArgumentData, data: CommandData) -> int:
data.view.error('Not implemented yet')
return 1
| 21.285714 | 68 | 0.684564 | 37 | 298 | 5.405405 | 0.675676 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.214765 | 298 | 13 | 69 | 22.923077 | 0.850427 | 0 | 0 | 0 | 0 | 0 | 0.063758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.222222 | 0 | 0.777778 | 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 |
2cca27d9a6c4f66382375c7de7ccd2556897bd0a | 858 | py | Python | venv3864/Lib/site-packages/PyInstaller/hooks/hook-pywt.py | JonRob812/SuperDuper | 51fdec82c04acf7c0b37f31e1ce2fce3eb22ce8b | [
"Apache-2.0"
] | 4 | 2019-08-28T21:01:08.000Z | 2021-06-30T06:27:35.000Z | venv3864/Lib/site-packages/PyInstaller/hooks/hook-pywt.py | JonRob812/SuperDuper | 51fdec82c04acf7c0b37f31e1ce2fce3eb22ce8b | [
"Apache-2.0"
] | 5 | 2019-11-10T16:20:09.000Z | 2019-12-02T14:23:58.000Z | venv3864/Lib/site-packages/PyInstaller/hooks/hook-pywt.py | JonRob812/SuperDuper | 51fdec82c04acf7c0b37f31e1ce2fce3eb22ce8b | [
"Apache-2.0"
] | 2 | 2019-08-27T22:21:05.000Z | 2021-06-30T06:27:41.000Z | #-----------------------------------------------------------------------------
# Copyright (c) 2019, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this softwa... | 45.157895 | 79 | 0.624709 | 108 | 858 | 4.944444 | 0.666667 | 0.041199 | 0.052434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005384 | 0.134033 | 858 | 18 | 80 | 47.666667 | 0.713324 | 0.914918 | 0 | 0 | 0 | 0 | 0.355932 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e2ea6cd45a7c1ffd36c237e90a46207eae19b222 | 210 | py | Python | scripts/check_have_miss.py | eklipse2009/ZX-Pokemaster | 113bf2e242347b475cca9eadbae4f1b67f498466 | [
"MIT"
] | 8 | 2018-11-18T00:37:25.000Z | 2020-12-06T13:17:53.000Z | scripts/check_have_miss.py | eklipse2009/ZX-Pokemaster | 113bf2e242347b475cca9eadbae4f1b67f498466 | [
"MIT"
] | 8 | 2017-08-21T10:07:58.000Z | 2020-03-29T18:23:37.000Z | scripts/check_have_miss.py | eklipse2009/ZX-Pokemaster | 113bf2e242347b475cca9eadbae4f1b67f498466 | [
"MIT"
] | 1 | 2021-03-04T17:43:36.000Z | 2021-03-04T17:43:36.000Z | from classes.tosec_scraper import *
if (os.getcwd().endswith('scripts')):
os.chdir('..')
ts = TOSECScraper(cache=False)
ts.paths = ts.generateTOSECPathsArrayFromDatFiles()
missed_paths = ts.getUnscraped()
| 26.25 | 51 | 0.742857 | 24 | 210 | 6.416667 | 0.791667 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 210 | 7 | 52 | 30 | 0.814815 | 0 | 0 | 0 | 1 | 0 | 0.043062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e2f0e73495e94ce8a0b6005271d199781f73a134 | 1,256 | py | Python | ics_demo/dao/interfaces/vsan/vsan.py | lielongxingkong/ics-demo | 21a08945f3983eb409916a7380549f74e3ba5171 | [
"MIT"
] | null | null | null | ics_demo/dao/interfaces/vsan/vsan.py | lielongxingkong/ics-demo | 21a08945f3983eb409916a7380549f74e3ba5171 | [
"MIT"
] | null | null | null | ics_demo/dao/interfaces/vsan/vsan.py | lielongxingkong/ics-demo | 21a08945f3983eb409916a7380549f74e3ba5171 | [
"MIT"
] | null | null | null | from ics_demo.dao.interfaces import base
from ics_demo.dao.orm.vsan import VsanStore
from ics_demo.helpers import uuidgen
def get_all():
return base.class_get_all_to_dict(VsanStore)
def get_one(uuid):
return base.class_get_one_by_uuid_to_dict(VsanStore, uuid)
def get_obj(uuid):
return ... | 32.205128 | 98 | 0.73328 | 164 | 1,256 | 5.25 | 0.231707 | 0.162602 | 0.087108 | 0.10453 | 0.154472 | 0.103368 | 0.076655 | 0.076655 | 0.076655 | 0 | 0 | 0 | 0.179936 | 1,256 | 39 | 99 | 32.205128 | 0.835922 | 0.020701 | 0 | 0 | 0 | 0 | 0.071309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.12 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e2fe881fed8f51fc3022f74e062236fbf6d56538 | 1,907 | py | Python | tests/test_a05.py | All-IISER-Cubing-Society/scoring | f78b84490fbcf47a4b29527652648c5fb92e50ab | [
"MIT"
] | null | null | null | tests/test_a05.py | All-IISER-Cubing-Society/scoring | f78b84490fbcf47a4b29527652648c5fb92e50ab | [
"MIT"
] | 1 | 2021-08-29T17:21:48.000Z | 2021-08-29T17:21:48.000Z | tests/test_a05.py | All-IISER-Cubing-Society/scoring | f78b84490fbcf47a4b29527652648c5fb92e50ab | [
"MIT"
] | null | null | null | from new_scores import ao5_calc
def test_all_five_times_with_default_event_1():
times = {
"e1t1": 19.34,
"e1t2": 18.20,
"e1t3": 21.49,
"e1t4": 20.01,
"e1t5": 17.78
}
assert ao5_calc(times) == 19.18
def test_all_five_times_with_specified_event():
times = {
... | 18.881188 | 47 | 0.463031 | 251 | 1,907 | 3.354582 | 0.207171 | 0.083135 | 0.106888 | 0.138955 | 0.756532 | 0.754157 | 0.669834 | 0.637767 | 0.637767 | 0.583135 | 0 | 0.215622 | 0.355532 | 1,907 | 101 | 48 | 18.881188 | 0.469487 | 0 | 0 | 0.585366 | 0 | 0 | 0.11478 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 1 | 0.109756 | false | 0 | 0.012195 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
392daa4fe62f6ecc1462feba1a403c72103827c9 | 1,226 | py | Python | Chapter21.TheBenchmarkingInterlude/timeseqs_timer2.py | mindnhand/Learning-Python-5th | 3dc1b28d6e048d512bf851de6c7f6445edfe7b84 | [
"MIT"
] | null | null | null | Chapter21.TheBenchmarkingInterlude/timeseqs_timer2.py | mindnhand/Learning-Python-5th | 3dc1b28d6e048d512bf851de6c7f6445edfe7b84 | [
"MIT"
] | null | null | null | Chapter21.TheBenchmarkingInterlude/timeseqs_timer2.py | mindnhand/Learning-Python-5th | 3dc1b28d6e048d512bf851de6c7f6445edfe7b84 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#encoding=utf-8
#------------------------------------------------------------
# Usage: python3 timeseqs_timer2.py
# Description: timer test for multiple implementation
#------------------------------------------------------------
import sys, timer2
reps = 10000
repslist = list(range(reps))
... | 19.774194 | 84 | 0.554649 | 177 | 1,226 | 3.717514 | 0.418079 | 0.022796 | 0.036474 | 0.085106 | 0.06079 | 0.06079 | 0.06079 | 0 | 0 | 0 | 0 | 0.12639 | 0.193312 | 1,226 | 61 | 85 | 20.098361 | 0.538928 | 0.196574 | 0 | 0.086957 | 0 | 0 | 0.032486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0.130435 | 0.521739 | 0.086957 | 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 |
39362393cbb88e821d28c532b045aa0a3312d0a3 | 77 | py | Python | projects/webptspy/apps/account/ldap/__init__.py | codelieche/testing | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | 2 | 2017-08-10T03:40:22.000Z | 2017-08-17T13:20:16.000Z | projects/webptspy/apps/account/ldap/__init__.py | codelieche/webpts | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | null | null | null | projects/webptspy/apps/account/ldap/__init__.py | codelieche/webpts | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | null | null | null | # _*_ coding:utf-8 _*_
__author__ = 'YaoYong'
__date__ = '2017/3/11 上午10:15'
| 19.25 | 30 | 0.675325 | 11 | 77 | 3.636364 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.142857 | 77 | 3 | 31 | 25.666667 | 0.424242 | 0.25974 | 0 | 0 | 0 | 0 | 0.436364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
393c083d8930dcfb523b273dbf5e5c1eb3191cda | 1,791 | py | Python | peerdid/tests/delta_test.py | didx-xyz/pypeerdid | 3aec4653210264d3e6e7b7694ae92eab6c4c6b02 | [
"Apache-2.0"
] | 10 | 2019-11-27T09:33:00.000Z | 2021-02-16T10:04:47.000Z | peerdid/tests/delta_test.py | didx-xyz/pypeerdid | 3aec4653210264d3e6e7b7694ae92eab6c4c6b02 | [
"Apache-2.0"
] | null | null | null | peerdid/tests/delta_test.py | didx-xyz/pypeerdid | 3aec4653210264d3e6e7b7694ae92eab6c4c6b02 | [
"Apache-2.0"
] | 9 | 2019-07-10T17:31:16.000Z | 2022-02-22T14:21:14.000Z | import json
import re
from ..delta import Delta
SAMPLE_CHANGE = '{"deleted": ["key-1"]}'
SAMPLE_CHANGE_BASE64 = "eyJkZWxldGVkIjogWyJrZXktMSJdfQ=="
def test_ctor_with_json_str(sample_delta):
d = sample_delta
assert d.change == SAMPLE_CHANGE_BASE64
assert d.by == []
assert d.when
assert d.hash
... | 24.202703 | 59 | 0.692909 | 260 | 1,791 | 4.461538 | 0.173077 | 0.218103 | 0.139655 | 0.064655 | 0.443966 | 0.271552 | 0.244828 | 0.244828 | 0.244828 | 0.244828 | 0 | 0.027891 | 0.179229 | 1,791 | 74 | 60 | 24.202703 | 0.761224 | 0 | 0 | 0.163265 | 0 | 0 | 0.071987 | 0.017857 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.22449 | false | 0 | 0.061224 | 0 | 0.285714 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3949f6343bce25d370770539a8b96eea67c017e7 | 47 | py | Python | test/__init__.py | seelikes/PyProperties | 19ca62e9b0014a5dfa3af2efd301114756abfae7 | [
"MIT"
] | null | null | null | test/__init__.py | seelikes/PyProperties | 19ca62e9b0014a5dfa3af2efd301114756abfae7 | [
"MIT"
] | null | null | null | test/__init__.py | seelikes/PyProperties | 19ca62e9b0014a5dfa3af2efd301114756abfae7 | [
"MIT"
] | null | null | null | # coding=utf-8
__all__ = ['testPyProperties']
| 11.75 | 30 | 0.702128 | 5 | 47 | 5.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.12766 | 47 | 3 | 31 | 15.666667 | 0.682927 | 0.255319 | 0 | 0 | 0 | 0 | 0.484848 | 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 |
394b9037c77d51e076973978a59839621057ac5d | 114 | py | Python | ExampleProject/munge/create_second_iris.py | tshauck/Gloo | 46a1f362ba0fc2d2715ebd54a486ff214c5a83d9 | [
"BSD-3-Clause"
] | 9 | 2016-01-27T17:17:20.000Z | 2018-05-30T15:52:44.000Z | ExampleProject/munge/create_second_iris.py | tshauck/Gloo | 46a1f362ba0fc2d2715ebd54a486ff214c5a83d9 | [
"BSD-3-Clause"
] | null | null | null | ExampleProject/munge/create_second_iris.py | tshauck/Gloo | 46a1f362ba0fc2d2715ebd54a486ff214c5a83d9 | [
"BSD-3-Clause"
] | null | null | null | from pandas import read_csv
#paths should be relative to base project location
iris2 = read_csv('data/iris.csv')
| 22.8 | 50 | 0.789474 | 19 | 114 | 4.631579 | 0.842105 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.140351 | 114 | 4 | 51 | 28.5 | 0.887755 | 0.429825 | 0 | 0 | 0 | 0 | 0.203125 | 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 |
1a345bb119f9b825119b04f2369da73697ae1fe6 | 8,722 | py | Python | Machines/CACHE/openemr_rce.py | limitedeternity/HackTheBox | ed8d6fc7ff7b880b1961098bedca1fc5fdf7fd09 | [
"MIT"
] | null | null | null | Machines/CACHE/openemr_rce.py | limitedeternity/HackTheBox | ed8d6fc7ff7b880b1961098bedca1fc5fdf7fd09 | [
"MIT"
] | null | null | null | Machines/CACHE/openemr_rce.py | limitedeternity/HackTheBox | ed8d6fc7ff7b880b1961098bedca1fc5fdf7fd09 | [
"MIT"
] | 3 | 2021-12-29T10:39:01.000Z | 2022-03-29T22:56:40.000Z | # Title: OpenEMR < 5.0.1 - Remote Code Execution
# Author: Cody Zacharias
# Date: 2018-08-07
# Vendor Homepage: https://www.open-emr.org/
# Software Link: https://github.com/openemr/openemr/archive/v5_0_1_3.tar.gz
# Dockerfile: https://github.com/haccer/exploits/blob/master/OpenEMR-RCE/Dockerfile
# Version: < 5.... | 60.993007 | 120 | 0.646411 | 1,445 | 8,722 | 3.666436 | 0.409689 | 0.070781 | 0.014534 | 0.020385 | 0.057569 | 0.044356 | 0.024349 | 0.024349 | 0.011514 | 0.011514 | 0 | 0.171483 | 0.158909 | 8,722 | 143 | 121 | 60.993007 | 0.550709 | 0.104219 | 0 | 0.018349 | 0 | 0.412844 | 0.699124 | 0.562279 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027523 | 0.036697 | 0 | 0.036697 | 0.045872 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a5fa5e9ddd1d7d49ddbce7939edcef8de7e82c7 | 1,022 | py | Python | opta/core/cloud_client.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | null | null | null | opta/core/cloud_client.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | null | null | null | opta/core/cloud_client.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Dict, Optional
if TYPE_CHECKING:
from opta.layer import Layer, StructuredConfig
class CloudClient(ABC):
def __init__(self, layer: Optional["Layer"] = None):
if layer:
self.layer = layer
@abstractmethod
def get_... | 23.227273 | 81 | 0.668297 | 109 | 1,022 | 6.055046 | 0.357798 | 0.206061 | 0.159091 | 0.118182 | 0.180303 | 0.136364 | 0.136364 | 0.136364 | 0 | 0 | 0 | 0 | 0.245597 | 1,022 | 43 | 82 | 23.767442 | 0.856031 | 0 | 0 | 0.5 | 0 | 0 | 0.036204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0.15625 | 0.09375 | 0 | 0.40625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1a6552fe050bedf6b91937c12feee1a01540913e | 13,061 | py | Python | pybvc/netconfdev/vrouter/firewall.py | brocade/pybvc | 316e8cb79ecbeb3670276afd43286e57897bc8ba | [
"BSD-3-Clause"
] | 1 | 2015-11-22T15:53:00.000Z | 2015-11-22T15:53:00.000Z | pybvc/netconfdev/vrouter/firewall.py | brocade/pybvc | 316e8cb79ecbeb3670276afd43286e57897bc8ba | [
"BSD-3-Clause"
] | null | null | null | pybvc/netconfdev/vrouter/firewall.py | brocade/pybvc | 316e8cb79ecbeb3670276afd43286e57897bc8ba | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2015
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in ... | 39.699088 | 112 | 0.364827 | 943 | 13,061 | 4.925769 | 0.23754 | 0.027987 | 0.022605 | 0.022605 | 0.373089 | 0.32099 | 0.276211 | 0.240474 | 0.226695 | 0.226695 | 0 | 0.004082 | 0.193553 | 13,061 | 328 | 113 | 39.820122 | 0.436913 | 0.629584 | 0 | 0.347368 | 0 | 0 | 0.046544 | 0.036436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.305263 | false | 0.010526 | 0.031579 | 0.052632 | 0.610526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1a9949afdf627a572060834be711a221a1a6a7a7 | 144 | py | Python | tableconverter/__main__.py | Blueswing/tableconverter | ac5684ea424ae601191fa45c936c9e133800ee36 | [
"MIT"
] | 1 | 2021-03-01T01:50:27.000Z | 2021-03-01T01:50:27.000Z | tableconverter/__main__.py | Blueswing/tableconverter | ac5684ea424ae601191fa45c936c9e133800ee36 | [
"MIT"
] | null | null | null | tableconverter/__main__.py | Blueswing/tableconverter | ac5684ea424ae601191fa45c936c9e133800ee36 | [
"MIT"
] | null | null | null | """
Module entry
Usage:
$ python -m tableconverter <args>
"""
import tableconverter
if __name__ == "__main__":
tableconverter.main()
| 12 | 37 | 0.673611 | 14 | 144 | 6.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 144 | 11 | 38 | 13.090909 | 0.767241 | 0.402778 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1aad2bc40111fe2cf4f1b08b2b2772a18f7d3a3d | 5,268 | py | Python | source/rttov_test/profile-datasets-py/standard54lev_co2o3ref/004.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | null | null | null | source/rttov_test/profile-datasets-py/standard54lev_co2o3ref/004.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T12:19:59.000Z | 2022-03-12T12:19:59.000Z | source/rttov_test/profile-datasets-py/standard54lev_co2o3ref/004.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | null | null | null | """
Profile ../profile-datasets-py/standard54lev_co2o3ref/004.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/standard54lev_co2o3ref/004.py"
self["Q"] = numpy.array([ 1.39778700e+00, 2.03491300e+00, 2.66180300e+00,
3.22654500e+00, 3.85401500e+00,... | 48.777778 | 90 | 0.563971 | 828 | 5,268 | 3.582126 | 0.444444 | 0.016183 | 0.025961 | 0.02967 | 0.083277 | 0.074174 | 0.074174 | 0.045179 | 0.045179 | 0.045179 | 0 | 0.591764 | 0.253227 | 5,268 | 107 | 91 | 49.233645 | 0.162176 | 0.02126 | 0 | 0.021277 | 0 | 0 | 0.050195 | 0.010117 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
46dc28e250c4d27e3e37216da9d6576cf11cba12 | 83 | py | Python | qiskit_addon_revkit/aqua/__init__.py | msoeken/qiskit-addon-revkit | 0fadb628d382946f2fbba9182c8967ceed701099 | [
"MIT"
] | 1 | 2019-10-11T02:04:01.000Z | 2019-10-11T02:04:01.000Z | qiskit_addon_revkit/aqua/__init__.py | msoeken/qiskit-addon-revkit | 0fadb628d382946f2fbba9182c8967ceed701099 | [
"MIT"
] | null | null | null | qiskit_addon_revkit/aqua/__init__.py | msoeken/qiskit-addon-revkit | 0fadb628d382946f2fbba9182c8967ceed701099 | [
"MIT"
] | null | null | null | from .boolean_expression import BooleanExpression
__all__ = ['BooleanExpression']
| 20.75 | 49 | 0.831325 | 7 | 83 | 9.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 83 | 3 | 50 | 27.666667 | 0.853333 | 0 | 0 | 0 | 0 | 0 | 0.204819 | 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 |
46e40375bc251a876ce83eb698b1e1d4613946ac | 369 | py | Python | jasy/env/State.py | sebastian-software/jasy | 9740ed33f0836ab2dd3e00ab4fae4049f9908072 | [
"MIT"
] | 2 | 2015-05-27T19:30:49.000Z | 2015-12-10T16:55:14.000Z | jasy/env/State.py | sebastian-software/jasy | 9740ed33f0836ab2dd3e00ab4fae4049f9908072 | [
"MIT"
] | 2 | 2015-03-16T09:15:58.000Z | 2015-04-07T19:05:47.000Z | jasy/env/State.py | sebastian-software/jasy | 9740ed33f0836ab2dd3e00ab4fae4049f9908072 | [
"MIT"
] | 2 | 2017-07-18T20:08:05.000Z | 2021-01-04T10:46:14.000Z | #
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
# Copyright 2013-2014 Sebastian Werner
#
"""This module is used to pass a single session instance around to different modules."""
import jasy.core.Session as Session
__all__ = ("session")
session = Session.Session()
session.__doc__ = """Auto initiali... | 24.6 | 88 | 0.750678 | 50 | 369 | 5.38 | 0.72 | 0.208178 | 0.234201 | 0.208178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050955 | 0.149051 | 369 | 14 | 89 | 26.357143 | 0.805732 | 0.487805 | 0 | 0 | 0 | 0 | 0.363128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
46ea9c716aa834a84bdf84d442fc25483408d46d | 161 | py | Python | python/introduction/interchange.py | Sudhanshu-Srivastava/hackerrank-1 | 7fc6347d419376bda360e3b64a525cfd0cf5c153 | [
"MIT"
] | 194 | 2015-01-02T13:42:14.000Z | 2022-02-20T16:33:54.000Z | python/introduction/interchange.py | Sudhanshu-Srivastava/hackerrank-1 | 7fc6347d419376bda360e3b64a525cfd0cf5c153 | [
"MIT"
] | 3 | 2015-06-25T03:31:28.000Z | 2019-03-02T04:35:19.000Z | python/introduction/interchange.py | Sudhanshu-Srivastava/hackerrank-1 | 7fc6347d419376bda360e3b64a525cfd0cf5c153 | [
"MIT"
] | 145 | 2015-01-23T08:50:45.000Z | 2021-12-12T20:23:57.000Z | #https://www.hackerrank.com/challenges/interchange-two-numbers
import fileinput
#Input
a, b = fileinput.input()
#Solve
a, b = (b, a)
#Output
print(a)
print(b) | 13.416667 | 62 | 0.714286 | 25 | 161 | 4.6 | 0.64 | 0.243478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118012 | 161 | 12 | 63 | 13.416667 | 0.809859 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2013f9c5e57a3d8f5a0ab1c5f0ed951944a720c9 | 118 | py | Python | app/markets/apps.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 2 | 2017-09-29T01:02:25.000Z | 2021-08-05T07:35:09.000Z | app/markets/apps.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 60 | 2016-09-02T14:55:49.000Z | 2022-03-14T13:54:23.000Z | app/markets/apps.py | uktrade/navigator | 5b5831ce647218ff90d53f9cc4cf1d6ca6f55c8b | [
"MIT"
] | 3 | 2017-05-05T12:22:45.000Z | 2020-06-04T16:39:52.000Z | from django.apps import AppConfig
class MarketsConfig(AppConfig):
name = 'markets'
verbose_name = 'Markets'
| 16.857143 | 33 | 0.728814 | 13 | 118 | 6.538462 | 0.769231 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 118 | 6 | 34 | 19.666667 | 0.885417 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 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 |
201c488e5c92d0471dbe300a420f3c5055dcfb08 | 541 | py | Python | validation/rules/minsize.py | moveaxlab/validation-py | c435b5b470bedde953a6f6a6363b8a268a20c926 | [
"MIT"
] | 1 | 2019-03-20T14:25:41.000Z | 2019-03-20T14:25:41.000Z | validation/rules/minsize.py | moveaxlab/validation-py | c435b5b470bedde953a6f6a6363b8a268a20c926 | [
"MIT"
] | null | null | null | validation/rules/minsize.py | moveaxlab/validation-py | c435b5b470bedde953a6f6a6363b8a268a20c926 | [
"MIT"
] | null | null | null | """ Min Size """
from .rule import Rule
from ..constants import rules
from ..types import Base64EncodedFileType
from ..utils.base64file_utils import get_size
class MinSizeRule(Rule):
required_params = 1
supported_types = (Base64EncodedFileType,)
@staticmethod
def name() -> str:
return rules.M... | 24.590909 | 46 | 0.693161 | 68 | 541 | 5.338235 | 0.544118 | 0.038567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018824 | 0.214418 | 541 | 21 | 47 | 25.761905 | 0.835294 | 0.086876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
202dc2c2ce0978019f7627c8b0b1ddd47cb141d2 | 160 | py | Python | module.py | ShveczovaKS/8lab2k | 1c58ec07c8a7fa5ed9807a7751315131f2e361f0 | [
"MIT"
] | null | null | null | module.py | ShveczovaKS/8lab2k | 1c58ec07c8a7fa5ed9807a7751315131f2e361f0 | [
"MIT"
] | null | null | null | module.py | ShveczovaKS/8lab2k | 1c58ec07c8a7fa5ed9807a7751315131f2e361f0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def get_func(tag):
def func(s):
group = tag, s
return group
return func
| 12.307692 | 24 | 0.4875 | 21 | 160 | 3.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.375 | 160 | 12 | 25 | 13.333333 | 0.75 | 0.26875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.8 | 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 |
202e534820159203f8ccf44428d84f4543abc92d | 262 | py | Python | examples/idioms/programs/050.0572-make-an-infinite-loop.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 31 | 2020-05-02T13:34:26.000Z | 2021-06-06T17:25:52.000Z | examples/idioms/programs/050.0572-make-an-infinite-loop.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 108 | 2019-11-18T19:41:52.000Z | 2022-03-18T13:58:17.000Z | examples/idioms/programs/050.0572-make-an-infinite-loop.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 4 | 2020-05-19T08:57:44.000Z | 2020-09-21T08:53:46.000Z | """Make an infinite loop.
Write a loop which has no end clause.
Source: programming-idioms.org
"""
# Implementation author: JackStouffer
# Created on 2016-02-18T16:57:59.907374Z
# Last modified on 2016-02-18T16:57:59.907374Z
# Version 1
while True:
pass
| 17.466667 | 46 | 0.736641 | 41 | 262 | 4.707317 | 0.804878 | 0.062176 | 0.082902 | 0.134715 | 0.248705 | 0.248705 | 0.248705 | 0 | 0 | 0 | 0 | 0.186364 | 0.160305 | 262 | 14 | 47 | 18.714286 | 0.690909 | 0.854962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
644ac9ac7387deb12cce043f4aed7e873e2c213e | 2,993 | py | Python | tests/unit/iotics/lib/identity/conftest.py | Iotic-Labs/iotics-identity-py | a55372915057c04b15cfa6a0c2391c39aed77a7e | [
"Apache-2.0"
] | 9 | 2021-05-26T14:45:36.000Z | 2021-06-25T13:02:37.000Z | tests/unit/iotics/lib/identity/conftest.py | Iotic-Labs/iotics-identity-py | a55372915057c04b15cfa6a0c2391c39aed77a7e | [
"Apache-2.0"
] | 4 | 2021-06-01T13:49:26.000Z | 2021-08-17T13:26:00.000Z | tests/unit/iotics/lib/identity/conftest.py | Iotic-Labs/iotics-identity-py | a55372915057c04b15cfa6a0c2391c39aed77a7e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) IOTIC LABS LIMITED. All rights reserved. Licensed under the Apache License, Version 2.0.
import pytest
from iotics.lib.identity.crypto.issuer import Issuer, IssuerKey
from iotics.lib.identity.crypto.key_pair_secrets import DIDType, KeyPairSecrets, KeyPairSecretsHelper
from iotics.lib.identity.crypto.p... | 32.532609 | 120 | 0.803542 | 388 | 2,993 | 5.940722 | 0.311856 | 0.069848 | 0.104121 | 0.072885 | 0.442082 | 0.354881 | 0.233406 | 0.18872 | 0.043384 | 0.043384 | 0 | 0.033712 | 0.117942 | 2,993 | 91 | 121 | 32.89011 | 0.839394 | 0.072168 | 0 | 0.267857 | 0 | 0 | 0.225388 | 0.099171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.267857 | false | 0 | 0.089286 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
644fde029c25046d69ff4365d50674e0cb45022a | 251 | py | Python | sphinx/python-intro/source/code/oneoffcoder/exception/accessinvalidkey.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 26 | 2020-05-05T08:07:43.000Z | 2022-02-12T03:28:15.000Z | sphinx/python-intro/source/code/oneoffcoder/exception/accessinvalidkey.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 19 | 2021-03-10T00:33:51.000Z | 2022-03-02T13:04:32.000Z | sphinx/python-intro/source/code/oneoffcoder/exception/accessinvalidkey.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 2 | 2022-01-09T16:48:21.000Z | 2022-02-19T17:06:50.000Z | # throws KeyError
students = {'John': 18, 'Jack': 19}
print(students['Joe'])
# try/catch KeyError
students = {'John': 18, 'Jack': 19}
try:
print(students['Joe'])
except KeyError:
print('you tried to access an entry that does not exists')
| 16.733333 | 62 | 0.653386 | 35 | 251 | 4.685714 | 0.628571 | 0.195122 | 0.243902 | 0.268293 | 0.341463 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0.039024 | 0.183267 | 251 | 14 | 63 | 17.928571 | 0.760976 | 0.135458 | 0 | 0.571429 | 0 | 0 | 0.331776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
646ed16013ba839394ed6cac33d71207294b6369 | 968 | py | Python | src/pyfes/utils.py | geopython/pyfes | 54a078951aaff280d647529d188bcafabbd5fabf | [
"Apache-2.0"
] | 3 | 2017-03-06T19:13:09.000Z | 2021-03-30T13:04:12.000Z | src/pyfes/utils.py | geopython/pyfes | 54a078951aaff280d647529d188bcafabbd5fabf | [
"Apache-2.0"
] | 1 | 2017-03-05T20:55:21.000Z | 2017-03-06T14:00:27.000Z | src/pyfes/utils.py | geopython/pyfes | 54a078951aaff280d647529d188bcafabbd5fabf | [
"Apache-2.0"
] | 2 | 2020-03-04T08:40:32.000Z | 2021-11-02T12:13:01.000Z | """Assorted utility functions for pyfes."""
from __future__ import absolute_import
import importlib
import logging
from lxml import etree
logger = logging.getLogger(__name__)
XML_PARSER = etree.XMLParser(resolve_entities=False)
def lazy_load(path, package="pyfes"):
"""Lazily load a module"""
module_path, ... | 24.820513 | 70 | 0.710744 | 120 | 968 | 5.358333 | 0.491667 | 0.062208 | 0.049767 | 0.096423 | 0.115086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194215 | 968 | 38 | 71 | 25.473684 | 0.824359 | 0.158058 | 0 | 0 | 0 | 0 | 0.007481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.227273 | 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 |
64875a7cf341672439a9fafb1e7b8dd82b3d3472 | 70 | py | Python | findl/__init__.py | indiquant/findl | 626669b0373cdf12f507e1a770f001951a19ce72 | [
"MIT"
] | 2 | 2016-10-23T23:14:21.000Z | 2020-11-22T09:10:24.000Z | findl/__init__.py | indiquant/findl | 626669b0373cdf12f507e1a770f001951a19ce72 | [
"MIT"
] | null | null | null | findl/__init__.py | indiquant/findl | 626669b0373cdf12f507e1a770f001951a19ce72 | [
"MIT"
] | null | null | null | __author__ = 'indiquant'
from findl import get_options, load_options | 17.5 | 43 | 0.814286 | 9 | 70 | 5.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 70 | 4 | 43 | 17.5 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 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 |
648b2feb83db7c693f22ddaf386abb0b9a3ed5ee | 357 | py | Python | src/api/pdi/application/operation/GetDataOperationList/GetDataOperationListRequest.py | ahmetcagriakca/pythondataintegrator | 079b968d6c893008f02c88dbe34909a228ac1c7b | [
"MIT"
] | 1 | 2020-12-18T21:37:28.000Z | 2020-12-18T21:37:28.000Z | src/api/pdi/application/operation/GetDataOperationList/GetDataOperationListRequest.py | ahmetcagriakca/pythondataintegrator | 079b968d6c893008f02c88dbe34909a228ac1c7b | [
"MIT"
] | null | null | null | src/api/pdi/application/operation/GetDataOperationList/GetDataOperationListRequest.py | ahmetcagriakca/pythondataintegrator | 079b968d6c893008f02c88dbe34909a228ac1c7b | [
"MIT"
] | 1 | 2020-12-18T21:37:31.000Z | 2020-12-18T21:37:31.000Z | from typing import Optional
from pdip.api.request_parameter import OrderByParameter
from pdip.api.request_parameter import PagingParameter
from pdip.cqrs.decorators import requestclass
@requestclass
class GetDataOperationListRequest(PagingParameter, OrderByParameter):
DataOperationName: Optional[str] = None
... | 29.75 | 69 | 0.837535 | 37 | 357 | 8.027027 | 0.540541 | 0.080808 | 0.074074 | 0.121212 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109244 | 357 | 11 | 70 | 32.454545 | 0.933962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.875 | 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 |
64c03acfafedc14fdd269c476bc1025a0c49588a | 803 | py | Python | core/utils_numbers.py | computer-solutions-gr/anonymity_loss_metrics | 80d53a2b0b7995d35768ffa6116facd6fb601e27 | [
"AFL-3.0"
] | null | null | null | core/utils_numbers.py | computer-solutions-gr/anonymity_loss_metrics | 80d53a2b0b7995d35768ffa6116facd6fb601e27 | [
"AFL-3.0"
] | null | null | null | core/utils_numbers.py | computer-solutions-gr/anonymity_loss_metrics | 80d53a2b0b7995d35768ffa6116facd6fb601e27 | [
"AFL-3.0"
] | null | null | null | """
Some functions about numbers
"""
###############################################
def is_number(v):
try:
v = float(v)
return True
except ValueError:
return False
except TypeError:
return False
###############################################
def get_number(v):
defaul... | 18.674419 | 47 | 0.43213 | 68 | 803 | 5.044118 | 0.323529 | 0.186589 | 0.25656 | 0.227405 | 0.405248 | 0.329446 | 0.221574 | 0 | 0 | 0 | 0 | 0 | 0.285181 | 803 | 43 | 48 | 18.674419 | 0.597561 | 0.034869 | 0 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0 | 0 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 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 |
b37ef26617f9edc3215ec2523f00cb0704f95da7 | 2,358 | py | Python | PSet8/p2/ODEs.py | alpha-leo/ComputationalPhysics-Fall2020 | 737769d4a046b4ecea885cafeaf26e26075f7320 | [
"MIT"
] | 1 | 2021-08-10T14:33:35.000Z | 2021-08-10T14:33:35.000Z | PSet8/p2/ODEs.py | alpha-leo/ComputationalPhysics-Fall2020 | 737769d4a046b4ecea885cafeaf26e26075f7320 | [
"MIT"
] | null | null | null | PSet8/p2/ODEs.py | alpha-leo/ComputationalPhysics-Fall2020 | 737769d4a046b4ecea885cafeaf26e26075f7320 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" verlat numerical integration methods """
import numpy as np
def velocity_verlat(x_init, acc, step, time):
""" the velocity verlat method """
# finding count
count = int(time / step)
# initialization
x = np.zeros(count)
x_dot = np.zeros(count)
x[0] = x_init
... | 22.893204 | 77 | 0.508058 | 413 | 2,358 | 2.79661 | 0.125908 | 0.103896 | 0.056277 | 0.067532 | 0.818182 | 0.738528 | 0.712554 | 0.606061 | 0.571429 | 0.559307 | 0 | 0.037912 | 0.317642 | 2,358 | 102 | 78 | 23.117647 | 0.679925 | 0.135708 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.018519 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b38866c5c5702878599fa84d9a966060de3bd3fc | 168 | py | Python | oremda/clients/base/__init__.py | cclauss/oremda | b04e58fbb8c9c08a928f876ae1358462f3ef311d | [
"BSD-3-Clause"
] | 11 | 2021-09-01T23:10:51.000Z | 2022-03-20T07:39:37.000Z | oremda/clients/base/__init__.py | cclauss/oremda | b04e58fbb8c9c08a928f876ae1358462f3ef311d | [
"BSD-3-Clause"
] | 22 | 2021-05-18T14:10:27.000Z | 2021-10-04T15:06:27.000Z | oremda/clients/base/__init__.py | cclauss/oremda | b04e58fbb8c9c08a928f876ae1358462f3ef311d | [
"BSD-3-Clause"
] | 2 | 2021-09-01T22:11:13.000Z | 2021-10-30T09:12:36.000Z | from .client import ClientBase
from .container import ContainerBase
from .image import ImageBase
__all__ = [
"ClientBase",
"ContainerBase",
"ImageBase",
]
| 16.8 | 36 | 0.720238 | 16 | 168 | 7.3125 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 168 | 9 | 37 | 18.666667 | 0.860294 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
b395146c155114e439026528b2a3d349c3d97de8 | 1,017 | py | Python | common/exceptions.py | nmfzone/django-modern-boilerplate | 6c752c5246b4ea14caa06792c60e9c1802a606e4 | [
"MIT"
] | 2 | 2020-07-14T05:10:17.000Z | 2021-04-07T00:17:11.000Z | common/exceptions.py | nmfzone/django-modern-boilerplate | 6c752c5246b4ea14caa06792c60e9c1802a606e4 | [
"MIT"
] | null | null | null | common/exceptions.py | nmfzone/django-modern-boilerplate | 6c752c5246b4ea14caa06792c60e9c1802a606e4 | [
"MIT"
] | null | null | null | import json
class BadRequest(Exception):
"""Bad Request Exception (400)"""
def __str__(self):
return 'Bad Request'
class AuthenticationException(Exception):
"""Unauthenticated Exception (401)"""
def __str__(self):
return 'Unauthenticated'
class FormErrorBag:
def __init__(self, ... | 21.1875 | 59 | 0.583088 | 114 | 1,017 | 5.061404 | 0.342105 | 0.103986 | 0.034662 | 0.055459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011577 | 0.320551 | 1,017 | 47 | 60 | 21.638298 | 0.823444 | 0.058014 | 0 | 0.064516 | 0 | 0 | 0.036959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.032258 | 0.16129 | 0.741935 | 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 |
b39c282238982e1c5391ae95eab422083a6b2a5b | 1,340 | py | Python | tensorflow/contrib/linear_optimizer/__init__.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | 6 | 2022-02-04T18:12:24.000Z | 2022-03-21T23:57:12.000Z | Lib/site-packages/tensorflow/contrib/linear_optimizer/__init__.py | shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings | 1fa4cd6a566c8745f455fc3d2273208f21f88ced | [
"bzip2-1.0.6"
] | 1 | 2021-05-20T00:58:04.000Z | 2021-05-20T00:58:04.000Z | Lib/site-packages/tensorflow/contrib/linear_optimizer/__init__.py | shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings | 1fa4cd6a566c8745f455fc3d2273208f21f88ced | [
"bzip2-1.0.6"
] | 1 | 2022-02-08T03:53:23.000Z | 2022-02-08T03:53:23.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 40.606061 | 101 | 0.745522 | 169 | 1,340 | 5.745562 | 0.56213 | 0.061792 | 0.049434 | 0.083419 | 0.135942 | 0.135942 | 0.092688 | 0 | 0 | 0 | 0 | 0.006944 | 0.140299 | 1,340 | 32 | 102 | 41.875 | 0.835938 | 0.600746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b39ed656dce1d6a4b7ac0bdbc7b8f21469a5a661 | 5,828 | py | Python | hearthbreaker/cards/minions/mage.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 429 | 2015-01-01T16:07:20.000Z | 2022-03-16T22:30:50.000Z | hearthbreaker/cards/minions/mage.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 47 | 2015-01-01T17:07:57.000Z | 2018-05-07T10:49:37.000Z | hearthbreaker/cards/minions/mage.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 135 | 2015-01-12T21:52:17.000Z | 2022-02-25T21:18:08.000Z | import hearthbreaker.cards
from hearthbreaker.cards.base import MinionCard
from hearthbreaker.constants import CHARACTER_CLASS, CARD_RARITY, MINION_TYPE
from hearthbreaker.game_objects import Minion
from hearthbreaker.tags.action import AddCard, Give, GiveAura, Damage
from hearthbreaker.tags.base import Effect, Aura, B... | 40.472222 | 119 | 0.6721 | 625 | 5,828 | 5.9792 | 0.2112 | 0.059941 | 0.068237 | 0.084292 | 0.508429 | 0.482205 | 0.307198 | 0.247525 | 0.128178 | 0.127107 | 0 | 0.012801 | 0.209163 | 5,828 | 143 | 120 | 40.755245 | 0.798004 | 0 | 0 | 0.306122 | 0 | 0 | 0.041524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306122 | false | 0 | 0.102041 | 0.153061 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b3a48b1a6ebebe4e3efbf9b94f6bd59a21f66335 | 424 | py | Python | edbo_connector/tests/test_connector.py | ZimGreen/edbo-connector-py | 2787c5a43af1229d93591b735cd14cebaf792c39 | [
"MIT"
] | 2 | 2017-08-05T17:20:58.000Z | 2017-08-13T09:44:13.000Z | edbo_connector/tests/test_connector.py | ZimGreen/edbo-connector-py | 2787c5a43af1229d93591b735cd14cebaf792c39 | [
"MIT"
] | 1 | 2017-12-14T05:00:56.000Z | 2017-12-14T05:00:56.000Z | edbo_connector/tests/test_connector.py | EldarAliiev/python-edbo-connector | 2787c5a43af1229d93591b735cd14cebaf792c39 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from requests import Response
from ..connector import EDBOWebApiConnector
class TestEDBOWebApiConnector(object):
def setup(self):
self.connector = EDBOWebApiConnector()
def test_execute(self):
assert isinstance(self.connector.execute('auth/userInfo')... | 28.266667 | 95 | 0.724057 | 46 | 424 | 6.630435 | 0.608696 | 0.127869 | 0.131148 | 0.190164 | 0.314754 | 0.314754 | 0.314754 | 0 | 0 | 0 | 0 | 0.002793 | 0.15566 | 424 | 14 | 96 | 30.285714 | 0.849162 | 0.089623 | 0 | 0 | 0 | 0 | 0.067708 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b3d7b89a7cd65ac051180e890070be513b0378a1 | 109 | py | Python | src/cliapp/__init__.py | vlakondra/pypack | 202b8308c59e3797246c569c83ad6b939cf20848 | [
"MIT"
] | null | null | null | src/cliapp/__init__.py | vlakondra/pypack | 202b8308c59e3797246c569c83ad6b939cf20848 | [
"MIT"
] | null | null | null | src/cliapp/__init__.py | vlakondra/pypack | 202b8308c59e3797246c569c83ad6b939cf20848 | [
"MIT"
] | null | null | null | import os
from .datacomm import *
CONST_PI = 3.14
datafile=os.path.join(os.getcwd(), 'data', 'data.csv')
| 12.111111 | 54 | 0.678899 | 18 | 109 | 4.055556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.146789 | 109 | 8 | 55 | 13.625 | 0.752688 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 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 |
b3f07defc7bf052eab56779dfe3d8bc72398d0d8 | 1,009 | py | Python | django_lightweight_queue/backends/debug_web.py | thread/django-lightweight-queue | 2c67eb13a454fa1a02f8445c26915b6e9261fdad | [
"BSD-3-Clause"
] | 23 | 2015-04-29T04:47:02.000Z | 2022-03-11T12:43:01.000Z | django_lightweight_queue/backends/debug_web.py | thread/django-lightweight-queue | 2c67eb13a454fa1a02f8445c26915b6e9261fdad | [
"BSD-3-Clause"
] | 23 | 2015-02-27T14:30:47.000Z | 2021-12-02T14:18:34.000Z | django_lightweight_queue/backends/debug_web.py | thread/django-lightweight-queue | 2c67eb13a454fa1a02f8445c26915b6e9261fdad | [
"BSD-3-Clause"
] | 1 | 2015-08-18T12:27:08.000Z | 2015-08-18T12:27:08.000Z | import urllib.parse
from django.conf import settings
from django.shortcuts import reverse
from ..job import Job
from .base import BaseBackend
from ..types import QueueName, WorkerNumber
class DebugWebBackend(BaseBackend):
"""
This backend aids debugging in concert with the 'debug-run' view.
Instead of ... | 30.575758 | 90 | 0.692765 | 136 | 1,009 | 5.102941 | 0.558824 | 0.034582 | 0.0317 | 0.043228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001259 | 0.213082 | 1,009 | 32 | 91 | 31.53125 | 0.872796 | 0.29336 | 0 | 0 | 0 | 0 | 0.064611 | 0.049927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.375 | 0.0625 | 0.6875 | 0.0625 | 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 |
b3f8c26d899076cf55477aefa89a137658d7560a | 38,425 | py | Python | pysnmp/UPS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/UPS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/UPS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module UPS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/UPS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:50:47 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)... | 115.04491 | 5,824 | 0.745452 | 4,268 | 38,425 | 6.710637 | 0.076851 | 0.011801 | 0.015607 | 0.02067 | 0.442582 | 0.393143 | 0.370378 | 0.35739 | 0.347195 | 0.319193 | 0 | 0.061344 | 0.088302 | 38,425 | 333 | 5,825 | 115.39039 | 0.756223 | 0.008016 | 0 | 0.099688 | 0 | 0 | 0.162748 | 0.018159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.087227 | 0.018692 | 0 | 0.043614 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b609f0b33ea77c30b7ca49274d4f93d7b906e300 | 474 | py | Python | model/shap_importance.py | handsomekiwi/TBrain_Credit_Card | 08f48f357d7e7b0d2945838e256dd857e094badc | [
"MIT"
] | 9 | 2019-12-05T04:14:29.000Z | 2021-08-16T10:28:18.000Z | model/shap_importance.py | handsomekiwi/TBrain_Credit_Card | 08f48f357d7e7b0d2945838e256dd857e094badc | [
"MIT"
] | null | null | null | model/shap_importance.py | handsomekiwi/TBrain_Credit_Card | 08f48f357d7e7b0d2945838e256dd857e094badc | [
"MIT"
] | 5 | 2019-11-30T20:42:14.000Z | 2021-12-13T01:34:06.000Z | import numpy as np
import pandas as pd
import shap
def shap_importance(clf, X):
explainer = shap.TreeExplainer(clf)
shap_values = explainer.shap_values(X)
shap_values = np.absolute(shap_values)
shap_values = shap_values.sum(axis=0)
df_shap = pd.DataFrame()
df_shap["feature"] = X.columns
... | 24.947368 | 89 | 0.706751 | 68 | 474 | 4.691176 | 0.441176 | 0.219436 | 0.087774 | 0.125392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002597 | 0.187764 | 474 | 18 | 90 | 26.333333 | 0.825974 | 0 | 0 | 0 | 0 | 0 | 0.056962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.461538 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
373c2cc71f9729ec71f32aa554fe84ac7e46d5ad | 725 | py | Python | setup.py | jazzycamel/PyQt5Singleton | 8a790a42066bbd756ef55dddf50093c3cfb7ba5e | [
"MIT"
] | 4 | 2018-08-21T17:00:25.000Z | 2020-05-13T17:34:33.000Z | setup.py | jazzycamel/PyQt5Singleton | 8a790a42066bbd756ef55dddf50093c3cfb7ba5e | [
"MIT"
] | 1 | 2018-07-26T16:33:01.000Z | 2018-07-26T16:33:01.000Z | setup.py | jazzycamel/PyQt5Singleton | 8a790a42066bbd756ef55dddf50093c3cfb7ba5e | [
"MIT"
] | 1 | 2021-01-10T05:12:23.000Z | 2021-01-10T05:12:23.000Z | from setuptools import setup
setup(
name="PyQt5Singleton",
version="0.1",
author="Rob Kent",
author_email="jazzycamel@googlemail.com",
description="A simple singleton implementation to work with PyQt5",
license="MIT",
url="https://github.com/jazzycamel/PyQt5Singleton",
packages=['PyQt5S... | 31.521739 | 71 | 0.623448 | 73 | 725 | 6.164384 | 0.671233 | 0.168889 | 0.222222 | 0.231111 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0.230345 | 725 | 22 | 72 | 32.954545 | 0.77957 | 0 | 0 | 0 | 0 | 0 | 0.573793 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 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 |
373e2f098525df7dcfb9ca0ddb115afdd3e6f5dc | 888 | py | Python | lab9/hydraulics/elements.py | ptrchv/APOpublic | 510876ad21d09f865fb85a178ed2cf7f0155868a | [
"MIT"
] | 4 | 2022-03-01T11:33:34.000Z | 2022-03-06T10:12:50.000Z | lab9/hydraulics/elements.py | ptrchv/APOpublic | 510876ad21d09f865fb85a178ed2cf7f0155868a | [
"MIT"
] | null | null | null | lab9/hydraulics/elements.py | ptrchv/APOpublic | 510876ad21d09f865fb85a178ed2cf7f0155868a | [
"MIT"
] | 5 | 2022-03-01T11:32:05.000Z | 2022-03-29T21:04:45.000Z | from typing import List, Optional
from abc import ABC
class Element(ABC):
def __init__(self, name: str) -> None:
pass
def get_name(self) -> str:
pass
def connect(self, elm: "Element") -> None:
pass
def get_output(self) -> Optional["Element"]:
pass
class Source(Elem... | 18.122449 | 57 | 0.584459 | 115 | 888 | 4.278261 | 0.304348 | 0.146341 | 0.134146 | 0.152439 | 0.357724 | 0.357724 | 0.357724 | 0.357724 | 0.231707 | 0.158537 | 0 | 0 | 0.295045 | 888 | 48 | 58 | 18.5 | 0.785942 | 0 | 0 | 0.548387 | 0 | 0 | 0.015766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.387097 | false | 0.387097 | 0.064516 | 0 | 0.612903 | 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 |
37512e89b1a959bab2e72ed6330a7b0bc5533d45 | 349 | py | Python | day-05/part-1/evqna.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 12 | 2020-11-30T19:22:18.000Z | 2021-06-21T05:55:58.000Z | day-05/part-1/evqna.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 13 | 2020-11-30T17:27:22.000Z | 2020-12-22T17:43:13.000Z | day-05/part-1/evqna.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 3 | 2020-12-01T08:49:40.000Z | 2022-03-26T21:47:38.000Z | from tool.runners.python import SubmissionPy
class EvqnaSubmission(SubmissionPy):
def decode_seat(self, encoding):
binary_repr = encoding.replace('F', '0').replace('B', '1').replace('L', '0').replace('R', '1')
return int(binary_repr, 2)
def run(self, s):
return max([self.decode_seat(... | 29.083333 | 102 | 0.647564 | 49 | 349 | 4.530612 | 0.653061 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.183381 | 349 | 11 | 103 | 31.727273 | 0.761404 | 0 | 0 | 0 | 0 | 0 | 0.022923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
37616c510d5d3bd98e91e92985d3f98e87018f1e | 38 | py | Python | scripts/FlightSimManager/Constants.py | AsoboStudio/FlightSim-3dsMax-tools | a94564afdd648d202c2ebcc98f0d7ed6e61528f1 | [
"MIT"
] | 9 | 2020-04-28T14:05:15.000Z | 2022-03-23T05:56:45.000Z | scripts/FlightSimManager/Constants.py | AsoboStudio/FlightSim-3dsMax-tools | a94564afdd648d202c2ebcc98f0d7ed6e61528f1 | [
"MIT"
] | null | null | null | scripts/FlightSimManager/Constants.py | AsoboStudio/FlightSim-3dsMax-tools | a94564afdd648d202c2ebcc98f0d7ed6e61528f1 | [
"MIT"
] | 2 | 2021-06-30T02:30:53.000Z | 2021-07-23T19:48:56.000Z | CUSTOM_VIEWPORT_CATEGORY = "FlightSim" | 38 | 38 | 0.868421 | 4 | 38 | 7.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 38 | 1 | 38 | 38 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 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 |
376f4fda365583ef2d2ccdb0720ecaf6d5378844 | 378 | py | Python | app/auth/forms.py | zhangchenchen/A-clean-blog-by-flask-bootstrap | 16f7da63efdf07780bc65b42087574463c3acd51 | [
"Apache-2.0"
] | 1 | 2017-12-24T10:12:03.000Z | 2017-12-24T10:12:03.000Z | app/auth/forms.py | zhangchenchen/A-clean-blog-by-flask-bootstrap | 16f7da63efdf07780bc65b42087574463c3acd51 | [
"Apache-2.0"
] | null | null | null | app/auth/forms.py | zhangchenchen/A-clean-blog-by-flask-bootstrap | 16f7da63efdf07780bc65b42087574463c3acd51 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask.ext.wtf import Form
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import Required, Length
class LoginForm(Form):
name = StringField('name',validators=[Required()])
password = PasswordField('password',v... | 34.363636 | 73 | 0.738095 | 43 | 378 | 6.488372 | 0.651163 | 0.078853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00303 | 0.126984 | 378 | 11 | 74 | 34.363636 | 0.842424 | 0.111111 | 0 | 0 | 0 | 0 | 0.053731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
37891183c2dbdfc997b0dda37b10041adc6019b1 | 1,639 | py | Python | seamless/highlevel/SchemaWrapper.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 15 | 2017-06-07T12:49:12.000Z | 2020-07-25T18:06:04.000Z | seamless/highlevel/SchemaWrapper.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 110 | 2016-06-21T23:20:44.000Z | 2022-02-24T16:15:22.000Z | seamless/highlevel/SchemaWrapper.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 6 | 2016-06-21T11:19:22.000Z | 2019-01-21T13:45:39.000Z | from weakref import ref
class SchemaWrapper:
def __init__(self, parent, wrapped, path):
self._wrapped = wrapped
assert path in ("SCHEMA", "RESULTSCHEMA")
self._path = path
self._parent = ref(parent)
def mount(self, *args, **kwargs):
raise Exception("Schema cells cannot ... | 29.8 | 83 | 0.626602 | 198 | 1,639 | 4.873737 | 0.383838 | 0.091192 | 0.033161 | 0.041451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275168 | 1,639 | 54 | 84 | 30.351852 | 0.81229 | 0.182428 | 0 | 0.058824 | 0 | 0 | 0.076265 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.323529 | false | 0 | 0.029412 | 0.147059 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
37957b89f8aa80c2571931d07342b6ea61ba0739 | 121 | py | Python | pyipmitest/setup.py | ouyangxx10/my-skeleton | e32e33784a1883ee4528b17617df14f3114b0f5e | [
"Apache-2.0"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | pyipmitest/setup.py | SayCV/skeleton | 1146f8c6e5f955fb10f5e846de31052be942a7f2 | [
"Apache-2.0"
] | 79 | 2015-10-27T13:27:24.000Z | 2020-05-21T16:10:34.000Z | pyipmitest/setup.py | SayCV/skeleton | 1146f8c6e5f955fb10f5e846de31052be942a7f2 | [
"Apache-2.0"
] | 78 | 2015-08-31T16:22:42.000Z | 2020-07-27T15:18:53.000Z | from distutils.core import setup
setup(name='pyipmitest',
version='1.0',
scripts=['ipmi_debug.py'],
)
| 17.285714 | 32 | 0.619835 | 15 | 121 | 4.933333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.223141 | 121 | 6 | 33 | 20.166667 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0.214876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37b276e9c2daced3900642d7c73d450f86a5ebe8 | 341 | py | Python | esolang_IDE/interpreters/__init__.py | Avanta8/Esolang-Interpreter-IDE | 9a958eb26314c6c138d1921e76c52b1bb53c85ed | [
"MIT"
] | 3 | 2020-01-16T23:04:24.000Z | 2020-07-21T23:55:59.000Z | esolang_IDE/interpreters/__init__.py | Avanta8/Esolang-Interpreter-IDE | 9a958eb26314c6c138d1921e76c52b1bb53c85ed | [
"MIT"
] | null | null | null | esolang_IDE/interpreters/__init__.py | Avanta8/Esolang-Interpreter-IDE | 9a958eb26314c6c138d1921e76c52b1bb53c85ed | [
"MIT"
] | null | null | null | from .errors import (
ErrorTypes,
ExecutionEndedError,
InterpreterError,
NoInputError,
NoPreviousExecutionError,
ProgramError,
ProgramRuntimeError,
ProgramSyntaxError,
)
from .brainfuck import BrainfuckInterpreter, FastBrainfuckInterpreter
from .base_interpreter import BaseInterpreter, ... | 26.230769 | 69 | 0.794721 | 22 | 341 | 12.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 341 | 13 | 70 | 26.230769 | 0.944056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
805b7506b85b77c81abaad55db8dd926eed8b95a | 18,953 | py | Python | nova/tests/unit/cells/test_cells_rpc_driver.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/cells/test_cells_rpc_driver.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/cells/test_cells_rpc_driver.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright (c) 2012 Rackspace Hosting'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'# Copyright 2013 Red Hat, Inc.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compl... | 12.901974 | 88 | 0.611935 | 2,758 | 18,953 | 4.100798 | 0.084844 | 0.153316 | 0.083112 | 0.047657 | 0.786826 | 0.722193 | 0.671441 | 0.638815 | 0.617507 | 0.576304 | 0 | 0.002979 | 0.09666 | 18,953 | 1,468 | 89 | 12.910763 | 0.657613 | 0 | 0 | 0.935286 | 0 | 0 | 0.389279 | 0.046431 | 0 | 0 | 0 | 0 | 0.006131 | 0 | null | null | 0.006131 | 0.006812 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
80860c35f2d1b93ec4e6bdeeb4d7e419f5dffbcd | 327 | py | Python | src/chirps/admin.py | Slatterychase/Chirped | ab2f8a013666f4b6e4ee3c1a7d9f326e00cbf828 | [
"MIT"
] | null | null | null | src/chirps/admin.py | Slatterychase/Chirped | ab2f8a013666f4b6e4ee3c1a7d9f326e00cbf828 | [
"MIT"
] | null | null | null | src/chirps/admin.py | Slatterychase/Chirped | ab2f8a013666f4b6e4ee3c1a7d9f326e00cbf828 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .forms import TweetModelForm
from .models import Chirp
#admin.site.register(Chirp)
class TweetModelAdmin(admin.ModelAdmin):
#form = TweetModelForm
class Meta:
model = Chirp
#admin.site.unregister(Chirp)
admin.site.register(Chirp, TweetModelA... | 19.235294 | 45 | 0.779817 | 40 | 327 | 6.375 | 0.5 | 0.117647 | 0.164706 | 0.172549 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134557 | 327 | 17 | 45 | 19.235294 | 0.90106 | 0.308869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 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 |
8090fe80bdcae3cf5323df1b9b207b897667d745 | 428 | py | Python | okta_rules/okta_admin_disabled_mfa.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | 4 | 2019-10-17T19:33:29.000Z | 2019-10-21T15:23:30.000Z | okta_rules/okta_admin_disabled_mfa.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | null | null | null | okta_rules/okta_admin_disabled_mfa.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | null | null | null | import panther_event_type_helpers as event_type
def rule(event):
return event.udm("event_type") == event_type.ADMIN_MFA_DISABLED
def title(event):
return f"Okta System-wide MFA Disabled by Admin User {event.udm('actor_user')}"
def alert_context(event):
context = {
"user": event.udm("actor_user... | 22.526316 | 83 | 0.668224 | 59 | 428 | 4.644068 | 0.457627 | 0.131387 | 0.087591 | 0.124088 | 0.153285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198598 | 428 | 18 | 84 | 23.777778 | 0.798834 | 0 | 0 | 0 | 0 | 0 | 0.275701 | 0.058411 | 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 |
80a6f6cbfae2127237d33036da70a09e39e148d4 | 268 | py | Python | python/gtsam_tests/testPoint2.py | karamach/gtsam | 35f9b710163a1d14d8dc4fcf50b8dce6e0bf7e5b | [
"BSD-3-Clause"
] | 40 | 2018-04-23T02:03:40.000Z | 2022-02-09T14:41:03.000Z | trunk/python/gtsam_tests/testPoint2.py | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 2 | 2019-01-02T15:03:54.000Z | 2021-11-23T03:04:04.000Z | trunk/python/gtsam_tests/testPoint2.py | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 16 | 2018-05-18T05:59:00.000Z | 2022-03-07T13:51:18.000Z | import unittest
from gtsam import *
#https://docs.python.org/2/library/unittest.html
class TestPoint2(unittest.TestCase):
def setUp(self):
self.point = Point2()
def test_constructor(self):
pass
if __name__ == '__main__':
unittest.main()
| 19.142857 | 48 | 0.679104 | 33 | 268 | 5.242424 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.197761 | 268 | 13 | 49 | 20.615385 | 0.790698 | 0.175373 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
80a88b2a7ea28457c79e33e7b251ade06e094e25 | 198 | py | Python | data_collection/gazette/spiders/sc_formosa_do_sul.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 3 | 2021-08-18T17:50:31.000Z | 2021-11-12T23:36:33.000Z | data_collection/gazette/spiders/sc_formosa_do_sul.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 4 | 2021-02-10T02:36:48.000Z | 2022-03-02T14:55:34.000Z | data_collection/gazette/spiders/sc_formosa_do_sul.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | null | null | null | from gazette.spiders.base import FecamGazetteSpider
class ScFormosaDoSulSpider(FecamGazetteSpider):
name = "sc_formosa_do_sul"
FECAM_QUERY = "cod_entidade:93"
TERRITORY_ID = "4205431"
| 24.75 | 51 | 0.777778 | 22 | 198 | 6.727273 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053254 | 0.146465 | 198 | 7 | 52 | 28.285714 | 0.822485 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
80b3a270f04a8fc5ffcc0e8e8eb17c6a225c51cd | 805 | py | Python | bsm/config/common_list.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | 3 | 2019-06-12T17:19:12.000Z | 2022-01-07T02:10:06.000Z | bsm/config/common_list.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | bsm/config/common_list.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | import copy
try:
from collections.abc import MutableSequence
except ImportError:
from collections import MutableSequence
class CommonList(MutableSequence):
def __init__(self, *args, **kwargs):
self.__data = []
self.extend(list(*args, **kwargs))
def __getitem__(self, index):
... | 20.641026 | 47 | 0.647205 | 94 | 805 | 5.085106 | 0.319149 | 0.150628 | 0.087866 | 0.066946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249689 | 805 | 38 | 48 | 21.184211 | 0.791391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.36 | false | 0 | 0.16 | 0.24 | 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 |
80b5207798cab3ad1b227c57f6d9b7edb95fa8be | 185 | py | Python | app/main.py | vittorduartte/busca-jogo-dos-15 | c0a5ba9eba4571a4893fbdfd6a4fb94c49d7b0db | [
"MIT"
] | null | null | null | app/main.py | vittorduartte/busca-jogo-dos-15 | c0a5ba9eba4571a4893fbdfd6a4fb94c49d7b0db | [
"MIT"
] | null | null | null | app/main.py | vittorduartte/busca-jogo-dos-15 | c0a5ba9eba4571a4893fbdfd6a4fb94c49d7b0db | [
"MIT"
] | null | null | null | from flask import Flask
from .resources import board
from .extensions import cors
def create_app():
app = Flask(__name__)
board.init(app)
cors.init(app)
return app | 18.5 | 28 | 0.697297 | 26 | 185 | 4.769231 | 0.5 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227027 | 185 | 10 | 29 | 18.5 | 0.867133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
80ccf034e2217c2cf00a6327467f2b3403756f2e | 128 | py | Python | meiduo_mall/meiduo_mall/apps/users/constants.py | m17630030204/Django_project | 9f207b38abfcb1b84be5850f1ec90949b571d9bb | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/users/constants.py | m17630030204/Django_project | 9f207b38abfcb1b84be5850f1ec90949b571d9bb | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/users/constants.py | m17630030204/Django_project | 9f207b38abfcb1b84be5850f1ec90949b571d9bb | [
"MIT"
] | null | null | null | VERIFY_EMAIL_TOKEN_EXPIRES = 24*60*60
# 用户地址数据上限
USER_ADDRESS_COUNTS_LIMIT = 20
#用户浏览历史
USER_BROWSING_HISTORY_COUNTS_LIMIT = 5 | 18.285714 | 38 | 0.84375 | 20 | 128 | 4.9 | 0.8 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078261 | 0.101563 | 128 | 7 | 38 | 18.285714 | 0.773913 | 0.109375 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.