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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b450cdc3b9ccbf44259b53088cde193f44fcd78c | 483 | py | Python | Exercises1_12/R-1.12.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | Exercises1_12/R-1.12.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | Exercises1_12/R-1.12.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | #Python's random module includes a function choice(data) that returns a
#random element from a non-empty sequence. The random modul includes a
#more basic function randrange,with parameterization similar to the
#built-in range function , that return a random choice from the given
#range.Using only the randrange func... | 48.3 | 72 | 0.78882 | 77 | 483 | 4.948052 | 0.61039 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.142857 | 483 | 10 | 73 | 48.3 | 0.905797 | 0.757764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
b45291fae69314faf72f4230d287a0ca6f8e5cfe | 10,093 | py | Python | database/mongo_connector.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | 1 | 2020-06-29T17:25:44.000Z | 2020-06-29T17:25:44.000Z | database/mongo_connector.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | null | null | null | database/mongo_connector.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
"""Tables:
data: pk timestamp field_name field_value source_record
We don't know what type each value will have, so have a column for
int, float, str and bool and leave all but the appropriate value type
NULL. Docs claim that NULL values take no space, so...
Still so many ways we could make ... | 31.442368 | 93 | 0.618548 | 1,356 | 10,093 | 4.475664 | 0.223451 | 0.032625 | 0.016312 | 0.020761 | 0.211402 | 0.178118 | 0.139067 | 0.102488 | 0.087 | 0.087 | 0 | 0.001839 | 0.245913 | 10,093 | 320 | 94 | 31.540625 | 0.795559 | 0.417319 | 0 | 0.088235 | 0 | 0 | 0.140257 | 0 | 0 | 0 | 0 | 0.003125 | 0 | 1 | 0.051471 | false | 0.007353 | 0.051471 | 0 | 0.191176 | 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 |
b4533a5f5cb54cabae74aca99fd6222059d74d85 | 1,822 | py | Python | benchmarks/cifar10/benchmark_sample_creator.py | aarati-K/one-access | 928788a8729770c665cb94db6891dfaf4f32d1fc | [
"MIT"
] | null | null | null | benchmarks/cifar10/benchmark_sample_creator.py | aarati-K/one-access | 928788a8729770c665cb94db6891dfaf4f32d1fc | [
"MIT"
] | 12 | 2018-12-01T23:30:20.000Z | 2018-12-19T02:56:34.000Z | benchmarks/cifar10/benchmark_sample_creator.py | aarati-K/one-access | 928788a8729770c665cb94db6891dfaf4f32d1fc | [
"MIT"
] | null | null | null | from store.cifar10 import Cifar10
import torchvision.transforms as transforms
import time
import matplotlib.pyplot as plt
batch_size = 1
rel_sample_size = 10000
ds = Cifar10(input_data_folder="/home/aarati/datasets/cifar-10-batches-py", \
max_batches=2, batch_size=batch_size, rel_sample_size=rel_sample_size, \
... | 36.44 | 125 | 0.660263 | 321 | 1,822 | 3.660436 | 0.457944 | 0.035745 | 0.033191 | 0.028936 | 0.200851 | 0.200851 | 0.200851 | 0.125957 | 0.125957 | 0.125957 | 0 | 0.195373 | 0.145993 | 1,822 | 49 | 126 | 37.183673 | 0.559769 | 0.643249 | 0 | 0 | 0 | 0 | 0.065811 | 0.065811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b4544908bc703c4da565a916d491bf32413a078b | 1,095 | py | Python | beet/contrib/render.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 46 | 2021-03-09T23:34:52.000Z | 2022-03-08T01:30:04.000Z | beet/contrib/render.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 127 | 2021-02-24T00:41:44.000Z | 2022-03-31T05:14:31.000Z | beet/contrib/render.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 9 | 2021-03-11T18:18:28.000Z | 2022-03-11T20:32:01.000Z | """Plugin that invokes the built-in template renderer."""
__all__ = [
"RenderOptions",
"render",
]
from typing import Dict, List
from pydantic import BaseModel
from beet import Context, configurable
class RenderOptions(BaseModel):
resource_pack: Dict[str, List[str]] = {}
data_pack: Dict[str, Lis... | 26.707317 | 79 | 0.630137 | 130 | 1,095 | 5.2 | 0.453846 | 0.053254 | 0.032544 | 0.044379 | 0.053254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265753 | 1,095 | 40 | 80 | 27.375 | 0.840796 | 0.110502 | 0 | 0 | 0 | 0 | 0.051921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.32 | 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 |
b45497bfff55851d8e2cfb1521b54e7ce3939306 | 15,269 | py | Python | customtkinter/customtkinter_progressbar.py | thisSELFmySELF/CustomTkinter | 9edb25d6c4604300641212fe664097d71ed12d0c | [
"CC0-1.0"
] | 1 | 2022-02-20T12:05:08.000Z | 2022-02-20T12:05:08.000Z | customtkinter/customtkinter_progressbar.py | thisSELFmySELF/CustomTkinter | 9edb25d6c4604300641212fe664097d71ed12d0c | [
"CC0-1.0"
] | null | null | null | customtkinter/customtkinter_progressbar.py | thisSELFmySELF/CustomTkinter | 9edb25d6c4604300641212fe664097d71ed12d0c | [
"CC0-1.0"
] | null | null | null | import sys
import tkinter
from .customtkinter_tk import CTk
from .customtkinter_frame import CTkFrame
from .appearance_mode_tracker import AppearanceModeTracker
from .customtkinter_color_manager import CTkColorManager
class CTkProgressBar(tkinter.Frame):
""" tkinter custom progressbar, always horizontal, values ... | 46.551829 | 150 | 0.568276 | 1,725 | 15,269 | 4.813333 | 0.124058 | 0.05781 | 0.046971 | 0.030712 | 0.518969 | 0.46417 | 0.408045 | 0.350476 | 0.315187 | 0.281946 | 0 | 0.015281 | 0.33997 | 15,269 | 327 | 151 | 46.69419 | 0.808593 | 0.08049 | 0 | 0.329268 | 0 | 0 | 0.072627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052846 | false | 0 | 0.02439 | 0 | 0.105691 | 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 |
b4566ae71e0167b9625fba644e2226d4778cf90a | 4,337 | py | Python | nvd3/multiChart.py | areski/python-nvd3 | 1890ad28e13f9a35d8b338817ef161720576538b | [
"MIT"
] | 442 | 2015-01-12T10:13:52.000Z | 2022-01-11T15:18:48.000Z | nvd3/multiChart.py | areski/python-nvd3 | 1890ad28e13f9a35d8b338817ef161720576538b | [
"MIT"
] | 106 | 2015-01-11T20:27:50.000Z | 2021-11-05T17:18:15.000Z | nvd3/multiChart.py | areski/python-nvd3 | 1890ad28e13f9a35d8b338817ef161720576538b | [
"MIT"
] | 161 | 2015-01-06T13:31:18.000Z | 2022-03-09T05:22:30.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Python-nvd3 is a Python wrapper for NVD3 graph library.
NVD3 is an attempt to build re-usable charts and chart components
for d3.js without taking away the power that d3.js gives you.
Project location : https://github.com/areski/python-nvd3
"""
from .NVD3Chart import NVD... | 34.975806 | 142 | 0.537929 | 536 | 4,337 | 4.208955 | 0.356343 | 0.043883 | 0.046543 | 0.021277 | 0.162677 | 0.10195 | 0.058511 | 0 | 0 | 0 | 0 | 0.060566 | 0.299516 | 4,337 | 123 | 143 | 35.260163 | 0.682028 | 0.633157 | 0 | 0.117647 | 0 | 0 | 0.133673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.147059 | 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 |
b456f67dd7f5c131a9b03642b6c76bf26ca01173 | 4,114 | py | Python | utils/config.py | AlbertiPot/nar | eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28 | [
"BSD-3-Clause"
] | 2 | 2022-02-08T06:45:41.000Z | 2022-02-09T03:49:54.000Z | utils/config.py | AlbertiPot/nar | eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28 | [
"BSD-3-Clause"
] | null | null | null | utils/config.py | AlbertiPot/nar | eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28 | [
"BSD-3-Clause"
] | null | null | null | """
Date: 2021/09/23
Target: config utilities for yml file.
implementation adapted from Slimmable: https://github.com/JiahuiYu/slimmable_networks.git
"""
import os
import yaml
class LoaderMeta(type):
"""
Constructor for supporting `!include`.
"""
def __new__(mcs, __name__, __bases__, __dict__):
... | 33.177419 | 89 | 0.528439 | 442 | 4,114 | 4.58371 | 0.266968 | 0.035538 | 0.032577 | 0.035538 | 0.325765 | 0.264561 | 0.224087 | 0.194472 | 0.174235 | 0.125864 | 0 | 0.004904 | 0.355615 | 4,114 | 124 | 90 | 33.177419 | 0.759336 | 0.109383 | 0 | 0.411765 | 0 | 0 | 0.030252 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.094118 | false | 0 | 0.023529 | 0 | 0.235294 | 0.011765 | 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 |
b4572258e2d4b6f3324edd66303f6bcb5c6923f1 | 2,817 | py | Python | src/extensions/COMMANDS/CommitCommand.py | DMTF/python-redfish-utility | 4e084d47152aeaede576b32252a38b7dc4525dcb | [
"BSD-3-Clause"
] | 15 | 2017-01-20T02:25:05.000Z | 2022-03-26T17:42:47.000Z | src/extensions/COMMANDS/CommitCommand.py | DMTF/python-redfish-utility | 4e084d47152aeaede576b32252a38b7dc4525dcb | [
"BSD-3-Clause"
] | 5 | 2017-05-11T17:07:26.000Z | 2018-08-03T18:08:27.000Z | src/extensions/COMMANDS/CommitCommand.py | DMTF/python-redfish-utility | 4e084d47152aeaede576b32252a38b7dc4525dcb | [
"BSD-3-Clause"
] | 11 | 2017-01-24T22:50:20.000Z | 2022-03-22T18:40:31.000Z | ###
# Copyright Notice:
# Copyright 2016 Distributed Management Task Force, Inc. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/python-redfish-utility/blob/master/LICENSE.md
###
""" Commit Command for RDMC """
import sys
from optparse import OptionPars... | 33.535714 | 127 | 0.587504 | 260 | 2,817 | 6.288462 | 0.492308 | 0.019572 | 0.020795 | 0.024465 | 0.04159 | 0.04159 | 0 | 0 | 0 | 0 | 0 | 0.002625 | 0.323749 | 2,817 | 83 | 128 | 33.939759 | 0.855643 | 0.213348 | 0 | 0.136364 | 0 | 0 | 0.158762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.090909 | 0 | 0.295455 | 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 |
b4576da0f0a8dc0e5c329b27142e2588b0fb6f46 | 16,721 | py | Python | rosetta/views.py | evrenesat/ganihomes | eece2d8d957989b176cc5a36d723f676862f8d17 | [
"BSD-2-Clause"
] | 24 | 2016-08-06T18:10:54.000Z | 2022-03-04T11:47:39.000Z | rosetta/views.py | evrenesat/ganihomes | eece2d8d957989b176cc5a36d723f676862f8d17 | [
"BSD-2-Clause"
] | 1 | 2017-03-28T02:36:50.000Z | 2017-03-28T07:18:57.000Z | rosetta/views.py | evrenesat/ganihomes | eece2d8d957989b176cc5a36d723f676862f8d17 | [
"BSD-2-Clause"
] | 13 | 2017-03-28T02:35:32.000Z | 2022-02-21T23:36:15.000Z | from django.conf import settings
from django.contrib.auth.decorators import user_passes_test
from django.core.paginator import Paginator
from django.core.urlresolvers import reverse
from django.http import Http404, HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response
from django.template i... | 46.190608 | 227 | 0.609832 | 1,967 | 16,721 | 4.9273 | 0.17031 | 0.093066 | 0.040343 | 0.027445 | 0.414878 | 0.279612 | 0.199133 | 0.196038 | 0.186958 | 0.151878 | 0 | 0.01959 | 0.291729 | 16,721 | 361 | 228 | 46.31856 | 0.798784 | 0.053047 | 0 | 0.207143 | 0 | 0 | 0.091255 | 0.026481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0.028571 | 0.085714 | 0 | 0.175 | 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 |
b457b3b9a529a0063b2e3929017b0f26c1b32684 | 937 | py | Python | examples/experiment_pulse.py | HySynth/HySynth | b33b34ff5db138b5d007d0dcd32d53c9f8964b62 | [
"MIT"
] | 4 | 2021-03-05T11:18:35.000Z | 2021-12-09T18:51:32.000Z | examples/experiment_pulse.py | HySynth/HySynth | b33b34ff5db138b5d007d0dcd32d53c9f8964b62 | [
"MIT"
] | null | null | null | examples/experiment_pulse.py | HySynth/HySynth | b33b34ff5db138b5d007d0dcd32d53c9f8964b62 | [
"MIT"
] | null | null | null | # to run this, add code from experiments_HSCC2021.py
def time_series_pulse():
path = Path(__file__).parent.parent / "data" / "real_data" / "datasets" / "basic_data"
filename1 = path / "pulse1-1.csv"
filename2 = path / "pulse1-2.csv"
filename3 = path / "pulse1-3.csv"
f1 = load_time_series(filename1,... | 32.310345 | 111 | 0.692636 | 136 | 937 | 4.433824 | 0.448529 | 0.066335 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062162 | 0.210245 | 937 | 28 | 112 | 33.464286 | 0.752703 | 0.053362 | 0 | 0 | 0 | 0 | 0.075706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 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 |
b458e08685ebc8210a2ffae585d421bdf6eef379 | 13,813 | py | Python | ironic/drivers/modules/drac/management.py | Tehsmash/ironic | a34c351639e960af92a3608fbc9249dfce5c6057 | [
"Apache-2.0"
] | null | null | null | ironic/drivers/modules/drac/management.py | Tehsmash/ironic | a34c351639e960af92a3608fbc9249dfce5c6057 | [
"Apache-2.0"
] | null | null | null | ironic/drivers/modules/drac/management.py | Tehsmash/ironic | a34c351639e960af92a3608fbc9249dfce5c6057 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2014 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | 42.371166 | 79 | 0.625136 | 1,611 | 13,813 | 5.192427 | 0.192427 | 0.028691 | 0.038255 | 0.028452 | 0.485834 | 0.411476 | 0.390556 | 0.377645 | 0.358996 | 0.31572 | 0 | 0.003496 | 0.295953 | 13,813 | 325 | 80 | 42.501538 | 0.856658 | 0.325129 | 0 | 0.33758 | 0 | 0 | 0.150652 | 0.021456 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057325 | false | 0 | 0.070064 | 0.006369 | 0.165605 | 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 |
b45b0dfbed15df61de3d9471a3707d66d6c2d4b9 | 2,037 | py | Python | matrix_diagonalization/finite_barrier_square_well.py | coherent17/physics_calculation | cf94813778984f62b2c65174fb44bebb2e9c0d05 | [
"MIT"
] | 1 | 2021-12-30T01:11:30.000Z | 2021-12-30T01:11:30.000Z | matrix_diagonalization/finite_barrier_square_well.py | coherent17/physics_calculation | cf94813778984f62b2c65174fb44bebb2e9c0d05 | [
"MIT"
] | null | null | null | matrix_diagonalization/finite_barrier_square_well.py | coherent17/physics_calculation | cf94813778984f62b2c65174fb44bebb2e9c0d05 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
#grid number on half space (without the origin)
N=150
#total grid number = 2*N + 1 (with origin)
N_g=2*N+1
#finite barrier potential value = 300 (meV)
potential_value=300
#building potential:
def potential(potential_value):
V=np.zeros((1,N_g),dtype=float)
V[0... | 25.78481 | 64 | 0.661757 | 375 | 2,037 | 3.506667 | 0.314667 | 0.026616 | 0.006844 | 0.018251 | 0.06616 | 0.030418 | 0 | 0 | 0 | 0 | 0 | 0.074534 | 0.130584 | 2,037 | 79 | 65 | 25.78481 | 0.667984 | 0.130584 | 0 | 0 | 0 | 0 | 0.152754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.031746 | 0 | 0.095238 | 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 |
b45bc4fbd6c30a7f20f9e98d80b94da630c9831f | 739 | py | Python | setup.py | SteveLTN/iex-api-python | f2c5c8f461ee22d7fc58bc335e397454de4cee7e | [
"MIT"
] | null | null | null | setup.py | SteveLTN/iex-api-python | f2c5c8f461ee22d7fc58bc335e397454de4cee7e | [
"MIT"
] | null | null | null | setup.py | SteveLTN/iex-api-python | f2c5c8f461ee22d7fc58bc335e397454de4cee7e | [
"MIT"
] | null | null | null | import setuptools
import glob
import os
required = [
"requests",
"pandas",
"arrow",
"socketIO-client-nexus"
]
setuptools.setup(name='iex-api-python',
version="0.0.5",
description='Fetch data from the IEX API',
long_description=open('README.md').read()... | 30.791667 | 86 | 0.525034 | 74 | 739 | 5.189189 | 0.72973 | 0.0625 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.330176 | 739 | 23 | 87 | 32.130435 | 0.769697 | 0 | 0 | 0 | 0 | 0 | 0.307172 | 0.056834 | 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 |
b45ee2f14f2b2080d0f96be546d04753ee6aacf6 | 3,825 | py | Python | src/models/train_model.py | 4c697361/e-commerce | ddf88ec2c3f020bce129195452dfa9b03fb285d4 | [
"MIT"
] | 3 | 2020-01-01T06:36:38.000Z | 2020-12-08T02:57:33.000Z | src/models/train_model.py | L2Data/e-commerce | ddf88ec2c3f020bce129195452dfa9b03fb285d4 | [
"MIT"
] | null | null | null | src/models/train_model.py | L2Data/e-commerce | ddf88ec2c3f020bce129195452dfa9b03fb285d4 | [
"MIT"
] | 3 | 2020-02-28T01:22:07.000Z | 2020-07-19T13:38:59.000Z | import os
import click
import logging
from pathlib import Path
from dotenv import find_dotenv, load_dotenv
from keras.callbacks import ModelCheckpoint, EarlyStopping
import src.utils.utils as ut
import src.utils.model_utils as mu
import src.models.model as md
import src.models.data_generator as dg
import src.data.da... | 39.43299 | 88 | 0.536209 | 385 | 3,825 | 5.148052 | 0.342857 | 0.045409 | 0.037841 | 0.018163 | 0.182644 | 0.103935 | 0.103935 | 0.103935 | 0.103935 | 0.046418 | 0 | 0.003696 | 0.363399 | 3,825 | 96 | 89 | 39.84375 | 0.810267 | 0.002614 | 0 | 0.12987 | 0 | 0 | 0.053225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0 | 0.142857 | 0 | 0.168831 | 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 |
b45f1b6d99b2cd670602d4dd9541964dcf882b2c | 3,412 | py | Python | Jobs/pm_match.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | 2 | 2021-02-18T04:21:34.000Z | 2022-03-09T11:16:17.000Z | Jobs/pm_match.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | null | null | null | Jobs/pm_match.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | 1 | 2020-12-13T08:32:04.000Z | 2020-12-13T08:32:04.000Z | """
MIT License
Copyright (c) 2020 Shantanu Ghosh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | 33.45098 | 96 | 0.750586 | 544 | 3,412 | 4.452206 | 0.354779 | 0.049546 | 0.053675 | 0.035095 | 0.225434 | 0.19488 | 0.151941 | 0.095789 | 0.038811 | 0.038811 | 0 | 0.027749 | 0.14449 | 3,412 | 101 | 97 | 33.782178 | 0.801987 | 0.332649 | 0 | 0.036364 | 0 | 0 | 0.17351 | 0.064901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.127273 | 0 | 0.145455 | 0.127273 | 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 |
b45fb7ad9c5a50822623857ace28d82c3b6d8f02 | 15,182 | py | Python | varcode/effects/effect_prediction.py | openvax/varcode | a51a7dd0868ef05aee4962e66a9226ab70935a3d | [
"Apache-2.0"
] | 39 | 2018-01-12T20:58:43.000Z | 2022-03-18T04:54:16.000Z | varcode/effects/effect_prediction.py | hammerlab/varcode | a51a7dd0868ef05aee4962e66a9226ab70935a3d | [
"Apache-2.0"
] | 217 | 2015-01-02T19:04:02.000Z | 2017-09-09T23:21:15.000Z | varcode/effects/effect_prediction.py | openvax/varcode | a51a7dd0868ef05aee4962e66a9226ab70935a3d | [
"Apache-2.0"
] | 18 | 2018-02-06T13:32:44.000Z | 2022-02-28T04:49:20.000Z | # Copyright (c) 2016-2019. Mount Sinai School of Medicine
#
# 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 ... | 37.210784 | 85 | 0.652022 | 1,809 | 15,182 | 5.257048 | 0.213378 | 0.030389 | 0.013249 | 0.025026 | 0.250368 | 0.180231 | 0.150789 | 0.093165 | 0.071924 | 0.058044 | 0 | 0.006314 | 0.290673 | 15,182 | 407 | 86 | 37.302211 | 0.876776 | 0.29614 | 0 | 0.234043 | 0 | 0 | 0.036739 | 0 | 0 | 0 | 0 | 0.004914 | 0.017021 | 1 | 0.021277 | false | 0 | 0.042553 | 0 | 0.153191 | 0.004255 | 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 |
b46021d4ffc65a61c7d142b7d9d9cca8ff758a1a | 8,244 | py | Python | configs.py | platonic-realm/UM-PDD | 747171ec3d87e54fb70a2cf4472b8da9fbd2f67b | [
"MIT"
] | null | null | null | configs.py | platonic-realm/UM-PDD | 747171ec3d87e54fb70a2cf4472b8da9fbd2f67b | [
"MIT"
] | null | null | null | configs.py | platonic-realm/UM-PDD | 747171ec3d87e54fb70a2cf4472b8da9fbd2f67b | [
"MIT"
] | 1 | 2021-06-13T22:41:23.000Z | 2021-06-13T22:41:23.000Z | # OS-Level Imports
import os
import sys
import multiprocessing
from multiprocessing import cpu_count
# Library Imports
import tensorflow as tf
from tensorflow.keras import mixed_precision
from tensorflow.python.distribute.distribute_lib import Strategy
# Internal Imports
from Utils.enums import Environme... | 36.96861 | 99 | 0.589034 | 834 | 8,244 | 5.598321 | 0.254197 | 0.035982 | 0.021418 | 0.038552 | 0.324695 | 0.305205 | 0.265367 | 0.192332 | 0.17991 | 0.17991 | 0 | 0.007375 | 0.259825 | 8,244 | 222 | 100 | 37.135135 | 0.757784 | 0.141436 | 0 | 0.36875 | 0 | 0 | 0.08793 | 0.02542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01875 | false | 0.00625 | 0.05 | 0 | 0.06875 | 0.0875 | 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 |
b466221b457ff5136956aa01c99313e615519ec6 | 1,976 | py | Python | lib/parser/augur/Bonus.py | Innoviox/QuizDB | b26adf7134408e5b29ebc8b0b05601cbbf45667a | [
"MIT"
] | null | null | null | lib/parser/augur/Bonus.py | Innoviox/QuizDB | b26adf7134408e5b29ebc8b0b05601cbbf45667a | [
"MIT"
] | null | null | null | lib/parser/augur/Bonus.py | Innoviox/QuizDB | b26adf7134408e5b29ebc8b0b05601cbbf45667a | [
"MIT"
] | null | null | null | from utils import sanitize
class Bonus:
def __init__(self, number, leadin="", texts=None, answers=None,
category="", subcategory="",
tournament="", round=""):
self.number = number
self.leadin = leadin
self.texts = texts
self.answers = answers
... | 31.365079 | 75 | 0.522267 | 221 | 1,976 | 4.597285 | 0.217195 | 0.097441 | 0.047244 | 0.041339 | 0.029528 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006982 | 0.347672 | 1,976 | 62 | 76 | 31.870968 | 0.781226 | 0 | 0 | 0.039216 | 0 | 0 | 0.062247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.019608 | 0.058824 | 0.294118 | 0.019608 | 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 |
b466a703c7aeb3f1783bcb9b597f3efeb4eaec6e | 5,389 | py | Python | train_folds.py | wubinbai/argus-freesound | 662aa9570b31075fb1d9f18102bda89ed6bb0fc1 | [
"MIT"
] | 1 | 2019-12-12T02:37:57.000Z | 2019-12-12T02:37:57.000Z | train_folds.py | wubinbai/argus-freesound | 662aa9570b31075fb1d9f18102bda89ed6bb0fc1 | [
"MIT"
] | null | null | null | train_folds.py | wubinbai/argus-freesound | 662aa9570b31075fb1d9f18102bda89ed6bb0fc1 | [
"MIT"
] | null | null | null | import json
import argparse
from argus.callbacks import MonitorCheckpoint, \
EarlyStopping, LoggingToFile, ReduceLROnPlateau
from torch.utils.data import DataLoader
from src.datasets import FreesoundDataset, FreesoundNoisyDataset, RandomDataset
from src.datasets import get_corrected_noisy_data, FreesoundCorrecte... | 36.659864 | 92 | 0.594544 | 599 | 5,389 | 5.056761 | 0.310518 | 0.035655 | 0.035655 | 0.02278 | 0.11621 | 0.065368 | 0.065368 | 0.037636 | 0.037636 | 0.037636 | 0 | 0.025469 | 0.307849 | 5,389 | 146 | 93 | 36.910959 | 0.786595 | 0 | 0 | 0.079365 | 0 | 0 | 0.090926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007937 | false | 0 | 0.087302 | 0 | 0.095238 | 0.047619 | 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 |
b46ec93c5a888c6cb9e5eeda25bf96474de0d3f9 | 5,197 | py | Python | src/olympia/stats/management/commands/theme_update_counts_from_file.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/stats/management/commands/theme_update_counts_from_file.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/stats/management/commands/theme_update_counts_from_file.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | null | null | null | import codecs
from datetime import datetime, timedelta
from optparse import make_option
from os import path, unlink
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
import commonware.log
from olympia import amo
from olympia.addons.models import Addon, Persona
from ol... | 39.371212 | 79 | 0.583029 | 649 | 5,197 | 4.543914 | 0.345146 | 0.041031 | 0.051882 | 0.010173 | 0.042048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005162 | 0.329036 | 5,197 | 131 | 80 | 39.671756 | 0.840551 | 0.254955 | 0 | 0.054054 | 0 | 0 | 0.094862 | 0.006324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.148649 | 0 | 0.202703 | 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 |
b470fed81935f91ffeef38325bad1336729439b2 | 663 | py | Python | KRR/Saved/Run 4/plot_all.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | 2 | 2018-10-10T09:32:34.000Z | 2019-03-28T08:42:31.000Z | KRR/Saved/Run 4/plot_all.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | null | null | null | KRR/Saved/Run 4/plot_all.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | null | null | null | import numpy as np
import pickle
import matplotlib.pyplot as plt
import os
import fnmatch
folder = "GP/"
ktype = "lin/"
matrices=os.listdir(folder+ktype)
for matrix in matrices:
if fnmatch.fnmatch(matrix, '*_val_*'):
with open(folder+ktype+matrix, "rb") as pickleFile:
results = pickle.load(pick... | 27.625 | 59 | 0.585219 | 80 | 663 | 4.825 | 0.625 | 0.056995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010846 | 0.304676 | 663 | 23 | 60 | 28.826087 | 0.826464 | 0.064857 | 0 | 0 | 0 | 0 | 0.051864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.263158 | 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 |
b4710f59abe4e45a9ec483665b621401e554ee1a | 5,919 | py | Python | FATERUI/common/camera/mindvision/camera_mindvision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | 4 | 2018-12-07T02:17:26.000Z | 2020-12-03T05:32:23.000Z | FATERUI/common/camera/mindvision/camera_mindvision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | null | null | null | FATERUI/common/camera/mindvision/camera_mindvision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | 1 | 2021-12-30T12:14:52.000Z | 2021-12-30T12:14:52.000Z | #!/usr/bin/env python2.7
# coding=utf-8
import logging
import traceback
import time
from FATERUI.common.camera.camera import Camera
from . import CameraMindVision
from FATERUI.common.camera.common_tools import *
import cv2
# from aoi.common.infraredcontrol import infraredcontrol
from time import sleep
import datetim... | 35.656627 | 112 | 0.58101 | 683 | 5,919 | 4.63104 | 0.216691 | 0.104331 | 0.04521 | 0.056908 | 0.254505 | 0.170408 | 0.112551 | 0.046159 | 0.026557 | 0 | 0 | 0.010096 | 0.33063 | 5,919 | 165 | 113 | 35.872727 | 0.788238 | 0.039027 | 0 | 0.142857 | 0 | 0 | 0.041703 | 0.006687 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150376 | false | 0 | 0.067669 | 0.082707 | 0.360902 | 0.015038 | 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 |
b472afbaafc9d44c866573f1e75db57304dcd9c2 | 2,142 | py | Python | src/utilities/download_file_from_zip.py | Bhaskers-Blu-Org2/arcticseals | 9e2629ca0ce7aadbe63118f39ff2da757d5dbc33 | [
"MIT"
] | 16 | 2019-05-21T20:08:01.000Z | 2021-11-23T22:34:00.000Z | src/utilities/download_file_from_zip.py | Bhaskers-Blu-Org2/arcticseals | 9e2629ca0ce7aadbe63118f39ff2da757d5dbc33 | [
"MIT"
] | 14 | 2018-07-18T17:14:30.000Z | 2019-04-14T14:40:12.000Z | src/utilities/download_file_from_zip.py | microsoft/arcticseals | 8adf8fbae679866373b9b5f981ceaa6ae9226c6a | [
"MIT"
] | 10 | 2019-05-10T20:56:47.000Z | 2022-01-26T13:16:40.000Z | # This script allows to download a single file from a remote ZIP archive
# without downloading the whole ZIP file itself.
# The hosting server needs to support the HTTP range header for it to work
import zipfile
import requests
import argparse
class HTTPIO(object):
def __init__(self, url):
self.url = url... | 38.945455 | 126 | 0.600373 | 286 | 2,142 | 4.388112 | 0.388112 | 0.079681 | 0.040637 | 0.031873 | 0.124303 | 0.082869 | 0.082869 | 0.082869 | 0.082869 | 0.082869 | 0 | 0.005863 | 0.28338 | 2,142 | 54 | 127 | 39.666667 | 0.811726 | 0.088702 | 0 | 0.130435 | 0 | 0 | 0.154004 | 0.025667 | 0 | 0 | 0 | 0 | 0.021739 | 1 | 0.108696 | false | 0 | 0.065217 | 0.021739 | 0.23913 | 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 |
b474f12be63300ba532e865b5aa405c132d39b80 | 1,881 | py | Python | homeassistant/components/notify/file.py | SKarthick5121995/karthickmaduraai | d5498dfb83e9bb57fff16db854ae3e15c1e15425 | [
"MIT"
] | null | null | null | homeassistant/components/notify/file.py | SKarthick5121995/karthickmaduraai | d5498dfb83e9bb57fff16db854ae3e15c1e15425 | [
"MIT"
] | null | null | null | homeassistant/components/notify/file.py | SKarthick5121995/karthickmaduraai | d5498dfb83e9bb57fff16db854ae3e15c1e15425 | [
"MIT"
] | null | null | null | """
Support for file notification.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/notify.file/
"""
import logging
import os
import homeassistant.util.dt as dt_util
from homeassistant.components.notify import (
ATTR_TITLE, DOMAIN, BaseNotificationSer... | 33 | 74 | 0.607656 | 200 | 1,881 | 5.58 | 0.445 | 0.021505 | 0.028674 | 0.035842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002946 | 0.278044 | 1,881 | 56 | 75 | 33.589286 | 0.818851 | 0.179692 | 0 | 0.058824 | 0 | 0 | 0.057426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.147059 | 0 | 0.323529 | 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 |
b47686e7b028cb8a2b59a0aee1c9616fb72be5a0 | 2,561 | py | Python | app/eSignature/views/eg035_scheduled_sending.py | docusign/eg-03-python-auth-code-grant | e92913e25f753fb6b52fc3da6bc4b76c49c75b37 | [
"MIT"
] | 7 | 2019-05-09T05:17:35.000Z | 2020-05-06T14:27:51.000Z | app/eSignature/views/eg035_scheduled_sending.py | docusign/eg-03-python-auth-code-grant | e92913e25f753fb6b52fc3da6bc4b76c49c75b37 | [
"MIT"
] | 1 | 2019-06-25T23:06:34.000Z | 2019-06-25T23:06:34.000Z | app/eSignature/views/eg035_scheduled_sending.py | docusign/eg-03-python-auth-code-grant | e92913e25f753fb6b52fc3da6bc4b76c49c75b37 | [
"MIT"
] | 8 | 2019-06-21T23:57:48.000Z | 2020-02-11T18:58:34.000Z |
""" Example 035: Scheduled sending and delayed routing """
from os import path
from docusign_esign.client.api_exception import ApiException
from flask import render_template, session, Blueprint, request
from ..examples.eg035_scheduled_sending import Eg035ScheduledSendingController
from ...docusign import authentica... | 30.855422 | 106 | 0.681765 | 309 | 2,561 | 5.433657 | 0.375405 | 0.033353 | 0.05003 | 0.025015 | 0.077427 | 0.035736 | 0 | 0 | 0 | 0 | 0 | 0.024114 | 0.20656 | 2,561 | 82 | 107 | 31.231707 | 0.802165 | 0.172979 | 0 | 0.072727 | 0 | 0 | 0.234073 | 0.061776 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.145455 | 0 | 0.272727 | 0.054545 | 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 |
b476e08084c58f13ed7fa0dc7c045384b16ce2fe | 584 | py | Python | Informatik1/Finals Prep/HS20/1 Warmup/tally.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | 8 | 2021-11-21T10:02:08.000Z | 2022-03-15T21:02:02.000Z | Informatik1/Finals Prep/HS20/1 Warmup/tally.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | null | null | null | Informatik1/Finals Prep/HS20/1 Warmup/tally.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | 3 | 2021-11-19T18:52:56.000Z | 2022-02-27T15:45:59.000Z | #-- THIS LINE SHOULD BE THE FIRST LINE OF YOUR SUBMISSION! --#
def tally(costs, discounts, rebate_factor):
cost = sum(costs)
discount = sum(discounts)
pre = (cost - discount) * rebate_factor
if pre < 0:
return 0
else:
return round(pre, 2)
#-- THIS LINE SHOULD BE THE LAST LINE OF ... | 29.2 | 74 | 0.623288 | 94 | 584 | 3.851064 | 0.553191 | 0.044199 | 0.077348 | 0.088398 | 0.149171 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 0.072848 | 0.224315 | 584 | 20 | 75 | 29.2 | 0.726269 | 0.465753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0 | 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 |
b47710dd97089aa9a4dab16fd72a2e7d5d913aa8 | 2,450 | py | Python | linear_sequence_of_dominos/valid_sequence.py | bhpayne/domino_tile_floor | e5473081160e6f59c901fcc7563a984ef8c0a76d | [
"Apache-2.0"
] | null | null | null | linear_sequence_of_dominos/valid_sequence.py | bhpayne/domino_tile_floor | e5473081160e6f59c901fcc7563a984ef8c0a76d | [
"Apache-2.0"
] | 6 | 2020-12-31T03:33:44.000Z | 2021-01-01T01:46:56.000Z | linear_sequence_of_dominos/valid_sequence.py | bhpayne/domino_tile_floor | e5473081160e6f59c901fcc7563a984ef8c0a76d | [
"Apache-2.0"
] | 1 | 2018-03-15T19:30:11.000Z | 2018-03-15T19:30:11.000Z | #!/usr/bin/env python3
"""
Given a set of dominos, construct a linear sequence
For example, if the set of dominos is
[ (0,0) (1,0), (1,1)]
then a valid linear sequence of length four would be
(0,0),(0,1),(1,1),(1,0)
In this script we first create a set of dominos to sample from.
Then every permutation of that set is t... | 33.108108 | 73 | 0.490204 | 392 | 2,450 | 2.946429 | 0.244898 | 0.152381 | 0.077922 | 0.101299 | 0.055411 | 0.047619 | 0.047619 | 0.036364 | 0.036364 | 0.036364 | 0 | 0.099696 | 0.328571 | 2,450 | 73 | 74 | 33.561644 | 0.602432 | 0.251837 | 0 | 0 | 0 | 0 | 0.086486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0.138889 | 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 |
b479184cf8fa1d0126f4741b48905617a0186570 | 3,418 | py | Python | Projects/Arena/old-version.py | hastysun/Python | b63921160fe13291dbfcbdcf821364e76d3164d5 | [
"Apache-2.0"
] | 1 | 2018-05-16T22:41:38.000Z | 2018-05-16T22:41:38.000Z | Projects/Arena/old-version.py | hastysun/Python | b63921160fe13291dbfcbdcf821364e76d3164d5 | [
"Apache-2.0"
] | null | null | null | Projects/Arena/old-version.py | hastysun/Python | b63921160fe13291dbfcbdcf821364e76d3164d5 | [
"Apache-2.0"
] | null | null | null | ## Unit 4 Project - Two Player Game
## Gavin Weiss - Computer Programming II
## The Elder Scrolls X
# A fan made 2 player game successor the The Elder Scrolls Series
# Two players start off in an arena
# Can choose starting items
# Can choose classes
## Libraries
import time # Self explanatory
import rand... | 21.098765 | 70 | 0.613517 | 434 | 3,418 | 4.813364 | 0.278802 | 0.057444 | 0.017233 | 0.014361 | 0.276687 | 0.228818 | 0.228818 | 0.201053 | 0.201053 | 0.201053 | 0 | 0.050414 | 0.257168 | 3,418 | 161 | 71 | 21.229814 | 0.772351 | 0.24371 | 0 | 0.522222 | 0 | 0 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.044444 | 0 | 0.2 | 0.211111 | 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 |
b47a0c18a008deafead3e0074466d35091002570 | 6,689 | py | Python | chromium/tools/telemetry/telemetry/internal/image_processing/video.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 925 | 2015-11-06T03:04:46.000Z | 2017-09-16T19:08:43.000Z | chromium/tools/telemetry/telemetry/internal/image_processing/video.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 29 | 2015-11-09T17:37:28.000Z | 2017-08-16T17:50:11.000Z | chromium/tools/telemetry/telemetry/internal/image_processing/video.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 51 | 2015-11-08T07:06:38.000Z | 2017-08-21T07:27:19.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.
import subprocess
from catapult_base import cloud_storage
from telemetry.core import platform
from telemetry.util import image_util
from telemetry.util impo... | 38.889535 | 80 | 0.687995 | 874 | 6,689 | 5.129291 | 0.354691 | 0.03346 | 0.018737 | 0.025652 | 0.131608 | 0.093687 | 0.045505 | 0.029445 | 0.029445 | 0.029445 | 0 | 0.01081 | 0.239348 | 6,689 | 171 | 81 | 39.116959 | 0.870283 | 0.35536 | 0 | 0.12766 | 0 | 0 | 0.08377 | 0 | 0 | 0 | 0 | 0.005848 | 0.042553 | 1 | 0.074468 | false | 0.010638 | 0.053191 | 0 | 0.191489 | 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 |
b47a8507030b3a977cb62f1a1969dd088038ec0e | 2,545 | py | Python | homeassistant/components/renault/renault_coordinator.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 5 | 2019-02-24T11:46:18.000Z | 2019-05-28T17:37:21.000Z | homeassistant/components/renault/renault_coordinator.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 77 | 2020-07-16T16:43:09.000Z | 2022-03-31T06:14:37.000Z | homeassistant/components/renault/renault_coordinator.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | 7 | 2021-03-20T12:34:01.000Z | 2021-12-02T10:13:52.000Z | """Proxy to handle account communication with Renault servers."""
from __future__ import annotations
from collections.abc import Awaitable
from datetime import timedelta
import logging
from typing import Callable, TypeVar
from renault_api.kamereon.exceptions import (
AccessDeniedException,
KamereonResponseExc... | 34.863014 | 89 | 0.673477 | 274 | 2,545 | 6.09854 | 0.405109 | 0.043088 | 0.032316 | 0.037104 | 0.123279 | 0.096948 | 0.096948 | 0.05386 | 0 | 0 | 0 | 0 | 0.259332 | 2,545 | 72 | 90 | 35.347222 | 0.886472 | 0.118271 | 0 | 0.040816 | 0 | 0 | 0.067623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.163265 | 0 | 0.22449 | 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 |
b47bec3668d864394eed49330fbd6e060a5d6f09 | 2,270 | py | Python | docs/script/CLI_docker_image_uri_script.py | ai4eu/on-boarding | 6de8c323bb5f2d18612ba807b0caa8e5954bf8a8 | [
"Apache-2.0"
] | null | null | null | docs/script/CLI_docker_image_uri_script.py | ai4eu/on-boarding | 6de8c323bb5f2d18612ba807b0caa8e5954bf8a8 | [
"Apache-2.0"
] | 1 | 2021-06-15T10:45:35.000Z | 2021-06-15T10:45:35.000Z | docs/script/CLI_docker_image_uri_script.py | ai4eu/on-boarding | 6de8c323bb5f2d18612ba807b0caa8e5954bf8a8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# ===================================================================================
# Copyright (C) 2019 Fraunhofer Gesellschaft. All rights reserved.
# ===================================================================================
# This Acumos software file is distributed by Fraunhofer G... | 43.653846 | 133 | 0.640529 | 273 | 2,270 | 5.260073 | 0.542125 | 0.034819 | 0.037604 | 0.022284 | 0.047354 | 0.047354 | 0.047354 | 0 | 0 | 0 | 0 | 0.013839 | 0.140529 | 2,270 | 51 | 134 | 44.509804 | 0.722194 | 0.479295 | 0 | 0 | 0 | 0 | 0.381076 | 0.073785 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
b47d1e8ef224c2f61bfc09b6164ea7a99d634c35 | 1,169 | py | Python | zeus/networks/pytorch/backbones/getter.py | shaido987/vega | 14d5d49fb8bdf96bd1f3fcfac201ce6b6712c3b6 | [
"MIT"
] | 1 | 2021-05-08T07:47:44.000Z | 2021-05-08T07:47:44.000Z | zeus/networks/pytorch/backbones/getter.py | WholeG/vega | d1ccf1c3ce68a118bdb6775594ceed0f895911e7 | [
"MIT"
] | null | null | null | zeus/networks/pytorch/backbones/getter.py | WholeG/vega | d1ccf1c3ce68a118bdb6775594ceed0f895911e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | 43.296296 | 77 | 0.739093 | 147 | 1,169 | 5.755102 | 0.62585 | 0.059102 | 0.049645 | 0.054374 | 0.066194 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00924 | 0.166809 | 1,169 | 26 | 78 | 44.961538 | 0.859343 | 0.418306 | 0 | 0 | 0 | 0 | 0.05287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 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 |
b47e174f27a9621be97952b2420f06f45e7e9776 | 836 | py | Python | pure_ee/lista.py | geosconsulting/gee_wapor | c3c451fcb21664172a74647fe5d9e56f312aa1df | [
"Apache-1.1"
] | 2 | 2017-11-30T18:45:59.000Z | 2018-04-08T16:47:43.000Z | pure_ee/lista.py | geosconsulting/gee_wapor | c3c451fcb21664172a74647fe5d9e56f312aa1df | [
"Apache-1.1"
] | null | null | null | pure_ee/lista.py | geosconsulting/gee_wapor | c3c451fcb21664172a74647fe5d9e56f312aa1df | [
"Apache-1.1"
] | 1 | 2021-09-09T06:03:44.000Z | 2021-09-09T06:03:44.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 20 08:40:22 2017
@author: fabio
"""
import ee
import ee.mapclient
ee.Initialize()
collection = ee.ImageCollection('MODIS/MCD43A4_NDVI')
lista = collection.toList(10)
#print lista.getInfo()
image = ee.Image('LC8_L1T/LC81910312016217LGN00')
#prin... | 19.904762 | 56 | 0.643541 | 101 | 836 | 5.306931 | 0.594059 | 0.061567 | 0.100746 | 0.115672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090643 | 0.181818 | 836 | 41 | 57 | 20.390244 | 0.692982 | 0.163876 | 0 | 0 | 0 | 0 | 0.152616 | 0.042151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
b47fefb3dba103290fb50268daa1c3e2fc5aec99 | 11,967 | py | Python | pome/models/transaction.py | pome-gr/pome | c6f4f9842cb7047dbd4e739e3be9b049a1887c58 | [
"MIT"
] | 3 | 2021-09-10T09:49:21.000Z | 2021-12-14T12:44:53.000Z | pome/models/transaction.py | pome-gr/pome | c6f4f9842cb7047dbd4e739e3be9b049a1887c58 | [
"MIT"
] | 2 | 2021-09-10T11:17:51.000Z | 2021-09-11T20:43:30.000Z | pome/models/transaction.py | pome-gr/pome | c6f4f9842cb7047dbd4e739e3be9b049a1887c58 | [
"MIT"
] | null | null | null | import os
import re
import urllib
from datetime import datetime
from pathlib import Path
from typing import Dict, List, Tuple, Union
from money.currency import Currency
from money.money import Money
from werkzeug.utils import secure_filename
from pome import g
from pome.models.encoder import PomeEncodable
RECORDED_T... | 37.164596 | 189 | 0.585694 | 1,435 | 11,967 | 4.685714 | 0.147735 | 0.023795 | 0.026175 | 0.020077 | 0.34771 | 0.241225 | 0.125818 | 0.052945 | 0.017549 | 0.017549 | 0 | 0.017275 | 0.308264 | 11,967 | 321 | 190 | 37.280374 | 0.794999 | 0.008189 | 0 | 0.181481 | 0 | 0.022222 | 0.131417 | 0.037596 | 0.011111 | 0 | 0 | 0 | 0 | 1 | 0.085185 | false | 0 | 0.044444 | 0.007407 | 0.244444 | 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 |
b4823115f908163488e925d3fd26ab3097c5417b | 4,350 | py | Python | site/external/moya.logins/py/oauth1.py | moyaproject/moya-techblog | 4f7d606b22773db40850b742945e83e328c63bb7 | [
"MIT"
] | 31 | 2015-11-19T04:47:05.000Z | 2021-12-29T19:10:58.000Z | site/external/moya.logins/py/oauth1.py | moyaproject/moya-techblog | 4f7d606b22773db40850b742945e83e328c63bb7 | [
"MIT"
] | 1 | 2015-11-19T14:28:52.000Z | 2015-11-24T00:14:25.000Z | site/external/moya.logins/py/oauth1.py | moyaproject/moya-techblog | 4f7d606b22773db40850b742945e83e328c63bb7 | [
"MIT"
] | 1 | 2021-08-10T15:09:01.000Z | 2021-08-10T15:09:01.000Z | from __future__ import unicode_literals
from __future__ import print_function
import moya
from moya.compat import text_type
from requests_oauthlib import OAuth1Session
def get_credentials(provider, credentials):
client_id = credentials.client_id or provider.get('client_id', None)
client_secret = credentials... | 38.157895 | 95 | 0.672184 | 489 | 4,350 | 5.640082 | 0.171779 | 0.141407 | 0.081218 | 0.065265 | 0.510152 | 0.476795 | 0.456128 | 0.456128 | 0.418782 | 0.3905 | 0 | 0.003329 | 0.24046 | 4,350 | 113 | 96 | 38.495575 | 0.831416 | 0.016092 | 0 | 0.411111 | 0 | 0 | 0.137447 | 0.082515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.022222 | 0.055556 | 0 | 0.166667 | 0.011111 | 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 |
b482963dac3d21247c020b102c3b4900ec667eba | 6,599 | py | Python | cgp.py | BakudanKame/CGPCatAndRat | 29a57b6bc5d00ef11acfe78afa4ff2b418d0b971 | [
"MIT"
] | null | null | null | cgp.py | BakudanKame/CGPCatAndRat | 29a57b6bc5d00ef11acfe78afa4ff2b418d0b971 | [
"MIT"
] | 1 | 2021-03-05T17:37:44.000Z | 2021-03-05T17:37:44.000Z | cgp.py | BakudanKame/CGPCatAndRat | 29a57b6bc5d00ef11acfe78afa4ff2b418d0b971 | [
"MIT"
] | 1 | 2021-03-04T19:47:42.000Z | 2021-03-04T19:47:42.000Z | """
Cartesian genetic programming
"""
import operator as op
import random
import copy
import math
from settings import VERBOSE, N_COLS, LEVEL_BACK
class Function:
"""
A general function
"""
def __init__(self, f, arity, name=None):
self.f = f
self.arity = arity
self.name = f.... | 31.879227 | 211 | 0.582513 | 861 | 6,599 | 4.305459 | 0.205575 | 0.021581 | 0.024278 | 0.017804 | 0.284057 | 0.25816 | 0.245212 | 0.221203 | 0.189911 | 0.176423 | 0 | 0.008415 | 0.315654 | 6,599 | 206 | 212 | 32.033981 | 0.812445 | 0.168662 | 0 | 0.248 | 0 | 0 | 0.006836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096 | false | 0 | 0.04 | 0.008 | 0.28 | 0.008 | 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 |
b48444fb43f7b50ccaf1395f967f3216e0c9b14c | 824 | py | Python | historia/pops/logic/refiner.py | eranimo/historia | 5e0b047d4bcdd534f48f8b9bf19d425b0b31a3fd | [
"MIT"
] | 6 | 2016-04-26T18:39:36.000Z | 2021-09-01T09:13:38.000Z | historia/pops/logic/refiner.py | eranimo/historia | 5e0b047d4bcdd534f48f8b9bf19d425b0b31a3fd | [
"MIT"
] | null | null | null | historia/pops/logic/refiner.py | eranimo/historia | 5e0b047d4bcdd534f48f8b9bf19d425b0b31a3fd | [
"MIT"
] | 4 | 2016-04-10T23:47:23.000Z | 2021-08-15T11:40:28.000Z | from historia.pops.logic.logic_base import LogicBase
from historia.economy.enums.resource import Good
class RefinerLogic(LogicBase):
def perform(self):
bread = self.get_good(Good.bread)
tools = self.get_good(Good.tools)
iron_ore = self.get_good(Good.iron_ore)
if bread is None or i... | 32.96 | 52 | 0.601942 | 114 | 824 | 4.236842 | 0.359649 | 0.101449 | 0.15528 | 0.132505 | 0.343685 | 0.343685 | 0.343685 | 0.343685 | 0.343685 | 0.182195 | 0 | 0.017544 | 0.308252 | 824 | 24 | 53 | 34.333333 | 0.829825 | 0.087379 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
b484806f07273e81bf7d1386a37c1b227189ad08 | 2,386 | py | Python | image_processing/manual_features/extract-features.py | ColoredInsaneAsylums/PrivacySensitiveTranscription | 07cf8f8da222b606988e7b4dee6a6bffdd0b6fe6 | [
"BSD-3-Clause"
] | null | null | null | image_processing/manual_features/extract-features.py | ColoredInsaneAsylums/PrivacySensitiveTranscription | 07cf8f8da222b606988e7b4dee6a6bffdd0b6fe6 | [
"BSD-3-Clause"
] | 7 | 2021-03-18T20:23:36.000Z | 2022-03-11T23:16:18.000Z | image_processing/manual_features/extract-features.py | ColoredInsaneAsylums/Clustering-PrivacySensitiveTranscription | 07cf8f8da222b606988e7b4dee6a6bffdd0b6fe6 | [
"BSD-3-Clause"
] | 2 | 2017-11-29T21:36:31.000Z | 2018-10-13T01:45:03.000Z | import argparse
import cv2
import numpy as np
import os
import _pickle as pickle
from descriptors import HOG
#from skimage.morphology import skeletonize
# run image filtering and HOG feature extraction
def main(im_path, desc_name):
print('[INFO] Preparing to extract features for images in \'' + im_path + '\'')
... | 32.684932 | 114 | 0.611065 | 288 | 2,386 | 4.944444 | 0.388889 | 0.050562 | 0.021067 | 0.029494 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014443 | 0.274518 | 2,386 | 72 | 115 | 33.138889 | 0.808203 | 0.167225 | 0 | 0 | 0 | 0 | 0.236815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.142857 | 0 | 0.166667 | 0.095238 | 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 |
b4860c44ee18b6902dd90728a523b3075912de35 | 3,730 | py | Python | data/mapping.py | wby1905/Graph-Transformer-SSPR | 4d9f2d3b950cde7e7b955247f58c0427f1dda6a1 | [
"MIT"
] | 2 | 2022-01-19T12:05:08.000Z | 2022-03-02T09:43:50.000Z | data/mapping.py | wby1905/Graph-Transformer | 4d9f2d3b950cde7e7b955247f58c0427f1dda6a1 | [
"MIT"
] | null | null | null | data/mapping.py | wby1905/Graph-Transformer | 4d9f2d3b950cde7e7b955247f58c0427f1dda6a1 | [
"MIT"
] | 2 | 2021-06-10T03:39:21.000Z | 2022-01-19T12:05:01.000Z | import torch as t
import torch_geometric.utils as utils
def qw_score(graph):
"""
未实现qw_score,采用度数代替
:param graph:
"""
score = utils.degree(graph.edge_index[0])
return score.sort()
def pre_processing(graph, m, score, trees):
score, indices = score
indices.squeeze_()
old_edges = gr... | 30.826446 | 92 | 0.521984 | 516 | 3,730 | 3.594961 | 0.180233 | 0.077628 | 0.120755 | 0.054987 | 0.405391 | 0.319137 | 0.278167 | 0.264151 | 0.264151 | 0.264151 | 0 | 0.02009 | 0.346113 | 3,730 | 120 | 93 | 31.083333 | 0.740467 | 0.060054 | 0 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.022222 | 0 | 0.133333 | 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 |
b48654f076f939090f06530d0e1ff49e0fb32d65 | 5,463 | py | Python | .archived/snakecode/0460.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | 4 | 2022-01-13T03:39:01.000Z | 2022-03-15T03:16:33.000Z | .archived/snakecode/0460.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | null | null | null | .archived/snakecode/0460.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | 1 | 2021-12-09T12:33:07.000Z | 2021-12-09T12:33:07.000Z | from typing import Optional, Any
class Node:
def __init__(self, key: int = 0, val: int = 0):
self.key: int = key
self.val: int = val
self.freq: int = 0
self.pre: Optional[Node] = None
self.next: Optional[Node] = None
class DLList:
def __init__(self):
self.size =... | 41.386364 | 683 | 0.513271 | 846 | 5,463 | 3.242317 | 0.153664 | 0.098432 | 0.078746 | 0.065622 | 0.215093 | 0.184105 | 0.168793 | 0.127962 | 0.069996 | 0.024061 | 0 | 0.077371 | 0.245286 | 5,463 | 132 | 684 | 41.386364 | 0.587921 | 0.357313 | 0 | 0.131313 | 0 | 0 | 0.017528 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.111111 | false | 0 | 0.010101 | 0.010101 | 0.222222 | 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 |
b48883d3a21bfcf226b4a43dc5ce8c081b237e69 | 3,332 | py | Python | lps/seeds.py | fernandoleira/lps-platform | 0d2ac2465c27444e184bbe5357553607b37790da | [
"MIT"
] | null | null | null | lps/seeds.py | fernandoleira/lps-platform | 0d2ac2465c27444e184bbe5357553607b37790da | [
"MIT"
] | null | null | null | lps/seeds.py | fernandoleira/lps-platform | 0d2ac2465c27444e184bbe5357553607b37790da | [
"MIT"
] | null | null | null | import csv
from pathlib import Path
from datetime import datetime
from lps.models import *
from lps.schemas import *
SEED_FOLDER_PATH = Path("db/seeds/")
def import_from_csv(csv_filename):
with open(SEED_FOLDER_PATH / csv_filename) as csv_file:
csv_read = csv.DictReader(csv_file, delimiter=',')
... | 30.851852 | 176 | 0.635054 | 470 | 3,332 | 4.302128 | 0.217021 | 0.034619 | 0.032146 | 0.035608 | 0.42087 | 0.290307 | 0.244807 | 0.166667 | 0.089515 | 0.089515 | 0 | 0.000775 | 0.22539 | 3,332 | 107 | 177 | 31.140187 | 0.782642 | 0.021008 | 0 | 0.368421 | 0 | 0 | 0.199816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.013158 | 0.131579 | 0 | 0.223684 | 0.197368 | 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 |
b48b0aa9e22f7e6f7d8092e34b71578abf6b8004 | 2,121 | py | Python | matgendb/builders/examples/maxvalue_builder.py | Tinaatucsd/pymatgen-db | e1fc46b7df8bea8455e7290ae3eea6fd297a09f3 | [
"MIT"
] | null | null | null | matgendb/builders/examples/maxvalue_builder.py | Tinaatucsd/pymatgen-db | e1fc46b7df8bea8455e7290ae3eea6fd297a09f3 | [
"MIT"
] | null | null | null | matgendb/builders/examples/maxvalue_builder.py | Tinaatucsd/pymatgen-db | e1fc46b7df8bea8455e7290ae3eea6fd297a09f3 | [
"MIT"
] | null | null | null | """
Build a derived collection with the maximum
value from each 'group' defined in the source
collection.
"""
__author__ = 'Dan Gunter <dkgunter@lbl.gov>'
__date__ = '5/21/14'
from matgendb.builders import core
from matgendb.builders import util
from matgendb.query_engine import QueryEngine
_log = util.get_builder_lo... | 35.949153 | 72 | 0.614804 | 251 | 2,121 | 5.055777 | 0.406375 | 0.047281 | 0.035461 | 0.040977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003324 | 0.290901 | 2,121 | 59 | 73 | 35.949153 | 0.840426 | 0.327676 | 0 | 0 | 0 | 0 | 0.060286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 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 |
b48eb31a18679e3dd6c7f6eeeaf59912e0ae7a93 | 1,775 | py | Python | multiscaleloss.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | multiscaleloss.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | multiscaleloss.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import optflow.compute_tvl1_energy as compute_tvl1_energy
def EPE(input_flow, target_flow, sparse=False, mean=True):
EPE_map = torch.norm(target_flow-input_flow,2,1)
if sparse:
EPE_map = EPE_map[target_flow != 0]
if mean:
return EPE_map.mean()
else:
... | 41.27907 | 101 | 0.652958 | 242 | 1,775 | 4.520661 | 0.305785 | 0.071298 | 0.104205 | 0.031079 | 0.11883 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029235 | 0.248451 | 1,775 | 43 | 102 | 41.27907 | 0.790855 | 0.019718 | 0 | 0.055556 | 0 | 0 | 0.0046 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.111111 | false | 0 | 0.083333 | 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 |
81e7a0792251a7a66030d5e6a745a97158b8e55f | 8,070 | py | Python | object_detector/src/object_detector/object_detector.py | Ajapaik/ml-2021-ajapaik | 31e318f10329405237a5773a1d963b3ab867fa02 | [
"Apache-2.0"
] | null | null | null | object_detector/src/object_detector/object_detector.py | Ajapaik/ml-2021-ajapaik | 31e318f10329405237a5773a1d963b3ab867fa02 | [
"Apache-2.0"
] | 9 | 2021-11-12T16:54:24.000Z | 2021-12-12T14:13:49.000Z | object_detector/src/object_detector/object_detector.py | iharsuvorau/ml-2021-ajapaik | 31e318f10329405237a5773a1d963b3ab867fa02 | [
"Apache-2.0"
] | 1 | 2022-02-24T21:23:06.000Z | 2022-02-24T21:23:06.000Z | import numpy as np
import time
import cv2
import argparse
import sys
import os
import glob
import json
from pathlib import Path
class ObjectDetector:
def file_exist(file_names_list: list) -> bool:
if all(list(map(os.path.isfile,file_names_list))):
return True
else:
print("P... | 37.887324 | 153 | 0.580421 | 963 | 8,070 | 4.720665 | 0.284528 | 0.019798 | 0.026177 | 0.013858 | 0.109547 | 0.08271 | 0.031676 | 0.031676 | 0.031676 | 0.031676 | 0 | 0.010903 | 0.318092 | 8,070 | 213 | 154 | 37.887324 | 0.815192 | 0.177943 | 0 | 0.148936 | 0 | 0 | 0.135172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0 | 0.141844 | 0.035461 | 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 |
81e7fbeb1aa79861faba9578ed1ed05e2c7b8c74 | 5,669 | py | Python | pactools/mne_api.py | mathurinm/pactools | 2ad08061c69378368137a26e0519ce3ce6e5c7bd | [
"BSD-3-Clause"
] | null | null | null | pactools/mne_api.py | mathurinm/pactools | 2ad08061c69378368137a26e0519ce3ce6e5c7bd | [
"BSD-3-Clause"
] | null | null | null | pactools/mne_api.py | mathurinm/pactools | 2ad08061c69378368137a26e0519ce3ce6e5c7bd | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def _check_mne(name):
"""Helper to check if h5py is installed"""
try:
import mne
except ImportError:
raise ImportError('Please install MNE-python to use %s.' % name)
return mne
def raw_to_mask(raw, ixs, events=None, tmin=None, tmax=None):
"""
A function to ... | 34.150602 | 79 | 0.599929 | 819 | 5,669 | 4.052503 | 0.241758 | 0.036155 | 0.016571 | 0.018078 | 0.222356 | 0.185297 | 0.165713 | 0.144622 | 0.127749 | 0.127749 | 0 | 0.006616 | 0.306756 | 5,669 | 165 | 80 | 34.357576 | 0.837913 | 0.50344 | 0 | 0.130435 | 0 | 0 | 0.043597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101449 | false | 0 | 0.057971 | 0.028986 | 0.231884 | 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 |
81e833e9fa8dc0d32e6fa4d7181d790ea3b16866 | 508 | py | Python | 1101-1200/1152-Analyze User Website Visit Pattern/1152-Analyze User Website Visit Pattern.py | jiadaizhao/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 1101-1200/1152-Analyze User Website Visit Pattern/1152-Analyze User Website Visit Pattern.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 1101-1200/1152-Analyze User Website Visit Pattern/1152-Analyze User Website Visit Pattern.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | import collections
from itertools import combinations
from collections import Counter
class Solution:
def mostVisitedPattern(self, username: List[str], timestamp: List[int], website: List[str]) -> List[str]:
visit = collections.defaultdict(list)
for t, u, w in sorted(zip(timestamp, username, website... | 46.181818 | 109 | 0.673228 | 67 | 508 | 5.104478 | 0.552239 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002433 | 0.190945 | 508 | 10 | 110 | 50.8 | 0.829684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81eb1d6d6cc6e952fd1154195a1b71aa5f698462 | 870 | py | Python | src/tarot/magicEight.py | tjweldon/St_Germain | ab4114e71733ac4fc8cd835f8d1107340de5852f | [
"MIT"
] | null | null | null | src/tarot/magicEight.py | tjweldon/St_Germain | ab4114e71733ac4fc8cd835f8d1107340de5852f | [
"MIT"
] | null | null | null | src/tarot/magicEight.py | tjweldon/St_Germain | ab4114e71733ac4fc8cd835f8d1107340de5852f | [
"MIT"
] | null | null | null | import random
async def magicEightBall(ctx, message=True):
if message:
eightBall = random.randint(0, 19)
outlooks = [
"As I see it, yes.",
"Ask again later.",
"Better not tell you now.",
"Cannot predict now.",
"Concentrate and ask again."... | 29 | 57 | 0.452874 | 93 | 870 | 4.247312 | 0.709677 | 0.040506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007984 | 0.424138 | 870 | 29 | 58 | 30 | 0.778443 | 0 | 0 | 0 | 0 | 0 | 0.403448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 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 |
81eb7f6fef6cc7597c7451eea8083a954d98940b | 2,087 | py | Python | src/adafruit-circuitpython-bundle-4.x-mpy-20190713/examples/hue_simpletest.py | mbaaba/solar_panel | 42059d8c61320494ad1298065dbc50cd9b3bd51e | [
"MIT"
] | 1 | 2020-04-13T16:10:53.000Z | 2020-04-13T16:10:53.000Z | infra/libs-400rc2-20190512/examples/hue_simpletest.py | jadudm/feather-isa | b7419e6698c3f64be4d8122656eb8124631ca859 | [
"MIT"
] | null | null | null | infra/libs-400rc2-20190512/examples/hue_simpletest.py | jadudm/feather-isa | b7419e6698c3f64be4d8122656eb8124631ca859 | [
"MIT"
] | null | null | null | import time
import board
import busio
from digitalio import DigitalInOut
from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
import neopixel
# Import Philips Hue Bridge
from adafruit_hue import Bridge
# Get wifi details and more from a secrets.py file
... | 32.609375 | 84 | 0.712985 | 314 | 2,087 | 4.544586 | 0.324841 | 0.067274 | 0.030834 | 0.033637 | 0.150666 | 0.12754 | 0.068676 | 0.037842 | 0 | 0 | 0 | 0.037278 | 0.190225 | 2,087 | 63 | 85 | 33.126984 | 0.807101 | 0.184475 | 0 | 0.095238 | 0 | 0 | 0.070726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.238095 | 0 | 0.238095 | 0.047619 | 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 |
81ebc1e0f8c3dd6fa15e9aec38b6811ca3958a6e | 2,081 | py | Python | examples/python-echo/src/echo.py | mdelete/kore | 481bb133a9307614dc7da6ca59453ef154696ce1 | [
"0BSD"
] | null | null | null | examples/python-echo/src/echo.py | mdelete/kore | 481bb133a9307614dc7da6ca59453ef154696ce1 | [
"0BSD"
] | null | null | null | examples/python-echo/src/echo.py | mdelete/kore | 481bb133a9307614dc7da6ca59453ef154696ce1 | [
"0BSD"
] | null | null | null | #
# Copyright (c) 2013-2018 Joris Vink <joris@coders.se>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... | 35.271186 | 74 | 0.655454 | 290 | 2,081 | 4.662069 | 0.486207 | 0.026627 | 0.017751 | 0.026627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014579 | 0.274868 | 2,081 | 58 | 75 | 35.87931 | 0.881378 | 0.511773 | 0 | 0.206897 | 0 | 0 | 0.04431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0.034483 | 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 |
81eca3ec2c7fb9bdc184a8e1b344b38081bdf451 | 3,710 | py | Python | pesto-cli/pesto/ws/service/process.py | CS-SI/pesto | 654a961d1064049578050d4c96e6f68f6a6dd770 | [
"Apache-2.0"
] | 25 | 2020-05-19T16:22:52.000Z | 2022-01-06T13:31:19.000Z | pesto-cli/pesto/ws/service/process.py | CS-SI/pesto | 654a961d1064049578050d4c96e6f68f6a6dd770 | [
"Apache-2.0"
] | 5 | 2020-10-12T09:30:20.000Z | 2021-12-13T12:49:06.000Z | pesto-cli/pesto/ws/service/process.py | CS-SI/pesto | 654a961d1064049578050d4c96e6f68f6a6dd770 | [
"Apache-2.0"
] | 5 | 2020-06-19T16:05:13.000Z | 2021-03-11T11:51:19.000Z | import asyncio
import logging
import traceback
import uuid
from typing import Optional, Tuple, Any, Callable
from pesto.ws.core.payload_parser import PayloadParser, PestoConfig
from pesto.ws.core.pesto_feature import PestoFeatures
from pesto.ws.core.utils import load_class, async_exec
from pesto.ws.features.algorithm_... | 37.857143 | 118 | 0.692453 | 402 | 3,710 | 6.171642 | 0.303483 | 0.047158 | 0.057638 | 0.061266 | 0.108827 | 0.046755 | 0.046755 | 0.046755 | 0.046755 | 0 | 0 | 0.000347 | 0.222642 | 3,710 | 97 | 119 | 38.247423 | 0.859917 | 0.019137 | 0 | 0.051282 | 0 | 0 | 0.066832 | 0.032178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.230769 | 0 | 0.371795 | 0.012821 | 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 |
81edcd97dcc8187e9a6274632556bdf350c16b63 | 1,858 | py | Python | migration_runner/helpers.py | beveradb/ecs-digital-interview-test | 7e2d18005263424be016281d3f3f344af4536971 | [
"MIT"
] | null | null | null | migration_runner/helpers.py | beveradb/ecs-digital-interview-test | 7e2d18005263424be016281d3f3f344af4536971 | [
"MIT"
] | 49 | 2019-02-14T01:52:14.000Z | 2021-11-15T17:48:17.000Z | migration_runner/helpers.py | beveradb/python-sql-migration-runner | 7e2d18005263424be016281d3f3f344af4536971 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import os
import re
import sys
class Helpers:
def __init__(self, logger=None):
if logger is None:
self.logger = logging.getLogger(__name__)
else:
self.logger = logger
@staticmethod
def extract_sequence_num(filename):
s... | 30.459016 | 78 | 0.599031 | 205 | 1,858 | 5.282927 | 0.360976 | 0.055402 | 0.029548 | 0.066482 | 0.134811 | 0.068329 | 0.068329 | 0.068329 | 0 | 0 | 0 | 0.008507 | 0.30409 | 1,858 | 60 | 79 | 30.966667 | 0.82908 | 0.011302 | 0 | 0.14 | 0 | 0 | 0.053406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.08 | 0.02 | 0.32 | 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 |
81efee60c11f653a60ba95f712d8bc50076b39ce | 9,512 | py | Python | xpanse/api/assets/v2/ip_range.py | PaloAltoNetworks/cortex-xpanse-python-sdk | 532d3fdb031a0e5943cc492222299f94ad93d030 | [
"0BSD"
] | 3 | 2021-09-02T16:05:04.000Z | 2021-09-10T01:10:48.000Z | xpanse/api/assets/v2/ip_range.py | PaloAltoNetworks/cortex-xpanse-python-sdk | 532d3fdb031a0e5943cc492222299f94ad93d030 | [
"0BSD"
] | 7 | 2021-08-31T17:43:33.000Z | 2021-12-01T00:36:48.000Z | xpanse/api/assets/v2/ip_range.py | PaloAltoNetworks/cortex-xpanse-python-sdk | 532d3fdb031a0e5943cc492222299f94ad93d030 | [
"0BSD"
] | null | null | null | from typing import Any, Dict, List
from xpanse.const import V2_PREFIX
from xpanse.endpoint import ExEndpoint
from xpanse.iterator import ExResultIterator
class IpRangeEndpoint(ExEndpoint):
"""
Part of the Assets v2 API for handling IP Ranges.
See: https://api.expander.expanse.co/api/v1/docs/
"""
... | 43.633028 | 197 | 0.58505 | 1,127 | 9,512 | 4.912156 | 0.221828 | 0.04552 | 0.005961 | 0.031611 | 0.510296 | 0.484285 | 0.446351 | 0.444906 | 0.407334 | 0.374277 | 0 | 0.019088 | 0.32254 | 9,512 | 217 | 198 | 43.834101 | 0.840006 | 0.61722 | 0 | 0.226415 | 0 | 0 | 0.238429 | 0.038506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.075472 | 0 | 0.320755 | 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 |
81f0008b1bc4b02d44062640b174c7fe2264f9eb | 8,337 | py | Python | polus-color-pyramid-builder-plugin/src/main.py | blowekamp/polus-plugins | 87f9c36647b4cf95cf107cfede3a5a1d749415a5 | [
"MIT"
] | null | null | null | polus-color-pyramid-builder-plugin/src/main.py | blowekamp/polus-plugins | 87f9c36647b4cf95cf107cfede3a5a1d749415a5 | [
"MIT"
] | 1 | 2020-08-02T23:20:46.000Z | 2020-08-02T23:20:46.000Z | polus-color-pyramid-builder-plugin/src/main.py | gauharbains/polus-plugins | 5e4d1e33bb61d7619d3a76fb7c115d475628a909 | [
"MIT"
] | null | null | null | from bfio import BioReader
import argparse, logging
import numpy as np
from pathlib import Path
import filepattern, multiprocessing, utils
from concurrent.futures import ThreadPoolExecutor
COLORS = ['red',
'green',
'blue',
'yellow',
'magenta',
'cyan',
'gray']... | 41.272277 | 130 | 0.578026 | 1,013 | 8,337 | 4.647581 | 0.260612 | 0.040357 | 0.014868 | 0.013381 | 0.157179 | 0.079014 | 0.064146 | 0.064146 | 0.050977 | 0.038658 | 0 | 0.013502 | 0.307065 | 8,337 | 201 | 131 | 41.477612 | 0.801454 | 0.189037 | 0 | 0.126984 | 0 | 0.007937 | 0.100758 | 0.003485 | 0 | 0 | 0 | 0.004975 | 0.02381 | 1 | 0.015873 | false | 0 | 0.047619 | 0 | 0.095238 | 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 |
81f05d1e9fcd11eb2b271dc4be5bcb49f68b18a0 | 1,175 | py | Python | kinetics/reaction_classes/general_rate_Law.py | wlawler45/kinetics | dd763ac27d7c0df8a9429419e911a22760ba5c5a | [
"MIT"
] | 13 | 2020-05-30T21:39:01.000Z | 2022-01-30T22:52:36.000Z | kinetics/reaction_classes/general_rate_Law.py | wlawler45/kinetics | dd763ac27d7c0df8a9429419e911a22760ba5c5a | [
"MIT"
] | 7 | 2019-06-15T13:16:31.000Z | 2021-12-09T11:16:53.000Z | kinetics/reaction_classes/general_rate_Law.py | willfinnigan/Kinetics | a607096f051c7721a7f2eac73a875366eaefef15 | [
"MIT"
] | 4 | 2019-09-23T09:46:11.000Z | 2022-03-18T20:30:03.000Z | from kinetics.reaction_classes.reaction_base_class import Reaction
class Generic(Reaction):
"""
This Reaction class allows you to specify your own rate equation.
Enter the parameter names in params, and the substrate names used in the reaction in species.
Type the rate equation as a string in rate_equa... | 33.571429 | 97 | 0.655319 | 140 | 1,175 | 5.335714 | 0.385714 | 0.11245 | 0.034806 | 0.069612 | 0.06158 | 0.06158 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258723 | 1,175 | 35 | 98 | 33.571429 | 0.857635 | 0.268085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.263158 | 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 |
81f105c666f6335423e163de23faa2cc06bc611a | 1,002 | py | Python | adapters/heiman/HS1RC.py | russdan/domoticz-zigbee2mqtt-plugin | d47895eab44bc87fc19ce151698d2afe9554fadc | [
"MIT"
] | 146 | 2018-09-19T11:38:48.000Z | 2022-03-21T11:54:12.000Z | adapters/heiman/HS1RC.py | russdan/domoticz-zigbee2mqtt-plugin | d47895eab44bc87fc19ce151698d2afe9554fadc | [
"MIT"
] | 783 | 2018-09-28T17:07:14.000Z | 2022-03-31T10:18:27.000Z | adapters/heiman/HS1RC.py | russdan/domoticz-zigbee2mqtt-plugin | d47895eab44bc87fc19ce151698d2afe9554fadc | [
"MIT"
] | 147 | 2018-09-25T18:39:51.000Z | 2022-03-01T19:31:27.000Z | from adapters.adapter_with_battery import AdapterWithBattery
from devices.switch.selector_switch import SelectorSwitch
class HeimanAlarmRemoteAdapter(AdapterWithBattery):
def __init__(self):
super().__init__()
self.switch = SelectorSwitch('Remote', 'action')
self.switch.add_level('Off', No... | 38.538462 | 79 | 0.718563 | 117 | 1,002 | 5.871795 | 0.418803 | 0.14556 | 0.094614 | 0.131004 | 0.180495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175649 | 1,002 | 25 | 80 | 40.08 | 0.831719 | 0 | 0 | 0 | 0 | 0 | 0.105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 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 |
81f14765ab4db0efd7fd86ef77889b6138ae6170 | 1,236 | py | Python | tennis_model_scraper/tennis_model_scraper/spiders/tennis_data_co_uk_spider.py | DrAndrey/tennis_model | f058becf41747111818599132b43b6147347a96c | [
"Apache-2.0"
] | null | null | null | tennis_model_scraper/tennis_model_scraper/spiders/tennis_data_co_uk_spider.py | DrAndrey/tennis_model | f058becf41747111818599132b43b6147347a96c | [
"Apache-2.0"
] | null | null | null | tennis_model_scraper/tennis_model_scraper/spiders/tennis_data_co_uk_spider.py | DrAndrey/tennis_model | f058becf41747111818599132b43b6147347a96c | [
"Apache-2.0"
] | 1 | 2019-01-21T14:59:34.000Z | 2019-01-21T14:59:34.000Z | # -*- coding: utf-8 -*-
"""
"""
import scrapy
from tennis_model.tennis_model_scraper.tennis_model_scraper import items
class TennisDataCoUkSpider(scrapy.Spider):
name = "tennis_data_co_uk"
allowed_domains = ["www.tennis-data.co.uk"]
start_urls = ["http://www.tennis-data.co.uk/alldata.php"]
custom_... | 31.692308 | 102 | 0.622977 | 156 | 1,236 | 4.660256 | 0.525641 | 0.048143 | 0.074278 | 0.057772 | 0.046768 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007527 | 0.247573 | 1,236 | 38 | 103 | 32.526316 | 0.774194 | 0.01699 | 0 | 0 | 0 | 0 | 0.226556 | 0.093776 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.038462 | 0.076923 | 0 | 0.423077 | 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 |
81f32b032af68bf0f0fedb0195eda42a9e169769 | 2,739 | py | Python | pyhmy/rpc/request.py | difengJ/pyhmy | c0bdb7f53b56bf8e9f53d60da6fec61415cebf3f | [
"MIT"
] | 37 | 2020-05-24T20:09:33.000Z | 2022-03-28T00:59:00.000Z | pyhmy/rpc/request.py | economize/pyhmy | 668d7ef756e4fefe4621f435bb9a3e37cbeb82d9 | [
"MIT"
] | 12 | 2020-06-09T02:58:54.000Z | 2022-03-20T15:33:55.000Z | pyhmy/rpc/request.py | economize/pyhmy | 668d7ef756e4fefe4621f435bb9a3e37cbeb82d9 | [
"MIT"
] | 30 | 2020-03-14T03:58:24.000Z | 2022-02-19T18:19:00.000Z | import json
import requests
from .exceptions import (
RequestsError,
RequestsTimeoutError,
RPCError
)
_default_endpoint = 'http://localhost:9500'
_default_timeout = 30
def base_request(method, params=None, endpoint=_default_endpoint, timeout=_default_timeout) -> str:
"""
Basic RPC request
... | 23.410256 | 99 | 0.591457 | 289 | 2,739 | 5.522491 | 0.3391 | 0.030075 | 0.035714 | 0.028822 | 0.308271 | 0.308271 | 0.308271 | 0.308271 | 0.308271 | 0.308271 | 0 | 0.006356 | 0.310697 | 2,739 | 116 | 100 | 23.612069 | 0.838983 | 0.369843 | 0 | 0.05 | 0 | 0 | 0.079386 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 1 | 0.05 | false | 0 | 0.075 | 0 | 0.175 | 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 |
81f3a40d44b3887a0748b1060fddbf244a3d66a8 | 3,430 | py | Python | gaze_api/scripts/vidPub.py | ajdroid/tobii_ros | b103cb772604458d9822911494af75057902ebb1 | [
"Unlicense"
] | null | null | null | gaze_api/scripts/vidPub.py | ajdroid/tobii_ros | b103cb772604458d9822911494af75057902ebb1 | [
"Unlicense"
] | null | null | null | gaze_api/scripts/vidPub.py | ajdroid/tobii_ros | b103cb772604458d9822911494af75057902ebb1 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import socket
import threading
import rospy
from publisher import *
import cv2
import imagezmq
import numpy as np
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
def parse_sent_msg(msg):
ctr, frame_time = msg.split()
fra... | 32.666667 | 108 | 0.634111 | 420 | 3,430 | 5.004762 | 0.45 | 0.026641 | 0.024738 | 0.019981 | 0.057088 | 0.031399 | 0.031399 | 0 | 0 | 0 | 0 | 0.020166 | 0.262682 | 3,430 | 104 | 109 | 32.980769 | 0.810992 | 0.199125 | 0 | 0 | 0 | 0 | 0.053982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0.15625 | 0 | 0.28125 | 0.015625 | 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 |
81f5675fd7ed78cac4c0fcf799fa59f89177494a | 3,179 | py | Python | LAImapping_SNAP/snappy_backscatterLAI.py | dipankar05/aws4agrisar | f3307f0a90668f4586baf61ac4a322be4d32ea6a | [
"MIT"
] | 5 | 2021-08-20T05:21:02.000Z | 2021-08-22T09:43:54.000Z | Chapter05/Sec56/LAImapping_SNAP/snappy_backscatterLAI.py | dipankar05/springer-cropradar | b1f2fddab1bb60adafd8c9aba6c34538eb356988 | [
"MIT"
] | null | null | null | Chapter05/Sec56/LAImapping_SNAP/snappy_backscatterLAI.py | dipankar05/springer-cropradar | b1f2fddab1bb60adafd8c9aba6c34538eb356988 | [
"MIT"
] | 1 | 2021-07-06T03:18:26.000Z | 2021-07-06T03:18:26.000Z | import sys
import numpy
import numpy as np
from snappy import Product
from snappy import ProductData
from snappy import ProductIO
from snappy import ProductUtils
from snappy import FlagCoding
##############
import csv
###############MSVR
from sklearn.svm import SVR
from sklearn.preprocessing import StandardScaler
fro... | 28.383929 | 83 | 0.654608 | 384 | 3,179 | 5.359375 | 0.398438 | 0.024295 | 0.038873 | 0.015549 | 0.067055 | 0.031098 | 0 | 0 | 0 | 0 | 0 | 0.028719 | 0.145643 | 3,179 | 112 | 84 | 28.383929 | 0.729013 | 0.07927 | 0 | 0 | 0 | 0 | 0.091734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.128205 | 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 |
81f80e27b98817c9ba8d1f9fbc633ce2a51ca059 | 850 | py | Python | pre_commit_hooks/forbid_crlf.py | henryiii/pre-commit-hooks | 93b709d9ca27610518f5435fa9a51d98f7ada18d | [
"MIT"
] | 62 | 2015-07-26T06:20:40.000Z | 2022-03-26T21:05:59.000Z | pre_commit_hooks/forbid_crlf.py | henryiii/pre-commit-hooks | 93b709d9ca27610518f5435fa9a51d98f7ada18d | [
"MIT"
] | 25 | 2015-07-24T08:34:52.000Z | 2022-03-10T20:22:45.000Z | pre_commit_hooks/forbid_crlf.py | henryiii/pre-commit-hooks | 93b709d9ca27610518f5435fa9a51d98f7ada18d | [
"MIT"
] | 30 | 2015-07-18T17:40:25.000Z | 2022-02-10T19:55:53.000Z | from __future__ import print_function
import argparse, sys
from .utils import is_textfile
def contains_crlf(filename):
with open(filename, mode='rb') as file_checked:
for line in file_checked.readlines():
if line.endswith(b'\r\n'):
return True
return False
def main(argv=Non... | 32.692308 | 76 | 0.682353 | 125 | 850 | 4.368 | 0.472 | 0.058608 | 0.018315 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005979 | 0.212941 | 850 | 25 | 77 | 34 | 0.810164 | 0 | 0 | 0 | 0 | 0 | 0.091765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
81f9249901387ee78233d110ebdfbf78c9c6a8d9 | 46,176 | py | Python | analysis/models/nodes/analysis_node.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | analysis/models/nodes/analysis_node.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | analysis/models/nodes/analysis_node.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | """ AnalysisNode is the base class that all analysis nodes inherit from. """
import logging
import operator
from functools import reduce
from random import random
from time import time
from typing import Tuple, Sequence, List, Dict, Optional
from celery.canvas import Signature
from django.conf import settings
from dja... | 40.293194 | 128 | 0.652027 | 5,621 | 46,176 | 5.113859 | 0.121864 | 0.013568 | 0.007827 | 0.003409 | 0.231136 | 0.156062 | 0.10694 | 0.076639 | 0.070134 | 0.061854 | 0 | 0.002126 | 0.266437 | 46,176 | 1,145 | 129 | 40.328384 | 0.846485 | 0.142217 | 0 | 0.236211 | 0 | 0.001199 | 0.048619 | 0.01495 | 0.001199 | 0 | 0 | 0.00262 | 0 | 1 | 0.129496 | false | 0.014388 | 0.039568 | 0.031175 | 0.382494 | 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 |
81f9aae1477fdf2636841fe260c82468ac2cde52 | 2,077 | py | Python | lbrc_flask/standard_views.py | LCBRU/lbrc_flask_ui | 35dea4581bbd92e9b53134342052b2ce02f903d4 | [
"MIT"
] | null | null | null | lbrc_flask/standard_views.py | LCBRU/lbrc_flask_ui | 35dea4581bbd92e9b53134342052b2ce02f903d4 | [
"MIT"
] | null | null | null | lbrc_flask/standard_views.py | LCBRU/lbrc_flask_ui | 35dea4581bbd92e9b53134342052b2ce02f903d4 | [
"MIT"
] | null | null | null | import os
import traceback
from flask import render_template, send_from_directory, current_app, g
from .emailing import email
def init_standard_views(app):
@app.route("/favicon.ico")
def favicon():
return send_from_directory(
os.path.join(app.root_path, "static"),
"f... | 32.968254 | 93 | 0.604718 | 241 | 2,077 | 5.049793 | 0.294606 | 0.051767 | 0.090386 | 0.073952 | 0.430567 | 0.406738 | 0.406738 | 0.406738 | 0.406738 | 0.406738 | 0 | 0.040984 | 0.295137 | 2,077 | 62 | 94 | 33.5 | 0.790301 | 0.180067 | 0 | 0.076923 | 0 | 0 | 0.14702 | 0.015894 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.102564 | 0.025641 | 0.435897 | 0.025641 | 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 |
81fb14b3776d226412fc52409bbe9c75a0f071a1 | 1,455 | py | Python | postmanparser/form_parameter.py | appknox/postmanparser | bef9581d1c81e111fe635e7ea851333e7b2261e5 | [
"Apache-2.0"
] | 5 | 2021-06-25T10:14:40.000Z | 2022-03-31T20:52:51.000Z | postmanparser/form_parameter.py | appknox/postmanparser | bef9581d1c81e111fe635e7ea851333e7b2261e5 | [
"Apache-2.0"
] | 4 | 2021-06-07T17:05:27.000Z | 2021-09-07T13:26:20.000Z | postmanparser/form_parameter.py | appknox/postmanparser | bef9581d1c81e111fe635e7ea851333e7b2261e5 | [
"Apache-2.0"
] | 2 | 2021-09-06T15:41:50.000Z | 2021-11-10T14:22:46.000Z | from dataclasses import dataclass
from typing import List
from typing import Union
from postmanparser.description import Description
from postmanparser.exceptions import InvalidObjectException
from postmanparser.exceptions import MissingRequiredFieldException
@dataclass
class FormParameter:
key: str
value: s... | 32.333333 | 81 | 0.620619 | 149 | 1,455 | 6.020134 | 0.355705 | 0.054627 | 0.035674 | 0.073579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290722 | 1,455 | 44 | 82 | 33.068182 | 0.869186 | 0.026117 | 0 | 0 | 0 | 0 | 0.110954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.15 | 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 |
81fda8338c93f1b3783533f708ac76a777187c33 | 36,148 | py | Python | hxl/scripts.py | HXLStandard/libhxl-python | 8d32d32c8165ec2ef4f7d970c30ca037fcc46b35 | [
"Unlicense"
] | 30 | 2015-06-02T22:06:22.000Z | 2020-07-30T08:43:40.000Z | hxl/scripts.py | HXLStandard/libhxl-python | 8d32d32c8165ec2ef4f7d970c30ca037fcc46b35 | [
"Unlicense"
] | 262 | 2015-01-27T16:43:28.000Z | 2022-03-28T15:33:53.000Z | hxl/scripts.py | HXLStandard/libhxl-python | 8d32d32c8165ec2ef4f7d970c30ca037fcc46b35 | [
"Unlicense"
] | 9 | 2015-01-20T06:06:28.000Z | 2020-07-13T23:54:03.000Z | """
Console scripts
David Megginson
April 2015
This is a big, ugly module to support the libhxl
console scripts, including (mainly) argument parsing.
License: Public Domain
Documentation: https://github.com/HXLStandard/libhxl-python/wiki
"""
from __future__ import print_function
import argparse, json, logging, os, ... | 30.478921 | 231 | 0.628389 | 4,499 | 36,148 | 4.932207 | 0.105801 | 0.030735 | 0.043668 | 0.022983 | 0.526003 | 0.505678 | 0.47918 | 0.459306 | 0.442992 | 0.43105 | 0 | 0.001011 | 0.260983 | 36,148 | 1,185 | 232 | 30.504641 | 0.82964 | 0.148113 | 0 | 0.423412 | 0 | 0.036115 | 0.206447 | 0.003718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0.001245 | 0.003736 | 0.002491 | 0.120797 | 0.004981 | 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 |
81fdf45abe6a280ed6357190764ee304c85901c1 | 787 | py | Python | Math Functions/Uncategorized/Herons formula.py | adrikagupta/Must-Know-Programming-Codes | d403428bb9e619b855bde1ae9f46f41a2952b4fa | [
"MIT"
] | 13 | 2017-10-11T09:03:48.000Z | 2020-06-09T16:00:50.000Z | Math Functions/Uncategorized/Herons formula.py | adrikagupta/Must-Know-Programming-Codes | d403428bb9e619b855bde1ae9f46f41a2952b4fa | [
"MIT"
] | 4 | 2017-10-15T06:23:10.000Z | 2017-10-22T08:22:49.000Z | Math Functions/Uncategorized/Herons formula.py | adrikagupta/Must-Know-Programming-Codes | d403428bb9e619b855bde1ae9f46f41a2952b4fa | [
"MIT"
] | 23 | 2017-10-14T05:22:33.000Z | 2019-10-30T19:35:42.000Z | #Heron's formula#
import math
unit_of_measurement = "cm"
side1 = int(input("Enter the length of side A in cm: "))
side2 = int(input("Enter the length of side B in cm: "))
side3 = int(input("Enter the length of side C in cm: "))
braket1 = (side1 ** 2) * (side2**2) + (side1**2)*(side3**2) + (side2**2)*(side3**2)
brake... | 29.148148 | 84 | 0.672173 | 122 | 787 | 4.221311 | 0.303279 | 0.046602 | 0.075728 | 0.093204 | 0.213592 | 0.163107 | 0.163107 | 0 | 0 | 0 | 0 | 0.055882 | 0.135959 | 787 | 26 | 85 | 30.269231 | 0.701471 | 0.01906 | 0 | 0.105263 | 0 | 0 | 0.226563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.368421 | 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 |
81fe4dff84aff0d592f6a1cba826b336e24d2573 | 4,605 | py | Python | viewer/bitmap_from_array.py | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 2 | 2021-03-17T11:25:46.000Z | 2021-11-18T04:20:54.000Z | viewer/bitmap_from_array.py | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | null | null | null | viewer/bitmap_from_array.py | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function
import numpy as np
import wx
from dials.array_family import flex
from dials_viewer_ext import rgb_img
class wxbmp_from_np_array(object):
def __init__(
self, lst_data_in, show_nums=True, palette="black2white", lst_data_mask_in=None
):
... | 33.369565 | 87 | 0.569381 | 628 | 4,605 | 3.785032 | 0.213376 | 0.027345 | 0.033656 | 0.037863 | 0.159445 | 0.107278 | 0.095078 | 0.071519 | 0.051325 | 0 | 0 | 0.021639 | 0.337676 | 4,605 | 137 | 88 | 33.613139 | 0.757705 | 0.030836 | 0 | 0.060606 | 0 | 0 | 0.020866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040404 | false | 0 | 0.050505 | 0 | 0.131313 | 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 |
81feb43ec495c8683dc8e553db15a96568c7f33c | 34,772 | py | Python | sphinxsharp-pro/sphinxsharp.py | madTeddy/sphinxsharp-pro | e7a164214113cef33bca96e9fbbab3feafe16823 | [
"MIT"
] | 2 | 2019-04-22T12:59:26.000Z | 2021-07-30T21:32:44.000Z | sphinxsharp-pro/sphinxsharp.py | madTeddy/sphinxsharp-pro | e7a164214113cef33bca96e9fbbab3feafe16823 | [
"MIT"
] | null | null | null | sphinxsharp-pro/sphinxsharp.py | madTeddy/sphinxsharp-pro | e7a164214113cef33bca96e9fbbab3feafe16823 | [
"MIT"
] | null | null | null | """
CSharp (С#) domain for sphinx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sphinxsharp Pro (with custom styling)
:copyright: Copyright 2021 by MadTeddy
"""
import re
import warnings
from os import path
from collections import defaultdict, namedtuple
from docutils import nodes
from docutils.parsers.rst import... | 38.085433 | 118 | 0.569884 | 3,767 | 34,772 | 5.085214 | 0.103531 | 0.026989 | 0.030748 | 0.01801 | 0.401754 | 0.343339 | 0.277563 | 0.218313 | 0.192368 | 0.156035 | 0 | 0.00224 | 0.293943 | 34,772 | 912 | 119 | 38.127193 | 0.778013 | 0.011331 | 0 | 0.253388 | 0 | 0 | 0.072067 | 0.013952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108401 | false | 0.00813 | 0.01897 | 0.006775 | 0.250678 | 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 |
81ff80a60fb6d3f51394a723adeda192add9c640 | 5,622 | py | Python | kratos/mpi/tests/test_data_communicator_factory.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | kratos/mpi/tests/test_data_communicator_factory.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | kratos/mpi/tests/test_data_communicator_factory.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | from KratosMultiphysics import ParallelEnvironment, IsDistributedRun
if IsDistributedRun():
from KratosMultiphysics.mpi import DataCommunicatorFactory
import KratosMultiphysics.KratosUnittest as UnitTest
import math
class TestDataCommunicatorFactory(UnitTest.TestCase):
def setUp(self):
self.registere... | 52.055556 | 155 | 0.730523 | 579 | 5,622 | 6.924007 | 0.172712 | 0.054877 | 0.074832 | 0.134697 | 0.51559 | 0.50212 | 0.438264 | 0.387628 | 0.378399 | 0.361187 | 0 | 0.005444 | 0.183209 | 5,622 | 107 | 156 | 52.542056 | 0.867596 | 0.097118 | 0 | 0.3 | 0 | 0 | 0.069749 | 0 | 0 | 0 | 0 | 0 | 0.175 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.1625 | 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 |
c3013dccb7b2137642e33db7031ac540e1d949e4 | 811 | py | Python | create_order.py | behnam71/Crypto_P | 1196f06c611eac65dece323d62104233cf2386b1 | [
"MIT"
] | null | null | null | create_order.py | behnam71/Crypto_P | 1196f06c611eac65dece323d62104233cf2386b1 | [
"MIT"
] | null | null | null | create_order.py | behnam71/Crypto_P | 1196f06c611eac65dece323d62104233cf2386b1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
from pprint import pprint
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root + '/python')
import ccxt # noqa: E402
exchange = ccxt.binance({
'apiKey': 'SmweB9bNM2qpYkgl4zaQSFPpSzYpyoJ6B3BE9rCm0XYcAdIE0b7n6bm11e8j... | 27.033333 | 83 | 0.713933 | 99 | 811 | 5.79798 | 0.636364 | 0.041812 | 0.067944 | 0.078397 | 0.078397 | 0.078397 | 0.078397 | 0.078397 | 0 | 0 | 0 | 0.043541 | 0.150432 | 811 | 29 | 84 | 27.965517 | 0.78955 | 0.184957 | 0 | 0 | 0 | 0 | 0.290965 | 0.196018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 0.105263 | 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 |
c3044c3a6846d86e6151eb00472156db75ba2d69 | 1,046 | py | Python | xml_to_csv.py | bhavdeepsingh33/blood-cell-detection | 1afe0ce7aba7c621eb13fc055cc706981fcf4962 | [
"MIT"
] | null | null | null | xml_to_csv.py | bhavdeepsingh33/blood-cell-detection | 1afe0ce7aba7c621eb13fc055cc706981fcf4962 | [
"MIT"
] | null | null | null | xml_to_csv.py | bhavdeepsingh33/blood-cell-detection | 1afe0ce7aba7c621eb13fc055cc706981fcf4962 | [
"MIT"
] | null | null | null | import os
import glob
import pandas as pd
import xml.etree.ElementTree as ET
def xml_to_csv(path):
xml_list = []
for xml_file in glob.glob(path + '/*.xml'):
tree = ET.parse(xml_file)
root = tree.getroot()
for member in root.findall('object'):
value = (root.find('filename').... | 29.885714 | 78 | 0.543977 | 137 | 1,046 | 4 | 0.459854 | 0.036496 | 0.094891 | 0.10219 | 0.054745 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012397 | 0.305927 | 1,046 | 34 | 79 | 30.764706 | 0.742424 | 0 | 0 | 0 | 0 | 0 | 0.118547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.25 | 0.035714 | 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 |
c306596434700224d0b28f389b38ad8d05d0205f | 4,311 | py | Python | djangocms_translations/utils.py | divio/djangocms-translations | 9bfde2fed91973160bbe50ccbd6b4e2a2f4ba07f | [
"BSD-3-Clause"
] | 3 | 2019-01-14T13:30:38.000Z | 2020-08-10T22:16:06.000Z | djangocms_translations/utils.py | divio/djangocms-translations | 9bfde2fed91973160bbe50ccbd6b4e2a2f4ba07f | [
"BSD-3-Clause"
] | 5 | 2018-12-20T13:56:47.000Z | 2021-07-20T07:13:01.000Z | djangocms_translations/utils.py | divio/djangocms-translations | 9bfde2fed91973160bbe50ccbd6b4e2a2f4ba07f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import json
from itertools import chain
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.exceptions import ObjectDoesNotExist
from django.db.models import BooleanField
from django.forms import modelform_factory
from django.utils.lru_cache import lru... | 28.549669 | 98 | 0.68128 | 547 | 4,311 | 5.151737 | 0.281536 | 0.028744 | 0.03726 | 0.021292 | 0.108943 | 0.041874 | 0.024131 | 0 | 0 | 0 | 0 | 0.000602 | 0.229181 | 4,311 | 150 | 99 | 28.74 | 0.847427 | 0.045233 | 0 | 0.081081 | 0 | 0 | 0.035532 | 0.005354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.171171 | 0.018018 | 0.351351 | 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 |
c3068d09ac63699b36a60bd71dd55030585fc665 | 597 | py | Python | bin/render_ingress.py | phplaboratory/madcore-ai | ea866334480d77b084ce971506cfdb285405c122 | [
"MIT"
] | null | null | null | bin/render_ingress.py | phplaboratory/madcore-ai | ea866334480d77b084ce971506cfdb285405c122 | [
"MIT"
] | null | null | null | bin/render_ingress.py | phplaboratory/madcore-ai | ea866334480d77b084ce971506cfdb285405c122 | [
"MIT"
] | null | null | null | import sys, os, json, jinja2, redis
from jinja2 import Template
r_server = redis.StrictRedis('127.0.0.1', db=2)
i_key = "owner-info"
json_data = r_server.get(i_key)
if json_data is not None:
data = json.loads(json_data)
main_domain = data['Hostname']
fqdn = sys.argv[1] + ".ext." + main_domain
config_template... | 35.117647 | 112 | 0.715243 | 96 | 597 | 4.3125 | 0.541667 | 0.084541 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026415 | 0.112228 | 597 | 16 | 113 | 37.3125 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0.157454 | 0.072027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
c307664c89867d683750f1b12c8b33f9be0a22ae | 443 | py | Python | pyside/lesson_10_main.py | LueyEscargot/pyGuiTest | c072fe29a7c94dc60ec54344a5d4a91253d25f3f | [
"MIT"
] | null | null | null | pyside/lesson_10_main.py | LueyEscargot/pyGuiTest | c072fe29a7c94dc60ec54344a5d4a91253d25f3f | [
"MIT"
] | null | null | null | pyside/lesson_10_main.py | LueyEscargot/pyGuiTest | c072fe29a7c94dc60ec54344a5d4a91253d25f3f | [
"MIT"
] | null | null | null | import sys
from PySide2.QtWidgets import QApplication, QMainWindow
from PySide2.QtCore import QFile
from lesson_10_mainWidget import Ui_MainWindow
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
if __name... | 23.315789 | 55 | 0.708804 | 53 | 443 | 5.528302 | 0.54717 | 0.075085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.191874 | 443 | 18 | 56 | 24.611111 | 0.807263 | 0 | 0 | 0 | 0 | 0 | 0.018059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
c309029b235f5e5d51eecba38f135cf9e46dd8c7 | 971 | py | Python | script/python/result_get.py | yztong/LeNet_RTL | 0f714522dd7adc491bfbcf34b22f9f594e7442af | [
"MIT"
] | 29 | 2018-03-22T07:26:37.000Z | 2022-03-21T08:28:36.000Z | script/python/result_get.py | honorpeter/LeNet_RTL | 0f714522dd7adc491bfbcf34b22f9f594e7442af | [
"MIT"
] | 1 | 2021-04-12T13:28:46.000Z | 2021-04-21T10:00:53.000Z | script/python/result_get.py | honorpeter/LeNet_RTL | 0f714522dd7adc491bfbcf34b22f9f594e7442af | [
"MIT"
] | 9 | 2019-04-06T06:27:41.000Z | 2021-12-28T12:11:18.000Z | import numpy as np
from radix import radixConvert
c = radixConvert()
a = np.load("../../data/5/layer4.npy")
print(a.shape)
a = a*128
a = np.around(a).astype(np.int16)
print(a)
a = np.load('../../data/6.npy')
a = a*128
a = np.around(a).astype(np.int8)
print(a.shape)
for i in range(84):
print(i)
print(a[i])
''... | 23.682927 | 72 | 0.582904 | 176 | 971 | 3.153409 | 0.3125 | 0.075676 | 0.135135 | 0.054054 | 0.468468 | 0.27027 | 0.27027 | 0.27027 | 0.27027 | 0 | 0 | 0.065977 | 0.203913 | 971 | 40 | 73 | 24.275 | 0.652005 | 0 | 0 | 0.266667 | 0 | 0 | 0.122257 | 0.0721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
c3092b2cfa6e3e6a80652151da3eb7e1dffe233e | 1,237 | py | Python | saifooler/classifiers/image_net_classifier.py | sailab-code/SAIFooler | 76f91c33624273227d8ee2d974aa5b7b90ace5ac | [
"MIT"
] | null | null | null | saifooler/classifiers/image_net_classifier.py | sailab-code/SAIFooler | 76f91c33624273227d8ee2d974aa5b7b90ace5ac | [
"MIT"
] | null | null | null | saifooler/classifiers/image_net_classifier.py | sailab-code/SAIFooler | 76f91c33624273227d8ee2d974aa5b7b90ace5ac | [
"MIT"
] | null | null | null | from saifooler.classifiers.classifier import Classifier
import torch
import json
import os
class ImageNetClassifier(Classifier):
def __init__(self, model, *args, **kwargs):
super().__init__(model, *args, **kwargs)
self.std = torch.tensor([0.229, 0.224, 0.225], device=self.device)
self.mea... | 29.452381 | 104 | 0.600647 | 168 | 1,237 | 4.27381 | 0.422619 | 0.069638 | 0.041783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032402 | 0.276475 | 1,237 | 41 | 105 | 30.170732 | 0.769832 | 0.135004 | 0 | 0 | 0 | 0 | 0.024319 | 0.024319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.148148 | 0.037037 | 0.407407 | 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 |
c3093f2af126d570c81bda760a6f55d8df7bb8fb | 12,130 | py | Python | bertsification-multi-lstm.py | linhd-postdata/alberti | 4006eb0b97fe9e9bf3d8d1b014b1080713496da1 | [
"Apache-2.0"
] | null | null | null | bertsification-multi-lstm.py | linhd-postdata/alberti | 4006eb0b97fe9e9bf3d8d1b014b1080713496da1 | [
"Apache-2.0"
] | null | null | null | bertsification-multi-lstm.py | linhd-postdata/alberti | 4006eb0b97fe9e9bf3d8d1b014b1080713496da1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# conda install pytorch>=1.6 cudatoolkit=10.2 -c pytorch
# wandb login XXX
import json
import logging
import os
import re
import sklearn
import time
from itertools import product
import numpy as np
import pandas as pd
import wandb
#from IPython import get_ipython
from keras.prepro... | 41.683849 | 170 | 0.639077 | 1,640 | 12,130 | 4.551829 | 0.210976 | 0.026524 | 0.011788 | 0.008038 | 0.335968 | 0.289082 | 0.220362 | 0.197723 | 0.184595 | 0.184595 | 0 | 0.017337 | 0.18211 | 12,130 | 290 | 171 | 41.827586 | 0.734503 | 0.149629 | 0 | 0.123288 | 0 | 0 | 0.205415 | 0.029025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018265 | false | 0 | 0.082192 | 0.009132 | 0.118721 | 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 |
c30f35ba35fbd12a0fe79d62b724f5343db144f1 | 2,985 | py | Python | kattishunter/kattis/submission.py | ParksProjets/kattis-hunter | c4990edf59fba6d91d22fdc126673781ab423d0f | [
"MIT"
] | null | null | null | kattishunter/kattis/submission.py | ParksProjets/kattis-hunter | c4990edf59fba6d91d22fdc126673781ab423d0f | [
"MIT"
] | null | null | null | kattishunter/kattis/submission.py | ParksProjets/kattis-hunter | c4990edf59fba6d91d22fdc126673781ab423d0f | [
"MIT"
] | null | null | null | """
Submit files for a Kattis problem.
Copyright (C) 2019, Guillaume Gonnet
This project is under the MIT license.
"""
import os.path as path
import re
from typing import Dict, List, Text
import requests
import logging
from .login import login
logger = logging.getLogger(__name__)
# Base headers to use.
HEADERS ... | 26.415929 | 83 | 0.622781 | 405 | 2,985 | 4.530864 | 0.323457 | 0.039237 | 0.037057 | 0.037602 | 0.209264 | 0.156948 | 0.156948 | 0.124251 | 0.078474 | 0.078474 | 0 | 0.009056 | 0.223116 | 2,985 | 112 | 84 | 26.651786 | 0.782234 | 0.163484 | 0 | 0.121212 | 0 | 0.015152 | 0.250961 | 0.035742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
c30f9cd42abaa561a1c9cda944cad65e60a4fabe | 785 | py | Python | scripts/set_health_led.py | alanmitchell/mini-monitor | 5d60e1f69fc61d53f3090a159445595a9987c36a | [
"Apache-2.0"
] | 7 | 2016-01-11T23:54:31.000Z | 2022-02-16T11:58:16.000Z | scripts/set_health_led.py | alanmitchell/mini-monitor | 5d60e1f69fc61d53f3090a159445595a9987c36a | [
"Apache-2.0"
] | null | null | null | scripts/set_health_led.py | alanmitchell/mini-monitor | 5d60e1f69fc61d53f3090a159445595a9987c36a | [
"Apache-2.0"
] | 5 | 2015-12-17T15:22:45.000Z | 2018-08-13T17:40:38.000Z | #!/usr/bin/env python3
"""Script to do basic health checks of the system and turn on an LED on
BCM pin 12 (pin 32 on header) if they pass, turn Off otherwise.
"""
import time
import RPi.GPIO as GPIO
import subprocess
# The BCM pin number that the LED is wired to. When the pin
# is at 3.3V the LED is On.
LED_PIN = 12... | 25.322581 | 71 | 0.71465 | 138 | 785 | 4.021739 | 0.550725 | 0.032432 | 0.028829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028391 | 0.192357 | 785 | 30 | 72 | 26.166667 | 0.847003 | 0.498089 | 0 | 0 | 0 | 0 | 0.062992 | 0 | 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 |
c30fa03b89f6de54fae9f895f13e66390afbeacc | 2,676 | py | Python | vqa_txt_data/compare_experiment_results.py | billyang98/UNITER | c7f0833f14aa9dcb1e251a986c72e49edde1bdd4 | [
"MIT"
] | null | null | null | vqa_txt_data/compare_experiment_results.py | billyang98/UNITER | c7f0833f14aa9dcb1e251a986c72e49edde1bdd4 | [
"MIT"
] | null | null | null | vqa_txt_data/compare_experiment_results.py | billyang98/UNITER | c7f0833f14aa9dcb1e251a986c72e49edde1bdd4 | [
"MIT"
] | null | null | null | import json
import numpy as np
from tqdm import tqdm
# Change these based on experiment
#exp_dataset = 'mask_char_oov_test_set.db'
#exp_name = 'results_test_mask_char'
#exp_dataset = 'mask_2_oov_test_set.db'
#exp_name = 'results_test_mask_2'
#exp_dataset = 'mask_2_oov_test_set.db'
#exp_name = 'results_test_synonyms_ma... | 32.240964 | 155 | 0.763079 | 442 | 2,676 | 4.208145 | 0.205882 | 0.037634 | 0.037634 | 0.045161 | 0.513441 | 0.460215 | 0.435484 | 0.435484 | 0.409677 | 0.345161 | 0 | 0.018456 | 0.109118 | 2,676 | 82 | 156 | 32.634146 | 0.761745 | 0.343049 | 0 | 0 | 0 | 0 | 0.274871 | 0.20069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.075 | 0 | 0.15 | 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 |
c31289e9e024e29ebc9122d648b85bcf484eedb5 | 1,031 | py | Python | docs/source/conf.py | andriis/bravado | 0d2ef182df4eb38641282e2f839c4dc813ee4349 | [
"BSD-3-Clause"
] | 600 | 2015-05-20T00:37:21.000Z | 2022-03-09T03:48:38.000Z | docs/source/conf.py | andriis/bravado | 0d2ef182df4eb38641282e2f839c4dc813ee4349 | [
"BSD-3-Clause"
] | 323 | 2015-05-19T22:35:29.000Z | 2021-12-09T12:55:09.000Z | docs/source/conf.py | andriis/bravado | 0d2ef182df4eb38641282e2f839c4dc813ee4349 | [
"BSD-3-Clause"
] | 137 | 2015-05-14T19:51:58.000Z | 2022-01-31T19:36:32.000Z | # -*- coding: utf-8 -*-
import sphinx_rtd_theme
# -- General configuration -----------------------------------------------
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_te... | 22.413043 | 77 | 0.645975 | 118 | 1,031 | 5.440678 | 0.652542 | 0.042056 | 0.065421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014623 | 0.13773 | 1,031 | 45 | 78 | 22.911111 | 0.707537 | 0.327837 | 0 | 0 | 0 | 0 | 0.375182 | 0.032117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 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 |
c313212d51b9e2cc91e003a4faa89dafdee74dd8 | 13,900 | py | Python | edgedb/_testbase.py | Fogapod/edgedb-python | 377805660e3455bef536412bd5467b435753b3a5 | [
"Apache-2.0"
] | null | null | null | edgedb/_testbase.py | Fogapod/edgedb-python | 377805660e3455bef536412bd5467b435753b3a5 | [
"Apache-2.0"
] | null | null | null | edgedb/_testbase.py | Fogapod/edgedb-python | 377805660e3455bef536412bd5467b435753b3a5 | [
"Apache-2.0"
] | null | null | null | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | 30.151844 | 79 | 0.566403 | 1,515 | 13,900 | 5.007921 | 0.239604 | 0.01753 | 0.030051 | 0.050086 | 0.248979 | 0.190589 | 0.148939 | 0.111902 | 0.100962 | 0.036378 | 0 | 0.001978 | 0.345252 | 13,900 | 460 | 80 | 30.217391 | 0.831667 | 0.109784 | 0 | 0.318885 | 0 | 0 | 0.064678 | 0.005836 | 0 | 0 | 0 | 0 | 0.009288 | 1 | 0.080495 | false | 0.01548 | 0.037152 | 0 | 0.20743 | 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 |
c315663a28ae143f4027a8b0b899801904c9cfc7 | 824 | py | Python | konwledge_extraction/ner/bert_crf_ner/losses/focal_loss.py | mlshenkai/KGQA | 08e72d68da6519aaca7f39fabf8c0194bebd0314 | [
"Apache-2.0"
] | null | null | null | konwledge_extraction/ner/bert_crf_ner/losses/focal_loss.py | mlshenkai/KGQA | 08e72d68da6519aaca7f39fabf8c0194bebd0314 | [
"Apache-2.0"
] | null | null | null | konwledge_extraction/ner/bert_crf_ner/losses/focal_loss.py | mlshenkai/KGQA | 08e72d68da6519aaca7f39fabf8c0194bebd0314 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Kai Shen
# @Created Time: 2022/2/23 10:14 AM
# @Organization: YQN
# @Email: mlshenkai@163.com
import torch
import torch.nn as nn
import torch.nn.functional as F
class FocalLoss(nn.Module):
def __init__(self, gamma=2, weight=None, ignore_index=-100):
super(FocalLoss, self... | 28.413793 | 85 | 0.598301 | 110 | 824 | 4.354545 | 0.481818 | 0.114823 | 0.05428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034596 | 0.26335 | 824 | 28 | 86 | 29.428571 | 0.75453 | 0.23665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.466667 | 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 |
c3166bb775db3bf02b0cf82cc41168152ed9ad5b | 12,182 | py | Python | test/test_tilepyramid.py | ungarj/tilematrix | f5797cf2056f7de8de8f284db40b10943e5e40fb | [
"MIT"
] | 16 | 2016-07-27T22:21:12.000Z | 2022-01-15T18:13:43.000Z | test/test_tilepyramid.py | ungarj/tilematrix | f5797cf2056f7de8de8f284db40b10943e5e40fb | [
"MIT"
] | 30 | 2015-10-09T18:10:13.000Z | 2022-03-15T16:56:54.000Z | test/test_tilepyramid.py | ungarj/tilematrix | f5797cf2056f7de8de8f284db40b10943e5e40fb | [
"MIT"
] | 2 | 2021-07-30T07:23:13.000Z | 2021-09-13T12:24:11.000Z | """TilePyramid creation."""
import pytest
from shapely.geometry import Point
from shapely.ops import unary_union
from types import GeneratorType
from tilematrix import TilePyramid, snap_bounds
def test_init():
"""Initialize TilePyramids."""
for tptype in ["geodetic", "mercator"]:
assert TilePyramid(... | 34.315493 | 86 | 0.64111 | 1,583 | 12,182 | 4.754896 | 0.090967 | 0.080776 | 0.041849 | 0.036137 | 0.797529 | 0.671184 | 0.626943 | 0.553873 | 0.521058 | 0.513086 | 0 | 0.036472 | 0.241504 | 12,182 | 354 | 87 | 34.412429 | 0.778139 | 0.032753 | 0 | 0.522388 | 0 | 0 | 0.039042 | 0 | 0 | 0 | 0 | 0 | 0.324627 | 1 | 0.052239 | false | 0.007463 | 0.018657 | 0 | 0.070896 | 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 |
c316f38f732cf3a6b4ada4ff98b624a3bbbf8f67 | 1,180 | py | Python | setup.py | giovannicuriel/report_builder | e728e77d7647f248198e39521278ed246171b256 | [
"BSD-2-Clause"
] | null | null | null | setup.py | giovannicuriel/report_builder | e728e77d7647f248198e39521278ed246171b256 | [
"BSD-2-Clause"
] | null | null | null | setup.py | giovannicuriel/report_builder | e728e77d7647f248198e39521278ed246171b256 | [
"BSD-2-Clause"
] | 1 | 2019-11-25T12:51:29.000Z | 2019-11-25T12:51:29.000Z | # -*- coding: utf-8 -*-
"""
setup.py script
"""
import io
from collections import OrderedDict
from setuptools import setup, find_packages
with io.open('README.md', 'rt', encoding='utf8') as f:
README = f.read()
setup(
name='reportbuilder',
version='0.0.1',
url='http://github.com/giovannicuriel/report... | 26.818182 | 85 | 0.634746 | 129 | 1,180 | 5.728682 | 0.697674 | 0.070365 | 0.093369 | 0.117727 | 0.159675 | 0.110961 | 0 | 0 | 0 | 0 | 0 | 0.010776 | 0.213559 | 1,180 | 43 | 86 | 27.44186 | 0.78556 | 0.032203 | 0 | 0.055556 | 0 | 0 | 0.435626 | 0.040564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
c318b45aea4400e446baec5f077cb60419864b6f | 1,237 | py | Python | generate_dataset/visualize_mask.py | Kaju-Bubanja/PoseCNN | c2f7c4e8f98bc7c67d5cbc0be3167d3cb3bea396 | [
"MIT"
] | 20 | 2018-08-30T08:02:56.000Z | 2021-09-15T12:22:22.000Z | generate_dataset/visualize_mask.py | Kaju-Bubanja/PoseCNN | c2f7c4e8f98bc7c67d5cbc0be3167d3cb3bea396 | [
"MIT"
] | null | null | null | generate_dataset/visualize_mask.py | Kaju-Bubanja/PoseCNN | c2f7c4e8f98bc7c67d5cbc0be3167d3cb3bea396 | [
"MIT"
] | 5 | 2018-10-16T15:01:15.000Z | 2020-08-29T03:52:51.000Z | import cv2
import rosbag
import rospy
from cv_bridge import CvBridge
def main():
# bag = rosbag.Bag("/home/satco/PycharmProjects/PoseCNN/bag/dataset_one_box.bag")
bag = rosbag.Bag("/home/satco/PycharmProjects/PoseCNN/bag/test.bag")
# topics = ["/camera1/color/image_raw", "/camera2/color/image_raw"]
to... | 35.342857 | 100 | 0.595796 | 153 | 1,237 | 4.647059 | 0.424837 | 0.070323 | 0.091421 | 0.045007 | 0.188467 | 0.129395 | 0.129395 | 0.129395 | 0 | 0 | 0 | 0.043333 | 0.272433 | 1,237 | 35 | 101 | 35.342857 | 0.746667 | 0.211803 | 0 | 0.08 | 0 | 0 | 0.145511 | 0.097007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.2 | 0.04 | 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 |
c318c41ae02a5b1bce71b7e42ebcd848cf95e1f3 | 909 | py | Python | itembase/core/urls/location_urls.py | wedwardbeck/ibase | 5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b | [
"MIT"
] | null | null | null | itembase/core/urls/location_urls.py | wedwardbeck/ibase | 5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b | [
"MIT"
] | 9 | 2020-01-17T14:16:08.000Z | 2020-02-18T15:07:40.000Z | itembase/core/urls/location_urls.py | wedwardbeck/ibase | 5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b | [
"MIT"
] | null | null | null | from django.urls import path
from itembase.core.views.location_views import LocationAddressCreateView, LocationAddressDetailView, \
LocationAddressUpdateView, LocationCreateView, LocationDeleteView, LocationDetailView, LocationListView, \
LocationUpdateView
app_name = "locations"
urlpatterns = [
path("", ... | 50.5 | 110 | 0.729373 | 95 | 909 | 6.873684 | 0.315789 | 0.073507 | 0.122511 | 0.078101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 909 | 17 | 111 | 53.470588 | 0.797314 | 0 | 0 | 0 | 0 | 0 | 0.182618 | 0.046205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
c318d66c0ef14a2821d36ef3adf7ffcb264139ea | 3,455 | py | Python | web/addons/product_margin/wizard/product_margin.py | diogocs1/comps | 63df07f6cf21c41e4527c06e2d0499f23f4322e7 | [
"Apache-2.0"
] | 1 | 2019-12-29T11:53:56.000Z | 2019-12-29T11:53:56.000Z | odoo/addons/product_margin/wizard/product_margin.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | null | null | null | odoo/addons/product_margin/wizard/product_margin.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | 3 | 2020-10-08T14:42:10.000Z | 2022-01-28T14:12:29.000Z | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | 35.618557 | 81 | 0.589001 | 424 | 3,455 | 4.634434 | 0.410377 | 0.066158 | 0.018321 | 0.03257 | 0.110433 | 0.110433 | 0.094148 | 0.059542 | 0 | 0 | 0 | 0.008574 | 0.257308 | 3,455 | 96 | 82 | 35.989583 | 0.75721 | 0.316064 | 0 | 0 | 0 | 0 | 0.237759 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.057692 | 0 | 0.230769 | 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 |
c31b0a85e27980acdba6410b67f84602e15446a0 | 1,038 | py | Python | scripts/analysis_one.py | VikkiMba/Programmable-matter | d340c0b370a7e610892ffd8351f7aa576928d05c | [
"MIT"
] | null | null | null | scripts/analysis_one.py | VikkiMba/Programmable-matter | d340c0b370a7e610892ffd8351f7aa576928d05c | [
"MIT"
] | null | null | null | scripts/analysis_one.py | VikkiMba/Programmable-matter | d340c0b370a7e610892ffd8351f7aa576928d05c | [
"MIT"
] | null | null | null | name = input('Enter file name: ')
lst=list()
lst2=list()
with open(name) as f:
for line in f:
#print(line)
blops=line.rstrip()
blop=blops.split()
#for val in blop:
my_lst = [float(val) for val in blop]#list_comprehension
for num in my_lst:
if num ... | 20.352941 | 64 | 0.578998 | 162 | 1,038 | 3.666667 | 0.376543 | 0.060606 | 0.026936 | 0.040404 | 0.03367 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016927 | 0.260116 | 1,038 | 51 | 65 | 20.352941 | 0.75651 | 0.267823 | 0 | 0 | 0 | 0 | 0.088829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 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 |
c31dc50c8e3e9b895471f34a5cb531f2da5f9d94 | 316 | py | Python | Numeric Patterns/numericpattern37.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | null | null | null | Numeric Patterns/numericpattern37.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | 471 | 2022-01-15T07:07:18.000Z | 2022-02-28T16:01:42.000Z | Numeric Patterns/numericpattern37.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | 2 | 2022-01-17T09:43:16.000Z | 2022-01-29T15:15:47.000Z | height = int(input())
for i in range(1,height+1) :
for j in range(1, i+1):
m = i*j
if(m <= 9):
print("",m,end = " ")
else:
print(m,end = " ")
print()
# Sample Input :- 5
# Output :-
# 1
# 2 4
# 3 6 9
# 4 8 12 16
# 5 10 15 20 25
| 13.73913 | 33 | 0.379747 | 50 | 316 | 2.4 | 0.58 | 0.116667 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.458861 | 316 | 22 | 34 | 14.363636 | 0.54386 | 0.227848 | 0 | 0 | 0 | 0 | 0.008547 | 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 |
c31e95b8404220c927502906ac5a4aee6be489dd | 2,617 | py | Python | reviewboard/search/testing.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | reviewboard/search/testing.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | reviewboard/search/testing.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | """Search-related testing utilities."""
import tempfile
import time
from contextlib import contextmanager
import haystack
from django.conf import settings
from django.core.management import call_command
from djblets.siteconfig.models import SiteConfiguration
from reviewboard.admin.siteconfig import load_site_config
... | 30.788235 | 78 | 0.659534 | 299 | 2,617 | 5.548495 | 0.444816 | 0.070524 | 0.028933 | 0.057866 | 0.223629 | 0.102471 | 0.102471 | 0.057866 | 0 | 0 | 0 | 0.00304 | 0.245701 | 2,617 | 84 | 79 | 31.154762 | 0.837386 | 0.24188 | 0 | 0.196078 | 0 | 0 | 0.190796 | 0.062565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.156863 | 0 | 0.196078 | 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 |
c31e9aaa2f138851e26e15e8a729a624dea9ce5b | 6,434 | py | Python | pydron/config/config.py | DelphianCalamity/pydron | 1518dc71b5cf64fde563b864db2a4de74e092c8e | [
"MIT"
] | 5 | 2020-04-06T15:20:56.000Z | 2022-01-05T23:11:13.000Z | pydron/config/config.py | mahmoudimus/pydron | a7b484dec8bcc2730ba9bd76bc63bf3362c05e4d | [
"MIT"
] | null | null | null | pydron/config/config.py | mahmoudimus/pydron | a7b484dec8bcc2730ba9bd76bc63bf3362c05e4d | [
"MIT"
] | 2 | 2020-11-27T20:21:34.000Z | 2021-02-26T23:02:11.000Z | # Copyright (C) 2015 Stefan C. Mueller
import json
import os.path
from remoot import pythonstarter, smartstarter
import anycall
from pydron.backend import worker
from pydron.interpreter import scheduler, strategies
from twisted.internet import defer
preload_packages = []
def load_config(configfile=None):
if... | 32.331658 | 96 | 0.562791 | 676 | 6,434 | 5.20858 | 0.297337 | 0.025561 | 0.039761 | 0.022153 | 0.114172 | 0.077251 | 0.039193 | 0.039193 | 0.021585 | 0.021585 | 0 | 0.004047 | 0.347062 | 6,434 | 198 | 97 | 32.494949 | 0.834087 | 0.069786 | 0 | 0.086957 | 0 | 0 | 0.074637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101449 | false | 0.014493 | 0.057971 | 0.021739 | 0.289855 | 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 |
c31eedaebb01514423f430e25d6d4f8b0f2cba6b | 4,678 | py | Python | astropy/tests/plugins/display.py | guntbert/astropy | f2d2add09e5b1638b2698f19a4d46fcca19e82be | [
"BSD-3-Clause"
] | null | null | null | astropy/tests/plugins/display.py | guntbert/astropy | f2d2add09e5b1638b2698f19a4d46fcca19e82be | [
"BSD-3-Clause"
] | 10 | 2017-03-15T16:14:43.000Z | 2018-11-22T14:40:54.000Z | astropy/tests/plugins/display.py | guntbert/astropy | f2d2add09e5b1638b2698f19a4d46fcca19e82be | [
"BSD-3-Clause"
] | 1 | 2020-01-23T00:41:10.000Z | 2020-01-23T00:41:10.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This plugin provides customization of the header displayed by pytest for
reporting purposes.
"""
import os
import sys
import datetime
import locale
import math
from collections import OrderedDict
from astropy.tests.helper import ignore_warnings
from ... | 32.943662 | 78 | 0.614793 | 541 | 4,678 | 5.192237 | 0.391867 | 0.044856 | 0.03738 | 0.012816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003838 | 0.275973 | 4,678 | 141 | 79 | 33.177305 | 0.825509 | 0.104959 | 0 | 0.147059 | 0 | 0 | 0.255758 | 0.015835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.127451 | 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 |
c31f343b321d0b0d195053ec8d68315783bcc174 | 2,782 | py | Python | packages/api-server/api_server/routes/lifts.py | Sald-for-Communication-and-IT/rmf-web | ec5996ab0b06440d7147170f3030b14c73d26116 | [
"Apache-2.0"
] | null | null | null | packages/api-server/api_server/routes/lifts.py | Sald-for-Communication-and-IT/rmf-web | ec5996ab0b06440d7147170f3030b14c73d26116 | [
"Apache-2.0"
] | null | null | null | packages/api-server/api_server/routes/lifts.py | Sald-for-Communication-and-IT/rmf-web | ec5996ab0b06440d7147170f3030b14c73d26116 | [
"Apache-2.0"
] | null | null | null | from typing import Any, List, cast
from fastapi import Depends
from rx import operators as rxops
from api_server.base_app import BaseApp
from api_server.fast_io import FastIORouter, WatchRequest
from api_server.models import Lift, LiftHealth, LiftRequest, LiftState
from api_server.repositories import RmfRepository
f... | 36.12987 | 86 | 0.586988 | 323 | 2,782 | 4.795666 | 0.23839 | 0.092963 | 0.035507 | 0.052292 | 0.473209 | 0.359587 | 0.227889 | 0.204003 | 0.162686 | 0.118786 | 0 | 0 | 0.313803 | 2,782 | 76 | 87 | 36.605263 | 0.81142 | 0 | 0 | 0.186441 | 0 | 0 | 0.037023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.135593 | 0 | 0.237288 | 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 |
c320f2c59ba3ca84a73f6a79313b9f9398f03283 | 5,228 | py | Python | src/opnsense/scripts/suricata/queryAlertLog.py | ass-a2s/opnsense-core | a0634d180325f6afe3be7f514b4470e47ff5eb75 | [
"BSD-2-Clause"
] | 2 | 2019-03-15T03:35:54.000Z | 2019-03-15T07:50:36.000Z | src/opnsense/scripts/suricata/queryAlertLog.py | ass-a2s/opnsense-core | a0634d180325f6afe3be7f514b4470e47ff5eb75 | [
"BSD-2-Clause"
] | null | null | null | src/opnsense/scripts/suricata/queryAlertLog.py | ass-a2s/opnsense-core | a0634d180325f6afe3be7f514b4470e47ff5eb75 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/local/bin/python3.6
"""
Copyright (c) 2015-2019 Ad Schellevis <ad@opnsense.org>
All rights reserved.
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 ... | 39.606061 | 106 | 0.599273 | 600 | 5,228 | 5.093333 | 0.378333 | 0.046793 | 0.017997 | 0.015052 | 0.101767 | 0.071335 | 0.071335 | 0.044503 | 0.044503 | 0.044503 | 0 | 0.006486 | 0.292272 | 5,228 | 131 | 107 | 39.908397 | 0.819459 | 0.340857 | 0 | 0.109589 | 0 | 0 | 0.091916 | 0.009281 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.123288 | 0 | 0.123288 | 0.013699 | 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 |
c3214282673aaeda28c84c61fc6d8f9be877c23b | 3,592 | py | Python | cairis/gui/DictionaryListCtrl.py | RachelLar/cairis_update | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | [
"Apache-2.0"
] | null | null | null | cairis/gui/DictionaryListCtrl.py | RachelLar/cairis_update | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | [
"Apache-2.0"
] | null | null | null | cairis/gui/DictionaryListCtrl.py | RachelLar/cairis_update | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | 37.030928 | 133 | 0.733018 | 445 | 3,592 | 5.826966 | 0.352809 | 0.076359 | 0.036637 | 0.020054 | 0.174315 | 0.174315 | 0.051678 | 0.051678 | 0.051678 | 0.051678 | 0 | 0.007664 | 0.164532 | 3,592 | 96 | 134 | 37.416667 | 0.856381 | 0.212416 | 0 | 0.149254 | 0 | 0 | 0.020277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134328 | false | 0 | 0.044776 | 0 | 0.208955 | 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 |
c3261a4d2211366618f8d261cfec66b8e3825641 | 429 | py | Python | ex062.py | paulo-caixeta/Exercicios_Curso_Python | 3b77925499c174ea9ff81dec65d6319125219b9a | [
"MIT"
] | null | null | null | ex062.py | paulo-caixeta/Exercicios_Curso_Python | 3b77925499c174ea9ff81dec65d6319125219b9a | [
"MIT"
] | null | null | null | ex062.py | paulo-caixeta/Exercicios_Curso_Python | 3b77925499c174ea9ff81dec65d6319125219b9a | [
"MIT"
] | null | null | null | # Continuação do ex061 (Termos de PA)
print('Gerador de PA')
print('-=' * 10)
primeiro = int(input('Primeiro termo: '))
razão = int(input('Razão: '))
i = 0
n = 10
novos = 10
total = 0
while novos != 0:
total = total + novos
while i < total:
termo = primeiro + razão * i
i += 1
print(termo... | 23.833333 | 63 | 0.578089 | 59 | 429 | 4.20339 | 0.474576 | 0.096774 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040752 | 0.25641 | 429 | 18 | 64 | 23.833333 | 0.736677 | 0.081585 | 0 | 0 | 0 | 0 | 0.221374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.294118 | 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 |
c3266d2fbd585c2d178a2034896380f763b83e0c | 4,151 | py | Python | order/tests.py | DanLivassan/bookstore | f054c3dcb7d6b57c24f98ea28a23de0061d2ccf2 | [
"MIT"
] | null | null | null | order/tests.py | DanLivassan/bookstore | f054c3dcb7d6b57c24f98ea28a23de0061d2ccf2 | [
"MIT"
] | 1 | 2022-02-25T01:38:50.000Z | 2022-02-25T01:38:50.000Z | order/tests.py | DanLivassan/bookstore | f054c3dcb7d6b57c24f98ea28a23de0061d2ccf2 | [
"MIT"
] | null | null | null | from random import randint
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from order.serializers import OrderSerializer
from product.models import Product
from order.models import Order
from rest_framework import status
from rest_framework.test import API... | 33.747967 | 113 | 0.645387 | 489 | 4,151 | 5.325153 | 0.253579 | 0.063364 | 0.026882 | 0.021889 | 0.18702 | 0.167819 | 0.112903 | 0.112903 | 0.112903 | 0.070661 | 0 | 0.016237 | 0.243315 | 4,151 | 122 | 114 | 34.02459 | 0.812798 | 0.07974 | 0 | 0.223404 | 0 | 0 | 0.049617 | 0.005806 | 0 | 0 | 0 | 0 | 0.138298 | 1 | 0.106383 | false | 0.021277 | 0.095745 | 0 | 0.276596 | 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 |
c327b1f258b5961f3d1085b7f824f0cb5ee2f32a | 2,227 | py | Python | tour/forms.py | superdev0505/mtp-web | 8288765a89daaa7b02dfd7e78cc51c4f12d7fcce | [
"MIT"
] | null | null | null | tour/forms.py | superdev0505/mtp-web | 8288765a89daaa7b02dfd7e78cc51c4f12d7fcce | [
"MIT"
] | null | null | null | tour/forms.py | superdev0505/mtp-web | 8288765a89daaa7b02dfd7e78cc51c4f12d7fcce | [
"MIT"
] | null | null | null | ## Django Packages
from django import forms
from django_select2 import forms as s2forms
## App packages
from .models import *
from datetime import datetime
from bootstrap_datepicker_plus import DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, YearPickerInput
from tags_input import fields
from l... | 31.814286 | 133 | 0.562191 | 201 | 2,227 | 6.089552 | 0.338308 | 0.05719 | 0.05719 | 0.085784 | 0.527778 | 0.498366 | 0.446078 | 0.324346 | 0.324346 | 0.324346 | 0 | 0.001801 | 0.251908 | 2,227 | 69 | 134 | 32.275362 | 0.732893 | 0.012573 | 0 | 0.372549 | 0 | 0 | 0.11661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.137255 | 0 | 0.254902 | 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 |
c328c8c92438a707d941d9592d5c8e996b8cd217 | 2,881 | py | Python | ranking_baselines/ARCII/rank_metrics.py | dileep1996/mnsrf_ranking_suggestion | 5bd241fb49f08fa4937539991e12e5a502d5a072 | [
"MIT"
] | 1 | 2020-02-04T18:27:25.000Z | 2020-02-04T18:27:25.000Z | ranking_baselines/DRMM/rank_metrics.py | dileep1996/mnsrf_ranking_suggestion | 5bd241fb49f08fa4937539991e12e5a502d5a072 | [
"MIT"
] | null | null | null | ranking_baselines/DRMM/rank_metrics.py | dileep1996/mnsrf_ranking_suggestion | 5bd241fb49f08fa4937539991e12e5a502d5a072 | [
"MIT"
] | null | null | null | ###############################################################################
# Author: Wasi Ahmad
# Project: ARC-II: Convolutional Matching Model
# Date Created: 7/18/2017
#
# File Description: This script contains ranking evaluation functions.
##################################################################... | 34.710843 | 81 | 0.560222 | 375 | 2,881 | 4.168 | 0.229333 | 0.092131 | 0.049904 | 0.065259 | 0.538708 | 0.515675 | 0.515675 | 0.508637 | 0.43826 | 0.391555 | 0 | 0.026074 | 0.281152 | 2,881 | 82 | 82 | 35.134146 | 0.728634 | 0.266227 | 0 | 0.444444 | 0 | 0 | 0.025727 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 1 | 0.066667 | false | 0 | 0.022222 | 0 | 0.155556 | 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 |
c3295559778e2a7c61a68e36cb3971cb3e83f7f7 | 10,638 | py | Python | deploy/python/det_keypoint_unite_infer.py | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | null | null | null | deploy/python/det_keypoint_unite_infer.py | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | null | null | null | deploy/python/det_keypoint_unite_infer.py | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.254613 | 112 | 0.611957 | 1,267 | 10,638 | 4.84925 | 0.232833 | 0.041667 | 0.048665 | 0.020182 | 0.39974 | 0.349772 | 0.326172 | 0.25293 | 0.235026 | 0.226888 | 0 | 0.009787 | 0.298834 | 10,638 | 270 | 113 | 39.4 | 0.813916 | 0.069938 | 0 | 0.311321 | 0 | 0 | 0.056835 | 0.007966 | 0 | 0 | 0.000431 | 0 | 0.009434 | 1 | 0.018868 | false | 0 | 0.070755 | 0 | 0.09434 | 0.023585 | 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 |