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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ca783f400a2f552b7d64e3767e01fb3717ef036 | 582 | py | Python | exampleinc.py | zulip/finbot | dcb6bfe54a674f4ff98370677a648b6cc1706e16 | [
"Apache-2.0"
] | 7 | 2017-02-19T16:35:24.000Z | 2022-03-09T20:05:49.000Z | exampleinc.py | zulip/finbot | dcb6bfe54a674f4ff98370677a648b6cc1706e16 | [
"Apache-2.0"
] | null | null | null | exampleinc.py | zulip/finbot | dcb6bfe54a674f4ff98370677a648b6cc1706e16 | [
"Apache-2.0"
] | 3 | 2020-02-13T18:06:46.000Z | 2021-06-10T19:56:30.000Z | #!/usr/bin/python
from money import *
c = Company("Example Inc")
c.add_flow(FixedCost("Initial Cash", -500000))
c.add_flow(FixedCost("Incorporation", 500))
c.add_flow(ConstantCost("Office", 50000))
c.add_flow(PeriodicCost("Subscription", 4000, "2012-01-05", 14))
c.add_flow(DelayedCost("2012-02-01", ConstantCost("Offic... | 36.375 | 68 | 0.730241 | 89 | 582 | 4.662921 | 0.449438 | 0.077108 | 0.154217 | 0.093976 | 0.260241 | 0.260241 | 0.13012 | 0 | 0 | 0 | 0 | 0.172477 | 0.063574 | 582 | 15 | 69 | 38.8 | 0.588991 | 0.027491 | 0 | 0 | 0 | 0 | 0.270796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
7ca7926bc8bb9c6d96d0fde91ed69d0cb52091a0 | 847 | py | Python | guardian/validators.py | dawid1stanek/guardian | 89359c93d5f36c8b458428e147000352fa7ad01d | [
"Apache-2.0"
] | null | null | null | guardian/validators.py | dawid1stanek/guardian | 89359c93d5f36c8b458428e147000352fa7ad01d | [
"Apache-2.0"
] | null | null | null | guardian/validators.py | dawid1stanek/guardian | 89359c93d5f36c8b458428e147000352fa7ad01d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import socket
import subprocess
import argparse
import logging
LOGGER = logging.getLogger(__name__)
class ValidatorError(Exception):
pass
def ping(address):
try:
subprocess.check_call(('ping', '-c 1', '-W 1', address), stdout=subprocess.PIPE, stderr=subprocess.PIPE)... | 24.2 | 112 | 0.663518 | 109 | 847 | 5.091743 | 0.412844 | 0.079279 | 0.03964 | 0.05045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00299 | 0.210153 | 847 | 34 | 113 | 24.911765 | 0.826607 | 0.023613 | 0 | 0.16 | 0 | 0 | 0.138015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.04 | 0.2 | 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 |
7caad7d95f67042bb7aad81b10bf684a91160170 | 9,603 | py | Python | hoomd/mpcd/test-py/stream_slit_test.py | schwendp/hoomd-blue | df7970121b19bc4f8674348ab3241055ac87153b | [
"BSD-3-Clause"
] | 2 | 2020-03-30T14:38:50.000Z | 2020-06-02T05:53:41.000Z | hoomd/mpcd/test-py/stream_slit_test.py | schwendp/hoomd-blue | df7970121b19bc4f8674348ab3241055ac87153b | [
"BSD-3-Clause"
] | null | null | null | hoomd/mpcd/test-py/stream_slit_test.py | schwendp/hoomd-blue | df7970121b19bc4f8674348ab3241055ac87153b | [
"BSD-3-Clause"
] | 1 | 2020-05-20T07:00:08.000Z | 2020-05-20T07:00:08.000Z | # Copyright (c) 2009-2019 The Regents of the University of Michigan
# This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
# Maintainer: mphoward
import unittest
import numpy as np
import hoomd
from hoomd import md
from hoomd import mpcd
# unit tests for mpcd slit streaming geometry
... | 43.06278 | 101 | 0.64157 | 1,390 | 9,603 | 4.308633 | 0.171942 | 0.013024 | 0.070129 | 0.093505 | 0.636834 | 0.595258 | 0.562531 | 0.51845 | 0.496577 | 0.470863 | 0 | 0.040615 | 0.228262 | 9,603 | 222 | 102 | 43.256757 | 0.767508 | 0.212954 | 0 | 0.492857 | 0 | 0 | 0.010246 | 0 | 0 | 0 | 0 | 0 | 0.378571 | 1 | 0.078571 | false | 0 | 0.035714 | 0 | 0.121429 | 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 |
7caae2b0b77242e98f5f62bea314586497fa86a7 | 7,261 | py | Python | tests/functional/model_models.py | haoyuchen1992/CourseBuilder | ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7 | [
"Apache-2.0"
] | 1 | 2015-04-15T08:38:08.000Z | 2015-04-15T08:38:08.000Z | tests/functional/model_models.py | haoyuchen1992/CourseBuilder | ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7 | [
"Apache-2.0"
] | 1 | 2021-06-08T09:49:12.000Z | 2021-06-08T09:49:12.000Z | tests/functional/model_models.py | haoyuchen1992/CourseBuilder | ba8f0e05c53cc74bb4e46235a7855fdfbd63dff7 | [
"Apache-2.0"
] | 3 | 2015-10-25T12:39:07.000Z | 2021-06-08T09:47:34.000Z | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 39.677596 | 80 | 0.700454 | 868 | 7,261 | 5.543779 | 0.233871 | 0.067539 | 0.044888 | 0.030549 | 0.487531 | 0.348919 | 0.264963 | 0.198047 | 0.152535 | 0.044057 | 0 | 0.003653 | 0.208374 | 7,261 | 182 | 81 | 39.895604 | 0.833507 | 0.137033 | 0 | 0.195122 | 0 | 0 | 0.057766 | 0.00337 | 0 | 0 | 0 | 0 | 0.154472 | 1 | 0.089431 | false | 0 | 0.02439 | 0 | 0.162602 | 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 |
7cab92b7f1c079530e07c1c01ef7a728efea9d02 | 43,187 | py | Python | torchaudio/functional/functional.py | iseessel/audio | 64551a69186d28db1f499ba373f1b19c6a7ed894 | [
"BSD-2-Clause"
] | null | null | null | torchaudio/functional/functional.py | iseessel/audio | 64551a69186d28db1f499ba373f1b19c6a7ed894 | [
"BSD-2-Clause"
] | null | null | null | torchaudio/functional/functional.py | iseessel/audio | 64551a69186d28db1f499ba373f1b19c6a7ed894 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import io
import math
import warnings
from typing import Optional, Tuple
import torch
from torch import Tensor
from torchaudio._internal import module_utils as _mod_utils
import torchaudio
__all__ = [
"spectrogram",
"griffinlim",
"amplitude_to_DB",
"DB_to_amplitude",
"comp... | 35.39918 | 116 | 0.611666 | 5,766 | 43,187 | 4.436698 | 0.135796 | 0.009851 | 0.00516 | 0.003714 | 0.283011 | 0.230357 | 0.202799 | 0.182785 | 0.167071 | 0.137049 | 0 | 0.021524 | 0.277074 | 43,187 | 1,219 | 117 | 35.42822 | 0.797828 | 0.445227 | 0 | 0.240066 | 0 | 0 | 0.044092 | 0.000983 | 0 | 0 | 0 | 0.00082 | 0.008278 | 1 | 0.043046 | false | 0.009934 | 0.013245 | 0 | 0.10596 | 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 |
7cabc4e8d6c4275c91322768679e9a68335e86e0 | 12,964 | py | Python | src/status_node.py | Faust-Wang/vswarm | d18ce643218c18ef1e762f40562104b2a0926ad7 | [
"MIT"
] | 21 | 2021-03-03T10:51:46.000Z | 2022-03-28T11:00:35.000Z | src/status_node.py | Faust-Wang/vswarm | d18ce643218c18ef1e762f40562104b2a0926ad7 | [
"MIT"
] | 2 | 2021-07-21T07:57:16.000Z | 2022-03-17T12:41:51.000Z | src/status_node.py | hvourtsis/vswarm | d18ce643218c18ef1e762f40562104b2a0926ad7 | [
"MIT"
] | 8 | 2021-02-27T14:29:55.000Z | 2022-01-05T19:40:38.000Z | #!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
import curses
import sys
from collections import deque
from datetime import datetime
import numpy as np
import rospy
from diagnostic_msgs.msg import DiagnosticArray, DiagnosticStatus
from geometry_msgs.msg import PoseStamped
from ... | 35.132791 | 100 | 0.57166 | 1,513 | 12,964 | 4.727032 | 0.181097 | 0.053831 | 0.041946 | 0.044743 | 0.274888 | 0.184004 | 0.121644 | 0.121644 | 0.115213 | 0.115213 | 0 | 0.011793 | 0.319732 | 12,964 | 368 | 101 | 35.228261 | 0.799184 | 0.049136 | 0 | 0.215328 | 0 | 0.010949 | 0.066981 | 0.010324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062044 | false | 0.00365 | 0.043796 | 0.00365 | 0.120438 | 0.010949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cabe7391066e68e59a6eee1bcca21b689be0897 | 5,010 | py | Python | bin/boxplot_param.py | mo-schmid/MIALab | 8a7e183df7007993e8a28513a73dca20bfd60737 | [
"Apache-2.0"
] | null | null | null | bin/boxplot_param.py | mo-schmid/MIALab | 8a7e183df7007993e8a28513a73dca20bfd60737 | [
"Apache-2.0"
] | null | null | null | bin/boxplot_param.py | mo-schmid/MIALab | 8a7e183df7007993e8a28513a73dca20bfd60737 | [
"Apache-2.0"
] | null | null | null | import argparse
import os
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import pandas as pd
from pathlib import Path
class ResultParam():
"""Result Parameter"""
def __init__(self, path: Path, param_str: str):
"""Initializes a new instance of the Result Parameter
Arg... | 35.531915 | 135 | 0.641916 | 716 | 5,010 | 4.363128 | 0.357542 | 0.020166 | 0.025928 | 0.017926 | 0.115557 | 0.077465 | 0.045455 | 0.045455 | 0.045455 | 0.045455 | 0 | 0.019521 | 0.233134 | 5,010 | 140 | 136 | 35.785714 | 0.793597 | 0.269261 | 0 | 0 | 0 | 0.025 | 0.143177 | 0.04726 | 0 | 0 | 0 | 0.007143 | 0 | 1 | 0.075 | false | 0 | 0.075 | 0.0125 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7cae45b970c1385083dad6bbec98b3cd495bf626 | 3,948 | py | Python | EMeRGE/dssmetrics/constants.py | NREL/EMeRGE | 573e86ca8e62080c664998e8cc79e9231e7ad502 | [
"BSD-3-Clause"
] | 6 | 2020-04-11T18:09:00.000Z | 2022-01-23T20:38:38.000Z | EMeRGE/dssmetrics/constants.py | NREL/EMeRGE | 573e86ca8e62080c664998e8cc79e9231e7ad502 | [
"BSD-3-Clause"
] | null | null | null | EMeRGE/dssmetrics/constants.py | NREL/EMeRGE | 573e86ca8e62080c664998e8cc79e9231e7ad502 | [
"BSD-3-Clause"
] | 3 | 2020-06-11T02:48:49.000Z | 2021-08-10T07:13:57.000Z |
""" Default values : DO NOT CHANGE !!!"""
LOG_FORMAT = "%(asctime)s: %(levelname)s: %(message)s"
DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
MAXITERATIONS = 100
LIFE_PARAMETERS = {"theta_i":30,"theta_fl":36,"theta_gfl":28.6,
"R":4.87,"n":1,"tau":3.5,"m":1,"A":-13.391,
"B":6972.15,"num_... | 35.567568 | 108 | 0.472898 | 428 | 3,948 | 4.11215 | 0.301402 | 0.051705 | 0.010227 | 0.013636 | 0.357386 | 0.323864 | 0.323864 | 0.293182 | 0.293182 | 0.293182 | 0 | 0.061899 | 0.341185 | 3,948 | 110 | 109 | 35.890909 | 0.614764 | 0.008612 | 0 | 0.316832 | 0 | 0 | 0.382684 | 0.021773 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7cae7acd2ab857e48bf48cfdcc2ed083e6292337 | 12,669 | py | Python | minesweeper/game.py | MathisFederico/Minesweeper | b66b41066e325813b24497d2caca0a11c048e18b | [
"MIT"
] | 1 | 2020-12-23T11:52:40.000Z | 2020-12-23T11:52:40.000Z | minesweeper/game.py | MathisFederico/Minesweeper | b66b41066e325813b24497d2caca0a11c048e18b | [
"MIT"
] | null | null | null | minesweeper/game.py | MathisFederico/Minesweeper | b66b41066e325813b24497d2caca0a11c048e18b | [
"MIT"
] | null | null | null | try:
import importlib.resources as pkg_resources
except ImportError:
# Try backported to PY<37 `importlib_resources`.
import importlib_resources as pkg_resources
from . import images
from gym import Env, spaces
from time import time
import numpy as np
from copy import copy
import colorsys
import pygame
f... | 41.950331 | 136 | 0.582209 | 1,707 | 12,669 | 4.111306 | 0.134153 | 0.017811 | 0.022229 | 0.009119 | 0.352237 | 0.241949 | 0.186378 | 0.139926 | 0.129097 | 0.08293 | 0 | 0.031896 | 0.297182 | 12,669 | 301 | 137 | 42.089701 | 0.756289 | 0.031021 | 0 | 0.147186 | 0 | 0 | 0.024577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.017316 | 0.047619 | 0.004329 | 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 |
7caf8da8a5f682874ecef410bafcd6662e5de11b | 3,440 | py | Python | models/layers/mesh_conv.py | CallumMcMahon/MeshCNN | 343950a8d69807ed4afa13f1843edb37c4cd042c | [
"MIT"
] | 2 | 2022-01-05T09:21:17.000Z | 2022-03-24T15:20:14.000Z | models/layers/mesh_conv.py | CallumMcMahon/MeshCNN | 343950a8d69807ed4afa13f1843edb37c4cd042c | [
"MIT"
] | null | null | null | models/layers/mesh_conv.py | CallumMcMahon/MeshCNN | 343950a8d69807ed4afa13f1843edb37c4cd042c | [
"MIT"
] | 1 | 2022-03-24T15:20:20.000Z | 2022-03-24T15:20:20.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
class MeshConv(nn.Module):
""" Computes convolution between edges and 4 incident (1-ring) edge neighbors
in the forward pass takes:
x: edge features (Batch x Features x Edges)
mesh: list of mesh data-structure (len(mesh) == Batch)
a... | 41.445783 | 123 | 0.585756 | 528 | 3,440 | 3.698864 | 0.289773 | 0.051203 | 0.029186 | 0.021505 | 0.00512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026677 | 0.280814 | 3,440 | 83 | 124 | 41.445783 | 0.762732 | 0.289244 | 0 | 0 | 0 | 0 | 0.003433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.061224 | 0 | 0.265306 | 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 |
7cb23f9d984ca01ba8f682afe13184f98d4f5e92 | 389 | py | Python | qtask/utils/testing.py | LinkTsang/qtask-legacy-python | 9b264b8e33313e4d3615472d59a2a39948eeeaa1 | [
"MIT"
] | null | null | null | qtask/utils/testing.py | LinkTsang/qtask-legacy-python | 9b264b8e33313e4d3615472d59a2a39948eeeaa1 | [
"MIT"
] | null | null | null | qtask/utils/testing.py | LinkTsang/qtask-legacy-python | 9b264b8e33313e4d3615472d59a2a39948eeeaa1 | [
"MIT"
] | null | null | null | import asyncio
import traceback
import unittest
def async_test(f):
def wrapper(test_case: unittest.TestCase, *args, **kwargs):
loop = asyncio.get_event_loop()
task = loop.create_task(f(test_case, *args, **kwargs))
try:
loop.run_until_complete(task)
except Exception:
... | 22.882353 | 63 | 0.62982 | 46 | 389 | 5.130435 | 0.608696 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277635 | 389 | 16 | 64 | 24.3125 | 0.839858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7cb54fa0b7a5c349c3088529c91a97ac9de21c8e | 2,684 | py | Python | plugin.video.yatp/libs/client/commands.py | mesabib/kodi.yatp | d874df43047b5b58f84cb3760fc891d9a133a69f | [
"CNRI-Python"
] | 54 | 2015-08-01T20:31:36.000Z | 2022-02-06T11:06:01.000Z | plugin.video.yatp/libs/client/commands.py | mesabib/kodi.yatp | d874df43047b5b58f84cb3760fc891d9a133a69f | [
"CNRI-Python"
] | 57 | 2015-08-31T09:54:49.000Z | 2018-08-30T20:39:12.000Z | plugin.video.yatp/libs/client/commands.py | mesabib/kodi.yatp | d874df43047b5b58f84cb3760fc891d9a133a69f | [
"CNRI-Python"
] | 16 | 2016-01-17T11:44:41.000Z | 2021-12-12T00:41:29.000Z | # coding: utf-8
# Module: commands
# Created on: 28.07.2015
# Author: Roman Miroshnychenko aka Roman V.M. (romanvm@yandex.ua)
# Licence: GPL v.3: http://www.gnu.org/copyleft/gpl.html
"""
Context menu commands
"""
import sys
import xbmc
import xbmcgui
import json_requests as jsonrq
from simpleplugin import Addon
addon... | 35.786667 | 89 | 0.554396 | 319 | 2,684 | 4.454545 | 0.39185 | 0.073892 | 0.050669 | 0.059113 | 0.281492 | 0.235046 | 0.197044 | 0.18297 | 0.0943 | 0.0943 | 0 | 0.020607 | 0.312966 | 2,684 | 74 | 90 | 36.27027 | 0.75 | 0.09389 | 0 | 0.111111 | 0 | 0.018519 | 0.219024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.092593 | 0 | 0.111111 | 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 |
7cb5d1b6022bb826ecb887e64d632c52c31ffdb9 | 5,563 | py | Python | pipeline/scripts/package.py | deplatformr/open-images | 3726c9802bda1d7ecbbbd9920d5566daaecc9faa | [
"MIT"
] | 2 | 2020-10-12T02:37:54.000Z | 2020-10-14T15:16:49.000Z | pipeline/scripts/package.py | deplatformr/open-images | 3726c9802bda1d7ecbbbd9920d5566daaecc9faa | [
"MIT"
] | null | null | null | pipeline/scripts/package.py | deplatformr/open-images | 3726c9802bda1d7ecbbbd9920d5566daaecc9faa | [
"MIT"
] | null | null | null | import os
import shutil
import sqlite3
import tarfile
from datetime import datetime
import bagit
def create_package(images, batch_dir):
package_threshold = 838860800 # 800 Mib to the next power of 2 = 1GiB
print("Package threshold: " + get_human_readable_file_size(package_threshold))
abs_path = os.getc... | 47.144068 | 735 | 0.585655 | 646 | 5,563 | 4.905573 | 0.309598 | 0.025245 | 0.025245 | 0.025245 | 0.156832 | 0.120858 | 0.068476 | 0.023982 | 0.023982 | 0 | 0 | 0.013881 | 0.326622 | 5,563 | 117 | 736 | 47.547009 | 0.832088 | 0.088082 | 0 | 0.208333 | 0 | 0.010417 | 0.266298 | 0.02983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.0625 | 0 | 0.09375 | 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 |
7cb6f4beed1a08b09244a31819b47421774b7914 | 6,486 | py | Python | eval/util/metrics.py | fau-is/grm | 78b1559ea0dda1b817283adecd58da50ca232223 | [
"MIT"
] | 5 | 2020-09-15T18:57:01.000Z | 2021-12-13T14:14:08.000Z | eval/util/metrics.py | fau-is/grm | 78b1559ea0dda1b817283adecd58da50ca232223 | [
"MIT"
] | null | null | null | eval/util/metrics.py | fau-is/grm | 78b1559ea0dda1b817283adecd58da50ca232223 | [
"MIT"
] | 1 | 2020-09-10T17:45:22.000Z | 2020-09-10T17:45:22.000Z | import sklearn
import pandas
import seaborn as sns
import matplotlib.pyplot as pyplot
from functools import reduce
# import numpy as np
def metrics_from_prediction_and_label(labels, predictions, verbose=False):
measures = {
"accuracy": sklearn.metrics.accuracy_score(labels, predictions),
"balance... | 36.234637 | 118 | 0.646007 | 810 | 6,486 | 4.983951 | 0.224691 | 0.109487 | 0.092643 | 0.061184 | 0.468665 | 0.360912 | 0.298737 | 0.146148 | 0.146148 | 0.092643 | 0 | 0.012671 | 0.233426 | 6,486 | 179 | 119 | 36.234637 | 0.799276 | 0.076781 | 0 | 0.180328 | 0 | 0 | 0.095809 | 0.003886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0.032787 | 0.040984 | 0.008197 | 0.163934 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cb7c886108da63565062eb8d192b4df3da78f64 | 3,566 | py | Python | dpgs_sandbox/tests/test_bug_migrations_in_base_models.py | gabrielpiassetta/django-pgschemas | 1e76db4cef31c7534bf4ba109961e835a1dd3c96 | [
"MIT"
] | null | null | null | dpgs_sandbox/tests/test_bug_migrations_in_base_models.py | gabrielpiassetta/django-pgschemas | 1e76db4cef31c7534bf4ba109961e835a1dd3c96 | [
"MIT"
] | null | null | null | dpgs_sandbox/tests/test_bug_migrations_in_base_models.py | gabrielpiassetta/django-pgschemas | 1e76db4cef31c7534bf4ba109961e835a1dd3c96 | [
"MIT"
] | null | null | null | import warnings
from unittest.mock import patch
from django.apps import apps
from django.core import management
from django.core.management.base import CommandError
from django.db import models
from django.db.utils import ProgrammingError
from django.test import TransactionTestCase, tag
from django_pgschemas.checks i... | 37.536842 | 118 | 0.714526 | 419 | 3,566 | 5.937947 | 0.350835 | 0.036174 | 0.059084 | 0.067524 | 0.29381 | 0.270498 | 0.228698 | 0.20619 | 0.20619 | 0.184084 | 0 | 0.007768 | 0.205833 | 3,566 | 94 | 119 | 37.93617 | 0.870763 | 0.180314 | 0 | 0.311475 | 0 | 0 | 0.106449 | 0.018377 | 0 | 0 | 0 | 0 | 0.04918 | 1 | 0.131148 | false | 0 | 0.180328 | 0 | 0.42623 | 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 |
7cb900078da95ed33cbe2fdf9bd9a465b5e9a56e | 6,330 | py | Python | tfx/components/transform/component.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | null | null | null | tfx/components/transform/component.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | null | null | null | tfx/components/transform/component.py | pingsutw/tfx | bf0d1d74e3f6ea429989fc7b80b82bea08077857 | [
"Apache-2.0"
] | null | null | null | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | 43.356164 | 105 | 0.733017 | 799 | 6,330 | 5.670839 | 0.309136 | 0.049658 | 0.017656 | 0.011918 | 0.134407 | 0.075259 | 0.061576 | 0.041271 | 0.041271 | 0.041271 | 0 | 0.001977 | 0.20079 | 6,330 | 145 | 106 | 43.655172 | 0.893655 | 0.562717 | 0 | 0 | 0 | 0 | 0.096056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.245614 | 0 | 0.315789 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cb9aea67a579bf1b09555b59098bc7f2315e25f | 959 | py | Python | objects/GitIndexEntry.py | anderslatif/alg | d5902a05a4cb249e554f65a7e8016d7d050b6da9 | [
"MIT"
] | null | null | null | objects/GitIndexEntry.py | anderslatif/alg | d5902a05a4cb249e554f65a7e8016d7d050b6da9 | [
"MIT"
] | null | null | null | objects/GitIndexEntry.py | anderslatif/alg | d5902a05a4cb249e554f65a7e8016d7d050b6da9 | [
"MIT"
] | null | null | null | # https://github.com/git/git/blob/master/Documentation/technical/index-format.txt
class GitIndexEntry(object):
# The last time a file's metadata changed. This is a tuple (seconds, nanoseconds)
ctime = None
# The last time a file's data changed. This is a tuple (seconds, nanoseconds)
mtime = None
#... | 22.302326 | 85 | 0.657977 | 139 | 959 | 4.482014 | 0.532374 | 0.067416 | 0.0626 | 0.038523 | 0.173355 | 0.173355 | 0.11878 | 0 | 0 | 0 | 0 | 0.018625 | 0.272159 | 959 | 42 | 86 | 22.833333 | 0.873926 | 0.573514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7cbb90e215684507ec88ead7205a67d14728eaf9 | 809 | py | Python | chainer/_version.py | yumetov/chainer | 522e017a18008ee00e39f4ae4b30f4f9db3824b2 | [
"MIT"
] | 3,705 | 2017-06-01T07:36:12.000Z | 2022-03-30T10:46:15.000Z | chainer/_version.py | yumetov/chainer | 522e017a18008ee00e39f4ae4b30f4f9db3824b2 | [
"MIT"
] | 5,998 | 2017-06-01T06:40:17.000Z | 2022-03-08T01:42:44.000Z | chainer/_version.py | yumetov/chainer | 522e017a18008ee00e39f4ae4b30f4f9db3824b2 | [
"MIT"
] | 1,150 | 2017-06-02T03:39:46.000Z | 2022-03-29T02:29:32.000Z | __version__ = '7.8.0'
_optional_dependencies = [
{
'name': 'CuPy',
'packages': [
'cupy-cuda120',
'cupy-cuda114',
'cupy-cuda113',
'cupy-cuda112',
'cupy-cuda111',
'cupy-cuda110',
'cupy-cuda102',
'cupy-cud... | 23.114286 | 63 | 0.410383 | 72 | 809 | 4.527778 | 0.541667 | 0.01227 | 0.079755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104938 | 0.399258 | 809 | 34 | 64 | 23.794118 | 0.565844 | 0 | 0 | 0.125 | 0 | 0 | 0.431397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7cbc5cd567a3861d37ece4294dbac699b11bc6a2 | 10,435 | py | Python | image_aug.py | qwerasdf887/image_augmentation | 7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42 | [
"MIT"
] | null | null | null | image_aug.py | qwerasdf887/image_augmentation | 7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42 | [
"MIT"
] | null | null | null | image_aug.py | qwerasdf887/image_augmentation | 7d465eba4d6af5d9a4cd79bf1981c8ef206ffe42 | [
"MIT"
] | null | null | null | # coding=UTF-8
# This Python file uses the following encoding: utf-8
import cv2
import numpy as np
import xml.etree.cElementTree as ET
from random import sample
#default args:
default_args = {'noise_prob': 0.1,
'gasuss_mean': 0,
'gasuss_var': 0.001,
'rand_hug': 30,
... | 31.430723 | 117 | 0.58965 | 1,603 | 10,435 | 3.617592 | 0.127261 | 0.078634 | 0.037248 | 0.024142 | 0.494051 | 0.419383 | 0.382825 | 0.2816 | 0.236075 | 0.19193 | 0 | 0.032525 | 0.257499 | 10,435 | 332 | 118 | 31.430723 | 0.715927 | 0.174796 | 0 | 0.333333 | 0 | 0 | 0.055059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.019608 | 0 | 0.215686 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cbd6ca4479663e9722341b796b7cdd0073b6b18 | 1,507 | py | Python | 03_picnic/picnic.py | intimanipuchi/tiny_python_projects | 5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c | [
"MIT"
] | null | null | null | 03_picnic/picnic.py | intimanipuchi/tiny_python_projects | 5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c | [
"MIT"
] | null | null | null | 03_picnic/picnic.py | intimanipuchi/tiny_python_projects | 5e419620ae07b0bcf8df073ba3f6c6c3d7d1a93c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : Roman Koziy <koziyroman@gmail.com>
Date : 2021-12-15
Purpose: Working with lists
"""
import argparse
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description="Working with... | 25.116667 | 63 | 0.472462 | 147 | 1,507 | 4.714286 | 0.52381 | 0.030303 | 0.038961 | 0.051948 | 0.161616 | 0.083694 | 0.083694 | 0 | 0 | 0 | 0 | 0.014327 | 0.305242 | 1,507 | 59 | 64 | 25.542373 | 0.647564 | 0.247512 | 0 | 0 | 0 | 0 | 0.171917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.117647 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cbdd46842ad893e844a14b8fc15ffc18db30ecc | 2,832 | py | Python | Volume Estimation/volume.py | JessieRamaux/Food-Volume-Estimation | 260b0e78a3b6a7b8bbe9daf98956502beea92552 | [
"MIT"
] | 10 | 2021-02-19T09:31:43.000Z | 2022-02-09T08:29:02.000Z | Volume Estimation/volume.py | JessieRamaux/Food-Volume-Estimation | 260b0e78a3b6a7b8bbe9daf98956502beea92552 | [
"MIT"
] | null | null | null | Volume Estimation/volume.py | JessieRamaux/Food-Volume-Estimation | 260b0e78a3b6a7b8bbe9daf98956502beea92552 | [
"MIT"
] | 3 | 2021-02-16T00:05:32.000Z | 2021-06-11T13:37:10.000Z | import numpy as np
import cv2
import os
import json
import glob
from PIL import Image, ImageDraw
plate_diameter = 25 #cm
plate_depth = 1.5 #cm
plate_thickness = 0.2 #cm
def Max(x, y):
if (x >= y):
return x
else:
return y
def polygons_to_mask(img_shape, polygons):
mask = np.zeros(img_shape... | 28.039604 | 116 | 0.604167 | 433 | 2,832 | 3.766744 | 0.235566 | 0.062538 | 0.049663 | 0.042918 | 0.158185 | 0.13366 | 0.096873 | 0.096873 | 0.096873 | 0.096873 | 0 | 0.024507 | 0.265184 | 2,832 | 101 | 117 | 28.039604 | 0.75925 | 0.018362 | 0 | 0.073171 | 0 | 0 | 0.021974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085366 | false | 0 | 0.073171 | 0 | 0.256098 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cbf3fcf677b8e93a5ef2be1bcf1c650636a93f5 | 2,003 | py | Python | core/domain/role_services_test.py | Mohitbalwani26/oppia | a3d1de8b428b8216bb61ba70315583fe077f5b8a | [
"Apache-2.0"
] | null | null | null | core/domain/role_services_test.py | Mohitbalwani26/oppia | a3d1de8b428b8216bb61ba70315583fe077f5b8a | [
"Apache-2.0"
] | null | null | null | core/domain/role_services_test.py | Mohitbalwani26/oppia | a3d1de8b428b8216bb61ba70315583fe077f5b8a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2017 The Oppia 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 requi... | 39.27451 | 79 | 0.734898 | 262 | 2,003 | 5.400763 | 0.465649 | 0.042403 | 0.067845 | 0.022615 | 0.083392 | 0.048057 | 0 | 0 | 0 | 0 | 0 | 0.005549 | 0.190215 | 2,003 | 50 | 80 | 40.06 | 0.866831 | 0.368947 | 0 | 0 | 0 | 0 | 0.031528 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.375 | 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 |
7cbf5d867e83bab7776ed420c8f1d228f4f2244d | 82,473 | py | Python | deep_learning/keras/keras/backend/cntk_backend.py | xpennec/applications | 50aefdf14de308fc3c132784ebba9d329e47b087 | [
"MIT"
] | 21 | 2019-01-12T17:59:41.000Z | 2022-03-08T17:42:56.000Z | deep_learning/keras/keras/backend/cntk_backend.py | farrell236/applications | 0e1ab139ade2a0b3ba6f04f6fd93822b1dd5ae2f | [
"MIT"
] | 7 | 2019-01-24T11:44:58.000Z | 2020-04-21T21:13:37.000Z | deep_learning/keras/keras/backend/cntk_backend.py | farrell236/applications | 0e1ab139ade2a0b3ba6f04f6fd93822b1dd5ae2f | [
"MIT"
] | 8 | 2019-01-24T11:36:05.000Z | 2021-06-15T20:59:50.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import cntk as C
import numpy as np
from .common import floatx, epsilon, image_dim_ordering, image_data_format
from collections import defaultdict
from contextlib import contextmanager
import warnings
C.set_g... | 32.153216 | 109 | 0.584361 | 10,603 | 82,473 | 4.353862 | 0.06583 | 0.033576 | 0.011437 | 0.008838 | 0.509466 | 0.443029 | 0.399749 | 0.355927 | 0.33264 | 0.309354 | 0 | 0.013767 | 0.31477 | 82,473 | 2,564 | 110 | 32.165757 | 0.803107 | 0.071163 | 0 | 0.425897 | 0 | 0.016641 | 0.06477 | 0.001126 | 0 | 0 | 0 | 0.00039 | 0.01196 | 1 | 0.089964 | false | 0.00052 | 0.00468 | 0.026521 | 0.198648 | 0.00208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cbfb5620b9999ebfec8396e7e566e9eef183412 | 6,946 | py | Python | Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py | nVoid/Yale-TouchDesigner-April2016 | 40eb36f515fa3935f3e9ddaa923664e88308262c | [
"MIT"
] | 39 | 2015-06-10T23:18:07.000Z | 2021-10-21T04:29:06.000Z | Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py | nVoid/Yale-TouchDesigner-April2016 | 40eb36f515fa3935f3e9ddaa923664e88308262c | [
"MIT"
] | 13 | 2020-10-28T16:02:09.000Z | 2020-11-16T13:30:05.000Z | Project Files/Prebuilt tools/twitter/Twitter/pylib/oauthlib/oauth1/rfc5849/endpoints/resource.py | nVoid/Yale-TouchDesigner-April2016 | 40eb36f515fa3935f3e9ddaa923664e88308262c | [
"MIT"
] | 26 | 2015-06-10T22:09:15.000Z | 2021-06-27T15:45:15.000Z | # -*- coding: utf-8 -*-
"""
oauthlib.oauth1.rfc5849.endpoints.resource
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module is an implementation of the resource protection provider logic of
OAuth 1.0 RFC 5849.
"""
from __future__ import absolute_import, unicode_literals
from oauthlib.common import log
from .base i... | 44.525641 | 84 | 0.6444 | 847 | 6,946 | 5.172373 | 0.304604 | 0.035608 | 0.031956 | 0.0315 | 0.216617 | 0.178726 | 0.178726 | 0.169596 | 0.148596 | 0.134216 | 0 | 0.006933 | 0.293982 | 6,946 | 155 | 85 | 44.812903 | 0.886419 | 0.580766 | 0 | 0.173913 | 0 | 0 | 0.03994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.086957 | 0 | 0.26087 | 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 |
7cbffc6e03738d28e2329b530ca6fb3c25fe1127 | 1,493 | py | Python | python/ex_1.py | AymenSe/Geometric-operations-DIP | ef0b0bc86210a8da5e63136bf5a239179b869722 | [
"MIT"
] | null | null | null | python/ex_1.py | AymenSe/Geometric-operations-DIP | ef0b0bc86210a8da5e63136bf5a239179b869722 | [
"MIT"
] | null | null | null | python/ex_1.py | AymenSe/Geometric-operations-DIP | ef0b0bc86210a8da5e63136bf5a239179b869722 | [
"MIT"
] | null | null | null | ####################################################
#
# @ Authors : SEKHRI Aymen
# MOHAMMED HACENE Tarek
#
# @ Hint: you have to install all requirements
# from requirements.txt
#
####################################################
import numpy as np
import cv2 as cv
import matplotl... | 24.883333 | 59 | 0.649029 | 209 | 1,493 | 4.578947 | 0.449761 | 0.041797 | 0.059561 | 0.033438 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0.023026 | 0.185532 | 1,493 | 59 | 60 | 25.305085 | 0.76398 | 0.470864 | 0 | 0 | 0 | 0 | 0.100752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 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 |
7cc0266db2f787f19a55358bfe261dafe0201d9d | 3,999 | py | Python | utils/hit_rate_utils.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 19 | 2020-12-14T13:53:10.000Z | 2022-02-27T09:46:15.000Z | utils/hit_rate_utils.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 3 | 2021-01-16T11:41:07.000Z | 2021-08-06T08:21:42.000Z | utils/hit_rate_utils.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 3 | 2021-01-10T15:25:29.000Z | 2021-09-26T01:38:16.000Z | from utils.misc import calculate_iou, xywh_to_xyxy
__all__ = ['NewHitRateEvaluator', 'CtxHitRateEvaluator']
class NewHitRateEvaluator:
def __init__(self, refer, top_N=None, threshold=0.5):
"""Evaluate refexp-based hit rate.
Args:
refdb: `refdb` dict.
split: Dataset spli... | 36.688073 | 105 | 0.565141 | 495 | 3,999 | 4.30101 | 0.214141 | 0.036167 | 0.028182 | 0.042273 | 0.542978 | 0.517614 | 0.463128 | 0.463128 | 0.423673 | 0.423673 | 0 | 0.006112 | 0.345336 | 3,999 | 108 | 106 | 37.027778 | 0.807105 | 0.24031 | 0 | 0.354839 | 0 | 0 | 0.03394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.016129 | 0 | 0.145161 | 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 |
7cc16e64c487a1ae6266b04c47e0496bada66d00 | 905 | py | Python | LeetCode_ReorderDataLogFiles.py | amukher3/Problem_solutions | 8fa6014a91f295d08cafb989024caa91d99211d9 | [
"Apache-2.0"
] | 1 | 2021-12-28T08:58:51.000Z | 2021-12-28T08:58:51.000Z | LeetCode_ReorderDataLogFiles.py | amukher3/Coding | a330cb04b5dd5cc1c3cf69249417a71586441bc7 | [
"Apache-2.0"
] | null | null | null | LeetCode_ReorderDataLogFiles.py | amukher3/Coding | a330cb04b5dd5cc1c3cf69249417a71586441bc7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 22 19:07:30 2020
@author: Abhishek Mukherjee
"""
class Solution:
def reorderLogFiles(self, logs: List[str]) -> List[str]:
letLog=[]
digLog=[]
for i in range(len(logs)):
temp=[]
temp=logs... | 27.424242 | 76 | 0.438674 | 91 | 905 | 4.362637 | 0.494505 | 0.075567 | 0.04534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033645 | 0.40884 | 905 | 33 | 77 | 27.424242 | 0.708411 | 0.096133 | 0 | 0.095238 | 0 | 0 | 0.008986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 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 |
7cc17f1b77efcc568026cf1d93c6a6ded983ab6a | 475 | py | Python | saleor/core/transactions.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/core/transactions.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/core/transactions.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | from contextlib import contextmanager
from django.db import DatabaseError
from ..core.tracing import traced_atomic_transaction
@contextmanager
def transaction_with_commit_on_errors():
"""Perform transaction and raise an error in any occurred."""
error = None
with traced_atomic_transaction():
try... | 22.619048 | 65 | 0.669474 | 53 | 475 | 5.849057 | 0.622642 | 0.077419 | 0.148387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 475 | 20 | 66 | 23.75 | 0.906433 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7cc1ccd2747eb46713eaccaf9ca6dc49d25b3128 | 3,314 | py | Python | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py | diberry/azure-cli | 302999245cbb13b890b0a74f03443c577bd4bfae | [
"MIT"
] | 1 | 2019-03-30T20:49:32.000Z | 2019-03-30T20:49:32.000Z | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py | diberry/azure-cli | 302999245cbb13b890b0a74f03443c577bd4bfae | [
"MIT"
] | 4 | 2018-08-08T20:01:17.000Z | 2018-09-17T15:20:06.000Z | src/command_modules/azure-cli-policyinsights/azure/cli/command_modules/policyinsights/tests/latest/test_policyinsights_scenario.py | diberry/azure-cli | 302999245cbb13b890b0a74f03443c577bd4bfae | [
"MIT"
] | 1 | 2018-04-14T01:46:00.000Z | 2018-04-14T01:46:00.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 48.028986 | 194 | 0.545866 | 293 | 3,314 | 6.03413 | 0.453925 | 0.081448 | 0.084842 | 0.063348 | 0.3569 | 0.279977 | 0.225679 | 0.225679 | 0.18552 | 0.128959 | 0 | 0.060352 | 0.280024 | 3,314 | 68 | 195 | 48.735294 | 0.680637 | 0.101388 | 0 | 0.368421 | 0 | 0.052632 | 0.407669 | 0.169189 | 0 | 0 | 0 | 0 | 0.122807 | 1 | 0.017544 | false | 0 | 0.017544 | 0 | 0.052632 | 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 |
7cc70ea72109b3602fc21ef2eb53e2e3c1469770 | 1,461 | py | Python | grr/server/grr_response_server/databases/db_yara_test_lib.py | khanhgithead/grr | 8ad8a4d2c5a93c92729206b7771af19d92d4f915 | [
"Apache-2.0"
] | 4,238 | 2015-01-01T15:34:50.000Z | 2022-03-31T08:18:05.000Z | grr/server/grr_response_server/databases/db_yara_test_lib.py | khanhgithead/grr | 8ad8a4d2c5a93c92729206b7771af19d92d4f915 | [
"Apache-2.0"
] | 787 | 2015-01-02T21:34:24.000Z | 2022-03-02T13:26:38.000Z | grr/server/grr_response_server/databases/db_yara_test_lib.py | khanhgithead/grr | 8ad8a4d2c5a93c92729206b7771af19d92d4f915 | [
"Apache-2.0"
] | 856 | 2015-01-02T02:50:11.000Z | 2022-03-31T11:11:53.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""A module with test cases for the YARA database method."""
import os
from grr_response_server.databases import db
from grr_response_server.rdfvalues import objects as rdf_objects
class DatabaseTestYaraMixin(object):
"""A mixin class for testing YARA methods of dat... | 33.976744 | 75 | 0.776181 | 173 | 1,461 | 6.421965 | 0.404624 | 0.075608 | 0.032403 | 0.057606 | 0.449145 | 0.377138 | 0.377138 | 0.377138 | 0.329433 | 0.212421 | 0 | 0.007004 | 0.120465 | 1,461 | 42 | 76 | 34.785714 | 0.857588 | 0.158111 | 0 | 0.409091 | 0 | 0 | 0.018899 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.136364 | 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 |
7cc7a37d4874c578241d8fb555c025d8c962058b | 4,912 | py | Python | gpytorch/kernels/inducing_point_kernel.py | 4aHxKzD/gpytorch | 7193545f88820ea04588b983f1d7ed603a59a27c | [
"MIT"
] | 1 | 2021-03-05T07:20:58.000Z | 2021-03-05T07:20:58.000Z | gpytorch/kernels/inducing_point_kernel.py | 4aHxKzD/gpytorch | 7193545f88820ea04588b983f1d7ed603a59a27c | [
"MIT"
] | 1 | 2021-02-24T14:01:43.000Z | 2021-02-24T14:01:43.000Z | gpytorch/kernels/inducing_point_kernel.py | syncrostone/gpytorch | 4d33fbf64594aab2dd6e0cfcb3242510231b3e0e | [
"MIT"
] | 1 | 2021-03-15T12:32:24.000Z | 2021-03-15T12:32:24.000Z | #!/usr/bin/env python3
import copy
import math
import torch
from ..distributions import MultivariateNormal
from ..lazy import DiagLazyTensor, LowRankRootAddedDiagLazyTensor, LowRankRootLazyTensor, MatmulLazyTensor, delazify
from ..mlls import InducingPointKernelAddedLossTerm
from ..models import exact_prediction_str... | 36.656716 | 116 | 0.659202 | 574 | 4,912 | 5.30662 | 0.229965 | 0.039068 | 0.063033 | 0.043664 | 0.200263 | 0.154629 | 0.124097 | 0.061064 | 0.03086 | 0.03086 | 0 | 0.010738 | 0.260586 | 4,912 | 133 | 117 | 36.932331 | 0.827919 | 0.023005 | 0 | 0.147059 | 0 | 0 | 0.041293 | 0.019604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.088235 | 0.019608 | 0.303922 | 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 |
7cc9967d7946d0cff670ce2e551feabb3ef304ce | 891 | py | Python | app/__init__.py | Jotasenpai/DigitalMediaStoreRESTfull | bb776d398e1756b1ff2fd4f392b80479ae29847d | [
"MIT"
] | null | null | null | app/__init__.py | Jotasenpai/DigitalMediaStoreRESTfull | bb776d398e1756b1ff2fd4f392b80479ae29847d | [
"MIT"
] | null | null | null | app/__init__.py | Jotasenpai/DigitalMediaStoreRESTfull | bb776d398e1756b1ff2fd4f392b80479ae29847d | [
"MIT"
] | null | null | null | import logging
import os
from flask import Flask
from flask_cors import CORS
from app.extensions import api
from app.extensions.database import db
from app.extensions.schema import ma
from app.views import albums, artists, hello, tracks
def create_app(config, **kwargs):
logging.basicConfig(level=logging.INFO)
... | 21.214286 | 54 | 0.679012 | 119 | 891 | 4.92437 | 0.420168 | 0.047782 | 0.136519 | 0.117747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217733 | 891 | 41 | 55 | 21.731707 | 0.840746 | 0.038159 | 0 | 0 | 0 | 0 | 0.016374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.037037 | 0.296296 | 0 | 0.37037 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cc9e6223af3f0ca91fd050679827da65d115102 | 18,053 | py | Python | app.py | SASHA-PAIS/A-Flask-web-app-for-inventory-management | e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3 | [
"MIT"
] | null | null | null | app.py | SASHA-PAIS/A-Flask-web-app-for-inventory-management | e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3 | [
"MIT"
] | null | null | null | app.py | SASHA-PAIS/A-Flask-web-app-for-inventory-management | e6ed1b0d1d06ba04f9930f7653ce0504ecf81dd3 | [
"MIT"
] | null | null | null | from flask import Flask, url_for, request, redirect
from flask import render_template as render
from flask_mysqldb import MySQL
import yaml
import json
import MySQLdb
import decimal
class Encoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, decimal.Decimal):
return str(obj)
... | 37.146091 | 218 | 0.585831 | 2,237 | 18,053 | 4.561913 | 0.122933 | 0.031357 | 0.04096 | 0.023812 | 0.5805 | 0.531994 | 0.465458 | 0.417932 | 0.399314 | 0.382166 | 0 | 0.012281 | 0.287376 | 18,053 | 486 | 219 | 37.146091 | 0.780956 | 0.182574 | 0 | 0.493631 | 0 | 0 | 0.312479 | 0.005855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025478 | false | 0.003185 | 0.022293 | 0 | 0.092357 | 0.015924 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ccc10fc8c636712784281edcf93b9e16ef2ae97 | 2,202 | py | Python | configs/vinbig/detectors_resnext.py | SeHwanJoo/mmdetection_vinbig | 9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3 | [
"Apache-2.0"
] | 2 | 2021-04-01T08:17:08.000Z | 2021-07-12T11:53:53.000Z | configs/vinbig/detectors_resnext.py | SeHwanJoo/mmdetection_vinbig | 9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3 | [
"Apache-2.0"
] | null | null | null | configs/vinbig/detectors_resnext.py | SeHwanJoo/mmdetection_vinbig | 9a27d2b5cd8b3ec9ed1a94e4704a7c883f15dce3 | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../_base_/models/cascade_rcnn_r50_fpn.py',
'./dataset_base.py',
'./scheduler_base.py',
'../_base_/default_runtime.py'
]
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='DetectoRS_ResNeXt',
pretrained='open-mmlab://resnext101_32x4d',
... | 27.525 | 57 | 0.475931 | 221 | 2,202 | 4.493213 | 0.429864 | 0.096677 | 0.04431 | 0.087613 | 0.423968 | 0.321249 | 0.321249 | 0.268882 | 0.268882 | 0.268882 | 0 | 0.056231 | 0.402361 | 2,202 | 79 | 58 | 27.873418 | 0.698328 | 0 | 0 | 0.410256 | 0 | 0 | 0.15713 | 0.070391 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7cccbb5b10c9e4406bbef811b8c0c86a34ddfd24 | 26,701 | py | Python | skbio/draw/tests/test_distributions.py | johnchase/scikit-bio | 340e6153b6c93053d923d344e63481860e03731e | [
"BSD-3-Clause"
] | null | null | null | skbio/draw/tests/test_distributions.py | johnchase/scikit-bio | 340e6153b6c93053d923d344e63481860e03731e | [
"BSD-3-Clause"
] | null | null | null | skbio/draw/tests/test_distributions.py | johnchase/scikit-bio | 340e6153b6c93053d923d344e63481860e03731e | [
"BSD-3-Clause"
] | null | null | null | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | 46.275563 | 79 | 0.562638 | 3,341 | 26,701 | 4.2607 | 0.102365 | 0.071654 | 0.045381 | 0.04496 | 0.736424 | 0.665472 | 0.622129 | 0.595293 | 0.537127 | 0.460555 | 0 | 0.047997 | 0.283697 | 26,701 | 576 | 80 | 46.355903 | 0.696277 | 0.070447 | 0 | 0.448513 | 0 | 0 | 0.071806 | 0.003875 | 0 | 0 | 0 | 0 | 0.340961 | 1 | 0.132723 | false | 0 | 0.016018 | 0 | 0.15103 | 0.002288 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cced65964aa995783474d3ea16a3fdb37a88182 | 3,570 | py | Python | tensorflow_probability/python/bijectors/invert_test.py | matthieucoquet/probability | 2426f4fc4743ceedc1a638a03d19ce6654ebff76 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/bijectors/invert_test.py | matthieucoquet/probability | 2426f4fc4743ceedc1a638a03d19ce6654ebff76 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/bijectors/invert_test.py | matthieucoquet/probability | 2426f4fc4743ceedc1a638a03d19ce6654ebff76 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 38.387097 | 95 | 0.693557 | 453 | 3,570 | 5.262693 | 0.357616 | 0.060403 | 0.052433 | 0.065017 | 0.302013 | 0.239094 | 0.173238 | 0.069631 | 0.052852 | 0.034396 | 0 | 0.010929 | 0.179832 | 3,570 | 92 | 96 | 38.804348 | 0.803279 | 0.216807 | 0 | 0.153846 | 0 | 0 | 0.005413 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 1 | 0.061538 | false | 0 | 0.153846 | 0 | 0.230769 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7ccf2b0c1cc9f5a9318ca8b0e302ba7e965fbb1e | 4,394 | py | Python | dayu_widgets/alert.py | ZSD-tim/dayu_widgets | 31c2530bdc4161d9311574d9850c2e9471e53072 | [
"MIT"
] | null | null | null | dayu_widgets/alert.py | ZSD-tim/dayu_widgets | 31c2530bdc4161d9311574d9850c2e9471e53072 | [
"MIT"
] | null | null | null | dayu_widgets/alert.py | ZSD-tim/dayu_widgets | 31c2530bdc4161d9311574d9850c2e9471e53072 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2019.2
# Email : muyanru345@163.com
###################################################################
"""
MAlert class.
"""
import six
import functools
from dayu_widgets.avat... | 32.072993 | 98 | 0.62244 | 525 | 4,394 | 4.937143 | 0.251429 | 0.055556 | 0.038194 | 0.034722 | 0.157793 | 0.022377 | 0 | 0 | 0 | 0 | 0 | 0.004834 | 0.2467 | 4,394 | 136 | 99 | 32.308824 | 0.778248 | 0.142239 | 0 | 0.111111 | 0 | 0 | 0.052737 | 0.007452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.17284 | false | 0 | 0.098765 | 0 | 0.444444 | 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 |
7cd14d3a6d6b9088b4271089222cd9080f058243 | 5,664 | py | Python | jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py | bibinvasudev/EBI_Project | df2560139e463d68a37e67e0bb683c06fa9ef91b | [
"CNRI-Python"
] | null | null | null | jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py | bibinvasudev/EBI_Project | df2560139e463d68a37e67e0bb683c06fa9ef91b | [
"CNRI-Python"
] | null | null | null | jobs/SCH/JB_SALES_HIERARCHY_FLAG_N_SR.py | bibinvasudev/EBI_Project | df2560139e463d68a37e67e0bb683c06fa9ef91b | [
"CNRI-Python"
] | null | null | null | # SCH1101.sh --> JB_SALES_HIERARCHY_FLAG_N_SR.py
#**************************************************************************************************************
#
# Created by : bibin
# Version : 1.0
#
# Description :
# 1. This script will load the data into 'SALES_HIERARCHY' table based on stre... | 38.794521 | 218 | 0.625883 | 757 | 5,664 | 4.318362 | 0.265522 | 0.036708 | 0.029979 | 0.027531 | 0.201285 | 0.166412 | 0.15234 | 0.15234 | 0.132762 | 0.125421 | 0 | 0.009677 | 0.233757 | 5,664 | 145 | 219 | 39.062069 | 0.743548 | 0.169138 | 0 | 0.068966 | 0 | 0.011494 | 0.585616 | 0.149829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.091954 | 0 | 0.126437 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cd1e3bcc66dd50fd9167cfd73166db8b21f6910 | 670 | py | Python | myth/util.py | amanbhandari2002/mythproto | b03764485dad5178127307a3b3e4ddc508158143 | [
"BSD-3-Clause"
] | 1 | 2020-10-01T09:17:00.000Z | 2020-10-01T09:17:00.000Z | myth/util.py | amanbhandari2002/mythproto | b03764485dad5178127307a3b3e4ddc508158143 | [
"BSD-3-Clause"
] | null | null | null | myth/util.py | amanbhandari2002/mythproto | b03764485dad5178127307a3b3e4ddc508158143 | [
"BSD-3-Clause"
] | 2 | 2020-09-30T19:53:40.000Z | 2020-10-01T09:13:08.000Z | def decodeLongLong(lst):
high = int(lst[0]) << 32
low = int(lst[1])
if low < 0:
low += 4294967296
if high < 0:
high += 4294967296
return high + low
def encodeLongLong(i):
high = int(i / 4294967296)
low = i - high
return high, low
def parseOk(str):
if str == 'ok':
return True
else:
return False
def ... | 18.108108 | 80 | 0.631343 | 113 | 670 | 3.743363 | 0.504425 | 0.033097 | 0.061466 | 0.07565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075728 | 0.231343 | 670 | 36 | 81 | 18.611111 | 0.745631 | 0.273134 | 0 | 0.071429 | 0 | 0 | 0.004141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.035714 | 0 | 0 | 0.357143 | 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 |
7cd283a215a5ab2f5c601f954e24742216c659e4 | 14,208 | py | Python | scripts/tator_tracker.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 10 | 2019-01-23T23:58:01.000Z | 2021-08-30T19:42:35.000Z | scripts/tator_tracker.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 3 | 2020-03-20T15:21:41.000Z | 2020-09-18T18:49:38.000Z | scripts/tator_tracker.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 2 | 2020-05-08T17:39:12.000Z | 2020-10-09T01:27:17.000Z | #!/usr/bin/env python3
import argparse
import openem
import os
import cv2
import numpy as np
from openem.tracking import *
import json
import sys
import datetime
import tator
from pprint import pprint
from collections import defaultdict
import yaml
import math
import subprocess
import sys
def crop_localization(fram... | 39.248619 | 126 | 0.551943 | 1,686 | 14,208 | 4.451957 | 0.175563 | 0.034106 | 0.040767 | 0.017986 | 0.216893 | 0.158007 | 0.136957 | 0.085265 | 0.060751 | 0.04956 | 0 | 0.012664 | 0.327492 | 14,208 | 361 | 127 | 39.357341 | 0.772894 | 0.041878 | 0 | 0.193333 | 0 | 0 | 0.108446 | 0.006107 | 0 | 0 | 0 | 0.00277 | 0.006667 | 1 | 0.026667 | false | 0.003333 | 0.056667 | 0 | 0.11 | 0.056667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cd30f449f940b3e03ca41f6babd9a375fe19ebf | 1,167 | py | Python | hypergan/losses/multi_loss.py | Darkar25/HyperGAN | 76ef7e0c20569ceece88dc76396d92c77050692b | [
"MIT"
] | 1 | 2019-05-29T14:24:04.000Z | 2019-05-29T14:24:04.000Z | hypergan/losses/multi_loss.py | KonradLinkowski/HyperGAN | 3153daee838dbb8e8d8926b1e81419682a24f2fe | [
"MIT"
] | 218 | 2021-05-25T01:46:15.000Z | 2022-02-11T01:08:52.000Z | hypergan/losses/multi_loss.py | KonradLinkowski/HyperGAN | 3153daee838dbb8e8d8926b1e81419682a24f2fe | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import hyperchamber as hc
from hypergan.losses.base_loss import BaseLoss
from hypergan.multi_component import MultiComponent
TINY=1e-8
class MultiLoss(BaseLoss):
"""Takes multiple distributions and does an additional approximator"""
def _create(self, d_real, d_fake):... | 26.522727 | 99 | 0.61868 | 157 | 1,167 | 4.382166 | 0.407643 | 0.043605 | 0.043605 | 0.043605 | 0.05814 | 0.05814 | 0.05814 | 0.05814 | 0 | 0 | 0 | 0.006098 | 0.297344 | 1,167 | 43 | 100 | 27.139535 | 0.832927 | 0.070266 | 0 | 0 | 0 | 0 | 0.014856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.275862 | 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 |
7cd33c8d7f17b4aa6fc5f6d3f2701686f2ce01a4 | 13,643 | py | Python | src/fidesops/api/v1/endpoints/policy_endpoints.py | mohan-pogala/fidesops | 5c686362d4fb3b85253dd7e2898be1131a5071ab | [
"Apache-2.0"
] | null | null | null | src/fidesops/api/v1/endpoints/policy_endpoints.py | mohan-pogala/fidesops | 5c686362d4fb3b85253dd7e2898be1131a5071ab | [
"Apache-2.0"
] | null | null | null | src/fidesops/api/v1/endpoints/policy_endpoints.py | mohan-pogala/fidesops | 5c686362d4fb3b85253dd7e2898be1131a5071ab | [
"Apache-2.0"
] | null | null | null | import logging
from typing import Any, Dict, List
from fastapi import APIRouter, Body, Depends, Security
from fastapi_pagination import (
Page,
Params,
)
from fastapi_pagination.bases import AbstractPage
from fastapi_pagination.ext.sqlalchemy import paginate
from fidesops.schemas.shared_schemas import FidesOp... | 31.95082 | 113 | 0.609543 | 1,503 | 13,643 | 5.351963 | 0.135063 | 0.025733 | 0.01641 | 0.03916 | 0.599453 | 0.56825 | 0.521258 | 0.459846 | 0.413973 | 0.408379 | 0 | 0.005926 | 0.29495 | 13,643 | 426 | 114 | 32.025822 | 0.830336 | 0.048083 | 0 | 0.518207 | 0 | 0 | 0.146357 | 0.00731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022409 | false | 0 | 0.061625 | 0 | 0.10084 | 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 |
7cd398bd2b3034834a61ea93e2ee16c8e1011acb | 7,425 | py | Python | engage-analytics/sentiment_analysis/src/report/interface_report.py | oliveriopt/mood-analytics | c98eb8c483a05af938a2f6f49d8ea803f5711572 | [
"Apache-2.0"
] | null | null | null | engage-analytics/sentiment_analysis/src/report/interface_report.py | oliveriopt/mood-analytics | c98eb8c483a05af938a2f6f49d8ea803f5711572 | [
"Apache-2.0"
] | 2 | 2020-03-27T19:14:44.000Z | 2020-03-27T19:14:44.000Z | engage-analytics/sentiment_analysis/src/report/interface_report.py | oliveriopt/mood-analytics | c98eb8c483a05af938a2f6f49d8ea803f5711572 | [
"Apache-2.0"
] | null | null | null | import emoji
import sentiment_analysis.src.report.cons_report as cons
import sentiment_analysis.src.constants as global_cons
from utils.data_connection.api_data_manager import APISourcesFetcher
from utils.utilities import read_json_file, CUSTOM_YEAR_WEEK_AGG, extract_dimension, extract_question
from sentiment_analysis... | 40.135135 | 116 | 0.644175 | 851 | 7,425 | 5.304348 | 0.169213 | 0.031679 | 0.035888 | 0.043864 | 0.344041 | 0.246345 | 0.224634 | 0.197829 | 0.173017 | 0.173017 | 0 | 0.00374 | 0.279731 | 7,425 | 184 | 117 | 40.353261 | 0.840314 | 0.095623 | 0 | 0.165138 | 0 | 0 | 0.007194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091743 | false | 0 | 0.073395 | 0 | 0.183486 | 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 |
7cd59f2bf170f30d86846848bf3c6c4bf7b96d9c | 2,491 | py | Python | lino/modlib/gfks/mixins.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | 1 | 2019-11-13T19:38:50.000Z | 2019-11-13T19:38:50.000Z | lino/modlib/gfks/mixins.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | null | null | null | lino/modlib/gfks/mixins.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
# Copyright 2010-2018 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from builtins import object
from django.contrib.contenttypes.models import *
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.utils.text import format_lazy
... | 30.753086 | 71 | 0.635488 | 287 | 2,491 | 5.313589 | 0.341463 | 0.086557 | 0.062295 | 0.055082 | 0.321967 | 0.267541 | 0.226885 | 0.190164 | 0.139016 | 0.08 | 0 | 0.005895 | 0.250903 | 2,491 | 80 | 72 | 31.1375 | 0.811361 | 0.065837 | 0 | 0.267857 | 0 | 0 | 0.046101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
7cd5ad9a803e1cac21f7d6ba2961e58bea3c98da | 21,926 | py | Python | optical_form_reader/main.py | 1enes/optical_form_reader | fab99f2403c25f84fcb5bdac50148ab248432516 | [
"MIT"
] | null | null | null | optical_form_reader/main.py | 1enes/optical_form_reader | fab99f2403c25f84fcb5bdac50148ab248432516 | [
"MIT"
] | null | null | null | optical_form_reader/main.py | 1enes/optical_form_reader | fab99f2403c25f84fcb5bdac50148ab248432516 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from imutils import contours
from imutils.perspective import four_point_transform
import imutils
import cv2
import matplotlib.pyplot as plt
import numpy as np
from imutils import contours
from imutils.perspective import four_point_transform,order_points
import imutils
cevap_an... | 31.100709 | 223 | 0.622457 | 3,169 | 21,926 | 4.132534 | 0.117703 | 0.022679 | 0.034362 | 0.023824 | 0.536729 | 0.517486 | 0.456017 | 0.426237 | 0.388287 | 0.375382 | 0 | 0.069134 | 0.233422 | 21,926 | 704 | 224 | 31.144886 | 0.709186 | 0.080863 | 0 | 0.458738 | 0 | 0.002427 | 0.040982 | 0.003976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043689 | false | 0.007282 | 0.026699 | 0 | 0.114078 | 0.019417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cd8fbdd89ede56684cdd39b8bd8583e3ed86ea6 | 16,528 | py | Python | test/testMatrix.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | 1 | 2021-05-26T19:22:17.000Z | 2021-05-26T19:22:17.000Z | test/testMatrix.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | test/testMatrix.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null |
import unittest
from nzmath.matrix import *
import nzmath.vector as vector
import nzmath.rational as rational
import nzmath.poly.uniutil as uniutil
Ra = rational.Rational
Poly = uniutil.polynomial
Int = rational.theIntegerRing
# sub test
try:
from test.testMatrixFiniteField import *
except:
try:
from... | 35.165957 | 94 | 0.575811 | 2,329 | 16,528 | 4.060541 | 0.147703 | 0.141165 | 0.009834 | 0.005922 | 0.175108 | 0.08618 | 0.068838 | 0.052342 | 0.045998 | 0.027704 | 0 | 0.102939 | 0.246491 | 16,528 | 469 | 95 | 35.240938 | 0.656416 | 0.012585 | 0 | 0.032609 | 0 | 0 | 0.00129 | 0 | 0 | 0 | 0 | 0 | 0.358696 | 1 | 0.179348 | false | 0.002717 | 0.021739 | 0 | 0.228261 | 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 |
7cdcd3e9c2d7e86acfb845c8d72f0dc9c0f23f7d | 2,290 | py | Python | api/routers/dashboard.py | xming521/coco_API | 51d7ac3141e58f1d6a5438af135fba3ea101bd53 | [
"MIT"
] | null | null | null | api/routers/dashboard.py | xming521/coco_API | 51d7ac3141e58f1d6a5438af135fba3ea101bd53 | [
"MIT"
] | null | null | null | api/routers/dashboard.py | xming521/coco_API | 51d7ac3141e58f1d6a5438af135fba3ea101bd53 | [
"MIT"
] | null | null | null | import time
import psutil
import pymysql
from fastapi import APIRouter
from api.utils import response_code
router = APIRouter()
@router.get('/dashboard/getinfo')
def getinfo():
from init_global import g
res = {}
db = g.db_pool.connection()
cur = db.cursor()
cur.execute(f'select count(app_name) ... | 30.533333 | 79 | 0.620524 | 316 | 2,290 | 4.39557 | 0.401899 | 0.053996 | 0.064795 | 0.071994 | 0.182145 | 0.12599 | 0.115191 | 0.057595 | 0.057595 | 0.057595 | 0 | 0.055715 | 0.239738 | 2,290 | 74 | 80 | 30.945946 | 0.742102 | 0.030131 | 0 | 0.065574 | 0 | 0 | 0.132366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0.016393 | 0.131148 | 0 | 0.213115 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cdd5ff32b1c2238dcf9d02a8e0c07b84239dfc5 | 13,145 | py | Python | tests/operators/test_hive_operator.py | Ryan-Miao/airflow | a2aca8714fac014ed7da97229d7877f1bc6e5a59 | [
"Apache-2.0"
] | null | null | null | tests/operators/test_hive_operator.py | Ryan-Miao/airflow | a2aca8714fac014ed7da97229d7877f1bc6e5a59 | [
"Apache-2.0"
] | null | null | null | tests/operators/test_hive_operator.py | Ryan-Miao/airflow | a2aca8714fac014ed7da97229d7877f1bc6e5a59 | [
"Apache-2.0"
] | 1 | 2020-09-29T05:26:34.000Z | 2020-09-29T05:26:34.000Z | # -*- coding: utf-8 -*-
#
# 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
#... | 39.005935 | 88 | 0.617117 | 1,504 | 13,145 | 5.091755 | 0.183511 | 0.060329 | 0.068556 | 0.027292 | 0.51802 | 0.419039 | 0.400496 | 0.349439 | 0.333638 | 0.322669 | 0 | 0.005491 | 0.29342 | 13,145 | 336 | 89 | 39.122024 | 0.819014 | 0.065044 | 0 | 0.416667 | 0 | 0 | 0.227339 | 0.097408 | 0 | 0 | 0 | 0 | 0.034091 | 1 | 0.102273 | false | 0 | 0.045455 | 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 |
7cdde129ca347d44c4fc15ae483831b97628b1d6 | 4,553 | py | Python | main.py | OrionDark7/Alakajam12 | 4f9f8f87a05feb718baddb12aa8cbbed3e36a071 | [
"MIT"
] | null | null | null | main.py | OrionDark7/Alakajam12 | 4f9f8f87a05feb718baddb12aa8cbbed3e36a071 | [
"MIT"
] | null | null | null | main.py | OrionDark7/Alakajam12 | 4f9f8f87a05feb718baddb12aa8cbbed3e36a071 | [
"MIT"
] | null | null | null | import pygame, math
from game import map, ui
window = pygame.display.set_mode([800, 600])
ui.window = window
screen = "game"
s = {"fullscreen": False}
running = True
gamedata = {"level": 0, "coal": 0, "iron": 1, "copper":0}
tiles = pygame.sprite.Group()
rails = pygame.sprite.Group()
carts = pygame.sprite.Group()
inter... | 40.292035 | 124 | 0.573468 | 597 | 4,553 | 4.350084 | 0.21943 | 0.034655 | 0.03119 | 0.02965 | 0.340393 | 0.25953 | 0.245668 | 0.19253 | 0.144012 | 0.118598 | 0 | 0.032471 | 0.269493 | 4,553 | 112 | 125 | 40.651786 | 0.748346 | 0 | 0 | 0.128713 | 0 | 0 | 0.065891 | 0.02416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039604 | false | 0 | 0.019802 | 0.009901 | 0.079208 | 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 |
7cde5911adb7d9da7046ae21614759503f243fc8 | 51,158 | py | Python | sympy/integrals/prde.py | Abhi58/sympy | 5ca228b17a7d44ef08a268ba1fa959d5763634af | [
"BSD-3-Clause"
] | 2 | 2019-06-12T16:15:39.000Z | 2019-10-06T10:40:59.000Z | sympy/integrals/prde.py | Abhi58/sympy | 5ca228b17a7d44ef08a268ba1fa959d5763634af | [
"BSD-3-Clause"
] | null | null | null | sympy/integrals/prde.py | Abhi58/sympy | 5ca228b17a7d44ef08a268ba1fa959d5763634af | [
"BSD-3-Clause"
] | 1 | 2019-10-02T10:47:13.000Z | 2019-10-02T10:47:13.000Z | """
Algorithms for solving Parametric Risch Differential Equations.
The methods used for solving Parametric Risch Differential Equations parallel
those for solving Risch Differential Equations. See the outline in the
docstring of rde.py for more information.
The Parametric Risch Differential Equation problem is, giv... | 40.123922 | 110 | 0.561222 | 8,964 | 51,158 | 3.151495 | 0.089023 | 0.008142 | 0.010619 | 0.004531 | 0.510867 | 0.467717 | 0.434301 | 0.388814 | 0.353522 | 0.324212 | 0 | 0.012373 | 0.297001 | 51,158 | 1,274 | 111 | 40.155416 | 0.773134 | 0.503929 | 0 | 0.311828 | 0 | 0 | 0.042779 | 0.002453 | 0 | 0 | 0 | 0.00471 | 0 | 1 | 0.03405 | false | 0.001792 | 0.016129 | 0 | 0.137993 | 0.001792 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ce07b8311ef90c93682c15fc681abf9e95c0bb7 | 1,076 | py | Python | ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-05T09:30:23.000Z | 2022-03-09T13:27:56.000Z | ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | null | null | null | ssh_telnet/netmiko/ex07_netmiko_command_mult_prompts.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-06T03:44:35.000Z | 2022-03-04T21:20:40.000Z | from pprint import pprint
import yaml
import netmiko
import paramiko
def send_cmd_with_prompt(device, command, *, wait_for, confirmation):
if type(wait_for) == str:
wait_for = [wait_for]
if type(confirmation) == str:
confirmation = [confirmation]
with netmiko.Netmiko(**device) as ssh:
... | 25.619048 | 84 | 0.616171 | 127 | 1,076 | 4.992126 | 0.409449 | 0.066246 | 0.0347 | 0.053628 | 0.18612 | 0.104101 | 0 | 0 | 0 | 0 | 0 | 0.006485 | 0.283457 | 1,076 | 41 | 85 | 26.243902 | 0.815824 | 0 | 0 | 0 | 0 | 0 | 0.057318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7ce146b894402021fe89e46e79f310a76ff9ef08 | 2,479 | py | Python | LightTestLoop.py | Growing-Beyond-Earth/GettingStarted | 04c2fd5fa36224ac25a6c6c62c4d6e558b27e700 | [
"Apache-2.0"
] | null | null | null | LightTestLoop.py | Growing-Beyond-Earth/GettingStarted | 04c2fd5fa36224ac25a6c6c62c4d6e558b27e700 | [
"Apache-2.0"
] | null | null | null | LightTestLoop.py | Growing-Beyond-Earth/GettingStarted | 04c2fd5fa36224ac25a6c6c62c4d6e558b27e700 | [
"Apache-2.0"
] | null | null | null | # GROWNG BEYOND EARTH CONTROL BOX Traning
# RASPBERRY PI PICO / MICROPYTHON
# FAIRCHILD TROPICAL BOTANIC GARDEN, Oct 18, 2021
# The Growing Beyond Earth (GBE) control box is a device that controls
# the LED lights and fan in a GBE growth chamber. It can also control
# accessories including a 12v water pump and enviro... | 38.138462 | 92 | 0.745058 | 425 | 2,479 | 4.305882 | 0.442353 | 0.034426 | 0.037158 | 0.043716 | 0.057924 | 0.057924 | 0.057924 | 0.057924 | 0.057924 | 0.057924 | 0 | 0.04058 | 0.164986 | 2,479 | 64 | 93 | 38.734375 | 0.843478 | 0.706737 | 0 | 0 | 0 | 0 | 0.017316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 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 |
7ce15c82ddc26277baddffb09d13b58c226ab5d6 | 3,409 | py | Python | core/known_bugs_utils.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | core/known_bugs_utils.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | core/known_bugs_utils.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | import os
import yaml
from core import plugintools
from core import constants
from core.searchtools import SearchDef
from core.issues.issue_utils import IssueEntry
LAUNCHPAD = "launchpad"
MASTER_YAML_KNOWN_BUGS_KEY = "bugs-detected"
KNOWN_BUGS = {MASTER_YAML_KNOWN_BUGS_KEY: []}
class BugSearchDef(SearchDef):
de... | 33.097087 | 79 | 0.680845 | 476 | 3,409 | 4.632353 | 0.277311 | 0.089796 | 0.058957 | 0.060317 | 0.33424 | 0.301587 | 0.233107 | 0.217687 | 0.217687 | 0.217687 | 0 | 0.000768 | 0.236433 | 3,409 | 102 | 80 | 33.421569 | 0.846331 | 0.217366 | 0 | 0.237288 | 0 | 0 | 0.067637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0 | 0.101695 | 0.016949 | 0.322034 | 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 |
7ce1993cbdc65a6d053c9478a3f9b9475d29bb5c | 7,083 | py | Python | tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py | gpspelle/pose-estimation | b817dcc120092002984d8a41431046f323bc02c8 | [
"Apache-2.0"
] | 862 | 2019-12-11T18:40:48.000Z | 2022-03-29T15:23:58.000Z | tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py | bvanelli/tf-pose-estimation | 1dec506ac8abf00616dc0fe76bf476ccdfd6b93e | [
"Apache-2.0"
] | 72 | 2019-05-07T18:33:32.000Z | 2022-03-10T07:48:39.000Z | tf_pose/slim/nets/mobilenet/mobilenet_v2_test.py | bvanelli/tf-pose-estimation | 1dec506ac8abf00616dc0fe76bf476ccdfd6b93e | [
"Apache-2.0"
] | 165 | 2019-12-11T20:04:22.000Z | 2022-03-29T06:18:12.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 37.278947 | 80 | 0.674432 | 975 | 7,083 | 4.70359 | 0.255385 | 0.043175 | 0.03925 | 0.057567 | 0.527039 | 0.503053 | 0.497383 | 0.458352 | 0.433057 | 0.433057 | 0 | 0.059526 | 0.195962 | 7,083 | 189 | 81 | 37.47619 | 0.745742 | 0.201468 | 0 | 0.444444 | 0 | 0 | 0.030676 | 0.004459 | 0 | 0 | 0 | 0 | 0.134921 | 1 | 0.126984 | false | 0 | 0.063492 | 0 | 0.206349 | 0.007937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ce2ce6e7522a59e86a553aeb0f5ee90bd00e269 | 1,402 | py | Python | firebase-gist.py | darwin/firebase-gist | 5aa4eb89e82fbf2971d7afca07471e1f51ff6e51 | [
"MIT"
] | 1 | 2017-08-15T15:37:21.000Z | 2017-08-15T15:37:21.000Z | firebase-gist.py | darwin/firebase-gist | 5aa4eb89e82fbf2971d7afca07471e1f51ff6e51 | [
"MIT"
] | null | null | null | firebase-gist.py | darwin/firebase-gist | 5aa4eb89e82fbf2971d7afca07471e1f51ff6e51 | [
"MIT"
] | null | null | null | from firebase import firebase
import os
import datetime
import json
import logging
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from github3 import login
firebase_url = os.environ['FIREBASE_DB']
firebase_secret = os.environ['FIREBASE_SECRET']
firebase_path = os.environ['FIREBASE_PATH']
fireb... | 25.962963 | 100 | 0.738231 | 194 | 1,402 | 5.14433 | 0.381443 | 0.063126 | 0.068136 | 0.046092 | 0.054108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004075 | 0.124822 | 1,402 | 54 | 101 | 25.962963 | 0.809291 | 0.010699 | 0 | 0 | 0 | 0 | 0.156566 | 0.024531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.181818 | 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 |
7ce34380af3cdc654ec22dc00486fd1079b00edb | 25,614 | py | Python | synapse/notifier.py | rkfg/synapse | 0b3112123da5fae4964db784e3bab0c4d83d9d62 | [
"Apache-2.0"
] | 1 | 2021-09-09T08:50:13.000Z | 2021-09-09T08:50:13.000Z | synapse/notifier.py | rkfg/synapse | 0b3112123da5fae4964db784e3bab0c4d83d9d62 | [
"Apache-2.0"
] | null | null | null | synapse/notifier.py | rkfg/synapse | 0b3112123da5fae4964db784e3bab0c4d83d9d62 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2014 - 2016 OpenMarket Ltd
#
# 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 applic... | 36.025316 | 87 | 0.605216 | 2,981 | 25,614 | 4.94901 | 0.161355 | 0.021013 | 0.015861 | 0.021962 | 0.224836 | 0.154341 | 0.114282 | 0.085813 | 0.067444 | 0.057344 | 0 | 0.001791 | 0.324198 | 25,614 | 710 | 88 | 36.076056 | 0.850491 | 0.194854 | 0 | 0.206316 | 0 | 0 | 0.037745 | 0.012089 | 0 | 0 | 0 | 0.001408 | 0 | 1 | 0.052632 | false | 0 | 0.042105 | 0.004211 | 0.153684 | 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 |
7ce4682d4472c3403cd709b201e4107d5de073fb | 20,891 | py | Python | pytorch3dunet/unet3d/predictor.py | searobbersduck/pytorch-3dunet | 5bb8ed2b6966b2cd06b1dc676b62d1ad98329305 | [
"MIT"
] | null | null | null | pytorch3dunet/unet3d/predictor.py | searobbersduck/pytorch-3dunet | 5bb8ed2b6966b2cd06b1dc676b62d1ad98329305 | [
"MIT"
] | null | null | null | pytorch3dunet/unet3d/predictor.py | searobbersduck/pytorch-3dunet | 5bb8ed2b6966b2cd06b1dc676b62d1ad98329305 | [
"MIT"
] | null | null | null | import time
import h5py
import hdbscan
import numpy as np
import torch
from sklearn.cluster import MeanShift
from pytorch3dunet.datasets.hdf5 import SliceBuilder
from pytorch3dunet.unet3d.utils import get_logger
from pytorch3dunet.unet3d.utils import unpad
logger = get_logger('UNet3DPredictor')
class _AbstractPred... | 49.387707 | 134 | 0.631372 | 2,343 | 20,891 | 5.42723 | 0.160478 | 0.025165 | 0.017301 | 0.022649 | 0.421595 | 0.357896 | 0.341617 | 0.301274 | 0.267301 | 0.240249 | 0 | 0.005181 | 0.297784 | 20,891 | 422 | 135 | 49.504739 | 0.861622 | 0.255756 | 0 | 0.269565 | 0 | 0.004348 | 0.111748 | 0.019515 | 0 | 0 | 0 | 0.00237 | 0.004348 | 1 | 0.078261 | false | 0 | 0.03913 | 0 | 0.182609 | 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 |
7ce65373a75b86fe5dcecdc0e2146bc5ea3033e1 | 3,593 | py | Python | extra/convertBAMtoPILFER.py | MartaLoBalastegui/XICRA | 74a7e74379c7e1b3fc1360d2c609994e884ee37a | [
"MIT"
] | 3 | 2021-05-16T21:13:22.000Z | 2022-01-23T08:47:48.000Z | extra/convertBAMtoPILFER.py | MartaLoBalastegui/XICRA | 74a7e74379c7e1b3fc1360d2c609994e884ee37a | [
"MIT"
] | 16 | 2021-03-11T10:51:25.000Z | 2022-03-12T01:02:00.000Z | extra/convertBAMtoPILFER.py | MartaLoBalastegui/XICRA | 74a7e74379c7e1b3fc1360d2c609994e884ee37a | [
"MIT"
] | 3 | 2021-03-05T10:07:38.000Z | 2022-01-23T08:48:06.000Z | #usr/bin/env python
## useful imports
import time
import io
import os
import re
import sys
from sys import argv
import subprocess
## ARGV
if len (sys.argv) < 5:
print ("\nUsage:")
print ("python3 %s bam_file folder bedtools_bin samtools_bin logfile\n" %os.path.realpath(__file__))
exit()
bam_file = os.path.abspath... | 27.219697 | 138 | 0.680768 | 568 | 3,593 | 4.146127 | 0.216549 | 0.057325 | 0.057325 | 0.010191 | 0.420807 | 0.318896 | 0.287473 | 0.248832 | 0.212314 | 0.157537 | 0 | 0.013236 | 0.15892 | 3,593 | 131 | 139 | 27.427481 | 0.766049 | 0.125244 | 0 | 0.329787 | 0 | 0.021277 | 0.194668 | 0.017989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074468 | 0 | 0.074468 | 0.170213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ce89a8d2a94f66d0921f4dfd7dff6f5d544c025 | 2,727 | py | Python | app/reader.py | lcarnevale/proxy-mqtt2influx | 89b3cd354b465d7451556a2d2ec49ac8688b4f17 | [
"MIT"
] | null | null | null | app/reader.py | lcarnevale/proxy-mqtt2influx | 89b3cd354b465d7451556a2d2ec49ac8688b4f17 | [
"MIT"
] | null | null | null | app/reader.py | lcarnevale/proxy-mqtt2influx | 89b3cd354b465d7451556a2d2ec49ac8688b4f17 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
"""Writer class based on InfluxDB
This implementation does its best to follow the Robert Martin's Clean code guidelines.
The comments follows the Google Python Style Guide:
https://github.com/google/styleguide/blob/gh-pages/pyguide.md
"""
__copyright__ = 'Copyright 2... | 32.464286 | 105 | 0.604694 | 293 | 2,727 | 5.37884 | 0.47099 | 0.022208 | 0.020305 | 0.022843 | 0.032995 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004128 | 0.289329 | 2,727 | 84 | 106 | 32.464286 | 0.809082 | 0.10231 | 0 | 0 | 0 | 0.016949 | 0.137649 | 0.018025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0.016949 | 0.118644 | 0 | 0.220339 | 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 |
7ce89c46f636fde71ee0a887ac7403a640c90ce5 | 1,781 | py | Python | example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py | DottaPaperella/TALight | 580322c3121c9acde9827f996fd4e39e31d93a6f | [
"MIT"
] | null | null | null | example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py | DottaPaperella/TALight | 580322c3121c9acde9827f996fd4e39e31d93a6f | [
"MIT"
] | null | null | null | example_problems/tutorial/tiling_mxn-boards_with_1x2-boards/services/tell_if_tilable/tell_if_tilable_server.py | DottaPaperella/TALight | 580322c3121c9acde9827f996fd4e39e31d93a6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from sys import stderr, exit, argv
from random import randrange
#from TALinputs import TALinput
from multilanguage import Env, Lang, TALcolors
# METADATA OF THIS TAL_SERVICE:
problem="tiling_mxn-boards_with_1x2-boards"
service="is_tilable"
args_list = [
('m',int),
('n',int),
('my_co... | 35.62 | 242 | 0.64009 | 291 | 1,781 | 3.831615 | 0.340206 | 0.025112 | 0.03139 | 0.035874 | 0.378475 | 0.378475 | 0.324664 | 0.310314 | 0.191928 | 0.191928 | 0 | 0.006845 | 0.179674 | 1,781 | 49 | 243 | 36.346939 | 0.756331 | 0.06064 | 0 | 0.222222 | 0 | 0.111111 | 0.482014 | 0.113309 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
7cee12e1d9ee7123f1ed98d591b1f1a9ee9c89f2 | 10,845 | py | Python | sgains/tool.py | KrasnitzLab/sgains | 501c42bfdad4542725f00ca8199983eccf8c0b3f | [
"MIT"
] | 1 | 2017-09-08T05:09:59.000Z | 2017-09-08T05:09:59.000Z | sgains/tool.py | KrasnitzLab/sgains | 501c42bfdad4542725f00ca8199983eccf8c0b3f | [
"MIT"
] | 35 | 2017-07-31T04:13:40.000Z | 2019-09-06T13:32:17.000Z | sgains/tool.py | KrasnitzLab/sgains | 501c42bfdad4542725f00ca8199983eccf8c0b3f | [
"MIT"
] | 3 | 2017-09-08T05:10:34.000Z | 2019-06-11T09:06:41.000Z | import os
import sys
from copy import deepcopy
import traceback
import functools
from collections import defaultdict
import yaml
from argparse import ArgumentParser,\
RawDescriptionHelpFormatter, ArgumentDefaultsHelpFormatter
from sgains.configuration.parser import SgainsValidator, Config
from sgains.configurat... | 30.635593 | 79 | 0.616136 | 1,161 | 10,845 | 5.579673 | 0.204996 | 0.029639 | 0.026397 | 0.019296 | 0.180148 | 0.135073 | 0.084903 | 0.084903 | 0.054029 | 0.033652 | 0 | 0.004485 | 0.280406 | 10,845 | 353 | 80 | 30.72238 | 0.825602 | 0 | 0 | 0.158076 | 0 | 0 | 0.184786 | 0.002213 | 0 | 0 | 0 | 0 | 0.013746 | 1 | 0.024055 | false | 0 | 0.068729 | 0 | 0.151203 | 0.006873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cee8f95a77e8d2ded7b9467b41b6c25c5fb7cdf | 3,135 | py | Python | lib/modeling/VGG16.py | rsumner31/Detectron | 021685d42f7e8ac097e2bcf79fecb645f211378e | [
"Apache-2.0"
] | 429 | 2018-04-28T00:01:57.000Z | 2021-12-18T12:53:22.000Z | lib/modeling/VGG16.py | absorbguo/Detectron | 2f8161edc3092b0382cab535c977a180a8b3cc4d | [
"Apache-2.0"
] | 54 | 2018-12-26T13:04:32.000Z | 2020-04-24T04:09:30.000Z | lib/modeling/VGG16.py | absorbguo/Detectron | 2f8161edc3092b0382cab535c977a180a8b3cc4d | [
"Apache-2.0"
] | 96 | 2018-12-24T05:12:36.000Z | 2021-04-23T15:51:21.000Z | # Copyright (c) 2017-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 41.25 | 78 | 0.648166 | 500 | 3,135 | 3.87 | 0.268 | 0.052713 | 0.033592 | 0.073902 | 0.272868 | 0.25323 | 0.25323 | 0.241344 | 0.189147 | 0.100258 | 0 | 0.111963 | 0.168102 | 3,135 | 75 | 79 | 41.8 | 0.629985 | 0.194258 | 0 | 0 | 0 | 0 | 0.183539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.09434 | 0 | 0.169811 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ceed4646921c1456f0b28f435da564f3dae7896 | 2,913 | py | Python | setup.py | yangjing1127/xmind2testcase | 49a581159a0d8e028f89939777399493662df111 | [
"MIT"
] | 537 | 2018-12-26T03:02:54.000Z | 2022-03-30T17:41:53.000Z | setup.py | yangjing1127/xmind2testcase | 49a581159a0d8e028f89939777399493662df111 | [
"MIT"
] | 49 | 2019-01-08T09:59:15.000Z | 2022-03-30T00:58:47.000Z | setup.py | yangjing1127/xmind2testcase | 49a581159a0d8e028f89939777399493662df111 | [
"MIT"
] | 190 | 2018-12-29T07:09:48.000Z | 2022-03-31T01:55:02.000Z | #!/usr/env/bin python
# -*- coding: utf-8 -*-
import io
import os
import sys
from shutil import rmtree
from setuptools import setup, find_packages, Command
about = {}
here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, 'xmind2testcase', '__about__.py'), encoding='utf-8') as f: # custom
... | 28.281553 | 100 | 0.604875 | 327 | 2,913 | 5.180428 | 0.486239 | 0.021251 | 0.023613 | 0.033058 | 0.141677 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011312 | 0.241332 | 2,913 | 102 | 101 | 28.558824 | 0.755204 | 0.096807 | 0 | 0.04 | 0 | 0 | 0.30811 | 0.025223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0.04 | 0.066667 | 0 | 0.146667 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cef0095a10852826052b744b28e1db78c985b8d | 2,670 | py | Python | skultrafast/styles.py | Tillsten/skultrafast | 778eaf1539b6d85f21ac53b011472605673ef7e8 | [
"BSD-3-Clause"
] | 10 | 2019-02-17T15:57:51.000Z | 2021-11-15T02:00:33.000Z | skultrafast/styles.py | cZahn/skultrafast | 23572ba9ea32238f34a8a15390fb572ecd8bc6fa | [
"BSD-3-Clause"
] | 1 | 2019-01-17T11:56:38.000Z | 2019-07-11T15:30:58.000Z | skultrafast/styles.py | cZahn/skultrafast | 23572ba9ea32238f34a8a15390fb572ecd8bc6fa | [
"BSD-3-Clause"
] | 6 | 2018-11-08T14:11:06.000Z | 2021-09-01T14:53:02.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 17 21:33:24 2015
@author: Tillsten
"""
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
tableau20 = [(31, 119, 180), (174, 199, 232), (255, 127, 14), (255, 187, 120),
(44, 160, 44), (152, 223, 138), (214, 39, 40), (255, 152, 15... | 37.083333 | 83 | 0.522846 | 416 | 2,670 | 3.324519 | 0.430288 | 0.008677 | 0.017354 | 0.015184 | 0.177151 | 0.146782 | 0.146782 | 0.146782 | 0.146782 | 0.146782 | 0 | 0.140759 | 0.2603 | 2,670 | 71 | 84 | 37.605634 | 0.559494 | 0.126217 | 0 | 0.04 | 0 | 0.02 | 0.183356 | 0.026702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.06 | 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 |
7cef6acdfa1f2191c94118bdb071a657a3a738d4 | 3,634 | py | Python | src/oci/devops/models/github_build_run_source.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-09-10T22:09:45.000Z | 2021-12-24T17:00:07.000Z | src/oci/devops/models/github_build_run_source.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/devops/models/github_build_run_source.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 33.648148 | 245 | 0.660704 | 439 | 3,634 | 5.241458 | 0.305239 | 0.070404 | 0.124294 | 0.052151 | 0.33681 | 0.235984 | 0.08518 | 0.060843 | 0.060843 | 0.060843 | 0 | 0.006711 | 0.26197 | 3,634 | 107 | 246 | 33.962617 | 0.85123 | 0.520914 | 0 | 0.05 | 0 | 0 | 0.083217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.075 | 0.05 | 0.45 | 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 |
7cf24c69a41740779ba55ee7c2d11c15c8feec7e | 12,133 | py | Python | aiida_fleur/tests/tools/test_common_fleur_wf.py | anoopkcn/aiida-fleur | 5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f | [
"MIT"
] | null | null | null | aiida_fleur/tests/tools/test_common_fleur_wf.py | anoopkcn/aiida-fleur | 5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f | [
"MIT"
] | null | null | null | aiida_fleur/tests/tools/test_common_fleur_wf.py | anoopkcn/aiida-fleur | 5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import pytest
import os
# is_code
def test_is_code_interface(fixture_code):
from aiida_fleur.tools.common_fleur_wf import is_code
assert is_code('random_string') is None
assert is_code('fleur.inpGUT') is None
assert is_code(99999) is None
code = fixture_cod... | 43.332143 | 164 | 0.597461 | 1,399 | 12,133 | 4.932809 | 0.231594 | 0.023475 | 0.020287 | 0.027532 | 0.437038 | 0.407332 | 0.352558 | 0.314592 | 0.281843 | 0.218519 | 0 | 0.069417 | 0.282865 | 12,133 | 279 | 165 | 43.487455 | 0.72371 | 0.042117 | 0 | 0.146341 | 0 | 0.019512 | 0.268343 | 0.053237 | 0 | 0 | 0 | 0 | 0.131707 | 1 | 0.04878 | false | 0 | 0.102439 | 0 | 0.15122 | 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 |
7cf2ae07e37425db960a133be2b5c330c6ba9916 | 36,957 | py | Python | src/probnum/random_variables/_random_variable.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | null | null | null | src/probnum/random_variables/_random_variable.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | 2 | 2020-12-28T19:37:16.000Z | 2020-12-28T19:37:31.000Z | src/probnum/random_variables/_random_variable.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | null | null | null | """
Random Variables.
This module implements random variables. Random variables are the main in- and outputs
of probabilistic numerical methods.
"""
from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar, Union
import numpy as np
from probnum import utils as _utils
from probnum.type import (
... | 34.668856 | 107 | 0.596152 | 4,133 | 36,957 | 5.153158 | 0.113477 | 0.012442 | 0.036388 | 0.017842 | 0.516387 | 0.473378 | 0.447272 | 0.412104 | 0.383933 | 0.36055 | 0 | 0.001089 | 0.304489 | 36,957 | 1,065 | 108 | 34.701408 | 0.827498 | 0.277376 | 0 | 0.407407 | 0 | 0 | 0.106221 | 0.00847 | 0 | 0 | 0 | 0 | 0.011785 | 1 | 0.097643 | false | 0 | 0.042088 | 0.015152 | 0.249158 | 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 |
7cf5ba1b8968aa69e6a1b87247368728da9bf55b | 11,847 | py | Python | tools/wasm-sourcemap.py | ngzhian/emscripten | 94b1555a09f869d65354a2033da724ce77a43106 | [
"MIT"
] | 1 | 2019-08-16T23:42:09.000Z | 2019-08-16T23:42:09.000Z | tools/wasm-sourcemap.py | ngzhian/emscripten | 94b1555a09f869d65354a2033da724ce77a43106 | [
"MIT"
] | null | null | null | tools/wasm-sourcemap.py | ngzhian/emscripten | 94b1555a09f869d65354a2033da724ce77a43106 | [
"MIT"
] | 1 | 2019-09-26T20:05:46.000Z | 2019-09-26T20:05:46.000Z | #!/usr/bin/env python
# Copyright 2018 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
"""Utility tools that extracts DWARF informatio... | 35.258929 | 171 | 0.653668 | 1,604 | 11,847 | 4.655237 | 0.2101 | 0.012053 | 0.022767 | 0.012053 | 0.093612 | 0.048078 | 0.042587 | 0.030267 | 0.030267 | 0.010982 | 0 | 0.026727 | 0.216764 | 11,847 | 335 | 172 | 35.364179 | 0.777993 | 0.156495 | 0 | 0.11157 | 0 | 0.004132 | 0.144063 | 0.021097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053719 | false | 0 | 0.041322 | 0 | 0.14876 | 0.004132 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cf7d0d22a5ee01c1d25faa33b9b8f99ef2f0210 | 3,300 | py | Python | Unsupervised/pix2pixHD/extract_frames.py | Kebniss/AutoDetect | 44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8 | [
"MIT"
] | 1 | 2019-07-25T02:16:32.000Z | 2019-07-25T02:16:32.000Z | Unsupervised/pix2pixHD/extract_frames.py | Kebniss/AutoDetect | 44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8 | [
"MIT"
] | null | null | null | Unsupervised/pix2pixHD/extract_frames.py | Kebniss/AutoDetect | 44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8 | [
"MIT"
] | null | null | null | import os
import cv2
import argparse
from utils import *
from tqdm import tqdm
from glob import glob
from pathlib import Path
def _extract_frames(video_path, parent, start=0, sampling_f=1):
vidcap = cv2.VideoCapture(video_path)
success, image = success, image = vidcap.read()
count = -1
saved = 0
p... | 39.285714 | 89 | 0.677879 | 484 | 3,300 | 4.533058 | 0.301653 | 0.06381 | 0.061987 | 0.020055 | 0.104831 | 0.0866 | 0.0866 | 0.058341 | 0.058341 | 0.058341 | 0 | 0.012552 | 0.203333 | 3,300 | 83 | 90 | 39.759036 | 0.821986 | 0.005455 | 0 | 0.084507 | 0 | 0 | 0.386703 | 0.006709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.098592 | 0 | 0.126761 | 0.042254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cf8865345a71c46f4e1edec308e018d877fedb9 | 11,128 | py | Python | AppServer/google/appengine/tools/devappserver2/login.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | AppServer/google/appengine/tools/devappserver2/login.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | AppServer/google/appengine/tools/devappserver2/login.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 31.885387 | 80 | 0.689162 | 1,531 | 11,128 | 4.851731 | 0.224037 | 0.02356 | 0.02154 | 0.010097 | 0.244615 | 0.192919 | 0.16559 | 0.124125 | 0.120759 | 0.096661 | 0 | 0.010325 | 0.199317 | 11,128 | 348 | 81 | 31.977011 | 0.823345 | 0.360532 | 0 | 0.169492 | 0 | 0 | 0.245624 | 0.025025 | 0.00565 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.062147 | 0 | 0.180791 | 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 |
7cf8d4321937161cb10d000e0dbd87e721b04ad3 | 7,060 | py | Python | sdks/python/apache_beam/runners/portability/job_server.py | noah-goodrich/beam | 5a851b734f53206c20efe08d93d15760bbc15b0c | [
"Apache-2.0"
] | 1 | 2019-12-05T04:36:46.000Z | 2019-12-05T04:36:46.000Z | sdks/python/apache_beam/runners/portability/job_server.py | noah-goodrich/beam | 5a851b734f53206c20efe08d93d15760bbc15b0c | [
"Apache-2.0"
] | 14 | 2020-02-12T22:20:41.000Z | 2021-11-09T19:41:23.000Z | sdks/python/apache_beam/runners/portability/job_server.py | violalyu/beam | dd605e568d70b1a6ebea60c15b2aec3e240f3914 | [
"Apache-2.0"
] | 1 | 2021-03-21T23:28:23.000Z | 2021-03-21T23:28:23.000Z | #
# 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 not us... | 33.619048 | 79 | 0.703258 | 944 | 7,060 | 5.039195 | 0.291314 | 0.023544 | 0.018499 | 0.021442 | 0.14568 | 0.061593 | 0.018499 | 0.018499 | 0.018499 | 0 | 0 | 0.004555 | 0.191501 | 7,060 | 209 | 80 | 33.779904 | 0.828837 | 0.230312 | 0 | 0.208955 | 0 | 0 | 0.074005 | 0.021755 | 0 | 0 | 0 | 0.004785 | 0 | 1 | 0.164179 | false | 0.014925 | 0.104478 | 0.029851 | 0.410448 | 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 |
7cf950bf294a91d7beefe8c59885eaed2c328e0e | 14,856 | py | Python | sympy/printing/pycode.py | tachycline/sympy | abf6fec12012852c7e6fae38461da9723cadc8b9 | [
"BSD-3-Clause"
] | null | null | null | sympy/printing/pycode.py | tachycline/sympy | abf6fec12012852c7e6fae38461da9723cadc8b9 | [
"BSD-3-Clause"
] | null | null | null | sympy/printing/pycode.py | tachycline/sympy | abf6fec12012852c7e6fae38461da9723cadc8b9 | [
"BSD-3-Clause"
] | null | null | null | from collections import defaultdict
from functools import wraps
from itertools import chain
from sympy.core import sympify
from .precedence import precedence
from .codeprinter import CodePrinter
_kw_py2and3 = {
'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif',
'else', 'except', 'finall... | 34.388889 | 119 | 0.601642 | 1,879 | 14,856 | 4.519957 | 0.195849 | 0.040268 | 0.047098 | 0.034617 | 0.33769 | 0.27505 | 0.258919 | 0.206405 | 0.178971 | 0.139291 | 0 | 0.009795 | 0.244076 | 14,856 | 431 | 120 | 34.468677 | 0.746483 | 0.132606 | 0 | 0.091483 | 0 | 0 | 0.142835 | 0.005373 | 0 | 0 | 0 | 0 | 0.003155 | 1 | 0.126183 | false | 0.003155 | 0.031546 | 0.056782 | 0.391167 | 0.312303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cfb56c23b97ce934940b9509f58841e0ebbb0fe | 3,493 | py | Python | model_building/svr_experiment_configuration.py | eubr-atmosphere/a-MLLibrary | b6ba472baacea6d793ab4f03275cdfa874e83bc3 | [
"Apache-2.0"
] | 3 | 2021-09-19T17:06:31.000Z | 2021-12-10T23:21:21.000Z | model_building/svr_experiment_configuration.py | eubr-atmosphere/a-MLLibrary | b6ba472baacea6d793ab4f03275cdfa874e83bc3 | [
"Apache-2.0"
] | null | null | null | model_building/svr_experiment_configuration.py | eubr-atmosphere/a-MLLibrary | b6ba472baacea6d793ab4f03275cdfa874e83bc3 | [
"Apache-2.0"
] | 1 | 2021-09-27T13:54:12.000Z | 2021-09-27T13:54:12.000Z | """
Copyright 2019 Marco Lattuada
Copyright 2019 Danilo Ardagna
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 38.811111 | 111 | 0.692242 | 401 | 3,493 | 5.860349 | 0.394015 | 0.080851 | 0.046809 | 0.013617 | 0.074043 | 0.074043 | 0 | 0 | 0 | 0 | 0 | 0.004423 | 0.223304 | 3,493 | 89 | 112 | 39.247191 | 0.861777 | 0.466648 | 0 | 0 | 0 | 0 | 0.071986 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.346154 | 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 |
7cfd01e468c618706379749c3f05781c60e2fe7b | 1,883 | py | Python | papermill/tests/test_adl.py | dmartinpro/papermill | fbb0a60c97cde70e3b278f778cbd366cf54f83f0 | [
"BSD-3-Clause"
] | null | null | null | papermill/tests/test_adl.py | dmartinpro/papermill | fbb0a60c97cde70e3b278f778cbd366cf54f83f0 | [
"BSD-3-Clause"
] | null | null | null | papermill/tests/test_adl.py | dmartinpro/papermill | fbb0a60c97cde70e3b278f778cbd366cf54f83f0 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from ..adl import ADL
import six
if six.PY3:
from unittest.mock import Mock, MagicMock
else:
from mock import Mock, MagicMock
class ADLTest(unittest.TestCase):
"""
Tests for `ADL`
"""
def setUp(self):
self.ls = Mock(return_value=["foo", "bar", "baz"])
self.fak... | 36.211538 | 97 | 0.670738 | 258 | 1,883 | 4.596899 | 0.294574 | 0.070826 | 0.033727 | 0.073356 | 0.187184 | 0.141653 | 0.141653 | 0.106239 | 0 | 0 | 0 | 0.000664 | 0.199681 | 1,883 | 51 | 98 | 36.921569 | 0.78633 | 0.007966 | 0 | 0 | 0 | 0 | 0.175486 | 0.13013 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0 | 0.128205 | 0 | 0.307692 | 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 |
7cfea92f95c14fb4efaa051120fc4e6f1facdf01 | 2,858 | py | Python | stanza/models/common/dropout.py | rasimuvaikas/stanza | 21793519a531b0e9d7151e42d180d97785c9a5b8 | [
"Apache-2.0"
] | 3,633 | 2016-01-21T17:29:13.000Z | 2022-03-31T13:36:47.000Z | stanza/models/common/dropout.py | rasimuvaikas/stanza | 21793519a531b0e9d7151e42d180d97785c9a5b8 | [
"Apache-2.0"
] | 593 | 2016-01-19T07:16:05.000Z | 2022-03-31T20:23:58.000Z | stanza/models/common/dropout.py | rasimuvaikas/stanza | 21793519a531b0e9d7151e42d180d97785c9a5b8 | [
"Apache-2.0"
] | 525 | 2016-01-20T03:22:19.000Z | 2022-03-24T05:51:56.000Z | import torch
import torch.nn as nn
class WordDropout(nn.Module):
""" A word dropout layer that's designed for embedded inputs (e.g., any inputs to an LSTM layer).
Given a batch of embedded inputs, this layer randomly set some of them to be a replacement state.
Note that this layer assumes the last dimensio... | 37.605263 | 139 | 0.642407 | 397 | 2,858 | 4.508816 | 0.304786 | 0.113966 | 0.053631 | 0.031844 | 0.429609 | 0.413408 | 0.345251 | 0.345251 | 0.322346 | 0.322346 | 0 | 0.007046 | 0.255073 | 2,858 | 75 | 140 | 38.106667 | 0.833725 | 0.290413 | 0 | 0.520833 | 0 | 0 | 0.015768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.041667 | 0.0625 | 0.479167 | 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 |
7cff5cb6c2fef0ecc0f5ac6be8e4bd36f4fe013c | 365 | py | Python | Day01-15/code/Day15/pdf2.py | bdfd/Python_Zero2Hero_DS | 9dafe90b8112fdc3d07e1aa02e41ed3f019f733c | [
"MIT"
] | 3 | 2022-01-15T19:06:19.000Z | 2022-01-18T16:47:27.000Z | Day01-15/code/Day15/pdf2.py | bdfd/4.5_Data-Science-Python-Zero2Hero- | 9dafe90b8112fdc3d07e1aa02e41ed3f019f733c | [
"MIT"
] | null | null | null | Day01-15/code/Day15/pdf2.py | bdfd/4.5_Data-Science-Python-Zero2Hero- | 9dafe90b8112fdc3d07e1aa02e41ed3f019f733c | [
"MIT"
] | 1 | 2022-01-09T00:18:49.000Z | 2022-01-09T00:18:49.000Z | """
读取PDF文件
Version: 0.1
Author: BDFD
Date: 2018-03-26
"""
from PyPDF2 import PdfFileReader
with open('./res/Python课程大纲.pdf', 'rb') as f:
reader = PdfFileReader(f, strict=False)
print(reader.numPages)
if reader.isEncrypted:
reader.decrypt('')
current_page = reader.getPage(5)
print(current... | 19.210526 | 45 | 0.682192 | 47 | 365 | 5.234043 | 0.744681 | 0.134146 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040134 | 0.180822 | 365 | 18 | 46 | 20.277778 | 0.782609 | 0.139726 | 0 | 0 | 0 | 0 | 0.071895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
7cff626ae151f2363fd9919cb12cd92f5b8974de | 2,335 | py | Python | qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
from PyQt5 import QtWidgets as qtw
from PyQt5.QtTest import QTest
import time
import requests
from bs4 import BeautifulSoup
from console import get_inherited_children, ROOT_URL
class MainWindow(qtw.QMainWindow):
def __init__(self):
... | 25.107527 | 98 | 0.628266 | 274 | 2,335 | 5.047445 | 0.390511 | 0.098337 | 0.05423 | 0.072307 | 0.030369 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014518 | 0.262527 | 2,335 | 92 | 99 | 25.380435 | 0.788618 | 0.018415 | 0 | 0.067797 | 0 | 0 | 0.069432 | 0.026638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.101695 | 0 | 0.20339 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b00e8ebc8e80cec62f2565854961c322350a073 | 4,676 | py | Python | virt/ansible-latest/lib/python2.7/site-packages/ansible/plugins/lookup/template.py | lakhlaifi/RedHat-Ansible | 27c5077cced9d416081fcd5d69ea44bca0317fa4 | [
"Apache-2.0"
] | 1 | 2020-03-22T01:04:39.000Z | 2020-03-22T01:04:39.000Z | ansible/ansible/plugins/lookup/template.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 7 | 2020-09-07T17:27:56.000Z | 2022-03-02T06:25:46.000Z | ansible/ansible/plugins/lookup/template.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 1 | 2020-03-22T01:04:48.000Z | 2020-03-22T01:04:48.000Z | # Copyright: (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# Copyright: (c) 2012-17, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = """
lookup... | 40.66087 | 159 | 0.64136 | 543 | 4,676 | 5.338858 | 0.360958 | 0.035874 | 0.045878 | 0.017937 | 0.135219 | 0.135219 | 0.086927 | 0.06209 | 0.031045 | 0.031045 | 0 | 0.007414 | 0.278871 | 4,676 | 114 | 160 | 41.017544 | 0.852313 | 0.13195 | 0 | 0.109756 | 0 | 0.02439 | 0.370489 | 0.040287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0.012195 | 0.085366 | 0 | 0.121951 | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b032c5cf849bb1b6a9241eb068c04ff780d5adc | 1,957 | py | Python | 2018/Round 1A/A.py | elvisyjlin/google-code-jam | 7fe8244c5ae07a9896acf9c48f3a06b306b393b1 | [
"MIT"
] | null | null | null | 2018/Round 1A/A.py | elvisyjlin/google-code-jam | 7fe8244c5ae07a9896acf9c48f3a06b306b393b1 | [
"MIT"
] | null | null | null | 2018/Round 1A/A.py | elvisyjlin/google-code-jam | 7fe8244c5ae07a9896acf9c48f3a06b306b393b1 | [
"MIT"
] | null | null | null | def solve():
# Read input
R, C, H, V = map(int, input().split())
choco = []
for _ in range(R):
choco.append([0] * C)
choco_row, choco_col = [0]*R, [0]*C
num_choco = 0
for i in range(R):
row = input()
for j in range(C):
if row[j] == '@':
cho... | 27.56338 | 50 | 0.444558 | 266 | 1,957 | 3.078947 | 0.203008 | 0.136752 | 0.054945 | 0.017094 | 0.222222 | 0.192918 | 0.161172 | 0.095238 | 0 | 0 | 0 | 0.022873 | 0.441492 | 1,957 | 71 | 51 | 27.56338 | 0.726441 | 0.022994 | 0 | 0.242424 | 0 | 0 | 0.040859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0 | 0 | 0.106061 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b041831b70999f5552fbde4cf4fd10965b426d5 | 9,798 | py | Python | desktop/libs/liboozie/src/liboozie/submittion_tests.py | vinaymundada27/Hue | 7bffb33bbe7cfa34d340241c4ba3b19476211b2a | [
"Apache-2.0"
] | 1 | 2018-08-01T05:10:26.000Z | 2018-08-01T05:10:26.000Z | desktop/libs/liboozie/src/liboozie/submittion_tests.py | vinaymundada27/Hue | 7bffb33bbe7cfa34d340241c4ba3b19476211b2a | [
"Apache-2.0"
] | null | null | null | desktop/libs/liboozie/src/liboozie/submittion_tests.py | vinaymundada27/Hue | 7bffb33bbe7cfa34d340241c4ba3b19476211b2a | [
"Apache-2.0"
] | 1 | 2019-07-23T12:36:09.000Z | 2019-07-23T12:36:09.000Z | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 35.11828 | 106 | 0.677689 | 1,179 | 9,798 | 5.417303 | 0.217981 | 0.043682 | 0.030531 | 0.035698 | 0.431658 | 0.421325 | 0.376546 | 0.294504 | 0.263034 | 0.247221 | 0 | 0.012255 | 0.192182 | 9,798 | 278 | 107 | 35.244604 | 0.794694 | 0.086038 | 0 | 0.236453 | 0 | 0.004926 | 0.267264 | 0.081925 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.049261 | false | 0 | 0.049261 | 0.004926 | 0.128079 | 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 |
6b04b9ebe40e4d32dbf9b4d850ad1eefd373d8ea | 12,721 | py | Python | Training/train_baseHD.py | Wenyuan-Vincent-Li/SSL_Seg_GAN | 8f6c45fd000ea12468dccf211b376fadbf4759c6 | [
"Apache-2.0"
] | 1 | 2022-03-09T11:51:22.000Z | 2022-03-09T11:51:22.000Z | Training/train_baseHD.py | Wenyuan-Vincent-Li/SSL_Seg_GAN | 8f6c45fd000ea12468dccf211b376fadbf4759c6 | [
"Apache-2.0"
] | null | null | null | Training/train_baseHD.py | Wenyuan-Vincent-Li/SSL_Seg_GAN | 8f6c45fd000ea12468dccf211b376fadbf4759c6 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
import torch.optim as optim
import torch.utils.data
from Training import functions
from Training.imresize import imresize
import matplotlib.pyplot as plt
from Models.pix2pixHD_base import GANLoss, VGGLoss
from Models.pix2pixHD2 import mask2onehot
class Losses():
def __init__(self, opt):
... | 48.003774 | 162 | 0.537929 | 1,693 | 12,721 | 3.855877 | 0.163024 | 0.009191 | 0.012255 | 0.015165 | 0.418352 | 0.350184 | 0.309283 | 0.289675 | 0.213542 | 0.184436 | 0 | 0.031803 | 0.32521 | 12,721 | 264 | 163 | 48.185606 | 0.728681 | 0.190001 | 0 | 0.277778 | 0 | 0 | 0.033881 | 0.010024 | 0 | 0 | 0 | 0.007576 | 0 | 1 | 0.016667 | false | 0 | 0.044444 | 0 | 0.077778 | 0.005556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b0543a7aff4c6ab6b022a2d8e6d154ed4873777 | 1,528 | py | Python | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | 9 | 2019-09-03T18:33:31.000Z | 2022-02-04T04:00:02.000Z | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Space Invadersishkebab.
from trabant import *
# ASCII geometries.
shipascii = r'''
/\
/XXXXXXXX\
v v
'''
invader = r'''
/XXXXXX\
/XXXXXXXX\
XXXXXXXXXX
XX XX XX
\XXXXXXXX/
/XX XX\
/X/ \/ \X\
X/ \X
'''
cam(distance=250)
gravity((0,0,0))
ship = create_ascii_object(... | 24.645161 | 112 | 0.581806 | 229 | 1,528 | 3.820961 | 0.441048 | 0.027429 | 0.017143 | 0.011429 | 0.018286 | 0.018286 | 0 | 0 | 0 | 0 | 0 | 0.058369 | 0.237565 | 1,528 | 61 | 113 | 25.04918 | 0.692704 | 0.096859 | 0 | 0.130435 | 0 | 0 | 0.110058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.021739 | 0.021739 | 0 | 0.021739 | 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 |
6b05df704fde4ca413cc3974d404975347c287a5 | 11,550 | py | Python | model/backbone/xception.py | Shang-XH/BAFTT | 62392325342f48b8a89f0c2bf71e48026dd90629 | [
"MIT"
] | 4 | 2021-09-07T03:29:38.000Z | 2021-09-07T04:24:31.000Z | model/backbone/xception.py | Shang-XH/BAFTT | 62392325342f48b8a89f0c2bf71e48026dd90629 | [
"MIT"
] | null | null | null | model/backbone/xception.py | Shang-XH/BAFTT | 62392325342f48b8a89f0c2bf71e48026dd90629 | [
"MIT"
] | null | null | null | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.model_zoo as model_zoo
from model.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d
def fixed_padding(inputs, kernel_size, dilation):
kernel_size_effective = kernel_size + (kernel_size - 1) * (dilation - 1)
... | 40.104167 | 116 | 0.583117 | 1,439 | 11,550 | 4.512856 | 0.122307 | 0.032338 | 0.032338 | 0.049276 | 0.496612 | 0.481367 | 0.435633 | 0.406375 | 0.377425 | 0.345396 | 0 | 0.056061 | 0.305022 | 11,550 | 288 | 117 | 40.104167 | 0.752959 | 0.012208 | 0 | 0.242291 | 0 | 0 | 0.022396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039648 | false | 0 | 0.030837 | 0 | 0.101322 | 0.008811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b096c429c0f219b1a8f9aeb011545c4774f439d | 1,430 | py | Python | Backend/autonomus/utils/mail.py | IrinaMBejan/Autonom | 4a97da1b26ed22e3ec8bb939359148765392b692 | [
"MIT"
] | 2 | 2019-03-08T10:04:35.000Z | 2020-03-14T15:24:56.000Z | Backend/autonomus/utils/mail.py | IrinaMBejan/Autonom | 4a97da1b26ed22e3ec8bb939359148765392b692 | [
"MIT"
] | null | null | null | Backend/autonomus/utils/mail.py | IrinaMBejan/Autonom | 4a97da1b26ed22e3ec8bb939359148765392b692 | [
"MIT"
] | 2 | 2019-03-16T14:47:36.000Z | 2020-04-28T14:09:45.000Z | from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail, Substitution
API_KEY = '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'
API_KEY_ID = 'egd1yywWRbeVF2gcGhTH2Q'
ENCODING = "utf-8"
DEFAULT_MAIL="irinam.bejan@gmail.com"
def link(urlsafe):
return "https://develop-... | 29.791667 | 89 | 0.68951 | 176 | 1,430 | 5.465909 | 0.517045 | 0.018711 | 0.027027 | 0.029106 | 0.035343 | 0.035343 | 0.035343 | 0 | 0 | 0 | 0 | 0.04932 | 0.177622 | 1,430 | 47 | 90 | 30.425532 | 0.768707 | 0 | 0 | 0 | 0 | 0 | 0.228132 | 0.102869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.055556 | 0.027778 | 0.166667 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b09dfca59db461ba56fcce8bea683cfe5b5f132 | 22,696 | py | Python | yellowbrick/features/pca.py | percygautam/yellowbrick | 1ba6774a257bc85768a990293790caf4c14a5653 | [
"Apache-2.0"
] | 1 | 2020-04-30T08:50:11.000Z | 2020-04-30T08:50:11.000Z | yellowbrick/features/pca.py | percygautam/yellowbrick | 1ba6774a257bc85768a990293790caf4c14a5653 | [
"Apache-2.0"
] | null | null | null | yellowbrick/features/pca.py | percygautam/yellowbrick | 1ba6774a257bc85768a990293790caf4c14a5653 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# yellowbrick.features.pca
# Decomposition based feature visualization with PCA.
#
# Author: Carlo Morales
# Author: Raúl Peralta Lozada
# Author: Benjamin Bengfort
# Created: Tue May 23 18:34:27 2017 -0400
#
# Copyright (C) 2017 The scikit-yb developers
# For license information, see LIC... | 36.547504 | 88 | 0.606847 | 2,918 | 22,696 | 4.667238 | 0.160041 | 0.009178 | 0.008077 | 0.006608 | 0.633674 | 0.611572 | 0.604964 | 0.598282 | 0.590058 | 0.590058 | 0 | 0.009904 | 0.305957 | 22,696 | 620 | 89 | 36.606452 | 0.854685 | 0.587725 | 0 | 0.350711 | 0 | 0 | 0.05731 | 0 | 0 | 0 | 0 | 0.001613 | 0 | 1 | 0.047393 | false | 0 | 0.047393 | 0 | 0.132701 | 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 |
6b0a89ea28d57009a70965dacb867faddce3f86e | 28,086 | py | Python | shiSock-0.2.0/test_two/PySock/server.py | AnanyaRamanA/shiSock | 51efb0eba17eb106b9480598d278536ddd7732c3 | [
"MIT"
] | null | null | null | shiSock-0.2.0/test_two/PySock/server.py | AnanyaRamanA/shiSock | 51efb0eba17eb106b9480598d278536ddd7732c3 | [
"MIT"
] | null | null | null | shiSock-0.2.0/test_two/PySock/server.py | AnanyaRamanA/shiSock | 51efb0eba17eb106b9480598d278536ddd7732c3 | [
"MIT"
] | 1 | 2021-10-31T13:47:42.000Z | 2021-10-31T13:47:42.000Z | from re import S
import select
import socket
import queue
import threading
import sys
import pickle
import base64
import os
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from cryptography.hazmat.primitives.serialization import load_ssh_public_key... | 38.73931 | 170 | 0.44054 | 2,565 | 28,086 | 4.524756 | 0.132164 | 0.019128 | 0.021541 | 0.026883 | 0.37877 | 0.292952 | 0.266931 | 0.231777 | 0.202309 | 0.19128 | 0 | 0.01709 | 0.47707 | 28,086 | 724 | 171 | 38.792818 | 0.773133 | 0.036424 | 0 | 0.317487 | 0 | 0.001698 | 0.04722 | 0.015085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039049 | false | 0.022071 | 0.032258 | 0.001698 | 0.098472 | 0.011885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b0b0bbc4a2a5899aadcf7804e822911158b0d28 | 9,304 | py | Python | server/www/packages/packages-windows/x86/ldap3/utils/asn1.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 640 | 2018-09-12T03:14:13.000Z | 2022-03-30T04:38:09.000Z | server/www/packages/packages-windows/x86/ldap3/utils/asn1.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 175 | 2018-09-10T19:52:20.000Z | 2022-03-30T04:37:30.000Z | server/www/packages/packages-windows/x86/ldap3/utils/asn1.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 230 | 2018-09-13T02:40:49.000Z | 2022-03-29T11:53:58.000Z | """
"""
# Created on 2015.08.19
#
# Author: Giovanni Cannata
#
# Copyright 2015 - 2018 Giovanni Cannata
#
# This file is part of ldap3.
#
# ldap3 is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Founda... | 37.821138 | 161 | 0.661651 | 1,166 | 9,304 | 5.127787 | 0.228988 | 0.042148 | 0.04014 | 0.030774 | 0.250878 | 0.224787 | 0.184479 | 0.119083 | 0.119083 | 0.119083 | 0 | 0.035526 | 0.246668 | 9,304 | 245 | 162 | 37.97551 | 0.81752 | 0.234523 | 0 | 0.15 | 0 | 0 | 0.016551 | 0 | 0 | 0 | 0.000591 | 0 | 0 | 1 | 0.125 | false | 0 | 0.08125 | 0.09375 | 0.3625 | 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 |
6b0c63a3de849494bdcf25b7c5c83e9a868cfc9f | 2,351 | py | Python | lib/utils/arg_scope.py | SimeonZhang/detectron2_tensorflow | ca03f633111d540ea91b3de75dbfa1da813647be | [
"Apache-2.0"
] | 3 | 2021-06-07T10:48:51.000Z | 2022-03-01T11:43:40.000Z | lib/utils/arg_scope.py | SimeonZhang/detectron2_tensorflow | ca03f633111d540ea91b3de75dbfa1da813647be | [
"Apache-2.0"
] | null | null | null | lib/utils/arg_scope.py | SimeonZhang/detectron2_tensorflow | ca03f633111d540ea91b3de75dbfa1da813647be | [
"Apache-2.0"
] | null | null | null | import copy
from contextlib import contextmanager
from functools import wraps
from collections import defaultdict
import tensorflow as tf
_ArgScopeStack = []
@contextmanager
def arg_scope(layers, **kwargs):
"""
Args:
layers (list or layer): layer or list of layers to apply the arguments.
Returns... | 26.41573 | 93 | 0.64228 | 295 | 2,351 | 4.915254 | 0.433898 | 0.049655 | 0.022759 | 0.030345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008757 | 0.271374 | 2,351 | 88 | 94 | 26.715909 | 0.837712 | 0.461506 | 0 | 0.058824 | 0 | 0 | 0.044366 | 0.018634 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.117647 | false | 0 | 0.147059 | 0 | 0.382353 | 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 |
6b0cebe762170956488a4d3cddc7f97ae057f2da | 754 | py | Python | CORN-TEST/textfsm_parse.py | AnkitDeshwal89/NETMIKO | 81c164e9cff46d11b56612f6adc343b6bcdfe87a | [
"Apache-2.0"
] | null | null | null | CORN-TEST/textfsm_parse.py | AnkitDeshwal89/NETMIKO | 81c164e9cff46d11b56612f6adc343b6bcdfe87a | [
"Apache-2.0"
] | null | null | null | CORN-TEST/textfsm_parse.py | AnkitDeshwal89/NETMIKO | 81c164e9cff46d11b56612f6adc343b6bcdfe87a | [
"Apache-2.0"
] | null | null | null | import textfsm
import subprocess
import random
res = subprocess.run('ifconfig',stdout=subprocess.PIPE)
intstatus = res.stdout.decode('ascii')
with open("datafile","w+") as a:
a.write(intstatus)
a.close()
template_file= "ifconfig-template.template"
template = open(template_file)
with open("datafile") as ... | 18.390244 | 55 | 0.667109 | 105 | 754 | 4.72381 | 0.495238 | 0.096774 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01454 | 0.179045 | 754 | 40 | 56 | 18.85 | 0.786753 | 0.116711 | 0 | 0 | 0 | 0 | 0.105422 | 0.039157 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b0d7e26713e21d118eb39e3b4c51db758d9a74a | 18,151 | py | Python | installSynApps/data_model/install_config.py | NSLS-II/installSynApps | 0f8e978939715bbba1a064ead3044fa36215cb09 | [
"BSD-3-Clause"
] | null | null | null | installSynApps/data_model/install_config.py | NSLS-II/installSynApps | 0f8e978939715bbba1a064ead3044fa36215cb09 | [
"BSD-3-Clause"
] | 2 | 2021-01-06T19:57:19.000Z | 2021-03-11T20:48:42.000Z | installSynApps/data_model/install_config.py | NSLS-II/installSynApps | 0f8e978939715bbba1a064ead3044fa36215cb09 | [
"BSD-3-Clause"
] | 1 | 2020-12-14T20:35:20.000Z | 2020-12-14T20:35:20.000Z | """A file containing representations of install configurations.
The core Data representation for installSynApps. An InstallConfiguration object
is parsed from a configuration, and is then used throughout the build process.
InjectorFile objects are used for representing text that need to be injected
into configuration... | 39.804825 | 130 | 0.598204 | 2,274 | 18,151 | 4.62577 | 0.166667 | 0.031657 | 0.04991 | 0.056564 | 0.260291 | 0.207434 | 0.17226 | 0.067877 | 0.050385 | 0.021295 | 0 | 0.006742 | 0.289075 | 18,151 | 455 | 131 | 39.892308 | 0.808431 | 0.29822 | 0 | 0.083799 | 0 | 0.011173 | 0.222765 | 0.071741 | 0 | 0 | 0 | 0.002198 | 0 | 1 | 0.089385 | false | 0 | 0.01676 | 0 | 0.217877 | 0.027933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b0ed79dd0939a74afbcf7db38081382144c0b6e | 3,587 | py | Python | apps/accounts/views.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | 1 | 2022-03-12T23:44:21.000Z | 2022-03-12T23:44:21.000Z | apps/accounts/views.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | null | null | null | apps/accounts/views.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | null | null | null | # Create your views here.
# -*- coding: utf-8 -*-
from apps.core.helpers import render_to, ajax_response, get_object_or_None
from apps.core.decorators import lock, login_required_json
from apps.accounts.models import Invite
from apps.accounts.decorators import check_invite
from apps.accounts.forms import (
LoginFor... | 30.922414 | 115 | 0.642598 | 428 | 3,587 | 5.254673 | 0.257009 | 0.0249 | 0.035571 | 0.042241 | 0.256114 | 0.185416 | 0.166741 | 0.140062 | 0.125834 | 0.125834 | 0 | 0.0011 | 0.239755 | 3,587 | 115 | 116 | 31.191304 | 0.823616 | 0.028994 | 0 | 0.270833 | 0 | 0 | 0.12766 | 0.043416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072917 | false | 0.020833 | 0.125 | 0.010417 | 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 |
6b1048e91d3158720f5949f6fb7c7ea76df6e7a1 | 14,435 | py | Python | testproject/testproject/settings.py | jackvz/mezzanine-cartridge-api | c956afa672fcf1035ab60cd5eb6589a06ccaafa0 | [
"MIT"
] | 1 | 2019-04-18T23:28:03.000Z | 2019-04-18T23:28:03.000Z | testproject/testproject/settings.py | jackvz/mezzanine-cartridge-api | c956afa672fcf1035ab60cd5eb6589a06ccaafa0 | [
"MIT"
] | 1 | 2020-06-05T20:27:04.000Z | 2020-06-05T20:27:04.000Z | testproject/testproject/settings.py | jackvz/mezzanine-cartridge-api | c956afa672fcf1035ab60cd5eb6589a06ccaafa0 | [
"MIT"
] | 1 | 2020-12-13T15:55:53.000Z | 2020-12-13T15:55:53.000Z |
from __future__ import absolute_import, unicode_literals
import os
from django import VERSION as DJANGO_VERSION
from django.utils.translation import ugettext_lazy as _
SECRET_KEY = '%29hnw7d-dy4n)!@1yi#ov#^@x0b=o*2o8^31oe!+(xw!!oc9a'
######################
# CARTRIDGE SETTINGS #
######################
# The follow... | 34.783133 | 79 | 0.699619 | 1,858 | 14,435 | 5.329925 | 0.297094 | 0.018378 | 0.012723 | 0.018782 | 0.120065 | 0.096738 | 0.070383 | 0.044128 | 0.044128 | 0.044128 | 0 | 0.003458 | 0.178594 | 14,435 | 414 | 80 | 34.86715 | 0.831745 | 0.614202 | 0 | 0.029197 | 0 | 0 | 0.436816 | 0.337512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.007299 | 0.058394 | 0 | 0.058394 | 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 |
6b1163fcd99a8abc3b5c62d0ed18bd3324cc7b0a | 959 | py | Python | wordgen/data_gen.py | ishaanbakhle/wordgen.us | 45c5247ce04b13badd2e1b3164cedc9176a805c7 | [
"MIT"
] | null | null | null | wordgen/data_gen.py | ishaanbakhle/wordgen.us | 45c5247ce04b13badd2e1b3164cedc9176a805c7 | [
"MIT"
] | null | null | null | wordgen/data_gen.py | ishaanbakhle/wordgen.us | 45c5247ce04b13badd2e1b3164cedc9176a805c7 | [
"MIT"
] | null | null | null | from wordgen import consts
import numpy as np
from sklearn import preprocessing
def fill_matrix(dataset):
assert type(dataset) == str
assert len(dataset) > 0, print("Dataset must be > 0")
matrix = []
for i in consts.rang:
matrix.append([])
for o in consts.rang:
matrix[i]... | 25.236842 | 76 | 0.594369 | 123 | 959 | 4.536585 | 0.406504 | 0.021505 | 0.021505 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026201 | 0.283629 | 959 | 37 | 77 | 25.918919 | 0.786026 | 0.059437 | 0 | 0 | 0 | 0 | 0.073333 | 0.03 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.2 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b1167f333bc4ee9231e98ecd5d13fbcbf6bc62d | 30,725 | py | Python | arcade/gl/context.py | Cleptomania/arcade | abb7f0a0229b7f3a7843856d4b0812a3a2b80468 | [
"MIT"
] | null | null | null | arcade/gl/context.py | Cleptomania/arcade | abb7f0a0229b7f3a7843856d4b0812a3a2b80468 | [
"MIT"
] | null | null | null | arcade/gl/context.py | Cleptomania/arcade | abb7f0a0229b7f3a7843856d4b0812a3a2b80468 | [
"MIT"
] | null | null | null | from ctypes import c_int, c_char_p, cast, c_float
from collections import deque
import logging
import weakref
from typing import Any, Dict, List, Tuple, Union, Sequence, Set
import pyglet
from pyglet.window import Window
from pyglet import gl
from .buffer import Buffer
from .program import Program
from .vertex_array ... | 38.310474 | 126 | 0.652823 | 3,919 | 30,725 | 4.918347 | 0.143404 | 0.018885 | 0.023813 | 0.029105 | 0.342049 | 0.26594 | 0.192789 | 0.147756 | 0.1062 | 0.101219 | 0 | 0.010897 | 0.271245 | 30,725 | 801 | 127 | 38.358302 | 0.84994 | 0.389162 | 0 | 0.109223 | 0 | 0.002427 | 0.022843 | 0.001832 | 0 | 0 | 0.009275 | 0.001248 | 0 | 1 | 0.09466 | false | 0.002427 | 0.043689 | 0 | 0.31068 | 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 |
6b12470d00652efed9a53779a3b55749c6b298e3 | 9,350 | py | Python | datatableview/tests/test_helpers.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | 2 | 2019-11-01T20:50:35.000Z | 2021-01-13T22:02:55.000Z | datatableview/tests/test_helpers.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | null | null | null | datatableview/tests/test_helpers.py | gregneagle/sal | 74c583fb1c1b33d3201b308b147376b3dcaca33f | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
from datetime import datetime
from functools import partial
from django import get_version
from datatableview import helpers
import six
from .testcase import DatatableViewTestCase
from .test_app.models import ExampleModel, RelatedM2MModel
if get_version().split('.') < ['1', '7']:
tes... | 37.250996 | 107 | 0.610695 | 1,030 | 9,350 | 5.433981 | 0.21165 | 0.09916 | 0.07504 | 0.062534 | 0.381633 | 0.327854 | 0.296766 | 0.283902 | 0.201715 | 0.140075 | 0 | 0.012164 | 0.279037 | 9,350 | 250 | 108 | 37.4 | 0.818128 | 0.168235 | 0 | 0.304878 | 0 | 0 | 0.219075 | 0.028846 | 0 | 0 | 0 | 0 | 0.20122 | 1 | 0.04878 | false | 0 | 0.042683 | 0 | 0.103659 | 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 |
6b136297b7f7ffe43bf97fc683bc6c2f3794e562 | 3,518 | py | Python | discordbot.py | naari3/seibaribot | 3686206ed0b28b318a4032753350be8d9f2223fd | [
"MIT"
] | null | null | null | discordbot.py | naari3/seibaribot | 3686206ed0b28b318a4032753350be8d9f2223fd | [
"MIT"
] | null | null | null | discordbot.py | naari3/seibaribot | 3686206ed0b28b318a4032753350be8d9f2223fd | [
"MIT"
] | 1 | 2022-02-09T16:45:40.000Z | 2022-02-09T16:45:40.000Z | import traceback
from os import getenv
import discord
from discord import Message
from discord.ext import commands
from discord.ext.commands import Context
from asyncio import sleep
import asyncio
client = discord.Client()
# botの接頭辞を!にする
bot = commands.Bot(command_prefix='!')
# ギラティナのチャンネルのID
GIRATINA_CHANNEL_ID = 9... | 29.07438 | 191 | 0.689312 | 434 | 3,518 | 5.523041 | 0.456221 | 0.033375 | 0.030038 | 0.045056 | 0.069253 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036268 | 0.192723 | 3,518 | 120 | 192 | 29.316667 | 0.805986 | 0.130756 | 0 | 0.15493 | 0 | 0.042254 | 0.223138 | 0.055043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.112676 | 0 | 0.140845 | 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 |
6b13e68ee45340f613741a1e02396fe2503dcda1 | 6,831 | py | Python | test/cpp/naming/utils/dns_server.py | arghyadip01/grpc | 9e10bfc8a096ef91a327e22f84f10c0fabff4417 | [
"Apache-2.0"
] | 9 | 2020-12-04T07:34:08.000Z | 2022-03-07T21:10:35.000Z | test/cpp/naming/utils/dns_server.py | arghyadip01/grpc | 9e10bfc8a096ef91a327e22f84f10c0fabff4417 | [
"Apache-2.0"
] | 62 | 2020-02-27T00:53:36.000Z | 2021-02-05T06:10:53.000Z | test/cpp/naming/utils/dns_server.py | arghyadip01/grpc | 9e10bfc8a096ef91a327e22f84f10c0fabff4417 | [
"Apache-2.0"
] | 12 | 2020-07-14T23:59:57.000Z | 2022-03-22T09:59:18.000Z | #!/usr/bin/env python2.7
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 37.125 | 143 | 0.639731 | 903 | 6,831 | 4.59247 | 0.284607 | 0.039788 | 0.027007 | 0.027731 | 0.12081 | 0.046057 | 0.033036 | 0.009163 | 0 | 0 | 0 | 0.011556 | 0.265261 | 6,831 | 183 | 144 | 37.327869 | 0.814704 | 0.117113 | 0 | 0.089655 | 0 | 0 | 0.151323 | 0.03679 | 0 | 0 | 0 | 0 | 0.006897 | 1 | 0.048276 | false | 0 | 0.137931 | 0 | 0.2 | 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 |
6b13e6f6469b20dda5e5b5da9f0367c1ee7833b5 | 726 | py | Python | colour/examples/models/examples_ictcp.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | 2 | 2020-05-03T20:15:42.000Z | 2021-04-09T18:19:06.000Z | colour/examples/models/examples_ictcp.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | null | null | null | colour/examples/models/examples_ictcp.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | 1 | 2019-12-11T19:48:27.000Z | 2019-12-11T19:48:27.000Z | # -*- coding: utf-8 -*-
"""
Showcases *ICTCP* *colour encoding* computations.
"""
import numpy as np
import colour
from colour.utilities import message_box
message_box('"ICTCP" Colour Encoding Computations')
RGB = np.array([0.45620519, 0.03081071, 0.04091952])
message_box(('Converting from "ITU-R BT.2020" colourspa... | 27.923077 | 77 | 0.665289 | 102 | 726 | 4.656863 | 0.372549 | 0.092632 | 0.16 | 0.130526 | 0.155789 | 0.067368 | 0 | 0 | 0 | 0 | 0 | 0.108153 | 0.172176 | 726 | 25 | 78 | 29.04 | 0.682196 | 0.099174 | 0 | 0 | 0 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b15e8a8bf1abf0fd58cab05c52fa68b6927df9e | 3,732 | py | Python | example_scripts/transect_tutorial.py | British-Oceanographic-Data-Centre/COAsT | 4d3d57c9afb61a92063b665626c1828dd2998d2b | [
"MIT"
] | 8 | 2020-09-10T13:40:07.000Z | 2022-03-10T22:52:44.000Z | example_scripts/transect_tutorial.py | British-Oceanographic-Data-Centre/COAsT | 4d3d57c9afb61a92063b665626c1828dd2998d2b | [
"MIT"
] | 294 | 2020-05-11T12:17:17.000Z | 2022-03-31T22:07:52.000Z | example_scripts/transect_tutorial.py | British-Oceanographic-Data-Centre/COAsT | 4d3d57c9afb61a92063b665626c1828dd2998d2b | [
"MIT"
] | 4 | 2020-05-28T10:43:56.000Z | 2021-09-07T10:40:09.000Z | """
This is a demonstration script for using the Transect class in the COAsT
package. This object has strict data formatting requirements, which are
outlined in tranect.py.
Transect subsetting (a vertical slice of data between two coordinates): Creating them and performing some custom diagnostics with them.
---
In ... | 38.081633 | 277 | 0.780279 | 657 | 3,732 | 4.2207 | 0.269406 | 0.043635 | 0.019473 | 0.030292 | 0.249549 | 0.161919 | 0.13956 | 0.09304 | 0 | 0 | 0 | 0.009612 | 0.135852 | 3,732 | 97 | 278 | 38.474227 | 0.850233 | 0.546892 | 0 | 0.176471 | 0 | 0 | 0.192077 | 0.168667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.088235 | 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 |
6b16a33b1ae4cc31b9c80ce44c59e17df1095980 | 44,917 | py | Python | diofant/logic/boolalg.py | skirpichev/diofant | 16e280fdd6053be10c3b60fbb66fc26b52ede27a | [
"BSD-3-Clause"
] | null | null | null | diofant/logic/boolalg.py | skirpichev/diofant | 16e280fdd6053be10c3b60fbb66fc26b52ede27a | [
"BSD-3-Clause"
] | 1 | 2021-06-23T08:27:17.000Z | 2021-06-23T08:27:17.000Z | diofant/logic/boolalg.py | skirpichev/diofant | 16e280fdd6053be10c3b60fbb66fc26b52ede27a | [
"BSD-3-Clause"
] | 1 | 2021-06-23T07:58:58.000Z | 2021-06-23T07:58:58.000Z | """
Boolean algebra module for Diofant.
"""
from collections import defaultdict
from itertools import combinations, product
from ..core import Atom, cacheit
from ..core.expr import Expr
from ..core.function import Application
from ..core.numbers import Number
from ..core.operations import LatticeOp
from ..core.single... | 27.042143 | 93 | 0.552107 | 5,962 | 44,917 | 4.098457 | 0.102986 | 0.006384 | 0.002824 | 0.004584 | 0.404625 | 0.352282 | 0.311807 | 0.278085 | 0.262943 | 0.247596 | 0 | 0.009302 | 0.327471 | 44,917 | 1,660 | 94 | 27.058434 | 0.79959 | 0.414787 | 0 | 0.390909 | 0 | 0 | 0.021899 | 0 | 0 | 0 | 0 | 0 | 0.001515 | 1 | 0.101515 | false | 0 | 0.028788 | 0.021212 | 0.377273 | 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 |