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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53ec504a30d5694559e19b9891f338b0e6a4a72b | 15,539 | py | Python | tests/test_utils.py | harvard-vpal/canvas_python_sdk | 6c004d9bb8c207f0d227d6b1939e95603d0bf7b1 | [
"MIT"
] | 21 | 2015-06-12T13:49:04.000Z | 2021-11-08T05:37:44.000Z | tests/test_utils.py | harvard-vpal/canvas_python_sdk | 6c004d9bb8c207f0d227d6b1939e95603d0bf7b1 | [
"MIT"
] | 44 | 2015-02-04T15:26:52.000Z | 2021-12-03T17:47:00.000Z | tests/test_utils.py | harvard-vpal/canvas_python_sdk | 6c004d9bb8c207f0d227d6b1939e95603d0bf7b1 | [
"MIT"
] | 7 | 2015-07-20T23:56:03.000Z | 2021-02-23T17:13:00.000Z | import unittest
from unittest import mock
import requests
from unittest.mock import patch
from canvas_sdk import utils
from canvas_sdk.client import RequestContext
class TestUtils(unittest.TestCase):
def setUp(self):
self.path = '/v1/accounts'
self.req_ctx = mock.MagicMock(name='request-context',... | 45.702941 | 135 | 0.671407 | 2,065 | 15,539 | 4.726877 | 0.100726 | 0.066387 | 0.030735 | 0.043028 | 0.745211 | 0.730663 | 0.719496 | 0.687839 | 0.614384 | 0.600246 | 0 | 0.003384 | 0.239269 | 15,539 | 339 | 136 | 45.837758 | 0.82235 | 0.187206 | 0 | 0.504951 | 0 | 0 | 0.119685 | 0.034555 | 0 | 0 | 0 | 0 | 0.158416 | 1 | 0.133663 | false | 0.004951 | 0.029703 | 0 | 0.173267 | 0.004951 | 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 |
53ef17d6b18d5e764451c3f73e1c858032c16715 | 216 | py | Python | brabeion/urls.py | radicalgraphics/brabeion | 7d69a061e3d37adbf805693624a8c8bbd43d4388 | [
"BSD-3-Clause"
] | 1 | 2016-02-07T16:17:14.000Z | 2016-02-07T16:17:14.000Z | brabeion/urls.py | ivirabyan/brabeion | cf5bf05edcae4dab1cf6d8212a27cf5f2f76a56b | [
"BSD-3-Clause"
] | null | null | null | brabeion/urls.py | ivirabyan/brabeion | cf5bf05edcae4dab1cf6d8212a27cf5f2f76a56b | [
"BSD-3-Clause"
] | 1 | 2020-01-08T09:06:26.000Z | 2020-01-08T09:06:26.000Z | from django.conf.urls.defaults import *
urlpatterns = patterns("",
url(r"^$", "brabeion.views.badge_list", name="badge_list"),
url(r"^(\w+)/(\d+)/$", "brabeion.views.badge_detail", name="badge_detail"),
)
| 24 | 79 | 0.643519 | 28 | 216 | 4.821429 | 0.642857 | 0.059259 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115741 | 216 | 8 | 80 | 27 | 0.706806 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53f6d9ace418d3591dc47290b836cd70575ca246 | 245 | py | Python | gammapy/morphology/__init__.py | joleroi/gammapy | c4e0c4bd74c79d30e0837559d18b7a1a269f70d9 | [
"BSD-3-Clause"
] | 3 | 2019-01-28T12:21:14.000Z | 2019-02-10T19:58:07.000Z | gammapy/morphology/__init__.py | joleroi/gammapy | c4e0c4bd74c79d30e0837559d18b7a1a269f70d9 | [
"BSD-3-Clause"
] | null | null | null | gammapy/morphology/__init__.py | joleroi/gammapy | c4e0c4bd74c79d30e0837559d18b7a1a269f70d9 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Morphology and PSF methods.
Some parts of this package use Sherpa.
"""
from .gauss import *
from .model import *
from .models import *
from .theta import *
from .utils import *
| 22.272727 | 63 | 0.730612 | 37 | 245 | 4.837838 | 0.756757 | 0.223464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.179592 | 245 | 10 | 64 | 24.5 | 0.885572 | 0.530612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
54d2ae5fd0e73c75ba8cc5722c306d4e393e69dc | 253 | py | Python | src/lol_scrapers/utils/dataclasses/__init__.py | Melzak252/lol_scrapers | c083b766a970ad61bda68102a66d3a6303dda93d | [
"MIT"
] | null | null | null | src/lol_scrapers/utils/dataclasses/__init__.py | Melzak252/lol_scrapers | c083b766a970ad61bda68102a66d3a6303dda93d | [
"MIT"
] | null | null | null | src/lol_scrapers/utils/dataclasses/__init__.py | Melzak252/lol_scrapers | c083b766a970ad61bda68102a66d3a6303dda93d | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Stats:
win_rate: str
pick_rate: str
times_picked: str
@dataclass
class TftStats:
win_rate: str
top4: str
avg_placement: str
@dataclass
class RipChamp:
rip: bool = True
| 12.047619 | 33 | 0.695652 | 33 | 253 | 5.181818 | 0.606061 | 0.245614 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.249012 | 253 | 20 | 34 | 12.65 | 0.894737 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
54db7ee37fce019810dc3533863ebf080d75fe57 | 139 | py | Python | run.py | BidulaxStudio/bidulaxstudio-links | 1ef8e19c6ccce1b69e3704ea3eebf0577c958027 | [
"MIT"
] | null | null | null | run.py | BidulaxStudio/bidulaxstudio-links | 1ef8e19c6ccce1b69e3704ea3eebf0577c958027 | [
"MIT"
] | null | null | null | run.py | BidulaxStudio/bidulaxstudio-links | 1ef8e19c6ccce1b69e3704ea3eebf0577c958027 | [
"MIT"
] | null | null | null | from uvicorn import run
from app import app
HOST = "localhost"
PORT = 8000
if __name__ == "__main__":
run(app, host=HOST, port=PORT)
| 15.444444 | 34 | 0.697842 | 21 | 139 | 4.238095 | 0.571429 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.194245 | 139 | 8 | 35 | 17.375 | 0.758929 | 0 | 0 | 0 | 0 | 0 | 0.122302 | 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 |
54ee15596aad98981a86792bc6b52f54679cad95 | 301 | py | Python | components/gear.py | 3299/2017 | 72f4db48688ce8f4a9df83ee64400e948a649e6e | [
"MIT"
] | 1 | 2017-04-10T00:46:27.000Z | 2017-04-10T00:46:27.000Z | components/gear.py | 3299/2017 | 72f4db48688ce8f4a9df83ee64400e948a649e6e | [
"MIT"
] | null | null | null | components/gear.py | 3299/2017 | 72f4db48688ce8f4a9df83ee64400e948a649e6e | [
"MIT"
] | null | null | null | """
Pops the gear onto the peg. Uses solenoids.
"""
class GearSol(object):
def __init__(self, sol):
self.sol = sol
def run(self, trigger):
if (trigger == True):
self.sol.set(self.sol.Value.kForward)
else:
self.sol.set(self.sol.Value.kReverse)
| 21.5 | 49 | 0.578073 | 40 | 301 | 4.25 | 0.575 | 0.247059 | 0.117647 | 0.164706 | 0.258824 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 301 | 13 | 50 | 23.153846 | 0.790698 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
54f584b38d6ba60d60d811304d68661a61a163a1 | 25 | py | Python | preprocess_web/code/ravens_metadata/settings/deploy_settings.py | TwoRavens/raven-metadata-service | 9461522219f5ef0f4877f24c8f5923e462bd9557 | [
"Apache-2.0"
] | null | null | null | preprocess_web/code/ravens_metadata/settings/deploy_settings.py | TwoRavens/raven-metadata-service | 9461522219f5ef0f4877f24c8f5923e462bd9557 | [
"Apache-2.0"
] | 103 | 2018-03-13T20:43:59.000Z | 2021-02-06T19:27:16.000Z | preprocess_web/code/ravens_metadata/settings/deploy_settings.py | TwoRavens/raven-metadata-service | 9461522219f5ef0f4877f24c8f5923e462bd9557 | [
"Apache-2.0"
] | 1 | 2019-09-11T22:36:14.000Z | 2019-09-11T22:36:14.000Z | ALLOW_FAB_DELETE = False
| 12.5 | 24 | 0.84 | 4 | 25 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.863636 | 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 |
0710aebdc00c5cbce99dec0528cfc97c97579ca2 | 289 | py | Python | starlette/_utils.py | synodriver/starlette | 9ef1b91c9c043197da6c3f38aa153fd874b95527 | [
"BSD-3-Clause"
] | null | null | null | starlette/_utils.py | synodriver/starlette | 9ef1b91c9c043197da6c3f38aa153fd874b95527 | [
"BSD-3-Clause"
] | 9 | 2022-02-01T11:04:41.000Z | 2022-03-10T03:37:39.000Z | starlette/_utils.py | sthagen/encode-starlette | ba31df75daac7cc3b5fcfea89939372768a166cb | [
"BSD-3-Clause"
] | null | null | null | import asyncio
import functools
import typing
def is_async_callable(obj: typing.Any) -> bool:
while isinstance(obj, functools.partial):
obj = obj.func
return asyncio.iscoroutinefunction(obj) or (
callable(obj) and asyncio.iscoroutinefunction(obj.__call__)
)
| 22.230769 | 67 | 0.719723 | 34 | 289 | 5.941176 | 0.588235 | 0.108911 | 0.287129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193772 | 289 | 12 | 68 | 24.083333 | 0.866953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
072c0f2b2ab72d507cad9a5be50911eba04fac48 | 103 | py | Python | python/testData/quickFixes/PyRemoveUnusedLocalQuickFixTest/twoWithItemsSecondUnused.py | alexey-anufriev/intellij-community | ffcd46f14e630acdefcc76e2bfc7c43d2449013a | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/quickFixes/PyRemoveUnusedLocalQuickFixTest/twoWithItemsSecondUnused.py | alexey-anufriev/intellij-community | ffcd46f14e630acdefcc76e2bfc7c43d2449013a | [
"Apache-2.0"
] | 1 | 2020-07-30T19:04:47.000Z | 2020-07-30T19:04:47.000Z | python/testData/quickFixes/PyRemoveUnusedLocalQuickFixTest/twoWithItemsSecondUnused.py | bradleesand/intellij-community | 750ff9c10333c9c1278c00dbe8d88c877b1b9749 | [
"Apache-2.0"
] | 1 | 2020-10-15T05:56:42.000Z | 2020-10-15T05:56:42.000Z | def func():
with open('file1.txt') as used, open('file2.txt') as <caret>unused:
print(used) | 34.333333 | 71 | 0.61165 | 16 | 103 | 3.9375 | 0.75 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.203884 | 103 | 3 | 72 | 34.333333 | 0.743902 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
072f9c7ecf904fe092155a7aa86baa70fd0f9d62 | 201 | py | Python | setup.py | constant-c/gym-kafka | 32cb58a4a37acc9444ad8700d1c6ff124e8a98a8 | [
"MIT"
] | null | null | null | setup.py | constant-c/gym-kafka | 32cb58a4a37acc9444ad8700d1c6ff124e8a98a8 | [
"MIT"
] | null | null | null | setup.py | constant-c/gym-kafka | 32cb58a4a37acc9444ad8700d1c6ff124e8a98a8 | [
"MIT"
] | 1 | 2020-03-03T13:10:46.000Z | 2020-03-03T13:10:46.000Z | from setuptools import setup
setup(name='gym_kafka',
version='0.0.1',
install_requires=['gym', 'numpy', 'kafka-python', 'jsonschema'] # And any other dependencies gym kafka needs
)
| 28.714286 | 115 | 0.666667 | 26 | 201 | 5.076923 | 0.769231 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.19403 | 201 | 6 | 116 | 33.5 | 0.796296 | 0.208955 | 0 | 0 | 0 | 0 | 0.280255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 |
0730d6bb91a76966a6fe8e1dbae39de1ca2c7ee5 | 1,619 | py | Python | src/the_tale/the_tale/game/heroes/abilities/prototypes.py | Alacrate/the-tale | 43b211f3a99e93964e95abc20a8ed649a205ffcf | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/heroes/abilities/prototypes.py | Alacrate/the-tale | 43b211f3a99e93964e95abc20a8ed649a205ffcf | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/heroes/abilities/prototypes.py | Alacrate/the-tale | 43b211f3a99e93964e95abc20a8ed649a205ffcf | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class AbilityPrototype(object):
TYPE = None
ACTIVATION_TYPE = None
LOGIC_TYPE = None
PRIORITY = []
AVAILABILITY = relations.ABILITY_AVAILABILITY.FOR_ALL
HAS_DAMAGE = False
NAME = ''
normalized_name = ''
DESCRIPTIN = ''
MAX_LEVEL = 5
... | 23.808824 | 87 | 0.666461 | 198 | 1,619 | 5.217172 | 0.363636 | 0.052275 | 0.067764 | 0.060987 | 0.137464 | 0.092933 | 0.092933 | 0 | 0 | 0 | 0 | 0.012116 | 0.23533 | 1,619 | 67 | 88 | 24.164179 | 0.822294 | 0.040148 | 0 | 0.159091 | 0 | 0 | 0.071659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.022727 | 0.045455 | 0.272727 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0731cf69cbb9d4ad58e00e19e868394167edeb07 | 1,942 | py | Python | Chapter18/hw/libhw/hw_sensors/lis331dlh.py | haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition | 1cbdff216fdc5cec02cc0da8664b788941f025c1 | [
"MIT"
] | 621 | 2019-07-27T19:24:56.000Z | 2022-03-31T14:19:52.000Z | Chapter18/hw/libhw/hw_sensors/lis331dlh.py | haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition | 1cbdff216fdc5cec02cc0da8664b788941f025c1 | [
"MIT"
] | 40 | 2019-09-01T09:45:22.000Z | 2022-03-24T13:13:00.000Z | Chapter18/hw/libhw/hw_sensors/lis331dlh.py | haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition | 1cbdff216fdc5cec02cc0da8664b788941f025c1 | [
"MIT"
] | 346 | 2019-07-26T15:16:56.000Z | 2022-03-30T15:33:20.000Z | """
Accelerometer sensor, datasheet: https://www.st.com/resource/en/datasheet/cd00213470.pdf
"""
from . import st_family
import math as m
class Lis331DLH(st_family.STSensor):
WHOAMI_VAL = 0x32
RANGE_2G_DIVISOR = 16380
def __init__(self, i2c, addr=24):
super(Lis331DLH, self).__init__(i2c, self.WHO... | 35.309091 | 109 | 0.639547 | 295 | 1,942 | 3.986441 | 0.410169 | 0.053571 | 0.081633 | 0.091837 | 0.263605 | 0.263605 | 0.263605 | 0.214286 | 0.214286 | 0.214286 | 0 | 0.063514 | 0.237899 | 1,942 | 54 | 110 | 35.962963 | 0.731081 | 0.1931 | 0 | 0.054054 | 0 | 0 | 0.017352 | 0 | 0 | 0 | 0.002571 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.054054 | 0.108108 | 0.513514 | 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 |
073e22d0d8335dc1953490ab7bc589cf0631aff3 | 235 | py | Python | fluent_comments/urls.py | ephes/django-fluent-comments | a375a6704da76f1abc15261c51c9b02929b73934 | [
"Apache-2.0"
] | 88 | 2016-07-06T13:26:15.000Z | 2022-02-24T07:41:25.000Z | fluent_comments/urls.py | ephes/django-fluent-comments | a375a6704da76f1abc15261c51c9b02929b73934 | [
"Apache-2.0"
] | 64 | 2016-06-30T15:29:59.000Z | 2022-02-22T22:40:39.000Z | fluent_comments/urls.py | ephes/django-fluent-comments | a375a6704da76f1abc15261c51c9b02929b73934 | [
"Apache-2.0"
] | 44 | 2016-06-30T20:28:24.000Z | 2022-03-14T15:41:16.000Z | from django.urls import path, include
import django_comments.urls
from . import views
urlpatterns = [
path("post/ajax/", views.post_comment_ajax, name="comments-post-comment-ajax"),
path("", include(django_comments.urls)),
]
| 23.5 | 83 | 0.73617 | 31 | 235 | 5.451613 | 0.419355 | 0.130178 | 0.213018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 235 | 9 | 84 | 26.111111 | 0.82439 | 0 | 0 | 0 | 0 | 0 | 0.153191 | 0.110638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
07553a29726c4eb214d81e2414c5780c04453520 | 217 | py | Python | architect/pmscloud/DisplayLib.py | ibmcuijunluke/software-dockerhome | 21c9b3d29ede2b94a62f86931822d10854b368b2 | [
"MIT"
] | 5 | 2018-04-25T11:13:01.000Z | 2019-11-11T06:36:01.000Z | architect/pmscloud/DisplayLib.py | ibmcuijunluke/software-devopsengineer | 79c9d9e9b4e376f42b5ae0730d81c82cea33fd7b | [
"MIT"
] | null | null | null | architect/pmscloud/DisplayLib.py | ibmcuijunluke/software-devopsengineer | 79c9d9e9b4e376f42b5ae0730d81c82cea33fd7b | [
"MIT"
] | 3 | 2018-04-25T11:13:02.000Z | 2018-07-30T00:53:07.000Z | # -*- coding: utf-8 -*-
from pyvirtualdisplay import Display
display = Display(visible=0, size=(1024, 768))
##启动虚拟显示
def start():
display.start()
##关闭虚拟显示
def stop():
display.stop()
| 16.692308 | 48 | 0.580645 | 24 | 217 | 5.25 | 0.708333 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05625 | 0.262673 | 217 | 12 | 49 | 18.083333 | 0.73125 | 0.170507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
076a0ec8bda97e99d8e503da54dd2902ff0c58f9 | 246 | py | Python | src/m1_hangman.py | hegarnn/21-FunctionalDecomposition | eaade6623cd4d4823d56042a1080600b3a37407c | [
"MIT"
] | null | null | null | src/m1_hangman.py | hegarnn/21-FunctionalDecomposition | eaade6623cd4d4823d56042a1080600b3a37407c | [
"MIT"
] | null | null | null | src/m1_hangman.py | hegarnn/21-FunctionalDecomposition | eaade6623cd4d4823d56042a1080600b3a37407c | [
"MIT"
] | null | null | null | """
Hangman.
Authors: Nasser Hegar and YOUR_PARTNERS_NAME_HERE.
""" # TODO: 1. PUT YOUR NAME IN THE ABOVE LINE.
# TODO: 2. Implement Hangman using your Iterative Enhancement Plan.
####### Do NOT attempt this assignment before class! #######
| 22.363636 | 67 | 0.699187 | 34 | 246 | 4.970588 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.170732 | 246 | 10 | 68 | 24.6 | 0.818627 | 0.869919 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.1 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4adebe234c7b385500e966bad29d444ee8360909 | 153 | py | Python | kivyauth/providers.py | khanfarhan10/social-auth-kivy | fecf542e12601af143d8b4dcbc5ebd6a29ce59bf | [
"MIT"
] | null | null | null | kivyauth/providers.py | khanfarhan10/social-auth-kivy | fecf542e12601af143d8b4dcbc5ebd6a29ce59bf | [
"MIT"
] | null | null | null | kivyauth/providers.py | khanfarhan10/social-auth-kivy | fecf542e12601af143d8b4dcbc5ebd6a29ce59bf | [
"MIT"
] | null | null | null | class LoginProviders:
google = "google"
facebook = "facebook"
github = "github"
twitter = "twitter"
login_providers = LoginProviders()
| 17 | 34 | 0.666667 | 13 | 153 | 7.769231 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228758 | 153 | 8 | 35 | 19.125 | 0.855932 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4ae0d7dfef145958a556452fcb0cd5294a7b5f5d | 1,294 | py | Python | home/Calamity/init/iniStartRightHand.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 63 | 2015-02-03T18:49:43.000Z | 2022-03-29T03:52:24.000Z | home/Calamity/init/iniStartRightHand.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 16 | 2016-01-26T19:13:29.000Z | 2018-11-25T21:20:51.000Z | home/Calamity/init/iniStartRightHand.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | def startRightHand():
##############
i01.startRightHand(rightPort)
i01.rightHand.thumb.setMinMax(0,115)
i01.rightHand.index.setMinMax(35,130)
i01.rightHand.majeure.setMinMax(35,130)
i01.rightHand.ringFinger.setMinMax(35,130)
i01.rightHand.pinky.setMinMax(35,130)
i01.rightHand.wrist.map(90,90,90,... | 38.058824 | 47 | 0.746522 | 176 | 1,294 | 5.488636 | 0.147727 | 0.372671 | 0.186335 | 0.140787 | 0.296066 | 0.099379 | 0.099379 | 0 | 0 | 0 | 0 | 0.159931 | 0.101236 | 1,294 | 33 | 48 | 39.212121 | 0.670679 | 0.147604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | true | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ae67000ed58f9000bbd547776fa713a6b1a1a88 | 7,052 | py | Python | opnsense_cli/commands/plugin/haproxy/group.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 13 | 2021-05-17T10:42:25.000Z | 2022-02-21T02:10:41.000Z | opnsense_cli/commands/plugin/haproxy/group.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 14 | 2021-05-17T13:53:27.000Z | 2021-12-16T12:45:44.000Z | opnsense_cli/commands/plugin/haproxy/group.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 2 | 2021-04-28T08:41:07.000Z | 2022-03-28T10:20:51.000Z | import click
from opnsense_cli.formatters.cli_output import CliOutputFormatter
from opnsense_cli.callbacks.click import \
formatter_from_formatter_name, bool_as_string, available_formats, resolve_linked_names_to_uuids
from opnsense_cli.commands.plugin.haproxy import haproxy
from opnsense_cli.api.client import ApiCl... | 28.095618 | 103 | 0.678106 | 843 | 7,052 | 5.495848 | 0.155397 | 0.04986 | 0.061515 | 0.028707 | 0.747896 | 0.70041 | 0.681848 | 0.681848 | 0.681848 | 0.668681 | 0 | 0 | 0.18321 | 7,052 | 250 | 104 | 28.208 | 0.80434 | 0.016875 | 0 | 0.679245 | 0 | 0.009434 | 0.274773 | 0.029085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028302 | false | 0.066038 | 0.033019 | 0 | 0.061321 | 0.023585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4af4c32fb5f4946a197f8c59dadff6dc123ca849 | 197 | py | Python | snimpy/__init__.py | maugier/snimpy | 6ee08c608c2794632a512f6b632fb27c10abe1e8 | [
"ISC"
] | 129 | 2015-01-14T10:22:32.000Z | 2022-03-11T20:07:30.000Z | snimpy/__init__.py | maugier/snimpy | 6ee08c608c2794632a512f6b632fb27c10abe1e8 | [
"ISC"
] | 81 | 2015-01-25T22:25:42.000Z | 2021-07-01T16:21:54.000Z | snimpy/__init__.py | maugier/snimpy | 6ee08c608c2794632a512f6b632fb27c10abe1e8 | [
"ISC"
] | 38 | 2015-01-30T22:09:02.000Z | 2020-12-16T17:40:38.000Z | """interactive SNMP tool"""
__author__ = 'Vincent Bernat'
__email__ = 'bernat@luffy.cx'
try:
from snimpy._version import __version__ # nopep8
except ImportError:
__version__ = '0.0~dev'
| 19.7 | 53 | 0.715736 | 23 | 197 | 5.391304 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.167513 | 197 | 9 | 54 | 21.888889 | 0.737805 | 0.147208 | 0 | 0 | 0 | 0 | 0.222222 | 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 |
ab1475b3bdd62e36ded430b11eb95952038c9894 | 1,169 | py | Python | todo_widget.py | VANADAIN/drop-down-todo | 80d5e242856536de5d2cb16410d69d9c6e0299b4 | [
"MIT"
] | null | null | null | todo_widget.py | VANADAIN/drop-down-todo | 80d5e242856536de5d2cb16410d69d9c6e0299b4 | [
"MIT"
] | null | null | null | todo_widget.py | VANADAIN/drop-down-todo | 80d5e242856536de5d2cb16410d69d9c6e0299b4 | [
"MIT"
] | null | null | null | # from PyQt5.QtWidgets import QWidget, QPushButton, QLabel, QHBoxLayout
# from PyQt5.QtGui import QCursor, QFont
# from PyQt5.QtCore import Qt
# from todo import TodoApp
# class TodoWidget(QWidget, TodoApp):
# def __init__(self, text):
# super().__init__()
# done_button = QPushButton("... | 31.594595 | 82 | 0.640719 | 123 | 1,169 | 5.943089 | 0.455285 | 0.082079 | 0.065663 | 0.079343 | 0.243502 | 0.128591 | 0.128591 | 0.128591 | 0 | 0 | 0 | 0.023543 | 0.236955 | 1,169 | 36 | 83 | 32.472222 | 0.794843 | 0.933276 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.027778 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab212ca8a5cc523e57d9f1a4ac50d503cb2de84f | 364 | py | Python | python_modules/libraries/dagster-pandas/dagster_pandas/__init__.py | flowersw/dagster | 0de6baf2bd6a41bfacf0be532b954e23305fb6b4 | [
"Apache-2.0"
] | 3 | 2020-09-09T04:10:23.000Z | 2021-11-08T02:10:42.000Z | python_modules/libraries/dagster-pandas/dagster_pandas/__init__.py | flowersw/dagster | 0de6baf2bd6a41bfacf0be532b954e23305fb6b4 | [
"Apache-2.0"
] | 2 | 2021-05-11T13:36:27.000Z | 2021-09-03T01:53:11.000Z | python_modules/libraries/dagster-pandas/dagster_pandas/__init__.py | flowersw/dagster | 0de6baf2bd6a41bfacf0be532b954e23305fb6b4 | [
"Apache-2.0"
] | null | null | null | from .constraints import RowCountConstraint, StrictColumnsConstraint
from .data_frame import DataFrame, create_dagster_pandas_dataframe_type
from .validation import PandasColumn
from .version import __version__
__all__ = [
'DataFrame',
'create_dagster_pandas_dataframe_type',
'PandasColumn',
'RowCountCo... | 28 | 71 | 0.802198 | 33 | 364 | 8.333333 | 0.484848 | 0.298182 | 0.16 | 0.203636 | 0.298182 | 0.298182 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 364 | 12 | 72 | 30.333333 | 0.870253 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 0.162088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ab300d8161fc669d30a514efdde1c5726b9f12de | 195 | py | Python | typeidea/typeidea/custom_site.py | abnormalmakers/typeidea | 9348e85414ac06ed67fe7238d8060c29e3d59d12 | [
"MIT"
] | null | null | null | typeidea/typeidea/custom_site.py | abnormalmakers/typeidea | 9348e85414ac06ed67fe7238d8060c29e3d59d12 | [
"MIT"
] | 2 | 2020-06-05T20:36:07.000Z | 2021-06-10T21:24:42.000Z | typeidea/typeidea/custom_site.py | abnormalmakers/typeidea | 9348e85414ac06ed67fe7238d8060c29e3d59d12 | [
"MIT"
] | null | null | null | from django.contrib.admin import AdminSite
class CustomSite(AdminSite):
site_header='Typeidea'
site_title='Typeideal管理后台'
index_title = '首页'
custom_site=CustomSite(name='cus_admin') | 24.375 | 42 | 0.769231 | 24 | 195 | 6.041667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 195 | 8 | 43 | 24.375 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ab4167865eb2b2c6e7ea0a1cd0d5ca14b919ecbb | 2,836 | py | Python | serializeme/exceptions.py | jroosenschoon/serialize-me | 654dd76abd86e21d43d8bb517a70efb318c8f493 | [
"MIT"
] | 2 | 2021-04-11T10:58:18.000Z | 2021-05-12T01:41:45.000Z | serializeme/exceptions.py | jroosenschoon/serialize-me | 654dd76abd86e21d43d8bb517a70efb318c8f493 | [
"MIT"
] | 1 | 2021-07-11T16:42:01.000Z | 2021-07-11T16:42:01.000Z | serializeme/exceptions.py | jroosenschoon/serialize-me | 654dd76abd86e21d43d8bb517a70efb318c8f493 | [
"MIT"
] | 1 | 2021-05-12T20:33:29.000Z | 2021-05-12T20:33:29.000Z | class InvalidIPv4Address(Exception):
"""
Exception raised for invalid IPv4 addresses.
Attributes:
ipv4: IPv4 address that triggered the error.
msg : Explanation of the error.
"""
def __init__(self, ipv4, msg="Invalid IPv4 Address"):
self.ipv4 = ipv4
self.msg ... | 31.865169 | 99 | 0.589563 | 343 | 2,836 | 4.734694 | 0.227405 | 0.051724 | 0.08867 | 0.070197 | 0.416256 | 0.326355 | 0.326355 | 0.326355 | 0.304803 | 0.20936 | 0 | 0.004587 | 0.308181 | 2,836 | 88 | 100 | 32.227273 | 0.82314 | 0.374471 | 0 | 0.421053 | 0 | 0 | 0.153541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0 | 0.157895 | 0.631579 | 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 |
ab4c6a36b0e6730262d3ca3d70d063c23934337d | 1,997 | py | Python | ietf/secr/meetings/urls.py | MatheusProla/Codestand | f9f13f2b6e8f9a1500f93ab54da977bb7de0bf9e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-11-20T03:40:40.000Z | 2021-11-20T03:40:42.000Z | ietf/secr/meetings/urls.py | MatheusProla/Codestand | f9f13f2b6e8f9a1500f93ab54da977bb7de0bf9e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ietf/secr/meetings/urls.py | MatheusProla/Codestand | f9f13f2b6e8f9a1500f93ab54da977bb7de0bf9e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null |
from ietf.secr.meetings import views
from ietf.utils.urls import url
urlpatterns = [
url(r'^$', views.main),
url(r'^add/$', views.add),
url(r'^ajax/get-times/(?P<meeting_id>\d{1,6})/(?P<day>\d)/$', views.ajax_get_times),
url(r'^blue_sheet/$', views.blue_sheet_redirect),
url(r'^(?P<meeting_id>\d{1,... | 71.321429 | 140 | 0.609414 | 369 | 1,997 | 3.119241 | 0.130081 | 0.07298 | 0.07298 | 0.091225 | 0.655951 | 0.590791 | 0.561251 | 0.549088 | 0.504778 | 0.445699 | 0 | 0.038772 | 0.070105 | 1,997 | 27 | 141 | 73.962963 | 0.581045 | 0 | 0 | 0 | 0 | 0.52 | 0.611723 | 0.601202 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db3f7fab2a53d9b3e854033c3f360eb5e8b3020e | 8,567 | py | Python | lib/django/tests/regressiontests/defaultfilters/tests.py | vin/gerbilcount | fdffe648c3e9ad2667a6edfe0e19d4446c522395 | [
"Apache-2.0"
] | 2 | 2016-05-08T08:57:01.000Z | 2020-02-08T07:39:48.000Z | lib/django/tests/regressiontests/defaultfilters/tests.py | Arachnid/google_appengine | 2e950619f5027f414131fafc3cc253af4875a0fe | [
"Apache-2.0"
] | null | null | null | lib/django/tests/regressiontests/defaultfilters/tests.py | Arachnid/google_appengine | 2e950619f5027f414131fafc3cc253af4875a0fe | [
"Apache-2.0"
] | null | null | null | r"""
>>> floatformat(7.7)
'7.7'
>>> floatformat(7.0)
'7'
>>> floatformat(0.7)
'0.7'
>>> floatformat(0.07)
'0.1'
>>> floatformat(0.007)
'0.0'
>>> floatformat(0.0)
'0'
>>> floatformat(7.7,3)
'7.700'
>>> floatformat(6.000000,3)
'6.000'
>>> floatformat(13.1031,-3)
'13.103'
>>> floatformat(11.1197, -2)
'11.12'
>>> floatform... | 18.9117 | 125 | 0.590055 | 1,333 | 8,567 | 3.76069 | 0.225806 | 0.011969 | 0.008977 | 0.016158 | 0.407141 | 0.346898 | 0.255536 | 0.228805 | 0.218432 | 0.18831 | 0 | 0.084507 | 0.146376 | 8,567 | 452 | 126 | 18.95354 | 0.600985 | 0.983425 | 0 | 0 | 0 | 0 | 0.06015 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
db4f59e0e65732a795c3a3e6b5dcaaa4be394a50 | 235 | py | Python | test_generators/operations/keys.py | ssteiger/eth2.0-specs | 23b1cb225d4aab476bbeba06ab1d17755ccfd104 | [
"CC0-1.0"
] | 1 | 2021-05-22T16:06:27.000Z | 2021-05-22T16:06:27.000Z | test_generators/operations/keys.py | ssteiger/eth2.0-specs | 23b1cb225d4aab476bbeba06ab1d17755ccfd104 | [
"CC0-1.0"
] | null | null | null | test_generators/operations/keys.py | ssteiger/eth2.0-specs | 23b1cb225d4aab476bbeba06ab1d17755ccfd104 | [
"CC0-1.0"
] | null | null | null | from py_ecc import bls
from eth2spec.phase0.spec import hash
privkeys = list(range(1, 101))
pubkeys = [bls.privtopub(k) for k in privkeys]
# Insecure, but easier to follow
withdrawal_creds = [hash(bls.privtopub(k)) for k in privkeys]
| 29.375 | 61 | 0.757447 | 39 | 235 | 4.512821 | 0.666667 | 0.136364 | 0.147727 | 0.181818 | 0.306818 | 0.306818 | 0.306818 | 0 | 0 | 0 | 0 | 0.029703 | 0.140426 | 235 | 7 | 62 | 33.571429 | 0.841584 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
db55d9121f440fe7dd70ef48bbae93a5d207a49e | 92 | py | Python | section4/test_FloatingPoint.py | skbansal5642/UnitTestingAndTestDrivenDevelopmentInPythonMaster | ed4fb4eecc0964b5d2b59ac5f7d683d46fb59016 | [
"Apache-2.0"
] | null | null | null | section4/test_FloatingPoint.py | skbansal5642/UnitTestingAndTestDrivenDevelopmentInPythonMaster | ed4fb4eecc0964b5d2b59ac5f7d683d46fb59016 | [
"Apache-2.0"
] | null | null | null | section4/test_FloatingPoint.py | skbansal5642/UnitTestingAndTestDrivenDevelopmentInPythonMaster | ed4fb4eecc0964b5d2b59ac5f7d683d46fb59016 | [
"Apache-2.0"
] | null | null | null | import pytest
def test_approx():
val = 0.1 + 0.2
assert val == pytest.approx(0.3)
| 13.142857 | 36 | 0.608696 | 16 | 92 | 3.4375 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.25 | 92 | 6 | 37 | 15.333333 | 0.710145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db5ac50c5c4ccca8a29c830db5322d06c654ed83 | 1,358 | py | Python | test/descr.py | dramatis/dramatis | 1a43a6be1d7e7e9fd2cde052430d6e84700dc822 | [
"MIT"
] | 5 | 2015-11-05T01:51:29.000Z | 2019-04-16T09:09:19.000Z | test/descr.py | halorgium/dramatis | 50b35c4e79c33e438cb9f5eeab51ab73119bd75d | [
"MIT"
] | null | null | null | test/descr.py | halorgium/dramatis | 50b35c4e79c33e438cb9f5eeab51ab73119bd75d | [
"MIT"
] | 1 | 2022-03-03T19:51:04.000Z | 2022-03-03T19:51:04.000Z | #!/usr/bin/env python
class Real(object):
def method(self):
return "method"
@property
def prop(self):
# print "prop called"
return "prop"
class PropertyProxy(object):
def __init__( self, object, name ):
self._object = object
self._name = name
def __get__(sel... | 24.690909 | 84 | 0.597938 | 163 | 1,358 | 4.521472 | 0.257669 | 0.122117 | 0.075984 | 0.069199 | 0.188602 | 0.157395 | 0.157395 | 0.157395 | 0.157395 | 0.157395 | 0 | 0 | 0.276878 | 1,358 | 54 | 85 | 25.148148 | 0.750509 | 0.07511 | 0 | 0.153846 | 0 | 0 | 0.0416 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.230769 | false | 0.025641 | 0 | 0.102564 | 0.512821 | 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 |
db66a0a4a61e856f9d7fa82343527f1ecda85063 | 21,362 | py | Python | game/game.py | grochavieira/py-arkanoid | 430e55b20fa43abbcb8becfd6b58938f8690fe12 | [
"MIT"
] | null | null | null | game/game.py | grochavieira/py-arkanoid | 430e55b20fa43abbcb8becfd6b58938f8690fe12 | [
"MIT"
] | null | null | null | game/game.py | grochavieira/py-arkanoid | 430e55b20fa43abbcb8becfd6b58938f8690fe12 | [
"MIT"
] | null | null | null | import pygame
import sys
import random
import settings
import engine
class GameState():
def __init__(self):
self.state = "menu"
self.is_running = True
self.paddle_group = pygame.sprite.GroupSingle()
self.block_group = pygame.sprite.Group()
self.powerup_group = pygame.sprite... | 40.535104 | 168 | 0.581593 | 2,561 | 21,362 | 4.641937 | 0.088247 | 0.087147 | 0.031713 | 0.021871 | 0.786003 | 0.745205 | 0.707773 | 0.66605 | 0.650404 | 0.64317 | 0 | 0.025791 | 0.321178 | 21,362 | 526 | 169 | 40.612167 | 0.794014 | 0.021814 | 0 | 0.604592 | 0 | 0 | 0.048855 | 0.029074 | 0 | 0 | 0 | 0.001901 | 0 | 1 | 0.033163 | false | 0.028061 | 0.012755 | 0 | 0.048469 | 0.002551 | 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 |
db6f54aa1a043a7cd737ec2ac0b0bc71225def4f | 89 | py | Python | Desafios/desafio001.py | sthe-eduarda/Curso-de-python | 524f6cc132a5746bc039921f954f941e63aaede0 | [
"MIT"
] | null | null | null | Desafios/desafio001.py | sthe-eduarda/Curso-de-python | 524f6cc132a5746bc039921f954f941e63aaede0 | [
"MIT"
] | null | null | null | Desafios/desafio001.py | sthe-eduarda/Curso-de-python | 524f6cc132a5746bc039921f954f941e63aaede0 | [
"MIT"
] | null | null | null | nome = input('Qual é o seu nome? ')
print('Olá,{},é um prazer te conhecer'.format(nome))
| 29.666667 | 52 | 0.662921 | 16 | 89 | 3.6875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 89 | 2 | 53 | 44.5 | 0.776316 | 0 | 0 | 0 | 0 | 0 | 0.550562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
db7c7f3efcf787af4ef9ab0dcf313806d6223dc0 | 220 | py | Python | HackerRank/Superset.py | prajjwalkumar17/DSA_Problems- | 61f09676dd67b90d20b2a60fe4e112897e9e735d | [
"Apache-2.0"
] | null | null | null | HackerRank/Superset.py | prajjwalkumar17/DSA_Problems- | 61f09676dd67b90d20b2a60fe4e112897e9e735d | [
"Apache-2.0"
] | 2 | 2021-10-01T16:40:24.000Z | 2021-10-03T05:24:24.000Z | HackerRank/Superset.py | prajjwalkumar17/DSA_Problems- | 61f09676dd67b90d20b2a60fe4e112897e9e735d | [
"Apache-2.0"
] | 5 | 2021-10-01T16:41:28.000Z | 2021-10-07T04:36:51.000Z | set_A = set(map(int,input().split()))
N = int(input())
for i in range(N):
arr_A = set(input().split())
arr_N = set(input().split())
if not arr_A.issuperset(arr_N):
print(False)
else:
print(True)
| 22 | 38 | 0.586364 | 37 | 220 | 3.351351 | 0.513514 | 0.241935 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213636 | 220 | 9 | 39 | 24.444444 | 0.716763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db7fadf60b68341d1601e22601267e5b75133e19 | 1,339 | py | Python | tests/scheduler/__init__.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | null | null | null | tests/scheduler/__init__.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | null | null | null | tests/scheduler/__init__.py | warownia1/Slivca | 5491afec63c8cd41d6f1389a5dd0ba9877b888a1 | [
"Apache-2.0"
] | null | null | null | from typing import List
from slivka import JobStatus
from slivka.scheduler import BaseSelector, BaseCommandRunner
from slivka.scheduler.runner import Command, Job
from slivka.scheduler.starter import CommandStarter, RunnerID
class BaseSelectorStub(BaseSelector):
def limit_runner1(self, inputs): return inputs.get... | 33.475 | 76 | 0.68932 | 173 | 1,339 | 5.219653 | 0.34104 | 0.044297 | 0.088594 | 0.121816 | 0.161683 | 0.161683 | 0 | 0 | 0 | 0 | 0 | 0.005597 | 0.199403 | 1,339 | 39 | 77 | 34.333333 | 0.836754 | 0 | 0 | 0 | 0 | 0 | 0.035101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0.034483 | 0.172414 | 0.241379 | 0.689655 | 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 |
db888535a87e457766feb2b770d94cf23c1b23bb | 827 | py | Python | makobot/libs/virustotal.py | swimlane/makobot | 352391628942b2b6942fcb4d3cefda57efcf18c2 | [
"MIT"
] | 24 | 2016-05-17T20:36:42.000Z | 2020-05-29T19:36:23.000Z | makobot/libs/virustotal.py | Swimlane/makobot | 352391628942b2b6942fcb4d3cefda57efcf18c2 | [
"MIT"
] | null | null | null | makobot/libs/virustotal.py | Swimlane/makobot | 352391628942b2b6942fcb4d3cefda57efcf18c2 | [
"MIT"
] | 9 | 2016-05-17T20:36:46.000Z | 2021-05-25T17:33:14.000Z | # -*- coding: utf-8 -*-
from requests import Session
class VirusTotal(object):
def __init__(self, api_key):
self.base_url = 'https://www.virustotal.com/vtapi/v2'
self.session = Session()
self.api_key = api_key
def get(self, *uri, **params):
params.update(apikey=self.api_key)
... | 27.566667 | 67 | 0.579202 | 111 | 827 | 4.207207 | 0.414414 | 0.051392 | 0.111349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011457 | 0.261185 | 827 | 29 | 68 | 28.517241 | 0.752864 | 0.025393 | 0 | 0 | 0 | 0 | 0.103234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.05 | 0.2 | 0.65 | 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 |
db8eb25b9447070a6b7dc537704b426fcdebc5f0 | 5,574 | py | Python | packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py | reservoirinvest/plotly.py | 73651942b51587086da1eee53f67995f28d68ee3 | [
"MIT"
] | 76 | 2020-07-06T14:44:05.000Z | 2022-02-14T15:30:21.000Z | packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py | reservoirinvest/plotly.py | 73651942b51587086da1eee53f67995f28d68ee3 | [
"MIT"
] | 11 | 2020-08-09T02:30:14.000Z | 2022-03-12T00:50:14.000Z | packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py | reservoirinvest/plotly.py | 73651942b51587086da1eee53f67995f28d68ee3 | [
"MIT"
] | 11 | 2020-07-12T16:18:07.000Z | 2022-02-05T16:48:35.000Z | import sys
if sys.version_info < (3, 7):
from ._zerolinewidth import ZerolinewidthValidator
from ._zerolinecolor import ZerolinecolorValidator
from ._zeroline import ZerolineValidator
from ._visible import VisibleValidator
from ._type import TypeValidator
from ._title import TitleValidator
... | 45.317073 | 72 | 0.717797 | 352 | 5,574 | 10.994318 | 0.360795 | 0.007235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001379 | 0.219412 | 5,574 | 122 | 73 | 45.688525 | 0.888072 | 0 | 0 | 0 | 0 | 0 | 0.317905 | 0.314316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.483333 | 0 | 0.483333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dba0013b598565ea33939f62e80c7d596e9ac3bd | 764 | py | Python | ee/clickhouse/migrations/0020_session_recording_events_window_id.py | ld-rale/posthog | 0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810 | [
"MIT"
] | null | null | null | ee/clickhouse/migrations/0020_session_recording_events_window_id.py | ld-rale/posthog | 0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810 | [
"MIT"
] | null | null | null | ee/clickhouse/migrations/0020_session_recording_events_window_id.py | ld-rale/posthog | 0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810 | [
"MIT"
] | null | null | null | from infi.clickhouse_orm import migrations
from ee.clickhouse.sql.session_recording_events import (
KAFKA_SESSION_RECORDING_EVENTS_TABLE_SQL,
SESSION_RECORDING_EVENTS_TABLE_MV_SQL,
)
from posthog.settings import CLICKHOUSE_CLUSTER
operations = [
migrations.RunSQL(f"DROP TABLE session_recording_events_mv O... | 42.444444 | 141 | 0.808901 | 98 | 764 | 5.928571 | 0.326531 | 0.22031 | 0.302926 | 0.185886 | 0.55938 | 0.499139 | 0.268503 | 0 | 0 | 0 | 0 | 0 | 0.120419 | 764 | 17 | 142 | 44.941176 | 0.864583 | 0 | 0 | 0 | 0 | 0 | 0.362565 | 0.192408 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
dbb668a13b7b05607d5c22b67507cfb624c69cec | 2,439 | py | Python | icevision/imports.py | adamfarquhar/icevision | f6e9f54773ba877be0f363769d512c04ce7e5a10 | [
"Apache-2.0"
] | null | null | null | icevision/imports.py | adamfarquhar/icevision | f6e9f54773ba877be0f363769d512c04ce7e5a10 | [
"Apache-2.0"
] | null | null | null | icevision/imports.py | adamfarquhar/icevision | f6e9f54773ba877be0f363769d512c04ce7e5a10 | [
"Apache-2.0"
] | null | null | null | import sys, os, re, shutil, typing, itertools, operator, math, warnings, json, random
import functools, io, cv2, mimetypes, torch, torchvision, dataclasses, zipfile, pickle
from copy import copy, deepcopy
from pdb import set_trace
from dataclasses import dataclass
from fastcore.foundation import *
from fastcore.basics... | 25.946809 | 86 | 0.753998 | 295 | 2,439 | 6.081356 | 0.464407 | 0.020067 | 0.013378 | 0.023411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002503 | 0.180812 | 2,439 | 93 | 87 | 26.225806 | 0.895395 | 0.082411 | 0 | 0 | 0 | 0 | 0.0018 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.057971 | false | 0 | 0.492754 | 0.028986 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dbd10b530e1efbdd7bfcde5fecee46c89eefe1da | 276 | py | Python | test/test_astrofunc.py | LBJ-Wade/astrofunc_lensing_profile | d2223705bc44d07575a5e93291375ab8e69ebfa8 | [
"MIT"
] | null | null | null | test/test_astrofunc.py | LBJ-Wade/astrofunc_lensing_profile | d2223705bc44d07575a5e93291375ab8e69ebfa8 | [
"MIT"
] | null | null | null | test/test_astrofunc.py | LBJ-Wade/astrofunc_lensing_profile | d2223705bc44d07575a5e93291375ab8e69ebfa8 | [
"MIT"
] | null | null | null | """
Tests for `astrofunc` module.
"""
import pytest
from astrofunc import astrofunc
class TestAstrofunc(object):
@classmethod
def setup_class(cls):
pass
def test_something(self):
pass
@classmethod
def teardown_class(cls):
pass
| 13.8 | 31 | 0.648551 | 30 | 276 | 5.866667 | 0.633333 | 0.159091 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268116 | 276 | 19 | 32 | 14.526316 | 0.871287 | 0.105072 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.272727 | 0.181818 | 0 | 0.545455 | 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 |
dbd5f55e9fcbdc7e7a7c822dc2677d86a228591e | 2,521 | py | Python | sdk/python/pulumi_aws/cloudfront/__init__.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/cloudfront/__init__.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/cloudfront/__init__.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from .cache_policy import *
from .distribution import *
from .get_cache_policy import *
fro... | 45.836364 | 103 | 0.719159 | 270 | 2,521 | 6.525926 | 0.311111 | 0.088536 | 0.054484 | 0.095346 | 0.398411 | 0.3479 | 0.3479 | 0.320658 | 0.320658 | 0 | 0 | 0.000486 | 0.183657 | 2,521 | 54 | 104 | 46.685185 | 0.855685 | 0.08687 | 0 | 0 | 1 | 0 | 0.20505 | 0.176752 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.317073 | 0.02439 | 0.609756 | 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 |
917522b35be48c41bceb432d25d0e6f64dabba04 | 175 | py | Python | services/heartbeat/urls.py | Bellboy-Capstone/Services | 36888d90fe7ba4b2afc2ea8ad4839a8e13c7f98b | [
"MIT"
] | null | null | null | services/heartbeat/urls.py | Bellboy-Capstone/Services | 36888d90fe7ba4b2afc2ea8ad4839a8e13c7f98b | [
"MIT"
] | 5 | 2020-10-07T16:31:54.000Z | 2022-03-01T22:16:54.000Z | services/heartbeat/urls.py | Bellboy-Capstone/Services | 36888d90fe7ba4b2afc2ea8ad4839a8e13c7f98b | [
"MIT"
] | 2 | 2020-10-04T23:57:00.000Z | 2020-10-10T03:14:18.000Z | from django.urls import path
from services.heartbeat.views import HeartbeatView
app_name = "heartbeat"
urlpatterns = [path("", view=HeartbeatView.as_view(), name="update")]
| 25 | 69 | 0.771429 | 22 | 175 | 6.045455 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102857 | 175 | 6 | 70 | 29.166667 | 0.847134 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 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 |
9191dc582d64fa722fbc239b20ad294871203ce6 | 78 | py | Python | couchbase_tests/__init__.py | couchbase/couchbase-python-client | 99ec055835f5aef0cd07905497b3ab4bb3cbbc32 | [
"Apache-2.0"
] | 189 | 2015-01-07T18:34:31.000Z | 2022-03-21T17:41:56.000Z | couchbase_tests/__init__.py | couchbase/couchbase-python-client | 99ec055835f5aef0cd07905497b3ab4bb3cbbc32 | [
"Apache-2.0"
] | 24 | 2015-05-19T14:00:16.000Z | 2022-03-16T22:01:30.000Z | couchbase_tests/__init__.py | couchbase/couchbase-python-client | 99ec055835f5aef0cd07905497b3ab4bb3cbbc32 | [
"Apache-2.0"
] | 60 | 2015-03-10T22:12:50.000Z | 2022-03-07T21:57:40.000Z | caseslist = []
try:
import couchbase.tests
except BaseException:
pass
| 13 | 26 | 0.705128 | 8 | 78 | 6.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217949 | 78 | 5 | 27 | 15.6 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 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 |
91ac885eab69828adea6ebbbfbe91408ea215d04 | 66 | py | Python | schema.py | rpinaa/python-flask-microservice | 3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d | [
"MIT"
] | 1 | 2019-09-23T20:00:52.000Z | 2019-09-23T20:00:52.000Z | schema.py | rpinaa/python-flask-microservice | 3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d | [
"MIT"
] | null | null | null | schema.py | rpinaa/python-flask-microservice | 3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d | [
"MIT"
] | null | null | null | from flask_marshmallow import Marshmallow
schema = Marshmallow()
| 16.5 | 41 | 0.833333 | 7 | 66 | 7.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 66 | 3 | 42 | 22 | 0.931034 | 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 |
91c0806fd7566a9a17f46bf8b5cb6996e1f85271 | 29,159 | py | Python | python/pygimli/physics/em/hemmodelling.py | mjziebarth/gimli | 196ac4d6dd67e0326cccc44a87b367f64051e490 | [
"Apache-2.0"
] | 3 | 2021-07-10T00:56:59.000Z | 2022-02-17T12:43:38.000Z | python/pygimli/physics/em/hemmodelling.py | ivek1312/gimli | 5fafebb7c96dd0e04e2616df402fa27a01609d63 | [
"Apache-2.0"
] | null | null | null | python/pygimli/physics/em/hemmodelling.py | ivek1312/gimli | 5fafebb7c96dd0e04e2616df402fa27a01609d63 | [
"Apache-2.0"
] | 1 | 2022-03-29T04:28:40.000Z | 2022-03-29T04:28:40.000Z | #!/usr/bin/env python
# coding: utf-8
"""Classes for modelling helicopter electromagnetics (HEM) using VMD solvers"""
import numpy as np
import pygimli as pg
from math import sqrt, pi
from matplotlib.colors import LinearSegmentedColormap
from matplotlib.cm import register_cmap
def registerDAEROcmap():
"""Standar... | 47.490228 | 79 | 0.526321 | 4,137 | 29,159 | 3.690597 | 0.19797 | 0.010807 | 0.011789 | 0.00917 | 0.337241 | 0.304231 | 0.258777 | 0.228386 | 0.185289 | 0.156602 | 0 | 0.260373 | 0.305738 | 29,159 | 613 | 80 | 47.5677 | 0.493776 | 0.062348 | 0 | 0.24307 | 0 | 0 | 0.005044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010661 | null | null | 0.004264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91c62dfa43c182285e116d3662ecc53000a59b88 | 188 | py | Python | test_matrix.py | missKatiaPunter/numpy-starter | 0110057852b53cc9bec8f96cc599a9cc4f32fe7f | [
"MIT"
] | null | null | null | test_matrix.py | missKatiaPunter/numpy-starter | 0110057852b53cc9bec8f96cc599a9cc4f32fe7f | [
"MIT"
] | null | null | null | test_matrix.py | missKatiaPunter/numpy-starter | 0110057852b53cc9bec8f96cc599a9cc4f32fe7f | [
"MIT"
] | 1 | 2021-08-18T10:49:06.000Z | 2021-08-18T10:49:06.000Z | import pytest
import numpy as np
from matrix import mat_subset
a=np.arange(16).reshape(4,4)
def test_smoke():
assert 1+1==2
def test_mat_subset():
assert mat_subset([a]) == 9
| 13.428571 | 31 | 0.696809 | 34 | 188 | 3.705882 | 0.617647 | 0.214286 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.180851 | 188 | 13 | 32 | 14.461538 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.625 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
91dd2e735069e8ad0bdabdb317835f94af79727d | 651 | py | Python | simple_calc.py | ka-suvorov/calcs | 7c740f86202c1092fe8be2123609c4e463dcd801 | [
"MIT"
] | null | null | null | simple_calc.py | ka-suvorov/calcs | 7c740f86202c1092fe8be2123609c4e463dcd801 | [
"MIT"
] | null | null | null | simple_calc.py | ka-suvorov/calcs | 7c740f86202c1092fe8be2123609c4e463dcd801 | [
"MIT"
] | null | null | null | #Simple calc
operations_math = ['+', '-', '*', '/']
print('This is simle calc')
try:
a = float(input('a = '))
b = float(input('b = '))
choice = input('Please input math operations: +, -, *, / and get result for you')
if choice == operations_math[0]:
print(a+b)
elif choice == operations_math[1]:
... | 24.111111 | 85 | 0.617512 | 89 | 651 | 4.460674 | 0.47191 | 0.176322 | 0.201511 | 0.18136 | 0.2267 | 0.2267 | 0.156171 | 0 | 0 | 0 | 0 | 0.007828 | 0.215054 | 651 | 26 | 86 | 25.038462 | 0.76908 | 0.016897 | 0 | 0 | 0 | 0 | 0.2969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
37eea5753a8da582a5c1230237ffcf172d50db45 | 1,442 | py | Python | tests/charts/retrieveChartTest.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 2 | 2018-03-29T18:21:01.000Z | 2022-02-08T10:49:47.000Z | tests/charts/retrieveChartTest.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 7 | 2018-09-03T12:31:52.000Z | 2022-02-01T08:25:09.000Z | tests/charts/retrieveChartTest.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 2 | 2020-12-22T09:51:07.000Z | 2021-12-13T15:37:14.000Z | from seatsio.domain import Chart
from tests.seatsioClientTest import SeatsioClientTest
from tests.util.asserts import assert_that
class RetrieveChartTest(SeatsioClientTest):
def test(self):
chart = self.client.charts.create()
self.client.charts.add_tag(chart.key, "tag1")
self.client.chart... | 42.411765 | 99 | 0.739945 | 187 | 1,442 | 5.411765 | 0.31016 | 0.179842 | 0.206522 | 0.26087 | 0.513834 | 0.444664 | 0.126482 | 0 | 0 | 0 | 0 | 0.006557 | 0.153953 | 1,442 | 33 | 100 | 43.69697 | 0.822951 | 0 | 0 | 0.08 | 0 | 0 | 0.027739 | 0 | 0 | 0 | 0 | 0 | 0.48 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.24 | 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 |
37fd0322847c083a3eb19f16486f5323691d93fb | 1,266 | py | Python | containers/base/python/worker/worker_base.py | m4rc1e/fontbakery-dashboard | 843efafc8c51b0d3905e552638b570bc22a4a5ad | [
"Apache-2.0"
] | 26 | 2017-05-10T12:45:51.000Z | 2021-04-30T18:39:04.000Z | containers/base/python/worker/worker_base.py | m4rc1e/fontbakery-dashboard | 843efafc8c51b0d3905e552638b570bc22a4a5ad | [
"Apache-2.0"
] | 157 | 2017-05-09T20:23:54.000Z | 2021-04-30T18:37:33.000Z | containers/base/python/worker/worker_base.py | m4rc1e/fontbakery-dashboard | 843efafc8c51b0d3905e552638b570bc22a4a5ad | [
"Apache-2.0"
] | 8 | 2017-05-26T00:21:29.000Z | 2020-06-26T09:43:58.000Z | #!/usr/bin/env python
from __future__ import print_function, division, unicode_literals
class WorkerError(Exception):
pass
class PreparationError(WorkerError):
pass
class WorkerBase:
"""In a sub-class define `__init__`, it's properties names are used
for dependency injection. Have a look into worker-launch... | 30.878049 | 85 | 0.701422 | 177 | 1,266 | 4.943503 | 0.553672 | 0.036571 | 0.041143 | 0.029714 | 0.075429 | 0.075429 | 0.075429 | 0 | 0 | 0 | 0 | 0 | 0.21169 | 1,266 | 40 | 86 | 31.65 | 0.876754 | 0.515798 | 0 | 0.153846 | 0 | 0 | 0.280357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.153846 | 0.076923 | 0 | 0.538462 | 0.076923 | 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 |
531968c365ee0c4302d1b3a27a0995edd0eff29d | 8,917 | py | Python | scamp_python_module/coopeliaAPI/sendMovementSequence-pts.py | yananliusdu/scamp5d_interface | c922f72a63d9dae1fecfa90a5051e08ce1f6facf | [
"MIT"
] | 2 | 2022-03-14T16:01:53.000Z | 2022-03-25T09:14:21.000Z | scamp_python_module/coopeliaAPI/sendMovementSequence-pts.py | yananliusdu/scamp5d_interface | c922f72a63d9dae1fecfa90a5051e08ce1f6facf | [
"MIT"
] | null | null | null | scamp_python_module/coopeliaAPI/sendMovementSequence-pts.py | yananliusdu/scamp5d_interface | c922f72a63d9dae1fecfa90a5051e08ce1f6facf | [
"MIT"
] | 1 | 2022-03-25T07:16:57.000Z | 2022-03-25T07:16:57.000Z | import b0RemoteApi
import time
import math
with b0RemoteApi.RemoteApiClient('b0RemoteApi_pythonClient','b0RemoteApi',60) as client:
client.executedMovId='notReady'
targetArm='threadedBlueArm'
#targetArm='nonThreadedRedArm'
stringSignalName=targetArm+'_executedMovId'
def waitForMovementEx... | 148.616667 | 844 | 0.660312 | 2,506 | 8,917 | 2.347167 | 0.179968 | 0.030602 | 0.033152 | 0.034002 | 0.536042 | 0.534512 | 0.533832 | 0.527542 | 0.521081 | 0.518361 | 0 | 0.548042 | 0.034765 | 8,917 | 59 | 845 | 151.135593 | 0.135355 | 0.031401 | 0 | 0 | 0 | 0 | 0.025267 | 0.011242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
531ff2c18ffde8b8c449c40afe94c6fcbb34972b | 1,100 | py | Python | web/transiq/supplier/migrations/0010_auto_20180425_2017.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | web/transiq/supplier/migrations/0010_auto_20180425_2017.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | 14 | 2020-06-05T23:06:45.000Z | 2022-03-12T00:00:18.000Z | web/transiq/supplier/migrations/0010_auto_20180425_2017.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-25 20:17
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('supplier', '0009_auto_20180425_1754'),
]
operations = [
migrations.RemoveField(
... | 26.190476 | 54 | 0.587273 | 84 | 1,100 | 7.47619 | 0.5 | 0.167197 | 0.207006 | 0.238854 | 0.531847 | 0.531847 | 0.382166 | 0.251592 | 0.251592 | 0 | 0 | 0.043651 | 0.312727 | 1,100 | 41 | 55 | 26.829268 | 0.787037 | 0.061818 | 0 | 0.676471 | 1 | 0 | 0.249757 | 0.131195 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5327706d846766fca19a09d1f37dc05a941fdbcf | 307 | py | Python | srfnef/postprocess/imgq/index_recon/__init__.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | srfnef/postprocess/imgq/index_recon/__init__.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | srfnef/postprocess/imgq/index_recon/__init__.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | from .background_variability import sd, bv, snr2, noise1, noise2
from .contrast import contrast_hot, contrast_cold, crc1, crc2, cnr1, cnr2, snr1, se, nsd, ai
from .spatial_resolution import fwhm_x, fwtm_x, fwhm_y, fwtm_y, fwhm_z, fwtm_z, sd_rc
from .uniformity import positive_deviation, negative_deviation
| 61.4 | 92 | 0.80456 | 49 | 307 | 4.77551 | 0.653061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02952 | 0.117264 | 307 | 4 | 93 | 76.75 | 0.833948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
533226d029b616c0db765d2046a147b8baabdb1e | 259 | py | Python | src/masonite/inertia/helpers.py | josephmancuso/masonite-inertia | 24de317c727bd058a2f6e5537209ca66efb681bb | [
"MIT"
] | 15 | 2020-09-27T18:51:35.000Z | 2022-02-13T11:12:42.000Z | src/masonite/inertia/helpers.py | josephmancuso/masonite-inertia | 24de317c727bd058a2f6e5537209ca66efb681bb | [
"MIT"
] | 90 | 2020-09-27T18:28:27.000Z | 2022-03-21T12:25:26.000Z | src/masonite/inertia/helpers.py | josephmancuso/masonite-inertia | 24de317c727bd058a2f6e5537209ca66efb681bb | [
"MIT"
] | 2 | 2020-12-31T02:31:29.000Z | 2021-04-22T17:13:20.000Z | from jinja2 import Markup
def inertia(page_data, app_id="app"):
"""Inertia view helper to render a div with page data required by client-side
Inertia.js adapter."""
return Markup("<div id='{0}' data-page='{1}'></div>".format(app_id, page_data))
| 32.375 | 83 | 0.687259 | 42 | 259 | 4.142857 | 0.642857 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013761 | 0.158301 | 259 | 7 | 84 | 37 | 0.784404 | 0.362934 | 0 | 0 | 0 | 0 | 0.251613 | 0.141935 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
53349ecb45e60765f728d6ac9c16eab7f819cc77 | 285 | py | Python | ddtrace/contrib/tornado/compat.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | null | null | null | ddtrace/contrib/tornado/compat.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | null | null | null | ddtrace/contrib/tornado/compat.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | null | null | null | from ..util import require_modules
optional_modules = ['concurrent.futures']
with require_modules(optional_modules) as missing_modules:
# detect if concurrent.futures is available as a Python
# stdlib or Python 2.7 backport
futures_available = len(missing_modules) == 0
| 28.5 | 59 | 0.768421 | 38 | 285 | 5.578947 | 0.631579 | 0.132075 | 0.207547 | 0.273585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0.161404 | 285 | 9 | 60 | 31.666667 | 0.874477 | 0.291228 | 0 | 0 | 0 | 0 | 0.090452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
534564f57055ecab7a48438bb79dd0eb62d61ba2 | 104 | py | Python | custom_components/airos/airos_api/apis/enums/endpoints.py | kmstumpff/hass-airos | a04573da740678b2c86ff61ed748e3dfdb005a3c | [
"Apache-2.0"
] | null | null | null | custom_components/airos/airos_api/apis/enums/endpoints.py | kmstumpff/hass-airos | a04573da740678b2c86ff61ed748e3dfdb005a3c | [
"Apache-2.0"
] | null | null | null | custom_components/airos/airos_api/apis/enums/endpoints.py | kmstumpff/hass-airos | a04573da740678b2c86ff61ed748e3dfdb005a3c | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class Endpoints(str, Enum):
AUTH = "/api/auth"
STATUS = "/status.cgi"
| 13 | 27 | 0.625 | 14 | 104 | 4.642857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240385 | 104 | 8 | 28 | 13 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5349eee01ecb46c5626e62f3cbb837001b2cfcd7 | 573 | py | Python | propagate_go.py | gozsari/Go_Propagation | 7cbb0c63a22d20a78a923da03cf9a9115febc5d0 | [
"MIT"
] | 3 | 2021-04-24T15:13:05.000Z | 2021-10-04T02:53:32.000Z | propagate_go.py | gozsari/Go_Propagation | 7cbb0c63a22d20a78a923da03cf9a9115febc5d0 | [
"MIT"
] | null | null | null | propagate_go.py | gozsari/Go_Propagation | 7cbb0c63a22d20a78a923da03cf9a9115febc5d0 | [
"MIT"
] | null | null | null | def propagate_go(go_id, parent_set, go_term_dict):
if len(go_term_dict[go_id]) == 0:
return parent_set
for parent in go_term_dict[go_id]:
parent_set.add(parent)
for parent in go_term_dict[go_id]:
propagate_go(parent, parent_set, go_term_dict)
return parent_set
def form_all_go_pa... | 30.157895 | 66 | 0.706806 | 97 | 573 | 3.71134 | 0.185567 | 0.225 | 0.222222 | 0.166667 | 0.580556 | 0.427778 | 0.327778 | 0.327778 | 0.188889 | 0 | 0 | 0.002232 | 0.21815 | 573 | 18 | 67 | 31.833333 | 0.801339 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.333333 | 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 |
534a4ddf499740ba6a365bedef39422ddf7cc8a0 | 157 | py | Python | Codes/Day-094/Space-Invaders/utils.py | MdGhulamAzadAnsari/100-Days-of-Code | 8ff993b2e3f7aecefde28cb443355e5fb4d6fbc6 | [
"MIT"
] | 3 | 2021-01-15T15:49:20.000Z | 2021-03-17T03:17:41.000Z | codes/Day-093/Space-Invaders/utils.py | GhulamAzad/100-Days-of-Code | 9533d80a6bc6ce70123126615f0671f979573a67 | [
"MIT"
] | 2 | 2022-01-16T07:00:38.000Z | 2022-01-16T07:16:57.000Z | codes/Day-093/Space-Invaders/utils.py | GhulamAzad/100-Days-of-Code | 9533d80a6bc6ce70123126615f0671f979573a67 | [
"MIT"
] | null | null | null | def collide(obj1, obj2):
offset_x = obj2.x - obj1.x
offset_y = obj2.y - obj1.y
return obj1.mask.overlap(obj2.mask, (offset_x, offset_y)) != None
| 31.4 | 69 | 0.656051 | 27 | 157 | 3.666667 | 0.407407 | 0.141414 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.197452 | 157 | 4 | 70 | 39.25 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
726094a46ff8b8323f6f91881e06552060e96bf6 | 236 | py | Python | src/common/json.py | Matej-Chmel/any-project-setup | 42af18893441de89879fe2cd769d9c645bcfd7f2 | [
"CC0-1.0"
] | null | null | null | src/common/json.py | Matej-Chmel/any-project-setup | 42af18893441de89879fe2cd769d9c645bcfd7f2 | [
"CC0-1.0"
] | null | null | null | src/common/json.py | Matej-Chmel/any-project-setup | 42af18893441de89879fe2cd769d9c645bcfd7f2 | [
"CC0-1.0"
] | null | null | null | from json import load
from pathlib import Path
def dictFromJSON(p: Path) -> dict:
return JSON(p)
def JSON(p: Path):
with Path(p).open("r", encoding="utf-8") as f:
return load(f)
def listFromJSON(p: Path) -> list:
return JSON(p)
| 18.153846 | 47 | 0.682203 | 41 | 236 | 3.926829 | 0.512195 | 0.093168 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.169492 | 236 | 12 | 48 | 19.666667 | 0.816327 | 0 | 0 | 0.222222 | 0 | 0 | 0.025424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 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 |
72891e808016647ddff779b2d494875a4a4c73d4 | 32,447 | py | Python | third_party/infra_libs/buildbucket/proto/project_config_pb2.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | third_party/infra_libs/buildbucket/proto/project_config_pb2.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | 2 | 2021-03-26T00:29:32.000Z | 2021-04-30T21:29:33.000Z | third_party/infra_libs/buildbucket/proto/project_config_pb2.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: project_config.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import ... | 31.139155 | 2,635 | 0.573427 | 3,359 | 32,447 | 5.264067 | 0.084549 | 0.061532 | 0.053727 | 0.052257 | 0.675659 | 0.629341 | 0.60751 | 0.574426 | 0.563794 | 0.56074 | 0 | 0.047941 | 0.321786 | 32,447 | 1,041 | 2,636 | 31.169068 | 0.755567 | 0.019786 | 0 | 0.744533 | 1 | 0.001988 | 0.15051 | 0.11418 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007952 | 0 | 0.007952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72a152f748d8bc14e7834b2a00919061771a79e2 | 3,245 | py | Python | tests/test_objects.py | jjmontesl/godot_parser | 3b61e83efc67258f1320acf63e7369e8baf4c57b | [
"MIT"
] | null | null | null | tests/test_objects.py | jjmontesl/godot_parser | 3b61e83efc67258f1320acf63e7369e8baf4c57b | [
"MIT"
] | null | null | null | tests/test_objects.py | jjmontesl/godot_parser | 3b61e83efc67258f1320acf63e7369e8baf4c57b | [
"MIT"
] | null | null | null | import unittest
from godot_parser import Color, ExtResource, NodePath, SubResource, Vector2, Vector3
class TestGDObjects(unittest.TestCase):
""" Tests for GD object wrappers """
def test_vector2(self):
""" Test for Vector2 """
v = Vector2(1, 2)
self.assertEqual(v[0], 1)
self... | 28.973214 | 84 | 0.510324 | 478 | 3,245 | 3.433054 | 0.123431 | 0.457038 | 0.204753 | 0.072517 | 0.596587 | 0.388178 | 0.296161 | 0.296161 | 0.296161 | 0.296161 | 0 | 0.076503 | 0.323267 | 3,245 | 111 | 85 | 29.234234 | 0.670765 | 0.056394 | 0 | 0.347826 | 0 | 0 | 0.054117 | 0 | 0 | 0 | 0 | 0 | 0.565217 | 1 | 0.076087 | false | 0 | 0.021739 | 0 | 0.108696 | 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 |
72a93f5b22fb7cf254a45591dc3bd126b5ef48eb | 301 | py | Python | jira_analysis/throughput/chart/exceptions.py | m1lt0n/jira-analysis | 743bbfde64f0820334f974508e37864cf0b0fa2c | [
"MIT"
] | 10 | 2020-06-12T13:33:20.000Z | 2022-01-14T15:33:12.000Z | jira_analysis/throughput/chart/exceptions.py | m1lt0n/jira-analysis | 743bbfde64f0820334f974508e37864cf0b0fa2c | [
"MIT"
] | 6 | 2020-06-03T06:58:15.000Z | 2022-02-10T15:02:30.000Z | jira_analysis/throughput/chart/exceptions.py | m1lt0n/jira-analysis | 743bbfde64f0820334f974508e37864cf0b0fa2c | [
"MIT"
] | 6 | 2020-06-02T15:20:13.000Z | 2021-11-04T08:46:17.000Z | class ChartError(Exception):
"""Raised whenever we have a generic error trying to draw the chart."""
class NoTicketsProvided(ChartError):
"""Raised if we provide no tickets to the chart."""
def __init__(self) -> None:
super().__init__("No tickets provided. Check your config.")
| 30.1 | 75 | 0.694352 | 39 | 301 | 5.153846 | 0.74359 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192691 | 301 | 9 | 76 | 33.444444 | 0.82716 | 0.368771 | 0 | 0 | 0 | 0 | 0.217877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
72e59ecc61ec12165a4ed8d88011c94192e7bb8b | 1,507 | py | Python | jesseData/binance_crypto/strategies/STimingStrategy/__init__.py | Sebastiencreoff/jesse-stack-docker | baf36d8f2d97fc2f02448dfae618fbbb829f4efb | [
"MIT"
] | 1 | 2021-12-17T10:20:58.000Z | 2021-12-17T10:20:58.000Z | jesseData/binance_crypto/strategies/STimingStrategy/__init__.py | Sebastiencreoff/jesse-stack-docker | baf36d8f2d97fc2f02448dfae618fbbb829f4efb | [
"MIT"
] | null | null | null | jesseData/binance_crypto/strategies/STimingStrategy/__init__.py | Sebastiencreoff/jesse-stack-docker | baf36d8f2d97fc2f02448dfae618fbbb829f4efb | [
"MIT"
] | 2 | 2021-12-17T10:52:59.000Z | 2022-01-21T11:19:32.000Z | import jesse.indicators as ta
from jesse import utils
from jesse.strategies import Strategy, cached
STOP_LOSS_PERCENT = 0.05
CAPITAL_PERCENT = 0.1
PIKE_PERCENT = 5
def calculate_percent(value: float, reference: float) -> float:
return (abs(value - reference) / reference) * 100
class STimingStrategy(Strategy):
... | 28.980769 | 83 | 0.650962 | 192 | 1,507 | 4.859375 | 0.354167 | 0.082529 | 0.157556 | 0.202572 | 0.151125 | 0.086817 | 0.086817 | 0.086817 | 0 | 0 | 0 | 0.016245 | 0.264764 | 1,507 | 51 | 84 | 29.54902 | 0.825812 | 0.036496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.027778 | 0.083333 | 0.111111 | 0.444444 | 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 |
72fbc10b209cc60b2315d901da466e55f4859ba3 | 2,767 | py | Python | corehq/apps/userreports/data_source_providers.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/userreports/data_source_providers.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/userreports/data_source_providers.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from abc import ABCMeta, abstractmethod
from corehq.apps.userreports.dbaccessors import get_all_registry_data_source_ids, \
get_registry_data_sources_modified_since
from corehq.apps.userreports.models import (
DataSourceConfiguration,
StaticDataSourceConfiguration, RegistryDataSourceConfiguration,
)
from d... | 33.743902 | 110 | 0.73979 | 317 | 2,767 | 6.097792 | 0.239748 | 0.125194 | 0.079152 | 0.099327 | 0.446456 | 0.41076 | 0.318158 | 0.240559 | 0.190895 | 0.114847 | 0 | 0 | 0.192266 | 2,767 | 81 | 111 | 34.160494 | 0.864877 | 0.045537 | 0 | 0.363636 | 0 | 0 | 0.027376 | 0.027376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236364 | false | 0.036364 | 0.072727 | 0.127273 | 0.563636 | 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 |
f41873d165f3e594a57f8d67762a7c2011f0d2a3 | 1,647 | py | Python | 03_Strings/11_AlphabetRangoli.py | vibhorsingh11/hackerrank-python | e00c1198c527f503f6146ab7477a54b0572d3f91 | [
"MIT"
] | null | null | null | 03_Strings/11_AlphabetRangoli.py | vibhorsingh11/hackerrank-python | e00c1198c527f503f6146ab7477a54b0572d3f91 | [
"MIT"
] | null | null | null | 03_Strings/11_AlphabetRangoli.py | vibhorsingh11/hackerrank-python | e00c1198c527f503f6146ab7477a54b0572d3f91 | [
"MIT"
] | null | null | null | """
You are given an integer, N. Your task is to print an alphabet rangoli of size N. (Rangoli is a form of Indian folk art based on creation
of patterns.)
Different sizes of alphabet rangoli are shown below:
#size 3
----c----
--c-b-c--
c-b-a-b-c
--c-b-c--
----c----
#size 5
--------e--------
------e-d-e------
---... | 24.58209 | 138 | 0.419551 | 352 | 1,647 | 1.931818 | 0.210227 | 0.052941 | 0.075 | 0.094118 | 0.345588 | 0.314706 | 0.314706 | 0.314706 | 0.314706 | 0.285294 | 0 | 0.006906 | 0.120826 | 1,647 | 66 | 139 | 24.954545 | 0.462707 | 0.802064 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.272727 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f41aa957c5878917ade8849ed33aa5df54869e6c | 1,341 | py | Python | core/models.py | uadson/django-api-user-register | d09415c84e5a563566e83c544dd9edf47d991280 | [
"MIT"
] | 1 | 2021-11-17T02:41:45.000Z | 2021-11-17T02:41:45.000Z | core/models.py | uadson/django-api-user-register | d09415c84e5a563566e83c544dd9edf47d991280 | [
"MIT"
] | 2 | 2021-11-16T15:37:39.000Z | 2021-11-16T15:37:51.000Z | core/models.py | uadson/django-api-user-register | d09415c84e5a563566e83c544dd9edf47d991280 | [
"MIT"
] | null | null | null | # Custom User
from django.contrib.auth.models import AbstractUser
# App Models
from django.db import models
# Timezone
from django.utils import timezone
# Module for generate password
import uuid
class User(AbstractUser):
pass
class Base(models.Model):
"""Model Base that repeat in all models"""
creat... | 24.833333 | 102 | 0.644295 | 164 | 1,341 | 5.152439 | 0.493902 | 0.042604 | 0.049704 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005946 | 0.247576 | 1,341 | 53 | 103 | 25.301887 | 0.831516 | 0.181954 | 0 | 0 | 1 | 0 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.166667 | 0.133333 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f41b26bae0c7373bdef7528103e8357362ea4a91 | 247 | py | Python | cracking_the_coding_interview_qs/8.12/print_8_queens_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/8.12/print_8_queens_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/8.12/print_8_queens_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | import unittest
from print_8_queens import print_8_queens
class Test_Case_print_8_queens(unittest.TestCase):
def test_print_8_queens(self):
num_ans = [0]
print_8_queens(num_ans=num_ans)
self.assertEqual(num_ans[0], 92) | 30.875 | 50 | 0.744939 | 40 | 247 | 4.175 | 0.425 | 0.179641 | 0.359281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044335 | 0.178138 | 247 | 8 | 51 | 30.875 | 0.778325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.571429 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f4223bf48a2959bd0eb48d8d71001e4b1e66b00b | 4,716 | py | Python | GPy/kern/_src/static.py | strongh/GPy | 775ce9e64c1e8f472083b8f2430134047d97b2fa | [
"BSD-3-Clause"
] | 1 | 2015-08-06T13:47:10.000Z | 2015-08-06T13:47:10.000Z | GPy/kern/_src/static.py | strongh/GPy | 775ce9e64c1e8f472083b8f2430134047d97b2fa | [
"BSD-3-Clause"
] | null | null | null | GPy/kern/_src/static.py | strongh/GPy | 775ce9e64c1e8f472083b8f2430134047d97b2fa | [
"BSD-3-Clause"
] | 1 | 2021-12-09T01:31:17.000Z | 2021-12-09T01:31:17.000Z | # Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from kern import Kern
import numpy as np
from ...core.parameterization import Param
from ...core.parameterization.transformations import Logexp
class Static(Kern):
def __init__(self, input_dim, varian... | 38.341463 | 129 | 0.674936 | 668 | 4,716 | 4.558383 | 0.161677 | 0.078818 | 0.075862 | 0.053202 | 0.621675 | 0.579967 | 0.464696 | 0.444335 | 0.422989 | 0.387849 | 0 | 0.018848 | 0.20123 | 4,716 | 122 | 130 | 38.655738 | 0.789488 | 0.069338 | 0 | 0.385542 | 0 | 0 | 0.008992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.349398 | false | 0 | 0.048193 | 0.120482 | 0.662651 | 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 |
f423dec36afb9d4525209df0cb8ddbe74870700a | 1,371 | py | Python | tests/test_platforms.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | 3 | 2016-04-20T21:24:59.000Z | 2021-11-17T10:58:49.000Z | tests/test_platforms.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | null | null | null | tests/test_platforms.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | null | null | null | from unittest import TestCase
import platform
from ipkg.platforms import Platform, InvalidPlatform
class TestPlatform(TestCase):
def test_str(self):
p = Platform('a', 'b', 'c')
self.assertEqual(str(p), 'a-b-c')
def test_eq(self):
p = Platform('a', 'b', 'c')
self.assertEqual(... | 29.804348 | 77 | 0.601751 | 182 | 1,371 | 4.445055 | 0.230769 | 0.278121 | 0.217553 | 0.111248 | 0.31026 | 0.133498 | 0.076638 | 0.076638 | 0 | 0 | 0 | 0.013359 | 0.235594 | 1,371 | 45 | 78 | 30.466667 | 0.758588 | 0 | 0 | 0.057143 | 0 | 0 | 0.081692 | 0 | 0 | 0 | 0 | 0 | 0.514286 | 1 | 0.2 | false | 0 | 0.085714 | 0 | 0.314286 | 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 |
f427db70bd25b8214dfb5543732c22edd000bd95 | 15,191 | py | Python | gewittergefahr/deep_learning/backwards_optimization_test.py | dopplerchase/GewitterGefahr | 4415b08dd64f37eba5b1b9e8cc5aa9af24f96593 | [
"MIT"
] | 26 | 2018-10-04T01:07:35.000Z | 2022-01-29T08:49:32.000Z | gewittergefahr/deep_learning/backwards_optimization_test.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 4 | 2017-12-25T02:01:08.000Z | 2018-12-19T01:54:21.000Z | gewittergefahr/deep_learning/backwards_optimization_test.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 11 | 2017-12-10T23:05:29.000Z | 2022-01-29T08:49:33.000Z | """Unit tests for backwards_optimization.py."""
import unittest
import numpy
import pandas
from gewittergefahr.gg_utils import radar_utils
from gewittergefahr.gg_utils import soundings
from gewittergefahr.deep_learning import cnn
from gewittergefahr.deep_learning import backwards_optimization as backwards_opt
from gew... | 37.416256 | 80 | 0.730762 | 2,023 | 15,191 | 5.081562 | 0.088482 | 0.048638 | 0.040467 | 0.03035 | 0.833366 | 0.752724 | 0.700875 | 0.630447 | 0.543969 | 0.519066 | 0 | 0.043632 | 0.180765 | 15,191 | 405 | 81 | 37.508642 | 0.782403 | 0.110987 | 0 | 0.352518 | 0 | 0 | 0.001817 | 0 | 0 | 0 | 0 | 0 | 0.046763 | 1 | 0.046763 | false | 0 | 0.032374 | 0 | 0.082734 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f42efde6221a520e0c9e72accadf7e9b0ee16bef | 147 | py | Python | core/recc/packet/plugin.py | bogonets/answer | 57f892a9841980bcbc35fa1e27521b34cd94bc25 | [
"MIT"
] | 3 | 2021-06-20T02:24:10.000Z | 2022-01-26T23:55:33.000Z | core/recc/packet/plugin.py | bogonets/answer | 57f892a9841980bcbc35fa1e27521b34cd94bc25 | [
"MIT"
] | null | null | null | core/recc/packet/plugin.py | bogonets/answer | 57f892a9841980bcbc35fa1e27521b34cd94bc25 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from dataclasses import dataclass
@dataclass
class PluginA:
name: str
@dataclass
class PluginNameA:
name: str
| 10.5 | 33 | 0.680272 | 17 | 147 | 5.882353 | 0.705882 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.217687 | 147 | 13 | 34 | 11.307692 | 0.86087 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f4511376e4bcc8ef6bd9594917d59341cf050367 | 177 | py | Python | main.py | zquaa/league-refresher | 1115291ee1b8b5b2fb80dac83e05686adc492189 | [
"MIT"
] | null | null | null | main.py | zquaa/league-refresher | 1115291ee1b8b5b2fb80dac83e05686adc492189 | [
"MIT"
] | null | null | null | main.py | zquaa/league-refresher | 1115291ee1b8b5b2fb80dac83e05686adc492189 | [
"MIT"
] | null | null | null | import psutil
for process in psutil.process_iter():
try:
if process.name() == "LeagueClientUxRender.exe":
process.kill()
except:
pass | 22.125 | 57 | 0.576271 | 18 | 177 | 5.611111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322034 | 177 | 8 | 58 | 22.125 | 0.841667 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 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 |
f464120518f272ae69a5358ddf7206f67aa60e5e | 716 | py | Python | utils/var_dim.py | Dai-z/pytorch-superpoint | 90e71045238fdcce13f9f0d02bdd0e1126145a10 | [
"MIT"
] | 390 | 2019-12-16T07:36:02.000Z | 2022-03-29T07:27:32.000Z | utils/var_dim.py | Dai-z/pytorch-superpoint | 90e71045238fdcce13f9f0d02bdd0e1126145a10 | [
"MIT"
] | 69 | 2019-12-14T20:38:44.000Z | 2022-03-25T12:53:21.000Z | utils/var_dim.py | Dai-z/pytorch-superpoint | 90e71045238fdcce13f9f0d02bdd0e1126145a10 | [
"MIT"
] | 98 | 2020-01-07T04:29:17.000Z | 2022-03-30T16:09:31.000Z | """change the dimension of tensor/ numpy array
"""
import numpy as np
import torch
# from utils.var_dim import to3dim
def to3dim(img):
if img.ndim == 2:
img = img[:, :, np.newaxis]
return img
# torch
# from utils.var_dim import tensorto4d
def tensorto4d(inp):
if len(inp.shape) == 2:
inp... | 23.096774 | 67 | 0.659218 | 110 | 716 | 4.236364 | 0.345455 | 0.120172 | 0.103004 | 0.128755 | 0.293991 | 0.248927 | 0.081545 | 0 | 0 | 0 | 0 | 0.026087 | 0.196927 | 716 | 31 | 68 | 23.096774 | 0.784348 | 0.280726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f46b2ee099757dabe1b8b2f33cf1065ac41fb779 | 135 | py | Python | Matt/OldScripts/cat.py | chrisburch96/LearningLAMOST | 082f1be6841828d6b62982cc11a043005d877668 | [
"MIT"
] | 1 | 2019-01-04T14:55:48.000Z | 2019-01-04T14:55:48.000Z | Matt/OldScripts/cat.py | chrisburch96/LearningLAMOST | 082f1be6841828d6b62982cc11a043005d877668 | [
"MIT"
] | null | null | null | Matt/OldScripts/cat.py | chrisburch96/LearningLAMOST | 082f1be6841828d6b62982cc11a043005d877668 | [
"MIT"
] | 1 | 2018-10-09T15:46:43.000Z | 2018-10-09T15:46:43.000Z | import pandas as pd
import glob
df = pd.concat([pd.read_csv(x, sep = ',') for x in glob.glob('*.csv')])
df.to_csv('../spectra.csv')
| 16.875 | 71 | 0.62963 | 25 | 135 | 3.32 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 135 | 7 | 72 | 19.285714 | 0.721739 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 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 |
f46da8139cf6b4e3556d72ba98168c1400ba1e4f | 395 | py | Python | thinker/core/questionscreator/creatorgoodregularquestion.py | julianandres-eb/guess-number | 8807674858d76b0ed28c2279eb387a1ea979ffe2 | [
"MIT"
] | null | null | null | thinker/core/questionscreator/creatorgoodregularquestion.py | julianandres-eb/guess-number | 8807674858d76b0ed28c2279eb387a1ea979ffe2 | [
"MIT"
] | null | null | null | thinker/core/questionscreator/creatorgoodregularquestion.py | julianandres-eb/guess-number | 8807674858d76b0ed28c2279eb387a1ea979ffe2 | [
"MIT"
] | 1 | 2019-11-22T19:11:43.000Z | 2019-11-22T19:11:43.000Z | from thinker.model.question.questiongoodregular import QuestionGoodregular
from .questioncreator import QuestionCreator
class CreatorGoodregularQuestion(QuestionCreator):
# Override the factory method to return an instance of a
# QuestionGoodRegular.
def _createQuestion(self, values):
return Que... | 32.916667 | 92 | 0.777215 | 37 | 395 | 8.27027 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 395 | 11 | 93 | 35.909091 | 0.9 | 0.189873 | 0 | 0 | 0 | 0 | 0.056782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
f475cb0891a2a9a15796327d9ff6f4fe072aa572 | 24,262 | py | Python | is_core/main.py | zamazaljiri/django-is-core | 1f0b2c5fe50d93e20aff4b5d41a7727259b421fd | [
"BSD-3-Clause"
] | null | null | null | is_core/main.py | zamazaljiri/django-is-core | 1f0b2c5fe50d93e20aff4b5d41a7727259b421fd | [
"BSD-3-Clause"
] | null | null | null | is_core/main.py | zamazaljiri/django-is-core | 1f0b2c5fe50d93e20aff4b5d41a7727259b421fd | [
"BSD-3-Clause"
] | null | null | null | """
Core of django-is-core.
Contains controller added between model and UI/REST.
"""
import sys
from collections import OrderedDict
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext_lazy as _
from django.http.response import Http404
from django.core.exceptions import Validat... | 33.932867 | 120 | 0.687412 | 3,227 | 24,262 | 4.824915 | 0.085218 | 0.033911 | 0.040462 | 0.036994 | 0.501156 | 0.412974 | 0.361272 | 0.300771 | 0.245344 | 0.192229 | 0 | 0.001072 | 0.230896 | 24,262 | 715 | 121 | 33.932867 | 0.833333 | 0.044638 | 0 | 0.210421 | 0 | 0 | 0.018831 | 0.001085 | 0 | 0 | 0 | 0.001399 | 0 | 1 | 0.238477 | false | 0.01002 | 0.042084 | 0.188377 | 0.681363 | 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 |
f4882b59edca5c4e1e4340a06252f21a68754e37 | 1,354 | py | Python | eternal-storage/tests/test_social_site_v2.py | AgentFUD/evm-smart-contract-upgrade-techniques | d1d01ac25b9b1e98971dc194532aa028525242db | [
"MIT"
] | 1 | 2021-11-25T04:53:13.000Z | 2021-11-25T04:53:13.000Z | eternal-storage/tests/test_social_site_v2.py | AgentFUD/evm-smart-contract-upgrade-techniques | d1d01ac25b9b1e98971dc194532aa028525242db | [
"MIT"
] | null | null | null | eternal-storage/tests/test_social_site_v2.py | AgentFUD/evm-smart-contract-upgrade-techniques | d1d01ac25b9b1e98971dc194532aa028525242db | [
"MIT"
] | null | null | null | import brownie
def test_storage_keeps_values_if_switched_to_v2(social_site_contract_v2):
orig = social_site_contract_v2[0]
updated = social_site_contract_v2[1]
orig.like("https://orno.io/article")
orig.disLike("https://myblog.io/article")
assert orig.getLikes("https://orno.io/article") == 1
... | 32.238095 | 73 | 0.716396 | 189 | 1,354 | 4.899471 | 0.21164 | 0.136069 | 0.174946 | 0.194384 | 0.909287 | 0.825054 | 0.696544 | 0.531317 | 0.531317 | 0.434125 | 0 | 0.022279 | 0.138109 | 1,354 | 41 | 74 | 33.02439 | 0.771208 | 0 | 0 | 0.538462 | 0 | 0 | 0.293205 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.115385 | false | 0 | 0.038462 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be569e1051f3ab040cd49bfbc502d819a221fcee | 124 | py | Python | python/test-data/testTypesCollections1.py | Panteon32Om/write-your-python-program | 615b73113466c1c8f901fad0a076b480f62ad437 | [
"BSD-3-Clause"
] | 1 | 2021-09-30T10:17:57.000Z | 2021-09-30T10:17:57.000Z | python/test-data/testTypesCollections1.py | Panteon32Om/write-your-python-program | 615b73113466c1c8f901fad0a076b480f62ad437 | [
"BSD-3-Clause"
] | 47 | 2020-11-16T14:02:52.000Z | 2022-03-18T12:44:38.000Z | python/test-data/testTypesCollections1.py | Panteon32Om/write-your-python-program | 615b73113466c1c8f901fad0a076b480f62ad437 | [
"BSD-3-Clause"
] | 4 | 2020-10-28T13:54:44.000Z | 2022-01-20T17:36:24.000Z | from wypp import *
def appendSomething(l: list[int]) -> None:
l.append("foo")
l = [1,2,3]
appendSomething(l)
print(l)
| 13.777778 | 42 | 0.645161 | 20 | 124 | 4 | 0.75 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.169355 | 124 | 8 | 43 | 15.5 | 0.747573 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be56bd47b26ec80fa1036fe9edcb48fdfd636094 | 260 | py | Python | Python/Mundo 1/ex031.py | henrique-tavares/Coisas | f740518b1bedec5b0ea8c12ae07a2cac21eb51ae | [
"MIT"
] | 1 | 2020-02-07T20:39:26.000Z | 2020-02-07T20:39:26.000Z | Python/Mundo 1/ex031.py | neptune076/Coisas | 85c064cc0e134465aaf6ef41acf747d47f108fc9 | [
"MIT"
] | null | null | null | Python/Mundo 1/ex031.py | neptune076/Coisas | 85c064cc0e134465aaf6ef41acf747d47f108fc9 | [
"MIT"
] | null | null | null | dist = float(input("\nQual a distancia da viagem em km? "))
if (dist > 200):
print("\nO preço da sua passagem será de R${:.2f}".format(dist*0.45), end="\n\n")
else:
print("\nO preço da sua passagem será de R${:.2f}".format(dist*0.5), end="\n\n")
| 32.5 | 85 | 0.603846 | 48 | 260 | 3.270833 | 0.583333 | 0.089172 | 0.152866 | 0.178344 | 0.573248 | 0.573248 | 0.573248 | 0.573248 | 0.573248 | 0.573248 | 0 | 0.046948 | 0.180769 | 260 | 7 | 86 | 37.142857 | 0.690141 | 0 | 0 | 0 | 0 | 0 | 0.492308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0 | 0 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
be5b298fabdaaef84d72b16547a6a531ede31729 | 4,002 | py | Python | tsplib95/tests/test_models.py | michael-ritter/assignments-ma4502-S2019 | dd40371d72a2cc8c8c3b505d073e02dbe1bbec49 | [
"Apache-2.0"
] | null | null | null | tsplib95/tests/test_models.py | michael-ritter/assignments-ma4502-S2019 | dd40371d72a2cc8c8c3b505d073e02dbe1bbec49 | [
"Apache-2.0"
] | null | null | null | tsplib95/tests/test_models.py | michael-ritter/assignments-ma4502-S2019 | dd40371d72a2cc8c8c3b505d073e02dbe1bbec49 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from unittest import mock
import pytest
from tsplib95 import models
def create_problem(**kwargs):
p = models.Problem()
# set attributes after creation intentionally
for k, v in kwargs.items():
setattr(p, k, v)
return p
@pytest.mark.parametrize('problem,correct', [
... | 39.235294 | 115 | 0.742379 | 529 | 4,002 | 5.287335 | 0.120983 | 0.185913 | 0.115481 | 0.13157 | 0.845191 | 0.769038 | 0.735073 | 0.665356 | 0.644977 | 0.544154 | 0 | 0.001127 | 0.113193 | 4,002 | 101 | 116 | 39.623762 | 0.786982 | 0.016242 | 0 | 0.367089 | 0 | 0 | 0.08846 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 1 | 0.113924 | false | 0 | 0.037975 | 0 | 0.164557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be5b623be49cca0331b25087894eb5f55281a6c2 | 251 | py | Python | chunkflow/plugins/median_filter.py | julesberman/chunkflow | c6af0d036bc2f308c64c591d49c94c414c569241 | [
"Apache-2.0"
] | 36 | 2019-03-20T21:58:15.000Z | 2022-03-28T08:40:59.000Z | chunkflow/plugins/median_filter.py | julesberman/chunkflow | c6af0d036bc2f308c64c591d49c94c414c569241 | [
"Apache-2.0"
] | 96 | 2019-01-23T14:49:18.000Z | 2022-03-21T19:54:20.000Z | chunkflow/plugins/median_filter.py | julesberman/chunkflow | c6af0d036bc2f308c64c591d49c94c414c569241 | [
"Apache-2.0"
] | 7 | 2019-03-25T19:32:19.000Z | 2021-07-20T19:39:03.000Z |
import numpy as np
from scipy.ndimage import median_filter
def execute(chunk: np.ndarray, size: tuple=(3,1,1), mode: str='reflect'):
print('median filtering of chunk...')
chunk = median_filter(chunk, size=size, mode=mode)
return [chunk]
| 27.888889 | 73 | 0.705179 | 38 | 251 | 4.605263 | 0.631579 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0.159363 | 251 | 8 | 74 | 31.375 | 0.815166 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
be98fdfceb8509a2e57c592bf8ee4aa035d959ce | 202 | py | Python | setup.py | neurospin/neurospin_to_bids | 629e434ac2d1cf2c0722c8f281588efbcf28572e | [
"CECILL-B"
] | null | null | null | setup.py | neurospin/neurospin_to_bids | 629e434ac2d1cf2c0722c8f281588efbcf28572e | [
"CECILL-B"
] | 13 | 2021-02-23T13:31:03.000Z | 2022-02-14T16:46:40.000Z | setup.py | neurospin/neurospin_to_bids | 629e434ac2d1cf2c0722c8f281588efbcf28572e | [
"CECILL-B"
] | null | null | null | # All build configuration is contained in setup.cfg.
#
# This file is present for compatibility with legacy builds (i.e. those not
# using the PEP 517 build API).
import setuptools
setuptools.setup()
| 22.444444 | 75 | 0.762376 | 31 | 202 | 4.967742 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.168317 | 202 | 8 | 76 | 25.25 | 0.89881 | 0.762376 | 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 |
bebeb021d4ce065302bd168b93a55034c040533c | 894 | py | Python | col/generators.py | iehoshia/discipulado | dade1f7ceca4ff07f7e09529605bfac385e22f9e | [
"Apache-2.0"
] | null | null | null | col/generators.py | iehoshia/discipulado | dade1f7ceca4ff07f7e09529605bfac385e22f9e | [
"Apache-2.0"
] | null | null | null | col/generators.py | iehoshia/discipulado | dade1f7ceca4ff07f7e09529605bfac385e22f9e | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) Elliot Peele <elliot@bentlogic.net>
#
# This program is distributed under the terms of the MIT License as found
# in a file called LICENSE. If it is not present, the license
# is always available at http://www.opensource.org/licenses/mit-license.php.
#
# This program is distributed in the hope that it... | 26.294118 | 76 | 0.731544 | 135 | 894 | 4.740741 | 0.548148 | 0.04375 | 0.040625 | 0.075 | 0.0875 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0.00406 | 0.173378 | 894 | 33 | 77 | 27.090909 | 0.861976 | 0.530201 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bec4df9e994286e128357f7607604ca7f84a25a8 | 212 | py | Python | dashboards/superuser/urls.py | Apubra/django-boilerplate | 1936a866a3b8a4cf93fbc631bd15635beef9d62d | [
"MIT"
] | null | null | null | dashboards/superuser/urls.py | Apubra/django-boilerplate | 1936a866a3b8a4cf93fbc631bd15635beef9d62d | [
"MIT"
] | null | null | null | dashboards/superuser/urls.py | Apubra/django-boilerplate | 1936a866a3b8a4cf93fbc631bd15635beef9d62d | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
# path('admin/', admin.site.urls),
path('superuser/', views.SuperUserView.as_view(), name='superuser'),
] | 26.5 | 72 | 0.712264 | 27 | 212 | 5.555556 | 0.555556 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 212 | 8 | 73 | 26.5 | 0.824176 | 0.150943 | 0 | 0 | 0 | 0 | 0.106145 | 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 |
bec884d37755c0e066f49c103f7485f934d97ae7 | 117 | py | Python | exerc016.py | LucasBischof/Praticando_Python | ab14e347228e19ec4ef1ad743e3a469979619f74 | [
"MIT"
] | null | null | null | exerc016.py | LucasBischof/Praticando_Python | ab14e347228e19ec4ef1ad743e3a469979619f74 | [
"MIT"
] | null | null | null | exerc016.py | LucasBischof/Praticando_Python | ab14e347228e19ec4ef1ad743e3a469979619f74 | [
"MIT"
] | null | null | null | import math
num = float(input('digite um valor quebrado: '))
print('O valor inteiro é {} '.format(math.floor(num)))
| 23.4 | 54 | 0.692308 | 18 | 117 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136752 | 117 | 4 | 55 | 29.25 | 0.80198 | 0 | 0 | 0 | 0 | 0 | 0.405172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fe372f1eb6d16b5377f80a9b1cceca23ec8c4a9c | 17 | py | Python | coffeesix/__init__.py | Panurakumara/kuma-vc | e77a2a4231104d712961a649cd647bec8c2549c9 | [
"MIT"
] | 2 | 2021-09-14T12:06:35.000Z | 2021-09-14T12:06:43.000Z | coffeesix/__init__.py | Panurakumara/kuma-vc | e77a2a4231104d712961a649cd647bec8c2549c9 | [
"MIT"
] | null | null | null | coffeesix/__init__.py | Panurakumara/kuma-vc | e77a2a4231104d712961a649cd647bec8c2549c9 | [
"MIT"
] | 2 | 2021-11-27T16:30:29.000Z | 2022-01-30T23:57:46.000Z | bot_username = "" | 17 | 17 | 0.705882 | 2 | 17 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 17 | 1 | 17 | 17 | 0.733333 | 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 |
fe4749b29ceee3487b767b86cecf01ae6c59a126 | 700 | py | Python | src/main/python/vyu/image.py | fruendlab/vyu | a725ca1c694c06c71b686294719349585a3a9bce | [
"MIT"
] | null | null | null | src/main/python/vyu/image.py | fruendlab/vyu | a725ca1c694c06c71b686294719349585a3a9bce | [
"MIT"
] | 1 | 2018-08-21T16:57:25.000Z | 2018-08-21T16:57:25.000Z | src/main/python/vyu/image.py | fruendlab/vyu | a725ca1c694c06c71b686294719349585a3a9bce | [
"MIT"
] | null | null | null | import numpy as np
from scipy.ndimage import label
from skimage.color import rgb2gray
def image2position(img, thres=0.5):
grayscale_img = rgb2gray(img)
x, y = get_brightest_point(grayscale_img)
thresholded = threshold_image(grayscale_img, thres)
connected_clusters, _ = label(thresholded)
centroid ... | 26.923077 | 75 | 0.758571 | 93 | 700 | 5.483871 | 0.419355 | 0.188235 | 0.1 | 0.101961 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008432 | 0.152857 | 700 | 25 | 76 | 28 | 0.851602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.117647 | 0.647059 | 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 |
fe4bbc6ff692115df8d8256c9f98d37f3a190103 | 266 | py | Python | pdf.py | khalednakhleh/hydrogen | 34ea5572764a843b312b4bc4e72df9cb0aed913d | [
"MIT"
] | null | null | null | pdf.py | khalednakhleh/hydrogen | 34ea5572764a843b312b4bc4e72df9cb0aed913d | [
"MIT"
] | null | null | null | pdf.py | khalednakhleh/hydrogen | 34ea5572764a843b312b4bc4e72df9cb0aed913d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 13 13:00:03 2018
@author: Khaled Nakhleh
"""
if __name__ == "__main__":
print("\n\tThis file only contains internal functions. Please use main.py to run the program.\n")
exit | 11.565217 | 101 | 0.635338 | 40 | 266 | 4.025 | 0.925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 0.218045 | 266 | 23 | 102 | 11.565217 | 0.706731 | 0.390977 | 0 | 0 | 0 | 0.333333 | 0.623377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe6136f163423b66448620397731ae06e0341c9d | 234 | py | Python | tweedle/entry.py | sourcery-ai-bot/tweedle | b3b3262a6ac850658282784354a729559d041e63 | [
"MIT"
] | 2 | 2020-02-24T05:47:03.000Z | 2021-03-30T06:58:10.000Z | tweedle/entry.py | sourcery-ai-bot/tweedle | b3b3262a6ac850658282784354a729559d041e63 | [
"MIT"
] | 13 | 2020-02-22T03:36:22.000Z | 2020-04-05T04:39:42.000Z | tweedle/entry.py | StrayDragon/dragon | 796f9ab4f15f9d8f2164621c3b36a478b7a7047d | [
"MIT"
] | 1 | 2021-03-30T06:58:11.000Z | 2021-03-30T06:58:11.000Z | from munch import Munch
from tweedle import PROJECT_NAME
from tweedle.core import cli
def main():
cli(auto_envvar_prefix=PROJECT_NAME, obj=Munch())
if __name__ == "__main__":
# Enable debug by using vimspector
main()
| 16.714286 | 53 | 0.730769 | 33 | 234 | 4.818182 | 0.606061 | 0.138365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 234 | 13 | 54 | 18 | 0.836842 | 0.136752 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fe6ddbcb4188df22079340e5f10dc6c5f98e7310 | 4,087 | py | Python | DFT and Filters/DFT/DFT.py | mehulcparikh/ComputerVision | a5928eb00dd7bbec0f31c22b087af5d3c2a5e1dd | [
"MIT"
] | null | null | null | DFT and Filters/DFT/DFT.py | mehulcparikh/ComputerVision | a5928eb00dd7bbec0f31c22b087af5d3c2a5e1dd | [
"MIT"
] | null | null | null | DFT and Filters/DFT/DFT.py | mehulcparikh/ComputerVision | a5928eb00dd7bbec0f31c22b087af5d3c2a5e1dd | [
"MIT"
] | 1 | 2021-07-16T05:42:26.000Z | 2021-07-16T05:42:26.000Z | # For this part of the assignment, please implement your own code for all computations,
# Do not use inbuilt functions like fft from either numpy, opencv or other libraries
import math
import numpy as np
class DFT:
def forward_transform(self, matrix):
"""Computes the forward Fourier transform of the input... | 35.53913 | 100 | 0.529728 | 505 | 4,087 | 4.275248 | 0.182178 | 0.05836 | 0.045855 | 0.05836 | 0.767948 | 0.713293 | 0.678555 | 0.678555 | 0.627605 | 0.627605 | 0 | 0.014729 | 0.36873 | 4,087 | 114 | 101 | 35.850877 | 0.822093 | 0.305848 | 0 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0 | 0.034483 | 0 | 0.224138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe76114b316bedd0cf94d55c61d353fd6219ee1d | 1,645 | py | Python | python_scripts/01_tabular_data_exploration_ex_01.py | miwojc/scikit-learn-mooc | 1dd1e6110ee037c2ce9b9597d769de5eb25fcffb | [
"CC-BY-4.0"
] | 1 | 2021-05-18T10:03:27.000Z | 2021-05-18T10:03:27.000Z | python_scripts/01_tabular_data_exploration_ex_01.py | datagistips/scikit-learn-mooc | 9eb67c53173218b5cd3061712c827c6a663e425a | [
"CC-BY-4.0"
] | null | null | null | python_scripts/01_tabular_data_exploration_ex_01.py | datagistips/scikit-learn-mooc | 9eb67c53173218b5cd3061712c827c6a663e425a | [
"CC-BY-4.0"
] | 1 | 2021-06-16T16:54:59.000Z | 2021-06-16T16:54:59.000Z | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.6.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %% [markdown]
# # 📝 Exercise M1.01
# %% [markdown... | 25.703125 | 122 | 0.694225 | 226 | 1,645 | 5.022124 | 0.535398 | 0.039648 | 0.057269 | 0.07489 | 0.117181 | 0.051101 | 0 | 0 | 0 | 0 | 0 | 0.007508 | 0.190274 | 1,645 | 63 | 123 | 26.111111 | 0.843844 | 0.930091 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.015873 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe76f64a62469c4a6ce03ba18bcc8d92d786ec1c | 68 | py | Python | javascript-es6-essencial-master/1-introducao-ao-ES6/1-conceitos/1-tipagem-fraca/tipagem-fraca.py | kevinfigueira/Dio-desafio-github-primeiro-repositorio | f729bc9d54b4622b61e08333dfa04a43b323a2a1 | [
"MIT"
] | null | null | null | javascript-es6-essencial-master/1-introducao-ao-ES6/1-conceitos/1-tipagem-fraca/tipagem-fraca.py | kevinfigueira/Dio-desafio-github-primeiro-repositorio | f729bc9d54b4622b61e08333dfa04a43b323a2a1 | [
"MIT"
] | null | null | null | javascript-es6-essencial-master/1-introducao-ao-ES6/1-conceitos/1-tipagem-fraca/tipagem-fraca.py | kevinfigueira/Dio-desafio-github-primeiro-repositorio | f729bc9d54b4622b61e08333dfa04a43b323a2a1 | [
"MIT"
] | null | null | null | meu_numero = 30
meu_texto = 'Exemplo'
print(meu_numero + meu_texto) | 17 | 29 | 0.764706 | 11 | 68 | 4.363636 | 0.545455 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.132353 | 68 | 4 | 29 | 17 | 0.779661 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe7d655089191af7d5c01c2982a42d6398f05b72 | 1,993 | py | Python | src/yandex_checkout_payout/domain/models/organization.py | tonchik-tm/yandex-checkout-payout-sdk-python | 84c4ecf7eec822c82928c33cecce7860f5f1b326 | [
"MIT"
] | null | null | null | src/yandex_checkout_payout/domain/models/organization.py | tonchik-tm/yandex-checkout-payout-sdk-python | 84c4ecf7eec822c82928c33cecce7860f5f1b326 | [
"MIT"
] | null | null | null | src/yandex_checkout_payout/domain/models/organization.py | tonchik-tm/yandex-checkout-payout-sdk-python | 84c4ecf7eec822c82928c33cecce7860f5f1b326 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
"""
import re
from yandex_checkout_payout.domain.common.base_object import BaseObject
class Organization(BaseObject):
__country_name = None
__state = None
__locality = None
__org_name = None
__org_unit_name = None
__common_name = None
__email = None
@pr... | 22.144444 | 114 | 0.616157 | 245 | 1,993 | 4.669388 | 0.2 | 0.06993 | 0.085664 | 0.062937 | 0.188811 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0.0007 | 0.283492 | 1,993 | 89 | 115 | 22.393258 | 0.80042 | 0.010537 | 0 | 0.153846 | 0 | 0 | 0.049439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.030769 | 0.107692 | 0.523077 | 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 |
fe96acb4471d940ee9c8dcc4ff1e9fa17f61e16d | 15 | py | Python | testdata/repos/network/MetadataUrlCheck/DeadUrl-missingfile/responses.py | floppym/pkgcheck | 07215eac255a88b3a0c351f35626a1c79d9f2632 | [
"BSD-3-Clause"
] | 18 | 2015-04-24T23:15:30.000Z | 2022-02-14T04:14:56.000Z | testdata/repos/network/MetadataUrlCheck/DeadUrl-missingfile/responses.py | floppym/pkgcheck | 07215eac255a88b3a0c351f35626a1c79d9f2632 | [
"BSD-3-Clause"
] | 351 | 2015-03-08T07:07:47.000Z | 2022-03-21T11:57:58.000Z | testdata/repos/network/MetadataUrlCheck/DeadUrl-missingfile/responses.py | floppym/pkgcheck | 07215eac255a88b3a0c351f35626a1c79d9f2632 | [
"BSD-3-Clause"
] | 19 | 2015-03-08T01:16:10.000Z | 2022-03-17T10:37:26.000Z | responses = []
| 7.5 | 14 | 0.6 | 1 | 15 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 15 | 1 | 15 | 15 | 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 |
feac6b58847e584a5f53f6382838bb3917337545 | 560 | py | Python | tests/query_test/test_union.py | Altiscale/Impala | 1a57d938ff616669a3111256c548807b10e0bff6 | [
"Apache-2.0"
] | 2 | 2015-11-17T16:58:47.000Z | 2017-01-10T04:15:05.000Z | tests/query_test/test_union.py | Altiscale/Impala | 1a57d938ff616669a3111256c548807b10e0bff6 | [
"Apache-2.0"
] | 1 | 2016-03-10T16:34:10.000Z | 2016-03-10T16:34:10.000Z | tests/query_test/test_union.py | Altiscale/Impala | 1a57d938ff616669a3111256c548807b10e0bff6 | [
"Apache-2.0"
] | 6 | 2015-12-22T14:52:38.000Z | 2019-07-06T08:34:23.000Z | #!/usr/bin/env python
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
# Tests for Union
#
import logging
import pytest
from tests.common.test_dimensions import create_exec_option_dimension
from tests.common.impala_test_suite import ImpalaTestSuite, SINGLE_NODE_ONLY
class TestUnion(ImpalaTestSuite):
@classme... | 26.666667 | 76 | 0.785714 | 75 | 560 | 5.653333 | 0.653333 | 0.099057 | 0.070755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00818 | 0.126786 | 560 | 20 | 77 | 28 | 0.858896 | 0.1625 | 0 | 0.153846 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
22825debd5e4649100a36f42fd2b9388675ef70a | 462 | py | Python | monster_rx/routes.py | YosaiProject/monster_rx | a59015635209cac720ec0a1bb89f017d30f058c1 | [
"Apache-2.0"
] | 4 | 2017-02-07T22:32:22.000Z | 2019-01-30T10:17:59.000Z | monster_rx/routes.py | YosaiProject/monster_rx | a59015635209cac720ec0a1bb89f017d30f058c1 | [
"Apache-2.0"
] | 1 | 2017-10-25T13:09:26.000Z | 2020-09-13T18:17:05.000Z | monster_rx/routes.py | YosaiProject/monster_rx | a59015635209cac720ec0a1bb89f017d30f058c1 | [
"Apache-2.0"
] | null | null | null | def includeme(config):
config.add_static_view('static', 'static', cache_max_age=3600)
config.add_route('home', '/')
config.add_route('login', '/login')
config.add_route('launchpad', '/launchpad')
config.add_route('request_rx', '/request_rx')
config.add_route('rx_portal', '/rx_portal')
config... | 42 | 66 | 0.692641 | 64 | 462 | 4.625 | 0.3125 | 0.273649 | 0.378378 | 0.162162 | 0.155405 | 0.155405 | 0 | 0 | 0 | 0 | 0 | 0.009877 | 0.123377 | 462 | 10 | 67 | 46.2 | 0.720988 | 0 | 0 | 0 | 0 | 0 | 0.329004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 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 |
228625a463541ca167829eb7e138a8923805e149 | 2,975 | py | Python | bluesky_autonomic/_opa_device.py | wright-group/bluesky-autonomic | ba7a3936c0e1739aeecabe636e58ccdd16f83c3e | [
"MIT"
] | null | null | null | bluesky_autonomic/_opa_device.py | wright-group/bluesky-autonomic | ba7a3936c0e1739aeecabe636e58ccdd16f83c3e | [
"MIT"
] | 10 | 2021-03-15T15:27:37.000Z | 2021-09-22T21:06:25.000Z | bluesky_autonomic/_opa_device.py | wright-group/bluesky-autonomic | ba7a3936c0e1739aeecabe636e58ccdd16f83c3e | [
"MIT"
] | 1 | 2021-03-15T13:13:07.000Z | 2021-03-15T13:13:07.000Z | __all__ = ["OPADevice"]
import time
from typing import Dict
import yaqc_bluesky
from ._sdc_manager import sdc_manager
from ._status import Status
class OPADevice:
def __init__(self, host, *, port=None, name=None):
self.parent = yaqc_bluesky.Device(port=port, host=host, name=name)
sdc_manager.... | 27.293578 | 78 | 0.603361 | 342 | 2,975 | 5.081871 | 0.216374 | 0.115075 | 0.110472 | 0.069045 | 0.459148 | 0.352129 | 0.318757 | 0.314154 | 0.064442 | 0.064442 | 0 | 0 | 0.278319 | 2,975 | 108 | 79 | 27.546296 | 0.809502 | 0.012773 | 0 | 0.307692 | 0 | 0 | 0.035434 | 0.009881 | 0 | 0 | 0 | 0.009259 | 0 | 1 | 0.269231 | false | 0 | 0.064103 | 0.205128 | 0.602564 | 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 |
229b2cffb91cf3d18f52bd68ef5a38fd2c617d19 | 1,316 | py | Python | lab/string_.py | GabrielBrasileiro/cereja | 568dac79b578c857081fab12301f9d85c9e27089 | [
"MIT"
] | 10 | 2020-11-09T12:41:27.000Z | 2022-03-30T14:10:29.000Z | lab/string_.py | GabrielBrasileiro/cereja | 568dac79b578c857081fab12301f9d85c9e27089 | [
"MIT"
] | 30 | 2019-09-30T21:26:22.000Z | 2020-11-06T12:00:55.000Z | lab/string_.py | GabrielBrasileiro/cereja | 568dac79b578c857081fab12301f9d85c9e27089 | [
"MIT"
] | 7 | 2019-09-30T15:39:34.000Z | 2020-11-05T22:51:37.000Z | """
Copyright (c) 2019 The Cereja Project
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... | 36.555556 | 78 | 0.781915 | 202 | 1,316 | 5.044554 | 0.574257 | 0.086359 | 0.025515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00545 | 0.163374 | 1,316 | 35 | 79 | 37.6 | 0.920073 | 0.806231 | 0 | 0 | 0 | 0 | 0.052846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0.25 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
22ac908cba8f4d617fec01a20f15096dfc112f99 | 219 | py | Python | restframepy/routers.py | josueischiu12/parcial3 | d992835a6123a2bec25bab3472fc7785610448d7 | [
"bzip2-1.0.6"
] | null | null | null | restframepy/routers.py | josueischiu12/parcial3 | d992835a6123a2bec25bab3472fc7785610448d7 | [
"bzip2-1.0.6"
] | null | null | null | restframepy/routers.py | josueischiu12/parcial3 | d992835a6123a2bec25bab3472fc7785610448d7 | [
"bzip2-1.0.6"
] | null | null | null | from rest_framework import routers
from citein.viewsets import GradoViewSet, EstudianteViewSet
router = routers.DefaultRouter()
router.register(r'grado', GradoViewSet)
router.register(r'estudiante', EstudianteViewSet) | 31.285714 | 59 | 0.840183 | 24 | 219 | 7.625 | 0.625 | 0.153005 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077626 | 219 | 7 | 60 | 31.285714 | 0.905941 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 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 |
22bff5597e8d5d164844414d008d4b415f3e0671 | 573 | py | Python | fooof/tests/utils/test_reports.py | varman-m/eeg_notebooks_doc | 12230719637c8087b020e8d5feeb20520a4da74d | [
"Apache-2.0"
] | 154 | 2018-11-05T16:50:21.000Z | 2022-03-31T12:02:33.000Z | fooof/tests/utils/test_reports.py | Xawwell/fooof | 7a520c4f8ac3a44f4f18dc025b5e5d40049c9f2b | [
"Apache-2.0"
] | 128 | 2018-11-03T16:07:05.000Z | 2022-03-30T22:09:48.000Z | fooof/tests/utils/test_reports.py | Xawwell/fooof | 7a520c4f8ac3a44f4f18dc025b5e5d40049c9f2b | [
"Apache-2.0"
] | 42 | 2019-01-31T17:24:58.000Z | 2022-02-19T00:00:58.000Z | """Test functions for fooof.utils.reports"""
from fooof.utils.reports import *
###################################################################################################
###################################################################################################
def test_methods_report_info(tfm):
... | 30.157895 | 99 | 0.488656 | 55 | 573 | 4.836364 | 0.381818 | 0.293233 | 0.191729 | 0.150376 | 0.413534 | 0.413534 | 0.413534 | 0.413534 | 0.413534 | 0.413534 | 0 | 0 | 0.118674 | 573 | 18 | 100 | 31.833333 | 0.526733 | 0.235602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
22c69fc8083d750e6b6cdac63e2c428178679f30 | 1,374 | py | Python | src/long_read_pipeline/models.py | NTU-CGM/MiDSystem | 0d7dadafe4811ec9d1c0df03e99d7c479e8c7f1d | [
"MIT"
] | null | null | null | src/long_read_pipeline/models.py | NTU-CGM/MiDSystem | 0d7dadafe4811ec9d1c0df03e99d7c479e8c7f1d | [
"MIT"
] | null | null | null | src/long_read_pipeline/models.py | NTU-CGM/MiDSystem | 0d7dadafe4811ec9d1c0df03e99d7c479e8c7f1d | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class long_ip_log(models.Model):
ip=models.CharField(max_length=25)
country=models.CharField(max_length=50,default="NA")
functions=models.CharField(max_length=25,default="NA")
submission_time=models.DateTimeField(auto_now_add=True)
class long... | 49.071429 | 77 | 0.787482 | 193 | 1,374 | 5.362694 | 0.290155 | 0.147826 | 0.278261 | 0.371014 | 0.755556 | 0.678261 | 0.624155 | 0.446377 | 0 | 0 | 0 | 0.02809 | 0.093159 | 1,374 | 28 | 78 | 49.071429 | 0.802568 | 0.017467 | 0 | 0.166667 | 0 | 0 | 0.051149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
22cc41504093e460a2f09a785ca4b1d2cce6786e | 175 | py | Python | hackerrank/4. sets/13.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | hackerrank/4. sets/13.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | hackerrank/4. sets/13.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | a = set(input().split())
n = int(input())
for _ in range(n):
b = set(input().split())
if not a.issuperset(b):
print(False)
break
else:
print(True)
| 17.5 | 28 | 0.537143 | 26 | 175 | 3.576923 | 0.692308 | 0.172043 | 0.27957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274286 | 175 | 9 | 29 | 19.444444 | 0.732283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
22eca9beded3be4be447d16fa12473200db56a8a | 253 | py | Python | lib/pavilion/expression_functions/common.py | paulbry/pavilion2 | 3b17ba0354d336e824018455d27f293ff7f9cf97 | [
"BSD-3-Clause"
] | 33 | 2019-08-29T18:02:49.000Z | 2022-02-28T04:44:57.000Z | lib/pavilion/expression_functions/common.py | Paul-Ferrell/pavilion2 | ab41c178e4cc992abd2d856e2b276e0bbcf9d0d6 | [
"BSD-3-Clause"
] | 321 | 2019-08-21T15:58:00.000Z | 2022-03-29T01:38:55.000Z | lib/pavilion/expression_functions/common.py | Paul-Ferrell/pavilion2 | ab41c178e4cc992abd2d856e2b276e0bbcf9d0d6 | [
"BSD-3-Clause"
] | 16 | 2019-11-29T02:19:18.000Z | 2021-07-20T22:20:50.000Z | class FunctionPluginError(RuntimeError):
"""Error raised when there's a problem with a function plugin
itself."""
class FunctionArgError(ValueError):
"""Error raised when a function plugin has a problem with the
function arguments."""
| 28.111111 | 65 | 0.735178 | 31 | 253 | 6 | 0.612903 | 0.11828 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 253 | 8 | 66 | 31.625 | 0.898551 | 0.573123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
22f4a26742edb7f6a78e667af86d06b08986d1ab | 757 | py | Python | user.py | Mugo-Ndungu/PasswordLocker | 7e333060931e041ff9cd9fce2ea635f2a676decd | [
"Unlicense"
] | null | null | null | user.py | Mugo-Ndungu/PasswordLocker | 7e333060931e041ff9cd9fce2ea635f2a676decd | [
"Unlicense"
] | null | null | null | user.py | Mugo-Ndungu/PasswordLocker | 7e333060931e041ff9cd9fce2ea635f2a676decd | [
"Unlicense"
] | null | null | null | class User:
'''
User class for user input
'''
user_list = [] # User Empty list
def __init__(self, username, password):
self.username = username
self.password = password
def save_user(self):
'''
save_usermethod saves user objects into user_list
'''... | 21.027778 | 65 | 0.557464 | 85 | 757 | 4.835294 | 0.482353 | 0.077859 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.371202 | 757 | 36 | 66 | 21.027778 | 0.863445 | 0.321004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.230769 | 0 | 0 | 0.538462 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.