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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff166319d7571cbeff470120486344f6e07be45c | 2,809 | py | Python | database/user.py | As-12/Fit-App-backend- | d95b07fdb1aed882d01d3a70b4b0f308374bf304 | [
"MIT"
] | null | null | null | database/user.py | As-12/Fit-App-backend- | d95b07fdb1aed882d01d3a70b4b0f308374bf304 | [
"MIT"
] | null | null | null | database/user.py | As-12/Fit-App-backend- | d95b07fdb1aed882d01d3a70b4b0f308374bf304 | [
"MIT"
] | null | null | null | from main import db
from dataclasses import dataclass
import database
@dataclass
class User(db.Model):
__tablename__ = 'user'
id: str = db.Column(db.String, primary_key=True,
autoincrement=False)
target_weight: float = db.Column(db.Float, nullable=False)
height: float = db.Colu... | 29.260417 | 72 | 0.503382 | 307 | 2,809 | 4.540717 | 0.29316 | 0.064562 | 0.035868 | 0.027977 | 0.471306 | 0.430416 | 0.406026 | 0.321377 | 0.321377 | 0.296987 | 0 | 0.010909 | 0.412602 | 2,809 | 95 | 73 | 29.568421 | 0.833939 | 0.304735 | 0 | 0.425532 | 0 | 0 | 0.076034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff179049d6a93f539ffdb9a3e5f19fac5a840892 | 2,755 | py | Python | AutoFormer/model/module/Linear_super.py | Inch-Z/Cream | 5adb978db133842dd44f54614a9303dc5d11aa7d | [
"MIT"
] | 307 | 2020-10-29T13:17:02.000Z | 2022-03-30T09:55:49.000Z | AutoFormer/model/module/Linear_super.py | Inch-Z/Cream | 5adb978db133842dd44f54614a9303dc5d11aa7d | [
"MIT"
] | 42 | 2020-10-30T07:09:48.000Z | 2022-03-29T13:54:56.000Z | AutoFormer/model/module/Linear_super.py | Inch-Z/Cream | 5adb978db133842dd44f54614a9303dc5d11aa7d | [
"MIT"
] | 64 | 2020-10-30T10:08:48.000Z | 2022-03-30T06:51:01.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class LinearSuper(nn.Linear):
def __init__(self, super_in_dim, super_out_dim, bias=True, uniform_=None, non_linear='linear', scale=False):
super().__init__(super_in_dim, super_out_dim, bias=bias)
# super_in_dim a... | 33.597561 | 115 | 0.676951 | 381 | 2,755 | 4.577428 | 0.186352 | 0.058486 | 0.075688 | 0.045872 | 0.239679 | 0.164564 | 0.099771 | 0 | 0 | 0 | 0 | 0.001885 | 0.229764 | 2,755 | 81 | 116 | 34.012346 | 0.819981 | 0.043194 | 0 | 0.033898 | 0 | 0 | 0.021269 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.186441 | false | 0 | 0.067797 | 0 | 0.40678 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff17afb225298a2ce7876034f454a6c0c4d8cebd | 1,251 | py | Python | aquascope/util/config.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | null | null | null | aquascope/util/config.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 3 | 2019-04-03T13:22:47.000Z | 2019-12-02T15:49:31.000Z | aquascope/util/config.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 2 | 2019-05-15T13:30:42.000Z | 2020-06-12T02:42:49.000Z | from collections import abc
import copy
import yaml
def data_merge(a, b):
if isinstance(a, abc.Mapping):
if not isinstance(b, abc.Mapping):
raise TypeError('cannot merge {} into a dictionary'.format(b))
a = copy.deepcopy(a)
for k in b:
try:
a[k] = d... | 20.508197 | 74 | 0.544365 | 157 | 1,251 | 4.191083 | 0.401274 | 0.06079 | 0.030395 | 0.012158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35012 | 1,251 | 60 | 75 | 20.85 | 0.809348 | 0.046363 | 0 | 0.097561 | 0 | 0 | 0.028014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.02439 | 0.073171 | 0.04878 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff18f8d189b281647e54313083f71e52b26e849f | 5,532 | py | Python | oxasl/gui/calib_tab.py | physimals/oxasl | e583103f3313aed2890b60190b6ca7b265a46e3c | [
"Apache-2.0"
] | 1 | 2021-01-27T05:48:20.000Z | 2021-01-27T05:48:20.000Z | oxasl/gui/calib_tab.py | ibme-qubic/oxasl | 8a0c055752d6e10cd932336ae6916f0c4fc0a2e9 | [
"Apache-2.0"
] | 13 | 2019-01-14T13:22:00.000Z | 2020-09-12T20:34:20.000Z | oxasl/gui/calib_tab.py | physimals/oxasl | e583103f3313aed2890b60190b6ca7b265a46e3c | [
"Apache-2.0"
] | 3 | 2019-03-19T15:46:48.000Z | 2020-03-13T16:55:48.000Z | """
oxasl.gui.calibration_tab.py
Copyright (c) 2019 University of Oxford
"""
from oxasl.gui.widgets import TabPage
class AslCalibration(TabPage):
"""
Tab page containing options for calibration
"""
def __init__(self, parent, idx, n):
TabPage.__init__(self, parent, "Calibration", idx, n)
... | 41.283582 | 124 | 0.625271 | 688 | 5,532 | 4.797965 | 0.19186 | 0.065738 | 0.074826 | 0.073311 | 0.401999 | 0.25053 | 0.195092 | 0.101787 | 0.044229 | 0.044229 | 0 | 0.019961 | 0.257411 | 5,532 | 133 | 125 | 41.593985 | 0.783593 | 0.078091 | 0 | 0.089888 | 0 | 0 | 0.074007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089888 | false | 0 | 0.011236 | 0 | 0.157303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff1965ee1d197cb5fef833ce6f16c3119dfdad66 | 295 | py | Python | annodomini/__init__.py | TheDubliner/RedArmy-Cogs | f0ae7ab554e176254a91e322e0cf349b69971e98 | [
"MIT"
] | null | null | null | annodomini/__init__.py | TheDubliner/RedArmy-Cogs | f0ae7ab554e176254a91e322e0cf349b69971e98 | [
"MIT"
] | 5 | 2020-05-16T12:21:26.000Z | 2020-06-01T11:26:50.000Z | annodomini/__init__.py | TheDubliner/RedArmy-Cogs | f0ae7ab554e176254a91e322e0cf349b69971e98 | [
"MIT"
] | null | null | null | from .annodomini import AnnoDomini
__red_end_user_data_statement__ = (
"This cog stores data attached to a user ID for the purpose of running "
" the game and saving statistics.\n"
"This cog supports data removal requests."
)
def setup(bot):
bot.add_cog(AnnoDomini(bot))
| 22.692308 | 76 | 0.718644 | 43 | 295 | 4.72093 | 0.744186 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210169 | 295 | 12 | 77 | 24.583333 | 0.871245 | 0 | 0 | 0 | 0 | 0 | 0.488136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ff19d763570001bb5b3069ee03ffa76d0400a9d7 | 1,303 | py | Python | 3. Linear Regresion/3-6)Mini Batch and Data Load.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | 3. Linear Regresion/3-6)Mini Batch and Data Load.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | 3. Linear Regresion/3-6)Mini Batch and Data Load.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import TensorDataset
from torch.utils.data import DataLoader
x_train=torch.FloatTensor([[73,80,75],
[93,88,93],
[89,91,90],
[96,98,100],
... | 30.302326 | 89 | 0.623945 | 180 | 1,303 | 4.4 | 0.488889 | 0.030303 | 0.022727 | 0.045455 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069417 | 0.237145 | 1,303 | 42 | 90 | 31.02381 | 0.727364 | 0.092863 | 0 | 0 | 0 | 0 | 0.068761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16129 | 0 | 0.16129 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
205f3f36d35279bed8e26e086ddaae4845a10bf2 | 4,211 | py | Python | docs/examples/04/do_mcmc.py | ast0815/likelihood-machine | 4b0ebd193253775c31539c4a0046b79cbec8fa2b | [
"MIT"
] | null | null | null | docs/examples/04/do_mcmc.py | ast0815/likelihood-machine | 4b0ebd193253775c31539c4a0046b79cbec8fa2b | [
"MIT"
] | 1 | 2017-03-15T15:36:48.000Z | 2017-03-15T15:36:48.000Z | docs/examples/04/do_mcmc.py | ast0815/likelihood-machine | 4b0ebd193253775c31539c4a0046b79cbec8fa2b | [
"MIT"
] | null | null | null | import emcee
import numpy as np
from matplotlib import pyplot as plt
from remu import binning, likelihood, likelihood_utils, plotting
with open("../01/reco-binning.yml") as f:
reco_binning = binning.yaml.full_load(f)
with open("../01/optimised-truth-binning.yml") as f:
truth_binning = binning.yaml.full_load(f... | 30.294964 | 82 | 0.722156 | 639 | 4,211 | 4.593114 | 0.190923 | 0.020443 | 0.01431 | 0.016695 | 0.596934 | 0.549233 | 0.430324 | 0.375809 | 0.363203 | 0.336627 | 0 | 0.015821 | 0.129423 | 4,211 | 138 | 83 | 30.514493 | 0.784779 | 0 | 0 | 0.428571 | 0 | 0 | 0.117312 | 0.040133 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20628f6d5bc6347f947ff9c3729ba2edb1f796e2 | 4,464 | py | Python | data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 143 | 2021-12-03T02:33:36.000Z | 2022-03-29T00:01:48.000Z | data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 33 | 2021-12-03T10:32:05.000Z | 2022-03-31T02:13:55.000Z | data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 24 | 2021-12-04T06:46:42.000Z | 2022-03-30T07:57:47.000Z | import numpy as np
from data.tracking.sampler.SiamFC.type import SiamesePairSamplingMethod
from data.tracking.sampler._sampling_algos.stateless.random import sampling_multiple_indices_with_range_and_mask
from data.tracking.sampler._sampling_algos.sequence_sampling.common._algo import sample_one_positive
def do_triple... | 44.19802 | 174 | 0.670475 | 561 | 4,464 | 4.996435 | 0.165775 | 0.078487 | 0.041741 | 0.019979 | 0.39101 | 0.254727 | 0.196932 | 0.146985 | 0.133428 | 0.133428 | 0 | 0.009036 | 0.256272 | 4,464 | 100 | 175 | 44.64 | 0.835241 | 0.003808 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.034091 | false | 0 | 0.056818 | 0 | 0.204545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
206298366159a32b63385b54342b7c1ecae4f4f8 | 6,887 | py | Python | check.py | imayank/project4 | 3ccab23560dec09180199726fbf252ac934b7bc2 | [
"MIT"
] | null | null | null | check.py | imayank/project4 | 3ccab23560dec09180199726fbf252ac934b7bc2 | [
"MIT"
] | null | null | null | check.py | imayank/project4 | 3ccab23560dec09180199726fbf252ac934b7bc2 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import csv
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from sklearn.model_selection import train_test_split
from keras import regularizers
from keras.models import Sequential
from keras.layers import Dense, Flatten, Lambda, Cropping2D, Conv2D, MaxPooling2D, Ac... | 36.057592 | 121 | 0.684333 | 940 | 6,887 | 4.832979 | 0.17766 | 0.091569 | 0.040062 | 0.054589 | 0.455426 | 0.4081 | 0.385428 | 0.371561 | 0.316971 | 0.299802 | 0 | 0.043827 | 0.168433 | 6,887 | 190 | 122 | 36.247368 | 0.749433 | 0.080006 | 0 | 0.306569 | 0 | 0 | 0.036179 | 0.003538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051095 | false | 0 | 0.065693 | 0 | 0.160584 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20646ade19d84e61c29fbfddf68aea6634664078 | 4,069 | py | Python | editor/translate_new.py | NTUEELightDance/2019-LightDance | 2e2689f868364e16972465abc22801aaeaf3d8ba | [
"MIT"
] | 2 | 2019-07-16T10:40:52.000Z | 2022-03-14T00:26:42.000Z | editor/translate_new.py | NTUEELightDance/2019-LightDance | 2e2689f868364e16972465abc22801aaeaf3d8ba | [
"MIT"
] | null | null | null | editor/translate_new.py | NTUEELightDance/2019-LightDance | 2e2689f868364e16972465abc22801aaeaf3d8ba | [
"MIT"
] | 2 | 2019-12-01T07:40:04.000Z | 2020-02-15T09:58:50.000Z | BPM_1 = 120.000
BPM_2 = 150.000
BPM_3 = 128.000
BPM_4 = 180.000
SEC_BEAT_1 = 60. / BPM_1
SEC_BEAT_2 = 60. / BPM_2
SEC_BEAT_3 = 60. / BPM_3
SEC_BEAT_4 = 60. / BPM_4
N_DANCER = 8
N_PART = 16
'''
2019_eenight_bpm (v9)
00:00.00 - 01:22.00 BPM = 120 (41*4拍)
01:22.00 - 01:58.80 BPM = 150 (23*4拍)
01:58.80 - 02:40.05 BPM = 1... | 20.974227 | 71 | 0.482182 | 678 | 4,069 | 2.818584 | 0.246313 | 0.029304 | 0.012559 | 0.025118 | 0.29304 | 0.233386 | 0.214547 | 0.214547 | 0.194662 | 0.194662 | 0 | 0.166049 | 0.336938 | 4,069 | 193 | 72 | 21.082902 | 0.542254 | 0.021873 | 0 | 0.23622 | 0 | 0 | 0.031318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0 | 0.015748 | 0 | 0.094488 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2066d9d51ccdadc9c2fac356ffcd5ca1583c63bd | 5,538 | py | Python | src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-05-27T13:52:20.000Z | 2015-05-27T13:52:20.000Z | src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2022-02-18T10:41:38.000Z | 2022-02-18T10:41:38.000Z | # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and... | 42.6 | 117 | 0.68039 | 709 | 5,538 | 5.152327 | 0.369535 | 0.019162 | 0.028744 | 0.034492 | 0.168081 | 0.114427 | 0.058582 | 0.058582 | 0.03723 | 0.03723 | 0 | 0.00917 | 0.232033 | 5,538 | 129 | 118 | 42.930233 | 0.849753 | 0.373781 | 0 | 0.055556 | 0 | 0 | 0.112084 | 0 | 0 | 0 | 0 | 0.007752 | 0.013889 | 1 | 0.138889 | false | 0 | 0.097222 | 0 | 0.347222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20672c1e3cc7378701a319c6aa66a5c9cd3fe2a4 | 581 | py | Python | avgamah/modules/NSFW/pussy.py | thenishantsapkota/Avgamah | c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c | [
"MIT"
] | 6 | 2021-11-03T06:37:33.000Z | 2022-01-26T15:09:37.000Z | avgamah/modules/NSFW/pussy.py | thenishantsapkota/Avgamah | c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c | [
"MIT"
] | 7 | 2021-11-03T14:58:38.000Z | 2022-03-29T23:16:21.000Z | avgamah/modules/NSFW/pussy.py | thenishantsapkota/Avgamah | c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c | [
"MIT"
] | 1 | 2021-08-31T08:04:51.000Z | 2021-08-31T08:04:51.000Z | import hikari
import tanjun
from avgamah.core.client import Client
pussy_component = tanjun.Component()
@pussy_component.with_slash_command
@tanjun.with_own_permission_check(
hikari.Permissions.SEND_MESSAGES
| hikari.Permissions.VIEW_CHANNEL
| hikari.Permissions.EMBED_LINKS
)
@tanjun.with_nsfw_check
@ta... | 24.208333 | 61 | 0.79346 | 78 | 581 | 5.653846 | 0.525641 | 0.095238 | 0.104308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106713 | 581 | 23 | 62 | 25.26087 | 0.849711 | 0 | 0 | 0 | 0 | 0 | 0.04475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20685d91ffa78a319f6c16393a78a8570e8e34ff | 564 | py | Python | test.py | DougDimmadome7/Virtual-Jenga | 0344b21126b680826ffd13c10e328e04db9b7ade | [
"MIT"
] | null | null | null | test.py | DougDimmadome7/Virtual-Jenga | 0344b21126b680826ffd13c10e328e04db9b7ade | [
"MIT"
] | null | null | null | test.py | DougDimmadome7/Virtual-Jenga | 0344b21126b680826ffd13c10e328e04db9b7ade | [
"MIT"
] | null | null | null | from jenga import Tower, Layer
from bots import StatBot
def layer_suite():
subjects = {Layer(): (3, (1, 1.0)),
Layer(False, False): (1, (1, 0.0))}
for subject in subjects:
if subject.get_mass() != subjects[subject][0]:
print("Failed: Expected {}".format(subjects[subj... | 25.636364 | 70 | 0.58156 | 74 | 564 | 4.364865 | 0.459459 | 0.185759 | 0.018576 | 0.154799 | 0.247678 | 0.247678 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0.248227 | 564 | 21 | 71 | 26.857143 | 0.714623 | 0 | 0 | 0 | 0 | 0 | 0.07024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
206a29865133fb8ad4a844440e59032795701c2f | 20,863 | py | Python | test/socializer_test.py | aquanauts/tellus | d1185357b8a2f1106bbd951558dc040c709ff826 | [
"MIT"
] | null | null | null | test/socializer_test.py | aquanauts/tellus | d1185357b8a2f1106bbd951558dc040c709ff826 | [
"MIT"
] | null | null | null | test/socializer_test.py | aquanauts/tellus | d1185357b8a2f1106bbd951558dc040c709ff826 | [
"MIT"
] | null | null | null | # pylint: skip-file
import copy
import random
from tellus.configuration import TELLUS_INTERNAL
from tellus.tell import Tell, SRC_TELLUS_USER
from tellus.tellus_sources.socializer import Socializer, CoffeeBot
from tellus.tellus_utils import datetime_from_string
from tellus.users import UserManager
from test.tells_test ... | 36.991135 | 118 | 0.658247 | 2,554 | 20,863 | 5.161316 | 0.143696 | 0.040282 | 0.022758 | 0.028675 | 0.567896 | 0.501517 | 0.422242 | 0.391367 | 0.344409 | 0.310044 | 0 | 0.009307 | 0.242966 | 20,863 | 563 | 119 | 37.056838 | 0.825313 | 0.089872 | 0 | 0.422122 | 0 | 0.004515 | 0.212062 | 0.002643 | 0 | 0 | 0 | 0 | 0.1693 | 1 | 0.018059 | false | 0 | 0.018059 | 0.004515 | 0.045147 | 0.004515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2071613e7a408eabf03c6b2b9802aa4339e771ee | 955 | py | Python | WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | """
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water
and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid
are all surrounded by water.
"""
def numIslands(grid):
if grid is None and len(gri... | 25.131579 | 114 | 0.503665 | 156 | 955 | 3.083333 | 0.314103 | 0.10395 | 0.087318 | 0.058212 | 0.08316 | 0.058212 | 0.058212 | 0.058212 | 0 | 0 | 0 | 0.046296 | 0.321466 | 955 | 37 | 115 | 25.810811 | 0.695988 | 0.268063 | 0 | 0.076923 | 0 | 0 | 0.02026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.192308 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2071b7738ea9668595f43aa1c16e6826cb81da1e | 2,607 | py | Python | tests/integration/helpers.py | canonical/alertmanager-operator | 48faea21c701a2edefe853de5b04ac1faf6cd736 | [
"Apache-2.0"
] | 1 | 2021-03-28T14:37:13.000Z | 2021-03-28T14:37:13.000Z | tests/integration/helpers.py | canonical/alertmanager-operator | 48faea21c701a2edefe853de5b04ac1faf6cd736 | [
"Apache-2.0"
] | 14 | 2020-11-12T11:22:28.000Z | 2021-09-23T23:51:05.000Z | tests/integration/helpers.py | canonical/alertmanager-operator | 48faea21c701a2edefe853de5b04ac1faf6cd736 | [
"Apache-2.0"
] | 7 | 2020-11-11T23:10:41.000Z | 2021-11-12T14:11:14.000Z | # Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.
"""Helper functions for writing tests."""
import logging
from typing import Dict
from pytest_operator.plugin import OpsTest
log = logging.getLogger(__name__)
async def get_unit_address(ops_test: OpsTest, app_name: str, unit_num: int) -> str... | 31.792683 | 93 | 0.667817 | 364 | 2,607 | 4.598901 | 0.456044 | 0.045998 | 0.035842 | 0.028674 | 0.124851 | 0.064516 | 0.064516 | 0.064516 | 0.064516 | 0.064516 | 0 | 0.022749 | 0.207518 | 2,607 | 81 | 94 | 32.185185 | 0.787512 | 0.224012 | 0 | 0 | 0 | 0 | 0.115901 | 0.057111 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.209302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
207275b58d80650023d7512a278cfc21b82f461a | 1,841 | py | Python | c3py/regions.py | h0s/c3py | 6fb669dd07e9a8433631b64b08213f5f38606ca1 | [
"MIT"
] | 1 | 2015-11-20T05:43:15.000Z | 2015-11-20T05:43:15.000Z | c3py/regions.py | h0s/c3py | 6fb669dd07e9a8433631b64b08213f5f38606ca1 | [
"MIT"
] | null | null | null | c3py/regions.py | h0s/c3py | 6fb669dd07e9a8433631b64b08213f5f38606ca1 | [
"MIT"
] | null | null | null | from .chart_component import ChartComponentList
class Regions(ChartComponentList):
"""
Highlight selected regions on the chart.
Parameters
----------
axes : c3py.axes.Axes
The chart's Axes object.
"""
def __init__(self, axes):
super(Regions, self).__init__()
se... | 24.878378 | 116 | 0.516567 | 215 | 1,841 | 4.260465 | 0.367442 | 0.027293 | 0.076419 | 0.043668 | 0.098253 | 0.098253 | 0.098253 | 0.098253 | 0.098253 | 0.098253 | 0 | 0.003487 | 0.376969 | 1,841 | 74 | 117 | 24.878378 | 0.795118 | 0.397067 | 0 | 0.086957 | 0 | 0 | 0.084783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2072be0c4aa28bf08e6acf94dbe34fa893e5ddc8 | 4,420 | py | Python | projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py | fridtjrg/FYS-STK4155 | 071a039c9c9994c0d125b9432c05ddb08991bca9 | [
"MIT"
] | null | null | null | projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py | fridtjrg/FYS-STK4155 | 071a039c9c9994c0d125b9432c05ddb08991bca9 | [
"MIT"
] | 1 | 2021-10-03T15:16:07.000Z | 2021-10-03T15:16:07.000Z | projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py | fridtjrg/FYS-STK4155 | 071a039c9c9994c0d125b9432c05ddb08991bca9 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
from tensorflow.keras.layers import Dense, Activation
from tensorflow.keras.models import Sequential
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
#====================== DATA
import sys
sys.path.append("../Data")
from DataRegression import X, X_test, X_trai... | 30.482759 | 139 | 0.597285 | 599 | 4,420 | 4.183639 | 0.222037 | 0.01676 | 0.038308 | 0.035914 | 0.46648 | 0.394254 | 0.37909 | 0.336792 | 0.336792 | 0.308859 | 0 | 0.009767 | 0.166063 | 4,420 | 144 | 140 | 30.694444 | 0.670103 | 0.136878 | 0 | 0.309524 | 0 | 0 | 0.185997 | 0.080581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20737648d812b6fad6bec05c7ca144f99ca2d842 | 2,551 | py | Python | src/tf_imgaug/sequential.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | 1 | 2019-01-11T15:36:24.000Z | 2019-01-11T15:36:24.000Z | src/tf_imgaug/sequential.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | null | null | null | src/tf_imgaug/sequential.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | null | null | null | import random
import tensorflow as tf
class Sequential:
def __init__(self, augments, seed=random.randint(0, 2 ** 32), n_augments=1, keypoints_format='xy', bboxes_format='xyxy'):
self.augments = augments
for aug in augments:
aug._set_formats(keypoints_format, bboxes_format)
self.... | 39.859375 | 141 | 0.531164 | 319 | 2,551 | 4.115987 | 0.203762 | 0.041127 | 0.045697 | 0.05179 | 0.268088 | 0.242193 | 0.242193 | 0.220868 | 0.220868 | 0.175171 | 0 | 0.033372 | 0.330459 | 2,551 | 63 | 142 | 40.492063 | 0.735363 | 0 | 0 | 0.081633 | 0 | 0 | 0.00902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.040816 | 0 | 0.122449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20752a68676d3d8a6893e798673529b3ef5ebcf1 | 6,585 | py | Python | ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 13 | 2020-09-02T10:27:57.000Z | 2022-03-11T15:28:46.000Z | ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 43 | 2020-09-02T07:00:42.000Z | 2021-07-05T13:22:58.000Z | ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 6 | 2020-10-19T01:02:18.000Z | 2022-03-11T15:28:47.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2020, ifitwala and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import json
from frappe import _
from frappe.utils import get_link_to_form, today, getdate, formatdate, date_diff, cint
from frappe.model.docum... | 44.795918 | 202 | 0.672134 | 899 | 6,585 | 4.671858 | 0.157953 | 0.071429 | 0.049524 | 0.057143 | 0.525952 | 0.49619 | 0.42 | 0.401905 | 0.37619 | 0.337143 | 0 | 0.003863 | 0.213667 | 6,585 | 146 | 203 | 45.10274 | 0.807261 | 0.022779 | 0 | 0.344828 | 0 | 0 | 0.143079 | 0.007621 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.094828 | 0 | 0.232759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20779422059fa5a2638b842b8fa63f7290a8df78 | 2,824 | py | Python | inbm/cloudadapter-agent/cloudadapter/cloudadapter.py | ahameedx/intel-inb-manageability | aca445fa4cef0b608e6e88e74476547e10c06073 | [
"Apache-2.0"
] | 5 | 2021-12-13T21:19:31.000Z | 2022-01-18T18:29:43.000Z | inbm/cloudadapter-agent/cloudadapter/cloudadapter.py | ahameedx/intel-inb-manageability | aca445fa4cef0b608e6e88e74476547e10c06073 | [
"Apache-2.0"
] | 45 | 2021-12-30T17:21:09.000Z | 2022-03-29T22:47:32.000Z | inbm/cloudadapter-agent/cloudadapter/cloudadapter.py | ahameedx/intel-inb-manageability | aca445fa4cef0b608e6e88e74476547e10c06073 | [
"Apache-2.0"
] | 4 | 2022-01-26T17:42:54.000Z | 2022-03-30T04:48:04.000Z | #!/usr/bin/python
"""
Agent that monitors and reports the state of critical components of the framework
"""
import platform
from typing import Optional, List
from cloudadapter.client import Client
from cloudadapter.constants import LOGGERCONFIG
from cloudadapter.exceptions import BadConfigError
from cloudadapter.uti... | 27.417476 | 99 | 0.642351 | 304 | 2,824 | 5.832237 | 0.411184 | 0.033841 | 0.027073 | 0.01692 | 0.018049 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00679 | 0.26983 | 2,824 | 102 | 100 | 27.686275 | 0.853055 | 0.114023 | 0 | 0.076923 | 0 | 0 | 0.108097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0 | 0.215385 | 0 | 0.384615 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
207a7db873682c7d633f14d1d74adaba1fed2784 | 5,947 | py | Python | prometheus_network_exporter/config/functions/junos.py | networkmess/prometheus-network-exporter | 4e7febb7e13447fd3612e591fbb2f634f97a5101 | [
"MIT"
] | 11 | 2018-12-13T05:39:24.000Z | 2022-01-07T16:59:59.000Z | prometheus_network_exporter/config/functions/junos.py | networkmess/prometheus-network-exporter | 4e7febb7e13447fd3612e591fbb2f634f97a5101 | [
"MIT"
] | 11 | 2018-11-29T20:43:44.000Z | 2020-11-14T22:33:50.000Z | prometheus_network_exporter/config/functions/junos.py | networkmess/prometheus-network-exporter | 4e7febb7e13447fd3612e591fbb2f634f97a5101 | [
"MIT"
] | 2 | 2021-09-11T22:28:56.000Z | 2021-09-11T22:43:19.000Z | from typing import Union
import logging
from ...utitlities import create_list_from_dict
from ..configuration import LabelConfiguration, MetricConfiguration
def default(value) -> float:
if isinstance(value, list):
return default(value[0])
return 0 if value is None else float(value)
def is_ok(boolean:... | 34.375723 | 87 | 0.669077 | 708 | 5,947 | 5.437853 | 0.141243 | 0.09974 | 0.029091 | 0.037403 | 0.674545 | 0.635844 | 0.614805 | 0.604416 | 0.604416 | 0.591948 | 0 | 0.007719 | 0.215739 | 5,947 | 172 | 88 | 34.575581 | 0.817753 | 0.003531 | 0 | 0.47482 | 0 | 0 | 0.080351 | 0.00422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107914 | false | 0 | 0.028777 | 0.028777 | 0.294964 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
207ab28606db0bcb88724f2edd658e5f7978954f | 1,492 | py | Python | lib-python/io/proxies/fragment.py | geoffxy/tandem | 81e76f675634f1b42c8c3070c73443f3f68f8624 | [
"Apache-2.0"
] | 732 | 2018-03-11T03:35:17.000Z | 2022-01-06T12:22:03.000Z | lib-python/io/proxies/fragment.py | geoffxy/tandem | 81e76f675634f1b42c8c3070c73443f3f68f8624 | [
"Apache-2.0"
] | 21 | 2018-03-11T02:28:22.000Z | 2020-08-30T15:36:40.000Z | plugin/tandem_lib/agent/tandem/shared/io/proxies/fragment.py | typeintandem/vim | e076a9954d73ccb60cd6828e53adf8da76462fc6 | [
"Apache-2.0"
] | 24 | 2018-03-14T05:37:17.000Z | 2022-01-18T14:44:42.000Z | from tandem.shared.io.proxies.base import ProxyBase
from tandem.shared.utils.fragment import FragmentUtils
class FragmentProxy(ProxyBase):
def __init__(self, max_message_length=512):
self._max_message_length = max_message_length
def pre_generate_io_data(self, params):
args, kwargs = params
... | 30.44898 | 75 | 0.586461 | 153 | 1,492 | 5.45098 | 0.320261 | 0.059952 | 0.095923 | 0.095923 | 0.160671 | 0.160671 | 0.076739 | 0 | 0 | 0 | 0 | 0.003086 | 0.348525 | 1,492 | 48 | 76 | 31.083333 | 0.854938 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.051282 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
207b5782368cc522ab6d38370f4b51ed010dc707 | 8,888 | py | Python | integresql_client_python/__init__.py | msztolcman/integresql-client-python | 8636434f20ab771ac66885f3bdfe819a7e9ebbfe | [
"MIT"
] | 2 | 2021-05-20T18:38:41.000Z | 2021-06-26T23:10:27.000Z | integresql_client_python/__init__.py | msztolcman/integresql-client-python | 8636434f20ab771ac66885f3bdfe819a7e9ebbfe | [
"MIT"
] | null | null | null | integresql_client_python/__init__.py | msztolcman/integresql-client-python | 8636434f20ab771ac66885f3bdfe819a7e9ebbfe | [
"MIT"
] | 2 | 2021-06-02T13:39:56.000Z | 2021-06-14T02:11:05.000Z | __all__ = ['IntegreSQL', 'DBInfo', 'Database', 'Template']
import hashlib
import http.client
import os
import pathlib
import sys
from typing import Optional, NoReturn, Union, List
import requests
from . import errors
__version__ = '0.9.2'
ENV_INTEGRESQL_CLIENT_BASE_URL = 'INTEGRESQL_CLIENT_BASE_URL'
ENV_INTEGRESQL_... | 33.923664 | 121 | 0.6259 | 1,045 | 8,888 | 5.111005 | 0.164593 | 0.038757 | 0.055982 | 0.05411 | 0.422018 | 0.360981 | 0.320352 | 0.301442 | 0.301442 | 0.288523 | 0 | 0.003348 | 0.260689 | 8,888 | 261 | 122 | 34.05364 | 0.809466 | 0.006413 | 0 | 0.308081 | 0 | 0.005051 | 0.123781 | 0.036726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141414 | false | 0.020202 | 0.040404 | 0.040404 | 0.318182 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
207bb34267342365082bfa8ac841a3deb5a45c41 | 1,653 | py | Python | src/euler_python_package/euler_python/medium/p265.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p265.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p265.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | # In this problem we look at 2^n-digit binary strings and the n-digit substrings of these.
# We are given that n = 5, so we are looking at windows of 5 bits in 32-bit strings.
#
# There are of course 32 possible cyclic windows in a 32-bit string.
# We want each of these windows to be a unique 5-bit string. There are ex... | 44.675676 | 91 | 0.69026 | 294 | 1,653 | 3.79932 | 0.421769 | 0.037601 | 0.043868 | 0.019696 | 0.016115 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048973 | 0.23412 | 1,653 | 36 | 92 | 45.916667 | 0.833333 | 0.672716 | 0 | 0 | 0 | 0 | 0.015355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
207f20ff7bc96059db1255846744ebb0c03d9e3f | 25,099 | py | Python | lib/geomet/wkb.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | lib/geomet/wkb.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | lib/geomet/wkb.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Lars Butler & individual contributors
#
# 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 applicab... | 31.217662 | 79 | 0.620742 | 3,433 | 25,099 | 4.330032 | 0.109525 | 0.042987 | 0.025362 | 0.021796 | 0.480928 | 0.434376 | 0.390649 | 0.350488 | 0.31443 | 0.29667 | 0 | 0.020602 | 0.270927 | 25,099 | 803 | 80 | 31.256538 | 0.791737 | 0.267222 | 0 | 0.419624 | 0 | 0 | 0.091885 | 0 | 0.004175 | 0 | 0.000447 | 0.004981 | 0.025052 | 1 | 0.045929 | false | 0.002088 | 0.020877 | 0 | 0.106472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20803faf55678d4849c7071017ef34216a20319c | 2,104 | py | Python | tests/test_can_delete.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 50 | 2021-08-18T08:08:04.000Z | 2022-03-20T07:23:26.000Z | tests/test_can_delete.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 1 | 2021-02-21T03:18:09.000Z | 2021-03-08T01:07:52.000Z | tests/test_can_delete.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 8 | 2021-07-01T02:39:15.000Z | 2021-12-10T02:20:18.000Z | from __future__ import annotations
from unittest import TestCase
from jsonclasses.excs import UnauthorizedActionException
from tests.classes.gs_product import GSProduct, GSProductUser, GSTProduct
from tests.classes.gm_product import GMProduct, GMProductUser
class TestCanDelete(TestCase):
def test_guards_raises_i... | 39.698113 | 75 | 0.687738 | 251 | 2,104 | 5.494024 | 0.239044 | 0.104424 | 0.039159 | 0.056563 | 0.656273 | 0.621465 | 0.621465 | 0.621465 | 0.597534 | 0.548949 | 0 | 0 | 0.214354 | 2,104 | 52 | 76 | 40.461538 | 0.834241 | 0 | 0 | 0.652174 | 0 | 0 | 0.011882 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0.108696 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
208118ac1558f15291a466df173c06353392d5a4 | 2,112 | py | Python | scripts/matplot_hardware_comparison.py | shenweihai1/rolis-eurosys2022 | 59b3fd58144496a9b13415e30b41617b34924323 | [
"MIT"
] | null | null | null | scripts/matplot_hardware_comparison.py | shenweihai1/rolis-eurosys2022 | 59b3fd58144496a9b13415e30b41617b34924323 | [
"MIT"
] | null | null | null | scripts/matplot_hardware_comparison.py | shenweihai1/rolis-eurosys2022 | 59b3fd58144496a9b13415e30b41617b34924323 | [
"MIT"
] | null | null | null | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import FuncFormatter
def millions(x, pos):
return '%1.1fM' % (x * 1e-6)
formatter = FuncFormatter(millions)
txt = """
4 381682 159258 1.61E+06
8 773030 366397 3.00E+06
12 1103917 519834 4.30E+06
16 1358805 740740 5.67E+06
... | 34.622951 | 148 | 0.676136 | 332 | 2,112 | 4.25 | 0.490964 | 0.024805 | 0.034018 | 0.012757 | 0.10489 | 0.028349 | 0.028349 | 0.019844 | 0 | 0 | 0 | 0.13842 | 0.131155 | 2,112 | 61 | 149 | 34.622951 | 0.630518 | 0.116477 | 0 | 0.040816 | 0 | 0 | 0.227004 | 0.017214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.081633 | 0.020408 | 0.122449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
208258846b51fff8cd031222e2f3da0eb301099e | 11,741 | py | Python | bintray-cleanup/bintray_cleanup/main.py | openzipkin/zipkin-release | 4508fca409783e62169382aff06fd7c32ad20a63 | [
"Apache-2.0"
] | 2 | 2017-08-07T10:00:52.000Z | 2019-06-25T01:59:22.000Z | bintray-cleanup/bintray_cleanup/main.py | openzipkin/zipkin-release | 4508fca409783e62169382aff06fd7c32ad20a63 | [
"Apache-2.0"
] | 3 | 2017-04-11T05:20:11.000Z | 2019-07-24T23:22:16.000Z | bintray-cleanup/bintray_cleanup/main.py | openzipkin/zipkin-release | 4508fca409783e62169382aff06fd7c32ad20a63 | [
"Apache-2.0"
] | 1 | 2017-09-19T08:38:07.000Z | 2017-09-19T08:38:07.000Z | #!/usr/bin/env python3
import json
import textwrap
from collections import defaultdict
from dataclasses import dataclass
from datetime import datetime, timedelta, timezone
from typing import Callable, Dict, List, Optional
import click
import pygments
import pygments.formatters
import pygments.lexers
import requests_ca... | 31.226064 | 87 | 0.638106 | 1,401 | 11,741 | 5.142041 | 0.155603 | 0.034287 | 0.034287 | 0.018462 | 0.415741 | 0.348973 | 0.313437 | 0.293587 | 0.284981 | 0.273459 | 0 | 0.001671 | 0.235329 | 11,741 | 375 | 88 | 31.309333 | 0.800735 | 0.001789 | 0 | 0.342857 | 0 | 0 | 0.187815 | 0.092755 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053968 | false | 0.025397 | 0.034921 | 0.006349 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2082b1a4f9ffc658b8fe8bd47773012afce06769 | 688 | py | Python | backup_nanny/ami_cleanup.py | ForwardLine/backup-nanny | 67c687f43d732c60ab2e569e50bc40cc5e696b25 | [
"Apache-2.0"
] | 1 | 2019-11-13T04:15:41.000Z | 2019-11-13T04:15:41.000Z | backup_nanny/ami_cleanup.py | ForwardLine/backup-nanny | 67c687f43d732c60ab2e569e50bc40cc5e696b25 | [
"Apache-2.0"
] | null | null | null | backup_nanny/ami_cleanup.py | ForwardLine/backup-nanny | 67c687f43d732c60ab2e569e50bc40cc5e696b25 | [
"Apache-2.0"
] | 1 | 2019-10-25T21:24:20.000Z | 2019-10-25T21:24:20.000Z | #!/usr/bin/env python
from backup_nanny.util.env_loader import ENVLoader
from backup_nanny.util.log import Log
from backup_nanny.util.backup_helper import BackupHelper
def handler(event, context):
main(event)
def main(event):
log = Log()
try:
backup_helper = BackupHelper(log=log)
backup_... | 25.481481 | 69 | 0.700581 | 93 | 688 | 4.849462 | 0.44086 | 0.133038 | 0.099778 | 0.126386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213663 | 688 | 26 | 70 | 26.461538 | 0.833641 | 0.02907 | 0 | 0 | 0 | 0 | 0.01949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
208372cd97ff6cd39df211ced3240a7c03da900d | 4,179 | py | Python | msn/tests/test_events.py | mleger45/turnex | 2b805c3681fe6ce3ddad403270c09ac9900fbe7d | [
"MIT"
] | null | null | null | msn/tests/test_events.py | mleger45/turnex | 2b805c3681fe6ce3ddad403270c09ac9900fbe7d | [
"MIT"
] | 1 | 2021-04-12T05:14:28.000Z | 2021-04-12T05:14:28.000Z | msn/tests/test_events.py | mleger45/turnex | 2b805c3681fe6ce3ddad403270c09ac9900fbe7d | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import json
from django.test import TestCase
from unittest.mock import patch, MagicMock
from msn.events import EventTurnex
class EventTurnexTest(TestCase):
def setUp(self):
self.events = EventTurnex()
@patch('msn.events.EventTurnex.valid')
def test_process_with_v... | 29.85 | 74 | 0.589375 | 426 | 4,179 | 5.615023 | 0.173709 | 0.096154 | 0.035117 | 0.041806 | 0.477007 | 0.414716 | 0.38796 | 0.38796 | 0.38796 | 0.347826 | 0 | 0.000341 | 0.299115 | 4,179 | 139 | 75 | 30.064748 | 0.81632 | 0.004786 | 0 | 0.398148 | 0 | 0 | 0.098629 | 0.031273 | 0 | 0 | 0 | 0 | 0.157407 | 1 | 0.12963 | false | 0 | 0.037037 | 0 | 0.175926 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
208521b0cff34706ddce62eebc847a4ed84c31d5 | 1,044 | py | Python | tests/test_no_identity.py | iexg/aiohttp-security | 225b0c989e397bc741159e0ccc6b54eb7add3f94 | [
"Apache-2.0"
] | null | null | null | tests/test_no_identity.py | iexg/aiohttp-security | 225b0c989e397bc741159e0ccc6b54eb7add3f94 | [
"Apache-2.0"
] | null | null | null | tests/test_no_identity.py | iexg/aiohttp-security | 225b0c989e397bc741159e0ccc6b54eb7add3f94 | [
"Apache-2.0"
] | null | null | null | from aiohttp import web
from aiohttp_security import remember, forget
async def test_remember(loop, test_client):
async def do_remember(request):
response = web.Response()
await remember(request, response, 'Andrew')
app = web.Application(loop=loop)
app.router.add_route('POST', '/', do_re... | 29.828571 | 57 | 0.64751 | 125 | 1,044 | 5.288 | 0.28 | 0.048412 | 0.036309 | 0.057489 | 0.73525 | 0.641452 | 0.568835 | 0.568835 | 0.568835 | 0.568835 | 0 | 0.007481 | 0.231801 | 1,044 | 34 | 58 | 30.705882 | 0.816708 | 0 | 0 | 0.615385 | 0 | 0 | 0.164751 | 0.051724 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
208788b7bd11e361a5d176ed481e96bc882babed | 5,385 | py | Python | create_TFRecords.py | LemonLov/Create_TFRecords | 4274b3c2bfd2c041d0a8189f63b394b79edcf025 | [
"BSD-2-Clause"
] | 2 | 2020-09-12T03:10:30.000Z | 2020-09-13T06:18:00.000Z | create_TFRecords.py | LemonLov/Create_TFRecords | 4274b3c2bfd2c041d0a8189f63b394b79edcf025 | [
"BSD-2-Clause"
] | null | null | null | create_TFRecords.py | LemonLov/Create_TFRecords | 4274b3c2bfd2c041d0a8189f63b394b79edcf025 | [
"BSD-2-Clause"
] | null | null | null | # *-* coding:utf-8 *-*
import tensorflow as tf
import numpy as np
import os
import cv2
import random
# 生成整数型的属性
def _int64_feature(value):
return tf.train.Feature(int64_list=tf.train.Int64List(value=[value]))
# 生成字符串型的属性
def _bytes_feature(value):
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[... | 34.299363 | 125 | 0.659239 | 646 | 5,385 | 5.24613 | 0.289474 | 0.049572 | 0.031868 | 0.04072 | 0.130717 | 0.113603 | 0.018885 | 0 | 0 | 0 | 0 | 0.016611 | 0.228598 | 5,385 | 157 | 126 | 34.299363 | 0.79923 | 0.21727 | 0 | 0 | 0 | 0 | 0.09843 | 0.030401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.059524 | 0.035714 | 0.214286 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2087a291b6146f0ef00a3da950e1b29854405f84 | 9,694 | py | Python | curses_interface.py | danomagnum/rpncalc | 0c1242f3716b9bd2bd27cb80b9471ae843c1ee74 | [
"MIT"
] | null | null | null | curses_interface.py | danomagnum/rpncalc | 0c1242f3716b9bd2bd27cb80b9471ae843c1ee74 | [
"MIT"
] | null | null | null | curses_interface.py | danomagnum/rpncalc | 0c1242f3716b9bd2bd27cb80b9471ae843c1ee74 | [
"MIT"
] | null | null | null | import rpncalc
#import readline
import curses
import sys
import os
import math
import pkgutil
import settings
STACK = 0
GRAPH_XY = 1
GRAPH_X = 2
mode = STACK
screen = curses.initscr()
screen.keypad(1)
YMAX, XMAX = screen.getmaxyx()
curses.noecho()
stackbox = curses.newwin(YMAX-4,XMAX -1,0,0)
inputbox = curses.newwi... | 24.356784 | 80 | 0.657726 | 1,365 | 9,694 | 4.506227 | 0.155311 | 0.1073 | 0.056901 | 0.039018 | 0.364819 | 0.354739 | 0.28727 | 0.263372 | 0.223541 | 0.159974 | 0 | 0.02048 | 0.204147 | 9,694 | 397 | 81 | 24.418136 | 0.776798 | 0.028574 | 0 | 0.372308 | 0 | 0 | 0.021589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0.006154 | 0.043077 | 0 | 0.064615 | 0.009231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
208912d6f6d0a9d6a2c0d77936e735ebc5845e01 | 452 | py | Python | ex081.py | BrianBeyer/pythonExercicios | 062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89 | [
"MIT"
] | null | null | null | ex081.py | BrianBeyer/pythonExercicios | 062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89 | [
"MIT"
] | null | null | null | ex081.py | BrianBeyer/pythonExercicios | 062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89 | [
"MIT"
] | null | null | null | valores = []
c = 0
resp = 'S'
cinco = 0
while resp in 'Ss':
v = valores.append(int(input('Digite um valor:')))
resp = str(input('Quer continuar? [S/N]:')).upper().strip()[0]
c+=1
print(f'Você digitou {c} valores')# ou len(valores)
valores.sort(reverse=True)
print(f'Os valores em ordem decrescente são {valor... | 30.133333 | 66 | 0.652655 | 77 | 452 | 3.831169 | 0.597403 | 0.081356 | 0.047458 | 0.081356 | 0.088136 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018919 | 0.181416 | 452 | 15 | 67 | 30.133333 | 0.778378 | 0.033186 | 0 | 0 | 0 | 0 | 0.422018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2089e701f232686bde232f252421fe8e4203a707 | 7,468 | py | Python | clairmeta/settings.py | Kariboupseudo/ClairMeta | e0a26073935f07abda84d9abf0f194716854292f | [
"BSD-3-Clause"
] | null | null | null | clairmeta/settings.py | Kariboupseudo/ClairMeta | e0a26073935f07abda84d9abf0f194716854292f | [
"BSD-3-Clause"
] | null | null | null | clairmeta/settings.py | Kariboupseudo/ClairMeta | e0a26073935f07abda84d9abf0f194716854292f | [
"BSD-3-Clause"
] | null | null | null | # Clairmeta - (C) YMAGIS S.A.
# See LICENSE for more information
LOG_SETTINGS = {
'level': 'INFO',
'enable_console': True,
'enable_file': True,
'file_name': '~/Library/Logs/clairmeta.log',
'file_size': 1e6,
'file_count': 10,
}
DCP_SETTINGS = {
# ISDCF Naming Convention enforced
'naming... | 39.935829 | 99 | 0.573246 | 948 | 7,468 | 4.405063 | 0.330169 | 0.056992 | 0.051724 | 0.060345 | 0.283525 | 0.250718 | 0.209052 | 0.154933 | 0.060345 | 0.060345 | 0 | 0.110592 | 0.254151 | 7,468 | 186 | 100 | 40.150538 | 0.639138 | 0.174344 | 0 | 0.09396 | 0 | 0.026846 | 0.55983 | 0.019074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
208b5a19512f2c1942088dd7f08d4f5e98808037 | 869 | py | Python | examples/python_in_cpp/python_src/py_display.py | aff3ct/py_aff3ct | 8afb7e6b1db1b621db0ae4153b29a2e848e09fcf | [
"MIT"
] | 15 | 2021-01-24T11:59:04.000Z | 2022-03-23T07:23:44.000Z | examples/python_in_cpp/python_src/py_display.py | aff3ct/py_aff3ct | 8afb7e6b1db1b621db0ae4153b29a2e848e09fcf | [
"MIT"
] | 8 | 2021-05-24T18:22:45.000Z | 2022-03-11T09:48:05.000Z | examples/python_in_cpp/python_src/py_display.py | aff3ct/py_aff3ct | 8afb7e6b1db1b621db0ae4153b29a2e848e09fcf | [
"MIT"
] | 4 | 2021-01-26T19:18:21.000Z | 2021-12-07T17:02:34.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
sys.path.insert(0, '../../../build/lib')
import numpy as np
import matplotlib.pyplot as plt
from py_aff3ct.module.py_module import Py_Module
class Display(Py_Module):
def plot(self, x):
if self.i_plt % 50 == 0:
self.line.set_data(x[0,::2], x[0,1::2])
... | 24.828571 | 59 | 0.654776 | 156 | 869 | 3.474359 | 0.455128 | 0.059041 | 0.059041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052055 | 0.159954 | 869 | 35 | 60 | 24.828571 | 0.690411 | 0.049482 | 0 | 0 | 0 | 0 | 0.058182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
208b826ac073ffc78e9fc4a4daa39a825a8767d0 | 3,906 | py | Python | tests/_dao/TestRTKEnvironment.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | tests/_dao/TestRTKEnvironment.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | tests/_dao/TestRTKEnvironment.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | 2 | 2020-04-03T04:14:42.000Z | 2021-02-22T05:30:35.000Z | #!/usr/bin/env python -O
# -*- coding: utf-8 -*-
#
# tests.unit._dao.TestRTKEnvironment.py is part of The RTK Project
#
# All rights reserved.
"""
This is the test class for testing the RTKEnvironment module algorithms and
models.
"""
import sys
from os.path import dirname
sys.path.insert(
0,
dirname(d... | 31.248 | 111 | 0.647465 | 455 | 3,906 | 5.38022 | 0.32967 | 0.05433 | 0.100899 | 0.11683 | 0.28799 | 0.238971 | 0.096405 | 0.05719 | 0.05719 | 0.05719 | 0 | 0.017538 | 0.240911 | 3,906 | 124 | 112 | 31.5 | 0.808094 | 0.178187 | 0 | 0.086957 | 0 | 0 | 0.166341 | 0.027723 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.072464 | false | 0.014493 | 0.101449 | 0 | 0.202899 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20947dad3cda2fd32b55ac90d29dde10b443304e | 2,704 | py | Python | models.py | RidleyLeisy/data-science-1 | bdb0ce1d5b01e2ee0b6b455c9382638cce0027e2 | [
"MIT"
] | null | null | null | models.py | RidleyLeisy/data-science-1 | bdb0ce1d5b01e2ee0b6b455c9382638cce0027e2 | [
"MIT"
] | 3 | 2021-02-08T20:34:21.000Z | 2021-06-02T00:21:00.000Z | models.py | RidleyLeisy/data-science-1 | bdb0ce1d5b01e2ee0b6b455c9382638cce0027e2 | [
"MIT"
] | 1 | 2019-08-28T21:51:14.000Z | 2019-08-28T21:51:14.000Z | import pandas as pd
import numpy as np
from sklearn.pipeline import Pipeline
import category_encoders as ce
from scipy.spatial.distance import cdist
from sklearn.externals import joblib
from db_helper import DbHelper
cols = ['column_a', 'player', 'all_nba', 'all_star', 'draft_yr','pk','team', 'college', 'yrs', 'gam... | 37.041096 | 120 | 0.640902 | 351 | 2,704 | 4.615385 | 0.34188 | 0.04321 | 0.033333 | 0.040741 | 0.34321 | 0.34321 | 0.34321 | 0.34321 | 0.34321 | 0.302469 | 0 | 0.002791 | 0.204882 | 2,704 | 73 | 121 | 37.041096 | 0.750698 | 0.006657 | 0 | 0 | 0 | 0 | 0.286778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.134615 | 0 | 0.269231 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2096856b33bf00dedb67422295e6927b9ab0e166 | 854 | py | Python | aggregate/color_videos.py | isaiahnields/attention.ai | 96fe8d738e4fc36f05e6c72e2f1fcdd7a4048261 | [
"MIT"
] | 8 | 2019-02-12T07:07:42.000Z | 2022-03-02T08:13:01.000Z | aggregate/color_videos.py | isaiahnields/attention.ai | 96fe8d738e4fc36f05e6c72e2f1fcdd7a4048261 | [
"MIT"
] | 7 | 2020-01-28T22:06:03.000Z | 2022-02-09T23:29:48.000Z | aggregate/color_videos.py | isaiahnields/attention.ai | 96fe8d738e4fc36f05e6c72e2f1fcdd7a4048261 | [
"MIT"
] | 8 | 2019-02-12T07:07:46.000Z | 2021-09-21T13:37:19.000Z | import cv2
from os import listdir
from os.path import isfile, join
import numpy as np
from math import sin, pi
paths = [f for f in listdir('combined_videos') if isfile(join('combined_videos', f))]
preds = np.load('agg_preds.npy')
preds = np.sqrt(preds)
for i in range(len(paths)):
ps = preds[i, :]
cap = cv2.V... | 26.6875 | 85 | 0.533958 | 121 | 854 | 3.719008 | 0.471074 | 0.093333 | 0.026667 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032368 | 0.312646 | 854 | 31 | 86 | 27.548387 | 0.734242 | 0 | 0 | 0 | 0 | 0 | 0.088993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.208333 | 0 | 0.208333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2099d8a4a1df272a200a2b4774039e76e7ba0d00 | 5,909 | py | Python | src/beansapplicationmgr.py | primroses/docklet | 6c42a472a8b427496c03fad18b873cb4be219db3 | [
"BSD-3-Clause"
] | null | null | null | src/beansapplicationmgr.py | primroses/docklet | 6c42a472a8b427496c03fad18b873cb4be219db3 | [
"BSD-3-Clause"
] | null | null | null | src/beansapplicationmgr.py | primroses/docklet | 6c42a472a8b427496c03fad18b873cb4be219db3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
'''
This module consists of three parts:
1.send_beans_email: a function to send email to remind users of their beans.
2.ApplicationMgr: a class that will deal with users' requests about beans application.
3.ApprovalRobot: a automatic robot to examine and approve users' applications.
'''
import t... | 39.657718 | 137 | 0.616517 | 737 | 5,909 | 4.87517 | 0.272727 | 0.055664 | 0.066797 | 0.066797 | 0.367103 | 0.34595 | 0.320067 | 0.298358 | 0.183691 | 0.155302 | 0 | 0.009371 | 0.259604 | 5,909 | 148 | 138 | 39.925676 | 0.811886 | 0.160433 | 0 | 0.256881 | 0 | 0.055046 | 0.237034 | 0.058549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091743 | false | 0 | 0.073395 | 0 | 0.284404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
209a7c9fd12e2cce719dba7f8f99eed34a7d71a3 | 863 | py | Python | Chapter03/Cisco/cisco_nxapi_4.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 107 | 2017-03-31T09:39:47.000Z | 2022-01-10T17:43:12.000Z | Chapter03/Cisco/cisco_nxapi_4.py | muzhang90/Mastering-Python-Networking-Third-Edition | f8086fc9a28e441cf8c31099d16839c2e868c7fc | [
"MIT"
] | 3 | 2020-03-29T14:14:43.000Z | 2020-10-29T18:21:09.000Z | Chapter03/Cisco/cisco_nxapi_4.py | muzhang90/Mastering-Python-Networking-Third-Edition | f8086fc9a28e441cf8c31099d16839c2e868c7fc | [
"MIT"
] | 98 | 2017-02-25T17:55:43.000Z | 2022-02-20T19:06:06.000Z | #!/usr/bin/env python3
import requests
import json
url='http://172.16.1.90/ins'
switchuser='cisco'
switchpassword='cisco'
myheaders={'content-type':'application/json-rpc'}
payload=[
{
"jsonrpc": "2.0",
"method": "cli",
"params": {
"cmd": "interface ethernet 2/12",
"version": 1.2
},
... | 15.981481 | 113 | 0.505214 | 99 | 863 | 4.40404 | 0.505051 | 0.073395 | 0.082569 | 0.137615 | 0.247706 | 0.247706 | 0.247706 | 0 | 0 | 0 | 0 | 0.050713 | 0.26883 | 863 | 53 | 114 | 16.283019 | 0.640254 | 0.024334 | 0 | 0.355556 | 0 | 0 | 0.323389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.044444 | 0.044444 | 0 | 0.044444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
209ba14e1d9e24a86fee89293a465d6242084374 | 1,510 | py | Python | website/__init__.py | oforiwaasam/bookshub | 5c83422971f4abdc5fe18d9b088ed3ca5a230636 | [
"MIT"
] | null | null | null | website/__init__.py | oforiwaasam/bookshub | 5c83422971f4abdc5fe18d9b088ed3ca5a230636 | [
"MIT"
] | null | null | null | website/__init__.py | oforiwaasam/bookshub | 5c83422971f4abdc5fe18d9b088ed3ca5a230636 | [
"MIT"
] | null | null | null | from os import path, environ
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
# Define a new database below
db = SQLAlchemy()
DB_NAME = "site.db"
login_manager = LoginManager()
def create_app():
# database configuration
app = Flask(__name__)
app.config['... | 34.318182 | 154 | 0.72649 | 215 | 1,510 | 4.962791 | 0.474419 | 0.022493 | 0.053421 | 0.050609 | 0.056232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190728 | 1,510 | 44 | 155 | 34.318182 | 0.873159 | 0.388742 | 0 | 0 | 0 | 0 | 0.175439 | 0.088816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.28 | 0 | 0.4 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
209bd889393f7e101ff66a22355ff5e0d930a797 | 1,230 | py | Python | python/ql/test/experimental/query-tests/Security/CWE-079/smtplib_bad_subparts.py | RasmusWL/ql | 298f4ab899dcb12414d4fd5112956b82effd140f | [
"MIT"
] | null | null | null | python/ql/test/experimental/query-tests/Security/CWE-079/smtplib_bad_subparts.py | RasmusWL/ql | 298f4ab899dcb12414d4fd5112956b82effd140f | [
"MIT"
] | 4 | 2022-02-17T06:25:43.000Z | 2022-02-23T15:55:30.000Z | python/ql/test/experimental/query-tests/Security/CWE-079/smtplib_bad_subparts.py | jketema/codeql | 09578015886a0c59c2d21c9d09d565742803a5a4 | [
"MIT"
] | null | null | null | # This test checks that the developer doesn't pass a MIMEText instance to a MIMEMultipart initializer via the subparts parameter.
from flask import Flask, request
import json
import smtplib
import ssl
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
app = Flask(__name__)
@app.route... | 28.604651 | 129 | 0.710569 | 159 | 1,230 | 5.333333 | 0.490566 | 0.051887 | 0.03066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007 | 0.186992 | 1,230 | 42 | 130 | 29.285714 | 0.841 | 0.26748 | 0 | 0 | 0 | 0 | 0.146532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.038462 | 0.230769 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
209d3f8143bb0c9a52bff1f3e1c1e5bf2dd136e1 | 1,072 | py | Python | tests/testOptArg.py | miniufo/xinvert | 5fec8586730ec16646304d3eedae1cd501f0673b | [
"MIT"
] | 4 | 2021-05-29T14:56:24.000Z | 2022-03-30T11:54:32.000Z | tests/testOptArg.py | miniufo/xinvert | 5fec8586730ec16646304d3eedae1cd501f0673b | [
"MIT"
] | null | null | null | tests/testOptArg.py | miniufo/xinvert | 5fec8586730ec16646304d3eedae1cd501f0673b | [
"MIT"
] | 2 | 2021-11-22T10:27:21.000Z | 2022-03-30T11:54:33.000Z | # -*- coding: utf-8 -*-
"""
Created on 2020.12.19
@author: MiniUFO
Copyright 2018. All rights reserved. Use is subject to license terms.
"""
#%% load data
import xarray as xr
import numpy as np
nx, ny = 100, 100
gridx = xr.DataArray(np.arange(nx), dims=['X'], coords={'X': np.arange(nx)})
gridy = xr.DataArray(np.aran... | 22.808511 | 80 | 0.649254 | 183 | 1,072 | 3.79235 | 0.497268 | 0.04611 | 0.040346 | 0.04611 | 0.291066 | 0.213256 | 0.213256 | 0.213256 | 0.123919 | 0.123919 | 0 | 0.046638 | 0.139925 | 1,072 | 46 | 81 | 23.304348 | 0.706074 | 0.163246 | 0 | 0.26087 | 0 | 0 | 0.032731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
209dd913bd69c44b411f4ac37d2ead791d37fb9b | 1,451 | py | Python | scripts/plot_solutions.py | sovrasov/linear_sde_solver | 50a7248d9472889523e59c26b1c6448b8ce220da | [
"MIT"
] | null | null | null | scripts/plot_solutions.py | sovrasov/linear_sde_solver | 50a7248d9472889523e59c26b1c6448b8ce220da | [
"MIT"
] | null | null | null | scripts/plot_solutions.py | sovrasov/linear_sde_solver | 50a7248d9472889523e59c26b1c6448b8ce220da | [
"MIT"
] | null | null | null | import argparse
import os
import sys
import json
import pylab as pl
import numpy as np
def main(args):
for solution_file in args.solution_files:
with open(solution_file, 'r') as f:
print(solution_file)
data = json.load(f)
t0 = data['t_0']
n_steps = data['n_s... | 29.02 | 98 | 0.535493 | 181 | 1,451 | 4.127072 | 0.425414 | 0.033467 | 0.064257 | 0.029451 | 0.115127 | 0.069612 | 0.069612 | 0.069612 | 0 | 0 | 0 | 0.008147 | 0.323225 | 1,451 | 49 | 99 | 29.612245 | 0.752546 | 0 | 0 | 0.2 | 0 | 0 | 0.093039 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.025 | false | 0 | 0.15 | 0 | 0.175 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
209ef0d114b6e2246d0313cca7bc6428bd8f1b6f | 2,275 | py | Python | lottery/db/MySqlUtil.py | DEAN-Lee/py_tools | 96968a5c5be3fa5e293671588ad7ec75cb0910f8 | [
"MIT"
] | null | null | null | lottery/db/MySqlUtil.py | DEAN-Lee/py_tools | 96968a5c5be3fa5e293671588ad7ec75cb0910f8 | [
"MIT"
] | 1 | 2021-01-08T08:40:54.000Z | 2021-01-08T08:40:54.000Z | lottery/db/MySqlUtil.py | DEAN-Lee/py_tools | 96968a5c5be3fa5e293671588ad7ec75cb0910f8 | [
"MIT"
] | null | null | null | import pymysql
import time
from lottery.conf import common_data
class MySqlUtil:
def __init__(self):
try:
config = common_data.readDBConf()
self._conn = pymysql.connect(host=config[0],
user=config[1],
... | 30.743243 | 85 | 0.491429 | 227 | 2,275 | 4.744493 | 0.440529 | 0.064995 | 0.027855 | 0.035283 | 0.057567 | 0.057567 | 0.057567 | 0 | 0 | 0 | 0 | 0.009272 | 0.383736 | 2,275 | 73 | 86 | 31.164384 | 0.758916 | 0.056703 | 0 | 0.153846 | 0 | 0 | 0.043935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.019231 | 0.057692 | 0 | 0.346154 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20a392002d1e2c2127d30a148baaa0e429a4ea95 | 2,493 | py | Python | interestCalculatorNew.py | Heliodex/PythonCalculators | ab360d79b9e0a503fbb34adfdfa2e2e557097aad | [
"Unlicense"
] | null | null | null | interestCalculatorNew.py | Heliodex/PythonCalculators | ab360d79b9e0a503fbb34adfdfa2e2e557097aad | [
"Unlicense"
] | null | null | null | interestCalculatorNew.py | Heliodex/PythonCalculators | ab360d79b9e0a503fbb34adfdfa2e2e557097aad | [
"Unlicense"
] | null | null | null | # Heliodex 2021/08/24
# Last edited 2022/02/16 -- count number of steps and add reverse mode
# edit of vatRemover
# uses Short Method
print("Calculates amount after adding a percentage a number of times")
while True:
c = input("1 for normal, 2 for reverse, 3 for catchup ")
if c == "1":
val =... | 28.011236 | 71 | 0.441637 | 279 | 2,493 | 3.946237 | 0.322581 | 0.090827 | 0.024523 | 0.032698 | 0.161671 | 0.070845 | 0.070845 | 0.070845 | 0.070845 | 0 | 0 | 0.060797 | 0.425993 | 2,493 | 88 | 72 | 28.329545 | 0.708595 | 0.087445 | 0 | 0.454545 | 0 | 0 | 0.190717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20a3b0acfd3632b1e52670412907b6db19696003 | 2,623 | py | Python | src/pylexibank/commands/init_profile.py | martino-vic/pylexibank | eefbfbb1754e85264a9fe98fefbcf5df254ad19a | [
"Apache-2.0"
] | 6 | 2019-11-04T09:15:34.000Z | 2022-02-19T23:02:51.000Z | src/pylexibank/commands/init_profile.py | martino-vic/pylexibank | eefbfbb1754e85264a9fe98fefbcf5df254ad19a | [
"Apache-2.0"
] | 228 | 2018-04-13T09:39:20.000Z | 2022-03-08T23:30:46.000Z | src/pylexibank/commands/init_profile.py | martino-vic/pylexibank | eefbfbb1754e85264a9fe98fefbcf5df254ad19a | [
"Apache-2.0"
] | 5 | 2019-07-10T04:53:15.000Z | 2022-03-07T01:43:23.000Z | """
Create an initial orthography profile, seeded from the forms created by a first run
of lexibank.makecldf.
"""
from lingpy import Wordlist
from lingpy.sequence import profile
from cldfbench.cli_util import get_dataset, add_catalog_spec
from csvw.dsv import UnicodeWriter
from clldutils.clilib import ParserError
from... | 33.628205 | 97 | 0.629813 | 324 | 2,623 | 4.981481 | 0.429012 | 0.039033 | 0.052664 | 0.035316 | 0.053903 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002006 | 0.239802 | 2,623 | 77 | 98 | 34.064935 | 0.806921 | 0.040031 | 0 | 0.203125 | 0 | 0 | 0.258566 | 0.008765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.015625 | 0.09375 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20a60c00e978fa11291e28ff7b092caf77628614 | 9,537 | py | Python | Source/ThirdParty/angle/testing/legion/lib/rpc/jsonrpclib.py | elix22/Urho3D | 99902ae2a867be0d6dbe4c575f9c8c318805ec64 | [
"MIT"
] | 20 | 2019-04-18T07:37:34.000Z | 2022-02-02T21:43:47.000Z | testing/legion/lib/rpc/jsonrpclib.py | lyapple2008/webrtc_simplify | c4f9bdc72d8e2648c4f4b1934d22ae94a793b553 | [
"BSD-3-Clause"
] | 11 | 2019-10-21T13:39:41.000Z | 2021-11-05T08:11:54.000Z | testing/legion/lib/rpc/jsonrpclib.py | lyapple2008/webrtc_simplify | c4f9bdc72d8e2648c4f4b1934d22ae94a793b553 | [
"BSD-3-Clause"
] | 1 | 2021-12-03T18:11:36.000Z | 2021-12-03T18:11:36.000Z | # Copyright 2014 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.
"""Module to implement the JSON-RPC protocol.
This module uses xmlrpclib as the base and only overrides those
portions that implement the XML-RPC protocol. ... | 25.5 | 79 | 0.676838 | 1,218 | 9,537 | 5.215928 | 0.201149 | 0.028648 | 0.011333 | 0.014324 | 0.264914 | 0.23784 | 0.225878 | 0.190619 | 0.190619 | 0.168267 | 0 | 0.004209 | 0.227745 | 9,537 | 373 | 80 | 25.568365 | 0.858384 | 0.360386 | 0 | 0.179775 | 0 | 0 | 0.108506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0.005618 | 0.016854 | 0.022472 | 0.241573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20a8a073cd2c94b8099ac2c571da041af73d129b | 21,838 | py | Python | src/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py | neeker/chromium_extract | 0f9a0206a1876e98cf69e03869983e573138284c | [
"BSD-3-Clause"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | src/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py | neeker/chromium_extract | 0f9a0206a1876e98cf69e03869983e573138284c | [
"BSD-3-Clause"
] | 2 | 2017-03-09T09:00:50.000Z | 2017-09-21T15:48:20.000Z | src/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py | neeker/chromium_extract | 0f9a0206a1876e98cf69e03869983e573138284c | [
"BSD-3-Clause"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | #!/usr/bin/env python
#
# Copyright 2014 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.
from __future__ import print_function
import collections
import multiprocessing
import optparse
import os
import platform
import re
... | 34.773885 | 81 | 0.61512 | 2,630 | 21,838 | 4.969962 | 0.228137 | 0.056767 | 0.050493 | 0.051718 | 0.285824 | 0.231275 | 0.193941 | 0.170148 | 0.120572 | 0.08538 | 0 | 0.017109 | 0.250572 | 21,838 | 627 | 82 | 34.829346 | 0.781559 | 0.123912 | 0 | 0.343496 | 0 | 0 | 0.391309 | 0.102165 | 0 | 0 | 0 | 0.001595 | 0.002033 | 1 | 0.018293 | false | 0.002033 | 0.020325 | 0 | 0.073171 | 0.03252 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20ab340c51fea34db17694c288889d5ae11f982b | 340 | py | Python | res_cookie.py | HLRJ/py-crawler | 326128f8aa8e83cb7a142a31efedc7d944dac4da | [
"MIT"
] | 1 | 2022-03-29T16:01:41.000Z | 2022-03-29T16:01:41.000Z | res_cookie.py | HLRJ/py-crawler | 326128f8aa8e83cb7a142a31efedc7d944dac4da | [
"MIT"
] | null | null | null | res_cookie.py | HLRJ/py-crawler | 326128f8aa8e83cb7a142a31efedc7d944dac4da | [
"MIT"
] | 1 | 2022-03-29T16:02:10.000Z | 2022-03-29T16:02:10.000Z | import requests
# 处理cookie的一个模板
# 会话
session = requests.session()
data = {
"账号" : "########",
"密码" : "########"
}
url = ""
res = session.post(url, data=data)
print(res.text)
res = session.get(url)
# resquests
header = {
"user-agent" : "dddd",
"Cookie" : "url"
}
resp = requests.get(url,headers=heade... | 14.166667 | 39 | 0.576471 | 40 | 340 | 4.9 | 0.55 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197059 | 340 | 24 | 40 | 14.166667 | 0.717949 | 0.076471 | 0 | 0 | 0 | 0 | 0.13871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20af13f324e132c3a20d60cbd72a4f1adb5b9083 | 13,891 | py | Python | Auto Scroller - Python/venv/lib/python3.8/site-packages/listener/daemon.py | Nischal200/Music-Lyrics-Auto-Scroller | 92663e13451022a1500bfe56dff479dd0b3f1cac | [
"MIT"
] | null | null | null | Auto Scroller - Python/venv/lib/python3.8/site-packages/listener/daemon.py | Nischal200/Music-Lyrics-Auto-Scroller | 92663e13451022a1500bfe56dff479dd0b3f1cac | [
"MIT"
] | null | null | null | Auto Scroller - Python/venv/lib/python3.8/site-packages/listener/daemon.py | Nischal200/Music-Lyrics-Auto-Scroller | 92663e13451022a1500bfe56dff479dd0b3f1cac | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""process which runs inside the docker daemon
the purpose of the doctor damon process is to allow the set up of
an environment which will support the deep speech recognition engine
to run on any recent nvidia Ubuntu host.
the basic operation of the demon is to create a named pipe
in the users... | 35.346056 | 146 | 0.608452 | 1,707 | 13,891 | 4.85413 | 0.281781 | 0.013034 | 0.017258 | 0.013275 | 0.126599 | 0.101497 | 0.076515 | 0.058895 | 0.050205 | 0.028723 | 0 | 0.010694 | 0.299906 | 13,891 | 392 | 147 | 35.436224 | 0.841337 | 0.257649 | 0 | 0.228782 | 0 | 0.00738 | 0.12505 | 0.009443 | 0 | 0 | 0 | 0.002551 | 0 | 1 | 0.051661 | false | 0 | 0.03321 | 0 | 0.118081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20b1e4ce9fc466a2b7e51f104d05fa8d81c11041 | 23,645 | py | Python | nifpga/session.py | auchter/nifpga-python | d24ac338ec9b9d1bb94f1c8b8d06643670289e9e | [
"MIT"
] | null | null | null | nifpga/session.py | auchter/nifpga-python | d24ac338ec9b9d1bb94f1c8b8d06643670289e9e | [
"MIT"
] | null | null | null | nifpga/session.py | auchter/nifpga-python | d24ac338ec9b9d1bb94f1c8b8d06643670289e9e | [
"MIT"
] | 1 | 2020-09-19T15:44:08.000Z | 2020-09-19T15:44:08.000Z | """
Session, a convenient wrapper around the low-level _NiFpga class.
Copyright (c) 2017 National Instruments
"""
from .nifpga import (_SessionType, _IrqContextType, _NiFpga, DataType,
OPEN_ATTRIBUTE_NO_RUN, RUN_ATTRIBUTE_WAIT_UNTIL_DONE,
CLOSE_ATTRIBUTE_NO_RESET_IF_LAST_SESS... | 39.806397 | 102 | 0.587735 | 2,620 | 23,645 | 5.080916 | 0.144656 | 0.026442 | 0.030048 | 0.014874 | 0.464393 | 0.40302 | 0.361403 | 0.31543 | 0.268179 | 0.244967 | 0 | 0.00456 | 0.341552 | 23,645 | 593 | 103 | 39.873524 | 0.850472 | 0.356143 | 0 | 0.309028 | 0 | 0 | 0.047844 | 0.005308 | 0 | 0 | 0.000727 | 0 | 0.038194 | 1 | 0.128472 | false | 0.006944 | 0.024306 | 0.003472 | 0.246528 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20b28d884d7b7314d9f1c0fd125fd2bca1b74c56 | 2,439 | py | Python | in-app-payments-with-server-validation/backend-appengine/jwt/__init__.py | Acidburn0zzz/chrome-app-samples | 53c3184d3ff210918a5d9c7420dd2a92c0870cf5 | [
"Apache-2.0"
] | 16 | 2019-08-08T02:04:54.000Z | 2019-10-15T17:52:36.000Z | in-app-payments-with-server-validation/backend-appengine/jwt/__init__.py | Acidburn0zzz/chrome-app-samples | 53c3184d3ff210918a5d9c7420dd2a92c0870cf5 | [
"Apache-2.0"
] | null | null | null | in-app-payments-with-server-validation/backend-appengine/jwt/__init__.py | Acidburn0zzz/chrome-app-samples | 53c3184d3ff210918a5d9c7420dd2a92c0870cf5 | [
"Apache-2.0"
] | 8 | 2015-07-04T07:24:08.000Z | 2020-04-27T02:23:49.000Z | """ JSON Web Token implementation
Minimum implementation based on this spec:
http://self-issued.info/docs/draft-jones-json-web-token-01.html
"""
import base64
import hashlib
import hmac
try:
import json
except ImportError:
import simplejson as json
__all__ = ['encode', 'decode', 'DecodeError']
class Dec... | 33.410959 | 89 | 0.678147 | 280 | 2,439 | 5.782143 | 0.332143 | 0.046325 | 0.022236 | 0.029648 | 0.25386 | 0.25386 | 0.165534 | 0.059296 | 0 | 0 | 0 | 0.030025 | 0.194342 | 2,439 | 72 | 90 | 33.875 | 0.793893 | 0.056171 | 0 | 0.206897 | 0 | 0 | 0.091979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.017241 | 0.103448 | 0.017241 | 0.293103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20b37fe078b398c2a89ecdde10b0aa1f69e2a0fc | 4,931 | py | Python | app/models/attribute.py | hack4impact/women-veterans-rock | 7de5f5645819dbe67ba71a1f0b29f84a45e35789 | [
"MIT"
] | 16 | 2015-10-26T20:30:35.000Z | 2017-02-01T01:45:35.000Z | app/models/attribute.py | hack4impact/women-veterans-rock | 7de5f5645819dbe67ba71a1f0b29f84a45e35789 | [
"MIT"
] | 34 | 2015-10-21T02:58:42.000Z | 2017-02-24T06:57:07.000Z | app/models/attribute.py | hack4impact/women-veterans-rock | 7de5f5645819dbe67ba71a1f0b29f84a45e35789 | [
"MIT"
] | 1 | 2015-10-23T21:32:28.000Z | 2015-10-23T21:32:28.000Z | from .. import db
user_tag_associations_table = db.Table(
'user_tag_associations', db.Model.metadata,
db.Column('tag_id', db.Integer, db.ForeignKey('tags.id')),
db.Column('user_id', db.Integer, db.ForeignKey('users.id'))
)
resource_tag_associations_table = db.Table(
'resource_tag_associations', db.Mod... | 33.773973 | 78 | 0.608801 | 557 | 4,931 | 5.210054 | 0.235189 | 0.027567 | 0.022743 | 0.043418 | 0.5255 | 0.472433 | 0.464507 | 0.435562 | 0.435562 | 0.401103 | 0 | 0.002302 | 0.295275 | 4,931 | 145 | 79 | 34.006897 | 0.832806 | 0.164875 | 0 | 0.484848 | 0 | 0 | 0.120733 | 0.017068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080808 | false | 0 | 0.030303 | 0.010101 | 0.323232 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20b557e25c85bd79516024b5db25efc8be4b20b6 | 2,631 | py | Python | python/wlu_lr/CNN.py | GG-yuki/bugs | aabd576e9e57012a3390007af890b7c6ab6cdda8 | [
"MIT"
] | null | null | null | python/wlu_lr/CNN.py | GG-yuki/bugs | aabd576e9e57012a3390007af890b7c6ab6cdda8 | [
"MIT"
] | null | null | null | python/wlu_lr/CNN.py | GG-yuki/bugs | aabd576e9e57012a3390007af890b7c6ab6cdda8 | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
import matplotlib.pyplot as plt
import numpy
x = torch.unsqueeze(torch.linspace(-1, 1, 300), dim=1) # x data (tensor), shape=(100, 1)
print(x)
y = x.pow(2) + 0.2 * torch.rand(x.size()) # noisy y data (tensor), shape=(100, 1)
plt.scatter(x.data.numpy(), y.data.numpy())
plt... | 32.085366 | 113 | 0.625618 | 394 | 2,631 | 4.106599 | 0.365482 | 0.100124 | 0.049444 | 0.04759 | 0.295426 | 0.255253 | 0.255253 | 0.227441 | 0.207046 | 0.18665 | 0 | 0.153668 | 0.1813 | 2,631 | 81 | 114 | 32.481481 | 0.597493 | 0.303307 | 0 | 0.116279 | 0 | 0 | 0.012871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.186047 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20b5d321129450b24c961028f4c4a899c4e5b34f | 7,440 | py | Python | mechanic/modifier.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | mechanic/modifier.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | mechanic/modifier.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | """
kinds of modifiers
1. Ability Passive
- stat mods
- act damage up/down
- punisher
2. Action condtion (and Aura)
- there's a lot of crap here but they r all additive if same field
- str aura is same as _RateAttack
- certain fields (crit, crit dmg, punisher) are same bracket for w/e reason
3. hitattr
- independent... | 32.920354 | 135 | 0.562366 | 899 | 7,440 | 4.48832 | 0.182425 | 0.035688 | 0.011896 | 0.021809 | 0.319207 | 0.263445 | 0.202478 | 0.183147 | 0.183147 | 0.183147 | 0 | 0.009781 | 0.299194 | 7,440 | 225 | 136 | 33.066667 | 0.764097 | 0.476478 | 0 | 0.042553 | 0 | 0 | 0.052895 | 0.006316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0.031915 | 0.138298 | 0.021277 | 0.37234 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20b7cdbf4698fba9cb58486cf5f4749c946cfd11 | 4,154 | py | Python | ino/argparsing.py | qguv/ino | f23ee5cb14edc30ec087d3eab7b301736da42362 | [
"MIT"
] | 558 | 2015-01-02T08:12:53.000Z | 2022-03-08T17:13:26.000Z | ino/argparsing.py | jboone/ino | 4798827272f6b3916f1fb887e42538a976789d90 | [
"MIT"
] | 84 | 2015-01-01T11:17:27.000Z | 2021-02-11T02:40:23.000Z | ino/argparsing.py | jboone/ino | 4798827272f6b3916f1fb887e42538a976789d90 | [
"MIT"
] | 176 | 2015-01-14T08:59:39.000Z | 2021-06-24T07:41:31.000Z | # -*- coding: utf-8; -*-
# Stolen from: http://bugs.python.org/issue12806
import argparse
import re
import textwrap
class FlexiFormatter(argparse.RawTextHelpFormatter):
"""FlexiFormatter which respects new line formatting and wraps the rest
Example:
>>> parser = argparse.ArgumentParser(formatter_... | 41.54 | 78 | 0.553683 | 485 | 4,154 | 4.676289 | 0.315464 | 0.018519 | 0.017196 | 0.022487 | 0.572751 | 0.55776 | 0.55776 | 0.55776 | 0.55776 | 0.55776 | 0 | 0.006818 | 0.364468 | 4,154 | 99 | 79 | 41.959596 | 0.852273 | 0.547424 | 0 | 0 | 0 | 0 | 0.356109 | 0.013897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20b85e774f4f333362b32f59f4d25bf560a3cebc | 6,997 | py | Python | NN_buildingblock/ConvNN.py | xupingxie/deep-learning-models | cc76aedf9631317452f9cd7df38998e2de727816 | [
"MIT"
] | null | null | null | NN_buildingblock/ConvNN.py | xupingxie/deep-learning-models | cc76aedf9631317452f9cd7df38998e2de727816 | [
"MIT"
] | null | null | null | NN_buildingblock/ConvNN.py | xupingxie/deep-learning-models | cc76aedf9631317452f9cd7df38998e2de727816 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This script contains basic functions for Conv Neural Nets.
foward conv and pooling
backward conv and pooling
@author: xuping
"""
import numpy as np
import h5py
import matplotlib.pyplot as plt
def Conv_forward(A_prev, W, b, para):
'''
This is the forward prop... | 33.319048 | 103 | 0.489924 | 991 | 6,997 | 3.349142 | 0.133199 | 0.045194 | 0.01627 | 0.012052 | 0.483579 | 0.423019 | 0.35824 | 0.333534 | 0.332329 | 0.264236 | 0 | 0.007 | 0.387452 | 6,997 | 210 | 104 | 33.319048 | 0.767382 | 0.277976 | 0 | 0.490385 | 0 | 0 | 0.016897 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.038462 | false | 0 | 0.028846 | 0 | 0.105769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20b99c84a1d02922ac3d349c7b10e48dcaede0db | 4,974 | py | Python | nnf/dsharp.py | vishalbelsare/python-nnf | c2e81fd7851a3d11fff904bf5b4c5e521fde59ab | [
"0BSD"
] | 14 | 2020-07-14T01:51:26.000Z | 2021-12-17T22:45:47.000Z | nnf/dsharp.py | vishalbelsare/python-nnf | c2e81fd7851a3d11fff904bf5b4c5e521fde59ab | [
"0BSD"
] | 26 | 2020-07-14T23:37:52.000Z | 2021-11-04T18:06:38.000Z | nnf/dsharp.py | vishalbelsare/python-nnf | c2e81fd7851a3d11fff904bf5b4c5e521fde59ab | [
"0BSD"
] | 7 | 2020-07-26T10:53:21.000Z | 2021-09-19T00:35:30.000Z | """Interoperability with `DSHARP <https://github.com/QuMuLab/dsharp>`_.
``load`` and ``loads`` can be used to parse files created by DSHARP's
``-Fnnf`` option.
``compile`` invokes DSHARP directly to compile a sentence. This requires
having DSHARP installed.
The parser was derived by studying DSHARP's output and sour... | 32.090323 | 79 | 0.621431 | 679 | 4,974 | 4.505155 | 0.346097 | 0.038248 | 0.007846 | 0.010788 | 0.099379 | 0.090226 | 0.066688 | 0.054266 | 0.035306 | 0.035306 | 0 | 0.004646 | 0.264375 | 4,974 | 154 | 80 | 32.298701 | 0.831375 | 0.297346 | 0 | 0.106383 | 0 | 0 | 0.095182 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 1 | 0.042553 | false | 0 | 0.074468 | 0 | 0.202128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20ba293476d59761a6ef6fe44c77fac5699f68be | 4,513 | py | Python | stats/offense.py | wisarut-sirimart/Python-Baseball | f794455d4a217d7684bd86fdff19d1706bf7aab2 | [
"MIT"
] | null | null | null | stats/offense.py | wisarut-sirimart/Python-Baseball | f794455d4a217d7684bd86fdff19d1706bf7aab2 | [
"MIT"
] | null | null | null | stats/offense.py | wisarut-sirimart/Python-Baseball | f794455d4a217d7684bd86fdff19d1706bf7aab2 | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
from data import games
# Select All Plays
# In the file called offense.py in the stats folder you will find similar imports as the last module.
# Import the games DataFrame from data.
# Now that we have access to the games DataFrame.
# Select all rows that have a type... | 65.405797 | 239 | 0.731886 | 727 | 4,513 | 4.511692 | 0.287483 | 0.03628 | 0.039024 | 0.012805 | 0.120732 | 0.064634 | 0.064634 | 0.064634 | 0.043902 | 0.017683 | 0 | 0 | 0.15821 | 4,513 | 68 | 240 | 66.367647 | 0.863385 | 0.779526 | 0 | 0 | 0 | 0 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20bada261f2bc5bee2c060bfdfd13f8adc62d780 | 2,156 | py | Python | tests/gmprocess/io/read_test.py | baagaard-usgs/groundmotion-processing | 6be2b4460d598bba0935135efa85af2655578565 | [
"Unlicense"
] | 54 | 2019-01-12T02:05:38.000Z | 2022-03-29T19:43:56.000Z | tests/gmprocess/io/read_test.py | baagaard-usgs/groundmotion-processing | 6be2b4460d598bba0935135efa85af2655578565 | [
"Unlicense"
] | 700 | 2018-12-18T19:44:31.000Z | 2022-03-30T20:54:28.000Z | tests/gmprocess/io/read_test.py | baagaard-usgs/groundmotion-processing | 6be2b4460d598bba0935135efa85af2655578565 | [
"Unlicense"
] | 41 | 2018-11-29T23:17:56.000Z | 2022-03-31T04:04:23.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# stdlib imports
import os
from gmprocess.io.read import read_data, _get_format, _validate_format
from gmprocess.utils.test_utils import read_data_dir
from gmprocess.utils.config import get_config
def test_read():
config = get_config()
cosmos_files, _ = read_dat... | 35.344262 | 88 | 0.670223 | 286 | 2,156 | 4.688811 | 0.29021 | 0.089485 | 0.05742 | 0.071588 | 0.278896 | 0.234154 | 0.119314 | 0.071588 | 0.071588 | 0 | 0 | 0.056549 | 0.196197 | 2,156 | 60 | 89 | 35.933333 | 0.717253 | 0.033395 | 0 | 0.130435 | 0 | 0 | 0.157692 | 0.025 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.021739 | false | 0.021739 | 0.086957 | 0 | 0.108696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20be3885a4f5f899c0e126b28f81e284e4b6e23c | 633 | py | Python | tests/syft/lib/torch/device_test.py | JMLourier/PySyft | 065a862ca061f9a526af81db5b3ee0d39d4f6407 | [
"MIT"
] | 2 | 2020-03-06T15:51:52.000Z | 2020-03-08T13:14:24.000Z | tests/syft/lib/torch/device_test.py | JMLourier/PySyft | 065a862ca061f9a526af81db5b3ee0d39d4f6407 | [
"MIT"
] | 5 | 2020-12-03T21:06:20.000Z | 2020-12-31T03:46:57.000Z | tests/syft/lib/torch/device_test.py | JMLourier/PySyft | 065a862ca061f9a526af81db5b3ee0d39d4f6407 | [
"MIT"
] | 1 | 2020-12-05T07:22:27.000Z | 2020-12-05T07:22:27.000Z | # third party
import torch as th
# syft absolute
import syft as sy
from syft.core.common.uid import UID
from syft.lib.python import String
def test_device() -> None:
device = th.device("cuda")
assert device.type == "cuda"
assert device.index is None
def test_device_init() -> None:
bob = sy.VirtualM... | 23.444444 | 59 | 0.709321 | 90 | 633 | 4.8 | 0.444444 | 0.090278 | 0.060185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001938 | 0.184834 | 633 | 26 | 60 | 24.346154 | 0.835271 | 0.039494 | 0 | 0 | 0 | 0 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20bf152d1098acb69e542429f3dd7a20635a56bc | 8,495 | py | Python | clu/periodic_actions_test.py | andsteing/CommonLoopUtils | b39e992f60d041bc77809d859586027700a2c3a9 | [
"Apache-2.0"
] | 80 | 2020-10-11T17:37:52.000Z | 2022-03-30T17:17:05.000Z | clu/periodic_actions_test.py | andsteing/CommonLoopUtils | b39e992f60d041bc77809d859586027700a2c3a9 | [
"Apache-2.0"
] | 22 | 2020-12-18T15:12:04.000Z | 2021-09-24T08:10:23.000Z | clu/periodic_actions_test.py | andsteing/CommonLoopUtils | b39e992f60d041bc77809d859586027700a2c3a9 | [
"Apache-2.0"
] | 10 | 2020-10-13T16:35:30.000Z | 2022-02-08T21:00:00.000Z | # Copyright 2021 The CLU Authors.
#
# 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 writ... | 30.339286 | 80 | 0.671218 | 1,222 | 8,495 | 4.491817 | 0.211129 | 0.043724 | 0.038076 | 0.02423 | 0.566406 | 0.472035 | 0.435598 | 0.386774 | 0.322463 | 0.300055 | 0 | 0.036238 | 0.213891 | 8,495 | 279 | 81 | 30.448029 | 0.785714 | 0.143967 | 0 | 0.512077 | 0 | 0.014493 | 0.065653 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 1 | 0.111111 | false | 0.004831 | 0.028986 | 0.004831 | 0.169082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20c0713b32c4e888c8d8eba2e53d1e750e99ff54 | 570 | py | Python | _scripts/tools/utils/frontmatter_getter.py | gogntao/gogntao.github.io | ee200345d39521652b8c1cf9d27bcc2a6e02f3ef | [
"MIT"
] | null | null | null | _scripts/tools/utils/frontmatter_getter.py | gogntao/gogntao.github.io | ee200345d39521652b8c1cf9d27bcc2a6e02f3ef | [
"MIT"
] | null | null | null | _scripts/tools/utils/frontmatter_getter.py | gogntao/gogntao.github.io | ee200345d39521652b8c1cf9d27bcc2a6e02f3ef | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Read the posts and return a tuple that consisting of
Front Matter and its line number.
© 2018-2019 Cotes Chung
MIT License
'''
def get_yaml(path):
end = False
yaml = ""
num = 0
with open(path, 'r') as f:
for line in f.readlines():
... | 18.387097 | 52 | 0.452632 | 68 | 570 | 3.794118 | 0.764706 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.440351 | 570 | 30 | 53 | 19 | 0.77116 | 0.289474 | 0 | 0.125 | 0 | 0 | 0.010101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20c17791d1b4f3f9764ce5a02c3f17aa3c7d9e44 | 1,014 | py | Python | main/cart.py | Dogechi/Me2U | 0852600983dc1058ee347f4065ee801e16c1249e | [
"MIT"
] | null | null | null | main/cart.py | Dogechi/Me2U | 0852600983dc1058ee347f4065ee801e16c1249e | [
"MIT"
] | 9 | 2020-06-06T01:16:25.000Z | 2021-06-04T23:20:37.000Z | main/cart.py | Me2U-Afrika/Me2U | aee054afedff1e6c87f87494eaddf044e217aa95 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db.models import Max
from datetime import datetime, timedelta
from me2ushop.models import Order, OrderItem
def remove_old_cart_items():
print('Removing old carts')
print('session age:', settings.SESSION_AGE_DAYS)
# calculate date of session age days ago
rem... | 36.214286 | 90 | 0.708087 | 145 | 1,014 | 4.731034 | 0.406897 | 0.05102 | 0.061224 | 0.087464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001208 | 0.183432 | 1,014 | 27 | 91 | 37.555556 | 0.827295 | 0.088757 | 0 | 0 | 0 | 0 | 0.102063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.227273 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20c351d08261a89f6671fb61ae44dfb0f32ca3f0 | 3,658 | py | Python | tasks/python3/processTemporalLayer.py | greck2908/worldview | d17c463080218ce0a3d922be3dc8da5152860391 | [
"NASA-1.3"
] | 1 | 2021-03-01T22:10:14.000Z | 2021-03-01T22:10:14.000Z | tasks/python3/processTemporalLayer.py | greck2908/worldview | d17c463080218ce0a3d922be3dc8da5152860391 | [
"NASA-1.3"
] | 4 | 2021-12-03T00:01:57.000Z | 2022-03-22T21:01:34.000Z | tasks/python3/processTemporalLayer.py | greck2908/worldview | d17c463080218ce0a3d922be3dc8da5152860391 | [
"NASA-1.3"
] | null | null | null | from datetime import datetime
import isodate
import re
import traceback
def to_list(val):
return [val] if not hasattr(val, 'reverse') else val
# Add duration to end date using
# ISO 8601 duration keys
def determine_end_date(key, date):
return date + isodate.parse_duration(key)
# This method takes a layer and... | 49.432432 | 161 | 0.541006 | 455 | 3,658 | 4.204396 | 0.224176 | 0.054888 | 0.021955 | 0.034501 | 0.355985 | 0.315212 | 0.291166 | 0.187663 | 0.104548 | 0.041819 | 0 | 0.007764 | 0.29579 | 3,658 | 73 | 162 | 50.109589 | 0.73486 | 0.038272 | 0 | 0.19697 | 0 | 0 | 0.121549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.060606 | 0.030303 | 0.151515 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20c46aef8b21547d823f1dda228583f79f1a470c | 1,162 | py | Python | baal/active/__init__.py | llv22/baal_tf2.4_mac | 6eed225f8b57e61d8d16b1868ea655384c566700 | [
"Apache-2.0"
] | 575 | 2019-09-30T20:44:28.000Z | 2022-03-27T17:39:22.000Z | baal/active/__init__.py | llv22/baal_tf2.4_mac | 6eed225f8b57e61d8d16b1868ea655384c566700 | [
"Apache-2.0"
] | 84 | 2019-10-01T15:58:55.000Z | 2022-03-28T13:27:32.000Z | baal/active/__init__.py | llv22/baal_tf2.4_mac | 6eed225f8b57e61d8d16b1868ea655384c566700 | [
"Apache-2.0"
] | 51 | 2019-10-08T23:05:39.000Z | 2022-02-14T22:13:27.000Z | from typing import Union, Callable
from . import heuristics
from .active_loop import ActiveLearningLoop
from .dataset import ActiveLearningDataset
from .file_dataset import FileDataset
def get_heuristic(
name: str, shuffle_prop: float = 0.0, reduction: Union[str, Callable] = "none", **kwargs
) -> heuristics.Abst... | 33.2 | 92 | 0.69191 | 117 | 1,162 | 6.803419 | 0.470085 | 0.055276 | 0.040201 | 0.062814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002186 | 0.212565 | 1,162 | 34 | 93 | 34.176471 | 0.86776 | 0.273666 | 0 | 0 | 0 | 0 | 0.08125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20c55612c6dde9a99bf02d10377bbecda4d7f7ce | 1,916 | py | Python | migrations/versions/e454b1597ab0_.py | Maybells/PostClassical | cbb45add86463deb942825d3c792bc8b6dcdd29b | [
"MIT"
] | null | null | null | migrations/versions/e454b1597ab0_.py | Maybells/PostClassical | cbb45add86463deb942825d3c792bc8b6dcdd29b | [
"MIT"
] | null | null | null | migrations/versions/e454b1597ab0_.py | Maybells/PostClassical | cbb45add86463deb942825d3c792bc8b6dcdd29b | [
"MIT"
] | null | null | null | """empty message
Revision ID: e454b1597ab0
Revises:
Create Date: 2021-01-19 11:50:17.899068
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e454b1597ab0'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 40.765957 | 86 | 0.693111 | 252 | 1,916 | 4.984127 | 0.269841 | 0.047771 | 0.101911 | 0.127389 | 0.558917 | 0.511147 | 0.511147 | 0.479299 | 0.375796 | 0.300955 | 0 | 0.021661 | 0.132568 | 1,916 | 46 | 87 | 41.652174 | 0.734055 | 0.147704 | 0 | 0.214286 | 0 | 0 | 0.302005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20c609aa615f44f48228ba80019cfecbd7a032e3 | 3,249 | py | Python | config/application.py | dlsaavedra/Web-API | b3ad6d7d7dc7434c630ac4dcff3a805bba5e47a9 | [
"MIT"
] | null | null | null | config/application.py | dlsaavedra/Web-API | b3ad6d7d7dc7434c630ac4dcff3a805bba5e47a9 | [
"MIT"
] | null | null | null | config/application.py | dlsaavedra/Web-API | b3ad6d7d7dc7434c630ac4dcff3a805bba5e47a9 | [
"MIT"
] | null | null | null | from os import getenv
from pathlib import Path
from dotenv import load_dotenv
base_path = Path('.') # Fully qualified path to the project root
env_path = base_path / '.env' # Fully qualified path to the enviroment file
app_path = base_path.joinpath('app') # The fully qualified path to the app fold... | 48.492537 | 100 | 0.492767 | 324 | 3,249 | 4.882716 | 0.429012 | 0.018963 | 0.05689 | 0.063211 | 0.078382 | 0.049305 | 0 | 0 | 0 | 0 | 0 | 0.000751 | 0.180055 | 3,249 | 66 | 101 | 49.227273 | 0.593093 | 0.73715 | 0 | 0 | 0 | 0 | 0.152416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20cca36f0660a5cec8d40a240e5c97178d31a054 | 5,511 | py | Python | predict.py | ciampluca/counting_perineuronal_nets | 29463a4810b74943ee5234673e9e0816716b7fee | [
"Apache-2.0"
] | 6 | 2021-12-16T13:47:56.000Z | 2022-02-05T09:49:37.000Z | predict.py | ciampluca/counting_perineuronal_nets | 29463a4810b74943ee5234673e9e0816716b7fee | [
"Apache-2.0"
] | 1 | 2021-06-28T17:09:48.000Z | 2021-06-28T18:58:04.000Z | predict.py | ciampluca/counting_perineuronal_nets | 29463a4810b74943ee5234673e9e0816716b7fee | [
"Apache-2.0"
] | null | null | null | import argparse
from pathlib import Path
import hydra
from omegaconf import OmegaConf
import torch
from torch.utils.data import DataLoader
from tqdm import tqdm
from datasets.patched_datasets import PatchedMultiImageDataset, RandomAccessMultiImageDataset
@torch.no_grad()
def score_patches(loader, model, device, cfg)... | 43.054688 | 141 | 0.678098 | 717 | 5,511 | 5.033473 | 0.276151 | 0.0266 | 0.021336 | 0.020781 | 0.446107 | 0.420615 | 0.387919 | 0.387919 | 0.387919 | 0.387919 | 0 | 0.00243 | 0.178552 | 5,511 | 127 | 142 | 43.393701 | 0.794787 | 0.00254 | 0 | 0.397959 | 0 | 0 | 0.205641 | 0.044586 | 0 | 0 | 0 | 0.007874 | 0 | 1 | 0.020408 | false | 0 | 0.081633 | 0 | 0.112245 | 0.112245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20cda404e20b8445bfe6243758a4bf304606f130 | 375 | py | Python | test/test.py | innovate-invent/configutator | 372b45c44a10171b8518e61f2a7974969304c33a | [
"MIT"
] | null | null | null | test/test.py | innovate-invent/configutator | 372b45c44a10171b8518e61f2a7974969304c33a | [
"MIT"
] | 1 | 2017-09-22T05:52:54.000Z | 2017-09-22T05:52:54.000Z | test/test.py | innovate-invent/configutator | 372b45c44a10171b8518e61f2a7974969304c33a | [
"MIT"
] | null | null | null | from configutator import ConfigMap, ArgMap, EnvMap, loadConfig
import sys
def test(param1: int, param2: str):
"""
This is a test
:param param1: An integer
:param param2: A string
:return: Print the params
"""
print(param1, param2)
if __name__ == '__main__':
for argMap in loadConfig(sys... | 22.058824 | 62 | 0.642667 | 48 | 375 | 4.854167 | 0.645833 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020906 | 0.234667 | 375 | 16 | 63 | 23.4375 | 0.790941 | 0.24 | 0 | 0 | 0 | 0 | 0.046875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20cdcbc31867bb9709b928a4acae70fbdca1641b | 3,211 | py | Python | util/dates.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 13 | 2020-12-14T19:56:04.000Z | 2021-11-06T13:24:48.000Z | util/dates.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 5 | 2020-12-14T19:56:30.000Z | 2021-09-22T22:09:39.000Z | util/dates.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 3 | 2021-03-24T03:55:08.000Z | 2022-01-13T15:22:34.000Z | import calendar
from datetime import date, datetime, timedelta
from time import localtime
from django.utils.translation import ugettext_lazy as _
def add_business_days(from_date, add_days):
"""
This is just used to add business days to a function. Should be moved to util.
"""
business_days_to_add = ad... | 30.875 | 116 | 0.638742 | 476 | 3,211 | 4.168067 | 0.27521 | 0.054435 | 0.035282 | 0.025706 | 0.059476 | 0.059476 | 0.032258 | 0 | 0 | 0 | 0 | 0.017999 | 0.255995 | 3,211 | 103 | 117 | 31.174757 | 0.812474 | 0.236064 | 0 | 0.080645 | 0 | 0 | 0.011003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.064516 | 0.064516 | 0.467742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20d29550aa2f57d0c74fa67f5970acb95e350f79 | 2,771 | py | Python | LocadoraDeFilmes/funcoes_dos_filmes.py | JoaoVitorBernardino/Sistema-de-locadora-de-filmes | cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846 | [
"MIT"
] | null | null | null | LocadoraDeFilmes/funcoes_dos_filmes.py | JoaoVitorBernardino/Sistema-de-locadora-de-filmes | cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846 | [
"MIT"
] | null | null | null | LocadoraDeFilmes/funcoes_dos_filmes.py | JoaoVitorBernardino/Sistema-de-locadora-de-filmes | cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846 | [
"MIT"
] | null | null | null | import os
from DataBase.dados_filmes import *
from DataBase.dados_aluguel import *
def cadastrar_filme():
os.system('cls' if os.name == 'nt' else 'clear')
nome = input('Digite o nome do filme: ')
ano = input('Digite o ano de lançamento do filme: ')
codigo = input('Digite o código do filme: ')
filme... | 32.6 | 103 | 0.582461 | 342 | 2,771 | 4.619883 | 0.266082 | 0.11519 | 0.027848 | 0.032911 | 0.489873 | 0.468354 | 0.418987 | 0.418987 | 0.418987 | 0.311392 | 0 | 0.0148 | 0.268495 | 2,771 | 85 | 104 | 32.6 | 0.764677 | 0 | 0 | 0.342857 | 0 | 0.028571 | 0.27886 | 0.007576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.042857 | 0 | 0.142857 | 0.157143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20d2eced67b2dc37a106dd6188cfaac2ce3f1efd | 599 | py | Python | find-optional-modules/delete-pyc.py | berkut-174/salt-windows-msi | 3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0 | [
"Apache-2.0"
] | null | null | null | find-optional-modules/delete-pyc.py | berkut-174/salt-windows-msi | 3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0 | [
"Apache-2.0"
] | null | null | null | find-optional-modules/delete-pyc.py | berkut-174/salt-windows-msi | 3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0 | [
"Apache-2.0"
] | null | null | null | ''' delete pyc except salt-minion.pyc '''
from __future__ import print_function
import os
SRCDIR = r'c:\salt'
def action(start_path):
skipped = 0
deleted = 0
for dirpath, dirnames, filenames in os.walk(start_path):
for f in filenames:
fp = os.path.join(dirpath, f)
if fp.en... | 23.038462 | 60 | 0.534224 | 71 | 599 | 4.408451 | 0.507042 | 0.063898 | 0.083067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010178 | 0.343907 | 599 | 25 | 61 | 23.96 | 0.78626 | 0.055092 | 0 | 0 | 0 | 0 | 0.082585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20d36a5f003e151ad485d22dfd0ea098ae87f73e | 387 | py | Python | DeepLearningAI/notification.py | philson-philip/harp | 8e38573cad1c3e16c062044a8f011658293d1531 | [
"MIT"
] | 1 | 2019-02-08T20:14:14.000Z | 2019-02-08T20:14:14.000Z | DeepLearningAI/notification.py | philson-philip/harp | 8e38573cad1c3e16c062044a8f011658293d1531 | [
"MIT"
] | 6 | 2021-03-18T22:10:34.000Z | 2022-03-11T23:40:16.000Z | DeepLearningAI/notification.py | philson-philip/harp | 8e38573cad1c3e16c062044a8f011658293d1531 | [
"MIT"
] | 3 | 2019-02-08T20:14:23.000Z | 2019-03-10T06:10:07.000Z | from win10toast import ToastNotifier
import time
def Notify(MessageTitle,MessageBody):
toaster = ToastNotifier()
toaster.show_toast(MessageTitle,
MessageBody,
icon_path="logo.ico",
duration=3,threaded=True)
from playsound import playsound
playsound('Notifi... | 35.181818 | 53 | 0.689922 | 40 | 387 | 6.6 | 0.725 | 0.174242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023333 | 0.224806 | 387 | 11 | 53 | 35.181818 | 0.856667 | 0 | 0 | 0 | 0 | 0 | 0.064433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20d57f78d8a0255a09b457d1362b139f81bf6db0 | 2,883 | py | Python | datasets/cifar10.py | killianlevacher/defenseInvGAN-src | 8fa398536773c5bc00c906562d2d9359572b8157 | [
"MIT"
] | 14 | 2019-12-12T11:28:18.000Z | 2022-03-09T11:56:04.000Z | datasets/cifar10.py | killianlevacher/defenseInvGAN-src | 8fa398536773c5bc00c906562d2d9359572b8157 | [
"MIT"
] | 7 | 2019-12-16T22:20:01.000Z | 2022-02-10T00:45:21.000Z | datasets/cifar10.py | killianlevacher/defenseInvGAN-src | 8fa398536773c5bc00c906562d2d9359572b8157 | [
"MIT"
] | 2 | 2020-04-01T09:02:00.000Z | 2021-08-01T14:27:11.000Z | import os
import numpy as np
import cPickle as pickle
from datasets.dataset import Dataset
class Cifar10(Dataset):
"""Implements the Dataset class to handle CIFAR-10.
Attributes:
y_dim: The dimension of label vectors (number of classes).
split_data: A dictionary of
{
... | 30.347368 | 101 | 0.534513 | 355 | 2,883 | 4.24507 | 0.287324 | 0.042468 | 0.053086 | 0.045123 | 0.285335 | 0.236231 | 0.216324 | 0.180491 | 0.180491 | 0.180491 | 0 | 0.036559 | 0.354839 | 2,883 | 94 | 102 | 30.670213 | 0.773656 | 0.248699 | 0 | 0.074074 | 0 | 0 | 0.055149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20d64baaf85f6901221960787dd47f6f3ae74d9b | 759 | py | Python | tests/test_collide.py | csayres/kaiju | 0b4ca4fab5322351b97b8316b2d755d91bc05c16 | [
"BSD-3-Clause"
] | null | null | null | tests/test_collide.py | csayres/kaiju | 0b4ca4fab5322351b97b8316b2d755d91bc05c16 | [
"BSD-3-Clause"
] | null | null | null | tests/test_collide.py | csayres/kaiju | 0b4ca4fab5322351b97b8316b2d755d91bc05c16 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import kaiju
from kaiju.robotGrid import RobotGridNominal
from kaiju import utils
def test_collide(plot=False):
# should make a grid
rg = RobotGridNominal()
collidedRobotIDs = []
for rid, r in rg.robotDict.items():
if r.holeID == "R-13C1":
r.setAlphaBeta(90,0)
coll... | 24.483871 | 104 | 0.648221 | 97 | 759 | 4.958763 | 0.515464 | 0.068607 | 0.033264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048027 | 0.231884 | 759 | 31 | 105 | 24.483871 | 0.777015 | 0.023715 | 0 | 0.086957 | 0 | 0 | 0.048649 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20d675e25832cd9793c5f67b4cb83f944dbf455c | 2,839 | py | Python | Lib/site-packages/psycopg/__init__.py | RosaSineSpinis/twitter_bitcon_tag_analyser | 3311022b6fd629ce85f0c4fa0516e310bed05d74 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/psycopg/__init__.py | RosaSineSpinis/twitter_bitcon_tag_analyser | 3311022b6fd629ce85f0c4fa0516e310bed05d74 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/psycopg/__init__.py | RosaSineSpinis/twitter_bitcon_tag_analyser | 3311022b6fd629ce85f0c4fa0516e310bed05d74 | [
"bzip2-1.0.6"
] | null | null | null | """
psycopg -- PostgreSQL database adapter for Python
"""
# Copyright (C) 2020-2021 The Psycopg Team
import logging
from . import pq # noqa: F401 import early to stabilize side effects
from . import types
from . import postgres
from .copy import Copy, AsyncCopy
from ._enums import IsolationLevel
from .cursor import... | 27.563107 | 76 | 0.738288 | 304 | 2,839 | 6.819079 | 0.480263 | 0.019296 | 0.023155 | 0.037627 | 0.0685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012409 | 0.176823 | 2,839 | 102 | 77 | 27.833333 | 0.874626 | 0.241634 | 0 | 0 | 0 | 0 | 0.211069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20d72cb6f933da26640aaaa4fbce23b2cbb317bd | 434 | py | Python | Datasets/Terrain/us_ned_topo_diversity.py | liuxb555/earthengine-py-examples | cff5d154b15a17d6a241e3c003b7fc9a2c5903f3 | [
"MIT"
] | 75 | 2020-06-09T14:40:11.000Z | 2022-03-07T08:38:10.000Z | Datasets/Terrain/us_ned_topo_diversity.py | gentaprekazi/earthengine-py-examples | 76ae8e071a71b343f5e464077afa5b0ed2f9314c | [
"MIT"
] | 1 | 2022-03-15T02:23:45.000Z | 2022-03-15T02:23:45.000Z | Datasets/Terrain/us_ned_topo_diversity.py | gentaprekazi/earthengine-py-examples | 76ae8e071a71b343f5e464077afa5b0ed2f9314c | [
"MIT"
] | 35 | 2020-06-12T23:23:48.000Z | 2021-11-15T17:34:50.000Z | import ee
import geemap
# Create a map centered at (lat, lon).
Map = geemap.Map(center=[40, -100], zoom=4)
dataset = ee.Image('CSP/ERGo/1_0/US/topoDiversity')
usTopographicDiversity = dataset.select('constant')
usTopographicDiversityVis = {
'min': 0.0,
'max': 1.0,
}
Map.setCenter(-111.313, 39.724, 6)
Map.addLaye... | 21.7 | 54 | 0.71659 | 57 | 434 | 5.438596 | 0.701754 | 0.012903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064343 | 0.140553 | 434 | 19 | 55 | 22.842105 | 0.766756 | 0.12212 | 0 | 0 | 0 | 0 | 0.177249 | 0.07672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20d89580fd6577e22f09078f9105ed4eb217404f | 6,139 | py | Python | cnn_to_mlp.py | minimario/CNN-Cert | 0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c | [
"Apache-2.0"
] | 54 | 2020-09-09T12:43:43.000Z | 2022-03-17T17:31:19.000Z | cnn_to_mlp.py | jinzh154/CNN-Cert | 0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c | [
"Apache-2.0"
] | 9 | 2019-04-26T15:33:21.000Z | 2022-02-17T13:20:47.000Z | cnn_to_mlp.py | jinzh154/CNN-Cert | 0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c | [
"Apache-2.0"
] | 16 | 2019-02-17T03:02:36.000Z | 2021-05-17T13:59:07.000Z | """
cnn_to_mlp.py
Converts CNNs to MLP networks
Copyright (C) 2018, Akhilan Boopathy <akhilan@mit.edu>
Lily Weng <twweng@mit.edu>
Pin-Yu Chen <Pin-Yu.Chen@ibm.com>
Sijia Liu <Sijia.Liu@ibm.com>
Luca Daniel <dluca@mit.edu>
"""
from tenso... | 42.93007 | 127 | 0.620948 | 904 | 6,139 | 3.90708 | 0.211283 | 0.068516 | 0.087203 | 0.065402 | 0.384768 | 0.353907 | 0.209513 | 0.047565 | 0 | 0 | 0 | 0.042891 | 0.251833 | 6,139 | 142 | 128 | 43.232394 | 0.726105 | 0.069555 | 0 | 0.036036 | 0 | 0.009009 | 0.249298 | 0.218574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036036 | false | 0.009009 | 0.108108 | 0.009009 | 0.171171 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20da2372e14378343601425914ba9a4d487c8b91 | 5,328 | py | Python | libsymple.py | aoeftiger/PySymple | 00b887a59a107426d940aeb1e42a30a521b5729d | [
"MIT"
] | 1 | 2019-12-18T15:30:19.000Z | 2019-12-18T15:30:19.000Z | libsymple.py | aoeftiger/PySymple | 00b887a59a107426d940aeb1e42a30a521b5729d | [
"MIT"
] | null | null | null | libsymple.py | aoeftiger/PySymple | 00b887a59a107426d940aeb1e42a30a521b5729d | [
"MIT"
] | null | null | null | '''
Copyright 2014 by Adrian Oeftiger, oeftiger@cern.ch
This module provides various numerical integration methods
for Hamiltonian vector fields on (currently two-dimensional) phase space.
The integrators are separated according to symplecticity.
The method is_symple() is provided to check for symplecticity
of a given... | 45.152542 | 77 | 0.647147 | 835 | 5,328 | 3.906587 | 0.214371 | 0.077253 | 0.055181 | 0.062538 | 0.502452 | 0.434703 | 0.409258 | 0.366953 | 0.326487 | 0.326487 | 0 | 0.021701 | 0.256194 | 5,328 | 117 | 78 | 45.538462 | 0.801413 | 0.389077 | 0 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0 | 0.044776 | 0 | 0.283582 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20df31b6f10759e65d52beef5fda7d1f46c80d54 | 1,592 | py | Python | python/climate_ae/data_generator/utils.py | kueddelmaier/latent-linear-adjustment-autoencoders | f180732695a6c2abd8a9ad9d8cfeed2f82f047bb | [
"MIT"
] | 3 | 2020-10-29T19:08:27.000Z | 2021-08-14T09:19:48.000Z | python/climate_ae/data_generator/utils.py | kueddelmaier/latent-linear-adjustment-autoencoders | f180732695a6c2abd8a9ad9d8cfeed2f82f047bb | [
"MIT"
] | 6 | 2020-11-13T19:01:07.000Z | 2022-01-04T09:34:05.000Z | python/climate_ae/data_generator/utils.py | kueddelmaier/latent-linear-adjustment-autoencoders | f180732695a6c2abd8a9ad9d8cfeed2f82f047bb | [
"MIT"
] | 1 | 2021-03-01T15:28:56.000Z | 2021-03-01T15:28:56.000Z | import numpy as np
import tensorflow as tf
def parse_dataset(example_proto, img_size_h, img_size_w, img_size_d, dim_anno1,
dim_anno2, dim_anno3, dtype_img=tf.float64):
features = {
'inputs': tf.io.FixedLenFeature(shape=[], dtype=tf.string),
'annotations': tf.io.FixedLenFeature(shape=[dim_anno... | 41.894737 | 84 | 0.704774 | 217 | 1,592 | 4.935484 | 0.258065 | 0.033613 | 0.124183 | 0.156863 | 0.385621 | 0.360411 | 0.331466 | 0.161531 | 0.128852 | 0.084034 | 0 | 0.021005 | 0.162688 | 1,592 | 38 | 85 | 41.894737 | 0.782446 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20e282771bc57317c73491a2286791812cf8bb2b | 2,715 | py | Python | microsim/column_names.py | dabreegster/RAMP-UA | 04b7473aed441080ee10b6f68eb8b9135dac6879 | [
"MIT"
] | 10 | 2020-07-01T15:04:28.000Z | 2021-11-01T17:04:27.000Z | microsim/column_names.py | dabreegster/RAMP-UA | 04b7473aed441080ee10b6f68eb8b9135dac6879 | [
"MIT"
] | 229 | 2020-05-12T12:21:57.000Z | 2022-03-22T09:40:12.000Z | microsim/column_names.py | dabreegster/RAMP-UA | 04b7473aed441080ee10b6f68eb8b9135dac6879 | [
"MIT"
] | 10 | 2020-04-29T16:17:28.000Z | 2021-12-23T13:11:30.000Z | class ColumnNames:
"""Used to record standard dataframe column names used throughout"""
LOCATION_DANGER = "Danger" # Danger associated with a location
LOCATION_NAME = "Location_Name" # Name of a location
LOCATION_ID = "ID" # Unique ID for each location
# Define the different types of activities... | 46.810345 | 115 | 0.704236 | 353 | 2,715 | 5.260623 | 0.419263 | 0.035003 | 0.012924 | 0.025848 | 0.112547 | 0.08993 | 0.074313 | 0 | 0 | 0 | 0 | 0.010552 | 0.232044 | 2,715 | 58 | 116 | 46.810345 | 0.880096 | 0.492449 | 0 | 0 | 0 | 0 | 0.179392 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0 | false | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20e4504512f6f3017cd6e385cfabae07f81ee87a | 382 | py | Python | datasets/script/ds_cut_last.py | PoCInnovation/SmartShark | 2cf5eb32306fb5bd88972f44331322ae58d4bb2c | [
"MIT"
] | 26 | 2020-11-26T13:05:31.000Z | 2022-03-22T11:04:41.000Z | datasets/script/ds_cut_last.py | PoCFrance/SmartShark | 2cf5eb32306fb5bd88972f44331322ae58d4bb2c | [
"MIT"
] | 4 | 2020-09-26T16:30:47.000Z | 2022-03-06T18:02:52.000Z | datasets/script/ds_cut_last.py | PoCFrance/SmartShark | 2cf5eb32306fb5bd88972f44331322ae58d4bb2c | [
"MIT"
] | 9 | 2021-01-19T16:44:23.000Z | 2022-02-15T21:06:29.000Z | fichier = open("/run/media/Thytu/TOSHIBA EXT/PoC/Smartshark/DS/ds_benign_cleaned_div_3.csv", "r")
pos = 12 #pos to flatten
def flat_line(line, target):
index = 0
pos = 0
for l in line:
pos += 1
if (l == ','):
index += 1
if index == target:
break;
print(l... | 21.222222 | 97 | 0.552356 | 57 | 382 | 3.596491 | 0.578947 | 0.102439 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030418 | 0.311518 | 382 | 17 | 98 | 22.470588 | 0.749049 | 0.036649 | 0 | 0 | 0 | 0 | 0.207084 | 0.19891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20e53640a34afd90bd7994b855aba3b499daef58 | 835 | py | Python | Scripts/python/setup_k8s_thirdparty.py | SnowPhoenix0105/ToolSite | c5084010665434711867b1b5cd4915fe79ab2c7b | [
"MIT"
] | null | null | null | Scripts/python/setup_k8s_thirdparty.py | SnowPhoenix0105/ToolSite | c5084010665434711867b1b5cd4915fe79ab2c7b | [
"MIT"
] | 7 | 2021-08-28T09:27:39.000Z | 2021-09-26T15:35:13.000Z | Scripts/python/setup_k8s_thirdparty.py | SnowPhoenix0105/ToolSite | c5084010665434711867b1b5cd4915fe79ab2c7b | [
"MIT"
] | null | null | null |
from python.utils.cmd_exec import cmd_exec
import json
import logging
from python.utils.path import Path, pcat
from logging import DEBUG
from python.utils.log import config_logging
_logger = logging.getLogger(__name__)
def setup_k8s_thirdparty():
list_path = Path.SCRIPTS_CONFIG_K8S_THIRD_PARTY_LIST
_logger.... | 29.821429 | 65 | 0.728144 | 119 | 835 | 4.697479 | 0.394958 | 0.125224 | 0.121646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.176048 | 835 | 27 | 66 | 30.925926 | 0.806686 | 0 | 0 | 0 | 0 | 0 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20e5596dc72fd005174ca47cd9087713926d0058 | 1,506 | py | Python | utils/callbacks.py | YossiAsher/utils | c389d061378fca0b5495691c999f93adfa882faf | [
"MIT"
] | null | null | null | utils/callbacks.py | YossiAsher/utils | c389d061378fca0b5495691c999f93adfa882faf | [
"MIT"
] | null | null | null | utils/callbacks.py | YossiAsher/utils | c389d061378fca0b5495691c999f93adfa882faf | [
"MIT"
] | null | null | null | import os.path
import glob
import wandb
import numpy as np
from tensorflow.keras.callbacks import Callback
class ValLog(Callback):
def __init__(self, dataset=None, table="predictions", project="svg-attention6", run=""):
super().__init__()
self.dataset = dataset
self.table_name = table
... | 40.702703 | 97 | 0.616866 | 191 | 1,506 | 4.691099 | 0.371728 | 0.098214 | 0.043527 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002639 | 0.24502 | 1,506 | 36 | 98 | 41.833333 | 0.7854 | 0 | 0 | 0 | 0 | 0 | 0.075697 | 0.022576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.166667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20e603c9bd357a4fc46fca97e132ad4376a93633 | 12,680 | py | Python | cirrocumulus/anndata_util.py | PfizerRD/cirrocumulus | c7ce0c8c3c246282046e6d373d60442af55d3f09 | [
"BSD-3-Clause"
] | null | null | null | cirrocumulus/anndata_util.py | PfizerRD/cirrocumulus | c7ce0c8c3c246282046e6d373d60442af55d3f09 | [
"BSD-3-Clause"
] | null | null | null | cirrocumulus/anndata_util.py | PfizerRD/cirrocumulus | c7ce0c8c3c246282046e6d373d60442af55d3f09 | [
"BSD-3-Clause"
] | 1 | 2022-02-06T23:08:26.000Z | 2022-02-06T23:08:26.000Z | import anndata
import numpy as np
import pandas as pd
DATA_TYPE_MODULE = 'module'
DATA_TYPE_UNS_KEY = 'data_type'
ADATA_MODULE_UNS_KEY = 'anndata_module'
def get_base(adata):
base = None
if 'log1p' in adata.uns and adata.uns['log1p']['base'] is not None:
base = adata.uns['log1p'][base]
return bas... | 41.168831 | 135 | 0.596688 | 1,621 | 12,680 | 4.400987 | 0.143122 | 0.038127 | 0.054668 | 0.021447 | 0.286655 | 0.207597 | 0.162321 | 0.121391 | 0.101205 | 0.088029 | 0 | 0.00833 | 0.289905 | 12,680 | 307 | 136 | 41.302932 | 0.783985 | 0.105205 | 0 | 0.174797 | 0 | 0 | 0.05272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028455 | false | 0.012195 | 0.028455 | 0 | 0.093496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20e7676617875b614527d964e3fa868094f4c605 | 4,450 | py | Python | python-code/dlib-learning/face_reco_from_camera.py | juxiangwu/image-processing | c644ef3386973b2b983c6b6b08f15dc8d52cd39f | [
"Apache-2.0"
] | 13 | 2018-09-07T02:29:07.000Z | 2021-06-18T08:40:09.000Z | python-code/dlib-learning/face_reco_from_camera.py | juxiangwu/image-processing | c644ef3386973b2b983c6b6b08f15dc8d52cd39f | [
"Apache-2.0"
] | null | null | null | python-code/dlib-learning/face_reco_from_camera.py | juxiangwu/image-processing | c644ef3386973b2b983c6b6b08f15dc8d52cd39f | [
"Apache-2.0"
] | 4 | 2019-06-20T00:09:39.000Z | 2021-07-15T10:14:36.000Z | # created at 2018-05-11
# updated at 2018-08-23
# support multi-faces now
# By coneypo
# Blog: http://www.cnblogs.com/AdaminXie
# GitHub: https://github.com/coneypo/Dlib_face_recognition_from_camera
import dlib # 人脸识别的库dlib
import numpy as np # 数据处理的库numpy
import cv2 # 图像处理的库OpenCv
import pandas as p... | 28.164557 | 120 | 0.634382 | 611 | 4,450 | 4.418985 | 0.368249 | 0.013333 | 0.02963 | 0.02037 | 0.123704 | 0.05037 | 0.043704 | 0.023704 | 0 | 0 | 0 | 0.038746 | 0.240225 | 4,450 | 158 | 121 | 28.164557 | 0.759834 | 0.26382 | 0 | 0.130435 | 0 | 0 | 0.076016 | 0.048402 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.057971 | 0 | 0.130435 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20eb50420f20c4e8a8059ec57505d6d0d5ad5fae | 1,602 | py | Python | GreyNsights/utils.py | kamathhrishi/GreyNSights | 9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f | [
"MIT"
] | 19 | 2021-02-24T12:28:04.000Z | 2021-10-06T11:55:46.000Z | GreyNsights/utils.py | kamathhrishi/GreyNSights | 9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f | [
"MIT"
] | 2 | 2021-08-11T01:25:14.000Z | 2021-08-11T01:26:32.000Z | GreyNsights/utils.py | kamathhrishi/GreyNSights | 9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f | [
"MIT"
] | null | null | null | # python dependencies
import codecs
import pickle
import struct
def pickle_string_to_obj(obj):
return pickle.loads(codecs.decode(obj, "base64"))
def get_encoded_obj(obj):
return codecs.encode(pickle.dumps(obj), "base64").decode()
def log_message(msg_type: str, message: str):
"""The default style of lo... | 22.56338 | 72 | 0.637328 | 230 | 1,602 | 4.347826 | 0.391304 | 0.035 | 0.024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010682 | 0.240325 | 1,602 | 70 | 73 | 22.885714 | 0.811011 | 0.244694 | 0 | 0.054054 | 0 | 0 | 0.046414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.081081 | 0.054054 | 0.459459 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20ed1b39d69f2ba4a229353cc72ed388d06f0047 | 4,568 | py | Python | scripts/location_map_report.py | xperylabhub/iLEAPP | fd1b301bf2094387f51ccdbd10ed233ce9abd687 | [
"MIT"
] | null | null | null | scripts/location_map_report.py | xperylabhub/iLEAPP | fd1b301bf2094387f51ccdbd10ed233ce9abd687 | [
"MIT"
] | null | null | null | scripts/location_map_report.py | xperylabhub/iLEAPP | fd1b301bf2094387f51ccdbd10ed233ce9abd687 | [
"MIT"
] | null | null | null | # coding: utf-8
#Import the necessary Python modules
import pandas as pd
import folium
from folium.plugins import TimestampedGeoJson
from shapely.geometry import Point
import os
from datetime import datetime
from branca.element import Template, MacroElement
import html
from scripts.location_map_constants import iLEAPP_... | 35.968504 | 170 | 0.613835 | 526 | 4,568 | 5.205323 | 0.385932 | 0.028123 | 0.032871 | 0.039445 | 0.14317 | 0.100804 | 0.089116 | 0.027757 | 0 | 0 | 0 | 0.011601 | 0.245184 | 4,568 | 126 | 171 | 36.253968 | 0.782483 | 0.029335 | 0 | 0 | 0 | 0 | 0.133725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029703 | false | 0 | 0.108911 | 0.009901 | 0.168317 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20eeefc46871bc4a82ccda95a4d09005d4444a71 | 1,096 | py | Python | src/BL/test/test_RandomNumber.py | yukiYamada/ThaGame | 4f206303d60b5760452a7eab8700626657f3e39e | [
"MIT"
] | null | null | null | src/BL/test/test_RandomNumber.py | yukiYamada/ThaGame | 4f206303d60b5760452a7eab8700626657f3e39e | [
"MIT"
] | null | null | null | src/BL/test/test_RandomNumber.py | yukiYamada/ThaGame | 4f206303d60b5760452a7eab8700626657f3e39e | [
"MIT"
] | null | null | null | # third party modules
import pytest
# user modules
from BL_main.RandomNumber import Number, Numbers, InvalidArgumentExceptionOfNumber
def test_NumberClass_InvalidException_underNumber():
'''
Test argument. under number.
'''
with pytest.raises(InvalidArgumentExceptionOfNumber):
Number.create(1)
... | 24.355556 | 82 | 0.667883 | 110 | 1,096 | 6.563636 | 0.445455 | 0.116343 | 0.074792 | 0.094183 | 0.252078 | 0.182825 | 0.182825 | 0 | 0 | 0 | 0 | 0.02515 | 0.238139 | 1,096 | 45 | 83 | 24.355556 | 0.839521 | 0.156022 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20f09232bbd39f5341bb954d6c3dd267beb0e85a | 10,058 | py | Python | venv/lib/python3.6/site-packages/ansible/module_utils/facts/hardware/aix.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/ansible/module_utils/facts/hardware/aix.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | ansible/ansible/module_utils/facts/hardware/aix.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 39.754941 | 137 | 0.509644 | 1,175 | 10,058 | 4.189787 | 0.236596 | 0.036563 | 0.031688 | 0.039001 | 0.235222 | 0.179159 | 0.114564 | 0.111721 | 0.085111 | 0.05586 | 0 | 0.031325 | 0.377908 | 10,058 | 252 | 138 | 39.912698 | 0.755474 | 0.185922 | 0 | 0.067073 | 0 | 0.006098 | 0.097004 | 0.012984 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042683 | false | 0 | 0.02439 | 0 | 0.140244 | 0.006098 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20f0b9c08e120b15c6e37ccd433da0ddfa26dd09 | 1,148 | py | Python | servicedirectory/src/sd-api/classes/urls.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | servicedirectory/src/sd-api/classes/urls.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | servicedirectory/src/sd-api/classes/urls.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | '''
(c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights
Reserved.
The copyright to the software program(s) is property of Telefonica I+D.
The program(s) may be used and or copied only with the express written
consent of Telefonica I+D or in accordance with the terms and conditions
stipulated in t... | 42.518519 | 106 | 0.743031 | 150 | 1,148 | 5.546667 | 0.48 | 0.064904 | 0.043269 | 0.036058 | 0.223558 | 0.223558 | 0.104567 | 0.060096 | 0 | 0 | 0 | 0.00398 | 0.124564 | 1,148 | 26 | 107 | 44.153846 | 0.823881 | 0.334495 | 0 | 0 | 0 | 0 | 0.201058 | 0.160053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20f40bb6774c781a86ff7385108395d2e004318d | 9,669 | py | Python | lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py | kbaseapps/kb_RDP_Classifier | 7ac139db66b0291c847084e0633cb311befd05e1 | [
"MIT"
] | null | null | null | lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py | kbaseapps/kb_RDP_Classifier | 7ac139db66b0291c847084e0633cb311befd05e1 | [
"MIT"
] | null | null | null | lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py | kbaseapps/kb_RDP_Classifier | 7ac139db66b0291c847084e0633cb311befd05e1 | [
"MIT"
] | 1 | 2021-09-24T18:18:40.000Z | 2021-09-24T18:18:40.000Z | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import logging
import os
import uuid
import shutil
from installed_clients.WorkspaceClient import Workspace
from installed_clients.DataFileUtilClient import DataFileUtil
from installed_clients.KBaseReportClient import KBaseReport
from installed_clients.GenericsAPIClient import Gene... | 28.862687 | 121 | 0.562416 | 1,078 | 9,669 | 4.820037 | 0.295918 | 0.025597 | 0.032717 | 0.017513 | 0.081601 | 0.068514 | 0.029253 | 0.010393 | 0 | 0 | 0 | 0.006351 | 0.332299 | 9,669 | 334 | 122 | 28.949102 | 0.793371 | 0.170338 | 0 | 0.090909 | 0 | 0 | 0.144652 | 0.02597 | 0 | 0 | 0 | 0 | 0.006494 | 1 | 0.019481 | false | 0.006494 | 0.103896 | 0 | 0.162338 | 0.006494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
20f473683e772c87b537f146508f569bdfe393ff | 4,189 | py | Python | image2text.py | minhpvwh/pytesseract-vie | 4159941a0f538845c535d090907cf230946cb4fe | [
"Leptonica",
"BSD-2-Clause"
] | null | null | null | image2text.py | minhpvwh/pytesseract-vie | 4159941a0f538845c535d090907cf230946cb4fe | [
"Leptonica",
"BSD-2-Clause"
] | null | null | null | image2text.py | minhpvwh/pytesseract-vie | 4159941a0f538845c535d090907cf230946cb4fe | [
"Leptonica",
"BSD-2-Clause"
] | null | null | null | import os
import cv2
import glob
import tqdm
import argparse
from skimage.filters import threshold_local
import pytesseract
import numpy as np
import random
def check_exist(path):
try:
if not os.path.exists(path):
os.mkdir(path)
except Exception:
raise ("please check your folder again")
pass
def median_fil... | 32.726563 | 108 | 0.610169 | 564 | 4,189 | 4.35461 | 0.297872 | 0.029316 | 0.027687 | 0.020765 | 0.168567 | 0.133958 | 0.087541 | 0.087541 | 0.061075 | 0.061075 | 0 | 0.028986 | 0.209358 | 4,189 | 127 | 109 | 32.984252 | 0.71256 | 0.170446 | 0 | 0.116279 | 0 | 0 | 0.081007 | 0.01426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034884 | false | 0.011628 | 0.104651 | 0 | 0.162791 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4545c91d0cdf7bdd633b1682893229895b5c4a88 | 2,808 | py | Python | mrkt/framework/platform/AWS.py | Tefx/Meerkat | ad9d4d3973a990406b976998dce9727b40139650 | [
"MIT"
] | null | null | null | mrkt/framework/platform/AWS.py | Tefx/Meerkat | ad9d4d3973a990406b976998dce9727b40139650 | [
"MIT"
] | null | null | null | mrkt/framework/platform/AWS.py | Tefx/Meerkat | ad9d4d3973a990406b976998dce9727b40139650 | [
"MIT"
] | null | null | null | from ...common.utils import patch;
patch()
import boto3
import urllib.request
from .PaaS import PaaS
from ..service import docker
from ...common.consts import *
COREOS_AMI_URL = "https://stable.release.core-os.net/amd64-usr/current/coreos_production_ami_hvm_{region}.txt"
COREOS_USERNAME = "core"
VM_TAG = [{"Resource... | 37.44 | 110 | 0.535613 | 290 | 2,808 | 4.951724 | 0.351724 | 0.02507 | 0.027159 | 0.022284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007151 | 0.352564 | 2,808 | 74 | 111 | 37.945946 | 0.782728 | 0 | 0 | 0 | 0 | 0.016129 | 0.09188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.096774 | 0.032258 | 0.306452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45485b7021d68a5f5cea1ac732317f7615814dbe | 3,099 | py | Python | csrweb/api/resources.py | edbeard/csrweb | aecf8b6199aa6ce04a89c549ea2b970369f750e1 | [
"MIT"
] | null | null | null | csrweb/api/resources.py | edbeard/csrweb | aecf8b6199aa6ce04a89c549ea2b970369f750e1 | [
"MIT"
] | null | null | null | csrweb/api/resources.py | edbeard/csrweb | aecf8b6199aa6ce04a89c549ea2b970369f750e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
csrweb.api.resources
~~~~~~~~~~~~~~~~~~~~
API resources.
:copyright: Copyright 2019 by Ed Beard.
:license: MIT, see LICENSE file for more details.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode... | 32.621053 | 133 | 0.700871 | 413 | 3,099 | 5.089588 | 0.363196 | 0.03568 | 0.030447 | 0.022835 | 0.151284 | 0.085633 | 0.055186 | 0.055186 | 0.055186 | 0.055186 | 0 | 0.011137 | 0.159729 | 3,099 | 94 | 134 | 32.968085 | 0.796083 | 0.137786 | 0 | 0 | 0 | 0 | 0.163134 | 0.015897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.25 | 0 | 0.35 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
454c3029fdf43b8fecffd75acd0e4868c4a676d6 | 273 | py | Python | src/submarine/submarine.py | mokshasoul/aoc-2021-python | 6e6f24659c45f32eab5302075c3c2c0a0a876a60 | [
"MIT"
] | null | null | null | src/submarine/submarine.py | mokshasoul/aoc-2021-python | 6e6f24659c45f32eab5302075c3c2c0a0a876a60 | [
"MIT"
] | null | null | null | src/submarine/submarine.py | mokshasoul/aoc-2021-python | 6e6f24659c45f32eab5302075c3c2c0a0a876a60 | [
"MIT"
] | null | null | null | import re
import numpy as np
class Submarine:
def __init__(self) -> None:
self.depth = 0
self.aim_depth = 0
self.gamma_rate = 0
self.epsilon_rate = 0
self.oxygen_generator_rate = 0
self.carbon_dioxide_scrubber = 0
| 21 | 40 | 0.608059 | 37 | 273 | 4.189189 | 0.594595 | 0.16129 | 0.174194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.326007 | 273 | 13 | 41 | 21 | 0.809783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |