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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a649eedc11e1796142689b46ab61b67a9b4da9f | 932 | py | Python | pycebes/__init__.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | pycebes/__init__.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | pycebes/__init__.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 The Cebes Authors. All Rights Reserved.
#
# Licensed under the Apache License, version 2.0 (the "License").
# You may not use this work except in compliance with the License,
# which is available at www.apache.org/licenses/LICENSE-2.0
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRAN... | 51.777778 | 106 | 0.813305 | 133 | 932 | 5.661654 | 0.593985 | 0.102258 | 0.119522 | 0.055777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00984 | 0.127682 | 932 | 17 | 107 | 54.823529 | 0.916359 | 0.534335 | 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 |
6a70c9f30431c6609ae50b7e6e8c8e0dbd193f9f | 58 | py | Python | public/python/thon.py | davido242/java_in-anambra | c12f46cda8ff9b60a96dae17fb39c330fb1389b3 | [
"MIT"
] | null | null | null | public/python/thon.py | davido242/java_in-anambra | c12f46cda8ff9b60a96dae17fb39c330fb1389b3 | [
"MIT"
] | null | null | null | public/python/thon.py | davido242/java_in-anambra | c12f46cda8ff9b60a96dae17fb39c330fb1389b3 | [
"MIT"
] | null | null | null | win32api.MessageBox(0, 'hello', 'Davido!');
bybye ("bye"); | 29 | 43 | 0.655172 | 7 | 58 | 5.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.068966 | 58 | 2 | 44 | 29 | 0.648148 | 0 | 0 | 0 | 0 | 0 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a75c0e8b70893a9664a4e5c0d65d6ff7d8f12b4 | 543 | py | Python | atlassian/bitbucket/cloud/common/users.py | Kudesnick/atlassian-python-api | 0ff7cf4ef39d8374e948d8c7ad467944159a3b8b | [
"Apache-2.0"
] | 779 | 2018-10-05T02:45:01.000Z | 2022-03-31T22:30:42.000Z | atlassian/bitbucket/cloud/common/users.py | Kudesnick/atlassian-python-api | 0ff7cf4ef39d8374e948d8c7ad467944159a3b8b | [
"Apache-2.0"
] | 659 | 2018-10-05T09:58:15.000Z | 2022-03-29T13:20:00.000Z | atlassian/bitbucket/cloud/common/users.py | Kudesnick/atlassian-python-api | 0ff7cf4ef39d8374e948d8c7ad467944159a3b8b | [
"Apache-2.0"
] | 502 | 2018-10-08T16:08:32.000Z | 2022-03-31T08:24:13.000Z | from ..base import BitbucketCloudBase
class User(BitbucketCloudBase):
def __init__(self, url, data, *args, **kwargs):
super(User, self).__init__(url, *args, data=data, expected_type="user", **kwargs)
@property
def display_name(self):
return str(self.get_data("display_name"))
@propert... | 23.608696 | 89 | 0.650092 | 67 | 543 | 5.014925 | 0.38806 | 0.130952 | 0.130952 | 0.151786 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220994 | 543 | 22 | 90 | 24.681818 | 0.794326 | 0 | 0 | 0.25 | 0 | 0 | 0.069982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.25 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6a7b1d8b8112d87785e34985b87e30edc61a9e0d | 629 | py | Python | src/types/sub_epoch_summary.py | DONG-Jason/chia-blockchain | 27b28d62f6b315e45bc00231e007c775f07a414a | [
"Apache-2.0"
] | null | null | null | src/types/sub_epoch_summary.py | DONG-Jason/chia-blockchain | 27b28d62f6b315e45bc00231e007c775f07a414a | [
"Apache-2.0"
] | 11 | 2021-09-28T15:10:47.000Z | 2022-03-22T15:14:16.000Z | src/types/sub_epoch_summary.py | DONG-Jason/chia-blockchain | 27b28d62f6b315e45bc00231e007c775f07a414a | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from dataclasses import dataclass
from src.types.sized_bytes import bytes32
from src.util.ints import uint8, uint64
from src.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class SubEpochSummary(Streamable):
prev_subepoch_summary_hash: bytes32
rew... | 37 | 81 | 0.790143 | 90 | 629 | 5.377778 | 0.577778 | 0.043388 | 0.045455 | 0.090909 | 0.181818 | 0.181818 | 0.181818 | 0.181818 | 0 | 0 | 0 | 0.033645 | 0.149444 | 629 | 16 | 82 | 39.3125 | 0.871028 | 0.252782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.384615 | 0 | 0.846154 | 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 |
6a7fcf2d7b7c832b907424664ed5f90b36ca2afa | 7,541 | py | Python | tests/unit/test_magics.py | multiphenics/nbvalx | 4961cd806a0a8c0f0a042c1a0bc60d865f057f24 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_magics.py | multiphenics/nbvalx | 4961cd806a0a8c0f0a042c1a0bc60d865f057f24 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_magics.py | multiphenics/nbvalx | 4961cd806a0a8c0f0a042c1a0bc60d865f057f24 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2022 by the nbvalx authors
#
# This file is part of nbvalx.
#
# SPDX-License-Identifier: BSD-3-Clause
"""Unit test for the functions behind the jupyter magics."""
import typing
import IPython
import pytest
import nbvalx.jupyter_magics
class MockMagicsManager(object):
"""A mock IPython magics ma... | 40.111702 | 117 | 0.749238 | 943 | 7,541 | 5.662778 | 0.124072 | 0.121723 | 0.174345 | 0.101124 | 0.767416 | 0.754682 | 0.704494 | 0.663109 | 0.652622 | 0.617228 | 0 | 0.006982 | 0.145339 | 7,541 | 187 | 118 | 40.326203 | 0.821567 | 0.13473 | 0 | 0.538462 | 0 | 0 | 0.032449 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.17094 | false | 0.008547 | 0.034188 | 0 | 0.264957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a80bcccc554c6b068311d63a06fabd24e247a7c | 15,660 | py | Python | tests/unit/reco_utils/dataset/test_python_splitter.py | myknotruby/recommenders | d4a41de4e10cf0fa4db7f4e5c4d6bccc6629e201 | [
"MIT"
] | 3 | 2021-06-22T02:12:38.000Z | 2021-11-25T02:39:52.000Z | tests/unit/reco_utils/dataset/test_python_splitter.py | myknotruby/recommenders | d4a41de4e10cf0fa4db7f4e5c4d6bccc6629e201 | [
"MIT"
] | 1 | 2021-05-10T01:11:41.000Z | 2021-05-10T01:11:41.000Z | tests/unit/reco_utils/dataset/test_python_splitter.py | myknotruby/recommenders | d4a41de4e10cf0fa4db7f4e5c4d6bccc6629e201 | [
"MIT"
] | 2 | 2021-11-14T13:36:48.000Z | 2022-03-02T18:09:20.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import pandas as pd
import numpy as np
import pytest
from reco_utils.dataset.split_utils import (
min_rating_filter_pandas,
split_pandas_data_with_ratios,
)
from reco_utils.dataset.python_splitters import (
pyth... | 36 | 133 | 0.661047 | 2,175 | 15,660 | 4.513563 | 0.108966 | 0.101762 | 0.042783 | 0.045024 | 0.783233 | 0.74972 | 0.711012 | 0.680962 | 0.659876 | 0.646633 | 0 | 0.020332 | 0.217944 | 15,660 | 434 | 134 | 36.082949 | 0.781253 | 0.177267 | 0 | 0.457413 | 0 | 0 | 0.083197 | 0 | 0 | 0 | 0 | 0 | 0.176656 | 1 | 0.041009 | false | 0 | 0.018927 | 0.003155 | 0.078864 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a8205ee6f4dbc5b2abf744f3cbab00e1d2b3d91 | 230 | py | Python | notebooks/mglearn/__init__.py | lampsonnguyen/ml-training-advance | 992c8304683879ade23410cfa4478622980ef420 | [
"MIT"
] | null | null | null | notebooks/mglearn/__init__.py | lampsonnguyen/ml-training-advance | 992c8304683879ade23410cfa4478622980ef420 | [
"MIT"
] | null | null | null | notebooks/mglearn/__init__.py | lampsonnguyen/ml-training-advance | 992c8304683879ade23410cfa4478622980ef420 | [
"MIT"
] | 2 | 2018-04-20T03:09:43.000Z | 2021-07-23T05:48:42.000Z | from . import plots
from . import tools
from .plots import cm3, cm2
from .tools import discrete_scatter
from .plot_helpers import ReBl
__version__ = "0.1.5"
__all__ = ['tools', 'plots', 'cm3', 'cm2', 'discrete_scatter', 'ReBl']
| 23 | 70 | 0.717391 | 33 | 230 | 4.666667 | 0.484848 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.147826 | 230 | 9 | 71 | 25.555556 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.178261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6aa0e1a1d9b649d6bf8e660da0e512eeb9cdbc70 | 69 | py | Python | lua/lsp/servers/main.py | CamiaCL/nvim | a0b42592843253590639a7257538ac99e4668d1a | [
"MIT"
] | null | null | null | lua/lsp/servers/main.py | CamiaCL/nvim | a0b42592843253590639a7257538ac99e4668d1a | [
"MIT"
] | null | null | null | lua/lsp/servers/main.py | CamiaCL/nvim | a0b42592843253590639a7257538ac99e4668d1a | [
"MIT"
] | null | null | null | if 1:
print("hello world")
else:
if condition:
| 9.857143 | 24 | 0.478261 | 8 | 69 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.42029 | 69 | 6 | 25 | 11.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ac16bc2e21c1d9be84e3f3c87d02c53a18f7e39 | 381 | py | Python | Medium/75. Sort Colors/solution (2).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 3 | 2020-05-09T12:55:09.000Z | 2022-03-11T18:56:05.000Z | Medium/75. Sort Colors/solution (2).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | null | null | null | Medium/75. Sort Colors/solution (2).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 1 | 2022-03-11T18:56:16.000Z | 2022-03-11T18:56:16.000Z | # 75. Sort Colors
# Runtime: 36 ms, faster than 49.59% of Python3 online submissions for Sort Colors.
# Memory Usage: 14.3 MB, less than 46.53% of Python3 online submissions for Sort Colors.
class Solution:
# Sorting
def sortColors(self, nums: list[int]) -> None:
"""
Do not return anything, ... | 27.214286 | 88 | 0.645669 | 54 | 381 | 4.555556 | 0.759259 | 0.121951 | 0.121951 | 0.211382 | 0.317073 | 0.317073 | 0.317073 | 0 | 0 | 0 | 0 | 0.059859 | 0.254593 | 381 | 14 | 89 | 27.214286 | 0.806338 | 0.648294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6ae955396cb9ac5ac048a52d2eb07aae5673c269 | 554 | py | Python | utils/directions.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | utils/directions.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | utils/directions.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | from enum import Enum
class Direction(Enum):
STOP = (0, 0)
NORTH = (-1, 0)
SOUTH = (1, 0)
EAST = (0, 1)
WEST = (0, -1)
def direction_to_vector(direction:Direction):
return direction.value
def vector_to_direction(vector):
if vector == Direction.STOP.value:
return Direction.STOP
if vector == Direct... | 23.083333 | 45 | 0.693141 | 76 | 554 | 5 | 0.25 | 0.236842 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022371 | 0.193141 | 554 | 23 | 46 | 24.086957 | 0.82774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0.05 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6af16edbf0ee0239fae5c0c200b63c4118826aa6 | 1,666 | py | Python | lgb_convertor/base/statement.py | Yangruipis/lgb-convertor | 6402d6412e67b3d898ff37d09af97a756a0bee77 | [
"MIT"
] | 3 | 2021-09-17T01:11:52.000Z | 2021-09-27T07:34:19.000Z | lgb_convertor/base/statement.py | Yangruipis/lgb-convertor | 6402d6412e67b3d898ff37d09af97a756a0bee77 | [
"MIT"
] | null | null | null | lgb_convertor/base/statement.py | Yangruipis/lgb-convertor | 6402d6412e67b3d898ff37d09af97a756a0bee77 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
from enum import Enum
from lgb_convertor.base.registory import convertor_registry
from lgb_convertor.utils import initializer
class WithIndent:
@property
def depth(self):
return self._depth
def with_depth(self, value):
self._depth = value
... | 17.536842 | 76 | 0.648259 | 181 | 1,666 | 5.674033 | 0.39779 | 0.122687 | 0.157741 | 0.192795 | 0.299903 | 0.209348 | 0.131451 | 0.131451 | 0 | 0 | 0 | 0.000806 | 0.255702 | 1,666 | 94 | 77 | 17.723404 | 0.827419 | 0.012605 | 0 | 0.333333 | 0 | 0 | 0.090079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.142857 | 0.079365 | 0.031746 | 0.634921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0a87965dcc60ef9da3dcdbf21fe82ef195e0c00a | 95 | py | Python | Python3/Loops/for_loop_and_range.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | Python3/Loops/for_loop_and_range.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | Python3/Loops/for_loop_and_range.py | norbertosanchezdichi/TIL | 2e9719ddd288022f53b094a42679e849bdbcc625 | [
"MIT"
] | null | null | null | x = 0
odd_numbers = range(11, 20, 2)
for number in odd_numbers:
x += number
print(x) | 11.875 | 30 | 0.610526 | 17 | 95 | 3.294118 | 0.705882 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.273684 | 95 | 8 | 31 | 11.875 | 0.724638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0aa36748d6350aa9ad666d2e444d3926863800ca | 90 | py | Python | samantha/function/__init__.py | TG-Bot-Devs/samanthaXcalls | e636efbba512fabc61e8dab3a1cc0d73583d5fe9 | [
"MIT"
] | 2 | 2021-07-21T07:38:49.000Z | 2021-07-29T13:28:20.000Z | samantha/function/__init__.py | Sayandhridolickid/samanthaXcalls | 85f79fbb39efb2b26c88247918bde1f08243f326 | [
"MIT"
] | null | null | null | samantha/function/__init__.py | Sayandhridolickid/samanthaXcalls | 85f79fbb39efb2b26c88247918bde1f08243f326 | [
"MIT"
] | 1 | 2021-07-24T05:13:12.000Z | 2021-07-24T05:13:12.000Z | from samantha.function.admins import admins, get, set
__all__ = ["set", "get", "admins"]
| 22.5 | 53 | 0.7 | 12 | 90 | 4.916667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 90 | 3 | 54 | 30 | 0.75641 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 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 |
0aab779348b6c7a5b462d0c7fd4996471dde665f | 1,229 | py | Python | vini/pyqtgraph_vini/util/tests/test_lru_cache.py | lipsia-fmri/viff | 205d7eaf05df344971143fb2c2ea3e139bf0ca27 | [
"CECILL-B"
] | 5 | 2020-04-12T16:03:24.000Z | 2021-03-19T08:18:08.000Z | vini/pyqtgraph_vini/util/tests/test_lru_cache.py | lipsia-fmri/vini | 205d7eaf05df344971143fb2c2ea3e139bf0ca27 | [
"CECILL-B"
] | 1 | 2019-03-26T10:46:15.000Z | 2019-04-11T13:16:51.000Z | vini/pyqtgraph_vini/util/tests/test_lru_cache.py | lipsia-fmri/viff | 205d7eaf05df344971143fb2c2ea3e139bf0ca27 | [
"CECILL-B"
] | 1 | 2020-02-05T16:58:38.000Z | 2020-02-05T16:58:38.000Z | from .pyqtgraph_vini.util.lru_cache import LRUCache
def testLRU():
lru = LRUCache(2, 1)
# check twice
checkLru(lru)
checkLru(lru)
def checkLru(lru):
lru[1] = 1
lru[2] = 2
lru[3] = 3
assert len(lru) == 2
assert set([2, 3]) == set(lru.keys())
assert set([2, 3]) == set(lru.values... | 24.098039 | 78 | 0.559805 | 186 | 1,229 | 3.634409 | 0.236559 | 0.032544 | 0.189349 | 0.269231 | 0.554734 | 0.539941 | 0.535503 | 0.495562 | 0.418639 | 0.418639 | 0 | 0.061028 | 0.240033 | 1,229 | 50 | 79 | 24.58 | 0.662741 | 0.068348 | 0 | 0.470588 | 0 | 0 | 0.007005 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.088235 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0abb933ff7819e700bd7691447ce33115eb91fcb | 761 | py | Python | src/pocimport/importing/admin.py | wbar/poc-import | a54b8549db8b1eb29a46d50913bee0829da2fe1e | [
"MIT"
] | null | null | null | src/pocimport/importing/admin.py | wbar/poc-import | a54b8549db8b1eb29a46d50913bee0829da2fe1e | [
"MIT"
] | null | null | null | src/pocimport/importing/admin.py | wbar/poc-import | a54b8549db8b1eb29a46d50913bee0829da2fe1e | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import ImportProcess, ImportProcessLog
class ImportProcessLogInlineAdmin(admin.TabularInline):
model = ImportProcessLog
fields = ('entry_date', 'level', 'message')
readonly_fields = fields
extra = 0
ordering = ('entry_date', 'id')
def has_add_perm... | 24.548387 | 55 | 0.716163 | 80 | 761 | 6.625 | 0.525 | 0.033962 | 0.118868 | 0.071698 | 0.154717 | 0.154717 | 0.154717 | 0.154717 | 0 | 0 | 0 | 0.001637 | 0.197109 | 761 | 30 | 56 | 25.366667 | 0.865794 | 0 | 0 | 0.333333 | 0 | 0 | 0.071146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.333333 | 0.142857 | 1.190476 | 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 |
0acc91845eebeaa088af5bfeace59787ed7fd8a0 | 8,571 | py | Python | budgetportal/openspending.py | Lunga001/datamanager | ebe9ad9db2ee7011855f1249c46d9d1bf6f4c4d1 | [
"MIT"
] | 3 | 2019-08-31T03:08:22.000Z | 2020-04-03T13:09:20.000Z | budgetportal/openspending.py | Lunga001/datamanager | ebe9ad9db2ee7011855f1249c46d9d1bf6f4c4d1 | [
"MIT"
] | 97 | 2019-04-16T07:54:38.000Z | 2022-02-10T07:25:48.000Z | budgetportal/openspending.py | OpenUpSA/budget-portal | 879c5875b1d438b9287c38d6730c86be69051ac5 | [
"MIT"
] | 14 | 2019-04-23T09:48:17.000Z | 2021-04-13T17:48:40.000Z | """
Abstracts away some of the mechanics of querying OpenSpending and some of the
conventions of how we name fields in our Fiscal Data Packages.
"""
import logging
import random
import re
from collections import OrderedDict
from hashlib import sha1
from urllib.parse import urlencode
import requests
from django.conf i... | 35.127049 | 86 | 0.66095 | 1,076 | 8,571 | 4.989777 | 0.214684 | 0.056063 | 0.067797 | 0.082324 | 0.302663 | 0.258335 | 0.1775 | 0.148445 | 0.10989 | 0.065189 | 0 | 0.006816 | 0.246879 | 8,571 | 243 | 87 | 35.271605 | 0.824942 | 0.075604 | 0 | 0.046512 | 0 | 0 | 0.071138 | 0.018547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22093 | false | 0.005814 | 0.052326 | 0.174419 | 0.511628 | 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 |
0af66988f44d85368d8a585c6671065a38a09ada | 2,292 | py | Python | nutils/matrix/_numpy.py | wijnandhoitinga/nutils | 7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4 | [
"MIT"
] | 25 | 2015-04-29T13:10:22.000Z | 2019-03-18T09:45:29.000Z | nutils/matrix/_numpy.py | wijnandhoitinga/nutils | 7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4 | [
"MIT"
] | 330 | 2015-03-04T09:06:38.000Z | 2019-06-11T10:31:54.000Z | nutils/matrix/_numpy.py | wijnandhoitinga/nutils | 7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4 | [
"MIT"
] | 16 | 2015-03-23T08:00:46.000Z | 2019-02-21T11:14:47.000Z | from ._base import Matrix, MatrixError
from .. import numeric
import numpy
import functools
def assemble(data, index, shape):
array = numpy.zeros(shape, dtype=data.dtype)
if len(data):
array[tuple(index)] = data
return NumpyMatrix(array)
class NumpyMatrix(Matrix):
'''matrix based on numpy ar... | 29.766234 | 96 | 0.616492 | 284 | 2,292 | 4.84507 | 0.316901 | 0.093023 | 0.09157 | 0.109012 | 0.167151 | 0.125 | 0.082849 | 0.082849 | 0.082849 | 0.082849 | 0 | 0.004709 | 0.258726 | 2,292 | 76 | 97 | 30.157895 | 0.80518 | 0.02007 | 0 | 0.035088 | 0 | 0 | 0.048214 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.22807 | false | 0 | 0.070175 | 0.122807 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0aff93c6dd0ce8359972c606b3c8ae0c0392f6f5 | 5,452 | py | Python | tests/test_fields.py | springload/wagtaildraftail | 87f1ae3ade493c00daff021394051aa656136c10 | [
"MIT"
] | 26 | 2017-01-25T09:46:25.000Z | 2022-03-23T08:10:39.000Z | tests/test_fields.py | springload/wagtaildraftail | 87f1ae3ade493c00daff021394051aa656136c10 | [
"MIT"
] | 52 | 2017-02-09T15:54:43.000Z | 2021-05-05T05:02:32.000Z | tests/test_fields.py | springload/wagtaildraftail | 87f1ae3ade493c00daff021394051aa656136c10 | [
"MIT"
] | 6 | 2017-02-09T11:40:49.000Z | 2020-11-03T08:14:55.000Z | from __future__ import absolute_import, unicode_literals
import unittest
from django.forms import widgets as djwidgets
from django.test import override_settings
from wagtaildraftail import draft_text, fields, widgets
class DraftailTextFieldTestCase(unittest.TestCase):
def test_init_has_default_editor(self):
... | 55.632653 | 311 | 0.684336 | 612 | 5,452 | 5.859477 | 0.148693 | 0.035137 | 0.032627 | 0.042666 | 0.770496 | 0.7058 | 0.647797 | 0.627719 | 0.604852 | 0.604852 | 0 | 0.019763 | 0.16471 | 5,452 | 97 | 312 | 56.206186 | 0.767677 | 0.015774 | 0 | 0.382353 | 0 | 0.132353 | 0.387603 | 0.01755 | 0 | 0 | 0 | 0.010309 | 0.205882 | 1 | 0.191176 | false | 0.029412 | 0.073529 | 0 | 0.279412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e4056cea2530586cc5f9bb914004b30235344b1d | 349 | py | Python | src/utils/datetime_utils.py | talestsp/league_results_covid | 6f6d1739d8a57fdd386af7319e0de4f7eac238fb | [
"Apache-2.0"
] | null | null | null | src/utils/datetime_utils.py | talestsp/league_results_covid | 6f6d1739d8a57fdd386af7319e0de4f7eac238fb | [
"Apache-2.0"
] | null | null | null | src/utils/datetime_utils.py | talestsp/league_results_covid | 6f6d1739d8a57fdd386af7319e0de4f7eac238fb | [
"Apache-2.0"
] | null | null | null | import pandas as pd
def date_str_to_datetime(date_str):
if pd.isna(date_str):
return None
elif len(date_str) == 8:
dt = pd.to_datetime(date_str, format="%d/%m/%y")
elif len(date_str) == 10:
dt = pd.to_datetime(date_str, format="%d/%m/%Y")
else:
raise Exception("Date for... | 23.266667 | 56 | 0.610315 | 56 | 349 | 3.607143 | 0.464286 | 0.242574 | 0.207921 | 0.252475 | 0.29703 | 0.29703 | 0.29703 | 0.29703 | 0.29703 | 0.29703 | 0 | 0.011494 | 0.252149 | 349 | 14 | 57 | 24.928571 | 0.762452 | 0 | 0 | 0 | 0 | 0 | 0.100287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
7c35c55b460c93a8708e69e953e2354045c1ac28 | 2,011 | py | Python | LRUcache_miniproject/LRUcache.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | LRUcache_miniproject/LRUcache.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | LRUcache_miniproject/LRUcache.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | from doubly_linked_list import Node
class LRUcache(object):
def __init__(self,size=None):
self.cache_list = Node()
self.cache_table = {}
self.size = size
def _add_to_list(self,value):
new_node = self.cache_table[value]
if new_node == self.cache_list.tail:
... | 31.421875 | 105 | 0.599204 | 296 | 2,011 | 3.807432 | 0.185811 | 0.223602 | 0.230701 | 0.165927 | 0.506655 | 0.373558 | 0.252884 | 0.250222 | 0.193434 | 0.193434 | 0 | 0.013428 | 0.29637 | 2,011 | 63 | 106 | 31.920635 | 0.783039 | 0.021382 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.018182 | 0 | 0.145455 | 0.109091 | 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 |
7c3ca0f878da4107aab7fb392a2f4082d414ac9d | 398 | py | Python | jupyterlab2pymolpysnips/UnitCellDisplay/sc114.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | jupyterlab2pymolpysnips/UnitCellDisplay/sc114.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | jupyterlab2pymolpysnips/UnitCellDisplay/sc114.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | """
cmd.do('run $HOME/Scripts/PyMOLscripts/supercell.py;')
cmd.do('supercell 1, 1, 1, , ${2:orange}, ${3:supercell1}, 1;')
"""
cmd.do('run $HOME/Scripts/PyMOLscripts/supercell.py;')
cmd.do('supercell 1, 1, 1, , orange, supercell1, 1;')
# Description: Display all symmetry mates in four unit cells stacked long c-ax... | 36.181818 | 132 | 0.693467 | 58 | 398 | 4.758621 | 0.5 | 0.072464 | 0.25 | 0.086957 | 0.427536 | 0.427536 | 0.427536 | 0.427536 | 0.427536 | 0.427536 | 0 | 0.034483 | 0.125628 | 398 | 10 | 133 | 39.8 | 0.758621 | 0.68593 | 0 | 0 | 0 | 0 | 0.773913 | 0.347826 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c45ec2b2789b1100598a0e03b45a22b20a87756 | 1,434 | py | Python | test_code/test_print_board.py | Ipgnosis/tic_tac_toe | e1519b702531965cc647ff37c1c46d72f4b3b24e | [
"BSD-3-Clause"
] | null | null | null | test_code/test_print_board.py | Ipgnosis/tic_tac_toe | e1519b702531965cc647ff37c1c46d72f4b3b24e | [
"BSD-3-Clause"
] | 4 | 2021-03-25T19:52:40.000Z | 2021-12-12T17:57:11.000Z | test_code/test_print_board.py | Ipgnosis/tic_tac_toe | e1519b702531965cc647ff37c1c46d72f4b3b24e | [
"BSD-3-Clause"
] | null | null | null | # test the print_board module
# invoke the rotate and reflect functions from the transpose.py file
from tic_tac_toe.libs.transpose import rotate90, rotate180, rotate270, reflect_diagonal_left, reflect_diagonal_right, reflect_horizontal, reflect_vertical
from tic_tac_toe.libs.print_board import tty_print
import sys
sy... | 22.061538 | 154 | 0.764296 | 209 | 1,434 | 4.956938 | 0.248804 | 0.138996 | 0.21332 | 0.208494 | 0.235521 | 0.202703 | 0.127413 | 0.067568 | 0 | 0 | 0 | 0.041991 | 0.103208 | 1,434 | 64 | 155 | 22.40625 | 0.763608 | 0.103208 | 0 | 0.117647 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.588235 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7c4994ed5ba686c6fe422995b592769c174372ec | 768 | py | Python | src/dispatch/plugins/bases/__init__.py | alibaba/easydispatch | 2cf32a374d12c804ff396f90b789c2a838003c5d | [
"Apache-2.0"
] | 11 | 2021-05-04T03:15:20.000Z | 2022-02-16T07:44:16.000Z | src/dispatch/plugins/bases/__init__.py | alibaba/easydispatch | 2cf32a374d12c804ff396f90b789c2a838003c5d | [
"Apache-2.0"
] | 4 | 2021-06-21T11:12:37.000Z | 2021-06-29T11:54:18.000Z | src/dispatch/plugins/bases/__init__.py | alibaba/easydispatch | 2cf32a374d12c804ff396f90b789c2a838003c5d | [
"Apache-2.0"
] | 2 | 2021-05-05T00:42:44.000Z | 2021-05-10T12:51:58.000Z | from .conference import ConferencePlugin # noqa
from .contact import ContactPlugin # noqa
from .conversation import ConversationPlugin # noqa
from .definition import DefinitionPlugin # noqa
from .document import DocumentPlugin # noqa
from .oncall import OncallPlugin # noqa
from .participant import ParticipantPlug... | 45.176471 | 63 | 0.8125 | 84 | 768 | 7.380952 | 0.440476 | 0.193548 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 768 | 16 | 64 | 48 | 0.945122 | 0.102865 | 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 |
7c4fe38ca376f5d1f78f5867e16cd86d371cb49c | 197 | py | Python | parking_permits/constants.py | SuviVappula/parking-permits | fb8689384ce4732de5a550778994ad63e88796e1 | [
"MIT"
] | null | null | null | parking_permits/constants.py | SuviVappula/parking-permits | fb8689384ce4732de5a550778994ad63e88796e1 | [
"MIT"
] | 102 | 2021-04-14T06:25:15.000Z | 2022-03-31T12:04:50.000Z | parking_permits/constants.py | SuviVappula/parking-permits | fb8689384ce4732de5a550778994ad63e88796e1 | [
"MIT"
] | 5 | 2021-04-29T09:55:26.000Z | 2022-03-07T08:38:36.000Z | class ParkingPermitEndType:
IMMEDIATELY = "IMMEDIATELY"
AFTER_CURRENT_PERIOD = "AFTER_CURRENT_PERIOD"
LOW_EMISSION_DISCOUNT = 50
SECONDARY_VEHICLE_PRICE_INCREASE = 50
VAT_PERCENTAGE = 24
| 21.888889 | 49 | 0.812183 | 22 | 197 | 6.818182 | 0.772727 | 0.16 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.137056 | 197 | 8 | 50 | 24.625 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0.15736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.5 | 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 |
7c51b6e1a6deba38afc1df7d09fc7c0759b03ad9 | 126 | py | Python | main.py | willpags1/ci-scanning | 665592a1f74930744abdf1bb1f835385786e4e8a | [
"MIT"
] | null | null | null | main.py | willpags1/ci-scanning | 665592a1f74930744abdf1bb1f835385786e4e8a | [
"MIT"
] | 8 | 2019-12-04T23:47:40.000Z | 2021-06-10T18:33:30.000Z | getting_started/main.py | collinwu/machine-learning-adventures | c534f4157571cea8e015bc257caf5d5d500e692d | [
"MIT"
] | 1 | 2021-12-27T00:32:48.000Z | 2021-12-27T00:32:48.000Z | import requests
response = requests.get('https://httpbin.org/ip')
print('Your IP is {0}'.format(response.json()['origin']))
| 21 | 57 | 0.698413 | 18 | 126 | 4.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.087302 | 126 | 5 | 58 | 25.2 | 0.756522 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7c6590a2ae6e81ad548085fff13eb56d28313146 | 131 | py | Python | app/web.py | sarkarchandan/nn-binary-classification | c8a0a865d1775d0d988d3cad52ab0ede5be7d03f | [
"MIT"
] | null | null | null | app/web.py | sarkarchandan/nn-binary-classification | c8a0a865d1775d0d988d3cad52ab0ede5be7d03f | [
"MIT"
] | null | null | null | app/web.py | sarkarchandan/nn-binary-classification | c8a0a865d1775d0d988d3cad52ab0ede5be7d03f | [
"MIT"
] | null | null | null | """Application module, would be refactored"""
if __name__ == '__main__':
raise NotImplementedError('Web app not implemented')
| 26.2 | 56 | 0.732824 | 14 | 131 | 6.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145038 | 131 | 4 | 57 | 32.75 | 0.785714 | 0.29771 | 0 | 0 | 0 | 0 | 0.360465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c6aab2cdd4cfa98976747536b43145671298356 | 29,858 | py | Python | tests/unit/cli/test_cliutils.py | varuntiwari27/rally | 948fba0e8fe8214dd3716451d2a52e014a4115be | [
"Apache-2.0"
] | null | null | null | tests/unit/cli/test_cliutils.py | varuntiwari27/rally | 948fba0e8fe8214dd3716451d2a52e014a4115be | [
"Apache-2.0"
] | null | null | null | tests/unit/cli/test_cliutils.py | varuntiwari27/rally | 948fba0e8fe8214dd3716451d2a52e014a4115be | [
"Apache-2.0"
] | null | null | null | # Copyright 2013: Intel Inc.
# 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 a... | 36.816276 | 78 | 0.577969 | 3,388 | 29,858 | 4.751476 | 0.085301 | 0.054355 | 0.053858 | 0.074792 | 0.777302 | 0.737545 | 0.708225 | 0.650578 | 0.587029 | 0.52168 | 0 | 0.018055 | 0.296939 | 29,858 | 810 | 79 | 36.861728 | 0.748809 | 0.020564 | 0 | 0.402191 | 0 | 0 | 0.090632 | 0.007527 | 0 | 0 | 0 | 0 | 0.118936 | 1 | 0.237872 | false | 0.032864 | 0.020344 | 0 | 0.29108 | 0.062598 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c6bad7424dae38824ff277f744dd7c3deb3ad52 | 52,927 | py | Python | nova/tests/unit/test_api_validation.py | arvindn05/nova | 1d335b333245198dbf39841eedd221377beb58c2 | [
"Apache-2.0"
] | 2 | 2021-10-11T04:56:25.000Z | 2022-02-16T08:49:29.000Z | nova/tests/unit/test_api_validation.py | ljzjohnson/nova | 87e1951a1b8c03b9ecdf8f75610d14690b61f272 | [
"Apache-2.0"
] | 132 | 2017-03-27T11:31:52.000Z | 2022-03-30T08:45:02.000Z | nova/tests/unit/test_api_validation.py | ljzjohnson/nova | 87e1951a1b8c03b9ecdf8f75610d14690b61f272 | [
"Apache-2.0"
] | 8 | 2017-03-27T07:50:38.000Z | 2020-02-14T16:55:56.000Z | # Copyright 2013 NEC Corporation. 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 ... | 39.118256 | 79 | 0.527406 | 5,170 | 52,927 | 5.263443 | 0.090716 | 0.042922 | 0.062178 | 0.074416 | 0.776422 | 0.735337 | 0.715089 | 0.688446 | 0.64975 | 0.60036 | 0 | 0.023956 | 0.350105 | 52,927 | 1,352 | 80 | 39.147189 | 0.76716 | 0.03792 | 0 | 0.558248 | 0 | 0.00466 | 0.221111 | 0.012678 | 0 | 0 | 0.000432 | 0 | 0.09972 | 1 | 0.076421 | false | 0.003728 | 0.012116 | 0.005592 | 0.155638 | 0.007456 | 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 |
7c7102f411b7b53600749e0d9db7f33300454c31 | 109 | py | Python | benchmark/metrics/__init__.py | stackriot/flocker | eaa586248986d7cd681c99c948546c2b507e44de | [
"Apache-2.0"
] | 2,690 | 2015-01-02T11:12:11.000Z | 2022-03-15T15:41:51.000Z | benchmark/metrics/__init__.py | stackriot/flocker | eaa586248986d7cd681c99c948546c2b507e44de | [
"Apache-2.0"
] | 2,102 | 2015-01-02T18:49:40.000Z | 2021-01-21T18:49:47.000Z | benchmark/metrics/__init__.py | stackriot/flocker | eaa586248986d7cd681c99c948546c2b507e44de | [
"Apache-2.0"
] | 333 | 2015-01-10T01:44:01.000Z | 2022-03-08T15:03:04.000Z | from .cputime import CPUTime
from .wallclock import WallClock
__all__ = [
'CPUTime',
'WallClock',
]
| 13.625 | 32 | 0.688073 | 11 | 109 | 6.454545 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211009 | 109 | 7 | 33 | 15.571429 | 0.825581 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 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 |
7c79dc9f3cc9492e90ed6c29836ee64c54438dda | 197 | py | Python | ectopylasm/__init__.py | grasshoff/ectopylasm | a8cbf388c4a9063b34d02701120a4716f98dbc5d | [
"MIT"
] | 1 | 2020-04-04T21:41:22.000Z | 2020-04-04T21:41:22.000Z | ectopylasm/__init__.py | grasshoff/ectopylasm | a8cbf388c4a9063b34d02701120a4716f98dbc5d | [
"MIT"
] | 14 | 2019-06-25T08:57:24.000Z | 2019-07-29T12:28:26.000Z | ectopylasm/__init__.py | grasshoff/ectopylasm | a8cbf388c4a9063b34d02701120a4716f98dbc5d | [
"MIT"
] | 1 | 2020-03-14T10:15:03.000Z | 2020-03-14T10:15:03.000Z | # -*- coding: utf-8 -*-
from .__version__ import __version__
__author__ = "E. G. Patrick Bos"
__email__ = 'egpbos@gmail.com'
from .io import *
from .visualize import *
from .geometry import *
| 15.153846 | 36 | 0.690355 | 25 | 197 | 4.8 | 0.72 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.177665 | 197 | 12 | 37 | 16.416667 | 0.734568 | 0.106599 | 0 | 0 | 0 | 0 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7c7bacdce1a249cf33fe6d08cb41a375bcecee53 | 603 | py | Python | contests/atcoder/abc157/abc157_f/main.py | conao3/coder | 2cdb610fec013da88a3470d460108e8a9b462445 | [
"CC0-1.0"
] | null | null | null | contests/atcoder/abc157/abc157_f/main.py | conao3/coder | 2cdb610fec013da88a3470d460108e8a9b462445 | [
"CC0-1.0"
] | null | null | null | contests/atcoder/abc157/abc157_f/main.py | conao3/coder | 2cdb610fec013da88a3470d460108e8a9b462445 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# from typing import *
# def solve(N: int, K: int, x: List[int], y: List[int], c: List[int]) -> float:
def solve(N, K, x, y, c):
pass # TODO: edit here
# generated by online-judge-template-generator v4.1.0 (https://github.com/kmyk/online-judge-template-generator)
def main():
N, K = map... | 28.714286 | 111 | 0.577114 | 105 | 603 | 3.209524 | 0.447619 | 0.083086 | 0.094955 | 0.124629 | 0.192878 | 0.059347 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.227197 | 603 | 20 | 112 | 30.15 | 0.714592 | 0.40796 | 0 | 0 | 1 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.153846 | false | 0.076923 | 0 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7c80c49f9949570da9beff70e0dd5abcb67dc3fd | 3,049 | py | Python | legacy/rnns/fastrnns/cells.py | Chillee/benchmark | 91e1b2871327e44b9b7d24d173ca93720fb6565b | [
"BSD-3-Clause"
] | 1 | 2021-07-30T08:47:09.000Z | 2021-07-30T08:47:09.000Z | legacy/rnns/fastrnns/cells.py | Chillee/benchmark | 91e1b2871327e44b9b7d24d173ca93720fb6565b | [
"BSD-3-Clause"
] | 1 | 2021-04-17T11:24:26.000Z | 2021-04-17T11:28:49.000Z | legacy/rnns/fastrnns/cells.py | Chillee/benchmark | 91e1b2871327e44b9b7d24d173ca93720fb6565b | [
"BSD-3-Clause"
] | null | null | null | import torch
def milstm_cell(x, hx, cx, w_ih, w_hh, alpha, beta_i, beta_h, bias):
Wx = x.mm(w_ih.t())
Uz = hx.mm(w_hh.t())
# Section 2.1 in https://arxiv.org/pdf/1606.06630.pdf
gates = (alpha * Wx * Uz + beta_i * Wx + beta_h * Uz + bias)
# Same as LSTMCell after this point
ingate, forgetgate... | 29.892157 | 100 | 0.636602 | 481 | 3,049 | 3.87526 | 0.14553 | 0.11588 | 0.11588 | 0.02897 | 0.719957 | 0.719957 | 0.712446 | 0.692597 | 0.671674 | 0.616953 | 0 | 0.009648 | 0.218104 | 3,049 | 101 | 101 | 30.188119 | 0.772232 | 0.116432 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.015873 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c8756621291d8fe7864f0dd29af3f157e55623d | 218 | py | Python | pynovice/echarts_plot/__init__.py | wqwangchn/novice | d52190a9cd5045726e49aff8610b718636c304c7 | [
"MIT"
] | 2 | 2020-06-28T08:30:47.000Z | 2020-11-04T07:55:42.000Z | pynovice/echarts_plot/__init__.py | wqwangchn/novice | d52190a9cd5045726e49aff8610b718636c304c7 | [
"MIT"
] | 8 | 2020-11-13T18:56:02.000Z | 2022-02-10T03:16:52.000Z | pynovice/echarts_plot/__init__.py | wqwangchn/novice | d52190a9cd5045726e49aff8610b718636c304c7 | [
"MIT"
] | 2 | 2020-09-17T00:12:36.000Z | 2020-11-04T07:55:55.000Z | # coding=utf-8
# /usr/bin/env python
'''
Author: wenqiangw
Email: wenqiangw@opera.com
Date: 2020-07-28 15:07
Desc: 数据分布画图
'''
from .anysis_distribution_plot import DistributionAnysis
from .echarts_base_plot import * | 16.769231 | 56 | 0.766055 | 32 | 218 | 5.09375 | 0.84375 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067708 | 0.119266 | 218 | 13 | 57 | 16.769231 | 0.78125 | 0.522936 | 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 |
7c929e10f5372dd71ee30e3b0aa535701552ae3c | 169 | py | Python | calc_addr.py | HenryQuan/ida2br | 73e72560fd75a68c8d106006244ce5dd54344c6f | [
"MIT"
] | 2 | 2020-09-27T14:26:56.000Z | 2021-05-09T13:25:51.000Z | calc_addr.py | HenryQuan/ida2br | 73e72560fd75a68c8d106006244ce5dd54344c6f | [
"MIT"
] | 3 | 2021-03-20T12:49:05.000Z | 2021-08-13T05:56:43.000Z | calc_addr.py | HenryQuan/ida2br | 73e72560fd75a68c8d106006244ce5dd54344c6f | [
"MIT"
] | null | null | null | from offset import OFFSET
# cool down
address = [0xe0d60, 0x2abbcc, 0x612218]
for a in address:
print("sum: {}, diff: {}".format(hex(a + OFFSET), hex(a - OFFSET)))
| 24.142857 | 71 | 0.656805 | 24 | 169 | 4.625 | 0.708333 | 0.072072 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093525 | 0.177515 | 169 | 6 | 72 | 28.166667 | 0.705036 | 0.053254 | 0 | 0 | 0 | 0 | 0.107595 | 0 | 0 | 0 | 0.14557 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
7c9706e13a9fdb1c43e114c79920a9219fd1099c | 57 | py | Python | tests/conftest.py | jwdashel/woms | f326fabd1c3aae0fd4d678ecbcf5e2c59911cbbd | [
"BSD-3-Clause"
] | null | null | null | tests/conftest.py | jwdashel/woms | f326fabd1c3aae0fd4d678ecbcf5e2c59911cbbd | [
"BSD-3-Clause"
] | null | null | null | tests/conftest.py | jwdashel/woms | f326fabd1c3aae0fd4d678ecbcf5e2c59911cbbd | [
"BSD-3-Clause"
] | null | null | null | pytest_plugins = [
"tests.doubles.playout_doubles"
]
| 14.25 | 35 | 0.719298 | 6 | 57 | 6.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 57 | 3 | 36 | 19 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.508772 | 0.508772 | 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 |
7c981f9ec6b3a7feccc0fd1e883759dfc26f7159 | 1,299 | py | Python | regipy/plugins/__init__.py | shakedtanchuma/regipy | a7180d2db86723a5180981422b7aa3e885de5401 | [
"MIT"
] | null | null | null | regipy/plugins/__init__.py | shakedtanchuma/regipy | a7180d2db86723a5180981422b7aa3e885de5401 | [
"MIT"
] | null | null | null | regipy/plugins/__init__.py | shakedtanchuma/regipy | a7180d2db86723a5180981422b7aa3e885de5401 | [
"MIT"
] | null | null | null | from .amcache.amcache import AmCachePlugin
from .ntuser.persistence import NTUserPersistencePlugin
from .ntuser.user_assist import UserAssistPlugin
from .ntuser.word_wheel_query import WordWheelQueryPlugin
from .ntuser.typed_urls import TypedUrlsPlugin
from .ntuser.installed_programs_ntuser import InstalledSoftwareNTUs... | 51.96 | 76 | 0.889145 | 137 | 1,299 | 8.306569 | 0.467153 | 0.070299 | 0.038664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073903 | 1,299 | 24 | 77 | 54.125 | 0.945968 | 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 |
7c99beb0f9d9d05bbcb9456fa934a666da22fbf8 | 1,679 | py | Python | garaged/src/garage/envs/env_spec.py | artberryx/LSD | 99ee081de2502b4d13c140b474f772db8a5f92fe | [
"MIT"
] | 7 | 2022-02-01T03:02:24.000Z | 2022-02-10T12:54:05.000Z | garaged/src/garage/envs/env_spec.py | artberryx/LSD | 99ee081de2502b4d13c140b474f772db8a5f92fe | [
"MIT"
] | null | null | null | garaged/src/garage/envs/env_spec.py | artberryx/LSD | 99ee081de2502b4d13c140b474f772db8a5f92fe | [
"MIT"
] | 2 | 2022-02-03T03:33:25.000Z | 2022-02-10T12:54:07.000Z | """EnvSpec class."""
from garage import InOutSpec
class EnvSpec(InOutSpec):
"""Describes the action and observation spaces of an environment.
Args:
observation_space (akro.Space): The observation space of the env.
action_space (akro.Space): The action space of the env.
"""
def __in... | 23.985714 | 73 | 0.612269 | 185 | 1,679 | 5.318919 | 0.243243 | 0.260163 | 0.060976 | 0.079268 | 0.194106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294223 | 1,679 | 69 | 74 | 24.333333 | 0.83038 | 0.418106 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7cb66ce780b685a05598e0b4893f15c2844f8df9 | 15,767 | py | Python | auto_pose/meshrenderer/gl_utils/geometry.py | MartinSmeyer/AugmentedAutoencoder | 487b9f6e9a3a46a1cee9a3193e4e5d0260a32013 | [
"MIT"
] | 5 | 2019-01-04T10:56:21.000Z | 2020-08-20T09:17:39.000Z | auto_pose/meshrenderer/gl_utils/geometry.py | MartinSmeyer/AugmentedAutoencoder | 487b9f6e9a3a46a1cee9a3193e4e5d0260a32013 | [
"MIT"
] | null | null | null | auto_pose/meshrenderer/gl_utils/geometry.py | MartinSmeyer/AugmentedAutoencoder | 487b9f6e9a3a46a1cee9a3193e4e5d0260a32013 | [
"MIT"
] | 2 | 2018-12-26T05:33:29.000Z | 2019-05-22T13:50:02.000Z | # -*- coding: utf-8 -*-
import os
import numpy as np
import hashlib
import pyassimp
import progressbar
def load(filename):
scene = pyassimp.load(filename, processing=pyassimp.postprocess.aiProcess_GenUVCoords|pyassimp.postprocess.aiProcess_Triangulate )
mesh = scene.meshes[0]
return mesh.vertices, mesh.no... | 33.475584 | 216 | 0.406355 | 2,683 | 15,767 | 2.355572 | 0.05218 | 0.160443 | 0.177057 | 0.160759 | 0.694778 | 0.687342 | 0.680696 | 0.650316 | 0.584968 | 0.55269 | 0 | 0.194132 | 0.368808 | 15,767 | 471 | 217 | 33.475584 | 0.440916 | 0.009196 | 0 | 0.724706 | 0 | 0 | 0.003969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021176 | false | 0 | 0.014118 | 0 | 0.061176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7cb67b85944ec7e0030345aea11a3cdbc022ff03 | 330 | py | Python | spectroscope/model/__init__.py | neukind/ethmonitor | 42828a9b2811d97b3c134244b905353a7bf42660 | [
"Apache-2.0"
] | 6 | 2021-01-29T02:28:44.000Z | 2021-02-17T14:08:14.000Z | spectroscope/model/__init__.py | neukind/ethmonitor | 42828a9b2811d97b3c134244b905353a7bf42660 | [
"Apache-2.0"
] | 3 | 2021-07-26T10:03:12.000Z | 2021-07-26T11:48:47.000Z | spectroscope/model/__init__.py | neukind/ethmonitor | 42828a9b2811d97b3c134244b905353a7bf42660 | [
"Apache-2.0"
] | 3 | 2021-04-19T09:34:11.000Z | 2021-04-22T06:23:39.000Z | from datetime import datetime
from pydantic import BaseModel
from typing import Optional
class Event(BaseModel):
pass
class Action(Event):
pass
class ChainTimestamp(BaseModel):
epoch: int
slot: int
timestamp: Optional[datetime] = None
class ValidatorIdentity(BaseModel):
idx: int
pubk... | 14.347826 | 40 | 0.727273 | 38 | 330 | 6.315789 | 0.552632 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 330 | 22 | 41 | 15 | 0.923077 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.214286 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7cc5dd0ac3b93fc6f9a1f78126600eb0ffd8f7d3 | 429 | py | Python | app/__init__.py | COdingaorg/Pizzainn | ab7f42b03bb86a1694d847b3e65547090a017532 | [
"MIT"
] | null | null | null | app/__init__.py | COdingaorg/Pizzainn | ab7f42b03bb86a1694d847b3e65547090a017532 | [
"MIT"
] | null | null | null | app/__init__.py | COdingaorg/Pizzainn | ab7f42b03bb86a1694d847b3e65547090a017532 | [
"MIT"
] | 1 | 2021-06-15T07:36:12.000Z | 2021-06-15T07:36:12.000Z | from flask import Flask
from app import app
from config import config_options
def create_app(config_name):
app = Flask(__name__)
# creating app configurations
app.config.from_object(config_options[config_name])
#Registering blueprint
from .main import main as main_blueprint
app.register_blueprint(main_bl... | 21.45 | 53 | 0.799534 | 60 | 429 | 5.45 | 0.316667 | 0.079511 | 0.122324 | 0.17737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149184 | 429 | 20 | 54 | 21.45 | 0.89589 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7cc840b0596b9ceedd8ed1476874411bdc0fc044 | 64 | py | Python | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/01.Taking-Input-From-User.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/01.Taking-Input-From-User.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/01.Taking-Input-From-User.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | name = input("Your name: ")
print(f"Hello {name}") # f-string
| 16 | 34 | 0.609375 | 10 | 64 | 3.9 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 64 | 3 | 35 | 21.333333 | 0.735849 | 0.125 | 0 | 0 | 0 | 0 | 0.425926 | 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 |
7ccabb2df8e2d97a343ad80969f6c9f18dff4b0b | 22,364 | py | Python | peakTree/VIS_Colormaps.py | martin-rdz/peakTree | f37764b80faa5ead14835c2d03fda46c64b94e4d | [
"MIT"
] | 3 | 2020-12-03T06:53:07.000Z | 2022-02-23T08:35:32.000Z | peakTree/VIS_Colormaps.py | ti-vo/peakTree | 37fcd51367d575edf7faeba4c20aaac42f577857 | [
"MIT"
] | 1 | 2022-02-07T13:55:56.000Z | 2022-02-07T13:55:56.000Z | peakTree/VIS_Colormaps.py | ti-vo/peakTree | 37fcd51367d575edf7faeba4c20aaac42f577857 | [
"MIT"
] | 5 | 2019-08-27T10:51:39.000Z | 2022-02-07T14:44:38.000Z | """
added the cloudnet velocity and segmented colormap
"""
import matplotlib
velocity_colors = (
# (1.0, 1.0, 1.0),
(0.0, 0.0, 0.3), # end_val dark blue
(0.0274509803922, 0.0549019607843, 0.23137254902),
(0.0392156862745, 0.0549019607843, 0.250980392157),
(0.0509803921569, 0.0549019607843, 0.2666... | 45.640816 | 101 | 0.6912 | 2,767 | 22,364 | 5.572461 | 0.113842 | 0.027239 | 0.028017 | 0.023607 | 0.643038 | 0.634282 | 0.629678 | 0.621441 | 0.621441 | 0.621441 | 0 | 0.759975 | 0.14492 | 22,364 | 489 | 102 | 45.734151 | 0.046332 | 0.013012 | 0 | 0.641138 | 0 | 0 | 0.009208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004376 | 0 | 0.004376 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7cd79f98c53210f21e1ce5ef3775994c87da9fbe | 1,335 | py | Python | test/integration/framework/nsh-lwm2m/lwm2m/server.py | dextero/Anjay | 968bec079207315bba27bc59bd59f6d17a65d80d | [
"Apache-2.0"
] | null | null | null | test/integration/framework/nsh-lwm2m/lwm2m/server.py | dextero/Anjay | 968bec079207315bba27bc59bd59f6d17a65d80d | [
"Apache-2.0"
] | null | null | null | test/integration/framework/nsh-lwm2m/lwm2m/server.py | dextero/Anjay | 968bec079207315bba27bc59bd59f6d17a65d80d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2017 AVSystem <avsystem@avsystem.com>
#
# 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 requi... | 32.560976 | 74 | 0.716105 | 192 | 1,335 | 4.75 | 0.510417 | 0.098684 | 0.092105 | 0.059211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012927 | 0.188764 | 1,335 | 40 | 75 | 33.375 | 0.829178 | 0.442697 | 0 | 0 | 0 | 0 | 0.016484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.117647 | 0.176471 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7ce5629ba4d9c78b8ed0993e64238ae10a7e27cb | 45,458 | py | Python | src/azure-cli/azure/cli/command_modules/netappfiles/_help.py | GalGrinblat/azure-cli | b30b9cf9f90d01b9b6708cc56b82e32cd7182dae | [
"MIT"
] | 1 | 2021-11-17T18:09:28.000Z | 2021-11-17T18:09:28.000Z | src/azure-cli/azure/cli/command_modules/netappfiles/_help.py | GalGrinblat/azure-cli | b30b9cf9f90d01b9b6708cc56b82e32cd7182dae | [
"MIT"
] | 2 | 2020-05-04T22:45:39.000Z | 2021-12-02T22:45:10.000Z | src/azure-cli/azure/cli/command_modules/netappfiles/_help.py | GalGrinblat/azure-cli | b30b9cf9f90d01b9b6708cc56b82e32cd7182dae | [
"MIT"
] | 2 | 2021-07-07T12:43:11.000Z | 2021-07-09T19:30:53.000Z | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | 40.121801 | 466 | 0.716112 | 6,391 | 45,458 | 5.093256 | 0.081208 | 0.119812 | 0.068201 | 0.072962 | 0.755338 | 0.720684 | 0.686553 | 0.638475 | 0.619797 | 0.57393 | 0 | 0.006454 | 0.185424 | 45,458 | 1,132 | 467 | 40.157244 | 0.872613 | 0.009349 | 0 | 0.654976 | 0 | 0.072038 | 0.969195 | 0.019411 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.002844 | 0.000948 | 0 | 0.000948 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7cfa75b2a7df5761be644d6533fa00e245b634b6 | 1,472 | py | Python | 05_repetition_structure_for.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | 1 | 2016-10-02T00:51:43.000Z | 2016-10-02T00:51:43.000Z | 05_repetition_structure_for.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | null | null | null | 05_repetition_structure_for.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | null | null | null | '''
É uma maneira de construtir uma estrutura de repetição ou laço de repetição, onde o programa irá repetir
determinada instrução até que percorra todos os elementos e finalize.
--> Só é usado quando sabemos quantas vezes o bloco de código deve ser repetido. <--
Vamos entender um pouco sobre o for.
for(para) cada i(v... | 36.8 | 124 | 0.735734 | 272 | 1,472 | 3.981618 | 0.404412 | 0.032318 | 0.030471 | 0.033241 | 0.383195 | 0.292705 | 0.292705 | 0.237304 | 0.237304 | 0.237304 | 0 | 0.016102 | 0.19837 | 1,472 | 39 | 125 | 37.74359 | 0.901695 | 0.858016 | 0 | 0.5 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6b0b59d49c49a95bb6716b84d130b01f59dee29f | 103 | py | Python | ex025.py | mateusguida/ExerciciosPython | 70f2df0a2a7bfd152205bcce228e2161c11f5888 | [
"MIT"
] | null | null | null | ex025.py | mateusguida/ExerciciosPython | 70f2df0a2a7bfd152205bcce228e2161c11f5888 | [
"MIT"
] | null | null | null | ex025.py | mateusguida/ExerciciosPython | 70f2df0a2a7bfd152205bcce228e2161c11f5888 | [
"MIT"
] | null | null | null | nome = str(input("Digite um nome: ")).strip()
print(f'Seu nome tem Silva? {"silva" in nome.lower()}')
| 25.75 | 55 | 0.640777 | 17 | 103 | 3.882353 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 103 | 3 | 56 | 34.333333 | 0.741573 | 0 | 0 | 0 | 0 | 0 | 0.592233 | 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 |
6b1ae4934b89e7a2e0e44ab2efd62bc310d27f93 | 994 | py | Python | erica/application/grundsteuer/grundsteuer_dto.py | digitalservice4germany/erica | 7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2 | [
"MIT"
] | 3 | 2022-01-31T15:17:17.000Z | 2022-03-01T16:15:47.000Z | erica/application/grundsteuer/grundsteuer_dto.py | digitalservice4germany/erica | 7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2 | [
"MIT"
] | 59 | 2022-01-31T14:04:20.000Z | 2022-03-31T20:08:47.000Z | erica/application/grundsteuer/grundsteuer_dto.py | digitalservice4germany/erica | 7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2 | [
"MIT"
] | 1 | 2022-03-10T09:24:28.000Z | 2022-03-10T09:24:28.000Z | from typing import Optional, Union
from erica.application.Shared.response_dto import ResponseBaseDto, ResultTransferPdfResponseDto, \
ResultValidationErrorResponseDto
from erica.application.grundsteuer.grundsteuer_input_eigentuemer import Eigentuemer
from erica.application.base_dto import CamelCaseModel
from eric... | 30.121212 | 98 | 0.843058 | 93 | 994 | 8.913978 | 0.376344 | 0.065139 | 0.120627 | 0.112183 | 0.170084 | 0.170084 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10664 | 994 | 32 | 99 | 31.0625 | 0.933559 | 0.012072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.421053 | 0 | 0.947368 | 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 |
6b1ec4d0451c6c94d08be89649b9f1b0279b79a0 | 117 | py | Python | posts/enums.py | subsystemcoding/socialpixel_backend | 648f9441370e9a536896ea5807a581b594a9db78 | [
"MIT"
] | null | null | null | posts/enums.py | subsystemcoding/socialpixel_backend | 648f9441370e9a536896ea5807a581b594a9db78 | [
"MIT"
] | null | null | null | posts/enums.py | subsystemcoding/socialpixel_backend | 648f9441370e9a536896ea5807a581b594a9db78 | [
"MIT"
] | 3 | 2021-01-28T10:05:15.000Z | 2021-03-20T18:21:34.000Z | from django.db import models
class PostVisibilityEnums(models.IntegerChoices):
ACTIVE = 0
HIDDEN = 1 | 23.4 | 49 | 0.700855 | 13 | 117 | 6.307692 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.239316 | 117 | 5 | 50 | 23.4 | 0.898876 | 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 |
6b35d803c3e2bf0395dca9fb3b99a6afb996aa17 | 95 | py | Python | Python/Dictionaries/Octal-to_binary.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | Python/Dictionaries/Octal-to_binary.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | Python/Dictionaries/Octal-to_binary.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | ##octal to binary using dictionary
octal=int(input("Enter Octal Number: "))
print(bin(octal)) | 19 | 40 | 0.736842 | 14 | 95 | 5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 95 | 5 | 41 | 19 | 0.833333 | 0.336842 | 0 | 0 | 0 | 0 | 0.322581 | 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 |
6b3b7e0f0bd2b14e87e1bba9f08419d756c1734d | 686 | py | Python | etna/clustering/base.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 326 | 2021-11-18T15:30:50.000Z | 2022-03-31T09:44:15.000Z | etna/clustering/base.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 305 | 2021-11-17T10:28:31.000Z | 2022-03-31T18:05:03.000Z | etna/clustering/base.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 29 | 2021-11-21T12:10:48.000Z | 2022-03-31T22:55:06.000Z | from abc import ABC
from abc import abstractmethod
from typing import Dict
import pandas as pd
from etna.core import BaseMixin
class Clustering(ABC, BaseMixin):
"""Base class for ETNA clustering algorithms."""
@abstractmethod
def fit_predict(self) -> Dict[str, int]:
"""Fit clustering algo and p... | 20.176471 | 52 | 0.588921 | 73 | 686 | 5.506849 | 0.506849 | 0.034826 | 0.064677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316327 | 686 | 33 | 53 | 20.787879 | 0.857143 | 0.35277 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.416667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
6b44e58039c070b7dd393640897419ad1ac2d0f9 | 589 | py | Python | test/test_util.py | srdqty/python-confluent-schemaregistry | a9273a0a76ba027f2e97ce42fb858c9ecfca7cc2 | [
"Apache-2.0"
] | null | null | null | test/test_util.py | srdqty/python-confluent-schemaregistry | a9273a0a76ba027f2e97ce42fb858c9ecfca7cc2 | [
"Apache-2.0"
] | null | null | null | test/test_util.py | srdqty/python-confluent-schemaregistry | a9273a0a76ba027f2e97ce42fb858c9ecfca7cc2 | [
"Apache-2.0"
] | null | null | null | import unittest2 as unittest
import data_gen
from avro import schema
from confluent.schemaregistry.client import Util
class TestUtil(unittest.TestCase):
def test_schema_from_string(self):
parsed = Util.parse_schema_from_string(data_gen.BASIC_SCHEMA)
self.assertTrue(isinstance(parsed, schema.Schema... | 32.722222 | 89 | 0.775891 | 76 | 589 | 5.763158 | 0.447368 | 0.114155 | 0.059361 | 0.077626 | 0.3379 | 0.3379 | 0.205479 | 0 | 0 | 0 | 0 | 0.001972 | 0.139219 | 589 | 17 | 90 | 34.647059 | 0.861933 | 0 | 0 | 0.153846 | 0 | 0 | 0.025467 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6b48d7cc9fe866975256d47a57ab899873dec113 | 476 | py | Python | netsuitesdk/api/taxtype.py | dokka-ai/netsuite-sdk-py2.7 | 93260dea1f02a6b1785b77ffcdd7f8fe3c9d0b76 | [
"MIT"
] | null | null | null | netsuitesdk/api/taxtype.py | dokka-ai/netsuite-sdk-py2.7 | 93260dea1f02a6b1785b77ffcdd7f8fe3c9d0b76 | [
"MIT"
] | null | null | null | netsuitesdk/api/taxtype.py | dokka-ai/netsuite-sdk-py2.7 | 93260dea1f02a6b1785b77ffcdd7f8fe3c9d0b76 | [
"MIT"
] | 1 | 2021-02-22T11:52:20.000Z | 2021-02-22T11:52:20.000Z | from __future__ import absolute_import
from .base import ApiBase
import logging
logger = logging.getLogger(__name__)
class TaxType(ApiBase):
def post(self, data):
pass
def __init__(self, ns_client):
ApiBase.__init__(self, ns_client=ns_client, type_name=u'SalesTaxItem')
class TaxGroup(ApiB... | 20.695652 | 78 | 0.710084 | 63 | 476 | 4.84127 | 0.380952 | 0.157377 | 0.131148 | 0.209836 | 0.557377 | 0.557377 | 0.557377 | 0.557377 | 0.557377 | 0.557377 | 0 | 0 | 0.195378 | 476 | 22 | 79 | 21.636364 | 0.796345 | 0 | 0 | 0.428571 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6b4acab046454879af6266b27d88dbd1c3407ad8 | 1,570 | py | Python | backend/species/migrations/0001_initial.py | Akay7/SWGraph | 5323d51983d9445868d13aeba5497220394d93fe | [
"BSD-3-Clause"
] | null | null | null | backend/species/migrations/0001_initial.py | Akay7/SWGraph | 5323d51983d9445868d13aeba5497220394d93fe | [
"BSD-3-Clause"
] | null | null | null | backend/species/migrations/0001_initial.py | Akay7/SWGraph | 5323d51983d9445868d13aeba5497220394d93fe | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.7 on 2018-07-28 19:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('people', '0001_initial'),
('planet', '0001_initial'),
]
operations = [
migratio... | 39.25 | 137 | 0.579618 | 157 | 1,570 | 5.643312 | 0.44586 | 0.15237 | 0.182844 | 0.243792 | 0.28781 | 0.111738 | 0 | 0 | 0 | 0 | 0 | 0.038732 | 0.276433 | 1,570 | 39 | 138 | 40.25641 | 0.741197 | 0.028662 | 0 | 0 | 1 | 0 | 0.141169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
860b48e4ae0e092e21caae8c353c0fa011ecaaf0 | 15,043 | py | Python | tests/unit/states/test_keystone.py | markgras/salt | d66cd3c935533c63870b83228b978ce43e0ef70d | [
"Apache-2.0"
] | 9,425 | 2015-01-01T05:59:24.000Z | 2022-03-31T20:44:05.000Z | tests/unit/states/test_keystone.py | markgras/salt | d66cd3c935533c63870b83228b978ce43e0ef70d | [
"Apache-2.0"
] | 33,507 | 2015-01-01T00:19:56.000Z | 2022-03-31T23:48:20.000Z | tests/unit/states/test_keystone.py | markgras/salt | d66cd3c935533c63870b83228b978ce43e0ef70d | [
"Apache-2.0"
] | 5,810 | 2015-01-01T19:11:45.000Z | 2022-03-31T02:37:20.000Z | """
:codeauthor: Jayesh Kariya <jayeshk@saltstack.com>
"""
import salt.states.keystone as keystone
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.mock import MagicMock, patch
from tests.support.unit import TestCase
class KeystoneTestCase(TestCase, LoaderModuleMockMixin):
"""
Te... | 36.335749 | 87 | 0.494117 | 1,357 | 15,043 | 5.313191 | 0.083272 | 0.033981 | 0.108599 | 0.069903 | 0.821775 | 0.78613 | 0.707628 | 0.645215 | 0.587517 | 0.531068 | 0 | 0.001596 | 0.375258 | 15,043 | 413 | 88 | 36.423729 | 0.765588 | 0.067141 | 0 | 0.548173 | 0 | 0 | 0.185005 | 0.008508 | 0 | 0 | 0 | 0 | 0.096346 | 1 | 0.036545 | false | 0.043189 | 0.013289 | 0.003322 | 0.056478 | 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 |
860b9a3f9f8bb1a6050279263eb526b8e304acfc | 306 | py | Python | src/wechaty_plugin_contrib/contrib/__init__.py | xinyu3ru/python-wechaty-plugin-contrib | 2fc6ee19438ac29266acb133613f83d3aee3c7c3 | [
"Apache-2.0"
] | 11 | 2020-06-11T15:11:27.000Z | 2022-03-06T01:19:22.000Z | src/wechaty_plugin_contrib/contrib/__init__.py | xinyu3ru/python-wechaty-plugin-contrib | 2fc6ee19438ac29266acb133613f83d3aee3c7c3 | [
"Apache-2.0"
] | 6 | 2020-12-01T14:26:36.000Z | 2021-09-29T03:05:29.000Z | src/wechaty_plugin_contrib/contrib/__init__.py | xinyu3ru/python-wechaty-plugin-contrib | 2fc6ee19438ac29266acb133613f83d3aee3c7c3 | [
"Apache-2.0"
] | 5 | 2020-06-25T11:31:39.000Z | 2021-08-05T05:34:02.000Z | from .auto_reply_plugin import (
AutoReplyRule,
AutoReplyOptions,
AutoReplyPlugin
)
from .room_inviter import (
RoomInviterPlugin,
RoomInviterOptions
)
__all__ = [
'AutoReplyOptions',
'AutoReplyPlugin',
'AutoReplyRule',
'RoomInviterPlugin',
'RoomInviterOptions'
]
| 16.105263 | 32 | 0.699346 | 20 | 306 | 10.35 | 0.65 | 0.299517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 306 | 18 | 33 | 17 | 0.8625 | 0 | 0 | 0 | 0 | 0 | 0.25817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
867414d37907cb40f20516045ca48c9f7612d560 | 1,310 | py | Python | util/plugin/20170904_fastcgi.py | Shinpachi8/SubDomainsResultDeal | 0303d95bd96b8f1e696c6534f686f30809763970 | [
"Apache-2.0"
] | 1 | 2020-04-23T08:01:36.000Z | 2020-04-23T08:01:36.000Z | util/plugin/20170904_fastcgi.py | Shinpachi8/SubDomainsResultDeal | 0303d95bd96b8f1e696c6534f686f30809763970 | [
"Apache-2.0"
] | null | null | null | util/plugin/20170904_fastcgi.py | Shinpachi8/SubDomainsResultDeal | 0303d95bd96b8f1e696c6534f686f30809763970 | [
"Apache-2.0"
] | 5 | 2017-09-24T15:54:03.000Z | 2020-05-01T15:33:03.000Z | #!/usr/bin/env python
# coding=utf-8
import socket
import sys
def fastcgiFuzz(ip):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM); sock.settimeout(5.0)
sock.connect((ip, 9000))
data = """
01 01 00 01 00 08 00 00 00 01 00 00 00 00 00 00
01 04 00 01 00 8f 01 00 0e 03 52 45 51 55 45 53
... | 27.87234 | 82 | 0.562595 | 272 | 1,310 | 2.650735 | 0.415441 | 0.055479 | 0.058252 | 0.044383 | 0.099861 | 0.097087 | 0.038835 | 0 | 0 | 0 | 0 | 0.387173 | 0.357252 | 1,310 | 47 | 83 | 27.87234 | 0.469121 | 0.025191 | 0 | 0 | 0 | 0 | 0.492163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0.051282 | null | null | 0.076923 | 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 |
867534aac9e2a4fa5121c11b2accbb680349bb7d | 219 | py | Python | cogs/game.py | Nikoolaii/Nendo-py-V2 | f5a0031d89189b4cd42b4332aa45106520032e25 | [
"MIT"
] | null | null | null | cogs/game.py | Nikoolaii/Nendo-py-V2 | f5a0031d89189b4cd42b4332aa45106520032e25 | [
"MIT"
] | null | null | null | cogs/game.py | Nikoolaii/Nendo-py-V2 | f5a0031d89189b4cd42b4332aa45106520032e25 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
prefixint = "n!"
class Game(commands.Cog):
def __init__(self, client):
self.client = client
def setup(client):
client.add_cog(Game(client)) | 19.909091 | 32 | 0.6621 | 28 | 219 | 5 | 0.571429 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232877 | 219 | 11 | 33 | 19.909091 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
868195a5a46ec5f1e1080c99a74a7fc541fef755 | 54,397 | py | Python | dft/numint.py | gmwang18/pyscf | fcd6877751661c8a9743c1c872a4a2b65f6dd7ac | [
"BSD-2-Clause"
] | null | null | null | dft/numint.py | gmwang18/pyscf | fcd6877751661c8a9743c1c872a4a2b65f6dd7ac | [
"BSD-2-Clause"
] | null | null | null | dft/numint.py | gmwang18/pyscf | fcd6877751661c8a9743c1c872a4a2b65f6dd7ac | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
import ctypes
import numpy
import scipy.linalg
import pyscf.lib
from pyscf.lib import logger
try:
from pyscf.dft import libxc
except (ImportError, OSError):
from pyscf.dft import xcfun as libxc
libdft = pyscf.lib.load_library('libdft')
OCCD... | 41.05434 | 97 | 0.532695 | 7,907 | 54,397 | 3.554825 | 0.067788 | 0.009428 | 0.015725 | 0.011029 | 0.773232 | 0.741746 | 0.7204 | 0.692294 | 0.661627 | 0.636153 | 0 | 0.039843 | 0.334669 | 54,397 | 1,324 | 98 | 41.085347 | 0.736793 | 0.260143 | 0 | 0.549941 | 0 | 0 | 0.027713 | 0 | 0 | 0 | 0 | 0.002266 | 0.008226 | 1 | 0.035253 | false | 0 | 0.016451 | 0.009401 | 0.096357 | 0.007051 | 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 |
868316e59ca0d408a88f45257a54b69c65a7a89d | 21,348 | py | Python | sample-input/benchmarks/c5g7/c5g7-3d-rodded-B.py | geogunow/OpenMOC | b09e66be269703ca0a08d7a6afced1bc5984112a | [
"MIT"
] | 1 | 2015-07-22T15:37:55.000Z | 2015-07-22T15:37:55.000Z | sample-input/benchmarks/c5g7/c5g7-3d-rodded-B.py | wonkyeongkim/OPENMOC | b09e66be269703ca0a08d7a6afced1bc5984112a | [
"MIT"
] | 2 | 2015-07-22T17:21:14.000Z | 2015-08-08T04:21:56.000Z | sample-input/benchmarks/c5g7/c5g7-3d-rodded-B.py | wonkyeongkim/OPENMOC | b09e66be269703ca0a08d7a6afced1bc5984112a | [
"MIT"
] | null | null | null | import openmoc
###############################################################################
####################### Main Simulation Parameters ########################
###############################################################################
opts = openmoc.options.Options()
openmoc.log.set_log_level('NO... | 42.189723 | 81 | 0.562301 | 3,372 | 21,348 | 3.425563 | 0.059312 | 0.140248 | 0.181802 | 0.230629 | 0.586962 | 0.478314 | 0.409488 | 0.406718 | 0.384815 | 0.359017 | 0 | 0.108538 | 0.174817 | 21,348 | 505 | 82 | 42.273267 | 0.547173 | 0.04792 | 0 | 0.363897 | 0 | 0.25788 | 0.06984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005731 | 0 | 0.005731 | 0.031519 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8685308c562202077ff86ff9c3a5ed48d7beca3f | 153 | py | Python | apidaora/class_controller.py | SubjeBilisim/apidaora | 1beca9d4274c5bf4119b12744b6aa6ea18025b28 | [
"MIT"
] | 120 | 2019-09-19T14:17:27.000Z | 2022-03-26T13:55:39.000Z | apidaora/class_controller.py | dutradda/dataclassesapi | 32cdf5ada9a36cf8a3e9f063c47abbe5fe3ae9cc | [
"MIT"
] | 24 | 2019-09-25T23:52:09.000Z | 2021-08-29T01:00:36.000Z | apidaora/class_controller.py | dutradda/dataclassesapi | 32cdf5ada9a36cf8a3e9f063c47abbe5fe3ae9cc | [
"MIT"
] | 10 | 2019-09-26T09:17:49.000Z | 2021-02-17T10:41:47.000Z | from typing import ClassVar
class ClassController:
path: ClassVar[str]
def __init_subclass__(cls, path: str) -> None:
cls.path = path
| 17 | 50 | 0.679739 | 19 | 153 | 5.210526 | 0.684211 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 153 | 8 | 51 | 19.125 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8688bb35e73062034f29c4b487f6ea08b3d06598 | 53,686 | py | Python | nova/tests/virt/libvirt/test_volume.py | vmthunder/nova | baf05caab705c5778348d9f275dc541747b7c2de | [
"Apache-2.0"
] | 1 | 2015-11-25T10:18:22.000Z | 2015-11-25T10:18:22.000Z | nova/tests/virt/libvirt/test_volume.py | vmthunder/nova | baf05caab705c5778348d9f275dc541747b7c2de | [
"Apache-2.0"
] | 9 | 2015-05-20T11:20:17.000Z | 2017-07-27T08:21:33.000Z | nova/tests/virt/libvirt/test_volume.py | vmthunder/nova | baf05caab705c5778348d9f275dc541747b7c2de | [
"Apache-2.0"
] | 13 | 2015-05-05T09:34:04.000Z | 2017-11-08T02:03:46.000Z | # Copyright 2010 OpenStack Foundation
# Copyright 2012 University Of Minho
#
# 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.... | 46.401037 | 79 | 0.598312 | 6,006 | 53,686 | 5.091908 | 0.082917 | 0.061638 | 0.043163 | 0.021679 | 0.786508 | 0.751782 | 0.731541 | 0.698156 | 0.671114 | 0.645151 | 0 | 0.022366 | 0.27795 | 53,686 | 1,156 | 80 | 46.441176 | 0.766562 | 0.034087 | 0 | 0.615307 | 0 | 0.002014 | 0.143334 | 0.042825 | 0 | 0 | 0 | 0 | 0.123867 | 1 | 0.063444 | false | 0.002014 | 0.015106 | 0.008056 | 0.094663 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86ab03d282cbd264ad829861efae84d37f4664f5 | 685 | py | Python | libs/yowsup/yowsup/yowsup/layers/protocol_notifications/protocolentities/test_notification_picture_delete.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 22 | 2017-07-14T20:01:17.000Z | 2022-03-08T14:22:39.000Z | libs/yowsup/yowsup/yowsup/layers/protocol_notifications/protocolentities/test_notification_picture_delete.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 6 | 2017-07-14T21:03:50.000Z | 2021-06-10T19:08:32.000Z | libs/yowsup/yowsup/yowsup/layers/protocol_notifications/protocolentities/test_notification_picture_delete.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 13 | 2017-07-14T20:13:14.000Z | 2020-11-12T08:06:05.000Z | from yowsup.layers.protocol_notifications.protocolentities.notification_picture_delete import DeletePictureNotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_notifications.protocolentities.test_notification_picture import PictureNotificationProtocolEntityTest
class Delet... | 62.272727 | 133 | 0.842336 | 52 | 685 | 10.961538 | 0.519231 | 0.052632 | 0.05614 | 0.084211 | 0.185965 | 0.185965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09635 | 685 | 10 | 134 | 68.5 | 0.92084 | 0 | 0 | 0 | 0 | 0 | 0.027737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
86b17d8ba7461497fa585ab8e44ab703b2f7b3a4 | 376 | py | Python | blog/widgets.py | tedor/home-blog | 41e6cde964b9501864925f17d496ffea1fd0e770 | [
"BSD-3-Clause"
] | null | null | null | blog/widgets.py | tedor/home-blog | 41e6cde964b9501864925f17d496ffea1fd0e770 | [
"BSD-3-Clause"
] | null | null | null | blog/widgets.py | tedor/home-blog | 41e6cde964b9501864925f17d496ffea1fd0e770 | [
"BSD-3-Clause"
] | null | null | null | from django.utils.safestring import mark_safe
from django import forms
from django.template import loader
class TextFieldWithPictures(forms.Textarea):
def render(self, name, value, attrs=None):
s = super(TextFieldWithPictures, self).render(name, value, attrs)
t = loader.render_to_string('content/... | 41.777778 | 73 | 0.74734 | 50 | 376 | 5.52 | 0.62 | 0.108696 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 376 | 9 | 74 | 41.777778 | 0.873418 | 0 | 0 | 0 | 0 | 0 | 0.084881 | 0.084881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
86c84f3572da41c6e8a1eff70896575f643bc5e4 | 1,306 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/hr_payroll/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/hr_payroll/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/hr_payroll/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | #-*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Payroll',
'category': 'Human Resources',
'sequence': 38,
'description': """
Generic Payroll system.
=======================
* Employee Details
* Employee Contracts
* Passport based C... | 29.681818 | 74 | 0.633997 | 139 | 1,306 | 5.719424 | 0.546763 | 0.090566 | 0.049057 | 0.042767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002964 | 0.225115 | 1,306 | 43 | 75 | 30.372093 | 0.782609 | 0.07121 | 0 | 0.051282 | 0 | 0 | 0.743187 | 0.401321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86c9285c76ebe30855814c9b9c4bd25768f9fe0f | 185 | py | Python | ownblock/ownblock/apps/tickets/urls.py | danjac/ownblock | ac662fb7efb2f04567e2f85638c1250286452611 | [
"MIT"
] | 3 | 2015-06-12T04:42:02.000Z | 2018-10-29T17:09:10.000Z | ownblock/ownblock/apps/tickets/urls.py | danjac/ownblock | ac662fb7efb2f04567e2f85638c1250286452611 | [
"MIT"
] | null | null | null | ownblock/ownblock/apps/tickets/urls.py | danjac/ownblock | ac662fb7efb2f04567e2f85638c1250286452611 | [
"MIT"
] | null | null | null | from rest_framework import routers
from . import views
router = routers.DefaultRouter(trailing_slash=False)
router.register(r'tickets', views.TicketViewSet)
urlpatterns = router.urls
| 23.125 | 52 | 0.821622 | 23 | 185 | 6.521739 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097297 | 185 | 7 | 53 | 26.428571 | 0.898204 | 0 | 0 | 0 | 0 | 0 | 0.037838 | 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 |
86d76350d16ca94c7ca9ad4a602ca559f27e6f13 | 3,768 | py | Python | models/text_summarizer.py | piinghel/NLP-Demos | 3770552a12690b57733bab8ed5df8231a6560a4f | [
"MIT"
] | null | null | null | models/text_summarizer.py | piinghel/NLP-Demos | 3770552a12690b57733bab8ed5df8231a6560a4f | [
"MIT"
] | null | null | null | models/text_summarizer.py | piinghel/NLP-Demos | 3770552a12690b57733bab8ed5df8231a6560a4f | [
"MIT"
] | null | null | null | import streamlit as st
from ktrain import text
@st.cache(allow_output_mutation=True, show_spinner=False)
def load_model():
return text.TransformerSummarizer()
def text_summarizer():
st.title("Text summarization")
example_text = """World War II (WWII or WW2), also known as the Second World War, was a globa... | 144.923077 | 1,186 | 0.785828 | 604 | 3,768 | 4.892384 | 0.481788 | 0.020305 | 0.018951 | 0.02132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024453 | 0.175159 | 3,768 | 25 | 1,187 | 150.72 | 0.92471 | 0 | 0 | 0 | 0 | 0.176471 | 0.86518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0.058824 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86db9a129973300d679c7651829c8173499f0afa | 146 | py | Python | island/test.py | wovert/island | 685b1e2815f59a9ba30255d3e9be735803da6939 | [
"MIT"
] | null | null | null | island/test.py | wovert/island | 685b1e2815f59a9ba30255d3e9be735803da6939 | [
"MIT"
] | 6 | 2021-03-02T00:25:53.000Z | 2022-03-24T08:42:53.000Z | island/test.py | wovert/island | 685b1e2815f59a9ba30255d3e9be735803da6939 | [
"MIT"
] | null | null | null |
def demo4(**param):
print(param)
for key, value in param:
print(key, ':', value)
# demo4(ab=1, cd=2, ed=5)
demo4(abc=1,cde=2)
| 13.272727 | 30 | 0.554795 | 25 | 146 | 3.24 | 0.64 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.246575 | 146 | 10 | 31 | 14.6 | 0.663636 | 0.157534 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86e1db1090cfeb7fa9935b0117071c8567564f18 | 244 | py | Python | magic_method_del.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | magic_method_del.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | magic_method_del.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | class Foo(object):
def __init__(self):
print('foo __init__')
return None
def __del__(self):
print('foo __del__')
foo = Foo()
foo.__del__()
print(foo)
del foo
print(foo) # NameError: name 'foo' is not defined
| 16.266667 | 50 | 0.614754 | 33 | 244 | 3.939394 | 0.454545 | 0.246154 | 0.184615 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258197 | 244 | 14 | 51 | 17.428571 | 0.718232 | 0.147541 | 0 | 0.181818 | 0 | 0 | 0.11165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.363636 | 0.363636 | 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 |
86e1fa65ad5fb8b82264065a4b6badb2dbf787fe | 25,520 | py | Python | ambari-server/src/test/python/stacks/2.1/FALCON/test_falcon_server.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | 3 | 2016-12-01T15:55:11.000Z | 2016-12-01T15:56:38.000Z | ambari-server/src/test/python/stacks/2.1/FALCON/test_falcon_server.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | null | null | null | ambari-server/src/test/python/stacks/2.1/FALCON/test_falcon_server.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 44.152249 | 269 | 0.612539 | 2,571 | 25,520 | 5.886814 | 0.127188 | 0.085629 | 0.05669 | 0.034886 | 0.78183 | 0.746812 | 0.725537 | 0.674926 | 0.601982 | 0.53406 | 0 | 0.011656 | 0.260423 | 25,520 | 577 | 270 | 44.22877 | 0.790241 | 0.01105 | 0 | 0.635294 | 0 | 0 | 0.292983 | 0.164657 | 0 | 0 | 0 | 0 | 0.14902 | 0 | null | null | 0 | 0.011765 | null | null | 0.001961 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86e692f4a79ff9355a7f860780c8350b818b97af | 78 | py | Python | venv/lib/python3.6/_bootlocale.py | tchengatcincoai/cryptocoin-prices-compare | f295fecc7213a877bf717af0eb98414e9137b554 | [
"MIT"
] | 72 | 2018-07-02T07:47:15.000Z | 2022-03-29T10:02:14.000Z | venv/lib/python3.6/_bootlocale.py | zubeir-Abubakar/overflow | 86fc20d860bde8b872e4b16a7b0f857b574528c8 | [
"MIT"
] | 10 | 2021-05-06T21:56:20.000Z | 2022-03-02T02:49:07.000Z | venv/lib/python3.6/_bootlocale.py | zubeir-Abubakar/overflow | 86fc20d860bde8b872e4b16a7b0f857b574528c8 | [
"MIT"
] | 29 | 2018-09-17T06:10:32.000Z | 2022-03-19T13:15:30.000Z | /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_bootlocale.py | 78 | 78 | 0.846154 | 12 | 78 | 5.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 78 | 1 | 78 | 78 | 0.782051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86e72fd5e0dc350a108159fa0bfa9ee21c7be75f | 274 | py | Python | samples/essai_nisyscfg.py | lcarde/pymanip | d6f0b90b678d6f508d86d2d3ba3b580615c9566f | [
"CECILL-B"
] | null | null | null | samples/essai_nisyscfg.py | lcarde/pymanip | d6f0b90b678d6f508d86d2d3ba3b580615c9566f | [
"CECILL-B"
] | null | null | null | samples/essai_nisyscfg.py | lcarde/pymanip | d6f0b90b678d6f508d86d2d3ba3b580615c9566f | [
"CECILL-B"
] | null | null | null | from pprint import pprint
from pymanip.nisyscfg import print_resources, daqmx_devices, scope_devices
if __name__ == '__main__':
print('All resources:')
print_resources()
print('DAQmx devices:', daqmx_devices())
print('Scope devices:', scope_devices()) | 27.4 | 74 | 0.722628 | 32 | 274 | 5.75 | 0.4375 | 0.195652 | 0.206522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164234 | 274 | 10 | 75 | 27.4 | 0.803493 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0.857143 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
86e9057c4108be254aa73b121f3e55f9ede0bfcc | 1,582 | py | Python | exercise_customization_database/models.py | itsClay/Exercise-Customization-Database | 512370115d66b21e1b958a38fad16a1eccd3fcd7 | [
"MIT"
] | null | null | null | exercise_customization_database/models.py | itsClay/Exercise-Customization-Database | 512370115d66b21e1b958a38fad16a1eccd3fcd7 | [
"MIT"
] | 4 | 2015-06-03T16:21:57.000Z | 2015-06-08T16:50:23.000Z | exercise_customization_database/models.py | itsClay/Exercise-Customization-Database | 512370115d66b21e1b958a38fad16a1eccd3fcd7 | [
"MIT"
] | null | null | null | from django.db import models
from pygments.lexers import get_all_lexers
from pygments.styles import get_all_styles
from django.contrib.auth.models import User
# Create your models here.
class UserProfile(models.Model):
user = models.OneToOneField(User)
def __unicode__(self):
return '{}'.format(self.user.username... | 36.790698 | 88 | 0.757269 | 210 | 1,582 | 5.528571 | 0.285714 | 0.129199 | 0.155039 | 0.206718 | 0.410853 | 0.323859 | 0.246339 | 0.246339 | 0.172265 | 0.172265 | 0 | 0.016186 | 0.10177 | 1,582 | 42 | 89 | 37.666667 | 0.800844 | 0.015171 | 0 | 0.09375 | 0 | 0 | 0.022494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
86ebc11e68a495e343a8339373a298328902b320 | 6,817 | py | Python | tests/unit/test_source/test_owl_source.py | kevinschaper/kgx | 4c129428131047af4506a93fe8dc54fb92a7c702 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_source/test_owl_source.py | kevinschaper/kgx | 4c129428131047af4506a93fe8dc54fb92a7c702 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_source/test_owl_source.py | kevinschaper/kgx | 4c129428131047af4506a93fe8dc54fb92a7c702 | [
"BSD-3-Clause"
] | null | null | null | import os
import pprint
from kgx.source import OwlSource
from tests import RESOURCE_DIR
def test_read_owl1():
"""
Read an OWL ontology using OwlSource.
"""
s = OwlSource()
g = s.parse(
os.path.join(RESOURCE_DIR, 'goslim_generic.owl'),
provided_by="GO slim generic",
knowled... | 34.085 | 93 | 0.609799 | 885 | 6,817 | 4.60452 | 0.148023 | 0.020614 | 0.047117 | 0.057423 | 0.752147 | 0.731534 | 0.683436 | 0.646626 | 0.631166 | 0.60908 | 0 | 0.077104 | 0.25231 | 6,817 | 199 | 94 | 34.256281 | 0.722386 | 0.044301 | 0 | 0.730061 | 0 | 0 | 0.347657 | 0.02265 | 0 | 0 | 0 | 0 | 0.392638 | 1 | 0.02454 | false | 0 | 0.02454 | 0 | 0.04908 | 0.01227 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
86f1485975bd49b1ef8c9fcc9993131406ec104a | 703 | py | Python | tests/test_Anchor.py | CherryKitten/mre | f46d20a3ec682c5a3d8a5af0b9bc17f24593cbc5 | [
"MIT"
] | null | null | null | tests/test_Anchor.py | CherryKitten/mre | f46d20a3ec682c5a3d8a5af0b9bc17f24593cbc5 | [
"MIT"
] | null | null | null | tests/test_Anchor.py | CherryKitten/mre | f46d20a3ec682c5a3d8a5af0b9bc17f24593cbc5 | [
"MIT"
] | null | null | null | import unittest
from mre import Regex, Quantifier, Anchor
class TestAnchor(unittest.TestCase):
def setUp(self):
"""Inicia novo objeto em todo os testes.
"""
self.regex = Regex(Quantifier(Regex.DIGIT, 4), '-', Quantifier(Regex.WORD_CHARS, 1, without_maximum=True), '.txt')
def test_Anch... | 31.954545 | 122 | 0.614509 | 89 | 703 | 4.752809 | 0.47191 | 0.085106 | 0.047281 | 0.07565 | 0.250591 | 0.1513 | 0 | 0 | 0 | 0 | 0 | 0.007421 | 0.233286 | 703 | 21 | 123 | 33.47619 | 0.777365 | 0.184922 | 0 | 0 | 0 | 0 | 0.078467 | 0.038321 | 0 | 0 | 0 | 0.047619 | 0.181818 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
86f98b2e587ba2664425afb158e6dc79213f8617 | 10,466 | py | Python | scitbx/math/tests/tst_periodogram.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | scitbx/math/tests/tst_periodogram.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | scitbx/math/tests/tst_periodogram.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env cctbx.python
#
# Copyright (C) (2016) STFC Rutherford Appleton Laboratory, UK.
#
# Author: David Waterman.
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
#
from __future__ import division
from scitbx.array_family import flex
f... | 39.643939 | 79 | 0.458723 | 792 | 10,466 | 6.010101 | 0.430556 | 0.015126 | 0.012605 | 0.020168 | 0.128992 | 0.116807 | 0.084874 | 0.060924 | 0.060924 | 0.060924 | 0 | 0.619847 | 0.476209 | 10,466 | 263 | 80 | 39.794677 | 0.248449 | 0.060482 | 0 | 0.048458 | 0 | 0 | 0.001461 | 0 | 0 | 0 | 0 | 0 | 0.026432 | 0 | null | null | 0 | 0.017621 | null | null | 0.013216 | 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 |
810852ded410792a00423237820200f3fa7583f6 | 5,674 | py | Python | airflow/ti_deps/deps/base_ti_dep.py | KarthikKothareddy/AirFlow | faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 6 | 2016-04-20T20:40:43.000Z | 2022-02-20T10:32:00.000Z | airflow/ti_deps/deps/base_ti_dep.py | KarthikKothareddy/AirFlow | faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 13 | 2018-11-30T18:18:32.000Z | 2021-02-19T17:04:12.000Z | airflow/ti_deps/deps/base_ti_dep.py | KarthikKothareddy/AirFlow | faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 9 | 2017-08-24T15:47:44.000Z | 2022-02-14T03:30:49.000Z | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | 38.337838 | 90 | 0.681354 | 758 | 5,674 | 4.980211 | 0.266491 | 0.05298 | 0.022252 | 0.035232 | 0.405033 | 0.365828 | 0.365828 | 0.326093 | 0.326093 | 0.299073 | 0 | 0.00119 | 0.259253 | 5,674 | 147 | 91 | 38.598639 | 0.896978 | 0.551815 | 0 | 0.148936 | 0 | 0 | 0.078265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0.148936 | 0.06383 | 0.106383 | 0.553191 | 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 | 1 | 0 | 0 | 0 | 3 |
811ad1b4b2a4bbb3ab2fdc83e2d26cdb3b2a3b59 | 256 | py | Python | sails/assets.py | blurks/sails | 8cc8545d6af25f392e3137a83787174c55542c59 | [
"Apache-2.0"
] | 2 | 2016-03-30T23:49:44.000Z | 2019-10-28T12:49:05.000Z | sails/assets.py | blurks/sails | 8cc8545d6af25f392e3137a83787174c55542c59 | [
"Apache-2.0"
] | 2 | 2017-08-12T12:20:09.000Z | 2018-09-10T06:39:32.000Z | sails/assets.py | blurks/sails | 8cc8545d6af25f392e3137a83787174c55542c59 | [
"Apache-2.0"
] | 2 | 2016-03-30T23:49:46.000Z | 2021-12-07T01:36:25.000Z | import pathlib
from clld.web.assets import environment
import sails
environment.append_path(
str(pathlib.Path(sails.__file__).parent.joinpath('static')), url='/sails:static/')
environment.load_path = list(reversed(environment.load_path))
| 23.272727 | 87 | 0.753906 | 32 | 256 | 5.8125 | 0.59375 | 0.16129 | 0.204301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 256 | 10 | 88 | 25.6 | 0.830357 | 0 | 0 | 0 | 0 | 0 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
812454ea7668fdc6dd955f70d709aa41f13f0050 | 158 | py | Python | aiocloudflare/api/accounts/secondary_dns/masters/masters.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 2 | 2021-09-14T13:20:55.000Z | 2022-02-24T14:18:24.000Z | aiocloudflare/api/accounts/secondary_dns/masters/masters.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 46 | 2021-09-08T08:39:45.000Z | 2022-03-29T12:31:05.000Z | aiocloudflare/api/accounts/secondary_dns/masters/masters.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 1 | 2021-12-30T23:02:23.000Z | 2021-12-30T23:02:23.000Z | from aiocloudflare.commons.auth import Auth
class Masters(Auth):
_endpoint1 = "accounts"
_endpoint2 = "secondary_dns/masters"
_endpoint3 = None
| 19.75 | 43 | 0.734177 | 17 | 158 | 6.588235 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.183544 | 158 | 7 | 44 | 22.571429 | 0.844961 | 0 | 0 | 0 | 0 | 0 | 0.183544 | 0.132911 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
812ce87021b231539ac050a7ebabceedf5b0f78e | 262 | py | Python | djexperience/bookstore/mixins.py | rg3915/django-experience-2016 | 76adaa55c537f3b9fa48b601d4a97fd6e04371c0 | [
"MIT"
] | 1 | 2022-01-01T22:19:49.000Z | 2022-01-01T22:19:49.000Z | djexperience/bookstore/mixins.py | rg3915/django-experience-2016 | 76adaa55c537f3b9fa48b601d4a97fd6e04371c0 | [
"MIT"
] | null | null | null | djexperience/bookstore/mixins.py | rg3915/django-experience-2016 | 76adaa55c537f3b9fa48b601d4a97fd6e04371c0 | [
"MIT"
] | null | null | null | class NameSearchMixin(object):
def get_queryset(self):
queryset = super(NameSearchMixin, self).get_queryset()
q = self.request.GET.get('search_box')
if q:
return queryset.filter(name__icontains=q)
return queryset
| 29.111111 | 62 | 0.648855 | 30 | 262 | 5.5 | 0.566667 | 0.133333 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251908 | 262 | 8 | 63 | 32.75 | 0.841837 | 0 | 0 | 0 | 0 | 0 | 0.038168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8138f820c86aba1b611480d67fa61d876f2c1946 | 139 | py | Python | tests/snippets/os_open.py | nficca/RustPython | ac370260108f961af41c36afc200a8de954f59b6 | [
"MIT"
] | null | null | null | tests/snippets/os_open.py | nficca/RustPython | ac370260108f961af41c36afc200a8de954f59b6 | [
"MIT"
] | null | null | null | tests/snippets/os_open.py | nficca/RustPython | ac370260108f961af41c36afc200a8de954f59b6 | [
"MIT"
] | null | null | null | import os
assert os.open('README.md', 0) > 0
try:
os.open('DOES_NOT_EXIST', 0)
assert False
except FileNotFoundError:
pass
| 12.636364 | 34 | 0.661871 | 21 | 139 | 4.285714 | 0.714286 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.223022 | 139 | 10 | 35 | 13.9 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | true | 0.142857 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
813cb59a88fa6a61388ddee18aa95579a6b17604 | 2,054 | py | Python | flask_validation_extended/exceptions.py | iml1111/flask-validate-extended | 55a252aea8b7792450a85dd4c94806b8b9aaff28 | [
"MIT"
] | 4 | 2021-02-28T14:27:52.000Z | 2022-01-19T19:38:43.000Z | flask_validation_extended/exceptions.py | iml1111/flask-validate-extended | 55a252aea8b7792450a85dd4c94806b8b9aaff28 | [
"MIT"
] | null | null | null | flask_validation_extended/exceptions.py | iml1111/flask-validate-extended | 55a252aea8b7792450a85dd4c94806b8b9aaff28 | [
"MIT"
] | 1 | 2022-01-19T19:38:51.000Z | 2022-01-19T19:38:51.000Z |
class InvalidHeaderName(Exception):
def __str__(self):
return '"header_name" must be a str.'
class InvalidAnnotation(Exception):
def __init__(self, param):
self.param = param
def __str__(self):
return (
'"annotation" is invalid. '
f'{self.param} must be ... | 23.340909 | 68 | 0.594937 | 239 | 2,054 | 4.841004 | 0.225941 | 0.051858 | 0.08643 | 0.138289 | 0.536733 | 0.333621 | 0.297321 | 0.297321 | 0.297321 | 0.297321 | 0 | 0 | 0.291139 | 2,054 | 88 | 69 | 23.340909 | 0.794643 | 0 | 0 | 0.491228 | 0 | 0 | 0.321811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245614 | false | 0 | 0 | 0.175439 | 0.596491 | 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 |
8141d8d369c770a2f27e0ee635c790ab2ba57487 | 183 | py | Python | tests/app/utils/test_time.py | NewAcropolis/api | 61ffe14cb64407ffe1f58d0e970703bf07d60ea3 | [
"MIT"
] | 1 | 2018-10-12T15:04:31.000Z | 2018-10-12T15:04:31.000Z | tests/app/utils/test_time.py | NewAcropolis/api | 61ffe14cb64407ffe1f58d0e970703bf07d60ea3 | [
"MIT"
] | 169 | 2017-11-07T00:45:25.000Z | 2022-03-12T00:08:59.000Z | tests/app/utils/test_time.py | NewAcropolis/api | 61ffe14cb64407ffe1f58d0e970703bf07d60ea3 | [
"MIT"
] | 1 | 2019-08-15T14:51:31.000Z | 2019-08-15T14:51:31.000Z | from app.utils.time import make_ordinal
class WhenMakingOrdinal:
def it_returns_an_ordinal_correctly(self):
ordinal = make_ordinal(11)
assert ordinal == '11th'
| 20.333333 | 46 | 0.721311 | 23 | 183 | 5.478261 | 0.782609 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.20765 | 183 | 8 | 47 | 22.875 | 0.841379 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8143165622583753f9cbd9d89bc0be59feb32f5f | 199 | py | Python | setup.py | AlexPraefectus/aiohttp-jwtlogin | e71238dc11c6bcc123b3488c4c1129e87f1aa697 | [
"BSD-3-Clause"
] | null | null | null | setup.py | AlexPraefectus/aiohttp-jwtlogin | e71238dc11c6bcc123b3488c4c1129e87f1aa697 | [
"BSD-3-Clause"
] | null | null | null | setup.py | AlexPraefectus/aiohttp-jwtlogin | e71238dc11c6bcc123b3488c4c1129e87f1aa697 | [
"BSD-3-Clause"
] | 1 | 2021-12-30T21:40:43.000Z | 2021-12-30T21:40:43.000Z | from setuptools import setup
setup(
name='aiohttp-jwtlogin',
version='0.1',
packages=['aiohttp_jwtlogin',],
license='BSD 3-Clause',
long_description=open('README.md').read(),
)
| 18.090909 | 46 | 0.658291 | 24 | 199 | 5.375 | 0.875 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.170854 | 199 | 10 | 47 | 19.9 | 0.763636 | 0 | 0 | 0 | 0 | 0 | 0.281407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 |
d497c3397723471088b8111354998b24d79828f4 | 2,762 | py | Python | app/__init__.py | ivall/mikroblog | f92a7b95e4bb0ced67b35ddfb9b2212d44be7774 | [
"MIT"
] | 9 | 2020-05-02T12:15:08.000Z | 2021-02-02T19:35:18.000Z | app/__init__.py | ivall/mikroblog | f92a7b95e4bb0ced67b35ddfb9b2212d44be7774 | [
"MIT"
] | 2 | 2020-05-02T12:49:46.000Z | 2020-05-20T13:07:20.000Z | app/__init__.py | ivall/mikroblog | f92a7b95e4bb0ced67b35ddfb9b2212d44be7774 | [
"MIT"
] | 2 | 2020-05-09T09:35:29.000Z | 2021-02-02T19:26:34.000Z | from flask import Flask
from flask_mysqldb import MySQL
from flask_mail import Mail
from flask_socketio import SocketIO
from logging import FileHandler, WARNING
from flask_limiter import Limiter
from werkzeug.exceptions import RequestEntityTooLarge
from app.utils.errors import ratelimit_handler
mysql = MySQL()
mail = ... | 37.324324 | 67 | 0.805576 | 347 | 2,762 | 6.097983 | 0.207493 | 0.10397 | 0.151229 | 0.219282 | 0.162571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005034 | 0.136857 | 2,762 | 73 | 68 | 37.835616 | 0.88255 | 0 | 0 | 0 | 0 | 0 | 0.006517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0.031746 | 0.412698 | 0 | 0.444444 | 0.507937 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
d4ad7b61c5ab8c98692b2c36d79890c465fed904 | 175 | py | Python | python/arms/bernoulli.py | skaidmd/Study_Bandits | 02471926b5a5a3b568c8028a6234af9f85f99d37 | [
"MIT"
] | null | null | null | python/arms/bernoulli.py | skaidmd/Study_Bandits | 02471926b5a5a3b568c8028a6234af9f85f99d37 | [
"MIT"
] | null | null | null | python/arms/bernoulli.py | skaidmd/Study_Bandits | 02471926b5a5a3b568c8028a6234af9f85f99d37 | [
"MIT"
] | null | null | null | import random
class BernoulliArm():
def __init__(self, p):
self.p = p
def draw(self):
if random.random() > self.p:
return 0.0
else:
return 1.0
| 14.583333 | 32 | 0.577143 | 26 | 175 | 3.730769 | 0.538462 | 0.154639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.302857 | 175 | 11 | 33 | 15.909091 | 0.762295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d4c5b2a6949469c6728438d9381e2eac5ad97864 | 325 | py | Python | articles/views.py | kiarashkarimi/DjangoBlog | d65e7a524edcad500d2d27b1b3c30bd055d45eb5 | [
"MIT"
] | 2 | 2020-11-29T08:11:34.000Z | 2021-01-06T20:47:31.000Z | articles/views.py | kiarashkarimi/DjangoBlog | d65e7a524edcad500d2d27b1b3c30bd055d45eb5 | [
"MIT"
] | null | null | null | articles/views.py | kiarashkarimi/DjangoBlog | d65e7a524edcad500d2d27b1b3c30bd055d45eb5 | [
"MIT"
] | null | null | null | from django.shortcuts import render, HttpResponse
from . import models
def articles_list(request):
articles = models.Article.objects.all().order_by('date')
args = {'articles': articles}
return render(request, 'articles/articleslist.html', args)
def articles_detail(request, slug):
return HttpResponse(s... | 29.545455 | 62 | 0.747692 | 39 | 325 | 6.153846 | 0.589744 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 325 | 10 | 63 | 32.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.116923 | 0.08 | 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 |
d4d2f0b289074dedf9e320984a523ac5b1d71723 | 19,497 | py | Python | tests/src/python/test_qgsrendercontext.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/python/test_qgsrendercontext.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/python/test_qgsrendercontext.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsRenderContext.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
... | 48.022167 | 222 | 0.693799 | 2,098 | 19,497 | 6.404671 | 0.13775 | 0.120339 | 0.121158 | 0.075463 | 0.743023 | 0.724343 | 0.715487 | 0.696435 | 0.659225 | 0.646722 | 0 | 0.07515 | 0.212392 | 19,497 | 405 | 223 | 48.140741 | 0.799883 | 0.119147 | 0 | 0.650847 | 0 | 0 | 0.00651 | 0.002346 | 0 | 0 | 0 | 0 | 0.315254 | 1 | 0.033898 | false | 0 | 0.020339 | 0 | 0.057627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4d48caaa7e7274a497a19c6df32123b9f379db5 | 568 | py | Python | lambda_handlers/validators/http/tests/test_jsonschema_validator.py | renovate-tests/lambda-handlers | 0b14013f19b597524a8d50f7ea8813ee726c584c | [
"Apache-2.0"
] | null | null | null | lambda_handlers/validators/http/tests/test_jsonschema_validator.py | renovate-tests/lambda-handlers | 0b14013f19b597524a8d50f7ea8813ee726c584c | [
"Apache-2.0"
] | null | null | null | lambda_handlers/validators/http/tests/test_jsonschema_validator.py | renovate-tests/lambda-handlers | 0b14013f19b597524a8d50f7ea8813ee726c584c | [
"Apache-2.0"
] | null | null | null | import pytest
from lambda_handlers.validators.http.http_validator import HttpValidator
from lambda_handlers.validators.jsonschema_validator import JSONSchemaValidator
from lambda_handlers.validators.http.jsonschema_validator import (
HttpJSONSchemaValidator,
)
@pytest.fixture(scope='session')
def validator() -> ... | 28.4 | 79 | 0.816901 | 52 | 568 | 8.788462 | 0.461538 | 0.065646 | 0.118162 | 0.183807 | 0.140044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119718 | 568 | 19 | 80 | 29.894737 | 0.914 | 0 | 0 | 0 | 0 | 0 | 0.012324 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.307692 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d4f523f2325f6864712aa28871e9e330ee930bee | 21,199 | py | Python | pycatia/space_analyses_interfaces/distance.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | pycatia/space_analyses_interfaces/distance.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | pycatia/space_analyses_interfaces/distance.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! usr/bin/python3.6
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... | 33.020249 | 116 | 0.433841 | 1,585 | 21,199 | 5.743849 | 0.127445 | 0.048001 | 0.021749 | 0.031634 | 0.592926 | 0.546134 | 0.509446 | 0.454525 | 0.410589 | 0.364785 | 0 | 0.040512 | 0.506297 | 21,199 | 641 | 117 | 33.071763 | 0.829352 | 0.640785 | 0 | 0.260417 | 1 | 0 | 0.140229 | 0.069617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.260417 | false | 0 | 0.0625 | 0.010417 | 0.510417 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d4fcd26a18646db3ce8d941e95ded9341b33fad6 | 2,001 | py | Python | ckcore/tests/core/parse_util_test.py | mesosphere/cloudkeeper | 11be262df5874c1033cfec9964bba1596cab6a36 | [
"Apache-2.0"
] | 99 | 2020-04-15T22:56:34.000Z | 2021-06-13T15:04:55.000Z | ckcore/tests/core/parse_util_test.py | mesosphere/cloudkeeper | 11be262df5874c1033cfec9964bba1596cab6a36 | [
"Apache-2.0"
] | null | null | null | ckcore/tests/core/parse_util_test.py | mesosphere/cloudkeeper | 11be262df5874c1033cfec9964bba1596cab6a36 | [
"Apache-2.0"
] | 14 | 2020-04-14T22:13:59.000Z | 2021-04-05T16:42:31.000Z | import pytest
from parsy import ParseError
from core.parse_util import integer_dp, float_dp, json_value_p, unquoted_string_dp, unquoted_string_p, variable_p
def test_variable_p() -> None:
assert variable_p.parse("foo.bla.bar") == "foo.bla.bar"
assert variable_p.parse("foo.bla.bar[*]") == "foo.bla.bar[*]"
... | 43.5 | 113 | 0.647676 | 321 | 2,001 | 3.834891 | 0.165109 | 0.092608 | 0.121852 | 0.168968 | 0.704305 | 0.581641 | 0.49472 | 0.49472 | 0.468725 | 0.468725 | 0 | 0.11806 | 0.144928 | 2,001 | 45 | 114 | 44.466667 | 0.601403 | 0 | 0 | 0 | 0 | 0 | 0.24088 | 0.056972 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.111111 | true | 0 | 0.083333 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be16c356e41421099e89481da016297ce9e3214e | 675 | py | Python | gap_finder/coordinate.py | Beastrock/gaps_finder | 165c37eb3415db53a13b46bed50a3db27e8e42d0 | [
"MIT"
] | null | null | null | gap_finder/coordinate.py | Beastrock/gaps_finder | 165c37eb3415db53a13b46bed50a3db27e8e42d0 | [
"MIT"
] | null | null | null | gap_finder/coordinate.py | Beastrock/gaps_finder | 165c37eb3415db53a13b46bed50a3db27e8e42d0 | [
"MIT"
] | null | null | null | from collections import namedtuple
BaseCoordinate = namedtuple('Coordinate', ['x', 'y', 'z'])
# noinspection PyInitNewSignature,PyArgumentList,PyArgumentList,PyArgumentList
class Coordinate(BaseCoordinate):
"""
Объект для координаты от класс namedtuple BaseCoordinate.
Удобно инициализировать и распаковыв... | 22.5 | 78 | 0.644444 | 81 | 675 | 5.17284 | 0.432099 | 0.023866 | 0.0358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01518 | 0.219259 | 675 | 29 | 79 | 23.275862 | 0.779886 | 0.444444 | 0 | 0 | 0 | 0 | 0.039514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
be1adab93fad582c26933c7466f629fa2087a5e5 | 43 | py | Python | settings.example.py | Che931/telegram-app-example | e1bf89ffc3641b026f4483ebd43a7b411eae2d30 | [
"Unlicense"
] | 1 | 2020-03-31T06:14:37.000Z | 2020-03-31T06:14:37.000Z | settings.example.py | Che931/telegram-app-example | e1bf89ffc3641b026f4483ebd43a7b411eae2d30 | [
"Unlicense"
] | null | null | null | settings.example.py | Che931/telegram-app-example | e1bf89ffc3641b026f4483ebd43a7b411eae2d30 | [
"Unlicense"
] | null | null | null | API_ID = ""
API_HASH = ""
CHANNEL_NAME = "" | 14.333333 | 17 | 0.604651 | 6 | 43 | 3.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 3 | 17 | 14.333333 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be2355ba0c0095ca4f6de3c7fe8b793a2c692485 | 734 | py | Python | pyroll/core/roll_pass/base_plugins/siebel_contact.py | pyroll-project/pyroll-core | f59094d58c2f7493ddc6345b3afc4700ca259681 | [
"BSD-3-Clause"
] | null | null | null | pyroll/core/roll_pass/base_plugins/siebel_contact.py | pyroll-project/pyroll-core | f59094d58c2f7493ddc6345b3afc4700ca259681 | [
"BSD-3-Clause"
] | null | null | null | pyroll/core/roll_pass/base_plugins/siebel_contact.py | pyroll-project/pyroll-core | f59094d58c2f7493ddc6345b3afc4700ca259681 | [
"BSD-3-Clause"
] | null | null | null | import sys
import numpy as np
from ..roll_pass import RollPass
from ...roll import Roll
@RollPass.Roll.hookimpl
def contact_length(roll_pass: RollPass, roll: Roll):
"""
Contact length between rolls and stock calculated using Siebel's approach
"""
height_change = roll_pass.in_profile.height - roll_pas... | 28.230769 | 95 | 0.746594 | 104 | 734 | 5.057692 | 0.384615 | 0.106464 | 0.076046 | 0.087452 | 0.422053 | 0.307985 | 0.190114 | 0.190114 | 0.190114 | 0 | 0 | 0.004862 | 0.159401 | 734 | 25 | 96 | 29.36 | 0.84765 | 0.197548 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.666667 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
be28a269c06bc032d89374332aaf002d535b3511 | 325 | py | Python | invenio_app_rdm/communities_ui/__init__.py | tzubaki/invenio-app-rdm | 0e04b87acfcd916e6c38222ae03d302246881d1e | [
"MIT"
] | null | null | null | invenio_app_rdm/communities_ui/__init__.py | tzubaki/invenio-app-rdm | 0e04b87acfcd916e6c38222ae03d302246881d1e | [
"MIT"
] | null | null | null | invenio_app_rdm/communities_ui/__init__.py | tzubaki/invenio-app-rdm | 0e04b87acfcd916e6c38222ae03d302246881d1e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2019-2022 CERN.
# Copyright (C) 2019-2022 Northwestern University.
# Copyright (C) 2022 TU Wien.
#
# Invenio App RDM is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Communtiies UI module... | 32.5 | 76 | 0.698462 | 49 | 325 | 4.632653 | 0.795918 | 0.132159 | 0.123348 | 0.15859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079245 | 0.184615 | 325 | 9 | 77 | 36.111111 | 0.777358 | 0.932308 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be2d01fcd46e3d5deeb065ae461b73aeb39010b8 | 2,894 | py | Python | test/explore/explore-dataset.py | patharanordev/novel-view-synthesis | effe2c122f05824123d50476b88f1afb49da0fe5 | [
"MIT"
] | null | null | null | test/explore/explore-dataset.py | patharanordev/novel-view-synthesis | effe2c122f05824123d50476b88f1afb49da0fe5 | [
"MIT"
] | null | null | null | test/explore/explore-dataset.py | patharanordev/novel-view-synthesis | effe2c122f05824123d50476b88f1afb49da0fe5 | [
"MIT"
] | null | null | null | import h5py
from PIL import Image
data = None
obj_brand = "product" # "shapenet"
object_category_name = "product"
filename = "../../datasets/{}/data_{}.hdf5".format(obj_brand, object_category_name)
f = h5py.File(filename, "r")
# List all groups
keys = list(f.keys())
print("Example keys (sampling first 10-keys): %s\n... | 38.586667 | 83 | 0.830339 | 242 | 2,894 | 9.42562 | 0.260331 | 0.260412 | 0.015783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.468635 | 0.06358 | 2,894 | 75 | 84 | 38.586667 | 0.373063 | 0.787837 | 0 | 0 | 0 | 0 | 0.198925 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
07919f8c5646203317f24c246a9be544898b9598 | 122,426 | py | Python | generated/python/proto-google-cloud-pubsub-v1/google/cloud/proto/pubsub/v1/pubsub_pb2.py | landrito/api-client-staging | 140c312c9335af160efce5b37842c995308e0148 | [
"BSD-3-Clause"
] | 18 | 2016-12-08T20:47:57.000Z | 2022-01-29T19:36:04.000Z | generated/python/proto-google-cloud-pubsub-v1/google/cloud/proto/pubsub/v1/pubsub_pb2.py | landrito/api-client-staging | 140c312c9335af160efce5b37842c995308e0148 | [
"BSD-3-Clause"
] | 252 | 2016-09-21T20:51:36.000Z | 2021-03-25T23:02:36.000Z | generated/python/proto-google-cloud-pubsub-v1/google/cloud/proto/pubsub/v1/pubsub_pb2.py | landrito/api-client-staging | 140c312c9335af160efce5b37842c995308e0148 | [
"BSD-3-Clause"
] | 37 | 2016-09-19T21:13:16.000Z | 2022-01-29T19:36:07.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/proto/pubsub/v1/pubsub.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... | 45.818114 | 8,855 | 0.74454 | 14,321 | 122,426 | 6.162977 | 0.051812 | 0.032178 | 0.049807 | 0.0247 | 0.759166 | 0.718264 | 0.62768 | 0.593791 | 0.580603 | 0.570258 | 0 | 0.027286 | 0.145051 | 122,426 | 2,671 | 8,856 | 45.835268 | 0.815951 | 0.163339 | 0 | 0.609569 | 1 | 0.013876 | 0.207545 | 0.158417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032536 | false | 0.000478 | 0.008134 | 0 | 0.046411 | 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 |
0793877c9bf9fac24af8a96fbd5f8cc78716867a | 316 | py | Python | modern/tests/test_installed/test_conan.py | WalkerWaqi/conan-docker-tools | d792249561435030b8e04ef89dd00cafa07e3b4c | [
"MIT"
] | null | null | null | modern/tests/test_installed/test_conan.py | WalkerWaqi/conan-docker-tools | d792249561435030b8e04ef89dd00cafa07e3b4c | [
"MIT"
] | null | null | null | modern/tests/test_installed/test_conan.py | WalkerWaqi/conan-docker-tools | d792249561435030b8e04ef89dd00cafa07e3b4c | [
"MIT"
] | null | null | null | def test_conan_version(container, expected):
out, err = container.exec(['conan', '--version'])
assert out.strip() == f'Conan version {expected.conan}', f"out: '{out}' err: '{err}'"
# TODO: Add more tests here:
# * default profiles exists, and it has proper libcxx value
# * python version used by Conan
| 39.5 | 89 | 0.670886 | 44 | 316 | 4.772727 | 0.659091 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174051 | 316 | 7 | 90 | 45.142857 | 0.804598 | 0.376582 | 0 | 0 | 0 | 0 | 0.357513 | 0 | 0 | 0 | 0 | 0.142857 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0796572e8ba59331f77dbc6216b6d5a6a45e1748 | 389 | py | Python | eventlet_raft/cmds.py | jason-ni/eventlet-raft | 12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b | [
"Apache-2.0"
] | 3 | 2015-05-22T05:30:29.000Z | 2016-01-06T10:14:31.000Z | eventlet_raft/cmds.py | jason-ni/eventlet-raft | 12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b | [
"Apache-2.0"
] | null | null | null | eventlet_raft/cmds.py | jason-ni/eventlet-raft | 12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b | [
"Apache-2.0"
] | null | null | null | from msgpack import packb
from . import settings
def get_client_register_cmd():
return packb({'op': settings.STM_OP_REG})
def get_client_update_cmd(key, value):
return packb({
'op': settings.STM_OP_SET,
'key': key,
'value': value,
})
def get_client_query_cmd(key):
return p... | 16.913043 | 45 | 0.614396 | 52 | 389 | 4.307692 | 0.365385 | 0.080357 | 0.160714 | 0.28125 | 0.348214 | 0.348214 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25964 | 389 | 22 | 46 | 17.681818 | 0.777778 | 0 | 0 | 0.4 | 0 | 0 | 0.043702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0.2 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
079b5d29c494b7154c0b1477deec5454c85a9696 | 1,130 | py | Python | aws_lambda_powertools/shared/functions.py | huonw/aws-lambda-powertools-python | 4211796703c54f358835cc983fd2f3a342cc5094 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | aws_lambda_powertools/shared/functions.py | huonw/aws-lambda-powertools-python | 4211796703c54f358835cc983fd2f3a342cc5094 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | aws_lambda_powertools/shared/functions.py | huonw/aws-lambda-powertools-python | 4211796703c54f358835cc983fd2f3a342cc5094 | [
"Apache-2.0",
"MIT-0"
] | 1 | 2021-05-13T11:35:12.000Z | 2021-05-13T11:35:12.000Z | from distutils.util import strtobool
from typing import Any, Union
def resolve_truthy_env_var_choice(env: Any, choice: bool = None) -> bool:
"""Pick explicit choice over truthy env value, if available, otherwise return truthy env value
NOTE: Environment variable should be resolved by the caller.
Paramet... | 26.27907 | 98 | 0.666372 | 142 | 1,130 | 5.253521 | 0.309859 | 0.032172 | 0.032172 | 0.040214 | 0.656836 | 0.656836 | 0.656836 | 0.656836 | 0.571046 | 0.571046 | 0 | 0 | 0.258407 | 1,130 | 42 | 99 | 26.904762 | 0.890215 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07a100bf6a381cb774ba913d7f1d1199d73f7b56 | 2,906 | py | Python | python_scripts/cross_validation_ex_02.py | zahramor/scikit-learn | 89640fec224b6b77ea129017650fd5d78aa8f0d7 | [
"CC-BY-4.0"
] | null | null | null | python_scripts/cross_validation_ex_02.py | zahramor/scikit-learn | 89640fec224b6b77ea129017650fd5d78aa8f0d7 | [
"CC-BY-4.0"
] | null | null | null | python_scripts/cross_validation_ex_02.py | zahramor/scikit-learn | 89640fec224b6b77ea129017650fd5d78aa8f0d7 | [
"CC-BY-4.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.11.5
# kernelspec:
# display_name: Python 3
# name: python3
# ---
# %% [markdown]
# # 📝 Exercise M7.01
#
# In this e... | 29.958763 | 99 | 0.728493 | 403 | 2,906 | 5.230769 | 0.468983 | 0.029886 | 0.043169 | 0.056452 | 0.201139 | 0.177419 | 0.093928 | 0.093928 | 0.093928 | 0.093928 | 0 | 0.005797 | 0.168961 | 2,906 | 96 | 100 | 30.270833 | 0.866667 | 0.884377 | 0 | 0 | 0 | 0 | 0.194553 | 0.155642 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.