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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8b95468398dfbf5ccf8ee057f5e1a97d91c23c9 | 304 | py | Python | tailow/operators/size.py | sourcepirate/tailow | 5398e619ad9508ba89153e9cc505a80cdb65d5fd | [
"MIT"
] | 2 | 2018-06-13T06:01:09.000Z | 2018-10-19T12:00:50.000Z | tailow/operators/size.py | sourcepirate/tailow | 5398e619ad9508ba89153e9cc505a80cdb65d5fd | [
"MIT"
] | null | null | null | tailow/operators/size.py | sourcepirate/tailow | 5398e619ad9508ba89153e9cc505a80cdb65d5fd | [
"MIT"
] | 2 | 2018-08-01T06:13:47.000Z | 2018-10-20T07:15:11.000Z | from tailow.operators.base import Operator
class SizeOperator(Operator):
"""
operator to query for arrays by number of elements
"""
def to_query(self, field_name, value):
return {"$size": value}
def get_value(self, field, value):
return field.to_son(value)
| 20.266667 | 59 | 0.648026 | 39 | 304 | 4.948718 | 0.641026 | 0.072539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253289 | 304 | 14 | 60 | 21.714286 | 0.85022 | 0.164474 | 0 | 0 | 0 | 0 | 0.021552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
e8c3672245371fce722c62fe43be41b167aa31e3 | 156 | py | Python | test/__init__.py | LanaMaidenbaum41/test | d9ffd610dc4b1dc940f444b2adf676b3c610d0bd | [
"MIT"
] | null | null | null | test/__init__.py | LanaMaidenbaum41/test | d9ffd610dc4b1dc940f444b2adf676b3c610d0bd | [
"MIT"
] | 183 | 2019-05-16T18:18:04.000Z | 2022-03-31T19:50:02.000Z | test/__init__.py | LanaMaidenbaum41/test | d9ffd610dc4b1dc940f444b2adf676b3c610d0bd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for Test."""
__author__ = """Lana Maidenbaum"""
__email__ = 'lana.maidenbaum@zeel.com'
__version__ = '0.1.1'
| 19.5 | 38 | 0.641026 | 20 | 156 | 4.4 | 0.85 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.134615 | 156 | 7 | 39 | 22.285714 | 0.622222 | 0.320513 | 0 | 0 | 0 | 0 | 0.44 | 0.24 | 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 |
e8cfdb21fb6c07f6632ba57c031ad7697503326a | 1,910 | py | Python | pose/excerciseClass.py | San-B-09/BeFit | 7bd9cad51d6135fc5fab7221336f8969653b6af5 | [
"Apache-2.0"
] | null | null | null | pose/excerciseClass.py | San-B-09/BeFit | 7bd9cad51d6135fc5fab7221336f8969653b6af5 | [
"Apache-2.0"
] | null | null | null | pose/excerciseClass.py | San-B-09/BeFit | 7bd9cad51d6135fc5fab7221336f8969653b6af5 | [
"Apache-2.0"
] | null | null | null | from pose.poseClass import pose
from pose import helpers
class dumbbell_lateral_raises(pose):
angles={
('left_hip','left_shoulder','left_elbow'):None,
('right_hip','right_shoulder','right_elbow'):None,
('left_shoulder','left_elbow','left_wrist'):None,
('right_shoulder','right_elbow'... | 30.31746 | 62 | 0.610471 | 212 | 1,910 | 5.127358 | 0.160377 | 0.088316 | 0.209752 | 0.25391 | 0.799448 | 0.680773 | 0.651334 | 0.620975 | 0.620975 | 0.620975 | 0 | 0 | 0.210995 | 1,910 | 63 | 63 | 30.31746 | 0.721301 | 0.048168 | 0 | 0.555556 | 0 | 0 | 0.220386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.037037 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2cd748d2051b8e82062e8e8a4558cedcec3899bb | 701 | py | Python | spec/__init__.py | deep-spin/spec-blackboxnlp | 23db7a559e09ff7f63ede06b04cad226432b90db | [
"MIT"
] | 2 | 2020-11-26T07:46:48.000Z | 2021-07-28T08:06:58.000Z | spec/__init__.py | deep-spin/spec-blackboxnlp | 23db7a559e09ff7f63ede06b04cad226432b90db | [
"MIT"
] | null | null | null | spec/__init__.py | deep-spin/spec-blackboxnlp | 23db7a559e09ff7f63ede06b04cad226432b90db | [
"MIT"
] | null | null | null | """
SpEC
~~~~~~~~~~~~~~~~~~~
Sparsity, Explainability, and Communication
:copyright: (c) 2019 by Marcos Treviso
:licence: MIT, see LICENSE for more details
"""
# Generate your own AsciiArt at:
# patorjk.com/software/taag/#f=Calvin%20S&t=SpEC
__banner__ = """
_____ _____ _____
| __|___| __| |
|__ | . | ... | 21.90625 | 59 | 0.663338 | 72 | 701 | 5.305556 | 0.680556 | 0.115183 | 0.13089 | 0.198953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022414 | 0.172611 | 701 | 31 | 60 | 22.612903 | 0.636207 | 0.328103 | 0 | 0 | 1 | 0 | 0.629067 | 0.049892 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2cd8482be7ce334c43cdcfd74e894afdafd98102 | 157 | py | Python | planning/data/__init__.py | XinyuHua/pair-emnlp2020 | 45f8b8ea3752dfb43aa75914afab1b29b2f10c50 | [
"MIT"
] | 20 | 2020-10-10T05:38:14.000Z | 2022-02-15T01:07:39.000Z | planning/data/__init__.py | XinyuHua/pair-emnlp2020 | 45f8b8ea3752dfb43aa75914afab1b29b2f10c50 | [
"MIT"
] | 4 | 2020-10-20T03:29:41.000Z | 2021-04-23T16:10:34.000Z | planning/data/__init__.py | XinyuHua/pair-emnlp2020 | 45f8b8ea3752dfb43aa75914afab1b29b2f10c50 | [
"MIT"
] | 2 | 2021-07-06T01:20:01.000Z | 2021-08-19T05:26:24.000Z | from .dictionary import BertDictionary
from .text_planning_dataset import TextPlanningDataset
__all__ = [
'BertDictionary',
'TextPlanningDataset',
] | 22.428571 | 54 | 0.789809 | 13 | 157 | 9.076923 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140127 | 157 | 7 | 55 | 22.428571 | 0.874074 | 0 | 0 | 0 | 0 | 0 | 0.208861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2cee532fa1ad8c3bab0846e524ce8d97c1e63a13 | 93 | py | Python | test/login.py | hongren798911/haha | 8b198b6e4ae3d992f2d1d7217b7532da3d557112 | [
"MIT"
] | null | null | null | test/login.py | hongren798911/haha | 8b198b6e4ae3d992f2d1d7217b7532da3d557112 | [
"MIT"
] | null | null | null | test/login.py | hongren798911/haha | 8b198b6e4ae3d992f2d1d7217b7532da3d557112 | [
"MIT"
] | null | null | null | num1 = 100
num2 = 200
num3 = 300
num4 = 400
num5 = 500
mum6 = 600
num7 = 700
num8 = 800
| 6.642857 | 10 | 0.602151 | 16 | 93 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.311828 | 93 | 13 | 11 | 7.153846 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2cfaf45dde9f79b4daea8e34b742698f034e176d | 685 | py | Python | code/exampleStrats/gradualtft.py | protonlaser91/PrisonersDilemmaTournament | 5a24aca5149b4768778de820eaaf6b096c4aff6d | [
"MIT"
] | null | null | null | code/exampleStrats/gradualtft.py | protonlaser91/PrisonersDilemmaTournament | 5a24aca5149b4768778de820eaaf6b096c4aff6d | [
"MIT"
] | null | null | null | code/exampleStrats/gradualtft.py | protonlaser91/PrisonersDilemmaTournament | 5a24aca5149b4768778de820eaaf6b096c4aff6d | [
"MIT"
] | null | null | null | import numpy as np
from random import random
def strategy(history, memory):
currentCount,defector,hasDefected = (0,0,False) if memory is None else memory
choice = 1
if currentCount > 0:
choice = 0
currentCount -= 1
return choice, (currentCount,defector,hasDefected)
elif curren... | 27.4 | 81 | 0.643796 | 77 | 685 | 5.727273 | 0.363636 | 0.226757 | 0.281179 | 0.170068 | 0.353742 | 0.353742 | 0.253968 | 0 | 0 | 0 | 0 | 0.030181 | 0.274453 | 685 | 25 | 82 | 27.4 | 0.857143 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.3 | 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 |
fa01b60aac42da66a6f0eab342c49c8c76904fbf | 87 | py | Python | lab02/eurocv/apps.py | vascoalramos/tpw | e0d1ab14f1e701dd2b2a77522c57cb22fda85e56 | [
"MIT"
] | null | null | null | lab02/eurocv/apps.py | vascoalramos/tpw | e0d1ab14f1e701dd2b2a77522c57cb22fda85e56 | [
"MIT"
] | null | null | null | lab02/eurocv/apps.py | vascoalramos/tpw | e0d1ab14f1e701dd2b2a77522c57cb22fda85e56 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EurocvConfig(AppConfig):
name = 'eurocv'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fa0d80b9aeafc9ccb67f6cea2a2f78fcffb1f863 | 701 | py | Python | tests/snippets/index_overflow.py | khg0712/RustPython | a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae | [
"MIT"
] | 3 | 2019-08-14T02:05:49.000Z | 2020-01-03T08:39:56.000Z | tests/snippets/index_overflow.py | khg0712/RustPython | a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae | [
"MIT"
] | 6 | 2021-10-14T15:55:16.000Z | 2022-03-31T14:04:02.000Z | tests/snippets/index_overflow.py | khg0712/RustPython | a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae | [
"MIT"
] | 1 | 2020-05-26T15:20:20.000Z | 2020-05-26T15:20:20.000Z | import sys
def expect_cannot_fit_index_error(s, index):
try:
s[index]
except IndexError:
pass
# TODO: Replace current except block with commented
# after solving https://github.com/RustPython/RustPython/issues/322
# except IndexError as error:
# assert str(error) == "cannot... | 25.962963 | 77 | 0.727532 | 105 | 701 | 4.542857 | 0.438095 | 0.113208 | 0.157233 | 0.209644 | 0.358491 | 0.30608 | 0.30608 | 0.155136 | 0 | 0 | 0 | 0.015762 | 0.185449 | 701 | 26 | 78 | 26.961538 | 0.819615 | 0.306705 | 0 | 0 | 0 | 0 | 0.008316 | 0 | 0 | 0 | 0 | 0.038462 | 0.0625 | 1 | 0.0625 | false | 0.0625 | 0.0625 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fa2894498609ba22cccb5fff7dcf91feb33619f2 | 4,857 | py | Python | tests/blockchain_tests.py | AoHRuthless/Doubloon | 9279ac7decd434d43bf9b03487691aa52aab499f | [
"Apache-2.0"
] | 1 | 2018-08-13T10:26:39.000Z | 2018-08-13T10:26:39.000Z | tests/blockchain_tests.py | AoHRuthless/Doubloon | 9279ac7decd434d43bf9b03487691aa52aab499f | [
"Apache-2.0"
] | null | null | null | tests/blockchain_tests.py | AoHRuthless/Doubloon | 9279ac7decd434d43bf9b03487691aa52aab499f | [
"Apache-2.0"
] | null | null | null | import sys
sys.path.append(sys.path[0] + '/src')
from unittest import TestCase
from src.blockchain import Blockchain
from src import constant
PUBLIC_KEY = '30819f300d06092a864886f70d010101050003818d0030818902818100d99c9347b6ecd418b1df48012201c5bd2869a707e45dee91a5c63027dc8020210aa4cf6e34e81fc200f29c893add94fefbf3759... | 50.072165 | 1,230 | 0.774758 | 405 | 4,857 | 9.091358 | 0.197531 | 0.110266 | 0.050788 | 0.013036 | 0.368007 | 0.319392 | 0.265073 | 0.244976 | 0.229223 | 0.189842 | 0 | 0.275464 | 0.144945 | 4,857 | 97 | 1,231 | 50.072165 | 0.611124 | 0 | 0 | 0.289474 | 0 | 0 | 0.367847 | 0.316591 | 0 | 1 | 0 | 0 | 0.263158 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa2aef92f1386e419f64a36bf512725d85f56e94 | 1,725 | py | Python | start_training.py | DrInfy/TheHarvester | dd21194ab2220c8edb73352c299d2bfb0f11d7d6 | [
"MIT"
] | 6 | 2020-03-08T21:04:47.000Z | 2021-05-29T07:14:25.000Z | start_training.py | DrInfy/TheHarvester | dd21194ab2220c8edb73352c299d2bfb0f11d7d6 | [
"MIT"
] | 5 | 2020-04-20T08:41:48.000Z | 2021-01-04T18:15:39.000Z | start_training.py | DrInfy/TheHarvester | dd21194ab2220c8edb73352c299d2bfb0f11d7d6 | [
"MIT"
] | 2 | 2021-01-18T21:07:56.000Z | 2021-11-22T15:24:21.000Z | import subprocess
wsl = "wsl python3.7 /mnt/" + YOUR_PATH_TO_HARVESTER
# to = "--timeout 900 -z"
to = "-p2 ai.terran.hard"
to2 = "-p2 ai.zerg.hard"
to3 = "-p2 ai.protoss.hard"
def ai_opponents(difficulty: str) -> str:
text = ""
for race in ["zerg", "protoss", "terran"]:
for build in ["rush", "timing",... | 33.173077 | 92 | 0.667826 | 221 | 1,725 | 5.113122 | 0.316742 | 0.241593 | 0.247788 | 0.076991 | 0.273451 | 0.221239 | 0.221239 | 0.221239 | 0.221239 | 0.120354 | 0 | 0.03527 | 0.161739 | 1,725 | 51 | 93 | 33.823529 | 0.746196 | 0.147826 | 0 | 0.05 | 0 | 0 | 0.518089 | 0.411604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.025 | 0 | 0.075 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa47150e782b7ef30a60052a4f1b959b3b1766a3 | 432 | py | Python | model/algorithms/__init__.py | nertsam/DAGsched | dcd431384fe1dd3f0f55a9287fc980f2b445beaf | [
"MIT"
] | null | null | null | model/algorithms/__init__.py | nertsam/DAGsched | dcd431384fe1dd3f0f55a9287fc980f2b445beaf | [
"MIT"
] | null | null | null | model/algorithms/__init__.py | nertsam/DAGsched | dcd431384fe1dd3f0f55a9287fc980f2b445beaf | [
"MIT"
] | null | null | null |
def required_model(name: object, kwargs: object) -> object:
required_fields = kwargs['required_fields'] if 'required_fields' in kwargs else []
task_f = kwargs['required_task_fields'] if 'required_task_fields' in kwargs else []
proc_f = kwargs['required_proc_fields'] if 'required_proc_fields' in kwargs else []
disp... | 43.2 | 84 | 0.761574 | 64 | 432 | 4.875 | 0.25 | 0.102564 | 0.153846 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134259 | 432 | 10 | 85 | 43.2 | 0.834225 | 0 | 0 | 0 | 0 | 0 | 0.310185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
fa7021d6098d58c035a0d3dad7302d599a66813a | 923 | py | Python | setup.py | hyong/mercury-python | b93806926253497e5af3a9578078f523a7b1eb8e | [
"Apache-2.0"
] | null | null | null | setup.py | hyong/mercury-python | b93806926253497e5af3a9578078f523a7b1eb8e | [
"Apache-2.0"
] | null | null | null | setup.py | hyong/mercury-python | b93806926253497e5af3a9578078f523a7b1eb8e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='mercury',
version='1.12.9',
description='Python Language pack for Mercury',
author='Eric Law',
author_email='eric.law@accenture.com',
url='https://github.com/Accenture/mercury-python',
project_ur... | 32.964286 | 66 | 0.588299 | 97 | 923 | 5.556701 | 0.57732 | 0.141002 | 0.185529 | 0.19295 | 0.111317 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024566 | 0.250271 | 923 | 27 | 67 | 34.185185 | 0.754335 | 0.045504 | 0 | 0 | 0 | 0 | 0.526735 | 0.025028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 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 |
3afca77e1d303804e80011de9994eebd4cd184b7 | 31 | py | Python | demo.py | TOMMYWHY/acnet_mobilenet | 6ebd21510cb6cca84f498d86daa081321a585b08 | [
"MIT"
] | null | null | null | demo.py | TOMMYWHY/acnet_mobilenet | 6ebd21510cb6cca84f498d86daa081321a585b08 | [
"MIT"
] | null | null | null | demo.py | TOMMYWHY/acnet_mobilenet | 6ebd21510cb6cca84f498d86daa081321a585b08 | [
"MIT"
] | null | null | null |
p = touch.autograd.Variable()
| 10.333333 | 29 | 0.709677 | 4 | 31 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 2 | 30 | 15.5 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3afde623e923bb16765921cd6884a6f3f7f37e8e | 3,612 | py | Python | cexapi/cexapi.py | codarrenvelvindron/cex.io-api-python | 5e54ca7d4d98e509e18d1ecda311da544649ea60 | [
"MIT"
] | 1 | 2021-11-09T18:47:44.000Z | 2021-11-09T18:47:44.000Z | cexapi/cexapi.py | codarrenvelvindron/cex.io-api-python | 5e54ca7d4d98e509e18d1ecda311da544649ea60 | [
"MIT"
] | null | null | null | cexapi/cexapi.py | codarrenvelvindron/cex.io-api-python | 5e54ca7d4d98e509e18d1ecda311da544649ea60 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Author: t0pep0
# e-mail: t0pep0.gentoo@gmail.com
# Jabber: t0pep0@jabber.ru
# BTC : 1ipEA2fcVyjiUnBqUx7PVy5efktz2hucb
# donate free =)
# Forked and modified by Codarren Velvindron
# Compatible Python3
import hmac
import hashlib
import time
import urllib.request, urllib.parse, urllib.error
i... | 36.484848 | 122 | 0.614341 | 459 | 3,612 | 4.605664 | 0.311547 | 0.05298 | 0.067644 | 0.088458 | 0.139073 | 0.088931 | 0.088931 | 0.075213 | 0 | 0 | 0 | 0.015057 | 0.246124 | 3,612 | 98 | 123 | 36.857143 | 0.761293 | 0.140365 | 0 | 0 | 0 | 0 | 0.099286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.073529 | 0.161765 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d7075ae50fe80531ab2a8eb41c4eb490a0897696 | 297 | py | Python | conftest.py | gousteris/git-diff-conditional-buildkite-plugin | 517442ca9ebe21021e1078debf88c231ba8e8dff | [
"MIT"
] | 19 | 2020-03-27T11:53:11.000Z | 2021-04-14T23:11:27.000Z | conftest.py | segmentio/git-diff-conditional-buildkite-plugin | 62a276000149da0bbf4e152634211c75966a8558 | [
"MIT"
] | 7 | 2020-03-27T11:59:51.000Z | 2021-08-06T14:01:42.000Z | conftest.py | segmentio/git-diff-conditional-buildkite-plugin | 62a276000149da0bbf4e152634211c75966a8558 | [
"MIT"
] | 6 | 2020-03-28T20:49:49.000Z | 2022-01-19T17:48:02.000Z | """Place fixtures in this file for use across all test files"""
import pytest
@pytest.fixture(scope="function")
def logger(caplog):
caplog.set_level("DEBUG")
return caplog
@pytest.fixture
def log_and_exit_mock(mocker):
return mocker.patch("scripts.generate_pipeline.log_and_exit")
| 21.214286 | 65 | 0.754209 | 43 | 297 | 5.046512 | 0.744186 | 0.119816 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13468 | 297 | 13 | 66 | 22.846154 | 0.844358 | 0.191919 | 0 | 0 | 0 | 0 | 0.217949 | 0.162393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 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 |
d7108aaef549127c37482205d3e95284067ddf78 | 189 | py | Python | uber/views.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | null | null | null | uber/views.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | 5 | 2020-02-12T00:43:34.000Z | 2021-06-10T20:18:42.000Z | uber/views.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def landing(request):
title = "Home"
context = {"title": title}
return render(request, 'landing.html', context)
| 18.9 | 51 | 0.687831 | 23 | 189 | 5.652174 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195767 | 189 | 9 | 52 | 21 | 0.855263 | 0.121693 | 0 | 0 | 0 | 0 | 0.128049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d71aa4de2d66c237cc707eb9393bb1bbbb06c886 | 75 | py | Python | test/test_maximum_average_subarray_i.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | test/test_maximum_average_subarray_i.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | test/test_maximum_average_subarray_i.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | solution = MaximumAverageSubarrayI()
assert X == solution.findMaxAverage( ) | 37.5 | 38 | 0.8 | 6 | 75 | 10 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093333 | 75 | 2 | 38 | 37.5 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d72da0462a860ef207ae387369b10c547914c8ab | 24 | py | Python | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 37 | 2015-04-21T15:33:53.000Z | 2022-02-07T00:02:29.000Z | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 86 | 2015-02-01T22:26:02.000Z | 2021-07-09T08:49:36.000Z | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 27 | 2015-01-26T16:01:09.000Z | 2021-11-08T23:53:55.000Z | __author__ = 'yaroslav'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 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 |
d735642e9d558eb3bf9fdd07fb6538d0fa899e7b | 987 | py | Python | shell/core/backdoors.py | theralfbrown/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | 3 | 2020-03-21T04:37:50.000Z | 2021-08-14T07:31:13.000Z | shell/core/backdoors.py | security-geeks/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | null | null | null | shell/core/backdoors.py | security-geeks/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | 3 | 2020-02-04T13:28:47.000Z | 2020-06-10T01:34:19.000Z | from color import *
#Will be add command line params ..
def backdoorlist( require=False):
if require != False:
data = [
"linux/x86/reverse_tcp",
"linux/x64/reverse_tcp",
"osx/x86/reverse_tcp",
"osx/x64/reverse_tcp",
"windows/x86/reverse_tcp",
"php/reverse_tcp",
"asp/reverse_tcp",
"jsp/reverse_tcp"... | 17.625 | 37 | 0.672746 | 132 | 987 | 4.833333 | 0.318182 | 0.407524 | 0.153605 | 0.056426 | 0.473354 | 0.473354 | 0.394984 | 0.394984 | 0.394984 | 0.394984 | 0 | 0.023981 | 0.155015 | 987 | 55 | 38 | 17.945455 | 0.741007 | 0.034448 | 0 | 0 | 0 | 0 | 0.746583 | 0.341746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.146341 | 0.02439 | 0 | 0.073171 | 0.02439 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d736eacec6de3c37305776ffe4de524fa9c56eb4 | 739 | py | Python | stronghold/tests/testmixins.py | davitovmasyan/django-stronghold | 73021742e9aad5c57509623c1152fcf7aa6ed232 | [
"MIT"
] | 252 | 2015-01-07T20:03:27.000Z | 2022-03-22T18:17:28.000Z | stronghold/tests/testmixins.py | davitovmasyan/django-stronghold | 73021742e9aad5c57509623c1152fcf7aa6ed232 | [
"MIT"
] | 35 | 2015-02-16T02:29:22.000Z | 2021-10-04T09:14:11.000Z | stronghold/tests/testmixins.py | davitovmasyan/django-stronghold | 73021742e9aad5c57509623c1152fcf7aa6ed232 | [
"MIT"
] | 48 | 2015-02-15T17:56:52.000Z | 2021-10-04T12:33:27.000Z | from stronghold.views import StrongholdPublicMixin
import django
from django.views.generic import View
from django.views.generic.base import TemplateResponseMixin
if django.VERSION[:2] < (1, 9):
from django.utils import unittest
else:
import unittest
class StrongholdMixinsTests(unittest.TestCase):
def ... | 26.392857 | 75 | 0.760487 | 83 | 739 | 6.578313 | 0.481928 | 0.054945 | 0.054945 | 0.080586 | 0.271062 | 0.271062 | 0.175824 | 0 | 0 | 0 | 0 | 0.004902 | 0.171854 | 739 | 27 | 76 | 27.37037 | 0.887255 | 0 | 0 | 0.117647 | 0 | 0 | 0.013532 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0.058824 | 0.352941 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d738bec2f9d2cad3aaccf4ee4535837028c7758a | 401 | py | Python | examples/hsd_struct/src/hsd_struct_beh.py | hnikolov/pihdf | 9a0d2add059db1ee90805e2124beff1fb5185fae | [
"MIT"
] | 2 | 2016-09-25T00:08:47.000Z | 2016-10-09T10:09:55.000Z | examples/hsd_struct/src/hsd_struct_beh.py | hnikolov/pihdf | 9a0d2add059db1ee90805e2124beff1fb5185fae | [
"MIT"
] | null | null | null | examples/hsd_struct/src/hsd_struct_beh.py | hnikolov/pihdf | 9a0d2add059db1ee90805e2124beff1fb5185fae | [
"MIT"
] | null | null | null | def hsd_struct_beh(mode_1, mode_2, LEDs, LED_rdy_en, LED_rdy_buff, LED_rdy_out, DELAY_BITS, BUFFER_SIZE):
'''|
| Specify the behavior, describe data processing; there is no notion
| of clock. Access the in/out interfaces via get() and append()
| methods. The "hsd_struct_beh" function does not return val... | 40.1 | 105 | 0.720698 | 60 | 401 | 4.45 | 0.783333 | 0.067416 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.187032 | 401 | 9 | 106 | 44.555556 | 0.812883 | 0 | 0 | 0 | 0 | 0 | 0.260355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d75380c7f93cf504e36d7b8aad4924bb1e6a7e9d | 1,692 | py | Python | icarus/test/test_util.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 5 | 2021-03-20T09:22:55.000Z | 2021-12-20T17:01:33.000Z | icarus/test/test_util.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 1 | 2021-12-13T07:40:46.000Z | 2021-12-20T16:59:08.000Z | icarus/test/test_util.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 1 | 2021-11-25T05:42:20.000Z | 2021-11-25T05:42:20.000Z | import unittest
import networkx as nx
import fnss
import icarus.util as util
class TestUtil(unittest.TestCase):
@classmethod
def setUpClass(cls):
pass
@classmethod
def tearDownClass(cls):
pass
def setUp(self):
pass
def tearDown(self):
pass
def test_ti... | 32.538462 | 82 | 0.615839 | 230 | 1,692 | 4.491304 | 0.317391 | 0.246854 | 0.147144 | 0.063892 | 0.158761 | 0.158761 | 0 | 0 | 0 | 0 | 0 | 0.094037 | 0.22695 | 1,692 | 51 | 83 | 33.176471 | 0.695719 | 0 | 0 | 0.15 | 0 | 0 | 0.033688 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.175 | false | 0.1 | 0.1 | 0 | 0.3 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d7560a43f54c8aae8cfba885c28425454151868f | 866 | py | Python | accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.24 on 2021-07-01 20:17
from django.db import migrations
def update_criterion_specs(apps, schema_editor):
CriterionOptionSpec = apps.get_model("accelerator", "CriterionOptionSpec")
CriterionOptionSpec.objects.filter(option="m").update(option="Male")
CriterionOptionSpec.objects.fi... | 30.928571 | 78 | 0.71709 | 90 | 866 | 6.777778 | 0.455556 | 0.170492 | 0.209836 | 0.24918 | 0.377049 | 0.377049 | 0.377049 | 0.377049 | 0.377049 | 0.377049 | 0 | 0.027473 | 0.159353 | 866 | 27 | 79 | 32.074074 | 0.81044 | 0.053118 | 0 | 0.117647 | 1 | 0 | 0.132029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d767675283bbb063fdc340913b93263291f2c950 | 212 | py | Python | tests/integration/test_integration_foreign_payment_codes.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 5 | 2018-08-10T19:12:48.000Z | 2021-07-08T12:43:24.000Z | tests/integration/test_integration_foreign_payment_codes.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 16 | 2018-06-17T18:51:05.000Z | 2021-01-10T10:44:36.000Z | tests/integration/test_integration_foreign_payment_codes.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 3 | 2019-03-05T15:01:13.000Z | 2021-06-15T14:35:37.000Z | from visma.models import ForeignPaymentCodes
class TestForeignPaymentCodes:
def test_list_foregin_payment_codes(self):
codes = ForeignPaymentCodes.objects.all()
assert len(codes) is not 0
| 21.2 | 49 | 0.754717 | 24 | 212 | 6.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.188679 | 212 | 9 | 50 | 23.555556 | 0.901163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d77119de6b793cbac0f2940da62fd48d954f6aef | 165 | py | Python | squirrel/__main__.py | egxdigital/squirrel | f4c5dbead63788a088d24b28b6cd8ad283585eaa | [
"MIT"
] | null | null | null | squirrel/__main__.py | egxdigital/squirrel | f4c5dbead63788a088d24b28b6cd8ad283585eaa | [
"MIT"
] | null | null | null | squirrel/__main__.py | egxdigital/squirrel | f4c5dbead63788a088d24b28b6cd8ad283585eaa | [
"MIT"
] | null | null | null | """Squirrel Main
This module contains the entry point code for the Squirrel program.
"""
from squirrel.squirrel import main
if __name__ == '__main__':
main() | 16.5 | 67 | 0.727273 | 22 | 165 | 5.090909 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 165 | 10 | 68 | 16.5 | 0.82963 | 0.49697 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7741c04bf8fcb98f38a8a2f9343cab79bc9f668 | 394 | py | Python | clairvoyance/preprocessing/__init__.py | ZhaozhiQIAN/SyncTwin-NeurIPS-2021 | 78eff91d0287c7f1f66c76ca24834c7d1029ad3b | [
"MIT"
] | 5 | 2021-11-23T08:41:08.000Z | 2022-03-06T16:20:37.000Z | clairvoyance/preprocessing/__init__.py | ZhaozhiQIAN/SyncTwin-NeurIPS-2021 | 78eff91d0287c7f1f66c76ca24834c7d1029ad3b | [
"MIT"
] | null | null | null | clairvoyance/preprocessing/__init__.py | ZhaozhiQIAN/SyncTwin-NeurIPS-2021 | 78eff91d0287c7f1f66c76ca24834c7d1029ad3b | [
"MIT"
] | 2 | 2021-11-16T16:10:53.000Z | 2021-12-28T07:13:03.000Z | from .encoding import (
MinMaxNormalizer,
Normalizer,
OneHotEncoder,
ProblemMaker,
ReNormalizer,
StandardNormalizer,
)
from .outlier_filter import FilterNegative, FilterOutOfRange
__all__ = [
"FilterNegative",
"FilterOutOfRange",
"OneHotEncoder",
"MinMaxNormalizer",
"Standar... | 18.761905 | 60 | 0.687817 | 24 | 394 | 11.083333 | 0.583333 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215736 | 394 | 20 | 61 | 19.7 | 0.860841 | 0 | 0 | 0 | 0 | 0 | 0.281726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d77d6e7fb86f611447c66f19c0c89a6591454f10 | 162 | py | Python | parse.py | lpmi-13/telegramStressBot | d6968108347e1215a97c6f8a2a2801e3770874d7 | [
"MIT"
] | null | null | null | parse.py | lpmi-13/telegramStressBot | d6968108347e1215a97c6f8a2a2801e3770874d7 | [
"MIT"
] | 2 | 2017-05-08T21:03:37.000Z | 2020-10-25T05:16:55.000Z | parse.py | lpmi-13/telegramStressBot | d6968108347e1215a97c6f8a2a2801e3770874d7 | [
"MIT"
] | null | null | null | import nltk
from nltk import word_tokenize
def create_POS_tags(sentence):
parsedSentence = word_tokenize(sentence)
return nltk.pos_tag(parsedSentence)
| 18 | 44 | 0.796296 | 21 | 162 | 5.904762 | 0.619048 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 162 | 8 | 45 | 20.25 | 0.898551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ad08cf47ba42bae95ff25fda628ffbf2136e4ecb | 59 | py | Python | pacote-download/Mundo1/ex002.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | pacote-download/Mundo1/ex002.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | pacote-download/Mundo1/ex002.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | nome = input('Qual o seu nome?')
print('Bem vindo ' , nome) | 29.5 | 32 | 0.644068 | 10 | 59 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 59 | 2 | 33 | 29.5 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ad2588d5d21fa5a0ab0624f48b923896aa205c21 | 214 | py | Python | python/mock_patch/test_topathch.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2018-04-14T16:28:39.000Z | 2021-11-14T12:08:02.000Z | python/mock_patch/test_topathch.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 3 | 2022-02-14T10:38:51.000Z | 2022-02-27T16:01:16.000Z | python/mock_patch/test_topathch.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2015-07-07T01:01:27.000Z | 2019-04-12T05:38:26.000Z | from mock import patch
@patch('topatch.afunction')
class TestToPatch():
def test_afunction(self, mock_afunction):
mock_afunction('foo', 'bar')
mock_afunction.assert_any_call('foo', 'bar')
| 23.777778 | 52 | 0.682243 | 26 | 214 | 5.384615 | 0.615385 | 0.278571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186916 | 214 | 8 | 53 | 26.75 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.135514 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ad8f7bbcca004c832305ceeebbf23ba748e94eff | 933 | py | Python | Session 3/Dictionaries/Accessing, writing & deleting data.py | Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1- | 7273610cc2e37acb65530dc384472e78ee8c30f7 | [
"MIT"
] | 4 | 2021-04-16T12:27:16.000Z | 2021-10-08T19:05:33.000Z | Session 3/Dictionaries/Accessing, writing & deleting data.py | Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1- | 7273610cc2e37acb65530dc384472e78ee8c30f7 | [
"MIT"
] | null | null | null | Session 3/Dictionaries/Accessing, writing & deleting data.py | Tassneem04Hamdy/AUG-Problem-Solving-For-Bioinformatics-Level-1- | 7273610cc2e37acb65530dc384472e78ee8c30f7 | [
"MIT"
] | 5 | 2021-04-18T10:46:44.000Z | 2021-05-03T16:13:25.000Z | my_dictionary = {
'type': 'Fruits',
'name': 'Apple',
'color': 'Green',
'available': True,
'number': 25
}
print(my_dictionary)
print(my_dictionary['name'])
# searching with wrong key
print(my_dictionary['weight'])
###############################################################
# printing keys and ... | 21.697674 | 63 | 0.45552 | 82 | 933 | 5.02439 | 0.463415 | 0.378641 | 0.247573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003641 | 0.116827 | 933 | 42 | 64 | 22.214286 | 0.496359 | 0.131833 | 0 | 0.2 | 0 | 0 | 0.155738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8e5b8ce05b40fbc469c45e36983e0d032a99b84 | 1,581 | py | Python | showyourwork/exceptions/other.py | katiebreivik/showyourwork | 77a15de6778e14c3a3936e86e181539cc31cc693 | [
"MIT"
] | null | null | null | showyourwork/exceptions/other.py | katiebreivik/showyourwork | 77a15de6778e14c3a3936e86e181539cc31cc693 | [
"MIT"
] | null | null | null | showyourwork/exceptions/other.py | katiebreivik/showyourwork | 77a15de6778e14c3a3936e86e181539cc31cc693 | [
"MIT"
] | null | null | null | from .base import ShowyourworkException
class RequestError(ShowyourworkException):
def __init__(
self,
status="",
message="An error occurred while accessing a remote server.",
):
super().__init__(f"Request error {status}: {message}")
class CondaNotFoundError(ShowyourworkExcep... | 21.657534 | 97 | 0.71537 | 140 | 1,581 | 7.85 | 0.492857 | 0.22748 | 0.245678 | 0.11647 | 0.083712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209994 | 1,581 | 72 | 98 | 21.958333 | 0.879904 | 0 | 0 | 0.340909 | 0 | 0 | 0.214421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.227273 | 0.022727 | 0 | 0.431818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a8fc954825cc770935a579719186567eddd9a42d | 1,899 | py | Python | tests/bugs/core_2361_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_2361_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_2361_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_2361
# title: String truncation reading 8859-1 Spanish column using isc_dsql_fetch with UTF-8 connection..
# decription:
# tracker_id: CORE-2361
# min_versions: []
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, ... | 27.128571 | 126 | 0.674039 | 262 | 1,899 | 4.721374 | 0.362595 | 0.090542 | 0.181083 | 0.210186 | 0.320129 | 0.320129 | 0.320129 | 0 | 0 | 0 | 0 | 0.035737 | 0.160084 | 1,899 | 69 | 127 | 27.521739 | 0.739812 | 0.14218 | 0 | 0.113636 | 0 | 0.022727 | 0.685838 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 1 | 0.022727 | false | 0 | 0.045455 | 0 | 0.068182 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d10e119827edf64c5992be98368eca488d789d1c | 263 | py | Python | users/tokens.py | maks-nurgazy/diploma-project | 66889488ffaa0269e1be2df6f6c76a3ca68a3cfb | [
"MIT"
] | null | null | null | users/tokens.py | maks-nurgazy/diploma-project | 66889488ffaa0269e1be2df6f6c76a3ca68a3cfb | [
"MIT"
] | null | null | null | users/tokens.py | maks-nurgazy/diploma-project | 66889488ffaa0269e1be2df6f6c76a3ca68a3cfb | [
"MIT"
] | null | null | null | from rest_framework_simplejwt.tokens import RefreshToken
def get_jwt_tokens_for_user(user, **kwargs):
"""
Generates a refresh token for the valid user
"""
refresh = RefreshToken.for_user(user)
return str(refresh), str(refresh.access_token)
| 23.909091 | 56 | 0.737643 | 35 | 263 | 5.314286 | 0.628571 | 0.075269 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174905 | 263 | 10 | 57 | 26.3 | 0.857143 | 0.1673 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d1208d36f83d1a05d8b97f40944b08d56a4cd522 | 338 | py | Python | backend/api/routes/__init__.py | senavs/todo-list | 6476805583d0edbb9df85111cfc799a2144e2c54 | [
"Apache-2.0"
] | null | null | null | backend/api/routes/__init__.py | senavs/todo-list | 6476805583d0edbb9df85111cfc799a2144e2c54 | [
"Apache-2.0"
] | null | null | null | backend/api/routes/__init__.py | senavs/todo-list | 6476805583d0edbb9df85111cfc799a2144e2c54 | [
"Apache-2.0"
] | null | null | null | from fastapi import APIRouter
from . import auth, index, list, task
router = APIRouter()
router.include_router(index.router)
router.include_router(auth.router, prefix='/auth', tags=['Authenticate'])
router.include_router(list.router, prefix='/lists', tags=['Lists'])
router.include_router(task.router, prefix='/lists'... | 30.727273 | 73 | 0.754438 | 44 | 338 | 5.704545 | 0.340909 | 0.207171 | 0.302789 | 0.167331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079882 | 338 | 10 | 74 | 33.8 | 0.807074 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d129876e7873140e41030905edf7719f9275b25b | 430 | py | Python | src/bpmn_python/graph/classes/events/start_event_type.py | ToJestKrzysio/ProcessVisualization | 9a359a31816bf1be65e3684a571509e3a2c2c0ac | [
"MIT"
] | null | null | null | src/bpmn_python/graph/classes/events/start_event_type.py | ToJestKrzysio/ProcessVisualization | 9a359a31816bf1be65e3684a571509e3a2c2c0ac | [
"MIT"
] | null | null | null | src/bpmn_python/graph/classes/events/start_event_type.py | ToJestKrzysio/ProcessVisualization | 9a359a31816bf1be65e3684a571509e3a2c2c0ac | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Class used for representing tStartEvent of BPMN 2.0 graph
"""
import graph.classes.events.catch_event_type as catch_event
class StartEvent(catch_event.CatchEvent):
"""
Class used for representing tStartEvent of BPMN 2.0 graph
"""
def __init__(self):
"""
Default cons... | 23.888889 | 74 | 0.683721 | 53 | 430 | 5.320755 | 0.641509 | 0.106383 | 0.085106 | 0.170213 | 0.340426 | 0.340426 | 0.340426 | 0.340426 | 0.340426 | 0.340426 | 0 | 0.014925 | 0.22093 | 430 | 17 | 75 | 25.294118 | 0.826866 | 0.455814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 |
d16ceb896d9da20d75ec5f24a103e4ea1f377294 | 187 | py | Python | BOJ/14000~14999/14471.py | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/14000~14999/14471.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/14000~14999/14471.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | n,m=map(int,input().split())
L = [list(map(int,input().split())) for i in range(m)]
ans = 0
L.sort(key = lambda t:t[0],reverse = True)
for i in L[:-1]:
ans += max(0,n-i[0])
print(ans) | 26.714286 | 54 | 0.582888 | 41 | 187 | 2.658537 | 0.560976 | 0.110092 | 0.201835 | 0.293578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0.149733 | 187 | 7 | 55 | 26.714286 | 0.654088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d16d1cb99b4e9f346c6042010a46e200ea4ee6ee | 343 | py | Python | libra/discovery_set.py | Xing-Huang/libra-client | bf74bc66b98a279476d751b637b1f84da84a51fe | [
"MIT"
] | null | null | null | libra/discovery_set.py | Xing-Huang/libra-client | bf74bc66b98a279476d751b637b1f84da84a51fe | [
"MIT"
] | null | null | null | libra/discovery_set.py | Xing-Huang/libra-client | bf74bc66b98a279476d751b637b1f84da84a51fe | [
"MIT"
] | null | null | null | from canoser import Struct
from libra.account_config import AccountConfig
from libra.event import EventKey
class DiscoverySet(Struct):
_fields = []
DISCOVERY_SET_STRUCT_NAME = "DiscoverySet"
@classmethod
def change_event_key(cls):
return EventKey.new_from_address(AccountConfig.disc... | 28.583333 | 82 | 0.752187 | 40 | 343 | 6.175 | 0.625 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0.183673 | 343 | 12 | 82 | 28.583333 | 0.878571 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
0f0041c3812a531ebd6ee9156ded1a3d042762da | 11,015 | py | Python | modules/bot_oc.py | opencitations/telegrambot | 7a74893bb0a7a85d5db04045832d7b2c676bff48 | [
"MIT"
] | 1 | 2021-07-18T02:48:40.000Z | 2021-07-18T02:48:40.000Z | modules/bot_oc.py | opencitations/telegrambot | 7a74893bb0a7a85d5db04045832d7b2c676bff48 | [
"MIT"
] | null | null | null | modules/bot_oc.py | opencitations/telegrambot | 7a74893bb0a7a85d5db04045832d7b2c676bff48 | [
"MIT"
] | null | null | null |
my_commands = {
"/contact" : {"notes":" Retrieve all the accounts (email, Twitter, GitHub, etc.) to contact the OpenCitations folks", 'parse_mode':'Markdown'},
"/ask" : {"notes":"Params: <DOI>. Retrieve information about the entity identified by the input DOI (source: COCI)", 'parse_mode':'Markdown'},
"/ci... | 39.90942 | 167 | 0.535361 | 1,430 | 11,015 | 3.874825 | 0.136364 | 0.052337 | 0.115142 | 0.078325 | 0.765385 | 0.741382 | 0.710522 | 0.673886 | 0.628767 | 0.611081 | 0 | 0.014072 | 0.303223 | 11,015 | 275 | 168 | 40.054545 | 0.707883 | 0.316387 | 0 | 0.459259 | 0 | 0.022222 | 0.250878 | 0.011207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051852 | false | 0 | 0.02963 | 0.007407 | 0.244444 | 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 |
0f2b82918b30990906c8cf384315c56b06dde564 | 80 | py | Python | release/stubs.min/Tekla/Structures/ModelInternal_parts/AreWeUnitTesting.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/ModelInternal_parts/AreWeUnitTesting.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/ModelInternal_parts/AreWeUnitTesting.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class AreWeUnitTesting(object):
# no doc
Value = False
__all__ = []
| 16 | 31 | 0.6125 | 8 | 80 | 5.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2875 | 80 | 4 | 32 | 20 | 0.789474 | 0.075 | 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 |
0f2cb2735a3c9b7ea7019b251686b0875798e3d0 | 64 | py | Python | flattenator/__init__.py | lsst-sqre/flattenator | 297c92a1b075653ca37c200c0ddc8d46d1b64975 | [
"MIT"
] | null | null | null | flattenator/__init__.py | lsst-sqre/flattenator | 297c92a1b075653ca37c200c0ddc8d46d1b64975 | [
"MIT"
] | null | null | null | flattenator/__init__.py | lsst-sqre/flattenator | 297c92a1b075653ca37c200c0ddc8d46d1b64975 | [
"MIT"
] | null | null | null | from .flattenator import Flattenator
__all__ = ["Flattenator"]
| 16 | 36 | 0.78125 | 6 | 64 | 7.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 3 | 37 | 21.333333 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 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 |
0f2feac9a2affe9de90859ee84f6a37f704d944b | 58 | py | Python | tests/constants.py | hairygeek/yt_lib | 3de4ba980cd26312e9211930d4424267803fc6df | [
"MIT"
] | 4 | 2019-08-12T12:40:48.000Z | 2020-04-20T20:00:03.000Z | tests/constants.py | hairygeek/yt_lib | 3de4ba980cd26312e9211930d4424267803fc6df | [
"MIT"
] | null | null | null | tests/constants.py | hairygeek/yt_lib | 3de4ba980cd26312e9211930d4424267803fc6df | [
"MIT"
] | null | null | null | CJ_PATH = r''
COOKIES_PATH = r''
CHAN_ID = ''
VID_ID = ''
| 11.6 | 18 | 0.586207 | 10 | 58 | 3 | 0.7 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 58 | 4 | 19 | 14.5 | 0.652174 | 0 | 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 |
0f3b73e98465b8b1b4c9ad2d85ba8b9865ebbc38 | 653 | py | Python | pybwap/__init__.py | NQysit/pybwap | f95af52ed756f0a18eb32cd2b3917f7f66848a9d | [
"MIT"
] | null | null | null | pybwap/__init__.py | NQysit/pybwap | f95af52ed756f0a18eb32cd2b3917f7f66848a9d | [
"MIT"
] | null | null | null | pybwap/__init__.py | NQysit/pybwap | f95af52ed756f0a18eb32cd2b3917f7f66848a9d | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
from flask import Flask, render_template, send_from_directory
app = Flask(__name__)
app.config.from_object('config.DevelopmentConfig')
from .main import main_blueprint
app.register_blueprint(main_blueprint)
from .ch_0x00 import ch_0x00_blueprint
app.register_blueprint(ch_0x00_bl... | 23.321429 | 86 | 0.767228 | 89 | 653 | 5.303371 | 0.426966 | 0.101695 | 0.127119 | 0.184322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033101 | 0.12098 | 653 | 27 | 87 | 24.185185 | 0.789199 | 0.07657 | 0 | 0 | 0 | 0 | 0.090444 | 0.080205 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
0f51ec37186fd8a1db6bbc54e44a5583d0b59c2f | 426 | py | Python | batch.py | SergioLaRosa/downloaderdude | 7f3fea4d5019d199b1ae2f5a62c66a4550321e67 | [
"MIT"
] | null | null | null | batch.py | SergioLaRosa/downloaderdude | 7f3fea4d5019d199b1ae2f5a62c66a4550321e67 | [
"MIT"
] | null | null | null | batch.py | SergioLaRosa/downloaderdude | 7f3fea4d5019d199b1ae2f5a62c66a4550321e67 | [
"MIT"
] | null | null | null | # URLs processed simultaneously
class Batch():
def __init__(self):
self._batch = 0
def set_batch(self, n_batch):
try:
self._batch = n_batch
except BaseException:
print("[ERROR] Can't set task batch number.")
def get_batch(self):
try:
r... | 21.3 | 57 | 0.570423 | 50 | 426 | 4.64 | 0.44 | 0.116379 | 0.206897 | 0.25 | 0.327586 | 0.327586 | 0.327586 | 0 | 0 | 0 | 0 | 0.003546 | 0.338028 | 426 | 19 | 58 | 22.421053 | 0.819149 | 0.068075 | 0 | 0.307692 | 0 | 0 | 0.182278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.384615 | 0.153846 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f559b826d34c24f7992bcda817728b961f99017 | 17,662 | py | Python | common/updatefiles.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null | common/updatefiles.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null | common/updatefiles.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null |
playerFilesWin = {
"lib/avcodec-56.dll" : { "flag_deps" : True, "should_be_removed" : True },
"lib/avformat-56.dll" : { "flag_deps" : True, "should_be_removed" : True },
"lib/avutil-54.dll" : { "flag_deps" : True, "should_be_removed" : True },
"lib/swscale-3.dll" : { "flag_deps" : True, "shou... | 60.486301 | 154 | 0.630563 | 2,052 | 17,662 | 5.266082 | 0.113548 | 0.069313 | 0.096613 | 0.102721 | 0.806034 | 0.739126 | 0.581714 | 0.531279 | 0.506663 | 0.468166 | 0 | 0.022157 | 0.18486 | 17,662 | 291 | 155 | 60.694158 | 0.728416 | 0.007927 | 0 | 0 | 0 | 0 | 0.652343 | 0.242553 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f854456a91aac536aec2fb17db51a2f8344e01c | 74 | py | Python | augur/metrics/platform/routes.py | Nayan-Das/augur | 857f4a4e7d688fd54356aa0f546834071fbabbf2 | [
"MIT"
] | 1 | 2020-02-28T18:51:43.000Z | 2020-02-28T18:51:43.000Z | augur/metrics/platform/routes.py | Nayan-Das/augur | 857f4a4e7d688fd54356aa0f546834071fbabbf2 | [
"MIT"
] | 1 | 2021-06-02T00:58:41.000Z | 2021-06-02T00:58:41.000Z | augur/metrics/platform/routes.py | Nayan-Das/augur | 857f4a4e7d688fd54356aa0f546834071fbabbf2 | [
"MIT"
] | null | null | null |
def create_platform_routes(server):
metrics = server._augur.metrics
| 14.8 | 35 | 0.77027 | 9 | 74 | 6 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 74 | 4 | 36 | 18.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 |
0f87054df9c74ee2c34ad2435d0071591357f748 | 93 | py | Python | dynamic_databases/__init__.py | sligodave/dynamic_databases | 8bb85d59ef5ad6b0176b192a82ec457fb00601c5 | [
"MIT"
] | 4 | 2017-05-14T23:45:42.000Z | 2020-12-21T06:33:15.000Z | dynamic_databases/__init__.py | sligodave/dynamic_databases | 8bb85d59ef5ad6b0176b192a82ec457fb00601c5 | [
"MIT"
] | 2 | 2017-05-14T22:47:40.000Z | 2018-04-19T11:01:29.000Z | dynamic_databases/__init__.py | sligodave/dynamic_databases | 8bb85d59ef5ad6b0176b192a82ec457fb00601c5 | [
"MIT"
] | 3 | 2017-05-26T22:42:25.000Z | 2021-10-21T01:14:23.000Z |
__version__ = '0.1.7'
default_app_config = 'dynamic_databases.apps.DynamicDatabasesConfig'
| 18.6 | 68 | 0.806452 | 11 | 93 | 6.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.086022 | 93 | 4 | 69 | 23.25 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.543478 | 0.48913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f90448ac74fa457d3c66dd70e9a31f1a0170da1 | 59 | py | Python | ditto/flickr/__init__.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 54 | 2016-08-15T17:32:41.000Z | 2022-02-27T03:32:05.000Z | ditto/flickr/__init__.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 229 | 2015-07-23T12:50:47.000Z | 2022-03-24T10:33:20.000Z | ditto/flickr/__init__.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 8 | 2015-09-10T17:10:35.000Z | 2022-03-25T13:05:01.000Z | default_app_config = "ditto.flickr.apps.DittoFlickrConfig"
| 29.5 | 58 | 0.847458 | 7 | 59 | 6.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 59 | 1 | 59 | 59 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.59322 | 0.59322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e13e1f7cd0f8dfc86c33515f8eed65171e22242 | 612 | py | Python | pymitblod/gender.py | slimcdk/pymitblod | 8bae9401abec73e53a0687a5429b215722076b39 | [
"Apache-2.0"
] | null | null | null | pymitblod/gender.py | slimcdk/pymitblod | 8bae9401abec73e53a0687a5429b215722076b39 | [
"Apache-2.0"
] | null | null | null | pymitblod/gender.py | slimcdk/pymitblod | 8bae9401abec73e53a0687a5429b215722076b39 | [
"Apache-2.0"
] | null | null | null | '''
All model classes for pymitblod
'''
from __future__ import annotations
from typing import Callable
class Gender():
'''
Class representing an institution.
'''
def __init__(
self,
id:int,
name:str,
blood_volume_ml_lambda:Callable[[float, float, float... | 20.4 | 74 | 0.616013 | 71 | 612 | 4.859155 | 0.422535 | 0.15942 | 0.188406 | 0.275362 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297386 | 612 | 29 | 75 | 21.103448 | 0.802326 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
7e18044f5ac21085211914b4557e38ac75f7285e | 278 | py | Python | tests/context.py | eyal0/lcovparse | 3c29ef50870339d692ec116b68521904692a926a | [
"Apache-2.0"
] | 2 | 2021-09-12T23:07:54.000Z | 2021-11-20T02:57:30.000Z | tests/context.py | eyal0/lcovparse | 3c29ef50870339d692ec116b68521904692a926a | [
"Apache-2.0"
] | null | null | null | tests/context.py | eyal0/lcovparse | 3c29ef50870339d692ec116b68521904692a926a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
"""Context for all tests."""
from __future__ import absolute_import
import os
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)) + "../lcovparse"))
import lcovparse # pylint: disable=wrong-import-position,unused-import
| 25.272727 | 91 | 0.76259 | 40 | 278 | 5.075 | 0.65 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0.089928 | 278 | 10 | 92 | 27.8 | 0.798419 | 0.345324 | 0 | 0 | 0 | 0 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7e47a45aa4626c8612e5e79d872162e8912b39d8 | 293 | py | Python | warehouse.py | Arthraim/warehouse | 3905635217f679eb9c3ace00b016668588f6bb98 | [
"MIT"
] | 1 | 2015-01-14T08:06:07.000Z | 2015-01-14T08:06:07.000Z | warehouse.py | Arthraim/warehouse | 3905635217f679eb9c3ace00b016668588f6bb98 | [
"MIT"
] | null | null | null | warehouse.py | Arthraim/warehouse | 3905635217f679eb9c3ace00b016668588f6bb98 | [
"MIT"
] | null | null | null | __author__ = 'arthur'
from PyQt5.QtCore import *
from models import *
class WareHouse(QObject):
def __init__(self):
super(QObject, self).__init__()
@pyqtSlot(result=QVariant)
def all_cargo(self):
return QVariant(map(lambda x: x.javascriptify(), Cargo.select())) | 22.538462 | 73 | 0.682594 | 35 | 293 | 5.342857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.191126 | 293 | 13 | 73 | 22.538462 | 0.78481 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7e602fe1c74aa3fb84a2c81524ea7c737c67eb63 | 233 | py | Python | setup.py | jsdnlb/Tangelo-challenge | 4cd83f5dcd5b870f2dba6a7f08d35fe1f60709ce | [
"MIT"
] | null | null | null | setup.py | jsdnlb/Tangelo-challenge | 4cd83f5dcd5b870f2dba6a7f08d35fe1f60709ce | [
"MIT"
] | 3 | 2022-02-11T00:32:38.000Z | 2022-02-11T14:29:33.000Z | setup.py | jsdnlb/tangelo-challenge | 4cd83f5dcd5b870f2dba6a7f08d35fe1f60709ce | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
# Building and Distributing Packages with Setuptools
# Documentation here: https://setuptools.pypa.io/en/latest/setuptools.html
setup(name='app', version='1.0', packages=find_packages())
| 33.285714 | 74 | 0.793991 | 31 | 233 | 5.903226 | 0.741935 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.090129 | 233 | 6 | 75 | 38.833333 | 0.853774 | 0.527897 | 0 | 0 | 0 | 0 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7e7d5c74d34a346aa2f86f99938df07c5e5fd4cb | 89 | py | Python | ourteam/apps.py | Kgermando/parlementaires | ef9a464373ce2facbb6543be6d3b0d7d5c11200c | [
"Apache-2.0"
] | 1 | 2021-08-09T02:22:42.000Z | 2021-08-09T02:22:42.000Z | ourteam/apps.py | Kgermando/parlementaires | ef9a464373ce2facbb6543be6d3b0d7d5c11200c | [
"Apache-2.0"
] | null | null | null | ourteam/apps.py | Kgermando/parlementaires | ef9a464373ce2facbb6543be6d3b0d7d5c11200c | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class OurteamConfig(AppConfig):
name = 'ourteam'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7eb5995e03f60c1e708787551eef79b2faedc457 | 132 | py | Python | Neural Network/NNToyFx/python/activations.py | stormy-ua/MachineLearning | e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf | [
"MIT"
] | null | null | null | Neural Network/NNToyFx/python/activations.py | stormy-ua/MachineLearning | e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf | [
"MIT"
] | null | null | null | Neural Network/NNToyFx/python/activations.py | stormy-ua/MachineLearning | e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf | [
"MIT"
] | null | null | null | from simulation import *
def relu(ctx: SimulationContext, x: Connection):
relu1 = ctx.max(x, ctx.variable(0))
return relu1 | 22 | 48 | 0.704545 | 18 | 132 | 5.166667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.181818 | 132 | 6 | 49 | 22 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 |
0e18f19e2f26af45d020c41ca5247b1bdd969657 | 151 | py | Python | abacus_tpot/tpot_config.py | workforce-data-initiative/tpot-abacus | a5abf4af544693e0c58f7891785718e7bc606ed6 | [
"Apache-2.0"
] | 1 | 2019-09-09T20:52:49.000Z | 2019-09-09T20:52:49.000Z | abacus_tpot/tpot_config.py | workforce-data-initiative/tpot-abacus | a5abf4af544693e0c58f7891785718e7bc606ed6 | [
"Apache-2.0"
] | 43 | 2018-02-11T11:24:18.000Z | 2022-02-22T05:32:16.000Z | abacus_tpot/tpot_config.py | workforce-data-initiative/tpot-abacus | a5abf4af544693e0c58f7891785718e7bc606ed6 | [
"Apache-2.0"
] | null | null | null | # eventually we will have a proper config
ANONYMIZATION_THRESHOLD = 10
WAREHOUSE_URI = 'postgres://localhost'
WAGE_RECORD_URI = 'postgres://localhost'
| 30.2 | 41 | 0.794702 | 19 | 151 | 6.105263 | 0.842105 | 0.189655 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.112583 | 151 | 4 | 42 | 37.75 | 0.850746 | 0.258278 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e2c27724ea07da3d95021b9be790ef2004472e6 | 2,158 | py | Python | thriftpy2/contrib/aio/transport/framed.py | JonnoFTW/thriftpy2 | 3b4d28d611a752f8796604ee274f03c517670a43 | [
"MIT"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | thriftpy2/contrib/aio/transport/framed.py | JonnoFTW/thriftpy2 | 3b4d28d611a752f8796604ee274f03c517670a43 | [
"MIT"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | thriftpy2/contrib/aio/transport/framed.py | JonnoFTW/thriftpy2 | 3b4d28d611a752f8796604ee274f03c517670a43 | [
"MIT"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import struct
import asyncio
from io import BytesIO
from .base import TAsyncTransportBase, readall
from .buffered import TAsyncBufferedTransport
class TAsyncFramedTransport(TAsyncTransportBase):
"""Class that wraps another transport and frames its ... | 28.773333 | 79 | 0.647822 | 271 | 2,158 | 5.04428 | 0.428044 | 0.072421 | 0.055596 | 0.041697 | 0.042429 | 0.042429 | 0 | 0 | 0 | 0 | 0 | 0.002509 | 0.261353 | 2,158 | 74 | 80 | 29.162162 | 0.855082 | 0.244208 | 0 | 0.130435 | 0 | 0 | 0.002474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.108696 | 0.565217 | 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 |
0e2f13b1e7a11523bafcf1c9ffaaf118b159dadf | 372 | py | Python | DSTK/Timeseries/recurrence_plots.py | jotterbach/dstk | d371262ca09527fb8279f066b564abf5a1fe28df | [
"MIT"
] | 12 | 2017-01-10T19:50:32.000Z | 2020-03-30T20:28:31.000Z | DSTK/Timeseries/recurrence_plots.py | jotterbach/dstk | d371262ca09527fb8279f066b564abf5a1fe28df | [
"MIT"
] | 7 | 2016-10-12T16:21:58.000Z | 2016-12-01T00:34:54.000Z | DSTK/Timeseries/recurrence_plots.py | jotterbach/dstk | d371262ca09527fb8279f066b564abf5a1fe28df | [
"MIT"
] | 8 | 2016-08-22T11:23:12.000Z | 2020-03-13T23:18:39.000Z | import _recurrence_map
import numpy as np
def poincare_map(ts, ts2=None, threshold=0.1):
rec_dist = poincare_recurrence_dist(ts, ts2)
return (rec_dist < threshold).astype(int)
def poincare_recurrence_dist(ts, ts2=None):
if ts2 is None:
return _recurrence_map.recurrence_map(ts, ts)
else:
... | 23.25 | 54 | 0.725806 | 55 | 372 | 4.636364 | 0.4 | 0.254902 | 0.062745 | 0.188235 | 0.478431 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0.023102 | 0.185484 | 372 | 15 | 55 | 24.8 | 0.818482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0e3027662b184f06c13870ffba5c59a0f9bdc59f | 1,223 | py | Python | buffer.py | Shahaf-Yamin/CartPole-Policy-Gradients | 98845fa6aa24d1de22644b783ea564a778a5c64f | [
"MIT"
] | null | null | null | buffer.py | Shahaf-Yamin/CartPole-Policy-Gradients | 98845fa6aa24d1de22644b783ea564a778a5c64f | [
"MIT"
] | null | null | null | buffer.py | Shahaf-Yamin/CartPole-Policy-Gradients | 98845fa6aa24d1de22644b783ea564a778a5c64f | [
"MIT"
] | null | null | null | import numpy as np
from collections import namedtuple, deque
import random
Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward', 'not_done'))
class ReplayBuffer(object):
def __init__(self, capacity):
self.memory = deque([], maxlen=capacity)
def push(self, *ar... | 40.766667 | 293 | 0.63287 | 155 | 1,223 | 4.896774 | 0.522581 | 0.065876 | 0.085639 | 0.063241 | 0.089592 | 0.089592 | 0 | 0 | 0 | 0 | 0 | 0.007642 | 0.251022 | 1,223 | 29 | 294 | 42.172414 | 0.820961 | 0.222404 | 0 | 0 | 0 | 0 | 0.048913 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0.047619 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0e351d8158536eec299c27c17ae7a1f82b512746 | 455 | py | Python | upper_print.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | upper_print.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | upper_print.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
def upper_print(f):
def wrapper(*args, **kwargs):
f(*[i.upper() if hasattr(i, 'upper') else i for i in args], **kwargs)
return wrapper
if __name__ == '__main__':
text = 'hello world!'
print(text) # hello world!
ol... | 18.2 | 77 | 0.6 | 61 | 455 | 4.213115 | 0.47541 | 0.194553 | 0.217899 | 0.22179 | 0.18677 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.248352 | 455 | 24 | 78 | 18.958333 | 0.745614 | 0.18022 | 0 | 0.230769 | 0 | 0 | 0.089674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.230769 | 0.538462 | 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 |
0e3954cbaaaca908b84089a968d649cf3012eb17 | 1,254 | py | Python | app/auth/forms.py | dancan-sandys/Becky_pizza | 5a12669a9def43768f8ef00ff863dbf3c78ed896 | [
"MIT"
] | null | null | null | app/auth/forms.py | dancan-sandys/Becky_pizza | 5a12669a9def43768f8ef00ff863dbf3c78ed896 | [
"MIT"
] | null | null | null | app/auth/forms.py | dancan-sandys/Becky_pizza | 5a12669a9def43768f8ef00ff863dbf3c78ed896 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField,BooleanField,PasswordField,SubmitField
from wtforms.validators import Email,Required,EqualTo
from wtforms import ValidationError
from ..models import User
class LoginForm(FlaskForm):
email = StringField("enter your email adress",validators = [Require... | 36.882353 | 137 | 0.72488 | 134 | 1,254 | 6.701493 | 0.358209 | 0.120267 | 0.066815 | 0.055679 | 0.378619 | 0.238307 | 0.238307 | 0.238307 | 0.167038 | 0 | 0 | 0 | 0.158692 | 1,254 | 33 | 138 | 38 | 0.851185 | 0.22807 | 0 | 0 | 0 | 0 | 0.173459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.3125 | 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 |
0e44e2abfa92ca47f5eabcd2125c3a73c5fbe7bb | 13,106 | py | Python | apps/api/modules/bkdata_aiops.py | qqqqqie/bk-log | 1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1 | [
"MIT"
] | 75 | 2021-07-14T09:32:36.000Z | 2022-03-31T15:26:53.000Z | apps/api/modules/bkdata_aiops.py | qqqqqie/bk-log | 1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1 | [
"MIT"
] | 561 | 2021-07-14T07:45:47.000Z | 2022-03-31T11:41:28.000Z | apps/api/modules/bkdata_aiops.py | qqqqqie/bk-log | 1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1 | [
"MIT"
] | 41 | 2021-07-14T07:39:50.000Z | 2022-03-25T09:22:18.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-LOG 蓝鲸日志平台 is licensed under the MIT License.
License for BK-LOG 蓝鲸日志平台:
------------------------------------------------... | 43.254125 | 120 | 0.628872 | 1,468 | 13,106 | 5.243188 | 0.156676 | 0.092893 | 0.036378 | 0.058205 | 0.733143 | 0.708978 | 0.700143 | 0.662856 | 0.632844 | 0.610108 | 0 | 0.009304 | 0.278346 | 13,106 | 302 | 121 | 43.397351 | 0.804504 | 0.10499 | 0 | 0.549091 | 0 | 0 | 0.171531 | 0.099761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003636 | false | 0 | 0.014545 | 0 | 0.025455 | 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 |
0e458fb301ccce1987472231c3b00c1628040969 | 13,195 | py | Python | pytket/pytket/passes/script.py | NewGitter2017/tket | 6ff81af26280770bf2ca80bfb2140e8fa98182aa | [
"Apache-2.0"
] | null | null | null | pytket/pytket/passes/script.py | NewGitter2017/tket | 6ff81af26280770bf2ca80bfb2140e8fa98182aa | [
"Apache-2.0"
] | null | null | null | pytket/pytket/passes/script.py | NewGitter2017/tket | 6ff81af26280770bf2ca80bfb2140e8fa98182aa | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2021 Cambridge Quantum Computing
#
# 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 a... | 30.125571 | 88 | 0.721031 | 1,520 | 13,195 | 6.009211 | 0.190132 | 0.035581 | 0.064046 | 0.096781 | 0.292424 | 0.195971 | 0.062952 | 0.029231 | 0.015984 | 0 | 0 | 0.003847 | 0.192194 | 13,195 | 437 | 89 | 30.194508 | 0.853082 | 0.143994 | 0 | 0.022654 | 0 | 0 | 0.355026 | 0.119237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216828 | false | 0.223301 | 0.029126 | 0.210356 | 0.466019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
0e51b7b58041b179a5ca569376e14c8b5faa8e01 | 100 | py | Python | src/spaczz/regex/__init__.py | brunobg/spaczz | 69c73cad16f65f01be2202ecc0c836dd03b42b61 | [
"MIT"
] | 153 | 2020-07-07T01:26:25.000Z | 2022-03-31T23:47:00.000Z | src/spaczz/regex/__init__.py | brunobg/spaczz | 69c73cad16f65f01be2202ecc0c836dd03b42b61 | [
"MIT"
] | 38 | 2020-07-15T02:29:34.000Z | 2021-08-15T21:32:54.000Z | src/spaczz/regex/__init__.py | brunobg/spaczz | 69c73cad16f65f01be2202ecc0c836dd03b42b61 | [
"MIT"
] | 20 | 2020-07-07T15:41:05.000Z | 2022-02-21T19:28:22.000Z | """Module for regex components."""
from .regexconfig import RegexConfig
__all__ = ["RegexConfig"]
| 16.666667 | 36 | 0.74 | 10 | 100 | 7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 100 | 5 | 37 | 20 | 0.804598 | 0.28 | 0 | 0 | 0 | 0 | 0.166667 | 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 |
0e5a54810fbef414231a098e12c3d3a8fbf58189 | 343 | py | Python | 2020/01-1.py | matteodelabre/advent-of-code | a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1 | [
"CC0-1.0"
] | 1 | 2021-12-02T05:16:11.000Z | 2021-12-02T05:16:11.000Z | 2020/01-1.py | matteodelabre/advent-of-code | a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1 | [
"CC0-1.0"
] | null | null | null | 2020/01-1.py | matteodelabre/advent-of-code | a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1 | [
"CC0-1.0"
] | null | null | null | rows = []
try:
while True:
rows.append(int(input()))
except EOFError:
pass
rows.sort()
goal = 2020
l = 0
r = len(rows) - 1
while rows[l] + rows[r] != goal and l < r:
if rows[l] + rows[r] < goal:
l += 1
else:
r -= 1
if rows[l] + rows[r] == goal:
print(rows[l] * rows[r])
e... | 13.72 | 42 | 0.498542 | 55 | 343 | 3.109091 | 0.418182 | 0.116959 | 0.210526 | 0.233918 | 0.269006 | 0.187135 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.317784 | 343 | 24 | 43 | 14.291667 | 0.696581 | 0 | 0 | 0.105263 | 0 | 0 | 0.011662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0e5ee46bdd0854fb83ad5b03e98e62a0395d3652 | 57,678 | py | Python | tests/integration/boxscore/test_ncaab_boxscore.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 221 | 2018-05-15T19:48:03.000Z | 2021-01-05T15:36:21.000Z | tests/integration/boxscore/test_ncaab_boxscore.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 502 | 2018-07-25T03:09:26.000Z | 2021-01-06T16:07:02.000Z | tests/integration/boxscore/test_ncaab_boxscore.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 72 | 2021-01-21T13:17:00.000Z | 2022-03-31T21:43:25.000Z | import mock
import os
import pandas as pd
from datetime import datetime
from flexmock import flexmock
from sportsipy import utils
from sportsipy.constants import HOME
from sportsipy.ncaab.constants import BOXSCORES_URL, SCHEDULE_URL
from sportsipy.ncaab.boxscore import Boxscore, Boxscores
MONTH = 1
YEAR = 2020
BOXSC... | 41.110478 | 78 | 0.437793 | 5,097 | 57,678 | 4.678438 | 0.083775 | 0.049987 | 0.046968 | 0.041433 | 0.736811 | 0.712908 | 0.698943 | 0.691143 | 0.682882 | 0.672608 | 0 | 0.047291 | 0.428812 | 57,678 | 1,402 | 79 | 41.1398 | 0.676521 | 0.006831 | 0 | 0.753495 | 0 | 0 | 0.37534 | 0.057371 | 0 | 0 | 0 | 0 | 0.00883 | 1 | 0.011773 | false | 0 | 0.006623 | 0.000736 | 0.025018 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0eb0a8f9ad766e5dfaab13e68e0f57e269d67f78 | 981 | py | Python | alpacka/envs/__init__.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | 2 | 2021-01-03T04:21:56.000Z | 2021-02-12T12:54:58.000Z | alpacka/envs/__init__.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | null | null | null | alpacka/envs/__init__.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | null | null | null | """Environments."""
import gin
from alpacka.envs import bin_packing
from alpacka.envs import cartpole
from alpacka.envs import gfootball
from alpacka.envs import octomaze
from alpacka.envs import sokoban
from alpacka.envs.base import *
from alpacka.envs.wrappers import *
# Configure envs in this module to ensure th... | 35.035714 | 93 | 0.796126 | 123 | 981 | 6.252033 | 0.317073 | 0.128739 | 0.136541 | 0.187256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118247 | 981 | 27 | 94 | 36.333333 | 0.889017 | 0.286442 | 0 | 0 | 0 | 0 | 0.017467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.444444 | 0.055556 | 0.555556 | 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 |
7ec4be3802281f0f009f1059ea1169959c79b1bc | 92 | py | Python | Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py | sartinicj/curso-em-video-python | 8cb4ca05a88351c44aa4a7befc59c9596a50f268 | [
"MIT"
] | null | null | null | Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py | sartinicj/curso-em-video-python | 8cb4ca05a88351c44aa4a7befc59c9596a50f268 | [
"MIT"
] | null | null | null | Curso-em-video-Python/PycharmProjects/pythonExercicios/ex046 - ContagemRegressiva.py | sartinicj/curso-em-video-python | 8cb4ca05a88351c44aa4a7befc59c9596a50f268 | [
"MIT"
] | null | null | null | from time import sleep
for i in range(10, 0, -1):
print(i)
sleep(1)
print('Yeey!!')
| 15.333333 | 26 | 0.597826 | 17 | 92 | 3.235294 | 0.764706 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.228261 | 92 | 5 | 27 | 18.4 | 0.704225 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 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 |
7ed22c3a12b83e7e397a2f42645d4d28f20c10a1 | 1,028 | py | Python | setup.py | albarsil/pyschemavalidator- | 18b6dddc41a2e48e87edd9c8744956c933a0954c | [
"MIT"
] | 2 | 2021-07-14T22:16:11.000Z | 2021-07-15T13:59:16.000Z | setup.py | albarsil/pyschemavalidator- | 18b6dddc41a2e48e87edd9c8744956c933a0954c | [
"MIT"
] | null | null | null | setup.py | albarsil/pyschemavalidator- | 18b6dddc41a2e48e87edd9c8744956c933a0954c | [
"MIT"
] | 1 | 2021-11-08T17:51:56.000Z | 2021-11-08T17:51:56.000Z | from setuptools import setup, find_packages
def readme():
with open('README.md') as f:
return f.read()
setup(
name='pyschemavalidator',
version='1.0.4',
description='Decorator for endpoint inputs on APIs and a dictionary/JSON validator.',
long_description=readme(),
long_description_con... | 34.266667 | 98 | 0.640078 | 114 | 1,028 | 5.684211 | 0.649123 | 0.146605 | 0.192901 | 0.200617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015834 | 0.201362 | 1,028 | 29 | 99 | 35.448276 | 0.773447 | 0 | 0 | 0 | 0 | 0 | 0.483463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | true | 0 | 0.037037 | 0 | 0.111111 | 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 |
7ed76cffa617d7dbb0eb5704950de02465bd2acc | 239 | py | Python | GPLT_Python/L1-003.py | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 107 | 2019-10-25T07:46:59.000Z | 2022-03-29T11:10:56.000Z | GPLT_Python/L1-003.py | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 1 | 2021-08-13T05:42:27.000Z | 2021-08-13T05:42:27.000Z | GPLT_Python/L1-003.py | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 18 | 2020-12-09T14:24:22.000Z | 2022-03-30T06:56:01.000Z | a = str(input())
b = {'0': 0, '1': 0, '2': 0, '3': 0, '4': 0, '5': 0, '6': 0, '7': 0, '8': 0, '9': 0}
for i in a:
b[i] = b[i] + 1
for i in range(len(b)):
if b[str(i)] == 0:
continue
print(str(i) + ':' + str(b[str(i)]))
| 26.555556 | 84 | 0.376569 | 52 | 239 | 1.730769 | 0.423077 | 0.133333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128655 | 0.284519 | 239 | 8 | 85 | 29.875 | 0.397661 | 0 | 0 | 0 | 0 | 0 | 0.046025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 1 | 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 |
7eeeeddb273daae8d265bebeae3ae172280c5d3f | 3,588 | py | Python | src/sqlfluff/core/rules/functional/segment_predicates.py | r0fls/sqlfluff | 3bc658e26758d1eb1ce35dade2e2cf064a4d6675 | [
"MIT"
] | null | null | null | src/sqlfluff/core/rules/functional/segment_predicates.py | r0fls/sqlfluff | 3bc658e26758d1eb1ce35dade2e2cf064a4d6675 | [
"MIT"
] | null | null | null | src/sqlfluff/core/rules/functional/segment_predicates.py | r0fls/sqlfluff | 3bc658e26758d1eb1ce35dade2e2cf064a4d6675 | [
"MIT"
] | null | null | null | """Defines commonly used segment predicates for rule writers.
For consistency, all the predicates in this module are implemented as functions
returning functions. This avoids rule writers having to remember the
distinction between normal functions and functions returning functions.
This is not necessarily a complete ... | 26.382353 | 85 | 0.687291 | 440 | 3,588 | 5.470455 | 0.202273 | 0.130868 | 0.143332 | 0.116327 | 0.620274 | 0.620274 | 0.559618 | 0.426672 | 0.38845 | 0.321562 | 0 | 0 | 0.201784 | 3,588 | 135 | 86 | 26.577778 | 0.840433 | 0.346711 | 0 | 0.464286 | 0 | 0 | 0.003088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.482143 | false | 0 | 0.035714 | 0.232143 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
7efc02867d62088c24fe38cb0e01aef98549a474 | 585 | py | Python | source/intentionally_blank/ext/formatters/eof_newline/formatter.py | sixty-north/intentionally-blank | ef00c91003811b05170f417a3acbcf4bf92bd643 | [
"MIT"
] | null | null | null | source/intentionally_blank/ext/formatters/eof_newline/formatter.py | sixty-north/intentionally-blank | ef00c91003811b05170f417a3acbcf4bf92bd643 | [
"MIT"
] | null | null | null | source/intentionally_blank/ext/formatters/eof_newline/formatter.py | sixty-north/intentionally-blank | ef00c91003811b05170f417a3acbcf4bf92bd643 | [
"MIT"
] | null | null | null | from intentionally_blank.formatter import Formatter
class NewlineAtEofFormatter(Formatter):
"""Ensure the last line of the file has a newline terminator.
"""
def format(self, lines):
"""
Args:
lines: An iterable series of strings, each with a newline terminator.
... | 25.434783 | 81 | 0.635897 | 68 | 585 | 5.397059 | 0.514706 | 0.231608 | 0.147139 | 0.098093 | 0.277929 | 0.277929 | 0.277929 | 0.277929 | 0.277929 | 0.277929 | 0 | 0 | 0.28547 | 585 | 22 | 82 | 26.590909 | 0.87799 | 0.374359 | 0 | 0 | 0 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7d0655be98836fde86e8a90e510ed3097683aff2 | 967 | py | Python | crits/comments/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 738 | 2015-01-02T12:39:55.000Z | 2022-03-23T11:05:51.000Z | crits/comments/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 605 | 2015-01-01T01:03:39.000Z | 2021-11-17T18:51:07.000Z | crits/comments/urls.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 316 | 2015-01-07T12:35:01.000Z | 2022-03-30T04:44:30.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^remove/(?P<obj_type>\S+)/(?P<obj_id>\S+)/$', views.remove_comment, name='crits-comments-views-remove_comment'),
url(r'^(?P<method>\S+)/(?P<obj_type>\S+)/(?P<obj_id>\S+)/$', views.add_update_comment, name='crits-comments-views-add_upda... | 64.466667 | 139 | 0.688728 | 144 | 967 | 4.465278 | 0.256944 | 0.18196 | 0.211509 | 0.273717 | 0.587869 | 0.413686 | 0.413686 | 0.413686 | 0.413686 | 0.171073 | 0 | 0.00223 | 0.072389 | 967 | 14 | 140 | 69.071429 | 0.714604 | 0 | 0 | 0 | 0 | 0.083333 | 0.554292 | 0.535677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d0bbe8da578c249333be408a98ef7bf3a18a601 | 2,068 | py | Python | wms/config/wms.py | bhavesh95863/WMS | c45858a943a607e5d0b49f698e469f3362aae001 | [
"MIT"
] | null | null | null | wms/config/wms.py | bhavesh95863/WMS | c45858a943a607e5d0b49f698e469f3362aae001 | [
"MIT"
] | null | null | null | wms/config/wms.py | bhavesh95863/WMS | c45858a943a607e5d0b49f698e469f3362aae001 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("WMS"),
"icon": "octicon octicon-briefcase",
"items": [
{
"type": "doctype",
"name": "WMS Lead",
... | 29.126761 | 55 | 0.287718 | 110 | 2,068 | 5.227273 | 0.327273 | 0.172174 | 0.234783 | 0.093913 | 0.201739 | 0.125217 | 0 | 0 | 0 | 0 | 0 | 0 | 0.581721 | 2,068 | 70 | 56 | 29.542857 | 0.66474 | 0 | 0 | 0.191176 | 0 | 0 | 0.267267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | true | 0 | 0.029412 | 0.014706 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
7d397f642d7aef0cc79a1f55aff842d15208de96 | 198 | py | Python | reviewboard/site/evolutions/localsite_public.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | reviewboard/site/evolutions/localsite_public.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | reviewboard/site/evolutions/localsite_public.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django_evolution.mutations import AddField
from django.db import models
MUTATIONS = [AddField("LocalSite", "public", models.BooleanField, initial=False)] | 49.5 | 81 | 0.833333 | 24 | 198 | 6.625 | 0.666667 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085859 | 198 | 4 | 81 | 49.5 | 0.878453 | 0 | 0 | 0 | 0 | 0 | 0.075377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
7d4b8c1cbb3320cfef8a2500aa0c61c3209c9888 | 9,655 | py | Python | faro/utils.py | cgiraldo/FARO | aa599fe8eebb489fe032549ec52771574a6d04bd | [
"MIT"
] | null | null | null | faro/utils.py | cgiraldo/FARO | aa599fe8eebb489fe032549ec52771574a6d04bd | [
"MIT"
] | null | null | null | faro/utils.py | cgiraldo/FARO | aa599fe8eebb489fe032549ec52771574a6d04bd | [
"MIT"
] | null | null | null | import re
import gensim.utils as gensim_utils
def normalize_text_proximity(message):
""" Clean text of dots between words
Keyword arguments:
message -- a plain sentence or paragraph
"""
sent = message.lower()
sent = sent.replace("á", "a")
sent = sent.replace("é", "e")
sent = sen... | 24.017413 | 70 | 0.46028 | 1,160 | 9,655 | 3.810345 | 0.091379 | 0.065611 | 0.076923 | 0.111765 | 0.789367 | 0.74638 | 0.721719 | 0.69638 | 0.655882 | 0.608597 | 0 | 0.06251 | 0.352149 | 9,655 | 401 | 71 | 24.077307 | 0.644125 | 0.083273 | 0 | 0.577855 | 0 | 0 | 0.138493 | 0.002871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020761 | false | 0 | 0.00692 | 0 | 0.048443 | 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 |
adb376c4779c93a08c2bf6100553c99275ca06ea | 6,077 | py | Python | examples/hand_pose_estimation/processors_keypoints.py | ManuelMeder/paz | 6de73c0a99e0f9c7233c2797eebba2bb01631e6c | [
"MIT"
] | null | null | null | examples/hand_pose_estimation/processors_keypoints.py | ManuelMeder/paz | 6de73c0a99e0f9c7233c2797eebba2bb01631e6c | [
"MIT"
] | null | null | null | examples/hand_pose_estimation/processors_keypoints.py | ManuelMeder/paz | 6de73c0a99e0f9c7233c2797eebba2bb01631e6c | [
"MIT"
] | null | null | null | import numpy as np
from backend_keypoints import create_score_maps, extract_2D_keypoints
from backend_keypoints import crop_image_from_coordinates, extract_keypoints
from backend_keypoints import crop_image_from_mask, extract_hand_segment
from backend_keypoints import extract_bounding_box, find_max_location
from backe... | 31.984211 | 80 | 0.70413 | 705 | 6,077 | 5.689362 | 0.18156 | 0.047868 | 0.038394 | 0.05834 | 0.328596 | 0.212665 | 0.158065 | 0.135378 | 0.108701 | 0.108701 | 0 | 0.010377 | 0.222972 | 6,077 | 189 | 81 | 32.153439 | 0.839051 | 0.170479 | 0 | 0.23 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.11 | 0.12 | 0.67 | 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 |
adb5fa9a4046aad685ec8217a10885613f798277 | 56 | py | Python | devday/sponsoring/__init__.py | jenslauterbach/devday_website | a827c9237e656842542eff07ec9fa7b39716a0ee | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 6 | 2018-09-30T20:18:01.000Z | 2020-03-12T09:03:38.000Z | devday/sponsoring/__init__.py | jenslauterbach/devday_website | a827c9237e656842542eff07ec9fa7b39716a0ee | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 260 | 2018-09-30T14:17:57.000Z | 2022-03-04T13:48:34.000Z | devday/sponsoring/__init__.py | jenslauterbach/devday_website | a827c9237e656842542eff07ec9fa7b39716a0ee | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 9 | 2018-09-30T13:17:21.000Z | 2020-10-03T12:55:05.000Z | default_app_config = 'sponsoring.apps.SponsoringConfig'
| 28 | 55 | 0.857143 | 6 | 56 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 56 | 1 | 56 | 56 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
adcc36ffc2e2e8f7a5b13fe702db8dab22da84df | 381 | py | Python | megalinter/tests/test_megalinter/linters/rust_clippy_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | null | null | null | megalinter/tests/test_megalinter/linters/rust_clippy_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | 37 | 2021-05-12T06:28:04.000Z | 2022-03-31T10:14:51.000Z | megalinter/tests/test_megalinter/linters/rust_clippy_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
"""
Unit tests for RUST linter clippy
This class has been automatically generated by .automation/build.py, please do not update it manually
"""
from unittest import TestCase
from megalinter.tests.test_megalinter.LinterTestRoot import LinterTestRoot
class rust_clippy_test(TestCase, LinterTest... | 25.4 | 101 | 0.784777 | 50 | 381 | 5.88 | 0.72 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003058 | 0.141732 | 381 | 14 | 102 | 27.214286 | 0.896024 | 0.414698 | 0 | 0 | 1 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ade3eb7e1347229abd0cf82b50e4a088e04ffa76 | 543 | py | Python | pacote-download/Python/modulo01/python01/Aula08.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | pacote-download/Python/modulo01/python01/Aula08.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | pacote-download/Python/modulo01/python01/Aula08.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | # ------------------------------- UTILIZANDO MODULOS - AULA 08 -------------------------------
# BIBLIOTECA MATH
#from math import sqrt
#num = int(input('Digite um Numero: '))
#raiz = sqrt(num)
#print('O Valor da raiz de {} é: {:.2f}'.format(num, raiz))
# BIBLIOTECA RANDOM
#import random
# num = random.random(... | 20.884615 | 118 | 0.604052 | 73 | 543 | 4.465753 | 0.671233 | 0.042945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.160221 | 543 | 25 | 119 | 21.72 | 0.697368 | 0.78453 | 0 | 0 | 0 | 0 | 0.247619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
adf09047622763f9323976214e678f90e9ed8ff9 | 1,708 | py | Python | project_name/urls.py | rafael-rpa/django-auth-extension-boilerplate | 2fba1f4dc6a14da525c93303e86934682f4bfcbc | [
"MIT"
] | 1 | 2017-04-26T10:13:34.000Z | 2017-04-26T10:13:34.000Z | project_name/urls.py | rafael-rpa/django-auth-extension-boilerplate | 2fba1f4dc6a14da525c93303e86934682f4bfcbc | [
"MIT"
] | null | null | null | project_name/urls.py | rafael-rpa/django-auth-extension-boilerplate | 2fba1f4dc6a14da525c93303e86934682f4bfcbc | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.conf.urls import include, url
from django.contrib import admin
from auth_extension import views as auth_views
from django.contrib.auth.views import login, logout, password_reset, password_reset_done, password_reset_confirm, password_reset_complete
from django.conf im... | 55.096774 | 276 | 0.730094 | 237 | 1,708 | 5.050633 | 0.248945 | 0.21721 | 0.113617 | 0.125313 | 0.061821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008997 | 0.088993 | 1,708 | 30 | 277 | 56.933333 | 0.760283 | 0 | 0 | 0 | 0 | 0.045455 | 0.394614 | 0.223653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0.318182 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
adf6daa9b589cfc3315f30adb8aabf6d767de08b | 808 | py | Python | catalyst/dl/callbacks/metrics/__init__.py | TeAmP0is0N/catalyst | 445e366266196a2f1076cc7fa2438d66dfa58c14 | [
"Apache-2.0"
] | 1 | 2020-09-24T00:34:06.000Z | 2020-09-24T00:34:06.000Z | catalyst/dl/callbacks/metrics/__init__.py | TeAmP0is0N/catalyst | 445e366266196a2f1076cc7fa2438d66dfa58c14 | [
"Apache-2.0"
] | null | null | null | catalyst/dl/callbacks/metrics/__init__.py | TeAmP0is0N/catalyst | 445e366266196a2f1076cc7fa2438d66dfa58c14 | [
"Apache-2.0"
] | 1 | 2020-09-24T00:34:07.000Z | 2020-09-24T00:34:07.000Z | # flake8: noqa
from catalyst.dl.callbacks.metrics.accuracy import (
AccuracyCallback,
MultiLabelAccuracyCallback,
)
from catalyst.dl.callbacks.metrics.auc import AUCCallback
from catalyst.dl.callbacks.metrics.cmc import CMCScoreCallback
from catalyst.dl.callbacks.metrics.dice import (
DiceCallback,
Mul... | 27.862069 | 66 | 0.804455 | 76 | 808 | 8.513158 | 0.421053 | 0.148377 | 0.173107 | 0.284389 | 0.370943 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007082 | 0.126238 | 808 | 28 | 67 | 28.857143 | 0.909348 | 0.014851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.32 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
adff3e929b131603bc3d8d375940f959a87b03cb | 138 | py | Python | Exe22.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | Exe22.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | Exe22.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | f=float(input("Digite a temperatura na escala Farenheit: "))
celsius=5/9*(f-32)
print("A temperatura",f,"ºF, Em Célsius é: ",celsius,"ºC") | 46 | 60 | 0.702899 | 24 | 138 | 4.041667 | 0.791667 | 0.247423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.094203 | 138 | 3 | 61 | 46 | 0.744 | 0 | 0 | 0 | 0 | 0 | 0.539568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc2ade7603e85b28fb608daaa69727e893191a3a | 194 | py | Python | setup.py | khuong507/bluemix-cloudbase-init | 10628014687c5f0cfb183f5e8f182856078fa5fa | [
"Apache-2.0"
] | 3 | 2019-05-30T02:41:17.000Z | 2019-11-11T09:59:07.000Z | setup.py | khuong507/bluemix-cloudbase-init | 10628014687c5f0cfb183f5e8f182856078fa5fa | [
"Apache-2.0"
] | 1 | 2021-02-05T14:51:01.000Z | 2021-02-11T08:37:31.000Z | setup.py | khuong507/bluemix-cloudbase-init | 10628014687c5f0cfb183f5e8f182856078fa5fa | [
"Apache-2.0"
] | 2 | 2017-08-10T13:44:23.000Z | 2019-12-19T15:08:52.000Z | from distutils.core import setup
setup(name='Bluemix',
version='0.1',
description='A bluemix datasource to be used with cloudbase-init',
packages=['bluemix', 'bluemix.conf'])
| 27.714286 | 72 | 0.685567 | 25 | 194 | 5.32 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 0.180412 | 194 | 6 | 73 | 32.333333 | 0.823899 | 0 | 0 | 0 | 0 | 0 | 0.412371 | 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 |
70b214dd70a108da0b34f14109cdc980a1bad769 | 166 | py | Python | run.py | envy7/project-dream-team-three | ebadf13ee0d76bd924bd1ba639d448f8e28ac01c | [
"Unlicense"
] | null | null | null | run.py | envy7/project-dream-team-three | ebadf13ee0d76bd924bd1ba639d448f8e28ac01c | [
"Unlicense"
] | null | null | null | run.py | envy7/project-dream-team-three | ebadf13ee0d76bd924bd1ba639d448f8e28ac01c | [
"Unlicense"
] | null | null | null | import os
from app import create_app
config_name = os.getenv('FLASK_CONFIG')
app = create_app('development')
if __name__ == '__main__':
app.run(host='0.0.0.0')
| 18.444444 | 39 | 0.710843 | 27 | 166 | 3.925926 | 0.555556 | 0.056604 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.138554 | 166 | 8 | 40 | 20.75 | 0.713287 | 0 | 0 | 0 | 0 | 0 | 0.228916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
70b25fd80453311c6bb986cd2ea2ef428837a8d3 | 30,392 | py | Python | tests/test_utils.py | jbradberry/universe | 109261f75c49435d118cf9c5238124466a03d2d3 | [
"MIT"
] | null | null | null | tests/test_utils.py | jbradberry/universe | 109261f75c49435d118cf9c5238124466a03d2d3 | [
"MIT"
] | 24 | 2020-04-14T20:32:21.000Z | 2021-08-03T13:29:45.000Z | tests/test_utils.py | jbradberry/universe | 109261f75c49435d118cf9c5238124466a03d2d3 | [
"MIT"
] | 3 | 2016-10-28T19:20:30.000Z | 2021-02-28T03:19:49.000Z | import unittest
from universe import components, engine, utils
class PlanetProductionTestCase(unittest.TestCase):
def test_values(self):
manager = engine.Manager()
manager.register_entity_type('species', [
components.SpeciesProductionComponent(),
])
manager.register_en... | 30.240796 | 75 | 0.274184 | 3,908 | 30,392 | 2.122057 | 0.043501 | 0.009044 | 0.006029 | 0.012058 | 0.063427 | 0.032799 | 0.022911 | 0.022911 | 0.022911 | 0.022911 | 0 | 0.49008 | 0.517406 | 30,392 | 1,004 | 76 | 30.270916 | 0.075339 | 0.001152 | 0 | 0.018109 | 0 | 0 | 0.012024 | 0 | 0 | 0 | 0 | 0 | 0.002012 | 1 | 0.002012 | false | 0 | 0.002012 | 0 | 0.006036 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
70ea7b65b45e04018fd11eba650c698a19bfac5d | 556 | py | Python | build.py | MolGL/MolGL | e83b3a1edc83844368a8515b1324498aed418c7a | [
"Apache-2.0"
] | 2 | 2016-11-15T17:06:55.000Z | 2017-02-16T20:31:02.000Z | build.py | MolGL/MolGL | e83b3a1edc83844368a8515b1324498aed418c7a | [
"Apache-2.0"
] | 8 | 2016-11-04T05:51:51.000Z | 2016-11-18T06:44:30.000Z | build.py | MolGL/MolGL | e83b3a1edc83844368a8515b1324498aed418c7a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ————————————————————————————————————————————————————————————————————————————
# Copyright © 2014 - 2016, Sequømics Research, All rights reserved.
# Copyright © 2014 - 2016, Sequømics Corporation. All rights reserved.
# —————————————————————————————————————————————————————... | 50.545455 | 78 | 0.413669 | 50 | 556 | 9.2 | 0.72 | 0.043478 | 0.06087 | 0.078261 | 0.117391 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038229 | 0.106115 | 556 | 10 | 79 | 55.6 | 0.424547 | 0.965827 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
70f6b613f46f9572a127a9da271c9e2dc28fc894 | 3,090 | py | Python | gfauto/gfauto/test_util.py | KishkinJ10/graphicsfuzz | 673f9bba2b02608b26edef786095007949c00675 | [
"Apache-2.0"
] | 519 | 2018-09-25T12:55:31.000Z | 2022-03-30T17:26:53.000Z | gfauto/gfauto/test_util.py | KishkinJ10/graphicsfuzz | 673f9bba2b02608b26edef786095007949c00675 | [
"Apache-2.0"
] | 544 | 2018-09-25T08:54:28.000Z | 2022-03-07T16:04:51.000Z | gfauto/gfauto/test_util.py | KishkinJ10/graphicsfuzz | 673f9bba2b02608b26edef786095007949c00675 | [
"Apache-2.0"
] | 139 | 2018-09-26T05:11:20.000Z | 2022-02-15T09:14:27.000Z | # -*- coding: utf-8 -*-
# Copyright 2019 The GraphicsFuzz Project Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 32.1875 | 119 | 0.772168 | 471 | 3,090 | 4.766454 | 0.246285 | 0.068597 | 0.048998 | 0.037862 | 0.344321 | 0.207127 | 0.170601 | 0.157238 | 0.130958 | 0.107795 | 0 | 0.003788 | 0.145631 | 3,090 | 95 | 120 | 32.526316 | 0.846591 | 0.280259 | 0 | 0 | 0 | 0 | 0.045826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.071429 | 0.261905 | 0.738095 | 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 |
cb01a78dea1ba413678bdaa15b5fb376d5cfbcae | 168 | py | Python | pydundas/tests/rest/test_project.py | autonopy/pydundas | 66fa46d593d3a2f9f3da7a0220f8a7dc495e2758 | [
"MIT"
] | 4 | 2019-04-09T05:30:10.000Z | 2022-01-26T14:45:52.000Z | pydundas/tests/rest/test_project.py | autonopy/pydundas | 66fa46d593d3a2f9f3da7a0220f8a7dc495e2758 | [
"MIT"
] | 4 | 2019-04-08T13:00:56.000Z | 2022-01-27T06:46:33.000Z | pydundas/tests/rest/test_project.py | autonopy/pydundas | 66fa46d593d3a2f9f3da7a0220f8a7dc495e2758 | [
"MIT"
] | 3 | 2019-04-08T07:07:12.000Z | 2022-01-26T14:46:00.000Z | import unittest
from pydundas import Api
class TestProject(unittest.TestCase):
def test_no_syntax_error(self):
self.assertIsNotNone(Api(None).project())
| 18.666667 | 49 | 0.755952 | 21 | 168 | 5.904762 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 168 | 8 | 50 | 21 | 0.873239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cb0302f31a96c3dde5eb9872c52023093a2d18f1 | 516 | py | Python | odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py | Saran440/nxpo | 769bbebc0df2e12acbf5b1e398e34b3405d53c50 | [
"BSL-1.0"
] | null | null | null | odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py | Saran440/nxpo | 769bbebc0df2e12acbf5b1e398e34b3405d53c50 | [
"BSL-1.0"
] | null | null | null | odoo/custom/src/private/nxpo_budget_revision_monitoring_project/report/budget_monitor_revision_report.py | Saran440/nxpo | 769bbebc0df2e12acbf5b1e398e34b3405d53c50 | [
"BSL-1.0"
] | null | null | null | # Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class BudgetMonitorRevisionReport(models.Model):
_inherit = "budget.monitor.revision.report"
project_id = fields.Many2one(comodel_name="res.project")
... | 32.25 | 78 | 0.722868 | 67 | 516 | 5.328358 | 0.656716 | 0.201681 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015982 | 0.151163 | 516 | 15 | 79 | 34.4 | 0.799087 | 0.226744 | 0 | 0 | 0 | 0 | 0.138889 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cb4daf0e2bd9267bcf8579574005098133b4355c | 376 | py | Python | tests/test_transform_identity.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 5 | 2016-04-04T16:49:11.000Z | 2020-10-12T13:00:06.000Z | tests/test_transform_identity.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 3 | 2016-04-08T16:13:54.000Z | 2022-02-03T15:23:48.000Z | tests/test_transform_identity.py | dlshriver/pinq | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | null | null | null | import unittest
from pinq.transforms import identity
class predicate_true_tests(unittest.TestCase):
def test_identity_int(self):
self.assertEqual(identity(123), 123)
def test_identity_str(self):
self.assertEqual(identity("apple"), "apple")
def test_identity_list(self):
self.asse... | 25.066667 | 72 | 0.710106 | 45 | 376 | 5.755556 | 0.488889 | 0.081081 | 0.173745 | 0.312741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057508 | 0.167553 | 376 | 14 | 73 | 26.857143 | 0.769968 | 0 | 0 | 0 | 0 | 0 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.666667 | 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 |
cb67393408279dfc1bb2c5b77e787a0b82d4c97b | 476 | py | Python | newspaper/newspaper/news/managers.py | luisfer85/newspaper | 7829eede4ef878562e54ee591bb61862f6fd6ac8 | [
"Apache-2.0"
] | null | null | null | newspaper/newspaper/news/managers.py | luisfer85/newspaper | 7829eede4ef878562e54ee591bb61862f6fd6ac8 | [
"Apache-2.0"
] | null | null | null | newspaper/newspaper/news/managers.py | luisfer85/newspaper | 7829eede4ef878562e54ee591bb61862f6fd6ac8 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from django.db import models
from django.db.models.query import QuerySet
class BaseNewsQuerySet(QuerySet):
def published(self):
return self.filter(publish_date__lte=datetime.now()).order_by('publish_date')
class BaseNewsManager(models.Manager):
def get_... | 23.8 | 86 | 0.714286 | 59 | 476 | 5.59322 | 0.457627 | 0.090909 | 0.072727 | 0.133333 | 0.157576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193277 | 476 | 19 | 87 | 25.052632 | 0.859375 | 0 | 0 | 0.181818 | 0 | 0 | 0.026258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.272727 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
cbc2172760f370c3b4d7c60769a266040ec53d06 | 442 | py | Python | BITs/2014/Abdrahmanova_G_I/task_3_1.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | BITs/2014/Abdrahmanova_G_I/task_3_1.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | BITs/2014/Abdrahmanova_G_I/task_3_1.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | #Задача 3. Вариант 1.
#Напишите программу, которая выводит имя "Иво Ливи", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире.
name=input('Герой нашей сегодняшней программы - Иво Ливи. \nПод каким же именем мы знаем этого человека?... | 55.25 | 193 | 0.757919 | 67 | 442 | 5 | 0.820896 | 0.062687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.144796 | 442 | 8 | 194 | 55.25 | 0.862434 | 0.540724 | 0 | 0 | 0 | 0 | 0.695 | 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 |
cbd9e2d20a7a2ee57818c7e4187d5b9ba2868f18 | 598 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | 3 | 2016-06-24T21:14:37.000Z | 2017-03-07T05:36:33.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | null | null | null | import os
STATIC_FOLDERS = (
'{{cookiecutter.repo_name}}/common/static',
'{{cookiecutter.repo_name}}/users/static',
)
# Muffin Plugins
PLUGINS = (
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
)
# Plugins configurations
SESSION_SECRET = 'SecretHere'
SESSION_LOGIN_URL = '/users/signin/'
JI... | 22.148148 | 97 | 0.70903 | 63 | 598 | 6.460317 | 0.444444 | 0.235872 | 0.29484 | 0.132678 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.12709 | 598 | 26 | 98 | 23 | 0.775862 | 0.061873 | 0 | 0 | 0 | 0 | 0.584229 | 0.448029 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1daff2d7a44c6c02cc6f43b03cc6ccde6dd9165f | 1,748 | py | Python | assets/src/ba_data/python/bastd/mapdata/rampage.py | Benefit-Zebra/ballistica | eb85df82cff22038e74a2d93abdcbe9cd755d782 | [
"MIT"
] | 317 | 2020-04-04T00:33:10.000Z | 2022-03-28T01:07:09.000Z | assets/src/ba_data/python/bastd/mapdata/rampage.py | Alshahriah/ballistica | 326f6677a0118667e93ce9034849622ebef706fa | [
"MIT"
] | 315 | 2020-04-04T22:33:10.000Z | 2022-03-31T22:50:02.000Z | assets/src/ba_data/python/bastd/mapdata/rampage.py | Alshahriah/ballistica | 326f6677a0118667e93ce9034849622ebef706fa | [
"MIT"
] | 97 | 2020-04-04T01:32:17.000Z | 2022-03-16T19:02:59.000Z | # Released under the MIT License. See LICENSE for details.
#
# This file was automatically generated from "rampage.ma"
# pylint: disable=all
points = {}
# noinspection PyDictCreation
boxes = {}
boxes['area_of_interest_bounds'] = (0.3544110667, 5.616383286,
-4.066055072) + (0.0, 0.0,... | 52.969697 | 77 | 0.638444 | 230 | 1,748 | 4.773913 | 0.469565 | 0.034608 | 0.032787 | 0.032787 | 0.162113 | 0.112933 | 0.052823 | 0 | 0 | 0 | 0 | 0.487685 | 0.187071 | 1,748 | 32 | 78 | 54.625 | 0.285011 | 0.091533 | 0 | 0 | 1 | 0 | 0.121997 | 0.014539 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1dc2f03665e1c48e0dda7a55e8fc1d2784bcdfa3 | 6,513 | py | Python | tests/test_models.py | hramezani/django-voting | f07707cb84765be76f7e9e985dd0523842b02ae7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_models.py | hramezani/django-voting | f07707cb84765be76f7e9e985dd0523842b02ae7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_models.py | hramezani/django-voting | f07707cb84765be76f7e9e985dd0523842b02ae7 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.test import TestCase
from voting.models import Vote
from test_app.models import Item
# Basic voting ###############################################################
class BasicVotingTests(TestCase):
... | 41.484076 | 99 | 0.595425 | 896 | 6,513 | 4.198661 | 0.116071 | 0.134503 | 0.131047 | 0.161882 | 0.766348 | 0.729399 | 0.715843 | 0.665338 | 0.611643 | 0.598086 | 0 | 0.029494 | 0.234761 | 6,513 | 156 | 100 | 41.75 | 0.725321 | 0.007063 | 0 | 0.418605 | 0 | 0 | 0.051561 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 1 | 0.139535 | false | 0 | 0.03876 | 0 | 0.193798 | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ddf116bdca6613e7a3cef9650883687a600fa9d | 179 | py | Python | dmutils/__init__.py | robot2051/dto-digitalmarketplace-utils | e581be6396c12473697398b0ec9d253c564a324b | [
"MIT"
] | null | null | null | dmutils/__init__.py | robot2051/dto-digitalmarketplace-utils | e581be6396c12473697398b0ec9d253c564a324b | [
"MIT"
] | null | null | null | dmutils/__init__.py | robot2051/dto-digitalmarketplace-utils | e581be6396c12473697398b0ec9d253c564a324b | [
"MIT"
] | null | null | null | from . import logging, config, proxy_fix, formats, request_id
from .flask_init import init_app, init_frontend_app, init_manager
import flask_featureflags
__version__ = '24.4.1'
| 25.571429 | 65 | 0.810056 | 27 | 179 | 4.925926 | 0.703704 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.117318 | 179 | 6 | 66 | 29.833333 | 0.816456 | 0 | 0 | 0 | 0 | 0 | 0.03352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
1deb8efbdd96d38511ba7695b577776dc1d7e9c2 | 149 | py | Python | data/hospital_level/raw/hifld_hospital/download.py | csinva/covid-19-analysis | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | 2 | 2020-03-24T16:50:02.000Z | 2020-03-24T17:00:50.000Z | data_new/hospital_level/raw/hifld_hospital/download.py | rahul263-stack/covid19-severity-prediction | f581adb2fccb12d5ab3f3c59ee120f484703edf5 | [
"MIT"
] | 1 | 2020-03-28T15:34:28.000Z | 2020-03-28T19:22:27.000Z | data/hospital_level/raw/hifld_hospital/download.py | Yu-Group/covid-19-ventilator-demand-prediction | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
os.system('wget \
https://opendata.arcgis.com/datasets/6ac5e325468c4cb9b905f1728d6fbf0f_0.csv \
-O hifld_hospital.csv')
| 24.833333 | 77 | 0.791946 | 20 | 149 | 5.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.060403 | 149 | 5 | 78 | 29.8 | 0.678571 | 0.114094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
380600494572f949b77592c439a21526f70f73b6 | 123 | py | Python | contact/urls.py | BobsProgrammingAcademy/Portfolio-Website-Deployment | e3122f6fa0376f64b1580e03b8cb43da6dc85a1a | [
"MIT"
] | null | null | null | contact/urls.py | BobsProgrammingAcademy/Portfolio-Website-Deployment | e3122f6fa0376f64b1580e03b8cb43da6dc85a1a | [
"MIT"
] | null | null | null | contact/urls.py | BobsProgrammingAcademy/Portfolio-Website-Deployment | e3122f6fa0376f64b1580e03b8cb43da6dc85a1a | [
"MIT"
] | null | null | null | from django.urls import path
from .views import ContactListView
urlpatterns = [
path('', ContactListView.as_view()),
] | 20.5 | 40 | 0.739837 | 14 | 123 | 6.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 123 | 6 | 41 | 20.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
38070ca03e30ff02df559993d8efdc9637c42c89 | 4,610 | py | Python | src/sentry/integrations/github/client.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | 1 | 2018-12-04T12:57:00.000Z | 2018-12-04T12:57:00.000Z | src/sentry/integrations/github/client.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | 1 | 2021-05-09T11:43:43.000Z | 2021-05-09T11:43:43.000Z | src/sentry/integrations/github/client.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from datetime import datetime
from sentry.integrations.github.utils import get_jwt
from sentry.integrations.client import ApiClient
class GitHubClientMixin(ApiClient):
allow_redirects = True
base_url = 'https://api.github.com'
def get_jwt(self):
return ge... | 32.237762 | 89 | 0.58872 | 537 | 4,610 | 4.931099 | 0.270019 | 0.060423 | 0.058912 | 0.05287 | 0.314199 | 0.257931 | 0.236782 | 0.163897 | 0.066465 | 0.066465 | 0 | 0.00212 | 0.283731 | 4,610 | 142 | 90 | 32.464789 | 0.799818 | 0.122126 | 0 | 0.151515 | 0 | 0 | 0.147787 | 0.051013 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.20202 | false | 0 | 0.040404 | 0.141414 | 0.474747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
382763467eeacdcf8102a2eb884ff148f1377e58 | 269 | py | Python | dataladmetadatamodel/text.py | yarikoptic/metadata-model | fac75a12f1c1ceaf111372dc1d22c8f39ce1481d | [
"MIT"
] | null | null | null | dataladmetadatamodel/text.py | yarikoptic/metadata-model | fac75a12f1c1ceaf111372dc1d22c8f39ce1481d | [
"MIT"
] | null | null | null | dataladmetadatamodel/text.py | yarikoptic/metadata-model | fac75a12f1c1ceaf111372dc1d22c8f39ce1481d | [
"MIT"
] | null | null | null | """
Instances of the Text class just contain
text. Their main use is as dummy-element
during model development.
"""
from dataclasses import dataclass
from dataladmetadatamodel.connector import ConnectedObject
@dataclass
class Text(ConnectedObject):
content: str
| 19.214286 | 58 | 0.799257 | 33 | 269 | 6.515152 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144981 | 269 | 13 | 59 | 20.692308 | 0.934783 | 0.39777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.