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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a75aef5e4eb7adab5d755563c60c830e57c7c082 | 947 | py | Python | chapter12/10 TestFashionShopApp Doc/Tests/Tests.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | chapter12/10 TestFashionShopApp Doc/Tests/Tests.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | chapter12/10 TestFashionShopApp Doc/Tests/Tests.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | import unittest
class TestShop(unittest.TestCase):
def test_StockItem_init(self):
item = StockItem(stock_ref='Test', price=10, tags='test:tag')
self.assertEqual(item.stock_ref, 'Test')
self.assertEqual(item.price, 10)
self.assertEqual(item.stock_level, 0)
def failing_test(self... | 27.057143 | 69 | 0.651531 | 124 | 947 | 4.798387 | 0.241935 | 0.226891 | 0.255462 | 0.282353 | 0.64874 | 0.6 | 0.546218 | 0.546218 | 0.546218 | 0.546218 | 0 | 0.031335 | 0.224921 | 947 | 34 | 70 | 27.852941 | 0.779292 | 0 | 0 | 0.434783 | 0 | 0 | 0.049683 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 1 | 0.173913 | false | 0 | 0.043478 | 0 | 0.26087 | 0.043478 | 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 |
a7631db84237af7a200440146cb3cfe30978db27 | 2,137 | py | Python | venv/Lib/site-packages/pprintpp/safesort.py | LC-burigo/Small_Weather_Project | 377804a4c96c758168257c4820cdc73539c7cce1 | [
"MIT"
] | 15 | 2018-04-09T00:44:22.000Z | 2021-08-03T08:08:07.000Z | venv/Lib/site-packages/pprintpp/safesort.py | LC-burigo/Small_Weather_Project | 377804a4c96c758168257c4820cdc73539c7cce1 | [
"MIT"
] | 6 | 2018-04-09T17:05:24.000Z | 2019-06-08T23:05:34.000Z | venv/Lib/site-packages/pprintpp/safesort.py | LC-burigo/Small_Weather_Project | 377804a4c96c758168257c4820cdc73539c7cce1 | [
"MIT"
] | 4 | 2018-07-07T16:45:56.000Z | 2019-06-09T13:30:13.000Z | import sys
import textwrap
import functools
PY3 = (sys.version_info >= (3, 0, 0))
def memoized_property(f):
@functools.wraps(f)
def memoized_property_helper(self):
val = f(self)
self.__dict__[f.__name__] = val
return val
return property(memoized_property_helper)
def _build_safe_cm... | 28.878378 | 83 | 0.596163 | 260 | 2,137 | 4.419231 | 0.338462 | 0.062663 | 0.083551 | 0.111401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004551 | 0.280299 | 2,137 | 73 | 84 | 29.273973 | 0.742523 | 0.058961 | 0 | 0.20339 | 0 | 0 | 0.212681 | 0.022966 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.152542 | false | 0.050847 | 0.050847 | 0.033898 | 0.559322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a765ff81ebc7b8d9863f893c1de15fb5295652b5 | 27,286 | py | Python | pyros_schemas/ros/schemas/ros_std_msgs.py | pyros-dev/pyros-schemas | a460920260ee77a1b5b6d5c0b97df52f1572ff79 | [
"MIT"
] | 3 | 2018-01-01T17:10:16.000Z | 2018-11-15T15:41:46.000Z | pyros_schemas/ros/schemas/ros_std_msgs.py | pyros-dev/pyros-schemas | a460920260ee77a1b5b6d5c0b97df52f1572ff79 | [
"MIT"
] | 7 | 2018-02-02T10:05:55.000Z | 2018-02-17T15:15:46.000Z | pyros_schemas/ros/schemas/ros_std_msgs.py | pyros-dev/pyros-schemas | a460920260ee77a1b5b6d5c0b97df52f1572ff79 | [
"MIT"
] | 2 | 2017-09-27T09:46:31.000Z | 2018-02-02T09:37:13.000Z | from __future__ import absolute_import
from __future__ import print_function
"""
Defining Schema for basic ros types
Ref : http://wiki.ros.org/std_msgs
These Fields and Schema are meant to be used together with ROS message type serialization :
ROSTCP --deserialize in rospy--> std_msgs.msg.* --serialize (dump) in pyr... | 40.067548 | 179 | 0.699883 | 3,446 | 27,286 | 5.442832 | 0.095763 | 0.053743 | 0.02991 | 0.040787 | 0.757038 | 0.688793 | 0.664854 | 0.651951 | 0.651951 | 0.649872 | 0 | 0.029677 | 0.183721 | 27,286 | 680 | 180 | 40.126471 | 0.812419 | 0.805541 | 0 | 0.024096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.120482 | 0 | 0.903614 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a77b0a56e4015deb8c31c14914492826419a869e | 150 | py | Python | src/modes/mode_2021/pic_colors.py | nox10/mmphotobot | aaf8749e864747b8bc21a013b07f316206a66ffb | [
"MIT"
] | 2 | 2018-04-02T20:07:09.000Z | 2018-07-05T00:12:51.000Z | src/modes/mode_2021/pic_colors.py | nox10/mmphotobot | aaf8749e864747b8bc21a013b07f316206a66ffb | [
"MIT"
] | null | null | null | src/modes/mode_2021/pic_colors.py | nox10/mmphotobot | aaf8749e864747b8bc21a013b07f316206a66ffb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from enum import Enum
class PicColor2021(Enum):
MAIN = 'main'
BLUE = 'blue'
YELLOW = 'yellow'
PINK = 'pink'
| 15 | 25 | 0.566667 | 18 | 150 | 4.722222 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.273333 | 150 | 9 | 26 | 16.666667 | 0.733945 | 0.14 | 0 | 0 | 0 | 0 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
a77edfa8e257fa4066d5f12c1cf15da69d5c53e2 | 139 | py | Python | tests/datastructures/test_hashtable.py | deniscostadsc/becoming-a-better-programmer | ec993d494ef5e9272429cc4d2ed1e7ffbe8e1bfd | [
"MIT"
] | 1 | 2020-05-04T11:28:35.000Z | 2020-05-04T11:28:35.000Z | tests/datastructures/test_hashtable.py | deniscostadsc/becoming-a-better-programmer | ec993d494ef5e9272429cc4d2ed1e7ffbe8e1bfd | [
"MIT"
] | null | null | null | tests/datastructures/test_hashtable.py | deniscostadsc/becoming-a-better-programmer | ec993d494ef5e9272429cc4d2ed1e7ffbe8e1bfd | [
"MIT"
] | null | null | null | from datastructures import Hashtable
def test_hashtable_is_initially_empty():
hashtable = Hashtable()
assert len(hashtable) == 0
| 19.857143 | 40 | 0.76259 | 16 | 139 | 6.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.165468 | 139 | 6 | 41 | 23.166667 | 0.87069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a794de0a9952f43968af0dee23f049349b219812 | 308 | py | Python | libctf/__init__.py | rootfoo/libctf | 3e0eae6657c024c5ccfb82a100ff1fa8f1720206 | [
"MIT"
] | 23 | 2015-05-23T07:04:21.000Z | 2022-02-09T06:17:01.000Z | libctf/__init__.py | rootfoo/libctf | 3e0eae6657c024c5ccfb82a100ff1fa8f1720206 | [
"MIT"
] | null | null | null | libctf/__init__.py | rootfoo/libctf | 3e0eae6657c024c5ccfb82a100ff1fa8f1720206 | [
"MIT"
] | 10 | 2015-03-25T21:53:17.000Z | 2020-07-13T11:19:28.000Z | from sock import *
from data import *
from shellcode import *
from pattern import *
try:
# Try to import the ipython interactive shell
from IPython import embed as ipython # drop to interactive shell
except ImportError as e:
import sys
sys.stderr.write('Warning: IPython embed could not be imported')
| 22 | 65 | 0.769481 | 46 | 308 | 5.152174 | 0.565217 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 308 | 13 | 66 | 23.692308 | 0.940476 | 0.224026 | 0 | 0 | 0 | 0 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a79577740183219a6f836771dd3be5687d68b225 | 1,375 | py | Python | nr_app/link.py | ian0304/nornir-apps | a6c0dae756cbe971e743359a1ca0a0a1d6c18380 | [
"MIT"
] | 45 | 2020-01-30T13:40:45.000Z | 2022-02-14T23:39:36.000Z | nr_app/link.py | ian0304/nornir-apps | a6c0dae756cbe971e743359a1ca0a0a1d6c18380 | [
"MIT"
] | 7 | 2020-04-29T08:13:54.000Z | 2021-04-13T02:42:44.000Z | nr_app/link.py | dmfigol/nornir-apps | a6c0dae756cbe971e743359a1ca0a0a1d6c18380 | [
"MIT"
] | 26 | 2020-02-06T20:36:30.000Z | 2022-02-14T23:39:40.000Z | from typing import List, TYPE_CHECKING
if TYPE_CHECKING:
from interface import Interface
class Link:
def __init__(self, interfaces: List["Interface"]) -> None:
self.interfaces = sorted(interfaces)
def __eq__(self, other) -> bool:
return all(
int1 == int2 for int1, int2 in zip... | 29.891304 | 81 | 0.613818 | 162 | 1,375 | 4.95679 | 0.358025 | 0.156912 | 0.033624 | 0.052304 | 0.373599 | 0.373599 | 0.373599 | 0.373599 | 0.373599 | 0.373599 | 0 | 0.007187 | 0.291636 | 1,375 | 45 | 82 | 30.555556 | 0.817248 | 0 | 0 | 0.257143 | 0 | 0 | 0.197818 | 0.042909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.057143 | 0.142857 | 0.514286 | 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 |
a7a478942535009ebdd7dbe6d45ca68402542a95 | 200 | py | Python | filertools/filertools/pagination.py | 0x4e3/filertools | 6812b6d686d38f39af195b839125348bc7b3594b | [
"MIT"
] | null | null | null | filertools/filertools/pagination.py | 0x4e3/filertools | 6812b6d686d38f39af195b839125348bc7b3594b | [
"MIT"
] | 3 | 2017-11-03T11:05:44.000Z | 2017-11-03T12:12:20.000Z | filertools/filertools/pagination.py | 0x4e3/filertools | 6812b6d686d38f39af195b839125348bc7b3594b | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import unicode_literals, absolute_import
from rest_framework.pagination import PageNumberPagination
class DefaultPagination(PageNumberPagination):
page_size = 10
| 22.222222 | 58 | 0.84 | 22 | 200 | 7.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.115 | 200 | 8 | 59 | 25 | 0.887006 | 0.06 | 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 | 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 |
a7aeedd6e16142daff9b359f754637e4452eddb6 | 201 | py | Python | petstagram/__init__.py | ivanoff-ivan/petstagram | 6ad2fa038843c6e2011fd9242e3edec857f48707 | [
"MIT"
] | null | null | null | petstagram/__init__.py | ivanoff-ivan/petstagram | 6ad2fa038843c6e2011fd9242e3edec857f48707 | [
"MIT"
] | null | null | null | petstagram/__init__.py | ivanoff-ivan/petstagram | 6ad2fa038843c6e2011fd9242e3edec857f48707 | [
"MIT"
] | null | null | null | '''
# NEW app:
0. Move app inside project dir
1. Add the app in settings.py (INSTALLED_APPS)
2. Create urls.py with empty `urlpatterns` inside the app
3. Include app's urls.py into project urls.py
'''
| 25.125 | 57 | 0.726368 | 37 | 201 | 3.918919 | 0.675676 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023952 | 0.169154 | 201 | 7 | 58 | 28.714286 | 0.844311 | 0.955224 | 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 |
38ee296abeb229d69efdd7b7ab8a6658d3ba1fd3 | 1,825 | py | Python | app.py | RenanHingel/Umbrella-API-Dashboard | fd7a3a3ac30be50bba170ea09f310d177d8925a7 | [
"MIT"
] | 7 | 2021-07-06T20:21:33.000Z | 2021-07-07T19:55:03.000Z | app.py | RenanHingel/Umbrella-API-Dashboard | fd7a3a3ac30be50bba170ea09f310d177d8925a7 | [
"MIT"
] | null | null | null | app.py | RenanHingel/Umbrella-API-Dashboard | fd7a3a3ac30be50bba170ea09f310d177d8925a7 | [
"MIT"
] | 2 | 2021-07-06T20:22:35.000Z | 2021-07-07T13:37:51.000Z | from flask import render_template, redirect, Flask
from controller.controller import *
app = Flask(__name__)
################################################################
# Landing page the reason I'm redirecting to INDEX is a place holder to the future / route that will require AD log on
#########################... | 34.433962 | 118 | 0.523288 | 179 | 1,825 | 5.117318 | 0.357542 | 0.122271 | 0.152838 | 0.098253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011919 | 0.080548 | 1,825 | 52 | 119 | 35.096154 | 0.533969 | 0.133699 | 0 | 0 | 0 | 0 | 0.193032 | 0.043315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.076923 | 0.269231 | 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 |
ac217d7eb2798c76f5b1d76387ccc780f7e3e665 | 209 | py | Python | TickerTrends/Main.py | DoctorPepe/TickerTracker | 1667b17442fecbea96502f79fa28887ea04c0d5a | [
"MIT"
] | null | null | null | TickerTrends/Main.py | DoctorPepe/TickerTracker | 1667b17442fecbea96502f79fa28887ea04c0d5a | [
"MIT"
] | 1 | 2021-02-17T19:09:38.000Z | 2021-02-19T03:40:10.000Z | TickerTrends/Main.py | DoctorPepe/TickerTracker | 1667b17442fecbea96502f79fa28887ea04c0d5a | [
"MIT"
] | null | null | null | import DiscordBot
from DiscordBot import *
import Ticker
from Ticker import *
import sqlite3
#create database or find an existing one
conn = sqlite3.connect('tickers.db')
cursor = conn.cursor()
conn.close()
| 17.416667 | 40 | 0.77512 | 29 | 209 | 5.586207 | 0.62069 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.143541 | 209 | 11 | 41 | 19 | 0.893855 | 0.186603 | 0 | 0 | 0 | 0 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ac2a79fd0d7bd6519e42fe3df9126bc67b19a65c | 626 | py | Python | python_client/src/wellcome_storage_service/exceptions.py | h4l/storage-service | 05524e25dfc55f4fe6e2101e1be2850bec691564 | [
"MIT"
] | 12 | 2020-02-06T13:08:28.000Z | 2022-03-05T08:02:27.000Z | python_client/src/wellcome_storage_service/exceptions.py | h4l/storage-service | 05524e25dfc55f4fe6e2101e1be2850bec691564 | [
"MIT"
] | 98 | 2020-02-13T09:36:39.000Z | 2022-03-31T07:02:30.000Z | python_client/src/wellcome_storage_service/exceptions.py | wellcometrust/storage | e53dbc1ec8761f78605c65028f75b697fe06d695 | [
"MIT"
] | 4 | 2020-03-12T15:42:23.000Z | 2021-07-20T06:23:35.000Z | # -*- encoding: utf-8
class StorageServiceException(Exception):
"""Base class for all storage service exceptions."""
pass
class IngestNotFound(StorageServiceException):
"""Raised if you try to get an ingest that doesn't exist."""
pass
class BagNotFound(StorageServiceException):
"""Raised if ... | 19.5625 | 71 | 0.704473 | 78 | 626 | 5.653846 | 0.5 | 0.081633 | 0.281179 | 0.154195 | 0.603175 | 0.603175 | 0.190476 | 0 | 0 | 0 | 0 | 0.006012 | 0.202875 | 626 | 31 | 72 | 20.193548 | 0.877756 | 0.471246 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ac2c781e3e7704031454966ab93612199d134b7d | 194 | py | Python | empyror/config.py | GoogleGenius/empyror | c0a2db376e1e21eaa42ffda52b38ff5308e70c59 | [
"Apache-2.0"
] | null | null | null | empyror/config.py | GoogleGenius/empyror | c0a2db376e1e21eaa42ffda52b38ff5308e70c59 | [
"Apache-2.0"
] | null | null | null | empyror/config.py | GoogleGenius/empyror | c0a2db376e1e21eaa42ffda52b38ff5308e70c59 | [
"Apache-2.0"
] | null | null | null | import os
from dotenv import load_dotenv # type: ignore
import hikari
load_dotenv()
TOKEN: str = os.environ["TOKEN"]
GUILD_ID: hikari.Snowflake = hikari.Snowflake(os.environ["GUILD_ID"])
| 14.923077 | 69 | 0.747423 | 28 | 194 | 5.035714 | 0.5 | 0.141844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139175 | 194 | 12 | 70 | 16.166667 | 0.844311 | 0.061856 | 0 | 0 | 0 | 0 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ac3be629d52bdb040fe39ed1b3f0b48e86eb5425 | 591 | py | Python | tests/component/task/test_stylize.py | run-hub/run | 67072c4e837982aca4962f006c7eb180337e8ebc | [
"Unlicense"
] | 1 | 2016-01-14T19:37:31.000Z | 2016-01-14T19:37:31.000Z | tests/component/task/test_stylize.py | roll/run | 67072c4e837982aca4962f006c7eb180337e8ebc | [
"Unlicense"
] | null | null | null | tests/component/task/test_stylize.py | roll/run | 67072c4e837982aca4962f006c7eb180337e8ebc | [
"Unlicense"
] | null | null | null | import unittest
from functools import partial
from importlib import import_module
component = import_module('run.task.stylize')
class stylize_Test(unittest.TestCase):
# Actions
def setUp(self):
self.pstylize = partial(component.stylize, 'test')
# Tests
def test(self):
result = self... | 25.695652 | 79 | 0.688663 | 75 | 591 | 5.32 | 0.48 | 0.090226 | 0.070175 | 0.110276 | 0.360902 | 0.225564 | 0.225564 | 0.225564 | 0.225564 | 0.225564 | 0 | 0.024896 | 0.184433 | 591 | 22 | 80 | 26.863636 | 0.802905 | 0.021997 | 0 | 0.153846 | 0 | 0 | 0.153043 | 0.073043 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
ac3ecfcc79bd43293e37bc90f8c26ce66b0ecb80 | 221 | py | Python | wk_client/settings.py | Eviekim/waning-keyboard | 6e814cd8e8cb8052fda0d4334e16cb2752967035 | [
"MIT"
] | null | null | null | wk_client/settings.py | Eviekim/waning-keyboard | 6e814cd8e8cb8052fda0d4334e16cb2752967035 | [
"MIT"
] | null | null | null | wk_client/settings.py | Eviekim/waning-keyboard | 6e814cd8e8cb8052fda0d4334e16cb2752967035 | [
"MIT"
] | null | null | null | import os
BANK_USERNAME = os.getenv('BANK_USERNAME')
BANK_PASSWORD = os.getenv('BANK_PASSWORD')
BANK_HOST = os.getenv('BANK_HOST')
BANK_PORT = os.getenv('BANK_PORT')
BANK_ACCOUNT = '9ae35673-4d1e-4cfa-9b5f-c027b3bbb834'
| 27.625 | 53 | 0.778281 | 33 | 221 | 4.939394 | 0.424242 | 0.196319 | 0.294479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08867 | 0.081448 | 221 | 7 | 54 | 31.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.361991 | 0.162896 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ac41cd1b0c034dfbf3ca44abb0a94d52bd494386 | 1,082 | py | Python | kusanagi/sdk/lib/payload/file.py | kusanagi/kusanagi-sdk-python | 4fd6843f39fa271afc7588b5ec58e7758b09fd61 | [
"MIT"
] | 1 | 2022-02-24T19:02:28.000Z | 2022-02-24T19:02:28.000Z | kusanagi/sdk/lib/payload/file.py | jeronimoalbi/kusanagi-sdk-python | 4fd6843f39fa271afc7588b5ec58e7758b09fd61 | [
"MIT"
] | null | null | null | kusanagi/sdk/lib/payload/file.py | jeronimoalbi/kusanagi-sdk-python | 4fd6843f39fa271afc7588b5ec58e7758b09fd61 | [
"MIT"
] | 1 | 2021-05-16T17:40:21.000Z | 2021-05-16T17:40:21.000Z | # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io)
# Copyright (c) 2016-2021 KUSANAGI S.L. All rights reserved.
#
# Distributed under the MIT license.
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
from . import Payload
from... | 30.055556 | 73 | 0.677449 | 138 | 1,082 | 5.086957 | 0.434783 | 0.068376 | 0.065527 | 0.071225 | 0.330484 | 0.330484 | 0.330484 | 0.330484 | 0.330484 | 0.330484 | 0 | 0.01049 | 0.207024 | 1,082 | 35 | 74 | 30.914286 | 0.807692 | 0.36414 | 0 | 0.470588 | 0 | 0 | 0.031297 | 0.031297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0.117647 | 0.705882 | 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 |
ac4a54bf77c9c3c34a6aa1862be6790121aada84 | 725 | py | Python | tests/stat_tests/test_utils.py | anilkumarpanda/probatus | a6123b4da664dfc4f182dad1baa00e77decf4789 | [
"MIT"
] | null | null | null | tests/stat_tests/test_utils.py | anilkumarpanda/probatus | a6123b4da664dfc4f182dad1baa00e77decf4789 | [
"MIT"
] | null | null | null | tests/stat_tests/test_utils.py | anilkumarpanda/probatus | a6123b4da664dfc4f182dad1baa00e77decf4789 | [
"MIT"
] | 1 | 2021-03-01T19:53:56.000Z | 2021-03-01T19:53:56.000Z | import numpy as np
from probatus.stat_tests import ks, es
def test_verbosity_true_(capsys):
d1 = np.random.normal(size=1000)
d2 = d1
ks(d1, d2, verbose=True)
captured = capsys.readouterr()
assert captured.out == "\nKS: pvalue = 1.0\n\nKS: Null hypothesis cannot be rejected. Distributions not stati... | 36.25 | 135 | 0.695172 | 102 | 725 | 4.882353 | 0.411765 | 0.024096 | 0.066265 | 0.180723 | 0.751004 | 0.751004 | 0.668675 | 0.668675 | 0.668675 | 0.668675 | 0 | 0.040816 | 0.188966 | 725 | 20 | 136 | 36.25 | 0.806122 | 0 | 0 | 0.411765 | 0 | 0.117647 | 0.292011 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac68905b9fd237a0568813ba36ba028f7c58f948 | 21 | py | Python | snippets/5.py | krrg/python-tutorial | a6ef8865cb46ee48624d7c7451d1894741405cc4 | [
"MIT"
] | null | null | null | snippets/5.py | krrg/python-tutorial | a6ef8865cb46ee48624d7c7451d1894741405cc4 | [
"MIT"
] | null | null | null | snippets/5.py | krrg/python-tutorial | a6ef8865cb46ee48624d7c7451d1894741405cc4 | [
"MIT"
] | null | null | null | yes = True
no = False | 10.5 | 10 | 0.666667 | 4 | 21 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 21 | 2 | 11 | 10.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac72e7aef81c3068bff79c7c1ccd87d05cc3d9a4 | 1,945 | py | Python | torch/modules/pooling.py | marketneutral/kuma_utils | f94bb23fabfd2da73711f84687ec99ab1558f6dc | [
"MIT"
] | null | null | null | torch/modules/pooling.py | marketneutral/kuma_utils | f94bb23fabfd2da73711f84687ec99ab1558f6dc | [
"MIT"
] | null | null | null | torch/modules/pooling.py | marketneutral/kuma_utils | f94bb23fabfd2da73711f84687ec99ab1558f6dc | [
"MIT"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
from torch.nn.parameter import Parameter
class AdaptiveConcatPool2d(nn.Module):
def __init__(self, sz=None):
super().__init__()
sz = sz or (1, 1)
self.ap = nn.AdaptiveAvgPool2d(sz)
self.mp = nn.AdaptiveMaxPool2d(sz)
... | 27.394366 | 75 | 0.589203 | 290 | 1,945 | 3.755172 | 0.2 | 0.041322 | 0.050505 | 0.068871 | 0.517906 | 0.449954 | 0.420569 | 0.420569 | 0.385675 | 0.336088 | 0 | 0.022696 | 0.252442 | 1,945 | 70 | 76 | 27.785714 | 0.726272 | 0 | 0 | 0.346154 | 0 | 0 | 0.045244 | 0.01491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.115385 | 0.519231 | 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 |
ac84e9dd6ff0b645c5da85dbb21987706e962bf8 | 7,410 | py | Python | mrjob/protocol.py | bchess/mrjob | 7415f57884f2ba4313ef9164e023174d5f36abae | [
"Apache-2.0"
] | null | null | null | mrjob/protocol.py | bchess/mrjob | 7415f57884f2ba4313ef9164e023174d5f36abae | [
"Apache-2.0"
] | null | null | null | mrjob/protocol.py | bchess/mrjob | 7415f57884f2ba4313ef9164e023174d5f36abae | [
"Apache-2.0"
] | null | null | null | # Copyright 2009-2010 Yelp
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | 30.368852 | 78 | 0.673684 | 978 | 7,410 | 5.03272 | 0.284254 | 0.051199 | 0.022755 | 0.019504 | 0.324868 | 0.290735 | 0.218204 | 0.180211 | 0.114181 | 0.054043 | 0 | 0.002552 | 0.206883 | 7,410 | 243 | 79 | 30.493827 | 0.83495 | 0.581916 | 0 | 0.488372 | 0 | 0 | 0.041725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.05814 | 0.162791 | 0.569767 | 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 |
ac8b0af60ab0c7bf362251c41a43c840ae585271 | 537 | py | Python | universal/algos/__init__.py | dexhunter/universal-portfolios | 8d269e6c960501e5a6bfaeae08614444a3bf54de | [
"MIT"
] | 1 | 2019-12-10T08:19:28.000Z | 2019-12-10T08:19:28.000Z | universal/algos/__init__.py | dexhunter/universal-portfolios | 8d269e6c960501e5a6bfaeae08614444a3bf54de | [
"MIT"
] | null | null | null | universal/algos/__init__.py | dexhunter/universal-portfolios | 8d269e6c960501e5a6bfaeae08614444a3bf54de | [
"MIT"
] | 1 | 2019-12-09T17:47:21.000Z | 2019-12-09T17:47:21.000Z | from .crp import CRP
from .bah import BAH
from .anticor import Anticor
from .corn import CORN
from .bcrp import BCRP
from .cwmr import CWMR
from .olmar import OLMAR
from .pamr import PAMR
from .rmr import RMR
from .up import UP
from .wmamr import WMAMR
from .ons import ONS
from .kelly import Kelly
from .up import UP
fr... | 23.347826 | 41 | 0.793296 | 91 | 537 | 4.637363 | 0.307692 | 0.042654 | 0.056872 | 0.066351 | 0.085308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163873 | 537 | 22 | 42 | 24.409091 | 0.939866 | 0 | 0 | 0.090909 | 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 |
3bb5a16826752ed3f57139ceb3bf9e8caed5dfa0 | 750 | py | Python | tests/c/test_backup_engine_info.py | zeroae/zeroae-rocksdb | 3f1c81a42f27091161727c94a0d5620c25fd984f | [
"Apache-2.0"
] | null | null | null | tests/c/test_backup_engine_info.py | zeroae/zeroae-rocksdb | 3f1c81a42f27091161727c94a0d5620c25fd984f | [
"Apache-2.0"
] | 53 | 2020-04-29T04:46:48.000Z | 2020-05-08T03:43:28.000Z | tests/c/test_backup_engine_info.py | zeroae/zeroae-rocksdb | 3f1c81a42f27091161727c94a0d5620c25fd984f | [
"Apache-2.0"
] | null | null | null | import pytest
from zeroae.rocksdb.c import backup_engine as rbe, backup_engine_info
from .test_backup_engine import be
@pytest.fixture()
def be_info(be):
rv = rbe.get_backup_info(be)
yield rv
backup_engine_info.destroy(rv)
def test_count(be_info):
rv = backup_engine_info.count(be_info)
assert ... | 19.736842 | 69 | 0.721333 | 126 | 750 | 3.984127 | 0.253968 | 0.131474 | 0.223108 | 0.215139 | 0.406375 | 0.239044 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.184 | 750 | 37 | 70 | 20.27027 | 0.79085 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.26087 | false | 0 | 0.130435 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3bcd5c1a218eebb5bb4ea1e7ceb9d28c08e5b111 | 103 | py | Python | faker/providers/color/es_ES/__init__.py | dandycheung/faker | 3220f8299c8e6364eeca2007b726c9d22d50918c | [
"MIT"
] | null | null | null | faker/providers/color/es_ES/__init__.py | dandycheung/faker | 3220f8299c8e6364eeca2007b726c9d22d50918c | [
"MIT"
] | null | null | null | faker/providers/color/es_ES/__init__.py | dandycheung/faker | 3220f8299c8e6364eeca2007b726c9d22d50918c | [
"MIT"
] | null | null | null | from ..es import Provider as ColorProvider
localized = True
class Provider(ColorProvider):
pass
| 12.875 | 42 | 0.757282 | 12 | 103 | 6.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184466 | 103 | 7 | 43 | 14.714286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3bd5b0709f96a00013a127c037adfe8ccc9b6b4d | 198 | py | Python | programmers/lv2_review/lv_2_18.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | programmers/lv2_review/lv_2_18.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | programmers/lv2_review/lv_2_18.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | def solution(phone_book):
phone_book.sort()
for i in range(len(phone_book) - 1):
if phone_book[i] == phone_book[i + 1][: len(phone_book[i])]:
return False
return True | 33 | 68 | 0.606061 | 31 | 198 | 3.677419 | 0.483871 | 0.473684 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.257576 | 198 | 6 | 69 | 33 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3be11afe18b53ad01335510d0dcc19e266412c34 | 490 | py | Python | homeassistant/components/automation/helpers.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/automation/helpers.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/automation/helpers.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Helpers for automation integration."""
from homeassistant.components import blueprint
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.singleton import singleton
from .const import DOMAIN, LOGGER
DATA_BLUEPRINTS = "automation_blueprints"
@singleton(DATA_BLUEPRINTS)
@callback
def ... | 30.625 | 76 | 0.814286 | 51 | 490 | 7.72549 | 0.45098 | 0.129442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104082 | 490 | 15 | 77 | 32.666667 | 0.897494 | 0.126531 | 0 | 0 | 0 | 0 | 0.05036 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 3 |
3bf57611cdc4b35d74972de253a1a36a4b29aa8f | 2,049 | py | Python | json/jython/create/json_create.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | 3 | 2015-05-12T16:44:27.000Z | 2021-02-09T00:39:24.000Z | json/jython/create/json_create.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | json/jython/create/json_create.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | #! /opt/jython/bin/jython
# -*- coding: utf-8 -*-
#
# json_create.py
#
# Oct/12/2016
#
# -------------------------------------------------------------------------
import sys
import json
from java.lang import System
from java.lang import String
#
#
# reload(sys)
# sys.setdefaultencoding("utf-8")
#
sys.path.append ('... | 32.52381 | 75 | 0.602245 | 302 | 2,049 | 3.807947 | 0.360927 | 0.166957 | 0.182609 | 0.194783 | 0.386087 | 0.386087 | 0.386087 | 0.227826 | 0 | 0 | 0 | 0.126603 | 0.086384 | 2,049 | 62 | 76 | 33.048387 | 0.487714 | 0.209858 | 0 | 0 | 0 | 0 | 0.2146 | 0.049087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.1875 | 0 | 0.25 | 0.09375 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3bfc3bd1c49cd99d59c99f849b29d9f65f8b9ff0 | 131 | py | Python | Decisoes/Decisao_while.py | GabrielFelix23/CursoPython | 148d4e82538bc5790c8120a32ba4cacbe63b7a8f | [
"MIT"
] | null | null | null | Decisoes/Decisao_while.py | GabrielFelix23/CursoPython | 148d4e82538bc5790c8120a32ba4cacbe63b7a8f | [
"MIT"
] | null | null | null | Decisoes/Decisao_while.py | GabrielFelix23/CursoPython | 148d4e82538bc5790c8120a32ba4cacbe63b7a8f | [
"MIT"
] | null | null | null | numero = int(input("Digite um número: "))
while numero < 100:
print(numero)
numero = numero + 1
print("Número encerrado!") | 21.833333 | 41 | 0.656489 | 17 | 131 | 5.058824 | 0.647059 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.198473 | 131 | 6 | 42 | 21.833333 | 0.780952 | 0 | 0 | 0 | 0 | 0 | 0.265152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3bfc54359827a67b4573895a87dd23a1f208888d | 1,404 | py | Python | tests/ops/test_broadcast_batch_to.py | wesselb/matrix | ba343d69945d7cbc67330d01a87eee363ce5d408 | [
"MIT"
] | 3 | 2021-07-30T17:38:08.000Z | 2021-11-21T04:41:40.000Z | tests/ops/test_broadcast_batch_to.py | wesselb/matrix | ba343d69945d7cbc67330d01a87eee363ce5d408 | [
"MIT"
] | null | null | null | tests/ops/test_broadcast_batch_to.py | wesselb/matrix | ba343d69945d7cbc67330d01a87eee363ce5d408 | [
"MIT"
] | null | null | null | import lab as B
from matrix import (
Zero,
Dense,
Diagonal,
Constant,
LowerTriangular,
UpperTriangular,
LowRank,
Woodbury,
Kronecker,
)
# noinspection PyUnresolvedReferences
from ..util import (
AssertDenseWarning,
check_un_op,
zero1,
dense_bc,
diag1,
const1... | 20.347826 | 69 | 0.759972 | 193 | 1,404 | 5.062176 | 0.248705 | 0.286592 | 0.092119 | 0.193449 | 0.423746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022147 | 0.163818 | 1,404 | 68 | 70 | 20.647059 | 0.810051 | 0.024929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.066667 | 0.022222 | 0.311111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3bfc58be8ecdda972f313a1e31f0e769dc02e37b | 8,168 | py | Python | telethon/tl/functions/help.py | polisitni1/DogeClickBot | ac57eaeefca2c6ab9e48458f9f928a6a421a162e | [
"MIT"
] | null | null | null | telethon/tl/functions/help.py | polisitni1/DogeClickBot | ac57eaeefca2c6ab9e48458f9f928a6a421a162e | [
"MIT"
] | null | null | null | telethon/tl/functions/help.py | polisitni1/DogeClickBot | ac57eaeefca2c6ab9e48458f9f928a6a421a162e | [
"MIT"
] | null | null | null | """File generated by TLObjects' generator. All changes will be ERASED"""
from ...tl.tlobject import TLRequest
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
if TYPE_CHECKING:
from ...tl.types import TypeDataJSON, TypeInputAppEvent
class AcceptTermsOfServiceRequest(TLRequest):
... | 23.204545 | 167 | 0.590353 | 832 | 8,168 | 5.507212 | 0.206731 | 0.061109 | 0.06722 | 0.039721 | 0.383457 | 0.299214 | 0.227193 | 0.120035 | 0.08206 | 0 | 0 | 0.036351 | 0.306195 | 8,168 | 351 | 168 | 23.270655 | 0.77219 | 0.096352 | 0 | 0.454167 | 1 | 0 | 0.076666 | 0.023697 | 0 | 0 | 0.03903 | 0 | 0 | 1 | 0.2 | false | 0 | 0.020833 | 0.15 | 0.570833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3bffdd9eb1f1cf9bbbf9895508a60a8670464244 | 2,388 | py | Python | cms/toolbar/items.py | TAMUArch/django-cms | 3ec1b57375299bde122780a7b3b8a4294141ce7a | [
"BSD-3-Clause"
] | null | null | null | cms/toolbar/items.py | TAMUArch/django-cms | 3ec1b57375299bde122780a7b3b8a4294141ce7a | [
"BSD-3-Clause"
] | null | null | null | cms/toolbar/items.py | TAMUArch/django-cms | 3ec1b57375299bde122780a7b3b8a4294141ce7a | [
"BSD-3-Clause"
] | null | null | null | from django.template.loader import render_to_string
class BaseItem(object):
def __init__(self, right=False):
self.right = right
def render(self):
return render_to_string(self.template, self.get_context())
def get_context(self):
return {}
class List(BaseItem):
template = "cm... | 26.533333 | 116 | 0.618928 | 300 | 2,388 | 4.706667 | 0.196667 | 0.044618 | 0.038952 | 0.060198 | 0.466006 | 0.256374 | 0.184136 | 0.052408 | 0 | 0 | 0 | 0 | 0.255025 | 2,388 | 89 | 117 | 26.831461 | 0.793704 | 0 | 0 | 0.290323 | 0 | 0 | 0.115256 | 0.05658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.016129 | 0.112903 | 0.548387 | 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 |
ce01ce5e6a3c5bde72a0234d9e31d0793a70030a | 151 | py | Python | Exercicios/03_EstruturaDeRepeticao/nome.py | gutoffline/curso-python-2021 | 4a9a5f11188ad734402d1dafa7ea627179e7079b | [
"MIT"
] | null | null | null | Exercicios/03_EstruturaDeRepeticao/nome.py | gutoffline/curso-python-2021 | 4a9a5f11188ad734402d1dafa7ea627179e7079b | [
"MIT"
] | null | null | null | Exercicios/03_EstruturaDeRepeticao/nome.py | gutoffline/curso-python-2021 | 4a9a5f11188ad734402d1dafa7ea627179e7079b | [
"MIT"
] | null | null | null | nome = ''
while len(nome) <= 3:
nome = input("Informe o nome: ")
if len(nome) <= 3:
print("O nome precisa ter mais que 3 caracteres.")
| 25.166667 | 58 | 0.569536 | 23 | 151 | 3.73913 | 0.608696 | 0.162791 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.271523 | 151 | 5 | 59 | 30.2 | 0.754545 | 0 | 0 | 0 | 0 | 0 | 0.377483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce1b8b84d1976be44bbc8cd72bc0734920def30b | 2,609 | py | Python | lab_1/test.py | Winterpuma/bmstu_AA | da04a361dca6fa9f5d8858031b19b38919029fe9 | [
"MIT"
] | 11 | 2019-10-08T21:38:28.000Z | 2021-12-07T09:48:24.000Z | lab_1/test.py | Winterpuma/bmstu_AA | da04a361dca6fa9f5d8858031b19b38919029fe9 | [
"MIT"
] | 1 | 2019-10-20T18:44:59.000Z | 2019-10-20T18:47:40.000Z | lab_1/test.py | Winterpuma/bmstu_AA | da04a361dca6fa9f5d8858031b19b38919029fe9 | [
"MIT"
] | 8 | 2019-09-23T23:57:54.000Z | 2020-12-17T20:10:14.000Z | import unittest
from main import LevRecursion, LevTable, DamLevRecursion, DamLevTable
from main import RandomString
class TestDistanse(unittest.TestCase):
def testEmpty(self):
self.assertEqual(self.function("", ""), 0)
def testSame(self):
self.assertEqual(self.function("abc", "abc"),... | 31.817073 | 83 | 0.630126 | 274 | 2,609 | 5.970803 | 0.229927 | 0.146699 | 0.185819 | 0.214548 | 0.642421 | 0.435819 | 0.295232 | 0.295232 | 0.247555 | 0.103301 | 0 | 0.02617 | 0.238406 | 2,609 | 81 | 84 | 32.209877 | 0.797182 | 0.005749 | 0 | 0.271186 | 0 | 0 | 0.01929 | 0 | 0 | 0 | 0 | 0 | 0.271186 | 1 | 0.20339 | false | 0 | 0.050847 | 0 | 0.372881 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cbf45b1585ad76ebff0b1bf59cfb99c1b8c25cd0 | 178 | py | Python | tests/purecap/test_purecap_uninit_cc_stack_growth_O1.py | capt-hb/cheritest | d3b3637a81a0005ee7272eca0f33a9f9911fdb32 | [
"Apache-2.0"
] | null | null | null | tests/purecap/test_purecap_uninit_cc_stack_growth_O1.py | capt-hb/cheritest | d3b3637a81a0005ee7272eca0f33a9f9911fdb32 | [
"Apache-2.0"
] | null | null | null | tests/purecap/test_purecap_uninit_cc_stack_growth_O1.py | capt-hb/cheritest | d3b3637a81a0005ee7272eca0f33a9f9911fdb32 | [
"Apache-2.0"
] | null | null | null | from beritest_tools import BaseBERITestCase
class test_purecap_uninit_cc_stack_growth_O1(BaseBERITestCase):
def test_result_of_test(self):
assert self.MIPS.v0 == 20
| 29.666667 | 63 | 0.803371 | 25 | 178 | 5.32 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.140449 | 178 | 5 | 64 | 35.6 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
020bf316df58d41d3b0bacd37884784e5cadc670 | 127 | py | Python | Chapter02/Python/SRC/Save_Python_Objects.py | sachinsunilkumar/Statistical-Application-Development-with-R-and-Python | 3d8d27c69287cdabf9e21291e210354515c8cb7b | [
"MIT"
] | 8 | 2017-08-31T20:46:10.000Z | 2021-11-08T13:11:15.000Z | Chapter02/Python/SRC/Save_Python_Objects.py | sachinsunilkumar/Statistical-Application-Development-with-R-and-Python | 3d8d27c69287cdabf9e21291e210354515c8cb7b | [
"MIT"
] | null | null | null | Chapter02/Python/SRC/Save_Python_Objects.py | sachinsunilkumar/Statistical-Application-Development-with-R-and-Python | 3d8d27c69287cdabf9e21291e210354515c8cb7b | [
"MIT"
] | 7 | 2017-09-03T00:52:05.000Z | 2020-12-31T21:22:56.000Z | x = 10
import pickle
pickle.dump(x,open("tu.tu","wb"))
# Assume a new session
isitx = pickle.load(open("tu.tu","rb"))
x==isitx
| 18.142857 | 39 | 0.661417 | 24 | 127 | 3.5 | 0.625 | 0.142857 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.11811 | 127 | 6 | 40 | 21.166667 | 0.732143 | 0.15748 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
021042eb8baecc6df69c7e70e7f8f449f9e382be | 293 | py | Python | dq/account.py | Algolytics/dq_client | 1517ef39145e4dbb9820b044654230856166c580 | [
"Apache-2.0"
] | null | null | null | dq/account.py | Algolytics/dq_client | 1517ef39145e4dbb9820b044654230856166c580 | [
"Apache-2.0"
] | 56 | 2016-11-14T16:21:53.000Z | 2021-11-15T17:46:59.000Z | dq/account.py | Algolytics/dq_client | 1517ef39145e4dbb9820b044654230856166c580 | [
"Apache-2.0"
] | 2 | 2016-11-04T13:10:31.000Z | 2018-03-02T14:33:21.000Z | # -*- coding: utf-8 -*-
class Account:
def __init__(self, email, balance, credit, total_records):
self.email = email
self.balance = balance,
self.credit = credit,
self.total_records = total_records
def __repr__(self):
return str(vars(self))
| 20.928571 | 62 | 0.607509 | 34 | 293 | 4.911765 | 0.5 | 0.215569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004717 | 0.276451 | 293 | 13 | 63 | 22.538462 | 0.783019 | 0.071672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
021c30030cee41a6b4061d138d067e32f4601288 | 7,423 | py | Python | src/bee_psd/criteria.py | awenhaowenchao/bee-psd | 945875b47beb877daf2383979deb388f5d686c9f | [
"MIT"
] | null | null | null | src/bee_psd/criteria.py | awenhaowenchao/bee-psd | 945875b47beb877daf2383979deb388f5d686c9f | [
"MIT"
] | null | null | null | src/bee_psd/criteria.py | awenhaowenchao/bee-psd | 945875b47beb877daf2383979deb388f5d686c9f | [
"MIT"
] | null | null | null | from enum import Enum
from typing import List
from bee_psd.column import Column
class CriteriaEnum(Enum):
EQ = 0
NE = 1
LT = 2
LTE = 3
GT = 4
GTE = 5
IN = 6
NIN = 7
LK = 8
def pase_criteria_type(type_str: str) -> int:
if type_str == "" or type_str == "eq":
return Cri... | 27.906015 | 94 | 0.637613 | 891 | 7,423 | 5.222222 | 0.107744 | 0.081668 | 0.156673 | 0.141844 | 0.594885 | 0.532989 | 0.492585 | 0.470879 | 0.459918 | 0.436278 | 0 | 0.003369 | 0.240334 | 7,423 | 266 | 95 | 27.906015 | 0.821777 | 0.002425 | 0 | 0.259669 | 0 | 0 | 0.099053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.320442 | false | 0.044199 | 0.016575 | 0.220994 | 0.790055 | 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 |
0224e30e93a113b400d165716c0fcebbff283b6d | 606 | py | Python | machina/core/compat.py | danielmcquillen/django-machina | 08aa3a58a7889b0d5a5bcd6c24965c524762c7a6 | [
"BSD-3-Clause"
] | null | null | null | machina/core/compat.py | danielmcquillen/django-machina | 08aa3a58a7889b0d5a5bcd6c24965c524762c7a6 | [
"BSD-3-Clause"
] | 2 | 2021-06-02T00:29:11.000Z | 2021-09-01T23:02:30.000Z | machina/core/compat.py | danielmcquillen/django-machina | 08aa3a58a7889b0d5a5bcd6c24965c524762c7a6 | [
"BSD-3-Clause"
] | null | null | null | from django.core.exceptions import ImproperlyConfigured
from django.utils.translation import ugettext_lazy as _
# PILImage
try:
# Try from the Pillow (or one variant of PIL) install location first.
from PIL import Image as PILImage
except ImportError: # pragma: no cover
try:
# If that failed, try... | 33.666667 | 73 | 0.693069 | 78 | 606 | 5.346154 | 0.653846 | 0.071942 | 0.067146 | 0.076739 | 0.115108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249175 | 606 | 17 | 74 | 35.647059 | 0.916484 | 0.331683 | 0 | 0.181818 | 0 | 0 | 0.110553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.636364 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0229b874cd635550d58fd2efe2f48bd263f65f47 | 573 | py | Python | tests/unit/test_sortedsetconventions.py | microprediction/predictionserver | 817243a4c85aac63995ab3a18cfbdcb01bb07bd0 | [
"MIT"
] | 1 | 2020-12-04T17:59:19.000Z | 2020-12-04T17:59:19.000Z | tests/unit/test_sortedsetconventions.py | microprediction/predictionserver | 817243a4c85aac63995ab3a18cfbdcb01bb07bd0 | [
"MIT"
] | null | null | null | tests/unit/test_sortedsetconventions.py | microprediction/predictionserver | 817243a4c85aac63995ab3a18cfbdcb01bb07bd0 | [
"MIT"
] | 1 | 2021-03-05T05:03:36.000Z | 2021-03-05T05:03:36.000Z | from predictionserver.futureconventions.sortedsetconventions import (
SortedSetConventions, SortedSetNameGranularity, SortedSetKeyGranularity
)
import pytest
def test_type_error():
with pytest.raises(AttributeError):
SortedSetKeyGranularity.dog
def test_enum():
assert SortedSetKeyGranularity[str... | 27.285714 | 92 | 0.794066 | 45 | 573 | 9.933333 | 0.533333 | 0.04698 | 0.138702 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139616 | 573 | 20 | 93 | 28.65 | 0.906694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | true | 0 | 0.142857 | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
023a16a3091b784e9cd59368452eb5eeb1fa1c7b | 278 | py | Python | .github/utils/generate_json_schema.py | askainet/haystack | 00aa1f41d7c21273d8c312a3fad0b51ddd446672 | [
"Apache-2.0"
] | null | null | null | .github/utils/generate_json_schema.py | askainet/haystack | 00aa1f41d7c21273d8c312a3fad0b51ddd446672 | [
"Apache-2.0"
] | null | null | null | .github/utils/generate_json_schema.py | askainet/haystack | 00aa1f41d7c21273d8c312a3fad0b51ddd446672 | [
"Apache-2.0"
] | 1 | 2022-02-17T05:08:53.000Z | 2022-02-17T05:08:53.000Z | import sys
import logging
from pathlib import Path
logging.basicConfig(level=logging.INFO)
sys.path.append(".")
from haystack.nodes._json_schema import update_json_schema
update_json_schema(destination_path=Path(__file__).parent.parent.parent / "haystack" / "json-schemas")
| 23.166667 | 102 | 0.81295 | 38 | 278 | 5.657895 | 0.5 | 0.139535 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082734 | 278 | 11 | 103 | 25.272727 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0.07554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
02517c2f03717befc50093c2722fc039bf371a88 | 44 | py | Python | packages/mypackage/mysubpackage/module3.py | fhirt/pythong-coding | a5d8e2d2bd83bbb5ad5f11e13bc791d039e57be7 | [
"MIT"
] | 1 | 2021-12-11T15:30:52.000Z | 2021-12-11T15:30:52.000Z | packages/mypackage/mysubpackage/module3.py | fhirt/python-coding | a5d8e2d2bd83bbb5ad5f11e13bc791d039e57be7 | [
"MIT"
] | null | null | null | packages/mypackage/mysubpackage/module3.py | fhirt/python-coding | a5d8e2d2bd83bbb5ad5f11e13bc791d039e57be7 | [
"MIT"
] | null | null | null | people = ["John", "Paul", "George", "Ringo"] | 44 | 44 | 0.568182 | 5 | 44 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 0.641026 | 0 | 0 | 0 | 0 | 0 | 0.422222 | 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 |
025bd07bb763ba93078643cbcf0273c122f1f2a5 | 121 | py | Python | mercuryitc/__init__.py | crazyfermions/python-mercury_driver | 0f69b1607ac64305bf87297ef60778cabfc28b75 | [
"MIT"
] | 3 | 2018-09-20T11:46:24.000Z | 2019-02-18T17:29:24.000Z | mercuryitc/__init__.py | crazyfermions/python-mercury_driver | 0f69b1607ac64305bf87297ef60778cabfc28b75 | [
"MIT"
] | 3 | 2019-02-08T19:15:12.000Z | 2021-04-02T11:35:02.000Z | mercuryitc/__init__.py | crazyfermions/python-mercury_driver | 0f69b1607ac64305bf87297ef60778cabfc28b75 | [
"MIT"
] | 5 | 2016-08-11T17:00:43.000Z | 2019-11-05T17:54:42.000Z | # -*- coding: utf-8 -*-
from mercuryitc.mercury_driver import MercuryITCFactory as MercuryITC
__version__ = '0.3.0'
| 24.2 | 70 | 0.719008 | 15 | 121 | 5.466667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.157025 | 121 | 4 | 71 | 30.25 | 0.764706 | 0.173554 | 0 | 0 | 0 | 0 | 0.053191 | 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 |
025fa67606a4b570f36ebe6a852378236e78e791 | 812 | py | Python | books/models.py | HishamKhalil1990/book-store | 901b372f0561348e7ed41c1ce3ad03ecf5e732c2 | [
"MIT"
] | null | null | null | books/models.py | HishamKhalil1990/book-store | 901b372f0561348e7ed41c1ce3ad03ecf5e732c2 | [
"MIT"
] | null | null | null | books/models.py | HishamKhalil1990/book-store | 901b372f0561348e7ed41c1ce3ad03ecf5e732c2 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import get_user_model
from django.urls import reverse
# Create your models here.
class Auther(models.Model):
name = models.CharField(max_length=256)
age = models.IntegerField()
nationality = models.CharField(max_length=256)
def __str__(self):
... | 29 | 75 | 0.726601 | 106 | 812 | 5.367925 | 0.424528 | 0.105448 | 0.126538 | 0.168717 | 0.260105 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017804 | 0.169951 | 812 | 27 | 76 | 30.074074 | 0.82641 | 0.029557 | 0 | 0.1 | 0 | 0 | 0.013995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0.15 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a03dae3dbd41fa0a85f4512636e4750900fc387 | 89 | py | Python | ex107.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | ex107.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | ex107.py | danilodelucio/Exercicios_Curso_em_Video | d59e1b4efaf27dd0fc828a608201613c69ac333d | [
"MIT"
] | null | null | null | import ex107
n = int(input('Digite um número: '))
print(f'O dobro de {n} é {dobro(n)}.') | 22.25 | 38 | 0.629213 | 17 | 89 | 3.294118 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.157303 | 89 | 4 | 38 | 22.25 | 0.706667 | 0 | 0 | 0 | 0 | 0 | 0.511111 | 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 |
5a083283d69e4c2bbc36c9eb1674c45e3a28594f | 1,347 | py | Python | ai_flow/context/workflow_config_loader.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 79 | 2021-10-15T07:32:27.000Z | 2022-03-28T04:10:19.000Z | ai_flow/context/workflow_config_loader.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 153 | 2021-10-15T05:23:46.000Z | 2022-02-23T06:07:10.000Z | ai_flow/context/workflow_config_loader.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 23 | 2021-10-15T02:36:37.000Z | 2022-03-17T02:59:27.000Z | # Copyright 2022 The AI Flow 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 agreed to in wri... | 34.538462 | 109 | 0.788419 | 179 | 1,347 | 5.614525 | 0.441341 | 0.236816 | 0.167164 | 0.111443 | 0.298507 | 0.095522 | 0.095522 | 0 | 0 | 0 | 0 | 0.007005 | 0.15219 | 1,347 | 38 | 110 | 35.447368 | 0.87303 | 0.536006 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.545455 | 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 |
5a0ed7a8718426a847af0ea7031912aefedcac0b | 322 | py | Python | test_file.py | dagolovach/super-duper-octo-enigma | c5a1e951ebd31816429052ee51a818a94b32a80e | [
"MIT"
] | null | null | null | test_file.py | dagolovach/super-duper-octo-enigma | c5a1e951ebd31816429052ee51a818a94b32a80e | [
"MIT"
] | null | null | null | test_file.py | dagolovach/super-duper-octo-enigma | c5a1e951ebd31816429052ee51a818a94b32a80e | [
"MIT"
] | null | null | null | import pprint
def testing_type(var) -> bool:
return isinstance(var, (int, float))
def printing(text: str) -> None:
pprint.pprint(text)
def new_feature():
pass
if __name__ == "__main__":
printing('Hello World!')
if testing_type('str'):
print('Int or Float')
else:
print('Other'... | 17.888889 | 40 | 0.618012 | 41 | 322 | 4.585366 | 0.658537 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236025 | 322 | 17 | 41 | 18.941176 | 0.764228 | 0 | 0 | 0 | 0 | 0 | 0.124224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.076923 | 0.076923 | 0.384615 | 0.461538 | 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 | 0 | 1 | 0 | 3 |
5a0f116609209cf8851bf04a3fe2dd2f78407166 | 4,759 | py | Python | tests/unit/test_auth.py | BlockEx-HQ/python-trade-sdk | f5bbce635f53c21cc559d87854e9f107746bef13 | [
"MIT"
] | 1 | 2018-06-15T16:53:16.000Z | 2018-06-15T16:53:16.000Z | tests/unit/test_auth.py | BlockEx-HQ/python-trade-sdk | f5bbce635f53c21cc559d87854e9f107746bef13 | [
"MIT"
] | null | null | null | tests/unit/test_auth.py | BlockEx-HQ/python-trade-sdk | f5bbce635f53c21cc559d87854e9f107746bef13 | [
"MIT"
] | 1 | 2018-07-25T08:31:27.000Z | 2018-07-25T08:31:27.000Z | import pytest
import requests
from blockex.tradeapi import interface, tradeapi
@pytest.mark.usefixtures('mocker')
@pytest.mark.usefixtures('trade_api')
class TestTradeApiLogin:
def test_authorized_login(self):
# Restore native get_access_token
self.response._content = '{"access_token":"SomeAcces... | 41.382609 | 98 | 0.707502 | 594 | 4,759 | 5.237374 | 0.131313 | 0.06686 | 0.088717 | 0.05143 | 0.778206 | 0.751205 | 0.741241 | 0.682417 | 0.617808 | 0.570235 | 0 | 0.00185 | 0.205085 | 4,759 | 114 | 99 | 41.745614 | 0.820513 | 0.006514 | 0 | 0.506024 | 0 | 0 | 0.091409 | 0.018197 | 0 | 0 | 0 | 0 | 0.228916 | 1 | 0.144578 | false | 0.060241 | 0.036145 | 0 | 0.192771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5a6218381dc886d54c178d1fb1c0da420ac14b57 | 715 | py | Python | tests/test_utils.py | NicMul/flask-pancake | f3f898e2d7c22581aa892280a793a8bd0396d072 | [
"MIT"
] | null | null | null | tests/test_utils.py | NicMul/flask-pancake | f3f898e2d7c22581aa892280a793a8bd0396d072 | [
"MIT"
] | null | null | null | tests/test_utils.py | NicMul/flask-pancake | f3f898e2d7c22581aa892280a793a8bd0396d072 | [
"MIT"
] | null | null | null | from __future__ import annotations
import pytest
from flask_pancake.utils import import_from_string
def some_func() -> int:
return 123 # pragma: no cover
def test_import_from_string_attr():
func = import_from_string("tests.test_utils:some_func")
assert func is some_func
def test_import_from_string_... | 24.655172 | 68 | 0.73986 | 98 | 715 | 5.020408 | 0.418367 | 0.142276 | 0.227642 | 0.103659 | 0.339431 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0.005085 | 0.174825 | 715 | 28 | 69 | 25.535714 | 0.828814 | 0.022378 | 0 | 0 | 0 | 0 | 0.228121 | 0.117647 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.5 | 0.055556 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5a6a94e9c23585bb37128da6a5e2db4f0d9f324b | 3,733 | py | Python | json_logging/framework/connexion/__init__.py | nickma82/json-logging-python | 8fa8f232aebd0ab1a5189c5d1e4f7d8c91f9addc | [
"Apache-2.0"
] | 1 | 2020-11-21T19:21:17.000Z | 2020-11-21T19:21:17.000Z | json_logging/framework/connexion/__init__.py | nickma82/json-logging-python | 8fa8f232aebd0ab1a5189c5d1e4f7d8c91f9addc | [
"Apache-2.0"
] | null | null | null | json_logging/framework/connexion/__init__.py | nickma82/json-logging-python | 8fa8f232aebd0ab1a5189c5d1e4f7d8c91f9addc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import logging
import sys
import json_logging
import json_logging.framework
from json_logging import JSONLogWebFormatter
from json_logging.framework_base import AppRequestInstrumentationConfigurator, RequestAdapter, ResponseAdapter
from json_logging.util import is_not_match_any_pattern
def is_connexio... | 30.349593 | 110 | 0.709885 | 423 | 3,733 | 6.007092 | 0.269504 | 0.033058 | 0.046832 | 0.056671 | 0.060606 | 0.026761 | 0 | 0 | 0 | 0 | 0 | 0.000691 | 0.224216 | 3,733 | 122 | 111 | 30.598361 | 0.876727 | 0.029467 | 0 | 0.081395 | 0 | 0 | 0.056108 | 0.012991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.162791 | 0.139535 | 0.651163 | 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 |
5a80dec2f89a2e571233c126f92cfbede7a37161 | 249 | py | Python | lawyertools/utils.py | lawengineeringsystems/lawyertools | b71098aaf893819e890ccc7940a14bdabb7845fa | [
"MIT"
] | 2 | 2021-11-20T18:36:45.000Z | 2021-11-25T16:56:00.000Z | lawyertools/utils.py | lawengineeringsystems/lawyertools | b71098aaf893819e890ccc7940a14bdabb7845fa | [
"MIT"
] | null | null | null | lawyertools/utils.py | lawengineeringsystems/lawyertools | b71098aaf893819e890ccc7940a14bdabb7845fa | [
"MIT"
] | null | null | null | import json
import datetime
class DatetimeEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, (datetime.date, datetime.datetime)):
return obj.isoformat()
return json.JSONEncoder.default(self, obj)
| 24.9 | 63 | 0.690763 | 28 | 249 | 6.142857 | 0.535714 | 0.174419 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208835 | 249 | 9 | 64 | 27.666667 | 0.873096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 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 |
5a86ac11c87f02cd88a32589714c3065787e4d11 | 53,693 | py | Python | build/lib/pysf/predictors/framework.py | alan-turing-institute/pysf | 86eb3774181af648bff2e33f92c4b8b391a89ce3 | [
"BSD-3-Clause"
] | 52 | 2019-04-07T03:10:31.000Z | 2021-09-28T13:06:21.000Z | build/lib/pysf/predictors/framework.py | ahmedgc/pysf | 86eb3774181af648bff2e33f92c4b8b391a89ce3 | [
"BSD-3-Clause"
] | 2 | 2021-01-10T22:54:36.000Z | 2021-01-21T19:56:48.000Z | build/lib/pysf/predictors/framework.py | alan-turing-institute/pysf | 86eb3774181af648bff2e33f92c4b8b391a89ce3 | [
"BSD-3-Clause"
] | 6 | 2019-03-01T15:03:37.000Z | 2021-01-10T22:55:54.000Z |
from ..logger import LoggingHandler
from ..data import MultiSeries
from ..errors import RawResiduals, ErrorCurve
from ..transformers.framework import AbstractTransformer
import numpy as np
from abc import ABC, abstractmethod
import copy
# Simple container to associate actual & predicted values with the calculat... | 55.126283 | 313 | 0.696087 | 6,598 | 53,693 | 5.372234 | 0.075174 | 0.047227 | 0.024375 | 0.040625 | 0.760706 | 0.728545 | 0.708543 | 0.69596 | 0.682503 | 0.66267 | 0 | 0.004578 | 0.231147 | 53,693 | 974 | 314 | 55.126283 | 0.854053 | 0.284711 | 0 | 0.470588 | 0 | 0.002179 | 0.104433 | 0.007452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141612 | false | 0.03268 | 0.015251 | 0.017429 | 0.246187 | 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 |
ce629a6cfd7825a590523ff1e63c844520f0366e | 4,403 | py | Python | tests/unit/deployers/gcp/test_gcpserving.py | jinchihe/fairing | 6da86a8cbc8a8764d045145afe9575a000ebc363 | [
"Apache-2.0"
] | 2 | 2019-06-27T18:17:06.000Z | 2019-08-14T12:29:32.000Z | tests/unit/deployers/gcp/test_gcpserving.py | jinchihe/fairing | 6da86a8cbc8a8764d045145afe9575a000ebc363 | [
"Apache-2.0"
] | null | null | null | tests/unit/deployers/gcp/test_gcpserving.py | jinchihe/fairing | 6da86a8cbc8a8764d045145afe9575a000ebc363 | [
"Apache-2.0"
] | 2 | 2020-05-05T01:09:22.000Z | 2021-02-10T11:18:39.000Z | """Tests for GCPServing Deployer."""
import pytest
import json
import httplib2
from unittest.mock import patch
from fairing.deployers.gcp.gcpserving import GCPServingDeployer
from googleapiclient.errors import HttpError
def create_http_error(error_code, message):
error_content = json.dumps({
'error': {
... | 36.691667 | 80 | 0.713604 | 545 | 4,403 | 5.522936 | 0.187156 | 0.095017 | 0.027907 | 0.039535 | 0.742193 | 0.718272 | 0.718272 | 0.642193 | 0.616279 | 0.616279 | 0 | 0.006128 | 0.184647 | 4,403 | 119 | 81 | 37 | 0.832312 | 0.082898 | 0 | 0.464286 | 0 | 0 | 0.217478 | 0.074479 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.154762 | 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 |
ce6619a2b9b636439843980811a14adf55cf356d | 173 | py | Python | src/olympia/scanners/api_urls.py | abhinavraj23/addons-server | b9e3cc09718679d2a72d8e305b79d98d1421c397 | [
"BSD-3-Clause"
] | 3 | 2020-03-05T18:17:14.000Z | 2020-03-09T01:24:38.000Z | src/olympia/scanners/api_urls.py | abhinavraj23/addons-server | b9e3cc09718679d2a72d8e305b79d98d1421c397 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/scanners/api_urls.py | abhinavraj23/addons-server | b9e3cc09718679d2a72d8e305b79d98d1421c397 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from .views import ScannerResultViewSet
urlpatterns = [
url(r'^results/$', ScannerResultViewSet.as_view(), name='scanner-results'),
]
| 21.625 | 79 | 0.745665 | 20 | 173 | 6.4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121387 | 173 | 7 | 80 | 24.714286 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.144509 | 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 |
ce6c7d474a22087470d7b8660f9eeae8c973c442 | 632 | py | Python | crypt/rsa_decrypt.py | ozuma/ctf-tools | b1d8b166ec154c8122d97237212efb96e9a44d51 | [
"MIT"
] | 1 | 2021-03-28T16:23:35.000Z | 2021-03-28T16:23:35.000Z | crypt/rsa_decrypt.py | ozuma/ctf-tools | b1d8b166ec154c8122d97237212efb96e9a44d51 | [
"MIT"
] | null | null | null | crypt/rsa_decrypt.py | ozuma/ctf-tools | b1d8b166ec154c8122d97237212efb96e9a44d51 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from Crypto.Util.number import getPrime, inverse
import binascii
# 2つの素数
# ここで素因数分解: https://www.alpertron.com.ar/ECM.HTM
p = 1899107986527483535344517113948531328331
q = 674357869540600933870145899564746495319033
# Modulus n = p * q
n = 1280678415822214057864524798453297819181910621573... | 21.793103 | 87 | 0.754747 | 63 | 632 | 7.571429 | 0.730159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.47486 | 0.150316 | 632 | 28 | 88 | 22.571429 | 0.413408 | 0.234177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce70958f129a37f0ca7133bd13db3b4d6403f6f3 | 1,635 | py | Python | nmtpy/filters.py | lium-lst/nmtpy | dc0a1618f217d5117d6abeacdc15a22443561acf | [
"MIT"
] | 144 | 2016-07-29T06:02:49.000Z | 2020-12-04T08:58:20.000Z | nmtpy/filters.py | lium-lst/nmtpy | dc0a1618f217d5117d6abeacdc15a22443561acf | [
"MIT"
] | 21 | 2017-02-16T15:49:20.000Z | 2018-03-15T18:11:08.000Z | nmtpy/filters.py | lium-lst/nmtpy | dc0a1618f217d5117d6abeacdc15a22443561acf | [
"MIT"
] | 39 | 2017-02-07T16:40:08.000Z | 2021-08-09T17:19:12.000Z | # -*- coding: utf-8 -*-
import re
class Filter(object):
"""Common Filter class for post-processing sentences."""
def __call__(self, inp):
if isinstance(inp, str):
# Apply to single sentence
return self.process(inp)
else:
# Assume a sequence and apply to each
... | 33.367347 | 91 | 0.564526 | 176 | 1,635 | 5.215909 | 0.5 | 0.054466 | 0.076253 | 0.081699 | 0.196078 | 0.078431 | 0.078431 | 0.078431 | 0 | 0 | 0 | 0.004259 | 0.281957 | 1,635 | 48 | 92 | 34.0625 | 0.777683 | 0.31682 | 0 | 0.172414 | 0 | 0 | 0.061922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0.172414 | 0.724138 | 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 |
ce734cc01a63ac1b78a72f33df27981993042899 | 114 | py | Python | mrp/examples/03_api/bob.py | colesbury/fairo | 9e50a3aa7369c68c80e84d80abd5fcdee8a9277a | [
"MIT"
] | 73 | 2021-09-14T19:24:45.000Z | 2022-03-27T06:43:26.000Z | mrp/examples/03_api/bob.py | colesbury/fairo | 9e50a3aa7369c68c80e84d80abd5fcdee8a9277a | [
"MIT"
] | 268 | 2021-09-14T22:40:23.000Z | 2022-03-31T23:01:54.000Z | mrp/examples/03_api/bob.py | colesbury/fairo | 9e50a3aa7369c68c80e84d80abd5fcdee8a9277a | [
"MIT"
] | 20 | 2021-09-14T19:24:47.000Z | 2022-03-30T19:03:44.000Z | import a0
import signal
s = a0.Subscriber("some/topic", lambda pkt: print(f"Got {pkt.payload}"))
signal.pause()
| 16.285714 | 72 | 0.710526 | 18 | 114 | 4.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.122807 | 114 | 6 | 73 | 19 | 0.79 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ce79bb89d800ad4aef6866eb25a23b37e168a26d | 488 | py | Python | python-modules/twisted/twisted/words/toctap.py | stormtheh4ck3r/python-for-android | b9ea9161392f60566b81482b1e25cd77004d5c45 | [
"Apache-2.0"
] | 267 | 2015-03-22T15:23:48.000Z | 2022-03-05T21:57:34.000Z | python-modules/twisted/twisted/words/toctap.py | stormtheh4ck3r/python-for-android | b9ea9161392f60566b81482b1e25cd77004d5c45 | [
"Apache-2.0"
] | 133 | 2015-03-21T15:13:43.000Z | 2021-12-11T23:37:58.000Z | python-modules/twisted/twisted/words/toctap.py | stormtheh4ck3r/python-for-android | b9ea9161392f60566b81482b1e25cd77004d5c45 | [
"Apache-2.0"
] | 119 | 2015-04-28T16:07:10.000Z | 2022-03-18T03:49:48.000Z |
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Support module for making TOC servers with twistd.
"""
from twisted.words.protocols import toc
from twisted.python import usage
from twisted.application import strports
class Options(usage.Options):
synopsis = "[-p <port>]"
... | 23.238095 | 61 | 0.715164 | 61 | 488 | 5.721311 | 0.704918 | 0.094556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029268 | 0.159836 | 488 | 20 | 62 | 24.4 | 0.821951 | 0.264344 | 0 | 0 | 0 | 0 | 0.123209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
ce7f36ad982e6c0bb2c27895a5430a7067c717b6 | 232 | py | Python | web/talks/migrations/0010_auto_20171222_1647.py | vtalks/vtalks.net | 80fb19ff9684e0854c6abe5f0eef73e80ec326a6 | [
"Apache-2.0"
] | 1 | 2017-11-28T03:17:23.000Z | 2017-11-28T03:17:23.000Z | web/talks/migrations/0010_auto_20171222_1647.py | vtalks/vtalks.net | 80fb19ff9684e0854c6abe5f0eef73e80ec326a6 | [
"Apache-2.0"
] | 56 | 2018-01-14T18:03:03.000Z | 2018-06-25T17:59:02.000Z | web/talks/migrations/0010_auto_20171222_1647.py | vtalks/vtalks.net | 80fb19ff9684e0854c6abe5f0eef73e80ec326a6 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0 on 2017-12-22 16:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('talks', '0009_remove_talk_tags_old'),
]
operations = [
]
| 15.466667 | 47 | 0.655172 | 29 | 232 | 5.103448 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 0.237069 | 232 | 14 | 48 | 16.571429 | 0.734463 | 0.185345 | 0 | 0 | 1 | 0 | 0.160428 | 0.13369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ce92458004a0daefa585bf3f0d604e9ecc4c46f7 | 164 | py | Python | app/api/models/arduino.py | catzilla-007/robin-inspector | 12482287abde26648e16643744c3ef0c89a45f40 | [
"Apache-2.0"
] | 1 | 2022-03-21T02:06:18.000Z | 2022-03-21T02:06:18.000Z | app/api/models/arduino.py | catzilla-007/robin-inspector | 12482287abde26648e16643744c3ef0c89a45f40 | [
"Apache-2.0"
] | 2 | 2021-09-28T03:44:11.000Z | 2022-03-16T06:46:21.000Z | app/api/models/arduino.py | catzilla-007/robin-inspector | 12482287abde26648e16643744c3ef0c89a45f40 | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel
class ArduinoRequest(BaseModel):
name: str
ip: str
port: int = 80
class ArduinoResponse(ArduinoRequest):
id: str
| 13.666667 | 38 | 0.70122 | 19 | 164 | 6.052632 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.231707 | 164 | 11 | 39 | 14.909091 | 0.896825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ce92895fd7ae98618264cd4afcdbdb217172565d | 10,026 | py | Python | release/stubs/GH_Util/MetaBall.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs/GH_Util/MetaBall.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs/GH_Util/MetaBall.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | # encoding: utf-8
# module GH_Util.MetaBall calls itself MetaBall
# from GH_Util, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dda4f5ec2cd80803
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no imports
# no functions
# classes
class GH_CellInfo(object):
"""
GH_CellI... | 31.62776 | 333 | 0.593058 | 1,207 | 10,026 | 4.498757 | 0.154101 | 0.042541 | 0.072192 | 0.092818 | 0.58895 | 0.568324 | 0.532597 | 0.514549 | 0.505341 | 0.462799 | 0 | 0.023879 | 0.277379 | 10,026 | 316 | 334 | 31.727848 | 0.725604 | 0.447137 | 0 | 0.54 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.3 | 0 | 0 | 0.66 | 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 |
ce950dd8fc6ac573085b9cd15df1fd9f87d7dbf1 | 2,483 | py | Python | test/problems/second_quantization/electronic/integrals_calculators/test_angular_momentum_integrals_calculator.py | divshacker/qiskit-nature | 08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb | [
"Apache-2.0"
] | 1 | 2021-06-20T15:31:01.000Z | 2021-06-20T15:31:01.000Z | test/problems/second_quantization/electronic/integrals_calculators/test_angular_momentum_integrals_calculator.py | divshacker/qiskit-nature | 08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb | [
"Apache-2.0"
] | null | null | null | test/problems/second_quantization/electronic/integrals_calculators/test_angular_momentum_integrals_calculator.py | divshacker/qiskit-nature | 08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 34.971831 | 91 | 0.52799 | 441 | 2,483 | 2.863946 | 0.23356 | 0.313539 | 0.43943 | 0.544735 | 0.310372 | 0.253365 | 0.18369 | 0.182106 | 0.181314 | 0.158353 | 0 | 0.143816 | 0.280306 | 2,483 | 70 | 92 | 35.471429 | 0.562955 | 0.261377 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0.022222 | false | 0 | 0.088889 | 0 | 0.2 | 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 |
ce9cb1fe25bada72641b0d0078e75f7be1477672 | 162 | py | Python | manage.py | syatsuzuka/sample_flask | dd574326203a8fa6b9db3483c4184c7e6fb929ee | [
"Apache-2.0"
] | null | null | null | manage.py | syatsuzuka/sample_flask | dd574326203a8fa6b9db3483c4184c7e6fb929ee | [
"Apache-2.0"
] | null | null | null | manage.py | syatsuzuka/sample_flask | dd574326203a8fa6b9db3483c4184c7e6fb929ee | [
"Apache-2.0"
] | null | null | null | from flask.ext.script import Manager
from template.app import app
manager = Manager(app)
app.config['DEBUG'] = True
if __name__ == '__main__':
manager.run()
| 16.2 | 36 | 0.728395 | 23 | 162 | 4.782609 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 162 | 9 | 37 | 18 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.080745 | 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 |
cea12243c6cb39664e5929508f33962f1c54c41f | 85 | py | Python | config.py | Cesar0510/Slack | c04bdbce55bb226020da4536f5426c2827c1537c | [
"BSD-3-Clause"
] | null | null | null | config.py | Cesar0510/Slack | c04bdbce55bb226020da4536f5426c2827c1537c | [
"BSD-3-Clause"
] | null | null | null | config.py | Cesar0510/Slack | c04bdbce55bb226020da4536f5426c2827c1537c | [
"BSD-3-Clause"
] | null | null | null |
class Development(object):
DEBUG = True # Turns on debugging features in Flask
| 17 | 55 | 0.729412 | 11 | 85 | 5.636364 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211765 | 85 | 4 | 56 | 21.25 | 0.925373 | 0.423529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cea4f254119162604c7df704e313d3ad6200f390 | 1,324 | py | Python | python/OpenGLPlotting/pomp/apps/deprecated/01.06.2012/pOpenGLbasic.py | kotowicz/StimOMatic | 579cfa082a163bfcdecb69733b218b4e439c2bf0 | [
"BSD-2-Clause"
] | 3 | 2015-08-10T13:13:50.000Z | 2018-03-01T00:21:03.000Z | python/OpenGLPlotting/pomp/apps/deprecated/01.06.2012/pOpenGLbasic.py | kotowicz/StimOMatic | 579cfa082a163bfcdecb69733b218b4e439c2bf0 | [
"BSD-2-Clause"
] | null | null | null | python/OpenGLPlotting/pomp/apps/deprecated/01.06.2012/pOpenGLbasic.py | kotowicz/StimOMatic | 579cfa082a163bfcdecb69733b218b4e439c2bf0 | [
"BSD-2-Clause"
] | 1 | 2020-03-18T18:15:02.000Z | 2020-03-18T18:15:02.000Z | import pyglet
from pyglet.gl import *
from ctypes import pointer, sizeof
import numpy as np
import random
from time import time
from math import ceil, floor
''' mmap stuff '''
import os, sys
import mmap
from datetime import datetime
from struct import unpack, pack
################## function needed to calculate dep... | 32.292683 | 117 | 0.780967 | 211 | 1,324 | 4.483412 | 0.345972 | 0.137421 | 0.164905 | 0.20296 | 0.451374 | 0.310782 | 0.310782 | 0.310782 | 0.310782 | 0.310782 | 0 | 0.000905 | 0.165408 | 1,324 | 40 | 118 | 33.1 | 0.855204 | 0.314955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.647059 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ceb3394b23856b69146dc3e529b1e275c60f295c | 1,506 | py | Python | tempest/common/generate_sample_tempest.py | rcbops-qe/tempest | 88960aa32c473b64072671541a136dbae41b1d4c | [
"Apache-2.0"
] | 3 | 2015-03-03T15:43:06.000Z | 2016-10-24T06:12:40.000Z | tempest/common/generate_sample_tempest.py | rcbops-qe/tempest | 88960aa32c473b64072671541a136dbae41b1d4c | [
"Apache-2.0"
] | null | null | null | tempest/common/generate_sample_tempest.py | rcbops-qe/tempest | 88960aa32c473b64072671541a136dbae41b1d4c | [
"Apache-2.0"
] | 1 | 2021-11-10T07:21:02.000Z | 2021-11-10T07:21:02.000Z | # Copyright 2013 IBM Corp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 41.833333 | 79 | 0.750332 | 243 | 1,506 | 4.613169 | 0.572016 | 0.053524 | 0.023194 | 0.028546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.193227 | 1,506 | 35 | 80 | 43.028571 | 0.915226 | 0.840637 | 0 | 0 | 0 | 0 | 0.037209 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ced3f9264f831d7b8d3d02dcb21d66378d53d609 | 503 | py | Python | 33/ex33.py | sdwebster/learn-python-the-hard-way-solutions | 748a3b8dea69a2ff24e69fc6318b0be3da3fc00b | [
"MIT"
] | null | null | null | 33/ex33.py | sdwebster/learn-python-the-hard-way-solutions | 748a3b8dea69a2ff24e69fc6318b0be3da3fc00b | [
"MIT"
] | null | null | null | 33/ex33.py | sdwebster/learn-python-the-hard-way-solutions | 748a3b8dea69a2ff24e69fc6318b0be3da3fc00b | [
"MIT"
] | null | null | null | i = 0
numbers = []
while i < 6:
print "At the top i is %d" % i
numbers.append(i)
i += 1
print "Numbers now: ", numbers
print "At the bottom i is %d" % i
print "The numbers:", numbers
for num in numbers:
print num
def buildList (numElements, inc) :
i = 0
while i < numElements * inc:
print "At... | 17.344828 | 37 | 0.592445 | 83 | 503 | 3.590361 | 0.289157 | 0.09396 | 0.134228 | 0.067114 | 0.657718 | 0.657718 | 0.657718 | 0.657718 | 0.657718 | 0.657718 | 0 | 0.01676 | 0.28827 | 503 | 28 | 38 | 17.964286 | 0.815642 | 0 | 0 | 0.571429 | 0 | 0 | 0.254473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
cedf2c4f6f875ed8765ea24d7c7dd7081668f0a2 | 357 | py | Python | python/hetu/layers/__init__.py | axiserr/Hetu | 0052f727488db0570d6b37f63549b43b0920bc29 | [
"Apache-2.0"
] | 82 | 2021-07-20T02:45:54.000Z | 2022-03-14T07:08:45.000Z | python/hetu/layers/__init__.py | axiserr/Hetu | 0052f727488db0570d6b37f63549b43b0920bc29 | [
"Apache-2.0"
] | 4 | 2021-11-25T13:39:21.000Z | 2022-03-13T04:14:14.000Z | python/hetu/layers/__init__.py | axiserr/Hetu | 0052f727488db0570d6b37f63549b43b0920bc29 | [
"Apache-2.0"
] | 13 | 2021-07-18T14:40:56.000Z | 2022-03-09T06:37:42.000Z | from .concatenate import Concatenate, ConcatenateLayers
from .conv import Conv2d
from .dropout import DropOut
from .identity import Identity
from .linear import Linear
from .normalization import BatchNorm
from .pooling import MaxPool2d, AvgPool2d
from .relu import Relu
from .reshape import Reshape
from .sequence import... | 29.75 | 55 | 0.834734 | 46 | 357 | 6.478261 | 0.413043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009646 | 0.128852 | 357 | 11 | 56 | 32.454545 | 0.948553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0ca6ce16ec8fdb1dc258598f6f6dcbf176cc57c3 | 659 | py | Python | src/metrics/AbstractMetric.py | stat-ml/dimreducers-crusher | ee5b3909ae73348e2107614a55aa9d6593dc96ca | [
"Apache-2.0"
] | null | null | null | src/metrics/AbstractMetric.py | stat-ml/dimreducers-crusher | ee5b3909ae73348e2107614a55aa9d6593dc96ca | [
"Apache-2.0"
] | null | null | null | src/metrics/AbstractMetric.py | stat-ml/dimreducers-crusher | ee5b3909ae73348e2107614a55aa9d6593dc96ca | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Optional, Union
import numpy as np
class AbstractMetric(ABC):
def __init__(self, random_state: int = 0):
super().__init__()
self.random_state = random_state
@abstractmethod # TODO: should this also be @staticmethod?
def score(self, ... | 26.36 | 102 | 0.661608 | 81 | 659 | 5.185185 | 0.518519 | 0.130952 | 0.107143 | 0.090476 | 0.090476 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004008 | 0.242792 | 659 | 24 | 103 | 27.458333 | 0.837675 | 0.060698 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.222222 | false | 0.111111 | 0.166667 | 0.055556 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0cd03d382fba9fbc2067532ca1a58b632a9b4549 | 219 | py | Python | customer_support/urls.py | rtnpro/django-customer-support | 6de8d9301fe01a42fa6799757a107be69ee82426 | [
"MIT"
] | 1 | 2017-05-06T04:49:45.000Z | 2017-05-06T04:49:45.000Z | customer_support/urls.py | rtnpro/django-customer-support | 6de8d9301fe01a42fa6799757a107be69ee82426 | [
"MIT"
] | null | null | null | customer_support/urls.py | rtnpro/django-customer-support | 6de8d9301fe01a42fa6799757a107be69ee82426 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from django.conf.urls import patterns, url
from .views import CustomerSupport
urlpatterns = patterns(
'',
url(r'^$', CustomerSupport.as_view(), name='customer_support')
)
| 24.333333 | 66 | 0.753425 | 26 | 219 | 6.076923 | 0.692308 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 219 | 8 | 67 | 27.375 | 0.835979 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
0cdca1ddc580d8fce75f571f145343899c2163a7 | 123 | py | Python | src/applications/smart/apps.py | mikepolo-JQ/inter | 64f5da344c69e7885f4d76778016e9723c8bc7a6 | [
"MIT"
] | null | null | null | src/applications/smart/apps.py | mikepolo-JQ/inter | 64f5da344c69e7885f4d76778016e9723c8bc7a6 | [
"MIT"
] | null | null | null | src/applications/smart/apps.py | mikepolo-JQ/inter | 64f5da344c69e7885f4d76778016e9723c8bc7a6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SmartConfig(AppConfig):
label = "smart"
name = f"applications.{ label }"
| 17.571429 | 36 | 0.699187 | 14 | 123 | 6.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 123 | 6 | 37 | 20.5 | 0.868687 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 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 |
0cf91de2ba6525a3f1485dc7cbd8109f01260347 | 24 | py | Python | loader/pbrt/__init__.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | 1 | 2018-05-15T04:00:17.000Z | 2018-05-15T04:00:17.000Z | loader/pbrt/__init__.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | null | null | null | loader/pbrt/__init__.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | null | null | null | __author__ = 'nicolas'
| 12 | 23 | 0.708333 | 2 | 24 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 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 |
0cfc3327873f40aa99161405a4d2557f82329393 | 509 | py | Python | tests/test_crsplus.py | isac-cell/crsplus | 6c072d41be519970503cf079e9908b2be806b022 | [
"MIT"
] | null | null | null | tests/test_crsplus.py | isac-cell/crsplus | 6c072d41be519970503cf079e9908b2be806b022 | [
"MIT"
] | null | null | null | tests/test_crsplus.py | isac-cell/crsplus | 6c072d41be519970503cf079e9908b2be806b022 | [
"MIT"
] | null | null | null | import unittest
from crsplus import hello, hi, __version__
class TestCRSPlus(unittest.TestCase):
def test_version(self):
self.assertEqual(__version__, '0.2.1')
def test_hello(self):
self.assertEqual(hello(), 'Hello')
def test_hi_when_name_is_Python_then_Hi_Python(self):
self.as... | 22.130435 | 57 | 0.693517 | 69 | 509 | 4.623188 | 0.362319 | 0.087774 | 0.238245 | 0.081505 | 0.119122 | 0.119122 | 0 | 0 | 0 | 0 | 0 | 0.007229 | 0.184676 | 509 | 22 | 58 | 23.136364 | 0.761446 | 0 | 0 | 0 | 0 | 0 | 0.086444 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.307692 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0b2974964aa1f933824616bb4f8cf015e671d512 | 7,026 | py | Python | GradientDescent.py | LukaszObara/Theano_AutoEncoder | 4ec8951721ea1f1ba9200c534874a0555c43e53c | [
"MIT"
] | null | null | null | GradientDescent.py | LukaszObara/Theano_AutoEncoder | 4ec8951721ea1f1ba9200c534874a0555c43e53c | [
"MIT"
] | null | null | null | GradientDescent.py | LukaszObara/Theano_AutoEncoder | 4ec8951721ea1f1ba9200c534874a0555c43e53c | [
"MIT"
] | null | null | null | # GradientDescent.py
# Libraries
# Third-Party Libraries
import numpy as np
import theano
import theano.tensor as T
def sgd(l_rate, parameters, grads):
"""
Stochastic Gradient Descent.
Parameters
----------
:type lr: theano.tensor.scalar
:param lr: Initial learning rate
:type parameter... | 26.022222 | 78 | 0.654569 | 975 | 7,026 | 4.607179 | 0.109744 | 0.052093 | 0.039181 | 0.0374 | 0.776714 | 0.733749 | 0.724622 | 0.685441 | 0.636242 | 0.636242 | 0 | 0.015182 | 0.212496 | 7,026 | 269 | 79 | 26.118959 | 0.796675 | 0.237689 | 0 | 0.669231 | 0 | 0 | 0.011847 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 1 | 0.1 | false | 0 | 0.023077 | 0 | 0.223077 | 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 |
0b2c82942f4341a3d18a891c35e0e79dd7dc43d4 | 378 | py | Python | cursoemvideo/ex0073.py | LuanPetruitis/minis_programas_python | 5fbc4c3fbe832303511e612f320d31e2b91f1ef0 | [
"MIT"
] | 1 | 2020-04-09T14:41:48.000Z | 2020-04-09T14:41:48.000Z | cursoemvideo/ex0073.py | LuanPetruitis/minis_programas_python | 5fbc4c3fbe832303511e612f320d31e2b91f1ef0 | [
"MIT"
] | 1 | 2020-04-10T20:39:24.000Z | 2020-04-12T13:43:51.000Z | cursoemvideo/ex0073.py | LuanPetruitis/minis_programas_python | 5fbc4c3fbe832303511e612f320d31e2b91f1ef0 | [
"MIT"
] | 1 | 2020-04-13T03:21:09.000Z | 2020-04-13T03:21:09.000Z | times = ('corinthians', 'palmeiras', 'santos', 'gremio')
print(f'Esta é a lista de times do brasileirão: {times}')
print('-='*15)
print(f'Este são os dois primeiros times {times[0:2]}')
print('-='*15)
print(f'Este são os dois ultimos: {times[-2:]}')
print(f'Esta e a ordem alfabética deles {sorted(times)}')
print(f'O co... | 47.25 | 70 | 0.690476 | 61 | 378 | 4.278689 | 0.540984 | 0.114943 | 0.076628 | 0.099617 | 0.199234 | 0.199234 | 0.199234 | 0.199234 | 0 | 0 | 0 | 0.02381 | 0.111111 | 378 | 8 | 70 | 47.25 | 0.752976 | 0 | 0 | 0.25 | 0 | 0 | 0.720317 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0b3f51ab21cb1f40b6039482994c7ea65f1b5824 | 82 | py | Python | codes_auto/51.n-queens.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/51.n-queens.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/51.n-queens.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=51 lang=python3
#
# [51] n-queens
#
None
# @lc code=end | 11.714286 | 40 | 0.634146 | 15 | 82 | 3.466667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 0.170732 | 82 | 7 | 41 | 11.714286 | 0.691176 | 0.792683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0b494fdfbdf8c77c02a2600bfdaa826c9a34c8e9 | 17,813 | py | Python | tests/unit/test_main.py | farzadghanei/miniauth | 4442933ea0de1b6854bacdb7b3084991a9187ca3 | [
"MIT"
] | 1 | 2019-07-12T10:40:32.000Z | 2019-07-12T10:40:32.000Z | tests/unit/test_main.py | farzadghanei/miniauth | 4442933ea0de1b6854bacdb7b3084991a9187ca3 | [
"MIT"
] | 1 | 2019-03-26T22:31:57.000Z | 2019-03-26T22:41:24.000Z | tests/unit/test_main.py | farzadghanei/miniauth | 4442933ea0de1b6854bacdb7b3084991a9187ca3 | [
"MIT"
] | null | null | null | import sys
from logging import NullHandler, StreamHandler, INFO, DEBUG
from miniauth.auth import MiniAuth
from miniauth.main import (main, save_user, remove_user, disable_user,
enable_user, verify_user, verify_user_from_opts,
EX_ALREADY_EXISTS, EX_OK, EX_NOUSER, EX_... | 40.57631 | 102 | 0.684837 | 2,201 | 17,813 | 5.148569 | 0.066333 | 0.108719 | 0.082598 | 0.044123 | 0.774356 | 0.731468 | 0.704024 | 0.631574 | 0.57845 | 0.547741 | 0 | 0.003526 | 0.219783 | 17,813 | 438 | 103 | 40.66895 | 0.811843 | 0 | 0 | 0.543767 | 0 | 0 | 0.087576 | 0.015943 | 0 | 0 | 0 | 0 | 0.297082 | 1 | 0.114058 | false | 0.161804 | 0.015915 | 0 | 0.148541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0ba09f4bde6a1cb5435c55347671b479b5cc1e32 | 585 | bzl | Python | source/bazel/deps/halley/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/bazel/deps/halley/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/bazel/deps/halley/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | # Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def halley():
http_archive(
name="halley" ,
build_file="//bazel/deps/halley:build.BUILD" ,
sha256="f4ff28208cb144e... | 34.411765 | 104 | 0.709402 | 56 | 585 | 7.285714 | 0.732143 | 0.053922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174274 | 0.176068 | 585 | 16 | 105 | 36.5625 | 0.672199 | 0.17265 | 0 | 0 | 1 | 0 | 0.609148 | 0.386694 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ba3d4937018d1243cc50b47d8303dc058f864cc | 803 | py | Python | pedantic/tests/validate/test_validator_not_empty.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | pedantic/tests/validate/test_validator_not_empty.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | pedantic/tests/validate/test_validator_not_empty.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from pedantic.decorators.fn_deco_validate.exceptions import ParameterException
from pedantic.decorators.fn_deco_validate.fn_deco_validate import validate
from pedantic.decorators.fn_deco_validate.parameters import Parameter
from pedantic.decorators.fn_deco_validate.validators import NotEm... | 36.5 | 78 | 0.691158 | 90 | 803 | 6.011111 | 0.433333 | 0.055453 | 0.12939 | 0.177449 | 0.375231 | 0.375231 | 0.109057 | 0 | 0 | 0 | 0 | 0.003096 | 0.195517 | 803 | 21 | 79 | 38.238095 | 0.834365 | 0 | 0 | 0.125 | 0 | 0 | 0.024907 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.3125 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e7e4c7211a47fe80b956473920c82185cf18ef94 | 156 | py | Python | evaluation/nor-manim_8.py | sdlab-naist/Teddy-plus | 367aadbb30b80e1680156b88017f9bb2d78c539a | [
"0BSD"
] | null | null | null | evaluation/nor-manim_8.py | sdlab-naist/Teddy-plus | 367aadbb30b80e1680156b88017f9bb2d78c539a | [
"0BSD"
] | 65 | 2020-01-30T10:58:48.000Z | 2020-04-30T03:37:58.000Z | evaluation/nor-manim_8.py | MUICT-SERU/SP2019-TEDDY | 367aadbb30b80e1680156b88017f9bb2d78c539a | [
"ISC"
] | 1 | 2021-01-15T08:18:23.000Z | 2021-01-15T08:18:23.000Z | def text_box(self, str):
box = TextMobject(str).scale(0.3)
box.add(SurroundingRectangle(box, stroke_color = DARK_GREY))
return box
| 26 | 68 | 0.647436 | 21 | 156 | 4.666667 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.237179 | 156 | 5 | 69 | 31.2 | 0.806723 | 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 |
e7e58435b5f07e4957bdee46b3dce5239a09982d | 362 | py | Python | homeslice/commands/cmd_config.py | jefftriplett/homeslice | 87e8aeec06edc3f1eed9a80bee6edb720e397960 | [
"MIT"
] | 1 | 2021-06-03T16:29:01.000Z | 2021-06-03T16:29:01.000Z | homeslice/commands/cmd_config.py | jefftriplett/homeslice | 87e8aeec06edc3f1eed9a80bee6edb720e397960 | [
"MIT"
] | 1 | 2021-06-01T21:22:05.000Z | 2021-06-01T21:22:05.000Z | homeslice/commands/cmd_config.py | jefftriplett/homeslice | 87e8aeec06edc3f1eed9a80bee6edb720e397960 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import click
import click_log
import logging
import json
from ..cli import pass_context
from ..pep508checker import lookup
logger = logging.getLogger(__name__)
@click.command()
@click_log.simple_verbosity_option()
@click_log.init(__name__)
@pass_context
def cli(context):
... | 17.238095 | 44 | 0.798343 | 50 | 362 | 5.38 | 0.52 | 0.089219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.11326 | 362 | 20 | 45 | 18.1 | 0.825545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.142857 | 0.5 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
e7e649ce81a6956e182f48322d8ca7a72388f895 | 702 | py | Python | chemreg/openapi/apps.py | Chemical-Curation/chemcurator | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | 1 | 2020-10-05T18:02:24.000Z | 2020-10-05T18:02:24.000Z | chemreg/openapi/apps.py | Chemical-Curation/chemcurator_django | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | 207 | 2020-01-30T19:17:44.000Z | 2021-02-24T19:45:29.000Z | chemreg/openapi/apps.py | Chemical-Curation/chemcurator_django | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | null | null | null | import os
from django.apps import AppConfig
from django.utils.autoreload import autoreload_started
from django.utils.translation import gettext_lazy as _
def jsonnet_watchdog(sender, **kwargs):
"""Restart runserver on jsonnet file changes."""
schema_dir = os.path.join(os.path.dirname(__file__), "schemas")
... | 28.08 | 67 | 0.69943 | 82 | 702 | 5.780488 | 0.573171 | 0.063291 | 0.063291 | 0.084388 | 0.097046 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0053 | 0.193732 | 702 | 24 | 68 | 29.25 | 0.832155 | 0.075499 | 0 | 0 | 0 | 0 | 0.085537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.352941 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
f004c7ebbcb60046c8fb7670bae35d29ba59c49a | 627 | py | Python | polyaxon/libs/managers.py | wbuchwalter/polyaxon | a01396ea86a74082c457bfbc2c91d283b6ff6fba | [
"MIT"
] | null | null | null | polyaxon/libs/managers.py | wbuchwalter/polyaxon | a01396ea86a74082c457bfbc2c91d283b6ff6fba | [
"MIT"
] | null | null | null | polyaxon/libs/managers.py | wbuchwalter/polyaxon | a01396ea86a74082c457bfbc2c91d283b6ff6fba | [
"MIT"
] | null | null | null | class ManagerInterface(object):
def __init__(self):
self._state = {}
@property
def state(self):
return self._state
def _get_state_data(self, obj):
raise NotImplementedError
def subscribe(self, obj):
key, value = self._get_state_data(obj)
self._subscribe(key... | 23.222222 | 46 | 0.598086 | 78 | 627 | 4.564103 | 0.282051 | 0.176966 | 0.08427 | 0.08427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299841 | 627 | 26 | 47 | 24.115385 | 0.810934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.35 | false | 0 | 0 | 0.15 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f012e4132bf755e456549b3a33be012312371aa3 | 15,871 | py | Python | src/main/py/ltprg/model/prior.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | 11 | 2017-08-03T15:42:19.000Z | 2021-02-04T12:43:35.000Z | src/main/py/ltprg/model/prior.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | null | null | null | src/main/py/ltprg/model/prior.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | 1 | 2021-02-04T12:43:37.000Z | 2021-02-04T12:43:37.000Z | import torch
import torch.nn as nn
from torch.autograd import Variable
from ltprg.model.dist import Categorical
from ltprg.model.seq import SamplingMode, SequenceModel
from ltprg.model.rsa import DistributionType, DataParameter
class PriorInputMode:
IGNORE_TRUE_WORLD = "IGNORE_TRUE_WORLD"
ONLY_TRUE_WORLD = "ON... | 47.94864 | 273 | 0.661773 | 2,071 | 15,871 | 4.730082 | 0.075809 | 0.028583 | 0.047468 | 0.04461 | 0.790629 | 0.749081 | 0.721213 | 0.69508 | 0.668028 | 0.619232 | 0 | 0.008486 | 0.242644 | 15,871 | 330 | 274 | 48.093939 | 0.806489 | 0.030433 | 0 | 0.586207 | 0 | 0 | 0.004812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099617 | false | 0.007663 | 0.022989 | 0.022989 | 0.203065 | 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 |
f03daa3c273f57edfe3793782225463768ab4a64 | 516 | py | Python | tests/fake_plugins.py | kb18951452/slack-machine | e7f240cad199672b3a1ba0f657b7d8404df93059 | [
"MIT"
] | null | null | null | tests/fake_plugins.py | kb18951452/slack-machine | e7f240cad199672b3a1ba0f657b7d8404df93059 | [
"MIT"
] | null | null | null | tests/fake_plugins.py | kb18951452/slack-machine | e7f240cad199672b3a1ba0f657b7d8404df93059 | [
"MIT"
] | null | null | null | from machine.plugins.base import MachineBasePlugin
from machine.plugins.decorators import respond_to, listen_to, process
class FakePlugin(MachineBasePlugin):
@respond_to(r'hello')
def respond_function(self, msg):
pass
@listen_to(r'hi')
def listen_function(self, msg):
pass
@proce... | 19.111111 | 69 | 0.676357 | 63 | 516 | 5.396825 | 0.460317 | 0.105882 | 0.105882 | 0.111765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007557 | 0.23062 | 516 | 26 | 70 | 19.846154 | 0.848867 | 0 | 0 | 0.235294 | 0 | 0 | 0.032946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.235294 | 0.117647 | 0 | 0.529412 | 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 |
f0773854089a383f6b7707d6c1db276e53c725d0 | 91 | py | Python | lang/py/cookbook/v2/source/cb2_2_2_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_2_2_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_2_2_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | file_object = open('thefile.txt', 'w')
file_object.write(all_the_text)
file_object.close()
| 22.75 | 38 | 0.769231 | 15 | 91 | 4.333333 | 0.733333 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065934 | 91 | 3 | 39 | 30.333333 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2e90d8bb3d5ad6da6a6472073e5ea287fa5b232 | 1,839 | py | Python | automatic_crud/utils.py | angeldeejay/django-automatic-crud | 0f0cb2df57aad4c43abb09c4007556de4744e7b8 | [
"Apache-2.0"
] | 13 | 2021-04-22T04:08:19.000Z | 2022-03-09T13:39:40.000Z | automatic_crud/utils.py | angeldeejay/django-automatic-crud | 0f0cb2df57aad4c43abb09c4007556de4744e7b8 | [
"Apache-2.0"
] | 2 | 2021-06-28T15:55:43.000Z | 2021-12-02T17:16:25.000Z | automatic_crud/utils.py | angeldeejay/django-automatic-crud | 0f0cb2df57aad4c43abb09c4007556de4744e7b8 | [
"Apache-2.0"
] | 9 | 2021-04-25T20:20:01.000Z | 2022-02-15T00:53:18.000Z | from typing import Dict,List
from django.apps import apps
from django.forms import models
from automatic_crud.data_types import Instance,DjangoForm
def get_model(__app_name:str,__model_name:str) -> Instance:
# return the model corresponding to the application name and model name sent
return apps.get_model(ap... | 34.698113 | 99 | 0.660141 | 245 | 1,839 | 4.75102 | 0.342857 | 0.061856 | 0.0189 | 0.04811 | 0.065292 | 0.065292 | 0 | 0 | 0 | 0 | 0 | 0.002195 | 0.256661 | 1,839 | 53 | 100 | 34.698113 | 0.849305 | 0.238173 | 0 | 0 | 0 | 0 | 0.019824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.107143 | 0.642857 | 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 |
b2e98b77c7e3138eba0cca5157eeeb137680eefb | 1,140 | py | Python | template.py | priyakdey/dqc | 694caa4af2019b9e9600b4989041bffba266be3d | [
"MIT"
] | null | null | null | template.py | priyakdey/dqc | 694caa4af2019b9e9600b4989041bffba266be3d | [
"MIT"
] | null | null | null | template.py | priyakdey/dqc | 694caa4af2019b9e9600b4989041bffba266be3d | [
"MIT"
] | null | null | null | """Definition of Types"""
from dataclasses import dataclass
from enum import auto, Enum
from typing import Dict, List
class Type(Enum):
"""Types of supported validation templates"""
def __str__(self) -> str:
return self.name
SQL = auto()
STORED_PROC = auto()
FUNCTION = auto... | 22.352941 | 113 | 0.613158 | 146 | 1,140 | 4.664384 | 0.328767 | 0.041116 | 0.076358 | 0.038179 | 0.417034 | 0.417034 | 0.417034 | 0.337739 | 0.246696 | 0.246696 | 0 | 0 | 0.262281 | 1,140 | 50 | 114 | 22.8 | 0.80975 | 0.129825 | 0 | 0.5625 | 0 | 0.0625 | 0.194672 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0.125 | 0.9375 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
b2fec816a9934fc7b3f46b944e0c7f58ec50af14 | 157 | py | Python | mayatools/sdk.py | westernx/mayatools | 47c91050cb54167268d456e130ffce2d55373381 | [
"BSD-3-Clause"
] | 47 | 2015-01-07T17:38:39.000Z | 2022-03-22T02:42:39.000Z | mayatools/sdk.py | westernx/mayatools | 47c91050cb54167268d456e130ffce2d55373381 | [
"BSD-3-Clause"
] | 1 | 2016-04-25T09:02:57.000Z | 2016-04-25T13:55:13.000Z | mayatools/sdk.py | westernx/mayatools | 47c91050cb54167268d456e130ffce2d55373381 | [
"BSD-3-Clause"
] | 12 | 2015-07-13T12:32:35.000Z | 2020-04-29T02:58:49.000Z | import maya.api.OpenMaya as om
def mobject_from_name(name):
sel_list = om.MSelectionList()
sel_list.add(name)
return sel_list.getDependNode(0)
| 19.625 | 36 | 0.738854 | 24 | 157 | 4.625 | 0.708333 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.165605 | 157 | 7 | 37 | 22.428571 | 0.839695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6503f90636f242a4e59e6e8a8f05409ce4fab8d3 | 9,976 | py | Python | coba/environments/primitives.py | VowpalWabbit/coba | f3ba37280ea6125dc334a501ba39b3d30696ef4b | [
"BSD-3-Clause"
] | 30 | 2020-08-06T22:17:34.000Z | 2022-03-15T12:20:20.000Z | coba/environments/primitives.py | VowpalWabbit/coba | f3ba37280ea6125dc334a501ba39b3d30696ef4b | [
"BSD-3-Clause"
] | 5 | 2021-02-25T02:06:22.000Z | 2022-01-11T14:18:34.000Z | coba/environments/primitives.py | VowpalWabbit/coba | f3ba37280ea6125dc334a501ba39b3d30696ef4b | [
"BSD-3-Clause"
] | 9 | 2020-11-25T19:55:44.000Z | 2021-10-01T20:20:36.000Z | from abc import abstractmethod, ABC
from typing import Optional, Sequence, Hashable, Any, Union, Iterable, overload, Dict
from coba.utilities import HashableDict
from coba.pipes import Source, Filter
Action = Union[Hashable, HashableDict]
Context = Union[None, Hashable, HashableDict]
class Interaction:
def __in... | 38.076336 | 135 | 0.644948 | 1,132 | 9,976 | 5.606007 | 0.141343 | 0.029467 | 0.023637 | 0.022691 | 0.712575 | 0.700441 | 0.682792 | 0.665143 | 0.642767 | 0.635203 | 0 | 0 | 0.27486 | 9,976 | 261 | 136 | 38.222222 | 0.877246 | 0.103949 | 0 | 0.700787 | 0 | 0 | 0.046872 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 1 | 0.188976 | false | 0 | 0.031496 | 0.031496 | 0.370079 | 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 |
650faa864ab18c4d09d414575a20ee6bf8835f5c | 474 | py | Python | solutions/CarAndCdr_test.py | sedawk/CodingPractices | f4e1ea51702e45cd2f79e574e705dbc7fe5cab7c | [
"MIT"
] | null | null | null | solutions/CarAndCdr_test.py | sedawk/CodingPractices | f4e1ea51702e45cd2f79e574e705dbc7fe5cab7c | [
"MIT"
] | null | null | null | solutions/CarAndCdr_test.py | sedawk/CodingPractices | f4e1ea51702e45cd2f79e574e705dbc7fe5cab7c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import unittest
def cons(a, b):
def pair(f):
return f(a, b)
return pair
def car(func):
def first(a, b):
return a
return func(first)
def cdr(func):
def second(a, b):
return b
return func(second)
class TestCase(unittest.TestCase):
def testA(self)... | 14.8125 | 35 | 0.554852 | 69 | 474 | 3.695652 | 0.405797 | 0.031373 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.308017 | 474 | 31 | 36 | 15.290323 | 0.759146 | 0.033755 | 0 | 0 | 0 | 0 | 0.017505 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.4 | false | 0 | 0.05 | 0.15 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e8e31ee4e3c557f1ee88c8f668c2fac01853e772 | 333 | py | Python | DS/python/stack.py | PriyangaPKini/HacktoberfestForBeginners | ec2c4568f8c008e73d918ed57a56e9a5e4f455c4 | [
"MIT"
] | 115 | 2019-10-12T02:30:40.000Z | 2022-03-31T21:42:58.000Z | DS/python/stack.py | PriyangaPKini/HacktoberfestForBeginners | ec2c4568f8c008e73d918ed57a56e9a5e4f455c4 | [
"MIT"
] | 37 | 2019-10-11T18:25:44.000Z | 2021-10-08T06:16:45.000Z | DS/python/stack.py | PriyangaPKini/HacktoberfestForBeginners | ec2c4568f8c008e73d918ed57a56e9a5e4f455c4 | [
"MIT"
] | 481 | 2019-10-11T18:01:47.000Z | 2022-03-25T11:11:02.000Z | class stack:
def __init__(self):
self.stack = []
def push(self, obj):
self.stack.append(obj)
def pull(self):
if len(self.stack) > 0:
return self.stack.pop()
return None
def top(self):
if len(self.stack) > 0:
return self.stack[-1]
... | 19.588235 | 35 | 0.513514 | 43 | 333 | 3.883721 | 0.395349 | 0.323353 | 0.107784 | 0.155689 | 0.407186 | 0.407186 | 0.407186 | 0.407186 | 0.407186 | 0 | 0 | 0.014218 | 0.366366 | 333 | 16 | 36 | 20.8125 | 0.777251 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0 | 0.692308 | 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 |
e8e5d21c9c6fbcc9a9f5644441cd598fa73b0d17 | 8,609 | py | Python | inverse_projections/clean.py | TianZonglin/Pointctl-web | e70caa804e67f4f5a3fd0da4e49b9572035f7724 | [
"MIT"
] | null | null | null | inverse_projections/clean.py | TianZonglin/Pointctl-web | e70caa804e67f4f5a3fd0da4e49b9572035f7724 | [
"MIT"
] | null | null | null | inverse_projections/clean.py | TianZonglin/Pointctl-web | e70caa804e67f4f5a3fd0da4e49b9572035f7724 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib as mpl
from sklearn.decomposition import PCA
from sklearn.cluster import AgglomerativeClustering
from sklearn.cluster import DBSCAN
from sklearn.cluster import KMeans
from sklearn.manifold import TSNE
from sklearn import manifold, datasets
from sklearn.metrics i... | 60.202797 | 293 | 0.692183 | 1,277 | 8,609 | 4.498042 | 0.156617 | 0.31546 | 0.264624 | 0.392758 | 0.685585 | 0.668872 | 0.655641 | 0.33757 | 0.30188 | 0.288649 | 0 | 0.071807 | 0.144268 | 8,609 | 143 | 294 | 60.202797 | 0.707887 | 0.039261 | 0 | 0 | 0 | 0 | 0.226899 | 0.027334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.134615 | 0 | 0.134615 | 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 |
e8e7bbf67836b9a71b76e599d61a4ec277cefe8f | 1,247 | py | Python | vstutils/gui/views.py | zhanmeiliang/vstutils | 1e6d970b1b7ad1ee7f32f8d8c8374031a23333ee | [
"Apache-2.0"
] | 1 | 2018-07-31T06:45:57.000Z | 2018-07-31T06:45:57.000Z | vstutils/gui/views.py | zhanmeiliang/vstutils | 1e6d970b1b7ad1ee7f32f8d8c8374031a23333ee | [
"Apache-2.0"
] | null | null | null | vstutils/gui/views.py | zhanmeiliang/vstutils | 1e6d970b1b7ad1ee7f32f8d8c8374031a23333ee | [
"Apache-2.0"
] | null | null | null | # pylint: disable=bad-super-call,unused-argument
from django.contrib.auth.decorators import login_required
from django.views.generic import TemplateView
from django.contrib.auth import views as auth
from django.http import HttpResponseRedirect
class BaseView(TemplateView):
login_required = False
@classmetho... | 28.340909 | 69 | 0.690457 | 156 | 1,247 | 5.442308 | 0.320513 | 0.094229 | 0.120141 | 0.09894 | 0.160188 | 0.153121 | 0.089517 | 0.089517 | 0 | 0 | 0 | 0 | 0.190858 | 1,247 | 43 | 70 | 29 | 0.841427 | 0.040898 | 0 | 0.214286 | 0 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 0.892857 | 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 |
e8ebba8dbd12283876b53946fa91d0f85bfb026a | 1,319 | py | Python | python/history_parsing/calculate_sentiment_scores_on_news.py | maxifom/economical_statistics | c907351ed01a6a3149736671a89702e535fddfcd | [
"MIT"
] | null | null | null | python/history_parsing/calculate_sentiment_scores_on_news.py | maxifom/economical_statistics | c907351ed01a6a3149736671a89702e535fddfcd | [
"MIT"
] | 12 | 2021-03-31T19:07:53.000Z | 2022-03-02T14:57:05.000Z | python/history_parsing/calculate_sentiment_scores_on_news.py | maxifom/economical_statistics | c907351ed01a6a3149736671a89702e535fddfcd | [
"MIT"
] | 1 | 2020-05-27T06:19:17.000Z | 2020-05-27T06:19:17.000Z | """
Calculate sentiment score, word count, gets parsed sentence
and words array from news
"""
from datetime import datetime
from misc.analysis import *
from models import Word
def news_with_one_company():
positive_words = Word.select().where(Word.is_positive == True)
negative_words = Word.s... | 42.548387 | 109 | 0.702805 | 186 | 1,319 | 4.596774 | 0.258065 | 0.074854 | 0.102924 | 0.084211 | 0.784795 | 0.784795 | 0.736842 | 0.651462 | 0.651462 | 0.62924 | 0 | 0.001781 | 0.148597 | 1,319 | 30 | 110 | 43.966667 | 0.759573 | 0.089462 | 0 | 0.421053 | 0 | 0 | 0.278788 | 0.202597 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.263158 | 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 |
e8efa3285a19efe328c1c8f872fe9b2fd6d22c9b | 468 | py | Python | models/comon_queue/InstagramQueuer.py | CT83/PyMultiPoster | 2ecd96764f21a88486f87cc55099ddff8d106e4f | [
"Apache-2.0"
] | null | null | null | models/comon_queue/InstagramQueuer.py | CT83/PyMultiPoster | 2ecd96764f21a88486f87cc55099ddff8d106e4f | [
"Apache-2.0"
] | null | null | null | models/comon_queue/InstagramQueuer.py | CT83/PyMultiPoster | 2ecd96764f21a88486f87cc55099ddff8d106e4f | [
"Apache-2.0"
] | null | null | null | import datetime
from shared.models import db
class InstagramQueuer(db.Model):
__bind_key__ = 'common_queue'
id = db.Column(db.Integer, primary_key=True)
content = db.Column(db.Text)
image_url = db.Column(db.Text, nullable=False)
date_queued = db.Column(db.DateTime(), default=datetime.datetime.now... | 31.2 | 75 | 0.711538 | 67 | 468 | 4.80597 | 0.477612 | 0.173913 | 0.217391 | 0.173913 | 0.167702 | 0.167702 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 468 | 14 | 76 | 33.428571 | 0.813131 | 0 | 0 | 0 | 0 | 0 | 0.036325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 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 |
e8f3f9626be3216b6a981390827b4c4e447bbb03 | 51 | py | Python | ryu/lib/xflow/__init__.py | MrCocoaCat/ryu | 9e9571991a73380099b7ba7c6f37e0e587080a6a | [
"Apache-2.0"
] | null | null | null | ryu/lib/xflow/__init__.py | MrCocoaCat/ryu | 9e9571991a73380099b7ba7c6f37e0e587080a6a | [
"Apache-2.0"
] | null | null | null | ryu/lib/xflow/__init__.py | MrCocoaCat/ryu | 9e9571991a73380099b7ba7c6f37e0e587080a6a | [
"Apache-2.0"
] | null | null | null | """
An implementation of sFlow and NetFlow.
"""
| 12.75 | 40 | 0.647059 | 6 | 51 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 51 | 3 | 41 | 17 | 0.825 | 0.764706 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3304d9806b13b8925b9e14b39f6468b7bd1db88e | 198 | py | Python | src/utils/utils.py | XXXBrainTireFire/-Intraday-Patterns-in-Trading-Volume-algorithm | 10f86020d7a0007c5f47f3a3d26b41961592c6e8 | [
"bzip2-1.0.6"
] | 6 | 2020-03-09T14:06:03.000Z | 2022-02-24T03:44:56.000Z | src/utils/utils.py | XXXBrainTireFire/-Intraday-Patterns-in-Trading-Volume-algorithm | 10f86020d7a0007c5f47f3a3d26b41961592c6e8 | [
"bzip2-1.0.6"
] | 4 | 2020-03-24T18:16:19.000Z | 2021-08-23T20:38:42.000Z | src/utils/utils.py | XXXBrainTireFire/-Intraday-Patterns-in-Trading-Volume-algorithm | 10f86020d7a0007c5f47f3a3d26b41961592c6e8 | [
"bzip2-1.0.6"
] | 1 | 2020-07-04T07:06:56.000Z | 2020-07-04T07:06:56.000Z |
def pop_row(df, limit):
_filter = df['hour']!=limit
df = df[_filter]
return df.reset_index(drop=True)
def get_by_hour(df, hour):
tmp = df['hour']==hour
return df[tmp]
| 19.8 | 37 | 0.590909 | 31 | 198 | 3.580645 | 0.483871 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252525 | 198 | 9 | 38 | 22 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
33063b82c3ac475caabd61d99ae27eaacfa296e1 | 19,454 | py | Python | tests/test_packages/test_connections/test_p2p_libp2p_client/test_communication.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | null | null | null | tests/test_packages/test_connections/test_p2p_libp2p_client/test_communication.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | null | null | null | tests/test_packages/test_connections/test_p2p_libp2p_client/test_communication.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 36.159851 | 110 | 0.639046 | 2,155 | 19,454 | 5.508585 | 0.109049 | 0.071603 | 0.060062 | 0.018196 | 0.782579 | 0.759498 | 0.735827 | 0.698762 | 0.660854 | 0.657063 | 0 | 0.017896 | 0.273311 | 19,454 | 537 | 111 | 36.227188 | 0.821815 | 0.084867 | 0 | 0.692875 | 0 | 0 | 0.004027 | 0 | 0 | 0 | 0 | 0 | 0.12285 | 1 | 0.046683 | false | 0.009828 | 0.029484 | 0 | 0.085995 | 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 |
33145b50c6f0f4884f44041e0541cc75bf61bb63 | 113 | py | Python | math and python workshop/2/2/2-2-5.py | DzmitrySakalenka/stepik_courses | 7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21 | [
"MIT"
] | null | null | null | math and python workshop/2/2/2-2-5.py | DzmitrySakalenka/stepik_courses | 7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21 | [
"MIT"
] | null | null | null | math and python workshop/2/2/2-2-5.py | DzmitrySakalenka/stepik_courses | 7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21 | [
"MIT"
] | null | null | null | import math
a = int(input())
ss = a**2*math.sqrt(3)/4
a *= 3
sb = a**2*math.sqrt(3)/4
print(round(sb + 2*ss)) | 11.3 | 24 | 0.566372 | 26 | 113 | 2.461538 | 0.5 | 0.0625 | 0.1875 | 0.3125 | 0.375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0.086022 | 0.176991 | 113 | 10 | 25 | 11.3 | 0.602151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
332b1a5abc446e6762b3d5036da89bfd760719c8 | 11,750 | py | Python | disa_app/lib/view_edit_citation_manager.py | birkin/disa_dj_2019v1_project | affab1987364c97c3403242aafa766087acd7465 | [
"MIT"
] | 1 | 2020-07-22T07:28:04.000Z | 2020-07-22T07:28:04.000Z | disa_app/lib/view_edit_citation_manager.py | birkin/disa_dj_2019v1_project | affab1987364c97c3403242aafa766087acd7465 | [
"MIT"
] | 85 | 2020-06-03T15:28:14.000Z | 2021-11-17T15:00:19.000Z | disa_app/lib/view_edit_citation_manager.py | birkin/disa_dj_project | affab1987364c97c3403242aafa766087acd7465 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime, json, logging, os, pprint
import django, sqlalchemy
from disa_app import settings_app
from disa_app import models_sqlalchemy as models_alch
from disa_app.lib import person_common
from django.conf import settings
from django.core.urlresolvers import reverse
from sqlalchemy impo... | 37.420382 | 161 | 0.555489 | 1,388 | 11,750 | 4.45389 | 0.137608 | 0.027176 | 0.026205 | 0.013103 | 0.72792 | 0.704626 | 0.700582 | 0.674863 | 0.662407 | 0.657554 | 0 | 0.001296 | 0.277532 | 11,750 | 313 | 162 | 37.539936 | 0.726941 | 0.348851 | 0 | 0.430851 | 0 | 0 | 0.232967 | 0.03809 | 0 | 0 | 0 | 0.003195 | 0.015957 | 1 | 0.037234 | false | 0 | 0.047872 | 0 | 0.12234 | 0.021277 | 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 |
332c227fdb7e502d6cb1b0f26b887959e7eca8ad | 1,936 | py | Python | utils/formulae.py | limjiaxiang/panpy-ml | add1ccd0197d188c00b86f34b09b42e3e977e302 | [
"MIT"
] | null | null | null | utils/formulae.py | limjiaxiang/panpy-ml | add1ccd0197d188c00b86f34b09b42e3e977e302 | [
"MIT"
] | null | null | null | utils/formulae.py | limjiaxiang/panpy-ml | add1ccd0197d188c00b86f34b09b42e3e977e302 | [
"MIT"
] | null | null | null | import numpy as np
# Pearson's correlation coefficient
# r = summation[(x - x_mean)(y - y_mean)] / sqrt[summation((x - x_mean)^2) * summation((y - y_mean)^2)]
# http://www.datasciencemadesimple.com/wp-content/uploads/2017/07/CORRELATION-COEFFICIENT-FORMULA.png
def pearson_correlation(feature_1, feature_2, generate_sd... | 40.333333 | 112 | 0.735537 | 303 | 1,936 | 4.386139 | 0.254125 | 0.084274 | 0.096313 | 0.089541 | 0.321294 | 0.254327 | 0.13845 | 0.051166 | 0 | 0 | 0 | 0.030618 | 0.156508 | 1,936 | 47 | 113 | 41.191489 | 0.783221 | 0.240702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.037037 | 0.185185 | 0.518519 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.