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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e21ee7427997f0bb676f02cdf4a2c28027d8026 | 355 | py | Python | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | 6 | 2020-10-28T12:02:10.000Z | 2022-01-25T00:13:00.000Z | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | null | null | null | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | null | null | null | import os
PROJECT_PATH = os.path.dirname(os.path.dirname(__file__))
DATA_PATH = os.path.join(PROJECT_PATH,'Datasets')
MODELS_PATH = os.path.join(PROJECT_PATH,'Models')
RESULT_FILE_PATH = os.path.join(PROJECT_PATH,'Results')
CALIBRATED_MODELS_PATH = os.path.join(PROJECT_PATH,'Models')
SAVED_SEG_MAPS = os.path.join(P... | 32.272727 | 66 | 0.797183 | 55 | 355 | 4.8 | 0.327273 | 0.159091 | 0.189394 | 0.32197 | 0.549242 | 0.469697 | 0.280303 | 0.280303 | 0 | 0 | 0 | 0 | 0.064789 | 355 | 11 | 66 | 32.272727 | 0.795181 | 0 | 0 | 0 | 0 | 0 | 0.132022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e26086aba7603148c273d61c7a69ca661694730 | 205 | py | Python | quorachallenge/exemplar.py | TonyFlury/QuoraChallenge | df4146787e871fced196f2e22f31d0ef5b1f1ad9 | [
"MIT"
] | null | null | null | quorachallenge/exemplar.py | TonyFlury/QuoraChallenge | df4146787e871fced196f2e22f31d0ef5b1f1ad9 | [
"MIT"
] | 3 | 2019-10-18T09:07:04.000Z | 2019-10-18T11:00:01.000Z | quorachallenge/exemplar.py | TonyFlury/QuoraChallenge | df4146787e871fced196f2e22f31d0ef5b1f1ad9 | [
"MIT"
] | null | null | null | def func(a,b):
if a < 0 and b < 0:
raise ValueError
if a < 0 or b < 0:
return 0
if a == 0 and b == 0:
return 1
if a == 0 or b == 0:
return 0
return a + b | 20.5 | 25 | 0.42439 | 39 | 205 | 2.230769 | 0.307692 | 0.137931 | 0.183908 | 0.16092 | 0.551724 | 0.551724 | 0.344828 | 0.344828 | 0 | 0 | 0 | 0.101852 | 0.473171 | 205 | 10 | 26 | 20.5 | 0.703704 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e29d55763438496cb979931a67e9e766a90599d | 1,529 | py | Python | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | null | null | null | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | null | null | null | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | 1 | 2018-03-03T16:06:54.000Z | 2018-03-03T16:06:54.000Z | class ActualValue:
def __init__(self, actual_value):
self.__actual_value = actual_value
def should(self, predicate):
if predicate(self.__actual_value):
return ''
else:
return 'Predicate not true of %s' % self.__actual_value
def should_equal(self, e... | 33.23913 | 87 | 0.606279 | 172 | 1,529 | 4.976744 | 0.215116 | 0.205607 | 0.21028 | 0.107477 | 0.434579 | 0.434579 | 0.434579 | 0.350467 | 0.170561 | 0.170561 | 0 | 0.001878 | 0.303466 | 1,529 | 45 | 88 | 33.977778 | 0.801878 | 0 | 0 | 0.236842 | 0 | 0 | 0.060688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e2ad0c9668e9013681310d26a6aea715a24b95b | 8,884 | py | Python | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | 1 | 2021-02-24T21:50:18.000Z | 2021-02-24T21:50:18.000Z | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | # Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN
from to_python.core.types import FunctionType, \
FunctionArgument, \
FunctionArgumentValues, \
FunctionReturnTypes, \
FunctionSignature, \
FunctionDoc, \
EventData, \
CompoundEventData
DUMP_PARTIAL = [
CompoundEventData(
serv... | 37.327731 | 344 | 0.366276 | 505 | 8,884 | 6.374257 | 0.291089 | 0.055918 | 0.067102 | 0.081081 | 0.576266 | 0.563218 | 0.487418 | 0.448276 | 0.426219 | 0.410376 | 0 | 0.000259 | 0.566074 | 8,884 | 237 | 345 | 37.485232 | 0.83476 | 0.005741 | 0 | 0.672489 | 1 | 0.0131 | 0.195674 | 0.006002 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004367 | 0 | 0.004367 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
8e3d4fcee238ceff7811d96519efed30ed465e26 | 261 | py | Python | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | 1 | 2020-03-09T13:38:55.000Z | 2020-03-09T13:38:55.000Z | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | null | null | null | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | null | null | null | # Faça um prgrama que leia um numero inteiro de 1 a 10 no teclado e mostre se você acertou
# ou o número digitado é maior ou meor.
# Quando você acertar o programa deve ser finalizado
from randon import randint
aleatorio = randint(1,10)
print(aleatorio)
if | 29 | 91 | 0.766284 | 46 | 261 | 4.347826 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.195402 | 261 | 9 | 92 | 29 | 0.92381 | 0.681992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 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 | 0 | 0 | 2 |
8e4d2378510bf7404cee1326167ef3d70dae42b8 | 2,383 | py | Python | Norm.py | GeospatialDaryl/Norm | 51e3427e230be89bdedc1c789c1ddad918149e9f | [
"MIT"
] | null | null | null | Norm.py | GeospatialDaryl/Norm | 51e3427e230be89bdedc1c789c1ddad918149e9f | [
"MIT"
] | null | null | null | Norm.py | GeospatialDaryl/Norm | 51e3427e230be89bdedc1c789c1ddad918149e9f | [
"MIT"
] | null | null | null | import os
import subprocess
import sys
folderSRT = 'C:\\Users\\repos\\7910_Subliminal\\SRT\\'
lenS1 = 22 # 1 - 22
lenS2 = 22 # 23 - 44
lenS3 = 25 # 45 - 69
lenS4 = 26 # 70 - 95
lenS5 = 26 # 96 - 121
lenS6 = 25 # 122 - 146
lenS7 = 22 # 147 - 168
lenS8 = 26 # 169 - 194
lenS9 = 27 # 195 - 221 *double episode*
len... | 28.369048 | 109 | 0.51112 | 482 | 2,383 | 2.524896 | 0.278008 | 0.019721 | 0.029581 | 0.039441 | 0.471652 | 0.448644 | 0.448644 | 0.448644 | 0.448644 | 0.448644 | 0 | 0.365629 | 0.272346 | 2,383 | 83 | 110 | 28.710843 | 0.336217 | 0.090222 | 0 | 0.09375 | 0 | 0 | 0.060465 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.046875 | 0 | 0.109375 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e4ef574544502590c24383501c76b2bcfc69ec0 | 279 | py | Python | print_backwards.py | brupoon/mustachedNinja | 7a44167fa2655ffa206b7f68808efc979b2b6e16 | [
"MIT"
] | null | null | null | print_backwards.py | brupoon/mustachedNinja | 7a44167fa2655ffa206b7f68808efc979b2b6e16 | [
"MIT"
] | null | null | null | print_backwards.py | brupoon/mustachedNinja | 7a44167fa2655ffa206b7f68808efc979b2b6e16 | [
"MIT"
] | null | null | null | #print_backwards
# @brupoon 2014
def print_backwards(string):
index = len(string)
while index > 0:
letter = string[index-1]
print(letter)
index = index - 1
if __name__ == '__main__':
print_backwards("antidisestablishmentarianism") | 23.25 | 51 | 0.630824 | 29 | 279 | 5.689655 | 0.551724 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034314 | 0.268817 | 279 | 12 | 51 | 23.25 | 0.77451 | 0.103943 | 0 | 0 | 0 | 0 | 0.151261 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e5060c6fbeb55661750affb00d02656e4130063 | 970 | py | Python | fiblary3/common/net.py | epenet/fiblary | e332289320857c837b7e68f8d969e2338280116c | [
"Apache-2.0"
] | 8 | 2015-04-05T22:12:57.000Z | 2021-12-01T22:50:07.000Z | fiblary3/common/net.py | epenet/fiblary | e332289320857c837b7e68f8d969e2338280116c | [
"Apache-2.0"
] | 2 | 2020-09-05T13:03:02.000Z | 2022-02-13T14:06:33.000Z | fiblary3/common/net.py | epenet/fiblary | e332289320857c837b7e68f8d969e2338280116c | [
"Apache-2.0"
] | 7 | 2020-07-18T15:20:10.000Z | 2022-03-31T06:18:43.000Z | # Copyright 2014 Klaudiusz Staniek
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 26.944444 | 76 | 0.707216 | 139 | 970 | 4.913669 | 0.625899 | 0.087848 | 0.038067 | 0.046852 | 0.064422 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010376 | 0.205155 | 970 | 35 | 77 | 27.714286 | 0.875486 | 0.763918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f3d95f3840b2b76823ff5d706e05c2d4667f29b6 | 19,826 | py | Python | packages/arb-compiler-evm/arbitrum/ast.py | JesseAbram/arbitrum | fc3b96bf165a201d930af65d6ad93777d897e951 | [
"Apache-2.0"
] | 1 | 2021-05-29T11:11:01.000Z | 2021-05-29T11:11:01.000Z | packages/arb-compiler-evm/arbitrum/ast.py | JesseAbram/arbitrum | fc3b96bf165a201d930af65d6ad93777d897e951 | [
"Apache-2.0"
] | 120 | 2021-02-18T07:19:59.000Z | 2022-03-30T12:08:45.000Z | packages/arb-compiler-evm/arbitrum/ast.py | JesseAbram/arbitrum | fc3b96bf165a201d930af65d6ad93777d897e951 | [
"Apache-2.0"
] | 1 | 2020-09-20T19:25:23.000Z | 2020-09-20T19:25:23.000Z | # Copyright 2019, Offchain Labs, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 27.536111 | 87 | 0.59079 | 2,419 | 19,826 | 4.599835 | 0.100041 | 0.040981 | 0.029658 | 0.024445 | 0.520176 | 0.459243 | 0.422666 | 0.374315 | 0.32875 | 0.283005 | 0 | 0.006387 | 0.289216 | 19,826 | 719 | 88 | 27.574409 | 0.78321 | 0.036013 | 0 | 0.494361 | 0 | 0 | 0.048352 | 0.002619 | 0 | 0 | 0 | 0 | 0.005639 | 1 | 0.255639 | false | 0.011278 | 0.003759 | 0.120301 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
f3ecd4d330691845861c24d37aaea5f8c3a8ca9b | 1,502 | py | Python | openr/py/openr/clients/decision_client.py | tejashri29/openrfork1 | ab4ef26993903fe1cf909aeb38701e9ada374c13 | [
"MIT"
] | 6 | 2018-04-29T00:28:03.000Z | 2021-01-18T15:29:41.000Z | openr/py/openr/clients/decision_client.py | tejashri29/openrfork1 | ab4ef26993903fe1cf909aeb38701e9ada374c13 | [
"MIT"
] | null | null | null | openr/py/openr/clients/decision_client.py | tejashri29/openrfork1 | ab4ef26993903fe1cf909aeb38701e9ada374c13 | [
"MIT"
] | 4 | 2018-02-14T20:47:10.000Z | 2019-01-17T08:45:31.000Z | #
# Copyright (c) 2014-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import divi... | 31.957447 | 86 | 0.721704 | 200 | 1,502 | 4.995 | 0.38 | 0.078078 | 0.064064 | 0.084084 | 0.209209 | 0.209209 | 0.143143 | 0.1001 | 0.1001 | 0 | 0 | 0.003373 | 0.210386 | 1,502 | 46 | 87 | 32.652174 | 0.838954 | 0.107856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.269231 | 0.115385 | 0.653846 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6d25dd8315415bc01639dca3ddce639aabe687fe | 3,612 | py | Python | test/dbgen_skew/dbgen-skew.py | xiaomengbai/NestGPU | 7137aac5719fd95847c46b9cf5e8f2267aecfcae | [
"Apache-2.0"
] | 2 | 2021-03-05T05:45:12.000Z | 2021-07-05T08:34:56.000Z | test/dbgen_skew/dbgen-skew.py | xiaomengbai/NestGPU | 7137aac5719fd95847c46b9cf5e8f2267aecfcae | [
"Apache-2.0"
] | null | null | null | test/dbgen_skew/dbgen-skew.py | xiaomengbai/NestGPU | 7137aac5719fd95847c46b9cf5e8f2267aecfcae | [
"Apache-2.0"
] | 2 | 2020-08-27T01:57:49.000Z | 2021-07-05T08:35:03.000Z | #!/usr/bin/python
import sys
import os
import string
import argparse
import math
#Description
#-------------------------------
# This is an script that generates TPC-H skewed data.
#
# To see the parameters use "-h" or "--help".
#
# Run script Example :
# python ./dbgen-skew.py -d ~/workspace/subquery/test/tables/ -t... | 25.8 | 106 | 0.614895 | 481 | 3,612 | 4.534304 | 0.316008 | 0.050436 | 0.01834 | 0.020174 | 0.212288 | 0.154058 | 0.154058 | 0.047685 | 0.047685 | 0.047685 | 0 | 0.005447 | 0.237542 | 3,612 | 139 | 107 | 25.985612 | 0.786492 | 0.237818 | 0 | 0.03125 | 1 | 0 | 0.181785 | 0.009218 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078125 | null | null | 0.171875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d27de3ea1df20faf1119ca0ed0da09f458bca8f | 32,185 | wsgi | Python | databrowse_wsgi/databrowse.wsgi | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 3 | 2016-09-20T07:04:09.000Z | 2018-07-17T17:31:21.000Z | databrowse_wsgi/databrowse.wsgi | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 19 | 2016-10-25T07:05:28.000Z | 2018-08-07T23:18:16.000Z | databrowse_wsgi/databrowse.wsgi | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 2 | 2016-10-28T00:12:42.000Z | 2016-10-28T00:18:03.000Z | #!/usr/bin/env python
###############################################################################
## Databrowse: An Extensible Data Management Platform ##
## Copyright (C) 2012-2016 Iowa State University Research Foundation, Inc. ##
## All rights reserved. ... | 54.550847 | 298 | 0.578655 | 3,669 | 32,185 | 5.007632 | 0.181793 | 0.040821 | 0.046372 | 0.029391 | 0.655963 | 0.638491 | 0.614543 | 0.593425 | 0.576716 | 0.553421 | 0 | 0.029345 | 0.252478 | 32,185 | 589 | 299 | 54.643464 | 0.73432 | 0.143576 | 0 | 0.665939 | 0 | 0.048035 | 0.57064 | 0.060157 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.052402 | 0.039301 | null | null | 0.004367 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6d3a17f93af9411f77fe80338222e338fcd3284e | 6,229 | py | Python | client-cli/client_cli/api/client_api.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 3 | 2021-01-12T22:40:30.000Z | 2021-06-09T04:33:19.000Z | client-cli/client_cli/api/client_api.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 12 | 2019-06-04T16:42:19.000Z | 2022-03-06T23:11:47.000Z | client-cli/client_cli/api/client_api.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 1 | 2021-01-12T22:40:10.000Z | 2021-01-12T22:40:10.000Z | """Interface for managing interactions between a client frontend (this CLI) and backend (API)."""
from abc import ABC, abstractmethod
class ClientApi(ABC):
"""Interface for managing interactions between a client frontend (this CLI) and backend (API)."""
@abstractmethod
def is_active(self):
"""
... | 28.972093 | 118 | 0.645529 | 668 | 6,229 | 5.962575 | 0.173653 | 0.098167 | 0.02812 | 0.040171 | 0.549586 | 0.489581 | 0.439869 | 0.42355 | 0.401958 | 0.363294 | 0 | 0 | 0.289453 | 6,229 | 214 | 119 | 29.107477 | 0.89991 | 0.575534 | 0 | 0.479167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.479167 | false | 0 | 0.020833 | 0 | 0.520833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6d3c5b57f422635a9012537f0c3536a9e6c2b607 | 1,821 | py | Python | RobotController.py | Y-miura-ta/Nyanko | 4a6216c68fb727908fa8d296f01dbbb2cbcc2775 | [
"MIT"
] | null | null | null | RobotController.py | Y-miura-ta/Nyanko | 4a6216c68fb727908fa8d296f01dbbb2cbcc2775 | [
"MIT"
] | null | null | null | RobotController.py | Y-miura-ta/Nyanko | 4a6216c68fb727908fa8d296f01dbbb2cbcc2775 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import time
import IK
import DynamixelController as dc
import TimerIMU as ti
import GaitGenerator as gg
# ロボットの関節を直接動かして座標を確認
def posPrint():
pos_list = dc.syncreadPos(dc.DXL_ID_LIST)
pos_leg = np.array([
[pos_list[0], pos_list[1], pos_list[2]],
[pos... | 28.453125 | 102 | 0.551895 | 329 | 1,821 | 2.869301 | 0.255319 | 0.169492 | 0.216102 | 0.237288 | 0.237288 | 0.237288 | 0.237288 | 0.237288 | 0.237288 | 0.237288 | 0 | 0.124457 | 0.241076 | 1,821 | 63 | 103 | 28.904762 | 0.558611 | 0.051071 | 0 | 0.08 | 0 | 0 | 0.025552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.12 | 0 | 0.18 | 0.06 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d444a4f6aefa8f1cb4400d8d79d72be67e0ac06 | 765 | py | Python | prosrs/utility/constants.py | compdyn/ProSRS | d9f8f1992af9ebd8570795ed231ee59cb6901e8b | [
"NCSA"
] | 2 | 2019-03-03T22:32:18.000Z | 2019-03-04T14:51:01.000Z | prosrs/utility/constants.py | compdyn/ProSRS | d9f8f1992af9ebd8570795ed231ee59cb6901e8b | [
"NCSA"
] | null | null | null | prosrs/utility/constants.py | compdyn/ProSRS | d9f8f1992af9ebd8570795ed231ee59cb6901e8b | [
"NCSA"
] | null | null | null | """
Copyright (C) 2016-2019 Chenchao Shou
Licensed under Illinois Open Source License (see the file LICENSE). For more information
about the license, see http://otm.illinois.edu/disclose-protect/illinois-open-source-license.
Define constants.
"""
# file templates
STATE_NPZ_FILE_TEMP = 'optimizer_state_%s.npz' # file ... | 58.846154 | 134 | 0.798693 | 115 | 765 | 5.121739 | 0.347826 | 0.190153 | 0.203735 | 0.149406 | 0.609508 | 0.531409 | 0.531409 | 0.426146 | 0.426146 | 0.426146 | 0 | 0.011834 | 0.11634 | 765 | 13 | 135 | 58.846154 | 0.859467 | 0.705882 | 0 | 0 | 0 | 0 | 0.457944 | 0.457944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d4d970056f0da094729a71930abf5b79b29e3c3 | 158 | py | Python | 51-simple-program-4.py | GunarakulanGunaretnam/python-basic-fundamentals | c62bf939fbaef8895d28f85af9ef6ced70801f96 | [
"Apache-2.0"
] | null | null | null | 51-simple-program-4.py | GunarakulanGunaretnam/python-basic-fundamentals | c62bf939fbaef8895d28f85af9ef6ced70801f96 | [
"Apache-2.0"
] | null | null | null | 51-simple-program-4.py | GunarakulanGunaretnam/python-basic-fundamentals | c62bf939fbaef8895d28f85af9ef6ced70801f96 | [
"Apache-2.0"
] | null | null | null | while True:
user_input = input("Enter something: ")
f = open("data.txt", "at")
f.write(user_input+"\n")
if(user_input == "[STOP]"):
f.close()
break | 15.8 | 40 | 0.607595 | 24 | 158 | 3.875 | 0.708333 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170886 | 158 | 10 | 41 | 15.8 | 0.709924 | 0 | 0 | 0 | 0 | 0 | 0.220126 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d61df73bcd30bdd6c6b9c5e709c560281476999 | 1,820 | py | Python | django/venues/migrations/0001_initial.py | jdrager/mnl-api | be5ce52ed154ec103f9f911da6753d7f2a0fe736 | [
"MIT"
] | 1 | 2018-02-02T18:49:27.000Z | 2018-02-02T18:49:27.000Z | django/venues/migrations/0001_initial.py | monday-night-lights/mnl-api | be5ce52ed154ec103f9f911da6753d7f2a0fe736 | [
"MIT"
] | 26 | 2018-02-01T14:39:40.000Z | 2021-10-13T14:11:29.000Z | django/venues/migrations/0001_initial.py | jdrager/mnl-api | be5ce52ed154ec103f9f911da6753d7f2a0fe736 | [
"MIT"
] | 7 | 2018-02-01T13:33:00.000Z | 2019-03-21T01:39:13.000Z | # Generated by Django 2.1.4 on 2019-01-04 01:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Venue',
fields=[
... | 39.565217 | 188 | 0.569231 | 191 | 1,820 | 5.298429 | 0.397906 | 0.088933 | 0.158103 | 0.189723 | 0.421937 | 0.421937 | 0.06917 | 0 | 0 | 0 | 0 | 0.027864 | 0.29011 | 1,820 | 45 | 189 | 40.444444 | 0.755418 | 0.024725 | 0 | 0.315789 | 1 | 0 | 0.106035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.157895 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d635b80fde3903f9b7a6383d92859ddc318ba94 | 484 | py | Python | test/__init__.py | davidmaignan/test | a2c746bf60ccf96b1d753202fba6725b57527aec | [
"Apache-2.0"
] | null | null | null | test/__init__.py | davidmaignan/test | a2c746bf60ccf96b1d753202fba6725b57527aec | [
"Apache-2.0"
] | null | null | null | test/__init__.py | davidmaignan/test | a2c746bf60ccf96b1d753202fba6725b57527aec | [
"Apache-2.0"
] | null | null | null | # import qgis libs so that ve set the correct sip api version
import qgis # pylint: disable=W0611 # NOQA
import unittest
from test.test_init import TestInit
from test.test_resources import TestResourceTest
def suite_configuration():
suite = unittest.TestSuite()
suite.addTest(TestInit('test_read_init'))
... | 28.470588 | 67 | 0.766529 | 62 | 484 | 5.725806 | 0.629032 | 0.056338 | 0.067606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012107 | 0.146694 | 484 | 17 | 67 | 28.470588 | 0.847458 | 0.181818 | 0 | 0 | 0 | 0 | 0.089059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ed9190d07952044973458f3da01194e2467b9134 | 763 | py | Python | setup_extensions.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 9 | 2015-04-01T04:22:25.000Z | 2018-08-31T03:51:34.000Z | setup_extensions.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 14 | 2015-01-27T20:33:10.000Z | 2016-06-02T07:23:25.000Z | setup_extensions.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 8 | 2015-02-07T20:46:42.000Z | 2019-10-25T00:36:32.000Z | # -*- coding: utf-8 -*-
"""
This file is part of pyCMBS.
(c) 2012- Alexander Loew
For COPYING and LICENSE details, please refer to the LICENSE file
"""
"""
module to compile the required python extensions
This is for development purposes only! Later on
it might be integrated into the standard setup.py
"""
# http://d... | 25.433333 | 65 | 0.743119 | 109 | 763 | 5.137615 | 0.651376 | 0.021429 | 0.067857 | 0.085714 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.161206 | 763 | 29 | 66 | 26.310345 | 0.867188 | 0.482307 | 0 | 0 | 0 | 0 | 0.175439 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ed9b02518328f3649735b397457fcd707b2a240e | 92 | py | Python | POP1/worksheets/two/ex15/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | 1 | 2021-12-29T19:38:56.000Z | 2021-12-29T19:38:56.000Z | POP1/worksheets/two/ex15/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | null | null | null | POP1/worksheets/two/ex15/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | 2 | 2021-04-08T22:58:03.000Z | 2021-04-09T01:16:51.000Z | l = [int(e) for e in input().split()]
for n in l:
if l.count(n) == 1:
print(n)
| 15.333333 | 37 | 0.478261 | 19 | 92 | 2.315789 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.315217 | 92 | 5 | 38 | 18.4 | 0.68254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eda6101f4f3ce0ae4b05b44676ba1870709c8953 | 802 | py | Python | ExerciciosPYTHON/PythonCeV/073.py | Samuel-Melo890/Python-Desafios | 2abc7734d6a6c1f5ab67421f792d6889d93bac94 | [
"MIT"
] | null | null | null | ExerciciosPYTHON/PythonCeV/073.py | Samuel-Melo890/Python-Desafios | 2abc7734d6a6c1f5ab67421f792d6889d93bac94 | [
"MIT"
] | 2 | 2022-03-18T16:06:07.000Z | 2022-03-18T16:55:29.000Z | ExerciciosPYTHON/PythonCeV/073.py | Samuel-Melo890/Python-Desafios | 2abc7734d6a6c1f5ab67421f792d6889d93bac94 | [
"MIT"
] | null | null | null | print('='*8,'Tuplas com Times de Futebol','='*8)
cf = ('Palmeiras', 'Santos', 'Vasco da Gama', 'Grêmio', 'Flamengo', 'Corinthians', 'Internacional', 'Cruzeiro', 'São Paulo', 'Atlético Mineiro', 'Botafogo', 'Fluminense', 'Coritiba', 'Bahia', 'Goiás', 'Guarani', 'Sport', 'Portuguesa', 'Atlético Paranaense', 'Vitória')
pr... | 53.466667 | 268 | 0.660848 | 113 | 802 | 4.690265 | 0.60177 | 0.079245 | 0.113208 | 0.122642 | 0.171698 | 0.083019 | 0.083019 | 0 | 0 | 0 | 0 | 0.025751 | 0.128429 | 802 | 14 | 269 | 57.285714 | 0.732475 | 0 | 0 | 0.428571 | 0 | 0 | 0.674564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.928571 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
eda7e04ad9c248cbb73643c80f0b53fa4f66d240 | 527 | py | Python | setup.py | dcrowe/sdk-python | f8f069725a7beda67cb25f94425972913b08373e | [
"Apache-2.0"
] | null | null | null | setup.py | dcrowe/sdk-python | f8f069725a7beda67cb25f94425972913b08373e | [
"Apache-2.0"
] | null | null | null | setup.py | dcrowe/sdk-python | f8f069725a7beda67cb25f94425972913b08373e | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='visual_regression_tracker',
version='4.0.0',
description='Open source, self hosted solution for visual testing '
'and managing results of visual testing.',
long_description=open('README.md').read(),
long_description_content_type='text/markdo... | 31 | 71 | 0.685009 | 59 | 527 | 5.983051 | 0.694915 | 0.181303 | 0.260623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006961 | 0.182163 | 527 | 16 | 72 | 32.9375 | 0.812065 | 0 | 0 | 0 | 0 | 0 | 0.480076 | 0.142315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eda7fe44739cb06874629ff7fa3f82ea841088f1 | 423 | py | Python | World 1/Exercise 31.py | NikiReis/Python--Exercises | 2f50a3cd6900cec024edcf1a812d1cd86afcdea1 | [
"MIT"
] | null | null | null | World 1/Exercise 31.py | NikiReis/Python--Exercises | 2f50a3cd6900cec024edcf1a812d1cd86afcdea1 | [
"MIT"
] | null | null | null | World 1/Exercise 31.py | NikiReis/Python--Exercises | 2f50a3cd6900cec024edcf1a812d1cd86afcdea1 | [
"MIT"
] | null | null | null | print("-"*14)
print("Km's Calculation")
print("-"*14)
kms = int(input("How many kilometers did you drive ? "))
if kms<=200:
price = kms*0.50
print("Price to be paied out equivalent\nto quantity of the kilometers that you have driven: R$ {}".format(price))
else:
price = kms*0.45
print("Price... | 35.25 | 119 | 0.661939 | 67 | 423 | 4.179104 | 0.522388 | 0.05 | 0.064286 | 0.1 | 0.621429 | 0.621429 | 0.621429 | 0.621429 | 0.621429 | 0.621429 | 0 | 0.038235 | 0.196217 | 423 | 12 | 120 | 35.25 | 0.785294 | 0 | 0 | 0.2 | 0 | 0 | 0.57385 | 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 | 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 | 1 | 0 | 2 |
edb611f60f037176678c93c92c782533ab009fd9 | 165 | py | Python | analysis/const.py | AgenttiX/pap328-project | 0bb2b9dc3a63bcae5d6ae47aa48edb655763157e | [
"MIT"
] | null | null | null | analysis/const.py | AgenttiX/pap328-project | 0bb2b9dc3a63bcae5d6ae47aa48edb655763157e | [
"MIT"
] | null | null | null | analysis/const.py | AgenttiX/pap328-project | 0bb2b9dc3a63bcae5d6ae47aa48edb655763157e | [
"MIT"
] | null | null | null | import math
# Constants
ELEMENTARY_CHARGE = 1.602176634e-19 # Coulombs
# Conversions
ATM_TO_PA = 101325
MBAR_TO_PA = 100
STD_TO_FWHM = 2*math.sqrt(2*math.log(2))
| 16.5 | 47 | 0.757576 | 28 | 165 | 4.214286 | 0.75 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 0.139394 | 165 | 9 | 48 | 18.333333 | 0.661972 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
edb79f71230ac5a199560bfdb6dae152e1a5031d | 1,007 | py | Python | angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | angr-doc/examples/defcon2017quals_crackme2000/enlightenment/classify.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | import subprocess
from glob import glob
import re
from collections import defaultdict
import shutil
import os
import hashlib
files = glob('enlightenment_dist/*')
libraries = defaultdict(list)
ldds = {}
for f in files:
try:
ldd_out = subprocess.check_output(['ldd', f])
except subprocess.CalledProcessEr... | 24.560976 | 203 | 0.60576 | 138 | 1,007 | 4.376812 | 0.463768 | 0.019868 | 0.019868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015666 | 0.239325 | 1,007 | 40 | 204 | 25.175 | 0.772846 | 0.199603 | 0 | 0.2 | 0 | 0 | 0.041045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.057143 | 0.2 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
edbd959971b7596053c1f7e7cd04ec63a9bfa159 | 74,910 | py | Python | tests/examples/minlplib/portfol_classical050_1.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/portfol_classical050_1.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/portfol_classical050_1.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # MINLP written by GAMS Convert at 04/21/18 13:53:48
#
# Equation counts
# Total E G L N X C B
# 104 52 0 52 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 82.409241 | 120 | 0.547764 | 13,019 | 74,910 | 3.151778 | 0.127122 | 0.012137 | 0.043867 | 0.048741 | 0.134063 | 0.133015 | 0.133015 | 0.13282 | 0.13282 | 0 | 0 | 0.515557 | 0.273208 | 74,910 | 908 | 121 | 82.5 | 0.238116 | 0.009078 | 0 | 0.005115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001279 | 0 | 0.001279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
edc2c76812ee6c9585f9c137bdb157a3d16545e9 | 5,073 | py | Python | fhirclient/models/attachment.py | mdx-dev/client-py | f6c16c9bd386c5b05d69753b89c6519d568814ac | [
"Apache-2.0"
] | null | null | null | fhirclient/models/attachment.py | mdx-dev/client-py | f6c16c9bd386c5b05d69753b89c6519d568814ac | [
"Apache-2.0"
] | null | null | null | fhirclient/models/attachment.py | mdx-dev/client-py | f6c16c9bd386c5b05d69753b89c6519d568814ac | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Attachment) on 2019-01-22.
# 2019, SMART Health IT.
from . import element
class Attachment(element.Element):
"""
C
o
n
t
e
n
t
i
n
a
f
... | 12.464373 | 107 | 0.275774 | 512 | 5,073 | 2.707031 | 0.222656 | 0.015873 | 0.080808 | 0.073593 | 0.111111 | 0.100289 | 0.091631 | 0.082251 | 0.059163 | 0.046176 | 0 | 0.016308 | 0.661541 | 5,073 | 406 | 108 | 12.495074 | 0.790914 | 0.116696 | 0 | 0 | 1 | 0 | 0.082845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.129032 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
edcf7b04649dc1f8150d732525f7d6e59b9654e9 | 1,647 | py | Python | build.py | danielrh/repeatexec | ed2080f06d141e236340c5d8d8cb36864c001cd4 | [
"BSD-2-Clause"
] | 2 | 2015-10-21T11:09:12.000Z | 2018-06-20T10:28:44.000Z | build.py | danielrh/repeatexec | ed2080f06d141e236340c5d8d8cb36864c001cd4 | [
"BSD-2-Clause"
] | null | null | null | build.py | danielrh/repeatexec | ed2080f06d141e236340c5d8d8cb36864c001cd4 | [
"BSD-2-Clause"
] | null | null | null | import os
import subprocess
import sys
import threading
try:
os.mkfifo("/tmp/shutdown",0666)
except OSError:
pass
try:
os.mkfifo("/tmp/abort",0666)
except OSError:
pass
subprocess.check_call(["go","build", "-ldflags", "-X main.FALLBACK_SHUTDOWN_PIPE /tmp/shutdown -X main.FALLBACK_ABORT_PIPE /tmp/abort -... | 33.612245 | 313 | 0.659381 | 223 | 1,647 | 4.802691 | 0.376682 | 0.037348 | 0.051354 | 0.065359 | 0.098039 | 0.098039 | 0.098039 | 0.098039 | 0 | 0 | 0 | 0.026455 | 0.196721 | 1,647 | 48 | 314 | 34.3125 | 0.783069 | 0 | 0 | 0.333333 | 0 | 0.020833 | 0.287189 | 0.088646 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.125 | 0.083333 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
edd631fe92868c6f7b72a761ab6cdf558dd7e7bc | 3,045 | py | Python | tests/default.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | 2 | 2019-12-18T16:34:06.000Z | 2020-03-13T03:31:26.000Z | tests/default.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | 4 | 2019-12-22T18:40:31.000Z | 2020-05-07T00:52:48.000Z | tests/default.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from unittest import TestCase
import validator.validator as validator
from .test_utils import schema, build_map
class TestDefault(TestCase):
old_cwd = os.getcwd()
@classmethod
def setUpClass(cls):
os.chdir('./tests/workspaces/default')
@classmethod
def... | 47.578125 | 110 | 0.617734 | 273 | 3,045 | 6.805861 | 0.190476 | 0.080732 | 0.052745 | 0.083961 | 0.762648 | 0.730355 | 0.70183 | 0.672766 | 0.588805 | 0.481701 | 0 | 0.006206 | 0.259113 | 3,045 | 63 | 111 | 48.333333 | 0.817376 | 0 | 0 | 0.326923 | 0 | 0 | 0.213793 | 0.175369 | 0 | 0 | 0 | 0 | 0.346154 | 1 | 0.153846 | false | 0 | 0.096154 | 0 | 0.288462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eddb7f49b44eca53b1e18b53a13b236ea0a652f8 | 521 | py | Python | src/artificial_neural_network/bias_layer.py | daengdaengLee/mnist-python-numpy | 909771bfc802e7031ab84af5776251e66fbc9a63 | [
"MIT"
] | null | null | null | src/artificial_neural_network/bias_layer.py | daengdaengLee/mnist-python-numpy | 909771bfc802e7031ab84af5776251e66fbc9a63 | [
"MIT"
] | 23 | 2019-10-26T08:56:28.000Z | 2021-06-02T00:37:18.000Z | src/artificial_neural_network/bias_layer.py | daengdaengLee/mnist-python-numpy | 909771bfc802e7031ab84af5776251e66fbc9a63 | [
"MIT"
] | null | null | null | import numpy as np
from artificial_neural_network.layer import Layer
class BiasLayer(Layer):
def __init__(self, dim, learning_rate=0.001):
self.__biases = np.zeros(dim)
self.__learning_rate = learning_rate
def forward(self, x):
return x + self.__biases
def backward(self, x, grad... | 24.809524 | 78 | 0.685221 | 70 | 521 | 4.685714 | 0.414286 | 0.146341 | 0.097561 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012531 | 0.234165 | 521 | 20 | 79 | 26.05 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
edf0ed4c0d4a032f2c535b742fa786f5f5390938 | 366 | py | Python | drink_partners/contrib/utils/tests/test_points_distance.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | drink_partners/contrib/utils/tests/test_points_distance.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | 22 | 2020-05-02T19:32:24.000Z | 2021-10-17T21:19:46.000Z | drink_partners/contrib/utils/tests/test_points_distance.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | from drink_partners.contrib.utils.points_distance import (
get_coordinate_distance_points
)
class TestCalculatePointsDistance:
def test_should_get_coordinate_distance_points(self):
point_a = [4, 0]
point_b = [6, 6]
assert get_coordinate_distance_points(
a=point_a,
... | 22.875 | 58 | 0.677596 | 43 | 366 | 5.372093 | 0.55814 | 0.168831 | 0.272727 | 0.350649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07326 | 0.254098 | 366 | 15 | 59 | 24.4 | 0.772894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6100a22323f15fa26e9d7d5c689f91872739d259 | 2,336 | py | Python | spark_lsh.py | lambdadatascience/lsh | 9bff84c0de984bb3f3ded782baf49da73031517d | [
"MIT"
] | null | null | null | spark_lsh.py | lambdadatascience/lsh | 9bff84c0de984bb3f3ded782baf49da73031517d | [
"MIT"
] | null | null | null | spark_lsh.py | lambdadatascience/lsh | 9bff84c0de984bb3f3ded782baf49da73031517d | [
"MIT"
] | null | null | null | import argparse
import os.path
import functools
import numpy as np
from pyspark.mllib.linalg import SparseVector
from pyspark import SparkContext, SparkConf
import text_helpers
#TODO: implement
def getHashFunctions(n=200):
""" generates n number of hash functions
"""
pass
#TODO: implement
def getStopWord... | 29.2 | 75 | 0.657962 | 304 | 2,336 | 4.976974 | 0.398026 | 0.027759 | 0.031725 | 0.041639 | 0.09121 | 0.034369 | 0 | 0 | 0 | 0 | 0 | 0.009455 | 0.230308 | 2,336 | 79 | 76 | 29.56962 | 0.832036 | 0.330051 | 0 | 0.085714 | 0 | 0 | 0.179539 | 0 | 0 | 0 | 0 | 0.050633 | 0 | 1 | 0.114286 | false | 0.085714 | 0.2 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
611ab93cd7e47ac7216315c2b7329f2585cfa2ee | 28,327 | py | Python | pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-VOICE-COMMON-DIAL-CONTROL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:51:02 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Usi... | 182.754839 | 2,213 | 0.777386 | 3,477 | 28,327 | 6.332758 | 0.159908 | 0.024524 | 0.042917 | 0.005632 | 0.526909 | 0.463645 | 0.44507 | 0.41882 | 0.40456 | 0.364004 | 0 | 0.094708 | 0.112119 | 28,327 | 154 | 2,214 | 183.941558 | 0.780764 | 0.01285 | 0 | 0.110294 | 0 | 0.191176 | 0.515168 | 0.068255 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.007353 | 0.080882 | 0 | 0.367647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
611c050ab476af18d9d1aad22299045780867d91 | 36,390 | py | Python | python/three_sums.py | realpacific/algorithms | 199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf | [
"MIT"
] | 88 | 2021-08-22T21:41:23.000Z | 2022-03-04T11:48:13.000Z | python/three_sums.py | realpacific/algorithms | 199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf | [
"MIT"
] | 6 | 2021-09-07T14:41:33.000Z | 2021-12-08T13:05:21.000Z | python/three_sums.py | realpacific/algorithms | 199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf | [
"MIT"
] | 2 | 2021-09-24T07:52:08.000Z | 2021-11-29T12:48:01.000Z | from unittest import TestCase
def threeSum_old(nums):
result = []
for i in range(len(nums)):
for j in range(i + 1, len(nums)):
for k in range(j + 1, len(nums)):
if nums[i] + nums[j] + nums[k] == 0:
new_list = sorted([nums[i], nums[j], nums[k]])
... | 11.845703 | 84 | 0.436164 | 3,308 | 36,390 | 4.784764 | 0.908706 | 0.009035 | 0.006823 | 0.003159 | 0.033169 | 0.025651 | 0.017185 | 0.011499 | 0.009351 | 0.009351 | 0 | 0.71136 | 0.429816 | 36,390 | 3,071 | 85 | 11.84956 | 0.051472 | 0.001979 | 0 | 0.021284 | 0 | 0 | 0.001349 | 0 | 0 | 0 | 0 | 0 | 0.001637 | 1 | 0.00131 | false | 0 | 0.000327 | 0 | 0.003929 | 0.00262 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6126964717eb366d024270381a24e685fbc06c89 | 6,922 | py | Python | glyphStruct.py | zach-king/GlyphyType | dd930730af4396ad7d5ac12d5011a35a1f5ab9bc | [
"MIT"
] | null | null | null | glyphStruct.py | zach-king/GlyphyType | dd930730af4396ad7d5ac12d5011a35a1f5ab9bc | [
"MIT"
] | null | null | null | glyphStruct.py | zach-king/GlyphyType | dd930730af4396ad7d5ac12d5011a35a1f5ab9bc | [
"MIT"
] | null | null | null | #Move to class variable of Glyph object
idDict = {0:'exclam', 1:'quotedbl', 2:'numbersign', 3:'dollar',
4:'percent', 5:'ampersand', 6:'quotesingle', 7:'parenleft',
8:'parenright', 9:'asterisk', 10:'plus', 11:'comma',
12:'hyphen', 13:'period', 14:'slash', 15:'zero',
16:'one', 17:'... | 46.146667 | 104 | 0.471829 | 1,051 | 6,922 | 3.103711 | 0.345385 | 0.016554 | 0.009197 | 0.012262 | 0.120172 | 0.072348 | 0.044758 | 0.026977 | 0.026977 | 0.026977 | 0 | 0.273314 | 0.305981 | 6,922 | 149 | 105 | 46.456376 | 0.405704 | 0.076279 | 0 | 0.075758 | 0 | 0 | 0.078972 | 0.009088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037879 | false | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6128a7c74edde105c7f1147ca577aa5583dc43ae | 689 | py | Python | onener/transformer/pretokenizer.py | sansan-inc/OneNER | 4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3 | [
"Apache-2.0"
] | 2 | 2021-10-11T05:30:44.000Z | 2021-12-16T07:46:28.000Z | onener/transformer/pretokenizer.py | sansan-inc/OneNER | 4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3 | [
"Apache-2.0"
] | null | null | null | onener/transformer/pretokenizer.py | sansan-inc/OneNER | 4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List
import MeCab
class PreTokenizer(ABC):
"""AutoTokenizer(bert-base-multilingual-cased)によって分かち書きをする前に、
前処理としてかける分かち書きのための抽象クラス
これを行わないと場合によっては、
「〇〇は3月2日に開催した」 -> 「〇 〇 は3 月 2 日 に 開 催 した」のように、「は3」のような
単語になってしまい、その後の分類タスクで悪影響が起きてしまう
"""
... | 26.5 | 66 | 0.70537 | 74 | 689 | 6.513514 | 0.621622 | 0.033195 | 0.049793 | 0.06639 | 0.107884 | 0.107884 | 0.107884 | 0 | 0 | 0 | 0 | 0.008929 | 0.187228 | 689 | 25 | 67 | 27.56 | 0.844643 | 0.351234 | 0 | 0.166667 | 0 | 0 | 0.019277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
612c9bf3ffb82a317d05d60e00600b867adeb63c | 256 | py | Python | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.long.schema_instance.nistschema_sv_iv_atomic_long_max_exclusive_1_xsd.nistschema_sv_iv_atomic_long_max_exclusive_1 import NistschemaSvIvAtomicLongMaxExclusive1
__all__ = [
"NistschemaSvIvAtomicLongMaxExclusive1",
]
| 42.666667 | 195 | 0.894531 | 30 | 256 | 6.933333 | 0.633333 | 0.144231 | 0.134615 | 0.192308 | 0.355769 | 0.355769 | 0.355769 | 0.355769 | 0 | 0 | 0 | 0.016529 | 0.054688 | 256 | 5 | 196 | 51.2 | 0.842975 | 0 | 0 | 0 | 0 | 0 | 0.144531 | 0.144531 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b62433cd037f79979cfef4c3c7e8ba4b1fe36dc3 | 373 | py | Python | learner/time_callback.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | 4 | 2021-07-29T17:52:54.000Z | 2022-02-15T06:32:15.000Z | learner/time_callback.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | null | null | null | learner/time_callback.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | null | null | null | import time
import tensorflow
from tensorflow import keras
class TimeCallback(keras.callbacks.Callback):
def __init__ (self):
super(TimeCallback, self).__init__()
def on_epoch_begin(self, epoch, logs):
self.epoch_time_start = time.time()
def on_epoch_end(self, batch, logs):
logs... | 21.941176 | 58 | 0.686327 | 48 | 373 | 5 | 0.416667 | 0.1125 | 0.083333 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209115 | 373 | 16 | 59 | 23.3125 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b625f6558f2741b2b169d86562822285a1812346 | 289 | py | Python | social/admin.py | ayushnanda21/Zingster | f23e9900b772c2e46f9ea4434a1266daa129b16b | [
"MIT"
] | 3 | 2021-05-11T16:31:34.000Z | 2022-03-08T05:54:30.000Z | social/admin.py | ayushnanda21/Zingster | f23e9900b772c2e46f9ea4434a1266daa129b16b | [
"MIT"
] | null | null | null | social/admin.py | ayushnanda21/Zingster | f23e9900b772c2e46f9ea4434a1266daa129b16b | [
"MIT"
] | 1 | 2021-10-09T18:35:48.000Z | 2021-10-09T18:35:48.000Z | from django.contrib import admin
from . models import Post,UserProfile,Notification,Comment,ThreadModel
# Register your models here.
admin.site.register(Post)
admin.site.register(UserProfile)
admin.site.register(Comment)
admin.site.register(Notification)
admin.site.register(ThreadModel) | 28.9 | 70 | 0.83391 | 37 | 289 | 6.513514 | 0.405405 | 0.186722 | 0.352697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069204 | 289 | 10 | 71 | 28.9 | 0.895911 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b67168bde4164840416443bfce8934cfcf44c9ab | 364 | py | Python | scripts/say-hello-world.py | OleBo/MathSo | 1f9fa0492d467c0bb0479768c503eee7723ae777 | [
"MIT"
] | 1 | 2022-01-08T23:52:57.000Z | 2022-01-08T23:52:57.000Z | scripts/say-hello-world.py | OleBo/MathSo | 1f9fa0492d467c0bb0479768c503eee7723ae777 | [
"MIT"
] | null | null | null | scripts/say-hello-world.py | OleBo/MathSo | 1f9fa0492d467c0bb0479768c503eee7723ae777 | [
"MIT"
] | 1 | 2022-01-02T21:14:30.000Z | 2022-01-02T21:14:30.000Z | # When your package is installed in editable mode, you can call
# instances of that package from any directory. For example, this
# script may be run by calling
#
# python scripts/say-hello-world.py
#
# and it will call methods inside our python_ml_template project.
from math_so.utils import say_hello_world
if __... | 28 | 65 | 0.760989 | 58 | 364 | 4.517241 | 0.827586 | 0.091603 | 0.148855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 364 | 12 | 66 | 30.333333 | 0.873333 | 0.703297 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b678945fdf026302149df7f84d03e9bf19062c3e | 8,982 | py | Python | luciferml/supervised/utils/regression_params.py | rahuljaguste/LuciferML | 8ee4449f08bd07da8736be285d8dd0fd99398c28 | [
"MIT"
] | null | null | null | luciferml/supervised/utils/regression_params.py | rahuljaguste/LuciferML | 8ee4449f08bd07da8736be285d8dd0fd99398c28 | [
"MIT"
] | null | null | null | luciferml/supervised/utils/regression_params.py | rahuljaguste/LuciferML | 8ee4449f08bd07da8736be285d8dd0fd99398c28 | [
"MIT"
] | null | null | null | import numpy as np
parameters_svr_1 = [
{'kernel': ['rbf'], 'gamma': [0.1, 0.5, 0.9, 1],
'C': np.logspace(-4, 4, 5)},
]
parameters_svr_2 = [
{'kernel': ['rbf'], 'gamma': [1e-4, 0.1, 0.3,
0.5, 0.7, 0.9, 1], 'C': np.logspace(-4, 4, 10)},
{'kernel': ['linear'], 'gamm... | 29.257329 | 98 | 0.480517 | 1,502 | 8,982 | 2.741678 | 0.096538 | 0.016999 | 0.021127 | 0.023069 | 0.790432 | 0.686255 | 0.650559 | 0.570908 | 0.526226 | 0.495872 | 0 | 0.226853 | 0.265308 | 8,982 | 306 | 99 | 29.352941 | 0.397181 | 0 | 0 | 0.510823 | 0 | 0 | 0.233578 | 0.003006 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004329 | 0 | 0.004329 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b67fafcf42495a4fa6560d767936e8f9b6d7796e | 1,057 | py | Python | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | 10 | 2019-08-21T01:42:44.000Z | 2021-12-24T02:18:04.000Z | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | null | null | null | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | 4 | 2020-02-10T08:58:20.000Z | 2021-07-08T14:08:32.000Z | from deduplication import simhash, lsimhash
from pathlib import Path
from scipy.spatial.distance import hamming
import numpy as np
import textwrap
def test_main():
with open(Path(__file__).resolve().parent / 'data' / 'wiki_nlp.txt', 'r') as f:
content = f.read()
hval = lsimhash.lsimhash(content)
... | 48.045455 | 369 | 0.756859 | 161 | 1,057 | 4.925466 | 0.540373 | 0.041614 | 0.070618 | 0.08575 | 0.479193 | 0.479193 | 0.479193 | 0.380832 | 0.380832 | 0.380832 | 0 | 0.004598 | 0.176916 | 1,057 | 21 | 370 | 50.333333 | 0.906897 | 0 | 0 | 0 | 0 | 0.142857 | 0.604167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.5 | 0.142857 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b6803575349013e6f95b7ac55200cff1e47ba73f | 11,581 | py | Python | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | 1 | 2020-04-23T12:38:07.000Z | 2020-04-23T12:38:07.000Z | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | null | null | null | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | null | null | null | from os import listdir, makedirs
from os.path import isfile, join, exists
from __main__ import *
print '\033[32m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\033[0m\n'
print '\033[94m'+'||===== '+'\033[92m' + ' ====== '+'\033[93m'+' ====='
print '\033[94m'+'|| \\\\ '+... | 52.881279 | 1,231 | 0.571194 | 1,242 | 11,581 | 5.219002 | 0.202899 | 0.051836 | 0.056773 | 0.038106 | 0.342641 | 0.257637 | 0.193459 | 0.17942 | 0.138537 | 0.11154 | 0 | 0.032057 | 0.197306 | 11,581 | 218 | 1,232 | 53.123853 | 0.665232 | 0.022278 | 0 | 0.144385 | 0 | 0.02139 | 0.483341 | 0.123199 | 0.02139 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042781 | null | null | 0.128342 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6871d4c00e4a99100a8cb85bdaed1478a3f212b | 1,058 | py | Python | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | from minecraft.networking.packets import Packet
from minecraft.networking.types import (
Short, BitFieldEnum
)
class HeldItemChangePacket(Packet, BitFieldEnum):
@staticmethod
def get_id(context):
return 0x25 if context.protocol_version >= 738 else \
0x24 if context.protocol_version >=... | 35.266667 | 61 | 0.638941 | 120 | 1,058 | 5.508333 | 0.425 | 0.163389 | 0.308623 | 0.435703 | 0.193646 | 0.193646 | 0 | 0 | 0 | 0 | 0 | 0.090305 | 0.28828 | 1,058 | 29 | 62 | 36.482759 | 0.787517 | 0 | 0 | 0 | 0 | 0 | 0.018904 | 0 | 0 | 0 | 0.049149 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0.041667 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b68be82acadc9943f2cd593b3e2f054401e95af1 | 2,013 | py | Python | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | #!python -u
import sys
import pyglet
import pyglet.gl as gl
import pyglet.window.mouse as mouse
import pyglet.window.key as key
import pyglet.input
#import pyglet.media
import random
import math
#print pyglet.version
show = ""
# Set up window
full = False
if full:
window = pyglet.window.Window(fullscreen=Tru... | 18.135135 | 64 | 0.597119 | 301 | 2,013 | 3.900332 | 0.358804 | 0.011925 | 0.015332 | 0.017036 | 0.052811 | 0.052811 | 0.006814 | 0 | 0 | 0 | 0 | 0.016915 | 0.265772 | 2,013 | 110 | 65 | 18.3 | 0.777402 | 0.131148 | 0 | 0.147541 | 0 | 0 | 0.053726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.065574 | 0.131148 | null | null | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b68d55a4f44625a425237c2968f33e5ce96a8a38 | 345 | py | Python | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | # Faça um programa que leia três números e mostre qual é o maior e qual é o menor.
n1 = int(input('Digite o primeiro valor: '))
n2 = int(input('Digite o segundo valor: '))
n3 = int(input('Digite o terceiro valor: '))
nt= [n1,n2,n3]
print('O maior número digitado foi {}'.format(max(nt)))
print('O menor número digitado... | 38.333333 | 82 | 0.686957 | 61 | 345 | 3.885246 | 0.52459 | 0.101266 | 0.177215 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.15942 | 345 | 9 | 83 | 38.333333 | 0.796552 | 0.231884 | 0 | 0 | 0 | 0 | 0.507576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b69ae3c3a05b82d7c34897a18e9776d203764a57 | 1,710 | py | Python | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | null | null | null | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | null | null | null | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | 2 | 2019-10-23T11:54:37.000Z | 2022-02-05T15:51:34.000Z | import typing as t
import logging
from telegram import Update
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackContext
# Enable logging
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO
)
logger = logging.getLogger(__name__)
... | 32.264151 | 97 | 0.711111 | 203 | 1,710 | 5.82266 | 0.280788 | 0.087986 | 0.096447 | 0.172589 | 0.328257 | 0.296108 | 0.287648 | 0.287648 | 0.253807 | 0 | 0 | 0 | 0.176023 | 1,710 | 53 | 98 | 32.264151 | 0.838893 | 0.008187 | 0 | 0.121212 | 0 | 0 | 0.070206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.121212 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b69f3824da0ab5aa5a2c7170f38eadf490e1df95 | 1,935 | py | Python | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 28 | 2018-02-13T12:45:00.000Z | 2022-03-16T04:27:07.000Z | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 1 | 2018-02-16T09:56:50.000Z | 2018-02-16T09:56:50.000Z | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 2 | 2018-08-12T12:50:23.000Z | 2019-05-10T16:16:49.000Z | import os
import inspect
from copy import deepcopy
from tempfile import TemporaryDirectory
from functools import wraps
from ..server import run_threaded
class RedisServer:
def __init__(self):
self.stop_loop = None
self.tempdir = None
self.thread = None
def __call__(self, func):
... | 23.888889 | 89 | 0.553488 | 208 | 1,935 | 4.942308 | 0.331731 | 0.038911 | 0.046693 | 0.031128 | 0.229572 | 0.229572 | 0.16537 | 0.16537 | 0.093385 | 0.093385 | 0 | 0 | 0.358656 | 1,935 | 80 | 90 | 24.1875 | 0.828364 | 0 | 0 | 0.305085 | 0 | 0 | 0.005168 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.220339 | false | 0.016949 | 0.101695 | 0.050847 | 0.542373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b6b2bc0d26323630fc0b85b1c23c05a20eeee527 | 176 | py | Python | web/04_user/sample.py | testdrivenio/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 43 | 2018-06-14T19:33:19.000Z | 2022-03-15T16:13:03.000Z | web/04_user/sample.py | Scaleframe/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 1 | 2020-06-02T02:44:47.000Z | 2020-06-02T02:44:47.000Z | web/04_user/sample.py | Scaleframe/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 10 | 2018-06-16T22:13:27.000Z | 2021-08-23T01:03:29.000Z | from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/ping')
def pong():
return jsonify('pong!')
if __name__ == '__main__':
app.run(host='0.0.0.0')
| 12.571429 | 32 | 0.630682 | 26 | 176 | 3.807692 | 0.615385 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.181818 | 176 | 13 | 33 | 13.538462 | 0.659722 | 0 | 0 | 0 | 0 | 0 | 0.142045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b6b345764f47a7302a2c81d9799fa2f3bd3b99c4 | 1,931 | py | Python | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | # Generated by Django 2.2.26 on 2022-02-26 08:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0002_auto_20220225_1606"),
]
operations = [
migrations.AddField(
model_name="user",
name="adresse",
... | 30.171875 | 75 | 0.548421 | 181 | 1,931 | 5.756906 | 0.292818 | 0.086372 | 0.12476 | 0.163148 | 0.664107 | 0.664107 | 0.630518 | 0.630518 | 0.545106 | 0.545106 | 0 | 0.034029 | 0.330399 | 1,931 | 63 | 76 | 30.650794 | 0.771848 | 0.023822 | 0 | 0.631579 | 1 | 0 | 0.081253 | 0.012215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.070175 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6b4835ba5f75adf5f813973c0f5683e69a19a3d | 409 | py | Python | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 6 | 2020-06-24T23:08:09.000Z | 2021-12-25T00:53:10.000Z | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 2 | 2021-07-06T20:31:55.000Z | 2022-03-17T13:01:13.000Z | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 1 | 2021-01-22T16:50:59.000Z | 2021-01-22T16:50:59.000Z | import datetime
from typing import Any
import dateutil.tz
def json_defaults(obj: Any) -> str:
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, datetime.datetime):
return obj.astimezone(dateutil.tz.UTC).isoformat()
elif isinstance(obj, datetime.date):
... | 25.5625 | 75 | 0.709046 | 53 | 409 | 5.45283 | 0.603774 | 0.069204 | 0.145329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188264 | 409 | 15 | 76 | 27.266667 | 0.870482 | 0.158924 | 0 | 0 | 0 | 0 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fcac8a7fd254974b0cbabed36e8c59502bf09f6e | 2,229 | py | Python | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | 2 | 2018-11-08T03:30:55.000Z | 2021-09-19T01:40:14.000Z | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | null | null | null | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | 1 | 2018-12-30T04:07:17.000Z | 2018-12-30T04:07:17.000Z | # Description: A library of common utilities
# Author: Matt Ferraro
import numpy as np
import cv2
from scipy.signal import convolve2d
import matplotlib.pyplot as plt
def imagify(fft):
'''
2D ffts usually have real and imaginary components, and they also usually
have way too much dynamic range to be sensib... | 33.772727 | 79 | 0.696276 | 339 | 2,229 | 4.519174 | 0.439528 | 0.045692 | 0.018277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020173 | 0.221624 | 2,229 | 65 | 80 | 34.292308 | 0.862824 | 0.489906 | 0 | 0 | 0 | 0 | 0.028238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.166667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fcace69d7de7f766d27633336fe279118aaefec0 | 1,090 | py | Python | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | import tornado.ioloop
import tornado.web
from twittercomments.handlers.powhandler import PowHandler
from twittercomments.application import app
from twittercomments.as_dash import dispatcher
from twittercomments.models.tinydb.tweet import Tweet
#
# you can use regex in the routes as well:
# (r"/([^/]+)/(.+)", ObjectHa... | 35.16129 | 96 | 0.705505 | 143 | 1,090 | 5.314685 | 0.629371 | 0.1 | 0.028947 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013115 | 0.16055 | 1,090 | 30 | 97 | 36.333333 | 0.817486 | 0.36789 | 0 | 0 | 0 | 0 | 0.131852 | 0.031111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.4 | 0.066667 | 0.733333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fcaeccdb0846e01e452459cb3c95056d0b54137e | 19,169 | py | Python | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | #from GoogleImageScrapper import *
import random
from GoogleImageScrapper import GoogleImageScraper
from patch import *
import os
from os import listdir
from os.path import join, isdir, isfile
from flask import Flask, render_template, send_from_directory, redirect, Response, url_for
import SVN.trunk.Code.Python.lara_u... | 32.108878 | 243 | 0.699828 | 2,757 | 19,169 | 4.633297 | 0.114617 | 0.039455 | 0.018318 | 0.017222 | 0.749804 | 0.718647 | 0.681149 | 0.660013 | 0.64279 | 0.631909 | 0 | 0.016921 | 0.161406 | 19,169 | 596 | 244 | 32.162752 | 0.777729 | 0.144765 | 0 | 0.581633 | 0 | 0.003401 | 0.125155 | 0.049151 | 0 | 0 | 0 | 0.006711 | 0 | 1 | 0.095238 | false | 0.003401 | 0.030612 | 0.034014 | 0.22449 | 0.037415 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
fcb2d5a562e178bc80b4b5511da52dbc782c577a | 635 | py | Python | DQM/HLTEvF/python/hltMonBTag_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/HLTEvF/python/hltMonBTag_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/HLTEvF/python/hltMonBTag_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
import DQM.HLTEvF.hltMonBTagIPSource_cfi
import DQM.HLTEvF.hltMonBTagMuSource_cfi
# definition of the Sources for 8E29
#hltMonBTagIP_Jet50U_Source = DQM.HLTEvF.hltMonBTagIPSource_cfi.hltMonBTagIPSource.clone()
#hltMonBTagMu_Jet10U_Source = DQM.HLTEvF.hltMonBTagMuSource_cfi.hlt... | 37.352941 | 90 | 0.848819 | 76 | 635 | 6.894737 | 0.5 | 0.103053 | 0.085878 | 0.114504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0189 | 0.083465 | 635 | 16 | 91 | 39.6875 | 0.881443 | 0.64252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fcc1e4d659fe51f2efed9d496e3e3017872843f1 | 6,225 | py | Python | final/filters.py | jgardezi/BATrader | 6f032305db4e699b7fcf2d5300102381ad2bde8b | [
"Apache-2.0"
] | 1 | 2021-03-24T03:37:22.000Z | 2021-03-24T03:37:22.000Z | final/filters.py | jgardezi/BATrader | 6f032305db4e699b7fcf2d5300102381ad2bde8b | [
"Apache-2.0"
] | null | null | null | final/filters.py | jgardezi/BATrader | 6f032305db4e699b7fcf2d5300102381ad2bde8b | [
"Apache-2.0"
] | 1 | 2022-02-18T21:38:56.000Z | 2022-02-18T21:38:56.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 29 09:35:35 2018
@author: Branson
"""
import BATrader as ba
from BATrader.market.MarketReader import convert
import pandas as pd
from functools import partial
class Filters(object):
"""
FIlter
------------------------------------------
Filter is ... | 31.439394 | 119 | 0.571245 | 811 | 6,225 | 4.183724 | 0.257707 | 0.083112 | 0.060124 | 0.05305 | 0.353669 | 0.280283 | 0.2458 | 0.21957 | 0.186855 | 0.163867 | 0 | 0.024229 | 0.297189 | 6,225 | 197 | 120 | 31.598985 | 0.751314 | 0.307149 | 0 | 0.055556 | 0 | 0 | 0.041557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263889 | false | 0 | 0.055556 | 0.055556 | 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 | 0 | 1 | 0 | 0 | 2 |
fcc4774ee8452eb0e3126e268e6e7baa1e7d7e43 | 205 | py | Python | customer_service/app.py | hadihammurabi/microservice-python | be37127cc489adf87093749f9d64567f5b37cbb4 | [
"MIT"
] | 6 | 2020-04-18T04:42:54.000Z | 2021-12-19T11:46:01.000Z | customer_service/app.py | hadihammurabi/microservice-python | be37127cc489adf87093749f9d64567f5b37cbb4 | [
"MIT"
] | 1 | 2019-10-24T03:07:29.000Z | 2019-10-24T03:07:29.000Z | customer_service/app.py | hadihammurabi/microservice-python | be37127cc489adf87093749f9d64567f5b37cbb4 | [
"MIT"
] | 4 | 2019-10-19T07:53:38.000Z | 2021-11-30T05:11:42.000Z | from flask import Flask, jsonify
app = Flask('customer-service')
@app.route('/')
def index():
return jsonify({
'message': 'get all customers',
})
if __name__ == '__main__':
app.run(port=8002)
| 15.769231 | 35 | 0.64878 | 26 | 205 | 4.807692 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023669 | 0.17561 | 205 | 12 | 36 | 17.083333 | 0.715976 | 0 | 0 | 0 | 0 | 0 | 0.239024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
fce1e97e1f94b6f6d602eef5a26d80a7fb984cce | 1,068 | py | Python | library/old_tools_methods/tools.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | null | null | null | library/old_tools_methods/tools.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | 1 | 2021-02-03T12:48:23.000Z | 2021-02-03T12:48:23.000Z | library/old_tools_methods/tools.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | 1 | 2021-11-03T12:36:51.000Z | 2021-11-03T12:36:51.000Z | from datetime import datetime
class mentions_self:
nom = 'я'; gen = ['меня', 'себя']; dat = ['мне', 'себе']
acc = ['меня', 'себя']; ins = ['мной', 'собой']; abl = ['мне','себе']
class mentions_unknown:
all = 'всех'
him = 'его'; her = 'её'; it = 'это'
they = 'их'; them = 'их'; us = 'нас'
nam... | 28.105263 | 99 | 0.562734 | 131 | 1,068 | 4.564886 | 0.526718 | 0.058528 | 0.075251 | 0.090301 | 0.147157 | 0.107023 | 0.107023 | 0.107023 | 0 | 0 | 0 | 0.012285 | 0.237828 | 1,068 | 37 | 100 | 28.864865 | 0.722359 | 0 | 0 | 0.086957 | 0 | 0.043478 | 0.218165 | 0.050562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.130435 | 1.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
fcedb493e14ec02820c3a65afad5786b78965f96 | 2,968 | py | Python | collections/comprehensions.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | collections/comprehensions.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | collections/comprehensions.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | '''
The comprehentions really make it easy to add those loops and
conditionals on the existing comprehentions.
'''
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# EXAMPLE 1: Print Lists in a simple way:
# ==============================================================================
my_list1 = [n for n in nums]
my_list2 = [... | 27.738318 | 80 | 0.487871 | 394 | 2,968 | 3.624365 | 0.312183 | 0.044118 | 0.017507 | 0.02451 | 0.15056 | 0.135154 | 0.103641 | 0.047619 | 0.047619 | 0 | 0 | 0.027534 | 0.15566 | 2,968 | 107 | 81 | 27.738318 | 0.542298 | 0.478774 | 0 | 0.285714 | 0 | 0 | 0.082386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.510204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
fcf0f7d0ced8ceb827bbd618ebf3aa2adb347d1b | 833 | py | Python | goodbuyDatabase/tests/test_urls.py | code-goodbuy/Goodbuy | d23363a46988f65f121a6edb75609fdddaa95cde | [
"Unlicense"
] | 2 | 2019-03-20T20:30:16.000Z | 2019-04-10T19:54:32.000Z | goodbuyDatabase/tests/test_urls.py | code-goodbuy/Goodbuy | d23363a46988f65f121a6edb75609fdddaa95cde | [
"Unlicense"
] | 30 | 2019-02-22T17:24:13.000Z | 2019-05-15T09:29:51.000Z | goodbuyDatabase/tests/test_urls.py | code-goodbuy/Goodbuy | d23363a46988f65f121a6edb75609fdddaa95cde | [
"Unlicense"
] | 1 | 2020-04-08T07:53:09.000Z | 2020-04-08T07:53:09.000Z | from django.test import TestCase
from django.urls import reverse, resolve
from goodbuyDatabase.endpoints import is_in_own_database
from goodbuyDatabase.views import product_list, show_list_of_codes
class TestUrls(TestCase):
# Resolves checks if the url is called, the assoziated function is found
def test... | 36.217391 | 83 | 0.755102 | 111 | 833 | 5.387387 | 0.333333 | 0.026756 | 0.046823 | 0.100334 | 0.202341 | 0.153846 | 0.153846 | 0 | 0 | 0 | 0 | 0.037143 | 0.159664 | 833 | 22 | 84 | 37.863636 | 0.817143 | 0.084034 | 0 | 0 | 0 | 0 | 0.160315 | 0.12615 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1e0722a167a785c6b5484768dc494ed00583b144 | 559 | py | Python | allauth_saml2/urls.py | davidmgvaz/allauth_saml2 | 0a797b66831fedb0a5bce7ba2bdde001efbf6956 | [
"MIT"
] | 1 | 2021-07-29T00:56:27.000Z | 2021-07-29T00:56:27.000Z | allauth_saml2/urls.py | davidmgvaz/allauth_saml2 | 0a797b66831fedb0a5bce7ba2bdde001efbf6956 | [
"MIT"
] | 1 | 2022-03-01T21:17:54.000Z | 2022-03-14T07:51:09.000Z | allauth_saml2/urls.py | davidmgvaz/allauth_saml2 | 0a797b66831fedb0a5bce7ba2bdde001efbf6956 | [
"MIT"
] | 2 | 2021-11-18T21:05:34.000Z | 2022-03-11T23:31:44.000Z | from django.urls import include, path
from allauth.utils import import_attribute
def default_urlpatterns(provider):
login_view = import_attribute(provider.get_package() + ".views.saml2_login")
acs_view = import_attribute(provider.get_package() + ".views.saml2_acs")
urlpatterns = [
path("login/",... | 32.882353 | 80 | 0.692308 | 69 | 559 | 5.391304 | 0.42029 | 0.120968 | 0.102151 | 0.145161 | 0.252688 | 0.252688 | 0.252688 | 0.252688 | 0 | 0 | 0 | 0.004338 | 0.175313 | 559 | 16 | 81 | 34.9375 | 0.802603 | 0.093023 | 0 | 0 | 0 | 0 | 0.108911 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1e12c6a3aa526ef23aa7034fa618c29135d58d92 | 672 | py | Python | wrappers/python/tests/anoncreds/test_issuer_create_credential.py | sklump/indy-sdk | ee05a89ddf60b42f7483bebf2d89a936e12730df | [
"Apache-2.0"
] | 636 | 2017-05-25T07:45:43.000Z | 2022-03-23T22:30:34.000Z | wrappers/python/tests/anoncreds/test_issuer_create_credential.py | Nick-1979/indy-sdk | e5f812e14962f0d51cf96f843033754ff841ce30 | [
"Apache-2.0"
] | 731 | 2017-05-29T07:15:08.000Z | 2022-03-31T07:55:58.000Z | wrappers/python/tests/anoncreds/test_issuer_create_credential.py | Nick-1979/indy-sdk | e5f812e14962f0d51cf96f843033754ff841ce30 | [
"Apache-2.0"
] | 904 | 2017-05-25T07:45:49.000Z | 2022-03-31T07:43:31.000Z | import pytest
from indy import error
from indy.anoncreds import issuer_create_credential
# noinspection PyUnusedLocal
@pytest.mark.asyncio
async def test_issuer_create_credential_works(wallet_handle, prepopulated_wallet):
pass
# noinspection PyUnusedLocal
@pytest.mark.asyncio
async def test_issuer_create_crede... | 32 | 109 | 0.83631 | 85 | 672 | 6.152941 | 0.423529 | 0.091778 | 0.16826 | 0.133843 | 0.309751 | 0.309751 | 0.309751 | 0.309751 | 0.309751 | 0.309751 | 0 | 0 | 0.111607 | 672 | 20 | 110 | 33.6 | 0.876047 | 0.078869 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.083333 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1e184b235ee24c10614c3bd2ea14856e7508653c | 98 | py | Python | output/models/ms_data/simple_type/st_e065_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/simple_type/st_e065_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/simple_type/st_e065_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.simple_type.st_e065_xsd.st_e065 import Root
__all__ = [
"Root",
]
| 16.333333 | 70 | 0.744898 | 16 | 98 | 4 | 0.8125 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.142857 | 98 | 5 | 71 | 19.6 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e1dafb5a95a9a832f3c83dbbe21c7e9367c6af2 | 1,538 | py | Python | apps/live_discussion_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | 2 | 2021-04-13T06:12:59.000Z | 2021-07-21T14:04:45.000Z | apps/live_discussion_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | null | null | null | apps/live_discussion_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | 1 | 2021-06-19T09:06:38.000Z | 2021-06-19T09:06:38.000Z |
#Essential Modules
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Dashboard Modules
import dash
import dash_table
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
from dash.dependencies import Inpu... | 26.982456 | 82 | 0.702861 | 202 | 1,538 | 5.178218 | 0.490099 | 0.057361 | 0.028681 | 0.040153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013083 | 0.204811 | 1,538 | 56 | 83 | 27.464286 | 0.842191 | 0.104031 | 0 | 0.044444 | 0 | 0 | 0.112327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.511111 | 0.022222 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1e1de33c28ddf64ae7dbf8f82938a19f029d7af5 | 1,768 | py | Python | Lib/fontbakery/profiles/dsig.py | yellowsquid/fontbakery | 3228e20d108726fc35bd0e09211e7ffe38559029 | [
"Apache-2.0"
] | null | null | null | Lib/fontbakery/profiles/dsig.py | yellowsquid/fontbakery | 3228e20d108726fc35bd0e09211e7ffe38559029 | [
"Apache-2.0"
] | null | null | null | Lib/fontbakery/profiles/dsig.py | yellowsquid/fontbakery | 3228e20d108726fc35bd0e09211e7ffe38559029 | [
"Apache-2.0"
] | null | null | null | from fontbakery.callable import check
from fontbakery.status import WARN, PASS
from fontbakery.message import Message
# used to inform get_module_profile whether and how to create a profile
from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import
@check(
id = 'com.google.fonts/chec... | 52 | 286 | 0.677036 | 243 | 1,768 | 4.893004 | 0.518519 | 0.037847 | 0.035324 | 0.063078 | 0.107653 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.258484 | 1,768 | 33 | 287 | 53.575758 | 0.877956 | 0.078054 | 0 | 0 | 0 | 0.074074 | 0.653112 | 0.016636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.148148 | 0 | 0.185185 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1e3868fcfa8f7c10952baf06df24ab8e1002802d | 199 | py | Python | skipper-lib/skipper_lib/logger/logger_helper.py | xandrade/katana-skipper | 196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92 | [
"Apache-2.0"
] | 162 | 2021-05-17T20:43:34.000Z | 2022-03-31T04:19:51.000Z | skipper-lib/skipper_lib/logger/logger_helper.py | xandrade/katana-skipper | 196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92 | [
"Apache-2.0"
] | 4 | 2021-10-09T07:21:21.000Z | 2022-02-08T19:35:29.000Z | skipper-lib/skipper_lib/logger/logger_helper.py | xandrade/katana-skipper | 196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92 | [
"Apache-2.0"
] | 30 | 2021-05-30T07:50:37.000Z | 2022-03-10T01:56:02.000Z | import requests
def call(logger, params):
try:
requests.post(logger, json=params)
except requests.exceptions.RequestException as e:
print('Logger service is not available')
| 22.111111 | 53 | 0.698492 | 24 | 199 | 5.791667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21608 | 199 | 8 | 54 | 24.875 | 0.891026 | 0 | 0 | 0 | 0 | 0 | 0.155779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e437b4dfd0558c6e8bffff9311d6c58e3c2a593 | 386 | py | Python | mmdet3d/models/middle_encoders/__init__.py | yangzilongdmgy/merge_monster_3d | 0595e36749d32c3d5537a3f707727a137c82076e | [
"Apache-2.0"
] | null | null | null | mmdet3d/models/middle_encoders/__init__.py | yangzilongdmgy/merge_monster_3d | 0595e36749d32c3d5537a3f707727a137c82076e | [
"Apache-2.0"
] | null | null | null | mmdet3d/models/middle_encoders/__init__.py | yangzilongdmgy/merge_monster_3d | 0595e36749d32c3d5537a3f707727a137c82076e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
from .pillar_scatter import PointPillarsScatter
from .sparse_encoder import SparseEncoder
from .sparse_unet import SparseUNet
from .sparse_encoder_aux import SparseEncoder_AUX
from .sparse_encoderv2 import SparseEncoderV2
__all__ = [
'PointPillarsScatter', 'SparseEnc... | 32.166667 | 78 | 0.813472 | 40 | 386 | 7.55 | 0.475 | 0.13245 | 0.112583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008798 | 0.11658 | 386 | 11 | 79 | 35.090909 | 0.876833 | 0.11658 | 0 | 0 | 0 | 0 | 0.218289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1e4ce32c38c583706ec7bfb679d5be87d306fa64 | 2,556 | py | Python | src/python-multiCameraServer/facegrip.py | FRCTeam1277/PavelVisionTests2021 | 1c5b674aed893c3c1d770ca4f124cb6d93615903 | [
"BSD-3-Clause"
] | null | null | null | src/python-multiCameraServer/facegrip.py | FRCTeam1277/PavelVisionTests2021 | 1c5b674aed893c3c1d770ca4f124cb6d93615903 | [
"BSD-3-Clause"
] | null | null | null | src/python-multiCameraServer/facegrip.py | FRCTeam1277/PavelVisionTests2021 | 1c5b674aed893c3c1d770ca4f124cb6d93615903 | [
"BSD-3-Clause"
] | null | null | null | import cv2
import numpy
import math
from enum import Enum
class GripPipeline:
"""
An OpenCV pipeline generated by GRIP.
"""
def __init__(self):
"""initializes all values to presets or None if need to be set
"""
self.__new_size_width = 100.0
self.__new_size_height = ... | 36 | 292 | 0.687011 | 326 | 2,556 | 5.021472 | 0.328221 | 0.176542 | 0.205254 | 0.073305 | 0.229688 | 0.100183 | 0.080635 | 0.080635 | 0.080635 | 0.080635 | 0 | 0.012572 | 0.25313 | 2,556 | 70 | 293 | 36.514286 | 0.844945 | 0.358764 | 0 | 0.153846 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e502b66e5902b480d62357920638ef90c30a7e7 | 379 | py | Python | src/utils/Evaluator.py | elfaizamine/loan_default_prediction | c76632b0757e9f23d347e00bcd755d26800a54be | [
"MIT"
] | null | null | null | src/utils/Evaluator.py | elfaizamine/loan_default_prediction | c76632b0757e9f23d347e00bcd755d26800a54be | [
"MIT"
] | null | null | null | src/utils/Evaluator.py | elfaizamine/loan_default_prediction | c76632b0757e9f23d347e00bcd755d26800a54be | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
from sklearn import metrics
class Evaluator:
def __init__(self, y_true, y_pred):
"""
calculate auc : area under roc curve
"""
self.auc = self.auc(y_true, y_pred)
def auc(self, y_true, y_pred):
FF, TT, thresholds = metrics.roc_curv... | 19.947368 | 62 | 0.622691 | 56 | 379 | 3.982143 | 0.446429 | 0.089686 | 0.107623 | 0.179372 | 0.125561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279683 | 379 | 18 | 63 | 21.055556 | 0.81685 | 0.094987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e53d52936557fab1d6afac1ad13ee2619cc016c | 449 | py | Python | iaso/migrations/0065_auto_20201201_1456.py | ekhalilbsq/iaso | e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee | [
"MIT"
] | 29 | 2020-12-26T07:22:19.000Z | 2022-03-07T13:40:09.000Z | iaso/migrations/0065_auto_20201201_1456.py | ekhalilbsq/iaso | e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee | [
"MIT"
] | 150 | 2020-11-09T15:03:27.000Z | 2022-03-07T15:36:07.000Z | iaso/migrations/0065_auto_20201201_1456.py | ekhalilbsq/iaso | e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee | [
"MIT"
] | 4 | 2020-11-09T10:38:13.000Z | 2021-10-04T09:42:47.000Z | # Generated by Django 3.0.7 on 2020-12-01 14:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("iaso", "0064_instance_deleted")]
operations = [
migrations.AlterField(
model_name="featureflag", name="code", field=models.CharField(max_leng... | 28.0625 | 101 | 0.67706 | 53 | 449 | 5.641509 | 0.735849 | 0.133779 | 0.167224 | 0.19398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.18931 | 449 | 15 | 102 | 29.933333 | 0.763736 | 0.100223 | 0 | 0 | 1 | 0 | 0.126866 | 0.052239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e5841b0b5452fe3f18e4012f65cd3755e441a4a | 950 | py | Python | schema/__init__.py | p4l1ly/automata-safa-capnp | 4aed4f30b217a979f6229db5e3c72f979d31bb76 | [
"BSD-3-Clause"
] | null | null | null | schema/__init__.py | p4l1ly/automata-safa-capnp | 4aed4f30b217a979f6229db5e3c72f979d31bb76 | [
"BSD-3-Clause"
] | null | null | null | schema/__init__.py | p4l1ly/automata-safa-capnp | 4aed4f30b217a979f6229db5e3c72f979d31bb76 | [
"BSD-3-Clause"
] | null | null | null | import os
import capnp
import operator
import sys
from importlib.abc import Loader, MetaPathFinder
from importlib.util import spec_from_loader
from pathlib import Path
from functools import reduce
capnp.remove_import_hook()
my_path = Path(os.path.dirname(os.path.abspath(__file__)))
class _Importer(MetaPathFinder, Lo... | 25 | 73 | 0.653684 | 113 | 950 | 5.300885 | 0.442478 | 0.043406 | 0.046745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00141 | 0.253684 | 950 | 37 | 74 | 25.675676 | 0.843441 | 0 | 0 | 0.129032 | 0 | 0 | 0.008421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.032258 | 0.354839 | 0 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1e61c19b1fa849a545aa5955ebc1129a3e165719 | 284 | py | Python | zencad/interactive/axis.py | Spiritdude/zencad | 4e63b1a6306dd235f4daa2791b10249f7546c95b | [
"MIT"
] | 5 | 2018-04-11T14:11:40.000Z | 2018-09-12T19:03:36.000Z | zencad/interactive/axis.py | Spiritdude/zencad | 4e63b1a6306dd235f4daa2791b10249f7546c95b | [
"MIT"
] | null | null | null | zencad/interactive/axis.py | Spiritdude/zencad | 4e63b1a6306dd235f4daa2791b10249f7546c95b | [
"MIT"
] | null | null | null | from zencad.interactive.interactive_object import InteractiveObject
from OCC.Core.AIS import AIS_Axis
class AxisInteractiveObject(InteractiveObject):
def __init__(self, axis, color):
self.axis = axis
super().__init__(AIS_Axis(axis.to_Geom_Line()), color=color)
| 28.4 | 68 | 0.760563 | 35 | 284 | 5.8 | 0.571429 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147887 | 284 | 9 | 69 | 31.555556 | 0.838843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1e676f04e361424c9b9b57dd01173e2fd0c3d4da | 1,201 | py | Python | corehq/apps/es/tests/test_utils.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/es/tests/test_utils.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/es/tests/test_utils.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from datetime import date, datetime
from pytz import UTC, timezone
from ..utils import es_format_datetime
ET = timezone('US/Eastern')
def test_es_format_datetime():
def _assert_returns(date_or_datetime, expected):
actual = es_format_datetime(date_or_datetime)
assert actual == expected, f"Expect... | 42.892857 | 98 | 0.612823 | 183 | 1,201 | 3.918033 | 0.289617 | 0.075314 | 0.078103 | 0.146444 | 0.446304 | 0.260809 | 0.16318 | 0 | 0 | 0 | 0 | 0.273797 | 0.221482 | 1,201 | 27 | 99 | 44.481481 | 0.493048 | 0.067444 | 0 | 0 | 0 | 0 | 0.210197 | 0.11449 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e6d8fb3d8f40dfbf384a556f19e918e977fd462 | 252 | py | Python | api/conf/config.py | JackyCJ/flask-restful-login | 1bd31ee3da8ca667dc7592123ad5ee700dcb2595 | [
"MIT"
] | 76 | 2017-07-15T15:52:51.000Z | 2022-03-30T04:45:05.000Z | api/conf/config.py | JackyCJ/flask-restful-login | 1bd31ee3da8ca667dc7592123ad5ee700dcb2595 | [
"MIT"
] | 83 | 2019-08-10T06:58:11.000Z | 2022-03-31T16:29:37.000Z | api/conf/config.py | JackyCJ/flask-restful-login | 1bd31ee3da8ca667dc7592123ad5ee700dcb2595 | [
"MIT"
] | 23 | 2016-07-14T09:06:51.000Z | 2022-03-28T07:54:39.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
# Create a database in project and get it's path.
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "test.db")
| 25.2 | 73 | 0.674603 | 39 | 252 | 4.205128 | 0.717949 | 0.146341 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.123016 | 252 | 9 | 74 | 28 | 0.737557 | 0.34127 | 0 | 0 | 0 | 0 | 0.116564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
1e7861ff4e6f1898ca9de27db75540533d4577d2 | 484 | py | Python | Python/bst/lets_trie.py | creativcoder/AlgorithmsExercise | a25895205272d17714a6d7dc37eaa2b03c126c6c | [
"MIT"
] | null | null | null | Python/bst/lets_trie.py | creativcoder/AlgorithmsExercise | a25895205272d17714a6d7dc37eaa2b03c126c6c | [
"MIT"
] | null | null | null | Python/bst/lets_trie.py | creativcoder/AlgorithmsExercise | a25895205272d17714a6d7dc37eaa2b03c126c6c | [
"MIT"
] | null | null | null | # A node is an instance of a single node in the trie tree
class Node(object):
def __init__(self):
self.children = {}
def insert_key(self,key):
if key not in self.children:
self.children[key] = Node()
# given a word this Trie will trie to insrt
class Trie(object):
def __init__(self, word):
self.root = 'roo... | 19.36 | 57 | 0.688017 | 79 | 484 | 4.088608 | 0.43038 | 0.22291 | 0.080495 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190083 | 484 | 24 | 58 | 20.166667 | 0.82398 | 0.200413 | 0 | 0 | 0 | 0 | 0.023499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0.0625 | 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 | 0 | 0 | 0 | 2 |
1e8142af288c77ab6046cce4e5f4f27dd0d2bc03 | 269 | py | Python | tests/orientation_tests/test__repr__.py | lycantropos/rene | c73c616f3e360b994e92c950a3616a8ccb1136b9 | [
"MIT"
] | null | null | null | tests/orientation_tests/test__repr__.py | lycantropos/rene | c73c616f3e360b994e92c950a3616a8ccb1136b9 | [
"MIT"
] | null | null | null | tests/orientation_tests/test__repr__.py | lycantropos/rene | c73c616f3e360b994e92c950a3616a8ccb1136b9 | [
"MIT"
] | null | null | null | import sys
from hypothesis import given
from rene import Orientation
from . import strategies
@given(strategies.orientations)
def test_round_trip(orientation: Orientation) -> None:
result = repr(orientation)
assert eval(result, sys.modules) is orientation
| 19.214286 | 54 | 0.780669 | 33 | 269 | 6.30303 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152416 | 269 | 13 | 55 | 20.692308 | 0.912281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.5 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1e8587f831eb0191924a6fb1115988c766870ce9 | 689 | py | Python | mmhuman3d/core/conventions/keypoints_mapping/instavariety.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 472 | 2021-12-03T03:12:55.000Z | 2022-03-31T01:33:13.000Z | mmhuman3d/core/conventions/keypoints_mapping/instavariety.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 127 | 2021-12-03T05:00:14.000Z | 2022-03-31T13:47:33.000Z | mmhuman3d/core/conventions/keypoints_mapping/instavariety.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 37 | 2021-12-03T03:23:22.000Z | 2022-03-31T08:41:58.000Z | INSTAVARIETY_KEYPOINTS = [
'right_heel_openpose',
'right_knee_openpose',
'right_hip_openpose',
'left_hip_openpose',
'left_knee_openpose',
'left_heel_openpose',
'right_wrist_openpose',
'right_elbow_openpose',
'right_shoulder_openpose',
'left_shoulder_openpose',
'left_elbow_ope... | 24.607143 | 30 | 0.699565 | 73 | 689 | 5.958904 | 0.260274 | 0.303448 | 0.078161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187228 | 689 | 27 | 31 | 25.518519 | 0.776786 | 0 | 0 | 0 | 0 | 0 | 0.667634 | 0.161103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e8dff84bf260e37d0a7da4269b967a651c8336e | 147 | py | Python | capitulo-05/ex05.py | bryan-lima/exercicios-livro-introd-prog-python-3ed | b6bc26dced9728510865704a80cb0d97f81f756b | [
"MIT"
] | 3 | 2021-11-09T17:54:10.000Z | 2022-01-30T22:32:25.000Z | capitulo-05/ex05.py | bryan-lima/exercicios-livro-introd-prog-python-3ed | b6bc26dced9728510865704a80cb0d97f81f756b | [
"MIT"
] | null | null | null | capitulo-05/ex05.py | bryan-lima/exercicios-livro-introd-prog-python-3ed | b6bc26dced9728510865704a80cb0d97f81f756b | [
"MIT"
] | null | null | null | # Reescreva o programa anterior para escrever os 10 primeiros múltiplos de 3
lastNumber = 30
n = 3
while n <= lastNumber:
print(n)
n += 3
| 18.375 | 76 | 0.687075 | 23 | 147 | 4.391304 | 0.73913 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0.244898 | 147 | 7 | 77 | 21 | 0.846847 | 0.503401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e9151fbe802bf8cc3a1fe455244d59c40229ca9 | 15,165 | py | Python | extension/TypeFacet-RoboFont.roboFontExt/lib/tfs/common/TFSGlyph.py | charlesmchen/typefacet-robofont | 1dee6f1054cfa0cdf87a490ff017a7098f894ef2 | [
"Apache-2.0"
] | 1 | 2019-07-15T22:29:56.000Z | 2019-07-15T22:29:56.000Z | src-all/tfs/common/TFSGlyph.py | charlesmchen/typefacet-robofont | 1dee6f1054cfa0cdf87a490ff017a7098f894ef2 | [
"Apache-2.0"
] | null | null | null | src-all/tfs/common/TFSGlyph.py | charlesmchen/typefacet-robofont | 1dee6f1054cfa0cdf87a490ff017a7098f894ef2 | [
"Apache-2.0"
] | null | null | null | '''
robofont-extensions-and-scripts
TFSGlyph.py
https://github.com/charlesmchen/robofont-extensions-and-scripts
Copyright (c) 2012 Charles Matthew Chen
charlesmchen@gmail.com
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. D... | 70.208333 | 1,307 | 0.713419 | 1,959 | 15,165 | 5.519653 | 0.273099 | 0.016184 | 0.011653 | 0.007768 | 0.155738 | 0.115047 | 0.064182 | 0.056229 | 0.046796 | 0.046796 | 0 | 0.006505 | 0.229608 | 15,165 | 215 | 1,308 | 70.534884 | 0.919028 | 0.131223 | 0 | 0.118421 | 0 | 0 | 0.020559 | 0 | 0 | 0 | 0 | 0.004651 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e9b577b7f413d5ad5843da3f3b556606b15fe32 | 8,709 | py | Python | get_wiki.py | 84adam/python3-nlp | 977c79e7d207e6d49b5c50c837f454d7b13db681 | [
"MIT"
] | null | null | null | get_wiki.py | 84adam/python3-nlp | 977c79e7d207e6d49b5c50c837f454d7b13db681 | [
"MIT"
] | null | null | null | get_wiki.py | 84adam/python3-nlp | 977c79e7d207e6d49b5c50c837f454d7b13db681 | [
"MIT"
] | 3 | 2021-05-21T12:11:05.000Z | 2022-03-11T06:05:45.000Z | import bs4
import requests
from urllib.request import urlopen
from itertools import chain
from html.parser import HTMLParser
from requests import get
import os
import time
from pathlib import Path
import pandas as pd
from keras.preprocessing.text import text_to_word_sequence
# WIKI TEXT BODY SCRAPING FUNCTION
def wik... | 52.463855 | 128 | 0.662303 | 1,158 | 8,709 | 4.879102 | 0.226252 | 0.141239 | 0.322832 | 0.383363 | 0.565487 | 0.275929 | 0.033982 | 0 | 0 | 0 | 0 | 0.002358 | 0.172236 | 8,709 | 165 | 129 | 52.781818 | 0.781384 | 0.041107 | 0 | 0 | 0 | 0 | 0.592855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.084615 | 0 | 0.161538 | 0.023077 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ea81ca38b70040f597d87185746d3648aaa4910 | 25,332 | py | Python | melodic/lib/python2.7/dist-packages/mavros_msgs/msg/_CommandCode.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 10 | 2021-03-15T03:58:06.000Z | 2021-12-30T15:33:38.000Z | devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_CommandCode.py | arijitnoobstar/UAVProjectileCatcher | 3c1bed80df167192cb4b971b58c891187628142e | [
"Apache-2.0"
] | 1 | 2021-09-09T15:29:31.000Z | 2021-09-09T15:29:31.000Z | melodic/lib/python2.7/dist-packages/mavros_msgs/msg/_CommandCode.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 4 | 2021-03-06T09:35:58.000Z | 2021-05-24T14:34:11.000Z | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from mavros_msgs/CommandCode.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class CommandCode(genpy.Message):
_md5sum = "9c980aa1230f756ac9d693ff35accb29... | 60.748201 | 516 | 0.702195 | 3,565 | 25,332 | 4.817952 | 0.207854 | 0.020028 | 0.008326 | 0.003784 | 0.323416 | 0.250699 | 0.204879 | 0.182464 | 0.172799 | 0.161737 | 0 | 0.051715 | 0.249645 | 25,332 | 416 | 517 | 60.894231 | 0.851904 | 0.046502 | 0 | 0.065672 | 1 | 0.140299 | 0.810818 | 0.045754 | 0 | 0 | 0.000417 | 0 | 0 | 1 | 0.020896 | false | 0.00597 | 0.020896 | 0 | 0.414925 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ea982d48261ba22b7efd1730632578e34e4f859 | 337 | py | Python | notes/admin.py | hamidrezakp/Simple-Django-notes-app | 70e7b575e90740b8c12a7aa7761d9e3e2e52e02c | [
"MIT"
] | null | null | null | notes/admin.py | hamidrezakp/Simple-Django-notes-app | 70e7b575e90740b8c12a7aa7761d9e3e2e52e02c | [
"MIT"
] | null | null | null | notes/admin.py | hamidrezakp/Simple-Django-notes-app | 70e7b575e90740b8c12a7aa7761d9e3e2e52e02c | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Note
class NoteAdmin(admin.ModelAdmin):
readonly_fields= ['created_at', 'updated_at', 'author']
def save_model(self, request, obj, form, change):
obj.author = request.user
super().save_model(request, obj, form, change)
admin.site.register(... | 25.923077 | 59 | 0.712166 | 44 | 337 | 5.340909 | 0.636364 | 0.076596 | 0.119149 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169139 | 337 | 12 | 60 | 28.083333 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.077151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1eb741324553de85b65c74694b1a8e5d44149bad | 989 | py | Python | cms/views.py | lemur-cms/lemur-cms | 6dfa087f9c16f1452c0af935855abfedd73fa239 | [
"BSD-2-Clause"
] | null | null | null | cms/views.py | lemur-cms/lemur-cms | 6dfa087f9c16f1452c0af935855abfedd73fa239 | [
"BSD-2-Clause"
] | 2 | 2022-02-12T23:03:18.000Z | 2022-02-26T19:08:27.000Z | cms/views.py | lemur-cms/lemur-cms | 6dfa087f9c16f1452c0af935855abfedd73fa239 | [
"BSD-2-Clause"
] | 1 | 2019-10-19T22:21:33.000Z | 2019-10-19T22:21:33.000Z | from django.shortcuts import render
from django.http import HttpResponse
from rest_framework import viewsets, filters, generics
from rest_framework.views import APIView
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.pagination import PageNumberPagination
from cms.models import Page
fr... | 35.321429 | 96 | 0.772497 | 108 | 989 | 6.916667 | 0.518519 | 0.069612 | 0.068273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001174 | 0.138524 | 989 | 27 | 97 | 36.62963 | 0.875587 | 0.047523 | 0 | 0 | 0 | 0 | 0.091587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0.05 | 0.95 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1ecc0290eeff6784236144e86f30d69d20b84f0f | 4,567 | py | Python | node_master.py | exosite-garage/synapse_nodes | 06a6942e2558e854b946c08e69c444d03c124d4c | [
"BSD-3-Clause"
] | 1 | 2017-11-03T15:32:33.000Z | 2017-11-03T15:32:33.000Z | node_master.py | exosite-garage/synapse_nodes | 06a6942e2558e854b946c08e69c444d03c124d4c | [
"BSD-3-Clause"
] | null | null | null | node_master.py | exosite-garage/synapse_nodes | 06a6942e2558e854b946c08e69c444d03c124d4c | [
"BSD-3-Clause"
] | null | null | null | #==============================================================================
# node_master.py
# SNAP Master Node code that interacts with other nodes on the SNAP network
# to receive their data and forward it onto a serial-to-Internet gateway for
# remote monitoring purposes. This is part of an Exosite-compatible S... | 47.082474 | 90 | 0.597986 | 503 | 4,567 | 5.349901 | 0.481113 | 0.029729 | 0.013378 | 0.015608 | 0.068376 | 0.050539 | 0.050539 | 0.050539 | 0.050539 | 0.050539 | 0 | 0.011801 | 0.146486 | 4,567 | 96 | 91 | 47.572917 | 0.678553 | 0.71097 | 0 | 0 | 0 | 0 | 0.076861 | 0.024272 | 0 | 0 | 0.004854 | 0 | 0 | 0 | null | null | 0.105263 | 0.078947 | null | null | 0.184211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
94a51cb03cd32d86e85ab731f06b185ae8faa39d | 1,223 | py | Python | timeslotsAPI/app/demo/v1/routes.py | NeilBaksi/Dental-Appointment-Bot | 414c34a696977257d1e7fc327206282eb42dd3ea | [
"MIT"
] | null | null | null | timeslotsAPI/app/demo/v1/routes.py | NeilBaksi/Dental-Appointment-Bot | 414c34a696977257d1e7fc327206282eb42dd3ea | [
"MIT"
] | null | null | null | timeslotsAPI/app/demo/v1/routes.py | NeilBaksi/Dental-Appointment-Bot | 414c34a696977257d1e7fc327206282eb42dd3ea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
###
### DO NOT CHANGE THIS FILE
###
### The code is auto generated, your change will be overwritten by
### code generating.
###
from __future__ import absolute_import
from .api.timeslots_dentistID import TimeslotsDentistid
from .api.timeslots import Timeslots
from .api.timeslots_dentistID_ti... | 50.958333 | 168 | 0.800491 | 121 | 1,223 | 7.900826 | 0.322314 | 0.150628 | 0.175732 | 0.104603 | 0.22908 | 0.119247 | 0 | 0 | 0 | 0 | 0 | 0.000888 | 0.079313 | 1,223 | 24 | 169 | 50.958333 | 0.848135 | 0.103843 | 0 | 0 | 1 | 0 | 0.290622 | 0.255339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 | 0 | 0 | 0 | 2 |
94caca45c876379996eb1e5fe7824c3b1a2b7f26 | 7,978 | py | Python | doozer/client.py | ActiveState/pydoozer | d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b | [
"MIT"
] | 1 | 2017-08-29T14:52:05.000Z | 2017-08-29T14:52:05.000Z | doozer/client.py | ActiveState/pydoozer | d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b | [
"MIT"
] | null | null | null | doozer/client.py | ActiveState/pydoozer | d9b165ed9aafe6ed5feaca5a6fc08cbefd9be51b | [
"MIT"
] | null | null | null | import os
import struct
import gevent
import gevent.event
import gevent.socket
import google.protobuf.message
from msg_pb2 import Response
from msg_pb2 import Request
CONNECT_TIMEOUT = 5.0
REQUEST_TIMEOUT = 2.0
DEFAULT_URI = "doozer:?%s" % "&".join([
"ca=127.0.0.1:8046",
"ca=127.0.0.1:8041",
"ca=127.0.0.... | 32.563265 | 84 | 0.586488 | 924 | 7,978 | 5.004329 | 0.213203 | 0.036332 | 0.047578 | 0.046713 | 0.222318 | 0.188149 | 0.159818 | 0.151817 | 0.132785 | 0.115917 | 0 | 0.01155 | 0.305465 | 7,978 | 244 | 85 | 32.696721 | 0.822956 | 0.014415 | 0 | 0.226601 | 0 | 0 | 0.030894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.064039 | 0.039409 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
94de5ebc7c73b43d6ef0f7006cc1fd474681a311 | 5,466 | py | Python | mod/db/models.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | mod/db/models.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | mod/db/models.py | MoreliaTalk/Server | 5d42cf999682271ef8d54b5c6e09f06bed08d946 | [
"Unlicense"
] | null | null | null | """
Copyright (c) 2020 - present NekrodNIK, Stepan Skriabin, rus-ai and other.
Look at the file AUTHORS.md(located at the root of the project) to get the
full list.
This file is part of Morelia Server.
Morelia Server is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General ... | 40.488889 | 79 | 0.679839 | 689 | 5,466 | 5.354136 | 0.272859 | 0.0656 | 0.051504 | 0.062348 | 0.29981 | 0.190024 | 0.113581 | 0.065058 | 0.065058 | 0.065058 | 0 | 0.00121 | 0.244054 | 5,466 | 134 | 80 | 40.791045 | 0.891578 | 0.635382 | 0 | 0.119048 | 0 | 0 | 0.023823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.02381 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
94e42a20e811b3c4c8adc67aee484d21ee61eb8f | 432 | py | Python | src/pythonFEA/templates/property.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | src/pythonFEA/templates/property.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | src/pythonFEA/templates/property.py | honzatomek/pythonFEA | c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7 | [
"MIT"
] | null | null | null | from .errors import *
from .basic import Basic
import logging
class Property(Basic):
command = 'PROPERTY'
type = 'Property'
storage_type = 'label'
def __init__(self, label, non_structural_mass = 0.0):
super().__init__(id=None, label=label)
self.nsm = non_structural_mass
@property
def nsm(self):
... | 19.636364 | 55 | 0.708333 | 59 | 432 | 4.830508 | 0.40678 | 0.182456 | 0.238596 | 0.140351 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005698 | 0.1875 | 432 | 21 | 56 | 20.571429 | 0.806268 | 0 | 0 | 0 | 0 | 0 | 0.048724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
94ec60d726d1c7025eb5dc2c24a497e98d0c9056 | 15,039 | py | Python | Ch18/gpc.py | quietcoolwu/MLCode | b4bdb7ee3468da597e5d16cfb58728e3c29ca889 | [
"Xnet",
"X11"
] | null | null | null | Ch18/gpc.py | quietcoolwu/MLCode | b4bdb7ee3468da597e5d16cfb58728e3c29ca889 | [
"Xnet",
"X11"
] | null | null | null | Ch18/gpc.py | quietcoolwu/MLCode | b4bdb7ee3468da597e5d16cfb58728e3c29ca889 | [
"Xnet",
"X11"
] | null | null | null | # Code from Chapter 18 of Machine Learning: An Algorithmic Perspective (2nd Edition)
# by Stephen Marsland (http://stephenmonika.net)
# You are free to use, change, or redistribute the code in any way you wish for
# non-commercial purposes, but please maintain the name of the original author.
# This code comes with no... | 37.041872 | 122 | 0.541924 | 2,464 | 15,039 | 3.302354 | 0.09862 | 0.014747 | 0.010323 | 0.011798 | 0.763549 | 0.732702 | 0.696448 | 0.667814 | 0.662529 | 0.660071 | 0 | 0.058818 | 0.233526 | 15,039 | 405 | 123 | 37.133333 | 0.647089 | 0.139371 | 0 | 0.602113 | 0 | 0 | 0.016449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03169 | false | 0 | 0.010563 | 0 | 0.070423 | 0.070423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
94f3547b6d861aa035a7b7758d5e02a28082e623 | 197 | py | Python | application.py | phenopolis/phenopolis_genomics_browser | b67778fac41d16445eb983af9c505ef17e1949b2 | [
"MIT"
] | 3 | 2021-11-20T04:52:32.000Z | 2022-03-21T17:42:30.000Z | application.py | phenopolis/phenopolis_genomics_browser | b67778fac41d16445eb983af9c505ef17e1949b2 | [
"MIT"
] | 21 | 2021-10-20T16:39:38.000Z | 2022-03-04T12:47:46.000Z | application.py | phenopolis/phenopolis_genomics_browser | b67778fac41d16445eb983af9c505ef17e1949b2 | [
"MIT"
] | null | null | null | """
Flask app
"""
from views import APP_ENV, application
if __name__ == "__main__":
application.debug = False
if APP_ENV == "debug":
application.debug = True
application.run()
| 17.909091 | 38 | 0.649746 | 23 | 197 | 5.130435 | 0.608696 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228426 | 197 | 10 | 39 | 19.7 | 0.776316 | 0.045685 | 0 | 0 | 0 | 0 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
94f3f49e86448de339f43f2ca616b2920b9513bb | 465 | py | Python | json/utils.py | verbalsaintmars/python_util | 3cc018f36607e3f4715bb96cb76ec7097838b1ce | [
"MIT"
] | null | null | null | json/utils.py | verbalsaintmars/python_util | 3cc018f36607e3f4715bb96cb76ec7097838b1ce | [
"MIT"
] | null | null | null | json/utils.py | verbalsaintmars/python_util | 3cc018f36607e3f4715bb96cb76ec7097838b1ce | [
"MIT"
] | null | null | null | import json
def create_json(input):
return json.load(input)
def extract_value(expect_keys, json_dict):
"""
expect_keys: tuple , e.g ("nodeuser", "user")
return: None if no value, else value
"""
temp_val = json_dict.get(expect_keys[0])
if isinstance(temp_val, dict) and len(expect_keys) >... | 22.142857 | 59 | 0.649462 | 68 | 465 | 4.220588 | 0.441176 | 0.209059 | 0.114983 | 0.15331 | 0.139373 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.23871 | 465 | 20 | 60 | 23.25 | 0.799435 | 0.176344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
94fa2e14e0d1dfe16f4c15a317e698c6a669286d | 133 | py | Python | main (31).py | alyizzet/Python_Programming_Exercises | 96cc7ab6a760d58a8a08d511d834d13b162cf794 | [
"Apache-2.0"
] | null | null | null | main (31).py | alyizzet/Python_Programming_Exercises | 96cc7ab6a760d58a8a08d511d834d13b162cf794 | [
"Apache-2.0"
] | null | null | null | main (31).py | alyizzet/Python_Programming_Exercises | 96cc7ab6a760d58a8a08d511d834d13b162cf794 | [
"Apache-2.0"
] | null | null | null | def swap_columns(M, m, n, i, j):
x = 0
while x < len(M):
M[x][i], M[x][j] = M[x][j], M[x][i]
x = x +1
return print(M)
| 16.625 | 39 | 0.443609 | 32 | 133 | 1.8125 | 0.4375 | 0.137931 | 0.103448 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.293233 | 133 | 7 | 40 | 19 | 0.595745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a20090b70ca8a9617c581b36665d20b93d432a85 | 234 | py | Python | class1/p29_add_subtract_multiply_divide.py | anlei2014/ML-code | 4f501720ee94abc27534cf0aa7c30a8ecbf62398 | [
"MIT"
] | null | null | null | class1/p29_add_subtract_multiply_divide.py | anlei2014/ML-code | 4f501720ee94abc27534cf0aa7c30a8ecbf62398 | [
"MIT"
] | null | null | null | class1/p29_add_subtract_multiply_divide.py | anlei2014/ML-code | 4f501720ee94abc27534cf0aa7c30a8ecbf62398 | [
"MIT"
] | null | null | null | import tensorflow as tf
a = tf.ones([1, 3])
b = tf.fill([1, 3], 3.)
print("a:", a)
print("b:", b)
print("a+b:", tf.add(a, b))
print("a-b:", tf.subtract(a, b))
print("a*b:", tf.multiply(a, b))
print("b/a:", tf.divide(b, a))
| 21.272727 | 33 | 0.521368 | 49 | 234 | 2.489796 | 0.306122 | 0.098361 | 0.172131 | 0.196721 | 0.262295 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0.025773 | 0.17094 | 234 | 10 | 34 | 23.4 | 0.603093 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
a2044c1186ed483ffd6b0bcb3da7937d377f7460 | 1,740 | py | Python | openconfig/ydk/models/openconfig/openconfig_aaa.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 177 | 2016-03-15T17:03:51.000Z | 2022-03-18T16:48:44.000Z | openconfig/ydk/models/openconfig/openconfig_aaa.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 18 | 2016-03-30T10:45:22.000Z | 2020-07-14T16:28:13.000Z | openconfig/ydk/models/openconfig/openconfig_aaa.py | CiscoDevNet/ydk-py | 073731fea50694d0bc6cd8ebf10fec308dcc0aa9 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2016-03-16T20:38:57.000Z | 2022-02-22T04:26:02.000Z | """ openconfig_aaa
This module defines configuration and operational state data
related to authorization, authentication, and accounting (AAA)
management.
Portions of this model reuse data definitions or structure from
RFC 7317 \- A YANG Data Model for System Management
"""
import sys
from collections import Ordere... | 26.769231 | 126 | 0.697701 | 220 | 1,740 | 5.331818 | 0.422727 | 0.041773 | 0.034101 | 0.044331 | 0.461211 | 0.397272 | 0.397272 | 0.397272 | 0.397272 | 0.397272 | 0 | 0.018678 | 0.2 | 1,740 | 64 | 127 | 27.1875 | 0.823994 | 0.231034 | 0 | 0.4 | 0 | 0 | 0.127962 | 0.033175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.36 | 0 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a20954b9e637aa56b6ab4112e01b278d49be666a | 115 | py | Python | python_vuejs/__init__.py | star1990luck/perk-python-vue | d4ac81291142980df1e8b21cf42285f4af054526 | [
"MIT"
] | 47 | 2017-05-24T12:39:11.000Z | 2021-02-26T06:59:01.000Z | python_vuejs/__init__.py | star1990luck/perk-python-vue | d4ac81291142980df1e8b21cf42285f4af054526 | [
"MIT"
] | 67 | 2017-05-29T15:02:31.000Z | 2018-09-12T19:17:28.000Z | python_vuejs/__init__.py | star1990luck/perk-python-vue | d4ac81291142980df1e8b21cf42285f4af054526 | [
"MIT"
] | 7 | 2017-08-17T23:02:41.000Z | 2018-02-12T02:34:53.000Z | # -*- coding: utf-8 -*-
__author__ = """Christian Strappazzon"""
__email__ = 'lab@strap.it'
__version__ = '1.0.9'
| 19.166667 | 40 | 0.634783 | 14 | 115 | 4.357143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.13913 | 115 | 5 | 41 | 23 | 0.575758 | 0.182609 | 0 | 0 | 0 | 0 | 0.413043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a224241137af1e2beb8c8dfb0f5f9fc3ff31834a | 852 | py | Python | segmentation/algorithm/quickshift_test.py | peternara/graph-based-image-classification-gcn | 60e93b47691e960b7f06f7a5dc11191efe881178 | [
"MIT"
] | 44 | 2017-02-26T16:52:48.000Z | 2022-02-17T18:50:02.000Z | segmentation/algorithm/quickshift_test.py | hungerzs/graph-based-image-classification | d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8 | [
"MIT"
] | 2 | 2018-11-14T05:11:25.000Z | 2020-06-23T16:24:41.000Z | segmentation/algorithm/quickshift_test.py | hungerzs/graph-based-image-classification | d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8 | [
"MIT"
] | 13 | 2018-04-26T07:46:35.000Z | 2022-02-28T15:38:53.000Z | import tensorflow as tf
from .quickshift import quickshift
class QuickshiftTest(tf.test.TestCase):
def test_quickshift(self):
image = tf.constant([
[[255, 255, 255], [255, 255, 255], [0, 0, 0], [0, 0, 0]],
[[255, 255, 255], [255, 255, 255], [0, 0, 0], [0, 0, 0]],
[[0,... | 30.428571 | 77 | 0.467136 | 114 | 852 | 3.473684 | 0.324561 | 0.126263 | 0.136364 | 0.151515 | 0.282828 | 0.282828 | 0.242424 | 0.242424 | 0.242424 | 0.242424 | 0 | 0.204753 | 0.357981 | 852 | 27 | 78 | 31.555556 | 0.519196 | 0.152582 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bf3f371bc17442142ae43aa519da8c21f6e05bbe | 1,176 | py | Python | tests/conftest.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 24 | 2021-11-04T11:02:31.000Z | 2022-01-08T14:31:53.000Z | tests/conftest.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 8 | 2021-11-04T13:23:01.000Z | 2022-01-11T20:53:18.000Z | tests/conftest.py | prajmus/pypi_changes | 52aa64676fa650694ad0cbd85187fea1706265a8 | [
"MIT"
] | 5 | 2021-11-05T17:54:29.000Z | 2022-03-26T11:46:06.000Z | from __future__ import annotations
import sys
from pathlib import Path
from unittest.mock import MagicMock, create_autospec
import pytest
from _pytest.monkeypatch import MonkeyPatch
from pypi_changes._cli import Options
from tests import MakeDist
@pytest.fixture(autouse=True)
def _no_index(monkeypatch: MonkeyPatch... | 28 | 99 | 0.72534 | 151 | 1,176 | 5.456954 | 0.423841 | 0.063107 | 0.061893 | 0.058252 | 0.257282 | 0.070388 | 0 | 0 | 0 | 0 | 0 | 0.006104 | 0.164116 | 1,176 | 41 | 100 | 28.682927 | 0.832146 | 0 | 0 | 0.137931 | 0 | 0 | 0.115646 | 0.02466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.310345 | 0.034483 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bf5da77aeabd12ceb0b5e356d617cea7f17c6b26 | 138 | py | Python | customer/urls.py | Um9i/ERPv | f4bf8d801ad8f800107c92625123c1e59b439c40 | [
"MIT"
] | 8 | 2019-04-13T14:08:55.000Z | 2022-03-06T10:53:44.000Z | customer/urls.py | Um9i/ERPv | f4bf8d801ad8f800107c92625123c1e59b439c40 | [
"MIT"
] | 16 | 2019-03-31T20:22:21.000Z | 2022-01-15T11:43:57.000Z | customer/urls.py | Um9i/ERPv | f4bf8d801ad8f800107c92625123c1e59b439c40 | [
"MIT"
] | null | null | null | from . import views
routeList = (
(r"customers", views.CustomerViewSet),
(r"customer_products", views.CustomerProductViewSet),
)
| 19.714286 | 57 | 0.717391 | 13 | 138 | 7.538462 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 138 | 6 | 58 | 23 | 0.837607 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bf645d7debf666b250cc28d7fe102ce03898024c | 2,764 | py | Python | winograd.py | yerich/WinoCaptcha | 5abd6335e8fda1d2cf8d2d4c9c3f2324def19275 | [
"Unlicense",
"MIT"
] | 2 | 2019-04-01T20:43:11.000Z | 2019-04-02T10:19:18.000Z | winograd.py | yerich/WinoCaptcha | 5abd6335e8fda1d2cf8d2d4c9c3f2324def19275 | [
"Unlicense",
"MIT"
] | null | null | null | winograd.py | yerich/WinoCaptcha | 5abd6335e8fda1d2cf8d2d4c9c3f2324def19275 | [
"Unlicense",
"MIT"
] | null | null | null | import random
import re
from collections import Counter
from operator import itemgetter
class Winograd:
def __init__(self, filename):
self.schema = random_lines(filename, 1)[0]
def generate(self):
# Switch genders, 50% of the time
if(random.randint(0,1) == 1):
self.schema = re.sub("<malename>", "<femalena... | 35.435897 | 125 | 0.628075 | 405 | 2,764 | 4.241975 | 0.25679 | 0.104773 | 0.055879 | 0.069849 | 0.263097 | 0.242142 | 0.203725 | 0.14319 | 0.14319 | 0.107101 | 0 | 0.012653 | 0.170767 | 2,764 | 77 | 126 | 35.896104 | 0.736911 | 0.092981 | 0 | 0.126984 | 1 | 0 | 0.114309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063492 | null | null | 0.031746 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bf69b5f1a359c8b233314f0ea6eac2fff5564fb1 | 404 | py | Python | 06 Dictionary/copyfun.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | 3 | 2021-05-08T13:11:41.000Z | 2021-05-14T02:43:20.000Z | 06 Dictionary/copyfun.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | 06 Dictionary/copyfun.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | d2 = {"Sandy":"Veg", "Rugita":"Fish", "Eshwari":{"B":"maggi", "L":"Pizza", "D":"cake"}}
d3 = d2
print(d2.copy())
del d3["Sandy"]
print(d2)
print("\n")
d1 = {"Sandy":"Veg", "Rugita":"Fish", "Eshwari":{"B":"maggi", "L":"Pizza", "D":"cake"}}
d4 = d1.copy() # complete copy using dot
del d4["Sandy"]
... | 22.444444 | 87 | 0.542079 | 60 | 404 | 3.65 | 0.45 | 0.127854 | 0.127854 | 0.164384 | 0.383562 | 0.383562 | 0.383562 | 0.383562 | 0.383562 | 0.383562 | 0 | 0.043732 | 0.15099 | 404 | 18 | 88 | 22.444444 | 0.594752 | 0.056931 | 0 | 0.142857 | 0 | 0 | 0.278947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.