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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
812df20b6519893f06f8379d932b745391163d93 | 120 | py | Python | Beginner/1006.py | LorranSutter/URI-Online-Judge | aef885b9a7caa83484cf172e29eea8ec92fc3627 | [
"MIT"
] | null | null | null | Beginner/1006.py | LorranSutter/URI-Online-Judge | aef885b9a7caa83484cf172e29eea8ec92fc3627 | [
"MIT"
] | null | null | null | Beginner/1006.py | LorranSutter/URI-Online-Judge | aef885b9a7caa83484cf172e29eea8ec92fc3627 | [
"MIT"
] | null | null | null | A = float(input())
B = float(input())
C = float(input())
MEDIA = A*2+B*3+C*5
MEDIA /= 10
print("MEDIA = %.1f"% (MEDIA))
| 17.142857 | 30 | 0.566667 | 22 | 120 | 3.090909 | 0.545455 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059406 | 0.158333 | 120 | 6 | 31 | 20 | 0.613861 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d49463bd66e46a0bbdb08542e9d5628a486adbf3 | 132 | py | Python | regression/issue_50-part2.py | timgates42/pyahocorasick | 3eab1ed66cea1dd30a48eff03927326a166502e5 | [
"BSD-3-Clause"
] | 707 | 2015-03-26T02:43:06.000Z | 2022-03-28T07:54:06.000Z | regression/issue_50-part2.py | timgates42/pyahocorasick | 3eab1ed66cea1dd30a48eff03927326a166502e5 | [
"BSD-3-Clause"
] | 140 | 2015-04-18T04:47:19.000Z | 2022-03-09T11:24:50.000Z | regression/issue_50-part2.py | timgates42/pyahocorasick | 3eab1ed66cea1dd30a48eff03927326a166502e5 | [
"BSD-3-Clause"
] | 112 | 2015-06-17T03:51:32.000Z | 2022-03-09T01:58:58.000Z | from ahocorasick import Automaton
from pickle import load, dump
with open('automaton-wee.pickle', 'rb') as src:
auto = load(src)
| 22 | 47 | 0.742424 | 20 | 132 | 4.9 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 132 | 5 | 48 | 26.4 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d4a43a4ee54d6b8bd21a63d107cf9708082b6757 | 147 | py | Python | scripts/print_stats.py | hunterhector/DDSemantics | 883ef1015bd21d9b8575d8000faf3b506a09f21c | [
"Apache-2.0"
] | null | null | null | scripts/print_stats.py | hunterhector/DDSemantics | 883ef1015bd21d9b8575d8000faf3b506a09f21c | [
"Apache-2.0"
] | null | null | null | scripts/print_stats.py | hunterhector/DDSemantics | 883ef1015bd21d9b8575d8000faf3b506a09f21c | [
"Apache-2.0"
] | 2 | 2018-06-24T17:40:31.000Z | 2020-07-30T19:19:55.000Z | import pstats
import sys
dump = sys.argv[1]
top_k = int(sys.argv[2])
p = pstats.Stats(dump).strip_dirs().sort_stats('time')
p.print_stats(top_k)
| 16.333333 | 54 | 0.721088 | 28 | 147 | 3.607143 | 0.607143 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.108844 | 147 | 8 | 55 | 18.375 | 0.755725 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
d4acacda21635412b32eae73b98f68201f3fe8a8 | 915 | py | Python | Code/tunings.py | otfreetime/pyknon | 0443f14360e418a392c6c41f1f880080561fc71f | [
"MIT"
] | null | null | null | Code/tunings.py | otfreetime/pyknon | 0443f14360e418a392c6c41f1f880080561fc71f | [
"MIT"
] | null | null | null | Code/tunings.py | otfreetime/pyknon | 0443f14360e418a392c6c41f1f880080561fc71f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from fractions import Fraction as F
notes = "C C# D D# E F F# G G# A A# B".split()
pythagoras = [F(1,1), F(2187,2048), F(9,8), F(32,27), F(81,64), F(4,3),
F(729,512), F(3,2), F(6561,4096), F(27,16), F(16,9), F(243,128)]
just_intonation = [F(1,1), F(16,15), F(9,8), F(6,5), F(5,4)... | 27.727273 | 78 | 0.510383 | 196 | 915 | 2.352041 | 0.377551 | 0.021692 | 0.019523 | 0.02603 | 0.067245 | 0.067245 | 0.067245 | 0 | 0 | 0 | 0 | 0.203488 | 0.248087 | 915 | 32 | 79 | 28.59375 | 0.46657 | 0.021858 | 0 | 0 | 0 | 0 | 0.108501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.117647 | 0.352941 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 3 |
d4dea0cbad87b8d44992b111850aef3991745e94 | 176 | py | Python | Exercícios/1142 - PUM.py | NycoleRibeiro/Exercicios-URI | 6db585fade12e487b64775f063b7a85dcdf22137 | [
"MIT"
] | null | null | null | Exercícios/1142 - PUM.py | NycoleRibeiro/Exercicios-URI | 6db585fade12e487b64775f063b7a85dcdf22137 | [
"MIT"
] | null | null | null | Exercícios/1142 - PUM.py | NycoleRibeiro/Exercicios-URI | 6db585fade12e487b64775f063b7a85dcdf22137 | [
"MIT"
] | null | null | null | n = int(input())
c = 0
for i in range(1, n+1):
for j in range(0, 4):
c += 1
if j == 3:
print("PUM")
else:
print(c, end=' ')
| 17.6 | 29 | 0.369318 | 29 | 176 | 2.241379 | 0.62069 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 0.454545 | 176 | 9 | 30 | 19.555556 | 0.604167 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4e4d3e1321bf0cf6569536b604c1b3db30224c2 | 184 | py | Python | Reading Data/lesson-9-parse-artists-json-file/tests/test_index.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | null | null | null | Reading Data/lesson-9-parse-artists-json-file/tests/test_index.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | 2 | 2022-01-11T21:04:51.000Z | 2022-01-11T21:05:05.000Z | Reading Data/lesson-9-parse-artists-json-file/tests/test_index.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | null | null | null | def test_index():
i = pd.Index(['Amedeo Modigliani', 'Vasiliy Kandinskiy', 'Diego Rivera',
'Claude Monet', 'Rene Magritte'])
assert artists.index.equals(i)
| 30.666667 | 77 | 0.61413 | 21 | 184 | 5.333333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 184 | 5 | 78 | 36.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.402235 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be040e11faff367723606eff445559a6194b9184 | 2,334 | py | Python | bokeh/io/doc.py | kevin1kevin1k/bokeh | 9f34b5b710e2748ec803c12918ec1706098a3477 | [
"BSD-3-Clause"
] | 445 | 2019-01-26T13:50:26.000Z | 2022-03-18T05:17:38.000Z | bokeh/io/doc.py | kevin1kevin1k/bokeh | 9f34b5b710e2748ec803c12918ec1706098a3477 | [
"BSD-3-Clause"
] | 242 | 2019-01-29T15:48:27.000Z | 2022-03-31T22:09:21.000Z | bokeh/io/doc.py | kevin1kevin1k/bokeh | 9f34b5b710e2748ec803c12918ec1706098a3477 | [
"BSD-3-Clause"
] | 31 | 2019-03-10T09:51:27.000Z | 2022-02-14T23:11:12.000Z | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | 29.544304 | 82 | 0.310626 | 124 | 2,334 | 5.709677 | 0.596774 | 0.042373 | 0.048023 | 0.064972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003868 | 0.113967 | 2,334 | 78 | 83 | 29.923077 | 0.338491 | 0.791774 | 0 | 0.153846 | 0 | 0 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
be097fd9fca822b72a00c006c2d0a23d7c9257dc | 3,557 | py | Python | tensorflow/contrib/training/__init__.py | zhaojunz/tensorflow | d1415bdc03fcdb090752ab0c91ee529dc09eb4ee | [
"Apache-2.0"
] | 44 | 2017-01-26T11:39:36.000Z | 2019-06-28T10:03:19.000Z | tensorflow/contrib/training/__init__.py | zhaojunz/tensorflow | d1415bdc03fcdb090752ab0c91ee529dc09eb4ee | [
"Apache-2.0"
] | 5 | 2017-01-31T00:32:02.000Z | 2017-12-17T14:34:17.000Z | tensorflow/contrib/training/__init__.py | zhaojunz/tensorflow | d1415bdc03fcdb090752ab0c91ee529dc09eb4ee | [
"Apache-2.0"
] | 10 | 2017-03-27T04:15:07.000Z | 2018-07-09T15:03:03.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 45.025316 | 90 | 0.81923 | 436 | 3,557 | 6.486239 | 0.369266 | 0.11669 | 0.155941 | 0.215347 | 0.445191 | 0.431754 | 0.380127 | 0.28925 | 0.047383 | 0 | 0 | 0.002455 | 0.08406 | 3,557 | 78 | 91 | 45.602564 | 0.865562 | 0.373911 | 0 | 0 | 0 | 0 | 0.096686 | 0.031321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.806452 | 0 | 0.806452 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
be20b268542bd9fb5b925f915610a8d808658171 | 529 | py | Python | actions.py | matthewmercuri/mdbacktestv2 | 2525113458cdf71e7d99ac208ad35aea92169b99 | [
"MIT"
] | null | null | null | actions.py | matthewmercuri/mdbacktestv2 | 2525113458cdf71e7d99ac208ad35aea92169b99 | [
"MIT"
] | null | null | null | actions.py | matthewmercuri/mdbacktestv2 | 2525113458cdf71e7d99ac208ad35aea92169b99 | [
"MIT"
] | null | null | null | class Actions:
'''Have to figure out a way where everytime a method
in this class is called, it goes out and gets the
current df and portfolo
'''
def _test(self):
print(self.todays_df())
def _check_valid_buy(self, symbol, quantity):
pass
def _check_valid_sell(self, symbol,... | 24.045455 | 59 | 0.642722 | 72 | 529 | 4.569444 | 0.5 | 0.097264 | 0.218845 | 0.12766 | 0.364742 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274102 | 529 | 21 | 60 | 25.190476 | 0.856771 | 0.232514 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.25 | 0 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
076db5fd67526e20ac16e2029553889f61f428d2 | 451 | py | Python | toad/utils/decorator_test.py | brianWeng0223/toad | edf2b956fb4237a647f039ea08618dc89c598e07 | [
"MIT"
] | null | null | null | toad/utils/decorator_test.py | brianWeng0223/toad | edf2b956fb4237a647f039ea08618dc89c598e07 | [
"MIT"
] | null | null | null | toad/utils/decorator_test.py | brianWeng0223/toad | edf2b956fb4237a647f039ea08618dc89c598e07 | [
"MIT"
] | null | null | null | import pytest
import numpy as np
import pandas as pd
from .decorator import Decorator, frame_exclude
np.random.seed(1)
def func():
"This is a doc for method"
pass
def test_decorator_doc():
f = frame_exclude(func)
assert f.__doc__ == 'This is a doc for method'
def test_decorator_init_func():
... | 15.551724 | 50 | 0.643016 | 69 | 451 | 4.028986 | 0.507246 | 0.086331 | 0.05036 | 0.071942 | 0.136691 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0.021084 | 0.263858 | 451 | 28 | 51 | 16.107143 | 0.816265 | 0.053215 | 0 | 0 | 0 | 0 | 0.10643 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.235294 | false | 0.058824 | 0.235294 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
076e89bd67100c1a9b54b7545840cb1343410456 | 4,074 | py | Python | chromium/tools/chrome_proxy/common/chrome_proxy_metrics.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | chromium/tools/chrome_proxy/common/chrome_proxy_metrics.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 2 | 2017-03-09T09:00:50.000Z | 2017-09-21T15:48:20.000Z | chromium/tools/chrome_proxy/common/chrome_proxy_metrics.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
from common import network_metrics
from telemetry.page import page_test
from telemetry.value import scalar
CHROME_PROXY_VIA_HEA... | 35.736842 | 80 | 0.710113 | 524 | 4,074 | 5.444656 | 0.288168 | 0.061689 | 0.014721 | 0.050473 | 0.254118 | 0.238696 | 0.178058 | 0.065896 | 0.065896 | 0.065896 | 0 | 0.0055 | 0.196613 | 4,074 | 113 | 81 | 36.053097 | 0.866178 | 0.252332 | 0 | 0.147059 | 0 | 0 | 0.080537 | 0.008054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.044118 | 0.073529 | 0.102941 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
07866f4c25be096e045cf27d8bf9b0c97756fb9f | 2,790 | py | Python | aliyun-python-sdk-cloudwf/aliyunsdkcloudwf/request/v20170328/ListApRadioStatusRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-cloudwf/aliyunsdkcloudwf/request/v20170328/ListApRadioStatusRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-cloudwf/aliyunsdkcloudwf/request/v20170328/ListApRadioStatusRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.214286 | 84 | 0.769176 | 360 | 2,790 | 5.772222 | 0.288889 | 0.028874 | 0.067372 | 0.081809 | 0.149182 | 0.149182 | 0.149182 | 0 | 0 | 0 | 0 | 0.004946 | 0.130466 | 2,790 | 84 | 85 | 33.214286 | 0.851608 | 0.270251 | 0 | 0 | 0 | 0 | 0.137385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.477273 | false | 0 | 0.022727 | 0.227273 | 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 | 1 | 1 | 0 | 0 | 3 |
0786f8d0fc7a1a465304c32c68a338ae02c28eb0 | 3,805 | py | Python | pycatia/mec_mod_interfaces/origin_elements.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | pycatia/mec_mod_interfaces/origin_elements.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | pycatia/mec_mod_interfaces/origin_elements.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! usr/bin/python3.6
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... | 33.086957 | 108 | 0.509067 | 386 | 3,805 | 4.955959 | 0.30829 | 0.034501 | 0.031364 | 0.041819 | 0.553058 | 0.531626 | 0.486147 | 0.467329 | 0.467329 | 0.370099 | 0 | 0.052799 | 0.422602 | 3,805 | 114 | 109 | 33.377193 | 0.817934 | 0.680683 | 0 | 0.1875 | 1 | 0 | 0.055385 | 0.033846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
07ab1f91c14ed77cd1fc0e7542b2a25f634249dd | 363 | py | Python | winter/web/exceptions/exception_handler_generator.py | zhukovqs/winter | 20c361f29f89ffa0dc27501e12df8ef6e22a8e4c | [
"MIT"
] | 9 | 2019-01-24T11:50:19.000Z | 2019-07-05T07:58:46.000Z | winter/web/exceptions/exception_handler_generator.py | zhukovqs/winter | 20c361f29f89ffa0dc27501e12df8ef6e22a8e4c | [
"MIT"
] | 100 | 2019-01-29T08:11:38.000Z | 2020-04-03T12:00:42.000Z | winter/web/exceptions/exception_handler_generator.py | zhukovqs/winter | 20c361f29f89ffa0dc27501e12df8ef6e22a8e4c | [
"MIT"
] | 8 | 2020-07-16T13:56:50.000Z | 2021-12-27T03:33:23.000Z | from abc import ABC
from abc import abstractmethod
from typing import Type
from .handlers import ExceptionHandler
from .problem_handling_info import ProblemHandlingInfo
class ExceptionHandlerGenerator(ABC):
@abstractmethod
def generate(self, exception_class: Type[Exception], handling_info: ProblemHandlingInf... | 27.923077 | 119 | 0.807163 | 39 | 363 | 7.410256 | 0.487179 | 0.048443 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140496 | 363 | 12 | 120 | 30.25 | 0.926282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.555556 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
07b70f02457afc2690d6010316a9a6924b2abe37 | 394 | py | Python | TS3_JH_acq/jobs/Check_Vendor_Data/v0/validator_Check-Vendor-Data.py | lsst-camera-dh/ccstsscripts | 28e021a15640b346709cfbf6b68ae6cc9a2e5dd3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | TS3_JH_acq/jobs/Check_Vendor_Data/v0/validator_Check-Vendor-Data.py | lsst-camera-dh/ccstsscripts | 28e021a15640b346709cfbf6b68ae6cc9a2e5dd3 | [
"BSD-3-Clause-LBNL"
] | 1 | 2015-04-14T18:01:25.000Z | 2015-04-14T18:01:25.000Z | TS3_JH_acq/jobs/Check_Vendor_Data/v0/validator_Check-Vendor-Data.py | lsst-camera-dh/ccstsscripts | 28e021a15640b346709cfbf6b68ae6cc9a2e5dd3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
import glob
import lcatr.schema
import os
results = []
#results.append(lcatr.schema.valid(lcatr.schema.get('TS3_flat'),stat=tsstat))
#copy
#os.system("cp -vp /tmp/scan/* .")
files = glob.glob('*.*')
data_products = [lcatr.schema.fileref.make(item) for item in files]
results.extend(data... | 20.736842 | 77 | 0.72335 | 58 | 394 | 4.827586 | 0.603448 | 0.235714 | 0.121429 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002849 | 0.109137 | 394 | 18 | 78 | 21.888889 | 0.794872 | 0.337563 | 0 | 0 | 0 | 0 | 0.011673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
07c748b4b3801698aebc2de89df93f18322b410d | 527 | py | Python | example/aadhaartest/__init__.py | pingali/django-aadhaar | 5cca10742ceb56436bba7b4dcb3bba2213cd4f1c | [
"MIT"
] | 3 | 2018-06-02T06:03:11.000Z | 2020-04-13T08:20:41.000Z | example/aadhaartest/__init__.py | pingali/django-aadhaar | 5cca10742ceb56436bba7b4dcb3bba2213cd4f1c | [
"MIT"
] | 1 | 2017-11-09T11:25:38.000Z | 2018-05-24T09:00:44.000Z | example/aadhaartest/__init__.py | pingali/django-aadhaar | 5cca10742ceb56436bba7b4dcb3bba2213cd4f1c | [
"MIT"
] | 5 | 2015-05-03T01:20:57.000Z | 2021-03-24T17:36:03.000Z |
# Bug fix to ensure that recaptcha works with google https. It was SSLv2
# which is considered insecure. Google's server wants to talk only v3.
# This will force v3. The code is from python bugs site
import urllib2
from .lib.connection import HTTPSHandlerV3
# install opener
#print "INSTALLING CUSTOM HTTPS OPENER... | 32.9375 | 90 | 0.757116 | 75 | 527 | 5.173333 | 0.76 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026726 | 0.148008 | 527 | 15 | 91 | 35.133333 | 0.837416 | 0.724858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
07caf8ad1551c7b95c6904bc2d225b61ab391451 | 299 | py | Python | testserver/submodule/subsubmodule/submodulea.py | akubera/batavia | b56f2a3f54242f81aea3a5a048356a03f0d49494 | [
"BSD-3-Clause"
] | 1,256 | 2015-08-09T07:44:02.000Z | 2019-03-27T05:41:24.000Z | testserver/submodule/subsubmodule/submodulea.py | akubera/batavia | b56f2a3f54242f81aea3a5a048356a03f0d49494 | [
"BSD-3-Clause"
] | 406 | 2015-08-12T03:40:29.000Z | 2019-02-25T19:26:02.000Z | testserver/submodule/subsubmodule/submodulea.py | akubera/batavia | b56f2a3f54242f81aea3a5a048356a03f0d49494 | [
"BSD-3-Clause"
] | 589 | 2015-08-10T03:27:31.000Z | 2019-03-10T20:58:07.000Z | print("in submodule/subsubmodule/submodulea.py")
from .. import moduleb
from ..modulec import method4
from ..moduled import method5, submoduled
def method():
print("Calling method4 in submodule.subsubmodule.submodulea")
moduleb.method3()
method4()
method5()
submoduled.method6() | 27.181818 | 65 | 0.73913 | 33 | 299 | 6.69697 | 0.575758 | 0.099548 | 0.208145 | 0.298643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027559 | 0.150502 | 299 | 11 | 66 | 27.181818 | 0.84252 | 0 | 0 | 0 | 0 | 0 | 0.303333 | 0.23 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.3 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
07ea0d1aba35c3d160b24f31252dd60d073d69b5 | 8,525 | py | Python | mathlibpy/sets/universes.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | 1 | 2020-06-09T05:43:33.000Z | 2020-06-09T05:43:33.000Z | mathlibpy/sets/universes.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | 15 | 2016-03-06T17:10:40.000Z | 2016-05-28T14:06:16.000Z | mathlibpy/sets/universes.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | null | null | null | import abc
import numbers
from mathlibpy.constants import *
class TypeUniverseSet(object):
"""
The set that defines the universe of all items of a certain type.
Not compatible with normal sets.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def __contains__(self, item):
"""
... | 24.781977 | 116 | 0.640821 | 1,038 | 8,525 | 5.095376 | 0.131021 | 0.077519 | 0.036302 | 0.035924 | 0.631688 | 0.572131 | 0.527699 | 0.515598 | 0.467196 | 0.442995 | 0 | 0.009726 | 0.276364 | 8,525 | 343 | 117 | 24.854227 | 0.847625 | 0.102053 | 0 | 0.688119 | 0 | 0 | 0.025797 | 0 | 0 | 0 | 0 | 0.002915 | 0 | 1 | 0.381188 | false | 0 | 0.014851 | 0.277228 | 0.811881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
07fd543574f5a01508b3174541f91030d7dbe610 | 840 | py | Python | client/app/menu_screen/model.py | wkta/open-bomberman-py | a58c279178368f261ac164866364acb47082d7ca | [
"MIT"
] | 1 | 2020-12-20T22:10:24.000Z | 2020-12-20T22:10:24.000Z | client/app/menu_screen/model.py | wkta/open-bomberman-py | a58c279178368f261ac164866364acb47082d7ca | [
"MIT"
] | null | null | null | client/app/menu_screen/model.py | wkta/open-bomberman-py | a58c279178368f261ac164866364acb47082d7ca | [
"MIT"
] | null | null | null | from def_gevents import MyEvTypes
from coremon_main import CogObject
class MenuScreenModel(CogObject):
SOLO_CODE, MULTI_CODE, NETWCONFIG_CODE, QUIT_OPTION = range(4)
def __init__(self):
super().__init__()
self._selected_mode = 0
self.__nb_modes = 4
@property
def nb_modes(sel... | 26.25 | 66 | 0.678571 | 106 | 840 | 4.95283 | 0.339623 | 0.228571 | 0.304762 | 0.114286 | 0.464762 | 0.392381 | 0.175238 | 0.175238 | 0 | 0 | 0 | 0.010955 | 0.239286 | 840 | 31 | 67 | 27.096774 | 0.810642 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.086957 | 0.434783 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6afcddbb6f73c24d02e9872d56f03611eb28bae0 | 101 | py | Python | PBO_18102/Latihan6.3.parameter2.py | mjeiner28/PBO | e2885243a576d2ebb61fff66b9f1bf138be98d28 | [
"MIT"
] | null | null | null | PBO_18102/Latihan6.3.parameter2.py | mjeiner28/PBO | e2885243a576d2ebb61fff66b9f1bf138be98d28 | [
"MIT"
] | null | null | null | PBO_18102/Latihan6.3.parameter2.py | mjeiner28/PBO | e2885243a576d2ebb61fff66b9f1bf138be98d28 | [
"MIT"
] | null | null | null | #deklarasi function parameter
def hello(nama):
print(f"heloo{nama}")
#panggil
hello("jeiner") | 20.2 | 30 | 0.70297 | 13 | 101 | 5.461538 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 5 | 31 | 20.2 | 0.825581 | 0.346535 | 0 | 0 | 0 | 0 | 0.278689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ed15422c30ae3505b4795fa8080cdca6cb979fa9 | 1,644 | py | Python | CIS1_PA2/cartesian.py | JiaheXu/CIS | 01881beb8db270ecda917af07c2588ed66dddbc9 | [
"MIT"
] | null | null | null | CIS1_PA2/cartesian.py | JiaheXu/CIS | 01881beb8db270ecda917af07c2588ed66dddbc9 | [
"MIT"
] | null | null | null | CIS1_PA2/cartesian.py | JiaheXu/CIS | 01881beb8db270ecda917af07c2588ed66dddbc9 | [
"MIT"
] | null | null | null | import numpy as np
import scipy
import math
class frame:
def __init__(self, R, t):
self.R = R
self.t = t
r_t = np.concatenate((R, t), 1)
bot = np.array([0, 0, 0, 1])
self.F = np.concatenate((r_t, bot))
def get_R(self):
return self.R
def get_t(self):
r... | 22.520548 | 74 | 0.575426 | 284 | 1,644 | 3.242958 | 0.221831 | 0.017372 | 0.060803 | 0.065147 | 0.130293 | 0.06949 | 0.06949 | 0.06949 | 0.06949 | 0.06949 | 0 | 0.031826 | 0.273723 | 1,644 | 72 | 75 | 22.833333 | 0.739531 | 0.159367 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.057692 | 0.134615 | 0.557692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ed2136ec5ed77759efbb97f7ab95211c429d5696 | 1,557 | py | Python | pymlconf/tests/test_yaml_syntax.py | ArashFatahzade/pymlconf | 3bfb283efbf1aa5aec545ed5fb2da196f1b72359 | [
"MIT"
] | null | null | null | pymlconf/tests/test_yaml_syntax.py | ArashFatahzade/pymlconf | 3bfb283efbf1aa5aec545ed5fb2da196f1b72359 | [
"MIT"
] | null | null | null | pymlconf/tests/test_yaml_syntax.py | ArashFatahzade/pymlconf | 3bfb283efbf1aa5aec545ed5fb2da196f1b72359 | [
"MIT"
] | null | null | null | import unittest
from pymlconf import Root
class MyWriter:
pass
class Test(unittest.TestCase):
def setUp(self):
self._builtin = '''
app:
name: MyApp
listen:
sock1:
addr: 192.168.0.1
port: 8080
sock2:
addr: 1... | 26.844828 | 66 | 0.581246 | 184 | 1,557 | 4.831522 | 0.326087 | 0.202475 | 0.191226 | 0.179978 | 0.424072 | 0.337458 | 0.112486 | 0 | 0 | 0 | 0 | 0.045699 | 0.283237 | 1,557 | 57 | 67 | 27.315789 | 0.750896 | 0.028259 | 0 | 0 | 0 | 0 | 0.338482 | 0.018133 | 0 | 0 | 0 | 0 | 0.317073 | 1 | 0.04878 | false | 0.02439 | 0.04878 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ed2ab501ee741e4140f73d3d26192c2f6171a424 | 555 | py | Python | tests/user_test.py | Joseph-Odhiambo/Blog-Post | fab5eaf1b6c2eefe66873db4bd841733256f9068 | [
"MIT"
] | null | null | null | tests/user_test.py | Joseph-Odhiambo/Blog-Post | fab5eaf1b6c2eefe66873db4bd841733256f9068 | [
"MIT"
] | null | null | null | tests/user_test.py | Joseph-Odhiambo/Blog-Post | fab5eaf1b6c2eefe66873db4bd841733256f9068 | [
"MIT"
] | null | null | null | import unittest
from app.models import User
class UserTest(unittest.TestCase):
def setUp(self):
self.new_user = User(username='joseph', email="test@test.com", bio='default bio', password='qwerty')
def test_password_setter(self):
self.assertTrue(self.new_user.hashed_password is not None)
... | 29.210526 | 109 | 0.718919 | 72 | 555 | 5.347222 | 0.486111 | 0.072727 | 0.114286 | 0.114286 | 0.251948 | 0.150649 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176577 | 555 | 18 | 110 | 30.833333 | 0.842451 | 0 | 0 | 0 | 0 | 0 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.333333 | false | 0.583333 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ed45d4f4cbc76fd5864548753c073a873cf7a452 | 170 | py | Python | file_util.py | LucasMolander/Wotlk-Gear-Upgrades | b27d130d6d126e4abd4de6de7ebeb09829db6b94 | [
"MIT"
] | null | null | null | file_util.py | LucasMolander/Wotlk-Gear-Upgrades | b27d130d6d126e4abd4de6de7ebeb09829db6b94 | [
"MIT"
] | null | null | null | file_util.py | LucasMolander/Wotlk-Gear-Upgrades | b27d130d6d126e4abd4de6de7ebeb09829db6b94 | [
"MIT"
] | null | null | null | import json
class FileUtil(object):
@staticmethod
def getJSONContents(filePath):
with open(filePath, 'r') as f:
return json.loads(f.read())
| 18.888889 | 39 | 0.629412 | 20 | 170 | 5.35 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258824 | 170 | 8 | 40 | 21.25 | 0.849206 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ed73ad5c757be24e9531d726f00a23f82ecbdf36 | 106 | py | Python | Aula13/exercicio_47.py | brenuvida/cursoemvideo | 8d482ea802ed93d984131f72188288c4ebdfc532 | [
"MIT"
] | null | null | null | Aula13/exercicio_47.py | brenuvida/cursoemvideo | 8d482ea802ed93d984131f72188288c4ebdfc532 | [
"MIT"
] | null | null | null | Aula13/exercicio_47.py | brenuvida/cursoemvideo | 8d482ea802ed93d984131f72188288c4ebdfc532 | [
"MIT"
] | null | null | null | print('Imprimir números pares entre 1 e 50')
for c in range(2,51,2):
print(c)
print('+++ FIM +++')
| 17.666667 | 44 | 0.59434 | 19 | 106 | 3.315789 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.207547 | 106 | 5 | 45 | 21.2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.45283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ed7eaa38dce6de0e73c2cbbf7ecfccc8c25d1789 | 19 | py | Python | py3status/version.py | laxd/py3status | 749e31419e65b5133b9c6b4a4ef4a4904d5cfe91 | [
"BSD-3-Clause"
] | null | null | null | py3status/version.py | laxd/py3status | 749e31419e65b5133b9c6b4a4ef4a4904d5cfe91 | [
"BSD-3-Clause"
] | null | null | null | py3status/version.py | laxd/py3status | 749e31419e65b5133b9c6b4a4ef4a4904d5cfe91 | [
"BSD-3-Clause"
] | null | null | null | version = '3.3rc0'
| 9.5 | 18 | 0.631579 | 3 | 19 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0.157895 | 19 | 1 | 19 | 19 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71ea4841b71638b390e2ecf4edb297e8b0c3dd6c | 2,947 | py | Python | xarray/backends/pydap_.py | lilyminium/xarray | 4bad455a801e91b329794895afa0040c868ff128 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2019-03-11T12:37:15.000Z | 2021-07-16T15:09:41.000Z | xarray/backends/pydap_.py | lilyminium/xarray | 4bad455a801e91b329794895afa0040c868ff128 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2018-10-04T06:56:42.000Z | 2018-10-04T07:11:13.000Z | xarray/backends/pydap_.py | lilyminium/xarray | 4bad455a801e91b329794895afa0040c868ff128 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2020-05-29T16:17:35.000Z | 2020-05-29T16:17:35.000Z | from __future__ import absolute_import, division, print_function
import numpy as np
from .. import Variable
from ..core import indexing
from ..core.pycompat import integer_types
from ..core.utils import Frozen, FrozenOrderedDict, is_dict_like
from .common import AbstractDataStore, BackendArray, robust_getitem
class... | 32.032609 | 78 | 0.64133 | 350 | 2,947 | 5.26 | 0.388571 | 0.029332 | 0.010864 | 0.020641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000929 | 0.269087 | 2,947 | 91 | 79 | 32.384615 | 0.85376 | 0.173057 | 0 | 0.036364 | 0 | 0 | 0.009692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.145455 | 0.109091 | 0.581818 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9c0586e4f14fe35478b001a3eaf8e48b8bcef461 | 2,192 | py | Python | GPy/kern/__init__.py | frb-yousefi/GPy | 13c73fdae88570fb300ab943f787c95cd49616f2 | [
"BSD-3-Clause"
] | 1 | 2019-05-10T08:45:42.000Z | 2019-05-10T08:45:42.000Z | GPy/kern/__init__.py | frb-yousefi/GPy | 13c73fdae88570fb300ab943f787c95cd49616f2 | [
"BSD-3-Clause"
] | null | null | null | GPy/kern/__init__.py | frb-yousefi/GPy | 13c73fdae88570fb300ab943f787c95cd49616f2 | [
"BSD-3-Clause"
] | null | null | null | """
Kernel module the kernels to sit in.
.. automodule:: .src
:members:
:private-members:
"""
from .src.kern import Kern
from .src.add import Add
from .src.prod import Prod
from .src.rbf import RBF
from .src.linear import Linear, LinearFull
from .src.static import Bias, White, Fixed, WhiteHeteroscedastic, Precom... | 39.854545 | 166 | 0.841697 | 312 | 2,192 | 5.721154 | 0.278846 | 0.168627 | 0.039216 | 0.035294 | 0.112605 | 0.09972 | 0.051541 | 0.051541 | 0 | 0 | 0 | 0.008109 | 0.099909 | 2,192 | 54 | 167 | 40.592593 | 0.896604 | 0.061588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9c09987485faefbd3eb3033ab2c48756fbe23a2b | 114 | py | Python | server_dev/example_app/extensions.py | elishakrasz1/effort | ede626ce76770e6673be810be1690b01154ac56a | [
"MIT"
] | null | null | null | server_dev/example_app/extensions.py | elishakrasz1/effort | ede626ce76770e6673be810be1690b01154ac56a | [
"MIT"
] | null | null | null | server_dev/example_app/extensions.py | elishakrasz1/effort | ede626ce76770e6673be810be1690b01154ac56a | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
db = SQLAlchemy()
migrate = Migrate()
| 16.285714 | 39 | 0.807018 | 14 | 114 | 6.428571 | 0.428571 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 114 | 6 | 40 | 19 | 0.918367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9c0b43e2295b569411d9aea564039265e8d0270b | 468 | py | Python | mockapp/controller/__init__.py | alexknight/headlinesmock | 6ee0afec153ad7ca9f9de0938834dcf61d9215c6 | [
"Apache-2.0"
] | null | null | null | mockapp/controller/__init__.py | alexknight/headlinesmock | 6ee0afec153ad7ca9f9de0938834dcf61d9215c6 | [
"Apache-2.0"
] | null | null | null | mockapp/controller/__init__.py | alexknight/headlinesmock | 6ee0afec153ad7ca9f9de0938834dcf61d9215c6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (C) 2005-2016 UC Mobile Limited. All Rights Reserved
# File : views.py
#
# Creation : 2015/12/11 16:53
# Author : shufeng.lsf@ucweb.com
###################################################... | 36 | 92 | 0.459402 | 41 | 468 | 5.097561 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051597 | 0.130342 | 468 | 12 | 93 | 39 | 0.461916 | 0.384615 | 0 | 0 | 0 | 0 | 0.19084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
9c3a2ee74ad849083730afc85e7382762d340a4f | 44 | py | Python | eupy/__init__.py | fivosts/eupy | 9e21ee2cf3ba5666db85723384c7b3422c71286a | [
"MIT"
] | null | null | null | eupy/__init__.py | fivosts/eupy | 9e21ee2cf3ba5666db85723384c7b3422c71286a | [
"MIT"
] | 4 | 2020-04-03T00:03:48.000Z | 2020-06-24T18:37:03.000Z | eupy/__init__.py | fivosts/eupy | 9e21ee2cf3ba5666db85723384c7b3422c71286a | [
"MIT"
] | null | null | null | __all__ = ['hermes', 'mrcrawley', 'native']
| 22 | 43 | 0.636364 | 4 | 44 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.477273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9c5810971f257cd6f619572dce768f733b4a0112 | 427 | py | Python | problems/p7.py | ali92hm/project-euler | 8ac3641e3c57708a3405727ad92d3d385d0107cf | [
"MIT"
] | null | null | null | problems/p7.py | ali92hm/project-euler | 8ac3641e3c57708a3405727ad92d3d385d0107cf | [
"MIT"
] | null | null | null | problems/p7.py | ali92hm/project-euler | 8ac3641e3c57708a3405727ad92d3d385d0107cf | [
"MIT"
] | null | null | null | from utils.prime import nth_prime
def answer(n):
"""
Returns the nth prime
----------
n : int
Nth prime
Returns
-------
prime : int
Nth prime value
Doc Test
----------
>>> answer(1)
2
>>> answer(2)
3
>>> answer(6)
13
>>> answer(10001)
10... | 11.861111 | 33 | 0.484778 | 48 | 427 | 4.104167 | 0.5625 | 0.203046 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.35363 | 427 | 35 | 34 | 12.2 | 0.648551 | 0.451991 | 0 | 0 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9c627e5adbb623aabcf53e73d18bba8496ab22e3 | 3,401 | py | Python | camera/models.py | abraha2d/mirador | 1bf34f7b7c2597ecf1fbdb7393f5b0bafe52ebd3 | [
"MIT"
] | null | null | null | camera/models.py | abraha2d/mirador | 1bf34f7b7c2597ecf1fbdb7393f5b0bafe52ebd3 | [
"MIT"
] | null | null | null | camera/models.py | abraha2d/mirador | 1bf34f7b7c2597ecf1fbdb7393f5b0bafe52ebd3 | [
"MIT"
] | null | null | null | from django.db import models
from overlay import models as overlay
class CameraType(models.Model):
name = models.CharField(max_length=255)
# streams is one-to-many to Stream
# ptz_settings is one-to-one to PTZSettings
def __str__(self):
return self.name
class Stream(models.Model):
clas... | 38.213483 | 112 | 0.730079 | 452 | 3,401 | 5.30531 | 0.223451 | 0.125104 | 0.150125 | 0.200167 | 0.577565 | 0.52794 | 0.437031 | 0.377398 | 0.27231 | 0.27231 | 0 | 0.021479 | 0.164951 | 3,401 | 88 | 113 | 38.647727 | 0.822887 | 0.142605 | 0 | 0.155172 | 0 | 0.017241 | 0.049536 | 0.033368 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.051724 | false | 0.034483 | 0.034483 | 0.051724 | 0.810345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9c6cca567c979c35153265febf1641d6b11949f2 | 146 | py | Python | PycharmProjects/pythonexercicios/aulas anteriores/ex012.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | PycharmProjects/pythonexercicios/aulas anteriores/ex012.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | PycharmProjects/pythonexercicios/aulas anteriores/ex012.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | prod = float(input('Qual é o valor do produto:'))
preço = prod - (prod*5/100)
print('O valor do produto na promoção é de R${:.2f}'.format(preço))
| 36.5 | 67 | 0.671233 | 27 | 146 | 3.62963 | 0.703704 | 0.122449 | 0.163265 | 0.306122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.150685 | 146 | 3 | 68 | 48.666667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.479452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92bb06748dbd2842e62b6df2b0525ac7e51cb52e | 701 | py | Python | image-scripts/run_flo.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 24 | 2021-07-29T11:18:24.000Z | 2022-03-09T06:03:48.000Z | image-scripts/run_flo.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 3 | 2021-08-18T07:34:39.000Z | 2022-03-18T02:16:00.000Z | image-scripts/run_flo.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 7 | 2021-07-30T12:24:09.000Z | 2022-03-31T15:25:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 29 17:52:45 2019
@author: akshita
"""
import os
os.system('''OMP_NUM_THREADS=8 python train_free.py \
--gammaD 10 --gammaG 10 --gzsl --nclass_all 102 --latent_size 1024 --manualSeed 806 \
--preprocessing --class_embedding att --nepoch 501 --ngh 4096 ... | 50.071429 | 124 | 0.699001 | 119 | 701 | 3.966387 | 0.739496 | 0.025424 | 0.029661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174342 | 0.132668 | 701 | 14 | 125 | 50.071429 | 0.601974 | 0.136947 | 0 | 0 | 0 | 0.375 | 0.948074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92be8c5de9c258c124dd42e54d76ab931da59e53 | 331 | py | Python | pysynphot/test/test_ticket161.py | axru5812/pysynphot | 527cb4ce55355c78ace5130a2fd8ca81a31ac1e6 | [
"BSD-3-Clause"
] | null | null | null | pysynphot/test/test_ticket161.py | axru5812/pysynphot | 527cb4ce55355c78ace5130a2fd8ca81a31ac1e6 | [
"BSD-3-Clause"
] | null | null | null | pysynphot/test/test_ticket161.py | axru5812/pysynphot | 527cb4ce55355c78ace5130a2fd8ca81a31ac1e6 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function
import numpy as np
from .utils import use_cdbs
from ..obsbandpass import ObsBandpass
@use_cdbs
def test_err_col():
"""Test that this obsmode does not raise exception."""
obs = ObsBandpass('stis,ccd,50ccd,mjd#55000')
assert np.any(obs.throu... | 23.642857 | 64 | 0.752266 | 48 | 331 | 4.979167 | 0.729167 | 0.058577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028674 | 0.1571 | 331 | 13 | 65 | 25.461538 | 0.827957 | 0.145015 | 0 | 0 | 0 | 0 | 0.086643 | 0.086643 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0.25 | 0.5 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
92c239eae83f15dc44479ae362c41b246b84a941 | 122 | py | Python | Discord_Games/__init__.py | Cryptex-github/Discord-Games | 0616cd9a5e7595642e2670cd180a80b8a4eb5623 | [
"MIT"
] | null | null | null | Discord_Games/__init__.py | Cryptex-github/Discord-Games | 0616cd9a5e7595642e2670cd180a80b8a4eb5623 | [
"MIT"
] | null | null | null | Discord_Games/__init__.py | Cryptex-github/Discord-Games | 0616cd9a5e7595642e2670cd180a80b8a4eb5623 | [
"MIT"
] | null | null | null | __version__ = "1.6.0"
__author__ = "Tom-the-Bomb"
__license__ = "MIT"
__copyright__ = "Copyright 2021 Tom-the-Bomb" | 30.5 | 45 | 0.688525 | 16 | 122 | 4.25 | 0.75 | 0.176471 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068627 | 0.163934 | 122 | 4 | 45 | 30.5 | 0.598039 | 0 | 0 | 0 | 0 | 0 | 0.382114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92c4ba908c754e72c553d5cbd51636a3bdbcc286 | 760 | py | Python | usuarios/admin.py | MarcosBB/E-commerce | 2a7c2bfd4512eb212eeec3bd49c65c70a65e6593 | [
"MIT"
] | 2 | 2021-07-27T19:27:15.000Z | 2021-08-16T18:26:22.000Z | usuarios/admin.py | MarcosBB/E-commerce | 2a7c2bfd4512eb212eeec3bd49c65c70a65e6593 | [
"MIT"
] | null | null | null | usuarios/admin.py | MarcosBB/E-commerce | 2a7c2bfd4512eb212eeec3bd49c65c70a65e6593 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUsuarioCreateForm, CustomUsuarioChangeForm
from .models import CustomUsuario
@admin.register(CustomUsuario)
class CustomUsuarioAdmin(UserAdmin):
add_form = CustomUsuarioCreateForm
form = CustomUsuarioCha... | 40 | 108 | 0.688158 | 70 | 760 | 7.357143 | 0.642857 | 0.038835 | 0.066019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155263 | 760 | 19 | 109 | 40 | 0.802181 | 0 | 0 | 0 | 0 | 0 | 0.272011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.3125 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
92d2030b4a5bda625f7e7f70664f4dcc3faba238 | 205 | py | Python | sak_store/setup.py | lodrion/sak | 1ab2b151cb61688696dbc0c432420350136ba9ad | [
"MIT"
] | null | null | null | sak_store/setup.py | lodrion/sak | 1ab2b151cb61688696dbc0c432420350136ba9ad | [
"MIT"
] | null | null | null | sak_store/setup.py | lodrion/sak | 1ab2b151cb61688696dbc0c432420350136ba9ad | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='sak-store',
version='0.0.1',
packages=find_packages(),
install_requires=[
"redis>=2.10.5",
"funcy>=1.14"
],
)
| 15.769231 | 43 | 0.580488 | 26 | 205 | 4.461538 | 0.769231 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065359 | 0.253659 | 205 | 12 | 44 | 17.083333 | 0.69281 | 0 | 0 | 0 | 0 | 0 | 0.185366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92d2941d294f4b42308617571b87a4f43cac2e9c | 1,100 | py | Python | source/tests/database_test.py | staujd02/Pi-RFID-Video-Player | 613d5a9355b660afb5414b3f4a9dad219b69fc36 | [
"Apache-2.0"
] | 1 | 2020-02-15T15:21:03.000Z | 2020-02-15T15:21:03.000Z | source/tests/database_test.py | staujd02/Pi-RFID-Video-Player | 613d5a9355b660afb5414b3f4a9dad219b69fc36 | [
"Apache-2.0"
] | 8 | 2019-12-14T16:31:13.000Z | 2021-05-22T23:06:35.000Z | source/tests/database_test.py | staujd02/Pi-RFID-Video-Player | 613d5a9355b660afb5414b3f4a9dad219b69fc36 | [
"Apache-2.0"
] | null | null | null | import unittest
from source.informationManagers.dataStorageMethods.database import Database
class Database_test(unittest.TestCase):
class TestableDb(object):
def init(self):
pass
def load(self, name):
pass
def save(self, name):
pass
def quer... | 23.913043 | 75 | 0.597273 | 132 | 1,100 | 4.80303 | 0.356061 | 0.066246 | 0.078864 | 0.141956 | 0.140379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289091 | 1,100 | 46 | 76 | 23.913043 | 0.810742 | 0 | 0 | 0.129032 | 0 | 0 | 0.038147 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.387097 | false | 0.129032 | 0.064516 | 0.064516 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
92de9b13362ae830c421701f0608ee6ada5ab261 | 189 | py | Python | eda5/porocanjeupravnika/urls.py | vasjapavlovic/eda5 | bc4b387b24239ea1dfb927657f05ddabbf707479 | [
"BSD-3-Clause"
] | null | null | null | eda5/porocanjeupravnika/urls.py | vasjapavlovic/eda5 | bc4b387b24239ea1dfb927657f05ddabbf707479 | [
"BSD-3-Clause"
] | null | null | null | eda5/porocanjeupravnika/urls.py | vasjapavlovic/eda5 | bc4b387b24239ea1dfb927657f05ddabbf707479 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^(?P<pk>\d+)/user/detail/$', views.PorocanjeUpravnikaDetailView.as_view(), name="user_detail"),
]
| 21 | 105 | 0.703704 | 25 | 189 | 5.24 | 0.76 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121693 | 189 | 8 | 106 | 23.625 | 0.789157 | 0 | 0 | 0 | 0 | 0 | 0.195767 | 0.137566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
92e88d805d902e9a62b20d82817f2e8ac39d75fb | 223 | py | Python | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/misc/__init__.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/misc/__init__.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/misc/__init__.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | # Natural Language Toolkit: Miscellaneous modules
#
# Copyright (C) 2001-2008 University of Pennsylvania
# Author: Steven Bird <sb@csse.unimelb.edu.au>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
| 31.857143 | 52 | 0.753363 | 31 | 223 | 5.419355 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041026 | 0.125561 | 223 | 6 | 53 | 37.166667 | 0.820513 | 0.941704 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
92ede1ef0d5ff8240dff3ffc541d1a647d434499 | 122 | py | Python | bflib/spells/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/spells/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/spells/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | class Spell(object):
name = ""
class_level_map = {}
duration = None
range = None
reverse_spell = None
| 17.428571 | 24 | 0.598361 | 14 | 122 | 5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303279 | 122 | 6 | 25 | 20.333333 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1307d40e97fce747196d99b896a3ba5291e09bf2 | 824 | py | Python | algorithms/data_structures/stack/stack.py | givek/algorithms | 197ed9e540a5ce92181c161af1ae63711e513a58 | [
"MIT"
] | null | null | null | algorithms/data_structures/stack/stack.py | givek/algorithms | 197ed9e540a5ce92181c161af1ae63711e513a58 | [
"MIT"
] | null | null | null | algorithms/data_structures/stack/stack.py | givek/algorithms | 197ed9e540a5ce92181c161af1ae63711e513a58 | [
"MIT"
] | null | null | null | class Stack:
def __init__(self):
self.elements = []
def __str__(self):
return f"{[element for element in reversed(self.elements)]}"
def __repr__(self):
return f"{[element for element in reversed(self.elements)]}"
def push(self, element):
self.elements.append(element)
... | 18.311111 | 68 | 0.61165 | 110 | 824 | 4.290909 | 0.318182 | 0.190678 | 0.137712 | 0.076271 | 0.224576 | 0.224576 | 0.224576 | 0.224576 | 0.224576 | 0.224576 | 0 | 0.011475 | 0.259709 | 824 | 44 | 69 | 18.727273 | 0.762295 | 0 | 0 | 0.137931 | 0 | 0 | 0.131068 | 0.06068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0 | 0.206897 | 0.551724 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
130e24636f526a92a673d8ee6a1250a350fba60f | 294 | py | Python | tvqa/tools/pickle3topickle2.py | Jumperkables/trying_blp | 4987e4d00b4ed8caa38b3e606b98feff1f88cd5d | [
"MIT"
] | 3 | 2020-09-09T09:24:58.000Z | 2021-03-09T05:00:59.000Z | tvqa/tools/pickle3topickle2.py | Jumperkables/trying_blp | 4987e4d00b4ed8caa38b3e606b98feff1f88cd5d | [
"MIT"
] | null | null | null | tvqa/tools/pickle3topickle2.py | Jumperkables/trying_blp | 4987e4d00b4ed8caa38b3e606b98feff1f88cd5d | [
"MIT"
] | 1 | 2021-12-16T10:24:19.000Z | 2021-12-16T10:24:19.000Z | import pickle
in_path = "/home/jumperkables/kable_management/data/tvqa/"+"cache/"+"word2idx.pickle"
out_path = "/home/jumperkables/kable_management/data/tvqa/"+"cache/"+"py2_word2idx.pickle"
with open(in_path, "rb") as f:
w = pickle.load(f)
pickle.dump(w, open(out_path,"wb"), protocol=2) | 36.75 | 90 | 0.731293 | 45 | 294 | 4.622222 | 0.555556 | 0.057692 | 0.192308 | 0.240385 | 0.461538 | 0.461538 | 0.461538 | 0.461538 | 0 | 0 | 0 | 0.014815 | 0.081633 | 294 | 8 | 91 | 36.75 | 0.755556 | 0 | 0 | 0 | 0 | 0 | 0.481356 | 0.311864 | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
131231f62a0ce606eee5ad3a2cef8d0aa4c34296 | 2,694 | py | Python | doc/misc/json-ulp.py | lehaianh1986/schematic-file-converter | ed67274511a5b0e1b378e4e0fd3943ec8a189f43 | [
"Apache-2.0"
] | 29 | 2016-05-19T02:04:51.000Z | 2021-09-16T06:25:59.000Z | doc/misc/json-ulp.py | 84ace/schematic-file-converter | a5975a521d842396605c05a9f197bfe088906bb4 | [
"Apache-2.0"
] | null | null | null | doc/misc/json-ulp.py | 84ace/schematic-file-converter | a5975a521d842396605c05a9f197bfe088906bb4 | [
"Apache-2.0"
] | 24 | 2016-05-19T02:05:00.000Z | 2022-01-14T18:20:01.000Z | #!/usr/bin/env python
# json-ulp.py - generate json.ulp, which exports Eagle to JSON
# http://github.com/ajray/schematic-file-converter
# Alex Ray (2011) <ajray@ncsu.edu>
# TODO handle loop members
import copy
from eaglet import eagle, types, basic, header, misc
def typ(a):
"""
Given a member name, return it's... | 32.457831 | 75 | 0.589087 | 375 | 2,694 | 4.186667 | 0.365333 | 0.011465 | 0.009554 | 0.028025 | 0.044586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003673 | 0.292502 | 2,694 | 82 | 76 | 32.853659 | 0.820042 | 0.160356 | 0 | 0.117647 | 1 | 0.019608 | 0.165385 | 0.028205 | 0 | 0 | 0 | 0.012195 | 0 | 0 | null | null | 0 | 0.039216 | null | null | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13167f3b3ee3edba6df0f2c49b0ac90c094bd3d2 | 110 | py | Python | code/abc110_c_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc110_c_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc110_c_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | s=input()
t=input()
S=sorted(map(s.count,set(s)))
T=sorted(map(t.count,set(t)))
print("Yes" if S==T else "No") | 22 | 30 | 0.636364 | 25 | 110 | 2.8 | 0.48 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 110 | 5 | 30 | 22 | 0.686275 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
131aa408bb355807b9c01bb75495fb00682d5424 | 407 | py | Python | api_app/models/domain/user_resource_template.py | oliver7598/AzureTRE | 38290b91fb694f6dc50a2af9f9376962de8026bd | [
"MIT"
] | 71 | 2021-03-04T15:10:18.000Z | 2022-03-29T16:37:37.000Z | api_app/models/domain/user_resource_template.py | frankfanslc/AzureTRE | c6ab21cfdb252b37ca23fde13cf397d519da31a7 | [
"MIT"
] | 1,498 | 2021-03-05T07:28:00.000Z | 2022-03-31T16:28:06.000Z | api_app/models/domain/user_resource_template.py | frankfanslc/AzureTRE | c6ab21cfdb252b37ca23fde13cf397d519da31a7 | [
"MIT"
] | 60 | 2021-04-30T10:09:26.000Z | 2022-03-30T12:39:27.000Z | from pydantic import Field
from models.domain.resource import ResourceType
from models.domain.resource_template import ResourceTemplate
class UserResourceTemplate(ResourceTemplate):
parentWorkspaceService: str = Field("", title="Parent Workspace Service", description="The parent workspace service under which ser... | 40.7 | 176 | 0.825553 | 44 | 407 | 7.613636 | 0.659091 | 0.059701 | 0.095522 | 0.143284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117936 | 407 | 9 | 177 | 45.222222 | 0.933148 | 0 | 0 | 0 | 0 | 0 | 0.262899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
131bdcdd9fda920d4562b5f28d4b1d41652045eb | 659 | py | Python | python/AdditionWithoutArithmatic/solution.py | xiaogy0318/coding-exercises | 320205f8a14d16faa8a600439ee02c6e380449c8 | [
"Unlicense"
] | null | null | null | python/AdditionWithoutArithmatic/solution.py | xiaogy0318/coding-exercises | 320205f8a14d16faa8a600439ee02c6e380449c8 | [
"Unlicense"
] | null | null | null | python/AdditionWithoutArithmatic/solution.py | xiaogy0318/coding-exercises | 320205f8a14d16faa8a600439ee02c6e380449c8 | [
"Unlicense"
] | null | null | null | def add_without_plus(n1, n2):
# Add can be split into 2 steps
# 1. use xor so that two numbers are added without considering carrying
# 2. Then handle the carrying by and and then << by 1 digit
if (n2 == 0):
return n1
sum = n1 ^ n2
#print n1, " xor ", n2, " is: ", n3
carry = (n1 & n2) << 1
#pr... | 28.652174 | 73 | 0.660091 | 116 | 659 | 3.62931 | 0.491379 | 0.166271 | 0.232779 | 0.180523 | 0.095012 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09761 | 0.23824 | 659 | 22 | 74 | 29.954545 | 0.741036 | 0.515933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
131bfd16b9f986e3cb3aea191e3e5b1a27684bb5 | 2,363 | py | Python | mlops/tests/test_channels.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 7 | 2019-04-08T02:31:55.000Z | 2021-11-15T14:40:49.000Z | mlops/tests/test_channels.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 31 | 2019-02-22T22:23:26.000Z | 2021-08-02T17:17:06.000Z | mlops/tests/test_channels.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 8 | 2019-03-15T23:46:08.000Z | 2020-02-06T09:16:02.000Z |
import pytest
import unittest
from parallelm.mlops import MLOps
from parallelm.mlops.mlops_mode import MLOpsMode
from parallelm.mlops.mlops_exception import MLOpsException
from parallelm.mlops.stats_category import StatCategory, StatGraphType
from parallelm.mlops.channels.mlops_pyspark_channel import MLOpsPySparkCha... | 31.932432 | 115 | 0.67372 | 299 | 2,363 | 5.09699 | 0.324415 | 0.062992 | 0.082677 | 0.030184 | 0.271654 | 0.234908 | 0.19685 | 0.19685 | 0.19685 | 0.19685 | 0 | 0.020375 | 0.210749 | 2,363 | 73 | 116 | 32.369863 | 0.796783 | 0.641981 | 0 | 0 | 0 | 0 | 0.008322 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.055556 | false | 0 | 0.777778 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
131dd114a3c052dac14dc0786b809410366731ac | 90 | py | Python | hello_world.py | AlejandraWilson/learning_python | f18b634152b5230890ba3f560bc2196b4db04d2c | [
"MIT"
] | null | null | null | hello_world.py | AlejandraWilson/learning_python | f18b634152b5230890ba3f560bc2196b4db04d2c | [
"MIT"
] | null | null | null | hello_world.py | AlejandraWilson/learning_python | f18b634152b5230890ba3f560bc2196b4db04d2c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
print('hello world')
a = 1
b =1.0
c = '1'
print(a+a)
print(a+b)
| 8.181818 | 22 | 0.577778 | 20 | 90 | 2.6 | 0.6 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 0.188889 | 90 | 10 | 23 | 9 | 0.643836 | 0.233333 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
1320dbc0df6cfbce96fa749bbf4526fbe8290247 | 257 | py | Python | output/models/nist_data/atomic/date_time/schema_instance/nistschema_sv_iv_atomic_date_time_pattern_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/date_time/schema_instance/nistschema_sv_iv_atomic_date_time_pattern_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/date_time/schema_instance/nistschema_sv_iv_atomic_date_time_pattern_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.date_time.schema_instance.nistschema_sv_iv_atomic_date_time_pattern_1_xsd.nistschema_sv_iv_atomic_date_time_pattern_1 import NistschemaSvIvAtomicDateTimePattern1
__all__ = [
"NistschemaSvIvAtomicDateTimePattern1",
]
| 42.833333 | 197 | 0.894942 | 31 | 257 | 6.709677 | 0.612903 | 0.144231 | 0.201923 | 0.192308 | 0.346154 | 0.346154 | 0.346154 | 0.346154 | 0 | 0 | 0 | 0.016461 | 0.054475 | 257 | 5 | 198 | 51.4 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0.140078 | 0.140078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1329c7882ea3bb9e8cb38e34deb3081dd98ddf08 | 271 | py | Python | prevent_sleep_and_screensaver.py | mrnettek/Python0 | 2d3e0a287cc2372be75956ad0858299e5065ea77 | [
"MIT"
] | null | null | null | prevent_sleep_and_screensaver.py | mrnettek/Python0 | 2d3e0a287cc2372be75956ad0858299e5065ea77 | [
"MIT"
] | null | null | null | prevent_sleep_and_screensaver.py | mrnettek/Python0 | 2d3e0a287cc2372be75956ad0858299e5065ea77 | [
"MIT"
] | null | null | null | # MrNetTek
# eddiejackson.net/blog
# 10/14/2019
# free for public use
# free to claim as your own
import ctypes
ctypes.windll.kernel32.SetThreadExecutionState(0x80000002)
input('{Press enter to exit}')
ctypes.windll.kernel32.SetThreadExecutionState(0x80000000) | 27.1 | 59 | 0.774908 | 34 | 271 | 6.176471 | 0.794118 | 0.114286 | 0.190476 | 0.409524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 0.132841 | 271 | 10 | 60 | 27.1 | 0.765957 | 0.324723 | 0 | 0 | 0 | 0 | 0.12426 | 0 | 0 | 0 | 0.118343 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
132e805f55d6f0e2b682c3387b6bc52cc844c162 | 26,776 | py | Python | tests/apps/courses/test_cms_wizards_course.py | openfun/richie | 185b2be74ce75de8de1da159773afc43e365df3e | [
"MIT"
] | 174 | 2018-04-14T23:36:01.000Z | 2022-03-10T09:27:01.000Z | tests/apps/courses/test_cms_wizards_course.py | EDUlib/richie | 3f9b14b929641f9392e54ba9badbb7a9a9fe7d44 | [
"MIT"
] | 631 | 2018-04-04T11:28:53.000Z | 2022-03-31T11:18:31.000Z | tests/apps/courses/test_cms_wizards_course.py | EDUlib/richie | 3f9b14b929641f9392e54ba9badbb7a9a9fe7d44 | [
"MIT"
] | 64 | 2018-06-27T08:35:01.000Z | 2022-03-10T09:27:43.000Z | """
Test suite for the wizard creating a new Course page
"""
import random
from unittest import mock
from django.core.exceptions import PermissionDenied
from django.urls import reverse
from cms.api import create_page
from cms.models import Page, PagePermission
from cms.test_utils.testcases import CMSTestCase
from fil... | 39.964179 | 97 | 0.605953 | 2,996 | 26,776 | 5.21996 | 0.095794 | 0.016689 | 0.034913 | 0.026856 | 0.756314 | 0.725238 | 0.706567 | 0.689878 | 0.674532 | 0.652855 | 0 | 0.004756 | 0.308971 | 26,776 | 669 | 98 | 40.023916 | 0.840458 | 0.180983 | 0 | 0.632696 | 0 | 0 | 0.123564 | 0.038153 | 0 | 0 | 0 | 0 | 0.104034 | 1 | 0.031847 | false | 0.008493 | 0.027601 | 0 | 0.061571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1334e984e822f3ef56b1eb41e5c6d1cba3fef192 | 13,916 | py | Python | FinMesh/edgar/__init__.py | MichaelPHartmann/FinMesh | 23cc118d1e77b8d0f312556e9bda23dc2e7fee15 | [
"Apache-2.0"
] | 20 | 2020-02-23T21:26:31.000Z | 2021-11-08T10:48:30.000Z | FinMesh/edgar/__init__.py | MichaelPHartmann/FinMesh | 23cc118d1e77b8d0f312556e9bda23dc2e7fee15 | [
"Apache-2.0"
] | 4 | 2021-03-29T22:25:42.000Z | 2022-02-28T20:32:39.000Z | FinMesh/edgar/__init__.py | MichaelPHartmann/FinMesh | 23cc118d1e77b8d0f312556e9bda23dc2e7fee15 | [
"Apache-2.0"
] | 5 | 2019-09-14T04:19:20.000Z | 2021-12-08T23:24:16.000Z | import os
import requests
import xml.etree.ElementTree as ET
import webbrowser
import shutil
from bs4 import BeautifulSoup, SoupStrainer
from nltk.corpus import words
from ._common import *
EDGAR_BASE_URL = "https://www.sec.gov"
EDGAR_BROWSE_URL = "/cgi-bin/browse-edgar?action=getcompany"
EDGAR_ARCHIVE_URL = "/Archiv... | 44.602564 | 130 | 0.569201 | 1,680 | 13,916 | 4.60119 | 0.179762 | 0.018111 | 0.017076 | 0.012678 | 0.626391 | 0.626391 | 0.623933 | 0.618758 | 0.618758 | 0.618758 | 0 | 0.006713 | 0.325596 | 13,916 | 311 | 131 | 44.745981 | 0.816942 | 0.319704 | 0 | 0.8 | 0 | 0.042857 | 0.199411 | 0.057101 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13483361b7e4fb2287f2beccec194a648c0328ca | 126 | py | Python | version_control/backends/base.py | kuter/django-version-control | c4d966868ccce456a7cb94919ed42cbf480e1c0e | [
"MIT"
] | null | null | null | version_control/backends/base.py | kuter/django-version-control | c4d966868ccce456a7cb94919ed42cbf480e1c0e | [
"MIT"
] | null | null | null | version_control/backends/base.py | kuter/django-version-control | c4d966868ccce456a7cb94919ed42cbf480e1c0e | [
"MIT"
] | 1 | 2021-11-13T08:55:25.000Z | 2021-11-13T08:55:25.000Z | class BaseVersionControl(object):
@classmethod
def get_current_branch_name(cls):
raise NotImplementedError()
| 21 | 37 | 0.738095 | 12 | 126 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 126 | 5 | 38 | 25.2 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
134c8785daaea2669fee3c6435d103dc3cfc5e74 | 15,890 | py | Python | tests/core/i3exec_test.py | WIPACrepo/iceprod | 83615da9b0e764bc2498ac588cc2e2b3f5277235 | [
"MIT"
] | 2 | 2017-01-23T17:12:41.000Z | 2019-01-14T13:38:17.000Z | tests/core/i3exec_test.py | WIPACrepo/iceprod | 83615da9b0e764bc2498ac588cc2e2b3f5277235 | [
"MIT"
] | 242 | 2016-05-09T18:46:51.000Z | 2022-03-31T22:02:29.000Z | tests/core/i3exec_test.py | WIPACrepo/iceprod | 83615da9b0e764bc2498ac588cc2e2b3f5277235 | [
"MIT"
] | 2 | 2017-03-27T09:13:40.000Z | 2019-01-27T10:55:30.000Z | """
Test script for i3exec
"""
from __future__ import absolute_import, division, print_function
from tests.util import unittest_reporter, glob_tests
import logging
logger = logging.getLogger('i3exec_test')
import os, sys, time
import shutil
import tempfile
import random
import string
import subprocess
import thread... | 33.59408 | 112 | 0.600189 | 1,865 | 15,890 | 5.00429 | 0.121716 | 0.069538 | 0.056573 | 0.016501 | 0.741884 | 0.721954 | 0.700846 | 0.677596 | 0.668917 | 0.656166 | 0 | 0.006206 | 0.259723 | 15,890 | 473 | 113 | 33.59408 | 0.787214 | 0.033606 | 0 | 0.698667 | 0 | 0 | 0.222594 | 0.063954 | 0 | 0 | 0 | 0 | 0.050667 | 1 | 0.026667 | false | 0.016 | 0.066667 | 0 | 0.136 | 0.002667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13564c57923890c71c24b6864e588e3a5b3c514d | 14,765 | py | Python | applications/welcome/languages/fr.py | ngsimon/web2py | 93297fed8a3a916b45d17f5c4d5d2b80aaf92788 | [
"BSD-3-Clause"
] | 1,573 | 2015-01-01T07:19:06.000Z | 2022-03-30T09:06:06.000Z | applications/welcome/languages/fr.py | ngsimon/web2py | 93297fed8a3a916b45d17f5c4d5d2b80aaf92788 | [
"BSD-3-Clause"
] | 1,691 | 2015-01-03T11:03:23.000Z | 2022-03-30T07:27:28.000Z | applications/welcome/languages/fr.py | ngsimon/web2py | 93297fed8a3a916b45d17f5c4d5d2b80aaf92788 | [
"BSD-3-Clause"
] | 895 | 2015-01-03T19:56:15.000Z | 2022-03-18T18:30:57.000Z | # -*- coding: utf-8 -*-
{
'!langcode!': 'fr',
'!langname!': 'Français',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" est une expression optionnelle comme "champ1=\'nouvellevaleur\'". Vous ne pouvez mettre à jour ou supprimer les résultats ... | 55.299625 | 293 | 0.669082 | 2,040 | 14,765 | 4.839706 | 0.275 | 0.011547 | 0.014889 | 0.020662 | 0.381343 | 0.360681 | 0.339107 | 0.290692 | 0.268105 | 0.251697 | 0 | 0.009905 | 0.117914 | 14,765 | 266 | 294 | 55.507519 | 0.748157 | 0.001422 | 0 | 0 | 0 | 0.022642 | 0.853344 | 0.008276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.086792 | 0.011321 | 0 | 0.011321 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
135ed737bccc38b2fe30905ed907f8ab31baa9e9 | 325 | py | Python | macboot.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 47 | 2015-03-14T01:44:09.000Z | 2021-11-10T10:28:14.000Z | macboot.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 4 | 2015-08-20T20:02:32.000Z | 2021-02-10T18:39:11.000Z | macboot.py | nodebox/nodebox-pyobjc | 31c7a95ca24fffdc8f4523278d4b68c330adea8e | [
"MIT"
] | 15 | 2015-03-14T01:44:00.000Z | 2020-12-17T16:44:31.000Z | # Startup file for the NodeBox OS X application
# PyObjC requires the startup file to be in the root folder.
# This just imports everything from the nodebox.gui.mac module
# and works from there
import objc
import Foundation
import AppKit
from PyObjCTools import AppHelper
import nodebox.gui.mac
AppHelper.runEventLo... | 21.666667 | 62 | 0.803077 | 49 | 325 | 5.326531 | 0.673469 | 0.084291 | 0.099617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 325 | 14 | 63 | 23.214286 | 0.956044 | 0.572308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
135f90f029326bc74a3a8eeeaa7482abfc404bb8 | 77 | py | Python | board/m400/ucube.py | ruoranluomu/AliOS-Things | d0f3431bcacac5b61645e9beb231a0a53be8078b | [
"Apache-2.0"
] | 1 | 2021-06-27T12:40:17.000Z | 2021-06-27T12:40:17.000Z | board/m400/ucube.py | ruoranluomu/AliOS-Things | d0f3431bcacac5b61645e9beb231a0a53be8078b | [
"Apache-2.0"
] | null | null | null | board/m400/ucube.py | ruoranluomu/AliOS-Things | d0f3431bcacac5b61645e9beb231a0a53be8078b | [
"Apache-2.0"
] | 5 | 2020-11-04T04:36:37.000Z | 2021-11-10T08:05:49.000Z | linux_only_targets="helloworld lorawan.linkwan udata_demo.sensor_local_demo"
| 38.5 | 76 | 0.896104 | 11 | 77 | 5.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 77 | 1 | 77 | 77 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1392aabde35c07ab27e75b98e7329423636032db | 40 | py | Python | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/Python_String_zfill()__1.txt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 5 | 2021-06-02T23:44:25.000Z | 2021-12-27T16:21:57.000Z | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/Python_String_zfill()__1.txt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 22 | 2021-05-31T01:33:25.000Z | 2021-10-18T18:32:39.000Z | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/Python_String_zfill()__1.txt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 3 | 2021-06-19T03:37:47.000Z | 2021-08-31T00:49:51.000Z | txt = "50"
x = txt.zfill(10)
print(x)
| 6.666667 | 17 | 0.55 | 8 | 40 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 0.225 | 40 | 5 | 18 | 8 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13b2c8d24acd53c7b7b83f97e2cddb32a3c6bd78 | 62,921 | py | Python | src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/test_rdbms_commands.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 2 | 2022-01-19T08:36:43.000Z | 2022-01-20T04:35:32.000Z | src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/test_rdbms_commands.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 1 | 2020-08-08T03:56:56.000Z | 2020-08-08T03:56:56.000Z | src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/test_rdbms_commands.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 1 | 2022-01-04T06:06:51.000Z | 2022-01-04T06:06:51.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 54.477056 | 123 | 0.586386 | 5,978 | 62,921 | 5.928571 | 0.076782 | 0.086566 | 0.063768 | 0.057137 | 0.786547 | 0.750571 | 0.715414 | 0.697497 | 0.658588 | 0.637877 | 0 | 0.011168 | 0.291334 | 62,921 | 1,154 | 124 | 54.524263 | 0.783651 | 0.055244 | 0 | 0.576626 | 0 | 0.014333 | 0.230783 | 0.042494 | 0 | 0 | 0 | 0 | 0.038589 | 1 | 0.031974 | false | 0.020948 | 0.015436 | 0.001103 | 0.056229 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13d244199733e417c5e447865a4ea7a320f0be6d | 710 | py | Python | build/numpy/numpy/linalg/tests/test_deprecations.py | crougeux/-a-i_v1.6.3_modif | b499a812e79f335d082d3f9b1070e0465ad67bab | [
"BSD-3-Clause"
] | 742 | 2017-07-05T02:49:36.000Z | 2022-03-30T12:55:43.000Z | build/numpy/numpy/linalg/tests/test_deprecations.py | crougeux/-a-i_v1.6.3_modif | b499a812e79f335d082d3f9b1070e0465ad67bab | [
"BSD-3-Clause"
] | 73 | 2017-07-06T12:50:51.000Z | 2022-03-07T08:07:07.000Z | virtual/lib/python3.6/site-packages/numpy/linalg/tests/test_deprecations.py | tw8130/Awwards | d1296cdc26356443d6ec5869495eedb766ecbcf2 | [
"Unlicense"
] | 425 | 2017-07-04T22:03:29.000Z | 2022-03-29T06:59:06.000Z | """Test deprecation and future warnings.
"""
import numpy as np
from numpy.testing import assert_warns, run_module_suite
def test_qr_mode_full_future_warning():
"""Check mode='full' FutureWarning.
In numpy 1.8 the mode options 'full' and 'economic' in linalg.qr were
deprecated. The release date will pro... | 28.4 | 73 | 0.715493 | 102 | 710 | 4.764706 | 0.490196 | 0.113169 | 0.238683 | 0.255144 | 0.36214 | 0.36214 | 0.36214 | 0.36214 | 0 | 0 | 0 | 0.011885 | 0.170423 | 710 | 24 | 74 | 29.583333 | 0.813243 | 0.308451 | 0 | 0 | 0 | 0 | 0.047826 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13de3ae483a6fc38a4057225523a937110388263 | 366 | py | Python | Python/password.py | nihalkhan2810/OpenSource-Sathyabama | 297eba0a261e7536244ec5cdef76025736abaa04 | [
"MIT"
] | 15 | 2019-10-12T18:32:02.000Z | 2021-04-11T08:16:33.000Z | Python/password.py | nihalkhan2810/OpenSource-Sathyabama | 297eba0a261e7536244ec5cdef76025736abaa04 | [
"MIT"
] | 3 | 2019-10-13T14:01:36.000Z | 2019-11-24T06:32:06.000Z | Python/password.py | HarshCasper/OpenSource-Sathyabama | decf70cb1494f7760a76cb23318d50c56b131fbe | [
"MIT"
] | 16 | 2019-10-13T04:10:32.000Z | 2021-07-21T07:11:49.000Z | // random password generater using python
improt.random
def.paswardGenerator():
lowerchars=['a','b','c','d']
upperchars=['A','B','C','D']
specialchars=['&','*',',','!']
numericchars=['1','2','3','4']
password =[random.choice(lowerchars)+random.choice(upperchars)+random.choice(specialchars)+random.choice(numericchars) ]... | 33.272727 | 120 | 0.70765 | 43 | 366 | 6.023256 | 0.534884 | 0.185328 | 0.023166 | 0.030888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.054645 | 366 | 10 | 121 | 36.6 | 0.736994 | 0 | 0 | 0 | 1 | 0 | 0.043716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.4 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
13e0cf7bfd2ed0268a1ce9e66fb2746ac33c1e35 | 661 | py | Python | StateManager.py | dinarosv/MCTS | 7a83fef2dcaf4c552916f7c2c72d7df6e740b2d4 | [
"MIT"
] | null | null | null | StateManager.py | dinarosv/MCTS | 7a83fef2dcaf4c552916f7c2c72d7df6e740b2d4 | [
"MIT"
] | null | null | null | StateManager.py | dinarosv/MCTS | 7a83fef2dcaf4c552916f7c2c72d7df6e740b2d4 | [
"MIT"
] | null | null | null |
# Class for managing state and possible child states of game
class StateManager:
def __init__(self, game):
self.game = game
def set_initial_game(self):
self.game.set_initial_game()
def get_state(self):
return self.game.get_state()
def generate_child_states(self, parent_state... | 26.44 | 62 | 0.664145 | 86 | 661 | 4.837209 | 0.348837 | 0.134615 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252648 | 661 | 24 | 63 | 27.541667 | 0.842105 | 0.087746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
13e7327b4d99b3fd39e85a80b65855147801e4af | 173 | py | Python | kettle_etl/test.py | Latent-Lxx/dazhou-dw | 902b4b625cda4c9e4eb205017b8955b81f37a0b5 | [
"MIT"
] | null | null | null | kettle_etl/test.py | Latent-Lxx/dazhou-dw | 902b4b625cda4c9e4eb205017b8955b81f37a0b5 | [
"MIT"
] | null | null | null | kettle_etl/test.py | Latent-Lxx/dazhou-dw | 902b4b625cda4c9e4eb205017b8955b81f37a0b5 | [
"MIT"
] | 1 | 2022-02-11T04:44:37.000Z | 2022-02-11T04:44:37.000Z | # !/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2021/8/16 下午5:15
# @Author : Latent
# @Email : latentsky@gmail.com
# @File : test.py
# @Software: PyCharm
# @class :
| 15.727273 | 30 | 0.595376 | 24 | 173 | 4.291667 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0.184971 | 173 | 10 | 31 | 17.3 | 0.64539 | 0.890173 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
13f4b8674fc098dcce56e5a2d27c19f7a5451cac | 195 | py | Python | notebook/code/python/circle.py | alex-treebeard/home | bec975dcfb7a473da956215be4f5b4fd3d10a686 | [
"MIT"
] | null | null | null | notebook/code/python/circle.py | alex-treebeard/home | bec975dcfb7a473da956215be4f5b4fd3d10a686 | [
"MIT"
] | null | null | null | notebook/code/python/circle.py | alex-treebeard/home | bec975dcfb7a473da956215be4f5b4fd3d10a686 | [
"MIT"
] | null | null | null |
pi = 3.14159 # executable statements
def area(radius): # function definitions.
return pi*(radius**2)
def circumference(radius):
return 2*pi*radius
# add test code
print(area(3.2))
| 16.25 | 42 | 0.687179 | 28 | 195 | 4.785714 | 0.607143 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063291 | 0.189744 | 195 | 11 | 43 | 17.727273 | 0.78481 | 0.297436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b92594cb85634f27563ecf881d4c7b72638ae948 | 6,461 | py | Python | tests/test_operators.py | singhaditya28/fquery | f78c61fb7a312385e8b83ebaa0c6669b9455eb64 | [
"MIT"
] | null | null | null | tests/test_operators.py | singhaditya28/fquery | f78c61fb7a312385e8b83ebaa0c6669b9455eb64 | [
"MIT"
] | null | null | null | tests/test_operators.py | singhaditya28/fquery | f78c61fb7a312385e8b83ebaa0c6669b9455eb64 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import ast
import os
import random
import unittest
from mock_user import UserQuery
from async_test import async_test
TEST_DATA = os.path.joi... | 29.502283 | 88 | 0.458907 | 687 | 6,461 | 4.151383 | 0.148472 | 0.044881 | 0.112903 | 0.132539 | 0.765778 | 0.758415 | 0.747896 | 0.668303 | 0.6669 | 0.645512 | 0 | 0.023988 | 0.380591 | 6,461 | 218 | 89 | 29.637615 | 0.688656 | 0.026002 | 0 | 0.53886 | 0 | 0 | 0.102894 | 0.030057 | 0 | 0 | 0 | 0 | 0.072539 | 1 | 0.031088 | false | 0 | 0.031088 | 0 | 0.067358 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b92815503c2014376752e57dda9f495d7b3df6ca | 469 | py | Python | snippets/transforms3d.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 7 | 2018-08-04T09:28:19.000Z | 2020-10-19T17:46:34.000Z | snippets/transforms3d.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | null | null | null | snippets/transforms3d.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 2 | 2018-07-31T04:14:55.000Z | 2020-04-02T01:22:39.000Z | # Ow = [x, y, z], quat = [w, x, y, z]
def Ow_quat_wxyz___to___Rt(Ow, quat_wxyz):
R = transforms3d.quaternions.quat2mat(quat_wxyz)
t = -R.dot(Ow)
return [R, t]
def from_R_t(R, t):
return np.hstack((np.copy(R), np.copy(t).reshape(3, 1)))
def from_T(T):
R = T[:3, :3]
t = T[:, 3]
return [R, ... | 18.038462 | 60 | 0.54371 | 97 | 469 | 2.443299 | 0.28866 | 0.075949 | 0.063291 | 0.050633 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025352 | 0.24307 | 469 | 25 | 61 | 18.76 | 0.642254 | 0.074627 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b931cacdd82c16768ef07369c3691adfcdfd8aba | 1,968 | py | Python | Emulation/Easy/ASCII_Clock/ClockSynced.py | saintwithataint/Pro-g-rammingChallenges4 | 3f720a375b89ee289237819c2dc89226634b7a5b | [
"Apache-2.0"
] | 1 | 2022-03-16T16:47:22.000Z | 2022-03-16T16:47:22.000Z | Emulation/Easy/ASCII_Clock/ClockSynced.py | saintwithataint/Pro-g-rammingChallenges4 | 3f720a375b89ee289237819c2dc89226634b7a5b | [
"Apache-2.0"
] | null | null | null | Emulation/Easy/ASCII_Clock/ClockSynced.py | saintwithataint/Pro-g-rammingChallenges4 | 3f720a375b89ee289237819c2dc89226634b7a5b | [
"Apache-2.0"
] | 2 | 2022-02-02T18:02:03.000Z | 2022-03-16T16:47:34.000Z | import os
import time
zero = [
" ___ ",
" / _ \\ ",
"| | | | ",
"| | | | ",
"| |_| | ",
" \___/ ",
]
one = [" __ ", "/_ | ", " | | ", " | | ", " | | ", " |_| "]
two = [
" ___ ",
"|__ \\ ",
" ) | ",
" / / ",
" / /_ ",
"|____| ",
]
... | 16.131148 | 75 | 0.255589 | 108 | 1,968 | 3.648148 | 0.398148 | 0.228426 | 0.203046 | 0.060914 | 0.494924 | 0.494924 | 0.203046 | 0.203046 | 0.203046 | 0.203046 | 0 | 0.007828 | 0.480691 | 1,968 | 121 | 76 | 16.264463 | 0.377691 | 0 | 0 | 0.457944 | 0 | 0 | 0.29878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018692 | 0 | 0.018692 | 0.018692 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b94140996ce7e14862b600ddee125168805ac95c | 1,000 | py | Python | sweeps/config/hyperopt/hp.py | dannygoldstein/sweeps | 9afd1eb87af59a2b8e1020587876fe944b8e41ad | [
"MIT"
] | null | null | null | sweeps/config/hyperopt/hp.py | dannygoldstein/sweeps | 9afd1eb87af59a2b8e1020587876fe944b8e41ad | [
"MIT"
] | null | null | null | sweeps/config/hyperopt/hp.py | dannygoldstein/sweeps | 9afd1eb87af59a2b8e1020587876fe944b8e41ad | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tune config generation.
"""
from .config import cfg
_cfg_module = "hyperopt"
_cfg_version = "0.2.1"
class Hyperopt(cfg.SweepConfigElement):
def __init__(self):
super(Hyperopt, self).__init__(_cfg_module, _cfg_version)
def uniform(self, *args, **kwargs):
return se... | 23.809524 | 85 | 0.669 | 123 | 1,000 | 5.195122 | 0.406504 | 0.062598 | 0.075117 | 0.062598 | 0.100156 | 0.100156 | 0.100156 | 0 | 0 | 0 | 0 | 0.004866 | 0.178 | 1,000 | 41 | 86 | 24.390244 | 0.772506 | 0.324 | 0 | 0 | 0 | 0 | 0.063444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.117647 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b954bff4b421fcc3cc2e01cb93da9979bff289d4 | 329 | py | Python | client/osc.py | zetof/zOsc | 4254ef67781315922e0e14f72b9b3c364c14abd5 | [
"MIT"
] | null | null | null | client/osc.py | zetof/zOsc | 4254ef67781315922e0e14f72b9b3c364c14abd5 | [
"MIT"
] | null | null | null | client/osc.py | zetof/zOsc | 4254ef67781315922e0e14f72b9b3c364c14abd5 | [
"MIT"
] | null | null | null | from pythonosc import udp_client
class OscClient():
def __init__(self, host, port):
self.client = udp_client.SimpleUDPClient(host, port)
def send(self, url, widget_label, widget_sequence, message):
if url != '':
self.client.send_message('/' + url, [widget_label, widget_sequence, m... | 29.909091 | 89 | 0.671733 | 40 | 329 | 5.25 | 0.5 | 0.085714 | 0.133333 | 0.190476 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209726 | 329 | 10 | 90 | 32.9 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b9611823c115cf8a7f36e93ead7e3c51bd17bd2b | 427 | py | Python | tests/cms/views/status_code/test_view_status_code_10.py | Integreat/cms-v2 | c79a54fd5abb792696420aa6427a5e5a356fa79c | [
"Apache-2.0"
] | 21 | 2018-10-26T20:10:45.000Z | 2020-10-22T09:41:46.000Z | tests/cms/views/status_code/test_view_status_code_10.py | Integreat/cms-v2 | c79a54fd5abb792696420aa6427a5e5a356fa79c | [
"Apache-2.0"
] | 392 | 2018-10-25T08:34:07.000Z | 2020-11-19T08:20:30.000Z | tests/cms/views/status_code/test_view_status_code_10.py | Integreat/cms-v2 | c79a54fd5abb792696420aa6427a5e5a356fa79c | [
"Apache-2.0"
] | 23 | 2019-03-06T17:11:35.000Z | 2020-10-16T04:36:41.000Z | import pytest
from ..utils import check_view_status_code
from ..view_config import PARAMETRIZED_VIEWS
# pylint: disable=missing-function-docstring
@pytest.mark.django_db
@pytest.mark.parametrize("view_name,kwargs,post_data,roles", PARAMETRIZED_VIEWS[10::16])
def test_view_status_code_10(login_role_user, view_name, k... | 35.583333 | 88 | 0.826698 | 65 | 427 | 5.061538 | 0.492308 | 0.091185 | 0.12766 | 0.164134 | 0.325228 | 0.325228 | 0.243161 | 0.243161 | 0.243161 | 0 | 0 | 0.015267 | 0.079625 | 427 | 11 | 89 | 38.818182 | 0.821883 | 0.098361 | 0 | 0 | 0 | 0 | 0.083551 | 0.083551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b96996cf5e1c06ddb5bd7faf3a3d366bdb04b486 | 1,818 | py | Python | amino/util/string.py | tek/amino | 51b314933e047a45587a24ecff02c836706d27ff | [
"MIT"
] | 33 | 2016-12-21T07:05:46.000Z | 2020-04-29T04:26:46.000Z | amino/util/string.py | tek/amino | 51b314933e047a45587a24ecff02c836706d27ff | [
"MIT"
] | 1 | 2019-04-19T17:15:52.000Z | 2019-04-20T18:28:23.000Z | amino/util/string.py | tek/amino | 51b314933e047a45587a24ecff02c836706d27ff | [
"MIT"
] | 4 | 2017-09-04T18:46:23.000Z | 2021-11-02T04:18:13.000Z | import re
import abc
from typing import Any, Sized
from functools import singledispatch
import amino
def snake_case(name: str) -> str:
s1 = re.sub('([^_])([A-Z][a-z]+)', r'\1_\2', name)
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
@singledispatch
def decode(value: Any) -> Any:
return value
... | 21.642857 | 86 | 0.635314 | 251 | 1,818 | 4.438247 | 0.306773 | 0.064632 | 0.05386 | 0.007181 | 0.052065 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.19692 | 1,818 | 83 | 87 | 21.903614 | 0.756164 | 0 | 0 | 0.076923 | 0 | 0 | 0.117712 | 0.018152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.096154 | 0.173077 | 0.673077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b969fc6fc8bca79fa4f6addba72e23f4b0472147 | 37 | py | Python | geetools/_version.py | schnjaso2/gee_tools | be47b1abd66363418b8dbafe6339394622cd8e82 | [
"MIT"
] | null | null | null | geetools/_version.py | schnjaso2/gee_tools | be47b1abd66363418b8dbafe6339394622cd8e82 | [
"MIT"
] | 4 | 2021-04-30T21:21:17.000Z | 2022-01-13T03:01:35.000Z | geetools/_version.py | schnjaso2/gee_tools | be47b1abd66363418b8dbafe6339394622cd8e82 | [
"MIT"
] | null | null | null | # coding=utf-8
__version__ = '0.3.3' | 12.333333 | 21 | 0.648649 | 7 | 37 | 2.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.135135 | 37 | 3 | 21 | 12.333333 | 0.5 | 0.324324 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b96f6721fbf5621747229e5b17b0fd4f335daf8a | 787 | py | Python | rework/core/management/utils.py | simonlify/django-rework | fe80d5e115fae71778a76d5eff67db51aa8742d2 | [
"MIT"
] | null | null | null | rework/core/management/utils.py | simonlify/django-rework | fe80d5e115fae71778a76d5eff67db51aa8742d2 | [
"MIT"
] | null | null | null | rework/core/management/utils.py | simonlify/django-rework | fe80d5e115fae71778a76d5eff67db51aa8742d2 | [
"MIT"
] | null | null | null | """
Utilities for managements
"""
import os
def get_project_name():
"""Determined the project path
# TODO: the function must be improved
There will be only one folder in root directory,
it's the project name
"""
for path in os.listdir('.'):
if os.path.isdir(path):
print('... | 23.848485 | 63 | 0.662008 | 108 | 787 | 4.694444 | 0.37037 | 0.098619 | 0.157791 | 0.189349 | 0.449704 | 0.449704 | 0.449704 | 0.449704 | 0.449704 | 0.449704 | 0 | 0 | 0.229987 | 787 | 32 | 64 | 24.59375 | 0.836634 | 0.278272 | 0 | 0.285714 | 0 | 0 | 0.077652 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b97ba1ff9f42f849ddda742a70c1ec39f4d939d7 | 155 | py | Python | code/circulo.py | laonrd0/lcm_2021-2 | 0e580033b7c02ccb37744a1f995c3985e32b8399 | [
"CC0-1.0"
] | 1 | 2021-07-06T18:28:49.000Z | 2021-07-06T18:28:49.000Z | code/circulo.py | laonrd0/lcm_2021-2 | 0e580033b7c02ccb37744a1f995c3985e32b8399 | [
"CC0-1.0"
] | null | null | null | code/circulo.py | laonrd0/lcm_2021-2 | 0e580033b7c02ccb37744a1f995c3985e32b8399 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*
import math
r = float(input("Ingresa el valor del radio del círculo: "))
a = math.pi * r**2
print("El área del círculo es: ", a) | 17.222222 | 60 | 0.619355 | 27 | 155 | 3.555556 | 0.740741 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.206452 | 155 | 9 | 61 | 17.222222 | 0.764228 | 0.129032 | 0 | 0 | 0 | 0 | 0.477612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b99be3fce130be93782d7ba814c04a9bc5a58da8 | 162 | py | Python | api/goods/libraries/get_pv_grading.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 3 | 2019-05-15T09:30:39.000Z | 2020-04-22T16:14:23.000Z | api/goods/libraries/get_pv_grading.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 85 | 2019-04-24T10:39:35.000Z | 2022-03-21T14:52:12.000Z | api/goods/libraries/get_pv_grading.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 1 | 2021-01-17T11:12:19.000Z | 2021-01-17T11:12:19.000Z | from api.goods.enums import PvGrading
def get_pv_grading_value_from_key(key: str):
for k, v in PvGrading.choices:
if key == k:
return v
| 20.25 | 44 | 0.654321 | 26 | 162 | 3.884615 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271605 | 162 | 7 | 45 | 23.142857 | 0.855932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b9cb1770536ebc3487aad272c3cc798f32594688 | 17,812 | py | Python | tensorflow_checkpoint_reader/pb/tensorflow/compiler/xla/python/tpu_driver/tpu_driver_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | 1 | 2021-12-02T15:06:09.000Z | 2021-12-02T15:06:09.000Z | tensorflow_checkpoint_reader/pb/tensorflow/compiler/xla/python/tpu_driver/tpu_driver_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | null | null | null | tensorflow_checkpoint_reader/pb/tensorflow/compiler/xla/python/tpu_driver/tpu_driver_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | null | null | null |
'Generated protocol buffer code.'
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
_sym_db = ... | 363.510204 | 2,959 | 0.82989 | 2,501 | 17,812 | 5.552979 | 0.083567 | 0.050115 | 0.075245 | 0.069988 | 0.725014 | 0.657978 | 0.642713 | 0.627808 | 0.603255 | 0.592166 | 0 | 0.035027 | 0.043117 | 17,812 | 48 | 2,960 | 371.083333 | 0.779805 | 0.00174 | 0 | 0 | 1 | 0.021277 | 0.218685 | 0.174218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.106383 | 0 | 0.106383 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9ce34f3df3fabdad538734a5f8e5ac4d098425b | 449 | py | Python | attendees/persons/models/__init__.py | xjlin0/attendees30 | e9d83fe5bcb235c41d6bf6e9b8cea17dbc487175 | [
"MIT"
] | null | null | null | attendees/persons/models/__init__.py | xjlin0/attendees30 | e9d83fe5bcb235c41d6bf6e9b8cea17dbc487175 | [
"MIT"
] | null | null | null | attendees/persons/models/__init__.py | xjlin0/attendees30 | e9d83fe5bcb235c41d6bf6e9b8cea17dbc487175 | [
"MIT"
] | null | null | null | from .enum import GenderEnum
from .utility import Utility, GatheringBatchCreateResult
from .category import Category
from .note import Note
from .past import Past
from .family import Family
from .attendee import Attendee
from .family_attendee import FamilyAttendee
from .relation import Relation
from .relationship impor... | 32.071429 | 56 | 0.85078 | 55 | 449 | 6.909091 | 0.327273 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11804 | 449 | 13 | 57 | 34.538462 | 0.959596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b9de0e9de9cfebd73233b1056fd85d0b2640b2b4 | 255 | py | Python | dplhooks/testcases.py | cschlay/dplhooks | bdeb77f3e4e2345da2f98eb9815b22c857d4e996 | [
"MIT"
] | null | null | null | dplhooks/testcases.py | cschlay/dplhooks | bdeb77f3e4e2345da2f98eb9815b22c857d4e996 | [
"MIT"
] | 4 | 2021-03-30T14:07:19.000Z | 2021-06-10T19:58:54.000Z | dplhooks/testcases.py | cschlay/dplhooks | bdeb77f3e4e2345da2f98eb9815b22c857d4e996 | [
"MIT"
] | null | null | null | from unittest import TestCase
from django.test import SimpleTestCase, Client
from dplhooks import settings
class APITestCase(TestCase):
def setUp(self) -> None:
self.client = Client(
AUTHORIZATION=settings.API_BEARER
)
| 19.615385 | 46 | 0.701961 | 28 | 255 | 6.357143 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 255 | 12 | 47 | 21.25 | 0.912821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b9ece3d83226d0c18450d75c189c03a71b733c0e | 889 | py | Python | media.py | thesourcerer8/elmyra | 59ca4b1d1b0a980c43681ebff716bdac00296fd2 | [
"MIT"
] | null | null | null | media.py | thesourcerer8/elmyra | 59ca4b1d1b0a980c43681ebff716bdac00296fd2 | [
"MIT"
] | null | null | null | media.py | thesourcerer8/elmyra | 59ca4b1d1b0a980c43681ebff716bdac00296fd2 | [
"MIT"
] | null | null | null | import bpy
import meta
def setup_animation(options):
bpy.context.scene.cycles.use_animated_seed = True
bpy.context.scene.frame_end = options.media_length * 24
bpy.context.scene.render.fps = 24
bpy.context.scene.render.fps_base = 1 # different for weird framerates (23.9243924 stuffies you know)
def ... | 22.794872 | 105 | 0.723285 | 118 | 889 | 5.262712 | 0.398305 | 0.128824 | 0.193237 | 0.169082 | 0.307568 | 0.083736 | 0 | 0 | 0 | 0 | 0 | 0.028689 | 0.176603 | 889 | 38 | 106 | 23.394737 | 0.819672 | 0.068616 | 0 | 0 | 0 | 0 | 0.023002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.041667 | 0.083333 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9ef3dd763548ca992bfc92ed6351e6f911c81f6 | 18 | py | Python | PageRank/__init__.py | ganesh-karthick/TwitterUserRanker | ee245459100ccce7008321945f9018b05a027a0b | [
"Apache-2.0"
] | 11 | 2018-05-04T09:04:40.000Z | 2022-01-03T11:24:28.000Z | GraphicsPlot/__init__.py | ganesh-karthick/TwitterUserRanker | ee245459100ccce7008321945f9018b05a027a0b | [
"Apache-2.0"
] | 1 | 2019-10-22T00:59:23.000Z | 2020-02-03T19:19:08.000Z | ParserUtils/__init__.py | ganesh-karthick/TwitterUserRanker | ee245459100ccce7008321945f9018b05a027a0b | [
"Apache-2.0"
] | 4 | 2015-09-25T06:59:13.000Z | 2020-11-05T12:41:14.000Z | __author__ = 'gk'
| 9 | 17 | 0.666667 | 2 | 18 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b9f56b62b06f50d31927afe8993ad8ed58947a33 | 759 | py | Python | pyislands/archipelago/migration.py | sglumac/pyislands | a5eaceb68a0f21bd8bc8586fdf8cf0d9b7a0134f | [
"MIT"
] | null | null | null | pyislands/archipelago/migration.py | sglumac/pyislands | a5eaceb68a0f21bd8bc8586fdf8cf0d9b7a0134f | [
"MIT"
] | null | null | null | pyislands/archipelago/migration.py | sglumac/pyislands | a5eaceb68a0f21bd8bc8586fdf8cf0d9b7a0134f | [
"MIT"
] | null | null | null | import random
import functools as fcn
def get_emmigration(policy, migration_size, destinations):
'''
This function returns emmigrate function:
emmigrate(population)
'''
return fcn.partial(policy, migration_size, destinations)
def random_policy(migration_size, destinations, population):
'... | 28.111111 | 65 | 0.736495 | 86 | 759 | 6.430233 | 0.5 | 0.094033 | 0.103074 | 0.168174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 759 | 26 | 66 | 29.192308 | 0.91405 | 0.392622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6a0f5fb9a51147875c5ca5da8e0c585392e5a9bb | 497 | py | Python | algopro/climbing_stairs.py | Mifour/Algorithms | 77cfafc49bc0130da0f6041b169a15053f81af87 | [
"MIT"
] | null | null | null | algopro/climbing_stairs.py | Mifour/Algorithms | 77cfafc49bc0130da0f6041b169a15053f81af87 | [
"MIT"
] | null | null | null | algopro/climbing_stairs.py | Mifour/Algorithms | 77cfafc49bc0130da0f6041b169a15053f81af87 | [
"MIT"
] | null | null | null | """
Climbing stairs problem,
for a stair with n stairs, how many ways of climbin (1 or 2 stair at a time) exit?
The problem is linked to fibonnaci sequence
"""
def climbing_stairs(n):
"""
n, the number of stairs
O(2**n) time and space
"""
if n < 2:
return 1
if n == 2:
return 2
return climbing_stairs(n-1) + ... | 17.137931 | 82 | 0.631791 | 96 | 497 | 3.229167 | 0.385417 | 0.225806 | 0.193548 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043928 | 0.221328 | 497 | 28 | 83 | 17.75 | 0.757106 | 0.442656 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6a204016ad6ceb0d4dab86ab49d25be4ea62f9d8 | 675 | py | Python | snypy/snippets/models/managers.py | snypy/snypy-backend | 064ebd3f5706bca610e4364bdedab63fd503c579 | [
"MIT"
] | null | null | null | snypy/snippets/models/managers.py | snypy/snypy-backend | 064ebd3f5706bca610e4364bdedab63fd503c579 | [
"MIT"
] | 11 | 2021-11-09T19:57:09.000Z | 2022-03-22T21:05:36.000Z | snypy/snippets/models/managers.py | snypy/snypy-backend | 064ebd3f5706bca610e4364bdedab63fd503c579 | [
"MIT"
] | null | null | null | from core.models.managers import BaseManager
from .querysets import (
SnippetQuerySet,
FileQuerySet,
LabelQuerySet,
LanguageQuerySet,
ExtensionQuerySet,
SnippetLabelQuerySet,
SnippetFavoriteQuerySet,
)
SnippetManager = BaseManager.from_queryset(SnippetQuerySet)
FileManager = BaseManager.f... | 32.142857 | 75 | 0.84 | 51 | 675 | 10.980392 | 0.431373 | 0.214286 | 0.2875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100741 | 675 | 20 | 76 | 33.75 | 0.92257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 1 | 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 | 3 |
6a3366765c3bd9749267583f90fd1a2c037f88fe | 671 | py | Python | AD14-flask-admin-backup-demo/app/admin_backup/common.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 3 | 2020-06-17T05:44:48.000Z | 2021-09-11T02:49:38.000Z | AD14-flask-admin-backup-demo/app/admin_backup/common.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 3 | 2021-06-08T20:57:03.000Z | 2022-02-23T14:54:59.000Z | AD14-flask-admin-backup-demo/app/admin_backup/common.py | AngelLiang/Flask-Demos | cf0a74885b873cb2583b3870ccdf3508d3af602e | [
"MIT"
] | 6 | 2020-06-17T05:44:56.000Z | 2022-03-29T12:53:05.000Z | import re
from datetime import datetime
def get_timestamp(name):
"""从给定的文件名获取时间戳
Gets the timestamp from a given file name
:param name: (string) Name of a file generated by AlchemyDumps
:return: (string) The backup numeric id (in case of success) or False
"""
pattern = r'(.*)(-)(?P<timestamp... | 26.84 | 73 | 0.658718 | 96 | 671 | 4.5625 | 0.5625 | 0.018265 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003724 | 0.199702 | 671 | 24 | 74 | 27.958333 | 0.811918 | 0.372578 | 0 | 0 | 1 | 0 | 0.21875 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6a36ed9d71acd6189d2fa5ea37144344b192f6e3 | 195 | py | Python | pt/068/python/main.py | franciscogomes2020/exercises | 8b33c4b9349a9331e4002a8225adc2a482c70024 | [
"MIT"
] | null | null | null | pt/068/python/main.py | franciscogomes2020/exercises | 8b33c4b9349a9331e4002a8225adc2a482c70024 | [
"MIT"
] | null | null | null | pt/068/python/main.py | franciscogomes2020/exercises | 8b33c4b9349a9331e4002a8225adc2a482c70024 | [
"MIT"
] | null | null | null | # Faça um programa que jogue par ou ímpar com o computador. O jogo só será interrompido quando o jogador perder, mostrando o total de vitórias consecutivas que ele conquistou no final do jogo.
| 65 | 193 | 0.794872 | 33 | 195 | 4.69697 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 195 | 2 | 194 | 97.5 | 0.974843 | 0.974359 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a40e67f30fb8daa44c454ac28c79f54e819341f | 1,283 | py | Python | antipetros_discordbot/utility/gidsql/creators/base_sql_schema.py | Giddius/Antipetros_Discord_Bot | 2c139a5c0fc410385e936999989513fc1e7ebc8b | [
"MIT"
] | null | null | null | antipetros_discordbot/utility/gidsql/creators/base_sql_schema.py | Giddius/Antipetros_Discord_Bot | 2c139a5c0fc410385e936999989513fc1e7ebc8b | [
"MIT"
] | 13 | 2021-02-19T02:22:28.000Z | 2021-02-20T03:19:11.000Z | antipetros_discordbot/utility/gidsql/creators/base_sql_schema.py | Giddius/Antipetros_Discord_Bot | 2c139a5c0fc410385e936999989513fc1e7ebc8b | [
"MIT"
] | 2 | 2020-11-19T10:21:06.000Z | 2021-12-14T00:27:45.000Z | """
[summary]
[extended_summary]
"""
# region [Imports]
# * Standard Library Imports ---------------------------------------------------------------------------->
import os
from abc import abstractmethod
# * Gid Imports ----------------------------------------------------------------------------------------->
impor... | 16.0375 | 106 | 0.568979 | 114 | 1,283 | 6.105263 | 0.5 | 0.215517 | 0.241379 | 0.133621 | 0.106322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200312 | 1,283 | 79 | 107 | 16.240506 | 0.678363 | 0.363991 | 0 | 0.545455 | 0 | 0 | 0.010063 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.181818 | false | 0.030303 | 0.121212 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a413f04cda4c86fb3bc21fc49f0272b86fa0cc1 | 259 | py | Python | util/process_logger.py | DSMdongly/Obba-Army-Server | f78f39a73847ca58a97310b7efa7ad748336620e | [
"MIT"
] | null | null | null | util/process_logger.py | DSMdongly/Obba-Army-Server | f78f39a73847ca58a97310b7efa7ad748336620e | [
"MIT"
] | null | null | null | util/process_logger.py | DSMdongly/Obba-Army-Server | f78f39a73847ca58a97310b7efa7ad748336620e | [
"MIT"
] | null | null | null | from multiprocessing import current_process
"""
Logger module for logging
from multiple process
"""
def log(level, message):
current_process_name = current_process().name
print('[{0}: {1}] {2}'.format(current_process_name, level, message))
| 21.583333 | 72 | 0.710425 | 32 | 259 | 5.5625 | 0.625 | 0.314607 | 0.303371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.166023 | 259 | 11 | 73 | 23.545455 | 0.810185 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a48ab967893e14578cc84d27332a2614cd00ed2 | 95 | py | Python | Ex_Files_Learning_Python_Upd/Exercise Files/Ch5/inetdata_start.py | DougApplegate79/DAproject-TheMillCodeSchool | fc5d255176bf496d6086358a14fbbf72cce744c0 | [
"Apache-2.0"
] | 2 | 2020-07-23T19:32:58.000Z | 2020-10-24T20:54:09.000Z | Ex_Files_Learning_Python_Upd/Exercise Files/Ch5/inetdata_start.py | DougApplegate79/DAproject-TheMillCodeSchool | fc5d255176bf496d6086358a14fbbf72cce744c0 | [
"Apache-2.0"
] | null | null | null | Ex_Files_Learning_Python_Upd/Exercise Files/Ch5/inetdata_start.py | DougApplegate79/DAproject-TheMillCodeSchool | fc5d255176bf496d6086358a14fbbf72cce744c0 | [
"Apache-2.0"
] | 1 | 2021-07-11T14:41:04.000Z | 2021-07-11T14:41:04.000Z | #
# Example file for retrieving data from the internet
#
if __name__ == "__main__":
main()
| 13.571429 | 52 | 0.684211 | 12 | 95 | 4.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 95 | 6 | 53 | 15.833333 | 0.76 | 0.526316 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a4dce80f60ae5120419ff5b0a955fa60589b2ab | 3,718 | py | Python | agnpy/tests/test_geometry.py | davidsanchez/agnpy | d22d506acab19d498da8987698c5037703ce14d7 | [
"BSD-3-Clause"
] | null | null | null | agnpy/tests/test_geometry.py | davidsanchez/agnpy | d22d506acab19d498da8987698c5037703ce14d7 | [
"BSD-3-Clause"
] | null | null | null | agnpy/tests/test_geometry.py | davidsanchez/agnpy | d22d506acab19d498da8987698c5037703ce14d7 | [
"BSD-3-Clause"
] | null | null | null | # tests on the utils module
import pytest
import numpy as np
import agnpy.utils.geometry as geom
import astropy.units as u
class TestUtilsGeometry:
"""test utils.geometry"""
@pytest.mark.parametrize("R_re", [1e16 * u.cm, 1e17 * u.cm])
@pytest.mark.parametrize("r", [3.0e16 * u.cm, 2.0e17 * u.cm])
@pyt... | 45.901235 | 85 | 0.59575 | 701 | 3,718 | 2.981455 | 0.145506 | 0.040191 | 0.211005 | 0.093301 | 0.738756 | 0.701435 | 0.688995 | 0.637321 | 0.619139 | 0.619139 | 0 | 0.069376 | 0.232383 | 3,718 | 80 | 86 | 46.475 | 0.662929 | 0.105702 | 0 | 0.5 | 0 | 0 | 0.020966 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 1 | 0.083333 | false | 0 | 0.066667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
dbeedca3df5510c017033123f2058d754ff62972 | 135 | py | Python | src/models/file.py | raisedwizardry/videop | 84fb7c783526c099ebffdb3dc3f3d1324ca8ffb6 | [
"MIT"
] | null | null | null | src/models/file.py | raisedwizardry/videop | 84fb7c783526c099ebffdb3dc3f3d1324ca8ffb6 | [
"MIT"
] | null | null | null | src/models/file.py | raisedwizardry/videop | 84fb7c783526c099ebffdb3dc3f3d1324ca8ffb6 | [
"MIT"
] | null | null | null | from flask_restplus import fields
from server.instance import server
file = server.api.model('File', {
'file': fields.String(),
}) | 22.5 | 34 | 0.725926 | 18 | 135 | 5.388889 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140741 | 135 | 6 | 35 | 22.5 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dbef98b1bdf5383ca7c6b210372c522ac414e527 | 696 | py | Python | 5kyu/line_crossing_area/python/example_test_cases.py | lfhohmann/codewars-katas | a49405a39545325959dab23ce66d7d46ae12945b | [
"MIT"
] | null | null | null | 5kyu/line_crossing_area/python/example_test_cases.py | lfhohmann/codewars-katas | a49405a39545325959dab23ce66d7d46ae12945b | [
"MIT"
] | null | null | null | 5kyu/line_crossing_area/python/example_test_cases.py | lfhohmann/codewars-katas | a49405a39545325959dab23ce66d7d46ae12945b | [
"MIT"
] | null | null | null | import codewars_test as test
@test.describe("Tests")
def tests():
@test.it("Fixed Tests")
def fixed_tests():
test.assert_equals(line_crossing_area((0, 0, 10, 10), ((-3, -4), (5, 6))), True)
test.assert_equals(
line_crossing_area((-10, 20, 30, 40), ((-100, 100), (10, -10))), True
... | 33.142857 | 88 | 0.525862 | 92 | 696 | 3.793478 | 0.347826 | 0.143266 | 0.229226 | 0.286533 | 0.56447 | 0.56447 | 0.56447 | 0.26361 | 0.26361 | 0.26361 | 0 | 0.175299 | 0.278736 | 696 | 20 | 89 | 34.8 | 0.51992 | 0 | 0 | 0.222222 | 0 | 0 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.111111 | true | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dbf0402ac0312f028e252002e35dda04d6818a39 | 193 | py | Python | game_robot/jiuyin/script/test_a.py | liuyu2022/game_robot | d4261219ba81eee844fd19ab691f45522e0b127a | [
"MulanPSL-1.0"
] | 1 | 2021-07-01T15:57:36.000Z | 2021-07-01T15:57:36.000Z | game_robot/jiuyin/script/test_a.py | liuyu2022/game_robot | d4261219ba81eee844fd19ab691f45522e0b127a | [
"MulanPSL-1.0"
] | null | null | null | game_robot/jiuyin/script/test_a.py | liuyu2022/game_robot | d4261219ba81eee844fd19ab691f45522e0b127a | [
"MulanPSL-1.0"
] | null | null | null | from lib.BaseModule import BaseModule
class A(BaseModule):
is_act = False
def __init__(self):
print("init")
def fram_update(self):
print("帧频刷新")
return 0 | 16.083333 | 37 | 0.611399 | 24 | 193 | 4.666667 | 0.75 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.290155 | 193 | 12 | 38 | 16.083333 | 0.810219 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e004d9586e6a968e338f706af0c255292ec85296 | 208 | py | Python | graph4nlp/pytorch/modules/prediction/classification/kg_completion/__init__.py | cminusQAQ/graph4nlp | d980e897131f1b9d3766750c06316d94749904fa | [
"Apache-2.0"
] | 1,269 | 2021-06-06T03:27:41.000Z | 2022-03-30T06:33:53.000Z | graph4nlp/pytorch/modules/prediction/classification/kg_completion/__init__.py | cminusQAQ/graph4nlp | d980e897131f1b9d3766750c06316d94749904fa | [
"Apache-2.0"
] | 106 | 2021-06-07T05:24:01.000Z | 2022-03-31T19:18:48.000Z | graph4nlp/pytorch/modules/prediction/classification/kg_completion/__init__.py | cminusQAQ/graph4nlp | d980e897131f1b9d3766750c06316d94749904fa | [
"Apache-2.0"
] | 160 | 2021-06-06T15:09:17.000Z | 2022-03-23T02:06:33.000Z | from .ComplEx import ComplEx
from .ComplExLayer import ComplExLayer
from .DistMult import DistMult
from .DistMultLayer import DistMultLayer
__all__ = ["ComplEx", "ComplExLayer", "DistMult", "DistMultLayer"]
| 29.714286 | 66 | 0.802885 | 21 | 208 | 7.761905 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110577 | 208 | 6 | 67 | 34.666667 | 0.881081 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e0079a1f6d1aec141fe0b64ba68f215df02079cb | 2,248 | bzl | Python | repositories.maven.bzl | dibianalvarez/copybara | 50cec332b0592839a4a8962e5cf3ecc53f4f1f91 | [
"Apache-2.0"
] | null | null | null | repositories.maven.bzl | dibianalvarez/copybara | 50cec332b0592839a4a8962e5cf3ecc53f4f1f91 | [
"Apache-2.0"
] | null | null | null | repositories.maven.bzl | dibianalvarez/copybara | 50cec332b0592839a4a8962e5cf3ecc53f4f1f91 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Google 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 writing,... | 42.415094 | 82 | 0.620996 | 320 | 2,248 | 4.325 | 0.4375 | 0.104046 | 0.069364 | 0.041185 | 0.182803 | 0.150289 | 0.085983 | 0.060694 | 0.060694 | 0.060694 | 0 | 0.051993 | 0.229982 | 2,248 | 52 | 83 | 43.230769 | 0.747545 | 0.244217 | 0 | 0.054054 | 0 | 0.081081 | 0.617211 | 0.564985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | true | 0 | 0 | 0 | 0.027027 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e00e04ee3daf1a39f8822ff3eaa90390a7370ae7 | 347 | py | Python | messages/inbox/models.py | pranavbaburaj/messages | 9596921ccff20329dfd0240705ef689022a0f4cb | [
"MIT"
] | 6 | 2021-01-10T11:20:33.000Z | 2021-04-12T03:59:45.000Z | messages/inbox/models.py | pranavbaburaj/messages | 9596921ccff20329dfd0240705ef689022a0f4cb | [
"MIT"
] | 1 | 2021-02-28T15:04:36.000Z | 2021-03-01T13:29:34.000Z | messages/inbox/models.py | pranavbaburaj/messages | 9596921ccff20329dfd0240705ef689022a0f4cb | [
"MIT"
] | 1 | 2021-02-08T10:23:41.000Z | 2021-02-08T10:23:41.000Z | from django.db import models
# Create your models here.
class Messages(models.Model):
from_person = models.TextField()
to_person = models.TextField()
read = models.TextField()
title = models.TextField()
body = models.TextField()
time = models.TextField()
def __repr__(self):
... | 21.6875 | 37 | 0.642651 | 38 | 347 | 5.710526 | 0.605263 | 0.414747 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253602 | 347 | 15 | 38 | 23.133333 | 0.837838 | 0.069164 | 0 | 0 | 0 | 0 | 0.022876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e01c1929de32088b7df99f861485c713d94baa65 | 743 | py | Python | mmseg/models/losses/__init__.py | yoyoyoohh/SAR_build_extract_v2 | 7e2d21ead8e65b263d18d1059e5ce8ff2df4fbe6 | [
"Apache-2.0"
] | null | null | null | mmseg/models/losses/__init__.py | yoyoyoohh/SAR_build_extract_v2 | 7e2d21ead8e65b263d18d1059e5ce8ff2df4fbe6 | [
"Apache-2.0"
] | null | null | null | mmseg/models/losses/__init__.py | yoyoyoohh/SAR_build_extract_v2 | 7e2d21ead8e65b263d18d1059e5ce8ff2df4fbe6 | [
"Apache-2.0"
] | null | null | null | '''
Author: Shuailin Chen
Created Date: 2021-07-12
Last Modified: 2021-07-14
content:
'''
from .accuracy import Accuracy, accuracy
from .cross_entropy_loss import (CrossEntropyLoss, binary_cross_entropy,
cross_entropy, mask_cross_entropy)
from .dice_loss import DiceLoss
from .lovasz_l... | 32.304348 | 72 | 0.751009 | 85 | 743 | 6.223529 | 0.4 | 0.181474 | 0.060491 | 0.075614 | 0.249527 | 0.143667 | 0.143667 | 0 | 0 | 0 | 0 | 0.025518 | 0.156124 | 743 | 22 | 73 | 33.772727 | 0.818182 | 0.407806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e02af4565c9289c72d43f0275c587cf1d5a6a38d | 159 | py | Python | Mundo 1/ex031.py | sandenbergmelo/ExerciciosPython | 049958801823b1b9b23b0e80f6f1bcf8cd272efe | [
"MIT"
] | 1 | 2021-05-12T18:44:11.000Z | 2021-05-12T18:44:11.000Z | Mundo 1/ex031.py | sandenbergmelo/ExerciciosPython | 049958801823b1b9b23b0e80f6f1bcf8cd272efe | [
"MIT"
] | null | null | null | Mundo 1/ex031.py | sandenbergmelo/ExerciciosPython | 049958801823b1b9b23b0e80f6f1bcf8cd272efe | [
"MIT"
] | null | null | null | dis = float(input('Digite a distância da viagem: '))
if dis > 200:
valor = dis * 0.45
else:
valor = dis * 0.5
print(f'A passagem vai custar R${valor:.2f}')
| 19.875 | 52 | 0.641509 | 29 | 159 | 3.517241 | 0.758621 | 0.156863 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070313 | 0.194969 | 159 | 7 | 53 | 22.714286 | 0.726563 | 0 | 0 | 0 | 0 | 0 | 0.408805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.