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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe30097e1d2b1382d5837becffe994abaa11af97 | 157 | py | Python | BootCRUDApp/forms.py | cs-fullstack-2019-spring/django-bootstrapcrud-cw-Litterial | 1ec5b7785c1e4687a4889360a07c90b0c2217a82 | [
"Apache-2.0"
] | null | null | null | BootCRUDApp/forms.py | cs-fullstack-2019-spring/django-bootstrapcrud-cw-Litterial | 1ec5b7785c1e4687a4889360a07c90b0c2217a82 | [
"Apache-2.0"
] | null | null | null | BootCRUDApp/forms.py | cs-fullstack-2019-spring/django-bootstrapcrud-cw-Litterial | 1ec5b7785c1e4687a4889360a07c90b0c2217a82 | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import GarageSell
class GarageForm(forms.ModelForm):
class Meta:
model=GarageSell
fields='__all__' | 22.428571 | 34 | 0.719745 | 18 | 157 | 6.055556 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216561 | 157 | 7 | 35 | 22.428571 | 0.886179 | 0 | 0 | 0 | 0 | 0 | 0.044304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fe5306c67d321321987705fd174a43d053950205 | 92 | py | Python | learn-web/techcoll/backend/WineStore/wine_item/apps.py | ornichola/learn-proramming | 67f2e4d8846300db766e716b7ddf66bd54209fca | [
"Unlicense"
] | 1 | 2021-06-28T10:55:00.000Z | 2021-06-28T10:55:00.000Z | learn-web/techcoll/backend/WineStore/wine_item/apps.py | ornichola/learn-proramming | 67f2e4d8846300db766e716b7ddf66bd54209fca | [
"Unlicense"
] | null | null | null | learn-web/techcoll/backend/WineStore/wine_item/apps.py | ornichola/learn-proramming | 67f2e4d8846300db766e716b7ddf66bd54209fca | [
"Unlicense"
] | null | null | null | from django.apps import AppConfig
class WineItemConfig(AppConfig):
name = 'wine_item'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fe7069fa07b14865d510f2b1d92e37656ea00e55 | 71 | py | Python | xdgconfig/serializers/_yaml.py | Dogeek/pyconf | 225be858d2259bbf4306f05c620cdfeaa3727cb9 | [
"MIT"
] | 1 | 2021-03-28T02:43:03.000Z | 2021-03-28T02:43:03.000Z | xdgconfig/serializers/_yaml.py | Dogeek/pyconf | 225be858d2259bbf4306f05c620cdfeaa3727cb9 | [
"MIT"
] | 20 | 2021-02-06T23:47:18.000Z | 2021-03-28T02:41:27.000Z | xdgconfig/serializers/_yaml.py | Dogeek/xdgconfig | 225be858d2259bbf4306f05c620cdfeaa3727cb9 | [
"MIT"
] | null | null | null | import yaml as yaml_
loads = yaml_.safe_load
dumps = yaml_.safe_dump
| 11.833333 | 23 | 0.774648 | 12 | 71 | 4.166667 | 0.666667 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 71 | 5 | 24 | 14.2 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
fe77274a420b708435cd3a1f3c20b8ac4167038e | 2,531 | py | Python | tests/python/pants_test/util/test_strutil.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/util/test_strutil.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/util/test_strutil.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
from builtins import bytes
from pants.util.strutil import camelcase, ens... | 41.491803 | 93 | 0.701699 | 296 | 2,531 | 5.85473 | 0.260135 | 0.267744 | 0.114253 | 0.160993 | 0.497403 | 0.497403 | 0.426428 | 0.426428 | 0.426428 | 0.426428 | 0 | 0.014027 | 0.126827 | 2,531 | 60 | 94 | 42.183333 | 0.770136 | 0.080601 | 0 | 0.044444 | 0 | 0 | 0.170543 | 0 | 0 | 0 | 0.010336 | 0.016667 | 0.688889 | 1 | 0.111111 | false | 0 | 0.088889 | 0 | 0.222222 | 0.022222 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fe8edaa9e9f80ea238a82c4fc397055b16de182d | 417 | py | Python | tests/test_pdfsyntax.py | desgeeko/pdfsyntax | 990cfa9e798173a93af91583c7c763ed7321d87a | [
"MIT"
] | 27 | 2021-07-17T22:14:26.000Z | 2021-12-10T19:41:48.000Z | tests/test_pdfsyntax.py | desgeeko/pdfsyntax | 990cfa9e798173a93af91583c7c763ed7321d87a | [
"MIT"
] | null | null | null | tests/test_pdfsyntax.py | desgeeko/pdfsyntax | 990cfa9e798173a93af91583c7c763ed7321d87a | [
"MIT"
] | 1 | 2021-07-20T03:22:40.000Z | 2021-07-20T03:22:40.000Z |
import unittest
import pdfsyntax.docstruct as pdf
class Tokenization(unittest.TestCase):
def test_value(self):
self.assertEqual(pdf.next_token(b'74252 ', 0), (0, 5,'VALUE'))
def test_name(self):
self.assertEqual(pdf.next_token(b'/aaa ', 0), (0, 4, 'NAME'))
class Unicode(unittest.Tes... | 24.529412 | 70 | 0.657074 | 58 | 417 | 4.62069 | 0.482759 | 0.078358 | 0.212687 | 0.246269 | 0.238806 | 0.238806 | 0.238806 | 0 | 0 | 0 | 0 | 0.044379 | 0.189448 | 417 | 16 | 71 | 26.0625 | 0.748521 | 0 | 0 | 0 | 0 | 0 | 0.069712 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.7 | 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 | 1 | 0 | 0 | 4 |
fe987f73ac0e6eb4687422615153bd30b1d25d9e | 16,029 | py | Python | tests/unit/test_processing.py | sboshin/sagemaker-python-sdk | 5ae8965c647d2550ad3760726ca57454ce50123e | [
"Apache-2.0"
] | null | null | null | tests/unit/test_processing.py | sboshin/sagemaker-python-sdk | 5ae8965c647d2550ad3760726ca57454ce50123e | [
"Apache-2.0"
] | null | null | null | tests/unit/test_processing.py | sboshin/sagemaker-python-sdk | 5ae8965c647d2550ad3760726ca57454ce50123e | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | 34.545259 | 109 | 0.526795 | 1,344 | 16,029 | 6.034226 | 0.172619 | 0.051295 | 0.014797 | 0.016646 | 0.731196 | 0.731196 | 0.728113 | 0.705919 | 0.679778 | 0.679778 | 0 | 0.025803 | 0.347183 | 16,029 | 463 | 110 | 34.61987 | 0.749235 | 0.033689 | 0 | 0.620853 | 0 | 0.009479 | 0.324115 | 0.1103 | 0 | 0 | 0 | 0 | 0.014218 | 1 | 0.016588 | false | 0 | 0.014218 | 0 | 0.033175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
fe991d8214ead90d6f9e7957d51d47579acb4a06 | 251 | py | Python | spaced_repetition/use_cases/helpers.py | MBlistein/spaced-repetition | c10281d43e928f8d1799076190f962f8e49a405b | [
"MIT"
] | null | null | null | spaced_repetition/use_cases/helpers.py | MBlistein/spaced-repetition | c10281d43e928f8d1799076190f962f8e49a405b | [
"MIT"
] | null | null | null | spaced_repetition/use_cases/helpers.py | MBlistein/spaced-repetition | c10281d43e928f8d1799076190f962f8e49a405b | [
"MIT"
] | null | null | null | """Time serialization"""
import datetime as dt
TS_FORMAT = '%Y-%m-%d %H:%M:%S'
def deserialize_ts(ts_str: str):
return dt.datetime.strptime(ts_str, TS_FORMAT)
def serialize_ts(ts: dt.datetime):
return dt.datetime.strftime(ts, TS_FORMAT)
| 17.928571 | 50 | 0.705179 | 41 | 251 | 4.146341 | 0.487805 | 0.141176 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143426 | 251 | 13 | 51 | 19.307692 | 0.790698 | 0.071713 | 0 | 0 | 0 | 0 | 0.07489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
fea0f88e701ae4c9deccdd001cd1b7f9813c390c | 94 | py | Python | maternal-dashboard-1/__init__.py | becca-mayers/maternal-health-dashboard | d471f672f7373c4e1ca1637bf1e1edb1cbc151f4 | [
"MIT"
] | null | null | null | maternal-dashboard-1/__init__.py | becca-mayers/maternal-health-dashboard | d471f672f7373c4e1ca1637bf1e1edb1cbc151f4 | [
"MIT"
] | null | null | null | maternal-dashboard-1/__init__.py | becca-mayers/maternal-health-dashboard | d471f672f7373c4e1ca1637bf1e1edb1cbc151f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 27 12:19:49 2019
@author: thisisbex
"""
| 13.428571 | 36 | 0.553191 | 14 | 94 | 3.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 0.244681 | 94 | 6 | 37 | 15.666667 | 0.549296 | 0.829787 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
feb89729f9b331ba7cd278372a7a3f30c55a2f37 | 63 | py | Python | aiochsa/sql.py | ods/aiochsa | 471f72b70e5e6b62968ef401e402c23d8c0f28b5 | [
"MIT"
] | 17 | 2019-08-20T08:40:57.000Z | 2022-01-02T04:00:28.000Z | aiochsa/sql.py | chinchy/aiochsa | 471f72b70e5e6b62968ef401e402c23d8c0f28b5 | [
"MIT"
] | 10 | 2020-08-04T16:02:21.000Z | 2022-01-02T11:40:00.000Z | aiochsa/sql.py | chinchy/aiochsa | 471f72b70e5e6b62968ef401e402c23d8c0f28b5 | [
"MIT"
] | 2 | 2021-04-18T15:37:07.000Z | 2021-12-13T11:42:00.000Z | from clickhouse_sqlalchemy.sql import Select
select = Select
| 12.6 | 44 | 0.825397 | 8 | 63 | 6.375 | 0.75 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 63 | 4 | 45 | 15.75 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
228eec461b505a590bfec4b7b50c5ce810c3614b | 215 | py | Python | venv/lib/python3.7/site-packages/allauth/socialaccount/providers/steam/urls.py | vikram0207/django-rest | eafec575999dce6859dc7b99177cff339b2bcbdd | [
"MIT"
] | 12 | 2019-08-02T07:58:16.000Z | 2022-01-31T23:45:08.000Z | venv/lib/python3.7/site-packages/allauth/socialaccount/providers/steam/urls.py | vikram0207/django-rest | eafec575999dce6859dc7b99177cff339b2bcbdd | [
"MIT"
] | 12 | 2019-12-04T23:48:45.000Z | 2022-03-11T23:53:30.000Z | venv/lib/python3.7/site-packages/allauth/socialaccount/providers/steam/urls.py | vikram0207/django-rest | eafec575999dce6859dc7b99177cff339b2bcbdd | [
"MIT"
] | 11 | 2019-07-31T16:23:36.000Z | 2022-01-29T08:30:07.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url("^steam/login/$", views.steam_login, name="steam_login"),
url("^steam/callback/$", views.steam_callback, name="steam_callback"),
]
| 21.5 | 74 | 0.697674 | 28 | 215 | 5.214286 | 0.428571 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134884 | 215 | 9 | 75 | 23.888889 | 0.784946 | 0 | 0 | 0 | 0 | 0 | 0.260465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
a3c08be61fb750ca0dbb0723d8732578bab4842b | 36,297 | py | Python | tests/unit/core/test_wagtail_hooks.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 10 | 2020-04-30T12:04:35.000Z | 2021-07-21T12:48:55.000Z | tests/unit/core/test_wagtail_hooks.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 1,461 | 2020-01-23T18:20:26.000Z | 2022-03-31T08:05:56.000Z | tests/unit/core/test_wagtail_hooks.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 3 | 2020-04-07T20:11:36.000Z | 2020-10-16T16:22:59.000Z | import json
from datetime import timedelta
from unittest import mock
import pytest
from boto3.exceptions import RetriesExceededError, S3UploadFailedError
from django.contrib.auth.models import AnonymousUser
from django.contrib.sessions.middleware import SessionMiddleware
from django.db.models import FileField
from dja... | 36.044687 | 110 | 0.71758 | 4,698 | 36,297 | 5.239038 | 0.101958 | 0.030472 | 0.016252 | 0.014789 | 0.796896 | 0.765002 | 0.741437 | 0.722748 | 0.699996 | 0.685248 | 0 | 0.020055 | 0.182605 | 36,297 | 1,006 | 111 | 36.080517 | 0.809532 | 0.135741 | 0 | 0.625179 | 0 | 0.031474 | 0.183038 | 0.077636 | 0 | 0 | 0 | 0 | 0.120172 | 1 | 0.042918 | false | 0.001431 | 0.061516 | 0.001431 | 0.105866 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
a3ef281949903194f343bbc5ef6451bc098855b5 | 190 | py | Python | flask_jwt_consumer/__init__.py | kojiromike/flask-jwt-consumer | ab7c8dcd02d67997a9e4e79355e35a6edf705800 | [
"MIT"
] | 1 | 2018-07-31T14:39:08.000Z | 2018-07-31T14:39:08.000Z | flask_jwt_consumer/__init__.py | kojiromike/flask-jwt-consumer | ab7c8dcd02d67997a9e4e79355e35a6edf705800 | [
"MIT"
] | 8 | 2018-08-30T21:54:32.000Z | 2020-12-23T15:11:38.000Z | flask_jwt_consumer/__init__.py | kojiromike/flask-jwt-consumer | ab7c8dcd02d67997a9e4e79355e35a6edf705800 | [
"MIT"
] | 3 | 2018-11-13T19:35:43.000Z | 2020-04-09T17:19:33.000Z | name = "flask_jwt_consumer"
from .flask_jwt_consumer import JWTConsumer
from .helpers import get_jwt_payload, get_jwt_raw
from .decorators import requires_jwt
from .errors import AuthError
| 27.142857 | 49 | 0.847368 | 28 | 190 | 5.428571 | 0.535714 | 0.105263 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110526 | 190 | 6 | 50 | 31.666667 | 0.899408 | 0 | 0 | 0 | 0 | 0 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
4306d76e81db038367abed5a9267bfb987af5ece | 24,348 | py | Python | src/kusto/azext_kusto/tests/latest/example_steps.py | wwendyc/azure-cli-extensions | 6b4099676bb5d43fdb57bc69f9c0281cca510a0a | [
"MIT"
] | 1 | 2021-12-17T01:27:06.000Z | 2021-12-17T01:27:06.000Z | src/kusto/azext_kusto/tests/latest/example_steps.py | wwendyc/azure-cli-extensions | 6b4099676bb5d43fdb57bc69f9c0281cca510a0a | [
"MIT"
] | 5 | 2022-03-08T17:46:24.000Z | 2022-03-23T18:27:45.000Z | src/kusto/azext_kusto/tests/latest/example_steps.py | wwendyc/azure-cli-extensions | 6b4099676bb5d43fdb57bc69f9c0281cca510a0a | [
"MIT"
] | 5 | 2020-09-08T22:46:48.000Z | 2020-11-08T14:54:35.000Z | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | 36.779456 | 120 | 0.610112 | 2,409 | 24,348 | 6.07721 | 0.125363 | 0.049727 | 0.045287 | 0.052254 | 0.798907 | 0.750342 | 0.717008 | 0.664208 | 0.626981 | 0.606762 | 0 | 0.019112 | 0.245729 | 24,348 | 661 | 121 | 36.835098 | 0.778056 | 0.135494 | 0 | 0.758893 | 0 | 0.041502 | 0.465152 | 0.172264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094862 | false | 0 | 0.001976 | 0 | 0.096838 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
43132abdfb917f0de01729cb005aaa47244892f8 | 2,198 | py | Python | skg/pow.py | bluenote10/scikit-guess | 16fe387adcc6ac34f4aa47c28bce52f595ac4279 | [
"BSD-2-Clause"
] | null | null | null | skg/pow.py | bluenote10/scikit-guess | 16fe387adcc6ac34f4aa47c28bce52f595ac4279 | [
"BSD-2-Clause"
] | null | null | null | skg/pow.py | bluenote10/scikit-guess | 16fe387adcc6ac34f4aa47c28bce52f595ac4279 | [
"BSD-2-Clause"
] | null | null | null | """
Power fit with additive bias.
.. todo::
Add proper handling of colinear inputs (and other singular matrix cases).
.. todo::
Add tests.
.. todo::
Add nan_policy argument.
"""
from future import division, absolute_import
from numpy import log, power
from .exp import exp_fit
__all__ = ['pow_fit']
... | 21.54902 | 93 | 0.595996 | 314 | 2,198 | 4.136943 | 0.398089 | 0.023095 | 0.024634 | 0.012317 | 0.204773 | 0.150885 | 0.124711 | 0.124711 | 0.124711 | 0.124711 | 0 | 0.009061 | 0.297088 | 2,198 | 101 | 94 | 21.762376 | 0.831068 | 0.77252 | 0 | 0 | 0 | 0 | 0.026415 | 0 | 0 | 0 | 0 | 0.029703 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4a4d0d7410f5a033ee19b01330fb9d94da00963f | 145 | py | Python | tests/package/__init__.py | purmirl/ProbeArrow | 7c2c7d0765130d61ccd0c998d0b305b660708d56 | [
"BSD-3-Clause"
] | 5 | 2021-04-15T03:14:27.000Z | 2021-11-11T06:38:49.000Z | tests/package/__init__.py | purmirl/TRACE-ROUTE | 0a259a601d7b10c03bc4cb820ac2ce23dd6d9e37 | [
"BSD-3-Clause"
] | 5 | 2021-01-16T12:52:15.000Z | 2021-06-29T14:43:54.000Z | tests/package/__init__.py | purmirl/TRACE-ROUTE | 0a259a601d7b10c03bc4cb820ac2ce23dd6d9e37 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright 2020~ PeTrA. All rights reserved.
. Python Project Structure Repository;
"""
# PythonProjectStructure/tests/package/__init__.py;
| 24.166667 | 51 | 0.765517 | 15 | 145 | 7.133333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.117241 | 145 | 5 | 52 | 29 | 0.804688 | 0.917241 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a6696ec4c6465c5bb5ce278f1fe1750f3c4fb76 | 326 | py | Python | setup.py | dilayercelik/gauss-bino-distributions-ercelik | d11eb3ef638e020fdf84188ea1a6f0222401c5b5 | [
"MIT"
] | null | null | null | setup.py | dilayercelik/gauss-bino-distributions-ercelik | d11eb3ef638e020fdf84188ea1a6f0222401c5b5 | [
"MIT"
] | null | null | null | setup.py | dilayercelik/gauss-bino-distributions-ercelik | d11eb3ef638e020fdf84188ea1a6f0222401c5b5 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name = 'gauss_bino_distributions_ercelik',
version = '0.1',
description = 'Gaussian and Binomial distributions',
packages = ['gauss_bino_distributions_ercelik'],
author = 'Dilay Fidan Ercelik',
author_email = 'dilay.ercelik@gmail.com',
zip_safe = F... | 32.6 | 58 | 0.693252 | 36 | 326 | 6.055556 | 0.722222 | 0.082569 | 0.201835 | 0.266055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.205521 | 326 | 9 | 59 | 36.222222 | 0.833977 | 0 | 0 | 0 | 0 | 0 | 0.441718 | 0.266871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a6f893f263e04064a03a1c589cfb6b634d96a7b | 756 | py | Python | tests/test_file_manager.py | nleguillarme/inteGraph | 65faae4b7c16977094c387f6359980a4e99f94cb | [
"Apache-2.0"
] | null | null | null | tests/test_file_manager.py | nleguillarme/inteGraph | 65faae4b7c16977094c387f6359980a4e99f94cb | [
"Apache-2.0"
] | null | null | null | tests/test_file_manager.py | nleguillarme/inteGraph | 65faae4b7c16977094c387f6359980a4e99f94cb | [
"Apache-2.0"
] | null | null | null | import pytest
# from bkgb.utils.file_manager import *
# def test_decompress_gz():
# f_in = "test_data/dummy.gz"
# assert decompress_gz(f_in) != None
#
#
# def test_decompress_tar():
# f_in = "test_data/dummy.tar"
# assert decompress_tar(f_in) != None
#
#
# def test_decompress_file():
# f_in = "te... | 24.387097 | 77 | 0.665344 | 112 | 756 | 4.142857 | 0.258929 | 0.077586 | 0.090517 | 0.142241 | 0.674569 | 0.590517 | 0.37931 | 0.37931 | 0.185345 | 0.185345 | 0 | 0.003284 | 0.194444 | 756 | 30 | 78 | 25.2 | 0.758621 | 0.90873 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4a8926526c2081a3e44adbbfbce1c64a42a24d9e | 217 | py | Python | src/custom_flask/custom_filter.py | kitoku-magic/python_library | a02df73bd60189c7ff679a5199854af7380cd720 | [
"MIT"
] | null | null | null | src/custom_flask/custom_filter.py | kitoku-magic/python_library | a02df73bd60189c7ff679a5199854af7380cd720 | [
"MIT"
] | null | null | null | src/custom_flask/custom_filter.py | kitoku-magic/python_library | a02df73bd60189c7ff679a5199854af7380cd720 | [
"MIT"
] | null | null | null | from python_library.src import markupsafe
# テンプレートファイルから呼び出すfilter関数群
def nl2br(value):
"""
改行コードを、HTMLの改行に変換する
"""
value = value.__str__().replace('\n', '<br />')
return markupsafe.Markup(value)
| 21.7 | 51 | 0.677419 | 22 | 217 | 6.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.179724 | 217 | 9 | 52 | 24.111111 | 0.792135 | 0.211982 | 0 | 0 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4a8d08f15358d384cdbdcc7cfaaf1fe59560ed6d | 5,178 | py | Python | tests/model/test_policy.py | captt-g/pycasbin | f0775b4921420fec29da7bd242cb74f0b4971e32 | [
"Apache-2.0"
] | null | null | null | tests/model/test_policy.py | captt-g/pycasbin | f0775b4921420fec29da7bd242cb74f0b4971e32 | [
"Apache-2.0"
] | null | null | null | tests/model/test_policy.py | captt-g/pycasbin | f0775b4921420fec29da7bd242cb74f0b4971e32 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from casbin.model import Model
from tests.test_enforcer import get_examples
class TestPolicy(TestCase):
def test_get_policy(self):
m = Model()
m.load_model(get_examples("basic_model.conf"))
rule = ['admin', 'domain1', 'data1', 'read']
m.add_policy('... | 33.843137 | 71 | 0.549633 | 688 | 5,178 | 3.90843 | 0.082849 | 0.03347 | 0.107103 | 0.077724 | 0.802529 | 0.746374 | 0.729639 | 0.692079 | 0.618446 | 0.618446 | 0 | 0.015625 | 0.258401 | 5,178 | 152 | 72 | 34.065789 | 0.684635 | 0 | 0 | 0.570093 | 0 | 0 | 0.152182 | 0.016222 | 0 | 0 | 0 | 0 | 0.242991 | 1 | 0.074766 | false | 0 | 0.028037 | 0 | 0.11215 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
4a90e1faecd5e8cce8ff42696cc3267eb34046ed | 5,459 | py | Python | test/ofx_validators.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 50 | 2015-01-01T00:14:04.000Z | 2020-11-26T04:44:30.000Z | test/ofx_validators.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 3 | 2016-01-31T17:14:41.000Z | 2017-03-01T13:36:17.000Z | test/ofx_validators.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 15 | 2015-10-29T09:04:21.000Z | 2022-01-19T17:33:25.000Z | # Copyright 2005-2010 Wesabe, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 44.745902 | 81 | 0.574831 | 518 | 5,459 | 5.932432 | 0.264479 | 0.209893 | 0.210869 | 0.363163 | 0.64725 | 0.629678 | 0.543768 | 0.131468 | 0.080703 | 0 | 0 | 0.09805 | 0.305001 | 5,459 | 121 | 82 | 45.115702 | 0.711914 | 0.102033 | 0 | 0.336735 | 0 | 0 | 0.14464 | 0 | 0 | 0 | 0 | 0 | 0.438776 | 1 | 0.061224 | false | 0 | 0.030612 | 0 | 0.102041 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a9de91ebc2f5c5c49ecb34c4d4ed44e831e98c3 | 127 | py | Python | codes_auto/1586.longest-subarray-of-1s-after-deleting-one-element.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/1586.longest-subarray-of-1s-after-deleting-one-element.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/1586.longest-subarray-of-1s-after-deleting-one-element.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=1586 lang=python3
#
# [1586] longest-subarray-of-1s-after-deleting-one-element
#
None
# @lc code=end | 18.142857 | 58 | 0.716535 | 21 | 127 | 4.333333 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088496 | 0.110236 | 127 | 7 | 59 | 18.142857 | 0.716814 | 0.866142 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4aa6229f74767879d85251735c51d8ab079625eb | 1,114 | py | Python | setup.py | sk1p/django-codemirror2 | 07a3236e3e2b730cf47a1c08e58017b7f2528a46 | [
"MIT"
] | 22 | 2015-03-19T16:37:15.000Z | 2021-02-24T08:42:07.000Z | setup.py | sk1p/django-codemirror2 | 07a3236e3e2b730cf47a1c08e58017b7f2528a46 | [
"MIT"
] | 6 | 2015-07-07T09:59:05.000Z | 2020-11-23T10:36:53.000Z | setup.py | sk1p/django-codemirror2 | 07a3236e3e2b730cf47a1c08e58017b7f2528a46 | [
"MIT"
] | 4 | 2015-05-26T09:26:56.000Z | 2017-03-01T10:43:22.000Z | from setuptools import setup
setup(
name="django-codemirror2",
version="0.2.1.dev1",
author_email="alex@gc-web.de",
author="Alexander Clausen",
url="https://github.com/sk1p/django-codemirror2",
description="Django widgets for replacing textareas with CodeMirror2,"
" an in-browse... | 32.764706 | 74 | 0.585278 | 108 | 1,114 | 6.009259 | 0.62963 | 0.204931 | 0.231125 | 0.120185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028395 | 0.27289 | 1,114 | 33 | 75 | 33.757576 | 0.77284 | 0 | 0 | 0.0625 | 0 | 0 | 0.60772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4ab5c78709fe3304f074ebf6931f294a04838e51 | 93 | py | Python | doc2mysql/apps.py | tututou/reportonlie_os | 527a0325ef8b5a555566a1ca55414f88e9831884 | [
"Apache-2.0"
] | null | null | null | doc2mysql/apps.py | tututou/reportonlie_os | 527a0325ef8b5a555566a1ca55414f88e9831884 | [
"Apache-2.0"
] | null | null | null | doc2mysql/apps.py | tututou/reportonlie_os | 527a0325ef8b5a555566a1ca55414f88e9831884 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class Doc2MysqlConfig(AppConfig):
name = 'doc2mysql'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4358becf1740d8473654cc9222529da6126c1d03 | 221 | py | Python | contact/admin.py | EvaZogg/DjangoTranslationWebsite | 3946c052547deed216332cb316f48fc70c09ff22 | [
"BSD-2-Clause"
] | null | null | null | contact/admin.py | EvaZogg/DjangoTranslationWebsite | 3946c052547deed216332cb316f48fc70c09ff22 | [
"BSD-2-Clause"
] | null | null | null | contact/admin.py | EvaZogg/DjangoTranslationWebsite | 3946c052547deed216332cb316f48fc70c09ff22 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from contact.models import Contact
# Register your models here.
# Registers model "Contact" in order to make it visible on admin page <hostname:8000>/admin/.
admin.site.register(Contact) | 31.571429 | 93 | 0.791855 | 33 | 221 | 5.30303 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.131222 | 221 | 7 | 94 | 31.571429 | 0.890625 | 0.533937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
435aef1e2360b5219178c4652227ee7ca9e94133 | 334 | py | Python | project/views.py | lowell-dev-club/live-flask-workshop | a57a3db79fd772a6676ad3bce1ff45e1a5c1c06d | [
"MIT"
] | null | null | null | project/views.py | lowell-dev-club/live-flask-workshop | a57a3db79fd772a6676ad3bce1ff45e1a5c1c06d | [
"MIT"
] | null | null | null | project/views.py | lowell-dev-club/live-flask-workshop | a57a3db79fd772a6676ad3bce1ff45e1a5c1c06d | [
"MIT"
] | null | null | null | # Import Flask app object from project folder (For python this means from the __init__.py file)
from project import app
# Import functions from flask package
from flask import render_template
# Create new route at '/'
@app.route('/')
def home():
# return the rendered version of file.html
return render_templat... | 30.363636 | 95 | 0.751497 | 50 | 334 | 4.9 | 0.6 | 0.089796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170659 | 334 | 11 | 96 | 30.363636 | 0.884477 | 0.580838 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
436f3a14775b38a4e0058c1fdb39a3c69361719c | 71 | py | Python | UdpFlood.py | ep4sh/pyddos | 95e86dbc3249f4ce9bb36c71663f0851d4db82cf | [
"MIT"
] | 15 | 2018-02-18T04:13:23.000Z | 2022-03-10T18:24:36.000Z | UdpFlood.py | ep4sh/pyddos | 95e86dbc3249f4ce9bb36c71663f0851d4db82cf | [
"MIT"
] | null | null | null | UdpFlood.py | ep4sh/pyddos | 95e86dbc3249f4ce9bb36c71663f0851d4db82cf | [
"MIT"
] | 7 | 2019-09-04T02:38:17.000Z | 2022-02-10T07:00:26.000Z | from scapy.all import *
send(IP(dst="10.50.0.1")/fuzz(UDP()),loop=1)
| 14.2 | 44 | 0.633803 | 15 | 71 | 3 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0.098592 | 71 | 4 | 45 | 17.75 | 0.59375 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4386a3475bdcaa09be9ee0a00c8c410d6943d8d7 | 480 | py | Python | contrack/__init__.py | kinow/ConTrack | 04d36581270e59094c11bc3938b79d8c72b8824e | [
"MIT"
] | 41 | 2020-06-23T17:18:22.000Z | 2022-01-23T11:02:43.000Z | contrack/__init__.py | kinow/ConTrack | 04d36581270e59094c11bc3938b79d8c72b8824e | [
"MIT"
] | 2 | 2020-11-01T14:01:10.000Z | 2020-11-04T09:45:21.000Z | contrack/__init__.py | kinow/ConTrack | 04d36581270e59094c11bc3938b79d8c72b8824e | [
"MIT"
] | 11 | 2020-06-23T16:05:57.000Z | 2021-01-28T07:22:40.000Z | """
Description
-----------
The contrack package provides classes and function to read, write, plot and
analyze circulation anomalies in weather and climate data.
Content
-------
The following classes are available:
contrack: To create a contrack object with functions to detect and track circulation anom... | 17.777778 | 100 | 0.70625 | 57 | 480 | 5.912281 | 0.701754 | 0.118694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010076 | 0.172917 | 480 | 26 | 101 | 18.461538 | 0.838791 | 0.908333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
438ee556f1bd5d0b76d8988c83c0173d7de3c0cc | 801 | py | Python | submission/ShreshthTuli_2016CS10680_SamarthAggarwal_2016CS10395_LA2/code/timer.py | shreshthtuli/Go-Back-N | f1f53fee703bda0ea51e62c0fe3b2fdf16161190 | [
"Apache-2.0"
] | null | null | null | submission/ShreshthTuli_2016CS10680_SamarthAggarwal_2016CS10395_LA2/code/timer.py | shreshthtuli/Go-Back-N | f1f53fee703bda0ea51e62c0fe3b2fdf16161190 | [
"Apache-2.0"
] | null | null | null | submission/ShreshthTuli_2016CS10680_SamarthAggarwal_2016CS10395_LA2/code/timer.py | shreshthtuli/Go-Back-N | f1f53fee703bda0ea51e62c0fe3b2fdf16161190 | [
"Apache-2.0"
] | null | null | null | # timer.py - A timer class
import time
class Timer(object):
TIMER_STOP = -1
def __init__(self, duration):
self._start_time = self.TIMER_STOP
self._duration = duration
# Starts the timer
def start(self):
if self._start_time == self.TIMER_STOP:
self._start_time = tim... | 25.03125 | 67 | 0.619226 | 103 | 801 | 4.563107 | 0.291262 | 0.134043 | 0.193617 | 0.217021 | 0.444681 | 0.444681 | 0.444681 | 0.380851 | 0.380851 | 0.380851 | 0 | 0.001773 | 0.29588 | 801 | 31 | 68 | 25.83871 | 0.83156 | 0.171036 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.052632 | 0.578947 | 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 | 1 | 0 | 0 | 4 |
78e4aa0b9ca6977d1dfaaf04a8cbaf7dce390645 | 87 | py | Python | backend/server/apps/ml/income_classifier/__init__.py | goowei/ML_service | 4cc761fdb7c8384939aea2b94a4ecbf8e7ffb260 | [
"MIT"
] | null | null | null | backend/server/apps/ml/income_classifier/__init__.py | goowei/ML_service | 4cc761fdb7c8384939aea2b94a4ecbf8e7ffb260 | [
"MIT"
] | null | null | null | backend/server/apps/ml/income_classifier/__init__.py | goowei/ML_service | 4cc761fdb7c8384939aea2b94a4ecbf8e7ffb260 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 23 11:04:19 2020
@author: William
"""
| 10.875 | 35 | 0.574713 | 14 | 87 | 3.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 0.206897 | 87 | 7 | 36 | 12.428571 | 0.536232 | 0.873563 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
78fe44e3574b1e3689fa0cbf32e95873e97dcd84 | 116 | py | Python | lender_app/admin.py | danhuyle508/django_lender | 741cf687948b2f292c8fe78cc343be868de34fa5 | [
"MIT"
] | null | null | null | lender_app/admin.py | danhuyle508/django_lender | 741cf687948b2f292c8fe78cc343be868de34fa5 | [
"MIT"
] | null | null | null | lender_app/admin.py | danhuyle508/django_lender | 741cf687948b2f292c8fe78cc343be868de34fa5 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Book
# Register your models here.
admin.site.register((Book, )) | 29 | 32 | 0.784483 | 17 | 116 | 5.352941 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 116 | 4 | 33 | 29 | 0.892157 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
78fed2d009c970de2dcbd9e1b7bc525a8988cf2f | 701 | py | Python | tests/integration/services/ticketing/conftest.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | null | null | null | tests/integration/services/ticketing/conftest.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | null | null | null | tests/integration/services/ticketing/conftest.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | null | null | null | """
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
import pytest
@pytest.fixture(scope='package')
def category(make_ticket_category, party):
return make_ticket_category(party.id, 'Premium')
@pytest.fixture(scope='package')
def another_category(make_ticket_... | 21.90625 | 54 | 0.761769 | 89 | 701 | 5.797753 | 0.393258 | 0.093023 | 0.174419 | 0.242248 | 0.662791 | 0.372093 | 0.24031 | 0.24031 | 0.24031 | 0.24031 | 0 | 0.0128 | 0.108417 | 701 | 31 | 55 | 22.612903 | 0.8128 | 0.138374 | 0 | 0.3125 | 0 | 0 | 0.145973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.3125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
600a69191d24b3f3ce88dc9990c47a150348185c | 12,515 | py | Python | lookerapi/models/__init__.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | lookerapi/models/__init__.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | lookerapi/models/__init__.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Looker API 3.1 Reference
### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token.... | 69.916201 | 4,190 | 0.857851 | 1,642 | 12,515 | 6.35201 | 0.329476 | 0.016299 | 0.024449 | 0.03164 | 0.031927 | 0.012081 | 0 | 0 | 0 | 0 | 0 | 0.003942 | 0.10811 | 12,515 | 178 | 4,191 | 70.308989 | 0.930478 | 0.349181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.006135 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6022fde4b37a81b75c4803b33e1b6a0251c82491 | 123 | py | Python | module2/__init__.py | LawAlias/gisflask | 4fb2ae3bb4b7717b86a6fa816db2fc338ebd574e | [
"Apache-2.0"
] | 17 | 2019-03-22T01:01:10.000Z | 2022-03-03T09:56:51.000Z | module2/__init__.py | LawAlias/gisflask | 4fb2ae3bb4b7717b86a6fa816db2fc338ebd574e | [
"Apache-2.0"
] | null | null | null | module2/__init__.py | LawAlias/gisflask | 4fb2ae3bb4b7717b86a6fa816db2fc338ebd574e | [
"Apache-2.0"
] | 12 | 2019-03-22T13:30:23.000Z | 2020-05-15T05:36:17.000Z | #coding:utf-8
from flask import Flask
from main import app
app.config.from_pyfile('settings.py')
from module2 import views
| 20.5 | 37 | 0.804878 | 21 | 123 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.113821 | 123 | 5 | 38 | 24.6 | 0.880734 | 0.097561 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
603a2c6804547adbb8906c813d987d903da39c9c | 160 | py | Python | server/app.py | timmypotts/twitter | b9e28631cfd0cad867c9612ad597df0910a9fbff | [
"MIT"
] | null | null | null | server/app.py | timmypotts/twitter | b9e28631cfd0cad867c9612ad597df0910a9fbff | [
"MIT"
] | null | null | null | server/app.py | timmypotts/twitter | b9e28631cfd0cad867c9612ad597df0910a9fbff | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify, make_response
import os
import sys
from dotenv import load_dotenv
app = Flask(__name__)
cors = CORS(app, resources=) | 22.857143 | 56 | 0.79375 | 24 | 160 | 5.041667 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1375 | 160 | 7 | 57 | 22.857143 | 0.876812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.666667 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
604e76ede01ec446c97ad0e90967e2050b4174da | 212 | py | Python | winthingies/runtime.py | forensicmatt/PyWindowsThingies | 000ff216c15ef9cd92924a692fce907ec829bc9d | [
"Apache-2.0"
] | 26 | 2019-01-22T07:05:58.000Z | 2021-11-29T03:37:22.000Z | winthingies/runtime.py | vsajip/PyWindowsThingies | 000ff216c15ef9cd92924a692fce907ec829bc9d | [
"Apache-2.0"
] | 1 | 2019-03-17T22:56:31.000Z | 2019-03-20T02:47:00.000Z | winthingies/runtime.py | vsajip/PyWindowsThingies | 000ff216c15ef9cd92924a692fce907ec829bc9d | [
"Apache-2.0"
] | 2 | 2020-03-16T14:30:49.000Z | 2020-03-29T01:50:43.000Z | import os
from winthingies.process import Process
from winthingies.win32.kernel32 import kernel32
current_process = kernel32.GetCurrentProcess()
CURRENT_PROCESS = Process(
os.getpid(),
current_process
)
| 21.2 | 47 | 0.801887 | 24 | 212 | 6.958333 | 0.416667 | 0.251497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.132075 | 212 | 9 | 48 | 23.555556 | 0.86413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
60a765e542e95ca6f3c4a457c66724b5c386d476 | 486 | py | Python | slothql/utils/attr.py | karol-gruszczyk/sloth-gql | 7972adb761b60f14409c2f734473c0a04b8db63c | [
"MIT"
] | 2 | 2018-01-07T08:51:27.000Z | 2018-01-23T16:25:56.000Z | slothql/utils/attr.py | karol-gruszczyk/sloth-gql | 7972adb761b60f14409c2f734473c0a04b8db63c | [
"MIT"
] | 3 | 2018-01-28T03:41:33.000Z | 2018-01-28T03:55:00.000Z | slothql/utils/attr.py | karol-gruszczyk/slothql | 7972adb761b60f14409c2f734473c0a04b8db63c | [
"MIT"
] | null | null | null | import inspect
def is_magic_name(name: str) -> bool:
return name.startswith('__') and name.endswith('__')
def get_attrs(obj) -> dict:
return {name: getattr(obj, name) for name in dir(obj) if not is_magic_name(name)}
def get_attr_fields(obj) -> dict:
return {
name: getattr(obj, name) for name i... | 25.578947 | 85 | 0.652263 | 72 | 486 | 4.222222 | 0.361111 | 0.131579 | 0.184211 | 0.148026 | 0.434211 | 0.434211 | 0.434211 | 0.434211 | 0.434211 | 0.434211 | 0 | 0 | 0.228395 | 486 | 18 | 86 | 27 | 0.810667 | 0 | 0 | 0 | 0 | 0 | 0.00823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.25 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
715dd58ac511596c9a3d1af700b7871b543c875a | 245 | py | Python | PythonExercicios/ex019 - sorteo de item da lista.py | laaisfmaia/Exercicios-do-Curso-de-Python | bdaaf682db9f058d51d4dd084dab0e095f7e74c3 | [
"MIT"
] | null | null | null | PythonExercicios/ex019 - sorteo de item da lista.py | laaisfmaia/Exercicios-do-Curso-de-Python | bdaaf682db9f058d51d4dd084dab0e095f7e74c3 | [
"MIT"
] | null | null | null | PythonExercicios/ex019 - sorteo de item da lista.py | laaisfmaia/Exercicios-do-Curso-de-Python | bdaaf682db9f058d51d4dd084dab0e095f7e74c3 | [
"MIT"
] | null | null | null | import random
a1 = input('Nome do aluno 1: ')
a2 = input('Nome do aluno 2: ')
a3 = input('Nome do aluno 3: ')
a4 = input('Nome do aluno 4: ')
alunos = [a1,a2,a4,a3]
print('O aluno escolhido aleatoriamente foi {}'.format(random.choice(alunos)))
| 27.222222 | 78 | 0.665306 | 41 | 245 | 3.97561 | 0.536585 | 0.220859 | 0.269939 | 0.392638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058537 | 0.163265 | 245 | 8 | 79 | 30.625 | 0.736585 | 0 | 0 | 0 | 0 | 0 | 0.436735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
716897e98f2afc3cf45caa6e32cef4c098540792 | 75 | py | Python | python/index.py | davidcsally/polyglot-hello-world | 3940dfc27f3c5eb538e07220feee0b157a5cc998 | [
"MIT"
] | null | null | null | python/index.py | davidcsally/polyglot-hello-world | 3940dfc27f3c5eb538e07220feee0b157a5cc998 | [
"MIT"
] | null | null | null | python/index.py | davidcsally/polyglot-hello-world | 3940dfc27f3c5eb538e07220feee0b157a5cc998 | [
"MIT"
] | null | null | null | def say_hello(name="world"):
print("hello " + name + "!")
say_hello()
| 15 | 32 | 0.586667 | 10 | 75 | 4.2 | 0.6 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186667 | 75 | 4 | 33 | 18.75 | 0.688525 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
716be4f50e048983739386886dec8c4f4fd44890 | 172 | py | Python | start.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | start.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | start.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""Startprogramma voor probreg gui versie
"""
import sys
from probreg.main import main
if len(sys.argv) > 1:
main(sys.argv[1])
else:
main()
| 17.2 | 41 | 0.680233 | 27 | 172 | 4.333333 | 0.666667 | 0.119658 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021127 | 0.174419 | 172 | 9 | 42 | 19.111111 | 0.802817 | 0.354651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7194ea956252f214b9b7387cefdd32e16e25f906 | 1,590 | py | Python | bcftbx/test/cli/test_annotate_probesets.py | fls-bioinformatics-core/genomics | 1cd012faf69fff284f8f68ede050ffe30ac3327d | [
"AFL-3.0"
] | 49 | 2015-01-03T17:09:10.000Z | 2022-03-17T19:28:08.000Z | bcftbx/test/cli/test_annotate_probesets.py | fls-bioinformatics-core/genomics | 1cd012faf69fff284f8f68ede050ffe30ac3327d | [
"AFL-3.0"
] | 59 | 2015-04-16T14:21:04.000Z | 2022-03-15T11:56:33.000Z | bcftbx/test/cli/test_annotate_probesets.py | fls-bioinformatics-core/genomics | 1cd012faf69fff284f8f68ede050ffe30ac3327d | [
"AFL-3.0"
] | 29 | 2015-01-29T08:50:44.000Z | 2021-08-19T02:15:44.000Z | #######################################################################
# Tests
#######################################################################
import unittest
from bcftbx.cli.annotate_probesets import get_probeset_extension
class TestProbesetAnnotation(unittest.TestCase):
def test_get_basic_probeset_ext... | 46.764706 | 71 | 0.665409 | 182 | 1,590 | 5.346154 | 0.258242 | 0.29702 | 0.308325 | 0.347379 | 0.560123 | 0.524152 | 0.397739 | 0 | 0 | 0 | 0 | 0.057269 | 0.143396 | 1,590 | 33 | 72 | 48.181818 | 0.657122 | 0.130818 | 0 | 0 | 0 | 0 | 0.151144 | 0 | 0 | 0 | 0 | 0 | 0.684211 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.315789 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
719b05018ec53f21f5b2fc74db39c9aad85a1eee | 3,322 | py | Python | lib/sqlalchemy/types.py | Dreamsorcerer/sqlalchemy | 153671df9d4cd7f2cdb3e14e6221f529269885d9 | [
"MIT"
] | 6 | 2019-02-18T12:42:44.000Z | 2020-11-11T23:10:17.000Z | lib/sqlalchemy/types.py | Dreamsorcerer/sqlalchemy | 153671df9d4cd7f2cdb3e14e6221f529269885d9 | [
"MIT"
] | 1 | 2020-07-20T13:23:44.000Z | 2020-07-20T13:23:44.000Z | lib/sqlalchemy/types.py | Dreamsorcerer/sqlalchemy | 153671df9d4cd7f2cdb3e14e6221f529269885d9 | [
"MIT"
] | 2 | 2021-06-12T01:38:00.000Z | 2021-09-05T21:18:29.000Z | # types.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Compatibility namespace for sqlalchemy.sql.types.
"""
__all__ = [
"TypeEngine",
... | 28.637931 | 69 | 0.69988 | 426 | 3,322 | 5.42723 | 0.199531 | 0.166522 | 0.25692 | 0.445069 | 0.642301 | 0.413495 | 0.351211 | 0.351211 | 0.351211 | 0.351211 | 0 | 0.003005 | 0.198676 | 3,322 | 115 | 70 | 28.886957 | 0.865515 | 0.162854 | 0 | 0 | 0 | 0 | 0.119056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.533981 | 0 | 0.533981 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
71a90e4a7f809e73157b7c36c4db9ed5cec153ed | 201 | py | Python | libs/applibs/templates/tab/tab_one.py | leoobrabo/KivyMD-Project-Creator | 13b4dd7dd9d88164af052ad91009bfd38660c27b | [
"MIT"
] | 51 | 2020-12-15T21:29:25.000Z | 2022-03-31T11:41:38.000Z | libs/applibs/templates/tab/tab_one.py | leoobrabo/KivyMD-Project-Creator | 13b4dd7dd9d88164af052ad91009bfd38660c27b | [
"MIT"
] | 8 | 2020-12-23T21:40:12.000Z | 2021-10-04T11:57:16.000Z | libs/applibs/templates/tab/tab_one.py | Kulothungan16/KivyMD_Project_Creator | f96f1128800b19de4ad5941270fc2cfdbbbcf331 | [
"MIT"
] | 14 | 2021-01-02T04:08:53.000Z | 2022-02-15T19:36:59.000Z | from kivy.uix.floatlayout import FloatLayout
from kivymd.uix.tab import MDTabsBase
import utils
utils.load_kv("tab_one.kv")
class TabOne(FloatLayout, MDTabsBase):
"""
Tab Item One.
"""
| 15.461538 | 44 | 0.721393 | 27 | 201 | 5.296296 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174129 | 201 | 12 | 45 | 16.75 | 0.861446 | 0.064677 | 0 | 0 | 0 | 0 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.8 | 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 | 1 | 0 | 0 | 4 |
71b4acb45792997110467999c5f1ef1345bdf700 | 2,430 | py | Python | test/test_document_api.py | labinnovationdocapost/leia-api-python-sdk | 6001dce68362d4e836b57e52d4da17710f25ed12 | [
"MIT"
] | null | null | null | test/test_document_api.py | labinnovationdocapost/leia-api-python-sdk | 6001dce68362d4e836b57e52d4da17710f25ed12 | [
"MIT"
] | null | null | null | test/test_document_api.py | labinnovationdocapost/leia-api-python-sdk | 6001dce68362d4e836b57e52d4da17710f25ed12 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
LEIA RESTful API for AI
Leia API # noqa: E501
OpenAPI spec version: 1.0.0
Contact:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import leiaapi.generated
from leiaapi.generated.api.document_api ... | 21.891892 | 72 | 0.616049 | 293 | 2,430 | 4.921502 | 0.255973 | 0.07767 | 0.083911 | 0.114424 | 0.472954 | 0.380028 | 0.287795 | 0.243412 | 0.243412 | 0.212205 | 0 | 0.027284 | 0.306173 | 2,430 | 110 | 73 | 22.090909 | 0.827995 | 0.455556 | 0 | 0.352941 | 1 | 0 | 0.007648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.382353 | false | 0.352941 | 0.147059 | 0 | 0.558824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
71be0fd9b196eac8f333a08469b0a799a94fdd2a | 64 | py | Python | sqs_polling/__init__.py | ohke/sqs-polling | 858322126632da897a8911a484b0dd3980c23ca1 | [
"MIT"
] | 5 | 2019-12-08T05:55:32.000Z | 2022-02-05T21:19:19.000Z | sqs_polling/__init__.py | ohke/sqs-polling | 858322126632da897a8911a484b0dd3980c23ca1 | [
"MIT"
] | 5 | 2019-10-25T00:04:50.000Z | 2021-11-13T21:15:55.000Z | sqs_polling/__init__.py | ohke/sqs-polling | 858322126632da897a8911a484b0dd3980c23ca1 | [
"MIT"
] | 2 | 2019-10-24T23:29:40.000Z | 2021-07-14T10:24:18.000Z | from .sqs_polling import sqs_polling
__all__ = ["sqs_polling"]
| 16 | 36 | 0.78125 | 9 | 64 | 4.777778 | 0.555556 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 3 | 37 | 21.333333 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
71d8e2809974cdd222385de62649d000e5f2b1a9 | 175 | py | Python | media_security/urls.py | ss-aman/media_security | cd9be8c4d9cfeb4344b682b3a6c90eda620daaec | [
"MIT"
] | null | null | null | media_security/urls.py | ss-aman/media_security | cd9be8c4d9cfeb4344b682b3a6c90eda620daaec | [
"MIT"
] | null | null | null | media_security/urls.py | ss-aman/media_security | cd9be8c4d9cfeb4344b682b3a6c90eda620daaec | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from .views import MediaView
urlpatterns = static(settings.MEDIA_URL, view=MediaView.as_view())
| 21.875 | 66 | 0.811429 | 25 | 175 | 5.6 | 0.56 | 0.142857 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108571 | 175 | 7 | 67 | 25 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
71dd92081875ae813a58400cfadfd10cfd87b51f | 32 | py | Python | modules/2.79/bpy/types/EnumPropertyItem.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/EnumPropertyItem.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/EnumPropertyItem.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | EnumPropertyItem.value = None
| 8 | 29 | 0.78125 | 3 | 32 | 8.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 3 | 30 | 10.666667 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e0990d13d566478218153e5175b692168716a36c | 56 | py | Python | Python/Tests/GlassTests/PythonTests/Python/StepPythonToNative_Repr/py_mod.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 404 | 2019-05-07T02:21:57.000Z | 2022-03-31T17:03:04.000Z | Python/Tests/GlassTests/PythonTests/Python/StepPythonToNative_Repr/py_mod.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 1,672 | 2019-05-06T21:09:38.000Z | 2022-03-31T23:16:04.000Z | Python/Tests/GlassTests/PythonTests/Python/StepPythonToNative_Repr/py_mod.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 186 | 2019-05-13T03:17:37.000Z | 2022-03-31T16:24:05.000Z | import cpp_mod
cpp_obj = cpp_mod.CppObj()
repr(cpp_obj)
| 14 | 26 | 0.785714 | 11 | 56 | 3.636364 | 0.545455 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 56 | 3 | 27 | 18.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
e0b22856c8a14733888f373b9d1e3ace06dbf9fd | 192 | py | Python | np/__init__.py | BK-Modding/galois | 5da4db84d90083e337ebe2c1838df5c6db88fd3f | [
"MIT"
] | null | null | null | np/__init__.py | BK-Modding/galois | 5da4db84d90083e337ebe2c1838df5c6db88fd3f | [
"MIT"
] | null | null | null | np/__init__.py | BK-Modding/galois | 5da4db84d90083e337ebe2c1838df5c6db88fd3f | [
"MIT"
] | null | null | null | """
Documentation of some native numpy functions when called on Galois field arrays.
"""
from . import linalg
from .arithmetic import *
from .functions import *
from .linear_algebra import *
| 21.333333 | 80 | 0.765625 | 25 | 192 | 5.84 | 0.72 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161458 | 192 | 8 | 81 | 24 | 0.906832 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e0d8fbec1ac257972e25b02c261472da625f4d33 | 8,565 | py | Python | resource/pypi/cryptography-1.7.1/src/_cffi_src/openssl/nid.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | resource/pypi/cryptography-1.7.1/src/_cffi_src/openssl/nid.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | resource/pypi/cryptography-1.7.1/src/_cffi_src/openssl/nid.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
INCLUDES = """
#include <openssl/obj_mac.h>
"""
TYPES = """
s... | 37.077922 | 80 | 0.82265 | 1,395 | 8,565 | 4.72043 | 0.143369 | 0.342445 | 0.28489 | 0.345938 | 0.636295 | 0.382536 | 0.24738 | 0.119818 | 0.069704 | 0 | 0 | 0.099973 | 0.139288 | 8,565 | 230 | 81 | 37.23913 | 0.793272 | 0.020198 | 0 | 0.032258 | 0 | 0 | 0.979652 | 0.211694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004608 | 0 | 0.004608 | 0.004608 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e0e8194b9d64628661b24aaac673852294b84581 | 69 | py | Python | heima/login.py | DARKZEYE/PythonNumOne | 2f3065537071d87e4fead4b9f0670b8a3c8b00c9 | [
"MIT"
] | null | null | null | heima/login.py | DARKZEYE/PythonNumOne | 2f3065537071d87e4fead4b9f0670b8a3c8b00c9 | [
"MIT"
] | null | null | null | heima/login.py | DARKZEYE/PythonNumOne | 2f3065537071d87e4fead4b9f0670b8a3c8b00c9 | [
"MIT"
] | null | null | null | num1 = 19
num2 = 22
num6 = 9999
num3 = 666
num4 = 878
num8 = 10000
| 7.666667 | 12 | 0.623188 | 12 | 69 | 3.583333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.510204 | 0.289855 | 69 | 8 | 13 | 8.625 | 0.367347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e0f1e5fc01b721e10c67732d5b3ffa29d55aad7c | 123 | py | Python | Labs/RopEmporium/split-64.py | TeamUnderdawgs/BinaryExploitaion-For-CTFs | 78041ecee680e27d8e7d9a696a3c53b362100af7 | [
"WTFPL"
] | 9 | 2020-03-31T05:59:08.000Z | 2022-02-23T03:17:56.000Z | Labs/RopEmporium/split-64.py | TeamUnderdawgs/BinaryExploitaion-For-CTFs | 78041ecee680e27d8e7d9a696a3c53b362100af7 | [
"WTFPL"
] | null | null | null | Labs/RopEmporium/split-64.py | TeamUnderdawgs/BinaryExploitaion-For-CTFs | 78041ecee680e27d8e7d9a696a3c53b362100af7 | [
"WTFPL"
] | 3 | 2020-05-09T11:56:40.000Z | 2021-12-30T07:13:03.000Z | from pwn import *
system = p64(0x0000000000400810)
payload = " /bin/sh".ljust(40," ")
payload += system
print payload
| 12.3 | 35 | 0.682927 | 15 | 123 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207921 | 0.178862 | 123 | 9 | 36 | 13.666667 | 0.623762 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0.146341 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
460223d9fd1d99e0735076a73c169b0e9e7b60e4 | 15,082 | py | Python | papermerge/test/test_backup_restore.py | w-michal/papermerge | 14703c3316deea06696da041b7adc4bd0b15270b | [
"Apache-2.0"
] | null | null | null | papermerge/test/test_backup_restore.py | w-michal/papermerge | 14703c3316deea06696da041b7adc4bd0b15270b | [
"Apache-2.0"
] | null | null | null | papermerge/test/test_backup_restore.py | w-michal/papermerge | 14703c3316deea06696da041b7adc4bd0b15270b | [
"Apache-2.0"
] | 1 | 2020-12-04T20:41:59.000Z | 2020-12-04T20:41:59.000Z | import io
import json
import os
from pathlib import Path
import tarfile
from django.test import TestCase
from papermerge.core.models import Document, Folder
from papermerge.core.storage import default_storage
from papermerge.test.utils import create_root_user
from papermerge.core.backup_restore import (
backup_do... | 31.161157 | 79 | 0.544358 | 1,698 | 15,082 | 4.58245 | 0.102474 | 0.040098 | 0.051407 | 0.048837 | 0.800925 | 0.743478 | 0.711862 | 0.682303 | 0.642334 | 0.632309 | 0 | 0.016965 | 0.362949 | 15,082 | 483 | 80 | 31.225673 | 0.792881 | 0.062392 | 0 | 0.529891 | 0 | 0 | 0.117307 | 0.016639 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.021739 | false | 0 | 0.027174 | 0 | 0.054348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
460fd43bfbfd4f52f9b71e97d4290002eeb67f97 | 125 | py | Python | src/applications/onboarding/views/sign_in.py | Alex-T13/sts_13_on_FastAPI | aab2a5b542b75230c7f0d7bdcdad292f424c638c | [
"MIT"
] | 3 | 2020-11-03T23:49:28.000Z | 2020-11-13T07:25:33.000Z | src/applications/onboarding/views/sign_in.py | Alex-T13/sts_13_on_FastAPI | aab2a5b542b75230c7f0d7bdcdad292f424c638c | [
"MIT"
] | 7 | 2021-04-06T18:19:48.000Z | 2021-09-22T19:43:54.000Z | src/applications/onboarding/views/sign_in.py | Alex-T13/sts_13_without_FastAPI | aab2a5b542b75230c7f0d7bdcdad292f424c638c | [
"MIT"
] | 1 | 2021-01-26T19:45:37.000Z | 2021-01-26T19:45:37.000Z | from django.contrib.auth.views import LoginView
class SignInView(LoginView):
template_name = "onboarding/sign-in.html"
| 20.833333 | 47 | 0.784 | 16 | 125 | 6.0625 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 125 | 5 | 48 | 25 | 0.881818 | 0 | 0 | 0 | 0 | 0 | 0.184 | 0.184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1cec4fe2ac0c0e6d7d8cf6f0b85321ba03baa3da | 97 | py | Python | python/testData/completion/typedParameterStringPath/a.after.py | Sajaki/intellij-community | 6748af2c40567839d11fd652ec77ba263c074aad | [
"Apache-2.0"
] | 1 | 2020-06-25T02:17:26.000Z | 2020-06-25T02:17:26.000Z | python/testData/completion/typedParameterStringPath/a.after.py | Sajaki/intellij-community | 6748af2c40567839d11fd652ec77ba263c074aad | [
"Apache-2.0"
] | null | null | null | python/testData/completion/typedParameterStringPath/a.after.py | Sajaki/intellij-community | 6748af2c40567839d11fd652ec77ba263c074aad | [
"Apache-2.0"
] | null | null | null | from os import PathLike
def baz(akjlkgjdfsakglkd: PathLike) -> None:
pass
baz("foobar.txt") | 16.166667 | 44 | 0.721649 | 13 | 97 | 5.384615 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164948 | 97 | 6 | 45 | 16.166667 | 0.864198 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e816ee7e44f58de4823a25599b2d059b85af79bb | 78 | py | Python | test.py | tchristiansen-aquaveo/xmsgrid | 800d6e759e5c95a0dff54258a5229691d4f27904 | [
"BSD-2-Clause"
] | 2 | 2018-08-10T16:38:23.000Z | 2019-04-26T15:06:03.000Z | test.py | tchristiansen-aquaveo/xmsgrid | 800d6e759e5c95a0dff54258a5229691d4f27904 | [
"BSD-2-Clause"
] | 24 | 2018-08-27T23:06:51.000Z | 2019-05-23T14:57:14.000Z | test.py | Aquaveo/xmsstamper | 00abfec145f9dab1867006ccdffe6e9e1a0e4caf | [
"BSD-2-Clause"
] | 2 | 2019-05-22T23:53:01.000Z | 2021-04-14T21:04:55.000Z | # Run tests
if __name__ == '__main__':
print('Running all the tests...')
| 15.6 | 37 | 0.628205 | 10 | 78 | 4.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 78 | 4 | 38 | 19.5 | 0.66129 | 0.115385 | 0 | 0 | 0 | 0 | 0.477612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e8272542c96e6f91c1ffa6d45a735ed95377080d | 130 | py | Python | boot.py | chrisb2/environment | a2017c138c52731c2aacf6391b788815790dbc4c | [
"MIT"
] | null | null | null | boot.py | chrisb2/environment | a2017c138c52731c2aacf6391b788815790dbc4c | [
"MIT"
] | null | null | null | boot.py | chrisb2/environment | a2017c138c52731c2aacf6391b788815790dbc4c | [
"MIT"
] | null | null | null | # This file is executed on every boot (including wake-boot from deepsleep)
import gc
import webrepl
gc.collect()
webrepl.start()
| 18.571429 | 74 | 0.776923 | 20 | 130 | 5.05 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146154 | 130 | 6 | 75 | 21.666667 | 0.90991 | 0.553846 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1c061ca31269cc15f5adac8170952f3062131286 | 563 | py | Python | ethsential/src/tools/tool.py | 1140251/Ethsential | 1de423358f5a0ba8b84d80fa63bce09552bca9fd | [
"Apache-2.0"
] | 7 | 2021-10-11T12:07:08.000Z | 2022-01-10T01:19:36.000Z | ethsential/src/tools/tool.py | 1140251/Ethsential | 1de423358f5a0ba8b84d80fa63bce09552bca9fd | [
"Apache-2.0"
] | null | null | null | ethsential/src/tools/tool.py | 1140251/Ethsential | 1de423358f5a0ba8b84d80fa63bce09552bca9fd | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
class Tool(ABC):
@abstractmethod
def __init__(self):
pass
@abstractmethod
def parse(self, str):
pass
@property
def image(self):
raise NotImplementedError
@property
def command(self):
raise NotImplementedError
@... | 19.413793 | 67 | 0.632327 | 61 | 563 | 5.557377 | 0.459016 | 0.097345 | 0.247788 | 0.212389 | 0.230089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296625 | 563 | 28 | 68 | 20.107143 | 0.856061 | 0 | 0 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.095238 | 0.047619 | 0 | 0.47619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
1c08cc0040eea5fc3052bc9eb0868d9aa3025f30 | 292 | py | Python | slurry/sections/__init__.py | andersea/gasio | cc772b2611ac96c307ebc2520471eca32974987e | [
"MIT"
] | null | null | null | slurry/sections/__init__.py | andersea/gasio | cc772b2611ac96c307ebc2520471eca32974987e | [
"MIT"
] | null | null | null | slurry/sections/__init__.py | andersea/gasio | cc772b2611ac96c307ebc2520471eca32974987e | [
"MIT"
] | null | null | null | """A collection of common stream operations."""
from ._buffers import Window, Group, Delay
from ._combiners import Chain, Merge, Zip, ZipLatest
from ._filters import Skip, SkipWhile, Filter, Changes, RateLimit
from ._producers import Repeat, Metronome, InsertValue
from ._refiners import Map
| 41.714286 | 65 | 0.794521 | 37 | 292 | 6.135135 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126712 | 292 | 6 | 66 | 48.666667 | 0.890196 | 0.140411 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1c2aaf1aee3aba725a49dd8b76f6a7262676634f | 9,461 | py | Python | pysmt/walkers/identitydag.py | keram88/pysmt | ecf4ea4c709df8e5f1f768820ac0f6f74803ab42 | [
"Apache-2.0"
] | null | null | null | pysmt/walkers/identitydag.py | keram88/pysmt | ecf4ea4c709df8e5f1f768820ac0f6f74803ab42 | [
"Apache-2.0"
] | null | null | null | pysmt/walkers/identitydag.py | keram88/pysmt | ecf4ea4c709df8e5f1f768820ac0f6f74803ab42 | [
"Apache-2.0"
] | 1 | 2019-11-13T00:36:59.000Z | 2019-11-13T00:36:59.000Z | #
# This file is part of pySMT.
#
# Copyright 2014 Andrea Micheli and Marco Gario
#
# 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
... | 35.302239 | 82 | 0.640524 | 1,357 | 9,461 | 4.335298 | 0.173176 | 0.08686 | 0.159103 | 0.246303 | 0.63454 | 0.596634 | 0.573517 | 0.221486 | 0.066803 | 0.030937 | 0 | 0.015989 | 0.219956 | 9,461 | 267 | 83 | 35.434457 | 0.781165 | 0.091428 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.445122 | false | 0 | 0.006098 | 0.414634 | 0.896341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1c5fc3224b4e30fdb69bfccacfab4abbecd78298 | 168 | py | Python | Python/Topics/Regexps in programs/Password validation/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 5 | 2020-08-29T15:15:31.000Z | 2022-03-01T18:22:34.000Z | Python/Topics/Regexps in programs/Password validation/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | null | null | null | Python/Topics/Regexps in programs/Password validation/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 1 | 2020-12-02T11:13:14.000Z | 2020-12-02T11:13:14.000Z | import re
password = input()
# your code here
pattern = r'^[\w]{6,15}$'
match = re.match(pattern, password, flags=re.ASCII)
print("Thank you!" if match else "Error!")
| 21 | 51 | 0.672619 | 27 | 168 | 4.185185 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.142857 | 168 | 7 | 52 | 24 | 0.763889 | 0.083333 | 0 | 0 | 0 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | false | 0.4 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
1c67f4ce1c24e807f5f277ab2d49968e23adb702 | 36,666 | py | Python | canvas_workflow_helpers/value_sets/v2021/encounter_performed.py | canvas-medical/open-source-sdk | a7a17f1950f63c59646037358c9a437dbd827413 | [
"Apache-2.0"
] | 12 | 2022-02-25T18:15:43.000Z | 2022-03-30T18:43:02.000Z | canvas_workflow_helpers/value_sets/v2021/encounter_performed.py | ReyBernDia/open-source-sdk | d6570a6096658e5da70262bb4fbcedae12ca8523 | [
"Apache-2.0"
] | 1 | 2022-03-18T22:21:03.000Z | 2022-03-18T22:22:36.000Z | canvas_workflow_helpers/value_sets/v2021/encounter_performed.py | ReyBernDia/open-source-sdk | d6570a6096658e5da70262bb4fbcedae12ca8523 | [
"Apache-2.0"
] | 4 | 2022-02-25T18:15:33.000Z | 2022-02-25T19:14:17.000Z | from ..value_set import ValueSet
class AcuteInpatient(ValueSet):
"""
**Clinical Focus:** This value set contains concepts related to acute inpatient visits.
**Data Element Scope:** This value set may use Quality Data Model (QDM) datatype related to Encounter, Performed.
**Inclusion Criteria:** Inclu... | 32.679144 | 427 | 0.643975 | 4,160 | 36,666 | 5.650962 | 0.16226 | 0.039816 | 0.034712 | 0.036158 | 0.740471 | 0.733665 | 0.718862 | 0.710184 | 0.684873 | 0.655649 | 0 | 0.165508 | 0.258796 | 36,666 | 1,122 | 428 | 32.679144 | 0.699489 | 0.515928 | 0 | 0.361429 | 0 | 0.047143 | 0.374963 | 0.08009 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001429 | 0 | 0.262857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
1c70fd09196f88cc8792033f09a381c97eb2dae7 | 51 | py | Python | asreviewcontrib/models/__init__.py | JTeijema/asreview-XGBoost | a682088ef51c6e771be62376f6150f3c9a22726f | [
"MIT"
] | null | null | null | asreviewcontrib/models/__init__.py | JTeijema/asreview-XGBoost | a682088ef51c6e771be62376f6150f3c9a22726f | [
"MIT"
] | null | null | null | asreviewcontrib/models/__init__.py | JTeijema/asreview-XGBoost | a682088ef51c6e771be62376f6150f3c9a22726f | [
"MIT"
] | null | null | null | from asreviewcontrib.models.xgboost import XGBoost
| 25.5 | 50 | 0.882353 | 6 | 51 | 7.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 51 | 1 | 51 | 51 | 0.957447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1c74b0a5a64db90f3d61758f1cf85c90c5405b0d | 3,402 | py | Python | tests/unit/metrics/test_views.py | fairhopeweb/warehouse | 7d8ef742e8fe6b401190c28ce56761848041c89f | [
"Apache-2.0"
] | 3,103 | 2015-01-30T00:24:10.000Z | 2022-03-31T23:21:39.000Z | tests/unit/metrics/test_views.py | fairhopeweb/warehouse | 7d8ef742e8fe6b401190c28ce56761848041c89f | [
"Apache-2.0"
] | 6,709 | 2015-01-05T01:23:20.000Z | 2022-03-31T14:49:46.000Z | tests/unit/metrics/test_views.py | fairhopeweb/warehouse | 7d8ef742e8fe6b401190c28ce56761848041c89f | [
"Apache-2.0"
] | 959 | 2015-01-12T22:22:40.000Z | 2022-03-31T22:21:51.000Z | # 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, software
# distributed under the Li... | 37.384615 | 85 | 0.65726 | 415 | 3,402 | 5.238554 | 0.262651 | 0.091076 | 0.044158 | 0.035879 | 0.75345 | 0.75345 | 0.75345 | 0.75345 | 0.698252 | 0.698252 | 0 | 0.001541 | 0.236919 | 3,402 | 90 | 86 | 37.8 | 0.835901 | 0.151969 | 0 | 0.622951 | 0 | 0 | 0.074139 | 0.021928 | 0 | 0 | 0 | 0 | 0.147541 | 1 | 0.04918 | false | 0 | 0.04918 | 0 | 0.114754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
1c79577f872548a5d5886526761ff4851196704e | 59 | py | Python | hwt/synthesizer/__init__.py | mgielda/hwt | e6c699fb154f93ac03523bfe40a3d4fc1912d28b | [
"MIT"
] | null | null | null | hwt/synthesizer/__init__.py | mgielda/hwt | e6c699fb154f93ac03523bfe40a3d4fc1912d28b | [
"MIT"
] | null | null | null | hwt/synthesizer/__init__.py | mgielda/hwt | e6c699fb154f93ac03523bfe40a3d4fc1912d28b | [
"MIT"
] | null | null | null | """
Sythesizer converts Unit instances to HDL objects.
"""
| 14.75 | 50 | 0.728814 | 7 | 59 | 6.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 59 | 3 | 51 | 19.666667 | 0.86 | 0.847458 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1c8935e8e91733a5abdff56316f774bca0712f8c | 127 | py | Python | hornero/__init__.py | santisoler/hornero | 7eb0c32625e00b858e34c87633c8c3c4618dc40a | [
"MIT"
] | 1 | 2021-11-22T18:24:19.000Z | 2021-11-22T18:24:19.000Z | hornero/__init__.py | santisoler/hornero | 7eb0c32625e00b858e34c87633c8c3c4618dc40a | [
"MIT"
] | null | null | null | hornero/__init__.py | santisoler/hornero | 7eb0c32625e00b858e34c87633c8c3c4618dc40a | [
"MIT"
] | null | null | null | """
Hornero: A package selector for building your comfy nest.
"""
from . import _version
__version__ = f"v{_version.version}"
| 18.142857 | 57 | 0.732283 | 17 | 127 | 5.117647 | 0.823529 | 0.321839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 127 | 6 | 58 | 21.166667 | 0.805556 | 0.448819 | 0 | 0 | 0 | 0 | 0.306452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1c8fddc8b884c7668e38237571aace14327a4029 | 1,517 | py | Python | haloinfinite/exceptions.py | ingmferrer/haloinfinite | 9d85f775129148d0226ff416c574aa619c290246 | [
"MIT"
] | 2 | 2022-02-06T04:59:08.000Z | 2022-02-09T18:18:48.000Z | haloinfinite/exceptions.py | ingmferrer/haloinfinite | 9d85f775129148d0226ff416c574aa619c290246 | [
"MIT"
] | null | null | null | haloinfinite/exceptions.py | ingmferrer/haloinfinite | 9d85f775129148d0226ff416c574aa619c290246 | [
"MIT"
] | null | null | null | class BaseError(Exception):
pass
class UserTokenRequiredError(BaseError):
pass
class XboxUserTokenRequiredError(BaseError):
pass
class XstsXboxTokenRequiredError(BaseError):
pass
class XstsHaloTokenRequiredError(BaseError):
pass
class SpartanTokenRequiredError(BaseError):
pass
class ... | 12.747899 | 51 | 0.764008 | 120 | 1,517 | 9.658333 | 0.275 | 0.225194 | 0.434858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176664 | 1,517 | 118 | 52 | 12.855932 | 0.927942 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 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 | 4 |
98ea0799ea7742f077d8c48d8a9462b6d17c0b0b | 238 | py | Python | byceps/blueprints/api/v1/views.py | homeworkprod/byceps | cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e | [
"BSD-3-Clause"
] | 23 | 2015-08-03T23:28:54.000Z | 2018-12-12T20:11:45.000Z | byceps/blueprints/api/v1/views.py | homeworkprod/byceps | cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e | [
"BSD-3-Clause"
] | 1 | 2018-09-30T18:18:24.000Z | 2018-09-30T18:18:24.000Z | byceps/blueprints/api/v1/views.py | homeworkprod/byceps | cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e | [
"BSD-3-Clause"
] | 9 | 2015-08-06T16:41:36.000Z | 2018-09-25T11:17:31.000Z | """
byceps.blueprints.api.v1.views
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2014-2022 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from flask import Blueprint
blueprint = Blueprint('v1', __name__)
| 18.307692 | 54 | 0.651261 | 26 | 238 | 5.807692 | 0.846154 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.117647 | 238 | 12 | 55 | 19.833333 | 0.671429 | 0.672269 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
c70627cb60718bb1d01ad43d527256723bb0ead0 | 158 | py | Python | lib/galaxy/util/log/__init__.py | ramezrawas/galaxy-1 | c03748dd49c060a68d07bce56eae33e0ba154414 | [
"CC-BY-3.0"
] | 6 | 2018-11-03T22:43:35.000Z | 2022-02-15T17:51:33.000Z | lib/galaxy/util/log/__init__.py | igorhollaender/OBSOLETE_sirv_dashboard | 85aec60b80ef6f561d89398e3da5963d3d0f2aa4 | [
"CC-BY-3.0"
] | 7 | 2016-12-07T22:19:37.000Z | 2019-01-30T15:04:26.000Z | lib/galaxy/util/log/__init__.py | igorhollaender/OBSOLETE_sirv_dashboard | 85aec60b80ef6f561d89398e3da5963d3d0f2aa4 | [
"CC-BY-3.0"
] | 10 | 2017-04-10T21:40:22.000Z | 2022-02-21T16:50:10.000Z | class TraceLogger( object ):
def __init__( self, name ):
self.name = name
def log( **kwargs ):
raise TypeError( "Abstract Method" )
| 19.75 | 44 | 0.588608 | 17 | 158 | 5.235294 | 0.764706 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297468 | 158 | 7 | 45 | 22.571429 | 0.801802 | 0 | 0 | 0 | 0 | 0 | 0.094937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c722f84eaa456f148c71ca46fda31f179c84c807 | 194 | py | Python | utils/time_util.py | gregbugaj/TextGenerator | d92431bdce31914a108417f7b00ed80b8f994298 | [
"MIT"
] | 166 | 2019-10-08T09:26:42.000Z | 2022-03-29T22:27:30.000Z | utils/time_util.py | gregbugaj/TextGenerator | d92431bdce31914a108417f7b00ed80b8f994298 | [
"MIT"
] | 17 | 2019-12-18T02:07:13.000Z | 2022-03-04T06:40:54.000Z | utils/time_util.py | gregbugaj/TextGenerator | d92431bdce31914a108417f7b00ed80b8f994298 | [
"MIT"
] | 47 | 2019-11-24T08:04:20.000Z | 2022-03-23T00:43:33.000Z | from datetime import datetime
def today():
time = datetime.now()
return time.strftime("%Y%m%d")
def timestamp():
time = datetime.now()
return time.strftime("%Y%m%d%H%M%S%f")
| 16.166667 | 42 | 0.628866 | 30 | 194 | 4.066667 | 0.533333 | 0.196721 | 0.245902 | 0.344262 | 0.590164 | 0.590164 | 0.590164 | 0.590164 | 0.590164 | 0 | 0 | 0 | 0.195876 | 194 | 11 | 43 | 17.636364 | 0.782051 | 0 | 0 | 0.285714 | 0 | 0 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 4 |
c7274492c1f1ca99699a6e6e50e02a211a7cd725 | 110 | py | Python | rainforest/common/__init__.py | gugerlir/rainforest | 85a9d51acf2036245f0cebf7232e735c2cf2dfc4 | [
"BSD-3-Clause"
] | 3 | 2020-03-03T19:58:02.000Z | 2021-11-02T08:22:22.000Z | rainforest/common/__init__.py | gugerlir/rainforest | 85a9d51acf2036245f0cebf7232e735c2cf2dfc4 | [
"BSD-3-Clause"
] | null | null | null | rainforest/common/__init__.py | gugerlir/rainforest | 85a9d51acf2036245f0cebf7232e735c2cf2dfc4 | [
"BSD-3-Clause"
] | 5 | 2020-03-25T15:25:25.000Z | 2021-06-11T22:15:58.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 8 16:07:04 2018
@author: wolfensb
"""
| 13.75 | 35 | 0.6 | 18 | 110 | 3.666667 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144444 | 0.181818 | 110 | 7 | 36 | 15.714286 | 0.588889 | 0.890909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c73765f456b8eca666b221dc591c42583c4f30be | 105 | py | Python | tests/exporting/__init__.py | MyPyDavid/raman_fitting | a827ab578ae801e185384159f145ae4dfad39549 | [
"MIT"
] | 3 | 2021-03-03T21:02:11.000Z | 2021-05-14T09:24:40.000Z | tests/exporting/__init__.py | MyPyDavid/raman_fitting | a827ab578ae801e185384159f145ae4dfad39549 | [
"MIT"
] | 8 | 2021-06-25T22:54:53.000Z | 2021-08-09T10:07:30.000Z | tests/exporting/__init__.py | MyPyDavid/raman_fitting | a827ab578ae801e185384159f145ae4dfad39549 | [
"MIT"
] | 2 | 2021-07-08T09:49:49.000Z | 2022-03-19T14:43:01.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 28 09:04:40 2021
@author: zmg
"""
| 13.125 | 35 | 0.590476 | 18 | 105 | 3.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 0.180952 | 105 | 7 | 36 | 15 | 0.55814 | 0.885714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c73aa8b42f03927cae156ec60827e9be41935e75 | 128 | py | Python | run.py | cwvanharen/bnbot | ed9c6ddec817fbc35ee12a7984acf36ada10ebd1 | [
"MIT"
] | 2 | 2016-08-24T12:15:46.000Z | 2018-08-08T09:24:49.000Z | run.py | AWSGovardhan/iris-app | ad5aad4371c34b10ac31eefc7a4ccf262095c2a8 | [
"MIT"
] | null | null | null | run.py | AWSGovardhan/iris-app | ad5aad4371c34b10ac31eefc7a4ccf262095c2a8 | [
"MIT"
] | 2 | 2016-04-05T01:49:45.000Z | 2016-08-24T12:15:52.000Z | #!/usr/bin/env python
from app import app as application
if __name__ == '__main__':
application.run(port=9000, debug=True)
| 21.333333 | 42 | 0.726563 | 19 | 128 | 4.473684 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.148438 | 128 | 5 | 43 | 25.6 | 0.743119 | 0.15625 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c767fc157295d6a65e7106817d5af97c8fc628cc | 86 | py | Python | xclim/data/__init__.py | Ouranosinc/dcvar | 0737c66a36f8969e7a17276990bc7e76f7b410c4 | [
"Apache-2.0"
] | 1 | 2018-08-20T16:36:40.000Z | 2018-08-20T16:36:40.000Z | xclim/data/__init__.py | Ouranosinc/dcvar | 0737c66a36f8969e7a17276990bc7e76f7b410c4 | [
"Apache-2.0"
] | 3 | 2018-08-23T13:25:47.000Z | 2018-08-23T15:59:45.000Z | xclim/data/__init__.py | Ouranosinc/dcvar | 0737c66a36f8969e7a17276990bc7e76f7b410c4 | [
"Apache-2.0"
] | null | null | null | """JSON and YAML definitions for virtual modules and internationalisation support."""
| 43 | 85 | 0.802326 | 10 | 86 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 86 | 1 | 86 | 86 | 0.907895 | 0.918605 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c76dd3fa81cc2ee16f6e95ceaef5ef446e63422b | 895 | py | Python | src/q226-invert-binary-tree.py | jiaju-yang/leetcode | 3af140a334c7d5457b64ae8813ddba284c66e57f | [
"MIT"
] | null | null | null | src/q226-invert-binary-tree.py | jiaju-yang/leetcode | 3af140a334c7d5457b64ae8813ddba284c66e57f | [
"MIT"
] | null | null | null | src/q226-invert-binary-tree.py | jiaju-yang/leetcode | 3af140a334c7d5457b64ae8813ddba284c66e57f | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=226 lang=python3
#
# [226] Invert Binary Tree
#
from .tree_tools import *
from typing import Optional
# @lc code=start
class Solution:
def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]:
return self.dfs(root)
def dfs(self, node):
if not node:
... | 24.189189 | 73 | 0.627933 | 126 | 895 | 4.349206 | 0.365079 | 0.237226 | 0.164234 | 0.175182 | 0.182482 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0.044286 | 0.217877 | 895 | 36 | 74 | 24.861111 | 0.738571 | 0.099441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.210526 | false | 0 | 0.105263 | 0.052632 | 0.526316 | 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 | 1 | 0 | 0 | 4 |
c781e4ce149da3a85dae88e0b8d2425d22b9e0c0 | 110 | py | Python | Oefeningen/standalone/for.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | Oefeningen/standalone/for.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | Oefeningen/standalone/for.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | for count in range(1,10):
print(count)
print(count * count)
for letter in "coffee":
print(letter) | 18.333333 | 25 | 0.645455 | 17 | 110 | 4.176471 | 0.529412 | 0.28169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.227273 | 110 | 6 | 26 | 18.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 | 1 | 0 | 4 |
c7915917cdb6b7e7703853d131223a42385f98be | 168 | py | Python | workers/mail_handlers/base_handler.py | mmedum/limbo | 8aff181a1616bc4941b29fcd75e33e7943a105ea | [
"MIT"
] | 1 | 2019-08-22T03:59:27.000Z | 2019-08-22T03:59:27.000Z | workers/mail_handlers/base_handler.py | mmedum/limbo | 8aff181a1616bc4941b29fcd75e33e7943a105ea | [
"MIT"
] | 1 | 2018-12-23T14:18:40.000Z | 2018-12-23T14:18:40.000Z | workers/mail_handlers/base_handler.py | mmedum/limbo | 8aff181a1616bc4941b29fcd75e33e7943a105ea | [
"MIT"
] | null | null | null | class BaseHandler:
'''Abstract handler for send emails'''
def send_mail(self, message):
raise NotImplementedError('Not implemented in abstract class')
| 28 | 70 | 0.714286 | 19 | 168 | 6.263158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 168 | 5 | 71 | 33.6 | 0.881481 | 0.190476 | 0 | 0 | 0 | 0 | 0.253846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c79aa5aa747a960bb5fc0e0e1656eb9d01cca3d4 | 137 | py | Python | src/coffee/__main__.py | Coffee2Bits/Coffee | e322633cd2fa76e5a9c28e67422a35c2ce98f559 | [
"MIT"
] | null | null | null | src/coffee/__main__.py | Coffee2Bits/Coffee | e322633cd2fa76e5a9c28e67422a35c2ce98f559 | [
"MIT"
] | null | null | null | src/coffee/__main__.py | Coffee2Bits/Coffee | e322633cd2fa76e5a9c28e67422a35c2ce98f559 | [
"MIT"
] | null | null | null | if sys.argv[0].endswith("__main__.py"):
sys.argv[0] = "coffee"
if __name__ == "__main__":
from aac import cli
cli.run_cli() | 19.571429 | 39 | 0.627737 | 21 | 137 | 3.47619 | 0.666667 | 0.191781 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.19708 | 137 | 7 | 40 | 19.571429 | 0.645455 | 0 | 0 | 0 | 0 | 0 | 0.181159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c7acccc85b6c77f95d87bc8807297560686f209b | 169 | py | Python | django_gotolong/ftwhl/apps.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 15 | 2019-12-06T16:19:45.000Z | 2021-08-20T13:22:22.000Z | django_gotolong/ftwhl/apps.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 14 | 2020-12-08T10:45:05.000Z | 2021-09-21T17:23:45.000Z | django_gotolong/ftwhl/apps.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 9 | 2020-01-01T03:04:29.000Z | 2021-04-18T08:42:30.000Z | from django.apps import AppConfig
from django_gotolong.ftwhl.views import start
class FtwhlConfig(AppConfig):
name = 'ftwhl'
def ready(self):
start()
| 16.9 | 45 | 0.710059 | 21 | 169 | 5.666667 | 0.714286 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207101 | 169 | 9 | 46 | 18.777778 | 0.88806 | 0 | 0 | 0 | 0 | 0 | 0.029586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 4 |
c7ad833dfcc0011cc0ece42fdedb4bcca4eb49ff | 90 | py | Python | library/test/test_compiler/testcorpus/02_expr_subscr.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 278 | 2021-08-31T00:46:51.000Z | 2022-02-13T19:43:28.000Z | library/test/test_compiler/testcorpus/02_expr_subscr.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 9 | 2021-11-05T22:28:43.000Z | 2021-11-23T08:39:04.000Z | library/test/test_compiler/testcorpus/02_expr_subscr.py | tekknolagi/skybison | bea8fc2af0a70e7203b4c19f36c14a745512a335 | [
"CNRI-Python-GPL-Compatible"
] | 12 | 2021-08-31T07:49:54.000Z | 2021-10-08T01:09:01.000Z | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
a[b]
a[b][c]
| 22.5 | 76 | 0.666667 | 16 | 90 | 3.75 | 0.75 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 90 | 3 | 77 | 30 | 0.759494 | 0.822222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c7b83cd9ca38c782fd2f16946afd38cc61c7ab7c | 131 | py | Python | accelbyte_py_sdk/core/_decorators.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/core/_decorators.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/core/_decorators.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | def same_doc_as(source):
def wrapper(target):
target.__doc__ = source.__doc__
return target
return wrapper
| 21.833333 | 39 | 0.664122 | 16 | 131 | 4.8125 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267176 | 131 | 5 | 40 | 26.2 | 0.802083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c7e26556181b4b58fcb3a44c4c4d25c537b317c9 | 87 | py | Python | ngl_resum/__init__.py | MarcelBalsiger/ngl_resum | 982139b18d1d6a3d0dff5c803761de067ea1c5a3 | [
"MIT"
] | null | null | null | ngl_resum/__init__.py | MarcelBalsiger/ngl_resum | 982139b18d1d6a3d0dff5c803761de067ea1c5a3 | [
"MIT"
] | null | null | null | ngl_resum/__init__.py | MarcelBalsiger/ngl_resum | 982139b18d1d6a3d0dff5c803761de067ea1c5a3 | [
"MIT"
] | 1 | 2021-06-17T17:46:25.000Z | 2021-06-17T17:46:25.000Z | __author__ = "Marcel Balsiger <marcel.balsiger@hotmail.com>"
from .ngl_resum import *
| 21.75 | 60 | 0.770115 | 11 | 87 | 5.636364 | 0.818182 | 0.451613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 87 | 3 | 61 | 29 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0.517241 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1be145cace88d41b9b221677fefd7b5e81864b38 | 116 | py | Python | ex_package/numpy_function.py | JStox/first_package | a9455ddec18ef5e0a02f3e4224d680ebf37479ff | [
"MIT"
] | null | null | null | ex_package/numpy_function.py | JStox/first_package | a9455ddec18ef5e0a02f3e4224d680ebf37479ff | [
"MIT"
] | null | null | null | ex_package/numpy_function.py | JStox/first_package | a9455ddec18ef5e0a02f3e4224d680ebf37479ff | [
"MIT"
] | null | null | null | import numpy as np
def array_of_zeros(n):
print(f'You requested an array of {n} zeros.')
return np.zeros(n) | 23.2 | 50 | 0.689655 | 22 | 116 | 3.545455 | 0.681818 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198276 | 116 | 5 | 51 | 23.2 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
40013a4cc0576b913b89fcf7381fd5c98607d6f5 | 43 | py | Python | quiz3/run_vector.py | pingsutw/sysprog21 | a74594f4198ce16755a06bc3bb7222fe21e61fdb | [
"MIT"
] | null | null | null | quiz3/run_vector.py | pingsutw/sysprog21 | a74594f4198ce16755a06bc3bb7222fe21e61fdb | [
"MIT"
] | null | null | null | quiz3/run_vector.py | pingsutw/sysprog21 | a74594f4198ce16755a06bc3bb7222fe21e61fdb | [
"MIT"
] | null | null | null | gcc -o vector -std=gnu11 vector.c
./vector
| 14.333333 | 33 | 0.72093 | 8 | 43 | 3.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.139535 | 43 | 2 | 34 | 21.5 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4014178bb65f1d1a3e60616927c1ab88e3a8b077 | 81 | py | Python | default.py | emilsvennesson/kodi-fsgo | 0217cb40e776ae88a8f25b84313214c3d1fb83e0 | [
"CC0-1.0"
] | 3 | 2016-10-15T17:28:06.000Z | 2021-05-05T23:23:06.000Z | default.py | snoopyjoe/kodi-fsgo | 4148f49e356d036edb8f8eb8c41b14dd0cc1fc1c | [
"CC0-1.0"
] | 11 | 2016-09-30T18:46:21.000Z | 2021-07-07T16:45:33.000Z | default.py | emilsvennesson/kodi-fsgo | 0217cb40e776ae88a8f25b84313214c3d1fb83e0 | [
"CC0-1.0"
] | 7 | 2016-10-09T03:01:31.000Z | 2018-11-10T20:55:33.000Z | # -*- coding: utf-8 -*-
import addon
if __name__ == '__main__':
addon.run()
| 13.5 | 26 | 0.580247 | 10 | 81 | 3.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.209877 | 81 | 5 | 27 | 16.2 | 0.59375 | 0.259259 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4041ea6c5916982f4171e5048c7fb9a26cba0fb3 | 2,679 | py | Python | flows/many_big_low_entropy.py | tuulos/metaflow-datastore-tests | 4acb2a5762246444ceff2b435de7c4062f063319 | [
"Apache-2.0"
] | null | null | null | flows/many_big_low_entropy.py | tuulos/metaflow-datastore-tests | 4acb2a5762246444ceff2b435de7c4062f063319 | [
"Apache-2.0"
] | null | null | null | flows/many_big_low_entropy.py | tuulos/metaflow-datastore-tests | 4acb2a5762246444ceff2b435de7c4062f063319 | [
"Apache-2.0"
] | null | null | null | import time
from metaflow import FlowSpec, step, profile
class ManyBig(FlowSpec):
"""
Test compression overhead with low-entropy artifacts.
Useful to compare against the high-entropy version since
the artifacts are about the same size.
"""
@step
def start(self):
nonce = str(time.ti... | 32.670732 | 60 | 0.48003 | 357 | 2,679 | 3.411765 | 0.282913 | 0.123153 | 0.197044 | 0.295567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288983 | 0.379993 | 2,679 | 81 | 61 | 33.074074 | 0.444311 | 0.055618 | 0 | 0.027778 | 0 | 0 | 0.053871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.069444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
40456936895bfb16d18f1432193b466508f15305 | 139 | py | Python | linking/rust/using_ctypes.py | berquist/eg | 4c368b12eaaffcf0af8032f10348cf8bc1c3957a | [
"Unlicense"
] | null | null | null | linking/rust/using_ctypes.py | berquist/eg | 4c368b12eaaffcf0af8032f10348cf8bc1c3957a | [
"Unlicense"
] | null | null | null | linking/rust/using_ctypes.py | berquist/eg | 4c368b12eaaffcf0af8032f10348cf8bc1c3957a | [
"Unlicense"
] | null | null | null | import sys
import ctypes
from ctypes import c_uint32
lib = ctypes.cdll.LoadLibrary("target/debug/librust.so")
print(lib.addition(1, 2))
| 15.444444 | 56 | 0.769784 | 22 | 139 | 4.818182 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.115108 | 139 | 8 | 57 | 17.375 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.165468 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
404ffc370efe30c9266874c2d67104d02de090a1 | 255 | py | Python | wideq/__init__.py | kkakkong/wideq | a44428be07df2f94a7a250936d0026ad7109dda8 | [
"MIT"
] | null | null | null | wideq/__init__.py | kkakkong/wideq | a44428be07df2f94a7a250936d0026ad7109dda8 | [
"MIT"
] | null | null | null | wideq/__init__.py | kkakkong/wideq | a44428be07df2f94a7a250936d0026ad7109dda8 | [
"MIT"
] | null | null | null | """Reverse-engineered client for the LG SmartThinQ API.
"""
from .core import * # noqa
from .client import * # noqa
from .dryer import * # noqa
from .washer import * # noqa
from .dehum import * # noqa
from .ac import * # noqa
__version__ = '0.0.1'
| 23.181818 | 55 | 0.666667 | 36 | 255 | 4.611111 | 0.527778 | 0.361446 | 0.421687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.211765 | 255 | 10 | 56 | 25.5 | 0.810945 | 0.32549 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
40796837674ca76658869d55c2645634b98bc49a | 89 | py | Python | {{ cookiecutter.repo_service_reponame }}/tests/{{ cookiecutter.slug }}/test_{{ cookiecutter.slug }}.py | boilpy/boilpy | 78f353a4b45e1df2e573993d686418dfc1f13cc8 | [
"MIT"
] | 8 | 2018-11-03T12:50:42.000Z | 2021-12-15T15:36:14.000Z | {{ cookiecutter.repo_service_reponame }}/tests/{{ cookiecutter.slug }}/test_{{ cookiecutter.slug }}.py | boilpy/boilpy | 78f353a4b45e1df2e573993d686418dfc1f13cc8 | [
"MIT"
] | 1 | 2021-09-03T16:55:39.000Z | 2021-09-03T16:55:39.000Z | {{ cookiecutter.repo_service_reponame }}/tests/{{ cookiecutter.slug }}/test_{{ cookiecutter.slug }}.py | boilpy/boilpy | 78f353a4b45e1df2e573993d686418dfc1f13cc8 | [
"MIT"
] | null | null | null | {% if cookiecutter.compat != "none" %}
from __future__ import absolute_import
{% endif %} | 29.666667 | 38 | 0.719101 | 10 | 89 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 89 | 3 | 39 | 29.666667 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
40892a0cc0778e4c11c7d5a1c6affca2c82d64fe | 152 | py | Python | src/nibetaseries/cli/tests/test_run.py | RaginSagan/NiBetaSeries | 578748f36436253f62d73dd6d2984936788a1224 | [
"MIT"
] | null | null | null | src/nibetaseries/cli/tests/test_run.py | RaginSagan/NiBetaSeries | 578748f36436253f62d73dd6d2984936788a1224 | [
"MIT"
] | null | null | null | src/nibetaseries/cli/tests/test_run.py | RaginSagan/NiBetaSeries | 578748f36436253f62d73dd6d2984936788a1224 | [
"MIT"
] | null | null | null |
from ..run import get_parser
def test_get_parser():
try:
get_parser().parse_args(['-h'])
except SystemExit:
print('success')
| 15.2 | 39 | 0.611842 | 19 | 152 | 4.631579 | 0.789474 | 0.306818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 152 | 9 | 40 | 16.888889 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0.059603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
408ceb456f189907ffe35f7da23fc5abb9c5fc94 | 3,148 | py | Python | tools/decompiler/expression.py | miniupnp/sundog | eb48447d1791e8bbd9ce4afe872a541dc67fcca1 | [
"MIT"
] | 54 | 2017-01-31T08:14:04.000Z | 2022-03-18T23:26:35.000Z | tools/decompiler/expression.py | miniupnp/sundog | eb48447d1791e8bbd9ce4afe872a541dc67fcca1 | [
"MIT"
] | 9 | 2018-02-25T15:28:55.000Z | 2021-10-15T14:29:44.000Z | tools/decompiler/expression.py | miniupnp/sundog | eb48447d1791e8bbd9ce4afe872a541dc67fcca1 | [
"MIT"
] | 13 | 2017-01-29T12:38:26.000Z | 2021-12-22T23:57:35.000Z | # Copyright (c) 2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
####### Expressions ########
class Expression:
'''Base class for expression node'''
pass
class OpExpression(Expression):
'... | 29.420561 | 107 | 0.630877 | 398 | 3,148 | 4.766332 | 0.276382 | 0.050606 | 0.063785 | 0.089615 | 0.274644 | 0.254085 | 0.252504 | 0.195572 | 0.132314 | 0.132314 | 0 | 0.009065 | 0.229034 | 3,148 | 106 | 108 | 29.698113 | 0.772559 | 0.21061 | 0 | 0.333333 | 0 | 0 | 0.039419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0.060606 | 0 | 0.151515 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
408e0d09ad0f4d18f8865f5eeb93ce12cdc0b7d5 | 240 | py | Python | fediverse/views/renderer/object/Tombstone.py | YuzuRyo61/CrossPlan | 7bdc9b688885cd2bcce8bdc1f4d65b225beeb122 | [
"MIT"
] | 8 | 2020-01-22T07:44:59.000Z | 2020-05-17T18:32:06.000Z | fediverse/views/renderer/object/Tombstone.py | YuzuRyo61/CrossPlan | 7bdc9b688885cd2bcce8bdc1f4d65b225beeb122 | [
"MIT"
] | 4 | 2021-03-19T08:17:48.000Z | 2021-06-10T19:53:08.000Z | fediverse/views/renderer/object/Tombstone.py | YuzuRyo61/CrossPlan | 7bdc9b688885cd2bcce8bdc1f4d65b225beeb122 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.urls import reverse
def RenderTombstone(uuid):
return {
"type": "Tombstone",
"id": f"https://{settings.CP_ENDPOINT}{reverse('PostDetail', kwargs={'uuid': str(uuid)})}"
}
| 26.666667 | 98 | 0.654167 | 28 | 240 | 5.571429 | 0.75 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 240 | 8 | 99 | 30 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4094d92375b762c59f4f3895b50ba28b3897da5c | 5,775 | py | Python | tests/test_args.py | felixnext/python-functown | 71bfdf39116de0c7ff3acf1cd81a881efd865177 | [
"MIT"
] | null | null | null | tests/test_args.py | felixnext/python-functown | 71bfdf39116de0c7ff3acf1cd81a881efd865177 | [
"MIT"
] | null | null | null | tests/test_args.py | felixnext/python-functown | 71bfdf39116de0c7ff3acf1cd81a881efd865177 | [
"MIT"
] | null | null | null | from distutils.util import strtobool
import json
import os
import sys
import pytest
from azure.functions import HttpRequest
from functown import RequestArgHandler
from functown.errors import ArgError
def test_arghandler_convert():
'''Test the Parameter Conversion Methods to ensure they work properly'''
args... | 33.575581 | 126 | 0.621991 | 796 | 5,775 | 4.398241 | 0.128141 | 0.093973 | 0.088546 | 0.077692 | 0.806341 | 0.792059 | 0.758926 | 0.718081 | 0.573836 | 0.447015 | 0 | 0.009469 | 0.21368 | 5,775 | 172 | 127 | 33.575581 | 0.761506 | 0.092987 | 0 | 0.420168 | 0 | 0 | 0.119377 | 0 | 0 | 0 | 0 | 0 | 0.344538 | 1 | 0.042017 | false | 0 | 0.067227 | 0 | 0.109244 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
409c8388e6241ac0e2526c76e6ac7f92f79a225d | 179 | py | Python | ocp_resources/prometheus_rule.py | kbidarkar/openshift-python-wrapper | 3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb | [
"Apache-2.0"
] | null | null | null | ocp_resources/prometheus_rule.py | kbidarkar/openshift-python-wrapper | 3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb | [
"Apache-2.0"
] | null | null | null | ocp_resources/prometheus_rule.py | kbidarkar/openshift-python-wrapper | 3cd4d6d3b71c82ff87f032a51510d9c9d207f6cb | [
"Apache-2.0"
] | null | null | null | from ocp_resources.resource import Resource
class PrometheusRule(Resource):
"""
Prometheus Rule object.
"""
api_group = Resource.ApiGroup.MONITORING_COREOS_COM
| 17.9 | 55 | 0.73743 | 19 | 179 | 6.736842 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184358 | 179 | 9 | 56 | 19.888889 | 0.876712 | 0.128492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
40a6afd61732ef0cbfb1b41a760a5a122f098c7d | 8,329 | py | Python | test/test_flamp.py | c-f-h/flamp | 415ca618f95831fe18d4dc0cb83d9f8ef2edd4d8 | [
"BSD-2-Clause"
] | null | null | null | test/test_flamp.py | c-f-h/flamp | 415ca618f95831fe18d4dc0cb83d9f8ef2edd4d8 | [
"BSD-2-Clause"
] | null | null | null | test/test_flamp.py | c-f-h/flamp | 415ca618f95831fe18d4dc0cb83d9f8ef2edd4d8 | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
import gmpy2
from gmpy2 import mpfr, mpc
import flamp
def to_fp(A):
return np.array(A, float)
def to_cpx(A):
return np.array(A, complex)
### linalg
def test_qr_real():
n = 5
A = np.random.rand(n, n)
AA = mpfr(1) * A
Q, R = flamp.qr(AA)
assert Q.shape == (n, n) and R.sh... | 29.122378 | 83 | 0.568856 | 1,563 | 8,329 | 2.940499 | 0.079335 | 0.092254 | 0.112272 | 0.164491 | 0.784378 | 0.743037 | 0.712794 | 0.695822 | 0.650131 | 0.63577 | 0 | 0.028504 | 0.241806 | 8,329 | 285 | 84 | 29.224561 | 0.699287 | 0.030856 | 0 | 0.574468 | 0 | 0 | 0.000249 | 0 | 0 | 0 | 0 | 0 | 0.348936 | 1 | 0.12766 | false | 0 | 0.021277 | 0.008511 | 0.157447 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 4 |
40cfaa64c8c89aced37ef2f6cefe394a75d41fcd | 10,674 | py | Python | armin_analysis/figure3_make_figure.py | arminbahl/mutant_zebrafish_behavior | 17bee04b35c23b0f93fcecac9758e6ba19872be1 | [
"MIT"
] | null | null | null | armin_analysis/figure3_make_figure.py | arminbahl/mutant_zebrafish_behavior | 17bee04b35c23b0f93fcecac9758e6ba19872be1 | [
"MIT"
] | null | null | null | armin_analysis/figure3_make_figure.py | arminbahl/mutant_zebrafish_behavior | 17bee04b35c23b0f93fcecac9758e6ba19872be1 | [
"MIT"
] | null | null | null | from pathlib import Path
import numpy as np
from fit_integrator_model import get_model_result, get_target_result
import my_figure as myfig
import matplotlib
import pandas as pd
import pylab as pl
from scipy.stats import sem
# Do a bootstrap test
def bootstrap(vals1, vals2):
combined = np.r_[vals1, vals2]
ds =... | 55.59375 | 183 | 0.55771 | 1,716 | 10,674 | 3.359557 | 0.118298 | 0.011101 | 0.04059 | 0.020815 | 0.804683 | 0.776236 | 0.761318 | 0.707892 | 0.662966 | 0.593755 | 0 | 0.096149 | 0.260446 | 10,674 | 191 | 184 | 55.884817 | 0.634153 | 0.008994 | 0 | 0.248175 | 0 | 0 | 0.085952 | 0.051874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007299 | false | 0 | 0.058394 | 0 | 0.072993 | 0.007299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
dc0c9f144e4bffe73f5084a129cb6af532ae3711 | 903 | py | Python | tests/test_codeblock.py | koaning/mktestdocs | 96bfc7e43cf6d14053db215b183ba68d9df6c616 | [
"Apache-2.0"
] | 49 | 2020-12-02T15:47:47.000Z | 2022-03-18T15:04:25.000Z | tests/test_codeblock.py | koaning/mktestdocs | 96bfc7e43cf6d14053db215b183ba68d9df6c616 | [
"Apache-2.0"
] | null | null | null | tests/test_codeblock.py | koaning/mktestdocs | 96bfc7e43cf6d14053db215b183ba68d9df6c616 | [
"Apache-2.0"
] | 5 | 2021-07-20T17:22:09.000Z | 2021-12-23T14:12:46.000Z | import pytest
from mktestdocs import check_codeblock, grab_code_blocks
exibit_a = """
This is an example docstring.
Arguments:
a: a parameter
There is no example
"""
exibit_b = """
This is an example docstring.
Arguments:
a: a parameter
```python
assert 1 == 1
```
"""
exibit_c = """
This is an e... | 15.842105 | 57 | 0.634551 | 133 | 903 | 4.090226 | 0.308271 | 0.064338 | 0.077206 | 0.082721 | 0.724265 | 0.724265 | 0.724265 | 0.724265 | 0.724265 | 0.356618 | 0 | 0.016575 | 0.198228 | 903 | 56 | 58 | 16.125 | 0.734807 | 0 | 0 | 0.658537 | 0 | 0 | 0.403101 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.04878 | false | 0 | 0.04878 | 0 | 0.097561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
9075b8f0a39d008054f44545d40bdbab7bab33de | 555 | py | Python | test/benchmark/named.py | asnramos/asv | 8a0979b532d06c7c352826e2acf0dd872922260e | [
"BSD-3-Clause"
] | null | null | null | test/benchmark/named.py | asnramos/asv | 8a0979b532d06c7c352826e2acf0dd872922260e | [
"BSD-3-Clause"
] | null | null | null | test/benchmark/named.py | asnramos/asv | 8a0979b532d06c7c352826e2acf0dd872922260e | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
class Suite:
def named_method(self):
return 0
named_method.benchmark_name = 'custom.track_method'
def named_function():
pass
named_function.benchmark_name = 'custom.time_function'
named_function.pretty_name = 'My Custom Function'... | 16.323529 | 63 | 0.735135 | 77 | 555 | 5.025974 | 0.467532 | 0.103359 | 0.056848 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.189189 | 555 | 33 | 64 | 16.818182 | 0.848889 | 0.10991 | 0 | 0.125 | 0 | 0 | 0.152439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0 | 0.1875 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
907faeb95020b9a54177f73cacc144571e97126a | 150 | py | Python | ores/score_caches/__init__.py | ureesoriano/ores | dda9db6c8737d12acbae5b0d43938d93c9e7ea8e | [
"MIT"
] | null | null | null | ores/score_caches/__init__.py | ureesoriano/ores | dda9db6c8737d12acbae5b0d43938d93c9e7ea8e | [
"MIT"
] | null | null | null | ores/score_caches/__init__.py | ureesoriano/ores | dda9db6c8737d12acbae5b0d43938d93c9e7ea8e | [
"MIT"
] | null | null | null | from .score_cache import ScoreCache
from .empty import Empty
from .lru import LRU
from .redis import Redis
__all__ = [ScoreCache, Empty, LRU, Redis]
| 21.428571 | 41 | 0.78 | 22 | 150 | 5.090909 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153333 | 150 | 6 | 42 | 25 | 0.88189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
908a352545ef8649c4693a39d1825c220c064536 | 64 | py | Python | runserver.py | remram44/internetpoints | baae55c4629e0e6d422e60b6ebe4f21d9f63bcef | [
"Apache-2.0"
] | 1 | 2021-01-04T00:26:25.000Z | 2021-01-04T00:26:25.000Z | runserver.py | remram44/internetpoints | baae55c4629e0e6d422e60b6ebe4f21d9f63bcef | [
"Apache-2.0"
] | null | null | null | runserver.py | remram44/internetpoints | baae55c4629e0e6d422e60b6ebe4f21d9f63bcef | [
"Apache-2.0"
] | null | null | null | from internetpoints.wsgi import application
application.run()
| 12.8 | 43 | 0.828125 | 7 | 64 | 7.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 64 | 4 | 44 | 16 | 0.929825 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
908ef21c393540e2ae754d67c5cf15887926cfad | 256 | py | Python | dingdian/main/forms.py | yokonsan/dingdian | c1631b0a0dd0a5a6355d4e7f08330ee36c5cbcff | [
"MIT"
] | 7 | 2021-03-03T01:42:13.000Z | 2021-09-04T13:16:16.000Z | dingdian/main/forms.py | yokonsan/dingdian | c1631b0a0dd0a5a6355d4e7f08330ee36c5cbcff | [
"MIT"
] | null | null | null | dingdian/main/forms.py | yokonsan/dingdian | c1631b0a0dd0a5a6355d4e7f08330ee36c5cbcff | [
"MIT"
] | 3 | 2021-02-28T09:24:43.000Z | 2021-04-18T04:10:34.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
class SearchForm(FlaskForm):
search_name = StringField('search', validators=[DataRequired()])
submit = SubmitField('submit')
| 28.444444 | 68 | 0.792969 | 27 | 256 | 7.444444 | 0.555556 | 0.109453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 256 | 8 | 69 | 32 | 0.897321 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 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 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.