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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b263bd18402beb3b2f9d628014049711f3d56a6a | 5,473 | py | Python | assignment_3/starter_code_torch/starter_code_torch/code/policy.py | pranav-s/Stanford_CS234_RL_2021 | e45a2cb759014b574ea2ccd675dfd319fe0af45d | [
"MIT"
] | 2 | 2021-09-13T04:03:01.000Z | 2021-09-15T00:42:53.000Z | assignment_3/starter_code_torch/starter_code_torch/code/policy.py | pranav-s/Stanford_CS234_RL_2021 | e45a2cb759014b574ea2ccd675dfd319fe0af45d | [
"MIT"
] | null | null | null | assignment_3/starter_code_torch/starter_code_torch/code/policy.py | pranav-s/Stanford_CS234_RL_2021 | e45a2cb759014b574ea2ccd675dfd319fe0af45d | [
"MIT"
] | 2 | 2021-09-13T04:03:04.000Z | 2022-01-10T06:20:10.000Z | import torch
import torch.nn as nn
import torch.distributions as ptd
from network_utils import np2torch, device
class BasePolicy:
def action_distribution(self, observations):
"""
Args:
observations: torch.Tensor of shape [batch size, dim(observation space)]
Returns:
... | 41.462121 | 92 | 0.526768 | 535 | 5,473 | 5.323364 | 0.308411 | 0.02809 | 0.021067 | 0.02809 | 0.311447 | 0.242275 | 0.231742 | 0.206461 | 0.124298 | 0.124298 | 0 | 0.003284 | 0.276631 | 5,473 | 132 | 93 | 41.462121 | 0.71609 | 0.482733 | 0 | 0.28125 | 0 | 0 | 0.00437 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.21875 | false | 0 | 0.125 | 0 | 0.5625 | 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 |
b268af6baaa850069415d0ace1016dd1f40b7eab | 1,371 | py | Python | venv/Lib/site-packages/statsmodels/tsa/arima/datasets/brockwell_davis_2002/data/dowj.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 6,931 | 2015-01-01T11:41:55.000Z | 2022-03-31T17:03:24.000Z | venv/Lib/site-packages/statsmodels/tsa/arima/datasets/brockwell_davis_2002/data/dowj.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 6,137 | 2015-01-01T00:33:45.000Z | 2022-03-31T22:53:17.000Z | venv/Lib/site-packages/statsmodels/tsa/arima/datasets/brockwell_davis_2002/data/dowj.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 2,608 | 2015-01-02T21:32:31.000Z | 2022-03-31T07:38:30.000Z | """
Dow-Jones Utilities Index, Aug.28--Dec.18, 1972.
Dataset described in [1]_ and included as a part of the ITSM2000 software [2]_.
Downloaded on April 22, 2019 from:
http://www.springer.com/cda/content/document/cda_downloaddocument/ITSM2000.zip
See also https://finance.yahoo.com/quote/%5EDJU/history?period1=8382240... | 44.225806 | 129 | 0.664478 | 265 | 1,371 | 3.426415 | 0.577358 | 0.022026 | 0.035242 | 0.039648 | 0.068282 | 0.068282 | 0.068282 | 0 | 0 | 0 | 0 | 0.377472 | 0.151714 | 1,371 | 30 | 130 | 45.7 | 0.403267 | 0.487965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2764b9e3c01c282f928ae89e973f533a36f3990 | 231 | py | Python | PKI/testAsn1.py | lostFox/autoRunSomething | 519f2ebca6e2c78aa3caeed2e88b8f92403a8b46 | [
"BSD-3-Clause"
] | null | null | null | PKI/testAsn1.py | lostFox/autoRunSomething | 519f2ebca6e2c78aa3caeed2e88b8f92403a8b46 | [
"BSD-3-Clause"
] | 1 | 2020-04-28T07:54:19.000Z | 2020-05-23T17:57:43.000Z | PKI/testAsn1.py | lostFox/autoRunSomething | 519f2ebca6e2c78aa3caeed2e88b8f92403a8b46 | [
"BSD-3-Clause"
] | null | null | null | import asn1tools
foo = asn1tools.compile_files('sequence.asn', 'oer')
# encoded = foo.encode('Signature', ('sm2Signature', 0xABCD))
encoded = foo.encode('SignedDataPayload', {'data': 0x08, 'extDataHash': 0x16})
print(encoded) | 38.5 | 79 | 0.714286 | 25 | 231 | 6.56 | 0.76 | 0.121951 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0.108225 | 231 | 6 | 80 | 38.5 | 0.747573 | 0.255411 | 0 | 0 | 0 | 0 | 0.283133 | 0 | 0 | 0 | 0.048193 | 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 |
b291f66420de2779247e9852e08d31a603d92ecf | 9,503 | py | Python | src/localization/sampling.py | anindex/auto_localization | e8acc6fb4a4221115e2d4f9ba87fd077ad741b70 | [
"MIT"
] | 1 | 2020-09-03T14:29:27.000Z | 2020-09-03T14:29:27.000Z | src/localization/sampling.py | anindex/auto_localization | e8acc6fb4a4221115e2d4f9ba87fd077ad741b70 | [
"MIT"
] | null | null | null | src/localization/sampling.py | anindex/auto_localization | e8acc6fb4a4221115e2d4f9ba87fd077ad741b70 | [
"MIT"
] | 2 | 2019-09-26T15:20:37.000Z | 2021-07-14T11:00:49.000Z | import numpy as np
from utils.structures import mesh
from scipy.stats import gaussian_kde
from geometry_msgs.msg import PoseArray
def resampling_wheel_pose_array(pose_array,weights,nsamples=None):
if nsamples is None:
nsamples = len(pose_array.poses)
resampled_pose_array = PoseArray()
resampled_w... | 35.996212 | 122 | 0.616332 | 1,570 | 9,503 | 3.573248 | 0.131847 | 0.035294 | 0.012478 | 0.02139 | 0.764171 | 0.723529 | 0.704635 | 0.687522 | 0.673975 | 0.662923 | 0 | 0.035019 | 0.248764 | 9,503 | 263 | 123 | 36.13308 | 0.750805 | 0.262864 | 0 | 0.660714 | 0 | 0 | 0.019631 | 0 | 0 | 0 | 0 | 0.003802 | 0 | 1 | 0.029762 | false | 0 | 0.02381 | 0 | 0.083333 | 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 |
b292e7ed5310881eefd3b08fc9e8d7dd488f83e0 | 992 | py | Python | utils/tools.py | psunlpgroup/Summ-N | 3285317e7bbb24519bc709de52d7b45c732a8a9c | [
"MIT"
] | null | null | null | utils/tools.py | psunlpgroup/Summ-N | 3285317e7bbb24519bc709de52d7b45c732a8a9c | [
"MIT"
] | null | null | null | utils/tools.py | psunlpgroup/Summ-N | 3285317e7bbb24519bc709de52d7b45c732a8a9c | [
"MIT"
] | null | null | null | import importlib
import os
import sys
def get_dataloader(loader):
Loader = importlib.import_module('dataset_loader.{}'.format(loader)).Loader
return Loader
def get_model(model):
Model = importlib.import_module('models.{}'.format(model)).Model
return Model
def get_constructor(constructor):
Cons... | 23.619048 | 83 | 0.740927 | 117 | 992 | 6 | 0.367521 | 0.106838 | 0.119658 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001198 | 0.158266 | 992 | 42 | 84 | 23.619048 | 0.839521 | 0 | 0 | 0 | 0 | 0 | 0.035247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.034483 | 0.310345 | 0 | 0.655172 | 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 |
b295231578efbfbfb5a444d5f6ad69cc9ea9c0f3 | 1,396 | py | Python | tests/test_ints.py | albatrossen/binarydataclass | 6d0c1d498b9b5240d40705cbd0a9910b3a28afff | [
"MIT"
] | null | null | null | tests/test_ints.py | albatrossen/binarydataclass | 6d0c1d498b9b5240d40705cbd0a9910b3a28afff | [
"MIT"
] | null | null | null | tests/test_ints.py | albatrossen/binarydataclass | 6d0c1d498b9b5240d40705cbd0a9910b3a28afff | [
"MIT"
] | null | null | null | from binarydataclass import (
from_bytes,
Uint8,
Uint16,
Uint32,
Uint64,
Int8,
Int16,
Int32,
Int64,
binaryfield,
int_decoder,
)
from dataclasses import dataclass
@dataclass
class PointWithTypes:
a: Uint8
b: Uint16
c: Uint32
d: Uint64
e: Int8
f: Int16... | 25.381818 | 132 | 0.654011 | 206 | 1,396 | 4.354369 | 0.247573 | 0.200669 | 0.240803 | 0.267559 | 0.548495 | 0.548495 | 0.283166 | 0.283166 | 0.222965 | 0.222965 | 0 | 0.129964 | 0.206304 | 1,396 | 54 | 133 | 25.851852 | 0.679603 | 0 | 0 | 0.130435 | 0 | 0.043478 | 0.17192 | 0.17192 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.478261 | 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 |
b2a1687ed4b041218202b677fc6f8a4e86018442 | 2,585 | py | Python | designate_interop_tempest_plugin/common/models.py | designate-dns/designate-interop-tempest-plugin | 9f63fe0bbaddea25bbde0315aab3348c0d3a225d | [
"Apache-2.0"
] | 15 | 2016-04-22T10:00:44.000Z | 2020-01-08T02:36:34.000Z | designate_interop_tempest_plugin/common/models.py | designate-dns/designate-interop-tempest-plugin | 9f63fe0bbaddea25bbde0315aab3348c0d3a225d | [
"Apache-2.0"
] | null | null | null | designate_interop_tempest_plugin/common/models.py | designate-dns/designate-interop-tempest-plugin | 9f63fe0bbaddea25bbde0315aab3348c0d3a225d | [
"Apache-2.0"
] | 10 | 2016-04-14T16:35:07.000Z | 2019-03-18T14:47:36.000Z | """
Copyright 2015 Rackspace
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
dist... | 29.375 | 79 | 0.637911 | 354 | 2,585 | 4.423729 | 0.375706 | 0.038314 | 0.033206 | 0.043423 | 0.212005 | 0.192848 | 0.155811 | 0.155811 | 0.155811 | 0.155811 | 0 | 0.008887 | 0.259961 | 2,585 | 87 | 80 | 29.712644 | 0.809723 | 0.365571 | 0 | 0.454545 | 0 | 0 | 0.011264 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 1 | 0.295455 | false | 0 | 0 | 0.204545 | 0.590909 | 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 |
b2ad2f6ba80c0b860b88095f733e43696a7ffe64 | 718 | py | Python | turngen/test_mcts.py | amrohendawi/AlphaZero-implementation | 42103e63308ba256208b6dd6ddcbef2e797e9932 | [
"MIT"
] | null | null | null | turngen/test_mcts.py | amrohendawi/AlphaZero-implementation | 42103e63308ba256208b6dd6ddcbef2e797e9932 | [
"MIT"
] | null | null | null | turngen/test_mcts.py | amrohendawi/AlphaZero-implementation | 42103e63308ba256208b6dd6ddcbef2e797e9932 | [
"MIT"
] | null | null | null | import montecarlo as mc
import state as s
import numpy as np
import alphazero.NeuralNet as nn
def main():
monteCarlo = mc.MCTS(2)
nnet = nn.NeuralNet()
board = np.array([ -1, 1, 1, 1, 1, 1, 1,-1,
0, 1, 1, 1, 1, 1, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0,
... | 27.615385 | 63 | 0.4039 | 114 | 718 | 2.473684 | 0.254386 | 0.234043 | 0.340426 | 0.439716 | 0.216312 | 0.216312 | 0.173759 | 0.120567 | 0.120567 | 0.120567 | 0 | 0.170426 | 0.44429 | 718 | 26 | 64 | 27.615385 | 0.536341 | 0 | 0 | 0.190476 | 0 | 0 | 0.011127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 0.047619 | 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 |
a23a8bb5a93657130233a14f9ff1c18abb766e55 | 930 | py | Python | tgpy/context.py | tm-a-t/TGPy | 4509454b9956187a77ffad6ee37c97f861e2e17f | [
"MIT"
] | 14 | 2021-10-29T20:30:33.000Z | 2022-03-29T23:41:41.000Z | tgpy/context.py | tm-a-t/TGPy | 4509454b9956187a77ffad6ee37c97f861e2e17f | [
"MIT"
] | 14 | 2021-10-30T12:34:07.000Z | 2022-02-01T10:56:17.000Z | tgpy/context.py | tm-a-t/TGPy | 4509454b9956187a77ffad6ee37c97f861e2e17f | [
"MIT"
] | 5 | 2021-10-30T19:57:04.000Z | 2022-02-03T17:54:12.000Z | from contextvars import ContextVar
from typing import Optional
from telethon.tl.custom import Message
class Context:
__print_output: ContextVar[str]
__msg: ContextVar[Optional[Message]]
def __init__(self):
self.__msg = ContextVar('msg')
self.__print_output = ContextVar('print_output', de... | 25.833333 | 72 | 0.633333 | 118 | 930 | 4.694915 | 0.338983 | 0.138989 | 0.108303 | 0.064982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245161 | 930 | 35 | 73 | 26.571429 | 0.789174 | 0 | 0 | 0.076923 | 0 | 0 | 0.034409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.115385 | 0.115385 | 0.576923 | 0.269231 | 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 |
a24180887d3288e51f9c32edfa0ea69ef1f789fa | 3,435 | py | Python | tests/tensortrade/unit/feed/api/float/test_operations.py | nicomon24/tensortrade | 870ae06a4440045edde4f5306e64264bd33d5b67 | [
"Apache-2.0"
] | 3,081 | 2020-01-12T13:42:13.000Z | 2022-03-27T18:09:31.000Z | tests/tensortrade/unit/feed/api/float/test_operations.py | nicomon24/tensortrade | 870ae06a4440045edde4f5306e64264bd33d5b67 | [
"Apache-2.0"
] | 257 | 2020-01-15T03:14:29.000Z | 2022-03-31T04:19:14.000Z | tests/tensortrade/unit/feed/api/float/test_operations.py | nicomon24/tensortrade | 870ae06a4440045edde4f5306e64264bd33d5b67 | [
"Apache-2.0"
] | 804 | 2020-01-12T12:22:22.000Z | 2022-03-28T13:41:59.000Z |
import pandas as pd
from tensortrade.feed import Stream
from tests.utils.ops import assert_op
def test_add():
# (left, right) : (Stream, Stream)
s1 = Stream.source([3, -4, 6, -7, 2, -6], dtype="float")
s2 = Stream.source([-3, 4, -6, 7, -2, 6], dtype="float")
w1 = s1.add(s2).rename("w1")
w2 = ... | 21.46875 | 60 | 0.507715 | 567 | 3,435 | 3.028219 | 0.093474 | 0.019802 | 0.104834 | 0.025626 | 0.780431 | 0.748398 | 0.740245 | 0.675597 | 0.660454 | 0.602796 | 0 | 0.114364 | 0.254148 | 3,435 | 159 | 61 | 21.603774 | 0.555816 | 0.131878 | 0 | 0.283951 | 0 | 0 | 0.043156 | 0 | 0 | 0 | 0 | 0 | 0.197531 | 1 | 0.135802 | false | 0 | 0.037037 | 0 | 0.17284 | 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 |
a244fdd163c310fb9738239aa521f14a5eff4ed0 | 155 | py | Python | feedback/urls.py | VisheshJain112/dj_app | f7aa286d56ab5726e6cc3a20bcc808a859980ddd | [
"MIT"
] | null | null | null | feedback/urls.py | VisheshJain112/dj_app | f7aa286d56ab5726e6cc3a20bcc808a859980ddd | [
"MIT"
] | null | null | null | feedback/urls.py | VisheshJain112/dj_app | f7aa286d56ab5726e6cc3a20bcc808a859980ddd | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('feedback', views.feedback, name="feedback")
]
| 19.375 | 53 | 0.741935 | 20 | 155 | 5.75 | 0.55 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154839 | 155 | 7 | 54 | 22.142857 | 0.877863 | 0 | 0 | 0 | 0 | 0 | 0.103226 | 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 |
a2769dbd91312fbd0094f91a6835e3a41fbeee49 | 1,307 | py | Python | hooks/post_gen_project.py | cokelaer/sequana_pipeline_template | 7d90031b992a146a7cb6fa3ad232606bb1e73cc0 | [
"BSD-3-Clause"
] | null | null | null | hooks/post_gen_project.py | cokelaer/sequana_pipeline_template | 7d90031b992a146a7cb6fa3ad232606bb1e73cc0 | [
"BSD-3-Clause"
] | null | null | null | hooks/post_gen_project.py | cokelaer/sequana_pipeline_template | 7d90031b992a146a7cb6fa3ad232606bb1e73cc0 | [
"BSD-3-Clause"
] | 2 | 2021-07-06T14:38:38.000Z | 2021-07-20T09:23:46.000Z | import re
import sys
# THIS SHOULD REMAINS PURE PYTHON
class Colors:
"""
::
color = Colors()
print(color.failed("msg"))
"""
PURPLE = "\033[95m"
BLUE = "\033[94m"
GREEN = "\033[92m"
WARNING = "\033[93m"
FAIL = "\033[91m"
ENDC = "\033[0m"
BOLD = "\033[1m"
... | 21.080645 | 104 | 0.611324 | 172 | 1,307 | 4.622093 | 0.348837 | 0.079245 | 0.14717 | 0.192453 | 0.132075 | 0.132075 | 0.132075 | 0.132075 | 0.132075 | 0 | 0 | 0.038223 | 0.259373 | 1,307 | 61 | 105 | 21.42623 | 0.783058 | 0.06733 | 0 | 0.090909 | 0 | 0 | 0.23406 | 0.057886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.060606 | 0.272727 | 0.878788 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
a27d0daf6360f6cf549c861fb39e7ae7ba2fc12f | 692 | py | Python | data/test/python/a27d0daf6360f6cf549c861fb39e7ae7ba2fc12f__init__.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/test/python/a27d0daf6360f6cf549c861fb39e7ae7ba2fc12f__init__.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/test/python/a27d0daf6360f6cf549c861fb39e7ae7ba2fc12f__init__.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | __all__ = ["_nsgroup", "association_api", "association_service_api", "codesystem_api",
"codesystem_service_api", "codesystemversion_api", "codesystemversion_service_api", "conceptdomain_api",
"conceptdomain_service_api", "conceptdomainbinding_api", "conceptdomainbinding_service_api",
"c... | 86.5 | 115 | 0.736994 | 69 | 692 | 6.73913 | 0.275362 | 0.27957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138728 | 692 | 7 | 116 | 98.857143 | 0.780201 | 0 | 0 | 0 | 0 | 0 | 0.726879 | 0.391619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a287cb7cd1f1568b81369480e21e2cafa0bad4b3 | 2,264 | py | Python | core/shape.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | 1 | 2018-05-15T04:00:17.000Z | 2018-05-15T04:00:17.000Z | core/shape.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | null | null | null | core/shape.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | null | null | null | import math
from core.bbox import BoundingBox
from core.differential_geometry import DifferentialGeometry
from core.ray import Ray
from core.transform import Transform
from maths.normal import Normal
from maths.point3d import Point3d
from maths.vector3d import Vector3d
class Shape:
def __init__(self,... | 32.342857 | 121 | 0.644876 | 284 | 2,264 | 5.052817 | 0.323944 | 0.033449 | 0.062718 | 0.069686 | 0.1777 | 0.1777 | 0.1777 | 0.057143 | 0 | 0 | 0 | 0.021403 | 0.257067 | 2,264 | 69 | 122 | 32.811594 | 0.831748 | 0.058304 | 0 | 0.142857 | 0 | 0 | 0.046161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.163265 | 0.122449 | 0.632653 | 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 |
a28b119c36cdd4c69aa950d7b7c25c1b67811a70 | 1,047 | py | Python | setup.py | shallyan/EmbeddingMachine | dcf4e8bf3f255f6b507f8156159d9c42bb9cdab7 | [
"Apache-2.0"
] | 2 | 2018-07-02T13:20:04.000Z | 2018-07-23T04:16:03.000Z | setup.py | shallyan/EmbeddingMachine | dcf4e8bf3f255f6b507f8156159d9c42bb9cdab7 | [
"Apache-2.0"
] | null | null | null | setup.py | shallyan/EmbeddingMachine | dcf4e8bf3f255f6b507f8156159d9c42bb9cdab7 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="EmbeddingMachine",
version="0.0.1",
author="WSDM@ICT",
author_email="xiaoyanict@foxmail.com",
description=("EmbeddingMachine is a toolkit for text and image embedding"),
license="Apache-2.0",
keywords="embedding models",
url="https://github.com/s... | 31.727273 | 77 | 0.630372 | 118 | 1,047 | 5.559322 | 0.644068 | 0.144817 | 0.190549 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03528 | 0.2149 | 1,047 | 32 | 78 | 32.71875 | 0.762774 | 0.04298 | 0 | 0 | 0 | 0 | 0.61 | 0.044 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 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 |
a28daa19bc0fe27336a8d224cb3d7c4b90cb16f5 | 1,505 | py | Python | asreview/models/balance/__init__.py | qubixes/automated-systematic-review | 742811a2d300a0cb5a9bd4d1fbada2be8ee86e71 | [
"MIT"
] | null | null | null | asreview/models/balance/__init__.py | qubixes/automated-systematic-review | 742811a2d300a0cb5a9bd4d1fbada2be8ee86e71 | [
"MIT"
] | null | null | null | asreview/models/balance/__init__.py | qubixes/automated-systematic-review | 742811a2d300a0cb5a9bd4d1fbada2be8ee86e71 | [
"MIT"
] | null | null | null | # Copyright 2019 The ASReview Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 45.606061 | 74 | 0.811296 | 215 | 1,505 | 5.646512 | 0.553488 | 0.069193 | 0.103789 | 0.144152 | 0.214168 | 0.16145 | 0.075783 | 0.075783 | 0 | 0 | 0 | 0.006135 | 0.133555 | 1,505 | 32 | 75 | 47.03125 | 0.924847 | 0.384718 | 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 |
a2b0d2cf6ecae9f934611a7ee00765d66b4db7a5 | 103 | py | Python | app/interfaces/i_scanner.py | heatonk/caldera_pathfinder | d12fde8636af32f02717b1289e55a7ca89f77585 | [
"Apache-2.0"
] | 71 | 2020-10-13T13:36:03.000Z | 2022-03-27T20:35:14.000Z | app/interfaces/i_scanner.py | heatonk/caldera_pathfinder | d12fde8636af32f02717b1289e55a7ca89f77585 | [
"Apache-2.0"
] | 23 | 2020-11-06T16:01:32.000Z | 2022-03-31T19:13:06.000Z | app/interfaces/i_scanner.py | heatonk/caldera_pathfinder | d12fde8636af32f02717b1289e55a7ca89f77585 | [
"Apache-2.0"
] | 19 | 2020-10-19T14:11:40.000Z | 2022-03-08T19:23:03.000Z | import abc
class ScannerInterface(abc.ABC):
@abc.abstractmethod
def scan(self):
pass
| 12.875 | 32 | 0.660194 | 12 | 103 | 5.666667 | 0.75 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252427 | 103 | 7 | 33 | 14.714286 | 0.883117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a2b474d33fa89e19185d6b059022c69eb276bb41 | 794 | py | Python | testing/test_websource/test_wy.py | NeoBert/liudengfeng-cnswd | a9ba636b86de001a75cd51e453a308755b5c1661 | [
"MIT"
] | 7 | 2019-05-23T17:38:16.000Z | 2021-06-26T13:23:01.000Z | testing/test_websource/test_wy.py | NeoBert/liudengfeng-cnswd | a9ba636b86de001a75cd51e453a308755b5c1661 | [
"MIT"
] | 11 | 2019-09-06T12:52:00.000Z | 2020-10-11T06:14:32.000Z | testing/test_websource/test_wy.py | NeoBert/liudengfeng-cnswd | a9ba636b86de001a75cd51e453a308755b5c1661 | [
"MIT"
] | 1 | 2019-07-24T11:56:06.000Z | 2019-07-24T11:56:06.000Z | from cnswd.websource.wy import fetch_history
import pandas as pd
def test_fetch_history_1():
"""测试历史股价"""
df = fetch_history('000001', '1990-01-01', '2019-11-24')
assert df.shape == (7041, 15)
assert df.iat[0, 0] == "'000001"
assert df.index[0] == pd.Timestamp('2019-11-22 00:00:00')
def test_fet... | 29.407407 | 61 | 0.61461 | 129 | 794 | 3.682171 | 0.317829 | 0.151579 | 0.075789 | 0.12 | 0.587368 | 0.587368 | 0.44 | 0.347368 | 0.347368 | 0.164211 | 0 | 0.239631 | 0.180101 | 794 | 26 | 62 | 30.538462 | 0.490015 | 0.032746 | 0 | 0.117647 | 0 | 0 | 0.207447 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2b5cfa14e181c2043b48ec4cf1ac40844e7496d | 744 | py | Python | overthewire/natas/natas26.py | GambuzX/Cybersecurity_Practice | 58ecc222816a1bda2742da9b2782cef25365692f | [
"MIT"
] | 1 | 2020-03-08T19:17:15.000Z | 2020-03-08T19:17:15.000Z | overthewire/natas/natas26.py | GambuzX/CTF_Practice | 58ecc222816a1bda2742da9b2782cef25365692f | [
"MIT"
] | null | null | null | overthewire/natas/natas26.py | GambuzX/CTF_Practice | 58ecc222816a1bda2742da9b2782cef25365692f | [
"MIT"
] | 1 | 2020-12-17T15:51:02.000Z | 2020-12-17T15:51:02.000Z | import requests
url = "http://natas26.natas.labs.overthewire.org"
user = "natas26"
pwd = "oGgWAJ7zcGT28vYazGo4rkhOPDhBu34T"
s = requests.session()
sid = "h4ck3d"
php_encoded_obj = "Tzo2OiJMb2dnZXIiOjM6e3M6MTU6IgBMb2dnZXIAbG9nRmlsZSI7czo0MjoiL3Zhci93d3cvbmF0YXMvbmF0YXMyNi9pbWcvbmF0YXMyN19wd2QucGhwIjtzOjE1OiIATG9nZ2V... | 41.333333 | 335 | 0.837366 | 63 | 744 | 9.793651 | 0.52381 | 0.032415 | 0.042139 | 0.025932 | 0.081037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088953 | 0.063172 | 744 | 18 | 336 | 41.333333 | 0.79627 | 0.056452 | 0 | 0 | 0 | 0 | 0.623395 | 0.495007 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2c1b34f8159e3a843810457ab4c5420d1a24eea | 1,203 | py | Python | lesleyloraine/apps/page/models.py | ninapavlich/lesleyloraine | 33bb44755208ef3dd879ea12d514671076085bcb | [
"MIT"
] | null | null | null | lesleyloraine/apps/page/models.py | ninapavlich/lesleyloraine | 33bb44755208ef3dd879ea12d514671076085bcb | [
"MIT"
] | null | null | null | lesleyloraine/apps/page/models.py | ninapavlich/lesleyloraine | 33bb44755208ef3dd879ea12d514671076085bcb | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from carbon.compounds.page.models import Page as BasePage
from carbon.compounds.page.models import PageContentBlock as BasePageContentBlock
from carbon.compounds.page.models import GlobalContentBlock as BaseGlobalContentBlock
from carbon.atoms.models.conten... | 32.513514 | 85 | 0.800499 | 139 | 1,203 | 6.877698 | 0.438849 | 0.075314 | 0.059623 | 0.072176 | 0.109833 | 0.109833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134663 | 1,203 | 37 | 86 | 32.513514 | 0.918348 | 0 | 0 | 0.076923 | 0 | 0 | 0.026578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.461538 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
a2d28524486859d283cdafe67280e81188b01ee7 | 7,363 | py | Python | twilio/rest/api/v2010/account/call/event.py | BrimmingDev/twilio-python | 3226b5fed92b3c2ce64f03e6b19fc4792ef7647f | [
"MIT"
] | 1,362 | 2015-01-04T10:25:18.000Z | 2022-03-24T10:07:08.000Z | twilio/rest/api/v2010/account/call/event.py | BrimmingDev/twilio-python | 3226b5fed92b3c2ce64f03e6b19fc4792ef7647f | [
"MIT"
] | 299 | 2015-01-30T09:52:39.000Z | 2022-03-31T23:03:02.000Z | env/lib/python3.9/site-packages/twilio/rest/api/v2010/account/call/event.py | giannicrivello/AudioShack_BE | b50ba91b6904ac069fc37c98a691729932297b6a | [
"MIT"
] | 622 | 2015-01-03T04:43:09.000Z | 2022-03-29T14:11:00.000Z | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import values
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
from twilio.base.page import Page
class EventList(ListRe... | 35.399038 | 101 | 0.633437 | 871 | 7,363 | 5.221584 | 0.185993 | 0.028144 | 0.034301 | 0.047493 | 0.576957 | 0.55277 | 0.528584 | 0.514072 | 0.471416 | 0.435576 | 0 | 0.014687 | 0.278691 | 7,363 | 207 | 102 | 35.570048 | 0.841649 | 0.528046 | 0 | 0.160714 | 1 | 0 | 0.103891 | 0.051395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232143 | false | 0 | 0.071429 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a2f8d2f421176605bd3c550a223a967a85d79e10 | 180 | py | Python | examples/soundex_usage.py | chinnichaitanya/spellwise | 93764a4fab7ba5575b161db61469fbd2d8ac62da | [
"MIT"
] | 8 | 2021-01-01T19:39:09.000Z | 2022-02-14T14:18:29.000Z | examples/soundex_usage.py | chinnichaitanya/spellwise | 93764a4fab7ba5575b161db61469fbd2d8ac62da | [
"MIT"
] | null | null | null | examples/soundex_usage.py | chinnichaitanya/spellwise | 93764a4fab7ba5575b161db61469fbd2d8ac62da | [
"MIT"
] | 2 | 2021-07-23T10:52:21.000Z | 2022-01-28T19:59:14.000Z | from spellwise import Soundex
suggester = Soundex()
suggester.add_from_path("examples/data/american-english")
suggestions = suggester.get_suggestions("hallo")
print(suggestions)
| 22.5 | 57 | 0.816667 | 21 | 180 | 6.857143 | 0.714286 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 180 | 7 | 58 | 25.714286 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
0c048ebb3f9ea419b8f1f8c5b225bc1299ba8ed8 | 302 | py | Python | jobshop_gym/environment/reward_wrappers.py | isse-augsburg/MATE | 4d8a8a535c0c2ef3c15af469acf30c4df7a44928 | [
"MIT"
] | null | null | null | jobshop_gym/environment/reward_wrappers.py | isse-augsburg/MATE | 4d8a8a535c0c2ef3c15af469acf30c4df7a44928 | [
"MIT"
] | null | null | null | jobshop_gym/environment/reward_wrappers.py | isse-augsburg/MATE | 4d8a8a535c0c2ef3c15af469acf30c4df7a44928 | [
"MIT"
] | null | null | null | import gym
class MakespanRewardWrapper(gym.RewardWrapper):
"""
Return the time needed to complete all jobs.
"""
def __init__(self, env):
super().__init__(env)
self._settings = env._settings
def reward(self, reward):
return [-r['makespan'] for r in reward] | 23.230769 | 48 | 0.635762 | 36 | 302 | 5.055556 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251656 | 302 | 13 | 49 | 23.230769 | 0.80531 | 0.145695 | 0 | 0 | 0 | 0 | 0.032922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0c110d616064835cf9664ce7418ea6ebfb9051a9 | 153 | py | Python | recipe/run_test.py | ReimarBauer/basemap-feedstock | b7d83146b220ac002416a7fbb369f2e9a4c43227 | [
"BSD-3-Clause"
] | 8 | 2019-03-24T02:14:53.000Z | 2020-11-21T14:24:34.000Z | recipe/run_test.py | ReimarBauer/basemap-feedstock | b7d83146b220ac002416a7fbb369f2e9a4c43227 | [
"BSD-3-Clause"
] | 86 | 2016-03-25T20:13:49.000Z | 2022-02-18T20:21:36.000Z | recipe/run_test.py | ReimarBauer/basemap-feedstock | b7d83146b220ac002416a7fbb369f2e9a4c43227 | [
"BSD-3-Clause"
] | 11 | 2016-03-25T18:13:22.000Z | 2020-01-22T17:08:53.000Z | import matplotlib
matplotlib.use('agg')
from mpl_toolkits.basemap import Basemap
m = Basemap(projection='ortho', lat_0=45, lon_0=-100, resolution='c')
| 21.857143 | 69 | 0.764706 | 23 | 153 | 4.956522 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050725 | 0.098039 | 153 | 6 | 70 | 25.5 | 0.775362 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 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 |
0c18d2854dcc55368c6055ce934762321352a20f | 1,095 | py | Python | pybible/classes/chapter.py | tonybaloney/pybible-cli | 04c12b6abf2a79a89fe607482e006e604f3c57db | [
"MIT"
] | null | null | null | pybible/classes/chapter.py | tonybaloney/pybible-cli | 04c12b6abf2a79a89fe607482e006e604f3c57db | [
"MIT"
] | null | null | null | pybible/classes/chapter.py | tonybaloney/pybible-cli | 04c12b6abf2a79a89fe607482e006e604f3c57db | [
"MIT"
] | null | null | null | import sys
class Chapter:
"""
A class used to represent a chapter from a book of the bible.
"""
def __init__(self, number: int, verses: tuple):
"""
Initialize a `Chapter` object.
:Parameters:
- `number`: integer containing the number of the chapter.
- ... | 24.333333 | 77 | 0.576256 | 128 | 1,095 | 4.710938 | 0.359375 | 0.099502 | 0.112769 | 0.046434 | 0.162521 | 0.092869 | 0 | 0 | 0 | 0 | 0 | 0.001339 | 0.317808 | 1,095 | 44 | 78 | 24.886364 | 0.80589 | 0.274886 | 0 | 0.086957 | 0 | 0 | 0.156727 | 0.030513 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.043478 | 0.130435 | 0.652174 | 0.043478 | 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 |
0c1a6e56cc6db4d63869e13bf0a99ca8e16cb2cd | 3,833 | py | Python | allocator.py | javicacheiro/resource-allocator | 027bbb4090c24c1d4d26c3bfb96059f84dbebbc6 | [
"MIT"
] | null | null | null | allocator.py | javicacheiro/resource-allocator | 027bbb4090c24c1d4d26c3bfb96059f84dbebbc6 | [
"MIT"
] | null | null | null | allocator.py | javicacheiro/resource-allocator | 027bbb4090c24c1d4d26c3bfb96059f84dbebbc6 | [
"MIT"
] | null | null | null | """Resource Allocation API"""
import kvstore
PREFIX = 'resources'
DISK_PREFIX = 'disks'
ADDRESS_PREFIX = 'networks'
class ResourceManager(object):
"""Resource Management base class"""
def __init__(self, endpoint='http://127.0.0.1:8500/v1/kv'):
self.endpoint = endpoint
self._kv = kvstore.Clie... | 35.165138 | 94 | 0.618576 | 463 | 3,833 | 4.930886 | 0.185745 | 0.043802 | 0.063075 | 0.038546 | 0.505913 | 0.359615 | 0.241349 | 0.241349 | 0.20806 | 0.137976 | 0 | 0.00419 | 0.252805 | 3,833 | 108 | 95 | 35.490741 | 0.792947 | 0.106705 | 0 | 0.088235 | 0 | 0 | 0.044767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.279412 | false | 0.014706 | 0.014706 | 0.147059 | 0.602941 | 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 |
0c1d952f3ea61ea8e813062af8c075cef229b0fc | 203 | py | Python | sol/sol_in1to20.py | igamberdievhasan/codingbat-notebooks | b0a41f22b9064efc7f7f7da55e8c99fc21ce364d | [
"Apache-2.0"
] | null | null | null | sol/sol_in1to20.py | igamberdievhasan/codingbat-notebooks | b0a41f22b9064efc7f7f7da55e8c99fc21ce364d | [
"Apache-2.0"
] | 6 | 2020-03-02T20:59:43.000Z | 2020-03-18T01:20:30.000Z | sol/sol_in1to20.py | igamberdievhasan/codingbat-notebooks | b0a41f22b9064efc7f7f7da55e8c99fc21ce364d | [
"Apache-2.0"
] | 1 | 2020-03-13T02:48:04.000Z | 2020-03-13T02:48:04.000Z | def in1to10(n, outside_mode):
if not outside_mode and n>=1 and n<=10:
return True
elif outside_mode:
if n<=1 or n>=10:
return True
else:
return False
else:
return False
| 18.454545 | 41 | 0.62069 | 34 | 203 | 3.617647 | 0.470588 | 0.268293 | 0.211382 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062937 | 0.295567 | 203 | 10 | 42 | 20.3 | 0.797203 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.5 | 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 |
0c24a05e84f1467964fd17621dcc88aacde45b8e | 210 | py | Python | tests/test_plotly.py | paultimothymooney/docker-python-2 | 15c3f923e2ccedb46e81bcb8177a67fc42d90bcc | [
"Apache-2.0"
] | 2,030 | 2015-04-14T15:44:41.000Z | 2022-03-29T18:06:53.000Z | tests/test_plotly.py | paultimothymooney/docker-python-2 | 15c3f923e2ccedb46e81bcb8177a67fc42d90bcc | [
"Apache-2.0"
] | 666 | 2015-04-14T20:14:30.000Z | 2022-03-29T12:59:21.000Z | tests/test_plotly.py | paultimothymooney/docker-python-2 | 15c3f923e2ccedb46e81bcb8177a67fc42d90bcc | [
"Apache-2.0"
] | 951 | 2015-05-07T18:26:08.000Z | 2022-03-27T08:46:05.000Z | import unittest
import plotly.graph_objs as go
class TestPlotly(unittest.TestCase):
def test_figure(self):
trace = {'x': [1, 2], 'y': [1, 3]}
data = [ trace ]
go.Figure(data=data)
| 21 | 42 | 0.595238 | 29 | 210 | 4.241379 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.257143 | 210 | 9 | 43 | 23.333333 | 0.762821 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
0c27288d94fefb7501b797711de9fa272b432d6c | 208 | py | Python | accounts/urls.py | prettyirrelevant/instagram-api-clone | 1af6066694a7bed60ab1ddd1141c0832efaccaf2 | [
"MIT"
] | null | null | null | accounts/urls.py | prettyirrelevant/instagram-api-clone | 1af6066694a7bed60ab1ddd1141c0832efaccaf2 | [
"MIT"
] | null | null | null | accounts/urls.py | prettyirrelevant/instagram-api-clone | 1af6066694a7bed60ab1ddd1141c0832efaccaf2 | [
"MIT"
] | null | null | null | from .views import RegisterView, LoginView
from django.urls import path
urlpatterns = [
path('register', RegisterView.as_view(), name='register'),
path('login', LoginView.as_view(), name='login'),
] | 26 | 62 | 0.711538 | 25 | 208 | 5.84 | 0.56 | 0.082192 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 208 | 8 | 63 | 26 | 0.811111 | 0 | 0 | 0 | 0 | 0 | 0.124402 | 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 |
0c2ad1f697b667beb0be0040e04c0a273bb6e332 | 251 | py | Python | report/models.py | rafimuhammad01/donasi-covid-19-2 | eee8fb28ce492639d900923c985bbb5e0a8ec07f | [
"Unlicense"
] | null | null | null | report/models.py | rafimuhammad01/donasi-covid-19-2 | eee8fb28ce492639d900923c985bbb5e0a8ec07f | [
"Unlicense"
] | null | null | null | report/models.py | rafimuhammad01/donasi-covid-19-2 | eee8fb28ce492639d900923c985bbb5e0a8ec07f | [
"Unlicense"
] | null | null | null | from django.db import models
# Create your models here.
class Report(models.Model):
name = models.CharField(max_length=100, null=True)
description = models.TextField(max_length=500, null=True)
def __str__(self):
return self.name
| 25.1 | 61 | 0.721116 | 35 | 251 | 5 | 0.714286 | 0.102857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.179283 | 251 | 9 | 62 | 27.888889 | 0.820388 | 0.095618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0c3174e975f8763558fe9b6ad1e1c56e819faa65 | 164 | py | Python | xinit_header.py | basicworld/xutils | a46f0661b712f60689cb43e0d952cfe1cbec756d | [
"MIT"
] | null | null | null | xinit_header.py | basicworld/xutils | a46f0661b712f60689cb43e0d952cfe1cbec756d | [
"MIT"
] | null | null | null | xinit_header.py | basicworld/xutils | a46f0661b712f60689cb43e0d952cfe1cbec756d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
"""
import os
import sys
reload(sys)
sys.setdefaultencoding('utf8') # 编译环境utf8
THIS_DIR = os.path.realpath(os.path.dirname(__file__))
| 16.4 | 54 | 0.682927 | 22 | 164 | 4.863636 | 0.727273 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.121951 | 164 | 9 | 55 | 18.222222 | 0.722222 | 0.182927 | 0 | 0 | 0 | 0 | 0.03252 | 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 |
0c5a55bf835f4ae0af875f07807103cb95a99ead | 342 | py | Python | boards/tests/conftest.py | alisonamerico/django-beginners-guide | 53431486b0d350d14ec7a289a9ab396b512c790a | [
"MIT"
] | null | null | null | boards/tests/conftest.py | alisonamerico/django-beginners-guide | 53431486b0d350d14ec7a289a9ab396b512c790a | [
"MIT"
] | null | null | null | boards/tests/conftest.py | alisonamerico/django-beginners-guide | 53431486b0d350d14ec7a289a9ab396b512c790a | [
"MIT"
] | null | null | null | import pytest
from model_bakery import baker
@pytest.fixture
def usuario_logado(db, django_user_model):
usuario_modelo = baker.make(django_user_model, username='morfeu', email='morfeu@email.com')
return usuario_modelo
def client_com_usuario_logado(usuario_logado, client):
client.force_login(usuario_loga... | 24.428571 | 95 | 0.795322 | 47 | 342 | 5.489362 | 0.489362 | 0.20155 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125731 | 342 | 13 | 96 | 26.307692 | 0.862876 | 0 | 0 | 0 | 0 | 0 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0c64c721f7af71e8c5e7fd62b72a353219be02a5 | 457 | py | Python | nmail/resources/common.py | allexlima/nMail | c1e2c96da702d1e3510a6f2547a5f379c7cf3a64 | [
"MIT"
] | null | null | null | nmail/resources/common.py | allexlima/nMail | c1e2c96da702d1e3510a6f2547a5f379c7cf3a64 | [
"MIT"
] | null | null | null | nmail/resources/common.py | allexlima/nMail | c1e2c96da702d1e3510a6f2547a5f379c7cf3a64 | [
"MIT"
] | 2 | 2017-09-05T23:27:21.000Z | 2017-11-01T03:03:11.000Z | from flask_restful import Resource
from werkzeug.contrib.cache import SimpleCache
cache = SimpleCache()
def caching(key, value):
cached = cache.get(key)
if cached is None:
cached = value
cache.set(key, cached, 30*60)
return cached
class Home(Resource):
def __init__(self):
se... | 19.041667 | 49 | 0.647702 | 58 | 457 | 5.017241 | 0.517241 | 0.113402 | 0.09622 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.256018 | 457 | 23 | 50 | 19.869565 | 0.844118 | 0 | 0 | 0.125 | 0 | 0 | 0.039387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a751e7cf3c2323f79050ff208c583f622e76c09d | 879 | py | Python | vtsapi/response.py | gomory-chvatal/vtube-studio-api | 2d6673796cb7f0b96e293f972ab807e89dddb3fb | [
"MIT"
] | null | null | null | vtsapi/response.py | gomory-chvatal/vtube-studio-api | 2d6673796cb7f0b96e293f972ab807e89dddb3fb | [
"MIT"
] | null | null | null | vtsapi/response.py | gomory-chvatal/vtube-studio-api | 2d6673796cb7f0b96e293f972ab807e89dddb3fb | [
"MIT"
] | null | null | null | # standard libraries
from datetime import datetime
import json
# local libraries
from vtsapi.exceptions import *
class VTSResponse(object):
"""Docstring goes here!"""
def __init__(self, payload):
self._payload = json.loads(payload)
self._id = int(self._payload['requestID'])
... | 21.975 | 62 | 0.63595 | 102 | 879 | 5.205882 | 0.343137 | 0.124294 | 0.131827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006154 | 0.260523 | 879 | 39 | 63 | 22.538462 | 0.810769 | 0.063709 | 0 | 0.192308 | 0 | 0 | 0.040441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.115385 | 0.192308 | 0.576923 | 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 |
a75594ebf0521da9e5fe54c2f3ded2ce7a0dfabf | 288 | py | Python | libs/yowsup/yowsup/yowsup/layers/network/layer_interface.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 22 | 2017-07-14T20:01:17.000Z | 2022-03-08T14:22:39.000Z | libs/yowsup/yowsup/yowsup/layers/network/layer_interface.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 6 | 2017-07-14T21:03:50.000Z | 2021-06-10T19:08:32.000Z | libs/yowsup/yowsup/yowsup/layers/network/layer_interface.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 13 | 2017-07-14T20:13:14.000Z | 2020-11-12T08:06:05.000Z | from yowsup.layers import YowLayerInterface
class YowNetworkLayerInterface(YowLayerInterface):
def connect(self):
self._layer.createConnection()
def disconnect(self):
self._layer.destroyConnection()
def getStatus(self):
return self._layer.getStatus() | 28.8 | 50 | 0.729167 | 27 | 288 | 7.666667 | 0.592593 | 0.130435 | 0.125604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184028 | 288 | 10 | 51 | 28.8 | 0.880851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
a760cbec8692c29cb24a7667f347ef9531608ab1 | 577 | py | Python | src/cache.py | mpavezb/CarND-Advanced-Lane-Lines | 54be9a169b8dc960cafd6ab288f95af054de4a34 | [
"MIT"
] | null | null | null | src/cache.py | mpavezb/CarND-Advanced-Lane-Lines | 54be9a169b8dc960cafd6ab288f95af054de4a34 | [
"MIT"
] | null | null | null | src/cache.py | mpavezb/CarND-Advanced-Lane-Lines | 54be9a169b8dc960cafd6ab288f95af054de4a34 | [
"MIT"
] | null | null | null | import pickle
import os
from .logger import Log
from .save import chmod_rw_all
class Cache:
def __init__(self, fname):
self.fname = "pickle/" + fname
def exists(self):
return os.path.isfile(self.fname)
def save(self, data):
Log.subsection("Saving data to pickle file: %s" % self.... | 24.041667 | 72 | 0.629116 | 83 | 577 | 4.277108 | 0.39759 | 0.202817 | 0.056338 | 0.084507 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247834 | 577 | 23 | 73 | 25.086957 | 0.817972 | 0 | 0 | 0 | 0 | 0 | 0.131716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.058824 | 0.647059 | 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 |
a76d3e74178ed9429a40bccebad0c01d701e8348 | 915 | py | Python | UNF/data/tokenizer.py | waterzxj/UNF | 5eda8e7c60116735f595f4b21b24547708b36cf5 | [
"Apache-2.0"
] | 86 | 2020-02-23T13:38:11.000Z | 2022-03-01T12:09:28.000Z | UNF/data/tokenizer.py | Dreamliking/UNF | 5eda8e7c60116735f595f4b21b24547708b36cf5 | [
"Apache-2.0"
] | 2 | 2020-04-20T08:33:05.000Z | 2020-05-13T13:43:08.000Z | UNF/data/tokenizer.py | Dreamliking/UNF | 5eda8e7c60116735f595f4b21b24547708b36cf5 | [
"Apache-2.0"
] | 14 | 2020-03-07T05:21:44.000Z | 2021-05-09T16:57:23.000Z | #coding:utf-8
"""
对分词的抽象
"""
class BaseTokenizer(object):
"""
Tokenize的基类
"""
def __init__(self):
pass
def __call__(self, x):
return self.tokenize(x)
def tokenize(self, x):
raise Exception("Not Implemented!")
class WhitespaceTokenizer(BaseTokenizer):
"""
空格切分... | 17.941176 | 60 | 0.593443 | 96 | 915 | 5.322917 | 0.4375 | 0.078278 | 0.086106 | 0.093933 | 0.086106 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001515 | 0.278689 | 915 | 50 | 61 | 18.3 | 0.772727 | 0.048087 | 0 | 0.208333 | 0 | 0 | 0.035452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.041667 | 0.041667 | 0.125 | 0.625 | 0.041667 | 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 |
a787b4165d6759763189fc8bd181cedb905bc4e3 | 105 | py | Python | ex112.py | RodrigoMoro3736/Python | 14ae88b81c252c1235ac0f904d0f77a8db870078 | [
"MIT"
] | null | null | null | ex112.py | RodrigoMoro3736/Python | 14ae88b81c252c1235ac0f904d0f77a8db870078 | [
"MIT"
] | null | null | null | ex112.py | RodrigoMoro3736/Python | 14ae88b81c252c1235ac0f904d0f77a8db870078 | [
"MIT"
] | null | null | null | from utilidadescev import dado, moeda
p = dado.leiaDinheiro('Digite o preço R$')
moeda.resumo(p, 35, 22)
| 26.25 | 42 | 0.742857 | 17 | 105 | 4.588235 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.133333 | 105 | 3 | 43 | 35 | 0.813187 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 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 |
a788506fc8ce187692a961b94b1f7edcab3e474a | 5,096 | py | Python | src/python/tests/core/bot/tasks/analyze_task_test.py | avineshwar/clusterfuzz | cd72fc66fb5cd4013196662c3564339a940e1c41 | [
"Apache-2.0"
] | null | null | null | src/python/tests/core/bot/tasks/analyze_task_test.py | avineshwar/clusterfuzz | cd72fc66fb5cd4013196662c3564339a940e1c41 | [
"Apache-2.0"
] | null | null | null | src/python/tests/core/bot/tasks/analyze_task_test.py | avineshwar/clusterfuzz | cd72fc66fb5cd4013196662c3564339a940e1c41 | [
"Apache-2.0"
] | 1 | 2020-04-25T16:37:10.000Z | 2020-04-25T16:37:10.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 42.823529 | 90 | 0.718603 | 623 | 5,096 | 5.64366 | 0.229535 | 0.077645 | 0.064846 | 0.081911 | 0.734357 | 0.71132 | 0.702787 | 0.672639 | 0.669511 | 0.638225 | 0 | 0.022959 | 0.170918 | 5,096 | 118 | 91 | 43.186441 | 0.809231 | 0.203493 | 0 | 0.582278 | 0 | 0 | 0.307384 | 0.123404 | 0 | 0 | 0 | 0 | 0.202532 | 1 | 0.063291 | false | 0 | 0.050633 | 0 | 0.126582 | 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 |
a7b7739af4f688d393b979c7da66715d86698c41 | 6,531 | py | Python | circle/tests.py | NickLowery/StoryCircles | e1d4c12973a6e369e52bca37d35c98e630953028 | [
"BSD-3-Clause"
] | null | null | null | circle/tests.py | NickLowery/StoryCircles | e1d4c12973a6e369e52bca37d35c98e630953028 | [
"BSD-3-Clause"
] | null | null | null | circle/tests.py | NickLowery/StoryCircles | e1d4c12973a6e369e52bca37d35c98e630953028 | [
"BSD-3-Clause"
] | null | null | null | import itertools
from django.test import TestCase
from .rules import validate_word, validate_title
from channels.testing import WebsocketCommunicator
from channels.db import database_sync_to_async
from storycircles.asgi import application as asgi_app
from asgiref.sync import async_to_sync, sync_to_async
from circle.mod... | 49.105263 | 112 | 0.613689 | 760 | 6,531 | 5.131579 | 0.173684 | 0.147692 | 0.277179 | 0.207692 | 0.560513 | 0.520256 | 0.511538 | 0.476154 | 0.381538 | 0.355897 | 0 | 0.016511 | 0.211759 | 6,531 | 132 | 113 | 49.477273 | 0.741064 | 0.08651 | 0 | 0.115385 | 0 | 0 | 0.1158 | 0 | 0 | 0 | 0 | 0 | 0.673077 | 1 | 0.144231 | false | 0 | 0.076923 | 0 | 0.240385 | 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 |
a7d3b334851e2f108ddd7d721f9bc1ab9325e113 | 1,348 | py | Python | entities/timespan.py | ktodorov/historical-ocr | d4d7bf0addf5ff98b7182c00ff716e79c97e050e | [
"MIT"
] | 9 | 2020-08-27T15:03:46.000Z | 2022-01-02T10:48:35.000Z | entities/timespan.py | ktodorov/historical-ocr | d4d7bf0addf5ff98b7182c00ff716e79c97e050e | [
"MIT"
] | 16 | 2020-09-12T17:37:59.000Z | 2020-11-18T10:36:32.000Z | src/entities/timespan.py | budh333/UnSilence_VOC | 3ba8f302f82df2d512d453c6b76dffb50d4f64db | [
"MIT"
] | 1 | 2022-03-08T16:16:52.000Z | 2022-03-08T16:16:52.000Z | class Timespan:
def __init__(
self,
days: int = 0,
hours: int = 0,
minutes: int = 0,
seconds: int = 0,
milliseconds: int = 0):
conv_days = days * 3600 * 24 * 1000
conv_hours = hours * 3600000
conv_minutes = minutes * 60... | 24.071429 | 88 | 0.583828 | 154 | 1,348 | 4.961039 | 0.155844 | 0.117801 | 0.085079 | 0.08377 | 0.125654 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0.062092 | 0.318991 | 1,348 | 55 | 89 | 24.509091 | 0.770153 | 0 | 0 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0 | 0 | 0.232558 | 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 |
ac2e15e15228823cd997885979e8cb9d3b672cbc | 676 | py | Python | libxlsxwriter/test/functional/test_default_row.py | White-116/xlsxd | b7f467cda76e93dd17bc7aaa2879e6c112ce4cf9 | [
"BSD-3-Clause"
] | 7 | 2019-07-24T14:25:45.000Z | 2022-03-06T04:29:39.000Z | libxlsxwriter/test/functional/test_default_row.py | White-116/xlsxd | b7f467cda76e93dd17bc7aaa2879e6c112ce4cf9 | [
"BSD-3-Clause"
] | 14 | 2019-07-03T11:03:05.000Z | 2022-01-18T13:55:13.000Z | libxlsxwriter/test/functional/test_default_row.py | White-116/xlsxd | b7f467cda76e93dd17bc7aaa2879e6c112ce4cf9 | [
"BSD-3-Clause"
] | 3 | 2019-08-06T21:35:29.000Z | 2021-07-08T08:11:34.000Z | ###############################################################################
#
# Tests for libxlsxwriter.
#
# Copyright 2014-2019, John McNamara, jmcnamara@cpan.org
#
import base_test_class
class TestCompareXLSXFiles(base_test_class.XLSXBaseTest):
"""
Test file created with libxlsxwriter against a file cre... | 25.037037 | 79 | 0.640533 | 80 | 676 | 5.0625 | 0.4125 | 0.217284 | 0.138272 | 0.138272 | 0.28642 | 0.28642 | 0.28642 | 0 | 0 | 0 | 0 | 0.042403 | 0.162722 | 676 | 26 | 80 | 26 | 0.673145 | 0.221893 | 0 | 0 | 0 | 0 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0 | 0.6 | 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 |
ac5685f919622af5e4a1e5863a8454778b2eaa3e | 2,917 | py | Python | python/DeepSeaVectorDraw/BezierCommand.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 5 | 2018-11-17T23:13:22.000Z | 2021-09-30T13:37:04.000Z | python/DeepSeaVectorDraw/BezierCommand.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | null | null | null | python/DeepSeaVectorDraw/BezierCommand.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 2 | 2019-09-23T12:23:35.000Z | 2020-04-07T05:31:06.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: DeepSeaVectorDraw
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class BezierCommand(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers... | 36.924051 | 125 | 0.675009 | 338 | 2,917 | 5.739645 | 0.236686 | 0.036082 | 0.037113 | 0.068041 | 0.458247 | 0.458247 | 0.394845 | 0.320619 | 0.276289 | 0.276289 | 0 | 0.018592 | 0.225574 | 2,917 | 79 | 126 | 36.924051 | 0.840195 | 0.162153 | 0 | 0.396552 | 1 | 0 | 0.00166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.103448 | 0.017241 | 0.637931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ac5af6cafee52170869a4befcf58d241b0347c9c | 420 | py | Python | tests/conftest.py | norayr/shcli | 8df49deeb8d777bcddf41d3afbf41e70e3569b41 | [
"MIT"
] | 6 | 2017-08-14T09:27:43.000Z | 2021-03-26T14:45:46.000Z | tests/conftest.py | norayr/shcli | 8df49deeb8d777bcddf41d3afbf41e70e3569b41 | [
"MIT"
] | null | null | null | tests/conftest.py | norayr/shcli | 8df49deeb8d777bcddf41d3afbf41e70e3569b41 | [
"MIT"
] | 2 | 2018-11-19T05:19:04.000Z | 2021-03-26T14:45:50.000Z | from unittest.mock import Mock
import pytest
@pytest.fixture(autouse=True)
def disable_network_calls(monkeypatch):
"""Disable network calls."""
monkeypatch.setattr("requests.post", Mock())
class MockResponse(str):
status_code = 200
text = ""
@staticmethod
def raise_for_s... | 21 | 72 | 0.666667 | 45 | 420 | 6.088889 | 0.666667 | 0.072993 | 0.138686 | 0.218978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.22381 | 420 | 19 | 73 | 22.105263 | 0.831288 | 0.052381 | 0 | 0 | 0 | 0 | 0.063776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.166667 | 0 | 0.583333 | 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 |
ac8277b30a0531e25515d4407e608a6ba2490d03 | 197 | py | Python | Assistant/urls.py | gauravdhingra99/English_Grammer_Asssitant | 8d4d870ac72cd1c276a45d6348207e2ac22eaf86 | [
"MIT"
] | null | null | null | Assistant/urls.py | gauravdhingra99/English_Grammer_Asssitant | 8d4d870ac72cd1c276a45d6348207e2ac22eaf86 | [
"MIT"
] | 7 | 2020-06-05T20:02:18.000Z | 2021-09-22T18:05:11.000Z | Assistant/urls.py | gauravdhingra99/English_Grammer_Asssitant | 8d4d870ac72cd1c276a45d6348207e2ac22eaf86 | [
"MIT"
] | 2 | 2019-12-04T10:19:38.000Z | 2020-11-06T06:32:52.000Z | from django.urls import path, include
from Assistant.views import GrammerCheckView, PosView
urlpatterns = [
path('check/', GrammerCheckView.as_view()),
path('pos/', PosView.as_view()),
]
| 21.888889 | 53 | 0.720812 | 23 | 197 | 6.086957 | 0.652174 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142132 | 197 | 8 | 54 | 24.625 | 0.828402 | 0 | 0 | 0 | 0 | 0 | 0.050761 | 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 |
3bb0dab67d8b968c4163c02423c58657494b1a68 | 662 | py | Python | b2sdk/v0/__init__.py | thegisexpert/b2-sdk-python | 9a4db689b5aeb905a5daa6375c5ebee8cdce9a00 | [
"MIT"
] | null | null | null | b2sdk/v0/__init__.py | thegisexpert/b2-sdk-python | 9a4db689b5aeb905a5daa6375c5ebee8cdce9a00 | [
"MIT"
] | null | null | null | b2sdk/v0/__init__.py | thegisexpert/b2-sdk-python | 9a4db689b5aeb905a5daa6375c5ebee8cdce9a00 | [
"MIT"
] | null | null | null | ######################################################################
#
# File: b2sdk/v0/__init__.py
#
# Copyright 2019 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
from b2sdk.v1 import *
from b2sd... | 34.842105 | 113 | 0.645015 | 75 | 662 | 5.546667 | 0.52 | 0.134615 | 0.185096 | 0.108173 | 0.262019 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.084592 | 662 | 18 | 114 | 36.777778 | 0.646865 | 0.196375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 |
3bbca6c6e8c8f300d4b49dffe7a938beef4a164a | 635 | py | Python | packages/syft/src/syft/core/node/common/node_table/entity.py | vishalbelsare/PySyft | fb04404fcfbef82fad1fb47407b35a24e9afb599 | [
"Apache-1.1"
] | 8,428 | 2017-08-10T09:17:49.000Z | 2022-03-31T08:20:14.000Z | packages/syft/src/syft/core/node/common/node_table/entity.py | vishalbelsare/PySyft | fb04404fcfbef82fad1fb47407b35a24e9afb599 | [
"Apache-1.1"
] | 4,779 | 2017-08-09T23:19:00.000Z | 2022-03-29T11:49:36.000Z | packages/syft/src/syft/core/node/common/node_table/entity.py | vishalbelsare/PySyft | fb04404fcfbef82fad1fb47407b35a24e9afb599 | [
"Apache-1.1"
] | 2,307 | 2017-08-10T08:52:12.000Z | 2022-03-30T05:36:07.000Z | # stdlib
from typing import Any
# third party
from sqlalchemy import Column
from sqlalchemy import LargeBinary
from sqlalchemy import String
# relative
from . import Base
from ..... import deserialize
from ..... import serialize
class Entity(Base):
__tablename__ = "entity"
name = Column(String(255), primar... | 22.678571 | 82 | 0.702362 | 81 | 635 | 5.382716 | 0.469136 | 0.09633 | 0.137615 | 0.09633 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01378 | 0.2 | 635 | 27 | 83 | 23.518519 | 0.844488 | 0.102362 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.117647 | false | 0 | 0.411765 | 0.058824 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3bd418211b2ced43946e682184ac407f03d62476 | 1,964 | py | Python | krogon/file_system.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | 1 | 2020-03-02T14:17:02.000Z | 2020-03-02T14:17:02.000Z | krogon/file_system.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | null | null | null | krogon/file_system.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | null | null | null | from typing import Callable, Optional, Any
import krogon.either as E
import os
import glob as gb
import tempfile
import glob
class FileSystem:
def __init__(self): pass
def with_temp_file(self, contents: str, filename: str, runner: Callable[[str], E.Either[Any, Any]]):
with tempfile.TemporaryDirectory... | 28.882353 | 104 | 0.636456 | 276 | 1,964 | 4.351449 | 0.23913 | 0.1199 | 0.069942 | 0.087427 | 0.096586 | 0.033306 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244908 | 1,964 | 67 | 105 | 29.313433 | 0.809845 | 0 | 0 | 0 | 0 | 0 | 0.003055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.354167 | false | 0.020833 | 0.125 | 0.208333 | 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 |
3be3ca5c01af5aea18b4308585afd716fe42c1e1 | 989 | py | Python | turbulette/apps/auth/exceptions.py | turbulette/turbulette | 32e2d0c18e4dd679a8bf9a3aa72eabe113328015 | [
"BSD-3-Clause"
] | 31 | 2020-12-21T23:55:14.000Z | 2022-03-04T12:57:10.000Z | turbulette/apps/auth/exceptions.py | turbulette/turbulette | 32e2d0c18e4dd679a8bf9a3aa72eabe113328015 | [
"BSD-3-Clause"
] | 57 | 2020-12-06T16:51:06.000Z | 2022-02-14T22:10:40.000Z | turbulette/apps/auth/exceptions.py | gazorby/turbulette | 32e2d0c18e4dd679a8bf9a3aa72eabe113328015 | [
"BSD-3-Clause"
] | 3 | 2020-12-02T17:29:04.000Z | 2021-04-13T16:02:30.000Z | """Exceptions raised when encoding/decoding JWTs."""
from turbulette.errors import BaseError, ErrorCode
class JWTDecodeError(BaseError):
error_code = ErrorCode.JWT_INVALID
class JWTInvalidSignature(BaseError):
error_code = ErrorCode.JWT_INVALID_SINATURE
class JWTExpired(BaseError):
error_code = Error... | 20.604167 | 52 | 0.800809 | 111 | 989 | 6.837838 | 0.369369 | 0.202899 | 0.26087 | 0.391304 | 0.440053 | 0.28195 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133468 | 989 | 47 | 53 | 21.042553 | 0.885648 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3bf95357834c88f95b8f39d40384539652950fe9 | 2,138 | py | Python | program/condition/and_cond.py | probing-lab/polar | 30a7ae05da5364fa65b1609f31f9b108113ab4ae | [
"MIT"
] | 2 | 2021-10-06T13:29:24.000Z | 2021-11-11T19:42:43.000Z | program/condition/and_cond.py | daneshvar-amrollahi/polar | b72254e1a8354e6a10135cd3990b8edfda02559e | [
"MIT"
] | 1 | 2022-01-26T15:58:28.000Z | 2022-01-28T13:47:28.000Z | program/condition/and_cond.py | daneshvar-amrollahi/polar | b72254e1a8354e6a10135cd3990b8edfda02559e | [
"MIT"
] | 2 | 2021-10-01T15:08:52.000Z | 2022-03-15T14:10:06.000Z | from .condition import Condition
from .true_cond import TrueCond
class And(Condition):
cond1: Condition
cond2: Condition
def __init__(self, cond1, cond2):
self.cond1 = cond1
self.cond2 = cond2
def simplify(self):
self.cond1 = self.cond1.simplify()
self.cond2 = self.co... | 31.441176 | 94 | 0.661833 | 285 | 2,138 | 4.736842 | 0.178947 | 0.14 | 0.077778 | 0.033333 | 0.168148 | 0.096296 | 0.096296 | 0.053333 | 0.053333 | 0 | 0 | 0.032278 | 0.231993 | 2,138 | 67 | 95 | 31.910448 | 0.789281 | 0 | 0 | 0.04 | 0 | 0 | 0.014967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.04 | 0.18 | 0.74 | 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 |
3bfb599a7065f6b5355ce4fbf610b7beb2ae29d0 | 566 | py | Python | fam_django/home/models.py | siddharth952/Fampay-yt | 3f73cb92b8ae803b4bba36e3cb4d6e6ceb90fe3d | [
"MIT"
] | null | null | null | fam_django/home/models.py | siddharth952/Fampay-yt | 3f73cb92b8ae803b4bba36e3cb4d6e6ceb90fe3d | [
"MIT"
] | null | null | null | fam_django/home/models.py | siddharth952/Fampay-yt | 3f73cb92b8ae803b4bba36e3cb4d6e6ceb90fe3d | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class Video(models.Model):
title = models.CharField(max_length=50)
description = models.TextField(max_length=2000)
publishTime = models.DateTimeField(defaul... | 37.733333 | 60 | 0.754417 | 74 | 566 | 5.635135 | 0.486486 | 0.107914 | 0.172662 | 0.230216 | 0.306954 | 0.177458 | 0.177458 | 0 | 0 | 0 | 0 | 0.031315 | 0.15371 | 566 | 15 | 61 | 37.733333 | 0.839248 | 0 | 0 | 0.153846 | 0 | 0 | 0.007055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0.076923 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ce013da4990afbb65b761d6f9a492f1bb44d3992 | 415 | py | Python | Python/creational_patterns/abstract_factory/list_factory/list_link.py | ploukareas/Design-Patterns | 8effde38d73ae9058c3028c97ef395644a90d55b | [
"BSD-3-Clause",
"MIT"
] | 28 | 2018-09-28T07:45:35.000Z | 2022-02-12T12:25:05.000Z | Python/creational_patterns/abstract_factory/list_factory/list_link.py | ploukareas/Design-Patterns | 8effde38d73ae9058c3028c97ef395644a90d55b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | Python/creational_patterns/abstract_factory/list_factory/list_link.py | ploukareas/Design-Patterns | 8effde38d73ae9058c3028c97ef395644a90d55b | [
"BSD-3-Clause",
"MIT"
] | 5 | 2021-05-10T23:19:55.000Z | 2022-03-04T20:26:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ˅
from creational_patterns.abstract_factory.factory.link import Link
# ˄
class ListLink(Link):
# ˅
# ˄
def __init__(self, name, url):
# ˅
super().__init__(name, url)
# ˄
def to_html(self):
# ˅
return ' <li><a ... | 12.96875 | 78 | 0.457831 | 55 | 415 | 3.472727 | 0.563636 | 0.031414 | 0.031414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.339759 | 415 | 31 | 79 | 13.387097 | 0.649635 | 0.159036 | 0 | 0 | 0 | 0 | 0.083582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ce0347d0611ed1253455a6dbee338de5c52ca49e | 253 | py | Python | FridayChatBot/bot.py | Programmer-Sidharth/FridayChatBot | 7bef7561f61333bfa5e048017a89e04100ae1776 | [
"MIT"
] | null | null | null | FridayChatBot/bot.py | Programmer-Sidharth/FridayChatBot | 7bef7561f61333bfa5e048017a89e04100ae1776 | [
"MIT"
] | null | null | null | FridayChatBot/bot.py | Programmer-Sidharth/FridayChatBot | 7bef7561f61333bfa5e048017a89e04100ae1776 | [
"MIT"
] | null | null | null | from .tasks import *
class Bot:
def __init__(self, BotName, user, email, address):
self.BotName = BotName
self.user = user
self.email = email
self.address = address
def ask(self, task, question):
return task.work(question) | 21.083333 | 52 | 0.660079 | 33 | 253 | 4.939394 | 0.515152 | 0.134969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237154 | 253 | 12 | 53 | 21.083333 | 0.84456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ce1a5242520e01fcb955763918ff8f854ad13e90 | 178 | py | Python | Python3/test_01.py | trashbyte/euler | b9643e71e4b8d06cdb8137bc521fedab34e5645f | [
"MIT"
] | null | null | null | Python3/test_01.py | trashbyte/euler | b9643e71e4b8d06cdb8137bc521fedab34e5645f | [
"MIT"
] | null | null | null | Python3/test_01.py | trashbyte/euler | b9643e71e4b8d06cdb8137bc521fedab34e5645f | [
"MIT"
] | null | null | null | def solution():
sum = 0
for i in range(0,1000):
if i % 3 == 0 or i % 5 == 0: sum += i
return sum
def test_MultiplesOf3And5():
assert solution() == 233168 | 22.25 | 45 | 0.550562 | 28 | 178 | 3.464286 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 0.314607 | 178 | 8 | 46 | 22.25 | 0.647541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce1fd988ea5dd16d6b9d2a31f29450ada3f959bd | 134 | py | Python | multiobject/_version.py | GpNico/MultiObjectDatasetCreator | bfe505e06c66a88da7bbe1530b9300ca47028200 | [
"MIT"
] | 4 | 2020-01-06T08:50:04.000Z | 2021-12-06T08:41:13.000Z | multiobject/_version.py | GpNico/MultiObjectDatasetCreator | bfe505e06c66a88da7bbe1530b9300ca47028200 | [
"MIT"
] | 2 | 2021-06-08T20:48:25.000Z | 2021-09-08T01:35:58.000Z | multiobject/_version.py | GpNico/MultiObjectDatasetCreator | bfe505e06c66a88da7bbe1530b9300ca47028200 | [
"MIT"
] | 2 | 2020-11-19T14:20:29.000Z | 2021-01-12T12:00:44.000Z | __all__ = ["__version__", "__version_info__"]
__version__ = "0.0.3"
__version_info__ = tuple(int(x) for x in __version__.split("."))
| 26.8 | 64 | 0.708955 | 18 | 134 | 3.833333 | 0.611111 | 0.318841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.11194 | 134 | 4 | 65 | 33.5 | 0.554622 | 0 | 0 | 0 | 0 | 0 | 0.246269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce2254fb627e25c68c6cea60e4ad2d54c2a44a57 | 145 | py | Python | hardware/chip/rtl872xd/hal/hal_test/uart/ucube.py | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 4,538 | 2017-10-20T05:19:03.000Z | 2022-03-30T02:29:30.000Z | hardware/chip/rtl872xd/hal/hal_test/uart/ucube.py | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 1,088 | 2017-10-21T07:57:22.000Z | 2022-03-31T08:15:49.000Z | hardware/chip/rtl872xd/hal/hal_test/uart/ucube.py | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 1,860 | 2017-10-20T05:22:35.000Z | 2022-03-27T10:54:14.000Z | src = Split('''
uart_test.c
''')
component = aos_component('uart_test', src)
component.add_cflags('-Wall')
component.add_cflags('-Werror')
| 16.111111 | 43 | 0.689655 | 19 | 145 | 5 | 0.578947 | 0.168421 | 0.378947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117241 | 145 | 8 | 44 | 18.125 | 0.742188 | 0 | 0 | 0 | 0 | 0 | 0.262069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
ce260c8c04c77f93fbe4245973856b54633fba0c | 119,039 | py | Python | src/commercetools/platform/models/me.py | lime-green/commercetools-python-sdk | 63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6 | [
"MIT"
] | 1 | 2021-04-07T20:01:30.000Z | 2021-04-07T20:01:30.000Z | src/commercetools/platform/models/me.py | lime-green/commercetools-python-sdk | 63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6 | [
"MIT"
] | null | null | null | src/commercetools/platform/models/me.py | lime-green/commercetools-python-sdk | 63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6 | [
"MIT"
] | null | null | null | # Generated file, please do not change!!!
import datetime
import enum
import typing
from ._abstract import _BaseType
from .cart import (
CartOrigin,
CartState,
InventoryMode,
RoundingMode,
TaxCalculationMode,
TaxMode,
)
from .common import BaseResource
from .order import OrderState, PaymentSta... | 36.717767 | 142 | 0.707911 | 10,393 | 119,039 | 7.907245 | 0.054364 | 0.070869 | 0.039864 | 0.058262 | 0.785958 | 0.75174 | 0.713775 | 0.588075 | 0.567072 | 0.380044 | 0 | 0.000506 | 0.202539 | 119,039 | 3,241 | 143 | 36.729096 | 0.865194 | 0.024824 | 0 | 0.679451 | 1 | 0 | 0.111449 | 0.068531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111425 | false | 0.002422 | 0.111021 | 0 | 0.486879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce3b2ae2bd0c065da54078595e2a302d6cf2365e | 76 | py | Python | tests/unit/fixtures/mock_hooks.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | 134 | 2018-02-26T21:35:23.000Z | 2022-03-03T00:30:27.000Z | tests/unit/fixtures/mock_hooks.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 937 | 2018-03-08T22:04:35.000Z | 2022-03-30T12:21:47.000Z | tests/unit/fixtures/mock_hooks.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 70 | 2018-02-26T23:48:11.000Z | 2022-03-02T18:44:30.000Z | """Mock hooks."""
import os
GLOBAL_VALUE = os.getenv("AWS_DEFAULT_REGION")
| 15.2 | 46 | 0.723684 | 11 | 76 | 4.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 4 | 47 | 19 | 0.764706 | 0.144737 | 0 | 0 | 0 | 0 | 0.305085 | 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 |
cbef98979690284ec730947d0629faf20aa467d6 | 126 | py | Python | bot/database/connection.py | jDan735/jdan734-bot | aef1490af7daa7bb674dd476356a2761d1c9d18c | [
"MIT"
] | 4 | 2020-08-27T20:51:25.000Z | 2021-05-01T09:50:41.000Z | bot/database/connection.py | jDan735/jdan734-bot | aef1490af7daa7bb674dd476356a2761d1c9d18c | [
"MIT"
] | 55 | 2021-01-05T15:25:04.000Z | 2022-02-11T04:33:28.000Z | bot/database/connection.py | jDan735/jdan734-bot | aef1490af7daa7bb674dd476356a2761d1c9d18c | [
"MIT"
] | 11 | 2020-09-12T10:17:49.000Z | 2022-03-27T04:37:10.000Z | from peewee import SqliteDatabase
from ..config import DB_PATH
db = SqliteDatabase(DB_PATH)
manager = None
get_count = None
| 15.75 | 33 | 0.793651 | 18 | 126 | 5.388889 | 0.611111 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150794 | 126 | 7 | 34 | 18 | 0.906542 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cbf02f3a676050bf8f960f97be12328b1aaca302 | 12,218 | py | Python | tests/test_footnote.py | shivam05011996/mdit-py-plugins | 5c0038fd4348cc37548b3ee7891a9f380517f959 | [
"MIT"
] | null | null | null | tests/test_footnote.py | shivam05011996/mdit-py-plugins | 5c0038fd4348cc37548b3ee7891a9f380517f959 | [
"MIT"
] | null | null | null | tests/test_footnote.py | shivam05011996/mdit-py-plugins | 5c0038fd4348cc37548b3ee7891a9f380517f959 | [
"MIT"
] | null | null | null | from pathlib import Path
from textwrap import dedent
import pytest
from markdown_it import MarkdownIt
from markdown_it.token import Token
from markdown_it.rules_inline import StateInline
from markdown_it.rules_block import StateBlock
from mdit_py_plugins.footnote import index
from mdit_py_plugins.footnote import foot... | 26.331897 | 282 | 0.359388 | 988 | 12,218 | 4.389676 | 0.118421 | 0.045654 | 0.060872 | 0.103758 | 0.760433 | 0.712474 | 0.692645 | 0.68665 | 0.679733 | 0.6546 | 0 | 0.016294 | 0.472581 | 12,218 | 463 | 283 | 26.388769 | 0.654562 | 0.006875 | 0 | 0.760664 | 0 | 0 | 0.125754 | 0.010561 | 0 | 0 | 0 | 0 | 0.021327 | 1 | 0.014218 | false | 0 | 0.023697 | 0 | 0.037915 | 0.00237 | 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 |
022167132225f18d17f36a06e5aa128f1de314fa | 1,679 | py | Python | infoblox_netmri/api/remote/models/aggregated_link_group_membership_remote.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/remote/models/aggregated_link_group_membership_remote.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/remote/models/aggregated_link_group_membership_remote.py | IngmarVG-IB/infoblox-netmri | b0c725fd64aee1890d83917d911b89236207e564 | [
"Apache-2.0"
] | null | null | null | from ..remote import RemoteModel
from infoblox_netmri.utils.utils import check_api_availability
class AggregatedLinkGroupMembershipRemote(RemoteModel):
"""
| ``DataSourceID:`` none
| ``attribute type:`` string
| ``aggLinkGroupMemberID:`` none
| ``attribute type:`` string
... | 24.333333 | 62 | 0.563431 | 83 | 1,679 | 11.361446 | 0.337349 | 0.151644 | 0.198303 | 0.268293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328767 | 1,679 | 69 | 63 | 24.333333 | 0.836735 | 0.45682 | 0 | 0 | 0 | 0 | 0.361955 | 0.309115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 3 |
024122592ab7fc77249c45e4ab8dc5210b667325 | 201 | py | Python | Firmware/buildroot/share/PlatformIO/scripts/mks_robin_nano35_kp3s.py | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 97 | 2020-09-14T13:35:17.000Z | 2022-03-28T20:15:49.000Z | Firmware/buildroot/share/PlatformIO/scripts/mks_robin_nano35_kp3s.py | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 8 | 2020-11-11T21:01:38.000Z | 2022-01-22T01:22:10.000Z | Firmware/buildroot/share/PlatformIO/scripts/mks_robin_nano35_kp3s.py | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 49 | 2020-09-22T09:33:37.000Z | 2022-03-19T21:23:04.000Z | #
# buildroot/share/PlatformIO/scripts/mks_robin_nano35_kp3s.py
# KP3S board needs file name as Robin_nano.bin
#
import marlin
marlin.prepare_robin("0x08007000", "mks_robin_nano.ld", "Robin_nano.bin")
| 28.714286 | 73 | 0.800995 | 31 | 201 | 4.935484 | 0.677419 | 0.176471 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070652 | 0.084577 | 201 | 6 | 74 | 33.5 | 0.76087 | 0.517413 | 0 | 0 | 0 | 0 | 0.445652 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
02422ea903224fe0ad692530150aba067a085521 | 22,871 | py | Python | bindings/qpid/python/cqpid.py | gcsideal/debian-qpid-cpp | e4d034036f29408f940805f5505ae62ce89650cc | [
"Apache-2.0"
] | null | null | null | bindings/qpid/python/cqpid.py | gcsideal/debian-qpid-cpp | e4d034036f29408f940805f5505ae62ce89650cc | [
"Apache-2.0"
] | null | null | null | bindings/qpid/python/cqpid.py | gcsideal/debian-qpid-cpp | e4d034036f29408f940805f5505ae62ce89650cc | [
"Apache-2.0"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import ... | 40.195079 | 113 | 0.70233 | 2,610 | 22,871 | 5.737931 | 0.12682 | 0.068309 | 0.045072 | 0.04821 | 0.307025 | 0.231704 | 0.203259 | 0.184428 | 0.167602 | 0.164997 | 0 | 0.001369 | 0.201784 | 22,871 | 568 | 114 | 40.265845 | 0.818964 | 0.043417 | 0 | 0.209746 | 1 | 0 | 0.031117 | 0 | 0 | 0 | 0 | 0 | 0.002119 | 1 | 0.254237 | false | 0.004237 | 0.019068 | 0.201271 | 0.483051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
0247ac0fdc3c9a9b44b3cfb5e9eafb5ac35319ea | 240 | py | Python | zhangliqiang/20180402/h6.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | zhangliqiang/20180402/h6.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | zhangliqiang/20180402/h6.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | #6. 有有这样一个字典d = {"chaoqian":87, “caoxu”:90, “caohuan”:98, “wuhan”:82, “zhijia”:89}
# 1)将以上字典按成绩排名
d = {"chaoqian":87,"caoxu":90,"caohuan":98,"wuhan":82, "zhijia":89}
s = sorted(d.items(), key = lambda k:k[1],reverse = True)
print(s)
| 26.666667 | 82 | 0.608333 | 38 | 240 | 3.842105 | 0.631579 | 0.136986 | 0.205479 | 0.232877 | 0.561644 | 0.561644 | 0.561644 | 0.561644 | 0.561644 | 0.561644 | 0 | 0.110048 | 0.129167 | 240 | 8 | 83 | 30 | 0.588517 | 0.4 | 0 | 0 | 0 | 0 | 0.219858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
024ecb16b4a0f00365a2b2fe06517a740d97893a | 1,202 | py | Python | tests/test_transforms/test_transform_benchmarks.py | jvrana/caldera | a346324e77f20739e00a82f97530dda4906f59dd | [
"MIT"
] | 2 | 2021-12-13T17:52:17.000Z | 2021-12-13T17:52:18.000Z | tests/test_transforms/test_transform_benchmarks.py | jvrana/caldera | a346324e77f20739e00a82f97530dda4906f59dd | [
"MIT"
] | 4 | 2020-10-06T21:06:15.000Z | 2020-10-10T01:18:23.000Z | tests/test_transforms/test_transform_benchmarks.py | jvrana/caldera | a346324e77f20739e00a82f97530dda4906f59dd | [
"MIT"
] | null | null | null | import pytest
from caldera.data import GraphBatch
from caldera.transforms import AddSelfLoops
from caldera.transforms import FullyConnected
from caldera.transforms import RandomEdgeMask
from caldera.transforms import RandomHop
from caldera.transforms import RandomNodeMask
from caldera.transforms import Reverse
from ca... | 27.953488 | 77 | 0.764559 | 148 | 1,202 | 6.141892 | 0.344595 | 0.108911 | 0.184818 | 0.237624 | 0.127613 | 0.127613 | 0.127613 | 0.127613 | 0.127613 | 0.127613 | 0 | 0.021113 | 0.133111 | 1,202 | 42 | 78 | 28.619048 | 0.851248 | 0 | 0 | 0.060606 | 0 | 0 | 0.018303 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.30303 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
02538844d2645e8ee0c74cdaefbb2740bd18b1a7 | 103 | py | Python | main.py | we684123/change_twitter_dowload_image_extension_name | e66d4ee14890e21892e9aa821524739c8ace5ea7 | [
"MIT"
] | null | null | null | main.py | we684123/change_twitter_dowload_image_extension_name | e66d4ee14890e21892e9aa821524739c8ace5ea7 | [
"MIT"
] | null | null | null | main.py | we684123/change_twitter_dowload_image_extension_name | e66d4ee14890e21892e9aa821524739c8ace5ea7 | [
"MIT"
] | null | null | null | import os
import sys
extension = '.jpg'
for arg in sys.argv[1:]:
os.rename(arg, arg + extension)
| 12.875 | 35 | 0.660194 | 17 | 103 | 4 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.203884 | 103 | 7 | 36 | 14.714286 | 0.817073 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 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 |
02548eded45451d990826f735a81ae04d8202b4f | 329 | py | Python | test/tests/compare_order.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/compare_order.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/compare_order.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | class A(object):
def __eq__(self, rhs):
return True
class B(object):
def __eq__(self, lhs):
return False
print A() == B()
print B() == A()
print A() in [B()]
print B() in [A()]
print A() in (B(),)
print B() in (A(),)
print A() in {B(): 1}
print B() in {A(): 1}
print A() in {B()}
print B() ... | 14.304348 | 26 | 0.50152 | 58 | 329 | 2.706897 | 0.258621 | 0.191083 | 0.178344 | 0.229299 | 0.407643 | 0.407643 | 0.407643 | 0.407643 | 0.292994 | 0.292994 | 0 | 0.00823 | 0.261398 | 329 | 22 | 27 | 14.954545 | 0.63786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
025a8e92aeeeaded4ec9112e4d99e43155d77e0e | 1,948 | py | Python | test_arduino.py | kudelskisecurity/EdDSA-fault-attack | 09c539c6c2f84b8c212aef64c6b08ac24e3161f5 | [
"Unlicense"
] | 63 | 2017-10-05T03:44:06.000Z | 2022-01-17T20:57:34.000Z | test_arduino.py | kudelskisecurity/EdDSA-fault-attack | 09c539c6c2f84b8c212aef64c6b08ac24e3161f5 | [
"Unlicense"
] | null | null | null | test_arduino.py | kudelskisecurity/EdDSA-fault-attack | 09c539c6c2f84b8c212aef64c6b08ac24e3161f5 | [
"Unlicense"
] | 4 | 2017-10-06T16:08:04.000Z | 2020-10-10T15:39:13.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from eddsafault import checkvalid, recovera
from binascii import unhexlify
# Faulted signatures from Ardiono Nano board
faultedSignatures = [
unhexlify('d49bd03b98b85afbcff46bfacf9af673662a253871ec9a56d035aefad2166e5449f230f6967071855663997a5fe0562f73caec8cceaa202a8b... | 60.875 | 146 | 0.792094 | 143 | 1,948 | 10.734266 | 0.566434 | 0.013681 | 0.013029 | 0.026059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309893 | 0.138604 | 1,948 | 31 | 147 | 62.83871 | 0.604887 | 0.139117 | 0 | 0 | 0 | 0 | 0.587777 | 0.498502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.238095 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
02634e84dcee4e29b28d012125e1e389e131cc6b | 4,406 | py | Python | pyvizio/vizio.py | paulcbetts/pyvizio | b871dea2232bc69eb445162a844eee75a7813cb2 | [
"MIT"
] | null | null | null | pyvizio/vizio.py | paulcbetts/pyvizio | b871dea2232bc69eb445162a844eee75a7813cb2 | [
"MIT"
] | null | null | null | pyvizio/vizio.py | paulcbetts/pyvizio | b871dea2232bc69eb445162a844eee75a7813cb2 | [
"MIT"
] | null | null | null | import logging
from urllib.parse import urlsplit
import requests
import xmltodict
from .cmd_input import GetInputsListCommand, GetCurrentInputCommand, ChangeInputCommand
from .cmd_pair import BeginPairCommand, CancelPairCommand, PairChallengeCommand
from .cmd_power import GetPowerStateCommand
from .cmd_remote import ... | 31.927536 | 112 | 0.677258 | 555 | 4,406 | 5.048649 | 0.227027 | 0.074946 | 0.074233 | 0.054247 | 0.261242 | 0.23162 | 0.082084 | 0.064954 | 0.064954 | 0 | 0 | 0.00207 | 0.23241 | 4,406 | 137 | 113 | 32.160584 | 0.826434 | 0.014299 | 0 | 0.019802 | 0 | 0 | 0.034094 | 0.008754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.267327 | false | 0 | 0.108911 | 0.19802 | 0.653465 | 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 |
0266433d3cfdb6922bd7713b071f0c2827af2b0c | 55 | py | Python | src/apps/address/__init__.py | pygaur/gsshop | 87a25239ebd3d15f67057865b66d07d6857f6084 | [
"Apache-2.0"
] | 2 | 2020-04-14T19:22:13.000Z | 2020-08-18T17:08:33.000Z | src/apps/address/__init__.py | pygaur/gsshop | 87a25239ebd3d15f67057865b66d07d6857f6084 | [
"Apache-2.0"
] | 8 | 2020-05-25T14:05:45.000Z | 2022-03-12T00:46:30.000Z | src/apps/address/__init__.py | pygaur/gsshop | 87a25239ebd3d15f67057865b66d07d6857f6084 | [
"Apache-2.0"
] | 1 | 2020-04-14T19:22:18.000Z | 2020-04-14T19:22:18.000Z | default_app_config = 'apps.address.apps.AddressConfig'
| 27.5 | 54 | 0.836364 | 7 | 55 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 55 | 1 | 55 | 55 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.563636 | 0.563636 | 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 |
027603840078c7f6f0cdaabac6cf511bdfbed3e5 | 81 | py | Python | doc/_i18n/jp/tutorials/introduction/first-controller/properties_sources.py | rohanpsingh/mc_rtc | 63918efc54f561650a8e93f449c40ec156a6feb4 | [
"BSD-2-Clause"
] | null | null | null | doc/_i18n/jp/tutorials/introduction/first-controller/properties_sources.py | rohanpsingh/mc_rtc | 63918efc54f561650a8e93f449c40ec156a6feb4 | [
"BSD-2-Clause"
] | null | null | null | doc/_i18n/jp/tutorials/introduction/first-controller/properties_sources.py | rohanpsingh/mc_rtc | 63918efc54f561650a8e93f449c40ec156a6feb4 | [
"BSD-2-Clause"
] | null | null | null | # MyFirstControllerの__init__メソッド内に追加する
self.jointIndex = 0
self.goingLeft = True
| 20.25 | 38 | 0.839506 | 9 | 81 | 7.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.098765 | 81 | 3 | 39 | 27 | 0.863014 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0283e9856d1a7dc8161741aa36a733b9b2843fe0 | 149 | py | Python | testutils/config/override_celery.py | getmetamapper/metamapper | 0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f | [
"BSD-2-Clause"
] | 53 | 2020-07-01T23:11:59.000Z | 2022-03-31T19:10:28.000Z | testutils/config/override_celery.py | metamapper-io/metamapper | 376716e72bcaca62f1ec09ca9a13a0346e5502f9 | [
"BSD-2-Clause"
] | 5 | 2020-11-25T19:48:57.000Z | 2022-02-27T23:50:18.000Z | testutils/config/override_celery.py | metamapper-io/metamapper | 376716e72bcaca62f1ec09ca9a13a0346e5502f9 | [
"BSD-2-Clause"
] | 5 | 2020-08-29T16:43:59.000Z | 2022-01-17T19:05:30.000Z |
broker_url = 'amqp://guest:guest@localhost:5672//'
accept_content = ['application/json']
result_serializer = 'pickle'
task_serializer = 'pickle'
| 16.555556 | 50 | 0.738255 | 17 | 149 | 6.235294 | 0.823529 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.107383 | 149 | 8 | 51 | 18.625 | 0.766917 | 0 | 0 | 0 | 0 | 0 | 0.425676 | 0.236486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
65f9b867923fbb30590a2354d426436ea666e99f | 333 | py | Python | oracle_problems/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 129 | 2018-10-14T17:52:29.000Z | 2022-01-29T15:45:57.000Z | oracle_problems/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 2 | 2019-11-30T23:28:23.000Z | 2020-01-03T16:30:32.000Z | oracle_problems/problem_3.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 60 | 2019-02-21T09:18:31.000Z | 2022-03-25T21:01:04.000Z | """This problem was asked by Oracle.
Given a binary search tree, find the floor and ceiling of a given integer.
The floor is the highest element in the tree less than or equal to an integer,
while the ceiling is the lowest element in the tree greater than or equal to an integer.
If either value does not exist, retu... | 37 | 88 | 0.762763 | 61 | 333 | 4.163934 | 0.639344 | 0.062992 | 0.094488 | 0.125984 | 0.173228 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198198 | 333 | 8 | 89 | 41.625 | 0.951311 | 0.975976 | 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 |
5a10ef22bd24b4079e100db0e6e6e0f3a1723329 | 176 | py | Python | data_ingestion/__init__.py | pengfei99/TwitterAnalysisi | e827f1f3d2f7c2e4668e1e3f4e5838a5858190e6 | [
"MIT"
] | null | null | null | data_ingestion/__init__.py | pengfei99/TwitterAnalysisi | e827f1f3d2f7c2e4668e1e3f4e5838a5858190e6 | [
"MIT"
] | null | null | null | data_ingestion/__init__.py | pengfei99/TwitterAnalysisi | e827f1f3d2f7c2e4668e1e3f4e5838a5858190e6 | [
"MIT"
] | null | null | null | __version__ = '0.0.1'
# Set default logging handler to avoid "No handler found" warnings.
import logging
logging.getLogger('atlas_s3_hook').addHandler(logging.NullHandler())
| 25.142857 | 68 | 0.778409 | 24 | 176 | 5.458333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025478 | 0.107955 | 176 | 6 | 69 | 29.333333 | 0.808917 | 0.369318 | 0 | 0 | 0 | 0 | 0.165138 | 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 |
5a21e5f772b00a074b3a85fa581a8b087a52c4b1 | 2,017 | py | Python | escola/views.py | antonio-yves/escola-api | 915baa17c6cf0a9460accb826472e0954da7f88f | [
"MIT"
] | null | null | null | escola/views.py | antonio-yves/escola-api | 915baa17c6cf0a9460accb826472e0954da7f88f | [
"MIT"
] | null | null | null | escola/views.py | antonio-yves/escola-api | 915baa17c6cf0a9460accb826472e0954da7f88f | [
"MIT"
] | null | null | null | # Nome do arquivo: views.py
# Autor: Antonio Yves de Sousa Dantas
# Creado em: Janeiro de 2022
# Última modificação: 09 de Janeiro de 2022 às 19h54
# Licença: MIT
from rest_framework import viewsets, generics
from escola.models import Aluno, Curso, Matricula
from escola.serializer import AlunoSerializer, CursoSerializ... | 39.54902 | 137 | 0.774417 | 195 | 2,017 | 7.897436 | 0.4 | 0.064935 | 0.12987 | 0.162338 | 0.41039 | 0.364935 | 0.318182 | 0.118182 | 0 | 0 | 0 | 0.008178 | 0.151215 | 2,017 | 50 | 138 | 40.34 | 0.891355 | 0.155677 | 0 | 0.411765 | 0 | 0 | 0.002391 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.058824 | false | 0 | 0.147059 | 0 | 0.941176 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5a27099cd6570435a7acd2df360b7dd35dadf44c | 1,217 | py | Python | config.py | youralphadevelopers/RedditClone | 14f652fd5f57bb31d6910d0d078c9765b4e3e25e | [
"MIT"
] | null | null | null | config.py | youralphadevelopers/RedditClone | 14f652fd5f57bb31d6910d0d078c9765b4e3e25e | [
"MIT"
] | null | null | null | config.py | youralphadevelopers/RedditClone | 14f652fd5f57bb31d6910d0d078c9765b4e3e25e | [
"MIT"
] | null | null | null | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess'
SQLALCHEMY_TRACK_MODIFICATIONS = os.environ.get('SQLALCHEMY_TRACK_MODIFICATIONS') or False
MAIL_SERVER = os.environ.get('MAIL... | 35.794118 | 114 | 0.630238 | 140 | 1,217 | 5.2 | 0.35 | 0.135989 | 0.181319 | 0.131868 | 0.142857 | 0.090659 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258012 | 1,217 | 33 | 115 | 36.878788 | 0.806202 | 0 | 0 | 0 | 0 | 0 | 0.185703 | 0.024651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.038462 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5a29693712c2c6762252c270bfa92300b785b411 | 481 | py | Python | djangocms_frontend/contrib/collapse/frameworks/bootstrap5.py | fsbraun/djangocms-bootstrap5 | 368f736fa1ce264086493153a256eb90dd8c4df0 | [
"BSD-3-Clause"
] | 7 | 2022-01-28T14:21:14.000Z | 2022-03-29T20:07:11.000Z | djangocms_frontend/contrib/collapse/frameworks/bootstrap5.py | marksweb/djangocms-frontend | c74130cbd15cfacb588933bb4adaf1a7d780daaf | [
"BSD-3-Clause"
] | 13 | 2022-02-23T21:10:07.000Z | 2022-03-30T08:33:20.000Z | djangocms_frontend/contrib/collapse/frameworks/bootstrap5.py | marksweb/djangocms-frontend | c74130cbd15cfacb588933bb4adaf1a7d780daaf | [
"BSD-3-Clause"
] | 2 | 2022-02-07T14:48:11.000Z | 2022-02-23T23:55:18.000Z | class CollapseRenderMixin:
render_template = "djangocms_frontend/bootstrap5/collapse.html"
class CollapseContainerRenderMixin:
render_template = "djangocms_frontend/bootstrap5/collapse-container.html"
def render(self, context, instance, placeholder):
instance.add_classes("collapse")
retur... | 32.066667 | 77 | 0.785863 | 45 | 481 | 8.244444 | 0.488889 | 0.113208 | 0.185984 | 0.250674 | 0.396226 | 0.396226 | 0 | 0 | 0 | 0 | 0 | 0.00716 | 0.128898 | 481 | 14 | 78 | 34.357143 | 0.878282 | 0 | 0 | 0 | 0 | 0 | 0.322245 | 0.305613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5a2c55027bf5c00119e3ee2167fdf0a41d3e082b | 414 | py | Python | PE064.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | PE064.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | PE064.py | CaptainSora/Python-Project-Euler | 056400f434eec837ece5ef06653b310ebfcc3d4e | [
"MIT"
] | null | null | null | from math import floor, sqrt
from _cont_frac_tools import CF
def find_odd_period(ceiling):
"""
Returns the number of continued fractions of sqrt(n) for n <= ceiling
which have an odd period.
"""
# len(CF(a)) is one larger than the period of sqrt(a)
return len([
a for a in range(2, cei... | 21.789474 | 73 | 0.640097 | 70 | 414 | 3.685714 | 0.585714 | 0.104651 | 0.100775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032468 | 0.256039 | 414 | 18 | 74 | 23 | 0.805195 | 0.357488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a4d10b78e66952ac2e6026188513065bc0c61cd | 1,068 | py | Python | files/Utilities/AutoDMG.app/Contents/Resources/IEDLogLine.py | samdoran/ansible-role-macos-server | a401b8d10914fd6208e681b971204184e6fab7e2 | [
"MIT"
] | null | null | null | files/Utilities/AutoDMG.app/Contents/Resources/IEDLogLine.py | samdoran/ansible-role-macos-server | a401b8d10914fd6208e681b971204184e6fab7e2 | [
"MIT"
] | null | null | null | files/Utilities/AutoDMG.app/Contents/Resources/IEDLogLine.py | samdoran/ansible-role-macos-server | a401b8d10914fd6208e681b971204184e6fab7e2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# IEDLogLine.py
# AutoDMG
#
# Created by Pelle on 2013-10-28.
# Copyright 2013-2014 Per Olofsson, University of Gothenburg. All rights reserved.
#
from Foundation import *
class IEDLogLine(NSObject):
def init(self):
self = super(IEDLogLine, self).init()
if self ... | 20.150943 | 83 | 0.552434 | 118 | 1,068 | 4.889831 | 0.389831 | 0.114385 | 0.07279 | 0.048527 | 0.117851 | 0.117851 | 0.117851 | 0.117851 | 0.117851 | 0 | 0 | 0.026316 | 0.359551 | 1,068 | 52 | 84 | 20.538462 | 0.817251 | 0.149813 | 0 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.034483 | 0.103448 | 0.586207 | 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 |
5a4d3a73a73c20af6b8778e9e9698c46a909cc09 | 174 | py | Python | youtube_search_api/urls.py | Dhruv9449/IEEE-recruitment | 27eee365ca9175f2e898fcf12a0ff281bb499c39 | [
"MIT"
] | null | null | null | youtube_search_api/urls.py | Dhruv9449/IEEE-recruitment | 27eee365ca9175f2e898fcf12a0ff281bb499c39 | [
"MIT"
] | null | null | null | youtube_search_api/urls.py | Dhruv9449/IEEE-recruitment | 27eee365ca9175f2e898fcf12a0ff281bb499c39 | [
"MIT"
] | null | null | null | from django.urls import path
from youtube_search_api import views
urlpatterns = [
path('', views.index, name='index'),
path('search/', views.search, name='index')
]
| 21.75 | 47 | 0.695402 | 23 | 174 | 5.173913 | 0.521739 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 174 | 7 | 48 | 24.857143 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.097701 | 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 |
5a5be5bf9d5a1d49391470e569efc26610317f02 | 1,667 | py | Python | _assignments/design-patterns/protocol/protocol_descriptor_b.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _assignments/design-patterns/protocol/protocol_descriptor_b.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _assignments/design-patterns/protocol/protocol_descriptor_b.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | """
* Assignment: Protocol Descriptor ValueRange
* Complexity: easy
* Lines of code: 9 lines
* Time: 13 min
English:
1. Define descriptor class `ValueRange` with attributes:
a. `name: str`
b. `min: float`
c. `max: float`
d. `value: float`
2. Define class `Astronaut` with attribu... | 27.783333 | 89 | 0.626875 | 214 | 1,667 | 4.864486 | 0.457944 | 0.020173 | 0.04611 | 0.054755 | 0.322767 | 0.322767 | 0.251681 | 0.194044 | 0.194044 | 0.194044 | 0 | 0.053729 | 0.25195 | 1,667 | 59 | 90 | 28.254237 | 0.781075 | 0.844031 | 0 | 0 | 0 | 0 | 0.036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5a64106207ff265d43ee2e8fe3d3e763332d8ddf | 367 | py | Python | desafio016.py | isaiasramos97/cursoemvideo-python | 2e5072a686819f4c132f48468c507ec4c3be972d | [
"MIT"
] | null | null | null | desafio016.py | isaiasramos97/cursoemvideo-python | 2e5072a686819f4c132f48468c507ec4c3be972d | [
"MIT"
] | null | null | null | desafio016.py | isaiasramos97/cursoemvideo-python | 2e5072a686819f4c132f48468c507ec4c3be972d | [
"MIT"
] | null | null | null | # Crie um programa que leia um numero qualquer pelo teclado e mostre na tela a sua porção inteira.
''' from math import floor, trunc
num = float(input('Digite um número com casas decimais: '))
print(f'\nA porção inteira de {num} é {floor(num)}.')'''
# ou
num = float(input('Digite um número com casas decimais: '))
prin... | 45.875 | 98 | 0.702997 | 62 | 367 | 4.16129 | 0.580645 | 0.151163 | 0.100775 | 0.147287 | 0.542636 | 0.542636 | 0.542636 | 0.542636 | 0.542636 | 0.542636 | 0 | 0 | 0.160763 | 367 | 8 | 99 | 45.875 | 0.837662 | 0.66485 | 0 | 0 | 0 | 0 | 0.678261 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5a6b8033647fabf30f924de52592ea673e8914d5 | 487 | py | Python | syntax/tuples/tupleMethodsExample.py | Dev-Learn/LearnPython | a601f5eeeb05236a3e179bf8c34425a95cb0c919 | [
"Apache-2.0"
] | null | null | null | syntax/tuples/tupleMethodsExample.py | Dev-Learn/LearnPython | a601f5eeeb05236a3e179bf8c34425a95cb0c919 | [
"Apache-2.0"
] | null | null | null | syntax/tuples/tupleMethodsExample.py | Dev-Learn/LearnPython | a601f5eeeb05236a3e179bf8c34425a95cb0c919 | [
"Apache-2.0"
] | null | null | null | years = (1990, 1991, 1993, 1991, 1993, 1993, 1993)
print("Years: ", years)
print("\n")
# Trả về số lần xuất hiện của 1993
print("years.count(1993): ", years.count(1993))
# Tìm vị trí xuất hiện 1993
print("years.index(1993): ", years.index(1993))
# Tìm vị trí xuất hiện 1993, bắt đầu từ chỉ số 3
print("years.index(1... | 28.647059 | 72 | 0.659138 | 91 | 487 | 3.527473 | 0.32967 | 0.186916 | 0.261682 | 0.11215 | 0.392523 | 0.292835 | 0.292835 | 0.205607 | 0.205607 | 0.205607 | 0 | 0.2134 | 0.172485 | 487 | 17 | 73 | 28.647059 | 0.583127 | 0.361396 | 0 | 0 | 0 | 0 | 0.306189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.857143 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
5a7fc863064fca7e35fc8959aaf15683082c6576 | 492 | py | Python | setup.py | BostonKenne/cloaker | 02e3a9877f86964ef624d75d04fdb780f95bee68 | [
"MIT"
] | null | null | null | setup.py | BostonKenne/cloaker | 02e3a9877f86964ef624d75d04fdb780f95bee68 | [
"MIT"
] | null | null | null | setup.py | BostonKenne/cloaker | 02e3a9877f86964ef624d75d04fdb780f95bee68 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="cloaker",
version="0.0.1",
description="Simple keycloak client for python",
py_modules=["cloaker"],
package_dir={'': 'src'},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programmi... | 28.941176 | 85 | 0.601626 | 53 | 492 | 5.54717 | 0.754717 | 0.193878 | 0.255102 | 0.265306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0271 | 0.25 | 492 | 16 | 86 | 30.75 | 0.769648 | 0 | 0 | 0 | 0 | 0 | 0.552846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce4c62de4cb2b5159de3dab5aae4163852dd4cee | 236 | gyp | Python | binding.gyp | mikesmiley/lzh | 9ed1946a3f6c7d124ee90c3a1fd4123b7418be57 | [
"MIT"
] | 10 | 2015-10-25T08:39:46.000Z | 2021-08-04T04:15:50.000Z | binding.gyp | mikesmiley/lzh | 9ed1946a3f6c7d124ee90c3a1fd4123b7418be57 | [
"MIT"
] | null | null | null | binding.gyp | mikesmiley/lzh | 9ed1946a3f6c7d124ee90c3a1fd4123b7418be57 | [
"MIT"
] | 1 | 2021-12-09T11:53:10.000Z | 2021-12-09T11:53:10.000Z | {
"targets": [
{
"target_name": "lzh",
"sources": [ "src/binding.cc", "src/lzh.c" ],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"<!(node -e \"require('cpp-debug')\")"
]
}
]
}
| 18.153846 | 51 | 0.398305 | 22 | 236 | 4.181818 | 0.772727 | 0.108696 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317797 | 236 | 12 | 52 | 19.666667 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.427966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 3 |
ce5129a5b395704d067ad2ffa66e7203c21cbaaf | 3,885 | py | Python | app/models.py | JoyWambui/write-a-way | 2b535406f5c62722d478db8c186562009cf50e65 | [
"MIT"
] | null | null | null | app/models.py | JoyWambui/write-a-way | 2b535406f5c62722d478db8c186562009cf50e65 | [
"MIT"
] | null | null | null | app/models.py | JoyWambui/write-a-way | 2b535406f5c62722d478db8c186562009cf50e65 | [
"MIT"
] | null | null | null | from . import db, login_manager
from datetime import datetime
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(user_id)
class User(UserMixin,db.Model):
"""Class that defines the Us... | 36.650943 | 109 | 0.678507 | 518 | 3,885 | 4.913127 | 0.214286 | 0.062868 | 0.078585 | 0.056582 | 0.431434 | 0.32888 | 0.288016 | 0.214145 | 0.116306 | 0.084086 | 0 | 0.00609 | 0.196911 | 3,885 | 105 | 110 | 37 | 0.809615 | 0.105792 | 0 | 0.171053 | 1 | 0 | 0.066316 | 0.033596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.105263 | 0.052632 | 0.052632 | 0.710526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ce56bb4137d234115540c7c831e8c6c0d037d45d | 445 | py | Python | pds_github_util/utils/argparse.py | NASA-PDS/pds-github-util | 155f60532a02bcbc7a9664b8a170a2e7ab0463d1 | [
"Apache-2.0"
] | null | null | null | pds_github_util/utils/argparse.py | NASA-PDS/pds-github-util | 155f60532a02bcbc7a9664b8a170a2e7ab0463d1 | [
"Apache-2.0"
] | 42 | 2020-09-17T17:30:40.000Z | 2022-03-31T21:09:19.000Z | pds_github_util/utils/argparse.py | NASA-PDS/pds-github-util | 155f60532a02bcbc7a9664b8a170a2e7ab0463d1 | [
"Apache-2.0"
] | 3 | 2020-08-12T23:02:40.000Z | 2021-09-30T11:57:59.000Z | # encoding: utf-8
'''😡 Argument parsing utilities'''
from argparse import ArgumentParser
from pds_github_util import __version__
def addStandardArguments(parser: ArgumentParser):
'''Add a set of standard command-line arguments to the given ``parser``. Currently, the
standard consits of:
• ``--version`... | 26.176471 | 91 | 0.72809 | 54 | 445 | 5.833333 | 0.648148 | 0.069841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002681 | 0.161798 | 445 | 16 | 92 | 27.8125 | 0.836461 | 0.465169 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
ce590b99798f88878034bb1bfc71e2020bb02f5c | 15,518 | py | Python | sptemp/_texts.py | BaumannDaniel/sptemp | 5491fe7d10a1f984753ba4792405fc17af20fcf0 | [
"MIT"
] | null | null | null | sptemp/_texts.py | BaumannDaniel/sptemp | 5491fe7d10a1f984753ba4792405fc17af20fcf0 | [
"MIT"
] | null | null | null | sptemp/_texts.py | BaumannDaniel/sptemp | 5491fe7d10a1f984753ba4792405fc17af20fcf0 | [
"MIT"
] | null | null | null |
class TP_Texts:
# __init__()
init_error1 = "Start and End must be of type datetime.datetime!"
init_error2 = "End must be larger than start!"
# start()
start_error1 = "Time must be of type datetime.datetime!"
start_error2 = "start must be smaller than end of Time_Period!"
# end()
... | 38.892231 | 134 | 0.689522 | 2,308 | 15,518 | 4.377383 | 0.090555 | 0.087301 | 0.06889 | 0.102148 | 0.735326 | 0.708205 | 0.657725 | 0.629021 | 0.552014 | 0.520538 | 0 | 0.016279 | 0.224127 | 15,518 | 399 | 135 | 38.892231 | 0.822841 | 0.061799 | 0 | 0.176744 | 0 | 0.013953 | 0.642102 | 0.100905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ce6bb09acd98fe20582601fb4521ef852ba9b0da | 237 | py | Python | 1.elements_of_programming/Ch - 5 Arrays Que/5.8_que.py | jimmymalhan/Coding_Interview_Questions_Python_algoexpert | 94e8b4c63e8db92793b99741120a09f22806234f | [
"MIT"
] | 1 | 2020-10-05T04:55:26.000Z | 2020-10-05T04:55:26.000Z | 1.elements_of_programming/Ch - 5 Arrays Que/5.8_que.py | jimmymalhan/Coding_Interview_Questions_Python_algoexpert | 94e8b4c63e8db92793b99741120a09f22806234f | [
"MIT"
] | null | null | null | 1.elements_of_programming/Ch - 5 Arrays Que/5.8_que.py | jimmymalhan/Coding_Interview_Questions_Python_algoexpert | 94e8b4c63e8db92793b99741120a09f22806234f | [
"MIT"
] | null | null | null | # Computing an Alternation
# Write a program that takes an array A of n numbers, and rearranges A's elements to get a new array B having the property that
# B[0] <= B[1] >= B[2] <= B[3] >= B[4] <= B[5] >= ...
# Write pseudo code here
| 33.857143 | 127 | 0.64135 | 45 | 237 | 3.377778 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032432 | 0.219409 | 237 | 6 | 128 | 39.5 | 0.789189 | 0.953587 | 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 |
ce7bf2369c7e709da19c98655b435c2658038f86 | 967 | py | Python | lib/Database.py | flawwan/Game-Python-Matchmaking | 9adc459308ac0d6c056daa9b1bbcca9d9919f619 | [
"MIT"
] | null | null | null | lib/Database.py | flawwan/Game-Python-Matchmaking | 9adc459308ac0d6c056daa9b1bbcca9d9919f619 | [
"MIT"
] | 1 | 2015-01-28T12:03:36.000Z | 2015-01-28T12:26:10.000Z | lib/Database.py | flawwan/Game-Python-Matchmaking | 9adc459308ac0d6c056daa9b1bbcca9d9919f619 | [
"MIT"
] | null | null | null | import pymysql
class Database:
db = None
sth = None
def __init__(self):
self.connect_db() # Connect
def get_cursor(self):
return self.db.cursor(pymysql.cursors.DictCursor)
def connect_db(self):
self.db = pymysql.connect(host="localhost",
... | 22.488372 | 57 | 0.551189 | 110 | 967 | 4.754545 | 0.354545 | 0.114723 | 0.133843 | 0.130019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00157 | 0.341262 | 967 | 43 | 58 | 22.488372 | 0.819466 | 0.022751 | 0 | 0 | 0 | 0 | 0.038176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.366667 | false | 0.033333 | 0.033333 | 0.2 | 0.7 | 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 |
ce840c7a559c858b5b95965c1124f7dadea18b7b | 886 | py | Python | app/view.py | SayAkhan/testkakao | f1753733ce6f9c62829ac9f33eea4fec4c8ba03a | [
"MIT"
] | null | null | null | app/view.py | SayAkhan/testkakao | f1753733ce6f9c62829ac9f33eea4fec4c8ba03a | [
"MIT"
] | null | null | null | app/view.py | SayAkhan/testkakao | f1753733ce6f9c62829ac9f33eea4fec4c8ba03a | [
"MIT"
] | null | null | null | from app import app
from flask import request, jsonify
from .manager import APIHandler
@app.route("/keyboard", methods=["GET"])
def yellow_keyboard():
message, code = APIHandler.process("home")
return jsonify(message), code
@app.route("/message", methods=["POST"])
def yellow_message():
message, code = A... | 26.058824 | 63 | 0.699774 | 111 | 886 | 5.513514 | 0.261261 | 0.179739 | 0.171569 | 0.228758 | 0.496732 | 0.264706 | 0.160131 | 0.160131 | 0.160131 | 0 | 0 | 0 | 0.137698 | 886 | 33 | 64 | 26.848485 | 0.801047 | 0 | 0 | 0.217391 | 0 | 0 | 0.111738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0 | 0.565217 | 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 |
ce8669ecf7e6b51b8d1efe2699326daa72be842a | 5,050 | py | Python | chb/mips/MIPSOperand.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | chb/mips/MIPSOperand.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | chb/mips/MIPSOperand.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# CodeHawk Binary Analyzer
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2016-2020 Kestrel Technology LLC
# Copyright (c) 2020 Henny Si... | 33.223684 | 80 | 0.66198 | 635 | 5,050 | 5.114961 | 0.259843 | 0.061576 | 0.078818 | 0.044335 | 0.36915 | 0.323584 | 0.315579 | 0.278017 | 0.268165 | 0.248461 | 0 | 0.004541 | 0.21505 | 5,050 | 151 | 81 | 33.443709 | 0.814834 | 0.311089 | 0 | 0.363636 | 0 | 0 | 0.069056 | 0.011072 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.090909 | 0.170455 | 0.590909 | 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 |
ce8947e7eeeb4bc27eab1048bcd971dae9841f84 | 117 | py | Python | Standard Library/struct/02_struct_class.py | shubhamnag14/Python-Documents | d3fee0ad90232b413f6ac1b562588fb255b79e42 | [
"Apache-2.0"
] | 2 | 2020-11-27T13:21:05.000Z | 2021-04-19T21:14:21.000Z | Standard Library/struct/02_struct_class.py | shubhamnag14/Python-Documents | d3fee0ad90232b413f6ac1b562588fb255b79e42 | [
"Apache-2.0"
] | null | null | null | Standard Library/struct/02_struct_class.py | shubhamnag14/Python-Documents | d3fee0ad90232b413f6ac1b562588fb255b79e42 | [
"Apache-2.0"
] | 1 | 2021-06-27T20:31:42.000Z | 2021-06-27T20:31:42.000Z | import struct
struct1 = struct.Struct('@i13sf')
print(f"Format - {struct1.format}")
print(f'Size : ', struct1.size)
| 19.5 | 35 | 0.700855 | 16 | 117 | 5.125 | 0.5 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0.111111 | 117 | 5 | 36 | 23.4 | 0.740385 | 0 | 0 | 0 | 0 | 0 | 0.324786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
ce9815b9a10b9824e364401f7b8f263f1b7241b8 | 236 | py | Python | scripts/portal/map915020100_PT.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 9 | 2021-04-26T11:59:29.000Z | 2021-12-20T13:15:27.000Z | scripts/portal/map915020100_PT.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | null | null | null | scripts/portal/map915020100_PT.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 6 | 2021-07-14T06:32:05.000Z | 2022-02-06T02:32:56.000Z | # Ariant Treasure Vault Entrance (915020100) => Ariant Treasure Vault
if 2400 <= chr.getJob() <= 2412 and not sm.hasMobsInField():
sm.warp(915020101, 1)
elif sm.hasMobsInField():
sm.chat("Eliminate all of the intruders first.") | 39.333333 | 69 | 0.716102 | 32 | 236 | 5.28125 | 0.78125 | 0.16568 | 0.224852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135678 | 0.15678 | 236 | 6 | 70 | 39.333333 | 0.713568 | 0.283898 | 0 | 0 | 0 | 0 | 0.220238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce99d9968bdc10fe6d1a5eaefb47d1acd8181167 | 474 | py | Python | docker_sdk_api/domain/services/contracts/abstract_job_management_service.py | BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI | 902f35a7e367e635898f687b16a830db892fbaa5 | [
"Apache-2.0"
] | 20 | 2021-07-13T13:08:57.000Z | 2022-03-29T09:38:00.000Z | docker_sdk_api/domain/services/contracts/abstract_job_management_service.py | BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI | 902f35a7e367e635898f687b16a830db892fbaa5 | [
"Apache-2.0"
] | null | null | null | docker_sdk_api/domain/services/contracts/abstract_job_management_service.py | BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI | 902f35a7e367e635898f687b16a830db892fbaa5 | [
"Apache-2.0"
] | 2 | 2021-07-12T08:42:53.000Z | 2022-03-04T18:41:25.000Z | from abc import ABC, abstractmethod, ABCMeta
from domain.models.container_settings import ContainerSettings
from domain.models.container_info import ContainerInfo
class AbstractJobManagementService(ABC):
__metaclass__ = ABCMeta
@abstractmethod
def start_container(self, container_settings: ContainerSetting... | 36.461538 | 103 | 0.818565 | 47 | 474 | 8.042553 | 0.468085 | 0.05291 | 0.084656 | 0.132275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126582 | 474 | 12 | 104 | 39.5 | 0.913043 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ce9f3db4063b64945f0ba0aa4e9a25422b100ffa | 299 | py | Python | amazon_problems/problem_12.py | saadaoui-salah/Daily-Coding-Problem | 48378fd74e948513a512302003d1f6bed869115b | [
"MIT"
] | null | null | null | amazon_problems/problem_12.py | saadaoui-salah/Daily-Coding-Problem | 48378fd74e948513a512302003d1f6bed869115b | [
"MIT"
] | null | null | null | amazon_problems/problem_12.py | saadaoui-salah/Daily-Coding-Problem | 48378fd74e948513a512302003d1f6bed869115b | [
"MIT"
] | null | null | null | """This problem was asked by Amazon.
Implement a bit array.
A bit array is a space efficient array that holds a value of 1 or 0 at each index.
• init(size): initialize the array with size
• set(i, val): updates index at i with val where val is either 1 or 0.
• get(i): gets the value at index i.
""" | 42.714286 | 82 | 0.719064 | 63 | 299 | 3.460317 | 0.587302 | 0.036697 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.200669 | 299 | 7 | 83 | 42.714286 | 0.882845 | 1.036789 | 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 |
cea6e98b42be4cc4d168786f4dee87c71ab6a90d | 3,867 | gyp | Python | src/third_party/flac/flac.gyp | goochen/naiveproxy | 1d0682ee5bae6e648cd43c65f49b4eefd224f206 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | src/third_party/flac/flac.gyp | wclmgcd/naiveproxy | e32a3afb76fd21207c322f2d5e794c4f5505fb59 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | src/third_party/flac/flac.gyp | wclmgcd/naiveproxy | e32a3afb76fd21207c322f2d5e794c4f5505fb59 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'libflac',
'product_name': 'flac',
'type': 'static_library',
'sources': [
'include/... | 32.225 | 80 | 0.561934 | 432 | 3,867 | 4.916667 | 0.351852 | 0.1742 | 0.168079 | 0.161017 | 0.285782 | 0.066855 | 0.035782 | 0 | 0 | 0 | 0 | 0.011641 | 0.289113 | 3,867 | 119 | 81 | 32.495798 | 0.761004 | 0.161107 | 0 | 0.173077 | 0 | 0 | 0.581345 | 0.411218 | 0 | 0 | 0 | 0 | 0.009615 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cec43899df117ef57bff57adc14ca7eddb024c37 | 50 | py | Python | example_site/address/__init__.py | gnipp/django-address | 7d4e36afd916a2ce64b4436843ac6fdf2357f00a | [
"BSD-3-Clause"
] | null | null | null | example_site/address/__init__.py | gnipp/django-address | 7d4e36afd916a2ce64b4436843ac6fdf2357f00a | [
"BSD-3-Clause"
] | null | null | null | example_site/address/__init__.py | gnipp/django-address | 7d4e36afd916a2ce64b4436843ac6fdf2357f00a | [
"BSD-3-Clause"
] | null | null | null | default_app_config = "address.apps.AddressConfig"
| 25 | 49 | 0.84 | 6 | 50 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 50 | 1 | 50 | 50 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.52 | 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 |
cecb1f2e07f4a56ef7fa1ee995658f40b254674d | 417 | py | Python | tests/unit/handlers/test_vm_reconfigured_handler.py | atsgen/tf-vcenter-manager | 2cfa07f038b86b3087842c34abb96b15da0b36fb | [
"Apache-2.0"
] | 1 | 2022-03-13T06:31:40.000Z | 2022-03-13T06:31:40.000Z | tests/unit/handlers/test_vm_reconfigured_handler.py | atsgen/tf-vcenter-manager | 2cfa07f038b86b3087842c34abb96b15da0b36fb | [
"Apache-2.0"
] | null | null | null | tests/unit/handlers/test_vm_reconfigured_handler.py | atsgen/tf-vcenter-manager | 2cfa07f038b86b3087842c34abb96b15da0b36fb | [
"Apache-2.0"
] | 1 | 2020-08-25T12:46:12.000Z | 2020-08-25T12:46:12.000Z | def test_vm_reconfigured(controller, vm_service, vn_service, vmi_service, vrouter_port_service,
vm_reconfigured_update):
controller.handle_update(vm_reconfigured_update)
vm_service.update_vm_models_interfaces.assert_called_once()
vn_service.update_vns.assert_called_once()
vmi_s... | 46.333333 | 95 | 0.796163 | 54 | 417 | 5.574074 | 0.388889 | 0.159468 | 0.212625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139089 | 417 | 8 | 96 | 52.125 | 0.83844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c688956c9b78284ce09e45b40f9d1042854530a | 57 | py | Python | python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertLiteralPreservesFormattingAndComments.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertLiteralPreservesFormattingAndComments.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertLiteralPreservesFormattingAndComments.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | xs = (<caret>
1, 2, # comment 1
3 # comment 2
) | 14.25 | 22 | 0.45614 | 9 | 57 | 2.888889 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.385965 | 57 | 4 | 23 | 14.25 | 0.6 | 0.333333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.