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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6347397d8f0d20f12cef3b8bab4bc37ea132150 | 346 | py | Python | utils/measure/powermeter/powermeter.py | RubenKelevra/homeassistant-powercalc | 8ca0ebc47e6049a326b59eb12ff9eda3ad780096 | [
"MIT"
] | null | null | null | utils/measure/powermeter/powermeter.py | RubenKelevra/homeassistant-powercalc | 8ca0ebc47e6049a326b59eb12ff9eda3ad780096 | [
"MIT"
] | null | null | null | utils/measure/powermeter/powermeter.py | RubenKelevra/homeassistant-powercalc | 8ca0ebc47e6049a326b59eb12ff9eda3ad780096 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import NamedTuple
class PowerMeter:
def get_power(self) -> PowerMeasurementResult:
pass
def get_questions(self) -> list[dict]:
return []
def process_answers(self, answers):
pass
class PowerMeasurementResult(NamedTuple):
power:... | 17.3 | 50 | 0.693642 | 36 | 346 | 6.472222 | 0.611111 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236994 | 346 | 19 | 51 | 18.210526 | 0.882576 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.166667 | 0.166667 | 0.083333 | 0.833333 | 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 |
b635623b0b89d2166b4d210380b9a9c1dffba09e | 1,596 | py | Python | py_xml_test/xml_parser_test.py | interhui/py-xml | 8323786ef1bd261d5965ef64a7c754703e90ce4f | [
"Apache-2.0"
] | 1 | 2016-02-12T04:16:41.000Z | 2016-02-12T04:16:41.000Z | py_xml_test/xml_parser_test.py | interhui/py-xml | 8323786ef1bd261d5965ef64a7c754703e90ce4f | [
"Apache-2.0"
] | null | null | null | py_xml_test/xml_parser_test.py | interhui/py-xml | 8323786ef1bd261d5965ef64a7c754703e90ce4f | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from py_xml import xml_parser
import unittest
class XmlParserTest(unittest.TestCase):
def test_parse(self):
parser = xml_parser.XmlParser()
result = parser.parse('test.xml')
self.assertEqual(len(result.get('root').get('group').get('family')), 2)
self.assertEqua... | 59.111111 | 119 | 0.612782 | 217 | 1,596 | 4.396313 | 0.211982 | 0.204403 | 0.177149 | 0.218029 | 0.668763 | 0.668763 | 0.668763 | 0.616352 | 0.513627 | 0.419287 | 0 | 0.035663 | 0.121554 | 1,596 | 27 | 120 | 59.111111 | 0.644793 | 0.007519 | 0 | 0 | 0 | 0 | 0.227416 | 0 | 0 | 0 | 0 | 0 | 0.684211 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 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 |
b639ac3d74d2c78cbdfc88ee1218fe981fa96e27 | 12,643 | py | Python | test/unit_test/test_rolling_windows_model.py | WheatonCS/Lexos | 994be4e403053ebbef18e5758a100af616195706 | [
"MIT"
] | 107 | 2015-03-19T09:10:31.000Z | 2022-01-29T01:33:48.000Z | test/unit_test/test_rolling_windows_model.py | WheatonCS/Lexos | 994be4e403053ebbef18e5758a100af616195706 | [
"MIT"
] | 864 | 2015-05-19T19:27:00.000Z | 2022-01-28T18:48:52.000Z | test/unit_test/test_rolling_windows_model.py | WheatonCS/Lexos | 994be4e403053ebbef18e5758a100af616195706 | [
"MIT"
] | 25 | 2015-06-02T23:03:06.000Z | 2020-08-06T04:27:49.000Z | import numpy as np
import pandas as pd
from lexos.models.rolling_window_model import RollingWindowsModel, \
RWATestOptions
from lexos.receivers.rolling_window_receiver import RWAFrontEndOptions, \
WindowUnitType, RWATokenType, RWARatioTokenOptions, RWAWindowOptions, \
RWAAverageTokenOptions, RWAPlotOptions
... | 36.646377 | 79 | 0.534525 | 1,534 | 12,643 | 4.132986 | 0.099739 | 0.029968 | 0.037855 | 0.042902 | 0.780126 | 0.73817 | 0.72224 | 0.691483 | 0.685962 | 0.663091 | 0 | 0.040262 | 0.312426 | 12,643 | 344 | 80 | 36.752907 | 0.68906 | 0.079807 | 0 | 0.556364 | 0 | 0.007273 | 0.087488 | 0 | 0 | 0 | 0 | 0 | 0.116364 | 1 | 0.072727 | false | 0.025455 | 0.014545 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b64b2fc0f47cce9fd6edd2e65a55958024d7630d | 361 | py | Python | sanskrit_data/db/__init__.py | sanskrit-coders/sanskrit_data | 2e2439a3a7fcdd0748cd13f1fa3f39d9c0c1dda8 | [
"MIT"
] | 3 | 2017-08-02T05:17:46.000Z | 2020-07-13T23:35:20.000Z | sanskrit_data/db/__init__.py | sanskrit-coders/sanskrit_data | 2e2439a3a7fcdd0748cd13f1fa3f39d9c0c1dda8 | [
"MIT"
] | 16 | 2018-10-06T20:37:17.000Z | 2022-01-14T09:00:19.000Z | sanskrit_data/db/__init__.py | sanskrit-coders/sanskrit_data | 2e2439a3a7fcdd0748cd13f1fa3f39d9c0c1dda8 | [
"MIT"
] | 1 | 2019-10-14T16:19:56.000Z | 2019-10-14T16:19:56.000Z | """
This package aims to achieve database neutrality - we abstract database-client operations and database operations using interfaces so as to enable one to easily switch the database one uses.
:py:mod:`~sanskrit_data.db.interfaces` define these interfaces, while :py:mod:`~sanskrit_data_implementations.db` contain th... | 60.166667 | 190 | 0.808864 | 50 | 361 | 5.78 | 0.66 | 0.076125 | 0.089965 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116343 | 361 | 5 | 191 | 72.2 | 0.905956 | 0.975069 | 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 |
b650a43c6d8750eee98ae8d1bd4346b46b944583 | 146 | py | Python | 14-individualExperimentation/Patrick/numpyArraySaveTest.py | DataKnightsAI/Sleep-Deprivation-Classification-using-MRI-Scans | 0c36ab7bb0b4aec9bca95bcf8d866c39cdb17a66 | [
"Apache-2.0"
] | 1 | 2020-10-08T16:14:45.000Z | 2020-10-08T16:14:45.000Z | 14-individualExperimentation/Patrick/numpyArraySaveTest.py | DataKnightsAI/Sleep-Deprivation-Classification-using-MRI-Scans | 0c36ab7bb0b4aec9bca95bcf8d866c39cdb17a66 | [
"Apache-2.0"
] | null | null | null | 14-individualExperimentation/Patrick/numpyArraySaveTest.py | DataKnightsAI/Sleep-Deprivation-Classification-using-MRI-Scans | 0c36ab7bb0b4aec9bca95bcf8d866c39cdb17a66 | [
"Apache-2.0"
] | null | null | null | #%%
import numpy as np
a = np.array([5, 6, 7])
np.save('test12.npy', a, allow_pickle=True)
# %%
np.load('test12.npy', allow_pickle=True)
# %%
| 13.272727 | 43 | 0.609589 | 25 | 146 | 3.48 | 0.64 | 0.206897 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056911 | 0.157534 | 146 | 10 | 44 | 14.6 | 0.650407 | 0.054795 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b66e8edb872ae92fd37d8f73a656bd046cf4042a | 4,002 | py | Python | firebase_token_generator_test.py | firebase/firebase-token-generator-python | cb8a67d25f4a464cd4f37f076046d17912621c09 | [
"MIT"
] | 62 | 2015-01-26T19:20:29.000Z | 2018-02-20T07:45:55.000Z | firebase_token_generator_test.py | googlearchive/firebase-token-generator-python | cb8a67d25f4a464cd4f37f076046d17912621c09 | [
"MIT"
] | 4 | 2015-04-16T17:36:11.000Z | 2017-12-14T19:03:35.000Z | firebase_token_generator_test.py | firebase/firebase-token-generator-python | cb8a67d25f4a464cd4f37f076046d17912621c09 | [
"MIT"
] | 16 | 2015-03-26T23:08:01.000Z | 2018-08-24T21:37:23.000Z | try:
basestring
except NameError: # Python 3
basestring = str
from firebase_token_generator import create_token
import unittest
class TestTokenGenerator(unittest.TestCase):
def test_smoke_test(self):
token = create_token("barfoo", {"uid": "foo"})
self.assertIsInstance(token, basestring)
... | 64.548387 | 835 | 0.690155 | 289 | 4,002 | 9.370242 | 0.276817 | 0.060931 | 0.076809 | 0.097489 | 0.376662 | 0.342688 | 0.233013 | 0.233013 | 0.214549 | 0.213442 | 0 | 0.467405 | 0.233383 | 4,002 | 61 | 836 | 65.606557 | 0.415254 | 0.149675 | 0 | 0.276596 | 0 | 0 | 0.429244 | 0.376876 | 0 | 0 | 0 | 0 | 0.297872 | 1 | 0.212766 | false | 0 | 0.042553 | 0 | 0.276596 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b671629bad8f5b0fee9895609f29b690c58d40bb | 840 | py | Python | btcadvisor_front/pages/views.py | DavidTF85/btcadvisor-front | e43926a1294da0266c61ff379f0ec838960e22ed | [
"BSD-3-Clause"
] | null | null | null | btcadvisor_front/pages/views.py | DavidTF85/btcadvisor-front | e43926a1294da0266c61ff379f0ec838960e22ed | [
"BSD-3-Clause"
] | null | null | null | btcadvisor_front/pages/views.py | DavidTF85/btcadvisor-front | e43926a1294da0266c61ff379f0ec838960e22ed | [
"BSD-3-Clause"
] | null | null | null | """
pages/views.py
"""
from django.http import HttpResponse, JsonResponse
# from django.contrib.auth.models import User
from django.shortcuts import render # STEP 1 - Import
from django.shortcuts import redirect
# --- HOMEPAGE --- #
def welcome_page(request):
return render(request, "pages/homepage/we... | 27.096774 | 70 | 0.69881 | 99 | 840 | 5.848485 | 0.313131 | 0.11399 | 0.176166 | 0.238342 | 0.466321 | 0.466321 | 0.466321 | 0.172712 | 0 | 0 | 0 | 0.001418 | 0.160714 | 840 | 30 | 71 | 28 | 0.819858 | 0.129762 | 0 | 0 | 0 | 0 | 0.243086 | 0.243086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b69b9506a404e4eca1a63b177d09d3142babda15 | 1,191 | py | Python | tests/api/conftest.py | enaydanov/charybdisfs | 49af000b73fdc8f390caeebb9eabdd86a581605a | [
"Apache-2.0"
] | 1 | 2021-09-09T10:11:40.000Z | 2021-09-09T10:11:40.000Z | tests/api/conftest.py | enaydanov/charybdisfs | 49af000b73fdc8f390caeebb9eabdd86a581605a | [
"Apache-2.0"
] | 38 | 2020-10-22T14:19:41.000Z | 2020-10-27T19:25:59.000Z | tests/api/conftest.py | enaydanov/charybdisfs | 49af000b73fdc8f390caeebb9eabdd86a581605a | [
"Apache-2.0"
] | 4 | 2020-10-22T07:04:22.000Z | 2020-10-26T07:11:40.000Z | # Copyright 2020 ScyllaDB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 29.775 | 97 | 0.769102 | 175 | 1,191 | 5.114286 | 0.548571 | 0.067039 | 0.089385 | 0.035754 | 0.060335 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020568 | 0.142737 | 1,191 | 39 | 98 | 30.538462 | 0.856024 | 0.457599 | 0 | 0.117647 | 0 | 0 | 0.093354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | true | 0 | 0.294118 | 0.117647 | 0.588235 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
fcbb2495d3907c725cadddb98b8fd93a098fd78b | 7,601 | py | Python | model.py | sebadiaz/ModelDesign | 763cdcc14f04cdb765d2305d40ece0b88984f350 | [
"Apache-2.0"
] | null | null | null | model.py | sebadiaz/ModelDesign | 763cdcc14f04cdb765d2305d40ece0b88984f350 | [
"Apache-2.0"
] | null | null | null | model.py | sebadiaz/ModelDesign | 763cdcc14f04cdb765d2305d40ece0b88984f350 | [
"Apache-2.0"
] | null | null | null | '''
Created on 24 mai 2017
@author: buissondiaz
'''
from numpy import genfromtxt
import numpy as np
import pandas as pd
dataset = genfromtxt('eggs.csv', delimiter=' ')
X = dataset[:,2:11]
y = dataset[:,1]
print type(dataset[1,3])
print type(dataset[1,10])
print type(dataset[1,11])
print np.asanyarray(X)
print np.isfi... | 33.337719 | 91 | 0.789633 | 1,109 | 7,601 | 5.237151 | 0.138864 | 0.045627 | 0.096591 | 0.068871 | 0.684745 | 0.649277 | 0.646178 | 0.646178 | 0.628444 | 0.628444 | 0 | 0.00937 | 0.087357 | 7,601 | 227 | 92 | 33.484582 | 0.827879 | 0.064071 | 0 | 0.663212 | 0 | 0 | 0.050645 | 0.007803 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119171 | null | null | 0.564767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fcbfa7997d184e4b180c55f37ed8e2ab5801bcf8 | 10,951 | py | Python | alakazam/anonymous.py | Mercerenies/alakazam | aef4e4ebe7f2adb2558bdc13c3b47273e9423585 | [
"BSD-3-Clause"
] | null | null | null | alakazam/anonymous.py | Mercerenies/alakazam | aef4e4ebe7f2adb2558bdc13c3b47273e9423585 | [
"BSD-3-Clause"
] | 5 | 2017-11-28T03:15:03.000Z | 2020-07-08T18:55:47.000Z | alakazam/anonymous.py | Mercerenies/alakazam | aef4e4ebe7f2adb2558bdc13c3b47273e9423585 | [
"BSD-3-Clause"
] | null | null | null |
from __future__ import division
from .util import *
from .error import *
class Anon(object):
"""Anon is a thin wrapper around a callable object, usually a
lambda. What distinguishes Anon from an ordinary callable object
is that Anon objects will compose with other Anon objects, while
treating ordinar... | 31.378223 | 97 | 0.639576 | 1,608 | 10,951 | 3.998134 | 0.23694 | 0.01991 | 0.020999 | 0.12117 | 0.381552 | 0.344533 | 0.323378 | 0.314979 | 0.304091 | 0.265205 | 0 | 0.006275 | 0.257876 | 10,951 | 348 | 98 | 31.468391 | 0.784791 | 0.44827 | 0 | 0.095238 | 0 | 0 | 0.011877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.367347 | false | 0 | 0.020408 | 0.265306 | 0.77551 | 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 |
fce880a2a8897b98d48611fa3bd612e5b809ffdb | 142 | py | Python | text/_elisp/key/_prefix/shift.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_elisp/key/_prefix/shift.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_elisp/key/_prefix/shift.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | """
*Shift* [ Shift ]
The Shift prefix.
"""
from ._key import Prefix
__all__ = ["Shift"]
class Shift(
Prefix,
):
pass
| 7.473684 | 24 | 0.535211 | 15 | 142 | 4.733333 | 0.6 | 0.309859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316901 | 142 | 18 | 25 | 7.888889 | 0.731959 | 0.267606 | 0 | 0 | 0 | 0 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.333333 | 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 |
1e0555389bf634f5e322cd950171d9bd6b8fa1ac | 1,019 | py | Python | lib/PyAMF-0.6.1/pyamf/tests/test_versions.py | MiCHiLU/google_appengine_sdk | 3da9f20d7e65e26c4938d2c4054bc4f39cbc5522 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | AppServer/lib/PyAMF-0.6.1/pyamf/tests/test_versions.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | AppServer/lib/PyAMF-0.6.1/pyamf/tests/test_versions.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | # Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Tests for L{pyamf.version}
"""
import unittest
from pyamf import versions
class VersionTestCase(unittest.TestCase):
"""
Tests for L{pyamf.version.get_version}
"""
def test_version(self):
self.assertEqual(versions.get_ver... | 24.261905 | 80 | 0.596663 | 144 | 1,019 | 4.159722 | 0.263889 | 0.036728 | 0.230384 | 0.260434 | 0.502504 | 0.432387 | 0.24207 | 0.24207 | 0 | 0 | 0 | 0.067174 | 0.225711 | 1,019 | 41 | 81 | 24.853659 | 0.692015 | 0.125613 | 0 | 0 | 0 | 0 | 0.077278 | 0 | 0 | 0 | 0 | 0 | 0.578947 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
1e0f6c8a8257796fba27ec25e2cbd63da712ead0 | 14 | py | Python | catcmd/config/qconfigs/q_git.py | project-catapult/catapult_cmd | 439527b9d986ebdadd154a1245d851a74ac5b83a | [
"MIT"
] | null | null | null | catcmd/config/qconfigs/q_git.py | project-catapult/catapult_cmd | 439527b9d986ebdadd154a1245d851a74ac5b83a | [
"MIT"
] | null | null | null | catcmd/config/qconfigs/q_git.py | project-catapult/catapult_cmd | 439527b9d986ebdadd154a1245d851a74ac5b83a | [
"MIT"
] | null | null | null | questions = [] | 14 | 14 | 0.642857 | 1 | 14 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 14 | 1 | 14 | 14 | 0.75 | 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 |
1e1e1762927d9f3b2bc2d344046e9fc481e9e795 | 288 | py | Python | backend/consultas/routers.py | ItaloAbreu/medicar-desafio | 36f27f3af60414690f20c00c6f104141ccbb3960 | [
"MIT"
] | null | null | null | backend/consultas/routers.py | ItaloAbreu/medicar-desafio | 36f27f3af60414690f20c00c6f104141ccbb3960 | [
"MIT"
] | null | null | null | backend/consultas/routers.py | ItaloAbreu/medicar-desafio | 36f27f3af60414690f20c00c6f104141ccbb3960 | [
"MIT"
] | null | null | null | from rest_framework import routers
from consultas.views import ConsultaViewSet
from consultas.views import AgendaViewSet
router = routers.SimpleRouter()
router.register(r'consultas', ConsultaViewSet, basename='consultas')
router.register(r'agendas', AgendaViewSet, basename='agendas')
| 36 | 68 | 0.826389 | 32 | 288 | 7.40625 | 0.46875 | 0.109705 | 0.151899 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 288 | 7 | 69 | 41.142857 | 0.897727 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
1e297cdb1a5c8a6dd3f7ad09bf898559412a3de4 | 320 | py | Python | imagebrowser/install/Mari/mari_imagebrowser_init.py | bneall/imagebrowser | cbcc71dae03473dfeb4f775045cb110e9fa4521f | [
"MIT"
] | 10 | 2021-12-06T10:56:12.000Z | 2022-03-18T09:28:01.000Z | imagebrowser/install/Mari/mari_imagebrowser_init.py | bneall/imagebrowser | cbcc71dae03473dfeb4f775045cb110e9fa4521f | [
"MIT"
] | null | null | null | imagebrowser/install/Mari/mari_imagebrowser_init.py | bneall/imagebrowser | cbcc71dae03473dfeb4f775045cb110e9fa4521f | [
"MIT"
] | 3 | 2021-12-08T13:54:56.000Z | 2021-12-14T10:20:31.000Z | # Install Instructions
# 1. Make sure imagebrowser has been installed, to do so, copy the "imagebrowser" folder to mari scripts location (e.g., "C:\Users\Bob\Documents\Mari\Scripts")
# 2. Copy this file to the "~/Mari/Scripts" directory, then launch Mari.
import imagebrowser.applications.ibmari as ibmari
ibmari.init() | 53.333333 | 159 | 0.765625 | 48 | 320 | 5.104167 | 0.729167 | 0.134694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.128125 | 320 | 6 | 160 | 53.333333 | 0.870968 | 0.778125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e2c2bd13540d58b86460e20d62925edc3385675 | 717 | py | Python | Vision/ImageClusteringSkill/ml/extractors/extractor.py | iii-PaulCridland/azure-search-power-skills | bbc5848c32b3bd6f2c8942693d854563e0cee708 | [
"MIT"
] | 128 | 2019-06-12T19:24:34.000Z | 2022-03-08T18:39:40.000Z | Vision/ImageClusteringSkill/ml/extractors/extractor.py | iii-PaulCridland/azure-search-power-skills | bbc5848c32b3bd6f2c8942693d854563e0cee708 | [
"MIT"
] | 47 | 2019-07-15T22:04:23.000Z | 2022-03-04T18:35:57.000Z | Vision/ImageClusteringSkill/ml/extractors/extractor.py | iii-PaulCridland/azure-search-power-skills | bbc5848c32b3bd6f2c8942693d854563e0cee708 | [
"MIT"
] | 99 | 2019-06-28T20:56:21.000Z | 2022-03-30T17:17:24.000Z | """
This module contains `Extractor` abstract class. Typically the classes inherited from this one are used to extract features
that can be used for multiple purposes, e.g.: image similarity calculation
"""
from typing import Tuple, List
from abc import ABC, abstractmethod
import numpy as np
class Extractor(ABC):
... | 27.576923 | 123 | 0.64993 | 86 | 717 | 5.406977 | 0.569767 | 0.051613 | 0.111828 | 0.08172 | 0.098925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263598 | 717 | 26 | 124 | 27.576923 | 0.880682 | 0.55788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
1e311d67251bd0bf706c4eea419443a5c6660464 | 174 | py | Python | myarticles/urls.py | hdknr/django-myarticles | e843c0c8ae3d59021dbc56347c5ad527d072f51d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | myarticles/urls.py | hdknr/django-myarticles | e843c0c8ae3d59021dbc56347c5ad527d072f51d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | myarticles/urls.py | hdknr/django-myarticles | e843c0c8ae3d59021dbc56347c5ad527d072f51d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from django.conf.urls import url, include
from . import views, api
urlpatterns = [
url(r'^api/', include(api)),
] + views.ElementView.urls() + views.ArticleView.urls()
| 21.75 | 55 | 0.689655 | 23 | 174 | 5.217391 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 174 | 7 | 56 | 24.857143 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1e3d0bc4ab5449a0244a8cc59a7a84083cf5d8de | 1,941 | py | Python | web/sitemaps.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 5 | 2019-08-29T13:55:47.000Z | 2021-11-15T08:30:33.000Z | web/sitemaps.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 295 | 2019-08-19T12:40:29.000Z | 2022-01-24T14:03:20.000Z | web/sitemaps.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 7 | 2020-05-27T06:28:48.000Z | 2021-11-17T10:00:54.000Z | from django.contrib.sitemaps import Sitemap
from data.models import Farmer, Experiment
class FarmerSitemap(Sitemap):
def items(self):
return Farmer.objects.filter(approved=True).order_by('id')
def location(self, obj):
return obj.url_path
def lastmod(self, obj):
return obj.modifica... | 24.2625 | 71 | 0.487893 | 177 | 1,941 | 5.316384 | 0.333333 | 0.081828 | 0.151966 | 0.119022 | 0.538789 | 0.390011 | 0.235919 | 0.235919 | 0.235919 | 0.235919 | 0 | 0.013479 | 0.38846 | 1,941 | 79 | 72 | 24.56962 | 0.779275 | 0 | 0 | 0.390625 | 0 | 0 | 0.162287 | 0.018032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.03125 | 0.21875 | 0.515625 | 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 |
1e55b686ff3095d3f024eaecf2809f7b5523fd32 | 302 | py | Python | pywinrt/winsdk/windows/security/enterprisedata/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 3 | 2022-02-14T14:53:08.000Z | 2022-03-29T20:48:54.000Z | pywinrt/winsdk/windows/security/enterprisedata/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 4 | 2022-01-28T02:53:52.000Z | 2022-02-26T18:10:05.000Z | pywinrt/winsdk/windows/security/enterprisedata/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | null | null | null | # WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4
import enum
import winsdk
_ns_module = winsdk._import_ns_module("Windows.Security.EnterpriseData")
class ProtectionPolicyEvaluationResult(enum.IntEnum):
ALLOWED = 0
BLOCKED = 1
CONSENT_REQUIRED = 2
| 21.571429 | 86 | 0.761589 | 42 | 302 | 5.333333 | 0.809524 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027559 | 0.15894 | 302 | 13 | 87 | 23.230769 | 0.854331 | 0.278146 | 0 | 0 | 1 | 0 | 0.144186 | 0.144186 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1e606490227056cb81e6ce1b47fd7c01da3e038e | 48 | py | Python | graph_options.py | szajakubiak/Graphs_from_Excel | ce1d4c74137d398458ab12e7ceeeaf0db8faeee3 | [
"MIT"
] | null | null | null | graph_options.py | szajakubiak/Graphs_from_Excel | ce1d4c74137d398458ab12e7ceeeaf0db8faeee3 | [
"MIT"
] | null | null | null | graph_options.py | szajakubiak/Graphs_from_Excel | ce1d4c74137d398458ab12e7ceeeaf0db8faeee3 | [
"MIT"
] | null | null | null | label_font = 30
line_width = 2
marker_size = 10
| 12 | 16 | 0.75 | 9 | 48 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.1875 | 48 | 3 | 17 | 16 | 0.717949 | 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 |
1e712f1470ce8a44b69884f2ea9f1c2321688535 | 222 | py | Python | tests/tiny_proxy/handlers/__init__.py | sjamgade/python-socks | e9c7718b104c382ff381f059705d1e929ec63f22 | [
"Apache-2.0"
] | 158 | 2018-07-09T07:54:41.000Z | 2022-03-06T17:34:08.000Z | tests/tiny_proxy/handlers/__init__.py | sjamgade/python-socks | e9c7718b104c382ff381f059705d1e929ec63f22 | [
"Apache-2.0"
] | 25 | 2018-07-18T04:19:15.000Z | 2022-02-21T15:26:48.000Z | tests/tiny_proxy/handlers/__init__.py | sjamgade/python-socks | e9c7718b104c382ff381f059705d1e929ec63f22 | [
"Apache-2.0"
] | 19 | 2018-07-25T18:39:22.000Z | 2022-03-15T03:43:47.000Z | from .http_proxy import HttpProxyHandler
from .socks5_proxy import Socks5ProxyHandler
from .socks4_proxy import Socks4ProxyHandler
__all__ = (
'HttpProxyHandler',
'Socks5ProxyHandler',
'Socks4ProxyHandler',
)
| 22.2 | 44 | 0.788288 | 19 | 222 | 8.842105 | 0.526316 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.144144 | 222 | 9 | 45 | 24.666667 | 0.852632 | 0 | 0 | 0 | 0 | 0 | 0.234234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
1eb229fb5a085cf9069e4520f19cf3acb0d5895c | 433 | py | Python | setup.py | feedbackward/mml | d257e0508d75c86c63f01dd6cfe6b48b79e0d4d4 | [
"MIT"
] | null | null | null | setup.py | feedbackward/mml | d257e0508d75c86c63f01dd6cfe6b48b79e0d4d4 | [
"MIT"
] | null | null | null | setup.py | feedbackward/mml | d257e0508d75c86c63f01dd6cfe6b48b79e0d4d4 | [
"MIT"
] | null | null | null | '''Setup file for this module.'''
## External modules.
from setuptools import setup, find_packages
###############################################################################
## For package setup (in particular, pip install -e .).
setup(name="mml", version="1.0", packages=find_packages())
# Reference:
# https:... | 25.470588 | 79 | 0.448037 | 36 | 433 | 5.333333 | 0.805556 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025381 | 0.090069 | 433 | 16 | 80 | 27.0625 | 0.461929 | 0.339492 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1ebd482e55febd32f2d65206d1227ebf9746407c | 1,169 | py | Python | jaraco/mongodb/tests/test_compat.py | jaraco/jaraco.mongodb | a47be1fc61a101549600e6ae2e0a3585a596bc16 | [
"MIT"
] | 4 | 2016-07-06T18:11:30.000Z | 2021-04-02T01:46:16.000Z | jaraco/mongodb/tests/test_compat.py | jaraco/jaraco.mongodb | a47be1fc61a101549600e6ae2e0a3585a596bc16 | [
"MIT"
] | 26 | 2015-11-04T13:22:40.000Z | 2021-07-28T00:56:44.000Z | jaraco/mongodb/tests/test_compat.py | jaraco/jaraco.mongodb | a47be1fc61a101549600e6ae2e0a3585a596bc16 | [
"MIT"
] | 1 | 2016-03-31T15:25:03.000Z | 2016-03-31T15:25:03.000Z | from jaraco.mongodb import compat
def test_save_no_id(database):
doc = dict(foo='bar')
compat.save(database.test_coll, doc)
assert database.test_coll.find_one()['foo'] == 'bar'
def test_save_new_with_id(database):
doc = dict(foo='bar', _id=1)
compat.save(database.test_coll, doc)
assert datab... | 27.186047 | 61 | 0.686056 | 176 | 1,169 | 4.3125 | 0.255682 | 0.205534 | 0.274045 | 0.202899 | 0.715415 | 0.681159 | 0.592885 | 0.592885 | 0.540184 | 0.488801 | 0 | 0.006244 | 0.17793 | 1,169 | 42 | 62 | 27.833333 | 0.783559 | 0.087254 | 0 | 0.48 | 0 | 0 | 0.026062 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.2 | false | 0 | 0.04 | 0 | 0.24 | 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 |
1edccf47ba059da3222329f06694c60721f8ab89 | 124 | py | Python | MachineLearning/ClassifyData.py | keytotime/Open-CSynapse | 73861f956996af591fa3f9ab0e2202b01e661dba | [
"MIT"
] | null | null | null | MachineLearning/ClassifyData.py | keytotime/Open-CSynapse | 73861f956996af591fa3f9ab0e2202b01e661dba | [
"MIT"
] | null | null | null | MachineLearning/ClassifyData.py | keytotime/Open-CSynapse | 73861f956996af591fa3f9ab0e2202b01e661dba | [
"MIT"
] | null | null | null | # Returns data with predicted labels
def predict(clf, data):
predictions = clf.predict(data)
return zip(predictions, data) | 31 | 36 | 0.774194 | 17 | 124 | 5.647059 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 124 | 4 | 37 | 31 | 0.888889 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ee1d92156476db3a34cbffd776171400a89b811 | 1,558 | py | Python | fast_api_learning.py | vonagrut/FastAPI-project | f3eca462efc7bbf6faf2cb0dac491498c22ca03c | [
"MIT"
] | null | null | null | fast_api_learning.py | vonagrut/FastAPI-project | f3eca462efc7bbf6faf2cb0dac491498c22ca03c | [
"MIT"
] | null | null | null | fast_api_learning.py | vonagrut/FastAPI-project | f3eca462efc7bbf6faf2cb0dac491498c22ca03c | [
"MIT"
] | null | null | null | from fastapi import FastAPI, Query, Path, Body
from schemas import Book, Author, BookOut
from typing import List
app = FastAPI()
# @app.get('/')
# def home():
# return {"key": "some_text"}
# @app.get('/{pk}')
# def get_item(pk: int, q: str = None):
# return {"key": pk, "q": q}
# @app.get('/user/{pk}/ite... | 29.396226 | 136 | 0.64249 | 228 | 1,558 | 4.307018 | 0.324561 | 0.03666 | 0.016293 | 0.034623 | 0.04277 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009245 | 0.166881 | 1,558 | 53 | 137 | 29.396226 | 0.747304 | 0.796534 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 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 |
94a32301c526df226566d6e899b4d363602cdcab | 316 | py | Python | instance.py | theGreenJedi/practicepy | 330da97b0c79c3c8792ebb4166ecf2609545e127 | [
"MIT"
] | null | null | null | instance.py | theGreenJedi/practicepy | 330da97b0c79c3c8792ebb4166ecf2609545e127 | [
"MIT"
] | null | null | null | instance.py | theGreenJedi/practicepy | 330da97b0c79c3c8792ebb4166ecf2609545e127 | [
"MIT"
] | null | null | null | from Bird import *
print( '\nClass Instances Of:\n' , Bird.__doc__ )
polly = Bird( 'Squawk, squawk!' )
print( '\nNumber Of Birds:' , polly.count )
print( 'Polly Says:' , polly.talk() )
harry = Bird( 'Tweet, tweet!' )
print( '\nNumber Of Birds:' , harry.count )
print( 'Harry Says:' , harry.talk() )
| 24.307692 | 50 | 0.607595 | 41 | 316 | 4.609756 | 0.463415 | 0.126984 | 0.148148 | 0.201058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205696 | 316 | 12 | 51 | 26.333333 | 0.749004 | 0 | 0 | 0 | 0 | 0 | 0.359736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
94a8c8a37ee70ca0d745e49f79ebd65ebeb864bb | 73 | py | Python | bot_base/blacklist/__init__.py | H4ckerxx44/DPY-Bot-Base | f888a2b856f349c826cd52a7c6105d947181dba9 | [
"MIT"
] | null | null | null | bot_base/blacklist/__init__.py | H4ckerxx44/DPY-Bot-Base | f888a2b856f349c826cd52a7c6105d947181dba9 | [
"MIT"
] | null | null | null | bot_base/blacklist/__init__.py | H4ckerxx44/DPY-Bot-Base | f888a2b856f349c826cd52a7c6105d947181dba9 | [
"MIT"
] | null | null | null | from .blacklist import BlacklistManager
__all__ = ("BlacklistManager",)
| 18.25 | 39 | 0.794521 | 6 | 73 | 9 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 73 | 3 | 40 | 24.333333 | 0.830769 | 0 | 0 | 0 | 0 | 0 | 0.219178 | 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 |
94be310ff073c43bcf36f0b7b7312c13e72891f8 | 22 | py | Python | lib/od/navigator/__init__.py | ZimCodes/Zyod | 5f9e2138cef01930fdf8d29269495f862c183ccb | [
"MIT"
] | 1 | 2022-03-19T19:12:58.000Z | 2022-03-19T19:12:58.000Z | lib/od/navigator/__init__.py | ZimCodes/Zyod | 5f9e2138cef01930fdf8d29269495f862c183ccb | [
"MIT"
] | 1 | 2022-03-23T12:21:28.000Z | 2022-03-24T02:18:45.000Z | lib/od/navigator/__init__.py | ZimCodes/Zyod | 5f9e2138cef01930fdf8d29269495f862c183ccb | [
"MIT"
] | null | null | null | __all__ = ['goindex']
| 11 | 21 | 0.636364 | 2 | 22 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0.318182 | 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 |
94c0837b004d2d93e912606184fd361c92cef755 | 516 | py | Python | Meus_dessafios/Exercicios2021/ex109/moeda.py | DiegoSilvaHoffmann/Curso-de-Python | 62824bbd3ed42b256fda77acd49536ec7cf23b29 | [
"MIT"
] | null | null | null | Meus_dessafios/Exercicios2021/ex109/moeda.py | DiegoSilvaHoffmann/Curso-de-Python | 62824bbd3ed42b256fda77acd49536ec7cf23b29 | [
"MIT"
] | null | null | null | Meus_dessafios/Exercicios2021/ex109/moeda.py | DiegoSilvaHoffmann/Curso-de-Python | 62824bbd3ed42b256fda77acd49536ec7cf23b29 | [
"MIT"
] | null | null | null | def aumentar(n=0, taxa=0, formato=False):
a = n + (n * taxa / 100)
return a if formato is False else moeda(a)
def diminuir(n=0, taxa=0, formato=False):
d = n - (n * taxa / 100)
return d if formato is False else moeda(d)
def dobro(n=0, formato=False):
dos = n + n
return dos if formato is Fals... | 22.434783 | 50 | 0.606589 | 92 | 516 | 3.402174 | 0.271739 | 0.031949 | 0.166134 | 0.204473 | 0.536741 | 0.440895 | 0 | 0 | 0 | 0 | 0 | 0.038265 | 0.24031 | 516 | 22 | 51 | 23.454545 | 0.760204 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.071429 | 0.714286 | 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 |
94e2fa98153ba13dc540ceeaccc974886872890f | 873 | py | Python | test_podcastItem.py | jkedra/PodcastMirror | 5dcfbb1d2b3904662b62aa2a7a4e8d8471660b29 | [
"MIT"
] | null | null | null | test_podcastItem.py | jkedra/PodcastMirror | 5dcfbb1d2b3904662b62aa2a7a4e8d8471660b29 | [
"MIT"
] | null | null | null | test_podcastItem.py | jkedra/PodcastMirror | 5dcfbb1d2b3904662b62aa2a7a4e8d8471660b29 | [
"MIT"
] | null | null | null | import unittest
from unittest import TestCase
class TestPodcastItem(TestCase):
def test_initFileNamingScheme(self):
from Podcast import PodcastItem
from bs4 import BeautifulSoup
# Podcast item not properly initialized,
# looks like Tag has wrong __repr__
with open('html/it... | 27.28125 | 48 | 0.632302 | 92 | 873 | 5.902174 | 0.478261 | 0.174954 | 0.19337 | 0.184162 | 0.198895 | 0.198895 | 0.198895 | 0.198895 | 0 | 0 | 0 | 0.003221 | 0.28866 | 873 | 31 | 49 | 28.16129 | 0.871176 | 0.100802 | 0 | 0.1 | 0 | 0 | 0.029294 | 0 | 0 | 0 | 0 | 0.032258 | 0.25 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.45 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a204bf118e2253b9c4d892702c6828eddce21d59 | 353 | py | Python | tests/test_oven.py | juiceinc/recipe_caching | e84c79676fcb5248495f49f7a39dd4a08bc22b59 | [
"MIT"
] | null | null | null | tests/test_oven.py | juiceinc/recipe_caching | e84c79676fcb5248495f49f7a39dd4a08bc22b59 | [
"MIT"
] | 2 | 2018-01-23T21:22:47.000Z | 2019-11-20T15:15:33.000Z | tests/test_oven.py | juiceinc/recipe_caching | e84c79676fcb5248495f49f7a39dd4a08bc22b59 | [
"MIT"
] | null | null | null | from recipe.oven import get_oven
def test_create_caching_oven():
oven = get_oven('sqlite://', name='caching')
assert oven.engine.driver == 'pysqlite'
assert oven.Session.kw['bind'] == oven.engine
def test_create_caching_oven_no_target():
oven = get_oven(name='caching')
assert oven.engine is None... | 25.214286 | 49 | 0.713881 | 51 | 353 | 4.72549 | 0.431373 | 0.165975 | 0.107884 | 0.165975 | 0.423237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167139 | 353 | 13 | 50 | 27.153846 | 0.819728 | 0 | 0 | 0 | 0 | 0 | 0.09915 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a20be034fa135db299e5c3916c9c3ff99d499280 | 7,846 | py | Python | PhysicsTools/PatAlgos/test/patTuple_addBTagging_cfg.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | PhysicsTools/PatAlgos/test/patTuple_addBTagging_cfg.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | PhysicsTools/PatAlgos/test/patTuple_addBTagging_cfg.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | ## import skeleton process
from PhysicsTools.PatAlgos.patTemplate_cfg import *
## to run in un-scheduled mode uncomment the following lines
process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
patAlgosToolsTask.add(process.patCandidatesTask)
process.load("PhysicsTools.PatAlgos.selectionLayer1.selec... | 43.10989 | 170 | 0.754015 | 505 | 7,846 | 11.687129 | 0.536634 | 0.023721 | 0.015249 | 0.017621 | 0.113521 | 0.092511 | 0.062521 | 0.040156 | 0.019993 | 0.019993 | 0 | 0.011384 | 0.149121 | 7,846 | 181 | 171 | 43.348066 | 0.872678 | 0.248917 | 0 | 0.071942 | 0 | 0 | 0.610844 | 0.562457 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028777 | 0 | 0.028777 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf416402041ae6e6805cb49ba1fecc8437a60a60 | 2,622 | py | Python | test_add_group_2/test_add_group.py | Alex-Chizhov/python_training | 3ef15c36488921e89e71b678673718a428da9c39 | [
"Apache-2.0"
] | null | null | null | test_add_group_2/test_add_group.py | Alex-Chizhov/python_training | 3ef15c36488921e89e71b678673718a428da9c39 | [
"Apache-2.0"
] | null | null | null | test_add_group_2/test_add_group.py | Alex-Chizhov/python_training | 3ef15c36488921e89e71b678673718a428da9c39 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from selenium.webdriver.firefox.webdriver import WebDriver
from group import Group
import unittest
def is_alert_present(wd):
try:
wd.switch_to_alert().text
return True
except:
return False
class test_add_group(unittest.TestCase):
def setUp(self):
se... | 30.847059 | 77 | 0.651793 | 364 | 2,622 | 4.348901 | 0.222527 | 0.083386 | 0.18067 | 0.208465 | 0.550221 | 0.506633 | 0.42451 | 0.203411 | 0.166772 | 0.166772 | 0 | 0.005794 | 0.210145 | 2,622 | 84 | 78 | 31.214286 | 0.758571 | 0.032799 | 0 | 0.169492 | 0 | 0 | 0.098419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169492 | false | 0.101695 | 0.050847 | 0 | 0.271186 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bf4e9e26015e3396b5d050a03710c43c4215ab73 | 90 | py | Python | chat_app/apps.py | ravikiranb36/chat-app | c75558c6773af1d0e118dd8097d21f97404d8c9b | [
"MIT"
] | 1 | 2021-02-28T01:20:08.000Z | 2021-02-28T01:20:08.000Z | chat_app/apps.py | ravikiranb36/chat-app | c75558c6773af1d0e118dd8097d21f97404d8c9b | [
"MIT"
] | 24 | 2020-04-17T13:07:11.000Z | 2022-01-22T11:32:52.000Z | chat_app/apps.py | jealuna/DjangoChat | 764d35873f20fa4efbe7fc7678a5323d41773125 | [
"MIT"
] | 3 | 2019-04-22T12:40:10.000Z | 2019-05-09T11:57:55.000Z | from django.apps import AppConfig
class ChatAppConfig(AppConfig):
name = 'chat_app'
| 15 | 33 | 0.755556 | 11 | 90 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 34 | 18 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 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 |
bf5ef6c5ff7f8dec1a48450a99812a395ca8f68a | 203 | py | Python | handlers/users/rules.py | YoshlikMedia/Instagram-Engament | c5685a71cf8f404fd4130545385ded7b4228596c | [
"MIT"
] | null | null | null | handlers/users/rules.py | YoshlikMedia/Instagram-Engament | c5685a71cf8f404fd4130545385ded7b4228596c | [
"MIT"
] | null | null | null | handlers/users/rules.py | YoshlikMedia/Instagram-Engament | c5685a71cf8f404fd4130545385ded7b4228596c | [
"MIT"
] | null | null | null | from aiogram import types
from data.text import text
from loader import dp
@dp.message_handler(commands=['rules'])
async def rules(message: types.Message):
await message.answer(text=text['rules']) | 22.555556 | 44 | 0.763547 | 30 | 203 | 5.133333 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123153 | 203 | 9 | 44 | 22.555556 | 0.865169 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf9c92b02e16abf3fd18b34fad1db473c001aa8a | 208 | py | Python | uploads/models2.py | kaylai/ftir-background-subtract | 1bb767060b467becf2861a4df61c16e5cf1b1271 | [
"MIT"
] | 2 | 2020-06-22T23:05:05.000Z | 2021-07-15T19:05:14.000Z | uploads/models2.py | kaylai/ftir-background-subtract | 1bb767060b467becf2861a4df61c16e5cf1b1271 | [
"MIT"
] | 2 | 2020-06-05T18:43:07.000Z | 2020-06-05T20:11:00.000Z | uploads/models2.py | kaylai/ftir-background-subtract | 1bb767060b467becf2861a4df61c16e5cf1b1271 | [
"MIT"
] | 1 | 2017-11-13T21:22:58.000Z | 2017-11-13T21:22:58.000Z | from django.db import models
# Create your models here.
class Document(models.Model):
document = models.FileField(upload_to='documents/')
class PostForm(forms.ModelForm):
class Meta:
model = Post
| 20.8 | 52 | 0.740385 | 27 | 208 | 5.666667 | 0.740741 | 0.183007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158654 | 208 | 9 | 53 | 23.111111 | 0.874286 | 0.115385 | 0 | 0 | 0 | 0 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
bfc11f323b54a24a2fb30a092d5c581c21935a33 | 865 | py | Python | Python3/1313.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/1313.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/1313.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 52 ms submission
class Solution:
def decompressRLElist(self, nums: List[int]) -> List[int]:
out_lst = []
for i in range(0,len(nums),2):
# val = nums[i + 1]
out_lst += [num... | 37.608696 | 98 | 0.667052 | 78 | 865 | 3.589744 | 0.384615 | 0.089286 | 0.121429 | 0.178571 | 0.478571 | 0.478571 | 0.478571 | 0.478571 | 0.478571 | 0.478571 | 0 | 0.018349 | 0.243931 | 865 | 22 | 99 | 39.318182 | 0.409786 | 0.019653 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfc34e60a9ca69c19d05d0c1ae8b5d144dc2080b | 65 | py | Python | amigrations/__init__.py | sergeyglazyrindev/amigrations | 24f4e657cd5f73f62e64fcab566a5ed228b26f57 | [
"MIT"
] | null | null | null | amigrations/__init__.py | sergeyglazyrindev/amigrations | 24f4e657cd5f73f62e64fcab566a5ed228b26f57 | [
"MIT"
] | null | null | null | amigrations/__init__.py | sergeyglazyrindev/amigrations | 24f4e657cd5f73f62e64fcab566a5ed228b26f57 | [
"MIT"
] | null | null | null | from .migrations import AMigrations
__all__ = ['AMigrations', ]
| 16.25 | 35 | 0.753846 | 6 | 65 | 7.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 65 | 3 | 36 | 21.666667 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 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 |
bfcfeb8e727294ec34c0ea776144f4212b82e117 | 1,430 | py | Python | src/sima/simo/blueprints/volumeboxitem.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/simo/blueprints/volumeboxitem.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/simo/blueprints/volumeboxitem.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | #
# Generated with VolumeBoxItemBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from .volumemassportion import VolumeMassPortionBlueprint
class Volu... | 62.173913 | 147 | 0.745455 | 159 | 1,430 | 6.622642 | 0.377358 | 0.119658 | 0.17094 | 0.165242 | 0.251662 | 0.169041 | 0.089269 | 0.089269 | 0 | 0 | 0 | 0.005512 | 0.111888 | 1,430 | 23 | 148 | 62.173913 | 0.823622 | 0.025874 | 0 | 0 | 1 | 0 | 0.25 | 0.018064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.444444 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
44a1c636632579c2ca95ada054436ae32f03aa9f | 208 | py | Python | 070-c-call-function.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | 5 | 2019-07-25T13:54:44.000Z | 2021-02-05T12:16:53.000Z | 070-c-call-function.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | null | null | null | 070-c-call-function.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | null | null | null | # Add the missing function call
uniforms = {'Thelma': '4', 'Twi': '21', 'Dottie': '9'}
thelma_number = uniforms['Thelma']
twi_number = uniforms['Twi']
sum = thelma_number + twi_number
print(sum)
| 20.8 | 54 | 0.644231 | 27 | 208 | 4.814815 | 0.555556 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023669 | 0.1875 | 208 | 9 | 55 | 23.111111 | 0.745562 | 0.139423 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
44a4b14ec418137c57a6a7aa87e9d8bc53e0c71c | 48 | py | Python | src/models/GPT_3/apps/test/tt.py | icycookies/dd_benchmark | 5551c0654d3dc30d72b817096d0877a02f28f116 | [
"MIT"
] | 2 | 2021-08-01T13:02:41.000Z | 2021-08-01T14:39:44.000Z | src/models/GPT_3/apps/test/tt.py | icycookies/dd_benchmark | 5551c0654d3dc30d72b817096d0877a02f28f116 | [
"MIT"
] | null | null | null | src/models/GPT_3/apps/test/tt.py | icycookies/dd_benchmark | 5551c0654d3dc30d72b817096d0877a02f28f116 | [
"MIT"
] | 1 | 2021-08-01T14:39:45.000Z | 2021-08-01T14:39:45.000Z | a = "gg<n>gg"
b = a.replace("<n>","\n")
print(b) | 16 | 25 | 0.479167 | 11 | 48 | 2.090909 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 48 | 3 | 26 | 16 | 0.547619 | 0 | 0 | 0 | 0 | 0 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
44b53a9d8f9bfd962fa857f5439b4c821e2d518d | 111 | py | Python | src/kblue/services/exceptions.py | tulare/kblue | 731aa3c4600f3b7c0e53efb51075335ca266b665 | [
"MIT"
] | null | null | null | src/kblue/services/exceptions.py | tulare/kblue | 731aa3c4600f3b7c0e53efb51075335ca266b665 | [
"MIT"
] | null | null | null | src/kblue/services/exceptions.py | tulare/kblue | 731aa3c4600f3b7c0e53efb51075335ca266b665 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
__all__ = [ 'DBusSessionError' ]
class DBusSessionError(BaseException) :
pass
| 13.875 | 39 | 0.657658 | 9 | 111 | 7.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.189189 | 111 | 7 | 40 | 15.857143 | 0.755556 | 0.207207 | 0 | 0 | 0 | 0 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
44ba8d1229147ce79c9437d558d6d6577866d9e7 | 361 | py | Python | Exercise-5/answer.py | TechPenguineer/Python-Exercises | d269ee9cc9452e275e07d8c6d976c2513aa490be | [
"Unlicense"
] | 4 | 2021-08-04T23:59:55.000Z | 2021-08-05T12:50:47.000Z | Exercise-5/answer.py | TechPenguineer/Python-Exercises | d269ee9cc9452e275e07d8c6d976c2513aa490be | [
"Unlicense"
] | null | null | null | Exercise-5/answer.py | TechPenguineer/Python-Exercises | d269ee9cc9452e275e07d8c6d976c2513aa490be | [
"Unlicense"
] | 1 | 2021-08-07T07:40:39.000Z | 2021-08-07T07:40:39.000Z | ### The answer is:
# 26
# The way this works is it makes a function that takes to arguments aka the two terms. It then stores the math equation
# ValueOne+ValueTwo in a variable called sum. When we return the sum using 'return sum' that makes it so you can store
# the functions output in a variable. The value that w... | 51.571429 | 120 | 0.756233 | 67 | 361 | 4.074627 | 0.626866 | 0.021978 | 0.080586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.202216 | 361 | 7 | 121 | 51.571429 | 0.940972 | 0.961219 | 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 |
44d910e1df6dfde36dc47db38caf89044d24d3c0 | 243 | py | Python | test/test_pda_management.py | lostinplace/egs-scenario-updater | ed8fcaf6a7f104a8944c9a87ba84686c50c02700 | [
"Apache-2.0"
] | null | null | null | test/test_pda_management.py | lostinplace/egs-scenario-updater | ed8fcaf6a7f104a8944c9a87ba84686c50c02700 | [
"Apache-2.0"
] | null | null | null | test/test_pda_management.py | lostinplace/egs-scenario-updater | ed8fcaf6a7f104a8944c9a87ba84686c50c02700 | [
"Apache-2.0"
] | null | null | null | import unittest
from utils.pda_manager import load_pda_messages
class TestPDAManagement(unittest.TestCase):
def test_loading_messages(self):
messages = load_pda_messages("assets/default-scenario")
self.assertTrue(True)
| 22.090909 | 63 | 0.769547 | 29 | 243 | 6.206897 | 0.689655 | 0.077778 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156379 | 243 | 10 | 64 | 24.3 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0.09465 | 0.09465 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | 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 | 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 |
44d93ab25ff138f6a4422ce9aa3b85d748530dc4 | 179 | py | Python | Mundo 1/ex011.py | othiagomanhaes/Python | 8cfe6d50e31f6c9ff886e3961051cc4cbfb8569e | [
"MIT"
] | null | null | null | Mundo 1/ex011.py | othiagomanhaes/Python | 8cfe6d50e31f6c9ff886e3961051cc4cbfb8569e | [
"MIT"
] | null | null | null | Mundo 1/ex011.py | othiagomanhaes/Python | 8cfe6d50e31f6c9ff886e3961051cc4cbfb8569e | [
"MIT"
] | null | null | null | h = float(input('Qual é a altura da parede? '))
l = float(input('Qual é a largura da parede? '))
a = h * l
t = a / 2
print('Eu vou precisar de {:.1f} litros de tinta.'.format(t))
| 29.833333 | 61 | 0.620112 | 35 | 179 | 3.171429 | 0.628571 | 0.18018 | 0.252252 | 0.27027 | 0.288288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.201117 | 179 | 5 | 62 | 35.8 | 0.762238 | 0 | 0 | 0 | 0 | 0 | 0.541899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
44dc4e1ca0cfd07e9d2dbf7e0a151d073e308fce | 306 | py | Python | MLibrary/utils.py | Alhuin/MLibrary | b550635c897cf158a5583e6f8bf705438657761a | [
"MIT"
] | null | null | null | MLibrary/utils.py | Alhuin/MLibrary | b550635c897cf158a5583e6f8bf705438657761a | [
"MIT"
] | null | null | null | MLibrary/utils.py | Alhuin/MLibrary | b550635c897cf158a5583e6f8bf705438657761a | [
"MIT"
] | null | null | null | import numpy as np
def euclidean_distance(x1, x2):
return np.sqrt(np.sum((x1 - x2) ** 2))
def sigmoid(x):
return 1 / (1 + np.exp(-x))
def accuracy(true, predicted):
return np.sum(true == predicted) / len(true)
def mse(y_true, y_predicted):
return np.mean((y_true - y_predicted)**2)
| 17 | 48 | 0.637255 | 51 | 306 | 3.72549 | 0.470588 | 0.126316 | 0.178947 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0.199346 | 306 | 17 | 49 | 18 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.444444 | 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 |
44e1af1212f00c57114ceef11d14f2b7ec899ab8 | 32 | py | Python | pyS/config.py | nirvguy/pyS | 23bfaf9dfbecf7649acef67c5df540239dbdbd5b | [
"MIT"
] | null | null | null | pyS/config.py | nirvguy/pyS | 23bfaf9dfbecf7649acef67c5df540239dbdbd5b | [
"MIT"
] | null | null | null | pyS/config.py | nirvguy/pyS | 23bfaf9dfbecf7649acef67c5df540239dbdbd5b | [
"MIT"
] | null | null | null | VERSION='0.1.0'
LIST_LINES = 10
| 10.666667 | 15 | 0.6875 | 7 | 32 | 3 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 0.125 | 32 | 2 | 16 | 16 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 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 |
44e3ed1ff1bef464772ade7a36d0be8d85ca9d48 | 1,364 | py | Python | src/anoapycore/chart/precision_recall/__init__.py | ah4d1/anoapycore | b530a7fd97e0f97659b3936733db8bc906efaa3e | [
"BSD-3-Clause"
] | null | null | null | src/anoapycore/chart/precision_recall/__init__.py | ah4d1/anoapycore | b530a7fd97e0f97659b3936733db8bc906efaa3e | [
"BSD-3-Clause"
] | null | null | null | src/anoapycore/chart/precision_recall/__init__.py | ah4d1/anoapycore | b530a7fd97e0f97659b3936733db8bc906efaa3e | [
"BSD-3-Clause"
] | null | null | null | import matplotlib.pyplot as __plt
import numpy as __np
import anoapycore as __ap
def show (a_model) :
loc_precisions = a_model.data.prc_precisions
loc_recalls = a_model.data.prc_recalls
loc_ix = __np.argmax(a_model.data.prc_fscores)
loc_plot = __plt.figure()
__plt.plot(loc_recalls,loc_precis... | 31.72093 | 101 | 0.744135 | 210 | 1,364 | 4.390476 | 0.228571 | 0.149675 | 0.119306 | 0.155098 | 0.440347 | 0.318872 | 0.318872 | 0.173536 | 0.173536 | 0.173536 | 0 | 0 | 0.126833 | 1,364 | 42 | 102 | 32.47619 | 0.774139 | 0 | 0 | 0 | 0 | 0 | 0.071114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.1 | 0.233333 | 0.633333 | 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 |
781358c4b726ee2c6a5dc44f70bd40dfd1775dc9 | 637 | py | Python | test/stream/test_stream_shuffle_skewedsync.py | jingjieli95/UnarySim | 775b38fa2d6b05a69fd73acb4766e50200a5cc37 | [
"MIT"
] | 17 | 2020-04-26T19:38:03.000Z | 2022-02-23T02:05:08.000Z | test/stream/test_stream_shuffle_skewedsync.py | pan185/UnarySim | c03386efdbb8151f3c33f34b44d1d6a6fc960434 | [
"MIT"
] | 3 | 2021-11-03T18:20:29.000Z | 2022-02-11T16:30:16.000Z | test/stream/test_stream_shuffle_skewedsync.py | pan185/UnarySim | c03386efdbb8151f3c33f34b44d1d6a6fc960434 | [
"MIT"
] | 9 | 2019-12-03T05:08:55.000Z | 2022-01-04T20:24:55.000Z | # %%
import torch
import UnarySim
from UnarySim.stream.shuffle import SkewedSync
# %%
ss = SkewedSync(depth=3).cuda()
# %%
print(ss.cnt)
# %%
a = torch.tensor([[0, 0]]).type(torch.float)
b = torch.tensor([[1, 1]]).type(torch.float)
# %%
a = torch.tensor([[1, 1]]).type(torch.float)
b = torch.tensor([[0, 0]]).type(t... | 12.74 | 46 | 0.572998 | 99 | 637 | 3.686869 | 0.20202 | 0.241096 | 0.306849 | 0.142466 | 0.616438 | 0.616438 | 0.616438 | 0.616438 | 0.616438 | 0.616438 | 0 | 0.031481 | 0.152276 | 637 | 49 | 47 | 13 | 0.644444 | 0.059655 | 0 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.263158 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
781cfc11024bb81bf789557b1d57d1e024332694 | 124 | py | Python | Recursion/fibonacci.py | shubh2ds/DSA_Python | bf7dbb5560494e9d18b58e05ba9a51b97e25b332 | [
"MIT"
] | 1 | 2021-10-15T11:23:36.000Z | 2021-10-15T11:23:36.000Z | Recursion/fibonacci.py | shubh2ds/Data-Structures-and-Algorithms-Python | bf7dbb5560494e9d18b58e05ba9a51b97e25b332 | [
"MIT"
] | null | null | null | Recursion/fibonacci.py | shubh2ds/Data-Structures-and-Algorithms-Python | bf7dbb5560494e9d18b58e05ba9a51b97e25b332 | [
"MIT"
] | null | null | null | def fibonacci(n):
if n==1 or n==2:
return 1
return fibonacci(n-1)+fibonacci(n-2)
n=3 #0,1,1,2,3,5,..
fibonacci(n)
| 15.5 | 38 | 0.596774 | 28 | 124 | 2.642857 | 0.392857 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 0.185484 | 124 | 7 | 39 | 17.714286 | 0.613861 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7838d5c17ad2917f2ccccb6a59adbca7b8e0118e | 293 | py | Python | tests/test_solvers.py | cswartzvi/conda | b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137 | [
"BSD-3-Clause"
] | null | null | null | tests/test_solvers.py | cswartzvi/conda | b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137 | [
"BSD-3-Clause"
] | 3 | 2022-03-03T02:36:53.000Z | 2022-03-03T02:42:50.000Z | tests/test_solvers.py | cswartzvi/conda | b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from conda.core.solve import Solver
from conda.testing.solver_helpers import SolverTests
class TestClassicSolver(SolverTests):
@property
def solver_class(self):
return Solver
| 22.538462 | 52 | 0.733788 | 37 | 293 | 5.756757 | 0.783784 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02449 | 0.163823 | 293 | 12 | 53 | 24.416667 | 0.844898 | 0.313993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 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 |
783b94d3456785f45b925b39edd39a18ded403b9 | 219 | py | Python | learn/math/__init__.py | ehannesson/learn | c47325cdcd8820fda1aeb0d23e971990c68612d6 | [
"MIT"
] | null | null | null | learn/math/__init__.py | ehannesson/learn | c47325cdcd8820fda1aeb0d23e971990c68612d6 | [
"MIT"
] | null | null | null | learn/math/__init__.py | ehannesson/learn | c47325cdcd8820fda1aeb0d23e971990c68612d6 | [
"MIT"
] | null | null | null | # __init__.py
# make math fundamentals child classes directly available
from learn.math._fundamental_exercises import (
AdditionExercise,
SubtractionExercise,
MultiplicationExercise,
DivisionExercise
)
| 21.9 | 57 | 0.789954 | 19 | 219 | 8.789474 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 219 | 9 | 58 | 24.333333 | 0.912568 | 0.305936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
78424559a45de2afe9f3f558f698572ea8763480 | 447 | py | Python | api_project/webapp/views.py | Neeraj2701/numpy | bbc3167427eb8ecafeee3c5c9606b3532405dd96 | [
"BSD-3-Clause"
] | null | null | null | api_project/webapp/views.py | Neeraj2701/numpy | bbc3167427eb8ecafeee3c5c9606b3532405dd96 | [
"BSD-3-Clause"
] | null | null | null | api_project/webapp/views.py | Neeraj2701/numpy | bbc3167427eb8ecafeee3c5c9606b3532405dd96 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import get_object_or_404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from webapp.models import employee
from webapp.serializers import employeeSerializer
class employeeList(APIView):
def get(self,request):
emp1=emplo... | 23.526316 | 49 | 0.825503 | 59 | 447 | 6.152542 | 0.576271 | 0.066116 | 0.140496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012594 | 0.111857 | 447 | 18 | 50 | 24.833333 | 0.901763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.461538 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
7879bc20ea3c3000fff3352e0981e27365d908d8 | 12,024 | py | Python | app/service/service.py | hollanditnet/fastocloud_admin | 1cef8646de63e1c0e42f3d6b85d3bffae7419ab0 | [
"BSD-3-Clause"
] | null | null | null | app/service/service.py | hollanditnet/fastocloud_admin | 1cef8646de63e1c0e42f3d6b85d3bffae7419ab0 | [
"BSD-3-Clause"
] | null | null | null | app/service/service.py | hollanditnet/fastocloud_admin | 1cef8646de63e1c0e42f3d6b85d3bffae7419ab0 | [
"BSD-3-Clause"
] | null | null | null | from bson.objectid import ObjectId
from app.common.stream.entry import IStream, ProxyStream, EncodeStream, RelayStream, TimeshiftRecorderStream, \
CatchupStream, TimeshiftPlayerStream, TestLifeStream, VodRelayStream, VodEncodeStream, ProxyVodStream, \
CodRelayStream, CodEncodeStream
from pyfastocloud.client_co... | 32.409704 | 116 | 0.667166 | 1,402 | 12,024 | 5.393723 | 0.122682 | 0.072732 | 0.035176 | 0.034911 | 0.274398 | 0.209468 | 0.190294 | 0.163317 | 0.163317 | 0.152737 | 0 | 0.001098 | 0.242598 | 12,024 | 370 | 117 | 32.497297 | 0.829252 | 0.004574 | 0 | 0.188811 | 0 | 0 | 0.025913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234266 | false | 0.003497 | 0.020979 | 0.143357 | 0.559441 | 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 |
787fa6c77d024aabc8f5e1b220cd02dade799a9c | 967 | py | Python | CSCE/OtherProjects/Clothes.py | bgrose/TeachingPython | 206cefe9056fc2e6efb35749aee3fefa6ec747fd | [
"Apache-2.0"
] | 1 | 2020-06-14T01:44:44.000Z | 2020-06-14T01:44:44.000Z | CSCE/OtherProjects/Clothes.py | bgrose/TeachingPython | 206cefe9056fc2e6efb35749aee3fefa6ec747fd | [
"Apache-2.0"
] | null | null | null | CSCE/OtherProjects/Clothes.py | bgrose/TeachingPython | 206cefe9056fc2e6efb35749aee3fefa6ec747fd | [
"Apache-2.0"
] | null | null | null | class Shirt:
def __init__(self):
self.size = input("Enter the shirt size: ")
self.color = input("Enter the shirts color: ")
self.name = input("Enter the Shirt name: ")
def __str__(self):
ret = "SHIRT\nSize: {}\nColor: {}\nName: {}\n".format(self.size, self.color, self.n... | 40.291667 | 99 | 0.574974 | 122 | 967 | 4.360656 | 0.221311 | 0.150376 | 0.195489 | 0.084586 | 0.539474 | 0.195489 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277146 | 967 | 23 | 100 | 42.043478 | 0.761087 | 0 | 0 | 0.391304 | 0 | 0 | 0.32575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
78a3b5b119d34b79e57ba16a3dc053cfa5d91bce | 115 | py | Python | partII/solutions/ex02.py | aavedisyan/microct | 7a41b7b31d3721bd06fd665725133dd6d408de34 | [
"CC0-1.0"
] | 1 | 2021-02-26T18:21:16.000Z | 2021-02-26T18:21:16.000Z | partII/solutions/ex02.py | aavedisyan/microct | 7a41b7b31d3721bd06fd665725133dd6d408de34 | [
"CC0-1.0"
] | 1 | 2019-11-04T05:10:21.000Z | 2019-11-04T20:56:04.000Z | partII/solutions/ex02.py | aavedisyan/microct | 7a41b7b31d3721bd06fd665725133dd6d408de34 | [
"CC0-1.0"
] | 3 | 2019-11-13T02:28:28.000Z | 2020-03-06T19:30:54.000Z | #create a downsampled mean projection with 1/3 total number of pixels
plt.imshow(IM_MEAN[::3,::3],vmin=0,vmax=255)
| 38.333333 | 69 | 0.756522 | 22 | 115 | 3.909091 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 0.104348 | 115 | 2 | 70 | 57.5 | 0.757282 | 0.591304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
78c14e83b6d688c92b26db9ffda9666848e0fde7 | 271 | py | Python | TaskQuery.py | ilovrencic/COVID-19-Information-Retrieval-Project | c81bf821336a33c1c9e4c21fc3168d59ce8ada37 | [
"MIT"
] | null | null | null | TaskQuery.py | ilovrencic/COVID-19-Information-Retrieval-Project | c81bf821336a33c1c9e4c21fc3168d59ce8ada37 | [
"MIT"
] | null | null | null | TaskQuery.py | ilovrencic/COVID-19-Information-Retrieval-Project | c81bf821336a33c1c9e4c21fc3168d59ce8ada37 | [
"MIT"
] | null | null | null | questions = ['What is known about Covid-19 transmission?',
'What is known about Covid-19 incubation?',
'What is known about Covid-19 environmental stability?']
class TaskQuery:
@staticmethod
def questions():
return questions
| 24.636364 | 69 | 0.645756 | 30 | 271 | 5.833333 | 0.533333 | 0.102857 | 0.188571 | 0.274286 | 0.394286 | 0.394286 | 0 | 0 | 0 | 0 | 0 | 0.030457 | 0.273063 | 271 | 10 | 70 | 27.1 | 0.857868 | 0 | 0 | 0 | 0 | 0 | 0.498155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 3 |
1520c7f3290bfebe28b7dd9ce5fea31180669f55 | 902 | py | Python | python/functions/localstate.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | 1 | 2022-03-30T12:59:44.000Z | 2022-03-30T12:59:44.000Z | python/functions/localstate.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | null | null | null | python/functions/localstate.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | 3 | 2019-08-13T11:33:36.000Z | 2022-03-08T22:00:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (division, absolute_import, print_function,
unicode_literals, annotations)
def get_speak_func(text, volume):
def whisper():
return text.lower() + '...'
def yell():
return text.upper() + '!'
if v... | 17.018868 | 66 | 0.576497 | 123 | 902 | 3.926829 | 0.398374 | 0.049689 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027692 | 0.279379 | 902 | 52 | 67 | 17.346154 | 0.715385 | 0.046563 | 0 | 0 | 0 | 0 | 0.0338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.03125 | 0.125 | 0.53125 | 0.28125 | 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 |
153197aa8f849dd164ed7c3a5f5839ea105d7553 | 1,781 | py | Python | bot/bot.py | Kookweb-ir/kook-insta-bot | 959c5e506d6dad4dd81461186d9b529e1eb32a33 | [
"MIT"
] | 2 | 2018-05-17T06:59:14.000Z | 2018-07-05T21:30:20.000Z | bot/bot.py | bojbaj/kook-insta-bot | 959c5e506d6dad4dd81461186d9b529e1eb32a33 | [
"MIT"
] | null | null | null | bot/bot.py | bojbaj/kook-insta-bot | 959c5e506d6dad4dd81461186d9b529e1eb32a33 | [
"MIT"
] | null | null | null | import requests
import time
import random
from .login import login, reload_session, is_logged_in
from .media_by_tag import get_media_id_by_tag
from .likes_of_media import get_likes_of_media_graphQL
from .comments_of_media import get_comments_of_media
from .follow import follow
from .unfollow import unfollow
from .like ... | 27.828125 | 76 | 0.690623 | 260 | 1,781 | 4.430769 | 0.207692 | 0.090278 | 0.086806 | 0.065972 | 0.319444 | 0.270833 | 0.199653 | 0.161458 | 0.161458 | 0.088542 | 0 | 0.00144 | 0.220101 | 1,781 | 63 | 77 | 28.269841 | 0.827934 | 0.03032 | 0 | 0.045455 | 0 | 0 | 0.008202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.045455 | 0.25 | 0.181818 | 0.795455 | 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 |
15374bca218fd4003c556e79f686b9ec8196ee09 | 194 | py | Python | BaseLogic/base.py | jonieson/pythonDemo | fde358819a43c67044b30b886c9f7dbe840d9563 | [
"MIT"
] | 1 | 2017-08-10T08:04:48.000Z | 2017-08-10T08:04:48.000Z | BaseLogic/base.py | jonieson/pythonDemo | fde358819a43c67044b30b886c9f7dbe840d9563 | [
"MIT"
] | null | null | null | BaseLogic/base.py | jonieson/pythonDemo | fde358819a43c67044b30b886c9f7dbe840d9563 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
string = 'iloveyou'
# 根据下标截取字符串
print(string[1:5])
dic = {'name':'waga','height':150,'weight':200,'avatar':'https://www.baidu.com'}
print(dic.keys())
print(dic.values()) | 24.25 | 80 | 0.634021 | 28 | 194 | 4.392857 | 0.821429 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050562 | 0.082474 | 194 | 8 | 81 | 24.25 | 0.640449 | 0.159794 | 0 | 0 | 0 | 0 | 0.341615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 |
153c26f7977eab7c1b2faaecd579126d62b49d5f | 2,556 | py | Python | cloudrail/knowledge/context/aws/iam/iam_user.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | cloudrail/knowledge/context/aws/iam/iam_user.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | cloudrail/knowledge/context/aws/iam/iam_user.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | from typing import Dict, List, Optional
from cloudrail.knowledge.context.aws.service_name import AwsServiceName
from cloudrail.knowledge.utils.utils import flat_list
from cloudrail.knowledge.context.aws.iam.iam_group import IamGroup
from cloudrail.knowledge.context.aws.iam.iam_identity import IamIdentity
from cloudrai... | 37.588235 | 116 | 0.668232 | 342 | 2,556 | 4.766082 | 0.266082 | 0.025767 | 0.067485 | 0.071166 | 0.158896 | 0.1 | 0.078528 | 0 | 0 | 0 | 0 | 0.002031 | 0.229656 | 2,556 | 67 | 117 | 38.149254 | 0.8258 | 0.105243 | 0 | 0 | 0 | 0 | 0.031881 | 0.014818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.136364 | 0.204545 | 0.704545 | 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 |
154b132534f3bf3ca5d8758c6a9fbc83a661f6fa | 221 | py | Python | examples/tutorials/plot_ecg_pipeline.py | bahp/vital_sqi | 4465f17a372dc6d4412ce179a52ef688af97e88e | [
"MIT"
] | null | null | null | examples/tutorials/plot_ecg_pipeline.py | bahp/vital_sqi | 4465f17a372dc6d4412ce179a52ef688af97e88e | [
"MIT"
] | null | null | null | examples/tutorials/plot_ecg_pipeline.py | bahp/vital_sqi | 4465f17a372dc6d4412ce179a52ef688af97e88e | [
"MIT"
] | null | null | null | """
ECG Pipeline
====================
.. warning:: Include code to show how to create a pipeline to
clean an ecg signal. It is probably in one of the
jupyter notebooks (maybe ecg_qc.ipynb).
""" | 24.555556 | 62 | 0.574661 | 30 | 221 | 4.2 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266968 | 221 | 9 | 63 | 24.555556 | 0.777778 | 0.959276 | 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 |
154bb9e018849ca2229bd63598a3f0edb96f7d0d | 824 | py | Python | models/schemas.py | tappitikarrass/flask-ap | 88b97bb522474ca3dc056c209640050af74cb5dc | [
"BSD-3-Clause"
] | null | null | null | models/schemas.py | tappitikarrass/flask-ap | 88b97bb522474ca3dc056c209640050af74cb5dc | [
"BSD-3-Clause"
] | null | null | null | models/schemas.py | tappitikarrass/flask-ap | 88b97bb522474ca3dc056c209640050af74cb5dc | [
"BSD-3-Clause"
] | null | null | null | from marshmallow import (Schema, fields)
class UserSchema(Schema):
user_id = fields.Integer()
username = fields.String()
firstname = fields.String()
lastname = fields.String()
email = fields.String()
phone = fields.String()
password = fields.String()
class ListSchema(Schema):
list_id =... | 24.969697 | 40 | 0.673544 | 94 | 824 | 5.808511 | 0.351064 | 0.263736 | 0.21978 | 0.104396 | 0.188645 | 0.124542 | 0.124542 | 0 | 0 | 0 | 0 | 0 | 0.201456 | 824 | 32 | 41 | 25.75 | 0.829787 | 0 | 0 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037037 | 0.037037 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
155836aaecc1ad64c2e8cd367fe700352349a8f8 | 574 | py | Python | nlpipe/Tools/test_upper.py | farzamfan/NLP-Pipeline | 5efa6dd74c37edd2d1e0a79fffe41aed15dc20d7 | [
"MIT"
] | 1 | 2022-01-15T14:00:49.000Z | 2022-01-15T14:00:49.000Z | nlpipe/Tools/test_upper.py | farzamfan/NLP-Pipeline | 5efa6dd74c37edd2d1e0a79fffe41aed15dc20d7 | [
"MIT"
] | null | null | null | nlpipe/Tools/test_upper.py | farzamfan/NLP-Pipeline | 5efa6dd74c37edd2d1e0a79fffe41aed15dc20d7 | [
"MIT"
] | null | null | null | """
Trivial test module that converts to upper case
"""
from nlpipe.Tools.toolsInterface import Tool
import json
class TestUpper(Tool):
name = "test_upper"
def check_status(self):
pass
def process(self, text):
return text.upper() # converts text to uppercase
def convert(self, doc_... | 22.96 | 83 | 0.663763 | 74 | 574 | 5.027027 | 0.540541 | 0.040323 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224739 | 574 | 24 | 84 | 23.916667 | 0.835955 | 0.188153 | 0 | 0 | 0 | 0 | 0.074398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.153846 | 0.076923 | 0.692308 | 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 |
155e27a69883e0d5ee9316831f7fa60cf588b31c | 515 | py | Python | Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdSiStripHitEfficiency_Output_cff.py | giovanni-mocellin/cmssw | 39e1d09c940328d56e45274a7890195c293e99e5 | [
"Apache-2.0"
] | null | null | null | Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdSiStripHitEfficiency_Output_cff.py | giovanni-mocellin/cmssw | 39e1d09c940328d56e45274a7890195c293e99e5 | [
"Apache-2.0"
] | null | null | null | Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdSiStripHitEfficiency_Output_cff.py | giovanni-mocellin/cmssw | 39e1d09c940328d56e45274a7890195c293e99e5 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
OutALCARECOPromptCalibProdSiStripHitEfficiency_noDrop = cms.PSet(
SelectEvents = cms.untracked.PSet(
SelectEvents = cms.vstring('pathALCARECOPromptCalibProdSiStripHitEfficiency')),
outputCommands = cms.untracked.vstring('keep *_MEtoEDMConvertSiStripHitEff_*_*'))... | 51.5 | 110 | 0.842718 | 33 | 515 | 13 | 0.606061 | 0.242424 | 0.088578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00211 | 0.079612 | 515 | 9 | 111 | 57.222222 | 0.902954 | 0 | 0 | 0 | 0 | 0 | 0.176699 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 1 | 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 |
15622e04384d365bda39342a34207769adca7af5 | 58 | py | Python | timeme/__init__.py | jimmyprior/Time-Me | d79e793f121356e1605f29d97ae4761bedb454f9 | [
"MIT"
] | null | null | null | timeme/__init__.py | jimmyprior/Time-Me | d79e793f121356e1605f29d97ae4761bedb454f9 | [
"MIT"
] | null | null | null | timeme/__init__.py | jimmyprior/Time-Me | d79e793f121356e1605f29d97ae4761bedb454f9 | [
"MIT"
] | null | null | null | from .timeblock import TimeStorage
TIMERS = TimeStorage() | 19.333333 | 34 | 0.810345 | 6 | 58 | 7.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 58 | 3 | 35 | 19.333333 | 0.921569 | 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 |
156da1657f0c495cb31d8bfc6c86c8e860c7fcb7 | 2,629 | py | Python | resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QGraphicsEffect.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | 1 | 2020-04-20T02:27:20.000Z | 2020-04-20T02:27:20.000Z | resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QGraphicsEffect.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QGraphicsEffect.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | # encoding: utf-8
# module PySide.QtGui
# from C:\Python27\lib\site-packages\PySide\QtGui.pyd
# by generator 1.147
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
import Shiboken as __Shiboken
class QGraphicsEffect(__PySide_QtCore.QObject):
# no doc
def boundingRect(self, *args, **kwargs): # real ... | 35.053333 | 106 | 0.699886 | 275 | 2,629 | 6.589091 | 0.294545 | 0.107616 | 0.165563 | 0.139073 | 0.371413 | 0.360927 | 0.342163 | 0.321192 | 0 | 0 | 0 | 0.010921 | 0.198935 | 2,629 | 74 | 107 | 35.527027 | 0.849478 | 0.322936 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.044444 | 0 | 0.644444 | 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 |
ec5d4684175787b304b6552656d573550bb250f8 | 215 | py | Python | napari/utils/events/containers/__init__.py | mkitti/napari | 4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86 | [
"BSD-3-Clause"
] | 1 | 2022-03-01T19:38:06.000Z | 2022-03-01T19:38:06.000Z | napari/utils/events/containers/__init__.py | mkitti/napari | 4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86 | [
"BSD-3-Clause"
] | 17 | 2020-06-11T21:02:03.000Z | 2021-02-02T19:10:19.000Z | napari/utils/events/containers/__init__.py | mkitti/napari | 4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86 | [
"BSD-3-Clause"
] | null | null | null | from ._evented_list import EventedList
from ._nested_list import NestableEventedList
from ._typed import TypedMutableSequence
__all__ = [
'EventedList',
'NestableEventedList',
'TypedMutableSequence',
]
| 21.5 | 45 | 0.781395 | 18 | 215 | 8.833333 | 0.555556 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148837 | 215 | 9 | 46 | 23.888889 | 0.868852 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
ec6d63853383c8922eb7cfbf510a9d657b9b86af | 1,676 | py | Python | backend/mock_blue_alliance/__init__.py | mabaums/frc-scout | 4279c05f35065731e840d7826f5339d7ead43e56 | [
"Apache-2.0"
] | null | null | null | backend/mock_blue_alliance/__init__.py | mabaums/frc-scout | 4279c05f35065731e840d7826f5339d7ead43e56 | [
"Apache-2.0"
] | null | null | null | backend/mock_blue_alliance/__init__.py | mabaums/frc-scout | 4279c05f35065731e840d7826f5339d7ead43e56 | [
"Apache-2.0"
] | null | null | null | import json
import os
class MockBlueAlliance:
def __init__(self, root=None):
if root is None:
self.__root__ = __path__[0]
else:
self.__root__ = root
def __load__(self, file_name):
file_path = os.path.join(self.__root__, file_name)
with open(file_path, "... | 30.472727 | 74 | 0.606802 | 223 | 1,676 | 4.116592 | 0.264574 | 0.052288 | 0.061002 | 0.062092 | 0.309368 | 0.275599 | 0.054466 | 0 | 0 | 0 | 0 | 0.008313 | 0.28222 | 1,676 | 54 | 75 | 31.037037 | 0.75478 | 0 | 0 | 0 | 0 | 0 | 0.091885 | 0.026253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.071429 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec81cf7bb472895891b6f21328d90e1b85c9f23c | 4,413 | py | Python | examples/4_bgv_basics.py | Huelse/pySEAL | 25631fb8f99d5288613fe17558c00b692423e418 | [
"MIT"
] | 26 | 2019-07-17T11:11:43.000Z | 2019-11-07T01:21:58.000Z | examples/4_bgv_basics.py | Huelse/pySEAL | 25631fb8f99d5288613fe17558c00b692423e418 | [
"MIT"
] | 2 | 2019-08-21T16:46:08.000Z | 2019-11-02T01:16:32.000Z | examples/4_bgv_basics.py | Huelse/pySEAL | 25631fb8f99d5288613fe17558c00b692423e418 | [
"MIT"
] | 5 | 2019-08-13T04:20:33.000Z | 2019-10-12T03:37:36.000Z | from seal import *
import numpy as np
def print_vector(vector):
print('[ ', end='')
for i in range(0, 8):
print(vector[i], end=', ')
print('... ]')
def example_bgv_basics():
parms = EncryptionParameters (scheme_type.bgv)
poly_modulus_degree = 8192
parms.set_poly_modulus_degree(poly_mo... | 38.710526 | 116 | 0.727623 | 623 | 4,413 | 4.836276 | 0.157303 | 0.027879 | 0.036508 | 0.04381 | 0.733488 | 0.716893 | 0.71457 | 0.69001 | 0.670096 | 0.638234 | 0 | 0.019634 | 0.157489 | 4,413 | 113 | 117 | 39.053097 | 0.790748 | 0 | 0 | 0.526316 | 0 | 0 | 0.277362 | 0.078858 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021053 | false | 0 | 0.021053 | 0 | 0.042105 | 0.4 | 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 |
ec93ab8ebabcde0538e3c5e5b1bcb0402d109c5b | 421 | py | Python | strings/find-a-string.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | 2 | 2020-05-21T16:18:26.000Z | 2021-11-28T15:44:33.000Z | strings/find-a-string.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | null | null | null | strings/find-a-string.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | 2 | 2020-11-01T00:55:53.000Z | 2021-10-31T16:05:17.000Z | # https://www.hackerrank.com/challenges/find-a-string/problem
def count_substring(string, sub_string):
count = 0
for i in range(len(string)):
if string[i] == sub_string[0]:
if string[i:(i + len(sub_string))] == sub_string:
count += 1
i += len(sub_string) - 1... | 23.388889 | 61 | 0.608076 | 58 | 421 | 4.258621 | 0.413793 | 0.255061 | 0.182186 | 0.186235 | 0.234818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01278 | 0.256532 | 421 | 17 | 62 | 24.764706 | 0.776358 | 0.140143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.090909 | 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 |
ec98772f8780b40eb40f8e6e46f21fc24dfb9618 | 1,273 | py | Python | nfv/nfv-vim/nfv_vim/tables/_volume_snapshot_table.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2020-02-07T19:01:36.000Z | 2022-02-23T01:41:46.000Z | nfv/nfv-vim/nfv_vim/tables/_volume_snapshot_table.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 1 | 2021-01-14T12:02:25.000Z | 2021-01-14T12:02:25.000Z | nfv/nfv-vim/nfv_vim/tables/_volume_snapshot_table.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2021-01-13T08:39:21.000Z | 2022-02-09T00:21:55.000Z | # Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from nfv_vim import database
from nfv_vim.tables._table import Table
_volume_snapshot_table = None
class VolumeSnapshotTable(Table):
"""
Volume Snapshot Table
"""
def __init__(self):
super(VolumeSnap... | 23.145455 | 70 | 0.739199 | 148 | 1,273 | 5.905405 | 0.337838 | 0.352403 | 0.347826 | 0.08238 | 0.161327 | 0.107551 | 0.107551 | 0.107551 | 0 | 0 | 0 | 0.009681 | 0.188531 | 1,273 | 54 | 71 | 23.574074 | 0.836399 | 0.164179 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec9ad457a605ff34589a6a0d446195068bfa255b | 107 | py | Python | examples/templates/list_templates.py | Ometria/python-sparkpost | b7eb2e30effc0d35cf25d7acaa4a5c304c25c9e5 | [
"Apache-2.0"
] | 100 | 2015-02-11T20:07:23.000Z | 2021-10-18T10:27:35.000Z | examples/templates/list_templates.py | Ometria/python-sparkpost | b7eb2e30effc0d35cf25d7acaa4a5c304c25c9e5 | [
"Apache-2.0"
] | 152 | 2015-02-09T01:34:02.000Z | 2021-11-08T17:32:30.000Z | examples/templates/list_templates.py | Ometria/python-sparkpost | b7eb2e30effc0d35cf25d7acaa4a5c304c25c9e5 | [
"Apache-2.0"
] | 79 | 2015-02-14T07:42:17.000Z | 2022-02-25T00:52:28.000Z | from sparkpost import SparkPost
sp = SparkPost()
template_list = sp.templates.list()
print(template_list)
| 17.833333 | 35 | 0.794393 | 14 | 107 | 5.928571 | 0.571429 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 107 | 5 | 36 | 21.4 | 0.873684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
ecd79773f33df988c228574c4ae1cf3df5867161 | 4,099 | py | Python | ov5640/ov5640_config.py | maxpark/Pynq-CV-OV5640 | 8245e17766ff9cad678bd40020bfa0f0d5203972 | [
"BSD-3-Clause"
] | 26 | 2020-04-17T02:24:52.000Z | 2022-03-29T23:17:48.000Z | ov5640/ov5640_config.py | maxpark/Pynq-CV-OV5640 | 8245e17766ff9cad678bd40020bfa0f0d5203972 | [
"BSD-3-Clause"
] | 2 | 2020-08-20T06:28:34.000Z | 2020-11-01T04:14:03.000Z | ov5640/ov5640_config.py | maxpark/Pynq-CV-OV5640 | 8245e17766ff9cad678bd40020bfa0f0d5203972 | [
"BSD-3-Clause"
] | 16 | 2020-04-24T09:36:43.000Z | 2022-02-08T16:39:25.000Z | ov5640_config = (
[0x3103, 0x11],
[0x3008, 0x82],
[0x3008, 0x42],
[0x3103, 0x03],
[0x3017, 0xff],
[0x3018, 0xff],
[0x3034, 0x1A],
[0x3037, 0x13],
[0x3108, 0x01],
[0x3630, 0x36],
[0x3631, 0x0e],
[0x3632, 0xe2],
[0x3633, 0x12],
[0x3621, 0xe0],
[0x3704, 0xa0],
[0x3703, 0x5a],
[0x3715, 0x78],
[0x3717, 0x01],
[0x370b, 0x60]... | 16.07451 | 31 | 0.625274 | 512 | 4,099 | 5.003906 | 0.677734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.524247 | 0.124665 | 4,099 | 255 | 32 | 16.07451 | 0.189799 | 0.007319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.621927 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eceba762a5699011fa6925b1b79ee74b9a67742e | 539 | py | Python | tests/python-reference/multiple-inheritance/test_consistency_with_epg.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | 25 | 2015-04-16T04:31:49.000Z | 2022-03-10T15:53:28.000Z | tests/python-reference/multiple-inheritance/test_consistency_with_epg.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | 1 | 2018-11-21T22:40:02.000Z | 2018-11-26T17:53:11.000Z | tests/python-reference/multiple-inheritance/test_consistency_with_epg.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | 1 | 2021-03-26T03:36:19.000Z | 2021-03-26T03:36:19.000Z | # see "A Monotonic Superclass Linearization for Dylan",
# by Kim Barrett et al. (OOPSLA 1996)
# Testing consistency with EPG...
class Pane(object): pass
class ScrollingMixin(object): pass
class EditingMixin(object): pass
class ScrollablePane(Pane,ScrollingMixin): pass
class EditablePane(Pane,EditingMixin): pass
class E... | 38.5 | 66 | 0.801484 | 55 | 539 | 7.727273 | 0.527273 | 0.105882 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008386 | 0.115028 | 539 | 13 | 67 | 41.461538 | 0.8826 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | true | 0.666667 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
01a20942d1e8f83a78d54ed22b13d53969531408 | 1,243 | py | Python | Stack/_stacks.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | 1 | 2021-12-14T19:57:28.000Z | 2021-12-14T19:57:28.000Z | Stack/_stacks.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | null | null | null | Stack/_stacks.py | jeremy2918/data-structures | 17685212aac38979929ca923eb2f9b989c74d07a | [
"MIT"
] | null | null | null | # Stack Implementation
# Stack Class (LIFO)
class Stack():
def __init__(self, initial_data=[]):
if isinstance(initial_data, int):
self.data = [initial_data]
return
self.data = list(initial_data)
# Inserts a element at the top of the stack
def push(self, element):
... | 27.021739 | 75 | 0.614642 | 171 | 1,243 | 4.333333 | 0.304094 | 0.107962 | 0.05668 | 0.035088 | 0.375169 | 0.318489 | 0.318489 | 0.237517 | 0.237517 | 0.129555 | 0 | 0.00227 | 0.291231 | 1,243 | 45 | 76 | 27.622222 | 0.83882 | 0.273532 | 0 | 0.153846 | 0 | 0 | 0.10426 | 0.026906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.346154 | false | 0 | 0 | 0.192308 | 0.692308 | 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 |
01a79e50e3ca8cb332c8bdaa7b19b73fbb2860ea | 311 | py | Python | Section 01-03/WorkingFiles/main.py | tonymanpro/Python | f7072063004a71b0b7ea33e76df79c20cb8b803c | [
"MIT"
] | null | null | null | Section 01-03/WorkingFiles/main.py | tonymanpro/Python | f7072063004a71b0b7ea33e76df79c20cb8b803c | [
"MIT"
] | null | null | null | Section 01-03/WorkingFiles/main.py | tonymanpro/Python | f7072063004a71b0b7ea33e76df79c20cb8b803c | [
"MIT"
] | null | null | null | # import newModule as any
# newModule.new("Dony")
# newModule.new("Ahmed")
# newModule.new("Ronaldo")
# x = any.player["name"]
# print(x)
# import platform
# op = dir(platform)
# print(op)
# import math
# print(math.log(10))
# from newModule import player
# print(player["name"])
print(help('modules')) | 13.521739 | 30 | 0.662379 | 42 | 311 | 4.904762 | 0.5 | 0.174757 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.151125 | 311 | 23 | 31 | 13.521739 | 0.772727 | 0.813505 | 0 | 0 | 0 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
01b4eeb1e602e926c1339b055b31c53703c78978 | 279 | py | Python | objectModel/Python/cdm/persistence/cdmfolder/types/attribute_group_reference.py | aaron-emde/CDM | 9472e9c7694821ac4a9bbe608557d2e65aabc73e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | objectModel/Python/cdm/persistence/cdmfolder/types/attribute_group_reference.py | aaron-emde/CDM | 9472e9c7694821ac4a9bbe608557d2e65aabc73e | [
"CC-BY-4.0",
"MIT"
] | 3 | 2021-05-11T23:57:12.000Z | 2021-08-04T05:03:05.000Z | objectModel/Python/cdm/persistence/cdmfolder/types/attribute_group_reference.py | aaron-emde/CDM | 9472e9c7694821ac4a9bbe608557d2e65aabc73e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | from typing import Union
from cdm.utilities import JObject
from .attribute_group import AttributeGroup
class AttributeGroupReference(JObject):
def __init__(self):
super().__init__()
self.attributeGroupReference = None # type: Union[str, AttributeGroup]
| 21.461538 | 79 | 0.749104 | 29 | 279 | 6.896552 | 0.655172 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179211 | 279 | 12 | 80 | 23.25 | 0.873362 | 0.114695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 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 |
01bc487e597a724dd0a6f68dafdeae7fcbddef31 | 484 | py | Python | dvae/utils/read_config.py | sleglaive/DVAE-speech | df3ab438d169a8f852b0450eebf0a9f3229f891f | [
"MIT"
] | 41 | 2020-11-30T22:20:28.000Z | 2021-10-19T06:33:36.000Z | dvae/utils/read_config.py | sleglaive/DVAE-speech | df3ab438d169a8f852b0450eebf0a9f3229f891f | [
"MIT"
] | 2 | 2021-01-23T18:47:45.000Z | 2021-07-08T11:35:34.000Z | dvae/utils/read_config.py | sleglaive/DVAE-speech | df3ab438d169a8f852b0450eebf0a9f3229f891f | [
"MIT"
] | 9 | 2021-01-23T18:15:38.000Z | 2021-09-30T03:37:34.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Software dvae-speech
Copyright Inria
Year 2020
Contact : xiaoyu.bie@inria.fr
License agreement in LICENSE.txt
Class myconf() re-write ConfigParser class, enable to distinguish betwwen upper and lower letters
"""
from configparser import ConfigParser
class myconf(Con... | 24.2 | 97 | 0.743802 | 61 | 484 | 5.770492 | 0.737705 | 0.0625 | 0.090909 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014742 | 0.159091 | 484 | 19 | 98 | 25.473684 | 0.850123 | 0.520661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 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 |
01cdf43db916ca84fa7a1bbfa5708e1bfb497b50 | 3,874 | py | Python | DWF-client/strategies/sdnnc.py | sed-inf-u-szeged/DeepWaterFramework | 30e9c0145300e24834a3d4a7dde25002c638dd5a | [
"Apache-2.0"
] | 6 | 2020-06-18T22:38:09.000Z | 2022-01-13T14:32:56.000Z | DWF-server/strategies/sdnnc.py | sed-inf-u-szeged/DeepWaterFramework | 30e9c0145300e24834a3d4a7dde25002c638dd5a | [
"Apache-2.0"
] | 18 | 2020-01-13T08:32:53.000Z | 2021-07-23T08:26:02.000Z | DWF-client/strategies/sdnnc.py | sed-inf-u-szeged/DeepWaterFramework | 30e9c0145300e24834a3d4a7dde25002c638dd5a | [
"Apache-2.0"
] | 2 | 2020-06-18T09:50:59.000Z | 2021-03-18T04:52:53.000Z | strategy_type = "learning"
config = {
"strategy_id": "sdnnc",
"name": "Standard DNN Classifier",
"parameters": [
{
"parameter_id": "layers",
"label": "Number of layers",
"type": "int",
"required": True,
"default_value": 5,
},
... | 24.833333 | 51 | 0.26381 | 254 | 3,874 | 3.972441 | 0.19685 | 0.11893 | 0.208127 | 0.185332 | 0.64222 | 0.64222 | 0.519326 | 0.483647 | 0.483647 | 0.483647 | 0 | 0.110476 | 0.593443 | 3,874 | 155 | 52 | 24.993548 | 0.530159 | 0 | 0 | 0.490323 | 0 | 0 | 0.212184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
01d9bc237d3945e7e51666336a95c6eca8f9bb68 | 2,964 | py | Python | src/gridthings/cell.py | kafonek/gridthings | adb84fb1beedc56a9ab59c7597f32234e9a1c4bc | [
"BSD-3-Clause"
] | 2 | 2021-12-10T22:43:23.000Z | 2021-12-21T13:07:00.000Z | src/gridthings/cell.py | kafonek/gridthings | adb84fb1beedc56a9ab59c7597f32234e9a1c4bc | [
"BSD-3-Clause"
] | null | null | null | src/gridthings/cell.py | kafonek/gridthings | adb84fb1beedc56a9ab59c7597f32234e9a1c4bc | [
"BSD-3-Clause"
] | null | null | null | from typing import Any
from pydantic import BaseModel
# A cell represents a single item in the grid
# Each cell knows its position (y/x) and its value
# Cells implement a variety of comparison operators
# so that you can do things like Cell + 'foo' if Cell.value is a string
# or Cell * Cell, Cell ** 3 if Cell.value i... | 27.962264 | 71 | 0.589069 | 379 | 2,964 | 4.432718 | 0.240106 | 0.133929 | 0.178571 | 0.238095 | 0.681548 | 0.667857 | 0.667857 | 0.667857 | 0.647024 | 0.556548 | 0 | 0.000489 | 0.310391 | 2,964 | 105 | 72 | 28.228571 | 0.821429 | 0.162281 | 0 | 0.271429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.014286 | 0.028571 | 0.071429 | 0.714286 | 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 |
bf0f75cc07893dea6445ab002ddbe11ca0254b8e | 1,291 | py | Python | vector.py | bobmitch/pythonrt | 0655d486c53f1230dc058e3bd2ed9a94bb8e5c5a | [
"MIT"
] | null | null | null | vector.py | bobmitch/pythonrt | 0655d486c53f1230dc058e3bd2ed9a94bb8e5c5a | [
"MIT"
] | null | null | null | vector.py | bobmitch/pythonrt | 0655d486c53f1230dc058e3bd2ed9a94bb8e5c5a | [
"MIT"
] | null | null | null | """ basic vector operations """
from math import sqrt
def vec_add (v1,v2):
return [ v1[0]+v2[0], v1[1]+v2[1], v1[2]+v2[2] ]
def vec_sub (v1,v2):
return [ v1[0]-v2[0], v1[1]-v2[1], v1[2]-v2[2] ]
def vec_mul (v1,s):
"""scalar vector multiplication"""
return [ v1[0]*s, v1[1]*s, v1[2]*... | 28.065217 | 123 | 0.505035 | 232 | 1,291 | 2.741379 | 0.172414 | 0.09434 | 0.04717 | 0.04717 | 0.534591 | 0.440252 | 0.440252 | 0.440252 | 0.440252 | 0.41195 | 0 | 0.130664 | 0.264911 | 1,291 | 46 | 124 | 28.065217 | 0.539515 | 0.160341 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0 | 0.037037 | 0.111111 | 0.814815 | 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 |
bf1213a700aa5a09c0ec4a905517f5498230f57f | 319 | py | Python | talipp/indicators/FibRetracement.py | solocarrie/talipp | a35bbc33444c56683d4e26439f4878e92b937d7f | [
"MIT"
] | 54 | 2020-11-19T02:27:04.000Z | 2022-02-22T06:31:05.000Z | talipp/indicators/FibRetracement.py | justin-pierce/talipp | f5296381e3f4270b7743694e2ab5a0da301bdaf3 | [
"MIT"
] | 24 | 2020-11-01T17:56:28.000Z | 2021-09-15T18:40:04.000Z | talipp/indicators/FibRetracement.py | justin-pierce/talipp | f5296381e3f4270b7743694e2ab5a0da301bdaf3 | [
"MIT"
] | 14 | 2020-12-10T22:43:37.000Z | 2022-01-15T22:23:42.000Z | class FibRetracement:
R0 = 0
R0_236 = 0.236
R0_382 = 0.382
R0_5 = 0.5
R0_618 = 0.618
R0_786 = 0.786
R1 = 1.0
R1_618 = 1.618
R2_618 = 2.618
R3_618 = 3.618
R4_236 = 4.236
@staticmethod
def get_retracement_value(fib_coef, value):
return value + value * fib_coef | 19.9375 | 47 | 0.579937 | 56 | 319 | 3.071429 | 0.446429 | 0.093023 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.341122 | 0.329154 | 319 | 16 | 48 | 19.9375 | 0.462617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0.066667 | 0.933333 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bf15959e94b4c4afb49a5e644e8614fb83d415e1 | 1,376 | py | Python | python/puzzles/exercises/my_strings.py | xanderyzwich/Playground | 3c8bbfc33383f7ac1c88c2093fbe096cc2c44c3a | [
"Apache-2.0"
] | 1 | 2021-08-19T13:40:26.000Z | 2021-08-19T13:40:26.000Z | python/puzzles/exercises/my_strings.py | xanderyzwich/Playground | 3c8bbfc33383f7ac1c88c2093fbe096cc2c44c3a | [
"Apache-2.0"
] | null | null | null | python/puzzles/exercises/my_strings.py | xanderyzwich/Playground | 3c8bbfc33383f7ac1c88c2093fbe096cc2c44c3a | [
"Apache-2.0"
] | 1 | 2021-03-31T12:37:14.000Z | 2021-03-31T12:37:14.000Z | # This is a practice of string excercises implemented functionally
class StringTool:
# reverse a string
@staticmethod
def reversed(input_string):
return "".join(reversed(input_string))
# check if a string is a palindrome
@staticmethod
def isPalindrome(input_string):
return (reversed(input_stri... | 30.577778 | 168 | 0.721657 | 179 | 1,376 | 5.424581 | 0.301676 | 0.249228 | 0.07827 | 0.067971 | 0.164779 | 0.115345 | 0.051493 | 0 | 0 | 0 | 0 | 0.004398 | 0.173692 | 1,376 | 45 | 169 | 30.577778 | 0.849604 | 0.180959 | 0 | 0.266667 | 0 | 0 | 0.057782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
bf1aacc137f79388c17f98e2e2133c1e237e4e2c | 23,150 | py | Python | release/stubs.min/Tekla/Structures/Model/UI.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Tekla/Structures/Model/UI.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Tekla/Structures/Model/UI.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | # encoding: utf-8
# module Tekla.Structures.Model.UI calls itself UI
# from Tekla.Structures.Model,Version=2017.0.0.0,Culture=neutral,PublicKeyToken=2f04dbe497b71114
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class ClipPlane(object):
""" ClipPlane() """
def Delete(self):
""" ... | 30.621693 | 129 | 0.700605 | 2,394 | 23,150 | 6.732665 | 0.092732 | 0.130289 | 0.078173 | 0.104231 | 0.378087 | 0.345576 | 0.31834 | 0.304318 | 0.294826 | 0.284403 | 0 | 0.002101 | 0.157192 | 23,150 | 755 | 130 | 30.662252 | 0.823997 | 0.204665 | 0 | 0.446215 | 0 | 0 | 0.012795 | 0.006646 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247012 | false | 0.247012 | 0 | 0 | 0.645418 | 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 |
bf2331bb846f01f81e25a735d5ce6ce593aaaab3 | 39 | py | Python | src/common/config.py | GirZ0n/Methods-of-Computation | 65e0c5c965d80a8f7c3875621460324d208b1934 | [
"Unlicense"
] | 2 | 2021-09-14T07:10:34.000Z | 2021-09-28T21:41:34.000Z | src/common/config.py | GirZ0n/Methods-of-Computation | 65e0c5c965d80a8f7c3875621460324d208b1934 | [
"Unlicense"
] | 3 | 2021-09-27T19:21:32.000Z | 2021-09-28T18:46:37.000Z | src/common/config.py | GirZ0n/Methods-of-Computation | 65e0c5c965d80a8f7c3875621460324d208b1934 | [
"Unlicense"
] | null | null | null | OUTPUT_PRECISION = 10
PLOT_STEP = 0.01
| 13 | 21 | 0.769231 | 7 | 39 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 0.153846 | 39 | 2 | 22 | 19.5 | 0.69697 | 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 |
bf3955827b2fd7d4f0c54a2a2f04786eb92fea58 | 211 | py | Python | pyleapcard/__init__.py | johnpaulhayes/pyleapcard | 2c0229e738f1d95fd1b7e04c945cda8957639202 | [
"MIT"
] | 4 | 2017-11-12T23:51:10.000Z | 2021-02-28T11:41:50.000Z | pyleapcard/__init__.py | johnpaulhayes/pyleapcard | 2c0229e738f1d95fd1b7e04c945cda8957639202 | [
"MIT"
] | 22 | 2017-09-18T23:18:39.000Z | 2020-12-27T16:51:06.000Z | pyleapcard/__init__.py | johnpaulhayes/pyleapcard | 2c0229e738f1d95fd1b7e04c945cda8957639202 | [
"MIT"
] | 9 | 2017-11-13T00:13:56.000Z | 2020-07-31T23:06:48.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .CardEvent import CardEvent
from .CardOverview import CardOverview
from .PyLeapCard import LeapSession
__all__ = ['CardEvent', 'CardOverview', 'LeapSession']
| 23.444444 | 54 | 0.744076 | 23 | 211 | 6.652174 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.123223 | 211 | 8 | 55 | 26.375 | 0.821622 | 0.199052 | 0 | 0 | 0 | 0 | 0.191617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1711adf38838cd7a429788556c29d091d3beca98 | 593 | py | Python | b_lambda_layer_common/exceptions/container/unauthorized_error.py | gkazla/B.LambdaLayerCommon | 1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980 | [
"Apache-2.0"
] | 2 | 2020-09-07T11:39:33.000Z | 2021-10-05T08:34:07.000Z | b_lambda_layer_common/exceptions/container/unauthorized_error.py | gkazla/B.LambdaLayerCommon | 1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980 | [
"Apache-2.0"
] | 3 | 2020-09-04T08:49:10.000Z | 2020-12-17T14:40:49.000Z | b_lambda_layer_common/exceptions/container/unauthorized_error.py | gkazla/B.LambdaLayerCommon | 1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980 | [
"Apache-2.0"
] | 5 | 2020-08-31T10:51:51.000Z | 2021-11-05T09:07:47.000Z | from typing import Optional
from b_lambda_layer_common.exceptions.http_exception import HttpException
class UnauthorizedError(HttpException):
def __init__(self, message: Optional[str] = None):
super().__init__(message)
@staticmethod
def http_code() -> int:
return 401
@staticmethod
... | 24.708333 | 112 | 0.664418 | 62 | 593 | 6.129032 | 0.709677 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006834 | 0.259696 | 593 | 23 | 113 | 25.782609 | 0.85877 | 0 | 0 | 0.176471 | 0 | 0 | 0.204047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.176471 | 0.588235 | 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 |
171c1085be19ccdd0c8791248311f6b1cff917a3 | 6,619 | py | Python | python/cugraph/tests/test_renumber.py | codereport/cugraph | 32575bbeb77782e62b3077fb50400fbc5e8990fa | [
"Apache-2.0"
] | null | null | null | python/cugraph/tests/test_renumber.py | codereport/cugraph | 32575bbeb77782e62b3077fb50400fbc5e8990fa | [
"Apache-2.0"
] | null | null | null | python/cugraph/tests/test_renumber.py | codereport/cugraph | 32575bbeb77782e62b3077fb50400fbc5e8990fa | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 30.086364 | 78 | 0.601601 | 905 | 6,619 | 4.238674 | 0.174586 | 0.070386 | 0.043796 | 0.042231 | 0.747393 | 0.729145 | 0.729145 | 0.686913 | 0.656674 | 0.627477 | 0 | 0.060667 | 0.247923 | 6,619 | 219 | 79 | 30.223744 | 0.709924 | 0.124339 | 0 | 0.666667 | 0 | 0 | 0.158159 | 0.012459 | 0 | 0 | 0 | 0 | 0.113475 | 1 | 0.056738 | false | 0 | 0.042553 | 0 | 0.099291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
172f282f229b7349ea9ba6a8cd87e5353a8fef28 | 209 | py | Python | projects/mysite/polls/urls.py | coolbrg/peerlearning | eefcabadb96cde72d904e2b5e6861f80b4ba9bd9 | [
"Unlicense"
] | 1 | 2020-07-07T15:27:37.000Z | 2020-07-07T15:27:37.000Z | projects/mysite/polls/urls.py | coolbrg/peerlearning | eefcabadb96cde72d904e2b5e6861f80b4ba9bd9 | [
"Unlicense"
] | null | null | null | projects/mysite/polls/urls.py | coolbrg/peerlearning | eefcabadb96cde72d904e2b5e6861f80b4ba9bd9 | [
"Unlicense"
] | null | null | null | from django.urls import path
from . import views # basically access to views index method
urlpatterns = [
path('', views.index, name='index'),
path('<int:question_id>/', views.detail, name='detail'),
]
| 23.222222 | 61 | 0.69378 | 28 | 209 | 5.142857 | 0.607143 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15311 | 209 | 8 | 62 | 26.125 | 0.813559 | 0.181818 | 0 | 0 | 0 | 0 | 0.171598 | 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 |
1741998b035f3ba012b70ac04c47d3120f220177 | 1,354 | py | Python | PyObjCTest/test_nscolorspace.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nscolorspace.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nscolorspace.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | import AppKit
from PyObjCTools.TestSupport import TestCase
class TestNSColorSpace(TestCase):
def testConstants(self):
self.assertEqual(AppKit.NSUnknownColorSpaceModel, -1)
self.assertEqual(AppKit.NSGrayColorSpaceModel, 0)
self.assertEqual(AppKit.NSRGBColorSpaceModel, 1)
self.assert... | 42.3125 | 87 | 0.72969 | 111 | 1,354 | 8.891892 | 0.387387 | 0.243161 | 0.340426 | 0.089159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.1839 | 1,354 | 31 | 88 | 43.677419 | 0.877828 | 0 | 0 | 0 | 0 | 0 | 0.032496 | 0.032496 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
174f68066a51b9fff1e6a596c19f804dd88d6ef3 | 1,279 | py | Python | azure-common/azure/common/credentials.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | azure-common/azure/common/credentials.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | azure-common/azure/common/credentials.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... | 37.617647 | 78 | 0.655199 | 141 | 1,279 | 5.929078 | 0.631206 | 0.07177 | 0.0311 | 0.038278 | 0.117225 | 0.117225 | 0.117225 | 0.117225 | 0 | 0 | 0 | 0.004726 | 0.172791 | 1,279 | 34 | 78 | 37.617647 | 0.785444 | 0.581704 | 0 | 0.25 | 0 | 0 | 0.194605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.0625 | 0.375 | 0 | 0.375 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
175231b673327106516e3496c495f29783df88ae | 731 | py | Python | happyly/logs/request_id.py | alex-tsukanov/cargopy | f73b68e2ea5263dea5e570756d5fbcc4ef8d7b75 | [
"MIT"
] | 5 | 2019-03-01T16:50:15.000Z | 2021-05-24T10:58:34.000Z | happyly/logs/request_id.py | alex-tsukanov/cargopy | f73b68e2ea5263dea5e570756d5fbcc4ef8d7b75 | [
"MIT"
] | 18 | 2019-03-18T12:59:09.000Z | 2019-05-14T17:36:02.000Z | happyly/logs/request_id.py | alex-tsukanov/cargopy | f73b68e2ea5263dea5e570756d5fbcc4ef8d7b75 | [
"MIT"
] | 2 | 2019-03-24T22:43:08.000Z | 2019-06-04T09:45:12.000Z | from logging import Logger
from attr import attrs
from .base import BaseLogger
@attrs(auto_attribs=True)
class RequestIdLogger(BaseLogger):
logger: Logger
topic: str = ''
request_id: str = ''
def _fmt(self, message):
return f' {self.topic:>35} | {self.request_id:>40} |> {message}'
def ... | 23.580645 | 72 | 0.655267 | 95 | 731 | 4.947368 | 0.315789 | 0.140426 | 0.148936 | 0.191489 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006932 | 0.21067 | 731 | 30 | 73 | 24.366667 | 0.807626 | 0 | 0 | 0 | 0 | 0 | 0.073871 | 0.028728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.15 | 0.05 | 0.7 | 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 |
176ac2bc88424d364c89cc162b1e46083edbc48d | 23,578 | py | Python | psx/_dump_/41/_dump_ida_/overlay_c/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/41/_dump_ida_/overlay_c/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/41/_dump_ida_/overlay_c/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x8013570C, "PreGameOnlyTestRoutine__Fv", SN_NOWARN)
set_name(0x801377C0, "DRLG_PlaceDoor__Fii", SN_NOWARN)
set_name(0x80137CA0, "DRLG_L1Shadows__Fv", SN_NOWARN)
set_name(0x801380B0, "DRLG_PlaceMiniSet__FPCUciiiiiii", SN_NOWARN)
set_name(0x80138524, "DRLG_SetWalls__Fv", SN_NOWARN)
set_name(0x801385E0, "DRLG_L1... | 50.380342 | 68 | 0.821741 | 3,244 | 23,578 | 5.450062 | 0.30148 | 0.184898 | 0.289932 | 0.395362 | 0.308484 | 0.011991 | 0 | 0 | 0 | 0 | 0 | 0.173784 | 0.05942 | 23,578 | 467 | 69 | 50.488223 | 0.623439 | 0 | 0 | 0 | 0 | 0 | 0.286962 | 0.066545 | 0 | 0 | 0.198066 | 0 | 0 | 1 | 0 | true | 0.008565 | 0 | 0 | 0 | 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 |
178fc4288529bf227957bf9cf60e0b7da4dc7bcd | 648 | py | Python | autoleagueplay/versioned_bot.py | RLBot/AutoLeaguePlay | eaff05532eab179d1fa8635541dad17cd0a9b82c | [
"MIT"
] | 1 | 2019-08-17T18:18:54.000Z | 2019-08-17T18:18:54.000Z | autoleagueplay/versioned_bot.py | RLBot/AutoLeaguePlay | eaff05532eab179d1fa8635541dad17cd0a9b82c | [
"MIT"
] | 11 | 2019-08-22T07:44:12.000Z | 2019-10-30T18:16:09.000Z | autoleagueplay/versioned_bot.py | RLBot/AutoLeaguePlay | eaff05532eab179d1fa8635541dad17cd0a9b82c | [
"MIT"
] | 4 | 2019-08-17T19:43:12.000Z | 2020-12-10T18:53:53.000Z | from datetime import datetime
from rlbot.parsing.bot_config_bundle import BotConfigBundle
class VersionedBot:
def __init__(self, bot_config: BotConfigBundle, updated_date: datetime):
self.updated_date = updated_date
self.bot_config = bot_config
def __str__(self):
return self.get_key(... | 28.173913 | 85 | 0.712963 | 81 | 648 | 5.358025 | 0.333333 | 0.152074 | 0.089862 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189815 | 648 | 22 | 86 | 29.454545 | 0.826667 | 0 | 0 | 0 | 0 | 0 | 0.078704 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.133333 | 0.266667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
179d9918ec9624e07fb50dc022426649dc434744 | 273 | py | Python | pyplan/pyplan/users/admin.py | vishalbelsare/pyplan-ide | aaaccba37bd32971657878693e45150febd1e7d8 | [
"MIT"
] | 17 | 2019-12-04T19:22:19.000Z | 2021-07-28T11:17:05.000Z | pyplan/pyplan/users/admin.py | vishalbelsare/pyplan-ide | aaaccba37bd32971657878693e45150febd1e7d8 | [
"MIT"
] | 9 | 2019-12-13T15:34:43.000Z | 2022-02-10T11:43:00.000Z | pyplan/pyplan/users/admin.py | vishalbelsare/pyplan-ide | aaaccba37bd32971657878693e45150febd1e7d8 | [
"MIT"
] | 5 | 2019-12-04T15:57:06.000Z | 2021-08-20T19:59:26.000Z | from django.contrib.admin import register
from django.contrib.auth import admin
from .models import User
@register(User)
class UserAdmin(admin.UserAdmin):
list_display = ('id', 'username', 'last_name',
'first_name', 'email', 'active', 'system',)
| 24.818182 | 63 | 0.681319 | 33 | 273 | 5.545455 | 0.636364 | 0.10929 | 0.185792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186813 | 273 | 10 | 64 | 27.3 | 0.824324 | 0 | 0 | 0 | 0 | 0 | 0.168498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bd5c77124f92b6dd8bdea29b25eadcd65d73fa31 | 350 | py | Python | secretwallet/main/__init__.py | codimoc/secret-wallet | 879ec19e2746284fbeb9acee190951c9479f0299 | [
"MIT"
] | null | null | null | secretwallet/main/__init__.py | codimoc/secret-wallet | 879ec19e2746284fbeb9acee190951c9479f0299 | [
"MIT"
] | 39 | 2020-01-09T08:27:10.000Z | 2022-02-13T10:29:01.000Z | secretwallet/main/__init__.py | codimoc/secret-wallet | 879ec19e2746284fbeb9acee190951c9479f0299 | [
"MIT"
] | null | null | null | import sys
from secretwallet.main import myparser
from secretwallet.main.configuration import load_configurations, make_configurations
def main():
load_configurations()
myparser.Parser()
def configure():
make_configurations()
def shell():
load_configurations()
sys.argv=['secret_wallet','shell... | 20.588235 | 84 | 0.734286 | 37 | 350 | 6.783784 | 0.459459 | 0.215139 | 0.159363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168571 | 350 | 16 | 85 | 21.875 | 0.862543 | 0 | 0 | 0.333333 | 0 | 0 | 0.051429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bd6d38a6b493679b702f64a411f6add1eb3411c3 | 296 | py | Python | Curso_em_Video_py3/ex035.py | Rodrigo98Matos/Projetos_py | 6428e2c09d28fd8a717743f4434bc788e7d7d3cc | [
"MIT"
] | 1 | 2021-05-11T12:39:43.000Z | 2021-05-11T12:39:43.000Z | Curso_em_Video_py3/ex035.py | Rodrigo98Matos/Projetos_py | 6428e2c09d28fd8a717743f4434bc788e7d7d3cc | [
"MIT"
] | null | null | null | Curso_em_Video_py3/ex035.py | Rodrigo98Matos/Projetos_py | 6428e2c09d28fd8a717743f4434bc788e7d7d3cc | [
"MIT"
] | null | null | null | r1 = float(input('comprimento da reta 1: '))
r2 = float(input('Comprimento da reta 2: '))
r3 = float(input('Comprimento da reta 3: '))
if r1 < (r2+r3) and r2 < (r1+r3) and r3 < (r1+r2):
print('Sim, é possível formar um triângulo!')
else:
print('Não, não é possível formar um triângulo!')
| 37 | 53 | 0.64527 | 49 | 296 | 3.897959 | 0.44898 | 0.157068 | 0.329843 | 0.361257 | 0.696335 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062241 | 0.185811 | 296 | 7 | 54 | 42.285714 | 0.73029 | 0 | 0 | 0 | 0 | 0 | 0.489865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bd825dcdbe8ab26a6c81b037e1615775897830c1 | 32,802 | py | Python | peakdetection.py | arnoldandreasson/BATSpy | e418cf10464b3ee41329ecae952e70781e5db9fc | [
"Apache-2.0"
] | 1 | 2021-01-31T16:42:52.000Z | 2021-01-31T16:42:52.000Z | peakdetection.py | arnoldandreasson/BATSpy | e418cf10464b3ee41329ecae952e70781e5db9fc | [
"Apache-2.0"
] | null | null | null | peakdetection.py | arnoldandreasson/BATSpy | e418cf10464b3ee41329ecae952e70781e5db9fc | [
"Apache-2.0"
] | null | null | null | """
Detecting peaks in arrays.
detect_peaks(): peak and trough detection with a relative threshold.
detect_dynamic_peaks(): peak and trough detection with a dynamically adapted threshold.
accept_peak(): make detect_peaks() return index/time and size of peaks.
accept_peak_size_threshold(): adapt the dection threshold ... | 42.990826 | 142 | 0.613438 | 4,561 | 32,802 | 4.322955 | 0.081123 | 0.017751 | 0.015165 | 0.008521 | 0.763453 | 0.745093 | 0.711417 | 0.678602 | 0.652838 | 0.637419 | 0 | 0.012193 | 0.30992 | 32,802 | 762 | 143 | 43.047244 | 0.858853 | 0.52198 | 0 | 0.597523 | 0 | 0 | 0.067663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040248 | false | 0.003096 | 0.009288 | 0 | 0.111455 | 0.04644 | 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 |
bd8febc9ee1f7c0a461e8f47b5140cbc45a77386 | 30,543 | py | Python | nova/tests/unit/test_crypto.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/test_crypto.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/test_crypto.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2011 OpenStack Foundation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
co... | 15.203086 | 1,719 | 0.662083 | 4,087 | 30,543 | 4.833374 | 0.125031 | 0.122102 | 0.069859 | 0.043232 | 0.637896 | 0.598714 | 0.554116 | 0.521413 | 0.475802 | 0.432874 | 0 | 0.029157 | 0.084831 | 30,543 | 2,008 | 1,720 | 15.210657 | 0.677554 | 0 | 0 | 0.903884 | 0 | 0.001992 | 0.465704 | 0.213273 | 0 | 0 | 0 | 0 | 0.01245 | 0 | null | null | 0 | 0.005976 | null | null | 0.008964 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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.