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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba9e59d8e91fc5e3f4ffe1e2ed7cc1bbe1e5c4f0 | 224 | py | Python | weathermail/weather_report_service/email_templates/__init__.py | daidaitaotao/weather-report | 49641cdabfb1b96e4d966b3a032624ec0ec82fb9 | [
"MIT"
] | null | null | null | weathermail/weather_report_service/email_templates/__init__.py | daidaitaotao/weather-report | 49641cdabfb1b96e4d966b3a032624ec0ec82fb9 | [
"MIT"
] | null | null | null | weathermail/weather_report_service/email_templates/__init__.py | daidaitaotao/weather-report | 49641cdabfb1b96e4d966b3a032624ec0ec82fb9 | [
"MIT"
] | null | null | null | import codecs
import os
path = os.path.dirname(os.path.abspath(__file__))
WeatherEmailHTML = codecs.open('{0}/weather_email.html'.format(path), 'r')
WeatherEmailText = codecs.open('{0}/weather_email.txt'.format(path), 'r') | 32 | 74 | 0.745536 | 32 | 224 | 5.03125 | 0.53125 | 0.111801 | 0.136646 | 0.223602 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.071429 | 224 | 7 | 75 | 32 | 0.764423 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.191111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ba9f5f5fdd20182ebe0a78f755b9f3dabdab8cd4 | 1,183 | py | Python | tests/models/test_articles_model.py | fmichea/lpbm | 172772d562e2f1aa4aba72599150f95f89bdf6ce | [
"BSD-3-Clause"
] | 1 | 2015-11-09T11:30:41.000Z | 2015-11-09T11:30:41.000Z | tests/models/test_articles_model.py | fmichea/lpbm | 172772d562e2f1aa4aba72599150f95f89bdf6ce | [
"BSD-3-Clause"
] | 1 | 2015-04-28T07:02:21.000Z | 2016-01-23T19:12:11.000Z | tests/models/test_articles_model.py | fmichea/lpbm | 172772d562e2f1aa4aba72599150f95f89bdf6ce | [
"BSD-3-Clause"
] | 2 | 2016-01-11T17:55:42.000Z | 2018-03-19T19:03:15.000Z | from lpbm.models.articles import translate_to_jekyll_markdown
def test_collapsers_are_just_removed():
inp = '''
there is some text before the collapser.
:::lpbm::collapser::BEGIN
some text here
:::lpbm::collapser::END
and some text after.
'''
out = '''
there is some text before the collapser.
some... | 14.426829 | 61 | 0.621302 | 183 | 1,183 | 3.912568 | 0.31694 | 0.089385 | 0.061453 | 0.083799 | 0.715084 | 0.715084 | 0.698324 | 0.502793 | 0.502793 | 0.502793 | 0 | 0.011919 | 0.290786 | 1,183 | 81 | 62 | 14.604938 | 0.841478 | 0 | 0 | 0.830189 | 0 | 0 | 0.728656 | 0.040575 | 0 | 0 | 0 | 0 | 0.037736 | 1 | 0.037736 | false | 0 | 0.018868 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
baa06d2c8a8f5b14e73a326d5295e049973ef5f9 | 1,580 | py | Python | spectralflow/logdet.py | EiffL/SpectralFlow | 041a86ddc289cbbd871eecb9147688bbbb34b999 | [
"MIT"
] | 4 | 2021-03-18T06:47:20.000Z | 2021-11-12T23:19:34.000Z | spectralflow/logdet.py | EiffL/SpectralFlow | 041a86ddc289cbbd871eecb9147688bbbb34b999 | [
"MIT"
] | null | null | null | spectralflow/logdet.py | EiffL/SpectralFlow | 041a86ddc289cbbd871eecb9147688bbbb34b999 | [
"MIT"
] | null | null | null | import tensorflow as tf
from .chebyshev import ChebyshevCoefficients, StochasticChebyshevTrace
from .ops import eigen_max
__all__ = ["chebyshev_logdet"]
def chebyshev_spectral_sum(func, operator, a, b, shape, deg=20, m=100):
"""
Computes the spectral sum tr(f(A)), where A is the operator,
f is the func,... | 31.6 | 77 | 0.651266 | 236 | 1,580 | 4.275424 | 0.368644 | 0.019822 | 0.00892 | 0.021804 | 0.126858 | 0.07334 | 0.07334 | 0.07334 | 0 | 0 | 0 | 0.023549 | 0.247468 | 1,580 | 49 | 78 | 32.244898 | 0.825063 | 0.367089 | 0 | 0.105263 | 0 | 0 | 0.016985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.105263 | 0.578947 | 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 |
baaa1ddb8521f03f31196a72af732f5ee4fd4c83 | 267 | py | Python | tests/fz.py | keithstellyes/bfjit | bf4285cffbc53c4411913719a2bfc8c263dd9cf4 | [
"MIT"
] | 5 | 2018-01-25T23:06:16.000Z | 2019-10-15T23:15:18.000Z | tests/fz.py | keithstellyes/bfjit | bf4285cffbc53c4411913719a2bfc8c263dd9cf4 | [
"MIT"
] | null | null | null | tests/fz.py | keithstellyes/bfjit | bf4285cffbc53c4411913719a2bfc8c263dd9cf4 | [
"MIT"
] | null | null | null | # fizzbuzz in python
for i in range(1, 101):
printed = False
if i % 3 == 0:
printed = True
print('Fizz', end='')
if i % 5 == 0:
printed = True
print('Buzz', end='')
if not printed:
print(i, end='')
print()
| 19.071429 | 29 | 0.468165 | 36 | 267 | 3.472222 | 0.555556 | 0.048 | 0.192 | 0.272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.378277 | 267 | 13 | 30 | 20.538462 | 0.704819 | 0.067416 | 0 | 0.181818 | 0 | 0 | 0.032389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.727273 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
bac6772771221ddc159165b54c96f4a88dbb3a3c | 2,203 | py | Python | test/test_pythoscope_generator_constructor.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | test/test_pythoscope_generator_constructor.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | test/test_pythoscope_generator_constructor.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | import unittest
class TestTodoValue(unittest.TestCase):
def test_todo_value(self):
# self.assertEqual(expected, todo_value(value))
assert False # TODO: implement your test here
class TestListOf(unittest.TestCase):
def test_list_of(self):
# self.assertEqual(expected, list_of(strings))... | 39.339286 | 103 | 0.742624 | 264 | 2,203 | 5.943182 | 0.204545 | 0.101976 | 0.121096 | 0.14659 | 0.585723 | 0.532186 | 0.446144 | 0.299554 | 0.168897 | 0.137667 | 0 | 0 | 0.177485 | 2,203 | 55 | 104 | 40.054545 | 0.865894 | 0.434862 | 0 | 0.30303 | 0 | 0 | 0.006536 | 0 | 0 | 0 | 0 | 0.018182 | 0.30303 | 1 | 0.30303 | false | 0 | 0.030303 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
baf7bb3f95642869651cf088484a8e3f9b415b94 | 196 | py | Python | pygleif/error.py | ggravlingen/pygleif | 94c7e68ac464c3ee4727e5f41e1a68e5b369e83f | [
"MIT"
] | 9 | 2018-03-21T21:44:01.000Z | 2021-09-17T17:39:48.000Z | pygleif/error.py | ggravlingen/pygleif | 94c7e68ac464c3ee4727e5f41e1a68e5b369e83f | [
"MIT"
] | 12 | 2018-02-06T21:50:54.000Z | 2019-02-15T14:48:25.000Z | pygleif/error.py | ggravlingen/pygleif | 94c7e68ac464c3ee4727e5f41e1a68e5b369e83f | [
"MIT"
] | 3 | 2019-02-09T05:29:20.000Z | 2020-08-08T23:02:01.000Z | """Errors for PyGLEIF."""
class PyGLEIFError(Exception):
"""Base Error"""
pass
class NoMatchError(PyGLEIFError):
"""An error happened sending or receiving a command."""
pass
| 14 | 59 | 0.658163 | 21 | 196 | 6.142857 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209184 | 196 | 13 | 60 | 15.076923 | 0.832258 | 0.408163 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
240382cc4a750200eb3cdd495b82503624fc120a | 140 | py | Python | labelserver/printers/__init__.py | marcellarius/labelserver | 4eac3f73daefa4ca1ec9dc8fb80753ae580432ba | [
"MIT"
] | null | null | null | labelserver/printers/__init__.py | marcellarius/labelserver | 4eac3f73daefa4ca1ec9dc8fb80753ae580432ba | [
"MIT"
] | null | null | null | labelserver/printers/__init__.py | marcellarius/labelserver | 4eac3f73daefa4ca1ec9dc8fb80753ae580432ba | [
"MIT"
] | null | null | null | from labelserver.printers.cognitive_lbt42 import CognitiveLbt42Printer
PRINTER_CLASSES = {
"cognitive_lbt42": CognitiveLbt42Printer
}
| 20 | 70 | 0.828571 | 12 | 140 | 9.416667 | 0.75 | 0.247788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.114286 | 140 | 6 | 71 | 23.333333 | 0.846774 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 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 |
2421f2cd129e2b849b635dcd54522681359ff41c | 225 | py | Python | tests/__init__.py | tskisner/sotodlib | 9b80171129ea312bc7a61ce5c37d6abfbb3d5be9 | [
"MIT"
] | 4 | 2019-08-13T19:49:00.000Z | 2022-02-17T18:19:02.000Z | tests/__init__.py | tskisner/sotodlib | 9b80171129ea312bc7a61ce5c37d6abfbb3d5be9 | [
"MIT"
] | 166 | 2019-03-21T19:39:35.000Z | 2022-03-31T22:42:43.000Z | tests/__init__.py | tskisner/sotodlib | 9b80171129ea312bc7a61ce5c37d6abfbb3d5be9 | [
"MIT"
] | 8 | 2019-04-16T16:46:45.000Z | 2022-02-10T18:03:03.000Z | # Copyright (c) 2018-2019 Simons Observatory.
# Full license can be found in the top level "LICENSE" file.
"""Test Suite for Simons Observatory TOD Simulation and Processing.
This directory contains the unittest suite.
"""
| 28.125 | 67 | 0.764444 | 32 | 225 | 5.375 | 0.84375 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0.16 | 225 | 7 | 68 | 32.142857 | 0.867725 | 0.946667 | 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 |
2423bd4ab70fe4d6b7117e2472bda791d1a73dc3 | 435 | py | Python | Ch2/binary_search.py | anandg95/CLRS-solutions | b5cfd2771586187150cf9a8f0f90cb8f9383db63 | [
"MIT"
] | 3 | 2020-10-06T11:37:56.000Z | 2022-02-21T22:54:30.000Z | Ch2/binary_search.py | anandg95/CLRS-solutions | b5cfd2771586187150cf9a8f0f90cb8f9383db63 | [
"MIT"
] | null | null | null | Ch2/binary_search.py | anandg95/CLRS-solutions | b5cfd2771586187150cf9a8f0f90cb8f9383db63 | [
"MIT"
] | 1 | 2021-11-08T19:36:38.000Z | 2021-11-08T19:36:38.000Z | import random
def binarySearch(A, item, low, high):
if low < high:
mid = (low + high) // 2
if item == A[mid]:
return mid
if item > A[mid]:
return binarySearch(A, item, mid + 1, high)
else:
return binarySearch(A, item, low, mid)
if __name__ == "... | 22.894737 | 55 | 0.526437 | 58 | 435 | 3.810345 | 0.413793 | 0.235294 | 0.307692 | 0.180995 | 0.144796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062937 | 0.342529 | 435 | 18 | 56 | 24.166667 | 0.70979 | 0.011494 | 0 | 0 | 0 | 0 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24251e383abd73c434ac007e32c5b76d71c6ec7f | 79 | py | Python | resp3/__init__.py | laixintao/resp3-py | 71f8131d03a2bb1b39136bdea1b7f13f7e92aee8 | [
"BSD-3-Clause"
] | 4 | 2020-03-15T12:40:17.000Z | 2020-03-27T12:44:45.000Z | resp3/__init__.py | laixintao/resp3-py | 71f8131d03a2bb1b39136bdea1b7f13f7e92aee8 | [
"BSD-3-Clause"
] | null | null | null | resp3/__init__.py | laixintao/resp3-py | 71f8131d03a2bb1b39136bdea1b7f13f7e92aee8 | [
"BSD-3-Clause"
] | null | null | null | __version__ = "0.1.0"
from .resp3 import Connection
__all__ = ["Connection"]
| 13.166667 | 29 | 0.708861 | 10 | 79 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0.151899 | 79 | 5 | 30 | 15.8 | 0.656716 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2465572c6a8aa29157dc7b2fcbbe8e7f93b2d11d | 246 | py | Python | sample_pipeline/sample_pipeline/tests_2_fixtures_generated_with_the_pipeline/test_visualize_full_pipeline.py | CFMTech/python_pipeline_blog_post | 21938d3531653af4240b6b229cf649139abeef9d | [
"MIT"
] | 1 | 2021-12-12T14:19:10.000Z | 2021-12-12T14:19:10.000Z | sample_pipeline/sample_pipeline/tests_2_fixtures_generated_with_the_pipeline/test_visualize_full_pipeline.py | mwouts/python_pipeline_blog_post | e4b0e579a568a916d37645cbfa838b21668b2c6c | [
"MIT"
] | null | null | null | sample_pipeline/sample_pipeline/tests_2_fixtures_generated_with_the_pipeline/test_visualize_full_pipeline.py | mwouts/python_pipeline_blog_post | e4b0e579a568a916d37645cbfa838b21668b2c6c | [
"MIT"
] | 1 | 2021-12-12T14:19:54.000Z | 2021-12-12T14:19:54.000Z | import pytest
from sample_pipeline.pipeline import get_full_pipeline
pytest.importorskip("graphviz")
def test_visualize_full_pipeline(tickers, start_date, end_date):
get_full_pipeline(tickers, start_date, end_date)["signals"].visualize()
| 24.6 | 75 | 0.821138 | 33 | 246 | 5.757576 | 0.515152 | 0.189474 | 0.157895 | 0.252632 | 0.368421 | 0.368421 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.089431 | 246 | 9 | 76 | 27.333333 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
79f1d5318b5e7f8305a36c49462833d460307ade | 277 | py | Python | 001146StepikPyBegin/Stepik001146PyBeginсh11p02st05TASK04_20210203.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh11p02st05TASK04_20210203.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh11p02st05TASK04_20210203.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | '''
Дополните приведенный код, так чтобы он вывел сумму минимального и максимального элементов списка numbers.
numbers = [12.5, 3.1415, 2.718, 9.8, 1.414, 1.1618, 1.324]
print()
'''
numbers = [12.5, 3.1415, 2.718, 9.8, 1.414, 1.1618, 1.324]
print(min(numbers) + max(numbers))
| 30.777778 | 106 | 0.68231 | 50 | 277 | 3.78 | 0.58 | 0.095238 | 0.10582 | 0.116402 | 0.412698 | 0.412698 | 0.412698 | 0.412698 | 0.412698 | 0.412698 | 0 | 0.226891 | 0.140794 | 277 | 8 | 107 | 34.625 | 0.567227 | 0.628159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
79f3c4f78795b2abcdae8092ac6f13b4b8825dda | 875 | py | Python | config/constants.py | rupakc/Storyweaver | 9a6ec1c040a09f730cc6f32ce385f44a79d28663 | [
"BSL-1.0"
] | null | null | null | config/constants.py | rupakc/Storyweaver | 9a6ec1c040a09f730cc6f32ce385f44a79d28663 | [
"BSL-1.0"
] | null | null | null | config/constants.py | rupakc/Storyweaver | 9a6ec1c040a09f730cc6f32ce385f44a79d28663 | [
"BSL-1.0"
] | null | null | null | BASE_URL = 'https://storyweaver.org.in/api/v1/illustrations-search'
DEFAULT_PAGE_NUM = 1
DEFAULT_PER_PAGE = 10
MAX_PAGE_NUM = 1164
DATA_FOLDER_PATH = '\\Documents\\Github\\Storyweaver\\static\\data\\'
MODEL_FOLDER_PATH = '\\Documents\\Github\\Storyweaver\\model\\'
DETECTED_OBJECT_OUTPUT_PATH = '\\Documents\\Github\\Sto... | 51.470588 | 94 | 0.788571 | 116 | 875 | 5.586207 | 0.448276 | 0.162037 | 0.280864 | 0.191358 | 0.337963 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01451 | 0.054857 | 875 | 16 | 95 | 54.6875 | 0.769045 | 0 | 0 | 0 | 0 | 0 | 0.574857 | 0.441143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
79fe3f5c5a5b39ea489f08e2200eef34f738c84c | 379 | py | Python | APR2020/MinimumNumberofOperations.py | dexterchan/DailyChallenge | 1f38dc3b22983835836a84d6281777d8e20fce7a | [
"Apache-2.0"
] | null | null | null | APR2020/MinimumNumberofOperations.py | dexterchan/DailyChallenge | 1f38dc3b22983835836a84d6281777d8e20fce7a | [
"Apache-2.0"
] | null | null | null | APR2020/MinimumNumberofOperations.py | dexterchan/DailyChallenge | 1f38dc3b22983835836a84d6281777d8e20fce7a | [
"Apache-2.0"
] | null | null | null |
#You are only allowed to perform 2 operations, multiply a number by 2, or subtract a number by 1.
# Given a number x and a number y, find the minimum number of operations needed to go from x to y.
#Here's an example and some starter code.
def min_operations(x, y):
# Fill this in.
print(min_operations(6, 20))
# ((... | 31.583333 | 98 | 0.699208 | 72 | 379 | 3.652778 | 0.583333 | 0.106464 | 0.068441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046823 | 0.211082 | 379 | 12 | 99 | 31.583333 | 0.832776 | 0.810026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
032737adaf3efc615d5ce4be3851af271b5a3678 | 172 | py | Python | Python/Topics/Exception handling/Implementing logic/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 5 | 2020-08-29T15:15:31.000Z | 2022-03-01T18:22:34.000Z | Python/Topics/Exception handling/Implementing logic/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | null | null | null | Python/Topics/Exception handling/Implementing logic/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 1 | 2020-12-02T11:13:14.000Z | 2020-12-02T11:13:14.000Z | try:
name, surname = input().split()
print(f"Welcome to our party, {name} {surname}")
except ValueError:
print("You need to enter exactly 2 words. Try again!")
| 28.666667 | 58 | 0.662791 | 25 | 172 | 4.56 | 0.8 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.197674 | 172 | 5 | 59 | 34.4 | 0.818841 | 0 | 0 | 0 | 0 | 0 | 0.482558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 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 |
032c06db54776ec66f6972909e2e45a132a8a412 | 618 | py | Python | Ngo/FinalProj/accounts/forms.py | Devang-25/Donate-Cart-for-NGO-By-Devang-Sharma | 0ff42aba6a2b266826637877b8a74cda2e22cac8 | [
"MIT"
] | null | null | null | Ngo/FinalProj/accounts/forms.py | Devang-25/Donate-Cart-for-NGO-By-Devang-Sharma | 0ff42aba6a2b266826637877b8a74cda2e22cac8 | [
"MIT"
] | null | null | null | Ngo/FinalProj/accounts/forms.py | Devang-25/Donate-Cart-for-NGO-By-Devang-Sharma | 0ff42aba6a2b266826637877b8a74cda2e22cac8 | [
"MIT"
] | null | null | null | from django import forms
from .models import Ngo, NgoRequirementDetail, Donator, DonationDetail
class NgoRegisterForm(forms.ModelForm):
class Meta:
model = Ngo
fields = ['name', 'email', 'phone']
class AddRequirement(forms.ModelForm):
class Meta:
model = NgoRequirementDetail
... | 22.888889 | 70 | 0.652104 | 60 | 618 | 6.683333 | 0.416667 | 0.139651 | 0.189526 | 0.229426 | 0.279302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236246 | 618 | 26 | 71 | 23.769231 | 0.849576 | 0 | 0 | 0.222222 | 0 | 0 | 0.101942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
033c84f1c68260784425dcff54a3217b8a483a5f | 192 | py | Python | auth/helpers.py | EventKit/django-auth | 23b92a990dea3bd889e69b5167bb6017c7436de5 | [
"MIT"
] | null | null | null | auth/helpers.py | EventKit/django-auth | 23b92a990dea3bd889e69b5167bb6017c7436de5 | [
"MIT"
] | null | null | null | auth/helpers.py | EventKit/django-auth | 23b92a990dea3bd889e69b5167bb6017c7436de5 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User # pylint: disable=E5142
def get_id(user: User):
if hasattr(user, "oauth"):
return user.oauth.identification
return user.username
| 24 | 68 | 0.713542 | 26 | 192 | 5.230769 | 0.730769 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.1875 | 192 | 7 | 69 | 27.428571 | 0.846154 | 0.109375 | 0 | 0 | 0 | 0 | 0.029586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ceebdbb68eb399cb636a6b511520349bb5e6b3b1 | 34,525 | py | Python | sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 38.446548 | 98 | 0.824967 | 2,419 | 34,525 | 11.464655 | 0.201736 | 0.133776 | 0.173908 | 0.254174 | 0.082357 | 0.082357 | 0.082357 | 0.082357 | 0.082357 | 0.082357 | 0 | 0.015187 | 0.118899 | 34,525 | 897 | 99 | 38.489409 | 0.896483 | 0.013092 | 0 | 0 | 0 | 0 | 0.299486 | 0.213239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.419865 | 0 | 0.419865 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cef3990875059e0b0075c6a1588736b5970a70d1 | 2,300 | py | Python | thriftcli/thrift_service.py | m-racine/thriftcli | e226ddafe1d33aa8f0eb00a0937d84f57be57406 | [
"Apache-2.0"
] | 31 | 2017-05-25T21:22:38.000Z | 2021-12-04T10:29:11.000Z | thriftcli/thrift_service.py | m-racine/thriftcli | e226ddafe1d33aa8f0eb00a0937d84f57be57406 | [
"Apache-2.0"
] | 17 | 2017-11-15T23:02:24.000Z | 2020-12-22T21:26:40.000Z | thriftcli/thrift_service.py | m-racine/thriftcli | e226ddafe1d33aa8f0eb00a0937d84f57be57406 | [
"Apache-2.0"
] | 16 | 2017-05-22T21:35:26.000Z | 2020-09-08T17:14:24.000Z | # Copyright Notice:
# Copyright 2017, Fitbit, 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 ... | 43.396226 | 107 | 0.663478 | 309 | 2,300 | 4.731392 | 0.36246 | 0.04104 | 0.04104 | 0.021888 | 0.179207 | 0.179207 | 0.140903 | 0.140903 | 0.140903 | 0.140903 | 0 | 0.004587 | 0.241739 | 2,300 | 52 | 108 | 44.230769 | 0.833716 | 0.388261 | 0 | 0.384615 | 0 | 0 | 0.027387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.192308 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
30055d4c14c2b7447a80c47871c24c45297b0309 | 186 | py | Python | backend/linkanywhere/apps/categories/urls.py | apirobot/linkanywhere-back | e21d6725fbe0e74a7301e40f9d9bdbac17c68e68 | [
"MIT"
] | null | null | null | backend/linkanywhere/apps/categories/urls.py | apirobot/linkanywhere-back | e21d6725fbe0e74a7301e40f9d9bdbac17c68e68 | [
"MIT"
] | null | null | null | backend/linkanywhere/apps/categories/urls.py | apirobot/linkanywhere-back | e21d6725fbe0e74a7301e40f9d9bdbac17c68e68 | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from .views import CategoryViewSet
router = DefaultRouter()
router.register(r'categories', CategoryViewSet)
urlpatterns = router.urls
| 20.666667 | 48 | 0.827957 | 20 | 186 | 7.65 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102151 | 186 | 8 | 49 | 23.25 | 0.916168 | 0 | 0 | 0 | 0 | 0 | 0.053763 | 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 |
3005f675455afb8e6596f6e7f6ce65268d42b792 | 155 | py | Python | zeropush/__init__.py | theskumar/django-zeropush | 0970b037e4a8b2af9d325381951c0b72eccf1aeb | [
"BSD-3-Clause"
] | 1 | 2015-04-30T19:53:56.000Z | 2015-04-30T19:53:56.000Z | zeropush/__init__.py | theskumar/django-zeropush | 0970b037e4a8b2af9d325381951c0b72eccf1aeb | [
"BSD-3-Clause"
] | 1 | 2015-05-11T13:32:06.000Z | 2015-05-11T13:32:06.000Z | zeropush/__init__.py | theskumar/django-zeropush-reflux | 0970b037e4a8b2af9d325381951c0b72eccf1aeb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
default_app_config = "zeropush.apps.ZeroPushAppConfig"
from .utils import notify_devices # noqa
from .services import * # noqa
| 22.142857 | 54 | 0.722581 | 19 | 155 | 5.736842 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.154839 | 155 | 6 | 55 | 25.833333 | 0.824427 | 0.2 | 0 | 0 | 0 | 0 | 0.258333 | 0.258333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3005f96021a6751f4ac90c8f496c840215bd71c6 | 6,841 | py | Python | openhab_creator/models/configuration/equipment/types/weatherstation.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | 1 | 2021-11-16T22:48:26.000Z | 2021-11-16T22:48:26.000Z | openhab_creator/models/configuration/equipment/types/weatherstation.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | null | null | null | openhab_creator/models/configuration/equipment/types/weatherstation.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Dict, List, Optional
from openhab_creator import _, CreatorEnum
from openhab_creator.models.configuration.equipment import EquipmentType
from openhab_creator.models.configuration.equipment.types.sensor import (
Sensor, SensorColors, SensorItemIdentifiers, Sens... | 28.623431 | 88 | 0.643619 | 682 | 6,841 | 6.272727 | 0.193548 | 0.095138 | 0.057737 | 0.071529 | 0.241234 | 0.101917 | 0 | 0 | 0 | 0 | 0 | 0.005748 | 0.2371 | 6,841 | 238 | 89 | 28.743697 | 0.813949 | 0 | 0 | 0.259669 | 0 | 0 | 0.100862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220994 | false | 0 | 0.038674 | 0.198895 | 0.524862 | 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 |
30143959b0f25325c636c7498c09713ea9585203 | 354 | py | Python | accelbyte_py_sdk/api/social/operations/stat_configuration/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/social/operations/stat_configuration/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/social/operations/stat_configuration/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | # pylint: disable=line-too-long
from .get_stat import GetStat
from .delete_stat import DeleteStat
from .update_stat import UpdateStat
from .get_stats import GetStats
from .create_stat import CreateStat
from .query_stats import QueryStats
from .export_stats import ExportStats
from .import_stats import ImportStats
from ... | 29.5 | 38 | 0.847458 | 51 | 354 | 5.686275 | 0.490196 | 0.137931 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.112994 | 354 | 11 | 39 | 32.181818 | 0.917197 | 0.081921 | 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 |
301cc6da33cd85d5cc5f49a731e93501bc086bd5 | 219 | py | Python | intents/greeting.py | DAKSH6786/chatty-ai-assistant | 1ec39b0f92720172b9407e896be12b9956b6fdaf | [
"MIT"
] | null | null | null | intents/greeting.py | DAKSH6786/chatty-ai-assistant | 1ec39b0f92720172b9407e896be12b9956b6fdaf | [
"MIT"
] | null | null | null | intents/greeting.py | DAKSH6786/chatty-ai-assistant | 1ec39b0f92720172b9407e896be12b9956b6fdaf | [
"MIT"
] | null | null | null | from utils.utils import Utils
class Greeting:
def __init__(self, logger, response):
self.logger = logger
self.response = response
def speak(self):
Utils.playsound(self.response) | 24.333333 | 42 | 0.643836 | 25 | 219 | 5.48 | 0.48 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273973 | 219 | 9 | 42 | 24.333333 | 0.861635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
302c1db07f1d7b4334d3b1ac125c23ab73bb3f64 | 373 | py | Python | sunpy-meta-graphs/sunpy_meta.py | ehsteve/sunpy-meta-graphs | 4af920f81b1fcf482b540135856ca3c3b0820d81 | [
"BSD-3-Clause"
] | null | null | null | sunpy-meta-graphs/sunpy_meta.py | ehsteve/sunpy-meta-graphs | 4af920f81b1fcf482b540135856ca3c3b0820d81 | [
"BSD-3-Clause"
] | null | null | null | sunpy-meta-graphs/sunpy_meta.py | ehsteve/sunpy-meta-graphs | 4af920f81b1fcf482b540135856ca3c3b0820d81 | [
"BSD-3-Clause"
] | 1 | 2019-03-27T19:47:49.000Z | 2019-03-27T19:47:49.000Z | # the following file holds meta information about the sunpy package
sunpy_releases = {'0.9': '2018/04/22', '0.8': '2017/08/17', '0.7': '2016/05/24', '0.6': '2015/07/21',
'0.5': '2014/06/13', '0.4': '2014/02/14', '0.3': '2013/08/30',
'0.2': '2012/11/26', '0.1': '2011/09/28'}
repo_pa... | 46.625 | 101 | 0.557641 | 64 | 373 | 3.21875 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302326 | 0.193029 | 373 | 7 | 102 | 53.285714 | 0.38206 | 0.174263 | 0 | 0 | 0 | 0 | 0.529412 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3041267d1fb70658a959158e97e411406ca8e08b | 1,177 | py | Python | TaoFunc/params.py | mkcarl/Tao | a6f09427a3a23a47cbce08afd75c942a6fd537dd | [
"MIT"
] | 3 | 2021-03-26T06:57:25.000Z | 2021-03-26T06:58:34.000Z | TaoFunc/params.py | mkcarl/Tao | a6f09427a3a23a47cbce08afd75c942a6fd537dd | [
"MIT"
] | null | null | null | TaoFunc/params.py | mkcarl/Tao | a6f09427a3a23a47cbce08afd75c942a6fd537dd | [
"MIT"
] | null | null | null | import discord_argparse as da
cartoonify = da.ArgumentConverter(
url=da.OptionalArgument(
str,
doc="URL of the image.",
default=''
),
line=da.OptionalArgument(
int,
doc="The line size of the output",
... | 32.694444 | 121 | 0.457094 | 113 | 1,177 | 4.752212 | 0.513274 | 0.201117 | 0.195531 | 0.223464 | 0.264432 | 0.163873 | 0.163873 | 0 | 0 | 0 | 0 | 0.012924 | 0.474087 | 1,177 | 36 | 122 | 32.694444 | 0.854604 | 0 | 0 | 0.352941 | 0 | 0.029412 | 0.286927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 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 |
3055f5aa698a4b1e3cfc9b6d1f15feaa8e3f1cf5 | 676 | py | Python | image_labelling_tool/managers.py | monforte-dt/django-labeller | bf185e8cd00447f1a098059827a5c5435f34d0d4 | [
"MIT"
] | 94 | 2020-08-05T09:46:52.000Z | 2022-03-31T19:10:26.000Z | image_labelling_tool/managers.py | monforte-dt/django-labeller | bf185e8cd00447f1a098059827a5c5435f34d0d4 | [
"MIT"
] | 15 | 2020-11-14T16:26:18.000Z | 2022-01-24T16:38:45.000Z | image_labelling_tool/managers.py | monforte-dt/django-labeller | bf185e8cd00447f1a098059827a5c5435f34d0d4 | [
"MIT"
] | 20 | 2020-07-19T12:17:04.000Z | 2021-12-11T13:13:18.000Z | import datetime
from django.db import models
from django.db.models import Q
from django.utils import timezone
class LabelsManager (models.Manager):
def empty(self):
return self.filter(labels_json_str='[]')
def not_empty(self):
return self.exclude(labels_json_str='[]')
def modified_by_use... | 23.310345 | 67 | 0.686391 | 93 | 676 | 4.784946 | 0.365591 | 0.11236 | 0.14382 | 0.085393 | 0.134831 | 0.134831 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0.210059 | 676 | 28 | 68 | 24.142857 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.005935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.210526 | 0.263158 | 0.894737 | 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 |
3057423897c262d456be94e568429799f749cfa5 | 507 | py | Python | src/pages/user_page.py | djeada/Minimal-Flask-App | 619211dc56c270fecc984cdcd45754f4d324e689 | [
"MIT"
] | null | null | null | src/pages/user_page.py | djeada/Minimal-Flask-App | 619211dc56c270fecc984cdcd45754f4d324e689 | [
"MIT"
] | null | null | null | src/pages/user_page.py | djeada/Minimal-Flask-App | 619211dc56c270fecc984cdcd45754f4d324e689 | [
"MIT"
] | null | null | null | from flask import Blueprint
def construct_user_page(users: dict) -> Blueprint:
"""
Constructs the user page blueprint.
:param users: The users dictionary.
:return: The user page blueprint.
"""
user_page = Blueprint("user", __name__)
@user_page.route("/users")
def render_user_page() ->... | 24.142857 | 56 | 0.609467 | 61 | 507 | 4.852459 | 0.393443 | 0.216216 | 0.111486 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005277 | 0.252465 | 507 | 20 | 57 | 25.35 | 0.775726 | 0.250493 | 0 | 0 | 0 | 0 | 0.105105 | 0.063063 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0.375 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
305d3a1d0ea77c132dfd09e7d29b714f400f86af | 217 | wsgi | Python | webapp.wsgi | ThomasM199/Napier-Group-Project-ProjectX | 034355ba2d5ce56ba77ffbfc44486df09903cf98 | [
"Apache-2.0"
] | 2 | 2020-02-17T14:59:55.000Z | 2020-03-05T10:03:19.000Z | webapp.wsgi | ThomasM199/Napier-Group-Project-ProjectX | 034355ba2d5ce56ba77ffbfc44486df09903cf98 | [
"Apache-2.0"
] | null | null | null | webapp.wsgi | ThomasM199/Napier-Group-Project-ProjectX | 034355ba2d5ce56ba77ffbfc44486df09903cf98 | [
"Apache-2.0"
] | 1 | 2020-02-17T12:54:44.000Z | 2020-02-17T12:54:44.000Z |
#!/usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/webApp/")
from webApp import app as application
application.secret_key = 'Add your secret key'
| 21.7 | 47 | 0.746544 | 32 | 217 | 5.03125 | 0.71875 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.138249 | 217 | 9 | 48 | 24.111111 | 0.855615 | 0.073733 | 0 | 0 | 0 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3071198e6b98136eb833e5d7d2b71a54bbbc996e | 371 | py | Python | pylivecap/__init__.py | pynayzr/livestream-frame-capture | 59e4aadcfc0df85d3425b94bb06e8e5fcfd24fac | [
"MIT"
] | 1 | 2017-04-22T09:47:33.000Z | 2017-04-22T09:47:33.000Z | pylivecap/__init__.py | pynayzr/livestream-frame-capture | 59e4aadcfc0df85d3425b94bb06e8e5fcfd24fac | [
"MIT"
] | null | null | null | pylivecap/__init__.py | pynayzr/livestream-frame-capture | 59e4aadcfc0df85d3425b94bb06e8e5fcfd24fac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import shutil
import importlib.util
# Check requirement python package and ffmpeg
if not importlib.util.find_spec('streamlink'):
raise ImportError('Please install streamlink first.')
if not shutil.which('ffmpeg'):
raise OSError('Please install ffmpeg first.')
# Expose API
from pylivec... | 26.5 | 62 | 0.757412 | 48 | 371 | 5.8125 | 0.6875 | 0.09319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.140162 | 371 | 13 | 63 | 28.538462 | 0.871473 | 0.204852 | 0 | 0 | 0 | 0 | 0.261168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
061bd5772206963c8dabd61ac7ffe89952a6049f | 18 | py | Python | pyfiler/__init__.py | Plasmar/pyfiler | ad6cb24328c1ac3695f0441e89b5d34ad1797c8d | [
"MIT"
] | null | null | null | pyfiler/__init__.py | Plasmar/pyfiler | ad6cb24328c1ac3695f0441e89b5d34ad1797c8d | [
"MIT"
] | null | null | null | pyfiler/__init__.py | Plasmar/pyfiler | ad6cb24328c1ac3695f0441e89b5d34ad1797c8d | [
"MIT"
] | null | null | null | name = "pyfiler"
| 6 | 16 | 0.611111 | 2 | 18 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 18 | 2 | 17 | 9 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 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 |
062885d0deff4733ce9f19cb753b9d6efff7cdbd | 283 | py | Python | tests/test_maven_spotless_check.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 8 | 2021-01-18T09:40:48.000Z | 2022-02-16T03:20:52.000Z | tests/test_maven_spotless_check.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 4 | 2021-05-15T20:41:41.000Z | 2021-09-22T07:05:44.000Z | tests/test_maven_spotless_check.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 4 | 2021-04-16T17:03:33.000Z | 2022-03-25T12:16:00.000Z | import pytest
from pre_commit_maven.maven_spotless_check import main
def test_given_goals_then_executes_generic_main(mocker):
mocked_execute_fn = mocker.Mock()
main(".", execute_fn=mocked_execute_fn)
mocked_execute_fn.assert_called_once_with(["spotless:check"], ".")
| 25.727273 | 70 | 0.795053 | 40 | 283 | 5.125 | 0.625 | 0.17561 | 0.219512 | 0.214634 | 0.190244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109541 | 283 | 10 | 71 | 28.3 | 0.813492 | 0 | 0 | 0 | 0 | 0 | 0.056537 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
063ab38482e168ded03652812ff6b4cb5c029a28 | 3,841 | py | Python | hylfm/get_criterion.py | kreshuklab/hylfm-net | 9f1013640e40e998674b65176023367b1e978782 | [
"MIT"
] | 8 | 2020-11-13T05:46:59.000Z | 2022-01-30T06:12:04.000Z | hylfm/get_criterion.py | kreshuklab/hylfm-net | 9f1013640e40e998674b65176023367b1e978782 | [
"MIT"
] | 1 | 2020-11-13T08:29:23.000Z | 2022-02-10T16:45:19.000Z | hylfm/get_criterion.py | kreshuklab/hylfm-net | 9f1013640e40e998674b65176023367b1e978782 | [
"MIT"
] | 2 | 2020-10-30T11:02:42.000Z | 2021-01-12T06:51:33.000Z | import logging
from typing import TYPE_CHECKING
import hylfm.criteria
from hylfm.hylfm_types import CriterionChoice, TransformsPipeline
from hylfm.utils.general import Period
if TYPE_CHECKING:
from hylfm.checkpoint import TrainRunConfig
logger = logging.getLogger(__name__)
def get_criterion(config: "TrainRunC... | 40.010417 | 113 | 0.687061 | 443 | 3,841 | 5.562077 | 0.167043 | 0.113636 | 0.073052 | 0.102273 | 0.78125 | 0.72362 | 0.72362 | 0.658685 | 0.658685 | 0.658685 | 0 | 0.003451 | 0.245509 | 3,841 | 95 | 114 | 40.431579 | 0.846791 | 0 | 0 | 0.632184 | 0 | 0 | 0.010154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0 | 0.068966 | 0 | 0.091954 | 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 |
066bc1d9c40d6732ac2a00884f9bfb2ee6cbc33a | 111 | py | Python | notifygrade/config.py | Goclis/LittleLittle | e32e563e50c3b59ca457ae4acc3fb2871d70f5c6 | [
"MIT"
] | null | null | null | notifygrade/config.py | Goclis/LittleLittle | e32e563e50c3b59ca457ae4acc3fb2871d70f5c6 | [
"MIT"
] | null | null | null | notifygrade/config.py | Goclis/LittleLittle | e32e563e50c3b59ca457ae4acc3fb2871d70f5c6 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# 信息门户账号密码
username = ''
password = ''
# 邮箱账号密码
emailUsername = ''
emailPassword = ''
| 11.1 | 22 | 0.594595 | 9 | 111 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.198198 | 111 | 9 | 23 | 12.333333 | 0.730337 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ebf4cf94ab8de6c74cafaa68700cb2539dc49f53 | 55 | py | Python | tests/__init__.py | ONSdigital/census-rm-ops-ui | 96a343937e7cbea8545a2a720ce5a341ba25524e | [
"MIT"
] | null | null | null | tests/__init__.py | ONSdigital/census-rm-ops-ui | 96a343937e7cbea8545a2a720ce5a341ba25524e | [
"MIT"
] | 10 | 2020-08-17T07:36:50.000Z | 2021-06-02T02:56:11.000Z | tests/__init__.py | ONSdigital/census-rm-ops-ui | 96a343937e7cbea8545a2a720ce5a341ba25524e | [
"MIT"
] | 1 | 2021-04-11T07:48:08.000Z | 2021-04-11T07:48:08.000Z | import unittest
unittest_helper = unittest.TestCase()
| 13.75 | 37 | 0.818182 | 6 | 55 | 7.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 55 | 3 | 38 | 18.333333 | 0.897959 | 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 |
231280eb3058d425cf376c6481cdc450d514f073 | 213 | py | Python | test/data/Python/values.py | jfitz/code-stat | dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26 | [
"MIT"
] | null | null | null | test/data/Python/values.py | jfitz/code-stat | dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26 | [
"MIT"
] | null | null | null | test/data/Python/values.py | jfitz/code-stat | dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26 | [
"MIT"
] | null | null | null | f1 = 1.0
s1 = 'string'
s2 = "string"
s3 = '''multiline string'''
s4 = """multiline string"""
s5 = r'raw text'
s6 = r"more raw text"
s7 = r'''raw multiline string'''
s8 = r"""raw multiline string"""
print('done')
| 17.75 | 32 | 0.605634 | 34 | 213 | 3.794118 | 0.558824 | 0.465116 | 0.20155 | 0.294574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062857 | 0.178404 | 213 | 11 | 33 | 19.363636 | 0.674286 | 0 | 0 | 0 | 0 | 0 | 0.511737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
232d736e64729c28c4df313855dc036e1a50465f | 253 | py | Python | octant/extern/__init__.py | kthyng/octant | 65591d87797fa74e0c092d5f50fb0cd703eb412e | [
"BSD-3-Clause"
] | 1 | 2021-12-28T13:50:45.000Z | 2021-12-28T13:50:45.000Z | octant/extern/__init__.py | kthyng/octant | 65591d87797fa74e0c092d5f50fb0cd703eb412e | [
"BSD-3-Clause"
] | null | null | null | octant/extern/__init__.py | kthyng/octant | 65591d87797fa74e0c092d5f50fb0cd703eb412e | [
"BSD-3-Clause"
] | 2 | 2020-08-31T19:54:25.000Z | 2021-12-28T13:50:47.000Z | 'External packages'
# from an old version Jeff Whitaker's Basemap
from greatcircle import GreatCircle
# from Roberto De Almeida <rob@pydap.org>
import pupynere
# from Anne M. Archibald's scipy.spatial.kdtree pure python code
from kdtree import KDTree | 25.3 | 64 | 0.798419 | 38 | 253 | 5.315789 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146245 | 253 | 10 | 65 | 25.3 | 0.935185 | 0.652174 | 0 | 0 | 0 | 0 | 0.163462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
235d1dae170f2c0ef7c9a67d4d44deda0a3ce4f4 | 56 | py | Python | pytherface/__init__.py | aseiger/pytherface-configurator | 704703cee8dd31f28fd73552c2b40c4b4d5faa5b | [
"MIT"
] | null | null | null | pytherface/__init__.py | aseiger/pytherface-configurator | 704703cee8dd31f28fd73552c2b40c4b4d5faa5b | [
"MIT"
] | null | null | null | pytherface/__init__.py | aseiger/pytherface-configurator | 704703cee8dd31f28fd73552c2b40c4b4d5faa5b | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger(__name__)
| 14 | 37 | 0.767857 | 6 | 56 | 6.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 56 | 3 | 38 | 18.666667 | 0.829787 | 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 |
2366b1cb03d7252c8e7c238c191644a4c1c2622d | 26 | py | Python | custom_components/magicswitchbot/const.py | ec-blaster/magicswitchbot-homeassistant | a689b25fbe5f5b03376aaf61abc7128ad1eb9a52 | [
"MIT"
] | 13 | 2021-03-22T00:15:24.000Z | 2021-09-14T07:24:29.000Z | custom_components/magicswitchbot/const.py | ec-blaster/magicswitchbot-homeassistant | a689b25fbe5f5b03376aaf61abc7128ad1eb9a52 | [
"MIT"
] | 7 | 2021-03-23T13:52:23.000Z | 2021-12-22T10:10:02.000Z | custom_components/magicswitchbot/const.py | ec-blaster/magicswitchbot-homeassistant | a689b25fbe5f5b03376aaf61abc7128ad1eb9a52 | [
"MIT"
] | null | null | null | DOMAIN = "magicswitchbot"
| 13 | 25 | 0.769231 | 2 | 26 | 10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 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 |
2369849e724fe294d5ff91f3bc8e0453de2aac53 | 3,846 | py | Python | zbook/core/migrations/0001_initial.py | nahidsaikat/zbook-pro | 60746a458fb21c329712142aced679b583d84bb0 | [
"MIT"
] | 1 | 2020-06-11T07:28:04.000Z | 2020-06-11T07:28:04.000Z | zbook/core/migrations/0001_initial.py | nahidsaikat/zbook-pro | 60746a458fb21c329712142aced679b583d84bb0 | [
"MIT"
] | 13 | 2020-02-12T00:18:50.000Z | 2022-03-11T23:59:15.000Z | zbook/core/migrations/0001_initial.py | nahidsaikat/zbook-pro | 60746a458fb21c329712142aced679b583d84bb0 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-01-10 15:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 62.032258 | 186 | 0.636765 | 434 | 3,846 | 5.463134 | 0.202765 | 0.060734 | 0.065795 | 0.092788 | 0.752847 | 0.704766 | 0.660481 | 0.633488 | 0.62674 | 0.606495 | 0 | 0.011292 | 0.217109 | 3,846 | 61 | 187 | 63.04918 | 0.776154 | 0.0117 | 0 | 0.444444 | 1 | 0 | 0.137405 | 0.005528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.12963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
23738d320c5f05c62efb143bc333e643ac321b25 | 165 | py | Python | repo_splitter/gui/config.py | whoopnip/repo-splitter | 60c8fa82795dc9372e0f9da1ee415ab73571d5df | [
"MIT"
] | null | null | null | repo_splitter/gui/config.py | whoopnip/repo-splitter | 60c8fa82795dc9372e0f9da1ee415ab73571d5df | [
"MIT"
] | 2 | 2020-03-24T18:14:41.000Z | 2020-03-31T09:01:49.000Z | repo_splitter/gui/config.py | whoopnip/repo-splitter | 60c8fa82795dc9372e0f9da1ee415ab73571d5df | [
"MIT"
] | null | null | null | # Prefer qt if it is installed, otherwise default to tkinter
try:
import PySimpleGUIQt as sg
except ImportError:
import PySimpleGUI as sg
THEME = 'Material1' | 27.5 | 60 | 0.763636 | 23 | 165 | 5.478261 | 0.869565 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.193939 | 165 | 6 | 61 | 27.5 | 0.93985 | 0.351515 | 0 | 0 | 0 | 0 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
2374c48e3ffa1215c5335bfa99398b6f6154eb1c | 814 | py | Python | Algorithms/Stack/0150-evaluate-reverse-polish-notation.py | sandychn/LeetCode-Solutions | d0dd55d62b099c5b7db947822ab2111a4ecdc941 | [
"MIT"
] | null | null | null | Algorithms/Stack/0150-evaluate-reverse-polish-notation.py | sandychn/LeetCode-Solutions | d0dd55d62b099c5b7db947822ab2111a4ecdc941 | [
"MIT"
] | null | null | null | Algorithms/Stack/0150-evaluate-reverse-polish-notation.py | sandychn/LeetCode-Solutions | d0dd55d62b099c5b7db947822ab2111a4ecdc941 | [
"MIT"
] | null | null | null | class Solution:
def evalRPN(self, tokens: List[str]) -> int:
num_stack = []
for token in tokens:
if token in "+-*/":
num2, num1 = num_stack.pop(), num_stack.pop()
if token == "+":
num_stack.append(num1 + num2)
el... | 38.761905 | 62 | 0.406634 | 79 | 814 | 4.063291 | 0.316456 | 0.249221 | 0.261682 | 0.280374 | 0.442368 | 0.305296 | 0.305296 | 0.305296 | 0.305296 | 0.305296 | 0 | 0.044811 | 0.479115 | 814 | 20 | 63 | 40.7 | 0.712264 | 0 | 0 | 0.1 | 0 | 0 | 0.010076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 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 |
88ba79c95f04199e8301bd72b952016af95140b7 | 152 | py | Python | invitation/apps.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | invitation/apps.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | invitation/apps.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class InvitationConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'invitation'
| 21.714286 | 56 | 0.769737 | 17 | 152 | 6.764706 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144737 | 152 | 6 | 57 | 25.333333 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.256579 | 0.190789 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
88cc6a3a8eec5afdce90640163a7b7be301d1c9d | 696 | py | Python | yxtx/myApp/migrations/0022_order.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | yxtx/myApp/migrations/0022_order.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | yxtx/myApp/migrations/0022_order.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-03-28 06:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myApp', '0021_auto_20200327_2254'),
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
... | 29 | 114 | 0.568966 | 72 | 696 | 5.361111 | 0.652778 | 0.15544 | 0.186529 | 0.248705 | 0.26943 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079268 | 0.293103 | 696 | 23 | 115 | 30.26087 | 0.705285 | 0.064655 | 0 | 0 | 1 | 0 | 0.095532 | 0.035439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
88d3ec709485017c71745f4329cac62a8d4f304b | 124 | py | Python | airavata_django_portal_sdk/apps.py | apache/airavata-django-portal-sdk | bad5b05352250f0247363f2e312d19f64cb666de | [
"Apache-2.0"
] | 1 | 2021-11-07T21:18:51.000Z | 2021-11-07T21:18:51.000Z | airavata_django_portal_sdk/apps.py | apache/airavata-django-portal-sdk | bad5b05352250f0247363f2e312d19f64cb666de | [
"Apache-2.0"
] | null | null | null | airavata_django_portal_sdk/apps.py | apache/airavata-django-portal-sdk | bad5b05352250f0247363f2e312d19f64cb666de | [
"Apache-2.0"
] | 3 | 2021-03-15T17:28:45.000Z | 2021-11-07T21:18:44.000Z | from django.apps import AppConfig
class AiravataDjangoPortalSDKConfig(AppConfig):
name = "airavata_django_portal_sdk"
| 20.666667 | 47 | 0.822581 | 13 | 124 | 7.615385 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120968 | 124 | 5 | 48 | 24.8 | 0.908257 | 0 | 0 | 0 | 0 | 0 | 0.209677 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
88d5d2442c7102fe384ebc7367b01cf4e55e11a9 | 203 | py | Python | src/setup.py | SarahChiu/RobotEnv-PyBullet | f435293fdda64b701b349cbae15b69ef4012f172 | [
"MIT"
] | null | null | null | src/setup.py | SarahChiu/RobotEnv-PyBullet | f435293fdda64b701b349cbae15b69ef4012f172 | [
"MIT"
] | null | null | null | src/setup.py | SarahChiu/RobotEnv-PyBullet | f435293fdda64b701b349cbae15b69ef4012f172 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import sys
setup(
name='robotic_env',
packages=[package for package in find_packages()
if package.startswith('src')],
version='0.1.0',
)
| 20.3 | 52 | 0.684729 | 27 | 203 | 5.037037 | 0.703704 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.197044 | 203 | 9 | 53 | 22.555556 | 0.815951 | 0 | 0 | 0 | 0 | 0 | 0.093596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00047b5d98d7a3b9d47dea725be45cd8fe000326 | 10,165 | py | Python | nlplingo/tasks/sequence/run_decode.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | 3 | 2020-10-22T13:28:00.000Z | 2022-03-24T19:57:22.000Z | nlplingo/tasks/sequence/run_decode.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | null | null | null | nlplingo/tasks/sequence/run_decode.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | 1 | 2020-10-22T13:29:51.000Z | 2020-10-22T13:29:51.000Z | import json
import os
import numpy as np
import torch
from torch.nn import CrossEntropyLoss
from torch.utils.data import DataLoader, SequentialSampler, TensorDataset
from transformers import AutoTokenizer, AutoModelForTokenClassification
# TODO this should really be integrated into sequence_model.SequenceModel
#... | 54.358289 | 150 | 0.673979 | 1,236 | 10,165 | 5.205502 | 0.188511 | 0.032639 | 0.015232 | 0.028287 | 0.286602 | 0.204849 | 0.183712 | 0.119055 | 0.076469 | 0.065589 | 0 | 0.007267 | 0.228333 | 10,165 | 186 | 151 | 54.650538 | 0.812978 | 0.157403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 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 |
002da643713ca325fa74aabb983a153de897b028 | 76 | py | Python | lang/Python/a+b-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/a+b-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/a+b-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | import sys
for line in sys.stdin:
print((sum(map(int, line.split()))))
| 15.2 | 40 | 0.644737 | 13 | 76 | 3.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 76 | 4 | 41 | 19 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0039bce7457688a2482ca05f65924325eccda718 | 338 | py | Python | Notification/models.py | Lovekesh-GH/Dream-Makers | c5a681c2ed6a00a368f935394610eb51e100bcea | [
"MIT"
] | 1 | 2022-03-06T18:04:03.000Z | 2022-03-06T18:04:03.000Z | Notification/models.py | Lovekesh-GH/Dream-Makers | c5a681c2ed6a00a368f935394610eb51e100bcea | [
"MIT"
] | null | null | null | Notification/models.py | Lovekesh-GH/Dream-Makers | c5a681c2ed6a00a368f935394610eb51e100bcea | [
"MIT"
] | 1 | 2022-03-09T12:40:14.000Z | 2022-03-09T12:40:14.000Z | from django.db import models
# Create your models here.
class Notification(models.Model):
Text = models.CharField(max_length=100,null=False)
date = models.DateField()
start_time = models.TimeField()
end_time = models.TimeField()
notification_time = models.TimeField()
def __str__(self):
... | 26 | 54 | 0.710059 | 42 | 338 | 5.52381 | 0.666667 | 0.12931 | 0.24569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010949 | 0.189349 | 338 | 13 | 55 | 26 | 0.835766 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
00479d4ba0e9df2587ca1dc915f2b664596efe92 | 112 | py | Python | Soluciones/Python/Entrada_salida/Ejercicio09.py | TheInventorist/Material-Programacion | 5de54671169224c6c6455eeb2918e91c6ee4e250 | [
"MIT"
] | 1 | 2020-06-11T02:20:34.000Z | 2020-06-11T02:20:34.000Z | Soluciones/Python/Entrada_salida/Ejercicio09.py | TheInventorist/Material-Programacion | 5de54671169224c6c6455eeb2918e91c6ee4e250 | [
"MIT"
] | 2 | 2020-06-17T17:14:48.000Z | 2020-06-19T18:38:04.000Z | Soluciones/Python/Entrada_salida/Ejercicio09.py | TheInventorist/Material-Programacion | 5de54671169224c6c6455eeb2918e91c6ee4e250 | [
"MIT"
] | 2 | 2020-01-03T14:28:53.000Z | 2021-07-19T13:30:32.000Z | from math import pi
radio = float(input("Ingrese radio: "))
print(f"Volumen: {round((4/3)*pi*(radio**3), 3)}")
| 22.4 | 50 | 0.642857 | 19 | 112 | 3.789474 | 0.736842 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.116071 | 112 | 4 | 51 | 28 | 0.686869 | 0 | 0 | 0 | 0 | 0 | 0.491071 | 0.241071 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cc68a67bd4de62525a832398aa979cad98448d89 | 118 | py | Python | Exercicios/ex005.py | jlsmirandela/Curso_Python | 2419b68d335a2a42beb3e98fb93552aca1264cae | [
"MIT"
] | null | null | null | Exercicios/ex005.py | jlsmirandela/Curso_Python | 2419b68d335a2a42beb3e98fb93552aca1264cae | [
"MIT"
] | null | null | null | Exercicios/ex005.py | jlsmirandela/Curso_Python | 2419b68d335a2a42beb3e98fb93552aca1264cae | [
"MIT"
] | null | null | null | N1 = int(input('Digite um número - '))
print('O antecessor de {} é {} e o seu sucessor é {}'.format(N1, N1-1, N1+1))
| 29.5 | 77 | 0.601695 | 22 | 118 | 3.227273 | 0.727273 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.186441 | 118 | 3 | 78 | 39.333333 | 0.677083 | 0 | 0 | 0 | 0 | 0 | 0.542373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
cc83e33b4d3a933ef1196b6d12ce58f2386a82f9 | 1,882 | py | Python | catherder/names.py | cropsinsilico/catherder | d567deff0b9ed14973996812d08572e24bb3c0eb | [
"MIT"
] | 2 | 2019-11-07T19:24:26.000Z | 2020-01-10T16:24:55.000Z | catherder/names.py | cropsinsilico/catherder | d567deff0b9ed14973996812d08572e24bb3c0eb | [
"MIT"
] | null | null | null | catherder/names.py | cropsinsilico/catherder | d567deff0b9ed14973996812d08572e24bb3c0eb | [
"MIT"
] | null | null | null | import os
import csv
from catherder import config
class Names(list):
def __init__(self, fname, key_name='Name', key_email='E-mail Address',
key_github='Github Username', key_abbrev='Abbreviation'):
self.key_name = key_name
self.key_email = key_email
self.key_github = key_g... | 34.218182 | 79 | 0.631775 | 252 | 1,882 | 4.535714 | 0.265873 | 0.122485 | 0.115486 | 0.125984 | 0.506562 | 0.403325 | 0.403325 | 0.403325 | 0.371829 | 0.371829 | 0 | 0.010116 | 0.264612 | 1,882 | 54 | 80 | 34.851852 | 0.815751 | 0 | 0 | 0.093023 | 0 | 0 | 0.047821 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.232558 | false | 0 | 0.069767 | 0.186047 | 0.55814 | 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 |
ccd0df32920d3fd039d4407306cb74f7bd30e0e3 | 431 | py | Python | clustering-map/backend/api/src/db/database.py | Leandrojaviercepeda/tp8-nsql | 767f2130a19352d683dc8ba68d196082a7b82884 | [
"MIT"
] | null | null | null | clustering-map/backend/api/src/db/database.py | Leandrojaviercepeda/tp8-nsql | 767f2130a19352d683dc8ba68d196082a7b82884 | [
"MIT"
] | null | null | null | clustering-map/backend/api/src/db/database.py | Leandrojaviercepeda/tp8-nsql | 767f2130a19352d683dc8ba68d196082a7b82884 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
def connectionDB(host, port, database):
try:
client = MongoClient(host, port)
db = client.get_database(database)
return db
except :
raise
_host_db_clustering_map ='db_clustering_map'
_port_db_clustering_map = 27017
_db_clustering_map = 'clusterin... | 26.9375 | 102 | 0.758701 | 55 | 431 | 5.436364 | 0.345455 | 0.391304 | 0.401338 | 0.250836 | 0.421405 | 0.327759 | 0.227425 | 0 | 0 | 0 | 0 | 0.014124 | 0.178654 | 431 | 15 | 103 | 28.733333 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0.071926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aeab27321acb8fa748d3c7648aba4c2acaf9c24f | 306 | py | Python | openvpn_api/util/errors.py | binRick/openvpn-api | b084fd1387534a0476ba53c57b2761a6a2186927 | [
"MIT"
] | 1 | 2020-05-14T02:10:33.000Z | 2020-05-14T02:10:33.000Z | openvpn_api/util/errors.py | binRick/openvpn-api | b084fd1387534a0476ba53c57b2761a6a2186927 | [
"MIT"
] | null | null | null | openvpn_api/util/errors.py | binRick/openvpn-api | b084fd1387534a0476ba53c57b2761a6a2186927 | [
"MIT"
] | 1 | 2019-11-27T18:42:39.000Z | 2019-11-27T18:42:39.000Z |
class VPNError(Exception):
"""Base exception for all other project exceptions.
"""
pass
class ConnectError(VPNError):
"""Exception raised on connection failure.
"""
pass
class ParseError(VPNError):
"""Exception for all management interface parsing errors.
"""
pass
| 17 | 61 | 0.666667 | 31 | 306 | 6.580645 | 0.645161 | 0.25 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 306 | 17 | 62 | 18 | 0.871795 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
aef8b8ab402fc49798d19b14245986b989670a20 | 412 | py | Python | Python/leetcode/ValidPerfectSquare.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | 2 | 2015-12-02T06:44:01.000Z | 2016-05-04T21:40:54.000Z | Python/leetcode/ValidPerfectSquare.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | Python/leetcode/ValidPerfectSquare.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | '''
Created on 1.12.2016
@author: Darren
''''''
Given a positive integer num, write a function which returns True if num is a perfect square else False.
Note: Do not use any built-in library function such as sqrt.
Example 1:
Input: 16
Returns: True
Example 2:
Input: 14
Returns: False
Cr... | 14.714286 | 105 | 0.68932 | 64 | 412 | 4.4375 | 0.828125 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04127 | 0.235437 | 412 | 27 | 106 | 15.259259 | 0.860317 | 0.912621 | 0 | 0.181818 | 0 | 0.090909 | 0.979827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e143df8156f7512500a9d74f7ec88d17e9b1490 | 76 | py | Python | clavier/builtin/__init__.py | nrser/clavier | f865e91f8cb8d17327b7e563dcd5477a5e3a530e | [
"MIT"
] | null | null | null | clavier/builtin/__init__.py | nrser/clavier | f865e91f8cb8d17327b7e563dcd5477a5e3a530e | [
"MIT"
] | null | null | null | clavier/builtin/__init__.py | nrser/clavier | f865e91f8cb8d17327b7e563dcd5477a5e3a530e | [
"MIT"
] | null | null | null | def add_parser(subparsers):
subparsers.add_children(__name__, __path__)
| 25.333333 | 47 | 0.802632 | 9 | 76 | 5.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 2 | 48 | 38 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e1a13d0e61d7ba98bbcca3e4bea2f2cee99868b | 383 | py | Python | py3wirecard/entities/product.py | robertons/py3wirecard | 8a9b541a67ee96d75b1c864762fce7148cccb8b4 | [
"MIT"
] | 2 | 2019-09-05T20:20:44.000Z | 2020-01-14T18:20:45.000Z | py3wirecard/entities/product.py | robertons/py3wirecard | 8a9b541a67ee96d75b1c864762fce7148cccb8b4 | [
"MIT"
] | 1 | 2020-01-15T12:27:56.000Z | 2020-01-16T12:26:13.000Z | py3wirecard/entities/product.py | robertons/py3wirecard | 8a9b541a67ee96d75b1c864762fce7148cccb8b4 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from py3wirecard.entities.lib.wireentity import *
class Product(WireEntity):
@String(max=250, required=True)
def product(self): pass
@String(max=256, default="DIGITAL_SERVICES")
def category(self): pass
@Int(max=5, required=True)
def quantity(self): pass
@String(max=250)
def detail(s... | 19.15 | 49 | 0.710183 | 56 | 383 | 4.839286 | 0.517857 | 0.147601 | 0.166052 | 0.125461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039039 | 0.130548 | 383 | 19 | 50 | 20.157895 | 0.774775 | 0.05483 | 0 | 0 | 0 | 0 | 0.044321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.416667 | 0.083333 | 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 |
4e2201c157bf0c9a80051dd8d404ce3d8713e412 | 16,427 | py | Python | Book/apdx2/python/apdx2_ipynb.py | lorenghoh/pyman | 9b4ddd52c5577fc85e2601ae3128f398f0eb673c | [
"CC0-1.0"
] | 3 | 2020-04-30T19:50:11.000Z | 2020-10-17T02:07:00.000Z | Book/apdx2/python/apdx2_ipynb.py | lorenghoh/pyman | 9b4ddd52c5577fc85e2601ae3128f398f0eb673c | [
"CC0-1.0"
] | 35 | 2020-04-21T04:25:31.000Z | 2021-11-06T22:49:44.000Z | Book/apdx2/python/apdx2_ipynb.py | lorenghoh/pyman | 9b4ddd52c5577fc85e2601ae3128f398f0eb673c | [
"CC0-1.0"
] | 11 | 2020-04-21T04:33:48.000Z | 2020-10-23T21:12:12.000Z | # ---
# jupyter:
# jupytext:
# cell_metadata_filter: all
# notebook_metadata_filter: all,-language_info
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.2'
# jupytext_version: 1.2.1
# kernelspec:
# display_name: Python 3
# language: pyth... | 53.859016 | 1,948 | 0.725452 | 2,565 | 16,427 | 4.636647 | 0.221053 | 0.08072 | 0.044312 | 0.008324 | 0.227697 | 0.180863 | 0.090305 | 0.053225 | 0.03893 | 0.03893 | 0 | 0.005425 | 0.158398 | 16,427 | 304 | 1,949 | 54.036184 | 0.854828 | 0.962501 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d6b9d5a2c7830f34488d8ab58c7dea7812761ad | 317 | py | Python | vulcan/model/_attachment.py | v0idzz/vulcan-api | 1ae83d90236e678042a9f85f6c34b6bd82bf279f | [
"MIT"
] | 49 | 2019-01-10T22:10:19.000Z | 2022-01-10T17:07:51.000Z | vulcan/model/_attachment.py | Antoni-Czaplicki/vulcan-api | a1d9127ce156013a7a803f31b55591989f05ba5a | [
"MIT"
] | 47 | 2019-01-08T21:04:17.000Z | 2022-03-21T04:02:37.000Z | vulcan/model/_attachment.py | Antoni-Czaplicki/vulcan-api | a1d9127ce156013a7a803f31b55591989f05ba5a | [
"MIT"
] | 31 | 2019-05-04T14:05:33.000Z | 2021-11-01T18:51:16.000Z | # -*- coding: utf-8 -*-
from related import StringField, immutable
from ._serializable import Serializable
@immutable
class Attachment(Serializable):
"""An attachment
:var str ~.name: Name
:var str ~.link: Link
"""
name: str = StringField(key="Name")
link: str = StringField(key="Link")
| 17.611111 | 42 | 0.656151 | 36 | 317 | 5.75 | 0.472222 | 0.057971 | 0.164251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 0.208202 | 317 | 17 | 43 | 18.647059 | 0.820717 | 0.255521 | 0 | 0 | 0 | 0 | 0.036866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 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 |
9d74a41e15b541622cfda49e31878539f5db5f8d | 1,094 | py | Python | data/utils.py | YangG-Morph/Particle_Simulator | 6dcb5e9e09dda29f8fec99d7e98fb24bc23cc004 | [
"MIT"
] | 1 | 2021-09-06T07:21:12.000Z | 2021-09-06T07:21:12.000Z | data/utils.py | YangG-Morph/Particle_Simulator | 6dcb5e9e09dda29f8fec99d7e98fb24bc23cc004 | [
"MIT"
] | 2 | 2021-08-22T04:49:03.000Z | 2021-08-23T00:12:37.000Z | data/utils.py | YangG-Morph/Particle_Simulator | 6dcb5e9e09dda29f8fec99d7e98fb24bc23cc004 | [
"MIT"
] | null | null | null | import math
import random
def clamp(value, min, max):
return min if value < min else max if value > max else value
def sub_pos(end_pos, start_pos):
return end_pos[0] - start_pos[0], end_pos[1] - start_pos[1]
def hypotenuse(ab):
return math.hypot(ab[0], ab[1])
def normalize(ab, magnitude):
if magnitu... | 28.051282 | 75 | 0.655393 | 160 | 1,094 | 4.4125 | 0.25 | 0.042493 | 0.062323 | 0.113314 | 0.473088 | 0.464589 | 0.464589 | 0.464589 | 0.31728 | 0.31728 | 0 | 0.015294 | 0.223035 | 1,094 | 38 | 76 | 28.789474 | 0.815294 | 0.177331 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.125 | 0.791667 | 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 |
9d7d37421489344b82139217f693cbcb9af4a6e5 | 232 | py | Python | retrodiff/utils/optim.py | butyess/retrodiff | 956c7b84c811e97fe900e5ee1cf9cedec63f292a | [
"MIT"
] | null | null | null | retrodiff/utils/optim.py | butyess/retrodiff | 956c7b84c811e97fe900e5ee1cf9cedec63f292a | [
"MIT"
] | null | null | null | retrodiff/utils/optim.py | butyess/retrodiff | 956c7b84c811e97fe900e5ee1cf9cedec63f292a | [
"MIT"
] | null | null | null | from .. import Optimizer
class GradientDescent(Optimizer):
def __init__(self, lr):
self.lr = lr
def new_param(self, old_param, grads):
return [old - grad * self.lr for old, grad in zip(old_param, grads)]
| 21.090909 | 76 | 0.650862 | 33 | 232 | 4.363636 | 0.545455 | 0.125 | 0.180556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 232 | 10 | 77 | 23.2 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9d7f0dad9dd336dbfbd6d356ae648c8dfc090fa6 | 1,120 | py | Python | setup.py | EliFinkelshteyn/alphabet-detector | 234682e439fa549cba9b2289c8d348f31daa7282 | [
"MIT"
] | 152 | 2015-03-03T20:39:28.000Z | 2022-02-04T19:47:11.000Z | setup.py | EliFinkelshteyn/alphabet-detector | 234682e439fa549cba9b2289c8d348f31daa7282 | [
"MIT"
] | 10 | 2015-03-14T18:41:50.000Z | 2021-06-02T17:38:41.000Z | setup.py | EliFinkelshteyn/alphabet-detector | 234682e439fa549cba9b2289c8d348f31daa7282 | [
"MIT"
] | 17 | 2015-03-06T11:08:20.000Z | 2021-09-30T14:28:48.000Z | from distutils.core import setup
setup(
name='alphabet-detector',
packages=['alphabet_detector'],
version='0.0.7',
description='A library to detect what alphabet something is written in.',
author='Eli Finkelshteyn',
author_email='iefinkel@gmail.com',
url='https://github.com/EliFinkelshteyn/a... | 40 | 77 | 0.625 | 112 | 1,120 | 6.223214 | 0.598214 | 0.163558 | 0.215208 | 0.111908 | 0.137733 | 0.137733 | 0.137733 | 0 | 0 | 0 | 0 | 0.017381 | 0.229464 | 1,120 | 27 | 78 | 41.481481 | 0.790267 | 0 | 0 | 0 | 0 | 0 | 0.64375 | 0.027679 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d9ba7b7d5091556d775c979cff8a838a12ed1d8 | 19 | py | Python | sorteador/__init__.py | L1de5/sorteador-dancas | 2afa544bb91c254a98d4eb3c383fb6ec692bd605 | [
"MIT"
] | null | null | null | sorteador/__init__.py | L1de5/sorteador-dancas | 2afa544bb91c254a98d4eb3c383fb6ec692bd605 | [
"MIT"
] | null | null | null | sorteador/__init__.py | L1de5/sorteador-dancas | 2afa544bb91c254a98d4eb3c383fb6ec692bd605 | [
"MIT"
] | null | null | null |
__all__=['dancas'] | 9.5 | 18 | 0.684211 | 2 | 19 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 19 | 2 | 18 | 9.5 | 0.5 | 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 |
9da8a7a79fb2c3ba55a2e966c4e893ef29f7ade0 | 142 | py | Python | vendors/apps.py | amenabe22/ashewa_backend | 0c1aba1de3fcb86538482da1b628c68d4e5960a7 | [
"MIT"
] | null | null | null | vendors/apps.py | amenabe22/ashewa_backend | 0c1aba1de3fcb86538482da1b628c68d4e5960a7 | [
"MIT"
] | null | null | null | vendors/apps.py | amenabe22/ashewa_backend | 0c1aba1de3fcb86538482da1b628c68d4e5960a7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class VendorsConfig(AppConfig):
name = 'vendors'
def ready(self):
import vendors.signals
| 15.777778 | 33 | 0.697183 | 16 | 142 | 6.1875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 142 | 8 | 34 | 17.75 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9dce0996687ab93eaf6945fb73753dfd374ecc34 | 379 | py | Python | operators/writers/csv/writer_csv.py | OrcaWorkflows/orca | 77e849812a439cdfd1755c95915a9de2af12095f | [
"Apache-2.0"
] | null | null | null | operators/writers/csv/writer_csv.py | OrcaWorkflows/orca | 77e849812a439cdfd1755c95915a9de2af12095f | [
"Apache-2.0"
] | null | null | null | operators/writers/csv/writer_csv.py | OrcaWorkflows/orca | 77e849812a439cdfd1755c95915a9de2af12095f | [
"Apache-2.0"
] | null | null | null | import pandas as pd
from writers.base.writer_context import DataType
from writers.base.writer_strategy import WriterStrategy
class WriterCSV(WriterStrategy):
def write_file(self, data, data_type: DataType):
if data_type == DataType.JSON:
return pd.json_normalize(data).to_csv()
elif dat... | 31.583333 | 55 | 0.717678 | 50 | 379 | 5.26 | 0.56 | 0.091255 | 0.18251 | 0.159696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203166 | 379 | 11 | 56 | 34.454545 | 0.870861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9df2f1d90b5339bf06c9f4ed281fd8f9afdfd367 | 1,297 | py | Python | knn.py | naiborhujosua/ML-Algorithm-ImplementationFromScratch | 4471eb801ef36eb046ca949645db4db29a730cb6 | [
"MIT"
] | null | null | null | knn.py | naiborhujosua/ML-Algorithm-ImplementationFromScratch | 4471eb801ef36eb046ca949645db4db29a730cb6 | [
"MIT"
] | null | null | null | knn.py | naiborhujosua/ML-Algorithm-ImplementationFromScratch | 4471eb801ef36eb046ca949645db4db29a730cb6 | [
"MIT"
] | null | null | null |
#x,y=train data
#Regression
class KNN:
def __init__(self):
#declare instance variables
self.x =None
self.y =None
def train(self,x,y):
self.x =x
self.y =y
def predict(self,x,k) :
distance_label =[
(self... | 24.942308 | 74 | 0.538936 | 167 | 1,297 | 4.005988 | 0.227545 | 0.074738 | 0.035874 | 0.119581 | 0.64574 | 0.64574 | 0.64574 | 0.64574 | 0.64574 | 0.64574 | 0 | 0.01907 | 0.353123 | 1,297 | 51 | 75 | 25.431373 | 0.778308 | 0.069391 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b0333981e2285c3dd8479cee32dad7ba812c2e5 | 237 | py | Python | app/test/views.py | miiapark/django-on-docker | 322ce5a76e672faeb12ffbf8f31ca38b8aa3a6c0 | [
"MIT"
] | null | null | null | app/test/views.py | miiapark/django-on-docker | 322ce5a76e672faeb12ffbf8f31ca38b8aa3a6c0 | [
"MIT"
] | null | null | null | app/test/views.py | miiapark/django-on-docker | 322ce5a76e672faeb12ffbf8f31ca38b8aa3a6c0 | [
"MIT"
] | null | null | null | from rest_framework.viewsets import ModelViewSet
from test.models import Message
from test.serializers import TestSerializer
class TestViewSet(ModelViewSet):
queryset = Message.objects.all()
serializer_class = TestSerializer
| 21.545455 | 48 | 0.814346 | 26 | 237 | 7.346154 | 0.653846 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135021 | 237 | 10 | 49 | 23.7 | 0.931707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d19606e9305aa853e3748f333e594e0c21525d4c | 137 | py | Python | Client/config.py | luspock/Lusplog | 412e63c05a17835830f28043dd484cbda9f812b1 | [
"MIT"
] | null | null | null | Client/config.py | luspock/Lusplog | 412e63c05a17835830f28043dd484cbda9f812b1 | [
"MIT"
] | null | null | null | Client/config.py | luspock/Lusplog | 412e63c05a17835830f28043dd484cbda9f812b1 | [
"MIT"
] | null | null | null | config = {
'username': 'demo',
'password': 'demo1',
'url': 'http://127.0.0.1:18800',
'upload_url': '/YouWillNeverGuess'
} | 22.833333 | 38 | 0.554745 | 15 | 137 | 5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 0.19708 | 137 | 6 | 39 | 22.833333 | 0.572727 | 0 | 0 | 0 | 0 | 0 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d1a570da0c8ee8c69fd48028da23a92fb103e6fb | 493 | py | Python | setup.py | wcsjtu/lazy_settings | 31a9cc2fe59eac3277998ed7e964ba867d7612e5 | [
"MIT"
] | 1 | 2017-09-11T10:50:26.000Z | 2017-09-11T10:50:26.000Z | setup.py | wcsjtu/lazy_settings | 31a9cc2fe59eac3277998ed7e964ba867d7612e5 | [
"MIT"
] | null | null | null | setup.py | wcsjtu/lazy_settings | 31a9cc2fe59eac3277998ed7e964ba867d7612e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import lazy_setting
setup(
name="lazy_setting",
version= lazy_setting.__version__,
url = "https://github.com/wcsjtu/lazy_settings",
description = "lazy setting module from django, support python 2.7 only",
author = lazy_setting._... | 29 | 77 | 0.703854 | 58 | 493 | 5.534483 | 0.568966 | 0.239875 | 0.158879 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007444 | 0.182556 | 493 | 17 | 78 | 29 | 0.789082 | 0.042596 | 0 | 0 | 0 | 0 | 0.254777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d1aa1ff885cfbd460ddc43030e019712fca79254 | 4,214 | py | Python | test/testUtility.py | D-TACQ/pvaPy | 5048ae703c1ae1b5bd5e2ec2bea34983b2828c6a | [
"CNRI-Python"
] | null | null | null | test/testUtility.py | D-TACQ/pvaPy | 5048ae703c1ae1b5bd5e2ec2bea34983b2828c6a | [
"CNRI-Python"
] | null | null | null | test/testUtility.py | D-TACQ/pvaPy | 5048ae703c1ae1b5bd5e2ec2bea34983b2828c6a | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/env python
import random
import string
import math
import types
from pvaccess import Channel
from testServer import TestServer
try:
LONG = long
STRING_TYPE = types.StringType
INT_TYPE = types.IntType
except:
LONG = int
STRING_TYPE = type(str('test'))
INT_TYPE = type(int(10))
clas... | 25.852761 | 87 | 0.681063 | 445 | 4,214 | 6.366292 | 0.247191 | 0.153194 | 0.067773 | 0.110131 | 0.258736 | 0.187787 | 0.169432 | 0.169432 | 0.169432 | 0.108013 | 0 | 0.06746 | 0.222591 | 4,214 | 162 | 88 | 26.012346 | 0.797314 | 0.059563 | 0 | 0.313559 | 0 | 0 | 0.003287 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 1 | 0.262712 | false | 0 | 0.050847 | 0.194915 | 0.576271 | 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 |
d1ac111140a283fcf259b1bc382668107d4e3d3d | 180 | py | Python | app_rest_framework/urls.py | bogdandrienko/kostanay-minerals | d266b3899f8403b5182e1dadf74b1f8bb580d17c | [
"MIT"
] | 1 | 2021-02-13T08:40:51.000Z | 2021-02-13T08:40:51.000Z | app_rest_framework/urls.py | bogdandrienko/chrysotile-minerals | 47a4097e29ee40f2606807e28b2da466dfd7f3f4 | [
"MIT"
] | null | null | null | app_rest_framework/urls.py | bogdandrienko/chrysotile-minerals | 47a4097e29ee40f2606807e28b2da466dfd7f3f4 | [
"MIT"
] | null | null | null | from rest_framework import routers
from .api import TodoViewSet
router = routers.DefaultRouter()
router.register('react/api/todo', TodoViewSet, 'todo')
urlpatterns = router.urls
| 22.5 | 54 | 0.794444 | 22 | 180 | 6.454545 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105556 | 180 | 7 | 55 | 25.714286 | 0.881988 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 |
d1bb675e46600a47c627c07a2e71d375f3b8fb9e | 213 | py | Python | layers/linear.py | laomagic/pytorch_tricks | 729baef0f5a0241ae7a943ef5aa5867268c13b54 | [
"MIT"
] | null | null | null | layers/linear.py | laomagic/pytorch_tricks | 729baef0f5a0241ae7a943ef5aa5867268c13b54 | [
"MIT"
] | null | null | null | layers/linear.py | laomagic/pytorch_tricks | 729baef0f5a0241ae7a943ef5aa5867268c13b54 | [
"MIT"
] | null | null | null | import torch.nn as nn
def Linear(in_features, out_features, bias=True):
m = nn.Linear(in_features, out_features, bias)
nn.init.xavier_uniform_(m.weight)
if bias:
nn.init.constant_(m.bias, 0.0) | 30.428571 | 50 | 0.699531 | 36 | 213 | 3.944444 | 0.527778 | 0.112676 | 0.225352 | 0.267606 | 0.43662 | 0.43662 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.178404 | 213 | 7 | 51 | 30.428571 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
d1d28b37c7836dbc2f358172fce04a5104913f70 | 748 | py | Python | Source/JackFramework/UserTemplate/user_interface_template.py | Archaic-Atom/JackFramework | e847d0bafe335ee33caf174676d12ad3c28011a6 | [
"MIT"
] | 13 | 2021-06-20T13:42:04.000Z | 2021-12-17T05:20:56.000Z | Source/JackFramework/UserTemplate/user_interface_template.py | Archaic-Atom/JackFramework | e847d0bafe335ee33caf174676d12ad3c28011a6 | [
"MIT"
] | 81 | 2021-06-19T08:54:48.000Z | 2022-03-18T07:34:17.000Z | Source/JackFramework/UserTemplate/user_interface_template.py | Archaic-Atom/JackFramework | e847d0bafe335ee33caf174676d12ad3c28011a6 | [
"MIT"
] | 3 | 2021-12-13T09:22:23.000Z | 2022-02-16T09:42:28.000Z | # -*- coding: utf-8 -*-
from abc import ABCMeta, abstractmethod
class NetWorkInferenceTemplate(object):
__metaclass__ = ABCMeta
__NETWORK_INFERENCE = None
def __init__(self):
pass
def __new__(cls, *args: str, **kwargs: str) -> object:
if cls.__NETWORK_INFERENCE is None:
c... | 26.714286 | 79 | 0.641711 | 80 | 748 | 5.625 | 0.5125 | 0.142222 | 0.126667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001805 | 0.259358 | 748 | 27 | 80 | 27.703704 | 0.810469 | 0.207219 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.1875 | 0.0625 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d1ddcdb71fa466fdce01e1fc2ef3f531b558402d | 357 | py | Python | generators/pdk_voice_activity.py | audaciouscode/PassiveDataKit-Django | ed1e00c436801b9f49a3e0e6657c2adb6b2ba3d4 | [
"Apache-2.0"
] | 5 | 2016-01-26T19:19:44.000Z | 2018-12-12T18:04:04.000Z | generators/pdk_voice_activity.py | audacious-software/PassiveDataKit-Django | da91a375c075ceec938f2c9bb6b011f9f019b024 | [
"Apache-2.0"
] | 6 | 2020-02-17T20:16:28.000Z | 2021-12-13T21:51:20.000Z | generators/pdk_voice_activity.py | audacious-software/PassiveDataKit-Django | da91a375c075ceec938f2c9bb6b011f9f019b024 | [
"Apache-2.0"
] | 4 | 2020-01-29T15:36:58.000Z | 2021-06-01T18:55:26.000Z | # pylint: disable=line-too-long, no-member
def generator_name(identifier): # pylint: disable=unused-argument
return 'Voice Activity Detection'
def extract_secondary_identifier(properties):
if 'voices_present' in properties:
if properties['voices_present']:
return 'present'
return... | 23.8 | 65 | 0.703081 | 40 | 357 | 6.15 | 0.65 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201681 | 357 | 14 | 66 | 25.5 | 0.863158 | 0.201681 | 0 | 0 | 0 | 0 | 0.27305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 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 |
ae11cf85ddd31b59a78ad219947fa9d6b1d2613a | 224 | py | Python | exceptions/custom_exception.py | dave-read/vdc | 0a331c0d4cde2a87df11e9ff4304a539f0a56692 | [
"MIT"
] | 1 | 2019-06-12T23:48:30.000Z | 2019-06-12T23:48:30.000Z | exceptions/custom_exception.py | dave-read/vdc | 0a331c0d4cde2a87df11e9ff4304a539f0a56692 | [
"MIT"
] | 1 | 2019-04-17T00:11:59.000Z | 2019-04-17T00:11:59.000Z | exceptions/custom_exception.py | dave-read/vdc | 0a331c0d4cde2a87df11e9ff4304a539f0a56692 | [
"MIT"
] | 2 | 2019-04-16T16:09:44.000Z | 2019-05-31T19:54:12.000Z | class CustomException(Exception):
_message = ''
def __init__(self, message):
self._message = message
# Call the base class constructor with the parameters it needs
super().__init__(message)
| 24.888889 | 70 | 0.665179 | 24 | 224 | 5.791667 | 0.666667 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254464 | 224 | 8 | 71 | 28 | 0.832335 | 0.267857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 |
ae193d75daef4a89a17d7e8aaa722f52f3d36aed | 319 | py | Python | instagram_api/response/model/action_log.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/action_log.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/action_log.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
from .bold import Bold
__all__ = ['ActionLog', 'ActionLogInterface']
class ActionLogInterface(ApiInterfaceBase):
bold: [Bold]
description: str
class ActionLog(PropertyMapper, ActionLogInterface):
pass
| 19.9375 | 53 | 0.77116 | 30 | 319 | 8.066667 | 0.533333 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144201 | 319 | 15 | 54 | 21.266667 | 0.886447 | 0 | 0 | 0 | 0 | 0 | 0.08464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 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 |
ae19b19aaa57b28e4b7214820ceca56589d371bb | 621 | py | Python | src/query_planner/seq_scan_plan.py | imvinod/Eva | 0ed9814ae89db7dce1fb734dc99d5dac69cb3c82 | [
"Apache-2.0"
] | 1 | 2019-11-06T03:30:08.000Z | 2019-11-06T03:30:08.000Z | src/query_planner/seq_scan_plan.py | imvinod/Eva | 0ed9814ae89db7dce1fb734dc99d5dac69cb3c82 | [
"Apache-2.0"
] | 1 | 2019-11-18T03:09:56.000Z | 2019-11-18T03:09:56.000Z | src/query_planner/seq_scan_plan.py | asrayousuf/Eva | f652e5d398556055490c146f37e7a2d7a9d091f3 | [
"Apache-2.0"
] | null | null | null | from typing import List
from src.expression.abstract_expression import AbstractExpression
from src.loaders.abstract_loader import AbstractVideoLoader
from src.query_planner.abstract_scan_plan import AbstractScan
from src.query_planner.abstract_plan import PlanNodeType
class SeqScanPlan(AbstractScan):
def __init_... | 32.684211 | 65 | 0.764895 | 70 | 621 | 6.514286 | 0.571429 | 0.061404 | 0.052632 | 0.083333 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180354 | 621 | 18 | 66 | 34.5 | 0.895874 | 0.075684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ae3df128a21e30d92bb716dba9cfc39c616d4686 | 2,389 | py | Python | examples/ssbj/mda/aerodynamics.py | OneraHub/WhatsOpt-Tutorial | 12d14e04defa1d44e43c47486801af4bf1284987 | [
"MIT"
] | 4 | 2019-03-29T20:36:27.000Z | 2021-09-14T23:34:30.000Z | examples/ssbj/mda/aerodynamics.py | OneraHub/WhatsOpt-Tutorial | 12d14e04defa1d44e43c47486801af4bf1284987 | [
"MIT"
] | null | null | null | examples/ssbj/mda/aerodynamics.py | OneraHub/WhatsOpt-Tutorial | 12d14e04defa1d44e43c47486801af4bf1284987 | [
"MIT"
] | 1 | 2021-07-01T09:10:56.000Z | 2021-07-01T09:10:56.000Z | # -*- coding: utf-8 -*-
"""
aerodynamics.py generated by WhatsOpt.
"""
import numpy as np
from mda.aerodynamics_base import AerodynamicsBase
from ssbj_openmdao.ssbj_disciplines.aerodynamics import Aerodynamics as AerodynamicsDiscipline
class Aerodynamics(AerodynamicsBase):
""" An OpenMDAO component to encapsula... | 38.532258 | 94 | 0.545835 | 281 | 2,389 | 4.569395 | 0.220641 | 0.109034 | 0.124611 | 0.11215 | 0.514019 | 0.38162 | 0.065421 | 0 | 0 | 0 | 0 | 0.02567 | 0.249895 | 2,389 | 61 | 95 | 39.163934 | 0.690848 | 0.712432 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ae4269d5b28bf3d5f66a09e97cd267ae81b99777 | 157 | py | Python | yapytex/miscelanea.py | jaaguilar/yapytex | 9833d327462b3c3216e31d15e607442bef721cfc | [
"MIT"
] | 1 | 2016-09-28T10:31:43.000Z | 2016-09-28T10:31:43.000Z | yapytex/miscelanea.py | jasset75/yapytex | 9833d327462b3c3216e31d15e607442bef721cfc | [
"MIT"
] | null | null | null | yapytex/miscelanea.py | jasset75/yapytex | 9833d327462b3c3216e31d15e607442bef721cfc | [
"MIT"
] | null | null | null | def format(piece):
if piece.label:
txt_piece = '{0}\n\\label{{{1}}}'.format(str(piece),piece.label)
return txt_piece
else:
return str(piece)
| 22.428571 | 68 | 0.636943 | 24 | 157 | 4.083333 | 0.5 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.178344 | 157 | 6 | 69 | 26.166667 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0.121019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae46d7ae74583c1da1b97c55d33dfb3e88dee741 | 47 | py | Python | src/__init__.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | null | null | null | src/__init__.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | 1 | 2021-02-03T01:56:56.000Z | 2021-02-03T01:56:56.000Z | src/__init__.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | 1 | 2022-01-11T18:31:05.000Z | 2022-01-11T18:31:05.000Z | __version__ = "0.0"
__author__ = "John Grando"
| 15.666667 | 26 | 0.702128 | 6 | 47 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.148936 | 47 | 2 | 27 | 23.5 | 0.575 | 0 | 0 | 0 | 0 | 0 | 0.297872 | 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 |
ae5bed8614beda816e554ad8fb6a19028789a9b2 | 2,465 | py | Python | geocoder/mapzen.py | guess3233qa/geocoder1 | 31de0344e698fb209b709c5bb11181e845279a59 | [
"MIT"
] | 1 | 2021-02-08T13:30:00.000Z | 2021-02-08T13:30:00.000Z | geocoder/mapzen.py | star-is-here/geocoder | 31b5ccdf54f199d7640995a787c84909687ee03c | [
"MIT"
] | null | null | null | geocoder/mapzen.py | star-is-here/geocoder | 31b5ccdf54f199d7640995a787c84909687ee03c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding: utf8
from __future__ import absolute_import
from geocoder.base import Base
from geocoder.keys import mapzen_key
class Mapzen(Base):
"""
Mapzen REST API
=======================
API Reference
-------------
https://mapzen.com/documentation/search/search/
"""
... | 23.932039 | 77 | 0.581339 | 273 | 2,465 | 5.139194 | 0.344322 | 0.096222 | 0.119743 | 0.162509 | 0.282252 | 0.282252 | 0 | 0 | 0 | 0 | 0 | 0.007222 | 0.269777 | 2,465 | 102 | 78 | 24.166667 | 0.772222 | 0.072211 | 0 | 0.185714 | 0 | 0 | 0.154905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.042857 | 0.171429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ae6da569fd6ee99c7156b8c4ac6c6770ea29869e | 372 | py | Python | tests/test_articles.py | mitchnm/NEWS-HIGHLIGHT | 125b38f3a3bb1b0285676bfd2d95c8a43e3e3a78 | [
"MIT"
] | null | null | null | tests/test_articles.py | mitchnm/NEWS-HIGHLIGHT | 125b38f3a3bb1b0285676bfd2d95c8a43e3e3a78 | [
"MIT"
] | null | null | null | tests/test_articles.py | mitchnm/NEWS-HIGHLIGHT | 125b38f3a3bb1b0285676bfd2d95c8a43e3e3a78 | [
"MIT"
] | null | null | null | import unittest
from app.news import Articles
class ArticlesTest(unittest.TestCase):
def setUp(self):
'''
test_source checks that new news source objects are created
'''
self.new_article = Articles('one','two','three','four','five')
def test_instance(self):
self... | 26.571429 | 70 | 0.655914 | 44 | 372 | 5.454545 | 0.659091 | 0.058333 | 0.116667 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231183 | 372 | 13 | 71 | 28.615385 | 0.839161 | 0.158602 | 0 | 0 | 0 | 0 | 0.065972 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8847b370738e7b2946586b153e35b1ae0a2388e2 | 376 | py | Python | aliyun/api/rest/Mts20140618SubmitSnapshotJobRequest.py | francisar/rds_manager | 458298669bf7d1990a85648b466b88f905256690 | [
"MIT"
] | 14 | 2015-11-30T02:35:18.000Z | 2019-05-14T11:49:24.000Z | aliyun/api/rest/Mts20140618SubmitSnapshotJobRequest.py | francisar/rds_manager | 458298669bf7d1990a85648b466b88f905256690 | [
"MIT"
] | 2 | 2015-11-30T02:51:40.000Z | 2017-03-16T01:51:45.000Z | aliyun/api/rest/Mts20140618SubmitSnapshotJobRequest.py | francisar/rds_manager | 458298669bf7d1990a85648b466b88f905256690 | [
"MIT"
] | 12 | 2016-01-04T06:48:17.000Z | 2020-11-07T14:08:25.000Z | '''
Created by auto_sdk on 2015.06.23
'''
from aliyun.api.base import RestApi
class Mts20140618SubmitSnapshotJobRequest(RestApi):
def __init__(self,domain='mts.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.Input = None
self.SnapshotConfig = None
self.UserData = None
def getapiname(self):
... | 26.857143 | 56 | 0.763298 | 51 | 376 | 5.45098 | 0.666667 | 0.057554 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078078 | 0.114362 | 376 | 13 | 57 | 28.923077 | 0.756757 | 0.087766 | 0 | 0 | 0 | 0 | 0.18209 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8848fa78a14262a6c3d812b6031aaa05c103b3d4 | 897 | py | Python | src/server/bo/NamedBO.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | 7 | 2020-05-18T14:20:17.000Z | 2020-07-27T17:37:38.000Z | src/server/bo/NamedBO.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | null | null | null | src/server/bo/NamedBO.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | 2 | 2020-05-18T14:20:22.000Z | 2020-07-27T17:37:05.000Z | from .BusinessObject import BusinessObject
from abc import ABC
import datetime
class NamedBO(BusinessObject, ABC):
"""Gemeinsame Basisklasse aller Klassen in bo.
Dadurch besitzt jedes BusinessObject außer Listeneintrag
einen Namen und einen Erstellungszeitpunkt."""
def __init__(self):
super().... | 29.9 | 63 | 0.692308 | 93 | 897 | 6.419355 | 0.397849 | 0.201005 | 0.160804 | 0.107203 | 0.144054 | 0.144054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219621 | 897 | 29 | 64 | 30.931034 | 0.852857 | 0.276477 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.1875 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
884dd2157c563400e15214a09e2becf6fdf61633 | 111 | py | Python | FreeTAKServer/model/socketInformation.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | 27 | 2020-05-01T01:45:59.000Z | 2020-07-03T00:17:13.000Z | FreeTAKServer/model/socketInformation.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | 34 | 2020-04-26T11:25:52.000Z | 2020-07-03T21:06:34.000Z | FreeTAKServer/model/socketInformation.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | 15 | 2020-05-01T01:46:07.000Z | 2020-07-03T12:14:04.000Z | class socketInformation:
def __init__(self):
self.socketCount = int()
self.clientArray = [] | 27.75 | 32 | 0.630631 | 10 | 111 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261261 | 111 | 4 | 33 | 27.75 | 0.804878 | 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 |
884f83843c650e0ba2381660f4227ed96e6f8c41 | 522 | py | Python | model_dev/model/simulation.py | okadalabipr/cancer_signaling | a41820c273c964c5df4d24fec2d1c60ae2cdfd72 | [
"MIT"
] | 1 | 2019-08-18T10:26:04.000Z | 2019-08-18T10:26:04.000Z | model_dev/model/simulation.py | okadalabipr/cancer_signaling | a41820c273c964c5df4d24fec2d1c60ae2cdfd72 | [
"MIT"
] | null | null | null | model_dev/model/simulation.py | okadalabipr/cancer_signaling | a41820c273c964c5df4d24fec2d1c60ae2cdfd72 | [
"MIT"
] | 3 | 2019-12-23T06:55:10.000Z | 2020-08-31T08:09:05.000Z | import numpy as np
from scipy.integrate import odeint
from .name2idx import C, V
from .set_model import diffeq, param_values, initial_values
class Simulation(object):
"""
This is where you define the simulations you want to run. In this file you
can define different conditions for each simulation
(... | 32.625 | 80 | 0.741379 | 78 | 522 | 4.923077 | 0.730769 | 0.036458 | 0.067708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002421 | 0.208812 | 522 | 15 | 81 | 34.8 | 0.927361 | 0.603448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 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 |
88743b0377ab41df81d08e1e0bfae869b6e8225f | 387 | py | Python | tests/test_util.py | adger-me/you-get | b32741ad8e57b3a02a1006d27e87eb5b879f1c90 | [
"MIT"
] | 46,956 | 2015-01-01T08:48:41.000Z | 2022-03-31T13:38:03.000Z | tests/test_util.py | adger-me/you-get | b32741ad8e57b3a02a1006d27e87eb5b879f1c90 | [
"MIT"
] | 2,477 | 2015-01-02T18:12:33.000Z | 2022-03-31T10:44:24.000Z | tests/test_util.py | adger-me/you-get | b32741ad8e57b3a02a1006d27e87eb5b879f1c90 | [
"MIT"
] | 10,750 | 2015-01-03T01:33:16.000Z | 2022-03-31T06:36:28.000Z | #!/usr/bin/env python
import unittest
from you_get.util.fs import *
class TestUtil(unittest.TestCase):
def test_legitimize(self):
self.assertEqual(legitimize("1*2", os="linux"), "1*2")
self.assertEqual(legitimize("1*2", os="mac"), "1*2")
self.assertEqual(legitimize("1*2", os="windows"), "... | 29.769231 | 64 | 0.633075 | 56 | 387 | 4.339286 | 0.464286 | 0.065844 | 0.411523 | 0.427984 | 0.502058 | 0.502058 | 0.382716 | 0.382716 | 0 | 0 | 0 | 0.049383 | 0.162791 | 387 | 12 | 65 | 32.25 | 0.700617 | 0.05168 | 0 | 0 | 0 | 0 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
888c9d5427c60120bedeaf8468f366f6c74243d9 | 215 | py | Python | src/1-5-numpy-arrays.py | yottaawesome/ml-nanodegree-stuff | 0591487b96abac71e0c5f95bfd47c88163a0e2ab | [
"MIT"
] | null | null | null | src/1-5-numpy-arrays.py | yottaawesome/ml-nanodegree-stuff | 0591487b96abac71e0c5f95bfd47c88163a0e2ab | [
"MIT"
] | null | null | null | src/1-5-numpy-arrays.py | yottaawesome/ml-nanodegree-stuff | 0591487b96abac71e0c5f95bfd47c88163a0e2ab | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
data = pd.read_csv("1-5-data.csv")
# TODO: Separate the features and the labels into arrays called X and y
X = np.array(data[['x1', 'x2']])
y = np.array(data['y'])
| 21.5 | 72 | 0.646512 | 40 | 215 | 3.45 | 0.625 | 0.101449 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023392 | 0.204651 | 215 | 9 | 73 | 23.888889 | 0.783626 | 0.32093 | 0 | 0 | 0 | 0 | 0.125926 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
88b4c4822a6e729dd7e74ed52616f8d21b52f2b0 | 209 | py | Python | book_center/book_center/bc_main/urls.py | geodimitrov/Python-Web-Framework-SoftUni | 06b7e11aee0024a564d1b266d5ed6271351ac116 | [
"MIT"
] | null | null | null | book_center/book_center/bc_main/urls.py | geodimitrov/Python-Web-Framework-SoftUni | 06b7e11aee0024a564d1b266d5ed6271351ac116 | [
"MIT"
] | null | null | null | book_center/book_center/bc_main/urls.py | geodimitrov/Python-Web-Framework-SoftUni | 06b7e11aee0024a564d1b266d5ed6271351ac116 | [
"MIT"
] | null | null | null | from book_center.bc_main.views import HomeView, AboutView
from django.urls import path
urlpatterns = [
path('', HomeView.as_view(), name='home'),
path('about/', AboutView.as_view(), name='about'),
]
| 23.222222 | 57 | 0.698565 | 28 | 209 | 5.071429 | 0.642857 | 0.084507 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138756 | 209 | 8 | 58 | 26.125 | 0.788889 | 0 | 0 | 0 | 0 | 0 | 0.07177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
31fc9be46ad81235e722a66480121f05dae1c5a6 | 111 | py | Python | sources/core/languages.py | josethomazini/python-test-template | ea5d288bd528cc97fa431cffc38c5571f79fd523 | [
"MIT"
] | 1 | 2020-01-17T11:54:43.000Z | 2020-01-17T11:54:43.000Z | sources/core/languages.py | josethomazini/python-test-template | ea5d288bd528cc97fa431cffc38c5571f79fd523 | [
"MIT"
] | null | null | null | sources/core/languages.py | josethomazini/python-test-template | ea5d288bd528cc97fa431cffc38c5571f79fd523 | [
"MIT"
] | null | null | null | '''
Available languages.
'''
from enum import Enum
class LANG(Enum):
PT_BR = 'PT_BR'
EN_US = 'EN_US'
| 11.1 | 21 | 0.621622 | 17 | 111 | 3.823529 | 0.647059 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234234 | 111 | 9 | 22 | 12.333333 | 0.764706 | 0.18018 | 0 | 0 | 0 | 0 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ee88ab1cbab9af9046d1c8d6fc3fa9d5cf0a6fe2 | 11,186 | py | Python | hyperbo/gp_utils/objectives_test.py | google-research/hyperbo | a8c848920fb7de41ed89ac0ff61c5c45fcaa90a0 | [
"Apache-2.0"
] | 3 | 2022-03-23T20:54:34.000Z | 2022-03-24T16:10:21.000Z | hyperbo/gp_utils/objectives_test.py | google-research/hyperbo | a8c848920fb7de41ed89ac0ff61c5c45fcaa90a0 | [
"Apache-2.0"
] | null | null | null | hyperbo/gp_utils/objectives_test.py | google-research/hyperbo | a8c848920fb7de41ed89ac0ff61c5c45fcaa90a0 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 HyperBO Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 35.624204 | 80 | 0.652244 | 1,442 | 11,186 | 4.805132 | 0.143551 | 0.030019 | 0.04041 | 0.043296 | 0.768509 | 0.714389 | 0.687545 | 0.657671 | 0.613797 | 0.613797 | 0 | 0.015035 | 0.23297 | 11,186 | 313 | 81 | 35.738019 | 0.792541 | 0.079027 | 0 | 0.759843 | 0 | 0 | 0.178276 | 0.019094 | 0 | 0 | 0 | 0 | 0.007874 | 1 | 0.023622 | false | 0 | 0.055118 | 0.015748 | 0.098425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee8f5b46d419f0427a222dfdc26ddf91d1301650 | 147 | py | Python | blog/urls.py | FranPitri/JSM | da783d2ca5fe1fc5f79d1b64a30dee80be2fa7e4 | [
"MIT"
] | null | null | null | blog/urls.py | FranPitri/JSM | da783d2ca5fe1fc5f79d1b64a30dee80be2fa7e4 | [
"MIT"
] | 10 | 2020-02-12T00:38:38.000Z | 2022-02-10T12:12:21.000Z | blog/urls.py | FranPitri/JSM | da783d2ca5fe1fc5f79d1b64a30dee80be2fa7e4 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.main),
path('post/<int:post_id>/', views.post_detail),
]
| 16.333333 | 51 | 0.659864 | 20 | 147 | 4.75 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176871 | 147 | 8 | 52 | 18.375 | 0.785124 | 0 | 0 | 0 | 0 | 0 | 0.129252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c98a2c96eba6b47f2657d4a48ae4a3257a17de1d | 59 | py | Python | .history/postImages/index_20201005141043.py | Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE | 9a8289d8550115362c46dea3ed8570b789c09a10 | [
"MIT"
] | 2 | 2020-10-21T22:14:15.000Z | 2020-10-21T22:14:16.000Z | .history/postImages/index_20201005141043.py | Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE | 9a8289d8550115362c46dea3ed8570b789c09a10 | [
"MIT"
] | null | null | null | .history/postImages/index_20201005141043.py | Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE | 9a8289d8550115362c46dea3ed8570b789c09a10 | [
"MIT"
] | null | null | null | import pandas as pd
df = pd.ExcelFile("bridgeData.xls")
| 11.8 | 35 | 0.711864 | 9 | 59 | 4.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 59 | 4 | 36 | 14.75 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 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 |
c98beaaf73d9f687b749ff2156ff6da99b59197d | 199 | py | Python | ex-mundo1/ex021.py | PedroPegado/ex-cursoemvideo | 46751a7238e6a142b639c4cc3acf1759411732d7 | [
"MIT"
] | null | null | null | ex-mundo1/ex021.py | PedroPegado/ex-cursoemvideo | 46751a7238e6a142b639c4cc3acf1759411732d7 | [
"MIT"
] | null | null | null | ex-mundo1/ex021.py | PedroPegado/ex-cursoemvideo | 46751a7238e6a142b639c4cc3acf1759411732d7 | [
"MIT"
] | null | null | null | print('\033[1;35m===== EX 021 =====\033[m')
import pygame
print('DESAFIO 21')
pygame.init()
pygame.mixer.music.load('dztue.mp3')
pygame.mixer.music.play()
print('CURTA A MÚSICA')
pygame.event.wait() | 22.111111 | 43 | 0.688442 | 32 | 199 | 4.28125 | 0.71875 | 0.160584 | 0.233577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081522 | 0.075377 | 199 | 9 | 44 | 22.111111 | 0.663043 | 0 | 0 | 0 | 0 | 0 | 0.335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0.375 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c99a9aef691896710c608a730161ebe75e920f5b | 218 | py | Python | ex015.py | JoaoCrescioni/Exercicios-curso-em-video-python | 5db9c79af4e8894b0ed2cc4d0110cdb10b4a467e | [
"MIT"
] | null | null | null | ex015.py | JoaoCrescioni/Exercicios-curso-em-video-python | 5db9c79af4e8894b0ed2cc4d0110cdb10b4a467e | [
"MIT"
] | null | null | null | ex015.py | JoaoCrescioni/Exercicios-curso-em-video-python | 5db9c79af4e8894b0ed2cc4d0110cdb10b4a467e | [
"MIT"
] | null | null | null | dias = int(input("Insira o número de dias em que o carro foi alugado:"))
km = float(input("Insira o número de quilômetros rodados com o carro: "))
print(" O valor total a ser pago é {:.2f} R$".format(dias*60+km*0.15))
| 54.5 | 73 | 0.692661 | 42 | 218 | 3.595238 | 0.714286 | 0.145695 | 0.15894 | 0.238411 | 0.264901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.16055 | 218 | 3 | 74 | 72.666667 | 0.79235 | 0 | 0 | 0 | 0 | 0 | 0.642202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9a4d20a9ad21134a0a6adfd49d8556ed2b5a9bf | 552 | py | Python | RPi.py | mindhog/pidal | 6207be7da3b201c4027e9d6c188ed6976f42362a | [
"Apache-2.0"
] | 1 | 2021-12-14T19:52:47.000Z | 2021-12-14T19:52:47.000Z | RPi.py | mindhog/pidal | 6207be7da3b201c4027e9d6c188ed6976f42362a | [
"Apache-2.0"
] | null | null | null | RPi.py | mindhog/pidal | 6207be7da3b201c4027e9d6c188ed6976f42362a | [
"Apache-2.0"
] | null | null | null |
class GPIO:
PUD_UP = 0
BCM = 1000
FALLING = 2000
IN = 3000
# This is the GPIO state: add a value [16, 20, 21, 26] to simulate a
# button that is pressed, remove it to indicate release.
clear_gpios = set()
@classmethod
def setup(cls, port, mode, pull_up_down):
pass
@c... | 19.714286 | 72 | 0.608696 | 79 | 552 | 4.164557 | 0.670886 | 0.170213 | 0.164134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060686 | 0.313406 | 552 | 27 | 73 | 20.444444 | 0.807388 | 0.219203 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.166667 | 0 | 0.055556 | 0.611111 | 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 |
c9aadbab768d35ae806385c2190361013c32366e | 766 | py | Python | hwk/hw2/tests/q1f.py | danielFields/s19-assignments | fdc66bd31759037e2a41d9d2d1b0759f591ba0c2 | [
"MIT"
] | 2 | 2019-04-05T20:35:20.000Z | 2019-04-11T10:57:48.000Z | hwk/hw2/tests/q1f.py | danielFields/s19-assignments | fdc66bd31759037e2a41d9d2d1b0759f591ba0c2 | [
"MIT"
] | null | null | null | hwk/hw2/tests/q1f.py | danielFields/s19-assignments | fdc66bd31759037e2a41d9d2d1b0759f591ba0c2 | [
"MIT"
] | 2 | 2019-04-05T20:35:23.000Z | 2019-04-08T23:03:11.000Z | test = { 'name': 'q1f',
'points': 2,
'suites': [ { 'cases': [ { 'code': '>>> '
'FGpercent_table.index.values\n'
'array([1, 2, 3, 4, 5])',
'hidden': False,
... | 47.875 | 79 | 0.229765 | 40 | 766 | 4.35 | 0.725 | 0.149425 | 0.206897 | 0.252874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.631854 | 766 | 15 | 80 | 51.066667 | 0.58156 | 0 | 0 | 0.133333 | 0 | 0 | 0.229765 | 0.069191 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9b11e6732e464e2516272520c8283a7bf57aa1d | 266 | py | Python | access-denied/search_page/urls.py | ParvathyReghunath/CodeInnovationSeriesModelEngineeringCollege | 32a40bc5dd22e0b1b416b094ca9122994f8b87db | [
"MIT"
] | null | null | null | access-denied/search_page/urls.py | ParvathyReghunath/CodeInnovationSeriesModelEngineeringCollege | 32a40bc5dd22e0b1b416b094ca9122994f8b87db | [
"MIT"
] | null | null | null | access-denied/search_page/urls.py | ParvathyReghunath/CodeInnovationSeriesModelEngineeringCollege | 32a40bc5dd22e0b1b416b094ca9122994f8b87db | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.search_donor, name='search_donor'),
path('list/', views.search_donor, name='search_donor_list'),
path('list/detalils', views.donor_list_detail, name='donor_list_detail'),
] | 29.555556 | 77 | 0.721805 | 36 | 266 | 5.083333 | 0.361111 | 0.240437 | 0.174863 | 0.218579 | 0.338798 | 0.338798 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 266 | 9 | 78 | 29.555556 | 0.788793 | 0 | 0 | 0 | 0 | 0 | 0.2397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 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 |
c9c6d347e7c8fd32ccb328b73de7436da52c91f1 | 111 | py | Python | app2.py | aseo67/surfs_up | 28e38aad3e20a49c1162f25808dfaf98d7d75ef2 | [
"MIT"
] | null | null | null | app2.py | aseo67/surfs_up | 28e38aad3e20a49c1162f25808dfaf98d7d75ef2 | [
"MIT"
] | null | null | null | app2.py | aseo67/surfs_up | 28e38aad3e20a49c1162f25808dfaf98d7d75ef2 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route('/')
def greet():
return("Hello, Good morning!") | 15.857143 | 34 | 0.666667 | 15 | 111 | 4.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 111 | 7 | 34 | 15.857143 | 0.752688 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 3 |
c9c86bd8888236232367733d0314e507b8bbcf9b | 658 | py | Python | Python/Código Facilito/Basics/3_modules and packages/6_dates.py | aguswake1/Courses_and_stuff | 841e2a8316c976488c3e40866c336dcbdb57cce2 | [
"Apache-2.0"
] | null | null | null | Python/Código Facilito/Basics/3_modules and packages/6_dates.py | aguswake1/Courses_and_stuff | 841e2a8316c976488c3e40866c336dcbdb57cce2 | [
"Apache-2.0"
] | null | null | null | Python/Código Facilito/Basics/3_modules and packages/6_dates.py | aguswake1/Courses_and_stuff | 841e2a8316c976488c3e40866c336dcbdb57cce2 | [
"Apache-2.0"
] | null | null | null | # para trabajar con fechas usamos libreria datetime
from datetime import date
from datetime import datetime
# dia actual
today = date.today()
# fecha actual
now = datetime.now()
print(today)
print(now)
# date
print("El día actual es {}".format(today.day))
print("El mes actual es {}".format(today.month))
print("El a... | 24.37037 | 51 | 0.708207 | 103 | 658 | 4.524272 | 0.31068 | 0.154506 | 0.270386 | 0.218884 | 0.343348 | 0.343348 | 0.240343 | 0 | 0 | 0 | 0 | 0 | 0.129179 | 658 | 26 | 52 | 25.307692 | 0.813264 | 0.132219 | 0 | 0 | 0 | 0 | 0.316814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.733333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.