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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe89f7a4ac4719cf08485217f86f519e1614ee9b | 247 | py | Python | pydba/exc.py | drkjam/pydba | 986c4b1315d6b128947c3bc3494513d8e5380ff0 | [
"MIT"
] | 7 | 2015-10-20T17:20:53.000Z | 2021-01-12T21:52:21.000Z | pydba/exc.py | drkjam/pydba | 986c4b1315d6b128947c3bc3494513d8e5380ff0 | [
"MIT"
] | 2 | 2017-11-01T13:29:10.000Z | 2018-03-16T03:55:15.000Z | pydba/exc.py | drkjam/pydba | 986c4b1315d6b128947c3bc3494513d8e5380ff0 | [
"MIT"
] | 3 | 2016-05-06T02:16:43.000Z | 2019-06-05T16:20:39.000Z | class PyDBAError(Exception):
"""Base exception for this project."""
class DatabaseError(PyDBAError):
"""Indicates an error occurred with database."""
class CommandNotFoundError(PyDBAError):
"""Indicates a command was not found."""
| 22.454545 | 52 | 0.720648 | 26 | 247 | 6.846154 | 0.769231 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 247 | 10 | 53 | 24.7 | 0.855769 | 0.445344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 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 |
fea0652705a33826b0db05dd88d653bd02d3c07d | 750 | py | Python | w12-using-objects/checkpoint-oop-fruits/fruit.py | carloswm85/2021-cs111-programming-with-functions | 73cc376e3f0de60aa0150d33ec95568d217096ec | [
"Unlicense"
] | null | null | null | w12-using-objects/checkpoint-oop-fruits/fruit.py | carloswm85/2021-cs111-programming-with-functions | 73cc376e3f0de60aa0150d33ec95568d217096ec | [
"Unlicense"
] | null | null | null | w12-using-objects/checkpoint-oop-fruits/fruit.py | carloswm85/2021-cs111-programming-with-functions | 73cc376e3f0de60aa0150d33ec95568d217096ec | [
"Unlicense"
] | null | null | null | def main():
# Create and print a list named fruit.
fruit_list = ["pear", "banana", "apple", "mango"]
print(f"original: {fruit_list}")
fruit_list.reverse()
print(f"reverse: {fruit_list}")
fruit_list.append("orange")
print(f"append orange: {fruit_list}")
loc = fruit_list.index("apple")
... | 23.4375 | 53 | 0.636 | 101 | 750 | 4.475248 | 0.306931 | 0.338496 | 0.154867 | 0.199115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 750 | 32 | 54 | 23.4375 | 0.753333 | 0.048 | 0 | 0 | 0 | 0 | 0.359046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.045455 | 0.454545 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
22ac5daaaab6f8040e302e725b10ffb1ea24fd33 | 561 | py | Python | pypad/leader_skill/coin_drop_rate_ls.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | pypad/leader_skill/coin_drop_rate_ls.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | pypad/leader_skill/coin_drop_rate_ls.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | from . import LeaderSkill
from ..skill_loader import SkillLoader
from ..region import Region
class CoinDropRateLS(LeaderSkill):
_handle_types = {54}
def parse_args(self):
self.multiplier = self.args[0] / 100
def args_to_json(self):
return {
'multiplier': self.multi... | 22.44 | 56 | 0.652406 | 63 | 561 | 5.587302 | 0.539683 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.26738 | 561 | 25 | 56 | 22.44 | 0.841849 | 0.053476 | 0 | 0 | 0 | 0 | 0.045369 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.176471 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
22be115e8da54466598ad717cea4fdbae594a1eb | 7,048 | py | Python | tests/test_valido_decorators.py | Spratiher9/Valido | c4e717317cabf9329897289b97eeda46626719fa | [
"BSD-3-Clause"
] | 2 | 2021-12-22T16:17:04.000Z | 2021-12-27T07:12:41.000Z | tests/test_valido_decorators.py | Spratiher9/Valido | c4e717317cabf9329897289b97eeda46626719fa | [
"BSD-3-Clause"
] | null | null | null | tests/test_valido_decorators.py | Spratiher9/Valido | c4e717317cabf9329897289b97eeda46626719fa | [
"BSD-3-Clause"
] | null | null | null | import logging
from typing import Any
from unittest.mock import call
from pyspark.shell import spark
from pyspark.sql import DataFrame
import pandas as pd
import pytest
from pytest_mock import MockerFixture
from valido import df_in, df_log, df_out
@pytest.fixture
def basic_df() -> DataFrame:
cars = [('Honda Civi... | 28.767347 | 129 | 0.667423 | 959 | 7,048 | 4.646507 | 0.129301 | 0.061939 | 0.044434 | 0.064856 | 0.778501 | 0.745063 | 0.699955 | 0.667639 | 0.582136 | 0.518627 | 0 | 0.010538 | 0.20559 | 7,048 | 244 | 130 | 28.885246 | 0.785319 | 0.001419 | 0 | 0.554878 | 0 | 0 | 0.135873 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 1 | 0.280488 | false | 0 | 0.054878 | 0.121951 | 0.481707 | 0.006098 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
22dc0f6548cc0066d83ff52a666252daeab5c608 | 131 | py | Python | euler1.py | BrandonMurnane/CloudComputing | 47161fdaf4ea0fc5abdc13136068a4f5eb4c1f69 | [
"MIT"
] | null | null | null | euler1.py | BrandonMurnane/CloudComputing | 47161fdaf4ea0fc5abdc13136068a4f5eb4c1f69 | [
"MIT"
] | null | null | null | euler1.py | BrandonMurnane/CloudComputing | 47161fdaf4ea0fc5abdc13136068a4f5eb4c1f69 | [
"MIT"
] | null | null | null | count=1000
total=0
while count > 0:
if count %3==0 or count %5==0:
total=total+count
count=count-1
print(total)
| 16.375 | 36 | 0.610687 | 23 | 131 | 3.478261 | 0.478261 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0.259542 | 131 | 7 | 37 | 18.714286 | 0.71134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
22e9ad00c32ffec8d969b8bb19b315cc1aea9e56 | 156 | py | Python | sensor-HD-camera/cam-test.py | sahuyash/raspberrypi-examples | de5f20e6c20fe4eb713f34c7226c9d0d2249afc3 | [
"MIT"
] | 41 | 2015-06-08T13:15:11.000Z | 2022-01-20T21:16:32.000Z | sensor-HD-camera/cam-test.py | sahuyash/raspberrypi-examples | de5f20e6c20fe4eb713f34c7226c9d0d2249afc3 | [
"MIT"
] | 16 | 2016-04-24T14:17:19.000Z | 2021-07-03T12:15:17.000Z | sensor-HD-camera/cam-test.py | sahuyash/raspberrypi-examples | de5f20e6c20fe4eb713f34c7226c9d0d2249afc3 | [
"MIT"
] | 31 | 2016-04-24T13:03:36.000Z | 2021-12-07T17:03:25.000Z | # this has to be run in an interactive python console, otherwise the preview window won't show up
import picamera
p = picamera.PiCamera()
p.start_preview() | 31.2 | 97 | 0.782051 | 26 | 156 | 4.653846 | 0.846154 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 156 | 5 | 98 | 31.2 | 0.916667 | 0.608974 | 0 | 0 | 0 | 0 | 0 | 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 |
22eccbf487f4267c9b1eb8c233c3ef1b2925847a | 589 | py | Python | appyter/ext/fsspec/spec/mountable.py | MaayanLab/jupyter-template | dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5 | [
"Apache-2.0"
] | null | null | null | appyter/ext/fsspec/spec/mountable.py | MaayanLab/jupyter-template | dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5 | [
"Apache-2.0"
] | 24 | 2020-04-07T17:04:47.000Z | 2020-05-27T00:51:25.000Z | appyter/ext/fsspec/spec/mountable.py | MaayanLab/jupyter-template | dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5 | [
"Apache-2.0"
] | null | null | null | import typing as t
import pathlib
import contextlib
from fsspec import AbstractFileSystem
import logging
logger = logging.getLogger(__name__)
class MountableAbstractFileSystem:
@contextlib.contextmanager
def mount(self: AbstractFileSystem, path='', passthrough=False, **kwargs):
''' mount fallback: defer to ch... | 32.722222 | 91 | 0.7691 | 69 | 589 | 6.478261 | 0.565217 | 0.067114 | 0.089485 | 0.116331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14601 | 589 | 17 | 92 | 34.647059 | 0.888668 | 0.071307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.153846 | 0.461538 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
22f1bb3d7a104e7a46870f90e9fc016b6f276dd1 | 1,593 | py | Python | models/awrams/models/awral/transforms.py | Zac-HD/awra_cms | ebc51df859ee665d936cf9600ea29dc8e45321d7 | [
"NetCDF"
] | 2 | 2020-05-10T05:27:16.000Z | 2021-01-20T02:14:23.000Z | models/awrams/models/awral/transforms.py | Zac-HD/awra_cms | ebc51df859ee665d936cf9600ea29dc8e45321d7 | [
"NetCDF"
] | null | null | null | models/awrams/models/awral/transforms.py | Zac-HD/awra_cms | ebc51df859ee665d936cf9600ea29dc8e45321d7 | [
"NetCDF"
] | 2 | 2019-12-26T13:36:44.000Z | 2020-03-24T12:23:23.000Z | import numpy as np
from awrams.utils.nodegraph.nodes import InputNode, ProcessNode, GraphNode, ForcingNode
from . import solar
def interlayer_k(ktop,kbottom):
return np.minimum(150.0, np.maximum(1.0, ktop/kbottom))
def k_rout(k_rout_scale,k_rout_int,mean_pet):
return k_rout_scale* mean_pet + k_rout_int
def p... | 33.893617 | 98 | 0.675455 | 227 | 1,593 | 4.634361 | 0.343612 | 0.08365 | 0.045627 | 0.047529 | 0.365019 | 0.365019 | 0.365019 | 0.31749 | 0.31749 | 0.231939 | 0 | 0.030793 | 0.184557 | 1,593 | 47 | 99 | 33.893617 | 0.779061 | 0 | 0 | 0.166667 | 0 | 0 | 0.026349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.166667 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
22f9f6770beed356819210ce8ac014c225fa0b78 | 194 | py | Python | fine/controllers/site.py | finron/finepy | 93e0fda1a4fbda62a4b591856e25c8f24126941c | [
"BSD-3-Clause"
] | null | null | null | fine/controllers/site.py | finron/finepy | 93e0fda1a4fbda62a4b591856e25c8f24126941c | [
"BSD-3-Clause"
] | null | null | null | fine/controllers/site.py | finron/finepy | 93e0fda1a4fbda62a4b591856e25c8f24126941c | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
from flask import render_template, Blueprint
bp = Blueprint('site', __name__)
@bp.route('/about')
def about():
'''About page'''
return render_template('about.html')
| 14.923077 | 44 | 0.675258 | 25 | 194 | 5 | 0.72 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.164948 | 194 | 12 | 45 | 16.166667 | 0.765432 | 0.128866 | 0 | 0 | 0 | 0 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
22fac4cba6d130f37cfdd944a9f28202f7860c76 | 251 | py | Python | pymunk/tests/__init__.py | conductiveIT/pymunk-1 | 61de8b2e652503356ac14a2d648cc11aa6a8070f | [
"MIT"
] | 670 | 2015-01-01T19:10:15.000Z | 2022-03-29T23:05:47.000Z | pymunk/tests/__init__.py | reter695/pymunk | 9e9d3bf14cd57f61006588b1c56fefc21b453733 | [
"MIT"
] | 122 | 2015-01-02T19:06:19.000Z | 2022-03-20T19:44:25.000Z | pymunk/tests/__init__.py | reter695/pymunk | 9e9d3bf14cd57f61006588b1c56fefc21b453733 | [
"MIT"
] | 222 | 2015-01-28T03:34:52.000Z | 2022-03-27T06:44:52.000Z | print("__init__", __name__, __file__)
def init() -> None:
print("init")
if __name__ == "__main__":
import os
import sys
# sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
init()
| 17.928571 | 102 | 0.645418 | 34 | 251 | 4.058824 | 0.470588 | 0.173913 | 0.282609 | 0.326087 | 0.326087 | 0.326087 | 0.326087 | 0.326087 | 0 | 0 | 0 | 0.004854 | 0.179283 | 251 | 13 | 103 | 19.307692 | 0.665049 | 0.38247 | 0 | 0 | 0 | 0 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe08c2c3afcd0b79d0e1dc258a2299f3b3df8520 | 5,146 | py | Python | PackageRef/__init__.py | prebuilder/PackageRef.py | 16d8032765faae719aecb54cadb1656bf2aeba21 | [
"Unlicense"
] | null | null | null | PackageRef/__init__.py | prebuilder/PackageRef.py | 16d8032765faae719aecb54cadb1656bf2aeba21 | [
"Unlicense"
] | null | null | null | PackageRef/__init__.py | prebuilder/PackageRef.py | 16d8032765faae719aecb54cadb1656bf2aeba21 | [
"Unlicense"
] | null | null | null | __all__ = ("PackageRef", "PackageRef", "VersionedPackageRef")
import typing
import inspect
class IncompatibleVersionPostfix:
__slots__ = ()
def __call__(self, ver: "BasePackageRef"):
raise NotImplementedError
class IncompatibleVersionPostfixDot(IncompatibleVersionPostfix):
__slots__ = ("count",)
def __init_... | 30.093567 | 183 | 0.703848 | 615 | 5,146 | 5.60813 | 0.211382 | 0.026095 | 0.022615 | 0.012177 | 0.272543 | 0.214265 | 0.19223 | 0.125254 | 0.075384 | 0.075384 | 0 | 0.002075 | 0.157209 | 5,146 | 170 | 184 | 30.270588 | 0.793175 | 0.058881 | 0 | 0.078947 | 0 | 0 | 0.077003 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.22807 | false | 0 | 0.035088 | 0.140351 | 0.561404 | 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 |
fe0f475081e2a50cae87294f4345bbec3fa7407a | 300 | py | Python | discogs_client_cloudcar/__init__.py | saumya-cc/discogs_client_cloudcar | 701ca03f2ce2604e5bef50f827e58a0cbe403ec8 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | discogs_client_cloudcar/__init__.py | saumya-cc/discogs_client_cloudcar | 701ca03f2ce2604e5bef50f827e58a0cbe403ec8 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | discogs_client_cloudcar/__init__.py | saumya-cc/discogs_client_cloudcar | 701ca03f2ce2604e5bef50f827e58a0cbe403ec8 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
__version_info__ = 2, 2, 1
__version__ = '2.2.1'
from discogs_client_cloudcar.client import Client
from discogs_client_cloudcar.models import Artist, Release, Master, Label, User, \
Listing, Track, Price, Video
| 33.333333 | 82 | 0.8 | 41 | 300 | 5.365854 | 0.634146 | 0.018182 | 0.027273 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.126667 | 300 | 8 | 83 | 37.5 | 0.816794 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.166667 | 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 |
fe167ffab58b0650aa1cd9b0cc7202d10b31b82f | 5,396 | py | Python | jobsapp/models.py | towhid135/EasyApply | 0cb4a16405d70d48b1a06dc0f7206651d2fd353d | [
"MIT"
] | null | null | null | jobsapp/models.py | towhid135/EasyApply | 0cb4a16405d70d48b1a06dc0f7206651d2fd353d | [
"MIT"
] | null | null | null | jobsapp/models.py | towhid135/EasyApply | 0cb4a16405d70d48b1a06dc0f7206651d2fd353d | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from accounts.models import User
JOB_TYPE = (
('1', "Full time"),
('2', "Part time"),
('3', "Internship"),
)
class Job(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=300)
... | 45.728814 | 90 | 0.731097 | 703 | 5,396 | 5.497866 | 0.186344 | 0.109444 | 0.204916 | 0.273221 | 0.74903 | 0.710737 | 0.645019 | 0.568952 | 0.568952 | 0.546184 | 0 | 0.037021 | 0.143996 | 5,396 | 117 | 91 | 46.119658 | 0.79974 | 0.005189 | 0 | 0.168421 | 0 | 0 | 0.008954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021053 | false | 0.031579 | 0.031579 | 0.021053 | 0.936842 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe18a4edfa18d643b6b3f915b50eae56d96c3b12 | 1,612 | py | Python | data_models.py | poiley/nowplaying | 3e38438fa55638903979b13d65a4fbf33ce7244d | [
"MIT"
] | null | null | null | data_models.py | poiley/nowplaying | 3e38438fa55638903979b13d65a4fbf33ce7244d | [
"MIT"
] | 1 | 2021-06-01T22:34:46.000Z | 2021-06-01T22:34:46.000Z | data_models.py | poiley/nowplaying | 3e38438fa55638903979b13d65a4fbf33ce7244d | [
"MIT"
] | null | null | null | import math, time
from datetime import datetime
class song:
def __init__(self, item, added_at=None):
self.song = item["name"]
self.artist = item["artists"][0]["name"]
self.album = item["album"]["name"]
self.length = int(math.floor(item["duration_ms"] / 1000))
self.uid = item... | 24.8 | 84 | 0.594913 | 230 | 1,612 | 3.96087 | 0.217391 | 0.052689 | 0.122942 | 0.049396 | 0.035126 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010408 | 0.284739 | 1,612 | 64 | 85 | 25.1875 | 0.779705 | 0 | 0 | 0 | 0 | 0 | 0.042804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.369565 | false | 0 | 0.043478 | 0.173913 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a3b88918db1d0171779b223cd4a1a08105847bf1 | 30,120 | py | Python | checkk2fov/definefov.py | danxhuber/k2epic | 743587da578f187a6c069fbe02e5d4a5cadd3a98 | [
"MIT"
] | 2 | 2015-11-25T05:03:05.000Z | 2016-02-09T03:56:05.000Z | checkk2fov/definefov.py | danxhuber/k2epic | 743587da578f187a6c069fbe02e5d4a5cadd3a98 | [
"MIT"
] | null | null | null | checkk2fov/definefov.py | danxhuber/k2epic | 743587da578f187a6c069fbe02e5d4a5cadd3a98 | [
"MIT"
] | null | null | null |
import numpy as np
__version__ = "$Id: definefov.py 32 2013-12-19 22:13:00Z fergalm $"
__URL__ = "$URL: http://svn.code.sf.net/p/keplertwowheel/code/py/definefov.py $"
"""
Code to create, and load, unit vectors representing the
channel corners in the field of view
"""
def generateVectors():
"""Convert the know... | 69.561201 | 80 | 0.382105 | 3,510 | 30,120 | 3.273789 | 0.345014 | 0.001392 | 0.001044 | 0.001392 | 0.054477 | 0.026978 | 0 | 0 | 0 | 0 | 0 | 0.580427 | 0.421248 | 30,120 | 432 | 81 | 69.722222 | 0.078763 | 0.006972 | 0 | 0 | 0 | 0.005181 | 0.006217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.002591 | null | null | 0.007772 | 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 |
430afebd8bb689ae4a6cfe6e0e488472cecec9f2 | 1,268 | py | Python | corehq/apps/es/users.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | 1 | 2017-02-10T03:14:51.000Z | 2017-02-10T03:14:51.000Z | corehq/apps/es/users.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/es/users.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | null | null | null | from .es_query import HQESQuery
from . import filters
class UserES(HQESQuery):
index = 'users'
default_filters = {
'not_deleted': {"term": {"base_doc": "couchuser"}},
'active': {"term": {"is_active": True}},
}
@property
def builtin_filters(self):
return [
domain... | 23.481481 | 63 | 0.643533 | 153 | 1,268 | 5.137255 | 0.379085 | 0.132316 | 0.091603 | 0.10687 | 0.127226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225552 | 1,268 | 53 | 64 | 23.924528 | 0.800407 | 0 | 0 | 0 | 0 | 0 | 0.141956 | 0.024448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275 | false | 0 | 0.05 | 0.275 | 0.675 | 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 |
432362527b75269170a5822373e8d5e9225e6397 | 12,179 | py | Python | tensorflow_graphics/geometry/transformation/tests/euler_test.py | drebain/graphics | c84b7599d1f8a55ccbdd589c1a845494c17c2784 | [
"Apache-2.0"
] | 1 | 2021-03-10T15:15:43.000Z | 2021-03-10T15:15:43.000Z | tensorflow_graphics/geometry/transformation/tests/euler_test.py | drebain/graphics | c84b7599d1f8a55ccbdd589c1a845494c17c2784 | [
"Apache-2.0"
] | null | null | null | tensorflow_graphics/geometry/transformation/tests/euler_test.py | drebain/graphics | c84b7599d1f8a55ccbdd589c1a845494c17c2784 | [
"Apache-2.0"
] | null | null | null | #Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 41.42517 | 80 | 0.769193 | 1,628 | 12,179 | 5.378993 | 0.109951 | 0.057782 | 0.038369 | 0.043394 | 0.814891 | 0.780975 | 0.715199 | 0.677401 | 0.60032 | 0.570401 | 0 | 0.009297 | 0.143362 | 12,179 | 293 | 81 | 41.566553 | 0.830058 | 0.177601 | 0 | 0.371585 | 0 | 0 | 0.022211 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 1 | 0.147541 | false | 0 | 0.076503 | 0 | 0.229508 | 0.005464 | 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 |
4327c39fc7d4f98f7616ad411c7d316e3ad5f224 | 123 | py | Python | ecobee_exporter/__init__.py | mccollam/ecobee_prometheus_exporter | 980f59f60403b555f40b98d20fe668bb4a2acd6a | [
"MIT"
] | 4 | 2019-02-18T02:18:42.000Z | 2021-11-13T17:23:41.000Z | ecobee_exporter/__init__.py | mccollam/ecobee_prometheus_exporter | 980f59f60403b555f40b98d20fe668bb4a2acd6a | [
"MIT"
] | 1 | 2019-02-18T02:00:56.000Z | 2019-02-19T23:04:40.000Z | ecobee_exporter/__init__.py | mccollam/ecobee_prometheus_exporter | 980f59f60403b555f40b98d20fe668bb4a2acd6a | [
"MIT"
] | 3 | 2020-01-03T20:30:29.000Z | 2022-01-17T00:22:09.000Z | from . import collector
from . import exporter
EcobeeCollector = collector.EcobeeCollector
exporter_main = exporter.main
| 17.571429 | 43 | 0.821138 | 13 | 123 | 7.692308 | 0.461538 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130081 | 123 | 6 | 44 | 20.5 | 0.934579 | 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 |
432a440f49a2d7f1e1327fc99911c30c2b65e129 | 59 | py | Python | gramhopper/responses/__init__.py | OrBin/Bot-Engine | 76c5270aacc739d7dcd62a48d3dd7dd5362fea4d | [
"MIT"
] | null | null | null | gramhopper/responses/__init__.py | OrBin/Bot-Engine | 76c5270aacc739d7dcd62a48d3dd7dd5362fea4d | [
"MIT"
] | null | null | null | gramhopper/responses/__init__.py | OrBin/Bot-Engine | 76c5270aacc739d7dcd62a48d3dd7dd5362fea4d | [
"MIT"
] | null | null | null | from .responses import Responses
__all__ = ['Responses']
| 11.8 | 32 | 0.745763 | 6 | 59 | 6.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 59 | 4 | 33 | 14.75 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 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 |
4337e90b86a640444ca92f561d29e1d8aa3d77a7 | 7,867 | py | Python | tests/test_metaclass_numpy.py | AntoineD/docstring-inheritance | b12defb34fac9010fc846ce8faf6a2cb76adff68 | [
"MIT"
] | 8 | 2021-11-05T08:38:01.000Z | 2022-01-28T20:58:39.000Z | tests/test_metaclass_numpy.py | AntoineD/docstring-inheritance | b12defb34fac9010fc846ce8faf6a2cb76adff68 | [
"MIT"
] | null | null | null | tests/test_metaclass_numpy.py | AntoineD/docstring-inheritance | b12defb34fac9010fc846ce8faf6a2cb76adff68 | [
"MIT"
] | null | null | null | # Copyright 2021 Antoine DECHAUME
#
# 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... | 21.034759 | 81 | 0.564256 | 746 | 7,867 | 5.774799 | 0.199732 | 0.019499 | 0.03714 | 0.06546 | 0.633705 | 0.609564 | 0.590761 | 0.498839 | 0.498839 | 0.498839 | 0 | 0.006413 | 0.326046 | 7,867 | 373 | 82 | 21.091153 | 0.806111 | 0.245456 | 0 | 0.675862 | 0 | 0 | 0.038671 | 0 | 0 | 0 | 0 | 0 | 0.144828 | 1 | 0.310345 | false | 0.096552 | 0.013793 | 0 | 0.517241 | 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 |
4345625e1205d3afca051201996fde789a919657 | 206 | py | Python | FullCode/danielCode/pixy_set_lamp_demo.py | EdmundGoodman/EES | f50247d4f98fee0cdf815b978e37fe035a35899c | [
"MIT"
] | null | null | null | FullCode/danielCode/pixy_set_lamp_demo.py | EdmundGoodman/EES | f50247d4f98fee0cdf815b978e37fe035a35899c | [
"MIT"
] | null | null | null | FullCode/danielCode/pixy_set_lamp_demo.py | EdmundGoodman/EES | f50247d4f98fee0cdf815b978e37fe035a35899c | [
"MIT"
] | null | null | null | import pixy
from ctypes import *
from pixy import *
# Pixy2 Python SWIG Set Lamp Example #
print ("Pixy2 Python SWIG Example -- Set Lamp")
pixy.init ()
pixy.change_prog ("video");
pixy.set_lamp (1, 0);
| 15.846154 | 47 | 0.703883 | 32 | 206 | 4.46875 | 0.53125 | 0.146853 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023669 | 0.179612 | 206 | 12 | 48 | 17.166667 | 0.822485 | 0.165049 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4a6b5cee9f19bb13dce42f574ebf9c5d30fd7909 | 4,280 | py | Python | tests/test_callback.py | my2ndhead/threema-msgapi-sdk-python | dd8b18994e37b5bd646f387ffb0103c4bbaf8151 | [
"MIT"
] | null | null | null | tests/test_callback.py | my2ndhead/threema-msgapi-sdk-python | dd8b18994e37b5bd646f387ffb0103c4bbaf8151 | [
"MIT"
] | null | null | null | tests/test_callback.py | my2ndhead/threema-msgapi-sdk-python | dd8b18994e37b5bd646f387ffb0103c4bbaf8151 | [
"MIT"
] | null | null | null | import pytest
from threema.gateway import e2e
class TestCallback:
@pytest.mark.asyncio
def test_invalid_message(self, connection, callback_send, raw_message):
outgoing = raw_message(
connection=connection,
to_id=pytest.msgapi.id,
nonce=b'0' * 24,
messag... | 38.214286 | 86 | 0.653738 | 476 | 4,280 | 5.670168 | 0.132353 | 0.114116 | 0.081882 | 0.051871 | 0.80326 | 0.746573 | 0.701741 | 0.633568 | 0.5691 | 0.54761 | 0 | 0.007658 | 0.267757 | 4,280 | 111 | 87 | 38.558559 | 0.853542 | 0 | 0 | 0.617647 | 0 | 0 | 0.007009 | 0.006075 | 0 | 0 | 0 | 0 | 0.22549 | 1 | 0.068627 | false | 0 | 0.019608 | 0 | 0.098039 | 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 |
4a71605fc66520737a8a1ae91692e38a2a0d8f58 | 385 | py | Python | amazon/KClosestToOrigin.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | 1 | 2020-09-30T19:06:15.000Z | 2020-09-30T19:06:15.000Z | amazon/KClosestToOrigin.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | null | null | null | amazon/KClosestToOrigin.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | null | null | null |
def kClosest(points, k):
# arr = []
# for x, y in points:
# dist = (x**2) + (y**2)
# arr.append([dist, x, y])
# arr.sort(key=lambda x: x[0])
# res = []
# for dist, x, y in arr:
# res.append([x, y])
# return res[:k]
return sorted(points, key=lambda x: x[0]**2... | 15.4 | 62 | 0.438961 | 63 | 385 | 2.68254 | 0.380952 | 0.047337 | 0.047337 | 0.130178 | 0.142012 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053232 | 0.316883 | 385 | 24 | 63 | 16.041667 | 0.589354 | 0.475325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a8f752ab78211831cd605123e2dc49966189233 | 158 | py | Python | src/admin_toolbelt/contrib/login_records/urls.py | Elemnir/admin_toolbelt | 8d03841a3676f6477931a202e95b45dc9e86cfa5 | [
"BSD-3-Clause"
] | null | null | null | src/admin_toolbelt/contrib/login_records/urls.py | Elemnir/admin_toolbelt | 8d03841a3676f6477931a202e95b45dc9e86cfa5 | [
"BSD-3-Clause"
] | null | null | null | src/admin_toolbelt/contrib/login_records/urls.py | Elemnir/admin_toolbelt | 8d03841a3676f6477931a202e95b45dc9e86cfa5 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from .views import LoginRecordView
urlpatterns = [
path("record/", LoginRecordView.as_view(), name='record-login'),
]
| 19.75 | 70 | 0.708861 | 18 | 158 | 6.166667 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 158 | 7 | 71 | 22.571429 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.120253 | 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 |
4a95fca7d64943e71219e74619b310c8b527940d | 585 | py | Python | simianpy/analysis/__init__.py | jselvan/simianpy | 5b2b162789e11bc89ca2179358ab682269e7df15 | [
"MIT"
] | null | null | null | simianpy/analysis/__init__.py | jselvan/simianpy | 5b2b162789e11bc89ca2179358ab682269e7df15 | [
"MIT"
] | null | null | null | simianpy/analysis/__init__.py | jselvan/simianpy | 5b2b162789e11bc89ca2179358ab682269e7df15 | [
"MIT"
] | null | null | null | """Analysis tools
Contains
--------
BehaviouralData -- class with basic functionality for working with the behavioural data in a file
DetectSaccades -- function to detect saccades
Modules
-------
behaviouraldata
detectsaccades
"""
from .behaviouraldata import BehaviouralData
from .detectsaccades impor... | 27.857143 | 101 | 0.8 | 67 | 585 | 6.895522 | 0.58209 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 0.14188 | 585 | 21 | 102 | 27.857143 | 0.916335 | 0.411966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4a982092b4bad96330cda2d57fe945d7b39fb8ac | 1,194 | py | Python | CMDUI/variables.py | TheBrokenEstate/CMDUI | 2cdd9a0999b3d54086cdf0386f85037d6a4cdba5 | [
"MIT"
] | 3 | 2020-11-13T13:53:27.000Z | 2021-11-15T10:08:43.000Z | CMDUI/variables.py | danny-burrows/CMDUI | 2cdd9a0999b3d54086cdf0386f85037d6a4cdba5 | [
"MIT"
] | null | null | null | CMDUI/variables.py | danny-burrows/CMDUI | 2cdd9a0999b3d54086cdf0386f85037d6a4cdba5 | [
"MIT"
] | null | null | null | class Variable:
_default = ""
def __init__(self, master=None, value=None):
self.widgets = [master] if master else []
self.value = value if value else self._default
def set(self, value):
self.value = value
for widget in self.widgets:
widget.undraw()
... | 19.57377 | 54 | 0.599665 | 143 | 1,194 | 4.706294 | 0.230769 | 0.106984 | 0.081724 | 0.1263 | 0.484398 | 0.484398 | 0.484398 | 0.484398 | 0.484398 | 0.395245 | 0 | 0.003509 | 0.28392 | 1,194 | 61 | 55 | 19.57377 | 0.783626 | 0 | 0 | 0.432432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.297297 | false | 0 | 0 | 0.135135 | 0.702703 | 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 |
4ab032fc5f262fbd4da9a4bf2297b2897ff63cba | 210 | py | Python | app/crud/label.py | wallseat/fastapi-todo-app | 5b9c6da9bce16960116a228db4b683d82ba058d0 | [
"MIT"
] | null | null | null | app/crud/label.py | wallseat/fastapi-todo-app | 5b9c6da9bce16960116a228db4b683d82ba058d0 | [
"MIT"
] | null | null | null | app/crud/label.py | wallseat/fastapi-todo-app | 5b9c6da9bce16960116a228db4b683d82ba058d0 | [
"MIT"
] | null | null | null | from app.models import Label
from app.schemas.label import LabelCreate, LabelUpdate
from .base import CRUDBase
class CRUDLabel(CRUDBase[Label, LabelCreate, LabelUpdate]):
pass
label = CRUDLabel(Label)
| 17.5 | 59 | 0.785714 | 26 | 210 | 6.346154 | 0.5 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 210 | 11 | 60 | 19.090909 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.5 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
4ac83db1060e6816f6ea97e1aa73dc80872607ea | 280 | py | Python | jd/api/rest/UnionOpenCouponImportationRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 5 | 2019-10-30T01:16:30.000Z | 2020-06-14T03:32:19.000Z | jd/api/rest/UnionOpenCouponImportationRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 2 | 2020-10-12T07:12:48.000Z | 2021-06-02T03:15:47.000Z | jd/api/rest/UnionOpenCouponImportationRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 3 | 2019-12-06T17:33:49.000Z | 2021-03-01T13:24:22.000Z | from jd.api.base import RestApi
class UnionOpenCouponImportationRequest(RestApi):
def __init__(self,domain='gw.api.360buy.com',port=80):
RestApi.__init__(self,domain, port)
self.couponReq = None
def getapiname(self):
return 'jd.union.open.coupon.importation'
| 17.5 | 56 | 0.746429 | 36 | 280 | 5.583333 | 0.694444 | 0.079602 | 0.139303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020661 | 0.135714 | 280 | 15 | 57 | 18.666667 | 0.809917 | 0 | 0 | 0 | 0 | 0 | 0.178832 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
4376fd0dd4f69a707dfbbaa8d35e57fb70e897c7 | 159 | py | Python | utils/custom_fields.py | empatwi/crowdsourcing-api | 5dd4b8acf1ad8d0cc5dc390bf7aafe84efccc62d | [
"MIT"
] | 1 | 2021-05-06T12:12:02.000Z | 2021-05-06T12:12:02.000Z | utils/custom_fields.py | empatwi/crowdsourcing-api | 5dd4b8acf1ad8d0cc5dc390bf7aafe84efccc62d | [
"MIT"
] | null | null | null | utils/custom_fields.py | empatwi/crowdsourcing-api | 5dd4b8acf1ad8d0cc5dc390bf7aafe84efccc62d | [
"MIT"
] | null | null | null | from flask_restplus import fields
class NullableBoolean(fields.Boolean):
__schema_type__ = ['boolean', 'null']
__schema_example__ = "Nullable boolean" | 31.8 | 43 | 0.767296 | 17 | 159 | 6.529412 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138365 | 159 | 5 | 43 | 31.8 | 0.810219 | 0 | 0 | 0 | 0 | 0 | 0.16875 | 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 |
437a6375791fb471db3c1beafc1334950a6cb5d7 | 363 | py | Python | tmp/examples:_play_either_file_for_speak_sentence.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | tmp/examples:_play_either_file_for_speak_sentence.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | tmp/examples:_play_either_file_for_speak_sentence.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | # Examples: Play either file for speak sentence
api.play_audio_to_bridge('bridgeId', fileUrl='http://host/path/file.mp3')
api.play_audio_to_bridge('bridgeId', sentence='Press 0 to complete call', gender='female')
# or with extension methods
api.play_audio_file_to_bridge('bridgeId', 'http://host/path/file.mp3')
api.spe... | 51.857143 | 90 | 0.779614 | 56 | 363 | 4.821429 | 0.5 | 0.118519 | 0.237037 | 0.103704 | 0.359259 | 0.359259 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.07438 | 363 | 6 | 91 | 60.5 | 0.794643 | 0.198347 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
439e0a0c84c3cb30088fa70ba15143f1a2a10050 | 2,416 | py | Python | smart_imports/plugins/mypy.py | Tiendil/smart-imports | c0d4b17394d3250520f0554c1f0164487a0a7971 | [
"BSD-3-Clause"
] | 32 | 2019-07-15T19:50:38.000Z | 2021-09-04T07:56:19.000Z | smart_imports/plugins/mypy.py | Tiendil/smart-imports | c0d4b17394d3250520f0554c1f0164487a0a7971 | [
"BSD-3-Clause"
] | 18 | 2018-06-12T17:41:08.000Z | 2021-11-08T21:42:48.000Z | smart_imports/plugins/mypy.py | Tiendil/smart-imports | c0d4b17394d3250520f0554c1f0164487a0a7971 | [
"BSD-3-Clause"
] | 8 | 2019-03-18T16:51:24.000Z | 2021-02-24T00:44:04.000Z |
import importlib
from mypy.plugin import Plugin
from mypy import nodes
from smart_imports import config as sm_config
from smart_imports import importer as sm_importer
class SmartImportsPlugin(Plugin):
# search for imports and add them to AST of files, processed by mypy
def get_additional_deps(self, file_n... | 32.648649 | 118 | 0.611341 | 262 | 2,416 | 5.366412 | 0.30916 | 0.05761 | 0.096728 | 0.031294 | 0.098151 | 0.098151 | 0 | 0 | 0 | 0 | 0 | 0.002481 | 0.332781 | 2,416 | 73 | 119 | 33.09589 | 0.869727 | 0.036424 | 0 | 0.086957 | 0 | 0 | 0.005594 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.043478 | false | 0 | 0.608696 | 0.021739 | 0.73913 | 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 |
43af38bdfd041c8ee35221ed8304e74e17a602ba | 420 | py | Python | kafka_twitter/__init__.py | Attsun1031/kafka-twitter | b2a27b537820a0f593a9d27048416f5f591021b3 | [
"Apache-2.0"
] | null | null | null | kafka_twitter/__init__.py | Attsun1031/kafka-twitter | b2a27b537820a0f593a9d27048416f5f591021b3 | [
"Apache-2.0"
] | null | null | null | kafka_twitter/__init__.py | Attsun1031/kafka-twitter | b2a27b537820a0f593a9d27048416f5f591021b3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from TwitterAPI import TwitterAPI
from kafka import KafkaClient
kafka_client = KafkaClient('localhost:9092')
twitter_client = TwitterAPI(os.environ.get('TWITTER_CONSUMER_KEY'),
os.environ.get('TWITTER_CONSUMER_SECRET'),
os.envi... | 32.307692 | 70 | 0.628571 | 45 | 420 | 5.644444 | 0.422222 | 0.141732 | 0.188976 | 0.299213 | 0.433071 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016181 | 0.264286 | 420 | 12 | 71 | 35 | 0.805825 | 0.05 | 0 | 0 | 0 | 0 | 0.241814 | 0.110831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
43b5496b1f1544f83e247c3b2992c5fec1f52d3c | 872 | py | Python | pypi_notifier/cli.py | cenkalti/pypi-notifier | 26ff66b6b63a712a4e7b3a71448601de41a9f090 | [
"MIT"
] | 45 | 2015-02-17T14:06:13.000Z | 2022-03-27T11:38:13.000Z | pypi_notifier/cli.py | cenk/pypi-notifier | 26ff66b6b63a712a4e7b3a71448601de41a9f090 | [
"MIT"
] | 4 | 2015-11-06T11:04:21.000Z | 2019-12-03T19:57:11.000Z | pypi_notifier/cli.py | cenkalti/pypi-notifier | 26ff66b6b63a712a4e7b3a71448601de41a9f090 | [
"MIT"
] | 12 | 2015-01-26T14:47:21.000Z | 2021-12-25T00:56:35.000Z | from pypi_notifier import models
from pypi_notifier.extensions import db, cache
def register_commands(app):
@app.cli.command()
def init_db():
db.create_all()
@app.cli.command()
def fetch_package_list():
models.Package.get_all_names()
@app.cli.command()
def clear_cache():
... | 21.8 | 57 | 0.644495 | 110 | 872 | 4.872727 | 0.327273 | 0.089552 | 0.19403 | 0.238806 | 0.283582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228211 | 872 | 39 | 58 | 22.358974 | 0.796434 | 0 | 0 | 0.482759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0.068966 | 0 | 0.37931 | 0.034483 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
43cff03978f1fcc1f07e0223d95717e77ddf6c2c | 367 | py | Python | src/lqc/generate/web_page/run_subject_converter.py | tysmith/layout-quickcheck | c5ba9431a40f650a594140541e32af7c8ff21695 | [
"MIT"
] | null | null | null | src/lqc/generate/web_page/run_subject_converter.py | tysmith/layout-quickcheck | c5ba9431a40f650a594140541e32af7c8ff21695 | [
"MIT"
] | null | null | null | src/lqc/generate/web_page/run_subject_converter.py | tysmith/layout-quickcheck | c5ba9431a40f650a594140541e32af7c8ff21695 | [
"MIT"
] | null | null | null | import os
from lqc.config.file_config import FileConfig
from lqc.generate.web_page.create import save_as_web_page
def saveTestSubjectAsWebPage(run_subject):
file_config = FileConfig()
filepath, filename = file_config.getTimestampFilePath()
save_as_web_page(run_subject, filepath)
url = "file://" + os.pa... | 30.583333 | 59 | 0.776567 | 48 | 367 | 5.6875 | 0.5 | 0.10989 | 0.065934 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138965 | 367 | 11 | 60 | 33.363636 | 0.863924 | 0 | 0 | 0 | 1 | 0 | 0.019074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 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 |
78e97f25cfd2a16e1f35dd4dfa8877cba34d727c | 969 | py | Python | soccminer/java_proj_miner.py | M3SOulu/soccminer | f8a5930ee1164e485bed5e6f712b323ed0b42b9b | [
"MIT"
] | 2 | 2021-12-19T12:55:05.000Z | 2022-01-25T13:14:42.000Z | soccminer/java_proj_miner.py | M3SOulu/soccminer | f8a5930ee1164e485bed5e6f712b323ed0b42b9b | [
"MIT"
] | null | null | null | soccminer/java_proj_miner.py | M3SOulu/soccminer | f8a5930ee1164e485bed5e6f712b323ed0b42b9b | [
"MIT"
] | 1 | 2021-12-19T12:55:17.000Z | 2021-12-19T12:55:17.000Z | from soccminer.java_project_meta_attributes import JavaMetaAttribute
from soccminer.proj_comments_main_attr import EntityLevelComprehensiveComment
class JavaMiner(JavaMetaAttribute, EntityLevelComprehensiveComment):
def __init__(self, project_instance):
self.main_comment_list = project_instance.fetch_comm... | 60.5625 | 95 | 0.835913 | 116 | 969 | 6.37069 | 0.267241 | 0.223275 | 0.303112 | 0.281461 | 0.345061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120743 | 969 | 15 | 96 | 64.6 | 0.867371 | 0.079463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 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 |
78f90256ea35da0a03c86746f7b565c1d28b535b | 7,948 | py | Python | pkgs/ops-pkg/src/genie/libs/ops/lldp/nxos/tests/lldp_output.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 94 | 2018-04-30T20:29:15.000Z | 2022-03-29T13:40:31.000Z | pkgs/ops-pkg/src/genie/libs/ops/lldp/nxos/tests/lldp_output.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 67 | 2018-12-06T21:08:09.000Z | 2022-03-29T18:00:46.000Z | pkgs/ops-pkg/src/genie/libs/ops/lldp/nxos/tests/lldp_output.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 49 | 2018-06-29T18:59:03.000Z | 2022-03-10T02:07:59.000Z | '''LLDP Genie Ops Object Outputs for NXOS.'''
class LldpOutput(object):
ShowLldpTimers = {
'hold_timer': 120,
'reinit_timer': 2,
'hello_timer': 30
}
ShowLldpAll = {
'interfaces': {
'Ethernet1/1':
{'enabled': True,
... | 41.181347 | 264 | 0.324233 | 466 | 7,948 | 5.311159 | 0.285408 | 0.075556 | 0.035556 | 0.035556 | 0.732121 | 0.711515 | 0.682828 | 0.66101 | 0.66101 | 0.619798 | 0 | 0.07049 | 0.578762 | 7,948 | 192 | 265 | 41.395833 | 0.668757 | 0.004907 | 0 | 0.519126 | 0 | 0.010929 | 0.313059 | 0.075217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.038251 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
78fd08f888e9d409dddc87d67c7971956c8061cf | 1,099 | py | Python | planet_alignment/utils/path.py | paulfanelli/planet_alignment | b203f5ebbec108da7abffc3c5ef3a8a2d0334837 | [
"MIT"
] | null | null | null | planet_alignment/utils/path.py | paulfanelli/planet_alignment | b203f5ebbec108da7abffc3c5ef3a8a2d0334837 | [
"MIT"
] | null | null | null | planet_alignment/utils/path.py | paulfanelli/planet_alignment | b203f5ebbec108da7abffc3c5ef3a8a2d0334837 | [
"MIT"
] | null | null | null | """
.. module:: path
:platform: linux
:synopsis: Module to get all of the various project directories.
.. moduleauthor:: Paul Fanelli <paul.fanelli@gmail.com>
.. modulecreated:: 6/26/15
"""
import os
from os.path import dirname, join
PROJECTS_DIR = dirname(dirname(dirname(dirname(__file__))))
ROOT_DIR = dirna... | 18.316667 | 67 | 0.722475 | 172 | 1,099 | 4.244186 | 0.261628 | 0.073973 | 0.09863 | 0.065753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005441 | 0.163785 | 1,099 | 59 | 68 | 18.627119 | 0.788901 | 0.171975 | 0 | 0 | 0 | 0 | 0.022198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.066667 | 0.266667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6009aa02466a1466e37c8cca49d3f346e1de81e4 | 1,227 | py | Python | backend/ShipTransactionMS/migrations/0006_department_personnel.py | Mrliuxchn/ShipTransactionMS | e14ad3c405320b0303bcd9ebab92e50f57e99238 | [
"Apache-2.0"
] | null | null | null | backend/ShipTransactionMS/migrations/0006_department_personnel.py | Mrliuxchn/ShipTransactionMS | e14ad3c405320b0303bcd9ebab92e50f57e99238 | [
"Apache-2.0"
] | null | null | null | backend/ShipTransactionMS/migrations/0006_department_personnel.py | Mrliuxchn/ShipTransactionMS | e14ad3c405320b0303bcd9ebab92e50f57e99238 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2 on 2021-05-08 13:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('ShipTransactionMS', '0005_auto_20210508_1359'),
]
operations = [
migrations.CreateModel(
... | 34.083333 | 130 | 0.588427 | 116 | 1,227 | 6.103448 | 0.448276 | 0.169492 | 0.20339 | 0.271186 | 0.381356 | 0.155367 | 0.155367 | 0.155367 | 0.155367 | 0.155367 | 0 | 0.058957 | 0.281174 | 1,227 | 35 | 131 | 35.057143 | 0.743764 | 0.035045 | 0 | 0.285714 | 1 | 0 | 0.138748 | 0.043147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.071429 | 0 | 0.214286 | 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 |
603429cd2b7ce2d5c9278c694286161be75e92a4 | 2,289 | py | Python | api/annotation.py | jbalint/aurum-datadiscovery | 443b777c13be47e6da60b4af528e19a02608e158 | [
"MIT"
] | 60 | 2017-01-13T19:53:34.000Z | 2022-01-06T07:00:43.000Z | api/annotation.py | jbalint/aurum-datadiscovery | 443b777c13be47e6da60b4af528e19a02608e158 | [
"MIT"
] | 83 | 2016-10-08T14:07:55.000Z | 2022-03-08T22:03:39.000Z | api/annotation.py | jbalint/aurum-datadiscovery | 443b777c13be47e6da60b4af528e19a02608e158 | [
"MIT"
] | 44 | 2016-10-08T00:15:46.000Z | 2021-12-31T02:42:45.000Z | from collections import namedtuple
from enum import Enum
BaseMDHit = namedtuple(
'MDHit', 'id, author, md_class, text, source, target, relation')
BaseMDComment = namedtuple('MDComment', 'id, author, text, ref_id')
class MDClass(Enum):
WARNING = 0
INSIGHT = 1
QUESTION = 2
class MDRelation(Enum):
... | 22.223301 | 68 | 0.571429 | 284 | 2,289 | 4.278169 | 0.257042 | 0.090535 | 0.057613 | 0.055967 | 0.36214 | 0.307819 | 0.288066 | 0.288066 | 0.288066 | 0.22716 | 0 | 0.017869 | 0.315422 | 2,289 | 102 | 69 | 22.441176 | 0.757498 | 0 | 0 | 0.4 | 0 | 0 | 0.076016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213333 | false | 0 | 0.026667 | 0.133333 | 0.68 | 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 |
604ff96805c78f26cc8c9f5ec27302a23c1c9373 | 254 | py | Python | features/steps/steps.py | thasmarinho/stock-analyzer | ab09e20a6d33b17534558d4344516b6bc2f7c782 | [
"MIT"
] | null | null | null | features/steps/steps.py | thasmarinho/stock-analyzer | ab09e20a6d33b17534558d4344516b6bc2f7c782 | [
"MIT"
] | null | null | null | features/steps/steps.py | thasmarinho/stock-analyzer | ab09e20a6d33b17534558d4344516b6bc2f7c782 | [
"MIT"
] | null | null | null | from behave import *
@given(u'User is on terminal')
def step_impl(context):
assert True
@when(u'he enters the stock\'s code')
def step_impl(context):
assert True
@then(u'the current price is displayed')
def step_impl(context):
assert True
| 18.142857 | 40 | 0.716535 | 42 | 254 | 4.261905 | 0.619048 | 0.117318 | 0.184358 | 0.301676 | 0.469274 | 0.469274 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177165 | 254 | 13 | 41 | 19.538462 | 0.856459 | 0 | 0 | 0.6 | 0 | 0 | 0.271654 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
605616568d7e6b2384d529a9fd8a30d7b50cb308 | 272 | py | Python | app/tests/users/test_user_factory.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | null | null | null | app/tests/users/test_user_factory.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | 4 | 2021-04-08T21:37:08.000Z | 2021-09-22T19:31:17.000Z | app/tests/users/test_user_factory.py | yayunl/llfselfhelp | 55994003ad51e1664a733c84ed6afcb9f28b6499 | [
"MIT"
] | null | null | null | import pytest
@pytest.mark.django_db
def test_user_user_factory(user_factory):
user = user_factory()
assert user.username == 'fakeuser0'
assert user.email == 'fakeuser0@test.com'
assert user.check_password('fakepassword')
# assert user.groups.count() == 1 | 27.2 | 45 | 0.735294 | 36 | 272 | 5.361111 | 0.555556 | 0.207254 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012876 | 0.143382 | 272 | 10 | 46 | 27.2 | 0.815451 | 0.113971 | 0 | 0 | 0 | 0 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
606903e02f1d286521fb7aec7ff23ca320668719 | 98 | py | Python | main.py | ErnWong/drc-2017-ernwong | d9a590b6038471709696dbcac13c6f5aa7cbdd64 | [
"MIT"
] | null | null | null | main.py | ErnWong/drc-2017-ernwong | d9a590b6038471709696dbcac13c6f5aa7cbdd64 | [
"MIT"
] | null | null | null | main.py | ErnWong/drc-2017-ernwong | d9a590b6038471709696dbcac13c6f5aa7cbdd64 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
import curses
def main(stdscr):
stdscr.clear()
curses.wrapper(main)
| 10.888889 | 22 | 0.704082 | 14 | 98 | 4.928571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.153061 | 98 | 8 | 23 | 12.25 | 0.819277 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6076302e09f6f6e3c186b90c91d437ac383fc91c | 149 | py | Python | backup/meb/meb.py | wffeige/mysqltools | a7980100f179cbb4851db880eb56b11562432129 | [
"OLDAP-2.6",
"Python-2.0",
"OLDAP-2.3"
] | 2 | 2017-11-20T09:09:05.000Z | 2021-02-26T02:11:55.000Z | backup/meb/meb.py | wffeige/mysqltools | a7980100f179cbb4851db880eb56b11562432129 | [
"OLDAP-2.6",
"Python-2.0",
"OLDAP-2.3"
] | null | null | null | backup/meb/meb.py | wffeige/mysqltools | a7980100f179cbb4851db880eb56b11562432129 | [
"OLDAP-2.6",
"Python-2.0",
"OLDAP-2.3"
] | null | null | null | #! env python3
# -*- coding: utf-8 -*-
"""
封闭mysqlbackup主要有如下功能:
1、备份周期管理,每周日一个全备、1|2|3|4|5|6 每天一个增备
2、自动全备
3、自动增备
4、自动还原
"""
| 8.764706 | 39 | 0.543624 | 22 | 149 | 3.681818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 0.261745 | 149 | 16 | 40 | 9.3125 | 0.627273 | 0.872483 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6082f7778cae22e8a8825f10a3e5607bb8582c6d | 613 | py | Python | server_flask/webgui.py | notclement/botnet-enumeration-network | 5c832072958470d32510ab3954cba2321faa6cb2 | [
"MIT"
] | null | null | null | server_flask/webgui.py | notclement/botnet-enumeration-network | 5c832072958470d32510ab3954cba2321faa6cb2 | [
"MIT"
] | 4 | 2021-04-08T21:11:08.000Z | 2021-09-22T19:18:36.000Z | server_flask/webgui.py | notclement/botnet-enumeration-network | 5c832072958470d32510ab3954cba2321faa6cb2 | [
"MIT"
] | 1 | 2020-07-10T01:17:14.000Z | 2020-07-10T01:17:14.000Z | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/login')
def loginpage():
# return "<h1>Login Page<h1>"
suggestions = [1,2,3,4]
return render_template('homepage.html', suggestions_list=suggestions)
@app.route('/home')
def dashboard():
# return "<h1>Home dashboard of %s <h1>... | 22.703704 | 73 | 0.675367 | 82 | 613 | 4.841463 | 0.487805 | 0.080605 | 0.100756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.151713 | 613 | 27 | 74 | 22.703704 | 0.738462 | 0.119086 | 0 | 0 | 0 | 0 | 0.239777 | 0.040892 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.176471 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
609d12795e413381fa723ed9933a474a665def6e | 951 | py | Python | tributary/tests/lazy/calculations/test_basket_lazy.py | mohanrajofficial87/tributary | 0d5c540c21b7de4addf48227161818c6322e4429 | [
"Apache-2.0"
] | 1 | 2022-03-23T10:50:42.000Z | 2022-03-23T10:50:42.000Z | tributary/tests/lazy/calculations/test_basket_lazy.py | mohanrajofficial87/tributary | 0d5c540c21b7de4addf48227161818c6322e4429 | [
"Apache-2.0"
] | null | null | null | tributary/tests/lazy/calculations/test_basket_lazy.py | mohanrajofficial87/tributary | 0d5c540c21b7de4addf48227161818c6322e4429 | [
"Apache-2.0"
] | null | null | null | import tributary.lazy as tl
def func4():
yield [1]
yield [1, 2]
yield [1, 2, 3]
class TestBasket:
def test_Len(self):
t = tl.Node(value=func4)
out = tl.Len(t)
assert out() == 1
assert out() == 2
assert out() == 3
def test_Count(self):
t = tl.Node(... | 21.133333 | 33 | 0.48265 | 129 | 951 | 3.51938 | 0.232558 | 0.297357 | 0.176211 | 0.211454 | 0.651982 | 0.651982 | 0.629956 | 0.537445 | 0.251101 | 0.251101 | 0 | 0.047138 | 0.375394 | 951 | 44 | 34 | 21.613636 | 0.717172 | 0 | 0 | 0.527778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.166667 | false | 0 | 0.027778 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
60a0dd2437ec218a418696840183045a3bf05e8e | 1,085 | py | Python | examples/opt_surface.py | indiquant/finalytics | df0d3f715510ecb3a1c2fb41b18d893e448f46ac | [
"MIT"
] | null | null | null | examples/opt_surface.py | indiquant/finalytics | df0d3f715510ecb3a1c2fb41b18d893e448f46ac | [
"MIT"
] | null | null | null | examples/opt_surface.py | indiquant/finalytics | df0d3f715510ecb3a1c2fb41b18d893e448f46ac | [
"MIT"
] | null | null | null | __author__ = 'indiquant'
from finalytics.utils.dbhelper import EnumDBOptionTable, read_rectimes, read_options
from finalytics.product.option import PutCallSurface
def main():
rectimes = read_rectimes('NIFTY', 20160921)
for rectime in rectimes:
optrows = read_options('NIFTY', 20160921, rectime)
... | 27.125 | 84 | 0.647926 | 117 | 1,085 | 5.794872 | 0.444444 | 0.237463 | 0.106195 | 0.256637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028117 | 0.246083 | 1,085 | 40 | 85 | 27.125 | 0.800734 | 0.02212 | 0 | 0 | 0 | 0 | 0.040566 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.192308 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
60a95e8983d5fc9ac94e1deaee4cb746281521ed | 59 | py | Python | ejercicio minutos.py | aamerino/EjerciciosClase | 2d9b95fa83f25e81afc36569077d988148893020 | [
"Unlicense"
] | null | null | null | ejercicio minutos.py | aamerino/EjerciciosClase | 2d9b95fa83f25e81afc36569077d988148893020 | [
"Unlicense"
] | null | null | null | ejercicio minutos.py | aamerino/EjerciciosClase | 2d9b95fa83f25e81afc36569077d988148893020 | [
"Unlicense"
] | null | null | null | minutos = 60
print("En una hora hay ", minutos ," minutos") | 29.5 | 46 | 0.677966 | 9 | 59 | 4.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.169492 | 59 | 2 | 46 | 29.5 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.4 | 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 |
60b2e669b75805c5add33c02ef516cd0caa3e4f1 | 199 | py | Python | dji_asdk_to_python/camera/exposure_mode.py | PSBPOSAS/dji-asdk-to-python | 39fd29e172249656ce9f6e7b6273eeff6790d8c1 | [
"BSD-3-Clause"
] | 7 | 2020-11-02T16:31:28.000Z | 2021-11-09T21:32:44.000Z | dji_asdk_to_python/camera/exposure_mode.py | PSBPOSAS/dji-asdk-to-python | 39fd29e172249656ce9f6e7b6273eeff6790d8c1 | [
"BSD-3-Clause"
] | 64 | 2020-09-03T04:32:39.000Z | 2022-02-21T20:30:16.000Z | dji_asdk_to_python/camera/exposure_mode.py | PSBPOSAS/dji-asdk-to-python | 39fd29e172249656ce9f6e7b6273eeff6790d8c1 | [
"BSD-3-Clause"
] | 4 | 2020-09-16T19:07:30.000Z | 2022-02-21T04:48:10.000Z | from enum import Enum
class ExposureMode(Enum):
PROGRAM = 1
SHUTTER_PRIORITY = 2
APERTURE_PRIORITY = 3
MANUAL = 4
UNKNOWN = 255
def __str__(self):
return self.name
| 15.307692 | 25 | 0.638191 | 25 | 199 | 4.84 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05036 | 0.301508 | 199 | 12 | 26 | 16.583333 | 0.820144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
60d44170e3a2016ad722c39f4b8f0e13aa4993e8 | 930 | py | Python | ebcli/lib/kms.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 110 | 2020-01-15T22:58:46.000Z | 2022-03-27T20:47:33.000Z | ebcli/lib/kms.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 89 | 2020-01-15T23:18:34.000Z | 2022-03-31T21:56:05.000Z | ebcli/lib/kms.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 50 | 2020-01-15T22:58:53.000Z | 2022-02-11T17:39:28.000Z | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 34.444444 | 73 | 0.755914 | 144 | 930 | 4.743056 | 0.597222 | 0.087848 | 0.048316 | 0.084919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.152688 | 930 | 26 | 74 | 35.769231 | 0.856599 | 0.576344 | 0 | 0 | 0 | 0 | 0.128609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
60e7e5b46c73398f79c8cd52d474e99a03362a5e | 145 | py | Python | autostack/cli/constants.py | elijahsawyers/autostack | a96eb87c0a210d5a0d46257d1f64445622c5ee16 | [
"MIT"
] | 34 | 2019-07-31T18:20:12.000Z | 2022-01-07T20:31:59.000Z | autostack/cli/constants.py | elijahsawyers/AutoStack | a96eb87c0a210d5a0d46257d1f64445622c5ee16 | [
"MIT"
] | 8 | 2019-11-14T21:38:32.000Z | 2021-12-13T20:08:49.000Z | autostack/cli/constants.py | elijahsawyers/autostack | a96eb87c0a210d5a0d46257d1f64445622c5ee16 | [
"MIT"
] | 12 | 2019-10-28T21:31:20.000Z | 2022-03-28T10:04:18.000Z | '''
Authors: Elijah Sawyers
Emails: elijahsawyers@gmail.com
Date: 12/05/2019
Overview: TODO: Write overview.
'''
PIPE_PATH = '/tmp/monitorPipe'
| 16.111111 | 31 | 0.737931 | 19 | 145 | 5.578947 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.117241 | 145 | 8 | 32 | 18.125 | 0.765625 | 0.717241 | 0 | 0 | 0 | 0 | 0.484848 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
60e910e8ef62363ff72c5f65f17e44406147aac7 | 1,312 | py | Python | keras/layers/regularization/__init__.py | itsraina/keras | 5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35 | [
"Apache-2.0"
] | null | null | null | keras/layers/regularization/__init__.py | itsraina/keras | 5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35 | [
"Apache-2.0"
] | null | null | null | keras/layers/regularization/__init__.py | itsraina/keras | 5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 46.857143 | 80 | 0.771341 | 160 | 1,312 | 6.28125 | 0.54375 | 0.071642 | 0.119403 | 0.230846 | 0.181095 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012027 | 0.112805 | 1,312 | 27 | 81 | 48.592593 | 0.851375 | 0.525915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
60f3e362dd1f0edba015e60adf4b944adb6fe5ad | 560 | py | Python | tasks_sprints_12/h_finish.py | master-cim/algorithm | a57f473ceb32b96240989e31ac33154e55c00724 | [
"MIT"
] | 1 | 2022-03-31T07:30:53.000Z | 2022-03-31T07:30:53.000Z | tasks_sprints_12/h_finish.py | master-cim/algorithm | a57f473ceb32b96240989e31ac33154e55c00724 | [
"MIT"
] | null | null | null | tasks_sprints_12/h_finish.py | master-cim/algorithm | a57f473ceb32b96240989e31ac33154e55c00724 | [
"MIT"
] | 2 | 2022-03-04T09:42:03.000Z | 2022-03-30T14:51:32.000Z | # H. Скобочная последовательность
# ID успешной посылки 65708963
def is_correct_bracket_seq(bracket_list):
while '()' in bracket_list or '[]' in bracket_list or '{}' in bracket_list:
bracket_list = bracket_list.replace('()', '')
bracket_list = bracket_list.replace('[]', '')
bracket_list = ... | 26.666667 | 79 | 0.682143 | 68 | 560 | 5.161765 | 0.382353 | 0.407407 | 0.205128 | 0.250712 | 0.37037 | 0.37037 | 0.37037 | 0.247863 | 0.247863 | 0.247863 | 0 | 0.017621 | 0.189286 | 560 | 20 | 80 | 28 | 0.755507 | 0.107143 | 0 | 0 | 0 | 0 | 0.040241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 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 |
8806da4f7be1020d28b73ee00cd8be99a217ca22 | 62 | py | Python | 12-creating-a-complete-user-system/instance/settings.py | saidulislam/building-a-saas-app | faabbf24b8867002ae445ad6e5a9088e0d2f6f5b | [
"Apache-2.0"
] | null | null | null | 12-creating-a-complete-user-system/instance/settings.py | saidulislam/building-a-saas-app | faabbf24b8867002ae445ad6e5a9088e0d2f6f5b | [
"Apache-2.0"
] | null | null | null | 12-creating-a-complete-user-system/instance/settings.py | saidulislam/building-a-saas-app | faabbf24b8867002ae445ad6e5a9088e0d2f6f5b | [
"Apache-2.0"
] | null | null | null | MAIL_USERNAME = 'asdfasd@gmail.com'
MAIL_PASSWORD = 'asdasdf'
| 20.666667 | 35 | 0.774194 | 8 | 62 | 5.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 62 | 2 | 36 | 31 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
880c1e90832814bb1b5cb4d92c105cf17556873b | 59 | py | Python | tvof/data_release/__init__.py | kingsdigitallab/tvof-django | 12cb0aec4e155345a13602c7d7dfd0882ec92129 | [
"MIT"
] | null | null | null | tvof/data_release/__init__.py | kingsdigitallab/tvof-django | 12cb0aec4e155345a13602c7d7dfd0882ec92129 | [
"MIT"
] | 33 | 2019-12-04T22:37:50.000Z | 2022-02-10T07:15:35.000Z | tvof/data_release/__init__.py | kingsdigitallab/tvof-django | 12cb0aec4e155345a13602c7d7dfd0882ec92129 | [
"MIT"
] | null | null | null | default_app_config = 'data_release.apps.DataReleaseConfig'
| 29.5 | 58 | 0.864407 | 7 | 59 | 6.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 59 | 1 | 59 | 59 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.59322 | 0.59322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
880c7cae949134cbcb1c8242c87ce7c6e7620180 | 282 | py | Python | lzhw/__init__.py | MNoorFawi/lzhw | 97beb8ad13e3fdf09358ce3d28084fa03389283a | [
"MIT"
] | 4 | 2020-05-29T02:40:04.000Z | 2021-04-08T17:35:58.000Z | lzhw/__init__.py | MNoorFawi/lzhw | 97beb8ad13e3fdf09358ce3d28084fa03389283a | [
"MIT"
] | 1 | 2020-05-29T02:34:51.000Z | 2020-05-29T06:24:11.000Z | lzhw/__init__.py | MNoorFawi/lzhw | 97beb8ad13e3fdf09358ce3d28084fa03389283a | [
"MIT"
] | 4 | 2020-05-29T02:32:14.000Z | 2022-01-14T15:55:02.000Z | from .lzhw_alg import LZHW, decompress_from_file
from .lzhw_df import CompressedDF, decompress_df_from_file, CompressedFromCSV
from .huffman_coding import huffman_coding
from lz77c import *
from lz20c import lz20
from .lz78 import lz78
from lzw_c import lzw_compress, lzw_decompress | 40.285714 | 77 | 0.858156 | 43 | 282 | 5.348837 | 0.418605 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039841 | 0.109929 | 282 | 7 | 78 | 40.285714 | 0.876494 | 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 |
71485a0db11c0293acf9a9bb3087e5cec8184727 | 338 | py | Python | iris_sdk/models/data/reservation.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/reservation.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/reservation.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData
from iris_sdk.models.maps.reservation import ReservationMap
class ReservationData(ReservationMap, BaseData):
@property
def account(self):
return self.account_id
@account.setter
def account(self, account):
self.ac... | 26 | 59 | 0.745562 | 42 | 338 | 5.880952 | 0.571429 | 0.133603 | 0.089069 | 0.137652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174556 | 338 | 13 | 60 | 26 | 0.885305 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
714a2902f92d2a24a5eb43aca6ef4e9ed0dbcb45 | 5,638 | py | Python | joplin/pages/department_page/migrations/0001_initial.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 15 | 2018-09-27T07:36:30.000Z | 2021-08-03T16:01:21.000Z | joplin/pages/department_page/migrations/0001_initial.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 183 | 2017-11-16T23:30:47.000Z | 2020-12-18T21:43:36.000Z | joplin/pages/department_page/migrations/0001_initial.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 12 | 2017-12-12T22:48:05.000Z | 2021-03-01T18:01:24.000Z | # Generated by Django 2.2.12 on 2020-04-10 10:54
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import wagtail.core.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailcore', '0045_assign_unlock_grouppagepermis... | 59.347368 | 207 | 0.615289 | 602 | 5,638 | 5.594684 | 0.17608 | 0.058789 | 0.057898 | 0.075713 | 0.739608 | 0.730998 | 0.702197 | 0.630344 | 0.630344 | 0.591449 | 0 | 0.011617 | 0.236609 | 5,638 | 94 | 208 | 59.978723 | 0.770911 | 0.008159 | 0 | 0.402299 | 1 | 0 | 0.187835 | 0.043292 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045977 | 0 | 0.091954 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
7150c8804a37f39585f46029060336f10bf42eba | 1,698 | py | Python | laser-chess-backend/tests/utils.py | tojatos/laser-tactics | 538bef7ab03bf35c0ef27e195001f6f7f12c1ba4 | [
"MIT"
] | 2 | 2021-12-12T03:45:18.000Z | 2021-12-21T03:53:23.000Z | laser-chess-backend/tests/utils.py | tojatos/laser-tactics | 538bef7ab03bf35c0ef27e195001f6f7f12c1ba4 | [
"MIT"
] | 1 | 2022-03-26T15:13:29.000Z | 2022-03-26T15:13:29.000Z | laser-chess-backend/tests/utils.py | tojatos/laser-tactics | 538bef7ab03bf35c0ef27e195001f6f7f12c1ba4 | [
"MIT"
] | null | null | null | import dataclasses
from starlette.testclient import TestClient
from app.core.internal import crud
def get_token_data(create_user_data):
return dict(username=create_user_data['username'], password=create_user_data['password'])
def verify_user(db, username):
user = crud.get_user(db, username)
crud.verify... | 35.375 | 116 | 0.6596 | 224 | 1,698 | 4.830357 | 0.223214 | 0.064695 | 0.077634 | 0.083179 | 0.40573 | 0.40573 | 0.334566 | 0.334566 | 0.334566 | 0.249538 | 0 | 0 | 0.211425 | 1,698 | 47 | 117 | 36.12766 | 0.808066 | 0 | 0 | 0 | 0 | 0 | 0.051826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.030303 | 0.090909 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
716e72f5b55a0ab10e2b3dceaa9161a6eba46afd | 236 | py | Python | application/sources/views/__init__.py | JuiceFV/RamblerTask | 1aa57fefcd96059ac63391d6d178ea7cfa49e1d0 | [
"MIT"
] | 1 | 2020-03-18T12:29:34.000Z | 2020-03-18T12:29:34.000Z | application/sources/views/__init__.py | JuiceFV/RamblerTask | 1aa57fefcd96059ac63391d6d178ea7cfa49e1d0 | [
"MIT"
] | 11 | 2020-03-06T18:21:17.000Z | 2022-03-12T00:34:37.000Z | application/sources/views/__init__.py | JuiceFV/RamblerTask | 1aa57fefcd96059ac63391d6d178ea7cfa49e1d0 | [
"MIT"
] | null | null | null | """The __init__.py for 'views' which contains the only permit for functions' sharing.
"""
from .frontend import Index, Token, go_on_with_delay
# Giving permit for these functions/classes
__all__ = ('Index', 'Token', 'go_on_with_delay') | 39.333333 | 85 | 0.758475 | 35 | 236 | 4.714286 | 0.685714 | 0.109091 | 0.145455 | 0.169697 | 0.278788 | 0.278788 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127119 | 236 | 6 | 86 | 39.333333 | 0.800971 | 0.529661 | 0 | 0 | 0 | 0 | 0.247619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
71804047c22d00eb59924d21466afea432e8d90a | 350 | py | Python | astropy/convolution/__init__.py | jbkalmbach/astropy | 88ae8c615533efd1e60de4aded204943f66f881c | [
"BSD-3-Clause"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | astropy/convolution/__init__.py | jbkalmbach/astropy | 88ae8c615533efd1e60de4aded204943f66f881c | [
"BSD-3-Clause"
] | 11 | 2017-12-18T16:27:29.000Z | 2018-08-29T14:54:22.000Z | astropy/convolution/__init__.py | jbkalmbach/astropy | 88ae8c615533efd1e60de4aded204943f66f881c | [
"BSD-3-Clause"
] | 1 | 2018-08-02T09:33:21.000Z | 2018-08-02T09:33:21.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from .core import *
from .kernels import *
from .utils import discretize_model
try:
# Not guaranteed available at setup time
from .convolve import convolve, convolve_fft, interpolate_replace_nans, convolve_models
except ImportError:
if not _... | 25 | 91 | 0.76 | 47 | 350 | 5.489362 | 0.744681 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.191429 | 350 | 13 | 92 | 26.923077 | 0.908127 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7190d6aae11703da41024a93b7e443b136ff2147 | 398 | py | Python | FusionIIIT/applications/notifications_extension/urls.py | ssaksham9/Fusion | f1e405b457dba399411a2ddb79a9068746c05057 | [
"bzip2-1.0.6"
] | 2 | 2020-01-24T16:34:54.000Z | 2020-08-01T05:09:24.000Z | FusionIIIT/applications/notifications_extension/urls.py | ssaksham9/Fusion | f1e405b457dba399411a2ddb79a9068746c05057 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/notifications_extension/urls.py | ssaksham9/Fusion | f1e405b457dba399411a2ddb79a9068746c05057 | [
"bzip2-1.0.6"
] | 5 | 2020-01-21T11:27:06.000Z | 2020-02-07T13:53:49.000Z | from notifications.urls import urlpatterns
from applications.notifications_extension.views import mark_as_read_and_redirect
from django.conf.urls import url as pattern
from django.conf.urls import include, url
from . import views
urlpatterns = [
pattern(r'^mark-as-read-and-redirect/(?P<slug>\d+)/$', views.mark... | 39.8 | 130 | 0.788945 | 58 | 398 | 5.189655 | 0.396552 | 0.079734 | 0.13289 | 0.172757 | 0.438538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113065 | 398 | 9 | 131 | 44.222222 | 0.852691 | 0 | 0 | 0 | 0 | 0 | 0.168342 | 0.168342 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 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 |
71ae58ca784253bbc120b4b0d22b12644aa323ee | 93 | py | Python | problems/dynamic_programming/classes/strategy.py | colin-valentini/python-utils | 7bbbf6603c050291ee56df266257a351919f5e04 | [
"MIT"
] | null | null | null | problems/dynamic_programming/classes/strategy.py | colin-valentini/python-utils | 7bbbf6603c050291ee56df266257a351919f5e04 | [
"MIT"
] | 1 | 2021-02-27T23:35:17.000Z | 2021-02-27T23:38:49.000Z | problems/dynamic_programming/classes/strategy.py | colin-valentini/python | 7bbbf6603c050291ee56df266257a351919f5e04 | [
"MIT"
] | null | null | null | from enum import Enum, auto
class Strategy(Enum):
Recursion = auto()
Tabulation = auto() | 18.6 | 27 | 0.709677 | 12 | 93 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182796 | 93 | 5 | 28 | 18.6 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
71b2bccc703f1ac2201cb731cb4401bb3f7f5bf2 | 499 | py | Python | unittests/test_scale.py | heeryerate/Guitar-Harmony | d7703abb3dab3663b8ccaac9dcf256bbf6481914 | [
"MIT"
] | 5 | 2020-03-15T19:09:59.000Z | 2021-02-26T03:32:38.000Z | unittests/test_scale.py | heeryerate/Guitar-Harmony | d7703abb3dab3663b8ccaac9dcf256bbf6481914 | [
"MIT"
] | 1 | 2020-03-30T06:46:17.000Z | 2020-03-30T06:46:17.000Z | unittests/test_scale.py | heeryerate/Guitar-Harmony | d7703abb3dab3663b8ccaac9dcf256bbf6481914 | [
"MIT"
] | 1 | 2020-03-30T05:59:24.000Z | 2020-03-30T05:59:24.000Z | # -*- coding: utf-8 -*-
# @Author: Xi He
# @Date: 2020-03-22 15:00:52
# @Last Modified by: Xi He
# @Last Modified time: 2020-04-01 15:35:39
import unittest
from guitarHarmony.note import Note
from guitarHarmony.interval import Interval
from guitarHarmony.chord import Chord
from guitarHarmony.scale import Scale
impo... | 22.681818 | 43 | 0.707415 | 70 | 499 | 4.928571 | 0.614286 | 0.197101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 0.190381 | 499 | 21 | 44 | 23.761905 | 0.774752 | 0.266533 | 0 | 0.153846 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0.461538 | 0 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
71c752487ee68b7577ba6fcc8aaa830ba74b6df5 | 1,149 | py | Python | RLBotPack/manticore/utility/plane.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 13 | 2019-05-25T20:25:51.000Z | 2022-03-19T13:36:23.000Z | RLBotPack/manticore/utility/plane.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 53 | 2019-06-07T13:31:59.000Z | 2022-03-28T22:53:47.000Z | RLBotPack/manticore/utility/plane.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 78 | 2019-06-30T08:42:13.000Z | 2022-03-23T20:11:42.000Z | from typing import List
from utility.rlmath import argmin
from utility.vec import Vec3, dot
class Plane:
def __init__(self, offset: Vec3, normal: Vec3):
self.offset = offset
self.normal = normal
def dist_to_plane(pos: Vec3, plane: Plane) -> float:
return abs(dot(pos - plane.offset, plane.no... | 29.461538 | 83 | 0.704091 | 167 | 1,149 | 4.694611 | 0.281437 | 0.084184 | 0.053571 | 0.084184 | 0.170918 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.186249 | 1,149 | 38 | 84 | 30.236842 | 0.820321 | 0.05309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.136364 | 0.181818 | 0.772727 | 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 |
71e30074262e13d04a80409bfc08630c04aecb1a | 76 | py | Python | cartesio/core/__init__.py | cdeldon/cartesio | a07d378b4752f7050d9194778863e27089220a67 | [
"MIT"
] | null | null | null | cartesio/core/__init__.py | cdeldon/cartesio | a07d378b4752f7050d9194778863e27089220a67 | [
"MIT"
] | 12 | 2020-07-08T22:12:11.000Z | 2022-02-07T08:02:36.000Z | cartesio/core/__init__.py | cdeldon/cartesio | a07d378b4752f7050d9194778863e27089220a67 | [
"MIT"
] | 1 | 2020-07-06T08:53:48.000Z | 2020-07-06T08:53:48.000Z | __all__ = [
"jitted",
]
from .jit_compile import jit_compile as jitted
| 12.666667 | 46 | 0.697368 | 10 | 76 | 4.7 | 0.7 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 76 | 5 | 47 | 15.2 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e090a167d658b0adbbe8cfeb15de55dccdcff23d | 1,957 | py | Python | week5/lecture9/exercise_coordinate.py | nobodysshadow/edX_MITx_6.00.1x | d2e5ab0bd9951153ddc5fa09f01425c54854178e | [
"MIT"
] | null | null | null | week5/lecture9/exercise_coordinate.py | nobodysshadow/edX_MITx_6.00.1x | d2e5ab0bd9951153ddc5fa09f01425c54854178e | [
"MIT"
] | null | null | null | week5/lecture9/exercise_coordinate.py | nobodysshadow/edX_MITx_6.00.1x | d2e5ab0bd9951153ddc5fa09f01425c54854178e | [
"MIT"
] | null | null | null | """
Created on Wed Feb 18 09:43 2018
@author: guenther.wasser
Exercise: coordinate
--------------------
Consider the following code from the last lecture video:
class Coordinate(object):
def __init__(self, x, y):
self.x = x
self.y = y
def getX(self):
# Getter method for a Coordinate ... | 30.107692 | 238 | 0.631068 | 284 | 1,957 | 4.193662 | 0.355634 | 0.047019 | 0.053736 | 0.063812 | 0.492024 | 0.492024 | 0.473552 | 0.473552 | 0.473552 | 0.473552 | 0 | 0.008892 | 0.252938 | 1,957 | 64 | 239 | 30.578125 | 0.805746 | 0.678079 | 0 | 0 | 0 | 0 | 0.054927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0 | 0.263158 | 0.631579 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e092283a5c77010f142804ef9010543432693092 | 337 | py | Python | instagram_api/response/comment_category_filter.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/comment_category_filter.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/comment_category_filter.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from .mapper import ApiResponse, ApiResponseInterface
from .mapper.types import Timestamp, AnyType
__all__ = ['CommentCategoryFilterResponse']
class CommentCategoryFilterResponseInterface(ApiResponseInterface):
disabled: AnyType
class CommentCategoryFilterResponse(ApiResponse, CommentCategoryFilterResponseInte... | 25.923077 | 89 | 0.845697 | 23 | 337 | 12.217391 | 0.608696 | 0.071174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10089 | 337 | 12 | 90 | 28.083333 | 0.927393 | 0 | 0 | 0 | 0 | 0 | 0.086053 | 0.086053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.714286 | 0 | 1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e0a7ece1aadb887c6f9b04c9c6da28669b8621b9 | 346 | py | Python | deadshot/__init__.py | shreyanshp/deadshot | 25f2fb13bc99853ac141521cab61f2ba6835f0a0 | [
"MIT"
] | 172 | 2021-05-18T17:26:55.000Z | 2022-02-27T00:36:55.000Z | deadshot/__init__.py | shreyanshp/deadshot | 25f2fb13bc99853ac141521cab61f2ba6835f0a0 | [
"MIT"
] | 1 | 2021-07-14T17:29:58.000Z | 2021-09-18T19:58:32.000Z | deadshot/__init__.py | shreyanshp/deadshot | 25f2fb13bc99853ac141521cab61f2ba6835f0a0 | [
"MIT"
] | 11 | 2021-05-20T18:23:24.000Z | 2021-10-21T03:13:15.000Z | from celery import Celery
from .api_server import create_app
from . import *
from deadshot.configurations.celery_config_data import celery_config
def make_celery(app_name=__name__):
return Celery(
celery_config["name"],
backend=celery_config["broker"],
broker=celery_config["backend"]
)... | 21.625 | 68 | 0.731214 | 43 | 346 | 5.534884 | 0.395349 | 0.252101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182081 | 346 | 15 | 69 | 23.066667 | 0.840989 | 0 | 0 | 0 | 0 | 0 | 0.049133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e0bae4afb68c37a38d1c65b4c8d556d2640db1ed | 1,665 | py | Python | sslic/losses/ressl.py | gergopool/ssl | 676d01b88a50acea9a3b6c406fc4b82de74ec7b3 | [
"MIT"
] | 1 | 2022-02-05T13:49:17.000Z | 2022-02-05T13:49:17.000Z | sslic/losses/ressl.py | gergopool/ssl | 676d01b88a50acea9a3b6c406fc4b82de74ec7b3 | [
"MIT"
] | null | null | null | sslic/losses/ressl.py | gergopool/ssl | 676d01b88a50acea9a3b6c406fc4b82de74ec7b3 | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
from .general import Loss
from .mocov2 import Mocov2Loss
__all__ = ['ressl_loss']
EPS = 1e-6
class ReSSLLoss(Mocov2Loss):
def __init__(self, *args, tau_s=0.1, tau_t=0.04, **kwargs):
super().__init__(*args, tau=tau_s, **kwargs)
self.tau_s = self.tau ... | 27.295082 | 76 | 0.628228 | 248 | 1,665 | 4.004032 | 0.310484 | 0.096677 | 0.096677 | 0.120846 | 0.292044 | 0.24572 | 0.24572 | 0.24572 | 0.24572 | 0.24572 | 0 | 0.0311 | 0.246847 | 1,665 | 61 | 77 | 27.295082 | 0.760766 | 0.098499 | 0 | 0.210526 | 0 | 0 | 0.006684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.131579 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e0bb509690674f6abd14228728ed44ad5f09969c | 22 | py | Python | tests/fundamentals/__init__.py | zhangdanyangg/commons-util-py | 65514ac1f5002b6156a31c09aeb38538a4d88cba | [
"Apache-2.0"
] | 7 | 2015-04-17T02:12:32.000Z | 2018-08-08T01:29:24.000Z | tests/fundamentals/__init__.py | zhangdanyangg/commons-util-py | 65514ac1f5002b6156a31c09aeb38538a4d88cba | [
"Apache-2.0"
] | 3 | 2015-05-10T12:18:59.000Z | 2016-05-27T06:56:40.000Z | tests/fundamentals/__init__.py | zhangdanyangg/commons-util-py | 65514ac1f5002b6156a31c09aeb38538a4d88cba | [
"Apache-2.0"
] | 4 | 2017-08-26T11:44:20.000Z | 2021-06-13T11:50:11.000Z | __author__ = 'Danyang' | 22 | 22 | 0.772727 | 2 | 22 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 22 | 1 | 22 | 22 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0c0cdc1e4b2e6aabbf47651b600cf82d868b7af | 9,631 | py | Python | release/stubs.min/System/Drawing/__init___parts/Bitmap.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/System/Drawing/__init___parts/Bitmap.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/System/Drawing/__init___parts/Bitmap.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class Bitmap(Image,ISerializable,ICloneable,IDisposable):
"""
Encapsulates a GDI+ bitmap,which consists of the pixel data for a graphics image and its attributes. A System.Drawing.Bitmap is an object used to work with images defined by pixel data.
Bitmap(filename: str)
Bitmap(filename: str,useIcm: bool... | 25.411609 | 215 | 0.704496 | 1,238 | 9,631 | 5.378837 | 0.170436 | 0.099565 | 0.094158 | 0.048356 | 0.602643 | 0.518997 | 0.455324 | 0.371377 | 0.355759 | 0.300646 | 0 | 0.000265 | 0.215554 | 9,631 | 378 | 216 | 25.478836 | 0.881138 | 0.821825 | 0 | 0.525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.45 | false | 0.45 | 0 | 0 | 0.475 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e0d2578dcd94202fb97425805ed4e518abcc7387 | 887 | py | Python | pyaz/cosmosdb/mongodb/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/cosmosdb/mongodb/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/cosmosdb/mongodb/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage MongoDB resources of Azure Cosmos DB account.
'''
from ... pyaz_utils import _call_az
from . import collection, database, restorable_collection, restorable_database, restorable_resource
def retrieve_latest_backup_time(account_name, collection_name, database_name, location, resource_group):
'''
Retr... | 42.238095 | 128 | 0.760992 | 112 | 887 | 5.857143 | 0.392857 | 0.036585 | 0.045732 | 0.059451 | 0.117378 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167982 | 887 | 20 | 129 | 44.35 | 0.888889 | 0.573844 | 0 | 0 | 0 | 0 | 0.142424 | 0.081818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e0d89bf5b1cf9d7cd0992edd72bd1ae1449849e0 | 383 | py | Python | tests/test_general_validators/test_has_no_lines_ends_with_semicolon.py | SerejkaSJ/fiasko_bro | dfb8c30109f317c1e5b6d211e002fd148695809e | [
"MIT"
] | 25 | 2018-01-24T10:45:35.000Z | 2020-12-05T21:47:20.000Z | tests/test_general_validators/test_has_no_lines_ends_with_semicolon.py | SerejkaSJ/fiasko_bro | dfb8c30109f317c1e5b6d211e002fd148695809e | [
"MIT"
] | 110 | 2018-01-21T12:25:13.000Z | 2021-06-10T19:27:22.000Z | tests/test_general_validators/test_has_no_lines_ends_with_semicolon.py | SerejkaSJ/fiasko_bro | dfb8c30109f317c1e5b6d211e002fd148695809e | [
"MIT"
] | 13 | 2017-12-12T22:19:01.000Z | 2019-01-29T18:08:05.000Z | from fiasko_bro.validators import line_ends_with_semicolon
def test_line_ends_with_semicolon_fails(test_repo):
expected_output = 'file_with_semicolons.py'
output = line_ends_with_semicolon(test_repo)
assert output == expected_output
def test_line_ends_with_semicolon_succeeds(origin_repo):
output = l... | 29.461538 | 58 | 0.822454 | 55 | 383 | 5.218182 | 0.418182 | 0.139373 | 0.209059 | 0.365854 | 0.383275 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127937 | 383 | 12 | 59 | 31.916667 | 0.859281 | 0 | 0 | 0 | 0 | 0 | 0.060052 | 0.060052 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
460b5532669eec96f096789e5fd458762dbf9070 | 179 | py | Python | pyTesseractSample.py | gokulrajanpillai/Image2Text | 6adf198139529fa02c9241b4a8dc8548ea211809 | [
"MIT"
] | null | null | null | pyTesseractSample.py | gokulrajanpillai/Image2Text | 6adf198139529fa02c9241b4a8dc8548ea211809 | [
"MIT"
] | null | null | null | pyTesseractSample.py | gokulrajanpillai/Image2Text | 6adf198139529fa02c9241b4a8dc8548ea211809 | [
"MIT"
] | null | null | null | from PIL import Image
import pytesseract
im = Image.open("images/test-image.png")
text = pytesseract.image_to_string(im, lang = 'eng')
print("Processed text result is: ",text)
| 19.888889 | 52 | 0.743017 | 27 | 179 | 4.851852 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128492 | 179 | 8 | 53 | 22.375 | 0.839744 | 0 | 0 | 0 | 0 | 0 | 0.27933 | 0.117318 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
46163560a33928e88b244c99607fb8e93f803494 | 303 | py | Python | app/mongo.py | ralphdc/blog | fe3ebe3aea4da38a3cf592c90b0dd9914e47f8de | [
"Apache-2.0"
] | null | null | null | app/mongo.py | ralphdc/blog | fe3ebe3aea4da38a3cf592c90b0dd9914e47f8de | [
"Apache-2.0"
] | null | null | null | app/mongo.py | ralphdc/blog | fe3ebe3aea4da38a3cf592c90b0dd9914e47f8de | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import pymongo
from app import app
MongoConnection = pymongo.MongoClient(host=app.config.get('MONGO_HOST'), port=app.config.get('MONGO_PORT'))
mongodb = MongoConnection[app.config.get('MONGO_DB')]
mongodb.authenticate(app.config.get('MONGO_USER'), app.config.get('MONGO_PWD')) | 30.3 | 107 | 0.772277 | 44 | 303 | 5.204545 | 0.454545 | 0.196507 | 0.262009 | 0.371179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.066007 | 303 | 10 | 108 | 30.3 | 0.805654 | 0.069307 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4617a17406bd173cac76ae903b14f7a4fd667eb3 | 7,076 | py | Python | conduit/tests/test_users.py | yacoma/morepath-realworld-example-app | 65f24dba26e133f7a920832f681fc12ba6a0a522 | [
"MIT"
] | 5 | 2018-06-08T07:35:22.000Z | 2020-01-04T20:55:16.000Z | conduit/tests/test_users.py | yacoma/morepath-realworld-example-app | 65f24dba26e133f7a920832f681fc12ba6a0a522 | [
"MIT"
] | 2 | 2018-06-08T07:35:02.000Z | 2018-06-11T21:12:30.000Z | conduit/tests/test_users.py | yacoma/morepath-realworld-example-app | 65f24dba26e133f7a920832f681fc12ba6a0a522 | [
"MIT"
] | null | null | null | import json
from argon2 import PasswordHasher
import morepath
from pony.orm import db_session
from webtest import TestApp as Client
import conduit
from conduit import TestApp as App
from conduit.database import db
from conduit.auth import User
def setup_module(module):
morepath.scan(conduit)
morepath.commit... | 27.007634 | 85 | 0.52996 | 738 | 7,076 | 4.940379 | 0.151762 | 0.05266 | 0.060614 | 0.055952 | 0.78305 | 0.752606 | 0.725453 | 0.638508 | 0.613823 | 0.539495 | 0 | 0.014039 | 0.305399 | 7,076 | 261 | 86 | 27.111111 | 0.727772 | 0 | 0 | 0.526066 | 0 | 0 | 0.242651 | 0.018089 | 0 | 0 | 0 | 0 | 0.085308 | 1 | 0.028436 | false | 0.099526 | 0.042654 | 0 | 0.07109 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
46191f9a780bb7bb813767c9d319f624832ef926 | 450 | py | Python | api/serializers.py | hackoregon/transportation-system-backend | fd171716ca87d8f5ab647341ab982fa200d9398b | [
"MIT"
] | 8 | 2018-01-31T19:42:37.000Z | 2019-05-06T10:01:55.000Z | api/serializers.py | hackoregon/transportation-system-backend | fd171716ca87d8f5ab647341ab982fa200d9398b | [
"MIT"
] | 41 | 2018-01-31T21:45:47.000Z | 2018-05-19T17:02:52.000Z | api/serializers.py | hackoregon/transportation-system-backend | fd171716ca87d8f5ab647341ab982fa200d9398b | [
"MIT"
] | 2 | 2018-01-31T21:30:19.000Z | 2018-02-24T03:48:06.000Z | from rest_framework import serializers
from api.models import Crash, Partic, Vhcl
class CrashSerializer(serializers.ModelSerializer):
class Meta:
model = Crash
fields = '__all__'
class ParticSerializer(serializers.ModelSerializer):
class Meta:
model = Partic
fields = ... | 22.5 | 52 | 0.673333 | 42 | 450 | 6.904762 | 0.452381 | 0.268966 | 0.32069 | 0.362069 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26 | 450 | 20 | 53 | 22.5 | 0.870871 | 0 | 0 | 0.428571 | 0 | 0 | 0.046563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
1cc7cb4a252e514d126a8781be3388f8bcaabbb6 | 160 | py | Python | Frame/KeyDict.py | PyRectangle/GreyRectangle | 21c19002f52563a096566e9166040815005b830b | [
"MIT"
] | 3 | 2017-09-28T16:53:09.000Z | 2018-03-18T20:01:41.000Z | Frame/KeyDict.py | PyRectangle/GreyRectangle | 21c19002f52563a096566e9166040815005b830b | [
"MIT"
] | null | null | null | Frame/KeyDict.py | PyRectangle/GreyRectangle | 21c19002f52563a096566e9166040815005b830b | [
"MIT"
] | null | null | null | class KeyDict(dict):
def __getitem__(self, key):
try:
return super().__getitem__(key)
except KeyError:
return False
| 22.857143 | 43 | 0.5625 | 16 | 160 | 5.125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35 | 160 | 6 | 44 | 26.666667 | 0.788462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1ccb23a556cd9c38891d8e200fb16a42ebe65d79 | 38,748 | py | Python | solaredge_setapp/communication_pb2.py | KJLogic/solaredge_setapp | 35eb298031ad7ad49b9825b974ba8aa56f6fbbda | [
"MIT"
] | null | null | null | solaredge_setapp/communication_pb2.py | KJLogic/solaredge_setapp | 35eb298031ad7ad49b9825b974ba8aa56f6fbbda | [
"MIT"
] | null | null | null | solaredge_setapp/communication_pb2.py | KJLogic/solaredge_setapp | 35eb298031ad7ad49b9825b974ba8aa56f6fbbda | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: communication.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as ... | 43.684329 | 3,822 | 0.76053 | 4,749 | 38,748 | 5.888819 | 0.05517 | 0.04863 | 0.050311 | 0.02975 | 0.769005 | 0.702603 | 0.676965 | 0.631874 | 0.615998 | 0.581492 | 0 | 0.044358 | 0.122639 | 38,748 | 886 | 3,823 | 43.733634 | 0.778268 | 0.026453 | 0 | 0.678744 | 1 | 0.002415 | 0.164094 | 0.124125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006039 | 0 | 0.006039 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cd01692102f9d8467bc8618d01c912f00adc6d0 | 107 | py | Python | output/models/ibm_data/valid/d3_3_16/d3_3_16v01_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ibm_data/valid/d3_3_16/d3_3_16v01_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ibm_data/valid/d3_3_16/d3_3_16v01_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ibm_data.valid.d3_3_16.d3_3_16v01_xsd.d3_3_16v01 import Root
__all__ = [
"Root",
]
| 17.833333 | 79 | 0.757009 | 20 | 107 | 3.45 | 0.7 | 0.130435 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 0.130841 | 107 | 5 | 80 | 21.4 | 0.569892 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
1cd0b0a4ac4ed3c827ff4a2d05d424de9b0b2b66 | 483 | py | Python | dflow/scheduler/exceptions.py | SS-RD/dflow | fca36d2c8d53b549b01a0560f67709c77bf22c87 | [
"Apache-2.0"
] | null | null | null | dflow/scheduler/exceptions.py | SS-RD/dflow | fca36d2c8d53b549b01a0560f67709c77bf22c87 | [
"Apache-2.0"
] | null | null | null | dflow/scheduler/exceptions.py | SS-RD/dflow | fca36d2c8d53b549b01a0560f67709c77bf22c87 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
This module contains scheduler exceptions
'''
class ScheduleException(Exception):
'''
Base exception class
'''
def __init__(self, message=''):
super(ScheduleException, self).__init__(message)
self.strerror = message
class Overtime(ScheduleException):
'''... | 21 | 56 | 0.652174 | 49 | 483 | 6.265306 | 0.632653 | 0.130293 | 0.18241 | 0.201954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002688 | 0.229814 | 483 | 22 | 57 | 21.954545 | 0.822581 | 0.36853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 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 |
1cdb8d3ba2c9597fe73a99c522bc1ca9df70d427 | 155 | py | Python | flask_contentful/signals.py | raicheff/flask-contentful | 08fd3dcfb1c99c762b86ac3727f0efc94955e25c | [
"MIT"
] | null | null | null | flask_contentful/signals.py | raicheff/flask-contentful | 08fd3dcfb1c99c762b86ac3727f0efc94955e25c | [
"MIT"
] | null | null | null | flask_contentful/signals.py | raicheff/flask-contentful | 08fd3dcfb1c99c762b86ac3727f0efc94955e25c | [
"MIT"
] | null | null | null | #
# Flask-Contentful
#
# Copyright (C) 2018 Boris Raicheff
# All rights reserved
#
from flask.signals import Namespace
namespace = Namespace()
# EOF
| 9.6875 | 35 | 0.716129 | 18 | 155 | 6.166667 | 0.833333 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.193548 | 155 | 15 | 36 | 10.333333 | 0.856 | 0.477419 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1cecd869cfa6392a5c0f08f307233fce9f4587ff | 483 | py | Python | tools/leetcode.074.Search a 2D Matrix/leetcode.074.Search a 2D Matrix.submission8.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.074.Search a 2D Matrix/leetcode.074.Search a 2D Matrix.submission8.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.074.Search a 2D Matrix/leetcode.074.Search a 2D Matrix.submission8.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @param matrix, a list of lists of integers
# @param target, an integer
# @return a boolean
def searchMatrix(self, matrix, target):
if not matrix:
return False
if target < matrix[0][0] or target > matrix[len(matrix)-1][len(matrix[0])-1]:
return Fa... | 483 | 483 | 0.536232 | 62 | 483 | 4.177419 | 0.451613 | 0.127413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022951 | 0.36853 | 483 | 1 | 483 | 483 | 0.82623 | 0.178054 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e8186c978eea4de172a2bc6873d7015e41b3da64 | 443 | py | Python | python_modules/dagster/dagster/core/definitions/decorators/__init__.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 4,606 | 2018-06-21T17:45:20.000Z | 2022-03-31T23:39:42.000Z | python_modules/dagster/dagster/core/definitions/decorators/__init__.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 6,221 | 2018-06-12T04:36:01.000Z | 2022-03-31T21:43:05.000Z | python_modules/dagster/dagster/core/definitions/decorators/__init__.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 619 | 2018-08-22T22:43:09.000Z | 2022-03-31T22:48:06.000Z | from .composite_solid import composite_solid
from .config_mapping import config_mapping
from .graph import graph
from .hook import failure_hook, success_hook
from .job import job
from .op import op
from .pipeline import pipeline
from .repository import repository
from .schedule import daily_schedule, hourly_schedule, m... | 36.916667 | 98 | 0.844244 | 63 | 443 | 5.746032 | 0.349206 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115124 | 443 | 11 | 99 | 40.272727 | 0.923469 | 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 | 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 |
e822bf698f9e9b6fc76a6230299eab6d652bc43c | 722 | py | Python | db_multitenant/mapper.py | leapoli/django-db-multitenant | 6e0a1e5ae83955e4a466b701bb83afc42b15825c | [
"BSD-3-Clause"
] | 126 | 2015-01-05T13:52:01.000Z | 2022-03-30T19:18:39.000Z | db_multitenant/mapper.py | leapoli/django-db-multitenant | 6e0a1e5ae83955e4a466b701bb83afc42b15825c | [
"BSD-3-Clause"
] | 23 | 2015-08-08T01:04:57.000Z | 2021-09-14T11:59:13.000Z | db_multitenant/mapper.py | leapoli/django-db-multitenant | 6e0a1e5ae83955e4a466b701bb83afc42b15825c | [
"BSD-3-Clause"
] | 45 | 2015-01-30T23:17:05.000Z | 2022-03-18T08:27:32.000Z | """Mapper interface."""
class TenantMapper:
"""Interface for mapping django bits to a tenant, based on a request.
You must provide an implementation of this class, and set
settings.MULTITENANT_MAPPER_CLASS to its full class name.
"""
def get_tenant_name(self, request):
"""Returns an opaque... | 36.1 | 77 | 0.702216 | 94 | 722 | 5.276596 | 0.5 | 0.03629 | 0.181452 | 0.133065 | 0.258065 | 0.173387 | 0.173387 | 0 | 0 | 0 | 0 | 0 | 0.221607 | 722 | 19 | 78 | 38 | 0.882562 | 0.516621 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e82566be766dbbce8a7ae7607b203131c0d941c4 | 1,106 | py | Python | lib/sqlalchemy/testing/warnings.py | petit87/sqlalchemy | 67d674bd63ca36ac32b23f96e2b19e9dac6b0863 | [
"MIT"
] | null | null | null | lib/sqlalchemy/testing/warnings.py | petit87/sqlalchemy | 67d674bd63ca36ac32b23f96e2b19e9dac6b0863 | [
"MIT"
] | null | null | null | lib/sqlalchemy/testing/warnings.py | petit87/sqlalchemy | 67d674bd63ca36ac32b23f96e2b19e9dac6b0863 | [
"MIT"
] | null | null | null | # testing/warnings.py
# Copyright (C) 2005-2022 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
from __future__ import annotations
from . import assertions
from .. import exc ... | 26.333333 | 70 | 0.742315 | 149 | 1,106 | 5.38255 | 0.604027 | 0.024938 | 0.049875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011086 | 0.184448 | 1,106 | 41 | 71 | 26.97561 | 0.878049 | 0.528933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.384615 | 0 | 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 |
08fb437f59a7e47cfaef3c6c74e2cb2a7374a83c | 539 | py | Python | src/package/test/test_hridya_rectangle.py | h-varma/actions-example-iulusoy | bbfbc35a1ae4d90dd982d174a63853622d9c4a7e | [
"MIT"
] | 2 | 2021-03-11T12:21:28.000Z | 2021-03-22T08:15:42.000Z | src/package/test/test_hridya_rectangle.py | h-varma/actions-example-iulusoy | bbfbc35a1ae4d90dd982d174a63853622d9c4a7e | [
"MIT"
] | 7 | 2021-03-11T14:55:12.000Z | 2021-04-12T11:01:20.000Z | src/package/test/test_hridya_rectangle.py | h-varma/actions-example-iulusoy | bbfbc35a1ae4d90dd982d174a63853622d9c4a7e | [
"MIT"
] | null | null | null | import unittest
import hridya_rectangle as hr
class TestHridyaRectangle(unittest.TestCase):
def test_positivity(self):
self.assertRaises(ValueError, hr.rectangle, -1, 0)
self.assertRaises(ValueError, hr.rectangle, 2, -2)
self.assertRaises(ValueError, hr.rectangle, -2, 2)
def test_valu... | 26.95 | 68 | 0.686456 | 67 | 539 | 5.343284 | 0.432836 | 0.184358 | 0.217877 | 0.234637 | 0.321229 | 0.217877 | 0.217877 | 0 | 0 | 0 | 0 | 0.029613 | 0.185529 | 539 | 19 | 69 | 28.368421 | 0.785877 | 0 | 0 | 0 | 0 | 0 | 0.022263 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c0ac2e5fb46b4b9d9d958daa91a4d8c90835fc8 | 329 | py | Python | __init__.py | CCapelini/superficies-skill | b2aa3cab40f2ed3dee68dcfe00bf8b87cec12814 | [
"Apache-2.0"
] | null | null | null | __init__.py | CCapelini/superficies-skill | b2aa3cab40f2ed3dee68dcfe00bf8b87cec12814 | [
"Apache-2.0"
] | null | null | null | __init__.py | CCapelini/superficies-skill | b2aa3cab40f2ed3dee68dcfe00bf8b87cec12814 | [
"Apache-2.0"
] | null | null | null | from mycroft import MycroftSkill, intent_file_handler
class Superficies(MycroftSkill):
def __init__(self):
MycroftSkill.__init__(self)
@intent_file_handler('superficies.intent')
def handle_superficies(self, message):
self.speak_dialog('superficies')
def create_skill():
return Superf... | 20.5625 | 53 | 0.735562 | 35 | 329 | 6.485714 | 0.542857 | 0.088106 | 0.14978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173252 | 329 | 15 | 54 | 21.933333 | 0.834559 | 0 | 0 | 0 | 0 | 0 | 0.088415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1c1f2f86fda3dc9ddacc856630ecb88833e9cad5 | 189 | py | Python | py/sender_prop.py | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | null | null | null | py/sender_prop.py | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | 1 | 2020-04-12T07:48:18.000Z | 2020-04-12T07:49:29.000Z | py/sender_prop.py | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | 1 | 2020-09-30T05:27:07.000Z | 2020-09-30T05:27:07.000Z | def Sender():
def Send(val):
Send.state.append(val)
return Send
Send.state = []
return Send
send = Sender()
send("hello")
send(", ")
send("world")
print(send.state)
| 12.6 | 28 | 0.592593 | 25 | 189 | 4.48 | 0.4 | 0.241071 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232804 | 189 | 14 | 29 | 13.5 | 0.772414 | 0 | 0 | 0.181818 | 0 | 0 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.363636 | 0.090909 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c29b2c0d7fa07e7e8f8753626f394e6a275e1cb | 18,362 | py | Python | test/augmenters/test_blur.py | Rahul-Venugopal/Image-augmentation | 0b0125d29003981709bdb8230170c851367a3995 | [
"MIT"
] | 4 | 2018-11-24T15:31:36.000Z | 2020-06-23T02:52:45.000Z | test/augmenters/test_blur.py | Rahul-Venugopal/Image-augmentation_1 | 0b0125d29003981709bdb8230170c851367a3995 | [
"MIT"
] | null | null | null | test/augmenters/test_blur.py | Rahul-Venugopal/Image-augmentation_1 | 0b0125d29003981709bdb8230170c851367a3995 | [
"MIT"
] | null | null | null | from __future__ import print_function, division, absolute_import
import time
import matplotlib
matplotlib.use('Agg') # fix execution of tests involving matplotlib on travis
import numpy as np
import six.moves as sm
import cv2
import imgaug as ia
from imgaug import augmenters as iaa
from imgaug import parameters as ... | 33.144404 | 115 | 0.562466 | 2,947 | 18,362 | 3.386834 | 0.071598 | 0.077347 | 0.090772 | 0.103396 | 0.79471 | 0.74201 | 0.72087 | 0.699329 | 0.681695 | 0.663962 | 0 | 0.114077 | 0.283902 | 18,362 | 553 | 116 | 33.20434 | 0.644992 | 0.038612 | 0 | 0.643805 | 0 | 0 | 0.012317 | 0 | 0 | 0 | 0 | 0.001808 | 0.123894 | 1 | 0.011062 | false | 0 | 0.022124 | 0 | 0.033186 | 0.004425 | 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 |
1c56d24932ef7a71d80872a589853df966b2f9ad | 327 | py | Python | django/template/loaders/app_directories.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | django/template/loaders/app_directories.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | django/template/loaders/app_directories.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | """
Wrapper for loading templates from "templates" directories in INSTALLED_APPS
packages.
"""
from django.template.utils import get_app_template_dirs
from .filesystem import Loader as FilesystemLoader
class Loader(FilesystemLoader):
def get_dirs(self):
return get_app_template_dirs('templa... | 21.8 | 77 | 0.752294 | 39 | 327 | 6.102564 | 0.641026 | 0.05042 | 0.117647 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180428 | 327 | 14 | 78 | 23.357143 | 0.88806 | 0.262997 | 0 | 0 | 0 | 0 | 0.041096 | 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 |
1c6278b291ca5a9d4c946ddb784ba0b323cf0efd | 189 | py | Python | tests/basics/int_big_xor.py | braytac/micropython | 4fba270b6061395367e7f49eb3baa77365557ace | [
"MIT"
] | 2 | 2019-07-28T05:27:42.000Z | 2020-05-26T04:39:43.000Z | tests/basics/int_big_xor.py | braytac/micropython | 4fba270b6061395367e7f49eb3baa77365557ace | [
"MIT"
] | null | null | null | tests/basics/int_big_xor.py | braytac/micropython | 4fba270b6061395367e7f49eb3baa77365557ace | [
"MIT"
] | 1 | 2018-06-23T22:07:06.000Z | 2018-06-23T22:07:06.000Z | print(0 ^ (1 << 80))
print((1 << 80) ^ (1 << 80))
print((1 << 80) ^ 0)
a = 0xfffffffffffffffffffffffffffff
print(a ^ (1 << 100))
print(a ^ (1 << 200))
print(a ^ a == 0)
print(bool(a ^ a))
| 18.9 | 35 | 0.529101 | 31 | 189 | 3.225806 | 0.290323 | 0.12 | 0.16 | 0.18 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0.206349 | 189 | 9 | 36 | 21 | 0.506667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164021 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.875 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
1c759d854ff1b1f01f40302b23b9781017cd0753 | 21 | py | Python | surfsbackupstorage/__init__.py | wh872743880/zstack-utility | e8ba863514a62a2e5ede6ed27dd50e4307086ce7 | [
"Apache-2.0"
] | 55 | 2017-02-10T07:55:21.000Z | 2021-09-01T00:59:36.000Z | surfsbackupstorage/__init__.py | wh872743880/zstack-utility | e8ba863514a62a2e5ede6ed27dd50e4307086ce7 | [
"Apache-2.0"
] | 106 | 2017-02-13T09:58:27.000Z | 2022-02-15T09:51:48.000Z | surfsbackupstorage/__init__.py | wh872743880/zstack-utility | e8ba863514a62a2e5ede6ed27dd50e4307086ce7 | [
"Apache-2.0"
] | 68 | 2017-02-13T11:02:01.000Z | 2021-12-16T11:02:01.000Z | __author__ = 'frank'
| 10.5 | 20 | 0.714286 | 2 | 21 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 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 |
1c9b59bbc455e7b88efd142a4266bcd6c9faa1aa | 78 | py | Python | Exercise 025.py | sayan-datapython/Learn_Python_Full_Course_for_Beginners | 1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c | [
"MIT"
] | null | null | null | Exercise 025.py | sayan-datapython/Learn_Python_Full_Course_for_Beginners | 1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c | [
"MIT"
] | null | null | null | Exercise 025.py | sayan-datapython/Learn_Python_Full_Course_for_Beginners | 1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c | [
"MIT"
] | 1 | 2020-09-30T14:25:51.000Z | 2020-09-30T14:25:51.000Z | name = str(input('Enter name your name 25: '))
print('Silva' in name.lower())
| 26 | 46 | 0.666667 | 13 | 78 | 4 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.141026 | 78 | 2 | 47 | 39 | 0.746269 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 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 |
98d2f0238f8c4ff0d4b26b35efbead8788939f78 | 3,035 | py | Python | tests/test_expressions.py | ecmwf/queueos | aa6b4f2e683194c2b2955b47337120d594e374db | [
"Apache-2.0"
] | null | null | null | tests/test_expressions.py | ecmwf/queueos | aa6b4f2e683194c2b2955b47337120d594e374db | [
"Apache-2.0"
] | null | null | null | tests/test_expressions.py | ecmwf/queueos | aa6b4f2e683194c2b2955b47337120d594e374db | [
"Apache-2.0"
] | null | null | null | import io
from queueos import Environment, FunctionFactory
from queueos.expressions.RulesParser import RulesParser
from queueos.qos.Rule import Context
FunctionFactory.register_function(
"dataset",
lambda context, *args: context.request.dataset,
)
FunctionFactory.register_function(
"adaptor",
lambda c... | 25.940171 | 64 | 0.612521 | 412 | 3,035 | 4.495146 | 0.199029 | 0.385529 | 0.097192 | 0.161987 | 0.382289 | 0.299676 | 0.277538 | 0.216523 | 0.206803 | 0.180886 | 0 | 0.088484 | 0.221746 | 3,035 | 116 | 65 | 26.163793 | 0.695597 | 0.020758 | 0 | 0.025641 | 0 | 0 | 0.166723 | 0.007073 | 0 | 0 | 0 | 0 | 0.641026 | 1 | 0.064103 | false | 0 | 0.051282 | 0.012821 | 0.205128 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98d8e1b532e2bee7b550188f22b604b817848298 | 95 | py | Python | kin8nm/run_once.py | zygmuntz/the-secret-of-the-big-guys | 8ec7df2be1e341de7bb17f5333c1fe61e912caed | [
"MIT"
] | 26 | 2015-01-04T05:06:23.000Z | 2021-04-15T14:32:39.000Z | kin8nm/run_once.py | jianxingdong/the-secret-of-the-big-guys | 8ec7df2be1e341de7bb17f5333c1fe61e912caed | [
"MIT"
] | null | null | null | kin8nm/run_once.py | jianxingdong/the-secret-of-the-big-guys | 8ec7df2be1e341de7bb17f5333c1fe61e912caed | [
"MIT"
] | 13 | 2015-01-07T20:52:57.000Z | 2021-04-15T14:32:40.000Z | from main import *
params = { 'centers': [ 2600 ], 'rbf_param': [ 0.42 ] }
run_test( params ) | 19 | 55 | 0.6 | 13 | 95 | 4.230769 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093333 | 0.210526 | 95 | 5 | 56 | 19 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 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 |
98ebdc08445a9dc5585802d2c3a6e794da31c3e2 | 182 | py | Python | codesignals/make_array_consecutive2.py | SkothaSec/coursesAndProjects | 99f27f0ba24a16aa75cd4fde30af94c1c2e0d1fa | [
"MIT"
] | null | null | null | codesignals/make_array_consecutive2.py | SkothaSec/coursesAndProjects | 99f27f0ba24a16aa75cd4fde30af94c1c2e0d1fa | [
"MIT"
] | null | null | null | codesignals/make_array_consecutive2.py | SkothaSec/coursesAndProjects | 99f27f0ba24a16aa75cd4fde30af94c1c2e0d1fa | [
"MIT"
] | null | null | null | def makeArrayConsecutive2(statues):
sort_lst = sorted(statues)
need_result = sort_lst[-1] - sort_lst[0] + 1
cnt_lst = len(sort_lst)
return need_result - cnt_lst
| 26 | 48 | 0.681319 | 26 | 182 | 4.461538 | 0.5 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.21978 | 182 | 6 | 49 | 30.333333 | 0.788732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98f6319d1c6369470392bcf60d95011bebee5e4b | 584 | py | Python | tgbot/handlers/keyboard_utils.py | VeryBigSad/wikihowbot | c05a6e684527b1d2bfcf36f7bfb2a3e91d6cb24f | [
"Apache-2.0"
] | null | null | null | tgbot/handlers/keyboard_utils.py | VeryBigSad/wikihowbot | c05a6e684527b1d2bfcf36f7bfb2a3e91d6cb24f | [
"Apache-2.0"
] | null | null | null | tgbot/handlers/keyboard_utils.py | VeryBigSad/wikihowbot | c05a6e684527b1d2bfcf36f7bfb2a3e91d6cb24f | [
"Apache-2.0"
] | null | null | null | from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from tgbot.handlers.manage_data import CONFIRM_DECLINE_BROADCAST, CONFIRM_BROADCAST, DECLINE_BROADCAST
from tgbot.handlers.static_text import confirm_broadcast, decline_broadcast
def keyboard_confirm_decline_broadcasting():
buttons = [[
Inli... | 41.714286 | 113 | 0.830479 | 59 | 584 | 7.864407 | 0.355932 | 0.241379 | 0.148707 | 0.12931 | 0.3125 | 0.193966 | 0.193966 | 0 | 0 | 0 | 0 | 0 | 0.10274 | 584 | 13 | 114 | 44.923077 | 0.885496 | 0 | 0 | 0 | 0 | 0 | 0.157534 | 0.157534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
98fceb45b5c9f2331aa4e7cc3658891bff19d8da | 1,425 | py | Python | tests/test_gridmetetl.py | ashalper-usgs/gridmetetl | b3082aabc6bbddd669d5b13e15ecf08a4505e2f8 | [
"MIT"
] | null | null | null | tests/test_gridmetetl.py | ashalper-usgs/gridmetetl | b3082aabc6bbddd669d5b13e15ecf08a4505e2f8 | [
"MIT"
] | null | null | null | tests/test_gridmetetl.py | ashalper-usgs/gridmetetl | b3082aabc6bbddd669d5b13e15ecf08a4505e2f8 | [
"MIT"
] | 5 | 2020-04-10T11:57:41.000Z | 2020-11-06T21:50:08.000Z | #!/usr/bin/env python
"""Tests for `gridmetetl` package."""
import pytest
import numpy as np
from netCDF4 import default_fillvals
from gridmetetl import etl
from gridmetetl.helper import getaverage, np_get_wval
def test_getaverage():
assert getaverage(np.array([2., 2.]), np.array([1., 1.])) == 2.0
assert ... | 41.911765 | 96 | 0.623158 | 270 | 1,425 | 3.2 | 0.196296 | 0.210648 | 0.104167 | 0.138889 | 0.614583 | 0.611111 | 0.528935 | 0.496528 | 0.466435 | 0.436343 | 0 | 0.079602 | 0.153684 | 1,425 | 33 | 97 | 43.181818 | 0.636816 | 0.133333 | 0 | 0 | 0 | 0 | 0.001633 | 0 | 0 | 0 | 0 | 0 | 0.65 | 1 | 0.1 | true | 0 | 0.25 | 0 | 0.35 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98fd94de69d7ef037020d1ffd3af8c608755e3e2 | 273 | py | Python | packages/micropython-official/v1.12/esp32/stubs/json.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 18 | 2019-07-11T13:31:09.000Z | 2022-01-27T06:38:40.000Z | packages/micropython-official/v1.12/esp32/stubs/json.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 9 | 2019-09-01T21:44:49.000Z | 2022-02-04T20:55:08.000Z | packages/micropython-official/v1.12/esp32/stubs/json.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 6 | 2019-10-08T05:31:21.000Z | 2021-04-22T10:21:01.000Z | """
Module: 'json' on esp32 1.12.0
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.12.0', version='v1.12 on 2019-12-26', machine='ESP32 module with ESP32')
# Stubber: 1.3.2
def dump():
pass
def dumps():
pass
def load():
pass
def loads():
pass
| 15.166667 | 126 | 0.600733 | 44 | 273 | 3.727273 | 0.590909 | 0.128049 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146119 | 0.197802 | 273 | 17 | 127 | 16.058824 | 0.60274 | 0.626374 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.