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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
02696d42dfe2832400fa6bb7a000178b629ffe23 | 4,857 | py | Python | boto3_type_annotations/boto3_type_annotations/appsync/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations/boto3_type_annotations/appsync/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations/boto3_type_annotations/appsync/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from typing import Optional
from botocore.client import BaseClient
from typing import Dict
from typing import Union
from botocore.paginate import Paginator
from botocore.waiter import Waiter
class Client(BaseClient):
def can_paginate(self, operation_name: str = None):
pass
def create_api_key(self, ap... | 40.475 | 282 | 0.672843 | 601 | 4,857 | 5.336106 | 0.136439 | 0.078578 | 0.10976 | 0.079514 | 0.781727 | 0.713439 | 0.661366 | 0.626442 | 0.583411 | 0.555971 | 0 | 0 | 0.22133 | 4,857 | 119 | 283 | 40.815126 | 0.847964 | 0 | 0 | 0.45679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.45679 | false | 0.45679 | 0.074074 | 0 | 0.54321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
026ca953c70825d7f5555f0333b1751b4eac1da5 | 207 | py | Python | modules/dbnd-airflow-monitor/src/airflow_monitor/_plugin.py | kalebinn/dbnd | 89b6ac3537f861784be73ffe8989bf63fca7401c | [
"Apache-2.0"
] | null | null | null | modules/dbnd-airflow-monitor/src/airflow_monitor/_plugin.py | kalebinn/dbnd | 89b6ac3537f861784be73ffe8989bf63fca7401c | [
"Apache-2.0"
] | null | null | null | modules/dbnd-airflow-monitor/src/airflow_monitor/_plugin.py | kalebinn/dbnd | 89b6ac3537f861784be73ffe8989bf63fca7401c | [
"Apache-2.0"
] | null | null | null | import logging
import dbnd
logger = logging.getLogger(__name__)
@dbnd.hookimpl
def dbnd_get_commands():
from airflow_monitor.cmd_airflow_monitor import airflow_monitor
return [airflow_monitor]
| 14.785714 | 67 | 0.797101 | 26 | 207 | 5.923077 | 0.576923 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 207 | 13 | 68 | 15.923077 | 0.870057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
027b07b598ee83d59cb7a8c63833d7a9cd3bef7c | 36 | py | Python | code/abc039_b_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc039_b_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc039_b_04.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | X = int(input())
print(int(X**0.25)) | 18 | 19 | 0.583333 | 8 | 36 | 2.625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.083333 | 36 | 2 | 19 | 18 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5a1f79dce9412f2d6f2cc01e2f202a8c723bc6b7 | 145 | py | Python | pypdflite/pdfobjects/__init__.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | null | null | null | pypdflite/pdfobjects/__init__.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | null | null | null | pypdflite/pdfobjects/__init__.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | null | null | null | from pdfcolor import PDFColor
from pdfmargin import PDFMargin
from pdfcursor import PDFCursor
__all__ = ['PDFColor', 'PDFMargin', 'PDFCursor']
| 20.714286 | 48 | 0.793103 | 16 | 145 | 6.9375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131034 | 145 | 6 | 49 | 24.166667 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5a5286edfbc97f09a64bb15cced2eca8e78772ed | 190 | py | Python | tests/__init__.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | tests/__init__.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | tests/__init__.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | # flake8: noqa"
import sys
if sys.version_info >= (2, 7):
import unittest
else:
import unittest2 as unittest
try:
from unittest import mock
except ImportError:
import mock
| 14.615385 | 32 | 0.7 | 26 | 190 | 5.076923 | 0.692308 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.231579 | 190 | 12 | 33 | 15.833333 | 0.876712 | 0.068421 | 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 | 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 |
ce478a418c721d850023a3acb9dac5bab53a065f | 96 | py | Python | web/crawler_api/apps.py | lilerjee/ecproduct | 98f3768d8b63626966ffeae0701d9e5725da1c1e | [
"MIT"
] | null | null | null | web/crawler_api/apps.py | lilerjee/ecproduct | 98f3768d8b63626966ffeae0701d9e5725da1c1e | [
"MIT"
] | 1 | 2020-07-30T04:12:13.000Z | 2020-07-30T04:12:13.000Z | web/crawler_api/apps.py | lilerjee/ecproduct | 98f3768d8b63626966ffeae0701d9e5725da1c1e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CrawlerApiConfig(AppConfig):
name = 'crawler_api'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 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 |
ce68ac842931a31bad91f39d2d54de01b28c0062 | 240 | py | Python | Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/func1.py | tegamax/ProjectCode | 0ed86e227fba50b453c5c4a2596afbadc39a167e | [
"MIT"
] | null | null | null | Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/func1.py | tegamax/ProjectCode | 0ed86e227fba50b453c5c4a2596afbadc39a167e | [
"MIT"
] | null | null | null | Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/func1.py | tegamax/ProjectCode | 0ed86e227fba50b453c5c4a2596afbadc39a167e | [
"MIT"
] | null | null | null | def make_car(car_manufacturer,car_model,**Other_attributes):
Other_attributes['car_model']=car_model
Other_attributes['car_manufacturer']=car_manufacturer
return Other_attributes
print(make_car('Toyota','Rav 4',color='blue')) | 30 | 60 | 0.783333 | 32 | 240 | 5.5 | 0.4375 | 0.340909 | 0.204545 | 0.261364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.091667 | 240 | 8 | 61 | 30 | 0.802752 | 0 | 0 | 0 | 0 | 0 | 0.165975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.2 | 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 |
ceb446ea593734f372b37b2dce2e403e86c975a8 | 300 | py | Python | tests/test_okteto_nb2.py | ffreemt/okteto-nb2 | f8022c8478abc57f9f2fa9b5d90ff6e2f497644f | [
"MIT"
] | null | null | null | tests/test_okteto_nb2.py | ffreemt/okteto-nb2 | f8022c8478abc57f9f2fa9b5d90ff6e2f497644f | [
"MIT"
] | null | null | null | tests/test_okteto_nb2.py | ffreemt/okteto-nb2 | f8022c8478abc57f9f2fa9b5d90ff6e2f497644f | [
"MIT"
] | null | null | null | """Test okteto_nb2."""
from okteto_nb2 import __version__
from okteto_nb2 import okteto_nb2
def test_version():
"""Test version."""
assert __version__ == "0.1.0"
def test_sanity():
"""Sanity check."""
try:
assert not okteto_nb2()
except Exception:
assert True
| 17.647059 | 34 | 0.643333 | 38 | 300 | 4.684211 | 0.447368 | 0.252809 | 0.146067 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.233333 | 300 | 16 | 35 | 18.75 | 0.73913 | 0.146667 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | true | 0 | 0.222222 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ceb5f8e0e6188fcb88d72f483f38b0064bdcfd81 | 473 | py | Python | dopplerr/api/v1/__init__.py | Stibbons/sonarr-sub-downloader-docker | 6a2124e1b8b41d0b2ec4845a42b3db9aa10b5702 | [
"MIT"
] | 9 | 2018-04-27T18:49:31.000Z | 2020-01-29T08:23:26.000Z | dopplerr/api/v1/__init__.py | Stibbons/sonarr-sub-downloader-docker | 6a2124e1b8b41d0b2ec4845a42b3db9aa10b5702 | [
"MIT"
] | 7 | 2017-05-31T16:38:40.000Z | 2017-06-05T12:06:48.000Z | dopplerr/api/v1/__init__.py | Stibbons/subdlsrv | 6a2124e1b8b41d0b2ec4845a42b3db9aa10b5702 | [
"MIT"
] | 3 | 2018-04-22T08:40:29.000Z | 2018-08-19T00:41:25.000Z | # coding: utf-8
# Dopplerr
import dopplerr.api.v1.config
import dopplerr.api.v1.events
import dopplerr.api.v1.medias
import dopplerr.api.v1.notify
import dopplerr.api.v1.series
import dopplerr.api.v1.status
def add_api_blueprints(app):
for modu in [
'config',
'events',
'medias... | 20.565217 | 45 | 0.598309 | 58 | 473 | 4.844828 | 0.396552 | 0.274021 | 0.323843 | 0.405694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023599 | 0.283298 | 473 | 22 | 46 | 21.5 | 0.80531 | 0.046512 | 0 | 0 | 0 | 0 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 0.117647 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ced362ae9b428997cb4a0c92e8baa7b533dc9997 | 80 | py | Python | backend/mono-back/Deploy.py | sotapmc/Monologue | d2dcd3ab1fcd67e92b24495ee2472c08f5532741 | [
"Apache-2.0"
] | 5 | 2020-04-18T17:23:18.000Z | 2021-04-05T04:50:03.000Z | backend/mono-back/Deploy.py | sotapmc/Monologue | d2dcd3ab1fcd67e92b24495ee2472c08f5532741 | [
"Apache-2.0"
] | 11 | 2020-04-22T03:40:25.000Z | 2021-05-01T02:45:12.000Z | backend/mono-back/Deploy.py | Subilan/Monologue | 7f81a933fb123f4d87acc07fa10b845ef13ec56c | [
"Apache-2.0"
] | 1 | 2020-04-22T13:08:21.000Z | 2020-04-22T13:08:21.000Z | from User import UserManager
u = UserManager("admin")
u.createUser("password") | 16 | 28 | 0.7625 | 10 | 80 | 6.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 80 | 5 | 29 | 16 | 0.859155 | 0 | 0 | 0 | 0 | 0 | 0.160494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
0c87d78ca15ecdbe6dabe9bf9e6340858c28f774 | 273 | py | Python | Task/Strip-comments-from-a-string/Python/strip-comments-from-a-string-1.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2021-05-05T13:42:20.000Z | 2021-05-05T13:42:20.000Z | Task/Strip-comments-from-a-string/Python/strip-comments-from-a-string-1.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Strip-comments-from-a-string/Python/strip-comments-from-a-string-1.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | def remove_comments(line, sep):
for s in sep:
i = line.find(s)
if i >= 0:
line = line[:i]
return line.strip()
# test
print remove_comments('apples ; pears # and bananas', ';#')
print remove_comments('apples ; pears # and bananas', '!')
| 24.818182 | 59 | 0.578755 | 37 | 273 | 4.189189 | 0.540541 | 0.270968 | 0.245161 | 0.322581 | 0.516129 | 0.516129 | 0.516129 | 0 | 0 | 0 | 0 | 0.005025 | 0.271062 | 273 | 10 | 60 | 27.3 | 0.773869 | 0.014652 | 0 | 0 | 0 | 0 | 0.220974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0cb02794ee7a674bbe1d08d6a762f0ef0989f2a4 | 578 | py | Python | web/controllers/food/index.py | Dewuel/catetime | 7a19ecd006366dc8113b8c43f76c2097083fbde6 | [
"MIT"
] | 1 | 2019-03-22T19:27:16.000Z | 2019-03-22T19:27:16.000Z | web/controllers/food/index.py | Dewuel/catetime | 7a19ecd006366dc8113b8c43f76c2097083fbde6 | [
"MIT"
] | null | null | null | web/controllers/food/index.py | Dewuel/catetime | 7a19ecd006366dc8113b8c43f76c2097083fbde6 | [
"MIT"
] | null | null | null | from flask import Blueprint
from common.libs.Helper import ops_render
route_food = Blueprint('food_page', __name__)
@route_food.route('/index')
def index():
return ops_render('food/index.html')
@route_food.route('/set')
def food_set():
return ops_render('food/set.html')
@route_food.route(... | 19.266667 | 46 | 0.678201 | 83 | 578 | 4.457831 | 0.26506 | 0.145946 | 0.189189 | 0.256757 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16782 | 578 | 29 | 47 | 19.931034 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0.277778 | 0.666667 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 4 |
0cd13fe3f052fbad97c51ea1c291839a7dbeacd8 | 780 | py | Python | periscope_pilot.py | xyla-io/bot_periscope | 2e8791dd8b54200ae0eebc7e6b0a4fa3506f4afb | [
"MIT"
] | null | null | null | periscope_pilot.py | xyla-io/bot_periscope | 2e8791dd8b54200ae0eebc7e6b0a4fa3506f4afb | [
"MIT"
] | null | null | null | periscope_pilot.py | xyla-io/bot_periscope | 2e8791dd8b54200ae0eebc7e6b0a4fa3506f4afb | [
"MIT"
] | null | null | null | from raspador import Pilot, UserInteractor, BrowserInteractor
from typing import Dict, List
class PeriscopePilot(Pilot):
config: Dict[str, any]
sign_in_wait = 3.0
def __init__(self, config: Dict[str, any], user: UserInteractor, browser: BrowserInteractor):
self.config = config
super().__init__(user=user... | 26 | 95 | 0.698718 | 104 | 780 | 5.067308 | 0.365385 | 0.113852 | 0.098672 | 0.144213 | 0.13093 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.174359 | 780 | 30 | 96 | 26 | 0.815217 | 0 | 0 | 0.217391 | 0 | 0 | 0.075544 | 0.03201 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0.086957 | 0.086957 | 0.217391 | 0.695652 | 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 |
0ce49055e4f748a6a74a776a3692f74f3f21911b | 402 | py | Python | pydexcom/errors.py | jeppesens/pydexcom | 4b88c9fa88d9155c430ba1cb23e723039d66f0f4 | [
"MIT"
] | 49 | 2020-05-06T19:15:34.000Z | 2022-03-22T18:08:38.000Z | pydexcom/errors.py | jeppesens/pydexcom | 4b88c9fa88d9155c430ba1cb23e723039d66f0f4 | [
"MIT"
] | 18 | 2020-05-27T17:27:21.000Z | 2022-02-28T21:07:31.000Z | pydexcom/errors.py | jeppesens/pydexcom | 4b88c9fa88d9155c430ba1cb23e723039d66f0f4 | [
"MIT"
] | 15 | 2020-05-20T21:07:27.000Z | 2022-01-31T20:58:10.000Z | """Errors used in pydexcom."""
class DexcomError(Exception):
"""Base class for all Dexcom errors."""
pass
class AccountError(DexcomError):
"""Errors involving Dexcom Share API credentials."""
pass
class SessionError(DexcomError):
"""Errors involving Dexcom Share API session."""
pass
c... | 15.461538 | 56 | 0.681592 | 41 | 402 | 6.682927 | 0.536585 | 0.09854 | 0.189781 | 0.233577 | 0.291971 | 0.291971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201493 | 402 | 25 | 57 | 16.08 | 0.853583 | 0.437811 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0cea93d248ffe7d9aa0e863beb2ad8e78c0f4c95 | 109 | py | Python | unbind/__init__.py | umd-mith/unbind | 1a1c486798be201ec398d4ec9255334edb7e0b20 | [
"MIT"
] | 3 | 2016-01-13T14:49:23.000Z | 2016-05-28T20:25:09.000Z | unbind/__init__.py | umd-mith/unbind | 1a1c486798be201ec398d4ec9255334edb7e0b20 | [
"MIT"
] | 2 | 2015-06-10T21:34:27.000Z | 2015-08-06T14:54:15.000Z | unbind/__init__.py | umd-mith/unbind | 1a1c486798be201ec398d4ec9255334edb7e0b20 | [
"MIT"
] | null | null | null | from .shared_canvas import Manifest
def jsonld(tei_file):
m = Manifest(tei_file)
return m.jsonld()
| 15.571429 | 35 | 0.715596 | 16 | 109 | 4.6875 | 0.6875 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192661 | 109 | 6 | 36 | 18.166667 | 0.852273 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cf88663224a03558a03fc746ee7e47d94447bc4 | 46 | py | Python | src/ciftostr/__init__.py | rowlesmr/ciftostr | 36c36b9ef2b131db23b950c4af5e0134e9376ce2 | [
"Apache-2.0"
] | null | null | null | src/ciftostr/__init__.py | rowlesmr/ciftostr | 36c36b9ef2b131db23b950c4af5e0134e9376ce2 | [
"Apache-2.0"
] | 1 | 2021-11-10T17:26:17.000Z | 2021-11-10T17:26:17.000Z | src/ciftostr/__init__.py | rowlesmr/ciftostr | 36c36b9ef2b131db23b950c4af5e0134e9376ce2 | [
"Apache-2.0"
] | null | null | null | __version__ = '0.1.2'
from .ciftostr import * | 15.333333 | 23 | 0.695652 | 7 | 46 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.152174 | 46 | 3 | 23 | 15.333333 | 0.641026 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0cf9bd80f90419aa6edcbccc07c0f3f31a6e96d5 | 194 | py | Python | proxylists/proxies/__init__.py | jelitox/proxylist | be4d3d595b8eb7ec48ca132d49a65dca20b6eee7 | [
"Apache-2.0"
] | null | null | null | proxylists/proxies/__init__.py | jelitox/proxylist | be4d3d595b8eb7ec48ca132d49a65dca20b6eee7 | [
"Apache-2.0"
] | null | null | null | proxylists/proxies/__init__.py | jelitox/proxylist | be4d3d595b8eb7ec48ca132d49a65dca20b6eee7 | [
"Apache-2.0"
] | 2 | 2021-05-17T23:01:43.000Z | 2021-10-20T22:32:16.000Z | import asyncio
from .freeproxy import FreeProxy
from .proxydb import ProxyDB
from .hidemy import Hidemy
__all__ = ["FreeProxy", "Hidemy", "ProxyDB"]
PROXY_LIST = [ProxyDB, Hidemy, FreeProxy]
| 19.4 | 44 | 0.762887 | 23 | 194 | 6.217391 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139175 | 194 | 9 | 45 | 21.555556 | 0.856287 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b4ff93dd3e26d3523c90f5b31b766ae44c72284 | 918 | py | Python | models/locators.py | sernote/workspace | 1f57493de7108a3d65b1a7b3134ffe725af33eed | [
"Apache-2.0"
] | null | null | null | models/locators.py | sernote/workspace | 1f57493de7108a3d65b1a7b3134ffe725af33eed | [
"Apache-2.0"
] | null | null | null | models/locators.py | sernote/workspace | 1f57493de7108a3d65b1a7b3134ffe725af33eed | [
"Apache-2.0"
] | null | null | null | from selenium.webdriver.common.by import By
class BaseLocator:
"""Implement locator for page element"""
def __init__(self, locator_value: str, locator_type=By.XPATH, parent=None):
self.locator_type = locator_type
self.locator_value = locator_value
self.parent = parent
def __repr_... | 31.655172 | 83 | 0.676471 | 112 | 918 | 5.205357 | 0.321429 | 0.207547 | 0.19211 | 0.102916 | 0.329331 | 0.12693 | 0.12693 | 0 | 0 | 0 | 0 | 0 | 0.22549 | 918 | 28 | 84 | 32.785714 | 0.819972 | 0.037037 | 0 | 0.2 | 0 | 0 | 0.056948 | 0.027335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.05 | 0.55 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0b6cf9c37ca504d6a59eb246c34cca31a91a4366 | 2,306 | py | Python | pddl/pddl_types.py | dosydon/translator-es | 9e70473dc4a943e5247451c64275bd46c496d042 | [
"Linux-OpenIB"
] | 4 | 2019-04-23T10:41:35.000Z | 2019-10-27T05:14:42.000Z | pddl/pddl_types.py | dosydon/translator-es | 9e70473dc4a943e5247451c64275bd46c496d042 | [
"Linux-OpenIB"
] | null | null | null | pddl/pddl_types.py | dosydon/translator-es | 9e70473dc4a943e5247451c64275bd46c496d042 | [
"Linux-OpenIB"
] | 4 | 2018-01-16T00:00:22.000Z | 2019-11-01T23:35:01.000Z | # Renamed from types.py to avoid clash with stdlib module.
# In the future, use explicitly relative imports or absolute
# imports as a better solution.
import itertools
def _get_type_predicate_name(type_name):
# PDDL allows mixing types and predicates, but some PDDL files
# have name collisions between types... | 32.478873 | 76 | 0.662186 | 319 | 2,306 | 4.529781 | 0.304075 | 0.088581 | 0.07474 | 0.088581 | 0.229066 | 0.050519 | 0.034602 | 0.034602 | 0 | 0 | 0 | 0.000582 | 0.254987 | 2,306 | 70 | 77 | 32.942857 | 0.840512 | 0.259757 | 0 | 0.146341 | 0 | 0 | 0.026564 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.317073 | false | 0 | 0.04878 | 0.219512 | 0.707317 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0b9bb90164d75624f0c7bd7d04602acaa5f03ec4 | 49 | py | Python | easyTCP/CLIENT/backend/__init__.py | dsal3389/easyTCP | 0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f | [
"MIT"
] | 4 | 2018-12-09T13:57:59.000Z | 2019-10-19T19:34:28.000Z | easyTCP/CLIENT/backend/__init__.py | dsal3389/easyTCP | 0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f | [
"MIT"
] | null | null | null | easyTCP/CLIENT/backend/__init__.py | dsal3389/easyTCP | 0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f | [
"MIT"
] | null | null | null | from .Client import CLIENT
__all__=('CLIENT',) | 16.333333 | 27 | 0.714286 | 6 | 49 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 49 | 3 | 28 | 16.333333 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0ba9736acbf37067f7defd80d7c3b5ccfc54c0dd | 88 | py | Python | deepctr/models/sequence/__init__.py | dzzxjl/DeepCTR | ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e | [
"Apache-2.0"
] | 6,192 | 2017-12-05T03:02:35.000Z | 2022-03-31T20:59:30.000Z | deepctr/models/sequence/__init__.py | dzzxjl/DeepCTR | ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e | [
"Apache-2.0"
] | 362 | 2018-04-15T06:53:20.000Z | 2022-03-21T15:03:02.000Z | deepctr/models/sequence/__init__.py | dzzxjl/DeepCTR | ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e | [
"Apache-2.0"
] | 1,960 | 2017-12-05T03:16:04.000Z | 2022-03-31T06:37:00.000Z | from .bst import BST
from .dien import DIEN
from .din import DIN
from .dsin import DSIN
| 17.6 | 22 | 0.772727 | 16 | 88 | 4.25 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 88 | 4 | 23 | 22 | 0.944444 | 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 |
0bbe9b7f1329e31dccd2487a0513c3be4141624b | 251 | py | Python | POO/2022-03-03/ex3/funcionario.py | ppedraum/2022 | ad2ae59331f0c1981430acaaea2bd644b819b4c0 | [
"MIT"
] | null | null | null | POO/2022-03-03/ex3/funcionario.py | ppedraum/2022 | ad2ae59331f0c1981430acaaea2bd644b819b4c0 | [
"MIT"
] | null | null | null | POO/2022-03-03/ex3/funcionario.py | ppedraum/2022 | ad2ae59331f0c1981430acaaea2bd644b819b4c0 | [
"MIT"
] | null | null | null | class Funcionario:
def __init__(self, nome, salario):
self.nome=nome
self.salario=float(salario)
def aum_salario(self, pct):
self.salario += (self.salario*pct/100)
def get_salario(self):
return self.salario | 27.888889 | 46 | 0.641434 | 32 | 251 | 4.84375 | 0.40625 | 0.283871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.247012 | 251 | 9 | 47 | 27.888889 | 0.804233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 0.625 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 4 |
e7f506bb6eeb572adff0aa40b15c98095277ca97 | 46 | py | Python | Code/nebulae/doc.py | DaveSeidel/QB_Nebulae_V2 | 4a0218bb6a05e835e74b126729a1c3cd221fc9b5 | [
"MIT"
] | 40 | 2019-12-30T03:44:36.000Z | 2022-02-07T23:09:42.000Z | Code/nebulae/doc.py | alex-thibodeau/QB_Nebulae_V2 | 34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54 | [
"MIT"
] | 11 | 2020-03-08T10:22:57.000Z | 2022-03-22T21:18:32.000Z | Code/nebulae/doc.py | alex-thibodeau/QB_Nebulae_V2 | 34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54 | [
"MIT"
] | 23 | 2020-01-20T11:12:20.000Z | 2022-03-02T20:39:09.000Z | import ctcsound
c = ctcsound.Csound()
help(c)
| 11.5 | 21 | 0.73913 | 7 | 46 | 4.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 46 | 3 | 22 | 15.333333 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f00561fa116ba307bbb62f747a45ec1a428f7c8a | 120 | py | Python | skabase/SKATestDevice/__main__.py | adityadangeska/lmc-base-classes | a3dada19b27fcc889546d754ef94986c55da5acc | [
"BSD-3-Clause"
] | 1 | 2019-05-31T09:47:31.000Z | 2019-05-31T09:47:31.000Z | skabase/SKATestDevice/__main__.py | adityadangeska/lmc-base-classes | a3dada19b27fcc889546d754ef94986c55da5acc | [
"BSD-3-Clause"
] | null | null | null | skabase/SKATestDevice/__main__.py | adityadangeska/lmc-base-classes | a3dada19b27fcc889546d754ef94986c55da5acc | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of the SKATestDevice project
#
#
#
from SKATestDevice import main
main()
| 12 | 48 | 0.666667 | 16 | 120 | 5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.2 | 120 | 9 | 49 | 13.333333 | 0.822917 | 0.566667 | 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 |
f00bf09a2919d63df72c1def55dde64cf8e5cb44 | 88 | py | Python | htmap/__main__.py | elin1231/htmap | b9c43ec1d86e90730210c3317409b75595061d91 | [
"Apache-2.0"
] | null | null | null | htmap/__main__.py | elin1231/htmap | b9c43ec1d86e90730210c3317409b75595061d91 | [
"Apache-2.0"
] | null | null | null | htmap/__main__.py | elin1231/htmap | b9c43ec1d86e90730210c3317409b75595061d91 | [
"Apache-2.0"
] | null | null | null | from .cli import cli
if __name__ == "__main__":
exit(cli.main(prog_name="htmap"))
| 14.666667 | 37 | 0.670455 | 13 | 88 | 3.846154 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 88 | 5 | 38 | 17.6 | 0.684932 | 0 | 0 | 0 | 0 | 0 | 0.147727 | 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 |
f018a66d765f21eb7a25e295045372155c50c929 | 89 | py | Python | backend/design_pattern/models.py | vuhaininh/iok | 694ede913f41532dab2816616923474db752d6a1 | [
"MIT"
] | 1 | 2020-05-21T08:24:25.000Z | 2020-05-21T08:24:25.000Z | backend/design_pattern/models.py | vuhaininh/iok | 694ede913f41532dab2816616923474db752d6a1 | [
"MIT"
] | 4 | 2021-03-19T03:44:01.000Z | 2021-09-22T19:04:17.000Z | backend/design_pattern/models.py | vuhaininh/iok | 694ede913f41532dab2816616923474db752d6a1 | [
"MIT"
] | null | null | null | from .patterns.creational.factory_method import \
ConcreteProduct1, ConcreteProduct2
| 29.666667 | 49 | 0.831461 | 8 | 89 | 9.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.11236 | 89 | 2 | 50 | 44.5 | 0.898734 | 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 |
f02c9cb883d2d53823b39c3518ae3d1fe8e78ef6 | 6,440 | py | Python | lowfat/migrations/0039_auto_20160720_1002.py | elena-kolomeets/lowfat | f7647f5cd12519f722e41808157a96cc3e37b6ce | [
"BSD-3-Clause"
] | 6 | 2017-02-23T16:44:36.000Z | 2019-03-18T11:39:03.000Z | lowfat/migrations/0039_auto_20160720_1002.py | elena-kolomeets/lowfat | f7647f5cd12519f722e41808157a96cc3e37b6ce | [
"BSD-3-Clause"
] | 286 | 2017-02-07T15:00:41.000Z | 2022-03-08T12:56:09.000Z | lowfat/migrations/0039_auto_20160720_1002.py | elena-kolomeets/lowfat | f7647f5cd12519f722e41808157a96cc3e37b6ce | [
"BSD-3-Clause"
] | 2 | 2018-06-19T12:38:08.000Z | 2020-11-23T12:15:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-07-20 10:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lowfat', '0038_auto_20160717_2144'),
]
operations = [
migrations.AlterField(... | 306.666667 | 6,029 | 0.656056 | 648 | 6,440 | 6.501543 | 0.649691 | 0.036079 | 0.024686 | 0.032281 | 0.07643 | 0.035604 | 0.035604 | 0.035604 | 0.035604 | 0 | 0 | 0.09342 | 0.117391 | 6,440 | 20 | 6,030 | 322 | 0.647783 | 0.010404 | 0 | 0 | 1 | 0 | 0.684615 | 0.003611 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f0354e14c4b61f401cabe3f28a4b06306e011966 | 89 | py | Python | pytictactoe/game_state.py | hixi/pytictactoe | e48e32d36a1f4b9c0e47dbb572d05d5848d76bef | [
"MIT"
] | null | null | null | pytictactoe/game_state.py | hixi/pytictactoe | e48e32d36a1f4b9c0e47dbb572d05d5848d76bef | [
"MIT"
] | 6 | 2018-03-14T22:54:25.000Z | 2022-02-09T23:35:33.000Z | pytictactoe/game_state.py | hixi/pytictactoe | e48e32d36a1f4b9c0e47dbb572d05d5848d76bef | [
"MIT"
] | 2 | 2018-03-14T17:09:56.000Z | 2020-05-01T05:04:17.000Z | from enum import Enum
GameState = Enum('GameState', ['WON', 'LOST', 'REMI', 'ONGOING'])
| 22.25 | 65 | 0.651685 | 11 | 89 | 5.272727 | 0.727273 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 89 | 3 | 66 | 29.666667 | 0.753247 | 0 | 0 | 0 | 0 | 0 | 0.303371 | 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 |
f071fa0ed9ed6878d5ad8de681c6cb3203eb641c | 258 | py | Python | pixivmanager/exceptions.py | WOo0W/pixivmanager-python | 327034eb83a696b710be25c55c89a5c5112955b1 | [
"MIT"
] | null | null | null | pixivmanager/exceptions.py | WOo0W/pixivmanager-python | 327034eb83a696b710be25c55c89a5c5112955b1 | [
"MIT"
] | null | null | null | pixivmanager/exceptions.py | WOo0W/pixivmanager-python | 327034eb83a696b710be25c55c89a5c5112955b1 | [
"MIT"
] | null | null | null | class PixivException(Exception):
pass
class DownloadException(PixivException):
pass
class APIException(PixivException):
pass
class LoginPasswordError(APIException):
pass
class LoginTokenError(APIException):
pass
| 13.578947 | 41 | 0.705426 | 20 | 258 | 9.1 | 0.4 | 0.197802 | 0.252747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236434 | 258 | 18 | 42 | 14.333333 | 0.923858 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.6 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b2bf19c160bcf64821f8527dee224cfbae5c5a70 | 226 | py | Python | graphdot/dataset/__init__.py | yhtang/GraphDot | 3d5ed4fbb2f6912052baa42780b436da76979691 | [
"BSD-3-Clause-LBNL"
] | 9 | 2020-02-14T18:07:39.000Z | 2021-12-15T12:07:31.000Z | graphdot/dataset/__init__.py | yhtang/graphdot | 3d5ed4fbb2f6912052baa42780b436da76979691 | [
"BSD-3-Clause-LBNL"
] | 3 | 2020-03-19T19:07:26.000Z | 2021-02-24T06:08:51.000Z | graphdot/dataset/__init__.py | yhtang/graphdot | 3d5ed4fbb2f6912052baa42780b436da76979691 | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-10-17T06:11:18.000Z | 2021-05-07T11:56:33.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ._get import get
from .qm7 import QM7
from .qm9 import QM9
from .metlin_smrt import METLIN_SMRT
from .ames import AMES
__all__ = ['get', 'QM7', 'QM9', 'METLIN_SMRT', 'AMES']
| 22.6 | 54 | 0.685841 | 36 | 226 | 4.083333 | 0.444444 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036649 | 0.154867 | 226 | 9 | 55 | 25.111111 | 0.732984 | 0.185841 | 0 | 0 | 0 | 0 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 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 | 1 | 0 | 0 | 4 |
b2d0a991be0060b4991e2064994aa545e6e467a5 | 153 | py | Python | countdown.py | ec404-cool/countdown | 672498222e695fc395f991756e0b046edb8453be | [
"Apache-2.0"
] | null | null | null | countdown.py | ec404-cool/countdown | 672498222e695fc395f991756e0b046edb8453be | [
"Apache-2.0"
] | null | null | null | countdown.py | ec404-cool/countdown | 672498222e695fc395f991756e0b046edb8453be | [
"Apache-2.0"
] | null | null | null | import time
import random
for x in range(0,23):
for y in range(0,59):
for z in range(0,59):
time.sleep(0.5)
print(x,y,z)
| 19.125 | 28 | 0.542484 | 30 | 153 | 2.766667 | 0.5 | 0.253012 | 0.289157 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 0.326797 | 153 | 7 | 29 | 21.857143 | 0.699029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
b2d3af649d02013cd4c5b333de97bc3909e05a86 | 16 | py | Python | lang/py/cookbook/v2/source/cb2_1_0_exm_12.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_0_exm_12.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_0_exm_12.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | for c in mystr:
| 8 | 15 | 0.6875 | 4 | 16 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 16 | 1 | 16 | 16 | 0.916667 | 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 |
6506127debc075f781155502c207c1560524645d | 48 | py | Python | designer/ops.py | joeedh/game.js | 9271efd2cbbc52ff3ceca7745a0fda114ab613d6 | [
"MIT"
] | null | null | null | designer/ops.py | joeedh/game.js | 9271efd2cbbc52ff3ceca7745a0fda114ab613d6 | [
"MIT"
] | null | null | null | designer/ops.py | joeedh/game.js | 9271efd2cbbc52ff3ceca7745a0fda114ab613d6 | [
"MIT"
] | null | null | null | from . import utils
reg = utils.Registrar([
])
| 9.6 | 23 | 0.666667 | 6 | 48 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 48 | 4 | 24 | 12 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6547509d541c618c1a9f333442e2d089307f2bf0 | 156 | py | Python | arbitrage/public_markets/eth/huobiprousdt.py | aviatorBeijing/bitcoin-arbitrage | a82edf28383466a05b954e3983d204f2046e5c31 | [
"MIT"
] | null | null | null | arbitrage/public_markets/eth/huobiprousdt.py | aviatorBeijing/bitcoin-arbitrage | a82edf28383466a05b954e3983d204f2046e5c31 | [
"MIT"
] | null | null | null | arbitrage/public_markets/eth/huobiprousdt.py | aviatorBeijing/bitcoin-arbitrage | a82edf28383466a05b954e3983d204f2046e5c31 | [
"MIT"
] | null | null | null | from arbitrage.public_markets._huobipro import Huobipro
class HuobiproUSDT(Huobipro):
def __init__(self):
super().__init__("USD", "eth_usdt")
| 22.285714 | 55 | 0.730769 | 18 | 156 | 5.722222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 156 | 6 | 56 | 26 | 0.780303 | 0 | 0 | 0 | 0 | 0 | 0.070513 | 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 |
e8f09278daf308e52eeb2006d4990ac6f03a59ea | 39,355 | py | Python | data/Garrison.py | mkumatag/openbmc-automation | 4800237bcf6f516387b5510699396154b05a5b34 | [
"Apache-2.0"
] | 7 | 2015-12-21T06:58:29.000Z | 2016-08-09T09:21:01.000Z | data/Garrison.py | rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291 | 08540c0f083a25b5b4e7a4c839080fe54383038c | [
"Apache-2.0"
] | 55 | 2015-11-05T05:54:22.000Z | 2016-06-15T10:04:01.000Z | data/Garrison.py | rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291 | 08540c0f083a25b5b4e7a4c839080fe54383038c | [
"Apache-2.0"
] | 16 | 2015-11-03T20:01:55.000Z | 2020-11-12T16:26:46.000Z | #! /usr/bin/python
HOME_PATH = './'
CACHE_PATH = '/var/cache/obmc/'
FLASH_DOWNLOAD_PATH = "/tmp"
GPIO_BASE = 320
SYSTEM_NAME = "Garrison"
## System states
## state can change to next state in 2 ways:
## - a process emits a GotoSystemState signal with state name to goto
## - objects specified in EXIT_STATE_DEPE... | 62.767145 | 135 | 0.622564 | 4,290 | 39,355 | 5.479487 | 0.120979 | 0.134386 | 0.195601 | 0.25771 | 0.767048 | 0.740333 | 0.486791 | 0.382865 | 0.374357 | 0.364062 | 0 | 0.061417 | 0.191996 | 39,355 | 626 | 136 | 62.867412 | 0.67782 | 0.009503 | 0 | 0.13799 | 0 | 0 | 0.602109 | 0.345463 | 0 | 0 | 0.013139 | 0 | 0 | 1 | 0.001704 | false | 0 | 0 | 0 | 0.003407 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 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 |
e8fcd78db60d1dde3190c88be2f829218b6fa773 | 147 | py | Python | scripts/translate-test.py | MasatoKubotera/translate | c8420e7f7336ad69e35180dea539c816aa3db33a | [
"BSD-3-Clause"
] | null | null | null | scripts/translate-test.py | MasatoKubotera/translate | c8420e7f7336ad69e35180dea539c816aa3db33a | [
"BSD-3-Clause"
] | null | null | null | scripts/translate-test.py | MasatoKubotera/translate | c8420e7f7336ad69e35180dea539c816aa3db33a | [
"BSD-3-Clause"
] | 2 | 2021-01-09T13:49:26.000Z | 2022-01-08T16:43:14.000Z | #!/usr/bin/env python3
from googletrans import Translator
translator = Translator()
print(translator.translate('Hello', src='en', dest='ja').text) | 29.4 | 62 | 0.755102 | 19 | 147 | 5.842105 | 0.842105 | 0.36036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.081633 | 147 | 5 | 62 | 29.4 | 0.814815 | 0.142857 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3301ff114a710e98f01ab21239c1a7abaa20818f | 158 | py | Python | ex111/utilidadesCeV/dado.py | felipesch92/PythonExercicios | 73edcbde6beaabcfc86af3dd6e58473f1eecabd3 | [
"MIT"
] | null | null | null | ex111/utilidadesCeV/dado.py | felipesch92/PythonExercicios | 73edcbde6beaabcfc86af3dd6e58473f1eecabd3 | [
"MIT"
] | null | null | null | ex111/utilidadesCeV/dado.py | felipesch92/PythonExercicios | 73edcbde6beaabcfc86af3dd6e58473f1eecabd3 | [
"MIT"
] | null | null | null | def moeda(v):
"""
-> Função para formatar o valor
:param v: Valor
:return: Valor formatado
"""
return f'R$ {v:.2f}'.replace('.', ',')
| 19.75 | 42 | 0.518987 | 20 | 158 | 4.1 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.278481 | 158 | 7 | 43 | 22.571429 | 0.710526 | 0.455696 | 0 | 0 | 0 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
33125e5f0937898fc4c7b0ccf96845318f8b3ed7 | 122 | py | Python | src/ahbicht/__init__.py | Hochfrequenz/ahbicht | 90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11 | [
"MIT"
] | null | null | null | src/ahbicht/__init__.py | Hochfrequenz/ahbicht | 90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11 | [
"MIT"
] | 48 | 2021-08-31T15:00:47.000Z | 2022-03-25T18:32:51.000Z | src/ahbicht/__init__.py | Hochfrequenz/ahbicht | 90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11 | [
"MIT"
] | null | null | null | """
AHBicht is a lark based parser and evaluation framework for conditions that occur in Anwendungshandbüchern (AHB).
"""
| 30.5 | 113 | 0.778689 | 16 | 122 | 5.9375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 122 | 3 | 114 | 40.666667 | 0.913462 | 0.92623 | 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 |
332b2b35620e893a0cd210d2f57ec2cdabf544f0 | 180 | py | Python | articles/forms.py | urosjevremovic/News-app | 8fbeee3f8a7c0ca0fd1b29a2219dcbb3dff62a05 | [
"MIT"
] | null | null | null | articles/forms.py | urosjevremovic/News-app | 8fbeee3f8a7c0ca0fd1b29a2219dcbb3dff62a05 | [
"MIT"
] | null | null | null | articles/forms.py | urosjevremovic/News-app | 8fbeee3f8a7c0ca0fd1b29a2219dcbb3dff62a05 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from articles.models import Comment
class CommentCreateForm(ModelForm):
class Meta:
model = Comment
fields = ['comment', ] | 20 | 35 | 0.7 | 19 | 180 | 6.631579 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227778 | 180 | 9 | 36 | 20 | 0.906475 | 0 | 0 | 0 | 0 | 0 | 0.038674 | 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 |
33332274ede5551c6fe6542468618c62c627f919 | 96 | py | Python | workshop/minion/app/__init__.py | joaofilis/workshop_gru | 66bad189a36a1ac3d3e8a23f5bf26df23487afac | [
"Apache-2.0"
] | null | null | null | workshop/minion/app/__init__.py | joaofilis/workshop_gru | 66bad189a36a1ac3d3e8a23f5bf26df23487afac | [
"Apache-2.0"
] | null | null | null | workshop/minion/app/__init__.py | joaofilis/workshop_gru | 66bad189a36a1ac3d3e8a23f5bf26df23487afac | [
"Apache-2.0"
] | null | null | null | from app.config import Config
import os, logging
global config
global misc
config = Config()
| 10.666667 | 29 | 0.770833 | 14 | 96 | 5.285714 | 0.571429 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177083 | 96 | 8 | 30 | 12 | 0.936709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
333764fc9351d51ca183393143d47cd9a6d617ff | 622 | py | Python | litebot/core/minecraft/protocol/__init__.py | rybot666/LiteBot | 9598c021a59ee7983a1515c54a6cbc43bfcb5eb9 | [
"MIT"
] | 22 | 2020-10-18T22:36:51.000Z | 2022-03-27T07:49:25.000Z | litebot/core/minecraft/protocol/__init__.py | rybot666/LiteBot | 9598c021a59ee7983a1515c54a6cbc43bfcb5eb9 | [
"MIT"
] | 8 | 2021-07-14T06:46:47.000Z | 2021-08-17T06:09:52.000Z | litebot/core/minecraft/protocol/__init__.py | rybot666/LiteBot | 9598c021a59ee7983a1515c54a6cbc43bfcb5eb9 | [
"MIT"
] | 7 | 2021-05-04T16:56:19.000Z | 2021-10-12T05:44:31.000Z | """
A good amount of this code is sourced from mcstatus by dinnerbone.
I decided to use his code as it basically handles socket connections,
and simple usage of minecraft's query protocol and his code implements
it quite well. Some bits of it have of course been modified in order
to better suit my needs. I did not simp... | 41.466667 | 70 | 0.776527 | 111 | 622 | 4.351351 | 0.675676 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178457 | 622 | 15 | 71 | 41.466667 | 0.945205 | 0.877814 | 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 |
333e17ad345f61965456174585cb5df0afccc134 | 26 | py | Python | proglove_streams/models/__init__.py | workaroundgmbh/proglove_streams_api_reference | 9da71c01d1717085cd2e7a1865f6183723aa73a3 | [
"Fair",
"Unlicense"
] | null | null | null | proglove_streams/models/__init__.py | workaroundgmbh/proglove_streams_api_reference | 9da71c01d1717085cd2e7a1865f6183723aa73a3 | [
"Fair",
"Unlicense"
] | null | null | null | proglove_streams/models/__init__.py | workaroundgmbh/proglove_streams_api_reference | 9da71c01d1717085cd2e7a1865f6183723aa73a3 | [
"Fair",
"Unlicense"
] | 3 | 2021-06-28T08:19:53.000Z | 2022-01-31T15:34:56.000Z | """Streams API models."""
| 13 | 25 | 0.615385 | 3 | 26 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.695652 | 0.730769 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
68218c08d240422ae4871c3383d2f1bb0996f1d5 | 23 | py | Python | tests/test_underdevelopment.py | jazellesclutter/aiohttp-jwtplus | bf6e9d5fba4fd6b48ec256ffe6b3641f85e580cd | [
"MIT"
] | 5 | 2020-03-10T17:30:57.000Z | 2021-05-05T22:59:37.000Z | tests/test_underdevelopment.py | jazellesclutter/aiohttp-jwtplus | bf6e9d5fba4fd6b48ec256ffe6b3641f85e580cd | [
"MIT"
] | null | null | null | tests/test_underdevelopment.py | jazellesclutter/aiohttp-jwtplus | bf6e9d5fba4fd6b48ec256ffe6b3641f85e580cd | [
"MIT"
] | 3 | 2020-03-10T17:32:06.000Z | 2021-05-05T22:59:47.000Z | '''
test commit
'''
| 5.75 | 12 | 0.434783 | 2 | 23 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 23 | 3 | 13 | 7.666667 | 0.625 | 0.478261 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
68282a27e2d492b62ab1b9038a04a5ca81d6448f | 466 | py | Python | measure/views.py | alekslt/powerusageanalysis | a0eaab9c5a895eb9fc4693dab892476f97435fd7 | [
"MIT"
] | 1 | 2017-06-06T16:53:00.000Z | 2017-06-06T16:53:00.000Z | measure/views.py | alekslt/powerusageanalysis | a0eaab9c5a895eb9fc4693dab892476f97435fd7 | [
"MIT"
] | null | null | null | measure/views.py | alekslt/powerusageanalysis | a0eaab9c5a895eb9fc4693dab892476f97435fd7 | [
"MIT"
] | null | null | null | from pyramid.view import view_config
from .models import (
Measurements,
)
mes = Measurements(0)
@view_config(route_name='measuredata', renderer='json')
def measuredata(request):
return Measurements(0)
@view_config(route_name='measure', renderer='templates/measure.pt')
def measure(request):
return m... | 23.3 | 67 | 0.742489 | 58 | 466 | 5.758621 | 0.413793 | 0.11976 | 0.134731 | 0.170659 | 0.191617 | 0.191617 | 0 | 0 | 0 | 0 | 0 | 0.00489 | 0.122318 | 466 | 19 | 68 | 24.526316 | 0.811736 | 0 | 0 | 0 | 0 | 0 | 0.178112 | 0.049356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.214286 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6841668cf05ea97af114b2d3523c2ef3ec70220a | 88 | py | Python | python/run_add_callbacks.py | ljn917/celery_worker_cpp | f756ae10448c6fd0e6d721763d60601db721e811 | [
"MIT"
] | null | null | null | python/run_add_callbacks.py | ljn917/celery_worker_cpp | f756ae10448c6fd0e6d721763d60601db721e811 | [
"MIT"
] | null | null | null | python/run_add_callbacks.py | ljn917/celery_worker_cpp | f756ae10448c6fd0e6d721763d60601db721e811 | [
"MIT"
] | null | null | null | import tasks
res = tasks.add.apply_async((4, 4), link=tasks.add.s(10))
print(res.get())
| 22 | 57 | 0.693182 | 17 | 88 | 3.529412 | 0.705882 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.090909 | 88 | 3 | 58 | 29.333333 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 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 |
6846b85c9c745be5e4f886e5d2623bc9e134445e | 107 | py | Python | sktime/contrib/vector_classifiers/__init__.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | 5,349 | 2019-03-21T14:56:50.000Z | 2022-03-31T11:25:30.000Z | sktime/contrib/vector_classifiers/__init__.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | 1,803 | 2019-03-26T13:33:53.000Z | 2022-03-31T23:58:10.000Z | sktime/contrib/vector_classifiers/__init__.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | 911 | 2019-03-25T01:21:30.000Z | 2022-03-31T04:45:51.000Z | # -*- coding: utf-8 -*-
"""Vector classification algorithms, not designed specifically for time series."""
| 35.666667 | 82 | 0.71028 | 12 | 107 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.130841 | 107 | 2 | 83 | 53.5 | 0.806452 | 0.925234 | 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 |
684780a28c8474730cce73c381ef7c308bc40794 | 355 | py | Python | apps/accounts/serializers.py | seanlefevre/openduty | 34ab21117f114ccc808d8b0aa2cb801c819bdb86 | [
"MIT"
] | 145 | 2016-04-11T06:53:13.000Z | 2022-03-22T05:15:49.000Z | apps/accounts/serializers.py | seanlefevre/openduty | 34ab21117f114ccc808d8b0aa2cb801c819bdb86 | [
"MIT"
] | 78 | 2017-09-24T10:59:49.000Z | 2022-02-12T07:36:27.000Z | apps/accounts/serializers.py | seanlefevre/openduty | 34ab21117f114ccc808d8b0aa2cb801c819bdb86 | [
"MIT"
] | 30 | 2016-04-11T06:53:16.000Z | 2021-12-29T11:39:26.000Z | from rest_framework import serializers
from django.contrib.auth.models import User, Group
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'email', 'groups')
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model ... | 22.1875 | 54 | 0.68169 | 36 | 355 | 6.694444 | 0.638889 | 0.215768 | 0.257261 | 0.290456 | 0.33195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216901 | 355 | 15 | 55 | 23.666667 | 0.866906 | 0 | 0 | 0.2 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
685fb165658e2a5aea4c6b5cce74ec76869a7946 | 91 | py | Python | backend/paranoia/apps.py | SpacePrius/ParanoiaBot | a0260a2e4a0d3d32e6dfe654bc6b6f6841a13aa4 | [
"MIT"
] | 1 | 2021-12-20T00:02:42.000Z | 2021-12-20T00:02:42.000Z | backend/paranoia/apps.py | SpacePrius/ParanoiaBot | a0260a2e4a0d3d32e6dfe654bc6b6f6841a13aa4 | [
"MIT"
] | null | null | null | backend/paranoia/apps.py | SpacePrius/ParanoiaBot | a0260a2e4a0d3d32e6dfe654bc6b6f6841a13aa4 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ParanoiaConfig(AppConfig):
name = 'paranoia'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 |
687e78c39954a734100caf5f670a7a429a45ab41 | 206 | py | Python | api/google_search_console/errors.py | jmelm93/MLTS | 5004995c6355ba066abaeb3fc45cf48474a8463c | [
"Apache-2.0"
] | 117 | 2018-11-25T02:30:31.000Z | 2022-03-24T08:05:21.000Z | api/google_search_console/errors.py | jmelm93/MLTS | 5004995c6355ba066abaeb3fc45cf48474a8463c | [
"Apache-2.0"
] | 4 | 2019-03-01T04:12:54.000Z | 2019-12-10T21:09:30.000Z | api/google_search_console/errors.py | jmelm93/MLTS | 5004995c6355ba066abaeb3fc45cf48474a8463c | [
"Apache-2.0"
] | 43 | 2019-01-28T22:07:55.000Z | 2022-03-18T21:48:00.000Z | from __future__ import absolute_import, print_function, unicode_literals
class BaseGscError(Exception):
pass
class GscConfigError(BaseGscError):
pass
class GscApiError(BaseGscError):
pass
| 14.714286 | 72 | 0.786408 | 21 | 206 | 7.380952 | 0.666667 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160194 | 206 | 13 | 73 | 15.846154 | 0.895954 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.428571 | 0.142857 | 0 | 0.571429 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
688b2abb34d98d372483698acbf4879093d7bbc4 | 151 | py | Python | scripts/run_tests.py | rooster1979/mlfin | cc7efe071713ae522fc21519dc344e39b718c6f6 | [
"MIT"
] | 4 | 2020-03-07T09:49:06.000Z | 2020-12-06T11:50:26.000Z | scripts/run_tests.py | anirbanghoshsbi/mlfinlab | 3a6381d47fb50d86ce657f184490f012adf6fb37 | [
"BSD-3-Clause"
] | null | null | null | scripts/run_tests.py | anirbanghoshsbi/mlfinlab | 3a6381d47fb50d86ce657f184490f012adf6fb37 | [
"BSD-3-Clause"
] | 1 | 2020-09-10T17:56:25.000Z | 2020-09-10T17:56:25.000Z | import unittest
import xmlrunner
if __name__ == '__main__':
unittest.main(testRunner=xmlrunner.XMLTestRunner(output='test_reports'), module=None)
| 25.166667 | 89 | 0.788079 | 17 | 151 | 6.470588 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099338 | 151 | 5 | 90 | 30.2 | 0.808824 | 0 | 0 | 0 | 0 | 0 | 0.13245 | 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 |
689863e332eb8975cad946b68f50823a29e66695 | 110 | py | Python | rapidapi/livescore/__init__.py | z33kz33k/gsheets-tennis | 0cf661d0aa3e64fc3c802ba284895d92f2e40a28 | [
"MIT"
] | 1 | 2022-01-14T09:07:13.000Z | 2022-01-14T09:07:13.000Z | rapidapi/livescore/__init__.py | z33kz33k/gsheets-tennis | 0cf661d0aa3e64fc3c802ba284895d92f2e40a28 | [
"MIT"
] | null | null | null | rapidapi/livescore/__init__.py | z33kz33k/gsheets-tennis | 0cf661d0aa3e64fc3c802ba284895d92f2e40a28 | [
"MIT"
] | null | null | null | """
rapidapi.livescore
~~~~~~~~~~~~~~~~~~
RapidAPI LiveScore API modules.
@author: z33k
""" | 12.222222 | 35 | 0.490909 | 8 | 110 | 6.75 | 0.75 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.254545 | 110 | 9 | 36 | 12.222222 | 0.634146 | 0.763636 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
68a7b9f5302040e4ee6e31b4f038b9b02cbf4cc4 | 94 | py | Python | examples/src/main/scala/example/logging/aggregator/python/tmt_formatter.py | scala-steward/csw | e3f1970b1c374693be0c4bbec068183e3395010f | [
"Apache-2.0"
] | 28 | 2016-02-03T17:00:26.000Z | 2022-03-28T10:40:39.000Z | examples/src/main/scala/example/logging/aggregator/python/tmt_formatter.py | scala-steward/csw | e3f1970b1c374693be0c4bbec068183e3395010f | [
"Apache-2.0"
] | 21 | 2016-01-06T20:44:49.000Z | 2022-02-21T09:25:35.000Z | examples/src/main/scala/example/logging/aggregator/python/tmt_formatter.py | scala-steward/csw | e3f1970b1c374693be0c4bbec068183e3395010f | [
"Apache-2.0"
] | 20 | 2015-09-30T18:43:03.000Z | 2022-03-14T07:10:53.000Z | import logging
import time
class UTCFormatter(logging.Formatter):
converter = time.gmtime | 18.8 | 38 | 0.797872 | 11 | 94 | 6.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138298 | 94 | 5 | 39 | 18.8 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7ac2a6d7a044b4c8617948a5da5cecaefdaf399 | 22 | py | Python | generator/v3io_generator/__init__.py | v3io/data-science | a878d2e0cc20ecc536ce825de380728cf2e107ca | [
"Apache-2.0"
] | null | null | null | generator/v3io_generator/__init__.py | v3io/data-science | a878d2e0cc20ecc536ce825de380728cf2e107ca | [
"Apache-2.0"
] | null | null | null | generator/v3io_generator/__init__.py | v3io/data-science | a878d2e0cc20ecc536ce825de380728cf2e107ca | [
"Apache-2.0"
] | null | null | null | name="v3io_generator"
| 11 | 21 | 0.818182 | 3 | 22 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.045455 | 22 | 1 | 22 | 22 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d7c5924357aef40802dbf91d82c011e05b1233e5 | 202 | py | Python | Experiments/Nate/DjangoRewrite/DjangoRewrite/selectunesauth/forms.py | ntuckertriplet/CS309 | fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5 | [
"Apache-2.0"
] | 2 | 2020-04-27T20:20:53.000Z | 2020-04-27T22:18:53.000Z | Experiments/Nate/DjangoRewrite/DjangoRewrite/selectunesauth/forms.py | ntuckertriplet/CS309 | fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5 | [
"Apache-2.0"
] | 7 | 2021-03-19T02:32:03.000Z | 2021-09-22T18:56:37.000Z | Experiments/Nate/DjangoRewrite/DjangoRewrite/selectunesauth/forms.py | ntuckertriplet/CS309 | fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5 | [
"Apache-2.0"
] | 1 | 2020-04-27T20:21:59.000Z | 2020-04-27T20:21:59.000Z | from django import forms
from djangorewrite.party.models import RewriteUser
class AddRewriteUser(forms.ModelForm):
class Meta:
model = RewriteUser
fields = ['email', 'password']
| 18.363636 | 50 | 0.707921 | 21 | 202 | 6.809524 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212871 | 202 | 10 | 51 | 20.2 | 0.899371 | 0 | 0 | 0 | 0 | 0 | 0.064356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
d7d88f7056c080f12036fae5ffa7bbec29185e6f | 799 | py | Python | tests/test_snarf.py | kazmierczakk90/onlysnarf | b6cf3158aabf9b3bef3e2749a065ac1c65590788 | [
"MIT"
] | 41 | 2019-06-08T05:50:48.000Z | 2022-03-03T11:50:04.000Z | tests/test_snarf.py | kazmierczakk90/onlysnarf | b6cf3158aabf9b3bef3e2749a065ac1c65590788 | [
"MIT"
] | 5 | 2020-06-28T10:57:04.000Z | 2021-05-25T23:24:50.000Z | tests/test_snarf.py | kazmierczakk90/onlysnarf | b6cf3158aabf9b3bef3e2749a065ac1c65590788 | [
"MIT"
] | 9 | 2019-10-28T15:57:43.000Z | 2022-03-21T22:06:57.000Z | import unittest
import os
from decimal import Decimal
os.environ['ENV'] = "test"
# from lib.config import config
from lib.snarf import Snarf
# import warnings
class TestSnarf(unittest.TestCase):
def setUp(self):
self.test_snarf = Snarf()
# @classmethod
# def setUpClass(cls):
# ... | 16.645833 | 92 | 0.508135 | 77 | 799 | 5.090909 | 0.415584 | 0.122449 | 0.140306 | 0.191327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290363 | 799 | 48 | 93 | 16.645833 | 0.691358 | 0.165207 | 0 | 0.272727 | 0 | 0 | 0.026455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.272727 | 0.181818 | 0 | 0.545455 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
d7f484993d24ece22cd542bbe38096b8359e1fe6 | 212 | py | Python | mods/mcpython/Item/barrier.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | 2 | 2020-04-23T16:25:51.000Z | 2020-08-27T17:56:16.000Z | mods/mcpython/Item/barrier.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | null | null | null | mods/mcpython/Item/barrier.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | null | null | null | from .Item import *
class Barrier(Item):
def getName(self):
return "minecraft:barrier"
def getTexturFile(self):
return "./assets/textures/items/barrier.png"
handler.register(Barrier)
| 16.307692 | 52 | 0.674528 | 24 | 212 | 5.958333 | 0.708333 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 212 | 12 | 53 | 17.666667 | 0.85119 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 0.165094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 0.857143 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
cc133d4a876b9c2771110042dfe2f43661057658 | 56,034 | py | Python | src/desktopvirtualization/azext_desktopvirtualization/vendored_sdks/desktopvirtualization/models/_models_py3.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/desktopvirtualization/azext_desktopvirtualization/vendored_sdks/desktopvirtualization/models/_models_py3.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/desktopvirtualization/azext_desktopvirtualization/vendored_sdks/desktopvirtualization/models/_models_py3.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 38.300752 | 140 | 0.649088 | 6,085 | 56,034 | 5.79129 | 0.058669 | 0.030392 | 0.022134 | 0.022985 | 0.763848 | 0.73618 | 0.725596 | 0.714784 | 0.69807 | 0.67046 | 0 | 0.000712 | 0.222633 | 56,034 | 1,462 | 141 | 38.326949 | 0.808306 | 0.403541 | 0 | 0.691327 | 0 | 0 | 0.241524 | 0.080201 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038265 | false | 0.005102 | 0.005102 | 0 | 0.146684 | 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 |
cc20c7f6d7ed88b61f5335db4689e9316f51d789 | 224 | py | Python | tests/mockmodules/connectors/connector_bare.py | jakesen/opsdroid | 8bd640685ee1b8c8965dfdeb8f1ab06a45a2b85b | [
"Apache-2.0"
] | null | null | null | tests/mockmodules/connectors/connector_bare.py | jakesen/opsdroid | 8bd640685ee1b8c8965dfdeb8f1ab06a45a2b85b | [
"Apache-2.0"
] | 1 | 2018-10-02T13:16:19.000Z | 2018-10-02T13:16:19.000Z | tests/mockmodules/connectors/connector_bare.py | jakesen/opsdroid | 8bd640685ee1b8c8965dfdeb8f1ab06a45a2b85b | [
"Apache-2.0"
] | null | null | null | """A mocked connector module."""
from opsdroid.connector import Connector
class ConnectorTest(Connector):
"""The mocked connector class."""
def __init__(self, config):
"""Start the class."""
pass
| 18.666667 | 40 | 0.651786 | 24 | 224 | 5.916667 | 0.666667 | 0.211268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 224 | 11 | 41 | 20.363636 | 0.811429 | 0.316964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
cc2db28cf352cf5737035edd38a425fdd7db7ec8 | 2,515 | py | Python | tests/test_servo.py | MultipedRobotics/quadruped | 17c2023e577cb6593b3f5a5fcbd5a9a57a5da46a | [
"MIT"
] | 14 | 2018-12-13T01:40:35.000Z | 2021-12-23T12:57:42.000Z | tests/test_servo.py | MomsFriendlyRobotCompany/quadruped | 17c2023e577cb6593b3f5a5fcbd5a9a57a5da46a | [
"MIT"
] | null | null | null | tests/test_servo.py | MomsFriendlyRobotCompany/quadruped | 17c2023e577cb6593b3f5a5fcbd5a9a57a5da46a | [
"MIT"
] | 4 | 2019-12-31T12:48:31.000Z | 2020-11-21T14:12:11.000Z | # #!/usr/bin/env python
# ##############################################
# # The MIT License (MIT)
# # Copyright (c) 2016 Kevin Walchko
# # see LICENSE for full details
# ##############################################
# # run this with "nosetests -v test_servo.py"
#
# from __future__ import print_function
# from __futu... | 35.928571 | 73 | 0.53161 | 390 | 2,515 | 3.392308 | 0.187179 | 0.14966 | 0.145125 | 0.099773 | 0.668178 | 0.666667 | 0.603175 | 0.603175 | 0.603175 | 0.603175 | 0 | 0.148076 | 0.183698 | 2,515 | 69 | 74 | 36.449275 | 0.496347 | 0.897018 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0bd6c63f2047aa460ab7b948ce8eaab81492b19a | 151 | py | Python | open/utilities/date_and_time.py | awesome-archive/open | 12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9 | [
"MIT"
] | null | null | null | open/utilities/date_and_time.py | awesome-archive/open | 12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9 | [
"MIT"
] | null | null | null | open/utilities/date_and_time.py | awesome-archive/open | 12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9 | [
"MIT"
] | null | null | null | from datetime import datetime
def print_current_time():
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print(current_time)
| 18.875 | 43 | 0.688742 | 21 | 151 | 4.761905 | 0.571429 | 0.33 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178808 | 151 | 7 | 44 | 21.571429 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.4 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0bea4a1d80824e60babd88585cddba0a56d8bcf0 | 284 | py | Python | Front-end/antlr/jamon.py | cor14095/probases1 | 0e99fde61108379a22339603f94238aa81808968 | [
"MIT"
] | 1 | 2017-04-02T01:52:57.000Z | 2017-04-02T01:52:57.000Z | Front-end/antlr/jamon.py | cor14095/probases1 | 0e99fde61108379a22339603f94238aa81808968 | [
"MIT"
] | null | null | null | Front-end/antlr/jamon.py | cor14095/probases1 | 0e99fde61108379a22339603f94238aa81808968 | [
"MIT"
] | null | null | null | import sys
import logging
from antlr4 import *
from SQLGramaticaLexer import SQLGramaticaLexer
from SQLGramaticaParser import SQLGramaticaParser
from ParserErrorListener import ParserErrorListener
from SQLGramaticaListener import SQLGramaticaListener
def test(path):
return path | 25.818182 | 53 | 0.869718 | 28 | 284 | 8.821429 | 0.464286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 0.116197 | 284 | 11 | 54 | 25.818182 | 0.98008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.777778 | 0.111111 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
0bf5027cde828b911c5b13cef360b75c33b3e9f6 | 132 | py | Python | fire/models/__init__.py | mzntaka0/pytorch_framework | 1cd79567f86249aad9b7fa039c05f6bcc1c2941a | [
"Apache-2.0"
] | 2 | 2020-07-02T01:18:48.000Z | 2021-03-27T12:32:41.000Z | fire/models/__init__.py | mzntaka0/fire | 1cd79567f86249aad9b7fa039c05f6bcc1c2941a | [
"Apache-2.0"
] | null | null | null | fire/models/__init__.py | mzntaka0/fire | 1cd79567f86249aad9b7fa039c05f6bcc1c2941a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
""" Train models module. """
#from modules.models.pytorch.alex_net import AlexNet
#__all__ = ['AlexNet']
| 16.5 | 52 | 0.651515 | 16 | 132 | 5.0625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.151515 | 132 | 7 | 53 | 18.857143 | 0.714286 | 0.878788 | 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 |
040e486a5aeac8f129d0caf54b01d5c0914e00fe | 183 | py | Python | demo_stubs_lib.py | cebucodecamp/pizzapy23-mypy | 648f636356e7771cb5b122620dcdd37fcd800553 | [
"CC0-1.0"
] | null | null | null | demo_stubs_lib.py | cebucodecamp/pizzapy23-mypy | 648f636356e7771cb5b122620dcdd37fcd800553 | [
"CC0-1.0"
] | null | null | null | demo_stubs_lib.py | cebucodecamp/pizzapy23-mypy | 648f636356e7771cb5b122620dcdd37fcd800553 | [
"CC0-1.0"
] | null | null | null | import math
def f(s):
if s == "MyPy":
return math.e
elif s == "PizzaPY":
return math.e
else:
return len(s)
version = "Module version: 0.2882a"
| 13.071429 | 35 | 0.52459 | 26 | 183 | 3.692308 | 0.653846 | 0.208333 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0.349727 | 183 | 13 | 36 | 14.076923 | 0.764706 | 0 | 0 | 0.222222 | 0 | 0 | 0.185792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0424b484b395a3471378f2a09dcc2c5cde62b1c9 | 152 | py | Python | sendinblue/apps.py | apihackers/wagtail-sendinblue | c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc | [
"MIT"
] | 1 | 2018-02-01T16:39:08.000Z | 2018-02-01T16:39:08.000Z | sendinblue/apps.py | apihackers/wagtail-sendinblue | c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc | [
"MIT"
] | null | null | null | sendinblue/apps.py | apihackers/wagtail-sendinblue | c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SendInBlueConfig(AppConfig):
name = 'sendinblue'
label = 'sendinblue'
verbose_name = 'SendInBlue'
| 19 | 34 | 0.723684 | 15 | 152 | 7.266667 | 0.733333 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190789 | 152 | 7 | 35 | 21.714286 | 0.886179 | 0 | 0 | 0 | 0 | 0 | 0.197368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
04258977b5eaec7dbebb41f3cc085ebb675b2037 | 105,721 | py | Python | docs/tutorials/11 - PV ICE Journal.py | NREL/PV-DEMICE | 6e2938950ff10c37f176f46aeb76c78de609f535 | [
"BSD-3-Clause"
] | 3 | 2020-05-11T15:19:47.000Z | 2020-09-10T16:53:10.000Z | docs/tutorials/11 - PV ICE Journal.py | NREL/PV_DEMICE | 6e2938950ff10c37f176f46aeb76c78de609f535 | [
"BSD-3-Clause"
] | 2 | 2020-04-09T17:41:54.000Z | 2020-07-20T17:25:26.000Z | docs/tutorials/11 - PV ICE Journal.py | NREL/PV_DEMICE | 6e2938950ff10c37f176f46aeb76c78de609f535 | [
"BSD-3-Clause"
] | 1 | 2020-04-09T17:36:28.000Z | 2020-04-09T17:36:28.000Z | #!/usr/bin/env python
# coding: utf-8
# # 11 - PV ICE Journal: PV in the Circular Economy, A Dynamic Framework Analyzing Technology Evolution and Reliability Impacts
# In[1]:
import PV_ICE
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import seaborn as sns
import pandas as pd
import numpy as np... | 79.789434 | 55,556 | 0.830119 | 8,518 | 105,721 | 10.191829 | 0.267199 | 0.008409 | 0.009676 | 0.006266 | 0.290299 | 0.277444 | 0.262181 | 0.252747 | 0.242346 | 0.236367 | 0 | 0.123864 | 0.066061 | 105,721 | 1,324 | 55,557 | 79.849698 | 0.75538 | 0.037514 | 0 | 0.388889 | 0 | 0 | 0.115515 | 0.021403 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011111 | null | null | 0.031944 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
043606c713aab96541fd076e75cf260341e0434a | 22 | py | Python | vidstab/version.py | LS11111/video | 8334d27d6409c8b2a35bdcff8aa2aa336034f102 | [
"MIT"
] | 676 | 2015-01-01T03:56:14.000Z | 2022-03-31T18:20:47.000Z | vidstab/version.py | LS11111/video | 8334d27d6409c8b2a35bdcff8aa2aa336034f102 | [
"MIT"
] | 331 | 2015-01-02T19:31:30.000Z | 2022-03-19T03:24:29.000Z | vidstab/version.py | LS11111/video | 8334d27d6409c8b2a35bdcff8aa2aa336034f102 | [
"MIT"
] | 196 | 2015-01-02T20:48:12.000Z | 2022-03-13T06:48:19.000Z | __version__ = '1.7.4'
| 11 | 21 | 0.636364 | 4 | 22 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.136364 | 22 | 1 | 22 | 22 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
04414dfca273b24c69f6cd376383e131fafe5e4e | 8,025 | py | Python | pyds8k/client/ds8k/v1/sc_client.py | Bhaskers-Blu-Org1/pyds8k | cef516f40a662efd85aa5a8a5b52ab94bb4780af | [
"Apache-2.0"
] | 7 | 2020-04-16T11:20:02.000Z | 2021-04-21T13:39:14.000Z | pyds8k/client/ds8k/v1/sc_client.py | Bhaskers-Blu-Org1/pyds8k | cef516f40a662efd85aa5a8a5b52ab94bb4780af | [
"Apache-2.0"
] | 1 | 2020-07-15T02:56:56.000Z | 2020-08-03T17:16:53.000Z | pyds8k/client/ds8k/v1/sc_client.py | IBM/pyds8k | fb58f270e1ca8377ae0877a1f351cc222a937b49 | [
"Apache-2.0"
] | 6 | 2020-01-03T05:54:26.000Z | 2022-03-31T09:42:27.000Z | ##############################################################################
# Copyright 2019 IBM Corp.
#
# 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/LI... | 31.104651 | 78 | 0.592897 | 930 | 8,025 | 4.829032 | 0.215054 | 0.075707 | 0.096192 | 0.067691 | 0.3389 | 0.133601 | 0.04008 | 0 | 0 | 0 | 0 | 0.002933 | 0.320125 | 8,025 | 257 | 79 | 31.225681 | 0.820198 | 0.13433 | 0 | 0.25 | 0 | 0 | 0.00848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0.121951 | 0.030488 | 0.152439 | 0.518293 | 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 |
044af30927aecb4f321234c8b5ced381fe26d1fd | 592 | py | Python | alpyro_msgs/std_msgs/int8multiarray.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | 1 | 2020-12-13T13:07:10.000Z | 2020-12-13T13:07:10.000Z | alpyro_msgs/std_msgs/int8multiarray.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | alpyro_msgs/std_msgs/int8multiarray.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | from typing import List
from typing_extensions import Annotated
from alpyro_msgs import RosMessage, int8
from alpyro_msgs.std_msgs.multiarraylayout import MultiArrayLayout
class Int8MultiArray(RosMessage):
__msg_typ__ = "std_msgs/Int8MultiArray"
__msg_def__ = "c3RkX21zZ3MvTXVsdGlBcnJheUxheW91dCBsYXlvdXQKICBzdGRfb... | 42.285714 | 226 | 0.878378 | 45 | 592 | 11.111111 | 0.533333 | 0.04 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 0.079392 | 592 | 13 | 227 | 45.538462 | 0.834862 | 0 | 0 | 0 | 0 | 0 | 0.444257 | 0.444257 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f08acd2d80528bedda51692fec7165d0c88c39f5 | 68 | py | Python | orchestra/contrib/webapps/__init__.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 68 | 2015-02-09T10:28:44.000Z | 2022-03-12T11:08:36.000Z | orchestra/contrib/webapps/__init__.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 17 | 2015-05-01T18:10:03.000Z | 2021-03-19T21:52:55.000Z | orchestra/contrib/webapps/__init__.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 29 | 2015-03-31T04:51:03.000Z | 2022-02-17T02:58:50.000Z | default_app_config = 'orchestra.contrib.webapps.apps.WebAppsConfig'
| 34 | 67 | 0.852941 | 8 | 68 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 68 | 1 | 68 | 68 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0.647059 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f091b8cb4430a83eb60522503a29c50f685c9fa6 | 770 | py | Python | rental/models.py | talhaibnmahmud/Sysrem-Development-Dackend | fdbd231d6f4dd78518a2d100277a0d642139ccf2 | [
"MIT"
] | null | null | null | rental/models.py | talhaibnmahmud/Sysrem-Development-Dackend | fdbd231d6f4dd78518a2d100277a0d642139ccf2 | [
"MIT"
] | 3 | 2022-01-13T03:39:01.000Z | 2022-03-12T00:54:51.000Z | rental/models.py | talhaibnmahmud/System-Development-Backend | fdbd231d6f4dd78518a2d100277a0d642139ccf2 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Division(models.Model):
name = models.CharField(null=False, blank=False, max_length=10)
latitude = models.FloatField(null=True, blank=True)
longitude = models.FloatField(null=True, blank=True)
def __str__(self):
return se... | 30.8 | 97 | 0.694805 | 99 | 770 | 5.262626 | 0.373737 | 0.076775 | 0.153551 | 0.184261 | 0.633397 | 0.633397 | 0.633397 | 0.633397 | 0.633397 | 0.633397 | 0 | 0.006472 | 0.197403 | 770 | 24 | 98 | 32.083333 | 0.83657 | 0.031169 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.1875 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f0cc7787ffb816b287b459c43b137a3b671f2fcb | 276 | py | Python | controller/window/dummy_window.py | ssshooter/gbf-autopilot | ec4d21539813309f4391e4275bcd91a7d4faf87f | [
"MIT"
] | null | null | null | controller/window/dummy_window.py | ssshooter/gbf-autopilot | ec4d21539813309f4391e4275bcd91a7d4faf87f | [
"MIT"
] | null | null | null | controller/window/dummy_window.py | ssshooter/gbf-autopilot | ec4d21539813309f4391e4275bcd91a7d4faf87f | [
"MIT"
] | null | null | null | from .abstract_window import AbstractWindow
class DummyWindow(AbstractWindow):
def get_outer_window_rect(self):
return (0, 0, 800, 600)
def key_press(self, key):
return True
def escape_listener(self, callback):
# do nothing
pass
| 21.230769 | 43 | 0.663043 | 34 | 276 | 5.205882 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.26087 | 276 | 12 | 44 | 23 | 0.828431 | 0.036232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.125 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
f0e2d6281e530b9de9d743eacfb0d719dae5191d | 81 | py | Python | path/images_path.py | Hupengyu/Paddle_learning | 0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f | [
"Apache-2.0"
] | 1 | 2021-08-02T01:51:35.000Z | 2021-08-02T01:51:35.000Z | path/images_path.py | Hupengyu/Paddle_learning | 0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f | [
"Apache-2.0"
] | 1 | 2021-11-03T08:58:30.000Z | 2021-11-03T08:58:30.000Z | path/images_path.py | Hupengyu/Paddle_learning | 0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f | [
"Apache-2.0"
] | null | null | null | import os
img_base_path = 'imgs'
files = os.listdir(img_base_path)
print(files) | 13.5 | 33 | 0.765432 | 14 | 81 | 4.142857 | 0.642857 | 0.241379 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 81 | 6 | 34 | 13.5 | 0.816901 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9bc532f63cbfeaa528e124c76cd1f038dff05cca | 13,978 | py | Python | SUAVE/SUAVE-2.5.0/regression/scripts/multifidelity/optimize_mf.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/regression/scripts/multifidelity/optimize_mf.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/regression/scripts/multifidelity/optimize_mf.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | # Optimize.py
# Created: Feb 2016, M. Vegh
# Modified: Nov 2016, T. MacDonald
# Oct 2019, T. MacDonald
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
import SUAVE
from SUAVE.Core impor... | 37.778378 | 125 | 0.384819 | 1,140 | 13,978 | 4.6 | 0.153509 | 0.011442 | 0.077231 | 0.048246 | 0.737223 | 0.725591 | 0.719108 | 0.691648 | 0.687452 | 0.687452 | 0 | 0.027363 | 0.218272 | 13,978 | 369 | 126 | 37.880759 | 0.452549 | 0.376234 | 0 | 0.629213 | 0 | 0 | 0.074563 | 0.007135 | 0 | 0 | 0 | 0 | 0.151685 | 1 | 0.022472 | false | 0 | 0.061798 | 0 | 0.106742 | 0.151685 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9bc62862698bc5369f2f74d30f44752e3ac89b7e | 1,054 | py | Python | src/sylenium/element/locators.py | symonk/browzer | 4d9ee5adba6819d787357247da69b5429af9cde1 | [
"MIT"
] | 6 | 2018-07-25T09:14:08.000Z | 2020-12-18T21:25:28.000Z | src/sylenium/element/locators.py | symonk/sylenium | 4d9ee5adba6819d787357247da69b5429af9cde1 | [
"MIT"
] | 32 | 2018-07-23T19:34:27.000Z | 2020-11-18T01:38:42.000Z | src/sylenium/element/locators.py | symonk/browzer | 4d9ee5adba6819d787357247da69b5429af9cde1 | [
"MIT"
] | 3 | 2018-10-10T07:43:55.000Z | 2020-01-10T21:50:24.000Z | from selenium.webdriver.common.by import By
from sylenium.element.locatable import Locatable
class ById(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.ID, value)
class ByXpath(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.XPATH, value)
cl... | 23.954545 | 53 | 0.675522 | 131 | 1,054 | 4.900763 | 0.259542 | 0.149533 | 0.199377 | 0.249221 | 0.535826 | 0.535826 | 0.535826 | 0.535826 | 0.535826 | 0.535826 | 0 | 0 | 0.190702 | 1,054 | 43 | 54 | 24.511628 | 0.752638 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.692308 | 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 |
9bd2606d6c612c5eb7c4bdb8b43456af113fa05e | 158 | py | Python | vizdoomaze/envs/vizdoomazetwo7.py | fanyuzeng/Vizdoomaze | 5b444f2d861c908c4d96ae374bcce660d364f22e | [
"MIT"
] | 3 | 2020-09-25T16:00:49.000Z | 2020-10-29T10:32:30.000Z | vizdoomaze/envs/vizdoomazetwo7.py | fanyuzeng/Vizdoomaze | 5b444f2d861c908c4d96ae374bcce660d364f22e | [
"MIT"
] | null | null | null | vizdoomaze/envs/vizdoomazetwo7.py | fanyuzeng/Vizdoomaze | 5b444f2d861c908c4d96ae374bcce660d364f22e | [
"MIT"
] | 1 | 2021-12-17T07:50:47.000Z | 2021-12-17T07:50:47.000Z | from vizdoomaze.envs.vizdoomenv import VizdoomEnv
class vizdoomazeTwo7(VizdoomEnv):
def __init__(self):
super(vizdoomazeTwo7, self).__init__(40) | 26.333333 | 49 | 0.765823 | 17 | 158 | 6.647059 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.14557 | 158 | 6 | 50 | 26.333333 | 0.807407 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
504335cb4ae9d35694340e19aeda744fc2f20b55 | 999 | py | Python | dp_tornado/helper/numeric/cast/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | dp_tornado/helper/numeric/cast/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | dp_tornado/helper/numeric/cast/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
from dp_tornado.engine.helper import Helper as dpHelper
class CastHelper(dpHelper):
def int(self, a, raise_exception=False):
try:
if self.helper.misc.system.py_version <= 2:
return int(a) if a else 0
else:
return int(a) if a... | 23.232558 | 55 | 0.516517 | 126 | 999 | 4.02381 | 0.277778 | 0.16568 | 0.039448 | 0.078895 | 0.759369 | 0.759369 | 0.706114 | 0.684418 | 0.684418 | 0.684418 | 0 | 0.013675 | 0.414414 | 999 | 42 | 56 | 23.785714 | 0.852991 | 0.021021 | 0 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.034483 | 0 | 0.448276 | 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 |
ac90154dcb29cb7c20f72fb0339d8b77e0d459bc | 161 | py | Python | autode/reactions/__init__.py | Crossfoot/autodE | 2c452c954a5268e6c9a80cd4efbbfe855e61f6bb | [
"MIT"
] | 90 | 2020-03-13T15:03:35.000Z | 2022-03-14T13:41:04.000Z | autode/reactions/__init__.py | skphy/autodE | fd80995206ac601299d2f78105d0fe4deee8c2cf | [
"MIT"
] | 117 | 2020-06-13T00:11:06.000Z | 2022-03-24T08:54:16.000Z | autode/reactions/__init__.py | t-young31/autodE | 4f4e5792e6edf446ff939552a14d82965aaff8e0 | [
"MIT"
] | 26 | 2020-08-14T04:52:53.000Z | 2022-03-06T13:04:17.000Z | from autode.reactions.reaction import Reaction
from autode.reactions.multistep import MultiStepReaction
__all__ = ['Reaction',
'MultiStepReaction']
| 23 | 56 | 0.770186 | 15 | 161 | 8 | 0.533333 | 0.166667 | 0.316667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15528 | 161 | 6 | 57 | 26.833333 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.15528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
ac9afeafd4e8f4c7794e583036f36d9541e7812a | 47 | py | Python | cms/__init__.py | fossabot/gophr | 3ff69cdb352e871aa61c23cb277d721459de6f41 | [
"MIT"
] | null | null | null | cms/__init__.py | fossabot/gophr | 3ff69cdb352e871aa61c23cb277d721459de6f41 | [
"MIT"
] | null | null | null | cms/__init__.py | fossabot/gophr | 3ff69cdb352e871aa61c23cb277d721459de6f41 | [
"MIT"
] | null | null | null | default_app_config = 'cms.apps.GophrCmsConfig'
| 23.5 | 46 | 0.829787 | 6 | 47 | 6.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 47 | 1 | 47 | 47 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.489362 | 0.489362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aca3511cbd567d88148bd95f9dcc21565074b659 | 1,513 | py | Python | Dynamic Programming/847. Shortest Path Visiting All Nodes.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Dynamic Programming/847. Shortest Path Visiting All Nodes.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Dynamic Programming/847. Shortest Path Visiting All Nodes.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z |
# Heap
class Solution:
def shortestPathLength(self, graph):
memo, final, q = set(), (1 << len(graph)) - 1, [(0, i, 1 << i) for i in range(len(graph))]
while q:
steps, node, state = heapq.heappop(q)
if state == final: return steps
for v in graph[node]:
... | 33.622222 | 117 | 0.449438 | 200 | 1,513 | 3.4 | 0.185 | 0.029412 | 0.092647 | 0.070588 | 0.758824 | 0.739706 | 0.739706 | 0.739706 | 0.739706 | 0.595588 | 0 | 0.026637 | 0.404494 | 1,513 | 44 | 118 | 34.386364 | 0.72808 | 0.009253 | 0 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 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 |
acdb2f8e391a4a50a0bb8afa4b4996b645aff3bf | 233 | py | Python | src/yellowdog_client/model/best_compute_source_report_preference.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/best_compute_source_report_preference.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/best_compute_source_report_preference.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import Any, Optional
@dataclass
class BestComputeSourceReportPreference:
weight: Optional[float] = None
lowestValue: Optional[Any] = None
highestValue: Optional[Any] = None
| 23.3 | 40 | 0.772532 | 24 | 233 | 7.5 | 0.583333 | 0.122222 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16309 | 233 | 9 | 41 | 25.888889 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
acf2447145ba38ad374cae2ac6db30beb2470067 | 617 | py | Python | back/main/views.py | aninstein/sex_code_blog | 483fcb566f2873204e545db2e4688dba3bee9db9 | [
"BSD-2-Clause"
] | 116 | 2019-09-19T01:00:48.000Z | 2022-03-16T08:52:15.000Z | back/main/views.py | aninstein/sex_code_blog | 483fcb566f2873204e545db2e4688dba3bee9db9 | [
"BSD-2-Clause"
] | 13 | 2019-08-13T14:39:21.000Z | 2022-03-22T02:36:46.000Z | back/main/views.py | aninstein/sex_code_blog | 483fcb566f2873204e545db2e4688dba3bee9db9 | [
"BSD-2-Clause"
] | 30 | 2019-08-13T10:13:07.000Z | 2022-01-19T09:50:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import abort, current_app, render_template, jsonify
from jinja2 import TemplateNotFound
from . import main_bp
@main_bp.route('/hello')
def hello_world():
return 'Hello World!'
@main_bp.route('/favicon.ico')
def favicon():
return current_app.send_sta... | 18.69697 | 62 | 0.672609 | 83 | 617 | 4.831325 | 0.481928 | 0.089776 | 0.137157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009823 | 0.175041 | 617 | 32 | 63 | 19.28125 | 0.777996 | 0.128039 | 0 | 0 | 0 | 0 | 0.145794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | true | 0 | 0.157895 | 0.157895 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
acf3bb14a90d358bd06a4aeaf84395cbe98bf174 | 47 | py | Python | Parte1/Cap4/numbers.py | fabianoflorentino/python-CursoIntensivoDePython | 822288cc4b382936dde1bc647e3f8c2b925ced70 | [
"Apache-2.0"
] | null | null | null | Parte1/Cap4/numbers.py | fabianoflorentino/python-CursoIntensivoDePython | 822288cc4b382936dde1bc647e3f8c2b925ced70 | [
"Apache-2.0"
] | null | null | null | Parte1/Cap4/numbers.py | fabianoflorentino/python-CursoIntensivoDePython | 822288cc4b382936dde1bc647e3f8c2b925ced70 | [
"Apache-2.0"
] | 1 | 2020-02-05T13:07:08.000Z | 2020-02-05T13:07:08.000Z | for value in range(1,11):
print(str(value)) | 23.5 | 25 | 0.659574 | 9 | 47 | 3.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.170213 | 47 | 2 | 26 | 23.5 | 0.717949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
4a10d494acf3644366a1c341e0c6f706046f7c05 | 166 | py | Python | hlso/__init__.py | holtgrewe/clsify | ad5efecd1d0114898e10498434bded32840d9a4b | [
"MIT"
] | 19 | 2019-07-25T17:36:16.000Z | 2021-12-24T06:52:40.000Z | hlso/__init__.py | holtgrewe/clsify | ad5efecd1d0114898e10498434bded32840d9a4b | [
"MIT"
] | 31 | 2019-05-13T11:21:50.000Z | 2020-06-19T09:33:16.000Z | hlso/__init__.py | holtgrewe/clsify | ad5efecd1d0114898e10498434bded32840d9a4b | [
"MIT"
] | 2 | 2020-03-05T15:36:30.000Z | 2021-12-22T04:48:36.000Z | from ._version import get_versions as _get_versions
#: The application's version from versioneer.
__version__ = _get_versions()["version"]
del _get_versions # noqa
| 27.666667 | 51 | 0.795181 | 22 | 166 | 5.454545 | 0.545455 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126506 | 166 | 5 | 52 | 33.2 | 0.827586 | 0.295181 | 0 | 0 | 0 | 0 | 0.06087 | 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 |
c57f60b725a051377acf92944d3af034c888fd41 | 452 | py | Python | __init__.py | Wanderingss/PG-GrHDP | 45b098d2cb7961e10542abf10f533ea2bebdad6d | [
"MIT"
] | null | null | null | __init__.py | Wanderingss/PG-GrHDP | 45b098d2cb7961e10542abf10f533ea2bebdad6d | [
"MIT"
] | null | null | null | __init__.py | Wanderingss/PG-GrHDP | 45b098d2cb7961e10542abf10f533ea2bebdad6d | [
"MIT"
] | null | null | null | import torch
class CustomDataset(torch.utils.data.Dataset):#需要继承data.Dataset
def __init__(self, state, loss):
super(CustomDataset, self).__init__()
self.data = state
self.target = loss
self.length = self.data.shape[0]
pass
def __getitem__(self, index):
# ... | 32.285714 | 64 | 0.610619 | 51 | 452 | 5.098039 | 0.490196 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.287611 | 452 | 14 | 65 | 32.285714 | 0.804348 | 0.073009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.083333 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
c581e7f935552f66346525069e162d980514eb5c | 39 | py | Python | test.py | kethad/Test | c6bd3236f28bc54d5c64148716d447926e578ffd | [
"Apache-2.0"
] | null | null | null | test.py | kethad/Test | c6bd3236f28bc54d5c64148716d447926e578ffd | [
"Apache-2.0"
] | null | null | null | test.py | kethad/Test | c6bd3236f28bc54d5c64148716d447926e578ffd | [
"Apache-2.0"
] | null | null | null | a = "Dev"
b = "Great Work!"
print a, b
| 9.75 | 17 | 0.538462 | 8 | 39 | 2.625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25641 | 39 | 3 | 18 | 13 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c586ed4a57e03afe3a8d49194a2a15896cef706e | 87 | py | Python | pygalgen/generator/common/source_file_parsing/__init__.py | Kulivox/PyGalGen | 816004bce50703737384e2fbdcfe43b61ce2f4dd | [
"MIT"
] | null | null | null | pygalgen/generator/common/source_file_parsing/__init__.py | Kulivox/PyGalGen | 816004bce50703737384e2fbdcfe43b61ce2f4dd | [
"MIT"
] | null | null | null | pygalgen/generator/common/source_file_parsing/__init__.py | Kulivox/PyGalGen | 816004bce50703737384e2fbdcfe43b61ce2f4dd | [
"MIT"
] | null | null | null | """
Subpackage containing functions used for parameter extraction from source files
""" | 29 | 79 | 0.804598 | 10 | 87 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 87 | 3 | 80 | 29 | 0.921053 | 0.908046 | 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 |
c5a2c92909134a11a27b29bfe532f45073dc020b | 2,432 | py | Python | chapter8/8_15Delegating Attribute Access/8_15.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | chapter8/8_15Delegating Attribute Access/8_15.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | chapter8/8_15Delegating Attribute Access/8_15.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | ''' Base Class method Proxy'''
#method 1, not recommand!
class A:
def spam(self, x):
pass
def foo(self):
pass
class B:
def __init__(self):
self._a = A()
def spam(self, x):
# Delegate to the internal self._a instance
return self._a.spam(x)
def foo(self):
... | 26.434783 | 83 | 0.606497 | 325 | 2,432 | 4.276923 | 0.295385 | 0.02518 | 0.039568 | 0.025899 | 0.160432 | 0.153957 | 0.153957 | 0.153957 | 0.153957 | 0.153957 | 0 | 0.006897 | 0.284539 | 2,432 | 92 | 84 | 26.434783 | 0.791954 | 0.254934 | 0 | 0.432836 | 0 | 0 | 0.020302 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.343284 | false | 0.089552 | 0 | 0.089552 | 0.552239 | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
c5e572d945b4387ca1c5fe88dedb43130438b164 | 254 | py | Python | network_insight_sdk_generic_datasources/parsers/text/pre_post_processor.py | lukaswinn/network-insight-sdk-generic-datasources | 094479acdc19cf83ab613556746cd980c1741347 | [
"BSD-2-Clause"
] | 11 | 2019-08-02T12:10:34.000Z | 2022-01-17T17:25:19.000Z | network_insight_sdk_generic_datasources/parsers/text/pre_post_processor.py | lukaswinn/network-insight-sdk-generic-datasources | 094479acdc19cf83ab613556746cd980c1741347 | [
"BSD-2-Clause"
] | 35 | 2019-07-19T07:28:58.000Z | 2022-03-21T06:07:20.000Z | network_insight_sdk_generic_datasources/parsers/text/pre_post_processor.py | lukaswinn/network-insight-sdk-generic-datasources | 094479acdc19cf83ab613556746cd980c1741347 | [
"BSD-2-Clause"
] | 9 | 2019-08-09T07:28:04.000Z | 2022-03-21T20:24:00.000Z | # Copyright 2019 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause
class PrePostProcessor(object):
def pre_process(self, data):
type(self)
return data
def post_process(self, data):
type(self)
return data
| 14.941176 | 39 | 0.633858 | 31 | 254 | 5.129032 | 0.677419 | 0.138365 | 0.188679 | 0.238994 | 0.415094 | 0.415094 | 0.415094 | 0 | 0 | 0 | 0 | 0.027027 | 0.271654 | 254 | 16 | 40 | 15.875 | 0.832432 | 0.255906 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 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 |
c5f4df8e1277afc2e0f6558dd02ba2d6505f1dce | 2,375 | py | Python | tests/test_debug.py | quantum-experiments/qbob | 6b33ea48a03e1e194dc87878b1d88395e560dff0 | [
"MIT"
] | null | null | null | tests/test_debug.py | quantum-experiments/qbob | 6b33ea48a03e1e194dc87878b1d88395e560dff0 | [
"MIT"
] | null | null | null | tests/test_debug.py | quantum-experiments/qbob | 6b33ea48a03e1e194dc87878b1d88395e560dff0 | [
"MIT"
] | null | null | null | from qbob import qbob
from qbob.intrinsics import Message, H, M, X
from qbob.diagnostics import DumpMachine, DumpRegister
def test_debug(tmp_path):
def file_location(n):
return tmp_path / f"test{n}.txt"
my_qbob = qbob.OperationBuilder("TestDumpMachine")
my_qbob += Message("Hi from QBOB!")
... | 28.27381 | 66 | 0.594947 | 359 | 2,375 | 3.752089 | 0.153203 | 0.160356 | 0.046771 | 0.035635 | 0.834447 | 0.764662 | 0.730512 | 0.655531 | 0.655531 | 0.639941 | 0 | 0.020752 | 0.249263 | 2,375 | 83 | 67 | 28.614458 | 0.734717 | 0.015158 | 0 | 0.59375 | 0 | 0 | 0.056911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0.046875 | 0.03125 | 0.15625 | 0.140625 | 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 |
6809cff1dad502c4f0f95cd504c95b1e1d667e54 | 1,370 | py | Python | Python3Test/TensorBoardTest.py | qianhk/FeiPython | c87578d3c04b7345a99fef7390c8ea12c6f2c716 | [
"Apache-2.0"
] | null | null | null | Python3Test/TensorBoardTest.py | qianhk/FeiPython | c87578d3c04b7345a99fef7390c8ea12c6f2c716 | [
"Apache-2.0"
] | 15 | 2019-11-18T06:09:50.000Z | 2022-03-02T02:55:54.000Z | Python3Test/TensorBoardTest.py | qianhk/FeiPython | c87578d3c04b7345a99fef7390c8ea12c6f2c716 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
import tensorflow as tf
# with tf.name_scope('S_input1'):
# input1 = tf.constant([1.0, 2.0, 3.0], name = 'N_input1')
#
# with tf.name_scope("S_input2"):
# input2 = tf.Variable(tf.random_uniform([3]), name = 'N_input2')
#
# output = tf.add_n([input1, input2], name = 'Nadd'... | 23.220339 | 76 | 0.588321 | 210 | 1,370 | 3.728571 | 0.304762 | 0.045977 | 0.051086 | 0.076628 | 0.309068 | 0.232439 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.194161 | 1,370 | 58 | 77 | 23.62069 | 0.6875 | 0.905109 | 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 |
a84febfab8ab6070ac9116d4e98c66e133423d02 | 1,697 | py | Python | challenges/towers_of_hanoi/test_towers_of_hanoi.py | asakatida/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | null | null | null | challenges/towers_of_hanoi/test_towers_of_hanoi.py | asakatida/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | 2 | 2020-09-24T13:13:49.000Z | 2021-06-25T15:15:35.000Z | challenges/towers_of_hanoi/test_towers_of_hanoi.py | grandquista/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | null | null | null | from .towers_of_hanoi import towers_of_hanoi, towers_of_hanoi_list
from data_structures.stack.stack import Stack
from re import match
def test_towers_of_hanoi_1():
assert len(list(towers_of_hanoi(1))) == 1
def test_towers_of_hanoi_2():
assert len(list(towers_of_hanoi(2))) == 3
def test_towers_of_hanoi_3()... | 29.258621 | 70 | 0.589275 | 267 | 1,697 | 3.565543 | 0.172285 | 0.12605 | 0.204832 | 0.094538 | 0.871849 | 0.737395 | 0.628151 | 0.628151 | 0.628151 | 0.628151 | 0 | 0.030374 | 0.243371 | 1,697 | 57 | 71 | 29.77193 | 0.711059 | 0 | 0 | 0.666667 | 0 | 0 | 0.049499 | 0 | 0 | 0 | 0 | 0 | 0.355556 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a854f44522ae1f8fd7a8e4a68d88c7f8a87115cf | 236 | py | Python | dataPipelines/gc_ingest/pipelines/cli.py | Wildertrek/gamechanger-data | d087044594c722bd373cce1a48293d1a6da5d24e | [
"MIT"
] | 18 | 2021-04-20T20:34:01.000Z | 2021-11-08T10:28:17.000Z | dataPipelines/gc_ingest/pipelines/cli.py | Wildertrek/gamechanger-data | d087044594c722bd373cce1a48293d1a6da5d24e | [
"MIT"
] | 15 | 2021-04-20T20:31:33.000Z | 2022-03-18T16:00:44.000Z | dataPipelines/gc_ingest/pipelines/cli.py | dod-advana/gamechanger-data | 1cdba2a3dbc1072f5991dcfe1daea6310c8ae42b | [
"MIT"
] | 8 | 2021-04-23T11:38:26.000Z | 2021-11-17T22:42:38.000Z | import click
from .core.cli import core_cli
from .clone.cli import clone_cli
@click.group(name='pipelines')
def pipelines_cli():
"""Pipeline CLI"""
pass
pipelines_cli.add_command(core_cli)
pipelines_cli.add_command(clone_cli) | 19.666667 | 36 | 0.771186 | 36 | 236 | 4.805556 | 0.388889 | 0.121387 | 0.17341 | 0.254335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 236 | 12 | 36 | 19.666667 | 0.831731 | 0.050847 | 0 | 0 | 0 | 0 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
a8744feff4d937ef6927bdf13b07ba82544e3edd | 181 | py | Python | testcases/tests/test_case_000.py | JamieCzuy/sharedanexperience.com | 7a66edbcaf2a4809bc59ab3f4615c0c259eb3ef7 | [
"MIT"
] | null | null | null | testcases/tests/test_case_000.py | JamieCzuy/sharedanexperience.com | 7a66edbcaf2a4809bc59ab3f4615c0c259eb3ef7 | [
"MIT"
] | 10 | 2018-02-21T16:01:28.000Z | 2021-06-10T19:27:00.000Z | testcases/tests/test_case_000.py | JamieCzuy/sharedanexperience.com | 7a66edbcaf2a4809bc59ab3f4615c0c259eb3ef7 | [
"MIT"
] | null | null | null | def test_000_a_test_can_pass():
print("This test should always pass!")
assert True
def test_001_can_see_the_internet(selenium):
selenium.get('http://www.example.com')
| 22.625 | 44 | 0.740331 | 29 | 181 | 4.275862 | 0.758621 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03871 | 0.143646 | 181 | 7 | 45 | 25.857143 | 0.76129 | 0 | 0 | 0 | 0 | 0 | 0.281768 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a87b30550ef0ee2932df6db80f5d2a7d281c3157 | 247 | py | Python | siteflags/tests/testapp/models.py | idlesign/django-siteflags | d031a4fc5a061b07ebd628eab2751345a197a93c | [
"BSD-3-Clause"
] | 14 | 2015-04-28T08:35:58.000Z | 2022-02-16T06:20:40.000Z | siteflags/tests/testapp/models.py | idlesign/django-siteflags | d031a4fc5a061b07ebd628eab2751345a197a93c | [
"BSD-3-Clause"
] | 11 | 2018-05-23T10:33:31.000Z | 2022-01-28T07:27:16.000Z | siteflags/tests/testapp/models.py | idlesign/django-siteflags | d031a4fc5a061b07ebd628eab2751345a197a93c | [
"BSD-3-Clause"
] | 4 | 2016-03-31T10:47:44.000Z | 2019-12-01T05:13:48.000Z | from django.db import models
from siteflags.models import ModelWithFlag
class Comment(ModelWithFlag):
title = models.CharField('title', max_length=255)
class Article(ModelWithFlag):
title = models.CharField('title', max_length=255)
| 17.642857 | 53 | 0.761134 | 30 | 247 | 6.2 | 0.5 | 0.193548 | 0.258065 | 0.354839 | 0.537634 | 0.537634 | 0.537634 | 0.537634 | 0 | 0 | 0 | 0.028302 | 0.1417 | 247 | 13 | 54 | 19 | 0.849057 | 0 | 0 | 0.333333 | 0 | 0 | 0.040486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a8962f7172a3291774bfd504d004705e9abfd93f | 56 | py | Python | goodcat/__init__.py | haruyuki/GoodCat | 853a47d062f89b0ea8471dc34e51289880bde04b | [
"MIT"
] | null | null | null | goodcat/__init__.py | haruyuki/GoodCat | 853a47d062f89b0ea8471dc34e51289880bde04b | [
"MIT"
] | null | null | null | goodcat/__init__.py | haruyuki/GoodCat | 853a47d062f89b0ea8471dc34e51289880bde04b | [
"MIT"
] | null | null | null | __version__ = "0.1.0"
GUILD_ID = 358248587026497537
| 14 | 30 | 0.714286 | 7 | 56 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.456522 | 0.178571 | 56 | 3 | 31 | 18.666667 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 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 |
a8a72dd3738c69480889218e316e849eceb208fc | 142 | py | Python | leapyear.py | Prashant269/python | facf2683c20ace046e8c2adcd7fe96aad609331d | [
"bzip2-1.0.6"
] | null | null | null | leapyear.py | Prashant269/python | facf2683c20ace046e8c2adcd7fe96aad609331d | [
"bzip2-1.0.6"
] | null | null | null | leapyear.py | Prashant269/python | facf2683c20ace046e8c2adcd7fe96aad609331d | [
"bzip2-1.0.6"
] | null | null | null | # leapyear
y=input("enter any year")
if y%4==0:
print("{} is:leap year".format(y))
else:
print("{} is not a leap year".format(y))
| 20.285714 | 46 | 0.584507 | 25 | 142 | 3.32 | 0.64 | 0.168675 | 0.337349 | 0.361446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.204225 | 142 | 6 | 47 | 23.666667 | 0.716814 | 0.056338 | 0 | 0 | 0 | 0 | 0.396825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8b3069d4dc6c31e881f6e91c22b8a4760ccbc69 | 289 | py | Python | LMS/librarian/admin.py | Hamnafaisal/Library-Management-System-Django-Project- | 0bfc31f77ea23ccdc677a374b2a27e50f884b005 | [
"MIT"
] | null | null | null | LMS/librarian/admin.py | Hamnafaisal/Library-Management-System-Django-Project- | 0bfc31f77ea23ccdc677a374b2a27e50f884b005 | [
"MIT"
] | null | null | null | LMS/librarian/admin.py | Hamnafaisal/Library-Management-System-Django-Project- | 0bfc31f77ea23ccdc677a374b2a27e50f884b005 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Book
from .models import Student
from .models import Borrower
from .models import Reviews
admin.site.register(Book)
admin.site.register(Student)
admin.site.register(Borrower)
admin.site.register(Reviews)
| 20.642857 | 32 | 0.809689 | 41 | 289 | 5.707317 | 0.341463 | 0.17094 | 0.273504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110727 | 289 | 13 | 33 | 22.230769 | 0.910506 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a8b319429c17083239641841e5ab68b3368cc685 | 14,445 | py | Python | test/old_tests/_test_scan_apply.py | syaiful6/aerospike-client-python | 59fa0d36aa899a164282643fe49b27d12aaf323f | [
"Apache-2.0"
] | 105 | 2015-01-07T09:51:13.000Z | 2022-03-24T04:23:54.000Z | test/old_tests/_test_scan_apply.py | syaiful6/aerospike-client-python | 59fa0d36aa899a164282643fe49b27d12aaf323f | [
"Apache-2.0"
] | 180 | 2015-01-01T19:29:50.000Z | 2022-03-19T14:14:06.000Z | test/old_tests/_test_scan_apply.py | syaiful6/aerospike-client-python | 59fa0d36aa899a164282643fe49b27d12aaf323f | [
"Apache-2.0"
] | 94 | 2015-01-21T19:17:48.000Z | 2022-01-31T07:17:47.000Z | # -*- coding: utf-8 -*-
import pytest
import time
import sys
from .test_base_class import TestBaseClass
from aerospike import exception as e
aerospike = pytest.importorskip("aerospike")
try:
import aerospike
except:
print("Please install aerospike python client.")
sys.exit(1)
class TestScanApply(object):... | 32.533784 | 77 | 0.517065 | 1,591 | 14,445 | 4.522942 | 0.096794 | 0.085047 | 0.075875 | 0.048916 | 0.844775 | 0.784186 | 0.711089 | 0.651056 | 0.636187 | 0.607977 | 0 | 0.016032 | 0.36954 | 14,445 | 443 | 78 | 32.607223 | 0.77413 | 0.074489 | 0 | 0.683502 | 0 | 0 | 0.107625 | 0.008195 | 0 | 0 | 0 | 0 | 0.138047 | 1 | 0.080808 | false | 0.013468 | 0.023569 | 0 | 0.107744 | 0.003367 | 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 |
a8cc2e72cc8f814b1e8b373475688d24cc289e2d | 5,833 | py | Python | tests/unit/test_checks.py | pponnuvel/hotsos | b02f40bc8f125a717aa46d18497465cecccb8dca | [
"Apache-2.0"
] | null | null | null | tests/unit/test_checks.py | pponnuvel/hotsos | b02f40bc8f125a717aa46d18497465cecccb8dca | [
"Apache-2.0"
] | null | null | null | tests/unit/test_checks.py | pponnuvel/hotsos | b02f40bc8f125a717aa46d18497465cecccb8dca | [
"Apache-2.0"
] | null | null | null | import os
import yaml
import mock
import utils
from core import checks
YAML_DEF1 = """
pluginX:
groupA:
input:
type: filesystem
value: foo/bar1
sectionA:
artifactX:
settingA: True
"""
YAML_DEF2 = """
pluginX:
groupA:
input:
type: filesystem
value: foo/bar1
... | 36.229814 | 78 | 0.585805 | 645 | 5,833 | 5.162791 | 0.224806 | 0.015616 | 0.046847 | 0.054655 | 0.752853 | 0.735435 | 0.724625 | 0.715015 | 0.692793 | 0.633634 | 0 | 0.042931 | 0.30516 | 5,833 | 160 | 79 | 36.45625 | 0.778682 | 0.062061 | 0 | 0.623077 | 0 | 0 | 0.246247 | 0.013182 | 0 | 0 | 0 | 0 | 0.138462 | 1 | 0.084615 | false | 0 | 0.038462 | 0 | 0.130769 | 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 |
a8d00d8a29d9e6b83fbbd8711326265fdbc0bc3f | 114 | py | Python | appconf/__init__.py | vongochung/buiquocviet | d37abf6734ee5f51cfcbeaa4d16817decbf19d2f | [
"BSD-3-Clause"
] | 1 | 2015-12-31T10:24:25.000Z | 2015-12-31T10:24:25.000Z | appconf/__init__.py | vongochung/buiquocviet | d37abf6734ee5f51cfcbeaa4d16817decbf19d2f | [
"BSD-3-Clause"
] | null | null | null | appconf/__init__.py | vongochung/buiquocviet | d37abf6734ee5f51cfcbeaa4d16817decbf19d2f | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from .base import AppConf # noqa
# following PEP 386
__version__ = "0.6"
| 19 | 38 | 0.77193 | 16 | 114 | 4.9375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.166667 | 114 | 5 | 39 | 22.8 | 0.778947 | 0.192982 | 0 | 0 | 0 | 0 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.