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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2ed71ed7a9a747fba215b44edd7a5422566c389 | 628 | py | Python | locust/test/test_util.py | datarobot/locust | fb9dcf5efe42694b6edc9a5acf24d81b86ca3a00 | [
"MIT"
] | 1 | 2018-07-24T18:42:26.000Z | 2018-07-24T18:42:26.000Z | locust/test/test_util.py | datarobot/locust | fb9dcf5efe42694b6edc9a5acf24d81b86ca3a00 | [
"MIT"
] | 2 | 2020-03-27T06:35:59.000Z | 2020-04-03T08:16:51.000Z | locust/test/test_util.py | datarobot/locust | fb9dcf5efe42694b6edc9a5acf24d81b86ca3a00 | [
"MIT"
] | 1 | 2017-11-09T22:37:38.000Z | 2017-11-09T22:37:38.000Z | import unittest
from locust.util.time import parse_timespan
class TestParseTimespan(unittest.TestCase):
def test_parse_timespan_invalid_values(self):
self.assertRaises(ValueError, parse_timespan, None)
self.assertRaises(ValueError, parse_timespan, "")
self.assertRaises(ValueError, parse_ti... | 39.25 | 59 | 0.719745 | 72 | 628 | 6.069444 | 0.402778 | 0.327231 | 0.17849 | 0.212815 | 0.400458 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036329 | 0.167197 | 628 | 16 | 60 | 39.25 | 0.799235 | 0 | 0 | 0 | 0 | 0 | 0.022258 | 0 | 0 | 0 | 0 | 0 | 0.615385 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e2f6fb712b5a86c29fdd197582f23b92c00ed483 | 470 | py | Python | repos/spikewidgets/tests/test_001.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | repos/spikewidgets/tests/test_001.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | repos/spikewidgets/tests/test_001.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | import numpy as np
import os, sys
import unittest
def append_to_path(dir0): # A convenience function
if dir0 not in sys.path:
sys.path.append(dir0)
append_to_path(os.getcwd() + '/..')
import spikewidgets as sw
class Test001(unittest.TestCase):
def setUp(self):
pass
def tearDown(self)... | 16.785714 | 51 | 0.661702 | 65 | 470 | 4.538462 | 0.569231 | 0.054237 | 0.081356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.234043 | 470 | 27 | 52 | 17.407407 | 0.797222 | 0.046809 | 0 | 0.117647 | 0 | 0 | 0.024664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.117647 | 0.235294 | 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 |
3904c92040bd26329419354c3602267776f1b9f4 | 327 | py | Python | ABXpy/sideop/__init__.py | bootphon/ABXpy | 8d9f4f824169f49ab363cbb2d9d2950df77f097d | [
"MIT"
] | 37 | 2015-01-08T23:40:58.000Z | 2022-02-25T11:50:54.000Z | ABXpy/sideop/__init__.py | bootphon/ABXpy | 8d9f4f824169f49ab363cbb2d9d2950df77f097d | [
"MIT"
] | 15 | 2017-10-10T09:47:35.000Z | 2022-03-28T13:40:25.000Z | ABXpy/sideop/__init__.py | bootphon/ABXpy | 8d9f4f824169f49ab363cbb2d9d2950df77f097d | [
"MIT"
] | 17 | 2015-11-12T15:37:42.000Z | 2020-07-02T19:09:47.000Z | """This module contains the filter and regressor managers used by
task to apply the filters and regressors. Both those classes use a
side operation manager that implement the generic functions. This
allow to apply the filters and regressors as early as possible during
the triplet generation to optimise the performances... | 40.875 | 69 | 0.813456 | 50 | 327 | 5.32 | 0.72 | 0.052632 | 0.075188 | 0.12782 | 0.225564 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159021 | 327 | 7 | 70 | 46.714286 | 0.967273 | 0.972477 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
392531c9d83e4121843dc65b1bd486e3c79dd519 | 3,845 | py | Python | unopartylib/test/fixtures/params.py | terhnt/unoparty-lib | f23bcfc91ac109dc8c248210229c253be7d405ed | [
"MIT"
] | null | null | null | unopartylib/test/fixtures/params.py | terhnt/unoparty-lib | f23bcfc91ac109dc8c248210229c253be7d405ed | [
"MIT"
] | null | null | null | unopartylib/test/fixtures/params.py | terhnt/unoparty-lib | f23bcfc91ac109dc8c248210229c253be7d405ed | [
"MIT"
] | null | null | null | """
This is a collection of default transaction data used to test various components.
"""
UNIT = 100000000
"""This structure is used throughout the test suite to populate transactions with standardized and tested data."""
#removed pubkey hash, may need to be re-added.
DEFAULT_PARAMS = {
'addresses': [
['U... | 56.544118 | 220 | 0.764109 | 294 | 3,845 | 9.778912 | 0.438776 | 0.038261 | 0.034435 | 0.046957 | 0.124522 | 0.124174 | 0.086609 | 0.077913 | 0.01913 | 0.01913 | 0 | 0.213345 | 0.111313 | 3,845 | 67 | 221 | 57.38806 | 0.628036 | 0.170871 | 0 | 0 | 0 | 0 | 0.595355 | 0.491658 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39302f9d7b9ce77e4247a18018f8777ba7dcde6b | 235 | py | Python | tests/models.py | Edge-On-Demand/django-infinite-pagination | e1e1350ea36aa3fb33185bebed9ca4a0823ababe | [
"BSD-3-Clause"
] | 5 | 2015-01-22T16:57:09.000Z | 2021-06-14T08:03:45.000Z | tests/models.py | Edge-On-Demand/django-infinite-pagination | e1e1350ea36aa3fb33185bebed9ca4a0823ababe | [
"BSD-3-Clause"
] | null | null | null | tests/models.py | Edge-On-Demand/django-infinite-pagination | e1e1350ea36aa3fb33185bebed9ca4a0823ababe | [
"BSD-3-Clause"
] | 5 | 2015-03-04T13:20:54.000Z | 2019-05-01T19:52:36.000Z | #-*- coding: utf-8 -*-
from django.db import models
class Article(models.Model):
title = models.CharField("title", max_length=50)
class Meta:
ordering = ["id"]
def __unicode__(self):
return self.title
| 15.666667 | 52 | 0.621277 | 29 | 235 | 4.862069 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.242553 | 235 | 14 | 53 | 16.785714 | 0.775281 | 0.089362 | 0 | 0 | 0 | 0 | 0.032864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1a3c7985c1ab355b86cdb78975c4964a45059ce5 | 131 | py | Python | tests/__main__.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 13 | 2017-09-06T21:48:57.000Z | 2022-02-08T20:50:52.000Z | tests/__main__.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 1 | 2021-04-04T18:07:04.000Z | 2021-04-04T18:07:04.000Z | tests/__main__.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 1 | 2019-07-19T01:23:19.000Z | 2019-07-19T01:23:19.000Z | import os
from . import connect
sg = connect(os.environ.get('SGCACHE_SHOTGUN_URL', 'http://localhost:8020/'))
cache = connect()
| 16.375 | 77 | 0.717557 | 18 | 131 | 5.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.122137 | 131 | 7 | 78 | 18.714286 | 0.765217 | 0 | 0 | 0 | 0 | 0 | 0.312977 | 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 |
1a417d55104773b2d8ae8ef085deeef8b0e92d30 | 1,122 | py | Python | books/migrations/0008_auto_20160422_1148.py | MattRijk/finance-ebook-site | c564d4bc9578f0a6f47efa53f0c81893fbee08f7 | [
"MIT"
] | 1 | 2020-05-16T12:48:02.000Z | 2020-05-16T12:48:02.000Z | books/migrations/0008_auto_20160422_1148.py | MattRijk/finance-ebook-site | c564d4bc9578f0a6f47efa53f0c81893fbee08f7 | [
"MIT"
] | null | null | null | books/migrations/0008_auto_20160422_1148.py | MattRijk/finance-ebook-site | c564d4bc9578f0a6f47efa53f0c81893fbee08f7 | [
"MIT"
] | 3 | 2017-12-06T11:18:10.000Z | 2020-05-16T12:49:32.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('books', '0007_auto_20160422_1121'),
]
operations = [
migrations.AlterField(
model_name='author',
... | 28.05 | 64 | 0.542781 | 100 | 1,122 | 5.91 | 0.37 | 0.169205 | 0.211506 | 0.245347 | 0.610829 | 0.610829 | 0.610829 | 0.610829 | 0.610829 | 0.610829 | 0 | 0.04336 | 0.342246 | 1,122 | 39 | 65 | 28.769231 | 0.757453 | 0.018717 | 0 | 0.606061 | 0 | 0 | 0.088679 | 0.021698 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a50d2e01d205b2cb4ebca658a5b54aab9feadda | 4,438 | py | Python | tests/variables.py | hd4niel/package-status-web | 91b8d1c0e9e53d65a67ad77ed256a491fabb3fad | [
"MIT"
] | null | null | null | tests/variables.py | hd4niel/package-status-web | 91b8d1c0e9e53d65a67ad77ed256a491fabb3fad | [
"MIT"
] | 1 | 2021-03-20T16:17:51.000Z | 2021-03-20T16:17:51.000Z | tests/variables.py | hd4niel/package-status-web | 91b8d1c0e9e53d65a67ad77ed256a491fabb3fad | [
"MIT"
] | null | null | null | names = ["libquadmath0", "libssl1.0.0"]
status = {"libquadmath0":
{"Name": "libquadmath0",
"Dependencies": ["gcc-5-base", "libc6"],
"Description": "GCC Quad-Precision Math Library<br/> A library, which provides quad-precision mathematical functions on targets<br/> supporting the __float1... | 66.238806 | 291 | 0.605678 | 559 | 4,438 | 4.790698 | 0.216458 | 0.029873 | 0.033607 | 0.040329 | 0.780807 | 0.753921 | 0.690441 | 0.677745 | 0.677745 | 0.643391 | 0 | 0.042262 | 0.242902 | 4,438 | 66 | 292 | 67.242424 | 0.754762 | 0 | 0 | 0.30303 | 0 | 0.151515 | 0.740424 | 0.046868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015152 | 0 | 0.015152 | 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 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a642a5931a1d018a356bb5a49c2c7e549cb573b | 67 | py | Python | WEEKS/CD_Sata-Structures/general/practice/PYTHON/sortByHeight.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 11 | 2021-02-18T04:53:44.000Z | 2022-01-16T10:57:39.000Z | WEEKS/CD_Sata-Structures/general/practice/PYTHON/sortByHeight.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | WEEKS/CD_Sata-Structures/general/practice/PYTHON/sortByHeight.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 8 | 2021-02-18T05:12:34.000Z | 2022-03-06T19:02:14.000Z | A, = numpy.r_[eval(dir()[0])]
A[A > 0] = sorted(A[A > 0])
return A
| 16.75 | 29 | 0.522388 | 15 | 67 | 2.266667 | 0.533333 | 0.117647 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.179104 | 67 | 3 | 30 | 22.333333 | 0.563636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a70966d42fcb7a6a2cf9a66f79a565e87c9283e | 148 | py | Python | atcoder/abc/c039.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | atcoder/abc/c039.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | atcoder/abc/c039.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | S = input()
scale_list = ["Do", "", "Re", "", "Mi", "Fa", "", "So", "", "La", "", "Si"]
order = "WBWBWWBWBWBW" * 3
print(scale_list[order.find(S)])
| 29.6 | 75 | 0.493243 | 20 | 148 | 3.55 | 0.8 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.155405 | 148 | 4 | 76 | 37 | 0.56 | 0 | 0 | 0 | 0 | 0 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a772960639d94d31b164f56a857874653824671 | 6,474 | py | Python | gui/sprite_editor.py | C3RV1/LaytonEditor | 51e1a9a372a8acdaa4183ae008235a721dc56cdc | [
"Unlicense"
] | 6 | 2019-12-24T00:18:54.000Z | 2022-02-28T17:09:22.000Z | gui/sprite_editor.py | C3RV1/LaytonEditor | 51e1a9a372a8acdaa4183ae008235a721dc56cdc | [
"Unlicense"
] | 1 | 2021-08-18T11:10:35.000Z | 2021-08-18T17:32:21.000Z | gui/sprite_editor.py | C3RV1/LaytonEditor | 51e1a9a372a8acdaa4183ae008235a721dc56cdc | [
"Unlicense"
] | 2 | 2021-01-17T10:42:48.000Z | 2021-08-18T11:10:54.000Z | import wx
import wx.dataview
from formats.graphics.ani import AniSprite, Animation
from gui import generated
class SpriteEditor(generated.SpriteEditor):
_sprite: AniSprite = None
ase_menu: wx.Menu
def __init__(self, parent, *args, **kwargs):
super().__init__(parent, *args, **kwargs)
mai... | 45.591549 | 114 | 0.711307 | 849 | 6,474 | 5.054181 | 0.126031 | 0.102773 | 0.039152 | 0.031461 | 0.616406 | 0.545094 | 0.517828 | 0.442321 | 0.364717 | 0.303892 | 0 | 0.003425 | 0.188137 | 6,474 | 141 | 115 | 45.914894 | 0.812976 | 0.093142 | 0 | 0.252427 | 1 | 0 | 0.011433 | 0 | 0 | 0 | 0 | 0.007092 | 0 | 1 | 0.213592 | false | 0.067961 | 0.048544 | 0 | 0.291262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1a780849cd2e2503c0ad2211de8f64652bc8d0d8 | 2,285 | py | Python | test_utils/runners.py | DmiitriyJarosh/CFPQ-on-GPGPU | 0d37c2ae0b2a7c7ab06742fa5a22906cf57e66d2 | [
"MIT"
] | 6 | 2019-03-28T10:55:14.000Z | 2020-03-30T17:41:34.000Z | test_utils/runners.py | DmiitriyJarosh/CFPQ-on-GPGPU | 0d37c2ae0b2a7c7ab06742fa5a22906cf57e66d2 | [
"MIT"
] | 17 | 2019-03-24T19:26:27.000Z | 2019-11-19T13:19:22.000Z | test_utils/runners.py | DmiitriyJarosh/CFPQ-on-GPGPU | 0d37c2ae0b2a7c7ab06742fa5a22906cf57e66d2 | [
"MIT"
] | 4 | 2019-05-20T09:08:30.000Z | 2019-09-18T14:22:30.000Z | import subprocess
class Runner:
TIMEOUT = 1800
# TIMEOUT = 600
def __init__(self, path, **kwargs):
self.path = path
self.name = path.split('/')[-1]
self.kwargs = kwargs
def run(self, grammar_file, matrix_file, output_file):
return 0
class CRunner(Runner):
def __... | 35.153846 | 106 | 0.58512 | 259 | 2,285 | 4.915058 | 0.204633 | 0.084839 | 0.09348 | 0.115475 | 0.831108 | 0.814611 | 0.716418 | 0.586803 | 0.586803 | 0.554595 | 0 | 0.016 | 0.28884 | 2,285 | 64 | 107 | 35.703125 | 0.767385 | 0.005689 | 0 | 0.607843 | 0 | 0 | 0.02511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156863 | false | 0 | 0.019608 | 0.019608 | 0.352941 | 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 |
1a90cb25c18386e9b2440e444c09529df3d5c231 | 77 | py | Python | demo/stockfw.py | wwj718/pybricksdev | c1357c03c09349dc9081da9b33fe420c7ddc1b5c | [
"MIT"
] | null | null | null | demo/stockfw.py | wwj718/pybricksdev | c1357c03c09349dc9081da9b33fe420c7ddc1b5c | [
"MIT"
] | null | null | null | demo/stockfw.py | wwj718/pybricksdev | c1357c03c09349dc9081da9b33fe420c7ddc1b5c | [
"MIT"
] | null | null | null | from utime import sleep
print("Hello")
sleep(5)
print("World!")
# Exit
1/0
| 8.555556 | 23 | 0.675325 | 13 | 77 | 4 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.155844 | 77 | 8 | 24 | 9.625 | 0.753846 | 0.051948 | 0 | 0 | 0 | 0 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a9b1199a48111cc1922457e12ca53f6df4a6988 | 231 | py | Python | backend/app/models/city.py | temchik00/SocMedia | 94e007a8735e08f94a4a33336334b8f0cded670e | [
"Apache-2.0"
] | null | null | null | backend/app/models/city.py | temchik00/SocMedia | 94e007a8735e08f94a4a33336334b8f0cded670e | [
"Apache-2.0"
] | null | null | null | backend/app/models/city.py | temchik00/SocMedia | 94e007a8735e08f94a4a33336334b8f0cded670e | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel
class CityBase(BaseModel):
name: str
class City(CityBase):
id: int
class Config:
orm_mode = True
class CityCreate(CityBase):
pass
class CityUpdate(CityBase):
pass
| 11 | 30 | 0.670996 | 27 | 231 | 5.703704 | 0.666667 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25974 | 231 | 20 | 31 | 11.55 | 0.900585 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.090909 | 0 | 0.727273 | 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 |
1abbcfab3ce8b21ece487cd91499481040c650d7 | 54 | py | Python | new.py | Fatima-randhawa/assignment | 924c2a207b6c067691c0695b4e21ee1f73f0c489 | [
"MIT"
] | null | null | null | new.py | Fatima-randhawa/assignment | 924c2a207b6c067691c0695b4e21ee1f73f0c489 | [
"MIT"
] | null | null | null | new.py | Fatima-randhawa/assignment | 924c2a207b6c067691c0695b4e21ee1f73f0c489 | [
"MIT"
] | null | null | null | c={'a':10,'b':1, 'c':22}
t=sorted(d.items())
print (t) | 18 | 24 | 0.518519 | 13 | 54 | 2.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.074074 | 54 | 3 | 25 | 18 | 0.46 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
1acb383180c6c905a75c3eeda7a496dbe161b80f | 2,799 | py | Python | georiviere/description/admin.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 7 | 2021-11-05T14:52:25.000Z | 2022-03-24T21:18:02.000Z | georiviere/description/admin.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 57 | 2021-11-02T10:27:34.000Z | 2022-03-31T14:08:32.000Z | georiviere/description/admin.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 1 | 2021-12-05T14:55:42.000Z | 2021-12-05T14:55:42.000Z | from django.contrib import admin
from .models import (StatusType, LandType, UsageType, FlowType, WorkingSpaceType, FaciesDiversity,
GranulometricDiversity, SedimentDynamic, BankState, HabitatsDiversity, HabitatType, PlanLayoutType)
from geotrek.common.mixins import MergeActionMixin
class Physical... | 30.758242 | 120 | 0.742051 | 254 | 2,799 | 8.035433 | 0.177165 | 0.123469 | 0.182264 | 0.205781 | 0.491426 | 0.491426 | 0.491426 | 0.491426 | 0.491426 | 0.491426 | 0 | 0 | 0.144695 | 2,799 | 90 | 121 | 31.1 | 0.852548 | 0 | 0 | 0.5625 | 0 | 0 | 0.064309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046875 | 0 | 0.796875 | 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 |
46c44f980789598d34ca7ac8c3f1519ffd031b81 | 587 | py | Python | pipedrive/pipelines.py | mtShaikh/pipedrive-python | f07c5db75eb8c808d0002f3308a3fc786cfe0f47 | [
"MIT"
] | 35 | 2018-04-24T13:04:53.000Z | 2022-02-25T05:38:58.000Z | pipedrive/pipelines.py | mtShaikh/pipedrive-python | f07c5db75eb8c808d0002f3308a3fc786cfe0f47 | [
"MIT"
] | 23 | 2018-08-16T03:10:38.000Z | 2022-03-23T10:56:44.000Z | pipedrive/pipelines.py | mtShaikh/pipedrive-python | f07c5db75eb8c808d0002f3308a3fc786cfe0f47 | [
"MIT"
] | 44 | 2018-05-09T17:27:43.000Z | 2022-03-23T10:58:05.000Z | class Pipelines(object):
def __init__(self, client):
self._client = client
def get_pipeline(self, pipeline_id, **kwargs):
url = 'pipelines/{}'.format(pipeline_id)
return self._client._get(self._client.BASE_URL + url, **kwargs)
def get_all_pipelines(self, **kwargs):
url = 'p... | 36.6875 | 71 | 0.660988 | 74 | 587 | 4.891892 | 0.22973 | 0.220994 | 0.149171 | 0.157459 | 0.671271 | 0.671271 | 0.494475 | 0.494475 | 0.494475 | 0.494475 | 0 | 0 | 0.201022 | 587 | 15 | 72 | 39.133333 | 0.771855 | 0 | 0 | 0.25 | 0 | 0 | 0.06644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
46c5170923fe6dacf54207b9279ae64cad31ff78 | 343 | py | Python | systems/growing.py | Aitocir/UnfoldingWorld | 70606eec694f006ccd6687912bce7b75d623287e | [
"MIT"
] | 2 | 2019-08-30T08:26:44.000Z | 2021-04-09T14:22:09.000Z | systems/growing.py | Aitocir/UnfoldingWorld | 70606eec694f006ccd6687912bce7b75d623287e | [
"MIT"
] | null | null | null | systems/growing.py | Aitocir/UnfoldingWorld | 70606eec694f006ccd6687912bce7b75d623287e | [
"MIT"
] | null | null | null |
def grow_plants(db, messenger, object):
#
# grow plant
db.increment_property_of_component('plant', object['entity'], 'growth', object['growth_rate'])
return []
def ripen_fruit(db, messenger, object):
db.increment_property_of_component('plant', object['entity'], 'fruit_growth', object['fruit_growt... | 34.3 | 110 | 0.702624 | 42 | 343 | 5.452381 | 0.404762 | 0.09607 | 0.148472 | 0.183406 | 0.41048 | 0.41048 | 0.41048 | 0.41048 | 0 | 0 | 0 | 0 | 0.145773 | 343 | 10 | 111 | 34.3 | 0.78157 | 0.029155 | 0 | 0.333333 | 0 | 0 | 0.206687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 |
46c5c68c7f58ece63fd5d4da6c9d02a4be4ed92d | 88 | py | Python | pacote-download/PythonTeste/desafio047.py | Mariana02Santos/Python | a7bf3489b58d691578f888719c1ad6227ad39d74 | [
"MIT"
] | null | null | null | pacote-download/PythonTeste/desafio047.py | Mariana02Santos/Python | a7bf3489b58d691578f888719c1ad6227ad39d74 | [
"MIT"
] | null | null | null | pacote-download/PythonTeste/desafio047.py | Mariana02Santos/Python | a7bf3489b58d691578f888719c1ad6227ad39d74 | [
"MIT"
] | null | null | null | for c in range(1,50):
if c%2==0:
print('.',end='')
print(c,end=' ')
| 17.6 | 25 | 0.409091 | 15 | 88 | 2.4 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0.329545 | 88 | 4 | 26 | 22 | 0.525424 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 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 |
46e70eae7561e026c6d6ecaa427c64fcfabce924 | 574 | py | Python | ambulance/admin.py | shubhamkulkarni01/EMSTrack-Django | 32ff9ed94a38730c0e9f6385c75060e2d30a930e | [
"MIT",
"BSD-3-Clause"
] | 2 | 2020-07-16T01:44:54.000Z | 2020-10-25T02:08:47.000Z | ambulance/admin.py | shubhamkulkarni01/EMSTrack-Django | 32ff9ed94a38730c0e9f6385c75060e2d30a930e | [
"MIT",
"BSD-3-Clause"
] | 8 | 2020-04-20T22:13:56.000Z | 2022-02-04T17:50:44.000Z | ambulance/admin.py | shubhamkulkarni01/EMSTrack-Django | 32ff9ed94a38730c0e9f6385c75060e2d30a930e | [
"MIT",
"BSD-3-Clause"
] | 2 | 2020-07-20T23:39:44.000Z | 2022-02-24T00:29:10.000Z | from django.contrib import admin
from django.contrib.gis.db import models
from .models import Ambulance, AmbulanceUpdate, \
AmbulanceCall, Patient, Call, \
Location, \
Region
from emstrack.admin import EMSTrackAdmin
# Register classes
admin.site.register(Ambulance, EMSTrackAdmin)
admin.site.register(Ambu... | 26.090909 | 51 | 0.80662 | 64 | 574 | 7.234375 | 0.3125 | 0.136069 | 0.257019 | 0.388769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10453 | 574 | 21 | 52 | 27.333333 | 0.900778 | 0.027875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 |
46f02322bd706c6171e62976d42207a8ae3bcc0d | 178 | py | Python | homun/bot/__init__.py | Floozutter/homun | 140671c7cfc130b9f07af3da6b50e6bfcbd8b89a | [
"Unlicense"
] | null | null | null | homun/bot/__init__.py | Floozutter/homun | 140671c7cfc130b9f07af3da6b50e6bfcbd8b89a | [
"Unlicense"
] | null | null | null | homun/bot/__init__.py | Floozutter/homun | 140671c7cfc130b9f07af3da6b50e6bfcbd8b89a | [
"Unlicense"
] | null | null | null | """
exposes the bot object as a package-level variable
"""
from .bottle import BotInABottle
bot = BotInABottle(command_prefix=">")
from . import config
from . import commands
| 16.181818 | 50 | 0.747191 | 23 | 178 | 5.73913 | 0.73913 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157303 | 178 | 10 | 51 | 17.8 | 0.88 | 0.280899 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
20078f1e267c2e7e7e5308981bee35bd453a4f97 | 239 | py | Python | redissample/app.py | harai/gcp-container-builder-redis-sample | c1311464e3b22eab95fec7c449156c74eb0ab12a | [
"MIT"
] | 1 | 2017-05-14T06:36:08.000Z | 2017-05-14T06:36:08.000Z | redissample/app.py | harai/gcp-container-builder-redis-sample | c1311464e3b22eab95fec7c449156c74eb0ab12a | [
"MIT"
] | null | null | null | redissample/app.py | harai/gcp-container-builder-redis-sample | c1311464e3b22eab95fec7c449156c74eb0ab12a | [
"MIT"
] | 1 | 2020-09-02T20:23:12.000Z | 2020-09-02T20:23:12.000Z | from flask import Flask
from redis import StrictRedis
import os
app = Flask(__name__)
redis = StrictRedis(host=os.environ['REDIS_HOST'])
@app.route('/')
def hello_world():
return 'Hello, {} World!'.format(redis.info()['executable'])
| 18.384615 | 62 | 0.719665 | 32 | 239 | 5.1875 | 0.5625 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121339 | 239 | 12 | 63 | 19.916667 | 0.790476 | 0 | 0 | 0 | 0 | 0 | 0.154812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.625 | 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 |
202353fa70ede1902029c6c91e9491c106838b49 | 52 | py | Python | 4_src/3_other/1_surasura-python/q5-2/q5-2.py | hirobel/todoapp | 834e6dcdd3e6c227a79004c89430c6853935b23c | [
"Apache-2.0"
] | null | null | null | 4_src/3_other/1_surasura-python/q5-2/q5-2.py | hirobel/todoapp | 834e6dcdd3e6c227a79004c89430c6853935b23c | [
"Apache-2.0"
] | null | null | null | 4_src/3_other/1_surasura-python/q5-2/q5-2.py | hirobel/todoapp | 834e6dcdd3e6c227a79004c89430c6853935b23c | [
"Apache-2.0"
] | null | null | null | alpha_num_dict = {
'a':1,
'b':2,
'c':3
} | 10.4 | 18 | 0.384615 | 9 | 52 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0.346154 | 52 | 5 | 19 | 10.4 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 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 |
203b1070a7e621f773b4509bd2144539d23f84d6 | 19 | py | Python | cm-agent/wsgi/__init__.py | manue1/connectivity-manager-agent | 32c89e5edc31f264bd0b9d7f49e2a34e97cc99db | [
"Apache-2.0"
] | null | null | null | cm-agent/wsgi/__init__.py | manue1/connectivity-manager-agent | 32c89e5edc31f264bd0b9d7f49e2a34e97cc99db | [
"Apache-2.0"
] | null | null | null | cm-agent/wsgi/__init__.py | manue1/connectivity-manager-agent | 32c89e5edc31f264bd0b9d7f49e2a34e97cc99db | [
"Apache-2.0"
] | null | null | null | __author__ = 'beb'
| 9.5 | 18 | 0.684211 | 2 | 19 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 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 |
20477465b3f6bc64b8ccc34e766d4ef0fa594793 | 765 | py | Python | src/untropy/utils/jinja.py | untropy-dev/untropy | 0657986ae60202277108aadb3deed8ad9ceddbf4 | [
"Apache-2.0"
] | null | null | null | src/untropy/utils/jinja.py | untropy-dev/untropy | 0657986ae60202277108aadb3deed8ad9ceddbf4 | [
"Apache-2.0"
] | null | null | null | src/untropy/utils/jinja.py | untropy-dev/untropy | 0657986ae60202277108aadb3deed8ad9ceddbf4 | [
"Apache-2.0"
] | null | null | null | from jinja2.ext import Extension
class MustacheExtension(Extension):
"""Jinja2 extension to Templatify a string."""
def __init__(self, environment):
"""Initialize the extension with the given environment."""
super(MustacheExtension, self).__init__(environment)
def mustache(text, *arg... | 28.333333 | 66 | 0.592157 | 76 | 765 | 5.855263 | 0.394737 | 0.062921 | 0.098876 | 0.067416 | 0.14382 | 0.14382 | 0.14382 | 0.14382 | 0 | 0 | 0 | 0.003552 | 0.264052 | 765 | 26 | 67 | 29.423077 | 0.786856 | 0.121569 | 0 | 0 | 0 | 0 | 0.14826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.25 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
204e53d79cee5994e62cb81359fa35d4696c0b3c | 680 | py | Python | packages/slycat/timer.py | sandialabs/slycat | efbb91ce4ea4da08b58399eb820f6d6987408e44 | [
"BSD-3-Clause"
] | 66 | 2015-01-06T20:53:50.000Z | 2022-03-30T17:25:04.000Z | packages/slycat/timer.py | agentdavidjoseph/slycat | 690e1cb07a6fa990d7206265e18edb22ae3f62e7 | [
"BSD-3-Clause"
] | 782 | 2015-01-05T15:42:30.000Z | 2022-03-11T03:27:52.000Z | packages/slycat/timer.py | agentdavidjoseph/slycat | 690e1cb07a6fa990d7206265e18edb22ae3f62e7 | [
"BSD-3-Clause"
] | 23 | 2015-04-29T08:16:27.000Z | 2022-01-05T23:21:54.000Z | # Copyright (c) 2013, 2018 National Technology and Engineering Solutions of Sandia, LLC . Under the terms of Contract
# DE-NA0003525 with National Technology and Engineering Solutions of Sandia, LLC, the U.S. Government
# retains certain rights in this software.
import time
class Timer(object):
def __init__(self, c... | 24.285714 | 117 | 0.713235 | 93 | 680 | 5.075269 | 0.473118 | 0.114407 | 0.110169 | 0.135593 | 0.286017 | 0.220339 | 0.220339 | 0.220339 | 0 | 0 | 0 | 0.027223 | 0.189706 | 680 | 27 | 118 | 25.185185 | 0.829401 | 0.376471 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0.176471 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2054b2ed975b3841723e005d9ad749569501a942 | 216 | py | Python | idl/IDLSyntaxError.py | spiricn/libIDL | 16738044991962bd3a7ab27f469d4364fbcd7b18 | [
"MIT"
] | null | null | null | idl/IDLSyntaxError.py | spiricn/libIDL | 16738044991962bd3a7ab27f469d4364fbcd7b18 | [
"MIT"
] | null | null | null | idl/IDLSyntaxError.py | spiricn/libIDL | 16738044991962bd3a7ab27f469d4364fbcd7b18 | [
"MIT"
] | null | null | null | from idl.IDLError import IDLError
class IDLSyntaxError(IDLError):
NAME = 'Syntax'
def __init__(self, module, line, message):
IDLError.__init__(self, IDLSyntaxError.NAME, message, module, line)
| 24 | 75 | 0.708333 | 24 | 216 | 6.041667 | 0.583333 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 216 | 8 | 76 | 27 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6449395847745324ed8bad9ddb01fc8dea00fe8a | 102 | py | Python | my_scripts/creat_image_path.py | Linby1103/Faster-Rcnn | 0ebd7124568d6c5d8d069294ec9064979a1d1cfe | [
"MIT"
] | null | null | null | my_scripts/creat_image_path.py | Linby1103/Faster-Rcnn | 0ebd7124568d6c5d8d069294ec9064979a1d1cfe | [
"MIT"
] | null | null | null | my_scripts/creat_image_path.py | Linby1103/Faster-Rcnn | 0ebd7124568d6c5d8d069294ec9064979a1d1cfe | [
"MIT"
] | null | null | null | # @File : creat_image_path.py
# @Author: LiBin
# @Date : 2020/1/19
# @Desc :
import os
IamgePath='' | 17 | 30 | 0.637255 | 15 | 102 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 0.186275 | 102 | 6 | 31 | 17 | 0.674699 | 0.696078 | 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 |
644c023a0a38d0916b106ca66d5951fa9f520764 | 602 | py | Python | nustar_pysolar/__init__.py | bwgref/nustar_pysolar | 59b2bd045263b488693feedb2e01e6d922282d33 | [
"MIT"
] | 6 | 2016-08-02T21:07:06.000Z | 2022-03-10T20:15:51.000Z | nustar_pysolar/__init__.py | bwgref/nustar_pysolar | 59b2bd045263b488693feedb2e01e6d922282d33 | [
"MIT"
] | 24 | 2017-05-30T23:41:46.000Z | 2022-02-01T22:57:28.000Z | nustar_pysolar/__init__.py | bwgref/nustar_pysolar | 59b2bd045263b488693feedb2e01e6d922282d33 | [
"MIT"
] | 5 | 2016-07-29T18:55:34.000Z | 2019-11-19T17:21:18.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This is an Astropy affiliated package.
"""
# Affiliated packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init im... | 30.1 | 78 | 0.553156 | 69 | 602 | 4.73913 | 0.73913 | 0.152905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001949 | 0.147841 | 602 | 19 | 79 | 31.684211 | 0.635478 | 0.692691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.857143 | 0 | 0.857143 | 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 |
6457ba708e13162c7ae287a20145ed601c52d594 | 162 | py | Python | api/seq/chipseq/urls.py | antonybholmes/edbw-django-app | 2268fa7f983347742ee55145269ef1222776a838 | [
"MIT"
] | null | null | null | api/seq/chipseq/urls.py | antonybholmes/edbw-django-app | 2268fa7f983347742ee55145269ef1222776a838 | [
"MIT"
] | null | null | null | api/seq/chipseq/urls.py | antonybholmes/edbw-django-app | 2268fa7f983347742ee55145269ef1222776a838 | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf.urls import url
from api.seq.chipseq import views
urlpatterns = [
path('peaks', views.peaks, name='peaks'),
]
| 18 | 45 | 0.728395 | 24 | 162 | 4.916667 | 0.583333 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154321 | 162 | 8 | 46 | 20.25 | 0.861314 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 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 |
645de5fcfe09accbc4fe3008656d376e1800fa3f | 84 | py | Python | login/apps.py | sjsafranek/django_wiki | f73723f6e9e17c9b9ace6519d9a3cd6e1e42bf7a | [
"MIT"
] | null | null | null | login/apps.py | sjsafranek/django_wiki | f73723f6e9e17c9b9ace6519d9a3cd6e1e42bf7a | [
"MIT"
] | 2 | 2021-06-10T17:38:50.000Z | 2021-09-07T23:39:47.000Z | login/apps.py | sjsafranek/django_wiki | f73723f6e9e17c9b9ace6519d9a3cd6e1e42bf7a | [
"MIT"
] | 4 | 2018-03-08T14:28:09.000Z | 2018-06-07T12:55:46.000Z | from django.apps import AppConfig
class LoginConfig(AppConfig):
name = 'login'
| 16.8 | 33 | 0.75 | 10 | 84 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 84 | 4 | 34 | 21 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 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 |
646f5e1a88a39ea2045be40906d25e9ce8a991a9 | 1,683 | py | Python | tests/test_objects/test_keyword.py | dmkskn/isle | 81397e6e8c75543f9fd2efd2c34928077542da2a | [
"MIT"
] | null | null | null | tests/test_objects/test_keyword.py | dmkskn/isle | 81397e6e8c75543f9fd2efd2c34928077542da2a | [
"MIT"
] | null | null | null | tests/test_objects/test_keyword.py | dmkskn/isle | 81397e6e8c75543f9fd2efd2c34928077542da2a | [
"MIT"
] | null | null | null | import inspect
import pytest
from isle.objects import Keyword, Movie
KEYWORD_ID = 3417
KEYWORD_NM = "wormhole"
@pytest.fixture
def keyword_without_name():
keyword = Keyword(KEYWORD_ID)
assert keyword.data.keys() == {"id"}
return keyword
@pytest.fixture
def keyword_with_name():
keyword = Keyword(... | 25.892308 | 75 | 0.766488 | 230 | 1,683 | 5.213043 | 0.178261 | 0.174312 | 0.255213 | 0.183486 | 0.500417 | 0.40367 | 0.261051 | 0.105088 | 0.105088 | 0.105088 | 0 | 0.005533 | 0.14082 | 1,683 | 64 | 76 | 26.296875 | 0.823651 | 0 | 0 | 0.15 | 0 | 0 | 0.030897 | 0.013072 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.25 | false | 0 | 0.075 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6472c82ebd4232f906b4a67e231c7a217296265f | 126 | py | Python | slickqaweb/model/releaseReference.py | slickqa/slickqaweb | 3d8ec25d9febc573e67eb4e91f7b6015d7ad6a68 | [
"Apache-2.0"
] | null | null | null | slickqaweb/model/releaseReference.py | slickqa/slickqaweb | 3d8ec25d9febc573e67eb4e91f7b6015d7ad6a68 | [
"Apache-2.0"
] | 9 | 2015-12-17T18:24:17.000Z | 2018-09-28T16:00:30.000Z | slickqaweb/model/releaseReference.py | slickqa/slickqaweb | 3d8ec25d9febc573e67eb4e91f7b6015d7ad6a68 | [
"Apache-2.0"
] | 2 | 2015-12-17T18:45:20.000Z | 2018-02-01T21:05:13.000Z | from mongoengine import *
class ReleaseReference(EmbeddedDocument):
releaseId = ObjectIdField()
name = StringField() | 21 | 41 | 0.753968 | 10 | 126 | 9.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 126 | 6 | 42 | 21 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6476a8702812c15d0b50ad1dea12fa1346976c17 | 115 | py | Python | Module2/Python_Data_Analysis_code/Chapter 6/joblib/ch6util/read_wav/func_code.py | vijaysharmapc/Python-End-to-end-Data-Analysis | a00f2d5d1547993e000b2551ec6a1360240885ba | [
"MIT"
] | 119 | 2016-08-24T20:12:01.000Z | 2022-03-23T03:59:30.000Z | Module2/Python_Data_Analysis_code/Chapter 6/joblib/ch6util/read_wav/func_code.py | vijaysharmapc/Python-End-to-end-Data-Analysis | a00f2d5d1547993e000b2551ec6a1360240885ba | [
"MIT"
] | 3 | 2016-10-18T03:49:11.000Z | 2020-11-03T12:41:29.000Z | Module2/Python_Data_Analysis_code/Chapter 6/joblib/ch6util/read_wav/func_code.py | vijaysharmapc/Python-End-to-end-Data-Analysis | a00f2d5d1547993e000b2551ec6a1360240885ba | [
"MIT"
] | 110 | 2016-08-19T01:57:35.000Z | 2022-02-18T17:02:17.000Z | # first line: 10
@memory.cache
def read_wav():
wav = dl.data.get_smashing_baby()
return wavfile.read(wav)
| 16.428571 | 37 | 0.686957 | 18 | 115 | 4.222222 | 0.833333 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.182609 | 115 | 6 | 38 | 19.166667 | 0.787234 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
648193afe9aea52dc76c8b704d4a8803138c6ed1 | 442 | py | Python | PyMesh/third_party/pybind11/tests/test_eval.py | VincentLefevre/3D-parallax | 8eab905fcc591e1bd7ddbbb01ad21427286c02e3 | [
"MIT"
] | 73 | 2021-01-05T07:25:51.000Z | 2022-03-17T20:46:01.000Z | pybind11/tests/test_eval.py | alherit/kd-switch-cpp | 7b99e9e20eeb06fbd93b149c0bd5c5de47965f6e | [
"MIT"
] | 1 | 2021-01-05T11:45:36.000Z | 2021-01-05T20:55:28.000Z | pybind11/tests/test_eval.py | alherit/kd-switch-cpp | 7b99e9e20eeb06fbd93b149c0bd5c5de47965f6e | [
"MIT"
] | 4 | 2021-01-05T10:27:50.000Z | 2021-01-06T12:02:57.000Z | import os
from pybind11_tests import eval_ as m
def test_evals(capture):
with capture:
assert m.test_eval_statements()
assert capture == "Hello World!"
assert m.test_eval()
assert m.test_eval_single_statement()
filename = os.path.join(os.path.dirname(__file__), "test_eval_cal... | 24.555556 | 76 | 0.69457 | 63 | 442 | 4.52381 | 0.428571 | 0.196491 | 0.231579 | 0.315789 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005764 | 0.214932 | 442 | 17 | 77 | 26 | 0.815562 | 0 | 0 | 0 | 0 | 0 | 0.068235 | 0 | 0 | 0 | 0 | 0 | 0.583333 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
64ba59f91cb0ff33fd9eb17f7c0f5c980bb4fdc5 | 1,686 | py | Python | tests/test_two_winding_model.py | tamasorosz/TrafoCalc | f7b6d5dbd8b144cfbc4f7f86467a5a3fa3c32f9d | [
"Apache-2.0"
] | null | null | null | tests/test_two_winding_model.py | tamasorosz/TrafoCalc | f7b6d5dbd8b144cfbc4f7f86467a5a3fa3c32f9d | [
"Apache-2.0"
] | 2 | 2022-03-29T07:45:37.000Z | 2022-03-30T15:49:08.000Z | tests/test_two_winding_model.py | tamasorosz/TrafoCalc | f7b6d5dbd8b144cfbc4f7f86467a5a3fa3c32f9d | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from importlib_resources import files
from src.two_winding_model import TransformerDesign, TwoWindingModel
"""10 MVA Transformer from Karsai, Nagytranszformátorok """
class TestConvTransformerModel(TestCase):
def test_transformer_from_json(self):
path = files("data").joinp... | 33.72 | 78 | 0.717082 | 205 | 1,686 | 5.692683 | 0.414634 | 0.145673 | 0.267352 | 0.318766 | 0.405313 | 0.279349 | 0.070266 | 0 | 0 | 0 | 0 | 0.041973 | 0.194543 | 1,686 | 49 | 79 | 34.408163 | 0.817379 | 0.034994 | 0 | 0 | 0 | 0 | 0.014076 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.222222 | 0.037037 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
64c359f5504d81d2d8eaa1625b19c14cf71d9da3 | 73 | py | Python | inspector_panel/__init__.py | santiagobasulto/debug-inspector-panel | 17e9a37d17ce738d80d8b0b1c05734b8ab4a67a9 | [
"WTFPL"
] | 19 | 2015-03-25T16:17:28.000Z | 2018-09-28T12:07:15.000Z | inspector_panel/__init__.py | kstateome/debug-inspector-panel | 5d5407fb43ee7730a328383f9f63c854ea6246a4 | [
"WTFPL"
] | 3 | 2016-02-14T00:49:39.000Z | 2022-02-20T11:34:49.000Z | inspector_panel/__init__.py | kstateome/debug-inspector-panel | 5d5407fb43ee7730a328383f9f63c854ea6246a4 | [
"WTFPL"
] | 2 | 2016-04-25T19:53:01.000Z | 2019-11-20T14:47:16.000Z | __all__ = ["panels"]
from inspector_panel.panels.inspector import debug
| 18.25 | 50 | 0.794521 | 9 | 73 | 5.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 73 | 3 | 51 | 24.333333 | 0.815385 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 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 |
64c3b580d027aa2b67ee23e744938e0754211719 | 838 | py | Python | cp-book/ch1/adhoc/reallifeeasy/12195_JingleComposing.py | andrey-yemelyanov/competitive-programming | f5c5fc9a5951a81dbae1250e17cd3d51a96b7a47 | [
"MIT"
] | null | null | null | cp-book/ch1/adhoc/reallifeeasy/12195_JingleComposing.py | andrey-yemelyanov/competitive-programming | f5c5fc9a5951a81dbae1250e17cd3d51a96b7a47 | [
"MIT"
] | null | null | null | cp-book/ch1/adhoc/reallifeeasy/12195_JingleComposing.py | andrey-yemelyanov/competitive-programming | f5c5fc9a5951a81dbae1250e17cd3d51a96b7a47 | [
"MIT"
] | null | null | null | # Problem name: 12195 Jingle Composing
# Problem url: https://uva.onlinejudge.org/external/121/12195.pdf
# Author: Andrey Yemelyanov
import sys
import math
import functools
def readline():
return sys.stdin.readline().strip()
def main():
while True:
line = readline()
if line == "*":
break
composition = [me... | 28.896552 | 132 | 0.71957 | 123 | 838 | 4.739837 | 0.520325 | 0.089194 | 0.058319 | 0.075472 | 0.140652 | 0.140652 | 0 | 0 | 0 | 0 | 0 | 0.061983 | 0.133652 | 838 | 28 | 133 | 29.928571 | 0.741047 | 0.150358 | 0 | 0 | 0 | 0 | 0.024011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.157895 | 0.526316 | 0.052632 | 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 |
b387fc3f053e59dc4f15d7eea322c0545260369e | 679 | py | Python | tests/urls.py | rishikesh67/django-shared-schema-tenants | ed3bcddf80a7838979fe1be2045dfa16b545beed | [
"MIT"
] | 20 | 2017-08-29T02:36:32.000Z | 2021-12-06T21:29:46.000Z | tests/urls.py | rishikesh67/django-shared-schema-tenants | ed3bcddf80a7838979fe1be2045dfa16b545beed | [
"MIT"
] | 35 | 2017-08-18T06:28:31.000Z | 2021-09-02T01:53:09.000Z | tests/urls.py | rishikesh67/django-shared-schema-tenants | ed3bcddf80a7838979fe1be2045dfa16b545beed | [
"MIT"
] | 9 | 2018-06-17T22:04:13.000Z | 2022-03-18T09:27:18.000Z | # -*- coding: utf-8
from __future__ import unicode_literals, absolute_import
from django.conf.urls import url, include
from shared_schema_tenants.urls import urlpatterns as shared_schema_tenants_urls
from shared_schema_tenants_custom_data.urls import (
urlpatterns as shared_schema_tenants_custom_data_urls)
from e... | 39.941176 | 86 | 0.805596 | 89 | 679 | 5.741573 | 0.280899 | 0.187867 | 0.297456 | 0.195695 | 0.530333 | 0.393346 | 0.164384 | 0 | 0 | 0 | 0 | 0.00165 | 0.107511 | 679 | 16 | 87 | 42.4375 | 0.841584 | 0.025037 | 0 | 0 | 0 | 0 | 0.112121 | 0.081818 | 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 |
b39baf04eef3a34f19442aaf00ca40165659664e | 128 | py | Python | py_stealth/__init__.py | Daymorn/StealthUO-Scripts | a66c3054315a750f344727cd91f82f6d9274284b | [
"MIT"
] | null | null | null | py_stealth/__init__.py | Daymorn/StealthUO-Scripts | a66c3054315a750f344727cd91f82f6d9274284b | [
"MIT"
] | null | null | null | py_stealth/__init__.py | Daymorn/StealthUO-Scripts | a66c3054315a750f344727cd91f82f6d9274284b | [
"MIT"
] | 2 | 2020-10-07T15:06:40.000Z | 2021-08-21T08:11:25.000Z |
from .methods import *
__author__ = 'ZeroDX'
__version__ = 1.2
__all__ = [x for x in dir(methods) if not x.startswith('_')]
| 16 | 60 | 0.679688 | 20 | 128 | 3.75 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.179688 | 128 | 7 | 61 | 18.285714 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
b3d453ff91f8ba90f7d598caf76aa37e46f10a76 | 39,078 | py | Python | nbdt/analysis.py | lisadunlap/explainable-nbdt | e045bfd0b55b21fd87c9a233b73a0ca77672efff | [
"MIT"
] | 1 | 2021-08-28T20:17:50.000Z | 2021-08-28T20:17:50.000Z | nbdt/analysis.py | lisadunlap/explainable-nbdt | e045bfd0b55b21fd87c9a233b73a0ca77672efff | [
"MIT"
] | null | null | null | nbdt/analysis.py | lisadunlap/explainable-nbdt | e045bfd0b55b21fd87c9a233b73a0ca77672efff | [
"MIT"
] | null | null | null | from nbdt.graph import get_root, get_roots, get_wnids, synset_to_name, wnid_to_synset, get_leaves, get_path_to_node
from nbdt.utils import (
DEFAULT_CIFAR10_TREE, DEFAULT_CIFAR10_WNIDS, DEFAULT_CIFAR100_TREE,
DEFAULT_CIFAR100_WNIDS, DEFAULT_TINYIMAGENET200_TREE,
DEFAULT_TINYIMAGENET200_WNIDS, DEFAULT_IMAGEN... | 44.356413 | 135 | 0.617995 | 5,043 | 39,078 | 4.568313 | 0.073369 | 0.019793 | 0.017363 | 0.024221 | 0.762089 | 0.74134 | 0.706007 | 0.685433 | 0.662254 | 0.635385 | 0 | 0.006981 | 0.270485 | 39,078 | 880 | 136 | 44.406818 | 0.801144 | 0.037975 | 0 | 0.650552 | 0 | 0 | 0.060698 | 0.017373 | 0 | 0 | 0 | 0 | 0.006906 | 1 | 0.075967 | false | 0.008287 | 0.027624 | 0.002762 | 0.175414 | 0.048343 | 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 |
b3e0f373ec27bc1f51b721c068eacc4031cce762 | 5,404 | py | Python | algorithms-divide-conquer/week1.py | ivanitskiy/stanford-algorithms | c35de7a524bbd072fc7bc0ba6a8a5a3d808dde4f | [
"MIT"
] | null | null | null | algorithms-divide-conquer/week1.py | ivanitskiy/stanford-algorithms | c35de7a524bbd072fc7bc0ba6a8a5a3d808dde4f | [
"MIT"
] | null | null | null | algorithms-divide-conquer/week1.py | ivanitskiy/stanford-algorithms | c35de7a524bbd072fc7bc0ba6a8a5a3d808dde4f | [
"MIT"
] | null | null | null | """
In this programming assignment you will implement one or more of the integer multiplication algorithms described in lecture.
To get the most out of this assignment, your program should restrict itself to multiplying only pairs of single-digit numbers. You can implement the grade-school algorithm if you want, but t... | 34.641026 | 523 | 0.648964 | 580 | 5,404 | 5.998276 | 0.298276 | 0.005174 | 0.015522 | 0.027594 | 0.092555 | 0.088531 | 0.068985 | 0.037942 | 0.037942 | 0.037942 | 0 | 0.367819 | 0.239822 | 5,404 | 155 | 524 | 34.864516 | 0.479065 | 0.082346 | 0 | 0.25 | 0 | 0 | 0.317525 | 0.296125 | 0 | 0 | 0 | 0.006452 | 0 | 0 | null | null | 0 | 0.011364 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b603f078ce07f70b9160cbabf409d1f86719fef4 | 306 | py | Python | app/views/home.py | Khanzadeh-AH/Youtube-Downloader | 5645188088f4f0f30506723b0e1edabc2dc5a1ab | [
"MIT"
] | 2 | 2021-06-03T14:29:20.000Z | 2021-06-09T19:55:07.000Z | app/views/home.py | Khanzadeh-AH/Youtube-Downloader | 5645188088f4f0f30506723b0e1edabc2dc5a1ab | [
"MIT"
] | null | null | null | app/views/home.py | Khanzadeh-AH/Youtube-Downloader | 5645188088f4f0f30506723b0e1edabc2dc5a1ab | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from fastapi.templating import Jinja2Templates
from starlette.requests import Request
templates = Jinja2Templates('app/templates')
router = APIRouter()
@router.get('/')
def index(request: Request):
return templates.TemplateResponse("index.html", {"request": request})
| 23.538462 | 73 | 0.777778 | 33 | 306 | 7.212121 | 0.545455 | 0.092437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.111111 | 306 | 12 | 74 | 25.5 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0.101307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.625 | 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 |
b604d31e7a5363678c82318b0abb849b6fb92fc8 | 63 | py | Python | iris_pipeline/dq_init/__init__.py | zonca/iris_pipeline | a4c20a362037a94f66427521bb5cd5da1c918dd7 | [
"BSD-3-Clause"
] | null | null | null | iris_pipeline/dq_init/__init__.py | zonca/iris_pipeline | a4c20a362037a94f66427521bb5cd5da1c918dd7 | [
"BSD-3-Clause"
] | 38 | 2019-03-07T01:25:03.000Z | 2022-03-01T13:02:29.000Z | iris_pipeline/dq_init/__init__.py | zonca/iris_pipeline | a4c20a362037a94f66427521bb5cd5da1c918dd7 | [
"BSD-3-Clause"
] | 1 | 2019-02-28T02:39:06.000Z | 2019-02-28T02:39:06.000Z | from .dq_init_step import DQInitStep
__all__ = ["DQInitStep"]
| 15.75 | 36 | 0.777778 | 8 | 63 | 5.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 3 | 37 | 21 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 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 |
b60cfb7ff7adc5be93614cc9f18738bad140fd88 | 636 | py | Python | config/games.py | l0mak/talking_pineapple | 9e85c25b733aecfb07933ea72d25597fec6cfa1e | [
"MIT"
] | 1 | 2018-10-26T11:21:07.000Z | 2018-10-26T11:21:07.000Z | config/games.py | l0mak/talking_pineapple | 9e85c25b733aecfb07933ea72d25597fec6cfa1e | [
"MIT"
] | 2 | 2022-01-13T02:34:21.000Z | 2022-03-12T00:24:31.000Z | config/games.py | l0mak/talking_pineapple | 9e85c25b733aecfb07933ea72d25597fec6cfa1e | [
"MIT"
] | null | null | null | import discord
__games__ = [
(discord.ActivityType.playing, 'с Друзьями'),
(discord.ActivityType.playing, 'c Фералами'),
(discord.ActivityType.playing, 'в Черепаха Дошла До Воды'),
(discord.ActivityType.playing, 'с Капитаном Пирожком'),
(discord.ActivityType.watching, 'на команду ;help'),
(disc... | 37.411765 | 63 | 0.709119 | 66 | 636 | 6.712121 | 0.5 | 0.428894 | 0.365688 | 0.261851 | 0.243792 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.146226 | 636 | 16 | 64 | 39.75 | 0.810313 | 0 | 0 | 0 | 0 | 0 | 0.272013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
373df50f8244c592fbe3d7fbf4f43a9002d0b3a4 | 15,079 | py | Python | analyze/tests/test_confusion_matrix.py | moshes7/odeval | 9b9f7f84740a2974af9bf42aecbc732970cdd444 | [
"MIT"
] | 1 | 2020-12-02T07:00:49.000Z | 2020-12-02T07:00:49.000Z | analyze/tests/test_confusion_matrix.py | moshes7/odeval | 9b9f7f84740a2974af9bf42aecbc732970cdd444 | [
"MIT"
] | 1 | 2021-09-02T06:01:50.000Z | 2021-12-23T07:03:02.000Z | analyze/tests/test_confusion_matrix.py | moshes7/odeval | 9b9f7f84740a2974af9bf42aecbc732970cdd444 | [
"MIT"
] | 3 | 2020-12-01T10:08:16.000Z | 2022-01-02T09:17:31.000Z | import os
import pytest
import numpy as np
from analyze.analyzer import Analyzer
from analyze.confusion_matrix import ConfusionMatrix
from analyze.bounding_box import Box
CLASS_NAMES = ['__background__', # always index 0
'airplane', 'antelope', 'bear', 'bicycle',
'bird', 'bus', 'car',... | 51.817869 | 161 | 0.463559 | 2,226 | 15,079 | 2.989218 | 0.097035 | 0.303577 | 0.451758 | 0.598136 | 0.684851 | 0.588218 | 0.558311 | 0.538323 | 0.517283 | 0.51037 | 0 | 0.121858 | 0.324624 | 15,079 | 291 | 162 | 51.817869 | 0.53152 | 0.08933 | 0 | 0.470899 | 0 | 0.005291 | 0.060947 | 0.016735 | 0 | 0 | 0 | 0.003436 | 0.121693 | 1 | 0.026455 | false | 0 | 0.031746 | 0 | 0.058201 | 0.005291 | 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 |
374e4351a2c3b9dedee16f96617943f25785a8fb | 114 | py | Python | model/__init__.py | JunHeum/BMBC | dfd4fae4ba1cf5b387d8707b86ec0a29c02ade48 | [
"MIT"
] | 79 | 2020-07-18T04:36:00.000Z | 2022-03-23T04:36:05.000Z | model/__init__.py | keunsoo-ko/BMBC | dfd4fae4ba1cf5b387d8707b86ec0a29c02ade48 | [
"MIT"
] | 8 | 2020-07-27T11:49:11.000Z | 2021-06-05T03:34:09.000Z | model/__init__.py | keunsoo-ko/BMBC | dfd4fae4ba1cf5b387d8707b86ec0a29c02ade48 | [
"MIT"
] | 7 | 2020-07-24T11:02:49.000Z | 2022-03-03T08:08:00.000Z | from .BMNet import BMNet
from .DFNet import DFNet, DynFilter
__all__ = (
'BMNet',
'DFNet'
)
| 16.285714 | 35 | 0.578947 | 12 | 114 | 5.166667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324561 | 114 | 6 | 36 | 19 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 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 |
37652f8a0e7a15f527a8a7babfe181c7effcd0d9 | 640 | py | Python | tools/leetcode.022.Generate Parentheses/leetcode.022.Generate Parentheses.submission0.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.022.Generate Parentheses/leetcode.022.Generate Parentheses.submission0.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.022.Generate Parentheses/leetcode.022.Generate Parentheses.submission0.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution(object):
def generateParenthesis(self, n):
"""
:type n: int
:rtype: List[str]
"""
if n == 0: return []
l = r = n
res = []
cur = []
self.helper(l,r,res,cur)
return [''.join(i) for i in res]
def helper(self,l,r,res... | 640 | 640 | 0.382813 | 80 | 640 | 3.0625 | 0.3375 | 0.040816 | 0.134694 | 0.097959 | 0.269388 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020231 | 0.459375 | 640 | 1 | 640 | 640 | 0.687861 | 0.046875 | 0 | 0.1 | 1 | 0 | 0.003454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
376ed1dcb25dab9b38e268376b31cd788f25a305 | 117 | py | Python | vbench/config.py | vene/vbench | 77989fa0d3c45e63f576968d206021ffee72a24c | [
"MIT"
] | 1 | 2017-08-12T03:11:42.000Z | 2017-08-12T03:11:42.000Z | vbench/config.py | vene/vbench | 77989fa0d3c45e63f576968d206021ffee72a24c | [
"MIT"
] | null | null | null | vbench/config.py | vene/vbench | 77989fa0d3c45e63f576968d206021ffee72a24c | [
"MIT"
] | null | null | null | import pytz
TIME_ZONE = pytz.timezone('US/Eastern')
def set_timezone(tz):
global TIME_ZONE
TIME_ZONE = tz
| 13 | 39 | 0.709402 | 18 | 117 | 4.388889 | 0.611111 | 0.303797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196581 | 117 | 8 | 40 | 14.625 | 0.840426 | 0 | 0 | 0 | 0 | 0 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
377c68816099767dc420c48edf1f7e89bc630d60 | 105 | py | Python | admin/cconfigurator/inventarization/apps.py | Ekateriner/Distributed-informer | c5464eea0efd708926a99b506fb831f395b1aede | [
"MIT"
] | null | null | null | admin/cconfigurator/inventarization/apps.py | Ekateriner/Distributed-informer | c5464eea0efd708926a99b506fb831f395b1aede | [
"MIT"
] | null | null | null | admin/cconfigurator/inventarization/apps.py | Ekateriner/Distributed-informer | c5464eea0efd708926a99b506fb831f395b1aede | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class InventarizationConfig(AppConfig):
name = 'inventarization'
| 17.5 | 39 | 0.790476 | 10 | 105 | 8.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 40 | 21 | 0.922222 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
378380c9d58af629b9fd58d6e528aa0e39f9d6b9 | 97 | py | Python | tutorial/bench.py | WillFox/cexec | 63f52594a4c7a327aeb757afbfe7799651f34827 | [
"MIT"
] | 1 | 2018-07-09T18:36:44.000Z | 2018-07-09T18:36:44.000Z | tutorial/bench.py | WillFox/cexec | 63f52594a4c7a327aeb757afbfe7799651f34827 | [
"MIT"
] | null | null | null | tutorial/bench.py | WillFox/cexec | 63f52594a4c7a327aeb757afbfe7799651f34827 | [
"MIT"
] | null | null | null | import time
t = time.time()
for x in xrange(0, 100000):
a = x ** 10000
print time.time() - t
| 16.166667 | 27 | 0.608247 | 18 | 97 | 3.277778 | 0.666667 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0.237113 | 97 | 5 | 28 | 19.4 | 0.635135 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3786624350d63a35c6ec571d32fb946f55248c7b | 105 | py | Python | pynecone/__main__.py | markolaban/pycli | e9c7b660a0ceb2ed61a6d3f87558a164bb0d2792 | [
"BSD-3-Clause"
] | null | null | null | pynecone/__main__.py | markolaban/pycli | e9c7b660a0ceb2ed61a6d3f87558a164bb0d2792 | [
"BSD-3-Clause"
] | null | null | null | pynecone/__main__.py | markolaban/pycli | e9c7b660a0ceb2ed61a6d3f87558a164bb0d2792 | [
"BSD-3-Clause"
] | null | null | null | from .pynecone import Pynecone
def main():
Pynecone().run()
if __name__ == "__main__":
main() | 11.666667 | 30 | 0.628571 | 12 | 105 | 4.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219048 | 105 | 9 | 31 | 11.666667 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
378d8de400ed2d6f906b99268bd65f9989bc4c71 | 199 | py | Python | setup-pypi.py | xaled/easilyb | cdb5f738205f700b37e03c50d04061a2d1e730cc | [
"MIT"
] | null | null | null | setup-pypi.py | xaled/easilyb | cdb5f738205f700b37e03c50d04061a2d1e730cc | [
"MIT"
] | null | null | null | setup-pypi.py | xaled/easilyb | cdb5f738205f700b37e03c50d04061a2d1e730cc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setup import VERSION
import os
os.system("python3 setup.py sdist && twine upload dist/easilyb-%s.tar.gz"
" && sudo python3 -m pip install -U easilyb" % VERSION)
| 33.166667 | 73 | 0.693467 | 31 | 199 | 4.451613 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.180905 | 199 | 5 | 74 | 39.8 | 0.828221 | 0.105528 | 0 | 0 | 0 | 0 | 0.581921 | 0.124294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
37a0ff82b2a174e6c2b22550e0a677491c633a34 | 1,446 | py | Python | src/misc/pathhelper.py | Robmaister/VideoGameFormats | 7676dde9ffaee036ba71526d8a09ee36474631e4 | [
"MIT"
] | 1 | 2019-07-21T17:46:28.000Z | 2019-07-21T17:46:28.000Z | src/misc/pathhelper.py | Robmaister/VideoGameFormats | 7676dde9ffaee036ba71526d8a09ee36474631e4 | [
"MIT"
] | null | null | null | src/misc/pathhelper.py | Robmaister/VideoGameFormats | 7676dde9ffaee036ba71526d8a09ee36474631e4 | [
"MIT"
] | null | null | null | #Copyright (c) 2012 Robert Rouhani <robert.rouhani@gmail.com>
#
#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 use, copy, modify... | 46.645161 | 78 | 0.778008 | 232 | 1,446 | 4.762931 | 0.487069 | 0.079638 | 0.036199 | 0.046154 | 0.066968 | 0.048869 | 0.048869 | 0 | 0 | 0 | 0 | 0.004068 | 0.150069 | 1,446 | 31 | 79 | 46.645161 | 0.895037 | 0.737206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
37a758b4c0fb92e5e51691072c463a93f424e594 | 267 | py | Python | 2399.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | 1 | 2022-02-06T19:36:33.000Z | 2022-02-06T19:36:33.000Z | 2399.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | null | null | null | 2399.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
n = int(input())
t = []
for _ in range(n):
t.append(int(input()))
for i in range(n):
if i > 0 and i < n - 1:
print(sum(t[i - 1:i + 2]))
elif i == 0:
print(sum(t[:2]))
else:
print(sum(t[i - 1:])) | 12.714286 | 34 | 0.423221 | 47 | 267 | 2.382979 | 0.446809 | 0.214286 | 0.241071 | 0.178571 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045714 | 0.344569 | 267 | 21 | 35 | 12.714286 | 0.594286 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 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 |
37af1c68433a142805b6839b784cea1ccf90943b | 91 | py | Python | psyrun/tests/tasks/task_noop.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 2 | 2017-07-03T20:03:08.000Z | 2018-04-19T20:36:17.000Z | psyrun/tests/tasks/task_noop.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 67 | 2015-02-19T02:11:14.000Z | 2018-04-20T15:51:57.000Z | psyrun/tests/tasks/task_noop.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 1 | 2015-11-13T16:54:16.000Z | 2015-11-13T16:54:16.000Z | from psyrun import Param
pspace = Param()
python = 'true'
def execute():
return {}
| 9.1 | 24 | 0.637363 | 11 | 91 | 5.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241758 | 91 | 9 | 25 | 10.111111 | 0.84058 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
37b26747811fba517e04ff879b64cec52d626c69 | 83 | py | Python | modules/2.79/bpy/types/ConsoleLine.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/ConsoleLine.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/ConsoleLine.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | class ConsoleLine:
body = None
current_character = None
type = None
| 10.375 | 28 | 0.638554 | 9 | 83 | 5.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313253 | 83 | 7 | 29 | 11.857143 | 0.912281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
37bf22d0213f6b0089db75b1ed83b96b950848f8 | 1,389 | py | Python | DM566 - Machine Learning/freqPattern/main.py | RuneSemey/course-help | 8eab36d89d02dd12df2c23786c982f4045262a45 | [
"MIT"
] | null | null | null | DM566 - Machine Learning/freqPattern/main.py | RuneSemey/course-help | 8eab36d89d02dd12df2c23786c982f4045262a45 | [
"MIT"
] | null | null | null | DM566 - Machine Learning/freqPattern/main.py | RuneSemey/course-help | 8eab36d89d02dd12df2c23786c982f4045262a45 | [
"MIT"
] | 1 | 2020-08-02T08:15:44.000Z | 2020-08-02T08:15:44.000Z | import numpy as np
import math as math
import euclideanDist as euc
import histogram as hist
colorsQ = ["yellow","yellow","yellow","yellow","yellow","yellow","yellow","yellow","red","blue", "blue","blue", "blue","blue", "blue","blue"]
colorsA = ["red", "blue", "blue","blue", "blue","yellow","yellow","yellow","yellow"]
... | 43.40625 | 141 | 0.681066 | 203 | 1,389 | 4.660099 | 0.344828 | 0.30444 | 0.393235 | 0.439746 | 0.372093 | 0.319239 | 0.319239 | 0.226216 | 0.158562 | 0.158562 | 0 | 0.003247 | 0.113031 | 1,389 | 31 | 142 | 44.806452 | 0.76461 | 0.150468 | 0 | 0 | 0 | 0 | 0.314796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0.058824 | 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 |
806414c952b5d10ea725585fdee2c39ffb7dd900 | 1,290 | py | Python | casket/db.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null | casket/db.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null | casket/db.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null |
from tinydb import TinyDB
from itertools import chain
class DB:
def __init__(self, path):
try:
from sftp_storage import SFTPStorage, WrongPathException
try:
self.db = TinyDB(path, policy='autoadd', storage=SFTPStorage)
except WrongPathException:
... | 30.714286 | 77 | 0.597674 | 154 | 1,290 | 4.87013 | 0.363636 | 0.048 | 0.048 | 0.064 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303101 | 1,290 | 41 | 78 | 31.463415 | 0.83426 | 0 | 0 | 0.125 | 0 | 0 | 0.106284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.1875 | 0.15625 | 0.625 | 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 |
807ce185a60d180a599bf4534df686d42188f33b | 398 | py | Python | modes/get_modes_jsonpath.py | joamatab/modesolverpy | c2a8e1b84bd101b2dc94a2951bb24f50520c47e9 | [
"MIT"
] | 3 | 2020-07-14T13:01:45.000Z | 2022-02-04T04:32:13.000Z | modes/get_modes_jsonpath.py | joamatab/modesolverpy | c2a8e1b84bd101b2dc94a2951bb24f50520c47e9 | [
"MIT"
] | null | null | null | modes/get_modes_jsonpath.py | joamatab/modesolverpy | c2a8e1b84bd101b2dc94a2951bb24f50520c47e9 | [
"MIT"
] | 1 | 2022-02-03T15:46:20.000Z | 2022-02-03T15:46:20.000Z | from pathlib import PosixPath
from typing import Union
from modes._mode_solver_full_vectorial import ModeSolverFullyVectorial
from modes._mode_solver_semi_vectorial import ModeSolverSemiVectorial
from modes.config import CONFIG
def get_modes_jsonpath(
mode_solver: Union[ModeSolverFullyVectorial, ModeSolverSemiVe... | 30.615385 | 73 | 0.841709 | 47 | 398 | 6.87234 | 0.489362 | 0.123839 | 0.080495 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10804 | 398 | 12 | 74 | 33.166667 | 0.909859 | 0 | 0 | 0 | 0 | 0 | 0.057789 | 0.057789 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
80e67dec376fc3d203e4c690e2167b7cd55afb46 | 540 | py | Python | examples/FastAPI/data/database.py | Aliemeka/supabase-py | 61bc4862139749eade05592e2145253f3853ed25 | [
"MIT"
] | 181 | 2021-09-14T08:35:00.000Z | 2022-03-31T18:21:27.000Z | examples/FastAPI/data/database.py | supabase-community/supabase-py | d8bffa4d6718d004b5770013a273d47899bfe279 | [
"MIT"
] | 116 | 2021-09-15T09:51:51.000Z | 2022-03-31T15:14:54.000Z | examples/FastAPI/data/database.py | leynier/supabase-py | 38ed4d395ea78aa29fa9071cbc94e680ba169c95 | [
"MIT"
] | 35 | 2021-09-15T07:32:24.000Z | 2022-03-27T20:59:24.000Z | # variables for database and url configuration
from config import Config
from supabase import Client, create_client
class SupabaseDB:
"""
class instance for database connection to supabase
:str: url: configuration for database url for data inside supafast project
:str: key: configuration for databas... | 28.421053 | 79 | 0.742593 | 68 | 540 | 5.867647 | 0.397059 | 0.110276 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203704 | 540 | 18 | 80 | 30 | 0.927907 | 0.585185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 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 |
0394ad65da0a1423aa97494730009667e99a00ac | 962 | py | Python | templates/go/payloads/go_memorymodule.py | ohoph/Ebowla | 9f1a45a70abbd0a02bfe9614f298b98e98697b1b | [
"BSD-3-Clause"
] | 738 | 2016-04-08T15:26:43.000Z | 2022-03-28T20:49:08.000Z | templates/go/payloads/go_memorymodule.py | iNoSec/Ebowla_modified | 0079ec86c9c9c167166beda1922bd26114f6addb | [
"BSD-3-Clause"
] | 28 | 2016-04-09T22:37:41.000Z | 2019-01-28T10:44:46.000Z | templates/go/payloads/go_memorymodule.py | iNoSec/Ebowla_modified | 0079ec86c9c9c167166beda1922bd26114f6addb | [
"BSD-3-Clause"
] | 179 | 2016-04-08T16:00:11.000Z | 2022-02-17T11:39:02.000Z | imports=""
loader="""
//handle := C.MemoryLoadLibrary(unsafe.Pointer(&full_payload[0]),(C.size_t)(len(full_payload)))
handle := C.MemoryLoadLibraryEx(unsafe.Pointer(&full_payload[0]),
(C.size_t)(len(full_payload)),
(*[0]byte)(C.MemoryDefaultLoad... | 45.809524 | 137 | 0.543659 | 90 | 962 | 5.733333 | 0.522222 | 0.085271 | 0.069767 | 0.093023 | 0.224806 | 0.174419 | 0.174419 | 0.174419 | 0.174419 | 0.174419 | 0 | 0.009259 | 0.326403 | 962 | 21 | 138 | 45.809524 | 0.787037 | 0 | 0 | 0 | 0 | 0.105263 | 0.973001 | 0.442368 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.052632 | 0 | 0.052632 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0399632e437d0c2cdd54cf8f4f127ce928be6b87 | 211 | py | Python | signalfx_gcf/version.py | theletterf/serverless-python | 0d10a9dfe41d4282772dea4ce4e5c4e355e3e9ea | [
"Apache-2.0"
] | null | null | null | signalfx_gcf/version.py | theletterf/serverless-python | 0d10a9dfe41d4282772dea4ce4e5c4e355e3e9ea | [
"Apache-2.0"
] | null | null | null | signalfx_gcf/version.py | theletterf/serverless-python | 0d10a9dfe41d4282772dea4ce4e5c4e355e3e9ea | [
"Apache-2.0"
] | 3 | 2019-08-31T13:15:35.000Z | 2021-12-20T09:27:11.000Z | # Copyright (C) 2019 SignalFx, Inc. All rights reserved.
name = 'signalfx_serverless_gcf'
version = '0.0.1'
user_agent = 'signalfx_serverless/' + version
packages = ['signalfx_gcf', 'signalfx_gcf.serverless']
| 26.375 | 56 | 0.744076 | 27 | 211 | 5.592593 | 0.62963 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037838 | 0.123223 | 211 | 7 | 57 | 30.142857 | 0.778378 | 0.255924 | 0 | 0 | 0 | 0 | 0.535484 | 0.296774 | 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 |
03b2b6700cf406459be5b88d3d65ee4defe74142 | 1,560 | py | Python | chat/views.py | SiwyKot41/django-e2ee-chat | 550a538b422eb49774a435d94b6848c5185fc403 | [
"WTFPL"
] | null | null | null | chat/views.py | SiwyKot41/django-e2ee-chat | 550a538b422eb49774a435d94b6848c5185fc403 | [
"WTFPL"
] | null | null | null | chat/views.py | SiwyKot41/django-e2ee-chat | 550a538b422eb49774a435d94b6848c5185fc403 | [
"WTFPL"
] | null | null | null | import profile
from django.shortcuts import render
from rest_framework import viewsets, authentication
from rest_framework.response import Response
from chat.models import Profile, Invite
from chat.serializers import ProfileSerializer, InviteSerializer, RegisterSerializer, LoginSerializer
from django_chat.utils.base5... | 29.433962 | 101 | 0.720513 | 170 | 1,560 | 6.517647 | 0.388235 | 0.054152 | 0.046931 | 0.061372 | 0.142599 | 0.142599 | 0.116426 | 0.084838 | 0.084838 | 0.084838 | 0 | 0.00854 | 0.174359 | 1,560 | 52 | 102 | 30 | 0.851708 | 0.087821 | 0 | 0.2 | 0 | 0 | 0.030346 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.166667 | false | 0 | 0.233333 | 0.133333 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
03cc2699a9db1e8d43a37d890635087f04fbbbaf | 6,596 | py | Python | tests/test_multi_line/test_mlb_move.py | robertblackwell/simple_curses | 47f2bb81bcbc2087101839372f71a9117f5dc643 | [
"MIT"
] | null | null | null | tests/test_multi_line/test_mlb_move.py | robertblackwell/simple_curses | 47f2bb81bcbc2087101839372f71a9117f5dc643 | [
"MIT"
] | null | null | null | tests/test_multi_line/test_mlb_move.py | robertblackwell/simple_curses | 47f2bb81bcbc2087101839372f71a9117f5dc643 | [
"MIT"
] | null | null | null | import sys
import unittest
import curses
import string
import multi_line_buffer
from multi_line_view import MultiLineView2
lines = [
"1 11lkjhasdfhlakjsfhlajhflakdhjfldask",
"2 21lkjhasdfhlakjsfhlajhflakdhjfldask",
"3 31lkjhasdfhlakjsfhlajhflakdhjfldask",
"4 41lkjhasdfhlakjsfhlajhflakdhjfldask",
"... | 36.849162 | 96 | 0.662978 | 810 | 6,596 | 5.15679 | 0.150617 | 0.201101 | 0.211635 | 0.261432 | 0.598276 | 0.574336 | 0.557338 | 0.547283 | 0.547283 | 0.494135 | 0 | 0.090441 | 0.23393 | 6,596 | 179 | 97 | 36.849162 | 0.736196 | 0.005609 | 0 | 0.508982 | 0 | 0 | 0.16255 | 0.145929 | 0 | 0 | 0 | 0 | 0.39521 | 1 | 0.02994 | false | 0 | 0.035928 | 0 | 0.095808 | 0.005988 | 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 |
03ccd6eb4800faace07e8a7dc15f10f39325feb7 | 23 | py | Python | boris/reporting/templatetags/__init__.py | fragaria/BorIS | 9585c83f29220d8f63910dabd98641ab41ace6cf | [
"MIT"
] | 1 | 2021-08-10T14:01:26.000Z | 2021-08-10T14:01:26.000Z | boris/reporting/templatetags/__init__.py | fragaria/BorIS | 9585c83f29220d8f63910dabd98641ab41ace6cf | [
"MIT"
] | 5 | 2018-04-04T14:31:34.000Z | 2020-06-08T07:50:23.000Z | boris/reporting/templatetags/__init__.py | fragaria/BorIS | 9585c83f29220d8f63910dabd98641ab41ace6cf | [
"MIT"
] | 4 | 2017-02-06T15:38:34.000Z | 2018-03-21T09:40:12.000Z | __author__ = 'xaralis'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
03d8909fbb37cb6a063e335c72092ae6592ae7c7 | 134 | py | Python | src/secrets.example.py | arcticlimer/botinho | fa8382f2824f546e7a0e4f3a15f4ad3750c650bd | [
"MIT"
] | null | null | null | src/secrets.example.py | arcticlimer/botinho | fa8382f2824f546e7a0e4f3a15f4ad3750c650bd | [
"MIT"
] | null | null | null | src/secrets.example.py | arcticlimer/botinho | fa8382f2824f546e7a0e4f3a15f4ad3750c650bd | [
"MIT"
] | null | null | null | # A postgres database url
# postgresql://[user[:password]@][netloc][:port][/dbname]
DATABASE_URL=""
# Your discord bot token
TOKEN=""
| 22.333333 | 57 | 0.701493 | 17 | 134 | 5.470588 | 0.823529 | 0.236559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 134 | 5 | 58 | 26.8 | 0.775 | 0.761194 | 0 | 0 | 0 | 0 | 0 | 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 |
03d95e9409c3543e1084e09337520200e182dbe2 | 71 | py | Python | eli-demo.py | eli-read-code/ReadCode-faker | c3ede6201b3b79951ebe09324f9a2a3affddef95 | [
"MIT"
] | null | null | null | eli-demo.py | eli-read-code/ReadCode-faker | c3ede6201b3b79951ebe09324f9a2a3affddef95 | [
"MIT"
] | null | null | null | eli-demo.py | eli-read-code/ReadCode-faker | c3ede6201b3b79951ebe09324f9a2a3affddef95 | [
"MIT"
] | null | null | null | from faker import Faker
fake = Faker(locale='zh-CN')
print(fake.city()) | 23.666667 | 28 | 0.732394 | 12 | 71 | 4.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 71 | 3 | 29 | 23.666667 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
03dd8fdd50fedd0558bce61f397fa22bc01ab0d7 | 24 | py | Python | QuantPy/dpp/src/__init__.py | guozc12/QuantPy | bf8df57616c11475081839050715ce8152092557 | [
"MIT"
] | 1 | 2020-09-24T04:14:00.000Z | 2020-09-24T04:14:00.000Z | QuantPy/dpp/src/__init__.py | guozc12/QuantPy | bf8df57616c11475081839050715ce8152092557 | [
"MIT"
] | null | null | null | QuantPy/dpp/src/__init__.py | guozc12/QuantPy | bf8df57616c11475081839050715ce8152092557 | [
"MIT"
] | 1 | 2020-09-22T15:35:54.000Z | 2020-09-22T15:35:54.000Z | __all__ = ['kline_futu'] | 24 | 24 | 0.708333 | 3 | 24 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 24 | 1 | 24 | 24 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0.4 | 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 |
03ef7f1b49ca13a81b37eea5f88eaff844c687e5 | 626 | py | Python | python_modules/libraries/dagster-dbt/dagster_dbt/types.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 1 | 2021-01-31T19:16:29.000Z | 2021-01-31T19:16:29.000Z | python_modules/libraries/dagster-dbt/dagster_dbt/types.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-dbt/dagster_dbt/types.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 1 | 2019-09-11T03:02:27.000Z | 2019-09-11T03:02:27.000Z | from typing import Any, Dict, Optional
from dagster import check
class DbtOutput:
"""
Base class for both DbtCliOutput and DbtRPCOutput. Contains a single field, `result`, which
represents the dbt-formatted result of the command that was run (if any).
Used internally, should not be instantiated dire... | 26.083333 | 95 | 0.678914 | 84 | 626 | 4.952381 | 0.630952 | 0.072115 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231629 | 626 | 23 | 96 | 27.217391 | 0.864865 | 0.370607 | 0 | 0.181818 | 0 | 0 | 0.016216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.727273 | 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 |
03f94385101a74cef5c5db9d047742732cd5684e | 600 | py | Python | endpoints/appr/test/test_digest_prefix.py | ibazulic/quay | 288f31bbfbced3850836ba155b602ab54d872c7d | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | endpoints/appr/test/test_digest_prefix.py | ibazulic/quay | 288f31bbfbced3850836ba155b602ab54d872c7d | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | endpoints/appr/test/test_digest_prefix.py | ibazulic/quay | 288f31bbfbced3850836ba155b602ab54d872c7d | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | import pytest
from endpoints.appr.models_cnr import _strip_sha256_header
@pytest.mark.parametrize(
"digest,expected",
[
(
"sha256:251b6897608fb18b8a91ac9abac686e2e95245d5a041f2d1e78fe7a815e6480a",
"251b6897608fb18b8a91ac9abac686e2e95245d5a041f2d1e78fe7a815e6480a",
),
... | 30 | 86 | 0.725 | 33 | 600 | 12.909091 | 0.575758 | 0.098592 | 0.079812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.369748 | 0.206667 | 600 | 19 | 87 | 31.578947 | 0.52521 | 0 | 0 | 0.294118 | 0 | 0 | 0.463333 | 0.438333 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
03ff40168ab14291cd3fa8711b999db73ac93a07 | 387 | py | Python | shap/links.py | YotamElor/shap | fc7a46d6d0a18838c8f8445f68eca69e87dfc8ad | [
"MIT"
] | 2 | 2020-07-28T17:43:15.000Z | 2021-03-24T21:11:29.000Z | shap/links.py | Jimmy-INL/shap | 61fe371025cbd40e3015fcea64ad63c6a409845f | [
"MIT"
] | null | null | null | shap/links.py | Jimmy-INL/shap | 61fe371025cbd40e3015fcea64ad63c6a409845f | [
"MIT"
] | 1 | 2021-03-24T21:11:30.000Z | 2021-03-24T21:11:30.000Z | import numpy as np
def identity(x):
""" A no-op link function.
"""
return x
def _identity_inverse(x):
return x
identity.inverse = _identity_inverse
def logit(x):
""" A logit link function useful for going from probability units to log-odds units.
"""
return np.log(x/(1-x))
def _logit_inv... | 20.368421 | 88 | 0.666667 | 61 | 387 | 4.098361 | 0.42623 | 0.18 | 0.112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009836 | 0.211886 | 387 | 19 | 89 | 20.368421 | 0.809836 | 0.27907 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.181818 | 0.818182 | 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 |
ff0267bfd6e4979fcc42f66a51ec79e90a4bc2d1 | 508 | py | Python | notebooks/utils.py | d116626/SimulaCorona | 9fd72124c4f5dad7836b0dd5c9b6ee46fcb5d164 | [
"MIT"
] | 11 | 2020-03-30T11:45:24.000Z | 2020-04-08T01:44:47.000Z | notebooks/utils.py | d116626/SimulaCorona | 9fd72124c4f5dad7836b0dd5c9b6ee46fcb5d164 | [
"MIT"
] | 31 | 2019-03-28T12:24:59.000Z | 2020-07-02T19:57:52.000Z | notebooks/utils.py | d116626/SimulaCorona | 9fd72124c4f5dad7836b0dd5c9b6ee46fcb5d164 | [
"MIT"
] | 4 | 2018-11-12T21:42:26.000Z | 2022-01-23T21:11:34.000Z | import colorlover as cl
from IPython.display import HTML
from paths import THEMES_PATH
import yaml
import cufflinks as cf
def display_custom_scales():
"""
Displays custom colorscales (HTML)
"""
custom_colorscales = yaml.load(open(THEMES_PATH / 'custom_colorscales.yaml', 'r'))
rgb_custom = dic... | 26.736842 | 88 | 0.706693 | 70 | 508 | 4.928571 | 0.457143 | 0.246377 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194882 | 508 | 19 | 89 | 26.736842 | 0.843521 | 0.066929 | 0 | 0 | 0 | 0 | 0.052288 | 0.050109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ff1b2351720af407950da8425b1f60f9b5e97201 | 1,342 | py | Python | utils/MathUtil.py | chasebk/code_OCRO_MLNN | f8010ad0303f69d806f1605892bdec58005612f9 | [
"Apache-2.0"
] | 14 | 2020-04-09T10:26:39.000Z | 2022-03-29T02:16:23.000Z | utils/MathUtil.py | chasebk/code_ocro_mlnn | f8010ad0303f69d806f1605892bdec58005612f9 | [
"Apache-2.0"
] | null | null | null | utils/MathUtil.py | chasebk/code_ocro_mlnn | f8010ad0303f69d806f1605892bdec58005612f9 | [
"Apache-2.0"
] | 8 | 2020-06-18T01:45:55.000Z | 2021-12-30T19:07:57.000Z | #!/usr/bin/env python
# ------------------------------------------------------------------------------------------------------%
# Created by "Thieu Nguyen" at 00:51, 29/03/2020 %
# ... | 39.470588 | 106 | 0.396423 | 134 | 1,342 | 3.925373 | 0.380597 | 0.106464 | 0.039924 | 0.074144 | 0.087452 | 0.087452 | 0.087452 | 0.087452 | 0 | 0 | 0 | 0.045296 | 0.35842 | 1,342 | 33 | 107 | 40.666667 | 0.565621 | 0.558122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.090909 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
208b7b7d93d210788d0f47e834c2334d91095d15 | 177 | py | Python | substring.py | pawankumarsharm/Pythoncoding | f0e5f6c1d22b101e109088529640326dd5405a6a | [
"bzip2-1.0.6"
] | null | null | null | substring.py | pawankumarsharm/Pythoncoding | f0e5f6c1d22b101e109088529640326dd5405a6a | [
"bzip2-1.0.6"
] | null | null | null | substring.py | pawankumarsharm/Pythoncoding | f0e5f6c1d22b101e109088529640326dd5405a6a | [
"bzip2-1.0.6"
] | null | null | null | s=input('Enter Main String:')
subs=input('Enter Substring to search:')
if subs in s:
print(subs, 'Is found in Main String')
else:
print(subs, 'is not found in Main String')
| 22.125 | 43 | 0.700565 | 31 | 177 | 4 | 0.516129 | 0.241935 | 0.177419 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163842 | 177 | 7 | 44 | 25.285714 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0.534091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2093c7b804658b36ccab2f0a910e225fe77ab461 | 100 | py | Python | main.py | ferpart/Numerical_Methods_Final_Project | 2fb3c918ee9601129ba5d1b276a531c9705b6bea | [
"MIT"
] | null | null | null | main.py | ferpart/Numerical_Methods_Final_Project | 2fb3c918ee9601129ba5d1b276a531c9705b6bea | [
"MIT"
] | null | null | null | main.py | ferpart/Numerical_Methods_Final_Project | 2fb3c918ee9601129ba5d1b276a531c9705b6bea | [
"MIT"
] | null | null | null | #!python3
from Components import App
def main():
App()
if __name__ == "__main__":
main()
| 10 | 26 | 0.62 | 12 | 100 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.24 | 100 | 9 | 27 | 11.111111 | 0.697368 | 0.08 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
209a4d6a3aa46dd669980c6d6d2f077b34b3a409 | 120 | py | Python | boa3_test/test_sc/if_test/IfExpVariableCondition.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/if_test/IfExpVariableCondition.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/if_test/IfExpVariableCondition.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin import public
@public
def Main(condition: bool) -> int:
a = 2 if condition else 3
return a
| 13.333333 | 33 | 0.675 | 19 | 120 | 4.263158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.25 | 120 | 8 | 34 | 15 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
20a1a4ff31131b2d31266c703a94bf2d933e05eb | 203 | py | Python | FBSSchemaGenerator/build/python/FByteDataType.py | sintefneodroid/schema | 05749c7b84caf188d555947fb6572bc48a5a9067 | [
"Apache-2.0"
] | 2 | 2018-04-28T13:45:45.000Z | 2019-01-21T14:39:53.000Z | FBSSchemaGenerator/build/python/FByteDataType.py | sintefneodroid/schema | 05749c7b84caf188d555947fb6572bc48a5a9067 | [
"Apache-2.0"
] | null | null | null | FBSSchemaGenerator/build/python/FByteDataType.py | sintefneodroid/schema | 05749c7b84caf188d555947fb6572bc48a5a9067 | [
"Apache-2.0"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FBS
class FByteDataType(object):
UINT8 = 0
FLOAT16 = 1
FLOAT32 = 2
PNG = 3
JPEG = 4
Other = 5
| 15.615385 | 68 | 0.640394 | 26 | 203 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.295567 | 203 | 12 | 69 | 16.916667 | 0.832168 | 0.399015 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
20affaf1a8a5352c01b5ba240a08a6bc6bcc2f40 | 350 | py | Python | tests/test_services_loading.py | cheekd/django-push-notifications | e6ff715257587ad0fcbaaad1d909efbdaf9947dc | [
"MIT"
] | 14 | 2015-04-28T21:35:47.000Z | 2018-08-23T04:04:06.000Z | tests/test_services_loading.py | cheekd/django-push-notifications | e6ff715257587ad0fcbaaad1d909efbdaf9947dc | [
"MIT"
] | 28 | 2015-04-28T17:26:34.000Z | 2016-04-13T19:54:51.000Z | tests/test_services_loading.py | cheekd/django-push-notifications | e6ff715257587ad0fcbaaad1d909efbdaf9947dc | [
"MIT"
] | 9 | 2015-06-24T05:11:26.000Z | 2021-09-01T15:15:56.000Z | """
Tests for the Service loading
"""
from django.test import TestCase
from push_notifications.services import get_service
from push_notifications.services.zeropush import ZeroPushService
class TestServiceLoading(TestCase):
service = get_service()
# Check if service is instance of ZeroPush
assert isinsta... | 25 | 64 | 0.8 | 41 | 350 | 6.731707 | 0.609756 | 0.057971 | 0.152174 | 0.210145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 350 | 13 | 65 | 26.923077 | 0.92 | 0.202857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
20bfc9c82f43301fa58613eab92b2330f7c9d98f | 13,612 | py | Python | smt_solver/formula_parser/tests/test_formula_parser.py | AvivYaish/SMTsolver | 773041311ed8195ab48f669310df26ead3061912 | [
"MIT"
] | 1 | 2021-12-07T14:35:31.000Z | 2021-12-07T14:35:31.000Z | smt_solver/formula_parser/tests/test_formula_parser.py | AvivYaish/SMTsolver | 773041311ed8195ab48f669310df26ead3061912 | [
"MIT"
] | null | null | null | smt_solver/formula_parser/tests/test_formula_parser.py | AvivYaish/SMTsolver | 773041311ed8195ab48f669310df26ead3061912 | [
"MIT"
] | 1 | 2021-12-12T04:48:57.000Z | 2021-12-12T04:48:57.000Z | from smt_solver.formula_parser.formula_parser import FormulaParser
from smt_solver.sat_solver.sat_solver import SATSolver
import numpy as np
class TestFormulaParser:
@staticmethod
def test_prepare_formula():
assert FormulaParser._prepare_formula(' ') == ''
assert FormulaParser._prepar... | 52.75969 | 120 | 0.47561 | 1,394 | 13,612 | 4.479914 | 0.07604 | 0.048038 | 0.026421 | 0.066934 | 0.801601 | 0.748118 | 0.693034 | 0.627702 | 0.623539 | 0.611369 | 0 | 0.043062 | 0.317587 | 13,612 | 257 | 121 | 52.964981 | 0.629239 | 0.001984 | 0 | 0.411504 | 0 | 0.039823 | 0.25797 | 0.001546 | 0.013274 | 0 | 0 | 0 | 0.327434 | 1 | 0.039823 | false | 0 | 0.061947 | 0 | 0.106195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
454e630be4ea065d122b5834cb0f21c74f369bed | 309 | py | Python | BasicORM/errors.py | giovani-dev/ORM-Firesore | 3470aaa4f9db04192dde17e12b6c696a96ebc8d3 | [
"MIT"
] | null | null | null | BasicORM/errors.py | giovani-dev/ORM-Firesore | 3470aaa4f9db04192dde17e12b6c696a96ebc8d3 | [
"MIT"
] | null | null | null | BasicORM/errors.py | giovani-dev/ORM-Firesore | 3470aaa4f9db04192dde17e12b6c696a96ebc8d3 | [
"MIT"
] | null | null | null |
class ORMBaseException(Exception):
def __init__(self):
self.message = ""
super().__init__()
def __str__(self):
return self.message
class FieldDoesNotExist(ORMBaseException):
def __init__(self, field: str):
self.message = f"This field '{field}' is not avaible"
| 20.6 | 61 | 0.644013 | 33 | 309 | 5.545455 | 0.515152 | 0.180328 | 0.120219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242718 | 309 | 14 | 62 | 22.071429 | 0.782051 | 0 | 0 | 0 | 0 | 0 | 0.114007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
45522aec8f95489cbb97b25f61c4e1e5813f4198 | 1,696 | py | Python | rcs_back/takeouts_app/migrations/0022_auto_20210905_1657.py | e-kondr01/rcs_back | f0f224d01f7051cce9d5feef692216d48cba6f31 | [
"MIT"
] | null | null | null | rcs_back/takeouts_app/migrations/0022_auto_20210905_1657.py | e-kondr01/rcs_back | f0f224d01f7051cce9d5feef692216d48cba6f31 | [
"MIT"
] | null | null | null | rcs_back/takeouts_app/migrations/0022_auto_20210905_1657.py | e-kondr01/rcs_back | f0f224d01f7051cce9d5feef692216d48cba6f31 | [
"MIT"
] | 1 | 2021-09-25T19:18:55.000Z | 2021-09-25T19:18:55.000Z | # Generated by Django 3.2.5 on 2021-09-05 13:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('takeouts_app', '0021_auto_20210905_1616'),
]
operations = [
migrations.RemoveConstraint(
model_name='takeoutcondition',
... | 33.92 | 137 | 0.610849 | 155 | 1,696 | 6.535484 | 0.451613 | 0.071076 | 0.197433 | 0.229023 | 0.617966 | 0.617966 | 0.284304 | 0.284304 | 0.284304 | 0.167818 | 0 | 0.025599 | 0.285967 | 1,696 | 49 | 138 | 34.612245 | 0.8109 | 0.026533 | 0 | 0.534884 | 1 | 0 | 0.257126 | 0.031534 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.093023 | 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 |
455270b732f43c425c2f4c6e3175a4071885fd67 | 1,111 | py | Python | envelopes.py | IntermodulationProducts/vips | 8ed2ad3db74e1e6ab312ab5e5605a05377779bb1 | [
"MIT"
] | null | null | null | envelopes.py | IntermodulationProducts/vips | 8ed2ad3db74e1e6ab312ab5e5605a05377779bb1 | [
"MIT"
] | null | null | null | envelopes.py | IntermodulationProducts/vips | 8ed2ad3db74e1e6ab312ab5e5605a05377779bb1 | [
"MIT"
] | null | null | null | # Authored by Johan Blomberg and Gustav Grännsjö, 2020
"""
A collection of functions for generating specific envelope shapes.
"""
import numpy as np
from scipy.stats import norm
def sin2(nr_samples):
x = np.linspace(0.0, 1.0, nr_samples)
return np.sin(np.pi * x)**2
def sin_p(p, nr_samples):
x = np.lin... | 22.673469 | 67 | 0.611161 | 191 | 1,111 | 3.465969 | 0.308901 | 0.217523 | 0.090634 | 0.090634 | 0.306647 | 0.276435 | 0.276435 | 0.276435 | 0.276435 | 0.276435 | 0 | 0.05694 | 0.241224 | 1,111 | 48 | 68 | 23.145833 | 0.728351 | 0.117012 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.517241 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4554c4e6e32340065a625ae1de6e41d001ede315 | 196 | py | Python | modular/write_output.py | tato69/myfirstrepo | d0ead5d9f4eb458b1fbd64d90e0db5cae212e85d | [
"Apache-2.0"
] | null | null | null | modular/write_output.py | tato69/myfirstrepo | d0ead5d9f4eb458b1fbd64d90e0db5cae212e85d | [
"Apache-2.0"
] | null | null | null | modular/write_output.py | tato69/myfirstrepo | d0ead5d9f4eb458b1fbd64d90e0db5cae212e85d | [
"Apache-2.0"
] | null | null | null | import os
import sys
def write_file(output,sex):
with open(sex+'_output.txt', 'a') as the_file:
the_file.write(output+ "\n")
print output + " also appended to " + the_file.name
| 24.5 | 52 | 0.653061 | 31 | 196 | 3.967742 | 0.645161 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 196 | 7 | 53 | 28 | 0.798701 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4555d9e688531775913ce394093a863b0de64f91 | 170 | py | Python | src_old/users/serializers.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | null | null | null | src_old/users/serializers.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | 8 | 2019-12-04T23:26:11.000Z | 2022-02-10T09:42:18.000Z | src/users/serializers.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | 2 | 2019-06-26T05:31:16.000Z | 2019-07-01T12:22:50.000Z | from rest_framework.serializers import ModelSerializer
from .models import User
class UserSerializer(ModelSerializer):
class Meta:
model = User
fields = "__all__" | 21.25 | 55 | 0.794118 | 19 | 170 | 6.842105 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 170 | 8 | 56 | 21.25 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0.040936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
457d7d038ef6bf93eb03707922efbc9274293b8c | 1,217 | py | Python | src/solved/problem77.py | bgwines/project-euler | 06c0dd8e4b2de2909bb8f48e9b02d181de7a19b0 | [
"BSD-3-Clause"
] | null | null | null | src/solved/problem77.py | bgwines/project-euler | 06c0dd8e4b2de2909bb8f48e9b02d181de7a19b0 | [
"BSD-3-Clause"
] | null | null | null | src/solved/problem77.py | bgwines/project-euler | 06c0dd8e4b2de2909bb8f48e9b02d181de7a19b0 | [
"BSD-3-Clause"
] | null | null | null |
import itertools
import math
import pdb
import pyprimes
import sys
def get_primes_leq(n):
primes = []
for p in pyprimes.primes():
if p > n:
break
primes.append(p)
return primes
def access_map(dp_table, desired_sum, max_value):
if desired_sum == -1:
return 0
if ... | 25.893617 | 75 | 0.642564 | 186 | 1,217 | 3.887097 | 0.198925 | 0.248963 | 0.135546 | 0.164592 | 0.477178 | 0.430152 | 0.325035 | 0.264177 | 0.210235 | 0.11065 | 0 | 0.021277 | 0.266228 | 1,217 | 47 | 76 | 25.893617 | 0.788354 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.025 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
45b616db8bdde43885ca6f83a4fa945027965aca | 83 | py | Python | test_app/urls.py | angeldeejay/django-automatic-crud | 0f0cb2df57aad4c43abb09c4007556de4744e7b8 | [
"Apache-2.0"
] | 13 | 2021-04-22T04:08:19.000Z | 2022-03-09T13:39:40.000Z | test_app/urls.py | angeldeejay/django-automatic-crud | 0f0cb2df57aad4c43abb09c4007556de4744e7b8 | [
"Apache-2.0"
] | 2 | 2021-06-28T15:55:43.000Z | 2021-12-02T17:16:25.000Z | test_app/urls.py | angeldeejay/django-automatic-crud | 0f0cb2df57aad4c43abb09c4007556de4744e7b8 | [
"Apache-2.0"
] | 9 | 2021-04-25T20:20:01.000Z | 2022-02-15T00:53:18.000Z | from django.urls import path
from test_app.models import *
urlpatterns = [
] | 11.857143 | 29 | 0.710843 | 11 | 83 | 5.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216867 | 83 | 7 | 30 | 11.857143 | 0.892308 | 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 |
45d5492ef68b649f41cda9209e016dca6753078b | 17 | py | Python | mopidy_botrock/mem.py | bhavens17/Mopidy-BotRock | 7c3479b61be84cea08921a19dd103edf0bfff4ec | [
"Apache-2.0"
] | null | null | null | mopidy_botrock/mem.py | bhavens17/Mopidy-BotRock | 7c3479b61be84cea08921a19dd103edf0bfff4ec | [
"Apache-2.0"
] | null | null | null | mopidy_botrock/mem.py | bhavens17/Mopidy-BotRock | 7c3479b61be84cea08921a19dd103edf0bfff4ec | [
"Apache-2.0"
] | null | null | null |
botrock = None
| 4.25 | 14 | 0.647059 | 2 | 17 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 17 | 3 | 15 | 5.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
afff7cfe59b540cd9c91b6d89cd9b40c1ee71847 | 534 | py | Python | jobsapp/api/views/users.py | GeeksCAT/anem-per-feina | 9c4fe400b8721adee88ab669cc074ffc16beca8a | [
"MIT"
] | 19 | 2020-09-29T15:22:12.000Z | 2020-10-19T17:19:44.000Z | jobsapp/api/views/users.py | GeeksCAT/anem-per-feina | 9c4fe400b8721adee88ab669cc074ffc16beca8a | [
"MIT"
] | 162 | 2020-09-29T09:09:53.000Z | 2020-11-06T04:32:12.000Z | jobsapp/api/views/users.py | GeeksCAT/anem-per-feina | 9c4fe400b8721adee88ab669cc074ffc16beca8a | [
"MIT"
] | 28 | 2020-09-29T14:32:53.000Z | 2020-11-02T21:52:39.000Z | from rest_framework.generics import CreateAPIView, ListAPIView, RetrieveUpdateDestroyAPIView
from rest_framework.permissions import AllowAny
from ...models import User
from ..serializers import UserSerializer
class UsersViewsList(ListAPIView):
serializer_class = UserSerializer
queryset = User.objects.all()
... | 29.666667 | 92 | 0.805243 | 49 | 534 | 8.653061 | 0.469388 | 0.037736 | 0.080189 | 0.174528 | 0.358491 | 0.358491 | 0.358491 | 0.358491 | 0.358491 | 0.358491 | 0 | 0 | 0.131086 | 534 | 17 | 93 | 31.411765 | 0.913793 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
b308d67cef613c967c386e171c76ef50a9406c38 | 761 | py | Python | aio_piston/response.py | Cryptex-github/aio-piston | 8a3b347a30b0835c01790b36c9314955d805f95b | [
"MIT"
] | 1 | 2021-06-24T01:53:59.000Z | 2021-06-24T01:53:59.000Z | aio_piston/response.py | Cryptex-github/aio-piston | 8a3b347a30b0835c01790b36c9314955d805f95b | [
"MIT"
] | null | null | null | aio_piston/response.py | Cryptex-github/aio-piston | 8a3b347a30b0835c01790b36c9314955d805f95b | [
"MIT"
] | 1 | 2021-07-04T22:23:03.000Z | 2021-07-04T22:23:03.000Z |
class PistonResponse:
def __init__(self, data: dict) -> None:
self.ran = data.get("ran")
self.language = data.get("language")
self.version = data.get("version")
self.stdout = data.get("stdout")
self.stderr = data.get("stderr")
self.output = data.get("output"... | 29.269231 | 101 | 0.574244 | 91 | 761 | 4.538462 | 0.296703 | 0.101695 | 0.116223 | 0.082324 | 0.11138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282523 | 761 | 26 | 102 | 29.269231 | 0.75641 | 0 | 0 | 0.105263 | 0 | 0 | 0.156373 | 0.065703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 0.157895 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b309d3518b2aae7ee6b65ef4d0cdd31cdd011556 | 576 | py | Python | toontown/betaevent/DistributedEvent.py | LittleNed/toontown-stride | 1252a8f9a8816c1810106006d09c8bdfe6ad1e57 | [
"Apache-2.0"
] | 1 | 2018-06-16T23:06:38.000Z | 2018-06-16T23:06:38.000Z | toontown/betaevent/DistributedEvent.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | null | null | null | toontown/betaevent/DistributedEvent.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | 4 | 2019-06-20T23:45:23.000Z | 2020-10-14T20:30:15.000Z | from direct.distributed.DistributedObject import DistributedObject
from direct.fsm.FSM import FSM
class DistributedEvent(DistributedObject, FSM):
notify = directNotify.newCategory('DistributedEvent')
def __init__(self,cr):
DistributedObject.__init__(self, cr)
FSM.__init__(self, self.__class__.... | 27.428571 | 66 | 0.680556 | 61 | 576 | 6.098361 | 0.42623 | 0.064516 | 0.053763 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 576 | 21 | 67 | 27.428571 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0.02773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.066667 | 0.133333 | 0 | 0.6 | 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 |
b30a8c6bc0ed22cc296e40cef6cda2fc2e998679 | 174 | py | Python | wampli/__init__.py | gieseladev/wampli | 4f52ba4d8f2f22cc08c1a3e56820de59c6668a82 | [
"MIT"
] | null | null | null | wampli/__init__.py | gieseladev/wampli | 4f52ba4d8f2f22cc08c1a3e56820de59c6668a82 | [
"MIT"
] | null | null | null | wampli/__init__.py | gieseladev/wampli | 4f52ba4d8f2f22cc08c1a3e56820de59c6668a82 | [
"MIT"
] | null | null | null | """WAMPli is a command line interface for the WAMP protocol."""
import libwampli
from .shell import *
__author__ = libwampli.__author__
__version__ = libwampli.__version__
| 21.75 | 63 | 0.787356 | 21 | 174 | 5.761905 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 174 | 7 | 64 | 24.857143 | 0.806667 | 0.327586 | 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 |
b32bad389f955f266b2f94b9450f1b86b1a07698 | 244 | py | Python | easyocr_django_app/urls.py | choudharyvikram/easyocr | faaa220f578ff5605e2ceea4a9f0f075fea69577 | [
"MIT"
] | null | null | null | easyocr_django_app/urls.py | choudharyvikram/easyocr | faaa220f578ff5605e2ceea4a9f0f075fea69577 | [
"MIT"
] | null | null | null | easyocr_django_app/urls.py | choudharyvikram/easyocr | faaa220f578ff5605e2ceea4a9f0f075fea69577 | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
from .views import ocr
urlpatterns = [
path('ocr/',ocr, name='ocr')
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
| 24.4 | 64 | 0.770492 | 36 | 244 | 5.138889 | 0.444444 | 0.162162 | 0.151351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122951 | 244 | 9 | 65 | 27.111111 | 0.864486 | 0 | 0 | 0 | 0 | 0 | 0.028689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b33e24072b6474bee2c0fa548f4a2d927db5e63b | 7,995 | py | Python | cogs/DP.py | ironman9356/DPG-BOT-CODE | c8a8d6ae3019ae0fb11a946f31730c7b0edfc34d | [
"MIT"
] | 9 | 2021-03-21T16:18:44.000Z | 2021-12-30T16:31:21.000Z | cogs/DP.py | ironman9356/DPG-BOT-CODE | c8a8d6ae3019ae0fb11a946f31730c7b0edfc34d | [
"MIT"
] | null | null | null | cogs/DP.py | ironman9356/DPG-BOT-CODE | c8a8d6ae3019ae0fb11a946f31730c7b0edfc34d | [
"MIT"
] | 1 | 2021-05-01T00:51:00.000Z | 2021-05-01T00:51:00.000Z |
import discord
from discord.ext import commands
client = commands.Bot(command_prefix='your prefix')
class DP(commands.Cog):
def __init__(self,client):
self.client=client
@commands.command(help="The Man, The Beard, the RAGE MONSTER himself", aliases=['ty'])
async def tyler(self,ctx):
embed=discord.Emb... | 99.9375 | 582 | 0.761851 | 1,231 | 7,995 | 4.918765 | 0.316816 | 0.027746 | 0.036499 | 0.04294 | 0.319075 | 0.230058 | 0.133443 | 0.116928 | 0.062758 | 0.048225 | 0 | 0.030112 | 0.106942 | 7,995 | 79 | 583 | 101.202532 | 0.817507 | 0 | 0 | 0.15942 | 0 | 0.347826 | 0.670503 | 0.01989 | 0 | 0 | 0.010008 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.028986 | 0 | 0.072464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b346fd8ae5aff444acb647b52b7fbcccc0c93f78 | 4,108 | py | Python | pytest_kube/cluster.py | giantswarm/pytest-apps | bb9df52064dc31d5523a7c51c4a6a6dce357aa3a | [
"Apache-2.0"
] | null | null | null | pytest_kube/cluster.py | giantswarm/pytest-apps | bb9df52064dc31d5523a7c51c4a6a6dce357aa3a | [
"Apache-2.0"
] | 1 | 2020-07-27T14:27:38.000Z | 2020-07-29T13:19:42.000Z | pytest_kube/cluster.py | giantswarm/pytest-kube | bb9df52064dc31d5523a7c51c4a6a6dce357aa3a | [
"Apache-2.0"
] | null | null | null | import random
import socket
import subprocess
import time
from contextlib import contextmanager
from pathlib import Path
from typing import Generator, Union
from pytest_kind import KindCluster as KindClusterUpstream
class Cluster:
"""
[DEVNOTES]
Based on [hjacobs/pytest-kind](https://github.com/hjacobs/p... | 37.345455 | 110 | 0.65482 | 523 | 4,108 | 5.078394 | 0.363289 | 0.03012 | 0.031627 | 0.025602 | 0.307982 | 0.256401 | 0.256401 | 0.256401 | 0.256401 | 0.256401 | 0 | 0.000972 | 0.249026 | 4,108 | 109 | 111 | 37.688073 | 0.859968 | 0.638754 | 0 | 0.111111 | 0 | 0 | 0.042129 | 0.033259 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0.259259 | false | 0.111111 | 0.296296 | 0 | 0.703704 | 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 |
b361ed2c5e2c5194e1e4fbed1b4c3504e3a19077 | 1,116 | py | Python | graphdatascience/tests/unit/test_similarity.py | lassewesth/graph-data-science-client | 86c2caca34a6f892400358f85b5792576e35d9ff | [
"Apache-2.0"
] | null | null | null | graphdatascience/tests/unit/test_similarity.py | lassewesth/graph-data-science-client | 86c2caca34a6f892400358f85b5792576e35d9ff | [
"Apache-2.0"
] | null | null | null | graphdatascience/tests/unit/test_similarity.py | lassewesth/graph-data-science-client | 86c2caca34a6f892400358f85b5792576e35d9ff | [
"Apache-2.0"
] | null | null | null | from graphdatascience.graph_data_science import GraphDataScience
from graphdatascience.tests.unit.conftest import CollectingQueryRunner
def test_similarity_stats(runner: CollectingQueryRunner, gds: GraphDataScience) -> None:
gds.alpha.similarity.cosine.stats(hello=0.2, you=42)
assert runner.last_query() == "... | 34.875 | 88 | 0.704301 | 134 | 1,116 | 5.761194 | 0.253731 | 0.062176 | 0.139896 | 0.07772 | 0.799223 | 0.700777 | 0.700777 | 0.700777 | 0.436529 | 0.436529 | 0 | 0.02529 | 0.149642 | 1,116 | 31 | 89 | 36 | 0.788198 | 0 | 0 | 0.272727 | 0 | 0 | 0.168459 | 0.117384 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b368a3bf15174e481437ccb0847426e0a81284a6 | 1,589 | py | Python | Algo_DS_Python/Algo_DS_Python/algorithms/graphAlgorithms/graphs.py | abasnfarah/IP_Algo_DS | 1c000ae0b0a07a8d3282541083afc733d07fb858 | [
"MIT"
] | 2 | 2017-12-01T14:52:11.000Z | 2017-12-01T14:52:16.000Z | Algo_DS_Python/Algo_DS_Python/algorithms/graphAlgorithms/graphs.py | abasnfarah/Interview_Prep | 1c000ae0b0a07a8d3282541083afc733d07fb858 | [
"MIT"
] | null | null | null | Algo_DS_Python/Algo_DS_Python/algorithms/graphAlgorithms/graphs.py | abasnfarah/Interview_Prep | 1c000ae0b0a07a8d3282541083afc733d07fb858 | [
"MIT"
] | null | null | null | """
Author: Abas Farah
This is code for graphs.py
This file has some prebuilt graphs using the:
--> Adjecency List
--> Adjecency Matrix
--> Adjecency List with edge weights
--> Object oriented graph with edge weights
"""
import sys
import os
dirpath = os.path.dirname(os.p... | 24.075758 | 68 | 0.512272 | 197 | 1,589 | 4.106599 | 0.395939 | 0.286774 | 0.281829 | 0.217553 | 0.15822 | 0.032138 | 0 | 0 | 0 | 0 | 0 | 0.030447 | 0.338578 | 1,589 | 65 | 69 | 24.446154 | 0.739296 | 0.237256 | 0 | 0.066667 | 0 | 0 | 0.042241 | 0.02931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.133333 | 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 |
2fa8e5d71a1ec5fd05dd790135e87ac5b854d3e3 | 283 | py | Python | auth/conf.py | Splice-Technologies/splice-auth | 41e28857409402069a15b4a28f0852fe67697780 | [
"MIT"
] | null | null | null | auth/conf.py | Splice-Technologies/splice-auth | 41e28857409402069a15b4a28f0852fe67697780 | [
"MIT"
] | null | null | null | auth/conf.py | Splice-Technologies/splice-auth | 41e28857409402069a15b4a28f0852fe67697780 | [
"MIT"
] | null | null | null | database = {
'name': 'splice_auth_db',
'user': 'postgres',
'password': '#100100Borjan',
'host': '127.0.0.1',
'port': 5432,
}
mail = {
'host': 'localhost',
'port': 25,
'user': '',
'password': '#100100Borjan',
'tls': False,
'ssl': False,
}
| 16.647059 | 32 | 0.491166 | 28 | 283 | 4.892857 | 0.75 | 0.291971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.265018 | 283 | 16 | 33 | 17.6875 | 0.543269 | 0 | 0 | 0.133333 | 0 | 0 | 0.409894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2fb421adc57ad62e9c8363ef118713df05eec8d7 | 421 | py | Python | 1.elements_of_programming/Ch - 5 Arrays Que/5.2_que.py | jimmymalhan/Coding_Interview_Questions_Python_algoexpert | 94e8b4c63e8db92793b99741120a09f22806234f | [
"MIT"
] | 1 | 2020-10-05T04:55:26.000Z | 2020-10-05T04:55:26.000Z | 1.elements_of_programming/Ch - 5 Arrays Que/5.2_que.py | jimmymalhan/Coding_Interview_Questions_Python_algoexpert | 94e8b4c63e8db92793b99741120a09f22806234f | [
"MIT"
] | null | null | null | 1.elements_of_programming/Ch - 5 Arrays Que/5.2_que.py | jimmymalhan/Coding_Interview_Questions_Python_algoexpert | 94e8b4c63e8db92793b99741120a09f22806234f | [
"MIT"
] | null | null | null | # Increment an aribitary-precision integer
# Write a program which takes as input an array of digits encoding a nonnegative decimal integer D
# and updates the array to represent the integer D + 1. For example, if the input is [1, 2, 9] then
# you should update the array to [1, 3, 0]. Your algorithm should work even i... | 46.777778 | 99 | 0.760095 | 71 | 421 | 4.507042 | 0.732394 | 0.05 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020528 | 0.190024 | 421 | 8 | 100 | 52.625 | 0.917889 | 0.964371 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2fba3d6f6ed04adfb2bd36af0c80a80404bca778 | 120 | py | Python | application/__init__.py | anhbaysgalan1/Docker-nginx-flask-auto-ssl | 0973a4ef65dbcb87f4cc34b64e0008ef9f2185d7 | [
"MIT"
] | 3 | 2019-07-16T10:27:11.000Z | 2022-03-30T18:19:53.000Z | application/__init__.py | anhbaysgalan1/Docker-nginx-flask-auto-ssl | 0973a4ef65dbcb87f4cc34b64e0008ef9f2185d7 | [
"MIT"
] | null | null | null | application/__init__.py | anhbaysgalan1/Docker-nginx-flask-auto-ssl | 0973a4ef65dbcb87f4cc34b64e0008ef9f2185d7 | [
"MIT"
] | 1 | 2021-01-24T18:31:03.000Z | 2021-01-24T18:31:03.000Z | from flask import Flask
app = Flask(__name__)
app.secret_key = 'super-duper-secret-key'
from application import router | 20 | 41 | 0.791667 | 18 | 120 | 5 | 0.611111 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 120 | 6 | 42 | 20 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.181818 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.