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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9fcc8b23490e0a436227563f32fb4d2b6283c9b | 8,610 | py | Python | BSMDEMeasuresEstimation/MeasuresCode/Shockwave/GTFileReader2.py | OSADP/CVD-DME | 84e40c7c0105d90d9cf6392140101e6d5b88911e | [
"Apache-2.0"
] | null | null | null | BSMDEMeasuresEstimation/MeasuresCode/Shockwave/GTFileReader2.py | OSADP/CVD-DME | 84e40c7c0105d90d9cf6392140101e6d5b88911e | [
"Apache-2.0"
] | null | null | null | BSMDEMeasuresEstimation/MeasuresCode/Shockwave/GTFileReader2.py | OSADP/CVD-DME | 84e40c7c0105d90d9cf6392140101e6d5b88911e | [
"Apache-2.0"
] | null | null | null | #standard
import os
import random as rnd
import sys
import tempfile as tmpfile
import unittest
import logging
#external
import pandas as pd
from TCACore import Timer
# from superlinks_VanNess import vanness_links, intersection_links
t = Timer(enabled=True)
class Trajectories(object):
"""Core class for readin... | 25.473373 | 166 | 0.441115 | 989 | 8,610 | 3.701719 | 0.16178 | 0.093417 | 0.026222 | 0.024583 | 0.722753 | 0.684239 | 0.676045 | 0.629883 | 0.627151 | 0.602568 | 0 | 0.032634 | 0.412776 | 8,610 | 337 | 167 | 25.548961 | 0.691456 | 0.267596 | 0 | 0.754717 | 0 | 0 | 0.026538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050314 | null | null | 0.025157 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a23e915e30e04d8bd7373198543be99bc320199 | 1,053 | py | Python | _to_remove/trace/__init__.py | anejaalekh/OSBot-Utils | 90304650f809292d79b5568fca85fb76ef2adc97 | [
"Apache-2.0"
] | null | null | null | _to_remove/trace/__init__.py | anejaalekh/OSBot-Utils | 90304650f809292d79b5568fca85fb76ef2adc97 | [
"Apache-2.0"
] | null | null | null | _to_remove/trace/__init__.py | anejaalekh/OSBot-Utils | 90304650f809292d79b5568fca85fb76ef2adc97 | [
"Apache-2.0"
] | null | null | null | # # todo: refactor into separate project (since the idea is to minimize the dependencies on OSBot-Utils
# todo: maybe on a lambda function (which will have the required dependencies)
# from functools import wraps
#
# from osbot_utils.decorators.trace.Trace_Call import Trace_Call
#
# class trace:
#
# def __init_... | 40.5 | 109 | 0.624881 | 120 | 1,053 | 5.308333 | 0.45 | 0.11303 | 0.056515 | 0.069074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264008 | 1,053 | 25 | 110 | 42.12 | 0.821935 | 0.94397 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.04 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a27ac65d2bb71e47d0798addb0a102878bf3f59 | 4,012 | py | Python | mars/core/entity/core.py | chineking/mars | 660098c65bcb389c6bbebc26b2502a9b3af43cf9 | [
"Apache-2.0"
] | 1 | 2022-02-24T08:39:26.000Z | 2022-02-24T08:39:26.000Z | mars/core/entity/core.py | chineking/mars | 660098c65bcb389c6bbebc26b2502a9b3af43cf9 | [
"Apache-2.0"
] | null | null | null | mars/core/entity/core.py | chineking/mars | 660098c65bcb389c6bbebc26b2502a9b3af43cf9 | [
"Apache-2.0"
] | null | null | null | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 26.222222 | 81 | 0.642822 | 515 | 4,012 | 4.730097 | 0.328155 | 0.045977 | 0.057471 | 0.029557 | 0.020525 | 0.020525 | 0 | 0 | 0 | 0 | 0 | 0.004027 | 0.257228 | 4,012 | 152 | 82 | 26.394737 | 0.813423 | 0.174726 | 0 | 0.082474 | 0 | 0 | 0.040097 | 0.016707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247423 | false | 0 | 0.061856 | 0.123711 | 0.597938 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dbe0e3a7bfa197e0bca1d1ac17327dbdfed4325d | 170 | py | Python | DB/MySQL/t4.py | nacker/python | 9e255566763a760fa66dea264f18d58785016bf0 | [
"Apache-2.0"
] | 1 | 2019-02-21T09:30:12.000Z | 2019-02-21T09:30:12.000Z | DB/MySQL/t4.py | nacker/python | 9e255566763a760fa66dea264f18d58785016bf0 | [
"Apache-2.0"
] | null | null | null | DB/MySQL/t4.py | nacker/python | 9e255566763a760fa66dea264f18d58785016bf0 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
from MysqlHelper import MysqlHelper
helper=MysqlHelper(db='test2')
sql='select count(*) from stu where isdelete=0'
row=helper.fetchone(sql)
print row[0]
| 17 | 47 | 0.764706 | 26 | 170 | 5 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.105882 | 170 | 9 | 48 | 18.888889 | 0.828947 | 0.070588 | 0 | 0 | 0 | 0 | 0.294872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
dbe22542c23adada1680e7fb17572b8b1f95b2b3 | 200 | py | Python | run_tests.py | shreyach13/petpy | 969856224bed9756169761cc490e1585bbce3416 | [
"Apache-2.0"
] | null | null | null | run_tests.py | shreyach13/petpy | 969856224bed9756169761cc490e1585bbce3416 | [
"Apache-2.0"
] | null | null | null | run_tests.py | shreyach13/petpy | 969856224bed9756169761cc490e1585bbce3416 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 19 11:51:11 2019
@author: Shreya.Chatterjee
"""
import pytest
import sys,os
#sys.path.append(os.getcwd())
pytest.main(["--cov","petpy"])
#pytest -mpl | 14.285714 | 35 | 0.65 | 31 | 200 | 4.193548 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075145 | 0.135 | 200 | 14 | 36 | 14.285714 | 0.676301 | 0.625 | 0 | 0 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e00a6734bf11601cd3be318a7851be71ea80abe2 | 2,980 | py | Python | insights/parsers/swift_conf.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 1 | 2020-02-19T06:36:22.000Z | 2020-02-19T06:36:22.000Z | insights/parsers/swift_conf.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 10 | 2018-04-16T15:38:04.000Z | 2018-05-15T18:43:02.000Z | insights/parsers/swift_conf.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | null | null | null | """
Swift Conf Files - file ``/etc/swift/``
=======================================
This module provides parsers for swift config files under /etc/swift directory.
SwiftObjectExpirerConf - file ``/etc/swift/object-expirer.conf``
----------------------------------------------------------------
SwiftProxyServerConf - ... | 28.932039 | 81 | 0.613758 | 335 | 2,980 | 5.301493 | 0.301493 | 0.105293 | 0.092905 | 0.04955 | 0.485923 | 0.407095 | 0.378941 | 0.3125 | 0.293919 | 0.240991 | 0 | 0.028446 | 0.233221 | 2,980 | 102 | 82 | 29.215686 | 0.748797 | 0.823154 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e01485cfc07a439517987d4dfff1fa06552381cd | 70 | py | Python | Python_Lists.py | belmiro-kunga/Curso-de-python | ce1c59c19aefbe789435c855b3fa950abb14bcae | [
"MIT"
] | null | null | null | Python_Lists.py | belmiro-kunga/Curso-de-python | ce1c59c19aefbe789435c855b3fa950abb14bcae | [
"MIT"
] | null | null | null | Python_Lists.py | belmiro-kunga/Curso-de-python | ce1c59c19aefbe789435c855b3fa950abb14bcae | [
"MIT"
] | null | null | null | #Python Lists
mylist = [ "banana", "abacate", "manga"]
print(mylist) | 14 | 40 | 0.657143 | 8 | 70 | 5.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 70 | 5 | 41 | 14 | 0.766667 | 0.171429 | 0 | 0 | 0 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e0163521329b4c80f42ee7f3f609425053e61836 | 83 | py | Python | GRADE 9/Python/BraydenViana-Python-Video21.py | i1470s/School-Work | e00843f3506b2ad674dce5e47ce3321002cc23e5 | [
"MIT"
] | null | null | null | GRADE 9/Python/BraydenViana-Python-Video21.py | i1470s/School-Work | e00843f3506b2ad674dce5e47ce3321002cc23e5 | [
"MIT"
] | null | null | null | GRADE 9/Python/BraydenViana-Python-Video21.py | i1470s/School-Work | e00843f3506b2ad674dce5e47ce3321002cc23e5 | [
"MIT"
] | null | null | null | import tuna
import random
tuna.fish()
x = random.randrage(1, 1000)
print(x) | 11.857143 | 29 | 0.674699 | 13 | 83 | 4.307692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 0.204819 | 83 | 7 | 30 | 11.857143 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e052839a33434c2d6c60923c17adab844d6a7b45 | 111 | py | Python | web/data/flask/app/config.py | bibim-lang/pybibim-web-demo | 92df89fe9c59e353bc4ea153efb87d957a7f082b | [
"MIT"
] | null | null | null | web/data/flask/app/config.py | bibim-lang/pybibim-web-demo | 92df89fe9c59e353bc4ea153efb87d957a7f082b | [
"MIT"
] | 4 | 2016-07-26T01:27:23.000Z | 2017-01-21T18:49:49.000Z | web/data/flask/app/config.py | bibim-lang/pybibim-web-demo | 92df89fe9c59e353bc4ea153efb87d957a7f082b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
CSRF_ENABLED = True
SECRET_KEY = "208h3oiushefo9823liukhso8dyfhsdklihf"
debug = False
| 18.5 | 51 | 0.738739 | 11 | 111 | 7.272727 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0.135135 | 111 | 5 | 52 | 22.2 | 0.729167 | 0.189189 | 0 | 0 | 0 | 0 | 0.409091 | 0.409091 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e062f3d57e2fc5deb429e06255adbcc6b3557a23 | 82 | py | Python | examples/libtest/imports/enum/Late.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 739 | 2015-01-01T02:05:11.000Z | 2022-03-30T15:26:16.000Z | examples/libtest/imports/enum/Late.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 33 | 2015-03-25T23:17:04.000Z | 2021-08-19T08:25:22.000Z | examples/libtest/imports/enum/Late.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 167 | 2015-01-01T22:27:47.000Z | 2022-03-17T13:29:19.000Z |
def getLate():
v = Late(**{})
return v
class Late():
value = 'late'
| 10.25 | 18 | 0.487805 | 10 | 82 | 4 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317073 | 82 | 7 | 19 | 11.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e063e502a3def74e2f0f9ebcf47b482418bc0d18 | 180 | py | Python | examples/scripts/misc/get_version.py | fossabot/pyaurorax | cb3e72a90f3107302d4f9fd4b0478fe98616354d | [
"MIT"
] | null | null | null | examples/scripts/misc/get_version.py | fossabot/pyaurorax | cb3e72a90f3107302d4f9fd4b0478fe98616354d | [
"MIT"
] | 45 | 2021-11-07T22:02:23.000Z | 2022-03-09T03:04:27.000Z | examples/scripts/misc/get_version.py | fossabot/pyaurorax | cb3e72a90f3107302d4f9fd4b0478fe98616354d | [
"MIT"
] | 1 | 2022-01-16T17:28:14.000Z | 2022-01-16T17:28:14.000Z | import pyaurorax
def main():
# get version information
print("PyAuroraX version: %s" % (pyaurorax.__version__))
# -------------
if (__name__ == "__main__"):
main()
| 15 | 60 | 0.594444 | 17 | 180 | 5.588235 | 0.647059 | 0.336842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 180 | 11 | 61 | 16.363636 | 0.659722 | 0.205556 | 0 | 0 | 0 | 0 | 0.207143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e071348ac4bf594a4a07e706737144d8df1dc60e | 833 | py | Python | FunctionalTestingPOC/testLibrary/DataBaseLib.py | travis-konarik-mphasis/FunctionalLevelTestPOC | b60c2f07c8ea2dbba514726ac6562df31a518e52 | [
"MIT"
] | null | null | null | FunctionalTestingPOC/testLibrary/DataBaseLib.py | travis-konarik-mphasis/FunctionalLevelTestPOC | b60c2f07c8ea2dbba514726ac6562df31a518e52 | [
"MIT"
] | null | null | null | FunctionalTestingPOC/testLibrary/DataBaseLib.py | travis-konarik-mphasis/FunctionalLevelTestPOC | b60c2f07c8ea2dbba514726ac6562df31a518e52 | [
"MIT"
] | 1 | 2022-02-24T14:43:30.000Z | 2022-02-24T14:43:30.000Z | from FunctionalTestingPOC.PocMocks.DatabaseMock import DatabaseMock
class DataBaseLib:
def __init__(self):
self._database = DatabaseMock()
def create_batch_in_database(self, batch_number):
batch = (batch_number,)
return DatabaseMock.add_batch(batch)
def add_record_to_batch(self, ... | 29.75 | 81 | 0.739496 | 100 | 833 | 5.75 | 0.28 | 0.125217 | 0.104348 | 0.066087 | 0.264348 | 0.264348 | 0.264348 | 0 | 0 | 0 | 0 | 0 | 0.187275 | 833 | 27 | 82 | 30.851852 | 0.849335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0.055556 | 0.111111 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0ece4892b54961a4f5ae27fe9f9b6847b5a835d8 | 440 | py | Python | incomewealth/app/models.py | baranbartu/income-wealth-dj | 95ef806796b90e0f2034ca562a7ac2cb12f32a2b | [
"MIT"
] | 4 | 2017-10-26T06:45:48.000Z | 2017-10-26T10:57:03.000Z | incomewealth/app/models.py | baranbartu/income-wealth-dj | 95ef806796b90e0f2034ca562a7ac2cb12f32a2b | [
"MIT"
] | null | null | null | incomewealth/app/models.py | baranbartu/income-wealth-dj | 95ef806796b90e0f2034ca562a7ac2cb12f32a2b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class IncomeWealth(models.Model):
year = models.IntegerField(null=False, blank=False)
income_top10 = models.FloatField(null=False, blank=False)
wealth_top10 = models.FloatField(null=False, blank=False)
income... | 33.846154 | 64 | 0.756818 | 56 | 440 | 5.785714 | 0.428571 | 0.138889 | 0.216049 | 0.29321 | 0.645062 | 0.549383 | 0.549383 | 0 | 0 | 0 | 0 | 0.02356 | 0.131818 | 440 | 12 | 65 | 36.666667 | 0.824607 | 0.047727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0ed69f473fd4e2cf3c275a757856253887be8acc | 4,295 | py | Python | classifier.py | SaurabhKhurpe/health_predictor | da3fed21ad28b9c4baa25273bbc7bc33872cf83f | [
"MIT"
] | null | null | null | classifier.py | SaurabhKhurpe/health_predictor | da3fed21ad28b9c4baa25273bbc7bc33872cf83f | [
"MIT"
] | null | null | null | classifier.py | SaurabhKhurpe/health_predictor | da3fed21ad28b9c4baa25273bbc7bc33872cf83f | [
"MIT"
] | null | null | null | import pandas as pd
from sklearn import model_selection
from sklearn.metrics import accuracy_score
#from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors import KNeighborsClassifier
class MyClassifier:
def predict(self,list1):
names = ['itching','skin_rash','nodal_skin_eruptions','conti... | 91.382979 | 2,337 | 0.706636 | 702 | 4,295 | 4.066952 | 0.380342 | 0.172329 | 0.252189 | 0.327846 | 0.092469 | 0.091769 | 0.091769 | 0.091769 | 0.089667 | 0.087916 | 0 | 0.073088 | 0.108033 | 4,295 | 47 | 2,338 | 91.382979 | 0.672148 | 0.214435 | 0 | 0 | 0 | 0 | 0.582143 | 0.108631 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.04 | 0.16 | 0 | 0.28 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ee796a5a5a515327dddf2901a977d36a0ca3596 | 5,353 | py | Python | lazydiff/tests/test_vector_ops.py | CS207-Project-Group-7/cs207-FinalProject | 4bc3af5d97ac1a64045f3d10533ecf3dd018a763 | [
"MIT"
] | 1 | 2019-02-11T03:15:23.000Z | 2019-02-11T03:15:23.000Z | lazydiff/tests/test_vector_ops.py | CS207-Project-Group-7/cs207-FinalProject | 4bc3af5d97ac1a64045f3d10533ecf3dd018a763 | [
"MIT"
] | 5 | 2018-11-05T22:14:15.000Z | 2018-12-08T08:32:56.000Z | lazydiff/tests/test_vector_ops.py | CS207-Project-Group-7/cs207-FinalProject | 4bc3af5d97ac1a64045f3d10533ecf3dd018a763 | [
"MIT"
] | null | null | null | import pytest
from lazydiff import ops
from lazydiff.vars import Var
import numpy as np
def test_sin():
var1 = Var([np.pi, np.pi])
var2 = ops.sin(var1)
var2.backward()
assert var2.val == pytest.approx([0, 0])
assert np.all(var2.grad(var1) == np.array([-1, -1]))
def test_cos():
var1 = Var([np.p... | 26.112195 | 82 | 0.554829 | 896 | 5,353 | 3.282366 | 0.083705 | 0.149609 | 0.201972 | 0.178511 | 0.745325 | 0.726624 | 0.616117 | 0.607956 | 0.523631 | 0.473308 | 0 | 0.096962 | 0.231272 | 5,353 | 204 | 83 | 26.240196 | 0.61774 | 0 | 0 | 0.468927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.152542 | false | 0 | 0.022599 | 0 | 0.175141 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ef04a43e70a08b365bf2f3dd14ed0156a245080 | 2,470 | py | Python | backend/apps/comment_app/comment_facade.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | backend/apps/comment_app/comment_facade.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | backend/apps/comment_app/comment_facade.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from comment_app.comment_commands import ListCommentCommand, SaveCommentCommand, UpdateCommentCommand, CommentForm,\
GetCommentCommand, DeleteCommentCommand, ListReplyCommentCommand, SaveReplyCommentCommand, UpdateReplyCommentCommand, ... | 29.058824 | 123 | 0.765182 | 280 | 2,470 | 6.496429 | 0.264286 | 0.079164 | 0.046179 | 0.04398 | 0.240792 | 0.20066 | 0.152831 | 0.114349 | 0.069269 | 0 | 0 | 0.000484 | 0.163158 | 2,470 | 84 | 124 | 29.404762 | 0.879536 | 0.326316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.071429 | 0.214286 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0ef1693ca395dce1fca50c5c4f460476f69b7328 | 1,295 | py | Python | imp_statements.py | rishondz/Captcha-Breaker | be815ef1b154e731bd18d9a803e3ce2dba4f1bd3 | [
"MIT"
] | 2 | 2021-07-11T13:11:12.000Z | 2021-07-14T15:48:40.000Z | imp_statements.py | Ameybot/Captcha-Breaker | 3aae69316c8f195976fcdfd5097203d9e7b7ab84 | [
"MIT"
] | 1 | 2021-07-11T05:23:34.000Z | 2021-07-11T05:23:34.000Z | imp_statements.py | Ameybot/Captcha-Breaker | 3aae69316c8f195976fcdfd5097203d9e7b7ab84 | [
"MIT"
] | 4 | 2021-07-01T19:28:52.000Z | 2022-01-13T17:10:18.000Z | import torch
import torch.nn as nn # All neural network modules, nn.Linear, nn.Conv2d, BatchNorm, Loss functions
import torchvision.transforms as transforms # Transformations we can perform on our dataset
import torchvision
import os
from skimage import io
from torch.utils.data import Dataset,DataLoader
import... | 40.46875 | 182 | 0.842471 | 191 | 1,295 | 5.560209 | 0.471204 | 0.062147 | 0.050847 | 0.067797 | 0.084746 | 0.084746 | 0.084746 | 0.084746 | 0 | 0 | 0 | 0.00353 | 0.125097 | 1,295 | 31 | 183 | 41.774194 | 0.933804 | 0.093436 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
161814e5fec64f3cedea706b94eac6c7fcee7991 | 8,986 | py | Python | model.py | MemorySlices/rl_minigrid | e9b30de4f82f7743e690ef1d0a91b4e5ff890b56 | [
"MIT"
] | null | null | null | model.py | MemorySlices/rl_minigrid | e9b30de4f82f7743e690ef1d0a91b4e5ff890b56 | [
"MIT"
] | null | null | null | model.py | MemorySlices/rl_minigrid | e9b30de4f82f7743e690ef1d0a91b4e5ff890b56 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.distributions.categorical import Categorical
import torch_ac
import numpy as np
import copy
# Function from https://github.com/ikostrikov/pytorch-a2c-ppo-acktr/blob/master/model.py
def init_params(m):
classname = m.__class__.__name__
... | 31.640845 | 104 | 0.566993 | 1,229 | 8,986 | 3.978845 | 0.125305 | 0.074438 | 0.034356 | 0.03681 | 0.762168 | 0.730675 | 0.711043 | 0.693252 | 0.678937 | 0.678937 | 0 | 0.036384 | 0.305698 | 8,986 | 283 | 105 | 31.75265 | 0.747395 | 0.104051 | 0 | 0.59 | 0 | 0 | 0.00424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.035 | 0.02 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1630f29b5ed01e59654bdcdc4aa7403cb0eceb03 | 212 | py | Python | db_constants.py | rafiqumsieh0/hybrid-agi-system | 350fbbd6cd54e4270fcabf9faca680019eacad82 | [
"MIT"
] | null | null | null | db_constants.py | rafiqumsieh0/hybrid-agi-system | 350fbbd6cd54e4270fcabf9faca680019eacad82 | [
"MIT"
] | null | null | null | db_constants.py | rafiqumsieh0/hybrid-agi-system | 350fbbd6cd54e4270fcabf9faca680019eacad82 | [
"MIT"
] | null | null | null | # Edit the information here to match your desired databases settings.
MYSQL_INFO = {"connection_string": "mysql://root:rootroot@localhost:3306/ltm?autocommit=true"}
REDIS_INFO = {"ip": "localhost", "port": 6379}
| 53 | 94 | 0.754717 | 28 | 212 | 5.607143 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0.099057 | 212 | 3 | 95 | 70.666667 | 0.780105 | 0.316038 | 0 | 0 | 0 | 0 | 0.615385 | 0.391608 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1632114b119d368e51c25274ddac0cf99cad821a | 131 | py | Python | main.py | nejdetkadir/fakest | 7f3665952f74f50d191792c2be3560a59c9ae62b | [
"MIT"
] | 1 | 2021-03-31T12:46:50.000Z | 2021-03-31T12:46:50.000Z | main.py | nejdetkadir/fakest | 7f3665952f74f50d191792c2be3560a59c9ae62b | [
"MIT"
] | null | null | null | main.py | nejdetkadir/fakest | 7f3665952f74f50d191792c2be3560a59c9ae62b | [
"MIT"
] | null | null | null | import sys
from PyQt5 import QtWidgets
from ui import UI
app = QtWidgets.QApplication(sys.argv)
ui = UI(app)
sys.exit(app.exec_()) | 18.714286 | 38 | 0.763359 | 22 | 131 | 4.5 | 0.5 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.129771 | 131 | 7 | 39 | 18.714286 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1640d9cd6933f565926bede71e96611c224a06c2 | 51,540 | py | Python | tests/test_integrity_checker.py | s-weigand/darglint | 6bc5d764db86626a996de1ff50925f976bf1449e | [
"MIT"
] | null | null | null | tests/test_integrity_checker.py | s-weigand/darglint | 6bc5d764db86626a996de1ff50925f976bf1449e | [
"MIT"
] | null | null | null | tests/test_integrity_checker.py | s-weigand/darglint | 6bc5d764db86626a996de1ff50925f976bf1449e | [
"MIT"
] | null | null | null | import ast
from unittest import (
TestCase,
skip,
)
from darglint.config import (
Strictness,
)
from darglint.docstring.base import (
DocstringStyle,
)
from darglint.integrity_checker import (
IntegrityChecker,
)
from darglint.function_description import (
get_function_descriptions,
)
from darg... | 33.664272 | 118 | 0.479608 | 4,593 | 51,540 | 5.222295 | 0.100806 | 0.019261 | 0.018344 | 0.032519 | 0.732135 | 0.710748 | 0.690444 | 0.67406 | 0.656591 | 0.636663 | 0 | 0.007884 | 0.397051 | 51,540 | 1,530 | 119 | 33.686275 | 0.763966 | 0.012476 | 0 | 0.714586 | 0 | 0.000701 | 0.26148 | 0.020866 | 0 | 0 | 0 | 0.000654 | 0.067321 | 1 | 0.051893 | false | 0.002805 | 0.007714 | 0 | 0.063114 | 0.007714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
164df74b2f97ea2a7430e0fd2fc4ff49dfc64453 | 155 | py | Python | other/histogram.py | nsudhanva/Ohms | 50f3308650ca6873b48991b6b862594e65c6b776 | [
"MIT"
] | null | null | null | other/histogram.py | nsudhanva/Ohms | 50f3308650ca6873b48991b6b862594e65c6b776 | [
"MIT"
] | null | null | null | other/histogram.py | nsudhanva/Ohms | 50f3308650ca6873b48991b6b862594e65c6b776 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
x = np.random.normal(size = 1000)
plt.hist(x, normed=True, bins=30)
plt.ylabel('Probability')
plt.show() | 25.833333 | 33 | 0.748387 | 27 | 155 | 4.296296 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.109677 | 155 | 6 | 34 | 25.833333 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.070513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
16609b16165ae2f519d79e16812f3c3eb9efe115 | 19,727 | py | Python | integration_tests/test_suites/celery-k8s-test-suite/tests/test_integration.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | integration_tests/test_suites/celery-k8s-test-suite/tests/test_integration.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | integration_tests/test_suites/celery-k8s-test-suite/tests/test_integration.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | # pylint doesn't know about pytest fixtures
# pylint: disable=unused-argument
import datetime
import os
import time
import uuid
import boto3
import pytest
from dagster_k8s.test import wait_for_job_and_get_raw_logs
from dagster_k8s_test_infra.integration_utils import (
can_terminate_run_over_graphql,
image_pull... | 34.367596 | 105 | 0.664774 | 2,402 | 19,727 | 5.022481 | 0.101166 | 0.04559 | 0.067142 | 0.04559 | 0.771303 | 0.727868 | 0.709549 | 0.673823 | 0.662467 | 0.637019 | 0 | 0.006013 | 0.258123 | 19,727 | 573 | 106 | 34.427574 | 0.818312 | 0.053936 | 0 | 0.535484 | 0 | 0 | 0.078768 | 0.017707 | 0 | 0 | 0 | 0 | 0.062366 | 1 | 0.036559 | false | 0 | 0.032258 | 0.006452 | 0.075269 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16635133c3a76d28bf7ed6e17e5e11db994a54df | 857 | py | Python | crane_and_blocks.py | Atomatrons/CityShaper | b1e6ae01e53becb41a21eb99c1e767e948544085 | [
"MIT"
] | null | null | null | crane_and_blocks.py | Atomatrons/CityShaper | b1e6ae01e53becb41a21eb99c1e767e948544085 | [
"MIT"
] | null | null | null | crane_and_blocks.py | Atomatrons/CityShaper | b1e6ae01e53becb41a21eb99c1e767e948544085 | [
"MIT"
] | null | null | null | #!/usr/bin/env micropython
import Robot
import My_block
# Crane_and_blocks: Completes M-02 Crane, and M-12 Design and Build.
def crane_and_blocks():
"""
Completes M-02 Crane, and M-12 Design and Build.
"""
# Establishes the compass point the robot is facing
Robot.gyro.compass_point = 0
#... | 17.14 | 68 | 0.676779 | 142 | 857 | 3.880282 | 0.408451 | 0.139746 | 0.119782 | 0.206897 | 0.303085 | 0.264973 | 0.185118 | 0.185118 | 0.185118 | 0.185118 | 0 | 0.076233 | 0.21937 | 857 | 49 | 69 | 17.489796 | 0.747384 | 0.33839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | true | 0.0625 | 0.125 | 0 | 0.1875 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
167878bbca6ce00626c4c1f2b8d248037c69a27a | 458 | py | Python | python/test-data/testTypesProtos1.py | Panteon32Om/write-your-python-program | 615b73113466c1c8f901fad0a076b480f62ad437 | [
"BSD-3-Clause"
] | 1 | 2021-09-30T10:17:57.000Z | 2021-09-30T10:17:57.000Z | python/test-data/testTypesProtos1.py | Panteon32Om/write-your-python-program | 615b73113466c1c8f901fad0a076b480f62ad437 | [
"BSD-3-Clause"
] | 47 | 2020-11-16T14:02:52.000Z | 2022-03-18T12:44:38.000Z | python/test-data/testTypesProtos1.py | Panteon32Om/write-your-python-program | 615b73113466c1c8f901fad0a076b480f62ad437 | [
"BSD-3-Clause"
] | 4 | 2020-10-28T13:54:44.000Z | 2022-01-20T17:36:24.000Z | from wypp import *
from typing import Protocol
import abc
class Animal(Protocol):
@abc.abstractmethod
def makeSound(self, loadness: float) -> str:
pass
class Dog:
# incorrect implementation of the Animal protocol
def makeSound(self, loadness: int) -> str:
return f"{loadness} wuffs"
... | 20.818182 | 53 | 0.668122 | 57 | 458 | 5.298246 | 0.578947 | 0.092715 | 0.10596 | 0.15894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008451 | 0.224891 | 458 | 21 | 54 | 21.809524 | 0.842254 | 0.10262 | 0 | 0 | 0 | 0 | 0.06846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.066667 | 0.2 | 0.133333 | 0.733333 | 0.066667 | 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 | 0 | 0 | 0 | 3 |
168ce4cf7c4a9af45d53cc3d7ae901c980e41c13 | 441 | py | Python | words_in_sentences/migrations/0006_auto_20220310_0001.py | FatliTalk/learnenglish | f0393346f2e696b2af542c05e5005d2495f00e37 | [
"MIT"
] | 1 | 2021-10-06T12:40:28.000Z | 2021-10-06T12:40:28.000Z | words_in_sentences/migrations/0006_auto_20220310_0001.py | FatliTalk/learnenglish | f0393346f2e696b2af542c05e5005d2495f00e37 | [
"MIT"
] | null | null | null | words_in_sentences/migrations/0006_auto_20220310_0001.py | FatliTalk/learnenglish | f0393346f2e696b2af542c05e5005d2495f00e37 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-10 05:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('words_in_sentences', '0005_review'),
]
operations = [
migrations.RemoveField(
model_name='review',
name='version',
... | 20.045455 | 48 | 0.569161 | 43 | 441 | 5.697674 | 0.744186 | 0.171429 | 0.212245 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.319728 | 441 | 21 | 49 | 21 | 0.75 | 0.104308 | 0 | 0.266667 | 1 | 0 | 0.160305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16a038fb5e81d6f4b75e7ba7aaa15c01b194d2e9 | 283 | py | Python | tools/leetcode.202.Happy Number/leetcode.202.Happy Number.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.202.Happy Number/leetcode.202.Happy Number.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.202.Happy Number/leetcode.202.Happy Number.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @param {integer} n
# @return {boolean}
def isHappy(self, n):
if n == 1:
return True
if n == 4:
return False
x = sum([int(i) * int(i) for i in list(str(n))])
return self.isHappy(x)
| 283 | 283 | 0.448763 | 37 | 283 | 3.432432 | 0.621622 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.424028 | 283 | 1 | 283 | 283 | 0.766871 | 0.127208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
16a3722a835ee02bac8c768d0c268dad826ed8ec | 68 | py | Python | main.py | gokceyilmazz/Samurai-Sudoku-Solver | 3e7065e4d0dff6b8ce362a3d8adfdfce0e3fccff | [
"MIT"
] | null | null | null | main.py | gokceyilmazz/Samurai-Sudoku-Solver | 3e7065e4d0dff6b8ce362a3d8adfdfce0e3fccff | [
"MIT"
] | null | null | null | main.py | gokceyilmazz/Samurai-Sudoku-Solver | 3e7065e4d0dff6b8ce362a3d8adfdfce0e3fccff | [
"MIT"
] | null | null | null | from app import *
if __name__=="__main__":
app= App()
app.run()
| 9.714286 | 24 | 0.632353 | 10 | 68 | 3.5 | 0.7 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 68 | 6 | 25 | 11.333333 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16adbc47f87d04bcaf99dd7271c66ea0e1101dc4 | 86 | py | Python | onesignalclient/version.py | rhawiz/onesignal-python | 9d014e4b8a5b4c4d4c615bfb2bd37e126c793889 | [
"MIT"
] | 35 | 2016-11-19T10:59:40.000Z | 2022-01-19T06:52:19.000Z | onesignalclient/version.py | rhawiz/onesignal-python | 9d014e4b8a5b4c4d4c615bfb2bd37e126c793889 | [
"MIT"
] | 9 | 2017-05-24T12:22:15.000Z | 2021-12-17T16:14:21.000Z | onesignalclient/version.py | rhawiz/onesignal-python | 9d014e4b8a5b4c4d4c615bfb2bd37e126c793889 | [
"MIT"
] | 22 | 2017-03-08T14:48:51.000Z | 2022-01-17T12:14:49.000Z | version_info = (0, 1, 1, 'dev1')
__version__ = '.'.join(str(v) for v in version_info)
| 28.666667 | 52 | 0.651163 | 15 | 86 | 3.333333 | 0.666667 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 0.151163 | 86 | 2 | 53 | 43 | 0.630137 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16bdd2efd4b83d2bd01ff43850ef55d4371f7c9c | 331 | py | Python | polidoro_argument/__init__.py | heitorpolidoro/py-argument | 2447ce7aed2ba75e47cd59f1122757883cc97ce2 | [
"MIT"
] | null | null | null | polidoro_argument/__init__.py | heitorpolidoro/py-argument | 2447ce7aed2ba75e47cd59f1122757883cc97ce2 | [
"MIT"
] | 25 | 2021-11-11T21:32:05.000Z | 2022-02-09T20:22:25.000Z | polidoro_argument/__init__.py | heitorpolidoro/py-argument | 2447ce7aed2ba75e47cd59f1122757883cc97ce2 | [
"MIT"
] | null | null | null | """
A Module to make easier to create script with command line arguments
See README.md for more information
"""
from polidoro_argument.argument import Argument
from polidoro_argument.command import Command
from polidoro_argument.polidoro_argument_parser import PolidoroArgumentParser
NAME = 'polidoro_argument'
VERSION... | 27.583333 | 77 | 0.827795 | 45 | 331 | 5.955556 | 0.622222 | 0.298507 | 0.223881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010274 | 0.117825 | 331 | 11 | 78 | 30.090909 | 0.907534 | 0.311178 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
16c9e0cbacdf464f4eb919f99cb9da7e3cf85bb7 | 2,096 | py | Python | hierarquia_de_funcionarios.py | Valmeida26/Hierarquia_de_funcionarios | 10b5fe19a587e0b7d768d36c43dd266db1a72397 | [
"MIT"
] | 1 | 2021-12-22T16:58:46.000Z | 2021-12-22T16:58:46.000Z | hierarquia_de_funcionarios.py | Valmeida26/Hierarquia_de_Funcionarios | 10b5fe19a587e0b7d768d36c43dd266db1a72397 | [
"MIT"
] | null | null | null | hierarquia_de_funcionarios.py | Valmeida26/Hierarquia_de_Funcionarios | 10b5fe19a587e0b7d768d36c43dd266db1a72397 | [
"MIT"
] | null | null | null | #Hierarquia de funcionarios: um programa que printa a função dos funcionarios de uma empresa
#conforme seu cargo e registra a hora e data em que ele foi rodado.
from datetime import datetime
data_atual = datetime.now().strftime('%d-%m-%y')
hora_atual = datetime.now().strftime( '%H:%M:%S')
class Empresa:
... | 24.091954 | 114 | 0.677481 | 282 | 2,096 | 4.914894 | 0.375887 | 0.063492 | 0.056277 | 0.073593 | 0.215007 | 0.186147 | 0.186147 | 0.186147 | 0.186147 | 0.186147 | 0 | 0 | 0.222805 | 2,096 | 86 | 115 | 24.372093 | 0.850829 | 0.074905 | 0 | 0.2 | 0 | 0 | 0.392178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.066667 | 0.022222 | 0.066667 | 0.533333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
16cdc1cdcad975b58a9183d1c7a1c8da5e2e72c3 | 642 | py | Python | src/CrossQuantilogram/__init__.py | wangys96/CrossQuantilogram | 5ba507d7bcfb8dd69e4a681fbc606bbc2991ad66 | [
"MIT"
] | 12 | 2019-03-26T07:14:34.000Z | 2022-03-21T07:08:43.000Z | src/CrossQuantilogram/__init__.py | wangys96/CrossQuantilogram | 5ba507d7bcfb8dd69e4a681fbc606bbc2991ad66 | [
"MIT"
] | 1 | 2022-03-03T13:49:09.000Z | 2022-03-03T13:50:27.000Z | src/CrossQuantilogram/__init__.py | wangys96/CrossQuantilogram | 5ba507d7bcfb8dd69e4a681fbc606bbc2991ad66 | [
"MIT"
] | 1 | 2021-01-19T07:59:19.000Z | 2021-01-19T07:59:19.000Z | from .stationarybootstrap import Bootstrap
from .crossquantilogram import CrossQuantilogram
from .qtests import BoxPierceQ,LjungBoxQ
from .utils import DescriptiveStatistics
from .api import CQBS,CQBS_alphas,CQBS_years
from .plot import bar_example,heatmap_example,rolling_example
__doc__ = """The `Cross-Quantilogram`(... | 80.25 | 360 | 0.847352 | 83 | 642 | 6.445783 | 0.686747 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 642 | 8 | 360 | 80.25 | 0.938596 | 0 | 0 | 0 | 0 | 0.142857 | 0.534992 | 0.037325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
16d4183feeab2cf8c827ca60ec9f3b97b1496677 | 863 | py | Python | cheeseprism/request.py | msabramo/CheesePrism | 3880528fb5a83fc650860d41e77729853081d404 | [
"BSD-2-Clause"
] | null | null | null | cheeseprism/request.py | msabramo/CheesePrism | 3880528fb5a83fc650860d41e77729853081d404 | [
"BSD-2-Clause"
] | null | null | null | cheeseprism/request.py | msabramo/CheesePrism | 3880528fb5a83fc650860d41e77729853081d404 | [
"BSD-2-Clause"
] | null | null | null | from cheeseprism.index import IndexManager
def includeme(config):
for name, func in request_funcs().items():
reify = not getattr(func, 'skip_reify', False)
config.add_request_method(func, name=name, reify=reify)
def request_funcs():
"""
Returns a map of functions to apply to the request
... | 26.151515 | 70 | 0.659328 | 106 | 863 | 5.226415 | 0.443396 | 0.117329 | 0.144404 | 0.135379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257242 | 863 | 32 | 71 | 26.96875 | 0.864275 | 0.115875 | 0 | 0 | 0 | 0 | 0.013459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0.055556 | 0.277778 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16e1f23bd69bc14a8774ec9815d6656afe6ce8c0 | 107 | py | Python | ecommerce/OrderAndDelivery/apps.py | AwaleRohin/commerce-fm | cb5b43c999ae5be37957b29de9c07d5affc66fb0 | [
"MIT"
] | 18 | 2020-12-05T14:12:32.000Z | 2022-03-11T20:15:22.000Z | ecommerce/OrderAndDelivery/apps.py | AwaleRohin/commerce-fm | cb5b43c999ae5be37957b29de9c07d5affc66fb0 | [
"MIT"
] | 1 | 2021-07-22T09:23:13.000Z | 2021-07-22T09:23:13.000Z | ecommerce/OrderAndDelivery/apps.py | shakyasaijal/commerce-fm | 358b6925f4b569dc374010d7cc7d4d560ede2b48 | [
"MIT"
] | 13 | 2020-10-15T10:17:35.000Z | 2022-01-29T06:56:24.000Z | from django.apps import AppConfig
class OrderanddeliveryConfig(AppConfig):
name = 'OrderAndDelivery'
| 17.833333 | 40 | 0.794393 | 10 | 107 | 8.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 5 | 41 | 21.4 | 0.923913 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 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 | 0 | 0 | 0 | 3 |
bc4c5ed2c94700f06aa384ac412dd90493f05034 | 1,594 | py | Python | web/pipeline/migrations/0093_auto_20200925_0241.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 10 | 2020-11-12T15:13:40.000Z | 2022-03-05T22:33:08.000Z | web/pipeline/migrations/0093_auto_20200925_0241.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 28 | 2020-07-17T16:33:55.000Z | 2022-03-21T16:24:25.000Z | web/pipeline/migrations/0093_auto_20200925_0241.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 5 | 2020-11-02T23:39:53.000Z | 2022-03-01T19:09:45.000Z | # Generated by Django 2.2.13 on 2020-09-25 02:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pipeline', '0092_auto_20200925_0240'),
]
operations = [
migrations.AlterField(
model_name='dataset',
name='csv_path... | 32.530612 | 131 | 0.565245 | 160 | 1,594 | 5.4875 | 0.3375 | 0.082005 | 0.199317 | 0.231207 | 0.653759 | 0.63098 | 0.585421 | 0.585421 | 0.571754 | 0.571754 | 0 | 0.047364 | 0.297992 | 1,594 | 48 | 132 | 33.208333 | 0.737265 | 0.028858 | 0 | 0.619048 | 1 | 0 | 0.135834 | 0.014877 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc5001ce2b878bad22f621866d7ad4c4db134540 | 129 | py | Python | twitoff/__init__.py | RobDBennett/twitoff | 405bace15d0c4a4b7b5603de4533dbf408cdedb5 | [
"MIT"
] | null | null | null | twitoff/__init__.py | RobDBennett/twitoff | 405bace15d0c4a4b7b5603de4533dbf408cdedb5 | [
"MIT"
] | 2 | 2021-03-29T20:51:35.000Z | 2021-03-29T20:51:38.000Z | twitoff/__init__.py | RobDBennett/twitoff | 405bace15d0c4a4b7b5603de4533dbf408cdedb5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Entry point for the TwitOff Flask Web Application.
"""
from .app import create_app
APP = create_app() | 16.125 | 50 | 0.72093 | 20 | 129 | 4.55 | 0.8 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155039 | 129 | 8 | 51 | 16.125 | 0.834862 | 0.550388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bc7719f742387096cb81e51ddb3feb1dc0f4aafb | 97 | py | Python | main.py | Kash0321/pythonsb | 45d4477d33272e73b08e68c0aa9ed80678ce1b44 | [
"MIT"
] | null | null | null | main.py | Kash0321/pythonsb | 45d4477d33272e73b08e68c0aa9ed80678ce1b44 | [
"MIT"
] | null | null | null | main.py | Kash0321/pythonsb | 45d4477d33272e73b08e68c0aa9ed80678ce1b44 | [
"MIT"
] | null | null | null | import maths
series = maths.Series()
s = series.fibonacci(10000)
for n in s:
print(n, ' ') | 12.125 | 27 | 0.639175 | 15 | 97 | 4.133333 | 0.666667 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0.216495 | 97 | 8 | 28 | 12.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc92a20ea5588e4db1833de819d8e30f7fa34a8c | 6,153 | py | Python | lib/datetime.py | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | 3 | 2019-08-21T22:01:35.000Z | 2021-07-25T00:21:28.000Z | lib/datetime.py | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | null | null | null | lib/datetime.py | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | null | null | null | from time import struct_time
import string
MINYEAR = 1
MAXYEAR = 9999
class date:
def __init__(self, year, month, day):
self.year = year
self.month = month
self.day = day
def today():
return date(0, 0, 0)
def fromtimestamp(timestamp):
return date(0, 0, 0)
... | 21.665493 | 103 | 0.590606 | 737 | 6,153 | 4.810041 | 0.122117 | 0.104372 | 0.012694 | 0.03103 | 0.539633 | 0.490832 | 0.425388 | 0.37292 | 0.361354 | 0.320451 | 0 | 0.040613 | 0.299691 | 6,153 | 283 | 104 | 21.742049 | 0.782084 | 0 | 0 | 0.58794 | 0 | 0 | 0.000163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.356784 | false | 0.005025 | 0.01005 | 0.311558 | 0.778894 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bc98af637837a204cfa2d622ba897232c395efa4 | 289 | py | Python | pr3.py | Aniiket7/Assignments | 772081691bdecc2a76bcf323708f927cb7058fe3 | [
"MIT"
] | null | null | null | pr3.py | Aniiket7/Assignments | 772081691bdecc2a76bcf323708f927cb7058fe3 | [
"MIT"
] | null | null | null | pr3.py | Aniiket7/Assignments | 772081691bdecc2a76bcf323708f927cb7058fe3 | [
"MIT"
] | null | null | null | n = int(input())
families = map(int, input().split())
families = sorted(families)
for i in range(len(families)):
if(i!=len(families)-1):
if(families[i]!=families[i - 1] and families[i]!=families[i + 1]):
print(families[i])
break
else:
print(families[i])
| 26.272727 | 71 | 0.595156 | 42 | 289 | 4.095238 | 0.428571 | 0.313953 | 0.197674 | 0.209302 | 0.22093 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.211073 | 289 | 10 | 72 | 28.9 | 0.741228 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcb43ada06e4465d853cefd86065b1b57cd417dd | 655 | py | Python | components/policy/tools/template_writers/writers/mock_writer.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | components/policy/tools/template_writers/writers/mock_writer.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | components/policy/tools/template_writers/writers/mock_writer.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from template_writer import TemplateWriter
class MockWriter(TemplateWriter):
'''Helper class for unit tests in policy_template_... | 21.833333 | 73 | 0.725191 | 86 | 655 | 5.383721 | 0.697674 | 0.045356 | 0.047516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007491 | 0.184733 | 655 | 29 | 74 | 22.586207 | 0.859551 | 0.384733 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.285714 | 0.071429 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
bcc55e076e041412d4df52d759410f2b1b3efb77 | 211 | py | Python | Ejercicio 10.py | emherraiz/jercicios-de-Introducci-n-a-la-Algor-tmica | 2669f73ca6a9b6325ce4dfdc4cf8ec2fa1958340 | [
"Apache-2.0"
] | 1 | 2022-03-16T19:45:37.000Z | 2022-03-16T19:45:37.000Z | Ejercicio 10.py | emherraiz/jercicios-de-Introducci-n-a-la-Algor-tmica | 2669f73ca6a9b6325ce4dfdc4cf8ec2fa1958340 | [
"Apache-2.0"
] | null | null | null | Ejercicio 10.py | emherraiz/jercicios-de-Introducci-n-a-la-Algor-tmica | 2669f73ca6a9b6325ce4dfdc4cf8ec2fa1958340 | [
"Apache-2.0"
] | null | null | null | def area(base, altura):
return base*altura/2
base = float(input('Medida de un lado'))
altura = float(input('Altura relativa a ese lado'))
print(f'El area del triángulo es de {area(base, altura)} unidades')
| 30.142857 | 67 | 0.7109 | 35 | 211 | 4.285714 | 0.628571 | 0.2 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.151659 | 211 | 6 | 68 | 35.166667 | 0.832402 | 0 | 0 | 0 | 0 | 0 | 0.473934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
bccffaba944749757e72d09936b4a05948adda9d | 1,048 | py | Python | mordred/HydrogenBond.py | UnixJunkie/mordred | d65d3fa451aca3f32adf4124a83532978ae57e46 | [
"BSD-3-Clause"
] | 1 | 2019-09-12T03:38:47.000Z | 2019-09-12T03:38:47.000Z | mordred/HydrogenBond.py | UnixJunkie/mordred | d65d3fa451aca3f32adf4124a83532978ae57e46 | [
"BSD-3-Clause"
] | null | null | null | mordred/HydrogenBond.py | UnixJunkie/mordred | d65d3fa451aca3f32adf4124a83532978ae57e46 | [
"BSD-3-Clause"
] | null | null | null | from rdkit.Chem import rdMolDescriptors
from ._base import Descriptor
__all__ = (
"HBondAcceptor", "HBondDonor",
)
class HBondBase(Descriptor):
__slots__ = ()
explicit_hydrogens = False
@classmethod
def preset(cls, version):
yield cls()
rtype = int
class HBondAcceptor(HBondBase):... | 18.385965 | 60 | 0.638359 | 110 | 1,048 | 5.845455 | 0.418182 | 0.124417 | 0.055988 | 0.068429 | 0.435459 | 0.435459 | 0.435459 | 0.435459 | 0.435459 | 0.245723 | 0 | 0.007702 | 0.256679 | 1,048 | 56 | 61 | 18.714286 | 0.817715 | 0.091603 | 0 | 0.416667 | 0 | 0 | 0.112646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.055556 | 0.222222 | 0.805556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bcd4e3e1d4c8e1935da9d5a5a0e22a2850e63730 | 1,657 | py | Python | yahoo_panoptes/discovery/panoptes_discovery_plugin.py | mdrbh/panoptes | 63a27ab60ce4315ccd6ee2f6d3aed3cdb74d888c | [
"Apache-2.0"
] | 86 | 2018-10-01T18:13:24.000Z | 2021-07-29T00:04:56.000Z | yahoo_panoptes/discovery/panoptes_discovery_plugin.py | mdrbh/panoptes | 63a27ab60ce4315ccd6ee2f6d3aed3cdb74d888c | [
"Apache-2.0"
] | 164 | 2018-10-03T02:01:15.000Z | 2021-04-26T16:07:14.000Z | yahoo_panoptes/discovery/panoptes_discovery_plugin.py | mdrbh/panoptes | 63a27ab60ce4315ccd6ee2f6d3aed3cdb74d888c | [
"Apache-2.0"
] | 27 | 2018-10-03T22:43:06.000Z | 2021-06-17T23:41:51.000Z | """
Copyright 2018, Yahoo.
Licensed under the terms of the Apache 2.0 license. See LICENSE file in project root for terms.
This module declares an abstract base class for Panoptes Discovery Plugins - and related helpers
A Discovery Plugin's role is to return a collection of resources that should be monitored by the s... | 32.490196 | 119 | 0.742909 | 201 | 1,657 | 6.094527 | 0.467662 | 0.019592 | 0.031837 | 0.053878 | 0.192653 | 0.138776 | 0.138776 | 0.138776 | 0.138776 | 0.138776 | 0 | 0.004615 | 0.21545 | 1,657 | 50 | 120 | 33.14 | 0.937692 | 0.636089 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.416667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
bcde9a927797a21be9ffa6f02337f24b5a549463 | 1,184 | py | Python | webapp/migrations/0006_auto_20210102_1732.py | kan12340987/Tejas-SCL-Maxo | b84fc5b13ce362b3447b6345510abef73f80941d | [
"MIT"
] | 8 | 2020-12-01T07:47:18.000Z | 2020-12-24T12:20:34.000Z | webapp/migrations/0006_auto_20210102_1732.py | kan12340987/Tejas-SCL-Maxo | b84fc5b13ce362b3447b6345510abef73f80941d | [
"MIT"
] | 11 | 2020-12-16T07:19:33.000Z | 2021-01-15T09:58:13.000Z | webapp/migrations/0006_auto_20210102_1732.py | kan12340987/Tejas-SCL-Maxo | b84fc5b13ce362b3447b6345510abef73f80941d | [
"MIT"
] | 14 | 2020-12-05T08:32:30.000Z | 2021-05-28T05:52:58.000Z | # Generated by Django 3.1.3 on 2021-01-02 17:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webapp', '0005_qpapers_name'),
]
operations = [
migrations.RemoveField(
model_name='qpapers',
name='name',
)... | 25.73913 | 63 | 0.524493 | 104 | 1,184 | 5.846154 | 0.394231 | 0.144737 | 0.184211 | 0.230263 | 0.636513 | 0.636513 | 0.25 | 0.25 | 0.25 | 0.25 | 0 | 0.039113 | 0.352196 | 1,184 | 45 | 64 | 26.311111 | 0.753585 | 0.038007 | 0 | 0.589744 | 1 | 0 | 0.099384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bce52f75a9f39e60f90bcbcf8646f15d449bfce9 | 8,430 | py | Python | animation/creation.py | partha-ghosh/pyeffects | b941e9b09c9889c01b103d758707d36c3520de2a | [
"MIT"
] | null | null | null | animation/creation.py | partha-ghosh/pyeffects | b941e9b09c9889c01b103d758707d36c3520de2a | [
"MIT"
] | null | null | null | animation/creation.py | partha-ghosh/pyeffects | b941e9b09c9889c01b103d758707d36c3520de2a | [
"MIT"
] | null | null | null | from .animation import *
class draw_and_then_fill(Animation):
def __init__(self, element_duration=0.25):
super().__init__()
self.element_duration = element_duration
def animation(self):
total_elements = len(self.elements) if isinstance(self.elements, Group) else 1
self.duratio... | 40.528846 | 96 | 0.489324 | 957 | 8,430 | 4.128527 | 0.077325 | 0.069856 | 0.027335 | 0.036446 | 0.846368 | 0.765629 | 0.741331 | 0.60896 | 0.481397 | 0.402683 | 0 | 0.043095 | 0.394425 | 8,430 | 207 | 97 | 40.724638 | 0.730852 | 0 | 0 | 0.60989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087912 | false | 0 | 0.005495 | 0 | 0.126374 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcea98f75eb02f32820d67a823b4a0ba47ad04a8 | 18 | py | Python | cobiv/modules/database/sqlitedb/__init__.py | gokudomatic/cobiv | c095eda704fab319fccc04d43d8099f1e8327734 | [
"MIT"
] | 4 | 2017-12-26T07:19:46.000Z | 2019-09-20T08:27:58.000Z | cobiv/modules/database/sqlitedb/__init__.py | gokudomatic/cobiv | c095eda704fab319fccc04d43d8099f1e8327734 | [
"MIT"
] | 4 | 2017-10-01T12:18:43.000Z | 2019-06-09T10:29:03.000Z | cobiv/modules/database/sqlitedb/__init__.py | gokudomatic/cobiv | c095eda704fab319fccc04d43d8099f1e8327734 | [
"MIT"
] | 1 | 2019-01-07T19:58:00.000Z | 2019-01-07T19:58:00.000Z | __all__=["NodeDb"] | 18 | 18 | 0.722222 | 2 | 18 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 1 | 18 | 18 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c07bcc8a6b2817a0ceb7b2f019b3f903dab6ba7 | 7,167 | py | Python | tests/test_tornado.py | abhinav/reversible | 7e28aaf0390f7d4b889c6ac14d7b340f8f314e89 | [
"MIT"
] | 1 | 2015-07-12T01:26:27.000Z | 2015-07-12T01:26:27.000Z | tests/test_tornado.py | abhinav/reversible | 7e28aaf0390f7d4b889c6ac14d7b340f8f314e89 | [
"MIT"
] | null | null | null | tests/test_tornado.py | abhinav/reversible | 7e28aaf0390f7d4b889c6ac14d7b340f8f314e89 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import pytest
tornado = pytest.importorskip('tornado')
import reversible.tornado as reversible
class MyException(Exception):
pass
class RollbackFailException(Exception):
pass
@pytest.fixture(params=['sync', 'async'])
def returns_42(request):
if 'sync' == reque... | 23.731788 | 76 | 0.630947 | 793 | 7,167 | 5.540984 | 0.105927 | 0.044379 | 0.029586 | 0.038689 | 0.760583 | 0.709376 | 0.621074 | 0.558261 | 0.536641 | 0.512745 | 0 | 0.006347 | 0.274592 | 7,167 | 301 | 77 | 23.810631 | 0.838815 | 0 | 0 | 0.736111 | 0 | 0 | 0.055951 | 0 | 0 | 0 | 0 | 0 | 0.050926 | 1 | 0.231481 | false | 0.018519 | 0.018519 | 0.064815 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c1d3bfd00f49067c82ce2d181c63766d9be1976 | 195 | py | Python | apps/users/common.py | yhkl-dev/JAutoOps | e42342fc6d814813dcac2e0154cd5dfdc1adf4c1 | [
"MIT"
] | null | null | null | apps/users/common.py | yhkl-dev/JAutoOps | e42342fc6d814813dcac2e0154cd5dfdc1adf4c1 | [
"MIT"
] | null | null | null | apps/users/common.py | yhkl-dev/JAutoOps | e42342fc6d814813dcac2e0154cd5dfdc1adf4c1 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
User = get_user_model()
def get_user_obj(uid):
try:
return User.objects.get(pk=uid)
except User.DoesNotExist:
return None | 19.5 | 46 | 0.702564 | 29 | 195 | 4.517241 | 0.62069 | 0.160305 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 195 | 10 | 47 | 19.5 | 0.856209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4c289adeef63fb33edd73177d436f29a60a30d07 | 5,058 | py | Python | traffic_generator.py | mawasthi12/ovs_perf | 8bdea88b86ac05c97a00783c856ff0da0bdce4a7 | [
"Apache-2.0"
] | 38 | 2017-09-11T17:49:50.000Z | 2022-03-28T05:50:58.000Z | traffic_generator.py | mawasthi12/ovs_perf | 8bdea88b86ac05c97a00783c856ff0da0bdce4a7 | [
"Apache-2.0"
] | 26 | 2017-10-08T15:42:54.000Z | 2022-01-06T14:47:06.000Z | traffic_generator.py | mawasthi12/ovs_perf | 8bdea88b86ac05c97a00783c856ff0da0bdce4a7 | [
"Apache-2.0"
] | 27 | 2017-10-20T12:29:10.000Z | 2022-02-07T22:04:31.000Z | #
# Copyright 2017 "OVS Performance" Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 33.058824 | 79 | 0.680111 | 596 | 5,058 | 5.419463 | 0.293624 | 0.198142 | 0.148607 | 0.104644 | 0.409598 | 0.345511 | 0.30743 | 0.281424 | 0.214861 | 0.152322 | 0 | 0.005287 | 0.252076 | 5,058 | 152 | 80 | 33.276316 | 0.848533 | 0.229735 | 0 | 0.094595 | 0 | 0 | 0.016901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0.013514 | 0.054054 | 0.189189 | 0.648649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4c413d96dac63b3f091dcd368a963581d1ca877e | 1,374 | py | Python | setup.py | NiklasTiede/tinyHTTPie | c2b26762a32b87dbf208d2739f8844d66f122099 | [
"MIT"
] | 1 | 2021-02-20T17:34:39.000Z | 2021-02-20T17:34:39.000Z | setup.py | NiklasTiede/tinyHTTPie | c2b26762a32b87dbf208d2739f8844d66f122099 | [
"MIT"
] | null | null | null | setup.py | NiklasTiede/tinyHTTPie | c2b26762a32b87dbf208d2739f8844d66f122099 | [
"MIT"
] | null | null | null | import pathlib
import setuptools
setuptools.setup(
name="tihttp",
version="0.1.0",
author='Niklas Tiede',
author_email='niklastiede2@gmail.com',
description="tiny HTTP client for making GET requests.",
long_description=pathlib.Path("README.md").read_text(encoding="utf-8"),
long_description... | 31.227273 | 75 | 0.59607 | 135 | 1,374 | 5.962963 | 0.659259 | 0.141615 | 0.186335 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016489 | 0.249636 | 1,374 | 43 | 76 | 31.953488 | 0.764307 | 0 | 0 | 0.073171 | 0 | 0 | 0.499272 | 0.016012 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04878 | 0 | 0.04878 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c43a895f62ccc71110df63db1c9f0471a361646 | 198 | py | Python | core/src/zeit/content/cp/generation/__init__.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 5 | 2019-05-16T09:51:29.000Z | 2021-05-31T09:30:03.000Z | core/src/zeit/content/cp/generation/__init__.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 107 | 2019-05-24T12:19:02.000Z | 2022-03-23T15:05:56.000Z | core/src/zeit/content/cp/generation/__init__.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 3 | 2020-08-14T11:01:17.000Z | 2022-01-08T17:32:19.000Z | import zope.generations.generations
minimum_generation = 0
generation = 0
manager = zope.generations.generations.SchemaManager(
minimum_generation, generation, "zeit.content.cp.generation")
| 19.8 | 65 | 0.80303 | 21 | 198 | 7.47619 | 0.52381 | 0.191083 | 0.33121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.111111 | 198 | 9 | 66 | 22 | 0.880682 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 0.131313 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c5239bf27954fc3b85d30499730197f374a7664 | 2,055 | py | Python | models/api_auth_access.py | dc74089/the-blue-alliance | 2c47b6e8b61819eda4dcda5e0011cb2d5c7d3785 | [
"MIT"
] | null | null | null | models/api_auth_access.py | dc74089/the-blue-alliance | 2c47b6e8b61819eda4dcda5e0011cb2d5c7d3785 | [
"MIT"
] | null | null | null | models/api_auth_access.py | dc74089/the-blue-alliance | 2c47b6e8b61819eda4dcda5e0011cb2d5c7d3785 | [
"MIT"
] | null | null | null | from google.appengine.ext import ndb
from consts.auth_type import AuthType
from models.account import Account
from models.event import Event
class ApiAuthAccess(ndb.Model):
"""
Manages secrets for access to the read and write APIs.
Models are fetched by ID, which will be some randomly generated alphanume... | 31.615385 | 102 | 0.73382 | 283 | 2,055 | 5.120141 | 0.339223 | 0.055901 | 0.080745 | 0.093858 | 0.207039 | 0.191166 | 0.191166 | 0.170462 | 0.170462 | 0.144928 | 0 | 0.000609 | 0.200973 | 2,055 | 64 | 103 | 32.109375 | 0.881851 | 0.182968 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.097561 | 0.219512 | 0.780488 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4c5ba91e5aba2802b31ac723febb51feb123925b | 157 | py | Python | python/testData/highlighting/returnWithArgumentsInGenerator.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | null | null | null | python/testData/highlighting/returnWithArgumentsInGenerator.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | null | null | null | python/testData/highlighting/returnWithArgumentsInGenerator.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | 1 | 2020-11-27T10:36:50.000Z | 2020-11-27T10:36:50.000Z | def <info descr="null">f</info>():
yield 42
<error descr="Python versions < 3.3 do not allow 'return' with argument inside generator.">return 28</error>
| 39.25 | 110 | 0.700637 | 25 | 157 | 4.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.146497 | 157 | 3 | 111 | 52.333333 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0.503185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c62982e27cae59a0d107b56ff929e9412da80d5 | 71 | py | Python | code/arc017_1_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/arc017_1_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/arc017_1_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N=int(input())
print("YES" if all([N%n for n in range(2,N)]) else "NO") | 35.5 | 56 | 0.605634 | 17 | 71 | 2.529412 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.126761 | 71 | 2 | 56 | 35.5 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4c635ac05d08f385dcdc1ff4a6f010ac45c2fcb3 | 221 | py | Python | web/test.1.py | patjawat/tcds | 115ae8151a152a21538cf0a837379bb1e3204ea2 | [
"BSD-3-Clause"
] | null | null | null | web/test.1.py | patjawat/tcds | 115ae8151a152a21538cf0a837379bb1e3204ea2 | [
"BSD-3-Clause"
] | 41 | 2019-07-28T03:42:14.000Z | 2019-08-25T14:51:55.000Z | web/test.1.py | patjawat/tcds | 115ae8151a152a21538cf0a837379bb1e3204ea2 | [
"BSD-3-Clause"
] | null | null | null | # myfile = open('xyz.txt', 'w')
# for x in range(1,200):
# # var1, var2 = x.split(",");
# myfile.write("%s\n" % str('xx'))
# myfile.close()
import sys
# print str(sys.argv[0])
# return sys.argv
print str('55')
| 17 | 38 | 0.556561 | 36 | 221 | 3.416667 | 0.75 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050562 | 0.19457 | 221 | 12 | 39 | 18.416667 | 0.640449 | 0.791855 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
4c6805fcce466f9aa7aec1277518f2a18f892cd7 | 22,733 | py | Python | python_modules/dagster-graphql/dagster_graphql_tests/graphql/snapshots/snap_test_solids.py | zzztimbo/dagster | 5cf8f159183a80d2364e05bb30362e2798a7af37 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster-graphql/dagster_graphql_tests/graphql/snapshots/snap_test_solids.py | zzztimbo/dagster | 5cf8f159183a80d2364e05bb30362e2798a7af37 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster-graphql/dagster_graphql_tests/graphql/snapshots/snap_test_solids.py | zzztimbo/dagster | 5cf8f159183a80d2364e05bb30362e2798a7af37 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_query_all_solids 1'] = {
'usedSolids': [
{
'__typename': 'UsedSolid',
'definition': {
... | 28.523212 | 77 | 0.277042 | 883 | 22,733 | 6.738392 | 0.12684 | 0.112941 | 0.190588 | 0.218824 | 0.751765 | 0.595294 | 0.514118 | 0.447059 | 0.404706 | 0.253109 | 0 | 0.002071 | 0.617604 | 22,733 | 796 | 78 | 28.559045 | 0.682388 | 0.002727 | 0 | 0.361568 | 0 | 0 | 0.272587 | 0.065908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001264 | 0.002528 | 0 | 0.002528 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c7aee65e0620f4bd2ee12b69e97857c5b2eb455 | 2,102 | py | Python | sa/migrations/0158_managed_object_telemetry.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:36:48.000Z | 2019-09-20T09:36:48.000Z | sa/migrations/0158_managed_object_telemetry.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | sa/migrations/0158_managed_object_telemetry.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# Managed Object telemetry settings
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# --------------------------------------------... | 35.033333 | 83 | 0.510466 | 175 | 2,102 | 5.948571 | 0.331429 | 0.207493 | 0.184438 | 0.086455 | 0.759846 | 0.7195 | 0.649376 | 0.649376 | 0.649376 | 0.56292 | 0 | 0.010081 | 0.292103 | 2,102 | 59 | 84 | 35.627119 | 0.689516 | 0.188868 | 0 | 0.681818 | 0 | 0 | 0.329592 | 0.142351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.045455 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5b31c7adf0c6f82d127befe315d11a405ca574b | 949 | py | Python | httprunner/builtin/functions.py | yangjourney/httprunner | cd8376d35852ae5ae488e1b83c96fd41f56279e7 | [
"Apache-2.0"
] | null | null | null | httprunner/builtin/functions.py | yangjourney/httprunner | cd8376d35852ae5ae488e1b83c96fd41f56279e7 | [
"Apache-2.0"
] | null | null | null | httprunner/builtin/functions.py | yangjourney/httprunner | cd8376d35852ae5ae488e1b83c96fd41f56279e7 | [
"Apache-2.0"
] | 1 | 2020-02-10T14:33:48.000Z | 2020-02-10T14:33:48.000Z | """
Built-in functions used in YAML/JSON testcases.
"""
import datetime
import random
import string
import time
from httprunner.compat import builtin_str, integer_types
from httprunner.exceptions import ParamsError
def gen_random_string(str_len):
""" generate random string with specified length
"""
retu... | 23.146341 | 84 | 0.689146 | 134 | 949 | 4.738806 | 0.485075 | 0.056693 | 0.040945 | 0.062992 | 0.08189 | 0.08189 | 0.08189 | 0 | 0 | 0 | 0 | 0.014304 | 0.189673 | 949 | 40 | 85 | 23.725 | 0.811443 | 0.240253 | 0 | 0 | 0 | 0 | 0.075581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.352941 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d5ce1ca32bab96a75d69ed5c6d57c34e4c1b7371 | 85 | py | Python | Section05_Singleton/SingletonDecorator/Database.py | enriqueescobar-askida/Kinito.Python | e4c5521e771c4de0ceaf81776a4a61f7de01edb4 | [
"MIT"
] | 1 | 2020-10-20T07:41:51.000Z | 2020-10-20T07:41:51.000Z | Section05_Singleton/SingletonDecorator/Database.py | enriqueescobar-askida/Kinito.Python | e4c5521e771c4de0ceaf81776a4a61f7de01edb4 | [
"MIT"
] | null | null | null | Section05_Singleton/SingletonDecorator/Database.py | enriqueescobar-askida/Kinito.Python | e4c5521e771c4de0ceaf81776a4a61f7de01edb4 | [
"MIT"
] | null | null | null | @singleton
class Database:
def __init__(self):
print('Loading database')
| 17 | 33 | 0.670588 | 9 | 85 | 5.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223529 | 85 | 4 | 34 | 21.25 | 0.80303 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5d003150f54a8691bc11a5f5ade1a6dc9312916 | 182 | py | Python | ctapipe/__init__.py | watsonjj/ctapipe | fc98748d7a38f50040f1fbe3ce5e174ad8c0ba0a | [
"BSD-3-Clause"
] | 53 | 2015-06-23T15:24:20.000Z | 2021-09-23T22:30:58.000Z | ctapipe/__init__.py | watsonjj/ctapipe | fc98748d7a38f50040f1fbe3ce5e174ad8c0ba0a | [
"BSD-3-Clause"
] | 1,537 | 2015-06-24T11:27:16.000Z | 2022-03-31T16:17:08.000Z | ctapipe/__init__.py | watsonjj/ctapipe | fc98748d7a38f50040f1fbe3ce5e174ad8c0ba0a | [
"BSD-3-Clause"
] | 275 | 2015-07-09T14:09:28.000Z | 2022-03-17T22:25:51.000Z | """
ctapipe - CTA Python pipeline experimental version
Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
from .version import __version__
__all__ = ["__version__"]
| 20.222222 | 61 | 0.758242 | 23 | 182 | 5.478261 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.153846 | 182 | 8 | 62 | 22.75 | 0.811688 | 0.620879 | 0 | 0 | 0 | 0 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d5e81f23ec39843bb66e9a5cdd8878f145b6b6fc | 1,245 | py | Python | regexlib/python_re2_test_file/regexlib_4184.py | yetingli/ReDoS-Benchmarks | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | [
"MIT"
] | 1 | 2022-01-24T14:43:23.000Z | 2022-01-24T14:43:23.000Z | regexlib/python_re2_test_file/regexlib_4184.py | yetingli/ReDoS-Benchmarks | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | [
"MIT"
] | null | null | null | regexlib/python_re2_test_file/regexlib_4184.py | yetingli/ReDoS-Benchmarks | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | [
"MIT"
] | null | null | null | # 4184
# ((http|https|ftp|telnet|gopher|ms\-help|file|notes)://)?(([a-z][\w~%!&',;=\-\.$\(\)\*\+]*)(:.*)?@)?(([a-z0-9][\w\-]*[a-z0-9]*\.)*(((([a-z0-9][\w\-]*[a-z0-9]*)(\.[a-z0-9]+)?)|(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))(:[0-9]+)?))?(((/([\w`~!$=;\-\+\.\^\(\)\|\{\}\[... | 65.526316 | 412 | 0.395181 | 205 | 1,245 | 2.365854 | 0.287805 | 0.057732 | 0.098969 | 0.061856 | 0.494845 | 0.457732 | 0.457732 | 0.457732 | 0.457732 | 0.457732 | 0 | 0.098604 | 0.079518 | 1,245 | 19 | 413 | 65.526316 | 0.324607 | 0.39759 | 0 | 0 | 0 | 0.090909 | 0.606469 | 0.536388 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
910b05b651aec2bcf902dc89faa5a45567ede208 | 57 | py | Python | test/data/valid/overwrite.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | test/data/valid/overwrite.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | test/data/valid/overwrite.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | __version__ = '42'
__version__ = '1.2.3'
__custom__ = 42
| 14.25 | 21 | 0.684211 | 8 | 57 | 3.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 0.157895 | 57 | 3 | 22 | 19 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 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 | 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 | 3 |
910c6328e8f8d2466f39e946f383be850d5fef71 | 84 | py | Python | pipelines/resources/__init__.py | cdeitrick/workflows | 8edd2a08078144a2445af3903eb13b71abb96538 | [
"MIT"
] | null | null | null | pipelines/resources/__init__.py | cdeitrick/workflows | 8edd2a08078144a2445af3903eb13b71abb96538 | [
"MIT"
] | null | null | null | pipelines/resources/__init__.py | cdeitrick/workflows | 8edd2a08078144a2445af3903eb13b71abb96538 | [
"MIT"
] | null | null | null | from pathlib import Path
illumina_filename = Path(__file__).parent / "adapters.fa"
| 21 | 57 | 0.785714 | 11 | 84 | 5.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 84 | 3 | 58 | 28 | 0.824324 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9110d792e2d25582b669e36349a8867ef8127e87 | 312 | py | Python | rdd/sumOfNumbers/SumOfNumbersProblem.py | GitHubSeyhun/Data-Analytics | 28e4630e611df96774db2237677fa11a090dc5ca | [
"Apache-2.0"
] | null | null | null | rdd/sumOfNumbers/SumOfNumbersProblem.py | GitHubSeyhun/Data-Analytics | 28e4630e611df96774db2237677fa11a090dc5ca | [
"Apache-2.0"
] | null | null | null | rdd/sumOfNumbers/SumOfNumbersProblem.py | GitHubSeyhun/Data-Analytics | 28e4630e611df96774db2237677fa11a090dc5ca | [
"Apache-2.0"
] | null | null | null | import sys
from pyspark import SparkContext
if __name__ == "__main__":
'''
Create a Spark program to read the first 100 prime numbers from in/prime_nums.text,
print the sum of those numbers to console.
Each row of the input file contains 10 prime numbers separated by spaces.
'''
| 28.363636 | 88 | 0.698718 | 46 | 312 | 4.543478 | 0.782609 | 0.114833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021368 | 0.25 | 312 | 10 | 89 | 31.2 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
91139a9ba168a8f5123fd3c55a6351fe2fe34c7d | 288 | py | Python | tests/locust_web.py | iniciativa-snih/pomnicek | 9e06bf828c24666ca5c34a5428b568c59b6e783f | [
"MIT"
] | 1 | 2021-03-22T09:55:58.000Z | 2021-03-22T09:55:58.000Z | tests/locust_web.py | iniciativa-snih/pomnicek | 9e06bf828c24666ca5c34a5428b568c59b6e783f | [
"MIT"
] | null | null | null | tests/locust_web.py | iniciativa-snih/pomnicek | 9e06bf828c24666ca5c34a5428b568c59b6e783f | [
"MIT"
] | null | null | null | from locust import HttpUser, task, between
class Locust(HttpUser):
wait_time = between(1, 2.5)
@task
def index(self):
self.client.get("/")
@task
def image(self):
self.client.get("/_next/image?url=%2Fimages%2Fpersons%2Fpostava_deda2.png&w=96&q=75")
| 20.571429 | 93 | 0.642361 | 41 | 288 | 4.439024 | 0.707317 | 0.076923 | 0.153846 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048246 | 0.208333 | 288 | 13 | 94 | 22.153846 | 0.75 | 0 | 0 | 0.222222 | 0 | 0.111111 | 0.232639 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
911515b81c14a010dc73bae62088e13ddd145fa2 | 228 | py | Python | tests/test_application.py | MaastrichtU-IDS/ci-workshop-template | aab118c9a38b5dcf58658e5f9f4a658a9f6d7e10 | [
"MIT"
] | 1 | 2020-06-08T14:29:07.000Z | 2020-06-08T14:29:07.000Z | tests/test_application.py | MaastrichtU-IDS/ci-workshop-template | aab118c9a38b5dcf58658e5f9f4a658a9f6d7e10 | [
"MIT"
] | null | null | null | tests/test_application.py | MaastrichtU-IDS/ci-workshop-template | aab118c9a38b5dcf58658e5f9f4a658a9f6d7e10 | [
"MIT"
] | null | null | null | import pytest
from workshop_ci.application import App
@pytest.fixture
def app():
return App()
class TestApplication(object):
def test_return_value(self, app):
assert app.get_hello_world() == "Hello, World"
| 15.2 | 54 | 0.710526 | 30 | 228 | 5.233333 | 0.666667 | 0.127389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188596 | 228 | 14 | 55 | 16.285714 | 0.848649 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
91159ea858a58ebc942b1bde442ba4744f983b9a | 1,115 | py | Python | geode/value/__init__.py | jjqcat/geode | 157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e | [
"BSD-3-Clause"
] | 75 | 2015-02-08T22:04:31.000Z | 2022-02-26T14:31:43.000Z | geode/value/__init__.py | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 15 | 2015-01-08T15:11:38.000Z | 2021-09-05T13:27:22.000Z | geode/value/__init__.py | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 22 | 2015-03-11T16:43:13.000Z | 2021-02-15T09:37:51.000Z | from __future__ import absolute_import
from geode import *
from . import parser
import types
def is_value(value):
return isinstance(value, Value)
def is_prop(prop):
return is_value(prop) and prop.is_prop()
def const_value(value, name=""):
return const_value_py(value, name)
def Prop(name,default,shape=None):
... | 27.875 | 104 | 0.724664 | 162 | 1,115 | 4.734568 | 0.395062 | 0.039113 | 0.039113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173991 | 1,115 | 39 | 105 | 28.589744 | 0.83279 | 0.086099 | 0 | 0 | 0 | 0 | 0.077986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.129032 | 0.129032 | 0.709677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9116db23884d19802ed164eaf5b1381fa6056059 | 15,939 | py | Python | source/aws/services/cloudformation.py | GraemeKnights/aws-control-tower-customizations | d7a48dd65bd325708f0b4647a65551c1a7d0c3ac | [
"Apache-2.0"
] | null | null | null | source/aws/services/cloudformation.py | GraemeKnights/aws-control-tower-customizations | d7a48dd65bd325708f0b4647a65551c1a7d0c3ac | [
"Apache-2.0"
] | null | null | null | source/aws/services/cloudformation.py | GraemeKnights/aws-control-tower-customizations | d7a48dd65bd325708f0b4647a65551c1a7d0c3ac | [
"Apache-2.0"
] | null | null | null | ##############################################################################
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). #
# Y... | 43.430518 | 80 | 0.547337 | 1,456 | 15,939 | 5.745192 | 0.149038 | 0.035386 | 0.03156 | 0.037657 | 0.790556 | 0.761267 | 0.714644 | 0.690377 | 0.669576 | 0.649731 | 0 | 0.002291 | 0.370099 | 15,939 | 366 | 81 | 43.54918 | 0.830876 | 0.083757 | 0 | 0.651724 | 0 | 0 | 0.089833 | 0.051639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055172 | false | 0.003448 | 0.013793 | 0 | 0.141379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9128e261ffd03d88b023f16fc7c0ce59db3f6479 | 4,079 | py | Python | config/settings.py | KiuchiKoichi/KisoProject-ByebyeTODO | 1700775c01f87b457ba27db6fe482ededc5c4ef9 | [
"MIT"
] | null | null | null | config/settings.py | KiuchiKoichi/KisoProject-ByebyeTODO | 1700775c01f87b457ba27db6fe482ededc5c4ef9 | [
"MIT"
] | null | null | null | config/settings.py | KiuchiKoichi/KisoProject-ByebyeTODO | 1700775c01f87b457ba27db6fe482ededc5c4ef9 | [
"MIT"
] | 1 | 2021-03-01T07:42:21.000Z | 2021-03-01T07:42:21.000Z | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
fr... | 25.654088 | 114 | 0.707036 | 451 | 4,079 | 6.259424 | 0.419069 | 0.069075 | 0.054552 | 0.061991 | 0.17074 | 0.164718 | 0.09458 | 0.09458 | 0.042508 | 0 | 0 | 0.016413 | 0.16352 | 4,079 | 158 | 115 | 25.816456 | 0.810961 | 0.288796 | 0 | 0.022727 | 1 | 0.011364 | 0.54441 | 0.446883 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068182 | 0.034091 | 0 | 0.034091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
91363ee509f76cc3e62f62f29e834c4ce7c8bd58 | 460 | py | Python | app/gql/photo/input.py | yoshiya0503/flask-graphQL-example | 469bc38d183ebb0ed7e9a14427d813cb1fdb3b3e | [
"MIT"
] | null | null | null | app/gql/photo/input.py | yoshiya0503/flask-graphQL-example | 469bc38d183ebb0ed7e9a14427d813cb1fdb3b3e | [
"MIT"
] | null | null | null | app/gql/photo/input.py | yoshiya0503/flask-graphQL-example | 469bc38d183ebb0ed7e9a14427d813cb1fdb3b3e | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- encoding: utf-8 -*-
"""
photo input
photo_input.py
"""
__author__ = 'Yoshiya Ito <myon53@gmail.com>'
__version__ = '1.0.0'
__date__ = '2019-12-06'
import graphene
class PhotoInput(graphene.InputObjectType):
user_id = graphene.Int(required=True)
name = graphene.String(required=Tru... | 24.210526 | 49 | 0.713043 | 58 | 460 | 5.413793 | 0.672414 | 0.152866 | 0.280255 | 0.248408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.141304 | 460 | 18 | 50 | 25.555556 | 0.756962 | 0.158696 | 0 | 0 | 0 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e67bc669dd4c791acc00897b58bb882a6b1dd0a6 | 180 | py | Python | multiplication_table.py | ld2416/Fun-with-Python | 442ea02d0e739afaa76a2782cb69267100ec9b9a | [
"MIT"
] | 1 | 2019-11-29T20:37:44.000Z | 2019-11-29T20:37:44.000Z | multiplication_table.py | ld2416/Fun-with-Python | 442ea02d0e739afaa76a2782cb69267100ec9b9a | [
"MIT"
] | null | null | null | multiplication_table.py | ld2416/Fun-with-Python | 442ea02d0e739afaa76a2782cb69267100ec9b9a | [
"MIT"
] | null | null | null | def multiplicationTable(size):
return [[j*i for j in range(1, size+1)] for i in range(1, size+1)]
x = multiplicationTable(5)
print(x)
print()
for i in x:
print(i)
| 15 | 70 | 0.627778 | 32 | 180 | 3.53125 | 0.40625 | 0.123894 | 0.141593 | 0.212389 | 0.230089 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.227778 | 180 | 11 | 71 | 16.363636 | 0.776978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 3 |
e691b623ea221c3ba8df5fe8ad4b21f2809f61de | 199 | py | Python | 07_Conditional Expressions/03_Short_hand.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | 2 | 2021-05-29T17:22:40.000Z | 2021-06-07T09:32:53.000Z | 07_Conditional Expressions/03_Short_hand.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | null | null | null | 07_Conditional Expressions/03_Short_hand.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | null | null | null | # short hand if
a=23
b=4
if a > b: print("a is greater than b")
# short hand if
print("a is greater ") if a > b else print("b is greater ")
#pass statements
b=300
if b > a:
pass
| 13.266667 | 60 | 0.577889 | 39 | 199 | 2.948718 | 0.384615 | 0.078261 | 0.191304 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.306533 | 199 | 14 | 61 | 14.214286 | 0.789855 | 0.211055 | 0 | 0 | 0 | 0 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e695924bb272bcbcd5421b2ff721847a2a42f54d | 361 | py | Python | core/dataset/__init__.py | YutouTaro/TrianFlow | 295d318a561f9001ed334bce2bcf6a591b6ff9f9 | [
"MIT"
] | null | null | null | core/dataset/__init__.py | YutouTaro/TrianFlow | 295d318a561f9001ed334bce2bcf6a591b6ff9f9 | [
"MIT"
] | null | null | null | core/dataset/__init__.py | YutouTaro/TrianFlow | 295d318a561f9001ed334bce2bcf6a591b6ff9f9 | [
"MIT"
] | null | null | null | import os, sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from kitti_raw import KITTI_RAW
from kitti_prepared import KITTI_Prepared
from kitti_2012 import KITTI_2012
from kitti_2015 import KITTI_2015
from nyu_v2 import NYU_Prepare, NYU_v2
from kitti_odo import KITTI_Odo
from euroc_raw import EUROC_RAW
... | 36.1 | 59 | 0.861496 | 63 | 361 | 4.603175 | 0.301587 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055385 | 0.099723 | 361 | 10 | 60 | 36.1 | 0.836923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.9 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e69a148996edff37464c139b05c4c9ffa09184c3 | 365 | py | Python | noxfile.py | rrybarczyk/overlay-risk | 03a3302db93bae0338a13fc1218cb452a2be7d47 | [
"MIT"
] | 9 | 2021-07-25T06:43:59.000Z | 2022-03-29T14:54:58.000Z | noxfile.py | rrybarczyk/overlay-risk | 03a3302db93bae0338a13fc1218cb452a2be7d47 | [
"MIT"
] | 10 | 2021-06-21T22:58:09.000Z | 2022-03-29T04:10:23.000Z | noxfile.py | rrybarczyk/overlay-risk | 03a3302db93bae0338a13fc1218cb452a2be7d47 | [
"MIT"
] | 5 | 2021-04-09T09:55:28.000Z | 2022-03-21T15:35:08.000Z | import nox
@nox.session(python=['3.9'])
def tests(session):
session.install('poetry')
session.run('poetry', 'install')
session.run('coverage', 'run', '-m', 'pytest')
session.run('coverage', 'report')
@nox.session
def lint(session):
session.install('poetry')
session.run('poetry', 'install')
... | 21.470588 | 50 | 0.635616 | 44 | 365 | 5.272727 | 0.409091 | 0.215517 | 0.181034 | 0.232759 | 0.517241 | 0.517241 | 0.517241 | 0.517241 | 0.517241 | 0.517241 | 0 | 0.009677 | 0.150685 | 365 | 16 | 51 | 22.8125 | 0.73871 | 0 | 0 | 0.333333 | 0 | 0 | 0.252055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e69cdc236e8de2f931969874c5c941aab16b238d | 2,112 | py | Python | test_data/invalid_imports.py | kamahen/pykythe | d54fd05096af5eb47efb863f613f12d5d80c6c41 | [
"Apache-2.0"
] | 14 | 2018-01-07T01:53:15.000Z | 2021-09-22T00:57:29.000Z | test_data/invalid_imports.py | kamahen/pykythe | d54fd05096af5eb47efb863f613f12d5d80c6c41 | [
"Apache-2.0"
] | 39 | 2018-01-07T20:54:25.000Z | 2021-03-21T23:48:17.000Z | test_data/invalid_imports.py | kamahen/pykythe | d54fd05096af5eb47efb863f613f12d5d80c6c41 | [
"Apache-2.0"
] | 3 | 2018-12-31T14:37:14.000Z | 2020-07-04T10:53:02.000Z | try:
# TODO: Fix extra "."s with "<unknown>"s (see module_path.pl)
#- { @foo4 defines/binding _ }
#- { @foo4 ref/imports vname("<unknown>.${ROOT_UP_FQN}.pykythe.yyy.zot.foo4", _, _, "", python) }
#- { @zot ref/imports vname("<unknown>.${ROOT_UP_FQN}.pykythe.yyy.zot", _, _, "", python) }
#- { @yyy... | 44.93617 | 108 | 0.589489 | 263 | 2,112 | 4.520913 | 0.209125 | 0.109336 | 0.164003 | 0.203532 | 0.664424 | 0.647603 | 0.571909 | 0.555088 | 0.457527 | 0.343987 | 0 | 0.014143 | 0.196496 | 2,112 | 46 | 109 | 45.913043 | 0.686506 | 0.704072 | 0 | 0.368421 | 0 | 0 | 0.15807 | 0.0599 | 0 | 0 | 0 | 0.021739 | 0.157895 | 1 | 0 | false | 0.052632 | 0.210526 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e6b20c619f56a0cd4cab6ddc8af6de2d501ab7c1 | 366 | py | Python | virtool_workflow/analysis/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | null | null | null | virtool_workflow/analysis/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | null | null | null | virtool_workflow/analysis/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | null | null | null | from virtool_workflow.analysis.sample import sample
from virtool_workflow.analysis.subtractions import subtractions
from virtool_workflow.analysis.hmms import hmms
from virtool_workflow.analysis.analysis import analysis
from virtool_workflow.analysis.indexes import indexes
__all__ = [
"sample",
"subtractions",... | 26.142857 | 63 | 0.786885 | 41 | 366 | 6.804878 | 0.243902 | 0.197133 | 0.340502 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136612 | 366 | 13 | 64 | 28.153846 | 0.882911 | 0 | 0 | 0 | 0 | 0 | 0.101093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e6c24d381cff0985930ce3086eafbdd8602f783d | 6,514 | py | Python | fabric_cf/actor/core/manage/broker_management_object.py | fabric-testbed/ActorBase | 3c7dd040ee79fef0759e66996c93eeec57c790b2 | [
"MIT"
] | null | null | null | fabric_cf/actor/core/manage/broker_management_object.py | fabric-testbed/ActorBase | 3c7dd040ee79fef0759e66996c93eeec57c790b2 | [
"MIT"
] | null | null | null | fabric_cf/actor/core/manage/broker_management_object.py | fabric-testbed/ActorBase | 3c7dd040ee79fef0759e66996c93eeec57c790b2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2020 FABRIC Testbed
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to ... | 54.283333 | 118 | 0.750998 | 771 | 6,514 | 6.120623 | 0.280156 | 0.042382 | 0.040687 | 0.039627 | 0.297733 | 0.230134 | 0.164442 | 0.063573 | 0.063573 | 0.036448 | 0 | 0.001309 | 0.178999 | 6,514 | 120 | 119 | 54.283333 | 0.881077 | 0.173626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.333333 | 0.138889 | 0.694444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
e6dd59de69ceb442019500421d2f753cde0c471d | 794 | py | Python | python/unittest/script.py | codetojoy/gists | 2616f36a8c301810a88b8a9e124af442cf717263 | [
"Apache-2.0"
] | 1 | 2020-04-17T00:08:06.000Z | 2020-04-17T00:08:06.000Z | python/unittest/script.py | codetojoy/gists | 2616f36a8c301810a88b8a9e124af442cf717263 | [
"Apache-2.0"
] | 2 | 2021-04-25T12:26:02.000Z | 2021-07-27T17:17:32.000Z | python/unittest/script.py | codetojoy/gists | 2616f36a8c301810a88b8a9e124af442cf717263 | [
"Apache-2.0"
] | 1 | 2018-02-27T01:32:08.000Z | 2018-02-27T01:32:08.000Z |
import os
import re
import shutil
def my_func(x, y):
return x+y
class MyClass:
def do_square(self, x):
return x*x
def check_file(self, file):
return os.path.isfile(file)
def copy_file(self, a, b):
shutil.copyfile(a, b)
def read_matching_lines(self, path, regex):
... | 20.358974 | 53 | 0.517632 | 110 | 794 | 3.663636 | 0.454545 | 0.109181 | 0.096774 | 0.084367 | 0.094293 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.376574 | 794 | 38 | 54 | 20.894737 | 0.80404 | 0 | 0 | 0 | 0 | 0 | 0.061791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.1 | 0.166667 | 0.633333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e6e0d0ee0e757126499ff6d240b7ed7eae840609 | 226 | py | Python | VersionDeterminationTests/test_VersionDetermination.py | grobbles/verion-determination | 04600ff2c854b98849de12779e36b899cbff6679 | [
"MIT"
] | null | null | null | VersionDeterminationTests/test_VersionDetermination.py | grobbles/verion-determination | 04600ff2c854b98849de12779e36b899cbff6679 | [
"MIT"
] | null | null | null | VersionDeterminationTests/test_VersionDetermination.py | grobbles/verion-determination | 04600ff2c854b98849de12779e36b899cbff6679 | [
"MIT"
] | null | null | null |
from unittest import TestCase
from VersionDetermination.Main import VersionDetermination
class TestVersionDetermination(TestCase):
def test_add(self):
main = VersionDetermination("..")
pass
pass
| 15.066667 | 58 | 0.725664 | 20 | 226 | 8.15 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212389 | 226 | 14 | 59 | 16.142857 | 0.91573 | 0 | 0 | 0.285714 | 0 | 0 | 0.008889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fc00b4386a7493ecab8a7eb33e6f7913e08475dc | 132 | py | Python | migration/migrator/migrations/course/20180729161731_update_old_merged_thread.py | elihschiff/Submitty | 8b980997b6f1dfcd73eb4cf4cca43398e67f96dc | [
"BSD-3-Clause"
] | 411 | 2016-06-14T20:52:25.000Z | 2022-03-31T21:20:25.000Z | migration/migrator/migrations/course/20180729161731_update_old_merged_thread.py | KaelanWillauer/Submitty | cf9b6ceda15ec0a661e2ca81ea7864790094c64a | [
"BSD-3-Clause"
] | 5,730 | 2016-05-23T21:04:32.000Z | 2022-03-31T10:08:06.000Z | migration/migrator/migrations/course/20180729161731_update_old_merged_thread.py | KaelanWillauer/Submitty | cf9b6ceda15ec0a661e2ca81ea7864790094c64a | [
"BSD-3-Clause"
] | 423 | 2016-09-22T21:11:30.000Z | 2022-03-29T18:55:28.000Z | def up(config, database, semester, course):
database.execute("UPDATE threads SET deleted = false WHERE merged_thread_id <> -1")
| 44 | 87 | 0.742424 | 18 | 132 | 5.333333 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.143939 | 132 | 2 | 88 | 66 | 0.840708 | 0 | 0 | 0 | 0 | 0 | 0.477273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc0e02f98b4f8ad719b88d17058fbb9a3dadfb05 | 15,220 | py | Python | tests/test_vit_fsdp.py | Pedrexus/vissl | d8f888143212f264f4bdf8a415f0968db51f364f | [
"MIT"
] | null | null | null | tests/test_vit_fsdp.py | Pedrexus/vissl | d8f888143212f264f4bdf8a415f0968db51f364f | [
"MIT"
] | null | null | null | tests/test_vit_fsdp.py | Pedrexus/vissl | d8f888143212f264f4bdf8a415f0968db51f364f | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import contextlib
import pickle
import unittest
import torch
import torch.multiprocessing as mp
import torch.nn as nn
import torch.optim as opt... | 33.672566 | 110 | 0.53272 | 1,677 | 15,220 | 4.573643 | 0.147883 | 0.026467 | 0.021904 | 0.009387 | 0.733377 | 0.72764 | 0.714863 | 0.684876 | 0.674576 | 0.661408 | 0 | 0.014993 | 0.351445 | 15,220 | 451 | 111 | 33.747228 | 0.76203 | 0.083443 | 0 | 0.630499 | 0 | 0 | 0.049666 | 0.009651 | 0 | 0 | 0 | 0 | 0.01173 | 1 | 0.029326 | false | 0 | 0.049853 | 0 | 0.085044 | 0.029326 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc105aaefa52ae4d299d1654a65646a44bf3ff17 | 220 | py | Python | 基础教程/A1-Python与基础知识/算法第一步/ExampleCodes/chapter16/16-7.py | microsoft/ai-edu | 2f59fa4d3cf19f14e0b291e907d89664bcdc8df3 | [
"Apache-2.0"
] | 11,094 | 2019-05-07T02:48:50.000Z | 2022-03-31T08:49:42.000Z | 基础教程/A1-Python与基础知识/算法第一步/ExampleCodes/chapter16/16-7.py | microsoft/ai-edu | 2f59fa4d3cf19f14e0b291e907d89664bcdc8df3 | [
"Apache-2.0"
] | 157 | 2019-05-13T15:07:19.000Z | 2022-03-23T08:52:32.000Z | 基础教程/A1-Python与基础知识/算法第一步/ExampleCodes/chapter16/16-7.py | microsoft/ai-edu | 2f59fa4d3cf19f14e0b291e907d89664bcdc8df3 | [
"Apache-2.0"
] | 2,412 | 2019-05-07T02:55:15.000Z | 2022-03-30T06:56:52.000Z | def recursion_test(depth):
print("recursion depth:", depth)
if depth < 996:
recursion_test(depth + 1)
else:
print("exit recursion")
return
# 下面是 代码16-5,重复出现,不要出现在代码示例里:
recursion_test(1) | 20 | 36 | 0.640909 | 28 | 220 | 4.928571 | 0.571429 | 0.282609 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047904 | 0.240909 | 220 | 11 | 37 | 20 | 0.778443 | 0.122727 | 0 | 0 | 0 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.25 | 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 | 0 | 0 | 0 | 3 |
fc2ab343ab64742b5e6324684f3cdae0be0686ec | 11,754 | py | Python | sdk/python/v0.1-rc.4/opentelematicsapi/controllers/use_case_driver_route_directions_communication_controller.py | nmfta-repo/nmfta-opentelematics-prototype | 729e9391879e273545a4818558677b2e47261f08 | [
"Apache-2.0"
] | 2 | 2021-12-15T08:37:03.000Z | 2022-02-11T20:40:42.000Z | sdk/python/v0.1-rc.4/opentelematicsapi/controllers/use_case_driver_route_directions_communication_controller.py | nmfta-repo/nmfta-opentelematics-prototype | 729e9391879e273545a4818558677b2e47261f08 | [
"Apache-2.0"
] | 8 | 2019-12-04T22:56:46.000Z | 2022-02-10T08:23:29.000Z | sdk/python/v0.1-rc.4/opentelematicsapi/controllers/use_case_driver_route_directions_communication_controller.py | nmfta-repo/nmfta-opentelematics-prototype | 729e9391879e273545a4818558677b2e47261f08 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
opentelematicsapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
import logging
from opentelematicsapi.api_helper import APIHelper
from opentelematicsapi.configuration import Configuration
from opentelematicsapi.controllers.base_controller impo... | 45.914063 | 126 | 0.600647 | 1,190 | 11,754 | 5.717647 | 0.176471 | 0.049971 | 0.055556 | 0.030423 | 0.739712 | 0.72913 | 0.699442 | 0.676808 | 0.655056 | 0.646678 | 0 | 0.00533 | 0.297686 | 11,754 | 255 | 127 | 46.094118 | 0.818898 | 0.360558 | 0 | 0.547826 | 1 | 0 | 0.17271 | 0.078783 | 0 | 0 | 0 | 0.007843 | 0 | 1 | 0.034783 | false | 0 | 0.078261 | 0 | 0.147826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc388f4b7123f2114fd6687c4dfa09d0e7e60267 | 104 | py | Python | dd_1/Part 1/Section 09 - Modules, Packages and Namespaces/08 - structuring_package_imports/common/models/posts/__init__.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | 3,266 | 2017-08-06T16:51:46.000Z | 2022-03-30T07:34:24.000Z | python-tuts/0-beginner/8-Modules_Packages_Namespaces/08 - Pkg Imports/common/models/posts/__init__.py | Kemal321/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | 0e7bad7ac30f4ceda3a78cd49f76bd6035982972 | [
"Apache-2.0"
] | 150 | 2017-08-28T14:59:36.000Z | 2022-03-11T23:21:35.000Z | python-tuts/0-beginner/8-Modules_Packages_Namespaces/08 - Pkg Imports/common/models/posts/__init__.py | Kemal321/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | 0e7bad7ac30f4ceda3a78cd49f76bd6035982972 | [
"Apache-2.0"
] | 1,449 | 2017-08-06T17:40:59.000Z | 2022-03-31T12:03:24.000Z | # posts
from .posts import *
from .post import *
__all__ = (posts.__all__ +
post.__all__)
| 11.555556 | 26 | 0.615385 | 12 | 104 | 4.333333 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278846 | 104 | 8 | 27 | 13 | 0.693333 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fc4e75071972c40944bd2e5162dc1c33441c5c43 | 488 | py | Python | frappe/chat/doctype/chat_message/test_chat_message.py | spa49/frappe | f0e6b01cc6d02f7e100d223309f2bc3167398087 | [
"MIT"
] | 2 | 2017-08-24T20:25:13.000Z | 2017-10-15T13:14:31.000Z | frappe/chat/doctype/chat_message/test_chat_message.py | spa49/frappe | f0e6b01cc6d02f7e100d223309f2bc3167398087 | [
"MIT"
] | 89 | 2017-09-19T15:17:44.000Z | 2022-03-31T00:52:42.000Z | frappe/chat/doctype/chat_message/test_chat_message.py | spa49/frappe | f0e6b01cc6d02f7e100d223309f2bc3167398087 | [
"MIT"
] | 3 | 2019-08-09T17:52:18.000Z | 2020-07-29T08:23:46.000Z | # imports - standard imports
import unittest
# imports - module imports
import frappe
# imports - frappe module imports
from frappe.chat.doctype.chat_message import chat_message
from frappe.chat.util import create_test_user
session = frappe.session
test_user = create_test_user(__name__)
class TestChatMessage(unit... | 24.4 | 57 | 0.77459 | 69 | 488 | 5.275362 | 0.492754 | 0.087912 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151639 | 488 | 19 | 58 | 25.684211 | 0.879227 | 0.397541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.111111 | false | 0.111111 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
fc52496fbe0be6479d4cfa9453e027553fdee4d8 | 349 | py | Python | users/models.py | khaledAltuwaijri/cheetah | 02a5329981c1f63ac6ae1cedaa9f8a010dc138bb | [
"MIT"
] | null | null | null | users/models.py | khaledAltuwaijri/cheetah | 02a5329981c1f63ac6ae1cedaa9f8a010dc138bb | [
"MIT"
] | null | null | null | users/models.py | khaledAltuwaijri/cheetah | 02a5329981c1f63ac6ae1cedaa9f8a010dc138bb | [
"MIT"
] | null | null | null | # from django.contrib.auth import get_user_model
from django.contrib.auth.models import AbstractUser
from django.db import models
# User = get_user_model()
class User(AbstractUser):
location = models.CharField(max_length=30, blank=True)
birthday = models.DateField(null=True, blank=True)
def __str__(self... | 24.928571 | 58 | 0.750716 | 48 | 349 | 5.270833 | 0.5625 | 0.118577 | 0.134387 | 0.166008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.157593 | 349 | 13 | 59 | 26.846154 | 0.853742 | 0.200573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fc6120678f374d7d31dec7e9ee84e7b2ece337d8 | 1,259 | py | Python | py_min_stack/stack_integer.py | Naman-Bhalla/py_min_stack | 676a0f36de089dcaea0fa321bbb3daf76856aceb | [
"Apache-2.0"
] | null | null | null | py_min_stack/stack_integer.py | Naman-Bhalla/py_min_stack | 676a0f36de089dcaea0fa321bbb3daf76856aceb | [
"Apache-2.0"
] | null | null | null | py_min_stack/stack_integer.py | Naman-Bhalla/py_min_stack | 676a0f36de089dcaea0fa321bbb3daf76856aceb | [
"Apache-2.0"
] | null | null | null | class Stack:
def __init__(self):
self.stack = []
self.current_minimum = float('inf')
def push(self, item):
if not self.stack:
self.stack.append(item)
self.current_minimum = item
else:
if item >= self.current_minimum:
self.stack... | 27.977778 | 70 | 0.514694 | 134 | 1,259 | 4.679104 | 0.19403 | 0.210526 | 0.344498 | 0.175439 | 0.561404 | 0.395534 | 0.280702 | 0.280702 | 0.15949 | 0.15949 | 0 | 0.004027 | 0.408261 | 1,259 | 45 | 71 | 27.977778 | 0.837584 | 0 | 0 | 0.575 | 0 | 0 | 0.002381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0 | 0.025 | 0.35 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc68fe5b86d9a500229a0f884403daeb1e7b7580 | 53 | py | Python | tests/errors/test_tuple1.py | akshanshbhatt/lpython | 70fef49dbbb6cbb0447f7013231171e5c8b8e5df | [
"BSD-3-Clause"
] | 31 | 2022-01-07T23:56:33.000Z | 2022-03-29T16:09:02.000Z | tests/errors/test_tuple1.py | akshanshbhatt/lpython | 70fef49dbbb6cbb0447f7013231171e5c8b8e5df | [
"BSD-3-Clause"
] | 197 | 2021-12-29T19:01:41.000Z | 2022-03-31T15:58:25.000Z | tests/errors/test_tuple1.py | akshanshbhatt/lpython | 70fef49dbbb6cbb0447f7013231171e5c8b8e5df | [
"BSD-3-Clause"
] | 17 | 2022-01-06T15:34:36.000Z | 2022-03-31T13:55:33.000Z | def main():
t: tuple[i32, str]
t = (1, 2)
main() | 10.6 | 20 | 0.490566 | 10 | 53 | 2.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.264151 | 53 | 5 | 21 | 10.6 | 0.564103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc7ef12fd96767df74eccd03628457c280f78746 | 196 | py | Python | helga_umb/topics/eng/pungi/status_change.py | ktdreyer/helga-umb | f0c6858745d90205e74eec0eb5ebaafa655b2336 | [
"MIT"
] | null | null | null | helga_umb/topics/eng/pungi/status_change.py | ktdreyer/helga-umb | f0c6858745d90205e74eec0eb5ebaafa655b2336 | [
"MIT"
] | 2 | 2018-04-27T15:37:10.000Z | 2018-08-22T21:00:40.000Z | helga_umb/topics/eng/pungi/status_change.py | ktdreyer/helga-umb | f0c6858745d90205e74eec0eb5ebaafa655b2336 | [
"MIT"
] | null | null | null | """ Announce Pungi status change. """
import helga_umb.topics.eng.pungi as pungi
def consume(client, channel, frame):
message = pungi.describe_status(frame)
client.msg(channel, message)
| 24.5 | 42 | 0.734694 | 26 | 196 | 5.461538 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147959 | 196 | 7 | 43 | 28 | 0.850299 | 0.147959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc9dc0a7daa80d8b82a44c30af3dce9f4d7e259f | 3,221 | py | Python | examples/games/revertris.py | murilopolese/pixel-turtle | 83cbe669550befe9ced7ea419c1ac59d05dabb4b | [
"MIT"
] | 1 | 2021-02-22T07:21:29.000Z | 2021-02-22T07:21:29.000Z | examples/games/revertris.py | murilopolese/pixel-turtle | 83cbe669550befe9ced7ea419c1ac59d05dabb4b | [
"MIT"
] | null | null | null | examples/games/revertris.py | murilopolese/pixel-turtle | 83cbe669550befe9ced7ea419c1ac59d05dabb4b | [
"MIT"
] | 4 | 2018-07-24T19:43:56.000Z | 2022-02-04T06:53:23.000Z | import PixelKit as kit
from time import sleep
from random import randint as random
stage = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,... | 22.061644 | 60 | 0.512574 | 598 | 3,221 | 2.76087 | 0.130435 | 0.307692 | 0.457904 | 0.605694 | 0.252574 | 0.252574 | 0.223501 | 0.195639 | 0.161114 | 0.161114 | 0 | 0.155665 | 0.303943 | 3,221 | 145 | 61 | 22.213793 | 0.580731 | 0 | 0 | 0.446154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.023077 | 0.007692 | 0.130769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fca6788534e69d7b2c4f89713aa4b46e2522cac8 | 656 | py | Python | 2020/day03.py | dernett/advent-of-code | 7ba953781ff94831071302b21f51a15c125e423c | [
"MIT"
] | null | null | null | 2020/day03.py | dernett/advent-of-code | 7ba953781ff94831071302b21f51a15c125e423c | [
"MIT"
] | null | null | null | 2020/day03.py | dernett/advent-of-code | 7ba953781ff94831071302b21f51a15c125e423c | [
"MIT"
] | null | null | null | import sys, math, itertools
def count_trees(grid, slope, start=(0, 0)):
width, (sx,sy), (dx,dy) = len(grid[0]), start, slope
return sum(row[x % width] == '#' for row, x in
zip(grid[sy::dy], itertools.count(sx, dx)))
def part_one(grid):
return count_trees(grid, (3, 1))
def part_two(grid):
... | 29.818182 | 66 | 0.608232 | 107 | 656 | 3.570093 | 0.429907 | 0.078534 | 0.109948 | 0.099476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028681 | 0.202744 | 656 | 21 | 67 | 31.238095 | 0.701721 | 0 | 0 | 0 | 0 | 0 | 0.044207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.125 | 0.5625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5d834690ce21b962d82a568606e96bbff6c5679c | 3,950 | py | Python | eds/event.py | manheim/eds | 20398c2585bf666a2d909be52f314116a41061a5 | [
"Apache-2.0"
] | 3 | 2021-05-20T10:53:56.000Z | 2021-12-06T13:21:15.000Z | eds/event.py | manheim/eds | 20398c2585bf666a2d909be52f314116a41061a5 | [
"Apache-2.0"
] | 27 | 2021-06-05T03:21:28.000Z | 2021-09-22T19:15:27.000Z | eds/event.py | manheim/eds | 20398c2585bf666a2d909be52f314116a41061a5 | [
"Apache-2.0"
] | 3 | 2021-05-16T18:49:55.000Z | 2021-07-09T15:07:21.000Z |
from __future__ import annotations
import os
from eds.interfaces.vcs_provider import VcsProvider
from typing import Dict
class Event():
"""A commit event for a project."""
def __init__(self, eds_built: bool, eds_plugins_built: bool, url: str, project_name: str,
project_version: str):
... | 25.986842 | 101 | 0.572405 | 450 | 3,950 | 4.822222 | 0.168889 | 0.0553 | 0.062212 | 0.058986 | 0.31659 | 0.214747 | 0.191705 | 0.143779 | 0.086636 | 0.086636 | 0 | 0 | 0.337215 | 3,950 | 151 | 102 | 26.15894 | 0.828877 | 0.38481 | 0 | 0.254902 | 0 | 0 | 0.004117 | 0 | 0 | 0 | 0 | 0.006623 | 0 | 1 | 0.254902 | false | 0.058824 | 0.078431 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5d8572580b982c510530c6c3e3682ef9383511b6 | 899 | py | Python | src/sqlfluff/core/parser/matchable.py | jaypark72/sqlfluff | 636bf5e09d9b42638a1f44119a02010e78ea21a3 | [
"MIT"
] | 2 | 2021-08-04T08:58:33.000Z | 2021-08-04T18:54:06.000Z | src/sqlfluff/core/parser/matchable.py | jaypark72/sqlfluff | 636bf5e09d9b42638a1f44119a02010e78ea21a3 | [
"MIT"
] | null | null | null | src/sqlfluff/core/parser/matchable.py | jaypark72/sqlfluff | 636bf5e09d9b42638a1f44119a02010e78ea21a3 | [
"MIT"
] | 1 | 2021-07-03T12:56:56.000Z | 2021-07-03T12:56:56.000Z | """The definition of a matchable interface."""
import copy
from abc import ABC, abstractmethod
from typing import List, Optional, TYPE_CHECKING
if TYPE_CHECKING:
from sqlfluff.core.parser.context import ParseContext
from sqlfluff.core.parser.match_result import MatchResult
class Matchable(ABC):
"""A ba... | 29 | 85 | 0.689655 | 105 | 899 | 5.847619 | 0.47619 | 0.083062 | 0.052117 | 0.071661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196885 | 899 | 30 | 86 | 29.966667 | 0.850416 | 0.252503 | 0 | 0.2 | 0 | 0 | 0.068643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.333333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5d973a7f2daece418d61f1db1c66f6c3eff23c05 | 1,142 | py | Python | Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio037.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio037.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio037.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | numero = int(input('\033[33mDigite um número inteiro:\033[m '))
print("""Escolha uma das bases para conversão:
[ \033[1;31m1\033[m ] converter para \033[1;31mBINÁRIO\033[m
[ \033[1;35m2\033[m ] converter para \033[1;35mOCTAL\033[m
[ \033[1;36m3\033[m ] converter para \033[1;36mHEXADECIMAL\033[m""")
opcao = int(input('S... | 63.444444 | 123 | 0.668126 | 202 | 1,142 | 3.777228 | 0.252475 | 0.099607 | 0.094364 | 0.157274 | 0.685452 | 0.646134 | 0.563565 | 0.563565 | 0.441678 | 0.441678 | 0 | 0.182 | 0.124343 | 1,142 | 18 | 124 | 63.444444 | 0.581 | 0 | 0 | 0 | 0 | 0.529412 | 0.666667 | 0.246719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.470588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5d97a57619c98890a8f50f68cf1826d5fc19a5c8 | 300 | py | Python | epi_judge_python/substring_match.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | epi_judge_python/substring_match.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | epi_judge_python/substring_match.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | from test_framework import generic_test
def rabin_karp(t: str, s: str) -> int:
# TODO - you fill in here.
return 0
if __name__ == '__main__':
exit(
generic_test.generic_test_main('substring_match.py',
'substring_match.tsv', rabin_karp))
| 23.076923 | 74 | 0.6 | 38 | 300 | 4.289474 | 0.710526 | 0.202454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.303333 | 300 | 12 | 75 | 25 | 0.77512 | 0.08 | 0 | 0 | 0 | 0 | 0.164234 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
5d9ca8450f68bd007fc659e7361603c0c4fd3b2b | 311 | py | Python | src/outpost/django/base/endpoints.py | medunigraz/outpost.django.base | afaa0c037d3f6537dc6fee027ed36164b2cae26b | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/base/endpoints.py | medunigraz/outpost.django.base | afaa0c037d3f6537dc6fee027ed36164b2cae26b | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/base/endpoints.py | medunigraz/outpost.django.base | afaa0c037d3f6537dc6fee027ed36164b2cae26b | [
"BSD-2-Clause"
] | null | null | null | from . import api
v1 = [
(r"base/contenttype", api.ContentTypeViewSet, "base-contenttype"),
(r"base/notification", api.NotificationViewSet, "base-notification"),
(r"base/task", api.TaskViewSet, "base-task"),
(r"base/password-strength", api.PasswordStrengthViewSet, "base-password-strength"),
]
| 34.555556 | 87 | 0.707395 | 34 | 311 | 6.470588 | 0.441176 | 0.090909 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.118971 | 311 | 8 | 88 | 38.875 | 0.79927 | 0 | 0 | 0 | 0 | 0 | 0.411576 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5da3d049c19b006f14147afb80b5feedcef2647c | 2,813 | py | Python | pubnub/endpoints/history.py | Versature/pubnub-python | a558d212a44ada6fbf2793a32e93685c959b8b22 | [
"MIT"
] | null | null | null | pubnub/endpoints/history.py | Versature/pubnub-python | a558d212a44ada6fbf2793a32e93685c959b8b22 | [
"MIT"
] | null | null | null | pubnub/endpoints/history.py | Versature/pubnub-python | a558d212a44ada6fbf2793a32e93685c959b8b22 | [
"MIT"
] | null | null | null | import six
from pubnub import utils
from pubnub.endpoints.endpoint import Endpoint
from pubnub.enums import HttpMethod, PNOperationType
from pubnub.models.consumer.history import PNHistoryResult
class History(Endpoint):
HISTORY_PATH = "/v2/history/sub-key/%s/channel/%s"
MAX_COUNT = 100
def __init__(self... | 27.31068 | 106 | 0.639175 | 329 | 2,813 | 5.24924 | 0.227964 | 0.083382 | 0.069485 | 0.034742 | 0.038217 | 0.038217 | 0 | 0 | 0 | 0 | 0 | 0.003935 | 0.277284 | 2,813 | 102 | 107 | 27.578431 | 0.845548 | 0 | 0 | 0.078947 | 0 | 0 | 0.035194 | 0.011731 | 0 | 0 | 0 | 0 | 0.065789 | 1 | 0.223684 | false | 0 | 0.065789 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5dafe7082252af84522eb84615b686a306ff2c55 | 4,689 | py | Python | CDSB_series/df/model.py | WFDetector/WFDetection | b16d35b3a3a5de62de9e0bac83eccd21b6358b53 | [
"Apache-2.0"
] | null | null | null | CDSB_series/df/model.py | WFDetector/WFDetection | b16d35b3a3a5de62de9e0bac83eccd21b6358b53 | [
"Apache-2.0"
] | null | null | null | CDSB_series/df/model.py | WFDetector/WFDetection | b16d35b3a3a5de62de9e0bac83eccd21b6358b53 | [
"Apache-2.0"
] | null | null | null | # DF model used for non-defended dataset
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv1D, MaxPooling1D, BatchNormalization
# from tensorflow.python.keras.layers.core import Activation, Flatten, Dense, Dropout
# from tensorflow.python.keras.layers.advanced_activations import ELU... | 49.882979 | 100 | 0.620815 | 570 | 4,689 | 4.924561 | 0.147368 | 0.122551 | 0.064125 | 0.05985 | 0.80798 | 0.740292 | 0.731742 | 0.609191 | 0.488778 | 0.323477 | 0 | 0.04135 | 0.241843 | 4,689 | 93 | 101 | 50.419355 | 0.748242 | 0.0418 | 0 | 0.307692 | 0 | 0 | 0.10205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0 | 0.064103 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5db424c0f1706d163cd91fbad48ea5bf8fe8887d | 247 | py | Python | apps/2d/advection/smooth_example/generate_iniparams.py | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | apps/2d/advection/smooth_example/generate_iniparams.py | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | apps/2d/advection/smooth_example/generate_iniparams.py | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | from finess.params import append_pac_from_module, write_to_header_cpp
import finess.params.dim2
pac = finess.params.dim2.starter_pac()
parameter_list, accessor_list, check_list = pac
if __name__ == "__main__":
write_to_header_cpp(*pac)
| 17.642857 | 69 | 0.789474 | 37 | 247 | 4.702703 | 0.540541 | 0.206897 | 0.149425 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.125506 | 247 | 13 | 70 | 19 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0.032922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5dba06b87e413f99ea9e65065b5481232d8214b1 | 3,500 | py | Python | koku/api/views.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | 2 | 2022-01-12T03:42:39.000Z | 2022-01-12T03:42:40.000Z | koku/api/views.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | null | null | null | koku/api/views.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | 1 | 2021-07-21T09:33:59.000Z | 2021-07-21T09:33:59.000Z | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""API views for import organization"""
# flake8: noqa
from api.cloud_accounts.views import cloud_accounts
from api.currency.view import get_currency
from api.dataexport.views import DataExportRequestViewSet
from api.forecast.views import AWSCostFo... | 51.470588 | 85 | 0.868571 | 478 | 3,500 | 6.282427 | 0.232218 | 0.142191 | 0.095238 | 0.10656 | 0.397269 | 0.221445 | 0.106893 | 0 | 0 | 0 | 0 | 0.002163 | 0.075143 | 3,500 | 67 | 86 | 52.238806 | 0.925548 | 0.031714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.